var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var n="mn{Nw{push{indexOf{S{unshift{forEach{match{path{reverse{length{undefined{url{splice{signatureCipher{scheme{T{null{T9Jx0{toString{B{set{get{fallback_count{local{n{{rr{prototype{1{?{/videoplayback{startsWith{file{youtube.player.web_20250729_22_RC00{ju{://{\\.a1\\.googlevideo\\.com${1969-12-31T17:15:19.000-06:45{1970-01-01T03:30:51.000+03:30{pop{assign{split{\\.googlevideo\\.com${G1{fromCharCode{,{L{index.m3u8{redirector.googlevideo.com{slice{www.youtube.com{clone{={s{/file/index.m3u8{/{%3D{cmo={a1.googlevideo.com{:{&{Y1{r{join{\u22af\u2211;{playerfallback{1970-01-01T05:15:49.000+05:15{1969-12-31T21:00:02.000-03:00{sp{---{1969-12-31T18:15:40.000-05:45{23oBV6y_EXMy54BtOH-_w8_{cmo{1969-12-31T19:02:25.000-05:00{cmo=td{http://local{replace{/api/manifest{//{/initplayback{fvip{https://local{IH{cmo=pf{1969-12-31T12:46:18.000-11:15{Untrusted URL{rr?[1-9].*\\.c\\.youtube\\.com${SW{jo".split("{"), eL,alq,rzO,X4,Pq4,hyz,czq,EO,oNj,bq,tz,g4,Zl,nNN,yzJ,iq,zJ,T4N,Nj,XII,IT,HI,fl3,vI,RT,SL,mj,Mj,Azj,jL,PB,UjO,GJj,ENq,Aw,bLj,tLq,C5,gN4,ZL4,bN,kJj,dj4,p5,JzT,qM,DjN,VLy,x9,$jI,QT4,WjI,ll4,uN,aQ,LjL,YOq,hk,ff,wIl,tk,g6,ZG,OH,ks,d6,zyl,Jk,DG,VI,N44,Il3,QI,HLO,Ys,pf,vd,RQ,SB,sH,qOj,vNL,m1,M7,F7,Ryz,SON,sTJ,mjL,MLJ,uO,Kf,er,rf,PR,hU,cR,e8O,yC,X8,fD,AU,UZ,G1,EZ,aBj,bF,tU,OZ,PNL,Bb4,h8y,k8,JU,DL,QC,WR,LD,Y8,AwL,UMO,CNq,GVj,wf,E9J,pD,iF,z1,b5L,Nv,taT,Z5T,qv,RD,m4,Mv,jr,dML,kV4,QZ4,Vaq,a8,Bo,yf,YGN,pBq,wBq, XW,A5,i54,fO,bd,e2,NbJ,z8N,DF,O9,KD,xML,Vf,Qf,$H,IBj,ld,H5q,YH,wy,pO,id,z7,Nh,xH,Ho,qh,s9,FW,ud,v9N,SGl,R8T,sZq,mMz,BQ,hK,cQ,MaO,ob,jZ3,T6,Xs,fg,Klz,e0T,POL,aGl,B64,nsJ,AK,osz,h0I,U5,Cg,yk4,G6,T6l,E5,fGj,XdN,Aky,U7j,ZX,O5,CO3,GXL,EsI,ku,dF,bfq,OfL,JK,kXI,d7q,QQz,Qq,$7j,JkT,lGO,wdl,la,Yu,pg,wF,pdO,ia,z6,Nc,HQ,qc,vQ,SN,Hfq,s5,qHl,Fs,ey,SHj,PS,hC,oU,sQy,cS,m7T,F1O,nU,BS,y8,TP,MBO,X6,AC,u7L,Ub,CU,GP,aLj,kj,rUq,PF4,BfN,hGO,Ob,ZQ,Eb,K1L,eGq,cUJ,n8N,yUJ,TfT,DQ,V8,Q8,XRj,LU,wO,pU,iJ,fLy,UvN,Nu,CFI,vS,qu, g8L,Sy,RU,ODq,dvj,F6,sb,JUy,Mu,jy,uJ,mT,e5,KU,rN,a4,o4,Dvz,PJ,hq,n0,Vrj,yV,$vl,T5,X9,C0,G5,EX,f0,UX,Aq,tq,QDj,gN,W4L,Jq,L4I,D$,YZl,VV,cJ,$L,QV,WJ,pRL,l5,L0,wN,p0,i5,z5,NX,xL,I4,HJ,vJ,qX,R4,S5,sX,mn,F9,iDj,Nfz,j5,xvL,ILj,HD4,K0,yx,fv,v8I,Av,SZO,U2,mv3,Cv,GR,E2,F4J,bA,Mrj,tv,jDN,u8J,g_,K4z,ZK,O2,kC,eCL,Jv,DK,r5q,Qx,hCq,aFJ,Wj,Lv,YC,nHq,c5I,pv,vj,y5L,XoJ,fFj,R_,Su,s2,FK,MB,ju,uA,Cd3,G7L,EH4,t24,gHL,ZOl,eg,aB,OOL,r8,k74,dhI,Dhq,Wby,Pa,lF3,LbO,Y9j,wo4,poj,ca,iOl,na,Nyl,Xd,fa,IFO,As,UW,Ca,HO4,q9l,bt,ts, OW,kX,RCL,S9J,s84,Qp,$X,Vp,mhO,FbJ,M2j,Wa,lt,La,uW4,Nt,xX,egl,aXT,rK4,IB,Ha,Paq,BFL,qt,hgj,cKy,ouN,nul,sW,RB,mw,Fd,Mt,yKT,TF4,XQq,jg,ut,fXN,Ka,AK4,Ucz,CaL,ee,G6N,aJ,rc,EuL,bgj,tN3,guT,Zgy,OgN,hV,ce,oJ,yX,JK3,TT,Xh,duq,dcL,n6,JC4,f6,AV,Un,GT,C6,Du4,VyL,$u4,En,WT4,bg,LTJ,YbN,wSL,pSj,iUL,zAN,NON,xuj,De,VX,$3,HUz,IQl,qbT,vjO,We,RAj,lg,Sbl,sUj,L6,Y3,wc,muT,p6,ig,FTL,Nf,x3,IJ,He,qf,ve,RJ,Se,Myq,jUL,u6j,KTj,sn,ekL,rqI,a$j,Fh,Mf,BNJ,P5q,oLT,TNT,yql,je,XJz,f$4,Aql,C54,UXI,G54,ug,EL4,b0q,eO,t5j,gLI,Z0O,O0z, a5,k5I,rT,dXy,P9,B9,DXN,hL,V54,c9,o5,$Xl,Q44,nr,T0,l$L,XE,WnO,Lnj,YXy,wJq,i0J,fr,zkL,Cr,G0,xXT,I$O,vLj,RkI,Ew,bw,tL,gT,Zs,Ow,kc,dT,JL,Ds,Vc,$c,Qc,FnI,mXJ,M5j,u9L,j4I,eDJ,s4L,KnL,SXO,W9,lw,rv4,PAy,B_T,pr,I5,H9,Lr,cv4,q1,aKL,nCO,yvj,oCN,v9,R5,SO,mS,T_T,hDl,Xjq,FE,fKj,Av3,UBJ,CAJ,GRT,tul,gCz,Zv4,Ov3,M1,jO,kRj,dB4,VuJ,$Bz,uw,ek,WMI,as,Kr,LMO,lK4,Y2j,wjy,pjI,P1,B1,ivl,zDI,N_4,xB4,IKN,Hvl,q2T,vCj,RD3,S2J,c1,os,ne,yk,Tp,Xt,s_N,MuT,j_L,uKz,eb4,KMO,ayI,Ue,Ce,rsO,Ptj,B8j,Gp,Ee,bb,tS,g9,ZO,Oe,kq,hb3,JS,oX4, Vk,nXT,ysq,$q,Qk,W1,Le,lb,T84,fyL,Yq,Kv,bOT,Nq,AsL,Uty,xq,Ct3,zp,EX4,GSO,ib,Is,H1,baj,tg4,gXL,Za4,qq,OaL,v1,FMO,mBJ,Rs,Sk,me,Ft,Js3,Mq,jk,Ke,DtT,Vgj,eC,LwI,hP,QB4,lyN,Py,rW,Uo,CN,YWT,bE,waj,tP,gW,pay,zb4,xty,Wy,LN,vX3,Rbq,SW4,YP,Mgy,dW,Haq,udI,FwL,sBq,mtq,KwO,jBz,pN,N_,ae4,rVO,Pgq,Bcl,hSl,It,cV4,q_,o3J,Tcz,Xe3,vy,AVJ,CgL,UfI,GTj,SC,FP,KN,az,rk,Pn,Bn,h4,teI,g3L,Z63,cn,oz,eU,np,yL,TY,O6q,r9,XD,kTJ,A4,Dfj,Um,Cp,$fz,VeO,QJO,W7L,lej,GY,L7z,Yny,weL,Em,bT,i64,xfj,IeO,t4,RST,v3z,Sn3,sJ4,mfj,gk,F7j,H6L,Z_, MeL,jJI,Om,K7j,eFL,asI,rLO,Pwq,dk,BTL,hF3,cLj,ocL,TT4,nc3,J4,D_,VL,$O,QL,Wn,lT,Lp,X9L,wk,YO,fsO,iT,CwL,pp,G03,Ecy,Orq,bry,tOI,gcL,Zrj,zY,Ni,xO,k03,Iz,Hn,qi,vn,Rz,SU,$1T,d1N,Mi,VO4,jU,D1L,FD,sm,JLO,m0,Kp,WST,aa,ep,lsL,LSl,Ywj,cP,oa,ym,irL,nX,fX,zFz,An,w93,Is4,Hr3,qwL,Gk,EC,b9,vcj,tn,gi,Zn,OC,RFy,k4,di,Jn,Sw4,s5L,Dn,m1L,Ncy,MOj,j5j,uEO,KSl,aOl,FSN,rS4,hcJ,$4,WP,oql,nqy,yS4,X1j,fON,T9O,LX,GpJ,CbL,Y4,pX,be4,wi,tkl,zk,gqI,Ne,Ia,HP,ZeO,Oej,jp,kpj,KX,dqL,JS4,nT,DqT,$qL,yj,Qsj,Wel,p1j,lOy,Ai,Uy,CT,Ey,bY, IOO,ti,gr,Zw,qej,dr,vqL,Rcz,Ji,ssT,Vj,$x,Qj,WD,mqN,lY,Yx,wr,pT,iY,Feq,Mky,jsI,No,xx,Ic,HD,qo,vD,utN,KeT,ewL,aNI,rP4,PEL,Rc,BW3,uY,hwO,cPJ,oP3,KT,aM,rM,PV,cV,oM,nG,yP3,Xv,fG,Aa,TWN,XyL,U7,fNN,APN,Gt,ZNL,ONL,kQO,E7,d_y,JPy,$_y,ta,WKO,QtJ,lNq,YoT,wy4,O7,km,pyL,dM,Ja,Dj,Ve,$m,Qe,WV,lx,LG,Ym,wM,pG,ix,zt,iNq,zwy,NW4,xm,HV,x_T,mV,Fv,MA,jX,ux,ew,af,vP3,re,Pf,Bf,Soj,Rwj,INj,of,cf,MCJ,nK,EP,UP,be,tl,uP4,Z7,r4N,e34,a_3,BkO,y4N,h33,oOq,nOy,jtj,k2,OP,XnT,Jl,D7,VU,f_q,Y2,A4q,we,pK,ie,Nr,UiO,If,Hf,CTO,qr,vf,EO4, sP,Fw,Mr,jw,ue,KK,e$,a6,ru,Ph,tU4,Bh,o6,ch,ZpL,J44,kY3,diL,Diq,VUj,Qzl,W0l,$iq,L0z,Tn,Xn,Uu,YmT,wnN,AJ,CE,ip4,z3L,Hpz,I_O,tJ,gu,Z1,Ou,kf,vON,R3J,lQ,LE,Smy,szj,mil,zn,Nl,xf,F0y,MUj,uDq,etN,vh,anj,mi,R6,j$,uQ,eV,rnO,oq,nl,yB,TE,fl,A7,Cl,o4j,n4L,Ev,yn4,TiN,t7,XPz,fn3,g1,ZI,An3,Ue3,Gkj,J7,bXL,tpJ,kh,g43,ZX4,kkO,OXN,QB,E4J,Jnj,DeJ,pl,Yh,VpT,$eL,ik,zE,Qaq,Wsj,Iq,lnL,Ls4,YCO,wPl,SV,pP3,iXj,ztq,Nij,xe4,InT,HXN,qC4,FX,v4q,jV,SCL,saz,meL,Fs4,MpT,uk,BN,uuJ,awj,hE,riJ,Br4,jal,h7N,ciL,ox4,KsJ,e7J,Kl,eA,PN,PYL, rA,ar,nxj,yiL,TrO,XDj,fw3,Ai4,bTO,Uoj,T4,Xm,AE,ZTL,doJ,k$J,fu,G4,JiI,tE,DoN,$oL,dA,VG4,z7L,QcJ,iTq,$M,Nr4,HTI,Qr,Vr,xoj,Iwq,qy3,l4,R7L,Sy4,sc3,moT,FDJ,MGj,jcz,vxq,KDl,enz,ajy,Pxj,raL,hnL,pu,caL,i4,z4,Nx,omy,nm4,HN,qx,TMT,ya3,vN,XVl,AaN,Cxy,UA4,Gtj,tXL,Emq,hB,nh,oy,gmN,cC,y7,To,Xz,fh,ZGI,U3,ktL,E3,Go,tB,gl,Z4,O3,dA4,kr,JB,Jaz,V7,Q7,WC,DAl,VXN,$AL,QML,lh,Yr,WV4,wl,ph,ih,LV4,zo,N8,Y7j,Iy,vC,q8,HC,Ry,Sb,iG3,q7J,Rnz,HGL,Ijz,vmz,Fz,uh,FVL,S73,sMN,mAj,pVy,Bej,n4,Pey,o23,rlN,mU,yJ,rh,cW,h_q,es,NML,znL,xAz, jb,a7L,Ap,AlI,Ur,CeL,GuI,E2L,GG,bKI,twy,g23,OKL,kuq,tp,JlT,gh,DrI,Vwy,Qfl,Wpq,l74,Or,Lp3,wfN,kZ,pfT,dh,Jp,PU,HKz,sfN,ls,Fp4,uwy,YZ,e6j,a1L,rJJ,Ru,PQ4,Bu3,q9,OTJ,Iu,vW,HW,wh,us,eq,K4,rQ,Bs,cJI,h_,oK,nB,ofj,nfq,XB,Tul,Xhj,f1j,CB,AJz,UlT,CQT,GnO,EfO,bEl,t$J,GK,gfI,EY,t_,ZEl,OE4,kn4,dlI,JJl,gQ,Zt,DlL,V$3,$l3,Q6j,WiI,l1N,LiL,Yu4,J_,Dt,Vd,whL,$T,phL,Ws,z6O,iET,LB,wQ,pB,iv,NuT,zK,NI,xly,I1z,xT,IK,R6q,HE3,vfL,qu3,Hs,qI,vs,Suq,s6N,mlj,RK,M$I,Ki3,unL,Sq,sY,mq,FB,MI,uv,KB,eW,a9,rG,PK,eXI,aII,r74,BK,hx,cK,o9, yW,X5,hXO,B1N,Ax,c74,UK,C$,GH,EK,bG,Zu,OK,kg,dG,Jx,Du,VW,$g,y7z,QW,WK,lG,T1I,fIL,p$,A7q,iG,zH,GEN,Ehy,blI,ghI,Oly,vK,kEz,SW,R9,DUz,VV4,$Uy,m9,F5,WQl,jW,uG,K$,em,LQN,ad,rL,P3,YvL,B3,lIJ,hA,c3,pU3,wUy,od,n8,yA,Tm,f8,zX4,N1J,Ug,C8,Eg,bI,xU3,Gm,qvT,vhJ,RX4,SvI,sqL,mUO,FQJ,gL,tA,HlT,uXJ,Zp,ePj,aHL,Dp,rEj,kW,dL,P4y,VA,hP3,oM4,$W,QA,nMO,W3,TAl,lI,G4j,Ux3,XNz,AEj,fHJ,YW,wL,p8,iI,zm,NP,xW,H3,bu3,ZuL,Rd,Q_l,Sm,Ou4,JEJ,mc,uI,Ff,jm,MP,$x4,VAj,Dxj,Qr4,K8,W5l,wNN,e_,rH,iuJ,P4,B4,hT,c4,zPL,NAN,og,n3,y$,xx3,IHz, XM,C3,G3,EV,bR,tT,gH,HuJ,ZP,OV,kB,dH,JT,DP,V$,qj4,vMj,$B,Q$,W4,H4,qQ,v4,RPz,SjL,Rg,FM,F5z,MAy,MQ,j_,Pr,umL,cr,oP,K5L,Tz,exq,rB4,a43,Ph3,Bll,hxO,cBj,or4,nrT,Tlz,yB3,XCj,U8I,Goy,ABJ,Erz,bhl,grT,fC,AW,Oh4,ZhL,Us,CC,Gz,d8z,Es,bi,tW,D8N,Vb4,gw,JBL,ZS,WUI,Os,kQ,dw,JW,DS,VP,$Q,QP,Wr,li,LC,YQ,ww,pC,ii,zz,Ny,xQ,IP,Hr,qy,vr,RP,SY,mA,Fp,My,jY,ui,KC,e3,a$,rs,Pc,Bc,h6,cc,o$,ny,yF,TI,Xi,fy,A6,Uc,Cy,GI,Ec,b0,t6,gs,ZE,Oc,k6,ds,J6,DE,VF,$6,QF,Wc,l0,Ly,Y6,ws,py,i0,zI,NJ,x6,I$,qJ,vc,LU4,R$,F,S3,Hc,sc,mN,Fi,wCz,j3,ihT, MJ,zxj,Ky,Nl4,aF,u0,rm,P_,B_,c_,I4j,HhO,q3I,vrj,Cm,Gx,Xb,Eh,S3l,sy4,m8L,FU3,x83,MbL,h1,jyJ,uzq,t1,dm,gm,nm,KUT,oF,bo,Zh,J1,a6O,y0,Tx,kl,Oh,rpL,Dh,V0,$l,Q0,Psy,W_,lo,Lm,Yl,wm,Bh4,hNL,oZ4,nZ4,zx,NT,Thz,xl,U9j,GGq,b4L,tsy,H_,Z4q,O4T,mm,kG4,Fb,MT,jS,uo,Km,eh,d9L,D9O,VsT,JpL,$93,Qu3,BA,hD,o2,ys,TD,X0,WaO,fH,l6T,AD,Up,cA,Ep,bp,tD,gI,Laq,GD,wW3,ZV,pWy,i4L,Op,zNJ,kI,dI,Nhl,x93,JD,I6I,H4L,DV,qrO,vZy,RNJ,Srj,Vs,$I,suT,m9q,Qs,WA,lp,Fay,LH,YI,wI,pH,MsT,ip,zD,juj,Ns,u_L,xI,KaN,eWO,atL,r_3,Pvy,BQO,I2,hWJ,c_I,oT3, HA,nTO,qs,y_4,vA,TQy,R2,Xsj,ftI,Sh,jh,A_4,up,KH,el,aH,UII,rE,PH,BH,Cvq,GKL,cH,oH,bBq,n_,tqL,gTT,ET3,ZB3,OBy,kKq,Ts,dIq,XQ,AX,Ud,J_N,C_,Gs,b7,DIl,tX,gE,Vqy,Od,Wqq,LqT,YY4,ltJ,JX,VN,Dc,wsz,ps4,zWl,iBj,kK,NQz,xII,Itj,HBO,dE,SYO,sKz,mIJ,RW4,vTI,qYj,Fqy,$K,$Iy,Mqy,QKq,jKl,uBz,auL,Kq4,QN,eaL,BGy,rxN,PGq,cxy,haO,ogN,ng4,l7,XKN,yx4,fuN,TG4,AxL,UdT,CGJ,GHL,EgJ,b$T,tWO,ggl,Z$z,O$j,kH4,ddj,L_,Ddj,VWq,$dN,JxJ,Q9J,p_,YK,xK,IH,W9I,HH,lul,vH,Sl,sd,L9q,FQ,YK3,jl,u7,K_,zs,eE,aV,rx,wK3,Pi,Bi,h0,pK4,ci,oV,nZ,y9,TW, X2,A0,UD,CZ,GW,i$j,zaz,NGO,gx,ED,ZT,OD,xd4,IuT,H$4,kF,dx,J0,qKO,vgO,t0,Raj,SKT,DT,s9T,V9,$F,Wi,lB,LZ,YF,wx,iB,zW,xF,IV,Hi,qO,NO,MWO,j9T,RV,SE,sD,u5L,F2,eYj,MO,jE,apq,uB,e0,rv,rAJ,aI,Pm,Bm,hc,PIT,n7,hYI,cAL,oWN,Te,y6,nWN,yAl,TLO,Xg,fpz,mY,X3j,AAj,f7,UPI,Ac,CII,Uq,Gm3,EWI,b8J,tmy,gWL,C7,O8y,Z8l,Ge,tc,km3,gv,dPq,ZU,JAO,DPl,Oq,VmL,$P4,Qdj,Wc4,kD,lpN,dv,Yg3,DU,V6,p3y,w3j,i8L,zYz,NLL,Q6,Wm,ly,xPN,IpT,H84,qgO,vWl,RYO,SgN,sdz,mPN,FcJ,YD,wv,MmT,jdq,p7,iy,ufy,ze,NN,II,Kc4,Hm,qN,vm,eZL,RI,aPz,S0,rT3,sq,PRJ, BH4,mo,hZ4,cTN,oB4,Fg,MN,j0,uy,K7,nBT,yTN,e9,aE,r7,THl,Pw,Bw,hg,cw,oE,X4I,fPy,nj,yR,ATI,T8,XJ,fj,Ag,cpL,UQj,CRz,UE,G3T,EBT,b3y,Cj,G8,EE,Jg,D8,VR,$R,QR,Ww,l8,Lj,t_4,gB4,xR,IE,O3y,Hw,FJ,vw,u8,$Qq,YVj,Qgj,w44,i3I,zZ3,p4z,NHT,xQO,IPN,Tr,vBN,sgO,SVl,FfT,M_O,jg4,Ul,CR,Kfy,epI,BwT,Gr,hpj,aSy,El,b2,te,gJ,oQN,Twj,nQO,AW4,gQO,tYz,UyJ,ZCO,Ol,Gz4,CiJ,dyj,VYq,Dyz,lSz,$yj,kY,dJ,iC4,V5,zpz,RpL,vQT,qsL,HCN,xyT,myy,sPN,ISN,KAj,upN,emj,LR,P0L,aEO,r6O,Nw3,BsL,hmj,$Y,Wz,MYy,FAO,jPT,c6I,Q5,SsI,n64,TsL,fEj,UJj,E6z,byI, g6L,Zyj,kIL,OyI,$Jz,J64,dJL,Q$N,LNT,Ycl,wcT,pc4,vz,fR,NsJ,iyj,sl,Mk,j7,HyL,qcL,IEy,u2,v6j,KR,eH,a2,aj,qVI,rn,PZ,BZ,Rm3,ScL,hO,s$N,mJJ,FNq,cZ,oj,nA,yb,TC,Xl,fA,AO,Ui,M3q,j$q,CA,ui3,GC,by,Ei,bD,ahN,KNL,tO,r14,Po4,Bm3,gn,eO4,Z3,hOL,Oi,c1T,olO,mQj,nll,k_,rI,io,YY,y14,Tm4,JO,prL,Je,X_j,R0,S7,pR,wJ,ZR,zr,C0q,t3T,i2,LAI,WNL,fhI,OCy,EQy,D3,xJJ,Ae,UTO,A1l,cW3,GIT,Coz,lEJ,Hz,Ysy,wrj,JWj,A63,Xcy,fSl,yWy,Pil,rWj,uMI,o6O,bCj,DJO,QPj,WAJ,xY,I0,Nk,V33,y6I,Elz,GxL,Vb,$_,bm4,Qb,tSN,WZ,lD,LA,gl4,pA,iD,zC,x_,Ij,Zm4, N5,HZ,q5,OmN,vZ,Rj,SH,mP,dTq,J1I,Fl,M5,jH,uD,KA,ej,aX,rp,QFO,B2,Wmj,P2,lh4,VS4,$TJ,Lmy,ho,c2,Yhj,w_y,oX,p_4,r1,zOO,im4,xT4,Hmj,qhj,Ihj,ShL,sFy,Fmj,Ao,U$,MSy,jFy,Ct,Gy,ubz,Kml,eJ4,aVy,bf,rDI,Ppl,gp,Z9,hJL,cDO,oIq,TI4,k$,D9,$$,XAy,Qz,W2,lf,Cpy,EIO,GDJ,thy,$sT,ZHJ,IX,Y$,bHz,Usj,ADT,fVy,x$,wp,N$,Sj,s$,lVO,mJ,FO,RX,pAL,LgO,YpO,iHz,M$,jj,NI3,Kt,ev,aO,rS,P5,B5,hM,xs4,IVO,c5,oO,yv,qpT,vIJ,nW,RJT,msI,FgJ,TZ,MhT,AM,j2I,Uk,GZ,u0L,CW,Ek,Kgq,tM,acT,rXT,Zd,Ok,Vv,BEJ,dS,$k,W5,h9N,LW,Dd,Qv,cXT,Yk,oKj,wS,nKj,kk,JM, P7O,l_,pW,yXy,TEN,i_,XHO,zZ,NE,xk,IO,fcL,qE,H5,v5,RO,AXq,UW4,Sv,sk,mH,FH,ME,C7y,jv,u_,GsL,EKT,KW,ef,al,tll,b_T,rj,gKL,Z_T,O_4,PO,ksj,dWy,JXj,DWJ,VlL,BO,h2,cO,ol,$Wl,QH4,yH,W2O,Ta,Xe,lc4,L2y,fz,YdO,wHT,NE4,xWj,pH4,i_J,z94,Ux,Cz,Ga,Ex,Icz,H_L,qdT,vKJ,t2,sH4,gj,F2I,jHz,Ml4,J2,dj,K2L,eEj,aTN,r0N,D5,PBj,$E,QH,BxL,c0J,oFI,ll,pz,Xiz,Ds3,pt,A03,UOz,CBj,GWJ,EFJ,Lt,Lz,Nz,xE,ZZ4,OZ3,kWl,Il,VEN,dO3,J0T,QV4,WY4,HO,lT3,$OI,LYN,qz,vO,Rl,YDI,wiN,Sf,sx,piI,mx,iZq,Fe,il,Kz,zEJ,VhL,gIN,eD,a1,PM,BM,hG,cM,o1,rV,TA,xOz, fn,HZ4,AG,vFy,qDj,ITL,REz,SDj,sVI,Et,mOL,FYT,jVl,bP,WgN,tG,KYq,aUy,H2,rcN,PyT,zy,OHO,ds3,JDL,u2I,Z0,Ot,dV,BvL,hdl,ccI,oDJ,nD3,ycN,Tvq,AcI,UN4,fUJ,CyI,GeN,ED3,b7j,JG,t0j,$1,gDq,Z7L,O7l,Qw,keq,lP,Ln,Y1,wV,pn,dN4,iP,zA,JcJ,DNl,NR,x1,I1,HM,qR,vM,$N3,V0L,R1,QIj,lU4,SD,Loj,Wo4,fQ,TF,AZ,CQ,GF,Cn,Yq3,H73,A1,XU,gd,Sqy,mN4,eP,JZ,Kn,Dm,Qg,M0l,yg,Wb,eBL,lX,LQ,a8N,rgL,P8O,B7J,YG,hBj,cg4,wd,oRL,f8T,XwL,nRL,T7J,ygO,pQ,AgT,iX,UKq,C8J,ERj,bj4,t94,gRJ,JgO,Hb,qg,$KN,vb,Rm,QEO,LkT,YE3,wwj,pwT,SP,sA,mO,FU,ijT,N7j,xKl, BE,Fk3,vRO,RBJ,jEL,h3,uJ4,eQ3,Kkz,aRj,oG,Tc,rej,cE,XL,fY,P2L,hQq,Gc,t3,d3,VZ,t7j,gYI,LY,lz,w3,pY,ZRq,krI,dkL,zc,iz,Jel,V7j,$kJ,W6L,IG,Q0j,lRT,L6y,q4,vE,wz4,CY,x0,Xz4,BJL,C2l,M4,Y0,DkI,Px,J3,ht,cx,s04,F64,mk4,Do,$0,M7L,nV,yT,u$4,K64,Tg,fV,ehj,QZ,At,ORL,CV,xkL,Gg,yez,nYT,ceJ,EL,rO4,tt,XZq,Tnj,AOy,U5I,OL,dC,Jt,kd,VT,$d,CD4,QT,E_L,Wx,tH4,Yd,bAT,wC,pV,kCq,iL,D5L,VHq,xd,$54,l3N,uL,ez,aS,B8,LPI,hQ,c8,TB,Xr,fw,AQ,Yi3,UN,Cw,zhz,GB,EN,Nnz,x54,bS,tQ,I34,HAL,qiq,v_l,Zk,ON,Rhy,Si4,sjj,Dk,Vi,W8,lS,m53,FPI,Lw,Ye, wa,pw,MHI,jjq,iS,ulT,KPO,zB,a94,efz,ro4,N0,BpL,PfN,hfT,xe,IS,coI,n$y,yoL,H8,q0,v8,TpJ,f9z,RS,AoL,sN,U$L,Cfl,Sz,mW,Fr,M0,btj,g$j,GyL,tjL,ZtI,E$y,Otj,kyL,jz,d$j,D$4,QXj,l9j,WJj,hH,B$,no,Y$T,yQ,T2,Xc,p23,fo,itq,w2N,AH,x$I,UR,Co,I9N,G2,HtL,qEq,mKy,v$4,q$N,S$4,RfT,sXO,ER,b3,tH,go,m$j,jXT,kA,JH,DZ,KJq,uON,ZZ,erl,adl,rMl,BSl,VQ,AMq,tvz,Lo,gky,Kw,OWL,kZ3,dEN,JMN,DEq,wo,VvL,po,i3,z2,$EL,IN,QOq,WHj,H$,qa,ldJ,LH4,Ykj,w5j,p5O,v$,xA,iWj,zr4,RN,xEO,IdN,HWL,S6,qk4,vkO,Rrz,SkL,sOy,mEO,FHO,Mvj,jOz,uHy,sR,eeT,mz,r2q, a54,BjL,PlJ,c2L,u3,KHj,Fc,Ko,oEz,nEO,y2J,ec,TjT,ax,rt,Pu,Bu,hr,XOJ,cu,f5q,nP,EEI,gEO,Zzj,Ozz,kaz,Xo,dzz,tfj,GaL,J2O,y_,Dzl,$zN,ox,Tj,Uzq,Cll,fP,QlO,Wx4,bzL,A24,l5L,Ua,Lxj,CP,Gj,Yx4,Ea,izj,wOI,pOj,bj,zeq,tr,gt,ZY,Oa,NjL,xz4,I5N,kb,qx4,vE4,dt,Re4,Jr,DY,Sxj,slN,mzJ,Fxl,Mfj,jlL,rGN,KxL,VjL,$b,BVL,hlz,el3,a0O,ueT,lj,TV4,Wu,Q_,PPl,f0y,yGT,n1I,o13,cGy,Yb,AG4,uS,wt,pP,ij,URI,zj,CPO,Nb,GAj,oN,E13,xb,aN,P$,Jol,qb,Rx,g1l,Znj,Sc,mr,vu,Hu,Fo,Ix,bnN,tDy,Mb,OnL,kA4,j6,heT,e6,jc,dR3,sa,JGq,DRI,VDy,$Rz,uj,KP,Q1O, Wdz,l04,Ldq,Yt4,Vfz,l3,ah,rq,eR,pMq,zfz,Np3,Pt,inO,zl4,NVl,xRj,Bt,I0L,hF,Hn4,v1j,ct,Rlz,Sty,ya,mR4,n2,AF,MD3,FdI,eVL,uZJ,am4,rZ4,j1z,KdN,PXO,UI,BdL,cZj,hVT,C2,NSy,oGO,nGj,yZ4,Td3,Xb4,AZI,UgN,CX4,GFT,EGT,fmq,Gi,MjI,EI,gG4,bn,tPL,ZQL,OQT,FJO,OR,kFO,dgO,gq,lmL,WOy,vt,LOL,Qmy,iQN,zVj,Ndj,xgI,Imj,HQO,qAL,vGL,RVj,SAl,smq,mg4,FOL,MPO,sI,tF,uUj,KOI,Rh,aoL,jm4,SR,r3I,Pzj,c34,y34,o0z,F1,T34,MD,B3q,m3,jR,hoJ,K2,A33,CzI,U4q,GcT,foz,E04,bY4,ttO,g04,ZYT,kc4,d44,OY3,D4z,$4j,Vtj,LRN,WRq,J3z,QGI,YTL,lo3,wEy,pET,iYI, x43,N3T,zoL,eQ,IoJ,HYq,qTj,v0l,Roj,sGz,FRj,Mtl,jGI,uLN,KRT,aR,eM4,aaq,PL4,BCl,hu,ctI,oR,ndy,yt4,TC4,XxL,Aty,faz,Ggy,Edz,bVj,tn4,nJ,gdL,UY4,CLj,OVq,kgJ,dYy,Jt3,DY4,Vnj,Ma,$Y3,QkJ,WuI,Lul,laj,YL3,pxj,iVN,wxI,un,Ti,NCL,xYJ,IaN,mYO,vdJ,RMJ,SL3,Fuy,jk4,XMz,Tq,qLO,HVq,Mn4,c$,skO,V_,ro,n0q,rQL,ak4,PSN,Baj,cQ4,oeL,ZVz,f2,X1,Ku3,nej,eRI,yQl,oh,b2z,qtJ,XEJ,uI4,s14,UM,CJ,gU4,Gq,Z2O,O2L,kiO,dDJ,JFI,VR3,$Dl,L3q,QhO,lML,YIl,bH,zKJ,ptN,i24,IMN,H24,qIO,tu,vUl,EM,RKO,xDI,wtJ,gY,SII,W3I,shI,ZC,F3J,mD4,jhy,u14,K3L, MRL,OM,ruj,aC3,hTj,BYj,PH3,cuq,oVN,kV,nV4,yuz,X7j,fCO,TYz,Auj,bJ3,CH4,Gqy,EVJ,tQz,gV4,ZJj,kqy,OJN,dnj,Juq,dY,Dny,VQI,QRy,$nJ,WZy,lCL,YMq,w74,iJT,NYN,p7N,xn3,IC4,HJI,LZJ,qMy,zT3,DC,vVN,RT4,SMj,sRL,$V,FZl,mn4,MQO,jRI,uR4,aJO,KZO,B23,QE,ezO,hz3,W7,T24,cmJ,LJ,YV,Xvy,lH,fJL,wY,CZ4,UpI,n7j,ymj,GOJ,E7T,bcj,o74,tij,pJ,g7q,AmL,odI,VE,OcJ,kOj,dp3,Jmq,DpJ,ViJ,$pq,Qn4,WX4,lJN,LX4,wv4,pvj,ic4,Y0L,zzz,N2j,xpO,IJL,HcL,q0J,S0O,RzO,v7L,snT,Nn,F9L,mp3,FXN,xV,Mij,jn4,H7,e2q,aDL,qn,P6j,BPj,rhy,KXI,v7,IR,uSL,sM,RR,h2j, mZ,SQ,yhz,fDO,UGT,C6L,Epy,opL,Ah3,bkz,npN,tKy,gpO,ZkJ,KJ,FR,dGL,Jh4,OkL,jQ,VK4,$Gl,Xp4,TPL,DGj,Q7N,Ghj,khj,chz,ei,an,r2,WGz,Pv,ikI,Y4T,z2y,wpl,LGl,NPN,lDq,HkT,xG3,Bv,q44,R2O,s74,mGI,j73,nc,uaL,FGq,uH,aW4,rd4,Am,eol,hm,PuT,BXL,cdq,hq4,ozy,eql,TO,nzJ,ydJ,TXy,fWy,X6y,zMN,yK,AdL,CuO,UwJ,Ezz,Gbz,S4T,toI,b1J,XS,cv,gzy,Cc,Z13,O1z,kbL,dwL,JdJ,U0,MK3,tRJ,Mn,DwL,GO,Voj,$w3,QWy,WIy,lWL,LIT,E0,bZ,p6y,i1z,zqO,YU3,w6L,tm,H1T,xwN,IWl,qUq,vzq,g2,RqN,SUT,sWJ,ZJ,mw4,Moy,jWj,uxT,O0,FIl,k7,d2,KIl,e5T,aiy,rbj,Pc4,Bzz, h53,VK,Jm,DJ,cbI,$7,ow3,nw4,ybO,XFL,Tz4,w2,Abj,U3L,fiq,Cc4,pc,G9O,iZ,EwJ,zO,biL,tZy,Oiq,Jbq,gwL,k9z,Np,Ziq,d33,D3l,VZz,$3q,QAL,In,W$3,vv,Hv,liI,Rn,Si,Y8N,wFI,mX,FS,pFz,s0,Mp,z5N,iiq,uZ,Kc,eK,IiJ,Nz4,x3J,a7,HiO,S8j,vwy,q8T,R53,rP,m3O,uqL,K$3,Pp,eIL,F$q,agN,Bp,MZl,BZ4,hh,cp,hIq,cNJ,oS4,nS4,yNL,yn,fgI,ANT,UCL,Th,X0L,ES3,nk,Xa,fk,TZ3,gSO,tFq,E4,ZFL,kLT,JNq,OFT,b6,Ck,gP,Gh,dCT,th,DC4,ZD,VFj,$Cz,QYy,O4,kp,W_T,lgJ,L_j,YJJ,w0J,p0J,iFL,xCq,zIj,Igl,HFI,RIy,SJI,K_N,wP,rRz,hv4,BU4,PCN,jYl,ujq,sYL,F_L,evL,pk, i6,oJL,Rk,g_4,nJz,NG,I7,yRl,TUL,mCj,ax3,fx4,ARy,U6T,Hp,Fa,GdI,EJy,bSj,MG,tTO,ZSJ,gJl,OSO,jK,u6,kdL,D6q,VTT,aW,JRl,$64,Qwj,d64,B6,WhI,lx3,P6,LhL,YFL,wGl,pGl,zvN,iSz,IxN,HST,NUL,vJT,RvI,x6O,oW,n1,SFl,Fhj,Tb,m6O,swj,MTq,uCj,jw3,KhN,Xx,e1T,aqN,rIl,PWl,B03,h1q,cI3,niL,oiq,yI4,T0L,XTN,fqO,AIy,CWz,Ad,f1,UU,GML,EiI,UHy,Odl,kMy,dH3,V8j,DHL,JIJ,$HL,QpL,C1,Gb,WFj,lqL,LFj,YQ3,pT4,idL,bu,z1L,EU,gX,wTq,ZW,N0j,xHy,Iq3,Hdq,qQ3,OU,vi4,R1I,mHl,kz,FFj,spL,dX,Jd,DW,jpz,uFN,KF4,M8O,azT,ejO,r9j,Vt,PUz,Bg4,c9y,y9L,hjL, otL,$z,Tgz,fzT,A9j,CUN,GlL,Qt,W6,Et3,XlO,gt3,tJj,bxj,lu,L1,OxJ,Zx3,Yz,wX,p1,klJ,iu,dLz,J9J,DLJ,VJj,zb,$LT,Nw,QLz,xz,WCl,IW,H6,lzJ,qw,LCO,v6,RW,wly,zjl,NgO,Yzj,xLL,qz4,vtT,RjL,Hx4,IzJ,sLJ,Szy,mLN,jL3,mI,KCl,uyj,FCj,MJj,euN,a2N,Fx,Mw,ryT,P1q,B$q,huO,cyI,o5O,yyq,T$J,bqL,AyI,Umq,XY4,g54,rz,BF,Jyj,DmT,ni,VdL,yl,$ml,Zqj,aA,fi,Xq,cF,W84,l23,Ab,Y_4,pYI,wYI,U8,oA,eZ,L8N,T9,Oqq,Q3l,zuq,jo,Ci,N$O,xmN,PF,k_z,G9,E8,I2I,bc,tb,gz,Hq4,q_N,RuL,S_I,v5j,Zi,s3L,O8,kw,mmL,F8L,Md3,j34,K8O,es3,r$q,aAO,PmL,Jb,dz,uYq,BD3, c$L,hsO,Di,Vl,ovL,y$3,TDl,$w,nvN,XX4,fAL,UF4,Ql,A$j,Cmj,GvL,EvT,lc,Li,tx3,bbI,gvO,Yw,wz,Obl,Zb4,kvy,J$L,dF3,DFq,ic,VxJ,$FN,N3,QCj,lAL,WL4,IA,LLN,YBj,wXy,ibL,zsl,NDj,pX4,xFq,IA4,Hbj,qBz,vvz,Rsq,SBN,sC4,mF4,vF,FLL,Mxj,jC4,KLI,PM3,arq,uGJ,s8,eiL,SZ,r8L,m$,hi4,BBL,Fq,ooq,no4,y8O,Un4,Ki,WPT,jZ,eF,uc,rZ,TBq,P0,CMq,GfL,Eoj,t4y,bM4,go4,ZM3,OM3,dZl,J83,DZT,V4j,kfO,wqq,pqL,Y6N,iMq,NB4,IrJ,HML,q6q,nF,xZ3,ziT,$Zy,yY,S6L,soJ,RiL,vo3,M4j,FBL,joz,uAL,KBy,e4O,TL,avI,lrN,c0,rj3,Prz,BKT,h43,Qoy,WB3,oY,na3,yj3,TKO, XLj,cjq,Xj,oaL,Ajy,EaL,AN,b9N,tIL,CrJ,CF,gaN,Z9j,fvz,O93,GUl,kUz,GL,UJ,d24,D2I,JjN,fF,$2z,EJ,KGL,Qvz,Lyz,lvO,wLL,pL3,Y1L,tN,bV,z4O,NKq,x2O,Iv4,MIq,S1y,svN,vaN,q1L,OJ,eUL,uk4,abj,rY4,Zg,dZ,JN,cYj,hUj,B5j,VY,Fy4,lV,nyO,W0,Dg,T53,Xg4,fbO,jvy,wZ,iV,AYq,m2j,oy4,$S,UVT,kS,C$O,GN4,EyN,xS,yYl,bIL,tM4,IY,H0,gyl,QY,Ky4,ZII,OI3,pF,kN3,LF,dVj,YS,LV,JYJ,VMq,qC,v0,$Vy,QiN,WEj,NC,zL,lbj,Wy3,LE4,R4j,Yfz,wgy,pgT,iIL,RY,SF,xVz,qfj,RUz,N5T,KE4,e$q,afL,rfq,PKN,BRj,h$j,on4,cfT,sJ,m_,Fj,nnl,yfL,TRL,Eq,XkJ,MC,ffL,jF,Afj, uV,KF,US4,yN,eT,pm,CKL,m6,zm4,GwL,DR,EnN,cm,oI,bsL,dn,t1L,gnI,F$,RZ4,Zs4,Osz,kwO,aw,JfJ,DSj,rU,BG,hR,V1L,Wt4,lfN,cG,LtO,$ST,wkL,Qej,YSJ,pk4,isI,z$j,NRl,ow,IfL,Yr4,nH,Jc,Hs4,qSO,$D,xSL,CH,vny,R$T,SS4,nS,vi,mSj,Ft4,y4,Td,M1J,XC,fS,PG,jeq,uV4,BLI,AR,UF,Ktq,CS,Gd,eyG,EF,alN,bC,tR,rzG,PqN,LcL,gU,B4a,czN,hyw,Zx,OF,oNM,kJ,nN9,yzV,T49,XIB,flG,Azl,CqN,JR,UjG,GJM,ENN,bLl,tLN,kJM,gNb,ZLb,OL5,JzZ,VL8,$jB,QTN,Dj9,Dx,WjB,llb,Lja,YON,wIB,$J,pI9,Q4,WG,lC,iLN,zyB,xjG,IlG,HLG,qOM,Ryw,vN5,SO9,LS,YJ,FjG,sTV,mj5,wU,MLV, jTl,pS,iC,u4V,zd,KjM,N6,e8G,xJ,Iw,aBl,HG,q6,rwZ,PNa,vG,Rw,BbN,ST,h88,cwB,M6,jT,o9G,n9G,ywl,fBa,XBG,uC,Awa,UMG,CNN,H3T,TbM,E9V,b55,g9w,ey3,TJ;eL=function(e){return function(){return ey3[e].apply(this,arguments)}}; g.BI=function(e,a){return ey3[e]=a}; alq=function(e){var a=0;return function(){return a=this.length))return this[e]}; Mj=function(e){return e?e:mj}; Azj=function(e,a,r){e instanceof String&&(e=String(e));for(var P=e.length-1;P>=0;P--){var B=e[P];if(a.call(r,B,P,e))return{Np:P,Jw:B}}return{Np:-1,Jw:void 0}}; jL=function(e){return e?e:function(a,r){return Azj(this,a,r).Np}}; g.KL=function(e,a,r){e=e.split(".");r=r||g.uq;for(var P;e.length&&(P=e.shift());)e.length||a===void 0?r[P]&&r[P]!==Object.prototype[P]?r=r[P]:r=r[P]={}:r[P]=a}; PB=function(e,a){var r=g.aZ("CLOSURE_FLAGS");e=r&&r[e];return e!=null?e:a}; g.aZ=function(e,a){e=e.split(".");a=a||g.uq;for(var r=0;r2){var P=Array.prototype.slice.call(arguments,2);return function(){var B=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(B,P);return e.apply(a,B)}}return function(){return e.apply(a,arguments)}}; g.yG=function(e,a,r){g.yG=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?GJj:ENq;return g.yG.apply(null,arguments)}; g.TV=function(e,a){var r=Array.prototype.slice.call(arguments,1);return function(){var P=r.slice();P.push.apply(P,arguments);return e.apply(this,P)}}; g.f5=function(){return Date.now()}; Aw=function(e){return e}; g.UG=function(e,a){function r(){} r.prototype=a.prototype;e.Tl=a.prototype;e.prototype=new r;e.prototype.constructor=e;e.YL=function(P,B,h){for(var c=Array(arguments.length-2),y=2;y=0;--r)r in P&&a.call(void 0,P[r],r,e)}; g.tw=function(e,a,r){a=bN(e,a,r);return a<0?null:typeof e==="string"?e.charAt(a):e[a]}; bN=function(e,a,r){for(var P=e.length,B=typeof e==="string"?e.split(""):e,h=0;h=0;P--)if(P in B&&a.call(r,B[P],P,e))return P;return-1}; g.ZB=function(e,a){return OLL(e,a)>=0}; kJj=function(e){if(!Array.isArray(e))for(var a=e.length-1;a>=0;a--)delete e[a];e.length=0}; g.k9=function(e,a){a=OLL(e,a);var r;(r=a>=0)&&g.OG(e,a);return r}; g.OG=function(e,a){return Array.prototype.splice.call(e,a,1).length==1}; g.$9=function(e,a){a=bN(e,a);a>=0&&g.OG(e,a)}; dj4=function(e,a){var r=0;ZL4(e,function(P,B){a.call(void 0,P,B,e)&&g.OG(e,B)&&r++})}; g.QG=function(e){return Array.prototype.concat.apply([],arguments)}; g.WB=function(e){var a=e.length;if(a>0){for(var r=Array(a),P=0;P>>1),T=void 0;r?T=a.call(void 0,e[y],y,e):T=a(P,e[y]);T>0?B=y+1:(h=y,c=!T)}return c?B:-B-1}; g.Sa=function(e,a){e.sort(a||x9)}; VLy=function(e,a){var r=x9;g.Sa(e,function(P,B){return r(a(P),a(B))})}; g.sG=function(e,a,r){if(!g.BB(e)||!g.BB(a)||e.length!=a.length)return!1;var P=e.length;r=r||$jI;for(var B=0;Ba?1:e0&&(a[B]=P)},e); return a}; N44=function(e){e=VI(e);var a=[];g.K5(e,function(r,P){P in Object.prototype||typeof r!="undefined"&&a.push([P,":",r].join(""))}); return a}; Il3=function(e){d6(e,"od",xj3);d6(e,"opac",$s).S=!0;d6(e,"sbeos",$s).S=!0;d6(e,"prf",$s).S=!0;d6(e,"mwt",$s).S=!0;d6(e,"iogeo",$s)}; QI=function(e,a){return e.lastIndexOf(a,0)==0}; HLO=function(e,a){var r=e.length-a.length;return r>=0&&e.indexOf(a,r)==r}; g.Wd=function(e){return/^[\s\xa0]*$/.test(e)}; g.lO=function(e,a){return e.indexOf(a)!=-1}; Ys=function(e,a){return g.lO(e.toLowerCase(),a.toLowerCase())}; g.iO=function(e,a){var r=0;e=w6(String(e)).split(".");a=w6(String(a)).split(".");for(var P=Math.max(e.length,a.length),B=0;r==0&&Ba?1:0}; g.zX=function(){var e=g.uq.navigator;return e&&(e=e.userAgent)?e:""}; vd=function(e){if(!N7&&!xs||!q7)return!1;for(var a=0;a0:!1}; sH=function(){return SB()?!1:RQ("Opera")}; qOj=function(){return SB()?!1:RQ("Trident")||RQ("MSIE")}; vNL=function(){return SB()?vd("Microsoft Edge"):RQ("Edg/")}; m1=function(){return RQ("Firefox")||RQ("FxiOS")}; M7=function(){return RQ("Safari")&&!(F7()||(SB()?0:RQ("Coast"))||sH()||(SB()?0:RQ("Edge"))||vNL()||(SB()?vd("Opera"):RQ("OPR"))||m1()||RQ("Silk")||RQ("Android"))}; F7=function(){return SB()?vd("Chromium"):(RQ("Chrome")||RQ("CriOS"))&&!(SB()?0:RQ("Edge"))||RQ("Silk")}; Ryz=function(){return RQ("Android")&&!(F7()||m1()||sH()||RQ("Silk"))}; SON=function(e){var a={};e.forEach(function(r){a[r[0]]=r[1]}); return function(r){return a[r.find(function(P){return P in a})]||""}}; sTJ=function(e){var a=g.zX();if(e==="Internet Explorer"){if(qOj())if((e=/rv: *([\d\.]*)/.exec(a))&&e[1])a=e[1];else{e="";var r=/MSIE +([\d\.]+)/.exec(a);if(r&&r[1])if(a=/Trident\/(\d.\d)/.exec(a),r[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":e="8.0";break;case "5.0":e="9.0";break;case "6.0":e="10.0";break;case "7.0":e="11.0"}else e="7.0";else e=r[1];a=e}else a="";return a}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");r=[];for(var B;B=P.exec(a);)r.push([B[1],B[2],B[3]||void 0]); a=SON(r);switch(e){case "Opera":if(sH())return a(["Version","Opera"]);if(SB()?vd("Opera"):RQ("OPR"))return a(["OPR"]);break;case "Microsoft Edge":if(SB()?0:RQ("Edge"))return a(["Edge"]);if(vNL())return a(["Edg"]);break;case "Chromium":if(F7())return a(["Chrome","CriOS","HeadlessChrome"])}return e==="Firefox"&&m1()||e==="Safari"&&M7()||e==="Android Browser"&&Ryz()||e==="Silk"&&RQ("Silk")?(a=r[2])&&a[1]||"":""}; mjL=function(e){if(SB()&&e!=="Silk"){var a=q7.brands.find(function(r){return r.brand===e}); if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=sTJ(e);if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])}; MLJ=function(){var e=null;if(!Fj3)return e;try{var a=function(r){return r}; e=Fj3.createPolicy("goog#html",{createHTML:a,createScript:a,createScriptURL:a})}catch(r){}return e}; uO=function(){jB===void 0&&(jB=MLJ());return jB}; Kf=function(e){this.S=e}; er=function(e){var a=uO();e=a?a.createScriptURL(e):e;return new Kf(e)}; rf=function(e){if(e instanceof Kf)return e.S;throw Error("");}; PR=function(e){this.S=e}; g.BR=function(e){if(e instanceof PR)return e.S;throw Error("");}; hU=function(e){this.Fw=e}; cR=function(e){return new hU(function(a){return a.substr(0,e.length+1).toLowerCase()===e+":"})}; g.oD=function(e,a){a=a===void 0?jTj:a;a:if(a=a===void 0?jTj:a,!(e instanceof PR)){for(var r=0;r4);B++)a[JU(e[B])]||(r+="\nInner error "+P++ +": ",e[B].stack&&e[B].stack.indexOf(e[B].toString())==0||(r+=typeof e[B]==="string"?e[B]:e[B].message+"\n"),r+=k8(e[B],a));B")!=-1&&(e=e.replace(ywj,">")),e.indexOf('"')!=-1&&(e=e.replace(Tbj,""")),e.indexOf("'")!=-1&&(e=e.replace(XBO,"'")),e.indexOf("\x00")!=-1&&(e=e.replace(fBL,"�")));return e}; g.lF=function(e){return e==null?"":String(e)}; LD=function(e){for(var a=0,r=0;r>>0;return a}; Y8=function(e){var a=Number(e);return a==0&&g.Wd(e)?NaN:a}; AwL=function(e){return String(e).replace(/\-([a-z])/g,function(a,r){return r.toUpperCase()})}; UMO=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; CNq=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(a,r,P){return r+P.toUpperCase()})}; GVj=function(e){var a=1;e=e.split(":");for(var r=[];a>0&&e.length;)r.push(e.shift()),a--;e.length&&r.push(e.join(":"));return r}; wf=function(){return N7||xs?!!q7&&!!q7.platform:!1}; E9J=function(){return wf()?q7.platform==="Android":RQ("Android")}; pD=function(){return RQ("iPhone")&&!RQ("iPod")&&!RQ("iPad")}; iF=function(){return pD()||RQ("iPad")||RQ("iPod")}; z1=function(){return wf()?q7.platform==="macOS":RQ("Macintosh")}; b5L=function(){return wf()?q7.platform==="Windows":RQ("Windows")}; Nv=function(e){Nv[" "](e);return e}; taT=function(e,a){try{return Nv(e[a]),!0}catch(r){}return!1}; Z5T=function(e,a){var r=g9z;return Object.prototype.hasOwnProperty.call(r,e)?r[e]:r[e]=a(e)}; g.x8=function(e){return Z5T(e,function(){return g.iO(O5L,e)>=0})}; g.ID=function(e,a,r){return Math.min(Math.max(e,a),r)}; g.HR=function(e,a){e%=a;return e*a<0?e+a:e}; qv=function(e,a,r){return e+r*(a-e)}; g.vR=function(e,a){this.x=e!==void 0?e:0;this.y=a!==void 0?a:0}; RD=function(e,a){return e==a?!0:e&&a?e.x==a.x&&e.y==a.y:!1}; g.Sr=function(e,a){this.width=e;this.height=a}; g.sZ=function(e,a){return e==a?!0:e&&a?e.width==a.width&&e.height==a.height:!1}; m4=function(e){return e.width*e.height}; Mv=function(e,a){this.S=e===F8&&a||""}; jr=function(e){if(e instanceof fD)return e;e=String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return AU(e)}; dML=function(e){return kV4(e)}; kV4=function(e){var a=jr("");return AU(e.map(function(r){return UZ(jr(r))}).join(UZ(a).toString()))}; QZ4=function(e){var a;if(!Jwj.test("div"))throw Error("");if(DM4.indexOf("DIV")!==-1)throw Error("");var r="":(e=dML(a.map(function(P){return P instanceof fD?P:jr(String(P))})),r+=">"+e.toString()+""); return AU(r)}; Vaq=function(e){for(var a="",r=Object.keys(e),P=0;P2&&i54(B,c,P,2);return c}; i54=function(e,a,r,P){function B(y){y&&a.appendChild(typeof y==="string"?e.createTextNode(y):y)} for(;P0)B(h);else{a:{if(h&&typeof h.length=="number"){if(g.hw(h)){var c=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){c=typeof h.item=="function";break a}}c=!1}g.FN(c?g.WB(h):h,B)}}}; g.U9=function(e){return fO(document,e)}; fO=function(e,a){a=String(a);e.contentType==="application/xhtml+xml"&&(a=a.toLowerCase());return e.createElement(a)}; g.CO=function(e){return document.createTextNode(String(e))}; g.G7=function(e,a){e.appendChild(a)}; g.E9=function(e){for(var a;a=e.firstChild;)e.removeChild(a)}; bd=function(e,a,r){e.insertBefore(a,e.childNodes[r]||null)}; g.t5=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}; g.gy=function(e,a){if(!e||!a)return!1;if(e.contains&&a.nodeType==1)return e==a||e.contains(a);if(typeof e.compareDocumentPosition!="undefined")return e==a||!!(e.compareDocumentPosition(a)&16);for(;a&&e!=a;)a=a.parentNode;return a==e}; e2=function(e){return e.nodeType==9?e:e.ownerDocument||e.document}; g.ZF=function(e,a){if("textContent"in e)e.textContent=a;else if(e.nodeType==3)e.data=String(a);else if(e.firstChild&&e.firstChild.nodeType==3){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(a)}else g.E9(e),e.appendChild(e2(e).createTextNode(String(a)))}; NbJ=function(e){return e.tagName=="A"&&e.hasAttribute("href")||e.tagName=="INPUT"||e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="BUTTON"?!e.disabled&&(!e.hasAttribute("tabindex")||z8N(e)):e.hasAttribute("tabindex")&&z8N(e)}; z8N=function(e){e=e.tabIndex;return typeof e==="number"&&e>=0&&e<32768}; DF=function(e,a,r){if(!a&&!r)return null;var P=a?String(a).toUpperCase():null;return O9(e,function(B){return(!P||B.nodeName==P)&&(!r||typeof B.className==="string"&&g.ZB(B.className.split(/\s+/),r))},!0)}; O9=function(e,a,r){e&&!r&&(e=e.parentNode);for(r=0;e;){if(a(e))return e;e=e.parentNode;r++}return null}; KD=function(e){this.S=e||g.uq.document||document}; xML=function(){this.S=this.HT=null}; Vf=function(){}; Qf=function(){if(!$H())throw Error();}; $H=function(){return!(!Wo||!Wo.performance)}; IBj=function(e){return g.T7?"webkit"+e:e.toLowerCase()}; ld=function(e){return function(){return e}}; g.LO=function(){}; H5q=function(e){var a=a||0;return function(){return e.apply(this,Array.prototype.slice.call(arguments,0,a))}}; YH=function(e){var a=!1,r;return function(){a||(r=e(),a=!0);return r}}; wy=function(e){var a=e;return function(){if(a){var r=a;a=null;r()}}}; pO=function(e,a,r){var P=0;return function(B){g.uq.clearTimeout(P);var h=arguments;P=g.uq.setTimeout(function(){e.apply(r,h)},a)}}; id=function(e,a,r,P){this.top=e;this.right=a;this.bottom=r;this.left=P}; z7=function(e){return e.right-e.left}; Nh=function(e,a){return e==a?!0:e&&a?e.top==a.top&&e.right==a.right&&e.bottom==a.bottom&&e.left==a.left:!1}; xH=function(e,a,r){a instanceof g.vR?(e.left+=a.x,e.right+=a.x,e.top+=a.y,e.bottom+=a.y):(e.left+=a,e.right+=a,typeof r==="number"&&(e.top+=r,e.bottom+=r));return e}; g.I8=function(e,a,r,P){this.left=e;this.top=a;this.width=r;this.height=P}; Ho=function(e,a){return e==a?!0:e&&a?e.left==a.left&&e.width==a.width&&e.top==a.top&&e.height==a.height:!1}; g.vo=function(e,a,r){if(typeof a==="string")(a=qh(e,a))&&(e.style[a]=r);else for(var P in a){r=e;var B=a[P],h=qh(r,P);h&&(r.style[h]=B)}}; qh=function(e,a){var r=qGL[a];if(!r){var P=AwL(a);r=P;e.style[P]===void 0&&(P=(g.T7?"Webkit":R8?"Moz":null)+CNq(P),e.style[P]!==void 0&&(r=P));qGL[a]=r}return r}; g.S2=function(e,a){var r=e.style[AwL(a)];return typeof r!=="undefined"?r:e.style[qh(e,a)]||""}; s9=function(e,a){var r=e2(e);return r.defaultView&&r.defaultView.getComputedStyle&&(e=r.defaultView.getComputedStyle(e,null))?e[a]||e.getPropertyValue(a)||"":""}; FW=function(e,a){return s9(e,a)||(e.currentStyle?e.currentStyle[a]:null)||e.style&&e.style[a]}; g.j2=function(e,a,r){if(a instanceof g.vR){var P=a.x;a=a.y}else P=a,a=r;e.style.left=g.Mh(P,!1);e.style.top=g.Mh(a,!1)}; ud=function(e){try{return e.getBoundingClientRect()}catch(a){return{left:0,top:0,right:0,bottom:0}}}; v9N=function(e){var a=e2(e),r=FW(e,"position"),P=r=="fixed"||r=="absolute";for(e=e.parentNode;e&&e!=a;e=e.parentNode)if(e.nodeType==11&&e.host&&(e=e.host),r=FW(e,"position"),P=P&&r=="static"&&e!=a.documentElement&&e!=a.body,!P&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight||r=="fixed"||r=="absolute"||r=="relative"))return e;return null}; g.KO=function(e){var a=e2(e),r=new g.vR(0,0);if(e==(a?e2(a):document).documentElement)return r;e=ud(e);a=a8(a);a=pBq(a.S);r.x=e.left+a.x;r.y=e.top+a.y;return r}; SGl=function(e,a){var r=new g.vR(0,0),P=XW(e2(e));if(!taT(P,"parent"))return r;do{var B=P==a?g.KO(e):R8T(e);r.x+=B.x;r.y+=B.y}while(P&&P!=a&&P!=P.parent&&(e=P.frameElement)&&(P=P.parent));return r}; g.eN=function(e,a){e=sZq(e);a=sZq(a);return new g.vR(e.x-a.x,e.y-a.y)}; R8T=function(e){e=ud(e);return new g.vR(e.left,e.top)}; sZq=function(e){if(e.nodeType==1)return R8T(e);e=e.changedTouches?e.changedTouches[0]:e;return new g.vR(e.clientX,e.clientY)}; g.ab=function(e,a,r){if(a instanceof g.Sr)r=a.height,a=a.width;else if(r==void 0)throw Error("missing height argument");e.style.width=g.Mh(a,!0);e.style.height=g.Mh(r,!0)}; g.Mh=function(e,a){typeof e=="number"&&(e=(a?Math.round(e):e)+"px");return e}; g.rF=function(e){var a=mMz;if(FW(e,"display")!="none")return a(e);var r=e.style,P=r.display,B=r.visibility,h=r.position;r.visibility="hidden";r.position="absolute";r.display="inline";e=a(e);r.display=P;r.position=h;r.visibility=B;return e}; mMz=function(e){var a=e.offsetWidth,r=e.offsetHeight,P=g.T7&&!a&&!r;return(a===void 0||P)&&e.getBoundingClientRect?(e=ud(e),new g.Sr(e.right-e.left,e.bottom-e.top)):new g.Sr(a,r)}; g.PQ=function(e,a){e.style.display=a?"":"none"}; BQ=function(e){return e?e.passive&&Flq()?e:e.capture||!1:!1}; hK=function(e,a,r,P){return typeof e.addEventListener==="function"?(e.addEventListener(a,r,BQ(P)),!0):!1}; cQ=function(e){if(e.prerendering)return 3;var a;return(a={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||""])!=null?a:0}; MaO=function(){}; ob=function(e){e.MrF=!0;return e}; jZ3=function(){return(N7||xs)&&q7?q7.mobile:!T6()&&(RQ("iPod")||RQ("iPhone")||RQ("Android")||RQ("IEMobile"))}; T6=function(){return(N7||xs)&&q7?!q7.mobile&&(RQ("iPad")||RQ("Android")||RQ("Silk")):RQ("iPad")||RQ("Android")&&!RQ("Mobile")||RQ("Silk")}; Xs=function(e){try{return!!e&&e.location.href!=null&&taT(e,"foo")}catch(a){return!1}}; fg=function(e,a){if(e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a(e[r],r,e)}; Klz=function(){var e=[];fg(uNJ,function(a){e.push(a)}); return e}; e0T=function(e){var a,r;return(r=(a=/https?:\/\/[^\/]+/.exec(e))==null?void 0:a[0])!=null?r:""}; POL=function(){var e=aGl("IFRAME"),a={};g.FN(rk3(),function(r){e.sandbox&&e.sandbox.supports&&e.sandbox.supports(r)&&(a[r]=!0)}); return a}; aGl=function(e,a){a=a===void 0?document:a;return a.createElement(String(e).toLowerCase())}; B64=function(e){for(var a=e;e&&e!=e.parent;)e=e.parent,Xs(e)&&(a=e);return a}; nsJ=function(e){e=e||AK();for(var a=new h0I(g.uq.location.href,!1),r=null,P=e.length-1,B=P;B>=0;--B){var h=e[B];!r&&ck3.test(h.url)&&(r=h);if(h.url&&!h.S){a=h;break}}B=null;h=e.length&&e[P].url;a.depth!==0&&h&&(B=e[P]);return new osz(a,B,r)}; AK=function(){var e=g.uq,a=[],r=null;do{var P=e;if(Xs(P)){var B=P.location.href;r=P.document&&P.document.referrer||null}else B=r,r=null;a.push(new h0I(B||""));try{e=P.parent}catch(h){e=null}}while(e&&P!==e);P=0;for(e=a.length-1;P<=e;++P)a[P].depth=e-P;P=g.uq;if(P.location&&P.location.ancestorOrigins&&P.location.ancestorOrigins.length===a.length-1)for(e=1;ea&&(a=r.length);return 3997-a-e.B.length-1}; E5=function(e,a){this.S=e;this.depth=a}; fGj=function(){function e(y,T){return y==null?T:y} var a=AK(),r=Math.max(a.length-1,0),P=nsJ(a);a=P.S;var B=P.T,h=P.B,c=[];h&&c.push(new E5([h.url,h.S?2:0],e(h.depth,1)));B&&B!=h&&c.push(new E5([B.url,2],0));a.url&&a!=h&&c.push(new E5([a.url,0],e(a.depth,r)));P=g.ba(c,function(y,T){return c.slice(0,c.length-T)}); !a.url||(h||B)&&a!=h||(B=e0T(a.url))&&P.push([new E5([B,1],e(a.depth,r))]);P.push([]);return g.ba(P,function(y){return XdN(r,y)})}; XdN=function(e,a){g.tK(a,function(B){return B.depth>=0}); var r=gF(a,function(B,h){return Math.max(B,h.depth)},-1),P=QT4(r+2); P[0]=e;g.FN(a,function(B){return P[B.depth+1]=B.S}); return P}; Aky=function(){var e=e===void 0?fGj():e;return e.map(function(a){return G6(a)})}; U7j=function(e){var a=!1;a=a===void 0?!1:a;Wo.google_image_requests||(Wo.google_image_requests=[]);var r=aGl("IMG",Wo.document);a&&(r.attributionSrc="");r.src=e;Wo.google_image_requests.push(r)}; ZX=function(e){var a="a4";if(e.a4&&e.hasOwnProperty(a))return e.a4;var r=new e;e.a4=r;e.hasOwnProperty(a);return r}; O5=function(){this.T=new MaO;this.S=$H()?new Qf:new Vf}; CO3=function(){ku();var e=Wo.document;return!!(e&&e.body&&e.body.getBoundingClientRect&&typeof Wo.setInterval==="function"&&typeof Wo.clearInterval==="function"&&typeof Wo.setTimeout==="function"&&typeof Wo.clearTimeout==="function")}; GXL=function(){ku();return Aky()}; EsI=function(){}; ku=function(){var e=ZX(EsI);if(!e.S){if(!Wo)throw Error("Context has not been set and window is undefined.");e.S=ZX(O5)}return e.S}; dF=function(){throw Error("Invalid UTF8");}; bfq=function(e,a){a=String.fromCharCode.apply(null,a);return e==null?a:e+a}; OfL=function(e){var a=!1;a=a===void 0?!1:a;if(tB4){if(a&&(gsj?!e.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e)))throw Error("Found an unpaired surrogate");e=(ZfO||(ZfO=new TextEncoder)).encode(e)}else{for(var r=0,P=new Uint8Array(3*e.length),B=0;B>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&B=56320&&c<=57343){h=(h-55296)*1024+ c-56320+65536;P[r++]=h>>18|240;P[r++]=h>>12&63|128;P[r++]=h>>6&63|128;P[r++]=h&63|128;continue}else B--}if(a)throw Error("Found an unpaired surrogate");h=65533}P[r++]=h>>12|224;P[r++]=h>>6&63|128}P[r++]=h&63|128}}e=r===P.length?P:P.subarray(0,r)}return e}; JK=function(e){g.uq.setTimeout(function(){throw e;},0)}; kXI=function(e){return Array.prototype.map.call(e,function(a){a=a.toString(16);return a.length>1?a:"0"+a}).join("")}; d7q=function(e){for(var a=[],r=0;r>6|192:((B&64512)==55296&&P+1>18|240,a[r++]=B>>12&63|128):a[r++]=B>>12|224,a[r++]=B>>6&63|128),a[r++]=B&63|128)}return a}; g.Vq=function(e,a){a===void 0&&(a=0);JkT();a=D7j[a];for(var r=Array(Math.floor(e.length/3)),P=a[64]||"",B=0,h=0;B>2];c=a[(c&3)<<4|y>>4];y=a[(y&15)<<2|T>>6];T=a[T&63];r[h++]=""+X+c+y+T}X=0;T=P;switch(e.length-B){case 2:X=e[B+1],T=a[(X&15)<<2]||P;case 1:e=e[B],r[h]=""+a[e>>2]+a[(e&3)<<4|X>>4]+T+P}return r.join("")}; g.$u=function(e,a,r){if(VB3&&!a)e=g.uq.btoa(e);else{for(var P=[],B=0,h=0;h255){var y=Error("go/unicode-to-byte-error");if(r)throw y;P[B++]=c&255;c>>=8}P[B++]=c}e=g.Vq(P,a)}return e}; QQz=function(e){var a=[];$7j(e,function(r){a.push(r)}); return a}; Qq=function(e){var a=e.length,r=a*3/4;r%3?r=Math.floor(r):g.lO("=.",e[a-1])&&(r=g.lO("=.",e[a-2])?r-2:r-1);var P=new Uint8Array(r),B=0;$7j(e,function(h){P[B++]=h}); return B!==r?P.subarray(0,B):P}; $7j=function(e,a){function r(T){for(;P>4);c!=64&&(a(h<<4&240|c>>2),y!=64&&a(c<<6&192|y))}}; JkT=function(){if(!WQ){WQ={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),a=["+/=","+/","-_=","-_.","-_"],r=0;r<5;r++){var P=e.concat(a[r].split(""));D7j[r]=P;for(var B=0;B=a||(P[e]=r+1,e=Error(),Bb4(e,"incident"),JK(e))}}; Nc=function(e,a,r){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(r===void 0?0:r)&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():a}; HQ=function(e,a){xu||Ib in e||x7L(e,IGO);e[Ib]|=a}; qc=function(e,a){xu||Ib in e||x7L(e,IGO);e[Ib]=a}; vQ=function(){return typeof BigInt==="function"}; SN=function(e,a){return a===void 0?e.S!==Rb&&!!(2&(e.uv[Ib]|0)):!!(2&a)&&e.S!==Rb}; Hfq=function(e,a){if(e!=null)if(typeof e==="string")e=e?new la(e,Lg):Yu();else if(e.constructor!==la)if(z0j&&e!=null&&e instanceof Uint8Array)e=e.length?new la(new Uint8Array(e),Lg):Yu();else{if(!a)throw Error();e=void 0}return e}; s5=function(e,a){if(typeof a!=="number"||a<0||a>=e.length)throw Error();}; qHl=function(e,a,r){var P=a&128?0:-1,B=e.length,h;if(h=!!B)h=e[B-1],h=h!=null&&typeof h==="object"&&h.constructor===Object;var c=B+(h?-1:0);for(a=a&128?1:0;aa.length)return!1;if(e.lengthB)return!1;if(P>>0;aU=a;rO=(e-a)/4294967296>>>0}; hC=function(e){if(e<0){PS(0-e);var a=g.Z(BS(aU,rO));e=a.next().value;a=a.next().value;aU=e>>>0;rO=a>>>0}else PS(e)}; oU=function(e,a){var r=a*4294967296+(e>>>0);return Number.isSafeInteger(r)?r:cS(e,a)}; sQy=function(e,a){var r=a&2147483648;r&&(e=~e+1>>>0,a=~a>>>0,e==0&&(a=a+1>>>0));e=oU(e,a);return typeof e==="number"?r?-e:e:r?"-"+e:e}; cS=function(e,a){a>>>=0;e>>>=0;if(a<=2097151)var r=""+(4294967296*a+e);else vQ()?r=""+(BigInt(a)<>>24|a<<8)&16777215,a=a>>16&65535,e=(e&16777215)+r*6777216+a*6710656,r+=a*8147497,a*=2,e>=1E7&&(r+=e/1E7>>>0,e%=1E7),r>=1E7&&(a+=r/1E7>>>0,r%=1E7),r=a+m7T(r)+m7T(e));return r}; m7T=function(e){e=String(e);return"0000000".slice(e.length)+e}; F1O=function(){var e=aU,a=rO;a&2147483648?vQ()?e=""+(BigInt(a|0)<>>0)):(a=g.Z(BS(e,a)),e=a.next().value,a=a.next().value,e="-"+cS(e,a)):e=cS(e,a);return e}; nU=function(e){if(e.length<16)hC(Number(e));else if(vQ())e=BigInt(e),aU=Number(e&BigInt(4294967295))>>>0,rO=Number(e>>BigInt(32)&BigInt(4294967295));else{var a=+(e[0]==="-");rO=aU=0;for(var r=e.length,P=0+a,B=(r-a)%6+a;B<=r;P=B,B+=6)P=Number(e.slice(P,B)),rO*=1E6,aU=aU*1E6+P,aU>=4294967296&&(rO+=Math.trunc(aU/4294967296),rO>>>=0,aU>>>=0);a&&(a=g.Z(BS(aU,rO)),e=a.next().value,a=a.next().value,aU=e,rO=a)}}; BS=function(e,a){a=~a;e?e=~e+1:a+=1;return[e,a]}; y8=function(e){return Array.prototype.slice.call(e)}; TP=function(e){if(e!=null&&typeof e!=="number")throw Error("Value of float/double field must be a number, found "+typeof e+": "+e);return e}; MBO=function(e){return e.displayName||e.name||"unknown type name"}; X6=function(e){if(e!=null&&typeof e!=="boolean")throw Error("Expected boolean but got "+UjO(e)+": "+e);return e}; AC=function(e){switch(typeof e){case "bigint":return!0;case "number":return fU(e);case "string":return jQJ.test(e);default:return!1}}; u7L=function(e){if(typeof e!=="number")throw ia("int32");if(!fU(e))throw ia("int32");return e|0}; Ub=function(e){return e==null?e:u7L(e)}; CU=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return fU(e)?e|0:void 0}; GP=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return fU(e)?e>>>0:void 0}; aLj=function(e){var a=0;a=a===void 0?0:a;if(!AC(e))throw ia("int64");var r=typeof e;switch(a){case 512:switch(r){case "string":return Eb(e);case "bigint":return String(gO(64,e));default:return ZQ(e)}case 1024:switch(r){case "string":return K1L(e);case "bigint":return ey(gO(64,e));default:return eGq(e)}case 0:switch(r){case "string":return Eb(e);case "bigint":return ey(gO(64,e));default:return Ob(e)}default:return X8(a,"Unknown format requested type for int64")}}; kj=function(e){return e==null?e:aLj(e)}; rUq=function(e){if(e[0]==="-")return!1;var a=e.length;return a<20?!0:a===20&&Number(e.substring(0,6))<184467}; PF4=function(e){var a=e.length;return e[0]==="-"?a<20?!0:a===20&&Number(e.substring(0,7))>-922337:a<19?!0:a===19&&Number(e.substring(0,6))<922337}; BfN=function(e){if(e<0){hC(e);var a=cS(aU,rO);e=Number(a);return dO(e)?e:a}a=String(e);if(rUq(a))return a;hC(e);return oU(aU,rO)}; hGO=function(e){if(PF4(e))return e;nU(e);return F1O()}; Ob=function(e){AC(e);e=JC(e);dO(e)||(hC(e),e=sQy(aU,rO));return e}; ZQ=function(e){AC(e);e=JC(e);if(dO(e))e=String(e);else{var a=String(e);PF4(a)?e=a:(hC(e),e=F1O())}return e}; Eb=function(e){AC(e);var a=JC(Number(e));if(dO(a))return String(a);a=e.indexOf(".");a!==-1&&(e=e.substring(0,a));return hGO(e)}; K1L=function(e){var a=JC(Number(e));if(dO(a))return ey(a);a=e.indexOf(".");a!==-1&&(e=e.substring(0,a));return vQ()?ey(gO(64,BigInt(e))):ey(hGO(e))}; eGq=function(e){return dO(e)?ey(Ob(e)):ey(ZQ(e))}; cUJ=function(e){if(e==null)return e;var a=typeof e;if(a==="bigint")return String(gO(64,e));if(AC(e)){if(a==="string")return Eb(e);if(a==="number")return Ob(e)}}; n8N=function(e){if(e==null)return e;var a=typeof e;if(a==="bigint")return String(o8q(64,e));if(AC(e)){if(a==="string")return AC(e),a=JC(Number(e)),dO(a)&&a>=0?e=String(a):(a=e.indexOf("."),a!==-1&&(e=e.substring(0,a)),rUq(e)||(nU(e),e=cS(aU,rO))),e;if(a==="number")return AC(e),e=JC(e),e>=0&&dO(e)?e:BfN(e)}}; yUJ=function(e){if(e==null||typeof e=="string"||e instanceof la)return e}; TfT=function(e){if(typeof e!=="string")throw Error();return e}; DQ=function(e){if(e!=null&&typeof e!=="string")throw Error();return e}; V8=function(e){return e==null||typeof e==="string"?e:void 0}; Q8=function(e,a){if(!(e instanceof a))throw Error("Expected instanceof "+MBO(a)+" but got "+(e&&MBO(e.constructor)));return e}; XRj=function(e,a,r){if(e!=null&&e[WS]===lJ)return e;if(Array.isArray(e)){var P=e[Ib]|0;r=P|r&32|r&2;r!==P&&qc(e,r);return new a(e)}}; LU=function(e){return e}; wO=function(e){var a=Aw(Yj);return a?e[a]:void 0}; pU=function(){}; iJ=function(e,a){for(var r in e)!isNaN(r)&&a(e,+r,e[r])}; fLy=function(e){var a=new pU;iJ(e,function(r,P,B){a[P]=y8(B)}); a.Zp=e.Zp;return a}; UvN=function(e,a){a<100||z6(AUN,1)}; Nu=function(e,a,r,P){var B=P!==void 0;P=!!P;var h=Aw(Yj),c;!B&&xu&&h&&(c=e[h])&&iJ(c,UvN);h=[];var y=e.length;c=4294967295;var T=!1,X=!!(a&64),f=X?a&128?0:-1:void 0;if(!(a&1)){var A=y&&e[y-1];A!=null&&typeof A==="object"&&A.constructor===Object?(y--,c=y):A=void 0;if(X&&!(a&128)&&!B){T=!0;var U;c=((U=zP)!=null?U:LU)(c-f,f,e,A,void 0)+f}}a=void 0;for(U=0;U=c){var G=U-f,O=void 0;((O=a)!=null?O:a={})[G]=C}else h[U]=C}if(A)for(var d in A)y=A[d],y!= null&&(y=r(y,P))!=null&&(U=+d,C=void 0,X&&!Number.isNaN(U)&&(C=U+f)0?void 0:e===0?trT||(trT=[0,void 0]):[-e,void 0];case "string":return[0,e];case "object":return e}}; Sy=function(e,a,r){return e=RU(e,a[0],a[1],r?1:2)}; RU=function(e,a,r,P){P=P===void 0?0:P;if(e==null){var B=32;r?(e=[r],B|=128):e=[];a&&(B=B&-8380417|(a&1023)<<13)}else{if(!Array.isArray(e))throw Error("narr");B=e[Ib]|0;if(ZDy&&1&B)throw Error("rfarr");2048&B&&!(2&B)&&ODq();if(B&256)throw Error("farr");if(B&64)return P!==0||B&2048||qc(e,B|2048),e;if(r&&(B|=128,r!==e[0]))throw Error("mid");a:{r=e;B|=64;var h=r.length;if(h){var c=h-1,y=r[c];if(y!=null&&typeof y==="object"&&y.constructor===Object){a=B&128?0:-1;c-=a;if(c>=1024)throw Error("pvtlmt");for(var T in y)h= +T,h1024)throw Error("spvt");B=B&-8380417|(T&1023)<<13}}}B|=64;P===0&&(B|=2048);qc(e,B);return e}; ODq=function(){if(ZDy)throw Error("carr");z6(k1z,5)}; dvj=function(e,a){if(typeof e!=="object")return e;if(Array.isArray(e)){var r=e[Ib]|0;e.length===0&&r&1?e=void 0:r&2||(!a||4096&r||16&r?e=sb(e,r,!1,a&&!(r&16)):(HQ(e,34),r&4&&Object.freeze(e)));return e}if(e!=null&&e[WS]===lJ)return a=e.uv,r=a[Ib]|0,SN(e,r)?e:mT(e,a,r)?F6(e,a):sb(a,r);if(e instanceof la)return e}; F6=function(e,a,r){e=new e.constructor(a);r&&(e.S=Rb);e.T=Rb;return e}; sb=function(e,a,r,P){P!=null||(P=!!(34&a));e=Nu(e,a,dvj,P);P=32;r&&(P|=2);a=a&8380609|P;qc(e,a);return e}; JUy=function(e){var a=e.uv,r=a[Ib]|0;return SN(e,r)?mT(e,a,r)?F6(e,a,!0):new e.constructor(sb(a,r,!1)):e}; Mu=function(e){if(e.S!==Rb)return!1;var a=e.uv;a=sb(a,a[Ib]|0);HQ(a,2048);e.uv=a;e.S=void 0;e.T=void 0;return!0}; jy=function(e){if(!Mu(e)&&SN(e,e.uv[Ib]|0))throw Error();}; uJ=function(e,a){a===void 0&&(a=e[Ib]|0);a&32&&!(a&4096)&&qc(e,a|4096)}; mT=function(e,a,r){return r&2?!0:r&32&&!(r&4096)?(qc(a,r|2),e.S=Rb,!0):!1}; e5=function(e,a,r,P,B){Object.isExtensible(e);a=KU(e.uv,a,r,B);if(a!==null||P&&e.T!==Rb)return a}; KU=function(e,a,r,P){if(a===-1)return null;var B=a+(r?0:-1),h=e.length-1;if(!(h<1+(r?0:-1))){if(B>=h){var c=e[h];if(c!=null&&typeof c==="object"&&c.constructor===Object){r=c[a];var y=!0}else if(B===h)r=c;else return}else r=e[B];if(P&&r!=null){P=P(r);if(P==null)return P;if(!Object.is(P,r))return y?c[a]=P:e[B]=P,P}return r}}; rN=function(e,a,r,P){jy(e);var B=e.uv;a4(B,B[Ib]|0,a,r,P);return e}; a4=function(e,a,r,P,B){var h=r+(B?0:-1),c=e.length-1;if(c>=1+(B?0:-1)&&h>=c){var y=e[c];if(y!=null&&typeof y==="object"&&y.constructor===Object)return y[r]=P,a}if(h<=c)return e[h]=P,a;if(P!==void 0){var T;c=((T=a)!=null?T:a=e[Ib]|0)>>13&1023||536870912;r>=c?P!=null&&(h={},e[c+(B?0:-1)]=(h[r]=P,h)):e[h]=P}return a}; o4=function(e,a,r,P,B){var h=e.uv,c=h[Ib]|0;P=SN(e,c)?1:P;B=!!B||P===3;P===2&&Mu(e)&&(h=e.uv,c=h[Ib]|0);e=PJ(h,a);var y=e===BJ?7:e[Ib]|0,T=hq(y,c);var X=4&T?!1:!0;if(X){4&T&&(e=y8(e),y=0,T=cJ(T,c),c=a4(h,c,a,e));for(var f=0,A=0;f32)for(r|=(c&127)>>4,P=3;P<32&&c&128;P+=7)c=B[h++],r|=(c&127)<>>0,r>>>0);throw Error();}; qX=function(e,a){e.S=a;if(a>e.B)throw Error();}; R4=function(e){var a=e.T,r=e.S,P=a[r++],B=P&127;if(P&128&&(P=a[r++],B|=(P&127)<<7,P&128&&(P=a[r++],B|=(P&127)<<14,P&128&&(P=a[r++],B|=(P&127)<<21,P&128&&(P=a[r++],B|=P<<28,P&128&&a[r++]&128&&a[r++]&128&&a[r++]&128&&a[r++]&128&&a[r++]&128)))))throw Error();qX(e,r);return B}; S5=function(e){var a=e.T,r=e.S,P=a[r+0],B=a[r+1],h=a[r+2];a=a[r+3];qX(e,e.S+4);return(P<<0|B<<8|h<<16|a<<24)>>>0}; sX=function(e){var a=S5(e);e=S5(e);return oU(a,e)}; mn=function(e){var a=S5(e),r=S5(e);e=(r>>31)*2+1;var P=r>>>20&2047;a=4294967296*(r&1048575)+a;return P==2047?a?NaN:e*Infinity:P==0?e*4.9E-324*a:e*Math.pow(2,P-1075)*(a+4503599627370496)}; F9=function(e){for(var a=0,r=e.S,P=r+10,B=e.T;re.B)throw Error();e.S=a;return r}; Nfz=function(e,a){if(a==0)return Yu();var r=iDj(e,a);e.DG&&e.C?r=e.T.subarray(r,r+a):(e=e.T,a=r+a,r=r===a?new Uint8Array(0):zGI?e.slice(r,a):new Uint8Array(e.subarray(r,a)));return r.length==0?Yu():new la(r,Lg)}; j5=function(e,a,r,P){if(MX.length){var B=MX.pop();B.init(e,a,r,P);e=B}else e=new HJ(e,a,r,P);this.S=e;this.L=this.S.S;this.T=this.B=-1;xvL(this,P)}; xvL=function(e,a){a=a===void 0?{}:a;e.nX=a.nX===void 0?!1:a.nX}; ILj=function(e,a,r,P){if(u5.length){var B=u5.pop();xvL(B,P);B.S.init(e,a,r,P);return B}return new j5(e,a,r,P)}; HD4=function(e){var a=e.S;if(a.S==a.B)return!1;e.L=e.S.S;var r=R4(e.S)>>>0;a=r>>>3;r&=7;if(!(r>=0&&r<=5))throw Error();if(a<1)throw Error();e.B=a;e.T=r;return!0}; K0=function(e){switch(e.T){case 0:e.T!=0?K0(e):F9(e.S);break;case 1:e=e.S;qX(e,e.S+8);break;case 2:if(e.T!=2)K0(e);else{var a=R4(e.S)>>>0;e=e.S;qX(e,e.S+a)}break;case 5:e=e.S;qX(e,e.S+4);break;case 3:a=e.B;do{if(!HD4(e))throw Error();if(e.T==4){if(e.B!=a)throw Error();break}K0(e)}while(1);break;default:throw Error();}}; yx=function(e,a,r){var P=e.S.B,B=R4(e.S)>>>0;B=e.S.S+B;var h=B-P;h<=0&&(e.S.B=B,r(a,e,void 0,void 0,void 0),h=B-e.S.S);if(h)throw Error();e.S.S=B;e.S.B=P}; fv=function(e){var a=R4(e.S)>>>0;e=e.S;var r=iDj(e,a);e=e.T;if(qZL){var P=e,B;(B=TR)||(B=TR=new TextDecoder("utf-8",{fatal:!0}));a=r+a;P=r===0&&a===P.length?P:P.subarray(r,a);try{var h=B.decode(P)}catch(X){if(XK===void 0){try{B.decode(new Uint8Array([128]))}catch(f){}try{B.decode(new Uint8Array([97])),XK=!0}catch(f){XK=!1}}!XK&&(TR=void 0);throw X;}}else{h=r;a=h+a;r=[];for(var c=null,y,T;h=a?dF():(T=e[h++],y<194||(T&192)!==128?(h--,dF()):r.push((y&31)<<6|T&63)): y<240?h>=a-1?dF():(T=e[h++],(T&192)!==128||y===224&&T<160||y===237&&T>=160||((B=e[h++])&192)!==128?(h--,dF()):r.push((y&15)<<12|(T&63)<<6|B&63)):y<=244?h>=a-2?dF():(T=e[h++],(T&192)!==128||(y<<28)+(T-144)>>30!==0||((B=e[h++])&192)!==128||((P=e[h++])&192)!==128?(h--,dF()):(y=(y&7)<<18|(T&63)<<12|(B&63)<<6|P&63,y-=65536,r.push((y>>10&1023)+55296,(y&1023)+56320))):dF(),r.length>=8192&&(c=bfq(c,r),r.length=0);h=bfq(c,r)}return h}; v8I=function(e){var a=R4(e.S)>>>0;return Nfz(e.S,a)}; Av=function(e,a){this.T=e>>>0;this.S=a>>>0}; SZO=function(e){if(!e)return RGL||(RGL=new Av(0,0));if(!/^\d+$/.test(e))return null;nU(e);return new Av(aU,rO)}; U2=function(e,a){this.T=e>>>0;this.S=a>>>0}; mv3=function(e){if(!e)return sDz||(sDz=new U2(0,0));if(!/^-?\d+$/.test(e))return null;nU(e);return new U2(aU,rO)}; Cv=function(){this.S=[]}; GR=function(e,a,r){for(;r>0||a>127;)e.S.push(a&127|128),a=(a>>>7|r<<25)>>>0,r>>>=7;e.S.push(a)}; E2=function(e,a){for(;a>127;)e.S.push(a&127|128),a>>>=7;e.S.push(a)}; F4J=function(e,a){if(a>=0)E2(e,a);else{for(var r=0;r<9;r++)e.S.push(a&127|128),a>>=7;e.S.push(1)}}; bA=function(e,a){e.S.push(a>>>0&255);e.S.push(a>>>8&255);e.S.push(a>>>16&255);e.S.push(a>>>24&255)}; Mrj=function(){this.B=[];this.T=0;this.S=new Cv}; tv=function(e,a){a.length!==0&&(e.B.push(a),e.T+=a.length)}; jDN=function(e,a){g_(e,a,2);a=e.S.end();tv(e,a);a.push(e.T);return a}; u8J=function(e,a){var r=a.pop();for(r=e.T+e.S.length()-r;r>127;)a.push(r&127|128),r>>>=7,e.T++;a.push(r);e.T++}; g_=function(e,a,r){E2(e.S,a*8+r)}; K4z=function(e,a,r){if(r!=null){switch(typeof r){case "string":SZO(r)}g_(e,a,1);switch(typeof r){case "number":e=e.S;PS(r);bA(e,aU);bA(e,rO);break;case "bigint":r=BigInt.asUintN(64,r);r=new Av(Number(r&BigInt(4294967295)),Number(r>>BigInt(32)));e=e.S;a=r.S;bA(e,r.T);bA(e,a);break;default:r=SZO(r),e=e.S,a=r.S,bA(e,r.T),bA(e,a)}}}; ZK=function(e,a,r){g_(e,a,2);E2(e.S,r.length);tv(e,e.S.end());tv(e,r)}; O2=function(){function e(){throw Error();} Object.setPrototypeOf(e,e.prototype);return e}; kC=function(e,a,r){this.uv=RU(e,a,r)}; eCL=function(e,a){if(a==null||a=="")return new e;a=JSON.parse(a);if(!Array.isArray(a))throw Error("dnarr");HQ(a,32);return new e(a)}; Jv=function(e,a,r){this.Mt=e;this.vp=a;e=Aw(d_);this.S=!!e&&r===e||!1}; DK=function(e,a){var r=r===void 0?d_:r;return new Jv(e,a,r)}; r5q=function(e,a,r,P,B){a=aFJ(a,P);a!=null&&(r=jDN(e,r),B(a,e),u8J(e,r))}; Qx=function(e,a,r,P){var B=P[e];if(B)return B;B={};B.K3=P;B.Dl=g8L(P[0]);var h=P[1],c=1;h&&h.constructor===Object&&(B.extensions=h,h=P[++c],typeof h==="function"&&(B.m4=!0,Vx!=null||(Vx=h),$C!=null||($C=P[c+1]),h=P[c+=2]));for(var y={};h&&Array.isArray(h)&&h.length&&typeof h[0]==="number"&&h[0]>0;){for(var T=0;T>BigInt(32)));GR(e.S,r.T,r.S);break;default:r=mv3(a),GR(e.S,r.T,r.S)}}}; uA=function(e,a,r){a=CU(a);a!=null&&a!=null&&(g_(e,r,0),F4J(e.S,a))}; Cd3=function(e,a,r){a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;a!=null&&(g_(e,r,0),e.S.S.push(a?1:0))}; G7L=function(e,a,r){a=V8(a);a!=null&&ZK(e,r,OfL(a))}; EH4=function(e,a,r,P,B){a=aFJ(a,P);a!=null&&(r=jDN(e,r),B(a,e),u8J(e,r))}; t24=function(){var e=Kv;this.S=bOT;this.isRepeated=0;this.T=gN;this.defaultValue=void 0;this.B=e.messageId!=null?mv:void 0}; gHL=function(e,a){return function(r,P){var B={Db:!0};P&&Object.assign(B,P);r=ILj(r,void 0,void 0,B);try{var h=new e,c=h.uv;YC(a)(c,r);var y=h}finally{r.free()}return y}}; ZOl=function(e){return function(){var a=new Mrj;XoJ(this.uv,a,Qx(NB,pv,vj,e));tv(a,a.S.end());for(var r=new Uint8Array(a.T),P=a.B,B=P.length,h=0,c=0;c-1)return a.apply(null,g.UO(r));try{return e.S=e.B.S.now(),a.apply(null,g.UO(r))}finally{e.L+=e.B.S.now()-e.S,e.S=-1,e.T+=1}}}; k74=function(e,a){this.T=e;this.B=a;this.S=new OOL(e)}; dhI=function(){this.S={}}; Dhq=function(){var e=Pa().flags,a=J5J;e=e.S[a.key];if(a.valueType==="proto"){try{var r=JSON.parse(e);if(Array.isArray(r))return r}catch(P){}return a.defaultValue}return typeof e===typeof a.defaultValue?e:a.defaultValue}; Wby=function(){this.B=void 0;this.T=this.Z=0;this.C=-1;this.Z5=new ks;d6(this.Z5,"mv",V2q).S=!0;d6(this.Z5,"omid",$s);d6(this.Z5,"epoh",$s).S=!0;d6(this.Z5,"epph",$s).S=!0;d6(this.Z5,"umt",$s).S=!0;d6(this.Z5,"phel",$s).S=!0;d6(this.Z5,"phell",$s).S=!0;d6(this.Z5,"oseid",$h4).S=!0;var e=this.Z5;e.S.sloi||(e.S.sloi=new ZG);e.S.sloi.S=!0;d6(this.Z5,"mm",Ba);d6(this.Z5,"ovms",Q8q).S=!0;d6(this.Z5,"xdi",$s).S=!0;d6(this.Z5,"amp",$s).S=!0;d6(this.Z5,"prf",$s).S=!0;d6(this.Z5,"gtx",$s).S=!0;d6(this.Z5, "mvp_lv",$s).S=!0;d6(this.Z5,"ssmol",$s).S=!0;d6(this.Z5,"fmd",$s).S=!0;d6(this.Z5,"gen204simple",$s);this.S=new k74(ku(),this.Z5);this.L=!1;this.flags=new dhI}; Pa=function(){return ZX(Wby)}; lF3=function(e,a,r,P){if(Math.random()<(P||e.S))try{if(r instanceof U5)var B=r;else B=new U5,fg(r,function(c,y){var T=B,X=T.L++;c=Cg(y,c);T.S.push(X);T.T[X]=c}); var h=B.ju(e.T,"pagead2.googlesyndication.com","/pagead/gen_204?id="+a+"&");h&&(ku(),U7j(h))}catch(c){}}; LbO=function(e,a,r){r=r===void 0?{}:r;this.error=e;this.meta=r;this.context=a.context;this.msg=a.message||"";this.id=a.id||"jserror"}; Y9j=function(){var e=e===void 0?g.uq:e;return(e=e.performance)&&e.now&&e.timing?Math.floor(e.now()+e.timing.navigationStart):g.f5()}; wo4=function(){var e=e===void 0?g.uq:e;return(e=e.performance)&&e.now?e.now():null}; poj=function(e,a,r){this.label=e;this.type=a;this.value=r;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; ca=function(){var e=window;this.events=[];this.T=e||g.uq;var a=null;e&&(e.google_js_reporting_queue=e.google_js_reporting_queue||[],this.events=e.google_js_reporting_queue,a=e.google_measure_js_timing);this.S=hs()||(a!=null?a:Math.random()<1)}; iOl=function(e){e&&oB&&hs()&&(oB.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_start"),oB.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_end"))}; na=function(e,a,r,P,B,h,c){var y="";e&&(y+=e+":");r&&(y+="//",a&&(y+=a+"@"),y+=r,P&&(y+=":"+P));B&&(y+=B);h&&(y+="?"+h);c&&(y+="#"+c);return y}; g.yp=function(e){return e.match(zCO)}; Nyl=function(e){return e?decodeURI(e):e}; g.TS=function(e){return Nyl(g.yp(e)[3]||null)}; Xd=function(e){return Nyl(g.yp(e)[5]||null)}; g.xhJ=function(e){e=g.yp(e);return na(e[1],e[2],e[3],e[4])}; fa=function(e){e=g.yp(e);return na(null,null,null,null,e[5],e[6],e[7])}; IFO=function(e){var a=e.indexOf("#");return a<0?e:e.slice(0,a)}; As=function(e,a){if(e){e=e.split("&");for(var r=0;r=0){var h=e[r].substring(0,P);B=e[r].substring(P+1)}else h=e[r];a(h,B?QC(B):"")}}}; UW=function(e,a){if(!a)return e;var r=e.indexOf("#");r<0&&(r=e.length);var P=e.indexOf("?");if(P<0||P>r){P=r;var B=""}else B=e.substring(P+1,r);e=[e.slice(0,P),B,e.slice(r)];r=e[1];e[1]=a?r?r+"&"+a:a:r;return e[0]+(e[1]?"?"+e[1]:"")+e[2]}; Ca=function(e,a,r){if(Array.isArray(a))for(var P=0;P=0&&ar)B=r;P+=a.length+1;return QC(e.slice(P,B!==-1?B:0))}; kX=function(e,a){for(var r=e.search(Zy),P=0,B,h=[];(B=ts(e,P,a,r))>=0;)h.push(e.substring(P,B)),P=Math.min(e.indexOf("&",B)+1||r,r);h.push(e.slice(P));return h.join("").replace(vHJ,"$1")}; RCL=function(e,a,r){return bt(kX(e,a),a,r)}; S9J=function(){var e=d8;this.S=Js;this.vP="jserror";this.iH=!0;this.vK=null;this.T=this.Q0;this.JC=e===void 0?null:e}; s84=function(e,a,r){var P=Dy;return r8(Pa().S.S,function(){try{if(P.JC&&P.JC.S){var B=P.JC.start(e.toString(),3);var h=a();P.JC.end(B)}else h=a()}catch(y){var c=P.iH;try{iOl(B),c=P.T(e,new Vp($X(y)),void 0,r)}catch(T){P.Q0(217,T)}if(!c)throw y;}return h})()}; Qp=function(e,a,r,P){return r8(Pa().S.S,function(){var B=g.xN.apply(0,arguments);return s84(e,function(){return a.apply(r,B)},P)})}; $X=function(e){var a=e.toString();e.name&&a.indexOf(e.name)==-1&&(a+=": "+e.name);e.message&&a.indexOf(e.message)==-1&&(a+=": "+e.message);if(e.stack)a:{e=e.stack;var r=a;try{e.indexOf(r)==-1&&(e=r+"\n"+e);for(var P;e!=P;)P=e,e=e.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");a=e.replace(/\n */g,"\n");break a}catch(B){a=r;break a}a=void 0}return a}; Vp=function(e){LbO.call(this,Error(e),{message:e})}; mhO=function(){Wo&&typeof Wo.google_measure_js_timing!="undefined"&&(Wo.google_measure_js_timing||d8.disable())}; FbJ=function(e){Dy.vK=function(a){g.FN(e,function(r){r(a)})}}; M2j=function(e,a){return s84(e,a)}; Wa=function(e,a){return Qp(e,a)}; lt=function(e,a,r,P){Dy.Q0(e,a,r,P)}; La=function(){return Date.now()-j8N}; uW4=function(){var e=Pa().B,a=YX>=0?La()-YX:-1,r=w8?La()-pa:-1,P=zS>=0?La()-zS:-1;if(e==947190542)return 100;if(e==79463069)return 200;e=[2E3,4E3];var B=[250,500,1E3];lt(637,Error(),.001);var h=a;r!=-1&&r1500&&P<4E3?500:c}; Nt=function(e,a,r){var P=new id(0,0,0,0);this.time=e;this.volume=null;this.B=a;this.S=P;this.T=r}; xX=function(e,a,r,P,B,h,c,y){this.L=e;this.D=a;this.B=r;this.Z=P;this.S=B;this.C=h;this.T=c;this.Y=y}; egl=function(e){var a=e!==e.top,r=e.top===B64(e),P=-1,B=0;if(a&&r&&e.top.mraid){P=3;var h=e.top.mraid}else P=(h=e.mraid)?a?r?2:1:0:-1;h&&(h.IS_GMA_SDK||(B=2),LjL(KbO,function(c){return typeof h[c]==="function"})||(B=1)); return{v4:h,compatibility:B,nKF:P}}; aXT=function(){var e=window.document;return e&&typeof e.elementFromPoint==="function"}; rK4=function(e,a,r){if(e&&a!==null&&a!=a.top){if(!a.top)return new g.Sr(-12245933,-12245933);a=a.top}try{return(r===void 0?0:r)?(new g.Sr(a.innerWidth,a.innerHeight)).round():YGN(a||window).round()}catch(P){return new g.Sr(-12245933,-12245933)}}; IB=function(e,a,r){try{if(e){if(!a.top)return new id(-12245933,-12245933,-12245933,-12245933);a=a.top}var P=rK4(e,a,r),B=P.height,h=P.width;if(h===-12245933)return new id(h,h,h,h);var c=a8(a.document);var y=pBq(c.S);var T=y.x,X=y.y;return new id(X,T+h,X+B,T)}catch(f){return new id(-12245933,-12245933,-12245933,-12245933)}}; Ha=function(e,a){a=Math.pow(10,a);return Math.floor(e*a)/a}; Paq=function(e){return new id(e.top,e.right,e.bottom,e.left)}; BFL=function(e){var a=e.top||0,r=e.left||0;return new id(a,r+(e.width||0),a+(e.height||0),r)}; qt=function(e){return e!=null&&e>=0&&e<=1}; hgj=function(){var e=g.zX();return e?va("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(a){return Ys(e,a)})||Ys(e,"OMI/")&&!Ys(e,"XiaoMi/")?!0:Ys(e,"Presto")&&Ys(e,"Linux")&&!Ys(e,"X11")&&!Ys(e,"Android")&&!Ys(e,"Mobi"):!1}; cKy=function(){this.B=!Xs(Wo.top);this.isMobileDevice=T6()||jZ3();var e=AK();this.domain=e.length>0&&e[e.length-1]!=null&&e[e.length-1].url!=null?g.TS(e[e.length-1].url)||"":"";this.S=new id(0,0,0,0);this.L=new g.Sr(0,0);this.C=new g.Sr(0,0);this.D=new id(0,0,0,0);this.frameOffset=new g.vR(0,0);this.Z=0;this.Y=!1;this.T=!(!Wo||!egl(Wo).v4);this.update(Wo)}; ouN=function(e,a){a&&a.screen&&(e.L=new g.Sr(a.screen.width,a.screen.height))}; nul=function(e,a){a:{var r=e.S?new g.Sr(z7(e.S),e.S.getHeight()):new g.Sr(0,0);a=a===void 0?Wo:a;a!==null&&a!=a.top&&(a=a.top);var P=0,B=0;try{var h=a.document,c=h.body,y=h.documentElement;if(h.compatMode=="CSS1Compat"&&y.scrollHeight)P=y.scrollHeight!=r.height?y.scrollHeight:y.offsetHeight,B=y.scrollWidth!=r.width?y.scrollWidth:y.offsetWidth;else{var T=y.scrollHeight,X=y.scrollWidth,f=y.offsetHeight,A=y.offsetWidth;y.clientHeight!=f&&(T=c.scrollHeight,X=c.scrollWidth,f=c.offsetHeight,A=c.offsetWidth); T>r.height?T>f?(P=T,B=X):(P=f,B=A):T0||e.Y)return!0;e=ku().T.isVisible();var a=cQ(Sg)===0;return e||a}; RB=function(){return ZX(cKy)}; mw=function(e){this.B=e;this.T=0;this.S=null}; Fd=function(e,a,r){this.B=e;this.XM=r===void 0?"na":r;this.C=[];this.isInitialized=!1;this.L=new Nt(-1,!0,this);this.S=this;this.Y=a;this.HW=this.N=!1;this.Lf="uk";this.Eo=!1;this.Z=!0}; Mt=function(e,a){g.ZB(e.C,a)||(e.C.push(a),a.qp(e.S),a.xY(e.L),a.DL()&&(e.N=!0))}; yKT=function(e){e=e.S;e.B2();e.Td();var a=RB();a.D=IB(!1,e.B,a.isMobileDevice);nul(RB(),e.B);e.L.S=e.t3()}; TF4=function(e){e.N=e.C.length?va(e.C,function(a){return a.DL()}):!1}; XQq=function(e){var a=g.WB(e.C);g.FN(a,function(r){r.xY(e.L)})}; jg=function(e){var a=g.WB(e.C);g.FN(a,function(r){r.qp(e.S)}); e.S!=e||XQq(e)}; ut=function(e,a,r,P){this.element=e;this.S=new id(0,0,0,0);this.B=null;this.Z=new id(0,0,0,0);this.T=a;this.Z5=r;this.Eo=P;this.TQ=!1;this.timestamp=-1;this.N=new xX(a.L,this.element,this.S,new id(0,0,0,0),0,0,La(),0);this.C=void 0}; fXN=function(e,a){return e.C?new id(Math.max(a.top+e.C.top,a.top),Math.min(a.left+e.C.right,a.right),Math.min(a.top+e.C.bottom,a.bottom),Math.max(a.left+e.C.left,a.left)):a.clone()}; Ka=function(e){this.C=!1;this.S=e;this.L=function(){}}; AK4=function(e,a,r){this.B=r===void 0?0:r;this.T=e;this.S=a==null?"":a}; Ucz=function(e){switch(Math.trunc(e.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; CaL=function(e,a){return e.Ba.B?!1:e.Ta.T?!1:typeof e.Stypeof a.S?!1:e.S0?P[r]-P[r-1]:P[r]})}; f6=function(){this.T=new ce;this.XM=this.e1=0;this.GQ=new hV;this.oH=this.D=-1;this.k$=1E3;this.rP=new ce([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Lf=this.TQ=-1}; AV=function(e,a){return JK3(e.T,a===void 0?!0:a)}; Un=function(e,a,r,P){var B=B===void 0?!1:B;r=Qp(P,r);hK(e,a,r,{capture:B})}; GT=function(e,a){a=C6(a);return a===0?0:C6(e)/a}; C6=function(e){return Math.max(e.bottom-e.top,0)*Math.max(e.right-e.left,0)}; Du4=function(e,a){if(!e||!a)return!1;for(var r=0;e!==null&&r++<100;){if(e===a)return!0;try{if(e=e.parentElement||e){var P=e2(e),B=P&&XW(P),h=B&&B.frameElement;h&&(e=h)}}catch(c){break}}return!1}; VyL=function(e,a,r){if(!e||!a)return!1;a=xH(e.clone(),-a.left,-a.top);e=(a.left+a.right)/2;a=(a.top+a.bottom)/2;Xs(window.top)&&window.top&&window.top.document&&(window=window.top);if(!aXT())return!1;e=window.document.elementFromPoint(e,a);if(!e)return!1;a=(a=(a=e2(r))&&a.defaultView&&a.defaultView.frameElement)&&Du4(a,e);var P=e===r;e=!P&&e&&O9(e,function(B){return B===r}); return!(a||P||e)}; $u4=function(e,a,r,P){return RB().B?!1:z7(e)<=0||e.getHeight()<=0?!0:r&&P?M2j(208,function(){return VyL(e,a,r)}):!1}; En=function(e,a,r){g.N.call(this);this.position=QUI.clone();this.Tv=this.rI();this.ZF=-2;this.timeCreated=Date.now();this.Uu=-1;this.R5=a;this.yU=null;this.MU=!1;this.zv=null;this.opacity=-1;this.requestSource=r;this.tTo=!1;this.DF=function(){}; this.NB=function(){}; this.Ii=new xML;this.Ii.HT=e;this.Ii.S=e;this.Gz=!1;this.nD={A7:null,xT:null};this.Vw=!0;this.RP=null;this.pR=this.XA=!1;Pa().Z++;this.In=this.v9();this.Zz=-1;this.mA=null;this.hasCompleted=this.Zo=!1;this.Z5=new ks;Il3(this.Z5);WT4(this);this.requestSource==1?Jk(this.Z5,"od",1):Jk(this.Z5,"od",0)}; WT4=function(e){e=e.Ii.HT;var a;if(a=e&&e.getAttribute)a=/-[a-z]/.test("googleAvInapp")?!1:lQ4&&e.dataset?"googleAvInapp"in e.dataset:e.hasAttribute?e.hasAttribute("data-"+UMO()):!!e.getAttribute("data-"+UMO());a&&(RB().T=!0)}; bg=function(e,a){a!=e.pR&&(e.pR=a,e=RB(),a?e.Z++:e.Z>0&&e.Z--)}; LTJ=function(e,a){if(e.mA){if(a.getName()===e.mA.getName())return;e.mA.dispose();e.mA=null}a=a.create(e.Ii.S,e.Z5,e.DL());if(a=a!=null&&a.observe()?a:null)e.mA=a}; YbN=function(e,a,r){if(!e.yU||e.R5==-1||a.T===-1||e.yU.T===-1)return 0;e=a.T-e.yU.T;return e>r?0:e}; wSL=function(e,a,r){if(e.mA){e.mA.HJ();var P=e.mA.N,B=P.L,h=B.S;if(P.Z!=null){var c=P.B;e.zv=new g.vR(c.left-h.left,c.top-h.top)}h=e.OO()?Math.max(P.S,P.C):P.S;c={};B.volume!==null&&(c.volume=B.volume);B=e.CO(P);e.yU=P;e.zQ(h,a,r,!1,c,B,P.Y)}}; pSj=function(e){if(e.MU&&e.RP){var a=DG(e.Z5,"od")==1,r=RB().S,P=e.RP,B=e.mA?e.mA.getName():"ns",h=e.zv,c=new g.Sr(z7(r),r.getHeight());r=e.OO();e={KqP:B,zv:h,TE$:c,OO:r,cZ:e.In.cZ,nuQ:a};if(a=P.T){a.HJ();B=a.N;h=B.L.S;var y=c=null;B.Z!=null&&h&&(c=B.B,c=new g.vR(c.left-h.left,c.top-h.top),y=new g.Sr(h.right-h.left,h.bottom-h.top));B=r?Math.max(B.S,B.C):B.S;r={KqP:a.getName(),zv:c,TE$:y,OO:r,nuQ:!1,cZ:B}}else r=null;r&&OgN(P,e,r)}}; iUL=function(e,a,r){a&&(e.DF=a);r&&(e.NB=r)}; g.dc=function(){}; g.JV=function(e){return{value:e,done:!1}}; zAN=function(){this.L=this.S=this.B=this.T=this.C=0}; NON=function(e){var a={};var r=g.f5()-e.C;a=(a.ptlt=r,a);(r=e.T)&&(a.pnk=r);(r=e.B)&&(a.pnc=r);(r=e.L)&&(a.pnmm=r);(e=e.S)&&(a.pns=e);return a}; xuj=function(){uN.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; De=function(e){return qt(e.volume)&&e.volume>0}; VX=function(e,a,r,P){r=r===void 0?!0:r;P=P===void 0?function(){return!0}:P; return function(B){var h=B[e];if(Array.isArray(h)&&P(B))return IQl(h,a,r)}}; $3=function(e,a){return function(r){return a(r)?r[e]:void 0}}; HUz=function(e){return function(a){for(var r=0;r0?h[B-1]+1:0,P+1).reduce(function(c,y){return c+y},0)})}; qbT=function(){this.T=this.S=""}; vjO=function(){}; We=function(e,a){var r={};if(e!==void 0)if(a!=null)for(var P in a){var B=a[P];P in Object.prototype||B!=null&&(r[P]=typeof B==="function"?B(e):e[B])}else g.bO(r,e);return rc(aJ(new ee,r))}; RAj=function(){var e={};this.T=(e.vs=[1,0],e.vw=[0,1],e.am=[2,2],e.a=[4,4],e.f=[8,8],e.bm=[16,16],e.b=[32,32],e.avw=[0,64],e.avs=[64,0],e.pv=[256,256],e.gdr=[0,512],e.p=[0,1024],e.r=[0,2048],e.m=[0,4096],e.um=[0,8192],e.ef=[0,16384],e.s=[0,32768],e.pmx=[0,16777216],e.mut=[33554432,33554432],e.umutb=[67108864,67108864],e.tvoff=[134217728,134217728],e);this.S={};for(var a in this.T)this.T[a][1]>0&&(this.S[a]=0);this.B=0}; lg=function(e,a){var r=e.T[a],P=r[1];e.B+=r[0];P>0&&e.S[a]==0&&(e.S[a]=1)}; Sbl=function(e){var a=g.yI(e.T),r=0,P;for(P in e.S)g.ZB(a,P)&&e.S[P]==1&&(r+=e.T[P][1],e.S[P]=2);return r}; sUj=function(e){var a=0,r;for(r in e.S){var P=e.S[r];if(P==1||P==2)a+=e.T[r][1]}return a}; L6=function(){this.S=this.T=0}; Y3=function(){f6.call(this);this.B=new hV;this.Uo=this.N=this.Eo=0;this.Y=-1;this.HA=new hV;this.C=new hV;this.S=new ce;this.Z=this.L=-1;this.HW=new hV;this.k$=2E3;this.Cf=new L6;this.PW=new L6;this.ym=new L6}; wc=function(e,a,r){var P=e.Uo;w8||r||e.Y==-1||(P+=a-e.Y);return P}; muT=function(){this.B=!1}; p6=function(e,a){this.B=!1;this.L=e;this.N=a;this.C=0}; ig=function(e,a){p6.call(this,e,a);this.D=[]}; FTL=function(){}; Nf=function(){}; x3=function(e,a,r,P){ut.call(this,e,a,r,P)}; IJ=function(e,a,r){ut.call(this,null,e,a,r);this.Y=e.isActive();this.D=0}; He=function(e){return[e.top,e.left,e.bottom,e.right]}; qf=function(e,a,r,P,B,h){h=h===void 0?new Nf:h;En.call(this,a,r,P);this.d$=B;this.N1=0;this.Zn={};this.kK=new RAj;this.Ok={};this.o$="";this.ym=null;this.T$=!1;this.S=[];this.PS=h.T();this.Z=h.B();this.L=null;this.B=-1;this.XM=this.N=void 0;this.oH=this.HW=0;this.Lf=-1;this.k$=this.PW=!1;this.Eo=this.Y=this.T=this.ra=this.bv=0;new ce;this.Cf=this.Uo=0;this.GQ=-1;this.mz=0;this.D=g.LO;this.TQ=[this.rI()];this.sM=2;this.CN={};this.CN.pause="p";this.CN.resume="r";this.CN.skip="s";this.CN.mute="m";this.CN.unmute= "um";this.CN.exitfullscreen="ef";this.C=null;this.rP=this.HA=!1;this.ID=Math.floor(Date.now()/1E3-1704067200);this.e1=0}; ve=function(e){e.hasCompleted=!0;e.mz!=0&&(e.mz=3)}; RJ=function(e){return e===void 0?e:Number(e)?Ha(e,3):0}; Se=function(e,a){return e.TQ[a!=null&&aMath.max(1E4,e.B/3)?0:a);var r=e.D(e)||{};r=r.currentTime!==void 0?r.currentTime:e.HW;var P=r-e.HW,B=0;P>=0?(e.oH+=a,e.Cf+=Math.max(a-P,0),B=Math.min(P,e.oH)):e.Uo+=Math.abs(P);P!=0&&(e.oH=0);e.GQ==-1&&P>0&&(e.GQ=zS>=0?La()-zS:-1);e.HW=r;return B}; u6j=function(e,a){va(e.Z,function(r){return r.L==a.L})||e.Z.push(a)}; KTj=function(e){var a=yX(e.Ql().S,1);return sn(e,a)}; sn=function(e,a,r){return a>=15E3?!0:e.PW?(r===void 0?0:r)?!0:e.B>0?a>=e.B/2:e.Lf>0?a>=e.Lf:!1:!1}; ekL=function(e){var a=Ha(e.In.cZ,2),r=e.kK.B,P=e.In,B=Se(e),h=RJ(B.L),c=RJ(B.Z),y=RJ(P.volume),T=Ha(B.D,2),X=Ha(B.oH,2),f=Ha(P.cZ,2),A=Ha(B.TQ,2),U=Ha(B.Lf,2);P=Ha(P.kP,2);var C=e.X$().clone().round();e=e.mA&&e.mA.B?(e.mA?e.mA.B:null).clone().round():null;B=AV(B,!1);return{b_H:a,FK:r,Lo:h,ou:c,ll:y,Iu:T,Sj:X,cZ:f,Ko:A,po:U,kP:P,position:C,t8:e,WU:B}}; rqI=function(e,a){a$j(e.S,a,function(){return{b_H:0,FK:void 0,Lo:-1,ou:-1,ll:-1,Iu:-1,Sj:-1,cZ:-1,Ko:-1,po:-1,kP:-1,position:void 0,t8:void 0,WU:[]}}); e.S[a]=ekL(e)}; a$j=function(e,a,r){for(var P=e.length;P0?1:0;A.atos= oJ(X.S);A.ssb=oJ(X.rP,!1);A.amtos=JK3(X.S,!1);A.uac=e.bv;A.vpt=X.B.S;f=="nio"&&(A.nio=1,A.avms="nio");A.gmm="4";A.gdr=sn(e,X.B.S,!0)?1:0;A.efpf=e.sM;if(f=="gsv"||f=="nis")f=e.mA,f.D>0&&(A.nnut=f.D);A.tcm=Myq(e);A.nmt=e.Uo;A.bt=e.Cf;A.pst=e.GQ;A.vpaid=e.N;A.dur=e.B;A.vmtime=e.HW;A.is=e.kK.B;e.S.length>=1&&(A.i0=e.S[0].FK,A.a0=[e.S[0].ll],A.c0=[e.S[0].cZ],A.ss0=[e.S[0].kP],f=e.S[0].position,h=e.S[0].t8,A.p0=f?He(f):void 0,f&&h&&!Nh(h,f)&&(A.cp0=He(h)));e.S.length>=2&&(A.i1=e.S[1].FK,A.a1=Mf(e.S[1].Lo, e.S[1].ll,e.S[1].ou),A.c1=Mf(e.S[1].Iu,e.S[1].cZ,e.S[1].Sj),A.ss1=Mf(e.S[1].Ko,e.S[1].kP,e.S[1].po),f=e.S[1].position,h=e.S[1].t8,A.p1=f?He(f):void 0,f&&h&&!Nh(h,f)&&(A.cp1=He(h)),A.mtos1=e.S[1].WU);e.S.length>=3&&(A.i2=e.S[2].FK,A.a2=Mf(e.S[2].Lo,e.S[2].ll,e.S[2].ou),A.c2=Mf(e.S[2].Iu,e.S[2].cZ,e.S[2].Sj),A.ss2=Mf(e.S[2].Ko,e.S[2].kP,e.S[2].po),f=e.S[2].position,h=e.S[2].t8,A.p2=f?He(f):void 0,f&&h&&!Nh(h,f)&&(A.cp2=He(h)),A.mtos2=e.S[2].WU);e.S.length>=4&&(A.i3=e.S[3].FK,A.a3=Mf(e.S[3].Lo,e.S[3].ll, e.S[3].ou),A.c3=Mf(e.S[3].Iu,e.S[3].cZ,e.S[3].Sj),A.ss3=Mf(e.S[3].Ko,e.S[3].kP,e.S[3].po),f=e.S[3].position,h=e.S[3].t8,A.p3=f?He(f):void 0,f&&h&&!Nh(h,f)&&(A.cp3=He(h)),A.mtos3=e.S[3].WU);A.cs=sUj(e.kK);a&&(A.ic=Sbl(e.kK),A.dvpt=X.B.T,A.dvs=Xh(X.T,.5),A.dfvs=Xh(X.T,1),A.davs=Xh(X.S,.5),A.dafvs=Xh(X.S,1),r&&(X.B.T=0,duq(X.T),duq(X.S)),e.tD()&&(A.dtos=X.Eo,A.dav=X.N,A.dtoss=e.N1+1,r&&(X.Eo=0,X.N=0,e.N1++)),A.dat=X.C.T,A.dft=X.HW.T,r&&(X.C.T=0,X.HW.T=0));A.ps=[y.C.width,y.C.height];A.bs=[z7(y.S),y.S.getHeight()]; A.scs=[y.L.width,y.L.height];A.dom=y.domain;e.ra&&(A.vds=e.ra);if(e.Z.length>0||e.PS)a=g.WB(e.Z),e.PS&&a.push(e.PS),A.pings=g.ba(a,function(U){return U.toString()}); a=g.ba(g.QX(e.Z,function(U){return U.Z()}),function(U){return U.getId()}); JzT(a);A.ces=a;e.T&&(A.vmer=e.T);e.Y&&(A.vmmk=e.Y);e.Eo&&(A.vmiec=e.Eo);A.avms=e.mA?e.mA.getName():"ns";e.mA&&g.bO(A,e.mA.Ci());P?(A.c=Ha(e.In.cZ,2),A.ss=Ha(e.In.kP,2)):A.tth=La()-cqq;A.mc=Ha(X.oH,2);A.nc=Ha(X.D,2);A.mv=RJ(X.Z);A.nv=RJ(X.L);A.lte=Ha(e.ZF,2);P=Se(e,B);AV(X);A.qmtos=AV(P);A.qnc=Ha(P.D,2);A.qmv=RJ(P.Z);A.qnv=RJ(P.L);A.qas=P.L>0?1:0;A.qi=e.o$;A.avms||(A.avms="geo");A.psm=X.Cf.S;A.psv=X.Cf.getValue();A.psfv=X.PW.getValue();A.psa=X.ym.getValue();T=N44(T.Z5);T.length&&(A.veid=T);e.C&&g.bO(A, NON(e.C));A.avas=e.Ax();A.vs=e.Pv();A.co=oLT(e);A.tm=X.e1;A.tu=X.XM;return A}; P5q=function(e,a){if(g.ZB(nLz,a))return!0;var r=e.Zn[a];return r!==void 0?(e.Zn[a]=!0,!r):!1}; oLT=function(e){var a=e.e1.toString(10).padStart(2,"0");a=""+e.ID+a;e.e1<99&&e.e1++;return a}; TNT=function(){this.S={};var e=XW();je(this,e,document);var a=yql();try{if("1"==a){for(var r=e.parent;r!=e.top;r=r.parent)je(this,r,r.document);je(this,e.top,e.top.document)}}catch(P){}}; yql=function(){var e=document.documentElement;try{if(!Xs(XW().top))return"2";var a=[],r=XW(e.ownerDocument);for(e=r;e!=r.top;e=e.parent)if(e.frameElement)a.push(e.frameElement);else break;return a&&a.length!=0?"1":"0"}catch(P){return"2"}}; je=function(e,a,r){Un(r,"mousedown",function(){return XJz(e)},301); Un(a,"scroll",function(){return f$4(e)},302); Un(r,"touchmove",function(){return Aql(e)},303); Un(r,"mousemove",function(){return UXI(e)},304); Un(r,"keydown",function(){return C54(e)},305)}; XJz=function(e){g.K5(e.S,function(a){a.B>1E5||++a.B})}; f$4=function(e){g.K5(e.S,function(a){a.S>1E5||++a.S})}; Aql=function(e){g.K5(e.S,function(a){a.S>1E5||++a.S})}; C54=function(e){g.K5(e.S,function(a){a.T>1E5||++a.T})}; UXI=function(e){g.K5(e.S,function(a){a.L>1E5||++a.L})}; G54=function(){this.S=[];this.T=[]}; ug=function(e,a){return g.tw(e.S,function(r){return r.o$==a})}; EL4=function(e,a){return a?g.tw(e.S,function(r){return r.Ii.HT==a}):null}; b0q=function(e,a){return g.tw(e.T,function(r){return r.qj()==2&&r.o$==a})}; eO=function(){var e=K6;return e.S.length==0?e.T:e.T.length==0?e.S:g.QG(e.T,e.S)}; t5j=function(e,a){e=a.qj()==1?e.S:e.T;var r=bN(e,function(P){return P==a}); return r!=-1?(e.splice(r,1),a.mA&&a.mA.unobserve(),a.dispose(),!0):!1}; gLI=function(e){var a=K6;if(t5j(a,e)){switch(e.qj()){case 0:var r=function(){return null}; case 2:r=function(){return b0q(a,e.o$)}; break;case 1:r=function(){return ug(a,e.o$)}}for(var P=r();P;P=r())t5j(a,P)}}; Z0O=function(e){var a=K6;e=g.QX(e,function(r){return!EL4(a,r.Ii.HT)}); a.S.push.apply(a.S,g.UO(e))}; O0z=function(e){var a=[];g.FN(e,function(r){va(K6.S,function(P){return P.Ii.HT===r.Ii.HT&&P.o$===r.o$})||(K6.S.push(r),a.push(r))})}; a5=function(){this.S=this.T=null}; k5I=function(e,a){function r(P,B){a(P,B)} if(e.T==null)return!1;e.S=g.tw(e.T,function(P){return P!=null&&P.Ow()}); e.S&&(e.S.init(r)?yKT(e.S.S):a(e.S.S.f9(),e.S));return e.S!=null}; rT=function(e){e=dXy(e);Ka.call(this,e.length?e[e.length-1]:new Fd(Wo,0));this.B=e;this.T=null}; dXy=function(e){if(!e.length)return[];e=(0,g.QX)(e,function(r){return r!=null&&r.mY()}); for(var a=1;ar.time?a:r},e[0])}; c9=function(e){e=e===void 0?Wo:e;Ka.call(this,new Fd(e,2))}; o5=function(){var e=$Xl();Fd.call(this,Wo.top,e,"geo")}; $Xl=function(){Pa();var e=RB();return e.B||e.T?0:2}; Q44=function(){}; nr=function(){this.done=!1;this.S={iI:0,Q9:0,FOf:0,YQ:0,YH:-1,xe:0,tv:0,Av:0,IZQ:0};this.C=null;this.Z=!1;this.B=null;this.D=0;this.T=new mw(this)}; T0=function(){var e=yc;e.Z||(e.Z=!0,WnO(e,function(){return e.L.apply(e,g.UO(g.xN.apply(0,arguments)))}),e.L())}; l$L=function(){ZX(Q44);var e=ZX(a5);e.S!=null&&e.S.S?yKT(e.S.S):RB().update(Wo)}; XE=function(e,a,r){if(!e.done&&(e.T.cancel(),a.length!=0)){e.B=null;try{l$L();var P=La();Pa().C=P;if(ZX(a5).S!=null)for(var B=0;B=0?La()-YX:-1,y=La();B.S.YH==-1&&(c=y);var T=RB(),X=Pa(),f=VI(X.Z5),A=eO();try{if(A.length>0){var U=T.S;U&&(f.bs=[z7(U),U.getHeight()]);var C=T.C;C&&(f.ps=[C.width,C.height]);Wo.screen&&(f.scs=[Wo.screen.width,Wo.screen.height])}else f.url=encodeURIComponent(Wo.location.href.substring(0,512)),h.referrer&&(f.referrer=encodeURIComponent(h.referrer.substring(0,512))); f.tt=c;f.pt=YX;f.bin=X.T;Wo.google_osd_load_pub_page_exp!==void 0&&(f.olpp=Wo.google_osd_load_pub_page_exp);f.deb=[1,B.S.iI,B.S.Q9,B.S.YQ,B.S.YH,0,B.T.T,B.S.xe,B.S.tv,B.S.Av,B.S.IZQ,-1].join(";");f.tvt=YXy(B,y);T.T&&(f.inapp=1);if(Wo!==null&&Wo!=Wo.top){A.length>0&&(f.iframe_loc=encodeURIComponent(Wo.location.href.substring(0,512)));var G=T.D;f.is=[z7(G),G.getHeight()]}}catch(O){f.error=1}yc.B=f}U=g.GX(yc.B);C=Pa().S;DG(C.B,"prf")==1?(G=new aB,B=C.S,h=0,B.S>-1&&(h=B.B.S.now()-B.S),G=T5(G,1,TP(B.L+ h),0),B=C.S,G=T5(G,5,Ub(B.S>-1?B.T+1:B.T),0),G=T5(G,2,kj(C.T.S.B()),"0"),G=T5(G,3,kj(C.T.S.T()),"0"),C=T5(G,4,kj(C.T.S.S()),"0"),G={},C=(G.pf=g.Vq(C.B()),G)):C={};g.bO(U,C);g.bO(a,P,r,U,e())}])}; i0J=function(){var e=pJJ||Wo;if(!e)return"";var a=[];if(!e.location||!e.location.href)return"";a.push("url="+encodeURIComponent(e.location.href.substring(0,512)));e.document&&e.document.referrer&&a.push("referrer="+encodeURIComponent(e.document.referrer.substring(0,512)));return a.join("&")}; fr=function(){var e="youtube.player.web_20250729_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250729_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250729_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250729_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),a;if(((a=e)==null?void 0:a.length)==2)return e[1];e="youtube.player.web_20250729_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var r;return((r=e)==null?void 0:r.length)==3?"20"+e[1]+e[2]:null}; zkL=function(){return"av.default_js".includes("ima_html5_sdk")?{zJ:"ima",cj:null}:"av.default_js".includes("ima_native_sdk")?{zJ:"nima",cj:null}:"av.default_js".includes("admob-native-video-javascript")?{zJ:"an",cj:null}:"youtube.player.web_20250729_22_RC00".includes("cast_js_sdk")?{zJ:"cast",cj:fr()}:"youtube.player.web_20250729_22_RC00".includes("youtube.player.web")?{zJ:"yw",cj:fr()}:"youtube.player.web_20250729_22_RC00".includes("outstream_web_client")?{zJ:"out",cj:fr()}:"youtube.player.web_20250729_22_RC00".includes("drx_rewarded_web")? {zJ:"r",cj:fr()}:"youtube.player.web_20250729_22_RC00".includes("gam_native_web_video")?{zJ:"n",cj:fr()}:"youtube.player.web_20250729_22_RC00".includes("admob_interstitial_video")?{zJ:"int",cj:fr()}:{zJ:"j",cj:null}}; Cr=function(e,a){var r={sv:"967"};AL!==null&&(r.v=AL);r.cb=NNO;r.nas=K6.S.length;r.msg=e;a!==void 0&&(e=xXT(a))&&(r.e=Uw[e]);return r}; G0=function(e){return QI(e,"custom_metric_viewable")}; xXT=function(e){var a=G0(e)?"custom_metric_viewable":e.toLowerCase();return ff(m7,function(r){return r==a})}; I$O=function(){this.S=void 0;this.T=!1;this.B=0;this.L=-1;this.C="tos"}; vLj=function(e){try{var a=e.split(",");return a.length>g.yI(H0z).length?null:gF(a,function(r,P){P=P.toLowerCase().split("=");if(P.length!=2||qXj[P[0]]===void 0||!qXj[P[0]](P[1]))throw Error("Entry ("+P[0]+", "+P[1]+") is invalid.");r[P[0]]=P[1];return r},{})}catch(r){return null}}; RkI=function(e,a){if(e.S==void 0)return 0;switch(e.C){case "mtos":return e.T?TT(a.S,e.S):TT(a.T,e.S);case "tos":return e.T?yX(a.S,e.S):yX(a.T,e.S)}return 0}; Ew=function(e,a,r,P){p6.call(this,a,P);this.D=e;this.Y=r}; bw=function(){}; tL=function(e){p6.call(this,"fully_viewable_audible_half_duration_impression",e)}; gT=function(e){this.S=e}; Zs=function(e,a){p6.call(this,e,a)}; Ow=function(e){ig.call(this,"measurable_impression",e)}; kc=function(){gT.apply(this,arguments)}; dT=function(e,a,r){IJ.call(this,e,a,r)}; JL=function(e){e=e===void 0?Wo:e;Ka.call(this,new Fd(e,2))}; Ds=function(e,a,r){IJ.call(this,e,a,r)}; Vc=function(e){e=e===void 0?Wo:e;Ka.call(this,new Fd(e,2))}; $c=function(){Fd.call(this,Wo,2,"mraid");this.Cf=0;this.oH=this.TQ=!1;this.D=null;this.T=egl(this.B);this.L.S=new id(0,0,0,0);this.e1=!1}; Qc=function(e,a,r){e.hc("addEventListener",a,r)}; FnI=function(e){Pa().L=!!e.hc("isViewable");Qc(e,"viewableChange",SXO);e.hc("getState")==="loading"?Qc(e,"ready",s4L):mXJ(e)}; mXJ=function(e){typeof e.T.v4.AFMA_LIDAR==="string"?(e.TQ=!0,M5j(e)):(e.T.compatibility=3,e.D="nc",e.fail("w"))}; M5j=function(e){e.oH=!1;var a=DG(Pa().Z5,"rmmt")==1,r=!!e.hc("isViewable");(a?!r:1)&&ku().setTimeout(Wa(524,function(){e.oH||(j4I(e),lt(540,Error()),e.D="mt",e.fail("w"))}),500); u9L(e);Qc(e,e.T.v4.AFMA_LIDAR,KnL)}; u9L=function(e){var a=DG(Pa().Z5,"sneio")==1,r=e.T.v4.AFMA_LIDAR_EXP_1!==void 0,P=e.T.v4.AFMA_LIDAR_EXP_2!==void 0;(a=a&&P)&&(e.T.v4.AFMA_LIDAR_EXP_2=!0);r&&(e.T.v4.AFMA_LIDAR_EXP_1=!a)}; j4I=function(e){e.hc("removeEventListener",e.T.v4.AFMA_LIDAR,KnL);e.TQ=!1}; eDJ=function(e,a){if(e.hc("getState")==="loading")return new g.Sr(-1,-1);a=e.hc(a);if(!a)return new g.Sr(-1,-1);e=parseInt(a.width,10);a=parseInt(a.height,10);return isNaN(e)||isNaN(a)?new g.Sr(-1,-1):new g.Sr(e,a)}; s4L=function(){try{var e=ZX($c);e.hc("removeEventListener","ready",s4L);mXJ(e)}catch(a){lt(541,a)}}; KnL=function(e,a){try{var r=ZX($c);r.oH=!0;var P=e?new id(e.y,e.x+e.width,e.y+e.height,e.x):new id(0,0,0,0);var B=La(),h=sW();var c=new Nt(B,h,r);c.S=P;c.volume=a;r.xY(c)}catch(y){lt(542,y)}}; SXO=function(e){var a=Pa(),r=ZX($c);e&&!a.L&&(a.L=!0,r.e1=!0,r.D&&r.fail("w",!0))}; W9=function(){this.isInitialized=!1;this.S=this.T=null;var e={};this.D=(e.start=this.oE,e.firstquartile=this.rH,e.midpoint=this.iY,e.thirdquartile=this.nI,e.complete=this.Vz,e.error=this.MS,e.pause=this.P5,e.resume=this.wk,e.skip=this.Hl,e.viewable_impression=this.Fn,e.mute=this.MV,e.unmute=this.MV,e.fullscreen=this.NS,e.exitfullscreen=this.v$,e.fully_viewable_audible_half_duration_impression=this.Fn,e.measurable_impression=this.Fn,e.abandon=this.P5,e.engagedview=this.Fn,e.impression=this.Fn,e.creativeview= this.Fn,e.progress=this.MV,e.custom_metric_viewable=this.Fn,e.bufferstart=this.P5,e.bufferfinish=this.wk,e.audio_measurable=this.Fn,e.audio_audible=this.Fn,e);e={};this.Y=(e.overlay_resize=this.uY,e.abandon=this.Qq,e.close=this.Qq,e.collapse=this.Qq,e.overlay_unmeasurable_impression=function(a){return Fh(a,"overlay_unmeasurable_impression",sW())},e.overlay_viewable_immediate_impression=function(a){return Fh(a,"overlay_viewable_immediate_impression",sW())},e.overlay_unviewable_impression=function(a){return Fh(a, "overlay_unviewable_impression",sW())},e.overlay_viewable_end_of_session_impression=function(a){return Fh(a,"overlay_viewable_end_of_session_impression",sW())},e); Pa().T=3;aKL(this);this.B=null}; lw=function(e,a,r,P){e=e.Qb(null,P,!0,a);e.L=r;Z0O([e]);return e}; rv4=function(e,a,r){ll4(a);var P=e.S;g.FN(a,function(B){var h=g.ba(B.criteria,function(c){var y=vLj(c);if(y==null)c=null;else if(c=new I$O,y.visible!=null&&(c.S=y.visible/100),y.audible!=null&&(c.T=y.audible==1),y.time!=null){var T=y.timetype=="mtos"?"mtos":"tos",X=HLO(y.time,"%")?"%":"ms";y=parseInt(y.time,10);X=="%"&&(y/=100);c.setTime(y,X,T)}return c}); va(h,function(c){return c==null})||u6j(r,new Ew(B.id,B.event,h,P))})}; PAy=function(){var e=[],a=Pa();e.push(ZX(o5));DG(a.Z5,"mvp_lv")&&e.push(ZX($c));a=[new JL,new Vc];a.push(new rT(e));a.push(new c9(Wo));return a}; B_T=function(e){if(!e.isInitialized){e.isInitialized=!0;try{var a=La(),r=Pa(),P=RB();YX=a;r.B=79463069;e.T!=="o"&&(pJJ=B64(Wo));if(CO3()){yc.S.Q9=0;yc.S.YH=La()-a;var B=PAy(),h=ZX(a5);h.T=B;k5I(h,function(){Lr()})?yc.done||(Lnj(),Mt(h.S.S,e),T0()):P.B?Lr():T0()}else Yc=!0}catch(c){throw K6.reset(),c; }}}; pr=function(e){yc.T.cancel();wT=e;yc.done=!0}; I5=function(e){if(e.T)return e.T;var a=ZX(a5).S;if(a)switch(a.getName()){case "nis":e.T="n";break;case "gsv":e.T="m"}e.T||(e.T="h");return e.T}; H9=function(e,a,r){if(e.S==null)return a.ra|=4,!1;e=hDl(e.S,r,a);a.ra|=e;return e==0}; Lr=function(){var e=[new c9(Wo)],a=ZX(a5);a.T=e;k5I(a,function(){pr("i")})?yc.done||(Lnj(),T0()):pr("i")}; cv4=function(e,a){if(!e.T$){var r=Fh(e,"start",sW());r=e.d$.S(r).S;var P={id:"lidarv"};P.r=a;P.sv="967";AL!==null&&(P.v=AL);As(r,function(B,h){return P[B]=B=="mtos"||B=="tos"?h:encodeURIComponent(h)}); a=i0J();As(a,function(B,h){return P[B]=encodeURIComponent(h)}); a="//pagead2.googlesyndication.com/pagead/gen_204?"+rc(aJ(new ee,P));guT(a);e.T$=!0}}; q1=function(e,a,r){XE(yc,[e],!sW());rqI(e,r);r!=4&&a$j(e.TQ,r,e.rI);return Fh(e,a,sW())}; aKL=function(e){wJq(function(){var a=oCN();e.T!=null&&(a.sdk=e.T);var r=ZX(a5);r.S!=null&&(a.avms=r.S.getName());return a})}; nCO=function(e,a,r,P){var B=EL4(K6,r);B!==null&&B.o$!==a&&(e.Ls(B),B=null);B||(a=e.Qb(r,La(),!1,a),K6.T.length==0&&(Pa().B=79463069),O0z([a]),B=a,B.L=I5(e),P&&(B.ym=P));return B}; yvj=function(e,a){var r=e[a];r!==void 0&&r>0&&(e[a]=Math.floor(r*1E3))}; oCN=function(){var e=RB(),a={},r={},P={};return Object.assign({},(a.sv="967",a),AL!==null&&(r.v=AL,r),(P["if"]=e.B?"1":"0",P.nas=String(K6.S.length),P))}; v9=function(e){p6.call(this,"audio_audible",e)}; R5=function(e){ig.call(this,"audio_measurable",e)}; SO=function(){gT.apply(this,arguments)}; mS=function(){}; T_T=function(e){this.S=e}; hDl=function(e,a,r){e=e.T();if(typeof e==="function"){var P={};var B={};P=Object.assign({},AL!==null&&(P.v=AL,P),(B.sv="967",B.cb=NNO,B.e=Xjq(a),B));B=Fh(r,a,sW());g.bO(P,B);r.Ok[a]=B;P=r.qj()==2?tN3(P).join("&"):r.d$.S(P).S;try{return e(r.o$,P,a),0}catch(h){return 2}}else return 1}; Xjq=function(e){var a=G0(e)?"custom_metric_viewable":e;e=ff(m7,function(r){return r==a}); return Uw[e]}; FE=function(){W9.call(this);this.Z=null;this.C=!1;this.L="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; fKj=function(e,a,r){r=r.opt_configurable_tracking_events;e.S!=null&&Array.isArray(r)&&rv4(e,r,a)}; Av3=function(e,a,r){var P=ug(K6,a);P||(P=r.opt_nativeTime||-1,P=lw(e,a,I5(e),P),r.opt_osdId&&(P.ym=r.opt_osdId));return P}; UBJ=function(e,a,r){var P=ug(K6,a);P||(P=lw(e,a,"n",r.opt_nativeTime||-1));return P}; CAJ=function(e,a){var r=ug(K6,a);r||(r=lw(e,a,"h",-1));return r}; GRT=function(e){Pa();switch(I5(e)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; tul=function(e,a,r,P){r=r===void 0?{}:r;var B={};g.bO(B,{opt_adElement:void 0,opt_fullscreen:void 0},r);var h=e.TR(a,r);r=h?h.d$:e.Jg();if(B.opt_bounds)return r.S(Cr("ol",P));if(P!==void 0)if(xXT(P)!==void 0)if(Yc)e=Cr("ue",P);else if(B_T(e),wT=="i")e=Cr("i",P),e["if"]=0;else if(a=e.TR(a,B)){b:{wT=="i"&&(a.Gz=!0);h=B.opt_fullscreen;h!==void 0&&bg(a,!!h);var c;if(h=!RB().T)(h=Ys(g.zX(),"CrKey")&&!(Ys(g.zX(),"CrKey")&&Ys(g.zX(),"SmartSpeaker"))||Ys(g.zX(),"PlayStation")||Ys(g.zX(),"Roku")||hgj()||Ys(g.zX(), "Xbox"))||(h=g.zX(),h=Ys(h,"AppleTV")||Ys(h,"Apple TV")||Ys(h,"CFNetwork")||Ys(h,"tvOS")),h||(h=g.zX(),h=Ys(h,"sdk_google_atv_x86")||Ys(h,"Android TV")),h=!h;h&&(ku(),h=cQ(Sg)===0);if(c=h){switch(a.qj()){case 1:cv4(a,"pv");break;case 2:e.bT(a)}pr("pv")}h=P.toLowerCase();if(c=!c)c=DG(Pa().Z5,"ssmol")&&h==="loaded"?!1:g.ZB(ECq,h);if(c&&a.mz==0){wT!="i"&&(yc.done=!1);c=B!==void 0?B.opt_nativeTime:void 0;zS=c=typeof c==="number"?c:La();a.MU=!0;var y=sW();a.mz=1;a.Zn={};a.Zn.start=!1;a.Zn.firstquartile= !1;a.Zn.midpoint=!1;a.Zn.thirdquartile=!1;a.Zn.complete=!1;a.Zn.resume=!1;a.Zn.pause=!1;a.Zn.skip=!1;a.Zn.mute=!1;a.Zn.unmute=!1;a.Zn.viewable_impression=!1;a.Zn.measurable_impression=!1;a.Zn.fully_viewable_audible_half_duration_impression=!1;a.Zn.fullscreen=!1;a.Zn.exitfullscreen=!1;a.N1=0;y||(a.Ql().Y=c);XE(yc,[a],!y)}(c=a.CN[h])&&lg(a.kK,c);DG(Pa().Z5,"fmd")||g.ZB(bv3,h)&&a.PS&&a.PS.T(a,null);switch(a.qj()){case 1:var T=G0(h)?e.D.custom_metric_viewable:e.D[h];break;case 2:T=e.Y[h]}if(T&&(P=T.call(e, a,B,P),DG(Pa().Z5,"fmd")&&g.ZB(bv3,h)&&a.PS&&a.PS.T(a,null),P!==void 0)){B=Cr(void 0,h);g.bO(B,P);P=B;break b}P=void 0}a.mz==3&&e.Ls(a);e=P}else e=Cr("nf",P);else e=void 0;else Yc?e=Cr("ue"):h?(e=Cr(),g.bO(e,BNJ(h,!0,!1,!1))):e=Cr("nf");return typeof e==="string"?r.S():r.S(e)}; gCz=function(e,a){a&&(e.L=a)}; Zv4=function(e){var a={};return a.viewability=e.S,a.googleViewability=e.T,a}; Ov3=function(e,a,r){r=r===void 0?{}:r;e=tul(ZX(FE),a,r,e);return Zv4(e)}; M1=function(e){var a=g.xN.apply(1,arguments).filter(Boolean).join("&");if(!a)return e;var r=e.match(/[?&]adurl=/);return r?e.slice(0,r.index+1)+a+"&"+e.slice(r.index+1):e+(e.indexOf("?")<0?"?":"&")+a}; jO=function(e,a){return a?"&"+e+"="+encodeURIComponent(a):""}; kRj=function(e){var a=e.url;e=e.Coz;this.T=a;this.L=e;this.B=(new Date).getTime()-17040672E5;this.S={};for(var r=/[?&]([^&=]+)=([^&]*)/g;e=r.exec(a);)this.S[e[1]]=e[2]}; dB4=function(e){e=e.L;if(!e)return"";var a=jO("uap",e.platform)+jO("uapv",e.platformVersion)+jO("uafv",e.uaFullVersion)+jO("uaa",e.architecture)+jO("uam",e.model)+jO("uab",e.bitness);e.fullVersionList&&(a+="&uafvl="+encodeURIComponent(e.fullVersionList.map(function(r){return encodeURIComponent(r.brand)+";"+encodeURIComponent(r.version)}).join("|"))); e.wow64!=null&&(a+="&uaw="+Number(e.wow64));return a.slice(1)}; VuJ=function(e,a,r,P,B){var h=window;var c=c===void 0?!1:c;var y;r?y=(c===void 0?0:c)?"//ep1.adtrafficquality.google/bg/"+WR(r)+".js":"//pagead2.googlesyndication.com/bg/"+WR(r)+".js":y="";c=c===void 0?!1:c;r=h.document;var T={};a&&(T._scs_=a);T._bgu_=y;T._bgp_=P;T._li_="v_h.3.0.0.0";B&&(T._upb_=B);(a=h.GoogleTyFxhY)&&typeof a.push=="function"||(a=h.GoogleTyFxhY=[]);a.push(T);a=a8(r).createElement("SCRIPT");a.type="text/javascript";a.async=!0;e=(c===void 0?0:c)?g.uF(JvI,WR(e)+".js"):g.uF(DBj,WR(e)+ ".js");g.gf(a,e);(h=(h.GoogleTyFxhYEET||{})[a.src])?h():r.getElementsByTagName("head")[0].appendChild(a)}; $Bz=function(){try{var e,a;return!!((e=window)==null?0:(a=e.top)==null?0:a.location.href)&&!1}catch(r){return!0}}; uw=function(e,a,r){r=r===void 0?Error():r;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=e;a+=":";r instanceof Error?(this.message=a+r.message,this.stack=r.stack||""):(this.message=a+String(r),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; ek=function(){var e=Q_l();e=e===void 0?"bevasrsg":e;return new Promise(function(a){var r=window===window.top?window:$Bz()?window:window.top,P=r[e],B;((B=P)==null?0:B.bevasrs)?a(new Kr(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),r[e]=P),P.nqfbel.push(function(h){a(new Kr(h))}))})}; WMI=function(e){var a={c:e.fE,e:e.Rk,mc:e.c6,me:e.mZ};e.uo&&(a.co={c:e.uo.Ba,a:e.uo.xs,s:e.uo.Bs});return a}; as=function(e){g.N.call(this);this.wpc=e}; Kr=function(e){g.N.call(this);var a=this;this.SK=e;this.B="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.T=void 0;this.ri=this.SK.p;this.L=this.bz.bind(this);this.addOnDisposeCallback(function(){return void lK4(a)})}; LMO=function(e){var a;return g.Y(function(r){if(r.T==1){if(!e.SK.wpc)throw new uw(30,"NWA");return e.S?r.return(e.S):g.l(r,e.SK.wpc(),2)}a=r.S;e.S=new as(a);return r.return(e.S)})}; lK4=function(e){e.T!==void 0&&(e.B.forEach(function(a){var r;(r=e.T)==null||r.removeEventListener(a,e.L)}),e.T=void 0)}; Y2j=function(e){var a=a===void 0?50:a;var r=[];Jq(e,r9,6).forEach(function(P){QV(P,2)<=a&&r.push(QV(P,1))}); return r}; wjy=function(e){var a=a===void 0?50:a;var r=[];Jq(e,r9,6).forEach(function(P){QV(P,2)>a&&r.push(QV(P,1))}); return r}; pjI=function(e){e.then(function(){},function(){})}; P1=function(){g.N.apply(this,arguments);this.T=1}; B1=function(e){return{fieldType:2,fieldName:e}}; g.hS=function(e){return{fieldType:3,fieldName:e}}; ivl=function(e){this.S=e;e.M$("/client_streamz/bg/frs",g.hS("mk"))}; zDI=function(e){this.S=e;e.M$("/client_streamz/bg/wrl",g.hS("mn"),B1("ac"),B1("sc"),g.hS("rk"),g.hS("mk"))}; N_4=function(e){this.S=e;e.gM("/client_streamz/bg/ec",g.hS("en"),g.hS("mk"))}; xB4=function(e){this.S=e;e.M$("/client_streamz/bg/el",g.hS("en"),g.hS("mk"))}; IKN=function(e){this.S=e;e.gM("/client_streamz/bg/cec",B1("ec"),g.hS("mk"))}; Hvl=function(e){this.S=e;e.gM("/client_streamz/bg/po/csc",B1("cs"),g.hS("mk"))}; q2T=function(e){this.S=e;e.gM("/client_streamz/bg/po/ctav",g.hS("av"),g.hS("mk"))}; vCj=function(e){this.S=e;e.gM("/client_streamz/bg/po/cwsc",g.hS("su"),g.hS("mk"))}; RD3=function(e){this.uv=RU(e)}; S2J=function(e,a){return $vl(e,a,u7L)}; c1=function(e){this.uv=RU(e)}; os=function(e){this.uv=RU(e)}; ne=function(e){this.uv=RU(e)}; yk=function(e){this.uv=RU(e)}; Tp=function(e){this.uv=RU(e)}; Xt=function(e){this.uv=RU(e)}; s_N=function(e){this.uv=RU(e)}; MuT=function(e){var a=new Xt;a=i5(a,1,e.T);var r=mBJ(e);a=$vl(a,r,TfT);r=[];for(var P=[],B=g.Z(e.S.keys()),h=B.next();!h.done;h=B.next())P.push(h.value.split(","));for(B=0;B>>31)&4294967295;A=B[0];var G=B[1],O=B[2],d=B[3],W=B[4];for(C=0;C<80;C++){if(C<40)if(C<20){var V=d^G&(O^d);var L=1518500249}else V=G^O^d,L=1859775393;else C<60?(V=G&O|d&(G|O),L=2400959708):(V=G^O^d,L=3395469782);V=((A<<5|A>>>27)&4294967295)+V+W+L+U[C]&4294967295;W=d;d=O;O=(G<<30|G>>>2)&4294967295;G=A;A=V}B[0]=B[0]+A&4294967295;B[1]=B[1]+G&4294967295;B[2]= B[2]+O&4294967295;B[3]=B[3]+d&4294967295;B[4]=B[4]+W&4294967295} function r(A,U){if(typeof A==="string"){A=unescape(encodeURIComponent(A));for(var C=[],G=0,O=A.length;G=56;C--)h[C]=U&255,U>>>=8;a(h);for(C=U=0;C<5;C++)for(var G=24;G>=0;G-=8)A[U++]=B[C]>>G&255;return A} for(var B=[],h=[],c=[],y=[128],T=1;T<64;++T)y[T]=0;var X,f;e();return{reset:e,update:r,digest:P,iZ:function(){for(var A=P(),U="",C=0;C1)));c=c.next)B||(h=c);B&&(r.S==0&&P==1?SW4(r,a):(h?(P=h,P.next==r.L&&(r.L=P),P.next=P.next.next):sBq(r),mtq(r,B,3,a)))}e.B=null}else dW(e,3,a)}; YP=function(e,a){e.T||e.S!=2&&e.S!=3||FwL(e);e.L?e.L.next=a:e.T=a;e.L=a}; Mgy=function(e,a,r,P){var B=Wy(null,null,null);B.S=new g.QM(function(h,c){B.B=a?function(y){try{var T=a.call(P,y);h(T)}catch(X){c(X)}}:h; B.T=r?function(y){try{var T=r.call(P,y);T===void 0&&y instanceof pN?c(y):h(T)}catch(X){c(X)}}:c}); B.S.B=e;YP(e,B);return B.S}; dW=function(e,a,r){e.S==0&&(e===r&&(a=3,r=new TypeError("Promise cannot resolve to itself")),e.S=1,Haq(r,e.JAo,e.Glf,e)||(e.D=r,e.S=a,e.B=null,FwL(e),a!=3||r instanceof pN||jBz(e,r)))}; Haq=function(e,a,r,P){if(e instanceof g.QM)return Rbq(e,a,r,P),!0;if(e)try{var B=!!e.$goog_Thenable}catch(c){B=!1}else B=!1;if(B)return e.then(a,r,P),!0;if(g.hw(e))try{var h=e.then;if(typeof h==="function")return udI(e,h,a,r,P),!0}catch(c){return r.call(P,c),!0}return!1}; udI=function(e,a,r,P,B){function h(T){y||(y=!0,P.call(B,T))} function c(T){y||(y=!0,r.call(B,T))} var y=!1;try{a.call(e,c,h)}catch(T){h(T)}}; FwL=function(e){e.Z||(e.Z=!0,g.kP(e.Da,e))}; sBq=function(e){var a=null;e.T&&(a=e.T,e.T=a.next,a.next=null);e.T||(e.L=null);return a}; mtq=function(e,a,r,P){if(r==3&&a.T&&!a.L)for(;e&&e.C;e=e.B)e.C=!1;if(a.S)a.S.B=null,KwO(a,r,P);else try{a.L?a.B.call(a.context):KwO(a,r,P)}catch(B){eS3.call(null,B)}YWT(IyO,a)}; KwO=function(e,a,r){a==2?e.B.call(e.context,r):e.T&&e.T.call(e.context,r)}; jBz=function(e,a){e.C=!0;g.kP(function(){e.C&&eS3.call(null,a)})}; pN=function(e){C5.call(this,e)}; g.iE=function(e,a){g.AP.call(this);this.FG=e||1;this.Wt=a||g.uq;this.rl=(0,g.yG)(this.UCf,this);this.qe=g.f5()}; g.zQ=function(e,a,r){if(typeof e==="function")r&&(e=(0,g.yG)(e,r));else if(e&&typeof e.handleEvent=="function")e=(0,g.yG)(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(a)>2147483647?-1:g.uq.setTimeout(e,a||0)}; N_=function(e,a){var r=null;return(new g.QM(function(P,B){r=g.zQ(function(){P(a)},e); r==-1&&B(Error("Failed to schedule timer."))})).Vl(function(P){g.uq.clearTimeout(r); throw P;})}; g.xP=function(e){g.N.call(this);this.D=e;this.L=0;this.B=100;this.C=!1;this.T=new Map;this.Z=new Set;this.flushInterval=3E4;this.S=new g.iE(this.flushInterval);this.S.listen("tick",this.K1,!1,this);g.x(this,this.S)}; ae4=function(e){e.S.enabled||e.S.start();e.L++;e.L>=e.B&&e.K1()}; rVO=function(e,a){return e.Z.has(a)?void 0:e.T.get(a)}; Pgq=function(e){for(var a=0;a2?e.S.statusText:""}catch(r){a=""}e.L=a+" ["+e.getStatus()+"]";UfI(e)}}finally{SC(e)}}}; SC=function(e,a){if(e.S){e.Z&&(clearTimeout(e.Z),e.Z=null);var r=e.S;e.S=null;a||e.dispatchEvent("ready");try{r.onreadystatechange=null}catch(P){}}}; FP=function(e){var a=e.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break a;default:r=!1}if(!r){if(a=a===0)e=g.yp(String(e.Y))[1]||null,!e&&g.uq.self&&g.uq.self.location&&(e=g.uq.self.location.protocol.slice(0,-1)),a=!E3L.test(e?e.toLowerCase():"");r=a}return r}; g.mK=function(e){return e.S?e.S.readyState:0}; g.M_=function(e){try{return e.S?e.S.responseText:""}catch(a){return""}}; g.jC=function(e){try{if(!e.S)return null;if("response"in e.S)return e.S.response;switch(e.Eo){case "":case "text":return e.S.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in e.S)return e.S.mozResponseArrayBuffer}return null}catch(a){return null}}; g.b6I=function(e){var a={};e=(e.S&&g.mK(e)>=2?e.S.getAllResponseHeaders()||"":"").split("\r\n");for(var r=0;r0&&T>=a};r=r===void 0?[]:r;return new oz(P,r)}; A4=function(e){function a(G,O,d,W){Promise.resolve().then(function(){T.done();y.Tg();y.dispose();c.resolve({O4:G,HaW:O,fX$:d,JLo:W})})} function r(G,O,d,W){if(!P.logger.wP()){var V="k";O?V="h":d&&(V="u");V!=="k"?W!==0&&(P.logger.Bw(V),P.logger.nU(V,G)):P.T<=0?(P.logger.Bw(V),P.logger.nU(V,G),P.T=Math.floor(Math.random()*200)):P.T--}} g.N.call(this);var P=this;this.T=Math.floor(Math.random()*200);this.S=new XD;if("challenge"in e&&dfN(e.challenge)){var B=l5(e.challenge,4,void 0,mv);var h=l5(e.challenge,5,void 0,mv);l5(e.challenge,7,void 0,mv)&&(this.S=JVO(l5(e.challenge,7,void 0,mv)))}else B=e.program,h=e.globalName;this.addOnDisposeCallback(function(){var G,O,d;return g.Y(function(W){if(W.T==1)return g.l(W,P.B,2);G=W.S;O=G.HaW;(d=O)==null||d();g.OO(W)})}); this.logger=kTJ(e.Al||{},this.S);g.x(this,this.logger);var c=new g.fp;this.B=c.promise;this.logger.Bw("t");var y=this.logger.share(),T=new az(y,"t");if(!g.uq[h])throw this.logger.cI(25),Error("EGOU");if(!g.uq[h].a)throw this.logger.cI(26),Error("ELIU");try{var X=g.uq[h].a;h=[];for(var f=[],A=Y2j(this.S),U=0;U>1,a),Om(e,e.length>>1)]}; eFL=function(e){var a=g.Z(K7j(e,kO));e=a.next().value;a=a.next().value;return e.toString(16)+a.toString(16)}; asI=function(e,a){var r=K7j(a);e=new Uint32Array(e.buffer);a=e[0];var P=g.Z(r);r=P.next().value;P=P.next().value;for(var B=1;B>>8|c<<24,c+=h|0,c^=y+38293,h=h<<3|h>>>29,h^=c,T=T>>>8|T<<24,T+=y|0,T^=X+38293,y=y<<3|y>>>29,y^=T;h=[h,c];e[B]^=h[0];B+1=r?(globalThis.sessionStorage.removeItem(e),["e"]):["a",new Uint8Array(P.buffer,a+4)]}; dk=function(e,a,r){r=r===void 0?[]:r;this.maxItems=e;this.S=a===void 0?0:a;this.T=r}; BTL=function(e){var a=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!a)return new dk(e);var r=a.split(",");if(r.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new dk(e);a=r.slice(1);a.length===1&&a[0]===""&&(a=[]);r=Number(r[0]);return isNaN(r)||r<0||r>a.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new dk(e)):new dk(e,r,a)}; hF3=function(e,a){this.logger=a;try{var r=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){r=!1}r&&(this.index=BTL(e))}; cLj=function(e,a,r,P,B){var h=e.index?Pn(e.logger,function(){return rLO(e.index,eFL(a),r,P,B)},"W"):"u"; e.logger.r8(h)}; ocL=function(e,a,r){var P=g.Z(e.index?Pn(e.logger,function(){return Pwq(eFL(a),r)},"R"):["u"]),B=P.next().value; P=P.next().value;e.logger.VU(B);return P}; TT4=function(e){function a(){r-=P;r-=B;r^=B>>>13;P-=B;P-=r;P^=r<<8;B-=r;B-=P;B^=P>>>13;r-=P;r-=B;r^=B>>>12;P-=B;P-=r;P^=r<<16;B-=r;B-=P;B^=P>>>5;r-=P;r-=B;r^=B>>>3;P-=B;P-=r;P^=r<<10;B-=r;B-=P;B^=P>>>15} e=nc3(e);for(var r=2654435769,P=2654435769,B=314159265,h=e.length,c=h,y=0;c>=12;c-=12,y+=12)r+=J4(e,y),P+=J4(e,y+4),B+=J4(e,y+8),a();B+=h;switch(c){case 11:B+=e[y+10]<<24;case 10:B+=e[y+9]<<16;case 9:B+=e[y+8]<<8;case 8:P+=e[y+7]<<24;case 7:P+=e[y+6]<<16;case 6:P+=e[y+5]<<8;case 5:P+=e[y+4];case 4:r+=e[y+3]<<24;case 3:r+=e[y+2]<<16;case 2:r+=e[y+1]<<8;case 1:r+=e[y+0]}a();return yLl.toString(B)}; nc3=function(e){for(var a=[],r=0;r>7,e.error.code]);P.set(r,4);return P}; wk=function(e,a,r){D_.call(this,e);this.L=a;this.clientState=r;this.S="S";this.T="q"}; YO=function(e){return globalThis.TextEncoder?(new TextEncoder).encode(e):g.DX(e)}; fsO=function(e,a,r){return e instanceof bT?xfj(e,r,a,1):e.Z_(r)}; iT=function(e){g.N.call(this);var a=this;this.B=new g.fp;this.L=0;this.T=void 0;this.state=2;this.SK=e.SK;this.EX=e.EX;this.eW=Object.assign({},ALT,e.eW||{});this.logger=e.SK.bD();var r;this.onError=(r=e.onError)!=null?r:function(){}; this.CV=e.CV||!1;if(U1j(e)){var P=this.SK;this.C=function(){return RST(P).catch(function(c){c=a.reportError(new uw(a.S?20:32,"TRG:Disposed",c));a.T=c;var y;(y=a.S)==null||y.dispose();a.S=void 0;a.B.reject(c)})}; Sn3(P,function(){return void pp(a)}); P.Y===2&&pp(this)}else this.C=e.DgH,pp(this);var B=this.logger.share();B.Bw("o");var h=new az(B,"o");this.B.promise.then(function(){h.done();B.Tg();B.dispose()},function(){return void B.dispose()}); this.addOnDisposeCallback(function(){a.S?(a.S.dispose(),a.S=void 0):a.T?a.logger.Tg():(a.T=a.reportError(new uw(32,"TNP:Disposed")),a.logger.Tg(),a.B.reject(a.T))}); g.x(this,this.logger)}; CwL=function(e,a){if(!(a instanceof uw))if(a instanceof It){var r=Error(a.toString());r.stack=a.stack;a=new uw(11,"EBH:Error",r)}else a=new uw(12,"BSO:Unknown",a);return e.reportError(a)}; pp=function(e){var a,r,P,B,h,c,y,T,X,f,A,U,C,G,O;return g.Y(function(d){switch(d.T){case 1:a=void 0;e.L++;r=new g.fp;e.SK instanceof t4&&e.SK.L.push(r.promise);if(!e.CV){d.Oo(2);break}P=new g.fp;setTimeout(function(){return void P.resolve()}); return g.l(d,P.promise,2);case 2:return B=e.logger.share(),g.kN(d,4,5),e.state=5,h={},c=[],g.l(d,Z_(e.SK.snapshot({fE:h,Ek:c}),e.eW.R8H,function(){return Promise.reject(new uw(15,"MDA:Timeout"))}),7); case 7:y=d.S;if(e.wP())throw new uw(e.S?20:32,"MDA:Disposed");T=c[0];e.state=6;return g.l(d,Z_(fsO(e.EX,B,y),e.eW.sz,function(){return Promise.reject(new uw(10,"BWB:Timeout"))}),8); case 8:X=d.S;if(e.wP())throw new uw(e.S?20:32,"BWB:Disposed");e.state=7;a=Pn(B,function(){var V=G03(e,X,r,T);V.B.promise.then(function(){return void e.C()}); return V},"i"); case 5:g.YN(d);B.dispose();g.pL(d,6);break;case 4:f=g.Q3(d);(A=a)==null||A.dispose();if(!e.T){U=CwL(e,f);r.resolve();var W;if(W=e.SK instanceof t4&&e.L<2)a:if(f instanceof uw)W=f.code!==32&&f.code!==20&&f.code!==10;else{if(f instanceof It)switch(f.code){case 2:case 13:case 14:case 4:break;default:W=!1;break a}W=!0}if(W)return C=(1+Math.random()*.25)*(e.S?6E4:1E3),G=setTimeout(function(){return void e.C()},C),e.addOnDisposeCallback(function(){return void clearTimeout(G)}),d.return(); e.T=U}B.cI(e.S?13:14);e.B.reject(e.T);return d.return();case 6:e.state=8,e.L=0,(O=e.S)==null||O.dispose(),e.S=a,e.B.resolve(),g.OO(d)}})}; G03=function(e,a,r,P){var B=WJ(a,2)*1E3;if(B<=0)throw new uw(31,"TTM:Invalid");if(l5(a,4))return new lT(e.logger,l5(a,4),B);if(!WJ(a,3))return new Wn(e.logger,pg(yV(a,1)),B);if(!P)throw new uw(4,"PMD:Undefined");P=P(pg(yV(a,1)));if(!(P instanceof Function))throw new uw(16,"APF:Failed");e.Z=Math.floor((Date.now()+B)/1E3);e=new QL(e.logger,P,WJ(a,3),B);e.addOnDisposeCallback(function(){return void r.resolve()}); return e}; Ecy=function(e,a){a=a instanceof uw?a:new uw(5,"TVD:error",a);return e.reportError(a)}; Orq=function(e,a,r){try{if(e.wP())throw new uw(21,"BNT:disposed");if(!e.S&&e.T)throw e.T;var P,B;return(B=(P=bry(e,a,r))!=null?P:tOI(e,a,r))!=null?B:gcL(e,a,r)}catch(h){if(!a.mZ)throw Ecy(e,h);return Zrj(e,r,h)}}; bry=function(e,a,r){var P;return(P=e.S)==null?void 0:$O(P,function(){return zY(e,a)},r,function(B){var h; if(e.S instanceof QL&&((h=a.uo)==null?0:h.Bs))try{var c;(c=e.cache)==null||cLj(c,zY(e,a),B,a.uo.Ba,e.Z-120)}catch(y){e.reportError(new uw(24,"ELX:write",y))}})}; tOI=function(e,a,r){var P;if((P=a.uo)!=null&&P.xs)try{var B,h=(B=e.cache)==null?void 0:ocL(B,zY(e,a),a.uo.Ba);return h?r?Pn(e.logger,function(){return g.Vq(h,2)},"a"):h:void 0}catch(c){e.reportError(new uw(23,"RXO:read",c))}}; gcL=function(e,a,r){var P={stack:[],error:void 0,hasError:!1};try{if(!a.c6)throw new uw(29,"SDF:notready");return $O(bLj(P,new wk(e.logger,0,e.state)),function(){return zY(e,a)},r)}catch(B){P.error=B,P.hasError=!0}finally{tLq(P)}}; Zrj=function(e,a,r){var P={stack:[],error:void 0,hasError:!1};try{var B=Ecy(e,r);return $O(bLj(P,new Lp(e.logger,B)),function(){return[]},a)}catch(h){P.error=h,P.hasError=!0}finally{tLq(P)}}; zY=function(e,a){return a.Rk?a.Rk:a.fE?Pn(e.logger,function(){return a.Rk=YO(a.fE)},"c"):[]}; Ni=function(){var e=0,a;return function(r){a||(a=new Bn);var P=new wk(a,e,1),B=$O(P,function(){return YO(r)},!0); P.dispose();e++;return B}}; xO=function(e){this.uv=RU(e)}; k03=function(e,a,r){this.aF=e;this.Uy=a;this.metadata=r}; Iz=function(e,a){a=a===void 0?{}:a;this.Zyr=e;this.metadata=a;this.status=null}; Hn=function(e,a,r,P,B){this.name=e;this.methodType="unary";this.requestType=a;this.responseType=r;this.S=P;this.T=B}; qi=function(e){this.uv=RU(e)}; vn=function(e){this.uv=RU(e)}; Rz=function(e){this.uv=RU(e)}; SU=function(e,a){this.D=e.edr;this.Y=a;this.S=e.xhr;this.B=[];this.C=[];this.Z=[];this.L=[];this.T=[];this.D&&d1N(this)}; $1T=function(e,a){var r=new JLO;g.at(e.S,"complete",function(){if(FP(e.S)){var P=g.M_(e.S);if(a&&e.S.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");P=atob(P)}try{var B=e.Y(P)}catch(y){sm(e,m0(new It(13,"Error when deserializing response data; error: "+y+(", response: "+P)),r));return}P=Bcl(e.S.getStatus());FD(e,Mi(e));P==0?D1L(e,B):sm(e,m0(new It(P,"Xhr succeeded but the status code is not 200"),r))}else{P=g.M_(e.S);B=Mi(e);if(P){var h=VO4(e, P);P=h.code;var c=h.details;h=h.metadata}else P=2,c="Rpc failed due to xhr error. uri: "+String(e.S.Y)+", error code: "+e.S.T+", error: "+e.S.getLastError(),h=B;FD(e,B);sm(e,m0(new It(P,c,h),r))}})}; d1N=function(e){e.D.yC("data",function(a){if("1"in a){var r=a["1"];try{var P=e.Y(r)}catch(B){sm(e,new It(13,"Error when deserializing response data; error: "+B+(", response: "+r)))}P&&D1L(e,P)}if("2"in a)for(a=VO4(e,a["2"]),r=0;r-1&&e.splice(a,1)}; D1L=function(e,a){for(var r=0;r>4&15).toString(16)+(e&15).toString(16)}; nX=function(e,a){this.T=this.S=null;this.B=e||null;this.L=!!a}; fX=function(e){e.S||(e.S=new Map,e.T=0,e.B&&As(e.B,function(a,r){e.add(QC(a),r)}))}; zFz=function(e,a){fX(e);a=An(e,a);return e.S.has(a)}; g.NTL=function(e,a,r){e.remove(a);r.length>0&&(e.B=null,e.S.set(An(e,a),g.WB(r)),e.T=e.T+r.length)}; An=function(e,a){a=String(a);e.L&&(a=a.toLowerCase());return a}; w93=function(e,a){a&&!e.L&&(fX(e),e.B=null,e.S.forEach(function(r,P){var B=P.toLowerCase();P!=B&&(this.remove(P),g.NTL(this,B,r))},e)); e.L=a}; g.x1L=function(e){var a="";g.K5(e,function(r,P){a+=P;a+=":";a+=r;a+="\r\n"}); return a}; g.UC=function(e,a,r){if(g.Ak(r))return e;r=g.x1L(r);if(typeof e==="string")return bt(e,g.VC(a),r);g.Tk(e,a,r);return e}; g.CX=function(e){g.N.call(this);this.T=e;this.S={}}; Is4=function(e,a,r,P,B,h){if(Array.isArray(r))for(var c=0;c=0)return!0;try{var a=new g.ri(e)}catch(r){return g.tw(PbL,function(P){return e.search(P)>0})!=null}return a.Z.match(B9J)?!0:g.tw(PbL,function(r){return e.match(r)!=null})!=null}; g.Vm=function(e,a){return e.replace(cSN,function(r,P){try{var B=g.UH(a,P);if(B==null||B.toString()==null)return r;B=B.toString();if(B==""||!g.Wd(g.lF(B)))return encodeURIComponent(B).replace(/%2C/g,",")}catch(h){}return r})}; $4=function(e,a){return Object.is(e,a)}; WP=function(e){var a=Qm;Qm=e;return a}; oql=function(e){if(e.sB!==void 0){var a=l9;l9=!0;try{for(var r=e.sB;r!==void 0;r=r.bC){var P=r.lF;P.BS||(e=void 0,P.BS=!0,oql(P),(e=P.Cl)==null||e.call(P,P))}}finally{l9=a}}}; nqy=function(){var e;return((e=Qm)==null?void 0:e.Zg)!==!1}; yS4=function(e){e&&(e.B0=void 0,e.uT=!0);return WP(e)}; X1j=function(e,a){WP(a);if(e){e.uT=!1;a=e.B0;var r=a!==void 0?a.Eh:e.producers;if(r!==void 0){if(LX(e)){do r=T9O(r);while(r!==void 0)}a!==void 0?a.Eh=void 0:e.producers=void 0}}}; fON=function(e,a){var r=e.SJ,P=LX(e);r!==void 0?(a.bC=r.bC,r.bC=a):(a.bC=void 0,e.sB=a);a.Wb=r;e.SJ=a;if(!P)for(e=e.producers;e!==void 0;e=e.Eh)fON(e.wJ,e)}; T9O=function(e){var a=e.wJ,r=e.Eh,P=e.bC,B=e.Wb;e.bC=void 0;e.Wb=void 0;P!==void 0?P.Wb=B:a.SJ=B;if(B!==void 0)B.bC=P;else if(a.sB=P,!LX(a))for(e=a.producers;e!==void 0;)e=T9O(e);return r}; LX=function(e){return e.wY||e.sB!==void 0}; GpJ=function(e){function a(){a:{if(l9)throw Error("");if(Qm!==null){var P=Qm.B0;if(P===void 0||P.wJ!==r){var B=void 0,h=Qm.uT;if(h&&(B=P!==void 0?P.Eh:Qm.producers,B!==void 0&&B.wJ===r)){Qm.B0=B;B.t_=r.version;break a}var c=r.SJ,y;if(!(y=c===void 0||c.lF!==Qm)){if(h){b:{y=Qm;h=y.B0;if(h!==void 0){y=y.producers;do{if(y===c){h=!0;break b}if(y===h)break;y=y.Eh}while(y!==void 0)}h=!1}h=!h}y=h}y&&(h=LX(Qm),B={wJ:r,lF:Qm,Eh:B,Wb:c,t_:r.version,bC:void 0},Qm.B0=B,P!==void 0?P.Eh=B:Qm.producers=B,h&&fON(r, B))}}}return r.value} var r=Object.create(ASq);r.value=e;a[Uqz]=r;return[a,function(P){return CbL(r,P)}, function(P){if(!nqy())throw Error();CbL(r,P(r.value))}]}; CbL=function(e,a){if(!nqy())throw Error();e.uG(e.value,a)||(e.value=a,e.version++,Eq4++,oql(e))}; Y4=function(e,a){a=a===void 0?"":a;e=GpJ(e)[0][Uqz];var r;a=(r=a)!=null?r:"[signal]";e.debugName=a}; pX=function(e){g.AP.call(this);var a=this;this.C=this.T=0;this.kZ=e!=null?e:{xL:function(B,h){return setTimeout(B,h)}, OQ:function(B){clearTimeout(B)}}; var r,P;this.S=(P=(r=window.navigator)==null?void 0:r.onLine)!=null?P:!0;this.B=function(){return g.Y(function(B){return g.l(B,wi(a),0)})}; window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.C||this.CB()}; be4=function(){var e=g.i9;pX.instance||(pX.instance=new pX(e));return pX.instance}; wi=function(e,a){return e.L?e.L:e.L=new Promise(function(r){var P,B,h,c;return g.Y(function(y){switch(y.T){case 1:return P=window.AbortController?new window.AbortController:void 0,h=(B=P)==null?void 0:B.signal,c=!1,g.kN(y,2,3),P&&(e.T=e.kZ.xL(function(){P.abort()},a||2E4)),g.l(y,fetch("/generate_204",{method:"HEAD", signal:h}),5);case 5:c=!0;case 3:g.YN(y);e.L=void 0;e.T&&(e.kZ.OQ(e.T),e.T=0);c!==e.S&&(e.S=c,e.S?e.dispatchEvent("networkstatus-online"):e.dispatchEvent("networkstatus-offline"));r(c);g.pL(y,0);break;case 2:g.Q3(y),c=!1,y.Oo(3)}})})}; tkl=function(e){this.uv=RU(e)}; zk=function(){this.data=[];this.S=-1}; gqI=function(e){e.S===-1&&(e.S=e.data.reduce(function(a,r,P){return a+(r?Math.pow(2,P):0)},0)); return e.S}; Ne=function(e){e.setAttribute("role","link")}; Ia=function(e,a){Array.isArray(a)&&(a=a.join(" "));a===""||a==void 0?(x4||(a={},x4=(a.atomic=!1,a.autocomplete="none",a.dropeffect="none",a.haspopup=!1,a.live="off",a.multiline=!1,a.multiselectable=!1,a.orientation="vertical",a.readonly=!1,a.relevant="additions text",a.required=!1,a.sort="none",a.busy=!1,a.disabled=!1,a.hidden=!1,a.invalid="false",a)),a=x4,"label"in a?e.setAttribute("aria-label",a.label):e.removeAttribute("aria-label")):e.setAttribute("aria-label",a)}; HP=function(e){e=e.getAttribute("aria-label");return e==null||e==void 0?"":String(e)}; g.qe=function(e,a,r){g.N.call(this);this.S=null;this.L=!1;this.Z=e;this.C=r;this.T=a||window;this.B=(0,g.yG)(this.ZR,this)}; ZeO=function(e){e=e.T;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||null}; Oej=function(e){e=e.T;return e.cancelAnimationFrame||e.cancelRequestAnimationFrame||e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||null}; g.vP=function(e,a,r){g.N.call(this);this.S=e;this.FG=a||0;this.T=r;this.B=(0,g.yG)(this.Ew,this)}; g.sC=function(e,a){e.isActive()||e.start(a)}; g.ms=function(e){e.stop();e.Ew()}; g.Fu=function(e){e.isActive()&&g.ms(e)}; g.Me=function(e,a,r){g.N.call(this);this.L=r!=null?e.bind(r):e;this.FG=a;this.B=null;this.S=!1;this.T=0;this.JC=null}; jp=function(e){e.JC=g.zQ(function(){e.JC=null;e.S&&!e.T&&(e.S=!1,jp(e))},e.FG); var a=e.B;e.B=null;e.L.apply(null,a)}; g.u9=function(e,a){this.S=e[g.uq.Symbol.iterator]();this.T=a}; kpj=function(e){return typeof e.className=="string"?e.className:e.getAttribute&&e.getAttribute("class")||""}; KX=function(e){return e.classList?e.classList:kpj(e).match(/\S+/g)||[]}; g.eG=function(e,a){typeof e.className=="string"?e.className=a:e.setAttribute&&e.setAttribute("class",a)}; g.ac=function(e,a){return e.classList?e.classList.contains(a):g.ZB(KX(e),a)}; g.rr=function(e,a){if(e.classList)e.classList.add(a);else if(!g.ac(e,a)){var r=kpj(e);g.eG(e,r+(r.length>0?" "+a:a))}}; g.PD=function(e,a){if(e.classList)Array.prototype.forEach.call(a,function(B){g.rr(e,B)}); else{var r={};Array.prototype.forEach.call(KX(e),function(B){r[B]=!0}); Array.prototype.forEach.call(a,function(B){r[B]=!0}); a="";for(var P in r)a+=a.length>0?" "+P:P;g.eG(e,a)}}; g.BD=function(e,a){e.classList?e.classList.remove(a):g.ac(e,a)&&g.eG(e,Array.prototype.filter.call(KX(e),function(r){return r!=a}).join(" "))}; g.hi=function(e,a){e.classList?Array.prototype.forEach.call(a,function(r){g.BD(e,r)}):g.eG(e,Array.prototype.filter.call(KX(e),function(r){return!g.ZB(a,r)}).join(" "))}; g.cD=function(e,a,r){r?g.rr(e,a):g.BD(e,a)}; dqL=function(e,a){var r=!g.ac(e,a);g.cD(e,a,r)}; g.oc=function(){g.AP.call(this);this.S=0;this.endTime=this.startTime=null}; JS4=function(e,a){Array.isArray(a)||(a=[a]);a=a.map(function(r){return typeof r==="string"?r:r.property+" "+r.duration+"s "+r.timing+" "+r.delay+"s"}); g.vo(e,"transition",a.join(","))}; nT=function(e,a,r,P,B){g.oc.call(this);this.T=e;this.C=a;this.Z=r;this.L=P;this.D=Array.isArray(B)?B:[B]}; DqT=function(e,a,r,P){return new nT(e,a,{opacity:r},{opacity:P},{property:"opacity",duration:a,timing:"ease-in",delay:0})}; $qL=function(e){e=w6(e);if(e=="")return null;var a=String(e.slice(0,4)).toLowerCase();if(("url("1||e&&e.split(")"),null;if(e.indexOf("(")>0){if(/"|'/.test(e))return null;a=/([\-\w]+)\(/g;for(var r;r=a.exec(e);)if(!(r[1].toLowerCase()in VkO))return null}return e}; yj=function(e,a){e=g.uq[e];return e&&e.prototype?(a=Object.getOwnPropertyDescriptor(e.prototype,a))&&a.get||null:null}; Qsj=function(e){var a=g.uq.CSSStyleDeclaration;return a&&a.prototype&&a.prototype[e]||null}; Wel=function(e,a,r,P){if(e)return e.apply(a,P);if(g.T$&&document.documentMode<10){if(!a[r].call)throw Error("IE Clobbering detected");}else if(typeof a[r]!="function")throw Error("Clobbering detected");return a[r].apply(a,P)}; p1j=function(e){if(!e)return"";var a=document.createElement("div").style;lOy(e).forEach(function(r){var P=g.T7&&r in LeL?r:r.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");QI(P,"--")||QI(P,"var")||(r=Wel(Yez,e,e.getPropertyValue?"getPropertyValue":"getAttribute",[r])||"",r=$qL(r),r!=null&&Wel(w1j,a,a.setProperty?"setProperty":"setAttribute",[P,r]))}); return a.cssText||""}; lOy=function(e){g.BB(e)?e=g.WB(e):(e=g.yI(e),g.k9(e,"cssText"));return e}; g.fT=function(e){var a,r=a=0,P=!1;e=e.split(iej);for(var B=0;B.4?-1:1;return(a==0?null:a)==-1?"rtl":"ltr"}; g.G$=function(e){if(e instanceof Ai||e instanceof Uy||e instanceof CT)return e;if(typeof e.next=="function")return new Ai(function(){return e}); if(typeof e[Symbol.iterator]=="function")return new Ai(function(){return e[Symbol.iterator]()}); if(typeof e.TT=="function")return new Ai(function(){return e.TT()}); throw Error("Not an iterator or iterable.");}; Ai=function(e){this.T=e}; Uy=function(e){this.T=e}; CT=function(e){Ai.call(this,function(){return e}); this.B=e}; Ey=function(e,a,r,P,B,h,c,y){this.S=e;this.D=a;this.B=r;this.C=P;this.L=B;this.Z=h;this.T=c;this.Y=y}; bY=function(e,a){if(a==0)return e.S;if(a==1)return e.T;var r=qv(e.S,e.B,a),P=qv(e.B,e.L,a);e=qv(e.L,e.T,a);r=qv(r,P,a);P=qv(P,e,a);return qv(r,P,a)}; IOO=function(e,a){var r=(a-e.S)/(e.T-e.S);if(r<=0)return 0;if(r>=1)return 1;for(var P=0,B=1,h=0,c=0;c<8;c++){h=bY(e,r);var y=(bY(e,r+1E-6)-h)/1E-6;if(Math.abs(h-a)<1E-6)return r;if(Math.abs(y)<1E-6)break;else h1E-6&&c<8;c++)h=0}; g.Oy=function(e){g.N.call(this);this.Z=1;this.B=[];this.L=0;this.S=[];this.T={};this.D=!!e}; qej=function(e,a,r){g.kP(function(){e.apply(a,r)})}; g.kx=function(e){this.S=e}; dr=function(e){this.S=e}; vqL=function(e){this.data=e}; Rcz=function(e){return e===void 0||e instanceof vqL?e:new vqL(e)}; Ji=function(e){this.S=e}; g.Sel=function(e){var a=e.creation;e=e.expiration;return!!e&&eg.f5()}; g.Dw=function(e){this.S=e}; ssT=function(){}; Vj=function(){}; $x=function(e){this.S=e;this.T=null}; Qj=function(e){if(e.S==null)throw Error("Storage mechanism: Storage unavailable");e.isAvailable()||JK(Error("Storage mechanism: Storage unavailable"))}; WD=function(){var e=null;try{e=g.uq.localStorage||null}catch(a){}$x.call(this,e)}; mqN=function(){var e=null;try{e=g.uq.sessionStorage||null}catch(a){}$x.call(this,e)}; lY=function(e,a){this.T=e;this.S=a+"::"}; g.LT=function(e){var a=new WD;return a.isAvailable()?e?new lY(a,e):a:null}; Yx=function(e,a){this.S=e;this.T=a}; wr=function(e){this.S=[];if(e)a:{if(e instanceof wr){var a=e.Yl();e=e.XP();if(this.S.length<=0){for(var r=this.S,P=0;P>>6:(h<65536?y[r++]=224|h>>>12:(y[r++]=240|h>>>18,y[r++]=128|h>>>12&63),y[r++]=128|h>>> 6&63),y[r++]=128|h&63);return y}; No=function(e){for(var a=e.length;--a>=0;)e[a]=0}; xx=function(e,a,r,P,B){this.RK=e;this.z4=a;this.jD=r;this.Bk=P;this.o$1=B;this.gs=e&&e.length}; Ic=function(e,a){this.yu=e;this.fR=0;this.Gi=a}; HD=function(e,a){e.DZ[e.pending++]=a&255;e.DZ[e.pending++]=a>>>8&255}; qo=function(e,a,r){e.Dn>16-r?(e.Wo|=a<>16-e.Dn,e.Dn+=r-16):(e.Wo|=a<>>=1,r<<=1;while(--a>0);return r>>>1}; KeT=function(e,a,r){var P=Array(16),B=0,h;for(h=1;h<=15;h++)P[h]=B=B+r[h-1]<<1;for(r=0;r<=a;r++)B=e[r*2+1],B!==0&&(e[r*2]=utN(P[B]++,B))}; ewL=function(e){var a;for(a=0;a<286;a++)e.Kh[a*2]=0;for(a=0;a<30;a++)e.OX[a*2]=0;for(a=0;a<19;a++)e.JH[a*2]=0;e.Kh[512]=1;e.r_=e.JU=0;e.mI=e.matches=0}; aNI=function(e){e.Dn>8?HD(e,e.Wo):e.Dn>0&&(e.DZ[e.pending++]=e.Wo);e.Wo=0;e.Dn=0}; rP4=function(e,a,r){aNI(e);HD(e,r);HD(e,~r);z$.vx(e.DZ,e.window,a,r,e.pending);e.pending+=r}; PEL=function(e,a,r,P){var B=a*2,h=r*2;return e[B]>>7)];vD(e,c,r);y=Mo[c];y!==0&&(B-=jG[c],qo(e,B,y))}}while(P>1;c>=1;c--)Rc(e,r,c);T=h;do c=e.hA[1],e.hA[1]=e.hA[e.Dh--],Rc(e,r,1),P=e.hA[1],e.hA[--e.Mp]=c,e.hA[--e.Mp]=P,r[T*2]=r[c*2]+r[P*2],e.depth[T]=(e.depth[c]>=e.depth[P]?e.depth[c]:e.depth[P])+1,r[c*2+1]=r[P*2+1]=T,e.hA[1]=T++,Rc(e,r,1);while(e.Dh>= 2);e.hA[--e.Mp]=e.hA[1];c=a.yu;T=a.fR;P=a.Gi.RK;B=a.Gi.gs;h=a.Gi.z4;var X=a.Gi.jD,f=a.Gi.o$1,A,U=0;for(A=0;A<=15;A++)e.bP[A]=0;c[e.hA[e.Mp]*2+1]=0;for(a=e.Mp+1;a<573;a++){var C=e.hA[a];A=c[c[C*2+1]*2+1]+1;A>f&&(A=f,U++);c[C*2+1]=A;if(!(C>T)){e.bP[A]++;var G=0;C>=X&&(G=h[C-X]);var O=c[C*2];e.r_+=O*(A+G);B&&(e.JU+=O*(P[C*2+1]+G))}}if(U!==0){do{for(A=f-1;e.bP[A]===0;)A--;e.bP[A]--;e.bP[A+1]+=2;e.bP[f]--;U-=2}while(U>0);for(A=f;A!==0;A--)for(C=e.bP[A];C!==0;)P=e.hA[--a],P>T||(c[P*2+1]!==A&&(e.r_+=(A- c[P*2+1])*c[P*2],c[P*2+1]=A),C--)}KeT(r,y,e.bP)}; hwO=function(e,a,r){var P,B=-1,h=a[1],c=0,y=7,T=4;h===0&&(y=138,T=3);a[(r+1)*2+1]=65535;for(P=0;P<=r;P++){var X=h;h=a[(P+1)*2+1];++c>>=1)if(a&1&&e.Kh[r*2]!==0)return 0;if(e.Kh[18]!==0||e.Kh[20]!==0||e.Kh[26]!==0)return 1;for(r=32;r<256;r++)if(e.Kh[r*2]!==0)return 1;return 0}; KT=function(e,a,r){e.DZ[e.J8+e.mI*2]=a>>>8&255;e.DZ[e.J8+e.mI*2+1]=a&255;e.DZ[e.Bn+e.mI]=r&255;e.mI++;a===0?e.Kh[r*2]++:(e.matches++,a--,e.Kh[(SG[r]+256+1)*2]++,e.OX[(a<256?FT[a]:FT[256+(a>>>7)])*2]++);return e.mI===e.KA-1}; aM=function(e,a){e.msg=eX[a];return a}; rM=function(e){for(var a=e.length;--a>=0;)e[a]=0}; PV=function(e){var a=e.state,r=a.pending;r>e.iB&&(r=e.iB);r!==0&&(z$.vx(e.output,a.DZ,a.SN,r,e.Jl),e.Jl+=r,a.SN+=r,e.X2+=r,e.iB-=r,a.pending-=r,a.pending===0&&(a.SN=0))}; cV=function(e,a){var r=e.Zm>=0?e.Zm:-1,P=e.aD-e.Zm,B=0;if(e.level>0){e.PZ.va===2&&(e.PZ.va=oP3(e));uY(e,e.JZ);uY(e,e.gI);hwO(e,e.Kh,e.JZ.fR);hwO(e,e.OX,e.gI.fR);uY(e,e.vy);for(B=18;B>=3&&e.JH[nPL[B]*2+1]===0;B--);e.r_+=3*(B+1)+5+5+4;var h=e.r_+3+7>>>3;var c=e.JU+3+7>>>3;c<=h&&(h=c)}else h=c=P+5;if(P+4<=h&&r!==-1)qo(e,a?1:0,3),rP4(e,r,P);else if(e.strategy===4||c===h)qo(e,2+(a?1:0),3),BW3(e,BV,ha);else{qo(e,4+(a?1:0),3);r=e.JZ.fR+1;P=e.gI.fR+1;B+=1;qo(e,r-257,5);qo(e,P-1,5);qo(e,B-4,4);for(h=0;h>>8&255;e.DZ[e.pending++]=a&255}; yP3=function(e,a){var r=e.aj,P=e.aD,B=e.Gm,h=e.d7,c=e.aD>e.L8-262?e.aD-(e.L8-262):0,y=e.window,T=e.S2,X=e.ZL,f=e.aD+258,A=y[P+B-1],U=y[P+B];e.Gm>=e.YC&&(r>>=2);h>e.qr&&(h=e.qr);do{var C=a;if(y[C+B]===U&&y[C+B-1]===A&&y[C]===y[P]&&y[++C]===y[P+1]){P+=2;for(C++;y[++P]===y[++C]&&y[++P]===y[++C]&&y[++P]===y[++C]&&y[++P]===y[++C]&&y[++P]===y[++C]&&y[++P]===y[++C]&&y[++P]===y[++C]&&y[++P]===y[++C]&&PB){e.j8=a;B=C;if(C>=h)break;A=y[P+B-1];U=y[P+B]}}}while((a=X[a&T])>c&&--r!== 0);return B<=e.qr?B:e.qr}; Xv=function(e){var a=e.L8,r;do{var P=e.eA-e.qr-e.aD;if(e.aD>=a+(a-262)){z$.vx(e.window,e.window,a,a,0);e.j8-=a;e.aD-=a;e.Zm-=a;var B=r=e.Wh;do{var h=e.head[--B];e.head[B]=h>=a?h-a:0}while(--r);B=r=a;do h=e.ZL[--B],e.ZL[B]=h>=a?h-a:0;while(--r);P+=a}if(e.PZ.a$===0)break;B=e.PZ;r=e.window;h=e.aD+e.qr;var c=B.a$;c>P&&(c=P);c===0?r=0:(B.a$-=c,z$.vx(r,B.input,B.KU,c,h),B.state.wrap===1?B.ZX=ye(B.ZX,r,c,h):B.state.wrap===2&&(B.ZX=Tt(B.ZX,r,c,h)),B.KU+=c,B.ag+=c,r=c);e.qr+=r;if(e.qr+e.dE>=3)for(P=e.aD-e.dE, e.qd=e.window[P],e.qd=(e.qd<=3&&(e.qd=(e.qd<=3)if(r=KT(e,e.aD-e.j8,e.Ly-3),e.qr-=e.Ly,e.Ly<=e.X0&&e.qr>=3){e.Ly--;do e.aD++,e.qd=(e.qd<=3&&(e.qd=(e.qd<4096)&&(e.Ly=2));if(e.Gm>=3&&e.Ly<=e.Gm){P=e.aD+e.qr-3;r=KT(e,e.aD-1-e.HD,e.Gm-3);e.qr-=e.Gm-1;e.Gm-=2;do++e.aD<=P&&(e.qd=(e.qd<=3&&e.aD>0&&(P=e.aD-1,r=h[P],r===h[++P]&&r===h[++P]&&r===h[++P])){for(B=e.aD+258;r===h[++P]&&r===h[++P]&&r===h[++P]&&r===h[++P]&&r===h[++P]&&r===h[++P]&&r===h[++P]&&r===h[++P]&&Pe.qr&&(e.Ly=e.qr)}e.Ly>=3?(r=KT(e,1,e.Ly-3),e.qr-=e.Ly,e.aD+=e.Ly,e.Ly=0):(r=KT(e,0,e.window[e.aD]),e.qr--,e.aD++);if(r&&(cV(e,!1),e.PZ.iB===0))return 1}e.dE=0;return a=== 4?(cV(e,!0),e.PZ.iB===0?3:4):e.mI&&(cV(e,!1),e.PZ.iB===0)?1:2}; XyL=function(e,a){for(var r;;){if(e.qr===0&&(Xv(e),e.qr===0)){if(a===0)return 1;break}e.Ly=0;r=KT(e,0,e.window[e.aD]);e.qr--;e.aD++;if(r&&(cV(e,!1),e.PZ.iB===0))return 1}e.dE=0;return a===4?(cV(e,!0),e.PZ.iB===0?3:4):e.mI&&(cV(e,!1),e.PZ.iB===0)?1:2}; U7=function(e,a,r,P,B){this.Dy=e;this.HfW=a;this.WrM=r;this.uMW=P;this.func=B}; fNN=function(){this.PZ=null;this.status=0;this.DZ=null;this.wrap=this.pending=this.SN=this.AB=0;this.KB=null;this.P4=0;this.method=8;this.Zi=-1;this.S2=this.MW=this.L8=0;this.window=null;this.eA=0;this.head=this.ZL=null;this.d7=this.YC=this.strategy=this.level=this.X0=this.aj=this.Gm=this.qr=this.j8=this.aD=this.S6=this.HD=this.Ly=this.Zm=this.QC=this.Xq=this.jR=this.Wh=this.qd=0;this.Kh=new z$.kx(1146);this.OX=new z$.kx(122);this.JH=new z$.kx(78);rM(this.Kh);rM(this.OX);rM(this.JH);this.vy=this.gI= this.JZ=null;this.bP=new z$.kx(16);this.hA=new z$.kx(573);rM(this.hA);this.Mp=this.Dh=0;this.depth=new z$.kx(573);rM(this.depth);this.Dn=this.Wo=this.dE=this.matches=this.JU=this.r_=this.J8=this.mI=this.KA=this.Bn=0}; APN=function(e,a){if(!e||!e.state||a>5||a<0)return e?aM(e,-2):-2;var r=e.state;if(!e.output||!e.input&&e.a$!==0||r.status===666&&a!==4)return aM(e,e.iB===0?-5:-2);r.PZ=e;var P=r.Zi;r.Zi=a;if(r.status===42)if(r.wrap===2)e.ZX=0,oM(r,31),oM(r,139),oM(r,8),r.KB?(oM(r,(r.KB.text?1:0)+(r.KB.dC?2:0)+(r.KB.extra?4:0)+(r.KB.name?8:0)+(r.KB.comment?16:0)),oM(r,r.KB.time&255),oM(r,r.KB.time>>8&255),oM(r,r.KB.time>>16&255),oM(r,r.KB.time>>24&255),oM(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),oM(r,r.KB.os& 255),r.KB.extra&&r.KB.extra.length&&(oM(r,r.KB.extra.length&255),oM(r,r.KB.extra.length>>8&255)),r.KB.dC&&(e.ZX=Tt(e.ZX,r.DZ,r.pending,0)),r.P4=0,r.status=69):(oM(r,0),oM(r,0),oM(r,0),oM(r,0),oM(r,0),oM(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),oM(r,3),r.status=113);else{var B=8+(r.MW-8<<4)<<8;B|=(r.strategy>=2||r.level<2?0:r.level<6?1:r.level===6?2:3)<<6;r.aD!==0&&(B|=32);r.status=113;nG(r,B+(31-B%31));r.aD!==0&&(nG(r,e.ZX>>>16),nG(r,e.ZX&65535));e.ZX=1}if(r.status===69)if(r.KB.extra){for(B= r.pending;r.P4<(r.KB.extra.length&65535)&&(r.pending!==r.AB||(r.KB.dC&&r.pending>B&&(e.ZX=Tt(e.ZX,r.DZ,r.pending-B,B)),PV(e),B=r.pending,r.pending!==r.AB));)oM(r,r.KB.extra[r.P4]&255),r.P4++;r.KB.dC&&r.pending>B&&(e.ZX=Tt(e.ZX,r.DZ,r.pending-B,B));r.P4===r.KB.extra.length&&(r.P4=0,r.status=73)}else r.status=73;if(r.status===73)if(r.KB.name){B=r.pending;do{if(r.pending===r.AB&&(r.KB.dC&&r.pending>B&&(e.ZX=Tt(e.ZX,r.DZ,r.pending-B,B)),PV(e),B=r.pending,r.pending===r.AB)){var h=1;break}h=r.P4B&&(e.ZX=Tt(e.ZX,r.DZ,r.pending-B,B));h===0&&(r.P4=0,r.status=91)}else r.status=91;if(r.status===91)if(r.KB.comment){B=r.pending;do{if(r.pending===r.AB&&(r.KB.dC&&r.pending>B&&(e.ZX=Tt(e.ZX,r.DZ,r.pending-B,B)),PV(e),B=r.pending,r.pending===r.AB)){h=1;break}h=r.P4B&&(e.ZX=Tt(e.ZX,r.DZ,r.pending-B,B));h===0&&(r.status=103)}else r.status= 103;r.status===103&&(r.KB.dC?(r.pending+2>r.AB&&PV(e),r.pending+2<=r.AB&&(oM(r,e.ZX&255),oM(r,e.ZX>>8&255),e.ZX=0,r.status=113)):r.status=113);if(r.pending!==0){if(PV(e),e.iB===0)return r.Zi=-1,0}else if(e.a$===0&&(a<<1)-(a>4?9:0)<=(P<<1)-(P>4?9:0)&&a!==4)return aM(e,-5);if(r.status===666&&e.a$!==0)return aM(e,-5);if(e.a$!==0||r.qr!==0||a!==0&&r.status!==666){P=r.strategy===2?XyL(r,a):r.strategy===3?TWN(r,a):CG[r.level].func(r,a);if(P===3||P===4)r.status=666;if(P===1||P===3)return e.iB===0&&(r.Zi= -1),0;if(P===2&&(a===1?(qo(r,2,3),vD(r,256,BV),r.Dn===16?(HD(r,r.Wo),r.Wo=0,r.Dn=0):r.Dn>=8&&(r.DZ[r.pending++]=r.Wo&255,r.Wo>>=8,r.Dn-=8)):a!==5&&(qo(r,0,3),rP4(r,0,0),a===3&&(rM(r.head),r.qr===0&&(r.aD=0,r.Zm=0,r.dE=0))),PV(e),e.iB===0))return r.Zi=-1,0}if(a!==4)return 0;if(r.wrap<=0)return 1;r.wrap===2?(oM(r,e.ZX&255),oM(r,e.ZX>>8&255),oM(r,e.ZX>>16&255),oM(r,e.ZX>>24&255),oM(r,e.ag&255),oM(r,e.ag>>8&255),oM(r,e.ag>>16&255),oM(r,e.ag>>24&255)):(nG(r,e.ZX>>>16),nG(r,e.ZX&65535));PV(e);r.wrap>0&& (r.wrap=-r.wrap);return r.pending!==0?0:1}; Gt=function(e){if(!(this instanceof Gt))return new Gt(e);e=this.options=z$.assign({level:-1,method:8,chunkSize:16384,pg:15,bfW:8,strategy:0,to:""},e||{});e.raw&&e.pg>0?e.pg=-e.pg:e.UP&&e.pg>0&&e.pg<16&&(e.pg+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.PZ=new U_q;this.PZ.iB=0;var a=this.PZ;var r=e.level,P=e.method,B=e.pg,h=e.bfW,c=e.strategy;if(a){var y=1;r===-1&&(r=6);B<0?(y=0,B=-B):B>15&&(y=2,B-=16);if(h<1||h>9||P!==8||B<8||B>15||r<0||r>9||c<0||c>4)a=aM(a,-2);else{B===8&&(B=9); var T=new fNN;a.state=T;T.PZ=a;T.wrap=y;T.KB=null;T.MW=B;T.L8=1<>=7;h<30;h++)for(jG[h]=c<<7,B=0;B<1<=X.L8&&(a===0&&(rM(X.head),X.aD=0,X.Zm=0,X.dE=0),r=new z$.z3(X.L8),z$.vx(r,h,c-X.L8,X.L8,0),h=r,c=X.L8);r=e.a$;P=e.KU;B=e.input;e.a$=c;e.KU=0;e.input=h;for(Xv(X);X.qr>=3;){h=X.aD;c=X.qr-2;do X.qd=(X.qd<=new Date(n[68])/1E3?((0,r[52])(r[36],r[38]),r[52])(r[18],r[48]):(0,r[39])((0,r[12])(r[33]),r[52],r[42],r[37])), r[63]<2&&((((0,r[30])(r[18],r[56]),r[1])(r[18]),r[12])(r[6]),r[49])(r[28],r[33])|((0,r[40])(r[19]),r[0])(r[16],r[56]),r[26]!=-5&&((((((0,r[37])(r[34],r[47]),(0,r[0])(r[19]),r[512-299%(new Date(n[74])/1E3)+-481])(r[46],r[30]),r[23])((0,r[22])(r[16],r[54]),(0,r[51])(r[34],r[36]),r[13],(0,r[22])(r[19],r[6]),r[50],r[5]),((0,r[14])(r[59]),r[13])((0,r[51])(r[10],r[41]),r[51],r[16],r[18]),(0,r[51])(r[5],r[22]),r[37])(r[5],r[20]),r[63])(r[42],r[64]),r[32])(r[1]),r[62]!==-2&&(r[46]!==6&&((0,r[60])((0,r[19])(r[1], r[30]),r[33],r[52],r[6]),n[11])||(0,r[41])(r[28],r[45])^(0,r[41])(r[57],r[27])),r[45]===4?(0,r[56])(r[57],(0,r[25])(),r[42]):(0,r[32])(r[16]),r[new Date(n[39])/1E3]!=6&&((((0,r[60])((0,r[41])(r[1],r[55]),r[40],r[52],r[10]),((0,r[60])((0,r[33])(r[1],r[59]),r[22],r[57]),r[new Date(n[71])/1E3])(r[16],r[9]),r[19])(r[52],r[49+new Date(n[85])/1E3*184+-14367]),((0,r[26])(r[57],r[12]),r[46])(r[6],r[13]),r[54])(r[21],(0,r[53])(),r[47]),r[24])(r[33],r[63]),r[18]!==10&&(r[22]<-1&&((0,r[15])(r[41],(0,r[50])(), r[1]),n[17])||(0,r[new Date(n[67])/1E3])(r[23],r[36]))}catch(P){(0,r[47])(((0,r[26])(r[53],r[25]),r[8])(r[38]),r[26],r[2],r[36]),(0,r[42])(r[2],(0,r[11])(),r[28]),(((0,r[40])((0,r[42])(r[2],(0,r[34])(),r[28]),r[35],(0,r[35])(r[43],(0,r[11])(),r[28]),r[43],(0,r[11])(),r[28]),r[27])(r[14],r[30]),r[18])(r[2])}}catch(P){return n[72]+e}return a[n[64]](n[26])}; g.Zj=function(e){this.name=e}; wy4=function(e){this.uv=RU(e)}; O7=function(e){this.uv=RU(e)}; km=function(e){this.uv=RU(e)}; pyL=function(e){this.uv=RU(e)}; dM=function(e){this.uv=RU(e)}; Ja=function(e){this.uv=RU(e)}; Dj=function(e){this.uv=RU(e)}; Ve=function(e){this.uv=RU(e)}; $m=function(e){this.uv=RU(e)}; Qe=function(e){this.uv=RU(e)}; WV=function(e){this.uv=RU(e)}; lx=function(e){this.uv=RU(e)}; LG=function(e){this.uv=RU(e)}; Ym=function(e){this.uv=RU(e)}; wM=function(e){this.uv=RU(e)}; pG=function(e){this.uv=RU(e,500)}; ix=function(e){this.uv=RU(e)}; zt=function(e){this.uv=RU(e)}; iNq=function(e){this.uv=RU(e)}; zwy=function(){return g.aZ("yt.ads.biscotti.lastId_")||""}; NW4=function(e){g.KL("yt.ads.biscotti.lastId_",e)}; xm=function(){var e=arguments,a=NA;e.length>1?a[e[0]]=e[1]:e.length===1&&Object.assign(a,e[0])}; g.IM=function(e,a){return e in NA?NA[e]:a}; HV=function(e){var a=NA.EXPERIMENT_FLAGS;return a?a[e]:void 0}; x_T=function(e){RM.forEach(function(a){return a(e)})}; g.s7=function(e){return e&&window.yterr?function(){try{return e.apply(this,arguments)}catch(a){g.SX(a)}}:e}; g.SX=function(e){var a=g.aZ("yt.logging.errors.log");a?a(e,"ERROR",void 0,void 0,void 0,void 0,void 0):(a=g.IM("ERRORS",[]),a.push([e,"ERROR",void 0,void 0,void 0,void 0,void 0]),xm("ERRORS",a));x_T(e)}; mV=function(e,a,r,P,B){var h=g.aZ("yt.logging.errors.log");h?h(e,"WARNING",a,r,P,void 0,B):(h=g.IM("ERRORS",[]),h.push([e,"WARNING",a,r,P,void 0,B]),xm("ERRORS",h))}; Fv=function(e,a){a=e.split(a);for(var r={},P=0,B=a.length;P1?e[1]:e[0])):{}}; ew=function(e,a){return vP3(e,a||{},!0)}; af=function(e,a){return vP3(e,a||{},!1)}; vP3=function(e,a,r){var P=e.split("#",2);e=P[0];P=P.length>1?"#"+P[1]:"";var B=e.split("?",2);e=B[0];B=jX(B[1]||"");for(var h in a)if(r||!g.TX(B,h))B[h]=a[h];return g.EW(e,B)+P}; re=function(e){if(!a)var a=window.location.href;var r=g.yp(e)[1]||null,P=g.TS(e);r&&P?(e=g.yp(e),a=g.yp(a),e=e[3]==a[3]&&e[1]==a[1]&&e[4]==a[4]):e=P?g.TS(a)===P&&(Number(g.yp(a)[4]||null)||null)===(Number(g.yp(e)[4]||null)||null):!0;return e}; Pf=function(e){e||(e=document.location.href);e=g.yp(e)[1]||null;return e!==null&&e==="https"}; Bf=function(e){e=Rwj(e);return e===null?!1:e[0]==="com"&&e[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Soj=function(e){e=Rwj(e);return e===null?!1:e[1]==="google"?!0:e[2]==="google"?e[0]==="au"&&e[1]==="com"?!0:e[0]==="uk"&&e[1]==="co"?!0:!1:!1}; Rwj=function(e){e=g.TS(e);return e!==null?e.split(".").reverse():null}; INj=function(e){return e&&e.match(stq)?e:QC(e)}; of=function(e){var a=hl;e=e===void 0?zwy():e;var r=Object,P=r.assign,B=cf(a);var h=a.S;try{var c=h.screenX;var y=h.screenY}catch(W){}try{var T=h.outerWidth;var X=h.outerHeight}catch(W){}try{var f=h.innerWidth;var A=h.innerHeight}catch(W){}try{var U=h.screenLeft;var C=h.screenTop}catch(W){}try{f=h.innerWidth,A=h.innerHeight}catch(W){}try{var G=h.screen.availWidth;var O=h.screen.availTop}catch(W){}h=[U,C,c,y,G,O,T,X,f,A];c=rK4(!1,a.S.top);y={};var d=d===void 0?g.uq:d;T=new zk;"SVGElement"in d&&"createElementNS"in d.document&&T.set(0);X=POL();X["allow-top-navigation-by-user-activation"]&&T.set(1);X["allow-popups-to-escape-sandbox"]&&T.set(2);d.crypto&&d.crypto.subtle&&T.set(3);"TextDecoder"in d&&"TextEncoder"in d&&T.set(4);d=gqI(T);a=(y.bc=d,y.bih=c.height,y.biw=c.width,y.brdim=h.join(),y.vis=cQ(a.T),y.wgl=!!Wo.WebGLRenderingContext,y);r=P.call(r,B,a);r.ca_type="image";e&&(r.bid=e);return r}; cf=function(e){var a={};a.dt=m_z;a.flash="0";a:{try{var r=e.S.top.location.href}catch(X){e=2;break a}e=r?r===e.T.location.href?0:1:2}a=(a.frm=e,a);try{a.u_tz=-(new Date).getTimezoneOffset();try{var P=Wo.history.length}catch(X){P=0}a.u_his=P;var B;a.u_h=(B=Wo.screen)==null?void 0:B.height;var h;a.u_w=(h=Wo.screen)==null?void 0:h.width;var c;a.u_ah=(c=Wo.screen)==null?void 0:c.availHeight;var y;a.u_aw=(y=Wo.screen)==null?void 0:y.availWidth;var T;a.u_cd=(T=Wo.screen)==null?void 0:T.colorDepth}catch(X){}return a}; MCJ=function(){if(!FKT)return null;var e=FKT();return"open"in e?e:null}; g.yU=function(e){switch(nK(e)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; nK=function(e){return e&&"status"in e?e.status:-1}; g.Tu=function(e,a){typeof e==="function"&&(e=g.s7(e));return window.setTimeout(e,a)}; g.Xw=function(e,a){typeof e==="function"&&(e=g.s7(e));return window.setInterval(e,a)}; g.fK=function(e){window.clearTimeout(e)}; g.Al=function(e){window.clearInterval(e)}; g.CK=function(e){e=UP(e);return typeof e==="string"&&e==="false"?!1:!!e}; g.Gu=function(e,a){e=UP(e);return e===void 0&&a!==void 0?a:Number(e||0)}; EP=function(){return g.IM("EXPERIMENTS_TOKEN","")}; UP=function(e){return g.IM("EXPERIMENT_FLAGS",{})[e]}; be=function(){for(var e=[],a=g.IM("EXPERIMENTS_FORCED_FLAGS",{}),r=g.Z(Object.keys(a)),P=r.next();!P.done;P=r.next())P=P.value,e.push({key:P,value:String(a[P])});r=g.IM("EXPERIMENT_FLAGS",{});P=g.Z(Object.keys(r));for(var B=P.next();!B.done;B=P.next())B=B.value,B.startsWith("force_")&&a[B]===void 0&&e.push({key:B,value:String(r[B])});return e}; tl=function(e,a,r,P,B,h,c,y,T){function X(){(f&&"readyState"in f?f.readyState:0)===4&&a&&g.s7(a)(f)} r=r===void 0?"GET":r;P=P===void 0?"":P;y=y===void 0?!1:y;var f=MCJ();if(!f)return null;"onloadend"in f?f.addEventListener("loadend",X,!1):f.onreadystatechange=X;g.CK("debug_forward_web_query_parameters")&&(e=jtj(e));f.open(r,e,!0);h&&(f.responseType=h);c&&(f.withCredentials=!0);r=r==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(B=uP4(e,B))for(var A in B)f.setRequestHeader(A,B[A]),"content-type"===A.toLowerCase()&&(r=!1);r&&f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); T&&"onprogress"in f&&(f.onprogress=function(){T(f.responseText)}); if(y&&"setAttributionReporting"in XMLHttpRequest.prototype){e={eventSourceEligible:!0,triggerEligible:!1};try{f.setAttributionReporting(e)}catch(U){mV(U)}}f.send(P);return f}; uP4=function(e,a){a=a===void 0?{}:a;var r=re(e),P=g.IM("INNERTUBE_CLIENT_NAME"),B=g.CK("web_ajax_ignore_global_headers_if_set"),h;for(h in KKL){var c=g.IM(KKL[h]),y=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||c||(c=g.IM("VISITOR_DATA"));var T;if(!(T=!c)){if(!(T=r||(g.TS(e)?!1:!0))){T=e;var X;if(X=g.CK("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY")&&Soj(T))T=Xd(T)||"",T=T.split("/"), T="/"+(T.length>1?T[1]:""),X=T==="/pagead";T=X?!0:!1}T=!T}T||B&&a[h]!==void 0||P==="TVHTML5_UNPLUGGED"&&y||(a[h]=c)}"X-Goog-EOM-Visitor-Id"in a&&"X-Goog-Visitor-Id"in a&&delete a["X-Goog-Visitor-Id"];if(r||!g.TS(e))a["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(r||!g.TS(e)){try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}f&&(a["X-YouTube-Time-Zone"]=f)}document.location.hostname.endsWith("youtubeeducation.com")||!r&&g.TS(e)||(a["X-YouTube-Ad-Signals"]= MA(of()));return a}; Z7=function(e,a){a.method="POST";a.postParams||(a.postParams={});return g.ge(e,a)}; r4N=function(e,a){if(window.fetch&&a.format!=="XML"){var r={method:a.method||"GET",credentials:"same-origin"};a.headers&&(r.headers=a.headers);a.priority&&(r.priority=a.priority);e=e34(e,a);var P=a_3(e,a);P&&(r.body=P);a.withCredentials&&(r.credentials="include");var B=a.context||g.uq,h=!1,c;fetch(e,r).then(function(y){if(!h){h=!0;c&&g.fK(c);var T=y.ok,X=function(f){f=f||{};T?a.onSuccess&&a.onSuccess.call(B,f,y):a.onError&&a.onError.call(B,f,y);a.onFinish&&a.onFinish.call(B,f,y)}; (a.format||"JSON")==="JSON"&&(T||y.status>=400&&y.status<500)?y.json().then(X,function(){X(null)}):X(null)}}).catch(function(){a.onError&&a.onError.call(B,{},{})}); e=a.timeout||0;a.onFetchTimeout&&e>0&&(c=g.Tu(function(){h||(h=!0,g.fK(c),a.onFetchTimeout.call(a.context||g.uq))},e))}else g.ge(e,a)}; g.ge=function(e,a){var r=a.format||"JSON";e=e34(e,a);var P=a_3(e,a),B=!1,h=PTq(e,function(T){if(!B){B=!0;y&&g.fK(y);var X=g.yU(T),f=null,A=400<=T.status&&T.status<500,U=500<=T.status&&T.status<600;if(X||A||U)f=BkO(e,r,T,a.convertToSafeHtml);X&&(X=h33(r,T,f));f=f||{};A=a.context||g.uq;X?a.onSuccess&&a.onSuccess.call(A,T,f):a.onError&&a.onError.call(A,T,f);a.onFinish&&a.onFinish.call(A,T,f)}},a.method,P,a.headers,a.responseType,a.withCredentials,!1,a.onProgress); P=a.timeout||0;if(a.onTimeout&&P>0){var c=a.onTimeout;var y=g.Tu(function(){B||(B=!0,h.abort(),g.fK(y),c.call(a.context||g.uq,h))},P)}return h}; e34=function(e,a){a.includeDomain&&(e=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+e);var r=g.IM("XSRF_FIELD_NAME");if(a=a.urlParams)a[r]&&delete a[r],e=ew(e,a);return e}; a_3=function(e,a){var r=g.IM("XSRF_FIELD_NAME"),P=g.IM("XSRF_TOKEN"),B=a.postBody||"",h=a.postParams,c=g.IM("XSRF_FIELD_NAME"),y;a.headers&&(y=a.headers["Content-Type"]);a.excludeXsrf||g.TS(e)&&!a.withCredentials&&g.TS(e)!==document.location.hostname||a.method!=="POST"||y&&y!=="application/x-www-form-urlencoded"||a.postParams&&a.postParams[c]||(h||(h={}),h[r]=P);(g.CK("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof B==="string"&&(B=jX(B),g.bO(B,h),B=a.postBodyFormat&& a.postBodyFormat==="JSON"?JSON.stringify(B):g.GS(B));h=B||h&&!g.Ak(h);!c4L&&h&&a.method!=="POST"&&(c4L=!0,g.SX(Error("AJAX request with postData should use POST")));return B}; BkO=function(e,a,r,P){var B=null;switch(a){case "JSON":try{var h=r.responseText}catch(c){throw P=Error("Error reading responseText"),P.params=e,mV(P),c;}e=r.getResponseHeader("Content-Type")||"";h&&e.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),B=JSON.parse(h));break;case "XML":if(e=(e=r.responseXML)?oOq(e):null)B={},g.FN(e.getElementsByTagName("*"),function(c){B[c.tagName]=nOy(c)})}P&&y4N(B); return B}; y4N=function(e){if(g.hw(e))for(var a in e)a==="html_content"||HLO(a,"_html")?e[a]=AU(e[a]):y4N(e[a])}; h33=function(e,a,r){if(a&&a.status===204)return!0;switch(e){case "JSON":return!!r;case "XML":return Number(r&&r.return_code)===0;case "RAW":return!0;default:return!!r}}; oOq=function(e){return e?(e=("responseXML"in e?e.responseXML:e).getElementsByTagName("root"))&&e.length>0?e[0]:null:null}; nOy=function(e){var a="";g.FN(e.childNodes,function(r){a+=r.nodeValue}); return a}; jtj=function(e){var a=window.location.search,r=g.TS(e);g.CK("debug_handle_relative_url_for_query_forward_killswitch")||!r&&re(e)&&(r=document.location.hostname);var P=Xd(e);P=(r=r&&(r.endsWith("youtube.com")||r.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!r||P)return e;var B=jX(a),h={};g.FN(TkO,function(c){B[c]&&(h[c]=B[c])}); return af(e,h)}; k2=function(e,a){var r=g.GX(a),P;return(new g.QM(function(B,h){r.onSuccess=function(c){g.yU(c)?B(new XnT(c)):h(new OP("Request failed, status="+nK(c),"net.badstatus",c))}; r.onError=function(c){h(new OP("Unknown request error","net.unknown",c))}; r.onTimeout=function(c){h(new OP("Request timed out","net.timeout",c))}; P=g.ge(e,r)})).Vl(function(B){if(B instanceof pN){var h; (h=P)==null||h.abort()}return LN(B)})}; g.de=function(e,a,r,P,B,h){function c(T,X,f){return T.Vl(function(A){if(X<=0||nK(A.xhr)===403)return LN(new OP("Request retried too many times","net.retryexhausted",A.xhr,A));var U=Math.pow(2,r-X+1)*f,C=B>0?Math.min(B,U):U;return y(f).then(function(){h&&h(A,X-1);return c(k2(e,a),X-1,C)})})} function y(T){return new g.QM(function(X){setTimeout(X,T)})} B=B===void 0?-1:B;return c(k2(e,a),r-1,P)}; OP=function(e,a,r){C5.call(this,e+", errorCode="+a);this.errorCode=a;this.xhr=r;this.name="PromiseAjaxError"}; XnT=function(e){this.xhr=e}; Jl=function(e){this.S=e===void 0?null:e;this.B=0;this.T=null}; D7=function(e){var a=new Jl;e=e===void 0?null:e;a.B=2;a.T=e===void 0?null:e;return a}; VU=function(e){var a=new Jl;e=e===void 0?null:e;a.B=1;a.T=e===void 0?null:e;return a}; g.Wf=function(e,a,r,P,B){$2||QU.set(""+e,a,{wV:r,path:"/",domain:P===void 0?"youtube.com":P,secure:B===void 0?!1:B})}; g.le=function(e,a){if(!$2)return QU.get(""+e,a)}; g.LK=function(e,a,r){$2||QU.remove(""+e,a===void 0?"/":a,r===void 0?"youtube.com":r)}; f_q=function(){if(g.CK("embeds_web_enable_cookie_detection_fix")){if(!g.uq.navigator.cookieEnabled)return!1}else if(!QU.isEnabled())return!1;if(!QU.isEmpty())return!0;g.CK("embeds_web_enable_cookie_detection_fix")?QU.set("TESTCOOKIESENABLED","1",{wV:60,zo1:"none",secure:!0}):QU.set("TESTCOOKIESENABLED","1",{wV:60});if(QU.get("TESTCOOKIESENABLED")!=="1")return!1;QU.remove("TESTCOOKIESENABLED");return!0}; g.H=function(e,a){if(e)return e[a.name]}; Y2=function(e){var a=g.IM("INNERTUBE_HOST_OVERRIDE");a&&(e=String(a)+String(fa(e)));return e}; A4q=function(e){var a={};g.CK("json_condensed_response")&&(a.prettyPrint="false");return e=af(e,a)}; we=function(e,a){var r=r===void 0?{}:r;e={method:a===void 0?"POST":a,mode:re(e)?"same-origin":"cors",credentials:re(e)?"same-origin":"include"};a={};for(var P=g.Z(Object.keys(r)),B=P.next();!B.done;B=P.next())B=B.value,r[B]&&(a[B]=r[B]);Object.keys(a).length>0&&(e.headers=a);return e}; pK=function(){var e=/Chrome\/(\d+)/.exec(g.zX());return e?parseFloat(e[1]):NaN}; ie=function(){var e=/\sCobalt\/(\S+)\s/.exec(g.zX());if(!e)return NaN;var a=[];e=g.Z(e[1].split("."));for(var r=e.next();!r.done;r=e.next())r=parseInt(r.value,10),r>=0&&a.push(r);return parseFloat(a.join("."))}; Nr=function(){return g.zu("android")&&g.zu("chrome")&&!(g.zu("trident/")||g.zu("edge/"))&&!g.zu("cobalt")}; UiO=function(){return g.zu("armv7")||g.zu("aarch64")||g.zu("android")}; g.x2=function(){return g.zu("cobalt")}; If=function(){return g.zu("cobalt")&&g.zu("appletv")}; Hf=function(){return g.zu("(ps3; leanback shell)")||g.zu("ps3")&&g.x2()}; CTO=function(){return g.zu("(ps4; leanback shell)")||g.zu("ps4")&&g.x2()}; g.GYl=function(){return g.x2()&&(g.zu("ps4 vr")||g.zu("ps4 pro vr"))}; qr=function(){var e=/WebKit\/([0-9]+)/.exec(g.zX());return!!(e&&parseInt(e[1],10)>=600)}; vf=function(){var e=/WebKit\/([0-9]+)/.exec(g.zX());return!!(e&&parseInt(e[1],10)>=602)}; EO4=function(){return g.zu("iemobile")||g.zu("windows phone")&&g.zu("edge")}; sP=function(){return(Rf||Sw)&&g.zu("applewebkit")&&!g.zu("version")&&(!g.zu("safari")||g.zu("gsa/"))}; Fw=function(){return g.mp&&g.zu("version/")}; Mr=function(){return g.zu("smart-tv")&&g.zu("samsung")}; g.zu=function(e){var a=g.zX();return a?a.toLowerCase().indexOf(e)>=0:!1}; jw=function(){return rsO()||sP()||Fw()?!0:g.IM("EOM_VISITOR_DATA")?!1:!0}; ue=function(e,a){return a===void 0||a===null?e:a==="1"||a===!0||a===1||a==="True"?!0:!1}; KK=function(e,a,r){for(var P in r)if(r[P]==a)return r[P];return e}; e$=function(e,a){return a===void 0||a===null?e:Number(a)}; a6=function(e,a){return a===void 0||a===null?e:a.toString()}; ru=function(e,a){if(a){if(e==="fullwidth")return Infinity;if(e==="fullheight")return 0}return e&&(a=e.match(bpy))&&(e=Number(a[2]),a=Number(a[1]),!isNaN(e)&&!isNaN(a)&&e>0)?a/e:NaN}; Ph=function(e){var a=e.docid||e.video_id||e.videoId||e.id;if(a)return a;a=e.raw_player_response;a||(e=e.player_response)&&(a=JSON.parse(e));return a&&a.videoDetails&&a.videoDetails.videoId||null}; tU4=function(e){return Bh(e,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.hJ=function(e){return e==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||e==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Bh=function(e,a){a=(a===void 0?0:a)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(a="EMBEDDED_PLAYER_MODE_PFL");var r=e.raw_embedded_player_response;if(!r&&(e=e.embedded_player_response))try{r=JSON.parse(e)}catch(P){return a}return r?KK(a,r.embeddedPlayerMode,gOT):a}; o6=function(e){C5.call(this,e.message||e.description||e.name);this.isMissing=e instanceof ch;this.isTimeout=e instanceof OP&&e.errorCode=="net.timeout";this.isCanceled=e instanceof pN}; ch=function(){C5.call(this,"Biscotti ID is missing from server")}; ZpL=function(){if(g.CK("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!jw())return Error("User has not consented - not fetching biscotti id.");var e=g.IM("PLAYER_VARS",{});if(g.UH(e,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(tU4(e))return Error("Biscotti id fetching has been disabled for pfl.")}; J44=function(){var e=ZpL();if(e!==void 0)return LN(e);nE||(nE=k2("//googleads.g.doubleclick.net/pagead/id",Opj).then(kY3).Vl(function(a){return diL(2,a)})); return nE}; kY3=function(e){e=e.xhr.responseText;if(!QI(e,")]}'"))throw new ch;e=JSON.parse(e.substr(4));if((e.type||1)>1)throw new ch;e=e.id;NW4(e);nE=VU(e);Diq(18E5,2);return e}; diL=function(e,a){a=new o6(a);NW4("");nE=D7(a);e>0&&Diq(12E4,e-1);throw a;}; Diq=function(e,a){g.Tu(function(){k2("//googleads.g.doubleclick.net/pagead/id",Opj).then(kY3,function(r){return diL(a,r)}).Vl(g.LO)},e)}; VUj=function(){try{var e=g.aZ("yt.ads.biscotti.getId_");return e?e():J44()}catch(a){return LN(a)}}; Qzl=function(e){e&&(e.dataset?e.dataset[$iq()]="true":PNL(e))}; W0l=function(e){return e?e.dataset?e.dataset[$iq()]:e.getAttribute("data-loaded"):null}; $iq=function(){return l_I.loaded||(l_I.loaded="loaded".replace(/\-([a-z])/g,function(e,a){return a.toUpperCase()}))}; L0z=function(){var e=document;if("visibilityState"in e)return e.visibilityState;var a=yy+"VisibilityState";if(a in e)return e[a]}; Tn=function(e,a){var r;va(e,function(P){r=a[P];return!!r}); return r}; Xn=function(e){if(e.requestFullscreen)e=e.requestFullscreen(void 0);else if(e.webkitRequestFullscreen)e=e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e=e.mozRequestFullScreen();else if(e.msRequestFullscreen)e=e.msRequestFullscreen();else if(e.webkitEnterFullscreen)e=e.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return e instanceof Promise?e:Promise.resolve()}; Uu=function(e){var a;g.fE()?AJ()==e&&(a=document):a=e;return a&&(e=Tn(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],a))?(a=e.call(a),a instanceof Promise?a:Promise.resolve()):Promise.resolve()}; YmT=function(e){return g.tw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(a){return"on"+a.toLowerCase()in e})}; wnN=function(){var e=document;return g.tw(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(a){return"on"+a.toLowerCase()in e})}; g.fE=function(){return!!Tn(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; AJ=function(e){e=e===void 0?!1:e;var a=Tn(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(e)for(;a&&a.shadowRoot;)a=a.shadowRoot.fullscreenElement;return a?a:null}; CE=function(e){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(e=e||window.event){this.event=e;for(var a in e)a in pnq||(this[a]=e[a]);this.scale=e.scale;this.rotation=e.rotation;var r=e.target||e.srcElement;r&&r.nodeType==3&&(r=r.parentNode);this.target=r;var P=e.relatedTarget; if(P)try{P=P.nodeName?P:null}catch(B){P=null}else this.type=="mouseover"?P=e.fromElement:this.type=="mouseout"&&(P=e.toElement);this.relatedTarget=P;this.clientX=e.clientX!=void 0?e.clientX:e.pageX;this.clientY=e.clientY!=void 0?e.clientY:e.pageY;this.keyCode=e.keyCode?e.keyCode:e.which;this.charCode=e.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=e.altKey;this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.S=e.pageX;this.T=e.pageY}}catch(B){}}; ip4=function(e){if(document.body&&document.documentElement){var a=document.body.scrollTop+document.documentElement.scrollTop;e.S=e.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);e.T=e.clientY+a}}; z3L=function(e,a,r,P){P=P===void 0?{}:P;e.addEventListener&&(a!="mouseenter"||"onmouseenter"in document?a!="mouseleave"||"onmouseenter"in document?a=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(a="MozMousePixelScroll"):a="mouseout":a="mouseover");return ff(Gn,function(B){var h=typeof B[4]==="boolean"&&B[4]==!!P,c=g.hw(B[4])&&g.hw(P)&&g.Cf(B[4],P);return!!B.length&&B[0]==e&&B[1]==a&&B[2]==r&&(h||c)})}; g.Eu=function(e,a,r,P){P=P===void 0?{}:P;if(!e||!e.addEventListener&&!e.attachEvent)return"";var B=z3L(e,a,r,P);if(B)return B;B=++Nkj.count+"";var h=!(a!="mouseenter"&&a!="mouseleave"||!e.addEventListener||"onmouseenter"in document);var c=h?function(y){y=new CE(y);if(!O9(y.relatedTarget,function(T){return T==e},!0))return y.currentTarget=e,y.type=a,r.call(e,y)}:function(y){y=new CE(y); y.currentTarget=e;return r.call(e,y)}; c=g.s7(c);e.addEventListener?(a=="mouseenter"&&h?a="mouseover":a=="mouseleave"&&h?a="mouseout":a=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(a="MozMousePixelScroll"),xiy()||typeof P==="boolean"?e.addEventListener(a,c,P):e.addEventListener(a,c,!!P.capture)):e.attachEvent("on"+a,c);Gn[B]=[e,a,r,c,P];return B}; Hpz=function(e){return I_O(e,function(a){return g.ac(a,"ytp-ad-has-logging-urls")})}; I_O=function(e,a){var r=document.body||document;return g.Eu(r,"click",function(P){var B=O9(P.target,function(h){return h===r||a(h)},!0); B&&B!==r&&!B.disabled&&(P.currentTarget=B,e.call(B,P))})}; g.bQ=function(e){e&&(typeof e=="string"&&(e=[e]),g.FN(e,function(a){if(a in Gn){var r=Gn[a],P=r[0],B=r[1],h=r[3];r=r[4];P.removeEventListener?xiy()||typeof r==="boolean"?P.removeEventListener(B,h,r):P.removeEventListener(B,h,!!r.capture):P.detachEvent&&P.detachEvent("on"+B,h);delete Gn[a]}}))}; tJ=function(e){for(var a in Gn)Gn[a][0]==e&&g.bQ(a)}; gu=function(e){e=e||window.event;var a;e.composedPath&&typeof e.composedPath==="function"?a=e.composedPath():a=e.path;a&&a.length?e=a[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e}; Z1=function(e){this.D=e;this.S=null;this.L=0;this.Z=null;this.C=0;this.T=[];for(e=0;e<4;e++)this.T.push(0);this.B=0;this.oH=g.Eu(window,"mousemove",(0,g.yG)(this.N,this));this.Y=g.Xw((0,g.yG)(this.HW,this),25)}; Ou=function(e){g.N.call(this);this.D=[];this.ID=e||this}; kf=function(e,a,r,P){for(var B=0;B0?r:0;r=P?Date.now()+P*1E3:0;if((P=P?(0,g.JJ)():D1())&&window.JSON){typeof a!=="string"&&(a=JSON.stringify(a,void 0));try{P.set(e,a,r)}catch(B){P.remove(e)}}}; g.$f=function(e){var a=D1(),r=(0,g.JJ)();if(!a&&!r||!window.JSON)return null;try{var P=a.get(e)}catch(B){}if(typeof P!=="string")try{P=r.get(e)}catch(B){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(B){}return P}; vON=function(){var e=(0,g.JJ)();if(e&&(e=e.T("yt-player-quality")))return e.creation}; g.Qy=function(e){try{var a=D1(),r=(0,g.JJ)();a&&a.remove(e);r&&r.remove(e)}catch(P){}}; g.Wh=function(){return g.$f("yt-remote-session-screen-id")}; R3J=function(e){var a=this;this.T=void 0;this.S=!1;e.addEventListener("beforeinstallprompt",function(r){r.preventDefault();a.T=r}); e.addEventListener("appinstalled",function(){a.S=!0},{once:!0})}; lQ=function(){if(!g.uq.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.uq.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.uq.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.uq.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.uq.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(e){return"WEB_DISPLAY_MODE_UNKNOWN"}}; LE=function(){this.Eu=!0}; Smy=function(){LE.instance||(LE.instance=new LE);return LE.instance}; szj=function(e){switch(e){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}}; mil=function(){this.S=g.IM("ALT_PREF_COOKIE_NAME","PREF");this.T=g.IM("ALT_PREF_COOKIE_DOMAIN","youtube.com");var e=g.le(this.S);e&&this.parse(e)}; g.wu=function(){Yf||(Yf=new mil);return Yf}; g.pE=function(e,a){return!!((F0y("f"+(Math.floor(a/31)+1))||0)&1<0;)switch(e=h7.shift(),e.type){case "ERROR":aq.cI(e.payload);break;case "EVENT":aq.logEvent(e.eventType,e.payload)}}; oq=function(e){cU||(aq?aq.cI(e):(h7.push({type:"ERROR",payload:e}),h7.length>10&&h7.shift()))}; nl=function(e,a){cU||(aq?aq.logEvent(e,a):(h7.push({type:"EVENT",eventType:e,payload:a}),h7.length>10&&h7.shift()))}; yB=function(e){if(e.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; TE=function(e){return e.substr(0,e.indexOf(":"))||e}; g.XX=function(e,a,r,P,B){a=a===void 0?{}:a;r=r===void 0?P9L[e]:r;P=P===void 0?Bi4[e]:P;B=B===void 0?htz[e]:B;g.I6.call(this,r,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:e},a));this.type=e;this.message=r;this.level=P;this.S=B;Object.setPrototypeOf(this,g.XX.prototype)}; fl=function(e,a){g.XX.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:a,foundObjectStores:e},P9L.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,fl.prototype)}; A7=function(e,a){var r=Error.call(this);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.index=e;this.objectStore=a;Object.setPrototypeOf(this,A7.prototype)}; Cl=function(e,a,r,P){a=TE(a);var B=e instanceof Error?e:Error("Unexpected error: "+e);if(B instanceof g.XX)return B;e={objectStoreNames:r,dbName:a,dbVersion:P};if(B.name==="QuotaExceededError")return new g.XX("QUOTA_EXCEEDED",e);if(g.Uv&&B.name==="UnknownError")return new g.XX("QUOTA_MAYBE_EXCEEDED",e);if(B instanceof A7)return new g.XX("MISSING_INDEX",Object.assign({},e,{objectStore:B.objectStore,index:B.index}));if(B.name==="InvalidStateError"&&cnN.some(function(h){return B.message.includes(h)}))return new g.XX("EXECUTE_TRANSACTION_ON_CLOSED_DB", e); if(B.name==="AbortError")return new g.XX("UNKNOWN_ABORT",e,B.message);B.args=[Object.assign({},e,{name:"IdbError",Hb:B.name})];B.level="WARNING";return B}; g.GE=function(e,a,r){var P=eV();return new g.XX("IDB_NOT_SUPPORTED",{context:{caller:e,publicName:a,version:r,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})}; o4j=function(e){if(!e)throw Error();throw e;}; n4L=function(e){return e}; Ev=function(e){this.S=e}; g.bk=function(e){function a(B){if(P.state.status==="PENDING"){P.state={status:"REJECTED",reason:B};B=g.Z(P.T);for(var h=B.next();!h.done;h=B.next())h=h.value,h()}} function r(B){if(P.state.status==="PENDING"){P.state={status:"FULFILLED",value:B};B=g.Z(P.S);for(var h=B.next();!h.done;h=B.next())h=h.value,h()}} var P=this;this.state={status:"PENDING"};this.S=[];this.T=[];e=e.S;try{e(r,a)}catch(B){a(B)}}; yn4=function(e,a,r,P,B){try{if(e.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var h=r(e.state.value);h instanceof g.bk?t7(e,a,h,P,B):P(h)}catch(c){B(c)}}; TiN=function(e,a,r,P,B){try{if(e.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var h=r(e.state.reason);h instanceof g.bk?t7(e,a,h,P,B):P(h)}catch(c){B(c)}}; t7=function(e,a,r,P,B){a===r?B(new TypeError("Circular promise chain detected.")):r.then(function(h){h instanceof g.bk?t7(e,a,h,P,B):P(h)},function(h){B(h)})}; XPz=function(e,a,r){function P(){r(e.error);h()} function B(){a(e.result);h()} function h(){try{e.removeEventListener("success",B),e.removeEventListener("error",P)}catch(c){}} e.addEventListener("success",B);e.addEventListener("error",P)}; fn3=function(e){return new Promise(function(a,r){XPz(e,a,r)})}; g1=function(e){return new g.bk(new Ev(function(a,r){XPz(e,a,r)}))}; ZI=function(e,a){return new g.bk(new Ev(function(r,P){function B(){var h=e?a(e):null;h?h.then(function(c){e=c;B()},P):r()} B()}))}; An3=function(e,a){this.request=e;this.cursor=a}; Ue3=function(e){return g1(e).then(function(a){return a?new An3(e,a):null})}; g.C9q=function(e){e.cursor.continue(void 0);return Ue3(e.request)}; Gkj=function(e,a){this.S=e;this.options=a;this.transactionCount=0;this.B=Math.round((0,g.Ov)());this.T=!1}; g.d1=function(e,a,r){e=e.S.createObjectStore(a,r);return new kh(e)}; J7=function(e,a){e.S.objectStoreNames.contains(a)&&e.S.deleteObjectStore(a)}; g.$h=function(e,a,r){return g.DI(e,[a],{mode:"readwrite",DD:!0},function(P){return g.VB(P.objectStore(a),r)})}; g.DI=function(e,a,r,P){var B,h,c,y,T,X,f,A,U,C,G,O;return g.Y(function(d){switch(d.T){case 1:var W={mode:"readonly",DD:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof r==="string"?W.mode=r:Object.assign(W,r);B=W;e.transactionCount++;h=B.DD?3:1;c=0;case 2:if(y){d.Oo(4);break}c++;T=Math.round((0,g.Ov)());g.kN(d,5);X=e.S.transaction(a,B.mode);W=new QB(X);W=E4J(W,P);return g.l(d,W,7);case 7:return f=d.S,A=Math.round((0,g.Ov)()),bXL(e,T,A,c,void 0,a.join(),B),d.return(f);case 5:U=g.Q3(d);C=Math.round((0,g.Ov)()); G=Cl(U,e.S.name,a.join(),e.S.version);if((O=G instanceof g.XX&&!G.S)||c>=h)bXL(e,T,C,c,G,a.join(),B),y=G;d.Oo(2);break;case 4:return d.return(Promise.reject(y))}})}; bXL=function(e,a,r,P,B,h,c){a=r-a;B?(B instanceof g.XX&&(B.type==="QUOTA_EXCEEDED"||B.type==="QUOTA_MAYBE_EXCEEDED")&&nl("QUOTA_EXCEEDED",{dbName:TE(e.S.name),objectStoreNames:h,transactionCount:e.transactionCount,transactionMode:c.mode}),B instanceof g.XX&&B.type==="UNKNOWN_ABORT"&&(r-=e.B,r<0&&r>=2147483648&&(r=0),nl("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:a,transactionCount:e.transactionCount,dbDuration:r}),e.T=!0),tpJ(e,!1,P,h,a,c.tag),oq(B)):tpJ(e,!0,P,h,a, c.tag)}; tpJ=function(e,a,r,P,B,h){nl("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:e.T,duration:B,isSuccessful:a,tryCount:r,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})}; kh=function(e){this.S=e}; g.WU=function(e,a,r){e.S.createIndex(a,r,{unique:!1})}; g43=function(e,a){return g.lk(e,{query:a},function(r){return r.delete().then(function(){return g.Ll(r)})}).then(function(){})}; ZX4=function(e,a,r){var P=[];return g.lk(e,{query:a},function(B){if(!(r!==void 0&&P.length>=r))return P.push(B.getValue()),g.Ll(B)}).then(function(){return P})}; kkO=function(e){return"getAllKeys"in IDBObjectStore.prototype?g1(e.S.getAllKeys(void 0,void 0)):OXN(e)}; OXN=function(e){var a=[];return g.deq(e,{query:void 0},function(r){a.push(r.cursor.primaryKey);return g.C9q(r)}).then(function(){return a})}; g.VB=function(e,a,r){return g1(e.S.put(a,r))}; g.lk=function(e,a,r){e=e.S.openCursor(a.query,a.direction);return Yh(e).then(function(P){return ZI(P,r)})}; g.deq=function(e,a,r){var P=a.query;a=a.direction;e="openKeyCursor"in IDBObjectStore.prototype?e.S.openKeyCursor(P,a):e.S.openCursor(P,a);return Ue3(e).then(function(B){return ZI(B,r)})}; QB=function(e){var a=this;this.S=e;this.B=new Map;this.T=!1;this.done=new Promise(function(r,P){a.S.addEventListener("complete",function(){r()}); a.S.addEventListener("error",function(B){B.currentTarget===B.target&&P(a.S.error)}); a.S.addEventListener("abort",function(){var B=a.S.error;if(B)P(B);else if(!a.T){B=g.XX;for(var h=a.S.objectStoreNames,c=[],y=0;y=r))return P.push(B.getValue()),g.Ll(B)}).then(function(){return P})}; g.w1=function(e,a,r){e=e.S.openCursor(a.query===void 0?null:a.query,a.direction===void 0?"next":a.direction);return Yh(e).then(function(P){return ZI(P,r)})}; pl=function(e,a){this.request=e;this.cursor=a}; Yh=function(e){return g1(e).then(function(a){return a?new pl(e,a):null})}; g.Ll=function(e){e.cursor.continue(void 0);return Yh(e.request)}; VpT=function(e,a,r){return new Promise(function(P,B){function h(){U||(U=new Gkj(c.result,{closed:A}));return U} var c=a!==void 0?self.indexedDB.open(e,a):self.indexedDB.open(e);var y=r.blocked,T=r.blocking,X=r.XVQ,f=r.upgrade,A=r.closed,U;c.addEventListener("upgradeneeded",function(C){try{if(C.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(c.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");C.dataLoss&&C.dataLoss!=="none"&&nl("IDB_DATA_CORRUPTED",{reason:C.dataLossMessage||"unknown reason",dbName:TE(e)});var G=h(),O=new QB(c.transaction); f&&f(G,function(d){return C.oldVersion=d},O); O.done.catch(function(d){B(d)})}catch(d){B(d)}}); c.addEventListener("success",function(){var C=c.result;T&&C.addEventListener("versionchange",function(){T(h())}); C.addEventListener("close",function(){nl("IDB_UNEXPECTEDLY_CLOSED",{dbName:TE(e),dbVersion:C.version});X&&X()}); P(h())}); c.addEventListener("error",function(){B(c.error)}); y&&c.addEventListener("blocked",function(){y()})})}; $eL=function(e,a,r){r=r===void 0?{}:r;return VpT(e,a,r)}; ik=function(e,a){a=a===void 0?{}:a;var r,P,B,h;return g.Y(function(c){if(c.T==1)return g.kN(c,2),r=self.indexedDB.deleteDatabase(e),P=a,(B=P.blocked)&&r.addEventListener("blocked",function(){B()}),g.l(c,fn3(r),4); if(c.T!=2)return g.Dl(c,0);h=g.Q3(c);throw Cl(h,e,"",-1);})}; zE=function(e,a){this.name=e;this.options=a;this.B=!0;this.C=this.L=0}; Qaq=function(e,a){return new g.XX("INCOMPATIBLE_DB_VERSION",{dbName:e.name,oldVersion:e.options.version,newVersion:a})}; g.NU=function(e,a){if(!a)throw g.GE("openWithToken",TE(e.name));return e.open()}; Wsj=function(e,a){var r;return g.Y(function(P){if(P.T==1)return g.l(P,g.NU(xh,a),2);r=P.S;return P.return(g.DI(r,["databases"],{DD:!0,mode:"readwrite"},function(B){var h=B.objectStore("databases");return h.get(e.actualName).then(function(c){if(c?e.actualName!==c.actualName||e.publicName!==c.publicName||e.userIdentifier!==c.userIdentifier:1)return g.VB(h,e).then(function(){})})}))})}; Iq=function(e,a){var r;return g.Y(function(P){if(P.T==1)return e?g.l(P,g.NU(xh,a),2):P.return();r=P.S;return P.return(r.delete("databases",e))})}; lnL=function(e,a){var r,P;return g.Y(function(B){return B.T==1?(r=[],g.l(B,g.NU(xh,a),2)):B.T!=3?(P=B.S,g.l(B,g.DI(P,["databases"],{DD:!0,mode:"readonly"},function(h){r.length=0;return g.lk(h.objectStore("databases"),{},function(c){e(c.getValue())&&r.push(c.getValue());return g.Ll(c)})}),3)):B.return(r)})}; Ls4=function(e,a){return lnL(function(r){return r.publicName===e&&r.userIdentifier!==void 0},a)}; YCO=function(){var e,a,r,P;return g.Y(function(B){switch(B.T){case 1:e=eV();if((a=e)==null?0:a.hasSucceededOnce)return B.return(!0);if(HU&&qr()&&!vf()||g.qU)return B.return(!1);try{if(r=self,!(r.indexedDB&&r.IDBIndex&&r.IDBKeyRange&&r.IDBObjectStore))return B.return(!1)}catch(h){return B.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return B.return(!1);g.kN(B,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.l(B,Wsj(P,vU),4);case 4:return g.l(B,Iq("yt-idb-test-do-not-use",vU),5);case 5:return B.return(!0);case 2:return g.Q3(B),B.return(!1)}})}; wPl=function(){if(Rq!==void 0)return Rq;cU=!0;return Rq=YCO().then(function(e){cU=!1;var a;if((a=KE())!=null&&a.S){var r;a={hasSucceededOnce:((r=eV())==null?void 0:r.hasSucceededOnce)||e};var P;(P=KE())==null||P.set("LAST_RESULT_ENTRY_KEY",a,2592E3,!0)}return e})}; SV=function(){return g.aZ("ytglobal.idbToken_")||void 0}; g.mQ=function(){var e=SV();return e?Promise.resolve(e):wPl().then(function(a){(a=a?vU:void 0)&&g.KL("ytglobal.idbToken_",a);return a})}; pP3=function(e){if(!g.ql())throw e=new g.XX("AUTH_INVALID",{dbName:e}),oq(e),e;var a=g.Hh();return{actualName:e+":"+a,publicName:e,userIdentifier:a}}; iXj=function(e,a,r,P){var B,h,c,y,T,X;return g.Y(function(f){switch(f.T){case 1:return h=(B=Error().stack)!=null?B:"",g.l(f,g.mQ(),2);case 2:c=f.S;if(!c)throw y=g.GE("openDbImpl",e,a),g.CK("ytidb_async_stack_killswitch")||(y.stack=y.stack+"\n"+h.substring(h.indexOf("\n")+1)),oq(y),y;yB(e);T=r?{actualName:e,publicName:e,userIdentifier:void 0}:pP3(e);g.kN(f,3);return g.l(f,Wsj(T,c),5);case 5:return g.l(f,$eL(T.actualName,a,P),6);case 6:return f.return(f.S);case 3:return X=g.Q3(f),g.kN(f,7),g.l(f,Iq(T.actualName, c),9);case 9:g.Dl(f,8);break;case 7:g.Q3(f);case 8:throw X;}})}; ztq=function(e,a,r){r=r===void 0?{}:r;return iXj(e,a,!1,r)}; Nij=function(e,a,r){r=r===void 0?{}:r;return iXj(e,a,!0,r)}; xe4=function(e,a){a=a===void 0?{}:a;var r,P;return g.Y(function(B){if(B.T==1)return g.l(B,g.mQ(),2);if(B.T!=3){r=B.S;if(!r)return B.return();yB(e);P=pP3(e);return g.l(B,ik(P.actualName,a),3)}return g.l(B,Iq(P.actualName,r),0)})}; InT=function(e,a,r){e=e.map(function(P){return g.Y(function(B){return B.T==1?g.l(B,ik(P.actualName,a),2):g.l(B,Iq(P.actualName,r),0)})}); return Promise.all(e).then(function(){})}; HXN=function(e){var a=a===void 0?{}:a;var r,P;return g.Y(function(B){if(B.T==1)return g.l(B,g.mQ(),2);if(B.T!=3){r=B.S;if(!r)return B.return();yB(e);return g.l(B,Ls4(e,r),3)}P=B.S;return g.l(B,InT(P,a,r),0)})}; qC4=function(e,a){a=a===void 0?{}:a;var r;return g.Y(function(P){if(P.T==1)return g.l(P,g.mQ(),2);if(P.T!=3){r=P.S;if(!r)return P.return();yB(e);return g.l(P,ik(e,a),3)}return g.l(P,Iq(e,r),0)})}; FX=function(e,a){zE.call(this,e,a);this.options=a;yB(e)}; v4q=function(e,a){var r;return function(){r||(r=new FX(e,a));return r}}; g.MU=function(e,a){return v4q(e,a)}; jV=function(e){return g.NU(Rt4(),e)}; SCL=function(e,a,r,P){var B,h,c;return g.Y(function(y){switch(y.T){case 1:return B={config:e,hashData:a,timestamp:P!==void 0?P:(0,g.Ov)()},g.l(y,jV(r),2);case 2:return h=y.S,g.l(y,h.clear("hotConfigStore"),3);case 3:return g.l(y,g.$h(h,"hotConfigStore",B),4);case 4:return c=y.S,y.return(c)}})}; saz=function(e,a,r,P,B){var h,c,y;return g.Y(function(T){switch(T.T){case 1:return h={config:e,hashData:a,configData:r,timestamp:B!==void 0?B:(0,g.Ov)()},g.l(T,jV(P),2);case 2:return c=T.S,g.l(T,c.clear("coldConfigStore"),3);case 3:return g.l(T,g.$h(c,"coldConfigStore",h),4);case 4:return y=T.S,T.return(y)}})}; meL=function(e){var a,r;return g.Y(function(P){return P.T==1?g.l(P,jV(e),2):P.T!=3?(a=P.S,r=void 0,g.l(P,g.DI(a,["coldConfigStore"],{mode:"readwrite",DD:!0},function(B){return g.w1(B.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){r=h.getValue()})}),3)):P.return(r)})}; Fs4=function(e){var a,r;return g.Y(function(P){return P.T==1?g.l(P,jV(e),2):P.T!=3?(a=P.S,r=void 0,g.l(P,g.DI(a,["hotConfigStore"],{mode:"readwrite",DD:!0},function(B){return g.w1(B.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){r=h.getValue()})}),3)):P.return(r)})}; MpT=function(){return g.Y(function(e){return g.l(e,HXN("ytGcfConfig"),0)})}; uk=function(){g.N.call(this);this.T=[];this.S=[];var e=g.aZ("yt.gcf.config.hotUpdateCallbacks");e?(this.T=[].concat(g.UO(e)),this.S=e):(this.S=[],g.KL("yt.gcf.config.hotUpdateCallbacks",this.S))}; BN=function(){var e=this;this.C=!1;this.B=this.L=0;this.Z=new uk;this.Ob={qfr:function(){e.C=!0}, JNW:function(){return e.S}, nYH:function(a){Kl(e,a)}, Ke:function(a){e.Ke(a)}, r6o:function(a){eA(e,a)}, MG:function(){return e.coldHashData}, nP:function(){return e.hotHashData}, Sfm:function(){return e.T}, vxW:function(){return ar()}, NxW:function(){return rA()}, rNW:function(){return g.aZ("yt.gcf.config.coldHashData")}, iSz:function(){return g.aZ("yt.gcf.config.hotHashData")}, ZiW:function(){jal(e)}, Ggd:function(){e.Ke(void 0);PN(e);delete BN.instance}, u$P:function(a){e.B=a}, FMo:function(){return e.B}}}; uuJ=function(){if(!BN.instance){var e=new BN;BN.instance=e}return BN.instance}; awj=function(e){var a;g.Y(function(r){if(r.T==1)return g.CK("start_client_gcf")||g.CK("delete_gcf_config_db")?g.CK("start_client_gcf")?g.l(r,g.mQ(),3):r.Oo(2):r.return();r.T!=2&&((a=r.S)&&g.ql()&&!g.CK("delete_gcf_config_db")?(e.C=!0,jal(e)):(KsJ(e),e7J(e)));return g.CK("delete_gcf_config_db")?g.l(r,MpT(),0):r.Oo(0)})}; hE=function(){var e;return(e=rA())!=null?e:g.IM("RAW_HOT_CONFIG_GROUP")}; riJ=function(e){var a,r,P,B,h,c;return g.Y(function(y){switch(y.T){case 1:if(e.T)return y.return(rA());if(!e.C)return a=g.GE("getHotConfig IDB not initialized"),mV(a),y.return(Promise.reject(a));r=SV();P=g.IM("TIME_CREATED_MS");if(!r){B=g.GE("getHotConfig token error");mV(B);y.Oo(2);break}return g.l(y,Fs4(r),3);case 3:if((h=y.S)&&h.timestamp>P)return Kl(e,h.config),e.Ke(h.hashData),y.return(rA());case 2:e7J(e);if(!(r&&e.T&&e.hotHashData)){y.Oo(4);break}return g.l(y,SCL(e.T,e.hotHashData,r,P),4);case 4:return e.T? y.return(rA()):(c=new g.I6("Config not available in ytConfig"),mV(c),y.return(Promise.reject(c)))}})}; Br4=function(e){var a,r,P,B,h,c;return g.Y(function(y){switch(y.T){case 1:if(e.S)return y.return(ar());if(!e.C)return a=g.GE("getColdConfig IDB not initialized"),mV(a),y.return(Promise.reject(a));r=SV();P=g.IM("TIME_CREATED_MS");if(!r){B=g.GE("getColdConfig");mV(B);y.Oo(2);break}return g.l(y,meL(r),3);case 3:if((h=y.S)&&h.timestamp>P)return eA(e,h.config),PYL(e,h.configData),PN(e,h.hashData),y.return(ar());case 2:KsJ(e);if(!(r&&e.S&&e.coldHashData&&e.configData)){y.Oo(4);break}return g.l(y,saz(e.S, e.coldHashData,e.configData,r,P),4);case 4:return e.S?y.return(ar()):(c=new g.I6("Config not available in ytConfig"),mV(c),y.return(Promise.reject(c)))}})}; jal=function(e){if(!e.T||!e.S){if(!SV()){var a=g.GE("scheduleGetConfigs");mV(a)}e.L||(e.L=g.i9.xL(function(){return g.Y(function(r){switch(r.T){case 1:return g.kN(r,2),g.l(r,riJ(e),4);case 4:g.Dl(r,3);break;case 2:g.Q3(r);case 3:return g.kN(r,5),g.l(r,Br4(e),7);case 7:g.Dl(r,6);break;case 5:g.Q3(r);case 6:e.L&&(e.L=0),g.OO(r)}})},100))}}; h7N=function(e,a,r){var P,B,h;return g.Y(function(c){switch(c.T){case 1:if(!g.CK("start_client_gcf")){c.Oo(0);break}r&&Kl(e,r);e.Ke(a);P=SV();if(!P){c.Oo(3);break}if(r){c.Oo(4);break}return g.l(c,Fs4(P),5);case 5:B=c.S,r=(h=B)==null?void 0:h.config;case 4:return g.l(c,SCL(r,a,P),3);case 3:if(r)for(var y=r,T=g.Z(e.Z.S),X=T.next();!X.done;X=T.next())X=X.value,X(y);g.OO(c)}})}; ciL=function(e,a,r){var P,B,h,c;return g.Y(function(y){if(y.T==1){if(!g.CK("start_client_gcf"))return y.Oo(0);PN(e,a);return(P=SV())?r?y.Oo(4):g.l(y,meL(P),5):y.Oo(0)}y.T!=4&&(B=y.S,r=(h=B)==null?void 0:h.config);if(!r)return y.Oo(0);c=r.configData;return g.l(y,saz(r,a,c,P),0)})}; ox4=function(){var e=uuJ(),a=(0,g.Ov)()-e.B;if(!(e.B!==0&&a0&&(a.request={internalExperimentFlags:r});yiL(e,void 0,a);TrO(void 0,a);XDj(void 0,a);fw3(e,void 0,a);Ai4(void 0,a);g.CK("start_client_gcf")&&Uoj(void 0,a);g.IM("DELEGATED_SESSION_ID")&& !g.CK("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.IM("DELEGATED_SESSION_ID")});!g.CK("fill_delegate_context_in_gel_killswitch")&&(e=g.IM("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(a.user=Object.assign({},a.user,{serializedDelegationContext:e}));e=g.IM("INNERTUBE_CONTEXT");var P;if(g.CK("enable_persistent_device_token")&&(e==null?0:(P=e.client)==null?0:P.rolloutToken)){var B;a.client.rolloutToken=e==null?void 0:(B=e.client)==null?void 0:B.rolloutToken}P=Object;B=P.assign;e=a.client; r={};for(var h=g.Z(Object.entries(jX(g.IM("DEVICE","")))),c=h.next();!c.done;c=h.next()){var y=g.Z(c.value);c=y.next().value;y=y.next().value;c==="cbrand"?r.deviceMake=y:c==="cmodel"?r.deviceModel=y:c==="cbr"?r.browserName=y:c==="cbrver"?r.browserVersion=y:c==="cos"?r.osName=y:c==="cosver"?r.osVersion=y:c==="cplatform"&&(r.platform=y)}a.client=B.call(P,e,r);return a}; yiL=function(e,a,r){e=e.J5;if(e==="WEB"||e==="MWEB"||e===1||e===2)if(a){r=gN(a,km,96)||new km;var P=lQ();P=Object.keys(CYz).indexOf(P);P=P===-1?null:P;P!==null&&NX(r,3,P);D$(a,km,96,r)}else r&&(r.client.mainAppWebInfo=(P=r.client.mainAppWebInfo)!=null?P:{},r.client.mainAppWebInfo.webDisplayMode=lQ())}; TrO=function(e,a){var r=g.aZ("yt.embedded_player.embed_url");r&&(e?(a=gN(e,$m,7)||new $m,i5(a,4,r),D$(e,$m,7,a)):a&&(a.thirdParty={embedUrl:r}))}; XDj=function(e,a){var r;if(g.CK("web_log_memory_total_kbytes")&&((r=g.uq.navigator)==null?0:r.deviceMemory)){var P;r=(P=g.uq.navigator)==null?void 0:P.deviceMemory;e?rN(e,95,kj(r*1E6)):a&&(a.client.memoryTotalKbytes=""+r*1E6)}}; fw3=function(e,a,r){if(e.appInstallData)if(a){var P;r=(P=gN(a,O7,62))!=null?P:new O7;i5(r,6,e.appInstallData);D$(a,O7,62,r)}else r&&(r.client.configInfo=r.client.configInfo||{},r.client.configInfo.appInstallData=e.appInstallData)}; Ai4=function(e,a){var r=uDq();r&&(e?NX(e,61,G$3[r]):a&&(a.client.connectionType=r));g.CK("web_log_effective_connection_type")&&(r=etN())&&(e?NX(e,94,Exz[r]):a&&(a.client.effectiveConnectionType=r))}; bTO=function(e,a,r){r=r===void 0?{}:r;var P={};g.IM("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":g.IM("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":r.visitorData||g.IM("VISITOR_DATA","")};if(a&&a.includes("www.youtube-nocookie.com"))return P;a=r.Py||g.IM("AUTHORIZATION");a||(e?a="Bearer "+g.aZ("gapi.auth.getToken")().access_token:(e=Smy().Th(yr),g.CK("pageid_as_header_web")||delete e["X-Goog-PageId"],P=Object.assign({},P,e)));a&&(P.Authorization=a);return P}; Uoj=function(e,a){var r=ox4();if(r){var P=r.coldConfigData,B=r.coldHashData;r=r.hotHashData;if(e){var h;a=(h=gN(e,O7,62))!=null?h:new O7;P=i5(a,1,P);i5(P,3,B).Ke(r);D$(e,O7,62,a)}else a&&(a.client.configInfo=a.client.configInfo||{},P&&(a.client.configInfo.coldConfigData=P),B&&(a.client.configInfo.coldHashData=B),r&&(a.client.configInfo.hotHashData=r))}}; T4=function(e,a){this.version=e;this.args=a}; Xm=function(e,a){this.topic=e;this.S=a}; AE=function(e,a){var r=fu();r&&r.publish.call(r,e.toString(),e,a)}; ZTL=function(e){var a=tGL,r=fu();if(!r)return 0;var P=r.subscribe(a.toString(),function(B,h){var c=g.aZ("ytPubsub2Pubsub2SkipSubKey");c&&c==P||(c=function(){if(Uj[P])try{if(h&&a instanceof Xm&&a!=B)try{var y=a.S,T=h;if(!T.args||!T.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!y.HB){var X=new y;y.HB=X.version}var f=y.HB}catch(A){}if(!f||T.version!=f)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(y, g.WB(T.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 "+a.toString()+": "+A.message,A;}e.call(window,h)}catch(A){g.SX(A)}},gxL[a.toString()]?g.Ml()?g.i9.xL(c):g.Tu(c,0):c())}); Uj[P]=!0;Cu[a.toString()]||(Cu[a.toString()]=[]);Cu[a.toString()].push(P);return P}; doJ=function(){var e=OTJ,a=ZTL(function(r){e.apply(void 0,arguments);k$J(a)}); return a}; k$J=function(e){var a=fu();a&&(typeof e==="number"&&(e=[e]),g.FN(e,function(r){a.unsubscribeByKey(r);delete Uj[r]}))}; fu=function(){return g.aZ("ytPubsub2Pubsub2Instance")}; G4=function(e,a,r){r=r===void 0?{sampleRate:.1}:r;Math.random()WDT||c=wDj&&(DH++,g.CK("abandon_compression_after_N_slow_zips")?JE===g.Gu("compression_disable_point")&&DH>pD3&&(Oj=!1):Oj=!1);iTq(a);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=e;P.postParams=void 0;B(r,P)}; z7L=function(e){var a=a===void 0?!1:a;var r=r===void 0?!1:r;var P=(0,g.Ov)(),B={startTime:P,ticks:{},infos:{}},h=a?g.aZ("yt.logging.gzipForFetch",!1):!0;if(Oj&&h){if(!e.body)return e;try{var c=r?e.body:typeof e.body==="string"?e.body:JSON.stringify(e.body);h=c;if(!r&&typeof c==="string"){var y=QcJ(c);if(y!=null&&(y>WDT||y=wDj)if(DH++,g.CK("abandon_compression_after_N_slow_zips")||g.CK("abandon_compression_after_N_slow_zips_lr")){a=DH/JE;var X=pD3/g.Gu("compression_disable_point");JE>0&&JE%g.Gu("compression_disable_point")===0&&a>=X&&(Oj=!1)}else Oj=!1;iTq(B)}}e.headers=Object.assign({},{"Content-Encoding":"gzip"},e.headers||{});e.body=h;return e}catch(f){return mV(f),e}}else return e}; QcJ=function(e){try{return(new Blob(e.split(""))).size}catch(a){return mV(a),null}}; iTq=function(e){g.CK("gel_compression_csi_killswitch")||!g.CK("log_gel_compression_latency")&&!g.CK("log_gel_compression_latency_lr")||G4("gel_compression",e,{sampleRate:.1})}; $M=function(e){var a=this;this.PQ=this.S=!1;this.potentialEsfErrorCounter=this.T=0;this.handleError=function(){}; this.FR=function(){}; this.now=Date.now;this.qU=!1;this.Ob={iiW:function(f){a.vG=f}, wJW:function(){a.qV()}, Zc:function(){a.ES()}, Gh:function(f){return g.Y(function(A){return g.l(A,a.Gh(f),0)})}, Pb:function(f,A){return a.Pb(f,A)}, Go:function(){a.Go()}}; var r;this.eY=(r=e.eY)!=null?r:100;var P;this.Qw=(P=e.Qw)!=null?P:1;var B;this.IF=(B=e.IF)!=null?B:2592E6;var h;this.RF=(h=e.RF)!=null?h:12E4;var c;this.Xy=(c=e.Xy)!=null?c:5E3;var y;this.vG=(y=e.vG)!=null?y:void 0;this.WY=!!e.WY;var T;this.MX=(T=e.MX)!=null?T:.1;var X;this.aW=(X=e.aW)!=null?X:10;e.handleError&&(this.handleError=e.handleError);e.FR&&(this.FR=e.FR);e.qU&&(this.qU=e.qU);e.PQ&&(this.PQ=e.PQ);this.FM=e.FM;this.kZ=e.kZ;this.Yu=e.Yu;this.wE=e.wE;this.sendFn=e.sendFn;this.c5=e.c5;this.G6= e.G6;Vr(this)&&(!this.FM||this.FM("networkless_logging"))&&Nr4(this)}; Nr4=function(e){Vr(e)&&!e.qU&&(e.S=!0,e.WY&&Math.random()<=e.MX&&e.Yu.Dc(e.vG),e.Go(),e.wE.ZY()&&e.qV(),e.wE.listen(e.c5,e.qV.bind(e)),e.wE.listen(e.G6,e.ES.bind(e)))}; HTI=function(e,a){if(!Vr(e))throw Error("IndexedDB is not supported: updateRequestHandlers");var r=a.options.onError?a.options.onError:function(){}; a.options.onError=function(B,h){var c,y,T,X;return g.Y(function(f){switch(f.T){case 1:c=xoj(h);(y=Iwq(h))&&e.FM&&e.FM("web_enable_error_204")&&e.handleError(Error("Request failed due to compression"),a.url,h);if(!(e.FM&&e.FM("nwl_consider_error_code")&&c||e.FM&&!e.FM("nwl_consider_error_code")&&e.potentialEsfErrorCounter<=e.aW)){f.Oo(2);break}if(!e.wE.Ma){f.Oo(3);break}return g.l(f,e.wE.Ma(),3);case 3:if(e.wE.ZY()){f.Oo(2);break}r(B,h);if(!e.FM||!e.FM("nwl_consider_error_code")||((T=a)==null?void 0: T.id)===void 0){f.Oo(6);break}return g.l(f,e.Yu.Kn(a.id,e.vG,!1),6);case 6:return f.return();case 2:if(e.FM&&e.FM("nwl_consider_error_code")&&!c&&e.potentialEsfErrorCounter>e.aW)return f.return();e.potentialEsfErrorCounter++;if(((X=a)==null?void 0:X.id)===void 0){f.Oo(8);break}return a.sendCount=400&&e<=599?!1:!0}; Iwq=function(e){var a;e=e==null?void 0:(a=e.error)==null?void 0:a.code;return!(e!==400&&e!==415)}; qy3=function(){if(WN)return WN();var e={};WN=g.MU("LogsDatabaseV2",{Gp:(e.LogsRequestsStore={W4:2},e),shared:!1,upgrade:function(a,r,P){r(2)&&g.d1(a,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});r(3);r(5)&&(P=P.objectStore("LogsRequestsStore"),P.S.indexNames.contains("newRequest")&&P.S.deleteIndex("newRequest"),g.WU(P,"newRequestV2",["status","interface","timestamp"]));r(7)&&J7(a,"sapisid");r(9)&&J7(a,"SWHealthLog")}, version:9});return WN()}; l4=function(e){return g.NU(qy3(),e)}; R7L=function(e,a){var r,P,B,h;return g.Y(function(c){if(c.T==1)return r={startTime:(0,g.Ov)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.l(c,l4(a),2);if(c.T!=3)return P=c.S,B=Object.assign({},e,{options:JSON.parse(JSON.stringify(e.options)),interface:g.IM("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.l(c,g.$h(P,"LogsRequestsStore",B),3);h=c.S;r.ticks.tc=(0,g.Ov)();vxq(r);return c.return(h)})}; Sy4=function(e,a){var r,P,B,h,c,y,T,X,f;return g.Y(function(A){if(A.T==1)return r={startTime:(0,g.Ov)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.l(A,l4(a),2);if(A.T!=3)return P=A.S,B=g.IM("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[e,B,0],c=[e,B,(0,g.Ov)()],y=IDBKeyRange.bound(h,c),T="prev",g.CK("use_fifo_for_networkless")&&(T="next"),X=void 0,f=e==="NEW"?"readwrite":"readonly",g.CK("use_readonly_for_get_most_recent_by_status_killswitch")&&(f="readwrite"),g.l(A,g.DI(P,["LogsRequestsStore"], {mode:f,DD:!0},function(U){return g.w1(U.objectStore("LogsRequestsStore").index("newRequestV2"),{query:y,direction:T},function(C){C.getValue()&&(X=C.getValue(),e==="NEW"&&(X.status="QUEUED",C.update(X)))})}),3); r.ticks.tc=(0,g.Ov)();vxq(r);return A.return(X)})}; sc3=function(e,a){var r;return g.Y(function(P){if(P.T==1)return g.l(P,l4(a),2);r=P.S;return P.return(g.DI(r,["LogsRequestsStore"],{mode:"readwrite",DD:!0},function(B){var h=B.objectStore("LogsRequestsStore");return h.get(e).then(function(c){if(c)return c.status="QUEUED",g.VB(h,c).then(function(){return c})})}))})}; moT=function(e,a,r,P){r=r===void 0?!0:r;var B;return g.Y(function(h){if(h.T==1)return g.l(h,l4(a),2);B=h.S;return h.return(g.DI(B,["LogsRequestsStore"],{mode:"readwrite",DD:!0},function(c){var y=c.objectStore("LogsRequestsStore");return y.get(e).then(function(T){return T?(T.status="NEW",r&&(T.sendCount+=1),P!==void 0&&(T.options.compress=P),g.VB(y,T).then(function(){return T})):g.bk.resolve(void 0)})}))})}; FDJ=function(e,a){var r;return g.Y(function(P){if(P.T==1)return g.l(P,l4(a),2);r=P.S;return P.return(r.delete("LogsRequestsStore",e))})}; MGj=function(e){var a,r;return g.Y(function(P){if(P.T==1)return g.l(P,l4(e),2);a=P.S;r=(0,g.Ov)()-2592E6;return g.l(P,g.DI(a,["LogsRequestsStore"],{mode:"readwrite",DD:!0},function(B){return g.lk(B.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=r)return h.delete().then(function(){return g.Ll(h)})})}),0)})}; jcz=function(){g.Y(function(e){return g.l(e,HXN("LogsDatabaseV2"),0)})}; vxq=function(e){g.CK("nwl_csi_killswitch")||G4("networkless_performance",e,{sampleRate:1})}; KDl=function(e){return g.NU(uTz(),e)}; enz=function(e){var a,r;g.Y(function(P){if(P.T==1)return g.l(P,KDl(e),2);a=P.S;r=(0,g.Ov)()-2592E6;return g.l(P,g.DI(a,["SWHealthLog"],{mode:"readwrite",DD:!0},function(B){return g.lk(B.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=r)return h.delete().then(function(){return g.Ll(h)})})}),0)})}; ajy=function(e){var a;return g.Y(function(r){if(r.T==1)return g.l(r,KDl(e),2);a=r.S;return g.l(r,a.clear("SWHealthLog"),0)})}; g.Lu=function(e,a,r,P,B,h,c){B=B===void 0?"":B;h=h===void 0?!1:h;c=c===void 0?!1:c;if(e)if(r&&!g.x2())mV(new g.I6("Legacy referrer-scrubbed ping detected")),e&&raL(e,void 0,{scrubReferrer:!0});else if(B)tl(e,a,"POST",B,P);else if(g.IM("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||c)tl(e,a,"GET","",P,void 0,h,c);else{b:{try{c:{var y=new kRj({url:e});if(y.S.dsh==="1")var T=null;else{var X=y.S.ae;if(X==="1"){var f=y.S.adurl;if(f)try{T={version:3,uZ:decodeURIComponent(f),L3:M1(y.T,"act=1","ri=1",dB4(y))}; break c}catch(C){}}T=X==="2"?{version:4,uZ:M1(y.T,"dct=1","suid="+y.B,""),L3:M1(y.T,"act=1","ri=1","suid="+y.B)}:null}}if(T){var A=Xd(e);var U=!(!A||!A.endsWith("/aclk")||OW(e,"ri")!=="1");break b}}catch(C){}U=!1}U?Pxj(e)?(a&&a(),r=!0):r=!1:r=!1;r||raL(e,a)}}; Pxj=function(e,a){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,a===void 0?"":a))return!0}catch(r){}return!1}; raL=function(e,a,r){r=r===void 0?{}:r;var P=new Image,B=""+BMI++;YM[B]=P;P.onload=P.onerror=function(){a&&YM[B]&&a();delete YM[B]}; r.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=e}; hnL=function(e){var a;return((a=document.featurePolicy)==null?0:a.allowedFeatures().includes("attribution-reporting"))?e+"&nis=6":e+"&nis=5"}; pu=function(){wA||(wA=new uQ("yt.offline"));return wA}; caL=function(e){if(g.CK("offline_error_handling")){var a=pu().get("errors",!0)||{};a[e.message]={name:e.name,stack:e.stack};e.level&&(a[e.message].level=e.level);pu().set("errors",a,2592E3,!0)}}; i4=function(){this.S=new Map;this.T=!1}; z4=function(){if(!i4.instance){var e=g.aZ("yt.networkRequestMonitor.instance")||new i4;g.KL("yt.networkRequestMonitor.instance",e);i4.instance=e}return i4.instance}; Nx=function(){g.AP.call(this);var e=this;this.T=!1;this.S=be4();this.S.listen("networkstatus-online",function(){if(e.T&&g.CK("offline_error_handling")){var a=pu().get("errors",!0);if(a){for(var r in a)if(a[r]){var P=new g.I6(r,"sent via offline_errors");P.name=a[r].name;P.stack=a[r].stack;P.level=a[r].level;g.SX(P)}pu().set("errors",{},2592E3,!0)}}})}; omy=function(){if(!Nx.instance){var e=g.aZ("yt.networkStatusManager.instance")||new Nx;g.KL("yt.networkStatusManager.instance",e);Nx.instance=e}return Nx.instance}; g.xM=function(e){e=e===void 0?{}:e;g.AP.call(this);var a=this;this.S=this.L=0;this.T=omy();var r=g.aZ("yt.networkStatusManager.instance.listen").bind(this.T);r&&(e.rateLimit?(this.rateLimit=e.rateLimit,r("networkstatus-online",function(){nm4(a,"publicytnetworkstatus-online")}),r("networkstatus-offline",function(){nm4(a,"publicytnetworkstatus-offline")})):(r("networkstatus-online",function(){a.dispatchEvent("publicytnetworkstatus-online")}),r("networkstatus-offline",function(){a.dispatchEvent("publicytnetworkstatus-offline")})))}; nm4=function(e,a){e.rateLimit?e.S?(g.i9.OQ(e.L),e.L=g.i9.xL(function(){e.B!==a&&(e.dispatchEvent(a),e.B=a,e.S=(0,g.Ov)())},e.rateLimit-((0,g.Ov)()-e.S))):(e.dispatchEvent(a),e.B=a,e.S=(0,g.Ov)()):e.dispatchEvent(a)}; HN=function(){var e=$M.call;Ir||(Ir=new g.xM({Bof:!0,bTo:!0}));e.call($M,this,{Yu:{Dc:MGj,Os:FDJ,Xk:Sy4,rQ:sc3,Kn:moT,set:R7L},wE:Ir,handleError:function(a,r,P){var B,h=P==null?void 0:(B=P.error)==null?void 0:B.code;if(h===400||h===415){var c;a=new g.I6(a.message,r,P==null?void 0:(c=P.error)==null?void 0:c.code);mV(a,void 0,void 0,void 0,!0)}else g.SX(a)}, FR:mV,sendFn:ya3,now:g.Ov,l9:caL,kZ:g.Fn(),c5:"publicytnetworkstatus-online",G6:"publicytnetworkstatus-offline",WY:!0,MX:.1,aW:g.Gu("potential_esf_error_limit",10),FM:g.CK,qU:!(g.ql()&&g.TS(document.location.toString())!=="www.youtube-nocookie.com")});this.B=new g.fp;g.CK("networkless_immediately_drop_all_requests")&&jcz();qC4("LogsDatabaseV2")}; qx=function(){var e=g.aZ("yt.networklessRequestController.instance");e||(e=new HN,g.KL("yt.networklessRequestController.instance",e),g.CK("networkless_logging")&&g.mQ().then(function(a){e.vG=a;Nr4(e);e.B.resolve();e.WY&&Math.random()<=e.MX&&e.vG&&enz(e.vG);g.CK("networkless_immediately_drop_sw_health_store")&&TMT(e)})); return e}; TMT=function(e){var a;g.Y(function(r){if(!e.vG)throw a=g.GE("clearSWHealthLogsDb"),a;return r.return(ajy(e.vG).catch(function(P){e.handleError(P)}))})}; ya3=function(e,a,r,P){P=P===void 0?!1:P;a=g.CK("web_fp_via_jspb")?Object.assign({},a):a;g.CK("use_cfr_monitor")&&XVl(e,a);if(g.CK("use_request_time_ms_header"))a.headers&&re(e)&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ov)())));else{var B;if((B=a.postParams)==null?0:B.requestTimeMs)a.postParams.requestTimeMs=Math.round((0,g.Ov)())}r&&Object.keys(a).length===0?g.Lu(e):a.compress?a.postBody?(typeof a.postBody!=="string"&&(a.postBody=JSON.stringify(a.postBody)),dA(e,a.postBody, a,g.ge,P)):dA(e,JSON.stringify(a.postParams),a,Z7,P):g.ge(e,a)}; vN=function(e,a){g.CK("use_event_time_ms_header")&&re(e)&&(a.headers||(a.headers={}),a.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Ov)())));return a}; XVl=function(e,a){var r=a.onError?a.onError:function(){}; a.onError=function(B,h){z4().requestComplete(e,!1);r(B,h)}; var P=a.onSuccess?a.onSuccess:function(){}; a.onSuccess=function(B,h){z4().requestComplete(e,!0);P(B,h)}}; g.Rr=function(e){this.config_=null;e?this.config_=e:nxj()&&(this.config_=g.cN())}; g.SA=function(e,a,r,P){function B(X){try{if((X===void 0?0:X)&&P.retry&&!P.networklessOptions.bypassNetworkless)h.method="POST",P.networklessOptions.writeThenSend?qx().writeThenSend(T,h):qx().sendAndWrite(T,h);else if(P.compress){var f=!P.networklessOptions.writeThenSend;if(h.postBody){var A=h.postBody;typeof A!=="string"&&(A=JSON.stringify(h.postBody));dA(T,A,h,g.ge,f)}else dA(T,JSON.stringify(h.postParams),h,Z7,f)}else g.CK("web_all_payloads_via_jspb")?g.ge(T,h):Z7(T,h)}catch(U){if(U.name==="InvalidAccessError")mV(Error("An extension is blocking network request.")); else throw U;}} !g.IM("VISITOR_DATA")&&a!=="visitor_id"&&Math.random()<.01&&mV(new g.I6("Missing VISITOR_DATA when sending innertube request.",a,r,P));if(!e.isReady())throw e=new g.I6("innertube xhrclient not ready",a,r,P),g.SX(e),e;var h={headers:P.headers||{},method:"POST",postParams:r,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()}, onFetchTimeout:P.onTimeout,onSuccess:function(X,f){if(P.onSuccess)P.onSuccess(f)}, onFetchSuccess:function(X){if(P.onSuccess)P.onSuccess(X)}, onProgress:function(X){if(P.onProgress)P.onProgress(X)}, onError:function(X,f){if(P.onError)P.onError(f)}, onFetchError:function(X){if(P.onError)P.onError(X)}, timeout:P.timeout,withCredentials:!0,compress:P.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");r="";var c=e.config_.QZ;c&&(r=c);c=e.config_.De||!1;var y=bTO(c,r,P);Object.assign(h.headers,y);h.headers.Authorization&&!r&&c&&(h.headers["x-origin"]=window.location.origin);var T=ew(""+r+("/youtubei/"+e.config_.innertubeApiVersion+"/"+a),{alt:"json"});g.aZ("ytNetworklessLoggingInitializationOptions")&&fj4.isNwlInitialized?wPl().then(function(X){B(X)}):B(!1)}; g.jA=function(e,a,r){var P=g.sj();if(P&&a){var B=P.subscribe(e,function(){function h(){m5[B]&&a.apply&&typeof a.apply=="function"&&a.apply(r||window,c)} var c=arguments;try{g.Fm[e]?h():g.Tu(h,0)}catch(y){g.SX(y)}},r); m5[B]=!0;Mx[e]||(Mx[e]=[]);Mx[e].push(B);return B}return 0}; AaN=function(e){var a=g.jA("LOGGED_IN",function(r){e.apply(void 0,arguments);g.u4(a)})}; g.u4=function(e){var a=g.sj();a&&(typeof e==="number"?e=[e]:typeof e==="string"&&(e=[parseInt(e,10)]),g.FN(e,function(r){a.unsubscribeByKey(r);delete m5[r]}))}; g.Ku=function(e,a){var r=g.sj();return r?r.publish.apply(r,arguments):!1}; Cxy=function(e){var a=g.sj();if(a)if(a.clear(e),e)UA4(e);else for(var r in Mx)UA4(r)}; g.sj=function(){return g.uq.ytPubsubPubsubInstance}; UA4=function(e){Mx[e]&&(e=Mx[e],g.FN(e,function(a){m5[a]&&delete m5[a]}),e.length=0)}; g.eb=function(e,a,r){Gtj(e,a,r===void 0?null:r)}; Gtj=function(e,a,r){r=r===void 0?null:r;var P=Emq(typeof e==="string"?e:e.toString()),B=document.getElementById(P),h=B&&W0l(B),c=B&&!h;h?a&&a():(a&&(h=g.jA(P,a),a=""+g.oZ(a),bGT[a]=h),c||(B=tXL(e,P,function(){W0l(B)||(Qzl(B),g.Ku(P),g.Tu(function(){Cxy(P)},0))},r)))}; tXL=function(e,a,r,P){P=P===void 0?null:P;var B=g.U9("SCRIPT");B.id=a;B.onload=function(){r&&setTimeout(r,0)}; B.onreadystatechange=function(){switch(B.readyState){case "loaded":case "complete":B.onload()}}; P&&B.setAttribute("nonce",P);g.gf(B,typeof e==="string"?g.gM(e):e);e=document.getElementsByTagName("head")[0]||document.body;e.insertBefore(B,e.firstChild);return B}; Emq=function(e){var a=document.createElement("a");g.T1(a,e);e=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+LD(e)}; hB=function(e,a){if(e===a)e=!0;else if(Array.isArray(e)&&Array.isArray(a))e=g.sG(e,a,hB);else if(g.hw(e)&&g.hw(a))a:if(g.yI(e).length!=g.yI(a).length)e=!1;else{for(var r in e)if(!hB(e[r],a[r])){e=!1;break a}e=!0}else e=!1;return e}; nh=function(e){var a=g.xN.apply(1,arguments);if(!cC(e)||a.some(function(P){return!cC(P)}))throw Error("Only objects may be merged."); a=g.Z(a);for(var r=a.next();!r.done;r=a.next())oy(e,r.value)}; oy=function(e,a){for(var r in a)if(cC(a[r])){if(r in e&&!cC(e[r]))throw Error("Cannot merge an object into a non-object.");r in e||(e[r]={});oy(e[r],a[r])}else if(y7(a[r])){if(r in e&&!y7(e[r]))throw Error("Cannot merge an array into a non-array.");r in e||(e[r]=[]);gmN(e[r],a[r])}else e[r]=a[r];return e}; gmN=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next())r=r.value,cC(r)?e.push(oy({},r)):y7(r)?e.push(gmN([],r)):e.push(r);return e}; cC=function(e){return typeof e==="object"&&!Array.isArray(e)}; y7=function(e){return typeof e==="object"&&Array.isArray(e)}; To=function(e){g.N.call(this);this.T=e}; Xz=function(e){To.call(this,!0);this.S=e}; fh=function(e,a){g.N.call(this);var r=this;this.B=[];this.D=!1;this.T=0;this.C=this.Z=this.L=!1;this.HW=null;var P=(0,g.yG)(e,a);this.S=new g.vP(function(){return P(r.HW)},300); g.x(this,this.S);this.N=this.Y=Infinity}; ZGI=function(e,a){if(!a)return!1;for(var r=0;r-1)throw Error("Deps cycle for: "+a);if(e.T.has(a))return e.T.get(a);if(!e.S.has(a)){if(P)return;throw Error("No provider for: "+a);}P=e.S.get(a);r.push(a);if(P.yr!==void 0)var B=P.yr;else if(P.H_1)B=P[dl]?Jaz(e,P[dl],r):[],B=P.H_1.apply(P,g.UO(B));else if(P.GM){B=P.GM;var h=B[dl]?Jaz(e,B[dl],r):[];B=new (Function.prototype.bind.apply(B,[null].concat(g.UO(h))))}else throw Error("Could not resolve providers for: "+a);r.pop();P.KCQ||e.T.set(a,B); return B}; Jaz=function(e,a,r){return a?a.map(function(P){return P instanceof Z4?JB(e,P.key,r,!0):JB(e,P,r)}):[]}; V7=function(){D4||(D4=new dA4);return D4}; Q7=function(){var e,a;return"h5vcc"in $r&&((e=$r.h5vcc.traceEvent)==null?0:e.traceBegin)&&((a=$r.h5vcc.traceEvent)==null?0:a.traceEnd)?1:"performance"in $r&&$r.performance.mark&&$r.performance.measure?2:0}; WC=function(e){var a=Q7();switch(a){case 1:$r.h5vcc.traceEvent.traceBegin("YTLR",e);break;case 2:$r.performance.mark(e+"-start");break;case 0:break;default:X8(a,"unknown trace type")}}; DAl=function(e){var a=Q7();switch(a){case 1:$r.h5vcc.traceEvent.traceEnd("YTLR",e);break;case 2:a=e+"-start";var r=e+"-end";$r.performance.mark(r);$r.performance.measure(e,a,r);break;case 0:break;default:X8(a,"unknown trace type")}}; VXN=function(e){var a,r;(r=(a=window).onerror)==null||r.call(a,e.message,"",0,0,e)}; $AL=function(e){var a=this;var r=r===void 0?0:r;var P=P===void 0?g.Fn():P;this.B=r;this.scheduler=P;this.T=new g.fp;this.S=e;for(e={jq:0};e.jq=1E3?B():P>=e?au||(au=rh(function(){B();au=void 0},0)):h-y>=10&&(S73(a,r.tier),c.L=h)}; Ijz=function(e,a){if(e.endpoint==="log_event"){g.CK("more_accurate_gel_parser")&&Sb().storePayload({isJspb:!1},e.payload);mU(e);var r=Fz(e),P=new Map;P.set(r,[e.payload]);var B=znL(e.payload)||"";a&&(Kh=new a);return new g.QM(function(h,c){Kh&&Kh.isReady()?sMN(P,Kh,h,c,{bypassNetworkless:!0},!0,jb(B)):h()})}}; vmz=function(e,a,r){if(a.endpoint==="log_event"){mU(void 0,a);var P=Fz(a,!0),B=new Map;B.set(P,[vS(a.payload)]);r&&(Kh=new r);return new g.QM(function(h){Kh&&Kh.isReady()?mAj(B,Kh,h,{bypassNetworkless:!0},!0,jb(e)):h()})}}; Fz=function(e,a){var r="";if(e.dangerousLogToVisitorSession)r="visitorOnlyApprovedKey";else if(e.cttAuthInfo){if(a===void 0?0:a){a=e.cttAuthInfo.token;r=e.cttAuthInfo;var P=new zt;r.videoId?P.setVideoId(r.videoId):r.playlistId&&C0(P,2,PW,DQ(r.playlistId));BW[a]=P}else a=e.cttAuthInfo,r={},a.videoId?r.videoId=a.videoId:a.playlistId&&(r.playlistId=a.playlistId),hp[e.cttAuthInfo.token]=r;r=e.cttAuthInfo.token}return r}; uh=function(e,a,r){e=e===void 0?{}:e;a=a===void 0?!1:a;new g.QM(function(P,B){var h=es(a,r),c=h.B;h.B=!1;cW(h.T);cW(h.S);h.S=0;Kh&&Kh.isReady()?r===void 0&&g.CK("enable_web_tiered_gel")?FVL(P,B,e,a,300,c):FVL(P,B,e,a,r,c):(S73(a,r),P())})}; FVL=function(e,a,r,P,B,h){var c=Kh;r=r===void 0?{}:r;P=P===void 0?!1:P;B=B===void 0?200:B;h=h===void 0?!1:h;var y=new Map,T=new Map,X={isJspb:P,cttAuthInfo:void 0,tier:B},f={isJspb:P,cttAuthInfo:void 0};if(P){a=g.Z(Object.keys(M8));for(B=a.next();!B.done;B=a.next())B=B.value,T=g.CK("enable_web_tiered_gel")?Sb().smartExtractMatchingEntries({keys:[X,f],sizeLimit:1E3}):Sb().extractMatchingEntries({isJspb:!0,cttAuthInfo:B}),T.length>0&&y.set(B,T),(g.CK("web_fp_via_jspb_and_json")&&r.writeThenSend||!g.CK("web_fp_via_jspb_and_json"))&& delete M8[B];mAj(y,c,e,r,!1,h)}else{y=g.Z(Object.keys(M8));for(X=y.next();!X.done;X=y.next())X=X.value,f=g.CK("enable_web_tiered_gel")?Sb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:X,tier:B},{isJspb:!1,cttAuthInfo:X}],sizeLimit:1E3}):Sb().extractMatchingEntries({isJspb:!1,cttAuthInfo:X}),f.length>0&&T.set(X,f),(g.CK("web_fp_via_jspb_and_json")&&r.writeThenSend||!g.CK("web_fp_via_jspb_and_json"))&&delete M8[X];sMN(T,c,e,a,r,!1,h)}}; S73=function(e,a){function r(){uh({writeThenSend:!0},e,a)} e=e===void 0?!1:e;a=a===void 0?200:a;var P=es(e,a),B=P===MXj||P===jM4?5E3:uvy;g.CK("web_gel_timeout_cap")&&!P.S&&(B=rh(function(){r()},B),P.S=B); cW(P.T);B=g.IM("LOGGING_BATCH_TIMEOUT",g.Gu("web_gel_debounce_ms",1E4));g.CK("shorten_initial_gel_batch_timeout")&&ou&&(B=KV3);B=rh(function(){g.Gu("gel_min_batch_size")>0?Sb().getSequenceCount({cttAuthInfo:void 0,isJspb:e,tier:a})>=e_O&&r():r()},B); P.T=B}; sMN=function(e,a,r,P,B,h,c){B=B===void 0?{}:B;var y=Math.round((0,g.Ov)()),T=e.size,X=a7L(c);e=g.Z(e);var f=e.next();for(c={};!f.done;c={dX:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Ui:void 0,iR:void 0},f=e.next()){var A=g.Z(f.value);f=A.next().value;A=A.next().value;c.batchRequest=g.EH({context:g.nu(a.config_||g.cN())});if(!g.BB(A)&&!g.CK("throw_err_when_logevent_malformed_killswitch")){P();break}c.batchRequest.events=A;(A=hp[f])&&rlN(c.batchRequest,f,A);delete hp[f];c.dangerousLogToVisitorSession= f==="visitorOnlyApprovedKey";Pey(c.batchRequest,y,c.dangerousLogToVisitorSession);Bej(B);c.Ui=function(U){g.CK("start_client_gcf")&&g.i9.xL(function(){return g.Y(function(C){return g.l(C,h_q(U),0)})}); T--;T||r()}; c.dX=0;c.iR=function(U){return function(){U.dX++;if(B.bypassNetworkless&&U.dX===1)try{g.SA(a,X,U.batchRequest,n4({writeThenSend:!0},U.dangerousLogToVisitorSession,U.Ui,U.iR,h)),ou=!1}catch(C){g.SX(C),P()}T--;T||r()}}(c); try{g.SA(a,X,c.batchRequest,n4(B,c.dangerousLogToVisitorSession,c.Ui,c.iR,h)),ou=!1}catch(U){g.SX(U),P()}}}; mAj=function(e,a,r,P,B,h){P=P===void 0?{}:P;var c=Math.round((0,g.Ov)()),y={value:e.size},T=new Map([].concat(g.UO(e)));T=g.Z(T);for(var X=T.next();!X.done;X=T.next()){var f=g.Z(X.value).next().value,A=e.get(f);X=new iNq;var U=a.config_||g.cN(),C=new lx,G=new dM;i5(G,1,U.yq);i5(G,2,U.GS);NX(G,16,U.Xm);i5(G,17,U.innertubeContextClientVersion);if(U.j3){var O=U.j3,d=new O7;O.coldConfigData&&i5(d,1,O.coldConfigData);O.appInstallData&&i5(d,6,O.appInstallData);O.coldHashData&&i5(d,3,O.coldHashData);O.hotHashData&& d.Ke(O.hotHashData);D$(G,O7,62,d)}(O=g.uq.devicePixelRatio)&&O!=1&&rN(G,65,TP(O));O=EP();O!==""&&i5(G,54,O);O=be();if(O.length>0){d=new Ve;for(var W=0;W65535&&(e=1);xm("BATCH_CLIENT_COUNTER",e);return e}; rlN=function(e,a,r){if(r.videoId)var P="VIDEO";else if(r.playlistId)P="PLAYLIST";else return;e.credentialTransferTokenTargetId=r;e.context=e.context||{};e.context.user=e.context.user||{};e.context.user.credentialTransferTokens=[{token:a,scope:P}]}; mU=function(e,a){var r=g.aZ("yt.logging.transport.enableScrapingForTest"),P=UP("il_payload_scraping");P=(P!==void 0?String(P):"")==="enable_il_payload_scraping";if(!r)if(P)X_=[],g.KL("yt.logging.transport.enableScrapingForTest",!0),g.KL("yt.logging.transport.scrapedPayloadsForTesting",X_),g.KL("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.KL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.KL("yt.logging.transport.scrapeClientEvent",!0);else return;r=g.aZ("yt.logging.transport.scrapedPayloadsForTesting");P=g.aZ("yt.logging.transport.payloadToScrape");a&&(a=a.payload,(a=g.aZ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(a)())&&r.push(a));a=g.aZ("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var B=0;B0&&DrI(e,a,h)}else DrI(e,a)}; DrI=function(e,a,r){e=Vwy(e);a=a?g.GS(a):"";r=r||5;jw()&&g.Wf(e,a,r)}; Vwy=function(e){for(var a=g.Z($ry),r=a.next();!r.done;r=a.next())e=kX(e,r.value);return"ST-"+LD(e).toString(36)}; Qfl=function(e){if(e.name==="JavaException")return!0;e=e.stack;return e.includes("chrome://")||e.includes("-extension://")||e.includes("webkit-masked-url://")}; Wpq=function(e){if(!e.stack)return!0;var a=!e.stack.includes("\n");return a&&e.stack.includes("ErrorType: ")||a&&e.stack.includes("Anonymous function (Unknown script")||e.stack.toLowerCase()==="not available"||e.fileName==="user-script"||e.fileName.startsWith("user-script:")?!0:!1}; l74=function(){this.Tp=[];this.YX=[]}; Or=function(){if(!Z6){var e=Z6=new l74;e.YX.length=0;e.Tp.length=0;Lp3(e,YPy)}return Z6}; Lp3=function(e,a){a.YX&&e.YX.push.apply(e.YX,a.YX);a.Tp&&e.Tp.push.apply(e.Tp,a.Tp)}; wfN=function(e){function a(){return e.charCodeAt(P++)} var r=e.length,P=0;do{var B=kZ(a);if(B===Infinity)break;var h=B>>3;switch(B&7){case 0:B=kZ(a);if(h===2)return B;break;case 1:if(h===2)return;P+=8;break;case 2:B=kZ(a);if(h===2)return e.substr(P,B);P+=B;break;case 5:if(h===2)return;P+=4;break;default:return}}while(P500));P++);P=B}else if(typeof e==="object")for(B in e){if(e[B]){var h=B;var c=e[B],y=a,T=r;h=typeof c!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(c=wfN(atob(c.replace(/-/g,"+").replace(/_/g,"/"))))?dh(h+".ve",c,y,T):0;P+=h;P+=dh(B,e[B],a,r);if(P>500)break}}else r[a]=Jp(e),P+=r[a].length;else r[a]=Jp(e),P+=r[a].length;return P}; dh=function(e,a,r,P){r+="."+e;e=Jp(a);P[r]=e;return r.length+e.length}; Jp=function(e){try{return(typeof e==="string"?e:String(JSON.stringify(e))).substr(0,500)}catch(a){return"unable to serialize "+typeof e+" ("+a.message+")"}}; PU=function(e){g.D6(e)}; g.VJ=function(e){g.D6(e,"WARNING")}; g.D6=function(e,a){var r=r===void 0?{}:r;r.name=g.IM("INNERTUBE_CONTEXT_CLIENT_NAME",1);r.version=g.IM("INNERTUBE_CONTEXT_CLIENT_VERSION");a=a===void 0?"ERROR":a;var P=!1;a=a===void 0?"ERROR":a;P=P===void 0?!1:P;if(e){e.hasOwnProperty("level")&&e.level&&(a=e.level);if(g.CK("console_log_js_exceptions")){var B=[];B.push("Name: "+e.name);B.push("Message: "+e.message);e.hasOwnProperty("params")&&B.push("Error Params: "+JSON.stringify(e.params));e.hasOwnProperty("args")&&B.push("Error args: "+JSON.stringify(e.args)); B.push("File name: "+e.fileName);B.push("Stacktrace: "+e.stack);window.console.log(B.join("\n"),e)}if(!(iKL>=5)){B=[];for(var h=g.Z(z_L),c=h.next();!c.done;c=h.next()){c=c.value;try{c()&&B.push(c())}catch(O){}}B=[].concat(g.UO(NeN),g.UO(B));var y=h8y(e);h=y.message||"Unknown Error";c=y.name||"UnknownError";var T=y.stack||e.T||"Not available";if(T.startsWith(c+": "+h)){var X=T.split("\n");X.shift();T=X.join("\n")}X=y.lineNumber||"Not available";y=y.fileName||"Not available";var f=0;if(e.hasOwnProperty("args")&& e.args&&e.args.length)for(var A=0;A=500);A++);else if(e.hasOwnProperty("params")&&e.params){var U=e.params;if(typeof e.params==="object")for(A in U){if(U[A]){var C="params."+A,G=Jp(U[A]);r[C]=G;f+=C.length+G.length;if(f>500)break}}else r.params=Jp(U)}if(B.length)for(A=0;A=500);A++);navigator.vendor&&!r.hasOwnProperty("vendor")&&(r["device.vendor"]=navigator.vendor);r={message:h,name:c,lineNumber:X, fileName:y,stack:T,params:r,sampleWeight:1};A=Number(e.columnNumber);isNaN(A)||(r.lineNumber=r.lineNumber+":"+A);if(e.level==="IGNORED")e=0;else a:{e=Or();A=g.Z(e.YX);for(B=A.next();!B.done;B=A.next())if(B=B.value,r.message&&r.message.match(B.d_)){e=B.weight;break a}e=g.Z(e.Tp);for(A=e.next();!A.done;A=e.next())if(A=A.value,A.callback(r)){e=A.weight;break a}e=1}r.sampleWeight=e;e=g.Z(xrL);for(A=e.next();!A.done;A=e.next())if(A=A.value,A.To[r.name])for(h=g.Z(A.To[r.name]),B=h.next();!B.done;B=h.next())if(c= B.value,B=r.message.match(c.Jj)){r.params["params.error.original"]=B[0];h=c.groups;c={};for(X=0;X1E3&&g.VJ(new g.I6("IL Attach cache exceeded limit"))}y= Iu(r,a);p4.has(y)?HW(r,a):zG.set(y,!0)}}P=P.filter(function(f){f.csn!==a?(f.csn=a,f=!0):f=!1;return f}); r={csn:a,parentVe:r.getAsJson(),childVes:g.ba(P,function(f){return f.getAsJson()})}; a==="UNDEFINED_CSN"?q9("visualElementAttached",h,r):e?Ap("visualElementAttached",r,e,h):g.BU("visualElementAttached",r,h)}; a1L=function(e,a,r,P,B){vW(r,a);P=wh({cttAuthInfo:tp(a)||void 0},a);r={csn:a,ve:r.getAsJson(),eventType:1};B&&(r.clientData=B);a==="UNDEFINED_CSN"?q9("visualElementShown",P,r):e?Ap("visualElementShown",r,e,P):g.BU("visualElementShown",r,P)}; rJJ=function(e,a,r,P){var B=(P=P===void 0?!1:P)?16:8;P=wh({cttAuthInfo:tp(a)||void 0,endOfSequence:P},a);r={csn:a,ve:r.getAsJson(),eventType:B};a==="UNDEFINED_CSN"?q9("visualElementHidden",P,r):e?Ap("visualElementHidden",r,e,P):g.BU("visualElementHidden",r,P)}; Ru=function(e,a,r,P,B){PQ4(e,a,r,void 0,P,B)}; PQ4=function(e,a,r,P,B){vW(r,a);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=wh({cttAuthInfo:tp(a)||void 0},a);r={csn:a,ve:r.getAsJson(),gestureType:P};B&&(r.clientData=B);a==="UNDEFINED_CSN"?q9("visualElementGestured",h,r):e?Ap("visualElementGestured",r,e,h):g.BU("visualElementGestured",r,h)}; Bu3=function(){var e=U3(16);for(var a=[],r=0;r0&&r.push(g.U9("BR"));r.push(g.CO(h))}):r.push(g.CO(P))}return r}; h_=function(e,a,r,P){if(r==="child"){g.E9(a);var B;P===void 0?B=void 0:B=!Array.isArray(P)||P&&typeof P.K==="string"?[P]:P;r=cJI(e,B);r=g.Z(r);for(e=r.next();!e.done;e=r.next())a.appendChild(e.value)}else r==="style"?g.vo(a,"cssText",P?P:""):P===null||P===void 0?a.removeAttribute(r):(e=P.toString(),r==="href"&&(e=g.BR(g.oD(e))),a.setAttribute(r,e))}; g.v=function(e){g.Ps.call(this,e);this.oD=!0;this.C=!1;this.listeners=[]}; g.cs=function(e){g.v.call(this,e);this.ym=new g.aK;g.x(this,this.ym)}; oK=function(e,a,r,P,B,h,c){c=c===void 0?null:c;g.cs.call(this,a);this.api=e;this.macros={};this.componentType=r;this.D=this.Y=null;this.HA=c;this.layoutId=P;this.interactionLoggingClientData=B;this.dP=h;this.GQ=null;this.wA=new Xz(this.element);g.x(this,this.wA);this.rP=this.j(this.element,"click",this.onClick);this.Eo=[];this.TQ=new fh(this.onClick,this);g.x(this,this.TQ);this.bv=!1;this.Cf=this.HW=null}; nB=function(e,a){e=e===void 0?null:e;a=a===void 0?null:a;if(e==null)return g.VJ(Error("Got null or undefined adText object")),"";var r=g.lF(e.text);if(!e.isTemplated)return r;if(a==null)return g.VJ(Error("Missing required parameters for a templated message")),r;e=g.Z(Object.entries(a));for(a=e.next();!a.done;a=e.next()){var P=g.Z(a.value);a=P.next().value;P=P.next().value;r=r.replace("{"+a+"}",P)}return r}; ofj=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].url!=null)?g.lF(e.thumbnails[0].url):""}; nfq=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].width!=null&&e.thumbnails[0].height!=null)?new g.Sr(e.thumbnails[0].width||0,e.thumbnails[0].height||0):new g.Sr(0,0)}; g.yd=function(e){if(e.simpleText)return e.simpleText;if(e.runs){var a=[];e=g.Z(e.runs);for(var r=e.next();!r.done;r=e.next())r=r.value,r.text&&a.push(r.text);return a.join("")}return""}; g.TK=function(e){if(e.simpleText)return e=document.createTextNode(e.simpleText),e;var a=[];if(e.runs)for(var r=0;r1){for(var a=[e[0]],r=1;r0&&(this.S=new g.vP(this.Ys,a,this),g.x(this,this.S));this.C=new g.vP(this.Ys,r,this);g.x(this,this.C);this.Y=DqT(this.T,B,1,P);g.x(this,this.Y);this.D=DqT(this.T,0,P,1);g.x(this,this.D);this.L=new Ou;g.x(this,this.L)}; PK=function(e,a,r){this.T=e;this.isAsync=a;this.S=r}; eXI=function(e){switch(e){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:X8(e,"unknown result type")}}; aII=function(e,a){var r=1;e.isTrusted===!1&&(r=0);xm("ISDSTAT",r);BK(r,"i.s_",{triggerContext:"sk",metadata:a});return r}; r74=function(e,a){var r=[];a?a.isTrusted===!0?r.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):a.isTrusted===!1?r.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):r.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):r.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");BK(0,"a.s_",{metadata:e,states:r});xm("ASDSTAT",0)}; BK=function(e,a,r){a=PkT[a];var P,B,h={detected:e===0,source:""+a.T+((P=r.triggerContext)!=null?P:"")+((B=r.o6)!=null?B:""),detectionStates:r.states,durationMs:r.HN};r.metadata&&(h.contentCpn=r.metadata.contentCpn,h.adCpn=r.metadata.adCpn);g.BU("biscottiBasedDetection",h);a.S!==void 0&&(r=Number(g.IM("CATSTAT",0)),a.S!==void 0?(a=a.S,e=eXI(e),e=r&~(3<0}; X5=function(e,a,r,P,B,h){mq.call(this,e,{K:"div",U:"ytp-ad-skip-button-slot"},"skip-button",a,r,P,B);var c=this;this.oH=null;this.Lf=!1;this.Uo=h;this.Z=this.api.G().experiments.FM("enable_modern_skip_button_on_web");this.PW=!1;this.L=new g.cs({K:"span",WW:["ytp-ad-skip-button-container"]});this.Z&&this.L.element.classList.add("ytp-ad-skip-button-container-detached");g.x(this,this.L);this.L.Kf(this.element);this.T=this.B=null;this.k$=new g.jq(this.L,500,!1,100,function(){return c.hide()}); g.x(this,this.k$);this.e1=new rG(this.L.element,15E3,5E3,.5,.5,this.Z);g.x(this,this.e1);this.hide()}; hXO=function(e){e=e.oH&&e.oH.adRendererCommands;return(e&&e.clickCommand&&g.H(e.clickCommand,g.f$)&&g.H(e.clickCommand,g.f$).commands||[]).some(function(a){return a.adLifecycleCommand?B1N(a.adLifecycleCommand):!1})}; B1N=function(e){return e.action==="END_LINEAR_AD"||e.action==="END_LINEAR_AD_PLACEMENT"}; Ax=function(e,a,r,P,B,h){mq.call(this,e,{K:"div",U:"ytp-ad-skip-ad-slot"},"skip-ad",a,r,P,B);this.oH=h;this.L=!1;this.Z=0;this.B=this.T=null;this.hide()}; c74=function(e,a){e.L||(e.L=!0,e.T&&(a?e.T.oH.hide():e.T.hide()),a?(e=e.B,e.k$.show(),e.show()):e.B.show())}; UK=function(e,a,r,P){Vd.call(this,e,a,r,P,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; C$=function(e,a,r,P,B,h,c){h=h===void 0?!1:h;c=c===void 0?!1:c;oK.call(this,e,{K:"span",U:"ytp-ad-simple-ad-badge"},"simple-ad-badge",a,r,P);this.B=B;this.S=this.BW("ytp-ad-simple-ad-badge");(this.T=h)&&this.S.classList.add("ytp-ad-simple-ad-badge--clean-player");c&&this.S.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; GH=function(e,a,r,P,B){B=B===void 0?!1:B;eq.call(this,"player-overlay",e,{},a,P);this.videoAdDurationSeconds=r;this.interactionLoggingClientData=P;this.T9=B}; EK=function(e,a){g.aK.call(this);this.api=e;this.durationMs=a;this.S=null;this.oO=new Ou(this);g.x(this,this.oO);this.T=ohJ;this.oO.j(this.api,"presentingplayerstatechange",this.ww);this.S=this.oO.j(this.api,"onAdPlaybackProgress",this.j5)}; bG=function(e){g.aK.call(this);this.S=!1;this.T0=0;this.oO=new Ou(this);g.x(this,this.oO);this.durationMs=e;this.timer=new g.iE(100);g.x(this,this.timer);this.oO.j(this.timer,"tick",this.j5);this.T={seekableStart:0,seekableEnd:e/1E3,current:0};this.start()}; g.tx=function(e,a){var r=Math.abs(Math.floor(e)),P=Math.floor(r/86400),B=Math.floor(r%86400/3600),h=Math.floor(r%3600/60);r=Math.floor(r%60);if(a){a="";P>0&&(a+=" "+P+" Days");if(P>0||B>0)a+=" "+B+" Hours";a+=" "+h+" Minutes";a+=" "+r+" Seconds";P=a.trim()}else{a="";P>0&&(a+=P+":",B<10&&(a+="0"));if(P>0||B>0)a+=B+":",h<10&&(a+="0");a+=h+":";r<10&&(a+="0");P=a+r}return e>=0?P:"-"+P}; g.gG=function(e){return(!("button"in e)||typeof e.button!=="number"||e.button===0)&&!("shiftKey"in e&&e.shiftKey)&&!("altKey"in e&&e.altKey)&&!("metaKey"in e&&e.metaKey)&&!("ctrlKey"in e&&e.ctrlKey)}; Zu=function(e,a,r,P,B,h,c){mq.call(this,e,{K:"span",U:c?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",a,r,P,B);this.videoAdDurationSeconds=h;this.T=null;c&&this.api.G().T&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),HU&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; OK=function(e,a,r,P){Sq.call(this,e,a,r,P,"ytp-video-ad-top-bar-title","ad-title")}; kg=function(e){this.content=e.content;if(e.commandRuns){e=g.Z(e.commandRuns);for(var a=e.next();!a.done;a=e.next())a=a.value,this.loggingDirectives=g.H(a,nhL),a.onTap&&(this.interaction={onTap:a.onTap})}}; dG=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ad-simple-attributed-string"},"ad-simple-attributed-string",a,r,P);this.hide()}; Jx=function(e,a,r,P,B){oK.call(this,e,{K:"span",U:B?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",a,r,P);this.T=B;this.adBadgeText=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);this.adBadgeText.Kf(this.element);g.x(this,this.adBadgeText);B?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),HU&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Du=function(e,a,r,P){oK.call(this,e,{K:"span",U:"ytp-ad-pod-index"},"ad-pod-index",a,r,P);this.api.G().T&&(this.element.classList.add("ytp-ad-pod-index--mweb"),HU&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; VW=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",a,r,P);this.hide()}; $g=function(e,a){this.T=e;this.S=a}; y7z=function(e,a){return e.T+a*(e.S-e.T)}; QW=function(e,a,r){return e.S-e.T?g.ID((a-e.T)/(e.S-e.T),0,1):r!=null?r:Infinity}; WK=function(e,a,r,P){P=P===void 0?!1:P;g.cs.call(this,{K:"div",U:"ytp-ad-persistent-progress-bar-container",V:[{K:"div",U:"ytp-ad-persistent-progress-bar"}]});this.api=e;this.T=a;this.B=r;P&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.x(this,this.T);this.progressBar=this.BW("ytp-ad-persistent-progress-bar");this.S=-1;this.j(e,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; lG=function(e,a,r,P,B,h){oK.call(this,e,{K:"div",U:"ytp-ad-player-overlay",V:[{K:"div",U:"ytp-ad-player-overlay-flyout-cta"},{K:"div",U:"ytp-ad-player-overlay-instream-info"},{K:"div",U:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",U:"ytp-ad-player-overlay-progress-bar"},{K:"div",U:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",U:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",a,r,P);this.N=h;this.Z=this.BW("ytp-ad-player-overlay-flyout-cta");this.Z.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.S=this.BW("ytp-ad-player-overlay-instream-info");this.L=null;T1I(this)&&(e=A5("div"),g.rr(e,"ytp-ad-player-overlay-top-bar-gradients"),a=this.S,a.parentNode&&a.parentNode.insertBefore(e,a),(a=this.api.getVideoData(2))&&a.isListed&&a.title&&(r=new OK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),r.Kf(e),r.init(K4("ad-title"),{text:a.title},this.macros),g.x(this,r)),this.L=e);this.B=null;this.XM=this.BW("ytp-ad-player-overlay-skip-or-preview");this.e1=this.BW("ytp-ad-player-overlay-progress-bar"); this.Lf=this.BW("ytp-ad-player-overlay-instream-user-sentiment");this.oH=this.BW("ytp-ad-player-overlay-ad-disclosure-banner");this.T=B;g.x(this,this.T);this.hide()}; T1I=function(e){e=e.api.G();return g.L$(e)&&e.T}; g.Yg=function(e){e&=16777215;var a=[(e&16711680)>>16,(e&65280)>>8,e&255];e=a[0];var r=a[1];a=a[2];e=Number(e);r=Number(r);a=Number(a);if(e!=(e&255)||r!=(r&255)||a!=(a&255))throw Error('"('+e+","+r+","+a+'") is not a valid RGB color');r=e<<16|r<<8|a;return e<16?"#"+(16777216|r).toString(16).slice(1):"#"+r.toString(16)}; g.wG=function(){}; fIL=function(e){var a=new Tp;var r=new yk;r=i5(r,1,"botguard");e=i5(r,2,e);this.S=YZl(a,yk,1,XUj,e)}; p$=function(e){this.S=new Ji(e)}; A7q=function(){var e=!1;try{e=!!window.sessionStorage.getItem("session_logininfo")}catch(a){e=!0}return(g.IM("INNERTUBE_CLIENT_NAME")==="WEB"||g.IM("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&e}; iG=function(){var e=e===void 0?!0:e;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");xm("LOGIN_INFO","");e&&window.sessionStorage.setItem("from_switch_account","1");e=!0;e=e===void 0?!1:e;var a,r=UUJ;r||(r=document.querySelector("#persist_identity"));if(a=r){var P=a.src?(new URL(a.src)).origin:"*";if(e){var B;(B=a.contentWindow)==null||B.postMessage({action:"clear"},P)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var h=window.sessionStorage.getItem("session_logininfo");if(h){var c;(c=a.contentWindow)==null||c.postMessage({loginInfo:h},P)}}}}catch(y){}}; zH=function(e){e&&(e.startsWith("https://accounts.google.com/AddSession")?iG():e.startsWith("https://accounts.google.com/ServiceLogin")?iG():e.startsWith("https://myaccount.google.com")&&g.Xu(e).T.endsWith("/youtubeoptions")&&iG());if(g.IM("LOGGED_IN",!0)&&A7q()){var a=g.IM("VALID_SESSION_TEMPDATA_DOMAINS",[]);var r=g.TS(window.location.href);r&&a.push(r);r=g.TS(e);g.ZB(a,r)||!r&&QI(e,"/")?(a=fa(e),(a=IFO(a))?(a=Vwy(a),a=(a=g.le(a)||null)?jX(a):{}):a=null):a=null;a==null&&(a={});r=a;var P=void 0; A7q()?(P||(P=g.IM("LOGIN_INFO")),P?(r.session_logininfo=P,r=!0):r=!1):r=!1;r&&gh(e,a)}}; g.Ckq=function(e){var a=a===void 0?{}:a;var r=r===void 0?"":r;var P=P===void 0?window:P;e=g.EW(e,a);zH(e);r=g.oD(e+r);P=P.location;r=yC(r);r!==void 0&&(P.href=r)}; g.Nd=function(e,a,r){a=a===void 0?{}:a;r=r===void 0?!1:r;var P=g.IM("EVENT_ID");P&&(a.ei||(a.ei=P));a&&gh(e,a);r||(zH(e),g.Ckq(e))}; g.xg=function(e,a,r,P,B){B=B===void 0?!1:B;r&&gh(e,r);r=g.oD(e);var h=g.BR(r);e!=h&&mV(Error("Unsafe window.open URL: "+e));e=h;a=a||LD(e).toString(36);try{if(B)return B=e,B=hnL(B),zH(B),g.CD(window,B,a,"attributionsrc")}catch(c){g.SX(c)}zH(e);return g.CD(window,r,a,P)}; GEN=function(e){I9=e}; Ehy=function(e){HK=e}; blI=function(e){qd=e}; ghI=function(){tVy=qd=HK=I9=null}; Oly=function(){var e=e===void 0?window.location.href:e;if(g.CK("kevlar_disable_theme_param"))return null;var a=Xd(e);if(g.CK("enable_dark_theme_only_on_shorts")&&a!=null&&a.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var r=g.KG(e).theme;return Zlz.get(r)||null}catch(P){}return null}; vK=function(){this.S={};if(this.T=f_q()){var e=g.le("CONSISTENCY");e&&kEz(this,{encryptedTokenJarContents:e})}}; kEz=function(e,a){if(a.encryptedTokenJarContents&&(e.S[a.encryptedTokenJarContents]=a,typeof a.expirationSeconds==="string")){var r=Number(a.expirationSeconds);setTimeout(function(){delete e.S[a.encryptedTokenJarContents]},r*1E3); e.T&&g.Wf("CONSISTENCY",a.encryptedTokenJarContents,r,void 0,!0)}}; SW=function(){this.T=-1;var e=g.IM("LOCATION_PLAYABILITY_TOKEN");g.IM("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=R9(this))&&(e=this.localStorage.get("yt-location-playability-token"));e&&(this.locationPlayabilityToken=e,this.S=void 0)}; R9=function(e){return e.localStorage===void 0?new uQ("yt-client-location"):e.localStorage}; g.sK=function(e,a,r){a=a===void 0?!1:a;r=r===void 0?!1:r;var P=g.IM("INNERTUBE_CONTEXT");if(!P)return g.D6(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};P=g.EH(P);g.CK("web_no_tracking_params_in_shell_killswitch")||delete P.clickTracking;P.client||(P.client={});var B=P.client;B.clientName==="MWEB"&&B.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(B.clientFormFactor=g.IM("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");B.screenWidthPoints=window.innerWidth;B.screenHeightPoints= window.innerHeight;B.screenPixelDensity=Math.round(window.devicePixelRatio||1);B.screenDensityFloat=window.devicePixelRatio||1;B.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var h=h===void 0?!1:h;g.wu();var c="USER_INTERFACE_THEME_LIGHT";g.pE(0,165)?c="USER_INTERFACE_THEME_DARK":g.pE(0,174)?c="USER_INTERFACE_THEME_LIGHT":!g.CK("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (c="USER_INTERFACE_THEME_DARK");h=h?c:Oly()||c;B.userInterfaceTheme=h;if(!a){if(h=uDq())B.connectionType=h;g.CK("web_log_effective_connection_type")&&(h=etN())&&(P.client.effectiveConnectionType=h)}var y;if(g.CK("web_log_memory_total_kbytes")&&((y=g.uq.navigator)==null?0:y.deviceMemory)){var T;y=(T=g.uq.navigator)==null?void 0:T.deviceMemory;P.client.memoryTotalKbytes=""+y*1E6}g.CK("web_gcf_hashes_innertube")&&(h=ox4())&&(T=h.coldConfigData,y=h.coldHashData,h=h.hotHashData,P.client.configInfo=P.client.configInfo|| {},T&&(P.client.configInfo.coldConfigData=T),y&&(P.client.configInfo.coldHashData=y),h&&(P.client.configInfo.hotHashData=h));T=g.KG(g.uq.location.href);!g.CK("web_populate_internal_geo_killswitch")&&T.internalcountrycode&&(B.internalGeo=T.internalcountrycode);B.clientName==="MWEB"||B.clientName==="WEB"?(B.mainAppWebInfo||(B.mainAppWebInfo={}),B.mainAppWebInfo.graftUrl=g.uq.location.href,g.CK("kevlar_woffle")&&R3J.instance&&(T=R3J.instance,B.mainAppWebInfo.pwaInstallabilityStatus=!T.S&&T.T?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),B.mainAppWebInfo.webDisplayMode=lQ(),B.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):B.clientName==="TVHTML5"&&(!g.CK("web_lr_app_quality_killswitch")&&(T=g.IM("LIVING_ROOM_APP_QUALITY"))&&(B.tvAppInfo=Object.assign(B.tvAppInfo||{},{appQuality:T})),T=g.IM("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(B.tvAppInfo=Object.assign(B.tvAppInfo||{},{certificationScope:T}));if(!g.CK("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var X=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(z){}X=void 0}X&&(B.timeZone=X)}(X=EP())?B.experimentsToken=X:delete B.experimentsToken;X=be();vK.instance||(vK.instance=new vK);P.request=Object.assign({},P.request,{internalExperimentFlags:X,consistencyTokenJars:hk(vK.instance.S)});!g.CK("web_prequest_context_killswitch")&&(X=g.IM("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(P.request.externalPrequestContext=X);B=g.wu();X=g.pE(0,58);B=B.get("gsml","");P.user=Object.assign({}, P.user);X&&(P.user.enableSafetyMode=X);B&&(P.user.lockedSafetyMode=!0);g.CK("warm_op_csn_cleanup")?r&&(a=g.bs())&&(P.clientScreenNonce=a):!a&&(a=g.bs())&&(P.clientScreenNonce=a);e&&(P.clickTracking={clickTrackingParams:e});if(e=g.aZ("yt.mdx.remote.remoteClient_"))P.remoteClient=e;SW.getInstance().setLocationOnInnerTubeContext(P);try{var f=of(),A=f.bid;delete f.bid;P.adSignalsInfo={params:[],bid:A};for(var U=g.Z(Object.entries(f)),C=U.next();!C.done;C=U.next()){var G=g.Z(C.value),O=G.next().value, d=G.next().value;f=O;A=d;e=void 0;(e=P.adSignalsInfo.params)==null||e.push({key:f,value:""+A})}var W,V;if(((W=P.client)==null?void 0:W.clientName)==="TVHTML5"||((V=P.client)==null?void 0:V.clientName)==="TVHTML5_UNPLUGGED"){var L=g.IM("INNERTUBE_CONTEXT");L.adSignalsInfo&&(P.adSignalsInfo.advertisingId=L.adSignalsInfo.advertisingId,P.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",P.adSignalsInfo.limitAdTracking=L.adSignalsInfo.limitAdTracking)}}catch(z){g.D6(z)}return P}; DUz=function(e,a){if(!e)return!1;var r,P=(r=g.H(e,dU4))==null?void 0:r.signal;if(P&&a.Bx)return!!a.Bx[P];var B;if((r=(B=g.H(e,J7j))==null?void 0:B.request)&&a.sS)return!!a.sS[r];for(var h in e)if(a.j7[h])return!0;return!1}; VV4=function(e){var a={"Content-Type":"application/json"};g.IM("EOM_VISITOR_DATA")?a["X-Goog-EOM-Visitor-Id"]=g.IM("EOM_VISITOR_DATA"):g.IM("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.IM("VISITOR_DATA"));a["X-Youtube-Bootstrap-Logged-In"]=g.IM("LOGGED_IN",!1);g.IM("DEBUG_SETTINGS_METADATA")&&(a["X-Debug-Settings-Metadata"]=g.IM("DEBUG_SETTINGS_METADATA"));e!=="cors"&&((e=g.IM("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=e),(e=g.IM("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]= e),(e=g.IM("CHROME_CONNECTED_HEADER"))&&(a["X-Youtube-Chrome-Connected"]=e),(e=g.IM("DOMAIN_ADMIN_STATE"))&&(a["X-Youtube-Domain-Admin-State"]=e),g.IM("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(e=g.IM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(a["X-YouTube-Lava-Device-Context"]=e));return a}; $Uy=function(){this.S={}}; m9=function(){this.mappings=new $Uy}; F5=function(e){return function(){return new e}}; WQl=function(e){var a=a===void 0?"UNKNOWN_INTERFACE":a;if(e.length===1)return e[0];var r=Qqy[a];if(r){r=new RegExp(r);for(var P=g.Z(e),B=P.next();!B.done;B=P.next())if(B=B.value,r.exec(B))return B}var h=[];Object.entries(Qqy).forEach(function(c){var y=g.Z(c);c=y.next().value;y=y.next().value;a!==c&&h.push(y)}); r=new RegExp(h.join("|"));e.sort(function(c,y){return c.length-y.length}); P=g.Z(e);for(B=P.next();!B.done;B=P.next())if(B=B.value,!r.exec(B))return B;return e[0]}; g.Md=function(e){return"/youtubei/v1/"+WQl(e)}; jW=function(){}; uG=function(){}; K$=function(){}; em=function(e){return g.aZ("ytcsi."+(e||"")+"data_")||lIJ(e)}; LQN=function(){var e=em();e.info||(e.info={});return e.info}; ad=function(e){e=em(e);e.metadata||(e.metadata={});return e.metadata}; rL=function(e){e=em(e);e.tick||(e.tick={});return e.tick}; P3=function(e){e=em(e);if(e.gel){var a=e.gel;a.gelInfos||(a.gelInfos={});a.gelTicks||(a.gelTicks={})}else e.gel={gelTicks:{},gelInfos:{}};return e.gel}; YvL=function(e){e=P3(e);e.gelInfos||(e.gelInfos={});return e.gelInfos}; B3=function(e){var a=em(e).nonce;a||(a=g.Ch(16),em(e).nonce=a);return a}; lIJ=function(e){var a={tick:{},info:{}};g.KL("ytcsi."+(e||"")+"data_",a);return a}; hA=function(){var e=g.aZ("ytcsi.debug");e||(e=[],g.KL("ytcsi.debug",e),g.KL("ytcsi.reference",{}));return e}; c3=function(e){e=e||"";var a=wUy();if(a[e])return a[e];var r=hA(),P={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};r.push(P);return a[e]=P}; pU3=function(e){e=e||"";var a=wUy();a[e]&&delete a[e];var r=hA(),P={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};r.push(P);a[e]=P}; wUy=function(){var e=g.aZ("ytcsi.reference");if(e)return e;hA();return g.aZ("ytcsi.reference")}; od=function(e){return ilz[e]||"LATENCY_ACTION_UNKNOWN"}; n8=function(e,a){T4.call(this,1,arguments);this.timer=a}; yA=function(){this.S=0}; Tm=function(){yA.instance||(yA.instance=new yA);return yA.instance}; f8=function(e,a){Xf[a]=Xf[a]||{count:0};var r=Xf[a];r.count++;r.time=(0,g.Ov)();e.S||(e.S=g.S$(0,function(){var P=(0,g.Ov)(),B;for(B in Xf)Xf[B]&&P-Xf[B].time>6E4&&delete Xf[B];e&&(e.S=0)},5E3)); return r.count>5?(r.count===6&&Math.random()*1E5<1&&(r=new g.I6("CSI data exceeded logging limit with key",a.split("_")),a.indexOf("plev")>=0||g.VJ(r)),!0):!1}; zX4=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; N1J=function(){var e;if(g.CK("csi_use_performance_navigation_timing")){var a,r,P,B=AA==null?void 0:(e=AA.getEntriesByType)==null?void 0:(a=e.call(AA,"navigation"))==null?void 0:(r=a[0])==null?void 0:(P=r.toJSON)==null?void 0:P.call(r);B?(B.requestStart=Ug(B.requestStart),B.responseEnd=Ug(B.responseEnd),B.redirectStart=Ug(B.redirectStart),B.redirectEnd=Ug(B.redirectEnd),B.domainLookupEnd=Ug(B.domainLookupEnd),B.connectStart=Ug(B.connectStart),B.connectEnd=Ug(B.connectEnd),B.responseStart=Ug(B.responseStart), B.secureConnectionStart=Ug(B.secureConnectionStart),B.domainLookupStart=Ug(B.domainLookupStart),B.isPerformanceNavigationTiming=!0,e=B):e=AA.timing}else e=g.CK("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(AA.timing)):AA.timing;return e}; Ug=function(e){return Math.round(C8()+e)}; C8=function(){return(g.CK("csi_use_time_origin")||g.CK("csi_use_time_origin_tvhtml5"))&&AA.timeOrigin?Math.floor(AA.timeOrigin):AA.timing.navigationStart}; Eg=function(e,a){Gm("_start",e,a)}; bI=function(e,a){if(!g.CK("web_csi_action_sampling_enabled")||!em(a).actionDisabled){var r=c3(a||"");nh(r.info,e);e.loadType&&(r=e.loadType,ad(a).loadType=r);nh(YvL(a),e);r=B3(a);a=em(a).cttAuthInfo;Tm().info(e,r,a)}}; xU3=function(){var e,a,r,P;return((P=V7().resolve(O3(BN))==null?void 0:(e=hE())==null?void 0:(a=e.loggingHotConfig)==null?void 0:(r=a.csiConfig)==null?void 0:r.debugTicks)!=null?P:[]).map(function(B){return Object.values(B)[0]})}; Gm=function(e,a,r){if(!g.CK("web_csi_action_sampling_enabled")||!em(r).actionDisabled){var P=B3(r),B;if(B=g.CK("web_csi_debug_sample_enabled")&&P){(V7().resolve(O3(BN))==null?0:hE())&&!IIJ&&(IIJ=!0,Gm("gcfl",(0,g.Ov)(),r));var h,c,y;B=(V7().resolve(O3(BN))==null?void 0:(h=hE())==null?void 0:(c=h.loggingHotConfig)==null?void 0:(y=c.csiConfig)==null?void 0:y.debugSampleWeight)||0;if(h=B!==0)b:{h=xU3();if(h.length>0)for(c=0;cr.duration?P:r},{duration:0}))&&a.startTime>0&&a.responseEnd>0&&(Gm("wffs",Ug(a.startTime)),Gm("wffe",Ug(a.responseEnd)))}; mUO=function(e,a,r){AA&&AA.measure&&(e.startsWith("measure_")||(e="measure_"+e),r?AA.measure(e,a,r):a?AA.measure(e,a):AA.measure(e))}; FQJ=function(e){var a=tA("aft",e);if(a)return a;a=g.IM((e||"")+"TIMING_AFT_KEYS",["ol"]);for(var r=a.length,P=0;P0&&bI(a);a={isNavigation:!0,actionType:od(g.IM("TIMING_ACTION"))};var r=g.IM("PREVIOUS_ACTION");r&&(a.previousAction=od(r));if(r=g.IM("CLIENT_PROTOCOL"))a.httpProtocol=r;if(r=g.IM("CLIENT_TRANSPORT"))a.transportProtocol=r;(r=g.bs())&&r!=="UNDEFINED_CSN"&&(a.clientScreenNonce=r);r=vhJ();if(r===1||r===-1)a.isVisible= !0;r=ad().loadType==="cold";var P=LQN();r||(r=P.yt_lt==="cold");if(r){a.loadType="cold";r=LQN();P=N1J();var B=C8(),h=g.IM("CSI_START_TIMESTAMP_MILLIS",0);h>0&&!g.CK("embeds_web_enable_csi_start_override_killswitch")&&(B=h);B&&(Gm("srt",P.responseStart),r.prerender!==1&&Eg(B));r=uXJ();r>0&&Gm("fpt",r);r=N1J();r.isPerformanceNavigationTiming&&bI({performanceNavigationTiming:!0},void 0);Gm("nreqs",r.requestStart,void 0);Gm("nress",r.responseStart,void 0);Gm("nrese",r.responseEnd,void 0);r.redirectEnd- r.redirectStart>0&&(Gm("nrs",r.redirectStart,void 0),Gm("nre",r.redirectEnd,void 0));r.domainLookupEnd-r.domainLookupStart>0&&(Gm("ndnss",r.domainLookupStart,void 0),Gm("ndnse",r.domainLookupEnd,void 0));r.connectEnd-r.connectStart>0&&(Gm("ntcps",r.connectStart,void 0),Gm("ntcpe",r.connectEnd,void 0));r.secureConnectionStart>=C8()&&r.connectEnd-r.secureConnectionStart>0&&(Gm("nstcps",r.secureConnectionStart,void 0),Gm("ntcpe",r.connectEnd,void 0));AA&&"getEntriesByType"in AA&&sqL();r=[];if(document.querySelector&& AA&&AA.getEntriesByName)for(var c in Og)Og.hasOwnProperty(c)&&(P=Og[c],SvI(c,P)&&r.push(P));if(r.length>0)for(a.resourceInfo=[],c=g.Z(r),r=c.next();!r.done;r=c.next())a.resourceInfo.push({resourceCache:r.value})}bI(a);a=P3();a.preLoggedGelInfos||(a.preLoggedGelInfos=[]);c=a.preLoggedGelInfos;a=YvL();r=void 0;for(P=0;P-1&&(delete $N["@type"],m=$N);O&&e.T.has(O)&&e.T.delete(O);((ea=a.config)==null?0:ea.wGQ)&&dL(a.config.wGQ);if(m||(EG=e.B)==null||!EG.Y9r(a.input,a.uK)){lq.Oo(15);break}return g.l(lq,e.B.piW(a.input,a.uK),16);case 16:m=lq.S;case 15:return G4j(e, m,a),((n5=a.config)==null?0:n5.uEo)&&dL(a.config.uEo),P(),lq.return(m||void 0)}})}; XNz=function(e,a){a:{e=e.Tw;var r,P=(r=g.H(a,dU4))==null?void 0:r.signal;if(P&&e.Bx&&(r=e.Bx[P])){var B=r();break a}var h;if((r=(h=g.H(a,J7j))==null?void 0:h.request)&&e.sS&&(h=e.sS[r])){B=h();break a}for(B in a)if(e.j7[B]&&(a=e.j7[B])){B=a();break a}B=void 0}if(B!==void 0)return Promise.resolve(B)}; AEj=function(e,a,r){var P,B,h,c,y,T,X;return g.Y(function(f){if(f.T==1){h=((P=a)==null?void 0:(B=P.JI)==null?void 0:B.identity)||yr;T=(c=a)==null?void 0:(y=c.JI)==null?void 0:y.sessionIndex;var A=g.lE(e.S.Th(h,{sessionIndex:T}));return g.l(f,A,2)}X=f.S;return f.return(Promise.resolve(Object.assign({},VV4(r),X)))})}; fHJ=function(e,a,r){var P,B=(a==null?void 0:(P=a.JI)==null?void 0:P.identity)||yr,h;a=a==null?void 0:(h=a.JI)==null?void 0:h.sessionIndex;e=e.S.Th(B,{sessionIndex:a});return Object.assign({},VV4(r),e)}; YW=function(){}; wL=function(){}; p8=function(e){this.Z=e}; iI=function(){}; zm=function(){}; NP=function(){}; xW=function(){}; g.Id=function(e,a){var r=g.xN.apply(2,arguments);e=e===void 0?0:e;g.I6.call(this,a,r);this.errorType=e;Object.setPrototypeOf(this,this.constructor.prototype)}; H3=function(e,a,r,P){this.S=e;this.T=a;this.B=r;this.L=P}; bu3=function(e,a,r){if(e.S){var P=Xd(kX(a,"key"))||"/UNKNOWN_PATH";e.S.start(P)}P=r;g.CK("wug_networking_gzip_request")&&(P=z7L(r));var B;return new ((B=e.L)!=null?B:window.Request)(a,P)}; g.v3=function(e,a){if(!qP){var r=V7();kr(r,{OF:tAT,GM:H3});var P={j7:{feedbackEndpoint:F5(iI),modifyChannelNotificationPreferenceEndpoint:F5(zm),playlistEditEndpoint:F5(NP),shareEntityEndpoint:F5(p8),subscribeEndpoint:F5(YW),unsubscribeEndpoint:F5(wL),webPlayerShareEntityServiceEndpoint:F5(xW)}},B=SW.getInstance(),h={};B&&(h.client_location=B);e===void 0&&(e=Smy());a===void 0&&(a=r.resolve(tAT));TAl(P,a,e,h);kr(r,{OF:gMq,yr:W3.instance});qP=r.resolve(gMq)}return qP}; ZuL=function(e){var a=new TY;if(e.interpreterJavascript){var r=$_y(e.interpreterJavascript);r=bF(r).toString();var P=new np;i5(P,6,r);D$(a,np,1,P,mv)}else e.interpreterUrl&&(r=ta(e.interpreterUrl),r=rf(r).toString(),P=new yL,i5(P,4,r),D$(a,yL,2,P,mv));e.interpreterHash&&z5(a,3,e.interpreterHash,mv);e.program&&z5(a,4,e.program,mv);e.globalName&&z5(a,5,e.globalName,mv);e.clientExperimentsStateBlob&&z5(a,7,e.clientExperimentsStateBlob,mv);return a}; Rd=function(e){var a={};e=e.split("&");e=g.Z(e);for(var r=e.next();!r.done;r=e.next())r=r.value.split("="),r.length===2&&(a[r[0]]=r[1]);return a}; Q_l=function(){if(g.CK("bg_st_hr"))return"havuokmhhs-0";var e,a=((e=performance)==null?void 0:e.timeOrigin)||0;return"havuokmhhs-"+Math.floor(a)}; Sm=function(e){this.S=e}; Ou4=function(){return new Promise(function(e){var a=window;a.ntpevasrs!==void 0?e(new Sm(a.ntpevasrs)):(a.ntpqfbel===void 0&&(a.ntpqfbel=[]),a.ntpqfbel.push(function(r){e(new Sm(r))}))})}; JEJ=function(){if(jw()){var e=g.IM("PLAYER_VARS",{});if(g.UH(e,"privembed",!1)!="1"&&!tU4(e)){var a=function(){sg=!0;"google_ad_status"in window?xm("DCLKSTAT",1):xm("DCLKSTAT",2)}; try{g.eb(k4N,a)}catch(r){}dxj.push(g.i9.xL(function(){if(!(sg||"google_ad_status"in window)){try{if(k4N.toString()&&a){var r=""+g.oZ(a),P=bGT[r];P&&g.u4(P)}}catch(B){}sg=!0;xm("DCLKSTAT",3)}},5E3))}}}; mc=function(){var e=Number(g.IM("DCLKSTAT",0));return isNaN(e)?0:e}; uI=function(e,a,r){var P=this;this.network=e;this.options=a;this.T=r;this.S=null;if(a.XJz){var B=new g.fp;this.S=B.promise;g.uq.ytAtRC&&R6(function(){var h,c;return g.Y(function(y){if(y.T==1){if(!g.uq.ytAtRC)return y.return();h=Ff(null);return g.l(y,MP(P,h),2)}c=y.S;g.uq.ytAtRC&&g.uq.ytAtRC(JSON.stringify(c));g.OO(y)})},2); Ou4().then(function(h){var c,y,T,X;return g.Y(function(f){if(f.T==1)return h.bindInnertubeChallengeFetcher(function(A){return MP(P,Ff(A))}),g.l(f,ek(),2); c=f.S;y=h.getLatestChallengeResponse();T=y.challenge;if(!T)throw Error("BGE_MACIL");X={challenge:T,Ej:Rd(T),SK:c,bgChallenge:new TY};B.resolve(X);h.registerChallengeFetchedCallback(function(A){A=A.challenge;if(!A)throw Error("BGE_MACR");A={challenge:A,Ej:Rd(A),SK:c,bgChallenge:new TY};P.S=Promise.resolve(A)}); g.OO(f)})})}else a.preload&&Dxj(this,new Promise(function(h){g.S$(0,function(){h(jm(P))},0)}))}; Ff=function(e){var a={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};e&&(a.interpreterHash=e);return a}; jm=function(e,a){a=a===void 0?0:a;var r,P,B,h,c,y,T,X,f,A,U,C;return g.Y(function(G){switch(G.T){case 1:r=Ff(Cp().S);if(g.CK("att_fet_ks"))return g.kN(G,7),g.l(G,MP(e,r),9);g.kN(G,4);return g.l(G,VAj(e,r),6);case 6:c=G.S;B=c.UdH;h=c.jOz;P=c;g.Dl(G,3);break;case 4:return g.Q3(G),g.VJ(Error("Failed to fetch attestation challenge after "+(a+" attempts; not retrying for 24h."))),K8(e,864E5),G.return({challenge:"",Ej:{},SK:void 0,bgChallenge:void 0});case 9:P=G.S;if(!P)throw Error("Fetching Attestation challenge returned falsy"); if(!P.challenge)throw Error("Missing Attestation challenge");B=P.challenge;h=Rd(B);if("c1a"in h&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Dl(G,3);break;case 7:y=g.Q3(G);g.VJ(y);a++;if(a>=5)return g.VJ(Error("Failed to fetch attestation challenge after "+(a+" attempts; not retrying for 24h."))),K8(e,864E5),G.return({challenge:"",Ej:{},SK:void 0,bgChallenge:void 0});T=1E3*Math.pow(2,a-1)+Math.random()*1E3;return G.return(new Promise(function(O){g.S$(0, function(){O(jm(e,a))},T)})); case 3:X=Number(h.t)||7200;K8(e,X*1E3);f=void 0;if(!("c1a"in h&&P.bgChallenge)){G.Oo(10);break}A=ZuL(P.bgChallenge);g.kN(G,11);return g.l(G,$fz(Cp(),A),13);case 13:g.Dl(G,12);break;case 11:return U=g.Q3(G),g.VJ(U),G.return({challenge:B,Ej:h,SK:f,bgChallenge:A});case 12:return g.kN(G,14),f=new A4({challenge:A,Al:{VL:"aGIf"}}),g.l(G,f.ri,16);case 16:g.Dl(G,10);break;case 14:C=g.Q3(G),g.VJ(C),f=void 0;case 10:return G.return({challenge:B,Ej:h,SK:f,bgChallenge:A})}})}; MP=function(e,a){var r;return g.Y(function(P){r=e.T;if(!r||r.ZY())return P.return(MP(e.network,a));QA("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(B){r.EL("publicytnetworkstatus-online",function(){MP(e.network,a).then(B)})}))})}; $x4=function(e){if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");var a=e.challenge,r=Rd(a);if("c1a"in r&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},e,{UdH:a,jOz:r})}; VAj=function(e,a){var r,P,B,h,c;return g.Y(function(y){switch(y.T){case 1:r=void 0,P=0,B={};case 2:if(!(P<5)){y.Oo(4);break}if(!(P>0)){y.Oo(5);break}B.V9=1E3*Math.pow(2,P-1)+Math.random()*1E3;return g.l(y,new Promise(function(T){return function(X){g.S$(0,function(){X(void 0)},T.V9)}}(B)),5); case 5:return g.kN(y,7),g.l(y,MP(e,a),9);case 9:return h=y.S,y.return($x4(h));case 7:r=c=g.Q3(y),c instanceof Error&&g.VJ(c);case 8:P++;B={V9:void 0};y.Oo(2);break;case 4:throw r;}})}; Dxj=function(e,a){e.S=a}; Qr4=function(e){var a,r,P;return g.Y(function(B){if(B.T==1)return g.l(B,Promise.race([e.S,null]),2);a=B.S;var h=jm(e);e.S=h;(r=a)==null||(P=r.SK)==null||P.dispose();g.OO(B)})}; K8=function(e,a){function r(){var B;return g.Y(function(h){B=P-Date.now();return B<1E3?g.l(h,Qr4(e),0):(R6(r,0,Math.min(B,6E4)),h.Oo(0))})} var P=Date.now()+a;r()}; W5l=function(e,a){return new Promise(function(r){g.S$(0,function(){r(a())},e)})}; g.lH4=function(e,a){var r;return g.Y(function(P){var B=g.aZ("yt.aba.att");return(r=B?B:uI.instance!==void 0?uI.instance.B.bind(uI.instance):null)?P.return(r("ENGAGEMENT_TYPE_PLAYBACK",e,a)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.L5j=function(){var e;return(e=(e=g.aZ("yt.aba.att2"))?e:uI.instance!==void 0?uI.instance.L.bind(uI.instance):null)?e():Promise.resolve(!1)}; wNN=function(e,a){var r=g.aZ("ytDebugData.callbacks");r||(r={},g.KL("ytDebugData.callbacks",r));if(g.CK("web_dd_iu")||YjI.includes(e))r[e]=a}; e_=function(){var e=pNL;var a=a===void 0?[]:a;var r=r===void 0?[]:r;a=ONL.apply(null,[kQO.apply(null,g.UO(a))].concat(g.UO(r)));this.store=JPy(e,void 0,a)}; g.ag=function(e,a,r){for(var P=Object.assign({},e),B=g.Z(Object.keys(a)),h=B.next();!h.done;h=B.next()){h=h.value;var c=e[h],y=a[h];if(y===void 0)delete P[h];else if(c===void 0)P[h]=y;else if(Array.isArray(y)&&Array.isArray(c))P[h]=r?[].concat(g.UO(c),g.UO(y)):y;else if(!Array.isArray(y)&&g.hw(y)&&!Array.isArray(c)&&g.hw(c))P[h]=g.ag(c,y,r);else if(typeof y===typeof c)P[h]=y;else return a=new g.I6("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,j2W:c,updateValue:y}),g.D6(a), e}return P}; rH=function(e){var a=this;e=e===void 0?[]:e;this.S=[];this.B=this.T=0;this.L=void 0;this.totalLength=0;e.forEach(function(r){a.append(r)})}; iuJ=function(e,a){return e.S.length===0?!1:(e=e.S[e.S.length-1])&&e.buffer===a.buffer&&e.byteOffset+e.length===a.byteOffset}; P4=function(e,a){a=g.Z(a.S);for(var r=a.next();!r.done;r=a.next())e.append(r.value)}; B4=function(e,a,r){return e.split(a).v8.split(r).e3}; hT=function(e){e.L=void 0;e.T=0;e.B=0}; c4=function(e,a,r){e.isFocused(a);return a-e.B+r<=e.S[e.T].length}; zPL=function(e){if(!e.L){var a=e.S[e.T];e.L=new DataView(a.buffer,a.byteOffset,a.length)}return e.L}; NAN=function(e,a,r){a=a===void 0?0:a;r=r===void 0?-1:r;if(!e.totalLength||!r)return new DataView(new ArrayBuffer(0));r<0&&(r=e.totalLength-a);e.focus(a);if(!c4(e,a,r)){var P=e.T,B=e.B;e.focus(a+r-1);B=new Uint8Array(e.B+e.S[e.T].length-B);for(var h=0,c=P;c<=e.T;c++)B.set(e.S[c],h),h+=e.S[c].length;e.S.splice(P,e.T-P+1,B);hT(e);e.focus(a)}P=e.S[e.T];return new DataView(P.buffer,P.byteOffset+a-e.B,r)}; og=function(e,a,r){e=NAN(e,a===void 0?0:a,r===void 0?-1:r);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}; n3=function(e,a,r){e=og(e,a===void 0?0:a,r===void 0?-1:r);a=new Uint8Array(e.length);try{a.set(e)}catch(P){for(r=0;r>10;h=56320|h&1023}f3[B++]=h}}h=String.fromCharCode.apply(String,f3); B<1024&&(h=h.substring(0,B));r.push(h)}return r.join("")}; C3=function(e,a){var r;if((r=UV)==null?0:r.encodeInto)return a=UV.encodeInto(e,a),a.read>6|192:((B&64512)===55296&&P+1>18|240,a[r++]=B>>12&63|128):a[r++]=B>>12|224,a[r++]=B>>6&63|128),a[r++]=B&63|128)}return r}; G3=function(e){if(UV)return UV.encode(e);var a=new Uint8Array(Math.ceil(e.length*1.2)),r=C3(e,a);a.lengthr&&(a=a.subarray(0,r));return a}; EV=function(e){this.S=e;this.pos=0;this.T=-1}; bR=function(e){var a=y$(e.S,e.pos);++e.pos;if(a<128)return a;for(var r=a&127,P=1;a>=128;)a=y$(e.S,e.pos),++e.pos,P*=128,r+=(a&127)*P;return r}; tT=function(e,a){var r=e.T;for(e.T=-1;e.pos+1<=e.S.totalLength;){r<0&&(r=bR(e));var P=r>>3,B=r&7;if(P===a)return!0;if(P>a){e.T=r;break}r=-1;switch(B){case 0:bR(e);break;case 1:e.pos+=8;break;case 2:P=bR(e);e.pos+=P;break;case 5:e.pos+=4}}return!1}; gH=function(e,a){if(tT(e,a))return bR(e)}; HuJ=function(e,a){if(tT(e,a))return a=og(e.S,e.pos,8),e.pos+=8,(new DataView(a.buffer,a.byteOffset,a.byteLength)).getFloat64(0,!0)}; ZP=function(e,a){if(tT(e,a))return!!bR(e)}; OV=function(e,a){if(tT(e,a)){a=bR(e);var r=og(e.S,e.pos,a);e.pos+=a;return r}}; kB=function(e,a){if(e=OV(e,a))return g.AT(e)}; dH=function(e,a,r){if(e=OV(e,a))return r(new EV(new rH([e])))}; JT=function(e,a){for(var r=[];tT(e,a);)r.push(bR(e));return r.length?r:void 0}; DP=function(e,a,r){for(var P=[],B;B=OV(e,a);)P.push(r(new EV(new rH([B]))));return P.length?P:void 0}; V$=function(e,a){e=e instanceof Uint8Array?new rH([e]):e;return a(new EV(e))}; qj4=function(e,a){e=new Uint8Array(e);a&&e.set(a);return e}; vMj=function(e){this.pos=0;this.T=[];this.S=qj4(e===void 0?4096:e);this.view=new DataView(this.S.buffer,this.S.byteOffset,this.S.byteLength)}; $B=function(e,a){a=e.pos+a;if(!(e.S.length>=a)){for(var r=e.S.length*2;r268435455){$B(e,4);for(var r=a&1073741823,P=0;P<4;P++)e.view.setUint8(e.pos,r&127|128),r>>=7,e.pos+=1;a=Math.floor(a/268435456)}for($B(e,4);a>127;)e.view.setUint8(e.pos,a&127|128),a>>=7,e.pos+=1;e.view.setUint8(e.pos,a);e.pos+=1}; W4=function(e,a,r){r!==void 0&&(Q$(e,a*8),Q$(e,r))}; H4=function(e,a,r){r!==void 0&&W4(e,a,r?1:0)}; qQ=function(e,a,r){r!==void 0&&(Q$(e,a*8+2),a=r.length,Q$(e,a),$B(e,a),e.S.set(r,e.pos),e.pos+=a)}; v4=function(e,a,r){r!==void 0&&(RPz(e,a,Math.ceil(Math.log2(r.length*4+2)/7)),$B(e,r.length*1.2),a=C3(r,e.S.subarray(e.pos)),e.pos+a>e.S.length&&($B(e,a),a=C3(r,e.S.subarray(e.pos))),e.pos+=a,SjL(e))}; RPz=function(e,a,r){r=r===void 0?2:r;Q$(e,a*8+2);e.T.push(e.pos);e.T.push(r);e.pos+=r}; SjL=function(e){for(var a=e.T.pop(),r=e.T.pop(),P=e.pos-r-a;a--;){var B=a?128:0;e.view.setUint8(r++,P&127|B);P>>=7}}; Rg=function(e,a,r,P,B){r&&(RPz(e,a,B===void 0?3:B),P(e,r),SjL(e))}; g.S_=function(e,a){var r=new vMj(4096);a(r,e);return new Uint8Array(r.S.buffer,r.S.byteOffset,r.pos)}; g.sV=function(e){var a=new EV(new rH([Qq(decodeURIComponent(e))]));e=kB(a,2);a=gH(a,4);var r=srN[a];if(typeof r==="undefined")throw e=new g.I6("Failed to recognize field number",{name:"EntityKeyHelperError",wwr:a}),g.D6(e),e;return{eD:a,entityType:r,entityId:e}}; g.mf=function(e,a){var r=r===void 0?0:r;var P=new vMj;qQ(P,2,G3(e));e=mx3[a];if(typeof e==="undefined")throw r=new g.I6("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:a}),g.D6(r),r;W4(P,4,e);W4(P,5,1);a=new Uint8Array(P.S.buffer,P.S.byteOffset,P.pos);return encodeURIComponent(g.Vq(a,r))}; FM=function(e,a,r,P){if(P===void 0)return P=Object.assign({},e[a]||{}),r=(delete P[r],P),P={},Object.assign({},e,(P[a]=r,P));var B={},h={};return Object.assign({},e,(h[a]=Object.assign({},e[a],(B[r]=P,B)),h))}; F5z=function(e,a,r,P,B){var h=e[a];if(h==null||!h[r])return e;P=g.ag(h[r],P,B==="REPEATED_FIELDS_MERGE_OPTION_APPEND");B={};h={};return Object.assign({},e,(h[a]=Object.assign({},e[a],(B[r]=P,B)),h))}; MAy=function(e,a){e=e===void 0?{}:e;switch(a.type){case "ENTITY_LOADED":return a.payload.reduce(function(P,B){var h,c=(h=B.options)==null?void 0:h.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!B.entityKey)return g.D6(Error("Missing entity key")),P;if(B.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!B.payload)return B=new g.I6("REPLACE entity mutation is missing a payload",{entityKey:B.entityKey}),g.D6(B),P;var y=g.Pd(B.payload); return FM(P,y,B.entityKey,B.payload[y])}if(B.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{B=B.entityKey;try{var T=g.sV(B).entityType;y=FM(P,T,B);break a}catch(A){if(A instanceof Error){B=new g.I6("Failed to deserialize entity key",{entityKey:B,originalMessage:A.message});g.D6(B);y=P;break a}throw A;}y=void 0}return y}if(B.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!B.payload)return B=new g.I6("UPDATE entity mutation is missing a payload",{entityKey:B.entityKey}),g.D6(B),P;y=g.Pd(B.payload);var X,f;return F5z(P, y,B.entityKey,B.payload[y],(X=B.fieldMask)==null?void 0:(f=X.mergeOptions)==null?void 0:f.repeatedFieldsMergeOption)}return P},e); case "REPLACE_ENTITY":var r=a.payload;return FM(e,r.entityType,r.key,r.Wk);case "REPLACE_ENTITIES":return Object.keys(a.payload).reduce(function(P,B){var h=a.payload[B];return Object.keys(h).reduce(function(c,y){return FM(c,B,y,h[y])},P)},e); case "UPDATE_ENTITY":return r=a.payload,F5z(e,r.entityType,r.key,r.Wk,r.INr);default:return e}}; MQ=function(e,a,r){return e[a]?e[a][r]||null:null}; j_=function(e){return window.Int32Array?new Int32Array(e):Array(e)}; Pr=function(e){g.N.call(this);this.counter=[0,0,0,0];this.T=new Uint8Array(16);this.S=16;if(!jrN){var a,r=new Uint8Array(256),P=new Uint8Array(256);var B=1;for(a=0;a<256;a++)r[B]=a,P[a]=B,B^=B<<1^(B>>7&&283);uR=new Uint8Array(256);K3=j_(256);eY=j_(256);aP=j_(256);rw=j_(256);for(var h=0;h<256;h++){B=h?P[255^r[h]]:0;B^=B<<1^B<<2^B<<3^B<<4;B=B&255^B>>>8^99;uR[h]=B;a=B<<1^(B>>7&&283);var c=a^B;K3[h]=a<<24|B<<16|B<<8|c;eY[h]=c<<24|K3[h]>>>8;aP[h]=B<<24|eY[h]>>>8;rw[h]=B<<24|aP[h]>>>8}jrN=!0}B=j_(44);for(r= 0;r<4;r++)B[r]=e[4*r]<<24|e[4*r+1]<<16|e[4*r+2]<<8|e[4*r+3];for(P=1;r<44;r++)e=B[r-1],r%4||(e=(uR[e>>16&255]^P)<<24|uR[e>>8&255]<<16|uR[e&255]<<8|uR[e>>>24],P=P<<1^(P>>7&&283)),B[r]=B[r-4]^e;this.key=B}; umL=function(e){for(var a=e.key,r=e.counter[0]^a[0],P=e.counter[1]^a[1],B=e.counter[2]^a[2],h=e.counter[3]^a[3],c=3;c>=0&&!(e.counter[c]=-~e.counter[c]);c--);for(var y,T,X=4;X<40;)c=K3[r>>>24]^eY[P>>16&255]^aP[B>>8&255]^rw[h&255]^a[X++],y=K3[P>>>24]^eY[B>>16&255]^aP[h>>8&255]^rw[r&255]^a[X++],T=K3[B>>>24]^eY[h>>16&255]^aP[r>>8&255]^rw[P&255]^a[X++],h=K3[h>>>24]^eY[r>>16&255]^aP[P>>8&255]^rw[B&255]^a[X++],r=c,P=y,B=T;e=e.T;c=a[40];e[0]=uR[r>>>24]^c>>>24;e[1]=uR[P>>16&255]^c>>16&255;e[2]=uR[B>>8&255]^ c>>8&255;e[3]=uR[h&255]^c&255;c=a[41];e[4]=uR[P>>>24]^c>>>24;e[5]=uR[B>>16&255]^c>>16&255;e[6]=uR[h>>8&255]^c>>8&255;e[7]=uR[r&255]^c&255;c=a[42];e[8]=uR[B>>>24]^c>>>24;e[9]=uR[h>>16&255]^c>>16&255;e[10]=uR[r>>8&255]^c>>8&255;e[11]=uR[P&255]^c&255;c=a[43];e[12]=uR[h>>>24]^c>>>24;e[13]=uR[r>>16&255]^c>>16&255;e[14]=uR[P>>8&255]^c>>8&255;e[15]=uR[B&255]^c&255}; cr=function(){if(!Br&&!g.qU){if(hW)return hW;var e;hW=(e=window.crypto)==null?void 0:e.subtle;var a,r,P;if(((a=hW)==null?0:a.importKey)&&((r=hW)==null?0:r.sign)&&((P=hW)==null?0:P.encrypt))return hW;hW=void 0}}; g.yP=function(e){var a=cr();a&&(this.S=new oP(e,a));this.T=new g.nC(e)}; oP=function(e,a){this.T=e;this.subtleCrypto=a}; K5L=function(e,a,r){var P,B;return g.Y(function(h){switch(h.T){case 1:if(e.S){h.Oo(2);break}return g.l(h,e.subtleCrypto.importKey("raw",e.T,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.S=h.S;case 2:return P={name:"AES-CTR",counter:r,length:128},g.l(h,e.subtleCrypto.encrypt(P,e.S,a),4);case 4:return B=h.S,h.return(new Uint8Array(B))}})}; g.nC=function(e){this.T=e}; Tz=function(e){this.C=new Uint8Array(64);this.B=new Uint8Array(64);this.L=0;this.Z=new Uint8Array(64);this.T=0;this.C.set(e);this.B.set(e);for(e=0;e<64;e++)this.C[e]^=92,this.B[e]^=54;this.reset()}; exq=function(e,a,r){for(var P=e.D,B=e.S[0],h=e.S[1],c=e.S[2],y=e.S[3],T=e.S[4],X=e.S[5],f=e.S[6],A=e.S[7],U,C,G,O=0;O<64;)O<16?(P[O]=G=a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3],r+=4):(U=P[O-2],C=P[O-15],G=P[O-7]+P[O-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),P[O]=G),U=A+Xp[O]+G+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&X^~T&f),C=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&h^B&c^h&c),A=U+C,y+=U,O++,O<16?(P[O]=G=a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3],r+=4):(U= P[O-2],C=P[O-15],G=P[O-7]+P[O-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),P[O]=G),U=f+Xp[O]+G+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&T^~y&X),C=((A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10))+(A&B^A&h^B&h),f=U+C,c+=U,O++,O<16?(P[O]=G=a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3],r+=4):(U=P[O-2],C=P[O-15],G=P[O-7]+P[O-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),P[O]=G),U=X+Xp[O]+G+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&y^ ~c&T),C=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&A^f&B^A&B),X=U+C,h+=U,O++,O<16?(P[O]=G=a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3],r+=4):(U=P[O-2],C=P[O-15],G=P[O-7]+P[O-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),P[O]=G),U=T+Xp[O]+G+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&c^~h&y),C=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&f^X&A^f&A),G=A,A=y,y=G,G=f,f=c,c=G,G=X,X=h,h=G,T=B+U,B=U+C,O++;e.S[0]=B+e.S[0]|0;e.S[1]=h+e.S[1]|0;e.S[2]=c+e.S[2]|0;e.S[3]= y+e.S[3]|0;e.S[4]=T+e.S[4]|0;e.S[5]=X+e.S[5]|0;e.S[6]=f+e.S[6]|0;e.S[7]=A+e.S[7]|0}; rB4=function(e){var a=new Uint8Array(32),r=64-e.T;e.T>55&&(r+=64);var P=new Uint8Array(r);P[0]=128;for(var B=e.L*8,h=1;h<9;h++){var c=B%256;P[r-h]=c;B=(B-c)/256}e.update(P);for(r=0;r<8;r++)a[r*4]=e.S[r]>>>24,a[r*4+1]=e.S[r]>>>16&255,a[r*4+2]=e.S[r]>>>8&255,a[r*4+3]=e.S[r]&255;a43(e);return a}; a43=function(e){e.S=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];e.D=[];e.D.length=64;e.L=0;e.T=0}; Ph3=function(e){this.S=e}; Bll=function(e,a,r){e=new Tz(e.S);e.update(a);e.update(r);a=rB4(e);e.update(e.C);e.update(a);a=rB4(e);e.reset();return a}; hxO=function(e){this.T=e}; cBj=function(e,a,r,P){var B,h,c;return g.Y(function(y){switch(y.T){case 1:if(e.S){y.Oo(2);break}return g.l(y,P.importKey("raw",e.T,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.S=y.S;case 2:return B=new Uint8Array(a.length+r.length),B.set(a),B.set(r,a.length),h={name:"HMAC",hash:"SHA-256"},g.l(y,P.sign(h,e.S,B),4);case 4:return c=y.S,y.return(new Uint8Array(c))}})}; or4=function(e,a,r){e.B||(e.B=new Ph3(e.T));return Bll(e.B,a,r)}; nrT=function(e,a,r){var P,B;return g.Y(function(h){if(h.T==1){P=cr();if(!P)return h.return(or4(e,a,r));g.kN(h,3);return g.l(h,cBj(e,a,r,P),5)}if(h.T!=3)return h.return(h.S);B=g.Q3(h);g.VJ(B);Br=!0;return h.return(or4(e,a,r))})}; Tlz=function(e){for(var a="",r=0;r=0||ts(e,0,"gad_source",e.search(Zy))>=0}; bhl=function(){this.S=new Map}; grT=function(e,a){var r=V7().resolve(tbI);if(Erz(a)){var P=OW(a,"gclid");a={handleEvent:function(y){e&&!e.closed&&typeof e.postMessage==="function"&&y&&y.origin&&y.source===e&&y.data&&y.data.action==="gcl_setup"&&e.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),y.origin)}}; for(var B=g.Z(r.S),h=B.next();!h.done;h=B.next()){var c=g.Z(h.value);h=c.next().value;c=c.next().value;if(h.closed)try{window.removeEventListener("message",c),r.S.delete(h)}catch(y){g.D6(y)}}e&&r.S.size<15&&(r.S.set(e,a),window.addEventListener("message",a))}}; fC=function(e,a,r){if(!a)return e.length>=1?e[e.length-1]:null;for(var P=g.Z(e),B=P.next();!B.done;B=P.next())if(B=B.value,B.width&&B.height&&(r&&B.width>=a||!r&&B.height>=a))return B;for(a=e.length-1;a>=0;a--)if(r&&e[a].width||!r&&e[a].height)return e[a];return e[0]}; AW=function(){this.state=1;this.SK=null;this.QL=void 0}; Oh4=function(e,a,r,P,B,h){var c=c===void 0?"trayride":c;r?(e.dg(2),g.eb(g.gM(r),function(){if(window[c])ZhL(e,P,c,B);else{e.dg(3);var y=Emq(r),T=document.getElementById(y);T&&(Cxy(y),T.parentNode.removeChild(T));g.VJ(new g.I6("BL:ULB",""+r))}},h)):a?(h=g.U9("SCRIPT"),a instanceof EZ?(h.textContent=bF(a),tU(h)):h.textContent=a,h.nonce=G1(document),document.head.appendChild(h),document.head.removeChild(h),window[c]?ZhL(e,P,c,B):(e.dg(4),g.VJ(new g.I6("BL:ULBJ")))):g.VJ(new g.I6("BL:ULV"))}; ZhL=function(e,a,r,P){e.dg(5);var B=!!e.QL&&ko4.includes(g.TS(e.QL)||"");try{var h=new A4({program:a,globalName:r,Al:{disable:!g.CK("att_web_record_metrics")||!g.CK("att_skip_metrics_for_cookieless_domains_ks")&&B,VL:"aGIf"}});h.ri.then(function(){e.dg(6);P&&P(a)}); e.G2(h)}catch(c){e.dg(7),c instanceof Error&&g.VJ(c)}}; Us=function(){var e=g.aZ("yt.abuse.playerAttLoader");return e&&["bgvma","bgvmb","bgvmc"].every(function(a){return a in e})?e:null}; CC=function(){AW.apply(this,arguments)}; Gz=function(){}; d8z=function(e,a,r){for(var P=!1,B=g.Z(e.p8.entries()),h=B.next();!h.done;h=B.next())h=g.Z(h.value).next().value,h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.Az==="core"&&(P=!0);if(P){a:if(!r){e=g.Z(e.p8.entries());for(r=e.next();!r.done;r=e.next())if(P=g.Z(r.value),r=P.next().value,P=P.next().value,r.slotType==="SLOT_TYPE_IN_PLAYER"&&r.Az==="core"){r=P.layoutId;break a}r=void 0}r?a.Z9(r):o9("No triggering layout ID available when attempting to mute.")}}; Es=function(e,a){this.tO=e;this.NK=a}; bi=function(){}; tW=function(){}; D8N=function(e){g.N.call(this);var a=this;this.V2=e;this.S=new Map;gw(this,"commandExecutorCommand",function(r,P,B){JBL(a,r.commands,P,B)}); gw(this,"clickTrackingParams",function(){})}; Vb4=function(e,a){gw(e,a.ac(),function(r,P,B){a.hQ(r,P,B)})}; gw=function(e,a,r){e.wP();e.S.get(a)&&g.D6(Error("Extension name "+a+" already registered"));e.S.set(a,r)}; JBL=function(e,a,r,P){a=a===void 0?[]:a;e.wP();var B=[],h=[];a=g.Z(a);for(var c=a.next();!c.done;c=a.next())c=c.value,g.H(c,$8q)||g.H(c,QyL)?B.push(c):h.push(c);B=g.Z(B);for(a=B.next();!a.done;a=B.next())ZS(e,a.value,r,P);h=g.Z(h);for(B=h.next();!B.done;B=h.next())ZS(e,B.value,r,P)}; ZS=function(e,a,r,P){e.wP();a.loggingUrls&&WUI(e,"loggingUrls",a.loggingUrls,r,P);a=g.Z(Object.entries(a));for(var B=a.next();!B.done;B=a.next()){var h=g.Z(B.value);B=h.next().value;h=h.next().value;B==="openPopupAction"?e.V2.get().Xh("innertubeCommand",{openPopupAction:h}):B==="confirmDialogEndpoint"?e.V2.get().Xh("innertubeCommand",{confirmDialogEndpoint:h}):l43.hasOwnProperty(B)||WUI(e,B,h,r,P)}}; WUI=function(e,a,r,P,B){if((e=e.S.get(a))&&typeof e==="function")try{e(r,P,B)}catch(h){g.D6(h)}else a=new g.I6("Unhandled field",a),g.VJ(a)}; Os=function(e,a,r){this.RU=e;this.S=a;this.ZQ=r;kr(V7(),{OF:tbI,GM:bhl})}; kQ=function(e){this.value=e}; dw=function(e){this.value=e}; JW=function(e){this.value=e}; DS=function(e){this.value=e}; VP=function(e){this.value=e}; $Q=function(e){this.value=e}; QP=function(e){this.value=e}; Wr=function(){kQ.apply(this,arguments)}; li=function(e){this.value=e}; LC=function(e){this.value=e}; YQ=function(e){this.value=e}; ww=function(e){this.value=e}; pC=function(e){this.value=e}; ii=function(e){this.value=e}; zz=function(e){this.value=e}; Ny=function(e){this.value=e}; xQ=function(e){this.value=e}; IP=function(e){this.value=e}; Hr=function(){kQ.apply(this,arguments)}; qy=function(e){this.value=e}; vr=function(e){this.value=e}; RP=function(e){this.value=e}; SY=function(e){this.value=e}; mA=function(e){this.value=e}; Fp=function(e){this.value=e}; My=function(e){this.value=e}; jY=function(e){this.value=e}; ui=function(e){this.value=e}; KC=function(e){this.value=e}; e3=function(e){this.value=e}; a$=function(e){this.value=e}; rs=function(e){this.value=e}; Pc=function(e){this.value=e}; Bc=function(e){this.value=e}; h6=function(e){this.value=e}; cc=function(e){this.value=e}; o$=function(e){this.value=e}; ny=function(e){this.value=e}; yF=function(e){this.value=e}; TI=function(e){this.value=e}; Xi=function(e){this.value=e}; fy=function(e){this.value=e}; A6=function(e){this.value=e}; Uc=function(e){this.value=e}; Cy=function(e){this.value=e}; GI=function(e){this.value=e}; Ec=function(e){this.value=e}; b0=function(e){this.value=e}; t6=function(e){this.value=e}; gs=function(e){this.value=e}; ZE=function(e){this.value=e}; Oc=function(e){this.value=e}; k6=function(e){this.value=e}; ds=function(e){this.value=e}; J6=function(e){this.value=e}; DE=function(e){this.value=e}; VF=function(e){this.value=e}; $6=function(e){this.value=e}; QF=function(){kQ.apply(this,arguments)}; Wc=function(e){this.value=e}; l0=function(){kQ.apply(this,arguments)}; Ly=function(){kQ.apply(this,arguments)}; Y6=function(){kQ.apply(this,arguments)}; ws=function(){kQ.apply(this,arguments)}; py=function(){kQ.apply(this,arguments)}; i0=function(e){this.value=e}; zI=function(e){this.value=e}; NJ=function(e){this.value=e}; x6=function(e){this.value=e}; I$=function(e){this.value=e}; qJ=function(e,a,r){if(r&&!r.includes(e.layoutType))return!1;a=g.Z(a);for(r=a.next();!r.done;r=a.next())if(!Hc(e.clientMetadata,r.value))return!1;return!0}; vc=function(){return""}; LU4=function(e,a){switch(e){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return a(e),8}}; R$=function(e,a,r,P){P=P===void 0?!1:P;C5.call(this,e);this.eZ=r;this.YM=P;this.args=[];a&&this.args.push(a)}; F=function(e,a,r,P){P=P===void 0?!1:P;C5.call(this,e);this.eZ=r;this.YM=P;this.args=[];a&&this.args.push(a)}; S3=function(e){var a=new Map;e.forEach(function(r){a.set(r.S(),r)}); this.S=a}; Hc=function(e,a){return e.S.has(a)}; sc=function(e,a){e=e.S.get(a);if(e!==void 0)return e.get()}; mN=function(e){return Array.from(e.S.keys())}; Fi=function(e,a,r){if(r&&r!==e.slotType)return!1;a=g.Z(a);for(r=a.next();!r.done;r=a.next())if(!Hc(e.clientMetadata,r.value))return!1;return!0}; wCz=function(e){var a;return((a=Y3T.get(e))==null?void 0:a.LN)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; j3=function(e,a){var r={type:a.slotType,controlFlowManagerLayer:pCJ.get(a.Az)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a.slotEntryTrigger&&(r.entryTriggerType=a.slotEntryTrigger.triggerType);a.slotPhysicalPosition!==1&&(r.slotPhysicalPosition=a.slotPhysicalPosition);if(e){r.debugData={slotId:a.slotId};if(e=a.slotEntryTrigger)r.debugData.slotEntryTriggerData=MJ(e);e=a.slotFulfillmentTriggers;r.debugData.fulfillmentTriggerData=[];e=g.Z(e);for(var P=e.next();!P.done;P=e.next())r.debugData.fulfillmentTriggerData.push(MJ(P.value)); a=a.slotExpirationTriggers;r.debugData.expirationTriggerData=[];a=g.Z(a);for(e=a.next();!e.done;e=a.next())r.debugData.expirationTriggerData.push(MJ(e.value))}return r}; ihT=function(e,a){var r={type:a.layoutType,controlFlowManagerLayer:pCJ.get(a.Az)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e&&(r.debugData={layoutId:a.layoutId});return r}; MJ=function(e,a){var r={type:e.triggerType};a!=null&&(r.category=a);e.triggeringSlotId!=null&&(r.triggerSourceData||(r.triggerSourceData={}),r.triggerSourceData.associatedSlotId=e.triggeringSlotId);e.triggeringLayoutId!=null&&(r.triggerSourceData||(r.triggerSourceData={}),r.triggerSourceData.associatedLayoutId=e.triggeringLayoutId);return r}; zxj=function(e,a,r,P){a={opportunityType:a};e&&(P||r)&&(P=g.ba(P||[],function(B){return j3(e,B)}),a.debugData=Object.assign({},r&&r.length>0?{associatedSlotId:r}:{},P.length>0?{slots:P}:{})); return a}; Ky=function(e,a){return function(r){return Nl4(u0(e),a.slotId,a.slotType,a.slotPhysicalPosition,a.Az,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,r.layoutId,r.layoutType,r.Az)}}; Nl4=function(e,a,r,P,B,h,c,y,T,X,f){return{adClientDataEntry:{slotData:j3(e,{slotId:a,slotType:r,slotPhysicalPosition:P,Az:B,slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:y,clientMetadata:new S3([])}),layoutData:ihT(e,{layoutId:T,layoutType:X,Az:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],SO:new Map,clientMetadata:new S3([]),jO:{}})}}}; aF=function(e){this.bW=e;e=Math.random();var a=this.bW.get();a=g.eS(a.W.G().experiments,"html5_debug_data_log_probability");a=Number.isFinite(a)&&a>=0&&a<=1?a:0;this.S=e1){g.VJ(new g.I6("Exit already started",{current:e.currentState}));var r=!1}else r=!0;if(!r)return!1;e.currentState=2;e.S=a;return!0}; BH=function(e){if(e.currentState!==2)return!1;e.currentState=3;return!0}; Cvq=function(e,a){var r=new Map;e=g.Z(e);for(var P=e.next();!P.done;P=e.next()){P=P.value;if(P.layoutType==="LAYOUT_TYPE_MEDIA")var B="v";else P.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(B=sc(P.clientMetadata,"metadata_type_linked_in_player_layout_type"),B=B==="LAYOUT_TYPE_ENDCAP"||B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":B==="LAYOUT_TYPE_SURVEY"?"s":B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):B="u";r.set(P.layoutId,B);if(B==="u"){var h={};B=a;P=(h.c=P.layoutId,h);B.W.nf("uct",P)}}e= a.X6();hX={contentCpn:e,fC:r};P={};r=(P.ct=r.size,P.c=e,P);a.W.nf("acc",r)}; GKL=function(){hX={contentCpn:"",fC:new Map}}; cH=function(e){var a;return(a=hX.fC.get(e))!=null?a:"u"}; oH=function(e,a,r){e.W.nf(a,r);ET3(e)}; bBq=function(e){var a=e.layoutId,r=e.sf;if(e.qK){var P={};oH(e.RU,"slso",(P.ec=a,P.is=r,P.ctp=cH(a),P))}}; n_=function(e){var a=e.layoutId,r=e.sf;if(e.qK){var P={};oH(e.RU,"slse",(P.ec=a,P.is=r,P.ctp=cH(a),P))}}; tqL=function(e){var a=e.layoutId,r=e.sf,P=e.RU;e.qK&&(e={},oH(P,"sleo",(e.xc=a,e.is=r,e.ctp=cH(a),e)),ET3(P))}; gTT=function(e){var a=e.cpn,r=e.RU;e=e.sf;var P=r.X6(),B={};oH(r,"ce",(B.ec=a,B.ia=a!==P,B.r=hX.fC.has(a),B.is=e,B.ctp=cH(a),B))}; ET3=function(e){if(e.X6()!==hX.contentCpn){var a={};a=(a.c=hX.contentCpn,a);e.W.nf("ccm",a)}}; ZB3=function(e){var a=e.cpn,r=e.RU;e=e.sf;var P=r.X6(),B={};oH(r,"cx",(B.xc=a,B.ia=a!==P,B.r=hX.fC.has(a),B.is=e,B.ctp=cH(a),B))}; OBy=function(e){this.params=e;this.S=new Set}; kKq=function(e,a,r){if(!e.S.has(a)){e.S.add(a);var P={};e.params.qA.gW(a,Object.assign({},r,(P.p_ac=e.params.adCpn,P.p_isv=e.params.QE&&e.params.Dw,P)))}}; Ts=function(e,a,r){if(yN(e.params.qA.bW.get(),!0)){var P=r.flush,B={};kKq(e,a,(B.cts=r.currentTimeSec,B.f=P,B))}}; dIq=function(e,a){this.RU=e;this.bW=a}; XQ=function(e){var a=[];if(e){e=g.Z(Object.entries(e));for(var r=e.next();!r.done;r=e.next()){var P=g.Z(r.value);r=P.next().value;P=P.next().value;P!==void 0&&(P=typeof P==="boolean"?""+ +P:(""+P).replace(/[:,=]/g,"_"),a.push(r+"."+P))}}return a.join(";")}; g.f_=function(e,a,r){a=a===void 0?{}:a;this.errorCode=e;this.details=a;this.severity=r===void 0?0:r}; AX=function(e){return e===1||e===2}; Ud=function(e,a){a=a===void 0?0:a;if(e instanceof g.f_)return e;e=e&&e instanceof Error?e:Error(""+e);AX(a)?g.D6(e):g.VJ(e);return new g.f_(a===1?"player.fatalexception":"player.exception",{name:""+e.name,message:""+e.message},a)}; J_N=function(e,a){function r(){var P=g.xN.apply(0,arguments);e.removeEventListener("playing",r);a.apply(null,g.UO(P))} e.addEventListener("playing",r)}; C_=function(){var e=g.aZ("yt.player.utils.videoElement_");e||(e=g.U9("VIDEO"),g.KL("yt.player.utils.videoElement_",e));return e}; Gs=function(e){var a=C_();return!!(a&&a.canPlayType&&a.canPlayType(e))}; b7=function(e){if(/opus/.test(e)&&g.Ed&&!Zw("38")&&!g.x2())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(e);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(e);if(/webm/.test(e)&&!CTO())return!1;e==='audio/mp4; codecs="mp4a.40.2"'&&(e='video/mp4; codecs="avc1.4d401f"');return!!Gs(e)}; DIl=function(e){try{var a=b7('video/mp4; codecs="avc1.42001E"')||b7('video/webm; codecs="vp9"');return(b7('audio/mp4; codecs="mp4a.40.2"')||b7('audio/webm; codecs="opus"'))&&(a||!e)||Gs('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(r){return"html5.missingapi"}}; tX=function(){var e=C_();return!(!e.webkitSupportsPresentationMode||typeof e.webkitSetPresentationMode!=="function")}; gE=function(){var e=C_();try{var a=e.muted;e.muted=!a;return e.muted!==a}catch(r){}return!1}; Vqy=function(){var e;return((e=navigator.connection)==null?void 0:e.type)||""}; g.Zc=function(){Ou.apply(this,arguments)}; Od=function(e,a,r,P,B,h,c,y){this.sampleRate=e===void 0?0:e;this.numChannels=a===void 0?0:a;this.spatialAudioType=r===void 0?"SPATIAL_AUDIO_TYPE_NONE":r;this.S=P===void 0?!1:P;this.B=B;this.L=h;this.audioQuality=c===void 0?"AUDIO_QUALITY_UNKNOWN":c;this.T=y===void 0?!1:y}; Wqq=function(e,a){Rg(e,2,a.oR,kK,3);Rg(e,3,a.innertubeRequest,$Iy,3);qQ(e,4,a.onesieUstreamerConfig);qQ(e,9,a.aG);Rg(e,10,a.b0,dE,3);Rg(e,15,a.reloadPlaybackParams,QKq,3)}; LqT=function(e,a){Rg(e,1,a.formatId,JX,3);W4(e,2,a.startTimeMs);W4(e,3,a.durationMs);W4(e,4,a.R$);W4(e,5,a.gL);Rg(e,9,a.tVd,ltJ,3);Rg(e,11,a.mgM,Dc,1);Rg(e,12,a.xn,Dc,1)}; YY4=function(e,a){v4(e,1,a.videoId);W4(e,2,a.lmt)}; ltJ=function(e,a){if(a.Dx)for(var r=0;r>31));W4(e,16,a.sJ);W4(e,17,a.detailedNetworkType);W4(e,18,a.aB);W4(e,19,a.Kl);W4(e,21,a.Oaf);W4(e,23,a.E4);W4(e,28,a.Ff);W4(e,29,a.z8$);W4(e,34,a.visibility);r=a.playbackRate;if(r!==void 0){var P=new ArrayBuffer(4);(new Float32Array(P))[0]=r;r=(new Uint32Array(P))[0];if(r!==void 0)for(Q$(e,285),$B(e,4),P=0;P<4;)e.view.setUint8(e.pos,r&255),r>>=8,e.pos+=1,P+=1}W4(e,36,a.T4); Rg(e,38,a.mediaCapabilities,NQz,3);W4(e,39,a.jU1);W4(e,40,a.NU);W4(e,44,a.playerState);H4(e,46,a.SD);W4(e,48,a.nN);W4(e,50,a.VV);W4(e,51,a.Ep);W4(e,54,a.Qh);if(a.dl)for(r=0;r>31));v4(e,2,a.message)}; mIJ=function(e,a){W4(e,1,a.clientState);Rg(e,2,a.WOd,SYO,1)}; RW4=function(e,a){qQ(e,1,a.tuQ);Rg(e,2,a.sOd,sKz,3);Rg(e,3,a.coldStartInfo,mIJ,3)}; vTI=function(e,a){W4(e,1,a.type);qQ(e,2,a.value)}; qYj=function(e,a){v4(e,1,a.hl);v4(e,12,a.deviceMake);v4(e,13,a.deviceModel);W4(e,16,a.clientName);v4(e,17,a.clientVersion);v4(e,18,a.osName);v4(e,19,a.osVersion)}; Fqy=function(e,a){v4(e,1,a.name);v4(e,2,a.value)}; $K=function(e,a){v4(e,1,a.url);if(a.sT)for(var r=0;r55?"60": a>49?"50":a>39?"48":"")));this.qualityLabel=e;this.S=T||"";this.primaries=X||""}; YK=function(e,a){var r=Math.max(e,a);e=Math.min(e,a);a=i7[0];for(var P=0;P=Math.floor(h*16/9)*1.3||e>=h*1.3)return a;a=B}return"tiny"}; xK=function(e,a,r){r=r===void 0?{}:r;this.id=e;this.mimeType=a;r.NF>0||(r.NF=16E3);Object.assign(this,r);e=g.Z(this.id.split(";"));this.itag=e.next().value;this.S=e.next().value;this.containerType=zs(a);this.vW=NW[this.itag]||""}; IH=function(e){return e.vW==="9"||e.vW==="("||e.vW==="9h"||e.vW==="(h"}; W9I=function(e){return e.vW==="H"||e.vW==="h"}; HH=function(e){return e.vW==="9h"||e.vW==="(h"}; lul=function(e){return!!e.DX&&!!e.DX.fairplay&&(e.vW==="("||e.vW==="(h"||e.vW==="A"||e.vW==="MEAC3")||qW&&!!e.DX&&e.vW==="1e"}; vH=function(e){return e.vW==="1"||e.vW==="1h"||qW&&e.vW==="1e"}; Sl=function(e){return e.vW==="mac3"||e.vW==="meac3"||e.vW==="m"||e.vW==="i"}; sd=function(e){return e.vW==="MAC3"||e.vW==="MEAC3"||e.vW==="M"||e.vW==="I"}; g.m2=function(e){return e.containerType===1}; L9q=function(e){return e.vW==="("||e.vW==="(h"||e.vW==="H"||qW&&e.vW==="1e"}; FQ=function(e){return e.mimeType==="application/x-mpegURL"}; g.MW=function(e,a){return{itag:+e.itag,lmt:a?0:e.lastModified,xtags:e.S||""}}; YK3=function(e){var a=navigator.mediaCapabilities;if(a==null||!a.decodingInfo||e.vW==="f")return Promise.resolve();var r={type:e.audio&&e.video?"file":"media-source"};e.video&&(r.video={contentType:e.mimeType,width:e.video.width||640,height:e.video.height||360,bitrate:e.NF*8||1E6,framerate:e.video.fps||30});e.audio&&(r.audio={contentType:e.mimeType,channels:""+(e.audio.numChannels||2),bitrate:e.NF*8||128E3,samplerate:e.audio.sampleRate||44100});return a.decodingInfo(r).then(function(P){e.T=P})}; jl=function(e){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(e)}; u7=function(e){return/(vp9|vp09|vp8|avc1|av01)/.test(e)}; K_=function(e){return e.includes("vtt")||e.includes("text/mp4")}; zs=function(e){return e.indexOf("/mp4")>=0?1:e.indexOf("/webm")>=0?2:e.indexOf("/x-flv")>=0?3:e.indexOf("/vtt")>=0?4:0}; eE=function(e,a,r,P,B,h,c){var y=new Od;a in g.wE||(a="small");a==="light"&&(a="tiny");P&&B?(B=Number(B),P=Number(P)):(B=g.wE[a],P=Math.round(B*16/9));h=new p_(P,B,0,null,void 0,a,h,c);e=unescape(e.replace(/"/g,'"'));return new xK(r,e,{audio:y,video:h})}; aV=function(e){var a="id="+e.id;e.video&&(a+=", res="+e.video.qualityLabel);var r,P;return a+", byterate=("+((r=e.yV)==null?void 0:r.toFixed(0))+", "+((P=e.NF)==null?void 0:P.toFixed(0))+")"}; rx=function(e,a){return{start:function(r){return e[r]}, end:function(r){return a[r]}, length:e.length}}; wK3=function(e,a,r){for(var P=[],B=[],h=0;h=a)return r}catch(P){}return-1}; h0=function(e,a){return Bi(e,a)>=0}; pK4=function(e,a){if(!e)return NaN;a=Bi(e,a);return a>=0?e.start(a):NaN}; ci=function(e,a){if(!e)return NaN;a=Bi(e,a);return a>=0?e.end(a):NaN}; oV=function(e){return e&&e.length?e.end(e.length-1):NaN}; nZ=function(e){return oV(e)>0}; y9=function(e,a){e=ci(e,a);return e>=0?e-a:0}; TW=function(e,a,r){for(var P=[],B=[],h=0;hr||(P.push(Math.max(a,e.start(h))-a),B.push(Math.min(r,e.end(h))-a));return rx(P,B)}; X2=function(e,a,r,P){g.aK.call(this);var B=this;this.pB=e;this.start=a;this.end=r;this.isActive=P;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.vv={error:function(){!B.wP()&&B.isActive&&B.publish("error",B)}, updateend:function(){!B.wP()&&B.isActive&&B.publish("updateend",B)}}; this.pB.N2(this.vv);this.x6=this.isActive}; A0=function(e,a,r,P,B,h){g.aK.call(this);var c=this;this.mL=e;this.jX=a;this.id=r;this.containerType=P;this.vW=B;this.Dw=h;this.Lc=this.Rx=this.HV=null;this.rF=!1;this.appendWindowStart=this.timestampOffset=0;this.g5=rx([],[]);this.DS=!1;this.pA=[];this.W0=fZ?[]:void 0;this.oO=function(T){return c.publish(T.type,c)}; var y;if((y=this.mL)==null?0:y.addEventListener)this.mL.addEventListener("updateend",this.oO),this.mL.addEventListener("error",this.oO)}; UD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; CZ=function(e,a){this.Kr=e;this.S=a===void 0?!1:a;this.T=!1}; GW=function(e,a,r){r=r===void 0?!1:r;g.N.call(this);this.mediaElement=e;this.cW=a;this.isView=r;this.Z=0;this.L=!1;this.C=!0;this.N=0;this.callback=null;this.Y=!1;this.cW||(this.jX=this.mediaElement.EM());this.events=new g.Zc(this);g.x(this,this.events);this.B=new CZ(this.cW?window.URL.createObjectURL(this.cW):this.jX.webkitMediaSourceURL,!0);e=this.cW||this.jX;kf(this.events,e,["sourceopen","webkitsourceopen"],this.Sg$);kf(this.events,e,["sourceclose","webkitsourceclose"],this.nfW);this.D={updateend:this.CM}}; i$j=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; zaz=function(e,a){ED(e)?g.kP(function(){a(e)}):e.callback=a}; NGO=function(e,a,r){if(bB){var P;t0(e.mediaElement,{l:"mswssb",sr:(P=e.mediaElement.uW)==null?void 0:P.SH()},!1);a.N2(e.D,e);r.N2(e.D,e)}e.S=a;e.T=r;g.x(e,a);g.x(e,r)}; gx=function(e){return!!e.S||!!e.T}; ED=function(e){try{return ZT(e)==="open"}catch(a){return!1}}; ZT=function(e){if(e.cW)return e.cW.readyState;switch(e.jX.webkitSourceState){case e.jX.SOURCE_OPEN:return"open";case e.jX.SOURCE_ENDED:return"ended";default:return"closed"}}; OD=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; xd4=function(e){ED(e)&&(e.cW?e.cW.endOfStream():e.jX.webkitSourceEndOfStream(e.jX.EOS_NO_ERROR))}; IuT=function(e,a,r,P){if(!e.S||!e.T)return null;var B=e.S.isView()?e.S.pB:e.S,h=e.T.isView()?e.T.pB:e.T,c=new GW(e.mediaElement,e.cW,!0);c.B=e.B;NGO(c,new X2(B,a,r,P),new X2(h,a,r,P));ED(e)||e.S.pE(e.S.t9());return c}; H$4=function(e){var a;(a=e.S)==null||a.oh();var r;(r=e.T)==null||r.oh();e.C=!1}; kF=function(){var e=this;this.RI=this.ir=gN4;this.promise=new g.QM(function(a,r){e.ir=a;e.RI=r})}; dx=function(){g.N.call(this);this.XZ=!1;this.Kr=null;this.D=this.Z=!1;this.L=new g.AP;this.uW=null;g.x(this,this.L)}; J0=function(e){e=e.dj();return e.length<1?NaN:e.end(e.length-1)}; qKO=function(e){!e.T&&i$j()&&(e.B?e.B.then(function(){return qKO(e)}):e.Rn()||(e.T=e.lx()))}; vgO=function(e){e.T&&(e.T.dispose(),e.T=void 0)}; t0=function(e,a,r){var P;((P=e.uW)==null?0:P.UM())&&e.uW.nf("rms",a,r===void 0?!1:r)}; Raj=function(e,a,r){e.isPaused()||e.getCurrentTime()>a||r>10||(e.play(),g.Tu(function(){Raj(e,e.getCurrentTime(),r+1)},500))}; SKT=function(e,a){e.Kr&&e.Kr.equals(a)||(e.Kr&&e.Kr.dispose(),e.Kr=a)}; DT=function(e){return y9(e.vV(),e.getCurrentTime())}; s9T=function(e,a){if(e.Lq()===0||e.hasError())return!1;var r=e.getCurrentTime()>0;return a>=0&&(e=e.dj(),e.length||!r)?h0(e,a):r}; V9=function(e){e.Rn()&&(e.uW&&e.uW.Fh("rs_s"),HU&&e.getCurrentTime()>0&&e.seekTo(0),e.tM(),e.load(),SKT(e,null));delete e.B}; $F=function(e){switch(e.P7()){case 2:return"progressive.net.retryexhausted";case 3:return e=e.OU(),(e==null?0:e.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||mdO&&(e==null?0:e.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.Q9=function(e,a,r){this.xu=a===void 0?null:a;this.seekSource=r===void 0?null:r;this.state=e||64}; Wi=function(e,a,r){r=r===void 0?!1:r;return F9L(e,a.getCurrentTime(),(0,g.Ov)(),DT(a),r)}; lB=function(e,a,r,P){if(!(a===e.state&&r===e.xu&&P===e.seekSource||a!==void 0&&(a&128&&!r||a&2&&a&16))){var B;if(B=a)B=a||e.state,B=!!(B&16||B&32);e=new g.Q9(a,r,B?P?P:e.seekSource:null)}return e}; LZ=function(e,a,r){return lB(e,e.state|a,null,r===void 0?null:r)}; YF=function(e,a){return lB(e,e.state&~a,null,null)}; wx=function(e,a,r,P){return lB(e,(e.state|a)&~r,null,P===void 0?null:P)}; g.S=function(e,a){return!!(e.state&a)}; g.pZ=function(e,a){return a.state===e.state&&a.xu===e.xu}; iB=function(e){return e.isPlaying()&&!g.S(e,16)&&!g.S(e,32)}; zW=function(e){return g.S(e,128)?-1:g.S(e,2)?0:g.S(e,2048)?3:g.S(e,64)?-1:g.S(e,1)&&!g.S(e,32)?3:g.S(e,8)?1:g.S(e,4)?2:-1}; xF=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G,O,d){g.N.call(this);var W=this;this.g0=e;this.slot=a;this.layout=r;this.ZQ=P;this.BA=B;this.DQ=h;this.aH=c;this.lw=y;this.Cr=T;this.Yg=X;this.position=A;this.Z=U;this.bW=C;this.V7=G;this.JR=O;this.context=d;this.NC=!0;this.C=!1;this.Mr="not_rendering";this.T=!1;this.B=new rE;e=sc(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Jz=new AD(r.SO,this.ZQ,e,r.layoutId);var V;e=((V=NO(this))==null?void 0:V.progressCommands)||[];this.L=new Srj(T, e,r.layoutId,function(){return W.hn()}); this.S=new OBy({adCpn:this.layout.layoutId,qA:d.qA,QE:this.V7,Dw:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; IV=function(e){return{layoutId:e.x4(),sf:e.V7,RU:e.DQ.get(),qK:e.Cy()}}; Hi=function(e,a){return a.layoutId!==e.layout.layoutId?(e.g0.ST(e.slot,a,new R$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+e.layout.layoutId+("and LayoutType: "+e.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; qO=function(e){e.Mr="rendering_start_requested";e.Yg(-1)}; NO=function(e){return sc(e.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; MWO=function(e){o9("Received layout exit signal when not in layout exit flow.",e.slot,e.layout)}; j9T=function(e){var a;return((a=vi(e.DQ.get(),2))==null?void 0:a.clientPlaybackNonce)||""}; RV=function(e,a){switch(a){case "normal":e.PA("complete");break;case "skipped":e.PA("skip");break;case "abandoned":tD(e.Jz,"impression")&&e.PA("abandon")}}; SE=function(e,a){e.C||(a=new g.n$(a.state,new g.Q9),e.C=!0);return a}; sD=function(e,a){up(a)?e.Yg(1):g.TH(a,4)&&!g.TH(a,2)&&e.AE();yW(a,4)<0&&!(yW(a,2)<0)&&e.Ps()}; u5L=function(e){e.position===0&&(e.lw.get(),e=sc(e.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e={adBreakType:mY(e)},dL("ad_bl"),g.JA(e))}; F2=function(e,a){Ep(e.Jz,a,!e.T)}; eYj=function(e){var a;return(((a=NO(e))==null?void 0:a.progressCommands)||[]).findIndex(function(r){return!!g.H(r==null?void 0:r.command,K94)})!==-1}; MO=function(e,a){var r=sc(e.clientMetadata,"metadata_type_eligible_for_ssap");return r===void 0?(o9("Expected SSAP eligibility in PlayerBytes factory",e),!1):a.Cy(r)}; jE=function(e,a){if(!pm(a.get(),"html5_ssap_pass_transition_reason"))return 3;switch(e){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return o9("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return o9("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:e}),3;default:X8(e,"unknown layoutExitReason")}}; apq=function(e){o9("getExitReason: unexpected reason",void 0,void 0,{reason:e})}; uB=function(e,a){if(pm(a.get(),"html5_ssap_pass_transition_reason"))switch(e){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return apq(e),"abandoned";case 3:case 1:return apq(e),"error";default:X8(e,"unexpected transition reason")}else switch(e){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return o9("getExitReason: unexpected reason",void 0,void 0,{reason:e}),"error";default:X8(e,"unexpected transition reason")}}; g.KZ=function(e,a,r){VA(e,r)||QA(e,a,r);VA(e,"video_to_ad")||QA(e,a,"video_to_ad");VA(e,"ad_to_video")||QA(e,a,"ad_to_video");VA(e,"ad_to_ad")||QA(e,a,"ad_to_ad")}; e0=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G,O,d,W){xF.call(this,e,a,r,P,B,h,c,y,X,f,A,U,C,G,O,d,W);var V=this;this.V2=T;this.iK=A;this.tZ=!0;this.Wn=this.T0=0;this.oQ=wy(function(){bBq(IV(V));V.g0.FN(V.slot,V.layout)}); this.h8=wy(function(){tqL(IV(V));V.Mr!=="rendering_stop_requested"&&V.iK(V);V.layoutExitReason?V.g0.WO(V.slot,V.layout,V.layoutExitReason):MWO(V)}); this.timer=new g.iE(200);this.timer.listen("tick",function(){V.j5()}); g.x(this,this.timer)}; rv=function(e){e.Wn=Date.now();aI(e,e.T0);e.timer.start()}; rAJ=function(e){e.T0=e.hn();e.Wx(e.T0/1E3,!0);aI(e,e.T0)}; aI=function(e,a){a={current:a/1E3,duration:e.hn()/1E3};e.V2.get().Xh("onAdPlaybackProgress",a)}; Pm=function(e){e0.call(this,e.g0,e.slot,e.UU,e.ZQ,e.BA,e.DQ,e.aH,e.lw,e.V2,e.Cr,e.Yg,e.iK,e.vr,e.Z7,e.bW,e.V7,e.JR,e.context)}; Bm=function(e){e0.call(this,e.g0,e.slot,e.UU,e.ZQ,e.BA,e.DQ,e.aH,e.lw,e.V2,e.Cr,e.Yg,e.iK,e.vr,e.Z7,e.bW,e.V7,e.JR,e.context)}; hc=function(){Bm.apply(this,arguments)}; PIT=function(e){return MO(e.slot,e.bW.get())?new hc(e):new Pm(e)}; n7=function(e){xF.call(this,e.callback,e.slot,e.UU,e.ZQ,e.BA,e.DQ,e.aH,e.lw,e.Cr,e.Yg,e.iK,e.vr,e.Z7,e.bW,e.V7,e.JR,e.context);var a=this;this.adCpn="";this.PR=this.Un=0;this.oQ=wy(function(){bBq(IV(a));a.g0.FN(a.slot,a.layout)}); this.h8=wy(function(){tqL(IV(a));a.Mr!=="rendering_stop_requested"&&a.iK(a);a.layoutExitReason?a.g0.WO(a.slot,a.layout,a.layoutExitReason):MWO(a)}); this.FE=e.FE;this.Iz=e.Iz;this.Lb=e.Lb;this.V2=e.V2;this.AA=e.AA;this.iK=e.iK;if(!this.Cy()){pm(this.bW.get(),"html5_disable_media_load_timeout")||(this.g3=new g.vP(function(){a.D$("load_timeout",new R$("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); e=cm(this.bW.get());var r=oI(this.bW.get());e&&r&&(this.xA=new g.vP(function(){var P=sc(a.layout.clientMetadata,"metadata_type_preload_player_vars");P&&a.Iz.get().W.preloadVideoByPlayerVars(P,2,300)}))}}; hYI=function(e,a){var r=sc(a.clientMetadata,"metadata_type_ad_video_id"),P=sc(a.clientMetadata,"metadata_type_legacy_info_card_vast_extension");r&&P&&e.AA.get().W.G().e1.add(r,{k0:P});(a=sc(a.clientMetadata,"metadata_type_sodar_extension_data"))&&Bh4(e.FE.get(),a);BLI(e.aH.get(),!1)}; cAL=function(e){BLI(e.aH.get(),!0);var a;((a=e.shrunkenPlayerBytesConfig)==null?0:a.shouldRequestShrunkenPlayerBytes)&&e.aH.get().zf(!1)}; oWN=function(e){return new y6(e)}; Te=function(){n7.apply(this,arguments)}; y6=function(){Te.apply(this,arguments)}; nWN=function(e){return PIT(Object.assign({},e,{g0:e.callback,Yg:function(){}}))}; yAl=function(e){return new n7(Object.assign({},e,{Yg:function(a){e.V2.get().Xh("onAdIntroStateChange",a)}}))}; TLO=function(e){function a(r){e.V2.get().LL(r)} return MO(e.slot,e.bW.get())?oWN(Object.assign({},e,{Yg:a})):new n7(Object.assign({},e,{Yg:a}))}; Xg=function(e){for(var a=e.UU,r=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],P=g.Z(Up()),B=P.next();!B.done;B=P.next())r.push(B.value);if(ip(a,{b5:r,VH:["LAYOUT_TYPE_MEDIA_BREAK"]}))return nWN(e);a=e.UU;r=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];P=g.Z(Up());for(B=P.next();!B.done;B=P.next())r.push(B.value);if(ip(a,{b5:r,VH:["LAYOUT_TYPE_MEDIA"]}))return Hc(e.UU.clientMetadata,"metadata_type_ad_intro")?yAl(e):TLO(e)}; fpz=function(e){var a=sc(e.clientMetadata,"metadata_type_ad_placement_config").kind,r=sc(e.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:e.layoutId,adType:X3j(r),adBreakType:mY(a)}}; mY=function(e){switch(e){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"}}; X3j=function(e){switch(e){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; AAj=function(e){try{return new f7(e.jm,e.slot,e.layout,e.Xw,e.Zw,e.DQ,e.gg,e.Iz,e.uw,e.aH,e.aZW,e)}catch(a){}}; f7=function(e,a,r,P,B,h,c,y,T,X,f,A){g.N.call(this);this.jm=e;this.slot=a;this.layout=r;this.Xw=P;this.Zw=B;this.DQ=h;this.gg=c;this.Iz=y;this.uw=T;this.aH=X;this.params=A;this.NC=!0;e=Xg(f);if(!e)throw Error("Invalid params for sublayout");this.Fo=e}; UPI=function(){this.S=1;this.T=new rE}; Ac=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C){g.N.call(this);this.callback=e;this.DQ=a;this.gg=r;this.Iz=P;this.aH=B;this.aU=h;this.lw=c;this.Bj=y;this.slot=T;this.layout=X;this.Xw=f;this.m0=A;this.uw=U;this.bW=C;this.NC=!0;this.mE=!1;this.qq=[];this.EB=-1;this.FQ=!1;this.RR=new UPI}; CII=function(e){var a;return(a=e.layout.rM)!=null?a:sc(e.layout.clientMetadata,"metadata_type_sub_layouts")}; Uq=function(e){return{RU:e.DQ.get(),sf:!1,qK:e.Cy()}}; Gm3=function(e,a,r){if(e.ev()===e.qq.length-1){var P,B;o9("Unexpected skip requested during the last sublayout",(P=e.Nf())==null?void 0:P.A9(),(B=e.Nf())==null?void 0:B.x$(),{requestingSlot:a,requestingLayout:r})}}; EWI=function(e,a,r){return r.layoutId!==C7(e,a,r)?(o9("onSkipRequested for a PlayerBytes layout that is not currently active",e.A9(),e.x$()),!1):!0}; b8J=function(e){e.ev()===e.qq.length-1&&o9("Unexpected skip with target requested during the last sublayout")}; tmy=function(e,a,r){return r.renderingContent===void 0&&r.layoutId!==C7(e,a,r)?(o9("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",e.A9(),e.x$(),{requestingSlot:a,requestingLayout:r}),!1):!0}; gWL=function(e,a,r,P){var B=sc(a.x$().clientMetadata,"metadata_type_ad_pod_skip_target");if(B&&B>0&&B0)){o9("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",e.slot,e.layout,{indexToPlay:a,layoutId:e.layout.layoutId});break a}e.EB=a;a=e.Nf();if(e.ev()>0&&!e.Cy()){var r=e.lw.get();r.T=!1;var P={};r.S&&r.videoId&&(P.cttAuthInfo={token:r.S,videoId:r.videoId});Dp("ad_to_ad",P)}r=g.H(a.x$().renderingContent,F0);if(r==null?0: r.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var B;r=!((B=e.aU.get().ddr.get(r.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&B)}else r=!1;r?Ge(e,e.ev()+1):e.TM(a)}}; tc=function(e){Ac.call(this,e.jm,e.DQ,e.gg,e.Iz,e.aH,e.aU,e.lw,e.Bj,e.slot,e.layout,e.Xw,e.m0,e.uw,e.bW)}; km3=function(e){(e=e.Nf())&&e.Gb()}; gv=function(e){Ac.call(this,e.jm,e.DQ,e.gg,e.Iz,e.aH,e.aU,e.lw,e.Bj,e.slot,e.layout,e.Xw,e.m0,e.uw,e.bW);this.XE=void 0}; dPq=function(e,a){e.PT()&&!BH(e.RR.T)||e.callback.WO(e.slot,e.layout,a)}; ZU=function(e){return pm(e.bW.get(),"html5_ssap_pass_transition_reason")}; JAO=function(e,a,r){a.fY().currentState<2&&(r=uB(r,e.bW),a.u5(a.x$(),r));r=a.fY().S;e.mF(e.slot,a.x$(),r)}; DPl=function(e,a){if(e.RR.T.currentState<2){var r=uB(a,e.bW);r==="error"?e.callback.ST(e.slot,e.layout,new R$("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:a},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):by(e.m0,e.layout,r)}}; Oq=function(e,a,r){a.fY().currentState>=2||(a.u5(a.x$(),r),BH(a.fY())&&(Gx(e.Bj,e.slot,a.x$(),r),e.XE=void 0))}; VmL=function(e,a){e.RR.S===2&&a!==e.X6()&&o9("onClipEntered: unknown cpn",e.slot,e.layout,{cpn:a})}; $P4=function(e,a){var r=e.Nf();if(r){var P=r.x$().layoutId,B=e.ev()+1;e.PT()?Oq(e,r,a):r.u5(r.x$(),a);B>=0&&BB&&c.XL(f,B-P);return f}; zYz=function(e,a,r){var P=sc(a.clientMetadata,"metadata_type_sodar_extension_data");if(P)try{Bh4(r,P)}catch(B){o9("Unexpected error when loading Sodar",e,a,{error:B})}}; NLL=function(e,a,r,P,B,h,c){Q6(e,a,new g.n$(r,new g.Q9),P,B,c,!1,h)}; Q6=function(e,a,r,P,B,h,c,y){c=c===void 0?!0:c;up(r)&&KH(B,0,null)&&(!tD(e,"impression")&&y&&y(),e.PA("impression"));tD(e,"impression")&&(g.TH(r,4)&&!g.TH(r,2)&&e.FH("pause"),yW(r,4)<0&&!(yW(r,2)<0)&&e.FH("resume"),g.TH(r,16)&&B>=.5&&e.FH("seek"),c&&g.TH(r,2)&&Wm(e,r.state,a,P,B,h))}; Wm=function(e,a,r,P,B,h,c,y,T){tD(e,"impression")&&(h?(h=B-P,h=h>=-1&&h<=2):h=Math.abs(P-B)<=1,ly(e,a,h?P:B,r,P,c,y&&h),h&&!T&&e.PA("complete"))}; ly=function(e,a,r,P,B,h,c){bp(e,r*1E3,c);B<=0||r<=0||(a==null?0:g.S(a,16))||(a==null?0:g.S(a,32))||(KH(r,B*.25,P)&&(h&&!tD(e,"first_quartile")&&h("first"),e.PA("first_quartile")),KH(r,B*.5,P)&&(h&&!tD(e,"midpoint")&&h("second"),e.PA("midpoint")),KH(r,B*.75,P)&&(h&&!tD(e,"third_quartile")&&h("third"),e.PA("third_quartile")))}; xPN=function(e,a){tD(e,"impression")&&e.FH(a?"fullscreen":"end_fullscreen")}; IpT=function(e){tD(e,"impression")&&e.FH("clickthrough")}; H84=function(e){e.FH("active_view_measurable")}; qgO=function(e){tD(e,"impression")&&!tD(e,"seek")&&e.FH("active_view_fully_viewable_audible_half_duration")}; vWl=function(e){tD(e,"impression")&&!tD(e,"seek")&&e.FH("active_view_viewable")}; RYO=function(e){tD(e,"impression")&&!tD(e,"seek")&&e.FH("audio_audible")}; SgN=function(e){tD(e,"impression")&&!tD(e,"seek")&&e.FH("audio_measurable")}; sdz=function(e,a,r,P,B,h,c,y,T,X,f,A,U){this.callback=e;this.slot=a;this.layout=r;this.gg=P;this.Jz=B;this.aH=h;this.s5=c;this.BA=y;this.FE=T;this.bW=X;this.ZQ=f;this.DQ=A;this.Lb=U;this.tZ=!0;this.Cb=this.Mr=null;this.adCpn=void 0;this.S=!1}; mPN=function(e,a,r){var P;$D(e.ZQ.get(),"ads_qua","cpn."+sc(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=vi(e.DQ.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+a+";clr."+r)}; FcJ=function(e,a){var r,P;$D(e.ZQ.get(),"ads_imp","cpn."+sc(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((r=vi(e.DQ.get(),2))==null?void 0:r.clientPlaybackNonce)+";clr."+a+";skp."+!!g.H((P=sc(e.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:P.skipOrPreviewRenderer,L7))}; YD=function(e){return{enterMs:sc(e.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:sc(e.clientMetadata,"metadata_type_layout_exit_ms")}}; wv=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C){dv.call(this,e,a,r,P,B,c,y,T,X,A);this.s5=h;this.FE=f;this.BA=U;this.bW=C;this.Cb=this.Mr=null}; MmT=function(e,a){var r;$D(e.ZQ.get(),"ads_imp","acpn."+((r=vi(e.DQ.get(),2))==null?void 0:r.clientPlaybackNonce)+";clr."+a)}; jdq=function(e,a,r){var P;$D(e.ZQ.get(),"ads_qua","cpn."+sc(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=vi(e.DQ.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+a+";clr."+r)}; p7=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G,O,d,W,V,L,z,q){this.uw=e;this.Xw=a;this.m0=r;this.DQ=P;this.gg=B;this.aH=h;this.aU=c;this.ZQ=y;this.s5=T;this.GX=X;this.BA=f;this.FE=A;this.Iz=U;this.Lb=C;this.lw=G;this.V2=O;this.Cr=d;this.AA=W;this.bW=V;this.S=L;this.context=z;this.JR=q}; iy=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G,O,d,W,V){this.uw=e;this.Xw=a;this.m0=r;this.ZQ=P;this.BA=B;this.FE=h;this.Iz=c;this.DQ=y;this.aH=T;this.aU=X;this.Lb=f;this.lw=A;this.V2=U;this.Cr=C;this.AA=G;this.bW=O;this.gg=d;this.context=W;this.JR=V}; ufy=function(e,a,r,P){eq.call(this,"survey-interstitial",e,a,r,P)}; ze=function(e,a,r,P,B){hD.call(this,r,e,a,P);this.ZQ=B;e=sc(a.clientMetadata,"metadata_type_ad_placement_config");this.Jz=new AD(a.SO,B,e,a.layoutId)}; NN=function(e){return Math.round(e.width)+"x"+Math.round(e.height)}; II=function(e,a,r){r=r===void 0?xD:r;r.widthe.width*e.height*.2)return{Vy:3,jW:501,errorMessage:"ad("+NN(r)+") to container("+NN(e)+") ratio exceeds limit."};if(r.height>e.height/3-a)return{Vy:3,jW:501,errorMessage:"ad("+NN(r)+") covers container("+NN(e)+") center."}}; Kc4=function(e,a){var r=sc(e.clientMetadata,"metadata_type_ad_placement_config");return new AD(e.SO,a,r,e.layoutId)}; Hm=function(e){return sc(e.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; qN=function(e,a,r,P){eq.call(this,"invideo-overlay",e,a,r,P);this.interactionLoggingClientData=P}; vm=function(e,a,r,P,B,h,c,y,T,X,f,A){hD.call(this,h,e,a,B);this.ZQ=r;this.L=c;this.aH=y;this.Cr=T;this.bW=X;this.Z=f;this.C=A;this.Jz=Kc4(a,r)}; eZL=function(){var e=["metadata_type_invideo_overlay_ad_renderer"];Up().forEach(function(a){e.push(a)}); return{b5:e,VH:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; RI=function(e,a,r,P,B,h,c,y,T,X,f,A,U){hD.call(this,h,e,a,B);this.ZQ=r;this.L=c;this.Y=y;this.aH=T;this.Cr=X;this.bW=f;this.Z=A;this.C=U;this.Jz=Kc4(a,r)}; aPz=function(){for(var e=["metadata_type_invideo_overlay_ad_renderer"],a=g.Z(Up()),r=a.next();!r.done;r=a.next())e.push(r.value);return{b5:e,VH:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; S0=function(e){this.aH=e;this.S=!1}; rT3=function(e,a,r){eq.call(this,"survey",e,{},a,r)}; sq=function(e,a,r,P,B,h,c){hD.call(this,r,e,a,P);this.L=B;this.aH=h;this.bW=c}; PRJ=function(e,a,r,P,B,h,c,y,T,X){this.oz=e;this.aH=a;this.ZQ=r;this.L=P;this.BA=B;this.T=h;this.B=c;this.Cr=y;this.bW=T;this.S=X}; BH4=function(e,a,r,P,B,h,c,y,T,X){this.oz=e;this.aH=a;this.ZQ=r;this.L=P;this.BA=B;this.T=h;this.B=c;this.Cr=y;this.bW=T;this.S=X}; mo=function(e,a,r,P,B,h,c,y,T,X){qs.call(this,e,a,r,P,B,h,c,T);this.KY=y;this.DQ=X}; hZ4=function(){var e=y_4();e.b5.push("metadata_type_ad_info_ad_metadata");return e}; cTN=function(e,a,r,P,B,h,c){this.oz=e;this.aH=a;this.ZQ=r;this.T=P;this.KY=B;this.S=h;this.DQ=c}; oB4=function(e,a,r,P,B,h,c,y){this.oz=e;this.aH=a;this.ZQ=r;this.T=P;this.KY=B;this.S=h;this.bW=c;this.DQ=y}; Fg=function(e,a){this.slotId=a;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=e(this.triggerType)}; MN=function(e,a){this.adPodIndex=e;this.S=a.length;this.adBreakLengthSeconds=a.reduce(function(P,B){return P+B},0); var r=0;for(e+=1;e0}; xR=function(e){return!!(e.aE&&e.slot&&e.layout)}; IE=function(e){var a,r=(a=e.config)==null?void 0:a.adPlacementConfig;e=e.renderer;return!(!r||r.kind==null||!e)}; O3y=function(e){if(!Lj(e.adLayoutMetadata))return!1;e=e.renderingContent;return g.H(e,F0)||g.H(e,Ms)||g.H(e,Z3z)||g.H(e,sp)||g.H(e,mg)?!0:!1}; Hw=function(e){return e.playerVars!==void 0&&e.pings!==void 0&&e.externalVideoId!==void 0}; FJ=function(e){if(!Lj(e.adLayoutMetadata))return!1;e=e.renderingContent;var a=g.H(e,qK);return a?vw(a):(a=g.H(e,RE))?Hw(a):(a=g.H(e,S9))?a.playerVars!==void 0:(a=g.H(e,F0))?a.durationMilliseconds!==void 0:g.H(e,sE)||g.H(e,mk)?!0:!1}; vw=function(e){e=(e.sequentialLayouts||[]).map(function(a){return g.H(a,MK)}); return e.length>0&&e.every(FJ)}; u8=function(e){return Lj(e.adLayoutMetadata)?(e=g.H(e.renderingContent,j9))&&e.pings?!0:!1:!1}; $Qq=function(e){if(!Lj(e.adLayoutMetadata))return!1;if(g.H(e.renderingContent,k34)||g.H(e.renderingContent,dQI))return!0;var a=g.H(e.renderingContent,Kj);return g.H(e.renderingContent,e7)||g.H(a==null?void 0:a.sidePanel,JTq)||g.H(a==null?void 0:a.sidePanel,DQy)||g.H(a==null?void 0:a.sidePanel,V_N)?!0:!1}; YVj=function(e){var a;(a=!e)||(a=e.adSlotMetadata,a=!((a==null?void 0:a.slotId)!==void 0&&(a==null?void 0:a.slotType)!==void 0));if(a||!(Qgj(e)||e.slotEntryTrigger&&e.slotFulfillmentTriggers&&e.slotExpirationTriggers))return!1;var r;e=(r=e.fulfillmentContent)==null?void 0:r.fulfilledLayout;return(r=g.H(e,MK))?FJ(r):(r=g.H(e,a0))?$Qq(r):(r=g.H(e,Wfj))?O3y(r):(r=g.H(e,lPT))?t_4(r):(r=g.H(e,Lfq))?Lj(r.adLayoutMetadata)?g.H(r.renderingContent,YR)?!0:!1:!1:(e=g.H(e,rJ))?u8(e):!1}; Qgj=function(e){var a;e=g.H((a=e.fulfillmentContent)==null?void 0:a.fulfilledLayout,a0);var r;return e&&((r=e.adLayoutMetadata)==null?void 0:r.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&e.layoutExitNormalTriggers===void 0}; w44=function(e){var a;return(e==null?void 0:(a=e.adSlotMetadata)==null?void 0:a.slotType)==="SLOT_TYPE_IN_PLAYER"}; i3I=function(e,a){var r;if((r=e.questions)==null||!r.length||!e.playbackCommands||(a===void 0||!a)&&e.questions.length!==1)return!1;e=g.Z(e.questions);for(a=e.next();!a.done;a=e.next()){a=a.value;var P=r=void 0,B=((r=g.H(a,Pz))==null?void 0:r.surveyAdQuestionCommon)||((P=g.H(a,Bz))==null?void 0:P.surveyAdQuestionCommon);if(!p4z(B))return!1}return!0}; zZ3=function(e){e=((e==null?void 0:e.playerOverlay)||{}).instreamSurveyAdRenderer;var a;if(e)if(e.playbackCommands&&e.questions&&e.questions.length===1){var r,P=((a=g.H(e.questions[0],Pz))==null?void 0:a.surveyAdQuestionCommon)||((r=g.H(e.questions[0],Bz))==null?void 0:r.surveyAdQuestionCommon);a=p4z(P)}else a=!1;else a=!1;return a}; p4z=function(e){if(!e)return!1;e=g.H(e.instreamAdPlayerOverlay,he);var a=g.H(e==null?void 0:e.skipOrPreviewRenderer,L7),r=g.H(e==null?void 0:e.adInfoRenderer,cz);return(g.H(e==null?void 0:e.skipOrPreviewRenderer,o0)||a)&&r?!0:!1}; NHT=function(e){return e.linearAds!=null&&Lj(e.adLayoutMetadata)}; xQO=function(e){return e.linearAd!=null&&e.adVideoStart!=null}; IPN=function(e){if(isNaN(Number(e.timeoutSeconds))||!e.text||!e.ctaButton||!g.H(e.ctaButton,g.nR)||!e.brandImage)return!1;var a;return e.backgroundImage&&g.H(e.backgroundImage,y5)&&((a=g.H(e.backgroundImage,y5))==null?0:a.landscape)?!0:!1}; Tr=function(e,a,r,P,B,h,c,y){g.N.call(this);this.bW=e;this.S=a;this.T=P;this.DQ=B;this.L=h;this.B=c;this.Iz=y}; vBN=function(e,a,r){var P,B=((P=r.adSlots)!=null?P:[]).map(function(y){return g.H(y,X$)}); if(r.yd)if(sc(a.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))a2(e.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId); else{if(e.bW.get().W.G().X("h5_check_forecasting_renderer_for_throttled_midroll")){var h=r.dR.filter(function(y){var T;return((T=y.renderer)==null?void 0:T.clientForecastingAdRenderer)!=null}); h.length!==0?H3T(e.B,h,B,a.slotId,r.ssdaiAdsConfig):a2(e.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId)}else a2(e.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId); qVI(e.L,a)}else{var c;P={R2:Math.round(((h=sc(a.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:h.R2)||0),Sm:(c=sc(a.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:c.Sm};h=sc(a.clientMetadata,"metadata_type_cue_point");H3T(e.B,r.dR,B,a.slotId,r.ssdaiAdsConfig,P,h)}}; sgO=function(e,a,r,P,B,h,c,y){var T=vi(e.DQ.get(),1);if(RZ4(e.bW.get())){var X=fR(e.T.get(),r,P,B,T.clientPlaybackNonce,T.yL,T.daiEnabled,T,h,c);SVl(e,X);a2(e.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return X},a)}else a2(e.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return fR(e.T.get(),r,P,B,T.clientPlaybackNonce,T.yL,T.daiEnabled,T,h,c,y)},a)}; SVl=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next()){var P=r.value;if(P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.fulfilledLayout)if(r=void 0,P.fulfilledLayout.renderingContent)r=sc(P.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(P.fulfilledLayout.rM){P=g.Z(P.fulfilledLayout.rM);for(var B=P.next();!B.done&&(B=B.value,!B.renderingContent||!(r=sc(B.clientMetadata,"metadata_type_player_vars")));B=P.next());}}else r=void 0;if(r){e.Iz.get().W.preloadVideoByPlayerVars(r, 2,300);break}}}; FfT=function(e,a,r,P,B,h,c){a=mQj(a,h,Number(P.prefetchMilliseconds)||0,c);e=a instanceof F?a:Ae(e,P,B,a,r);return e instanceof F?e:[e]}; M_O=function(e,a,r,P,B){var h=rI(e.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");P=[new ds({getAdBreakUrl:P.getAdBreakUrl,R2:0,Sm:0}),new NJ(!0)];e=a.pauseDurationMs?a.lactThresholdMs?{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new VR(e.S,h),slotFulfillmentTriggers:[new yTN(e.S)],slotExpirationTriggers:[new Ag(e.S,B),new EE(e.S,h)],Az:"core",clientMetadata:new S3(P),adSlotLoggingData:r}:new F("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new F("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return e instanceof F?e:[e]}; jg4=function(e){var a,r;return((a=e.renderer)==null?void 0:(r=a.adBreakServiceRenderer)==null?void 0:r.getAdBreakUrl)!==void 0}; Ul=function(e,a,r){if(e.beforeContentVideoIdStartedTrigger)e=e.beforeContentVideoIdStartedTrigger?new j0(vc,a,e.id):new F("Not able to create BeforeContentVideoIdStartedTrigger");else{if(e.layoutIdExitedTrigger){var P;a=(P=e.layoutIdExitedTrigger)!=null&&P.triggeringLayoutId?new Pw(vc,e.layoutIdExitedTrigger.triggeringLayoutId,e.id):new F("Not able to create LayoutIdExitedTrigger")}else{if(e.layoutExitedForReasonTrigger){var B,h;((B=e.layoutExitedForReasonTrigger)==null?0:B.triggeringLayoutId)&&((h= e.layoutExitedForReasonTrigger)==null?0:h.layoutExitReason)?(a=THl(e.layoutExitedForReasonTrigger.layoutExitReason),e=a instanceof F?a:new r7(vc,e.layoutExitedForReasonTrigger.triggeringLayoutId,[a],e.id)):e=new F("Not able to create LayoutIdExitedForReasonTrigger")}else{if(e.onLayoutSelfExitRequestedTrigger){var c;a=(c=e.onLayoutSelfExitRequestedTrigger)!=null&&c.triggeringLayoutId?new fj(vc,e.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,e.id):new F("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(e.onNewPlaybackAfterContentVideoIdTrigger)e= e.onNewPlaybackAfterContentVideoIdTrigger?new Ag(vc,a,e.id):new F("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(e.skipRequestedTrigger){var y;a=(y=e.skipRequestedTrigger)!=null&&y.triggeringLayoutId?new Cj(vc,e.skipRequestedTrigger.triggeringLayoutId,e.id):new F("Not able to create SkipRequestedTrigger")}else if(e.slotIdEnteredTrigger){var T;a=(T=e.slotIdEnteredTrigger)!=null&&T.triggeringSlotId?new G8(vc,e.slotIdEnteredTrigger.triggeringSlotId,e.id):new F("Not able to create SlotIdEnteredTrigger")}else if(e.slotIdExitedTrigger){var X; a=(X=e.slotIdExitedTrigger)!=null&&X.triggeringSlotId?new EE(vc,e.slotIdExitedTrigger.triggeringSlotId,e.id):new F("Not able to create SkipRequestedTrigger")}else if(e.surveySubmittedTrigger){var f;a=(f=e.surveySubmittedTrigger)!=null&&f.triggeringLayoutId?new QR(vc,e.surveySubmittedTrigger.triggeringLayoutId,e.id):new F("Not able to create SurveySubmittedTrigger")}else{if(e.mediaResumedTrigger)e=e.mediaResumedTrigger&&e.id?new X4I(e.id):new F("Not able to create MediaResumedTrigger");else{if(e.closeRequestedTrigger){var A; a=(A=e.closeRequestedTrigger)!=null&&A.triggeringLayoutId?new uy(vc,e.closeRequestedTrigger.triggeringLayoutId,e.id):new F("Not able to create CloseRequestedTrigger")}else if(e.slotIdScheduledTrigger){var U;a=(U=e.slotIdScheduledTrigger)!=null&&U.triggeringSlotId?new VR(vc,e.slotIdScheduledTrigger.triggeringSlotId,e.id):new F("Not able to create SlotIdScheduledTrigger")}else{if(e.mediaTimeRangeTrigger){var C;P=Number((C=e.mediaTimeRangeTrigger)==null?void 0:C.offsetStartMilliseconds);var G;c=Number((G= e.mediaTimeRangeTrigger)==null?void 0:G.offsetEndMilliseconds);isFinite(P)&&isFinite(c)?(G=c,G===-1&&(G=r),r=P>G?new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:P,offsetEndMs:G},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",G===r&&P-500<=G):new ti(P,G),e=r instanceof F?r:new nj(vc,a,r,!1,e.id)):e=new F("Not able to create MediaTimeRangeTrigger")}else if(e.contentVideoIdEndedTrigger)e=e.contentVideoIdEndedTrigger?new K7(vc,a,!1,e.id):new F("Not able to create ContentVideoIdEndedTrigger"); else{if(e.layoutIdEnteredTrigger){var O;a=(O=e.layoutIdEnteredTrigger)!=null&&O.triggeringLayoutId?new aE(vc,e.layoutIdEnteredTrigger.triggeringLayoutId,e.id):new F("Not able to create LayoutIdEnteredTrigger")}else if(e.timeRelativeToLayoutEnterTrigger){var d;a=(d=e.timeRelativeToLayoutEnterTrigger)!=null&&d.triggeringLayoutId?new Ww(vc,Number(e.timeRelativeToLayoutEnterTrigger.durationMs),e.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,e.id):new F("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(e.onDifferentLayoutIdEnteredTrigger){var W; a=(W=e.onDifferentLayoutIdEnteredTrigger)!=null&&W.triggeringLayoutId&&e.onDifferentLayoutIdEnteredTrigger.slotType&&e.onDifferentLayoutIdEnteredTrigger.layoutType?new T8(vc,e.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,e.onDifferentLayoutIdEnteredTrigger.slotType,e.onDifferentLayoutIdEnteredTrigger.layoutType,e.id):new F("Not able to create CloseRequestedTrigger")}else{if(e.liveStreamBreakStartedTrigger)e=e.liveStreamBreakStartedTrigger&&e.id?new oE(vc,e.id):new F("Not able to create LiveStreamBreakStartedTrigger"); else if(e.liveStreamBreakEndedTrigger)e=e.liveStreamBreakEndedTrigger&&e.id?new Bw(vc,e.id):new F("Not able to create LiveStreamBreakEndedTrigger");else{if(e.liveStreamBreakScheduledDurationMatchedTrigger){var V;a=(V=e.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&V.breakDurationMs?new hg(Number(e.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,e.id):new F("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(e.liveStreamBreakScheduledDurationNotMatchedTrigger){var L; a=(L=e.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&L.breakDurationMs?new cw(Number(e.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,e.id):new F("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(e.newSlotScheduledWithBreakDurationTrigger){var z;a=(z=e.newSlotScheduledWithBreakDurationTrigger)!=null&&z.breakDurationMs?new yR(Number(e.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,e.id):new F("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else a= e.prefetchCacheExpiredTrigger?new UE(vc,e.id):new F("Not able to convert an AdsControlflowTrigger.");e=a}a=e}e=a}a=e}e=a}a=e}e=a}a=e}e=a}a=e}e=a}return e}; CR=function(e,a){a.S>=2&&(e.slot_pos=a.adPodIndex);e.autoplay="1"}; Kfy=function(e,a,r,P,B,h,c,y){return a===null?new F("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:a,ActionCompanionAdRenderer:P}):[uMI(e,a,c,h,function(T){var X=T.slotId;T=y(T);var f=P.adLayoutLoggingData,A=new S3([new dw(P),new ii(B)]);X=io(r.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",X);var U={layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Az:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",SO:new Map, layoutExitNormalTriggers:[new Ag(r.S,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:A,jO:T(U),adLayoutLoggingData:f}})]}; epI=function(e,a,r,P,B,h,c,y){return a===null?new F("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:a,TopBannerImageTextIconButtonedLayoutViewModel:P}):[uMI(e,a,c,h,function(T){var X=T.slotId;T=y(T);var f=P.adLayoutLoggingData,A=new S3([new JW(P),new ii(B)]);X=io(r.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",X);var U={layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Az:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", SO:new Map,layoutExitNormalTriggers:[new Ag(r.S,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:A,jO:T(U),adLayoutLoggingData:f}})]}; BwT=function(e,a,r,P,B,h){if(!h)for(a=g.Z(a),h=a.next();!h.done;h=a.next())h=h.value,Gr(e,h.renderer,h.config.adPlacementConfig.kind);e=Array.from(e.values()).filter(function(f){return aSy(f)}); a=[];h=g.Z(e);for(var c=h.next(),y={};!c.done;y={N6:void 0},c=h.next()){y.N6=c.value;c=g.Z(y.N6.q$);for(var T=c.next(),X={};!T.done;X={aq:void 0},T=c.next())X.aq=T.value,T=function(f,A){return function(U){return f.aq.Ym(U,A.N6.instreamVideoAdRenderer.elementId,f.aq.GN)}}(X,y),X.aq.isContentVideoCompanion?a.push(rWj(r,P,B,y.N6.instreamVideoAdRenderer.elementId,X.aq.associatedCompositePlayerBytesLayoutId,X.aq.adSlotLoggingData,T)):e.length>1?a.push(Pil(r,P,B,y.N6.instreamVideoAdRenderer.elementId,X.aq.adSlotLoggingData, function(f,A){return function(U){return f.aq.Ym(U,A.N6.instreamVideoAdRenderer.elementId,f.aq.GN,f.aq.associatedCompositePlayerBytesLayoutId)}}(X,y))):a.push(Pil(r,P,B,y.N6.instreamVideoAdRenderer.elementId,X.aq.adSlotLoggingData,T))}return a}; Gr=function(e,a,r){if(a=hpj(a)){a=g.Z(a);for(var P=a.next();!P.done;P=a.next())if((P=P.value)&&P.externalVideoId){var B=El(e,P.externalVideoId);B.instreamVideoAdRenderer||(B.instreamVideoAdRenderer=P,B.kU=r)}else o9("InstreamVideoAdRenderer without externalVideoId")}}; hpj=function(e){var a=[],r=e.sandwichedLinearAdRenderer&&e.sandwichedLinearAdRenderer.linearAd&&g.H(e.sandwichedLinearAdRenderer.linearAd,RE);if(r)return a.push(r),a;if(e.instreamVideoAdRenderer)return a.push(e.instreamVideoAdRenderer),a;if(e.linearAdSequenceRenderer&&e.linearAdSequenceRenderer.linearAds){e=g.Z(e.linearAdSequenceRenderer.linearAds);for(r=e.next();!r.done;r=e.next())r=r.value,g.H(r,RE)&&a.push(g.H(r,RE));return a}return null}; aSy=function(e){if(e.instreamVideoAdRenderer===void 0)return o9("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var a=g.Z(e.q$),r=a.next();!r.done;r=a.next()){r=r.value;if(r.Ym===void 0)return!1;if(r.GN===void 0)return o9("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(e.kU===void 0||r.Xu===void 0||e.kU!==r.Xu&&r.Xu!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(e.instreamVideoAdRenderer.elementId===void 0)return o9("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:e.kU,"matching APSR kind":r.Xu}),!1}return!0}; El=function(e,a){e.has(a)||e.set(a,{instreamVideoAdRenderer:void 0,kU:void 0,adVideoId:a,q$:[]});return e.get(a)}; b2=function(e,a,r,P,B,h,c,y,T){B?El(e,B).q$.push({mjf:a,Xu:r,isContentVideoCompanion:P,GN:c,associatedCompositePlayerBytesLayoutId:h,adSlotLoggingData:y,Ym:T}):o9("Companion AdPlacementSupportedRenderer without adVideoId")}; te=function(e){var a=0;e=g.Z(e.questions);for(var r=e.next();!r.done;r=e.next())if(r=r.value,r=g.H(r,Pz)||g.H(r,Bz)){var P=void 0;a+=((P=r.surveyAdQuestionCommon)==null?void 0:P.durationMilliseconds)||0}return a}; gJ=function(e){var a,r,P,B,h=((r=g.H((a=e.questions)==null?void 0:a[0],Pz))==null?void 0:r.surveyAdQuestionCommon)||((B=g.H((P=e.questions)==null?void 0:P[0],Bz))==null?void 0:B.surveyAdQuestionCommon),c;a=[].concat(g.UO(((c=e.playbackCommands)==null?void 0:c.instreamAdCompleteCommands)||[]),g.UO((h==null?void 0:h.timeoutCommands)||[]));var y,T,X,f,A,U,C,G,O,d,W,V,L,z,q,M,m,cI,CL,nL;return{impressionCommands:(y=e.playbackCommands)==null?void 0:y.impressionCommands,errorCommands:(T=e.playbackCommands)== null?void 0:T.errorCommands,muteCommands:(X=e.playbackCommands)==null?void 0:X.muteCommands,unmuteCommands:(f=e.playbackCommands)==null?void 0:f.unmuteCommands,pauseCommands:(A=e.playbackCommands)==null?void 0:A.pauseCommands,rewindCommands:(U=e.playbackCommands)==null?void 0:U.rewindCommands,resumeCommands:(C=e.playbackCommands)==null?void 0:C.resumeCommands,skipCommands:(G=e.playbackCommands)==null?void 0:G.skipCommands,progressCommands:(O=e.playbackCommands)==null?void 0:O.progressCommands,q9Q:(d= e.playbackCommands)==null?void 0:d.clickthroughCommands,fullscreenCommands:(W=e.playbackCommands)==null?void 0:W.fullscreenCommands,activeViewViewableCommands:(V=e.playbackCommands)==null?void 0:V.activeViewViewableCommands,activeViewMeasurableCommands:(L=e.playbackCommands)==null?void 0:L.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(z=e.playbackCommands)==null?void 0:z.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(q=e.playbackCommands)== null?void 0:(M=q.activeViewTracking)==null?void 0:M.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(m=e.playbackCommands)==null?void 0:(cI=m.activeViewTracking)==null?void 0:cI.activeViewAudioMeasurableCommands,endFullscreenCommands:(CL=e.playbackCommands)==null?void 0:CL.endFullscreenCommands,abandonCommands:(nL=e.playbackCommands)==null?void 0:nL.abandonCommands,completeCommands:a}}; oQN=function(e,a,r,P,B,h,c){return function(y,T){return cW3(e,T.slotId,y,h,function(X,f){var A=T.layoutId;X=c(X);return ZR(a,A,f,B,X,"LAYOUT_TYPE_SURVEY",[new e3(r),P],r.adLayoutLoggingData)})}}; Twj=function(e,a,r,P,B,h,c){if(!nQO(e))return new F("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:e});var y=e.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[yWy(h,a,r,P,function(T){var X=T.slotId;T=c(T);X=io(B.T.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",X);var f={layoutId:X,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Az:"core"},A=new Pw(B.S,P);return{layoutId:X,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",SO:new Map,layoutExitNormalTriggers:[A], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([new a$(y)]),jO:T(f)}})]}; nQO=function(e){e=g.H(e==null?void 0:e.additionalPlayerOverlay,XrT);if(!e)return!1;var a=e.slidingMessages;return e.title&&a&&a.length!==0?!0:!1}; AW4=function(e,a,r,P,B){var h;if((h=e.playerOverlay)==null||!h.instreamSurveyAdRenderer)return function(){return[]}; if(!zZ3(e))return function(){return new F("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:e})}; var c=e.playerOverlay.instreamSurveyAdRenderer,y=te(c);return y<=0?function(){return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c})}:function(T,X){var f=fSl(T,r,P,function(A){var U=A.slotId; A=X(A);var C=gJ(c);U=io(B.T.get(),"LAYOUT_TYPE_SURVEY",U);var G={layoutId:U,layoutType:"LAYOUT_TYPE_SURVEY",Az:"core"},O=new Pw(B.S,P),d=new Cj(B.S,U),W=new QR(B.S,U),V=new CRz(B.S);return{layoutId:U,layoutType:"LAYOUT_TYPE_SURVEY",SO:new Map,layoutExitNormalTriggers:[O,V],layoutExitSkipTriggers:[d],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[W],tC:[],Az:"core",clientMetadata:new S3([new KC(c),new ii(a),new VF(y/1E3),new l0(C)]),jO:A(G),adLayoutLoggingData:c.adLayoutLoggingData}}); T=Twj(e,r,f.slotId,P,B,T,X);return T instanceof F?T:[f].concat(g.UO(T))}}; gQO=function(e,a,r,P,B,h,c){c=c===void 0?!1:c;var y=[];try{var T=[];if(r.renderer.linearAdSequenceRenderer)var X=function(O){O=UyJ(O.slotId,r,a,B(O),P,h,c);T=O.ZaP;return O.Ml}; else if(r.renderer.instreamVideoAdRenderer)X=function(O){var d=O.slotId;O=B(O);var W=c,V=r.config.adPlacementConfig,L=CiJ(V),z=L.MY,q=L.ub;L=r.renderer.instreamVideoAdRenderer;var M;if(L==null?0:(M=L.playerOverlay)==null?0:M.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var m=Ol(L,W);M=Math.min(z+m.videoLengthSeconds*1E3,q);W=new MN(0,[m.videoLengthSeconds]);q=m.videoLengthSeconds;var cI=m.playerVars,CL=m.instreamAdPlayerOverlayRenderer,nL=m.playerOverlayLayoutRenderer, y3=m.adVideoId,aT=Gz4(r),$N=m.SO;m=m.F9;var F4=L==null?void 0:L.adLayoutLoggingData;L=L==null?void 0:L.sodarExtensionData;d=io(a.T.get(),"LAYOUT_TYPE_MEDIA",d);var ea={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",Az:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",SO:$N,layoutExitNormalTriggers:[new Bw(a.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([new qy(P),new fy(q),new A6(cI),new GI(z),new Ec(M),CL&& new vr(CL),nL&&new RP(nL),new ii(V),new Hr(y3),new zz(W),new Oc(aT),L&&new Cy(L),new o$({current:null}),new t6({}),new ws(m)].filter(EQy)),jO:O(ea),adLayoutLoggingData:F4}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var f=bCj(e,P,r.adSlotLoggingData,X);y.push(f);for(var A=g.Z(T),U=A.next();!U.done;U=A.next()){var C=U.value,G=C(e,B);if(G instanceof F)return G;y.push.apply(y,g.UO(G))}}catch(O){return new F(O,{errorMessage:O.message,AdPlacementRenderer:r,numberOfSurveyRenderers:tYz(r)})}return y}; tYz=function(e){e=(e.renderer.linearAdSequenceRenderer||{}).linearAds;return e!=null&&e.length?e.filter(function(a){var r,P;return((r=g.H(a,RE))==null?void 0:(P=r.playerOverlay)==null?void 0:P.instreamSurveyAdRenderer)!=null}).length:0}; UyJ=function(e,a,r,P,B,h,c){var y=a.config.adPlacementConfig,T=CiJ(y),X=T.MY,f=T.ub;T=(a.renderer.linearAdSequenceRenderer||{}).linearAds;if(T==null||!T.length)throw new TypeError("Expected linear ads");var A=[],U={Bt:X,vr:0,WqW:A};T=T.map(function(G){return ZCO(e,G,U,r,P,y,B,f,c)}).map(function(G,O){O=new MN(O,A); return G(O)}); var C=T.map(function(G){return G.vN}); return{Ml:OCy(r,e,X,C,y,Gz4(a),P,f,h),ZaP:T.map(function(G){return G.lZz})}}; ZCO=function(e,a,r,P,B,h,c,y,T){var X=Ol(g.H(a,RE),T),f=r.Bt,A=r.vr,U=Math.min(f+X.videoLengthSeconds*1E3,y);r.Bt=U;r.vr++;r.WqW.push(X.videoLengthSeconds);var C,G,O=(C=g.H(a,RE))==null?void 0:(G=C.playerOverlay)==null?void 0:G.instreamSurveyAdRenderer;if(X.adVideoId==="nPpU29QrbiU"&&O==null)throw new TypeError("Survey slate media has no survey overlay");return function(d){CR(X.playerVars,d);var W,V,L=X.videoLengthSeconds,z=X.playerVars,q=X.SO,M=X.F9,m=X.instreamAdPlayerOverlayRenderer,cI=X.playerOverlayLayoutRenderer, CL=X.adVideoId,nL=(W=g.H(a,RE))==null?void 0:W.adLayoutLoggingData;W=(V=g.H(a,RE))==null?void 0:V.sodarExtensionData;V=io(P.T.get(),"LAYOUT_TYPE_MEDIA",e);var y3={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",Az:"adapter"};d={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",SO:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"adapter",clientMetadata:new S3([new qy(c),new fy(L),new A6(z),new GI(f),new Ec(U),new b0(A),new o$({current:null}), m&&new vr(m),cI&&new RP(cI),new ii(h),new Hr(CL),new zz(d),W&&new Cy(W),O&&new Y6(O),new t6({}),new ws(M)].filter(EQy)),jO:B(y3),adLayoutLoggingData:nL};L=AW4(g.H(a,RE),h,c,d.layoutId,P);return{vN:d,lZz:L}}}; Ol=function(e,a){if(!e)throw new TypeError("Expected instream video ad renderer");if(!e.playerVars)throw new TypeError("Expected player vars in url encoded string");var r=jX(e.playerVars),P=Number(r.length_seconds);if(isNaN(P))throw new TypeError("Expected valid length seconds in player vars");var B=Number(e.trimmedMaxNonSkippableAdDurationMs);P=isNaN(B)?P:Math.min(P,B/1E3);B=e.playerOverlay||{};B=B.instreamAdPlayerOverlayRenderer===void 0?null:B.instreamAdPlayerOverlayRenderer;var h=e.playerOverlay|| {};h=h.playerOverlayLayoutRenderer===void 0?null:h.playerOverlayLayoutRenderer;var c=r.video_id;c||(c=(c=e.externalVideoId)?c:void 0);if(!c)throw new TypeError("Expected valid video id in IVAR");if(a&&P===0){var y;a=(y=kzz[c])!=null?y:P}else a=P;return{playerVars:r,videoLengthSeconds:a,instreamAdPlayerOverlayRenderer:B,playerOverlayLayoutRenderer:h,adVideoId:c,SO:e.pings?fH(e.pings):new Map,F9:X0(e.pings)}}; Gz4=function(e){e=Number(e.driftRecoveryMs);return isNaN(e)||e<=0?null:e}; CiJ=function(e){var a=e.adTimeOffset||{};e=a.offsetEndMilliseconds;a=Number(a.offsetStartMilliseconds);if(isNaN(a))throw new TypeError("Expected valid start offset");e=Number(e);if(isNaN(e))throw new TypeError("Expected valid end offset");return{MY:a,ub:e}}; dyj=function(e){var a,r=(a=sc(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!r)return null;a=sc(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=e.layoutId,B=sc(e.clientMetadata,"metadata_type_content_cpn"),h=sc(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c=sc(e.clientMetadata,"metadata_type_player_underlay_renderer"),y=sc(e.clientMetadata,"metadata_type_ad_placement_config"),T=sc(e.clientMetadata,"metadata_type_video_length_seconds"); var X=Hc(e.clientMetadata,"metadata_type_layout_enter_ms")&&Hc(e.clientMetadata,"metadata_type_layout_exit_ms")?(sc(e.clientMetadata,"metadata_type_layout_exit_ms")-sc(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xx:P,contentCpn:B,yO:r,Fr:a,instreamAdPlayerOverlayRenderer:h,instreamAdPlayerUnderlayRenderer:c,adPlacementConfig:y,videoLengthSeconds:T,BU:X,inPlayerLayoutId:sc(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sc(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; VYq=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G){P=rI(P,"SLOT_TYPE_PLAYER_BYTES");e=JWj(B,e,c,r,P,T,X);if(e instanceof F)return e;var O;X=(O=sc(e.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:O.layoutId;if(!X)return new F("Invalid adNotify layout");a=Dyz(X,B,h,r,y,a,T,f,A,U,C,G,c);return a instanceof F?a:[e].concat(g.UO(a))}; Dyz=function(e,a,r,P,B,h,c,y,T,X,f,A,U){r=$yj(a,r,P,h,c,y,T,X,f,A,U);if(r instanceof F)return r;e=QPj(a,e,c,B,r);return e instanceof F?e:[].concat(g.UO(e.zG),[e.m8])}; lSz=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C){a=$yj(e,a,r,B,h,y,T,X,f,A,U,C);if(a instanceof F)return a;e=WAJ(e,r,h,c,P,y.QX,a);return e instanceof F?e:e.zG.concat(e.m8)}; $yj=function(e,a,r,P,B,h,c,y,T,X,f,A){var U=kY(P,r,X);return U instanceof R$?new F(U):X.W.G().experiments.FM("html5_refactor_in_player_slot_generation")?function(C){var G=new MN(0,[U.Qn]);C=LAI(a,U.layoutId,U.KE,r,dJ(U.playerVars,U.L0,h,T,G),U.Qn,B,G,c(C),y.get(U.KE.externalVideoId),A);G=[];if(U.KE.playerOverlay.instreamAdPlayerOverlayRenderer){var O=dyj(C);if(!O)return o9("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,C),{layout:C,zG:[]}; G=[Ysy(e,O.contentCpn,O.xx,function(W){return Je(a,W.slotId,"core",O,Ky(f,W))},O.inPlayerSlotId)].concat(g.UO(G)); if(O.instreamAdPlayerUnderlayRenderer&&DR(X)){var d=O.instreamAdPlayerUnderlayRenderer;G=[wrj(e,O.contentCpn,O.xx,function(W){return prL(a,W.slotId,d,O.adPlacementConfig,O.xx,Ky(f,W))})].concat(g.UO(G))}}return{layout:C, zG:G}}:function(C){var G=new MN(0,[U.Qn]); return{layout:LAI(a,U.layoutId,U.KE,r,dJ(U.playerVars,U.L0,h,T,G),U.Qn,B,G,c(C),y.get(U.KE.externalVideoId),A),zG:[]}}}; kY=function(e,a,r){if(!e.playerVars)return new R$("No playerVars available in InstreamVideoAdRenderer.");var P,B;if(e.elementId==null||e.playerVars==null||e.playerOverlay==null||((P=e.playerOverlay)==null?void 0:P.instreamAdPlayerOverlayRenderer)==null&&((B=e.playerOverlay)==null?void 0:B.playerOverlayLayoutRenderer)==null||e.pings==null||e.externalVideoId==null)return new R$("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:e});P=jX(e.playerVars);B=Number(P.length_seconds); isNaN(B)&&(B=0,o9("Expected valid length seconds in player vars but got NaN"));if(r.Cy(a.kind==="AD_PLACEMENT_KIND_START")){if(e.layoutId===void 0)return new R$("Expected server generated layout ID in instreamVideoAdRenderer");a=e.layoutId}else a=e.elementId;return{layoutId:a,KE:e,playerVars:P,L0:e.playerVars,Qn:B}}; dJ=function(e,a,r,P,B){e.iv_load_policy=P;a=jX(a);if(a.cta_conversion_urls)try{e.cta_conversion_urls=JSON.parse(a.cta_conversion_urls)}catch(h){o9(h)}r.n8&&(e.ctrl=r.n8);r.qO&&(e.ytr=r.qO);r.mj&&(e.ytrcc=r.mj);r.isMdxPlayback&&(e.mdx="1");e.vvt&&(e.vss_credentials_token=e.vvt,r.H4&&(e.vss_credentials_token_type=r.H4),r.mdxEnvironment&&(e.mdx_environment=r.mdxEnvironment));CR(e,B);return e}; iC4=function(e){var a=new Map;e=g.Z(e);for(var r=e.next();!r.done;r=e.next())(r=r.value.renderer.remoteSlotsRenderer)&&r.hostElementId&&a.set(r.hostElementId,r);return a}; V5=function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; zpz=function(e){return e!=null}; RpL=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G){for(var O=[],d=g.Z(e),W=d.next();!W.done;W=d.next())if(W=W.value,!Qgj(W)&&!w44(W)){var V=V5(W)&&!!W.slotEntryTrigger.beforeContentVideoIdStartedTrigger,L=T.Cy(V),z=Nw3(W,X,P,r.yL,L);if(z instanceof F)return z;var q=void 0,M={slotId:W.adSlotMetadata.slotId,slotType:W.adSlotMetadata.slotType,slotPhysicalPosition:(q=W.adSlotMetadata.slotPhysicalPosition)!=null?q:1,Az:"core",slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers, slotExpirationTriggers:z.slotExpirationTriggers},m=g.H(W.fulfillmentContent.fulfilledLayout,MK);if(m){if(!FJ(m))return new F("Invalid PlayerBytesAdLayoutRenderer");q=A&&!(V5(W)&&W.slotEntryTrigger.beforeContentVideoIdStartedTrigger);z=z.slotFulfillmentTriggers.some(function(cI){return cI instanceof hg}); L=q?xyT(M,W.adSlotMetadata.triggerEvent,m,r,P,h,X,e,L,U,z,C):ISN(M,W.adSlotMetadata.triggerEvent,m,a,r,P,B,h,c,y,T,X,e,f,L,W.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof F)return L;z=[];G?z.push(new Xi({current:G})):z.push(new Xi({current:null}));V5(W)&&z.push(new x6({F$:V5(W)&&!!W.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));q&&z.push(new t6({}));r.QX&&z.push(new Ly({}));z.push(new zI(V));W=Object.assign({},M,{clientMetadata:new S3(z),fulfilledLayout:L.layout,adSlotLoggingData:W.adSlotMetadata.adSlotLoggingData}); O.push.apply(O,g.UO(L.zG));O.push(W)}else if(V=g.H(W.fulfillmentContent.fulfilledLayout,a0)){if(!$Qq(V))return new F("Invalid PlayerUnderlayAdLayoutRenderer");V=HCN(V,P,r.yL,h,M,W.adSlotMetadata.triggerEvent,W.adSlotMetadata.triggeringSourceLayoutId);if(V instanceof F)return V;W=Object.assign({},M,{clientMetadata:new S3([]),fulfilledLayout:V,adSlotLoggingData:W.adSlotMetadata.adSlotLoggingData});O.push(W)}else if(V=g.H(W.fulfillmentContent.fulfilledLayout,lPT)){if(!t_4(V))return new F("Invalid AboveFeedAdLayoutRenderer"); V=qsL(V,P,r.yL,h,M,W.adSlotMetadata.triggerEvent,W.adSlotMetadata.triggeringSourceLayoutId);if(V instanceof F)return V;W=Object.assign({},M,{clientMetadata:new S3([]),fulfilledLayout:V,adSlotLoggingData:W.adSlotMetadata.adSlotLoggingData});O.push(W)}else if(V=g.H(W.fulfillmentContent.fulfilledLayout,Lfq)){if(!Lj(V.adLayoutMetadata)||!g.H(V.renderingContent,YR))return new F("Invalid BelowPlayerAdLayoutRenderer");V=qsL(V,P,r.yL,h,M,W.adSlotMetadata.triggerEvent,W.adSlotMetadata.triggeringSourceLayoutId); if(V instanceof F)return V;W=Object.assign({},M,{clientMetadata:new S3([]),fulfilledLayout:V,adSlotLoggingData:W.adSlotMetadata.adSlotLoggingData});O.push(W)}else if(V=g.H(W.fulfillmentContent.fulfilledLayout,rJ)){if(!u8(V))return new F("Invalid PlayerBytesSequenceItemAdLayoutRenderer");V=vQT(V,P,r.yL,h,M,W.adSlotMetadata.triggerEvent);if(V instanceof F)return V;W=Object.assign({},M,{clientMetadata:new S3([]),fulfilledLayout:V,adSlotLoggingData:W.adSlotMetadata.adSlotLoggingData});O.push(W)}else return new F("Unable to retrieve a client slot ["+ M.slotType+"] from a given AdSlotRenderer")}return O}; vQT=function(e,a,r,P,B,h){var c={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Az:"core"};a=$Y(e,a,r);return a instanceof F?a:(r=g.H(e.renderingContent,j9))&&r.pings?Object.assign({},c,{renderingContent:e.renderingContent,SO:fH(r.pings)},a,{jO:Ky(P,B)(c),clientMetadata:new S3([new ii(Q5(h))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}):new F("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; qsL=function(e,a,r,P,B,h,c){var y={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Az:"core"};a=$Y(e,a,r);if(a instanceof F)return a;r=[];r.push(new ii(Q5(h)));h==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&c!==void 0&&r.push(new rs(c));return Object.assign({},y,{renderingContent:e.renderingContent,SO:new Map([["impression",SsI(e)]])},a,{jO:Ky(P,B)(y),clientMetadata:new S3(r),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}; HCN=function(e,a,r,P,B,h,c){if(e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(c=g.H(e.renderingContent,Kj))if(c=g.H(c.sidePanel,DQy)){var y={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Az:"core"};a=$Y(e,a,r);e=a instanceof F?a:Object.assign({},y,{renderingContent:e.renderingContent,SO:new Map([["impression",c.impressionPings||[]],["resume",c.resumePings||[]]])},a,{jO:Ky(P,B)(y),clientMetadata:new S3([new ii(Q5(h))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}else e= new F("DismissablePanelTextPortraitImageRenderer is missing");else e=new F("SqueezebackPlayerSidePanelRenderer is missing");else e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.H(e.renderingContent,k34)?(c={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Az:"core"},a=$Y(e,a,r),e=a instanceof F?a:Object.assign({},c,{renderingContent:e.renderingContent,SO:new Map},a,{jO:Ky(P,B)(c),clientMetadata:new S3([new ii(Q5(h))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})): e=new F("CounterfactualRenderer is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?e=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?e=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.H(e.renderingContent,e7)?(h={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType, Az:"core"},a=$Y(e,a,r),e=a instanceof F?a:c?Object.assign({},h,{renderingContent:e.renderingContent,SO:new Map},a,{jO:Ky(P,B)(h),clientMetadata:new S3([new rs(c)]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}):new F("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):e=new F("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.H(e.renderingContent,dQI)? (h={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Az:"core"},a=$Y(e,a,r),e=a instanceof F?a:Object.assign({},h,{renderingContent:e.renderingContent,SO:new Map([])},a,{jO:Ky(P,B)(h),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new S3([])})):e=new F("AdsEngagementPanelSectionListViewModel is missing"):e=new F("LayoutType ["+e.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return e}; xyT=function(e,a,r,P,B,h,c,y,T,X,f,A){if((A==null?void 0:A.R2)===void 0||(A==null?void 0:A.Sm)===void 0)return new F("Cached ad break range from cue point is missing");var U=$Y(r,B,P.yL);if(U instanceof F)return U;U={layoutExitMuteTriggers:[],layoutExitNormalTriggers:U.layoutExitNormalTriggers,layoutExitSkipTriggers:[],tC:[],layoutExitUserInputSubmittedTriggers:[]};if(g.H(r.renderingContent,RE))return e=sPN(e,a,r,U,B,h,y,T,P.yL,c,A.R2,A.Sm),e instanceof F?e:e.xf===void 0?new F("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:e.layout,zG:[e.xf]};var C=g.H(r.renderingContent,qK);if(C){if(!Lj(r.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!vw(C))return new F("Invalid sequential layout");C=C.sequentialLayouts.map(function(G){return G.playerBytesAdLayoutRenderer}); e=myy(e,a,r,U,C,B,P,h,c,T,y,X,A.R2,A.Sm,f);return e instanceof F?e:{layout:e.zx,zG:e.zG}}return new F("Not able to convert a sequential layout")}; myy=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G){var O=FAO(B,U,C);if(O instanceof F)return O;var d=[],W=[];O=g.Z(O);for(var V=O.next();!V.done;V=O.next()){var L=V.value;V=e;var z=B[L.vr],q=L,M=a;L=h;var m=c,cI=y,CL=T,nL=X,y3=f,aT=Wz(z);if(aT instanceof F)V=aT;else{var $N={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,Az:"adapter"};q=MYy(M,z,q,L);q instanceof F?V=q:(V=Object.assign({},$N,l2,{SO:aT,renderingContent:z.renderingContent,clientMetadata:new S3(q),jO:Ky(cI,V)($N), adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}),V=(z=LR(y3,V,L,m.yL,cI,CL,nL,void 0,!0))?z instanceof F?z:{layout:V,xf:z}:new F("Expecting associatedInPlayerSlot"))}if(V instanceof F)return V;d.push(V.layout);W.push(V.xf)}B={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,Az:"core"};a=[new Oc(Number(r.driftRecoveryMs)),new GI(U),new Ec(C),new ii(Q5(a)),new i0(A),new t6({})];G&&a.push(new I$({}));return{zx:Object.assign({},B,P,{rM:d,SO:new Map,clientMetadata:new S3(a), jO:Ky(y,e)(B)}),zG:W}}; sPN=function(e,a,r,P,B,h,c,y,T,X,f,A){if(!FJ(r))return new F("Invalid PlayerBytesAdLayoutRenderer");var U=Wz(r);if(U instanceof F)return U;var C={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,Az:"core"},G=g.H(r.renderingContent,RE);if(!G)return new F("Invalid rendering content for DAI media layout");G=Ol(G,!1);f={Oa:G,vr:0,Bt:f,L$:Math.min(f+G.videoLengthSeconds*1E3,A),Xn:new MN(0,[G.videoLengthSeconds])};var O;A=(O=Number(r.driftRecoveryMs))!=null?O:void 0;a=MYy(a, r,f,B,A);if(a instanceof F)return a;e=Object.assign({},C,P,{SO:U,renderingContent:r.renderingContent,clientMetadata:new S3(a),jO:Ky(h,e)(C),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData});return(B=LR(c,e,B,T,h,X,y,void 0,!0))?B instanceof F?B:{layout:e,xf:B}:new F("Expecting associatedInPlayerSlot")}; ISN=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G,O){var d=$Y(r,h,B.yL);if(d instanceof F)return d;if(g.H(r.renderingContent,RE)){T=jPT([r],B,T);if(T instanceof F)return T;if(T.length!==1)return new F("Only expected one media layout.");e=upN(e,a,r,d,T[0],void 0,"core",P,h,c,y,X,U,C,G,B.yL,A,void 0,O);return e instanceof F?e:{layout:e.layout,zG:e.xf?[e.xf]:[]}}var W=g.H(r.renderingContent,qK);if(W){if(!Lj(r.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!vw(W))return new F("Invalid sequential layout"); W=W.sequentialLayouts.map(function(V){return V.playerBytesAdLayoutRenderer}); e=KAj(e,a,r.adLayoutMetadata,d,W,P,h,B,T,c,y,X,f,A,G,U,C,O);return e instanceof F?e:{layout:e.zx,zG:e.zG}}return new F("Not able to convert a sequential layout")}; KAj=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C,G,O,d,W){var V=new IP({current:null}),L=jPT(B,y,T);if(L instanceof F)return L;T=[];for(var z=[],q=void 0,M=0;M0&&(M.push(W),M.push(new xQ(q.adPodSkipTarget)));(h=X.get(q.externalVideoId))&&M.push(new DE(h));h=M}else h=new F("Invalid vod media renderer")}if(h instanceof F)return h;e=Object.assign({},c,P,{SO:L,renderingContent:r.renderingContent,clientMetadata:new S3(h),jO:Ky(f,e)(c),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData});r=g.H(r.renderingContent,RE);if(!r||!Hw(r))return new F("Invalid meida renderer");A=El(A,r.externalVideoId);A.instreamVideoAdRenderer=r;A.kU="AD_PLACEMENT_KIND_START";return C?(T=LR(U,e,T,O,f,d,G,W,!1),T instanceof F?T:r6O(e.layoutId,U)&&T?{layout:Object.assign({},e,{clientMetadata:new S3(h.concat(new Fp(T)))})}:{layout:e,xf:T}): {layout:e}}; emj=function(e,a,r,P,B){if(!FJ(a))return new F("Invalid PlayerBytesAdLayoutRenderer");var h=g.H(a.renderingContent,F0);if(!h||h.durationMilliseconds===void 0)return new F("Invalid endcap renderer");var c={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Az:"adapter"};P=[new $6(h.durationMilliseconds),new l0({impressionCommands:void 0,abandonCommands:h.abandonCommands?[{commandExecutorCommand:h.abandonCommands}]:void 0,completeCommands:h.completionCommands}),new ii(P), new Bc("LAYOUT_TYPE_ENDCAP")];if(B){P.push(new Ny(B.Xn.adPodIndex-1));P.push(new b0(B.Xn.adPodIndex));var y;P.push(new xQ((y=B.adPodSkipTarget)!=null?y:-1))}return Object.assign({},c,l2,{renderingContent:a.renderingContent,clientMetadata:new S3(P),SO:h.skipPings?new Map([["skip",h.skipPings]]):new Map,jO:Ky(r,e)(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; LR=function(e,a,r,P,B,h,c,y,T){e=e.filter(function(A){return A.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&A.adSlotMetadata.triggeringSourceLayoutId===a.layoutId}); if(e.length!==0){if(e.length!==1)return new F("Invalid InPlayer slot association for the given PlayerBytes layout");e=e[0];c=Nw3(e,h,r,P,c);if(c instanceof F)return c;var X;h={slotId:e.adSlotMetadata.slotId,slotType:e.adSlotMetadata.slotType,slotPhysicalPosition:(X=e.adSlotMetadata.slotPhysicalPosition)!=null?X:1,Az:"core",slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers};X=g.H(e.fulfillmentContent.fulfilledLayout, Wfj);if(!X||!O3y(X))return new F("Invalid InPlayerAdLayoutRenderer");c={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,Az:"core"};r=$Y(X,r,P);if(r instanceof F)return r;P=[];var f=X.adLayoutMetadata.layoutType;T&&P.push(new t6({}));if(f==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")P.push.apply(P,g.UO(P0L(e.adSlotMetadata.triggerEvent,a)));else if(f==="LAYOUT_TYPE_ENDCAP"||f==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){P.push(new ii(Q5(e.adSlotMetadata.triggerEvent))); if(f==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new F("Cannot parse endcap layout since AdUxReadyApi is not provided");y&&P.push(y)}else return new F("Not able to parse an SDF InPlayer layout");B=Object.assign({},c,r,{renderingContent:X.renderingContent,SO:new Map,jO:Ky(B,h)(c),clientMetadata:new S3(P),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},h,{fulfilledLayout:B,clientMetadata:new S3([])})}}; P0L=function(e,a){var r=[];r.push(new ii(Q5(e)));r.push(new rs(a.layoutId));(e=sc(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&r.push(new o$(e));(e=sc(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&r.push(new IP(e));(e=sc(a.clientMetadata,"metadata_type_remote_slots_data"))&&r.push(new DE(e));(e=sc(a.clientMetadata,"metadata_type_ad_next_params"))&&r.push(new $Q(e));(e=sc(a.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&r.push(new QP(e));(e= sc(a.clientMetadata,"metadata_type_ad_pod_info"))&&r.push(new zz(e));(a=sc(a.clientMetadata,"metadata_type_ad_video_id"))&&r.push(new Hr(a));return r}; aEO=function(e,a,r,P,B,h){function c(X){return YY(a,X)} var y=P.Zf.inPlayerSlotId,T={layoutId:P.Zf.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Az:"core"};r={slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:new aE(c,e),slotFulfillmentTriggers:[new G8(c,y)],slotExpirationTriggers:[new EE(c,y),new Ag(c,r)]};e=Object.assign({},T,{layoutExitNormalTriggers:[new Pw(c,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],SO:new Map,clientMetadata:new S3([new jY(P.Zf), new ii(P.adPlacementConfig),B]),jO:Ky(h,r)(T),adLayoutLoggingData:P.Zf.adLayoutLoggingData});return Object.assign({},r,{clientMetadata:new S3([new k6(e)])})}; r6O=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next())if(r=r.value,r.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var P=g.H(r.fulfillmentContent.fulfilledLayout,a0);if(P&&(P=g.H(P.renderingContent,Kj))&&P.associatedPlayerBytesLayoutId===e)return r}}; Nw3=function(e,a,r,P,B){var h=BsL(Ul(e.slotEntryTrigger,r,P),B,e,a);if(h instanceof F)return h;for(var c=[],y=g.Z(e.slotFulfillmentTriggers),T=y.next();!T.done;T=y.next()){T=Ul(T.value,r,P);if(T instanceof F)return T;c.push(T)}c=hmj(c,B,e,a);a=[];e=g.Z(e.slotExpirationTriggers);for(B=e.next();!B.done;B=e.next()){B=Ul(B.value,r,P);if(B instanceof F)return B;a.push(B)}return{slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:a}}; BsL=function(e,a,r,P){return a&&r.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e instanceof j0?new Fg(function(B){return YY(P,B)},r.adSlotMetadata.slotId):e}; hmj=function(e,a,r,P){return a&&r.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?e.map(function(B){return B instanceof G8?new VR(function(h){return YY(P,h)},r.adSlotMetadata.slotId):B}):e}; $Y=function(e,a,r){for(var P=[],B=g.Z(e.layoutExitNormalTriggers||[]),h=B.next();!h.done;h=B.next()){h=Ul(h.value,a,r);if(h instanceof F)return h;P.push(h)}B=[];h=g.Z(e.layoutExitSkipTriggers||[]);for(var c=h.next();!c.done;c=h.next()){c=Ul(c.value,a,r);if(c instanceof F)return c;B.push(c)}h=[];c=g.Z(e.layoutExitMuteTriggers||[]);for(var y=c.next();!y.done;y=c.next()){y=Ul(y.value,a,r);if(y instanceof F)return y;h.push(y)}c=[];e=g.Z(e.layoutExitUserInputSubmittedTriggers||[]);for(y=e.next();!y.done;y= e.next()){y=Ul(y.value,a,r);if(y instanceof F)return y;c.push(y)}return{layoutExitNormalTriggers:P,layoutExitSkipTriggers:B,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:c,tC:[]}}; Wz=function(e){var a=g.H(e.renderingContent,RE);if(a==null?0:a.pings)return fH(a.pings);e=g.H(e.renderingContent,F0);return(e==null?0:e.skipPings)?new Map([["skip",e.skipPings]]):new Map}; MYy=function(e,a,r,P,B){a=g.H(a.renderingContent,RE);if(!a)return new F("Invalid rendering content for DAI media layout");e=[new qy(P),new fy(r.Oa.videoLengthSeconds),new A6(r.Oa.playerVars),new GI(r.Bt),new Ec(r.L$),new b0(r.vr),new ii(Q5(e)),new Hr(r.Oa.adVideoId),new zz(r.Xn),a.sodarExtensionData&&new Cy(a.sodarExtensionData),new o$({current:null}),new t6({}),new ws(X0(a.pings))].filter(zpz);B!==void 0&&e.push(new Oc(B));return e}; FAO=function(e,a,r){e=e.map(function(T){return Ol(g.H(T.renderingContent,RE),!1)}); var P=e.map(function(T){return T.videoLengthSeconds}),B=P.map(function(T,X){return new MN(X,P)}),h=a,c=r,y=[]; e.forEach(function(T,X){c=Math.min(h+T.videoLengthSeconds*1E3,r);CR(T.playerVars,B[X]);y.push({Oa:T,Bt:h,L$:c,vr:X,Xn:B[X]});h=c}); return y}; jPT=function(e,a,r){for(var P=[],B=g.Z(e),h=B.next();!h.done;h=B.next())if(h=g.H(h.value.renderingContent,RE)){if(!Hw(h))return new F("Invalid vod media renderer");P.push(c6I(h))}B=P.map(function(A){return A.Qn}); h=[];for(var c=0,y=0;y0?nL:-1;else if($N= g.H(aT,F0)){aT=E6z(e,a,r,$N,h,O,y,m,nL);if(aT instanceof F){C=aT;break a}aT=aT(U);d.push(aT.UU);W=[].concat(g.UO(aT.aZ),g.UO(W));V=[].concat(g.UO(aT.Lh),g.UO(V));aT.xf&&(CL=[aT.xf].concat(g.UO(CL)))}else if($N=g.H(aT,sE)){if(C===void 0){C=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:$N});break a}aT=g6L(e,a,r,h,$N,M,y,C,O,pm(f,"supports_multi_step_on_desktop"));if(aT instanceof F){C=aT;break a}aT=aT(U);d.push(aT.UU);aT.xf&&CL.push(aT.xf); W=[].concat(g.UO(aT.aZ),g.UO(W));V=[].concat(g.UO(aT.Lh),g.UO(V));L=[].concat(g.UO(aT.bO),g.UO(L));z=[].concat(g.UO(aT.Rh),g.UO(z));q=[M].concat(g.UO(q))}else if(aT=g.H(aT,mk)){aT=Zyj(e,a,r,h,aT,M,y,O);if(aT instanceof F){C=aT;break a}aT=aT(U);d.push(aT.UU);aT.xf&&CL.push(aT.xf);V=[].concat(g.UO(aT.Lh),g.UO(V))}else{C=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}C={rM:d,layoutExitSkipTriggers:W,layoutExitUserInputSubmittedTriggers:L,tC:z,layoutExitMuteTriggers:V,SE:q,zG:CL}}}else a:if(O= Q$N(P,r,f),O instanceof F)C=O;else{d=0;W=[];V=[];L=[];z=[];q=[];M=[];m=new ny({current:null});cI=new IP({current:null});CL=!1;y3=[];nL=-1;G=g.Z(P);for(aT=G.next();!aT.done;aT=G.next())if(aT=aT.value,g.H(aT,S9)){aT=byI(a,r,g.H(aT,S9),y);if(aT instanceof F){C=aT;break a}aT=aT(U);W.push(aT.UU);V=[].concat(g.UO(aT.aZ),g.UO(V));L=[].concat(g.UO(aT.Lh),g.UO(L));aT.xf&&(y3=[aT.xf].concat(g.UO(y3)))}else if(g.H(aT,RE)){nL=kY(g.H(aT,RE),r,f);if(nL instanceof R$){C=new F(nL);break a}aT=new MN(d,O);aT=WNL(a, nL.layoutId,nL.KE,r,dJ(nL.playerVars,nL.L0,c,X,aT),nL.Qn,h,aT,y(U),cI,T.get(nL.KE.externalVideoId),void 0,A);d++;W.push(aT.UU);V=[].concat(g.UO(aT.aZ),g.UO(V));L=[].concat(g.UO(aT.Lh),g.UO(L));CL||(M.push(cI),CL=!0);nL=(nL=nL.KE.adPodSkipTarget)&&nL>0?nL:-1}else if(g.H(aT,F0)){aT=E6z(e,a,r,g.H(aT,F0),h,d,y,cI,nL);if(aT instanceof F){C=aT;break a}aT=aT(U);W.push(aT.UU);V=[].concat(g.UO(aT.aZ),g.UO(V));L=[].concat(g.UO(aT.Lh),g.UO(L));aT.xf&&(y3=[aT.xf].concat(g.UO(y3)))}else if(g.H(aT,sE)){if(C=== void 0){C=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.H(aT,sE)});break a}aT=g6L(e,a,r,h,g.H(aT,sE),m,y,C,d,pm(f,"supports_multi_step_on_desktop"));if(aT instanceof F){C=aT;break a}aT=aT(U);W.push(aT.UU);aT.xf&&y3.push(aT.xf);V=[].concat(g.UO(aT.aZ),g.UO(V));L=[].concat(g.UO(aT.Lh),g.UO(L));z=[].concat(g.UO(aT.bO),g.UO(z));q=[].concat(g.UO(aT.Rh),g.UO(q));M=[m].concat(g.UO(M))}else if(g.H(aT,mk)){aT=Zyj(e,a,r,h,g.H(aT,mk),m,y,d);if(aT instanceof F){C=aT;break a}aT=aT(U);W.push(aT.UU);aT.xf&&y3.push(aT.xf);L=[].concat(g.UO(aT.Lh),g.UO(L))}else{C=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}C={rM:W,layoutExitSkipTriggers:V,layoutExitUserInputSubmittedTriggers:z,tC:q,layoutExitMuteTriggers:L,SE:M,zG:y3}}C instanceof F?U=C:(q=U.slotId,O=C.rM,d=C.layoutExitSkipTriggers,W=C.layoutExitMuteTriggers,V=C.layoutExitUserInputSubmittedTriggers,L=C.SE,U=y(U),z=B?B.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q=B?B.layoutId: io(a.T.get(),z,q),M={layoutId:q,layoutType:z,Az:"core"},U={layout:{layoutId:q,layoutType:z,SO:new Map,layoutExitNormalTriggers:[new fj(a.S,q)],layoutExitSkipTriggers:d,layoutExitMuteTriggers:W,layoutExitUserInputSubmittedTriggers:V,tC:[],Az:"core",clientMetadata:new S3([new yF(O)].concat(g.UO(L))),jO:U(M)},zG:C.zG});return U}}; Q$N=function(e,a,r){var P=[];e=g.Z(e);for(var B=e.next();!B.done;B=e.next())if(B=B.value,g.H(B,RE)){B=kY(g.H(B,RE),a,r);if(B instanceof R$)return new F(B);P.push(B.Qn)}return P}; LNT=function(e,a,r,P,B,h,c,y){if(!i3I(r,y===void 0?!1:y))return new F("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:r});var T=te(r);if(T<=0)return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:r});var X=new ny({current:null}),f=oQN(e,a,r,X,P,h,c);return lEJ(e,P,h,T,B,function(A,U){var C=A.slotId,G=gJ(r);A=c(A);var O,d=(O=zr(a,P,r.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?O: io(a.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",C);C={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Az:"core"};O=f(d,U);var W=sc(O.clientMetadata,"metadata_type_fulfilled_layout");W||o9("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");G=[new ii(P),new $6(T),new l0(G),X];W&&G.push(new Bc(W.layoutType));return{pWd:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",SO:new Map,layoutExitNormalTriggers:[new fj(a.S,d)],layoutExitSkipTriggers:[new Cj(a.S, U.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new QR(a.S,U.layoutId)],tC:[],Az:"core",clientMetadata:new S3(G),jO:A(C)},Bl:O}})}; Ycl=function(e){if(!xQO(e))return!1;var a=g.H(e.adVideoStart,qk);return a?g.H(e.linearAd,RE)&&xR(a)?!0:(o9("Invalid Sandwich with notify"),!1):!1}; wcT=function(e){if(e.linearAds==null)return!1;e=g.H(e.adStart,qk);return e?xR(e)?!0:(o9("Invalid LASR with notify"),!1):!1}; pc4=function(e){if(!NHT(e))return!1;e=g.H(e.adStart,qk);return e?xR(e)?!0:(o9("Invalid LASR with notify"),!1):!1}; vz=function(e,a,r,P,B,h,c,y,T,X){this.L=e;this.T=a;this.S=r;this.bW=P;this.bB=B;this.B=h;this.aH=c;this.sG=y;this.y5=T;this.loadPolicy=X===void 0?1:X}; fR=function(e,a,r,P,B,h,c,y,T,X,f){var A=[];if(a.length===0&&P.length===0&&r.length===0)return A;a=a.filter(IE);var U=r.filter(YVj),C=P.filter(IE),G=new Map,O=iC4(a),d=r.some(function(ea){var EG;return(ea==null?void 0:(EG=ea.adSlotMetadata)==null?void 0:EG.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),W=r.some(function(ea){var EG; return(ea==null?void 0:(EG=ea.adSlotMetadata)==null?void 0:EG.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),V=r.some(function(ea){var EG; return(ea==null?void 0:(EG=ea.adSlotMetadata)==null?void 0:EG.slotType)==="SLOT_TYPE_IN_PLAYER"}),L=r.some(function(ea){var EG,n5; return(ea==null?void 0:(EG=ea.adSlotMetadata)==null?void 0:EG.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(ea==null?void 0:(n5=ea.adSlotMetadata)==null?void 0:n5.slotType)==="SLOT_TYPE_ABOVE_FEED"}); r=r.some(function(ea){var EG;return(ea==null?void 0:(EG=ea.adSlotMetadata)==null?void 0:EG.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(d||W||V||L||r)X=RpL(U,a,y,B,O,e.bB.get(),e.loadPolicy,G,e.bW.get(),e.L.get(),V,c,T,X,f),X instanceof F?o9(X,void 0,void 0,{contentCpn:B}):A.push.apply(A,g.UO(X));X=g.Z(a);for(f=X.next();!f.done;f=X.next())f=f.value,r=iyj(e,G,f,B,h,c,d,y,O,T,U),r instanceof F?o9(r,void 0,void 0,{renderer:f.renderer,config:f.config.adPlacementConfig,kind:f.config.adPlacementConfig.kind,contentCpn:B,daiEnabled:c}):A.push.apply(A,g.UO(r));zm4(e.bW.get())||(h=NsJ(e,C,B,y,O,G),A.push.apply(A,g.UO(h)));if(e.B===null|| c&&!y.s_){var z,q,M;e=y.QX&&a.length===1&&((z=a[0].config)==null?void 0:(q=z.adPlacementConfig)==null?void 0:q.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((M=a[0].renderer)==null?void 0:M.adBreakServiceRenderer);if(!A.length&&!e){var m,cI,CL,nL;o9("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:B,"first APR kind":(m=a[0])==null?void 0:(cI=m.config)==null?void 0:(CL=cI.adPlacementConfig)==null?void 0:CL.kind,renderer:(nL= a[0])==null?void 0:nL.renderer})}return A}z=P.filter(IE);A.push.apply(A,g.UO(BwT(G,z,e.T.get(),e.B,B,d)));if(!A.length){var y3,aT,$N,F4;o9("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:B,daiEnabled:c.toString(),"first APR kind":(y3=a[0])==null?void 0:(aT=y3.config)==null?void 0:($N=aT.adPlacementConfig)==null?void 0:$N.kind,renderer:(F4=a[0])==null?void 0:F4.renderer})}return A}; NsJ=function(e,a,r,P,B,h){function c(U){return Ky(e.bB.get(),U)} var y=[];a=g.Z(a);for(var T=a.next();!T.done;T=a.next()){T=T.value;var X=T.renderer,f=X.sandwichedLinearAdRenderer,A=X.linearAdSequenceRenderer;f&&Ycl(f)?(o9("Found AdNotify with SandwichedLinearAdRenderer"),A=g.H(f.adVideoStart,qk),f=g.H(f.linearAd,RE),Gr(h,X,T.config.adPlacementConfig.kind),X=void 0,A=Dyz((X=A)==null?void 0:X.layout.layoutId,e.T.get(),e.S.get(),T.config.adPlacementConfig,T.adSlotLoggingData,f,r,P,c,B,e.loadPolicy,e.bW.get(),e.bB.get()),A instanceof F?o9(A):y.push.apply(y,g.UO(A))): A&&(!A.adLayoutMetadata&&wcT(A)||A.adLayoutMetadata&&pc4(A))&&(o9("Found AdNotify with LinearAdSequenceRenderer"),Gr(h,X,T.config.adPlacementConfig.kind),X=void 0,f=OyI((X=g.H(A.adStart,qk))==null?void 0:X.layout.layoutId,e.T.get(),e.S.get(),T.config.adPlacementConfig,T.adSlotLoggingData,A.linearAds,Lj(A.adLayoutMetadata)?A.adLayoutMetadata:void 0,r,P,c,B,e.loadPolicy,e.bW.get()),f instanceof F?o9(f):y.push.apply(y,g.UO(f)))}return y}; iyj=function(e,a,r,P,B,h,c,y,T,X,f){function A(W){return Ky(e.bB.get(),W)} var U=r.renderer,C=r.config.adPlacementConfig,G=C.kind,O=r.adSlotLoggingData,d=y.s_&&G==="AD_PLACEMENT_KIND_START";d=h&&!d;if(U.adsEngagementPanelRenderer!=null)return b2(a,r.elementId,G,U.adsEngagementPanelRenderer.isContentVideoEngagementPanel,U.adsEngagementPanelRenderer.adVideoId,U.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.adsEngagementPanelRenderer;W=Ky(e.bB.get(),W);return R0(q,M,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new DS(m),V,L,m.impressionPings,W,U.adsEngagementPanelRenderer.adLayoutLoggingData,z)}),[]; if(U.adsEngagementPanelLayoutViewModel)return b2(a,r.elementId,G,U.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,U.adsEngagementPanelLayoutViewModel.adVideoId,U.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.adsEngagementPanelLayoutViewModel;W=Ky(e.bB.get(),W);return S7(q,M,"LAYOUT_TYPE_PANEL",new VP(m),V,L,W,U.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,z)}),[]; if(U.actionCompanionAdRenderer!=null){if(U.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Kfy(e.T.get(),e.B,e.S.get(),U.actionCompanionAdRenderer,C,O,P,A);b2(a,r.elementId,G,U.actionCompanionAdRenderer.isContentVideoCompanion,U.actionCompanionAdRenderer.adVideoId,U.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.actionCompanionAdRenderer;W=Ky(e.bB.get(),W);return R0(q,M,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new dw(m),V,L,m.impressionPings,W,U.actionCompanionAdRenderer.adLayoutLoggingData,z)})}else if(U.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(U.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return epI(e.T.get(),e.B,e.S.get(),U.topBannerImageTextIconButtonedLayoutViewModel,C,O,P,A); b2(a,r.elementId,G,U.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,U.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,U.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.topBannerImageTextIconButtonedLayoutViewModel;W=Ky(e.bB.get(),W);return S7(q,M,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new JW(m),V,L,W,U.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,z)})}else if(U.imageCompanionAdRenderer)b2(a, r.elementId,G,U.imageCompanionAdRenderer.isContentVideoCompanion,U.imageCompanionAdRenderer.adVideoId,U.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.imageCompanionAdRenderer; W=Ky(e.bB.get(),W);return R0(q,M,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new li(m),V,L,m.impressionPings,W,U.imageCompanionAdRenderer.adLayoutLoggingData,z)}); else if(U.bannerImageLayoutViewModel)b2(a,r.elementId,G,U.bannerImageLayoutViewModel.isContentVideoCompanion,U.bannerImageLayoutViewModel.adVideoId,U.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.bannerImageLayoutViewModel;W=Ky(e.bB.get(),W);return S7(q,M,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new LC(m),V,L,W,U.bannerImageLayoutViewModel.adLayoutLoggingData,z)}); else if(U.shoppingCompanionCarouselRenderer)b2(a,r.elementId,G,U.shoppingCompanionCarouselRenderer.isContentVideoCompanion,U.shoppingCompanionCarouselRenderer.adVideoId,U.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,C,O,function(W,V,L,z){var q=e.S.get(),M=W.slotId,m=U.shoppingCompanionCarouselRenderer;W=Ky(e.bB.get(),W);return R0(q,M,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new YQ(m),V,L,m.impressionPings,W,U.shoppingCompanionCarouselRenderer.adLayoutLoggingData,z)}); else if(U.adBreakServiceRenderer){if(!jg4(r))return[];if(G==="AD_PLACEMENT_KIND_PAUSE")return M_O(e.T.get(),C,O,r.renderer.adBreakServiceRenderer,P);if(G!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&G!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return FfT(e.T.get(),C,O,r.renderer.adBreakServiceRenderer,P,B,h);y.QX||o9("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:G,adPlacementConfig:C,daiEnabledForContentVideo:String(h),isServedFromLiveInfra:String(y.QX),clientPlaybackNonce:y.clientPlaybackNonce}); if(G==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!e.aH)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!e.y5)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");e.y5.H5({adPlacementRenderer:r,contentCpn:P,yL:B});B=e.aH.get().getCurrentTimeSec(1,!1);return xJJ(e.T.get(),r.renderer.adBreakServiceRenderer,C,B,P,O,h)}if(!e.sG)return new F("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); e.sG.H5({adPlacementRenderer:r,contentCpn:P,yL:B})}else{if(U.clientForecastingAdRenderer)return TsL(e.T.get(),e.S.get(),C,O,U.clientForecastingAdRenderer,P,B,A);if(U.invideoOverlayAdRenderer)return UJj(e.T.get(),e.S.get(),C,O,U.invideoOverlayAdRenderer,P,B,A);if(U.instreamAdPlayerOverlayRenderer)return fEj(e.T.get(),e.S.get(),C,O,U.instreamAdPlayerOverlayRenderer,P,A);if((U.linearAdSequenceRenderer||U.instreamVideoAdRenderer)&&d)return gQO(e.T.get(),e.S.get(),r,P,A,X,!e.bW.get().W.G().X("html5_override_ad_video_length_killswitch")); if(U.linearAdSequenceRenderer&&!d){if(c)return[];Gr(a,U,G);if(U.linearAdSequenceRenderer.adLayoutMetadata){if(!NHT(U.linearAdSequenceRenderer))return new F("Received invalid LinearAdSequenceRenderer.")}else if(U.linearAdSequenceRenderer.linearAds==null)return new F("Received invalid LinearAdSequenceRenderer.");if(g.H(U.linearAdSequenceRenderer.adStart,qk)){o9("Found AdNotify in LinearAdSequenceRenderer");r=g.H(U.linearAdSequenceRenderer.adStart,qk);if(!gB4(r))return new F("Invalid AdMessageRenderer."); h=U.linearAdSequenceRenderer.linearAds;return kIL(e.L.get(),e.T.get(),e.S.get(),e.bB.get(),C,O,r,Lj(U.linearAdSequenceRenderer.adLayoutMetadata)?U.linearAdSequenceRenderer.adLayoutMetadata:void 0,h,P,B,y,A,T,e.loadPolicy,e.bW.get())}return $Jz(e.T.get(),e.S.get(),C,O,U.linearAdSequenceRenderer.linearAds,Lj(U.linearAdSequenceRenderer.adLayoutMetadata)?U.linearAdSequenceRenderer.adLayoutMetadata:void 0,P,B,y,A,T,e.loadPolicy,e.bW.get(),f)}if(!U.remoteSlotsRenderer||h){if(U.instreamVideoAdRenderer&& !d){if(c)return[];Gr(a,U,G);return lSz(e.T.get(),e.S.get(),C,O,U.instreamVideoAdRenderer,P,B,y,A,T,e.loadPolicy,e.bW.get(),e.bB.get(),f)}if(U.instreamSurveyAdRenderer)return LNT(e.T.get(),e.S.get(),U.instreamSurveyAdRenderer,C,O,P,A,pm(e.bW.get(),"supports_multi_step_on_desktop"));if(U.sandwichedLinearAdRenderer!=null)return xQO(U.sandwichedLinearAdRenderer)?g.H(U.sandwichedLinearAdRenderer.adVideoStart,qk)?(o9("Found AdNotify in SandwichedLinearAdRenderer"),r=g.H(U.sandwichedLinearAdRenderer.adVideoStart, qk),gB4(r)?(h=g.H(U.sandwichedLinearAdRenderer.linearAd,RE))?VYq(r,h,C,e.L.get(),e.T.get(),e.S.get(),e.bB.get(),O,P,B,y,A,T,e.loadPolicy,e.bW.get()):new F("Missing IVAR from Sandwich"):new F("Invalid AdMessageRenderer.")):$Jz(e.T.get(),e.S.get(),C,O,[U.sandwichedLinearAdRenderer.adVideoStart,U.sandwichedLinearAdRenderer.linearAd],void 0,P,B,y,A,T,e.loadPolicy,e.bW.get()):new F("Received invalid SandwichedLinearAdRenderer.");if(U.videoAdTrackingRenderer!=null)return n64(e.T.get(),e.S.get(),U.videoAdTrackingRenderer, C,O,P,B,y.z0,A)}}return[]}; sl=function(e,a,r,P,B,h,c,y){g.N.call(this);var T=this;this.T=e;this.B=a;this.GX=P;this.aH=B;this.bW=h;this.ZQ=c;this.gg=y;this.S=null;r.get().addListener(this);this.addOnDisposeCallback(function(){r.wP()||r.get().removeListener(T)}); P.get().addListener(this);this.addOnDisposeCallback(function(){P.wP()||P.get().removeListener(T)})}; Mk=function(e,a,r){var P=e.aH.get().getCurrentTimeSec(1,!1);e.bW.get().W.G().UM()&&$D(e.ZQ.get(),"sdai","onopp.1;evt."+r.event+";start."+r.startSecs.toFixed(3)+";d."+r.Ug.toFixed(3));a2(e.T.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var B=e.B.get(),h=a.adPlacementRenderer.renderer.adBreakServiceRenderer,c=a.contentCpn,y=a.adPlacementRenderer.adSlotLoggingData;m6(e.bW.get());var T=e.ZQ;var X=B.bW.get();X=g.eS(X.W.G().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var f=B.bW.get();var A=g.eS(f.W.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");f=r.startSecs*1E3;f={oG:new ti(f,f+r.Ug*1E3),aM:!1,cueProcessedMs:P*1E3};var U=r.startSecs+r.Ug;if(P===0)f.tL=new ti(0,U*1E3);else{A=r.startSecs-A;var C=A-P;f.tL=C<=0?new ti(A*1E3,U*1E3):new ti(Math.floor(P+Math.random()*Math.min(C,X))*1E3,U*1E3)}h=Ae(B,h,c,f,y,[new TI(r)]);F$(B.bW.get())&&$D(T.get(),"abrsm","cpi."+r.identifier+";cps."+r.startSecs+";cpd."+r.Ug+";cts."+P+";rbf."+f.tL.start);T.get().W.U1(r.startSecs- P,f.tL.start/1E3-P);return[h]})}; j7=function(e){var a,r=(a=sc(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!r)return null;a=sc(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=e.layoutId,B=sc(e.clientMetadata,"metadata_type_content_cpn"),h=sc(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c=sc(e.clientMetadata,"metadata_type_player_overlay_layout_renderer"),y=sc(e.clientMetadata,"metadata_type_player_underlay_renderer"),T=sc(e.clientMetadata, "metadata_type_ad_placement_config"),X=sc(e.clientMetadata,"metadata_type_video_length_seconds");var f=Hc(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?sc(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Hc(e.clientMetadata,"metadata_type_layout_enter_ms")&&Hc(e.clientMetadata,"metadata_type_layout_exit_ms")?(sc(e.clientMetadata,"metadata_type_layout_exit_ms")-sc(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xx:P,contentCpn:B,yO:r,Fr:a,instreamAdPlayerOverlayRenderer:h, playerOverlayLayoutRenderer:c,instreamAdPlayerUnderlayRenderer:y,adPlacementConfig:T,videoLengthSeconds:X,BU:f,inPlayerLayoutId:sc(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sc(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; HyL=function(e,a){return IEy(e,a)}; qcL=function(e,a){a=IEy(e,a);if(!a)return null;var r;a.BU=(r=sc(e.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:r.adBreakRemainingLengthSeconds;return a}; IEy=function(e,a){var r,P=(r=sc(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:r.current;if(!P)return null;r=c_I(e,a);return{uI:hWJ(e,a),adPlacementConfig:sc(e.clientMetadata,"metadata_type_ad_placement_config"),n3:r,contentCpn:sc(e.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:sc(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sc(e.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:sc(e.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,BU:void 0,yO:P,xx:e.layoutId,videoLengthSeconds:sc(e.clientMetadata,"metadata_type_video_length_seconds")}}; u2=function(e,a,r,P,B,h,c,y,T){g.N.call(this);this.L=e;this.Z=a;this.C=r;this.B=P;this.S=B;this.T=h;this.bB=c;this.bW=y;this.DQ=T;this.NC=!0}; v6j=function(e,a,r){return wrj(e.S.get(),a.contentCpn,a.xx,function(P){return prL(e.T.get(),P.slotId,r,a.adPlacementConfig,a.xx,Ky(e.bB.get(),P))})}; KR=function(e,a,r,P,B,h,c,y){g.N.call(this);this.T=e;this.S=a;this.B=r;this.bW=P;this.L=B;this.DQ=h;this.aH=c;this.lw=y}; eH=function(e){g.N.call(this);this.S=e}; a2=function(e,a,r,P){e.S().PV(a,P);r=r();e=e.S();e.z$.nH("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,P,r);a=g.Z(r);for(r=a.next();!r.done;r=a.next())a:{P=e;r=r.value;P.z$.nh("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",r);P.z$.nh("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",r);try{var B=P.S;if(g.Wd(r.slotId))throw new F("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(nm(B,r))throw new F("Duplicate registration for slot.",{slotId:r.slotId,slotEntryTriggerType:r.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!B.f_.ek.has(r.slotType))throw new F("No fulfillment adapter factory registered for slot of type: "+r.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!B.f_.YI.has(r.slotType))throw new F("No SlotAdapterFactory registered for slot of type: "+r.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");J1(B,"TRIGGER_CATEGORY_SLOT_ENTRY",r.slotEntryTrigger?[r.slotEntryTrigger]:[]);J1(B,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", r.slotFulfillmentTriggers);J1(B,"TRIGGER_CATEGORY_SLOT_EXPIRATION",r.slotExpirationTriggers);var h=P.S,c=r.slotType+"_"+r.slotPhysicalPosition,y=gm(h,c);if(nm(h,r))throw new F("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");y.set(r.slotId,new uzq(r));h.S.set(c,y)}catch(cI){cI instanceof F&&cI.eZ?(P.z$.RZ("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",cI.eZ,r),o9(cI,r,void 0,void 0,cI.YM)):(P.z$.RZ("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", r),o9(cI,r));break a}nm(P.S,r).Z=!0;try{var T=P.S,X=nm(T,r),f=r.slotEntryTrigger,A=T.f_.uy.get(f.triggerType);A&&(A.Gy("TRIGGER_CATEGORY_SLOT_ENTRY",f,r,null),X.TQ.set(f.triggerId,A));for(var U=g.Z(r.slotFulfillmentTriggers),C=U.next();!C.done;C=U.next()){var G=C.value,O=T.f_.uy.get(G.triggerType);O&&(O.Gy("TRIGGER_CATEGORY_SLOT_FULFILLMENT",G,r,null),X.HW.set(G.triggerId,O))}for(var d=g.Z(r.slotExpirationTriggers),W=d.next();!W.done;W=d.next()){var V=W.value,L=T.f_.uy.get(V.triggerType);L&&(L.Gy("TRIGGER_CATEGORY_SLOT_EXPIRATION", V,r,null),X.N.set(V.triggerId,L))}var z=T.f_.ek.get(r.slotType).get().build(T.B,r);X.D=z;var q=T.f_.YI.get(r.slotType).get().build(T.C,r);q.init();X.T=q}catch(cI){cI instanceof F&&cI.eZ?(P.z$.RZ("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",cI.eZ,r),o9(cI,r,void 0,void 0,cI.YM)):(P.z$.RZ("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",r),o9(cI,r));h1(P,r,!0);break a}P.z$.nh("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",r);P.S.YK(r);for(var M=g.Z(P.T),m=M.next();!m.done;m= M.next())m.value.YK(r);Xb(P,r)}}; aj=function(e,a,r,P,B){g.N.call(this);var h=this;this.T=e;this.B=a;this.Lb=r;this.context=B;this.S=new Map;P.get().addListener(this);this.addOnDisposeCallback(function(){P.wP()||P.get().removeListener(h)})}; qVI=function(e,a){var r=0x8000000000000,P=0,B=0x8000000000000;var h=g.Z(a.slotFulfillmentTriggers);for(var c=h.next();!c.done;c=h.next())if(c=c.value,c instanceof nj){var y=c.S.start;r=Math.min(r,y);P=Math.max(P,c.S.end);c.visible&&(B=Math.min(B,y))}else o9("Found unexpected fulfillment trigger for throttled slot.",a,null,{fulfillmentTrigger:c});h=r;B=B<0x8000000000000&&r0&&Eh(e.Z(),r)}; tO=function(e,a,r,P,B){for(var h=[],c=g.Z(e.wW.values()),y=c.next();!y.done;y=c.next()){var T=y=y.value,X=T.trigger;T=T.slot;if(X.triggerType===a){if(X instanceof hg||X instanceof cw||X instanceof yR){if(B&&X.breakDurationMs!==r)continue;if(!B&&X.breakDurationMs===r)continue;if(P.has(T.slotId))continue}h.push(y)}}h.length>0&&Eh(e.Z(),h)}; r14=function(e,a){a=(a.Ug+1)*1E3;var r=void 0;e=g.Z(e.wW.values());for(var P=e.next();!P.done;P=e.next()){var B=P.value;P=B.trigger;B=B.slot;P instanceof hg&&P.breakDurationMs<=a&&(!r||P.breakDurationMs>r.trigger.breakDurationMs)&&(r={slot:B,trigger:P})}return r}; Po4=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(!e.prefetchModeConfig||!e.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;e=Number(e.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(e)||e<=0?0:Math.floor(Math.random()*e)}; Bm3=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(e.prefetchModeConfig&&e.prefetchModeConfig.cacheFetchRefreshDurationMs&&(e=Number(e.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(e)||e<=0)))return e}; gn=function(e){e.S=null;e.wW.clear();e.T&&e.T.stop();e.C&&e.C.stop();var a;(a=e.B)==null||a.stop();delete e.B}; eO4=function(e){var a=[];e=g.Z(e.wW.values());for(var r=e.next();!r.done;r=e.next())r=r.value.trigger,r instanceof hg&&a.push(r.breakDurationMs);return a}; Z3=function(e){g.N.call(this);this.B=e;this.NC=!0;this.wW=new Map;this.S=new Map;this.T=new Map}; hOL=function(e,a){var r=[];if(a=e.S.get(a.layoutId)){a=g.Z(a);for(var P=a.next();!P.done;P=a.next())(P=e.T.get(P.value.triggerId))&&r.push(P)}return r}; Oi=function(e){g.N.call(this);this.S=e;this.wW=new Map}; c1T=function(e,a){for(var r=[],P=g.Z(e.wW.values()),B=P.next();!B.done;B=P.next())B=B.value,B.trigger instanceof Fg&&B.trigger.slotId===a&&r.push(B);r.length>=1&&Eh(e.S(),r)}; olO=function(e,a){var r={slotId:rI(a,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Az:"surface",clientMetadata:new S3([])},P=Object,B=P.assign;a=io(a,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",r.slotId);a={layoutId:a,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",SO:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"surface", clientMetadata:new S3([]),jO:Nl4(!1,r.slotId,r.slotType,r.slotPhysicalPosition,r.Az,r.slotEntryTrigger,r.slotFulfillmentTriggers,r.slotExpirationTriggers,a,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return B.call(P,{},e,{aE:!0,slot:r,layout:a})}; mQj=function(e,a,r,P){var B=e.kind;P=P?!1:!e.hideCueRangeMarker;switch(B){case "AD_PLACEMENT_KIND_START":return P={oG:new ti(-0x8000000000000,-0x8000000000000),aM:P},r!=null&&(P.tL=new ti(-0x8000000000000,-0x8000000000000)),P;case "AD_PLACEMENT_KIND_END":return P={oG:new ti(0x7ffffffffffff,0x8000000000000),aM:P},r!=null&&(P.tL=new ti(Math.max(0,a-r),0x8000000000000)),P;case "AD_PLACEMENT_KIND_MILLISECONDS":B=e.adTimeOffset;B.offsetStartMilliseconds||o9("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); B.offsetEndMilliseconds||o9("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");e=Number(B.offsetStartMilliseconds);B=Number(B.offsetEndMilliseconds);B===-1&&(B=a);if(Number.isNaN(e)||Number.isNaN(B)||e>B)return new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:e,offsetEndMs:B},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",B===a&&e-500<=B);P={oG:new ti(e,B),aM:P};if(r!=null){e=Math.max(0,e-r);if(e===B)return P;P.tL=new ti(e,B)}return P; default:return new F("AdPlacementKind not supported in convertToRange.",{kind:B,adPlacementConfig:e})}}; nll=function(e){if(!e||!e.adPlacements&&!e.adSlots)return!1;for(var a=g.Z(e.adPlacements||[]),r=a.next();!r.done;r=a.next())if(r=r.value)if(r=r.adPlacementRenderer,r!=null&&(r.config&&r.config.adPlacementConfig&&r.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;e=g.Z(e.adSlots||[]);for(a=e.next();!a.done;a=e.next()){var P=r=void 0;if(((r=g.H(a.value,X$))==null?void 0:(P=r.adSlotMetadata)==null?void 0:P.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; k_=function(e){this.bW=e;this.T=new Map;this.S=new Map;this.B=new Map}; rI=function(e,a){if(dn(e.bW.get())){var r=e.T.get(a)||0;r++;e.T.set(a,r);return a+"_"+r}return g.Ch(16)}; io=function(e,a,r){if(dn(e.bW.get())){var P=e.S.get(a)||0;P++;e.S.set(a,P);return r+"_"+a+"_"+P}return g.Ch(16)}; YY=function(e,a){if(dn(e.bW.get())){var r=e.B.get(a)||0;r++;e.B.set(a,r);return a+"_"+r}return g.Ch(16)}; y14=function(e){var a=[new rs(e.xx),new cc(e.yO),new ii(e.adPlacementConfig),new fy(e.videoLengthSeconds),new VF(e.BU)];e.instreamAdPlayerOverlayRenderer&&a.push(new vr(e.instreamAdPlayerOverlayRenderer));e.playerOverlayLayoutRenderer&&a.push(new RP(e.playerOverlayLayoutRenderer));e.Fr&&a.push(new IP(e.Fr));return a}; Tm4=function(e,a,r,P,B,h){e=r.inPlayerLayoutId?r.inPlayerLayoutId:io(h,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);var c,y,T=r.instreamAdPlayerOverlayRenderer?(c=r.instreamAdPlayerOverlayRenderer)==null?void 0:c.adLayoutLoggingData:(y=r.playerOverlayLayoutRenderer)==null?void 0:y.adLayoutLoggingData;c={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Az:a};return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",SO:new Map,layoutExitNormalTriggers:[new Pw(function(X){return YY(h, X)},r.xx)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:a,clientMetadata:P,jO:B(c),adLayoutLoggingData:T}}; JO=function(e,a){var r=this;this.T=e;this.bW=a;this.S=function(P){return YY(r.T.get(),P)}}; prL=function(e,a,r,P,B,h){r=new S3([new SY(r),new ii(P)]);a=io(e.T.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",a);P={layoutId:a,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Az:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",SO:new Map,layoutExitNormalTriggers:[new Pw(function(c){return YY(e.T.get(),c)},B)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:r,jO:h(P),adLayoutLoggingData:void 0}}; Je=function(e,a,r,P,B){var h=y14(P);return Tm4(a,r,P,new S3(h),B,e.T.get())}; X_j=function(e,a,r,P,B){var h=y14(P);h.push(new ww(P.uI));h.push(new pC(P.n3));return Tm4(a,r,P,new S3(h),B,e.T.get())}; R0=function(e,a,r,P,B,h,c,y,T,X){a=io(e.T.get(),r,a);var f={layoutId:a,layoutType:r,Az:"core"},A=new Map;c&&A.set("impression",c);c=[new T8(e.S,B,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];X&&c.push(new r7(e.S,X,["normal"]));return{layoutId:a,layoutType:r,SO:A,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([P,new ii(h),new rs(B)]),jO:y(f),adLayoutLoggingData:T}}; S7=function(e,a,r,P,B,h,c,y,T){a=io(e.T.get(),r,a);var X={layoutId:a,layoutType:r,Az:"core"},f=[new T8(e.S,B,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];T&&f.push(new r7(e.S,T,["normal"]));return{layoutId:a,layoutType:r,SO:new Map,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([P,new ii(h),new rs(B)]),jO:c(X),adLayoutLoggingData:y}}; pR=function(e,a,r){var P=[];P.push(new XJ(e.S,r));a&&P.push(a);return P}; wJ=function(e,a,r,P,B,h,c){var y={layoutId:a,layoutType:r,Az:"core"};return{layoutId:a,layoutType:r,SO:new Map,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[new uy(e.S,a)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([new Wr(P),new ii(B)]),jO:h(y),adLayoutLoggingData:P.adLayoutLoggingData}}; ZR=function(e,a,r,P,B,h,c,y){var T={layoutId:a,layoutType:h,Az:"core"};return{layoutId:a,layoutType:h,SO:new Map,layoutExitNormalTriggers:[new Pw(e.S,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([new ii(P)].concat(g.UO(c))),jO:B(T),adLayoutLoggingData:y}}; zr=function(e,a,r,P){if(e.bW.get().Cy(a.kind==="AD_PLACEMENT_KIND_START"))if(r===void 0)o9("Expected SSAP layout ID in renderer",void 0,void 0,{caller:P});else return r}; C0q=function(e,a,r,P,B,h,c,y,T,X,f,A,U){e=i2(e,a,r,B,h,c,y,T,A,zr(e,r,P.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),U);a=e.SE;r=new Pc(e.oW);P=e.layoutExitSkipTriggers;X>0&&(a.push(r),a.push(new xQ(X)),P=[]);a.push(new Ny(f));return{UU:{layoutId:e.layoutId,layoutType:e.layoutType,SO:e.SO,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:e.Az,clientMetadata:new S3(a),jO:e.jO,adLayoutLoggingData:e.adLayoutLoggingData}, aZ:P,Lh:e.layoutExitMuteTriggers,bO:e.layoutExitUserInputSubmittedTriggers,Rh:e.tC,xf:e.xf}}; t3T=function(e,a,r,P,B,h,c,y,T,X){a=i2(e,a,r,P,h,new Map,c,function(f){return y(f,T)},void 0,zr(e,r,B.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); e=new QR(e.S,a.oW);r=new Pc(a.oW);X=new Ny(X);return{UU:{layoutId:a.layoutId,layoutType:a.layoutType,SO:a.SO,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:a.Az,clientMetadata:new S3([].concat(g.UO(a.SE),[r,X])),jO:a.jO,adLayoutLoggingData:a.adLayoutLoggingData},aZ:a.layoutExitSkipTriggers,Lh:a.layoutExitMuteTriggers,bO:[].concat(g.UO(a.layoutExitUserInputSubmittedTriggers),[e]),Rh:a.tC,xf:a.xf}}; i2=function(e,a,r,P,B,h,c,y,T,X,f){a=X!=null?X:io(e.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",a);X={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Az:"adapter"};y=y(a);var A=sc(y.clientMetadata,"metadata_type_fulfilled_layout");A||o9("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var U=A?A.layoutId:"";r=[new ii(r),new $6(P),new l0(B)];A&&r.push(new Bc(A.layoutType));f&&r.push(new b0(f));return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", SO:h,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Cj(e.S,U)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"adapter",SE:r,jO:c(X),adLayoutLoggingData:T,xf:y,oW:U}}; LAI=function(e,a,r,P,B,h,c,y,T,X,f){e=fhI(e,a,"core",r,P,B,h,c,y,T,X,void 0,f);return{layoutId:e.layoutId,layoutType:e.layoutType,SO:e.SO,layoutExitNormalTriggers:e.layoutExitNormalTriggers,layoutExitSkipTriggers:e.layoutExitSkipTriggers,layoutExitMuteTriggers:e.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:e.layoutExitUserInputSubmittedTriggers,tC:e.tC,Az:e.Az,clientMetadata:new S3(e.Ll),jO:e.jO,adLayoutLoggingData:e.adLayoutLoggingData}}; WNL=function(e,a,r,P,B,h,c,y,T,X,f,A,U){a=fhI(e,a,"adapter",r,P,B,h,c,y,T,f,A,U);P=a.layoutExitSkipTriggers;B=a.Ll;r.adPodSkipTarget&&r.adPodSkipTarget>0&&(B.push(X),B.push(new xQ(r.adPodSkipTarget)),P=[]);B.push(new Ny(y.adPodIndex));r.isCritical&&(P=[new r7(e.S,a.layoutId,["error"])].concat(g.UO(P)));return{UU:{layoutId:a.layoutId,layoutType:a.layoutType,SO:a.SO,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:a.Az, clientMetadata:new S3(B),jO:a.jO,adLayoutLoggingData:a.adLayoutLoggingData},aZ:P,Lh:a.layoutExitMuteTriggers,bO:a.layoutExitUserInputSubmittedTriggers,Rh:a.tC}}; fhI=function(e,a,r,P,B,h,c,y,T,X,f,A,U){var C={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",Az:r};B=[new ii(B),new zz(T),new Hr(P.externalVideoId),new qy(y),new l0({impressionCommands:P.impressionCommands,abandonCommands:P.onAbandonCommands,completeCommands:P.completeCommands,progressCommands:P.adVideoProgressCommands}),new A6(h),new o$({current:null}),new fy(c)];(h=P.playerOverlay.instreamAdPlayerOverlayRenderer)&&B.push(new vr(h));(c=P.playerOverlay.playerOverlayLayoutRenderer)&&B.push(new RP(c)); A&&B.push(new Uc(A));(A=P.playerUnderlay)&&B.push(new SY(A));y=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER");A=(A=h?h.elementId:c==null?void 0:c.layoutId)?A:io(e.T.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y);B.push(new Pc(A));B.push(new h6(y));B.push(new b0(T.adPodIndex));P.adNextParams&&B.push(new $Q(P.adNextParams));P.shrunkenPlayerBytesConfig&&B.push(new My(P.shrunkenPlayerBytesConfig));P.clickthroughEndpoint&&B.push(new QP(P.clickthroughEndpoint));P.legacyInfoCardVastExtension&&B.push(new QF(P.legacyInfoCardVastExtension)); P.sodarExtensionData&&B.push(new Cy(P.sodarExtensionData));f&&B.push(new DE(f));B.push(new ws(X0(P.pings)));T=fH(P.pings);if(U){a:{U=g.Z(U);for(f=U.next();!f.done;f=U.next())if(f=f.value,f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(h=g.H(f.fulfillmentContent.fulfilledLayout,a0))&&(h=g.H(h.renderingContent,Kj))&&h.associatedPlayerBytesLayoutId===a){U=f;break a}U=void 0}U&&B.push(new mA(U))}return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",SO:T,layoutExitNormalTriggers:[new fj(e.S,a)],layoutExitSkipTriggers:P.skipOffsetMilliseconds? [new Cj(e.S,A)]:[],layoutExitMuteTriggers:[new Cj(e.S,A)],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:r,Ll:B,jO:X(C),adLayoutLoggingData:P.adLayoutLoggingData}}; OCy=function(e,a,r,P,B,h,c,y,T){P.every(function(f){return qJ(f,[],["LAYOUT_TYPE_MEDIA"])})||o9("Unexpect subLayout type for DAI composite layout"); a=io(e.T.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",a);var X={layoutId:a,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Az:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",SO:new Map,layoutExitNormalTriggers:[new Bw(e.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],tC:[],Az:"core",clientMetadata:new S3([new GI(r),new Ec(y),new yF(P),new ii(B),new Oc(h),new t6({}),new i0(T)]),jO:c(X)}}; EQy=function(e){return e!=null}; D3=function(e,a,r){var P=this;this.T=e;this.B=a;this.bW=r;this.S=function(B){return YY(P.T.get(),B)}}; xJJ=function(e,a,r,P,B,h,c){if(!r.prefetchModeConfig)return new F("AdPlacementConfig for Live Prefetch is missing prefetch_config");r=r.prefetchModeConfig;P*=1E3;var y=[];if(!r.breakLengthMs)return new F("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var T=g.Z(r.breakLengthMs),X=T.next();!X.done;X=T.next())if(X=X.value,Number(X)>0){var f=P+Number(r.startTimeOffsetMs),A=f+Number(r.cacheFetchSmearingDurationMs);X={oG:new ti(A,A+Number(X)),aM:!1,tL:new ti(Math.floor(f+Math.random()* Number(r.cacheFetchSmearingDurationMs)),A),cueProcessedMs:P?P:f};f=[];f.push(new I$({}));A=[];A.push(new UE(e.S));A.push(new nBT(e.S));c&&f.push(new t6({}));y.push(Ae(e,a,B,X,h,f,A))}return y}; Ae=function(e,a,r,P,B,h,c){h=h===void 0?[]:h;var y=rI(e.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");c||(c=[],P.tL&&P.tL.start!==P.oG.start&&c.push(new nj(e.S,r,new ti(P.tL.start,P.oG.start),!1)),c.push(new nj(e.S,r,new ti(P.oG.start,P.oG.end),P.aM)));P={getAdBreakUrl:a.getAdBreakUrl,R2:P.oG.start,Sm:P.oG.end,cueProcessedMs:P.cueProcessedMs};a=new D8(e.S,y);h=[new ds(P)].concat(g.UO(h));return{slotId:y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:c, slotExpirationTriggers:[new Ag(e.S,r),new EE(e.S,y),new Jg(e.S,y)],Az:"core",clientMetadata:new S3(h),adSlotLoggingData:B}}; UTO=function(e,a,r){var P=[];r=g.Z(r);for(var B=r.next();!B.done;B=r.next())P.push(A1l(e,a,B.value));return P}; A1l=function(e,a,r){return r.triggeringSlotId!=null&&r.triggeringSlotId===e?r.clone(a):r}; cW3=function(e,a,r,P,B){return Coz(e,a,r,P,B)}; GIT=function(e,a,r,P){var B=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER");return Coz(e,B,a,r,P)}; Coz=function(e,a,r,P,B){var h=new aE(e.S,r),c=[new G8(e.S,a)];e=[new EE(e.S,a),new Ag(e.S,P)];return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(B({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:e},r))]),adSlotLoggingData:void 0}}; lEJ=function(e,a,r,P,B,h){var c=rI(e.T.get(),"SLOT_TYPE_PLAYER_BYTES"),y=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER"),T=io(e.T.get(),"LAYOUT_TYPE_SURVEY",y);P=Vb(e,a,r,P);var X=[new G8(e.S,c)];r=[new EE(e.S,c),new Ag(e.S,r),new uy(e.S,T)];if(P instanceof F)return P;y=h({slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:P,slotFulfillmentTriggers:X,slotExpirationTriggers:r},{slotId:y,layoutId:T});h=y.pWd;y=y.Bl;return[{slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:xY(e,a,c,P),slotFulfillmentTriggers:I0(e,a,c,X),slotExpirationTriggers:r,Az:"core",clientMetadata:new S3([new k6(h),new zI(Hz(a)),new x6({F$:e.F$(a)})]),adSlotLoggingData:B},y]}; Hz=function(e){return e.kind==="AD_PLACEMENT_KIND_START"}; Ysy=function(e,a,r,P,B){B=B?B:rI(e.T.get(),"SLOT_TYPE_IN_PLAYER");r=new aE(e.S,r);var h=[new G8(e.S,B)];e=[new Ag(e.S,a),new EE(e.S,B)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(P({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:r,slotFulfillmentTriggers:h,slotExpirationTriggers:e}))])}}; wrj=function(e,a,r,P){var B=rI(e.T.get(),"SLOT_TYPE_PLAYER_UNDERLAY");r=new aE(e.S,r);var h=[new G8(e.S,B)];e=[new Ag(e.S,a),new EE(e.S,B)];return{slotId:B,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(P({slotId:B,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:r,slotFulfillmentTriggers:h,slotExpirationTriggers:e}))])}}; JWj=function(e,a,r,P,B,h,c){var y=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER"),T=io(e.T.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y);P=GxL(e,P,h,c,T);if(P instanceof F)return P;c=[new G8(e.S,y)];B=[new Ag(e.S,h),new G8(e.S,B),new $R(e.S,B)];r=Ky(r,{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:B});e=e.B.get();h={layoutId:T,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Az:"core"};a={layoutId:T,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", SO:new Map,layoutExitNormalTriggers:[new G3T(e.S,T,a.durationMs)],layoutExitSkipTriggers:[new b3y(e.S,T,a.durationMs)],tC:[new EBT(e.S,T)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Az:"core",clientMetadata:new S3([new Wc(a)]),jO:r(h)};return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:B,clientMetadata:new S3([new k6(a)])}}; A63=function(e,a,r,P,B,h){a=Vb(e,a,r,P);if(a instanceof F)return a;var c=a instanceof nj?new ATI(e.S,r,a.S):null;P=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER");var y=[new G8(e.S,P)];e=[new Ag(e.S,r),new EE(e.S,P)];h=h({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:a,slotFulfillmentTriggers:y,slotExpirationTriggers:e},c);return h instanceof R$?new F(h):{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:y,slotExpirationTriggers:e, Az:"core",clientMetadata:new S3([new k6(h)]),adSlotLoggingData:B}}; Xcy=function(e,a,r,P){var B=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER"),h=new j0(e.S,a),c=[new VR(e.S,B)];e=[new Ag(e.S,a),new EE(e.S,B)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(P({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:e}))]),adSlotLoggingData:r}}; fSl=function(e,a,r,P){var B=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER");r=new aE(e.S,r);var h=[new G8(e.S,B)],c=[new EE(e.S,B),new Ag(e.S,a)];h={slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:r,slotFulfillmentTriggers:h,slotExpirationTriggers:c};return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:[new G8(e.S,B)],slotExpirationTriggers:[new Ag(e.S,a),new EE(e.S,B)],Az:"core",clientMetadata:new S3([new k6(P(h))])}}; yWy=function(e,a,r,P,B){var h=rI(e.T.get(),"SLOT_TYPE_IN_PLAYER");r=new e9(e.S,P,r);P=[new G8(e.S,h)];e=[new Ag(e.S,a)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:P,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(B({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:r,slotFulfillmentTriggers:P,slotExpirationTriggers:e}))])}}; Pil=function(e,a,r,P,B,h){var c=rI(e.T.get(),a);return $_(e,c,a,new aE(e.S,P),[new Ag(e.S,r),new EE(e.S,c),new r7(e.S,P,["error"])],B,h)}; rWj=function(e,a,r,P,B,h,c){var y=rI(e.T.get(),a);return $_(e,y,a,new r7(e.S,B,["normal"]),[new Ag(e.S,r),new EE(e.S,y),new r7(e.S,P,["error"])],h,c)}; uMI=function(e,a,r,P,B){var h=rI(e.T.get(),a);return $_(e,h,a,new j0(e.S,r),[new Ag(e.S,r),new EE(e.S,h)],P,B)}; o6O=function(e,a,r,P,B){r=r?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var h=rI(e.T.get(),r);a=new j0(e.S,a);var c=[new G8(e.S,h)];e=[new EE(e.S,h)];return{slotId:h,slotType:r,slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:c,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(B({slotId:h,slotType:r,slotPhysicalPosition:1,Az:"core",slotEntryTrigger:a,slotFulfillmentTriggers:c,slotExpirationTriggers:e}))]),adSlotLoggingData:P}}; bCj=function(e,a,r,P){var B=rI(e.T.get(),"SLOT_TYPE_PLAYER_BYTES"),h=new oE(e.S),c=[new VR(e.S,B)];e=[new Ag(e.S,a)];return{slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(P({slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:h,slotFulfillmentTriggers:c,slotExpirationTriggers:e})),new t6({})]),adSlotLoggingData:r}}; DJO=function(e,a){return zm4(e.bW.get())?new r7(e.S,a,["normal","error","skipped"]):new r7(e.S,a,["normal"])}; QPj=function(e,a,r,P,B){a=DJO(e,a);e=Nk(e,a,r);B=B({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:e.slotExpirationTriggers,Az:e.Az});return B instanceof F?B:{m8:Object.assign({},e,{clientMetadata:new S3([new k6(B.layout)]),adSlotLoggingData:P}),zG:B.zG}}; WAJ=function(e,a,r,P,B,h,c){r=V33(e,a,r,P);if(r instanceof F)return r;c=c({slotId:r.slotId,slotType:r.slotType,slotPhysicalPosition:r.slotPhysicalPosition,slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:r.slotExpirationTriggers,Az:r.Az});if(c instanceof F)return c;P=[new zI(Hz(a)),new k6(c.layout),new x6({F$:e.F$(a)})];h&&P.push(new Ly({}));return{m8:{slotId:r.slotId,slotType:r.slotType,slotPhysicalPosition:r.slotPhysicalPosition,slotEntryTrigger:xY(e, a,r.slotId,r.slotEntryTrigger),slotFulfillmentTriggers:I0(e,a,r.slotId,r.slotFulfillmentTriggers),slotExpirationTriggers:r.slotExpirationTriggers,Az:r.Az,clientMetadata:new S3(P),adSlotLoggingData:B},zG:c.zG}}; xY=function(e,a,r,P){return e.bW.get().Cy(Hz(a))?new Fg(e.S,r):P}; I0=function(e,a,r,P){return e.bW.get().Cy(Hz(a))?[new VR(e.S,r)]:P}; Nk=function(e,a,r){var P=rI(e.T.get(),"SLOT_TYPE_PLAYER_BYTES"),B=[new G8(e.S,P)];e=[new EE(e.S,P),new Ag(e.S,r)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:B,slotExpirationTriggers:e,Az:"core"}}; V33=function(e,a,r,P){a=Vb(e,a,r,P);return a instanceof F?a:Nk(e,a,r)}; y6I=function(e,a,r,P,B,h){var c=rI(e.T.get(),"SLOT_TYPE_FORECASTING");a=Vb(e,a,r,P);if(a instanceof F)return a;P=[new G8(e.S,c)];e=[new EE(e.S,c),new Ag(e.S,r)];return{slotId:c,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:P,slotExpirationTriggers:e,Az:"core",clientMetadata:new S3([new k6(h({slotId:c,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Az:"core",slotEntryTrigger:a,slotFulfillmentTriggers:P,slotExpirationTriggers:e}))]),adSlotLoggingData:B}}; Elz=function(e,a,r,P,B){var h=!a.hideCueRangeMarker;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new j0(e.S,r);case "AD_PLACEMENT_KIND_MILLISECONDS":return e=mQj(a,P),e instanceof F?e:B(e.oG,h);case "AD_PLACEMENT_KIND_END":return new K7(e.S,r,h);default:return new F("Cannot construct entry trigger",{kind:a.kind})}}; GxL=function(e,a,r,P,B){return Elz(e,a,r,P,function(h,c){return new fPy(e.S,r,h,c,B)})}; Vb=function(e,a,r,P){return Elz(e,a,r,P,function(B,h){return new nj(e.S,r,B,h)})}; $_=function(e,a,r,P,B,h,c){e=[new VR(e.S,a)];return{slotId:a,slotType:r,slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:e,slotExpirationTriggers:B,Az:"core",clientMetadata:new S3([new k6(c({slotId:a,slotType:r,slotPhysicalPosition:1,Az:"core",slotEntryTrigger:P,slotFulfillmentTriggers:e,slotExpirationTriggers:B}))]),adSlotLoggingData:h}}; bm4=function(){}; Qb=function(e,a){g.N.call(this);this.bW=e;this.S=a;this.eventCount=0;this.T=V7().resolve(O3(bm4))}; tSN=function(e,a,r){if(a){var P=a.adLayoutLoggingData;g.S$(g.Fn(),function(){if(e.T!=null){var B=Date.now().toString();P&&g.BU("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:P.serializedAdServingDataEntry},eventTimeMs:B})}},r!=null?r:0)}}; WZ=function(e,a,r,P){Qb.call(this,e,a);this.bW=e;this.DQ=r;this.context=P}; lD=function(){this.S=new Map}; LA=function(e){this.S="pending";this.T=[];this.B=[];try{e(this.L.bind(this),this.reject.bind(this))}catch(a){this.reject(a)}}; gl4=function(){var e,a;return{cY:new LA(function(r,P){e=r;a=P}), resolve:e,reject:a}}; pA=function(e){return Y_(e)?e:wn(e)?new LA(function(a,r){e.then(a,r)}):new LA(function(a){a(e)})}; iD=function(e){return new LA(function(a,r){r(e)})}; zC=function(e){try{return pA(e())}catch(a){return iD(a)}}; x_=function(e,a,r){var P=gl4(),B=P.cY,h=P.resolve,c=P.reject;e.T.push(function(y){if(a)try{var T=a(y);h(T)}catch(X){c(X)}else h(y)}); e.B.push(function(y){if(r)try{var T=r(y);h(T)}catch(X){c(X)}else c(y)}); N5(e);return B}; Ij=function(e,a){return x_(e,void 0,a)}; Zm4=function(e,a){x_(e,function(r){return x_(pA(a()),function(){return r})},function(r){return x_(pA(a()),function(){return iD(r)})})}; N5=function(e){if(e.S==="fulfilled"){var a=e.T;e.T=[];e.B=[];a=g.Z(a);for(var r=a.next();!r.done;r=a.next())r=r.value,r(e.result)}else if(e.S==="rejected")for(a=e.B,e.T=[],e.B=[],a=g.Z(a),r=a.next();!r.done;r=a.next())r=r.value,r(e.error)}; HZ=function(e,a){return OmN(a.call(e))}; q5=function(e){return function r(){return Nj(r,function(P){if(P.T==1)return g.d4(P,2),g.l(P,{cY:pA(e)},4);if(P.T!=2)return P.return(P.S);g.YN(P);return g.pL(P,0)})}()}; OmN=function(e){return zC(function(){return vZ(e,e.next())})}; vZ=function(e,a){return a.done?pA(a.value):Ij(x_(a.value.cY,function(r){return vZ(e,e.next(r))}),function(r){return vZ(e,e.throw(r))})}; Rj=function(e,a){if(e.length===0)return pA(NaN);var r=gl4(),P=r.cY,B=r.resolve,h=e.length;e=g.Z(e.entries());var c=e.next();for(r={};!c.done;r={xH:void 0},c=e.next()){var y=g.Z(c.value);c=y.next().value;y=y.next().value;r.xH=c;Zm4(y,function(T){return function(){P.S==="pending"&&(kx4(a)&&a(T.xH)&&P.S==="pending"?B(T.xH):(--h,h===0&&B(NaN)))}}(r))}return P}; SH=function(e){return e.map(function(a){return pA(a)})}; mP=function(e){var a=e.hours||0;var r=e.minutes||0,P=e.seconds||0;a=P+r*60+a*3600+(e.days||0)*86400+(e.weeks||0)*604800+(e.months||0)*2629800+(e.years||0)*31557600;a<=0?a={hours:0,minutes:0,seconds:0}:(e=a,a=Math.floor(e/3600),e%=3600,r=Math.floor(e/60),P=Math.floor(e%60),a={hours:a,minutes:r,seconds:P});var B=a.hours===void 0?0:a.hours;r=a.minutes===void 0?0:a.minutes;e=a.seconds===void 0?0:a.seconds;P=B>0;a=[];if(P){B=(new Intl.NumberFormat("en-u-nu-latn")).format(B);var h=["fr"],c="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(" "); B="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(si)?B.replace(",","\u00a0"):h.includes(si)?B.replace(",","\u202f"):c.includes(si)?B.replace(",","."):B;a.push(B)}P=P===void 0?!1:P;r=(["af","be","lt"].includes(si)||P)&&r<10?dTq().format(r):(new Intl.NumberFormat("en-u-nu-latn")).format(r);a.push(r);r=dTq().format(e);a.push(r);r=":";"da fi id si sr sr-Latn".split(" ").includes(si)&&(r=".");return a.join(r)}; dTq=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; J1I=function(e,a){var r,P;e=((r=e.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=r.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(r=0;ra;e=r}else e=!1;return e}; g.Ty=function(e,a){return e.QL+"timedtext_video?ref=player&v="+a.videoId}; g.vl4=function(e){var a=this;this.videoData=e;e={};this.S=(e.c1a=function(){var r=[];if(g.nt.isInitialized()){var P="";a.videoData&&a.videoData.pS&&(P=a.videoData.pS+("&r1b="+a.videoData.clientPlaybackNonce));var B={};P=(B.atr_challenge=P,B);QA("bg_v",void 0,"player_att");(P=qhj(P))?(QA("bg_s",void 0,"player_att"),r.push("r1a="+P)):(QA("bg_e",void 0,"player_att"),r.push("r1c=2"))}else QA("bg_e",void 0,"player_att"),window.trayride||window.botguard?r.push("r1c=1"):r.push("r1c=4");r.push("r1d="+g.nt.getState()); return r.join("&")},e.c6a=function(r){return"r6a="+(Number(r.c)^mc())},e.c6b=function(r){return"r6b="+(Number(r.c)^Number(g.IM("CATSTAT",0)))},e); this.videoData&&this.videoData.pS?this.Ej=jX(this.videoData.pS):this.Ej={}}; g.ROl=function(e){if(e.videoData&&e.videoData.pS){for(var a=[e.videoData.pS],r=g.Z(Object.keys(e.S)),P=r.next();!P.done;P=r.next())P=P.value,e.Ej[P]&&e.S[P]&&(P=e.S[P](e.Ej))&&a.push(P);return a.join("&")}return null}; g.XO=function(e,a){Hmj(e,{byW:g.eS(a.experiments,"bg_vm_reinit_threshold"),cspNonce:a.cspNonce,QL:a.QL||""})}; ShL=function(){var e=XMLHttpRequest.prototype.fetch;return!!e&&e.length===3}; sFy=function(e){e=e[n[42]](n[26]);ft[n[62]](e,31);ft[n[44]](e,8);ft[n[83]](e,3);ft[n[44]](e,65);return e[n[64]](n[26])}; Fmj=function(e){mTT=2592E3*(e||1)}; Ao=function(e){e=e===void 0?mTT:e;if(e>0&&!(vON()>(0,g.Ov)()-e*1E3))return 0;e=g.$f("yt-player-quality");if(typeof e==="string"){if(e=g.wE[e],e>0)return e}else if(e instanceof Object)return e.quality;return 0}; U$=function(){var e=g.$f("yt-player-proxima-pref");return e==null?null:e}; MSy=function(){var e=g.$f("yt-player-quality");if(e instanceof Object&&e.quality&&e.previousQuality){if(e.quality>e.previousQuality)return 1;if(e.quality0&&a[0]?e.getAutoplayPolicy(a[0]):e.getAutoplayPolicy("mediaelement");if(BI3[r])return BI3[r]}}catch(P){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Z9=function(e){return e.ZZ||e.o4||e.mutedAutoplay}; hJL=function(e,a){return Z9(e)?a!==1&&a!==2&&a!==0?"AUTOPLAY_STATUS_UNAVAILABLE":e.Ed?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; cDO=function(e,a,r){var P=a.G();e.thirdParty||(e.thirdParty={});P.ancestorOrigins&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{ancestorOrigins:P.ancestorOrigins}));P.X("embeds_enable_autoplay_and_visibility_signals")&&(P.Tm!=null&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(P.Tm)})),P.B8&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFractionSource:P.B8})), e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:gp(),autoplayIntended:Z9(a),autoplayStatus:hJL(a,r)}))}; oIq=function(e){var a=[];e=g.Z(e.split(","));for(var r=e.next();!r.done;r=e.next()){var P=r.value;P&&((r=P.startsWith("!"))&&(P=P.substring(1)),P=P.split("-"),P.length<3||a.push({iE:P[0],platform:P[1],deviceVersion:P[2],Kp:r}))}return a}; TI4=function(e){return oIq(e).map(function(a){return{deviceInterface:nIL[yDL[a.iE]]||0,deviceVersion:a.deviceVersion||"",isSleeping:a.Kp}})}; g.O$=function(e,a){this.id=e;this.yX=a;this.captionTracks=[];this.B=this.L=null;this.xtags="";this.C=!1;this.S=null;this.T="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";e=this.yX.id.split(".");e.length>1&&(this.C=e[1]==="2")}; k$=function(e,a,r,P,B){this.T=e;this.S=a;this.B=r;this.reason=P;this.NF=B===void 0?0:B}; g.dp=function(e,a,r,P){return new k$(g.wE[e]||0,g.wE[a]||0,r,P)}; D9=function(e){if(Jo&&e.NF)return!1;var a=g.wE.auto;return e.T===a&&e.S===a}; $$=function(e){return Vz[e.S||e.T]||"auto"}; XAy=function(e,a){a=g.wE[a];return e.T<=a&&(!e.S||e.S>=a)}; Qz=function(e){return"["+e.T+"-"+e.S+", override: "+(e.B+", reason: "+e.reason+"]")}; W2=function(e,a,r){this.videoInfos=e;this.S=a;this.audioTracks=[];if(this.S){e=new Set;r==null||r({ainfolen:this.S.length});a=g.Z(this.S);for(var P=a.next();!P.done;P=a.next())if(P=P.value,!P.yX||e.has(P.yX.id)){var B=void 0,h=void 0,c=void 0;(c=r)==null||c({atkerr:!!P.yX,itag:P.itag,xtag:P.S,lang:((B=P.yX)==null?void 0:B.name)||"",langid:((h=P.yX)==null?void 0:h.id)||""})}else B=new g.O$(P.id,P.yX),e.add(P.yX.id),this.audioTracks.push(B);r==null||r({atklen:this.audioTracks.length})}}; lf=function(){g.N.apply(this,arguments);this.S=null}; Cpy=function(e,a,r,P,B,h,c){if(e.S)return e.S;var y={},T=new Set,X={};if(Lt(P)){for(var f in P.S)P.S.hasOwnProperty(f)&&(e=P.S[f],X[e.info.vW]=[e.info]);return X}f=fVy(a,P,y);h&&B({aftsrt:Y$(f)});for(var A={},U=g.Z(Object.keys(f)),C=U.next();!C.done;C=U.next()){C=C.value;for(var G=g.Z(f[C]),O=G.next();!O.done;O=G.next()){O=O.value;var d=O.itag,W=void 0,V=C+"_"+(((W=O.video)==null?void 0:W.fps)||0);A.hasOwnProperty(V)?A[V]===!0?X[C].push(O):y[d]=A[V]:(W=wp(a,O,r,P.isLive,T),W!==!0?(c.add(C),y[d]=W, W==="disablevp9hfr"&&(A[V]="disablevp9hfr")):(X[C]=X[C]||[],X[C].push(O),A[V]=!0))}}h&&B({bfflt:Y$(X)});for(var L in X)X.hasOwnProperty(L)&&(P=L,X[P]&&X[P][0].Dw()&&(X[P]=X[P],X[P]=ADT(a,X[P],y),X[P]=Usj(X[P],y)));h&&Object.keys(y).length>0&&B({rjr:XQ(y)});a=g.Z(T.values());for(P=a.next();!P.done;P=a.next())(P=r.L.get(P.value))&&--P.CG;h&&B({aftflt:Y$(X)});e.S=g.eB(X,function(z){return!!z.length}); return e.S}; EIO=function(e,a,r,P,B,h,c,y){y=y===void 0?!1:y;if(a.RO&&c&&c.length>1&&!(a.K8>0||a.Y)){for(var T=a.T||!!B,X=T&&a.J9?h:void 0,f=fVy(a,P),A=[],U=[],C={},G=0;G0&&U&&B&&(f=[c,r],L=B.concat(U).filter(function(z){return z})); if(L.length&&!a.Hj){N$(L,f);if(T){T=[];a=g.Z(L);for(P=a.next();!P.done;P=a.next())T.push(P.value.itag);h({hbdfmt:T.join(".")})}return VU(new W2(L,e,X))}L=VhL(a);L=g.tw(L,y);if(!L){if(A[c])return h=A[c],N$(h),VU(new W2(h,e,X));T&&h({novideo:1});return D7()}a.Ge&&(L==="1"||L==="1h")&&A[r]&&(c=x$(A[L]),f=x$(A[r]),f>c?L=r:f===c&&$sT(A[r])&&(L=r));L==="9"&&A.h&&x$(A.h)>x$(A["9"])&&(L="h");a.T$&&P.isLive&&L==="("&&A.H&&x$(A["("])<1440&&(L="H");T&&h({vfmly:IX(L)});a=A[L];if(!a.length)return T&&h({novfmly:IX(L)}), D7();N$(a);return VU(new W2(a,e,X))}; thy=function(e,a){var r=!(!e.m&&!e.M),P=!(!e.mac3&&!e.MAC3),B=!(!e.meac3&&!e.MEAC3);e=!(!e.i&&!e.I);a.Yf=e;return r||P||B||e}; $sT=function(e){e=g.Z(e);for(var a=e.next();!a.done;a=e.next())if(a=a.value,a.itag&&Q2z.has(a.itag))return!0;return!1}; ZHJ=function(e){e=g.Z(e);for(var a=e.next();!a.done;a=e.next())if(a.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; IX=function(e){switch(e){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return e}}; Y$=function(e){var a=[],r;for(r in e)if(e.hasOwnProperty(r)){var P=r;a.push(IX(P));P=g.Z(e[P]);for(var B=P.next();!B.done;B=P.next())a.push(B.value.itag)}return a.join(".")}; bHz=function(e,a,r,P,B,h){var c={},y={};g.K5(a,function(T,X){T=T.filter(function(f){var A=f.itag;if(!f.DX)return y[A]="noenc",!1;if(h.h9&&f.vW==="(h"&&h.bv)return y[A]="lichdr",!1;if(!e.C&&f.vW==="1e")return y[A]="noav1enc",!1;if(f.vW==="("||f.vW==="(h"){if(e.B&&r&&r.flavor==="widevine"){var U=f.mimeType+"; experimental=allowed";(U=!!f.DX[r.flavor]&&!!r.S[U])||(y[A]=f.DX[r.flavor]?"unspt":"noflv");return U}if(!H2(e,q$.CRYPTOBLOCKFORMAT)&&!e.Lf||e.TQ)return y[A]=e.TQ?"disvp":"vpsub",!1}return r&&f.DX[r.flavor]&& r.S[f.mimeType]?!0:(y[A]=r?f.DX[r.flavor]?"unspt":"noflv":"nosys",!1)}); T.length&&(c[X]=T)}); P&&Object.entries(y).length&&B({rjr:XQ(y)});return c}; Usj=function(e,a){var r=gF(e,function(P,B){return B.video.fps>32?Math.min(P,B.video.width):P},Infinity); r32||P.video.widthe.Z)return"max"+e.Z;if(e.k$&&a.vW==="h"&&a.video&&a.video.qualityOrdinal>1080)return"blkhigh264";if(a.vW==="(h"&&!r.D)return"enchdr";if((P===void 0?0:P)&&sd(a)&&!e.e1)return"blk51live";if((a.vW==="MAC3"||a.vW==="mac3")&&!e.L)return"blkac3";if((a.vW==="MEAC3"||a.vW==="meac3")&&!e.C)return"blkeac3";if(a.vW==="M"||a.vW==="m")return"blkaac51"; if((a.vW==="so"||a.vW==="sa")&&!e.HW)return"blkamb";if(!e.h9&&lul(a)&&(!r.C||a.vW!=="1e"))return"cbc";if(!r.C&&lul(a)&&a.vW==="1e")return"cbcav1";if((a.vW==="i"||a.vW==="I")&&!e.dW)return"blkiamf";var h;if(e.sM&&((h=a.audio)==null?void 0:h.T)===!0)return"blkvbcabr";var c,y;if(e.ym&&(a.vW==="1"||a.vW==="1h"||r.C&&a.vW==="1e")&&((c=a.video)==null?0:c.qualityOrdinal)&&((y=a.video)==null?void 0:y.qualityOrdinal)>e.ym)return"av1cap";P=r.L.get(a.vW);if(!e.ID&&P&&P.CG>0)return B.add(a.vW),"byerr";var T; if((T=a.video)==null?0:T.fps>32){if(!r.Eo&&!H2(r,q$.FRAMERATE))return"capHfr";if(e.PW&&a.video.qualityOrdinal>=4320)return"blk8khfr";if(IH(a)&&e.RL&&a.DX&&a.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(e.NF&&a.NF>e.NF)return"ratecap";if(e.TQ>0&&a.Dw()&&a.video.height>e.TQ)return"mvhcap";e=WgN(r,a);return e!==!0?e:!0}; N$=function(e,a){a=a===void 0?[]:a;g.Sa(e,function(r,P){var B=P.NF-r.NF;if(!r.Dw()||!P.Dw())return B;var h=P.video.height*P.video.width-r.video.height*r.video.width;!h&&a&&a.length>0&&(r=a.indexOf(r.vW)+1,P=a.indexOf(P.vW)+1,h=r===0||P===0?P||-1:r-P);h||(h=B);return h})}; g.v2=function(e,a){this[n[16]]=e;this[n[47]]=a===void 0?!1:a;this[n[20]]=this[n[8]]=this[n[15]]=n[26];this[n[4]]={};this[n[12]]=n[26]}; Sj=function(e){RX(e);return e[n[20]]}; s$=function(e){return e[n[16]]?e[n[16]][n[32]](n[24]):e[n[15]]===n[24]}; lVO=function(e){RX(e);return g.r6(e[n[4]],function(a){return a!==null})}; mJ=function(e){RX(e);var a=decodeURIComponent(e[n[22]](n[0])||n[26])[n[42]](n[46]);return e[n[8]]===n[31]&&a[n[10]]>1&&!!a[1]}; FO=function(e,a){a=a===void 0?!1:a;RX(e);if(e[n[8]]!==n[31]){var r=e[n[52]]();r[n[21]](n[66],n[29]);return r}var P=e[n[35]]();r=new g.ri(P);var B=e[n[22]](n[81]),h=decodeURIComponent(e[n[22]](n[0])||n[26])[n[42]](n[46]);if(B&&h&&h[n[10]]>1&&h[1])return P=r.S,e=P[n[77]](/^[^.]*/,n[26]),g.BP(r,(P[n[3]](n[27])===0?n[27]:n[63])+B+n[70]+h[1]+e),r=new g.v2(r[n[19]]()),r[n[21]](n[23],n[29]),r;if(a)return r=e[n[52]](),r[n[21]](n[23],n[29]),r;B=r.S[n[7]](n[37]);r.S[n[7]](n[43])?(g.BP(r,n[49]),P=r[n[19]]()): r.S[n[7]](n[87])?(g.BP(r,n[51]),P=r[n[19]]()):(r=tsy(P),xl(r)&&(P=r));r=new g.v2(P);r[n[21]](n[84],n[29]);B&&r[n[21]](n[75],n[59]);return r}; RX=function(e){if(e[n[16]]){if(!(xl(e[n[16]])||e[n[16]][n[32]](n[24])||e[n[16]][n[32]](n[82])||e[n[16]][n[32]](n[76])))throw new g.I6(n[86],e[n[16]]);var a=g.Xu(e[n[16]]);e[n[15]]=a.C;e[n[20]]=a.S+(a.B!=null?n[60]+a.B:n[26]);var r=a.T;if(r[n[32]](n[31]))e[n[8]]=n[31],r=r[n[50]](14);else if(r[n[32]](n[80]))e[n[8]]=n[80],r=r[n[50]](13);else if(r[n[32]](n[78])){var P=r[n[3]](n[56],12),B=r[n[3]](n[56],P+1);P>0&&B>0?(e[n[8]]=r[n[50]](0,B),r=r[n[50]](B+1)):(e[n[8]]=r,r=n[26])}else e[n[8]]=r,r=n[26];P=e[n[4]]; e[n[4]]=LgO(r);Object[n[41]](e[n[4]],YpO(a.L.toString()));Object[n[41]](e[n[4]],P);e[n[4]][n[33]]===n[48]&&(delete e[n[4]][n[33]],e[n[8]]+=n[55]);e[n[16]]=n[26];e[n[12]]=n[26];e[n[47]]&&(RX(e),a=e[n[4]][n[25]]||null)&&(a=wAj[0](a),e[n[21]](n[25],a))}}; pAL=function(e){RX(e);var a=e[n[15]]+(e[n[15]]?n[36]:n[79])+e[n[20]]+e[n[8]];if(lVO(e)){var r=[];g.K5(e[n[4]],function(P,B){P!==null&&r[n[2]](B+n[53]+P)}); a+=n[30]+r[n[64]](n[61])}return a}; LgO=function(e){e=e[n[42]](n[56]);var a=0;e[0]||a++;for(var r={};a0?iHz(a,P[n[50]](0,B),P[n[50]](B+1)):P&&(a[P]=n[26])}return a}; iHz=function(e,a,r){if(a===n[73]){var P;(P=r[n[3]](n[53]))>=0?(a=n[58]+r[n[50]](0,P),r=r[n[50]](P+1)):(P=r[n[3]](n[57]))>=0&&(a=n[58]+r[n[50]](0,P),r=r[n[50]](P+3))}e[a]=r}; M$=function(e){var a=g.H(e,zJJ)||e[n[14]];e={Nw:!1,jo:n[26],SW:n[26],s:n[26]};if(!a)return e;a=jX(a);e[n[1]]=!0;e[n[89]]=a[n[12]];e[n[88]]=a[n[69]];e[n[54]]=a[n[54]];return e}; jj=function(e,a,r,P,B,h,c,y,T){this.lW=e;this.startTime=a;this.duration=r;this.ingestionTime=P;this.sourceURL=B;this.Eg=T;this.endTime=a+r;this.S=c||0;this.range=h||null;this.pending=y||!1;this.Eg=T||null}; g.uf=function(){this.segments=[];this.S=null;this.T=!0;this.B=""}; NI3=function(e,a){if(a>e.q5())e.segments=[];else{var r=bN(e.segments,function(P){return P.lW>=a},e); r>0&&e.segments.splice(0,r)}}; Kt=function(e,a,r,P,B){B=B===void 0?!1:B;this.data=e;this.offset=a;this.size=r;this.type=P;this.S=(this.T=B)?0:8;this.dataOffset=this.offset+this.S}; ev=function(e){var a=e.data.getUint8(e.offset+e.S);e.S+=1;return a}; aO=function(e){var a=e.data.getUint16(e.offset+e.S);e.S+=2;return a}; rS=function(e){var a=e.data.getInt32(e.offset+e.S);e.S+=4;return a}; P5=function(e){var a=e.data.getUint32(e.offset+e.S);e.S+=4;return a}; B5=function(e){var a=e.data;var r=e.offset+e.S;a=a.getUint32(r)*4294967296+a.getUint32(r+4);e.S+=8;return a}; hM=function(e,a){a=a===void 0?NaN:a;if(isNaN(a))var r=e.size;else for(r=e.S;r1?Math.ceil(B*a):Math.floor(B*a))}e.skip(1);r=ev(e)<<16|aO(e);if(r&256){P=r&1;B=r&4;var h=r&512,c=r&1024,y=r&2048;r=P5(e);P&&e.skip(4);B&&e.skip(4);P=(h?4:0)+(c?4:0)+(y?4:0);for(B=0;B1?Math.ceil(c*a):Math.floor(c*a)),e.skip(P)}}}; AM=function(e){e=new DataView(e.buffer,e.byteOffset,e.byteLength);return(e=g.XH(e,0,1836476516))?g.fW(e):NaN}; j2I=function(e){var a=g.XH(e,0,1937011556);if(!a)return null;a=Uk(e,a.dataOffset+8,1635148593)||Uk(e,a.dataOffset+8,1635135537);if(!a)return null;var r=Uk(e,a.dataOffset+78,1936995172),P=Uk(e,a.dataOffset+78,1937126244);if(!P)return null;a=null;if(r)switch(r.skip(4),ev(r)){default:a=0;break;case 1:a=2;break;case 2:a=1;break;case 3:a=255}var B=r=null,h=null;if(P=Uk(e,P.dataOffset,1886547818)){var c=Uk(e,P.dataOffset,1886546020),y=Uk(e,P.dataOffset,2037673328);if(!y&&(y=Uk(e,P.dataOffset,1836279920), !y))return null;c&&(c.skip(4),r=rS(c)/65536,h=rS(c)/65536,B=rS(c)/65536);e=xs4(y);e=new DataView(e.buffer,e.byteOffset+8,e.byteLength-8);return new FgJ(a,r,h,B,e)}return null}; Uk=function(e,a,r){for(;CW(e,a);){var P=GZ(e,a);if(P.type===r)return P;a+=P.size}return null}; g.XH=function(e,a,r){for(;CW(e,a);){var P=GZ(e,a);if(P.type===r)return P;a=Ek(P.type)?a+8:a+P.size}return null}; g.b_=function(e){if(e.data.getUint8(e.dataOffset)){var a=e.data;e=e.dataOffset+4;a=a.getUint32(e)*4294967296+a.getUint32(e+4)}else a=e.data.getUint32(e.dataOffset+4);return a}; GZ=function(e,a){var r=e.getUint32(a),P=e.getUint32(a+4);return new Kt(e,a,r,P)}; g.fW=function(e){var a=e.data.getUint8(e.dataOffset)?20:12;return e.data.getUint32(e.dataOffset+a)}; u0L=function(e){e=new Kt(e.data,e.offset,e.size,e.type,e.T);var a=ev(e);e.skip(7);var r=P5(e);if(a===0){a=P5(e);var P=P5(e)}else a=B5(e),P=B5(e);e.skip(2);for(var B=aO(e),h=[],c=[],y=0;y122)return!1}return!0}; Ek=function(e){return e===1701082227||e===1836019558||e===1836019574||e===1835297121||e===1835626086||e===1937007212||e===1953653094||e===1953653099||e===1836475768}; Kgq=function(e){e.skip(4);return{fwm:hM(e,0),value:hM(e,0),timescale:P5(e),dgo:P5(e),eventDuration:P5(e),id:P5(e),Xj:hM(e),offset:e.offset}}; g.e9L=function(e){var a=Uk(e,0,1701671783);if(!a)return null;var r=Kgq(a),P=r.fwm;r=TZ(r.Xj);if(e=Uk(e,a.offset+a.size,1701671783))if(e=Kgq(e),e=TZ(e.Xj),r&&e){a=g.Z(Object.keys(e));for(var B=a.next();!B.done;B=a.next())B=B.value,r[B]=e[B]}return r?new yv(r,P):null}; tM=function(e,a){for(var r=Uk(e,0,a);r;){var P=r;P.type=1936419184;P.data.setUint32(P.offset+4,1936419184);r=Uk(e,r.offset+r.size,a)}}; g.gS=function(e,a){for(var r=0,P=[];CW(e,r);){var B=GZ(e,r);B.type===a&&P.push(B);r=Ek(B.type)?r+8:r+B.size}return P}; acT=function(e,a){var r=g.XH(e,0,1937011556),P=g.XH(e,0,1953654136);if(!r||!P||e.getUint32(r.offset+12)>=2)return null;var B=new DataView(a.buffer,a.byteOffset,a.length),h=g.XH(B,0,1937011556);if(!h)return null;a=B.getUint32(h.dataOffset+8);P=B.getUint32(h.dataOffset+12);if(P!==1701733217&&P!==1701733238)return null;P=new IVO(e.byteLength+a);c5(P,e,0,r.offset+12);P.data.setInt32(P.offset,2);P.offset+=4;c5(P,e,r.offset+16,r.size-16);c5(P,B,B.byteOffset+h.dataOffset+8,a);c5(P,e,r.offset+r.size,e.byteLength- (r.offset+r.size));r=g.Z([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(B=r.next();!B.done;B=r.next())B=g.XH(e,0,B.value),P.data.setUint32(B.offset,B.size+a);e=g.XH(P.data,0,1953654136);P.data.setUint32(e.offset+16,2);return P.data}; rXT=function(e){var a=g.XH(e,0,1937011556);if(!a)return null;var r=e.getUint32(a.dataOffset+12);if(r!==1701733217&&r!==1701733238)return null;a=Uk(e,a.offset+24+(r===1701733217?28:78),1936289382);if(!a)return null;r=Uk(e,a.offset+8,1935894637);if(!r||e.getUint32(r.offset+12)!==1667392371)return null;a=Uk(e,a.offset+8,1935894633);if(!a)return null;a=Uk(e,a.offset+8,1952804451);if(!a)return null;r=new Uint8Array(16);for(var P=0;P<16;P++)r[P]=e.getInt8(a.offset+16+P);return r}; Zd=function(e,a){this.S=e;this.pos=0;this.start=a||0}; Ok=function(e){return e.pos>=e.S.byteLength}; Vv=function(e,a,r){var P=new Zd(r);if(!kk(P,e))return!1;P=dS(P);if(!JM(P,a))return!1;for(e=0;a;)a>>>=8,e++;a=P.start+P.pos;var B=Dd(P,!0);P=e+(P.start+P.pos-a)+B;P=P>9?P7O(P-9,8):P7O(P-2,1);e=a-e;r.setUint8(e++,236);for(a=0;ar;B++)r=r*256+LW(e),P*=128;return a?r-P:r}; Qv=function(e){var a=Dd(e,!0);e.pos+=a}; cXT=function(e){if(!JM(e,440786851,!0))return null;var a=e.pos;Dd(e,!1);var r=Dd(e,!0)+e.pos-a;e.pos=a+r;if(!JM(e,408125543,!1))return null;Dd(e,!0);if(!JM(e,357149030,!0))return null;var P=e.pos;Dd(e,!1);var B=Dd(e,!0)+e.pos-P;e.pos=P+B;if(!JM(e,374648427,!0))return null;var h=e.pos;Dd(e,!1);var c=Dd(e,!0)+e.pos-h,y=new Uint8Array(r+12+B+c),T=new DataView(y.buffer);y.set(new Uint8Array(e.S.buffer,e.S.byteOffset+a,r));T.setUint32(r,408125543);T.setUint32(r+4,33554431);T.setUint32(r+8,4294967295); y.set(new Uint8Array(e.S.buffer,e.S.byteOffset+P,B),r+12);y.set(new Uint8Array(e.S.buffer,e.S.byteOffset+h,c),r+12+B);return y}; Yk=function(e){var a=e.pos;e.pos=0;var r=1E6;kk(e,[408125543,357149030,2807729])&&(r=$k(e));e.pos=a;return r}; oKj=function(e,a){var r=e.pos;e.pos=0;if(e.S.getUint8(e.pos)!==160&&!wS(e)||!JM(e,160))return e.pos=r,NaN;Dd(e,!0);var P=e.pos;if(!JM(e,161))return e.pos=r,NaN;Dd(e,!0);LW(e);var B=LW(e)<<8|LW(e);e.pos=P;if(!JM(e,155))return e.pos=r,NaN;P=$k(e);e.pos=r;return(B+P)*a/1E9}; wS=function(e){if(!nKj(e)||!JM(e,524531317))return!1;Dd(e,!0);return!0}; nKj=function(e){if(e.GU()){if(!JM(e,408125543))return!1;Dd(e,!0)}return!0}; kk=function(e,a){for(var r=0;r0){var P=YpO(a.substring(r+1));g.K5(P,function(B,h){this.set(h,B)},e); a=a.substring(0,r)}a=LgO(a);g.K5(a,function(B,h){this.set(h,B)},e)}; TEN=function(e){var a=e.YL.ju(),r=[];g.K5(e.S,function(B,h){r.push(h+"="+B)}); if(!r.length)return a;var P=r.join("&");e=lVO(e.YL)?"&":"?";return a+e+P}; i_=function(e,a){var r=new g.v2(a);(a=r.get("req_id"))&&e.set("req_id",a);g.K5(e.S,function(P,B){r["set"](B,null)}); return r}; XHO=function(){this.L=this.B=this.S=this.timedOut=this.started=this.C=this.T=0}; zZ=function(e){e.C=(0,g.Ov)();e.started=0;e.timedOut=0;e.S=0}; NE=function(e,a){var r=e.started+e.S*4;a&&(r+=e.B);r=Math.max(0,r-3);return Math.pow(1.6,r)}; xk=function(e,a){e[a]||(e[a]=new XHO);return e[a]}; IO=function(e){this.N=this.D=this.C=this.B=0;this.Y=this.Z=!1;this.S=e;this.T=e.clone()}; fcL=function(e,a,r){if(s$(e.S))return!1;var P=xk(r,Sj(e.S));if(P.timedOut<1&&P.S<1)return!1;P=P.timedOut+P.S;e=H5(e,a);r=xk(r,Sj(e));return r.timedOut+r.S+01?a=a.Ol:(r=xk(r,v5(e,e.rD(a,r),a)),a=Math.max(e.C,r.timedOut)+a.aT*(e.B-e.C)+.25*e.D,a=a>3?1E3*Math.pow(1.6,a-3):0);return a===0?!0:e.N+a<(0,g.Ov)()}; AXq=function(e,a,r){e.S.set(a,r);e.T.set(a,r);e.L&&e.L.set(a,r)}; UW4=function(e,a,r,P,B){++e.B;a&&++e.C;Sj(r.YL).startsWith("redirector.")&&(e.S=e.T.clone(),delete e.L,P.KH&&delete B[Sj(e.S)])}; Sv=function(e){return e?(e.itag||"")+";"+(e.lmt||0)+";"+(e.xtags||""):""}; sk=function(e,a,r,P){this.initRange=r;this.indexRange=P;this.S=null;this.B=!1;this.Z=0;this.L=this.kB=this.T=null;this.info=a;this.Kr=new IO(e)}; mH=function(e,a){this.start=e;this.end=a;this.length=a-e+1}; FH=function(e){e=e.split("-");var a=Number(e[0]),r=Number(e[1]);if(!isNaN(a)&&!isNaN(r)&&e.length===2&&(e=new mH(a,r),!isNaN(e.start)&&!isNaN(e.end)&&!isNaN(e.length)&&e.length>0))return e}; ME=function(e,a){return new mH(e,e+a-1)}; C7y=function(e){return e.end==null?{start:String(e.start)}:{start:String(e.start),end:String(e.end)}}; jv=function(e){if(!e)return new mH(0,0);var a=Number(e.start);e=Number(e.end);if(!isNaN(a)&&!isNaN(e)&&(a=new mH(a,e),a.length>0))return a}; u_=function(e,a,r,P,B,h,c,y,T,X,f,A){P=P===void 0?"":P;this.type=e;this.S=a;this.range=r;this.source=P;this.yl=f;this.clipId=A===void 0?"":A;this.N=[];this.D="";this.lW=-1;this.HW=0;this.D=P;this.lW=B>=0?B:-1;this.startTime=h||0;this.duration=c||0;this.T=y||0;this.B=T>=0?T:this.range?this.range.length:NaN;this.L=this.range?this.T+this.B===this.range.length:X===void 0?!!this.B:X;this.range?(this.C=this.startTime+this.duration*this.T/this.range.length,this.Y=this.duration*this.B/this.range.length,this.Z= this.C+this.Y):GsL(this)}; GsL=function(e){e.C=e.startTime;e.Y=e.duration;e.Z=e.C+e.Y}; EKT=function(e,a,r){var P=!(!a||a.S!==e.S||a.type!==e.type||a.lW!==e.lW);return r?P&&!!a&&(e.range&&a.range?a.range.end===e.range.end:a.range===e.range)&&a.T+a.B===e.T+e.B:P}; KW=function(e){return e.type===1||e.type===2}; ef=function(e){return e.type===3||e.type===6}; al=function(e,a){return e.S===a.S?e.range&&a.range?e.range.start+e.T+e.B===a.range.start+a.T:e.lW===a.lW?e.T+e.B===a.T:e.lW+1===a.lW&&a.T===0&&e.L:!1}; tll=function(e,a){return e.lW!==a.lW&&a.lW!==e.lW+1||e.type!==a.type?!1:al(e,a)?!0:Math.abs(e.C-a.C)<=1E-6&&e.lW===a.lW?!1:b_T(e,a)}; b_T=function(e,a){return al(e,a)||Math.abs(e.Z-a.C)<=1E-6||e.lW+1===a.lW&&a.T===0&&e.L?!0:!1}; rj=function(e){return e.lW+(e.L?1:0)}; gKL=function(e){e.length===1||g.tK(e,function(r){return!!r.range}); for(var a=1;a=a.range.start+a.T&&e.range.start+e.T+e.B<=a.range.start+a.T+a.B:e.lW===a.lW&&e.T>=a.T&&(e.T+e.B<=a.T+a.B||a.L)}; VlL=function(e,a){return e.S!==a.S?!1:e.type===4&&a.type===3&&e.S.QP()?(e=e.S.aY(e),va(e,function(r){return VlL(r,a)})):e.lW===a.lW&&!!a.B&&a.T+a.B>e.T&&a.T+a.B<=e.T+e.B}; BO=function(e,a){var r=a.lW;e.D="updateWithSegmentInfo";e.lW=r;if(e.startTime!==a.startTime||e.duration!==a.duration)e.startTime=a.startTime+0,e.duration=a.duration,GsL(e)}; h2=function(e,a){var r=this;this.Vm=e;this.L=this.S=null;this.C=this.K_=NaN;this.rD=this.requestId=null;this.Ob={ZSQ:function(){return r.range}}; this.Kr=e[0].S.Kr;this.T=a||"";this.Vm[0].range&&this.Vm[0].B>0&&(Z_T(e)?(this.range=gKL(e),this.B=this.range.length):(this.range=this.Vm[this.Vm.length-1].range,this.B=O_4(e)))}; cO=function(e){return!KW(e.Vm[e.Vm.length-1])}; ol=function(e){return e.Vm[e.Vm.length-1].type===4}; g.nz=function(e,a,r){r=e.rD===null?e.Kr.rD(a,r,e.Vm[0].type):e.rD;if(e.S){a=r?FO(e.S,a.LY):e.S;var P=new pW(a);P.get("alr")||P.set("alr","yes");e.T&&yXy(P,e.T)}else/http[s]?:\/\//.test(e.T)?P=new pW(new g.v2(e.T)):(P=qE(e.Kr,r,a),e.T&&yXy(P,e.T));(a=e.range)?P.set("range",a.toString()):e.Vm[0].S.P_()&&e.Vm.length===1&&e.Vm[0].T&&P.set("range",e.Vm[0].T+"-");e.requestId&&P.set("req_id",e.requestId);isNaN(e.K_)||P.set("headm",e.K_.toString());isNaN(e.C)||P.set("mffa",e.C+"ms");e.urlParams&&g.K5(e.urlParams, function(B,h){P.set(h,B)}); return P}; $Wl=function(e){if(e.range)return e.B;e=e.Vm[0];return Math.round(e.Y*e.S.info.NF)}; QH4=function(e,a){return Math.max(0,e.Vm[0].C-a)}; yH=function(e,a,r,P,B,h){h=h===void 0?0:h;sk.call(this,e,a,P,void 0);this.C=r;this.qc=h;this.index=B||new g.uf}; W2O=function(e,a,r,P,B){this.lW=e;this.startSecs=a;this.Ug=r;this.S=P||NaN;this.T=B||NaN}; Ta=function(e,a,r){for(;e;e=e.parentNode)if(e.attributes&&(!r||e.nodeName===r)){var P=e.getAttribute(a);if(P)return P}return""}; Xe=function(e,a){for(;e;e=e.parentNode){var r=e.getElementsByTagName(a);if(r.length>0)return r[0]}return null}; lc4=function(e){if(!e)return 0;var a=e.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return a?(Number(a[2])|0)*3600+(Number(a[4])|0)*60+(Number(a[6])|0):Number(e)|0}; L2y=function(e){return e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?e+"Z":e}; fz=function(){this.S=[];this.T=null;this.Z=0;this.B=[];this.C=!1;this.D="";this.L=-1}; YdO=function(e){var a=e.B;e.B=[];return a}; wHT=function(){this.L=[];this.S=null;this.T={};this.B={}}; NE4=function(e,a){var r=[];a=Array.from(a.getElementsByTagName("SegmentTimeline"));a=g.Z(a);for(var P=a.next();!P.done;P=a.next()){P=P.value;var B=P.parentNode.parentNode,h=null;B.nodeName==="Period"?h=pH4(e):B.nodeName==="AdaptationSet"?(B=B.getAttribute("id")||B.getAttribute("mimetype")||"",h=i_J(e,B)):B.nodeName==="Representation"&&(B=B.getAttribute("id")||"",h=z94(e,B));if(h==null)return;h.update(P);g.lN(r,YdO(h))}g.lN(e.L,r);VLy(e.L,function(c){return c.startSecs*1E3+c.S})}; xWj=function(e){e.S&&(e.S.S=[]);g.K5(e.T,function(a){a.S=[]}); g.K5(e.B,function(a){a.S=[]})}; pH4=function(e){e.S||(e.S=new fz);return e.S}; i_J=function(e,a){e.T[a]||(e.T[a]=new fz);return e.T[a]}; z94=function(e,a){e.B[a]||(e.B[a]=new fz);return e.B[a]}; Ux=function(e){var a=e===void 0?{}:e;e=a.qc===void 0?0:a.qc;var r=a.eQ===void 0?!1:a.eQ;var P=a.g_===void 0?0:a.g_;var B=a.lB===void 0?0:a.lB;var h=a.E2===void 0?Infinity:a.E2;var c=a.zW===void 0?0:a.zW;var y=a.zX===void 0?!1:a.zX;a=a.D7===void 0?!1:a.D7;g.uf.call(this);this.Uj=this.r0=-1;this.jT=e;this.g_=P;this.eQ=r;this.lB=B;this.E2=h;this.zW=c;((this.zX=y)||isFinite(h)&&this.E2>0)&&r&&A2&&(this.T=!1,this.B="postLive");this.D7=a}; Cz=function(e,a){return qM(e.segments,function(r){return a-r.lW})}; Ga=function(e,a,r){r=r===void 0?{}:r;yH.call(this,e,a,"",void 0,void 0,r.qc||0);this.index=new Ux(r)}; Ex=function(e,a,r){sk.call(this,e,a);this.C=r;e=this.index=new g.uf;e.T=!1;e.B="d"}; Icz=function(e,a,r){var P=e.index.oo(a),B=e.index.getStartTime(a),h=e.index.getDuration(a);r?h=r=0:r=e.info.NF*h;return new h2([new u_(3,e,void 0,"otfCreateRequestInfoForSegment",a,B,h,0,r)],P)}; H_L=function(e,a){if(!e.index.isLoaded()){var r=[],P=a.L;a=a.C.split(",").filter(function(f){return f.length>0}); for(var B=0,h=0,c=0,y=/^(\d+)/,T=/r=(\d+)/,X=0;X0&&(B.S=Math.min(B.S+c,10),B.T=h);B.S>0?(B.S--,B=!0):B=!1;if(B)typeof P==="function"&&(P=P()),console.log("plyr."+a,P);else{var y;P=((y=mW3.get(a))!=null?y:0)+1;mW3.set(a,P);P%100===1&&console.warn("plyr","plyr."+a+" is chatty, dropping logs.")}}}; sH4=function(){this.S=10;this.T=Date.now()}; gj=function(e,a){this.info=e;this.T=a;this.S=null;this.L=this.B=-1;this.timestampOffset=0;this.isLocked=this.Z=!1;this.C=this.info.S.Wu()&&!this.info.T}; g.Z5=function(e){return NAN(e.T)}; F2I=function(e,a){a=Math.min(a,e.info.B);var r=e.T.split(a),P=r.v8;r=new gj(new u_(e.info.type,e.info.S,e.info.range,e.info.D,e.info.lW,e.info.startTime,e.info.duration,e.info.T,a,!1,e.info.yl,e.info.clipId),r.e3);r.L=e.L;r.B=e.B;a=new gj(new u_(e.info.type,e.info.S,e.info.range,e.info.D,e.info.lW,e.info.startTime,e.info.duration,e.info.T+a,e.info.B-a,e.info.L,e.info.yl,e.info.clipId),P);a.L=e.L;a.B=e.B;return[r,a]}; g.Ox=function(e,a,r,P){r=r===void 0?!1:r;P=P===void 0?0:P;if(e.isLocked||a.isLocked||!al(e.info,a.info)||e.info.L)return null;if(P){if(e.T.totalLength+a.T.totalLength>P)return null}else if(r&&(r=e.T,P=a.T,r=!(P.S.length?iuJ(r,P.S[0]):1)),r)return null;r=new u_(e.info.type,e.info.S,e.info.range,e.info.D,e.info.lW,e.info.startTime,e.info.duration,e.info.T,e.info.B,e.info.L,e.info.yl,e.info.clipId);P=a.info;r.B+=P.B;r.range&&(r.Y+=P.Y);r.Z=P.Z;r.L=P.L;P=new rH;P4(P,e.T);P4(P,a.T);r=new gj(r,P);r.S!= null&&a.S!=null&&(new g.bl("dash")).S(414627957,"merged slice emsg overridden; prev: "+r.S.PJ()+" next: "+a.S.PJ());r.S=a.S||e.S;r.B=e.B!==-1?e.B:a.B;r.L=e.L!==-1?e.L:a.L;return r}; g.kE=function(e){g.m2(e.info.S.info)||e.info.S.info.Ox();if(e.B!==-1)return e.B;if(e.S&&vIJ(e.S))return e.B=vIJ(e.S),e.B;if(g.m2(e.info.S.info)){var a=g.Z5(e);for(var r=e.info.S.S,P=NaN,B=NaN,h=0;CW(a,h);){var c=GZ(a,h);c.type===1936286840?B=c.data.getUint32(c.dataOffset+8):c.type===1836476516?B=g.fW(c):c.type===1952867444&&isNaN(P)&&(P=g.b_(c));h=Ek(c.type)?h+8:h+c.size}!B&&r&&(B=AM(r));a=P/B}else a=new Zd(g.Z5(e)),r=e.C?a:new Zd(new DataView(e.info.S.S.buffer)),P=Yk(r),r=a.pos,a.pos=0,wS(a)?JM(a, 231)?(P=$k(a)*P/1E9,a.pos=r,a=P):(a.pos=r,a=NaN):(a.pos=r,a=NaN);e.B=a||e.info.C;return e.B}; jHz=function(e,a){e.timestampOffset>0&&(a-=e.timestampOffset);var r=g.kE(e)+a;Ml4(e,r);e.timestampOffset=a}; Ml4=function(e,a){g.m2(e.info.S.info)||e.info.S.info.Ox();e.B=a;if(g.m2(e.info.S.info)){var r=g.Z5(e);e=e.info.S.S;for(var P=NaN,B=NaN,h=0;CW(r,h);){var c=GZ(r,h);isNaN(P)&&(c.type===1936286840?P=c.data.getUint32(c.dataOffset+8):c.type===1836476516&&(P=g.fW(c)));if(c.type===1952867444){!P&&e&&(P=AM(e));var y=g.b_(c);isNaN(B)&&(B=Math.round(a*P)-y);var T=c;y+=B;if(T.data.getUint8(T.dataOffset)){var X=T.data;T=T.dataOffset+4;X.setUint32(T,Math.floor(y/4294967296));X.setUint32(T+4,y&4294967295)}else T.data.setUint32(T.dataOffset+ 4,y)}h=Ek(c.type)?h+8:h+c.size}return!0}r=new Zd(g.Z5(e));e=e.C?r:new Zd(new DataView(e.info.S.S.buffer));P=Yk(e);e=r.pos;r.pos=0;if(wS(r)&&JM(r,231))if(B=Dd(r,!0),a=Math.floor(a*1E9/P),Math.ceil(Math.log(a)/Math.log(2)/8)>B)a=!1;else{for(P=B-1;P>=0;P--)r.S.setUint8(r.pos+P,a&255),a>>>=8;r.pos=e;a=!0}else a=!1;return a}; J2=function(e,a){a=a===void 0?!1:a;var r=dj(e);e=a?0:e.info.Y;return r||e}; dj=function(e){g.m2(e.info.S.info)||e.info.S.info.Ox();if(e.S&&e.info.type===6)return e.S.qc;if(g.m2(e.info.S.info)){var a=g.Z5(e);var r=0;a=g.gS(a,1936286840);a=g.Z(a);for(var P=a.next();!P.done;P=a.next())P=u0L(P.value),r+=P.Lx[0]/P.timescale;r=r||NaN;if(!(r>=0))a:{r=g.Z5(e);a=e.info.S.S;for(var B=P=0,h=0;CW(r,P);){var c=GZ(r,P);if(c.type===1836476516)B=g.fW(c);else if(c.type===1836019558){!B&&a&&(B=AM(a));if(!B){r=NaN;break a}var y=Uk(c.data,c.dataOffset,1953653094),T=y;y=B;var X=Uk(T.data,T.dataOffset, 1952868452);T=Uk(T.data,T.dataOffset,1953658222);var f=rS(X);rS(X);f&2&&rS(X);X=f&8?rS(X):0;var A=rS(T),U=A&1;f=A&4;var C=A&256,G=A&512,O=A&1024;A&=2048;var d=P5(T);U&&rS(T);f&&rS(T);for(var W=U=0;W2048?"":a.indexOf("https://")===0?a:""}; ll=function(e,a,r){a.match(y04);return e(a,r).then(function(P){var B=g.nFj(P.xhr);return B?ll(e,B,r):P.xhr})}; pz=function(e,a,r){e=e===void 0?"":e;a=a===void 0?null:a;r=r===void 0?!1:r;g.aK.call(this);var P=this;this.sourceUrl=e;this.isLivePlayback=r;this.Uo=this.duration=0;this.isPremiere=this.zX=this.L=this.isLiveHeadPlayable=this.isLive=this.T=!1;this.E2=this.lB=0;this.isOtf=this.QX=!1;this.e1=(0,g.Ov)();this.HW=Infinity;this.S={};this.B=new Map;this.state=this.xK=0;this.timeline=null;this.isManifestless=!1;this.TQ=[];this.Z=null;this.Lf=0;this.C="";this.Cf=NaN;this.Eo=this.ID=this.timestampOffset=this.D= 0;this.H8=this.ZI=NaN;this.h9=0;this.XM=this.N=!1;this.GQ=[];this.ym={};this.oH=NaN;this.Ob={hCW:function(y){Lz(P,y)}}; var B;this.PW=(B=a)==null?void 0:B.FM("html5_use_network_error_code_enums");TxL=!!a&&a.FM("html5_modern_vp9_mime_type");var h;YE=!((h=a)==null||!h.FM("html5_enable_flush_during_seek"))&&g.x2();var c;wj=!((c=a)==null||!c.FM("html5_enable_reset_audio_decoder"))&&g.x2()}; Xiz=function(e){return g.r6(e.S,function(a){return!!a.info.video&&a.info.video.qualityOrdinal>=2160})}; Ds3=function(e){return g.r6(e.S,function(a){return!!a.info.video&&a.info.video.isHdr()})}; pt=function(e){return g.r6(e.S,function(a){return!!a.info.DX})}; g.fTL=function(e){return g.r6(e.S,function(a){return K_(a.info.mimeType)})}; A03=function(e){return g.r6(e.S,function(a){return a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR":!1})}; UOz=function(e){return g.r6(e.S,function(a){return a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; CBj=function(e){return g.r6(e.S,function(a){return a.info.video?a.info.video.projectionType==="MESH":!1})}; GWJ=function(e){return g.r6(e.S,function(a){return a.info.video?a.info.video.stereoLayout===1:!1})}; EFJ=function(e){return LjL(e.S,function(a){return a.info.video?a.Yn():!0})}; Lt=function(e){return g.r6(e.S,function(a){return s$(a.Kr.S)})}; Lz=function(e,a){e.S[a.info.id]=a;e.B.set(Sv(g.MW(a.info,e.QX)),a)}; Nz=function(e,a,r){r=r===void 0?0:r;var P=e.mimeType||"",B=e.itag;var h=e.xtags;B=B?B.toString():"";h&&(B+=";"+h);h=B;if(u7(P)){var c=e.width||640;B=e.height||360;var y=e.fps,T=e.qualityLabel,X=e.qualityOrdinal,f=e.colorInfo,A=e.projectionType,U;e.stereoLayout&&(U=bZO[e.stereoLayout]);var C=c0J(e)||void 0;if(f==null?0:f.primaries)var G=tEq[f.primaries]||void 0;c=new p_(c,B,y,A,U,void 0,T,X&&gFl[X],C,G);P=il(P,c,NW[e.itag||""]);YE&&(P+="; enableflushduringseek=true");wj&&(P+="; enableresetaudiodecoder=true")}var O; if(jl(P)){var d=e.audioSampleRate;U=e.audioTrack;d=new Od(d?+d:void 0,e.audioChannels,e.spatialAudioType,e.isDrc,e.loudnessDb,e.trackAbsoluteLoudnessLkfs,e.audioQuality||"AUDIO_QUALITY_UNKNOWN",e.isVb);U&&(G=U.displayName,B=U.id,U=U.audioIsDefault,G&&(O=new g.WO(G,B||"",!!U)))}var W;e.captionTrack&&(T=e.captionTrack,U=T.displayName,G=T.vssId,B=T.languageCode,y=T.kind,T=T.id,U&&G&&B&&(W=new BxL(U,G,B,y,e.xtags,T)));U=Number(e.bitrate)/8;G=Number(e.contentLength);B=Number(e.lastModified);T=e.drmFamilies; y=e.type;r=r&&G?G/r:0;e=Number(e.approxDurationMs);if(a&&T){var V={};T=g.Z(T);for(X=T.next();!X.done;X=T.next())(X=za[X.value])&&(V[X]=a[X])}return new xK(h,P,{audio:d,video:c,yX:O,DX:V,NF:U,yV:r,contentLength:G,lastModified:B,captionTrack:W,streamType:y,approxDurationMs:e})}; xE=function(e,a,r){r=r===void 0?0:r;var P=e.type;var B=e.itag;var h=e.xtags;h&&(B=e.itag+";"+h);if(u7(P)){var c=(e.size||"640x360").split("x");c=new p_(+c[0],+c[1],+e.fps,e.projection_type,+e.stereo_layout,void 0,e.quality_label,+e.quality_ordinal,e.eotf,e.primaries);P=il(P,c,NW[e.itag]);YE&&(P+="; enableflushduringseek=true");wj&&(P+="; enableresetaudiodecoder=true")}var y;if(jl(P)){var T=new Od(+e.audio_sample_rate||void 0,+e.audio_channels||0,e.spatial_audio_type,!!e.drc);e.name&&(y=new g.WO(e.name, e.audio_track_id,e.isDefault==="1"))}var X;e.caption_display_name&&e.caption_vss_id&&e.caption_language_code&&(X=new BxL(e.caption_display_name,e.caption_vss_id,e.caption_language_code,e.caption_kind,e.xtags,e.caption_id));h=Number(e.bitrate)/8;var f=Number(e.clen),A=Number(e.lmt);r=r&&f?f/r:0;if(a&&e.drm_families){var U={};for(var C=g.Z(e.drm_families.split(",")),G=C.next();!G.done;G=C.next())G=G.value,U[G]=a[G]}return new xK(B,P,{audio:T,video:c,yX:y,DX:U,NF:h,yV:r,contentLength:f,lastModified:A, captionTrack:X,streamType:e.stream_type,approxDurationMs:Number(e.approx_duration_ms)})}; ZZ4=function(e){return va(e,function(a){return"FORMAT_STREAM_TYPE_OTF"===a.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; OZ3=function(e){return va(e,function(a){return"FORMAT_STREAM_TYPE_OTF"===a.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; kWl=function(e,a){return e.timeline?p5(e.timeline.L,a):e.TQ.length?p5(e.TQ,a):[]}; Il=function(e,a,r){a=a===void 0?"":a;r=r===void 0?"":r;e=new g.v2(e,!0);e.set("alr","yes");r&&(r=sFy(decodeURIComponent(r)),e[n[21]](a,encodeURIComponent(r)));return e}; VEN=function(e,a){var r=Ta(a,"id");r=r.replace(":",";");var P=Ta(a,"mimeType"),B=Ta(a,"codecs");P=B?P+'; codecs="'+B+'"':P;B=Number(Ta(a,"bandwidth"))/8;var h=Number(Xe(a,"BaseURL").getAttribute(e.C+":contentLength")),c=e.duration&&h?h/e.duration:0;if(u7(P)){var y=Number(Ta(a,"width"));var T=Number(Ta(a,"height")),X=Number(Ta(a,"frameRate")),f=dO3(Ta(a,e.C+":projectionType"));a:switch(Ta(a,e.C+":stereoLayout")){case "layout_left_right":var A=1;break a;case "layout_top_bottom":A=2;break a;default:A= 0}y=new p_(y,T,X,f,A)}if(jl(P)){var U=Number(Ta(a,"audioSamplingRate"));var C=Number(Ta(a.getElementsByTagName("AudioChannelConfiguration")[0],"value"));T=J0T(Ta(a,e.C+":spatialAudioType"));U=new Od(U,C,T);a:{C=Ta(a,"lang")||"und";if(T=Xe(a,"Role"))if(f=Ta(T,"value")||"",g.TX(DOj,f)){T=C+"."+DOj[f];X=f==="main";e=Ta(a,e.C+":langName")||C+" - "+f;C=new g.WO(e,T,X);break a}C=void 0}}if(a=Xe(a,"ContentProtection"))if(a.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var G={};for(a= a.firstChild;a!=null;a=a.nextSibling)a instanceof Element&&/SystemURL/.test(a.nodeName)&&(e=a.getAttribute("type"),T=a.textContent,e&&T&&(G[e]=T.trim()))}else G=void 0;return new xK(r,P,{audio:U,video:y,yX:C,DX:G,NF:B,yV:c,contentLength:h})}; dO3=function(e){switch(e){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"}}; J0T=function(e){switch(e){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"}}; QV4=function(e,a){a=a===void 0?"":a;e.state=1;e.e1=(0,g.Ov)();return oFI(a||e.sourceUrl).then(function(r){if(!e.wP()){e.xK=r.status;r=r.responseText;var P=new DOMParser;r=DL(P,WKO(r),"text/xml").getElementsByTagName("MPD")[0];e.HW=lc4(Ta(r,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(r.attributes){P=g.Z(r.attributes);for(var B=P.next();!B.done;B=P.next())if(B=B.value,B.value==="http://youtube.com/yt/2012/10/10"){P=B.name.split(":")[1];break b}}P=""}e.C=P;e.isLive=e.HW=e.HW}; lT3=function(e){e.Z&&e.Z.stop()}; $OI=function(e){var a=e.HW;isFinite(a)&&(HO(e)?e.refresh():(a=Math.max(0,e.e1+a-(0,g.Ov)()),e.Z||(e.Z=new g.vP(e.refresh,a,e),g.x(e,e.Z)),e.Z.start(a)))}; LYN=function(e){e=e.S;for(var a in e){var r=e[a].index;if(r.isLoaded())return r.q5()+1}return 0}; qz=function(e){return e.ID?e.ID-(e.D||e.timestampOffset):0}; vO=function(e){return e.Eo?e.Eo-(e.D||e.timestampOffset):0}; Rl=function(e){if(!isNaN(e.Cf))return e.Cf;var a=e.S,r;for(r in a){var P=a[r].index;if(P.isLoaded()&&!K_(a[r].info.mimeType)){a=0;for(r=P.mQ();r<=P.q5();r++)a+=P.getDuration(r);a/=P.An();a=Math.round(a/.5)*.5;P.An()>10&&(e.Cf=a);return a}if(e.isLive&&(P=a[r],P.qc))return P.qc}return NaN}; YDI=function(e,a){e=wIl(e.S,function(P){return P.index.isLoaded()}); if(!e)return NaN;e=e.index;var r=e.I4(a);return e.getStartTime(r)===a?a:r=0&&B.segments.splice(h,1)}}}; piI=function(e){for(var a in e.S)K_(e.S[a].info.mimeType)||NI3(e.S[a].index,Infinity)}; mx=function(e,a,r){for(var P in e.S){var B=e.S[P].index,h=a,c=r;B.eQ&&(h&&(B.r0=Math.max(B.r0,h)),c&&(B.Uj=Math.max(B.Uj||0,c)))}r&&(e.oH=r/1E3)}; iZq=function(e){e.Eo=0;e.ID=0;e.h9=0}; Fe=function(e){return e.XM&&e.isManifestless?e.isLiveHeadPlayable:e.isLive}; il=function(e,a,r){Mz===null&&(Mz=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(TxL&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Mz||r!=="9"&&r!=="("?Mz||r!=="9h"&&r!=="(h"||(e='video/webm; codecs="vp9.2"'):e='video/webm; codecs="vp9"',e;if(!Mz&&!jf||e!=='video/webm; codecs="vp9"'&&e!=='video/webm; codecs="vp9.2"')return e; r="00";var P="08",B="01",h="01",c="01";e==='video/webm; codecs="vp9.2"'&&(r="02",P="10",a.primaries==="bt2020"&&(c=B="09"),a.S==="smpte2084"&&(h="16"),a.S==="arib-std-b67"&&(h="18"));return'video/webm; codecs="'+["vp09",r,"51",P,"01",B,h,c,"00"].join(".")+'"'}; Kz=function(e,a,r){e=""+e+(a>49?"p60":a>32?"p48":"");a=Ct()[e];if(a!=null&&a>0)return a;a=ul.get(e);if(a!=null&&a>0)return a;r=r==null?void 0:r.get(e);return r!=null&&r>0?r:8192}; zEJ=function(e){this.gP=e;this.AC=this.Hj=this.Cf=this.C=this.L=this.GQ=this.Uo=this.HW=!1;this.D=this.Z=0;this.k$=!1;this.oH=!0;this.PW=!1;this.K8=0;this.Ud=this.Eo=!1;this.Ge=!0;this.XM=this.e1=!1;this.S={};this.ID=this.sM=this.Q2=this.disableAv1=this.bv=this.Yf=this.HA=this.T$=this.T=this.Y=!1;this.TQ=0;this.rP=!1;this.py=this.gP.X("html5_disable_aac_preference");this.Te=Infinity;this.Lf=0;this.J9=this.gP.UM();this.h9=this.gP.experiments.FM("html5_enable_vp9_fairplay");this.Ky=this.gP.X("html5_force_av1_for_testing"); this.ym=g.eS(this.gP.experiments,"html5_av1_ordinal_cap");this.RL=this.gP.X("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.RO=this.gP.X("html5_account_onesie_format_selection_during_format_filter");this.NF=g.eS(this.gP.experiments,"html5_max_byterate");this.dW=this.gP.X("html5_enable_iamf_audio");this.QH=this.gP.experiments.FM("html5_allow_capability_merge");this.kh=this.gP.X("html5_enable_encrypted_av1");this.TQ=g.eS(this.gP.experiments,"html5_hard_cap_max_vertical_resolution");this.rP= this.gP.X("html5_enable_new_audio_settings_menu")}; VhL=function(e){if(e.Uo)return["f"];if(g.zu("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var a=["9h","9","h","8"];e.kh&&a.push("1e");a=a.concat(["(h","(","H","*"]);e.Eo&&(a.unshift("1"),a.unshift("1h"));e.Hj&&a.unshift("h");e.N&&(a=(Nxq[e.N]||[e.N]).concat(a));return a}; gIN=function(e){var a=["o","a","A"];e.Lf===1&&(e.L&&(a=["mac3","MAC3"].concat(a)),e.C&&(a=["meac3","MEAC3"].concat(a)),e.dW&&(a=["i","I"].concat(a)));e.HW&&(a=["so","sa"].concat(a));!e.AC||e.Cf||e.B||e.py||a.unshift("a");e.B&&(a=(Nxq[e.B]||[e.B]).concat(a));return a}; eD=function(e,a,r,P){a=a===void 0?{}:a;if(P===void 0?0:P)return a.disabled=1,0;if(H2(e.C,q$.AV1_CODECS)&&H2(e.C,q$.HEIGHT)&&H2(e.C,q$.BITRATE))return a.isCapabilityUsable=1,8192;try{var B=aVy();if(B&&!e.X("disable_av1_setting"))return a.localPref=B}catch(y){}P=1080;B=navigator.hardwareConcurrency;B<=2&&(P=480);a.coreCount=B;if(B=g.eS(e.experiments,"html5_default_av1_threshold"))P=a["default"]=B;!e.X("html5_disable_av1_arm_check")&&UiO()&&(a.isArm=1,P=240);if(e=e.C.oH)a.mcap=e,P=Math.max(P,e);if(r){var h, c;if(e=(h=r.videoInfos.find(function(y){return vH(y)}))==null?void 0:(c=h.T)==null?void 0:c.powerEfficient)P=8192,a.isEfficient=1; r=r.videoInfos[0].video;h=Math.min(Kz("1",r.fps),Kz("1",30));a.perfCap=h;P=Math.min(P,h);r.isHdr()&&!e&&(a.hdr=1,P*=.75)}else r=Kz("1",30),a.perfCap30=r,P=Math.min(P,r),r=Kz("1",60),a.perfCap60=r,P=Math.min(P,r);return a.av1Threshold=P}; a1=function(e,a,r,P){this.flavor=e;this.keySystem=a;this.T=r;this.experiments=P;this.S={};this.Uo=this.keySystemAccess=null;this.D6=this.UD=-1;this.gb=null;this.B=!!P&&P.FM("edge_nonprefixed_eme");P&&P.FM("html5_enable_vp9_fairplay")}; PM=function(e){return e.B?!1:!e.keySystemAccess&&!!rV()&&e.keySystem==="com.microsoft.playready"}; BM=function(e){return e.keySystem==="com.microsoft.playready"}; hG=function(e){return!e.keySystemAccess&&!!rV()&&e.keySystem==="com.apple.fps.1_0"}; cM=function(e){return e.keySystem==="com.youtube.fairplay"}; o1=function(e){return e.keySystem==="com.youtube.fairplay.sbdl"}; g.nn=function(e){return e.flavor==="fairplay"}; rV=function(){var e=window,a=e.MSMediaKeys;qr()&&!a&&(a=e.WebKitMediaKeys);return a&&a.isTypeSupported?a:null}; TA=function(e){return navigator.requestMediaKeySystemAccess?g.Ed&&!g.x2()?Zw("45"):g.qU||g.T$?e.FM("edge_nonprefixed_eme"):g.yw?Zw("47"):g.Uv&&e.FM("html5_enable_safari_fairplay")?!1:!0:!1}; xOz=function(e,a,r,P){var B=If(),h=(r=B||r&&qr())?["com.youtube.fairplay"]:["com.widevine.alpha"];a&&h.unshift("com.youtube.widevine.l3");B&&P&&h.unshift("com.youtube.fairplay.sbdl");return r?h:e?[].concat(g.UO(h),g.UO(XZ.playready)):[].concat(g.UO(XZ.playready),g.UO(h))}; fn=function(e,a,r,P,B){P=P===void 0?!1:P;g.N.call(this);this.gP=a;this.useCobaltWidevine=P;this.nf=B;this.T=[];this.B={};this.S={};this.callback=null;this.C=!1;this.L=[];this.initialize(e,!r)}; HZ4=function(e,a){e.callback=a;e.L=[];TA(e.gP.experiments)?AG(e):ITL(e)}; AG=function(e){if(!e.wP())if(e.T.length===0)e.callback(e.L);else{var a=e.T[0],r=e.B[a],P=qDj(e,r);if(Ut&&Ut.keySystem===a&&Ut.eoQ===JSON.stringify(P))e.nf("remksa",{re:!0}),vFy(e,r,Ut.keySystemAccess);else{var B,h;e.nf("remksa",{re:!1,ok:(h=(B=Ut)==null?void 0:B.keySystem)!=null?h:""});Ut=void 0;navigator.requestMediaKeySystemAccess(a,P).then(M5(function(c){vFy(e,r,c,P)}),M5(function(){e.C=!e.C&&e.B[e.T[0]].flavor==="widevine"; e.C||e.T.shift();AG(e)}))}}}; vFy=function(e,a,r,P){if(!e.wP()){P&&(Ut={keySystem:a.keySystem,keySystemAccess:r,eoQ:JSON.stringify(P)});a.keySystemAccess=r;if(BM(a)){r=C_();P=g.Z(Object.keys(e.S[a.flavor]));for(var B=P.next();!B.done;B=P.next())B=B.value,a.S[B]=!!r.canPlayType(B)}else{r=a.keySystemAccess.getConfiguration();if(r.audioCapabilities)for(P=g.Z(r.audioCapabilities),B=P.next();!B.done;B=P.next())a.S[B.value.contentType]=!0;if(r.videoCapabilities)for(r=g.Z(r.videoCapabilities),P=r.next();!P.done;P=r.next())a.S[P.value.contentType]= !0}e.L.push(a);e.useCobaltWidevine||e.X("html5_enable_vp9_fairplay")&&o1(a)?(e.T.shift(),AG(e)):e.callback(e.L)}}; qDj=function(e,a){var r={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(e.X("html5_enable_vp9_fairplay")&&cM(a))return r.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),r.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[r];BM(a)&&(r.initDataTypes=["keyids","cenc"]);for(var P=g.Z(Object.keys(e.S[a.flavor])),B=P.next();!B.done;B=P.next()){B=B.value;var h=B.indexOf("audio/")===0,c=h?r.audioCapabilities:r.videoCapabilities;a.flavor!== "widevine"||e.C?c.push({contentType:B}):h?c.push({contentType:B,robustness:"SW_SECURE_CRYPTO"}):(g.Ed&&g.zu("windows nt")&&!e.X("html5_drm_enable_moho")||c.push({contentType:B,robustness:"HW_SECURE_ALL"}),h=B,e.gP.C.B&&B.includes("vp09")&&(h=B+"; experimental=allowed"),c.push({contentType:h,robustness:"SW_SECURE_DECODE"}),Cn(e.gP)==="MWEB"&&(Fw()||Nr())&&(e.nf("swcrypto",{}),c.push({contentType:B,robustness:"SW_SECURE_CRYPTO"})))}return[r]}; ITL=function(e){if(rV()&&(g.Uv||Rf))e.L.push(new a1("fairplay","com.apple.fps.1_0","",e.gP.experiments));else{var a=REz(),r=g.tw(e.T,function(P){var B=e.B[P],h=!1,c=!1,y;for(y in e.S[B.flavor])a(y,P)&&(B.S[y]=!0,h=h||y.indexOf("audio/")===0,c=c||y.indexOf("video/")===0);return h&&c}); r&&e.L.push(e.B[r]);e.T=[]}e.callback(e.L)}; REz=function(){var e=rV();if(e){var a=e.isTypeSupported;return function(P,B){return a(B,P)}}var r=C_(); return r&&(r.addKey||r.webkitAddKey)?function(P,B){return!!r.canPlayType(P,B)}:function(){return!1}}; SDj=function(e){this.experiments=e;this.S=2048;this.L=0;this.HW=(this.D=this.X("html5_streaming_resilience"))?.5:.25;var a=a===void 0?0:a;this.B=g.eS(this.experiments,"html5_media_time_weight_prop")||a;this.N=(this.C=this.experiments.FM("html5_consider_end_stall"))&&GA;this.T=this.experiments.FM("html5_measure_max_progress_handling");this.Y=this.X("html5_treat_requests_pre_elbow_as_metadata");this.Z=this.X("html5_media_time_weight")||!!this.B;this.X("html5_sabr_live_audio_early_return_fix")&&GA&& (this.S=65536)}; sVI=function(e,a){this.S=void 0;this.experimentIds=e?e.split(","):[];this.flags=Fv(a||"","&");e={};a=g.Z(this.experimentIds);for(var r=a.next();!r.done;r=a.next())e[r.value]=!0;this.experiments=e}; g.eS=function(e,a){e=e.flags[a];JSON.stringify(e);return Number(e)||0}; Et=function(e,a){return(e=e.flags[a])?e.toString():""}; mOL=function(e){if(e=e.flags.html5_web_po_experiment_ids)if(e=e.replace(/\[ *(.*?) *\]/,"$1"))return e.split(",").map(Number);return[]}; FYT=function(e){if(e.S)return e.S;if(e.experimentIds.length<=1)return e.S=e.experimentIds,e.S;var a=[].concat(g.UO(e.experimentIds)).map(function(P){return Number(P)}); a.sort();for(var r=a.length-1;r>0;--r)a[r]-=a[r-1];e.S=a.map(function(P){return P.toString()}); e.S.unshift("v1");return e.S}; jVl=function(e){return MEO.then(e)}; bP=function(e,a,r){this.experiments=e;this.Eo=a;this.Lf=r===void 0?!1:r;this.N=!!g.aZ("cast.receiver.platform.canDisplayType");this.Y={};this.HW=!1;this.L=new Map;this.D=!0;this.T=this.B=!1;this.S=new Map;this.oH=0;this.TQ=this.experiments.FM("html5_disable_vp9_encrypted");this.C=this.experiments.FM("html5_enable_encrypted_av1");e=g.aZ("cast.receiver.platform.getValue");this.Z=!this.N&&e&&e("max-video-resolution-vpx")||null;u2I(this);this.B=!!(If()&&ie()>=21)}; WgN=function(e,a,r){r=r===void 0?1:r;var P=a.itag;if(P==="0")return!0;var B=a.mimeType;if(a.vW==="1e"&&!e.C)return"dav1enc";if(vH(a)&&e.HW)return"dav1";if(a.video&&(a.video.isHdr()||a.video.primaries==="bt2020")&&!(H2(e,q$.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(P==="338"&&!(g.Ed?Zw(53):g.yw&&Zw(64)))return"dopus";var h=r;h=h===void 0?1: h;r={};a.video&&(a.video.width&&(r[q$.WIDTH.name]=a.video.width),a.video.height&&(r[q$.HEIGHT.name]=a.video.height),a.video.fps&&(r[q$.FRAMERATE.name]=a.video.fps*h),a.video.S&&(r[q$.EOTF.name]=a.video.S),a.NF&&(r[q$.BITRATE.name]=a.NF*8*h),a.vW==="("&&(r[q$.CRYPTOBLOCKFORMAT.name]="subsample"),a.video.projectionType==="EQUIRECTANGULAR"||a.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||a.video.projectionType==="MESH")&&(r[q$.DECODETOTEXTURE.name]="true");a.audio&&a.audio.numChannels&& (r[q$.CHANNELS.name]=a.audio.numChannels);e.B&&IH(a)&&(r[q$.EXPERIMENTAL.name]="allowed");h=g.Z(Object.keys(q$));for(var c=h.next();!c.done;c=h.next()){c=q$[c.value];var y;if(y=r[c.name])if(y=!(c===q$.EOTF&&a.mimeType.indexOf("vp09.02")>0)){y=c;var T=a;y=!(e.experiments.FM("html5_ignore_h264_framerate_cap")&&y===q$.FRAMERATE&&W9I(T))}if(y)if(H2(e,c))if(e.Z){if(e.Z[c.name] 1080&&a.DX&&(B+="; hdcp=2.2");return P==="227"?"hqcenc":P!=="585"&&P!=="588"&&P!=="583"&&P!=="586"&&P!=="584"&&P!=="587"&&P!=="591"&&P!=="592"||e.experiments.FM("html5_enable_new_hvc_enc")?If()&&ie()>=21&&g.zu("appletv5")&&(P==="410"||P==="845")?!0:e.isTypeSupported(B)?!0:"tpus":"newhvc"}; tG=function(){var e=Nr()&&!Zw(29),a=g.zu("google tv")&&g.zu("chrome")&&!Zw(30);return e||a?!1:i$j()}; KYq=function(e,a,r){var P=480;a=g.Z(a);for(var B=a.next();!B.done;B=a.next()){B=B.value;var h=B.video.qualityOrdinal;h<=1080&&h>P&&WgN(e,B,r)===!0&&(P=h)}return P}; g.gV=function(e,a){a=a===void 0?!1:a;return tG()&&e.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!a&&e.canPlayType(C_(),"application/x-mpegURL")?!0:!1}; aUy=function(e){edj(function(){for(var a=g.Z(Object.keys(q$)),r=a.next();!r.done;r=a.next())H2(e,q$[r.value])})}; H2=function(e,a){a.name in e.Y||(e.Y[a.name]=rcN(e,a));return e.Y[a.name]}; rcN=function(e,a){if(e.Z)return!!e.Z[a.name];if(a===q$.BITRATE&&e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(a===q$.AV1_CODECS)return e.isTypeSupported("video/mp4; codecs="+a.valid)&&!e.isTypeSupported("video/mp4; codecs="+a.j_);if(a.video){var r='video/webm; codecs="vp9"';e.isTypeSupported(r)||(r='video/mp4; codecs="avc1.4d401e"')}else r='audio/webm; codecs="opus"', e.isTypeSupported(r)||(r='audio/mp4; codecs="mp4a.40.2"');return e.isTypeSupported(r+"; "+a.name+"="+a.valid)&&!e.isTypeSupported(r+"; "+a.name+"="+a.j_)}; PyT=function(e,a){var r=0;e.L.has(a)&&(r=e.L.get(a).fv);e.L.set(a,{fv:r+1,CG:Math.pow(2,r+1)});e.T=!0}; zy=function(e){for(var a=[],r=g.Z(e.S.keys()),P=r.next();!P.done;P=r.next()){P=P.value;var B=e.S.get(P);a.push(P+"_"+B.maxWidth+"_"+B.maxHeight)}return a.join(".")}; OHO=function(e,a){for(var r=new Map,P=g.Z(e.S.keys()),B=P.next();!B.done;B=P.next()){B=B.value;var h=B.split("_")[0];a.has(h)||r.set(B,e.S.get(B))}e.S=r}; ds3=function(e,a,r){var P,B=((P=r.video)==null?void 0:P.fps)||0;P=a+"_"+B;var h=!!r.audio,c={itag:r.itag,vW:a,sU:h};if(h)c.numChannels=r.audio.numChannels;else{var y=r.video;c.maxWidth=y==null?void 0:y.width;c.maxHeight=y==null?void 0:y.height;c.maxFramerate=B;H2(e,q$.BITRATE)&&(c.maxBitrateBps=r.NF*8);c.Mi=y==null?void 0:y.isHdr()}y=e.S.get(P);y?h||(r=Math.max(y.maxWidth||0,y.maxHeight||0)>Math.max(c.maxWidth||0,c.maxHeight||0)?y:c,a={itag:r.itag,vW:a,sU:h,maxWidth:Math.max(y.maxWidth||0,c.maxWidth|| 0),maxHeight:Math.max(y.maxHeight||0,c.maxHeight||0),maxFramerate:B,Mi:r.Mi},H2(e,q$.BITRATE)&&(a.maxBitrateBps=r.maxBitrateBps),e.S.set(P,a)):e.S.set(P,c)}; JDL=function(e,a,r){var P,B=((P=r.video)==null?void 0:P.fps)||0;P=a+"_"+B;var h=!!r.audio,c=e.S.get(P);a:{var y=e.S.get(P),T=!!r.audio;if(y){if(T){var X=!1;break a}var f;if(!T&&((X=r.video)==null?0:X.height)&&y.maxHeight&&y.maxHeight>=((f=r.video)==null?void 0:f.height)){X=!1;break a}}X=!0}X&&(X=r.itag,a=c?c:{itag:X,vW:a,sU:h},h?a.numChannels=r.audio.numChannels:(h=r.video,a.maxWidth=h==null?void 0:h.width,a.maxHeight=h==null?void 0:h.height,a.maxFramerate=B,H2(e,q$.BITRATE)&&(a.maxBitrateBps=r.NF* 8),a.Mi=h==null?void 0:h.isHdr()),e.S.set(P,a))}; u2I=function(e){var a;(a=navigator.mediaCapabilities)!=null&&a.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(r){r.smooth&&r.powerEfficient&&(e.oH=2160)})}; Z0=function(){g.aK.call(this);this.items={}}; Ot=function(e,a){this.S=e;this.cipher=this.S.exports.AES128CTRCipher_create(a.byteOffset)}; dV=function(){this.T=this.vB=0;this.S=Array.from({length:k1.length}).fill(0)}; BvL=function(){}; hdl=function(){this.startTimeMs=(0,g.Ov)();this.S=!1}; ccI=function(){this.S=new BvL}; oDJ=function(e,a,r,P){P=P===void 0?1:P;r>=0&&(a in e.S||(e.S[a]=new dV),e.S[a].qQ(r,P))}; nD3=function(e,a,r,P,B){var h=(0,g.Ov)(),c=B?B(a):void 0,y;B=(y=c==null?void 0:c.vB)!=null?y:1;if(B!==0){var T;y=(T=c==null?void 0:c.profile)!=null?T:r;oDJ(e,y,h-P,B)}return a}; ycN=function(e,a,r,P,B){if(a&&typeof a==="object"){var h=function(c){return nD3(e,c,r,P,B)}; if(wn(a))return a.then(h);if(Y_(a))return x_(a,h)}return nD3(e,a,r,P,B)}; Tvq=function(){}; AcI=function(e,a){return HZ(XmL,function(){var r=this;return function B(){var h,c,y;return Nj(B,function(T){switch(T.T){case 1:g.d4(T,2);if(!r.L)throw"wasm.ps.ns";h=e;c=IT;return Zl(T,q5(fUJ(r,a)),4);case 4:y=c(T.S);if(!y)throw"wasm.ps.um";try{return T.return(new WebAssembly.Instance(y,h))}catch(X){}return Zl(T,q5(WebAssembly.instantiate(y,h)),5);case 5:return T.return(T.S);case 2:g.YN(T),g.pL(T,0)}})}()})}; UN4=function(e,a){e.S||(e.S=x_(zC(function(){return fetch(a)}),function(r){return r.arrayBuffer()}),Ij(e.S,function(r){e.S=void 0; throw"wasm.ps.f: "+r;}))}; fUJ=function(e,a){if(e.T)return e.T;e.T=CyI(e,a);Ij(e.T,function(r){e.T=void 0;throw"wasm.ps.c: "+r;}); return e.T}; CyI=function(e,a){return HZ(e,function(){var r=this;return function B(){var h,c,y,T,X,f,A,U,C,G,O,d,W,V;return Nj(B,function(L){switch(L.T){case 1:g.d4(L,2);h=[];c=window.ywc;if(!c){L.Oo(4);break}y=c[a];if(!y){L.Oo(4);break}if(y.mod)return L.return(y.mod);if(!y.modP){L.Oo(6);break}g.kN(L,7);T=IT;return Zl(L,q5(y.modP),9);case 9:return L.return(T(L.S));case 7:g.Q3(L),h.unshift("pcm");case 6:if(y.bin){r.S=pA(y.bin);L.Oo(4);break}if(!y.binP){L.Oo(4);break}g.kN(L,12);X=LA;f=pA;A=IT;return Zl(L,q5(y.binP), 14);case 14:r.S=f.call(X,A(L.S));g.Dl(L,4);break;case 12:g.Q3(L),r.S=void 0,h.unshift("pfb");case 4:if(!r.S){L.Oo(15);break}g.kN(L,16);U=IT;return Zl(L,q5(r.S),18);case 18:C=U(L.S);if(r.B)try{return L.return(new WebAssembly.Module(C))}catch(z){r.B=!1,h.unshift("f0cs")}G=IT;return Zl(L,q5(WebAssembly.compile(C)),19);case 19:return L.return(G(L.S));case 16:g.Q3(L),r.S=void 0,h.unshift("f0ca");case 15:return g.kN(L,20),UN4(r,a),O=IT,Zl(L,q5(r.S),22);case 22:d=O(L.S);if(r.B)try{return L.return(new WebAssembly.Module(d))}catch(z){r.B= !1,h.unshift("f1cs")}W=IT;return Zl(L,q5(WebAssembly.compile(d)),23);case 23:return L.return(W(L.S));case 20:V=g.Q3(L),r.S=void 0,r.L=!1,h.unshift("f1ca: "+V);case 21:throw"["+h.map(function(z){return'"'+z+'"'}).join(", ")+"]"; case 2:g.YN(L),g.pL(L,0)}})}()})}; GeN=function(){}; ED3=function(){var e=this;this.proc_exit=function(){}; this.fd_write=function(a,r,P){if(!e.exports)return 1;a=new Uint32Array(e.exports.memory.buffer,r,P*2);r=[];for(var B=0;B0)a=e.byterate,this.HW=!0;else{var P; r=(((P=navigator.connection)==null?void 0:P.downlink)||0)*64*1024;r>0&&(a=r,this.HW=!0)}this.B.dT(this.policy.Z,a);e.delay>0&&this.Y.dT(1,Math.min(e.delay,2));e.stall>0&&this.D.dT(1,e.stall);e.init>0&&(this.e1=Math.min(e.init,this.e1));e.interruptions&&(this.L=this.L.concat(e.interruptions),this.L.length>16&&this.L.pop());this.oH=(0,g.Ov)();this.policy.D>0&&(this.XM=new g.vP(this.GQ,this.policy.D,this),g.x(this,this.XM),this.XM.start())}; zA=function(e,a,r,P){e.B.dT(P===void 0?a:P,r/a);e.Z=(0,g.Ov)()}; JcJ=function(e){e.C||(e.C=(0,g.Ov)());e.policy.N&&(e.Z=(0,g.Ov)())}; DNl=function(e,a){if(e.C){var r=a-e.C;if(r<6E4){if(r>1E3){var P=e.interruptions;P.push(Math.ceil(r));P.sort(function(B,h){return h-B}); P.length>16&&P.pop()}e.Eo+=r}}e.C=a}; NR=function(e,a,r,P,B,h){h=h===void 0?!1:h;e.Cf.dT(a,r/a);e.Z=(0,g.Ov)();B||e.N.dT(1,a-P);h||(e.C=0);e.oH>-1&&(0,g.Ov)()-e.oH>3E4&&V0L(e)}; x1=function(e,a,r){a=Math.max(a,e.T.S);e.D.dT(1,r/a)}; I1=function(e){e=e.Y.rL()+e.Lf.rL()||0;e=isNaN(e)?.5:e;return e=Math.min(e,5)}; HM=function(e,a,r){isNaN(r)||(e.TQ+=r);isNaN(a)||(e.Uo+=a)}; qR=function(e){e=e.B.rL();return e>0?e:1}; vM=function(e,a,r){a=a===void 0?!1:a;r=r===void 0?1048576:r;var P=qR(e);P=1/((e.D.rL()||0)*e.policy.HW+1/P);var B=e.Cf.rL();B=B>0?B:1;var h=Math.max(P,B);e.policy.C>0&&B=4E3}; QIj=function(e){this.experiments=e;this.S=17;this.B=13E4;this.Z=.5;this.L=this.T=!1;this.oH=this.X("html5_use_histogram_for_bandwidth");this.C=g.eS(this.experiments,"html5_auxiliary_estimate_weight");this.HW=g.eS(this.experiments,"html5_stall_factor")||1;this.D=g.eS(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.FM("html5_trigger_loader_when_idle_network");this.N=this.experiments.FM("html5_sabr_fetch_on_idle_network_preloaded_players")}; lU4=function(e,a){e=e===void 0?{}:e;a=a===void 0?{}:a;g.N.call(this);var r=this;this.values=e;this.CS=a;this.T={};this.B=this.S=0;this.L=new g.vP(function(){Wo4(r)},1E4); g.x(this,this.L)}; SD=function(e,a){Loj(e,a);return e.values[a]&&e.CS[a]?e.values[a]/Math.pow(2,e.S/e.CS[a]):0}; Loj=function(e,a){e.values[a]||(a=jFy(),e.values=a.values||{},e.CS=a.halfLives||{},e.T=a.values?Object.assign({},a.values):{})}; Wo4=function(e){var a=jFy();if(a.values){a=a.values;for(var r={},P=g.Z(Object.keys(e.values)),B=P.next();!B.done;B=P.next())B=B.value,a[B]&&e.T[B]&&(e.values[B]+=a[B]-e.T[B]),r[B]=SD(e,B);e.T=r}a=e.CS;r={};r.values=e.T;r.halfLives=a;g.Vy("yt-player-memory",r,2592E3)}; fQ=function(e,a,r,P,B){g.N.call(this);this.webPlayerContextConfig=a;this.Ee=P;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.L5=this.bv=this.Yf=this.He=this.userDisplayName=this.userDisplayImage=this.mf="";this.S={};this.ID={};this.controlsType="0";this.Te=NaN;this.k$=!1;this.sx=(0,g.Ov)();this.T$=0;this.Kq=this.lq=!1;this.HI=!0;this.preferGapless=this.gb=this.h1=this.B=this.mJ=!1;this.sQ=[];this.t1=!1;this.E8=0;e=e?g.GX(e):{};a&&a.csiPageType&&(this.csiPageType=a.csiPageType);a&&a.csiServiceName&& (this.csiServiceName=a.csiServiceName);a&&a.preferGapless&&(this.preferGapless=a.preferGapless);this.experiments=new sVI(a?a.serializedExperimentIds:e.fexp,a?a.serializedExperimentFlags:e.fflags);this.forcedExperiments=a?a.serializedForcedExperimentIds:a6("",e.forced_experiments)||void 0;this.cspNonce=(a==null?0:a.cspNonce)?a.cspNonce:a6("",e.csp_nonce);this.X("web_player_deprecated_uvr_killswitch");try{var h=document.location.toString()}catch(cI){h=""}this.RL=h;this.ancestorOrigins=(P=window.location.ancestorOrigins)? Array.from(P):[];this.L=ue(!1,a?a.isEmbed:e.is_embed);if(a&&a.device){if(P=a.device,P.androidOsExperience&&(this.S.caoe=""+P.androidOsExperience),P.androidPlayServicesVersion&&(this.S.capsv=""+P.androidPlayServicesVersion),P.brand&&(this.S.cbrand=P.brand),P.browser&&(this.S.cbr=P.browser),P.browserVersion&&(this.S.cbrver=P.browserVersion),P.cobaltReleaseVehicle&&(this.S.ccrv=""+P.cobaltReleaseVehicle),this.S.c=P.interfaceName||"WEB",this.S.cver=P.interfaceVersion||"html5",P.interfaceTheme&&(this.S.ctheme= P.interfaceTheme),this.S.cplayer=P.interfacePlayerType||"UNIPLAYER",P.model&&(this.S.cmodel=P.model),P.network&&(this.S.cnetwork=P.network),P.os&&(this.S.cos=P.os),P.osVersion&&(this.S.cosver=P.osVersion),P.platform&&(this.S.cplatform=P.platform),h=Et(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),h==="all"||h==="once")P.chipset&&(this.ID.cchip=P.chipset),P.cobaltAppVersion&&(this.ID.ccappver=P.cobaltAppVersion),P.firmwareVersion&&(this.ID.cfrmver=P.firmwareVersion),P.deviceYear&&(this.ID.crqyear= P.deviceYear)}else this.S.c=e.c||"web",this.S.cver=e.cver||"html5",this.S.cplayer="UNIPLAYER";this.loaderUrl=a?this.L||Yq3(this)&&a.loaderUrl?a.loaderUrl||"":this.RL:this.L||Yq3(this)&&e.loaderUrl?a6("",e.loaderUrl):this.RL;this.L&&g.KL("yt.embedded_player.embed_url",this.loaderUrl);this.Y=NT(this.loaderUrl,wm4);P=this.loaderUrl;var c=c===void 0?!1:c;this.bK=zx(NT(P,pm4),P,c,"Trusted Ad Domain URL");this.dW=ue(!1,e.privembed);this.protocol=this.RL.indexOf("http:")===0?"http":"https";this.QL=Thz((a? a.customBaseYoutubeUrl:e.BASE_YT_URL)||"")||Thz(this.RL)||this.protocol+"://www.youtube.com/";c=a?a.eventLabel:e.el;P="detailpage";c==="adunit"?P=this.L?"embedded":"detailpage":c==="embedded"||this.Y?P=KK(P,c,i7T):c&&(P="embedded");this.Lf=P;ktL();c=null;P=a?a.playerStyle:e.ps;h=g.ZB(zdL,P);!P||h&&!this.Y||(c=P);this.playerStyle=c;this.Z=g.ZB(zdL,this.playerStyle);this.houseBrandUserStatus=a==null?void 0:a.houseBrandUserStatus;this.oH=this.Z&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.pT=!this.oH;this.XM=ue(!1,e.disableplaybackui);this.disablePaidContentOverlay=ue(!1,a==null?void 0:a.disablePaidContentOverlay);this.disableSeek=ue(!1,a==null?void 0:a.disableSeek);this.enableSpeedOptions=(a==null?void 0:a.enableSpeedOptions)||(C_().defaultPlaybackRate?md||g.mp||FZ?g.yw&&Zw("20")||g.Ed&&Zw("4")||g.MR&&Zw("11")||vf():!(g.MR&&!g.zu("chrome")||md||g.zu("android")||g.zu("silk")):!1);this.w0=ue(!1,e.enable_faster_speeds);var y;this.supportsVarispeedExtendedFeatures=(y=a==null?void 0: a.supportsVarispeedExtendedFeatures)!=null?y:!1;this.T=ue(this.playerStyle==="blazer",e.is_html5_mobile_device||a&&a.isMobileDevice);this.Uo=sP()||Fw();this.Sd=this.X("mweb_allow_background_playback")?!1:this.T&&!this.Z;this.Cf=gE();this.qo=g.jD;var T;this.W8=!!(a==null?0:(T=a.embedsHostFlags)==null?0:T.optOutApiDeprecation);var X;a?a.hideInfo!==void 0&&(X=!a.hideInfo):X=e.showinfo;this.TU=g.uP(this)&&!this.W8||ue(!Kn(this)&&!eP(this)&&!this.Z,X);this.Rq=a?!!a.mobileIphoneSupportsInlinePlayback:ue(!1, e.playsinline);y=this.T&&am&&rd!=null&&rd>0&&rd<=2.3;T=a?a.useNativeControls:e.use_native_controls;this.D=g.uP(this)&&this.T;X=this.T&&!this.D;T=g.Pb(this)||!y&&ue(X,T)?"3":"1";this.disableOrganicUi=!(a==null||!a.disableOrganicUi);X=a?a.controlsType:e.controls;this.controlsType=this.disableOrganicUi||X==="0"||X===0?"0":T;this.oi=this.T;this.color=KK("red",a?a.progressBarColor:e.color,Nvl);this.AN=this.controlsType==="3";this.h9=!this.L;this.B4=(T=!this.h9&&!eP(this)&&!this.oH&&!this.Z&&!Kn(this))&& !this.AN&&this.controlsType==="1";this.kh=g.Bb(this)&&T&&this.controlsType==="0"&&!this.B4&&!(a==null?0:a.embedsEnableEmc3ds);this.No=this.A6=y;this.AC=(this.controlsType==="3"||this.T||ue(!1,e.use_media_volume))&&!this.D;this.O8=Rf&&!g.x8(601)?!1:!0;this.vj=this.L||!1;this.J9=eP(this)?"":(this.loaderUrl||e.post_message_origin||"").substring(0,128);this.widgetReferrer=a6("",a?a.widgetReferrer:e.widget_referrer);var f;a?a.disableCastApi&&(f=!1):f=e.enablecastapi;f=!this.Y||ue(!0,f);y=!0;a&&a.disableMdxCast&& (y=!1);this.Yv=this.X("enable_cast_for_web_unplugged")&&g.hZ(this)&&y||g.L$(this)&&y||f&&y&&this.controlsType==="1"&&!this.T&&(eP(this)||g.Bb(this)||g.cb(this));this.Mo=!!window.document.pictureInPictureEnabled||tX();f=a?!!a.supportsAutoplayOverride:ue(!1,e.autoplayoverride);this.ZZ=!(this.T&&!g.uP(this))&&!g.zu("nintendo wiiu")||f;this.Tu=(a?!!a.enableMutedAutoplay:ue(!1,e.mutedautoplay))&&!1;f=(eP(this)||Kn(this))&&this.playerStyle==="blazer";this.G0=a?!!a.disableFullscreen:!ue(!0,e.fs);y=g.hJ(g.om(this))&& g.uP(this);this.HA=!this.G0&&(f||g.fE())&&!y;this.t6=this.X("html5_picture_in_picture_logging_onresize");var A;this.xE=(A=g.eS(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?A:.33;this.bx=this.X("html5_picture_in_picture_blocking_onresize");this.SQ=this.X("html5_picture_in_picture_blocking_ontimeupdate");this.h6=this.X("html5_picture_in_picture_blocking_document_fullscreen");this.pY=this.X("html5_picture_in_picture_blocking_standard_api");A=Nr()&&Zw(58)&&!Fw();f=HU||typeof MediaSource=== "undefined";this.SZ=this.X("uniplayer_block_pip")&&(A||f)||this.bx||this.SQ||this.pY;A=g.uP(this)&&!this.W8;var U;a?a.disableRelatedVideos!==void 0&&(U=!a.disableRelatedVideos):U=e.rel;this.Ge=A||ue(!this.Z,U);this.Vh=ue(!1,a?a.enableContentOwnerRelatedVideos:e.co_rel);this.N=Fw()&&rd>0&&rd<=4.4?"_top":"_blank";this.BV=g.cb(this);this.Nc=ue(this.playerStyle==="blazer",a?a.enableCsiLogging:e.enablecsi);switch(this.playerStyle){case "blogger":U="bl";break;case "gmail":U="gm";break;case "gac":U="ga"; break;case "ads-preview":U="ap";break;case "books":U="gb";break;case "docs":case "flix":U="gd";break;case "duo":U="gu";break;case "google-live":U="gl";break;case "google-one":U="go";break;case "play":case "play-ads":U="gp";break;case "chat":U="hc";break;case "hangouts-meet":U="hm";break;case "photos-edu":case "picasaweb":U="pw";break;default:U="yt"}this.HW=U;this.TQ=a6("",a?a.authorizedUserIndex:e.authuser);this.sM=g.uP(this)&&(this.dW||!f_q()||this.Uo);var C;a?a.disableWatchLater!==void 0&&(C=!a.disableWatchLater): C=e.showwatchlater;this.FI=((U=!this.sM)||!!this.TQ&&U)&&ue(!this.oH,this.Y?C:void 0);this.py=a?a.isMobileDevice||!!a.disableKeyboardControls:ue(!1,e.disablekb);this.loop=ue(!1,e.loop);this.pageId=a6("",a?a.initialDelegatedSessionId:e.pageid);this.Fx=ue(!0,e.canplaylive);C=g.eS(this.experiments,"html5_default_audio_quality_setting_lr");var G;this.Rc=(G=xNL[xNL[C]])!=null?G:0;this.rP=ue(!1,e.livemonitor);this.disableSharing=ue(this.Z,a?a.disableSharing:e.ss);(G=a&&this.X("fill_video_container_size_override_from_wpcc")? a.videoContainerOverride:e.video_container_override)?(C=G.split("x"),C.length!==2?G=null:(G=Number(C[0]),C=Number(C[1]),G=isNaN(G)||isNaN(C)||G*C<=0?null:new g.Sr(G,C))):G=null;this.LY=G;this.mute=a?!!a.startMuted:ue(!1,e.mute);this.storeUserVolume=!this.mute&&ue(this.controlsType!=="0",a?a.storeUserVolume:e.store_user_volume);G=a?a.annotationsLoadPolicy:e.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:KK(void 0,G,nQ);this.captionsLanguagePreference=a?a.captionsLanguagePreference|| "":a6("",e.cc_lang_pref);G=KK(2,a?a.captionsLanguageLoadPolicy:e.cc_load_policy,nQ);this.controlsType==="3"&&G===2&&(G=3);this.H8=G;this.RO=a?a.hl||"en_US":a6("en_US",e.hl);this.region=a?a.contentRegion||"US":a6("US",e.cr);this.hostLanguage=a?a.hostLanguage||"en":a6("en",e.host_language);this.ZI=!this.dW&&Math.random()=480;this.schedule=new iP(A,new SDj(this.experiments),B);g.x(this,this.schedule);var O;this.enableSafetyMode=(O=a==null?void 0:a.initialEnableSafetyMode)!=null?O:ue(!1,e.enable_safety_mode);B=this.XM?!1:eP(this)&&this.playerStyle!== "blazer";var d;a?a.disableAutonav!=null&&(d=!a.disableAutonav):d=e.allow_autonav;this.QH=ue(B,!this.oH&&d);this.sendVisitorIdHeader=a?!!a.sendVisitorIdHeader:ue(!1,e.send_visitor_id_header);var W;this.playerStyle==="docs"&&(a?W=a.disableNativeContextMenu:W=e.disable_native_context_menu);this.disableNativeContextMenu=ue(!1,W);this.mH=A1(this)&&this.X("enable_skip_intro_button");this.embedConfig=a6("",a?a.serializedEmbedConfig:e.embed_config);this.Eo=Bh(e,g.uP(this));this.B=this.Eo==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(a==null||!a.embedsErrorLinks);this.VY=ue(!1,e.full_window);var V;this.ym=!((V=this.webPlayerContextConfig)==null?0:V.chromeless);var L;this.livingRoomAppMode=KK("LIVING_ROOM_APP_MODE_UNSPECIFIED",e.living_room_app_mode||(a==null?void 0:(L=a.device)==null?void 0:L.livingRoomAppMode),qqI);var z;d=e$(NaN,a==null?void 0:(z=a.device)==null?void 0:z.deviceYear);isNaN(d)||(this.deviceYear=d);this.transparentBackground=a?!!a.transparentBackground:ue(!1,e.transparent_background);this.showMiniplayerButton= a?!!a.showMiniplayerButton:ue(!1,e.show_miniplayer_button);var q;g.uP(this)&&!(a==null?0:(q=a.embedsHostFlags)==null?0:q.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=a?!!a.externalFullscreen:ue(!1,e.external_fullscreen);this.showMiniplayerUiWhenMinimized=a?!!a.showMiniplayerUiWhenMinimized:ue(!1,e.use_miniplayer_ui);var M;this.HI=(M=e.show_loop_video_toggle)!=null?M:!0;this.wx=Math.random()<1E-4;if(e.onesie_hot_config||(a==null?0:a.onesieHotConfig))this.Q2=new keq(e.onesie_hot_config, a==null?void 0:a.onesieHotConfig),g.x(this,this.Q2);this.isTectonic=a?!!a.isTectonic:!!e.isTectonic;this.playerCanaryState=r;this.playerCanaryStage=a==null?void 0:a.canaryStage;this.Ky=new lU4;g.x(this,this.Ky);this.datasyncId=(a==null?void 0:a.datasyncId)||g.IM("DATASYNC_ID");this.NO=g.IM("LOGGED_IN",!1);this.gT=(a==null?void 0:a.allowWoffleManagement)||!1;this.ih=Infinity;this.uh=NaN;this.livingRoomPoTokenId=a==null?void 0:a.livingRoomPoTokenId;this.X("html5_high_res_logging_always")?this.h1=!0: this.h1=Math.random()*100=0&&e0&&e.wx&&(P.sort(),g.VJ(new g.I6("Player client parameters changed after startup",P)));e.userAge=e$(e.userAge,a.user_age);e.mf=a6(e.mf,a.user_display_email);e.userDisplayImage=a6(e.userDisplayImage,a.user_display_image);g.IF(e.userDisplayImage)||(e.userDisplayImage= "");e.userDisplayName=a6(e.userDisplayName,a.user_display_name);e.He=a6(e.He,a.user_gender);e.csiPageType=a6(e.csiPageType,a.csi_page_type);e.csiServiceName=a6(e.csiServiceName,a.csi_service_name);e.Nc=ue(e.Nc,a.enablecsi);e.pageId=a6(e.pageId,a.pageid);if(r=a.enabled_engage_types)e.enabledEngageTypes=new Set(r.split(","));a.living_room_session_po_token&&(e.A1=a.living_room_session_po_token.toString())}; AZ=function(e,a){return!e.Z&&Nr()&&Zw(55)&&e.controlsType==="3"&&!a}; g.UA=function(e){e=yg(e.QL);return e==="www.youtube-nocookie.com"?"www.youtube.com":e}; CQ=function(e,a,r){return e.protocol+"://i1.ytimg.com/vi/"+a+"/"+(r||"hqdefault.jpg")}; GF=function(e){return eP(e)&&!g.hZ(e)}; g.Pb=function(e){return e.X("html5_local_playsinline")?Rf&&!g.x8(602)&&!("playsInline"in C_()):Rf&&!e.Rq||g.zu("nintendo wiiu")?!0:!1}; Cn=function(e){return e.S.c}; g.Uh=function(e){return/^TVHTML5/.test(Cn(e))}; g.EA=function(e){return Cn(e)==="TVHTML5"}; Yq3=function(e){return Cn(e)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; H73=function(e){return e.S.cmodel==="CHROMECAST ULTRA/STEAK"||e.S.cmodel==="CHROMECAST/STEAK"}; g.bX=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; A1=function(e){return/web/i.test(Cn(e))}; g.tZ=function(e){return Cn(e).toUpperCase()==="WEB"}; XU=function(e){return Cn(e)==="WEB_KIDS"}; g.hZ=function(e){return Cn(e)==="WEB_UNPLUGGED"}; gd=function(e){return Cn(e)==="TVHTML5_UNPLUGGED"}; g.fm=function(e){return g.hZ(e)||Cn(e)==="TV_UNPLUGGED_CAST"||gd(e)}; g.L$=function(e){return Cn(e)==="WEB_REMIX"}; g.Zm=function(e){return Cn(e)==="WEB_MUSIC_INTEGRATIONS"}; g.OA=function(e){return Cn(e)==="WEB_EMBEDDED_PLAYER"}; g.dd=function(e){return(e.deviceIsAudioOnly||!g.Ed||HU||e.controlsType==="3"?!1:g.mp?e.L&&g.x8(51):!0)||(e.deviceIsAudioOnly||!g.yw||HU||e.controlsType==="3"?!1:g.mp?e.L&&g.x8(48):g.x8(38))||(e.deviceIsAudioOnly||!g.MR||HU||e.controlsType==="3"?!1:g.mp?e.L&&g.x8(37):g.x8(27))||!e.deviceIsAudioOnly&&g.kG&&!EO4()&&g.x8(11)||!e.deviceIsAudioOnly&&g.Uv&&g.x8("604.4")}; Sqy=function(e){if(g.Bb(e)&&am)return!1;if(g.yw){if(!g.x8(47)||!g.x8(52)&&g.x8(51))return!1}else if(g.Uv)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; mN4=function(e,a){return e.enabledEngageTypes.has(a.toString())||sIy.includes(a)}; eP=function(e){return e.Lf==="detailpage"}; g.Bb=function(e){return e.Lf==="embedded"}; JZ=function(e){return e.Lf==="leanback"}; Kn=function(e){return e.Lf==="adunit"||e.playerStyle==="gvn"}; g.cb=function(e){return e.Lf==="profilepage"}; g.uP=function(e){return e.L&&g.Bb(e)&&!Kn(e)&&!e.Z}; Dm=function(e){if(!e.userDisplayImage)return"";var a=e.userDisplayImage.split("/");if(a.length===5)return e=a[a.length-1].split("="),e[1]="s20-c",a[a.length-1]=e.join("="),a.join("/");if(a.length===8)return a.splice(7,0,"s20-c"),a.join("/");if(a.length===9)return a[7]+="-s20-c",a.join("/");g.VJ(new g.I6("Profile image not a FIFE URL.",e.userDisplayImage));return e.userDisplayImage}; g.Vg=function(e){var a=g.UA(e);Foq.includes(a)&&(a="www.youtube.com");return e.protocol+"://"+a}; g.$G=function(e,a){a=a===void 0?"":a;if(e.Ee){var r=new kF,P,B=e.Ee();B.signedOut?P="":B.token?P=B.token:B.pendingResult.then(function(h){B.signedOut?r.resolve(""):r.resolve(h.token)},function(h){g.VJ(new g.I6("b189348328_oauth_callback_failed",{error:h})); r.resolve(a)}); return P!==void 0?VU(P):new Jl(r)}return VU(a)}; Qg=function(e,a){a=a===void 0?"":a;return e.NO?pA(!0):Ij(x_(pA(g.$G(e,a)),function(r){return pA(!!r)}),function(){return pA(!1)})}; M0l=function(e,a){a==null||x_(a,function(r){e.n5=r;var P,B;(P=e.Q2)!=null&&(B=P.S)!=null&&(B.S=new $1(r,B.T,B.B),g.x(B,B.S))})}; yg=function(e){var a=g.TS(e);return(e=Number(g.yp(e)[4]||null)||null)?a+":"+e:a}; Wb=function(e,a){a=a===void 0?!1:a;var r=NW[e],P=jI3[r],B=ugy[e];if(!B||!P)return null;a=new p_(a?B.height:B.width,a?B.width:B.height,B.fps);P=il(P,a,r);return new xK(e,P,{video:a,NF:B.bitrate/8})}; eBL=function(e){var a=jI3[NW[e]],r=KoL[e];return r&&a?new xK(e,a,{audio:new Od(r.audioSampleRate,r.numChannels)}):null}; lX=function(e){this.S=e}; LQ=function(e,a,r,P){if(r)return D7();r={};var B=C_();a=g.Z(a);for(var h=a.next();!h.done;h=a.next())if(h=h.value,e.canPlayType(B,h.getInfo().mimeType)||P){var c=h.S.video.quality;if(!r[c]||r[c].getInfo().Ox())r[c]=h}e=[];r.auto&&e.push(r.auto);P=g.Z(i7);for(B=P.next();!B.done;B=P.next())(B=r[B.value])&&e.push(B);return e.length?VU(e):D7()}; a8N=function(e){this.itag=e.itag;this.url=e.url;this.codecs=e.codecs;this.width=e.width;this.height=e.height;this.fps=e.fps;this.bitrate=e.bitrate;var a;this.T=((a=e.audioItag)==null?void 0:a.split(","))||[];this.NV=e.NV;this.DX=e.DX||"";this.yX=e.yX;this.audioChannels=e.audioChannels;this.S=""}; rgL=function(e,a,r,P){a=a===void 0?!1:a;r=r===void 0?!0:r;P=P===void 0?{}:P;var B={};e=g.Z(e);for(var h=e.next();!h.done;h=e.next()){h=h.value;if(a&&MediaSource&&MediaSource.isTypeSupported){var c=h.type;h.audio_channels&&(c=c+"; channels="+h.audio_channels);if(!MediaSource.isTypeSupported(c)){P[h.itag]="tpus";continue}}if(r||!h.drm_families||h.eotf!=="smpte2084"&&h.eotf!=="arib-std-b67"){c=void 0;var y={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},T=h.type.match(/codecs="([^"]*)"/); T=T?T[1]:"";h.audio_track_id&&(c=new g.WO(h.name,h.audio_track_id,!!h.is_default));var X=h.eotf;h=new a8N({itag:h.itag,url:h.url,codecs:T,width:Number(h.width),height:Number(h.height),fps:Number(h.fps),bitrate:Number(h.bitrate),audioItag:h.audio_itag,NV:X?y[X]:void 0,DX:h.drm_families,yX:c,audioChannels:Number(h.audio_channels)});B[h.itag]=B[h.itag]||[];B[h.itag].push(h)}else P[h.itag]="enchdr"}return B}; P8O=function(e,a,r,P,B){this.B=e;this.T=a;this.C=r;this.cpn=P;this.Z=B;this.L=0;this.S=""}; B7J=function(e,a){e.B.some(function(r){var P;return((P=r.yX)==null?void 0:P.getId())===a}); e.S=a}; YG=function(e,a,r){e.cpn&&(a=g.EW(a,{cpn:e.cpn}));r&&(a=g.EW(a,{paired:r}));return a}; hBj=function(e,a){e=e.itag.toString();a!==null&&(e+=a.itag.toString());return e}; cg4=function(e){for(var a=[],r=[],P=g.Z(e.T),B=P.next();!B.done;B=P.next())B=B.value,B.bitrate<=e.L?a.push(B):r.push(B);a.sort(function(h,c){return c.bitrate-h.bitrate}); r.sort(function(h,c){return h.bitrate-c.bitrate}); e.T=a.concat(r)}; wd=function(e,a,r){this.S=e;this.T=a;this.expiration=r;this.Kr=null}; oRL=function(e,a){if(!(HU||qr()||If()))return null;e=rgL(a,e.X("html5_filter_fmp4_in_hls"));if(!e)return null;a=[];for(var r={},P=g.Z(Object.keys(e)),B=P.next();!B.done;B=P.next()){B=g.Z(e[B.value]);for(var h=B.next();!h.done;h=B.next()){var c=h.value;c.yX&&(h=c.yX.getId(),r[h]||(c=new g.O$(h,c.yX),r[h]=c,a.push(c)))}}return a.length>0?a:null}; f8T=function(e,a,r,P,B,h,c){if(!(HU||qr()||If()))return D7();var y={},T=nRL(r),X=rgL(r,e.X("html5_filter_fmp4_in_hls"),e.C.D,y);if(!X)return c({noplst:1}),D7();ygO(X);r={};var f=(r.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",r),A;r=[];var U=[],C=[],G=null,O="";P=P&&P.match(/hls_timedtext_playlist/)?new a8N({itag:"0",url:P,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,yX:new g.WO("English","en",!1)}):null;for(var d=g.Z(Object.keys(X)),W=d.next();!W.done;W=d.next())if(W=W.value,!e.X("html5_disable_drm_hfr_1080")|| W!=="383"&&W!=="373"){W=g.Z(X[W]);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.width){for(var L=g.Z(V.T),z=L.next();!z.done;z=L.next())if(z=z.value,X[z]){V.S=z;break}V.S||(V.S=T7J(X,V));if(L=X[V.S])if(r.push(V),V.DX==="fairplay"&&(A=f),z="",V.NV==="PQ"?z="smpte2084":V.NV==="HLG"&&(z="arib-std-b67"),z&&(O=z),C.push(XwL(L,[V],P,h,V.itag,V.width,V.height,V.fps,T,void 0,void 0,A,z)),!G||V.width*V.height*V.fps>G.width*G.height*G.fps)G=V}else U.push(V)}else y[W]="disdrmhfr";C.reduce(function(q, M){return M.getInfo().isEncrypted()&&q},!0)&&(A=f); B=Math.max(B,0);f=G||{};X=f.fps===void 0?0:f.fps;G=f.width===void 0?0:f.width;f=f.height===void 0?0:f.height;d=e.X("html5_native_audio_track_switching");C.push(XwL(U,r,P,h,"93",G,f,X,T,"auto",B,A,O,d));Object.entries(y).length&&c(y);return LQ(e.C,C,AZ(e,a),!1)}; XwL=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C){for(var G=0,O="",d=g.Z(e),W=d.next();!W.done;W=d.next())W=W.value,O||(O=W.itag),W.audioChannels&&W.audioChannels>G&&(G=W.audioChannels,O=W.itag);B=new xK(B,"application/x-mpegURL",{audio:new Od(0,G),video:new p_(h,c,y,null,void 0,X,void 0,void 0,U),DX:A,Z$:O});e=new P8O(e,a,r?[r]:[],P,!!C);e.L=f?f:1369843;return new wd(B,e,T)}; nRL=function(e){e=g.Z(e);for(var a=e.next();!a.done;a=e.next())if(a=a.value,a.url&&(a=a.url.split("expire/"),!(a.length<=1)))return+a[1].split("/")[0];return NaN}; T7J=function(e,a){for(var r=g.Z(Object.keys(e)),P=r.next();!P.done;P=r.next()){P=P.value;var B=e[P][0];if(!B.width&&B.DX===a.DX&&!B.audioChannels)return P}return""}; ygO=function(e){for(var a=new Set,r=g.Z(Object.values(e)),P=r.next();!P.done;P=r.next())P=P.value,P.length&&(P=P[0],P.height&&P.codecs.startsWith("vp09")&&a.add(P.height));r=[];if(a.size){P=g.Z(Object.keys(e));for(var B=P.next();!B.done;B=P.next())if(B=B.value,e[B].length){var h=e[B][0];h.height&&a.has(h.height)&&!h.codecs.startsWith("vp09")&&r.push(B)}}a=g.Z(r);for(r=a.next();!r.done;r=a.next())delete e[r.value]}; pQ=function(e,a){this.S=e;this.T=a}; AgT=function(e,a,r,P){var B=[];r=g.Z(r);for(var h=r.next();!h.done;h=r.next()){var c=h.value;if(c.url){h=new g.v2(c.url,!0);if(c.s){var y=h,T=c.sp,X=sFy(decodeURIComponent(c.s));y[n[21]](T,encodeURIComponent(X))}y=g.Z(Object.keys(P));for(T=y.next();!T.done;T=y.next())T=T.value,h.set(T,P[T]);c=eE(c.type,c.quality,c.itag,c.width,c.height);B.push(new pQ(c,h))}}return LQ(e.C,B,AZ(e,a),!1)}; iX=function(e,a){this.S=e;this.T=a}; UKq=function(e,a,r){var P=[];r=g.Z(r);for(var B=r.next();!B.done;B=r.next())if((B=B.value)&&B.url){var h=eE(B.type,"medium","0");P.push(new iX(h,B.url))}return LQ(e.C,P,AZ(e,a),!1)}; C8J=function(e,a){var r=[],P=eE(a.type,"auto",a.itag);r.push(new iX(P,a.url));return LQ(e.C,r,!1,!0)}; ERj=function(e){return e&&G84[e]?G84[e]:null}; bj4=function(e){switch(e){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":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 e;default:return"sabr.config"}}; t94=function(e){if(e=e.commonConfig)this.url=e.url,this.urlQueryOverride=e.urlQueryOverride,e.ustreamerConfig&&(this.aG=Qw(e.ustreamerConfig)||void 0)}; gRJ=function(e,a){var r;if(a=a==null?void 0:(r=a.watchEndpointSupportedOnesieConfig)==null?void 0:r.html5PlaybackOnesieConfig)e.iz=new t94(a)}; g.zF=function(e){e=e===void 0?{}:e;this.languageCode=e.languageCode||"";this.languageName=e.languageName||null;this.kind=e.kind||"";this.name=e.name===void 0?null:e.name;this.displayName=e.displayName||null;this.id=e.id||null;this.S=e.is_servable||!1;this.isTranslateable=e.is_translateable||!1;this.url=e.url||null;this.vssId=e.vss_id||"";this.isDefault=e.is_default||!1;this.translationLanguage=e.translationLanguage||null;this.xtags=e.xtags||"";this.captionId=e.captionId||""}; g.xG=function(e){var a={languageCode:e.languageCode,languageName:e.languageName,displayName:g.Ng(e),kind:e.kind,name:e.name,id:e.id,is_servable:e.S,is_default:e.isDefault,is_translateable:e.isTranslateable,vss_id:e.vssId};e.xtags&&(a.xtags=e.xtags);e.captionId&&(a.captionId=e.captionId);e.translationLanguage&&(a.translationLanguage=e.translationLanguage);return a}; g.Im=function(e){return e.translationLanguage?e.translationLanguage.languageCode:e.languageCode}; g.Zj4=function(e){var a=e.vssId;e.translationLanguage&&a&&(a="t"+a+"."+g.Im(e));return a}; g.Ng=function(e){var a=[];if(e.displayName)a.push(e.displayName);else{var r=e.languageName||"";a.push(r);e.kind==="asr"&&r.indexOf("(")===-1&&a.push(" (Automatic Captions)");e.name&&a.push(" - "+e.name)}e.translationLanguage&&a.push(" >> "+e.translationLanguage.languageName);return a.join("")}; JgO=function(e,a,r,P){e||(e=a&&Ojz.hasOwnProperty(a)&&k8j.hasOwnProperty(a)?k8j[a]+"_"+Ojz[a]:void 0);a=e;if(!a)return null;e=a.match(dKJ);if(!e||e.length!==5)return null;if(e=a.match(dKJ)){var B=Number(e[3]),h=[7,8,10,5,6];e=!(Number(e[1])===1&&B===8)&&h.indexOf(B)>=0}else e=!1;return r||P||e?a:null}; Hb=function(e,a){for(var r={},P=g.Z(Object.keys(DK3)),B=P.next();!B.done;B=P.next()){B=B.value;var h=a?a+B:B;h=e[h+"_webp"]||e[h];g.IF(h)&&(r[DK3[B]]=h)}return r}; qg=function(e){var a={};if(!e||!e.thumbnails)return a;e=e.thumbnails.filter(function(y){return!!y.url}); e.sort(function(y,T){return y.width-T.width||y.height-T.height}); for(var r=g.Z(Object.keys(V9z)),P=r.next();!P.done;P=r.next()){var B=Number(P.value);P=V9z[B];for(var h=g.Z(e),c=h.next();!c.done;c=h.next())if(c=c.value,c.width>=B){B=$KN(c.url);g.IF(B)&&(a[P]=B);break}}(e=e.pop())&&e.width>=1280&&(e=$KN(e.url),g.IF(e)&&(a["maxresdefault.jpg"]=e));return a}; $KN=function(e){return e.startsWith("//")?"https:"+e:e}; vb=function(e){return e&&e.baseUrl||""}; Rm=function(e){e=g.KG(e);for(var a=g.Z(Object.keys(e)),r=a.next();!r.done;r=a.next()){r=r.value;var P=e[r];e[r]=Array.isArray(P)?P[0]:P}return e}; QEO=function(e,a){e.botguardData=a.playerAttestationRenderer.botguardData;a=a.playerAttestationRenderer.challenge;a!=null&&(e.pS=a)}; LkT=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next()){r=r.value;var P=r.interstitials.map(function(c){var y=g.H(c,WkL);if(y)return{is_yto_interstitial:!0,raw_player_response:y};if(c=g.H(c,l8L))return Object.assign({is_yto_interstitial:!0},jX(c))}); P=g.Z(P);for(var B=P.next();!B.done;B=P.next())switch(B=B.value,r.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":e.interstitials=e.interstitials.concat({time:0,playerVars:B,Hr:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":e.interstitials=e.interstitials.concat({time:0x7ffffffffffff,playerVars:B,Hr:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(r.podConfig.timeToInsertAtMillis);e.interstitials=e.interstitials.concat({time:h,playerVars:B, Hr:h===0?5:7})}}}; YE3=function(e,a){if(a=a.find(function(r){return!(!r||!r.tooltipRenderer)}))e.tooltipRenderer=a.tooltipRenderer}; wwj=function(e,a){a.subscribeCommand&&(e.subscribeCommand=a.subscribeCommand);a.unsubscribeCommand&&(e.unsubscribeCommand=a.unsubscribeCommand);a.addToWatchLaterCommand&&(e.addToWatchLaterCommand=a.addToWatchLaterCommand);a.removeFromWatchLaterCommand&&(e.removeFromWatchLaterCommand=a.removeFromWatchLaterCommand);a.getSharePanelCommand&&(e.getSharePanelCommand=a.getSharePanelCommand)}; pwT=function(e,a){a!=null?(e.s9=a,e.nB=!0):(e.s9="",e.nB=!1)}; SP=function(e,a){this.type=e||"";this.id=a||""}; sA=function(e){return new SP(e.substring(0,2),e.substring(2))}; mO=function(e,a){this.gP=e;this.author="";this.iG=null;this.playlistLength=0;this.S=this.sessionData=null;this.Y={};this.title="";if(a){this.author=a.author||a.playlist_author||"";this.title=a.playlist_title||"";if(e=a.session_data)this.sessionData=Fv(e,"&");var r;this.S=((r=a.thumbnail_ids)==null?void 0:r.split(",")[0])||null;this.Y=Hb(a,"playlist_");this.videoId=a.video_id||void 0;if(r=a.list)switch(a.listType){case "user_uploads":this.playlistId=(new SP("UU","PLAYER_"+r)).toString();break;default:if(e= a.playlist_length)this.playlistLength=Number(e)||0;this.playlistId=sA(r).toString();if(a=a.video)this.videoId=(a[0]||null).video_id||void 0}else a.playlist&&(this.playlistLength=a.playlist.toString().split(",").length)}}; FU=function(e,a){this.gP=e;this.Mg=this.author="";this.iG=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.NT=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(a){this.ariaLabel=a.aria_label||void 0;this.author=a.author||"";this.Mg=a.Mg||"";if(e=a.endscreen_autoplay_session_data)this.iG=Fv(e,"&");this.Wf=a.Wf;this.isLivePlayback=a.live_playback==="1";this.isUpcoming=!!a.isUpcoming;if(e=a.length_seconds)this.lengthSeconds=typeof e==="string"?Number(e):e;this.lengthText= a.lengthText||"";this.NT=a.NT||"";this.publishedTimeText=a.publishedTimeText||void 0;if(e=a.session_data)this.sessionData=Fv(e,"&");this.shortViewCount=a.short_view_count_text||void 0;this.Y=Hb(a);this.title=a.title||"";this.videoId=a.docid||a.video_id||a.videoId||a.id||void 0;this.watchUrl=a.watchUrl||void 0}}; ijT=function(e){var a,r,P=(a=e.getWatchNextResponse())==null?void 0:(r=a.contents)==null?void 0:r.twoColumnWatchNextResults,B,h,c,y,T;e=(B=e.getWatchNextResponse())==null?void 0:(h=B.playerOverlays)==null?void 0:(c=h.playerOverlayRenderer)==null?void 0:(y=c.endScreen)==null?void 0:(T=y.watchNextEndScreenRenderer)==null?void 0:T.results;if(!e){var X,f;e=P==null?void 0:(X=P.endScreen)==null?void 0:(f=X.endScreen)==null?void 0:f.results}return e}; g.jP=function(e){var a,r,P;e=g.H((a=e.getWatchNextResponse())==null?void 0:(r=a.playerOverlays)==null?void 0:(P=r.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,Mg);return g.H(e==null?void 0:e.playerBar,zBL)}; N7j=function(e){this.S=e.playback_progress_0s_url;this.B=e.playback_progress_2s_url;this.T=e.playback_progress_10s_url}; xKl=function(){if(uX===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(a){}a:{try{var e=!!self.localStorage}catch(a){e=!1}if(e&&(e=g.LT(g.Hh()+"::yt-player"))){uX=new p$(e);break a}uX=void 0}}return uX}; g.KQ=function(){var e=xKl();if(!e)return{};try{var a=e.get("yt-player-lv");return JSON.parse(a||"{}")}catch(r){return{}}}; g.I83=function(e){var a=xKl();a&&(e=JSON.stringify(e),a.set("yt-player-lv",e))}; g.et=function(e){return g.KQ()[e]||0}; g.aG=function(e,a){var r=g.KQ();a!==r[e]&&(a!==0?r[e]=a:delete r[e],g.I83(r))}; g.r3=function(e){return g.Y(function(a){return a.return(g.NU(Hjz(),e))})}; BE=function(e,a,r,P,B,h,c,y){var T,X,f,A,U,C;return g.Y(function(G){switch(G.T){case 1:return T=g.et(e),T===4?G.return(4):g.l(G,g.mQ(),2);case 2:X=G.S;if(!X)throw g.GE("wiac");if(!y||c===void 0){G.Oo(3);break}return g.l(G,qEq(y,c),4);case 4:c=G.S;case 3:return f=r.lastModified||"0",g.l(G,g.r3(X),5);case 5:return A=G.S,g.kN(G,6),PE++,g.l(G,g.DI(A,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",DD:!0},function(O){if(h!==void 0&&c!==void 0){var d=""+e+"|"+a.id+"|"+f+"|"+String(h).padStart(10, "0");d=g.VB(O.objectStore("media"),c,d)}else d=g.bk.resolve(void 0);var W=vRO(e,a.Dw()),V=vRO(e,!a.Dw()),L={fmts:RBJ(P),format:r||{}};W=g.VB(O.objectStore("index"),L,W);var z=P.downloadedEndTime===-1;L=z?O.objectStore("index").get(V):g.bk.resolve(void 0);var q={fmts:"music",format:{}};O=z&&B&&!a.Dw()?g.VB(O.objectStore("index"),q,V):g.bk.resolve(void 0);return g.bk.all([O,L,d,W]).then(function(M){M=g.Z(M);M.next();M=M.next().value;PE--;var m=g.et(e);if(m!==4&&z&&B||M!==void 0&&g.SEO(M.fmts))m=1,g.aG(e, m);return m})}),8); case 8:return G.return(G.S);case 6:U=g.Q3(G);PE--;C=g.et(e);if(C===4)return G.return(C);g.aG(e,4);throw U;}})}; g.sEI=function(e){var a,r;return g.Y(function(P){if(P.T==1)return g.l(P,g.mQ(),2);if(P.T!=3){a=P.S;if(!a)throw g.GE("ri");return g.l(P,g.r3(a),3)}r=P.S;return P.return(g.DI(r,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(B){var h=IDBKeyRange.bound(e+"|",e+"~");return B.objectStore("index").getAll(h).then(function(c){return c.map(function(y){return y?y.format:{}})})}))})}; Fk3=function(e,a,r,P,B){var h,c,y;return g.Y(function(T){if(T.T==1)return g.l(T,g.mQ(),2);if(T.T!=3){h=T.S;if(!h)throw g.GE("rc");return g.l(T,g.r3(h),3)}c=T.S;y=g.DI(c,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(X){var f=""+e+"|"+a+"|"+r+"|"+String(P).padStart(10,"0");return X.objectStore("media").get(f)}); return B?T.return(y.then(function(X){if(X===void 0)throw Error("No data from indexDb");return mKy(B,X)}).catch(function(X){throw new g.I6("Error while reading chunk: "+X.name+", "+X.message); })):T.return(y)})}; g.SEO=function(e){return e?e==="music"?!0:e.includes("dlt=-1")||!e.includes("dlt="):!1}; vRO=function(e,a){return""+e+"|"+(a?"v":"a")}; RBJ=function(e){var a={};return MA((a.dlt=e.downloadedEndTime.toString(),a.mket=e.maxKnownEndTime.toString(),a.avbr=e.averageByteRate.toString(),a))}; jEL=function(e){var a={},r={};e=g.Z(e);for(var P=e.next();!P.done;P=e.next()){var B=P.value,h=B.split("|");B.match(g.M9J)?(P=Number(h.pop()),isNaN(P)?r[B]="?":(h=h.join("|"),(B=a[h])?(h=B[B.length-1],P===h.end+1?h.end=P:B.push({start:P,end:P})):a[h]=[{start:P,end:P}])):r[B]="?"}e=g.Z(Object.keys(a));for(P=e.next();!P.done;P=e.next())P=P.value,r[P]=a[P].map(function(c){return c.start+"-"+c.end}).join(","); return r}; h3=function(e){g.aK.call(this);this.S=null;this.B=new pT;this.S=null;this.Z=new Set;this.crossOrigin=e||""}; uJ4=function(e,a,r){for(r=cE(e,r);r>=0;){var P=e.levels[r];if(P.isLoaded(oG(P,a))&&(P=g.nY(P,a)))return P;r--}return g.nY(e.levels[0],a)}; eQ3=function(e,a,r){r=cE(e,r);for(var P,B;r>=0;r--)if(P=e.levels[r],B=oG(P,a),!P.isLoaded(B)){P=e;var h=r,c=h+"-"+B;P.Z.has(c)||(P.Z.add(c),P.B.enqueue(h,{uu:h,hs:B}))}Kkz(e)}; Kkz=function(e){if(!e.S&&!e.B.isEmpty()){var a=e.B.remove();e.S=aRj(e,a)}}; aRj=function(e,a){var r=document.createElement("img");e.crossOrigin&&(r.crossOrigin=e.crossOrigin);r.src=e.levels[a.uu].ju(a.hs);r.onload=function(){var P=a.uu,B=a.hs;e.S!==null&&(e.S.onload=null,e.S=null);P=e.levels[P];P.loaded.add(B);Kkz(e);var h=P.columns*P.rows;B*=h;P=Math.min(B+h-1,P.GO()-1);B=[B,P];e.publish("l",B[0],B[1])}; return r}; g.yZ=function(e,a,r,P){this.level=e;this.L=a;this.loaded=new Set;this.level=e;this.L=a;e=r.split("#");this.width=Math.floor(Number(e[0]));this.height=Math.floor(Number(e[1]));this.frameCount=Math.floor(Number(e[2]));this.columns=Math.floor(Number(e[3]));this.rows=Math.floor(Number(e[4]));this.S=Math.floor(Number(e[5]));this.B=e[6];this.signature=e[7];this.videoLength=P}; oG=function(e,a){return Math.floor(a/(e.columns*e.rows))}; g.nY=function(e,a){a>=e.Xr()&&e.JK();var r=oG(e,a),P=e.columns*e.rows,B=a%P;a=B%e.columns;B=Math.floor(B/e.columns);var h=e.JK()+1-P*r;if(h1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; rej=function(e,a,r){return(e=e.levels[a])?e.pH(r):-1}; cE=function(e,a){var r=e.L.get(a);if(r)return r;r=e.levels.length;for(var P=0;P=a)return e.L.set(a,P),P;e.L.set(a,r-1);return r-1}; XL=function(e,a,r,P){r=r.split("#");r=[r[1],r[2],0,r[3],r[4],-1,r[0],""].join("#");g.yZ.call(this,e,a,r,0);this.T=null;this.C=P?2:0}; fY=function(e,a,r,P){Tc.call(this,e,0,void 0,a,!(P===void 0||!P));for(e=0;e=0?y3.countDownSecsForFullscreen*1E3:-1);e.X("web_autonav_color_transition")&&y3.watchToWatchTransitionRenderer&&(e.watchToWatchTransitionRenderer=g.H(y3.watchToWatchTransitionRenderer, EYl))}var kL=ijT(e);if(kL){var yq,nv,tV,Ze=kL==null?void 0:(yq=kL[0])==null?void 0:(nv=yq.endScreenVideoRenderer)==null?void 0:(tV=nv.navigationEndpoint)==null?void 0:tV.clickTrackingParams,iw=g.Zo(e);Ze&&iw&&(iw.sessionData={itct:Ze})}e.Cf.currentVideoThumbnail&&(e.Y=qg(e.Cf.currentVideoThumbnail));var xC,I_,Hj,ot,z0,g8=(xC=e.Cf)==null?void 0:(I_=xC.contents)==null?void 0:(Hj=I_.twoColumnWatchNextResults)==null?void 0:(ot=Hj.results)==null?void 0:(z0=ot.results)==null?void 0:z0.contents;if(g8&&g8[1]){var N1, nN,qB,J5,dN=(N1=g8[1].videoSecondaryInfoRenderer)==null?void 0:(nN=N1.owner)==null?void 0:(qB=nN.videoOwnerRenderer)==null?void 0:(J5=qB.thumbnail)==null?void 0:J5.thumbnails;dN&&dN.length&&(e.profilePicture=dN[dN.length-1].url)}var qA=Ph(a),yM,On=(yM=e.getWatchNextResponse())==null?void 0:yM.onResponseReceivedEndpoints;if(On)for(var TQ=g.Z(On),xc=TQ.next();!xc.done;xc=TQ.next()){var k3=xc.value;g.H(k3,OT)&&(e.Xa=g.H(k3,OT));var or=g.H(k3,bRO),RH=void 0;if((RH=or)==null?0:RH.entityKeys)e.mK=or.entityKeys|| [],or.visibleOnLoadKeys&&(e.visibleOnLoadKeys=or.visibleOnLoadKeys)}if(e.X("web_key_moments_markers")){var XI=g.k0.getState().entities,fN=g.mf("visibility_override","markersVisibilityOverrideEntity");var vV=MQ(XI,"markersVisibilityOverrideEntity",fN);e.PW=(vV==null?void 0:vV.videoId)===(e.videoId||qA)&&(vV==null?0:vV.visibilityOverrideMarkersKey)?vV.visibilityOverrideMarkersKey:e.visibleOnLoadKeys;e.visibleOnLoadKeys=[].concat(g.UO(e.PW))}}}; t3=function(e){var a;return((a=e.autoplaySwitchButtonRenderer)==null?void 0:a.enabled)!==void 0}; d3=function(e){return!!(e.B&&e.B.videoInfos&&e.B.videoInfos.length)}; g.WE=function(e){var a=e.D;e.X("html5_gapless_unlimit_format_selection")&&J3(e)&&(a=!1);var r=!!e.S&&e.S.QX,P=e.gP,B=e.My(),h=Do(e),c=e.GQ,y=a,T=e.isOtf();a=e.Ud();var X=e.rP,f=e.getUserAudio51Preference(),A=VZ(e),U=$0(e),C=new zEJ(P);if(P.UM()||P.X("html5_logging_format_selection"))C.T=!0;C.Uo=h;C.GQ=c&&P.Y;C.Lf=f;g.zu("windows nt 5.1")&&!g.yw&&(C.Hj=!0);if(h=B)h=g.dd(P)?Sqy(P):!1;h&&(C.HW=!0);y&&(C.Hj=!0,C.AC=!0);T&&!P.X("html5_otf_prefer_vp9")&&(C.Hj=!0);P.playerStyle==="picasaweb"&&(T&&(C.Hj= !1),C.oH=!1);X&&(C.Hj=!0);H2(P.C,q$.CHANNELS)&&(P.X("html5_enable_ac3")&&(C.L=!0),P.X("html5_enable_eac3")&&(C.C=!0),P.X("html5_enable_ac3_gapless")&&(C.Cf=!0));P.X("html5_block_8k_hfr")&&(C.PW=!0);C.Z=g.eS(P.experiments,"html5_max_selectable_quality_ordinal");C.D=g.eS(P.experiments,"html5_min_selectable_quality_ordinal");FZ&&(C.Te=480);if(r||B)C.oH=!1;C.k$=!1;C.disableAv1=A;r=eD(P,C.S,void 0,C.disableAv1);r>0&&r<2160&&(UD()||P.X("html5_format_hybridization"))&&(C.S.supportsChangeType=+UD(),C.K8= r);r>=2160&&(C.Eo=!0);aVy()&&!P.X("disable_av1_setting")&&(C.S.serveVp9OverAv1IfHigherRes=0,C.Ge=!1);C.Ud=a;C.XM=g.qU||Mr()&&!a?!1:!0;C.Y=P.X("html5_format_hybridization");C.T$=P.X("html5_disable_encrypted_vp9_live_non_2k_4k");C.ID=U;QZ(e)&&(C.Q2=e.X("html5_prefer_language_over_codec"));If()&&e.playerResponse&&e.playerResponse.playerConfig&&e.playerResponse.playerConfig.webPlayerConfig&&e.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(C.L=!0,C.C=!0);e.D&&e.isAd()&&(e.A6&& (C.N=e.A6),e.xE&&(C.B=e.xE));C.e1=e.isLivePlayback&&e.lQ()&&e.gP.X("html5_drm_live_audio_51");C.bv=e.Mu;C.sM=!QZ(e);return e.py=C}; VZ=function(e){return e.gP.X("html5_disable_av1")||e.X("html5_gapless_shorts_disable_av1")&&J3(e)?!0:!1}; t7j=function(e){dL("drm_pb_s",void 0,e.HW);e.Uo||e.S&&pt(e.S);var a={};e.S&&(a=Cpy(e.Z6,g.WE(e),e.gP.C,e.S,function(r){return e.publish("ctmp","fmtflt",r)},!0,new Set)); a=new fn(a,e.gP,e.Zx,e.useCobaltWidevine?If()?lz(e):!1:!1,function(r,P){e.nf(r,P)}); g.x(e,a);e.by=!1;e.loading=!0;HZ4(a,function(r){dL("drm_pb_f",void 0,e.HW);for(var P=g.Z(r),B=P.next();!B.done;B=P.next())switch(B=B.value,B.flavor){case "fairplay":B.Uo=e.Uo;B.UD=e.UD;B.D6=e.D6;break;case "widevine":B.gb=e.gb}e.LY=r;if(e.LY.length>0&&(e.C=e.LY[0],e.gP.UM())){r={};P=g.Z(Object.entries(e.C.S));for(B=P.next();!B.done;B=P.next()){var h=g.Z(B.value);B=h.next().value;h=h.next().value;var c="unk";(B=B.match(/(.*)codecs="(.*)"/))&&(c=B[2]);r[c]=h}e.nf("drmProbe",r)}e.FF()})}; gYI=function(e,a){if(a.length===0||LY(e))return null;e.gP.C.B&&(jf=!0);var r=e.DX;var P=e.lengthSeconds,B=e.isLivePlayback,h=e.zX,c=e.gP,y=OZ3(a);if(B||h){c=c.experiments;P=new pz("",c,!0);P.T=!h;P.QX=!0;P.isManifestless=!0;P.isLive=!h;P.zX=h;a=g.Z(a);for(B=a.next();!B.done;B=a.next()){var T=B.value;B=Nz(T,r);y=M$(T);y=Il(y.jo||T.url||"",y.SW,y.s);var X=y.get("id");X&&X.includes("%7E")&&(P.N=!0);var f=void 0;X=(f=c)==null?void 0:f.FM("html5_max_known_end_time_rebase");f=Number(T.targetDurationSec|| 5);T=Number(T.maxDvrDurationSec||14400);var A=Number(y.get("mindsq")||y.get("min_sq")||"0"),U=Number(y.get("maxdsq")||y.get("max_sq")||"0")||Infinity;P.lB=P.lB||A;P.E2=P.E2||U;var C=!K_(B.mimeType);y&&Lz(P,new Ga(y,B,{qc:f,eQ:C,g_:T,lB:A,E2:U,zW:300,zX:h,D7:X}))}r=P}else if(y==="FORMAT_STREAM_TYPE_OTF"){P=P===void 0?0:P;h=new pz("",c.experiments,!1);h.duration=P||0;c=g.Z(a);for(P=c.next();!P.done;P=c.next())P=P.value,a=Nz(P,r,h.duration),B=M$(P),(B=Il(B.jo||P.url||"",B.SW,B.s))&&(a.streamType==="FORMAT_STREAM_TYPE_OTF"? Lz(h,new Ex(B,a,"sq/0")):Lz(h,new QH(B,a,jv(P.initRange),jv(P.indexRange))));h.isOtf=!0;r=h}else{P=P===void 0?0:P;h=new pz("",c.experiments,!1);h.duration=P||0;c=g.Z(a);for(P=c.next();!P.done;P=c.next())y=P.value,P=Nz(y,r,h.duration),a=jv(y.initRange),B=jv(y.indexRange),X=M$(y),(y=Il(X.jo||y.url||"",X.SW,X.s))&&Lz(h,new QH(y,P,a,B));r=h}h=e.isLivePlayback&&!e.zX&&!e.TQ&&!e.isPremiere;e.X("html5_live_head_playable")&&(!Y0(e)&&h&&e.nf("missingLiveHeadPlayable",{}),e.gP.HW==="yt"&&(r.XM=!0));return r}; LY=function(e){return If()?!lz(e):qr()?!(!e.Uo||!e.X("html5_enable_safari_fairplay")&&tG()):!1}; lz=function(e){return e.X("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.bz=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next())if(r=r.value,r.cueRangeSetIdentifier){var P=void 0;e.pz.set(r.cueRangeSetIdentifier,(P=r.playerCueRanges)!=null?P:[])}}; w3=function(e){return!(!e.S||!e.S.isManifestless)}; pY=function(e){return e.dW?e.isLowLatencyLiveStream&&e.S!=null&&Rl(e.S)>=5:e.isLowLatencyLiveStream&&e.S!=void 0&&Rl(e.S)>=5}; ZRq=function(e){return If()&&lz(e)?!1:LY(e)&&(g.fm(e.gP)?!e.isLivePlayback:e.hlsvp)||!tG()||e.Fi?!0:!1}; krI=function(e){e.loading=!0;e.mf=!1;if(ORL(e))g.sEI(e.videoId).then(function(P){var B;if((B=e.playerResponse)!=null&&B.streamingData){B=[];P=g.Z(P);for(var h=P.next();!h.done;h=P.next())h=Object.assign({},h.value),h.signatureCipher="",B.push(h);B.length<2&&e.nf("offmlf",{len:B.length});B=gYI(e,B);Do(e)&&wiN(B,!1);iz(e,B);e.nf("dlr",{})}else e.nf("offsdm",{cotn:e.ox?e.ox.cotn:"0",cpn:e.clientPlaybackNonce})}).then(function(){e.FF()}); else{xl(e.J9)||g.VJ(new g.I6("DASH MPD Origin invalid: ",e.J9));var a=e.J9,r=g.eS(e.gP.experiments,"dash_manifest_version")||4;a=g.EW(a,{mpd_version:r});e.isLowLatencyLiveStream&&e.latencyClass!=="NORMAL"||(a=g.EW(a,{pacing:0}));WY4(a,e.gP.experiments,e.isLivePlayback).then(function(P){e.wP()||(iz(e,P,!0),dL("mrc",void 0,e.HW),e.FF())},function(P){e.wP()||(e.loading=!1,e.publish("dataloaderror",new g.f_("manifest.net.retryexhausted",{backend:"manifest", rc:P.status},1)))}); dL("mrs",void 0,e.HW)}}; dkL=function(e){var a;return!((a=e.gP.getWebPlayerContextConfig())==null||!a.enableProximaLowLatency)}; zc=function(e){if(!e.isProximaLatencyEligible)return 0;var a=U$();return dkL(e)?2:a===1?1:e.X("html5_enable_proxima")?2:0}; iz=function(e,a,r){r=r===void 0?!1:r;e.Rd=void 0;e.S=a;g.x(e,a);a.lB=e.lB;a.E2=e.E2;a.Eo=e.Eo;a.ID=e.ID;a.h9=e.h9;e.dD&&(a.Y=new IO(e.dD));(e.My()||g.N4(e))&&e.N.push("webgl");e.S.isLive||(e.isLivePlayback=!1);var P=a.sourceUrl.split("/");if(e.dW?P.indexOf("manifest_duration")!==-1:P.indexOf("manifest_duration")!=-1)e.fg=Number(P[P.indexOf("manifest_duration")+1]);if(a.T||a.isManifestless)a.subscribe("clienttemp",e.nf,e),r?a.subscribe("refresh",e.Nm,e):a.subscribe("cuepointsadded",e.T1,e);pt(a)?e.by= !0:Ut=void 0;e.TQ&&(a.L=e.TQ,a.isLive=!0,e.isLivePlayback=!0);a.isPremiere=e.isPremiere;a.isLiveHeadPlayable=e.isLiveHeadPlayable}; Jel=function(e,a){var r=a||ZRq(e)||e.isExternallyHostedPodcast;if(!e.S||r)return e.nf("skipDash",{dm:!!e.S,air:a,dd:e.Fi,mss:tG(),"3pp":e.isExternallyHostedPodcast}),D7();Do(e)&&wiN(e.S,e.isLivePlayback);return VU().then(function(){return EIO(e.Z6,g.WE(e),e.gP.C,e.S,e.C,function(P){return e.publish("ctmp","fmtflt",P)},e.nA,QZ(e)&&e.X("html5_enable_server_format_filter")).then(function(P){e.uD(P); e.Z6.S=null;/^av/.test(e.clientPlaybackNonce)&&e.py&&e.nf("av1",e.py.S)})})}; V7j=function(e,a){if(a&&e.hlsvp)return D7();if(e.hlsFormats){a=x0(e.hlsFormats);var r;if(((r=e.py)==null?0:r.T)&&a){r=[];for(var P=g.Z(a),B=P.next();!B.done;B=P.next())r.push(B.value.itag);e.nf("hlsfmt",{itags:r.join(".")})}e.uh=oRL(e.gP,a);e.uh&&DkI(e,e.uh);r=e.clientPlaybackNonce;var h,c,y,T;return f8T(e.gP,e.isAd(),a,(T=(h=e.playerResponse)==null?void 0:(c=h.captions)==null?void 0:(y=c.playerCaptionsRenderer)==null?void 0:y.baseUrl)!=null?T:null,e.Te,r,function(X){return e.publish("ctmp","hlsflt", X)}).then(function(X){for(var f=0,A=[],U=g.Z(X),C=U.next();!C.done;C=U.next()){C=C.value; var G=void 0;A.push((G=C.getInfo())==null?void 0:G.itag);var O=G=void 0;((G=C.getInfo())==null?void 0:(O=G.audio)==null?void 0:O.numChannels)>f&&(f=C.getInfo().audio.numChannels)}f>2&&e.nf("hlschl",{mn:f});var d;((d=e.py)==null?0:d.T)&&e.nf("hlsfmtaf",{itags:A.join(".")});var W;if(e.X("html5_enable_vp9_fairplay")&&((W=e.C)==null?0:o1(W)))for(e.nf("drm",{sbdlfbk:1}),f=g.Z(e.LY),A=f.next();!A.done;A=f.next())if(A=A.value,cM(A)){e.C=A;break}IG(e,X)})}return D7()}; $kJ=function(e){if(e.isExternallyHostedPodcast&&e.sx){var a=x0(e.sx);if(!a[0])return D7();e.lYM=a[0];return C8J(e.gP,a[0]).then(function(r){IG(e,r)})}return e.B8&&e.ZM?UKq(e.gP,e.isAd(),e.B8).then(function(r){IG(e,r)}):D7()}; W6L=function(e){if(e.isExternallyHostedPodcast)return D7();var a=x0(e.sx,e.o1);if(e.hlsvp){var r=P2L(e.hlsvp,e.clientPlaybackNonce,e.Te);a.push(r)}return AgT(e.gP,e.isAd(),a,Q0j(e)).then(function(P){IG(e,P)})}; IG=function(e,a){e.AC=a;e.uD(new W2(g.ba(e.AC,function(r){return r.getInfo()})))}; Q0j=function(e){var a={cpn:e.clientPlaybackNonce,c:e.gP.S.c,cver:e.gP.S.cver};e.hI&&(a.ptk=e.hI,a.oid=e.Tk,a.ptchn=e.nk,a.pltype=e.B3,e.QV&&(a.m=e.QV));return a}; g.HE=function(e){return LY(e)&&e.Uo?(e={},e.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",e):e.T&&e.T.DX||null}; lRT=function(e){var a=q4(e);return a&&a.text?g.yd(a.text):e.paidContentOverlayText}; L6y=function(e){var a=q4(e);return a&&a.durationMs?Y8(a.durationMs):e.paidContentOverlayDurationMs}; q4=function(e){var a,r,P;return e.playerResponse&&e.playerResponse.paidContentOverlay&&e.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.H((a=e.Cf)==null?void 0:(r=a.playerOverlays)==null?void 0:(P=r.playerOverlayRenderer)==null?void 0:P.playerDisclosure,YlO)||null}; vE=function(e){var a="";if(e.RC)return e.RC;e.isLivePlayback&&(a=e.allowLiveDvr?"dvr":e.isPremiere?"lp":e.TQ?"window":"live");e.zX&&(a="post");return a}; g.RG=function(e,a){return typeof e.keywords[a]!=="string"?null:e.keywords[a]}; wz4=function(e){return!!e.F7||!!e.IM||!!e.tI||!!e.xM||e.FZ}; g.St=function(e){return!!(e.J9||e.sx||e.B8||e.hlsvp||e.D1())}; CY=function(e){if(e.X("html5_onesie")&&e.errorCode)return!1;var a=g.ZB(e.N,"ypc");e.ypcPreview&&(a=!1);return e.Fw()&&!e.loading&&(g.St(e)||g.ZB(e.N,"heartbeat")||a)}; x0=function(e,a){e=ux(e);var r={};if(a){a=g.Z(a.split(","));for(var P=a.next();!P.done;P=a.next())(P=P.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(r[P[1]]={width:P[2],height:P[3]})}a=g.Z(e);for(P=a.next();!P.done;P=a.next()){P=P.value;var B=r[P.itag];B&&(P.width=B.width,P.height=B.height)}return e}; Xz4=function(e,a){e.showShareButton=!!a;var r,P,B=((r=g.H(a,g.nR))==null?void 0:r.navigationEndpoint)||((P=g.H(a,g.nR))==null?void 0:P.command);B&&(e.mH=!!g.H(B,pz4))}; BJL=function(e,a){var r=a.raw_embedded_player_response;if(!r){var P=a.embedded_player_response;P&&(r=JSON.parse(P))}r&&(e.U2=r);if(e.U2){e.embeddedPlayerConfig=e.U2.embeddedPlayerConfig||null;if(r=e.U2.videoFlags)r.playableInEmbed&&(e.allowEmbed=!0),r.isPrivate&&(e.isPrivate=!0),r.userDisplayName&&(a.user_display_name=r.userDisplayName),r.userDisplayImage&&(a.user_display_image=r.userDisplayImage);if(r=e.U2.embedPreview){r=r.thumbnailPreviewRenderer;pwT(e,r.controlBgHtml);if(P=r.defaultThumbnail)e.Y= qg(P);e.X("embeds_web_enable_search_button")&&r.searchButton&&(P=g.H(r.searchButton,g.nR))&&(e.Wfr=g.H(P.navigationEndpoint,g.sT));(P=g.H(r==null?void 0:r.videoDetails,iRI))&&C2l(e,a,P);P=g.H(r==null?void 0:r.videoDetails,zQj);e.FI=!!r.addToWatchLaterButton;Xz4(e,r.shareButton);if(P==null?0:P.musicVideoType)e.musicVideoType=P.musicVideoType;var B,h,c,y,T;if(P=g.H((B=e.getEmbeddedPlayerResponse())==null?void 0:(h=B.embedPreview)==null?void 0:(c=h.thumbnailPreviewRenderer)==null?void 0:(y=c.playButton)== null?void 0:(T=y.buttonRenderer)==null?void 0:T.navigationEndpoint,g.g3))gRJ(e,P),e.videoId=P.videoId||e.videoId;r.videoDurationSeconds&&(e.lengthSeconds=Y8(r.videoDurationSeconds));r.webPlayerActionsPorting&&wwj(e,r.webPlayerActionsPorting);if(B=g.H(r==null?void 0:r.playlist,NJz)){e.bx=!0;h=[];c=Number(B.currentIndex);if(B.contents)for(y=0,T=B.contents.length;y0:e.A1?!1:e.gP.ZZ||e.gP.Tu||!g.uP(e.gP)?!0:!1:(e.A1?0:e.ZZ)&&g.uP(e.gP)?!0:!1;e.X("html5_log_detailpage_autoplay")&&Px(e)==="detailpage"&&e.nf("autoplay_info",{autoplay:e.o4,autonav:e.isAutonav,wasDompaused:e.A1,result:a});return a}; g.ok=function(e){return e.oauthToken||e.gP.L5}; F64=function(e){if(e.X("html5_stateful_audio_normalization")){var a=1,r=g.eS(e.gP.experiments,"html5_default_ad_gain");r&&e.isAd()&&(a=r);var P,B;r=(B=(P=e.L)==null?void 0:P.audio.L)!=null?B:e.Ph;if(r==null||isNaN(r))e=mk4(e);else{P=(0,g.Ov)();e.TU=2;B=P-e.gP.uh<=e.maxStatefulTimeThresholdSec*1E3;e.applyStatefulNormalization&&B?e.TU=4:B||(e.gP.ih=Infinity,e.gP.uh=NaN);B=(e.TU===4?g.ID(e.gP.ih,e.minimumLoudnessTargetLkfs,e.loudnessTargetLkfs):e.loudnessTargetLkfs)-r;if(e.TU!==4){var h,c,y,T,X=((h= e.playerResponse)==null?void 0:(c=h.playerConfig)==null?void 0:(y=c.audioConfig)==null?void 0:(T=y.loudnessNormalizationConfig)==null?void 0:T.statelessLoudnessAdjustmentGain)||0;B+=X}B=Math.min(B,0);e.preserveStatefulLoudnessTarget&&(e.gP.ih=r+B,e.gP.uh=P);e=Math.min(1,Math.pow(10,B/20))||a}}else e=mk4(e);return e}; mk4=function(e){var a=1,r=g.eS(e.gP.experiments,"html5_default_ad_gain");r&&e.isAd()&&(a=r);if(e.o7){var P,B;r=((P=e.L)==null?void 0:P.audio.B)!=null?(B=e.L)==null?void 0:B.audio.B:e.h1}else{var h;r=((h=e.L)==null?void 0:h.audio.B)||e.h1}isNaN(r)||(e.TU=1);return Math.min(1,Math.pow(10,-r/20))||a}; Do=function(e){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],r=Cn(e.gP)==="TVHTML5_SIMPLY"&&e.gP.S.ctheme==="MUSIC";!e.t1&&(g.L$(e.gP)||g.Zm(e.gP)||r)&&(a.includes(e.musicVideoType)||e.isExternallyHostedPodcast)&&(e.t1=!0);if(a=g.x2())a=/Starboard\/([0-9]+)/.exec(g.zX()),a=(a?parseInt(a[1],10):NaN)<10;r=e.gP;r=(Cn(r)==="TVHTML5_CAST"||Cn(r)==="TVHTML5"&&(r.S.cver.startsWith("6.20130725")||r.S.cver.startsWith("6.20130726")))&&e.gP.S.ctheme==="MUSIC";var P;if(P=!e.t1)r||(r= e.gP,r=Cn(r)==="TVHTML5"&&r.S.cver.startsWith("7")),P=r;P&&!a&&(a=e.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",r=(e.X("cast_prefer_audio_only_for_atv_and_uploads")||e.X("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&e.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",a||r||e.isExternallyHostedPodcast)&&(e.t1=!0);return e.gP.deviceIsAudioOnly||e.t1&&e.gP.Y}; $0=function(e){var a,r,P;return((a=e.playerResponse)==null?void 0:(r=a.playerConfig)==null?void 0:(P=r.compositeVideoConfig)==null?void 0:P.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; M7L=function(e){var a,r,P,B=(a=e.playerResponse)==null?void 0:(r=a.playerConfig)==null?void 0:(P=r.compositeVideoConfig)==null?void 0:P.sourceConfigs,h,c,y;e=(h=e.playerResponse)==null?void 0:(c=h.playerConfig)==null?void 0:(y=c.compositeVideoConfig)==null?void 0:y.defaultActiveSourceVideoId;if(!B||!e)return"";B=g.Z(B);for(h=B.next();!h.done;h=B.next())if(h=h.value,h.videoId===e&&h.audioTracks)for(h=g.Z(h.audioTracks),c=h.next();!c.done;c=h.next())if(c=c.value,c.isDefaultForSource)return c.id||""; return""}; g.j0q=function(e){return e.QX()&&QZ(e)||$0(e)}; nV=function(e){var a,r,P;return!!((a=e.playerResponse)==null?0:(r=a.playerConfig)==null?0:(P=r.mediaCommonConfig)==null?0:P.splitScreenEligible)}; yT=function(e){var a;return!((a=e.playerResponse)==null||!a.compositePlayabilityStatus)}; u$4=function(e){return isNaN(e)?0:Math.max((Date.now()-e)/1E3-30,0)}; K64=function(e){return e.BV&&!e.T_}; Tg=function(e){return!(!e.wR||!e.gP.Y)&&e.D1()}; fV=function(e){return e.X7&&e.enableServerStitchedDai}; ehj=function(e){return e.Yv&&!e.dD}; QZ=function(e){var a=e.X("html5_enable_sabr_on_drive")&&e.gP.HW==="gd";if(e.Y5)return e.Yv&&e.nf("fds",{fds:!0},!0),!1;if(e.gP.HW!=="yt"&&!a)return e.Yv&&e.nf("dsvn",{ns:e.gP.HW},!0),!1;if(e.cotn||!e.S||e.S.isOtf&&!e.X("html5_enable_sabr_otf_in_client")||e.B&&!e.B.S||e.Ws&&!e.X("html5_enable_sabr_csdai"))return!1;if(e.X("html5_use_sabr_requests_for_debugging"))return!0;e.Yv&&e.nf("esfw",{usbc:e.Yv,hsu:!!e.dD},!0);if(e.Yv&&e.dD)return!0;if(e.X("html5_remove_client_sabr_determination"))return!1;var r= !e.S.QX&&!e.lQ();a=r&&GA&&e.X("html5_enable_sabr_vod_streaming_xhr");r=r&&!GA&&e.X("html5_enable_sabr_vod_non_streaming_xhr");var P=At(e),B=e.X("html5_enable_sabr_drm_vod_streaming_xhr")&&GA&&e.lQ()&&!e.S.QX&&(e.drmProduct==="1"?!1:!0);(a=a||r||P||B)&&!e.dD&&e.nf("sabr",{loc:"m"},!0);return a&&!!e.dD}; At=function(e){var a;if(!(a=GA&&e.QX()&&e.lQ()&&(e.drmProduct==="1"?!1:!0)&&e.X("html5_sabr_live_drm_streaming_xhr"))){a=e.QX()&&!e.lQ()&&GA;var r=e.QX()&&e.latencyClass!=="ULTRALOW"&&!e.isLowLatencyLiveStream&&e.X("html5_sabr_live_normal_latency_streaming_xhr"),P=e.isLowLatencyLiveStream&&e.X("html5_sabr_live_low_latency_streaming_xhr"),B=e.latencyClass==="ULTRALOW"&&e.X("html5_sabr_live_ultra_low_latency_streaming_xhr");a=a&&(r||P||B)}r=a;a=e.enableServerStitchedDai&&r&&e.X("html5_enable_sabr_ssdai_streaming_xhr"); r=!e.enableServerStitchedDai&&r;P=e.QX()&&!GA&&e.X("html5_enable_sabr_live_non_streaming_xhr");e=GA&&(e.w1()||nV(e)&&e.X("html5_enable_sabr_for_lifa_eligible_streams"));return a||r||P||e}; ORL=function(e){var a;if(a=!!e.cotn)a=e.videoId,a=!!a&&g.et(a)===1;return a&&!e.wR}; g.UL=function(e){if(!e.S||!e.T||!e.L)return!1;var a=e.S.S,r=!!a[e.T.id]&&s$(a[e.T.id].Kr.S);a=!!a[e.L.id]&&s$(a[e.L.id].Kr.S);return(e.T.itag==="0"||r)&&a}; CV=function(e){return e.sD?["OK","LIVE_STREAM_OFFLINE"].includes(e.sD.status):!0}; xkL=function(e){return(e=e.pY)&&e.showError?e.showError:!1}; Gg=function(e,a){return e.X(a)?!0:(e.fflags||"").includes(a+"=true")}; yez=function(e,a){a.inlineMetricEnabled&&(e.inlineMetricEnabled=!0);a.playback_progress_0s_url&&(e.xM=new N7j(a));if(a=a.video_masthead_ad_quartile_urls)e.IM=a.quartile_0_url,e.VR=a.quartile_25_url,e.M_=a.quartile_50_url,e.uS=a.quartile_75_url,e.k_=a.quartile_100_url,e.tI=a.quartile_0_urls,e.Au=a.quartile_25_urls,e.Pt=a.quartile_50_urls,e.dN=a.quartile_75_urls,e.wN=a.quartile_100_urls}; nYT=function(e){var a={};e=g.Z(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var P=r.split("=");P.length===2?a[P[0]]=P[1]:a[r]=!0}return a}; ceJ=function(e){if(e){if(b4L(e))return e;e=tsy(e);if(b4L(e,!0))return e}return""}; g.a3O=function(e){return e.captionsLanguagePreference||e.gP.captionsLanguagePreference||g.RG(e,"yt:cc_default_lang")||e.gP.RO}; EL=function(e){return!(!e.isLivePlayback||!e.hasProgressBarBoundaries())}; g.Zo=function(e){var a;return e.No||((a=e.suggestions)==null?void 0:a[0])||null}; g.bL=function(e){var a,r;return!!((a=e.embeddedPlayerConfig)==null?0:(r=a.embeddedPlayerFlags)==null?0:r.enableMusicUx)}; rO4=function(e){return e.D||e.X("web_player_media_session_infinity")&&e.isLivePlayback}; tt=function(e){return e.gP.L&&e.isPrivate}; g.Za=function(e){var a=e.G(),r=g.gC(a),P=a.J9;(a.X("embeds_web_enable_iframe_api_send_full_embed_url")||a.X("embeds_web_enable_rcat_validation_in_havs")||a.X("embeds_enable_autoplay_and_visibility_signals"))&&g.Bb(a)&&(P&&(r.thirdParty=Object.assign({},r.thirdParty,{embedUrl:P})),cDO(r,e));if(P=e.e1)r.clickTracking={clickTrackingParams:P};else if(g.Bb(e.G())&&g.IM("EVENT_ID"))r.clickTracking={clickTrackingParams:g.IM("EVENT_ID")};else if(a.X("html5_log_missing_itct")){var B;P=new g.I6("Missing ITCT in InnerTubeContext", {isAd:e.isAd(),MVM:(B=a.getWebPlayerContextConfig())==null?void 0:B.contextId});g.D6(P)}B=r.client||{};P="EMBED";var h=Px(e);h==="leanback"?P="WATCH":a.X("gvi_channel_client_screen")&&h==="profilepage"?P="CHANNEL":e.rP?P="LIVE_MONITOR":h==="detailpage"?P="WATCH_FULL_SCREEN":h==="adunit"?P="ADUNIT":h==="sponsorshipsoffer"&&(P="UNKNOWN");B.clientScreen=P;if(a=e.kidsAppInfo)B.kidsAppInfo=JSON.parse(a);(P=e.gz)&&!a&&(B.kidsAppInfo={contentSettings:{ageUpMode:PDj[P]}});if(a=e.yQ)B.unpluggedAppInfo={enableFilterMode:!0}; (P=e.unpluggedFilterModeType)&&!a&&(B.unpluggedAppInfo={filterModeType:BnN[P]});if(a=e.RO)B.unpluggedLocationInfo=a;r.client=B;B=r.request||{};e.gT&&(B.isPrefetch=!0);if(a=e.mdxEnvironment)B.mdxEnvironment=a;if(a=e.mdxControlMode)B.mdxControlMode=hhJ[a];r.request=B;B=r.user||{};if(a=e.Lf)B.credentialTransferTokens=[{token:a,scope:"VIDEO"}];if(a=e.Q2)B.delegatePurchases={oauthToken:a},B.kidsParent={oauthToken:a};r.user=B;if(B=e.contextParams)r.activePlayers=[{playerContextParams:B}];if(e=e.clientScreenNonce)r.clientScreenNonce= e;return r}; g.gC=function(e){var a=g.sK(),r=a.client||{};if(e.forcedExperiments){var P=e.forcedExperiments.split(","),B=[];P=g.Z(P);for(var h=P.next();!h.done;h=P.next())B.push(Number(h.value));r.experimentIds=B}if(B=e.homeGroupInfo)r.homeGroupInfo=JSON.parse(B);if(B=e.getPlayerType())r.playerType=B;if(B=e.S.ctheme)r.theme=B;if(B=e.livingRoomAppMode)r.tvAppInfo=Object.assign({},r.tvAppInfo,{livingRoomAppMode:B});B=e.deviceYear;e.X("html5_propagate_device_year")&&B&&(r.tvAppInfo=Object.assign({},r.tvAppInfo,{deviceYear:B})); if(B=e.livingRoomPoTokenId)r.tvAppInfo=Object.assign({},r.tvAppInfo,{livingRoomPoTokenId:B});a.client=r;r=a.user||{};e.enableSafetyMode&&(r=Object.assign({},r,{enableSafetyMode:!0}));e.pageId&&(r=Object.assign({},r,{onBehalfOfUser:e.pageId}));a.user=r;r=e.J9;e.X("embeds_web_enable_iframe_api_send_full_embed_url")||e.X("embeds_web_enable_rcat_validation_in_havs")||e.X("embeds_enable_autoplay_and_visibility_signals")||!r||(a.thirdParty={embedUrl:r});return a}; XZq=function(e,a,r){var P=e.videoId,B=g.Za(e),h=e.G(),c={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(tB()),referer:document.location.toString(),signatureTimestamp:20299};g.wu();e.isAutonav&&(c.autonav=!0);g.pE(0,141)&&(c.autonavState=g.pE(0,140)?"STATE_OFF":"STATE_ON");c.autoCaptionsDefaultOn=g.pE(0,66);s04(e)&&(c.autoplay=!0);h.Y&&e.cycToken&&(c.cycToken=e.cycToken);h.enablePrivacyFilter&&(c.enablePrivacyFilter=!0);e.isFling&&(c.fling=!0);var y=e.forceAdsUrl;if(y){var T={},X=[];y= y.split(",");y=g.Z(y);for(var f=y.next();!f.done;f=y.next()){f=f.value;var A=f.split("|");A.length!==3||f.includes("=")||(A[0]="breaktype="+A[0],A[1]="offset="+A[1],A[2]="url="+A[2]);f={adtype:"video_ad"};A=g.Z(A);for(var U=A.next();!U.done;U=A.next()){var C=g.Z(U.value.split("="));U=C.next().value;C=hyz(C);f[U]=C.join("=")}A=f.url;U=f.presetad;C=f.viralresponseurl;var G=Number(f.campaignid);if(f.adtype==="in_display_ad")A&&(T.url=A),U&&(T.presetAd=U),C&&(T.viralAdResponseUrl=C),G&&(T.viralCampaignId= String(G));else if(f.adtype==="video_ad"){var O={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(f.offset)||0)}};if(f=cOO[f.breaktype])O.breakType=f;A&&(O.url=A);U&&(O.presetAd=U);C&&(O.viralAdResponseUrl=C);G&&(O.viralCampaignId=String(G));X.push(O)}}c.forceAdParameters={videoAds:X,inDisplayAd:T}}e.isInlinePlaybackNoAd&&(c.isInlinePlaybackNoAd=!0);e.isLivingRoomDeeplink&&(c.isLivingRoomDeeplink=!0);T=e.o2m;if(T!=null){T={startWalltime:String(T)};if(X=e.fg)T.manifestDuration=String(X||14400); c.liveContext=T}if(e.mutedAutoplay){c.mutedAutoplay=!0;T=h.getWebPlayerContextConfig();var d,W;(T==null?0:(d=T.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode)&&(T==null?0:(W=T.embedsHostFlags)==null?0:W.allowMutedAutoplayDurationMode.includes(o_4[e.mutedAutoplayDurationMode]))&&(c.mutedAutoplayDurationMode=o_4[e.mutedAutoplayDurationMode])}if(e.A1?0:e.ZZ)c.splay=!0;d=e.vnd;d===5&&(c.vnd=d);d={};if(W=e.isMdxPlayback)d.triggeredByMdx=W;if(W=e.mj)d.skippableAdsSupported=W.split(",").includes("ska"); if(X=e.qO){W=e.SS;T=[];X=g.Z(oIq(X));for(y=X.next();!y.done;y=X.next()){y=y.value;f=y.platform;y={applicationState:y.Kp?"INACTIVE":"ACTIVE",clientFormFactor:n_3[f]||"UNKNOWN_FORM_FACTOR",clientName:yDL[y.iE]||"UNKNOWN_INTERFACE",clientVersion:y.deviceVersion||"",platform:yOI[f]||"UNKNOWN_PLATFORM"};f={};if(W){A=void 0;try{A=JSON.parse(W)}catch(L){g.VJ(L)}A&&(f={params:[{key:"ms",value:A.ms}]},A.advertising_id&&(f.advertisingId=A.advertising_id),A.limit_ad_tracking!==void 0&&A.limit_ad_tracking!== null&&(f.limitAdTracking=A.limit_ad_tracking),y.osName=A.os_name,y.userAgent=A.user_agent,y.windowHeightPoints=A.window_height_points,y.windowWidthPoints=A.window_width_points)}T.push({adSignalsInfo:f,remoteClient:y})}d.remoteContexts=T}W=e.sourceContainerPlaylistId;T=e.serializedMdxMetadata;if(W||T)X={},W&&(X.mdxPlaybackContainerInfo={sourceContainerPlaylistId:W}),T&&(X.serializedMdxMetadata=T),d.mdxPlaybackSourceContext=X;c.mdxContext=d;d=a.width;d>0&&(c.playerWidthPixels=Math.round(d));if(a=a.height)c.playerHeightPixels= Math.round(a);r!==0&&(c.vis=r);if(r=h.widgetReferrer)c.widgetReferrer=r.substring(0,128);g.uP(h)&&c&&(c.ancestorOrigins=h.ancestorOrigins);e.defaultActiveSourceVideoId&&(c.compositeVideoContext={defaultActiveSourceVideoId:e.defaultActiveSourceVideoId});if(h=h.getWebPlayerContextConfig())c.encryptedHostFlags=h.encryptedHostFlags;P={videoId:P,context:B,playbackContext:{contentPlaybackContext:c}};if(e.lq){var V;P.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(V=e.lq)==null?void 0:V.reloadPlaybackParams}}e.contentCheckOk&& (P.contentCheckOk=!0);if(V=e.clientPlaybackNonce)P.cpn=V;if(V=e.playerParams)P.params=V;if(V=e.playlistId)P.playlistId=V;e.racyCheckOk&&(P.racyCheckOk=!0);V=e.G();B=V.embedConfig;e.Cg&&V.X("embeds_enable_per_video_embed_config")?P.serializedThirdPartyEmbedConfig=e.Cg:B&&(P.serializedThirdPartyEmbedConfig=B);P.captionParams={};B=g.pE(g.wu(),65);e.deviceCaptionsOn!=null?P.captionParams.deviceCaptionsOn=e.deviceCaptionsOn:g.tZ(V)&&(P.captionParams.deviceCaptionsOn=B!=null?!B:!1);e.Vs&&(P.captionParams.deviceCaptionsLangPref= e.Vs);e.VQ.length?P.captionParams.viewerSelectedCaptionLangs=e.VQ:g.tZ(V)&&(B=g.E$(),B==null?0:B.length)&&(P.captionParams.viewerSelectedCaptionLangs=B);B=e.fetchType==="onesie"&&e.X("html5_onesie_attach_po_token");c=e.fetchType!=="onesie"&&e.X("html5_non_onesie_attach_po_token");if(B||c)B=e.G(),B.A1&&(P.serviceIntegrityDimensions={},P.serviceIntegrityDimensions.poToken=B.A1);V.X("fetch_att_independently")&&(P.attestationRequest={omitBotguardData:!0});P.playbackContext||(P.playbackContext={});P.playbackContext.devicePlaybackCapabilities= Tnj(e);P.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&e.nf("noVp9",{});return P}; Tnj=function(e){var a=!(e==null?0:e.Ud())&&(e==null?void 0:e.QX())&&Mr(),r;if(!(r=e==null)){r=g.WE(e);e=e.G().C;var P=Wb("243");r=!(P&&wp(r,P,e,!0)===!0)}return{supportsVp9Encoding:!(r||a),supportXhr:GA}}; AOy=function(e,a){var r,P,B;return g.Y(function(h){if(h.T==1)return r={context:g.gC(e.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:e.videoId,cpn:e.clientPlaybackNonce}}]},P=g.Md(f3O),g.l(h,g.L8(a,r,P),2);B=h.S;return h.return(B)})}; U5I=function(e,a,r){var P=g.eS(a.experiments,"bg_vm_reinit_threshold");(!yz||(0,g.Ov)()-yz>P)&&AOy(e,r).then(function(B){B&&(B=B.botguardData)&&g.XO(B,a)},function(B){e.wP()||(B=Ud(B),e.nf("attf",B.details))})}; OL=function(e,a){g.N.call(this);this.app=e;this.state=a}; dC=function(e,a,r){e.state.S.hasOwnProperty(a)||kd(e,a,r);e.state.D[a]=function(){return r.apply(e,g.xN.apply(0,arguments))}; e.state.Z.add(a)}; Jt=function(e,a,r){e.state.S.hasOwnProperty(a)||kd(e,a,r);e.app.G().Y&&(e.state.Y[a]=function(){return r.apply(e,g.xN.apply(0,arguments))},e.state.Z.add(a))}; kd=function(e,a,r){e.state.S[a]=function(){return r.apply(e,g.xN.apply(0,arguments))}}; g.Da=function(e,a,r){return e.state.S[a].apply(e.state.S,g.UO(r))}; VT=function(){g.Oy.call(this);this.C=new Map}; $d=function(){g.N.apply(this,arguments);this.element=null;this.Z=new Set;this.D={};this.Y={};this.S={};this.N=new Set;this.B=new VT;this.T=new VT;this.L=new VT;this.C=new VT}; CD4=function(e,a,r){typeof e==="string"&&(e={mediaContentUrl:e,startSeconds:a,suggestedQuality:r});a:{if((a=e.mediaContentUrl)&&(a=/\/([ve]|embed)\/([^#?]+)/.exec(a))&&a[2]){a=a[2];break a}a=null}e.videoId=a;return QT(e)}; QT=function(e,a,r){if(typeof e==="string")return{videoId:e,startSeconds:a,suggestedQuality:r};a={};r=g.Z(GCN);for(var P=r.next();!P.done;P=r.next())P=P.value,e[P]&&(a[P]=e[P]);if(e=e.embedConfig||e.embed_config)if(typeof e==="string")a.embed_config=e;else if(g.hw(e))try{var B=JSON.stringify(e);a.embed_config=B}catch(h){console.error("Invalid embedConfig JSON",h)}return a}; E_L=function(e,a,r,P){if(g.hw(e)&&!Array.isArray(e)){a="playlist list listType index startSeconds suggestedQuality".split(" ");r={};for(P=0;P32&&P.push("hfr");a.isHdr()&&P.push("hdr");a.primaries==="bt2020"&&P.push("wcg");r.video_quality_features=P}}if(e=e.getPlaylistId())r.list=e;return r}; wC=function(){Wx.apply(this,arguments)}; pV=function(e,a){var r={};if(e.app.G().oH){e=g.Z(ZA4);for(var P=e.next();!P.done;P=e.next())P=P.value,a.hasOwnProperty(P)&&(r[P]=a[P]);if(a=r.qoe_cat)e="",typeof a==="string"&&a.length>0&&(e=a.split(",").filter(function(B){return OA3.includes(B)}).join(",")),r.qoe_cat=e; kCq(r)}else for(e=g.Z(d5O),P=e.next();!P.done;P=e.next())P=P.value,a.hasOwnProperty(P)&&(r[P]=a[P]);return r}; kCq=function(e){var a=e.raw_player_response;if(!a){var r=e.player_response;r&&(a=JSON.parse(r))}delete e.player_response;delete e.raw_player_response;if(a){e.raw_player_response={streamingData:a.streamingData,playerConfig:a.playerConfig};var P;if((P=a.playbackTracking)==null?0:P.qoeUrl)e.raw_player_response=Object.assign({},e.raw_player_response,{playbackTracking:{qoeUrl:a.playbackTracking.qoeUrl}});a.videoDetails&&(a.videoDetails.videoId||a.videoDetails.lengthSeconds)&&(r={},a.videoDetails.videoId&& (r.videoId=a.videoDetails.videoId),a.videoDetails.lengthSeconds&&(r.lengthSeconds=a.videoDetails.lengthSeconds),e.raw_player_response=Object.assign({},e.raw_player_response,{videoDetails:r}))}}; iL=function(e,a,r){var P=e.app.BZ(r);if(!P)return 0;e=P-e.app.getCurrentTime(r);return a-e}; D5L=function(e){var a=a===void 0?5:a;return e?JOO[e]||a:a}; g.zg=function(){wC.apply(this,arguments)}; VHq=function(e){kd(e,"getInternalApiInterface",e.getInternalApiInterface);kd(e,"addEventListener",e.bI);kd(e,"removeEventListener",e.g2m);kd(e,"cueVideoByPlayerVars",e.ql);kd(e,"loadVideoByPlayerVars",e.yE);kd(e,"preloadVideoByPlayerVars",e.kXW);kd(e,"getAdState",e.getAdState);kd(e,"sendAbandonmentPing",e.sendAbandonmentPing);kd(e,"setLoopRange",e.setLoopRange);kd(e,"getLoopRange",e.getLoopRange);kd(e,"setAutonavState",e.setAutonavState);kd(e,"seekTo",e.hoQ);kd(e,"seekBy",e.c1H);kd(e,"seekToLiveHead", e.seekToLiveHead);kd(e,"requestSeekToWallTimeSeconds",e.requestSeekToWallTimeSeconds);kd(e,"seekToStreamTime",e.seekToStreamTime);kd(e,"prefetchKeyPlay",e.prefetchKeyPlay);kd(e,"startSeekCsiAction",e.startSeekCsiAction);kd(e,"getStreamTimeOffset",e.getStreamTimeOffset);kd(e,"getVideoData",e.W$);kd(e,"setInlinePreview",e.setInlinePreview);kd(e,"getAppState",e.getAppState);kd(e,"updateLastActiveTime",e.updateLastActiveTime);kd(e,"setBlackout",e.setBlackout);kd(e,"setUserEngagement",e.setUserEngagement); kd(e,"updateSubtitlesUserSettings",e.updateSubtitlesUserSettings);kd(e,"getPresentingPlayerType",e.fO);kd(e,"canPlayType",e.canPlayType);kd(e,"updatePlaylist",e.updatePlaylist);kd(e,"updateVideoData",e.updateVideoData);kd(e,"updateEnvironmentData",e.updateEnvironmentData);kd(e,"sendVideoStatsEngageEvent",e.A1Q);kd(e,"productsInVideoVisibilityUpdated",e.productsInVideoVisibilityUpdated);kd(e,"setSafetyMode",e.setSafetyMode);kd(e,"isAtLiveHead",function(a){return e.isAtLiveHead(void 0,a)}); kd(e,"getVideoAspectRatio",e.getVideoAspectRatio);kd(e,"getPreferredQuality",e.getPreferredQuality);kd(e,"getPlaybackQualityLabel",e.getPlaybackQualityLabel);kd(e,"setPlaybackQualityRange",e.kGM);kd(e,"onAdUxClicked",e.onAdUxClicked);kd(e,"getFeedbackProductData",e.getFeedbackProductData);kd(e,"getStoryboardFrame",e.getStoryboardFrame);kd(e,"getStoryboardFrameIndex",e.getStoryboardFrameIndex);kd(e,"getStoryboardLevel",e.getStoryboardLevel);kd(e,"getNumberOfStoryboardLevels",e.getNumberOfStoryboardLevels); kd(e,"getCaptionWindowContainerId",e.getCaptionWindowContainerId);kd(e,"getAvailableQualityLabels",e.getAvailableQualityLabels);kd(e,"addCueRange",e.addCueRange);kd(e,"addUtcCueRange",e.addUtcCueRange);kd(e,"showAirplayPicker",e.showAirplayPicker);kd(e,"dispatchReduxAction",e.dispatchReduxAction);kd(e,"getPlayerResponse",e.TP);kd(e,"getWatchNextResponse",e.CP);kd(e,"getHeartbeatResponse",e.oV);kd(e,"getCurrentTime",e.vk);kd(e,"getDuration",e.LO);kd(e,"getPlayerState",e.getPlayerState);kd(e,"getPlayerStateObject", e.B$);kd(e,"getVideoLoadedFraction",e.getVideoLoadedFraction);kd(e,"getProgressState",e.getProgressState);kd(e,"getVolume",e.getVolume);kd(e,"setVolume",e.Sc);kd(e,"isMuted",e.isMuted);kd(e,"mute",e.ej);kd(e,"unMute",e.f1);kd(e,"loadModule",e.loadModule);kd(e,"unloadModule",e.unloadModule);kd(e,"getOption",e.D3);kd(e,"getOptions",e.getOptions);kd(e,"setOption",e.setOption);kd(e,"loadVideoById",e.bu);kd(e,"loadVideoByUrl",e.TY);kd(e,"playVideo",e.JG);kd(e,"loadPlaylist",e.loadPlaylist);kd(e,"nextVideo", e.nextVideo);kd(e,"previousVideo",e.previousVideo);kd(e,"playVideoAt",e.playVideoAt);kd(e,"getDebugText",e.getDebugText);kd(e,"getWebPlayerContextConfig",e.getWebPlayerContextConfig);kd(e,"notifyShortsAdSwipeEvent",e.notifyShortsAdSwipeEvent);kd(e,"getVideoContentRect",e.getVideoContentRect);kd(e,"setSqueezeback",e.setSqueezeback);kd(e,"toggleSubtitlesOn",e.toggleSubtitlesOn);kd(e,"isSubtitlesOn",e.isSubtitlesOn);kd(e,"reportPlaybackIssue",e.reportPlaybackIssue);kd(e,"setAutonav",e.setAutonav);kd(e, "isNotServable",e.isNotServable);kd(e,"channelSubscribed",e.channelSubscribed);kd(e,"channelUnsubscribed",e.channelUnsubscribed);kd(e,"togglePictureInPicture",e.togglePictureInPicture);kd(e,"supportsGaplessAudio",e.supportsGaplessAudio);kd(e,"supportsGaplessShorts",e.supportsGaplessShorts);kd(e,"enqueueVideoByPlayerVars",function(a){return void e.enqueueVideoByPlayerVars(a)}); kd(e,"clearQueue",e.clearQueue);kd(e,"getAudioTrack",e.G4);kd(e,"setAudioTrack",e.df$);kd(e,"getAvailableAudioTracks",e.Fv);kd(e,"getMaxPlaybackQuality",e.getMaxPlaybackQuality);kd(e,"getUserPlaybackQualityPreference",e.getUserPlaybackQualityPreference);kd(e,"getSubtitlesUserSettings",e.getSubtitlesUserSettings);kd(e,"resetSubtitlesUserSettings",e.resetSubtitlesUserSettings);kd(e,"setMinimized",e.setMinimized);kd(e,"setOverlayVisibility",e.setOverlayVisibility);kd(e,"confirmYpcRental",e.confirmYpcRental); kd(e,"queueNextVideo",e.queueNextVideo);kd(e,"handleExternalCall",e.handleExternalCall);kd(e,"logApiCall",e.logApiCall);kd(e,"isExternalMethodAvailable",e.isExternalMethodAvailable);kd(e,"setScreenLayer",e.setScreenLayer);kd(e,"getCurrentPlaylistSequence",e.getCurrentPlaylistSequence);kd(e,"getPlaylistSequenceForTime",e.getPlaylistSequenceForTime);kd(e,"shouldSendVisibilityState",e.shouldSendVisibilityState);kd(e,"syncVolume",e.syncVolume);kd(e,"highlightSettingsMenuItem",e.highlightSettingsMenuItem); kd(e,"openSettingsMenuItem",e.openSettingsMenuItem);kd(e,"getEmbeddedPlayerResponse",e.getEmbeddedPlayerResponse);kd(e,"getVisibilityState",e.getVisibilityState);kd(e,"isMutedByMutedAutoplay",e.isMutedByMutedAutoplay);kd(e,"isMutedByEmbedsMutedAutoplay",e.isMutedByEmbedsMutedAutoplay);kd(e,"setGlobalCrop",e.setGlobalCrop);kd(e,"setInternalSize",e.setInternalSize);kd(e,"setFauxFullscreen",e.setFauxFullscreen);kd(e,"setAppFullscreen",e.setAppFullscreen)}; xd=function(e,a,r){e=g.NY(e.yH(),a);return r?(r.addOnDisposeCallback(e),null):e}; g.Ik=function(e,a,r){return e.app.G().py?a:g.PA("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:a,SHORTCUT:r})}; $54=function(e){e.yH().element.setAttribute("aria-live","polite")}; g.Hx=function(e,a){g.zg.call(this,e,a);VHq(this);Jt(this,"addEventListener",this.BN);Jt(this,"removeEventListener",this.LJd);Jt(this,"cueVideoByPlayerVars",this.FV);Jt(this,"loadVideoByPlayerVars",this.qR);Jt(this,"preloadVideoByPlayerVars",this.VuQ);Jt(this,"loadVideoById",this.bu);Jt(this,"loadVideoByUrl",this.TY);Jt(this,"playVideo",this.JG);Jt(this,"loadPlaylist",this.loadPlaylist);Jt(this,"nextVideo",this.nextVideo);Jt(this,"previousVideo",this.previousVideo);Jt(this,"playVideoAt",this.playVideoAt); Jt(this,"getVideoData",this.xC);Jt(this,"seekBy",this.mfr);Jt(this,"seekTo",this.tKd);Jt(this,"showControls",this.showControls);Jt(this,"hideControls",this.hideControls);Jt(this,"cancelPlayback",this.cancelPlayback);Jt(this,"getProgressState",this.getProgressState);Jt(this,"isInline",this.isInline);Jt(this,"setInline",this.setInline);Jt(this,"setLoopVideo",this.setLoopVideo);Jt(this,"getLoopVideo",this.getLoopVideo);Jt(this,"getVideoContentRect",this.getVideoContentRect);Jt(this,"getVideoStats",this.Zy); Jt(this,"getCurrentTime",this.NG);Jt(this,"getDuration",this.LO);Jt(this,"getPlayerState",this.OP);Jt(this,"getVideoLoadedFraction",this.ea);Jt(this,"mute",this.ej);Jt(this,"unMute",this.f1);Jt(this,"setVolume",this.Sc);Jt(this,"loadModule",this.loadModule);Jt(this,"unloadModule",this.unloadModule);Jt(this,"getOption",this.D3);Jt(this,"getOptions",this.getOptions);Jt(this,"setOption",this.setOption);Jt(this,"addCueRange",this.addCueRange);Jt(this,"getDebugText",this.getDebugText);Jt(this,"getStoryboardFormat", this.getStoryboardFormat);Jt(this,"toggleFullscreen",this.toggleFullscreen);Jt(this,"isFullscreen",this.isFullscreen);Jt(this,"getPlayerSize",this.getPlayerSize);Jt(this,"toggleSubtitles",this.toggleSubtitles);Jt(this,"setCenterCrop",this.setCenterCrop);Jt(this,"setFauxFullscreen",this.setFauxFullscreen);Jt(this,"setSizeStyle",this.setSizeStyle);Jt(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Jt(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);tH4(this)}; g.qY=function(e){e=e.eO();var a=e.oL.get("endscreen");return a&&a.VB()?!0:e.u0()}; g.vx=function(e,a){e.getPresentingPlayerType()===3?e.publish("mdxautoplaycancel"):e.qF("onAutonavCancelled",a)}; g.Sn=function(e){var a=Rk(e.eO());return e.app.eH&&!e.isFullscreen()||e.getPresentingPlayerType()===3&&a&&a.fq()&&a.Mj()||!!e.getPlaylist()}; g.sL=function(e,a){g.Da(e,"addEmbedsConversionTrackingParams",[a])}; g.FI=function(e){return(e=g.mu(e.eO()))?e.nF():{}}; g.QjI=function(e){e=(e=e.getVideoData())&&e.T;return!!e&&!(!e.audio||!e.video)&&e.mimeType!=="application/x-mpegURL"}; g.MY=function(e,a,r){e=e.MF().element;var P=qM(e.children,function(B){B=Number(B.getAttribute("data-layer"));return r-B||1}); P<0&&(P=-(P+1));bd(e,a,P);a.setAttribute("data-layer",String(r))}; g.jn=function(e){var a=e.G();if(!a.QH)return!1;var r=e.getVideoData();if(!r||e.getPresentingPlayerType()===3)return!1;var P=(!r.isLiveDefaultBroadcast||a.X("allow_poltergust_autoplay"))&&!EL(r);P=r.isLivePlayback&&(!a.X("allow_live_autoplay")||!P);var B=r.isLivePlayback&&a.X("allow_live_autoplay_on_mweb");e=e.getPlaylist();e=!!e&&e.fq();var h=r.Cf&&r.Cf.playerOverlays||null;h=!!(h&&h.playerOverlayRenderer&&h.playerOverlayRenderer.autoplay);h=r.nB&&h;return!r.ypcPreview&&(!P||B)&&!g.ZB(r.N,"ypc")&& !e&&(!g.uP(a)||h)}; l3N=function(e,a){e=WPT(e.app.DW().C);e=g.Z(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var P=r.getAvailableAudioTracks(),B=null;P=g.Z(P);for(var h=P.next();!h.done;h=P.next())if(h=h.value,h.getLanguageInfo().getId()===a){B=h;break}B&&r.lr(B,!0)}}; uL=function(){LE.apply(this,arguments);this.requestHeaders={}}; ez=function(){KV||(KV=new uL);return KV}; aS=function(e,a){a?e.requestHeaders.Authorization="Bearer "+a:delete e.requestHeaders.Authorization}; g.ra=function(e){g.N.call(this);var a=this;this.uW=e;this.Ob={Lt:function(){return a.uW}}}; g.P8=function(e,a,r,P){P=P===void 0?!1:P;g.cs.call(this,a);var B=this;this.W=e;this.TQ=P;this.Y=new g.Zc(this);this.fade=new g.jq(this,r,!0,void 0,void 0,function(){B.pO()}); g.x(this,this.Y);g.x(this,this.fade)}; B8=function(e){var a=e.W.getRootNode();return e.W.X("web_watch_pip")||e.W.X("web_shorts_pip")?e2(a):document}; LPI=function(e){e.T&&(document.activeElement&&g.gy(e.element,document.activeElement)&&e.T.focus(),e.T.setAttribute("aria-expanded","false"),e.T=void 0);g.du(e.Y);e.N=void 0}; hQ=function(e,a,r){e.DP()?e.XN():e.Yh(a,r)}; c8=function(e,a,r,P){P=new g.v({K:"div",WW:["ytp-linked-account-popup-button"],S1:P,J:{role:"button",tabindex:"0"}});a=new g.v({K:"div",U:"ytp-linked-account-popup",J:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{K:"div",U:"ytp-linked-account-popup-title",S1:a},{K:"div",U:"ytp-linked-account-popup-description",S1:r},{K:"div",U:"ytp-linked-account-popup-buttons",V:[P]}]});g.P8.call(this,e,{K:"div",U:"ytp-linked-account-popup-container",V:[a]},100);var B=this;this.dialog=a;g.x(this,this.dialog); P.listen("click",function(){B.XN()}); g.x(this,P);g.MY(this.W,this.element,4);this.hide()}; g.nw=function(e,a,r,P){g.cs.call(this,e);this.priority=a;r&&g.oS(this,r);P&&this.vO(P)}; g.yi=function(e,a,r,P){e=e===void 0?{}:e;a=a===void 0?[]:a;r=r===void 0?!1:r;P=P===void 0?!1:P;a.push("ytp-menuitem");var B=e;"role"in B||(B.role="menuitem");r||(B=e,"tabindex"in B||(B.tabindex="0"));e={K:r?"a":"div",WW:a,J:e,V:[{K:"div",U:"ytp-menuitem-icon",S1:"{{icon}}"},{K:"div",U:"ytp-menuitem-label",S1:"{{label}}"},{K:"div",U:"ytp-menuitem-content",S1:"{{content}}"}]};P&&e.V.push({K:"div",U:"ytp-menuitem-secondary-icon",S1:"{{secondaryIcon}}"});return e}; g.oS=function(e,a){e.updateValue("label",a)}; TB=function(e){g.nw.call(this,g.yi({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var a=this;this.W=e;this.T=this.S=!1;this.OM=e.Ch();e.createServerVe(this.element,this,!0);this.j(this.W,"settingsMenuVisibilityChanged",function(r){a.Yy(r)}); this.j(this.W,"videodatachange",this.L);this.listen("click",this.onClick);this.L()}; Xr=function(e){return e?g.yd(e):""}; fw=function(e){g.N.call(this);this.api=e}; AQ=function(e){fw.call(this,e);var a=this;kd(e,"setAccountLinkState",function(r){a.setAccountLinkState(r)}); kd(e,"updateAccountLinkingConfig",function(r){a.updateAccountLinkingConfig(r)}); e.addEventListener("videodatachange",function(r,P){a.onVideoDataChange(P)}); e.addEventListener("settingsMenuInitialized",function(){a.menuItem=new TB(a.api);g.x(a,a.menuItem)})}; Yi3=function(e){this.api=e;this.S={}}; UN=function(e,a,r,P){a in e.S||(r=new g.v_(r,P,{id:a,priority:2,namespace:"appad"}),e.api.Ji([r],1),e.S[a]=r)}; Cw=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(this);g.x(this,this.events);this.S=new Yi3(this.api);this.events.j(this.api,"legacyadtrackingpingreset",function(){a.S.S={}}); this.events.j(this.api,"legacyadtrackingpingchange",function(r){var P=a.S;UN(P,"part2viewed",1,0x8000000000000);UN(P,"engagedview",Math.max(1,r.bv*1E3),0x8000000000000);if(!r.isLivePlayback){var B=r.lengthSeconds*1E3;J3(r)&&P.api.X("html5_shorts_gapless_ads_duration_fix")&&(B=P.api.getProgressState().seekableEnd*1E3-r.Wy);UN(P,"videoplaytime25",B*.25,B);UN(P,"videoplaytime50",B*.5,B);UN(P,"videoplaytime75",B*.75,B);UN(P,"videoplaytime100",B,0x8000000000000);UN(P,"conversionview",B,0x8000000000000); UN(P,"videoplaybackstart",1,B);UN(P,"videoplayback2s",2E3,B);UN(P,"videoplayback10s",1E4,B)}}); this.events.j(this.api,g.SS("appad"),this.T);this.events.j(this.api,g.sh("appad"),this.T)}; zhz=function(e,a,r){if(!(r in a))return!1;a=a[r];Array.isArray(a)||(a=[a]);a=g.Z(a);for(r=a.next();!r.done;r=a.next()){r=r.value;var P={CPN:e.api.getVideoData().clientPlaybackNonce};r=g.Vm(r,P);P=void 0;P=P===void 0?!1:P;(P=zx(NT(r,wZT),r,P,"Active View 3rd Party Integration URL"))||(P=void 0,P=P===void 0?!1:P,P=zx(NT(r,pZO),r,P,"Google/YouTube Brand Lift URL"));P||(P=void 0,P=P===void 0?!1:P,P=zx(NT(r,iAO),r,P,"Nielsen OCR URL"));g.Lu(r,void 0,P)}return!0}; GB=function(e,a){Nnz(e,a).then(function(r){g.Lu(a,void 0,void 0,r)})}; EN=function(e,a){a.forEach(function(r){GB(e,r)})}; Nnz=function(e,a){return g.Uh(e.api.G())&&Bf(a)&&Pf(a)?g.$G(e.api.G(),g.ok(e.api.getVideoData())).then(function(r){var P;r&&(P={Authorization:"Bearer "+r});return P},void 0):VU()}; x54=function(e){fw.call(this,e);this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"videoready",function(a){if(e.getPresentingPlayerType()===1){var r,P,B={playerDebugData:{pmlSignal:!!((r=a.getPlayerResponse())==null?0:(P=r.adPlacements)==null?0:P.some(function(h){var c;return h==null?void 0:(c=h.adPlacementRenderer)==null?void 0:c.renderer})), contentCpn:a.clientPlaybackNonce}};g.BU("adsClientStateChange",B)}})}; bS=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);kd(this.api,"getUserAudioQualitySetting",function(){return a.getUserAudioQualitySetting()}); kd(this.api,"setUserAudioQualitySetting",function(r){a.setUserAudioQualitySetting(r)}); kd(this.api,"hasHqaAudioTrack",function(){return a.hasHqaAudioTrack()}); this.Rc=Ppl();this.updateEnvironmentData()}; tQ=function(e){g.v.call(this,{K:"button",WW:["ytp-button","ytp-autonav-toggle"],J:{title:e.X("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{K:"div",U:"ytp-autonav-toggle-button-container",V:[{K:"div",U:"ytp-autonav-toggle-button",J:{"aria-checked":"true"}}]}]});this.W=e;this.T=[];this.S=!1;this.isChecked=!0;e.createClientVe(this.element,this, 113681);this.j(e,"presentingplayerstatechange",this.AX);this.listen("click",this.onClick);this.W.G().X("web_player_autonav_toggle_always_listen")&&I34(this);xd(e,this.element,this);this.AX()}; I34=function(e){e.T.push(e.j(e.W,"videodatachange",e.AX));e.T.push(e.j(e.W,"videoplayerreset",e.AX));e.T.push(e.j(e.W,"onPlaylistUpdate",e.AX));e.T.push(e.j(e.W,"autonavchange",e.QR))}; HAL=function(e){e.isChecked=e.isChecked;e.BW("ytp-autonav-toggle-button").setAttribute("aria-checked",String(e.isChecked));var a=e.isChecked?"Auto-play is on":"Auto-play is off";e.W.G().X("player_tooltip_data_title_killswitch")?e.update({title:a,label:a}):e.update({"data-tooltip-title":a,label:a});e.W.gE()}; qiq=function(e){return e.W.G().X("web_player_autonav_use_server_provided_state")&&t3(e.TX())}; v_l=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"standardControlsInitialized",function(){var r=new tQ(e);g.x(a,r);e.M0(r,"RIGHT_CONTROLS_LEFT")})}; Zk=function(e,a){g.nw.call(this,g.yi({role:"menuitemcheckbox","aria-checked":"false"}),a,e,{K:"div",U:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; ON=function(e,a){e.checked=a;e.element.setAttribute("aria-checked",String(e.checked))}; Rhy=function(e){var a=!e.G().G0&&e.getPresentingPlayerType()!==3;return e.isFullscreen()||a}; g.ke=function(e,a,r,P){var B=e.currentTarget;if((r===void 0||!r)&&g.gG(e))return e.preventDefault(),!0;a.pauseVideo();e=B.getAttribute("href");g.Nd(e,P,!0);return!1}; g.da=function(e,a,r){if(GF(a.G())&&a.getPresentingPlayerType()!==2){if(g.gG(r))return a.isFullscreen()&&!a.G().externalFullscreen&&a.toggleFullscreen(),r.preventDefault(),!0}else{var P=g.gG(r);P&&a.pauseVideo();g.Nd(e,void 0,!0);P&&(g.xg(e),r.preventDefault())}return!1}; Si4=function(e){e=JQ.includes("en-GB")?e.X("delhi_modern_web_player_icons")?CB():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,J:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:e.X("delhi_modern_web_player_icons")?Yu4():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,J:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};e.U="ytp-subtitles-button-icon"; return e}; sjj=function(e){return JQ.includes("en-GB")?e?CB():{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:e?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{K:"path",J:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Dk=function(){return{K:"div",U:"ytp-spinner-container",V:[{K:"div",U:"ytp-spinner-rotator",V:[{K:"div",U:"ytp-spinner-left",V:[{K:"div",U:"ytp-spinner-circle"}]},{K:"div",U:"ytp-spinner-right",V:[{K:"div",U:"ytp-spinner-circle"}]}]}]}}; Vi=function(e){if(document.createRange){var a=document.createRange();a&&(a.selectNodeContents(e),e=window.getSelection())&&(e.removeAllRanges(),e.addRange(a))}}; W8=function(e){var a=e.X("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Zk.call(this,a,g.$e.GB);var r=this;this.W=e;this.S=!1;this.T=new g.vP(function(){g.BD(r.element,"ytp-menuitem-highlighted")},0); this.OM=e.Ch();e=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(e);this.subscribe("select",this.B,this);this.listen(Qi,this.L);g.x(this,this.T)}; lS=function(e){fw.call(this,e);var a=this;this.S=!1;e.addEventListener("settingsMenuInitialized",function(){m53(a)}); e.addEventListener("highlightSettingsMenu",function(r){m53(a);var P=a.menuItem;r==="menu_item_cinematic_lighting"&&(g.rr(P.element,"ytp-menuitem-highlighted"),g.rr(P.element,"ytp-menuitem-highlight-transition-enabled"),P.T.start())}); kd(e,"updateCinematicSettings",function(r){a.updateCinematicSettings(r)})}; m53=function(e){e.menuItem||(e.menuItem=new W8(e.api),g.x(e,e.menuItem),e.menuItem.zQ(e.S))}; FPI=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"applicationvideodatachange",function(r,P){P=P.clipConfig;r==="dataloaded"&&P&&P.startTimeMs!=null&&P.endTimeMs!=null&&a.api.setLoopRange({startTimeMs:Math.floor(Number(P.startTimeMs)),endTimeMs:Math.floor(Number(P.endTimeMs)),postId:P.postId,type:"clips"})})}; Lw=function(e){fw.call(this,e);this.events=new g.Zc(e);g.x(this,this.events);kd(e,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));kd(e,"setCreatorEndscreenHideButton",this.S.bind(this))}; Ye=function(e,a,r,P){Zk.call(this,"Stable volume",g.$e.dU);g.rr(this.element,"ytp-drc-menu-item");this.OM=e.Ch();this.B=a;this.S=r;this.hasDrcAudioTrack=P;e.addEventListener("videodatachange",this.T.bind(this));e.X("mta_drc_mutual_exclusion_removal")&&this.j(e,"onPlaybackAudioChange",this.T);a=this.S()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());e=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(e);this.subscribe("select",this.L,this);ON(this,a);this.OM.D5(this)}; wa=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);e.X("html5_show_drc_toggle")&&e.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new Ye(a.api,a.setDrcUserPreference.bind(a),a.getDrcUserPreference.bind(a),a.T.bind(a)),g.x(a,a.menuItem))}); kd(this.api,"setDrcUserPreference",function(P){a.setDrcUserPreference(P)}); kd(this.api,"getDrcUserPreference",function(){return a.getDrcUserPreference()}); kd(this.api,"hasDrcAudioTrack",function(){return a.T()}); var r;this.S=(r=g.$f("yt-player-drc-pref"))!=null?r:1;this.updateEnvironmentData()}; pw=function(e){fw.call(this,e);var a=this;this.S={};this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"videodatachange",function(){a.onVideoDataChange()}); this.events.j(e,g.SS("embargo"),function(r){a.api.J4(!0);var P,B=(P=a.S[r.id])!=null?P:[];P=g.Z(B);for(B=P.next();!B.done;B=P.next()){var h=B.value;a.api.hideControls();a.api.Ex("auth",2,"This video isn't available in your current playback area",XQ({embargoed:1,id:r.id,idx:r.T,start:r.start}));B=void 0;(h=(B=h.embargo)==null?void 0:B.onTrigger)&&a.api.qF("innertubeCommand",h)}})}; MHI=function(e,a){var r;return(r=a.onEnter)==null?void 0:r.some(e.T)}; jjq=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next()){r=r.value;var P=void 0,B=Number((P=r.playbackPosition)==null?void 0:P.utcTimeMillis)/1E3,h=void 0;P=B+Number((h=r.duration)==null?void 0:h.seconds);h="embargo_"+B;e.api.addUtcCueRange(h,B,P,"embargo",!1);r.onEnter&&(e.S[h]=r.onEnter.filter(e.T))}}; iS=function(e){fw.call(this,e);var a=this;this.S=[];this.events=new g.Zc(e);g.x(this,this.events);kd(e,"addEmbedsConversionTrackingParams",function(r){a.addEmbedsConversionTrackingParams(r)}); this.events.j(e,"veClickLogged",function(r){a.api.hasVe(r)&&(r=r.visualElement.getAsJspb(),r=QV(r,2),a.S.push(r))})}; ulT=function(e){fw.call(this,e);kd(e,"isEmbedsShortsMode",function(){return e.isEmbedsShortsMode()})}; KPO=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"initialvideodatacreated",function(r){rp(aX(),16623);a.S=g.bs();var P=e.G().ZZ&&!r.A1;if(cx(r)&&P){rp(aX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(r.getWatchNextResponse()){var B,h=(B=r.getWatchNextResponse())==null?void 0:B.trackingParams;h&&B2(h)}if(r.getPlayerResponse()){var c;(r=(c=r.getPlayerResponse())==null?void 0:c.trackingParams)&&B2(r)}}else rp(aX(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),r.getEmbeddedPlayerResponse()&&(c=(h=r.getEmbeddedPlayerResponse())==null?void 0:h.trackingParams)&&B2(c)}); this.events.j(e,"loadvideo",function(){rp(aX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:a.S})}); this.events.j(e,"cuevideo",function(){rp(aX(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:a.S})}); this.events.j(e,"largeplaybuttonclicked",function(r){rp(aX(),27240,r.visualElement)}); this.events.j(e,"playlistnextbuttonclicked",function(r){rp(aX(),27240,r.visualElement)}); this.events.j(e,"playlistprevbuttonclicked",function(r){rp(aX(),27240,r.visualElement)}); this.events.j(e,"playlistautonextvideo",function(){rp(aX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; zB=function(e,a){g.N.call(this);var r=this;this.S=null;this.B=a;a=[];for(var P=0;P<=100;P++)a.push(P/100);a={threshold:a,trackVisibility:!0,delay:1E3};(this.T=window.IntersectionObserver?new IntersectionObserver(function(B){B=B[B.length-1];var h=null;typeof B.isVisible==="undefined"?document.visibilityState==="visible"&&B.isIntersecting&&B.intersectionRatio>0?h=B.intersectionRatio:document.visibilityState==="hidden"?h=0:h=null:h=B.isVisible?B.intersectionRatio:0;h!=null&&(h=Math.max(h,0),h=Math.min(h, 1));r.S=h;typeof r.B==="function"&&r.B(r.S)},a):null)&&this.T.observe(e)}; a94=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"applicationInitialized",function(){efz(a)})}; efz=function(e){var a=e.api.getRootNode(),r,P=e.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((r=a.parentElement)==null?void 0:r.parentElement)||a:a;e.S=new zB(P,function(B){B!=null&&(e.api.G().Tm=B,e.api.G().B8="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.x(e,e.S);e.events.j(e.api,"videoStatsPingCreated",function(B){var h=e.S;h=h.S==null?null:Math.round(h.S*100)/100;B.inview=h!=null?h:void 0;h=e.api.getPlayerSize();if(h.height>0&&h.width>0){h=[Math.round(h.width),Math.round(h.height)];var c=g.bX();c>1&&h.push(c);h=h.join(":")}else h=void 0;B.size=h})}; ro4=function(e){var a;return((a=((e==null?void 0:e.messageRenderers)||[]).find(function(r){return!!r.timeCounterRenderer}))==null?void 0:a.timeCounterRenderer)||null}; N0=function(e){g.v.call(this,{K:"div",WW:["ytp-player-content","ytp-iv-player-content"],V:[{K:"div",U:"ytp-free-preview-countdown-timer",V:[{K:"span",S1:"{{label}}"},{K:"span",U:"ytp-free-preview-countdown-timer-separator",S1:"\u2022"},{K:"span",S1:"{{duration}}"}]}]});this.api=e;this.S=null;this.B=this.T=0;this.j(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; BpL=function(e,a){e.S||(e.T=a,e.B=(0,g.Ov)(),e.S=new g.qe(function(){PfN(e)},null),PfN(e))}; PfN=function(e){var a=Math,r=a.round,P=Math.min((0,g.Ov)()-e.B,e.T);a=r.call(a,(e.T-P)/1E3);e.updateValue("duration",mP({seconds:a}));a<=0&&e.S?e.stopTimer():e.S&&e.S.start()}; hfT=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"basechromeinitialized",function(){a.S=new N0(e);g.x(a,a.S);g.MY(e,a.S.element,4);a.S.hide()})}; xe=function(e){g.v.call(this,{K:"button",WW:["ytp-fullerscreen-edu-button","ytp-button"],V:[{K:"div",WW:["ytp-fullerscreen-edu-text"],S1:"Scroll for details"},{K:"div",WW:["ytp-fullerscreen-edu-chevron"],V:[{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",J:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],J:{"data-priority":"2"}});this.j1=e;this.fade=new g.jq(this,250,void 0,100);this.T=this.S=!1;e.createClientVe(this.element,this,61214);g.x(this, this.fade);this.j(e,"fullscreentoggled",this.zQ);this.j(e,"presentingplayerstatechange",this.zQ);this.listen("click",this.onClick);this.zQ()}; IS=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);kd(this.api,"updateFullerscreenEduButtonSubtleModeState",function(P){a.updateFullerscreenEduButtonSubtleModeState(P)}); kd(this.api,"updateFullerscreenEduButtonVisibility",function(P){a.updateFullerscreenEduButtonVisibility(P)}); var r=e.G();e.X("external_fullscreen_with_edu")&&r.externalFullscreen&&GF(r)&&r.controlsType==="1"&&this.events.j(e,"standardControlsInitialized",function(){a.S=new xe(e);g.x(a,a.S);e.M0(a.S)})}; coI=function(e){g.v.call(this,{K:"div",U:"ytp-gated-actions-overlay",V:[{K:"div",U:"ytp-gated-actions-overlay-background",V:[{K:"div",U:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",WW:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],J:{"aria-label":"Close"},V:[g.UY()]},{K:"div",U:"ytp-gated-actions-overlay-bar",V:[{K:"div",U:"ytp-gated-actions-overlay-text-container",V:[{K:"div",U:"ytp-gated-actions-overlay-title",S1:"{{title}}"},{K:"div",U:"ytp-gated-actions-overlay-subtitle", S1:"{{subtitle}}"}]},{K:"div",U:"ytp-gated-actions-overlay-button-container"}]}]});var a=this;this.api=e;this.background=this.BW("ytp-gated-actions-overlay-background");this.T=this.BW("ytp-gated-actions-overlay-button-container");this.S=[];this.j(this.BW("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){a.api.qF("onCloseMiniplayer")}); this.hide()}; n$y=function(e,a){var r=0;r=0;for(var P={};r B&&(B=y.width,h="url("+y.url+")")}r.background.style.backgroundImage=h;n$y(r,P.actionButtons||[]);r.show()}else r.hide()}); g.MY(this.api,this.S.element,4)}; H8=function(e){fw.call(this,e);var a=this;Jt(this.api,"getSphericalProperties",function(){return a.getSphericalProperties()}); Jt(this.api,"setSphericalProperties",function(){a.setSphericalProperties.apply(a,g.UO(g.xN.apply(0,arguments)))}); dC(this.api,"getSphericalProperties",function(){return a.api.getPresentingPlayerType()===2?{}:a.getSphericalProperties()}); dC(this.api,"setSphericalProperties",function(){var r=g.xN.apply(0,arguments);a.api.getPresentingPlayerType()!==2&&a.setSphericalProperties.apply(a,g.UO(r))})}; q0=function(e){fw.call(this,e);kd(e,"createClientVe",this.createClientVe.bind(this));kd(e,"createServerVe",this.createServerVe.bind(this));kd(e,"destroyVe",this.destroyVe.bind(this));kd(e,"hasVe",this.hasVe.bind(this));kd(e,"logClick",this.logClick.bind(this));kd(e,"logVisibility",this.logVisibility.bind(this));kd(e,"setTrackingParams",this.setTrackingParams.bind(this))}; v8=function(e,a,r,P){function B(c){var y=!(c.status!==204&&c.status!==200&&!c.response),T;c={succ:""+ +y,rc:c.status,lb:((T=c.response)==null?void 0:T.byteLength)||0,rt:((0,g.Ov)()-h).toFixed(),shost:g.TS(e),trigger:a};TpJ(c,e);r&&r(c);P&&!y&&P(new g.f_("pathprobe.net",c))} var h=(0,g.Ov)();g.ge(e,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:B,onTimeout:B})}; TpJ=function(e,a){var r;((r=window.performance)==null?0:r.getEntriesByName)&&(a=performance.getEntriesByName(a))&&a.length&&(a=a[0],e.pedns=(a.domainLookupEnd-a.startTime).toFixed(),e.pecon=(a.connectEnd-a.domainLookupEnd).toFixed(),e.perqs=(a.requestStart-a.connectEnd).toFixed(),X24&&(e.perqsa=a.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; f9z=function(e){X24=e}; RS=function(e,a){this.e5=e;this.policy=a;this.playbackRate=1}; AoL=function(e,a){var r=Math.min(2.5,I1(e.e5));e=Sz(e);return a-r*e}; sN=function(e,a,r,P,B){B=B===void 0?!1:B;if(e.policy.xE)return Math.ceil(e.policy.xE*a);e.policy.pY&&(P=Math.abs(P));P/=e.playbackRate;var h=1/vM(e.e5);r=Math.max(.9*(P-3),I1(e.e5)+e.e5.T.S*h)/h*.8/(a+r);r=Math.min(r,P);e.policy.vI>0&&B&&(r=Math.max(r,e.policy.vI));return U$L(e,r,a)}; U$L=function(e,a,r){return Math.ceil(Math.max(Math.max(e.policy.H8,e.policy.F7*r),Math.min(Math.min(e.policy.XM,31*r),Math.ceil(a*r))))||e.policy.H8}; Cfl=function(e,a,r){r=sN(e,a.S.info.NF,r.S.info.NF,0);var P=I1(e.e5)+r/vM(e.e5);return Math.max(P,P+e.policy.Kz-r/a.S.info.NF)}; Sz=function(e){return vM(e.e5,!e.policy.NO,e.policy.xM)}; mW=function(e){return Sz(e)/e.playbackRate}; Fr=function(e,a,r){var P=e.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],B=e.policy.playbackStartPolicy.startMinReadaheadPolicy||[];e=Infinity;a=g.Z(a&&P.length>0?P:B);for(P=a.next();!P.done;P=a.next())P=P.value,B=P.minReadaheadMs||0,r<(P.minBandwidthBytesPerSec||0)||e>B&&(e=B);return e0&&(this.T=r.Cg)}; btj=function(e,a,r,P,B){if(!P.info.L){if(r.length===0)r.push(P);else{var h;(e=(h=r.pop())==null?void 0:g.Ox(h,P))?r.push(e):r.push(P)}return B}var c;(r=(c=r.pop())==null?void 0:g.Ox(c,P))||(r=P);if(r.info.T)return e.logger&&e.logger({incompleteSegment:r.info.Kb()}),B;P=e.w9(r);B=P.lW;P={clipId:P.clipId,formatId:P.formatId,startTimeMs:P.startTimeMs,durationMs:P.Rl,R$:B,gL:B};B=GyL(a,P.startTimeMs);if(h=r=B>=0?a[B]:null){h=P;var y=B;c=r.startTimeMs+r.durationMs;var T=h.startTimeMs+h.durationMs;if(h.startTimeMs- c>e.T)h=!1;else if(E$y(e,r.formatId,h.formatId))r.durationMs=Math.max(c,T)-r.startTimeMs,r.gL=Math.max(r.gL,h.gL),h=!0;else if(Math.abs(r.startTimeMs-h.startTimeMs)<=e.T)if(r.durationMs>h.durationMs+e.T){var X=r.formatId,f=r.R$;y=r.gL;r.formatId=h.formatId;r.durationMs=h.durationMs;r.R$=h.R$;r.gL=h.gL;h.formatId=X;h.startTimeMs=T;h.durationMs=c-T;h.R$=f;h.gL=y;h=!1}else r.formatId=h.formatId,h=!0;else c>h.startTimeMs&&(c>T&&(a.splice(y+1,0,{formatId:r.formatId,startTimeMs:T,durationMs:c-T,R$:h.gL+ 1,gL:r.gL}),e.logger&&e.logger({splitOldStart:(X=r.startTimeMs)==null?void 0:X.toFixed(3),splitOldEnd:c==null?void 0:c.toFixed(3),splitNewStart:(f=h.startTimeMs)==null?void 0:f.toFixed(3),splitNewEnd:T==null?void 0:T.toFixed(3)})),r.durationMs=h.startTimeMs-r.startTimeMs,r.gL=h.R$-1),h=!1}h?P=r:(B+=1,a.splice(B,0,P));X=0;for(f=B+1;f=T+r.T?r=!0:y+r.T=0?e:-e-2}; tjL=function(e,a){if(e.mL){var r=e.mL.HG();if(r.length!==0){if(e.B&&a){var P=e.B,B=P.info.C;!h0(r,B)&&P.info.Y>0&&(0,g.Ov)()-e.Z<5E3&&(e.logger&&e.logger({dend:P.info.Kb()}),r=wK3(r,B,B+.01))}e.policy.W8&&e.logger&&e.logger({cbri:""+e.S});P=[];for(var h=B=0;B=c){var f=Object.assign({},e.BO[h]),A=e.Qm.B.get(Sv(e.BO[h].formatId)),U=Math.max(T,c);c=A.index.I4(U+e.T/ 1E3);T=A.index.getStartTime(c);var C=c+ +(Math.abs(T-U)>e.T/1E3);U=C+e.L;C=A.index.getStartTime(C)*1E3;h!==e.S||a?(f.R$=U,f.startTimeMs=C):(e.logger&&e.logger({pEvict:"1",og:f.startTimeMs,adj:T*1E3}),f.R$=c+e.L,f.startTimeMs=T*1E3);c=void 0;T=((c=e.B)==null?void 0:c.info.duration)||11;h===e.S&&ye.T/1E3);c=T+e.L;A=A.index.JJ(T)*1E3;f.gL=c;f.durationMs=A-f.startTimeMs;f.R$<=f.gL&&P.push(f)}X=0&&aN(e.audioTrack,e.targetTime)>=0&&h?((e.videoTrack.C||e.audioTrack.C)&&e.loader.nf("iterativeSeeking",{status:"done",count:e.seekCount}),e.videoTrack.C=!1,e.audioTrack.C=!1):P&&g.kP(function(){if(e.S||!e.policy.bv)B$(e);else{var c=a.startTime,y=a.duration;if(!e.policy.C){var T=r?e.videoTrack.C:e.audioTrack.C,X=e.videoTrack.Z!==-1&&e.audioTrack.Z!==-1,f=e.targetTime>=c&&e.targetTime432E3&&iZq(e.Qm);e.T&&(B=e.T,e.T=0);g.kP(function(){e.policy.C||hH(e,B,102)}); e.loader.nf("initManifestlessSync",{st:B,ost:B+e.loader.t9(),a:e.audioTrack.Z,v:e.videoTrack.Z});e.B&&(e.B.resolve(B+.1),e.B=null);e.policy.C&&hH(e,B,102)}}}; no=function(e,a){var r=this;this.Lr=e;this.requestNumber=++LJy;this.S=this.now();this.Y=this.N=NaN;this.D=this.S;this.B=this.h9=this.C=0;this.Z=this.S;this.k$=this.oH=this.Cf=this.Te=this.J9=this.Eo=this.T=this.L=0;this.HW=this.isActive=!1;this.ID=this.rP=0;this.Ob={ieF:function(){return r.wu}}; this.e5=a.e5;this.snapshot=$N3(this.e5);this.policy=this.e5.T;this.hL=!!a.hL;this.fQ=a.fQ;this.P8=a.P8||0;this.jT=a.jT||0;a.eJ&&(this.Lf=new lP);var P;this.wu=(P=a.wu)!=null?P:!1;this.hL||JcJ(this.e5)}; Y$T=function(e){e.Cf=Math.max(e.Cf,e.C-e.J9);e.oH=Math.max(e.oH,e.D-e.Te);e.Eo=0}; yQ=function(e,a,r){DNl(e.e5,a);e.Lf&&(e.Lf.add(Math.ceil(a)-Math.ceil(e.D)),e.Lf.add(Math.max(0,Math.ceil(r/1024)-Math.ceil(e.C/1024))));var P=a-e.D,B=r-e.C;e.h9=B;e.k$=Math.max(e.k$,B/(P+.01)*1E3);e.D=a;e.C=r;e.Eo&&r>e.Eo&&Y$T(e)}; T2=function(e,a){e.url=a;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Xc=function(e,a){no.call(this,e,a);this.bv=this.sM=!1;this.e1=this.TQ=Infinity;this.XM=NaN;this.T$=!1;this.PW=NaN;this.dW=this.Uo=this.GQ=0;this.eE=a.eE||1;this.mT=a.mT||this.eE;this.AO=a.AO;this.lW=a.lW;this.K_=a.K_;w2N(this);this.T2(this.S);this.HA=(this.PW-this.S)/1E3}; p23=function(e){var a=e.Uo||e.GQ;return a?e.snapshot.delay+Math.min(e.jT,(e.Y-e.N)/1E3)+a:e.HA}; fo=function(e,a,r){if(!e.hL){a=Math.max(a,.01);var P=e.P8?Math.max(a,r/e.P8):a,B=e.e5.T.B;B&&(P=a,e.P8&&(P=Math.max(a,r/e.P8*B)));zA(e.e5,a,r,P)}}; itq=function(e){return(e.Z-e.S)/1E3}; w2N=function(e){e.XM=e.S+e.snapshot.delay*1E3;e.T$=!1}; AH=function(e,a){if(e.AO&&e.lW!==void 0&&e.K_!==void 0){var r=Math,P=r.min,B=e.TQ;var h=e.AO;var c=e.S;if(zfz(h,e.lW))h=a;else{var y=0;h.gD&&(y=.2);h=c+(h.jT+y)*1E3}e.TQ=P.call(r,B,h);r=Math;P=r.min;B=e.e1;h=e.AO;c=e.S;y=Np3(h,e.lW,e.K_);y!==2&&(a=y?a:c+h.jT*1E3,h.gD&&(a+=h.jT*1E3));e.e1=P.call(r,B,a);e.TQ<=e.S?w2N(e):(e.XM=e.TQ,e.T$=!0)}}; x$I=function(e,a){if(a+1<=e.totalLength){var r=y$(e,a);r=r<128?1:r<192?2:r<224?3:r<240?4:5}else r=0;if(r<1||!(a+r<=e.totalLength))return[-1,a];if(r===1)e=y$(e,a++);else if(r===2)r=y$(e,a++),e=y$(e,a++),e=(r&63)+64*e;else if(r===3){r=y$(e,a++);var P=y$(e,a++);e=y$(e,a++);e=(r&31)+32*(P+256*e)}else if(r===4){r=y$(e,a++);P=y$(e,a++);var B=y$(e,a++);e=y$(e,a++);e=(r&15)+16*(P+256*(B+256*e))}else r=a+1,e.focus(r),c4(e,r,4)?e=zPL(e).getUint32(r-e.B,!0):(P=y$(e,r+2)+256*y$(e,r+3),e=y$(e,r)+256*(y$(e,r+1)+ 256*P)),a+=5;return[e,a]}; UR=function(e){this.Lr=e;this.S=new rH}; Co=function(e,a){this.info=e;this.callback=a;this.state=1;this.NJ=this.UT=!1;this.WV=null}; I9N=function(e){return g.tK(e.info.Vm,function(a){return a.type===3})}; G2=function(e,a,r,P){var B=this;P=P===void 0?{}:P;this.policy=a;this.Lr=r;this.status=0;this.S=new rH;this.T=0;this.wP=this.L=this.B=!1;this.xhr=new XMLHttpRequest;this.xhr.open(P.method||"GET",e);if(P.headers)for(e=P.headers,a=g.Z(Object.keys(e)),r=a.next();!r.done;r=a.next())r=r.value,this.xhr.setRequestHeader(r,e[r]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return B.kA()}; this.xhr.onload=function(){return B.onDone()}; this.xhr.onerror=function(){return B.onError()}; this.xhr.fetch(function(h){B.S.append(h);B.T+=h.length;h=(0,g.Ov)();B.Lr.vS(h,B.T)},function(){},P.body||null)}; HtL=function(e,a){this.T=(new TextEncoder).encode(e);this.S=(new TextEncoder).encode(a)}; qEq=function(e,a){var r;return g.Y(function(P){if(!a)return P.return(a);r=new g.yP(e.T);return P.return(r.encrypt(a,e.S))})}; mKy=function(e,a){var r;return g.Y(function(P){if(P.T==1){if(!a)return P.return(a);r=new g.yP(e.T);return g.l(P,r.decrypt(a,e.S),2)}return P.return(P.S)})}; v$4=function(e,a){var r=this;this.S=e;this.Lr=a;this.loaded=this.status=0;this.error="";e=FH(this.S.get("range")||"");if(!e)throw Error("bad range");this.range=e;this.T=new rH;q$N(this).then(function(){r.Lr.uq()},function(P){r.error=""+P||"unknown_err"; r.Lr.uq()})}; q$N=function(e){var a,r,P,B,h,c,y,T,X,f,A,U,C,G,O;return g.Y(function(d){if(d.T==1){e.status=200;a=e.S.get("docid");r=QC(e.S.get("fmtid")||"");P=e.S.get("lmt")||"0";B=+(e.S.get("csz")||0);if(!a||!r||!B)throw Error("Invalid local URL");e.S.get("ck")&&e.S.get("civ")&&(h=new HtL(e.S.get("ck"),e.S.get("civ")));c=e.range;y=Math.floor(c.start/B);T=Math.floor(c.end/B);X=y}if(d.T!=5)return X<=T?g.l(d,Fk3(a,r,P,X,h),5):d.Oo(0);f=d.S;if(f===void 0)throw Error("invariant: data is undefined");A=X*B;U=(X+1)*B; C=Math.max(0,c.start-A);G=Math.min(c.end+1,U)-(C+A);O=new Uint8Array(f.buffer,C,G);e.T.append(O);e.loaded+=G;e.loaded=400?(e.lastError="net.badstatus",!0):(B===void 0?0:B)?(e.lastError="ump.spsrejectfailure",!0):r||P!==void 0&&P?!1:(e.lastError=a===204?"net.nocontent":"net.connect",!0)}; DZ=function(e,a){if(e.policy.Fi)return!1;var r=a.getResponseHeader("content-type"),P=a.g9();e=!P||P<=e.policy.TL;return(!a.y4()||!r||r.indexOf("text/plain")!==-1)&&e}; KJq=function(e,a){var r="";a=a.gJ();a.totalLength<=e.policy.TL&&(r=uON(e,og(a)));return r}; uON=function(e,a){var r=XM(a);return xl(r)?(e.logger.debug(function(){return"Redirecting to "+r}),r):""}; ZZ=function(e){return xk(e.B,Sj(e.WZ.YL))}; erl=function(e){var a=e.timing.Sr();a.shost=Sj(e.WZ.YL);return a}; adl=function(e,a){return(e==null?void 0:e.maxWidth)>(a==null?void 0:a.maxWidth)||(e==null?void 0:e.maxHeight)>(a==null?void 0:a.maxHeight)}; rMl=function(e,a){for(var r=g.Z(a.keys()),P=r.next();!P.done;P=r.next())if(P=a.get(P.value),P.length!==0){g.Sa(P,function(y,T){return T.maxFramerate-y.maxFramerate}); for(var B=[P[0]],h=0,c=1;ce.S||r.push(P)}return r}; VQ=function(e,a,r){var P=hrN[e]||[];r.X("html5_shorts_onesie_mismatched_fix")&&(P=cMl[e]||[]);a.push.apply(a,g.UO(P));r.X("html5_early_media_for_drm")&&a.push.apply(a,g.UO(okN[e]||[]))}; AMq=function(e,a){var r=g.WE(e),P=e.G(),B=P.C;P=P.X("html5_shorts_onesie_mismatched_fix");var h=e.z0();if(P){if(!B.T){if(h&&$A)return $A;if(QQ)return QQ}}else if(QQ&&!B.T)return QQ;var c=[],y=[],T={},X=W$.concat(nk4);P&&(X=W$.concat(yMj));e.X("html5_early_media_for_drm")&&(X=X.concat(TSO),e.X("allow_vp9_1080p_mq_enc")&&X.push(X54));var f=[].concat(g.UO(fdJ));e.X("html5_iamf_audio_onesie_fmt")&&f.push(["773"]);X=g.Z(X);for(var A=X.next();!A.done;A=X.next()){var U=!1;A=g.Z(A.value);for(var C=A.next();!C.done;C= A.next()){C=C.value;var G=Wb(C,h&&P);if(G&&G.video&&!(vH(G)&&!r.Eo&&G.video.qualityOrdinal>r.K8)){var O=g.eS(e.G().experiments,"html5_drm_byterate_soft_cap");O>0&&L9q(G)&&G.NF>O||(U?(c.push(C),VQ(C,c,e)):(G=wp(r,G,B),G===!0?(U=!0,c.push(C),VQ(C,c,e)):T[C]=G))}}}f=g.Z(f);for(X=f.next();!X.done;X=f.next())for(X=g.Z(X.value),U=X.next();!U.done;U=X.next())if(U=U.value,(A=eBL(U))&&A.audio&&(e.X("html5_onesie_51_audio")||!Sl(A)&&!sd(A)))if(A=wp(r,A,B),A===!0){y.push(U);VQ(U,y,e);break}else T[U]=A;if(!e.X("html5_enable_audio_quality_setting"))for(e= g.Z(["141","774"]),f=e.next();!f.done;f=e.next())f=f.value,y.includes(f)&&(g.k9(y,f),T[f]="blkhqa");r.T&&a("orfmts",T);if(P)return B.T&&(B.T=!1,$A=QQ=void 0),h?$A={video:c,audio:y}:QQ={video:c,audio:y};QQ={video:c,audio:y};B.T=!1;return QQ}; g.GZq=function(e,a,r){var P=r.C,B=[],h=[],c=r.X("html5_shorts_onesie_mismatched_fix");e=e.z0();var y=W$.concat(nk4);c&&(y=W$.concat(yMj));r.X("html5_early_media_for_drm")&&(y=y.concat(TSO),r.X("allow_vp9_1080p_mq_enc")&&y.push(X54));var T=[].concat(g.UO(fdJ));r.X("html5_iamf_audio_onesie_fmt")&&T.push(["773"]);y=g.Z(y);for(var X=y.next();!X.done;X=y.next()){X=g.Z(X.value);for(var f=X.next();!f.done;f=X.next()){f=f.value;var A=Wb(f,e&&c);if(A&&A.video){var U=g.eS(r.experiments,"html5_drm_byterate_soft_cap"); if(!(U>0&&L9q(A)&&A.NF>U)&&wp(a,A,P)===!0){B.push({videoCodec:UEO[NW[f]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}c=g.Z(T);for(e=c.next();!e.done;e=c.next())for(e=g.Z(e.value),T=e.next();!T.done;T=e.next())if(T=T.value,(y=eBL(T))&&y.audio&&(r.X("html5_onesie_51_audio")||!Sl(y)&&!sd(y))&&wp(a,y,P)===!0){h.push({audioCodec:C_l[NW[T]],numChannels:y.audio.numChannels});break}return{videoFormatCapabilities:B,audioFormatCapabilities:h}}; tvz=function(e){var a,r={},P=e.uW,B=e.gP,h=P.getVideoData(),c=Ao(0),y=P.getVisibilityState(),T;if((T=e.Md)==null?0:T.sQ)r.Rc=B.Rc;c&&(r.sJ=c,r.lastManualDirection=MSy(),c=vON()||0,c>0&&(c=(B.X("html5_use_date_now_for_local_storage")?Date.now():(0,g.Ov)())-c,B.X("html5_use_date_now_for_local_storage")?c>0&&(r.timeSinceLastManualFormatSelectionMs=c):r.timeSinceLastManualFormatSelectionMs=c));c=B.X("html5_use_streamer_bandwidth_for_low_latency_live")&&h.isLowLatencyLiveStream;if(B.schedule.HW&&!c){var X; c=B.X("html5_disable_bandwidth_cofactors_for_sabr_live")?!((X=e.Md)==null||!X.NO):!1;r.E4=vM(B.schedule,!c)}c=g.wE.medium;T=Math.floor(c*16/9);(X=h.z0())||(h.S&&h.B&&h.B.videoInfos.length!==0?(X=h.B.videoInfos[0],X=!!X.video&&X.video.width0?{authorizedFormats:e.authorizedFormats}:{authorizedFormats:a};e.sabrLicenseConstraint&&(r.H6.sabrLicenseConstraint=e.sabrLicenseConstraint);if(B.X("html5_onesie_media_capabilities")||B.X("html5_enable_server_format_filter"))r.NU= 3;B.X("html5_onesie_audio_only_playback")&&Do(h)&&(r.NU=1);var W;((W=e.Md)==null?0:W.QH)&&e.e$&&(r.NU=r.NU===void 0?7:r.NU|4);W=h.py?h.py:g.WE(h);B.X("html5_onesie_media_capabilities")&&(r.mediaCapabilities=g.GZq(h,W,B));var V;if((V=e.Md)==null?0:l3(V)){A=B.C;V=[];a=[];U=new Map;C=Array.from(A.S.values());C=g.Z(C);for(G=C.next();!G.done;G=C.next())O=G.value,O.sU?a.push({audioCodec:C_l[O.vW],numChannels:O.numChannels,spatialCapabilityBitmask:EkL[O.vW]}):(d=UEO[O.vW],G={videoCodec:d,maxWidth:O.maxWidth|| 0,maxHeight:O.maxHeight||0,maxFramerate:O.maxFramerate||0,is10BitSupported:O.Mi||!1},O.maxBitrateBps&&(G.maxBitrateBps=O.maxBitrateBps,y=Wb(O.itag),X=void 0,((X=y)==null?0:X.video)&&wp(W,y,A)===!0&&(y=y.NF*8,y>G.maxBitrateBps&&(G.maxBitrateBps=y))),O=d+"_"+O.Mi,d=U.get(O)||[],d.push(G),U.set(O,d));V=rMl(V,U);A={};B.X("html5_ssff_denylist_opus_low")&&(A={itagDenylist:[249,350]});r.mediaCapabilities={videoFormatCapabilities:V,audioFormatCapabilities:a,hdrModeBitmask:3,perPlaybackAttributes:A}}var L; if((L=e.Md)==null?0:L.S){r.Hj=W.Hj;var z;r.K8=(z=e.Md)==null?void 0:z.K8}B.t1&&(r.SD=B.t1);r.Ff=e.BY;r.CA=e.CA;r.X8=e.X8;r.nN=e.nN;e.qh&&(r.z8$=(0,g.Ov)()-e.qh);e.isPrefetch&&B.X("html5_report_prefetch_requests")&&(r.isPrefetch=!0);GA||(r.Off=!0);L=I1(B.schedule)*1E3;L>0&&(r.hv=L);var q;((q=e.Md)==null?0:q.tI)&&e.Iv&&e.Iv0?M:B.schedule.interruptions[0]||0;var m;if((m=e.Md)==null?0:m.sM)r.rR=e.rR;B.PW&&(r.audioTrackId=B.PW);yT(h)&&!r.audioTrackId&&(B.X("html5_fill_default_mosaic_audio_track_id")||(e=M7L(h),r.audioTrackId=e),h==null||h.nf("misstrkchg",{"default":r.audioTrackId}));if(h=Vqy())r.detailedNetworkType=bWI[h]||bWI.other;B.X("html5_enable_voice_boost")&&(r.BEQ=B.E8);return r}; Lo=function(e,a,r,P,B,h,c){var y={};a&&(y.H0=a);if(!e)return y;y.playbackCookie=r==null?void 0:r.playbackCookie;B&&(y.OZ=B);y.Vd=[];y.Hx=[];if(c==null?0:c.size)for(a=g.Z(c.values()),r=a.next();!r.done;r=a.next())y.Hx.push(r.value);if(e.sabrContextUpdates.size>0)for(a=g.Z(e.sabrContextUpdates.values()),r=a.next();!r.done;r=a.next())gky(y,r.value,P);QZ(e)&&h&&gky(y,h,P);e.T7&&(y.oKF=e.T7);P=e.G().S;y.clientInfo={clientName:ZWj[P.c.toUpperCase()]||0};P.cbrand&&(y.clientInfo.deviceMake=P.cbrand);P.cmodel&& (y.clientInfo.deviceModel=P.cmodel);P.cver&&(y.clientInfo.clientVersion=P.cver);P.cos&&(y.clientInfo.osName=P.cos);P.cosver&&(y.clientInfo.osVersion=P.cosver);P=e.G();P.X("html5_sabr_enable_server_xtag_selection")&&P.RO&&(y.clientInfo.hl=P.RO);e.aG&&(y.aG=e.aG);return y}; gky=function(e,a,r){var P=a.type||0;(r==null?0:r.has(P))?e.Hx.push(a):e.Vd.push(P)}; Kw=function(e,a,r,P,B,h){var c=h===void 0?{}:h;var y=c.pL===void 0?[]:c.pL;var T=c.TZ===void 0?!1:c.TZ;var X=c.kM===void 0?0:c.kM;var f=c.poToken===void 0?"":c.poToken;var A=c.fU===void 0?void 0:c.fU;var U=c.KL===void 0?"":c.KL;var C=c.c7===void 0?0:c.c7;var G=c.XG===void 0?new Uint8Array(0):c.XG;var O=c.Wp===void 0?!1:c.Wp;h=c.gx===void 0?0:c.gx;c=c.H0===void 0?void 0:c.H0;Co.call(this,a,B);var d=this;this.policy=e;this.logger=new g.bl("dash/request");this.p9=this.xK=0;this.m9=!1;this.Uj=this.r0= null;this.Ra=!1;this.XG=this.c7=null;this.z9=this.qB=!1;this.Y0=null;this.gx=this.Ec=0;this.J2=!1;this.Ob={dg:function(V){d.dg(V)}, XSM:function(){return d.WV}, RBQ:function(V){d.WV=V}, pJQ:function(V){d.xK=V}, Scf:function(V){d.Ub.lastError=V}, I3:function(){return d.xhr}}; this.timing=new Xc(this,r);this.TZ=T;this.c7=C;this.XG=G;this.WZ=g.nz(this.info,this.policy,P);this.WZ.set("rn",this.wc().toString());this.WZ.set("rbuf",(X*1E3).toFixed().toString());this.TZ&&this.WZ.set("smb","1");this.policy.by&&f&&this.WZ.set("pot",f);U&&this.WZ.set("bbs",U);this.policy.useUmp&&!s$(this.WZ.YL)&&(this.NQ=new UR(this),this.WZ.set("ump","1"),this.WZ.set("srfvp","1"));if(e=this.policy.Gf?this.policy.WQ&&!isNaN(this.info.K_)&&this.info.K_>this.policy.pz?!1:!0:!1)a=null,this.policy.sL&& this.policy.EQ?a=[1]:O&&(a=[]),a!=null&&(this.policy.LH&&a.push(2),this.WZ.set("defsel",a.join(",")));this.Ub=new go(this,this.policy,this.WZ,this.info.Kr,this.timing,this.logger,P,A);this.pL=y||null;this.NJ=OWL(this);m$j(this.Ub);P=void 0;if(this.policy.y_||this.NQ||this.policy.Cf)P={method:"POST"},y=(0,g.YA)([120,0]),A={},this.policy.nC&&c&&(c=Lo(void 0,c),A.b0=c),this.policy.TF&&this.XG&&(A.videoPlaybackUstreamerConfig=this.XG),this.policy.Cf&&(c=this.info.L)&&Object.assign(A,c),Object.keys(A).length> 0?P.body=g.S_(A,g.WH):P.body=y;if(this.c7&&this.XG){this.WZ.set("iwts","1");P={method:"POST"};c={nN:this.c7*1E3};var W;y=(W=this.info.L)==null?void 0:W.GT;W=g.S_({oR:c,GT:y||void 0,videoPlaybackUstreamerConfig:this.XG},g.WH);P.body=W}try{this.xhr=ER(this.WZ,this.policy.D,this.timing,e,P),this.Ub.T.start(),h&&(this.Ti=new g.vP(this.eG,h,this),this.Ti.start(h+(this.timing.e5.Y.rL()||0)*1E3)),this.policy.fg&&T2(this.timing,this.ju()),this.logger.debug(function(){return"Sent, itag="+d.WZ.get("itag")+ " seg="+d.info.Vm[0].lW+" range="+d.WZ.get("range")+" time="+Math.round(d.info.Vm[0].C)+"-"+Math.round(g.GV(d.info.Vm).Z)+" rtp="+(d.timing.Hh()-Date.now()).toFixed(0)}),g.kP(function(){})}catch(V){kZ3(this,V,!0)}}; OWL=function(e){if(!(ol(e.info)&&e.info.wu()&&e.policy.sx&&e.pL)||e.info.Kr.B>=2||Ao()>0||!eJ4())return!1;var a=e.WZ.get("aitags");if(!a)return!1;a=QC(a).split(",");for(var r=[],P=g.Z(e.pL),B=P.next();!B.done;B=P.next())B=B.value,g.ZB(a,B)&&r.push(B);if(!r.length)return!1;e.WZ.set("altitags",g.VC(r.join(",")));return!0}; kZ3=function(e,a,r){r=r===void 0?!1:r;g.D6(a);e.Ub.lastError="player.exception";e.errorMessage=a.name+"_"+a.message;r?g.kP(function(){kA(e.Ub)}):kA(e.Ub)}; dEN=function(e,a){e.timing.HW=!0;e.xhr.y4()&&e.timing.Dr();if(e.policy.kh){var r;(r=e.Ti)==null||r.stop()}tH(e.WV,a,!1)}; JMN=function(e,a){e.info=a;if(e.WV){var r=e.WV;a=a.Vm;(a.length!==r.Vm.length||a.length0){a=g.Z(a.Vm);for(var r=a.next();!r.done;r=a.next()){var P=void 0;e+=((P=r.value.range)==null?void 0:P.length)||0}return e}if(a.Q6.length>0)for(r=g.Z(a.Q6),P=r.next();!P.done;P=r.next())e+=P.value.E3||0;return e+a.Ze}; H$=function(e,a){if(Na){var r=0;e=e.PO.get(a);if(e==null||!e.f8)return 0;e=g.Z(e.f8.values());for(a=e.next();!a.done;a=e.next())r+=a.value.data.totalLength;return r}return((r=e.PO.get(a))==null?void 0:r.qf.totalLength)||0}; qa=function(e,a){e=e.PO.get(a);if(Na){if(e==null||!e.I1)return!1;a=e.f8.size>0;return e.Bm.length>0||a}return!(e==null||!e.I1)&&!(e==null||!e.qf.totalLength)}; ldJ=function(e,a){var r=e.PO.get(a),P=WHj(e,a),B=!P&&!!r.bytesReceived;if(Na){var h;if((h=e.Qm)==null?0:h.QX){e=g.Z(r.f8.values());for(a=e.next();!a.done;a=e.next())if(!a.value.A2)return!1;return B}}else if(h=e.h2(a),B&&e.S&&h!==void 0)return h;return(B||r.bytesReceived===P)&&r.uO+H$(e,a)===r.bytesReceived}; LH4=function(e,a,r){e.PO.set(a,{qf:new rH,uO:0,bytesReceived:0,Ze:0,r$:!1,iQ:!1,h2:!1,sU:r,jn:[],Vm:[],Q6:[],I1:!1,f8:new Map,n6:new Map,Bm:[]});e.logger.debug(function(){return"[initStream] formatId: "+a})}; Ykj=function(e,a,r,P){r.Vm.push.apply(r.Vm,g.UO(P));if(Na){r.n6.has(a)||r.n6.set(a,[]);var B;(B=r.n6.get(a)).push.apply(B,g.UO(P))}else if(r.WV)for(e=g.Z(P),a=e.next();!a.done;a=e.next())r.WV.Vm.push(a.value);else{r.WV=new b3(e.Md,[].concat(g.UO(r.Vm)));var h;((h=e.Md)==null?0:h.Rs)&&g.x(e,r.WV)}}; w5j=function(e,a,r){var P,B=(P=e.Qm)==null?void 0:P.B.get(a);if(!B)return[];if(r.GU){var h;return((h=B.Z1(0,r.clipId))==null?void 0:h.Vm)||[]}if(B.fW()){var c=r.startMs,y=r.durationMs;P=1E3;var T;if(((T=e.Md)==null?0:T.S)&&r.timeRange){var X;c=(X=r.timeRange.startTicks)!=null?X:-1;var f;y=(f=r.timeRange.V$)!=null?f:-1;var A;P=(A=r.timeRange.timescale)!=null?A:-1}if(r.Xt<0||r.JB<0||y<0||c<0||r.E3<0||P<0)return IN(e,a),[];e=ME(r.Xt,r.E3);a=r.jj||0;return[new u_(3,B,e,"makeSliceInfosMediaBytes",r.JB- 1,c/P,y/P,a,e.length-a,void 0,r.yl,r.clipId)]}if(r.JB<0)return IN(e,a),[];var U;return((U=e.Qm)==null?0:U.QX)?(a=B.qc,T=a*B.info.NF,X=r.jj,((y=e.Md)==null?0:y.Up)&&r.timeRange&&!X&&(c=r.timeRange.startTicks/r.timeRange.timescale),[new u_(3,B,void 0,"makeSliceInfosMediaBytes",r.JB,c,a,X,T,!0,r.yl,r.clipId)]):[]}; p5O=function(e,a,r){e.Qm=a;e.Md=r;a=g.Z(e.PO);for(r=a.next();!r.done;r=a.next()){var P=g.Z(r.value);r=P.next().value;P=P.next().value;for(var B=g.Z(P.jn),h=B.next();!h.done;h=B.next()){h=h.value;var c=w5j(e,r,h);Ykj(e,h.Nj,P,c)}}}; v$=function(e,a,r,P){e.logger.debug(function(){return"[addStreamData] formatId: "+r+",headerId: "+a+" bytes: "+P.totalLength}); (e=e.PO.get(r))&&!e.iQ&&(Na?(e.f8.has(a)||e.f8.set(a,{data:new rH,dF:0,A2:!1}),P4(e.f8.get(a).data,P)):P4(e.qf,P),e.bytesReceived+=P.totalLength,e.r$=!0)}; xA=function(e,a){e.logger.debug(function(){return"[closeStream] formatId: "+a}); var r=e.PO.get(a);if(r&&!r.iQ){r.iQ=!0;if(r.onProgress)r.onProgress();iWj(e)&&e.L.Js()}}; iWj=function(e){e=g.Z(e.PO.values());for(var a=e.next();!a.done;a=e.next())if(!a.value.iQ)return!1;return!0}; zr4=function(e){Na=e}; RN=function(e,a,r,P,B,h,c){g.N.call(this);this.policy=e;this.info=a;this.Qm=r;this.Lr=B;this.logger=new g.bl("sabr");this.NQ=new UR(this);this.j9=new i3(this);this.oU=new z2(this);this.state=1;this.Uq=!1;this.gA=0;this.clipId="";this.F6=-1;this.Eq=0;this.M1=-1;this.J2=this.hf=!1;this.Hd=0;this.kQ=!1;this.policy.pC?this.Su=new wo(this,h):this.Su=new Xc(this,h);this.WZ=this.policy.sM?a.kd:NSy(a,this.policy,P);this.WZ.set("rn",""+this.wc());this.WZ.set("alr","yes");p5O(this.oU,r,e);this.Ub=new go(this, this.policy,this.WZ,a.Kr,this.Su,this.logger,P,c,this.policy.enableServerDrivenRequestCancellation);m$j(this.Ub);var y;if((y=this.policy)==null?0:y.Rs)g.x(this,this.oU),g.x(this,this.Ub);e=a.T;a={method:"POST",body:e};e&&(this.Eq=e.length);try{this.xhr=ER(this.WZ,this.policy.D,this.Su,GA,a),this.policy.fg&&T2(this.Su,this.ju()),this.Ub.T.start()}catch(T){g.VJ(T)}}; xEO=function(e){e.policy.qT&&e.qa&&!e.kQ?e.kQ=!0:e.Su.Dr()}; IdN=function(e,a){var r=-1,P=-1,B=-1,h;if((h=e.BH)==null?0:h.items)for(e=g.Z(e.BH.items),h=e.next();!h.done;h=e.next())h=h.value,a=y,T=e.Qm.isManifestless,c){var X;if(((X=e.S)==null?void 0:X.Eg.event)==="predictStart"&&e.S.lWe.Z&&(e.Z=NaN,e.D=NaN);e.S&&e.S.lW===a?PlJ(e,a,r,e.S,B):e.T===1&&Fc(e,5,"noad")}; BjL=function(e,a,r,P,B){P.PJ?Fc(e,4,"cue"):(e.Z=a,e.D=r,e.nf("sdai",{joinad:e.T,sg:e.Z,st:e.D.toFixed(3)}),e.N=Date.now(),Fc(e,2,e.T===3?"staftpred":"join"),B.LF(P.Eg))}; PlJ=function(e,a,r,P,B){if(B&&P){var h=P.Eg,c=B.qz(h);h.event==="predictStart"&&(e.oH=a);e.nf("sdai",{onqevt:h.event,sq:a,mt:r,gab:c,cst:h.startSecs,cueid:e.policy.G7&&(c||h.event==="start")?h.identifier:void 0},!0);if(c)h.event!=="predictStart"?(h.event==="start"&&e.oH===a-1&&e.nf("sdai",{gabonstart:a}),BjL(e,a,r,P,B)):e.policy.BV?Fc(e,3,"predict"):(a+=Math.max(Math.ceil(-h.S/5E3),1),h=Math.floor(r-h.S/1E3),e.policy.T?e.C=h:e.L=a,e.nf("sdai",{onpred:r,estsq:a,estmt:h.toFixed(3)}),Ma(e.loader,h,h, a),e.N=Date.now(),Fc(e,3,"predict"),B.LF(P.Eg));else if(e.T===1){var y;((y=e.B)==null?0:y.Ss(r))?(Ma(e.loader,r,r,a),Fc(e,4,"sk2head")):Fc(e,5,"nogab")}else h.event==="predictStart"?e.policy.T&&e.C>0?(r=Math.floor(r-h.S/1E3),e.C!==r&&e.nf("sdai",{updateSt:r,old:e.C}),e.C=r):e.L>0&&(r=a+Math.max(Math.ceil(-h.S/5E3),1),e.L!==r&&(e.nf("sdai",{updateSt:r,old:e.L}),e.L=r)):e.policy.BV&&e.T===3&&BjL(e,a,r,P,B)}else e.nf("sdai",{nulldec:1,sq:a,mt:r.toFixed(3),evt:(P==null?void 0:(h=P.Eg)==null?void 0:h.event)|| "none"})}; c2L=function(e,a,r){if(e.policy.Sd&&e.policy.T)return!(e.T===1||e.T===2||!e.policy.BV&&e.T===3&&r>=e.L);if(e.T===1||e.T===2)return!1;if(e.T!==0&&a===e.audioTrack){if(e.policy.T)return heT(e.videoTrack,r)||heT(e.videoTrack,r+1);e=j6(e.videoTrack);if(r>(e?e.lW:-1))return!1}return!0}; u3=function(e,a,r){return(r<0||r===e.Z)&&!isNaN(e.D)?e.D:a}; KHj=function(e,a){if(e.S){var r=e.S.Eg.Ug-(a.startTime+e.Y-e.S.Eg.startSecs);r<=0||(r=new oO(e.S.Eg.startSecs-(isNaN(e.Y)?0:e.Y),r,e.S.Eg.context,e.S.Eg.identifier,"stop",e.S.Eg.S+a.duration*1E3),e.nf("cuepointdiscontinuity",{segNum:a.lW}),mz(e,r,a.lW))}}; Fc=function(e,a,r){e.T!==a&&(e.nf("sdai",{setsst:a,old:e.T,r:r}),e.T=a)}; Ko=function(e,a,r,P){(P===void 0?0:P)?Fc(e,1,"seek"):a>0&&Math.abs(a-r)>=5&&e.T===4&&Fc(e,5,"sk2t")}; oEz=function(e){this.nf=e;this.S="";this.T=new Map}; nEO=function(e,a,r,P){if(e.T.has(a.identifier)){var B=e.T.get(a.identifier);P=ec(B.event||"unknown");ec(a.event)>P&&(B.startTimeSecs=a.startSecs,B.Ug=a.Ug,B.event=a.event,P===ec("predictStart")&&(B.HY=Date.now()))}else B={event:a.event,startTimeSecs:a.startSecs,Ug:a.Ug,N$:[]},P&&(P=P.qz(a),B.HY=Date.now(),P?B.AI=5:(B.AI=2,B.CH="")),e.T.set(a.identifier,B);e.B&&r>-1&&r1E4?(e.AI=1,!1):!0}; ec=function(e){switch(e){case "predictStart":return 1;case "start":return 2;case "continue":return 3;case "stop":return 4;default:return 0}}; TjT=function(e){switch(e){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; ax=function(e,a,r){this.audio=e;this.video=a;this.reason=r}; rt=function(e,a,r){this.S=e;this.reason=a;this.token=r;this.videoId=void 0}; Pu=function(e,a,r){g.N.call(this);this.policy=e;this.L=a;this.nf=r;this.B=new Map;this.C=0;this.Z=!1;this.S="";this.T=!1}; Bu=function(e,a,r){if(r===void 0?0:r)e.Z=!0;++e.C;r=6E4*Math.pow(2,e.C);r=(0,g.Ov)()+r;e.B.set(a.info.id,r)}; hr=function(e){for(var a=g.Z(e.B.entries()),r=a.next();!r.done;r=a.next()){var P=g.Z(r.value);r=P.next().value;P=P.next().value;P<(0,g.Ov)()&&e.B.delete(r)}return e.B}; XOJ=function(e){return e.Z&&hr(e).size>0}; cu=function(e,a){e.S!==a&&(e.S=a,e.T=!0)}; f5q=function(e,a){var r;a&&(r=g.tw(e.L.S,function(B){return B.id===a})); if(!r&&(r=g.tw(e.L.S,function(B){var h;return!((h=B.yX)==null||!h.isDefault)}),a)){var P; e.nf("iaf",{id:a,sid:(P=r)==null?void 0:P.id})}return r}; nP=function(e,a,r,P,B,h){var c=this;h=h===void 0?[]:h;this.loader=e;this.TQ=a;this.policy=r;this.Qm=P;this.Z=B;this.k$=h;this.logger=new g.bl("dash/abr");this.S=A3;this.B=this.D=null;this.N=-1;this.e1=!1;this.nextVideo=this.T=null;this.L=[];this.Uo=new Set;this.Cf={};this.PW=new Y1(1);this.Y=0;this.GQ=this.oH=this.HW=!1;this.Eo=0;this.ym=!1;this.Lf=new Set;this.XM=!1;this.Ob={fG:function(){ox(c)}}; this.C=new Pu(this.policy,B,function(y,T){c.loader.nf(y,T)})}; EEI=function(e,a,r){y_(e,a);a=f5q(e.C,r);r||a||(a=A24(e));a=a||e.Z.S[0];e.T=e.Qm.S[a.id];ox(e);e.D=e.T;Uzq(e);Cll(e);e.B=e.nextVideo;e.D=e.T;return GaL(e)}; gEO=function(e,a){if(bzL(e,a))return null;if(a.reason==="m"&&a.isLocked())return e.logger.debug(function(){return"User sets constraint to: "+Qz(a)}),y_(e,a),e.Y=e.L.length-1,ox(e),Tj(e),e.oH=e.oH||e.B!==e.nextVideo,e.B=e.nextVideo,new ax(e.T,e.B,a.reason); a.reason==="r"&&(e.N=-1);y_(e,a);Tj(e);if(a.reason==="r"&&e.nextVideo===e.B)return new ax(e.T,e.nextVideo,a.reason);tfj(e);return null}; Zzj=function(e,a,r){e.T=e.Qm.S[a];e.D=e.T;return new ax(e.D,e.B,r?"t":"m")}; Ozz=function(e,a){if(a.info.video){if(e.B!==a)return e.B=a,GaL(e)}else e.GQ=e.D!==a,e.D=a;return null}; kaz=function(e,a){if(a.S.info.video&&a.L){var r=(a.T+a.B)/a.duration,P=a.S.info.NF;r&&P&&(e.PW.dT(1,r/P),e.policy.B&&r/P>1.5&&e.loader.nf("overshoot",{sq:a.lW,br:r,max:P}))}}; Xo=function(e,a,r){Bu(e.C,a,r===void 0?!1:r);e.N=-1;y_(e,e.S)}; dzz=function(e,a){return new ax(e.D,e.B,a||e.S.reason)}; tfj=function(e){if(e.B&&e.nextVideo&&fP(e,e.B.info)e.policy.K8,y=B<=e.policy.K8?vH(P):IH(P);if(!h||c||y)r[B]=P}return r}; y_=function(e,a){e.S=a;var r=e.Z.videoInfos;if(!e.S.isLocked()){var P=(0,g.Ov)();r=g.QX(r,function(y){if(y.NF>this.policy.NF)return!1;var T=this.Qm.S[y.id];return hr(this.C).get(y.id)>P?!1:T.Kr.B>4||T.Z>4?(this.logger.debug(function(){return"Remove "+aV(y)+"; 4 load failures"}),!1):this.Lf.has(+y.itag)?!1:!0},e); XOJ(e.C)&&(r=g.QX(r,function(y){return y.video.width<=854&&y.video.height<=480}))}r.length||(r=e.Z.videoInfos); var B=r;e.policy.A6&&(B=Dzl(e,B,a));B=g.QX(B,a.L,a);if(e.S.isLocked()&&e.C.S){var h=g.tw(r,function(y){return y.id===e.C.S}); h?B=[h]:cu(e.C,"")}e.policy.A6||(B=Dzl(e,B,a));B.length||(B=[r[0]]);B.sort(function(y,T){return fP(e,y)-fP(e,T)}); a={};for(r=1;ra.Re.video.width?(g.OG(B,r),r--):fP(e,a.Ae)*e.policy.Y>fP(e,a.Re)&&(g.OG(B,r-1),r--);var c=B[B.length-1];e.ym=!!e.B&&!!e.B.info&&e.B.info.vW!==c.vW;e.logger.debug(function(){return"Constraint: "+Qz(e.S)+", "+B.length+" fmts selectable, max selectable fmt: "+aV(c)}); e.L=B;e.Uo.clear();a=!1;for(r=0;r=1080&&(a=!0);Vfz(e.policy,c,e.Qm.QX)}; Dzl=function(e,a,r){var P=r.reason==="m"||r.reason==="s";e.policy.BC&&Ar&&g.Uv&&(!P||r.S<1080)&&(a=a.filter(function(X){return X.video&&(!X.T||X.T.powerEfficient)})); if(a.length>0)if(UD()){var B=J2O(e,a);a=a.filter(function(X){return!!X&&!!X.video&&X.vW===B[X.video.qualityOrdinal].vW})}else{var h,c,y=(h=a[0])==null?void 0:(c=h.video)==null?void 0:c.qualityOrdinal; if(y){r=a.filter(function(X){return!!X&&!!X.video&&X.video.qualityOrdinal===y}); var T=J2O(e,r)[y].vW;a=a.filter(function(X){return!!X&&!!X.video&&X.vW===T})}}return a}; $zN=function(e,a){for(var r=0;r+1P}; ox=function(e){if(!e.T||!e.policy.L&&!e.T.info.yX){var a=e.Z.S;e.T&&(a=a.filter(function(P){return P.audio.S===e.T.info.audio.S}),a.length||(a=e.Z.S)); e.T=e.Qm.S[a[0].id];if(a.length>1&&!e.policy.GQ){if(!e.policy.sQ){var r=g.tw(a,function(P){return P.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); r&&(e.T=e.Qm.S[r.id])}r=!1;if(r=e.policy.RO?!0:e.S.isLocked()?e.S.S<240:$zN(e,e.T))e.T=e.Qm.S[g.GV(a).id]}}}; Tj=function(e){if(!e.nextVideo||!e.policy.L)if(e.S.isLocked())e.nextVideo=e.S.S<=360?e.Qm.S[e.L[0].id]:e.Qm.S[g.GV(e.L).id],e.logger.debug(function(){return"Select max fmt: "+aV(e.nextVideo.info)}); else{for(var a=Math.min(e.Y,e.L.length-1),r=mW(e.TQ),P=fP(e,e.T.info),B=r/e.policy.oH-P;a>0&&!(fP(e,e.L[a])<=B);a--);for(var h=r/e.policy.Y-P;a=h);a++);e.nextVideo=e.Qm.S[e.L[a].id];e.Y!==a&&e.logger.info(function(){return"Adapt to: "+aV(e.nextVideo.info)+", bandwidth: "+r.toFixed(0)+", bandwidth to downgrade: "+B.toFixed(0)+", bandwidth to upgrade: "+h.toFixed(0)+", constraint: "+Qz(e.S)}); e.Y=a}}; Uzq=function(e){var a=e.policy.oH,r=mW(e.TQ),P=r/a-fP(e,e.T.info);a=g.gb(e.L,function(B){return fP(this,B)h?B=0:P[c]>e.buffered[c]&&(c===h-1?B=2:c===h-2&&P[c+1]>e.buffered[c+1]&&(B=3))}e.S.add(a<<3|(r&&4)|B);a=Math.ceil(e.track.Dm()*1E3);e.S.add(a-e.C);e.C=a;if(B===1)for(e.S.add(h),c=a=0;c=2&&e.S.add(P[h- 1]-e.buffered[h-1]);r&&e.S.add(r);e.buffered=P}; Gj=function(e,a,r){var P=this;this.policy=e;this.S=a;this.Eo=r;this.L=this.T=0;this.HV=null;this.HW=new Set;this.N=[];this.indexRange=this.initRange=null;this.Y=new kF;this.oH=this.TQ=!1;this.Ob={WiW:function(){return P.B}, Y5W:function(){return P.chunkSize}, moH:function(){return P.D}, cNQ:function(){return P.Z}}; (a=Yx4(this))?(this.chunkSize=a.csz,this.B=Math.floor(a.clen/a.csz),this.D=a.ck,this.Z=a.civ):(this.chunkSize=e.ul,this.B=0,this.D=g.Ch(16),this.Z=g.Ch(16));this.C=new Uint8Array(this.chunkSize);this.D&&this.Z&&(this.crypto=new HtL(this.D,this.Z))}; Yx4=function(e){if(e.policy.mf&&e.policy.HC)for(var a=g.Z(e.policy.mf),r=a.next(),P={};!r.done;P={Dv:void 0,yW:void 0},r=a.next())if(r=g.KG(r.value),P.Dv=+r.clen,P.yW=+r.csz,P.Dv>0&&P.yW>0&&e.policy.L===r.docid&&e.S.info.id===r.fmtid&&e.S.info.lastModified===+r.lmt)return e={},e.clen=P.Dv,e.csz=P.yW,e.ck=r.ck,e.civ=r.civ,e}; Ea=function(e){return!!e.HV&&e.HV.jH()}; izj=function(e,a){if(!Ea(e)&&!e.wP()){if(!(e.TQ||(e.TQ=!0,e.B>0))){var r=bj(e);r=BE(e.policy.L,e.S.info,tr(e),r,e.policy.k$);gt(e,r)}if(a.info.type===1){if(e.HV){ZY(e,Error("Woffle: Expect INIT slices to always start us off"));return}e.initRange=ME(0,a.T.totalLength)}else if(a.info.type===2)e.HV&&e.HV.type===1||ZY(e,Error("Woffle: Index before init")),e.indexRange=ME(e.initRange.end+1,a.T.totalLength);else if(a.info.type===3){if(!e.HV){ZY(e,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(e.HV.type===3&&!al(e.HV,a.info)&&(e.N=[],a.info.lW!==rj(e.HV)||a.info.T!==0))return;if(a.info.L){r=g.Z(e.N);for(var P=r.next();!P.done;P=r.next())wOI(e,P.value);e.N=[]}else{e.N.push(a);e.HV=a.info;return}}else{ZY(e,Error("Woffle: Unexpected slice type"));return}e.HV=a.info;wOI(e,a);pOj(e)}}; wOI=function(e,a){var r=0,P=og(a.T);if(e.L=P.length)return;if(r<0)throw Error("Missing data");e.L=e.B;e.T=0}for(B={};r0){var c=P.getUint32(r+28);h+=c*16+4}var y=P.getUint32(r+h-4);try{var T=Hzz(a.subarray(r+h,r+h+y));if(T!==null){var X=T;break a}}catch(f){}}r+=B}X=null;break a}catch(f){X=null;break a}X=void 0}if(X!=null)for(a=GP(e5(X,7,void 0,YL)),a==null||e.Ox||(e.cryptoPeriodIndex=a),a=GP(e5(X,10,void 0,YL)),a!=null&&a>0&& !e.Ox&&(e.S=a),X=o4(X,2,Vrj,void 0===lL4?2:4),X=g.Z(X),P=X.next();!P.done;P=X.next())a=e.B,r=a.push,P=pg(P.value),P=g.Vq(P,4),r.call(a,P)}; vE4=function(e){return isNaN(e.cryptoPeriodIndex)?g.Vq(e.initData):""+e.cryptoPeriodIndex}; dt=function(e,a,r){var P=r===void 0?{}:r;r=P.videoDuration===void 0?0:P.videoDuration;var B=P.Bg===void 0?void 0:P.Bg;P=P.CF===void 0?!1:P.CF;this.videoId=e;this.status=a;this.videoDuration=r;this.Bg=B;this.CF=P}; Re4=function(e,a,r,P,B){this.videoId=e;this.D_=a;this.T=r;this.bytesDownloaded=P;this.S=B}; Jr=function(e){this.S=e;this.offset=0}; DY=function(e){if(e.offset>=e.S.totalLength)throw Error();return y$(e.S,e.offset++)}; Sxj=function(e,a){a=a===void 0?!1:a;var r=DY(e);if(r===1){a=-1;for(r=0;r<7;r++){var P=DY(e);a===-1&&P!==255&&(a=0);a>-1&&(a=a*256+P)}return a}P=128;for(var B=0;B<6&&P>r;B++)r=r*256+DY(e),P*=128;return a?r:r-P}; slN=function(e){try{var a=Sxj(e,!0),r=Sxj(e,!1);return{id:a,size:r}}catch(P){return{id:-1,size:-1}}}; mzJ=function(e){for(var a=new Jr(e),r=-1,P=0,B=0;!P||!B;){var h=slN(a),c=h.id;h=h.size;if(c<0)return;if(c===176){if(h!==2)return;P=a.wM()}else if(c===186){if(h!==2)return;B=a.wM()}c===374648427?r=a.wM()+h:c!==408125543&&c!==174&&c!==224&&a.skip(h)}a=n3(e,0,r);r=new DataView(a.buffer);r.setUint16(P,3840);r.setUint16(B,2160);P=new rH([a]);P4(P,e);return P}; Fxl=function(e,a,r){var P=this;this.loader=e;this.policy=a;this.C=r;this.logger=new g.bl("dash");this.T=[];this.S=null;this.TQ=-1;this.N=0;this.Lf=NaN;this.HW=0;this.B=NaN;this.Y=this.e1=0;this.ym=-1;this.Cf=this.L=this.Z=this.Eo=null;this.PW=this.GQ=NaN;this.D=this.oH=this.Uo=this.k$=null;this.rP=!1;this.XM=this.timestampOffset=0;this.Ob={jh:function(){return P.T}}; if(this.policy.L){var B=this.C,h=this.policy.L;this.policy.k$&&e.nf("atv",{ap:this.policy.k$});this.D=new Gj(this.policy,B,function(c,y,T){V_(e,new dt(P.policy.L,2,{Bg:new Re4(h,c,B.info,y,T)}))}); this.D.Y.promise.then(function(c){P.D=null;c===1?V_(e,new dt(P.policy.L,c)):P.loader.nf("offlineerr",{status:c.toString()})},function(c){var y=(c.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); c instanceof Oa&&!c.S?(P.logger.info(function(){return"Assertion failed: "+y}),P.loader.nf("offlinenwerr",{em:y}),$b(P),V_(e,new dt(P.policy.L,4))):(P.logger.info(function(){return"Failed to write to disk: "+y}),P.loader.nf("dldbwerr",{em:y}),$b(P),V_(e,new dt(P.policy.L,4,{CF:!0})))})}}; Mfj=function(e){return e.T.length?e.T[0]:null}; jlL=function(e,a){return e.T.some(function(r){return r.info.lW===a})}; rGN=function(e,a,r,P){P=P===void 0?0:P;if(e.L){var B=e.L.T+e.L.B;if(r.info.T>0)if(r.info.lW===e.L.lW&&r.info.T=0&&e.L.lW>=0&&!al(e.L,r.info))throw new g.I6("improper_continuation",e.L.Kb(),r.info.Kb());tll(e.L,r.info)||Q_(e,"d")}else if(r.info.T>0)throw new g.I6("continuation_of_null",r.info.Kb());e.L=r.info;e.C=r.info.S;if(r.info.T===0){if(e.S)if(!e.loader.isOffline()||e.policy.HI)e.loader.nf("slice_not_fully_processed", {buffered:e.S.info.Kb(),push:r.info.Kb()});else throw new g.I6("slice_not_fully_processed",e.S.info.Kb(),r.info.Kb());Wu(e);e.e1=P}else{if(e.e1&&P&&e.e1!==P)throw e=new g.I6("lmt_mismatch",r.info.lW,e.e1,P),e.level="WARNING",e;!r.info.S.fW()&&e.Z&&(P=r.info,B=e.Z.F6,P.D="updateWithEmsg",P.lW=B)}if(e.S){P=g.Ox(e.S,r);if(!P)throw new g.I6("failed_to_merge",e.S.info.Kb(),r.info.Kb());e.S=P}else e.S=r;a:{r=g.m2(e.S.info.S.info);if(e.S.info.type!==3){if(!e.S.info.L)break a;e.S.info.type===6?ueT(e,a,e.S): KxL(e,e.S);e.S=null}for(;e.S;){P=e.S.T.totalLength;if(e.TQ<=0&&e.N===0){var h=e.S.T,c=-1;B=-1;if(r){for(var y=0;y+80))break;if(A!==408125543)if(A===524531317)y=!0,f>=0&&(B=h.wM()+f,T=!0);else{if(y&&(A===160||A===163)&&(c<0&&(c=X),T))break;A===163&&(c=Math.max(0,c),B=h.wM()+f);if(A===160){c<0&&(B=c=h.wM()+ f);break}h.skip(f)}}c<0&&(B=-1)}if(c<0)break;e.TQ=c;e.N=B-c}if(e.TQ>P)break;e.TQ?(P=el3(e,e.TQ),P.C&&a0O(e,P),ueT(e,a,P),lj(e,P),e.TQ=0):e.N&&(P=el3(e,e.N<0?Infinity:e.N),e.N-=P.T.totalLength,lj(e,P))}}e.S&&e.S.info.L&&(lj(e,e.S),e.S=null)}; KxL=function(e,a){!a.info.S.fW()&&a.info.T===0&&(g.m2(a.info.S.info)||a.info.S.info.Ox())&&aTN(a);if(a.info.type===1)try{a0O(e,a),PPl(e,a)}catch(B){g.D6(B);var r=PO(a.info);r.hms="1";e.loader.handleError("fmt.unparseable",r||{},1)}r=a.info.S;r.l2(a);e.D&&izj(e.D,a);if(r.QP()&&e.policy.S)a:{e=e.loader.Qm;a=a.info.clipId;r=g.MW(r.info,e.QX);if(a){var P=Sv({itag:r.itag,lmt:e.QX?0:r.lmt||0,xtags:r.xtags});if(e.ym[P])break a;e.ym[P]=a}e.GQ.push(r)}}; VjL=function(e,a,r){if(e.T.length!==0&&(r||e.T.some(function(h){return h.info.C=Yb(c)+y):a=e.getDuration()>=c.getDuration(),a=!a;a&&cGy(r)&&(a=e.Eo,LP?(y=K2L(r),c=1/y,y=Yb(e,y),a=Yb(a)+c-y):a=a.getDuration()- e.getDuration(),a=1+a/r.info.duration,MhT(g.Z5(r),a))}else{c=!1;e.Z||(aTN(r),r.S&&(e.Z=r.S,c=!0,B=r.info,h=r.S.F6,B.D="updateWithEmsg",B.lW=h,B=r.S,B.jH&&(h=e.C.index,h.T=!B.jH,h.B="emsg"),B=r.info.S.info,h=g.Z5(r),g.m2(B)?tM(h,1701671783):B.Ox()&&Vv([408125543],307544935,h)));a:if((B=J2(r,e.policy.J9))&&eEj(r))y=o13(e,r),e.Y+=y,B-=y,e.HW+=B,e.B=e.policy.SZ?e.B+B:NaN;else{if(e.policy.GF){if(h=T=e.loader.Zs(g.kE(r),1),e.B>=0&&r.info.type!==6){if(e.policy.SZ&&isNaN(e.GQ)){g.VJ(new g.I6("Missing duration while processing previous chunk", r.info.Kb()));e.loader.isOffline()&&!e.policy.HI||n1I(e,r,h);Q_(e,"m");break a}P=T-e.B;var X=P-e.Y,f=r.info.lW,A=e.Cf?e.Cf.lW:-1,U=e.PW,C=e.GQ,G=e.policy.Rd&&P>e.policy.Rd,O=Math.abs(X)>10,d=Math.abs(e.B-h)<1E-7;if(Math.abs(X)>1E-4){e.XM+=1;var W=(y=e.Z)==null?void 0:RJT(y);y={audio:""+ +e.sU(),sq:f.toFixed(),sliceStart:T,lastSq:A.toFixed(),lastSliceStart:U,lastSliceDuration:C,totalDrift:(P*1E3).toFixed(),segDrift:(X*1E3).toFixed(),skipRewrite:""+ +(G||O)};if(W==null?0:W.length)y.adCpn=W[0];e.loader.handleError("qoe.avsync", y);e.ym=f}G||O||d||(h=e.B);y=o13(e,r,T);B-=y;e.Y=P+y}}else h=isNaN(e.B)?r.info.startTime:e.B;n1I(e,r,h)&&(e.HW+=B,e.B=h+B,e.policy.No&&e.XM>=e.policy.No&&(e.XM=0,e.loader.nE({resetForRewrites:"count"})))}e.Cf=r.info;e.GQ=dj(r);r.B>=0&&(e.PW=r.B);if(c&&e.Z){c=yGT(e,!0);BO(r.info,c);e.S&&BO(e.S.info,c);a=g.Z(a);for(y=a.next();!y.done;y=a.next())y=y.value,B=void 0,e.policy.C&&y.lW!==((B=e.Z)==null?void 0:B.F6)||BO(y,c);(r.info.L||e.S&&e.S.info.L)&&r.info.type!==6||(e.oH=c,e.policy.T?(a=TV4(e.Z),e.loader.Gv(e.C, c,a)):(a=e.loader,a.Qm.isManifestless&&XMz(a,c,null,!!e.C.info.video)),e.policy.Tu||f0y(e))}}PPl(e,r);e.timestampOffset&&jHz(r,e.timestampOffset)}; lj=function(e,a){if(a.info.L){e.k$=a.info;if(e.Z){var r=e.Z,P=yGT(e,!1);r=TV4(r);e.loader.Gv(e.C,P,r);e.oH||e.policy.Tu||f0y(e);e.oH=null}Wu(e)}e.D&&izj(e.D,a);if(P=e.Ww())if(P=g.Ox(P,a,e.policy.Lz,e.policy.FI)){e.T.pop();e.T.push(P);return}e.T.push(a)}; TV4=function(e){if(e.PJ()){var a=e.data["Stitched-Video-Id"]?e.data["Stitched-Video-Id"].split(",").slice(0,-1):[],r=RJT(e),P=[];if(e.data["Stitched-Video-Duration-Us"])for(var B=g.Z(e.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=B.next();!h.done;h=B.next())P.push((Number(h.value)||0)/1E6);B=[];if(e.data["Stitched-Video-Start-Frame-Index"]){h=g.Z(e.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var c=h.next();!c.done;c=h.next())B.push(Number(c.value)||0)}B=[]; if(e.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(h=g.Z(e.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),c=h.next();!c.done;c=h.next())B.push((Number(c.value)||0)/1E6);e=new I5N(a,r,P,B,g.Sp3(e),g.s2O(e))}else e=null;return e}; Wu=function(e){e.S=null;e.TQ=-1;e.N=0;e.Z=null;e.Lf=NaN;e.HW=0;e.oH=null}; Q_=function(e,a){a={rst4disc:a,cd:e.Y.toFixed(3),sq:e.Cf?e.Cf.lW:-1};e.B=NaN;e.Y=0;e.ym=-1;e.Cf=null;e.PW=NaN;e.GQ=NaN;e.Uo=null;e.loader.nf("mdstm",a)}; PPl=function(e,a){if(e.isDrm()){if(a.info.S.info.Ox()){var r=new Zd(g.Z5(a));if(kk(r,[408125543,374648427,174,28032,25152,20533,18402])){var P=Dd(r,!0);r=P!==16?null:l_(r,P)}else r=null;P="webm"}else a.info.N=NjL(g.Z5(a)),r=xz4(a.info.N),P="cenc";r&&r.length&&(r=new kb(r,P),e.policy.yQ&&g.m2(a.info.S.info)&&(P=rXT(g.Z5(a)))&&(r.T=P),r.Ox=a.info.S.info.Ox(),a.S&&a.S.cryptoPeriodIndex&&(r.cryptoPeriodIndex=a.S.cryptoPeriodIndex),a.S&&a.S.T&&(r.S=a.S.T),e.loader.DT(r))}}; f0y=function(e){var a=e.Z,r=qpT(a);r&&(r.startSecs+=e.Lf,e.loader.Ei(e.C,r,a.F6,a.PJ()))}; yGT=function(e,a){var r,P=e.Z;if(r=qpT(P))r.startSecs+=e.Lf;return new jj(P.F6,e.Lf,a?P.qc:e.HW,P.ingestionTime,"sq/"+P.F6,void 0,void 0,a,r)}; n1I=function(e,a,r){if(!Ml4(a,r))return a=PO(a.info),a.smst="1",e.loader.handleError("fmt.unparseable",a||{},1),!1;isNaN(e.Lf)&&(e.Lf=r);return!0}; o13=function(e,a,r){var P=0;if(a.info.S.info.Ox()&&!eEj(a))return 0;if(e.Eo&&!e.sU()){var B=0;r&&g.m2(a.info.S.info)?B=r-e.B:a.info.S.info.Ox()&&(B=e.Y);var h=a.info.lW;r=J2(a,e.policy.J9);var c=e.Eo;var y=c.ym;c=c.Y;var T=Math.abs(c-B)>.02;if((h===y||h>y&&h>e.ym)&&T){P=Math.max(.95,Math.min(1.05,(r-(c-B))/r));if(g.m2(a.info.S.info))MhT(g.Z5(a),P);else if(a.info.S.info.Ox()&&(h=B-c,!g.m2(a.info.S.info)&&(a.info.S.info.Ox(),P=new Zd(g.Z5(a)),y=a.C?P:new Zd(new DataView(a.info.S.S.buffer)),J2(a,!0)))){var X= h*1E3,f=Yk(y);y=P.pos;P.pos=0;if(P.S.getUint8(P.pos)===160||wS(P))if(JM(P,160))if(Dd(P,!0),JM(P,155)){if(h=P.pos,T=Dd(P,!0),P.pos=h,X=X*1E9/f,f=$k(P),X=f+Math.max(-f*.7,Math.min(f,X)),X=Math.sign(X)*Math.floor(Math.abs(X)),!(Math.ceil(Math.log(X)/Math.log(2)/8)>T)){P.pos=h+1;for(h=T-1;h>=0;h--)P.S.setUint8(P.pos+h,X&255),X>>>=8;P.pos=y}}else P.pos=y;else P.pos=y;else P.pos=y}P=J2(a,e.policy.J9);P=r-P}P&&a.info.S.info.Ox()&&e.loader.nf("webmDurationAdjustment",{durationAdjustment:P,videoDrift:B+P, audioDrift:c})}return P}; cGy=function(e){return e.info.S.fW()&&e.info.lW===e.info.S.index.q5()}; Yb=function(e,a){a=(a=a===void 0?0:a)?Math.round(e.timestampOffset*a)/a:e.timestampOffset;e.C.L&&a&&(a+=e.C.L.S);return a+e.getDuration()}; AG4=function(e,a){a<0||(e.T.forEach(function(r){jHz(r,a)}),e.timestampOffset=a)}; uS=function(e,a,r,P,B){Co.call(this,r,B);var h=this;this.policy=e;this.formatId=a;this.oU=P;this.lastError=null;this.onProgress=function(){h.wP()||(h.oU.PO.has(h.formatId)?(h.isComplete()||h.S.start(),qa(h.oU,h.formatId)&&h.GW(2),h.oU.iQ(h.formatId)&&(ldJ(h.oU,h.formatId)?h.dg(4):(h.lastError="net.closed",h.dg(5)))):(h.lastError="player.exception",h.dg(5)))}; this.S=new g.vP(function(){h.isComplete()||(h.lastError="net.timeout",h.dg(5))},1E3); this.S.start();$EL(this.oU,this.formatId,this.onProgress);g.kP(this.onProgress)}; wt=function(e,a,r,P){g.N.call(this);var B=this;this.loader=e;this.policy=a;this.S=r;this.timing=P;this.logger=new g.bl("dash");this.B=[];this.Eo=[];this.T=this.mL=null;this.Uo=!1;this.e1=this.XM=0;this.Z=-1;this.TQ=!1;this.Lf=-1;this.Cf=null;this.oH=NaN;this.HW=[];this.Ob={VT:function(){return B.L}, Kim:function(){return B.B}, ANH:function(){return B.Y}}; this.L=new Fxl(e,a,r);this.policy.S&&(this.Y=new M0(this.L,this.loader.getManifest(),this.policy,function(h){B.policy.Fx&&B.nf("buftl",h)})); this.policy.dW&&(this.N=new Ua(this));this.NF=r.info.NF;this.D=this.policy.HW?!1:r.Ov();this.isManifestless=r.Ov();this.C=this.D;g.x(this,this.Cf)}; pP=function(e,a,r){r=r===void 0?!1:r;a&&LP&&AG4(e.L,a.BL());if(!r){var P;(P=e.Y)==null||kyL(P)}e.mL=a;(a=e.Y)!=null&&(a.mL=e.mL)}; ij=function(e){var a=e.mL&&e.mL.kc();if(e.policy.bx){if((e=e.Y)==null)e=void 0;else{var r;e=(r=e.B)==null?void 0:r.info}return e||null}return a}; URI=function(e){for(var a={},r=0;r4&&e.Eo.shift()}; CPO=function(e,a){if(a.Pr()){var r=a.Va();r=g.Z(r);for(var P=r.next();!P.done;P=r.next())P=P.value,e.policy.B&&a instanceof uS&&e.nf("omblss",{s:P.info.Kb()}),Nb(e,a.info.Vm,P,a.SR())}}; Nb=function(e,a,r,P){P=P===void 0?0:P;isNaN(e.oH)||(e.nf("aswm",{sq:a[0].lW,id:a[0].S.info.itag,xtag:a[0].S.info.S,ep:Date.now()-e.oH}),e.oH=NaN);switch(r.info.type){case 1:case 2:GAj(e,r);break;case 4:var B=r.info.S,h=B.Cd(r),c;((c=e.T)==null?0:c.type===4)&&DWJ(r.info,e.T)&&(e.T=B.aY(e.T).pop());r=g.Z(h);for(B=r.next();!B.done;B=r.next())Nb(e,a,B.value,P);break;case 3:r.info.S.info.video?(B=e.timing,B.Lf||(B.Lf=(0,g.Ov)(),g.KZ("fvb_r",B.Lf,B.S))):(B=e.timing,B.Z||(B.Z=(0,g.Ov)(),g.KZ("fab_r",B.Z, B.S)));rGN(e.L,a,r,P);e.policy.S&&E13(e);break;case 6:rGN(e.L,a,r,P),e.T=r.info}}; GAj=function(e,a){if(a.info.type===1)if(a.info.S.info.video){var r=e.timing;r.e1||(r.e1=(0,g.Ov)(),g.KZ("vis_r",r.e1,r.S))}else r=e.timing,r.Y||(r.Y=(0,g.Ov)(),g.KZ("ais_r",r.Y,r.S));KxL(e.L,a);e=e.loader;e.videoTrack.S.QP()&&e.audioTrack.S.QP()&&e.policy.S&&!e.Qm.QX&&(a=e.audioTrack.getDuration(),r=e.videoTrack.getDuration(),Math.abs(a-r)>1&&e.nf("trBug",{af:""+g.MW(e.audioTrack.S.info,!1),vf:""+g.MW(e.videoTrack.S.info,!1),a:""+a,v:""+r}))}; oN=function(e){return Mfj(e.L)}; E13=function(e){e.B.length?e.T=g.GV(g.GV(e.B).info.Vm):e.L.T.length?e.T=e.L.Ww().info:e.T=ij(e)}; xb=function(e,a){var r={BO:[],JO:[]},P;if((e=e.Y)==null)e=void 0;else{Otj(e,e.BO,"og");tjL(e,a);Otj(e,e.BO,"trim");var B=ZtI(e);a=B.BO;B=B.xg;for(var h=[],c=0;c0){var U=Bi(A,T);U>=0&&(f=(A.end(U)-T+.1)*1E3)}h.push({formatId:g.MW(y.info.S.info,e.Qm.QX), yl:y.info.yl,sequenceNumber:y.info.lW+e.L,zO:X,Ne:y.info.B,rY:f})}e={BO:a,JO:h}}return(P=e)!=null?P:r}; aN=function(e,a,r){r=r===void 0?!1:r;if(e.mL){var P=e.mL.HG(),B=ci(P,a),h=NaN,c=ij(e);c&&(h=ci(P,c.S.index.getStartTime(c.lW)));if(B===h&&e.T&&e.T.B&&bnN(Ix(e),0))return a}e=tDy(e,a,r);return e>=0?e:NaN}; P$=function(e,a,r){e.S.QP();var P=tDy(e,a);if(P>=0)return P;var B;(B=e.Y)==null||g$j(B,a,r);P=Math;B=P.min;var h=e.L;if(h.D)if(h=h.D,h.HV&&h.HV.type===3)h=h.HV.startTime;else if(h.B>0){var c=h.S.index;c=g.HB(c.offsets.subarray(0,c.count),h.B*h.chunkSize);h=h.S.index.getStartTime(c>=0?c:Math.max(0,-c-2))}else h=0;else h=Infinity;a=B.call(P,a,h);e.T=e.policy.HW?null:e.S.Uc(a).Vm[0];Hu(e)&&(e.policy.Ig&&(r==null?void 0:r.seekSource)===60||e.mL&&e.mL.abort(),e.policy.UX&&(r=e.Y)!=null&&(r.B=void 0)); e.e1=0;return e.T?e.T.startTime:a}; Jol=function(e){e.D=!0;e.C=!0;e.Z=-1;P$(e,Infinity)}; qb=function(e){for(var a=0,r=g.Z(e.B),P=r.next();!P.done;P=r.next())a+=$Wl(P.value.info);return a+=BVL(e.L)}; Rx=function(e,a){a=a===void 0?!1:a;var r=e.loader.getCurrentTime(),P=e.L.Ww(),B=(P==null?void 0:P.info.Z)||0;if((P==null?0:P.info.S.Ov())&&!P.info.L)if(e.policy.ih)B=P.info.C;else if(e.policy.h6){var h=P.info;B=h.range?h.Z:Math.min(h.startTime+Math.min(h.duration*h.T/h.S.info.NF,h.duration)+(h.range?h.Y:Math.min(h.duration,h.duration*h.B/h.S.info.NF)),h.startTime+h.duration)}if(!e.mL)return e.policy.S&&a&&!isNaN(r)&&P?B-r:0;if((h=ij(e))&&vu(h))return h.Z;var c=e.mL.HG(!0);if(a&&P)return h=0,e.policy.S&& (h=y9(c,B+.02)),h+B-r;a=y9(c,r);e.policy.Yb&&h&&(P=Bi(c,r),c=Bi(c,h.C-.02),P===c&&(r=h.Z-r,e.policy.B&&r>a+.02&&e.nf("abh",{bh:a,bhtls:r}),a=Math.max(a,r)));return a}; g1l=function(e){var a=ij(e);return a?a.Z-e.loader.getCurrentTime():0}; Znj=function(e,a){if(e.B.length){if(e.B[0].info.Vm[0].startTime<=a)return;e6(e)}for(var r=e.L,P=r.T.length-1;P>=0;P--)r.T[P].info.startTime>a&&r.T.pop();E13(e);e.T&&a=0;c--){var y=B.T[c];y.info.lW>=a&&(B.T.pop(),B.B-=J2(y,B.policy.J9),h=y.info)}h&&(B.L=B.T.length>0?B.T[B.T.length-1].info:B.Uo,B.T.length!==0||B.L||Q_(B,"r"));B.loader.nf("mdstm",{rollbk:1,itag:h?h.S.info.itag:"",popped:h?h.lW:-1,sq:a,lastslc:B.L?B.L.lW:-1,lastfraget:B.B.toFixed(3)});if(e.policy.S)return e.T=null,!0;P>r?P$(e,P):e.T=e.S.yI(a-1,!1).Vm[0]}catch(T){return a=Ud(T),a.details.reason="rollbkerr", e.loader.handleError(a.errorCode,a.details,a.severity),!1}return!0}; mr=function(e,a){var r;for(r=0;r0?r||a.lW>=e.Lf:r}; Fo=function(e){var a;return Hu(e)||vu((a=e.L.Ww())==null?void 0:a.info)}; Ix=function(e){var a=[],r=ij(e);r&&a.push(r);a=g.QG(a,e.L.GJ());r=g.Z(e.B);for(var P=r.next();!P.done;P=r.next()){P=P.value;for(var B=g.Z(P.info.Vm),h=B.next(),c={};!h.done;c={hq:void 0},h=B.next())c.hq=h.value,P.UT&&(a=g.QX(a,function(y){return function(T){return!DWJ(T,y.hq)}}(c))),(ef(c.hq)||c.hq.type===4)&&a.push(c.hq)}e.T&&!EKT(e.T,g.GV(a),e.T.S.fW())&&a.push(e.T); return a}; bnN=function(e,a){if(!e.length)return!1;for(a+=1;a=a){a=h;break a}}a=B}return a<0?NaN:bnN(e,r?a:0)?e[a].startTime:NaN}; Mb=function(e){return!(!e.T||e.T.S===e.S)}; OnL=function(e){return Mb(e)&&e.S.QP()&&e.T.S.info.NFa&&e.Z1080&&!e.QV&&(e.e1=36700160,e.rP=5242880,e.XM=Math.max(4194304,e.XM),e.QV=!0);a.video.qualityOrdinal>2160&&!e.D6&&(e.e1=104857600,e.NF=13107200,e.D6=!0);g.eS(e.gP.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?a.isEncrypted()&&g.x2()&&g.zu("samsung")&&(g.zu("kant")||g.zu("muse"))&&(e.NF=g.eS(e.gP.experiments,"html5_samsung_kant_limit_max_bitrate")):a.isEncrypted()&&g.x2()&&g.zu("kant")&&(e.NF=1310720);e.CE!==0&&a.isEncrypted()&& (e.NF=e.CE);e.mH!==0&&a.isEncrypted()&&r&&(e.NF=e.mH);a.NF&&(e.xM=Math.max(e.H8,Math.min(e.XM,5*a.NF)))}; l3=function(e){return e.S&&e.wx}; ah=function(e){return e.S&&e.dD&&e.playbackStartPolicy}; rq=function(e,a,r,P){e.dD&&(e.playbackStartPolicy=a,e.bN=r,e.Nu=P)}; eR=function(e,a,r){r=r===void 0?0:r;return g.eS(e.gP.experiments,a)||r}; pMq=function(e){var a=e===void 0?{}:e;e=a.EQ;var r=a.gD;var P=a.jT;var B=a.q5;a=a.W_;this.EQ=e;this.gD=r;this.jT=P;this.q5=B;this.W_=a}; zfz=function(e,a){if(a<0)return!0;var r=e.q5();return a0)return 2;if(a<0)return 1;r=e.q5();return a(0,g.Ov)()?0:1}; Bt=function(e,a,r,P,B,h,c,y,T,X,f,A,U,C){C=C===void 0?null:C;g.N.call(this);var G=this;this.loader=e;this.policy=a;this.videoTrack=r;this.audioTrack=P;this.L=B;this.S=h;this.timing=c;this.C=y;this.schedule=T;this.Qm=X;this.B=f;this.HW=A;this.Wp=U;this.XG=C;this.oH=!1;this.KL="";this.AO=null;this.K_=NaN;this.TQ=!1;this.T=null;this.c7=this.N=NaN;this.gx=this.Z=0;this.logger=new g.bl("dash");this.Ob={iX:function(O,d){return G.iX(O,d)}}; this.policy.wR>0&&(this.KL=g.Ch(this.policy.wR));this.policy.gT&&(this.Y=new Pt(this.loader,this.policy,this.schedule),g.x(this,this.Y))}; I0L=function(e,a,r){var P=a.T?a.T.S.Kr:a.S.Kr;var B=e.L,h;(h=!e.policy.gF)||(h=Sj(P.S)===Sj(P.T));h?P=!1:(B=xk(B,Sj(P.T)),h=6E4*Math.pow(B.L,1.6),(0,g.Ov)()=B.L?(B.nf("sdai",{haltrq:h+1,est:B.L}),P=!1):P=B.T!==2;if(!P||!RO(a.T?a.T.S.Kr:a.S.Kr,e.policy,e.L,e.loader.jk())||e.loader.isSuspended&&(!R1(e.schedule)||e.loader.Ea))return!1;if(e.policy.L&&PE>=5)return g.sC(e.loader.Di),!1;if(e.Qm.isManifestless){if(a.B.length>0&&a.T&&a.T.lW===-1||a.B.length>=e.policy.Mo||!e.policy.VQ&&a.B.length>0&&!e.policy.D.gD)return!1;if(a.D)return!e.Qm.isLive|| !isNaN(e.K_)}if(VDy(a))return e.logger.debug("Pending request with server-selectable format found"),!1;if(!a.T){if(!a.S.QP())return!1;P$(a,e.loader.getCurrentTime())}if(oN(a)&&(a.Ww()!==oN(a)||e.loader.isSuspended))return!1;B=(P=e.policy.E$)&&!a.B.length&&Rx(a,!0)=e.policy.b7)return!1;P=a.T;if(!P)return!0;P.type===4&&P.S.QP()&&(a.T=g.GV(P.S.aY(P)),P= a.T);if(!P.jH()&&!P.S.Gg(P))return!1;h=e.Qm.zX||e.Qm.L;if(e.Qm.isManifestless&&h){h=a.S.index.q5();var c=r.S.index.q5();h=Math.min(h,c);if(a.S.index.aC()>0&&h>0&&P.lW>=h)return a.Lf=h,r.Lf=h,!1}if(P.S.info.audio&&P.type===4||P.jH())return!1;h=!a.C&&!r.C;if(B=!B)B=P.Z,B=!!(r.T&&!vu(r.T)&&r.T.ZHn4(e,a)?(Hn4(e,a),!1):(e=a.mL)&&e.isLocked()?!1:!0}; Hn4=function(e,a){var r=e.S;r=r.S?r.S.Eg:null;if(e.policy.Eo&&r)return r.startSecs+r.Ug+15;a=ro(e.loader,a);e.policy.T$>0&&(r=((0,g.Ov)()-e.loader.E7)/1E3,a=Math.min(a,e.policy.T$+e.policy.L5*r));a=e.loader.getCurrentTime()+a;return e.policy.UD&&(r=qtJ(e.loader)+e.policy.UD,r=0||a.Kr.Nb("defrag")==="1"||a.Kr.Nb("otf")==="1"){a=null;break a}B=ME(0,4096)}B=new h2([new u_(5,P.S,B,"createProbeRequestInfo"+P.D,P.lW)],a.T);B.rD=r;B.S=a.S;a=B}a&&ct(e,a)}}; ct=function(e,a){e.loader.GV(a);var r=$Wl(a),P=e.loader.ut();r={e5:e.schedule,eE:r,mT:AoL(e.C,r),wu:KW(a.Vm[0]),hL:s$(a.Kr.S),eJ:e.policy.B,fQ:function(c,y){e.loader.wi(c,y)}}; if(e.schedule.T.Z){var B,h;r.P8=(((B=e.videoTrack.S)==null?void 0:B.info.NF)||0)+(((h=e.audioTrack.S)==null?void 0:h.info.NF)||0)}e.AO&&(r.lW=a.Vm[0].lW,r.K_=a.K_,r.AO=e.AO);P={kM:QH4(a,e.loader.getCurrentTime()),pL:e.policy.sx&&ol(a)&&a.Vm[0].S.info.video?Wx4(e.B):void 0,TZ:e.policy.Eo,poToken:e.loader.xZ(),fU:e.loader.Pf(),KL:e.KL,c7:isNaN(e.c7)?null:e.c7,XG:e.XG,Wp:e.Wp,gx:e.gx,H0:P};return new Kw(e.policy,a,r,e.L,function(c,y){try{a:{var T=c.info.Vm[0].S,X=T.info.video?e.videoTrack:e.audioTrack; if(!(c.state>=2)||c.isComplete()||c.lP()||!(!e.loader.cW||e.loader.isSuspended||Rx(X)>3)){var f=NVl(c,e.policy,e.L);f===1&&(e.TQ=!0);v1j(e,c,f);if(c.isComplete()||c.wP()&&y<3){if(e.policy.B){var A=c.timing.Sr();A.rst=c.state;A.strm=c.xhr.y4();A.cncl=c.xhr&&c.Ub.L?1:0;e.loader.nf("rqs",A)}c.m9&&e.loader.nf("sbwe3",{},!0)}if(!e.wP()&&c.state>=2){jOz(e.timing,c,T);var U=e.loader;e.c7&&c.Y0&&U&&(e.c7=NaN,e.loader.Jp(c.Y0),e.loader.z_(),e.loader.nf("cabrUtcSeek",{mediaTimeSeconds:c.Y0}));c.C0&&e.c7&&c.C0&& !c.C0.action&&(e.loader.oy(e.c7),e.c7=NaN,e.loader.nf("cabrUtcSeekFallback",{targetUtcTimeSeconds:e.c7}));c.cw&&e.loader.e0(c.cw);e.policy.kh&&(e.gx=c.gx);if(c.state===3){mr(X,c);ol(c.info)&&n2(e,X,T,!0);if(e.T){var C=c.info.jE();C&&e.T.QY(c.info.Vm[0].lW,T.info.id,C)}e.loader.CB()}else if(c.isComplete()&&c.info.Vm[0].type===5){if(c.state!==4)c.md()&&e.loader.handleError(c.P7(),c.Pj());else{var G=(c.info.Vm[0].S.info.video?e.videoTrack:e.audioTrack).B[0]||null;G&&G instanceof Kw&&G.lP()&&G.Ms()}c.dispose()}else{c.md()|| Rlz(e,c);var O;((O=c.CR)==null?0:O.itagDenylist)&&e.loader.d3(c.CR.itagDenylist);if(c.state===4)ya(e,c),e.S&&r2q(e.S,c.info,e.T);else if(e.policy.Gf&&c.Pr()&&!c.isComplete()&&!ya(e,c)&&!c.md())break a;c.md()&&(Sty(e,c),isNaN(e.c7)||(e.loader.oy(e.c7),e.c7=NaN));e.policy.Te&&!c.isComplete()?Ti(e.loader):e.loader.CB();var d=xRj(c,e.policy,e.L);v1j(e,c,d)}}}}}catch(W){y=e.oH?1:0,e.oH=!0,c=AX(y),y=Ud(W,y),e.loader.handleError(y.errorCode,y.details,y.severity),c||e.loader.GA()}},P)}; Rlz=function(e,a){if(a.NJ&&a.state>=2&&a.state!==3){var r=a.xhr.getResponseHeader("X-Response-Itag");if(r){e.logger.debug(function(){return"Applying streamer-selected format "+r}); var P=QlO(e.B,r),B=a.info.B;B&&(B-=P.M4(),P.B=!0,a.info.Vm[0].S.B=!1,JMN(a,P.Z1(B)),X1(e.loader,e.videoTrack,P),$Rz(e.videoTrack,P),e.loader.zr(P.info.video.quality),(B=a.SR())&&P.info.lastModified&&P.info.lastModified!==+B&&mr(e.videoTrack,a))}else a.NJ=!1}}; Sty=function(e,a){var r=a.info.Vm[0].S,P=a.P7();if(s$(r.Kr.S)){var B=g.$u(a.OU(),3);e.loader.nf("dldbrerr",{em:B||"none"})}B=a.info.Vm[0].lW;var h=u3(e.S,a.info.Vm[0].C,B);P==="net.badstatus"&&(e.Z+=1);if(a.canRetry()&&s14(e.loader)){if(!(a.info.Kr.B>=e.policy.Xg&&e.T&&a.info.isDecorated()&&P==="net.badstatus"&&e.T.Ih(h,B))){B=(r.info.video&&r.Kr.B>1||a.xK===410||a.xK===500||a.xK===503)&&!(hr(e.B.C).size>0)&&!s$(r.Kr.S);h=a.Pj();var c=r.info.video?e.videoTrack:e.audioTrack;B&&(h.stun="1");e.loader.handleError(P, h);e.wP()||(B&&(e.logger.debug(function(){return"Stunning format "+r.info.id}),Xo(e.B,r)),mr(c,a),e.loader.CB())}}else c=1,e.T&&a.info.isDecorated()&&P==="net.badstatus"&&e.T.Ih(h,B)&&(c=0),e.Qm.isLive&&a.P7()==="net.badstatus"&&e.Z<=e.policy.hN*2?(piI(e.Qm),e.Qm.zX||e.Qm.isPremiere?c$(e.loader,0,{ze:"badStatusWorkaround"}):e.Qm.L?c$(e.loader,e.Qm.Eo,{ze:"badStatusWorkaround", Zs:!0}):f2(e.loader)):e.loader.handleError(P,a.Pj(),c)}; ya=function(e,a){if(e.policy.useUmp&&a.wP())return!1;try{var r=a.info.Vm[0].S,P=r.info.video?e.videoTrack:e.audioTrack;if(e.Qm.isManifestless&&P){e.Z=0;P.D&&(a.wP(),a.isComplete()||a.Pr(),P.D=!1);a.tJ()&&e.loader.cC.dT(1,a.tJ());var B=a.aC(),h=a.aX();mx(e.Qm,B,h)}if(a.info.wu()&&!cO(a.info))for(var c=g.Z(a.Va()),y=c.next();!y.done;y=c.next())GAj(P,y.value);for(e.loader.getCurrentTime();P.B.length&&P.B[0].state===4;){var T=P.B.shift();CPO(P,T);P.XM=T.gq()}P.B.length&&CPO(P,P.B[0]);var X=!!oN(P);X&& a instanceof uS&&(r.info.sU()?vkO(e.timing):qk4(e.timing));return X}catch(f){a=a.Pj();a.origin="hrhs";a:{e=e.loader;r=f;if(r instanceof Error){a.msg||(a.msg=""+r.message);a.name||(a.name=""+r.name);if(r instanceof g.I6&&r.args)for(P=g.Z(Object.entries(r.args)),B=P.next();!B.done;B=P.next())h=g.Z(B.value),B=h.next().value,h=h.next().value,a["arg"+B]=""+h;g.VJ(r);if(r.level==="WARNING"){e.uW.nE(a);break a}}e.handleError("fmt.unplayable",a,1)}return!1}}; mR4=function(e){var a=e.videoTrack.S.index;e.AO=new pMq({EQ:e.policy.EQ,gD:e.policy.D.gD,jT:a.cM(),q5:function(){return a.q5()}, W_:function(){return a.W_()}})}; n2=function(e,a,r,P){if(!(r.QP()||r.Wu()||r.B||!RO(r.Kr,e.policy,e.L,e.loader.jk())||r.info.vW==="f"||e.policy.S)){if(P){P=e.C;var B=r.info;P=U$L(P,B.video?P.policy.fN:P.policy.TU,B.NF)}else P=0;P=r.Z1(P);e=ct(e,P);cO(P)&&zj(a,e);r.B=!0}}; AF=function(e,a,r,P,B,h,c,y){g.N.call(this);var T=this;this.loader=e;this.Md=a;this.videoTrack=r;this.audioTrack=P;this.Qm=B;this.N=h;this.isAudioOnly=c;this.Y=y;this.T=A3;this.TQ=!1;this.logger=new g.bl("sabr");this.D=this.oH=this.HW=!1;this.videoInfos=this.Z=this.N.videoInfos;this.B=this.Eo=this.N.S;this.S=new Pu(a,h,function(X,f){T.loader.nf(X,f)}); this.isAudioOnly&&FdI(this,this.Qm.S["0"])}; MD3=function(e,a){var r=[];a=g.Z(a);for(var P=a.next();!P.done;P=a.next())r.push(g.MW(P.value,e.Qm.QX));return r}; FdI=function(e,a,r){a!==e.L&&(e.L&&(e.TQ=!0),e.L=a,e.PU(a,e.videoTrack,r))}; eVL=function(e,a){e.logger.debug("setConstraint: "+Qz(a));l3(e.Md)&&(e.oH=a.reason==="m"||a.reason==="l"?!0:!1);a.reason==="m"?a.isLocked()&&j1z(e,a.S):uZJ(e,a)?KdN(e,a.T,a.S):e.videoInfos=e.Z;e.T=a}; uZJ=function(e,a){return e.Md.So&&a.reason==="b"||e.Md.IQ&&a.reason==="l"||e.Md.Od?!1:e.Md.gf?!0:a.reason==="l"||a.reason==="b"||a.reason==="o"}; am4=function(e,a){return a.isLocked()&&e.S.T||e.T===void 0?!1:a.equals(e.T)}; rZ4=function(e,a){var r,P=(r=e.L)==null?void 0:r.info.video.qualityOrdinal;return e.TQ?!0:e.L?a!==P?!0:!e.S.T||e.Md.VY&&e.S.S===e.L.info.itag?!1:!0:!1}; j1z=function(e,a){var r=e.S.S;if(r){e.videoInfos=e.Z;var P=g.tw(e.videoInfos,function(B){return B.id===r}); P&&P.video.qualityOrdinal===a?e.videoInfos=[P]:(P=e.videoInfos.map(function(B){return B.id}),e.loader.nf("sabrpf",{pfid:""+r, vfids:""+P.join(".")}),KdN(e,a,a),cu(e.S,""))}else KdN(e,a,a)}; KdN=function(e,a,r){e.videoInfos=e.Z;e.videoInfos=g.QX(e.videoInfos,function(P){return P.video.qualityOrdinal>=a&&P.video.qualityOrdinal<=r})}; PXO=function(e,a,r){if(e.Y){var P=g.QX(e.B,function(B){return B.id===e.Y}); return UI(P,r).includes(a)}P=g.QX(e.B,function(B){var h;return!((h=B.yX)==null||!h.isDefault)}); return P.length>0?UI(P,r).includes(a):UI(e.B,r).includes(a)}; UI=function(e,a){return e.map(function(r){return Sv(g.MW(r,a))})}; BdL=function(e){var a;if((a=e.T)==null?0:a.isLocked())return e.videoInfos;var r=hr(e.S);a=g.QX(e.videoInfos,function(P){return P.NF>e.Md.NF?!1:!r.has(P.id)}); XOJ(e.S)&&(a=g.QX(a,function(P){return P.video.width<=854&&P.video.height<=480})); return a}; cZj=function(e,a,r){var P=e.Qm,B=e.uW.getVideoData(),h=e.G5,c=tvz({gP:B.G(),uW:e.uW,BY:e.BY,Md:e.Md,qh:e.qh,Iv:e.Iv,VV:e.VV,Ep:e.Ep,Qh:e.Qh,isPrefetch:e.isPrefetch,IB:e.IB,sabrLicenseConstraint:B.sabrLicenseConstraint,nN:e.nN,rR:e.rR,CA:e.CA,X8:e.X8,e$:!!h,authorizedFormats:B.authorizedFormats}),y=Lo(B,e.H0,e.nextRequestPolicy,e.A5,e.OZ,e.OY,e.PN);r&&a&&(r=y.Hx?y.Hx.map(function(A){return A.type}):[],a("sabr",{stmctxt:r.join("_"), unsntctxt:y.Vd?y.Vd.join("_"):""}));a=e.Jq;r=e.yb;if(r===void 0&&a===void 0){var T;r=hVT(P.QX,(T=e.WN)==null?void 0:T.video);var X;a=hVT(P.QX,(X=e.WN)==null?void 0:X.audio)}if(B.XG)var f=B.XG;B={oR:c,JO:e.JO,Jq:a,yb:r,G5:h,videoPlaybackUstreamerConfig:f,b0:y};e.GT&&(B.GT=e.GT);B.BO=e.BO;B.TW=P.GQ;return B}; hVT=function(e,a){return a?[g.MW(a.info,e)]:[]}; C2=function(e,a,r){var P=this;this.requestType=e;this.Kr=a;this.Lr=r;this.T=null;this.Ob={N_M:function(){var B;return(B=P.data)==null?void 0:B.isPrefetch}, OZ:function(){var B;return(B=P.data)==null?void 0:B.OZ}}}; NSy=function(e,a,r){a=qE(e.Kr,oGO(e,a,r),a);e.cS()&&a.set("probe","1");return a}; oGO=function(e,a,r){e.rD===void 0&&(e.rD=e.Kr.rD(a,r));return e.rD}; nGj=function(e){var a,r;return((a=e.S)==null?void 0:(r=a.oR)==null?void 0:r.Ff)||0}; yZ4=function(e){var a,r;return!!((a=e.S)==null?0:(r=a.oR)==null?0:r.nN)}; Td3=function(e){var a={},r=[],P=[];if(!e.data)return a;for(var B=0;B0;T--)r.push(y)}r.length!==c?a.error=!0:(h=r.slice(-h),r.length=B,lmL(a,r,h));break;case 1:lmL(a,xU,JZ4);break;case 0:LOL(a, a.S&7);r=vt(a,16);B=vt(a,16);(r^B)!==65535&&(a.error=!0);a.output.set(a.data.subarray(a.T,a.T+r),a.B);a.T+=r;a.B+=r;break;default:a.error=!0}e.B>e.output.length&&(e.output=new Uint8Array(e.B*2),e.B=0,e.T=0,e.L=!1,e.S=0,e.register=0)}e.output.length!==e.B&&(e.output=e.output.subarray(0,e.B));return e.error?new Uint8Array(0):e.output}; lmL=function(e,a,r){a=Qmy(a);r=Qmy(r);for(var P=e.data,B=e.output,h=e.B,c=e.register,y=e.S,T=e.T;;){if(y<15){if(T>P.length){e.error=!0;break}c|=(P[T+1]<<8)+P[T]<>=7;X<0;)X=a[(c&1)-X],c>>=1;else c>>=X&15;y-=X&15;X>>=4;if(X<256)B[h++]=X;else if(e.register=c,e.S=y,e.T=T,X>256){c=Ht[X];c+=vt(e,Ih[X]);T=WOy(e,r);y=qD[T];y+=vt(e,DgT[T]);if(wbj&&cr.length&&(e.error=!0);e.register|=(r[P+1]<<8)+r[P]<=0)return LOL(e,r&15),r>>4;for(LOL(e,7);r<0;)r=a[vt(e,1)-r];return r>>4}; vt=function(e,a){for(;e.S=e.data.length)return e.error=!0,0;e.register|=e.data[e.T++]<>=a;e.S-=a;return r}; LOL=function(e,a){e.S-=a;e.register>>=a}; Qmy=function(e){for(var a=[],r=g.Z(e),P=r.next();!P.done;P=r.next())P=P.value,a[P]||(a[P]=0),a[P]++;var B=a[0]=0;r=[];var h=0;P=0;for(var c=1;c7&&(h+=a[c]);for(B=1;B>T&1;y=h<<4|c;if(c<=7)for(T=1<<7-c;T--;)P[T<>=7;c--;){P[T]||(P[T]=-a,a+=2);var X=B&1;B>>=1;T=X-P[T]}P[T]=y}}return P}; iQN=function(e){var a,r,P,B,h,c,y,T,X;return g.Y(function(f){switch(f.T){case 1:if(!pby)throw Error("DecompressionStream is not supported");a=D0.p6();r=new DecompressionStream("gzip");P=r.writable.getWriter();P.write(e);P.close();B=r.readable.getReader();h=new rH([]);case 2:return g.l(f,B.read(),5);case 5:c=f.S;y=c.value;if(T=c.done){f.Oo(4);break}h.append(y);f.Oo(2);break;case 4:return X=og(h),D0.ZU("gznb",a,Math.ceil(X.byteLength/16)),f.return(X)}})}; zVj=function(e){po.call(this,"onesie");this.m2=e;this.S={};this.L=!0;this.B=null;this.queue=new dgO(this);this.C={}}; Ndj=function(e){var a=e.queue;a.S.length&&a.S[0].isEncrypted&&!a.T&&(a.S.length=0);a=g.Z(Object.keys(e.S));for(var r=a.next();!r.done;r=a.next()){r=r.value;var P=e.S[r];if(!P.un){var B=e.queue;B.S.push({videoId:P.videoId,formatId:r,isEncrypted:!1});B.T||gq(B)}}}; xgI=function(e,a){var r=a.totalLength,P=!1;switch(e.B){case 0:e.lR(a,e.L).then(function(B){var h=e.m2;h.M5("oprr");h.playerResponse=B;h.U7||(h.tq=!1);Rh(h)},function(B){e.m2.fail(B)}); break;case 2:e.M5("ormk");a=og(a);e.queue.decrypt(a);break;default:P=!0}e.m2.Dt&&e.m2.nf("ombup","id.11;pt."+e.B+";len."+r+(P?";ignored.1":""));e.B=null}; Imj=function(e,a){var r,P,B,h,c;return g.Y(function(y){switch(y.T){case 1:e.m2.M5("oprgz_s");if(!pby){y.Oo(2);break}g.kN(y,3);return g.l(y,iQN(a),5);case 5:return r=y.S,e.m2.M5("oprgz_n"),y.return(r);case 3:P=g.Q3(y),e.m2.nf("gzerr",{impl:"native",err:""+P});case 2:if(B=e.m2.G().n5)try{var T=D0.p6(),X=B.Sq(a),f=B,A=X!=null?X:a,U=A.byteOffset,C=A.byteLength,G=f.exports.getInflatedSize(U,C);if(G===0)throw Error("wasm_gz: bad input");var O=f.malloc(G),d=f.exports.inflateGzip(U,C,O);if(d)throw f.free(O), Error("wasm_gz: fail"+d);var W=new Uint8Array(f.exports.memory.buffer,O,G);X&&B.free(X.byteOffset);var V=B.zj(W);D0.ZU("gzwb",T,Math.ceil(V.byteLength/16));h=V;e.m2.M5("oprgz_w");return y.return(h)}catch(L){e.m2.nf("gzerr",{impl:"wasm",err:""+L})}T=D0.p6();X=g.YAl(new g.VPL(a));D0.ZU("gzjb",T,Math.ceil(X.byteLength/16));c=X;e.m2.M5("oprgz_p");return y.return(c)}})}; HQO=function(e){return new Promise(function(a){setTimeout(a,e)})}; qAL=function(e,a){var r=e.G();r=e.gT&&r.X("html5_onesie_preload_use_content_owner");var P=e.iz,B=Et(a.iW.experiments,"debug_bandaid_hostname");if(B)a=EI(a,B);else if((r===void 0?0:r)&&(P==null?0:P.url)&&!a.T){var h=Sj(new g.v2(P.url));a=EI(a,h)}else a=(h=a.S.get(0))==null?void 0:h.location.clone();if(a&&e.videoId){h=Qw(e.videoId);e=[];if(h)for(h=g.Z(h),r=h.next();!r.done;r=h.next())e.push(r.value.toString(16).padStart(2,"0"));a.set("id",e.join(""));return a}}; vGL=function(e,a,r){r=r===void 0?0:r;var P,B;return g.Y(function(h){if(h.T==1)return P=[],P.push(a.load()),r>0&&P.push(HQO(r)),g.l(h,Promise.race(P),2);B=qAL(e,a);return h.return(B)})}; RVj=function(e,a,r,P){P=P===void 0?!1:P;e.set("cpn",a.clientPlaybackNonce);e.set("opr","1");var B=a.G();e.set("por","1");cr()||e.set("onem","1");a.startSeconds>0&&e.set("osts",""+a.startSeconds);P||(B.X("html5_onesie_disable_partial_segments")&&e.set("oses","1"),a=B.X("html5_gapless_onesie_no_media_bytes")&&J3(a)&&a.gT,r&&!a?(a=r.audio,e.set("pvi",r.video.join(",")),B.X("html5_onesie_disable_audio_bytes")||e.set("pai",a.join(",")),GA||e.set("osh","1")):(e.set("oad","0"),e.set("ovd","0"),e.set("oaad", "0"),e.set("oavd","0")))}; SAl=function(e,a,r,P,B){B=B===void 0?!1:B;var h="https://youtubei.googleapis.com/youtubei/"+a.vI.innertubeApiVersion+"/player",c=[{name:"Content-Type",value:"application/json"}];P&&c.push({name:"Authorization",value:"Bearer "+P});c.push({name:"User-Agent",value:g.zX()});g.IM("EOM_VISITOR_DATA")?c.push({name:"X-Goog-EOM-Visitor-Id",value:g.IM("EOM_VISITOR_DATA")}):(r=r.visitorData||g.IM("VISITOR_DATA"))&&c.push({name:"X-Goog-Visitor-Id",value:r});(r=g.IM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&c.push({name:"X-YouTube-Lava-Device-Context", value:r});(a=Et(a.experiments,"debug_sherlog_username"))&&c.push({name:"X-Youtube-Sherlog-Username",value:a});e=G3(JSON.stringify(e));return{url:h,sT:c,postBody:e,Hy1:B,gO:B}}; smq=function(e,a,r,P,B,h,c){var y=e.bJ,T=e.YU;e=e.qUW;var X=y!==void 0&&T!==void 0,f=P.getVideoData(),A,U=a.S.encryptedClientKey;a=X?a.iv:void 0;X=vM(r.schedule,!0);B=B||!!cr()&&X>1572864;return{innertubeRequest:{yAQ:e,Ez:y,YU:T,encryptedClientKey:U,iv:a,PBr:!0,gG:!0,Fc:"DecompressionStream"in window||!B,ou$:r.experiments.FM("html5_use_jsonformatter_to_parse_player_response")},oR:tvz({gP:r,uW:P,BY:f.startSeconds*1E3}),onesieUstreamerConfig:h,aG:c,b0:Lo(f),reloadPlaybackParams:(A=f.lq)==null?void 0: A.reloadPlaybackParams}}; mg4=function(e,a,r,P,B,h){var c=g.S_(e,$K),y;if(!e.gO)if(y=UgN(a,c)){var T=y.O_;y=y.signature}else y=T=a.encrypt(c),(0,g.Ov)(),y=Bll(new Ph3(a.S.B),y,a.iv);return smq(T&&y?{bJ:T,YU:y}:{qUW:c},a,r,P,!!e.gO,B,h)}; FOL=function(e,a,r,P,B,h){var c,y,T;return g.Y(function(X){if(X.T==1)return c=g.S_(e,$K),g.l(X,AZI(a,c),2);if(X.T!=3)return y=X.S,g.l(X,CX4(a,y),3);T=X.S;return X.return(smq({bJ:y,YU:T},a,r,P,!!e.gO,B,h))})}; MPO=function(e,a,r,P,B,h){var c=g.S_(e,$K);if(c=UgN(a,c))return smq({bJ:c.O_,YU:c.signature},a,r,P,!!e.gO,B,h)}; sI=function(e,a){g.N.call(this);var r=this;this.uW=e;this.playerRequest=a;this.logger=new g.bl("onesie");this.xhr=null;this.state=1;this.mM=new kF;this.SF=!1;this.playerResponse="";this.NQ=new UR(this);this.tB=new zVj(this);this.CQ="";this.hZ=this.jF=!1;this.fm="";this.enableCompression=this.U7=this.Bu=!1;this.gN=[];this.F6=-1;this.WD=0;this.iW=this.uW.G();this.videoData=this.uW.getVideoData();this.Dt=this.iW.UM();this.TO=this.iW.Q2;this.NE=new Xb4(this.TO.S);this.Qi=this.iW.X("html5_onesie_check_timeout"); this.l3=new g.vP(this.Qe,500,this);this.ip=new g.vP(this.XQ,1E4,this);this.NZ=new g.vP(function(){if(!r.isComplete()){var P=SR(r);r.fail(new g.f_("net.timeout",P))}},1E3); this.sI=new g.vP(this.n$d,2E3,this);this.rj=this.uW.Pf();this.tq=this.X("html5_onesie_wait_for_media_availability");g.x(this.videoData,this);g.x(this,this.l3);g.x(this,this.ip);g.x(this,this.sI);e=tG();GA&&e&&(this.EU=new Map);this.bb=new Map;this.As=new Map;this.KG=new Map;this.QT=new Map}; tF=function(e,a){var r;return(r=e.EU)==null?void 0:r.get(a)}; uUj=function(e,a,r){var P;return g.Y(function(B){if(B.T==1)return e.M5("oprd_s"),jm4(e)?g.l(B,GFT(e.NE,a,r),3):(P=e.NE.decrypt(a,r),B.Oo(2));B.T!=2&&(P=B.S);e.M5("oprd_c");return B.return(P)})}; KOI=function(e){return e.X("html5_onesie_host_probing")||e.Dt?GA:!1}; Rh=function(e){if(!e.playerResponse)return!1;if(e.Bu)return!0;var a=e.videoData.X("html5_onesie_audio_only_playback")&&Do(e.videoData);if(e.EU&&e.tq){if(!e.EU.has(e.CQ))return!1;var r=e.EU.get(e.CQ),P;if(P=r){P=!1;for(var B=g.Z(r.PO.keys()),h=B.next();!h.done;h=B.next())if(h=r.PO.get(h.value))for(var c=g.Z(h.Q6),y=c.next();!y.done;y=c.next())y.value.E3>0&&(h.sU?P=!0:a=!0);P=!(a&&P)}if(P)return!1}e.M5("ofr");e.mM.resolve(e.playerResponse);if(!e.Qi){var T;(T=e.NZ)==null||T.start();e.ip.start()}return e.Bu= !0}; aoL=function(e){if(e.EU&&!e.X("html5_onesie_media_capabilities")){e.M5("ogsf_s");var a=AMq(e.uW.getVideoData(),function(P,B){e.nf(P,B)}),r=eol(e.uW); a.video=BSl(r,a.video);e.M5("ogsf_c");if(a.video.length)return a;e.nf("ombspf","l."+r.T+";u."+r.S+";o."+r.B+";r."+r.reason)}}; jm4=function(e,a){return e.X("html5_onesie_sync_request_encryption")||(a==null?0:a.gO)||g.OA(e.iW)&&e.X("html5_embed_onesie_use_sync_encryption")?!1:!!cr()}; SR=function(e){if(!e.Su)return{};var a=e.Su.Sr(),r;a.d=(r=e.Su.Lf)==null?void 0:r.n_();a.shost=e.kd;a.ty="o";return a}; r3I=function(e,a){var r,P;(P=(e=(r=e.EU)==null?void 0:r.get(a))==null)||(a=e.B?!1:e.B=!0,P=!a);return!P}; Pzj=function(e,a,r,P,B,h,c,y,T,X,f,A){g.N.call(this);var U=this;this.uW=e;this.loader=a;this.policy=r;this.audioTrack=P;this.videoTrack=B;this.Qm=h;this.e5=c;this.k$=y;this.B=T;this.timing=X;this.N=f;this.Cf=A;this.S=[];this.C={};this.GQ=this.PW=!1;this.L=this.Uo=this.HW=this.ym=this.Qh=0;this.Y=null;this.TQ={BO:[],JO:[]};this.Eo={BO:[],JO:[]};this.D=null;this.Z=[];this.Ob={CPo:function(){return U.S}, yN1:function(){return U.C}, yLQ:function(){U.S.length=0}, pSr:function(){return U.videoData.k$}, HSH:function(){return U.HW}, oYd:function(C){U.HW=C}, bi1:function(C){U.L=C}, Gn:function(C){U.D=C}, hp:function(C){U.Z=C}}; this.videoData=this.uW.getVideoData();this.policy.gT&&(this.e1=new Pt(this.loader,this.policy,this.e5),g.x(this,this.e1))}; c34=function(e,a){a=a===void 0?!1:a;if(B3q(e)){e.policy.Z&&e.loader.nf("sabrcrq",{create:1});var r=new C2(0,e.Qm.Y,e);e.policy.A1>0&&e.L++;a=hoJ(e,r,a);e.S.push(a);var P;(P=e.e1)==null||inO(P,e.Qm.Y)}}; y34=function(e,a){var r=o0z(e);if(e.policy.ZZ){var P=e.TQ;var B=e.Eo}else P=m3(e,e.audioTrack),B=m3(e,e.videoTrack);var h=[].concat(g.UO(P.BO),g.UO(B.BO));F1(e)&&h.push.apply(h,g.UO(e.Z));var c=[].concat(g.UO(P.JO),g.UO(B.JO)),y=e.loader.ut();if(e.policy.bK&&!e.videoData.isLivePlayback){var T=e.videoData.lengthSeconds*1E3;r>=T&&e.loader.nf("invalidSabrCmt",{cmt:r,vd:T})}var X,f;T=e.uW;var A=e.Qm,U=e.T,C=e.videoData.k$,G=e.policy,O=e.loader.E7,d=qtJ(e.loader)*1E3,W=(X=e.Lf)==null?void 0:X.VV;X=(f= e.Lf)==null?void 0:f.Ep;var V;f=Number((V=e.B.L)==null?void 0:V.info.itag)||0;var L;V=Number((L=e.B.C)==null?void 0:L.info.itag)||0;a={uW:T,Qm:A,BO:h,JO:c,BY:r,nextRequestPolicy:U,A5:C,Md:G,qh:O,Iv:d,VV:W,Ep:X,Qh:e.Qh,isPrefetch:a||e.loader.isSuspended,xz:f,h_:V,H0:y,PN:e.uW.xa()};r=e.loader.xZ();h=Qw(r);r&&(a.OZ=h);if(r=e.uW.w2())a.nN=r*1E3;var z;r=e.B;h=r.HW;if(((z=r.Md)==null?0:l3(z))&&!h)for(z=g.Z(r.B),c=z.next();!c.done;c=z.next())if(c.value.yX){h=!0;break}z=l3(r.Md)&&!h?[]:MD3(r,r.B);a.Jq=z; z=e.B;l3(z.Md)&&!z.oH?z=[]:(r=BdL(z),r.length===0&&(r=z.Z),z=MD3(z,r));a.yb=z;a.G5=F1(e)?[e.D]:void 0;e.policy.Ed&&(a.CA=n0q(e.loader,e.audioTrack),a.X8=n0q(e.loader,e.videoTrack));if(e.policy.T){z=e.loader.getCurrentTime();P=MD(e,P.BO,z);B=MD(e,B.BO,z);B=Math.min(P,B);F1(e)&&(P=MD(e,e.Z,z),e.uW.UM()&&P0&&e.S[0].LJ()&&(a.OY=e.S[0].o3());return a}; o0z=function(e){var a,r=e.policy.C&&((a=e.loader)==null?void 0:a.ue());a=e.loader.getCurrentTime()||0;a=T34(e,a);var P=e.loader.t9()||0;a+=P;P=M4(e.videoData)||g.FL(e.videoData);var B=0;r?(P&&(B=Number.MAX_SAFE_INTEGER),e.videoData.TQ&&(B=Math.ceil(e.videoData.Eo*1E3))):B=Math.ceil(a*1E3);return Math.min(Number.MAX_SAFE_INTEGER,B)}; F1=function(e){return e.policy.QH&&!!e.D}; T34=function(e,a){if(e.loader.isSeeking())return a;var r=e.uW.rg();if(!r)return a;r=r.vV();if(r.length===0||h0(r,a))return a;if(!uj(e.videoTrack,a)&&!uj(e.audioTrack,a))return e.loader.nf("sundrn",{b:0,lt:a}),a;for(var P=a,B=Infinity,h=0;ha)){var c=a-r.end(h);c=20)?(e.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),a):P}; MD=function(e,a,r){e=e.loader.t9()||0;return jR(a,(r+e)*1E3)/1E3+r}; B3q=function(e){if(e.policy.A1>0){var a=Math.floor((0,g.Ov)()/1E4);if(a===e.Uo){if(e.L>=e.policy.A1){if(e.L===e.policy.A1){var r={reason:"toomanyrequests"};r.limit=e.L;e.loader.handleError("player.exception",r);e.L+=1}return!1}}else e.Uo=a,e.L=0}if(e.loader.isSuspended&&e.loader.Ea)return!1;if(e.oH&&(0,g.Ov)()0&&(!e.policy.N||e.S.length!==1||!e.S[0].LJ()))return!1;var P;if((P=e.Qm.Y)==null||!RO(P,e.policy,e.C,e.loader.jk())||Fo(e.audioTrack)&&Fo(e.videoTrack))return!1; if(e.policy.T)if(e.policy.ID){var B;if((B=e.Cf)==null?0:y2J(B))return!1}else{a=!1;if(e.N.T===2)a=!0;else if(e.N.T===3){o0z(e);e.loader.t9();var h=xb(e.audioTrack,e.loader.isSeeking()).BO;P=xb(e.videoTrack,e.loader.isSeeking()).BO;B=e.loader.getCurrentTime()||0;h=MD(e,h,B);P=MD(e,P,B);P=Math.min(h,P);B=e.N;P>=B.C?(B.nf("sdai",{haltrq:P,est:B.C}),P=!0):P=!1;P&&(a=!0)}a&&e.policy.Z&&e.loader.nf("sabrcrq",{waitad:1});if(a)return!1}e.policy.ZZ&&(e.TQ=m3(e,e.audioTrack),e.Eo=m3(e,e.videoTrack));if(!e.T)return e.policy.Z&& e.loader.nf("sabrcrq",{nopolicy:1}),!0;if(e.uW.w2())return e.policy.Z&&e.loader.nf("sabrcrq",{utc:1}),!0;if(e.B.D)return e.policy.Z&&e.loader.nf("sabrcrq",{audio:1}),!0;if(!e.T.targetAudioReadaheadMs||!e.T.targetVideoReadaheadMs)return e.policy.Z&&e.loader.nf("sabrcrq",{noreadahead:1}),!0;if(e.policy.C&&e.loader.ue())return e.policy.Z&&e.loader.nf("sabrcrq",{seekToHead:1}),!0;a=Math.min(ro(e.loader,e.audioTrack)*1E3,e.T.targetAudioReadaheadMs);P=Math.min(ro(e.loader,e.videoTrack)*1E3,e.T.targetVideoReadaheadMs); var c=Math.min(a,P);B=Rx(e.audioTrack,!0)*1E3;h=Rx(e.videoTrack,!0)*1E3;var y=e.uW.getCurrentTime()*1E3;if(e.policy.ZZ){var T=jR(e.TQ.BO,y);var X=jR(e.Eo.BO,y)}else T=B,X=h;var f=Ta||P>=0&&B.R$>P+1)break;r=Math.max(r,B.startTimeMs+B.durationMs);P=Math.max(P,B.gL)}return Math.max(0,r-a)}; hoJ=function(e,a,r){var P={e5:e.e5,fQ:function(T,X){e.uW.wi(T,X)}, wu:e.policy.w0,eJ:e.policy.B};e.e5.T.Z&&(P.P8=(e.videoTrack.S.info.NF||0)+(e.audioTrack.S.info.NF||0));e.policy.Tm&&(P.jT=e.audioTrack.S.index.cM(),P.wu=!1);var B=oGO(a,e.policy,e.C)?2:1;B!==e.HW&&(e.HW=B,foz(e));r=y34(e,r);if(e.policy.N&&e.policy.B&&r.A5){for(var h=B="",c=g.Z(r.A5),y=c.next();!y.done;y=c.next())y=y.value,e.videoData.sabrContextUpdates.has(y)||e.policy.N&&r.OY&&r.OY.type===y?B+="_"+y:h+="_"+y;e.loader.nf("sabrbldrqs",{ctxts:B,misctxts:h})}!a.setData(r,e.policy,e.C)&&e.policy.N&&e.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);P=new RN(e.policy,a,e.Qm,e.C,e,P,e.loader.Pf());S6(e.timing);e.policy.Z&&e.loader.nf("sabrcrq",{rn:P.wc(),probe:a.cS()});return P}; K2=function(e,a){if(a.wP()||e.wP())e.policy.lq||(e.policy.C?un(e.loader):e.loader.CB());else{if(e.policy.B&&a.isComplete()&&a instanceof RN){var r=e.loader,P=r.nf,B,h,c=Object.assign(a.Su.Sr(),{rst:a.state,strm:a.xhr.y4(),d:(B=a.Su.Lf)==null?void 0:B.n_(),cncl:a.xhr&&a.Ub.L?1:0,rqb:a.Eq,cwt:a.Hd,swt:(h=a.qa)==null?void 0:h.vc});B=Object.assign(Td3(a.info),c);P.call(r,"rqs",B)}if(a.isComplete()&&a.cS()&&a instanceof RN)e.policy.Q2?a.xW()?(a.dispose(),e.S.length===0?e.loader.CB():(e=e.S[0],e instanceof RN&&e.lP()&&e.Ms())):a.md()&&e.loader.handleError(a.P7(),a.Pj()):(a.dispose(),e.loader.CB());else{if(a.hm())a instanceof RN&&jOz(e.timing,a),foz(e),A33(e);else if(a.md())r=e.uW.w2(),a instanceof RN&&yZ4(a.info)&&r&&e.loader.oy(r),a instanceof sI?e.S.pop():(r=1,a.canRetry()&&s14(e.loader)&&(U4q(e,a),r=0),e.loader.handleError(a.P7(),a.Pj(),r));else{if(e.loader.isSuspended&&!a.isComplete())return;A33(e)}a.wP()||a instanceof sI||(a.isComplete()?r=xRj(a,e.policy,e.C):(r=NVl(a,e.policy,e.C),r===1&&(e.PW= !0)),r!==0&&(P=new C2(1,a.info.Kr),P.rD=r===2,hoJ(e,P)));e.policy.Te&&!a.isComplete()?Ti(e.loader):e.loader.CB()}}}; A33=function(e){for(;e.S.length&&e.S[0].BR(e.Y2());){var a=e.S.shift();CzI(e,a)}e.S.length&&CzI(e,e.S[0])}; CzI=function(e,a){a instanceof RN&&(e.XM=a);var r=new Set(a.wC(e.Y2()));r=g.Z(r);for(var P=r.next();!P.done;P=r.next()){var B=P.value;if(!(P=!(a instanceof sI))){P=e.B;var h=P.Qm.QX,c=UI(P.videoInfos,h);h=PXO(P,B,h);var y=c.includes(B);!P.Md.Au||h||y||P.loader.nf("sabrcpf",{fid:""+B,vfids:""+c.join("."),said:P.Y||""});P=h||c.includes(B)}if(P&&(P=a.GJ(B,e.Y2()),c=e.policy.QH&&K_(P[0].S.info.mimeType),a.Pr(B,e.Y2())))for(B=a.Va(B,e.Y2()),B=g.Z(B),h=B.next();!h.done;h=B.next())if(h=h.value,e.policy.B&& a instanceof sI&&e.loader.nf("omblss",{s:h.info.Kb()}),c)y=e.timing,y.HW||(y.HW=(0,g.Ov)(),g.KZ("fcb_r",y.HW,y.S)),y=e,y.videoData.QX()&&y.D&&Sv(y.D)===Sv(g.MW(h.info.S.info,y.Qm.QX))&&y.uW.publish("sabrCaptionsDataLoaded",h,y.hp.bind(y));else{y=h.info.S.info.sU();var T=h.info.S;if(y){var X=void 0;var f=e.B,A=(X=a.u2(e.Y2()))==null?void 0:X.token;f.D&&T!==f.C?X=!0:(f.D=!1,T!==f.C&&(f.C=T,f.PU(T,f.audioTrack,A)),X=!1);if(X)continue}else X=void 0,FdI(e.B,T,(X=a.u2(e.Y2()))==null?void 0:X.token);X=y? e.audioTrack:e.videoTrack;a instanceof sI&&(X.D=!1,a instanceof sI&&(y?vkO(e.timing):qk4(e.timing)));try{Nb(X,P,h)}catch(U){h=Ud(U),e.loader.handleError(h.errorCode,h.details,h.severity),X.GA(),e.O3(!1,"pushSlice"),un(e.loader)}}}}; U4q=function(e,a){e.policy.N?e.S.splice(e.S.indexOf(a)).forEach(function(r){r.dispose()}):(e.S.pop(),a==null||a.dispose())}; GcT=function(e,a,r){for(var P=[],B=0;B0)for(var a=g.Z(e.videoData.sabrContextUpdates.keys()),r=a.next();!r.done;r=a.next()){r=r.value;var P=void 0;((P=e.videoData.sabrContextUpdates.get(r))==null?0:P.sendByDefault)&&e.videoData.k$.add(r)}if(e.policy.N&&e.S.length)for(a=g.Z(e.S),r=a.next();!r.done;r=a.next())(r=r.value.o3())&&r.type&&r.sendByDefault&&e.videoData.k$.add(r.type)}; E04=function(e){e.policy.AC&&(e.Lf=void 0,e.Qh=0)}; bY4=function(e,a){if(a.md()||a.wP()){var r=e.loader,P=r.nf,B=a.state;e=e.Y2();var h,c;if((a=(h=a.EU)==null?void 0:h.get(e))==null)a=void 0;else{h=0;e=a.wC();for(var y=0;y=a.mediaTime&&g.S(e.uW.getPlayerState(),8)?(a.resolve([a.mediaTime,a.id]),e.S.delete(a.id)):(a.delay.dispose(),a.delay=new g.vP(function(){OY3(e,a)},(a.mediaTime-r)*1E3/e.uW.getPlaybackRate()),a.delay.start())}; D4z=function(e,a,r,P){var B=this;this.B=e;this.cpn=a;this.uW=r;this.S=P;this.T=new Map;this.C=new Map;this.D=this.Y=NaN;this.Z=!1;this.u$="";this.isSeeking=!1;this.N=0;this.L=new g04(r);this.Ca=r.Ca;this.uW.subscribe("SEEK_TO",function(){B.V6()}); this.uW.subscribe("SEEK_COMPLETE",function(){J3z(B)})}; $4j=function(e,a){if(!e.isSeeking&&e.N!==a&&!isNaN(e.Y)){e.N=a;var r=e.Z?e.D:e.B.I4(a);(r!==e.D||e.Z)&&Vtj(e,r,a)}}; Vtj=function(e,a,r){var P=e.T.get(a),B=e.B.getStartTime(a),h=e.B.getDuration(a);e.Z=!1;e.D=a;var c=B,y;((y=P==null?void 0:P.S)!=null?y:[e.cpn]).forEach(function(T,X){var f;X=(f=P==null?void 0:P.T[X])!=null?f:h;r>=c&&rB?LRN(e,h,e.T.get(h)):h===B&&LRN(e,h,e.T.get(h),P-e.B.getStartTime(h))})}; QGI=function(e,a,r,P){a!==e.u$&&(e.uW.nf("ssevt",{tag:e.S===0?"sstd-cr":e.S===1?"sstd-tm":e.S===2?"sstd-poll":e.S===3?"sstd-poll100":"sstd-unknown",ad:e.cpn!==a,cpn:a,st:r.toFixed(3),late:Math.round(e.isSeeking?0:(P-r)*1E3)}),e.u$=a)}; YTL=function(e){var a=g.Z(e.split("."));e=a.next().value;a=a.next().value;return[Number(e),a]}; lo3=function(e,a,r,P){r=a+"."+r;e.C.has(a)?e.C.get(a).push(r):e.C.set(a,[r]);e.S===1&&kc4(e.L,P,r).then(function(B){var h=g.Z(B);B=h.next().value;h=h.next().value;h=g.Z(YTL(h));h.next();h=h.next().value;QGI(e,h,B,ZYT(e.L))}); e.S===0&&(e.Ca.sC("transitiondetector",r),a=(P+e.uW.t9())*1E3,e.Ca.Ji([new g.v_(a,a+5E3,{id:r,namespace:"transitiondetector",priority:9})]))}; wEy=function(e,a,r,P,B){this.loader=e;this.policy=a;this.schedule=r;this.p9=P;this.N=B;this.HW=NaN;this.T=this.D=this.L=null;this.S=this.C=this.Z=this.startTimeSecs=NaN;this.B=!1;this.Y=NaN}; pET=function(e,a,r,P,B,h){return a.Yv&&a.py&&r===3?new wEy(e,a,P,B,h):null}; iYI=function(e,a){if(e.policy.Ph){var r=a.info.NF,P=vM(e.schedule);a=a.index.cM();r=Math.max(1,P/r);e.Y=Math.round(Math.max(((r-1)*a+e.policy.Ge)/r,a-e.policy.Kq)*1E3)}}; x43=function(e,a){var r=Date.now()/1E3,P=r-e.startTimeSecs,B=r-e.Z,h=B>=e.policy.D2,c=!1;if(h){var y=0;!isNaN(a)&&a>e.C&&(y=a-e.C,e.C=a);y/B=e.policy.Kq&&!e.B;if(!h&&!r&&zoL(e,a))return NaN;r&&(e.B=!0);a:{P=c;r=(0,g.Ov)()/1E3-(e.p9.rL()||0)-e.D.S-e.policy.Ge;h=e.T.startTime;r=h+r;if(P){if(isNaN(a)){eQ(e,NaN,"n",a);h=NaN;break a}P=a-e.policy.Ee;P0&&(y.headers=T);h&&(y.onFinish=h);return Object.keys(y).length>1? y:null}; Mtl=function(e,a,r,P,B,h,c,y){Pf()&&r.token&&(e=ew(e,{ctt:r.token,cttype:r.lH,mdx_environment:r.mdxEnvironment}));P.X("net_pings_low_priority")&&(a||(a={}),a.priority="low");h||y&&P.X("nwl_skip_retry")?(a==null?a={}:sGz(e,P.X("html5_assert_cpn_with_regex")),c?qx().sendAndWrite(e,a):qx().sendThenWrite(e,a,y)):a?(sGz(e,P.X("html5_assert_cpn_with_regex")),r4N(e,a)):g.Lu(e,B)}; jGI=function(e){for(var a=[],r=0;r0&&r>0&&!e.T&&e.B<1E7)try{e.L=e.C({sampleInterval:a,maxBufferSize:r});var P;(P=e.L)==null||P.addEventListener("samplebufferfull",function(){return g.Y(function(B){if(B.T==1)return g.l(B,e.stop(),2);eM4(e);g.OO(B)})})}catch(B){e.T=KRT(B.message)}}; aaq=function(e,a){var r,P;return!!((r=window.h5vcc)==null?0:(P=r.settings)==null?0:P.set(e,a))}; PL4=function(){var e,a,r,P=(e=window.h5vcc)==null?void 0:(a=e.settings)==null?void 0:(r=a.getPersistentSettingAsString)==null?void 0:r.call(a,"cpu_usage_tracker_intervals");if(P!=null){var B;e=(B=JSON.parse(P))!=null?B:[];B=e.filter(function(X){return X.type==="total"}).map(function(X){return X.seconds}); a=g.Z(rtL);for(r=a.next();!r.done;r=a.next())r=r.value,B.indexOf(r)===-1&&e.push({type:"total",seconds:r});var h,c;(h=window.h5vcc)==null||(c=h.settings)==null||c.set("cpu_usage_tracker_intervals_enabled",1);var y,T;(y=window.h5vcc)==null||(T=y.settings)==null||T.set("cpu_usage_tracker_intervals",JSON.stringify(e))}}; BCl=function(){var e=window.H5vccPlatformService,a="";if(e&&e.has("dev.cobalt.coat.clientloginfo")&&(e=e.open("dev.cobalt.coat.clientloginfo",function(){}))){var r=e.send(new ArrayBuffer(0)); r&&(a=String.fromCharCode.apply(String,g.UO(new Uint8Array(r))));e.close()}return a}; g.B7=function(e){g.N.call(this);var a=this;this.provider=e;this.logger=new g.bl("qoe");this.S=new Map;this.sequenceNumber=1;this.oH=NaN;this.kf="N";this.Y=this.bd=this.RY=this.HW=this.T=0;this.dW=this.e1=this.Z=this.Uo="";this.Te=this.XM=NaN;this.J9=0;this.AC=-1;this.Q2=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.bv=this.isEmbargoed=this.Lf=this.isOffline=this.isBuffering=!1;this.kh=[];this.N=null;this.HA=this.L=this.rP=this.D=!1;this.B=-1;this.ym=!1;this.Ge=new g.vP(this.JV,750,this);this.kq= this.adCpn=this.Eo=this.contentCpn="";this.adFormat=void 0;this.Yf=0;this.k$=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.QH=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.T$=!1;this.h9=NaN;this.Cf=0;this.ID=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.sM=!1;this.RO=new Set;this.Ob={eN:function(P){a.eN(P)}, bSr:function(){return a.C}, X6:function(){return a.contentCpn}, Gf1:function(){return a.Eo}, reportStats:function(){a.reportStats()}, PK$:function(){return a.S.get("cat")||[]}, Nb:function(P){return a.S.get(P)||[]}, h_W:function(){return a.S}, ADH:function(){return 0}, UoF:function(){return{adCpn:a.adCpn,kq:a.kq,adFormat:a.adFormat}}}; this.TQ=this.provider.iW.X("html5_qoe_relaxed_reporting");var r=g.eS(this.provider.iW.experiments,"html5_qoe_proto_mock_length");r&&!rY.length&&(rY=jGI(r));g.x(this,this.Ge);try{navigator.getBattery().then(function(P){a.N=P})}catch(P){}g.P7(this,0,"vps",["N"]); e.iW.UM()&&(this.Cf=(0,g.Ov)(),this.h9=g.Xw(function(){var P=(0,g.Ov)(),B=P-a.Cf;B>500&&a.nf("vmlock",{diff:B.toFixed()});a.Cf=P},250)); this.provider.videoData.n8&&(this.remoteControlMode=hMj[this.provider.videoData.n8]||0);this.provider.videoData.qO&&(r=TI4(this.provider.videoData.qO),r==null?0:r.length)&&(this.remoteConnectedDevices=r);e.iW.UM()&&(this.PW=new qTj,g.x(this,this.PW));r=g.eS(e.iW.experiments,"html5_js_self_profiler_sample_interval_ms");e=g.eS(e.iW.experiments,"html5_js_self_profiler_max_samples");r>0&&e>0&&(this.GQ=new aR(r,e),g.x(this,this.GQ))}; hu=function(e,a,r){var P=e.S.get(a);P?P.push(r):e.S.set(a,[r])}; g.P7=function(e,a,r,P){hu(e,r,a.toFixed(3)+":"+P.join(":"))}; ctI=function(e,a){var r=e.adCpn||e.provider.videoData.clientPlaybackNonce,P=e.provider.getCurrentTime(r);g.P7(e,a,"cmt",[P.toFixed(3)]);r=P=e.provider.XI(r);if((!e.C||e.provider.iW.X("html5_shorts_gapless_no_gllat")&&J3(e.provider.videoData)?0:r*1E3>e.C.P6+100)&&e.C){var B=e.C;r=B.isAd;P=P*1E3-B.P6;e.lV=a*1E3-B.UfW-P-B.Byz;B=(0,g.Ov)()-P;a=e.lV;P=e.provider.videoData;var h=P.isAd();if(r||h){h=(r?"ad":"video")+"_to_"+(h?"ad":"video");var c={};P.Z&&(c.cttAuthInfo={token:P.Z,videoId:P.videoId});c.startTime= B-a;Dp(h,c);g.JA({targetVideoId:P.videoId,targetCpn:P.clientPlaybackNonce},h);dL("pbs",B,h)}else B=e.provider.uW.SM(),B.Z!==P.clientPlaybackNonce?(B.C=P.clientPlaybackNonce,B.T=a):P.z0()||g.VJ(new g.I6("CSI timing logged before gllat",{cpn:P.clientPlaybackNonce}));e.nf("gllat",{l:e.lV.toFixed(),prev_ad:+r});delete e.C}}; oR=function(e,a){a=a===void 0?NaN:a;a=a>=0?a:g.c7(e.provider);var r=e.provider.uW.UN(),P=r.mO-(e.XM||0);P>0&&g.P7(e,a,"bwm",[P,(r.kI-(e.Te||0)).toFixed(3)]);isNaN(e.XM)&&r.mO&&e.isOffline&&e.eN(!1);e.XM=r.mO;e.Te=r.kI;isNaN(r.bandwidthEstimate)||g.P7(e,a,"bwe",[r.bandwidthEstimate.toFixed(0)]);e.provider.iW.UM()&&Object.keys(r.S).length!==0&&e.nf("bwinfo",r.S);if(e.provider.iW.UM()||e.provider.iW.X("html5_log_meminfo"))P=IoJ(),Object.values(P).some(function(h){return h!==void 0})&&e.nf("meminfo", P); if(e.provider.iW.UM()){var B;(P=(B=e.PW)==null?void 0:v0l(B))&&Object.values(P).some(function(h){return h!=null})&&e.nf("cpuinfo",P)}e.GQ&&e.nf("jsprof",e.GQ.flush()); e.N&&g.P7(e,a,"bat",[e.N.level,e.N.charging?"1":"0"]);B=e.provider.uW.getVisibilityState();e.AC!==B&&(g.P7(e,a,"vis",[B]),e.AC=B);ctI(e,a);(B=odI(e.provider))&&B!==e.J9&&(g.P7(e,a,"conn",[B]),e.J9=B);ndy(e,a,r)}; ndy=function(e,a,r){if(!isNaN(r.kM)){var P=r.kM;r.T96E3&&(new g.vP(e.reportStats,0,e)).start()}}; XxL=function(e){e.provider.videoData.gT&&nJ(e,"prefetch");e.provider.videoData.sM&&e.nf("reload",{r:e.provider.videoData.reloadReason,ct:e.provider.videoData.sM});e.provider.videoData.rP&&nJ(e,"monitor");e.provider.videoData.isLivePlayback&&nJ(e,"live");GA&&nJ(e,"streaming");e.provider.videoData.n8&&e.nf("ctrl",{mode:e.provider.videoData.n8},!0);if(e.provider.videoData.qO){var a=e.provider.videoData.qO.replace(/,/g,"_");e.nf("ytp",{type:a},!0)}e.provider.videoData.En&&(a=e.provider.videoData.En.replace(/,/g, "."),e.nf("ytrexp",{ids:a},!0));a=e.provider.videoData;var r=e.provider.iW.X("enable_white_noise")||e.provider.iW.X("enable_webgl_noop"),P=g.N4(a)||g.jt(a)||g.uz(a)||g.KY(a);(r||P)&&(r=(0,g.yE)())&&e.S.set("gpu",[r]);Tg(e.provider.videoData)&&g.P7(e,g.c7(e.provider),"dt",["1"]);a.cotn&&!Tg(a)&&e.eN(!0);e.provider.iW.UM()&&(a=(0,g.Ov)()-e.provider.iW.sx,e.nf("playerage",{secs:Math.pow(1.6,Math.round(Math.log(a/1E3)/Math.log(1.6))).toFixed()}));e.L=!0;e.oH=g.Xw(function(){e.reportStats()},1E4)}; Aty=function(e,a,r){var P=g.c7(e.provider);faz(e,P,a,0,r);oR(e,P);TC4(e)}; faz=function(e,a,r,P,B){var h=e.provider.iW.S.cbrver;e.provider.iW.S.cbr==="Chrome"&&/^96[.]/.test(h)&&r==="net.badstatus"&&/rc\.500/.test(B)&&UY4(e,3);e.provider.iW.X("html5_use_ump")&&/b248180278/.test(B)&&UY4(e,4);h=e.provider.getCurrentTime(e.adCpn||e.provider.videoData.clientPlaybackNonce);P=P===1?"fatal":"";r=[r,P,h.toFixed(3)];P&&(B+=";a6s."+mc());B&&r.push(CLj(B));g.P7(e,a,"error",r);e.L=!0}; Ggy=function(e,a){var r=g.c7(e.provider);if(!e.provider.iW.experiments.FM("html5_refactor_sabr_video_format_selection_logging")||a.S.id!==e.Uo){var P=[a.S.id,a.T,e.Uo,a.reason];a.token&&P.push(a.token);g.P7(e,r,"vfs",P);e.Uo=a.S.id;P=e.provider.uW.getPlayerSize();if(P.width>0&&P.height>0){P=[Math.round(P.width),Math.round(P.height)];var B=g.bX();B>1&&P.push(B);g.P7(e,r,"view",P)}e.rP||(e.provider.iW.UM()&&nJ(e,"rqs2"),e.provider.videoData.S&&Lt(e.provider.videoData.S)&&e.S.set("preload",["1"]));e.rP= !0;e.L=!0}a.reason==="m"&&++e.Yf===100&&UY4(e,2);g.P7(e,r,"vps",[e.kf]);e.TQ||e.reportStats(r)}; Edz=function(e){e.B>=0||(e.provider.iW.mJ||e.provider.uW.getVisibilityState()!==3?e.B=g.c7(e.provider):e.ym=!0)}; bVj=function(e,a,r){var P=g.c7(e.provider);g.P7(e,P,"vfi",[a==="A"?"":""+(r!=null?r:0),a])}; tn4=function(e,a,r){if(e.provider.iW.experiments.FM("html5_refactor_sabr_audio_format_selection_logging")){a=r.S;var P=[a.audio&&a.video?a.Z$?a.Z$:"":a.id];a.yX&&a.yX.id&&P.push(a.yX.id);a=P.join(";");a!==e.Z&&(P=[a,e.Z,r.reason],r.token&&P.push(r.token),g.P7(e,g.c7(e.provider),"afs",P),e.Z=a)}else r.S.id!==e.Z&&(P=[r.S.id,e.Z,r.reason],r.token&&P.push(r.token),g.P7(e,a,"afs",P),e.Z=r.S.id)}; nJ=function(e,a){hu(e,"cat",a)}; gdL=function(e,a,r,P,B){var h=g.c7(e.provider);a!==1&&a!==3&&a!==5||g.P7(e,h,"vps",[e.kf]);hu(e,"xvt","t."+h.toFixed(3)+";m."+B.toFixed(3)+";g.2;tt."+a+";np.0;c."+r+";d."+P)}; UY4=function(e,a){e.HA||(hu(e,"fcnz",""+a),e.HA=!0)}; CLj=function(e){/[^a-zA-Z0-9;.!_-]/.test(e)&&(e=e.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return e}; g.fJ=function(e,a,r,P,B,h,c,y,T,X){y=y===void 0?!1:y;g.N.call(this);var f=this;this.uW=e;this.schedule=a;this.policy=r;this.Qm=P;this.TQ=T;this.RO=X;this.cW=null;this.Uo=this.GQ=this.XM=this.oH=0;this.nT=this.Ea=this.isSuspended=!1;this.k$="";this.QH={};this.ID=NaN;this.T$=0;this.Y=null;this.h9=this.e1=!1;this.E7=0;this.rP=!1;this.Cf=this.HA=0;this.Te=null;this.Dm=function(){return f.uW.Dm()}; this.timing=new HWL(this.RO);this.N=new RS(this.schedule,this.policy);this.J9=new g.vP(this.CB,0,this);this.dW=new g.vP(this.CB,this.policy.Te,this);this.Di=new g.vP(this.CB,1E3,this);this.kh=new g.vP(this.CB,void 0,this);this.PW=new g.vP(function(){f.isSuspended||f.CB()},1E4,this); this.AC=new g.vP(this.GX1,250,this);this.Z=this.currentTime=NaN;this.cC=new Y1(5);this.Lf=this.timestampOffset=NaN;this.logger=new g.bl("dash");this.Ge=Infinity;this.Ob={getAudioTrack:function(){return f.audioTrack}, trH:function(){return f.videoTrack}, getManifest:function(){return f.Qm}, UzW:function(){return f.T}, CB:function(){f.CB()}, n0:function(){f.oH=0;f.n0()}, PkH:function(U){return Tq(f,f.videoTrack,f.cW.T,U)}}; e=T&&T.wC();T&&(p5O(T,this.Qm,this.policy),this.Lf=Date.now());this.S=new nP(this,this.N,r,this.Qm,B,e);r=EEI(this.S,h,c&&c.id);this.audioTrack=new wt(this,this.policy,r.audio,this.timing);this.videoTrack=new wt(this,this.policy,r.video,this.timing);this.videoTrack.L.Eo=this.audioTrack.VT();this.ym={updateend:this.QS,error:this.zd1};g.x(this,this.J9);g.x(this,this.dW);g.x(this,this.Di);g.x(this,this.kh);g.x(this,this.PW);r=this.policy.IM&&this.policy.EQ?!W9I(this.videoTrack.S.info):!1;this.Q2=l5L({gD:this.policy.D.gD|| r,EQ:this.policy.EQ&&!r,Gf:this.policy.Gf});this.D=pET(this,this.policy,this.Q2,this.schedule,this.cC,function(U,C){return ZVz(f,U,C)}); this.B=new sR(this,this.Qm,this.policy,this.videoTrack,this.audioTrack,y);this.policy.PW&&this.policy.T&&(this.Eo=new oEz(function(U,C){f.nf(U,C)})); this.MC=new jz(this,this.Qm,this.videoTrack,this.audioTrack,this.policy);y=this.policy.TF?this.uW.getVideoData().XG:null;this.C=new Bt(this,this.policy,this.videoTrack,this.audioTrack,this.QH,this.B,this.timing,this.N,this.schedule,this.Qm,this.S,this.D,r,y);g.x(this,this.C);this.L=new AF(this,this.policy,this.videoTrack,this.audioTrack,this.Qm,B,Do(this.uW.getVideoData()),c==null?void 0:c.id);g.x(this,this.L);eVL(this.L,h);this.T=new Pzj(this.uW,this,this.policy,this.audioTrack,this.videoTrack,this.Qm, this.schedule,this.S,this.L,this.timing,this.B,this.Eo);g.x(this,this.T);this.HW=this.uW.hC.S0.EX;this.policy.C||OVq(this);if(this.policy.h1){var A;this.bv=new D4z(this.videoTrack.S.index,(A=this.uW.getVideoData().clientPlaybackNonce)!=null?A:"",this.uW,this.policy.HA);this.policy.HA===3&&(this.sM=new g.vP(this.C3,200,this),this.sM.start(),g.x(this,this.sM))}this.logger.debug("Created")}; OVq=function(e){var a,r;if((a=e.HW)==null?0:(r=a.CR)==null?0:r.itagDenylist){var P;e.d3((P=e.HW)==null?void 0:P.CR.itagDenylist)}var B;if((B=e.HW)==null?0:B.playbackStartPolicy){var h,c;rq(e.policy,(h=e.HW)==null?void 0:h.playbackStartPolicy,3,(c=e.HW)==null?void 0:c.wc())}if(e.policy.E8){a=e.Y2();var y;(r=a?(y=e.HW)==null?void 0:y.As.get(a):void 0)&&e.T.E5(r)}if(!e.Qm.N){var T;y=(T=e.HW)==null?void 0:T.SG;(y==null?0:y.d9)&&(y==null?0:y.Vf)&&e.Qm.QX&&mx(e.Qm,y.d9,y.Vf)}var X;((X=e.HW)==null?0:X.QT)&& (T=e.HW.QT.get(e.Y2()||""))&&e.Qm&&T.formatId&&(e=e.Qm.B.get(Sv(T.formatId)))&&(e.info.debugInfo=T.debugInfo)}; kgJ=function(e,a){var r=Sv(g.MW(a.S.info,e.Qm.QX)),P,B=((P=e.TQ)==null?void 0:P.GJ(r))||[];if(B.length===0)return e.nf("ombmsi",{}),!1;B=new h2(B);if(P=!e.policy.HW||isFinite(e.getCurrentTime())||e.uW.w2()){a:{P=e.getCurrentTime();B=g.Z(B.Vm);for(var h=B.next();!h.done;h=B.next())if(h=h.value,h.type===3&&P>=h.C&&P<=h.Z){P=!0;break a}P=!1}P=!P}if(P)return e.nf("ostmf",{ct:e.getCurrentTime(),a:a.S.info.sU()}),!1;(e=e.TQ)!=null&&(e.PO.get(r).I1=!0);return!0}; dYy=function(e){if(!e.Qm.QX)return!0;var a=e.uW.getVideoData();if(e.uW.Jb())return e.nf("ombpa",{}),!1;var r,P;if(!!((r=e.HW)==null?0:(P=r.SG)==null?0:P.yif)!==e.Qm.zX)return e.nf("ombplmm",{}),!1;r=a.T$||a.liveUtcStartSeconds||a.kh;if(e.Qm.zX&&r)return e.nf("ombplst",{}),!1;if(e.Qm.N)return e.nf("ombab",{}),!1;r=Date.now();return Fe(e.Qm)&&!isNaN(e.Lf)&&r-e.Lf>e.policy.l1*1E3?(e.nf("ombttl",{}),!1):e.Qm.lB&&e.Qm.L||!e.policy.Co&&e.Qm.isPremiere||zc(a)!==0&&!e.policy.S||a.X("html5_disable_onesie_media_for_mosaic")&& yT(a)||a.w1()&&!a.X("html5_enable_onesie_media_for_lifa")&&a.isDaiEnabled()&&a.enableServerStitchedDai||a.X("html5_disable_onesie_media_for_lifa_eligible")&&nV(a)?!1:!0}; Jt3=function(e,a){var r=a.S,P=e.Qm.QX;if(dYy(e))if(e.TQ&&e.TQ.PO.has(Sv(g.MW(r.info,P)))){if(P=Sv(g.MW(r.info,P)),kgJ(e,a)){var B=new h2(e.TQ.GJ(P)),h=function(c){try{if(c.md())e.handleError(c.P7(),c.Pj()),mr(a,c),ol(c.info)&&n2(e.C,a,r,!0),e.CB();else if(ya(e.C,c)){var y;(y=e.B)==null||r2q(y,c.info,e.Y);e.CB()}}catch(T){c=Ud(T),e.handleError(c.errorCode,c.details,c.severity),e.GA()}}; r.B=!0;cO(B)&&(zj(a,new uS(e.policy,P,B,e.TQ,h)),S6(e.timing))}}else e.nf("ombfmt",{})}; DY4=function(e,a){a=a||e.videoTrack&&e.videoTrack.T&&e.videoTrack.T.startTime||e.getCurrentTime();var r=X1,P=e.videoTrack,B=e.S;a=B.nextVideo&&B.nextVideo.index.I4(a)||0;B.Eo!==a&&(B.Cf={},B.Eo=a,y_(B,B.S));a=!B.S.isLocked()&&B.N>-1&&(0,g.Ov)()-B.Na.S&&a.reason==="b";P||B||r?(e.uW.nE({reattachOnConstraint:P?"u":B?"drm":"perf",lo:a.T,up:a.S}),e.policy.VY||(e.L.S.T=!1)):(e.policy.VY&&(e.L.S.T=!1),un(e))}}else if(!bzL(e.S,a)&&e.videoTrack){e.logger.debug(function(){return"Setting constraint: r="+a.reason+" u="+a.S}); r=e.S.S;wxI(e,gEO(e.S,a));DY4(e);P=a.isLocked()&&a.reason==="m"&&e.S.oH;B=e.policy.n5&&a.reason==="l"&&Mb(e.videoTrack);r=r.S>a.S&&a.reason==="b";var h=e.S.ym&&!UD();P||B||r||h?e.uW.nE({reattachOnConstraint:P?"u":B?"drm":h?"codec":"perf"}):un(e)}}; iVN=function(e,a,r){if((!e.cW||ED(e.cW)&&!e.policy.Iq)&&!e.MC.isSeeking()&&(e.policy.S||Mb(a)&&a.S.QP()&&e.S.HW)){var P=e.getCurrentTime()+Cfl(e.N,a,r);e.logger.debug(function(){return"Clearing back to "+P.toFixed(3)}); Znj(a,P)}}; wxI=function(e,a){a&&(e.logger.debug(function(){return"Logging new format: "+aV(a.video.info)}),zMN(e.uW,new rt(a.video,a.reason))); if(e.S.GQ){var r=dzz(e.S,"a");e.uW.Qj(new rt(r.audio,r.reason))}}; un=function(e){g.sC(e.J9)}; Ti=function(e){e.policy.Te&&e.policy.Gf&&Math.min(g1l(e.videoTrack),g1l(e.audioTrack))*1E3>e.policy.JX?g.sC(e.dW):e.CB()}; NCL=function(e,a){var r=(0,g.Ov)()-a,P=Rx(e.audioTrack,!0)*1E3,B=Rx(e.videoTrack,!0)*1E3;e.logger.debug(function(){return"Appends paused for "+r}); if(e.policy.B&&(e.nf("apdpe",{dur:r.toFixed(),abuf:P.toFixed(),vbuf:B.toFixed()}),ah(e.policy))){var h=mW(e.N);e.nf("sdps",{ct:a,ah:P.toFixed(),vh:B.toFixed(),mr:Fr(e.N,e.nT,h),bw:h.toFixed(),js:e.isSeeking(),re:+e.nT,ps:(e.policy.bN||"").toString(),rn:(e.policy.Nu||"").toString()})}}; xYJ=function(e){if(VDy(e.videoTrack))return e.logger.debug("Pausing appends for server-selectable format"),"ssf";if(e.policy.Uo&&KP(e.videoTrack)&&KP(e.audioTrack))return"updateEnd";if(Fo(e.audioTrack)||Fo(e.videoTrack)&&e.videoTrack.S.info.vW!=="f")return"";if(e.MC.isSeeking()){var a=e.N;var r=e.videoTrack;var P=e.audioTrack;if(a.policy.S){var B=a.policy.Nc;ah(a.policy)&&(B=Fr(a,!1,mW(a)));a=B;r=Rx(P,!0)>=a&&Rx(r,!0)>=a}else r.B.length||P.B.length?(B=r.S.info.NF+P.S.info.NF,B=10*(1-mW(a)/B),a=Math.max(B, a.policy.Nc),r=Rx(P,!0)>=a&&Rx(r,!0)>=a):r=!0;if(!r)return"abr";r=e.videoTrack;if(r.B.length>0&&r.L.T.length===1&&Mfj(r.L).info.Y360);P=ah(e.policy)&&e.policy.ZI;if(!e.nT||!P&&r)return"";r=e.policy.uh;ah(e.policy)&&(r=Fr(e.N,e.nT,mW(e.N)));r=kA4(e.videoTrack,e.getCurrentTime(),r)||kA4(e.audioTrack,e.getCurrentTime(), r);return ah(e.policy)?r?"mbnm":"":(e.videoTrack.B.length>0||e.audioTrack.B.length>0||hF(e.C,e.videoTrack,e.audioTrack)||hF(e.C,e.audioTrack,e.videoTrack))&&r?"nord":""}; IaN=function(e){if(e.D){var a=e.D.CB(e.audioTrack,oV(e.cW.T.HG()));a&&e.uW.seekTo(a,{c_:!0,ze:"pollSubsegmentReadahead",Zs:!0})}}; mYO=function(e,a,r){if(e.policy.Uo&&KP(a))return!1;if(r.kH())return!0;if(!r.qX())return!1;var P=oN(a);if(!P||P.info.type===6)return!1;var B;if(e.policy.cB||((B=e.B)==null?0:c2L(B,a,P.info.lW)))e.Uo=0;else return e.MC.isSeeking()&&un(e),e.Uo=e.Uo||(0,g.Ov)(),!1;if(!Tq(e,a,r,P.info))return!1;if(e.Qm.T&&P.info.T===0){if(B=HVq(a,r,P)){var h=ij(a);e.nf("initchg",{it:P.info.S.info.id,sr:!!h&&h.S===P.info.S,ty:P.info.type,seg:P.info.lW})}h=g.m2(P.info.S.info);e.policy.RL&&h&&!B&&r0N(P)}h=e.D&&!!e.D.L&&a.S.info.audio; B=e.Qm.isManifestless||P.C;if(!(e.Qm.T&&P.info.T!==0||B&&!h)&&qLO(e,a,r,P))return!0;if(h)return!1;h=ro(e,a);h=e.getCurrentTime()+h;if(P.info.C>h)return e.policy.S&&vdJ(e,a),e.policy.hI&&VjL(a.L,h,!1),!1;RMJ(e,a);var c;e.policy.mJ&&r===((c=e.cW)==null?void 0:c.S)&&e.rP&&(r.g8()===0?(e.rP=!1,e.policy.mJ=!1):e.HA=r.g8());if(!SL3(e,r,P,a))return!1;e.policy.Uo&&P.info.jH()?(e.uW.G().UM()&&e.nf("eosl",{ls:P.info.Kb()}),P.isLocked=!0):(a.Ce(P),kaz(e.S,P.info),e.logger.debug(function(){return"Appended "+ P.info.Kb()+", buffered: "+Pi(r.HG())})); B&&skO(e,P.info.S.kB);return!0}; vdJ=function(e,a){a===e.videoTrack?e.GQ=e.GQ||(0,g.Ov)():e.XM=e.XM||(0,g.Ov)()}; RMJ=function(e,a){a===e.videoTrack?e.GQ=0:e.XM=0}; SL3=function(e,a,r,P){var B=e.policy.dW?(0,g.Ov)():0,h=r.C&&r.info.S.S||void 0,c=r.T;r.C&&(c=Fuy(e,r,c)||c);var y=og(c);c=e.policy.dW?(0,g.Ov)():0;a=Mn4(e,a,y,r.info,h);(P=P.N)!=null&&(h=r.info,B=c-B,c=(0,g.Ov)()-c,!P.T||tll(P.T,h)&&P.T.lW===h.lW||P.flush(),P.L+=B,P.B+=c,B=1,!P.T&&h.T&&(B=2),CP(P,B,a),c=Math.ceil(h.T/1024),B===2&&P.S.add(c),P.S.add(Math.ceil((h.T+h.B)/1024)-c),P.T=h);e.Cf=0;if(a===0)return e.e1&&(e.logger.debug("Retry succeed, back to normal append logic."),e.e1=!1,e.h9=!1),e.T$= 0,!0;if(a===2||a===5)return jk4(e,"checked",a,r.info),!1;if(a===1){if(!e.e1)return e.logger.debug("QuotaExceeded, retrying."),e.e1=!0,!1;if(!e.h9)return e.h9=!0,e.uW.seekTo(e.getCurrentTime(),{ze:"quotaExceeded",Zs:!0}),!1;r.info.Dw()?(B=e.policy,B.e1=Math.floor(B.e1*.8),B.TQ=Math.floor(B.TQ*.8)):(B=e.policy,B.rP=Math.floor(B.rP*.8),B.TQ=Math.floor(B.TQ*.8));e.policy.S?Bu(e.L.S,r.info.S,!1):Xo(e.S,r.info.S)}e.uW.nE({reattachOnAppend:a});return!1}; Fuy=function(e,a,r){var P;if(P=e.policy.eP&&e.cW&&!e.cW.Y&&!e.uW.l4())a=a.info.S.info,P=a.Ox()&&IH(a)&&a.video&&a.video.width<3840&&a.video.width>a.video.height;if(P&&(e.cW.Y=!0,b7('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return r=mzJ(r),e.policy.B&&e.nf("sp4k",{s:!!r}),r}; jk4=function(e,a,r,P){var B="fmt.unplayable",h=1;r===5||r===3?(B="fmt.unparseable",e.policy.S?!P.S.info.video||hr(e.L.S).size>0||Bu(e.L.S,P.S,!1):!P.S.info.video||hr(e.S.C).size>0||Xo(e.S,P.S)):r===2&&(e.T$<15?(e.T$++,B="html5.invalidstate",h=0):B="fmt.unplayable");P=PO(P);var c;P.mrs=(c=e.cW)==null?void 0:ZT(c);P.origin=a;P.reason=r;P.trg="appenderr";e.handleError(B,P,h)}; XMz=function(e,a,r,P,B){var h=e.Qm;var c=e.policy.S,y=!1,T=-1,X;for(X in h.S){var f=K_(h.S[X].info.mimeType)||h.S[X].info.Dw();if(P===f)if(f=h.S[X].index,f.du(a.lW)){y=f;var A=a,U=y.Ds(A.lW);U&&U.startTime!==A.startTime?(y.segments=[],y.Sw(A),y=!0):y=!1;y?T=a.lW:!a.pending&&c&&(A=f.getDuration(a.lW),A!==a.duration&&(h.publish("clienttemp","mfldurUpdate",{itag:h.S[X].info.itag,seg:a.lW,od:A,nd:a.duration},!1),f.Sw(a),y=!0))}else f.Sw(a),y=!0}T>=0&&(c={},h.publish("clienttemp","resetMflIndex",(c[P? "v":"a"]=T,c),!1));h=y;l9j(e.MC,a,P,h);if(e.policy.PW&&e.policy.T&&(T=a.Eg||null)){var C;c=(C=e.T)==null?void 0:ttO(C).requestNumber;var G;(G=e.Eo)==null||nEO(G,T,c)}e.B.Gv(a,r,P,B);a.lW===e.Qm.lB&&h&&vO(e.Qm)&&a.startTime>vO(e.Qm)&&(e.Qm.Eo=a.startTime+(isNaN(e.timestampOffset)?0:e.timestampOffset),e.MC.isSeeking()&&e.MC.targetTime5)return e.Cf= 0,e.uW.nE({initSegStuck:1,as:P.info.Kb()}),!0}else e.Cf=0,e.Te=P;e.policy.b1&&(r.abort(),(c=a.N)!=null&&(CP(c,4),c.flush()));B=Mn4(e,r,h,T,B);var X;(X=a.N)==null||Lxj(X,B,T);if(B!==0)return uI4(e,B,P),!0;P.info.Dw()?sOy(e.timing):mEO(e.timing);e.logger.debug(function(){return"Appended init for "+P.info.S.info.id}); skO(e,P.info.S.kB);return r.hO()}; HVq=function(e,a,r){if(a.a8()==null){e=ij(e);if(!(a=!e||e.S!==r.info.S)){a:if(e=e.N,r=r.info.N,e.length!==r.length)r=!1;else{for(a=0;a1)return 6;c.Cf=new g.vP(function(){var y=oN(c);e.wP()||y==null||!y.isLocked?e.uW.G().UM()&&e.nf("eosl",{delayA:y==null?void 0:y.info.Kb()}):Ku3(c)?(e.uW.G().UM()&&e.nf("eosl",{dunlock:y==null?void 0:y.info.Kb()}),eRI(e,c===e.audioTrack)):(e.nf("nue",{ls:y.info.Kb()}),y.info.HW+=1,e.cW&&e.n0())},1E4,e); e.uW.G().UM()&&e.nf("eosl",{delayS:P.Kb()});c.Cf.start()}e.policy.jP&&(P==null?void 0:P.S)instanceof yH&&P.jH()&&e.nf("poseos",{itag:P.S.info.itag,seg:P.lW,lseg:P.S.index.q5(),es:P.S.index.B});a.appendBuffer(r,P,B)}catch(y){if(y instanceof DOMException){if(y.code===11)return 2;if(y.code===12)return 5;if(y.code===22||y.message.indexOf("Not enough storage")===0)return a=Object.assign({name:"QuotaExceededError",buffered:Pi(a.HG()).replace(/,/g,"_"),vheap:qb(e.videoTrack),aheap:qb(e.audioTrack),message:g.$u(y.message, 3),track:e.cW?a===e.cW.T?"v":"a":"u"},IoJ()),e.handleError("player.exception",a),1;g.D6(y)}return 4}return e.cW.iQ()?3:0}; c$=function(e,a,r){$Y3(e,r.ze||"unknown");e.uW.seekTo(a,r)}; skO=function(e,a){a&&e.uW.DT(new kb(a.key,a.type))}; V_=function(e,a){e.uW.JT(a)}; ro=function(e,a){if(e.policy.HW&&e.e1&&!e.nT)return e.policy.FO;if(e.e1&&!e.nT)return 3;if(e.isSuspended)return 1;var r;if((r=e.cW)==null?0:r.cW&&r.cW.streaming===!1)return 4;r=(a.S.info.audio?e.policy.rP:e.policy.e1)/(a.NF*e.policy.B4);if(e.policy.l7>0&&e.cW&&ED(e.cW)&&(a=a.S.info.video?e.cW.T:e.cW.S)&&!a.hO()){a=a.HG();var P=Bi(a,e.getCurrentTime());P>=0&&(a=e.getCurrentTime()-a.start(P),r+=Math.max(0,Math.min(a-e.policy.l7,e.policy.O$)))}e.policy.TQ>0&&(r=Math.min(r,e.policy.TQ));return r}; n0q=function(e,a){return(ro(e,a)+e.policy.v1)*a.NF}; rQL=function(e){e.k$&&!e.isSuspended&&R1(e.schedule)&&(ak4(e,e.k$),e.k$="")}; ak4=function(e,a){v8(a,"cms",function(r){e.policy.B&&e.nf("pathprobe",r)},function(r){e.uW.handleError(r)})}; PSN=function(e,a){if(e.cW&&e.cW.L&&!e.cW.iQ()&&(a.kM=Rx(e.videoTrack),a.T=Rx(e.audioTrack),e.policy.B)){var r=qb(e.videoTrack),P=qb(e.audioTrack),B=Pi(e.cW.T.HG(),"_",5),h=Pi(e.cW.S.HG(),"_",5);Object.assign(a.S,{lvq:r,laq:P,lvb:B,lab:h})}a.bandwidthEstimate=Sz(e.N);var c;(c=e.audioTrack.N)==null||c.flush();var y;(y=e.videoTrack.N)==null||y.flush();e.logger.debug(function(){return XQ(a.S)})}; Baj=function(e,a){e.Y=a;e.B&&(e.B.B=a);e.Y.yA(e.videoTrack.S.info.Ox());e.C.T=e.Y;e.policy.T&&(e.T.Y=e.Y)}; cQ4=function(e,a){if(e.cW&&e.cW.T){if(e.policy.OB){var r=Wdz(e.audioTrack);if(r&&r.sU()){var P=e.uW;if(P.cQ&&(P.cQ.S=r,r=P.cA,r.qoe)){r=r.qoe;P=P.cQ;var B=g.c7(r.provider);tn4(r,B,P)}}}e.policy.RC&&(r=Wdz(e.videoTrack))&&r.Dw()&&(P=e.uW,P.yy&&(P.yy.S=r,r=P.cA,r.qoe&&Ggy(r.qoe,P.yy)));a-=isNaN(e.timestampOffset)?0:e.timestampOffset;e.getCurrentTime()!==a&&e.resume();e.MC.isSeeking()&&e.cW&&!e.cW.iQ()&&(P=e.getCurrentTime()<=a&&a=a&&ZVz(e,P.startTime,!1)}); return r&&r.startTimee.getCurrentTime())return r.start/1E3;return Infinity}; XEJ=function(e){if(e.uW.getVideoData().isLivePlayback)return!1;var a=e.uW.rg();if(!a)return!1;a=a.getDuration();if(e.cW&&e.cW.S&&e.cW.T){var r=e.getCurrentTime(),P=e.cW.S.HG();e=e.cW.T.HG();P=P?ci(P,r):r;r=e?ci(e,r):r;r=Math.min(P,r);a=isNaN(r)?!1:r>=a-.01}else a=!1;return a}; uI4=function(e,a,r){e.policy.gz&&J3(e.uW.getVideoData())?(e.uW.Ny()||jk4(e,"sepInit",a,r.info),tRJ(e.uW,"sie")):jk4(e,"sepInit",a,r.info)}; s14=function(e){return e.uW.jk()0){var P=r.S.shift();Z2O(r,P.info)}r.S.length>0&&(P=r.S[0].time-(0,g.Ov)(),r.T.start(Math.max(0,P)))}},0); g.x(this,this.T);a.subscribe("widevine_set_need_key_info",this.L,this)}; Z2O=function(e,a){a:{var r=a.cryptoPeriodIndex;if(isNaN(r)&&e.B.size>0)r=!0;else{for(var P=g.Z(e.B.values()),B=P.next();!B.done;B=P.next())if(B.value.cryptoPeriodIndex===r){r=!0;break a}r=!1}}e.publish("log_qoe",{wvagt:"reqnews",canskip:r});r||e.publish("rotated_need_key_info_ready",a)}; O2L=function(){var e={};var a=e.url;var r=e.interval;e=e.retries;this.url=a;this.interval=r;this.retries=e}; kiO=function(e,a){this.statusCode=e;this.message=a;this.T=this.heartbeatParams=this.errorMessage=null;this.S={};this.nextFairplayKeyId=null}; dDJ=function(e,a,r){r=r===void 0?"":r;g.N.call(this);this.message=e;this.requestNumber=a;this.timer=r;this.onError=this.onSuccess=null;this.S=new g.w9(5E3,2E4,.2)}; JFI=function(e,a,r){e.onSuccess=a;e.onError=r}; VR3=function(e,a,r,P){var B={timeout:3E4,onSuccess:function(h){if(!e.wP()){dL("drm_net_r",void 0,e.timer);var c=h.status==="LICENSE_STATUS_OK"?0:9999,y=null;if(h.license)try{y=Qq(h.license)}catch(G){g.D6(G)}if(c!==0||y){y=new kiO(c,y);c!==0&&h.reason&&(y.errorMessage=h.reason);if(h.authorizedFormats){c={};for(var T=[],X={},f=g.Z(h.authorizedFormats),A=f.next();!A.done;A=f.next())if(A=A.value,A.trackType&&A.keyId){var U=DDI[A.trackType];if(U){U==="HD"&&h.isHd720&&(U="HD720");A.isHdr&&(U+="HDR");c[U]|| (T.push(U),c[U]=!0);var C=null;try{C=Qq(A.keyId)}catch(G){g.D6(G)}C&&(X[g.Vq(C,4)]=U)}}y.T=T;y.S=X}h.nextFairplayKeyId&&(y.nextFairplayKeyId=h.nextFairplayKeyId);h.sabrLicenseConstraint&&(y.sabrLicenseConstraint=Qq(h.sabrLicenseConstraint));h=y}else h=null;if(h)e.onSuccess(h,e.requestNumber);else e.onError(e,"drm.net","t.p;p.i")}}, onError:function(h){if(!e.wP())if(h&&h.error)h=h.error,e.onError(e,"drm.net.badstatus","t.r;p.i;c."+h.code+";s."+h.status,h.code);else e.onError(e,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){e.onError(e,"drm.net","rt.req."+e.requestNumber)}}; P&&(B.Py="Bearer "+P);g.SA(r,"player/get_drm_license",a,B)}; $Dl=function(e,a,r,P){g.aK.call(this);this.videoData=e;this.iW=a;this.Y=r;this.sessionId=P;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.HW=this.oH=!1;this.B=null;this.TQ=[];this.L=[];this.authorizedFormats=[];this.D=!1;this.S={};this.status="";this.Z=NaN;this.T=e.C;this.cryptoPeriodIndex=r.cryptoPeriodIndex;e={};Object.assign(e,this.iW.S);e.cpn=this.videoData.clientPlaybackNonce;this.videoData.Lf&&(e.vvt=this.videoData.Lf,this.videoData.mdxEnvironment&&(e.mdx_environment= this.videoData.mdxEnvironment));this.iW.TQ&&(e.authuser=this.iW.TQ);this.iW.pageId&&(e.pageid=this.iW.pageId);isNaN(this.cryptoPeriodIndex)||(e.cpi=this.cryptoPeriodIndex.toString());var B=(B=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.zX()))?B[1]:"";B==="ATV"&&(e.cdt=B);this.C=e;this.C.session_id=P;this.N=!0;this.T.flavor==="widevine"&&(this.C.hdr="1");this.T.flavor==="playready"&&(a=Number(Et(a.experiments,"playready_first_play_expiration")),!isNaN(a)&&a>=0&&(this.C.mfpe=""+a),this.N=!1);a="";g.nn(this.T)? o1(this.T)?(P=r.T)&&(a="https://www.youtube.com/api/drm/fps?ek="+kXI(P)):(a=r.initData.subarray(4),a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),a=String.fromCharCode.apply(null,a).replace("skd://","https://")):a=this.T.T;this.baseUrl=a;this.fairplayKeyId=OW(this.baseUrl,"ek")||"";if(a=OW(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(a);this.TQ=r.Ox?[g.Vq(r.initData,4)]:r.B;EM(this,{sessioninit:r.cryptoPeriodIndex});this.status="in"}; L3q=function(e,a){EM(e,{createkeysession:1});e.status="gr";dL("drm_gk_s",void 0,e.videoData.HW);e.url=QhO(e);try{e.B=a.createSession(e.Y,function(r){EM(e,{m:r})})}catch(r){a="t.g"; r instanceof DOMException&&(a+=";c."+r.code);e.publish("licenseerror","drm.unavailable",1,a,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}e.B&&(W3I(e.B,function(r,P){lML(e,r,P)},function(r,P,B){if(!e.wP()){P=void 0; var h=1;g.nn(e.T)&&g.hZ(e.iW)&&e.iW.X("html5_enable_safari_fairplay")&&B===1212433232&&(P="ERROR_HDCP",h=e.iW.X("html5_safari_fairplay_ignore_hdcp")?0:h);e.error("drm.keyerror",h,r,P)}},function(){e.wP()||(EM(e,{onkyadd:1}),e.HW||(e.publish("sessionready"),e.HW=!0))},function(r){e.LT(r)}),g.x(e,e.B))}; QhO=function(e){var a=e.baseUrl;GGq(a)||e.error("drm.net",2,"t.x");if(!OW(a,"fexp")){var r=["23898307","23914062","23916106","23883098"].filter(function(B){return e.iW.experiments.experiments[B]}); r.length>0&&(e.C.fexp=r.join())}r=g.Z(Object.keys(e.C));for(var P=r.next();!P.done;P=r.next())P=P.value,a=RCL(a,P,e.C[P]);return a}; lML=function(e,a,r){if(!e.wP())if(a){EM(e,{onkmtyp:r});e.status="km";switch(r){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":YIl(e,a);return;default:e.publish("ctmp","message_type",{t:r,l:a.byteLength})}e.oH||(dL("drm_gk_f",void 0,e.videoData.HW),e.oH=!0,e.publish("newsession",e));if(BM(e.T)&&(a=wtJ(a),!a))return;a=new dDJ(a,++e.requestNumber,e.videoData.HW);JFI(a,function(P){ptN(e,P)},function(P,B,h){if(!e.wP()){var c=0; P.S.T>=3&&(c=1,B="drm.net.retryexhausted");EM(e,{onlcsrqerr:B,info:h});e.error(B,c,h);e.shouldRetry(AX(c),P)&&i24(e,P)}}); g.x(e,a);zKJ(e,a)}else e.error("drm.unavailable",1,"km.empty")}; YIl=function(e,a){EM(e,{sdpvrq:1});e.Z=Date.now();if(e.T.flavor!=="widevine")e.error("drm.provision",1,"e.flavor;f."+e.T.flavor+";l."+a.byteLength);else{var r={cpn:e.videoData.clientPlaybackNonce};Object.assign(r,e.iW.S);r=g.EW("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",r);a={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, a)}),responseType:"arraybuffer"};g.de(r,a,3,500).then(M5(function(P){P=P.xhr;if(!e.wP()){P=new Uint8Array(P.response);var B=String.fromCharCode.apply(null,P);try{var h=JSON.parse(B)}catch(c){}h&&h.signedResponse?(e.publish("ctmp","drminfo",{provisioning:1}),h=(Date.now()-e.Z)/1E3,e.Z=NaN,e.publish("ctmp","provs",{et:h.toFixed(3)}),e.B&&e.B.update(P)):(h=h&&h.error&&h.error.message,P="e.parse",h&&(P+=";m."+h),e.error("drm.provision",1,P))}}),M5(function(P){e.wP()||e.error("drm.provision",1,"e."+P.errorCode+ ";c."+(P.xhr&&P.xhr.status))}))}}; bH=function(e){var a;if(a=e.N&&e.B!=null)e=e.B,a=!(!e.S||!e.S.keyStatuses);return a}; zKJ=function(e,a){e.status="km";dL("drm_net_s",void 0,e.videoData.HW);var r=new g.Rr(e.iW.vI),P={context:g.nu(r.config_||g.cN())};P.drmSystem=NqT[e.T.flavor];P.videoId=e.videoData.videoId;P.cpn=e.videoData.clientPlaybackNonce;P.sessionId=e.sessionId;P.licenseRequest=g.Vq(a.message);P.drmParams=e.videoData.drmParams;isNaN(e.cryptoPeriodIndex)||(P.isKeyRotated=!0,P.cryptoPeriodIndex=e.cryptoPeriodIndex);var B,h,c=!!((B=e.videoData.T)==null?0:(h=B.video)==null?0:h.isHdr());P.drmVideoFeature=c?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(P.context&&P.context.client){if(B=e.iW.S)P.context.client.deviceMake=B.cbrand,P.context.client.deviceModel=B.cmodel,P.context.client.browserName=B.cbr,P.context.client.browserVersion=B.cbrver,P.context.client.osName=B.cos,P.context.client.osVersion=B.cosver;P.context.user=P.context.user||{};P.context.request=P.context.request||{};e.videoData.Lf&&(P.context.user.credentialTransferTokens=[{token:e.videoData.Lf,scope:"VIDEO"}]);P.context.request.mdxEnvironment=e.videoData.mdxEnvironment|| P.context.request.mdxEnvironment;e.videoData.Q2&&(P.context.user.kidsParent={oauthToken:e.videoData.Q2});g.nn(e.T)&&(P.fairplayKeyId=g.Vq(d7q(e.fairplayKeyId)));g.$G(e.iW,g.ok(e.videoData)).then(function(y){VR3(a,P,r,y);e.status="rs"})}else e.error("drm.net",2,"t.r;ic.0")}; ptN=function(e,a){if(!e.wP())if(EM(e,{onlcsrsp:1}),e.status="rr",a.statusCode!==0)e.error("drm.auth",1,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{dL("drm_kr_s",void 0,e.videoData.HW);if(a.heartbeatParams&&a.heartbeatParams.url&&e.videoData.X("outertube_streaming_data_always_use_staging_license_service")){var r=e.T.T.match(/(.*)youtube.com/g);r&&(a.heartbeatParams.url=r[0]+a.heartbeatParams.url)}a.heartbeatParams&&e.publish("newlicense",a.heartbeatParams);a.T&&(e.L=a.T,e.videoData.HC||e.publish("newlicense", new O2L),e.videoData.HC=!0,e.D=va(e.L,function(P){return P.includes("HDR")})); a.S&&(e.iW.X("html5_enable_vp9_fairplay")&&o1(e.T)?(r=g.Vq(d7q(e.fairplayKeyId),4),e.S[r]={type:a.S[r],status:"unknown"}):e.S=aQ(a.S,function(P){return{type:P,status:"unknown"}})); cM(e.T)&&(a.message=IHz(g.Vq(a.message)));e.B&&(EM(e,{updtks:1}),e.status="ku",e.B.update(a.message).then(function(){dL("drm_kr_f",void 0,e.videoData.HW);bH(e)||(EM(e,{ksApiUnsup:1}),e.publish("keystatuseschange",e))},function(P){P="msuf.req."+e.requestNumber+";msg."+g.$u(P.message,3); e.error("drm.keyerror",1,P)})); g.nn(e.T)&&e.publish("fairplay_next_need_key_info",e.baseUrl,a.nextFairplayKeyId);e.iW.X("html5_enable_vp9_fairplay")&&o1(e.T)&&e.publish("qualitychange",xDI(e.L));a.sabrLicenseConstraint&&e.publish("sabrlicenseconstraint",a.sabrLicenseConstraint)}}; i24=function(e,a){var r=a.S.getValue();r=new g.vP(function(){zKJ(e,a)},r); g.x(e,r);r.start();g.pe(a.S);EM(e,{rtyrq:1})}; IMN=function(e,a){for(var r=[],P=g.Z(Object.keys(e.S)),B=P.next();!B.done;B=P.next())B=B.value,r.push(B+"_"+e.S[B].type+"_"+e.S[B].status);return r.join(a)}; H24=function(e){var a={};a[e.status]=bH(e)?IMN(e,"."):e.L.join(".");return a}; qIO=function(e,a,r){var P={};P.isHdr=a.includes("HDR");switch(a.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||r[a]||bH(e)&&!tu(e,a)||(e.authorizedFormats.push(P),r[a]=!0)}; tu=function(e,a){for(var r in e.S)if(e.S[r].status==="usable"&&e.S[r].type===a)return!0;return!1}; vUl=function(e,a){for(var r in e.S)if(e.S[r].type===a)return e.S[r].status}; EM=function(e,a){var r=r===void 0?!1:r;XQ(a);(r||e.iW.UM())&&e.publish("ctmp","drmlog",a)}; RKO=function(e){var a=e[0];e[0]=e[3];e[3]=a;a=e[1];e[1]=e[2];e[2]=a;a=e[4];e[4]=e[5];e[5]=a;a=e[6];e[6]=e[7];e[7]=a}; xDI=function(e){return g.ZB(e,"UHD2")||g.ZB(e,"UHD2HDR")?"highres":g.ZB(e,"UHD1")||g.ZB(e,"UHD1HDR")?"hd2160":g.ZB(e,"HD")||g.ZB(e,"HDHDR")?"hd1080":g.ZB(e,"HD720")||g.ZB(e,"HD720HDR")?"hd720":"large"}; wtJ=function(e){for(var a="",r=0;r'.charCodeAt(P);e=e.B.createSession("video/mp4",a,r);return new gY(null,null,null,null,e)}; K3L=function(e,a){var r=e.Z[a.sessionId];!r&&e.L&&(r=e.L,e.L=null,r.sessionId=a.sessionId,e.Z[a.sessionId]=r);return r}; MRL=function(e,a){var r=e.subarray(4);r=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2);r=String.fromCharCode.apply(null,r).match(/ek=([0-9a-f]+)/)[1];for(var P="",B=0;B19.2999?(e=r.UD,r=r.D6,r>=e&&(r=e* .75),a=(e-r)*.5,r=new CJ(a,e,e-a-r,this)):r=null;break a;case "widevine":r=new Gq(a,this,e);break a;default:r=null}if(this.C=r)g.x(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.zH,this),this.C.subscribe("log_qoe",this.Em,this);TA(this.iW.experiments);this.Em({cks:this.S.getInfo()})}; aC3=function(e){var a=F3J(e.L);a?a.then(M5(function(){PH3(e)}),M5(function(r){if(!e.wP()){g.D6(r); var P="t.a";r instanceof DOMException&&(P+=";n."+r.name+";m."+r.message);e.publish("licenseerror","drm.unavailable",1,P,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(e.Em({mdkrdy:1}),e.N=!0); e.HW&&(a=F3J(e.HW))}; hTj=function(e,a,r){e.XM=!0;r=new kb(a,r);e.iW.X("html5_eme_loader_sync")&&(e.Z.get(a)||e.Z.set(a,r));BYj(e,r)}; BYj=function(e,a){if(!e.wP()){e.Em({onInitData:1});if(e.iW.X("html5_eme_loader_sync")&&e.videoData.B&&e.videoData.B.S){var r=e.D.get(a.initData);a=e.Z.get(a.initData);if(!r||!a)return;a=r;r=a.initData;e.Z.remove(r);e.D.remove(r)}e.Em({initd:a.initData.length,ct:a.contentType});if(e.S.flavor==="widevine")if(e.Lf&&!e.videoData.isLivePlayback)kV(e);else{if(!(e.iW.X("vp9_drm_live")&&e.videoData.isLivePlayback&&a.Ox)){e.Lf=!0;r=a.cryptoPeriodIndex;var P=a.S;qx4(a);a.Ox||(P&&a.S!==P?e.publish("ctmp","cpsmm", {emsg:P,pssh:a.S}):r&&a.cryptoPeriodIndex!==r&&e.publish("ctmp","cpimm",{emsg:r,pssh:a.cryptoPeriodIndex}));e.publish("widevine_set_need_key_info",a)}}else e.zH(a)}}; PH3=function(e){if(!e.wP())if(e.iW.X("html5_drm_set_server_cert")||o1(e.S)){var a=e.L.setServerCertificate();a?a.then(M5(function(r){e.iW.UM()&&e.publish("ctmp","ssc",{success:r})}),M5(function(r){e.publish("ctmp","ssce",{n:r.name, m:r.message})})).then(M5(function(){cuq(e)})):cuq(e)}else cuq(e)}; cuq=function(e){e.wP()||(e.N=!0,e.Em({onmdkrdy:1}),kV(e))}; oVN=function(e){return e.S.flavor==="widevine"&&e.videoData.X("html5_drm_cpi_license_key")}; kV=function(e){if(e.XM&&e.N&&!e.Eo){for(;e.B.length;){var a=e.B[0],r=oVN(e)?vE4(a):g.Vq(a.initData);if(o1(e.S)&&!a.T)e.B.shift();else{if(e.T.get(r))if(e.S.flavor!=="fairplay"||o1(e.S)){e.B.shift();continue}else e.T.delete(r);qx4(a);break}}e.B.length&&e.createSession(e.B[0])}}; nV4=function(e){var a,r;g.Y(function(P){if(P.T==1){var B;if(B=g.x2()){var h;B=!((h=e.L.T)==null||!h.getMetrics)}return B?g.l(P,e.L.getMetrics(),2):P.return()}a=P.S;if(!a)return P.return();Mc(a)||(a=g.AT(a));r=/^[A-Za-z0-9_-]+={0,3}$/;r.test(a)||(a=g.$u(a,void 0,!0));e.publish("ctmp","drm",{metrics:a});g.OO(P)})}; yuz=function(){var e=L0z();return!(!e||e==="visible")}; X7j=function(e){var a=TYz();a&&document.addEventListener(a,e,!1)}; fCO=function(e){var a=TYz();a&&document.removeEventListener(a,e,!1)}; TYz=function(){if(document.visibilityState)var e="visibilitychange";else{if(!document[yy+"VisibilityState"])return"";e=yy+"visibilitychange"}return e}; Auj=function(e){g.N.call(this);var a=this;this.uW=e;this.BE=0;this.Z=this.T=this.C=!1;this.L=0;this.gP=this.uW.G();this.videoData=this.uW.getVideoData();this.B=g.eS(this.gP.experiments,"html5_delayed_retry_count");this.S=new g.vP(function(){a.uW.p5()},g.eS(this.gP.experiments,"html5_delayed_retry_delay_ms")); g.x(this,this.S)}; bJ3=function(e,a,r){var P=e.videoData.T,B=e.videoData.L,h=e.gP.X("html5_disable_codec_fallback_for_drm")&&e.videoData.lQ();J3(e.uW.getVideoData())&&e.gP.X("html5_gapless_fallback_on_qoe_restart")&&tRJ(e.uW,"pe");if((a==="progressive.net.retryexhausted"||a==="fmt.unplayable"||a==="fmt.decode")&&!e.uW.NA.C&&P&&P.itag==="22")return e.uW.NA.C=!0,e.LB("qoe.restart",{reason:"fmt.unplayable.22"}),e.uW.Pw(),!0;var c=!1;if(e.videoData.isExternallyHostedPodcast){if(c=e.videoData.lYM)r.mimeType=c.type,e.nf("3pp", {url:c.url});r.ns="3pp";e.uW.Ex(a,1,"VIDEO_UNAVAILABLE",XQ((new g.f_(a,r,1)).details));return!0}var y=e.BE+3E4<(0,g.Ov)()||e.S.isActive();if(e.gP.X("html5_empty_src")&&e.videoData.isAd()&&a==="fmt.unplayable"&&/Empty src/.test(""+r.msg))return r.origin="emptysrc",e.LB("auth",r),!0;y||Un4(e.uW.XU())||(r.nonfg="paused",y=!0,e.uW.pauseVideo());(a==="fmt.decode"||a==="fmt.unplayable")&&(B==null?0:Sl(B)||sd(B))&&(PyT(e.gP.C,B.vW),r.acfallexp=B.vW,c=y=!0);!y&&e.B>0&&(e.S.start(),y=!0,r.delayed="1",--e.B); B=e.uW.loader;y||!((P==null?0:vH(P))||(P==null?0:IH(P)))||h||(PyT(e.gP.C,P.vW),c=y=!0,r.cfallexp=P.vW);if(!y)return CH4(e,r);h=!1;e.C?e.BE=(0,g.Ov)():h=e.C=!0;y=e.videoData;if(y.ym){y=y.ym.IX();var T=Date.now()/1E3+1800;y=y6048E5&&OJN(e,"signature");return!1}; OJN=function(e,a){try{a={detail:"pr."+a},g.EA(e.gP)&&e.gP.X("html5_reload_by_kabuki_app")?e.uW.Ex("qoe.restart",1,void 0,XQ(a),"7"):(e.LB("qoe.restart",a),window.location.reload())}catch(r){}}; dnj=function(e,a){var r=e.gP.C;r.D=!1;r.T=!0;e.LB("qoe.restart",{e:a===void 0?"fmt.noneavailable":a,detail:"hdr"});e.uW.p5(!0)}; Juq=function(e,a,r,P,B,h){this.videoData=e;this.S=a;this.reason=r;this.T=P;this.token=B;this.videoId=h}; dY=function(e,a,r){this.iW=e;this.AU=a;this.uW=r;this.Y=this.Z=this.S=this.L=this.D=this.T=0;this.C=!1;this.N=g.eS(this.iW.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.B=new Map}; Dny=function(e,a,r){!e.iW.X("html5_tv_ignore_capable_constraint")&&g.Uh(e.iW)&&(r=r.compose(e.tP(a)));return r}; VQI=function(e){if(e.uW.XU().isInline())return A3;var a;e.X("html5_exponential_memory_for_sticky")?a=SD(e.iW.Ky,"sticky-lifetime")<.5?"auto":Vz[Ao()]:a=Vz[Ao()];return g.dp("auto",a,!1,"s")}; QRy=function(e,a){var r,P=$nJ(e,(r=a.S)==null?void 0:r.videoInfos);r=e.uW.getPlaybackRate();return r>1&&P?(e=KYq(e.iW.C,a.S.videoInfos,r),new k$(0,e,!0,"o")):new k$(0,0,!1,"o")}; $nJ=function(e,a){return a&&g.Uh(e.iW)?a.some(function(r){return r.video.fps>32}):!1}; WZy=function(e,a){if(e.X("html5_disable_ustreamer_constraint_for_sabr")&&QZ(a.videoData))return A3;var r=e.uW.Jx();e.X("html5_use_video_quality_cap_for_ustreamer_constraint")&&r&&r.kN>0&&D9(a.videoData.TF)&&(e=r.kN,a.videoData.TF=new k$(0,e,!1,"u"));return a.videoData.TF}; lCL=function(e,a){var r;a:if((r=a.S)&&r.videoInfos.length){for(var P=g.Z(r.videoInfos),B=P.next();!B.done;B=P.next()){B=B.value;var h=void 0;if((h=B.T)==null?0:h.smooth){r=B.video.qualityOrdinal;break a}}r=r.videoInfos[0].video.qualityOrdinal}else r=0;UiO()&&!g.Uh(e.iW)&&IH(a.S.videoInfos[0])&&(r=Math.min(r,g.wE.large));P=g.eS(e.iW.experiments,"html5_chipset_soft_cap");P>0&&(r=Math.min(r,P));if(P=g.eS(e.iW.experiments,"html5_max_vertical_resolution")){B=4320;for(h=0;hP&&(B=Math.min(B,c.video.qualityOrdinal))}if(B<4320){for(c=h=0;c32){B=!0;break a}}B=!1}B&&(r=Math.min(r,P));(P=g.eS(e.iW.experiments,"html5_live_quality_cap"))&&a.videoData.isLivePlayback&&(r=Math.min(r,P));r=LZJ(e,a,r);e=g.eS(e.iW.experiments,"html5_byterate_soft_cap");return new k$(0,r===4320?0:r,!1,"d",e)}; w74=function(e){var a,r,P,B;return g.Y(function(h){switch(h.T){case 1:return e.S.S&&typeof((a=navigator.mediaCapabilities)==null?void 0:a.decodingInfo)==="function"?g.l(h,Promise.resolve(),2):h.return(Promise.resolve());case 2:r=g.Z(e.S.videoInfos),P=r.next();case 3:if(P.done){h.Oo(0);break}B=P.value;return g.l(h,YK3(B),4);case 4:P=r.next(),h.Oo(3)}})}; iJT=function(e,a){if(!a.videoData.T||e.X("html5_disable_performance_downgrade"))return!1;Date.now()-e.D>6E4&&(e.T=0);e.T++;e.D=Date.now();if(e.T!==4)return!1;p7N(e,a.videoData.T);return!0}; NYN=function(e,a,r,P){if(!a||!r||!a.videoData.T)return!1;var B=g.eS(e.iW.experiments,"html5_df_downgrade_thresh"),h=e.X("html5_log_media_perf_info");if(!((0,g.Ov)()-e.L<5E3?0:h||B>0))return!1;var c=((0,g.Ov)()-e.L)/1E3;e.L=(0,g.Ov)();r=r.getVideoPlaybackQuality();if(!r)return!1;var y=r.droppedVideoFrames-e.Z,T=r.totalVideoFrames-e.Y;e.Z=r.droppedVideoFrames;e.Y=r.totalVideoFrames;var X=r.displayCompositedVideoFrames===0?0:r.displayCompositedVideoFrames||-1;h&&e.iW.UM()&&e.uW.nf("ddf",{dr:r.droppedVideoFrames, de:r.totalVideoFrames,comp:X});if(P)return e.S=0,!1;if((T-y)/c>e.N||!B||g.Uh(e.iW))return!1;e.S=(T>60?y/T:0)>B?e.S+1:0;if(e.S!==3)return!1;p7N(e,a.videoData.T);e.uW.nf("dfd",Object.assign({dr:r.droppedVideoFrames,de:r.totalVideoFrames},zT3()));return!0}; p7N=function(e,a){var r=a.vW,P=a.video.fps,B=a.video.qualityOrdinal-1,h=e.B;a=""+r+(P>49?"p60":P>32?"p48":"");r=Kz(r,P,h);B>0&&(r=Math.min(r,B));if(!Ju.has(a)&&Gy().includes(a)){var c=r;r=Ct();+r[a]>0&&(c=Math.min(+r[a],c));r[a]!==c&&(r[a]=c,g.Vy("yt-player-performance-cap",r,2592E3))}else if(Ju.has(a)||h==null){a:{c=c===void 0?!0:c;P=Gy().slice();if(c){if(P.includes(a))break a;P.push(a)}else{if(!P.includes(a))break a;P.splice(P.indexOf(a),1)}g.Vy("yt-player-performance-cap-active-set",P,2592E3)}ul.set(a, r)}else Ju.add(a),h==null||h.set(a,r);e.uW.E9()}; xn3=function(e,a){if(!a.S.S)return e.C?new k$(0,360,!1,"b"):A3;for(var r=!1,P=!1,B=g.Z(a.S.videoInfos),h=B.next();!h.done;h=B.next())vH(h.value)?r=!0:P=!0;r=r&&P;P=0;B=g.eS(e.iW.experiments,"html5_performance_cap_floor");B=e.iW.T?240:B;a=g.Z(a.S.videoInfos);for(h=a.next();!h.done;h=a.next()){var c=h.value;if(!r||!vH(c))if(h=Kz(c.vW,c.video.fps,e.B),c=c.video.qualityOrdinal,Math.max(h,B)>=c){P=c;break}}return new k$(0,P,!1,"b")}; IC4=function(e,a){var r=e.uW.XU();return r.isInline()&&!a.JX?new k$(0,480,!1,"v"):QZ(a)?A3:r.isBackground()&&tB()/1E3>60&&!g.Uh(e.iW)?new k$(0,360,!1,"v"):A3}; HJI=function(e,a,r){if(e.iW.experiments.FM("html5_disable_client_autonav_cap_for_onesie")&&a.fetchType==="onesie"||g.Uh(e.iW)&&(Ao(-1)>=1080||a.osid))return A3;var P=g.eS(e.iW.experiments,"html5_autonav_quality_cap"),B=g.eS(e.iW.experiments,"html5_autonav_cap_idle_secs");return P&&a.isAutonav&&tB()/1E3>B?(r&&(P=LZJ(e,r,P)),new k$(0,P,!1,"e")):A3}; LZJ=function(e,a,r){if(e.X("html5_optimality_defaults_chooses_next_higher")&&r)for(e=a.S.videoInfos,a=1;a=0||(e.provider.uW.getVisibilityState()===3?e.C=!0:(e.S=g.c7(e.provider),e.delay.start()))}; RT4=function(e){if(!(e.T<0)){var a=g.c7(e.provider),r=a-e.L;e.L=a;e.playerState.state===8?e.playTimeSecs+=r:e.playerState.isBuffering()&&!g.S(e.playerState,16)&&(e.rebufferTimeSecs+=r)}}; SMj=function(e){var a;switch((a=e.iW.playerCanaryStage)==null?void 0:a.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"}}; sRL=function(e){this.provider=e;this.D=!1;this.S=0;this.L=-1;this.R5=NaN;this.B=0;this.segments=[];this.Z=this.C=0;this.previouslyEnded=!1;this.N=this.provider.uW.getVolume();this.Y=this.provider.uW.isMuted()?1:0;this.T=VE(this.provider)}; $V=function(e){e.T.startTime=e.B;e.T.endTime=e.S;var a=!1;e.segments.length&&g.GV(e.segments).isEmpty()?(e.segments[e.segments.length-1].previouslyEnded&&(e.T.previouslyEnded=!0),e.segments[e.segments.length-1]=e.T,a=!0):e.segments.length&&e.T.isEmpty()||(e.segments.push(e.T),a=!0);a?e.T.endTime===0&&(e.previouslyEnded=!1):e.T.previouslyEnded&&(e.previouslyEnded=!0);e.C+=e.S-e.B;e.T=VE(e.provider);e.T.previouslyEnded=e.previouslyEnded;e.previouslyEnded=!1;e.B=e.S}; FZl=function(e){mn4(e);e.Z=g.Xw(function(){e.update()},100); e.R5=g.c7(e.provider);e.T=VE(e.provider)}; mn4=function(e){g.Al(e.Z);e.Z=NaN}; MQO=function(e,a,r){r-=e.R5;return a===e.S&&r>.5}; jRI=function(e,a,r,P){this.iW=a;this.dW=r;this.segments=[];this.experimentIds=[];this.ym=this.h9=this.isFinal=this.delayThresholdMet=this.ID=this.AC=this.autoplay=this.autonav=!1;this.J9="yt";this.Z=[];this.D=this.N=null;this.sendVisitorIdHeader=this.PW=!1;this.Y=this.pageId="";this.C=r==="watchtime";this.B=r==="playback";this.Eo=r==="atr";this.FI=r==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Eo?"/api/stats/"+r:"//"+a.Iq+"/api/stats/"+r;P&&(this.h9=P.fs,P.rtn&&(this.D=P.rtn),this.C?(this.playerState= P.state,P.rti>0&&(this.N=P.rti)):(this.sx=P.mos,this.ZZ=P.volume,P.at&&(this.adType=P.at)),P.autonav&&(this.autonav=P.autonav),P.inview!=null&&(this.Q2=P.inview),P.size&&(this.Te=P.size),P.playerwidth&&(this.Ky=P.playerwidth),P.playerheight&&(this.RL=P.playerheight));this.QH=g.GX(a.S);this.Y=Et(a.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.sM=g.GX(a.ID);this.h1=a.J9;this.experimentIds=FYT(a.experiments);this.GQ=a.RO;this.J9=a.HW;this.region=a.region; this.userAge=a.userAge;this.rP=a.He;this.kh=tB();this.sendVisitorIdHeader=a.sendVisitorIdHeader;this.Lf=a.X("vss_pings_using_networkless")||a.X("kevlar_woffle");this.t1=a.X("vss_final_ping_send_and_write");this.Cf=a.X("vss_use_send_and_write");this.pageId=a.pageId;this.A1=a.X("vss_playback_use_send_and_write");a.livingRoomAppMode&&(this.livingRoomAppMode=a.livingRoomAppMode);this.mJ=a.L&&a.X("embeds_append_synth_ch_headers");g.uP(a)&&(this.XM=a.Eo);g.hJ(g.om(a))&&this.Z.push(1);this.accessToken=g.ok(e); e.B4[this.dW]?this.L=e.B4[this.dW]:e.B4.playback&&(this.L=e.B4.playback);this.adFormat=e.adFormat;this.adQueryId=e.adQueryId;this.autoplay=s04(e);this.B&&(this.AC=e.U5&&Px(e)==="adunit"?!0:!1);this.autonav=e.isAutonav||this.autonav;this.contentVideoId=ht(e);this.clientPlaybackNonce=e.clientPlaybackNonce;this.ID=e.nB;e.Z&&(this.oH=e.Z,this.T$=e.H4);e.mdxEnvironment&&(this.mdxEnvironment=e.mdxEnvironment);this.S=e.QH;this.bv=e.bv;e.T&&(this.RO=e.T.itag,e.L&&e.L.itag!==this.RO&&(this.HA=e.L.itag));e.S&& Lt(e.S)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Px(e);this.ym=e.A1?!1:e.ZZ;this.Yf=e.Up;if(a=vE(e))this.BV=a;this.py=e.jP;this.partnerId=e.partnerId;this.eventId=e.eventId;this.playlistId=e.bF||e.playlistId;this.I8=e.I8;this.n8=e.n8;this.qO=e.qO;this.CE=e.CE;this.subscribed=e.subscribed;this.videoId=e.videoId;this.videoMetadata=e.videoMetadata;this.visitorData=e.visitorData;this.osid=e.osid;this.sL=e.sL;this.referrer=e.referrer;this.E8=e.Im||e.E8;this.k$=e.b1;this.qT=e.qT;this.userGenderAge= e.userGenderAge;this.qo=e.qo;this.embedsRct=e.embedsRct;this.embedsRctn=e.embedsRctn;g.uP(this.iW)&&e.mutedAutoplay&&(e.mutedAutoplayDurationMode===2&&e.limitedPlaybackDurationInSeconds===0&&e.endSeconds===0?this.Z.push(7):this.Z.push(2));e.isEmbedsShortsMode(new g.Sr(this.Ky,this.RL),!!this.playlistId)&&this.Z.push(3);g.bL(e)&&this.Z.push(4);this.Uo=e.T8;e.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=e.compositeLiveIngestionOffsetToken)}; uR4=function(e,a){var r=e.sendVisitorIdHeader?e.visitorData:void 0;return g.$G(e.iW,e.accessToken).then(function(P){return FRj(e.uri,e.iW,e.pageId,r,P,a,e.mJ)})}; aJO=function(e,a){return function(){e.iW.X("html5_simplify_pings")?(e.S=e.e1,e.Ge=a(),e.kh=0,e.send()):uR4(e).then(function(r){var P=KZO(e);P.cmt=P.len;P.lact="0";var B=a().toFixed(3);P.rt=Number(B).toString();P=g.EW(e.uri,P);e.iW.X("vss_through_gel_double")&&ezO(P);e.Lf?(r==null&&(r={}),e.Cf?qx().sendAndWrite(P,r):qx().sendThenWrite(P,r)):r?g.ge(P,r):g.Lu(P)})}}; KZO=function(e){var a={ns:e.J9,el:e.eventLabel,cpn:e.clientPlaybackNonce,ver:2,cmt:e.T(e.S),fmt:e.RO,fs:e.h9?"1":"0",rt:e.T(e.Ge),adformat:e.adFormat,content_v:e.contentVideoId,euri:e.h1,lact:e.kh,live:e.BV,cl:(788692020).toString(),mos:e.sx,state:e.playerState,volume:e.ZZ};e.subscribed&&(a.subscribed="1");Object.assign(a,e.QH);e.Y==="all"?Object.assign(a,e.sM):e.Y==="once"&&e.B&&Object.assign(a,e.sM);e.autoplay&&(a.autoplay="1");e.AC&&(a.sautoplay="1");e.ID&&(a.dni="1");!e.C&&e.XM&&(a.epm=rmy[e.XM]); e.isFinal&&(a["final"]="1");e.ym&&(a.splay="1");e.bv&&(a.delay=e.bv);e.GQ&&(a.hl=e.GQ);e.region&&(a.cr=e.region);e.userGenderAge&&(a.uga=e.userGenderAge);e.userAge!==void 0&&e.rP&&(a.uga=e.rP+e.userAge);e.e1!==void 0&&(a.len=e.T(e.e1));!e.C&&e.experimentIds.length>0&&(a.fexp=e.experimentIds.toString());e.D!==null&&(a.rtn=e.T(e.D));e.E8&&(a.feature=e.E8);e.n8&&(a.ctrl=e.n8);e.qO&&(a.ytr=e.qO);e.HA&&(a.afmt=e.HA);e.offlineDownloadUserChoice&&(a.ODUC=e.offlineDownloadUserChoice);e.HW&&(a.lio=e.T(e.HW)); e.C?(a.idpj=e.Yf,a.ldpj=e.py,e.delayThresholdMet&&(a.dtm="1"),e.N!=null&&(a.rti=e.T(e.N)),e.qo&&(a.ald=e.qo),e.compositeLiveIngestionOffsetToken&&(a.clio=e.compositeLiveIngestionOffsetToken)):e.adType!==void 0&&(a.at=e.adType);e.Te&&(e.B||e.C)&&(a.size=e.Te);e.B&&e.Z.length&&(a.pbstyle=e.Z.join(","));e.Q2!=null&&(e.B||e.C)&&(a.inview=e.T(e.Q2));e.C&&(a.volume=QE(e,g.ba(e.segments,function(P){return P.volume})),a.st=QE(e,g.ba(e.segments,function(P){return P.startTime})),a.et=QE(e,g.ba(e.segments,function(P){return P.endTime})), va(e.segments,function(P){return P.playbackRate!==1})&&(a.rate=QE(e,g.ba(e.segments,function(P){return P.playbackRate}))),va(e.segments,function(P){return P.S!=="-"})&&(a.als=g.ba(e.segments,function(P){return P.S}).join(",")),va(e.segments,function(P){return P.previouslyEnded})&&(a.pe=g.ba(e.segments,function(P){return""+ +P.previouslyEnded}).join(","))); a.muted=QE(e,g.ba(e.segments,function(P){return P.muted?1:0})); va(e.segments,function(P){return P.visibilityState!==0})&&(a.vis=QE(e,g.ba(e.segments,function(P){return P.visibilityState}))); va(e.segments,function(P){return P.connectionType!==0})&&(a.conn=QE(e,g.ba(e.segments,function(P){return P.connectionType}))); va(e.segments,function(P){return P.T!==0})&&(a.blo=QE(e,g.ba(e.segments,function(P){return P.T}))); va(e.segments,function(P){return!!P.B})&&(a.blo=g.ba(e.segments,function(P){return P.B}).join(",")); va(e.segments,function(P){return!!P.compositeLiveStatusToken})&&(a.cbs=g.ba(e.segments,function(P){return P.compositeLiveStatusToken}).join(",")); va(e.segments,function(P){return P.L!=="-"})&&(a.cc=g.ba(e.segments,function(P){return P.L}).join(",")); va(e.segments,function(P){return P.clipId!=="-"})&&(a.clipid=g.ba(e.segments,function(P){return P.clipId}).join(",")); if(va(e.segments,function(P){return!!P.audioId})){var r="au"; e.B&&(r="au_d");a[r]=g.ba(e.segments,function(P){return P.audioId}).join(",")}Pf()&&e.oH&&(a.ctt=e.oH,a.cttype=e.T$,a.mdx_environment=e.mdxEnvironment); e.FI&&(a.etype=e.TQ!==void 0?e.TQ:0);e.k$&&(a.uoo=e.k$);e.livingRoomAppMode&&e.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(a.clram=PZ4[e.livingRoomAppMode]||e.livingRoomAppMode);e.L?B23(e,a):(a.docid=e.videoId,a.referrer=e.referrer,a.ei=e.eventId,a.of=e.sL,a.osid=e.osid,a.vm=e.videoMetadata,e.adQueryId&&(a.aqi=e.adQueryId),e.autonav&&(a.autonav="1"),e.playlistId&&(a.list=e.playlistId),e.CE&&(a.ssrt="1"),e.qT&&(a.upt=e.qT));e.B&&(e.embedsRct&&(a.rct=e.embedsRct),e.embedsRctn&&(a.rctn= e.embedsRctn),e.compositeLiveIngestionOffsetToken&&(a.clio=e.compositeLiveIngestionOffsetToken));e.Uo&&(a.host_cpn=e.Uo);return a}; B23=function(e,a){if(a&&e.L){var r=new Set(["q","feature","mos"]),P=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),B=new Set(["aqi","autonav","list","ssrt","upt"]);e.L.ns==="3pp"&&(a.ns="3pp");for(var h=g.Z(Object.keys(e.L)),c=h.next();!c.done;c=h.next())c=c.value,P.has(c)||r.has(c)||B.has(c)&&!e.L[c]||(a[c]=e.L[c])}}; QE=function(e,a){return g.ba(a,e.T).join(",")}; ezO=function(e){e.indexOf("watchtime")!==-1&&g.BU("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:e}})}; hz3=function(e,a){e.attestationResponse&&uR4(e).then(function(r){r=r||{};r.method="POST";r.postParams={atr:e.attestationResponse};e.Lf?e.Cf?qx().sendAndWrite(a,r):qx().sendThenWrite(a,r):g.ge(a,r)})}; W7=function(e){g.N.call(this);this.provider=e;this.Z="paused";this.C=NaN;this.D=[10,10,10,40];this.N=this.Y=0;this.oH=this.Eo=this.TQ=this.HW=this.B=!1;this.T=this.L=NaN;this.logger=new g.bl("vss");this.S=new sRL(e)}; T24=function(e){if(!e.B){e.provider.videoData.Pg===16623&&g.VJ(Error("Playback for EmbedPage"));var a=lH(e,"playback");e.D=cmJ(e);FZl(e.S);a.D=LJ(e);e.T>0&&(a.S-=e.T);a.send();if(e.provider.videoData.hI){a=e.provider.iW;var r=e.provider.videoData,P={html5:"1",video_id:r.videoId,cpn:r.clientPlaybackNonce,ei:r.eventId,ptk:r.hI,oid:r.Tk,ptchn:r.nk,pltype:r.B3,content_v:ht(r)};r.QV&&Object.assign(P,{m:r.QV});a=g.EW(a.QL+"ptracking",P);o74(e,a)}e.provider.videoData.bv||(n7j(e),ymj(e));e.B=!0;e=e.S;e.S= e.XI();e.R5=g.c7(e.provider);!(e.B===0&&e.S<5)&&e.S-e.B>2&&(e.B=e.S);e.D=!0}}; cmJ=function(e){var a=e.provider.videoData.Up,r=e.provider.videoData.jP,P=[10+a,10,10,40+r-a,40],B,h=(B=e.provider.videoData.getPlayerResponse())==null?void 0:B.playbackTracking,c=h==null?void 0:h.videostatsScheduledFlushWalltimeSeconds;B=h==null?void 0:h.videostatsDefaultFlushIntervalSeconds;if(!(c&&c.length>0&&B))return e.logger.info("Missing valid scheduled pings config "+c+" "+B),P;a=[c[0]+a].concat(g.UO(c.slice(1).map(function(y,T){return y-c[T]})),[B+r-a, B]);return a.some(function(y){return y<0})?(e.logger.S(347111855,"Neg vss scheduled pings "+c+" "+B),P):a}; LJ=function(e,a){a=a===void 0?NaN:a;var r=g.c7(e.provider);a=isNaN(a)?r:a;a=Math.ceil(a);var P=e.D[e.Y];e.Y+11E3;!(h.length>1)&&h[0].isEmpty()||y||(c.D=LJ(e,B));c.send();e.N++}},(B-r)*1E3); return e.L=B}; YV=function(e){g.fK(e.C);e.C=NaN}; Xvy=function(e){e.S.update();e=e.S;e.segments.length&&e.S===e.B||$V(e);var a=e.segments;e.segments=[];return a}; lH=function(e,a){var r=AmL(e.provider);Object.assign(r,{state:e.Z});a=new jRI(e.provider.videoData,e.provider.iW,a,r);a.S=e.provider.uW.XI();r=e.provider.videoData.clientPlaybackNonce;a.S=e.provider.uW.P9(r);e.provider.videoData.isLivePlayback||(a.e1=e.provider.uW.getDuration(r));e.provider.videoData.S&&(r=e.provider.videoData.S.BZ(a.S))&&(a.HW=r-a.S,e.provider.iW.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&$0(e.provider.videoData)&&(a.S+=e.provider.uW.t9(),a.HW-=e.provider.uW.t9()));a.Ge=g.c7(e.provider); a.segments=[VE(e.provider)];return a}; fJL=function(e,a){var r=lH(e,"watchtime");UpI(e)&&(r.delayThresholdMet=!0,e.TQ=!0);if(e.T>0){for(var P=g.Z(a),B=P.next();!B.done;B=P.next())B=B.value,B.startTime-=e.T,B.endTime-=e.T;r.S-=e.T}else r.S=e.S.S;r.segments=a;return r}; wY=function(e,a){var r=CZ4(e,!isNaN(e.L));a&&(e.L=NaN);return r}; CZ4=function(e,a){var r=fJL(e,Xvy(e));!isNaN(e.L)&&a&&(r.N=e.L);return r}; UpI=function(e){var a;if(a=e.provider.videoData.isLoaded()&&e.provider.videoData.bv&&e.B&&!e.TQ)a=e.S,a=a.C+a.XI()-a.B>=e.provider.videoData.bv;return!!a}; n7j=function(e){e.provider.videoData.youtubeRemarketingUrl&&!e.Eo&&(o74(e,e.provider.videoData.youtubeRemarketingUrl),e.Eo=!0)}; ymj=function(e){e.provider.videoData.googleRemarketingUrl&&!e.oH&&(o74(e,e.provider.videoData.googleRemarketingUrl),e.oH=!0)}; GOJ=function(e){if(!e.wP()&&e.B){e.Z="paused";var a=wY(e);a.isFinal=!0;a.send();e.dispose()}}; E7T=function(e,a){if(!e.wP())if(g.S(a.state,2)||g.S(a.state,512)){if(e.Z="paused",g.TH(a,2)||g.TH(a,512))g.TH(a,2)&&(e.S.previouslyEnded=!0),e.B&&(YV(e),wY(e).send(),e.L=NaN)}else if(g.S(a.state,8)){e.Z="playing";var r=e.B&&isNaN(e.C)?LJ(e):NaN;if(!isNaN(r)&&(yW(a,64)<0||yW(a,512)<0)){var P=CZ4(e,!1);P.D=r;P.send()}g.TH(a,16)&&a.state.seekSource===58&&(e.S.previouslyEnded=!0)}else e.Z="paused"}; bcj=function(e,a,r){if(!e.HW){r||(r=lH(e,"atr"));r.attestationResponse=a;try{r.send()}catch(P){if(P.message!=="Unknown Error")throw P;}e.HW=!0}}; o74=function(e,a){var r=e.provider.iW;g.$G(e.provider.iW,g.ok(e.provider.videoData)).then(function(P){var B=e.provider.iW.pageId,h=e.provider.iW.sendVisitorIdHeader?e.provider.videoData.visitorData:void 0,c=e.provider.iW.X("vss_pings_using_networkless")||e.provider.iW.X("kevlar_woffle"),y=e.provider.iW.X("allow_skip_networkless");P=FRj(a,r,B,h,P);Mtl(a,P,{token:e.provider.videoData.Z,lH:e.provider.videoData.H4,mdxEnvironment:e.provider.videoData.mdxEnvironment},r,void 0,c&&!y,!1,!0)})}; tij=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.T=0;this.compositeLiveStatusToken=this.B=void 0;this.volume=this.connectionType=0;this.muted=!1;this.S=this.clipId="-";this.previouslyEnded=!1}; pJ=function(e,a,r){this.videoData=e;this.iW=a;this.uW=r;this.S=void 0}; g.c7=function(e){return g7q(e)()}; g7q=function(e){if(!e.S){var a=g.TV(function(P){var B=(0,g.Ov)();P&&B<=631152E6&&(e.uW.nf("ytnerror",{issue:28799967,value:""+B}),B=(new Date).getTime()+2);return B},e.iW.X("html5_validate_yt_now")),r=a(); e.S=function(){return Math.round(a()-r)/1E3}; e.uW.Cm()}return e.S}; AmL=function(e){var a=e.uW.Zh()||{};a.fs=e.uW.Hw();a.volume=e.uW.getVolume();a.muted=e.uW.isMuted()?1:0;a.mos=a.muted;a.clipid=e.uW.Qf();var r;a.playerheight=((r=e.uW.getPlayerSize())==null?void 0:r.height)||0;var P;a.playerwidth=((P=e.uW.getPlayerSize())==null?void 0:P.width)||0;e=e.videoData;r={};e.T&&(r.fmt=e.T.itag,e.L&&(e.dW?e.L.itag!==e.T.itag:e.L.itag!=e.T.itag)&&(r.afmt=e.L.itag));r.ei=e.eventId;r.list=e.playlistId;r.cpn=e.clientPlaybackNonce;e.videoId&&(r.v=e.videoId);e.NO&&(r.infringe=1); (e.A1?0:e.ZZ)&&(r.splay=1);(P=vE(e))&&(r.live=P);e.U5&&(r.sautoplay=1);e.o4&&(r.autoplay=1);e.I8&&(r.sdetail=e.I8);e.partnerId&&(r.partnerid=e.partnerId);e.osid&&(r.osid=e.osid);e.G7&&(r.cc=g.Zj4(e.G7));return Object.assign(a,r)}; odI=function(e){var a=Vqy();if(a)return Zc4[a]||Zc4.other;if(g.Uh(e.iW)){e=navigator.userAgent;if(/[Ww]ireless[)]/.test(e))return 3;if(/[Ww]ired[)]/.test(e))return 30}return 0}; VE=function(e){var a=new tij,r;a.L=((r=AmL(e).cc)==null?void 0:r.toString())||"-";a.playbackRate=e.uW.getPlaybackRate();r=e.uW.getVisibilityState();r!==0&&(a.visibilityState=r);e.iW.k$&&(a.T=1);a.B=e.videoData.h6;a.compositeLiveStatusToken=e.videoData.compositeLiveStatusToken;r=e.uW.getAudioTrack();r.yX&&r.yX.id&&r.yX.id!=="und"&&(a.audioId=r.yX.id);a.connectionType=odI(e);a.volume=e.uW.getVolume();a.muted=e.uW.isMuted();a.clipId=e.uW.Qf()||"-";a.S=e.videoData.bN||"-";return a}; g.iH=function(e,a){g.N.call(this);var r=this;this.provider=e;this.B=new Map;this.kf=new g.Q9;this.Ob={e_o:function(){return r.qoe}, xzP:function(){return r.S}, uqf:function(){return r.T}}; this.provider.videoData.Fw()&&!this.provider.videoData.B8&&(this.S=new W7(this.provider),this.S.T=0,g.x(this,this.S),this.qoe=new g.B7(this.provider,a),g.x(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.u$=this.provider.videoData.clientPlaybackNonce)&&this.B.set(this.u$,this.S));if(e.iW.playerCanaryState==="canary"||e.iW.playerCanaryState==="holdback")this.T=new DC(this.provider),g.x(this,this.T)}; OcJ=function(e){e.T&&vVN(e.T);e.qoe&&Edz(e.qoe)}; kOj=function(e){if(e.qoe){e=e.qoe;for(var a=e.provider.videoData,r=e.provider.iW,P=g.Z(r.sQ),B=P.next();!B.done;B=P.next())nJ(e,B.value);if(e.provider.X("html5_enable_qoe_cat_list"))for(P=g.Z(a.Iq),B=P.next();!B.done;B=P.next())nJ(e,B.value);else a.sQ&&nJ(e,e.provider.videoData.sQ);a.QX()&&(P=a.S,w3(a)&&nJ(e,"manifestless"),P&&Rl(P)&&nJ(e,"live-segment-"+Rl(P).toFixed(1)));QZ(a)?nJ(e,"sabr"):e.FT(zc(a));if(nV(a)||a.w1())a.w1()&&nJ(e,"ssa"),nJ(e,"lifa");$0(a)&&nJ(e,"cdm");a.gatewayExperimentGroup&& (P=a.gatewayExperimentGroup,P==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?P="spkadtrt":P==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(P="spkadctrl"),nJ(e,P));r.HW!=="yt"&&e.S.set("len",[a.lengthSeconds.toFixed(2)]);a.cotn&&!Tg(a)&&e.eN(!0);r.UM()&&(a=BCl())&&e.nf("cblt",{m:a});if(r.X("html5_log_screen_diagonal")){r=e.nf;var h;a=((h=window.H5vccScreen)==null?0:h.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;r.call(e,"cbltdiag",{v:a})}}}; dp3=function(e,a){e.S&&(e=e.S,a===58?e.S.update():e.B&&(YV(e),wY(e).send(),e.L=NaN))}; Jmq=function(e,a){if(g.TH(a,1024)||g.TH(a,512)||g.TH(a,4)){if(e.T){var r=e.T;r.T>=0||(r.S=-1,r.delay.stop())}e.qoe&&(r=e.qoe,r.D||(r.B=-1))}if(e.provider.videoData.enableServerStitchedDai&&e.u$){var P;(P=e.B.get(e.u$))==null||E7T(P,a)}else e.S&&E7T(e.S,a);if(e.qoe){P=e.qoe;r=a.state;var B=g.c7(P.provider),h=P.getPlayerState(r),c=r.seekSource||void 0;if(h!==P.kf){P.TQ||B= 10&&P.playTimeSecs<=180&&(P.S.set("qoealert",["1"]),P.bv=!0)),h!=="B"||P.kf!=="PL"&&P.kf!=="PB"||(P.isBuffering=!0),P.T=B);P.kf==="PL"&&(h==="B"||h==="S")||P.provider.iW.UM()?oR(P,B):(P.T$||h!=="PL"||(P.T$=!0,ndy(P,B,P.provider.uW.UN())),ctI(P,B));h==="PL"&&g.sC(P.Ge);var y=[h];h==="S"&&c&&y.push("ss."+c);g.P7(P,B,"vps",y);P.kf=h;P.HW=B;P.T=B;P.L=!0}h=r.xu;g.S(r,128)&&h&&(h.Q_=h.Q_||"",faz(P,B,h.errorCode,h.Xp,h.Q_));(g.S(r,2)||g.S(r,128))&&P.reportStats(B);r.isPlaying()&&!P.D&&(P.B>=0&&P.S.set("user_intent", [P.B.toString()]),P.D=!0);TC4(P)}e.T&&(e=e.T,RT4(e),e.playerState=a.state,e.T>=0&&g.TH(a,16)&&e.seekCount++,a.state.isError()&&e.send())}; DpJ=function(e){e.T&&e.T.send();if(e.qoe){var a=e.qoe;if(a.L){a.kf==="PL"&&(a.kf="N");var r=g.c7(a.provider);g.P7(a,r,"vps",[a.kf]);a.D||(a.B>=0&&a.S.set("user_intent",[a.B.toString()]),a.D=!0);a.provider.iW.UM()&&a.nf("finalized",{});a.Lf=!0;a.reportStats(r)}}if(e.provider.videoData.enableServerStitchedDai)for(a=g.Z(e.B.values()),r=a.next();!r.done;r=a.next())GOJ(r.value);else e.S&&GOJ(e.S);e.dispose()}; ViJ=function(e,a,r){switch(a){case "M":var P;(P=e.qoe)==null||bVj(P,a,r);break;case "A":var B;(B=e.qoe)==null||bVj(B,a)}}; $pq=function(e,a){e.S&&bcj(e.S,a)}; Qn4=function(e){if(!e.S)return null;var a=lH(e.S,"atr");return function(r){e.S&&bcj(e.S,r,a)}}; WX4=function(e,a,r,P){r.adFormat=r.mJ;var B=a.uW;a=new W7(new pJ(r,a.iW,{getDuration:function(){return r.lengthSeconds}, getCurrentTime:function(){return B.getCurrentTime()}, XI:function(){return B.XI()}, P9:function(){return B.P9()}, UN:function(){return B.UN()}, getPlayerSize:function(){return B.getPlayerSize()}, getAudioTrack:function(){return r.getAudioTrack()}, getPlaybackRate:function(){return B.getPlaybackRate()}, sN:function(){return B.sN()}, getVisibilityState:function(){return B.getVisibilityState()}, SM:function(){return B.SM()}, Zh:function(){return B.Zh()}, getVolume:function(){return B.getVolume()}, isMuted:function(){return B.isMuted()}, Hw:function(){return B.Hw()}, Qf:function(){return B.Qf()}, getProximaLatencyPreference:function(){return B.getProximaLatencyPreference()}, Cm:function(){B.Cm()}, nf:function(h,c){B.nf(h,c)}, m3:function(){return B.m3()}, t9:function(){return B.t9()}})); a.T=P;g.x(e,a);return a}; lJN=function(){this.kM=0;this.B=this.kI=this.mO=this.T=NaN;this.S={};this.bandwidthEstimate=NaN}; LX4=function(){this.S=g.RF;this.array=[]}; wv4=function(e,a,r){var P=[];for(a=Y0L(e,a);ar)break}return P}; pvj=function(e,a){var r=[];e=g.Z(e.array);for(var P=e.next();!P.done&&!(P=P.value,P.contains(a)&&r.push(P),P.start>a);P=e.next());return r}; ic4=function(e){return e.array.slice(Y0L(e,0x7ffffffffffff),e.array.length)}; Y0L=function(e,a){e=qM(e.array,function(r){return a-r.start||1}); return e<0?-(e+1):e}; zzz=function(e,a){var r=NaN;e=g.Z(e.array);for(var P=e.next();!P.done;P=e.next())if(P=P.value,P.contains(a)&&(isNaN(r)||P.enda&&(isNaN(r)||P.starte.mediaTime+e.C&&a1)e.L=!0;if((B===void 0?0:B)||isNaN(e.T))e.T=a;if(e.S)a!==e.mediaTime&&(e.S=!1);else if(a>0&&e.mediaTime===a){B=1500;if(e.iW.X("html5_buffer_underrun_transition_fix")){B=g.eS(e.iW.experiments,"html5_min_playback_advance_for_steady_state_secs");var h=g.eS(e.iW.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");B=B>0&&h>0&&Math.abs(a-e.T)(P||!e.L?B:400)}e.mediaTime=a;e.B=r;return!1}; mp3=function(e,a){this.videoData=e;this.S=a}; FXN=function(e,a,r){return a.x0(r).then(function(){return VU(new mp3(a,a.B))},function(P){P instanceof Error&&g.VJ(P); var B=Gs('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),h=b7('audio/mp4; codecs="mp4a.40.2"'),c=B||h,y=a.isLivePlayback&&!g.gV(e.C,!0);P="fmt.noneavailable";y?P="html5.unsupportedlive":c||(P="html5.missingapi");c=y||!c?2:1;B={buildRej:"1",a:a.D1(),d:!!a.J9,drm:a.lQ(),f18:a.sx.indexOf("itag=18")>=0,c18:B};a.S&&(a.lQ()?(B.f142=!!a.S.S["142"],B.f149=!!a.S.S["149"],B.f279=!!a.S.S["279"]):(B.f133=!!a.S.S["133"],B.f140=!!a.S.S["140"],B.f242=!!a.S.S["242"]),B.cAAC=h,B.cAVC=b7('video/mp4; codecs="avc1.42001E"'), B.cVP9=b7('video/webm; codecs="vp9"'));a.C&&(B.drmsys=a.C.keySystem,h=0,a.C.S&&(h=Object.keys(a.C.S).length),B.drmst=h);return new g.f_(P,B,c)})}; xV=function(e){this.data=window.Float32Array?new Float32Array(e):Array(e);this.T=this.S=e-1}; Mij=function(e){return e.data[e.S]||0}; jn4=function(e){this.C=e;this.B=this.T=0;this.L=new xV(50)}; H7=function(e,a,r){g.aK.call(this);this.videoData=e;this.experiments=a;this.C=r;this.T=[];this.N0=0;this.B=!0;this.L=!1;this.Z=0;r=new uSL;e.latencyClass==="ULTRALOW"&&(r.Z=!1);e.rP?r.B=3:g.FL(e)&&(r.B=2);e.latencyClass==="NORMAL"&&(r.C=!0);r.HW=QZ(e)&&a.FM("html5_refactor_decouple_liveness");g.eS(a,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.eS(a,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||e.latencyClass!=="LOW"&&e.latencyClass!=="ULTRALOW"||(r.C=!0);var P= g.eS(a,"html5_liveness_drift_proxima_override");if(zc(e)!==0&&P){r.S=P;var B;((B=e.S)==null?0:Xiz(B))&&r.S--}QZ(e)&&a.FM("html5_sabr_parse_live_metadata_playback_boundaries")&&(r.oH=!0);if(g.zu("trident/")||g.zu("edge/"))B=g.eS(a,"html5_platform_minimum_readahead_seconds")||3,r.L=Math.max(r.L,B);g.eS(a,"html5_minimum_readahead_seconds")&&(r.L=g.eS(a,"html5_minimum_readahead_seconds"));g.eS(a,"html5_maximum_readahead_seconds")&&(r.N=g.eS(a,"html5_maximum_readahead_seconds"));a.FM("html5_force_adaptive_readahead")&& (r.Z=!0);if(B=g.eS(a,"html5_liveness_drift_chunk_override"))r.S=B;pY(e)&&(r.S=(r.S+1)/5,e.latencyClass==="LOW"&&(r.S*=2));!QZ(e)||e.latencyClass!=="ULTRALOW"&&e.latencyClass!=="LOW"||(r.Y=g.eS(a,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,r.D=g.eS(a,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=r;this.D=this.policy.B!==1;this.S=IR(this,KXI(this,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e))}; e2q=function(e,a){if(a)return a=e.videoData,a=KXI(e,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a),IR(e,a);if(e.T.length){if(Math.min.apply(null,e.T)>1)return IR(e,e.S-1);if(e.policy.Z)return IR(e,e.S+1)}return e.S}; aDL=function(e,a){if(!e.T.length)return!1;var r=e.S;e.S=e2q(e,a===void 0?!1:a);if(a=r!==e.S)e.T=[],e.N0=0;return a}; qn=function(e,a){return a>=e.C8()-rhy(e)}; P6j=function(e,a,r){a=qn(e,a);r||a?a&&(e.B=!0):e.B=!1;e.D=e.policy.B===2||e.policy.B===3&&e.B}; BPj=function(e,a){a=qn(e,a);e.L!==a&&e.publish("livestatusshift",a);e.L=a}; rhy=function(e){var a=e.policy.S;e.L||(a=Math.max(a-1,0));return a*v7(e)}; KXI=function(e,a,r){r.rP&&a--;pY(r)&&(a=1);if(zc(r)!==0&&(e=g.eS(e.experiments,"html5_live_chunk_readahead_proxima_override"))){a=e;var P;((P=r.S)==null?0:Xiz(P))&&a++}return a}; v7=function(e){return e.videoData.S?Rl(e.videoData.S)||5:5}; IR=function(e,a){a=Math.max(Math.max(1,Math.ceil(e.policy.L/v7(e))),a);return Math.min(Math.min(8,Math.floor(e.policy.N/v7(e))),a)}; uSL=function(){this.L=0;this.N=Infinity;this.Z=!0;this.T=this.S=2;this.B=1;this.C=!1;this.D=10;this.oH=!1;this.Y=1;this.HW=!1}; sM=function(e){g.N.call(this);this.uW=e;this.S=0;this.T=null;this.Z=this.L=0;this.B={};this.iW=this.uW.G();this.C=new g.vP(this.CB,1E3,this);this.ym=RR(this,"html5_seek_timeout_delay_ms");this.TQ=RR(this,"html5_long_rebuffer_threshold_ms");this.PW=RR(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Cf=RR(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.XM=RR(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.ID=RR(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.HW=RR(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.oH=new SQ(2E4);this.e1=RR(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.GQ=RR(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Uo=RR(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.Lf=RR(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Y=RR(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.N=RR(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.k$=RR(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.rP=RR(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.D=RR(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.HA=new SQ(g.eS(this.iW.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.iW.X("html5_report_slow_ads_as_error"));this.bv=new SQ(g.eS(this.iW.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.iW.X("html5_skip_slow_buffering_ad"));this.T$=RR(this,"html5_slow_start_timeout_delay_ms");this.Eo=RR(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.x(this,this.C)}; RR=function(e,a,r){r=r===void 0?null:r;var P=P===void 0?0:P;return new SQ(g.eS(e.iW.experiments,a)||P,r?e.iW.X(r):!1)}; h2j=function(e,a){e.S=a}; mZ=function(e,a,r,P,B,h,c,y){a?a.test(r)?(e.LB(B,a,c),a.Z||h()):(!a.T||a.L?r=!1:(r=(0,g.Ov)(),P?a.S||(a.S=r):a.S=0,h=!P&&r-a.T>3E4,r=a.S&&r-a.S>1E3||h?a.L=!0:!1),r&&(y=Object.assign({},e.vA(a),y),y.wn=c,y.we=B,y.wsuc=P,e.uW.nf("workaroundReport",y),P&&(a.reset(),e.B[B]=!1))):e.uW.Ex("auth",2,"BROWSER_OR_EXTENSION_ERROR",XQ({source:"watchdog",name:c}))}; SQ=function(e,a){this.Z=a===void 0?!1:a;this.S=this.T=this.B=this.startTimestamp=0;this.L=!1;this.C=Math.ceil(e/1E3)}; yhz=function(e){g.N.call(this);var a=this;this.uW=e;this.Y=this.S=this.loader=this.mediaElement=this.playbackData=null;this.B=0;this.C=this.TQ=this.L=null;this.Lf=!1;this.T$=0;this.oH=!1;this.timestampOffset=0;this.N=!0;this.GQ=0;this.PW=this.sM=!1;this.D=0;this.rP=!1;this.Eo=0;this.iW=this.uW.G();this.videoData=this.uW.getVideoData();this.policy=new chz;this.HW=new sM(this.uW);this.HA=this.Uo=this.XM=this.Z=this.T=NaN;this.e1=new g.vP(function(){opL(a,!1)},2E3); this.ID=new g.vP(function(){FR(a)}); this.ym=new g.vP(function(){npN(a,{})}); this.bv=NaN;this.Cf=new g.vP(function(){var r=a.iW.Ky;r.S+=1E4/36E5;r.S-r.B>1/6&&(Wo4(r),r.B=r.S);a.Cf.start()},1E4); g.x(this,this.HW);g.x(this,this.e1);g.x(this,this.ym);g.x(this,this.ID);g.x(this,this.Cf)}; fDO=function(e,a){e.playbackData=a;e.videoData.isLivePlayback&&(e.Y=new jn4(function(){a:{if(e.playbackData&&e.playbackData.S.S){if(w3(e.videoData)&&e.loader){var P=e.loader.cC.rL()||0;break a}if(e.videoData.S){P=e.videoData.S.Lf;break a}}P=0}return P}),e.S=new H7(e.videoData,e.iW.experiments,function(){return e.HZ(!0)})); if(Mn(e.uW)){var r;(r=e.videoData.lq)!=null&&r.TB||(a=TPL(e),a.Yi?(QZ(e.videoData)&&e.Bi(a.Yi,a.startSeconds),e.B=a.startSeconds):a.startSeconds>0&&e.seekTo(a.startSeconds,{ze:"seektimeline_startPlayback",seekSource:15}));e.N=!1}else Xp4(e)||(e.B=e.B||e.videoData.startSeconds||0,e.videoData.isLivePlayback||(a=e.uW.videoData.HZ(),e.B>a&&(e.X("html5_sabr_log_invalid_sabr_current_time")&&e.uW.nf("invalidSabrCmtStart",{rt:e.B,mst:a}),e.X("html5_sabr_vod_invalid_start_time_fallback")&&(e.B=0))))}; UGT=function(e,a){(e.loader=a)?Ah3(e,!0):jQ(e)}; C6L=function(e,a){g.sC(e.HW.C);e.X("html5_exponential_memory_for_sticky")&&(a.state.isPlaying()?g.sC(e.Cf):e.Cf.stop());if(e.mediaElement)if(a.oldState.state===8&&iB(a.state)&&a.state.isBuffering()){a=e.mediaElement.getCurrentTime();var r=e.mediaElement.vV();var P=e.X("manifestless_post_live_ufph")||e.X("manifestless_post_live")?Bi(r,Math.max(a-3.5,0)):Bi(r,a-3.5);P>=0&&a>r.end(P)-1.1&&P+10?(uH(e.uW,e.getCurrentTime()+e.videoData.limitedPlaybackDurationInSeconds),e.PW=!0):e.videoData.isLivePlayback&&e.videoData.endSeconds>0&&(uH(e.uW,e.getCurrentTime()+e.videoData.endSeconds),e.PW=!0))}; Epy=function(e,a){var r=e.getCurrentTime(),P=e.isAtLiveHead(r);if(e.Y&&P){var B=e.Y;if(B.S&&!(r>=B.T&&r50&&B.T.shift())),B=e.S,P6j(B,r,a===void 0?!0:a),BPj(B,r),a&&opL(e,!0));P!==e.sM&&(a=e.getCurrentTime()-e.HA<=500,r=e.T$>=1E3,a||r||(a=e.uW.cA,a.qoe&&(a=a.qoe,r=g.c7(a.provider), g.P7(a,r,"lh",[P?"1":"0"])),e.sM=P,e.T$++,e.HA=e.getCurrentTime()))}; opL=function(e,a){if(e.S){var r=e.S;var P=e.getCurrentTime(),B=r.C8();var h=r.policy.T;r.L||(h=Math.max(h-1,0));h*=v7(r);P>=B-h||!r.o5()?r=Pr+1&&a0&&J0(e.mediaElement)>0&&(e.T=KJ(e,e.T,!1)),a=e.X("html5_pseudogapless_shorts_seek_to_next_start")&&(a==null?void 0:a.seekSource)===60,!e.mediaElement||!dGL(e,a))e.ID.start(750);else if(!isNaN(e.T)&&isFinite(e.T)&&(a=e.Uo-(e.T-e.timestampOffset),!(a===0||Math.abs(a)<.005)))if(a=e.mediaElement.getCurrentTime()-e.T,Math.abs(a)<=e.GQ||Math.abs(a)<.005)Jh4(e);else{if(e.videoData.rf)e.videoData.rf= !1;else if(!Y0(e.videoData)&&e.T>=e.HZ()-.1){e.T=e.HZ();e.L.resolve(e.HZ());e.iW.UM()&&e.uW.nf("setEndedInSeek",{tgt:""+e.T,maxst:""+e.HZ()});e.uW.s1();return}try{var r=e.T-e.timestampOffset;e.mediaElement.seekTo(r);e.HW.S=r;e.Uo=r;e.B=e.T;e.oH=!1}catch(P){}}}; dGL=function(e,a){a=a===void 0?!1:a;if(!e.mediaElement||e.mediaElement.Lq()===0||e.mediaElement.hasError())return!1;var r=e.mediaElement.getCurrentTime()>0;return e.videoData.B&&e.videoData.B.S||e.videoData.isLivePlayback||!e.videoData.lQ()?e.T>=0&&!a&&(a=e.mediaElement.dj(),a.length||!r)?h0(a,e.T-e.timestampOffset):r:r}; Jh4=function(e){e.L&&(e.L.resolve(e.mediaElement.getCurrentTime()),e.HW.T=null)}; OkL=function(e,a){e.C&&(e.C.resolve(a),e.uW.QO(),e.iW.UM()||khj(e))&&(a=e.vA(),a["native"]=""+ +e.oH,a.otgt=""+(e.T+e.timestampOffset),e.uW.nf("seekEnd",a));jQ(e)}; jQ=function(e){e.T=NaN;e.Z=NaN;e.Uo=NaN;e.L=null;e.TQ=null;e.C=null;e.Lf=!1;e.oH=!1;e.GQ=0;e.e1.stop();e.ym.stop()}; VK4=function(e,a){var r=e.mediaElement,P=a.type;switch(P){case "seeking":var B=r.getCurrentTime()+e.timestampOffset;if(!e.L||e.oH&&B!==e.T){e.L=new kF;e.L.then(function(c){OkL(e,c)},function(){jQ(e)}); if(e.videoData.isAd()){var h;r74({adCpn:e.videoData.clientPlaybackNonce,contentCpn:(h=e.videoData.T8)!=null?h:""},a.S)}e.Uo=B;h2j(e.HW,r.getCurrentTime());e.seekTo(B,{seekSource:104,ze:"seektimeline_mediaElementEvent"});e.oH=!0}break;case "seeked":Jh4(e);break;case "loadedmetadata":Mn(e.uW)||DGj(e);FR(e);break;case "progress":FR(e);break;case "pause":e.D=e.getCurrentTime()}e.D&&((P==="play"||P==="playing"||P==="timeupdate"||P==="progress")&&e.getCurrentTime()-e.D>10&&(e.X("html5_sky_skip_pause_jump")? e.uW.nf("skipPauseJump",{evt:P,cmt:e.getCurrentTime(),lpt:e.D}):e.seekTo(e.D,{ze:"pauseJump"})),P!=="pause"&&P!=="play"&&P!=="playing"&&P!=="progress"&&(e.D=0))}; $Gl=function(e){return(M4(e.videoData)||!!e.videoData.liveUtcStartSeconds)&&(!!e.videoData.liveUtcStartSeconds||Xp4(e))&&!!e.videoData.S}; Xp4=function(e){return!!e.videoData.startSeconds&&isFinite(e.videoData.startSeconds)&&e.videoData.startSeconds>1E9}; TPL=function(e){var a=0,r=NaN,P="";if(!e.N)return{startSeconds:a,Yi:r,source:P};e.videoData.TQ?a=e.videoData.Eo:Y0(e.videoData)&&(a=Infinity);if(g.FL(e.videoData))return{startSeconds:a,Yi:r,source:P};e.videoData.startSeconds?(P="ss",a=e.videoData.startSeconds):e.videoData.kh&&(P="stss",a=e.videoData.kh);e.videoData.liveUtcStartSeconds&&(r=e.videoData.liveUtcStartSeconds);if(isFinite(a)&&(a>e.HZ()||ae.HZ()||r 0?(P.onesie="0",e.handleError(new g.f_("html5.missingapi",P)),!1):!0}; z2y=function(e){var a=ez();aS(a,e);return g.v3(a,Yhj())}; wpl=function(e,a){var r,P,B,h,c,y,T,X,f,A,U,C,G,O,d,W,V,L,z,q,M,m,cI,CL,nL,y3;return g.Y(function(aT){if(aT.T==1)return a.fetchType="onesie",r=XZq(a,e.getPlayerSize(),e.getVisibilityState()),P=new sI(e,r),g.l(aT,P.fetch(),2);B=aT.S;h={player_response:B};a.loading=!1;c=e.hC.S0;if(P.EU){y=g.Z(P.EU.entries());for(T=y.next();!T.done;T=y.next())X=T.value,f=g.Z(X),A=f.next().value,U=f.next().value,C=A,G=U,c.S.set(C,G,180),C===a.videoId&&(O=G.wC(),a.nA=O);c.EX=P}d=g.Z(P.bb.entries());for(W=d.next();!W.done;W= d.next())V=W.value,L=g.Z(V),z=L.next().value,q=L.next().value,M=z,m=q,c.T.set(M,m,180);g.ET(a,h,!0);if(a.loading||CY(a))return aT.return(Promise.resolve());c.S.removeAll();c.T.removeAll();a.nA=[];cI={};CL="onesie.response";nL=0;a.errorCode?(CL="auth",cI.ec=a.errorCode,cI.ed=a.errorDetail,cI.es=a.Qt||"",nL=2):(cI.successButUnplayable="1",cI.disposed=""+ +a.wP(),cI.afmts=""+ +/adaptiveFormats/.test(B),cI.cpn=a.clientPlaybackNonce);y3=new g.f_(CL,cI,nL);return aT.return(Promise.reject(y3))})}; LGl=function(e,a){var r,P,B,h,c,y,T,X,f,A,U;return g.Y(function(C){switch(C.T){case 1:r=a.isAd(),P=!r,B=r?1:3,h=0;case 2:if(!(h0)){C.Oo(5);break}return g.l(C,N_(5E3),6);case 6:c=new g.I6("Retrying OnePlatform request",{attempt:h}),g.VJ(c);case 5:return g.kN(C,7),g.l(C,NPN(e,a),9);case 9:return C.return();case 7:y=g.Q3(C);T=Ud(y);X=T.errorCode;f=e.G();A=f.X("html5_use_network_error_code_enums")?401:"401";P&&X==="manifest.net.badstatus"&&T.details.rc===A&&(P=!1,h===B-1&&(B+= 1));if(h===B-1)return U=xG3(r,T.details),U.details.backend="op",U.details.originec=X,C.return(Promise.reject(U));if(X==="auth"||X==="manifest.net.retryexhausted")return C.return(Promise.reject(T));e.handleError(T);if(AX(T.severity)){C.Oo(4);break}case 3:h++;C.Oo(2);break;case 4:return C.return(Promise.reject(xG3(r,{backend:"op"})))}})}; NPN=function(e,a){function r(CL){CL.readyState===2&&e.M5("ps_c")} var P,B,h,c,y,T,X,f,A,U,C,G,O,d,W,V,L,z,q,M,m,cI;return g.Y(function(CL){switch(CL.T){case 1:a.fetchType="gp";P=e.G();B=g.$G(P,g.ok(a));if(!B.S){h=B.getValue();CL.Oo(2);break}return g.l(CL,B.S,3);case 3:h=CL.S;case 2:return c=h,y=z2y(c),T=XZq(a,e.getPlayerSize(),e.getVisibilityState()),X=g.Md(ID4),f=g.ok(a),A=(0,g.Ov)(),U=!1,C="empty",G=0,e.M5("psns"),O={kA:r},g.l(CL,g.L8(y,T,X,void 0,O),4);case 4:d=CL.S;e.M5("psnr");if(a.wP())return CL.return();d?"error"in d&&d.error?(U=!0,C="esf:"+d.error.message, G=d.error.code):d.errorMetadata&&(U=!0,C="its",G=d.errorMetadata.status):U=!0;if(U)return W=0,V=((0,g.Ov)()-A).toFixed(),L={},L=P.X("html5_use_network_error_code_enums")?{backend:"op",rc:G,rt:V,reason:C,has_kpt:a.Q2?"1":"0",has_mdx_env:a.mdxEnvironment?"1":"0",has_omit_key_flag:g.IM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:P.pageId?"1":"0",has_token:f?"1":"0",has_vvt:a.Lf?"1":"0",is_mdx:a.isMdxPlayback?"1":"0",mdx_ctrl:a.n8||"",token_eq:f===g.ok(a)?"1":"0"}:{backend:"op", rc:""+G,rt:V,reason:C,has_kpt:a.Q2?"1":"0",has_mdx_env:a.mdxEnvironment?"1":"0",has_omit_key_flag:g.IM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:P.pageId?"1":"0",has_token:f?"1":"0",has_vvt:a.Lf?"1":"0",is_mdx:a.isMdxPlayback?"1":"0",mdx_ctrl:a.n8||"",token_eq:f===g.ok(a)?"1":"0"},z="manifest.net.connect",G===429?(z="auth",W=2):G>200&&(z="manifest.net.badstatus",G===400&&(W=2)),CL.return(Promise.reject(new g.f_(z,L,W)));a.loading=!1;g.ET(a,{raw_player_response:d},!0); q=d;g.Bb(a.G())&&q&&q.trackingParams&&B2(q.trackingParams);if(a.errorCode)return M={ec:a.errorCode,ed:a.errorDetail,es:a.Qt||""},CL.return(Promise.reject(new g.f_("auth",M,2)));if(!a.loading&&!CY(a))return m=a.isAd()?"auth":"manifest.net.retryexhausted",cI=a.isAd()?2:1,CL.return(Promise.reject(new g.f_(m,{successButUnplayable:"1",hasMedia:g.St(a)?"1":"0"},cI)));g.OO(CL)}})}; lDq=function(e,a,r){function P(G){G=Ud(G);if(AX(G.severity))return Promise.reject(G);e.handleError(G);return!1} function B(){return!0} var h,c,y,T,X,f,A,U,C;return g.Y(function(G){switch(G.T){case 1:var O=e.G();e.getPlayerSize();e.getVisibilityState();e.isFullscreen();if(a.partnerId===38&&O.playerStyle==="books")O=a.videoId.indexOf(":"),O=g.EW("//play.google.com/books/volumes/"+a.videoId.slice(0,O)+"/content/media",{aid:a.videoId.slice(O+1),sig:a.XG1});else if(a.partnerId===30&&O.playerStyle==="docs")O=g.EW("https://docs.google.com/get_video_info",{docid:a.videoId,authuser:a.xG,authkey:a.hTr,eurl:O.J9});else if(a.partnerId===33&& O.playerStyle==="google-live")O=g.EW("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+O.HW);h=O;y=(c=a.isAd())?1:3;T=0;case 2:if(!(T0)){G.Oo(5);break}return g.l(G,N_(5E3),6);case 6:f={playerretry:T,playerretrysrc:r},c||(f.recover="embedded"),X=af(h,f);case 5:return g.l(G,HkT(a,X).then(B,P),7);case 7:if(A=G.S)return G.return();T++;G.Oo(2);break;case 4:U=c?"auth":"manifest.net.retryexhausted";C= c?2:1;if(!c&&Math.random()<1E-4)try{g.VJ(new g.I6("b/152131571",btoa(h)))}catch(d){}return G.return(Promise.reject(new g.f_(U,{backend:"gvi"},C)))}})}; HkT=function(e,a){function r(d){return P(d.xhr)} function P(d){if(!e.wP()){d=d?d.status:-1;var W=0,V=((0,g.Ov)()-f).toFixed();V=B.X("html5_use_network_error_code_enums")?{backend:"gvi",rc:d,rt:V}:{backend:"gvi",rc:""+d,rt:V};var L="manifest.net.connect";d===429?(L="auth",W=2):d>200&&(L="manifest.net.badstatus",d===400&&(W=2));return Promise.reject(new g.f_(L,V,W))}} var B,h,c,y,T,X,f,A,U,C,G,O;return g.Y(function(d){if(d.T==1){e.fetchType="gvi";B=e.G();var W={};e.SS&&(W.ytrext=e.SS);(y=g.Ak(W)?void 0:W)?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:y},c=af(a,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},c=a);T={};B.sendVisitorIdHeader&&e.visitorData&&(T["X-Goog-Visitor-Id"]=e.visitorData);(X=Et(B.experiments,"debug_sherlog_username"))&&(T["X-Youtube-Sherlog-Username"]=X);Object.keys(T).length> 0&&(h.headers=T);f=(0,g.Ov)();return g.l(d,ll(k2,c,h).then(void 0,r),2)}A=d.S;if(!A||!A.responseText)return d.return(P(A));e.loading=!1;U=jX(A.responseText);g.ET(e,U,!0);if(e.errorCode)return C={ec:e.errorCode,ed:e.errorDetail,es:e.Qt||""},d.return(Promise.reject(new g.f_("auth",C,2)));if(!e.loading&&!CY(e))return G=e.isAd()?"auth":"manifest.net.retryexhausted",O=e.isAd()?2:1,d.return(Promise.reject(new g.f_(G,{successButUnplayable:"1"},O)));g.OO(d)})}; xG3=function(e,a){return new g.f_(e?"auth":"manifest.net.retryexhausted",a,e?2:1)}; Bv=function(e,a,r){r=r===void 0?!1:r;var P,B,h,c;g.Y(function(y){if(y.T==1){P=e.G();if(r&&(!g.OA(P)||Px(a)!=="embedded")||a.il||Px(a)!=="adunit"&&(g.Uh(P)||XU(P)||g.L$(P)||g.Zm(P)||g.hZ(P)||Cn(P)==="WEB_CREATOR"))return y.return();B=g.$G(P,g.ok(a));return B.S?g.l(y,B.S,3):(h=B.getValue(),y.Oo(2))}y.T!=2&&(h=y.S);c=h;return y.return(q44(e,a,c))})}; q44=function(e,a,r){var P,B,h,c,y;return g.Y(function(T){if(T.T==1){g.kN(T,2);P=z2y(r);var X=a.G();g.wu();var f={context:g.Za(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};Px(a)==="adunit"&&(f.isAdPlayback=!0);X.embedConfig&&(f.serializedThirdPartyEmbedConfig=X.embedConfig);X.Vh&&(f.showContentOwnerOnly=!0);a.lS&&(f.showShortsOnly=!0);g.pE(0,141)&&(f.autonavState=g.pE(0,140)?"STATE_OFF":"STATE_ON");if(g.tZ(X)){var A=g.pE(0,65);A=A!=null? !A:!1;var U=!!g.$f("yt-player-sticky-caption");f.captionsRequested=A&&U}var C;if(X=(C=X.getWebPlayerContextConfig())==null?void 0:C.encryptedHostFlags)f.playbackContext={encryptedHostFlags:X};B=f;h=g.Md(vp3);e.M5("wn_s");return g.l(T,g.L8(P,B,h),4)}if(T.T!=2)return c=T.S,e.M5("wn_r"),!c||"error"in c&&c.error||(y=c,g.Bb(a.G())&&y.trackingParams&&B2(y.trackingParams),g.ET(a,{raw_watch_next_response:c},!1)),g.Dl(T,0);g.Q3(T);g.OO(T)})}; R2O=function(e){e.M5("vir");e.M5("ps_s");QA("vir",void 0,"video_to_ad");var a=ikI(e);a.then(function(){e.M5("virc");QA("virc",void 0,"video_to_ad");e.M5("ps_r");QA("ps_r",void 0,"video_to_ad")},function(){e.M5("virc"); QA("virc",void 0,"video_to_ad")}); return a}; g.on=function(e,a,r,P,B,h,c,y,T,X){T=T===void 0?new g.UT(e):T;X=X===void 0?!0:X;g.aK.call(this);var f=this;this.iW=e;this.playerType=a;this.WA=r;this.AU=P;this.getVisibilityState=h;this.visibility=c;this.hC=y;this.videoData=T;this.lI=X;this.logger=new g.bl("VideoPlayer");this.uB=null;this.ud=new OM;this.Of=null;this.rq=!0;this.cW=this.loader=null;this.lK=[];this.Hi=new Pv;this.IL=this.oM=null;this.o2=new Pv;this.OC=null;this.TD=this.qH=!1;this.L4=NaN;this.yG=!1;this.playerState=new g.Q9;this.EC=[]; this.zZ=new g.Zc;this.wb=new Auj(this);this.mediaElement=null;this.Hm=new g.vP(this.aD1,15E3,this);this.UY=this.Xl=!1;this.Pm=NaN;this.fH=!1;this.oe=0;this.fF=!1;this.GR=NaN;this.Bc=new ei(new Map([["bufferhealth",function(){return Ghj(f.fb)}], ["bandwidth",function(){return f.hJ()}], ["networkactivity",function(){return f.iW.schedule.TQ}], ["livelatency",function(){return f.isAtLiveHead()&&f.isPlaying()?S4T(f):NaN}], ["rawlivelatency",function(){return S4T(f)}]])); this.BE=0;this.loop=!1;this.playbackRate=1;this.YW=0;this.fb=new yhz(this);this.y9=!1;this.IW=[];this.O7=this.qN=0;this.lT=this.nV=!1;this.kI=this.mO=0;this.Yk=new g.vP(this.zP,0,this);this.p$=!1;this.cO=null;this.lQM=[this.zZ,this.Yk,this.Hm,this.Bc];this.yy=this.cQ=null;this.GG=function(){var A=f.cA;A.provider.iW.mJ||A.provider.uW.getVisibilityState()===3||(A.provider.iW.mJ=!0);A.B_();if(A.T){var U=A.T;U.C&&U.S<0&&U.provider.uW.getVisibilityState()!==3&&vVN(U)}A.qoe&&(A=A.qoe,A.ym&&A.B<0&&A.provider.iW.mJ&& Edz(A),A.L&&oR(A));f.loader&&hm(f);f.iW.Sd&&!f.videoData.backgroundable&&f.mediaElement&&!f.W7()&&(f.isBackground()&&f.mediaElement.HQ()?(f.nf("bgmobile",{suspend:1}),f.yY(!0,!0)):f.isBackground()||cv(f)&&f.nf("bgmobile",{resume:1}))}; this.Ob={LT:function(A){f.LT(A)}, Hio:function(A){f.uB=A}, B_H:function(){return f.cA}, lx:function(){return f.cW}, hso:function(){return f.nJ}, s51:function(){return f.S7}, Xiz:function(){}, G:function(){return f.iW}, rg:function(){return f.mediaElement}, Q2z:function(A){f.fu(A)}, fhW:function(){return f.AU}}; this.logger.debug(function(){return"creating, type "+a}); this.CC=new snT(this.iW);this.NA=new dY(this.iW,this.AU,this);this.Ca=new g.zq(this,function(A,U){A!==g.SS("endcr")||g.S(f.playerState,32)||f.s1();B(A,U,f.playerType);if(A===g.SS("transitiondetector")&&(A=f.loader)!=null&&(A=A.bv)!=null){var C=g.Z(YTL(U.id));C.next();C=C.next().value;QGI(A,C,U.start/1E3-A.uW.t9(),ZYT(A.L))}}); g.x(this,this.Ca);g.x(this,this.fb);s74(this,T);this.videoData.subscribe("dataupdated",this.WAQ,this);this.videoData.subscribe("dataloaded",this.Zv,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.nf,this);this.videoData.subscribe("ctmpstr",this.oI,this);!this.cA||this.cA.wP();this.cA=new g.iH(new pJ(this.videoData,this.iW,this));X7j(this.GG);this.visibility.subscribe("visibilitystatechange",this.GG);this.nJ=new g.vP(this.V_,g.eS(this.iW.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.S7=new g.vP(this.V_,g.eS(this.iW.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Ir=new g.Me(this.ZbM,350,this);g.x(this,this.Ir)}; s74=function(e,a){if(e.playerType===2||e.iW.bK)a.ZM=!0;var r=JgO(a.mJ,a.JF,e.iW.L,e.iW.Y);r&&(a.adFormat=r);e.playerType===2&&(a.o4=!0);if(e.isFullscreen()||e.iW.L)r=g.$f("yt-player-autonavstate"),a.autonavState=r||(e.iW.L?2:e.videoData.autonavState);a.endSeconds&&a.endSeconds>a.startSeconds&&uH(e,a.endSeconds)}; mGI=function(e){var a=e.videoData;R2O(e).then(void 0,function(r){e.videoData!==a||a.wP()||(r=Ud(r),r.errorCode==="auth"&&e.videoData.errorDetail?e.Ex(r.errorCode,2,unescape(e.videoData.errorReason),XQ(r.details),e.videoData.errorDetail,e.videoData.Qt||void 0):e.handleError(r))})}; j73=function(e){if(!g.S(e.playerState,128))if(e.videoData.isLoaded(),e.logger.debug("finished loading playback data"),e.lK=g.WB(e.videoData.N),g.St(e.videoData)){e.WA.tick("bpd_s");nc(e).then(function(){e.WA.tick("bpd_c");if(!e.wP()){e.qH&&(e.S5(LZ(LZ(e.playerState,512),1)),cv(e));var P=e.videoData;P.endSeconds&&P.endSeconds>P.startSeconds&&uH(e,P.endSeconds);e.Hi.finished=!0;yK(e,"dataloaded");e.o2.kY()&&FGq(e);qMy(e.NA,e.IL)}}); e.X("html5_log_media_perf_info")&&e.nf("loudness",{v:e.videoData.h1.toFixed(3)},!0);var a,r=(a=e.mediaElement)==null?void 0:a.EM();if(r&&"disablePictureInPicture"in r&&e.iW.pY)try{r.disablePictureInPicture=e.iW.SZ&&!e.videoData.backgroundable}catch(P){g.VJ(P)}MK3(e)}else yK(e,"dataloaded")}; nc=function(e){TO(e);e.IL=null;var a=FXN(e.iW,e.videoData,e.W7());e.oM=a;e.oM.then(function(r){uaL(e,r)},function(r){e.wP()||(r=Ud(r),e.visibility.isBackground()?(XS(e,"vp_none_avail"),e.oM=null,e.Hi.reset()):(e.Hi.finished=!0,e.Ex(r.errorCode,r.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",XQ(r.details))))}); return a}; uaL=function(e,a){if(!e.wP()&&!a.videoData.wP()){e.logger.debug("finished building playback data");e.IL=a;fDO(e.fb,e.IL);if(e.videoData.isLivePlayback){var r=KGL(e.hC.S0,e.videoData.videoId)||e.loader&&!isNaN(e.loader.Lf);r=e.X("html5_onesie_live")&&r;Mn(e)||e.videoData.T$>0&&!w3(e.videoData)||r||e.seekTo(e.HZ(),{ze:"videoplayer_playbackData",seekSource:18})}if(e.videoData.B.S){if(ehj(e.videoData)){e.Ex("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",XQ({missabrurl:1}));return}e.loader?g.VJ(Error("Duplicated Loader")): (r=g.eS(e.iW.experiments,"html5_onesie_defer_content_loader_ms"))&&e.Jb()&&KGL(e.hC.S0,e.videoData.R$H)?g.Tu(function(){e.wP()||e.loader||eql(e)},r):eql(e)}else!e.videoData.B.S&&Tg(e.videoData)&&e.JT(new dt(e.videoData.videoId||"",4)); e.Yx();w74(a).then(function(){var P={};e.E9(P);e.iW.UM()&&e.X("html5_log_media_perf_info")&&e.nf("av1Info",P);hm(e)})}}; FGq=function(e){e.wP();e.logger.debug("try finish readying playback");if(e.o2.finished)e.logger.debug("already finished readying");else if(e.Hi.finished)if(g.S(e.playerState,128))e.logger.debug("cannot finish readying because of error");else if(e.lK.length)e.logger.debug(function(){return"cannot finish readying because of pending preroll: "+e.lK}); else if(e.Ca.started||xpO(e.Ca),e.c8())e.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{e.loader&&(e.TD=uHy(e.loader.timing));e.o2.finished||(e.o2.finished=!0);var a=e.X("html5_onesie_live")&&e.loader&&!isNaN(e.loader.Lf);!e.videoData.isLivePlayback||e.videoData.T$>0&&!w3(e.videoData)||a||Mn(e)||(e.logger.debug("seek to head for live"),e.seekTo(Infinity,{ze:"videoplayer_readying",seekSource:18}),e.isBackground()&&(e.UY=!0));kOj(e.cA);e.logger.debug("finished readying playback"); e.publish("playbackready");VA("pl_c",e.WA.timerName)||(e.WA.tick("pl_c"),QA("pl_c",void 0,"video_to_ad"));VA("pbr",e.WA.timerName)||(e.WA.tick("pbr"),QA("pbr",void 0,"video_to_ad"))}else e.logger.debug("playback data not loaded")}; uH=function(e,a){e.Of&&aW4(e);e.Of=new g.v_(a*1E3,0x7ffffffffffff);e.Of.namespace="endcr";e.addCueRange(e.Of)}; aW4=function(e){e.removeCueRange(e.Of);e.Of=null}; rd4=function(e,a,r,P,B){var h=e.cA,c=e.videoData;c.T=r;var y=g.fc(e);r=new Juq(c,r,a,y?y.itag:"",P);e.iW.experiments.FM("html5_refactor_sabr_video_format_selection_logging")?(r.videoId=B,e.yy=r):h.qoe&&Ggy(h.qoe,r);B=e.NA;B.T=0;B.S=0;e.publish("internalvideoformatchange",c,a==="m")}; g.fc=function(e){var a=Am(e);return D9(a)||!e.IL?null:g.tw(e.IL.S.videoInfos,function(r){return a.L(r)})}; Am=function(e){if(e.IL){var a=e.NA;var r=e.IL;e=e.eq();var P=VQI(a);if(D9(P)){if(P=a.tP(r).compose(lCL(a,r)).compose(YMq(a,r)).compose(IC4(a,r.videoData)).compose(HJI(a,r.videoData,r)).compose(xn3(a,r)).compose(QRy(a,r)),D9(e)||a.X("html5_apply_pbr_cap_for_drm"))P=P.compose(WZy(a,r))}else a.X("html5_perf_cap_override_sticky")&&(P=P.compose(xn3(a,r))),a.X("html5_ustreamer_cap_override_sticky")&&(P=P.compose(WZy(a,r)));P=P.compose(QRy(a,r));a=r.videoData.FO.compose(P).compose(r.videoData.WQ).compose(e)}else a= A3;return a}; eol=function(e){var a=e.NA;e=e.videoData;var r=IC4(a,e);a.X("html5_disable_client_autonav_cap_for_onesie")||r.compose(HJI(a,e));return r}; hm=function(e){if(e.videoData.B&&e.videoData.B.S){var a=Am(e);e.loader&&pxj(e.loader,a)}}; PuT=function(e){var a;return!!(e.X("html5_native_audio_track_switching")&&g.Uv&&((a=e.videoData.T)==null?0:FQ(a)))}; BXL=function(e){if(!PuT(e))return!1;var a;e=(a=e.mediaElement)==null?void 0:a.audioTracks();return!!(e&&e.length>1)}; cdq=function(e){var a=hq4(e);if(a)return e.videoData.getAvailableAudioTracks().find(function(r){return r.yX.getName()===a})}; hq4=function(e){var a;if(e=(a=e.mediaElement)==null?void 0:a.audioTracks())for(a=0;a0&&(a.mf=r.t6));a.n5=r.He;a.K8=eD(P,{},r.B||void 0,VZ(r));a.k$=Do(r)&&(g.L$(P)||g.Zm(P));QZ(r)&&(a.C=!0,a.h6=P.X("html5_estimate_live_partial_slice_duration"),a.py=!0,P.X("html5_sabr_report_partial_segment_estimated_duration")&&(a.sD=!0),a.S=!0,a.pT=P.X("html5_sabr_enable_live_clock_offset"),a.ZI= P.X("html5_disable_client_resume_policy_for_sabr"),a.QD=P.X("html5_trigger_loader_when_idle_network"),a.X7=P.X("html5_sabr_parse_live_metadata_playback_boundaries"),a.E8=P.X("html5_consume_onesie_next_request_policy_for_sabr"),a.tI=P.X("html5_sabr_report_next_ad_break_time"),a.Fx=P.X("html5_log_high_res_buffer_timeline")&&P.UM(),a.hI=P.X("html5_remove_stuck_slices_beyond_max_buffer_limits"),a.bx=P.X("html5_gapless_sabr_btl_last_slice")&&J3(r),a.UX=P.X("html5_reset_last_appended_slice_on_seek")&&J3(r), w3(r)?(a.mK=!0,a.w0=P.X("html5_disable_variability_tracker_for_live"),a.ym=!0,P.X("html5_simplified_backup_timeout_sabr_live")&&(a.gb=!0,a.t1=a.qo)):a.Q2=P.X("html5_probe_request_on_sabr_request_progress"),a.j2=P.X("html5_serve_start_seconds_seek_for_post_live_sabr"),a.Ky=P.X("html5_flush_index_on_updated_timestamp_offset"),a.N=QZ(r),a.ih=P.X("html5_ignore_partial_segment_from_live_readahead"),P.X("html5_include_partial_segment_for_jumbo_ll")&&pY(r)&&(a.ih=!1),a.jP=P.X("html5_use_non_active_broadcast_for_post_live"), a.Lf=P.X("html5_use_centralized_player_time"),a.h9=P.X("html5_log_centralized_player_time"),a.U8=P.X("html5_consume_onesie_sabr_seek"),a.HW=P.X("html5_enable_sabr_seek_loader_refactor"),a.FO=g.eS(P.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),a.Up=P.X("html5_update_segment_start_time_from_media_header"),r.enableServerStitchedDai&&(a.T=!0,a.JF=P.X("html5_reset_server_stitch_state_for_non_sabr_seek"),a.cB=P.X("html5_remove_ssdai_append_pause")&&!r.w1(),a.h1=P.X("html5_ssdai_log_ssevt_in_loader")|| P.X("html5_ssdai_log_ssevt_in_loader_200ms")||P.X("html5_ssdai_log_ssevt_in_loader_timers")||P.X("html5_ssdai_log_ssevt_in_loader_cuerange"),P.X("html5_ssdai_log_ssevt_in_loader_timers")?a.HA=1:P.X("html5_ssdai_log_ssevt_in_loader_200ms")?a.HA=3:P.X("html5_ssdai_log_ssevt_in_loader_cuerange")&&(a.HA=0)),a.AN=P.UM()||r.w1());a.QH=g.j0q(r);H2(P.C,q$.BITRATE)&&(a.NF=NaN);if(y=g.eS(P.experiments,"html5_request_size_max_kb"))a.XM=y*1024;P.C.B?a.G0="; "+q$.EXPERIMENTAL.name+"=allowed":P.X("html5_enable_cobalt_tunnel_mode")&& g.x2()&&(y=q$.TUNNELMODE,a.G0="; "+y.name+"="+y.valid);r=r.serverPlaybackStartConfig;(r==null?0:r.enable)&&(r==null?0:r.playbackStartPolicy)&&(a.dD=!0,rq(a,r.playbackStartPolicy,2));r=ozy(e);e.ud.removeAll();a:{y=e.hC.S0;if(P=e.videoData.videoId)if(B=y.S.get(P)){y.S.remove(P);y=B;break a}y=void 0}e.loader=new g.fJ(e,e.iW.schedule,a,e.videoData.S,e.videoData.B,Am(e),r,e.videoData.enableServerStitchedDai,y,e.videoData.HW);a=e.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&e.videoData.isLivePlayback&& e.Jb()?!0:e.qH&&g.Uh(e.iW)&&e.videoData.isLivePlayback;e.loader.initialize(e.getCurrentTime(),Am(e),a);e.videoData.probeUrl&&(e.loader.k$=e.videoData.probeUrl);if(e.lK.length||e.qH)e.videoData.cotn||U0(e,!1);UGT(e.fb,e.loader);e.cO&&(Baj(e.loader,new g.Au(e.cO)),e.nf("sdai",{sdl:1}));g.UL(e.videoData)&&(e=e.loader,e.policy.hN=e.policy.W1)}; TO=function(e){e.loader&&(e.loader.dispose(),e.loader=null,UGT(e.fb,null));e.SH()?nzJ(e):e.CT()}; nzJ=function(e){if(e.cW)if(e.logger.debug("release media source"),e.L9(),e.cW.C)try{e.iW.UM()&&e.nf("rms",{l:"vprms",sr:e.SH(),rs:ZT(e.cW)});e.cW.clear();var a;(a=e.mediaElement)!=null&&(a.T=e.cW);e.cW=null}catch(r){a=new g.I6("Error while clearing Media Source in VideoPlayer: "+r.name+", "+r.message),a=Ud(a),e.handleError(a),e.CT()}else e.CT()}; ydJ=function(e,a){a=a===void 0?!1:a;if(e.cW)return e.cW.B;e.logger.debug("update media source");a:{a=a===void 0?!1:a;try{g.x2()&&e.videoData.My()&&vgO(e.mediaElement);var r=e.mediaElement.lx(e.AL(),e.AJ())}catch(B){if(bJ3(e.wb,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",B);e.Ex("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}e.UF(r,!1,!1,a)}var P;return((P=e.lx())==null?void 0:P.B)||null}; TXy=function(e,a){a=a===void 0?!1:a;if(e.loader){e.videoData.enableServerStitchedDai&&b2z(e.loader);var r=e.getCurrentTime()-e.t9();e.loader.seek(r,{MH:a}).Vl(function(){})}else eql(e)}; fWy=function(e,a,r,P){r=r===void 0?!1:r;P=P===void 0?!1:P;if(e.cW&&(!a||e.cW===a)){e.logger.debug("media source opened");var B=e.getDuration();!B&&w3(e.videoData)&&(B=25200);if(e.cW.isView){var h=B;e.logger.debug(function(){return"Set media source duration to "+h+", video duration "+B}); h>e.cW.getDuration()&&X6y(e,h)}else X6y(e,B);Lul(e.loader,e.cW,r,P);e.publish("mediasourceattached")}}; X6y=function(e,a){if(e.cW){e.cW.q2(a);var r;(r=e.loader)!=null&&r.policy.Lf&&(r.Z=a)}}; zMN=function(e,a){rd4(e,a.reason,a.S.info,a.token,a.videoId)}; yK=function(e,a){e.publish("internalvideodatachange",a===void 0?"dataupdated":a,e.videoData)}; AdL=function(e){for(var a=g.Z("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),r=a.next();!r.done;r=a.next())e.zZ.j(e.mediaElement,r.value,e.fu,e);e.iW.by&&e.mediaElement.WB()&&(e.zZ.j(e.mediaElement,"webkitplaybacktargetavailabilitychanged",e.QHM,e),e.zZ.j(e.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",e.DFW,e))}; CuO=function(e){g.Al(e.L4);UwJ(e)||(e.L4=g.Xw(function(){return UwJ(e)},100))}; UwJ=function(e){var a=e.mediaElement;a&&e.Xl&&!e.videoData.oH&&!VA("vfp",e.WA.timerName)&&a.Lq()>=2&&!a.isEnded()&&nZ(a.vV())&&e.WA.tick("vfp");return(a=e.mediaElement)&&!e.videoData.oH&&a.getDuration()>0&&(a.isPaused()&&a.Lq()>=2&&nZ(a.vV())&&(VA("pbp",e.WA.timerName)||e.WA.tick("pbp"),!e.videoData.HI||e.yG||a.isSeeking()||(e.yG=!0,e.publish("onPlaybackPauseAtStart"))),a=a.getCurrentTime(),Nn(e.CC,a))?(e.mw(),!0):!1}; Ezz=function(e){e.cA.onProgress();if(Y0(e.videoData)&&Date.now()>e.YW+6283){if(!(!e.isAtLiveHead()||e.videoData.S&&HO(e.videoData.S))){var a=e.cA;if(a.qoe){a=a.qoe;var r=a.provider.uW.UN(),P=g.c7(a.provider);ndy(a,P,r);r=r.B;isNaN(r)||g.P7(a,P,"e2el",[r.toFixed(3)])}}e.X("html5_alc_live_log_rawlat")?(a=e.videoData,a=g.fm(a.G())?!0:g.EA(a.G())?a.drmProduct==="6":!1):a=g.fm(e.iW);P=e.X("html5_always_log_rawlat");(a||P)&&e.nf("rawlat",{l:r2(e.Bc,"rawlivelatency").toFixed(3)});e.YW=Date.now()}e.videoData.T&& FQ(e.videoData.T)&&(a=e.cJ())&&a.videoHeight!==e.O7&&(e.O7=a.videoHeight,rd4(e,"a",Gbz(e,e.videoData.ym)))}; Gbz=function(e,a){if(a.S.video.quality==="auto"&&FQ(a.getInfo())&&e.videoData.AC)for(var r=g.Z(e.videoData.AC),P=r.next();!P.done;P=r.next())if(P=P.value,P.getHeight()===e.O7&&P.S.video.quality!=="auto")return P.getInfo();return a.getInfo()}; S4T=function(e){if(!Y0(e.videoData))return NaN;var a=0;e.loader&&e.videoData.S&&(a=w3(e.videoData)?e.loader.cC.rL()||0:e.videoData.S.Lf);return(0,g.Ov)()/1E3-e.BZ()-a}; toI=function(e){e.mediaElement&&e.mediaElement.W7()&&(e.GR=(0,g.Ov)());e.iW.qo?g.Tu(function(){b1J(e)},0):b1J(e)}; b1J=function(e){var a;if((a=e.cW)==null||!a.zT()){if(e.mediaElement)try{e.OC=e.mediaElement.playVideo()}catch(P){XS(e,"err."+P)}if(e.OC){var r=e.OC;r.then(void 0,function(P){e.logger.debug(function(){return"playMediaElement failed: "+P}); if(!g.S(e.playerState,4)&&!g.S(e.playerState,256)&&e.OC===r)if(P&&P.name==="AbortError"&&P.message&&P.message.includes("load"))e.logger.debug(function(){return"ignore play media element failure: "+P.message}); else{var B="promise";P&&P.name&&(B+=";m."+P.name);XS(e,B);e.y9=!0;e.videoData.A1=!0}})}}}; XS=function(e,a){g.S(e.playerState,128)||(e.S5(wx(e.playerState,1028,9)),e.nf("dompaused",{r:a}),e.publish("onAutoplayBlocked"))}; cv=function(e,a){a=a===void 0?!1:a;if(!e.mediaElement||!e.videoData.B)return!1;var r=a;r=r===void 0?!1:r;var P=null;var B;if((B=e.videoData.B)==null?0:B.S){P=ydJ(e,r);var h;(h=e.loader)==null||h.resume()}else TO(e),e.videoData.ym&&(P=e.videoData.ym.xb());B=e.mediaElement.HQ();r=!1;B&&B.equals(P)||(gzy(e,P),r=!0);g.S(e.playerState,2)||(P=e.fb,a=a===void 0?!1:a,P.C||!(P.B>0)||P.mediaElement&&P.mediaElement.getCurrentTime()>0||(a={ze:"seektimeline_resumeTime",MH:a},P.videoData.oH||(a.seekSource=15), P.seekTo(P.B,a)));a:{a=r;if(QZ(e.videoData)){if(!e.videoData.lQ())break a}else if(!g.HE(e.videoData))break a;if(e.mediaElement)if((P=e.videoData.C)&&e.mediaElement.WB()){B=e.mediaElement.EM();if(e.uB)if(B!==e.uB.element)Cc(e);else if(a&&P.flavor==="fairplay"&&!If())Cc(e);else break a;if(e.X("html5_report_error_for_unsupported_tvos_widevine")&&If()&&P.flavor==="widevine")e.Ex("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{e.uB=new ruj(B,e.videoData,e.iW);e.uB.subscribe("licenseerror", e.Yr,e);e.uB.subscribe("qualitychange",e.KLW,e);e.uB.subscribe("heartbeatparams",e.RN,e);e.uB.subscribe("keystatuseschange",e.LT,e);e.uB.subscribe("ctmp",e.nf,e);a=g.Z(e.ud.keys);for(P=a.next();!P.done;P=a.next())P=e.ud.get(P.value),e.uB.DT(P);e.X("html5_eme_loader_sync")||e.ud.removeAll()}}else e.Ex("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return r}; gzy=function(e,a){e.WA.tick("vta");QA("vta",void 0,"video_to_ad");e.getCurrentTime()>0&&bkz(e.fb,e.getCurrentTime());e.mediaElement.activate(a);e.cW&&j$(4);!e.videoData.oH&&e.playerState.isOrWillBePlaying()&&e.Hm.start();if(PuT(e)){var r;if(a=(r=e.mediaElement)==null?void 0:r.audioTracks())a.onchange=function(){e.publish("internalaudioformatchange",e.videoData,!0)}}}; Cc=function(e){e.uB&&(e.uB.dispose(),e.uB=null)}; Z13=function(e){var a=a===void 0?!1:a;e.logger.debug("reattachVideoSource");e.mediaElement&&(e.cW?(Cc(e),e.CT(),ydJ(e,a)):(e.videoData.ym&&e.videoData.ym.fn(),e.mediaElement.stopVideo()),e.playVideo())}; O1z=function(e,a){e.iW.X("html5_log_rebuffer_reason")&&(a={r:a,lact:tB()},e.mediaElement&&(a.bh=DT(e.mediaElement)),e.nf("bufreason",a))}; kbL=function(e,a){if(e.iW.UM()&&e.mediaElement){var r=e.mediaElement.vA();r.omt=(e.mediaElement.getCurrentTime()+e.t9()).toFixed(3);r.ps=e.playerState.state.toString(16);r.rt=(g.c7(e.cA.provider)*1E3).toFixed();r.e=a;e.IW[e.qN++%5]=r}try{if(a==="timeupdate"||a==="progress")return}catch(P){}e.logger.debug(function(){return"video element event "+a})}; dwL=function(e){if(e.iW.UM()){e.IW.sort(function(P,B){return+P.rt-+B.rt}); for(var a=g.Z(e.IW),r=a.next();!r.done;r=a.next())r=r.value,e.nf("vpe",Object.assign({t:r.rt},r));e.IW=[];e.qN=0}}; JdJ=function(e){if(g.zu("cobalt")&&g.zu("nintendo switch")){var a=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;e.nf("nxdock",{d:a})}}; U0=function(e,a){var r;(r=e.loader)==null||Vnj(r,a)}; MK3=function(e){Gg(e.videoData,"html5_set_debugging_opt_in")&&(e=g.wu(),g.pE(0,183)||(zn(183,!0),e.save()))}; tRJ=function(e,a){e.hC.O2()||(e.nf("sgap",{f:a}),e.hC.clearQueue(!1,a==="pe"))}; Mn=function(e){return e.X("html5_disable_video_player_initiated_seeks")&&QZ(e.videoData)}; DwL=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);kd(this.api,"isLifaAdPlaying",function(){return a.api.isLifaAdPlaying()}); this.events.j(e,"serverstitchedvideochange",function(){var r;(r=a.api.getVideoData())!=null&&r.w1()&&(a.api.isLifaAdPlaying()?(a.playbackRate=a.api.getPlaybackRate(),a.api.setPlaybackRate(1)):a.api.setPlaybackRate(a.playbackRate))}); this.playbackRate=1}; GO=function(e){Zk.call(this,"Loop",g.$e.ZO);this.W=e;var a=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:Q6j();this.setIcon(a);this.subscribe("select",this.T,this);e.createClientVe(this.element,this,28661);this.j(e,"settingsMenuVisibilityChanged",this.S);this.listen("click",this.logClick);this.j(e,"onLoopChange",this.onLoopChange);ON(this,e.getLoopVideo());e.Ch().D5(this)}; Voj=function(e){fw.call(this,e);var a=this;e.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new GO(a.api),g.x(a,a.menuItem))}); e.addEventListener("videodatachange",function(r,P){r=a.api.getPresentingPlayerType()===2;var B;(B=a.menuItem)==null||B.Nr(!P.isLivePlayback&&!r)})}; $w3=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);kd(this.api,"seekToChapterWithAnimation",function(r){a.seekToChapterWithAnimation(r)}); kd(this.api,"seekToTimeWithAnimation",function(r,P){a.seekToTimeWithAnimation(r,P)}); kd(this.api,"renderChapterSeekingAnimation",function(r,P,B){a.api.renderChapterSeekingAnimation(r,P,B)}); kd(this.api,"setMacroMarkers",function(r){a.setMacroMarkers(e,r)}); kd(this.api,"changeMarkerVisibility",function(r,P,B){a.changeMarkerVisibility(r,P,B)}); kd(this.api,"isSameMarkerTypeVisible",function(r){return a.isSameMarkerTypeVisible(r)})}; QWy=function(e,a,r){var P=e.api.getCurrentTime()*1E30&&B>0&&(r.width+=B,g.vo(a.element,"width",r.width+"px")));e.size=r}}; g.Lc=function(e,a){var r=e.S[e.S.length-1];r!==a&&(e.S.push(a),ybO(e,r,a))}; g.Y7=function(e){if(!(e.S.length<=1)){var a=e.S.pop(),r=e.S[0];e.S=[r];ybO(e,a,r,!0)}}; ybO=function(e,a,r,P){Tz4(e);a&&(a.unsubscribe("size-change",e.v0,e),a.unsubscribe("back",e.Ho,e));r.subscribe("size-change",e.v0,e);r.subscribe("back",e.Ho,e);if(e.oD){g.rr(r.element,P?"ytp-panel-animate-back":"ytp-panel-animate-forward");r.Kf(e.element);r.focus();e.element.scrollLeft=0;e.element.scrollTop=0;var B=e.size;nw4(e);g.ab(e.element,B);e.Z=new g.vP(function(){XFL(e,a,r,P)},20,e); e.Z.start()}else r.Kf(e.element),a&&a.detach()}; XFL=function(e,a,r,P){e.Z.dispose();e.Z=null;g.rr(e.element,"ytp-popup-animating");P?(g.rr(a.element,"ytp-panel-animate-forward"),g.BD(r.element,"ytp-panel-animate-back")):(g.rr(a.element,"ytp-panel-animate-back"),g.BD(r.element,"ytp-panel-animate-forward"));g.ab(e.element,e.size);e.D=new g.vP(function(){g.BD(e.element,"ytp-popup-animating");a.detach();g.hi(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);e.D.dispose();e.D=null},250,e); e.D.start()}; Tz4=function(e){e.Z&&g.ms(e.Z);e.D&&g.ms(e.D)}; w2=function(e){g.lZ.call(this,e,"ytp-shopping-product-menu");this.TG=new g.QK(this.W);g.x(this,this.TG);this.hide();g.Lc(this,this.TG);g.MY(this.W,this.element,4)}; Abj=function(e,a,r){var P,B=a==null?void 0:(P=a.text)==null?void 0:P.simpleText;B&&(r=fiq(e,r,B,a==null?void 0:a.icon,a==null?void 0:a.secondaryIcon),a.navigationEndpoint&&r.listen("click",function(){e.W.qF("innertubeCommand",a.navigationEndpoint);e.hide()},e))}; U3L=function(e,a,r){var P,B=a==null?void 0:(P=a.text)==null?void 0:P.simpleText;B&&fiq(e,r,B,a==null?void 0:a.icon).listen("click",function(){var h;(a==null?void 0:(h=a.icon)==null?void 0:h.iconType)==="HIDE"?e.W.publish("featuredproductdismissed"):a.serviceEndpoint&&e.W.qF("innertubeCommand",a.serviceEndpoint);e.hide()},e)}; fiq=function(e,a,r,P,B){a=new g.nw(g.yi({},[],!1,!!B),a,r);B&&a.updateValue("secondaryIcon",Cc4(B));a.setIcon(Cc4(P));g.x(e,a);e.TG.D5(a,!0);return a}; Cc4=function(e){if(!e)return null;switch(e.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return GnO();case "HIDE":return{K:"svg",J:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"g",V:[{K:"path",J:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return t_()}}; pc=function(e){VK.call(this,e,!1,!0);this.isCounterfactual=this.T=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.v({K:"button",WW:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.x(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.v({K:"img",U:"ytp-suggested-action-badge-img",J:{src:"{{url}}"}}); this.thumbnailImage.hide();g.x(this,this.thumbnailImage);this.thumbnailIcon=new g.v({K:"div",U:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.x(this,this.thumbnailIcon);this.banner=new g.v({K:"a",U:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{K:"div",U:"ytp-suggested-action-details",V:[{K:"text",U:"ytp-suggested-action-title",S1:"{{title}}"},{K:"text",U:"ytp-suggested-action-subtitle",S1:"{{subtitle}}"},{K:"text",U:"ytp-suggested-action-metadata-text", S1:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.x(this,this.banner);this.banner.Kf(this.B.element);this.j(this.W,"videodatachange",this.onVideoDataChange);this.j(this.W,g.SS("suggested_action_view_model"),this.pAf);this.j(this.W,g.sh("suggested_action_view_model"),this.brd);this.j(this.overflowButton.element,"click",this.cq);this.j(e,"featuredproductdismissed",this.LQ);this.W.createServerVe(this.banner.element,this.banner,!0)}; G9O=function(e){e.isInitialized&&(e.enabled=e.isVisible,e.oH=e.isVisible,DJ(e),e.Mc(),e.thumbnailImage.Nr(e.isVisible),e.shouldHideDismissButton||e.dismissButton.Nr(e.isVisible),e.shouldShowOverflowButton&&e.overflowButton.Nr(e.isVisible))}; iZ=function(){pc.apply(this,arguments)}; EwJ=function(e){fw.call(this,e);this.S=new iZ(this.api);g.x(this,this.S);g.MY(this.api,this.S.element,4)}; zO=function(e){fw.call(this,e);var a=this;this.S=!0;var r=new g.Zc(e);g.x(this,r);r.j(e,"internalaudioformatchange",function(P,B){biL(a,P,B)}); r.j(e,"videoplayerreset",function(){tZy(a)}); r.j(e,"videodatachange",function(P,B){a.onVideoDataChange(P,B)})}; biL=function(e,a,r){if(r){var P="";gwL(e,a)&&(P=a,e.api.G().PW=a);if(P&&Ziq(e,P)){l3N(e.api,P);var B;x_(Qg(e.api.G(),(B=e.api.getVideoData())==null?void 0:g.ok(B)),function(h){Oiq(e,P,h)})}}}; tZy=function(e){var a;if((a=bf())==null?0:a.size){var r;x_(Qg(e.api.G(),(r=e.api.getVideoData())==null?void 0:g.ok(r)),function(P){(P=k9z(P))&&Ziq(e,P)&&(e.api.G().PW=P)})}}; Oiq=function(e,a,r){k9z(r)!==a&&(d33([{settingItemId:Np(r),settingOptionValue:{stringValue:a}}]),x_(e.jM(),function(P){Goy(P,Np(r),{stringValue:a})}))}; Jbq=function(e,a){Ij(x_(x_(e.jM(),function(r){return U8I(r,[Np(a)])}),function(r){if(r){r=g.Z(r); for(var P=r.next();!P.done;P=r.next()){var B=P.value;P=B.key;B=B.value;P&&B&&(d33([{settingItemId:P,settingOptionValue:B}]),tZy(e))}}}),function(){e.S=!0})}; gwL=function(e,a){e=e.api.getAvailableAudioTracks();e=g.Z(e);for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.getLanguageInfo().getId()===a)return r;return null}; k9z=function(e){e=Np(e);var a=bf();e=a?a.get(e):void 0;return e&&e.stringValue?e.stringValue:""}; Np=function(e){var a=(484).toString();e&&(a=(483).toString());return a}; Ziq=function(e,a){var r;return a.split(".")[0]!==""&&((r=e.api.getVideoData())==null?void 0:!yT(r))}; d33=function(e){var a=bf();a||(a=new Map);e=g.Z(e);for(var r=e.next();!r.done;r=e.next())r=r.value,a.set(r.settingItemId,r.settingOptionValue);a=JSON.stringify(Object.fromEntries(a));g.Vy("yt-player-user-settings",a,2592E3)}; g.x7=function(e,a,r,P,B,h,c){g.nw.call(this,g.yi({"aria-haspopup":"true"}),a,e);this.OM=P;this.N=!1;this.B=null;this.options={};this.T=new g.QK(r,void 0,e,B,h,c);g.x(this,this.T);this.listen("keydown",this.mR);this.listen("click",this.open)}; D3l=function(e){if(e.B){var a=e.options[e.B];a.element.getAttribute("aria-checked");a.element.setAttribute("aria-checked","false");e.B=null}}; VZz=function(e,a){g.x7.call(this,"Sleep timer",g.$e.SLEEP_TIMER,e,a);this.W=e;this.Y={};this.Z=this.cf("Off");this.D=this.S="";e.X("web_settings_menu_icons")&&(a=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(a)); this.L=new g.v({K:"div",WW:["ytp-menuitem-label-wrapper"],V:[{K:"div",S1:"End of video"},{K:"div",WW:["ytp-menuitem-sublabel"],S1:"{{content}}"}]});g.x(this,this.L);this.listen("click",this.onClick);this.j(e,"videodatachange",this.onVideoDataChange);this.j(e,"presentingplayerstatechange",this.zQ);this.j(e,"settingsMenuVisibilityChanged",this.sR);e.createClientVe(this.element,this,218889);this.zQ();this.W.qF("onSleepTimerFeatureAvailable")}; $3q=function(e){var a="Off 10 15 20 30 45 60".split(" "),r;((r=e.W.getVideoData())==null?0:r.isLivePlayback)||a.push("End of video");r=e.W.getPlaylist();var P;r&&((P=r.listId)==null?void 0:P.type)!=="RD"&&a.push("End of playlist");e.Is(g.ba(a,e.cf));e.Y=g.MM(a,e.cf,e);a=e.cf("End of video");e.options[a]&&g.oS(e.options[a],e.L)}; QAL=function(e,a){var r=e.Y[a],P=r==="End of video"||r==="End of playlist";r==="Off"&&(e.S="");e.W.getPlayerState()!==0&&e.W.getPlayerState()!==5||!P?(e.Z=a,g.x7.prototype.bQ.call(e,a),e.Nq(a),e.W.qF("onSleepTimerSettingsChanged",r)):e.W.qF("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; In=function(e){fw.call(this,e);var a=this;e.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new VZz(a.api,a.api.Ch()),g.x(a,a.menuItem))}); e.addEventListener("openSettingsMenuItem",function(r){if(r==="menu_item_sleep_timer"){if(!a.menuItem){var P;(P=a.api.Ch())==null||P.Yh()}a.menuItem.open()}}); kd(e,"resetSleepTimerMenuSettings",function(){a.resetSleepTimerMenuSettings()}); kd(e,"setSleepTimerTimeLeft",function(r){a.setSleepTimerTimeLeft(r)}); kd(e,"setVideoTimeLeft",function(r){a.setVideoTimeLeft(r)})}; W$3=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"onSnackbarMessage",function(r){switch(r){case 1:r=a.api.getPlayerStateObject(),r.isBuffering()&&(a.api.X("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.S(r,8)&&g.S(r,16))&&a.api.qF("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"}})}})}; g.qp=function(e,a,r,P,B){a=a===void 0?!1:a;P=P===void 0?!1:P;B=B===void 0?!1:B;g.aK.call(this);this.N=B;this.D=!1;this.L=new Ou(this);this.C=this.Z=null;this.B=this.T=!1;g.x(this,this.L);this.target=e;this.S=a;this.Y=r||e;this.D=P;a&&(g.T7&&this.target.setAttribute("draggable","true"),B||(this.target.style.touchAction="none"));Hv(this)}; vv=function(e){g.du(e.L,!e.S)}; Hv=function(e){e.C=null;e.Z=null;e.j(Rn("over"),e.Oh);e.j("touchstart",e.Dj);e.S&&e.j(Rn("down"),e.IQQ)}; liI=function(e,a){for(var r=0;rf.start&&r>=5;O+=W}B=O.substr(0,4)+" "+O.substr(4,4)+" "+O.substr(8,4)+" "+(O.substr(12,4)+" "+O.substr(16,4))}else B="";c={video_id_and_cpn:String(a.videoId)+" / "+B,codecs:"",dims_and_frames:"",bandwidth_kbps:c.toFixed(0)+" Kbps",buffer_health_seconds:T.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:X?"":"display:none",drm:X,debug_info:r,extra_debug_info:"",bandwidth_style:U,network_activity_style:U,network_activity_bytes:y.toFixed(0)+" KB",shader_info:A,shader_info_style:A?"":"display:none",playback_categories:""};y=P.clientWidth+"x"+P.clientHeight+(f>1?"*"+f.toFixed(2):"");T="-";h.totalVideoFrames&&(T=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);c.dims_and_frames=y+" / "+T;e=e.getVolume();y=F64(a);var L;if((L=a.L)==null?0:L.audio.T)L= "VB";else{var z;L=((z=a.L)==null?0:z.audio.S)?"DRC":Math.round(e*y)+"%"}z=Math.round(e)+"% / "+L;L=a.h1.toFixed(1);isFinite(Number(L))&&(z+=" (content loudness "+L+"dB)");c.volume=z;c.resolution=P.videoWidth+"x"+P.videoHeight;if(P=a.T){if(z=P.video)L=z.fps,L>1&&(c.resolution+="@"+L),(L=h.Pd)&&L.video&&(c.resolution+=" / "+L.video.width+"x"+L.video.height,L.video.fps>1&&(c.resolution+="@"+L.video.fps)),c.codecs=iiq(P),!a.L||P.audio&&P.video?P.Z$&&(c.codecs+=" / "+P.Z$+"A"):c.codecs+=" / "+iiq(a.L), z.S||z.primaries?(L=z.S||"unknown",L==="smpte2084"?L+=" (PQ)":L==="arib-std-b67"&&(L+=" (HLG)"),c.color=L+" / "+(z.primaries||"unknown"),c.color_style=""):c.color_style="display:none";if(P.debugInfo)for(c.fmt_debug_info="",P=g.Z(P.debugInfo),z=P.next();!z.done;z=P.next())z=z.value,c.fmt_debug_info+=z.label+":"+z.text+" ";c.fmt_debug_info_style=c.fmt_debug_info&&c.fmt_debug_info.length>0?"":"display:none"}P=a.isLivePlayback;z=a.zX;c.live_mode_style=P||z?"":"display:none";c.live_latency_style=P?"": "display:none";if(z)c.live_mode="Post-Live"+(w3(a)?" Manifestless":"");else if(P){z=h.Me;c.live_latency_secs=z.toFixed(2)+"s";P=w3(a)?"Manifestless, ":"";a.TQ&&(P+="Windowed, ");L="Uncertain";if(z>=0&&z<120)if(a.latencyClass&&a.latencyClass!=="UNKNOWN")switch(a.latencyClass){case "NORMAL":L="Optimized for Normal Latency";break;case "LOW":L="Optimized for Low Latency";break;case "ULTRALOW":L="Optimized for Ultra Low Latency";break;default:L="Unknown Latency Setting"}else L=a.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";P+=L;(z=h.VG)&&(P+=", seq "+z.sequence);c.live_mode=P}!h.isGapless||J3(a)&&h.O2||(c.playback_categories+="Gapless ");c.playback_categories_style=c.playback_categories?"":"display:none";c.bandwidth_samples=h.ML;c.network_activity_samples=h.sy;c.live_latency_samples=h.n7;c.buffer_health_samples=h.N0;h=g.UL(a);if(a.cotn||h)c.cotn_and_local_media=(a.cotn?a.cotn:"null")+" / "+h;c.cotn_and_local_media_style=c.cotn_and_local_media?"":"display:none"; Gg(a,"web_player_release_debug")?(c.release_name=n[34],c.release_style=""):c.release_style="display:none";c.debug_info&&C.length>0&&c.debug_info.length+C.length<=60?c.debug_info+=" "+C:c.extra_debug_info=C;c.extra_debug_info_style=c.extra_debug_info&&c.extra_debug_info.length>0?"":"display:none";return c}; iiq=function(e){var a=/codecs="([^"]*)"/.exec(e.mimeType);return a&&a[1]?a[1]+" ("+e.itag+")":e.itag}; uZ=function(e,a,r,P,B){g.v.call(this,{K:"div",U:"ytp-horizonchart"});this.D=a;this.sampleCount=r;this.L=P;this.Z=B;this.index=0;this.heightPx=-1;this.B=this.T=null;this.S=Math.round(e/r);this.element.style.width=this.S*this.sampleCount+"px";this.element.style.height=this.D+"em"}; Kc=function(e,a){if(e.heightPx===-1){var r=null;try{r=g.U9("CANVAS"),e.T=r.getContext("2d")}catch(y){}if(e.T){var P=e.S*e.sampleCount;e.B=r;e.B.width=P;e.B.style.width=P+"px";e.element.appendChild(e.B)}else for(e.sampleCount=Math.floor(e.sampleCount/4),e.S*=4,r=0;r1?2:1,e.B.height=e.heightPx*r,e.B.style.height= e.heightPx+"px",e.T.scale(1,r)));a=g.Z(a);for(P=a.next();!P.done;P=a.next()){r=e;var B=e.index,h=P.value;for(P=0;P+20&&g.E9(a.T.element);P.classList.add("ytp-timely-actions-overlay");a.T.element.appendChild(P)}); g.x(this,this.T);this.X("web_player_overlay_positioned_layout")?this.events.j(e,"basechromeinitialized",function(){a.api.Pe(a.T.element,4,!0);a.T.element.setAttribute("data-overlay-order","10")}):g.MY(this.api,this.T.element,4)}; K$3=function(e){e.timelyActions&&(e.L=e.timelyActions.reduce(function(a,r){if(r.cueRangeId===void 0)return a;a[r.cueRangeId]=0;return a},{}))}; Pp=function(e,a){if(e.timelyActions){e=g.Z(e.timelyActions);for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.cueRangeId===a)return r}}; eIL=function(e,a){if((e=Pp(e,a))&&e.onCueRangeExit)return ls(e.onCueRangeExit)}; F$q=function(e,a){return e.B===void 0?!1:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(a.seekLengthMilliseconds)===5E3?e.B===72:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(a.seekLengthMilliseconds)===1E4?e.B===74:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(a.seekLengthMilliseconds)===5E3?e.B===71:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(a.seekLengthMilliseconds)===1E4?e.B===73:!1}; agN=function(e,a){var r=Number(a==null?void 0:a.maxVisibleDurationMilliseconds);r&&(Bp(e),e.oH=setTimeout(function(){if(e.S!==void 0&&(a==null?void 0:a.cueRangeId)===e.S){e.N=!1;var P=eIL(e,e.S);P&&e.api.qF("innertubeCommand",P)}},r))}; Bp=function(e){e.oH&&clearTimeout(e.oH);e.oH=void 0;e.N=!1}; MZl=function(e){if(e=e.getWatchNextResponse()){var a,r;e=(a=e.playerOverlays)==null?void 0:(r=a.playerOverlayRenderer)==null?void 0:r.timelyActionsOverlayViewModel;a=g.H(e,rNq);if(a!=null&&a.timelyActions)return a==null?void 0:a.timelyActions.map(function(P){return g.H(P,PVO)}).filter(function(P){return!!P})}}; BZ4=function(e){fw.call(this,e);var a=this;dC(this.api,"getPlaybackRate",function(){return a.api.getPlaybackRate()}); dC(this.api,"setPlaybackRate",function(r){typeof r==="number"&&a.api.setPlaybackRate(r)})}; hh=function(e,a,r,P){Zk.call(this,"VOICE_BOOST",g.$e.VF);this.S=!1;this.W=e;this.OM=e.Ch();this.L=a;this.B=r;this.hasVoiceBoostAudioTrack=P;this.j(e,"videodatachange",this.T);this.setIcon(dlI());this.subscribe("select",this.Z,this);this.T()}; cp=function(e){fw.call(this,e);var a=this;this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"settingsMenuInitialized",function(){hIq(a)}); kd(this.api,"getVoiceBoostUserPreference",function(){return a.getVoiceBoostUserPreference()}); kd(this.api,"setVoiceBoostUserPreference",function(P){a.setVoiceBoostUserPreference(P)}); kd(this.api,"hasVoiceBoostAudioTrack",function(){return a.hasVoiceBoostAudioTrack()}); var r;this.S=(r=rDI())!=null?r:0;this.updateEnvironmentData()}; hIq=function(e){e.menuItem||(e.menuItem=new hh(e.api,function(a){e.setVoiceBoostUserPreference(a)},function(){return e.getVoiceBoostUserPreference()},function(){return e.hasVoiceBoostAudioTrack()}),g.x(e,e.menuItem))}; cNJ=function(e){e=e.ju();if(!e)return!1;e=g.KG(e).exp||"";return e.includes("xpv")||e.includes("xpe")}; oS4=function(e){e=g.Z(g.o7(e,!0));for(var a=e.next();!a.done;a=e.next())if(cNJ(a.value))return!0;return!1}; nS4=function(e,a){e=g.Z(g.o7(e,!0));for(var r=e.next();!r.done;r=e.next())if(r=r.value,cNJ(r)){var P={potc:"1",pot:a};r.url&&(r.url=ew(r.url,P))}}; yNL=function(e){return g.Y(function(a){if(a.T==1)return g.kN(a,2),g.l(a,e,4);if(a.T!=2)return g.Dl(a,0);g.Q3(a);g.OO(a)})}; yn=function(e){fw.call(this,e);var a=this;this.useLivingRoomPoToken=!1;this.C=new g.fp;this.S=!1;this.WA=null;this.Y=!1;this.L=null;this.Z=!1;var r=e.G().getWebPlayerContextConfig();this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"spsumpreject",function(P,B,h){a.Z=B;P&&a.Y&&!a.L&&(a.X("html5_generate_content_po_token")&&h?a.Z2(h):a.X("html5_generate_session_po_token")&&TZ3(a));a.L||a.api.nf("stp",{s:+a.Y,b:+a.Z})}); this.events.j(e,"poTokenVideoBindingChange",function(P){a.Z2(P)}); this.useLivingRoomPoToken=!(r==null||!r.useLivingRoomPoToken);e.addEventListener("csiinitialized",function(){a.WA=e.SM();var P=(a.X("html5_generate_session_po_token")||a.X("html5_generate_content_po_token"))&&!a.useLivingRoomPoToken;try{if(a.X("html5_use_shared_owl_instance"))X0L(a);else if(P){a.WA.p_("pot_isc");var B=g.eS(a.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");B?(a.B=Ni(),g.Tu(function(){nk(a)},B)):a.X("html5_webpo_idle_priority_job")?(a.B=Ni(),g.S$(g.Fn(),function(){nk(a)})): nk(a)}}catch(h){h instanceof Error&&g.VJ(h)}}); e.addEventListener("trackListLoaded",this.hH.bind(this));e.dA(this)}; fgI=function(e){var a=Et(e.experiments,"html5_web_po_request_key");return a?a:g.Uh(e)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; ANT=function(e){var a=new rS4,r={},P=(r["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",r);return new bT(a,e,function(){return P})}; UCL=function(e){return new t4(e)}; Th=function(e,a){e.X("html5_webpo_bge_ctmp")&&e.api.nf(a,{hwpo:!!e.T,hwpor:e.S})}; X0L=function(e){var a,r;g.Y(function(P){if(P.T==1)return Th(e,"swpo_i"),e.B=Ni(),Xa(e),g.l(P,ek(),2);if(P.T!=3)return a=P.S,Th(e,"swpo_co"),g.l(P,LMO(a),3);r=P.S;e.X("html5_web_po_token_disable_caching")||r.d5(150);e.T=r;Th(e,"swpo_cc");yNL(r.CX()).then(function(){e.S=!0;e.C.resolve();Th(e,"swpo_re")}); g.Tu(function(){nk(e);Th(e,"swpo_si")},0); g.OO(P)})}; ES3=function(e){var a=e.api.G(),r=ANT(fgI(a)),P=r.Z_.bind(r);r.Z_=function(y){var T;return g.Y(function(X){if(X.T==1)return g.l(X,P(y),2);T=X.S;e.api.nf("itr",{});return X.return(T)})}; try{var B=UCL({EX:r,eW:{maxAttempts:5},Al:{VL:"CLEn",disable:a.experiments.FM("html5_web_po_disable_remote_logging")||CVI.includes(g.TS(a.QL)||""),Uz:mOL(a.experiments),Gc:a.experiments.FM("wpo_gel_strz")?function(y){var T=GLL.get(y);T||(T=new fIL(y),T=new g.xP(T),GLL.set(y,T));return T}:void 0, g$r:e.X("wpo_dis_lfdms")?0:1E3},Rzo:g.VJ});var h=new iT({SK:B,EX:r,onError:g.VJ});yNL(h.CX()).then(function(){e.S=!0;e.C.resolve()}); e.X("html5_web_po_token_disable_caching")||h.d5(150);g.x(e,B);g.x(e,h);e.T=h}catch(y){g.VJ(y);var c;(c=B)==null||c.dispose()}}; nk=function(e){var a=e.api.G();e.WA.p_("pot_ist");e.T||ES3(e);e.X("html5_bandaid_attach_content_po_token")||(e.X("html5_generate_session_po_token")&&(Xa(e),TZ3(e)),a=g.eS(a.experiments,"html5_session_po_token_interval_time_ms")||0,a>0&&(e.D=g.Xw(function(){Xa(e)},a)),e.Y=!0)}; Xa=function(e){var a,r,P,B;g.Y(function(h){if(!e.X("html5_generate_session_po_token")||e.useLivingRoomPoToken)return h.return();a=e.api.G();r=g.IM("EOM_VISITOR_DATA")||g.IM("VISITOR_DATA");P=a.NO?a.datasyncId:r;B=Et(a.experiments,"html5_mock_content_binding_for_session_token")||a.livingRoomPoTokenId||P;a.A1=fk(e,B);g.OO(h)})}; fk=function(e,a){if(!e.T){if(e.B)try{return e.B(a)}catch(h){g.VJ(h)}return""}try{e.WA.p_(e.S?"pot_cms":"pot_csms");var r={c6:!0,mZ:!0,fE:a};e.X("html5_web_po_token_disable_caching")||(r.uo={Ba:a,xs:!0,Bs:!0});var P=e.T.UL(r);e.WA.p_(e.S?"pot_cmf":"pot_csmf");if(e.S){var B;(B=e.L)==null||B.resolve();e.L=null;e.Z&&(e.Z=!1,e.api.app.Y$().pU(!1))}return P}catch(h){return g.VJ(h),""}}; TZ3=function(e){e.T&&(e.L=new kF,e.C.promise.then(function(){e.WA.p_("pot_if");Xa(e)}))}; g.Ah=function(e,a,r){g.cD(e.element,"ytp-suggestion-set",!!a.videoId);var P=a.playlistId;r=a.EG(r?r:"mqdefault.jpg");var B=null,h=null;a instanceof FU&&(a.lengthText?(B=a.lengthText||null,h=a.NT||null):a.lengthSeconds&&(B=g.tx(a.lengthSeconds),h=g.tx(a.lengthSeconds,!0)));var c=!!P;P=c&&sA(P).type==="RD";var y=a instanceof FU?a.isLivePlayback:null,T=a instanceof FU?a.isUpcoming:null,X=a.author,f=a.shortViewCount,A=a.publishedTimeText,U=[],C=[];X&&U.push(X);f&&(U.push(f),C.push(f));A&&C.push(A);r= {title:a.title,author:X,author_and_views:U.join(" \u2022 "),aria_label:a.ariaLabel||g.PA("Watch $TITLE",{TITLE:a.title}),duration:B,timestamp:h,url:a.Um(),is_live:y,is_upcoming:T,is_list:c,is_mix:P,background:r?"background-image: url("+r+")":"",views_and_publish_time:C.join(" \u2022 "),autoplayAlternativeHeader:a.Mg};a instanceof mO&&(r.playlist_length=a.playlistLength);e.update(r)}; g.U4=function(e){var a=e.G(),r=g.Ed||g.MR?{style:"will-change: opacity"}:void 0,P=a.L,B=["ytp-modern-videowall-still"];a.T&&B.push("ytp-videowall-show-text");g.v.call(this,{K:"a",WW:B,J:{href:"{{url}}",target:P?a.N:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{K:"div",U:"ytp-modern-videowall-still-image",J:{style:"{{background}}"},V:[{K:"span",U:"ytp-modern-videowall-still-info-duration",S1:"{{duration}}"}]},{K:"span",U:"ytp-modern-videowall-still-info", J:{"aria-hidden":"true"},V:[{K:"span",U:"ytp-modern-videowall-still-info-bg",V:[{K:"span",U:"ytp-modern-videowall-still-info-content",J:r,V:[{K:"span",U:"ytp-modern-videowall-still-info-title",S1:"{{title}}"},{K:"span",U:"ytp-modern-videowall-still-info-author",S1:"{{author_and_views}}"},{K:"span",U:"ytp-modern-videowall-still-info-live",S1:"Live"}]}]}]},{K:"span",WW:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],J:{"aria-hidden":"true"},V:[{K:"span",U:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{K:"span",U:"ytp-modern-videowall-still-listlabel-length",V:[" (",{K:"span",S1:"{{playlist_length}}"},")"]}]},{K:"span",WW:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],J:{"aria-hidden":"true"},V:[{K:"span",U:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{K:"span",U:"ytp-modern-videowall-still-listlabel-length",S1:" (50+)"}]}]});this.suggestion=null;this.T=P;this.api=e;this.S=new g.Zc(this);g.x(this,this.S);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.S.j(e,"videodatachange",this.onVideoDataChange);e.createServerVe(this.element,this);this.onVideoDataChange()}; g.bF3=function(e,a){if(e.suggestion!==a){e.suggestion=a;var r=e.api.G();g.Ah(e,a,"hqdefault.jpg");if(g.uP(r)&&!e.api.X("web_player_log_click_before_generating_ve_conversion_params")){r=a.Um();var P={};g.Da(e.api,"addEmbedsConversionTrackingParams",[P]);r=g.EW(r,P);e.updateValue("url",r)}(a=(a=a.sessionData)&&a.itct)&&e.api.setTrackingParams(e.element,a)}}; gSO=function(e,a){g.v.call(this,{K:"div",WW:["ytp-fullscreen-grid"],V:[{K:"div",U:"ytp-fullscreen-grid-hover-overlay",J:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},V:[{K:"div",U:"ytp-fullscreen-grid-hover-overlay-chevron",V:[{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"g",J:{filter:"url(#filter0_d_3104_799356)"},V:[{K:"path",J:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{K:"defs",V:[{K:"filter",J:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},V:[{K:"feFlood",J:{"flood-opacity":"0",result:"BackgroundImageFix"}},{K:"feColorMatrix",J:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{K:"feOffset"},{K:"feGaussianBlur",J:{stdDeviation:"0.5"}},{K:"feComposite",J:{in2:"hardAlpha",operator:"out"}},{K:"feColorMatrix",J:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {K:"feBlend",J:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{K:"feBlend",J:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{K:"div",U:"ytp-fullscreen-grid-main-content",V:[{K:"div",U:"ytp-fullscreen-grid-header",V:[{K:"div",U:"ytp-fullscreen-grid-header-buttons",V:[{K:"button",WW:["ytp-grid-replay-button","ytp-button"],J:{title:"Replay","aria-keyshortcuts":"r","aria-label":"Replay","data-title-no-tooltip":"Replay"}, V:[WiI()]},{K:"button",U:"ytp-fullscreen-grid-header-button",J:{"aria-label":"{{ariaLabel}}"}}]},{K:"button",WW:["ytp-grid-menu-close","ytp-button"],J:{"aria-label":"Close"},V:[g.UY()]}]},{K:"div",U:"ytp-fullscreen-grid-stills-container"}]}]});var r=this;this.player=e;this.stills=[];this.videoData=null;this.currentState=0;this.D=this.BW("ytp-fullscreen-grid-main-content");this.Z=this.BW("ytp-fullscreen-grid-header");e=this.BW("ytp-fullscreen-grid-header-buttons");this.B=this.BW("ytp-grid-menu-close"); this.T=this.BW("ytp-grid-replay-button");this.S=this.BW("ytp-fullscreen-grid-header-button");this.N=this.BW("ytp-fullscreen-grid-stills-container");this.L=new g.Zc(this);g.x(this,this.L);this.Y=a;if(this.Z&&this.D&&e&&this.N&&this.S&&this.B){if(a=this.BW("ytp-fullscreen-grid-hover-overlay"))this.j(a,"click",this.yf),xd(this.player,a,this);this.T&&(this.j(this.T,"click",function(P){r.Oq(P)}),xd(this.player,this.T,this)); this.S&&this.j(this.S,"click",this.yf);this.B&&this.j(this.B,"click",this.yf);if(a=this.player.getVideoData(1))this.videoData=a,tFq(this);this.player.createClientVe(this.Z,this,223051);this.L.j(this.player,"videodatachange",this.onVideoDataChange);this.L.j(this.player,"presentingplayerstatechange",this.We)}}; tFq=function(e){var a=e.player.getPlayerStateObject();g.cD(e.player.getRootNode(),"ytp-grid-ended-state",g.S(a,2))}; E4=function(e){fw.call(this,e);var a=this;this.D=this.S=this.T=0;this.Z=null;this.L=0;this.isEnded=!1;this.Y=null;var r=new g.Zc(e);g.x(this,r);this.oH=this.api.X("web_player_imax_theater_mode");this.B=this.api.X("web_player_enable_fullscreen_grid_components");r.j(e,"fullscreentoggled",function(){Ck(a)}); r.j(e,"autohideupdate",function(P){P&&a.T===2&&Gh(a,1)}); r.j(e,"videodatachange",function(){if(a.B){var P=a.api.getVideoData(1);a.videoData!==P&&a.T===2&&Gh(a,1);a.videoData=P}},this); r.j(e,"sizestylechange",function(){a.B&&Ck(a)}); kd(this.api,"setFullscreenQuickActions",function(P){a.setFullscreenQuickActions(P)}); kd(this.api,"setPlayerOverlayVideoDetailsRenderer",function(P){a.setPlayerOverlayVideoDetailsRenderer(P)}); this.B&&ZFL(this,r,e)}; ZFL=function(e,a,r){a.j(r,"keyboardserviceglobalkeydown",function(P,B){e.B&&P.keyCode===86&&!P.repeat&&e.T!==0&&(B&&(B.Cx=!0),OFT(e,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); a.j(e.api.getRootNode(),"wheel",function(P){if(!e.Y){var B;if(e.B&&(B=e.C)!=null&&B.element&&e.T!==0&&b6(e))if(g.rr(e.api.getRootNode(),"ytp-grid-scrolling"),e.L===0&&(e.L=window.innerHeight),e.T===1)e.L!==0&&(e.S+=P.deltaY/e.L,e.S=Math.min(Math.max(e.S,0),.85),th(e),kLT(e,Math.abs(e.S)>=.85));else if(e.T===2){B=P.deltaY<0;var h,c=((h=e.C)==null?void 0:h.element.scrollTop)===0;B&&c?e.L!==0&&(e.S+=P.deltaY/e.L,th(e),kLT(e,Math.abs(e.S)>=.85)):e.S!==0&&(e.S=0,th(e))}}},{passive:!0}); a.j(r,"standardControlsInitialized",function(){if(!e.C){e.C=new gSO(e.api,e.HW.bind(e));g.x(e,e.C);var P=e.api.getRootNode().querySelector(".ytp-chrome-bottom");P&&P.parentNode&&P.parentNode.insertBefore(e.C.element,P.nextSibling)}}); a.j(r,"presentingplayerstatechange",function(){gP(e)}); a.j(r,"autonavvisibility",function(){gP(e)}); e.api.XU().subscribe("visibilitystatechange",function(){gP(e)}); dCT(e,e.T)}; kLT=function(e,a){e.Z&&clearTimeout(e.Z);a?JNq(e):e.Z=window.setTimeout(function(){JNq(e)},150)}; JNq=function(e){e.Z&&(clearTimeout(e.Z),e.Z=null);e.L=0;e.B&&e.T!==0&&(Math.abs(e.S)>=.15&&OFT(e,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),e.S=0,th(e),g.BD(e.api.getRootNode(),"ytp-grid-scrolling"))}; OFT=function(e,a){e.B&&(a==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(e.Y&&clearTimeout(e.Y),e.Y=window.setTimeout(function(){e.Y=null},1E3)),e.T===1?Gh(e,2):Gh(e,1))}; b6=function(e){return e.api.isFullscreen()||e.oH&&e.api.zA()}; Ck=function(e){var a=b6(e);g.cD(e.api.getRootNode(),"ytp-full-bleed-player",a);e.N&&g.PQ(e.N,a);e.playerOverlayVideoDetailsRenderer&&g.PQ(e.playerOverlayVideoDetailsRenderer,a);e.B&&gP(e)}; gP=function(e){if(e.B){var a;if(e.api.getPresentingPlayerType()===2||e.api.eK()||((a=g.lL(e.api))==null?0:a.tA())||e.api.isMinimized())Gh(e,0);else{if(a=g.S(e.api.getPlayerStateObject(),2))Gh(e,2);else if(e.isEnded&&!a){var r=b6(e)?1:0;e.isEnded=a;Gh(e,r)}else b6(e)?e.T!==2&&Gh(e,1):Gh(e,0);e.isEnded=a}}}; Gh=function(e,a){e.T=a;var r;(r=e.C)==null||r.dg(a);e.S=0;th(e);dCT(e,a)}; dCT=function(e,a){e=e.api.getRootNode();g.cD(e,"ytp-fullscreen-grid-peaking",a===1);g.cD(e,"ytp-fullscreen-grid-active",a===2)}; th=function(e){requestAnimationFrame(function(){var a=e.S-e.D,r=a;e.S!==0&&(r=Math.max(-.01,Math.min(a,.01)));e.D+=r;e.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+e.D.toString());e.D!==e.S&&th(e)})}; DC4=function(e){fw.call(this,e);var a=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Zc(e);g.x(this,this.events);this.events.j(e,"heartbeatRequest",function(r){if(a.freePreviewUsageDetails.length||a.freePreviewWatchedDuration!==null)r.heartbeatRequestParams||(r.heartbeatRequestParams={}),r.heartbeatRequestParams.unpluggedParams||(r.heartbeatRequestParams.unpluggedParams={}),a.freePreviewUsageDetails.length>0?r.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= a.freePreviewUsageDetails:r.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+a.freePreviewWatchedDuration}}); kd(e,"setFreePreviewWatchedDuration",function(r){a.freePreviewWatchedDuration=r}); kd(e,"setFreePreviewUsageDetails",function(r){a.freePreviewUsageDetails=r})}; ZD=function(e){g.N.call(this);this.features=[];var a=this.S,r=new q0(e),P=new AQ(e),B=new g2(e),h=new yn(e);var c=g.fm(e.G())?void 0:new pw(e);var y=new tm(e),T=new IiJ(e),X=new BZ4(e),f=new H8(e);var A=g.fm(e.G())?new DC4(e):void 0;var U;var C=(U=e.G().getWebPlayerContextConfig())!=null&&U.cinematicSettingsAvailable?new lS(e):void 0;U=new IS(e);var G=e.X("enable_courses_player_overlay_purchase")?new yoL(e):void 0;var O=g.tZ(e.G())?new hfT(e):void 0;var d=new iS(e);var W=e.G().L?new KPO(e):void 0; var V=g.uP(e.G())?new ulT(e):void 0;var L=e.X("web_player_move_autonav_toggle")&&e.G().QH?new v_l(e):void 0;var z=g.tZ(e.G())?new $w3(e):void 0;var q=e.X("web_enable_speedmaster")&&g.tZ(e.G())?new mX(e):void 0;var M=e.G().VY?void 0:new m3O(e);var m=e.X("report_pml_debug_signal")?new x54(e):void 0;var cI=new qUq(e),CL=new d2(e);var nL=g.L$(e.G())?new h53(e):void 0;var y3=navigator.mediaSession&&window.MediaMetadata&&e.G().CE?new E0(e):void 0;var aT=e.X("html5_enable_drc")&&!e.G().Z?new wa(e):void 0; var $N=new Cw(e);var F4=g.tZ(e.G())?new EwJ(e):void 0;var ea=e.X("html5_enable_d6de4")?new ZJ(e):void 0;var EG=g.tZ(e.G())&&e.X("web_sleep_timer")?new In(e):void 0;var n5=g.uP(e.G())?new a94(e):void 0;var lq=new zO(e),cd=new FPI(e),iN=new DwL(e);var vB=e.X("enable_sabr_snackbar_message")?new W$3(e):void 0;var oQ=e.X("web_enable_timely_actions")?new uqL(e):void 0;var Q=new Lw(e);var IQ=g.tZ(e.G())?new E4(e):void 0;var L5=e.X("html5_enable_voice_boost")?new cp(e):void 0;var PI=e.X("web_player_loop_settings_menu")&& e.G().HI?new Voj(e):void 0;var Jw=e.X("html5_masthead_default_playback_rate")&&!g.fm(e.G())?new LIT(e):void 0;var k=e.X("web_player_playable_sequences_refactor")?new e5T(e):void 0;var r4=e.X("html5_enable_audio_quality_setting")&&e.X("html5_enable_audio_quality_setting_feature")?new bS(e):void 0;e=e.X("html5_ypc_clickwrap_module_refactor")?new vzq(e):void 0;a.call(this,r,P,B,h,c,y,T,X,f,A,C,U,G,O,d,W,V,L,z,q,M,m,cI,CL,nL,void 0,y3,aT,$N,void 0,F4,ea,EG,n5,void 0,lq,cd,iN,void 0,vB,oQ,Q,IQ,L5,void 0, PI,void 0,Jw,k,r4,e)}; VFj=function(){this.T=this.S=NaN}; $Cz=function(e,a){this.iW=e;this.timerName="";this.B=!1;this.T=NaN;this.L=new VFj;this.S=a||null;this.B=!1}; QYy=function(e,a,r){var P=g.Bb(a.gP)&&!a.gP.Z;if(a.gP.Nc&&(eP(a.gP)||a.gP.Lf==="shortspage"||JZ(a.gP)||P)&&!e.B){e.B=!0;e.Z=a.clientPlaybackNonce;g.IM("TIMING_ACTION")||xm("TIMING_ACTION",e.iW.csiPageType);e.iW.csiServiceName&&xm("CSI_SERVICE_NAME",e.iW.csiServiceName);if(e.S){P=e.S.SM();for(var B=g.Z(Object.keys(P)),h=B.next();!h.done;h=B.next())h=h.value,dL(h,P[h],e.timerName);P=g.s7(RX4)(e.S.b4);g.JA(P,e.timerName);P=e.S;P.S={};P.b4={}}g.JA({playerInfo:{visibilityState:g.s7(vhJ)()},playerType:"LATENCY_PLAYER_HTML5"}, e.timerName);e.C!==a.clientPlaybackNonce||Number.isNaN(e.T)||(VA("_start",e.timerName)?r=g.s7(tA)("_start",e.timerName)+e.T:g.VJ(new g.I6("attempted to log gapless pbs before CSI timeline started",{cpn:a.clientPlaybackNonce})));r&&!VA("pbs",e.timerName)&&O4(e,r)}}; O4=function(e,a,r){dL("pbs",a!=null?a:(0,g.Ov)(),r!=null?r:e.timerName)}; kp=function(e){aHL();ePj();e.timerName=""}; W_T=function(e){if(e.S){var a=e.S;a.S={};a.b4={}}e.B=!1;e.C=void 0;e.T=NaN}; lgJ=function(e,a){g.aK.call(this);this.gP=e;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.S=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.T=0;if(e=a.session_data)this.sessionData=Fv(e,"&");this.index=Math.max(0,Number(a.index)||0);this.loop=!!a.loop;this.startSeconds=Number(a.startSeconds)||0;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author= a.author||a.playlist_author||"";a.video_id&&(this.items[this.index]=a);if(e=a.api)typeof e==="string"&&e.length===16?a.list="PL"+e:a.playlist=e;if(e=a.list)switch(a.listType){case "user_uploads":this.listId=new SP("UU","PLAYER_"+e);break;default:var r=a.playlist_length;r&&(this.length=Number(r)||0);this.listId=sA(e);if(e=a.video)this.items=e.slice(0),this.loaded=!0}else if(a.playlist){e=a.playlist.toString().split(",");this.index>0&&(this.items=[]);e=g.Z(e);for(r=e.next();!r.done;r=e.next())(r=r.value)&& this.items.push({video_id:r});this.length=this.items.length;if(e=a.video)this.items=e.slice(0),this.loaded=!0}this.setShuffle(!!a.shuffle);if(e=a.suggestedQuality)this.quality=e;this.Y=Hb(a,"playlist_");this.B=(a=a.thumbnail_ids)?a.split(","):[]}; L_j=function(e){return!!(e.playlist||e.list||e.api)}; YJJ=function(e){var a=e.index+1;return a>=e.length?0:a}; w0J=function(e){var a=e.index-1;return a<0?e.length-1:a}; g.dP=function(e,a,r,P){a=a!==void 0?a:e.index;a=e.items&&a in e.items?e.items[e.order[a]]:null;var B=null;a&&(r&&(a.autoplay="1"),P&&(a.autonav="1"),B=new g.UT(e.gP,a),g.x(e,B),B.bx=!0,B.startSeconds=e.startSeconds||B.clipStart||0,e.listId&&(B.playlistId=e.listId.toString()));return B}; p0J=function(e,a){e.index=g.ID(a,0,e.length-1);e.startSeconds=0}; iFL=function(e,a){if(a.video&&a.video.length){e.title=a.title||"";e.description=a.description;e.views=a.views;e.likes=a.likes;e.dislikes=a.dislikes;e.author=a.author||"";var r=a.loop;r&&(e.loop=r);r=g.dP(e);e.items=[];for(var P=g.Z(a.video),B=P.next();!B.done;B=P.next())if(B=B.value)B.video_id=B.encrypted_id,e.items.push(B);e.length=e.items.length;(a=a.index)?e.index=a:e.findIndex(r);e.setShuffle(!1);e.loaded=!0;e.T++;e.S&&e.S()}}; xCq=function(e,a){var r,P,B,h,c,y,T;return g.Y(function(X){if(X.T==1){r=g.v3();var f=e.G(),A={context:g.Za(e),playbackContext:{contentPlaybackContext:{ancestorOrigins:f.ancestorOrigins}}},U=f.getWebPlayerContextConfig();if(U==null?0:U.encryptedHostFlags)A.playbackContext.contentPlaybackContext.encryptedHostFlags=U.encryptedHostFlags;if(U==null?0:U.hideInfo)A.playerParams={showinfo:!1};U=f.embedConfig;var C=e.Cg;var G=a.docid||a.video_id||a.videoId||a.id;if(!G){G=a.raw_embedded_player_response;if(!G){var O= a.embedded_player_response;O&&(G=JSON.parse(O))}if(G){var d,W,V,L,z,q;G=((q=g.H((d=G)==null?void 0:(W=d.embedPreview)==null?void 0:(V=W.thumbnailPreviewRenderer)==null?void 0:(L=V.playButton)==null?void 0:(z=L.buttonRenderer)==null?void 0:z.navigationEndpoint,g.g3))==null?void 0:q.videoId)||null}else G=null}d=(d=G)?d:void 0;W=e.playlistId?e.playlistId:a.list;V=a.listType;if(W){var M;V==="user_uploads"?M={username:W}:M={playlistId:W};zIj(U,C,d,a,M,f.experiments);A.playlistRequest=M}else a.playlist? (M={templistVideoIds:a.playlist.toString().split(",")},zIj(U,C,d,a,M,f.experiments),A.playlistRequest=M):d&&(M={videoId:d},C&&f.X("embeds_enable_per_video_embed_config")?M.serializedThirdPartyEmbedConfig=C:U&&(M.serializedThirdPartyEmbedConfig=U),A.singleVideoRequest=M);P=A;B=g.Md(NZz);g.kN(X,2);return g.l(X,g.L8(r,P,B),4)}if(X.T!=2)return h=X.S,c=e.G(),a.raw_embedded_player_response=h,c.Eo=Bh(a,g.uP(c)),c.B=c.Eo==="EMBEDDED_PLAYER_MODE_PFL",h&&(y=h,y.trackingParams&&B2(y.trackingParams)),X.return(new g.UT(c, a));T=g.Q3(X);T instanceof Error||(T=Error("b259802748"));g.D6(T);return X.return(e)})}; zIj=function(e,a,r,P,B,h){P.index&&(B.playlistIndex=String(Number(P.index)+1));B.videoId=r?r:"";a&&h.FM("embeds_enable_per_video_embed_config")?B.serializedThirdPartyEmbedConfig=a:e&&(B.serializedThirdPartyEmbedConfig=e)}; g.DD=function(e,a){Jh.get(e);Jh.set(e,a)}; g.Vn=function(e){g.aK.call(this);this.loaded=!1;this.player=e}; Igl=function(){this.T=[];this.S=[]}; g.o7=function(e,a){return a?e.S.concat(e.T):e.S}; g.$p=function(e,a){switch(a.kind){case "asr":HFI(a,e.T);break;default:HFI(a,e.S)}}; HFI=function(e,a){g.tw(a,function(r){return e.equals(r)})||a.push(e)}; g.Qn=function(e){g.N.call(this);this.j1=e;this.T=new Igl;this.B=null;this.C=[];this.Y=[]}; g.Wp=function(e,a,r){g.Qn.call(this,e);this.videoData=a;this.audioTrack=r;this.S=null;this.L=!1;this.C=a.TL;this.Y=a.eS;this.L=g.Bx(a)}; g.qJN=function(e,a){var r;return e.G().X("safari_live_drm_captions_fix")&&((r=e.getVideoData())==null?0:r.lQ())?!1:g.fm(e.G())&&!a.isManifestless}; g.l6=function(e,a){return K_(e.info.mimeType)?a?e.info.itag===a:!0:!1}; g.vSL=function(e,a){if(e.S!=null&&g.qJN(a,e.S)&&e.S.S.rawcc!=null)return!0;if(!e.QX())return!1;a=!!e.S&&e.S.isManifestless&&Object.values(e.S.S).some(function(r){return g.l6(r,"386")}); e=!!e.S&&!e.S.isManifestless&&g.fTL(e.S);return a||e}; g.Lk=function(e,a,r,P,B,h){g.Qn.call(this,e);this.videoId=r;this.WR=B;this.eventId=h;this.Z={};this.S=null;e=P||g.KG(a).hl||"";e=e.split("_").join("-");this.L=ew(a,{hl:e})}; RIy=function(e,a){g.N.call(this);var r=this;this.W=e;this.L=a;this.b4={};this.S={};this.T=null;this.B=new Set;this.C=new g.Zc(this);this.Ob={DzQ:function(){return r.L}}; this.Z=this.W.X("web_player_defer_modules");this.oL=new Map;g.x(this,this.C);this.C.j(e,"videodatachange",this.onVideoDataChange)}; SJI=function(e,a){e.T=a}; g.Yp=function(e){return e.oL.get("captions")}; K_N=function(e,a){switch(a){case "ad":return sYL(e);case "annotations_module":return e.W.isEmbedsShortsMode()?e=!1:(a=e.W,e=a.G(),a=a.getVideoData(),e=e.B||a.WX||e.controlsType==="3"?!1:e.e1.isEmpty()&&e.playerStyle!=="annotation-editor"&&e.playerStyle!=="live-dashboard"?!!a.XM||!!g.ak(a)||!!g.rC(a):!0),e;case "asmjs":return mCj(e);case "creatorendscreen":return F_L(e);case "embed":return g.uP(e.W.G());case "endscreen":return g.MFq(e);case "heartbeat":return e.kR();case "kids":return XU(e.W.G()); case "remote":return e.W.G().Yv;case "miniplayer":return e.W.G().showMiniplayerUiWhenMinimized;case "offline":return e.W.G().gT;case "captions":return jYl(e);case "unplugged":return g.hZ(e.W.G());case "ux":return e.W.G().ym;case "webgl":return ujq(e);case "ypc":return e.u0();case "ypc_clickwrap":return K64(e.W.getVideoData());case "yto":return e.W.X("web_player_playable_sequences_refactor")?!1:!!e.W.getVideoData().N.includes("yto");default:return g.D6(Error("Module descriptor "+a+" does not match")), !1}}; wP=function(e,a,r,P,B){var h;r=r===void 0?!1:r;P=P===void 0?!1:P;var c=e.oL.get(a);if(!c||P)if(B||(B=function(){wP(e,a,r,P)}),h||(h=function(){e.W.wy(a)}),c=c||evL(e,a,K_N(e,a),B,h))e.oL.set(a,c),c.create(),e.W.publish("modulecreated",a),r&&e.W.cG("onApiChange")}; rRz=function(e){var a=a===void 0?!1:a;var r,P,B,h,c;return g.Y(function(y){if(y.T==1)return(r=e.oL.get("asmjs"))&&!a?y.return(r):(P=Jh.get("asmjs"))!=null?(B=P,y.Oo(2)):g.l(y,new Promise(function(T,X){ax3(e,"asmjs",function(){var f=Jh.get("asmjs");f?T(f):X("cannot load module asmjs")},X)}),3); y.T!=2&&(B=y.S);h=B;if(!h)return y.return(Promise.reject("cannot load module asmjs"));c=new h(e.W);e.oL.set("asmjs",c);c.create();return y.return(c)})}; hv4=function(e){PCN(e)&&e.Pa();BU4(e)&&(wP(e,"captions",!0),wP(e,"endscreen"),e.RQ(),wP(e,"creatorendscreen",!0))}; BU4=function(e){var a=e.W.getVideoData(),r=e.Z&&!a.isInlinePlaybackNoAd;e.W.X("html5_defer_modules_on_ads_only")&&!a.isAd()&&(r=!1);return r}; PCN=function(e){e=e.W.getVideoData();var a;if(a=e.X("web_player_defer_ad")){if(g.ZB(e.N,"ad")||wz4(e)||e.enableServerStitchedDai)e=!1;else{a=e.playerResponse;e=e.startSeconds;var r=a==null?void 0:a.adPlacements;if(a=r){a=Number.MAX_VALUE;r=g.Z(r);for(var P=r.next();!P.done;P=r.next())if(P=P.value.adPlacementRenderer){var B=void 0,h=(B=P.config)==null?void 0:B.adPlacementConfig;B=void 0;if(((B=h)==null?void 0:B.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var c=B=void 0;h=Number((B=h)==null?void 0:(c= B.adTimeOffset)==null?void 0:c.offsetStartMilliseconds)||0;c=B=void 0;P=Number(((B=P.renderer)==null?void 0:(c=B.adBreakServiceRenderer)==null?void 0:c.prefetchMilliseconds)||0);P=h-P;P=11;e=e.api.G().D&&qG;return!(!a&&!e)}; aW=function(e,a){return!e.api.isInline()&&!D6q(e,gu(a))&&g.gG(a)}; JRl=function(e){e.wL.tN();if(e.Qy&&e.Ag)e.Ag=!1;else if(!e.api.G().XM&&!e.LS()){var a=e.api.getPlayerStateObject();g.S(a,2)&&g.qY(e.api)||e.Ht(a);!e.api.G().HA||a.isCued()||g.S(a,1024)?e.zg():e.wd.isActive()?(e.cL(),e.wd.stop()):e.wd.start()}}; $64=function(e,a){var r;if((r=e.api.getVideoData())==null?0:r.mutedAutoplay){var P,B;if((P=a.target)==null?0:(B=P.className)==null?0:B.includes("ytp-info-panel"))return!1}return g.gG(a)&&e.api.isMutedByMutedAutoplay()?(e.api.unMute(),e.api.getPresentingPlayerType()===2&&e.api.playVideo(),a=e.api.getPlayerStateObject(),!g.S(a,4)||g.S(a,8)||g.S(a,2)||e.zg(),!0):!1}; Qwj=function(e,a,r){e.api.isFullscreen()?r<1-a&&e.api.toggleFullscreen():r>1+a&&e.api.toggleFullscreen()}; d64=function(e){var a=Nr()&&pK()>=67&&!e.api.G().D;e=e.api.G().disableOrganicUi;return!g.zu("tizen")&&!FZ&&!a&&!e}; g.rX=function(e){g.v.call(this,{K:"div",V:[{K:"div",U:"ytp-bezel-text-wrapper",V:[{K:"div",U:"ytp-bezel-text",S1:"{{title}}"}]},{K:"div",U:"ytp-bezel",J:{role:"status","aria-label":"{{label}}"},V:[{K:"div",U:"ytp-bezel-icon",S1:"{{icon}}"}]}]});this.W=e;this.T=new g.vP(this.show,10,this);e=this.W.X("delhi_modern_web_player")?1E3:500;this.S=new g.vP(this.hide,e,this);g.x(this,this.T);g.x(this,this.S);this.hide()}; B6=function(e,a,r){if(a<=0){r=J_();a="muted";var P=0}else r=r?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,J:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!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(a),a=P+"volume";P6(e,r,a,P+"%")}; WhI=function(e,a){a=a?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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"}}]}:CQT();var r=e.W.getPlaybackRate(),P=g.PA("Speed is $RATE",{RATE:String(r)});P6(e,a,P,r+"x")}; lx3=function(e,a){a=a?"Subtitles/closed captions on":"Subtitles/closed captions off";P6(e,Si4(e.W),a)}; P6=function(e,a,r,P){P=P===void 0?"":P;e.updateValue("label",r===void 0?"":r);e.updateValue("icon",a);g.Fu(e.S);e.T.start();e.updateValue("title",P);g.cD(e.element,"ytp-bezel-text-hide",!P)}; LhL=function(e,a){g.v.call(this,{K:"button",WW:["ytp-button","ytp-cards-button"],J:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.uP(e.G()))},V:[{K:"span",U:"ytp-cards-button-icon-default",V:[{K:"div",U:"ytp-cards-button-icon",V:[e.G().X("player_new_info_card_format")?bEl():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"ytp-svg-fill",J:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {K:"div",U:"ytp-cards-button-title",S1:"Info"}]},{K:"span",U:"ytp-cards-button-icon-shopping",V:[{K:"div",U:"ytp-cards-button-icon",V:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",U:"ytp-svg-shadow",J:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{K:"path",U:"ytp-svg-fill",J:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{K:"path",U:"ytp-svg-shadow-fill",J:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{K:"div", U:"ytp-cards-button-title",S1:"Shopping"}]}]});this.W=e;this.T=a;this.S=null;this.fade=new g.jq(this,250,!0,100);g.x(this,this.fade);g.cD(this.T,"ytp-show-cards-title",g.uP(e.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.M9(!0)}; YFL=function(e,a){g.v.call(this,{K:"div",U:"ytp-cards-teaser",V:[{K:"div",U:"ytp-cards-teaser-box"},{K:"div",U:"ytp-cards-teaser-text",V:e.G().X("player_new_info_card_format")?[{K:"button",U:"ytp-cards-teaser-info-icon",J:{"aria-label":"Show cards","aria-haspopup":"true"},V:[bEl()]},{K:"img",U:"ytp-cards-teaser-channel-avatar",J:{alt:"","aria-hidden":"true"}},{K:"span",U:"ytp-cards-teaser-label",S1:"{{text}}"},{K:"button",U:"ytp-cards-teaser-close-button",J:{"aria-label":"Close"},V:[g.UY()]}]:[{K:"span", U:"ytp-cards-teaser-label",S1:"{{text}}"}]}]});var r=this;this.W=e;this.VP=a;this.fade=new g.jq(this,250,!1,250);this.S=null;this.D=new g.vP(this.DrW,300,this);this.Z=new g.vP(this.QDr,2E3,this);this.L=[];this.T=null;this.Y=new g.vP(function(){r.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.x(this,this.fade);g.x(this,this.D);g.x(this,this.Z);g.x(this,this.Y);e.G().X("player_new_info_card_format")?(g.rr(e.getRootNode(),"ytp-cards-teaser-dismissible"),this.j(this.BW("ytp-cards-teaser-close-button"),"click",this.Jr),this.j(this.BW("ytp-cards-teaser-info-icon"),"click",this.E0),this.j(this.BW("ytp-cards-teaser-label"),"click",this.E0)):this.listen("click",this.E0);this.j(a.element,"mouseover",this.tW);this.j(a.element,"mouseout",this.hW);this.j(e,"cardsteasershow", this.bBW);this.j(e,"cardsteaserhide",this.XN);this.j(e,"cardstatechange",this.u9);this.j(e,"presentingplayerstatechange",this.u9);this.j(e,"appresize",this.UK);this.j(e,"onShowControls",this.UK);this.j(e,"onHideControls",this.jL);this.listen("mouseenter",this.Gt)}; wGl=function(e){g.v.call(this,{K:"button",WW:[hd.BUTTON,hd.TITLE_NOTIFICATIONS],J:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{K:"div",U:hd.TITLE_NOTIFICATIONS_ON,J:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},V:[g.bv()]},{K:"div",U:hd.TITLE_NOTIFICATIONS_OFF,J:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},V:[{K:"svg",J:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{K:"path", J:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=e;this.S=!1;e.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receive notifications about every new video")}; pGl=function(e,a){e.S=a;e.element.classList.toggle(hd.NOTIFICATIONS_ENABLED,e.S);var r=e.api.getVideoData();r?(a=a?r.l1:r.W1)?(e=e.api.jM())?lI(e,a):g.D6(Error("No innertube service available when updating notification preferences.")):g.D6(Error("No update preferences command available.")):g.D6(Error("No video data when updating notification preferences."))}; zvN=function(e,a,r){var P=P===void 0?800:P;var B=B===void 0?600:B;var h=document.location.protocol;e=q9l(h+"//"+e+"/signin?context=popup","feature",a,"next",h+"//"+location.hostname+"/post_login");iSz(e,r,P,B)}; iSz=function(e,a,r,P){r=r===void 0?800:r;P=P===void 0?600:P;if(e=g.CD(window,e,"loginPopup","width="+r+",height="+P+",resizable=yes,scrollbars=yes"))AaN(function(){a()}),e.moveTo((screen.width-r)/2,(screen.height-P)/2)}; g.c6=function(e,a,r,P,B,h,c,y,T,X,f,A){e=e.charAt(0)+e.substring(1).toLowerCase();r=r.charAt(0)+r.substring(1).toLowerCase();if(a==="0"||a==="-1")a=null;if(P==="0"||P==="-1")P=null;var U=f.G(),C=U.userDisplayName&&g.Bb(U);g.v.call(this,{K:"div",WW:["ytp-button","ytp-sb"],V:[{K:"div",U:"ytp-sb-subscribe",J:C?{title:f.G().X("player_tooltip_data_title_killswitch")?g.PA("Subscribe as $USER_NAME",{USER_NAME:U.userDisplayName}):"","data-tooltip-title":g.PA("Subscribe as $USER_NAME",{USER_NAME:U.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":Dm(U),"data-tooltip-opaque":String(g.uP(U)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},V:[{K:"div",U:"ytp-sb-text",V:[{K:"div",U:"ytp-sb-icon"},e]},a?{K:"div",U:"ytp-sb-count",S1:a}:""]},{K:"div",U:"ytp-sb-unsubscribe",J:C?{title:f.X("player_tooltip_data_title_killswitch")?g.PA("Subscribed as $USER_NAME",{USER_NAME:U.userDisplayName}):"","data-tooltip-title":g.PA("Subscribed as $USER_NAME",{USER_NAME:U.userDisplayName}), "aria-label":"Unsubscribe from channel","data-tooltip-image":Dm(U),"data-tooltip-opaque":String(g.uP(U)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},V:[{K:"div",U:"ytp-sb-text",V:[{K:"div",U:"ytp-sb-icon"},r]},P?{K:"div",U:"ytp-sb-count",S1:P}:""]}],J:{"aria-live":"polite"}});var G=this;this.channelId=c;this.W=f;this.B=A;var O=this.BW("ytp-sb-subscribe"),d=this.BW("ytp-sb-unsubscribe");h&&g.rr(this.element,"ytp-sb-classic");if(B){y?this.S():this.T();var W=function(){if(U.TQ){var L= G.channelId;if(T||X){var z={c:L};var q;g.nt.isInitialized()&&(q=qhj(z));z=q||"";if(q=f.getVideoData())if(q=q.subscribeCommand){var M=f.jM();M?(lI(M,q,{botguardResponse:z,feature:T}),f.qF("SUBSCRIBE",L)):g.D6(Error("No innertube service available when updating subscriptions."))}else g.D6(Error("No subscribe command in videoData."));else g.D6(Error("No video data available when updating subscription."))}d.focus();d.removeAttribute("aria-hidden");O.setAttribute("aria-hidden","true")}else zvN(g.UA(G.W.G()), "sb_button",G.L)},V=function(){var L=G.channelId; if(T||X){var z=f.getVideoData();lI(f.jM(),z.unsubscribeCommand,{feature:T});f.qF("UNSUBSCRIBE",L)}O.focus();O.removeAttribute("aria-hidden");d.setAttribute("aria-hidden","true")}; this.j(O,"click",W);this.j(d,"click",V);this.j(O,"keypress",function(L){L.keyCode===13&&W(L)}); this.j(d,"keypress",function(L){L.keyCode===13&&V(L)}); this.j(f,"SUBSCRIBE",this.S);this.j(f,"UNSUBSCRIBE",this.T);this.B&&C&&($54(f),xd(f,O,this),xd(f,d,this))}else g.rr(O,"ytp-sb-disabled"),g.rr(d,"ytp-sb-disabled")}; IxN=function(e){g.v.call(this,{K:"div",U:"ytp-title-channel",V:[{K:"div",U:"ytp-title-beacon"},{K:"a",U:"ytp-title-channel-logo",J:{href:"{{channelLink}}",target:e.G().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",U:"ytp-title-expanded-overlay",J:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{K:"div",U:"ytp-title-expanded-heading",V:[{K:"div",U:"ytp-title-expanded-title",V:[{K:"a",S1:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:e.G().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",U:"ytp-title-expanded-subtitle",S1:"{{expandedSubtitle}}",J:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var a=this;this.api=e;this.channel=this.BW("ytp-title-channel");this.T=this.BW("ytp-title-channel-logo");this.channelName=this.BW("ytp-title-expanded-title");this.Z=this.BW("ytp-title-expanded-overlay");this.B=this.S=this.subscribeButton=null;this.L=!1;e.createClientVe(this.T,this,36925);e.createClientVe(this.channelName,this, 37220);g.uP(this.api.G())&&NUL(this);this.j(e,"videodatachange",this.zQ);this.j(e,"videoplayerreset",this.zQ);this.j(this.channelName,"click",function(r){a.api.logClick(a.channelName);g.CD(window,x6O(a));r.preventDefault()}); this.j(this.T,"click",this.JzH);this.zQ()}; HST=function(e){if(!e.api.G().sM){var a=e.api.getVideoData(),r=new g.c6("Subscribe",null,"Subscribed",null,!0,!1,a.ix,a.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(r.element,e);var P;e.api.setTrackingParams(r.element,((P=a.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);e.j(r.element,"click",function(){e.api.logClick(r.element)}); e.subscribeButton=r;g.x(e,e.subscribeButton);e.subscribeButton.Kf(e.Z);e.subscribeButton.hide();var B=new wGl(e.api);e.S=B;g.x(e,B);B.Kf(e.Z);B.hide();e.j(e.api,"SUBSCRIBE",function(){a.Tm&&(B.show(),e.api.logVisibility(B.element,!0))}); e.j(e.api,"UNSUBSCRIBE",function(){a.Tm&&(B.hide(),e.api.logVisibility(B.element,!1),pGl(B,!1))})}}; NUL=function(e){var a=e.api.G();HST(e);e.updateValue("flyoutUnfocusable","true");e.updateValue("channelTitleFocusable","-1");e.updateValue("shouldHideExpandedTitleForA11y","true");e.updateValue("shouldHideExpandedSubtitleForA11y","true");a.T||a.Uo||(e.j(e.channel,"mouseenter",e.KX),e.j(e.channel,"mouseleave",e.US),e.j(e.channel,"focusin",e.KX),e.j(e.channel,"focusout",function(r){e.channel.contains(r.relatedTarget)||e.US()})); e.B=new g.vP(function(){e.isExpanded()&&(e.api.logVisibility(e.channelName,!1),e.subscribeButton&&(e.subscribeButton.hide(),e.api.logVisibility(e.subscribeButton.element,!1)),e.S&&(e.S.hide(),e.api.logVisibility(e.S.element,!1)),e.channel.classList.remove("ytp-title-expanded"),e.channel.classList.add("ytp-title-show-collapsed"))},500); g.x(e,e.B);e.j(e.channel,qFj,function(){vJT(e)}); e.j(e.api,"onHideControls",e.EY);e.j(e.api,"appresize",e.EY);e.j(e.api,"fullscreentoggled",e.EY)}; vJT=function(e){e.channel.classList.remove("ytp-title-show-collapsed");e.channel.classList.remove("ytp-title-show-expanded")}; RvI=function(e){var a=e.api.getPlayerSize();return g.uP(e.api.G())&&a.width>=524}; x6O=function(e){var a=e.api.G(),r=e.api.getVideoData(),P=g.Vg(a)+r.HA;g.bL(r)&&(P="https://music.youtube.com"+r.HA);if(!g.uP(a))return P;a={};g.Da(e.api,"addEmbedsConversionTrackingParams",[a]);return g.EW(P,a)}; oW=function(e){var a=g.yi({"aria-haspopup":"true"});g.nw.call(this,a,e);this.listen("keydown",this.S)}; n1=function(e,a){e.element.setAttribute("aria-haspopup",String(a))}; SFl=function(e,a){g.v.call(this,{K:"div",U:"ytp-user-info-panel",J:{"aria-label":"User info"},V:e.G().TQ&&!e.X("embeds_web_always_enable_signed_out_state")?[{K:"div",U:"ytp-user-info-panel-icon",S1:"{{icon}}"},{K:"div",U:"ytp-user-info-panel-content",V:[{K:"div",U:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable}}",role:"text"},S1:"{{watchingAsUsername}}"},{K:"div",U:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable2}}",role:"text"},S1:"{{watchingAsEmail}}"}]}]:[{K:"div",U:"ytp-user-info-panel-icon", S1:"{{icon}}"},{K:"div",U:"ytp-user-info-panel-content",V:[{K:"div",V:[{K:"text",J:{tabIndex:"{{userInfoFocusable}}"},S1:"Signed out"}]},{K:"div",U:"ytp-user-info-panel-login",V:[{K:"a",J:{tabIndex:"{{userInfoFocusable2}}",role:"button"},S1:e.G().sM?"":"Sign in on YouTube"}]}]}]});this.j1=e;this.S=a;e.G().TQ||e.G().sM||this.j(this.BW("ytp-user-info-panel-login"),"click",this.q8);this.closeButton=new g.v({K:"button",WW:["ytp-collapse","ytp-button"],J:{title:"Close"},V:[g.dQ()]});this.closeButton.Kf(this.element); g.x(this,this.closeButton);this.j(window,"blur",this.hide);this.j(document,"click",this.yS);this.zQ()}; Fhj=function(e,a,r){g.QK.call(this,e);this.OM=a;this.fB=r;this.getVideoUrl=new oW(6);this.Ab=new oW(5);this.zU=new oW(4);this.vA=new oW(3);this.z5=new g.nw(g.yi({href:"{{href}}",target:this.W.G().N},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.nw(g.yi(),1,"Stats for nerds");this.Bf=new g.cs({K:"div",WW:["ytp-copytext","ytp-no-contextmenu"],J:{draggable:"false",tabindex:"1"},S1:"{{text}}"});this.Qu=new $7(this.W,this.Bf);this.U6=this.YY=null;g.uP(this.W.G())&&(this.closeButton= new g.v({K:"button",WW:["ytp-collapse","ytp-button"],J:{title:"Close"},V:[g.dQ()]}),g.x(this,this.closeButton),this.closeButton.Kf(this.element),this.closeButton.listen("click",this.zC,this));g.uP(this.W.G())&&(this.MQ=new g.nw(g.yi(),8,"Account"),g.x(this,this.MQ),this.D5(this.MQ,!0),this.MQ.listen("click",this.iBr,this),e.createClientVe(this.MQ.element,this.MQ,137682));this.W.G().HI&&(this.xp=new Zk("Loop",7),g.x(this,this.xp),this.D5(this.xp,!0),this.xp.listen("click",this.ezo,this),e.createClientVe(this.xp.element, this.xp,28661));g.x(this,this.getVideoUrl);this.D5(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.OrW,this);e.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.x(this,this.Ab);this.D5(this.Ab,!0);this.Ab.listen("click",this.LL$,this);e.createClientVe(this.Ab.element,this.Ab,28660);g.x(this,this.zU);this.D5(this.zU,!0);this.zU.listen("click",this.gyQ,this);e.createClientVe(this.zU.element,this.zU,28658);g.x(this,this.vA);this.D5(this.vA,!0);this.vA.listen("click",this.BWm, this);g.x(this,this.z5);this.D5(this.z5,!0);this.z5.listen("click",this.m5m,this);g.x(this,this.showVideoInfo);this.D5(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.uwd,this);g.x(this,this.Bf);this.Bf.listen("click",this.kQo,this);g.x(this,this.Qu);a=document.queryCommandSupported&&document.queryCommandSupported("copy");mjL("Chromium")>=43&&(a=!0);mjL("Firefox")<=40&&(a=!1);a&&(this.YY=new g.v({K:"textarea",U:"ytp-html5-clipboard",J:{readonly:"",tabindex:"-1"}}),g.x(this,this.YY), this.YY.Kf(this.element));var P;(P=this.MQ)==null||P.setIcon(kn4());var B;(B=this.xp)==null||B.setIcon(Q6j());this.vA.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.z5.setIcon(GnO());this.showVideoInfo.setIcon(EfO());this.j(e,"onLoopChange",this.onLoopChange);this.j(e,"videodatachange",this.onVideoDataChange);swj(this);m6O(this,this.W.getVideoData())}; Tb=function(e,a){var r=!1;if(e.YY){var P=e.YY.element;P.value=a;P.select();try{r=document.execCommand("copy")}catch(B){}}r?e.OM.XN():(e.Bf.vO(a,"text"),g.Lc(e.OM,e.Qu),Vi(e.Bf.element),e.YY&&(e.YY=null,swj(e)));return r}; m6O=function(e,a){var r=e.W.G(),P=e.W.getPresentingPlayerType()===2,B=!P||a.isListed;B=!r.oH&&!!a.videoId&&B;r.playerStyle!=="play"?r="https://support.google.com/youtube/?p=report_playback":(r={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.T&&(r.fmt=a.T.itag),a.clientPlaybackNonce&&(r.cpn=a.clientPlaybackNonce),a.partnerId&&(r.partnerid=a.partnerId),r=g.EW("//support.google.com/googleplay/",r));e.zU.Nr(B&&a.allowEmbed);e.getVideoUrl.Nr(B);e.Ab.Nr(B&&!a.isLivePlayback); e.z5.vO(r,"href");var h;(h=e.xp)==null||h.Nr(!a.isLivePlayback&&!P);var c;(c=e.MQ)==null||c.Nr(!P)}; swj=function(e){var a=!!e.YY;g.oS(e.vA,a?"Copy debug info":"Get debug info");n1(e.vA,!a);g.oS(e.zU,a?"Copy embed code":"Get embed code");n1(e.zU,!a);g.oS(e.getVideoUrl,a?"Copy video URL":"Get video URL");n1(e.getVideoUrl,!a);g.oS(e.Ab,a?"Copy video URL at current time":"Get video URL at current time");n1(e.Ab,!a);e.zU.setIcon(a?AJz():null);e.getVideoUrl.setIcon(a?GK():null);e.Ab.setIcon(a?GK():null)}; MTq=function(e){return g.uP(e.W.G())?e.MQ:e.xp}; uCj=function(e,a){g.lZ.call(this,e);this.fB=a;this.L=new g.Zc(this);this.HW=new g.vP(this.IXQ,1E3,this);this.oH=this.B=null;g.x(this,this.L);g.x(this,this.HW);a=this.W.G();e.createClientVe(this.element,this,28656);g.rr(this.element,"ytp-contextmenu");this.W.G().experiments.FM("delhi_modern_web_player")&&g.tZ(a)&&g.rr(this.element,"ytp-delhi-modern-contextmenu");jw3(this);this.hide()}; jw3=function(e){g.du(e.L);var a=e.W.G();a.playerStyle==="gvn"||a.T||a.Uo||(a=e.W.MF(),e.L.j(a,"contextmenu",e.qo$),e.L.j(a,"touchstart",e.onTouchStart,null,!0),e.L.j(a,"touchmove",e.jp,null,!0),e.L.j(a,"touchend",e.jp,null,!0))}; KhN=function(e){e.W.isFullscreen()?g.MY(e.W,e.element,10):e.Kf(B8(e).body)}; Xx=function(e,a,r){r=r===void 0?240:r;g.v.call(this,{K:"button",WW:["ytp-button","ytp-copylink-button"],J:{title:e.X("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.uP(e.G()))},V:[{K:"div",U:"ytp-copylink-icon",S1:"{{icon}}"},{K:"div",U:"ytp-copylink-title",S1:"Copy link",J:{"aria-hidden":"true"}}]});this.api=e;this.S=a;this.T=r;this.visible=!1;this.tooltip=this.S.yH();a=e.G();this.tooltip.element.setAttribute("aria-live", "polite");g.cD(this.element,"ytp-show-copylink-title",g.uP(a));e.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.j(e,"videodatachange",this.zQ);this.j(e,"videoplayerreset",this.zQ);this.j(e,"appresize",this.zQ);this.zQ();this.addOnDisposeCallback(g.NY(this.tooltip,this.element))}; e1T=function(e){var a=e.api.G(),r=e.api.getVideoData(),P=e.api.MF().getPlayerSize().width;a=a.B;return!!r.videoId&&P>=e.T&&r.mH&&!r.nB&&!e.api.isEmbedsShortsMode()&&!a}; aqN=function(e){e.updateValue("icon",XB());if(e.api.G().T)e.tooltip.oP(e.element,"Link copied to clipboard");else{e.updateValue("title-attr","Link copied to clipboard");e.updateValue("tooltip-title","Link copied to clipboard");e.tooltip.gE();e.tooltip.oP(e.element);var a=e.listen("mouseleave",function(){e.Xo(a);e.zQ();e.tooltip.IZ()})}}; rIl=function(e,a){return g.Y(function(r){if(r.T==1)return g.kN(r,2),g.l(r,navigator.clipboard.writeText(a),4);if(r.T!=2)return r.return(!0);g.Q3(r);var P=r.return,B=!1,h=g.U9("TEXTAREA");h.value=a;h.setAttribute("readonly","");var c=e.api.getRootNode();c.appendChild(h);if(HU){var y=window.getSelection();y.removeAllRanges();var T=document.createRange();T.selectNodeContents(h);y.addRange(T);h.setSelectionRange(0,a.length)}else h.select();try{B=document.execCommand("copy")}catch(X){}c.removeChild(h); return P.call(r,B)})}; PWl=function(e){g.v.call(this,{K:"div",U:"ytp-doubletap-ui-legacy",V:[{K:"div",U:"ytp-doubletap-fast-forward-ve"},{K:"div",U:"ytp-doubletap-rewind-ve"},{K:"div",U:"ytp-doubletap-static-circle",V:[{K:"div",U:"ytp-doubletap-ripple"}]},{K:"div",U:"ytp-doubletap-overlay-a11y"},{K:"div",U:"ytp-doubletap-seek-info-container",V:[{K:"div",U:"ytp-doubletap-arrows-container",V:[{K:"span",U:"ytp-doubletap-base-arrow"},{K:"span",U:"ytp-doubletap-base-arrow"},{K:"span",U:"ytp-doubletap-base-arrow"}]},{K:"div", U:"ytp-doubletap-tooltip",V:[{K:"div",U:"ytp-seek-icon-text-container",V:[{K:"div",U:"ytp-seek-icon",S1:"{{seekIcon}}"},{K:"div",U:"ytp-chapter-seek-text-legacy",S1:"{{seekText}}"}]},{K:"div",U:"ytp-doubletap-tooltip-label",S1:"{{seekTime}}"}]}]}]});this.W=e;this.L=new g.vP(this.show,10,this);this.T=new g.vP(this.hide,700,this);this.D=this.B=0;this.HW=this.Z=!1;this.S=this.BW("ytp-doubletap-static-circle");g.x(this,this.L);g.x(this,this.T);this.hide();this.Y=this.BW("ytp-doubletap-fast-forward-ve"); this.N=this.BW("ytp-doubletap-rewind-ve");this.W.createClientVe(this.Y,this,28240);this.W.createClientVe(this.N,this,28239);this.W.logVisibility(this.Y,!0);this.W.logVisibility(this.N,!0);this.Z=e.X("web_show_cumulative_seek_time");this.HW=e.X("web_center_static_circles")}; B03=function(e,a){a=g.PA("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:a.toString()});e.updateValue("seekTime",a)}; h1q=function(e){VK.call(this,e,!1,!0);this.Eo=[];this.h9=[];this.element.setAttribute("data-overlay-order","9");this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Lf=new g.v({K:"div",U:"ytp-featured-product-open-in-new"});g.x(this,this.Lf);this.countdownTimer=new g.v({K:"text",U:"ytp-featured-product-countdown",S1:"{{content}}"});this.countdownTimer.hide();g.x(this,this.countdownTimer);this.T=new g.v({K:"div",U:"ytp-featured-product-trending",V:[{K:"div",U:"ytp-featured-product-trending-icon"}, {K:"text",U:"ytp-featured-product-trending-text",S1:"{{trendingOffer}}"}]});this.T.hide();g.x(this,this.T);this.overflowButton=new g.v({K:"button",WW:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.x(this,this.overflowButton);this.D=new g.v({K:"text",U:"ytp-featured-product-exclusive-countdown",S1:"{{content}}",J:{id:"exclusiveCountdown","aria-hidden":"true"}});this.D.hide();g.x(this,this.D);this.Z=new g.v({K:"div",U:"ytp-featured-product-exclusive-container", J:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{K:"div",U:"ytp-featured-product-exclusive-badge-container",V:[{K:"div",U:"ytp-featured-product-exclusive-badge",V:[{K:"text",U:"ytp-featured-product-exclusive-badge-text",S1:"{{exclusive}}",J:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.D]});this.Z.hide();g.x(this,this.Z);this.banner=new g.v({K:"a",U:"ytp-featured-product-container",V:[{K:"div",U:"ytp-featured-product-thumbnail",V:[{K:"img",J:{src:"{{thumbnail}}"}},this.Lf]},{K:"div", U:"ytp-featured-product-details",V:[{K:"text",U:"ytp-featured-product-title",S1:"{{title}}"},this.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",U:"ytp-featured-product-price-container",J:{"aria-label":"{{priceA11yText}}"},V:[{K:"text",U:"ytp-featured-product-price-when-promotion-text-enabled",S1:"{{price}}",J:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-promotion-text",S1:"{{promotionText}}",J:{"aria-hidden":"true"}}]}:{K:"div",J:{"aria-label":"{{priceA11yText}}"}, V:[{K:"text",U:"ytp-featured-product-price",S1:"{{price}}",J:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-sales-original-price",S1:"{{salesOriginalPrice}}",J:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-price-drop-reference-price",S1:"{{priceDropReferencePrice}}",J:{"aria-hidden":"true"}}]},this.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",U:"ytp-featured-product-when-promotion-text-enabled",V:[{K:"text",U:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", S1:"{{affiliateDisclaimer}}"},this.T,{K:"text",U:"ytp-featured-product-vendor-when-promotion-text-enabled",S1:"{{vendor}}"}]}:{K:"div",V:[{K:"text",U:"ytp-featured-product-affiliate-disclaimer",S1:"{{affiliateDisclaimer}}"},this.W.X("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.Z:null,this.T,{K:"text",U:"ytp-featured-product-vendor",S1:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.x(this,this.banner);this.banner.Kf(this.B.element);this.j(this.W,g.SS("featured_product"), this.GGW);this.j(this.W,g.sh("featured_product"),this.D0);this.j(this.W,"videodatachange",this.onVideoDataChange);this.j(this.overflowButton.element,"click",this.VS);this.j(e,"featuredproductdismissed",this.LQ)}; cI3=function(e){var a,r;e=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:r.itemData;var P,B,h;return(e==null||!e.affiliateDisclaimer)&&(e==null?0:(P=e.exclusivesData)==null?0:P.exclusiveOfferLabelText)&&(e==null?0:(B=e.exclusivesData)==null?0:B.expirationTimestampMs)&&(e==null?0:(h=e.exclusivesData)==null?0:h.exclusiveOfferCountdownText)?!0:!1}; niL=function(e){var a,r,P,B,h=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:(P=r.itemData)==null?void 0:(B=P.exclusivesData)==null?void 0:B.expirationTimestampMs;a=(Number(h)-Date.now())/1E3;if(a>0){if(a<604800){var c,y,T,X;r=(c=e.S)==null?void 0:(y=c.bannerData)==null?void 0:(T=y.itemData)==null?void 0:(X=T.exclusivesData)==null?void 0:X.exclusiveOfferCountdownText;if(r!==void 0)for(c=Date.now(),y=g.Z(r),T=y.next();!T.done;T=y.next())if(T=T.value,T!==void 0&&T.text!==void 0&&(X=Number(T.textDisplayStartTimestampMs), !isNaN(X)&&c>=X)){T.insertCountdown?(a=T.text.replace(/\$0/,String(mP({seconds:a}))),e.D.vO(a)):e.D.vO(T.text);e.D.show();break}}var f,A,U,C;e.Z.update({exclusive:(f=e.S)==null?void 0:(A=f.bannerData)==null?void 0:(U=A.itemData)==null?void 0:(C=U.exclusivesData)==null?void 0:C.exclusiveOfferLabelText});e.Z.show();f1(e);var G;(G=e.dW)==null||G.start()}else oiq(e)}; oiq=function(e){var a;(a=e.dW)==null||a.stop();e.D.hide();e.Z.hide();Ad(e)}; yI4=function(e){var a,r,P=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:r.itemData;return e.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(P==null||!P.priceReplacementText)&&(P==null?0:P.promotionText)?P==null?void 0:P.promotionText.content:null}; T0L=function(e){var a,r,P=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:r.itemData,B,h;if(!(P!=null&&P.priceReplacementText||e.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(P==null?0:(B=P.dealsData)==null?0:(h=B.sales)==null?0:h.originalPrice)){var c,y;return P==null?void 0:(c=P.dealsData)==null?void 0:(y=c.sales)==null?void 0:y.originalPrice}return null}; XTN=function(e){var a,r,P=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:r.itemData,B,h,c,y;if(!((P==null?0:P.priceReplacementText)||e.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(P==null?0:(B=P.dealsData)==null?0:(h=B.sales)==null?0:h.originalPrice))&&(P==null?0:(c=P.dealsData)==null?0:(y=c.priceDrop)==null?0:y.referencePrice)){var T,X;return P==null?void 0:(T=P.dealsData)==null?void 0:(X=T.priceDrop)==null?void 0:X.referencePrice}return null}; fqO=function(e){var a,r,P=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:r.itemData;if(P==null?0:P.priceReplacementText)return P==null?void 0:P.priceReplacementText;if((P==null?0:P.promotionText)&&e.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var B;return(P==null?void 0:P.price)+" "+(P==null?void 0:(B=P.promotionText)==null?void 0:B.content)}var h,c;if(P==null?0:(h=P.dealsData)==null?0:(c=h.sales)==null?0:c.originalPrice){var y,T;return P==null?void 0:(y=P.dealsData)== null?void 0:(T=y.sales)==null?void 0:T.salesPriceAccessibilityLabel}var X,f;if(P==null?0:(X=P.dealsData)==null?0:(f=X.priceDrop)==null?0:f.referencePrice){var A,U;return(P==null?void 0:P.price)+" "+(P==null?void 0:(A=P.dealsData)==null?void 0:(U=A.priceDrop)==null?void 0:U.referencePrice)}return P==null?void 0:P.price}; AIy=function(e){if(e.W.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var a,r,P;return e.T.oD?null:(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:(P=r.itemData)==null?void 0:P.vendorName}var B,h,c,y,T,X;return e.T.oD||e.Z.oD||((B=e.S)==null?0:(h=B.bannerData)==null?0:(c=h.itemData)==null?0:c.affiliateDisclaimer)?null:(y=e.S)==null?void 0:(T=y.bannerData)==null?void 0:(X=T.itemData)==null?void 0:X.vendorName}; CWz=function(e,a){UU(e);if(a){var r=g.k0.getState().entities;r=MQ(r,"featuredProductsEntity",a);if(r!=null&&r.productsData){a=[];r=g.Z(r.productsData);for(var P=r.next();!P.done;P=r.next()){P=P.value;var B=void 0;if((B=P)!=null&&B.identifier&&P.featuredSegments){e.Eo.push(P);var h=void 0;B=g.Z((h=P)==null?void 0:h.featuredSegments);for(h=B.next();!h.done;h=B.next()){var c=h.value;h=UHy(c.startTimeSec);h!==void 0&&(c=UHy(c.endTimeSec),a.push(new g.v_(h*1E3,c===void 0?0x7ffffffffffff:c*1E3,{id:P.identifier, namespace:"featured_product"})))}}}e.W.Ji(a)}}}; Ad=function(e){if(e.trendingOfferEntityKey){var a=g.k0.getState().entities;if(a=MQ(a,"trendingOfferEntity",e.trendingOfferEntityKey)){var r,P,B;a.encodedSkuId!==((r=e.S)==null?void 0:(P=r.bannerData)==null?void 0:(B=P.itemData)==null?void 0:B.encodedOfferSkuId)?f1(e):(e.T.update({trendingOffer:a.shortLabel+" \u2022 "+a.countLabel}),e.T.show(),e.banner.update({vendor:AIy(e)}))}else f1(e)}else f1(e)}; f1=function(e){e.T.hide();e.banner.update({vendor:AIy(e)})}; UU=function(e){e.Eo=[];e.D0();e.W.Ai("featured_product")}; GML=function(e){var a,r,P,B,h=(a=e.S)==null?void 0:(r=a.bannerData)==null?void 0:(P=r.itemData)==null?void 0:(B=P.hiddenProductOptions)==null?void 0:B.dropTimestampMs;a=(Number(h)-Date.now())/1E3;e.countdownTimer.vO(mP({seconds:a}));if(a>0){var c;(c=e.ID)==null||c.start()}}; EiI=function(e){var a;(a=e.ID)==null||a.stop();e.countdownTimer.hide()}; UHy=function(e){if(e!==void 0&&e.trim()!==""&&(e=Math.trunc(Number(e.trim())),!(isNaN(e)||e<0)))return e}; Odl=function(e,a,r){g.v.call(this,{K:"div",WW:["ytp-info-panel-action-item"],V:[{K:"div",U:"ytp-info-panel-action-item-disclaimer",S1:"{{disclaimer}}"},{K:"a",WW:["ytp-info-panel-action-item-button","ytp-button"],J:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{K:"div",U:"ytp-info-panel-action-item-icon",S1:"{{icon}}"},{K:"div",U:"ytp-info-panel-action-item-label",S1:"{{label}}"}]}]});this.W=e;this.S=r;this.disclaimer=this.BW("ytp-info-panel-action-item-disclaimer");this.button= this.BW("ytp-info-panel-action-item-button");this.Fw=!1;this.W.createServerVe(this.element,this,!0);this.listen("click",this.onClick);e="";r=g.H(a==null?void 0:a.onTap,QJ);var P=g.H(r,g.lv);this.Fw=!1;P?(e=P.url||"",e.startsWith("//")&&(e="https:"+e),this.Fw=!0,g.T1(this.button,g.oD(e))):(P=g.H(r,bd3))&&!this.S?((e=P.phoneNumbers)&&e.length>0?(e="sms:"+e[0],P.messageText&&(e+="?&body="+encodeURI(P.messageText))):e="",this.Fw=!0,g.T1(this.button,g.oD(e,[t84]))):(r=g.H(r,giL))&&!this.S&&(e=r.phoneNumber? "tel:"+r.phoneNumber:"",this.Fw=!0,g.T1(this.button,g.oD(e,[Zd4])));var B;if(r=(B=a.disclaimerText)==null?void 0:B.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var h;this.update({label:(h=a.bodyText)==null?void 0:h.content,icon:t_(),disclaimer:r})}else{this.disclaimer.style.display="none";var c;this.update({label:(c=a.bodyText)==null?void 0:c.content,icon:t_()})}this.W.setTrackingParams(this.element,a.trackingParams||null);this.Fw&&(this.T={externalLinkData:{url:e}})}; kMy=function(e,a){var r=rQ();g.P8.call(this,e,{K:"div",U:"ytp-info-panel-detail-skrim",V:[{K:"div",U:"ytp-info-panel-detail",J:{role:"dialog",id:r},V:[{K:"div",U:"ytp-info-panel-detail-header",V:[{K:"div",U:"ytp-info-panel-detail-title",S1:"{{title}}"},{K:"button",WW:["ytp-info-panel-detail-close","ytp-button"],J:{"aria-label":"Close"},V:[g.UY()]}]},{K:"div",U:"ytp-info-panel-detail-body",S1:"{{body}}"},{K:"div",U:"ytp-info-panel-detail-items"}]}]},250);this.S=a;this.items=this.BW("ytp-info-panel-detail-items"); this.B=new g.Zc(this);this.itemData=[];this.L=r;this.j(this.BW("ytp-info-panel-detail-close"),"click",this.XN);this.j(this.BW("ytp-info-panel-detail-skrim"),"click",this.XN);this.j(this.BW("ytp-info-panel-detail"),"click",function(P){P.stopPropagation()}); g.x(this,this.B);this.W.createServerVe(this.element,this,!0);this.j(e,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",e.getVideoData());this.hide()}; dH3=function(e,a){e=g.Z(e.itemData);for(var r=e.next();!r.done;r=e.next())r=r.value,r.W.logVisibility(r.element,a)}; V8j=function(e,a){g.v.call(this,{K:"div",U:"ytp-info-panel-preview",J:{"aria-live":"assertive","aria-atomic":"true","aria-owns":a.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.uP(e.G()))},V:[{K:"div",U:"ytp-info-panel-preview-text",S1:"{{text}}"},{K:"div",U:"ytp-info-panel-preview-chevron",S1:"{{chevron}}"}]});var r=this;this.W=e;this.kf=this.S=this.videoId=null;this.B=this.showControls=this.T=!1;this.j(this.element,"click",function(){e.logClick(r.element);e.LS();hQ(a)}); this.fade=new g.jq(this,250,!1,100);g.x(this,this.fade);this.W.createServerVe(this.element,this,!0);this.j(e,"videodatachange",this.onVideoDataChange);this.j(e,"presentingplayerstatechange",this.iM);this.j(this.W,"paidcontentoverlayvisibilitychange",this.r7);this.j(this.W,"infopaneldetailvisibilitychange",this.r7);var P=e.getVideoData()||{};JIJ(P)&&DHL(this,P);this.j(e,"onShowControls",this.N8);this.j(e,"onHideControls",this.M8)}; DHL=function(e,a){if(!a.BV||!e.W.c8()){var r=a.So||1E4,P=JIJ(a);e.S?a.videoId&&a.videoId!==e.videoId&&(g.Fu(e.S),e.videoId=a.videoId,P?($HL(e,r,a),e.Yh()):(e.XN(),e.S.dispose(),e.S=null)):P&&(a.videoId&&(e.videoId=a.videoId),$HL(e,r,a),e.Yh())}}; JIJ=function(e){var a,r,P,B;return!!((a=e.RL)==null?0:(r=a.title)==null?0:r.content)||!!((P=e.RL)==null?0:(B=P.bodyText)==null?0:B.content)}; $HL=function(e,a,r){e.S&&e.S.dispose();e.S=new g.vP(e.MKm,a,e);g.x(e,e.S);var P;a=((P=r.RL)==null?void 0:P.trackingParams)||null;e.W.setTrackingParams(e.element,a);var B;var h,c;if(r==null?0:(h=r.RL)==null?0:(c=h.title)==null?0:c.content){var y;P=(B=r.RL)==null?void 0:(y=B.title)==null?void 0:y.content;var T,X;if((T=r.RL)==null?0:(X=T.bodyText)==null?0:X.content)P+=" \u2022 ";B=P}else B="";var f,A;r=((f=r.RL)==null?void 0:(A=f.bodyText)==null?void 0:A.content)||"";e.update({text:B+r,chevron:g.A_()})}; QpL=function(e,a){e.S&&(g.S(a,8)?(e.T=!0,e.Yh(),e.S.start()):(g.S(a,2)||g.S(a,64))&&e.videoId&&(e.videoId=null))}; C1=function(e){var a=null;try{a=e.toLocaleString("en-GB",{style:"percent"})}catch(r){a=e.toLocaleString(void 0,{style:"percent"})}return a}; Gb=function(e,a){var r=0;e=g.Z(e);for(var P=e.next();!(P.done||P.value.startTime>a);P=e.next())r++;return r===0?r:r-1}; WFj=function(e,a){for(var r=0,P=g.Z(e),B=P.next();!B.done;B=P.next()){B=B.value;if(a=B.timeRangeStartMillis&&a2147483647?"0":String(e)}; bu=function(e,a,r){var P=e.api.getCurrentTime(),B=idL(e,P);e=idL(e,P+a);return{startMediaTimeMs:B,endMediaTimeMs:e,seekSource:r}}; z1L=function(e){var a,r=(a=e.api.getVideoData())==null?void 0:a.w1();return e.api.getPresentingPlayerType(r)!==2}; EU=function(e,a){e.B.d8=a;g.cD(e.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.cD(e.contextMenu.element,"ytp-probably-keyboard-focus",a)}; gX=function(e,a,r,P){var B=g.Yp(e.api.eO());if(B&&B.loaded){var h=e.api.getSubtitlesUserSettings();B=void 0;for(var c=0;c0?a[0]:null;var r=g.nO("ytp-chrome-bottom"),P=g.nO("ytp-ad-module");e.L=!(r==null||!r.contains(a));e.Y=!(P==null||!P.contains(a));e.N=!(a==null||!a.hasAttribute("data-tooltip-target-fixed"));return a}; mHl=function(e,a,r){if(!e.Z){if(a){e.tooltipRenderer=a;a=e.tooltipRenderer.text;var P=!1,B;(a==null?0:(B=a.runs)==null?0:B.length)&&a.runs[0].text&&(e.update({title:a.runs[0].text.toString()}),P=!0);g.PQ(e.title,P);a=e.tooltipRenderer.detailsText;B=!1;var h;if((a==null?0:(h=a.runs)==null?0:h.length)&&a.runs[0].text){P=a.runs[0].text.toString();h=P.indexOf("$TARGET_ICON");if(h>-1)if(e.tooltipRenderer.targetId){a=[];P=P.split("$TARGET_ICON");var c=new g.Ps({K:"span",U:"ytp-promotooltip-details-icon", V:[SQy[e.tooltipRenderer.targetId]]});g.x(e,c);for(var y=[],T=g.Z(P),X=T.next();!X.done;X=T.next())X=new g.Ps({K:"span",U:"ytp-promotooltip-details-component",S1:X.value}),g.x(e,X),y.push(X);P.length===2?(a.push(y[0].element),a.push(c.element),a.push(y[1].element)):P.length===1&&(h===0?(a.push(c.element),a.push(y[0].element)):(a.push(y[0].element),a.push(c.element)));h=a.length?a:null}else h=null;else h=P;if(h){if(typeof h!=="string")for(g.E9(e.details),B=g.Z(h),h=B.next();!h.done;h=B.next())e.details.appendChild(h.value); else e.update({details:h});B=!0}}g.PQ(e.details,B);B=e.tooltipRenderer.acceptButton;h=!1;var f,A,U;((f=g.H(B,g.nR))==null?0:(A=f.text)==null?0:(U=A.runs)==null?0:U.length)&&g.H(B,g.nR).text.runs[0].text&&(e.update({acceptButtonText:g.H(B,g.nR).text.runs[0].text.toString()}),h=!0);g.PQ(e.acceptButton,h);f=e.tooltipRenderer.dismissButton;A=!1;var C,G,O;((C=g.H(f,g.nR))==null?0:(G=C.text)==null?0:(O=G.runs)==null?0:O.length)&&g.H(f,g.nR).text.runs[0].text&&(e.update({dismissButtonText:g.H(f,g.nR).text.runs[0].text.toString()}), A=!0);g.PQ(e.dismissButton,A)}r&&(e.B=r);e.S=R1I(e);e.D=!1;e.W.G().X("web_player_hide_nitrate_promo_tooltip")||e.Nr(!0);spL(e);e.oD&&!e.HW&&(e.HW=!0,e.Ob.q9(0));e.T&&e.W.logVisibility(e.element,e.oD)}}; kz=function(e){e.Nr(!1);e.T&&e.W.logVisibility(e.element,e.oD)}; FFj=function(e){var a,r,P,B=((a=g.H(e.acceptButton,g.nR))==null?void 0:(r=a.text)==null?void 0:(P=r.runs)==null?void 0:P.length)&&!!g.H(e.acceptButton,g.nR).text.runs[0].text,h,c,y;a=((h=g.H(e.dismissButton,g.nR))==null?void 0:(c=h.text)==null?void 0:(y=c.runs)==null?void 0:y.length)&&!!g.H(e.dismissButton,g.nR).text.runs[0].text;return B||a}; spL=function(e){var a;if(!(a=!e.S)){a=e.S;var r=window.getComputedStyle(a);a=r.display==="none"||r.visibility==="hidden"||a.getAttribute("aria-hidden")==="true"}if(a||e.W.isMinimized())e.Nr(!1);else if(a=g.rF(e.S),a.width&&a.height){e.W.tF(e.element,e.S);var P=e.W.MF().getPlayerSize().height;r=g.rF(e.BW("ytp-promotooltip-container")).height;e.L?e.element.style.top=P-r-a.height-12+"px":e.N||(P=e.W.jZ().height-r-a.height-12,e.element.style.top=P+"px");P=e.BW("ytp-promotooltip-pointer");var B=g.eN(e.S, e.W.getRootNode()),h=Number(e.element.style.left.replace(/[^\d\.]/g,""));e=e.W.isFullscreen()?18:12;P.style.left=B.x-h+a.width/2-e+"px";P.style.top=r+"px"}else e.Nr(!1)}; dX=function(e){g.v.call(this,{K:"button",WW:["ytp-replay-button","ytp-button"],J:{title:e.X("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},V:[g.OY()]});this.W=e;this.j(e,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.dg(e.getPlayerStateObject());xd(this.W,this.element,this)}; Jd=function(e,a){a=a===void 0?240:a;g.v.call(this,{K:"button",WW:["ytp-button","ytp-search-button"],J:{title:e.X("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.uP(e.G()))},V:[{K:"div",U:"ytp-search-icon",S1:"{{icon}}"},{K:"div",U:"ytp-search-title",S1:"Search"}]});this.api=e;this.T=a;this.visible=!1;this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",U:"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"}}]}); e.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.S();this.j(e,"appresize",this.S);this.j(e,"videodatachange",this.S);xd(e,this.element,this)}; DW=function(e){g.v.call(this,{K:"div",U:"ytp-seek-overlay",V:[{K:"div",WW:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{K:"div",WW:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{K:"svg",J:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{K:"path",J:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{K:"div",U:"ytp-seek-overlay-duration",S1:"{{durationBack}}"}]},{K:"div",WW:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],V:[{K:"div",U:"ytp-seek-overlay-duration",S1:"{{durationForward}}"},{K:"div",WW:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{K:"svg",J:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{K:"path",J:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{K:"div",U:"ytp-seek-overlay-message",V:[{K:"div",U:"ytp-seek-overlay-message-icon",S1:"{{icon}}"},{K:"div",U:"ytp-seek-overlay-message-text", S1:"{{text}}"}]}]});var a=this;this.W=e;this.D=0;this.S="hidden";this.Y=this.BW("ytp-seek-overlay-animation-back");this.N=this.BW("ytp-seek-overlay-animation-forward");this.HW=this.BW("ytp-seek-overlay-message");this.Z=new g.vP(function(){M8O(a)},g.eS(this.W.G().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.x(this,this.Z);this.W.createClientVe(this.N,this,28240);this.W.createClientVe(this.Y,this,28239);this.W.logVisibility(this.N,!0);this.W.logVisibility(this.Y,!0);this.hide()}; jpz=function(e,a){e.B=e.L.animate([{offset:0,opacity:a,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});e.B.addEventListener("finish",function(){e.B=void 0;e.Z.start();e.S="lingering"})}; uFN=function(e,a,r,P){r=r===void 0?!1:r;P=P===void 0?!1:P;var B=[];B.push({offset:0,transform:"translateX("+(e.T===-1?20:-20)+"px)",opacity:r?"0":"1"});r&&B.push({offset:.5,opacity:"1"});B.push({offset:1,transform:"translateX(0)"});r=a.animate(B,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});a=a.querySelector("path");B=[];B.push({offset:0,d:e.T===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});P&&B.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); e={offset:1,d:e.T===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};P&&(e.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");B.push(e);a.animate(B,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return r}; KF4=function(e){var a=e.L.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);a.classList.add("ytp-seek-overlay-arrow-additional");a.classList.remove("ytp-seek-overlay-arrow-persistent");e.L.appendChild(a);uFN(e,a,!0,!0).addEventListener("finish",function(){a.remove()})}; M8O=function(e,a,r){r=r===void 0?!0:r;e.B=e.L.animate([{offset:0,opacity:a===void 0?1:a},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});r&&(e.B.addEventListener("finish",function(){e.B=void 0;ejO(e);e.hide()}),e.S="fading-out")}; azT=function(e){var a=Number(getComputedStyle(e.L).opacity),r;(r=e.B)==null||r.cancel();e.B=void 0;return a}; ejO=function(e){e.D=0;e.S="hidden";e.T=void 0;e.L=void 0;e.Z.stop();e.B=void 0}; r9j=function(e,a,r){e.updateValue("text",a);if(r){a:{switch(r){case "PREMIUM_STANDALONE":a=DlL();break a;case "PREMIUM_STANDALONE_CAIRO":a=V$3();break a}a=void 0}e.updateValue("icon",a)}a=g.Z(e.HW.getAnimations());for(r=a.next();!r.done;r=a.next())r.value.cancel();e.HW.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){e.updateValue("text","");e.updateValue("icon","")})}; Vt=function(e,a,r,P){P=P===void 0?240:P;g.v.call(this,{K:"button",WW:["ytp-button","ytp-share-button"],J:{title:e.X("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":r.element.id,"data-tooltip-opaque":String(g.uP(e.G()))},V:[{K:"div",U:"ytp-share-icon",S1:"{{icon}}"},{K:"div",U:"ytp-share-title",S1:"Share"}]});this.api=e;this.S=a;this.T=r;this.B=P;this.visible=!1;this.tooltip=this.S.yH();e.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.j(e,"videodatachange",this.zQ);this.j(e,"videoplayerreset",this.zQ);this.j(e,"appresize",this.zQ);this.j(e,"presentingplayerstatechange",this.zQ);this.zQ();this.addOnDisposeCallback(g.NY(this.tooltip,this.element))}; PUz=function(e){var a=e.api.G(),r=e.api.getVideoData(),P=g.uP(a)&&g.Sn(e.api)&&g.S(e.api.getPlayerStateObject(),128);a=a.B||a.disableSharing&&e.api.getPresentingPlayerType()!==2||!r.showShareButton||r.mH||P||r.nB||!1;P=e.api.MF().getPlayerSize().width;return!!r.videoId&&P>=e.B&&!a}; Bg4=function(e,a){a.name!=="InvalidStateError"&&a.name!=="AbortError"&&(a.name==="NotAllowedError"?(e.S.LS(),hQ(e.T,e.element,!1)):g.D6(a))}; c9y=function(e,a){var r=rQ(),P=e.G();r={K:"div",U:"ytp-share-panel",J:{id:rQ(),role:"dialog","aria-labelledby":r},V:[{K:"div",U:"ytp-share-panel-inner-content",V:[{K:"div",U:"ytp-share-panel-title",J:{id:r},S1:"Share"},{K:"a",WW:["ytp-share-panel-link","ytp-no-contextmenu"],J:{href:"{{link}}",target:P.N,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},S1:"{{linkText}}"},{K:"label",U:"ytp-share-panel-include-playlist",V:[{K:"input",U:"ytp-share-panel-include-playlist-checkbox",J:{type:"checkbox", checked:"true"}},"Include playlist"]},{K:"div",U:"ytp-share-panel-loading-spinner",V:[Dk()]},{K:"div",U:"ytp-share-panel-service-buttons",S1:"{{buttons}}"},{K:"div",U:"ytp-share-panel-error",S1:"An error occurred while retrieving sharing information. Please try again later."}]},{K:"button",WW:["ytp-share-panel-close","ytp-button"],J:{title:"Close"},V:[g.UY()]}]};g.P8.call(this,e,r,250);var B=this;this.moreButton=null;this.api=e;this.tooltip=a.yH();this.B=[];this.Z=this.BW("ytp-share-panel-inner-content"); this.closeButton=this.BW("ytp-share-panel-close");this.j(this.closeButton,"click",this.XN);this.addOnDisposeCallback(g.NY(this.tooltip,this.closeButton));this.L=this.BW("ytp-share-panel-include-playlist-checkbox");this.j(this.L,"click",this.zQ);this.S=this.BW("ytp-share-panel-link");this.addOnDisposeCallback(g.NY(this.tooltip,this.S));this.api.createClientVe(this.S,this,164503);this.j(this.S,"click",function(h){h.preventDefault();B.api.logClick(B.S);var c=B.api.getVideoUrl(!0,!0,!1,!1);c=hjL(B,c); g.da(c,B.api,h)&&B.api.qF("SHARE_CLICKED")}); this.listen("click",this.pK);this.j(e,"videoplayerreset",this.hide);this.j(e,"fullscreentoggled",this.onFullscreenToggled);this.j(e,"onLoopRangeChange",this.vl);this.hide()}; y9L=function(e,a){otL(e);for(var r=a.links||a.shareTargets,P=0,B={},h=0;h0&&!M&&!z?(L.length===2&&(L=["noreferrer"]),g.CD(C,O,U,L[0]),C=Mky()):(d=V.join(","),iF()&&C.navigator&&C.navigator.standalone&&U&&U!="_self"?(d=g.U9("A"),g.T1(d,O),d.target=U,W&&(d.rel="noreferrer"),((G=G.attributionsrc)||G==="")&&d.setAttribute("attributionsrc",G),G=document.createEvent("MouseEvent"), G.initMouseEvent("click",!0,!0,C,1),d.dispatchEvent(G),C=Mky()):W?(C=g.CD(C,"",U,d),G=g.BR(O),C&&(C.opener=null,G===""&&(G="javascript:''"),G='',G=AU(G),(O=C.document)&&O.write&&(O.write(UZ(G)),O.close()))):((C=g.CD(C,O,U,d))&&G.noopener&&(C.opener=null),C&&G.noreferrer&&(C.opener=null)));C&&(C.opener||(C.opener=window),C.focus());A.preventDefault()}}}(B)); B.yB.addOnDisposeCallback(g.NY(e.tooltip,B.yB.element));y==="Facebook"?e.api.createClientVe(B.yB.element,B.yB,164504):y==="Twitter"&&e.api.createClientVe(B.yB.element,B.yB,164505);e.j(B.yB.element,"click",function(f){return function(){e.api.logClick(f.yB.element)}}(B)); e.api.logVisibility(B.yB.element,!0);e.B.push(B.yB);P++}}var T=a.more||a.moreLink,X=new g.v({K:"a",WW:["ytp-share-panel-service-button","ytp-button"],V:[{K:"span",U:"ytp-share-panel-service-button-more",V:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],J:{href:T,target:"_blank",title:"More"}});X.listen("click",function(f){var A=T;e.api.logClick(e.moreButton.element);A=hjL(e,A);g.da(A,e.api,f)&&e.api.qF("SHARE_CLICKED")}); X.addOnDisposeCallback(g.NY(e.tooltip,X.element));e.api.createClientVe(X.element,X,164506);e.j(X.element,"click",function(){e.api.logClick(X.element)}); e.api.logVisibility(X.element,!0);e.B.push(X);e.moreButton=X;e.updateValue("buttons",e.B)}; hjL=function(e,a){var r={};g.uP(e.api.G())&&(g.Da(e.api,"addEmbedsConversionTrackingParams",[r]),a=g.EW(a,r));return a}; otL=function(e){for(var a=g.Z(e.B),r=a.next();!r.done;r=a.next())r=r.value,r.detach(),g.Pe(r);e.B=[]}; $z=function(e){return e===void 0||e.startSec===void 0||e.endSec===void 0?!1:!0}; Tgz=function(e,a){e.startSec+=a;e.endSec+=a}; fzT=function(e){VK.call(this,e);this.T=this.S=this.isContentForward=this.D=!1;this.element.setAttribute("data-overlay-order","8");XlO(this);this.j(this.W,"changeProductsInVideoVisibility",this.L2d);this.j(this.W,"videodatachange",this.onVideoDataChange)}; A9j=function(e){e.Z&&e.Cf.element.removeChild(e.Z.element);e.Z=void 0}; CUN=function(e,a){return a.map(function(r){var P,B;if((r=(P=g.H(r,ULN))==null?void 0:(B=P.thumbnail)==null?void 0:B.thumbnails)&&r.length!==0)return r[0].url}).filter(function(r){return r!==void 0}).map(function(r){r=new g.v({K:"img", U:"ytp-suggested-action-product-thumbnail",J:{alt:"",src:r}});g.x(e,r);return r})}; GlL=function(e,a){e.isContentForward=a;g.cD(e.badge.element,"ytp-suggested-action-badge-content-forward",a)}; Qt=function(e){var a=e.isContentForward&&!e.Bp();g.cD(e.badge.element,"ytp-suggested-action-badge-preview-collapsed",a&&e.S);g.cD(e.badge.element,"ytp-suggested-action-badge-preview-expanded",a&&e.T)}; W6=function(e,a,r){return new g.v_(e*1E3,a*1E3,{priority:9,namespace:r})}; Et3=function(e){e.W.Ai("shopping_overlay_visible");e.W.Ai("shopping_overlay_preview_collapsed");e.W.Ai("shopping_overlay_preview_expanded");e.W.Ai("shopping_overlay_expanded")}; XlO=function(e){e.j(e.W,g.SS("shopping_overlay_visible"),function(){e.GG(!0)}); e.j(e.W,g.sh("shopping_overlay_visible"),function(){e.GG(!1)}); e.j(e.W,g.SS("shopping_overlay_expanded"),function(){e.oH=!0;DJ(e)}); e.j(e.W,g.sh("shopping_overlay_expanded"),function(){e.oH=!1;DJ(e)}); e.j(e.W,g.SS("shopping_overlay_preview_collapsed"),function(){e.S=!0;Qt(e)}); e.j(e.W,g.sh("shopping_overlay_preview_collapsed"),function(){e.S=!1;Qt(e)}); e.j(e.W,g.SS("shopping_overlay_preview_expanded"),function(){e.T=!0;Qt(e)}); e.j(e.W,g.sh("shopping_overlay_preview_expanded"),function(){e.T=!1;Qt(e)})}; gt3=function(e){g.v.call(this,{K:"div",U:"ytp-shorts-title-channel",V:[{K:"a",U:"ytp-shorts-title-channel-logo",J:{href:"{{channelLink}}",target:e.G().N,"aria-label":"{{channelLogoLabel}}"}},{K:"div",U:"ytp-shorts-title-expanded-heading",V:[{K:"div",U:"ytp-shorts-title-expanded-title",V:[{K:"a",S1:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:e.G().N,tabIndex:"0"}}]}]}]});var a=this;this.api=e;this.S=this.BW("ytp-shorts-title-channel-logo");this.channelName=this.BW("ytp-shorts-title-expanded-title"); this.subscribeButton=null;e.createClientVe(this.S,this,36925);this.j(this.S,"click",function(r){a.api.logClick(a.S);g.CD(window,bxj(a));r.preventDefault()}); e.createClientVe(this.channelName,this,37220);this.j(this.channelName,"click",function(r){a.api.logClick(a.channelName);g.CD(window,bxj(a));r.preventDefault()}); tJj(this);this.j(e,"videodatachange",this.zQ);this.j(e,"videoplayerreset",this.zQ);this.zQ()}; tJj=function(e){if(!e.api.G().sM){var a=e.api.getVideoData(),r=new g.c6("Subscribe",null,"Subscribed",null,!0,!1,a.ix,a.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(r.element,e);var P;e.api.setTrackingParams(r.element,((P=a.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);e.j(r.element,"click",function(){e.api.logClick(r.element)}); e.subscribeButton=r;g.x(e,e.subscribeButton);e.subscribeButton.Kf(e.element)}}; bxj=function(e){var a=e.api.G(),r=e.api.getVideoData();r=g.Vg(a)+r.HA;if(!g.uP(a))return r;a={};g.Da(e.api,"addEmbedsConversionTrackingParams",[a]);return g.EW(r,a)}; lu=function(e){g.P8.call(this,e,{K:"button",WW:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{K:"div",U:"ytp-skip-intro-button-text",S1:"Skip Intro"}]},100);var a=this;this.B=!1;this.S=new g.vP(function(){a.hide()},5E3); this.Ky=this.n5=NaN;g.x(this,this.S);this.D=function(){a.show()}; this.Z=function(){a.hide()}; this.L=function(){var r=a.W.getCurrentTime();r>a.n5/1E3&&r0?{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",WW:["ytp-circle-arrow","ytp-svg-fill"],J:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {K:"text",WW:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"7.05",y:"15.05"}}]}:{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",WW:["ytp-circle-arrow","ytp-svg-fill"],J:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {K:"text",WW:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"6.5",y:"15"}}]}]});var r=this;this.W=e;this.S=a;this.T=new g.vP(function(){r.B?(r.B=!1,r.T.start()):r.element.classList.remove("ytp-jump-spin","backwards")},250); this.B=!1;(a=a>0)?this.W.createClientVe(this.element,this,36843):this.W.createClientVe(this.element,this,36844);var P=g.PA(a?"Seek forwards $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.S).toString()});this.W.X("player_tooltip_data_title_killswitch")?this.update({title:P,"data-title-no-tooltip":P,"aria-keyshortcuts":a?"\u2192":"\u2190"}):this.update({"tooltip-title":P,"data-title-no-tooltip":P,"aria-keyshortcuts":a?"\u2192":"\u2190"});this.L=this.element.querySelector(".ytp-jump-button-text"); this.L.textContent=Math.abs(this.S).toString();this.listen("click",this.onClick,this);xd(e,this.element,this)}; $LT=function(e,a){a?e.element.classList.add("ytp-jump-button-enabled"):e.element.classList.remove("ytp-jump-button-enabled");e.W.logVisibility(e.element,a);e.W.gE()}; Nw=function(e,a){Yz.call(this,e,a,"timedMarkerCueRange","View key moments");this.j(e,g.sh("timedMarkerCueRange"),this.j5);this.j(e,"updatemarkervisibility",this.updateVideoData)}; QLz=function(e){var a,r=(a=e.W.getVideoData())==null?void 0:a.PW;if(r)for(e=e.L.GQ,r=g.Z(r),a=r.next();!a.done;a=r.next())if(a=e[a.value]){var P=void 0,B=void 0,h=void 0;if(((P=a.onTap)==null?void 0:(B=P.innertubeCommand)==null?void 0:(h=B.changeEngagementPanelVisibilityAction)==null?void 0:h.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return a}}; xz=function(e){var a=e.X("web_enable_pip_on_miniplayer");g.v.call(this,{K:"button",WW:["ytp-miniplayer-button","ytp-button"],J:{title:e.X("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.W=e;this.visible=!1;this.listen("click",this.onClick);this.j(e,"fullscreentoggled",this.zQ);this.W.X("player_tooltip_data_title_killswitch")? this.update({title:g.Ik(e,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:WCl(this,a)}):this.update({"tooltip-title":g.Ik(e,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:WCl(this,a)});xd(e,this.element,this);e.createClientVe(this.element,this,62946);this.zQ()}; WCl=function(e,a){return e.W.X("delhi_modern_web_player_icons")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"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"}}]}:a?{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{K:"g",J:{transform:"translate(96, -96) scale(0.8)"},V:[{K:"path",Rz:!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"}}]}]}:JJl()}; IW=function(e,a,r,P,B,h){h=h===void 0?!1:h;var c={K:"div",WW:["ytp-input-slider-section"],V:[{K:"input",U:"ytp-input-slider",J:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};B&&c.V.unshift(B);h&&c.WW.push("ytp-vertical-slider");g.v.call(this,c);this.L=e;this.Z=a;this.Y=r;this.initialValue=P;this.header=B;this.T=this.BW("ytp-input-slider");this.S=P?P:e;this.init();this.j(this.T,"input",this.B);this.j(this.T,"keydown", this.D)}; H6=function(e,a){e.S=a;e.updateValue("slidervalue",e.S);e.T.valueAsNumber=e.S;lzJ(e,a)}; lzJ=function(e,a){e.T.style.setProperty("--yt-slider-shape-gradient-percent",(a-e.L)/(e.Z-e.L)*100+"%")}; qw=function(e){var a=e.isMuted()?0:e.getVolume();IW.call(this,0,100,1,a,void 0,!0);this.W=e;this.HW=pO(this.TQ,10,this);this.N=!1;this.j(e,"onVolumeChange",this.onVolumeChange);this.j(this.element,"wheel",this.oH)}; LCO=function(e,a){g.v.call(this,{K:"div",J:{tabindex:"0",title:e.X("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},WW:["ytp-volume-popover"]});var r=this;this.isVisible=!1;this.tooltip=a.yH();this.T=new qw(e);g.x(this,this.T);this.T.Kf(this.element);this.S=new g.vP(function(){v6(r,!1)},300); this.listen("mouseenter",function(){r.S.stop()}); this.listen("mouseleave",function(){r.S.start()}); this.listen("focus",function(){r.S.stop()}); this.j(this.T.T,"focus",function(){r.S.stop()}); this.listen("focusout",function(){r.S.start();r.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.NY(a.yH(),this.element));g.x(this,this.S)}; v6=function(e,a){e.element.classList.toggle("ytp-volume-popover-hovering",a);e.isVisible=a;(e=e.element.closest(".ytp-chrome-bottom"))&&e.classList.toggle("ytp-volume-popover-showing",a)}; RW=function(e,a,r){r=r===void 0?!1:r;var P=e.G().Cf?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:e.X("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};P=e.X("delhi_modern_web_player")?{K:"div",U:"ytp-mute-button",V:[{K:"button",J:P,WW:["ytp-volume-icon", "ytp-button"],S1:"{{icon}}"}]}:{K:"button",WW:["ytp-mute-button","ytp-button"],J:P,V:[{K:"div",U:"ytp-volume-icon",S1:"{{icon}}"}]};g.v.call(this,P);this.W=e;this.e1=r;this.T=null;this.D=this.TQ=this.N=this.Y=NaN;this.Lf=this.HW=null;this.Z=[];this.L=[];this.visible=!1;this.B=this.S=this.oH=null;e.X("delhi_modern_web_player")&&this.update({"data-priority":4});r=this.W.G();this.updateValue("icon",J_());this.tooltip=a.yH();this.updateValue("dataTooltipOffsetY",0);this.B=g.nO("ytp-volume-icon",this.element); P=this.W.X("delhi_modern_web_player_icons")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",WW:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{K:"path",U:"ytp-svg-volume-animation-small-ripple",J:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{K:"path",U:"ytp-svg-volume-animation-big-ripple",J:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"defs",V:[{K:"clipPath",J:{id:"ytp-svg-volume-animation-mask"},V:[{K:"path",J:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",J:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",U:"ytp-svg-volume-animation-mover",J:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",J:{id:"ytp-svg-volume-animation-slash-mask"},V:[{K:"path",U:"ytp-svg-volume-animation-mover", J:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",Rz:!0,WW:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{K:"path",Rz:!0,WW:["ytp-svg-fill","ytp-svg-volume-animation-hider"],J:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.T=new g.Ps(P);g.x(this,this.T);this.HW=this.T.BW("ytp-svg-volume-animation-speaker");this.Lf=this.HW.getAttribute("d");this.Z=g.co("ytp-svg-volume-animation-mover",this.T.element);this.W.X("delhi_modern_web_player_icons");this.L=g.co("ytp-svg-volume-animation-hider",this.T.element);this.W.X("delhi_modern_web_player_icons");this.Cf=new a7;g.x(this,this.Cf);this.Eo=new a7;g.x(this,this.Eo);this.j(e,"appresize",this.P2);this.j(e,"onVolumeChange",this.onVolumeChange);e.X("delhi_modern_web_player")? this.listen("click",this.eTM):this.listen("click",this.W5);r.Cf?(e.X("delhi_modern_web_player")&&!e.X("delhi_modern_web_player_horizontal_volume_controls")&&(this.S=new LCO(e,a),this.S.Kf(this.element),g.x(this,this.S),this.j(this.B,"mouseover",this.x_),this.j(this.B,"focus",this.x_),this.j(this.B,"mouseout",this.OE),this.j(this.B,"blur",this.OE)),r=e.X("delhi_modern_web_player")?this.B:this.element,this.addOnDisposeCallback(g.NY(a.yH(),r))):Yzj(this);this.message=null;e.createClientVe(this.element, this,28662);this.P2(e.MF().getPlayerSize());this.setVolume(e.getVolume(),e.isMuted())}; wly=function(e,a){if(e.W.G().Cf){var r=g.Ik(e.W,"Mute","m"),P=g.Ik(e.W,"Unmute","m");r=a?P:r;e.W.G().X("player_tooltip_data_title_killswitch")?e.updateValue("title",r):e.update({"tooltip-title":r,"aria-label":r});e.update({"data-title-no-tooltip":a?"Unmute":"Mute"});e.tooltip.gE()}}; zjl=function(e,a){e.Y=a;var r=e.Lf;e.W.X("delhi_modern_web_player_icons")?e.T.BW("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(a+") translate(-22,-12)")):a&&(r+=R53(plj,ix4,a));e.HW.setAttribute("d",r)}; NgO=function(e,a){var r;a===1?r=e.W.X("delhi_modern_web_player_icons")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:J_():r=e.T;e.TQ=a;if(e.W.X("delhi_modern_web_player_icons"))e.T.BW("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-a+") translate(-18,-12)")),e.T.BW("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(e.Y-a+") translate(-22, -12)"));else{for(var P=20*a,B=0;B=3&&e.W.getPresentingPlayerType()!==2}; RjL=function(e){var a=Rk(e.W.eO());return a?e.S?a.fq():a.Mj():!1}; Hx4=function(e){var a={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},r=e.playlist!=null&&e.playlist.fq();r=g.Sn(e.W)&&(!e.S||r);var P=e.S&&g.jn(e.W),B=RjL(e),h=e.S&&e.W.getPresentingPlayerType()===5,c=g.Ik(e.W,"Next","SHIFT+n"),y=g.Ik(e.W,"Previous","SHIFT+p");if(h)a.title="Start video",a["tooltip-title"]="Start video";else if(e.B)a.title="Replay",a["tooltip-title"]="Replay";else if(r){var T=null;e.playlist&&(T= g.dP(e.playlist,e.S?YJJ(e.playlist):w0J(e.playlist)));if(T){if(T.videoId){var X=e.playlist.listId;a.url=e.W.G().getVideoUrl(T.videoId,X?X.toString():void 0)}a.text=T.title;a.duration=T.lengthText?T.lengthText:T.lengthSeconds?g.tx(T.lengthSeconds):null;a.preview=T.EG("mqdefault.jpg")}e.S?(a.title=c,a["tooltip-title"]=c,a["data-title-no-tooltip"]="Next",a["aria-keyshortcuts"]="SHIFT+n"):(a.title=y,a["tooltip-title"]=y,a["data-title-no-tooltip"]="Previous",a["aria-keyshortcuts"]="SHIFT+p")}else if(P){if(y= (T=e.videoData)==null?void 0:g.Zo(T))a.url=y.Um(),a.text=y.title,a.duration=y.lengthText?y.lengthText:y.lengthSeconds?g.tx(y.lengthSeconds):null,a.preview=y.EG("mqdefault.jpg");a.title=c;a["tooltip-title"]=c;a["data-title-no-tooltip"]="Next";a["aria-keyshortcuts"]="SHIFT+n"}a.disabled=!P&&!r&&!B&&!h;e.update(a);e.D=!!a.url;P||r||e.B||B||h?e.T||(e.T=g.NY(e.tooltip,e.element),e.Z=e.listen("click",e.onClick,e)):e.T&&(e.T(),e.T=null,e.Xo(e.Z),e.Z=null);e.tooltip.gE();g.cD(e.element,"ytp-playlist-ui", e.S&&(r||e.W.X("web_hide_next_button")))}; IzJ=function(e,a){return e?a?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"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"}}]}:EY():a?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:$l3()}; sLJ=function(e,a){g.v.call(this,{K:"div",U:"ytp-fine-scrubbing",V:[{K:"div",U:"ytp-fine-scrubbing-draggable",V:[{K:"div",U:"ytp-fine-scrubbing-thumbnails",J:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",J:{"aria-hidden":"true"},U:"ytp-fine-scrubbing-cursor"},{K:"div",U:"ytp-fine-scrubbing-seek-time",J:{"aria-hidden":"true"}, S1:"{{seekTime}}"},{K:"div",U:"ytp-fine-scrubbing-play",V:[e.X("delhi_modern_web_player_icons")?Zt():gQ()],J:{title:"Play from this position",role:"button"}},{K:"div",U:"ytp-fine-scrubbing-dismiss",V:[g.UY()],J:{title:"Exit precise seeking",role:"button"}}]});var r=this;this.api=e;this.Z=this.BW("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.BW("ytp-fine-scrubbing-dismiss");this.TQ=this.BW("ytp-fine-scrubbing-draggable");this.playButton=this.BW("ytp-fine-scrubbing-play");this.thumbnails= [];this.T=[];this.e1=this.S=0;this.Cf=void 0;this.HW=NaN;this.XM=this.N=this.B=this.Y=0;this.L=[];this.interval=this.frameCount=0;this.D=160;this.scale=1;this.Uo=0;this.isEnabled=this.Lf=!1;Szy(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.NY(a,this.dismissButton));this.addOnDisposeCallback(g.NY(a,this.playButton));this.Eo=new g.qp(this.TQ,!0);this.Eo.subscribe("dragstart",this.cK,this);this.Eo.subscribe("dragmove",this.fZ,this);this.Eo.subscribe("dragend",this.bM,this);this.j(e,"SEEK_COMPLETE", this.Bz);e.X("web_fix_fine_scrubbing_false_play")&&this.j(e,"rootnodemousedown",function(P){r.oH=P}); this.Z.addEventListener("keydown",function(){}); g.x(this,this.Eo);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.Z,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Szy=function(e,a){var r=g.tx(a),P=g.PA("Seek to $PROGRESS",{PROGRESS:g.tx(a,!0)});e.update({ariamin:0,ariamax:Math.floor(e.api.getDuration()),arianow:Math.floor(a),arianowtext:P,seekTime:r})}; mLN=function(e){e.HW=NaN;e.N=0;e.Y=e.B}; jL3=function(e){var a=e.api.b$();if(a){var r=90*e.scale,P=cE(a,160*e.scale);if(a=a.levels[P]){e.D=a.width;if(!e.L.length){P=[];for(var B=oG(a,a.JK()),h=a.columns*a.rows,c=a.frameCount,y=0;y<=B;y++)for(var T=ce.L.length;)P= void 0,(P=e.thumbnails.pop())==null||P.dispose();for(;e.thumbnails.lengthr.length;)P=void 0,(P=e.T.pop())==null||P.dispose(); for(;e.T.length-r?-a/r*e.interval*.5:-(a+r/2)/r*e.interval}; uyj=function(e){return-((e.Z.offsetWidth||(e.frameCount-1)*e.D*e.scale)-e.S/2)}; FCj=function(){g.v.call(this,{K:"div",U:"ytp-fine-scrubbing-thumbnail"})}; MJj=function(){g.v.call(this,{K:"div",U:"ytp-fine-scrubbing-chapter-title",V:[{K:"div",U:"ytp-fine-scrubbing-chapter-title-content",S1:"{{chapterTitle}}"}]})}; euN=function(e){g.v.call(this,{K:"div",U:"ytp-heat-map-chapter",V:[{K:"svg",U:"ytp-heat-map-svg",J:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{K:"defs",V:[{K:"clipPath",J:{id:"{{id}}"},V:[{K:"path",U:"ytp-heat-map-path",J:{d:"",fill:"white"}}]},{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{K:"stop",J:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",J:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",U:"ytp-heat-map-graph",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",U:"ytp-heat-map-hover",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",U:"ytp-heat-map-play",J:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",U:"ytp-modern-heat-map",J:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=e;this.Y=this.BW("ytp-heat-map-svg");this.Z=this.BW("ytp-heat-map-path");this.L=this.BW("ytp-heat-map-graph");this.D=this.BW("ytp-heat-map-play");this.S=this.BW("ytp-heat-map-hover");this.B=this.BW("ytp-modern-heat-map");this.Fw=!1;this.T=60;e=""+g.oZ(this);this.update({id:e});e="url(#"+e+")";this.L.setAttribute("clip-path",e);this.D.setAttribute("clip-path",e);this.S.setAttribute("clip-path",e)}; a2N=function(e,a){a>0&&(e.T=a,e.Y.style.height=e.T+"px")}; Fx=function(){g.v.call(this,{K:"div",U:"ytp-chapter-hover-container",V:[{K:"div",U:"ytp-progress-bar-padding"},{K:"div",U:"ytp-progress-list",V:[{K:"div",WW:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",U:"ytp-progress-linear-live-buffer"},{K:"div",U:"ytp-load-progress"},{K:"div",U:"ytp-hover-progress"},{K:"div",U:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.T=this.BW("ytp-progress-list");this.Z=this.BW("ytp-progress-linear-live-buffer"); this.L=this.BW("ytp-ad-progress-list");this.D=this.BW("ytp-load-progress");this.Y=this.BW("ytp-play-progress");this.B=this.BW("ytp-hover-progress");this.S=this.BW("ytp-chapter-hover-container")}; Mw=function(e,a){g.vo(e.S,"width",a)}; ryT=function(e,a){g.vo(e.S,"margin-right",a+"px")}; P1q=function(){this.T=this.position=this.B=this.S=this.L=this.width=NaN}; B$q=function(){g.v.call(this,{K:"div",U:"ytp-timed-marker"});this.S=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.uu=function(e,a){g.cs.call(this,{K:"div",U:"ytp-progress-bar-container",J:{"aria-disabled":"true"},V:[{K:"div",WW:["ytp-heat-map-container"],V:[{K:"div",U:"ytp-heat-map-edu"}]},{K:"div",WW:["ytp-progress-bar"],J:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{K:"div",U:"ytp-chapters-container"},{K:"div",U:"ytp-timed-markers-container"},{K:"div",U:"ytp-clip-start-exclude"}, {K:"div",U:"ytp-clip-end-exclude"},{K:"div",U:"ytp-scrubber-container",V:[{K:"div",WW:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{K:"div",U:"ytp-scrubber-pull-indicator"},{K:"img",WW:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",WW:["ytp-fine-scrubbing-container"],V:[{K:"div",U:"ytp-fine-scrubbing-edu"}]},{K:"div",U:"ytp-bound-time-left",S1:"{{boundTimeLeft}}"},{K:"div",U:"ytp-bound-time-right",S1:"{{boundTimeRight}}"},{K:"div",U:"ytp-clip-start",J:{title:"{{clipstarttitle}}"},S1:"{{clipstarticon}}"}, {K:"div",U:"ytp-clip-end",J:{title:"{{clipendtitle}}"},S1:"{{clipendicon}}"}]});this.api=e;this.ZZ=!1;this.h1=this.L5=this.PW=this.Z=this.gT=0;this.FI=null;this.mJ=!1;this.Uo={};this.J9={};this.clipEnd=Infinity;this.h9=this.BW("ytp-clip-end");this.kh=new g.qp(this.h9,!0);this.Ge=this.BW("ytp-clip-end-exclude");this.RO=this.BW("ytp-clip-start-exclude");this.clipStart=0;this.dW=this.BW("ytp-clip-start");this.QH=new g.qp(this.dW,!0);this.HW=this.bv=0;this.progressBar=this.BW("ytp-progress-bar");this.ID= {};this.GQ={};this.k$=this.BW("ytp-chapters-container");this.n5=this.BW("ytp-timed-markers-container");this.S=[];this.D=[];this.A1={};this.Tu=null;this.Lf=-1;this.T$=this.Cf=0;this.RL=this.Y=null;this.sx=this.BW("ytp-scrubber-button");this.TQ=this.BW("ytp-decorated-scrubber-button");this.sQ=this.BW("ytp-scrubber-container");this.HA=new g.vR;this.AC=0;this.mf=new P1q;this.B=new $g(0,0);this.ZD=null;this.N=this.BV=!1;this.He=null;this.oH=this.BW("ytp-heat-map-container");this.py=this.BW("ytp-heat-map-edu"); this.L=[];this.heatMarkersDecorations=[];this.rP=this.BW("ytp-fine-scrubbing-container");this.Yf=this.BW("ytp-fine-scrubbing-edu");this.T=void 0;this.e1=this.Ky=this.XM=!1;this.tooltip=a.yH();this.addOnDisposeCallback(g.NY(this.tooltip,this.h9));g.x(this,this.kh);this.kh.subscribe("hoverstart",this.Vo,this);this.kh.subscribe("hoverend",this.kJ,this);this.j(this.h9,"click",this.hM);this.addOnDisposeCallback(g.NY(this.tooltip,this.dW));g.x(this,this.QH);this.QH.subscribe("hoverstart",this.Vo,this); this.QH.subscribe("hoverend",this.kJ,this);this.j(this.dW,"click",this.hM);huO(this);this.j(e,"resize",this.VX);this.j(e,"presentingplayerstatechange",this.dH);this.j(e,"videodatachange",this.zm);this.j(e,"videoplayerreset",this.P$);this.j(e,"cuerangesadded",this.rAQ);this.j(e,"cuerangesremoved",this.IwW);this.j(e,"onLoopRangeChange",this.Y_);this.j(e,"innertubeCommand",this.onClickCommand);this.j(e,"onRetroModeChanged",this.t5F);this.j(e,g.SS("timedMarkerCueRange"),this.gfW);this.j(e,"updatemarkervisibility", this.ow);this.j(e,"serverstitchedvideochange",this.NLf);this.updateVideoData(e.getVideoData(),!0);this.Y_(e.getLoopRange());jo(this)&&!this.T&&(this.T=new sLJ(this.api,this.tooltip),e=g.KO(this.element).x||0,this.T.VX(e,this.Z),this.T.Kf(this.rP),g.x(this,this.T),this.j(this.T.dismissButton,"click",this.KD),this.j(this.T.playButton,"click",this.wZ),this.j(this.T.element,"dblclick",this.wZ));this.api.createClientVe(this.oH,this,139609,!0);this.api.createClientVe(this.py,this,140127,!0);this.api.createClientVe(this.Yf, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; huO=function(e){if(e.S.length===0){var a=new Fx;e.S.push(a);g.x(e,a);a.Kf(e.k$,0)}for(;e.S.length>1;)e.S.pop().dispose();Mw(e.S[0],"100%");e.S[0].startTime=0;e.S[0].title=""}; cyI=function(e){var a=a===void 0?NaN:a;var r=new euN(e.api);e.L.push(r);g.x(e,r);r.Kf(e.oH);a>=0&&(r.element.style.width=a+"px")}; o5O=function(e){for(;e.D.length;)e.D.pop().dispose()}; yyq=function(e){var a,r,P,B,h;return(h=g.H((B=g.H((a=e.getWatchNextResponse())==null?void 0:(r=a.playerOverlays)==null?void 0:(P=r.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,Mg))==null?void 0:B.playerBar,n53))==null?void 0:h.chapters}; T$J=function(e){for(var a=e.S,r=[],P=0;P=c&&O<=f&&h.push(U)}T>0&&(e.oH.style.height=T+"px");c=e.L[P];f=h;U=B;G=T;O=P===0;O=O===void 0?!1:O;a2N(c,G);A=f;C=c.T;O=O===void 0?!1:O;var d=1E3/A.length,W=[];W.push({x:0,y:100});for(var V=0;V0&&(r=h[h.length-1])}g.K1(e);y=[];a=g.Z(a.heatMarkersDecorations||[]);for(B=a.next();!B.done;B=a.next())if(B=g.H(B.value,E5L))T=B.label,P=r=X=void 0,y.push({visibleTimeRangeStartMillis:(X=B.visibleTimeRangeStartMillis)!=null?X:-1,visibleTimeRangeEndMillis:(r=B.visibleTimeRangeEndMillis)!=null?r:-1,decorationTimeMillis:(P=B.decorationTimeMillis)!=null?P:NaN,label:T?g.yd(T):""});e.heatMarkersDecorations=y}}; AyI=function(e,a){e.D.push(a);g.x(e,a);a.Kf(e.n5,e.n5.children.length)}; Umq=function(e,a){a=g.Z(a);for(var r=a.next();!r.done;r=a.next()){r=r.value;var P=eZ(e,r.timeRangeStartMillis/(e.B.S*1E3),aA(e)),B=e.api.X("delhi_modern_web_player")?.667:.6;g.vo(r.element,"transform","translateX("+P+"px) scaleX("+B+")")}}; XY4=function(e,a){var r=0,P=!1;a=g.Z(a);for(var B=a.next();!B.done;B=a.next()){B=B.value;if(g.H(B,td3)){B=g.H(B,td3);var h={startTime:NaN,title:null,onActiveCommand:void 0},c=B.title;h.title=c?g.yd(c):"";c=B.timeRangeStartMillis;c!=null&&(h.startTime=c);h.onActiveCommand=B.onActiveCommand;B=h;r===0&&B.startTime!==0&&(e.S[r].startTime=0,e.S[r].title="",e.S[r].onActiveCommand=B.onActiveCommand,r++,P=!0);e.S.length<=r&&(h=new Fx,e.S.push(h),g.x(e,h),h.Kf(e.k$,e.k$.children.length));e.S[r].startTime= B.startTime;e.S[r].title=B.title?B.title:"";e.S[r].onActiveCommand=B.onActiveCommand;e.S[r].index=P?r-1:r}r++}for(;r=0;P--)if(e.S[P].width>0){ryT(e.S[P],0);var B=Math.floor(e.S[P].width);e.S[P].width=B;Mw(e.S[P],B+"px");break}e.S[r].width=0;Mw(e.S[r],"0")}else r===e.S.length-1?(P=Math.floor(e.S[r].width+a),e.S[r].width=P,Mw(e.S[r],P+"px")):(a=e.S[r].width+a,P=Math.round(a),a-=P,e.S[r].width=P,Mw(e.S[r],P+"px"));r=0;if(e.L.length===e.S.length)for(a=0;a< e.L.length;a++)P=e.S[a].width,e.L[a].element.style.width=P+"px",e.L[a].element.style.left=r+"px",r+=P+PF(e);e.api.X("delhi_modern_web_player")&&(e.S.length===1?e.S[0].T.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(e.S[0].T.classList.remove("ytp-progress-bar-end"),e.S[0].T.classList.add("ytp-progress-bar-start"),e.S[e.S.length-1].T.classList.add("ytp-progress-bar-end")))}; g54=function(e,a){var r=0,P=!1,B=e.S.length,h=e.B.S*1E3;h===0&&(h=e.api.getProgressState().seekableEnd*1E3);if(h>0&&e.Z>0){for(var c=e.Z-PF(e)*e.Cf,y=e.T$===0?3:c*e.T$,T=g.Z(e.S),X=T.next();!X.done;X=T.next())X.value.width=0;for(;r1);X=(h===0?0:T/h*c)+e.S[r].width;if(X>y)e.S[r].width=X;else{e.S[r].width=0;var f=e,A=r,U=f.S[A-1];U!==void 0&&U.width>0? U.width+=X:Ae.T$&&(e.T$=T/h),P=!0)}r++}}return P}; rz=function(e){if(e.Z){var a=e.api.getProgressState(),r=e.api.getVideoData();if(!(r&&r.enableServerStitchedDai&&r.X7)||isFinite(a.current)){var P;if(((P=e.api.getVideoData())==null?0:EL(P))&&a.airingStart&&a.airingEnd)var B=BF(e,a.airingStart,a.airingEnd);else if(e.api.getPresentingPlayerType()===2){var h,c,y;B=(r=(B=e.api.getVideoData())==null?void 0:(h=B.getPlayerResponse())==null?void 0:(c=h.playerConfig)==null?void 0:(y=c.webPlayerConfig)==null?void 0:y.skippableAdProgressBarDuration)?BF(e,a.seekableStart, r/1E3):BF(e,a.seekableStart,a.seekableEnd)}else B=BF(e,a.seekableStart,a.seekableEnd);h=QW(B,a.loaded,0);a=QW(B,a.current,0);c=e.B.T!==B.T||e.B.S!==B.S;e.B=B;cF(e,a,h);c&&Zqj(e);Oqq(e)}}}; BF=function(e,a,r){return k_z(e)?new $g(Math.max(a,e.ZD.startTimeMs/1E3),Math.min(r,e.ZD.endTimeMs/1E3)):new $g(a,r)}; Jyj=function(e,a){var r,P,B;a=g.H((r=a.getWatchNextResponse())==null?void 0:(P=r.playerOverlays)==null?void 0:(B=P.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,Mg);if(a==null?0:a.progressColor)for(r=0;r1){r=oA(e,a.B,!0);for(var P=0,B=0;B0&&(P+=e.S[B].width,P+=PF(e));r=(e.S[r].startTime+(a.B-P)/e.S[r].width*((r===e.S.length-1?e.B.S*1E3:e.S[r+1].startTime)-e.S[r].startTime))/1E3||0}return r}; VdL=function(e,a){if(a<0)return"0";e=Math.floor(Math.min(a,e.api.getDuration())*1E3);return e>2147483647?"0":String(e)}; yl=function(e,a,r,P,B){a=VdL(e,a);r=VdL(e,r);e=e.progressBar.visualElement;P={seekData:{startMediaTimeMs:a,endMediaTimeMs:r,seekSource:P}};(a=g.bs())&&us(a,e,B,P)}; $ml=function(e,a,r){if(r>=e.S.length)return!1;var P=e.Z-PF(e)*e.Cf;return Math.abs(a-e.S[r].startTime/1E3)/e.B.S*P<4}; Zqj=function(e){e.sx.style.removeProperty("height");for(var a=g.Z(Object.keys(e.Uo)),r=a.next();!r.done;r=a.next())Q3l(e,r.value);T9(e);cF(e,e.HW,e.bv)}; aA=function(e){var a=e.HA.x;a=g.ID(a,0,e.Z);e.mf.update(a,e.Z);return e.mf}; fi=function(e){return(e.N?135:90)-Xq(e)}; Xq=function(e){var a=48,r=e.api.G();e.api.X("delhi_modern_web_player")?a=e.api.getPlayerSize().width<=528?64:e.N?96:72:e.N?a=54:g.uP(r)&&!r.T&&(a=40);return a}; cF=function(e,a,r){e.HW=a;e.bv=r;var P=aA(e),B=e.B.S,h=y7z(e.B,e.HW),c=g.PA("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.tx(h,!0),DURATION:g.tx(B,!0)}),y=Gb(e.S,h*1E3);y=e.S[y].title;e.update({ariamin:Math.floor(e.B.T),ariamax:Math.floor(B),arianow:Math.floor(h),arianowtext:y?y+" "+c:c});B=e.clipStart;h=e.clipEnd;e.ZD&&e.api.getPresentingPlayerType()!==2&&(B=e.ZD.startTimeMs/1E3,h=e.ZD.endTimeMs/1E3);B=QW(e.B,B,0);y=QW(e.B,h,1);c=e.api.getVideoData();h=g.ID(a,B,y);r=(c==null?0:g.UL(c))?1:g.ID(r, B,y);a=eZ(e,a,P);g.vo(e.sQ,"transform","translateX("+a+"px)");e.api.X("delhi_modern_web_player")&&e.api.X("delhi_modern_web_player_cutout")&&W84(e,a);Ab(e,P,B,h,"PLAY_PROGRESS");(c==null?0:EL(c))?(a=e.api.getProgressState().seekableEnd)&&Ab(e,P,h,QW(e.B,a),"LIVE_BUFFER"):Ab(e,P,B,r,"LOAD_PROGRESS");if(e.api.X("web_player_heat_map_played_bar")){var T;(T=e.L[0])!=null&&T.D.setAttribute("width",(h*100).toFixed(2)+"%")}}; W84=function(e,a){e.api.getPresentingPlayerType()!==1?e.k$.style.removeProperty("clip-path"):(a||(a=eZ(e,e.HW,aA(e))),e.k$.style.clipPath='path("'+(e.mJ?l23(e,8,a,e.N?50:36,0,6):l23(e,4,a,e.N?34:24,2,3))+'")')}; l23=function(e,a,r,P,B,h){var c=r-P/2;r+=P/2;a+=B;return"M 0 "+B+" L 0 "+(a+" L ")+(c+" "+a+" C ")+(c+h+" "+a+" "+(c+h)+" "+B+" "+c+" "+B+" L 0 ")+(B+" M ")+(r+" "+B+" L ")+(e.Z+" "+B+" L ")+(e.Z+" "+a+" L ")+(r+" "+a+" C ")+(r-h+" "+a+" "+(r-h)+" "+B+" "+r+" "+B)}; Ab=function(e,a,r,P,B){var h=e.S.length,c=a.S-e.Cf*PF(e),y=r*c;r=oA(e,y);var T=P*c;c=oA(e,T);B==="HOVER_PROGRESS"&&(c=oA(e,a.S*P,!0),T=a.S*P-L8N(e,a.S*P)*PF(e));P=Math.max(y-Y_4(e,r),0);for(y=r;y=e.S.length)return e.Z;for(var r=0,P=0;P0||e.Ge.clientWidth>0?(h=a.clientWidth/r,e=-1*e.RO.clientWidth/r):(h/=r,e=-1*e.S[B].element.offsetLeft/r),g.vo(a,"background-size",h+"px"),g.vo(a,"background-position-x",e+"px"))}; U8=function(e,a,r,P,B){B||e.api.G().T?a.style.width=r+"px":g.vo(a,"transform","scalex("+(P?r/P:0)+")")}; oA=function(e,a,r){var P=0;(r===void 0?0:r)&&(a-=L8N(e,a)*PF(e));r=g.Z(e.S);for(var B=r.next();!B.done;B=r.next()){B=B.value;if(a>B.width)a-=B.width;else break;P++}return P===e.S.length?P-1:P}; eZ=function(e,a,r){var P=a*e.B.S*1E3;for(var B=-1,h=g.Z(e.S),c=h.next();!c.done;c=h.next())c=c.value,P>c.startTime&&c.width>0&&B++;P=B<0?0:B;B=r.S-PF(e)*e.Cf;return a*B+PF(e)*P+r.L}; L8N=function(e,a){for(var r=e.S.length,P=0,B=g.Z(e.S),h=B.next();!h.done;h=B.next())if(h=h.value,h.width!==0)if(a>h.width)a-=h.width,a-=PF(e),P++;else break;return P===r?r-1:P}; g.iqL=function(e,a,r,P){var B=e.Z!==r,h=e.N!==P;e.gT=a;e.Z=r;e.N=P;jo(e)&&(a=e.T)!=null&&(a.scale=P?1.5:1);Zqj(e);e.S.length===1&&(e.S[0].width=r||0);B&&g.K1(e);e.T&&h&&jo(e)&&(e.T.isEnabled&&(r=e.N?135:90,P=r-Xq(e),e.rP.style.height=r+"px",g.vo(e.oH,"transform","translateY("+-P+"px)"),g.vo(e.progressBar,"transform","translateY("+-P+"px)")),jL3(e.T))}; T9=function(e){var a=!!e.ZD&&e.api.getPresentingPlayerType()!==2,r=e.clipStart,P=e.clipEnd,B=!0,h=!0;a&&e.ZD?(r=e.ZD.startTimeMs/1E3,P=e.ZD.endTimeMs/1E3):(B=r>e.B.T,h=e.B.S>0&&Pe.HW);g.cD(e.sx,"ytp-scrubber-button-hover",r===P&&e.S.length>1);if(e.api.X("web_player_heat_map_played_bar")){var h;(h=e.L[0])!=null&&h.S.setAttribute("width",(a.T*100).toFixed(2)+"%")}}}; Q3l=function(e,a){var r=e.Uo[a];a=e.J9[a];var P=aA(e),B=QW(e.B,r.start/1E3,0),h=O4T(r,e.N)/P.width;var c=QW(e.B,r.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(B=g.ID(B,0,c-h));c=Math.min(c,B+h);r.color&&(a.style.background=r.color);r=B;a.style.left=Math.max(r*P.S+P.L,0)+"px";U8(e,a,g.ID((c-r)*P.S+P.L,0,P.width),P.width,!0)}; zuq=function(e,a){var r=a.getId();e.Uo[r]===a&&(g.t5(e.J9[r]),delete e.Uo[r],delete e.J9[r])}; jo=function(e){var a=g.tZ(e.api.G())&&(e.api.X("web_shorts_pip")||e.api.X("web_watch_pip")),r;return!((r=e.api.getVideoData())==null?0:r.isLivePlayback)&&!e.api.isMinimized()&&!e.api.isInline()&&(!e.api.kL()||!a)}; Ci=function(e){e.T&&(e.T.disable(),e.PW=0,e.oH.style.removeProperty("transform"),e.progressBar.style.removeProperty("transform"),e.rP.style.removeProperty("height"),e.element.parentElement&&e.element.parentElement.style.removeProperty("height"))}; N$O=function(e,a){var r=a/fi(e)*Xq(e);g.vo(e.progressBar,"transform","translateY("+-a+"px)");g.vo(e.oH,"transform","translateY("+-a+"px)");g.vo(e.rP,"transform","translateY("+r+"px)");e.rP.style.height=a+r+"px";e.element.parentElement&&(e.element.parentElement.style.height=Xq(e)-r+"px")}; xmN=function(e,a){a?e.Y||(e.element.removeAttribute("aria-disabled"),e.Y=new g.qp(e.progressBar,!0),e.api.X("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&e.Y.subscribe("hoverstart",e.Ehd,e),e.Y.subscribe("hovermove",e.a5P,e),e.Y.subscribe("hoverend",e.K21,e),e.Y.subscribe("dragstart",e.I5$,e),e.Y.subscribe("dragmove",e.eu$,e),e.Y.subscribe("dragend",e.W2o,e),e.api&&e.api.X("delhi_modern_web_player")&&e.api.X("delhi_modern_web_player_cutout")&&(e.RL=new g.qp(e.progressBar, !0),e.RL.subscribe("hoverstart",function(){e.mJ=!0;W84(e)},e),e.RL.subscribe("hoverend",function(){e.mJ=!1; W84(e)},e)),e.He=e.listen("keydown",e.gU)):e.Y&&(e.element.setAttribute("aria-disabled","true"),e.Xo(e.He),e.Y.cancel(),e.Y.dispose(),e.Y=null)}; PF=function(e){return e.api.X("delhi_modern_web_player")?4:e.N?3:2}; k_z=function(e){var a;return!((a=e.ZD)==null||!a.postId)&&e.api.getPresentingPlayerType()!==2}; G9=function(e,a){g.v.call(this,{K:"button",WW:["ytp-remote-button","ytp-button"],J:{title:e.X("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},S1:"{{icon}}"});this.W=e;this.OM=a;this.S=null;this.j(e,"onMdxReceiversChange",this.zQ);this.j(e,"presentingplayerstatechange",this.zQ);this.j(e,"appresize",this.zQ);e.createClientVe(this.element,this,139118);this.zQ();this.listen("click",this.T,this);xd(e,this.element,this)}; E8=function(e,a){g.v.call(this,{K:"button",WW:["ytp-button","ytp-settings-button"],J:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":rQ(),title:e.X("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.kT()]});this.W=e;this.OM=a;this.T=!0;this.listen("click",this.B);this.j(e,"onPlaybackQualityChange",this.updateBadge);this.j(e,"videodatachange",this.updateBadge);this.j(e,"webglsettingschanged",this.updateBadge);this.j(e,"appresize",this.S);xd(e,this.element,this);this.W.createClientVe(this.element,this,28663);this.updateBadge();this.S(e.MF().getPlayerSize())}; I2I=function(e,a){e.T=!!a;e.S(e.W.MF().getPlayerSize())}; bc=function(e,a){Zk.call(this,"Annotations",g.$e.Uk);this.W=e;this.OM=a;this.S=!1;e.X("web_settings_menu_icons")&&(a=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(a));this.j(e,"videodatachange",this.zQ);this.j(e,"onApiChange",this.zQ);this.subscribe("select",this.onSelect,this);this.zQ()}; tb=function(e,a){g.x7.call(this,"Audio track",g.$e.AUDIO,e,a);this.W=e;this.tracks={};g.rr(this.element,"ytp-audio-menu-item");this.countLabel=new g.v({K:"div",V:[{K:"span",S1:"Audio track"},{K:"span",U:"ytp-menuitem-label-count",S1:"{{content}}"}]});e.X("web_settings_menu_icons")&&(a=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"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"}}]}:dlI(),this.setIcon(a));g.x(this,this.countLabel);g.oS(this,this.countLabel);this.j(e,"videodatachange",this.zQ);this.j(e,"onPlaybackAudioChange",this.zQ);this.zQ()}; gz=function(e,a){Zk.call(this,"Auto-play",g.$e.xO);this.W=e;this.OM=a;this.S=!1;this.B=[];this.j(e,"presentingplayerstatechange",this.T);this.subscribe("select",this.onSelect,this);e.createClientVe(this.element,this,113682);this.T()}; Hq4=function(e,a){g.nw.call(this,g.yi({"aria-haspopup":"false"}),0,"More options");this.W=e;this.OM=a;this.j(this.element,"click",this.onClick);this.OM.D5(this)}; q_N=function(e,a){var r;g.tZ(e.G())&&(r={K:"div",U:"ytp-panel-footer-content",V:[{K:"span",S1:"Adjust download quality from your "},{K:"a",U:"ytp-panel-footer-content-link",S1:"Settings",J:{href:"/account_downloads"}}]});g.x7.call(this,"Quality",g.$e.mP,e,a,void 0,void 0,r);this.W=e;this.TQ={};this.Y={};this.L={};this.Eo=new Set;this.S=this.Z=!1;this.D="unknown";this.HW="";this.oH=new g.xM;g.x(this,this.oH);this.Z=this.W.X("web_player_use_new_api_for_quality_pullback");this.S=this.W.X("web_player_enable_premium_hbr_playback_cap"); e.X("web_settings_menu_icons")&&(a=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(a));g.rr(this.T.element,"ytp-quality-menu");this.j(e,"videodatachange",this.P1);this.j(e,"videoplayerreset",this.P1);this.j(e,"onPlaybackQualityChange",this.JW);this.P1();e.createClientVe(this.element,this,137721)}; RuL=function(e,a,r){var P=e.TQ[a],B=g.wE[a];return v5j(e,P?P.qualityLabel:B?B+"p":"Auto",a,r)}; S_I=function(e,a,r,P,B){var h=(a=e.S?e.L[a]:e.Y[a])&&a.quality,c=a&&a.qualityLabel;c=c?c:"Auto";P&&(c="("+c);e=v5j(e,c,h||"",B);P&&e.V.push(")");(P=(P=a&&a.paygatedQualityDetails)&&P.paygatedIndicatorText)&&r&&e.V.push({K:"div",U:"ytp-premium-label",S1:P});return e}; v5j=function(e,a,r,P){a={K:"span",WW:P,V:[a]};var B;P="ytp-swatch-color";if(e.Z||e.S)P="ytp-swatch-color-white";r==="highres"?B="8K":r==="hd2880"?B="5K":r==="hd2160"?B="4K":r.indexOf("hd")===0&&r!=="hd720"&&(B="HD");B&&(a.V.push(" "),a.V.push({K:"sup",U:P,S1:B}));return a}; Zi=function(e){IW.call(this,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],.05,e.getPlaybackRate(),{K:"div",U:"ytp-speedslider-indicator-container",V:[{K:"div",U:"ytp-speedslider-badge"},{K:"p",U:"ytp-speedslider-text"}]});this.W=e;this.HW=pO(this.TQ,50,this);g.rr(this.T,"ytp-speedslider");this.N=this.BW("ytp-speedslider-text");this.oH=this.BW("ytp-speedslider-badge");s3L(this);this.j(this.T,"change",this.Eo)}; s3L=function(e){e.N.textContent=e.S.toFixed(2)+"x";var a=e.S>2&&e.W.X("enable_web_premium_varispeed");e.oH.classList.toggle("ytp-speedslider-premium-badge",a);e.oH.setAttribute("aria-label",a?"Premium":"")}; O8=function(e,a,r,P,B,h,c){g.v.call(this,{K:"div",U:"ytp-slider-section",J:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{K:"div",U:"ytp-slider",V:[{K:"div",U:"ytp-slider-handle"}]}]});this.Y=e;this.N=a;this.T=r;this.B=P;this.HW=B;this.Lf=h;this.range=this.B-this.T;this.Cf=this.BW("ytp-slider-section");this.L=this.BW("ytp-slider");this.oH=this.BW("ytp-slider-handle");this.D=new g.qp(this.L, !0);this.S=c?c:r;g.x(this,this.D);this.D.subscribe("dragmove",this.LK,this);this.j(this.element,"keydown",this.Ib);this.j(this.element,"wheel",this.Or);this.init()}; kw=function(e){O8.call(this,.05,.05,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],150,20,e.getPlaybackRate());this.W=e;this.Z=g.U9("P");this.Eo=pO(this.TQ,50,this);g.rr(this.L,"ytp-speedslider");g.rr(this.Z,"ytp-speedslider-text");e=this.Z;var a=this.L;a.parentNode&&a.parentNode.insertBefore(e,a.nextSibling);mmL(this);this.j(this.W,"onPlaybackRateChange",this.updateValues)}; mmL=function(e){e.Z.textContent=F8L(e,e.S)+"x"}; F8L=function(e,a){e=Number(g.ID(a,e.T,e.B).toFixed(2));a=Math.floor((e+.001)*100%5+2E-15);var r=e;a!==0&&(r=e-a*.01);return Number(r.toFixed(2))}; Md3=function(e){g.cs.call(this,{K:"div",U:"ytp-speedslider-component"});e.X("web_settings_use_input_slider")?this.S=new Zi(e):this.S=new kw(e);g.x(this,this.S);this.element.appendChild(this.S.element)}; j34=function(e){var a=new Md3(e);$7.call(this,e,a,"Custom");g.x(this,a)}; K8O=function(e,a){var r=new j34(e);g.x7.call(this,"Playback speed",g.$e.Pz,e,a,dz(e)?void 0:"Custom",dz(e)?void 0:function(){g.Lc(a,r)}); var P=this;this.L=!1;g.x(this,r);this.Y=new Zi(e);g.x(this,this.Y);if(e.X("web_settings_menu_icons")){var B=e.X("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(B)}this.W=e;this.L=!1;this.oH=null;dz(e)?(this.S=g.PA("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.W.getPlaybackRate().toString()}),this.D=this.W.getPlaybackRate()):this.D=this.S=null;uYq(e)?this.Z=Jb(4):this.Z=null;this.HW=this.W.getAvailablePlaybackRates();this.j(e,"presentingplayerstatechange",this.zQ);var h;((h=this.W.getVideoData())==null?0:h.w1())&&this.j(e,"serverstitchedvideochange",this.zQ);this.j(this.Y.T,"change",function(){P.L=!0;P.zQ()}); this.zQ()}; es3=function(e,a){var r=Jb(a);e.S&&(e.L||a===e.D)?(e.Nq(e.S),e.vO(a.toString())):e.Nq(r)}; r$q=function(e){var a=e.HW.map(Jb);e.Z&&a.push(e.Z);e.Is(a);e.S=null;e.D=null;a=e.W.getPlaybackRate();dz(e.W)&&aAO(e,a);!e.HW.includes(a)||e.L?e.Nq(e.S):e.Nq(Jb(a))}; aAO=function(e,a){e.D=a;e.S=g.PA("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:a.toString()});a=e.HW.map(Jb);a.unshift(e.S);e.Z&&a.push(e.Z);e.Is(a)}; PmL=function(e,a,r,P){r=new g.nw({K:"div",WW:["ytp-menuitem"],J:{tabindex:"0",role:"menuitemradio","aria-checked":P?"true":"false"},V:[{K:"div",WW:["ytp-menuitem-label"],V:[{K:"div",WW:["ytp-menuitem-container-with-badge"],V:[{K:"div",S1:"{{label}}"},{K:"div",WW:["ytp-menuitem-premium-badge"]}]}]}]},r,e.Sv(a));r.listen("click",function(){e.RT(a)}); return r}; Jb=function(e){return e.toString()}; dz=function(e){return e.X("web_settings_menu_surface_custom_playback")}; uYq=function(e){return e.X("enable_web_premium_varispeed_upsell")&&e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1]<=2}; BD3=function(e){return e.X("web_settings_menu_surface_custom_playback")&&e.X("web_settings_use_input_slider")}; c$L=function(e,a,r,P){var B=new g.QK(a,void 0,"Video Override");g.x7.call(this,P.text||"",e,a,r,"Video Override",function(){g.Lc(r,B)}); var h=this;g.rr(this.element,"ytp-subtitles-options-menu-item");this.setting=P.option.toString();e=P.options;this.settings=g.MM(e,this.Gd,this);this.Z=B;g.x(this,this.Z);a=new g.nw({K:"div",U:"ytp-menuitemtitle",S1:"Allow for a different caption style if specified by the video."},0);g.x(this,a);this.Z.D5(a,!0);this.L=new g.nw({K:"div",U:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},V:[{K:"div",U:"ytp-menuitem-label",S1:"On"}]},-1);g.x(this,this.L);this.Z.D5(this.L,!0);this.j(this.L.element, "click",function(){hsO(h,!0)}); this.S=new g.nw({K:"div",U:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},V:[{K:"div",U:"ytp-menuitem-label",S1:"Off"}]},-2);g.x(this,this.S);this.Z.D5(this.S,!0);this.j(this.S.element,"click",function(){hsO(h,!1)}); this.Is(g.ba(e,this.Gd))}; hsO=function(e,a){e.publish("settingChange",e.setting+"Override",!a);e.OM.Ho()}; Di=function(e,a){g.QK.call(this,e,void 0,"Options");var r=this;this.pQ={};for(var P=0;P=0);if(!(a<0||a===e.L)){e.L=a;a=243*e.scale;var r=141*e.scale,P=uJ4(e.T,e.L,a);klJ(e.bg,P,a,r,!0);e.oH.start()}}; wXy=function(e){var a=e.S;e.type===3&&e.TQ.stop();e.api.removeEventListener("appresize",e.HW);e.Y||(e.env.X("player_tooltip_data_title_killswitch")?a.setAttribute("title",e.B):a.setAttribute("data-tooltip-title",e.B));e.B="";e.S=null;e.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});e.wrapper.style.width=""}; ibL=function(e){g.v.call(this,{K:"button",WW:["ytp-watch-later-button","ytp-button"],J:{title:e.X("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.uP(e.G()))},V:[{K:"div",U:"ytp-watch-later-icon",S1:"{{icon}}"},{K:"div",U:"ytp-watch-later-title",S1:"Watch Later"}]});this.W=e;this.icon=null;this.visible=this.isRequestPending=this.S=!1;$54(e);e.createClientVe(this.element,this,28665);this.listen("click", this.onClick,this);this.j(e,"videoplayerreset",this.onReset);this.j(e,"appresize",this.Zd);this.j(e,"videodatachange",this.Zd);this.j(e,"presentingplayerstatechange",this.Zd);this.Zd();e=this.W.G();var a=g.$f("yt-player-watch-later-pending");e.L&&a?(Kml(),pX4(this)):this.zQ(2);g.cD(this.element,"ytp-show-watch-later-title",g.uP(e));xd(this.W,this.element,this)}; zsl=function(e){var a=e.W.getPlayerSize(),r=e.W.G(),P=e.W.getVideoData(),B=g.uP(r)&&g.Sn(e.W)&&g.S(e.W.getPlayerStateObject(),128),h=r.B;return r.FI&&a.width>=240&&!P.isAd()&&P.FI&&!B&&!P.nB&&!e.W.isEmbedsShortsMode()&&!h}; NDj=function(e,a){zvN(g.UA(e.W.G()),"wl_button",function(){Kml({videoId:a});window.location.reload()})}; pX4=function(e){if(!e.isRequestPending){e.isRequestPending=!0;e.zQ(3);var a=e.W.getVideoData();a=e.S?a.removeFromWatchLaterCommand:a.addToWatchLaterCommand;var r=e.W.jM(),P=e.S?function(){e.S=!1;e.isRequestPending=!1;e.zQ(2);e.W.G().Y&&e.W.qF("WATCH_LATER_VIDEO_REMOVED")}:function(){e.S=!0; e.isRequestPending=!1;e.zQ(1);e.W.G().T&&e.W.oP(e.element);e.W.G().Y&&e.W.qF("WATCH_LATER_VIDEO_ADDED")}; lI(r,a).then(P,function(){e.isRequestPending=!1;e.zQ(4,"An error has occurred. Please try again later.");e.W.G().Y&&e.W.qF("WATCH_LATER_ERROR","An error has occurred. Please try again later.")})}}; xFq=function(e,a){if(a!==e.icon){switch(a){case 3:var r=Dk();break;case 1:r=XB();break;case 2:r={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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:r={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path", Rz:!0,J:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}e.updateValue("icon",r);e.icon=a}}; IA4=function(){g.Kk.apply(this,arguments);this.mu=(this.zp=g.uP(this.api.G()))&&(this.api.G().T||Fw()||sP());this.w5=48;this.CJ=69;this.PC=this.U2=null;this.BT=[];this.C1=this.C5=this.Xb=this.Li=this.fB=null;this.l0=[];this.contextMenu=this.Gl=this.overflowButton=this.eM=this.VP=this.searchButton=this.copyLinkButton=this.shareButton=this.Wj=this.zl=this.title=this.channelAvatar=this.hF=this.tooltip=null;this.pJ=!1;this.gi=this.VM=this.Sl=this.pj=null;this.QOW=this.jI=this.xm=!1}; Hbj=function(e){var a=e.api.G(),r=g.S(e.api.getPlayerStateObject(),128);return a.L&&r&&!e.api.isFullscreen()}; qBz=function(e){if(e.tA()&&!e.api.isEmbedsShortsMode()&&e.eM){var a=e.api.X("web_player_hide_overflow_button_if_empty_menu");!e.Wj||a&&!zsl(e.Wj)||xHy(e.eM,e.Wj);!e.shareButton||a&&!PUz(e.shareButton)||xHy(e.eM,e.shareButton);!e.copyLinkButton||a&&!e1T(e.copyLinkButton)||xHy(e.eM,e.copyLinkButton)}else{a=e.api.G().getWebPlayerContextConfig();if(e.eM){for(var r=e.eM,P=g.Z(r.actionButtons),B=P.next();!B.done;B=P.next())B.value.detach();r.actionButtons=[]}e.searchButton&&!g.gy(e.zl.element,e.searchButton.element)&& e.searchButton.Kf(e.zl.element);!e.Wj||(a==null?0:a.hideTopWatchNextButton)||g.gy(e.zl.element,e.Wj.element)||e.Wj.Kf(e.zl.element);!e.shareButton||(a==null?0:a.hideTopShareButton)||g.gy(e.zl.element,e.shareButton.element)||e.shareButton.Kf(e.zl.element);e.copyLinkButton&&!g.gy(e.zl.element,e.copyLinkButton.element)&&e.copyLinkButton.Kf(e.zl.element)}}; vvz=function(e,a,r){a=r?a.lastElementChild:a.firstElementChild;for(var P=null;a;){if(s9(a,"display")!=="none"&&a.getAttribute("aria-hidden")!=="true"){var B=void 0;a.tabIndex>=0?B=a:B=vvz(e,a,r);B&&(P?r?B.tabIndex>P.tabIndex&&(P=B):B.tabIndexP/1E3+1)return{msg:"in-the-past"};if(h.isLivePlayback&&!isFinite(P))return{msg:"live-infinite"};(P=a.rg())&&P.isView()&&(P=P.mediaElement);if(P&&P.CD().length>12&&g.HE(B))return{msg:"played-ranges"};if(!B.B)return null;if(!c)return{msg:"no-pvd-formats"};if(!B.B.S||!c.S)return{msg:"non-dash"};P=c.videoInfos[0];var y=B.B.videoInfos[0];e.HW&&J3(h)&&(P=a.AL(), y=r.AL());if(!P||!y)return{msg:"no-video-info"};if(e.Z&&(vH(P)||vH(y)))return{msg:"av1"};a=e.L&&h.z0()&&UD();if(y.containerType!==P.containerType)if(a)h.nf("sgap",{ierr:"container"});else return{msg:"container"};if(e.C&&!a&&(y.vW!==P.vW||y.vW===""||P.vW===""))return{msg:"codec"};if(e.D&&y.video&&P.video&&Math.abs(y.video.width/y.video.height-P.video.width/P.video.height)>.01)return{msg:"ratio"};if(g.HE(h)&&g.HE(B))return{msg:"content-protection"};c=c.S[0];B=B.B.S[0];r=c.audio;var T=B.audio;if(r.sampleRate!== T.sampleRate&&!g.Ed)if(a)h.nf("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:c.itag,cr:r.sampleRate,ni:B.itag,nr:T.sampleRate};return(r.numChannels||2)!==(T.numChannels||2)?{msg:"channel-count"}:e.Y&&h.z0()&&P.video.fps!==y.video.fps?{msg:"fps"}:null}; mF4=function(e,a,r){var P=e.getVideoData(),B=a.getVideoData();if(!P.G().supportsGaplessShorts())return{nq:"env"};if((!r.N||P.o4&&!P.isAd()||B.o4&&!B.isAd())&&(!r.T||P.o4&&!P.isAd()||B.o4)&&(!r.B||B.o4&&!B.isAd()||P.o4)&&(P.o4||B.o4))return{nq:"autoplay"};if(P.endSeconds>0)return{nq:"endcr"};if(!P.D)return{nq:"client"};if(!e.O2())return{nq:"no-empty"};e=sC4(r,e,a,Infinity);return e!=null?{nq:e.msg}:null}; vF=function(e){g.N.call(this);this.app=e;this.C=this.L=this.T=this.S=null;this.B=1;this.events=new g.Zc(this);this.events.j(this.app.j1,g.sh("gaplessshortslooprange"),this.Y);g.x(this,this.events)}; FLL=function(){this.S=this.D=this.B=this.T=this.N=this.Z=this.HW=this.Y=this.C=this.L=!1}; Mxj=function(e){var a=new FLL;a.L=e.X("h5_gapless_support_types_diff");a.Y=e.X("h5_gapless_error_on_fps_diff");a.HW=e.X("html5_gapless_use_format_info_fix");a.Z=e.X("html5_gapless_disable_on_av1")&&!e.X("html5_gapless_enable_on_av1");a.C=e.X("html5_gapless_check_codec_diff_strictly");a.N=e.X("html5_gapless_on_ad_autoplay");a.D=e.X("html5_gapless_disable_diff_aspect_radio");a.T=e.X("html5_gapless_ad_autoplay_on_ad_to_video_only");a.S=e.X("html5_pseudogapless_shorts_seek_to_next_start");a.B=e.X("html5_gapless_ad_autoplay_on_video_to_ad_only"); return a}; g.RA=function(e,a,r,P){P=P===void 0?!1:P;dx.call(this);this.mediaElement=e;this.start=a;this.end=r;this.S=P}; jC4=function(e,a,r,P,B,h){h=h===void 0?0:h;g.N.call(this);var c=this;this.policy=e;this.S=a;this.T=r;this.hC=B;this.C=h;this.L=this.B=null;this.currentVideoDuration=this.Z=-1;this.D=!1;this.mM=new kF;this.iy=P-a.t9()*1E3;this.mM.then(void 0,function(){}); this.timeout=new g.vP(function(){c.SX("timeout")},1E4); g.x(this,this.timeout);this.Y=isFinite(P)||this.hC.G().experiments.FM("html5_pseudogapless_shorts")&&J3(a.getVideoData());this.status={status:0,error:null}}; KLI=function(e){var a,r,P,B,h,c,y,T,X;return g.Y(function(f){if(f.T==1){if(e.wP())return f.return(Promise.reject(Error(e.status.error||"disposed")));e.timeout.start();return g.l(f,e.mM,2)}a=e.S.rg();if(a.isEnded())return e.SX("ended_in_finishTransition"),f.return(Promise.reject(Error(e.status.error||"")));if(!e.L||!ED(e.L))return e.SX("next_mse_closed"),f.return(Promise.reject(Error(e.status.error||"")));if(e.T.lx()!==e.L)return e.SX("next_mse_mismatch"),f.return(Promise.reject(Error(e.status.error|| "")));r=SZ(e);P=r.w3;B=r.mD;h=r.xJ;e.S.l$(!1,!0);c=uGJ(a,P,h,!e.T.getVideoData().isAd());e.T.setMediaElement(c);(y=e.S.Q7())&&e.T.Ac(y.RY,y.bd);e.Y&&(e.policy.S||e.T.seekTo(e.T.getCurrentTime()+.001,{c_:!0,ZA:3,ze:"gapless_pseudo"}),c.play(),VU());T=a.vA();T.cpn=e.S.getVideoData().clientPlaybackNonce;T.st=""+P;T.et=""+h;e.T.nf("gapless",T);e.S.nf("gaplessTo",{cpn:e.T.getVideoData().clientPlaybackNonce});X=e.S.getPlayerType()===e.T.getPlayerType();e.S.Wg(B,!0,!1,X,e.T.getVideoData().clientPlaybackNonce); e.T.Wg(e.T.getCurrentTime(),!0,!0,X,e.S.getVideoData().clientPlaybackNonce);e.T.MZ();g.kP(function(){!e.T.getVideoData().oH&&e.T.getPlayerState().isOrWillBePlaying()&&e.T.mw()}); s8(e,6);e.dispose();return f.return(Promise.resolve())})}; PM3=function(e){if(e.T.getVideoData().B){var a=e.hC.G().X("html5_gapless_suspend_next_loader")&&e.C===1;e.T.UF(e.L,a,eiL(e));s8(e,3);arq(e);var r=r8L(e);a=r.qP;r=r.Fy;a.subscribe("updateend",e.mN,e);r.subscribe("updateend",e.mN,e);e.mN(a);e.mN(r)}}; arq=function(e){e.S.unsubscribe("internalvideodatachange",e.ly,e);e.T.unsubscribe("internalvideodatachange",e.ly,e);e.hC.G().X("html5_gapless_use_format_info_fix")&&(e.S.unsubscribe("internalvideoformatchange",e.ly,e),e.T.unsubscribe("internalvideoformatchange",e.ly,e));e.S.unsubscribe("mediasourceattached",e.ly,e);e.T.unsubscribe("statechange",e.I7,e)}; uGJ=function(e,a,r,P){e=e.isView()?e.mediaElement:e;return new g.RA(e,a,r,P)}; s8=function(e,a){a<=e.status.status||(e.status={status:a,error:null},a===5&&e.mM.resolve())}; eiL=function(e){return e.hC.G().X("html5_gapless_no_clear_buffer_timeline")&&e.C===1&&QZ(e.S.getVideoData())}; SZ=function(e){var a=e.S.rg();a=a.isView()?a.start:0;var r=e.S.getVideoData().isLivePlayback?Infinity:e.S.XJ(!0);r=Math.min(e.iy/1E3,r)+a;var P=e.Y?100:0;e=r-e.T.XI()+P;return{h$:a,w3:e,mD:r,xJ:Infinity}}; r8L=function(e){return{qP:e.B.S.pB,Fy:e.B.T.pB}}; m$=function(e){g.N.call(this);var a=this;this.app=e;this.Z=this.T=this.S=null;this.Y=!1;this.B=this.L=null;this.C=Mxj(this.app.G());this.D=function(){g.kP(function(){BBL(a)})}}; hi4=function(e,a,r,P,B){P=P===void 0?0:P;B=B===void 0?0:B;e.O2()||Fq(e);e.L=new kF;e.S=a;var h=r,c=B===0;c=c===void 0?!0:c;var y=e.app.Y$(),T=y.getVideoData().isLivePlayback?Infinity:y.XJ(!0)*1E3;h>T&&(h=T-200,e.Y=!0);c&&y.getCurrentTime()>=h/1E3?e.D():(e.T=y,c&&(c=h,h=e.T,e.app.j1.addEventListener(g.SS("vqueued"),e.D),c=isFinite(c)||c/1E3>h.getDuration()?c:0x8000000000000,e.Z=new g.v_(c,0x8000000000000,{namespace:"vqueued"}),h.addCueRange(e.Z)));c=P/=1E3;h=a.getVideoData().S;P&&h&&e.T&&(y=P,T=0, a.getVideoData().isLivePlayback&&(c=Math.min(r/1E3,e.T.XJ(!0)),T=Math.max(0,c-e.T.getCurrentTime()),y=Math.min(P,a.XJ()+T)),c=YDI(h,y)||P,c!==P&&e.S.nf("qvaln",{st:P,at:c,rm:T,ct:y}));a=c;P=e.S;P.getVideoData().gT=!0;P.getVideoData().D=!0;P.U3(!0);h={};e.T&&(h=e.T.Dm(),c=e.T.getVideoData().clientPlaybackNonce,h={crt:(h*1E3).toFixed(),cpn:c});P.nf("queued",h);a!==0&&P.seekTo(a+.01,{c_:!0,ZA:3,ze:"videoqueuer_queued"});e.B=new jC4(e.C,e.app.Y$(),e.S,r,e.app,B);r=e.B;r.status.status!==Infinity&&(s8(r, 1),r.S.subscribe("internalvideodatachange",r.ly,r),r.T.subscribe("internalvideodatachange",r.ly,r),r.hC.G().X("html5_gapless_use_format_info_fix")&&(r.S.subscribe("internalvideoformatchange",r.ly,r),r.T.subscribe("internalvideoformatchange",r.ly,r)),r.S.subscribe("mediasourceattached",r.ly,r),r.T.subscribe("statechange",r.I7,r),r.S.subscribe("newelementrequired",r.nu,r),r.ly());return e.L}; BBL=function(e){var a,r,P,B,h,c,y;g.Y(function(T){switch(T.T){case 1:if(e.wP()||!e.L||!e.S)return T.return();e.Y&&e.app.Y$().s1(!0,!1);a=null;if(!e.B){T.Oo(2);break}g.kN(T,3);return g.l(T,KLI(e.B),5);case 5:g.Dl(T,2);break;case 3:a=r=g.Q3(T);case 2:if(!e.S)return T.return();c8j.HH("vqsp",function(){e.app.lk(e.S)}); if(!e.S)return T.return();P=e.S.rg();e.app.G().X("html5_gapless_seek_on_negative_time")&&P&&P.getCurrentTime()<-.01&&e.S.seekTo(0);c8j.HH("vqpv",function(){e.app.playVideo()}); a&&(e.S?(B=a?a.message:"forced",(h=e.T)==null||h.nf("gapfulfbk",{r:B}),e.S.KF(B)):(c=e.T)==null||c.nf("gapsp",{}));y=e.L;Fq(e);y&&y.resolve();return T.return(Promise.resolve())}})}; Fq=function(e,a){a=a===void 0?!1:a;if(e.T){if(e.Z){var r=e.T;e.app.j1.removeEventListener(g.SS("vqueued"),e.D);r.removeCueRange(e.Z)}e.T=null;e.Z=null}e.B&&(e.B.status.status!==6&&(r=e.B,r.status.status!==Infinity&&r.C!==1&&r.SX("Canceled")),e.B=null);e.L=null;e.S&&!a&&e.S!==e.app.RD()&&e.S!==e.app.Y$()&&e.S.dispose();e.S&&a&&e.S.CT();e.S=null;e.Y=!1}; ooq=function(e){var a;return((a=e.B)==null?void 0:a.currentVideoDuration)||-1}; no4=function(e,a,r){if(e.O2())return"qie";if(e.S==null||e.S.wP()||e.S.getVideoData()==null)return"qpd";if(a.videoId!==e.S.Y2())return"vinm";if(ooq(e)<=0)return"ivd";if(r!==1)return"upt";if((r=e.B)==null)e=void 0;else if(r.getStatus().status!==5)e="niss";else if(sC4(r.policy,r.S,r.T,r.iy)!=null)e="pge";else{a=r8L(r);e=a.qP;var P=a.Fy;a=g.eS(r.hC.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var B=r.Z+a;r.hC.G().experiments.FM("html5_pseudogapless_shorts")&&(B=SZ(r).w3+a);r=h0(P.HG(), B);e=h0(e.HG(),B);e=!(a>0)||r&&e?null:"neb"}return e!=null?e:null}; y8O=function(){g.aK.call(this);var e=this;this.fullscreen=0;this.L=this.B=this.pictureInPicture=this.S=this.T=this.inline=!1;this.C=function(){e.GG()}; X7j(this.C);this.Z=this.getVisibilityState(this.W7(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.kL(),this.g6(),this.e8(),this.zA())}; Un4=function(e){return!(e.isMinimized()||e.isInline()||e.isBackground()||e.kL()||e.g6()||e.e8()||e.zA())}; g.M3=function(e){g.N.call(this);this.iW=e;this.videoData=this.playerState=null}; Ki=function(e,a){g.N.call(this);var r=this;this.data=[];this.B=e||NaN;this.T=a||null;this.S=new g.vP(function(){jZ(r);uc(r)}); g.x(this,this.S)}; WPT=function(e){jZ(e);return e.data.map(function(a){return a.value})}; jZ=function(e){var a=(0,g.Ov)();e.data.forEach(function(r){r.expire0));e.UM()&& PL4();Error.stackTraceLimit=50;var B=g.eS(a,"html5_idle_rate_limit_ms");B&&Object.defineProperty(window,"requestIdleCallback",{value:function(h){return window.setTimeout(h,B)}}); aUy(e.C);zr4(r("html5_use_ump_request_slicer"));f9z(r("html5_record_now"));r("html5_disable_streaming_xhr")&&(GA=!1);r("html5_byterate_constraints")&&(Jo=!0);r("html5_use_non_active_broadcast_for_post_live")&&(A2=!0);r("html5_enable_encrypted_av1")&&(qW=!0);Fmj(g.eS(e.experiments,"html5_sticky_duration_mos"))}; GfL=function(e,a){return e.slice(a.length).replace(/_[a-z]/g,function(r){return r.toUpperCase().replace("_","")}).replace("Dot",".")}; Eoj=function(e){var a={},r=Object.keys(e.experiments.flags);r=g.Z(r);for(var P=r.next();!P.done;P=r.next())if(P=P.value,P.startsWith("cobalt_h5vcc"))if(P.startsWith("cobalt_h5vcc_string")){var B=GfL(P,"cobalt_h5vcc_string");P=Et(e.experiments,P);B&&P&&(a[B]=aaq(B,P))}else P.startsWith("cobalt_h5vcc")&&(B=GfL(P,"cobalt_h5vcc"),P=g.eS(e.experiments,P),B&&P&&(a[B]=aaq(B,P)));return a}; t4y=function(e,a,r,P){P=P===void 0?0:P;g.ra.call(this,r.Lt());var B=this;this.cO=e;this.videoData=a;this.duration=P;this.S=this.startTimeSecs=0;this.T=new bM4(function(h,c){return void B.nf(h,c)})}; bM4=function(e){this.nf=e;this.S={}}; go4=function(e,a,r){e.S[a]||(e.nf("huli-sdai-err",r),e.S[a]=!0)}; ZM3=function(e){this.end=this.start=e}; g.B0=function(){this.S=new Map;this.B=new Map;this.T=new Map}; OM3=function(e){var a=this;this.iW=e;this.S=[];this.B=new Map;this.L=new Map;this.T=new Map;this.Ob={TV:function(){return a.B}, fLd:function(){return a.L}}; this.C=this.iW.X("html5_huli_ssdai_deprecate_playback_timeline_id")}; dZl=function(e,a){g.ml(e.S,a,function(r,P){return r.Eb===P.Eb?r.durationMs-P.durationMs:r.Eb-P.Eb}); e.B.set(a.cpn,a);a.Cb&&!e.C&&e.L.set(a.Cb,a);a.ph&&kfO(e,a.ph,a)}; J83=function(e,a){for(var r=[],P=g.Z(e.S),B=P.next();!B.done;B=P.next())B=B.value,a(B)||r.push(B);if(e.iW.X("html5_sstm_fixes"))for(P=g.Z(e.S),B=P.next();!B.done;B=P.next())B=B.value,a(B)&&(e.B.delete(B.cpn),B.Cb&&e.L.delete(B.Cb));e.S=r}; DZT=function(e,a){a=g.HB(e.S,{g1:a},function(r,P){return r.g1-P.g1}); return a>=0?e.S[a]:null}; V4j=function(e,a){var r=e.S.indexOf(a);r>=0&&e.S.splice(r,1);e.B.delete(a.cpn);a.Cb&&e.L.delete(a.Cb)}; kfO=function(e,a,r){var P=e.T.get(a);P?(P.push(r),g.Sa(P,function(B,h){return B.Eb-h.Eb})):e.T.set(a,[r])}; g.hN=function(e,a,r,P){g.N.call(this);var B=this;this.api=e;this.iW=a;this.playback=r;this.app=P;this.oH=new g.B0;this.T=new Map;this.Lf=new Map;this.Eo=null;this.HA=NaN;this.PW=this.rP=null;this.k$=new g.vP(function(){$Zy(B,B.HA,B.rP||void 0)}); this.events=new g.Zc(this);this.Uo=15E3;this.D=new g.vP(function(){B.Y=!0;B.playback.jy(B.Uo);Qoy(B);if(B.playback.getVideoData().w1()){var h;B.gW({togab:(h=B.Z)==null?void 0:h.identifier})}B.mC(!1)},this.Uo); this.Y=!1;this.C=new Map;this.e1=[];this.Z=null;this.Te=new Set;this.N=[];this.GQ=[];this.h9=[];this.ID=[];this.Cf=new Set;this.w4=0;this.HW=!1;this.sM=new Set;this.J9=new Set;this.dW=new Set;this.ym=new Set;this.T$=this.bL=0;this.Wr=this.bv=!1;this.Mf=this.L="";this.TQ=null;this.logger=new g.bl("dai");this.Ob={Do$:function(){return B.T}, TV:function(){return B.S.Ob.TV()}, mzQ:function(){return B.L}, OTQ:function(h){B.onCueRangeEnter(B.T.get(h))}, WMW:function(h){B.onCueRangeExit(B.T.get(h))}, vEM:function(h,c){B.T.set(h,c)}, NoH:function(h){B.Mf=h}, KS:function(){return B.KS()}, zsQ:function(h){return B.S.T.get(h)}, cDo:function(){return B.TQ}, j5F:function(){return B.S.S}}; this.playback.getPlayerType();this.S=new OM3(this.iW);this.playback.n1(this);this.XM=this.iW.UM();g.x(this,this.k$);g.x(this,this.events);g.x(this,this.D);this.events.j(this.api,g.SS("serverstitchedcuerange"),this.onCueRangeEnter);this.events.j(this.api,g.sh("serverstitchedcuerange"),this.onCueRangeExit);P0(this.app.DW(),this.playback,!1)}; wqq=function(e,a,r,P,B,h,c,y){var T=WB3(e,h,h+B);e.Y&&e.gW({adaftto:1});r||e.gW({missadcon:1,enter:h,len:B,aid:y});e.B&&!e.B.ZG&&(e.B.ZG=y);e.Wr&&e.gW({adfbk:1,enter:h,len:B,aid:y});var X=e.playback;h>c&&c0(e,{reason:"enterTime_greater_than_return",Eb:h,g1:c});var f=X.N5()*1E3;hX&&c0(e,{reason:"parent_return_greater_than_content_duration",g1:c,zYz:X});(X=DZT(e.S,h))&&X.g1>h&&lrN(e,a.video_id||"", h,c,X);if(T&&X)for(f=0;f=0)for(var B=a*1E3,h=P;h<=P+1&&h=c.Eb-r*1E3&&B<=c.g1+r*1E3)return{KW:c,O1:a}}return{KW:void 0,O1:a}}; xZ3=function(e,a){var r="";(a=ziT(e,a))&&(r=a.getId());return r?e.S.sb({cpn:r}):void 0}; ziT=function(e,a){if(e.Mf){var r=e.T.get(e.Mf);if(r&&r.start-200<=a&&r.end+200>=a)return r}e=g.Z(e.T.values());for(r=e.next();!r.done;r=e.next())if(r=r.value,r.start<=a&&r.end>=a)return r}; $Zy=function(e,a,r){var P=e.PW||e.app.Y$().getPlayerState();yY(e,!0);e.playback.seekTo(a,r);e=e.app.Y$();a=e.getPlayerState();P.isOrWillBePlaying()&&!a.isOrWillBePlaying()?e.playVideo():P.isPaused()&&!a.isPaused()&&e.pauseVideo()}; yY=function(e,a){e.HA=NaN;e.rP=null;e.k$.stop();e.Eo&&a&&e.Eo.wj();e.PW=null;e.Eo=null}; S6L=function(e){var a=a===void 0?-1:a;var r=r===void 0?Infinity:r;vo3(e,a,r);for(var P=g.Z(e.T.values()),B=P.next();!B.done;B=P.next())B=B.value,B.start>=a&&B.end<=r&&(e.playback.removeCueRange(B),e.T.delete(B.getId()),e.gW({rmAdCR:1}));P=nF(e,a/1E3);a=P.KW;P=P.O1;a&&(P=P*1E3-a.Eb,RiL(e,a,P,a.Eb+P),P=e.T.get(a.cpn))&&(P.start=a.Eb,P.end=a.Eb+a.durationMs);if(a=nF(e,r/1E3).KW){var h;P="playback_timelinePlaybackId_"+a.Cb+"_video_id_"+((h=a.videoData)==null?void 0:h.videoId)+"_durationMs_"+a.durationMs+ "_enterTimeMs_"+a.Eb+"_parentReturnTimeMs_"+a.g1;e.cI("Invalid_clearEndTimeMs_"+r+"_that_falls_during_"+P+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; soJ=function(e){e.oH.clearAll();e.T.clear();e.S.clear();e.C.clear();e.e1=[];e.Z=null;e.Te.clear();e.iW.experiments.FM("html5_ssdai_log_missing_ad_config_reason")&&e.Cf.clear();e.N=[];e.GQ=[];e.h9=[];e.ID=[];e.sM.clear();e.J9.clear();e.dW.clear();e.ym.clear();e.Y=!1;e.w4=0;e.HW=!1;e.bL=0;e.T$=0;e.bv=!1;e.Wr=!1;e.L="";TBq(e.app.DW());P0(e.app.DW(),e.playback,!1);e.Lf.clear();e.D.isActive()&&oY(e)}; RiL=function(e,a,r,P){a.durationMs=r;a.g1=P;(P=e.Lf.get(a.cpn))?P.q2(r/1E3):e.gW({nop_d:a.cpn})}; vo3=function(e,a,r){J83(e.S,function(P){return P.Eb>=a&&P.g1<=r})}; M4j=function(e,a,r,P,B,h){if(!e.Wr)if(g.mZJ(e,r))e.gW({gdu:"undec",seg:r,itag:B});else if(a=FBL(e,a,r,P,h),!(e.playback.getVideoData().w1()&&(a==null?0:a.sE)))return a}; FBL=function(e,a,r,P,B){var h=e.C.get(r);if(!h){if(h=joz(e,a))return h;a=e.Y4(r-1,P!=null?P:2);if(B)return e.gW({misscue:B,sq:r,type:P,prevsstate:a==null?void 0:a.Fg,prevrecord:e.C.has(r-1)}),e.C.get(r-1);if((a==null?void 0:a.Fg)===2)return e.gW({adnf:1,sq:r,type:P,prevrecord:e.C.has(r-1)}),e.C.get(r-1)}return h}; joz=function(e,a){a+=e.yn();if(e.playback.getVideoData().w1())a:{var r=1;r=r===void 0?0:r;var P=a*1E3;e=g.Z(e.S.S);for(var B=e.next();!B.done;B=e.next()){B=B.value;var h=B.VD?B.VD*1E3:B.Eb;if(P>=B.Eb-r*1E3&&P<=h+B.durationMs+r*1E3){P={KW:B,O1:a};break a}}P={KW:void 0,O1:a}}else P=nF(e,a),((r=P)==null?0:r.KW)||(P=nF(e,a,1));var c;return(c=P)==null?void 0:c.KW}; uAL=function(e,a){a=a===void 0?"":a;var r=Qw(a)||void 0;if(!a||!r){var P;e.gW({adcfg:(P=a)==null?void 0:P.length,dcfg:r==null?void 0:r.length})}return r}; KBy=function(e){for(var a=g.Z(e.T.values()),r=a.next();!r.done;r=a.next())e.playback.removeCueRange(r.value);e.T.clear();e.oH.clearAll()}; e4O=function(e,a,r,P,B,h,c){if(a&&r){e.Mf=r.cpn;e.tQ(r.cpn,r.startTimeSecs||B);iMq(e,r);var y=pqL(e,"a2a",r);e.gW(y);e.bL++;e.playback.CL(a,r,P||0,B||0,!!h,!!c)}else e.gW({misspbkonadtrans:1,enter:(r==null?void 0:r.cpn)||"",exit:(a==null?void 0:a.cpn)||"",seek:h,skip:c})}; TL=function(e,a,r){if(r===void 0||!r){r=g.Z(e.e1);for(var P=r.next();!P.done;P=r.next()){P=P.value;if(a>=P.start&&a<=P.end)return;if(a===P.end+1){P.end+=1;return}}e.e1.push(new ZM3(a))}}; g.mZJ=function(e,a){e=g.Z(e.e1);for(var r=e.next();!r.done;r=e.next())if(r=r.value,a>=r.start&&a<=r.end)return!0;return!1}; avI=function(e,a,r){var P;if(P=e.playback.getVideoData().w1())P=(P=e.S.sb({cpn:a}))&&P.ph?(e=e.S.T.get(P==null?void 0:P.ph))&&e.slice(-1)[0].cpn===a:!1;return P&&r===2?1E3:0}; lrN=function(e,a,r,P,B){var h;a={reason:"overlapping_playbacks",wi$:a,Eb:r,g1:P,KMo:B.Cb,aLr:((h=B.videoData)==null?void 0:h.videoId)||"",LMo:B.durationMs,ILF:B.Eb,Exz:B.g1};c0(e,a)}; c0=function(e,a,r){e.playback.zo(a,r)}; rj3=function(e,a){var r=[];e=e.S.T.get(a);if(!e)return[];e=g.Z(e);for(a=e.next();!a.done;a=e.next())a=a.value,a.cpn&&r.push(a.cpn);return r}; Prz=function(e,a,r){var P=0;e=e.S.T.get(r);if(!e)return-1;e=g.Z(e);for(r=e.next();!r.done;r=e.next()){if(r.value.cpn===a)return P;P++}return-1}; BKT=function(e,a){var r=0;e=e.S.T.get(a);if(!e)return 0;e=g.Z(e);for(a=e.next();!a.done;a=e.next())a=a.value,a.durationMs!==0&&a.g1!==a.Eb&&r++;return r}; h43=function(e,a,r){var P=!1;if(r=e.S.T.get(r)){r=g.Z(r);for(var B=r.next();!B.done;B=r.next())B=B.value,B.durationMs!==0&&B.g1!==B.Eb&&(B=B.cpn,a===B&&(P=!0),P&&!e.J9.has(B)&&(e.gW({decoratedAd:B}),e.J9.add(B)))}}; Qoy=function(e){e.XM&&e.gW({adf:"0_"+((new Date).getTime()/1E3-e.T$)+"_isTimeout_"+e.Y})}; WB3=function(e,a,r){if(e.N.length)for(var P=g.Z(e.N),B=P.next(),h={};!B.done;h={gj:void 0},B=P.next()){h.gj=B.value;B=h.gj.startSecs*1E3;var c=h.gj.Ug*1E3+B;if(a>B&&aB&&r0?e:0}else e.KS().videoData.QH=e.playback.getCurrentTime()}; oaL=function(e){e.ym.add(e.L);e.L="";e.HW=!1}; Ajy=function(e,a,r,P){g.N.call(this);var B=this;this.api=e;this.iW=a;this.S=r;this.app=P;this.C=new Map;this.T=[];this.B=this.D=null;this.HW=NaN;this.Z=this.L=this.N=null;this.Y=new g.vP(function(){fvz(B,B.HW,B.N||void 0)}); this.oH=[];this.TQ=new g.vP(function(){var h=B.oH.pop();if(h){var c=h.Cb,y=h.playerVars;h=h.playerType;y&&(y.prefer_gapless=!0,B.api.preloadVideoByPlayerVars(y,h,NaN,"",c),B.oH.length&&g.sC(B.TQ,4500))}}); this.events=new g.Zc(this);this.Ob={doQ:function(){return B.T}}; this.S.getPlayerType();g.x(this,this.Y);g.x(this,this.TQ);g.x(this,this.events);this.events.j(this.api,g.SS("childplayback"),this.onCueRangeEnter);this.events.j(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.j(this.api,"presentingplayerstatechange",this.We)}; EaL=function(e,a,r,P,B,h){var c=a.cpn,y=a.docid||a.video_id||a.videoId||a.id,T=e.S;h=h===void 0?B+P:h;if(B>h)return fF(e,"enterAfterReturn enterTimeMs="+B+" is greater than parentReturnTimeMs="+h.toFixed(3),c,y),"";var X=T.N5()*1E3;if(BX)return T="returnAfterDuration parentReturnTimeMs="+h.toFixed(3)+" is greater than parentDurationMs="+X+". And timestampOffset in seconds is "+ T.t9(),fF(e,T,c,y),"";X=null;for(var f=g.Z(e.T),A=f.next();!A.done;A=f.next()){A=A.value;if(B>=A.Eb&&BA.Eb)return fF(e,"overlappingReturn",c,y),"";if(h===A.Eb)return fF(e,"outOfOrder",c,y),"";B===A.g1&&(X=A)}c="cs_childplayback_"+U2j++;y={tR:AN(P,!0),iy:Infinity,target:null};var U={Cb:c,playerVars:a,playerType:r,durationMs:P,Eb:B,g1:h,Ki:y};e.T=e.T.concat(U).sort(function(O,d){return O.Eb-d.Eb}); X?CrJ(e,X,{tR:AN(X.durationMs,!0),iy:X.Ki.iy,target:U}):(a={tR:AN(B,!1),iy:B,target:U},e.C.set(a.tR,a),T.addCueRange(a.tR));a=!0;if(e.S===e.app.Y$()&&(T=T.getCurrentTime()*1E3,T>=U.Eb&&Ta)break;if(h>a)return{KW:P,O1:a-B};r=h-P.g1/1E3}return{KW:null,O1:a-r}}; fvz=function(e,a,r){r=r===void 0?{}:r;var P=e.Z||e.app.Y$().getPlayerState();GL(e,!0);a=isFinite(a)?a:e.S.C8();var B=Z9j(e,a);a=B.O1;var h=(B=B.KW)&&!UJ(e,B)||!B&&e.S!==e.app.Y$(),c=a*1E3;c=e.B&&e.B.start<=c&&c<=e.B.end;!h&&c||CF(e);B?GUl(e,B,a,r,P):O93(e,a,r,P)}; O93=function(e,a,r,P){var B=e.S;B!==e.app.Y$()&&e.app.cT();B.seekTo(a,Object.assign({},{ze:"application_timelinemanager"},r));kUz(e,P)}; GUl=function(e,a,r,P,B){var h=UJ(e,a);if(!h){a.playerVars.prefer_gapless=!0;var c=new g.UT(e.iW,a.playerVars);c.Cb=a.Cb;e.api.uC(c,a.playerType)}c=e.app.Y$();h||c.addCueRange(a.Ki.tR);c.seekTo(r,Object.assign({},{ze:"application_timelinemanager"},P));kUz(e,B)}; kUz=function(e,a){e=e.app.Y$();var r=e.getPlayerState();a.isOrWillBePlaying()&&!r.isOrWillBePlaying()?e.playVideo():a.isPaused()&&!r.isPaused()&&e.pauseVideo()}; GL=function(e,a){e.HW=NaN;e.N=null;e.Y.stop();e.L&&a&&e.L.wj();e.Z=null;e.L=null}; UJ=function(e,a){e=e.app.Y$();return!!e&&e.getVideoData().Cb===a.Cb}; d24=function(e){var a=e.T.find(function(B){return UJ(e,B)}); if(a){var r=e.app.Y$();CF(e);var P=new g.Q9(8);a=gaN(e,a)/1E3;O93(e,a,{},P);r.nf("forceParentTransition",{childPlayback:1});e.S.nf("forceParentTransition",{parentPlayback:1})}}; D2I=function(e,a,r){a=a===void 0?-1:a;r=r===void 0?Infinity:r;for(var P=a,B=r,h=g.Z(e.C),c=h.next();!c.done;c=h.next()){var y=g.Z(c.value);c=y.next().value;y=y.next().value;y.iy>=P&&y.target&&y.target.g1<=B&&(e.S.removeCueRange(c),e.C.delete(c))}P=a;B=r;h=[];c=g.Z(e.T);for(y=c.next();!y.done;y=c.next())if(y=y.value,y.Eb>=P&&y.g1<=B){var T=e;T.D===y&&CF(T);UJ(T,y)&&T.app.cT()}else h.push(y);e.T=h;P=Z9j(e,a/1E3);a=P.KW;P=P.O1;a&&(P*=1E3,JjN(e,a,P,a.g1===a.Eb+a.durationMs?a.Eb+P:a.g1));(a=Z9j(e,r/1E3).KW)&& fF(e,"Invalid clearEndTimeMs="+r+" that falls during playback={timelinePlaybackId="+(a.Cb+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.Eb+" parentReturnTimeMs="+a.g1+"}.Child playbacks can only have duration updated not their start."))}; JjN=function(e,a,r,P){a.durationMs=r;a.g1=P;P={tR:AN(r,!0),iy:r,target:null};CrJ(e,a,P);UJ(e,a)&&e.app.Y$().getCurrentTime()*1E3>r&&(a=gaN(e,a)/1E3,r=e.app.Y$().getPlayerState(),O93(e,a,{},r))}; fF=function(e,a,r,P){e.S.nf("timelineerror",{e:a,cpn:r?r:void 0,videoId:P?P:void 0})}; $2z=function(e){e&&e!=="web"&&VI3.includes(e)}; EJ=function(){g.N.call(this);this.S=new Ki(5,null);g.x(this,this.S);this.T=new Ki(15,null);g.x(this,this.T)}; KGL=function(e,a){return a?!!e.S.get(a):!1}; Qvz=function(e,a){e.dataset.version=a}; Lyz=function(e){g.v.call(this,{K:"div",WW:["html5-video-player"],J:{tabindex:e.G().disableOrganicUi?"":"-1",id:e.webPlayerContextConfig.rootElementId},V:[{K:"div",U:g.to.VIDEO_CONTAINER,J:{"data-layer":"0"}}]});var a=this;this.app=e;this.o8=this.BW(g.to.VIDEO_CONTAINER);this.Si=new g.I8(0,0,0,0);this.HO=null;this.lz=new g.I8(0,0,0,0);this.ET=this.h7=this.cn=NaN;this.w8=this.K4=this.VO=this.RB=!1;this.hg=NaN;this.bX=!1;this.Zl=null;this.nm=function(){a.element.focus({preventScroll:!0})}; this.vU=function(){a.app.j1.publish("playerUnderlayVisibilityChange","visible");a.HO.classList.remove(g.to.VIDEO_CONTAINER_TRANSITIONING);a.HO.removeEventListener(Qi,a.vU);a.HO.removeEventListener("transitioncancel",a.vU)}; this.aI=this.SV=!1;var r=this.element.addEventListener,P=this.element.removeEventListener;this.addEventListener=function(h,c,y){r.apply(a.element,[h,c,y])}; this.removeEventListener=function(h,c,y){P.apply(a.element,[h,c,y])}; var B=e.G();B.transparentBackground&&this.kE("ytp-transparent");B.controlsType==="0"&&this.kE("ytp-hide-controls");g.rr(this.element,"ytp-exp-bottom-control-flexbox");g.rr(this.element,"ytp-modern-caption");B.X("enable_new_paid_product_placement")&&!g.OA(B)&&g.rr(this.element,"ytp-exp-ppp-update");g.rr(this.element,"ytp-livebadge-color");if(B.X("delhi_modern_web_player"))switch(g.rr(this.element,"ytp-delhi-modern"),B.X("delhi_modern_web_player_icons")&&g.rr(this.element,"ytp-delhi-modern-icons"), B.X("delhi_modern_web_player_horizontal_volume_controls")&&g.rr(this.element,"ytp-delhi-horizontal-volume-controls"),Et(B.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.rr(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.rr(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.rr(this.element,"ytp-delhi-modern-with-exclusion")}Qvz(this.element,Wy3(e));this.kV=!1;this.nj=new g.Sr(NaN,NaN);lvO(this);this.j(e.j1,"onMutedAutoplayChange", this.onMutedAutoplayChange);e=g.eS(B.experiments,"html5_android_mweb_resize_delay");e>0&&(this.tf=new g.vP(function(){return void a.resize()},e),g.x(this,this.tf))}; lvO=function(e){function a(c){e.HO&&bV(e);tN(e)!==e.bX&&e.resize();e.app.G().X("web_enable_smart_zoom")&&e.VW&&(c.state.isPaused()?e.VW.pause():g.TH(c,8)&&e.VW.playState==="paused"&&e.VW.play())} function r(c,y){e.zm(c,y)} function P(c){c.getVideoData()&&e.updateVideoData(c.getVideoData())} function B(){e.lz=new g.I8(0,0,0,0);e.Si=new g.I8(0,0,0,0)} var h=e.app.j1;h.addEventListener("initializingmode",B);h.addEventListener("videoplayerreset",P);h.addEventListener("videodatachange",r);h.addEventListener("presentingplayerstatechange",a);e.addOnDisposeCallback(function(){h.removeEventListener("initializingmode",B);h.removeEventListener("videoplayerreset",P);h.removeEventListener("videodatachange",r);h.removeEventListener("presentingplayerstatechange",a)})}; wLL=function(e){var a=e.app.Y$();if(a=a?a.getVideoData():null){if(g.jt(a)||g.uz(a)||g.KY(a))return 16/9;if(d3(a)&&a.B.S)return e=a.B.videoInfos[0].video,Y1L(e.width,e.height)}return(e=e.HO)?Y1L(e.videoWidth,e.videoHeight):16/9}; pL3=function(e,a,r,P){var B=r,h=Y1L(a.width,a.height);e.RB?B=rh?{width:a.width,height:a.width/B,aspectRatio:B}:BB?e.width=e.height*r:rT;if(tN(e)){var X=wLL(e);var f=isNaN(X)||g.qU||Ar&&g.Uv||T;HU&&!g.x8(601)?X=B.aspectRatio:f=f||h.controlsType==="3";f?T?(f=h.X("place_shrunken_video_on_left_of_player")?16:e.getPlayerSize().width-a.width-16,X=Math.max((e.getPlayerSize().height-a.height)/2,0),f=new g.I8(f,X,a.width, a.height),e.HO.style.setProperty("border-radius","12px")):f=new g.I8(0,0,a.width,a.height):(r=B.aspectRatio/X,f=new g.I8((a.width-B.width/r)/2,(a.height-B.height)/2,B.width/r,B.height),r===1&&g.Uv&&(X=f.width-a.height*X,X>0&&(f.width+=X,f.height+=X)));g.cD(e.element,"ytp-fit-cover-video",Math.max(f.width-B.width,f.height-B.height)<1);if(y||e.kV)e.HO.style.display="";e.bX=!0}else{f=-a.height;HU?f*=window.devicePixelRatio:g.kG&&(f-=window.screen.height);f=new g.I8(0,f,a.width,a.height);if(y||e.kV)e.HO.style.display= "none";e.bX=!1}Ho(e.lz,f)||(e.lz=f,g.hZ(h)?(e.HO.style.setProperty("width",f.width+"px","important"),e.HO.style.setProperty("height",f.height+"px","important")):g.ab(e.HO,f.getSize()),P=new g.vR(f.left,f.top),g.j2(e.HO,Math.round(P.x),Math.round(P.y)),P=!0);a=new g.I8((a.width-B.width)/2,(a.height-B.height)/2,B.width,B.height);Ho(e.Si,a)||(e.Si=a,P=!0);g.vo(e.HO,"transform",r===1?"":"scaleX("+r+")");c&&T!==e.K4&&(T&&(e.HO.addEventListener(Qi,e.vU),e.HO.addEventListener("transitioncancel",e.vU),e.HO.classList.add(g.to.VIDEO_CONTAINER_TRANSITIONING)), e.K4=T,e.app.j1.publish("playerUnderlayVisibilityChange",e.K4?"transitioning":"hidden"));return P}; NKq=function(e){e.SV=!e.SV;e.aI=!0;e.element.classList.toggle("ytp-retro-player",e.SV);e.resize();e.aI=!1;e.app.j1.qF("onRetroModeChanged",e.SV)}; x2O=function(){this.csn=g.bs();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.S=new Set;this.T=new Set}; Iv4=function(e){if(e.csn!==g.bs())if(e.csn==="UNDEFINED_CSN")e.csn=g.bs();else{var a=g.bs(),r=g.Er();if(a&&r){e.csn=a;for(var P=g.Z(e.elements),B=P.next();!B.done;B=P.next())(B=B.value.visualElement)&&B.isClientVe()&&a&&r&&(g.CK("combine_ve_grafts")?P2(aX(),B,r):g.s7(g.xZ)(void 0,a,r,B))}if(a)for(e=g.Z(e.S),r=e.next();!r.done;r=e.next())(r=r.value.visualElement)&&r.isClientVe()&&g.ma(a,r)}}; g.gZ=function(e,a,r,P){g.N.call(this);var B=this;this.logger=new g.bl("App");this.YA=this.eH=!1;this.C4={};this.ZC=[];this.Cp=!1;this.qy=null;this.intentionalPlayback=!1;this.Yo=!0;this.VA=!1;this.gV=this.yZ=this.It=null;this.B6=!0;this.mediaElement=this.ZD=null;this.Pn=NaN;this.Hg=!1;this.d1=this.u1=this.Nd=this.screenLayer=this.playlist=null;this.cH=[];this.Cc=0;this.Ob={DW:function(){return B.wg}, z_f:function(){return B.Nd}}; this.logger.debug("constructor begin");if(!r)throw Error("b/179532961");this.Ul=(a==null?void 0:a.args)||{};this.webPlayerContextConfig=r;rnO();a=this.Ul;this.iW=new fQ(a,r,r.canaryState,P,this);g.x(this,this.iW);CMq(this.iW);r=Eoj(this.iW);this.iW.UM()&&this.Sn("h5vcc",r);this.iW.experiments.FM("jspb_serialize_with_worker")&&iG3();this.iW.experiments.FM("gzip_gel_with_worker")&&$oL();this.iW.T&&!H9T&&(window.addEventListener(md?"touchstart":"click",SBN,{capture:!0,passive:!0}),H9T=!0);this.X("html5_onesie")&& (this.fU=new Gi(this.iW),g.x(this,this.fU));this.M7=ue(eP(this.iW)&&!0,a.enablesizebutton);this.SI=ue(!1,a.player_wide);this.visibility=new y8O;g.x(this,this.visibility);this.X("web_log_theater_mode_visibility")&&this.sF(ue(!1,a.player_wide));this.eH=ue(!1,a.external_list);this.events=new g.Zc(this);g.x(this,this.events);this.X("start_client_gcf")&&(kr(V7(),{OF:BN,yr:uuJ()}),this.m6=V7().resolve(BN),awj(this.m6));this.iyF=new VT;g.x(this,this.iyF);this.Uf=new x2O;r=new $d;this.j1=new g.Hx(this,r); g.x(this,this.j1);this.template=new Lyz(this);g.x(this,this.template);this.appState=1;this.tH=q1L(this);g.x(this,r);r={};this.Ha=(r.internalvideodatachange=this.F0,r.playbackready=this.fQM,r.playbackstarted=this.czW,r.statechange=this.mFP,r);this.m5=new ZD(this.j1);this.vZ=vaN(this);r=this.iW.Z;!1!==r&&this.Sn("badps",{hbp:r,hostname:window.location.hostname,ps:this.iW.playerStyle});this.WA=new $Cz(this.iW,this.vZ);this.j1.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||mCj(this.vZ))&& R4j(this);r=10;g.Uh(this.iW)&&(r=3);gd(this.iW)&&(r=g.eS(this.iW.experiments,"tvhtml5_unplugged_preload_cache_size"));this.wg=new g.aY(this.j1,r);r=S1y(this);this.wg.rJ(r);svN(this);r={};this.i6=(r.airplayactivechange=this.A9r,r.airplayavailabilitychange=this.Pvd,r.beginseeking=this.J9Q,r.sabrCaptionsDataLoaded=this.ohQ,r.endseeking=this.y9f,r.internalAbandon=this.FL1,r.internalaudioformatchange=this.drd,r.internalvideodatachange=this.Tgz,r.internalvideoformatchange=this.ghW,r.liveviewshift=this.k$Q, r.playbackstalledatstart=this.bbW,r.progresssync=this.uoW,r.onAbnormalityDetected=this.xrf,r.onSnackbarMessage=this.Ruf,r.onLoadProgress=this.VOP,r.SEEK_COMPLETE=this.nh1,r.SEEK_TO=this.SbQ,r.onVideoProgress=this.ObQ,r.onLoadedMetadata=this.MOF,r.onAutoplayBlocked=this.YMW,r.onPlaybackPauseAtStart=this.r9r,r.playbackready=this.NWM,r.statechange=this.OI,r.newelementrequired=this.gh,r.heartbeatparams=this.qMd,r.videoelementevent=this.BgP,r.drmoutputrestricted=this.G$m,r.signatureexpired=this.pOF,r.nonfatalerror= this.vyd,r.reloadplayer=this.Hbr,r);this.nQ=new g.Zc(this);g.x(this,this.nQ);this.S0=new EJ;g.x(this,this.S0);this.W9=this.jJ=-1;this.Yd=new g.vP(this.template.resize,16,this.template);g.x(this,this.Yd);this.cO=new Ajy(this.j1,this.iW,this.RD(),this);this.Om=new m$(this);g.x(this,this.Om);this.qt=new vF(this);g.x(this,this.qt);$2z(this.iW.S.c);this.events.j(this.j1,g.SS("appapi"),this.UFM);this.events.j(this.j1,g.sh("appapi"),this.jHz);this.events.j(this.j1,g.SS("appprogressboundary"),this.l51);this.events.j(this.j1, g.sh("applooprange"),this.F4);this.events.j(this.j1,"presentingplayerstatechange",this.We);this.events.j(this.j1,"resize",this.huo);this.template.Kf(Bo(document,e));this.events.j(this.j1,"offlineslatestatechange",this.fDo);this.events.j(this.j1,"sabrCaptionsTrackChanged",this.qbH);this.events.j(this.j1,"sabrCaptionsBufferedRangesUpdated",this.yCM);this.vZ.W.G().gT&&wP(this.vZ,"offline");this.iW.ym&&g.DD("ux",g.HF);e=g.eS(this.iW.experiments,"html5_defer_fetch_att_ms");this.Af=new g.vP(this.pGQ,e, this);g.x(this,this.Af);this.TX().Fw()&&(g.Wh()&&this.TX().N.push("remote"),m2j(this));this.WA.tick("fs");Fy4(this);this.iW.ym&&wP(this.vZ,"ux",!0);g.uP(this.vZ.W.G())&&wP(this.vZ,"embed");this.X("web_player_sentinel_is_uniplayer")||g.VJ(new g.I6("Player experiment flags missing","web_player_sentinel_is_uniplayer"));e=this.X("web_player_sentinel_yt_experiments_sync");r=g.CK("web_player_sentinel_yt_experiments_sync");e!==r&&g.VJ(new g.I6("b/195699950",{yt:e,player:r}));this.Vk=MIq(this);if(e=g.eS(this.iW.experiments, "html5_block_pip_safari_delay"))this.zw=new g.vP(this.uF,e,this),g.x(this,this.zw);$2=this.iW.dW;this.j1.publish("applicationInitialized");this.logger.debug("constructor end")}; MIq=function(e){function a(r){r.stack&&r.stack.indexOf("player")!==-1&&e.Y$().xr(r)} $Z.subscribe("handleError",a);RM.push(a);return function(){$Z.unsubscribe("handleError",a);var r=RM.indexOf(a);r!==-1&&RM.splice(r,1)}}; S1y=function(e){var a=new g.UT(e.iW,e.Ul);e.j1.publish("initialvideodatacreated",a);return Zg(e,1,a,!1)}; svN=function(e){var a=e.RD();a.setPlaybackRate(e.iW.L?1:jvy(e,Number(g.$f("yt-player-playback-rate"))||1));a.N2(e.Ha,e);a.tU()}; vaN=function(e){var a="",r=Wy3(e);r.indexOf("//")===0&&(r=e.iW.protocol+":"+r);var P=r.lastIndexOf("/base.js");P!==-1&&(a=r.substring(0,P+1));if(r=Error().stack)if(r=r.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))r=r[1],r.includes(a)||g.VJ(Error("Player module URL mismatch: "+(r+" vs "+a+".")));a=new RIy(e.j1,a);r={};SJI(a,(r.destroyed=function(){e.onApiChange()},r)); return a}; q1L=function(e){if(e.iW.storeUserVolume){e=g.$f("yt-player-volume")||{};var a=e.volume;e={volume:isNaN(a)?100:g.ID(Math.floor(a),0,100),muted:!!e.muted}}else e={volume:100,muted:e.iW.mute};return e}; OJ=function(e){e.mediaElement=e.iW.deviceIsAudioOnly?new g.ji(g.U9("AUDIO")):q3.pop()||new g.ji(g.U9("VIDEO"));g.x(e,e.mediaElement);e.Y$().setMediaElement(e.mediaElement);try{e.iW.AC?(e.u1&&e.events.Xo(e.u1),e.u1=e.events.j(e.mediaElement,"volumechange",e.XAd)):(e.mediaElement.ji(e.tH.muted),e.mediaElement.setVolume(e.tH.volume/100))}catch(B){e.SX("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(B&&typeof B==="object"&&"message"in B&&typeof B.message==="string"&&B.message.replace(/[;:,]/g, "_")));return}g.du(e.nQ);uk4(e);var a=e.template,r=e.mediaElement.EM();a.HO=r;a.w8=!1;a.HO.parentNode||bd(a.o8,a.HO,0);a.lz=new g.I8(0,0,0,0);z4O(a);bV(a);r=a.HO;g.rr(r,"video-stream");g.rr(r,g.to.MAIN_VIDEO);var P=a.app.G();P.G0&&r.setAttribute("data-no-fullscreen","true");P.X("html5_local_playsinline")?"playsInline"in C_()&&(r.playsInline=!0):P.Rq&&(r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline",""));P.A6&&a.HO&&a.j(r,"click",r.play,r);try{e.mediaElement.activate()}catch(B){e.SX("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(B&&typeof B==="object"&&"message"in B&&typeof B.message==="string"&&B.message.replace(/[;:,]/g,"_")))}}; eUL=function(e){if(!Ky4(e)){var a=e.RD().rg();a&&(a=a.HM(),a instanceof Promise&&a.catch(function(){})); kS(e,zW(e.getPlayerStateObject()))}}; uk4=function(e){var a=e.mediaElement;tX()?e.nQ.j(a,"webkitpresentationmodechanged",e.keW):window.document.pictureInPictureEnabled&&(e.nQ.j(a,"enterpictureinpicture",function(){e.xI(!0)}),e.nQ.j(a,"leavepictureinpicture",function(){e.xI(!1)})); Rf&&(e.nQ.j(a,"webkitbeginfullscreen",function(){e.kp(3)}),e.nQ.j(a,"webkitendfullscreen",function(){e.kp(0)}))}; abj=function(e,a){var r=a.getPlayerType(),P=e.wg.B[r]||null;a!==e.RD()&&a!==P&&(P==null||P.dispose(),e.wg.B[r]=a)}; rY4=function(e,a){a=a===void 0?!0:a;e.logger.debug("start clear presenting player");var r;if(r=e.d1){r=e.d1;var P=e.mediaElement;r=!!P&&P===r.mediaElement}r&&(e.l$(),OJ(e));r=e.Y$();r.l$(!a);r.r4(e.i6,e);r.getPlayerType()!==1&&r.dispose();a=e.wg;a.T=a.S;rZ(a);e.logger.debug("finish clear presenting player")}; g.P$T=function(e,a,r,P){var B=e.WA;a===2&&(B=new $Cz(e.iW));return new g.on(e.iW,a,B,e.template,function(h,c,y){e.j1.publish(h,c,y)},function(){return e.j1.getVisibilityState()},e.visibility,e,r,P)}; Zg=function(e,a,r,P,B){e=g.P$T(e,a,r,B);e=new g.ra(e);P&&e.tU();return e}; dZ=function(e,a){return e.IU(a)?e.RD():a}; JN=function(e,a){var r=e.Y$();return a===e.RD()&&e.IU(a)&&e.IU(r)?r:a}; cYj=function(e){e.logger.debug("start application playback");if(e.RD().getPlayerState().isError())e.logger.debug("start application playback done, player in error state");else{var a=Dg(e);e.TX().isLoaded();a&&e.jd(6);B5j(e);PCN(e.vZ)||hUj(e)}}; hUj=function(e){if(!Dg(e)){var a=i6(e.vZ);a&&!a.created&&sYL(e.vZ)&&(e.logger.debug("reload ad module"),a.create())}}; B5j=function(e){e.logger.debug("start presenter playback");var a=e.getVideoData(),r=e.vZ;PCN(r)||r.Pa();!Vw&&r.W.X("html5_allow_asmjs")&&yRl(r);wP(r,"embed");wP(r,"kids");wP(r,"remote");wP(r,"miniplayer");wP(r,"offline");wP(r,"unplugged");wP(r,"ypc",!1,!0);r.W.X("html5_ypc_clickwrap_module_refactor")||wP(r,"ypc_clickwrap",!1,!0);wP(r,"yto",!1,!0);wP(r,"webgl",!1,!0);BU4(r)||(wP(r,"captions",!0),wP(r,"endscreen"),r.RQ(),wP(r,"creatorendscreen",!0));r.Dg();r.W.publish("modulesCreated");e.j1.publish("videoready", a)}; VY=function(e){e=e.TX();e.Fw();return cx(e)}; Fy4=function(e){e.logger.debug("start prepare initial playback");e.r5();var a=e.Ul;OJ(e);e.events.j(window,"resize",e.szr);var r=e.TX();e.j1.cG("onVolumeChange",e.tH);if(a&&L_j(a)){var P=GF(e.iW);P&&!e.eH&&(a.fetch=0);var B=g.uP(e.iW);B&&!e.eH&&(a.fetch=0);$S(e,a);g.uP(e.iW)&&e.WA.tick("ep_pr_s");if(!P||e.eH)if(B&&!e.eH)oy4(e);else if(!r.Fw())e.playlist.onReady(function(){QY(e)})}e.lk(e.RD(),!1,!0); g.S(e.RD().getPlayerState(),128)||(a=DIl(!e.iW.deviceIsAudioOnly),a==="fmt.noneavailable"?e.SX("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):a==="html5.missingapi"?e.SX(a,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):r&&r.Fw()&&VY(e)&&(e.iW.ZZ||e.iW.Tu)?W0(e):r.I9?e.j1.mutedAutoplay({durationMode:r.mutedAutoplayDurationMode}):g.$f("yt-player-playback-on-reload")?(g.BU("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!e.iW.TQ}),g.Vy("yt-player-playback-on-reload",!1), W0(e)):JZ(e.iW)||nyO(e),g.tZ(e.iW)||Cn(e.iW)==="MWEB"?(g.S$(g.Fn(),function(){lV(e)}),g.S$(g.Fn(),function(){JEJ()})):(lV(e),JEJ()),e.logger.debug("finish prepare initial playback"))}; lV=function(e){if(!e.X("use_rta_for_player"))if(e.X("fetch_att_independently"))g.sC(e.Af);else{var a=e.getVideoData().botguardData;a&&g.XO(a,e.iW,e.getVideoData().pS||"")}}; nyO=function(e){e.logger.debug("start initialize to CUED mode");e.j1.publish("initializingmode");e.jd(2);wP(e.vZ,"remote");wP(e.vZ,"miniplayer");e.logger.debug("initialized to CUED mode")}; W0=function(e){e.logger.debug("start initialize application playback");var a=e.RD();if(g.S(a.getPlayerState(),128))return!1;a=a.getVideoData();VY(e)&&e.iW.Tu&&(q3.length&&e.YA?(LF(e,{muted:!1,volume:e.tH.volume},!1),YS(e,!1)):q3.length||e.tH.muted||(LF(e,{muted:!0,volume:e.tH.volume},!1),YS(e,!0)));VY(e)&&g.uP(e.iW)&&a.mutedAutoplay&&(LF(e,{muted:!0,volume:e.tH.volume},!1),YS(e,!0));a.IT&&LF(e,{muted:!0,volume:e.tH.volume},!1);yYl(e,1,a,!1);var r=e.RD();e.j1.publish("initializingmode");e.lk(r);e.jd(3); var P;if(!(P=!e.iW.O8)){if(P=e.d1){P=e.d1;var B=e.mediaElement;P=!!B&&B===P.mediaElement}P=P&&e.Cp}P&&(e.l$(),OJ(e),r.setMediaElement(e.mediaElement));r.P0();if(g.S(r.getPlayerState(),128))return!1;a.HI||kS(e,3);return e.Cp=!0}; Dg=function(e){e=Rk(e.vZ);return!!e&&e.loaded}; T53=function(e,a){if(!e.ZD)return!1;var r=e.ZD.startTimeMs*.001-1,P=e.ZD.endTimeMs*.001;e.ZD.type==="repeatChapter"&&P--;return Math.abs(a-r)<=1E-6||Math.abs(a-P)<=1E-6||a>=r&&a<=P}; Xg4=function(e){var a=e.Y$();J3(a.getVideoData())&&!a.t2()&&(a=wZ(e)*1E3-e.getVideoData().Wy,e.X("html5_gapless_new_slr")?(e=e.qt,pF(e.app,"gaplessshortslooprange"),a=new g.v_(0,a,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(e=e.app.Y$())&&e.addCueRange(a)):e.setLoopRange({startTimeMs:0,endTimeMs:a,type:"shortsLoop"}))}; fbO=function(e){var a=e.RD();if(!(g.S(a.getPlayerState(),64)&&e.TX().isLivePlayback&&e.ZD.startTimeMs<5E3)){if(e.ZD.type==="repeatChapter"){var r,P=(r=g_4(e.eO()))==null?void 0:r.ZW(),B;r=(B=e.getVideoData())==null?void 0:B.Tu;P instanceof g.Kk&&r&&(B=r[Gb(r,e.ZD.startTimeMs)],P.renderChapterSeekingAnimation(0,B.title));isNaN(Number(e.ZD.loopCount))?e.ZD.loopCount=0:e.ZD.loopCount++;e.ZD.loopCount===1&&e.j1.qF("innertubeCommand",e.getVideoData().IYz)}P={ze:"application_loopRangeStart"};if(e.ZD.type=== "clips"||e.ZD.type==="shortsLoop")P.seekSource=58;a.seekTo(e.ZD.startTimeMs*.001,P)}}; jvy=function(e,a){var r=e.j1.getAvailablePlaybackRates();a=Number(a.toFixed(2));e=r[0];r=r[r.length-1];a<=e?a=e:a>=r?a=r:(e=Math.floor(a*100+.001)%5,a=e===0?a:Math.floor((a-e*.01)*100+.001)/100);return a}; wZ=function(e,a){a=e.sb({playerType:a});if(!a)return e.wg.S.XJ();a=dZ(e,a);return iV(e,a.XJ(),a)}; iV=function(e,a,r){if(e.IU(r)&&(r=r.getVideoData(),!zL(e))){e=e.cO;for(var P=g.Z(e.T),B=P.next();!B.done;B=P.next())if(B=B.value,r.Cb===B.Cb){a+=B.Eb/1E3;break}P=a;e=g.Z(e.T);for(B=e.next();!B.done;B=e.next()){B=B.value;if(r.Cb===B.Cb)break;var h=B.Eb/1E3;if(h1&&(B=!1);if(!e.Hg||B!==a){r=r.lock(B?"portrait":"landscape");if(r!=null)r["catch"](function(){}); e.Hg=!0}}else e.Hg&&(e.Hg=!1,r.unlock())}; qC=function(e,a,r){e.j1.publish(a,r);var P=g.Uh(e.iW)||g.hZ(e.iW)||g.L$(e.iW);if(r&&P){switch(a){case "cuerangemarkersupdated":var B="onCueRangeMarkersUpdated";break;case "cuerangesadded":B="onCueRangesAdded";break;case "cuerangesremoved":B="onCueRangesRemoved"}B&&e.j1.qF(B,r.map(function(h){return{getId:function(){return this.id}, end:h.end,id:h.getId(),namespace:h.namespace==="ad"?"ad":"",start:h.start,style:h.style,visible:h.visible,markerPositionMs:h.markerPositionMs}}))}}; v0=function(e,a,r,P,B,h){r=r===void 0?!0:r;var c=e.sb({playerType:B});if(!c||(c.getPlayerType()!==2||e.IU(c))&&!g.FL(c.getVideoData())){var y=e.wg.K5;y?y.seekTo(a,{k9:!r,zM:P,ze:"application",seekSource:h}):(c&&c===e.RD()&&e.ZD&&!T53(e,a)&&e.setLoopRange(null),e.seekTo(a,r,P,B,h))}}; $Vy=function(e,a,r,P){r&&(e.l$(),OJ(e));r=e.Y$();r.f4(a);var B=e.getVideoData(),h={};h.video_id=B.videoId;h.adformat=B.adFormat;B.isLivePlayback||(h.start=r.getCurrentTime(),h.resume="1");B.isLivePlayback&&w3(B)&&g.fm(e.iW)&&(h.live_utc_start=r.BZ(),h.resume="1");B.Lf&&(h.vvt=B.Lf);B.Z&&(h.vss_credentials_token=B.Z,h.vss_credentials_token_type=B.H4);B.oauthToken&&(h.oauth_token=B.oauthToken);h.autoplay=1;h.reload_count=B.sM+1;h.reload_reason=a;B.b1&&(h.unplugged_partner_opt_out=B.b1);B.VY&&(h.ypc_is_premiere_trailer= B.VY);B.playerParams&&(h.player_params=B.playerParams);e.loadVideoByPlayerVars(h,void 0,!0,void 0,void 0,P);a==="signature"&&e.Nd&&hUj(e)}; QiN=function(e,a){e.TX().autonavState=a;g.Vy("yt-player-autonavstate",a);e.j1.publish("autonavchange",a)}; WEj=function(e){var a=e.getVideoData().NO,r=e.iW.k$,P=e.isInline()&&!e.getVideoData().Ol,B=e.mediaElement;a||r||P?B.iJ():(B.pX(),LF(e,e.tH))}; NC=function(e){var a=i6(e.eO());a&&a.created&&(e.logger.debug("reset ad module"),a.destroy())}; zL=function(e){return e.getVideoData().enableServerStitchedDai&&!!e.Nd}; lbj=function(e,a){a.bounds=e.getBoundingClientRect();for(var r=g.Z(["display","opacity","visibility","zIndex"]),P=r.next();!P.done;P=r.next())P=P.value,a[P]=s9(e,P);a.hidden=!!e.hidden}; Wy3=function(e){var a=e.webPlayerContextConfig.trustedJsUrl;return a?ta(a).toString():e.webPlayerContextConfig.jsUrl}; LE4=function(e,a){var r=e.sb({playerType:1});if(r){if(r.getVideoData().clientPlaybackNonce===a)return r;if((e=e.Om.S)&&e.getVideoData().clientPlaybackNonce===a)return e}return null}; R4j=function(e){function a(P){return x_(TUL(e.vZ),function(B){return B.LI(P)})} e.WA.tick("wasm_s");var r=t0j(e.webPlayerContextConfig.wasmModuleUrl,mCj(e.vZ)?a:void 0,e.Sn.bind(e));r==null||x_(r,function(P){e.WA.tick(P.S?"wasm_fa":"wasm_fw")},function(){e.WA.tick("wasm_ferr")}); M0l(e.iW,r)}; Yfz=function(e){return e.name==="TypeError"&&e.stack.includes("/s/player/")&&pK()<=105}; wgy=function(e){return e.isTimeout?"NO_BID":"ERR_BID"}; pgT=function(){var e=null;VUj().then(function(a){return e=a},function(a){return e=wgy(a)}); return e}; iIL=function(){var e=N_(1E3,"NO_BID");return g.wW(vX3([VUj(),e]).Vl(wgy),function(){e.cancel()})}; RY=function(e){return e.QH?g.pE(g.wu(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; SF=function(e){this.player=e;this.B=this.S=1}; xVz=function(e,a,r,P,B,h){a.client||(a.client={});e.player.G().X("h5_remove_url_for_get_ad_break")||(a.client.originalUrl=r);var c=re(r),y=g.TS(r)?!1:!0;(c||y)&&typeof Intl!=="undefined"&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);y=g.TS(r)?!1:!0;if(c||y||P!==""){var T={};r=MA(of(P)).split("&");var X=new Map;r.forEach(function(f){f=f.split("=");f.length>1&&X.set(f[0].toString(),decodeURIComponent(f[1].toString()))}); X.has("bid")&&(T.bid=X.get("bid"));T.params=[];zU4.forEach(function(f){X.has(f)&&(f={key:f,value:X.get(f)},T.params.push(f))}); N5T(e,T);a.adSignalsInfo=T}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;r=B.S.cosver;r!=null&&r!=="cosver"&&(a.client.osVersion=r);r=B.S.cplatform;r!=null&&r!=="cplatform"&&r!==""&&(a.client.platform=r);r=B.S.cmodel;r!=null&&r!=="cmodel"&&(a.client.deviceModel=r);r=B.S.cplayer;r!=null&&r!=="cplayer"&&(a.client.playerType=r);r=B.S.cbrand;r!=null&&r!=="cbrand"&&(a.client.deviceMake=r);a.user||(a.user={});a.user.lockedSafetyMode=!1;(B.X("embeds_web_enable_iframe_api_send_full_embed_url")|| B.X("embeds_enable_autoplay_and_visibility_signals"))&&g.Bb(B)&&cDO(a,h,e.player.getPlayerState(1))}; qfj=function(e,a){var r=!1;if(a==="")return r;a.split(",").forEach(function(P){var B={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},c="ACTIVE";P[0]==="!"&&(P=P.substring(1),c="INACTIVE");P=P.split("-");P.length<3||(P[0]in IbL&&(h.clientName=IbL[P[0]]),P[1]in HIj&&(h.platform=HIj[P[1]]),h.applicationState=c,h.clientVersion=P.length>2?P[2]:"",B.remoteClient=h,e.remoteContexts?e.remoteContexts.push(B):e.remoteContexts=[B],r=!0)}); return r}; RUz=function(e){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in vyy))return!1;e=e.split(RegExp("[:&]"));var a=vyy.FLAG_AUTO_CAPTIONS_DEFAULT_ON,r="f"+(1+Math.floor(a/31)).toString();a=1<=2?c[1]:"";var y=si4.test(a),T=mVj.exec(a);T=T!=null&&T.length>=2?T[1]:"";var X=FEI.exec(a);X=X!=null&&X.length>=2&&!Number.isNaN(Number(X[1]))?Number(X[1]):1;var f=MM4.exec(a);f=f!=null&&f.length>=2?f[1]:"0";var A=yg(e.player.G().QL),U=e.player.getVideoData(1),C=g.sK(U.e1,!0),G="BISCOTTI_ID"in r?r.BISCOTTI_ID:"";xVz(e,C,a,G.toString(),e.player.G(), U);U={splay:!1,lactMilliseconds:r.LACT.toString(),playerHeightPixels:Math.trunc(r.P_H),playerWidthPixels:Math.trunc(r.P_W),vis:Math.trunc(r.VIS),signatureTimestamp:20299,autonavState:RY(e.player.G())};P&&(P={},qfj(P,r.YT_REMOTE)&&(U.mdxContext=P));if(P=jiL.includes(A)?void 0:g.le("PREF")){for(var O=P.split(RegExp("[:&]")),d=0,W=O.length;d1&&V[1].toUpperCase()==="TRUE"){C.user.lockedSafetyMode=!0;break}}U.autoCaptionsDefaultOn= RUz(P)}a=u3q.exec(a);(a=a!=null&&a.length>=2?a[1]:"")&&T&&(C.user.credentialTransferTokens=[{token:a,scope:"VIDEO"}]);a={contentPlaybackContext:U};c={adBlock:Math.trunc(r.AD_BLOCK),params:c,breakIndex:X,breakPositionMs:f,clientPlaybackNonce:r.CPN,topLevelDomain:A,isProxyAdTagRequest:y,context:C,adSignalsInfoString:MA(of(G.toString())),overridePlaybackContext:a};B!==void 0&&(c.cueProcessedMs=Math.round(B).toString());T&&(c.videoId=T);r.LIVE_TARGETING_CONTEXT&&(c.liveTargetingParams=r.LIVE_TARGETING_CONTEXT); r.AD_BREAK_LENGTH&&(c.breakLengthMs=Math.trunc(r.AD_BREAK_LENGTH*1E3).toString());h&&(c.driftFromHeadMs=h.toString());c.currentMediaTimeMs=Math.round(e.player.getCurrentTime(1)*1E3);(e=e.player.getGetAdBreakContext())&&(c.getAdBreakContext=e);return c}; e$q=function(){SF.apply(this,arguments)}; afL=function(e,a,r,P,B){var h=r.pD;var c=r.tR;var y=e.player.G().dD,T=0;r.cueProcessedMs&&c&&!h&&(r=c.end-c.start,r>0&&(T=Math.floor(r/1E3)));var X={AD_BLOCK:B,AD_BREAK_LENGTH:h?h.Ug:T,AUTONAV_STATE:RY(e.player.G()),CA_TYPE:"image",CPN:e.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:e.player.Qa()*1E3,LACT:tB(),LIVE_INDEX:h?e.B++:1,LIVE_TARGETING_CONTEXT:h&&h.context?h.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:e.player.getVisibilityState(), P_H:e.player.MF().TA().height,P_W:e.player.MF().TA().width,YT_REMOTE:y?y.join(","):""},f=cf(hl);Object.keys(f).forEach(function(A){f[A]!=null&&(X[A.toUpperCase()]=f[A].toString())}); P!==""&&(X.BISCOTTI_ID=P);P={};Bf(a)&&(P.sts="20299",(e=e.player.G().forcedExperiments)&&(P.forced_experiments=e));return af(g.Vm(a,X),P)}; rfq=function(e,a){var r=e.player.G(),P,B=(P=e.player.getVideoData(1))==null?void 0:P.oauthToken;return g.$G(r,B).then(function(h){if(h&&Pf()){var c=ez();aS(c,h)}return g.L8(e.player.jM(c),a,"/youtubei/v1/player/ad_break").then(function(y){return y})})}; PKN=function(e){this.ZQ=e}; BRj=function(e){this.W=e}; h$j=function(e){this.ZQ=e}; on4=function(e){g.N.call(this);this.S=e;this.HF=cfT(this)}; cfT=function(e){var a=new D8N(e.S.V2);g.x(e,a);e=[new PKN(e.S.ZQ),new BRj(e.S.W),new h$j(e.S.ZQ),new Es(e.S.tO,e.S.NK),new tW,new Os(e.S.RU,e.S.Cq,e.S.ZQ),new bi,new Gz];e=g.Z(e);for(var r=e.next();!r.done;r=e.next())Vb4(a,r.value);e=g.Z(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(r=e.next();!r.done;r=e.next())gw(a,r.value,function(){}); return a}; sJ=function(e){var a=e.DQ,r=e.bW;e=e.bB;var P=new Rm3,B={qA:new dIq(a.get(),r),bW:r};return{z$:new WZ(r,e,a,B),context:B,JR:P}}; m_=function(e,a,r,P,B){g.N.call(this);this.T=a;this.aH=r;this.DQ=P;this.GX=B;this.listeners=[];var h=new Ou(this);g.x(this,h);h.j(e,"internalAbandon",this.IDM);this.addOnDisposeCallback(function(){g.du(h)})}; Fj=function(e){this.W=e;this.adVideoId=this.S=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.T=this.B=!1;this.adFormat=null;this.L="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; nnl=function(e){e.contentCpn=null;e.adCpn=null;e.videoId=null;e.adVideoId=null;e.adFormat=null;e.L="AD_PLACEMENT_KIND_UNKNOWN";e.actionType="unknown_type";e.B=!1;e.T=!1}; yfL=function(e,a){e=g.Z(a);for(a=e.next();!a.done;a=e.next())if((a=a.value.renderer)&&(a.instreamVideoAdRenderer||a.linearAdSequenceRenderer||a.sandwichedLinearAdRenderer||a.instreamSurveyAdRenderer)){dL("ad_i");g.JA({isMonetized:!0});break}}; TRL=function(e){var a;(a=e.W.getVideoData(1))!=null&&a.oH&&(e.T=!1,a={},e.S&&e.videoId&&(a.cttAuthInfo={token:e.S,videoId:e.videoId}),Dp("video_to_ad",a))}; Eq=function(e){e.T=!1;var a={};e.S&&e.videoId&&(a.cttAuthInfo={token:e.S,videoId:e.videoId});Dp("ad_to_video",a);XkJ(e)}; XkJ=function(e){if(e.B)if(e.L==="AD_PLACEMENT_KIND_START"&&e.actionType==="video_to_ad")Zp("video_to_ad");else{var a={adBreakType:mY(e.L),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:e.videoStreamType};e.actionType==="ad_to_video"?(e.contentCpn&&(a.targetCpn=e.contentCpn),e.videoId&&(a.targetVideoId=e.videoId)):(e.adCpn&&(a.targetCpn=e.adCpn),e.adVideoId&&(a.targetVideoId=e.adVideoId));e.adFormat&&(a.adType=e.adFormat);e.contentCpn&& (a.clientPlaybackNonce=e.contentCpn);e.videoId&&(a.videoId=e.videoId);e.adCpn&&(a.adClientPlaybackNonce=e.adCpn);e.adVideoId&&(a.adVideoId=e.adVideoId);g.JA(a,e.actionType);e.W.G().experiments.FM("html5_ads_csi_qoes")&&(a=e.W.Dm(e.actionType==="ad_to_video"?1:2),a=(0,g.Ov)()-1E3*a,$W("qoes",a,e.actionType))}}; MC=function(e){g.N.call(this);this.W=e;this.S=new Map;this.T=new Ou(this);g.x(this,this.T);this.T.j(this.W,g.SS("ad"),this.onCueRangeEnter,this);this.T.j(this.W,g.sh("ad"),this.onCueRangeExit,this)}; ffL=function(e,a,r,P,B,h,c){g.v_.call(this,a,r,{id:e,namespace:"ad",priority:B,visible:P,associatedClipId:h,markerPositionMs:c})}; jF=function(e){this.W=e}; Afj=function(e,a){e.W.cueVideoByPlayerVars(a,2)}; uV=function(e){this.W=e}; KF=function(e){this.W=e;g.eS(this.W.G().experiments,"tv_pacf_logging_sample_rate")}; US4=function(e){return pm(e,"html5_ssap_play_cached_preroll")}; yN=function(e,a){a=a===void 0?!1:a;return e.W.G().X("html5_ssap_force_ads_ctmp")?!0:(a||e.W.G().UM())&&e.W.G().X("html5_ssap_pacf_qoe_ctmp")}; eT=function(e){var a;return(a=e.W.getVideoData(1)==null?void 0:!1)!=null?a:!1}; pm=function(e,a){return e.W.G().X(a)}; CKL=function(e){return e.W.G().X("substitute_ad_cpn_macro_in_ssdai")}; m6=function(e){var a,r,P;return((a=e.W.getVideoData(1).getPlayerResponse())==null?void 0:(r=a.playerConfig)==null?void 0:(P=r.daiConfig)==null?void 0:P.enableServerStitchedDai)||!1}; zm4=function(e){return e.W.G().X("html5_enable_vod_slar_with_notify_pacf")}; GwL=function(e){return e.W.G().X("html5_recognize_predict_start_cue_point")}; DR=function(e){return e.W.G().experiments.FM("enable_desktop_player_underlay")}; EnN=function(e){return e.W.G().experiments.FM("html5_load_empty_player_in_media_break_sub_lra")}; cm=function(e){return e.W.G().experiments.FM("html5_load_ads_instead_of_cue")}; oI=function(e){return e.W.G().experiments.FM("html5_preload_ads")}; bsL=function(e){return e.W.G().experiments.FM("should_ignore_cuepoints_during_lifa_preroll")}; dn=function(e){return e.W.G().experiments.FM("enable_ads_control_flow_deterministic_id_generation")}; t1L=function(e){return e.W.G().experiments.FM("enable_desktop_discovery_video_abandon_pings")||g.EA(e.W.G())}; gnI=function(e){return e.W.G().experiments.FM("enable_progres_commands_lr_feeds")}; F$=function(e){return e.W.G().experiments.FM("html5_cuepoint_identifier_logging")}; RZ4=function(e){e=e.W.getVideoData(1);return!!e&&e.X("html5_preload_first_vod_video_ad")&&!e.isDaiEnabled()&&!e.isLivePlayback}; Zs4=function(e){return e.W.G().experiments.FM("html5_ssdai_enable_media_end_cue_range")}; Osz=function(e){switch(e){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}}; kwO=function(){g.aK.call(this);var e=this;this.S={};this.addOnDisposeCallback(function(){for(var a=g.Z(Object.keys(e.S)),r=a.next();!r.done;r=a.next())delete e.S[r.value]})}; aw=function(){if(dSL===null){dSL=new kwO;ZX(FE).T="b";var e=ZX(FE),a=I5(e)=="h"||I5(e)=="b",r=!(Pa(),!1);a&&r&&(e.C=!0,e.Z=new TNT)}return dSL}; JfJ=function(e,a,r){e.S[a]=r}; DSj=function(e){switch(e){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; rU=function(e,a,r){this.aH=e;this.W=a;this.bW=r;this.T=new Set;this.S=new Map;aw().subscribe("adactiveviewmeasurable",this.ZT,this);aw().subscribe("adfullyviewableaudiblehalfdurationimpression",this.lU,this);aw().subscribe("adviewableimpression",this.wp,this);aw().subscribe("adaudioaudible",this.Wm,this);aw().subscribe("adaudiomeasurable",this.e6,this)}; BG=function(e,a,r){var P=r.F9,B=r.f6,h=r.listener,c=r.rU;r=r.qK===void 0?!1:r.qK;if(e.S.has(a))o9("Unexpected registration of layout in LidarApi");else{if(c){if(e.T.has(c))return;e.T.add(c)}e.S.set(a,h);Jk(Pa().Z5,"fmd",1);gCz(ZX(FE),P);var y=r?a:void 0;JfJ(aw(),a,{Gw:function(){if(!B)return{};var T=e.W.getPresentingPlayerType(!0),X;return(X=e.W.getVideoData(T))!=null&&X.isAd()?{currentTime:e.aH.get().getCurrentTimeSec(T,!1,y),duration:B,isPlaying:PG(e.aH.get(),T).isPlaying(),isVpaid:!1,isYouTube:!0, volume:e.aH.get().isMuted()?0:e.aH.get().getVolume()/100}:{}}})}}; hR=function(e,a){e.S.has(a)?(e.S.delete(a),delete aw().S[a]):o9("Unexpected unregistration of layout in LidarApi")}; V1L=function(e,a){if(e.W.isLifaAdPlaying()){var r=e.W.jZ(!0,!0);e.u7(a,r.width*.5*1.1,r.height*.25*1.1,r.width*.5*.9,r.height*.5*.9)}}; Wt4=function(e,a,r){var P={};$ST(e,P,a,r);Qej(P);P.LACT=cG(function(){return tB().toString()}); P.VIS=cG(function(){return e.getVisibilityState().toString()}); P.SDKV="h.3.0";P.VOL=cG(function(){return e.isMuted()?"0":Math.round(e.getVolume()).toString()}); P.VED="";return P}; lfN=function(e,a){var r={};if(a||!e||!e.kind)return r;if(e.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||e.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!e.adTimeOffset||!e.adTimeOffset.offsetStartMilliseconds)return g.D6(Error("malformed AdPlacementConfig")),r;r.MIDROLL_POS=cG(ld(Math.round(Y8(e.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else r.MIDROLL_POS=cG(ld("0"));return r}; cG=function(e){return{toString:function(){return e()}}}; LtO=function(e,a,r){function P(y,T){(T=r[T])&&(h[y]=T)} function B(y,T){(T=r[T])&&(h[y]=c(T))} if(!r||g.Ak(r))return e;var h=Object.assign({},e),c=a?encodeURIComponent:function(y){return y}; B("DV_VIEWABILITY","doubleVerifyViewability");B("IAS_VIEWABILITY","integralAdsViewability");B("MOAT_INIT","moatInit");B("MOAT_VIEWABILITY","moatViewability");P("GOOGLE_VIEWABILITY","googleViewability");P("VIEWABILITY","viewability");return h}; $ST=function(e,a,r,P){a.CPN=cG(function(){var B;(B=e.getVideoData(1))?B=B.clientPlaybackNonce:(g.VJ(Error("Video data is null.")),B=null);return B}); a.AD_MT=cG(function(){if(P!=null)var B=P;else{var h=r;e.G().X("html5_ssap_use_cpn_to_get_time")||(h=void 0);if(e.G().X("enable_h5_shorts_ad_fill_ad_mt_macro")||e.G().X("enable_desktop_discovery_pings_ad_mt_macro")||g.EA(e.G())){var c=e.getPresentingPlayerType(!0),y;B=((y=e.getVideoData(c))==null?0:y.isAd())?YSJ(e,c,h):0}else B=YSJ(e,2,h)}return wkL(B)}); a.MT=cG(function(){return wkL(e.getCurrentTime(1,!1))}); a.P_H=cG(function(){return e.MF().TA().height.toString()}); a.P_W=cG(function(){return e.MF().TA().width.toString()}); a.PV_H=cG(function(){return e.MF().getVideoContentRect().height.toString()}); a.PV_W=cG(function(){return e.MF().getVideoContentRect().width.toString()})}; wkL=function(e){return Math.round(Math.max(0,e*1E3)).toString()}; Qej=function(e){e.CONN=cG(ld("0"));e.WT=cG(function(){return Date.now().toString()})}; YSJ=function(e,a,r){return r!==void 0?e.getCurrentTime(a,!1,r):e.getCurrentTime(a,!1)}; pk4=function(){}; isI=function(e,a,r,P,B){var h,c,y,T,X,f,A,U,C,G,O,d,W;g.Y(function(V){switch(V.T){case 1:h=!!a.scrubReferrer;c=g.Vm(a.baseUrl,LtO(r,h,P));y={};if(!a.headers){V.Oo(2);break}T=e.L();if(!T.S){X=T.getValue();V.Oo(3);break}return g.l(V,T.S,4);case 4:X=V.S;case 3:f=X;A=g.Z(a.headers);for(U=A.next();!U.done;U=A.next())switch(C=U.value,C.headerType){case "VISITOR_ID":g.IM("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=g.IM("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.IM("EOM_VISITOR_DATA")&&(y["X-Goog-EOM-Visitor-Id"]= g.IM("EOM_VISITOR_DATA"));break;case "USER_AUTH":f&&(y.Authorization="Bearer "+f);break;case "PLUS_PAGE_ID":(G=e.C())&&(y["X-Goog-PageId"]=G);break;case "AUTH_USER":O=e.S();!f&&O&&(y["X-Goog-AuthUser"]=O);break;case "DATASYNC_ID":if(d=void 0,(d=e.B())==null?0:d.FM("enable_datasync_id_header_in_web_vss_pings"))W=e.T(),re(c)&&g.IM("LOGGED_IN")&&W&&(y["X-YouTube-DataSync-Id"]=W)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];case 2:g.Lu(c,void 0,h,Object.keys(y).length!== 0?y:void 0,"",!0,B),g.OO(V)}})}; z$j=function(e,a,r,P,B){this.L=e;this.C=a;this.S=r;this.T=P;this.B=B}; NRl=function(e,a){this.S=e;this.bW=a}; ow=function(e,a,r,P,B,h,c){var y=y===void 0?new z$j(function(){var T=e.G(),X=e.getVideoData(1);return g.$G(T,X?g.ok(X):"")},function(){return e.G().pageId},function(){return e.G().TQ},function(){var T; return(T=e.G().datasyncId)!=null?T:""},function(){return e.G().experiments}):y; this.W=e;this.T=a;this.BA=r;this.DQ=P;this.z$=B;this.bW=h;this.JR=c;this.L=y;this.IP=null;this.S=new Map;this.B=new NRl(y,this.bW)}; IfL=function(e,a,r,P,B){var h=BZ(e.T.get(),r);h?(r=CH(e,xSL(h),h,void 0,void 0,P),a.hasOwnProperty("baseUrl")?e.L.send(a,r):e.B.send(a,r,{},B)):o9("Trying to ping from an unknown layout",void 0,void 0,{layoutId:r})}; Yr4=function(e,a,r,P,B,h){P=P===void 0?[]:P;var c=BZ(e.T.get(),a);if(c){var y=e.BA.get().FH(a,r),T=CH(e,xSL(c),c,B,h);P.forEach(function(X,f){X.baseUrl&&(e.B.send(X.baseUrl,T,y,X.attributionSrcMode),X.serializedAdPingMetadata&&e.z$.AD("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,c,new UQj(X,f),void 0,void 0,c.adLayoutLoggingData))})}else o9("Trying to track from an unknown layout.",void 0,void 0,{layoutId:a, trackingType:r})}; nH=function(e,a){e.W.sendVideoStatsEngageEvent(a,void 0,2)}; Jc=function(e,a){g.BU("adsClientStateChange",a)}; Hs4=function(e,a){e.S.has(a.x4())?o9("Trying to register an existing AdErrorInfoSupplier."):e.S.set(a.x4(),a)}; qSO=function(e,a){e.S.delete(a.x4())||o9("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; $D=function(e,a,r){typeof r==="string"?e.W.getVideoData(1).oI(a,r):e.W.getVideoData(1).nf(a,r)}; xSL=function(e){var a=sc(e.clientMetadata,"metadata_type_ad_placement_config");e=sc(e.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:a,ZV:e}}; CH=function(e,a,r,P,B,h){var c=r?vny(e):{},y=r?R$T(e,r.layoutId):{},T=SS4(e),X,f=B!=null?B:(X=vi(e.DQ.get(),2))==null?void 0:X.clientPlaybackNonce;B=void 0;if(r){var A;if((A=e.JR.S.get(r.layoutId))==null?0:A.qK)B=r.layoutId}A={};e=Object.assign({},Wt4(e.W,B,P),lfN(a.adPlacementConfig,(r==null?void 0:r.renderingContent)!==void 0),y,c,T,(A.FINAL=cG(function(){return"1"}),A.AD_CPN=cG(function(){return f||""}),A)); (r==null?void 0:r.renderingContent)!==void 0||(e.SLOT_POS=cG(function(){return(a.ZV||0).toString()})); r={};h=Object.assign({},e,h);e=g.Z(Object.values(sel));for(P=e.next();!P.done;P=e.next())P=P.value,c=h[P],c!=null&&c.toString()!=null&&(r[P]=c.toString());return r}; vny=function(e){var a={},r,P=(r=e.IP)==null?void 0:r.T0/1E3;P!=null&&(a.SURVEY_ELAPSED_MS=cG(function(){return Math.round(P*1E3).toString()})); a.SURVEY_LOCAL_TIME_EPOCH_S=cG(function(){return Math.round(Date.now()/1E3).toString()}); return a}; R$T=function(e,a){e=e.S.get(a);if(!e)return{};e=e.fX();if(!e)return{};a={};return a.YT_ERROR_CODE=e.Vy.toString(),a.ERRORCODE=e.jW.toString(),a.ERROR_MSG=e.errorMessage,a}; SS4=function(e){var a={},r=e.W.getVideoData(1);a.ASR=cG(function(){var P;return(P=r==null?void 0:r.Vh)!=null?P:null}); a.EI=cG(function(){var P;return(P=r==null?void 0:r.eventId)!=null?P:null}); return a}; nS=function(e,a,r){g.N.call(this);this.W=e;this.s5=a;this.bW=r;this.listeners=[];this.eI=null;this.V1=new Map;a=new g.Zc(this);g.x(this,a);a.j(e,"videodatachange",this.aXH);a.j(e,"serverstitchedvideochange",this.vhQ);this.TE=vi(this)}; vi=function(e,a){var r=e.W.getVideoData(a);return r?e.x0(r,a||e.W.getPresentingPlayerType(!0)):null}; mSj=function(e,a,r){var P=e.x0(a,r);e.TE=P;e.listeners.forEach(function(B){B.yc(P)})}; Ft4=function(e){switch(e){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}}; y4=function(e,a,r){g.N.call(this);this.W=e;this.DQ=a;this.bW=r;this.listeners=[];this.xB=[];this.S=function(){o9("Called 'doUnlockPreroll' before it's initialized.")}; a=new Ou(this);r=new g.Zc(this);g.x(this,r);g.x(this,a);a.j(e,"progresssync",this.wOW);a.j(e,"presentingplayerstatechange",this.ib1);a.j(e,"fullscreentoggled",this.onFullscreenToggled);a.j(e,"onVolumeChange",this.onVolumeChange);a.j(e,"minimized",this.C_);a.j(e,"overlayvisibilitychange",this.tj);a.j(e,"shortsadswipe",this.Aj);a.j(e,"resize",this.VX);r.j(e,g.SS("appad"),this.mV)}; Td=function(e){eT(e.bW.get())||e.S()}; M1J=function(e,a){e.xB=e.xB.filter(function(r){return r!==a})}; XC=function(e,a,r){return e.getCurrentTimeSec(a,r)}; fS=function(e,a){var r;a=(r=e.DQ.get().V1.get(a))!=null?r:null;if(a===null)return o9("Expected ad video start time on playback timeline"),0;e=e.W.getCurrentTime(2,!0);return e0){var h=a.end.toString();B.forEach(function(c){(c=c.config&&c.config.adPlacementConfig)&&c.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&c.adTimeOffset&&c.adTimeOffset.offsetEndMilliseconds==="-1"&&c.adTimeOffset.offsetEndMilliseconds!==h&&(c.adTimeOffset.offsetEndMilliseconds=h)}); P.map(function(c){return g.H(c,X$)}).forEach(function(c){var y; (c=c==null?void 0:(y=c.slotEntryTrigger)==null?void 0:y.mediaTimeRangeTrigger)&&c.offsetEndMilliseconds==="-1"&&(c.offsetEndMilliseconds=h)})}return{dR:B, adSlots:P,yd:!1,ssdaiAdsConfig:e.ssdaiAdsConfig}}; EF=function(e){g.N.call(this);this.W=e;this.listeners=[];this.S=new Ou(this);g.x(this,this.S);this.S.j(this.W,"aduxclicked",this.onAdUxClicked);this.S.j(this.W,"aduxmouseover",this.qk);this.S.j(this.W,"aduxmouseout",this.y0);this.S.j(this.W,"muteadaccepted",this.XWm)}; alN=function(e,a,r){a=g.ba(a,function(P){return new I1z(P,r,P.id)}); e.W.qF("onAdUxUpdate",a)}; bC=function(e,a){e=g.Z(e.listeners);for(var r=e.next();!r.done;r=e.next())a(r.value)}; tR=function(e,a){this.T=e;this.B=a===void 0?!1:a;this.S={}}; rzG=function(e,a){var r=e.startSecs+e.Ug;r=r<=0?null:r;if(r===null)return null;switch(e.event){case "start":case "continue":case "stop":break;case "predictStart":if(a)break;return null;default:return null}a=Math.max(e.startSecs,0);return{Jv:new ti(a,r),KI:new oO(a,r-a,e.context,e.identifier,e.event,e.S)}}; PqN=function(){this.S=[]}; LcL=function(e,a,r){var P=g.HB(e.S,a);if(P>=0)return a;a=-P-1;return a>=e.S.length||e.S[a]>r?null:e.S[a]}; gU=function(e,a,r){g.N.call(this);this.W=e;this.bW=a;this.ZQ=r;this.listeners=[];this.L=!1;this.Ft=[];this.S=null;this.C=new tR(this,GwL(a.get()));this.B=new PqN;this.T=null}; B4a=function(e,a){e.Ft.push(a);for(var r=!1,P=g.Z(e.listeners),B=P.next();!B.done;B=P.next())r=B.value.eC(a)||r;e.L=r;F$(e.bW.get())&&$D(e.ZQ.get(),"onci","cpi."+a.identifier+";cpe."+a.event+";cps."+a.startSecs+";cbi."+r)}; czN=function(e,a){Jc(e.ZQ.get(),{cuepointTrigger:{event:hyw(a.event),cuepointId:a.identifier,totalCueDurationMs:a.Ug*1E3,playheadTimeMs:a.S,cueStartTimeMs:a.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:e.W.getVideoData(1).clientPlaybackNonce}})}; hyw=function(e){switch(e){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return X8(e,"Unexpected cuepoint event")}}; Zx=function(e){this.W=e}; OF=function(e){this.W=e}; oNM=function(e){switch(e){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:X8(e,"unknown transitionReason")}}; kJ=function(){g.N.apply(this,arguments);this.ddr=new Map}; nN9=function(e){this.W=e}; yzV=function(e,a,r,P,B){g.N.call(this);var h=this,c=$l(function(){return new k_(h.bW)}); g.x(this,c);var y=$l(function(){return new JO(c,h.bW)}); g.x(this,y);var T=$l(function(){return new rn}); g.x(this,T);var X=$l(function(){return new eH(e)}); g.x(this,X);var f=$l(function(){return new D3(c,y,h.bW)}); g.x(this,f);var A=$l(function(){return new lD}); g.x(this,A);this.oz=$l(function(){return new EF(a)}); g.x(this,this.oz);this.Cr=$l(function(){return new W_(B)}); g.x(this,this.Cr);this.lw=$l(function(){return new Fj(a)}); g.x(this,this.lw);this.Lb=$l(function(){return new MC(a)}); g.x(this,this.Lb);this.Iz=$l(function(){return new jF(a)}); g.x(this,this.Iz);this.V2=$l(function(){return new uV(a)}); g.x(this,this.V2);this.bW=$l(function(){return new KF(a)}); g.x(this,this.bW);var U=$l(function(){return new Gd(P)}); g.x(this,U);var C=$l(function(){return new aF(h.bW)}); g.x(this,C);this.AA=$l(function(){return new Zx(a)}); g.x(this,this.AA);this.MK=$l(function(){return new Yl}); g.x(this,this.MK);this.DQ=$l(function(){return new nS(a,A,h.bW)}); g.x(this,this.DQ);var G=sJ({DQ:this.DQ,bW:this.bW,bB:C}),O=G.context,d=G.JR;this.z$=G.z$;this.GX=$l(function(){return new gU(a,h.bW,h.ZQ)}); g.x(this,this.GX);this.gg=$l(function(){return new OF(a)}); g.x(this,this.gg);this.aH=$l(function(){return new y4(a,h.DQ,h.bW)}); g.x(this,this.aH);this.aU=$l(function(){return new kJ}); g.x(this,this.aU);G=$l(function(){return new vz(c,f,y,h.bW,C,"SLOT_TYPE_ABOVE_FEED",h.aH,h.sG,h.y5)}); g.x(this,G);this.FE=$l(function(){return new wm(h.bW)}); this.BA=$l(function(){return new rU(h.aH,a,h.bW)}); g.x(this,this.BA);this.ZQ=$l(function(){return new ow(a,T,h.BA,h.DQ,h.z$,h.bW,d)}); g.x(this,this.ZQ);this.dc=new u2(j7,dU,function(V,L,z,q){return Je(y.get(),V,L,z,q)},X,f,y,C,this.bW,this.DQ); g.x(this,this.dc);this.aO=new KR(X,G,r,this.bW,e,this.DQ,this.aH,this.lw);g.x(this,this.aO);var W=new m_(a,this.aO,this.aH,this.DQ,this.GX);this.cV=$l(function(){return W}); this.CU=W;this.sG=new sl(X,f,this.cV,this.GX,this.aH,this.bW,this.ZQ,this.gg);g.x(this,this.sG);this.yP=new aj(X,f,this.Lb,this.cV,O);g.x(this,this.yP);this.l5=new Tr(this.bW,X,f,G,this.DQ,this.yP,r,this.Iz);g.x(this,this.l5);this.Ty=$l(function(){return new Km(U,y,C,h.bW,h.ZQ,h.aH,h.gg)}); g.x(this,this.Ty);this.aL=$l(function(){return new eh}); g.x(this,this.aL);this.B7=new yb(e,this.oz,this.bW);g.x(this,this.B7);this.G$=new TC(e);g.x(this,this.G$);this.H_=new Xl(e);g.x(this,this.H_);this.hR=new AO(e,this.cV,O);g.x(this,this.hR);this.V5=new Ui(e,this.Lb,this.aH,this.DQ,O);g.x(this,this.V5);this.uU=new CA(e,this.DQ);g.x(this,this.uU);this.y5=new bD(e,this.GX,this.aH,this.ZQ,this.cV,this.sG);g.x(this,this.y5);this.Zw=new GC(e);g.x(this,this.Zw);this.Xw=new Oi(e);g.x(this,this.Xw);this.xP=new Ei(e);g.x(this,this.xP);this.KN=new Z3(e);g.x(this, this.KN);this.Xw=new Oi(e);g.x(this,this.Xw);this.gy=$l(function(){return new hO}); g.x(this,this.gy);this.YP=$l(function(){return new cZ(h.aH)}); g.x(this,this.YP);this.XW=$l(function(){return new eWO(h.oz,h.ZQ,e,T,h.BA)}); g.x(this,this.XW);this.Ri=$l(function(){return new zD(h.l5,X,c)}); g.x(this,this.Ri);this.ai=$l(function(){return new I2(h.bW,h.ZQ,h.Zw,h.BA)}); g.x(this,this.ai);this.A4=$l(function(){return new p7(e,h.Xw,h.Zw,h.DQ,h.gg,h.aH,h.aU,h.ZQ,A,h.GX,h.BA,h.FE,h.Iz,h.Lb,h.lw,h.V2,h.Cr,h.AA,h.bW,T,O,d)}); g.x(this,this.A4);this.Gr=$l(function(){return new UII(h.aH,h.ZQ,h.Cr,h.bW,h.BA,h.DQ)}); g.x(this,this.Gr);this.JQ=$l(function(){return new PRJ(h.oz,h.aH,h.ZQ,T,h.BA,h.H_,h.KN,h.Cr,h.bW,r)}); g.x(this,this.JQ);this.MB=$l(function(){return new atL(h.oz,h.ZQ,T)}); g.x(this,this.MB);this.Je=new CS(e,this.MK,c);g.x(this,this.Je);this.f_={r6:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l5],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.sG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.aO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yP]]),ek:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ty],["SLOT_TYPE_ABOVE_FEED",this.aL],["SLOT_TYPE_FORECASTING",this.aL], ["SLOT_TYPE_IN_PLAYER",this.aL],["SLOT_TYPE_PLAYER_BYTES",this.aL],["SLOT_TYPE_PLAYER_UNDERLAY",this.aL],["SLOT_TYPE_PLAYBACK_TRACKING",this.aL],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.aL]]),uy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.B7],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.B7],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.G$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.G$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.G$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.G$],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.G$],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.G$],["TRIGGER_TYPE_CLOSE_REQUESTED",this.H_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hR],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.V5],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.V5],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.V5],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.V5],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.V5],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.V5],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.V5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uU],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.hR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xP],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.KN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.y5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.y5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.y5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.y5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.y5]]),YI:new Map([["SLOT_TYPE_ABOVE_FEED",this.gy], ["SLOT_TYPE_AD_BREAK_REQUEST",this.gy],["SLOT_TYPE_FORECASTING",this.gy],["SLOT_TYPE_IN_PLAYER",this.gy],["SLOT_TYPE_PLAYER_BYTES",this.YP],["SLOT_TYPE_PLAYER_UNDERLAY",this.gy],["SLOT_TYPE_PLAYBACK_TRACKING",this.gy],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.gy]]),NH:new Map([["SLOT_TYPE_ABOVE_FEED",this.XW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ri],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_PLAYER_BYTES",this.A4],["SLOT_TYPE_PLAYBACK_TRACKING",this.Gr],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Gr],["SLOT_TYPE_IN_PLAYER",this.JQ],["SLOT_TYPE_PLAYER_UNDERLAY",this.MB]])};this.listeners=[T.get()];this.XF={l5:this.l5,Cq:this.bW.get(),dP:this.Cr.get(),oY:this.aH.get(),aO:this.aO,fD:c.get(),LA:this.MK.get(),NK:this.B7,tO:T.get(),RU:this.DQ.get()}}; T49=function(e,a,r,P,B){g.N.call(this);var h=this,c=$l(function(){return new k_(h.bW)}); g.x(this,c);var y=$l(function(){return new JO(c,h.bW)}); g.x(this,y);var T=$l(function(){return new rn}); g.x(this,T);var X=$l(function(){return new eH(e)}); g.x(this,X);var f=$l(function(){return new D3(c,y,h.bW)}); g.x(this,f);var A=$l(function(){return new lD}); g.x(this,A);this.oz=$l(function(){return new EF(a)}); g.x(this,this.oz);this.Cr=$l(function(){return new W_(B)}); g.x(this,this.Cr);this.lw=$l(function(){return new Fj(a)}); g.x(this,this.lw);this.Lb=$l(function(){return new MC(a)}); g.x(this,this.Lb);this.Iz=$l(function(){return new jF(a)}); g.x(this,this.Iz);this.V2=$l(function(){return new uV(a)}); g.x(this,this.V2);this.bW=$l(function(){return new KF(a)}); g.x(this,this.bW);var U=$l(function(){return new Gd(P)}); g.x(this,U);var C=$l(function(){return new aF(h.bW)}); g.x(this,C);var G=$l(function(){return new vz(c,f,y,h.bW,C,null,null,h.sG,h.y5)}); g.x(this,G);this.AA=$l(function(){return new Zx(a)}); g.x(this,this.AA);this.MK=$l(function(){return new Yl}); g.x(this,this.MK);this.DQ=$l(function(){return new nS(a,A,h.bW)}); g.x(this,this.DQ);var O=sJ({DQ:this.DQ,bW:this.bW,bB:C}),d=O.context,W=O.JR;this.z$=O.z$;this.GX=$l(function(){return new gU(a,h.bW,h.ZQ)}); this.aH=$l(function(){return new y4(a,h.DQ,h.bW)}); g.x(this,this.aH);this.aU=$l(function(){return new kJ}); g.x(this,this.aU);this.BA=$l(function(){return new rU(h.aH,a,h.bW)}); g.x(this,this.BA);this.ZQ=$l(function(){return new ow(a,T,h.BA,h.DQ,h.z$,h.bW,W)}); g.x(this,this.ZQ);this.FE=$l(function(){return new wm(h.bW)}); g.x(this,this.FE);this.dc=new u2(j7,dU,function(L,z,q,M){return Je(y.get(),L,z,q,M)},X,f,y,C,this.bW,this.DQ); g.x(this,this.dc);this.aO=new KR(X,G,r,this.bW,e,this.DQ,this.aH,this.lw);g.x(this,this.aO);var V=new m_(a,this.aO,this.aH,this.DQ,this.GX);this.cV=$l(function(){return V}); this.CU=V;this.sG=new sl(X,f,this.cV,this.GX,this.aH,this.bW,this.ZQ);g.x(this,this.sG);this.yP=new aj(X,f,this.Lb,this.cV,d);g.x(this,this.yP);this.l5=new Tr(this.bW,X,f,G,this.DQ,this.yP,r,this.Iz);g.x(this,this.l5);this.Ty=$l(function(){return new Km(U,y,C,h.bW,h.ZQ,h.aH)}); g.x(this,this.Ty);this.aL=$l(function(){return new eh}); g.x(this,this.aL);this.B7=new yb(e,this.oz,this.bW);g.x(this,this.B7);this.G$=new TC(e);g.x(this,this.G$);this.H_=new Xl(e);g.x(this,this.H_);this.hR=new AO(e,this.cV,d);g.x(this,this.hR);this.V5=new Ui(e,this.Lb,this.aH,this.DQ,d);g.x(this,this.V5);this.Zw=new GC(e);g.x(this,this.Zw);this.xP=new Ei(e);g.x(this,this.xP);this.KN=new Z3(e);g.x(this,this.KN);this.gg=$l(function(){return new OF(a)}); g.x(this,this.gg);this.Xw=new Oi(e);g.x(this,this.Xw);this.y5=new bD(e,this.GX,this.aH,this.ZQ,this.cV,this.sG);g.x(this,this.y5);this.gy=$l(function(){return new hO}); g.x(this,this.gy);this.YP=$l(function(){return new cZ(h.aH)}); g.x(this,this.YP);this.Ri=$l(function(){return new zD(h.l5,X,c)}); g.x(this,this.Ri);this.ai=$l(function(){return new I2(h.bW,h.ZQ,h.Zw,h.BA)}); g.x(this,this.ai);this.JQ=$l(function(){return new BH4(h.oz,h.aH,h.ZQ,T,h.BA,h.H_,h.KN,h.Cr,h.bW,r)}); g.x(this,this.JQ);this.A4=$l(function(){return new iy(e,h.Xw,h.Zw,h.ZQ,h.BA,h.FE,h.Iz,h.DQ,h.aH,h.aU,h.Lb,h.lw,h.V2,h.Cr,h.AA,h.bW,h.gg,d,W)}); g.x(this,this.A4);this.Je=new CS(e,this.MK,c);g.x(this,this.Je);this.f_={r6:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l5],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.sG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.aO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yP]]),ek:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ty],["SLOT_TYPE_FORECASTING",this.aL],["SLOT_TYPE_IN_PLAYER",this.aL], ["SLOT_TYPE_PLAYER_BYTES",this.aL]]),uy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.B7],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.G$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.G$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.G$], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.G$],["TRIGGER_TYPE_CLOSE_REQUESTED",this.H_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.V5],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.V5],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.V5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xP],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.KN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.y5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.y5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.y5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.y5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.y5]]),YI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gy],["SLOT_TYPE_FORECASTING",this.gy],["SLOT_TYPE_IN_PLAYER",this.gy],["SLOT_TYPE_PLAYER_BYTES",this.YP]]), NH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ri],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_IN_PLAYER",this.JQ],["SLOT_TYPE_PLAYER_BYTES",this.A4]])};this.listeners=[T.get()];this.XF={l5:this.l5,Cq:this.bW.get(),dP:this.Cr.get(),oY:this.aH.get(),aO:this.aO,fD:c.get(),LA:this.MK.get(),NK:this.B7,tO:T.get(),RU:this.DQ.get()}}; XIB=function(e,a,r,P,B){g.N.call(this);var h=this,c=$l(function(){return new k_(h.bW)}); g.x(this,c);var y=$l(function(){return new JO(c,h.bW)}); g.x(this,y);var T=$l(function(){return new rn}); g.x(this,T);var X=$l(function(){return new eH(e)}); g.x(this,X);var f=$l(function(){return new D3(c,y,h.bW)}); g.x(this,f);var A=$l(function(){return new lD}); g.x(this,A);this.oz=$l(function(){return new EF(a)}); g.x(this,this.oz);this.Cr=$l(function(){return new W_(B)}); g.x(this,this.Cr);this.lw=$l(function(){return new Fj(a)}); g.x(this,this.lw);this.Lb=$l(function(){return new MC(a)}); g.x(this,this.Lb);this.Iz=$l(function(){return new jF(a)}); g.x(this,this.Iz);this.V2=$l(function(){return new uV(a)}); g.x(this,this.V2);this.bW=$l(function(){return new KF(a)}); g.x(this,this.bW);var U=$l(function(){return new Gd(P)}); g.x(this,U);var C=$l(function(){return new aF(h.bW)}); g.x(this,C);var G=$l(function(){return new vz(c,f,y,h.bW,C,null,null,null,null)}); g.x(this,G);this.AA=$l(function(){return new Zx(a)}); g.x(this,this.AA);this.DQ=$l(function(){return new nS(a,A,h.bW)}); g.x(this,this.DQ);var O=sJ({DQ:this.DQ,bW:this.bW,bB:C}),d=O.context,W=O.JR;this.z$=O.z$;this.aH=$l(function(){return new y4(a,h.DQ,h.bW)}); g.x(this,this.aH);this.aU=$l(function(){return new kJ}); g.x(this,this.aU);this.BA=$l(function(){return new rU(h.aH,a,h.bW)}); g.x(this,this.BA);this.ZQ=$l(function(){return new ow(a,T,h.BA,h.DQ,h.z$,h.bW,W)}); g.x(this,this.ZQ);this.FE=$l(function(){return new wm(h.bW)}); g.x(this,this.FE);this.dc=new u2(j7,dU,function(L,z,q,M){return Je(y.get(),L,z,q,M)},X,f,y,C,this.bW,this.DQ); g.x(this,this.dc);this.aO=new KR(X,G,r,this.bW,e,this.DQ,this.aH,this.lw);g.x(this,this.aO);var V=new m_(a,this.aO,this.aH,this.DQ);this.cV=$l(function(){return V}); this.CU=V;this.yP=new aj(X,f,this.Lb,this.cV,d);g.x(this,this.yP);this.l5=new Tr(this.bW,X,f,G,this.DQ,this.yP,r,this.Iz);g.x(this,this.l5);this.Ty=$l(function(){return new Km(U,y,C,h.bW,h.ZQ,h.aH)}); g.x(this,this.Ty);this.aL=$l(function(){return new eh}); g.x(this,this.aL);this.B7=new yb(e,this.oz,this.bW);g.x(this,this.B7);this.G$=new TC(e);g.x(this,this.G$);this.hR=new AO(e,this.cV,d);g.x(this,this.hR);this.V5=new Ui(e,this.Lb,this.aH,this.DQ,d);g.x(this,this.V5);this.Zw=new GC(e);g.x(this,this.Zw);this.xP=new Ei(e);g.x(this,this.xP);this.gg=$l(function(){return new OF(a)}); g.x(this,this.gg);this.Xw=new Oi(e);g.x(this,this.Xw);this.gy=$l(function(){return new hO}); g.x(this,this.gy);this.YP=$l(function(){return new cZ(h.aH)}); g.x(this,this.YP);this.Ri=$l(function(){return new zD(h.l5,X,c)}); g.x(this,this.Ri);this.ai=$l(function(){return new I2(h.bW,h.ZQ,h.Zw,h.BA)}); g.x(this,this.ai);this.YF=$l(function(){return new A_4(h.oz,h.aH,h.ZQ,T,r,h.bW)}); g.x(this,this.YF);this.A4=$l(function(){return new iy(e,h.Xw,h.Zw,h.ZQ,h.BA,h.FE,h.Iz,h.DQ,h.aH,h.aU,h.Lb,h.lw,h.V2,h.Cr,h.AA,h.bW,h.gg,d,W)}); g.x(this,this.A4);this.f_={r6:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l5],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.aO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yP]]),ek:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ty],["SLOT_TYPE_FORECASTING",this.aL],["SLOT_TYPE_IN_PLAYER",this.aL],["SLOT_TYPE_PLAYER_BYTES",this.aL]]),uy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.B7],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.G$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.G$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.G$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.G$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.V5],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.V5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xw]]),YI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gy],["SLOT_TYPE_ABOVE_FEED",this.gy],["SLOT_TYPE_FORECASTING",this.gy],["SLOT_TYPE_IN_PLAYER",this.gy],["SLOT_TYPE_PLAYER_BYTES",this.YP]]),NH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ri],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_IN_PLAYER", this.YF],["SLOT_TYPE_PLAYER_BYTES",this.A4]])};this.listeners=[T.get()];this.XF={l5:this.l5,Cq:this.bW.get(),dP:this.Cr.get(),oY:this.aH.get(),aO:this.aO,fD:c.get(),LA:null,NK:this.B7,tO:T.get(),RU:this.DQ.get()}}; flG=function(e,a,r,P,B){g.N.call(this);var h=this,c=$l(function(){return new k_(h.bW)}); g.x(this,c);var y=$l(function(){return new JO(c,h.bW)}); g.x(this,y);var T=$l(function(){return new rn}); g.x(this,T);var X=$l(function(){return new eH(e)}); g.x(this,X);var f=$l(function(){return new D3(c,y,h.bW)}); g.x(this,f);var A=$l(function(){return new lD}); g.x(this,A);this.KY=$l(function(){return new nN9(a)}); g.x(this,this.KY);this.oz=$l(function(){return new EF(a)}); g.x(this,this.oz);this.Cr=$l(function(){return new W_(B)}); g.x(this,this.Cr);this.lw=$l(function(){return new Fj(a)}); g.x(this,this.lw);this.Lb=$l(function(){return new MC(a)}); g.x(this,this.Lb);this.Iz=$l(function(){return new jF(a)}); g.x(this,this.Iz);this.V2=$l(function(){return new uV(a)}); g.x(this,this.V2);this.bW=$l(function(){return new KF(a)}); g.x(this,this.bW);var U=$l(function(){return new Gd(P)}); g.x(this,U);var C=$l(function(){return new aF(h.bW)}); g.x(this,C);var G=$l(function(){return new vz(c,f,y,h.bW,C,null,null,null,null)}); g.x(this,G);this.AA=$l(function(){return new Zx(a)}); g.x(this,this.AA);this.DQ=$l(function(){return new nS(a,A,h.bW)}); g.x(this,this.DQ);var O=sJ({DQ:this.DQ,bW:this.bW,bB:C}),d=O.context,W=O.JR;this.z$=O.z$;this.aH=$l(function(){return new y4(a,h.DQ,h.bW)}); g.x(this,this.aH);this.aU=$l(function(){return new kJ}); g.x(this,this.aU);this.BA=$l(function(){return new rU(h.aH,a,h.bW)}); g.x(this,this.BA);this.ZQ=$l(function(){return new ow(a,T,h.BA,h.DQ,h.z$,h.bW,W)}); g.x(this,this.ZQ);this.FE=$l(function(){return new wm(h.bW)}); g.x(this,this.FE);this.dc=new u2(HyL,dU,function(L,z,q,M){return X_j(y.get(),L,z,q,M)},X,f,y,C,this.bW,this.DQ); g.x(this,this.dc);this.aO=new KR(X,G,r,this.bW,e,this.DQ,this.aH,this.lw);g.x(this,this.aO);var V=new m_(a,this.aO,this.aH,this.DQ);this.cV=$l(function(){return V}); this.CU=V;this.yP=new aj(X,f,this.Lb,this.cV,d);g.x(this,this.yP);this.l5=new Tr(this.bW,X,f,G,this.DQ,this.yP,r,this.Iz);g.x(this,this.l5);this.Ty=$l(function(){return new Km(U,y,C,h.bW,h.ZQ,h.aH)}); g.x(this,this.Ty);this.aL=$l(function(){return new eh}); g.x(this,this.aL);this.B7=new yb(e,this.oz,this.bW);g.x(this,this.B7);this.G$=new TC(e);g.x(this,this.G$);this.hR=new AO(e,this.cV,d);g.x(this,this.hR);this.V5=new Ui(e,this.Lb,this.aH,this.DQ,d);g.x(this,this.V5);this.Zw=new GC(e);g.x(this,this.Zw);this.xP=new Ei(e);g.x(this,this.xP);this.gg=$l(function(){return new OF(a)}); g.x(this,this.gg);this.Xw=new Oi(e);g.x(this,this.Xw);this.gy=$l(function(){return new hO}); g.x(this,this.gy);this.YP=$l(function(){return new cZ(h.aH)}); g.x(this,this.YP);this.Ri=$l(function(){return new zD(h.l5,X,c)}); g.x(this,this.Ri);this.ai=$l(function(){return new I2(h.bW,h.ZQ,h.Zw,h.BA)}); g.x(this,this.ai);this.A4=$l(function(){return new iy(e,h.Xw,h.Zw,h.ZQ,h.BA,h.FE,h.Iz,h.DQ,h.aH,h.aU,h.Lb,h.lw,h.V2,h.Cr,h.AA,h.bW,h.gg,d,W)}); g.x(this,this.A4);this.KV=$l(function(){return new cTN(h.oz,h.aH,h.ZQ,T,h.KY,r,h.DQ)}); g.x(this,this.KV);this.f_={r6:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l5],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.aO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yP]]),ek:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ty],["SLOT_TYPE_FORECASTING",this.aL],["SLOT_TYPE_IN_PLAYER",this.aL],["SLOT_TYPE_PLAYER_BYTES",this.aL]]),uy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.B7],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.G$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.G$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.G$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.G$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.V5],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.V5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xw]]),YI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gy],["SLOT_TYPE_FORECASTING",this.gy],["SLOT_TYPE_IN_PLAYER",this.gy],["SLOT_TYPE_PLAYER_BYTES",this.YP]]),NH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ri],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_IN_PLAYER",this.KV],["SLOT_TYPE_PLAYER_BYTES", this.A4]])};this.listeners=[T.get()];this.XF={l5:this.l5,Cq:this.bW.get(),dP:this.Cr.get(),oY:this.aH.get(),aO:this.aO,fD:c.get(),LA:null,NK:this.B7,tO:T.get(),RU:this.DQ.get()}}; Azl=function(e,a,r,P,B){g.N.call(this);var h=this,c=$l(function(){return new k_(h.bW)}); g.x(this,c);var y=$l(function(){return new JO(c,h.bW)}); g.x(this,y);var T=$l(function(){return new rn}); g.x(this,T);var X=$l(function(){return new eH(e)}); g.x(this,X);var f=$l(function(){return new D3(c,y,h.bW)}); g.x(this,f);var A=$l(function(){return new lD}); g.x(this,A);this.KY=$l(function(){return new nN9(a)}); g.x(this,this.KY);this.oz=$l(function(){return new EF(a)}); g.x(this,this.oz);this.Cr=$l(function(){return new W_(B)}); g.x(this,this.Cr);this.lw=$l(function(){return new Fj(a)}); g.x(this,this.lw);this.Lb=$l(function(){return new MC(a)}); g.x(this,this.Lb);this.Iz=$l(function(){return new jF(a)}); g.x(this,this.Iz);this.V2=$l(function(){return new uV(a)}); g.x(this,this.V2);this.bW=$l(function(){return new KF(a)}); g.x(this,this.bW);var U=$l(function(){return new Gd(P)}); g.x(this,U);var C=$l(function(){return new aF(h.bW)}); g.x(this,C);this.AA=$l(function(){return new Zx(a)}); g.x(this,this.AA);this.DQ=$l(function(){return new nS(a,A,h.bW)}); g.x(this,this.DQ);var G=sJ({DQ:this.DQ,bW:this.bW,bB:C}),O=G.context,d=G.JR;this.z$=G.z$;this.GX=$l(function(){return new gU(a,h.bW,h.ZQ)}); g.x(this,this.GX);this.gg=$l(function(){return new OF(a)}); g.x(this,this.gg);this.aH=$l(function(){return new y4(a,h.DQ,h.bW)}); g.x(this,this.aH);this.aU=$l(function(){return new kJ}); g.x(this,this.aU);G=$l(function(){return new vz(c,f,y,h.bW,C,null,h.aH,h.sG,h.y5,3)}); g.x(this,G);this.FE=$l(function(){return new wm(h.bW)}); this.BA=$l(function(){return new rU(h.aH,a,h.bW)}); g.x(this,this.BA);this.ZQ=$l(function(){return new ow(a,T,h.BA,h.DQ,h.z$,h.bW,d)}); g.x(this,this.ZQ);this.aO=new KR(X,G,r,this.bW,e,this.DQ,this.aH,this.lw);g.x(this,this.aO);var W=new m_(a,this.aO,this.aH,this.DQ,this.GX);this.cV=$l(function(){return W}); this.CU=W;this.dc=new u2(qcL,dU,function(V,L,z,q){return X_j(y.get(),V,L,z,q)},X,f,y,C,this.bW,this.DQ); g.x(this,this.dc);this.sG=new sl(X,f,this.cV,this.GX,this.aH,this.bW,this.ZQ,this.gg);g.x(this,this.sG);this.yP=new aj(X,f,this.Lb,this.cV,O);g.x(this,this.yP);this.l5=new Tr(this.bW,X,f,G,this.DQ,this.yP,r,this.Iz);g.x(this,this.l5);this.Ty=$l(function(){return new Km(U,y,C,h.bW,h.ZQ,h.aH,h.gg)}); g.x(this,this.Ty);this.aL=$l(function(){return new eh}); g.x(this,this.aL);this.B7=new yb(e,this.oz,this.bW);g.x(this,this.B7);this.G$=new TC(e);g.x(this,this.G$);this.hR=new AO(e,this.cV,O);g.x(this,this.hR);this.V5=new Ui(e,this.Lb,this.aH,this.DQ,O);g.x(this,this.V5);this.uU=new CA(e,this.DQ);g.x(this,this.uU);this.y5=new bD(e,this.GX,this.aH,this.ZQ,this.cV,this.sG);g.x(this,this.y5);this.Zw=new GC(e);g.x(this,this.Zw);this.xP=new Ei(e);g.x(this,this.xP);this.Xw=new Oi(e);g.x(this,this.Xw);this.gy=$l(function(){return new hO}); g.x(this,this.gy);this.YP=$l(function(){return new cZ(h.aH)}); g.x(this,this.YP);this.Ri=$l(function(){return new zD(h.l5,X,c)}); g.x(this,this.Ri);this.ai=$l(function(){return new I2(h.bW,h.ZQ,h.Zw,h.BA)}); g.x(this,this.ai);this.A4=$l(function(){return new p7(e,h.Xw,h.Zw,h.DQ,h.gg,h.aH,h.aU,h.ZQ,A,h.GX,h.BA,h.FE,h.Iz,h.Lb,h.lw,h.V2,h.Cr,h.AA,h.bW,T,O,d)}); g.x(this,this.A4);this.JQ=$l(function(){return new oB4(h.oz,h.aH,h.ZQ,T,h.KY,r,h.bW,h.DQ)}); g.x(this,this.JQ);this.f_={r6:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l5],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.sG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.aO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yP]]),ek:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ty],["SLOT_TYPE_FORECASTING",this.aL],["SLOT_TYPE_IN_PLAYER",this.aL],["SLOT_TYPE_PLAYER_BYTES",this.aL]]),uy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.B7],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.G$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.G$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.G$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.G$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.G$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.V5],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.V5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uU],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.y5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.y5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.y5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.y5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.y5]]),YI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gy],["SLOT_TYPE_FORECASTING",this.gy],["SLOT_TYPE_IN_PLAYER",this.gy],["SLOT_TYPE_PLAYER_BYTES",this.YP]]),NH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ri],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_PLAYER_BYTES",this.A4],["SLOT_TYPE_IN_PLAYER",this.JQ]])};this.listeners=[T.get()]; this.XF={l5:this.l5,Cq:this.bW.get(),dP:this.Cr.get(),oY:this.aH.get(),aO:this.aO,fD:c.get(),LA:null,NK:this.B7,tO:T.get(),RU:this.DQ.get()}}; CqN=function(e,a,r,P){function B(){return h.T} g.N.call(this);var h=this;e.G().experiments.FM("html5_dispose_of_manager_before_dependency")?(this.S=UjG(B,e,a,r,P),this.T=(new Q0(this.S)).B(),g.x(this,this.T),g.x(this,this.S)):(this.S=UjG(B,e,a,r,P),g.x(this,this.S),this.T=(new Q0(this.S)).B(),g.x(this,this.T))}; JR=function(e){return e.S.XF}; UjG=function(e,a,r,P,B){try{var h=a.G();if(g.tZ(h))var c=new yzV(e,a,r,P,B);else if(g.OA(h))c=new T49(e,a,r,P,B);else if(XU(h))c=new XIB(e,a,r,P,B);else if(g.L$(h))c=new flG(e,a,r,P,B);else if(g.hZ(h))c=new Azl(e,a,r,P,B);else throw new TypeError("Unknown web interface");return c}catch(y){return c=a.G(),o9("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:c.S.cplatform,interface:c.S.c,Vrr:c.S.cver,kpF:c.S.ctheme,Fim:c.S.cplayer,xgW:c.playerStyle}),new Ktq(e,a,r,P,B)}}; GJM=function(e){xT.call(this,e)}; ENN=function(e,a,r,P,B){mq.call(this,e,{K:"div",U:"ytp-ad-timed-pie-countdown-container",V:[{K:"svg",U:"ytp-ad-timed-pie-countdown",J:{viewBox:"0 0 20 20"},V:[{K:"circle",U:"ytp-ad-timed-pie-countdown-background",J:{r:"10",cx:"10",cy:"10"}},{K:"circle",U:"ytp-ad-timed-pie-countdown-inner",J:{r:"5",cx:"10",cy:"10"}},{K:"circle",U:"ytp-ad-timed-pie-countdown-outer",J:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",a,r,P,B);this.L=this.BW("ytp-ad-timed-pie-countdown-container");this.B=this.BW("ytp-ad-timed-pie-countdown-inner"); this.Z=this.BW("ytp-ad-timed-pie-countdown-outer");this.T=Math.ceil(2*Math.PI*5);this.hide()}; bLl=function(e,a,r,P,B,h){oK.call(this,e,{K:"div",U:"ytp-ad-action-interstitial",J:{tabindex:"0"},V:[{K:"div",U:"ytp-ad-action-interstitial-background-container"},{K:"div",U:"ytp-ad-action-interstitial-slot",V:[{K:"div",U:"ytp-ad-action-interstitial-instream-info"},{K:"div",U:"ytp-ad-action-interstitial-card",V:[{K:"div",U:"ytp-ad-action-interstitial-image-container"},{K:"div",U:"ytp-ad-action-interstitial-headline-container"},{K:"div",U:"ytp-ad-action-interstitial-description-container"},{K:"div", U:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",a,r,P);this.vH=B;this.T9=h;this.navigationEndpoint=this.S=this.skipButton=this.T=this.actionButton=null;this.XM=this.BW("ytp-ad-action-interstitial-instream-info");this.e1=this.BW("ytp-ad-action-interstitial-image-container");this.N=new pB(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,"ytp-ad-action-interstitial-image");g.x(this,this.N);this.N.Kf(this.e1);this.Lf=this.BW("ytp-ad-action-interstitial-headline-container"); this.Z=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,"ytp-ad-action-interstitial-headline");g.x(this,this.Z);this.Z.Kf(this.Lf);this.oH=this.BW("ytp-ad-action-interstitial-description-container");this.B=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,"ytp-ad-action-interstitial-description");g.x(this,this.B);this.B.Kf(this.oH);this.k$=this.BW("ytp-ad-action-interstitial-background-container");this.Uo=new pB(this.api,this.layoutId,this.interactionLoggingClientData, this.dP,"ytp-ad-action-interstitial-background",!0);g.x(this,this.Uo);this.Uo.Kf(this.k$);this.PW=this.BW("ytp-ad-action-interstitial-action-button-container");this.slot=this.BW("ytp-ad-action-interstitial-slot");this.PG=this.BW("ytp-ad-action-interstitial-card");this.L=new Ou;g.x(this,this.L);this.hide()}; tLN=function(e){var a=g.nO("html5-video-player");a&&g.cD(a,"ytp-ad-display-override",e)}; kJM=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-overlay-slot",V:[{K:"div",U:"ytp-ad-overlay-container"}]},"invideo-overlay",a,r,P);this.N=[];this.k$=this.Lf=this.L=this.PW=this.XM=null;this.Uo=!1;this.Z=null;this.oH=0;e=this.BW("ytp-ad-overlay-container");this.e1=new rG(e,45E3,6E3,.3,.4);g.x(this,this.e1);this.B=gNb(this);g.x(this,this.B);this.B.Kf(e);this.T=ZLb(this);g.x(this,this.T);this.T.Kf(e);this.S=OL5(this);g.x(this,this.S);this.S.Kf(e);this.hide()}; gNb=function(e){var a=new g.cs({K:"div",U:"ytp-ad-text-overlay",V:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",V:[{K:"button",U:"ytp-ad-overlay-close-button",V:[Dt(djb)]}]},{K:"div",U:"ytp-ad-overlay-title",S1:"{{title}}"},{K:"div",U:"ytp-ad-overlay-desc",S1:"{{description}}"},{K:"div",WW:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],S1:"{{displayUrl}}"}]});e.j(a.BW("ytp-ad-overlay-title"),"click",function(r){Dx(e,a.element,r)}); e.j(a.BW("ytp-ad-overlay-link"),"click",function(r){Dx(e,a.element,r)}); e.j(a.BW("ytp-ad-overlay-close-container"),"click",e.rd);a.hide();return a}; ZLb=function(e){var a=new g.cs({K:"div",WW:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",V:[{K:"button",U:"ytp-ad-overlay-close-button",V:[Dt(djb)]}]},{K:"div",U:"ytp-ad-overlay-text-image",V:[{K:"img",J:{src:"{{imageUrl}}"}}]},{K:"div",U:"ytp-ad-overlay-title",S1:"{{title}}"},{K:"div",U:"ytp-ad-overlay-desc",S1:"{{description}}"},{K:"div",WW:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], S1:"{{displayUrl}}"}]});e.j(a.BW("ytp-ad-overlay-title"),"click",function(r){Dx(e,a.element,r)}); e.j(a.BW("ytp-ad-overlay-link"),"click",function(r){Dx(e,a.element,r)}); e.j(a.BW("ytp-ad-overlay-close-container"),"click",e.rd);e.j(a.BW("ytp-ad-overlay-text-image"),"click",e.T1W);a.hide();return a}; OL5=function(e){var a=new g.cs({K:"div",U:"ytp-ad-image-overlay",V:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",V:[{K:"button",U:"ytp-ad-overlay-close-button",V:[Dt(djb)]}]},{K:"div",U:"ytp-ad-overlay-image",V:[{K:"img",J:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});e.j(a.BW("ytp-ad-overlay-image"),"click",function(r){Dx(e,a.element,r)}); e.j(a.BW("ytp-ad-overlay-close-container"),"click",e.rd);a.hide();return a}; JzZ=function(e,a){if(a){var r=g.H(a,cz)||null;r==null?g.D6(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(a=g.nO("video-ads ytp-ad-module")||null,a==null?g.D6(Error("Could not locate the root ads container element to attach the ad info dialog.")):(e.Lf=new g.cs({K:"div",U:"ytp-ad-overlay-ad-info-dialog-container"}),g.x(e,e.Lf),e.Lf.Kf(a),a=new RK(e.api,e.layoutId,e.interactionLoggingClientData,e.dP,e.Lf.element,!1),g.x(e,a),a.init(K4("ad-info-hover-text-button"),r,e.macros), e.Z?(a.Kf(e.Z,0),a.subscribe("f",e.wWm,e),a.subscribe("e",e.aN,e),e.j(e.Z,"click",e.CWz),e.j(g.nO("ytp-ad-button",a.element),"click",function(){var P;if(g.H((P=g.H(r.button,g.nR))==null?void 0:P.serviceEndpoint,j6q))e.Uo=e.api.getPlayerState(1)===2,e.api.pauseVideo();else e.api.onAdUxClicked("ad-info-hover-text-button",e.layoutId)}),e.k$=a):g.D6(Error("Ad info button container within overlay ad was not present."))))}else g.VJ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; VL8=function(e,a){if(Dj9(e,V4)||e.api.isMinimized())return!1;var r=nB(a.title),P=nB(a.description);if(g.Wd(r)||g.Wd(P))return!1;e.createServerVe(e.B.element,a.trackingParams||null);e.B.updateValue("title",nB(a.title));e.B.updateValue("description",nB(a.description));e.B.updateValue("displayUrl",nB(a.displayUrl));a.navigationEndpoint&&g.lN(e.N,a.navigationEndpoint);e.B.show();e.e1.start();e.logVisibility(e.B.element,!0);e.j(e.B.element,"mouseover",function(){e.oH++}); return!0}; $jB=function(e,a){if(Dj9(e,V4)||e.api.isMinimized())return!1;var r=nB(a.title),P=nB(a.description);if(g.Wd(r)||g.Wd(P))return!1;e.createServerVe(e.T.element,a.trackingParams||null);e.T.updateValue("title",nB(a.title));e.T.updateValue("description",nB(a.description));e.T.updateValue("displayUrl",nB(a.displayUrl));e.T.updateValue("imageUrl",ofj(a.image));a.navigationEndpoint&&g.lN(e.N,a.navigationEndpoint);e.PW=a.imageNavigationEndpoint||null;e.T.show();e.e1.start();e.logVisibility(e.T.element,!0); e.j(e.T.element,"mouseover",function(){e.oH++}); return!0}; QTN=function(e,a){if(e.api.isMinimized())return!1;var r=nfq(a.image),P=r;r.width0?(a=new WK(e.api,e.S), a.Kf(e.playerOverlay),g.x(e,a)):(e=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(a)),g.D6(e))}}else g.D6(Error("addCommonComponents() needs to be called before starting countdown."))}; IlG=function(e){function a(r){return{toString:function(){return r()}}} e.macros.SURVEY_LOCAL_TIME_EPOCH_S=a(function(){var r=new Date;return(Math.round(r.valueOf()/1E3)+-1*r.getTimezoneOffset()*60).toString()}); e.macros.SURVEY_ELAPSED_MS=a(function(){return(Date.now()-e.B).toString()})}; HLG=function(e,a,r,P,B){lC.call(this,e,a,r,P,"survey-question-multi-select");this.oH=B;this.noneOfTheAbove=null;this.submitEndpoints=[];this.Z=null;this.hide()}; qOM=function(e,a,r){e.noneOfTheAbove=new pI9(e.api,e.layoutId,e.interactionLoggingClientData,e.dP);e.noneOfTheAbove.Kf(e.answers);e.noneOfTheAbove.init(K4("survey-none-of-the-above"),a,r)}; Ryw=function(e){e.T.forEach(function(a){a.S.toggleButton(!1)}); vN5(e,!0)}; vN5=function(e,a){var r=e.L;e=SO9(e);a=a===void 0?!1:a;r.S&&(e?r.S.hide():r.S.show(),a&&r.S instanceof Ax&&!r.S.L&&c74(r.S,!1));r.T&&(e?r.T.show():r.T.hide())}; SO9=function(e){return e.T.some(function(a){return a.S.isToggled()})||e.noneOfTheAbove.button.isToggled()}; LS=function(e,a,r,P,B){lC.call(this,e,a,r,P,"survey-question-single-select",function(c){h.api.G().X("supports_multi_step_on_desktop")&&B([c])}); var h=this;this.hide()}; YJ=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-survey",V:[{K:"div",U:"ytp-ad-survey-questions"}]},"survey",a,r,P);this.questions=[];this.T=[];this.conditioningRules=[];this.S=0;this.Z=this.BW("ytp-ad-survey-questions");this.api.G().X("fix_survey_color_contrast_on_destop")&&this.BW("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().X("web_enable_speedmaster")&&this.BW("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; FjG=function(e,a){var r=e.T[a],P;(P=e.B)==null||P.dispose();g.H(r,Bz)?sTV(e,g.H(r,Bz),e.macros):g.H(r,Pz)&&mj5(e,g.H(r,Pz),e.macros);e.S=a}; sTV=function(e,a,r){var P=new LS(e.api,e.layoutId,e.interactionLoggingClientData,e.dP,e.L.bind(e));P.Kf(e.Z);P.init(K4("survey-question-single-select"),a,r);e.api.G().X("supports_multi_step_on_desktop")?e.B=P:e.questions.push(P);g.x(e,P)}; mj5=function(e,a,r){var P=new HLG(e.api,e.layoutId,e.interactionLoggingClientData,e.dP,e.L.bind(e));P.Kf(e.Z);P.init(K4("survey-question-multi-select"),a,r);e.api.G().X("supports_multi_step_on_desktop")?e.B=P:e.questions.push(P);g.x(e,P)}; wU=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-survey-interstitial",V:[{K:"div",U:"ytp-ad-survey-interstitial-contents",V:[{K:"div",U:"ytp-ad-survey-interstitial-logo",V:[{K:"div",U:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",U:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",a,r,P);this.S=this.actionButton=null;this.interstitial=this.BW("ytp-ad-survey-interstitial");this.T=this.BW("ytp-ad-survey-interstitial-contents");this.text=this.BW("ytp-ad-survey-interstitial-text"); this.logoImage=this.BW("ytp-ad-survey-interstitial-logo-image");this.transition=new g.jq(this,500,!1,300);g.x(this,this.transition)}; MLV=function(e,a){a=a&&wQ(a)||"";if(g.Wd(a))g.VJ(Error("Found ThumbnailDetails without valid image URL"));else{var r=e.style;e=e.style.cssText;var P=document.implementation.createHTMLDocument("").createElement("DIV");P.style.cssText=e;e=p1j(P.style);r.cssText=[e,'background-image:url("'+a+'");'].join("")}}; jTl=function(e){var a=g.nO("html5-video-player");a&&g.cD(a,"ytp-ad-display-override",e)}; pS=function(e,a,r,P,B,h){h=h===void 0?0:h;mq.call(this,e,{K:"div",U:"ytp-preview-ad",V:[{K:"div",U:"ytp-preview-ad__text"}]},"preview-ad",a,r,P,B);var c=this;this.oH=h;this.T=0;this.L=-1;this.B=this.BW("ytp-preview-ad__text");switch(this.oH){case 1:this.B.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.jq(this,400,!1,100,function(){c.hide()}); g.x(this,this.transition);this.hide()}; iC=function(e,a,r,P){oK.call(this,e,{K:"img",U:"ytp-ad-avatar"},"ad-avatar",a,r,P);this.hide()}; u4V=function(e){switch(e.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}}; zd=function(e,a,r,P,B,h){B=B===void 0?!1:B;h=h===void 0?!1:h;oK.call(this,e,{K:"button",U:"ytp-ad-button-vm"},"ad-button",a,r,P);this.buttonText=this.buttonIcon=null;this.hide();this.S=B;this.T=h}; KjM=function(e,a,r,P,B){mq.call(this,e,{K:"div",WW:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{K:"div",U:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{K:"div",U:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",a,r,P,B);this.startMilliseconds=0;this.adAvatar=new iC(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.adAvatar);bd(this.element,this.adAvatar.element,0);this.headline=new dG(this.api,this.layoutId, this.interactionLoggingClientData,this.dP);g.x(this,this.headline);this.headline.Kf(this.BW("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.description);this.description.Kf(this.BW("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new zd(this.api, this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.adButton);this.adButton.Kf(this.element);this.hide()}; N6=function(e,a,r,P){oK.call(this,e,{K:"button",U:"ytp-skip-ad-button",V:[{K:"div",U:"ytp-skip-ad-button__text"}]},"skip-button",a,r,P);var B=this;this.T=!1;this.L=this.BW("ytp-skip-ad-button__text");this.transition=new g.jq(this,500,!1,100,function(){B.hide()}); g.x(this,this.transition);this.S=new rG(this.element,15E3,5E3,.5,.5,!0);g.x(this,this.S);this.hide()}; e8G=function(e,a,r,P,B){mq.call(this,e,{K:"div",U:"ytp-skip-ad"},"skip-ad",a,r,P,B);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new N6(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.B);this.B.Kf(this.element);this.hide()}; xJ=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-visit-advertiser-link"},"visit-advertiser-link",a,r,P);this.hide()}; Iw=function(e,a,r,P,B){oK.call(this,e,{K:"div",U:"ytp-ad-player-overlay-layout",V:[{K:"div",U:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",U:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",U:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",U:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",a,r,P);this.T=B;this.Lf=this.BW("ytp-ad-player-overlay-layout__player-card-container");this.S=this.BW("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.BW("ytp-ad-player-overlay-layout__skip-or-preview-container");this.oH=this.BW("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; aBl=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-grid-card-text",V:[{K:"div",U:"ytp-ad-grid-card-text__metadata",V:[{K:"div",U:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",U:"ytp-ad-grid-card-text__metadata__description",V:[{K:"div",U:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",U:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",U:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",a,r,P);this.headline=new dG(this.api,this.layoutId,this.interactionLoggingClientData, this.dP);g.x(this,this.headline);this.headline.Kf(this.BW("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new zd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0);g.x(this,this.moreInfoButton);this.moreInfoButton.Kf(this.BW("ytp-ad-grid-card-text__button"))}; HG=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",a,r,P);this.S=[]}; q6=function(e,a,r,P,B,h,c){mq.call(this,e,h,c,a,r,P,B);this.playerProgressOffsetMs=0;this.T=!1}; rwZ=function(e){var a=g.nO("html5-video-player");a&&g.cD(a,"ytp-ad-display-override",e)}; PNa=function(e,a,r,P,B){q6.call(this,e,a,r,P,B,{K:"div",U:"ytp-display-underlay-text-grid-cards",V:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container",V:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.adGridCardCollection);this.adGridCardCollection.Kf(this.BW("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new zd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.adButton);this.adButton.Kf(this.BW("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.B=this.BW("ytp-display-underlay-text-grid-cards__content_container");this.L=this.BW("ytp-display-underlay-text-grid-cards__content_container__header")}; vG=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-ad-details-line"},"ad-details-line",a,r,P);this.S=[];this.hide()}; Rw=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-image-background",V:[{K:"img",U:"ytp-image-background-image"}]},"image-background",a,r,P);this.hide()}; BbN=function(e,a,r,P,B){mq.call(this,e,{K:"svg",U:"ytp-timed-pie-countdown",J:{viewBox:"0 0 20 20"},V:[{K:"circle",U:"ytp-timed-pie-countdown__background",J:{r:"10",cx:"10",cy:"10"}},{K:"circle",U:"ytp-timed-pie-countdown__inner",J:{r:"5",cx:"10",cy:"10"}},{K:"circle",U:"ytp-timed-pie-countdown__outer",J:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",a,r,P,B);this.B=this.BW("ytp-timed-pie-countdown__inner");this.T=Math.ceil(2*Math.PI*5);this.hide()}; ST=function(e,a,r,P){oK.call(this,e,{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout",J:{tabindex:"0"},V:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",a,r,P);this.T=null;this.L=this.BW("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.B=new Ou;g.x(this,this.B);this.hide()}; h88=function(e){var a=g.nO("html5-video-player");a&&g.cD(a,"ytp-ad-display-override",e)}; cwB=function(e){if(!e.adAvatar||!g.H(e.adAvatar,sF))return g.D6(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!e.headline)return g.D6(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!e.adBadge||!g.H(e.adBadge,mh))return g.D6(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!e.adButton||!g.H(e.adButton,FC))return g.D6(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!e.adInfoRenderer|| !g.H(e.adInfoRenderer,cz))return g.D6(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;e=e.durationMilliseconds||0;return typeof e!=="number"||e<=0?(g.D6(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+e)),!1):!0}; M6=function(e,a){a=a===void 0?2:a;g.aK.call(this);this.api=e;this.S=null;this.oO=new Ou(this);g.x(this,this.oO);this.T=ohJ;this.oO.j(this.api,"presentingplayerstatechange",this.o0);this.S=this.oO.j(this.api,"progresssync",this.j5);this.Hr=a;this.Hr===1&&this.j5()}; jT=function(e,a,r){xT.call(this,e);this.api=e;this.dP=a;this.components={};e=new g.v({K:"div",WW:["video-ads","ytp-ad-module"]});g.x(this,e);FZ&&g.rr(e.element,"ytp-ads-tiny-mode");this.L=new Xz(e.element);g.x(this,this.L);g.MY(this.api,e.element,4);DR(r)&&(r=new g.v({K:"div",WW:["ytp-ad-underlay"]}),g.x(this,r),this.T=new Xz(r.element),g.x(this,this.T),g.MY(this.api,r.element,0));g.x(this,phL())}; o9G=function(e,a){e=g.UH(e.components,a.id,null);e==null&&g.VJ(Error("Component not found for element id: "+a.id));return e||null}; n9G=function(e){g.Vn.call(this,e);var a=this;this.T=null;this.created=!1;this.B=e.G().X("h5_use_refactored_get_ad_break")?new e$q(this.player):new SF(this.player);this.L=function(){if(a.T!=null)return a.T;var P=new on4({NK:JR(a.S).NK,RU:JR(a.S).RU,W:a.player,Cq:JR(a.S).Cq,ZQ:a.S.S.ZQ,tO:JR(a.S).tO,V2:a.S.S.V2});a.T=P.HF;return a.T}; this.S=new CqN(this.player,this,this.B,this.L);g.x(this,this.S);var r=e.G();!A1(r)||g.hZ(r)||XU(r)||(g.x(this,new jT(e,JR(this.S).dP,JR(this.S).Cq)),g.x(this,new GJM(e)))}; ywl=function(e){e.created!==e.loaded&&o9("Created and loaded are out of sync")}; fBa=function(e){g.Vn.prototype.load.call(e);var a=JR(e.S).Cq;try{e.player.getRootNode().classList.add("ad-created")}catch(T){o9(T instanceof Error?T:String(T))}var r=e.player.getVideoData(1),P=r&&r.videoId||"",B=r&&r.getPlayerResponse()||{},h=(B&&B.adPlacements||[]).map(function(T){return T.adPlacementRenderer}),c=((B==null?void 0:B.adSlots)||[]).map(function(T){return g.H(T,X$)}); B=B.playerConfig&&B.playerConfig.daiConfig&&B.playerConfig.daiConfig.enableDai||!1;r&&r.QX();h=TbM(h,c,a,JR(e.S).fD);c=r&&r.clientPlaybackNonce||"";r=r&&r.M6||!1;if(yN(a,!0)&&r){var y;a={};(y=e.player.getVideoData())==null||y.nf("p_cpb",(a.cc=c,a))}y=1E3*e.player.getDuration(1);XBG(e);e.S.S.CU.hj(c,y,r,h.RW,h.jf,h.RW,B,P)}; XBG=function(e){var a,r;if(r=(a=e.player.getVideoData(1))==null||!a.M6)a=e.player.G(),r=A1(a)&&!g.fm(a)&&a.playerStyle==="desktop-polymer";r&&(e=e.player.getInternalApi(),e.addEventListener("updateKevlarOrC3Companion",GEN),e.addEventListener("updateEngagementPanelAction",Ehy),e.addEventListener("changeEngagementPanelVisibility",blI),window.addEventListener("yt-navigate-start",ghI))}; uC=function(e,a){a===e.qg&&(e.qg=void 0)}; Awa=function(e){var a=JR(e.S).aO,r=a.L().nt("SLOT_TYPE_PLAYER_BYTES",1);a=vi(a.DQ.get(),1).clientPlaybackNonce;var P=!1;r=g.Z(r);for(var B=r.next();!B.done;B=r.next()){B=B.value;var h=B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.slotEntryTrigger instanceof j0?B.slotEntryTrigger.vT:void 0;h&&h===a&&(P&&o9("More than 1 preroll playerBytes slot detected",B),P=!0)}P||Td(JR(e.S).oY)}; UMG=function(e){if(eT(JR(e.S).Cq))return!0;var a="";e=g.Z(JR(e.S).tO.p8.keys());for(var r=e.next();!r.done;r=e.next()){r=r.value;if(r.slotType==="SLOT_TYPE_PLAYER_BYTES"&&r.Az==="core")return!0;a+=r.slotType+" "}Math.random()<.01&&o9("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:a});return!1}; CNN=function(e){e=g.Z(JR(e.S).tO.p8.values());for(var a=e.next();!a.done;a=e.next())if(a.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; H3T=function(e,a,r,P,B,h,c){r=r===void 0?[]:r;P=P===void 0?"":P;B=B===void 0?"":B;var y=JR(e.S).Cq,T=e.player.getVideoData(1);T&&T.getPlayerResponse();T&&T.QX();r=TbM(a,r,y,JR(e.S).fD);sgO(JR(e.S).l5,P,r.RW,r.jf,a,B,h,c)}; TbM=function(e,a,r,P){a={RW:[],jf:a};e=g.Z(e);for(var B=e.next();!B.done;B=e.next())if((B=B.value)&&B.renderer!=null){var h=B.renderer;if(!r.W.G().X("html5_enable_vod_lasr_with_notify_pacf")){var c=void 0,y=void 0,T=void 0,X=void 0,f=P;g.H((X=h.sandwichedLinearAdRenderer)==null?void 0:X.adVideoStart,qk)?(c=g.H((T=h.sandwichedLinearAdRenderer)==null?void 0:T.adVideoStart,qk),c=olO(c,f),g.L4(h.sandwichedLinearAdRenderer.adVideoStart,qk,c)):g.H((y=h.linearAdSequenceRenderer)==null?void 0:y.adStart,qk)&& (T=g.H((c=h.linearAdSequenceRenderer)==null?void 0:c.adStart,qk),c=olO(T,f),g.L4(h.linearAdSequenceRenderer.adStart,qk,c))}a.RW.push(B)}return a}; g.KS=function(e){if(typeof DOMParser!="undefined")return DL(new DOMParser,WKO(e),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.e8=function(e){g.N.call(this);this.callback=e;this.S=new Ey(0,0,.4,0,.2,1,1,1);this.delay=new g.qe(this.next,window,this);g.x(this,this.delay)}; g.GVM=function(e){var a=e.G();return a.Ge&&!a.B&&g.uP(a)?e.isEmbedsShortsMode()?(e=e.jZ(),Math.min(e.width,e.height)>=315):!e.tA():!1}; g.ap=function(e){g.v.call(this,{K:"div",U:"ytp-more-videos-view",J:{tabIndex:"-1"}});var a=this;this.api=e;this.T=!0;this.B=new g.Zc(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.L=this.scrollPosition=0;this.title=new g.v({K:"h2",U:"ytp-related-title",S1:"{{title}}"});this.previous=new g.v({K:"button",WW:["ytp-button","ytp-previous"],J:{"aria-label":"Show previous suggested videos"},V:[g.fB()]});this.D=new g.e8(function(r){a.suggestions.element.scrollLeft=-r}); this.next=new g.v({K:"button",WW:["ytp-button","ytp-next"],J:{"aria-label":"Show more suggested videos"},V:[g.A_()]});g.x(this,this.B);this.Z=e.G().L;g.x(this,this.title);this.title.Kf(this.element);this.suggestions=new g.v({K:"div",U:"ytp-suggestions"});g.x(this,this.suggestions);this.suggestions.Kf(this.element);g.x(this,this.previous);this.previous.Kf(this.element);this.previous.listen("click",this.SU,this);g.x(this,this.D);E9V(this);g.x(this,this.next);this.next.Kf(this.element);this.next.listen("click", this.nw,this);this.B.j(this.api,"appresize",this.VX);this.B.j(this.api,"fullscreentoggled",this.XT);this.B.j(this.api,"videodatachange",this.onVideoDataChange);this.VX(this.api.MF().getPlayerSize());this.onVideoDataChange()}; E9V=function(e){for(var a={uV:0};a.uV<16;a={uV:a.uV},++a.uV){var r=new g.v({K:"a",U:"ytp-suggestion-link",J:{href:"{{link}}",target:e.api.G().N,"aria-label":"{{aria_label}}"},V:[{K:"div",U:"ytp-suggestion-image"},{K:"div",U:"ytp-suggestion-overlay",J:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{K:"div",U:"ytp-suggestion-title",S1:"{{title}}"},{K:"div",U:"ytp-suggestion-author",S1:"{{author_and_views}}"},{K:"div",J:{"data-is-live":"{{is_live}}"},U:"ytp-suggestion-duration", S1:"{{duration}}"}]}]});g.x(e,r);var P=r.BW("ytp-suggestion-link");g.vo(P,"transitionDelay",a.uV/20+"s");e.B.j(P,"click",function(B){return function(h){var c=B.uV;if(e.T){var y=e.suggestionData[c],T=y.sessionData;e.Z&&e.api.X("web_player_log_click_before_generating_ve_conversion_params")?(e.api.logClick(e.S[c].element),c=y.Um(),y={},g.sL(e.api,y),c=g.EW(c,y),g.da(c,e.api,h)):g.ke(h,e.api,e.Z,T||void 0)&&e.api.nY(y.videoId,T,y.playlistId)}else h.preventDefault(),document.activeElement.blur()}}(a)); r.Kf(e.suggestions.element);e.S.push(r);e.api.createServerVe(r.element,r)}}; b55=function(e){if(e.api.G().X("web_player_log_click_before_generating_ve_conversion_params"))for(var a=Math.floor(-e.scrollPosition/(e.L+8)),r=Math.min(a+e.columns,e.suggestionData.length)-1;a<=r;a++)e.api.logVisibility(e.S[a].element,!0)}; g.r0=function(e){var a=e.api.eX()?32:16;a=e.Y/2+a;e.next.element.style.bottom=a+"px";e.previous.element.style.bottom=a+"px";a=e.scrollPosition;var r=e.containerWidth-e.suggestionData.length*(e.L+8);g.cD(e.element,"ytp-scroll-min",a>=0);g.cD(e.element,"ytp-scroll-max",a<=r)}; g9w=function(e){for(var a=e.suggestionData.length,r=0;r>>0)+"_",B=0;return a}); X4("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var a="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r0&&r>0;)if(P[--r]!=a[--B])return!1;return B<=0}}); X4("Array.prototype.find",function(e){return e?e:function(a,r){return fl3(this,a,r).Jw}}); X4("Array.prototype.entries",function(e){return e?e:function(){return vI(this,function(a,r){return[a,r]})}}); X4("Array.prototype.keys",function(e){return e?e:function(){return vI(this,function(a){return a})}}); X4("String.prototype.startsWith",function(e){return e?e:function(a,r){var P=HI(this,a,"startsWith");a+="";var B=P.length,h=a.length;r=Math.max(0,Math.min(r|0,P.length));for(var c=0;c=h}}); X4("Number.isFinite",function(e){return e?e:function(a){return typeof a!=="number"?!1:!isNaN(a)&&a!==Infinity&&a!==-Infinity}}); X4("String.prototype.repeat",function(e){return e?e:function(a){var r=HI(this,null,"repeat");if(a<0||a>1342177279)throw new RangeError("Invalid count value");a|=0;for(var P="";a;)if(a&1&&(P+=r),a>>>=1)r+=r;return P}}); X4("Object.entries",function(e){return e?e:function(a){var r=[],P;for(P in a)EO(a,P)&&r.push([P,a[P]]);return r}}); X4("Array.from",function(e){return e?e:function(a,r,P){r=r!=null?r:function(y){return y}; var B=[],h=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(typeof h=="function"){a=h.call(a);for(var c=0;!(h=a.next()).done;)B.push(r.call(P,h.value,c++))}else for(h=a.length,c=0;c>>0;if(a===0)return 32;var r=0;(a&4294901760)===0&&(a<<=16,r+=16);(a&4278190080)===0&&(a<<=8,r+=8);(a&4026531840)===0&&(a<<=4,r+=4);(a&3221225472)===0&&(a<<=2,r+=2);(a&2147483648)===0&&r++;return r}}); X4("Number.isNaN",function(e){return e?e:function(a){return typeof a==="number"&&isNaN(a)}}); X4("Array.prototype.values",function(e){return e?e:function(){return vI(this,function(a,r){return r})}}); X4("Array.prototype.fill",function(e){return e?e:function(a,r,P){var B=this.length||0;r<0&&(r=Math.max(0,B+r));if(P==null||P>B)P=B;P=Number(P);P<0&&(P=Math.max(0,B+P));for(r=Number(r||0);r0&&r?r.repeat(Math.ceil(a/r.length)).substring(0,a):"")+P}}); X4("Array.prototype.findIndex",function(e){return e?e:function(a,r){return fl3(this,a,r).Np}}); X4("Promise.prototype.finally",function(e){return e?e:function(a){return this.then(function(r){return Promise.resolve(a()).then(function(){return r})},function(r){return Promise.resolve(a()).then(function(){throw r; })})}}); X4("Math.imul",function(e){return e?e:function(a,r){a=Number(a);r=Number(r);var P=a&65535,B=r&65535;return P*B+((a>>>16&65535)*B+P*(r>>>16&65535)<<16>>>0)|0}}); X4("Math.sign",function(e){return e?e:function(a){a=Number(a);return a===0||isNaN(a)?a:a>0?1:-1}}); X4("WeakSet",function(e){function a(r){this.S=new WeakMap;if(r){r=g.Z(r);for(var P;!(P=r.next()).done;)this.add(P.value)}} if(function(){if(!e||!Object.seal)return!1;try{var r=Object.seal({}),P=Object.seal({}),B=new e([r]);if(!B.has(r)||B.has(P))return!1;B.delete(r);B.add(P);return!B.has(r)&&B.has(P)}catch(h){return!1}}())return e; a.prototype.add=function(r){this.S.set(r,!0);return this}; a.prototype.has=function(r){return this.S.has(r)}; a.prototype.delete=function(r){return this.S.delete(r)}; return a}); X4("AggregateError",function(e){function a(r,P){P=Error(P);"stack"in P&&(this.stack=P.stack);this.errors=r;this.message=P.message} if(e)return e;g.b(a,Error);a.prototype.name="AggregateError";return a}); X4("Array.prototype.copyWithin",function(e){function a(r){r=Number(r);return r===Infinity||r===-Infinity?r:r|0} return e?e:function(r,P,B){var h=this.length;r=a(r);P=a(P);B=B===void 0?h:a(B);r=r<0?Math.max(h+r,0):Math.min(r,h);P=P<0?Math.max(h+P,0):Math.min(P,h);B=B<0?Math.max(h+B,0):Math.min(B,h);if(rP;)--B in this?this[--r]=this[B]:delete this[--r];return this}}); X4("Int8Array.prototype.copyWithin",SL);X4("Uint8Array.prototype.copyWithin",SL);X4("Uint8ClampedArray.prototype.copyWithin",SL);X4("Int16Array.prototype.copyWithin",SL);X4("Uint16Array.prototype.copyWithin",SL);X4("Int32Array.prototype.copyWithin",SL);X4("Uint32Array.prototype.copyWithin",SL);X4("Float32Array.prototype.copyWithin",SL);X4("Float64Array.prototype.copyWithin",SL);X4("Array.prototype.at",function(e){return e?e:mj}); X4("Int8Array.prototype.at",Mj);X4("Uint8Array.prototype.at",Mj);X4("Uint8ClampedArray.prototype.at",Mj);X4("Int16Array.prototype.at",Mj);X4("Uint16Array.prototype.at",Mj);X4("Int32Array.prototype.at",Mj);X4("Uint32Array.prototype.at",Mj);X4("Float32Array.prototype.at",Mj);X4("Float64Array.prototype.at",Mj);X4("String.prototype.at",function(e){return e?e:mj}); X4("Array.prototype.findLastIndex",function(e){return e?e:function(a,r){return Azj(this,a,r).Np}}); X4("Int8Array.prototype.findLastIndex",jL);X4("Uint8Array.prototype.findLastIndex",jL);X4("Uint8ClampedArray.prototype.findLastIndex",jL);X4("Int16Array.prototype.findLastIndex",jL);X4("Uint16Array.prototype.findLastIndex",jL);X4("Int32Array.prototype.findLastIndex",jL);X4("Uint32Array.prototype.findLastIndex",jL);X4("Float32Array.prototype.findLastIndex",jL);X4("Float64Array.prototype.findLastIndex",jL);X4("Number.parseInt",function(e){return e||parseInt});var so,cB,Cq4;so=so||{};g.uq=this||self;cB="closure_uid_"+(Math.random()*1E9>>>0);Cq4=0;g.UG(C5,Error);C5.prototype.name="CustomError";var lB4;var OLL,gF,va;OLL=Array.prototype.indexOf?function(e,a){return Array.prototype.indexOf.call(e,a,void 0)}:function(e,a){if(typeof e==="string")return typeof a!=="string"||a.length!=1?-1:e.indexOf(a,0); for(var r=0;r=0;r--)if(r in e&&e[r]===a)return r;return-1}; g.FN=Array.prototype.forEach?function(e,a,r){Array.prototype.forEach.call(e,a,r)}:function(e,a,r){for(var P=e.length,B=typeof e==="string"?e.split(""):e,h=0;h=.3:this.cZ>=.5};var $s={uJP:0,YmH:1},V2q={NONE:0,UOz:1,VHW:2};var iLq="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");tk.prototype.getValue=function(){return this.T}; g.b(g6,tk);g6.prototype.B=function(e){this.T===null&&g.X7(this.L,e)&&(this.T=e)}; g.b(ZG,tk);ZG.prototype.B=function(e){this.T===null&&typeof e==="number"&&(this.T=e)}; g.b(OH,tk);OH.prototype.B=function(e){this.T===null&&typeof e==="string"&&(this.T=e)};ks.prototype.disable=function(){this.T=!1}; ks.prototype.enable=function(){this.T=!0}; ks.prototype.isEnabled=function(){return this.T}; ks.prototype.reset=function(){this.S={};this.T=!0;this.B={}};var Sg=document,Wo=window;var $MV=PB(1,!0),N7=PB(610401301,!1);PB(899588437,!1);var QZN=PB(772657768,!1),Wl5=PB(513659523,!1),lBb=PB(568333945,$MV),ntN=PB(1331761403,!1);PB(651175828,!1);PB(722764542,!1);PB(748402145,!1);PB(748402146,!1);var ZDy=PB(748402147,$MV);PB(333098724,!1);PB(2147483644,!1);PB(2147483645,!1);PB(2147483646,$MV);PB(2147483647,!0);var xs=!!g.aZ("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var w6=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},o93=/&/g,n9O=//g,Tbj=/"/g,XBO=/'/g,fBL=/\x00/g,cwI=/[\x00&<>"']/;var q7,Ll9=g.uq.navigator;q7=Ll9?Ll9.userAgentData||null:null;var Fj3=globalThis.trustedTypes,jB;Kf.prototype.toString=function(){return this.S+""};PR.prototype.toString=function(){return this.S}; var u4J=new PR("about:invalid#zClosurez");var Zd4=cR("tel"),t84=cR("sms"),jTj=[cR("data"),cR("http"),cR("https"),cR("mailto"),cR("ftp"),new hU(function(e){return/^[^:]*([/?#]|$)/.test(e)})],Kjj=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;fD.prototype.toString=function(){return this.S+""};EZ.prototype.toString=function(){return this.S+""};OZ.prototype.toString=function(){return this.S};var df={};g.YG9=String.prototype.repeat?function(e,a){return e.repeat(a)}:function(e,a){return Array(a+1).join(e)};Nv[" "]=function(){};var R8,Ar,DVj,wBN,pBN,i5N,md,FZ,z89;g.MR=sH();g.T$=qOj();g.qU=RQ("Edge");g.kG=g.qU||g.T$;R8=RQ("Gecko")&&!(Ys(g.zX(),"WebKit")&&!RQ("Edge"))&&!(RQ("Trident")||RQ("MSIE"))&&!RQ("Edge");g.T7=Ys(g.zX(),"WebKit")&&!RQ("Edge");Ar=z1();DVj=b5L();g.mp=E9J();wBN=pD();pBN=RQ("iPad");i5N=RQ("iPod");md=iF();FZ=Ys(g.zX(),"KaiOS"); a:{var NbV="",xMa=function(){var e=g.zX();if(R8)return/rv:([^\);]+)(\)|;)/.exec(e);if(g.qU)return/Edge\/([\d\.]+)/.exec(e);if(g.T$)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e);if(g.T7)return/WebKit\/(\S+)/.exec(e);if(g.MR)return/(?:Version)[ \/]?(\S+)/.exec(e)}(); xMa&&(NbV=xMa?xMa[1]:"");if(g.T$){var PT,IBM=g.uq.document;PT=IBM?IBM.documentMode:void 0;if(PT!=null&&PT>parseFloat(NbV)){z89=String(PT);break a}}z89=NbV}var O5L=z89,g9z={};var Rf,Sw;g.yw=m1();Rf=pD()||RQ("iPod");Sw=RQ("iPad");g.jD=Ryz();g.Ed=F7();g.Uv=M7()&&!iF();var lQ4=!g.T$&&!M7();g.E=g.vR.prototype;g.E.clone=function(){return new g.vR(this.x,this.y)}; g.E.equals=function(e){return e instanceof g.vR&&RD(this,e)}; g.E.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.E.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.E.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.E.scale=function(e,a){this.x*=e;this.y*=typeof a==="number"?a:e;return this};g.E=g.Sr.prototype;g.E.clone=function(){return new g.Sr(this.width,this.height)}; g.E.aspectRatio=function(){return this.width/this.height}; g.E.isEmpty=function(){return!m4(this)}; g.E.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.E.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.E.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.E.scale=function(e,a){this.width*=e;this.height*=typeof a==="number"?a:e;return this};Mv.prototype.toString=function(){return this.S}; var F8={};new Mv(F8,"");var Jwj=/^[a-z][a-z\d-]*$/i,DM4="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),$MJ="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),WlL=["action","formaction","href"];var LlN={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.E=KD.prototype;g.E.EM=function(e){return Bo(this.S,e)}; g.E.getElementsByTagName=function(e,a){return(a||this.S).getElementsByTagName(String(e))}; g.E.BW=function(e){return g.nO(e,this.S)}; g.E.setProperties=yf;g.E.createElement=function(e){return fO(this.S,e)}; g.E.appendChild=g.G7;g.E.append=function(e,a){i54(e2(e),e,arguments,1)}; g.E.canHaveChildren=function(e){if(e.nodeType!=1)return!1;switch(e.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.E.removeNode=g.t5;g.E.getChildren=function(e){return e.children!=void 0?e.children:Array.prototype.filter.call(e.childNodes,function(a){return a.nodeType==1})}; g.E.contains=g.gy;Vf.prototype.now=function(){return 0}; Vf.prototype.T=function(){return 0}; Vf.prototype.B=function(){return 0}; Vf.prototype.S=function(){return 0};g.b(Qf,Vf);Qf.prototype.now=function(){return $H()&&Wo.performance.now?Wo.performance.now():Vf.prototype.now.call(this)}; Qf.prototype.T=function(){return $H()&&Wo.performance.memory?Wo.performance.memory.totalJSHeapSize||0:Vf.prototype.T.call(this)}; Qf.prototype.B=function(){return $H()&&Wo.performance.memory?Wo.performance.memory.usedJSHeapSize||0:Vf.prototype.B.call(this)}; Qf.prototype.S=function(){return $H()&&Wo.performance.memory?Wo.performance.memory.jsHeapSizeLimit||0:Vf.prototype.S.call(this)};var $ty=function(){if(!g.uq.addEventListener||!Object.defineProperty)return!1;var e=!1,a=Object.defineProperty({},"passive",{get:function(){e=!0}}); try{var r=function(){}; g.uq.addEventListener("test",r,a);g.uq.removeEventListener("test",r,a)}catch(P){}return e}();var qFj=IBj("AnimationEnd"),Qi=IBj("TransitionEnd");g.E=id.prototype;g.E.getHeight=function(){return this.bottom-this.top}; g.E.clone=function(){return new id(this.top,this.right,this.bottom,this.left)}; g.E.contains=function(e){return this&&e?e instanceof id?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom:!1}; g.E.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.E.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.E.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.E.scale=function(e,a){a=typeof a==="number"?a:e;this.left*=e;this.right*=e;this.top*=a;this.bottom*=a;return this};g.E=g.I8.prototype;g.E.clone=function(){return new g.I8(this.left,this.top,this.width,this.height)}; g.E.contains=function(e){return e instanceof g.vR?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height}; g.E.getSize=function(){return new g.Sr(this.width,this.height)}; g.E.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.E.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.E.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.E.scale=function(e,a){a=typeof a==="number"?a:e;this.left*=e;this.width*=e;this.top*=a;this.height*=a;return this};var qGL={};var Flq=YH(function(){var e=!1;try{var a=Object.defineProperty({},"passive",{get:function(){e=!0}}); g.uq.addEventListener("test",null,a)}catch(r){}return e});MaO.prototype.isVisible=function(){return cQ(Sg)===1};var vs3=ob(function(e){return typeof e==="number"}),Mc=ob(function(e){return typeof e==="string"}),R0j=ob(function(e){return typeof e==="boolean"}),wn=ob(function(e){return e!=null&&typeof e==="object"&&typeof e.then==="function"}),kx4=ob(function(e){return typeof e==="function"}),H5N=ob(function(e){return!!e&&(typeof e==="object"||typeof e==="function")});var uNJ={tX1:"allow-forms",xqz:"allow-modals",ARd:"allow-orientation-lock",PQP:"allow-pointer-lock",dqf:"allow-popups",YG$:"allow-popups-to-escape-sandbox",JRQ:"allow-presentation",GuW:"allow-same-origin",yRQ:"allow-scripts",qG1:"allow-top-navigation",FfH:"allow-top-navigation-by-user-activation"},rk3=YH(function(){return Klz()});var ck3=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");U5.prototype.ju=function(e,a,r){e=e+"//"+a+r;var P=T6l(this)-r.length;if(P<0)return"";this.S.sort(function(X,f){return X-f}); r=null;a="";for(var B=0;B=T.length){P-=T.length;e+=T;a=this.B;break}r=r==null?h:r}}P="";r!=null&&(P=""+a+"trn="+r);return e+P};O5.prototype.setInterval=function(e,a){return Wo.setInterval(e,a)}; O5.prototype.clearInterval=function(e){Wo.clearInterval(e)}; O5.prototype.setTimeout=function(e,a){return Wo.setTimeout(e,a)}; O5.prototype.clearTimeout=function(e){Wo.clearTimeout(e)};var XK=void 0,TR,qZL=typeof TextDecoder!=="undefined",ZfO,gsj=typeof String.prototype.isWellFormed==="function",tB4=typeof TextEncoder!=="undefined";var D7j={},WQ=null,VB3=R8||g.T7||typeof g.uq.btoa=="function";var z0j=typeof Uint8Array!=="undefined",L1J=!g.T$&&typeof btoa==="function",YHj=/[-_.]/g,W1z={"-":"+",_:"/",".":"="},Lg={};la.prototype.isEmpty=function(){return this.S==null}; la.prototype.sizeBytes=function(){var e=wF(this);return e?e.length:0}; var ifT;var N6O=void 0;var xu=typeof Symbol==="function"&&typeof Symbol()==="symbol",qGa=Nc("jas",void 0,!0),b5=Nc(void 0,"1oa"),Yj=Nc(void 0,Symbol()),v99=Nc(void 0,"0ub"),AUN=Nc(void 0,"0ubs"),A5q=Nc(void 0,"0ubsb"),k1z=Nc(void 0,"0actk"),WS=Nc("m_m","EEW",!0),G1j=Nc(void 0,"vps"),R8Z=Nc();Math.max.apply(Math,g.UO(Object.values({Vvf:1,ky1:2,FzP:4,Yez:8,hqM:16,mQr:32,rHz:64,RAr:128,qmm:256,bYP:512,k0m:1024,bhQ:2048,hvP:4096})));var IGO={IE:{value:0,configurable:!0,writable:!0,enumerable:!1}},x7L=Object.defineProperties,Ib=xu?qGa:"IE",BJ,SGB=[];qc(SGB,7);BJ=Object.freeze(SGB);var lJ={},Rb={},lL4=Object.freeze({}),mv={};var Kg=typeof g.uq.BigInt==="function"&&typeof g.uq.BigInt(0)==="bigint";var HS=ob(function(e){return Kg?e>=sZN&&e<=mMw:e[0]==="-"?SHj(e,FlN):SHj(e,MaG)}),FlN=Number.MIN_SAFE_INTEGER.toString(),sZN=Kg?BigInt(Number.MIN_SAFE_INTEGER):void 0,MaG=Number.MAX_SAFE_INTEGER.toString(),mMw=Kg?BigInt(Number.MAX_SAFE_INTEGER):void 0;var zGI=typeof Uint8Array.prototype.slice==="function",aU=0,rO=0,Uh3;var gO=typeof BigInt==="function"?BigInt.asIntN:void 0,o8q=typeof BigInt==="function"?BigInt.asUintN:void 0,dO=Number.isSafeInteger,fU=Number.isFinite,JC=Math.trunc,jQJ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var E8J={};var jZG={CBr:!0};var zP;var bDT,trT;var wRy=ey(0),YL={};HJ.prototype.init=function(e,a,r,P){var B=P===void 0?{}:P;P=B.DG===void 0?!1:B.DG;B=B.Db===void 0?!1:B.Db;this.DG=P;this.Db=B;e&&(e=I4(e,this.Db),this.T=e.buffer,this.C=e.S,this.L=a||0,this.B=r!==void 0?this.L+r:this.T.length,this.S=this.L)}; HJ.prototype.free=function(){this.clear();MX.length<100&&MX.push(this)}; HJ.prototype.clear=function(){this.T=null;this.C=!1;this.S=this.B=this.L=0;this.DG=!1}; HJ.prototype.reset=function(){this.S=this.L}; var MX=[];j5.prototype.free=function(){this.S.clear();this.T=this.B=-1;u5.length<100&&u5.push(this)}; j5.prototype.reset=function(){this.S.reset();this.L=this.S.S;this.T=this.B=-1}; var u5=[];var RGL,sDz;Cv.prototype.length=function(){return this.S.length}; Cv.prototype.end=function(){var e=this.S;this.S=[];return e};var d_=O2(),uNV=O2(),Klw=O2(),e0Z=O2(),aGB=O2(),rkG=O2(),PO5=O2(),B6N=O2(),h0B=O2(),ckG=O2(),osw=O2();kC.prototype.toJSON=function(){return vS(this)}; kC.prototype.n_=function(e){return JSON.stringify(vS(this,e))}; kC.prototype.clone=function(){var e=this.uv,a=e[Ib]|0;return mT(this,e,a)?F6(this,e,!0):new this.constructor(sb(e,a,!1))}; kC.prototype[WS]=lJ;kC.prototype.toString=function(){return this.uv.toString()};var PdI=DK(function(e,a,r,P,B){if(e.T!==2)return!1;yx(e,tq(a,P,r),B);return!0},r5q),Byz=DK(function(e,a,r,P,B){if(e.T!==2)return!1; yx(e,tq(a,P,r),B);return!0},r5q),NB=Symbol(),lA=Symbol(),w_=Symbol(),TyO=Symbol(),oHI=Symbol(),Vx,$C;var nsV=Su(function(e,a,r){if(e.T!==1)return!1;FK(a,r,mn(e.S));return!0},MB,h0B),ykb=Su(function(e,a,r){if(e.T!==1)return!1; e=mn(e.S);FK(a,r,e===0?void 0:e);return!0},MB,h0B),T6B=Su(function(e,a,r,P){if(e.T!==1)return!1; G5(a,r,P,mn(e.S));return!0},MB,h0B),Xd9=Su(function(e,a,r){if(e.T!==0)return!1; FK(a,r,vJ(e.S));return!0},ju,PO5),fGl=Su(function(e,a,r){if(e.T!==0)return!1; e=vJ(e.S);FK(a,r,e===0?void 0:e);return!0},ju,PO5),Ak8=Su(function(e,a,r,P){if(e.T!==0)return!1; G5(a,r,P,vJ(e.S));return!0},ju,PO5),U7l=Su(function(e,a,r){if(e.T!==0)return!1; FK(a,r,R4(e.S));return!0},uA,e0Z),COG=Su(function(e,a,r){if(e.T!==0)return!1; e=R4(e.S);FK(a,r,e===0?void 0:e);return!0},uA,e0Z),GXa=Su(function(e,a,r,P){if(e.T!==0)return!1; G5(a,r,P,R4(e.S));return!0},uA,e0Z),EsB=Su(function(e,a,r){if(e.T!==1)return!1; FK(a,r,sX(e.S));return!0},function(e,a,r){K4z(e,r,n8N(a))},B6N),bfN=s2(function(e,a,r){if(e.T!==1&&e.T!==2)return!1; a=X9(a,a[Ib]|0,r);if(e.T==2)for(r=R4(e.S)>>>0,r=e.S.S+r;e.S.S>>0);return!0},function(e,a,r){a=GP(a); a!=null&&a!=null&&(g_(e,r,0),E2(e.S,a))},aGB),y2=Su(function(e,a,r){if(e.T!==0)return!1; FK(a,r,R4(e.S));return!0},function(e,a,r){a=CU(a); a!=null&&(a=parseInt(a,10),g_(e,r,0),F4J(e.S,a))},osw);t24.prototype.register=function(){Nv(this)};g.b(aB,kC);aB.prototype.B=ZOl([0,ykb,fGl,-2,COG]);var $h4={bWW:1,kS:2,Qsr:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Wby.prototype.v5=function(e){if(typeof e==="string"&&e.length!=0){var a=this.Z5;if(a.T){e=e.split("&");for(var r=e.length-1;r>=0;r--){var P=e[r].split("="),B=decodeURIComponent(P[0]);P.length>1?(P=decodeURIComponent(P[1]),P=/^[0-9]+$/g.exec(P)?parseInt(P,10):P):P=1;(B=a.S[B])&&B.B(P)}}}};var TM=null;var oB=g.uq.performance,D7M=!!(oB&&oB.mark&&oB.measure&&oB.clearMarks),hs=YH(function(){var e;if(e=D7M){var a=a===void 0?window:a;if(TM===null){TM="";try{e="";try{e=a.top.location.hash}catch(P){e=a.location.hash}if(e){var r=e.match(/\bdeid=([\d,]+)/);TM=r?r[1]:""}}catch(P){}}a=TM;e=!!a.indexOf&&a.indexOf("1337")>=0}return e}); ca.prototype.disable=function(){this.S=!1;this.events!==this.T.google_js_reporting_queue&&(hs()&&g.FN(this.events,iOl),this.events.length=0)}; ca.prototype.start=function(e,a){if(!this.S)return null;var r=wo4()||Y9j();e=new poj(e,a,r);a="goog_"+e.label+"_"+e.uniqueId+"_start";oB&&hs()&&oB.mark(a);return e}; ca.prototype.end=function(e){if(this.S&&typeof e.value==="number"){var a=wo4()||Y9j();e.duration=a-e.value;a="goog_"+e.label+"_"+e.uniqueId+"_end";oB&&hs()&&oB.mark(a);!this.S||this.events.length>2048||this.events.push(e)}};var zCO=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Zy=/#|$/,vHJ=/[?&]($|#)/;S9J.prototype.Q0=function(e,a,r,P,B){B=B||this.vP;try{var h=new U5;h.S.push(1);h.T[1]=Cg("context",e);a.error&&a.meta&&a.id||(a=new Vp($X(a)));if(a.msg){var c=a.msg.substring(0,512);h.S.push(2);h.T[2]=Cg("msg",c)}var y=a.meta||{};if(this.vK)try{this.vK(y)}catch(C){}if(P)try{P(y)}catch(C){}P=[y];h.S.push(3);h.T[3]=P;var T=nsJ();if(T.T){var X=T.T.url||"";h.S.push(4);h.T[4]=Cg("top",X)}var f={url:T.S.url||""};if(T.S.url){var A=g.yp(T.S.url);var U=na(A[1],null,A[3],A[4])}else U="";X=[f,{url:U}];h.S.push(5); h.T[5]=X;lF3(this.S,B,h,r)}catch(C){try{lF3(this.S,B,{context:"ecmserr",rctx:e,msg:$X(C),url:T&&T.S.url},r)}catch(G){}}return this.iH}; g.b(Vp,LbO);var Js,Dy,d8=new ca;Js=new function(){var e="https:";Wo&&Wo.location&&Wo.location.protocol==="http:"&&(e="http:");this.T=e;this.S=.01}; Dy=new S9J;Wo&&Wo.document&&(Wo.document.readyState=="complete"?mhO():d8.S&&hK(Wo,"load",function(){mhO()}));var j8N=Date.now(),pa=-1,YX=-1,cqq,zS=-1,w8=!1;Nt.prototype.equals=function(e,a){return!!e&&(!(a===void 0?0:a)||this.volume==e.volume)&&this.B==e.B&&Nh(this.S,e.S)&&!0};xX.prototype.EM=function(){return this.D}; xX.prototype.equals=function(e,a){return this.L.equals(e.L,a===void 0?!1:a)&&this.D==e.D&&Nh(this.B,e.B)&&Nh(this.Z,e.Z)&&this.S==e.S&&this.C==e.C&&this.T==e.T&&this.Y==e.Y};var VBG={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},m7={YS:"start",MD:"firstquartile",X1:"midpoint",Jo:"thirdquartile",COMPLETE:"complete",ERROR:"error",CK:"metric",PAUSE:"pause",xS:"resume",Ao:"skip",F1:"viewable_impression",DO:"mute",yF:"unmute",vX:"fullscreen",VK:"exitfullscreen",YO:"bufferstart",dK:"bufferfinish",rK:"fully_viewable_audible_half_duration_impression",wU:"measurable_impression",QK:"abandon",kO:"engagedview",ND:"impression",yK:"creativeview",LOADED:"loaded", OWf:"progress",CLOSE:"close",MMP:"collapse",kmm:"overlay_resize",VZz:"overlay_unmeasurable_impression",MZQ:"overlay_unviewable_impression",rOM:"overlay_viewable_immediate_impression",vpm:"overlay_viewable_end_of_session_impression",qD:"custom_metric_viewable",zB:"audio_audible",cX:"audio_measurable",fV:"audio_impression"},ECq="start firstquartile midpoint thirdquartile resume loaded".split(" "),bv3=["start","firstquartile","midpoint","thirdquartile"],nLz=["abandon"],Uw={UNKNOWN:-1,YS:0,MD:1,X1:2, Jo:3,COMPLETE:4,CK:5,PAUSE:6,xS:7,Ao:8,F1:9,DO:10,yF:11,vX:12,VK:13,rK:14,wU:15,QK:16,kO:17,ND:18,yK:19,LOADED:20,qD:21,YO:22,dK:23,fV:27,cX:28,zB:29};var KbO={DqH:"addEventListener",vvz:"getMaxSize",rjm:"getScreenSize",NDr:"getState",ihH:"getVersion",wrr:"removeEventListener",Mvr:"isViewable"};cKy.prototype.update=function(e){e&&e.document&&(this.D=IB(!1,e,this.isMobileDevice),this.S=IB(!0,e,this.isMobileDevice),nul(this,e),ouN(this,e))};mw.prototype.cancel=function(){ku().clearTimeout(this.S);this.S=null}; mw.prototype.schedule=function(){var e=this,a=ku(),r=Pa().S.S;this.S=a.setTimeout(r8(r,Wa(143,function(){e.T++;e.B.sample()})),uW4())};g.E=Fd.prototype;g.E.mY=function(){return!1}; g.E.initialize=function(){return this.isInitialized=!0}; g.E.f9=function(){return this.S.Lf}; g.E.AP=function(){return this.S.HW}; g.E.fail=function(e,a){if(!this.HW||(a===void 0?0:a))this.HW=!0,this.Lf=e,this.Y=0,this.S!=this||jg(this)}; g.E.getName=function(){return this.S.XM}; g.E.Ci=function(){return this.S.Wv()}; g.E.Wv=function(){return{}}; g.E.w_=function(){return this.S.Y}; g.E.Td=function(){var e=RB();e.S=IB(!0,this.B,e.isMobileDevice)}; g.E.B2=function(){ouN(RB(),this.B)}; g.E.t3=function(){return this.L.S}; g.E.sample=function(){}; g.E.isActive=function(){return this.S.Z}; g.E.qp=function(e){var a=this.S;this.S=e.w_()>=this.Y?e:this;a!==this.S?(this.Z=this.S.Z,jg(this)):this.Z!==this.S.Z&&(this.Z=this.S.Z,jg(this))}; g.E.xY=function(e){if(e.T===this.S){var a=!this.L.equals(e,this.N);this.L=e;a&&XQq(this)}}; g.E.DL=function(){return this.N}; g.E.dispose=function(){this.Eo=!0}; g.E.wP=function(){return this.Eo};g.E=ut.prototype;g.E.observe=function(){return!0}; g.E.unobserve=function(){}; g.E.u7=function(e){this.C=e}; g.E.dispose=function(){if(!this.wP()){var e=this.T;g.k9(e.C,this);e.N&&this.DL()&&TF4(e);this.unobserve();this.TQ=!0}}; g.E.wP=function(){return this.TQ}; g.E.Ci=function(){return this.T.Ci()}; g.E.w_=function(){return this.T.w_()}; g.E.f9=function(){return this.T.f9()}; g.E.AP=function(){return this.T.AP()}; g.E.qp=function(){}; g.E.xY=function(){this.HJ()}; g.E.DL=function(){return this.Eo};g.E=Ka.prototype;g.E.w_=function(){return this.S.w_()}; g.E.f9=function(){return this.S.f9()}; g.E.AP=function(){return this.S.AP()}; g.E.create=function(e,a,r){var P=null;this.S&&(P=this.rN(e,a,r),Mt(this.S,P));return P}; g.E.Ow=function(){return this.hX()}; g.E.hX=function(){return!1}; g.E.init=function(e){return this.S.initialize()?(Mt(this.S,this),this.L=e,!0):!1}; g.E.qp=function(e){e.w_()==0&&this.L(e.f9(),this)}; g.E.xY=function(){}; g.E.DL=function(){return!1}; g.E.dispose=function(){this.C=!0}; g.E.wP=function(){return this.C}; g.E.Ci=function(){return{}};ee.prototype.add=function(e,a,r){++this.B;e=new AK4(e,a,r);this.S.push(new AK4(e.T,e.S,e.B+this.B/4096));this.T=!0;return this};bgj.prototype.toString=function(){var e="//pagead2.googlesyndication.com//pagead/gen_204",a=rc(this.S);a.length>0&&(e+="?"+a);return e};g.N.prototype.hN=!1;g.N.prototype.wP=function(){return this.hN}; g.N.prototype.dispose=function(){this.hN||(this.hN=!0,this.RH())}; g.N.prototype[Symbol.dispose]=function(){this.dispose()}; g.N.prototype.addOnDisposeCallback=function(e,a){this.hN?a!==void 0?e.call(a):e():(this.U8||(this.U8=[]),a&&(e=e.bind(a)),this.U8.push(e))}; g.N.prototype.RH=function(){if(this.U8)for(;this.U8.length;)this.U8.shift()()};var $7M=[0,Xd9,tBb,-1];hV.prototype.update=function(e,a,r){e&&(this.S+=a,this.T+=a,this.L+=a,this.B=Math.max(this.B,this.L));if(r===void 0?!e:r)this.L=0};var k6O=[1,.75,.5,.3,0];ce.prototype.update=function(e,a,r,P,B,h){h=h===void 0?!0:h;a=B?Math.min(e,a):a;for(B=0;B0&&a>=c;c=!(e>0&&e>=c)||r;this.S[B].update(h&&y,P,!h||c)}};f6.prototype.update=function(e,a,r,P){this.D=this.D!=-1?Math.min(this.D,a.cZ):a.cZ;this.oH=Math.max(this.oH,a.cZ);this.TQ=this.TQ!=-1?Math.min(this.TQ,a.kP):a.kP;this.Lf=Math.max(this.Lf,a.kP);this.rP.update(a.kP,r.kP,a.S,e,P);this.e1+=e;a.cZ===0&&(this.XM+=e);this.T.update(a.cZ,r.cZ,a.S,e,P);r=P||r.xo!=a.xo?r.isVisible()&&a.isVisible():r.isVisible();a=!a.isVisible()||a.S;this.GQ.update(r,e,a)}; f6.prototype.tD=function(){return this.GQ.B>=this.k$};if(Sg&&Sg.URL){var QQw=Sg.URL,W1w;if(W1w=!!QQw){var lGG;a:{if(QQw){var L1V=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var XF=L1V.exec(decodeURIComponent(QQw));if(XF){lGG=XF[1]&&XF[1].length>1?XF[1].substring(1):"true";break a}}catch(e){}}lGG=""}W1w=lGG.length>0}Dy.iH=!W1w};var YHM=new id(0,0,0,0);var QUI=new id(0,0,0,0);g.b(En,g.N);g.E=En.prototype; g.E.RH=function(){if(this.Ii.S){if(this.nD.A7){var e=this.Ii.S;typeof e.removeEventListener==="function"&&e.removeEventListener("mouseover",this.nD.A7,BQ());this.nD.A7=null}this.nD.xT&&(e=this.Ii.S,typeof e.removeEventListener==="function"&&e.removeEventListener("mouseout",this.nD.xT,BQ()),this.nD.xT=null)}this.RP&&this.RP.dispose();this.mA&&this.mA.dispose();delete this.Tv;delete this.DF;delete this.NB;delete this.Ii.HT;delete this.Ii.S;delete this.nD;delete this.RP;delete this.mA;delete this.Z5; g.N.prototype.RH.call(this)}; g.E.X$=function(){return this.mA?this.mA.S:this.position}; g.E.v5=function(e){Pa().v5(e)}; g.E.DL=function(){return!1}; g.E.rI=function(){return new f6}; g.E.Ql=function(){return this.Tv}; g.E.CO=function(e){return YbN(this,e,1E4)}; g.E.zQ=function(e,a,r,P,B,h,c){this.Gz||(this.MU&&(e=this.Tx(e,r,B,c),P=P&&this.In.cZ>=(this.xo()?.3:.5),this.AS(h,e,P),this.R5=a,e.cZ>0&&-1===this.Zz&&(this.Zz=a),this.Uu==-1&&this.tD()&&(this.Uu=a),this.ZF==-2&&(this.ZF=C6(this.X$())?e.cZ:-1),this.In=e),this.DF(this))}; g.E.AS=function(e,a,r){this.Ql().update(e,a,this.In,r)}; g.E.v9=function(){return new uN}; g.E.Tx=function(e,a,r,P){r=this.v9();r.S=a;a=ku().T;a=cQ(Sg)===0?-1:a.isVisible()?0:1;r.T=a;r.cZ=this.fJ(e);r.xo=this.xo();r.kP=P;return r}; g.E.fJ=function(e){return this.opacity===0&&DG(this.Z5,"opac")===1?0:e}; g.E.xo=function(){return!1}; g.E.OO=function(){return this.Zo||this.XA}; g.E.Oh=function(){La()}; g.E.d6=function(){La()}; g.E.qj=function(){return 0}; g.E.tD=function(){return this.Tv.tD()}; g.E.Pv=function(){var e=this.MU;e=(this.hasCompleted||this.wP())&&!e;var a=Pa().T!==2||this.tTo;return this.Gz||a&&e?2:this.tD()?4:3}; g.E.Ax=function(){return 0};g.dc.prototype.next=function(){return g.fd}; g.fd={done:!0,value:void 0};g.dc.prototype.TT=function(){return this};g.b(xuj,uN);var AI=HUz([void 0,1,2,3,4,8,16]),UQ=HUz([void 0,4,8,16]),wdB={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:$3("p0",UQ),p1:$3("p1",UQ),p2:$3("p2",UQ),p3:$3("p3",UQ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:VX("mtos1",[0,2,4],!1,UQ),mtos2:VX("mtos2",[0,2,4],!1,UQ),mtos3:VX("mtos3",[0,2,4],!1,UQ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:$3("a0",UQ),a1:$3("a1",UQ),a2:$3("a2",UQ),a3:$3("a3",UQ),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:$3("c0",UQ),c1:$3("c1",UQ),c2:$3("c2",UQ),c3:$3("c3",UQ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:$3("qmtos",AI),qnc:$3("qnc",AI),qmv:$3("qmv",AI),qnv:$3("qnv",AI), 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:$3("ss0",UQ),ss1:$3("ss1",UQ),ss2:$3("ss2",UQ),ss3:$3("ss3",UQ),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"},pdG=Object.assign({},wdB,{avid:ld("audio"),avas:"avas",vs:"vs"}),ifZ={atos:"atos",avt:VX("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(e,a){return function(r){return r[e]===void 0&&a!==void 0?a:r[e]}}("ss",0), t:"t"};L6.prototype.getValue=function(){return this.T}; L6.prototype.update=function(e,a){e>=32||(this.S&1<=.5;qt(a.volume)&&(this.L=this.L!=-1?Math.min(this.L,a.volume):a.volume,this.Z=Math.max(this.Z,a.volume));h&&(this.Eo+=e,this.N+=B?e:0);this.S.update(a.cZ,r.cZ,a.S,e,P,B);this.B.update(!0,e);this.C.update(B,e);this.HW.update(r.fullscreen,e);this.HA.update(B&&!h,e);e=Math.floor(a.mediaTime/1E3);this.Cf.update(e,a.isVisible());this.PW.update(e,a.cZ>=1);this.ym.update(e, De(a))}};muT.prototype.T=function(e){this.B||(this.S(e)?(e=hDl(this.N,this.L,e),this.C|=e,e=e==0):e=!1,this.B=e)};g.b(p6,muT);p6.prototype.S=function(){return!0}; p6.prototype.Z=function(){return!1}; p6.prototype.getId=function(){var e=this,a=ff(m7,function(r){return r==e.L}); return Uw[a].toString()}; p6.prototype.toString=function(){var e="";this.Z()&&(e+="c");this.B&&(e+="s");this.C>0&&(e+=":"+this.C);return this.getId()+e};g.b(ig,p6);ig.prototype.T=function(e,a){a=a===void 0?null:a;a!=null&&this.D.push(a);p6.prototype.T.call(this,e)};g.b(Nf,FTL);Nf.prototype.T=function(){return null}; Nf.prototype.B=function(){return[]};g.b(x3,ut);g.E=x3.prototype;g.E.OS=function(){if(this.element){var e=this.element,a=this.T.S.B;try{try{var r=Paq(e.getBoundingClientRect())}catch(X){r=new id(0,0,0,0)}var P=r.right-r.left,B=r.bottom-r.top,h=SGl(e,a),c=h.x,y=h.y;var T=new id(Math.round(y),Math.round(c+P),Math.round(y+B),Math.round(c))}catch(X){T=YHM.clone()}this.B=T;this.S=fXN(this,this.B)}}; g.E.NL=function(){this.Z=this.T.L.S}; g.E.fp=function(e){var a=DG(this.Z5,"od")==1;return $u4(e,this.Z,this.element,a)}; g.E.iF=function(){this.timestamp=La()}; g.E.HJ=function(){this.iF();this.OS();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var e=this.element;var a=new g.Sr(e.videoWidth,e.videoHeight);e=this.S;var r=z7(e),P=e.getHeight(),B=a.width;a=a.height;B<=0||a<=0||r<=0||P<=0||(B/=a,a=r/P,e=e.clone(),B>a?(r/=B,P=(P-r)/2,P>0&&(P=e.top+P,e.top=Math.round(P),e.bottom=Math.round(P+r))):(P*=B,r=Math.round((r-P)/2),r>0&&(r=e.left+r,e.left=Math.round(r),e.right=Math.round(r+P))));this.S=e}this.NL(); e=this.S;r=this.Z;e=e.left<=r.right&&r.left<=e.right&&e.top<=r.bottom&&r.top<=e.bottom?new id(Math.max(e.top,r.top),Math.min(e.right,r.right),Math.min(e.bottom,r.bottom),Math.max(e.left,r.left)):new id(0,0,0,0);r=e.top>=e.bottom||e.left>=e.right?new id(0,0,0,0):e;e=this.T.L;a=B=P=0;if((this.S.bottom-this.S.top)*(this.S.right-this.S.left)>0)if(this.fp(r))r=new id(0,0,0,0);else{P=RB().L;a=new id(0,P.height,P.width,0);var h;P=GT(r,(h=this.C)!=null?h:this.S);B=GT(r,RB().S);a=GT(r,a)}h=r.top>=r.bottom|| r.left>=r.right?new id(0,0,0,0):xH(r,-this.S.left,-this.S.top);sW()||(B=P=0);this.N=new xX(e,this.element,this.S,h,P,B,this.timestamp,a)}; g.E.getName=function(){return this.T.getName()};var z0M=new id(0,0,0,0);g.b(IJ,x3);g.E=IJ.prototype;g.E.observe=function(){this.L();return!0}; g.E.xY=function(){x3.prototype.HJ.call(this)}; g.E.iF=function(){}; g.E.OS=function(){}; g.E.HJ=function(){this.L();x3.prototype.HJ.call(this)}; g.E.qp=function(e){e=e.isActive();e!==this.Y&&(e?this.L():(RB().S=new id(0,0,0,0),this.S=new id(0,0,0,0),this.Z=new id(0,0,0,0),this.timestamp=-1));this.Y=e};var Cd={},hkN=(Cd.firstquartile=0,Cd.midpoint=1,Cd.thirdquartile=2,Cd.complete=3,Cd);g.b(qf,En);g.E=qf.prototype;g.E.DL=function(){return!0}; g.E.FD=function(){return this.mz==2}; g.E.CO=function(e){return YbN(this,e,Math.max(1E4,this.B/3))}; g.E.zQ=function(e,a,r,P,B,h,c){var y=this,T=this.D(this)||{};g.bO(T,B);this.B=T.duration||this.B;this.N=T.isVpaid||this.N;this.XM=T.isYouTube||this.XM;ku();this.rP=!1;B=jUL(this,a);Myq(this)===1&&(h=B);En.prototype.zQ.call(this,e,a,r,P,T,h,c);this.PS&&this.PS.B&&g.FN(this.Z,function(X){X.T(y)})}; g.E.AS=function(e,a,r){En.prototype.AS.call(this,e,a,r);Se(this).update(e,a,this.In,r);this.k$=De(this.In)&&De(a);this.Lf==-1&&this.PW&&(this.Lf=this.Ql().B.S);this.kK.B=0;e=this.tD();a.isVisible()&&lg(this.kK,"vs");e&&lg(this.kK,"vw");qt(a.volume)&&lg(this.kK,"am");De(a)?lg(this.kK,"a"):lg(this.kK,"mut");this.pR&&lg(this.kK,"f");a.T!=-1&&(lg(this.kK,"bm"),a.T==1&&(lg(this.kK,"b"),De(a)&&lg(this.kK,"umutb")));De(a)&&a.isVisible()&&lg(this.kK,"avs");this.k$&&e&&lg(this.kK,"avw");a.cZ>0&&lg(this.kK, "pv");sn(this,this.Ql().B.S,!0)&&lg(this.kK,"gdr");TT(this.Ql().T,1)>=2E3&&lg(this.kK,"pmx");this.rP&&lg(this.kK,"tvoff")}; g.E.rI=function(){return new Y3}; g.E.Ql=function(){return this.Tv}; g.E.v9=function(){return new xuj}; g.E.Tx=function(e,a,r,P){e=En.prototype.Tx.call(this,e,a,r,P===void 0?-1:P);e.fullscreen=this.pR;e.paused=this.FD();e.volume=r.volume;qt(e.volume)||(this.bv++,a=this.In,qt(a.volume)&&(e.volume=a.volume));r=r.currentTime;e.mediaTime=r!==void 0&&r>=0?r:-1;return e}; g.E.fJ=function(e){return RB(),this.pR?1:En.prototype.fJ.call(this,e)}; g.E.qj=function(){return 1}; g.E.getDuration=function(){return this.B}; g.E.Pv=function(){return this.Gz?2:KTj(this)?5:this.tD()?4:3}; g.E.Ax=function(){return this.HA?this.Ql().C.B>=2E3?4:3:2}; g.E.u7=function(e){this.mA&&this.mA.u7(e)};var N6G=g.f5();G54.prototype.reset=function(){this.S=[];this.T=[]}; var K6=ZX(G54);g.b(rT,Ka);g.E=rT.prototype;g.E.getName=function(){return(this.T?this.T:this.S).getName()}; g.E.Ci=function(){return(this.T?this.T:this.S).Ci()}; g.E.w_=function(){return(this.T?this.T:this.S).w_()}; g.E.init=function(e){var a=!1;(0,g.FN)(this.B,function(r){r.initialize()&&(a=!0)}); a&&(this.L=e,Mt(this.S,this));return a}; g.E.dispose=function(){(0,g.FN)(this.B,function(e){e.dispose()}); Ka.prototype.dispose.call(this)}; g.E.Ow=function(){return va(this.B,function(e){return e.mY()})}; g.E.hX=function(){return va(this.B,function(e){return e.mY()})}; g.E.rN=function(e,a,r){return new x3(e,this.S,a,r)}; g.E.xY=function(e){this.T=e.T};var JqI={threshold:[0,.3,.5,.75,1]};g.b(P9,x3);g.E=P9.prototype;g.E.observe=function(){var e=this;this.oH||(this.oH=La());if(M2j(298,function(){return DXN(e)}))return!0; this.T.fail("msf");return!1}; g.E.unobserve=function(){if(this.L&&this.element)try{this.L.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.D&&(this.D.disconnect(),this.D=null)}catch(e){}}; g.E.HJ=function(){var e=B9(this);e.length>0&&hL(this,e);x3.prototype.HJ.call(this)}; g.E.OS=function(){}; g.E.fp=function(){return!1}; g.E.NL=function(){}; g.E.Ci=function(){var e={};return Object.assign(this.T.Ci(),(e.niot_obs=this.oH,e.niot_cbk=this.HW,e))}; g.E.getName=function(){return"nio"};g.b(c9,Ka);c9.prototype.getName=function(){return"nio"}; c9.prototype.hX=function(){return!RB().T&&this.S.S.B.IntersectionObserver!=null}; c9.prototype.rN=function(e,a,r){return new P9(e,this.S,a,r)};g.b(o5,Fd);o5.prototype.t3=function(){return RB().S}; o5.prototype.mY=function(){var e=$Xl();this.Y!==e&&(this.S!=this&&e>this.S.Y&&(this.S=this,jg(this)),this.Y=e);return e==2};nr.prototype.sample=function(){XE(this,eO(),!1)}; nr.prototype.L=function(){var e=sW(),a=La();e?(w8||(pa=a,g.FN(K6.S,function(r){var P=r.Ql();P.Uo=wc(P,a,r.mz!=1)})),w8=!0):(this.D=YXy(this,a),w8=!1,cqq=a,g.FN(K6.S,function(r){r.MU&&(r.Ql().Y=a)})); XE(this,eO(),!e)}; var yc=ZX(nr);var pJJ=null,wT="",Yc=!1;var NNO=zkL().zJ,AL=zkL().cj;var H0z={Jj$:"visible",ELM:"audible",gZP:"time",OYm:"timetype"},qXj={visible:function(e){return/^(100|[0-9]{1,2})$/.test(e)}, audible:function(e){return e=="0"||e=="1"}, timetype:function(e){return e=="mtos"||e=="tos"}, time:function(e){return/^(100|[0-9]{1,2})%$/.test(e)||/^([0-9])+ms$/.test(e)}}; I$O.prototype.setTime=function(e,a,r){a=="ms"?(this.B=e,this.L=-1):(this.B=-1,this.L=e);this.C=r===void 0?"tos":r;return this};g.b(Ew,p6);Ew.prototype.getId=function(){return this.D}; Ew.prototype.Z=function(){return!0}; Ew.prototype.S=function(e){var a=e.Ql(),r=e.getDuration();return va(this.Y,function(P){if(P.S!=void 0)var B=RkI(P,a);else b:{switch(P.C){case "mtos":B=P.T?a.C.B:a.B.S;break b;case "tos":B=P.T?a.C.S:a.B.S;break b}B=0}B==0?P=!1:(P=P.B!=-1?P.B:r!==void 0&&r>0?P.L*r:-1,P=P!=-1&&B>=P);return P})};g.b(bw,vjO);bw.prototype.S=function(e){var a=new qbT;a.S=We(e,wdB);a.T=We(e,ifZ);return a};g.b(tL,p6);tL.prototype.S=function(e){return KTj(e)};g.b(gT,FTL);g.b(Zs,p6);Zs.prototype.S=function(e){return e.Ql().tD()};g.b(Ow,ig);Ow.prototype.S=function(e){var a=g.ZB(this.D,DG(Pa().Z5,"ovms"));return!e.Gz&&(e.mz!=0||a)};g.b(kc,gT);kc.prototype.T=function(){return new Ow(this.S)}; kc.prototype.B=function(){return[new Zs("viewable_impression",this.S),new tL(this.S)]};g.b(dT,IJ);dT.prototype.L=function(){var e=g.aZ("ima.admob.getViewability"),a=DG(this.Z5,"queryid");typeof e==="function"&&a&&e(a)}; dT.prototype.getName=function(){return"gsv"};g.b(JL,Ka);JL.prototype.getName=function(){return"gsv"}; JL.prototype.hX=function(){var e=RB();Pa();return e.T&&!1}; JL.prototype.rN=function(e,a,r){return new dT(this.S,a,r)};g.b(Ds,IJ);Ds.prototype.L=function(){var e=this,a=g.aZ("ima.bridge.getNativeViewability"),r=DG(this.Z5,"queryid");typeof a==="function"&&r&&a(r,function(P){g.Ak(P)&&e.D++;var B=P.opt_nativeViewVisibleBounds||{},h=P.opt_nativeViewHidden;e.S=BFL(P.opt_nativeViewBounds||{});var c=e.T.L;c.S=h?z0M.clone():BFL(B);e.timestamp=P.opt_nativeTime||-1;RB().S=c.S;P=P.opt_nativeVolume;P!==void 0&&(c.volume=P)})}; Ds.prototype.getName=function(){return"nis"};g.b(Vc,Ka);Vc.prototype.getName=function(){return"nis"}; Vc.prototype.hX=function(){var e=RB();Pa();return e.T&&!1}; Vc.prototype.rN=function(e,a,r){return new Ds(this.S,a,r)};g.b($c,Fd);g.E=$c.prototype;g.E.mY=function(){return this.T.v4!=null}; g.E.Wv=function(){var e={};this.Cf&&(e.mraid=this.Cf);this.TQ&&(e.mlc=1);e.mtop=this.T.nKF;this.D&&(e.mse=this.D);this.e1&&(e.msc=1);e.mcp=this.T.compatibility;return e}; g.E.hc=function(e){var a=g.xN.apply(1,arguments);try{return this.T.v4[e].apply(this.T.v4,a)}catch(r){lt(538,r,.01,function(P){P.method=e})}}; g.E.initialize=function(){var e=this;if(this.isInitialized)return!this.AP();this.isInitialized=!0;if(this.T.compatibility===2)return this.D="ng",this.fail("w"),!1;if(this.T.compatibility===1)return this.D="mm",this.fail("w"),!1;RB().Y=!0;this.B.document.readyState&&this.B.document.readyState=="complete"?FnI(this):Un(this.B,"load",function(){ku().setTimeout(Wa(292,function(){return FnI(e)}),100)},292); return!0}; g.E.Td=function(){var e=RB(),a=eDJ(this,"getMaxSize");e.S=new id(0,a.width,a.height,0)}; g.E.B2=function(){RB().L=eDJ(this,"getScreenSize")}; g.E.dispose=function(){j4I(this);Fd.prototype.dispose.call(this)};var J5J=new function(e,a){this.key=e;this.defaultValue=a===void 0?!1:a;this.valueType="boolean"}("45378663");g.E=W9.prototype;g.E.Ls=function(e){bg(e,!1);gLI(e)}; g.E.TR=function(){}; g.E.Qb=function(e,a,r,P){var B=this;e=new qf(Wo,e,r?a:-1,7,this.Jg(),this.U_());e.o$=P;zyl(e.Z5);Jk(e.Z5,"queryid",e.o$);e.v5("");iUL(e,function(){return B.Fk.apply(B,g.UO(g.xN.apply(0,arguments)))},function(){return B.kD.apply(B,g.UO(g.xN.apply(0,arguments)))}); (P=ZX(a5).S)&<J(e,P);this.B&&(e.u7(this.B),this.B=null);e.Ii.HT&&ZX(Q44);return e}; g.E.qp=function(e){switch(e.w_()){case 0:if(e=ZX(a5).S)e=e.S,g.k9(e.C,this),e.N&&this.DL()&&TF4(e);Lr();break;case 2:T0()}}; g.E.xY=function(){}; g.E.DL=function(){return!1}; g.E.kD=function(e,a){e.Gz=!0;switch(e.qj()){case 1:cv4(e,a);break;case 2:this.bT(e)}}; g.E.oE=function(e){var a=e.D(e);a&&(a=a.volume,e.HA=qt(a)&&a>0);rqI(e,0);return Fh(e,"start",sW())}; g.E.MV=function(e,a,r){XE(yc,[e],!sW());return this.Fn(e,a,r)}; g.E.Fn=function(e,a,r){return Fh(e,r,sW())}; g.E.rH=function(e){return q1(e,"firstquartile",1)}; g.E.iY=function(e){e.PW=!0;return q1(e,"midpoint",2)}; g.E.nI=function(e){return q1(e,"thirdquartile",3)}; g.E.Vz=function(e){var a=q1(e,"complete",4);ve(e);return a}; g.E.MS=function(e){e.mz=3;return Fh(e,"error",sW())}; g.E.wk=function(e,a,r){a=sW();if(e.FD()&&!a){var P=e.Ql(),B=La();P.Y=B}XE(yc,[e],!a);e.FD()&&(e.mz=1);return Fh(e,r,a)}; g.E.Hl=function(e,a){a=this.MV(e,a||{},"skip");ve(e);return a}; g.E.NS=function(e,a){bg(e,!0);return this.MV(e,a||{},"fullscreen")}; g.E.v$=function(e,a){bg(e,!1);return this.MV(e,a||{},"exitfullscreen")}; g.E.P5=function(e,a,r){a=e.Ql();var P=La();a.Uo=wc(a,P,e.mz!=1);XE(yc,[e],!sW());e.mz==1&&(e.mz=2);return Fh(e,r,sW())}; g.E.uY=function(e){XE(yc,[e],!sW());return e.T()}; g.E.Qq=function(e){XE(yc,[e],!sW());this.LG(e);ve(e);return e.T()}; g.E.Fk=function(){}; g.E.bT=function(){}; g.E.LG=function(){}; g.E.Ld=function(){}; g.E.Gx=function(){}; g.E.U_=function(){this.S||(this.S=this.Gx());return this.S==null?new Nf:new kc(this.S)}; g.E.Jg=function(){return new bw};g.b(v9,p6);v9.prototype.S=function(e){return e.Ax()==4};g.b(R5,ig);R5.prototype.S=function(e){e=e.Ax();return e==3||e==4};g.b(SO,gT);SO.prototype.T=function(){return new R5(this.S)}; SO.prototype.B=function(){return[new v9(this.S)]};g.b(mS,vjO);mS.prototype.S=function(e){e&&(e.e===28&&(e=Object.assign({},e,{avas:3})),e.vs===4||e.vs===5)&&(e=Object.assign({},e,{vs:3}));var a=new qbT;a.S=We(e,pdG);a.T=We(e,ifZ);return a};T_T.prototype.T=function(){return g.aZ(this.S)};g.b(FE,W9);g.E=FE.prototype;g.E.TR=function(e,a){var r=this,P=ZX(a5);if(P.S!=null)switch(P.S.getName()){case "nis":var B=UBJ(this,e,a);break;case "gsv":B=Av3(this,e,a);break;case "exc":B=CAJ(this,e)}B||(a.opt_overlayAdElement?B=void 0:a.opt_adElement&&(B=nCO(this,e,a.opt_adElement,a.opt_osdId)));B&&B.qj()==1&&(B.D==g.LO&&(B.D=function(h){return r.Ld(h)}),fKj(this,B,a)); return B}; g.E.Ld=function(e){e.T=0;e.Eo=0;if(e.L=="h"||e.L=="n"){Pa();e.ym&&(Pa(),I5(this)!="h"&&I5(this));var a=g.aZ("ima.common.getVideoMetadata");if(typeof a==="function")try{var r=a(e.o$)}catch(B){e.T|=4}else e.T|=2}else if(e.L=="b")if(a=g.aZ("ytads.bulleit.getVideoMetadata"),typeof a==="function")try{r=a(e.o$)}catch(B){e.T|=4}else e.T|=2;else if(e.L=="ml")if(a=g.aZ("ima.common.getVideoMetadata"),typeof a==="function")try{r=a(e.o$)}catch(B){e.T|=4}else e.T|=2;else e.T|=1;e.T||(r===void 0?e.T|=8:r===null? e.T|=16:g.Ak(r)?e.T|=32:r.errorCode!=null&&(e.Eo=r.errorCode,e.T|=64));r==null&&(r={});a=r;e.Y=0;for(var P in VBG)a[P]==null&&(e.Y|=VBG[P]);yvj(a,"currentTime");yvj(a,"duration");qt(r.volume)&&qt()&&(r.volume*=NaN);return r}; g.E.Gx=function(){Pa();I5(this)!="h"&&I5(this);var e=GRT(this);return e!=null?new T_T(e):null}; g.E.bT=function(e){!e.S&&e.Gz&&H9(this,e,"overlay_unmeasurable_impression")&&(e.S=!0)}; g.E.LG=function(e){e.Vw&&(e.tD()?H9(this,e,"overlay_viewable_end_of_session_impression"):H9(this,e,"overlay_unviewable_impression"),e.Vw=!1)}; g.E.Fk=function(){}; g.E.Qb=function(e,a,r,P){if(Dhq()){var B=DG(Pa().Z5,"mm"),h={};(B=(h[Ba.jA]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",h[Ba.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",h)[B])&&gCz(this,B);this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&<(1044,Error())}e=W9.prototype.Qb.call(this,e,a,r,P);this.C&&(a=this.Z,e.C==null&&(e.C=new zAN),a.S[e.o$]=e.C,e.C.C=N6G);return e}; g.E.Ls=function(e){e&&e.qj()==1&&this.C&&delete this.Z.S[e.o$];return W9.prototype.Ls.call(this,e)}; g.E.U_=function(){this.S||(this.S=this.Gx());return this.S==null?new Nf:this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new SO(this.S):new kc(this.S)}; g.E.Jg=function(){return this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new mS:new bw}; g.E.u7=function(e,a,r,P,B){a=new id(r,a+P,r+B,a);(e=ug(K6,e))?e.u7(a):this.B=a}; var x75=Qp(193,Ov3,void 0,oCN);g.KL("Goog_AdSense_Lidar_sendVastEvent",x75);var IGG=Wa(194,function(e,a){a=a===void 0?{}:a;e=tul(ZX(FE),e,a);return Zv4(e)}); g.KL("Goog_AdSense_Lidar_getViewability",IGG);var HfN=Qp(195,function(){return GXL()}); g.KL("Goog_AdSense_Lidar_getUrlSignalsArray",HfN);var qHB=Wa(196,function(){return JSON.stringify(GXL())}); g.KL("Goog_AdSense_Lidar_getUrlSignalsList",qHB);var JvI=g.GJ(["//ep2.adtrafficquality.google/sodar/",""]),DBj=g.GJ(["//tpc.googlesyndication.com/sodar/",""]);g.b(uw,Error);g.b(as,g.N);as.prototype.CX=function(){return this.wpc.f()}; as.prototype.d5=function(e){this.wpc.c(e)}; as.prototype.Ry=function(e){return this.wpc.m(WMI(e))}; as.prototype.UL=function(e){return this.wpc.mws(WMI(e))}; g.b(Kr,g.N);Kr.prototype.snapshot=function(e){return this.SK.s(Object.assign({},e.fE&&{c:e.fE},e.NP&&{s:e.NP},e.Hc!==void 0&&{p:e.Hc}))}; Kr.prototype.bz=function(e){this.SK.e(e)}; Kr.prototype.bD=function(){return this.SK.l()};g.b(P1,g.N);P1.prototype.share=function(){if(this.wP())throw Error("E:AD");this.T++;return this}; P1.prototype.dispose=function(){--this.T||g.N.prototype.dispose.call(this)};ivl.prototype.qQ=function(e,a){this.S.qQ("/client_streamz/bg/frs",e,a)}; zDI.prototype.qQ=function(e,a,r,P,B,h){this.S.qQ("/client_streamz/bg/wrl",e,a,r,P,B,h)}; N_4.prototype.J1=function(e,a){this.S.pW("/client_streamz/bg/ec",e,a)}; xB4.prototype.qQ=function(e,a,r){this.S.qQ("/client_streamz/bg/el",e,a,r)}; IKN.prototype.J1=function(e,a){this.S.pW("/client_streamz/bg/cec",e,a)}; Hvl.prototype.J1=function(e,a){this.S.pW("/client_streamz/bg/po/csc",e,a)}; q2T.prototype.J1=function(e,a){this.S.pW("/client_streamz/bg/po/ctav",e,a)}; vCj.prototype.J1=function(e,a){this.S.pW("/client_streamz/bg/po/cwsc",e,a)};g.b(RD3,kC);g.b(c1,kC);var AS=[1,2,3];var vsG=[0,AS,kXB,GXa,ZfG];var R0M=[0,hI,[0,nsV,Xd9]];g.b(os,kC);var fe=[1,2,3];var SHM=[0,fe,Ak8,T6B,op,R0M];g.b(ne,kC);var sQ8=[0,hI,vsG,SHM];var m7Z=[0,BT];g.b(yk,kC);var F1G=[0,BT,-1,gsl];var MBG=[0,BT,-1,U7l,gsl];g.b(Tp,kC);var XUj=[1,2,3];var jQV=[0,XUj,op,F1G,op,MBG,op,m7Z];g.b(Xt,kC);Xt.prototype.ac=function(){var e=o4(this,3,V8,3,!0);s5(e);return e[void 0]};Xt.prototype.B=ZOl([0,BT,jQV,Of5,hI,sQ8,EsB,bfN]);g.b(s_N,kC);g.E=Ue.prototype;g.E.isEnabled=function(){if(!g.uq.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{wV:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.E.set=function(e,a,r){var P=!1;if(typeof r==="object"){var B=r.zo1;P=r.secure||!1;var h=r.domain||void 0;var c=r.path||void 0;var y=r.wV}if(/[;=\s]/.test(e))throw Error('Invalid cookie name "'+e+'"');if(/[;\r\n]/.test(a))throw Error('Invalid cookie value "'+a+'"');y===void 0&&(y=-1);r=h?";domain="+h:"";c=c?";path="+c:"";P=P?";secure":"";y=y<0?"":y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+y*1E3)).toUTCString();this.S.cookie=e+"="+a+r+c+y+P+(B!=null?";samesite="+ B:"")}; g.E.get=function(e,a){for(var r=e+"=",P=(this.S.cookie||"").split(";"),B=0,h;B=0;a--)this.remove(e[a])}; var QU=new Ue(typeof document=="undefined"?null:document);Gp.prototype.compress=function(e){var a,r,P,B;return g.Y(function(h){switch(h.T){case 1:return a=new CompressionStream("gzip"),r=(new Response(a.readable)).arrayBuffer(),P=a.writable.getWriter(),g.l(h,P.write((new TextEncoder).encode(e)),2);case 2:return g.l(h,P.close(),3);case 3:return B=Uint8Array,g.l(h,r,4);case 4:return h.return(new B(h.S))}})}; Gp.prototype.isSupported=function(e){return e<1024?!1:typeof CompressionStream!=="undefined"};g.b(Ee,kC);bb.prototype.setInterval=function(e){this.intervalMs=e;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; bb.prototype.start=function(){var e=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){e.tick()},this.intervalMs),this.T=this.S())}; bb.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; bb.prototype.tick=function(){var e=this;if(this.enabled){var a=Math.max(this.S()-this.T,0);a0?r:void 0));r=rN(r,4,Ub(B>0?B:void 0));r=rN(r,5,Ub(h>0?h:void 0));B=r.uv;h=B[Ib]|0;r=SN(r,h)?r:mT(r,B,h)?F6(r,B):new r.constructor(sb(B,h,!0));D$(c,ZO,10,r)}c=this.S.clone();r=Date.now().toString();c=rN(c,4,kj(r));e=VV(c,Qk,3,e.slice());P&&(c=new tS,P=rN(c,13,Ub(P)),c=new g9, P=D$(c,tS,2,P),c=new $q,P=D$(c,g9,1,P),P=NX(P,2,9),D$(e,$q,18,P));a&&p0(e,14,a);return e};g.w9.prototype.T=0;g.w9.prototype.reset=function(){this.S=this.B=this.L;this.T=0}; g.w9.prototype.getValue=function(){return this.B};g.b(Kv,kC);var u75=eg(Kv);g.b(bOT,kC);var GM;GM=new t24;g.b(Nq,g.N);g.E=Nq.prototype;g.E.RH=function(){zp(this);this.T.stop();this.Cf.stop();g.N.prototype.RH.call(this)}; g.E.dispatch=function(e){if(e instanceof Qk)this.log(e);else try{var a=new Qk,r=e.n_();var P=i5(a,8,r);this.log(P)}catch(B){xq(this,4,1)}}; g.E.log=function(e){xq(this,2,1);if(this.e1){e=e.clone();var a=this.GQ++;e=p0(e,21,a);this.componentId&&i5(e,26,this.componentId);a=e;var r=e5(a,1);var P=P===void 0?!1:P;var B=typeof r;P=r==null?r:B==="bigint"?String(gO(64,r)):AC(r)?B==="string"?Eb(r):P?ZQ(r):Ob(r):void 0;P==null&&(P=Date.now(),P=Number.isFinite(P)?P.toString():"0",rN(a,1,kj(P)));P=e5(a,15);P!=null&&(typeof P==="bigint"?HS(P)?P=Number(P):(P=gO(64,P),P=HS(P)?Number(P):String(P)):P=AC(P)?typeof P==="number"?Ob(P):Eb(P):void 0);P!=null|| p0(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(P=this.experimentIds.clone(),D$(a,Ee,16,P));xq(this,1,1);a=this.S.length-1E3+1;a>0&&(this.S.splice(0,a),this.L+=a,xq(this,3,a));this.S.push(e);this.y$||this.T.enabled||this.T.start()}}; g.E.flush=function(e,a){var r=this;if(this.S.length===0)e&&e();else if(this.Lf&&this.HW)this.B.T=3,EX4(this);else{var P=Date.now();if(this.Uo>P&&this.Eo0&&(r.Eo=Date.now(),r.Uo=r.Eo+U);U=Aw(Yj);var O;xu&&U&&((O=C.uv[U])==null?void 0:O[175237375])!=null&&z6(v99,3);a:{var d=d===void 0?!1:d;if(Aw(R8Z)&&Aw(Yj)&&void 0===R8Z){O=C.uv;U=O[Yj];if(!U)break a;if(U=U.Zp)try{U(O,175237375,jZG);break a}catch(W){JK(W)}}d&&(d=C.uv, (O=Aw(Yj))&&O in d&&(d=d[O])&&delete d[175237375])}d=GM.S?GM.T(C,GM.S,175237375,GM.B):GM.T(C,175237375,null,GM.B);if(d=d===null?void 0:d)d=QV(d,1,-1),d!==-1&&(r.C=new g.w9(d<1?1:d,3E5,.1),r.T.setInterval(r.C.getValue()))}}e&&e();r.Z=0},f=function(U,C){var G=Jq(h,Qk,3); var O=Number(pRL(h,14));g.pe(r.C);r.T.setInterval(r.C.getValue());U===401&&c&&(r.XM=c);O&&(r.L+=O);C===void 0&&(C=r.isRetryable(U));C&&(r.S=G.concat(r.S),r.y$||r.T.enabled||r.T.start());xq(r,7,1);a&&a("net-send-failed",U);++r.Z},A=function(){r.network&&r.network.send(T,X,f)}; y?y.then(function(U){xq(r,5,B);T.requestHeaders["Content-Encoding"]="gzip";T.requestHeaders["Content-Type"]="application/binary";T.body=U;T.a6=2;A()},function(){xq(r,6,B); A()}):A()}}}}; g.E.isRetryable=function(e){return 500<=e&&e<600||e===401||e===0};Is.prototype.send=function(e,a,r){var P=this,B,h,c,y,T,X,f,A,U,C;return g.Y(function(G){switch(G.T){case 1:return h=(B=P.Mx?new AbortController:void 0)?setTimeout(function(){B.abort()},e.timeoutMillis):void 0,g.kN(G,2,3),c=Object.assign({},{method:e.requestType, headers:Object.assign({},e.requestHeaders)},e.body&&{body:e.body},e.withCredentials&&{credentials:"include"},{signal:e.timeoutMillis&&B?B.signal:null}),g.l(G,fetch(e.url,c),5);case 5:y=G.S;if(y.status!==200){(T=r)==null||T(y.status);G.Oo(3);break}if((X=a)==null){G.Oo(7);break}return g.l(G,y.text(),8);case 8:X(G.S);case 7:case 3:g.YN(G);clearTimeout(h);g.pL(G,0);break;case 2:f=g.Q3(G);switch((A=f)==null?void 0:A.name){case "AbortError":(U=r)==null||U(408);break;default:(C=r)==null||C(400)}G.Oo(3)}})}; Is.prototype.Ro=function(){return 4};g.b(H1,g.N);H1.prototype.H9=function(){this.C=!0;return this}; H1.prototype.build=function(){this.network||(this.network=new Is);var e=new Nq({logSource:this.logSource,XR:this.XR?this.XR:B8j,sessionIndex:this.sessionIndex,uHd:this.Oc,hD:this.L,y$:!1,H9:this.C,FW:this.FW,network:this.network});g.x(this,e);if(this.T){var a=this.T,r=Yq(e.B);i5(r,7,a)}e.D=new Gp;this.componentId&&(e.componentId=this.componentId);this.AF&&(e.AF=this.AF);this.pageId&&(e.pageId=this.pageId);this.S&&((r=this.S)?(e.experimentIds||(e.experimentIds=new Ee),a=e.experimentIds,r=r.n_(),i5(a, 4,r)):e.experimentIds&&rN(e.experimentIds,4));this.B&&(e.Lf=e.HW);fyL(e.B);this.network.k8&&this.network.k8(this.logSource);this.network.v2H&&this.network.v2H(e);return e};g.b(qq,g.N);qq.prototype.flush=function(e){e=e||[];if(e.length){for(var a=new s_N,r=[],P=0;P-1?(a=e[c],r||(a.G8=!1)):(a=new Js3(a,this.src,h,!!P,B),a.G8=r,e.push(a));return a}; g.E.remove=function(e,a,r,P){e=e.toString();if(!(e in this.listeners))return!1;var B=this.listeners[e];a=Ke(B,a,r,P);return a>-1?(Mq(B[a]),g.OG(B,a),B.length==0&&(delete this.listeners[e],this.S--),!0):!1}; g.E.removeAll=function(e){e=e&&e.toString();var a=0,r;for(r in this.listeners)if(!e||r==e){for(var P=this.listeners[r],B=0;B-1?e[B]:null}; g.E.hasListener=function(e,a){var r=e!==void 0,P=r?e.toString():"",B=a!==void 0;return g.r6(this.listeners,function(h){for(var c=0;c>>0);g.UG(g.AP,g.N);g.AP.prototype[kS3]=!0;g.E=g.AP.prototype;g.E.addEventListener=function(e,a,r,P){g.at(this,e,a,r,P)}; g.E.removeEventListener=function(e,a,r,P){LwI(this,e,a,r,P)}; g.E.dispatchEvent=function(e){var a=this.tG;if(a){var r=[];for(var P=1;a;a=a.tG)r.push(a),++P}a=this.Nx;P=e.type||e;if(typeof e==="string")e=new g.se(e,a);else if(e instanceof g.se)e.target=e.target||a;else{var B=e;e=new g.se(P,a);g.bO(e,B)}B=!0;var h;if(r)for(h=r.length-1;!e.T&&h>=0;h--){var c=e.currentTarget=r[h];B=Uo(c,P,!0,e)&&B}e.T||(c=e.currentTarget=a,B=Uo(c,P,!0,e)&&B,e.T||(B=Uo(c,P,!1,e)&&B));if(r)for(h=0;!e.T&&h0){this.T--;var e=this.S;this.S=e.next;e.next=null}else e=this.B();return e};var Eo;tP.prototype.add=function(e,a){var r=N8I.get();r.set(e,a);this.T?this.T.next=r:this.S=r;this.T=r}; tP.prototype.remove=function(){var e=null;this.S&&(e=this.S,this.S=this.S.next,this.S||(this.T=null),e.next=null);return e}; var N8I=new CN(function(){return new gW},function(e){return e.reset()}); gW.prototype.set=function(e,a){this.S=e;this.scope=a;this.next=null}; gW.prototype.reset=function(){this.next=this.scope=this.S=null};var ZN,Oo=!1,ia4=new tP;xty.prototype.reset=function(){this.context=this.T=this.B=this.S=null;this.L=!1}; var IyO=new CN(function(){return new xty},function(e){e.reset()}); g.QM.prototype.then=function(e,a,r){return Mgy(this,GQ(typeof e==="function"?e:null),GQ(typeof a==="function"?a:null),r)}; g.QM.prototype.$goog_Thenable=!0;g.E=g.QM.prototype;g.E.finally=function(e){var a=this;e=GQ(e);return new Promise(function(r,P){Rbq(a,function(B){e();r(B)},function(B){e(); P(B)})})}; g.E.Vl=function(e,a){return Mgy(this,null,GQ(e),a)}; g.E.catch=g.QM.prototype.Vl;g.E.cancel=function(e){if(this.S==0){var a=new pN(e);g.kP(function(){SW4(this,a)},this)}}; g.E.JAo=function(e){this.S=0;dW(this,2,e)}; g.E.Glf=function(e){this.S=0;dW(this,3,e)}; g.E.Da=function(){for(var e;e=sBq(this);)mtq(this,e,this.S,this.D);this.Z=!1}; var eS3=JK;g.UG(pN,C5);pN.prototype.name="cancel";g.UG(g.iE,g.AP);g.E=g.iE.prototype;g.E.enabled=!1;g.E.JC=null;g.E.setInterval=function(e){this.FG=e;this.JC&&this.enabled?(this.stop(),this.start()):this.JC&&this.stop()}; g.E.UCf=function(){if(this.enabled){var e=g.f5()-this.qe;e>0&&e0&&(this.getStatus(),this.Z=setTimeout(this.lf.bind(this), this.HW)),this.getStatus(),this.N=!0,this.S.send(e),this.N=!1}catch(c){this.getStatus(),CgL(this,c)}}; g.E.lf=function(){typeof so!="undefined"&&this.S&&(this.L="Timed out after "+this.HW+"ms, aborting",this.T=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.E.abort=function(e){this.S&&this.B&&(this.getStatus(),this.B=!1,this.C=!0,this.S.abort(),this.C=!1,this.T=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),SC(this))}; g.E.RH=function(){this.S&&(this.B&&(this.B=!1,this.C=!0,this.S.abort(),this.C=!1),SC(this,!0));g.Rt.Tl.RH.call(this)}; g.E.Ku=function(){this.wP()||(this.TQ||this.N||this.C?GTj(this):this.QzQ())}; g.E.QzQ=function(){GTj(this)}; g.E.isActive=function(){return!!this.S}; g.E.isComplete=function(){return g.mK(this)==4}; g.E.getStatus=function(){try{return g.mK(this)>2?this.S.status:-1}catch(e){return-1}}; g.E.getResponseHeader=function(e){if(this.S&&this.isComplete())return e=this.S.getResponseHeader(e),e===null?void 0:e}; g.E.getLastError=function(){return typeof this.L==="string"?this.L:String(this.L)};KN.prototype.send=function(e,a,r){a=a===void 0?function(){}:a; r=r===void 0?function(){}:r; AVJ(e.url,function(P){P=P.target;FP(P)?a(g.M_(P)):r(P.getStatus())},e.requestType,e.body,e.requestHeaders,e.timeoutMillis,e.withCredentials)}; KN.prototype.Ro=function(){return 1};az.prototype.done=function(){this.logger.nU(this.event,eU()-this.startTime)}; g.b(rk,P1);g.b(Bn,rk);g.E=Bn.prototype;g.E.WE=function(){}; g.E.Bw=function(){}; g.E.nU=function(){}; g.E.cI=function(){}; g.E.Tg=function(){}; g.E.eB=function(e,a,r,P){return P}; g.E.Nh=function(){}; g.E.VU=function(){}; g.E.r8=function(){}; g.b(h4,rk);g.E=h4.prototype;g.E.update=function(e){this.logger.dispose();this.logger=e}; g.E.Bw=function(e){this.logger.Bw(e)}; g.E.nU=function(e,a){this.logger.nU(e,a)}; g.E.cI=function(e){this.logger.cI(e)}; g.E.Tg=function(){this.logger.Tg()}; g.E.eB=function(e,a,r,P){return this.logger.eB(e,a,r,P)}; g.E.Nh=function(e){this.logger.Nh(e)}; g.E.VU=function(e){this.logger.VU(e)}; g.E.r8=function(e){this.logger.r8(e)}; g.E.WE=function(e){this.logger.WE(e)}; g.b(g3L,g.N);g.b(cn,rk);g.E=cn.prototype;g.E.WE=function(e){this.metrics.pVd.qQ(e,this.VL)}; g.E.Bw=function(e){this.metrics.eventCount.J1(e,this.VL)}; g.E.nU=function(e,a){this.metrics.QN.qQ(a,e,this.VL)}; g.E.cI=function(e){this.metrics.errorCount.J1(e,this.VL)}; g.E.eB=function(e,a,r,P){function B(y){if(!h.wP()){var T=eU()-c;h.metrics.guH.qQ(T,e,r,y,a,h.VL)}} var h=this,c=eU();P.then(function(){return void B(0)},function(y){return void B(y instanceof It?y.code:-1)}); return P}; g.E.Nh=function(e){this.metrics.LfW.J1(e,this.VL)}; g.E.VU=function(e){this.metrics.eL.J1(e,this.VL)}; g.E.r8=function(e){this.metrics.O_P.J1(e,this.VL)}; g.b(oz,cn);oz.prototype.Tg=function(){Z63(this.S)};g.b(np,kC);g.b(yL,kC);g.b(TY,kC);var peL=eg(TY),dfN=function(e){return ob(function(a){return a instanceof e&&!SN(a)})}(TY); TY.messageId="bfkj";g.b(O6q,kC);g.b(r9,kC);g.b(XD,kC);var JVO=eg(XD);g.b(A4,g.N);A4.prototype.snapshot=function(e){if(this.wP())throw Error("Already disposed");this.logger.Bw("n");var a=this.logger.share();return this.B.then(function(r){var P=r.O4;return new Promise(function(B){var h=new az(a,"n");P(function(c){h.done();a.WE(c.length);a.Tg();a.dispose();B(c)},[e.fE, e.NP,e.Ek,e.Hc])})})}; A4.prototype.N7=function(e){var a=this;if(this.wP())throw Error("Already disposed");this.logger.Bw("n");var r=Pn(this.logger,function(){return a.L([e.fE,e.NP,e.Ek,e.Hc])},"n"); this.logger.WE(r.length);this.logger.Tg();return r}; A4.prototype.bz=function(e){this.B.then(function(a){var r;(r=a.fX$)==null||r(e)})}; A4.prototype.bD=function(){return this.logger.share()};g.b(GY,kC);g.b(Em,kC);bT.prototype.Z_=function(e){return xfj(this,e,new Bn,0)};g.b(t4,g.N);t4.prototype.snapshot=function(e){var a=this;return g.Y(function(r){switch(r.T){case 1:if(a.wP())throw Error("Already disposed");if(a.T||a.D){r.Oo(2);break}return g.l(r,a.C.promise,2);case 2:if(!a.T){r.Oo(4);break}return g.l(r,a.T.snapshot(e),5);case 5:return r.return(r.S);case 4:throw a.D;}})}; t4.prototype.bz=function(e){var a,r;(a=this.T)==null||(r=a.bz)==null||r.call(a,e)}; t4.prototype.handleError=function(e){if(!this.wP()){this.D=e;this.C.resolve();var a,r;(r=(a=this.options).Rzo)==null||r.call(a,e)}}; t4.prototype.bD=function(){return this.logger.share()}; var qnz={Ror:432E5,lE:3E5,Dz:10,s4:1E4,hh:3E4,J_:3E4,iaP:6E4,wG:1E3,Za:6E4,Cv:6E5,Xv:.25,lZ:2,maxAttempts:10};var aLl,uh4=(aLl=Math.imul)!=null?aLl:function(e,a){return e*a|0},kO=[196, 200,224,18];dk.prototype.n_=function(){return String(this.S)+","+this.T.join()}; dk.prototype.dE=function(e,a){var r=void 0;if(this.T[this.S]!==e){var P=this.T.indexOf(e);P!==-1?(this.T.splice(P,1),P0;)a[r++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e%62),e=Math.floor(e/62);return a.join("")}};g.b(D_,g.N);D_.prototype.UL=function(e,a){var r=this.Ry(e);a==null||a(r);return Pn(this.logger,function(){return g.Vq(r,2)},this.T)}; g.b(QL,D_);QL.prototype.Ry=function(e,a){var r=this;this.logger.Bw(this.S);++this.C>=this.Z&&this.B.resolve();var P=e();e=Pn(this.logger,function(){return r.L(P)},"C"); if(e===void 0)throw new uw(17,"YNJ:Undefined");if(!(e instanceof Uint8Array))throw new uw(18,"ODM:Invalid");a==null||a(e);return e}; g.b(Wn,D_);Wn.prototype.Ry=function(){return this.L}; g.b(lT,D_);lT.prototype.Ry=function(){var e=this;return Pn(this.logger,function(){return Qq(e.L)},"d")}; lT.prototype.UL=function(){return this.L}; g.b(Lp,D_);Lp.prototype.Ry=function(){if(this.L)return this.L;this.L=X9L(this,function(e){return"_"+TT4(e)}); return X9L(this,function(e){return e})}; g.b(wk,D_);wk.prototype.Ry=function(){var e=Math.floor(Date.now()/1E3),a=[Math.random()*255,Math.random()*255],r=a.concat([this.L&255,this.clientState],[e>>24&255,e>>16&255,e>>8&255,e&255]);e=new Uint8Array(2+r.length);e[0]=34;e[1]=r.length;e.set(r,2);r=e.subarray(2);for(var P=a=a.length;P150))try{this.cache=new hF3(e,this.logger)}catch(a){this.reportError(new uw(22,"GBJ:init",a))}}; g.E.reportError=function(e){this.logger.cI(e.code);this.onError(e);return e}; var U1j=function(e){return ob(function(a){if(!H5N(a))return!1;for(var r=g.Z(Object.entries(e)),P=r.next();!P.done;P=r.next()){var B=g.Z(P.value);P=B.next().value;B=B.next().value;if(!(P in a)){if(B.rDW===!0)continue;return!1}if(!B(a[P]))return!1}return!0})}({SK:function(e){return ob(function(a){return a instanceof e})}(t4)},"");var m_z=(new Date).getTime();g.b(xO,kC);var rUN=eg(xO);k03.prototype.getMetadata=function(){return this.metadata};Iz.prototype.getMetadata=function(){return this.metadata}; Iz.prototype.getStatus=function(){return this.status};Hn.prototype.D=function(e,a){a=a===void 0?{}:a;return new k03(e,this,a)}; Hn.prototype.getName=function(){return this.name};var PFN=new Hn("/google.internal.waa.v1.Waa/Create",GY,xO,function(e){return e.n_()},rUN);g.b(qi,kC);var zSN=new Hn("/google.internal.waa.v1.Waa/GenerateIT",Em,qi,function(e){return e.n_()},eg(qi));var ec3=new Set(["SAPISIDHASH","APISIDHASH"]);g.b(vn,kC);vn.prototype.getValue=function(){var e=e5(this,2);if(Array.isArray(e)||e instanceof kC)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return yV(this,2)};g.b(Rz,kC);Rz.prototype.getMessage=function(){return l5(this,2)}; var Q54=eg(Rz);SU.prototype.yC=function(e,a){e=="data"?this.B.push(a):e=="metadata"?this.C.push(a):e=="status"?this.Z.push(a):e=="end"?this.L.push(a):e=="error"&&this.T.push(a);return this}; SU.prototype.removeListener=function(e,a){e=="data"?jU(this.B,a):e=="metadata"?jU(this.C,a):e=="status"?jU(this.Z,a):e=="end"?jU(this.L,a):e=="error"&&jU(this.T,a);return this}; SU.prototype.cancel=function(){this.S.abort()}; SU.prototype.cancel=SU.prototype.cancel;SU.prototype.removeListener=SU.prototype.removeListener;SU.prototype.on=SU.prototype.yC;g.b(JLO,Error);g.UG(g.uT,Xe3);g.uT.prototype.S=function(){var e=new Kp(this.L,this.B);this.T&&e.setCredentialsMode(this.T);return e}; g.uT.prototype.setCredentialsMode=function(e){this.T=e}; g.UG(Kp,g.AP);g.E=Kp.prototype;g.E.open=function(e,a){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.oH=e;this.HW=a;this.readyState=1;ep(this)}; g.E.send=function(e){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Y.signal.aborted)throw this.abort(),Error("Request was aborted.");this.S=!0;var a={headers:this.N,method:this.oH,credentials:this.C,cache:void 0,signal:this.Y.signal};e&&(a.body=e);(this.TQ||g.uq).fetch(new Request(this.HW,a)).then(this.qS.bind(this),this.ao.bind(this))}; g.E.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.Y.abort();this.B&&this.B.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.S&&this.readyState!=4&&(this.S=!1,aa(this));this.readyState=0}; g.E.qS=function(e){if(this.S&&(this.L=e,this.T||(this.status=this.L.status,this.statusText=this.L.statusText,this.T=e.headers,this.readyState=2,ep(this)),this.S&&(this.readyState=3,ep(this),this.S)))if(this.responseType==="arraybuffer")e.arrayBuffer().then(this.GP.bind(this),this.ao.bind(this));else if(typeof g.uq.ReadableStream!=="undefined"&&"body"in e){this.B=e.body.getReader();if(this.Z){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.D=new TextDecoder;WST(this)}else e.text().then(this.yz.bind(this),this.ao.bind(this))}; g.E.hV=function(e){if(this.S){if(this.Z&&e.value)this.response.push(e.value);else if(!this.Z){var a=e.value?e.value:new Uint8Array(0);if(a=this.D.decode(a,{stream:!e.done}))this.response=this.responseText+=a}e.done?aa(this):ep(this);this.readyState==3&&WST(this)}}; g.E.yz=function(e){this.S&&(this.response=this.responseText=e,aa(this))}; g.E.GP=function(e){this.S&&(this.response=e,aa(this))}; g.E.ao=function(){this.S&&aa(this)}; g.E.setRequestHeader=function(e,a){this.N.append(e,a)}; g.E.getResponseHeader=function(e){return this.T?this.T.get(e.toLowerCase())||"":""}; g.E.getAllResponseHeaders=function(){if(!this.T)return"";for(var e=[],a=this.T.entries(),r=a.next();!r.done;)r=r.value,e.push(r[0]+": "+r[1]),r=a.next();return e.join("\r\n")}; g.E.setCredentialsMode=function(e){this.C=e}; Object.defineProperty(Kp.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(e){this.setCredentialsMode(e?"include":"same-origin")}});g.ri.prototype.toString=function(){var e=[],a=this.C;a&&e.push(ym(a,Bf9,!0),":");var r=this.S;if(r||a=="file")e.push("//"),(a=this.Y)&&e.push(ym(a,Bf9,!0),"@"),e.push(g.VC(r).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),r=this.B,r!=null&&e.push(":",String(r));if(r=this.T)this.S&&r.charAt(0)!="/"&&e.push("/"),e.push(ym(r,r.charAt(0)=="/"?hGG:cUV,!0));(r=this.L.toString())&&e.push("?",r);(r=this.Z)&&e.push("#",ym(r,o8N));return e.join("")}; g.ri.prototype.resolve=function(e){var a=this.clone(),r=!!e.C;r?g.PP(a,e.C):r=!!e.Y;r?a.Y=e.Y:r=!!e.S;r?g.BP(a,e.S):r=e.B!=null;var P=e.T;if(r)g.hn(a,e.B);else if(r=!!e.T){if(P.charAt(0)!="/")if(this.S&&!this.T)P="/"+P;else{var B=a.T.lastIndexOf("/");B!=-1&&(P=a.T.slice(0,B+1)+P)}B=P;if(B==".."||B==".")P="";else if(g.lO(B,"./")||g.lO(B,"/.")){P=QI(B,"/");B=B.split("/");for(var h=[],c=0;c1||h.length==1&&h[0]!="")&&h.pop(), P&&c==B.length&&h.push("")):(h.push(y),P=!0)}P=h.join("/")}else P=B}r?a.T=P:r=e.L.toString()!=="";r?cP(a,e.L.clone()):r=!!e.Z;r&&(a.Z=e.Z);return a}; g.ri.prototype.clone=function(){return new g.ri(this)}; var Bf9=/[#\/\?@]/g,cUV=/[#\?:]/g,hGG=/[#\?]/g,p9q=/[#\?@]/g,o8N=/#/g;g.E=nX.prototype;g.E.add=function(e,a){fX(this);this.B=null;e=An(this,e);var r=this.S.get(e);r||this.S.set(e,r=[]);r.push(a);this.T=this.T+1;return this}; g.E.remove=function(e){fX(this);e=An(this,e);return this.S.has(e)?(this.B=null,this.T=this.T-this.S.get(e).length,this.S.delete(e)):!1}; g.E.clear=function(){this.S=this.B=null;this.T=0}; g.E.isEmpty=function(){fX(this);return this.T==0}; g.E.forEach=function(e,a){fX(this);this.S.forEach(function(r,P){r.forEach(function(B){e.call(a,B,P,this)},this)},this)}; g.E.Yl=function(){fX(this);for(var e=Array.from(this.S.values()),a=Array.from(this.S.keys()),r=[],P=0;P0?String(e[0]):a}; g.E.toString=function(){if(this.B)return this.B;if(!this.S)return"";for(var e=[],a=Array.from(this.S.keys()),r=0;r>>3;h.B!=1&&h.B!=2&&h.B!=15&&EC(h,c,y,"unexpected tag");h.S=1;h.T=0;h.L=0} function r(T){h.L++;h.L==5&&T&240&&EC(h,c,y,"message length too long");h.T|=(T&127)<<(h.L-1)*7;T&128||(h.S=2,h.Y=0,typeof Uint8Array!=="undefined"?h.C=new Uint8Array(h.T):h.C=Array(h.T),h.T==0&&B())} function P(T){h.C[h.Y++]=T;h.Y==h.T&&B()} function B(){if(h.B<15){var T={};T[h.B]=h.C;h.D.push(T)}h.S=0} for(var h=this,c=e instanceof Array?e:new Uint8Array(e),y=0;y0?e:null};b9.prototype.isInputValid=function(){return this.S===null}; b9.prototype.OU=function(){return this.S}; b9.prototype.lN=function(){return!1}; b9.prototype.parse=function(e){this.S!==null&&vcj(this,e,"stream already broken");var a=null;try{var r=this.B;r.B||qwL(r,e,"stream already broken");r.S+=e;var P=Math.floor(r.S.length/4);if(P==0)var B=null;else{try{var h=QQz(r.S.slice(0,P*4))}catch(c){qwL(r,r.S,c.message)}r.T+=P*4;r.S=r.S.slice(P*4);B=h}a=B===null?null:this.L.parse(B)}catch(c){vcj(this,e,c.message)}this.T+=e.length;return a};var yUV={INIT:0,R1:1,xk:2,yD:3,nz:4,o9:5,STRING:6,mG:7,FY:8,TH:9,By:10,On:11,Sb:12,pk:13,R7:14,b_:15,v2:16,N_:17,iS:18,zs:19,sK:20};g.E=gi.prototype;g.E.isInputValid=function(){return this.C!=3}; g.E.OU=function(){return this.N}; g.E.done=function(){return this.C===2}; g.E.lN=function(){return!1}; g.E.parse=function(e){function a(){for(;U0;)if(G=e[U++], h.Y===4?h.Y=0:h.Y++,!G)break a;if(G==='"'&&!h.D){h.S=P();break}if(G==="\\"&&!h.D&&(h.D=!0,G=e[U++],!G))break;if(h.D)if(h.D=!1,G==="u"&&(h.Y=1),G=e[U++])continue;else break;y.lastIndex=U;G=y.exec(e);if(!G){U=e.length+1;break}U=G.index+1;G=e[G.index];if(!G)break}h.B+=U-O;continue;case T.TH:if(!G)continue;G==="r"?h.S=T.By:Zn(h,e,U);continue;case T.By:if(!G)continue;G==="u"?h.S=T.On:Zn(h,e,U);continue;case T.On:if(!G)continue;G==="e"?h.S=P():Zn(h,e,U);continue;case T.Sb:if(!G)continue;G==="a"?h.S=T.pk: Zn(h,e,U);continue;case T.pk:if(!G)continue;G==="l"?h.S=T.R7:Zn(h,e,U);continue;case T.R7:if(!G)continue;G==="s"?h.S=T.b_:Zn(h,e,U);continue;case T.b_:if(!G)continue;G==="e"?h.S=P():Zn(h,e,U);continue;case T.v2:if(!G)continue;G==="u"?h.S=T.N_:Zn(h,e,U);continue;case T.N_:if(!G)continue;G==="l"?h.S=T.iS:Zn(h,e,U);continue;case T.iS:if(!G)continue;G==="l"?h.S=P():Zn(h,e,U);continue;case T.zs:G==="."?h.S=T.sK:Zn(h,e,U);continue;case T.sK:if("0123456789.eE+-".indexOf(G)!==-1)continue;else U--,h.B--,h.S= P();continue;default:Zn(h,e,U)}}} function P(){var G=c.pop();return G!=null?G:T.R1} function B(G){h.T>1||(G||(G=A===-1?h.L+e.substring(f,U):e.substring(A,U)),h.HW?h.Z.push(G):h.Z.push(JSON.parse(G)),A=U)} for(var h=this,c=h.oH,y=h.TQ,T=yUV,X=e.length,f=0,A=-1,U=0;U0?(C=h.Z,h.Z=[],C):null}return null};OC.prototype.isInputValid=function(){return this.C===null}; OC.prototype.OU=function(){return this.C}; OC.prototype.lN=function(){return!1}; OC.prototype.parse=function(e){function a(T){h.T=6;h.C="The stream is broken @"+h.S+"/"+c+". Error: "+T+". With input:\n";throw Error(h.C);} function r(){h.B=new gi({xjm:!0,Nl:!0})} function P(T){if(T)for(var X=0;X1)&&a("extra status: "+T);h.Z=!0;var X={};X[2]=T[0];h.L.push(X)}} for(var h=this,c=0;c0?(e=h.L,h.L=[],e):null};k4.prototype.I3=function(){return this.S}; k4.prototype.getStatus=function(){return this.C}; k4.prototype.HW=function(e){e=e.target;try{if(e==this.S)a:{var a=g.mK(this.S),r=this.S.T,P=this.S.getStatus(),B=g.M_(this.S);e=[];if(g.jC(this.S)instanceof Array){var h=g.jC(this.S);h.length>0&&h[0]instanceof Uint8Array&&(this.N=!0,e=h)}if(!(a<3||a==3&&!B&&e.length==0))if(P=P==200||P==206,a==4&&(r==8?di(this,7):r==7?di(this,8):P||di(this,3)),this.T||(this.T=RFy(this.S),this.T==null&&di(this,5)),this.C>2)Jn(this);else{if(e.length>this.B){var c=e.length;r=[];try{if(this.T.lN())for(var y=0;ythis.B){y=B.slice(this.B);this.B=B.length;try{var X=this.T.parse(y);X!=null&&this.L&&this.L(X)}catch(f){di(this,5);Jn(this);break a}}a==4?(B.length!= 0||this.N?di(this,2):di(this,4),Jn(this)):di(this,1)}}}catch(f){di(this,6),Jn(this)}};g.E=Sw4.prototype;g.E.yC=function(e,a){var r=this.T[e];r||(r=[],this.T[e]=r);r.push(a);return this}; g.E.addListener=function(e,a){this.yC(e,a);return this}; g.E.removeListener=function(e,a){var r=this.T[e];r&&g.k9(r,a);(e=this.S[e])&&g.k9(e,a);return this}; g.E.once=function(e,a){var r=this.S[e];r||(r=[],this.S[e]=r);r.push(a);return this}; g.E.M1Q=function(e){var a=this.T.data;a&&s5L(e,a);(a=this.S.data)&&s5L(e,a);this.S.data=[]}; g.E.pZo=function(){switch(this.B.getStatus()){case 1:Dn(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Dn(this,"error");break;case 8:Dn(this,"close");break;case 2:Dn(this,"end")}};m1L.prototype.serverStreaming=function(e,a,r,P){var B=this,h=e.substring(0,e.length-P.name.length);return aOl(function(c){var y=c.Uy,T=c.getMetadata(),X=j5j(B,!1);T=uEO(B,T,X,h+y.getName());var f=KSl(X,y.T,!0);c=y.S(c.aF);X.send(T,"POST",c);return f},this.Ou).call(this,P.D(a,r))};rS4.prototype.create=function(e,a,r){var P=this.S,B=this.T+"/$rpc/google.internal.waa.v1.Waa/Create";a=a||{};r=r===void 0?{}:r;return Ncy(P,B,e,a,PFN,r)};var PbL="://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(" "),B9J=/\bocr\b/;var cSN=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(e){throw e;}},{uxH:!0, oxM:!0,nxF:!1,S5$:Wl5,pwH:lBb,RsW:!1,ALH:!1,HTW:!0,Txf:QZN,iTW:!1,CK1:!1,nEo:!1});var Qm=null,l9=!1,Eq4=1,Uqz=Symbol("SIGNAL"),EQ={version:0,He1:0,BS:!1,producers:void 0,B0:void 0,sB:void 0,SJ:void 0,uT:!1,Zg:!1,wY:!1,kind:"unknown",oF:function(){return!1}, nG:function(){}, Cl:function(){}, VVM:function(){}};var bW=Symbol("UNSET"),tI=Symbol("COMPUTING"),g0=Symbol("ERRORED");Object.assign({},EQ,{value:bW,BS:!0,error:null,uG:$4,kind:"computed",oF:function(e){return e.value===bW||e.value===tI}, nG:function(e){if(e.value===tI)throw Error("");var a=e.value;e.value=tI;var r=yS4(e),P=!1;try{var B=e.cN();WP(null);P=a!==bW&&a!==g0&&B!==g0&&e.uG(a,B)}catch(h){B=g0,e.error=h}finally{X1j(e,r)}P?e.value=a:(e.value=B,e.version++)}});var ASq=Object.assign({},EQ,{uG:$4,value:void 0,kind:"signal"});Object.assign({},EQ,{value:bW,BS:!0,error:null,uG:$4,kind:"linkedSignal",oF:function(e){return e.value===bW||e.value===tI}, nG:function(e){if(e.value===tI)throw Error("");var a=e.value;e.value=tI;var r=yS4(e);try{var P=e.source();var B=e.cN(P,a===bW||a===g0?void 0:{source:e.TLo,value:a});e.TLo=P}catch(h){B=g0,e.error=h}finally{X1j(e,r)}a!==bW&&B!==g0&&e.uG(a,B)?e.value=a:(e.value=B,e.version++)}});Object.assign({},EQ,{wY:!0,Zg:!1,Cl:function(e){e.schedule!==null&&e.schedule(e.J6P)}, dzz:!1,GJF:function(){}});g.b(pX,g.AP);pX.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.kZ.OQ(this.C);delete pX.instance}; pX.prototype.ZY=function(){return this.S}; pX.prototype.CB=function(){var e=this;this.C=this.kZ.xL(function(){var a;return g.Y(function(r){if(r.T==1)return e.S?((a=window.navigator)==null?0:a.onLine)?r.Oo(3):g.l(r,wi(e),3):g.l(r,wi(e),3);e.CB();g.OO(r)})},3E4)};g.b(tkl,kC);var TfZ=gHL(tkl,[0,y2,$7M,U7l,y2,-2,U7l,Xd9]);zk.prototype.set=function(e,a){a=a===void 0?!0:a;0<=e&&e<52&&Number.isInteger(e)&&this.data[e]!==a&&(this.data[e]=a,this.S=-1)}; zk.prototype.get=function(e){return!!this.data[e]};var x4;g.UG(g.qe,g.N);g.E=g.qe.prototype;g.E.start=function(){this.stop();this.L=!1;var e=ZeO(this),a=Oej(this);e&&!a&&this.T.mozRequestAnimationFrame?(this.S=g.at(this.T,"MozBeforePaint",this.B),this.T.mozRequestAnimationFrame(null),this.L=!0):this.S=e&&a?e.call(this.T,this.B):this.T.setTimeout(H5q(this.B),20)}; g.E.stop=function(){if(this.isActive()){var e=ZeO(this),a=Oej(this);e&&!a&&this.T.mozRequestAnimationFrame?hP(this.S):e&&a?a.call(this.T,this.S):this.T.clearTimeout(this.S)}this.S=null}; g.E.isActive=function(){return this.S!=null}; g.E.ZR=function(){this.L&&this.S&&hP(this.S);this.S=null;this.Z.call(this.C,g.f5())}; g.E.RH=function(){this.stop();g.qe.Tl.RH.call(this)};g.UG(g.vP,g.N);g.E=g.vP.prototype;g.E.s$=0;g.E.RH=function(){g.vP.Tl.RH.call(this);this.stop();delete this.S;delete this.T}; g.E.start=function(e){this.stop();this.s$=g.zQ(this.B,e!==void 0?e:this.FG)}; g.E.stop=function(){this.isActive()&&g.uq.clearTimeout(this.s$);this.s$=0}; g.E.isActive=function(){return this.s$!=0}; g.E.Ew=function(){this.s$=0;this.S&&this.S.call(this.T)};g.b(g.Me,g.N);g.E=g.Me.prototype;g.E.iN=function(e){this.B=arguments;this.JC||this.T?this.S=!0:jp(this)}; g.E.stop=function(){this.JC&&(g.uq.clearTimeout(this.JC),this.JC=null,this.S=!1,this.B=null)}; g.E.pause=function(){this.T++}; g.E.resume=function(){this.T--;this.T||!this.S||this.JC||(this.S=!1,jp(this))}; g.E.RH=function(){g.N.prototype.RH.call(this);this.stop()};g.u9.prototype[Symbol.iterator]=function(){return this}; g.u9.prototype.next=function(){var e=this.S.next();return{value:e.done?void 0:this.T.call(void 0,e.value),done:e.done}};g.UG(g.oc,g.AP);g.E=g.oc.prototype;g.E.isPlaying=function(){return this.S==1}; g.E.isPaused=function(){return this.S==-1}; g.E.cU=function(){this.XD("begin")}; g.E.kX=function(){this.XD("end")}; g.E.onFinish=function(){this.XD("finish")}; g.E.onStop=function(){this.XD("stop")}; g.E.XD=function(e){this.dispatchEvent(e)};var XRl=YH(function(){var e=g.U9("DIV"),a=g.T7?"-webkit":R8?"-moz":null,r="transition:opacity 1s linear;";a&&(r+=a+"-transition:opacity 1s linear;");a=QZ4({style:r});if(e.nodeType===1&&/^(script|style)$/i.test(e.tagName))throw Error("");e.innerHTML=UZ(a);return g.S2(e.firstChild,"transition")!=""});g.UG(nT,g.oc);g.E=nT.prototype;g.E.play=function(){if(this.isPlaying())return!1;this.cU();this.XD("play");this.startTime=g.f5();this.S=1;if(XRl())return g.vo(this.T,this.Z),this.B=g.zQ(this.P5W,void 0,this),!0;this.l8(!1);return!1}; g.E.P5W=function(){g.rF(this.T);JS4(this.T,this.D);g.vo(this.T,this.L);this.B=g.zQ((0,g.yG)(this.l8,this,!1),this.C*1E3)}; g.E.stop=function(){this.isPlaying()&&this.l8(!0)}; g.E.l8=function(e){g.vo(this.T,"transition","");g.uq.clearTimeout(this.B);g.vo(this.T,this.L);this.endTime=g.f5();this.S=0;if(e)this.onStop();else this.onFinish();this.kX()}; g.E.RH=function(){this.stop();nT.Tl.RH.call(this)}; g.E.pause=function(){};var VkO={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};yj("Element","attributes")||yj("Node","attributes");yj("Element","innerHTML")||yj("HTMLElement","innerHTML");yj("Node","nodeName");yj("Node","nodeType");yj("Node","parentNode");yj("Node","childNodes");yj("HTMLElement","style")||yj("Element","style");yj("HTMLStyleElement","sheet");var Yez=Qsj("getPropertyValue"),w1j=Qsj("setProperty");yj("Element","namespaceURI")||yj("Node","namespaceURI");var LeL={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var N9T,taZ,zcy,iej,xqz;N9T=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]");taZ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.fL8=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.XT=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]");zcy=/^http:\/\/.*/;g.AU9=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");iej=/\s+/;xqz=/[\d\u06f0-\u06f9]/;Ai.prototype.TT=function(){return new Uy(this.T())}; Ai.prototype[Symbol.iterator]=function(){return new CT(this.T())}; Ai.prototype.S=function(){return new CT(this.T())}; g.b(Uy,g.dc);Uy.prototype.next=function(){return this.T.next()}; Uy.prototype[Symbol.iterator]=function(){return new CT(this.T)}; Uy.prototype.S=function(){return new CT(this.T)}; g.b(CT,Ai);CT.prototype.next=function(){return this.B.next()};Ey.prototype.clone=function(){return new Ey(this.S,this.D,this.B,this.C,this.L,this.Z,this.T,this.Y)}; Ey.prototype.equals=function(e){return this.S==e.S&&this.D==e.D&&this.B==e.B&&this.C==e.C&&this.L==e.L&&this.Z==e.Z&&this.T==e.T&&this.Y==e.Y};ti.prototype.clone=function(){return new ti(this.start,this.end)};(function(){if(DVj){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(g.zX()))?e[1]:"0"}return Ar?(e=/1[0|1][_.][0-9_.]+/,(e=e.exec(g.zX()))?e[0].replace(/_/g,"."):"10"):g.mp?(e=/Android\s+([^\);]+)(\)|;)/,(e=e.exec(g.zX()))?e[1]:""):wBN||pBN||i5N?(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(e=e.exec(g.zX()))?e[1].replace(/_/g,"."):""):""})();var HeL=function(){if(g.yw)return gr(/Firefox\/([0-9.]+)/);if(g.T$||g.qU||g.MR)return O5L;if(g.Ed){if(iF()||z1()){var e=gr(/CriOS\/([0-9.]+)/);if(e)return e}return gr(/Chrome\/([0-9.]+)/)}if(g.Uv&&!iF())return gr(/Version\/([0-9.]+)/);if(Rf||Sw){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.zX()))return e[1]+"."+e[2]}else if(g.jD)return(e=gr(/Android\s+([0-9.]+)/))?e:gr(/Version\/([0-9.]+)/);return""}();g.UG(g.Oy,g.N);g.E=g.Oy.prototype;g.E.subscribe=function(e,a,r){var P=this.T[e];P||(P=this.T[e]=[]);var B=this.Z;this.S[B]=e;this.S[B+1]=a;this.S[B+2]=r;this.Z=B+3;P.push(B);return B}; g.E.unsubscribe=function(e,a,r){if(e=this.T[e]){var P=this.S;if(e=e.find(function(B){return P[B+1]==a&&P[B+2]==r}))return this.VJ(e)}return!1}; g.E.VJ=function(e){var a=this.S[e];if(a){var r=this.T[a];this.L!=0?(this.B.push(e),this.S[e+1]=function(){}):(r&&g.k9(r,e),delete this.S[e],delete this.S[e+1],delete this.S[e+2])}return!!a}; g.E.publish=function(e,a){var r=this.T[e];if(r){var P=Array(arguments.length-1),B=arguments.length,h;for(h=1;h0&&this.L==0)for(;r=this.B.pop();)this.VJ(r)}}return h!=0}return!1}; g.E.clear=function(e){if(e){var a=this.T[e];a&&(a.forEach(this.VJ,this),delete this.T[e])}else this.S.length=0,this.T={}}; g.E.RH=function(){g.Oy.Tl.RH.call(this);this.clear();this.B.length=0};g.kx.prototype.set=function(e,a){a===void 0?this.S.remove(e):this.S.set(e,g.Hy(a))}; g.kx.prototype.get=function(e){try{var a=this.S.get(e)}catch(r){return}if(a!==null)try{return JSON.parse(a)}catch(r){throw"Storage: Invalid value was encountered";}}; g.kx.prototype.remove=function(e){this.S.remove(e)};g.UG(dr,g.kx);dr.prototype.set=function(e,a){dr.Tl.set.call(this,e,Rcz(a))}; dr.prototype.T=function(e){e=dr.Tl.get.call(this,e);if(e===void 0||e instanceof Object)return e;throw"Storage: Invalid value was encountered";}; dr.prototype.get=function(e){if(e=this.T(e)){if(e=e.data,e===void 0)throw"Storage: Invalid value was encountered";}else e=void 0;return e};g.UG(Ji,dr);Ji.prototype.set=function(e,a,r){if(a=Rcz(a)){if(r){if(r=r.length)return g.fd;var B=r.key(a++);if(e)return g.JV(B);B=r.getItem(B);if(typeof B!=="string")throw"Storage mechanism: Invalid value was encountered";return g.JV(B)}; return P}; g.E.clear=function(){Qj(this);this.S.clear()}; g.E.key=function(e){Qj(this);return this.S.key(e)};g.UG(WD,$x);g.UG(mqN,$x);g.UG(lY,Vj);lY.prototype.set=function(e,a){this.T.set(this.S+e,a)}; lY.prototype.get=function(e){return this.T.get(this.S+e)}; lY.prototype.remove=function(e){this.T.remove(this.S+e)}; lY.prototype.TT=function(e){var a=this.T[Symbol.iterator](),r=this,P=new g.dc;P.next=function(){var B=a.next();if(B.done)return B;for(B=B.value;B.slice(0,r.S.length)!=r.S;){B=a.next();if(B.done)return B;B=B.value}return g.JV(e?B.slice(r.S.length):r.T.get(B))}; return P};Yx.prototype.getValue=function(){return this.T}; Yx.prototype.clone=function(){return new Yx(this.S,this.T)};g.E=wr.prototype;g.E.dE=function(e,a){var r=this.S;r.push(new Yx(e,a));e=r.length-1;a=this.S;for(r=a[e];e>0;){var P=e-1>>1;if(a[P].S>r.S)a[e]=a[P],e=P;else break}a[e]=r}; g.E.remove=function(){var e=this.S,a=e.length,r=e[0];if(!(a<=0)){if(a==1)e.length=0;else{e[0]=e.pop();e=0;a=this.S;for(var P=a.length,B=a[e];e

>1;){var h=e*2+1,c=e*2+2;h=cB.S)break;a[e]=a[h];e=h}a[e]=B}return r.getValue()}}; g.E.XP=function(){for(var e=this.S,a=[],r=e.length,P=0;P>>16&65535|0;for(var h;r!==0;){h=r>2E3?2E3:r;r-=h;do B=B+a[P++]|0,e=e+B|0;while(--h);B%=65521;e%=65521}return B|e<<16|0};for(var Tt={},Zq,bDZ=[],OQ=0;OQ<256;OQ++){Zq=OQ;for(var trZ=0;trZ<8;trZ++)Zq=Zq&1?3988292384^Zq>>>1:Zq>>>1;bDZ[OQ]=Zq}Tt=function(e,a,r,P){r=P+r;for(e^=-1;P>>8^bDZ[(e^a[P])&255];return e^-1};var eX={};eX={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 sy=[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],Mo=[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],tC4=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nPL=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BV=Array(576);No(BV);var ha=Array(60);No(ha);var FT=Array(512);No(FT);var SG=Array(256);No(SG);var mD=Array(29);No(mD);var jG=Array(30);No(jG);var GQJ,EPT,bNL,CEy=!1;var CG;CG=[new U7(0,0,0,0,function(e,a){var r=65535;for(r>e.AB-5&&(r=e.AB-5);;){if(e.qr<=1){Xv(e);if(e.qr===0&&a===0)return 1;if(e.qr===0)break}e.aD+=e.qr;e.qr=0;var P=e.Zm+r;if(e.aD===0||e.aD>=P)if(e.qr=e.aD-P,e.aD=P,cV(e,!1),e.PZ.iB===0)return 1;if(e.aD-e.Zm>=e.L8-262&&(cV(e,!1),e.PZ.iB===0))return 1}e.dE=0;if(a===4)return cV(e,!0),e.PZ.iB===0?3:4;e.aD>e.Zm&&cV(e,!1);return 1}), new U7(4,4,8,4,fG),new U7(4,5,16,8,fG),new U7(4,6,32,32,fG),new U7(4,4,16,16,Aa),new U7(8,16,32,32,Aa),new U7(8,16,128,128,Aa),new U7(8,32,128,256,Aa),new U7(32,128,258,1024,Aa),new U7(32,258,258,4096,Aa)];var U_q={};U_q=function(){this.input=null;this.ag=this.a$=this.KU=0;this.output=null;this.X2=this.iB=this.Jl=0;this.msg="";this.state=null;this.va=2;this.ZX=0};var gPq=Object.prototype.toString; Gt.prototype.push=function(e,a){var r=this.PZ,P=this.options.chunkSize;if(this.ended)return!1;var B=a===~~a?a:a===!0?4:0;typeof e==="string"?r.input=jsI(e):gPq.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e;r.KU=0;r.a$=r.input.length;do{r.iB===0&&(r.output=new z$.z3(P),r.Jl=0,r.iB=P);e=APN(r,B);if(e!==1&&e!==0)return this.kX(e),this.ended=!0,!1;if(r.iB===0||r.a$===0&&(B===4||B===2))if(this.options.to==="string"){var h=z$.rA(r.output,r.Jl);a=h;h=h.length;if(h<65537&&(a.subarray&& E8V||!a.subarray))a=String.fromCharCode.apply(null,z$.rA(a,h));else{for(var c="",y=0;y0||r.iB===0)&&e!==1);if(B===4)return(r=this.PZ)&&r.state?(P=r.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?e=aM(r,-2):(r.state=null,e=P===113?aM(r,-3):0)):e=-2,this.kX(e),this.ended=!0,e===0;B===2&&(this.kX(0),r.iB=0);return!0}; Gt.prototype.kX=function(e){e===0&&(this.result=this.options.to==="string"?this.chunks.join(""):z$.nO(this.chunks));this.chunks=[];this.err=e;this.msg=this.PZ.msg};var bx="@@redux/INIT"+E7(),D_O="@@redux/REPLACE"+E7();var VCN=typeof Symbol==="function"&&Symbol.observable||"@@observable";var g8a=[0,d7N,-3,nd];g.b(lNq,kC);var Hzz=gHL(lNq,[0,y2,JkZ,BT,d7N,BT,-1,nd,d7N,nd,-1,y2,nd,JkZ,hI,g8a,BT,-1,nd]);var LKL=-463996900;var j6q=new g.Zj("adInfoDialogEndpoint");var QyL=new g.Zj("adPingingEndpoint");var K94=new g.Zj("crossDeviceProgressCommand");var YR=new g.Zj("actionCompanionAdRenderer");var F0=new g.Zj("adActionInterstitialRenderer");var ZD8=new g.Zj("adDurationRemainingRenderer");var cz=new g.Zj("adHoverTextButtonRenderer");var Fi3=new g.Zj("adInfoDialogRenderer");var qk=new g.Zj("adMessageRenderer");var o0=new g.Zj("adPreviewRenderer");var pj=new g.Zj("adsEngagementPanelRenderer");var DQy=new g.Zj("dismissablePanelTextPortraitImageRenderer");var dQI=new g.Zj("adsEngagementPanelSectionListViewModel");var ODN=new g.Zj("flyoutCtaRenderer");var w7=new g.Zj("imageCompanionAdRenderer");var sp=new g.Zj("instreamAdPlayerOverlayRenderer");var N4N=new g.Zj("instreamSurveyAdBackgroundImageRenderer");var he=new g.Zj("instreamSurveyAdPlayerOverlayRenderer");var sE=new g.Zj("instreamSurveyAdRenderer"),Bz=new g.Zj("instreamSurveyAdSingleSelectQuestionRenderer"),Pz=new g.Zj("instreamSurveyAdMultiSelectQuestionRenderer"),ki=new g.Zj("instreamSurveyAdAnswerRenderer"),k1w=new g.Zj("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var RE=new g.Zj("instreamVideoAdRenderer");var dvM=new g.Zj("textOverlayAdContentRenderer"),JU8=new g.Zj("enhancedTextOverlayAdContentRenderer"),Dvw=new g.Zj("imageOverlayAdContentRenderer");var mg=new g.Zj("playerOverlayLayoutRenderer");var Ms=new g.Zj("videoInterstitialButtonedCenteredLayoutRenderer");var lPT=new g.Zj("aboveFeedAdLayoutRenderer");var Lfq=new g.Zj("belowPlayerAdLayoutRenderer");var Wfj=new g.Zj("inPlayerAdLayoutRenderer");var MK=new g.Zj("playerBytesAdLayoutRenderer");var rJ=new g.Zj("playerBytesSequenceItemAdLayoutRenderer");var a0=new g.Zj("playerUnderlayAdLayoutRenderer");var S9=new g.Zj("adIntroRenderer");var qK=new g.Zj("playerBytesSequentialLayoutRenderer");var XrT=new g.Zj("slidingTextPlayerOverlayRenderer");var mk=new g.Zj("surveyTextInterstitialRenderer");var j9=new g.Zj("videoAdTrackingRenderer");var Z3z=new g.Zj("videoInterstitialCenteredLayoutViewModel");var Vrl=new g.Zj("simpleAdBadgeRenderer");var L7=new g.Zj("skipAdRenderer"),$vB=new g.Zj("skipButtonRenderer");var X$=new g.Zj("adSlotRenderer");var Kj=new g.Zj("squeezebackPlayerSidePanelRenderer");var QDl=new g.Zj("timedPieCountdownRenderer");var sF=new g.Zj("adAvatarViewModel");var mh=new g.Zj("adBadgeViewModel");var FC=new g.Zj("adButtonViewModel");var W4a=new g.Zj("adDetailsLineViewModel");var lLN=new g.Zj("adDisclosureBannerViewModel");var L4B=new g.Zj("adPodIndexViewModel");var YZB=new g.Zj("imageBackgroundViewModel");var wR8=new g.Zj("adGridCardCollectionViewModel");var pR5=new g.Zj("adGridCardTextViewModel");var iDl=new g.Zj("adPreviewViewModel");var zGB=new g.Zj("playerAdAvatarLockupCardButtonedViewModel");var Nfw=new g.Zj("skipAdButtonViewModel");var xva=new g.Zj("skipAdViewModel");var ILM=new g.Zj("timedPieCountdownViewModel");var HDN=new g.Zj("visitAdvertiserLinkViewModel");var i8=new g.Zj("bannerImageLayoutViewModel");var z8=new g.Zj("topBannerImageTextIconButtonedLayoutViewModel");var NK=new g.Zj("adsEngagementPanelLayoutViewModel");var e7=new g.Zj("displayUnderlayTextGridCardsLayoutViewModel");g.sT=new g.Zj("browseEndpoint");var qZ5=new g.Zj("confirmDialogEndpoint");var jAj=new g.Zj("commandContext");var ylz=new g.Zj("rawColdConfigGroup");var n2O=new g.Zj("rawHotConfigGroup");g.f$=new g.Zj("commandExecutorCommand");g.b(wy4,kC);var IUO={sq1:0,VQW:1,pjW:32,OEP:61,eC1:67,Elz:103,IIQ:86,S9Q:42,RC1:60,vZd:62,glM:73,T01:76,KHr:88,aIW:90,lIQ:99,olo:98,WHr:100,B0m:102,ZEQ:41,wjd:69,CqM:70,XjW:71,ssH:2,tZd:27,ANDROID:3,MXr:54,vud:14,RkW:91,rRz:55,NEP:24,i5M:20,uGQ:18,oLH:21,nLz:104,TTP:30,O5f:29,L0z:28,GUQ:101,InH:34,b5f:36,H5W:38,IOS:5,zA$:15,dOm:92,fPd:40,mOf:25,hAF:17,siP:19,tvz:64,xOz:66,A4W:26,J4P:22,Gyf:33,y4$:68,qQm:35,PiQ:53,YQm:37,c41:39,lsf:7,ZYH:57,w4P:43,X4W:59,CyW:93,gLW:74,Qqd:75,DKm:85,UKW:65,zqo:80,fso:8,WQQ:10, mKd:58,cbW:63,jqW:72,BTf:23,Ujo:11,jGW:13,F0d:12,eqQ:16,nlQ:56,LHP:31,fmW:77,uUF:84,bEQ:87,oPm:89,Hho:94,amP:95};g.b(O7,kC);O7.prototype.MG=function(){return l5(this,3)}; O7.prototype.nP=function(){return l5(this,5)}; O7.prototype.Ke=function(e){return i5(this,5,e)};g.b(km,kC);g.b(pyL,kC);g.b(dM,kC);g.E=dM.prototype;g.E.getDeviceId=function(){return l5(this,6)}; g.E.zb=function(e){var a=o4(this,9,CU,3,!0);s5(a,e);return a[e]}; g.E.getPlayerType=function(){return L0(this,36)}; g.E.setHomeGroupInfo=function(e){return D$(this,pyL,81,e)}; g.E.clearLocationPlayabilityToken=function(){return rN(this,89)};g.b(Ja,kC);Ja.prototype.getValue=function(){return l5(this,EX(this,cl3,2))}; var cl3=[2,3,4,5,6];g.b(Dj,kC);Dj.prototype.setTrackingParams=function(e){return rN(this,1,Hfq(e,!1))};g.b(Ve,kC);g.b($m,kC);$m.prototype.zb=function(e){var a=o4(this,5,GP,3,!0);s5(a,e);return a[e]};g.b(Qe,kC);Qe.prototype.getToken=function(){return wN(this,2)}; Qe.prototype.setToken=function(e){return i5(this,2,e)};g.b(WV,kC);WV.prototype.setSafetyMode=function(e){return NX(this,5,e)};g.b(lx,kC);lx.prototype.Fd=function(e){return D$(this,dM,1,e)};var y5=new g.Zj("thumbnailLandscapePortraitRenderer");g.v8B=new g.Zj("changeEngagementPanelVisibilityAction");var J7j=new g.Zj("continuationCommand");g.RGa=new g.Zj("openPopupAction");g.d0=new g.Zj("webCommandMetadata");var Grl=new g.Zj("metadataBadgeRenderer");var dU4=new g.Zj("signalServiceEndpoint");var QJ=new g.Zj("innertubeCommand");var nhL=new g.Zj("loggingDirectives");var gOT={j$W:"EMBEDDED_PLAYER_MODE_UNKNOWN",Q$$:"EMBEDDED_PLAYER_MODE_DEFAULT",Ucz:"EMBEDDED_PLAYER_MODE_PFP",DcQ:"EMBEDDED_PLAYER_MODE_PFL"};var HR4=new g.Zj("channelThumbnailEndpoint");var IRl=new g.Zj("embeddedPlayerErrorMessageRenderer");var iRI=new g.Zj("embeddedPlayerOverlayVideoDetailsRenderer"),ql4=new g.Zj("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),vY3=new g.Zj("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var AeL=new g.Zj("embedsInfoPanelRenderer");var SZG=new g.Zj("feedbackEndpoint");var sDw=new g.Zj("callToActionButtonViewModel");var mvG=new g.Zj("interactionLoggingCommandMetadata");var CYz={HEm:"WEB_DISPLAY_MODE_UNKNOWN",rbF:"WEB_DISPLAY_MODE_BROWSER",iEH:"WEB_DISPLAY_MODE_MINIMAL_UI",un1:"WEB_DISPLAY_MODE_STANDALONE",NuH:"WEB_DISPLAY_MODE_FULLSCREEN"};g.b(LG,kC);LG.prototype.getPlayerType=function(){return L0(this,7)}; LG.prototype.Y2=function(){return l5(this,19)}; LG.prototype.setVideoId=function(e){return i5(this,19,e)};g.b(Ym,kC);g.b(wM,kC);g.b(pG,kC); var F4V=[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];var MrM=new g.Zj("loggingContext");g.b(ix,kC);g.b(zt,kC);zt.prototype.Y2=function(){return wN(this,EX(this,PW,1))}; zt.prototype.setVideoId=function(e){return C0(this,1,PW,DQ(e))}; zt.prototype.getPlaylistId=function(){return wN(this,EX(this,PW,2))}; var PW=[1,2];g.b(iNq,kC);var OT=new g.Zj("changeKeyedMarkersVisibilityCommand");var jD9=new g.Zj("changeMarkersVisibilityCommand");var bRO=new g.Zj("loadMarkersCommand");var u8V=new g.Zj("suggestedActionDataViewModel");var PVO=new g.Zj("timelyActionViewModel");var rNq=new g.Zj("timelyActionsOverlayViewModel");var ULN=new g.Zj("productListItemRenderer");var K4w=new g.Zj("shoppingOverlayRenderer");var zQj=new g.Zj("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var eCa=new g.Zj("adFeedbackEndpoint");var aFV=new g.Zj("menuEndpoint");var giL=new g.Zj("phoneDialerEndpoint");var bd3=new g.Zj("sendSmsEndpoint");var pz4=new g.Zj("copyTextEndpoint");var r5N=new g.Zj("shareEndpoint"),PdB=new g.Zj("shareEntityEndpoint"),Byw=new g.Zj("shareEntityServiceEndpoint"),hCN=new g.Zj("webPlayerShareEntityServiceEndpoint");g.lv=new g.Zj("urlEndpoint");g.g3=new g.Zj("watchEndpoint");var c5B=new g.Zj("watchPlaylistEndpoint");g.oHB=new g.Zj("offlineOrchestrationActionCommand");var NX4=new g.Zj("compositeVideoOverlayRenderer");var nHN=new g.Zj("miniplayerRenderer");var YlO=new g.Zj("paidContentOverlayRenderer");var y55=new g.Zj("playerMutedAutoplayOverlayRenderer"),TyG=new g.Zj("playerMutedAutoplayEndScreenRenderer");var WkL=new g.Zj("unserializedPlayerResponse"),XoV=new g.Zj("unserializedPlayerResponse");var fFM=new g.Zj("playlistEditEndpoint");var JI;g.nR=new g.Zj("buttonRenderer");JI=new g.Zj("toggleButtonRenderer");var k34=new g.Zj("counterfactualRenderer");var A5N=new g.Zj("resolveUrlCommandMetadata");var UhG=new g.Zj("modifyChannelNotificationPreferenceEndpoint");var $8q=new g.Zj("pingingEndpoint");var CdG=new g.Zj("unsubscribeEndpoint");g.mR=new g.Zj("subscribeButtonRenderer");var G7a=new g.Zj("subscribeEndpoint");var o$L=new g.Zj("buttonViewModel");var JTq=new g.Zj("qrCodeRenderer");var qqI={bq1:"LIVING_ROOM_APP_MODE_UNSPECIFIED",SeQ:"LIVING_ROOM_APP_MODE_MAIN",np$:"LIVING_ROOM_APP_MODE_KIDS",p8o:"LIVING_ROOM_APP_MODE_MUSIC",RvW:"LIVING_ROOM_APP_MODE_UNPLUGGED",op1:"LIVING_ROOM_APP_MODE_GAMING"};var TJJ=new g.Zj("autoplaySwitchButtonRenderer");var Mg,n53,zBL,td3;Mg=new g.Zj("decoratedPlayerBarRenderer");n53=new g.Zj("chapteredPlayerBarRenderer");zBL=new g.Zj("multiMarkersPlayerBarRenderer");td3=new g.Zj("chapterRenderer");g.f23=new g.Zj("markerRenderer");var dm4=new g.Zj("decoratedPlayheadRenderer");var Uk4=new g.Zj("desktopOverlayConfigRenderer");var V_N=new g.Zj("engagementPanelSectionListRenderer");var fRN=new g.Zj("gatedActionsOverlayViewModel");var G_4=new g.Zj("heatMarkerRenderer");var C1I=new g.Zj("heatmapRenderer");var EYl=new g.Zj("watchToWatchTransitionRenderer");var NJz=new g.Zj("playlistPanelRenderer");var EHN=new g.Zj("productUpsellSuggestedActionViewModel");var bOZ=new g.Zj("suggestedActionTimeRangeTrigger"),t2N=new g.Zj("suggestedActionsRenderer"),gH5=new g.Zj("suggestedActionRenderer");var E5L=new g.Zj("timedMarkerDecorationRenderer");var zJJ=new g.Zj("cipher");var l8L=new g.Zj("playerVars");var ZOB=new g.Zj("playerVars");var Dq=g.uq.window,OO5,k7b,NA=(Dq==null?void 0:(OO5=Dq.yt)==null?void 0:OO5.config_)||(Dq==null?void 0:(k7b=Dq.ytcfg)==null?void 0:k7b.data_)||{};g.KL("yt.config_",NA);var RM=[];var stq=/^[\w.]*$/,qoN={q:!0,search_query:!0},HNI=String(Fv);var hl=new function(){var e=window.document;this.S=window;this.T=e}; g.KL("yt.ads_.signals_.getAdSignalsString",function(e){return MA(of(e))});g.f5();var FKT="XMLHttpRequest"in g.uq?function(){return new XMLHttpRequest}:null;var dhB="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.UO(dhB);var KKL={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"},TkO="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.UO(dhB)),c4L=!1,PTq=tl;g.b(OP,C5);Jl.prototype.then=function(e,a,r){return this.S?this.S.then(e,a,r):this.B===1&&e?(e=e.call(r,this.T))&&typeof e.then==="function"?e:VU(e):this.B===2&&a?(e=a.call(r,this.T))&&typeof e.then==="function"?e:D7(e):this}; Jl.prototype.getValue=function(){return this.T}; Jl.prototype.$goog_Thenable=!0;var $2=!1;var HU=Rf||Sw;var bpy=/^([0-9\.]+):([0-9\.]+)$/;g.b(o6,C5);o6.prototype.name="BiscottiError";g.b(ch,C5);ch.prototype.name="BiscottiMissingError";var Opj={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},nE=null;var rwT=g.GJ(["data-"]),l_I={};var J5V=0,yy=g.T7?"webkit":R8?"moz":g.T$?"ms":g.MR?"o":"",DhN=g.aZ("ytDomDomGetNextId")||function(){return++J5V}; g.KL("ytDomDomGetNextId",DhN);var pnq={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};CE.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; CE.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; CE.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Gn=g.uq.ytEventsEventsListeners||{};g.KL("ytEventsEventsListeners",Gn);var Nkj=g.uq.ytEventsEventsCounter||{count:0};g.KL("ytEventsEventsCounter",Nkj);var qm3=YH(function(){var e=!1;try{var a=Object.defineProperty({},"passive",{get:function(){e=!0}}); window.addEventListener("test",null,a)}catch(r){}return e}),xiy=YH(function(){var e=!1; try{var a=Object.defineProperty({},"capture",{get:function(){e=!0}}); window.addEventListener("test",null,a)}catch(r){}return e});var V2;V2=window;g.Ov=V2.ytcsi&&V2.ytcsi.now?V2.ytcsi.now:V2.performance&&V2.performance.timing&&V2.performance.now&&V2.performance.timing.navigationStart?function(){return V2.performance.timing.navigationStart+V2.performance.now()}:function(){return(new Date).getTime()};g.UG(Z1,g.N);Z1.prototype.N=function(e){e.S===void 0&&ip4(e);var a=e.S;e.T===void 0&&ip4(e);this.S=new g.vR(a,e.T)}; Z1.prototype.X$=function(){return this.S||new g.vR}; Z1.prototype.HW=function(){if(this.S){var e=(0,g.Ov)();if(this.L!=0){var a=this.Z,r=this.S,P=a.x-r.x;a=a.y-r.y;P=Math.sqrt(P*P+a*a)/(e-this.L);this.T[this.B]=Math.abs((P-this.C)/this.C)>.5?1:0;for(r=a=0;r<4;r++)a+=this.T[r]||0;a>=3&&this.D();this.C=P}this.L=e;this.Z=this.S;this.B=(this.B+1)%4}}; Z1.prototype.RH=function(){g.Al(this.Y);g.bQ(this.oH)};g.b(Ou,g.N);Ou.prototype.j=function(e,a,r,P,B){r=g.s7((0,g.yG)(r,P||this.ID));r={target:e,name:a,callback:r};var h;B&&qm3()&&(h={passive:!0});e.addEventListener(a,r.callback,h);this.D.push(r);return r}; Ou.prototype.Xo=function(e){for(var a=0;a=q.W4)||d.S.version>=M||d.S.objectStoreNames.contains(z)||V.push(z)}T=V;if(T.length===0){O.Oo(5);break}X=Object.keys(r.options.Gp); f=y.objectStoreNames();if(r.Cr.options.version+1)throw U.close(),r.B=!1,Qaq(r,C);return O.return(U);case 8:throw a(), A instanceof Error&&!g.CK("ytidb_async_stack_killswitch")&&(A.stack=A.stack+"\n"+c.substring(c.indexOf("\n")+1)),Cl(A,r.name,"",(G=r.options.version)!=null?G:-1);}})} function a(){r.S===P&&(r.S=void 0)} var r=this;if(!this.B)throw Qaq(this);if(this.S)return this.S;var P,B={blocking:function(h){h.close()}, closed:a,XVQ:a,upgrade:this.options.upgrade};return this.S=P=e()};var xh=new zE("YtIdbMeta",{Gp:{databases:{W4:1}},upgrade:function(e,a){a(1)&&g.d1(e,"databases",{keyPath:"actualName"})}});var Rq,vU=new function(){}(new function(){});new g.fp;g.b(FX,zE);FX.prototype.T=function(e,a,r){r=r===void 0?{}:r;return(this.options.shared?Nij:ztq)(e,a,Object.assign({},r))}; FX.prototype.delete=function(e){e=e===void 0?{}:e;return(this.options.shared?qC4:xe4)(this.name,e)};var poM={},Rt4=g.MU("ytGcfConfig",{Gp:(poM.coldConfigStore={W4:1},poM.hotConfigStore={W4:1},poM),shared:!1,upgrade:function(e,a){a(1)&&(g.WU(g.d1(e,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.WU(g.d1(e,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.b(uk,g.N);uk.prototype.RH=function(){for(var e=g.Z(this.T),a=e.next();!a.done;a=e.next()){var r=this.S;a=r.indexOf(a.value);a>=0&&r.splice(a,1)}this.T.length=0;g.N.prototype.RH.call(this)};BN.prototype.Ke=function(e){this.hotHashData=e;g.KL("yt.gcf.config.hotHashData",this.hotHashData||null)};var iOB=typeof TextEncoder!=="undefined"?new TextEncoder:null,Yyj=iOB?function(e){return iOB.encode(e)}:function(e){e=g.DX(e); for(var a=new Uint8Array(e.length),r=0;r=a?!1:!0}; g.E.Go=function(){var e=this;if(!Vr(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Yu.Xk("QUEUED",this.vG).then(function(a){a&&!e.Pb(a,e.RF)?e.kZ.xL(function(){return g.Y(function(r){if(r.T==1)return a.id===void 0?r.Oo(2):g.l(r,e.Yu.Kn(a.id,e.vG),2);e.Go();g.OO(r)})}):e.wE.ZY()&&e.qV()})};var WN;var f7q={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,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};var NyB={},uTz=g.MU("ServiceWorkerLogsDatabase",{Gp:(NyB.SWHealthLog={W4:1},NyB),shared:!0,upgrade:function(e,a){a(1)&&g.WU(g.d1(e,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var YM={},BMI=0;var wA;i4.prototype.requestComplete=function(e,a){a&&(this.T=!0);e=this.removeParams(e);this.S.get(e)||this.S.set(e,a)}; i4.prototype.isEndpointCFR=function(e){e=this.removeParams(e);return(e=this.S.get(e))?!1:e===!1&&this.T?!0:null}; i4.prototype.removeParams=function(e){return e.split("?")[0]}; i4.prototype.removeParams=i4.prototype.removeParams;i4.prototype.isEndpointCFR=i4.prototype.isEndpointCFR;i4.prototype.requestComplete=i4.prototype.requestComplete;i4.getInstance=z4;g.b(Nx,g.AP);g.E=Nx.prototype;g.E.ZY=function(){return this.S.ZY()}; g.E.LU=function(e){this.S.S=e}; g.E.XB=function(){var e=window.navigator.onLine;return e===void 0?!0:e}; g.E.Oz=function(){this.T=!0}; g.E.listen=function(e,a){return this.S.listen(e,a)}; g.E.Ma=function(e){e=wi(this.S,e);e.then(function(a){g.CK("use_cfr_monitor")&&z4().requestComplete("generate_204",a)}); return e}; Nx.prototype.sendNetworkCheckRequest=Nx.prototype.Ma;Nx.prototype.listen=Nx.prototype.listen;Nx.prototype.enableErrorFlushing=Nx.prototype.Oz;Nx.prototype.getWindowStatus=Nx.prototype.XB;Nx.prototype.networkStatusHint=Nx.prototype.LU;Nx.prototype.isNetworkAvailable=Nx.prototype.ZY;Nx.getInstance=omy;g.b(g.xM,g.AP);g.xM.prototype.ZY=function(){var e=g.aZ("yt.networkStatusManager.instance.isNetworkAvailable");return e?e.bind(this.T)():!0}; g.xM.prototype.LU=function(e){var a=g.aZ("yt.networkStatusManager.instance.networkStatusHint").bind(this.T);a&&a(e)}; g.xM.prototype.Ma=function(e){var a=this,r;return g.Y(function(P){r=g.aZ("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(a.T);return g.CK("skip_network_check_if_cfr")&&z4().isEndpointCFR("generate_204")?P.return(new Promise(function(B){var h;a.LU(((h=window.navigator)==null?void 0:h.onLine)||!0);B(a.ZY())})):r?P.return(r(e)):P.return(!0)})};var Ir;g.b(HN,$M);HN.prototype.writeThenSend=function(e,a){a||(a={});a=vN(e,a);g.ql()||(this.S=!1);$M.prototype.writeThenSend.call(this,e,a)}; HN.prototype.sendThenWrite=function(e,a,r){a||(a={});a=vN(e,a);g.ql()||(this.S=!1);$M.prototype.sendThenWrite.call(this,e,a,r)}; HN.prototype.sendAndWrite=function(e,a){a||(a={});a=vN(e,a);g.ql()||(this.S=!1);$M.prototype.sendAndWrite.call(this,e,a)}; HN.prototype.awaitInitialization=function(){return this.B.promise};var fj4=g.uq.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.KL("ytNetworklessLoggingInitializationOptions",fj4);g.Rr.prototype.isReady=function(){!this.config_&&nxj()&&(this.config_=g.cN());return!!this.config_};var xhV,m5,Mx;xhV=g.uq.ytPubsubPubsubInstance||new g.Oy;m5=g.uq.ytPubsubPubsubSubscribedKeys||{};Mx=g.uq.ytPubsubPubsubTopicToKeys||{};g.Fm=g.uq.ytPubsubPubsubIsSynchronous||{};g.Oy.prototype.subscribe=g.Oy.prototype.subscribe;g.Oy.prototype.unsubscribeByKey=g.Oy.prototype.VJ;g.Oy.prototype.publish=g.Oy.prototype.publish;g.Oy.prototype.clear=g.Oy.prototype.clear;g.KL("ytPubsubPubsubInstance",xhV);g.KL("ytPubsubPubsubTopicToKeys",Mx);g.KL("ytPubsubPubsubIsSynchronous",g.Fm); g.KL("ytPubsubPubsubSubscribedKeys",m5);var bGT={};g.b(To,g.N);To.prototype.append=function(e){if(!this.T)throw Error("This does not support the append operation");e=e.EM();this.EM().appendChild(e)}; g.b(Xz,To);Xz.prototype.EM=function(){return this.S};g.b(fh,g.N);fh.prototype.onTouchStart=function(e){this.D=!0;this.T=e.touches.length;this.S.isActive()&&(this.S.stop(),this.C=!0);e=e.touches;this.Z=ZGI(this,e)||e.length!=1;var a=e.item(0);this.Z||!a?this.N=this.Y=Infinity:(this.Y=a.clientX,this.N=a.clientY);for(a=this.B.length=0;a=0)}if(a||e&&Math.pow(e.clientX-this.Y,2)+Math.pow(e.clientY-this.N,2)>25)this.L=!0}; fh.prototype.onTouchEnd=function(e){var a=e.changedTouches;a&&this.D&&this.T==1&&!this.L&&!this.C&&!this.Z&&ZGI(this,a)&&(this.HW=e,this.S.start());this.T=e.touches.length;this.T===0&&(this.L=this.D=!1,this.B.length=0);this.C=!1};var AB=Date.now().toString();var bh={};var dl=Symbol("injectionDeps");gl.prototype.toString=function(){return"InjectionToken("+this.name+")"}; dA4.prototype.resolve=function(e){return e instanceof Z4?JB(this,e.key,[],!0):JB(this,e,[])};var D4;var $r=window;var Lh=g.CK("web_enable_lifecycle_monitoring")&&Q7()!==0,lj4=g.CK("web_enable_lifecycle_monitoring");$AL.prototype.cancel=function(){for(var e=g.Z(this.S),a=e.next();!a.done;a=e.next())a=a.value,a.jobId===void 0||a.ZH||this.scheduler.OQ(a.jobId),a.ZH=!0;this.T.resolve()};g.E=Yr.prototype;g.E.install=function(e){this.plugins.push(e);return this}; g.E.uninstall=function(){var e=this;g.xN.apply(0,arguments).forEach(function(a){a=e.plugins.indexOf(a);a>-1&&e.plugins.splice(a,1)})}; g.E.transition=function(e,a){var r=this;Lh&&DAl(this.state);var P=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(c){return c===r.state&&h.to===e}):h.from===r.state&&h.to===e}); if(P){this.T&&(QML(this.T),this.T=void 0);LV4(this,e,a);this.state=e;Lh&&WC(this.state);P=P.action.bind(this);var B=this.plugins.filter(function(h){return h[e]}).map(function(h){return h[e]}); P(WV4(this,B),a)}else throw Error("no transition specified from "+this.state+" to "+e);}; g.E.Dfr=function(e){var a=g.xN.apply(1,arguments);g.Fn();for(var r=g.Z(e),P=r.next(),B={};!P.done;B={Ix:void 0},P=r.next())B.Ix=P.value,anj(function(h){return function(){ph(h.Ix.name);zo(function(){return h.Ix.callback.apply(h.Ix,g.UO(a))}); ih(h.Ix.name)}}(B))}; g.E.QLz=function(e){var a=g.xN.apply(1,arguments),r,P,B,h;return g.Y(function(c){c.T==1&&(g.Fn(),r=g.Z(e),P=r.next(),B={});if(c.T!=3){if(P.done)return c.Oo(0);B.iC=P.value;B.z8=void 0;h=function(y){return function(){ph(y.iC.name);var T=zo(function(){return y.iC.callback.apply(y.iC,g.UO(a))}); wn(T)?y.z8=g.CK("web_lifecycle_error_handling_killswitch")?T.then(function(){ih(y.iC.name)}):T.then(function(){ih(y.iC.name)},function(X){VXN(X); ih(y.iC.name)}):ih(y.iC.name)}}(B); anj(h);return B.z8?g.l(c,B.z8,3):c.Oo(3)}B={iC:void 0,z8:void 0};P=r.next();return c.Oo(2)})}; g.E.Ja=function(e){var a=g.xN.apply(1,arguments),r=this,P=e.map(function(B){return{T6:function(){ph(B.name);zo(function(){return B.callback.apply(B,g.UO(a))}); ih(B.name)}, priority:wl(r,B)}}); P.length&&(this.T=new $AL(P))}; g.hz.Object.defineProperties(Yr.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var xr;g.b(N8,Yr);N8.prototype.C=function(e,a){var r=this;this.S=g.S$(0,function(){r.currentState==="application_navigating"&&r.transition("none")},5E3); e(a==null?void 0:a.event)}; N8.prototype.Z=function(e,a){this.S&&(g.i9.OQ(this.S),this.S=null);e(a==null?void 0:a.event)};var X_=[];g.KL("yt.logging.transport.getScrapedGelPayloads",function(){return X_});Iy.prototype.storePayload=function(e,a){e=HC(e);this.store[e]?this.store[e].push(a):(this.T={},this.store[e]=[a]);this.S++;g.CK("more_accurate_gel_parser")&&(a=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(a));return e}; Iy.prototype.smartExtractMatchingEntries=function(e){if(!e.keys.length)return[];for(var a=vC(this,e.keys.splice(0,1)[0]),r=[],P=0;P=0){P=!1;break a}}P=!0}P&&(a=ls(a))&&this.di(a)}}; g.E.S9=function(e){return e}; g.E.onTouchStart=function(e){this.TQ.onTouchStart(e)}; g.E.onTouchMove=function(e){this.TQ.onTouchMove(e)}; g.E.onTouchEnd=function(e){if(this.TQ)this.TQ.onTouchEnd(e)}; g.E.di=function(e){this.layoutId?this.dP.executeCommand(e,this.layoutId):(e=new g.I6("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.D6(e))}; g.E.createServerVe=function(e,a){this.api.createServerVe(e,this);this.api.setTrackingParams(e,a)}; g.E.logVisibility=function(e,a){this.api.hasVe(e)&&this.api.logVisibility(e,a,this.interactionLoggingClientData)}; g.E.RH=function(){this.clear(null);this.Xo(this.rP);for(var e=g.Z(this.Eo),a=e.next();!a.done;a=e.next())this.Xo(a.value);g.cs.prototype.RH.call(this)};g.b(Vd,oK); Vd.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);this.S=a;if(a.text==null&&a.icon==null)g.VJ(Error("ButtonRenderer did not have text or an icon set."));else{switch(a.style||null){case "STYLE_UNKNOWN":e="ytp-ad-button-link";break;default:e=null}e!=null&&g.rr(this.element,e);a.text!=null&&(e=g.yd(a.text),g.Wd(e)||(this.element.setAttribute("aria-label",e),this.B=new g.cs({K:"span",U:"ytp-ad-button-text",S1:e}),g.x(this,this.B),this.B.Kf(this.element)));a.accessibilityData&&a.accessibilityData.accessibilityData&& a.accessibilityData.accessibilityData.label&&!g.Wd(a.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",a.accessibilityData.accessibilityData.label);a.icon!=null&&(a=Dt(a.icon,this.L),a!=null&&(this.T=new g.cs({K:"span",U:"ytp-ad-button-icon",V:[a]}),g.x(this,this.T)),this.Z?bd(this.element,this.T.element,0):this.T.Kf(this.element))}}; Vd.prototype.clear=function(){this.hide()}; Vd.prototype.onClick=function(e){oK.prototype.onClick.call(this,e);e=g.Z(whL(this));for(var a=e.next();!a.done;a=e.next())a=a.value,this.layoutId?this.dP.executeCommand(a,this.layoutId):g.D6(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.b($T,g.N);$T.prototype.RH=function(){this.T&&g.bQ(this.T);this.S.clear();Qd=null;g.N.prototype.RH.call(this)}; $T.prototype.register=function(e,a){a&&this.S.set(e,a)}; var Qd=null;g.b(LB,oK); LB.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);e=a.hoverText||null;a=a.button&&g.H(a.button,g.nR)||null;a==null?g.D6(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,void 0,void 0,void 0,void 0,this.B),g.x(this,this.button),this.button.init(K4("button"),a,this.macros),e&&this.button.element.setAttribute("aria-label",g.yd(e)),this.button.Kf(this.element),this.N&&!g.ac(this.button.element, "ytp-ad-clickable")&&g.rr(this.button.element,"ytp-ad-clickable"),this.B&&g.rr(this.button.element,"ytp-ad-hover-text-button--clean-player"),e&&(this.T=new g.cs({K:"div",U:"ytp-ad-hover-text-container"}),this.Z&&(a=new g.cs({K:"div",U:"ytp-ad-hover-text-callout"}),a.Kf(this.T.element),g.x(this,a)),g.x(this,this.T),this.T.Kf(this.element),a=Ws(e),bd(this.T.element,a,0)),this.show())}; LB.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();oK.prototype.hide.call(this)}; LB.prototype.show=function(){this.button&&this.button.show();oK.prototype.show.call(this)};g.b(pB,oK); pB.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);r=(e=a.thumbnail)&&wQ(e)||"";g.Wd(r)?Math.random()<.01&&g.VJ(Error("Found AdImage without valid image URL")):(this.S?g.vo(this.element,"backgroundImage","url("+r+")"):yf(this.element,{src:r}),yf(this.element,{alt:e&&e.accessibility&&e.accessibility.label||""}),a&&a.adRendererCommands&&a.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; pB.prototype.clear=function(){this.hide()};g.b(iv,oK);g.E=iv.prototype;g.E.hide=function(){oK.prototype.hide.call(this);this.B&&this.B.focus()}; g.E.show=function(){this.B=document.activeElement;oK.prototype.show.call(this);this.L.focus()}; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);this.T=a;a.dialogMessages||a.title!=null?a.confirmLabel==null?g.D6(Error("ConfirmDialogRenderer.confirmLabel was not set.")):a.cancelLabel==null?g.D6(Error("ConfirmDialogRenderer.cancelLabel was not set.")):NuT(this,a):g.D6(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.E.clear=function(){g.du(this.S);this.hide()}; g.E.V0=function(){this.hide()}; g.E.Zj=function(){var e=this.T.cancelEndpoint;e&&(this.layoutId?this.dP.executeCommand(e,this.layoutId):g.D6(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.E.Mk=function(){var e=this.T.confirmNavigationEndpoint||this.T.confirmEndpoint;e&&(this.layoutId?this.dP.executeCommand(e,this.layoutId):g.D6(Error("Missing layoutId for confirm dialog.")));this.hide()};g.b(zK,oK);g.E=zK.prototype; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);this.B=a;if(a.defaultText==null&&a.defaultIcon==null)g.D6(Error("ToggleButtonRenderer must have either text or icon set."));else if(a.defaultIcon==null&&a.toggledIcon!=null)g.D6(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(a.style){switch(a.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":e="ytp-ad-toggle-button-default-style";break;default:e=null}e!=null&&g.rr(this.L,e)}e={};a.defaultText? (r=g.yd(a.defaultText),g.Wd(r)||(e.buttonText=r,this.api.G().experiments.FM("a11y_h5_associate_survey_question")||this.S.setAttribute("aria-label",r),this.api.G().experiments.FM("fix_h5_toggle_button_a11y")&&this.T.setAttribute("aria-label",r))):g.PQ(this.Lf,!1);a.defaultTooltip&&(e.tooltipText=a.defaultTooltip,this.S.hasAttribute("aria-label")||this.T.setAttribute("aria-label",a.defaultTooltip));a.defaultIcon?(r=Dt(a.defaultIcon),this.updateValue("untoggledIconTemplateSpec",r),a.toggledIcon?(this.oH= !0,r=Dt(a.toggledIcon),this.updateValue("toggledIconTemplateSpec",r)):(g.PQ(this.N,!0),g.PQ(this.Z,!1)),g.PQ(this.S,!1)):g.PQ(this.T,!1);g.Ak(e)||this.update(e);a.isToggled&&(g.rr(this.L,"ytp-ad-toggle-button-toggled"),this.toggleButton(a.isToggled));NI(this);this.j(this.element,"change",this.Kd);this.show()}}; g.E.onClick=function(e){this.Eo.length>0&&(this.toggleButton(!this.isToggled()),this.Kd());oK.prototype.onClick.call(this,e)}; g.E.Kd=function(){g.cD(this.L,"ytp-ad-toggle-button-toggled",this.isToggled());for(var e=g.Z(xly(this,this.isToggled())),a=e.next();!a.done;a=e.next())a=a.value,this.layoutId?this.dP.executeCommand(a,this.layoutId):g.D6(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);NI(this)}; g.E.clear=function(){this.hide()}; g.E.toggleButton=function(e){g.cD(this.L,"ytp-ad-toggle-button-toggled",e);this.S.checked=e;NI(this)}; g.E.isToggled=function(){return this.S.checked};g.b(xT,Ou);xT.prototype.C=function(e){if(Array.isArray(e)){e=g.Z(e);for(var a=e.next();!a.done;a=e.next())a=a.value,a instanceof I1z&&this.B(a)}};g.b(IK,oK);g.E=IK.prototype;g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);a.reasons?a.confirmLabel==null?g.D6(Error("AdFeedbackRenderer.confirmLabel was not set.")):(a.cancelLabel==null&&g.VJ(Error("AdFeedbackRenderer.cancelLabel was not set.")),a.title==null&&g.VJ(Error("AdFeedbackRenderer.title was not set.")),R6q(this,a)):g.D6(Error("AdFeedbackRenderer.reasons were not set."))}; g.E.clear=function(){tJ(this.Z);tJ(this.N);this.L.length=0;this.hide()}; g.E.hide=function(){this.S&&this.S.hide();this.T&&this.T.hide();oK.prototype.hide.call(this);this.B&&this.B.focus()}; g.E.show=function(){this.S&&this.S.show();this.T&&this.T.show();this.B=document.activeElement;oK.prototype.show.call(this);this.Z.focus()}; g.E.Mm=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.E.KAF=function(){this.hide()}; Hs.prototype.EM=function(){return this.S.element}; Hs.prototype.getCommand=function(){return this.T}; Hs.prototype.isChecked=function(){return this.B.checked};g.b(qI,iv);qI.prototype.V0=function(e){iv.prototype.V0.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; qI.prototype.Zj=function(e){iv.prototype.Zj.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; qI.prototype.Mk=function(e){iv.prototype.Mk.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.b(vs,oK);g.E=vs.prototype; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);this.Z=a;if(a.dialogMessage==null&&a.title==null)g.D6(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{a.confirmLabel==null&&g.VJ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(e=a.closeOverlayRenderer&&g.H(a.closeOverlayRenderer,g.nR)||null)this.S=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.x(this,this.S),this.S.init(K4("button"),e,this.macros),this.S.Kf(this.element);a.title&&(e=g.yd(a.title),this.updateValue("title",e));if(a.adReasons)for(e=a.adReasons,r=0;r=this.e1?(this.oH.hide(),this.Uo=!0,this.publish("i")):this.B&&this.B.isTemplated()&&(e=Math.max(0,Math.ceil((this.e1-e)/1E3)),e!=this.PW&&(sY(this.B,{TIME_REMAINING:String(e)}),this.PW=e)))}};g.b(eW,mq);g.E=eW.prototype; g.E.init=function(e,a,r){mq.prototype.init.call(this,e,a,r);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if((e=a.actionButton&&g.H(a.actionButton,g.nR))&&e.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null)if(a.image&&a.image.thumbnail){var B=a.image.thumbnail.thumbnails;B!=null&&B.length>0&&g.Wd(g.lF(B[0].url))&&(B[0].url=P.profilePicture)}else g.VJ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.B.init(K4("ad-image"),a.image,r);this.Z.init(K4("ad-text"), a.headline,r);this.L.init(K4("ad-text"),a.description,r);this.T.init(K4("button"),e,r);r=HP(this.T.element);Ia(this.T.element,r+" This link opens in new tab");this.oH=e.navigationEndpoint;this.api.Ev()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.W2.bind(this));this.Lf=a.startMs||0;FB(this)}else g.D6(Error("FlyoutCtaRenderer has no valid action button."));else g.D6(Error("FlyoutCtaRenderer has no description AdText."));else g.D6(Error("FlyoutCtaRenderer has no headline AdText.")); else g.VJ(Error("FlyoutCtaRenderer has no image."))}; g.E.onClick=function(e){mq.prototype.onClick.call(this,e);this.api.pauseVideo();!g.gy(this.T.element,e.target)&&this.oH&&(this.layoutId?this.dP.executeCommand(this.oH,this.layoutId):g.D6(Error("Missing layoutId for flyout cta.")))}; g.E.ya=function(){if(this.S){var e=this.S.getProgressState();(e&&e.current||this.e1)&&1E3*e.current>=this.Lf&&(MI(this),g.BD(this.element,"ytp-flyout-cta-inactive"),this.T.element.removeAttribute("tabIndex"))}}; g.E.dM=function(){this.clear()}; g.E.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.W2.bind(this))}; g.E.show=function(){this.T&&this.T.show();mq.prototype.show.call(this)}; g.E.hide=function(){this.T&&this.T.hide();mq.prototype.hide.call(this)}; g.E.W2=function(e){e=="hidden"?this.show():this.hide()};g.b(a9,oK);g.E=a9.prototype; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);this.S=a;if(this.S.rectangle)for(e=this.S.likeButton&&g.H(this.S.likeButton,JI),a=this.S.dislikeButton&&g.H(this.S.dislikeButton,JI),this.B.init(K4("toggle-button"),e,r),this.T.init(K4("toggle-button"),a,r),this.j(this.element,"change",this.lj),this.L.show(100),this.show(),r=g.Z(this.S&&this.S.impressionCommands||[]),e=r.next();!e.done;e=r.next())e=e.value,this.layoutId?this.dP.executeCommand(e,this.layoutId):g.D6(Error("Missing layoutId for instream user sentiment."))}; g.E.clear=function(){this.hide()}; g.E.hide=function(){this.B.hide();this.T.hide();oK.prototype.hide.call(this)}; g.E.show=function(){this.B.show();this.T.show();oK.prototype.show.call(this)}; g.E.lj=function(){dqL(this.element,"ytp-ad-instream-user-sentiment-selected");this.S.postMessageAction&&this.api.qF("onYtShowToast",this.S.postMessageAction);this.L.hide()}; g.E.onClick=function(e){this.Eo.length>0&&this.lj();oK.prototype.onClick.call(this,e)};g.b(rG,g.N);g.E=rG.prototype;g.E.RH=function(){this.reset();g.N.prototype.RH.call(this)}; g.E.reset=function(){g.du(this.L);this.Z=!1;this.S&&this.S.stop();this.C.stop();this.B&&(this.B=!1,this.D.play())}; g.E.start=function(){this.reset();this.L.j(this.T,"mouseover",this.wv,this);this.L.j(this.T,"mouseout",this.ZE,this);this.HW&&(this.L.j(this.T,"focusin",this.wv,this),this.L.j(this.T,"focusout",this.ZE,this));this.S?this.S.start():(this.Z=this.B=!0,g.vo(this.T,{opacity:this.N}))}; g.E.wv=function(){this.B&&(this.B=!1,this.D.play());this.C.stop();this.S&&this.S.stop()}; g.E.ZE=function(){this.Z?this.C.start():this.S&&this.S.start()}; g.E.Ys=function(){this.B||(this.B=!0,this.Y.play(),this.Z=!0)};var PkT=[new PK("b.f_",!1,0),new PK("j.s_",!1,2),new PK("r.s_",!1,4),new PK("e.h_",!1,6),new PK("i.s_",!0,8),new PK("s.t_",!1,10),new PK("p.h_",!1,12),new PK("s.i_",!1,14),new PK("f.i_",!1,16),new PK("a.b_",!1,18),new PK("a.o_",!1),new PK("g.o_",!1,22),new PK("p.i_",!1,24),new PK("p.m_",!1),new PK("n.k_",!0,20),new PK("i.f_",!1),new PK("a.s_",!0),new PK("m.c_",!1),new PK("n.h_",!1,26),new PK("o.p_",!1),new PK("m.p_",!0,28),new PK("o.a_",!1),new PK("d.p_",!1),new PK("e.i_",!1)].reduce(function(e,a){e[a.T]= a;return e},{});g.b(X5,mq);g.E=X5.prototype; g.E.init=function(e,a,r){mq.prototype.init.call(this,e,a,r);this.oH=a;(this.Lf=hXO(this))&&g.VJ(Error("hasAdControlInClickCommands_ is true."));if(!a||g.Ak(a))g.D6(Error("SkipButtonRenderer was not specified or empty."));else if(!a.message||g.Ak(a.message))g.D6(Error("SkipButtonRenderer.message was not specified or empty."));else if(e=this.Z?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},a=Dt(e),a==null?g.D6(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+e.iconType+".")): (this.api.G().X("disable_touch_events_on_skip_button")&&(a.J=Object.assign({},a.J,{"aria-hidden":"true",Xw1:"false"})),this.B=new g.cs({K:"button",WW:[this.Z?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{K:"span",U:this.Z?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[a]}]}),g.x(this,this.B),this.B.Kf(this.L.element),this.T=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,"ytp-ad-skip-button-text"),this.Z&&this.T.element.classList.add("ytp-ad-skip-button-text-centered"), this.T.init(K4("ad-text"),this.oH.message,r),g.x(this,this.T),bd(this.B.element,this.T.element,0)),!this.api.G().X("disable_touch_events_on_skip_button")){var P=P===void 0?null:P;r=this.api.G();!(this.Eo.length>0)&&r.T&&(FZ?0:"ontouchstart"in document.documentElement&&(jZ3()||T6()))&&(this.Xo(this.rP),P&&this.Xo(P),this.Eo=[this.j(this.element,"touchstart",this.onTouchStart,this),this.j(this.element,"touchmove",this.onTouchMove,this),this.j(this.element,"touchend",this.onTouchEnd,this)])}}; g.E.clear=function(){this.e1.reset();this.hide()}; g.E.hide=function(){this.L.hide();this.T&&this.T.hide();MI(this);mq.prototype.hide.call(this)}; g.E.onClick=function(e){if(this.B!=null){if(e){var a=e||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}var r;if(aII(e,{contentCpn:((r=this.api.getVideoData(1))==null?void 0:r.clientPlaybackNonce)||""})===0)this.api.qF("onAbnormalityDetected");else if(mq.prototype.onClick.call(this,e),this.publish("j"),this.api.qF("onAdSkip"),this.Uo||!this.Lf)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.E.S9=function(e){if(!this.Uo)return this.Lf&&o9("SkipButton click commands not pruned while ALC exist"),e;var a,r=(a=g.H(e,g.f$))==null?void 0:a.commands;if(!r)return e;e=[];for(a=0;a=this.Z&&c74(this,!0)};g.b(UK,Vd);UK.prototype.init=function(e,a,r){Vd.prototype.init.call(this,e,a,r);e=!1;a.text!=null&&(e=g.yd(a.text),e=!g.Wd(e));e?a.navigationEndpoint==null?g.VJ(Error("No visit advertiser clickthrough provided in renderer,")):a.style!=="STYLE_UNKNOWN"?g.VJ(Error("Button style was not a link-style type in renderer,")):this.show():g.VJ(Error("No visit advertiser text was present in the renderer."))};g.b(C$,oK); C$.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);e=a.text;g.Wd(nB(e))?g.VJ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(e&&e.text&&(a=e.text,this.B&&!this.T&&(a=this.api.G(),a=e.text+" "+(a&&a.T?"\u2022":"\u00b7")),a={text:a,isTemplated:e.isTemplated},e.style&&(a.style=e.style),e.targetId&&(a.targetId=e.targetId),e=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),e.init(K4("simple-ad-badge"),a,r),e.Kf(this.element),g.x(this,e)),this.show())}; C$.prototype.clear=function(){this.hide()};g.b(GH,eq);g.b(EK,g.aK);g.E=EK.prototype;g.E.dI=function(){return this.durationMs}; g.E.stop=function(){this.S&&this.oO.Xo(this.S)}; g.E.j5=function(e){this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:e.current};this.publish("h")}; g.E.getProgressState=function(){return this.T}; g.E.ww=function(e){g.TH(e,2)&&this.publish("g")};g.b(bG,g.aK);g.E=bG.prototype;g.E.dI=function(){return this.durationMs}; g.E.start=function(){this.S||(this.S=!0,this.timer.start())}; g.E.stop=function(){this.S&&(this.S=!1,this.timer.stop())}; g.E.j5=function(){this.T0+=100;var e=!1;this.T0>this.durationMs&&(this.T0=this.durationMs,this.timer.stop(),e=!0);this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.T0/1E3};this.publish("h");e&&this.publish("g")}; g.E.getProgressState=function(){return this.T};g.b(Zu,mq);g.E=Zu.prototype;g.E.init=function(e,a,r){mq.prototype.init.call(this,e,a,r);var P;if(a==null?0:(P=a.templatedCountdown)==null?0:P.templatedAdText){e=a.templatedCountdown.templatedAdText;if(!e.isTemplated){g.VJ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.T=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);this.T.init(K4("ad-text"),e,{});this.T.Kf(this.element);g.x(this,this.T)}this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){MI(this);mq.prototype.hide.call(this)}; g.E.dM=function(){this.hide()}; g.E.ya=function(){if(this.S!=null){var e=this.S.getProgressState();if(e!=null&&e.current!=null&&this.T){var a=this.S instanceof EK?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:e.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.S instanceof bG?e.seekableEnd:this.api.getDuration(2,!1);e=e.current;var r,P,B=((r=this.api.getVideoData())==null?0:(P=r.w1)==null?0:P.call(r))?Math.max(a-e,0):a-e;sY(this.T,{FORMATTED_AD_DURATION_REMAINING:String(g.tx(B)), TIME_REMAINING:String(Math.ceil(B))})}}}; g.E.show=function(){FB(this);mq.prototype.show.call(this)};g.b(OK,Sq);OK.prototype.onClick=function(e){Sq.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType)};g.b(dG,oK);dG.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(e=a.content){g.ZF(this.element,e);var r,P;a=((r=a.interaction)==null?void 0:(P=r.accessibility)==null?void 0:P.label)||e;this.element.setAttribute("aria-label",a)}else g.D6(Error("AdSimpleAttributedString does not have text content"))}; dG.prototype.clear=function(){this.hide()}; dG.prototype.onClick=function(e){oK.prototype.onClick.call(this,e)};g.b(Jx,oK); Jx.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});(e=a.label)&&e.content&&!g.Wd(e.content)?(this.adBadgeText.init(K4("ad-simple-attributed-string"),new kg(e)),(a=a.adPodIndex)&&a.content&&!g.Wd(a.content)&&(this.S=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),this.S.Kf(this.element),g.x(this,this.S),this.S.element.classList.add("ytp-ad-badge__pod-index"),this.S.init(K4("ad-simple-attributed-string"),new kg(a))),this.element.classList.add(this.T?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.D6(Error("No label is returned in AdBadgeViewModel."))}; Jx.prototype.show=function(){this.adBadgeText.show();var e;(e=this.S)==null||e.show();oK.prototype.show.call(this)}; Jx.prototype.hide=function(){this.adBadgeText.hide();var e;(e=this.S)==null||e.hide();oK.prototype.hide.call(this)};g.b(Du,oK);Du.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});(e=a.adPodIndex)&&e.content&&!g.Wd(e.content)&&(this.S=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),this.S.Kf(this.element),g.x(this,this.S),this.S.init(K4("ad-simple-attributed-string"),new kg(e)),a.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()}; Du.prototype.show=function(){var e;(e=this.S)==null||e.show();oK.prototype.show.call(this)}; Du.prototype.hide=function(){var e;(e=this.S)==null||e.hide();oK.prototype.hide.call(this)};g.b(VW,oK); VW.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(a!=null&&a.text){var r;if(((r=a.text)==null?0:r.content)&&!g.Wd(a.text.content)){this.S=new g.cs({K:"div",U:"ytp-ad-disclosure-banner__text",S1:a.text.content});g.x(this,this.S);this.S.Kf(this.element);var P,B;e=((P=a.interaction)==null?void 0:(B=P.accessibility)==null?void 0:B.label)||a.text.content;this.element.setAttribute("aria-label",e);var h;if((h=a.interaction)==null?0:h.onTap)this.T=new g.cs({K:"div",U:"ytp-ad-disclosure-banner__chevron",V:[g.A_()]}), g.x(this,this.T),this.T.Kf(this.element);this.show()}}else g.D6(Error("No banner text found in AdDisclosureBanner."))}; VW.prototype.clear=function(){this.hide()};g.b(WK,g.cs);WK.prototype.j5=function(){var e=this.T.getProgressState(),a=e.seekableEnd;this.api.getPresentingPlayerType()===2&&(a=this.B?this.B/1E3:e.seekableEnd);this.progressBar.style.width=QW(new $g(e.seekableStart,a),e.current,0)*100+"%"}; WK.prototype.onStateChange=function(){g.hZ(this.api.G())||(this.api.getPresentingPlayerType()===2?this.S===-1&&(this.show(),this.S=this.T.subscribe("h",this.j5,this),this.j5()):this.S!==-1&&(this.hide(),this.T.VJ(this.S),this.S=-1))};g.b(lG,oK); lG.prototype.init=function(e,a,r,P){oK.prototype.init.call(this,e,a,r);if(a.skipOrPreviewRenderer){if(e=g.H(a.skipOrPreviewRenderer,L7))r=new Ax(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T,this.N),r.Kf(this.XM),r.init(K4("skip-button"),e,this.macros),g.x(this,r);if(e=g.H(a.skipOrPreviewRenderer,L7))var B=e.skipOffsetMilliseconds}a.brandInteractionRenderer&&(e=a.brandInteractionRenderer.brandInteractionRenderer,r=new a9(this.api,this.layoutId,this.interactionLoggingClientData,this.dP), r.Kf(this.Lf),r.init(K4("instream-user-sentiment"),e,this.macros),g.x(this,r));if(e=g.H(a,ODN))if(e=g.H(e,ODN))r=new eW(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T,!!a.showWithoutLinkedMediaLayout),g.x(this,r),r.Kf(this.Z),r.init(K4("flyout-cta"),e,this.macros);P=P&&P.videoAdDurationSeconds;a.adBadgeRenderer&&(r=a.adBadgeRenderer,e=g.H(r,mh),e!=null?(r=new Jx(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!1),g.x(this,r),r.Kf(this.S),r.init(K4("ad-badge"), e,this.macros),this.B=r.element):(e=r.simpleAdBadgeRenderer,e==null&&(e={text:{text:"Ad",isTemplated:!1}}),r=new C$(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0),g.x(this,r),r.Kf(this.S),r.init(K4("simple-ad-badge"),e,this.macros)));a.adPodIndex&&(e=g.H(a.adPodIndex,L4B),e!=null&&(r=new Du(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,r),r.Kf(this.S),r.init(K4("ad-pod-index"),e)));a.adDurationRemaining&&!a.showWithoutLinkedMediaLayout&&(e=a.adDurationRemaining.adDurationRemainingRenderer, e==null&&(e={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),P=new Zu(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T,P,!1),g.x(this,P),P.Kf(this.S),P.init(K4("ad-duration-remaining"),e,this.macros));a.adInfoRenderer&&(P=g.H(a.adInfoRenderer,cz))&&(e=new RK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.element,void 0,!1),g.x(this,e),this.B!==null?this.S.insertBefore(e.element,this.B.nextSibling):e.Kf(this.S), e.init(K4("ad-info-hover-text-button"),P,this.macros));a.visitAdvertiserRenderer&&(e=g.H(a.visitAdvertiserRenderer,g.nR))&&(r=T1I(this)&&this.L?this.L:this.S)&&(P=new UK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,P),P.Kf(r),P.init(K4("visit-advertiser"),e,this.macros),Ne(P.element),e=HP(P.element),Ia(P.element,e+" This link opens in new tab"));!(P=this.api.G())||g.Pb(P)||g.uP(P)||P.controlsType!="3"&&!P.disableOrganicUi||(B=new WK(this.api,this.T,B,!1),B.Kf(this.e1), g.x(this,B));a.adDisclosureBannerRenderer&&(a=g.H(a.adDisclosureBannerRenderer,lLN))&&(B=new VW(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),B.Kf(this.oH),B.init(K4("ad-disclosure-banner"),a),g.x(this,B));this.api.G().X("enable_updated_html5_player_focus_style")&&g.rr(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; lG.prototype.clear=function(){this.hide()};g.wG.prototype.flush=function(e,a){e=e===void 0?[]:e;a=a===void 0?!1:a;if(g.CK("enable_client_streamz_web")){e=g.Z(e);for(var r=e.next();!r.done;r=e.next())r=MuT(r.value),this.S&&D$(r,Tp,2,this.S),r={serializedIncrementBatch:g.Vq(r.B())},g.BU("streamzIncremented",r,{sendIsolatedPayload:a})}}; g.b(fIL,g.wG);var GLL=new Map;p$.prototype.set=function(e,a,r){r=r!==void 0?Date.now()+r:void 0;this.S.set(e,a,r)}; p$.prototype.get=function(e){return this.S.get(e)}; p$.prototype.remove=function(e){this.S.remove(e)};var UUJ=null;var I9=null,HK=null,qd=null,tVy=null;g.KL("yt.www.ads.eventcache.getLastCompanionData",function(){return I9}); g.KL("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.KL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return HK}); g.KL("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return qd}); g.KL("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return tVy});var Zlz=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);vK.prototype.handleResponse=function(e,a){if(!a)throw Error("request needs to be passed into ConsistencyService");var r,P;a=((r=a.uK.context)==null?void 0:(P=r.request)==null?void 0:P.consistencyTokenJars)||[];var B;(e=(B=e.responseContext)==null?void 0:B.consistencyTokenJar)&&this.replace(a,e)}; vK.prototype.replace=function(e,a){e=g.Z(e);for(var r=e.next();!r.done;r=e.next())delete this.S[r.value.encryptedTokenJarContents];kEz(this,a)};var S9V=window.location.hostname.split(".").slice(-2).join("."),Yi;SW.getInstance=function(){Yi=g.aZ("yt.clientLocationService.instance");Yi||(Yi=new SW,g.KL("yt.clientLocationService.instance",Yi));return Yi}; g.E=SW.prototype; g.E.setLocationOnInnerTubeContext=function(e){e.client||(e.client={});if(this.S)e.client.locationInfo||(e.client.locationInfo={}),e.client.locationInfo.latitudeE7=Math.floor(this.S.coords.latitude*1E7),e.client.locationInfo.longitudeE7=Math.floor(this.S.coords.longitude*1E7),e.client.locationInfo.horizontalAccuracyMeters=Math.round(this.S.coords.accuracy),e.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.B||this.locationPlayabilityToken)e.client.locationPlayabilityToken=this.B|| this.locationPlayabilityToken}; g.E.handleResponse=function(e){var a;e=(a=e.responseContext)==null?void 0:a.locationPlayabilityToken;e!==void 0&&(this.locationPlayabilityToken=e,this.S=void 0,g.IM("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=R9(this))&&this.localStorage.set("yt-location-playability-token",e,15552E3):g.Wf("YT_CL",JSON.stringify({loctok:e}),15552E3,S9V,!0))}; g.E.clearLocationPlayabilityToken=function(e){e==="TVHTML5"?(this.localStorage=R9(this))&&this.localStorage.remove("yt-location-playability-token"):g.LK("YT_CL");this.B=void 0;this.T!==-1&&(clearTimeout(this.T),this.T=-1)}; g.E.getCurrentPositionFromGeolocation=function(){var e=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var a=!1,r=1E4;g.IM("INNERTUBE_CLIENT_NAME")==="MWEB"&&(a=!0,r=15E3);return new Promise(function(P,B){navigator.geolocation.getCurrentPosition(function(h){e.S=h;P(h)},function(h){B(h)},{enableHighAccuracy:a, maximumAge:0,timeout:r})})}; g.E.createUnpluggedLocationInfo=function(e){var a={};e=e.coords;if(e==null?0:e.latitude)a.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)a.longitudeE7=Math.floor(e.longitude*1E7);if(e==null?0:e.accuracy)a.locationRadiusMeters=Math.round(e.accuracy);return a}; g.E.createLocationInfo=function(e){var a={};e=e.coords;if(e==null?0:e.latitude)a.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)a.longitudeE7=Math.floor(e.longitude*1E7);return a};g.E=$Uy.prototype;g.E.contains=function(e){return Object.prototype.hasOwnProperty.call(this.S,e)}; g.E.get=function(e){if(this.contains(e))return this.S[e]}; g.E.set=function(e,a){this.S[e]=a}; g.E.Yl=function(){return Object.keys(this.S)}; g.E.remove=function(e){delete this.S[e]};m9.prototype.getModuleId=function(e){return e.serviceId.getModuleId()}; m9.prototype.get=function(e){a:{var a=this.mappings.get(e.toString());switch(a.type){case "mapping":e=a.value;break a;case "factory":a=a.value();this.mappings.set(e.toString(),{type:"mapping",value:a});e=a;break a;default:e=X8(a)}}return e}; m9.prototype.registerService=function(e,a){this.mappings.set(e.toString(),{type:"mapping",value:a});return e}; new m9;var w0={},Qqy=(w0.WEB_UNPLUGGED="^unplugged/",w0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",w0.WEB_UNPLUGGED_OPS="^unplugged/",w0.WEB_UNPLUGGED_PUBLIC="^unplugged/",w0.WEB_CREATOR="^creator/",w0.WEB_KIDS="^kids/",w0.WEB_EXPERIMENTS="^experiments/",w0.WEB_MUSIC="^music/",w0.WEB_REMIX="^music/",w0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",w0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",w0);jW.prototype.C=function(e,a,r){a=a===void 0?{}:a;r=r===void 0?yr:r;var P={context:g.sK(e.clickTrackingParams,!1,this.L)};var B=this.T(e);if(B){this.S(P,B,a);var h;a=g.Md(this.B());(B=(h=g.H(e.commandMetadata,g.d0))==null?void 0:h.apiUrl)&&(a=B);h=A4q(Y2(a));e=Object.assign({},{command:e},void 0);P={input:h,mW:we(h),uK:P,config:e};P.config.JI?P.config.JI.identity=r:P.config.JI={identity:r};return P}r=new g.I6("Error: Failed to create Request from Command.",e);g.D6(r)}; g.hz.Object.defineProperties(jW.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.b(uG,jW);g.b(K$,uG);K$.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",mW:we("/getDatasyncIdsEndpoint","GET"),uK:{}}}; K$.prototype.B=function(){return[]}; K$.prototype.T=function(){}; K$.prototype.S=function(){};var s8b={},yEN=(s8b.GET_DATASYNC_IDS=F5(K$),s8b);var pd={},mhG=(pd["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",pd["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",pd["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",pd["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",pd["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",pd["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",pd["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", pd["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",pd["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",pd["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",pd["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",pd["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",pd["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",pd["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",pd["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", pd["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",pd["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",pd["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",pd["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",pd["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",pd["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",pd["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", pd["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",pd.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",pd["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",pd["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",pd["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",pd["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",pd["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",pd["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", pd["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",pd["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",pd["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",pd["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",pd["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",pd["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",pd["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",pd["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",pd["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",pd["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",pd.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",pd["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",pd["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",pd["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",pd["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",pd["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",pd["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",pd["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",pd["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",pd["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",pd["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",pd["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pd["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pd["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",pd["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",pd["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",pd["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",pd["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",pd["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",pd["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",pd["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",pd["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", pd["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",pd["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",pd["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",pd["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",pd["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",pd["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",pd["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",pd["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",pd["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", pd["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",pd["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",pd["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",pd["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",pd["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",pd["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",pd["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",pd["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", pd),iW={},ilz=(iW.auto_search="LATENCY_ACTION_AUTO_SEARCH",iW.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iW.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iW.app_startup="LATENCY_ACTION_APP_STARTUP",iW.browse="LATENCY_ACTION_BROWSE",iW.cast_splash="LATENCY_ACTION_CAST_SPLASH",iW.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iW.channels="LATENCY_ACTION_CHANNELS",iW.chips="LATENCY_ACTION_CHIPS",iW.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iW.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", iW.editor="LATENCY_ACTION_EDITOR",iW.embed="LATENCY_ACTION_EMBED",iW.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iW.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iW.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iW.explore="LATENCY_ACTION_EXPLORE",iW.favorites="LATENCY_ACTION_FAVORITES",iW.home="LATENCY_ACTION_HOME",iW.inboarding="LATENCY_ACTION_INBOARDING",iW.landing="LATENCY_ACTION_LANDING",iW.learning="LATENCY_ACTION_LEARNING", iW.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",iW.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",iW.library="LATENCY_ACTION_LIBRARY",iW.live="LATENCY_ACTION_LIVE",iW.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",iW.management="LATENCY_ACTION_MANAGEMENT",iW.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iW.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iW.onboarding="LATENCY_ACTION_ONBOARDING",iW.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", iW.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iW.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iW.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iW.prebuffer="LATENCY_ACTION_PREBUFFER",iW.prefetch="LATENCY_ACTION_PREFETCH",iW.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iW.profile_switcher="LATENCY_ACTION_LOGIN",iW.projects="LATENCY_ACTION_PROJECTS",iW.reel_watch="LATENCY_ACTION_REEL_WATCH",iW.results="LATENCY_ACTION_RESULTS",iW.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", iW.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iW.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iW.review="LATENCY_ACTION_REVIEW",iW.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",iW.search_ui="LATENCY_ACTION_SEARCH_UI",iW.search_suggest="LATENCY_ACTION_SUGGEST",iW.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iW.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iW.seek="LATENCY_ACTION_PLAYER_SEEK",iW.settings="LATENCY_ACTION_SETTINGS",iW.store="LATENCY_ACTION_STORE", iW.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iW.tenx="LATENCY_ACTION_TENX",iW.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iW.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iW.watch="LATENCY_ACTION_WATCH",iW.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iW["watch,watch7"]="LATENCY_ACTION_WATCH",iW["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iW["watch,watch7ad"]="LATENCY_ACTION_WATCH",iW["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iW.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", iW.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iW.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iW.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iW.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",iW.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iW.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iW.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iW);Object.assign(ilz,mhG);g.b(n8,T4);var jqI=new Xm("aft-recorded",n8);var FbV=g.uq.ytLoggingGelSequenceIdObj_||{};g.KL("ytLoggingGelSequenceIdObj_",FbV);var Xf=g.uq.ytLoggingLatencyUsageStats_||{};g.KL("ytLoggingLatencyUsageStats_",Xf);yA.prototype.tick=function(e,a,r,P){f8(this,"tick_"+e+"_"+a)||g.BU("latencyActionTicked",{tickName:e,clientActionNonce:a},{timestamp:r,cttAuthInfo:P})}; yA.prototype.info=function(e,a,r){var P=Object.keys(e).join("");f8(this,"info_"+P+"_"+a)||(e=Object.assign({},e),e.clientActionNonce=a,g.BU("latencyActionInfo",e,{cttAuthInfo:r}))}; yA.prototype.jspbInfo=function(e,a,r){for(var P="",B=0;B=B.length?(a.append(B),e-=B.length):e?(a.append(new Uint8Array(B.buffer,B.byteOffset,e)),r.append(new Uint8Array(B.buffer,B.byteOffset+e,B.length-e)),e=0):r.append(B);return{e3:a,v8:r}}; rH.prototype.isFocused=function(e){return e>=this.B&&e=64&&(this.Z.set(e.subarray(0,64-this.T),this.T),a=64-this.T,this.T=0,exq(this,this.Z,0));for(;a+64<=r;a+=64)exq(this,e,a);a=this.start&&(e=2&&r.ssdaiAdsConfig&&o9("Unexpected ad placement renderers length",e.slot,null,{length:P.length});var B;((B=r.adSlots)==null?0:B.some(function(h){var c,y;return((c=g.H(h,X$))==null?void 0:(y=c.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||P.some(function(h){var c,y,T,X; return!!((c=h.renderer)==null?0:(y=c.linearAdSequenceRenderer)==null?0:(T=y.linearAds)==null?0:T.length)||!((X=h.renderer)==null||!X.instreamVideoAdRenderer)})||kG4(e)})}; mm.prototype.Ie=function(){nZ4(this.S)};Fb.prototype.oC=function(){var e=this;oZ4(this.T,function(){var a=sc(e.slot.clientMetadata,"metadata_type_ad_break_request_data");return a.cueProcessedMs?e.S.get().fetch({JS:a.getAdBreakUrl,FS:new g.v_(a.R2,a.Sm),cueProcessedMs:a.cueProcessedMs}):e.S.get().fetch({JS:a.getAdBreakUrl,FS:new g.v_(a.R2,a.Sm)})})}; Fb.prototype.Ie=function(){nZ4(this.T)};MT.prototype.oC=function(){var e=this.slot.clientMetadata,a,r=(a=this.slot.fulfilledLayout)!=null?a:sc(e,"metadata_type_fulfilled_layout");I4j(this.callback,this.slot,r)}; MT.prototype.Ie=function(){c_(this.callback,this.slot,new F("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")};uo.prototype.build=function(e,a){return a.fulfilledLayout||jS(a,{b5:["metadata_type_fulfilled_layout"]})?new MT(e,a):this.B(e,a)};g.b(Km,uo); Km.prototype.B=function(e,a){if(jS(a,{b5:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new mm(e,a,this.S,this.T,this.bB,this.bW,this.ZQ,this.aH,this.gg);if(jS(a,{b5:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Fb(e,a,this.S,this.T,this.bB,this.bW);throw new F("Unsupported slot with type: "+a.slotType+" and client metadata: "+mN(a.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.b(eh,uo);eh.prototype.B=function(e,a){throw new F("Unsupported slot with type: "+a.slotType+" and client metadata: "+mN(a.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.E=d9L.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){}; g.E.release=function(){}; g.E.startRendering=function(e){if(e.layoutId!==this.layout.layoutId)this.callback.ST(this.slot,e,new R$("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 a=sc(e.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.FN(this.slot,e),vBN(this.B, this.slot,a)):o9("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,e)}}; g.E.u5=function(e,a){e.layoutId!==this.layout.layoutId?this.callback.ST(this.slot,e,new R$("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.WO(this.slot,e,a),D9O(this),VsT(this))};g.b(hD,g.aK);g.E=hD.prototype;g.E.A9=function(){return this.T.slot}; g.E.x$=function(){return this.T.layout}; g.E.init=function(){this.B.get().addListener(this)}; g.E.release=function(){this.B.get().removeListener(this);this.dispose()}; g.E.Z9=function(){}; g.E.eR=function(){}; g.E.WL=function(){}; g.E.Io=function(){}; g.E.startRendering=function(e){var a=this;BA(this.T,e,function(){return void a.L1()})}; g.E.L1=function(){this.B.get().L1(this.S)}; g.E.u5=function(e,a){var r=this;BA(this.T,e,function(){var P=r.B.get();alN(P,r.S,3);r.S=[];r.callback.WO(r.slot,e,a)})}; g.E.RH=function(){this.B.wP()||this.B.get().removeListener(this);g.aK.prototype.RH.call(this)}; g.hz.Object.defineProperties(hD.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.T.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.T.layout}}});AD.prototype.FH=function(e,a){a=a===void 0?!1:a;var r=(this.B.get(e)||[]).concat();if(a=a&&l6T(e)){var P=this.B.get(a);P&&r.push.apply(r,g.UO(P))}GD(this,e,r);this.S.add(e);a&&this.S.add(a)}; AD.prototype.PA=function(e,a){a=a===void 0?!1:a;if(!this.S.has(e)){var r=a&&l6T(e);r&&(a=!this.S.has(r));this.FH(e,a)}};g.b(wW3,eq);g.b(ZV,hD);g.E=ZV.prototype;g.E.La=function(e,a){ys("ads-engagement-panel-layout",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),g.H(this.x$().renderingContent,NK),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(a,r,P,B,h){return new wW3(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};g.b(i4L,eq);g.b(Op,hD);g.E=Op.prototype;g.E.La=function(e,a){ys("banner-image",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),g.H(this.x$().renderingContent,i8),this.callback,"metadata_type_banner_image_layout_view_model",function(a,r,P,B,h){return new i4L(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};g.b(kI,eq);g.b(dI,hD);g.E=dI.prototype;g.E.La=function(e,a){ys("action-companion",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),g.H(this.x$().renderingContent,YR),this.callback,"metadata_type_action_companion_ad_renderer",function(a,r,P,B,h){return new kI(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){a.layoutId===this.layout.layoutId?this.Jz.PA("impression"):this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};g.b(x93,eq);g.b(JD,hD);g.E=JD.prototype;g.E.La=function(e,a){ys("image-companion",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),g.H(this.x$().renderingContent,w7),this.callback,"metadata_type_image_companion_ad_renderer",function(a,r,P,B,h){return new x93(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){a.layoutId===this.layout.layoutId?this.Jz.PA("impression"):this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};g.b(H4L,eq);g.b(DV,hD);g.E=DV.prototype;g.E.La=function(e,a){ys("shopping-companion",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(a,r,P,B,h){return new H4L(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){a.layoutId===this.layout.layoutId?this.Jz.PA("impression"):this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};g.b($I,hD);g.E=$I.prototype;g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(a,r,P,B,h){return new kI(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(){}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)}; g.E.La=function(){};g.E=m9q.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){this.aH.get().addListener(this);this.aH.get().xB.push(this);var e=sc(this.layout.clientMetadata,"metadata_type_video_length_seconds"),a=sc(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");TD(this.layout.SO)&&BG(this.BA.get(),this.layout.layoutId,{F9:a,f6:e,listener:this})}; g.E.release=function(){this.aH.get().removeListener(this);M1J(this.aH.get(),this);TD(this.layout.SO)&&hR(this.BA.get(),this.layout.layoutId)}; g.E.startRendering=function(e){this.callback.FN(this.slot,e)}; g.E.u5=function(e,a){t1L(this.bW.get())&&!this.S&&(this.Jz.PA("abandon"),this.S=!0);this.callback.WO(this.slot,e,a)}; g.E.mV=function(e){switch(e.id){case "part2viewed":this.Jz.PA("start");this.Jz.PA("impression");break;case "videoplaytime25":this.Jz.PA("first_quartile");break;case "videoplaytime50":this.Jz.PA("midpoint");break;case "videoplaytime75":this.Jz.PA("third_quartile");break;case "videoplaytime100":t1L(this.bW.get())?this.S||(this.Jz.PA("complete"),this.S=!0):this.Jz.PA("complete");gI(this.Jz)&&bp(this.Jz,Infinity,!0);gnI(this.bW.get())&&Vs(this.T,Infinity,!0);break;case "engagedview":gI(this.Jz)||this.Jz.PA("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:o9("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.E.onVolumeChange=function(){}; g.E.MA=function(){}; g.E.C_=function(){}; g.E.tj=function(){}; g.E.onFullscreenToggled=function(){}; g.E.dL=function(){}; g.E.f5=function(){}; g.E.vn=function(e){gnI(this.bW.get())&&Vs(this.T,e*1E3,!1);gI(this.Jz)&&bp(this.Jz,e*1E3,!1)}; g.E.Aj=function(){}; g.E.ZT=function(){this.Jz.PA("active_view_measurable")}; g.E.wp=function(){this.Jz.PA("active_view_viewable")}; g.E.lU=function(){this.Jz.PA("active_view_fully_viewable_audible_half_duration")}; g.E.e6=function(){this.Jz.PA("audio_measurable")}; g.E.Wm=function(){this.Jz.PA("audio_audible")};g.b(Qs,hD);g.E=Qs.prototype;g.E.init=function(){hD.prototype.init.call(this);var e=sc(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.jO};this.S.push(new GH(e,this.layout.layoutId,sc(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,!0))}; g.E.O5=function(){this.L||this.aH.get().resumeVideo(1)}; g.E.startRendering=function(e){hD.prototype.startRendering.call(this,e);AR(this.aH.get(),"ad-showing");this.callback.FN(this.slot,e);this.C.qg=this}; g.E.u5=function(e,a){hD.prototype.u5.call(this,e,a);UF(this.aH.get(),"ad-showing");uC(this.C,this)}; g.E.La=function(e){switch(e){case "ad-info-icon-button":(this.L=this.aH.get().FD(1))||this.aH.get().pauseVideo();break;case "visit-advertiser":this.aH.get().pauseVideo()}}; g.E.RH=function(){hD.prototype.RH.call(this)};g.b(WA,eq);g.b(lp,hD);g.E=lp.prototype;g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(a,r,P,B,h){return new WA(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(){}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)}; g.E.La=function(){};g.b(LH,eq);g.b(YI,hD);YI.prototype.init=function(){hD.prototype.init.call(this);this.S.push(new LH(g.H(this.layout.renderingContent,e7),this.layout.layoutId,{adsClientData:this.layout.jO}))}; YI.prototype.La=function(){PZ(this.L.get(),this.C)&&nH(this.ZQ.get(),3)}; YI.prototype.startRendering=function(e){hD.prototype.startRendering.call(this,e);this.callback.FN(this.slot,e)}; YI.prototype.RH=function(){hD.prototype.RH.call(this)};g.b(wI,eq);g.b(pH,hD);pH.prototype.init=function(){hD.prototype.init.call(this);var e=g.H(this.layout.renderingContent,F0)||sc(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),a=cA(this.Jz);this.S.push(new wI(e,a,this.layout.layoutId,{adsClientData:this.layout.jO},!0,!0))}; pH.prototype.startRendering=function(e){hD.prototype.startRendering.call(this,e);this.callback.FN(this.slot,e)}; pH.prototype.La=function(e,a){if(a===this.layout.layoutId)switch(e){case "skip-button":var r;(e=(r=sc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:r.current)&&e.vE(this.A9(),this.layout)}}; pH.prototype.RH=function(){hD.prototype.RH.call(this)};zD.prototype.build=function(e,a,r,P){if(ip(P,{b5:["metadata_type_ad_break_response_data"],VH:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new d9L(e,r,P,this.T,this.B,this.S);throw new R$("Unsupported layout with type: "+P.layoutType+" and client metadata: "+mN(P.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.b(juj,eq);g.b(Ns,hD);g.E=Ns.prototype;g.E.La=function(e,a){ys("ads-engagement-panel",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),g.H(this.x$().renderingContent,pj),this.callback,"metadata_type_ads_engagement_panel_renderer",function(a,r,P,B,h){return new juj(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){a.layoutId===this.layout.layoutId?this.Jz.PA("impression"):this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};g.b(xI,hD);g.E=xI.prototype;g.E.La=function(e,a){ys("top-banner-image-text-icon-buttoned",e,this.Z.get().p8,this.ZQ.get(),this.L,this.C,this.A9(),this.x$(),a)}; g.E.startRendering=function(e){o2(this.Jz,this.A9(),this.x$(),g.H(this.x$().renderingContent,z8),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(a,r,P,B,h){return new WA(a,r,P,B,h)},this.S); hD.prototype.startRendering.call(this,e)}; g.E.FN=function(e,a){this.C===a.layoutId&&(this.L===null?this.L=this.ZQ.get().L_():o9("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.RH=function(){B_(this.uw(),this);hD.prototype.RH.call(this)};eWO.prototype.build=function(e,a,r,P){if(ip(P,u_L())||g.H(P.renderingContent,pj)!==void 0)return new Ns(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,Nhl())||g.H(P.renderingContent,YR)!==void 0)return new dI(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,I6I())||g.H(P.renderingContent,w7)!==void 0)return new JD(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,qrO()))return new DV(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,suT()))return new $I(e,r,P,this.oz,this.ZQ,this.uw, this.BA,this.S);if(ip(P,zNJ())||g.H(P.renderingContent,i8)!==void 0)return new Op(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,KaN())||g.H(P.renderingContent,z8)!==void 0)return new xI(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,Fay()))return new lp(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);if(ip(P,pWy())||g.H(P.renderingContent,NK)!==void 0)return new ZV(e,r,P,this.oz,this.ZQ,this.uw,this.BA,this.S);throw new R$("Unsupported layout with type: "+P.layoutType+" and client metadata: "+ mN(P.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};atL.prototype.build=function(e,a,r,P){if(ip(P,{b5:["metadata_type_linked_player_bytes_layout_id"],VH:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new YI(e,r,P,this.oz,this.ZQ,this.S);throw new R$("Unsupported layout with type: "+P.layoutType+" and client metadata: "+mN(P.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.E=r_3.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){}; g.E.release=function(){}; g.E.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.ST(this.slot,e,new R$("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.FN(this.slot,e),this.Jz.PA("impression"),by(this.m0,e,"normal"))}; g.E.u5=function(e,a){e.layoutId!==this.layout.layoutId?this.callback.ST(this.slot,e,new R$("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.WO(this.slot,e,a)};g.E=BQO.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){}; g.E.release=function(){}; g.E.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.ST(this.slot,e,new R$("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.FN(this.slot,e),this.Jz.PA("impression"),by(this.m0,e,"normal"))}; g.E.u5=function(e,a){e.layoutId!==this.layout.layoutId?this.callback.ST(this.slot,e,new R$("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.WO(this.slot,e,a)};I2.prototype.build=function(e,a,r,P){if(!this.bW.get().W.G().X("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ip(P,Pvy()))return new r_3(e,r,P,this.ZQ,this.m0)}else if(ip(P,{b5:[],VH:["LAYOUT_TYPE_FORECASTING"]}))return new BQO(e,r,P,this.ZQ,this.m0);throw new R$("Unsupported layout with type: "+P.layoutType+" and client metadata: "+mN(P.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.b(oT3,eq);g.b(HA,hD);g.E=HA.prototype;g.E.init=function(){hD.prototype.init.call(this);var e=g.H(this.layout.renderingContent,mg)||sc(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),a={adsClientData:this.layout.jO};this.S.push(new oT3(e,sc(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,a))}; g.E.O5=function(){this.L||this.aH.get().resumeVideo(2)}; g.E.startRendering=function(e){hD.prototype.startRendering.call(this,e);this.callback.FN(this.slot,e);this.C.qg=this}; g.E.u5=function(e,a){hD.prototype.u5.call(this,e,a);uC(this.C,this)}; g.E.La=function(e,a){if(!pm(this.bW.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(PZ(this.Z.get(),this.D))switch(e){case "visit-advertiser-link":nH(this.ZQ.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.aH.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.aH.get().FD(2))||this.aH.get().pauseVideo();break; case "visit-advertiser-link":this.aH.get().pauseVideo();nTO(this).xd();break;case "skip-button":if(e=nTO(this),this.layout.renderingContent&&!Hc(this.layout.clientMetadata,"metadata_type_dai")||!e||!e.tZ){var r;(e=(r=sc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:r.current)&&e.vE(this.A9(),this.layout)}else o9("Requesting to skip by LegacyPlayerBytes when components enabled"),e.j6(this.A9(),this.layout)}}}; g.E.RH=function(){hD.prototype.RH.call(this)};g.b(qs,hD);g.E=qs.prototype;g.E.init=function(){hD.prototype.init.call(this);var e=g.H(this.layout.renderingContent,sp)||sc(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.jO},r;(r=!!this.layout.renderingContent)||(r=vA(this),r=!(r&&r.tZ));this.S.push(new GH(e,this.layout.layoutId,sc(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,r))}; g.E.O5=function(){this.L||this.aH.get().resumeVideo(2)}; g.E.startRendering=function(e){hD.prototype.startRendering.call(this,e);this.callback.FN(this.slot,e);this.C.qg=this}; g.E.u5=function(e,a){hD.prototype.u5.call(this,e,a);uC(this.C,this)}; g.E.La=function(e,a){if(!this.bW||!pm(this.bW.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(PZ(this.Z.get(),this.D))switch(e){case "visit-advertiser":nH(this.ZQ.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.aH.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.aH.get().FD(2))||this.aH.get().pauseVideo();break; case "visit-advertiser":this.aH.get().pauseVideo();vA(this).xd();break;case "skip-button":if(e=vA(this),this.layout.renderingContent&&!Hc(this.layout.clientMetadata,"metadata_type_dai")||!e||!e.tZ){var r;(e=(r=sc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:r.current)&&e.vE(this.A9(),this.layout)}else o9("Requesting to skip by LegacyPlayerBytes"),e.j6(this.A9(),this.layout)}}}; g.E.RH=function(){hD.prototype.RH.call(this)};g.b(TQy,eq);g.b(R2,hD);g.E=R2.prototype;g.E.startRendering=function(e){var a=this;BA(this.T,e,function(){a.S.push(new TQy(sc(a.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),e.layoutId,e.jO));a.L1();a.callback.FN(a.slot,e);g.S(PG(a.aH.get(),1),512)&&a.callback.ST(a.A9(),a.x$(),new R$("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.E.f5=function(){}; g.E.dL=function(e){if(e.state.isError()){var a;this.callback.ST(this.A9(),this.x$(),new R$("A player error happened during adNotify",{playerErrorCode:(a=e.state.xu)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.E.onFullscreenToggled=function(){}; g.E.C_=function(){}; g.E.tj=function(){}; g.E.MA=function(){}; g.E.onVolumeChange=function(){}; g.E.mV=function(){}; g.E.Aj=function(){}; g.E.La=function(){};g.b(ftI,eq);g.b(Sh,hD);Sh.prototype.init=function(){hD.prototype.init.call(this);var e=g.H(this.layout.renderingContent,Ms),a=cA(this.Jz);this.S.push(new ftI(e,a,this.layout.layoutId,{adsClientData:this.layout.jO}))}; Sh.prototype.startRendering=function(e){hD.prototype.startRendering.call(this,e);this.callback.FN(this.slot,e)}; Sh.prototype.La=function(e,a){if(a===this.layout.layoutId)switch(e){case "skip-button":var r;(e=(r=sc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:r.current)&&e.vE(this.A9(),this.layout)}}; Sh.prototype.RH=function(){hD.prototype.RH.call(this)};A_4.prototype.build=function(e,a,r,P){if(e=jh(e,r,P,this.oz,this.aH,this.ZQ,this.T,this.S,this.bW))return e;throw new R$("Unsupported layout with type: "+P.layoutType+" and client metadata: "+mN(P.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.E=el.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){this.aH.get().addListener(this);this.aH.get().xB.push(this);if(this.layout.renderingContent){var e=this.DQ.get();e=vi(e,1).GK/1E3}else e=sc(this.layout.clientMetadata,"metadata_type_video_length_seconds");var a=g.H(this.layout.renderingContent,j9),r=a?X0(a.pings):sc(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");a=a?WaO(a.pings):sc(this.layout.clientMetadata,"metadata_type_active_view_identifier");TD(this.layout.SO)&&BG(this.BA.get(),this.layout.layoutId, {F9:r,f6:e,listener:this,rU:a})}; g.E.release=function(){this.aH.get().removeListener(this);M1J(this.aH.get(),this);TD(this.layout.SO)&&hR(this.BA.get(),this.layout.layoutId)}; g.E.startRendering=function(e){this.callback.FN(this.slot,e)}; g.E.u5=function(e,a){aH(this,"abandon");this.callback.WO(this.slot,e,a)}; g.E.mV=function(e){switch(e.id){case "part2viewed":this.Jz.PA("start");this.Jz.PA("impression");break;case "videoplaytime25":this.Jz.PA("first_quartile");break;case "videoplaytime50":this.Jz.PA("midpoint");break;case "videoplaytime75":this.Jz.PA("third_quartile");break;case "videoplaytime100":aH(this,"complete");gI(this.Jz)&&bp(this.Jz,Infinity,!0);break;case "engagedview":gI(this.Jz)||this.Jz.PA("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:o9("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.E.onVolumeChange=function(){}; g.E.MA=function(){}; g.E.C_=function(){}; g.E.tj=function(){}; g.E.onFullscreenToggled=function(){}; g.E.dL=function(e){this.S||(g.TH(e,4)&&!g.TH(e,2)?Ep(this.Jz,"pause"):yW(e,4)<0&&!(yW(e,2)<0)&&Ep(this.Jz,"resume"))}; g.E.f5=function(){}; g.E.vn=function(e){gI(this.Jz)&&bp(this.Jz,e*1E3,!1)}; g.E.Aj=function(){aH(this,"swipe")}; g.E.ZT=function(){this.Jz.PA("active_view_measurable")}; g.E.wp=function(){this.Jz.PA("active_view_viewable")}; g.E.lU=function(){this.Jz.PA("active_view_fully_viewable_audible_half_duration")}; g.E.e6=function(){this.Jz.PA("audio_measurable")}; g.E.Wm=function(){this.Jz.PA("audio_audible")};UII.prototype.build=function(e,a,r,P){if(r.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.H(P.renderingContent,j9)!==void 0)return new el(e,r,P,this.aH,this.ZQ,this.bW,this.BA,this.DQ);a=["metadata_type_ad_placement_config"];for(var B=g.Z(Up()),h=B.next();!h.done;h=B.next())a.push(h.value);if(ip(P,{b5:a,VH:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return r.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new el(e,r,P,this.aH,this.ZQ,this.bW,this.BA,this.DQ):new m9q(e,r,P,this.aH,this.ZQ, this.Cr,this.bW,this.BA);throw new R$("Unsupported layout with type: "+P.layoutType+" and client metadata: "+mN(P.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var hX={contentCpn:"",fC:new Map};dIq.prototype.gW=function(e,a){var r={};a=Object.assign({},a,(r.cc=this.RU.X6(),r));this.RU.W.nf(e,a)};var Caa,HT; Caa={kuW:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",ekf:"AUTHENTICATION_MALFORMED",lnf:"AUTHENTICATION_MISSING",C$o:"BAD_REQUEST",cHm:"CAST_SESSION_DEVICE_MISMATCHED",mAr:"CAST_SESSION_VIDEO_MISMATCHED",hk$:"CAST_TOKEN_EXPIRED",snH:"CAST_TOKEN_FAILED",tMM:"CAST_TOKEN_MALFORMED",xAz:"CGI_PARAMS_MALFORMED",AHr:"CGI_PARAMS_MISSING",BDm:"DEVICE_FALLBACK",h5m:"GENERIC_WITH_LINK_AND_CPN",s$$:"ERROR_HDCP",tHM:"LICENSE",Ajd:"VIDEO_UNAVAILABLE",yjm:"FORMAT_UNAVAILABLE",MHW:"GEO_FAILURE", LzF:"HTML5_AUDIO_RENDERER_ERROR",IP$:"GENERIC_WITHOUT_LINK",EPH:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",KzH:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",aPz:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",WzQ:"HTML5_SPS_UMP_STATUS_REJECTED",ji1:"INVALID_DRM_MESSAGE",ItF:"PURCHASE_NOT_FOUND",EgQ:"PURCHASE_REFUNDED",Cxd:"RENTAL_EXPIRED",ftW:"RETRYABLE_ERROR",Pxr:"SERVER_ERROR",M_o:"SIGNATURE_EXPIRED",oZM:"STOPPED_BY_ANOTHER_PLAYBACK",nZM:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",S8F:"STREAMING_NOT_ALLOWED", p4z:"STREAM_LICENSE_NOT_FOUND",IsP:"TOO_MANY_REQUESTS",EZm:"TOO_MANY_REQUESTS_WITH_LINK",KQ$:"TOO_MANY_STREAMS_PER_ENTITLEMENT",asW:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",dKQ:"VIDEO_FORBIDDEN",Y8$:"VIDEO_NOT_FOUND",jnP:"BROWSER_OR_EXTENSION_ERROR"};HT={}; g.mG=(HT.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.",HT.DEVICE_FALLBACK="Sorry, this video is not available on this device.",HT.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",HT.LICENSE="Sorry, there was an error while licensing this video.",HT.VIDEO_UNAVAILABLE= "Video unavailable",HT.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",HT.GEO_FAILURE="This video isn't available in your country.",HT.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",HT.GENERIC_WITHOUT_LINK="An error has occurred. Please try again later.",HT.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",HT.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognise any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", HT.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",HT.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",HT.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",HT.PURCHASE_NOT_FOUND="This video requires payment.",HT.PURCHASE_REFUNDED="This video's purchase has been refunded.",HT.RENTAL_EXPIRED="This video's rental has expired.",HT.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",HT.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",HT.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",HT.CAST_TOKEN_EXPIRED="Cast session has expired. Please refresh.",HT.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",HT.SERVER_ERROR="There was an internal server error. Please try again later.",HT.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",HT.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",HT.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",HT.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",HT.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",HT.TOO_MANY_REQUESTS="Please log in to watch this video.", HT.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",HT.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",HT.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",HT.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",HT.VIDEO_FORBIDDEN="Access to this video is forbidden.",HT.VIDEO_NOT_FOUND="This video cannot be found.",HT.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",HT);var G69;var Eu5=g.zX(),bgM=Eu5.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!bgM||bgM.length<2)G69=void 0;else{var tNG=Eu5.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);G69=tNG&&tNG.length===6?Number(tNG[5].replace("_",".")):0}var eo=G69,qG=eo>=0;g.b(g.Zc,Ou);g.Zc.prototype.j=function(e,a,r,P,B){return Ou.prototype.j.call(this,e,a,r,P,B)};var qH={},za=(qH.FAIRPLAY="fairplay",qH.PLAYREADY="playready",qH.WIDEVINE="widevine",qH.CLEARKEY=null,qH.FLASHACCESS=null,qH.UNKNOWN=null,qH.WIDEVINE_CLASSIC=null,qH);Od.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var vT={},q$=(vT.WIDTH={name:"width",video:!0,valid:640,j_:99999},vT.HEIGHT={name:"height",video:!0,valid:360,j_:99999},vT.FRAMERATE={name:"framerate",video:!0,valid:30,j_:9999},vT.BITRATE={name:"bitrate",video:!0,valid:3E5,j_:2E9},vT.EOTF={name:"eotf",video:!0,valid:"bt709",j_:"catavision"},vT.CHANNELS={name:"channels",video:!1,valid:2,j_:99},vT.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",j_:"invalidformat"},vT.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", j_:"nope"},vT.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",j_:"av99.0.05M.08"},vT.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",j_:"invalid"},vT.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",j_:"false"},vT);var guZ=["h","H"],Zg8=["9","("],Og9=["9h","(h"],k6G=["8","*"],dc5=["a","A"],JKG=["o","O"],DcB=["m","M"],VNB=["mac3","MAC3"],$cN=["meac3","MEAC3"],Rp={},Nxq=(Rp.h=guZ,Rp.H=guZ,Rp["9"]=Zg8,Rp["("]=Zg8,Rp["9h"]=Og9,Rp["(h"]=Og9,Rp["8"]=k6G,Rp["*"]=k6G,Rp.a=dc5,Rp.A=dc5,Rp.o=JKG,Rp.O=JKG,Rp.m=DcB,Rp.M=DcB,Rp.mac3=VNB,Rp.MAC3=VNB,Rp.meac3=$cN,Rp.MEAC3=$cN,Rp),QbG=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),kDj=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var u={},NW=(u["0"]="f",u["160"]="h",u["133"]="h",u["134"]="h",u["135"]="h",u["136"]="h",u["137"]="h",u["264"]="h",u["266"]="h",u["138"]="h",u["298"]="h",u["299"]="h",u["304"]="h",u["305"]="h",u["214"]="h",u["216"]="h",u["374"]="h",u["375"]="h",u["140"]="a",u["141"]="a",u["327"]="sa",u["258"]="m",u["380"]="mac3",u["328"]="meac3",u["161"]="H",u["142"]="H",u["143"]="H",u["144"]="H",u["222"]="H",u["223"]="H",u["145"]="H",u["224"]="H",u["225"]="H",u["146"]="H",u["226"]="H",u["227"]="H",u["147"]="H",u["384"]= "H",u["376"]="H",u["385"]="H",u["377"]="H",u["149"]="A",u["261"]="M",u["381"]="MAC3",u["329"]="MEAC3",u["598"]="9",u["278"]="9",u["242"]="9",u["243"]="9",u["244"]="9",u["775"]="9",u["776"]="9",u["777"]="9",u["778"]="9",u["779"]="9",u["780"]="9",u["781"]="9",u["782"]="9",u["783"]="9",u["247"]="9",u["248"]="9",u["353"]="9",u["355"]="9",u["356"]="9",u["271"]="9",u["577"]="9",u["313"]="9",u["579"]="9",u["272"]="9",u["302"]="9",u["303"]="9",u["407"]="9",u["408"]="9",u["308"]="9",u["315"]="9",u["330"]= "9h",u["331"]="9h",u["332"]="9h",u["333"]="9h",u["334"]="9h",u["335"]="9h",u["336"]="9h",u["337"]="9h",u["338"]="so",u["600"]="o",u["250"]="o",u["251"]="o",u["774"]="o",u["194"]="*",u["195"]="*",u["220"]="*",u["221"]="*",u["196"]="*",u["197"]="*",u["279"]="(",u["280"]="(",u["317"]="(",u["318"]="(",u["273"]="(",u["274"]="(",u["357"]="(",u["358"]="(",u["275"]="(",u["359"]="(",u["360"]="(",u["276"]="(",u["583"]="(",u["584"]="(",u["314"]="(",u["585"]="(",u["561"]="(",u["277"]="(",u["361"]="(h",u["362"]= "(h",u["363"]="(h",u["364"]="(h",u["365"]="(h",u["366"]="(h",u["591"]="(h",u["592"]="(h",u["367"]="(h",u["586"]="(h",u["587"]="(h",u["368"]="(h",u["588"]="(h",u["562"]="(h",u["409"]="(",u["410"]="(",u["411"]="(",u["412"]="(",u["557"]="(",u["558"]="(",u["394"]="1",u["395"]="1",u["396"]="1",u["397"]="1",u["398"]="1",u["399"]="1",u["720"]="1",u["721"]="1",u["400"]="1",u["401"]="1",u["571"]="1",u["402"]="1",u["694"]="1h",u["695"]="1h",u["696"]="1h",u["697"]="1h",u["698"]="1h",u["699"]="1h",u["700"]="1h", u["701"]="1h",u["702"]="1h",u["703"]="1h",u["386"]="3",u["387"]="w",u["406"]="6",u["787"]="1",u["788"]="1",u["548"]="1e",u["549"]="1e",u["550"]="1e",u["551"]="1e",u["809"]="1e",u["810"]="1e",u["552"]="1e",u["811"]="1e",u["812"]="1e",u["553"]="1e",u["813"]="1e",u["814"]="1e",u["554"]="1e",u["815"]="1e",u["816"]="1e",u["555"]="1e",u["817"]="1e",u["818"]="1e",u["572"]="1e",u["556"]="1e",u["645"]="(",u["646"]="(",u["647"]="(",u["648"]="(",u["649"]="(",u["650"]="(",u["651"]="(",u["652"]="(",u["653"]="(", u["654"]="(",u["655"]="(",u["656"]="(",u["657"]="(",u["658"]="(",u["659"]="(",u["660"]="(",u["661"]="(",u["662"]="(",u["663"]="(",u["664"]="(",u["665"]="(",u["666"]="(",u["667"]="(",u["668"]="(",u["669"]="(",u["670"]="(",u["671"]="(",u["672"]="(",u["673"]="(",u["674"]="(h",u["675"]="(h",u["676"]="(h",u["677"]="(h",u["678"]="(h",u["679"]="(h",u["680"]="(h",u["681"]="(h",u["682"]="(h",u["683"]="(h",u["684"]="(h",u["685"]="(h",u["686"]="(h",u["687"]="(h",u["688"]="A",u["689"]="A",u["690"]="A",u["691"]= "MEAC3",u["773"]="i",u["806"]="I",u["805"]="I",u["829"]="9",u["830"]="9",u["831"]="9",u["832"]="9",u["833"]="9",u["834"]="9",u["835"]="9",u["836"]="9",u["892"]="9",u["893"]="9",u["837"]="9",u["838"]="9",u["839"]="9",u["840"]="9",u["841"]="(",u["842"]="(",u["843"]="(",u["844"]="(",u["845"]="(",u["846"]="(",u["847"]="(",u["848"]="(",u["894"]="(",u["895"]="(",u["849"]="(",u["850"]="(",u["851"]="(",u["852"]="(",u["865"]="9",u["866"]="9",u["867"]="9",u["868"]="9",u["869"]="9",u["870"]="9",u["871"]="9", u["872"]="9",u["896"]="9",u["897"]="9",u["873"]="9",u["874"]="9",u["875"]="9",u["876"]="9",u["877"]="(",u["878"]="(",u["879"]="(",u["880"]="(",u["881"]="(",u["882"]="(",u["883"]="(",u["884"]="(",u["898"]="(",u["899"]="(",u["885"]="(",u["886"]="(",u["887"]="(",u["888"]="(",u);var S8={},bZO=(S8.STEREO_LAYOUT_UNKNOWN=0,S8.STEREO_LAYOUT_LEFT_RIGHT=1,S8.STEREO_LAYOUT_TOP_BOTTOM=2,S8);var xNL={W0Q:0,K0P:1,anF:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var sQ,Vz,mF,gFl;sQ={};g.wE=(sQ.auto=0,sQ.tiny=144,sQ.light=144,sQ.small=240,sQ.medium=360,sQ.large=480,sQ.hd720=720,sQ.hd1080=1080,sQ.hd1440=1440,sQ.hd2160=2160,sQ.hd2880=2880,sQ.highres=4320,sQ);Vz={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};mF={}; gFl=(mF.QUALITY_ORDINAL_UNKNOWN=0,mF.QUALITY_ORDINAL_144P_SAVER=124,mF.QUALITY_ORDINAL_144P=144,mF.QUALITY_ORDINAL_240P_SAVER=220,mF.QUALITY_ORDINAL_240P=240,mF.QUALITY_ORDINAL_360P_SAVER=340,mF.QUALITY_ORDINAL_360P=360,mF.QUALITY_ORDINAL_480P=480,mF.QUALITY_ORDINAL_608P_SAVER=588,mF.QUALITY_ORDINAL_608P=608,mF.QUALITY_ORDINAL_720P=720,mF.QUALITY_ORDINAL_720P_ENHANCED=740,mF.QUALITY_ORDINAL_1080P=1080,mF.QUALITY_ORDINAL_1080P_ENHANCED=1100,mF.QUALITY_ORDINAL_1440P=1440,mF.QUALITY_ORDINAL_2160P=2160, mF.QUALITY_ORDINAL_HIGHRES=9999,mF);var i7="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");p_.prototype.isHdr=function(){return this.S==="smpte2084"||this.S==="arib-std-b67"};xK.prototype.Ox=function(){return this.containerType===2}; xK.prototype.isEncrypted=function(){return!!this.DX}; xK.prototype.sU=function(){return!!this.audio}; xK.prototype.Dw=function(){return!!this.video}; var qW=!1;g.b(X2,g.aK);g.E=X2.prototype;g.E.appendBuffer=function(e,a,r){if(this.pB.bG()!==this.appendWindowStart+this.start||this.pB.hx()!==this.appendWindowEnd+this.start||this.pB.t9()!==this.timestampOffset+this.start)this.pB.supports(1),this.pB.mp(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.pB.pE(this.timestampOffset+this.start);this.pB.appendBuffer(e,a,r)}; g.E.abort=function(){this.pB.abort()}; g.E.remove=function(e,a){this.pB.remove(e+this.start,a+this.start)}; g.E.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.E.clear=function(){this.pB.clear()}; g.E.mp=function(e,a){this.appendWindowStart=e;this.appendWindowEnd=a}; g.E.BL=function(){return this.timestampOffset+this.start}; g.E.bG=function(){return this.appendWindowStart}; g.E.hx=function(){return this.appendWindowEnd}; g.E.pE=function(e){this.timestampOffset=e}; g.E.t9=function(){return this.timestampOffset}; g.E.HG=function(e){e=this.pB.HG(e===void 0?!1:e);return TW(e,this.start,this.end)}; g.E.hO=function(){return this.pB.hO()}; g.E.g8=function(){return this.pB.g8()}; g.E.zT=function(){return this.pB.zT()}; g.E.kH=function(){return this.pB.kH()}; g.E.oh=function(){this.pB.oh()}; g.E.GE=function(e){return this.pB.GE(e)}; g.E.a8=function(){return this.pB.a8()}; g.E.qb=function(){return this.pB.qb()}; g.E.s0=function(e,a,r){this.pB.s0(e,a,r)}; g.E.tS=function(e,a,r){this.pB.tS(e,a,r)}; g.E.sZ=function(e,a){return this.pB.sZ(e,a)}; g.E.supports=function(e){return this.pB.supports(e)}; g.E.kc=function(){return this.pB.kc()}; g.E.isView=function(){return!0}; g.E.qX=function(){return this.pB.qX()?this.isActive:!1}; g.E.isLocked=function(){return this.x6&&!this.isActive}; g.E.vA=function(e){e=this.pB.vA(e);e.vw=this.start+"-"+this.end;return e}; g.E.Fp=function(){return this.pB.Fp()}; g.E.WM=function(){return this.pB.WM()}; g.E.HL=function(){return this.pB.HL()}; g.E.RH=function(){this.pB.r4(this.vv);g.aK.prototype.RH.call(this)};var LP=!1;g.b(A0,g.aK);g.E=A0.prototype;g.E.appendBuffer=function(e,a,r){this.DS=!1;r&&(this.Rx=r);if(e.length){var P;((P=this.mL)==null?0:P.appendBuffer)?this.mL.appendBuffer(e):this.mL?this.mL.append(e):this.jX&&this.jX.webkitSourceAppend(this.id,e)}a&&(a.isEncrypted()&&(this.Lc=this.Rx),a.type===3&&(this.HV=a),this.pA.push(a.Kb()),this.pA.length>4&&this.pA.shift());this.W0&&(this.W0.length>=2||e.length>1048576?delete this.W0:this.W0.push(e))}; g.E.abort=function(){try{this.mL?this.mL.abort():this.jX&&this.jX.webkitSourceAbort(this.id)}catch(a){if(UZT){var e=new g.I6("Error while abort the source buffer: "+a.name+", "+a.message);g.D6(e)}}this.Rx=this.HV=null}; g.E.remove=function(e,a,r){this.DS=!1;var P;if((P=this.mL)==null?0:P.remove)r&&r({b:Pi(this.HG()),s:e,e:a}),this.mL.remove(e,a)}; g.E.removeAll=function(){this.remove(this.bG(),this.hx())}; g.E.clear=function(){this.zT()||(this.abort(),this.removeAll(),this.Lc=this.Rx=this.HV=null,this.appendWindowStart=this.timestampOffset=0,this.g5=rx([],[]),this.DS=!1,this.W0=fZ?[]:void 0,this.rF=!0)}; g.E.bG=function(){if(LP&&this.Dw)return this.appendWindowStart;var e;return((e=this.mL)==null?void 0:e.appendWindowStart)||0}; g.E.hx=function(){var e;return((e=this.mL)==null?void 0:e.appendWindowEnd)||0}; g.E.mp=function(e,a){this.mL&&(LP&&this.Dw?(this.appendWindowStart=e,this.mL.appendWindowEnd=a):e>this.bG()?(this.mL.appendWindowEnd=a,this.mL.appendWindowStart=e):(this.mL.appendWindowStart=e,this.mL.appendWindowEnd=a))}; g.E.BL=function(){return this.timestampOffset}; g.E.pE=function(e){LP?this.timestampOffset=e:this.supports(1)&&(this.mL.timestampOffset=e)}; g.E.t9=function(){return LP?this.timestampOffset:this.supports(1)?this.mL.timestampOffset:0}; g.E.HG=function(e){if(e===void 0?0:e)return this.DS||this.hO()||(this.g5=this.HG(!1),this.DS=!0),this.g5;try{return this.mL?this.mL.buffered:this.jX?this.jX.webkitSourceBuffered(this.id):rx([0],[Infinity])}catch(a){return rx([],[])}}; g.E.hO=function(){var e;return((e=this.mL)==null?void 0:e.updating)||!1}; g.E.zT=function(){return this.rF}; g.E.kH=function(){return!this.rF&&this.hO()}; g.E.oh=function(){this.rF=!1}; g.E.GE=function(e){var a=e==null?void 0:e.vW;e=e==null?void 0:e.containerType;return!a&&!e||a===this.vW&&e===this.containerType}; g.E.a8=function(){return this.Rx}; g.E.qb=function(){return this.Lc}; g.E.sZ=function(e,a){return this.containerType!==e||this.vW!==a}; g.E.s0=function(e,a,r){if(this.containerType!==e||r&&this.sZ(e,r))this.supports(4),UD()&&this.mL.changeType(a),r&&(this.vW=r);this.containerType=e}; g.E.tS=function(e,a,r){this.containerType&&this.sZ(e,a)&&UD()&&this.mL.changeType(r);this.containerType=e;this.vW=a}; g.E.kc=function(){return this.HV}; g.E.isView=function(){return!1}; g.E.supports=function(e){switch(e){case 1:var a;return((a=this.mL)==null?void 0:a.timestampOffset)!==void 0;case 0:var r;return!((r=this.mL)==null||!r.appendBuffer);case 2:var P;return!((P=this.mL)==null||!P.remove);case 3:var B,h;return!!(((B=this.mL)==null?0:B.addEventListener)&&((h=this.mL)==null?0:h.removeEventListener));case 4:return!(!this.mL||!this.mL.changeType);default:return!1}}; g.E.qX=function(){return!this.hO()}; g.E.isLocked=function(){return!1}; g.E.vA=function(e){e.to=this.t9();e.up=this.hO();var a,r=((a=this.mL)==null?void 0:a.appendWindowStart)||0,P;a=((P=this.mL)==null?void 0:P.appendWindowEnd)||Infinity;e.aw=r.toFixed(3)+"-"+a.toFixed(3);return e}; g.E.g8=function(){var e;return((e=this.mL)==null?void 0:e.writeHead)||0}; g.E.Fp=function(){for(var e={},a=0;a=7&&(!a||((P=this.uW)==null?0:P.X("mweb_ios_allow_playback_workaround_when_ready")))&&J_N(this,function(){g.Tu(function(){Raj(e,e.getCurrentTime(),0)},500)})}return a}; g.E.seekTo=function(e){this.Lq()>0&&(qG&&eo<4&&(e=Math.max(.1,e)),this.setCurrentTime(e))}; g.E.yY=function(){if(!this.T&&this.cW)if(this.cW.C)try{var e;t0(this,{l:"mer",sr:(e=this.uW)==null?void 0:e.SH(),rs:ZT(this.cW)});this.cW.clear();this.T=this.cW;this.cW=void 0}catch(a){e=new g.I6("Error while clearing Media Source in MediaElement: "+a.name+", "+a.message),g.D6(e),this.stopVideo()}else this.stopVideo()}; g.E.stopVideo=function(){var e=this;if(!this.T){var a;(a=this.cW)==null||H$4(a);if(XqN){if(!this.B){var r=new kF;r.then(void 0,function(){}); this.B=r;frT&&this.pause();g.Tu(function(){e.B===r&&(V9(e),r.resolve())},200)}}else V9(this)}}; g.E.ZP=function(){var e=this.vV();return nZ(e)&&this.getDuration()?ci(e,this.getCurrentTime()):0}; g.E.lL=function(){var e=this.getDuration();return e===Infinity?1:e?this.ZP()/e:0}; g.E.vA=function(){try{var e=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Pi(this.CD(),",",3),vbu:Pi(this.vV()),vbs:Pi(this.dj()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Lq(),vns:""+this.vY(),vec:""+this.P7(),vemsg:this.OU(),vvol:""+this.getVolume(),vdom:""+ +this.Vq(),vsrc:""+ +!!this.Rn(),vw:""+e.width,vh:""+e.height}}catch(a){return{}}}; g.E.hasError=function(){return this.P7()>0}; g.E.addEventListener=function(e,a){this.L.listen(e,a,!1,this);this.B9(e)}; g.E.removeEventListener=function(e,a){this.L.Xo(e,a,!1,this)}; g.E.dispatchEvent=function(e){if(this.B&&e.type==="pause")return!1;if(A8L){var a,r=((a=e.S)==null?void 0:a.timeStamp)||Infinity;a=r>performance.now()?r-Date.now()+performance.now():r;r=this.T||this.cW;if((r==null?0:r.zT())||a<=((r==null?void 0:r.Z)||0)){var P;t0(this,{l:"mede",sr:(P=this.uW)==null?void 0:P.SH(),et:e.type});return!1}if(this.XZ)return t0(this,{l:"medes",et:e.type}),r&&e.type==="seeking"&&(r.Z=performance.now(),this.XZ=!1),!1}return this.L.dispatchEvent(e)}; g.E.pX=function(){this.Z=!1}; g.E.iJ=function(){this.Z=!0;this.ji(!0)}; g.E.gY=function(){this.Z&&!this.Mb()&&this.ji(!0)}; g.E.equals=function(e){return!!e&&e.EM()===this.EM()}; g.E.RH=function(){this.D&&this.removeEventListener("volumechange",this.gY);XqN&&V9(this);g.N.prototype.RH.call(this)}; var XqN=!1,frT=!1,A8L=!1,mdO=!1;g.E=g.Q9.prototype;g.E.isPaused=function(){return g.S(this,4)}; g.E.isPlaying=function(){return g.S(this,8)&&!g.S(this,512)&&!g.S(this,64)&&!g.S(this,2)}; g.E.isOrWillBePlaying=function(){return g.S(this,8)&&!g.S(this,2)&&!g.S(this,1024)}; g.E.isCued=function(){return g.S(this,64)&&!g.S(this,8)&&!g.S(this,4)}; g.E.isBuffering=function(){return g.S(this,1)&&!g.S(this,2)}; g.E.isError=function(){return g.S(this,128)}; g.E.isSuspended=function(){return g.S(this,512)}; g.E.y7=function(){return g.S(this,64)&&g.S(this,4)}; g.E.toString=function(){return"PSt."+this.state.toString(16)}; var FF={},MH=(FF.BUFFERING="buffering-mode",FF.CUED="cued-mode",FF.ENDED="ended-mode",FF.PAUSED="paused-mode",FF.PLAYING="playing-mode",FF.SEEKING="seeking-mode",FF.UNSTARTED="unstarted-mode",FF);g.b(xF,g.N);g.E=xF.prototype;g.E.fY=function(){return this.B}; g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){var e=sc(this.layout.clientMetadata,"metadata_type_video_length_seconds"),a=sc(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");TD(this.layout.SO)&&BG(this.BA.get(),this.layout.layoutId,{F9:a,f6:e,listener:this,qK:this.Cy()});Hs4(this.ZQ.get(),this);e=this.JR;a=this.layout.layoutId;var r={qK:this.Cy()};e.S.set(a,r);this.QU()}; g.E.bV=function(){}; g.E.release=function(){TD(this.layout.SO)&&hR(this.BA.get(),this.layout.layoutId);qSO(this.ZQ.get(),this);this.JR.S.delete(this.layout.layoutId);this.Vj()}; g.E.Nz=function(){}; g.E.Le=function(){}; g.E.startRendering=function(e){n_(IV(this));if(Hi(this,e)){var a=this.S;yN(a.params.qA.bW.get(),!0)&&kKq(a,"p_sr",{});qO(this);this.Op(e);this.Cy()||this.tY(!1)}}; g.E.FN=function(e,a){if(a.layoutId===this.layout.layoutId){this.Mr="rendering";this.T=this.aH.get().isMuted()||this.aH.get().getVolume()===0;this.PA("impression");this.PA("start");if(this.aH.get().isMuted()){F2(this,"mute");var r;e=((r=NO(this))==null?void 0:r.muteCommands)||[];lo(this.Cr.get(),e,this.layout.layoutId)}if(this.aH.get().isFullscreen()){this.FH("fullscreen");var P;r=((P=NO(this))==null?void 0:P.fullscreenCommands)||[];lo(this.Cr.get(),r,this.layout.layoutId)}this.Cy()||(P=this.lw.get(), P.B&&!P.T&&(P.C=!1,P.T=!0,P.actionType!=="ad_to_video"&&(QA("pbs",void 0,P.actionType),g.CK("finalize_all_timelines")&&rEj(P.actionType))));this.Yg(1);this.B5(a);var B;a=((B=NO(this))==null?void 0:B.impressionCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.D$=function(e,a,r){this.D={Vy:3,jW:e==="load_timeout"?402:400,errorMessage:a.message};this.PA("error");var P;e=((P=NO(this))==null?void 0:P.errorCommands)||[];lo(this.Cr.get(),e,this.layout.layoutId);this.Cy()||this.g0.ST(this.slot,this.layout,a,r)}; g.E.AE=function(){if(this.Mr==="rendering"){F2(this,"pause");var e,a=((e=NO(this))==null?void 0:e.pauseCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId);this.Yg(2)}}; g.E.Ps=function(){if(this.Mr==="rendering"){F2(this,"resume");var e,a=((e=NO(this))==null?void 0:e.resumeCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.Wx=function(e,a){a=a===void 0?!1:a;if(this.Mr==="rendering"){var r={currentTimeSec:e,flush:a};Ts(this.S,"p_ip",r);bp(this.Jz,e*1E3,a);this.T||bp(this.Jz,e*1E3,a===void 0?!1:a);var P=this.hn();if(P){P/=1E3;if(e>=P*.25||a)this.PA("first_quartile"),Ts(this.S,"p_fq",r);if(e>=P*.5||a)this.PA("midpoint"),Ts(this.S,"p_sq",r);if(e>=P*.75||a)this.PA("third_quartile"),Ts(this.S,"p_tq",r);this.bW.get().W.G().experiments.FM("enable_progress_command_flush_on_kabuki")?Vs(this.L,e*1E3,a):Vs(this.L,e*1E3,eYj(this)? a:!1)}}}; g.E.X6=function(){var e;return((e=vi(this.DQ.get(),1))==null?void 0:e.clientPlaybackNonce)||""}; g.E.wO=function(e,a){e.layoutId!==this.layout.layoutId?this.g0.ST(this.slot,e,new R$("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"):a()}; g.E.WO=function(e,a,r){if(a.layoutId===this.layout.layoutId)switch(this.Mr="not_rendering",this.layoutExitReason=void 0,this.Cy()||(e=r!=="normal"||this.position+1===this.Z)&&this.tY(e),this.x3(r),this.Yg(0),r){case "abandoned":if(tD(this.Jz,"impression")){var P,B=((P=NO(this))==null?void 0:P.abandonCommands)||[];lo(this.Cr.get(),B,this.layout.layoutId)}break;case "normal":P=((B=NO(this))==null?void 0:B.completeCommands)||[];lo(this.Cr.get(),P,this.layout.layoutId);break;case "skipped":var h;P=((h= NO(this))==null?void 0:h.skipCommands)||[];lo(this.Cr.get(),P,this.layout.layoutId)}}; g.E.x4=function(){return this.layout.layoutId}; g.E.fX=function(){return this.D}; g.E.ZT=function(){if(this.Mr==="rendering"){this.Jz.PA("active_view_measurable");var e,a=((e=NO(this))==null?void 0:e.activeViewMeasurableCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.lU=function(){if(this.Mr==="rendering"){this.Jz.PA("active_view_fully_viewable_audible_half_duration");var e,a=((e=NO(this))==null?void 0:e.activeViewFullyViewableAudibleHalfDurationCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.wp=function(){if(this.Mr==="rendering"){this.Jz.PA("active_view_viewable");var e,a=((e=NO(this))==null?void 0:e.activeViewViewableCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.Wm=function(){if(this.Mr==="rendering"){this.Jz.PA("audio_audible");var e,a=((e=NO(this))==null?void 0:e.activeViewAudioAudibleCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.e6=function(){if(this.Mr==="rendering"){this.Jz.PA("audio_measurable");var e,a=((e=NO(this))==null?void 0:e.activeViewAudioMeasurableCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}}; g.E.tY=function(e){this.lw.get().tY(sc(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e,this.position,this.Z,!1)}; g.E.onFullscreenToggled=function(e){if(this.Mr==="rendering")if(e){this.FH("fullscreen");var a,r=((a=NO(this))==null?void 0:a.fullscreenCommands)||[];lo(this.Cr.get(),r,this.layout.layoutId)}else this.FH("end_fullscreen"),a=((r=NO(this))==null?void 0:r.endFullscreenCommands)||[],lo(this.Cr.get(),a,this.layout.layoutId)}; g.E.onVolumeChange=function(){if(this.Mr==="rendering")if(this.aH.get().isMuted()){F2(this,"mute");var e,a=((e=NO(this))==null?void 0:e.muteCommands)||[];lo(this.Cr.get(),a,this.layout.layoutId)}else F2(this,"unmute"),e=((a=NO(this))==null?void 0:a.unmuteCommands)||[],lo(this.Cr.get(),e,this.layout.layoutId)}; g.E.C_=function(){}; g.E.tj=function(){}; g.E.MA=function(){}; g.E.mV=function(){}; g.E.Aj=function(){}; g.E.FH=function(e){this.Jz.FH(e,!this.T)}; g.E.PA=function(e){this.Jz.PA(e,!this.T)}; g.E.Cy=function(){var e=sc(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(o9("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.bW.get().Cy(e)};g.b(e0,xF);g.E=e0.prototype;g.E.QU=function(){}; g.E.Vj=function(){var e=this.ZQ.get();e.IP===this&&(e.IP=null);this.timer.stop()}; g.E.Nz=function(){this.timer.stop();xF.prototype.AE.call(this)}; g.E.Le=function(){rv(this);xF.prototype.Ps.call(this)}; g.E.hn=function(){return sc(this.x$().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.E.u5=function(e,a){var r=this;this.wO(e,function(){r.Mr!=="rendering_stop_requested"&&(r.Mr="rendering_stop_requested",r.layoutExitReason=a,RV(r,a),r.timer.stop())})}; g.E.j5=function(){var e=Date.now(),a=e-this.Wn;this.Wn=e;this.T0+=a;this.T0>=this.hn()?this.J3():(this.Wx(this.T0/1E3),aI(this,this.T0))}; g.E.x3=function(){}; g.E.f5=function(){}; g.b(Pm,e0);g.E=Pm.prototype;g.E.dL=function(e){if(this.Mr!=="not_rendering"){e=SE(this,e);var a=this.aH.get().getPresentingPlayerType()===2;this.Mr==="rendering_start_requested"?a&&up(e)&&this.oQ():a?g.TH(e,2)?o9("Receive player ended event during MediaBreak",this.A9(),this.x$()):sD(this,e):this.Gb()}}; g.E.Op=function(){u5L(this);uV4(this.aH.get());this.ZQ.get().IP=this;VA("pbp")||VA("pbs")||QA("pbp");VA("pbp","watch")||VA("pbs","watch")||QA("pbp",void 0,"watch");this.oQ()}; g.E.B5=function(e){this.lw.get();var a=sc(e.clientMetadata,"metadata_type_ad_placement_config").kind,r=this.position===0;e=sc(e.clientMetadata,"metadata_type_linked_in_player_layout_type");e={adBreakType:mY(a),adType:X3j(e)};var P=void 0;r?a!=="AD_PLACEMENT_KIND_START"&&(P="video_to_ad"):P="ad_to_ad";dL("ad_mbs",void 0,P);g.JA(e,P);rv(this)}; g.E.Gb=function(){this.h8()}; g.E.J3=function(){rAJ(this);this.h8()}; g.b(Bm,e0);g.E=Bm.prototype;g.E.dL=function(e){this.Mr!=="not_rendering"&&(e=SE(this,e),sD(this,e))}; g.E.Op=function(){o9("Not used in SSAP")}; g.E.B5=function(){rv(this)}; g.E.Gb=function(){o9("Not used in SSAP")}; g.E.J3=function(){rAJ(this);this.g0.K0(this.A9(),this.x$(),"normal")}; g.b(hc,Bm);hc.prototype.u5=function(e,a){var r=this;this.wO(e,function(){PH(r.B,a)&&(r.Mr="rendering_stop_requested",r.layoutExitReason=a,RV(r,a),r.timer.stop())})}; hc.prototype.startRendering=function(e){n_(IV(this));Hi(this,e)&&(qO(this),this.ZQ.get().IP=this)};g.b(n7,xF);g.E=n7.prototype;g.E.Gb=function(){this.h8()}; g.E.dL=function(e){if(this.Mr!=="not_rendering"){e=SE(this,e);var a=this.aH.get().getPresentingPlayerType()===2;this.Mr==="rendering_start_requested"?a&&up(e)&&this.oQ():!a||g.TH(e,2)?this.h8():sD(this,e)}}; g.E.QU=function(){sc(this.x$().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=sc(this.x$().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.E.Vj=function(){sc(this.x$().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.OG){var e=this.context.qA,a=this.OG,r=this.x$().layoutId;if(yN(e.bW.get(),!0)){var P={};e.gW("mccru",(P.cid=a,P.p_ac=r,P))}this.Lb.get().removeCueRange(this.OG)}this.OG=void 0;var B;(B=this.g3)==null||B.dispose();this.xA&&this.xA.dispose()}; g.E.Op=function(e){var a=cm(this.bW.get()),r=oI(this.bW.get());if(a&&r&&!this.Cy()){r=sc(e.clientMetadata,"metadata_type_preload_player_vars");var P=this.bW.get();P=g.eS(P.W.G().experiments,"html5_preload_wait_time_secs");r&&this.xA&&this.xA.start(P*1E3)}hYI(this,e);u5L(this);a?(r=this.Iz.get(),e=sc(e.clientMetadata,"metadata_type_player_vars"),r.W.loadVideoByPlayerVars(e,!1,2)):Afj(this.Iz.get(),sc(e.clientMetadata,"metadata_type_player_vars"));var B;(B=this.g3)==null||B.start();a||this.Iz.get().W.playVideo(2)}; g.E.B5=function(){var e;(e=this.g3)==null||e.stop();this.lX();(this.adCpn=j9T(this))||o9("Media layout confirmed started, but ad CPN not set.");this.V2.get().Xh("onAdStart",this.adCpn);this.Un=Date.now()}; g.E.hn=function(){var e;return(e=vi(this.DQ.get(),2))==null?void 0:e.GK}; g.E.xd=function(){this.Jz.FH("clickthrough")}; g.E.u5=function(e,a){var r=this;this.wO(e,function(){if(r.Mr!=="rendering_stop_requested"){r.Mr="rendering_stop_requested";r.layoutExitReason=a;RV(r,a);var P;(P=r.g3)==null||P.stop();r.xA&&r.xA.stop();cAL(r)}})}; g.E.onCueRangeEnter=function(e){if(e!==this.OG)o9("Received CueRangeEnter signal for unknown layout.",this.A9(),this.x$(),{cueRangeId:e});else{var a=this.context.qA,r=this.x$().layoutId;if(yN(a.bW.get(),!0)){var P={};a.gW("mccre",(P.cid=e,P.p_ac=r,P))}this.Lb.get().removeCueRange(this.OG);this.OG=void 0;pm(this.context.bW.get(),"html5_ssap_flush_at_stop_rendering")&&this.Cy()||(e=sc(this.x$().clientMetadata,"metadata_type_video_length_seconds"),this.Wx(e,!0),this.PA("complete"))}}; g.E.x3=function(e){e!=="abandoned"&&this.V2.get().Xh("onAdComplete");this.V2.get().Xh("onAdEnd",this.adCpn)}; g.E.lX=function(){this.OG="adcompletioncuerange:"+this.x$().layoutId;this.Lb.get().addCueRange(this.OG,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var e=this.context.qA,a=this.OG,r=this.x$().layoutId;if(yN(e.bW.get(),!0)){var P={};e.gW("mccr",(P.cid=a,P.p_ac=r,P))}}; g.E.onCueRangeExit=function(){}; g.E.f5=function(e){this.Mr==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&e>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.aH.get().zf(!0),this.Wx(e))}; g.E.Wx=function(e,a){xF.prototype.Wx.call(this,e,a===void 0?!1:a);a=Date.now()-this.Un;var r=e*1E3,P={contentCpn:this.X6(),adCpn:j9T(this)};if(e-this.PR>=5){var B=a=2||(this.Fo.u5(this.layout,a),e=pm(this.params.context.bW.get(),"html5_ssap_pass_transition_reason")&&a==="abandoned",this.zR()&&!e&&(pm(this.params.context.bW.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(a)||o9("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:a})),this.gg.get().finishSegmentByCpn(this.layout.layoutId, vi(this.DQ.get(),1).clientPlaybackNonce,jE(a,this.params.context.bW))),this.aH.get().removeListener(this),this.PT()&&BH(this.Fo.fY())&&this.jm.WO(this.slot,this.layout,this.Fo.fY().S))}; g.E.PE=function(e,a,r){ZB3({cpn:e,RU:this.DQ.get(),sf:!0});this.x$().layoutId!==e||pm(this.params.context.bW.get(),"html5_ssap_pass_transition_reason")&&r===5||(this.Fo.fY().currentState<2&&(e=uB(r,this.params.context.bW),e==="error"?this.jm.ST(this.slot,this.layout,new R$("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:r},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):by(this.Zw, this.layout,e)),pm(this.params.context.bW.get(),"html5_ssap_exit_without_waiting_for_transition")||this.jm.WO(this.slot,this.layout,this.Fo.fY().S))};g.b(Ac,g.N);g.E=Ac.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.yc=function(){}; g.E.Nf=function(){return this.qq[this.EB]}; g.E.ev=function(){return this.EB}; g.E.Nz=function(e,a){var r=this.Nf();a.layoutId!==C7(r,e,a)?o9("pauseLayout for a PlayerBytes layout that is not currently active",e,a):r.Nz()}; g.E.Le=function(e,a){var r=this.Nf();a.layoutId!==C7(r,e,a)?o9("resumeLayout for a PlayerBytes layout that is not currently active",e,a):r.Le()}; g.E.j6=function(e,a){var r=this.Nf();Gm3(this,e,a);EWI(r,e,a)&&this.Df(r.A9(),r.x$(),"skipped")}; g.E.vE=function(e,a){var r=this.Nf();b8J(this);tmy(r,e,a)&&(e=gWL(this,r,e,a),e!==void 0&&(this.Cy()?o9("Should not happen. Should delete"):O8y(this,r.A9(),r.x$(),e)))}; g.E.QG=function(e,a){var r=Object.assign({},Uq(this),{layoutId:a.layoutId}),P=r.layoutId,B=r.sf;if(r.qK){var h={};oH(r.RU,"wrse",(h.ec=P,h.is=B,h.ctp=cH(P),h))}Cm(this.Bj,e,a)}; g.E.FN=function(e,a){var r;(r=this.Nf())==null||r.FN(e,a)}; g.E.WO=function(e,a,r){a.layoutId===this.x$().layoutId&&(this.mE=!1,B_(this.uw(),this));var P;(P=this.Nf())==null||P.WO(e,a,r)}; g.E.f5=function(e){var a;(a=this.Nf())==null||a.f5(e)}; g.E.El=function(e,a,r){this.ev()===-1&&(this.callback.FN(this.slot,this.layout),this.EB++);var P=this.Nf();P?(P.D$(e,a,r),this.Cy()&&this.callback.ST(this.slot,this.layout,a,r)):o9("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.ev()),layoutId:this.x$().layoutId})}; g.E.onFullscreenToggled=function(e){var a;(a=this.Nf())==null||a.onFullscreenToggled(e)}; g.E.C_=function(e){var a;(a=this.Nf())==null||a.C_(e)}; g.E.MA=function(e){var a;(a=this.Nf())==null||a.MA(e)}; g.E.onVolumeChange=function(){var e;(e=this.Nf())==null||e.onVolumeChange()}; g.E.mF=function(e,a,r){Gx(this.Bj,e,a,r)}; g.E.TM=function(e){e.startRendering(e.x$())}; g.E.init=function(){var e=sc(this.x$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);if(this.qq.length<1)throw new F("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.qq.length)});if(e=sc(this.x$().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=this;e=g.Z(this.qq);for(var a=e.next();!a.done;a=e.next())a=a.value,a.init(),HhO(this.Bj,this.slot,a.x$()),q3I(this.Bj,this.slot,a.x$()); if(this.Cy())for(this.DQ.get().addListener(this),Cvq(CII(this),this.DQ.get()),e=CII(this),e=g.Z(e),a=e.next();!a.done;a=e.next())this.rS(a.value)}; g.E.rS=function(e){var a=sc(e.clientMetadata,"metadata_type_player_vars");a?(e.layoutType!=="LAYOUT_TYPE_MEDIA"&&o9("Non-video ad contains playerVars",this.slot,e),this.Iz.get().addPlayerResponseForAssociation({playerVars:a})):(e=fpz(e),this.Iz.get().addPlayerResponseForAssociation({z1:e}))}; g.E.release=function(){var e=sc(this.x$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);if(e=sc(this.x$().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=null;e=g.Z(this.qq);for(var a=e.next();!a.done;a=e.next())a=a.value,vrj(this.Bj,this.slot,a.x$()),a.release();this.Cy()&&(this.DQ.get().removeListener(this),GKL())}; g.E.wO=function(e){return e.layoutId!==this.x$().layoutId?(this.callback.ST(this.A9(),e,new R$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.x$().layoutId+("and LayoutType: "+this.x$().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.E.Qs=function(){this.aH.get().addListener(this);P_(this.uw(),this)}; g.E.dL=function(e){if(e.state.isError()){var a,r;this.El((a=e.state.xu)==null?void 0:a.errorCode,new R$("There was a player error during this media layout.",{playerErrorCode:(r=e.state.xu)==null?void 0:r.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(a=this.Nf())&&a.dL(e)}; g.E.Cy=function(){var e=sc(this.A9().clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(o9("Expected SSAP eligibility in PlayerBytes slots",this.A9(),this.x$()),!1):this.bW.get().Cy(e)}; g.E.tj=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.mV=function(){}; g.E.Aj=function(){}; g.b(tc,Ac);g.E=tc.prototype;g.E.UI=function(e,a,r){this.Df(e,a,r)}; g.E.DB=function(e,a){this.Df(e,a,"error")}; g.E.Df=function(e,a,r){var P=this;Z8l(this,e,a,r,function(){Ge(P,P.ev()+1)})}; g.E.startRendering=function(e){this.wO(e)&&(this.Qs(),TRL(this.lw.get()),EnN(this.bW.get())||uV4(this.aH.get()),this.ev()===-1&&Ge(this,this.ev()+1))}; g.E.u5=function(e,a){var r=this;this.mE=!0;this.ev()===this.qq.length?this.callback.WO(this.slot,this.layout,a):(e=this.Nf(),e.u5(e.x$(),a),this.EE=function(){r.callback.WO(r.slot,r.layout,a)}); this.aH.get().W.cT();Afj(this.Iz.get(),{});e=PG(this.aH.get(),1);e.isPaused()&&!g.S(e,2)&&this.aH.get().playVideo();this.aH.get().removeListener(this);this.mE&&km3(this)}; g.E.PE=function(){}; g.E.Ad=function(){}; g.E.K0=function(){}; g.b(gv,Ac);g.E=gv.prototype;g.E.UI=function(e,a,r){e=Object.assign({},Uq(this),{layoutId:a.layoutId,layoutExitReason:r});a=e.layoutId;r=e.layoutExitReason;var P={};oH(e.RU,"prse",(P.xc=a,P.ler=r,P.ctp=cH(a),P))}; g.E.DB=function(){o9("onSubLayoutError in SSAP")}; g.E.Df=function(){o9("exitSubLayoutAndPlayNext in SSAP")}; g.E.Nf=function(){return this.XE}; g.E.ev=function(){var e=this;return this.qq.findIndex(function(a){var r;return a.x$().layoutId===((r=e.XE)==null?void 0:r.x$().layoutId)})}; g.E.TM=function(e){cK(this.XE===void 0,"replacing another adapter");this.XE=e;e.startRendering(e.x$())}; g.E.mF=function(e,a,r){Gx(this.Bj,e,a,r);var P;cK(a.layoutId===((P=this.XE)==null?void 0:P.x$().layoutId),"currentAdapter does not match exiting layout",{slot:e?"slot: "+e.slotType:"",subLayout:hx(a)})&&(this.XE=void 0)}; g.E.release=function(){Ac.prototype.release.call(this);cK(this.XE===void 0,"currentAdapter is still active during release");this.XE=void 0}; g.E.zR=function(){return this.aH.get().getPresentingPlayerType()===2}; g.E.u5=function(e,a){function r(){ZU(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(a)||o9("Composite stopRendering: Unexpected layout exit reason",this.slot,e,{layoutExitReason:a}))} function P(){this.XE&&Oq(this,this.XE,a);if(this.zR()&&(!ZU(this)||a!=="abandoned")){r.call(this);var h;var c=((h=this.DQ.get().W.getVideoData())==null?void 0:h.clientPlaybackNonce)||"";h=vi(this.DQ.get(),1).clientPlaybackNonce;this.gg.get().finishSegmentByCpn(c,h,jE(a,this.bW))}dPq(this,a)} function B(){if(this.XE){var h=this.XE;h.fY().currentState<2&&h.u5(h.x$(),a);h=ZU(this)&&a==="abandoned";this.zR()&&!h&&(r.call(this),this.gg.get().finishSegmentByCpn(this.XE.x$().layoutId,vi(this.DQ.get(),1).clientPlaybackNonce,jE(a,this.bW)))}} cK(e.layoutId===this.x$().layoutId,"StopRendering for wrong layout")&&PH(this.RR.T,a)&&(this.PT()?P.call(this):B.call(this))}; g.E.WO=function(e,a,r){Ac.prototype.WO.call(this,e,a,r);a.layoutId===this.x$().layoutId&&this.aH.get().removeListener(this)}; g.E.X6=function(){return vi(this.DQ.get(),1).clientPlaybackNonce}; g.E.PE=function(e,a,r){ZB3(Object.assign({},Uq(this),{cpn:e}));if(!ZU(this)||r!==5)if(this.PT()){if(this.XE&&this.XE.x$().layoutId!==a){var P=this.XE.x$().layoutId;P!==e&&o9("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:P,exitingCpn:e,enteringCpn:a});e=uB(r,this.bW);Oq(this,this.XE,e)}else this.XE&&o9("onClipExited: active layout is entering again");a===this.X6()&&DPl(this,r)}else{if(this.XE&&this.XE.x$().layoutId===e)JAO(this,this.XE,r);else{var B;o9("Exiting cpn does not match active cpn", this.slot,(P=this.XE)==null?void 0:P.x$(),{exitingCpn:e,transitionReason:r,activeCpn:(B=this.XE)==null?void 0:B.x$().layoutId})}a===this.X6()&&(this.XE!==void 0&&(o9("active adapter is not properly exited",this.slot,this.layout,{activeLayout:hx(this.XE.x$())}),JAO(this,this.XE,r)),DPl(this,r),dPq(this,this.RR.T.S))}}; g.E.PT=function(){return pm(this.bW.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.E.startRendering=function(e){this.wO(e)&&(e=this.RR,cK(e.S===1,"tickStartRendering: state is not initial"),e.S=2,this.Qs())}; g.E.Ad=function(e){gTT(Object.assign({},Uq(this),{cpn:e}));var a=this.qq.find(function(r){return r.x$().layoutId===e}); a?(this.RR.S!==2&&(c1T(this.Xw,this.slot.slotId),cK(this.RR.S===2,"Expect started"),this.callback.FN(this.slot,this.layout)),this.TM(a),Cm(this.Bj,this.slot,a.x$())):VmL(this,e)}; g.E.j6=function(e,a){Gm3(this,e,a);var r=this.Nf();r?EWI(r,e,a)&&$P4(this,"skipped"):Qdj(this,"onSkipRequested")}; g.E.vE=function(e,a){var r;a:{if(r=this.Nf()){if(b8J(this),tmy(r,e,a)&&(e=gWL(this,r,e,a),e!==void 0)){r={vz:r,wVW:this.qq[e]};break a}}else Qdj(this,"SkipWithAdPodSkip");r=void 0}if(e=r)r=e.vz,a=e.wVW,e=r.x$().layoutId,this.PT()?Oq(this,r,"skipped"):r.u5(r.x$(),"skipped"),r=a.x$().layoutId,this.gg.get().finishSegmentByCpn(e,r,jE("skipped",this.bW))}; g.E.QG=function(){o9("Not used in html5_ssap_fix_layout_exit")}; g.E.dL=function(e){var a;(a=this.Nf())==null||a.dL(e)}; g.E.El=function(){o9("Not used in html5_ssap_fix_layout_exit")}; g.E.K0=function(e,a,r){var P;if(((P=this.Nf())==null?void 0:P.x$().layoutId)!==a.layoutId)return void o9("requestToExitSubLayout: wrong layout");$P4(this,r)};g.b(kD,g.N);g.E=kD.prototype;g.E.A9=function(){return this.Fo.A9()}; g.E.x$=function(){return this.Fo.x$()}; g.E.init=function(){var e=sc(this.x$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);this.QU()}; g.E.QU=function(){this.Fo.init()}; g.E.release=function(){var e=sc(this.x$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);this.Vj()}; g.E.Vj=function(){this.Fo.release()}; g.E.Nz=function(){this.Fo.Nz()}; g.E.Le=function(){this.Fo.Le()}; g.E.j6=function(e,a){o9("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.A9(),this.x$(),{requestingSlot:e,requestingLayout:a})}; g.E.startRendering=function(e){e.layoutId!==this.x$().layoutId?this.callback.ST(this.A9(),e,new R$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.x$().layoutId+("and LayoutType: "+this.x$().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.aH.get().addListener(this),P_(this.uw(),this),TRL(this.lw.get()),EnN(this.bW.get())||uV4(this.aH.get()),this.Fo.startRendering(e))}; g.E.u5=function(e,a){this.mE=!0;this.Fo.u5(e,a);this.aH.get().W.cT();Afj(this.Iz.get(),{});e=PG(this.aH.get(),1);e.isPaused()&&!g.S(e,2)&&this.aH.get().playVideo();this.aH.get().removeListener(this);this.mE&&this.Fo.Gb()}; g.E.FN=function(e,a){this.Fo.FN(e,a)}; g.E.WO=function(e,a,r){a.layoutId===this.x$().layoutId&&(this.mE=!1,B_(this.uw(),this));this.Fo.WO(e,a,r);a.layoutId===this.x$().layoutId&&Eq(this.lw.get())}; g.E.f5=function(e){this.Fo.f5(e)}; g.E.dL=function(e){if(e.state.isError()){var a,r;this.El((a=e.state.xu)==null?void 0:a.errorCode,new R$("There was a player error during this media layout.",{playerErrorCode:(r=e.state.xu)==null?void 0:r.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Fo.dL(e)}; g.E.El=function(e,a,r){this.Fo.D$(e,a,r)}; g.E.onFullscreenToggled=function(e){this.Fo.onFullscreenToggled(e)}; g.E.C_=function(e){this.Fo.C_(e)}; g.E.MA=function(e){this.Fo.MA(e)}; g.E.onVolumeChange=function(){this.Fo.onVolumeChange()}; g.E.tj=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.mV=function(){}; g.E.Aj=function(){};g.E=dv.prototype;g.E.A9=function(){return this.slot}; g.E.x$=function(){return this.layout}; g.E.init=function(){this.GX.get().addListener(this);this.aH.get().addListener(this);var e=sc(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var a=sc(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.L){var r=this.GX.get().Ft.slice(-1)[0];r!==void 0&&(e=r.startSecs*1E3,a=(r.startSecs+r.Ug)*1E3)}this.bV(e,a);var P;r=(P=this.DQ.get().TE)==null?void 0:P.clientPlaybackNonce;P=this.layout.jO.adClientDataEntry;Jc(this.ZQ.get(),{daiStateTrigger:{filledAdsDurationMs:a-e,contentCpn:r, adClientData:P}});var B=this.GX.get();B=LcL(B.B,e,a);B!==null&&(Jc(this.ZQ.get(),{daiStateTrigger:{filledAdsDurationMs:B-e,contentCpn:r,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:P}}),this.gg.get().Hf(B,a))}; g.E.release=function(){this.Vj();this.GX.get().removeListener(this);this.aH.get().removeListener(this)}; g.E.startRendering=function(){this.Op();this.callback.FN(this.slot,this.layout)}; g.E.u5=function(e,a){this.Tq(a);this.driftRecoveryMs!==null&&(DU(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Yg3(this)-sc(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.aH.get().W.Qa()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.WO(this.slot,this.layout,a)}; g.E.eC=function(){return!1}; g.E.rX=function(e){var a=sc(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),r=sc(this.layout.clientMetadata,"metadata_type_layout_exit_ms");e*=1E3;if(a<=e&&e0&&Eh(this.S(),a)}; g.E.UG=function(e){this.C.delete(e.slotId);for(var a=[],r=g.Z(this.wW.values()),P=r.next();!P.done;P=r.next()){P=P.value;var B=P.trigger;B instanceof $R&&B.triggeringSlotId===e.slotId&&a.push(P)}a.length>0&&Eh(this.S(),a)}; g.E.XH=function(e){for(var a=[],r=g.Z(this.wW.values()),P=r.next();!P.done;P=r.next()){P=P.value;var B=P.trigger;B instanceof XJ&&B.slotType===e.slotType&&B.S!==e.slotId&&a.push(P)}a.length>0&&Eh(this.S(),a)}; g.E.Ux=function(e){this.B.add(e.slotId);for(var a=[],r=g.Z(this.wW.values()),P=r.next();!P.done;P=r.next())P=P.value,P.trigger instanceof G8&&e.slotId===P.trigger.triggeringSlotId&&a.push(P);a.length>0&&Eh(this.S(),a)}; g.E.jK=function(e){this.B.delete(e.slotId);this.L.add(e.slotId);for(var a=[],r=g.Z(this.wW.values()),P=r.next();!P.done;P=r.next())if(P=P.value,P.trigger instanceof EE)e.slotId===P.trigger.triggeringSlotId&&a.push(P);else if(P.trigger instanceof e9){var B=P.trigger;e.slotId===B.slotId&&this.T.has(B.triggeringLayoutId)&&a.push(P)}a.length>0&&Eh(this.S(),a)}; g.E.QJ=function(e){for(var a=[],r=g.Z(this.wW.values()),P=r.next();!P.done;P=r.next())P=P.value,P.trigger instanceof Jg&&e.slotId===P.trigger.triggeringSlotId&&a.push(P);a.length>0&&Eh(this.S(),a)}; g.E.DY=function(e){for(var a=[],r=g.Z(this.wW.values()),P=r.next();!P.done;P=r.next())P=P.value,P.trigger instanceof D8&&e.slotId===P.trigger.triggeringSlotId&&a.push(P);a.length>0&&Eh(this.S(),a)}; g.E.H7=function(e,a){this.Z.add(a.layoutId)}; g.E.Ka=function(e,a){this.Z.delete(a.layoutId)}; g.E.FN=function(e,a){this.T.add(a.layoutId);for(var r=[],P=g.Z(this.wW.values()),B=P.next();!B.done;B=P.next())if(B=B.value,B.trigger instanceof aE)a.layoutId===B.trigger.triggeringLayoutId&&r.push(B);else if(B.trigger instanceof T8){var h=B.trigger;e.slotType===h.slotType&&a.layoutType===h.layoutType&&a.layoutId!==h.S&&r.push(B)}else B.trigger instanceof e9&&(h=B.trigger,a.layoutId===h.triggeringLayoutId&&this.L.has(h.slotId)&&r.push(B));r.length>0&&Eh(this.S(),r)}; g.E.WO=function(e,a,r){this.T.delete(a.layoutId);e=[];for(var P=g.Z(this.wW.values()),B=P.next();!B.done;B=P.next())if(B=B.value,B.trigger instanceof Pw&&a.layoutId===B.trigger.triggeringLayoutId&&e.push(B),B.trigger instanceof r7){var h=B.trigger;a.layoutId===h.triggeringLayoutId&&h.S.includes(r)&&e.push(B)}e.length>0&&Eh(this.S(),e)}; g.E.PV=function(){}; g.E.hj=function(){this.L.clear()}; g.E.sj=function(){};g.b(Xl,g.N);Xl.prototype.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(a instanceof uy))throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CloseRequestedTriggerAdapter");this.wW.set(a.triggerId,new l8(e,a,r,P))}; Xl.prototype.MO=function(e){this.wW.delete(e.triggerId)};g.b(AO,g.N);AO.prototype.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(a instanceof j0||a instanceof Ag))throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.wW.set(a.triggerId,new l8(e,a,r,P))}; AO.prototype.MO=function(e){this.wW.delete(e.triggerId)}; AO.prototype.hj=function(e){for(var a=[],r=a.push,P=r.apply,B=[],h=g.Z(this.wW.values()),c=h.next();!c.done;c=h.next())c=c.value,c.trigger instanceof j0&&c.trigger.vT===e&&B.push(c);P.call(r,a,g.UO(B));r=a.push;P=r.apply;B=[];h=g.Z(this.wW.values());for(c=h.next();!c.done;c=h.next())c=c.value,c.trigger instanceof Ag&&c.trigger.S!==e&&B.push(c);P.call(r,a,g.UO(B));a.length&&Eh(this.S(),a)}; AO.prototype.sj=function(e){for(var a=[],r=a.push,P=r.apply,B=[],h=g.Z(this.wW.values()),c=h.next();!c.done;c=h.next()){c=c.value;var y=c.trigger;y instanceof Ag&&y.S===e&&B.push(c)}P.call(r,a,g.UO(B));a.length&&Eh(this.S(),a)};g.b(Ui,g.N);g.E=Ui.prototype;g.E.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");var B="adtriggercuerange:"+a.triggerId;if(a instanceof nj)M3q(this,e,a,r,P,B,a.S.start,a.S.end,a.vT,a.visible);else if(a instanceof K7)M3q(this,e,a,r,P,B,0x7ffffffffffff,0x8000000000000,a.vT,a.visible);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CueRangeTriggerAdapter");}; g.E.MO=function(e){var a=this.wW.get(e.triggerId);a&&this.Lb.get().removeCueRange(a.cueRangeId);this.wW.delete(e.triggerId)}; g.E.onCueRangeEnter=function(e){var a=j$q(this,e);if(a&&(a=this.wW.get(a)))if(g.S(PG(this.aH.get()),32))this.S.add(a.cueRangeId);else{var r=a==null?void 0:a.X5.trigger;if(r instanceof nj||r instanceof K7){if(yN(this.context.bW.get())){var P=a.X5.slot,B=a.X5.layout,h={};this.context.qA.gW("cre",(h.ca=a.X5.category,h.tt=r.triggerType,h.st=P.slotType,h.lt=B==null?void 0:B.layoutType,h.cid=e,h))}Eh(this.T(),[a.X5])}}}; g.E.onCueRangeExit=function(e){(e=j$q(this,e))&&(e=this.wW.get(e))&&this.S.delete(e.cueRangeId)}; g.E.dL=function(e){if(yW(e,16)<0){e=g.Z(this.S);for(var a=e.next();!a.done;a=e.next())this.onCueRangeEnter(a.value,!0);this.S.clear()}}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.FN=function(){}; g.E.WO=function(){}; g.E.PV=function(){}; g.E.f5=function(){}; g.E.onFullscreenToggled=function(){}; g.E.C_=function(){}; g.E.tj=function(){}; g.E.MA=function(){}; g.E.onVolumeChange=function(){}; g.E.mV=function(){}; g.E.Aj=function(){};g.b(CA,g.N);g.E=CA.prototype; g.E.Gy=function(e,a,r,P){if(this.T.has(a.triggerId)||this.B.has(a.triggerId))throw new F("Tried to re-register the trigger.");e=new l8(e,a,r,P);if(e.trigger instanceof oE)this.T.set(e.trigger.triggerId,e);else if(e.trigger instanceof Bw)this.B.set(e.trigger.triggerId,e);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+e.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.T.has(e.trigger.triggerId)&&e.slot.slotId===this.S&&Eh(this.L(),[e])}; g.E.MO=function(e){this.T.delete(e.triggerId);this.B.delete(e.triggerId)}; g.E.yc=function(e){e=e.slotId;if(this.S!==e){var a=[];this.S!=null&&a.push.apply(a,g.UO(ui3(this.B,this.S)));e!=null&&a.push.apply(a,g.UO(ui3(this.T,e)));this.S=e;a.length&&Eh(this.L(),a)}}; g.E.PE=function(){}; g.E.Ad=function(){};g.b(GC,g.N);g.E=GC.prototype;g.E.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(a instanceof fj))throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.wW.set(a.triggerId,new l8(e,a,r,P))}; g.E.MO=function(e){this.wW.delete(e.triggerId)}; g.E.FN=function(){}; g.E.WO=function(){}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){};g.b(Ei,g.N);g.E=Ei.prototype;g.E.PV=function(e,a){for(var r=[],P=g.Z(this.wW.values()),B=P.next();!B.done;B=P.next()){B=B.value;var h=B.trigger;h.opportunityType===e&&(h.associatedSlotId&&h.associatedSlotId!==a||r.push(B))}r.length&&Eh(this.S(),r)}; g.E.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(a instanceof cpL))throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OpportunityEventTriggerAdapter");this.wW.set(a.triggerId,new l8(e,a,r,P))}; g.E.MO=function(e){this.wW.delete(e.triggerId)}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.FN=function(){}; g.E.WO=function(){};g.b(bD,g.N);g.E=bD.prototype;g.E.Gy=function(e,a,r,P){e=new l8(e,a,r,P);if(a instanceof hg||a instanceof yR||a instanceof cw||a instanceof UE||a instanceof nBT){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");this.wW.set(a.triggerId,e)}else throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in PrefetchTriggerAdapter");}; g.E.MO=function(e){this.wW.delete(e.triggerId)}; g.E.YK=function(e){var a=e.slotFulfillmentTriggers.find(function(r){return r instanceof hg}); a&&(tO(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",a.breakDurationMs,new Set([e.slotId]),!0),$D(this.ZQ.get(),"ads_css","sid."+e.slotId+";bd."+a.breakDurationMs))}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.FN=function(){}; g.E.WO=function(){}; g.E.PV=function(){}; g.E.eC=function(e){var a=this;if(!this.S)return o9("Unexpected cue break before fetch instructions are available"),!1;this.T&&this.T.stop();this.C&&g.sC(this.C);var r=r14(this,e);if(!r){var P=eO4(this),B=this.D!==void 0&&Date.now()<=this.D+1E4;$D(this.ZQ.get(),"ads_ncfs","cid."+e.identifier+";cd."+e.Ug.toFixed(3)+";ccs."+B+";cfa."+this.L+";bdc."+P.length+";"+P.slice(0,6).map(function(h){return";bd."+h}).join("")); return B?(Mk(this.sG,this.S,e),!0):!1}(P=sc(r.slot.clientMetadata,"metadata_type_triggering_cue_point"))?P.current=e:o9("Expected triggering cue point ref to be available",r.slot);(new g.vP(function(){var h=r.trigger,c=r.slot;tO(a,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",h.breakDurationMs,new Set,!0);tO(a,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",h.breakDurationMs,new Set,!1);for(var y=0,T=g.Z(a.wW.values()),X=T.next();!X.done;X=T.next()){X=X.value;var f=X.trigger; X.slot.slotId===c.slotId&&(a.wW.delete(f.triggerId),y++)}$D(a.ZQ.get(),"ads_csf","sid."+c.slotId+";bd."+h.breakDurationMs+";dt."+y)},10)).start(); return!0}; g.E.rX=function(){}; g.E.hj=function(e){var a=this;this.L=!1;this.D=Date.now();if(this.S&&this.S.contentCpn!==e)o9("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.S.contentCpn}),gn(this);else{this.B=new g.vP(function(){if(a.L)delete a.B;else{var P=a.aH.get().getGetAdBreakContext(),B;if(Number(P==null?void 0:(B=P.livePlaybackPosition)==null?void 0:B.utcTimeMillis)>0)delete a.B,ahN(a);else{var h;(h=a.B)==null||h.start()}}},200); var r;(r=this.B)==null||r.start()}}; g.E.sj=function(e){this.S&&this.S.contentCpn!==e&&o9("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.S.contentCpn},!0);gn(this)}; g.E.H5=function(e){var a=this;if(this.S)o9("Unexpected multiple fetch instructions for the current content");else{this.S=e;e=Bm3(e);this.T=new g.vP(function(){ahN(a)},e?e:6E5); this.T.start();this.C=new g.vP(function(){a.S&&(a.T&&(a.T.stop(),a.T.start()),KNL(a,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Po4(this.S)); e=this.aH.get().getCurrentTimeSec(1,!1);for(var r=g.Z(this.GX.get().Ft),P=r.next();!P.done;P=r.next())P=P.value,$D(this.ZQ.get(),"nocache","ct."+Date.now()+";cmt."+e+";d."+P.Ug.toFixed(3)+";tw."+(P.startSecs-e)+";cid."+P.identifier+";")}}; g.E.RH=function(){g.N.prototype.RH.call(this);gn(this)};g.b(Z3,g.N);g.E=Z3.prototype;g.E.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(a instanceof Ww))throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.wW.set(a.triggerId,new l8(e,a,r,P));e=this.S.has(a.triggeringLayoutId)?this.S.get(a.triggeringLayoutId):new Set;e.add(a);this.S.set(a.triggeringLayoutId,e)}; g.E.MO=function(e){this.wW.delete(e.triggerId);if(!(e instanceof Ww))throw new F("Incorrect TriggerType: Tried to unregister trigger of type "+e.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var a=this.T.get(e.triggerId);a&&(a.dispose(),this.T.delete(e.triggerId));if(a=this.S.get(e.triggeringLayoutId))a.delete(e),a.size===0&&this.S.delete(e.triggeringLayoutId)}; g.E.YK=function(){}; g.E.UG=function(){}; g.E.XH=function(){}; g.E.Ux=function(){}; g.E.jK=function(){}; g.E.QJ=function(){}; g.E.DY=function(){}; g.E.H7=function(){}; g.E.Ka=function(){}; g.E.PV=function(){}; g.E.FN=function(e,a){var r=this;if(this.S.has(a.layoutId)){e=this.S.get(a.layoutId);e=g.Z(e);var P=e.next();for(a={};!P.done;a={UO:void 0},P=e.next())a.UO=P.value,P=new g.vP(function(B){return function(){var h=r.wW.get(B.UO.triggerId);Eh(r.B(),[h])}}(a),a.UO.durationMs),P.start(),this.T.set(a.UO.triggerId,P)}}; g.E.WO=function(){};g.b(Oi,g.N);Oi.prototype.Gy=function(e,a,r,P){if(this.wW.has(a.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(a instanceof Fg))throw new F("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in VideoTransitionTriggerAdapter.");this.wW.set(a.triggerId,new l8(e,a,r,P))}; Oi.prototype.MO=function(e){this.wW.delete(e.triggerId)};D3.prototype.F$=function(e){return e.kind==="AD_PLACEMENT_KIND_START"};g.b(Qb,g.N);g.E=Qb.prototype;g.E.logEvent=function(e){this.AD(e)}; g.E.nh=function(e,a,r){this.AD(e,void 0,void 0,void 0,a,void 0,void 0,void 0,a.adSlotLoggingData,void 0,void 0,r)}; g.E.rE=function(e,a,r,P){this.AD(e,void 0,void 0,void 0,a,r?r:void 0,void 0,void 0,a.adSlotLoggingData,r?r.adLayoutLoggingData:void 0,void 0,P);a=V7().resolve(O3(BN))==null?void 0:hE();e=a==null?void 0:a.adsSeenHotConfig;a=a==null?void 0:a.adsHotConfig;(e==null?0:e.logOnAdsSeen)&&(a==null?0:a.webEnablePremiumAdsSeenLogging)&&tSN(this,r?r:void 0,P)}; g.E.CZ=function(e,a,r,P){pm(this.bW.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"trigger:",r,"slot:",a,"layout:",P);u0(this.S.get())&&this.AD(e,void 0,void 0,void 0,a,P?P:void 0,void 0,r,a.adSlotLoggingData,P?P.adLayoutLoggingData:void 0)}; g.E.nH=function(e,a,r,P,B){this.AD(e,a,r,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B)}; g.E.RZ=function(e,a,r,P){this.AD("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,r,P,void 0,void 0,r.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,{errorType:e,errorMessage:a})}; g.E.AD=function(e,a,r,P,B,h,c,y,T,X,f,A){var U=this;A=A===void 0?0:A;pm(this.bW.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",B,"layout:",h,"ping:",c,"Opportunity:",{opportunityType:a,associatedSlotId:r,aq$:P,lqf:y,adSlotLoggingData:T,adLayoutLoggingData:X});try{var C=function(){if(!U.bW.get().W.G().X("html5_disable_client_tmp_logs")&&e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||o9("Empty PACF event type",B,h);var G=u0(U.S.get()),O={eventType:e,eventOrder:++U.eventCount},d={}; B&&(d.slotData=j3(G,B));h&&(d.layoutData=ihT(G,h));c&&(d.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:c.S.serializedAdPingMetadata,pingIndex:c.index});y&&(d.triggerData=MJ(y.trigger,y.category));a&&(d.opportunityData=zxj(G,a,r,P));G={organicPlaybackContext:{contentCpn:vi(U.DQ.get(),1).clientPlaybackNonce}};G.organicPlaybackContext.isLivePlayback=vi(U.DQ.get(),1).QX;var W;G.organicPlaybackContext.isMdxPlayback=(W=vi(U.DQ.get(),1))==null?void 0:W.isMdxPlayback; var V;if((V=vi(U.DQ.get(),1))==null?0:V.daiEnabled)G.organicPlaybackContext.isDaiContent=!0;var L;if(W=(L=vi(U.DQ.get(),2))==null?void 0:L.clientPlaybackNonce)G.adVideoPlaybackContext={adVideoCpn:W};G&&(d.externalContext=G);O.adClientData=d;T&&(O.serializedSlotAdServingData=T.serializedSlotAdServingDataEntry);X&&(O.serializedAdServingData=X.serializedAdServingDataEntry);f&&(O.errorInfo=f);g.BU("adsClientStateChange",{adsClientEvent:O})}}; A&&A>0?g.S$(g.Fn(),function(){return C()},A):C()}catch(G){pm(this.bW.get(),"html5_log_pacf_logging_errors")&&g.S$(g.Fn(),function(){o9(G instanceof Error?G:String(G),B,h,{pacf_message:"exception during pacf logging"})})}};var lXb=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.b(WZ,Qb);g.E=WZ.prototype; g.E.nh=function(e,a,r){Qb.prototype.nh.call(this,e,a,r);yN(this.bW.get())&&(r={},this.context.qA.gW("pacf",(r.et=e,r.st=a.slotType,r.si=a.slotId,r)))}; g.E.rE=function(e,a,r,P){var B=lXb.has(e);Qb.prototype.rE.call(this,e,a,r,P);yN(this.bW.get(),B)&&(P={},this.context.qA.gW("pacf",(P.et=e,P.st=a.slotType,P.si=a.slotId,P.lt=r==null?void 0:r.layoutType,P.li=r==null?void 0:r.layoutId,P.p_ac=r==null?void 0:r.layoutId,P)))}; g.E.nH=function(e,a,r,P,B){Qb.prototype.nH.call(this,e,a,r,P,B);yN(this.bW.get())&&(r={},this.context.qA.gW("pacf",(r.et=e,r.ot=a,r.ss=P==null?void 0:P.length,r)))}; g.E.CZ=function(e,a,r,P){Qb.prototype.CZ.call(this,e,a,r,P);if(yN(this.bW.get())){var B={};this.context.qA.gW("pacf",(B.et=e,B.tt=r.trigger.triggerType,B.tc=r.category,B.st=a.slotType,B.si=a.slotId,B.lt=P==null?void 0:P.layoutType,B.li=P==null?void 0:P.layoutId,B.p_ac=P==null?void 0:P.layoutId,B))}}; g.E.RZ=function(e,a,r,P){Qb.prototype.RZ.call(this,e,a,r,P);if(yN(this.bW.get(),!0)){var B={};this.context.qA.gW("perror",(B.ert=e,B.erm=a,B.st=r.slotType,B.si=r.slotId,B.lt=P==null?void 0:P.layoutType,B.li=P==null?void 0:P.layoutId,B.p_ac=P==null?void 0:P.layoutId,B))}}; g.E.AD=function(e,a,r,P,B,h,c,y,T,X,f){var A=this.bW.get();g.Uh(A.W.G())?(A=this.bW.get(),A=g.eS(A.W.G().experiments,"H5_async_logging_delay_ms")):A=void 0;Qb.prototype.AD.call(this,e,a,r,P,B,h,c,y,T,X,f,A)};lD.prototype.clear=function(){this.S.clear()};LA.prototype.state=function(){return this.S==="fulfilled"?{state:"fulfilled",value:this.result}:this.S==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; LA.prototype.L=function(e){wn(e)||Y_(e)?x_(pA(e),this.L.bind(this),this.reject.bind(this)):(this.S="fulfilled",this.result=e,N5(this))}; LA.prototype.reject=function(e){this.S="rejected";this.error=e;N5(this)}; var Y_=ob(function(e){return H5N(e)?e instanceof LA:!1});Object.freeze({jRW:function(e){var a=SH(e);return x_(Rj(a,function(r){return a[r].S==="rejected"}),function(r){return Number.isNaN(r)?a.map(function(P){return P.state().value}):a[r]})}, zBf:function(e){var a=SH(e);return x_(Rj(a),function(){return a.map(function(r){return r.state()})})}, fqo:function(e){var a=SH(e);return x_(Rj(a,function(r){return a[r].S==="fulfilled"}),function(r){return Number.isNaN(r)?iD(new AggregateError(a.map(function(P){return P.state().reason}))):a[r].state().value})}, cQM:function(e){var a=SH(e);return x_(Rj(a,function(){return!0}),function(r){return a[r]})}});var si=window.fIf||"en-GB";jH.prototype.Fd=function(e){this.client=e}; jH.prototype.S=function(){this.clear();this.csn=g.bs()}; jH.prototype.clear=function(){this.B.clear();this.T.clear();this.L.clear();this.csn=null};KA.prototype.Fd=function(e){g.s7(uD().Fd).bind(uD())(e)}; KA.prototype.clear=function(){g.s7(uD().clear).bind(uD())()};g.E=ej.prototype;g.E.Fd=function(e){this.client=e}; g.E.jz=function(e,a){var r=this;a=a===void 0?{}:a;g.s7(function(){var P,B,h,c=((P=g.H(e==null?void 0:e.commandMetadata,g.d0))==null?void 0:P.rootVe)||((B=g.H(e==null?void 0:e.commandMetadata,mvG))==null?void 0:(h=B.screenVisualElement)==null?void 0:h.uiType);if(c){P=g.H(e==null?void 0:e.commandMetadata,A5N);if(P==null?0:P.parentTrackingParams){var y=g.C4(P.parentTrackingParams);if(P.parentCsn)var T=P.parentCsn}else a.clickedVisualElement?y=a.clickedVisualElement:e.clickTrackingParams&&(y=g.C4(e.clickTrackingParams)); a:{P=g.H(e,g.g3);B=g.H(e,c5B);if(P){if(B=J1I(P,"VIDEO")){P={token:B,videoId:P.videoId};break a}}else if(B&&(P=J1I(B,"PLAYLIST"))){P={token:P,playlistId:B.playlistId};break a}P=void 0}a=Object.assign({},{cttAuthInfo:P,parentCsn:T},a);if(g.CK("expectation_logging")){var X;a.loggingExpectations=((X=g.H(e==null?void 0:e.commandMetadata,mvG))==null?void 0:X.loggingExpectations)||void 0}rp(r,c,y,a)}else g.VJ(new g.I6("Error: Trying to create a new screen without a rootVeType",e))})()}; g.E.clickCommand=function(e,a,r){e=e.clickTrackingParams;r=r===void 0?0:r;e?(r=g.bs(r===void 0?0:r))?(Ru(this.client,r,g.C4(e),a),a=!0):a=!1:a=!1;return a}; g.E.stateChanged=function(e,a,r){this.visualElementStateChanged(g.C4(e),a,r===void 0?0:r)}; g.E.visualElementStateChanged=function(e,a,r){r=r===void 0?0:r;r===0&&this.T.has(r)?this.Y.push([e,a]):lh4(this,e,a,r)};c2.prototype.fetch=function(e,a,r){var P=this,B=w_y(e,a,r);return new Promise(function(h,c){function y(){if(r==null?0:r.Ic)try{var X=P.handleResponse(e,B.status,B.response,r);h(X)}catch(f){c(f)}else h(P.handleResponse(e,B.status,B.response,r))} B.onerror=y;B.onload=y;var T;B.send((T=a.body)!=null?T:null)})}; c2.prototype.handleResponse=function(e,a,r,P){r=r.replace(")]}'","");try{var B=JSON.parse(r)}catch(h){g.VJ(new g.I6("JSON parsing failed after XHR fetch",e,a,r));if((P==null?0:P.Ic)&&r)throw new g.Id(1,"JSON parsing failed after XHR fetch");B={}}a!==200&&(g.VJ(new g.I6("XHR API fetch failed",e,a,r)),B=Object.assign({},B,{errorMetadata:{status:a}}));return B};oX.getInstance=function(){var e=g.aZ("ytglobal.storage_");e||(e=new oX,g.KL("ytglobal.storage_",e));return e}; oX.prototype.estimate=function(){var e,a,r;return g.Y(function(P){e=navigator;return((a=e.storage)==null?0:a.estimate)?P.return(e.storage.estimate()):((r=e.webkitTemporaryStorage)==null?0:r.queryUsageAndQuota)?P.return(p_4()):P.return()})}; g.KL("ytglobal.storageClass_",oX);r1.prototype.cI=function(e){this.handleError(e)}; r1.prototype.logEvent=function(e,a){switch(e){case "IDB_DATA_CORRUPTED":g.CK("idb_data_corrupted_killswitch")||this.S("idbDataCorrupted",a);break;case "IDB_UNEXPECTEDLY_CLOSED":this.S("idbUnexpectedlyClosed",a);break;case "IS_SUPPORTED_COMPLETED":g.CK("idb_is_supported_completed_killswitch")||this.S("idbIsSupportedCompleted",a);break;case "QUOTA_EXCEEDED":zOO(this,a);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=.1&&this.S("idbTransactionEnded",a);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":e= Object.assign({},a,{hasWindowUnloaded:this.T}),this.S("idbTransactionAborted",e)}};var j8={},Hjz=g.MU("yt-player-local-media",{Gp:(j8.index={W4:2},j8.media={W4:2},j8.captions={W4:5},j8),shared:!1,upgrade:function(e,a){a(2)&&(g.d1(e,"index"),g.d1(e,"media"));a(5)&&g.d1(e,"captions");a(6)&&(J7(e,"metadata"),J7(e,"playerdata"))}, version:5});var Lv8={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},uW;a:{var Kd=g.zX();Kd=Kd.toLowerCase();if(g.lO(Kd,"android")){var Y5B=Kd.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Y5B){var wQb=parseFloat(Y5B[1]);if(wQb<100){uW=wQb;break a}}var pQG=Kd.match("("+Object.keys(Lv8).join("|")+")");uW=pQG?Lv8[pQG[0]]:0}else uW=void 0}var rd=uW,am=rd>=0;var m4I=window;var NmL=YH(function(){var e,a;return(a=(e=window).matchMedia)==null?void 0:a.call(e,"(prefers-reduced-motion: reduce)").matches});var yz;g.nt=new CC;yz=0;var GA=ShL()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.qU?!0:!1;var ft={IH:function(e,a){e[n[13]](0,a)}, Y1:function(e,a){var r=e[0];e[0]=e[a%e[n[10]]];e[a%e[n[10]]]=r}, G1:function(e){e[n[9]]()}};var i7T={h$r:"adunit",TDQ:"detailpage",woP:"editpage",XoQ:"embedded",iqf:"leanback",TMH:"previewpage",ggQ:"profilepage",qx:"unplugged",pr1:"playlistoverview",HYW:"sponsorshipsoffer",qjM:"shortspage",SQd:"handlesclaiming",lPH:"immersivelivepage",Smd:"creatormusic",Zhf:"immersivelivepreviewpage",Uqz:"admintoolyurt",yBm:"shortsaudiopivot",NTf:"consumption"};var mTT=2592E3;var eJ,ig5,pi;eJ={};g.to=(eJ.STOP_EVENT_PROPAGATION="html5-stop-propagation",eJ.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",eJ.IV_DRAWER_OPEN="ytp-iv-drawer-open",eJ.MAIN_VIDEO="html5-main-video",eJ.VIDEO_CONTAINER="html5-video-container",eJ.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",eJ.HOUSE_BRAND="house-brand",eJ);ig5={};pi=(ig5.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",ig5.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",ig5);var BI3={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var nIL={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},yDL={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"},hMj={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var oYy={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.O$.prototype.getLanguageInfo=function(){return this.yX}; g.O$.prototype.getXtags=function(){if(!this.xtags){var e=this.id.split(";");e.length>1&&(this.xtags=e[1])}return this.xtags}; g.O$.prototype.toString=function(){return this.yX.name}; g.O$.prototype.getLanguageInfo=g.O$.prototype.getLanguageInfo;k$.prototype.equals=function(e){return this.T===e.T&&this.S===e.S&&this.B===e.B&&this.reason===e.reason&&(!Jo||this.NF===e.NF)}; k$.prototype.isLocked=function(){return this.B&&!!this.T&&this.T===this.S}; k$.prototype.compose=function(e){if(e.B&&D9(e))return A3;if(e.B||D9(this))return e;if(this.B||D9(e))return this;var a=this.T&&e.T?Math.max(this.T,e.T):this.T||e.T,r=this.S&&e.S?Math.min(this.S,e.S):this.S||e.S;a=Math.min(a,r);var P=0;Jo&&(P=this.NF!==0&&e.NF!==0?Math.min(this.NF,e.NF):this.NF===0?e.NF:this.NF);return Jo&&a===this.T&&r===this.S&&P===this.NF||!Jo&&a===this.T&&r===this.S?this:Jo?new k$(a,r,!1,r===this.S&&P===this.NF?this.reason:e.reason,P):new k$(a,r,!1,r===this.S?this.reason:e.reason)}; k$.prototype.L=function(e){return!e.video||Jo&&this.NF!==0&&this.NF=0}; g.E.WS=function(){var e=this.segments[this.segments.length-1];return e?e.endTime:NaN}; g.E.N5=function(){return this.segments[0].startTime}; g.E.An=function(){return this.segments.length}; g.E.wM=function(){return 0}; g.E.I4=function(e){return(e=this.lO(e))?e.lW:-1}; g.E.oo=function(e){return(e=this.Ds(e))?e.sourceURL:""}; g.E.getStartTime=function(e){return(e=this.Ds(e))?e.startTime:0}; g.E.JJ=function(e){return this.getStartTime(e)+this.getDuration(e)}; g.E.pF=eL(1);g.E.isLoaded=function(){return this.segments.length>0}; g.E.Ds=function(e){if(this.S&&this.S.lW===e)return this.S;e=g.HB(this.segments,new jj(e,0,0,0,""),function(a,r){return a.lW-r.lW}); return this.S=e>=0?this.segments[e]:null}; g.E.lO=function(e){if(this.S&&this.S.startTime<=e&&e=0?this.segments[e]:this.segments[Math.max(0,-e-2)]}; g.E.append=function(e){if(e.length)if(e=g.WB(e),this.segments.length){var a=this.segments.length?g.GV(this.segments).endTime:0,r=e[0].lW-this.q5();r>1&&kJj(this.segments);for(r=r>0?0:-r+1;re.lW&&this.index.mQ()<=e.lW+1}; g.E.update=function(e,a,r){this.index.append(e);NI3(this.index,r);e=this.index;e.T=a;e.B="update"}; g.E.QP=function(){return this.Wu()?!0:sk.prototype.QP.call(this)}; g.E.yI=function(e,a){var r=this.index.oo(e),P=this.index.getStartTime(e),B=this.index.getDuration(e),h;a?B=h=0:h=this.info.NF>0?this.info.NF*B:1E3;return new h2([new u_(3,this,void 0,"liveCreateRequestInfoForSegment",e,P,B,0,h,!a)],r)}; g.E.M4=function(){return this.Wu()?0:this.initRange.length}; g.E.Yn=function(){return!1};fz.prototype.update=function(e){var a=void 0;this.T&&(a=this.T);var r=new fz,P=Array.from(e.getElementsByTagName("S"));if(P.length){var B=+Ta(e,"timescale")||1,h=(+P[0].getAttribute("t")||0)/B,c=+Ta(e,"startNumber")||0;r.L=h;var y=a?a.startSecs+a.Ug:0,T=Date.parse(L2y(Ta(e,"yt:segmentIngestTime")))/1E3;r.C=e.parentElement.tagName==="SegmentTemplate";r.C&&(r.D=Ta(e,"media"));e=a?c-a.lW:1;r.Z=e>0?0:-e+1;e=g.Z(P);for(P=e.next();!P.done;P=e.next()){P=P.value;for(var X=+P.getAttribute("d")/B,f=(+P.getAttribute("yt:sid")|| 0)/B,A=+P.getAttribute("r")||0,U=0;U<=A;U++)if(a&&c<=a.lW)c++;else{var C=new W2O(c,y,X,T+f,h);r.S.push(C);var G=P;var O=B,d=C.startSecs;C=G.getAttribute("yt:cuepointTimeOffset");var W=G.getAttribute("yt:cuepointDuration");if(C&&W){C=Number(C);d=-C/O+d;O=Number(W)/O;W=G.getAttribute("yt:cuepointContext")||null;var V=G.getAttribute("yt:cuepointIdentifier")||"";G=G.getAttribute("yt:cuepointEvent")||"";G=new oO(d,O,W,V,NFa[G]||"unknown",C)}else G=null;G&&r.B.push(G);c++;y+=X;h+=X;T+=X+f}}r.S.length&& (r.T=g.GV(r.S))}this.Z=r.Z;this.T=r.T||this.T;g.lN(this.S,r.S);g.lN(this.B,r.B);this.C=r.C;this.D=r.D;this.L===-1&&(this.L=r.getStreamTimeOffset())}; fz.prototype.getStreamTimeOffset=function(){return this.L===-1?0:this.L};g.b(Ux,g.uf);g.E=Ux.prototype;g.E.cM=function(){return this.jT}; g.E.du=function(e,a){e=Cz(this,e);return e>=0&&(a||!this.segments[e].pending)}; g.E.mQ=function(){return this.eQ?this.segments.length?this.lO(this.N5()).lW:-1:g.uf.prototype.mQ.call(this)}; g.E.N5=function(){if(this.zX)return 0;if(!this.eQ)return g.uf.prototype.N5.call(this);if(!this.segments.length)return 0;var e=Math.max(g.GV(this.segments).endTime-this.g_,0);return this.lB>0&&this.lO(e).lW0)return this.Uj/1E3;if(!this.segments.length)return g.uf.prototype.WS.call(this);var e=this.q5();if(!this.eQ||e<=this.segments[this.segments.length-1].lW)e=this.segments[this.segments.length-1];else{var a=this.segments[this.segments.length-1];e=new jj(e,Math.max(0,a.startTime-(a.lW-e)*this.jT),this.jT,0,"sq/"+e,void 0,void 0,!0)}return this.zX?Math.min(this.g_,e.endTime):e.endTime}; g.E.An=function(){return this.eQ?this.segments.length?this.q5()-this.mQ()+1:0:g.uf.prototype.An.call(this)}; g.E.q5=function(){var e=Math.min(this.E2,Math.max(g.uf.prototype.q5.call(this),this.r0)),a=this.g_*1E3;a=this.Uj>0&&this.Uj0&&this.r0>0&&!a&&(a=this.lO(this.g_))&&(e=Math.min(a.lW-1,e));return e}; g.E.W_=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.E.Sw=function(e){var a=Cz(this,e.lW);if(a>=0)this.segments[a]=e;else if(this.segments.splice(-(a+1),0,e),this.zW&&e.lW%(300/this.jT)===0){var r=this.segments[0].lW,P=Math.floor(this.zW/this.jT);e=e.lW-P;a=-(a+1)-P;a>0&&e>r&&(this.segments=this.segments.slice(a))}}; g.E.aC=function(){return this.r0}; g.E.HE=function(e){return A2?!this.T&&e>=0&&this.q5()<=e:g.uf.prototype.HE.call(this,e)}; g.E.lO=function(e){if(!this.eQ)return g.uf.prototype.lO.call(this,e);if(!this.segments.length)return null;var a=this.segments[this.segments.length-1];if(e=a.endTime)a=a.lW+Math.floor((e-a.endTime)/this.jT+1);else{a=qM(this.segments,function(P){return e=P.endTime?1:0}); if(a>=0)return this.segments[a];var r=-(a+1);a=this.segments[r-1];r=this.segments[r];a=Math.floor((e-a.endTime)/((r.startTime-a.endTime)/(r.lW-a.lW-1))+1)+a.lW}return this.Ds(a)}; g.E.Ds=function(e){if(!this.eQ)return g.uf.prototype.Ds.call(this,e);if(!this.segments.length)return null;var a=Cz(this,e);if(a>=0)return this.segments[a];var r=-(a+1);a=this.jT;if(r===0)var P=Math.max(0,this.segments[0].startTime-(this.segments[0].lW-e)*a);else r===this.segments.length?(P=this.segments[this.segments.length-1],P=P.endTime+(e-P.lW-1)*a):(P=this.segments[r-1],a=this.segments[r],a=(a.startTime-P.endTime)/(a.lW-P.lW-1),P=P.endTime+(e-P.lW-1)*a);return new jj(e,P,a,0,"sq/"+e,void 0,void 0, !0)}; var A2=!1;g.b(Ga,yH);g.E=Ga.prototype;g.E.Ov=function(){return!0}; g.E.QP=function(){return!0}; g.E.Gg=function(e){return this.P_()&&e.B&&!e.L||!e.S.index.HE(e.lW)}; g.E.Z1=function(){}; g.E.Uc=function(e,a){return typeof e!=="number"||isFinite(e)?yH.prototype.Uc.call(this,e,a===void 0?!1:a):new h2([new u_(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.qc,void 0,this.qc*this.info.NF)],"")}; g.E.yI=function(e,a){var r=r===void 0?!1:r;if(this.index.du(e))return yH.prototype.yI.call(this,e,a);var P=this.index.getStartTime(e),B=Math.round(this.qc*this.info.NF),h=this.qc;a&&(h=B=0);return new h2([new u_(r?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",e,P,h,void 0,B,!a)],e>=0?"sq/"+e:"")};g.b(Ex,sk);g.E=Ex.prototype;g.E.fW=function(){return!1}; g.E.P_=function(){return!1}; g.E.Ov=function(){return!1}; g.E.Z1=function(){return new h2([new u_(1,this,void 0,"otfInit")],this.C)}; g.E.Yq=function(){return null}; g.E.tX=function(e){this.Gg(e);return Icz(this,rj(e),!1)}; g.E.Uc=function(e,a){a=a===void 0?!1:a;e=this.index.I4(e);a&&(e=Math.min(this.index.q5(),e+1));return Icz(this,e,!0)}; g.E.l2=function(e){e.info.type===1&&(this.S||(this.S=n3(e.T)),e.S&&e.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&H_L(this,e.S))}; g.E.Gg=function(e){return e.B===0?!0:this.index.q5()>e.lW&&this.index.mQ()<=e.lW+1}; g.E.M4=function(){return 0}; g.E.Yn=function(){return!1};g.bl.prototype.info=function(){}; g.bl.prototype.debug=function(){}; g.bl.prototype.S=function(e){t2.apply(null,[5,this.tag,e].concat(g.UO(g.xN.apply(1,arguments))))}; var R9L=new Map,mW3=new Map,Sd4=new function(){var e=this;this.S=new Map;this.Ob={tdm:function(){return e.S}}};g.E=g.VH.prototype;g.E.du=function(e){return e<=this.q5()}; g.E.wM=function(e){return this.offsets[e]}; g.E.getStartTime=function(e){return this.startTicks[e]/this.S}; g.E.JJ=function(e){return this.getStartTime(e)+this.getDuration(e)}; g.E.pF=eL(0);g.E.BZ=function(){return NaN}; g.E.getDuration=function(e){e=this.OW(e);return e>=0?e/this.S:-1}; g.E.OW=function(e){return e+1=0}; g.E.WS=function(){return this.T?this.startTicks[this.count]/this.S:NaN}; g.E.N5=function(){return 0}; g.E.An=function(){return this.count}; g.E.oo=function(){return""}; g.E.I4=function(e){e=g.HB(this.startTicks.subarray(0,this.count),e*this.S);return e>=0?e:Math.max(0,-e-2)}; g.E.isLoaded=function(){return this.q5()>=0}; g.E.Z3=function(e,a){if(e>=this.q5())return 0;var r=0;for(a=this.getStartTime(e)+a;ethis.getStartTime(e);e++)r=Math.max(r,PBj(this,e)/this.getDuration(e));return r}; g.E.resize=function(e){e+=2;var a=this.offsets;this.offsets=new Float64Array(e+1);var r=this.startTicks;this.startTicks=new Float64Array(e+1);for(e=0;e0&&e&&(r=r.range.end+1,e=Math.min(e,this.info.contentLength-r),e>0&&P.push(new u_(4,this,ME(r,e),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)));return new h2(P)}; g.E.l2=function(e){if(e.info.type===1){if(this.S)return;this.S=n3(e.T)}else if(e.info.type===2){if(this.C||this.index.q5()>=0)return;if(g.m2(this.info)){var a=this.index,r=g.Z5(e);e=e.info.range.start;var P=g.XH(r,0,1936286840);r=u0L(P);a.S=r.timescale;var B=r.bZ;a.offsets[0]=r.Ah+e+P.size;a.startTicks[0]=B;a.T=!0;e=r.Lx.length;for(P=0;P0&&e===h[0].u4)for(e=0;e=a+r)break}B.length||(e=new g.I6("b189619593",""+e,""+a,""+r),g.D6(e));return new h2(B)}; g.E.Cd=function(e){for(var a=this.aY(e.info),r=e.info.range.start+e.info.T,P=[],B=0;B=this.index.wM(r+1);)r++;return this.D4(r,a,e.B).Vm}; g.E.Gg=function(e){e.jH();return this.QP()?!0:e.range.end+1this.info.contentLength&&(a=new mH(a.start,this.info.contentLength-1)),new h2([new u_(4,e.S,a,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e.clipId)]);e.type===4&&(e=this.aY(e),e=e[e.length-1]);var r=0,P=e.range.start+e.T+e.B;e.type===3&&(e.jH(),r=e.lW,P===e.range.end+1&&(r+=1));return this.D4(r,P,a)}; g.E.tX=function(){return null}; g.E.Uc=function(e,a){a=a===void 0?!1:a;e=this.index.I4(e);a&&(e=Math.min(this.index.q5(),e+1));return this.D4(e,this.index.wM(e),0,void 0)}; g.E.fW=function(){return!0}; g.E.P_=function(){return!0}; g.E.Ov=function(){return!1}; g.E.M4=function(){return this.indexRange.length+this.initRange.length}; g.E.Yn=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var rg={},tEq=(rg.COLOR_PRIMARIES_BT709="bt709",rg.COLOR_PRIMARIES_BT2020="bt2020",rg.COLOR_PRIMARIES_UNKNOWN=null,rg.COLOR_PRIMARIES_UNSPECIFIED=null,rg),Pl={},hEj=(Pl.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Pl.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Pl.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Pl.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Pl.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Pl.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Pl);g.WO.prototype.getName=function(){return this.name}; g.WO.prototype.getId=function(){return this.id}; g.WO.prototype.getIsDefault=function(){return this.isDefault}; g.WO.prototype.toString=function(){return this.name}; g.WO.prototype.getName=g.WO.prototype.getName;g.WO.prototype.getId=g.WO.prototype.getId;g.WO.prototype.getIsDefault=g.WO.prototype.getIsDefault;var y04=/action_display_post/;var TxL,YE,wj;g.b(pz,g.aK);g.E=pz.prototype;g.E.isLoading=function(){return this.state===1}; g.E.md=function(){return this.state===3}; g.E.Ddr=function(e){var a=e.getElementsByTagName("Representation");if(e.getElementsByTagName("SegmentList").length>0||e.getElementsByTagName("SegmentTemplate").length>0){this.QX=this.T=!0;this.timeline||(this.timeline=new wHT);NE4(this.timeline,e);this.publish("refresh");for(e=0;e=0?f=FH(U):A=A+"?range="+U}T.call(y,new jj(X.lW,X.startSecs,X.Ug,X.S,A,f,X.T))}P=B}r.update(P,this.isLive,this.Uo)}xWj(this.timeline);return!0}this.duration=lc4(Ta(e,"mediaPresentationDuration")); a:{for(e=0;e0))return this.HZ()-e}}e=this.S;for(var a in e){var r=e[a].index;if(r.isLoaded()&&!K_(e[a].info.mimeType))return r.N5()}return 0}; g.E.getStreamTimeOffset=function(){return this.D}; g.E.BZ=function(e){for(var a in this.S){var r=this.S[a].index;if(r.isLoaded()){var P=r.I4(e),B=r.BZ(P);if(B)return B+e-r.getStartTime(P)}}return NaN}; var Mz=null,xcV,jf=!((xcV=navigator.mediaCapabilities)==null||!xcV.decodingInfo),DOj={commentary:1,alternate:2,dub:3,main:4};var Ju=new Set,ul=new Map;a1.prototype.clone=function(e){return new a1(this.flavor,e,this.T,this.experiments)}; a1.prototype.vA=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; a1.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 IXB={},XZ=(IXB.playready=["com.youtube.playready","com.microsoft.playready"],IXB.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],IXB),Bl={},NqT=(Bl.widevine="DRM_SYSTEM_WIDEVINE",Bl.fairplay="DRM_SYSTEM_FAIRPLAY",Bl.playready="DRM_SYSTEM_PLAYREADY",Bl),h9={},HgB=(h9.widevine=1,h9.fairplay=2,h9.playready=3,h9);var Ut;g.b(fn,g.N); fn.prototype.initialize=function(e,a){for(var r=this,P=g.Z(Object.keys(e)),B=P.next();!B.done;B=P.next()){B=g.Z(e[B.value]);for(var h=B.next();!h.done;h=B.next())if(h=h.value,h.DX)for(var c=g.Z(Object.keys(h.DX)),y=c.next();!y.done;y=c.next()){var T=y.value;y=T;T=XZ[T];!T&&this.X("html5_enable_vp9_fairplay")&&y==="fairplay"&&(T=["com.youtube.fairplay.sbdl"]);if(T){T=g.Z(T);for(var X=T.next();!X.done;X=T.next())X=X.value,this.B[X]=this.B[X]||new a1(y,X,h.DX[y],this.gP.experiments),this.S[y]=this.S[y]|| {},this.S[y][h.mimeType]=!0}}}If()&&(this.B["com.youtube.fairplay"]=new a1("fairplay","com.youtube.fairplay","",this.gP.experiments),this.X("html5_enable_vp9_fairplay")||(this.S.fairplay=this.S.fairplay||{},this.S.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.S.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.T=xOz(a,this.useCobaltWidevine,this.X("html5_enable_safari_fairplay")&&!0,this.X("html5_enable_vp9_fairplay")).filter(function(f){return!!r.B[f]})}; fn.prototype.X=function(e){return this.gP.experiments.FM(e)};var q5B={"":"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"};SDj.prototype.X=function(e){return this.experiments.FM(e)};var Nvl={RED:"red",QGW:"white"};sVI.prototype.FM=function(e){e=this.flags[e];JSON.stringify(e);return e==="true"};var MEO=Promise.resolve(),edj=window.queueMicrotask?window.queueMicrotask.bind(window):jVl;bP.prototype.canPlayType=function(e,a){e=e.canPlayType?e.canPlayType(a):!1;HU?e=e||vu8[a]:rd===2.2?e=e||Rga[a]:Nr()&&(e=e||S59[a]);return!!e}; bP.prototype.isTypeSupported=function(e){return this.N?window.cast.receiver.platform.canDisplayType(e):b7(e)}; var Rga={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},S59={"application/x-mpegURL":"maybe"},vu8={"application/x-mpegURL":"maybe"};g.b(Z0,g.aK);Z0.prototype.add=function(e,a){if(!this.items[e]&&(a.k0||a.Wa||a.hE)){var r=this.items,P=a;Object.isFrozen&&!Object.isFrozen(a)&&(P=Object.create(a),Object.freeze(P));r[e]=P;this.publish("vast_info_card_add",e)}}; Z0.prototype.remove=function(e){var a=this.get(e);delete this.items[e];return a}; Z0.prototype.get=function(e){return this.items[e]||null}; Z0.prototype.isEmpty=function(){return g.Ak(this.items)};Ot.prototype.encrypt=function(e){this.S.exports.AES128CTRCipher_encrypt(this.cipher,e.byteOffset,e.byteLength);return e}; Ot.prototype.wP=function(){return this.cipher===0}; Ot.prototype.dispose=function(){this.S.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};dV.prototype.qQ=function(e,a){a=a===void 0?1:a;this.vB+=a;this.T+=e;e/=a;for(var r=0;r0)P+="."+k1[B].toFixed(0)+"_"+r.S[B].toFixed(0);else break;r=P}r&&(e[a]=r)}this.S=new BvL;return e}; g.E.toString=function(){return""};g.E=Tvq.prototype;g.E.isActive=function(){return!1}; g.E.UE=function(){}; g.E.p6=function(){}; g.E.ZU=function(){}; g.E.HH=function(e,a){a()}; g.E.Sh=function(){return{}}; g.E.toString=function(){return""};var sbb=new Tvq,mcb=!!+HV("html5_enable_profiler"),FvN=!!+HV("html5_onesie_enable_profiler"),cl=mcb||FvN?new ccI:sbb,c8j=mcb?cl:sbb,D0=FvN?cl:sbb;GeN.prototype.emscripten_notify_memory_growth=function(){};g.E=JG.prototype;g.E.malloc=function(e){return this.exports.malloc(e)}; g.E.free=function(e){this.exports.free(e)}; g.E.realloc=function(e,a){return this.exports.realloc(e,a)}; g.E.Sq=function(e){if(e.buffer!==this.exports.memory.buffer){var a=this.malloc(e.byteLength);a=new Uint8Array(this.exports.memory.buffer,a,e.byteLength);a.set(e);return a}}; g.E.zj=function(e){if(e.buffer===this.exports.memory.buffer){var a=e.slice();this.free(e.byteOffset);return a}}; var XmL=new function(){this.B=this.L="WebAssembly"in window},Vw="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); D0.UE(JG,{Sq:function(e){return{profile:"copyj2w",vB:e===void 0?0:Math.ceil(e.byteLength/16)}}, zj:function(e){return{profile:"copyw2j",vB:e===void 0?0:Math.ceil(e.byteLength/16)}}});$1.prototype.encrypt=function(e,a){try{return this.S.zj(gDq(this,e,a))}catch(r){g.VJ(Error("ocwce: wasm encrypt failed: "+r))}}; $1.prototype.wP=function(){return this.B}; $1.prototype.dispose=function(){this.wP()||(g.Pe(this.T),this.S.free(this.L.byteOffset),this.B=!0)};g.b(Z7L,g.N);g.b(keq,g.N);var WM;lP.prototype.add=function(e){if(this.pos+20>this.data.length){var a=new Uint8Array(this.data.length*2);a.set(this.data);this.data=a}for(;e>31;)this.data[this.pos++]=WM[(e&31)+32],e>>=5;this.data[this.pos++]=WM[e|0]}; lP.prototype.n_=function(){return g.AT(this.data.subarray(0,this.pos))}; lP.prototype.reset=function(){this.pos=0};Y1.prototype.dT=function(e,a){var r=Math.pow(this.alpha,e);this.S=a*(1-r)+r*this.S;this.T+=e}; Y1.prototype.rL=function(){return this.S/(1-Math.pow(this.alpha,this.T))};wV.prototype.dT=function(e,a){for(var r=0;r<10;r++){var P=this.S[r],B=P+(r===0?e:0),h=1*Math.pow(2,r);if(B<=h)break;P=Math.min(1,(B-h*.5)/P);for(B=0;B<16;B++)h=this.values[r*16+B]*P,this.values[(r+1)*16+B]+=h,this.S[r+1]+=h,this.values[r*16+B]-=h,this.S[r]-=h}P=r=0;B=8192;a>8192&&(r=Math.ceil(Math.log(a/8192)/Math.log(2)),P=8192*Math.pow(2,r-1),B=P*2);r+2>16?this.values[15]+=e:(a=(a-P)/(B-P),this.values[r]+=e*(1-a),this.values[r+1]+=e*a);this.S[0]+=e}; wV.prototype.rL=function(){var e=e===void 0?this.T:e;var a=a===void 0?.02:a;var r=r===void 0?.98:r;for(var P=this.B,B=0;B<16;B++)P[B]=this.values[B];B=this.S[0];for(var h=1;h<11;h++){var c=this.S[h];if(c===0)break;for(var y=Math.min(1,(e-B)/c),T=0;T<16;T++)P[T]+=this.values[h*16+T]*y;B+=c*y;if(y<1)break}for(h=e=c=0;h<16;h++){y=c+P[h]/B;e+=Math.max(0,Math.min(y,r)-Math.max(c,a))*(h>0?8192*Math.pow(2,h-1):0);if(y>r)break;c=y}return e/(r-a)};pn.prototype.dT=function(e,a){e=Math.min(this.S,Math.max(1,Math.round(e*this.resolution)));e+this.T>=this.S&&(this.B=!0);for(;e--;)this.values[this.T]=a,this.T=(this.T+1)%this.S;this.BS=!0}; pn.prototype.percentile=function(e){var a=this;if(!this.B&&this.T===0)return 0;this.BS&&(g.Sa(this.C,function(r,P){return a.values[r]-a.values[P]}),this.BS=!1); return this.values[this.C[Math.round(e*((this.B?this.S:this.T)-1))]]||0}; pn.prototype.rL=function(){return this.Z?(this.percentile(this.L-this.Z)+this.percentile(this.L)+this.percentile(this.L+this.Z))/3:this.percentile(this.L)};g.b(iP,g.N);iP.prototype.GQ=function(){var e;(e=this.XM)==null||e.start();if(R1(this)&&this.policy.Y){var a;(a=this.hC)==null||a.g4()}};QIj.prototype.X=function(e){return this.experiments.FM(e)};g.b(lU4,g.N);var zdL="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),RdJ={S2Q:"caoe",pe1:"capsv",DAQ:"cbrand",UAM:"cbr",zk1:"cbrver",dAM:"cchip",kAP:"ccappver",VMW:"ccrv",G0m:"cfrmver",CiQ:"c",DOF:"cver",Qi$:"ctheme",XIW:"cplayer",X8$:"cmodel",Ur:"cnetwork",FdW:"cos",OS_VERSION:"cosver",uPP:"cplatform",D2W:"crqyear"};g.b(fQ,g.N);g.E=fQ.prototype;g.E.X=function(e){return this.experiments.FM(e)}; g.E.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.E.getVideoUrl=function(e,a,r,P,B,h,c){a={list:a};r&&(B?a.time_continue=r:a.t=r);r=c?"music.youtube.com":g.UA(this);B=r==="www.youtube.com";!h&&P&&B?h="https://youtu.be/"+e:g.hZ(this)?(h="https://"+r+"/fire",a.v=e):(h&&B?(h=this.protocol+"://"+r+"/shorts/"+e,P&&(a.feature="share")):(h=this.protocol+"://"+r+"/watch",a.v=e),HU&&(e=zwy())&&(a.ebc=e));return g.EW(h,a)}; g.E.getVideoEmbedCode=function(e,a,r,P){a="https://"+g.UA(this)+"/embed/"+a;P&&(a=g.EW(a,{list:P}));P=r.width;r=r.height;a=WR(a);e=WR(e!=null?e:"YouTube video player");return'')}; g.E.supportsGaplessAudio=function(){return g.Ed&&!HU&&pK()>=74||g.yw&&g.x8(68)?!0:!1}; g.E.supportsGaplessShorts=function(){return!this.X("html5_enable_short_gapless")||this.Uo||g.Uv?!1:!0}; g.E.getPlayerType=function(){return this.S.cplayer}; g.E.UM=function(){return this.h1}; var Foq=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],vDl=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],sIy=[19];var oL={},KoL=(oL["140"]={numChannels:2},oL["141"]={numChannels:2},oL["251"]={audioSampleRate:48E3,numChannels:2},oL["774"]={audioSampleRate:48E3,numChannels:2},oL["380"]={numChannels:6},oL["328"]={numChannels:6},oL["773"]={},oL),nx={},jI3=(nx["1"]='video/mp4; codecs="av01.0.08M.08"',nx["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',nx["1e"]='video/mp4; codecs="av01.0.08M.08"',nx["9"]='video/webm; codecs="vp9"',nx["("]='video/webm; codecs="vp9"',nx["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', nx.h='video/mp4; codecs="avc1.64001e"',nx.H='video/mp4; codecs="avc1.64001e"',nx.o='audio/webm; codecs="opus"',nx.a='audio/mp4; codecs="mp4a.40.2"',nx.ah='audio/mp4; codecs="mp4a.40.2"',nx.mac3='audio/mp4; codecs="ac-3"; channels=6',nx.meac3='audio/mp4; codecs="ec-3"; channels=6',nx.i='audio/mp4; codecs="iamf.001.001.Opus"',nx),yD={},ugy=(yD["337"]={width:3840,height:2160,bitrate:3E7,fps:30},yD["336"]={width:2560,height:1440,bitrate:15E6,fps:30},yD["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, yD["702"]={width:7680,height:4320,bitrate:4E7,fps:60},yD["701"]={width:3840,height:2160,bitrate:2E7,fps:60},yD["700"]={width:2560,height:1440,bitrate:1E7,fps:60},yD["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},yD["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},yD["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},yD["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, yD["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},yD["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},yD["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},yD["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},yD["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},yD["315"]={width:3840,height:2160,bitrate:2E7,fps:60},yD["308"]={width:2560, height:1440,bitrate:1E7,fps:60},yD["303"]={width:1920,height:1080,bitrate:5E6,fps:60},yD["302"]={width:1280,height:720,bitrate:25E5,fps:60},yD["299"]={width:1920,height:1080,bitrate:75E5,fps:60},yD["298"]={width:1280,height:720,bitrate:35E5,fps:60},yD["571"]={width:7680,height:4320,bitrate:3E7,fps:60},yD["401"]={width:3840,height:2160,bitrate:15E6,fps:60},yD["400"]={width:2560,height:1440,bitrate:75E5,fps:60},yD["399"]={width:1920,height:1080,bitrate:2E6,fps:60},yD["398"]={width:1280,height:720,bitrate:1E6, fps:60},yD["397"]={width:854,height:480,bitrate:4E5,fps:30},yD["396"]={width:640,height:360,bitrate:25E4,fps:30},yD["787"]={width:1080,height:608,bitrate:2E5,fps:30},yD["788"]={width:1080,height:608,bitrate:4E5,fps:30},yD["572"]={width:7680,height:4320,bitrate:3E7,fps:60},yD["555"]={width:3840,height:2160,bitrate:15E6,fps:60},yD["554"]={width:2560,height:1440,bitrate:75E5,fps:60},yD["553"]={width:1920,height:1080,bitrate:2E6,fps:60},yD["552"]={width:1280,height:720,bitrate:1E6,fps:60},yD["551"]={width:854, height:480,bitrate:4E5,fps:30},yD["550"]={width:640,height:360,bitrate:25E4,fps:30},yD["313"]={width:3840,height:2160,bitrate:8E6,fps:30},yD["271"]={width:2560,height:1440,bitrate:4E6,fps:30},yD["248"]={width:1920,height:1080,bitrate:2E6,fps:30},yD["247"]={width:1280,height:720,bitrate:15E5,fps:30},yD["244"]={width:854,height:480,bitrate:52E4,fps:30},yD["243"]={width:640,height:360,bitrate:28E4,fps:30},yD["137"]={width:1920,height:1080,bitrate:4E6,fps:30},yD["136"]={width:1280,height:720,bitrate:3E6, fps:30},yD["135"]={width:854,height:480,bitrate:1E6,fps:30},yD["385"]={width:1920,height:1080,bitrate:6503313,fps:60},yD["376"]={width:1280,height:720,bitrate:5706960,fps:60},yD["384"]={width:1280,height:720,bitrate:3660979,fps:60},yD["225"]={width:1280,height:720,bitrate:5805E3,fps:30},yD["224"]={width:1280,height:720,bitrate:453E4,fps:30},yD["145"]={width:1280,height:720,bitrate:2682052,fps:30},yD);g.E=lX.prototype;g.E.getInfo=function(){return this.S}; g.E.xb=function(){return null}; g.E.IX=function(){var e=this.xb();return e?(e=g.KG(e.Kr),Number(e.expire)):NaN}; g.E.fn=function(){}; g.E.getHeight=function(){return this.S.video.height};P8O.prototype.build=function(){cg4(this);var e=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],a={};a:if(this.S)var r=this.S;else{r="";for(var P=g.Z(this.B),B=P.next();!B.done;B=P.next())if(B=B.value,B.yX){if(B.yX.getIsDefault()){r=B.yX.getId();break a}r||(r=B.yX.getId())}}P=g.Z(this.B);for(B=P.next();!B.done;B=P.next())if(B=B.value,this.Z||!B.yX||B.yX.getId()===r)a[B.itag]||(a[B.itag]=[]),a[B.itag].push(B);r=g.Z(this.T);for(P=r.next();!P.done;P=r.next())if(P=P.value,B=a[P.S]){B=g.Z(B);for(var h=B.next();!h.done;h= B.next()){var c=e,y=c.push;h=h.value;var T="#EXT-X-MEDIA:TYPE=AUDIO,",X="YES",f="audio";if(h.yX){f=h.yX;var A=f.getId().split(".")[0];A&&(T+='LANGUAGE="'+A+'",');(this.S?this.S===f.getId():f.getIsDefault())||(X="NO");f=f.getName()}A="";P!==null&&(A=P.itag.toString());A=YG(this,h.url,A);T=T+('NAME="'+f+'",DEFAULT='+(X+',AUTOSELECT=YES,GROUP-ID="'))+(hBj(h,P)+'",URI="'+(A+'"'));y.call(c,T)}}r=g.Z(this.C);for(P=r.next();!P.done;P=r.next())P=P.value,B=MNM,P=(c=P.yX)?'#EXT-X-MEDIA:URI="'+YG(this,P.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+B+'",LANGUAGE="'+c.getId()+'",NAME="'+c.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,P&&e.push(P);r=this.C.length>0?MNM:void 0;P=g.Z(this.T);for(B=P.next();!B.done;B=P.next())B=B.value,y=a[B.S],c=void 0,((c=y)==null?void 0:c.length)>0&&(c=B,y=y[0],y="#EXT-X-STREAM-INF:BANDWIDTH="+(c.bitrate+y.bitrate)+',CODECS="'+(c.codecs+","+y.codecs+'",RESOLUTION=')+(c.width+"x"+c.height+',AUDIO="')+(hBj(y,c)+'",')+(r?'SUBTITLES="'+r+'",':"")+"CLOSED-CAPTIONS=NONE",c.fps>1&&(y+= ",FRAME-RATE="+c.fps),c.NV&&(y+=",VIDEO-RANGE="+c.NV),e.push(y),e.push(YG(this,B.url,"")));return e.join("\n")}; var MNM="text";g.b(wd,lX);wd.prototype.IX=function(){return this.expiration}; wd.prototype.xb=function(){if(!this.Kr||this.Kr.wP()){var e=this.T.build();e="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(e);this.Kr=new CZ(e)}return this.Kr};g.b(pQ,lX);pQ.prototype.xb=function(){return new CZ(this.T.ju())}; pQ.prototype.fn=function(){this.T=FO(this.T)};g.b(iX,lX);iX.prototype.xb=function(){return new CZ(this.T)};var Tl={},G84=(Tl.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Tl.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Tl.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Tl.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Tl);g.E=g.zF.prototype;g.E.getId=function(){return this.id}; g.E.getName=function(){return this.name}; g.E.isServable=function(){return this.S}; g.E.ju=function(){return this.url}; g.E.getXtags=function(){return this.xtags}; g.E.toString=function(){return this.languageCode+": "+g.Ng(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.E.equals=function(e){return e?this.toString()===e.toString():!1}; g.E.Fw=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Ojz={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},k8j={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},dKJ=/^(\d*)_((\d*)_?(\d*))$/;var DK3={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},V9z={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Xy={},jb9=(Xy.ALWAYS=1,Xy.BY_REQUEST=3,Xy.UNKNOWN=void 0,Xy),fx={},usl=(fx.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",fx.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",fx.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",fx.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",fx);var pNL; pNL=function(e){for(var a=Object.keys(e),r={},P=0;PP-a?-1:e}; g.E.JK=function(){return this.T.q5()}; g.E.Xr=function(){return this.T.mQ()}; g.E.XY=function(e){this.T=e};g.b(fY,Tc);fY.prototype.T=function(e,a){return Tc.prototype.T.call(this,"$N|"+e,a)}; fY.prototype.C=function(e,a,r){return new XL(e,a,r,this.isLive)};g.b(g.UT,g.aK);g.E=g.UT.prototype; g.E.setData=function(e){e=e||{};var a=e.errordetail;a!=null&&(this.errorDetail=a);var r=e.errorcode;r!=null?this.errorCode=r:e.status==="fail"&&(this.errorCode="auth");var P=e.reason;P!=null&&(this.errorReason=P);var B=e.subreason;B!=null&&(this.Qt=B);this.clientPlaybackNonce||(this.clientPlaybackNonce=e.cpn||(this.gP.UM()?"r"+g.Ch(15):g.Ch(16)));this.rP=ue(this.gP.rP,e.livemonitor);BJL(this,e);var h=e.raw_player_response;if(h)this.ox=h;else{var c=e.player_response;c&&(h=JSON.parse(c))}h&&(this.playerResponse= h);if(this.playerResponse){var y=this.playerResponse.annotations;if(y)for(var T=g.Z(y),X=T.next();!X.done;X=T.next()){var f=X.value.playerAnnotationsUrlsRenderer;if(f){f.adsOnly&&(this.Mo=!0);var A=f.loadPolicy;A&&(this.annotationsLoadPolicy=jb9[A]);var U=f.invideoUrl;U&&(this.XM=H_(U));break}}var C=this.playerResponse.attestation;C&&QEO(this,C);var G=this.playerResponse.cotn;G&&(this.cotn=G);var O=this.playerResponse.heartbeatParams;if(O){this.OA=!0;var d=O.heartbeatToken;d&&(this.drmSessionId=O.drmSessionId|| "",this.heartbeatToken=d,this.zL=Number(O.intervalMilliseconds),this.Co=Number(O.maxRetries),this.X4=!!O.softFailOnError,this.RJ=!!O.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=O.heartbeatServerData;var W;this.oi=!((W=O.heartbeatAttestationConfig)==null||!W.requiresAttestation)}var V=this.playerResponse.messages;V&&YE3(this,V);var L=this.playerResponse.overlay;if(L){var z=L.playerControlsOverlayRenderer;if(z)if(pwT(this,z.controlBgHtml),z.mutedAutoplay){var q=g.H(z.mutedAutoplay,y55);if(q&& q.endScreen){var M=g.H(q.endScreen,TyG);M&&M.text&&(this.H3=g.yd(M.text))}}else this.mutedAutoplay=!1}var m=this.playerResponse.playabilityStatus;if(m){var cI=m.backgroundability;cI&&cI.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var CL,nL;if((CL=m.offlineability)==null?0:(nL=CL.offlineabilityRenderer)==null?0:nL.offlineable)this.offlineable=!0;var y3=m.contextParams;y3&&(this.contextParams=y3);var aT=m.pictureInPicture;aT&&aT.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);m.playableInEmbed&&(this.allowEmbed=!0);var $N=m.ypcClickwrap;if($N){var F4=$N.playerLegacyDesktopYpcClickwrapRenderer,ea=$N.ypcRentalActivationRenderer;if(F4)this.Ee=F4.durationMessage||"",this.BV=!0;else if(ea){var EG=ea.durationMessage;this.Ee=EG?g.yd(EG):"";this.BV=!0}}var n5=m.errorScreen;if(n5){if(n5.playerLegacyDesktopYpcTrailerRenderer){var lq=n5.playerLegacyDesktopYpcTrailerRenderer;this.AN=lq.trailerVideoId||"";var cd=n5.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var iN=cd&&cd.ypcTrailerRenderer}else if(n5.playerLegacyDesktopYpcOfferRenderer)lq= n5.playerLegacyDesktopYpcOfferRenderer;else if(n5.ypcTrailerRenderer){iN=n5.ypcTrailerRenderer;var vB=iN.fullVideoMessage;this.Sd=vB?g.yd(vB):"";var oQ,Q;this.AN=((oQ=g.H(iN,XoV))==null?void 0:(Q=oQ.videoDetails)==null?void 0:Q.videoId)||""}lq&&(this.pT=lq.itemTitle||"",lq.itemUrl&&(this.Xg=lq.itemUrl),lq.itemBuyUrl&&(this.Ig=lq.itemBuyUrl),this.eP=lq.itemThumbnail||"",this.D2=lq.offerHeadline||"",this.bK=lq.offerDescription||"",this.Kq=lq.offerId||"",this.QD=lq.offerButtonText||"",this.v1=lq.offerButtonFormattedText|| null,this.wx=lq.overlayDurationMsec||NaN,this.Sd=lq.fullVideoMessage||"",this.G0=!0);if(iN){var IQ=g.H(iN,XoV);if(IQ)this.W8={raw_player_response:IQ};else{var L5=g.H(iN,ZOB);this.W8=L5?jX(L5):null}this.G0=!0}}}var PI=this.playerResponse.playbackTracking;if(PI){var Jw=e,k=vb(PI.googleRemarketingUrl);k&&(this.googleRemarketingUrl=k);var r4=vb(PI.youtubeRemarketingUrl);r4&&(this.youtubeRemarketingUrl=r4);var Lf={},nD=vb(PI.ptrackingUrl);if(nD){var IZ=Rm(nD),sO=IZ.oid;sO&&(this.Tk=sO);var rb=IZ.pltype; rb&&(this.B3=rb);var aD=IZ.ptchn;aD&&(this.nk=aD);var Hd=IZ.ptk;Hd&&(this.hI=encodeURIComponent(Hd));var J=IZ.m;J&&(this.QV=J)}var t=vb(PI.qoeUrl);if(t){for(var D=g.KG(t),w=g.Z(Object.keys(D)),I=w.next();!I.done;I=w.next()){var fL=I.value,R=D[fL];D[fL]=Array.isArray(R)?R.join(","):R}this.aT=D;var K=D.cat;K&&(this.X("html5_enable_qoe_cat_list")?this.Iq=this.Iq.concat(K.split(",")):this.sQ=K);var p=D.live;p&&(this.RC=p);var w4=D.drm_product;w4&&(this.drmProduct=w4)}var qj=vb(PI.videostatsPlaybackUrl); if(qj){var oT=Rm(qj),XN=oT.adformat;if(XN){Jw.adformat=XN;var LL=this.G(),Jz=JgO(XN,this.JF,LL.L,LL.Y);Jz&&(this.adFormat=Jz)}var ry=oT.aqi;ry&&(Jw.ad_query_id=ry);var db=oT.autoplay;db&&(this.o4=db=="1",this.U5=db=="1");var zV=oT.autonav;zV&&(this.isAutonav=zV=="1");var V3=oT.delay;V3&&(this.bv=Y8(V3));var kH=oT.ei;kH&&(this.eventId=kH);var WI=Qw(oT.adcontext);if(WI)try{var Y9=TfZ(WI);Y9&&(this.S$=Y9)}catch(BG8){g.VJ(Error("Malformed adContext"))}if(WI||XN)this.o4=!0;var DB=oT.feature;DB&&(this.E8= DB);var nf=oT.list;nf&&(this.playlistId=nf);var VG=oT.of;VG&&(this.sL=VG);var eu=oT.osid;eu&&(this.osid=eu);var Bd=oT.referrer;Bd&&(this.referrer=Bd);var RZ=oT.sdetail;RZ&&(this.I8=RZ);var wb=oT.ssrt;wb&&(this.CE=wb=="1");var $8=oT.subscribed;$8&&(this.subscribed=$8=="1");var jN=oT.uga;jN&&(this.userGenderAge=jN);var bJ=oT.upt;bJ&&(this.qT=bJ);var xj=oT.vm;xj&&(this.videoMetadata=xj);Lf.playback=oT}var a_=vb(PI.videostatsWatchtimeUrl);if(a_){var r_=Rm(a_),ng=r_.ald;ng&&(this.qo=ng);Lf.watchtime=r_}var dy= vb(PI.atrUrl);if(dy){var iA=Rm(dy);Lf.atr=iA}var ua=vb(PI.engageUrl);if(ua){var zR=Rm(ua);Lf.engage=zR}this.B4=Lf;if(PI.promotedPlaybackTracking){var Po=PI.promotedPlaybackTracking;Po.startUrls&&(this.tI=Po.startUrls);Po.firstQuartileUrls&&(this.Au=Po.firstQuartileUrls);Po.secondQuartileUrls&&(this.Pt=Po.secondQuartileUrls);Po.thirdQuartileUrls&&(this.dN=Po.thirdQuartileUrls);Po.completeUrls&&(this.wN=Po.completeUrls);Po.engagedViewUrls&&(Po.engagedViewUrls.length>1&&g.VJ(new g.I6("There are more than one engaged_view_urls.")), this.F7=Po.engagedViewUrls[0])}}var tC=this.playerResponse.playerCueRanges;tC&&tC.length>0&&(this.cueRanges=tC);var IU=this.playerResponse.playerCueRangeSet;IU&&g.bz(this,IU);a:{var Z$=this.playerResponse.adPlacements;if(Z$)for(var Pj=g.Z(Z$),OX=Pj.next();!OX.done;OX=Pj.next()){var Bj=void 0,hv=void 0,cj=(Bj=OX.value.adPlacementRenderer)==null?void 0:(hv=Bj.renderer)==null?void 0:hv.videoAdTrackingRenderer;if(cj){var o_=cj;break a}}o_=null}var kL=o_;PI&&PI.promotedPlaybackTracking&&kL&&g.VJ(new g.I6("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var yq;if(!(yq=kL))a:{for(var nv=g.Z(this.playerResponse.adSlots||[]),tV=nv.next();!tV.done;tV=nv.next()){var Ze=g.H(tV.value,X$);if(Ze===void 0||!YVj(Ze))break;var iw=void 0,xC=(iw=Ze.fulfillmentContent)==null?void 0:iw.fulfilledLayout,I_=g.H(xC,rJ);if(I_&&u8(I_)){yq=!0;break a}}yq=!1}yq&&(this.FZ=!0);var Hj=this.playerResponse.playerAds;if(Hj)for(var ot=e,z0=g.Z(Hj),g8=z0.next();!g8.done;g8=z0.next()){var N1=g8.value;if(N1){var nN=N1.playerLegacyDesktopWatchAdsRenderer;if(nN){var qB=nN.playerAdParams; if(qB){qB.autoplay=="1"&&(this.U5=this.o4=!0);this.Vh=qB.encodedAdSafetyReason||null;qB.showContentThumbnail!==void 0&&(this.SZ=!!qB.showContentThumbnail);ot.enabled_engage_types=qB.enabledEngageTypes;break}}}}var J5=this.playerResponse.playerConfig;if(J5){var dN=J5.manifestlessWindowedLiveConfig;if(dN){var qA=Number(dN.minDvrSequence),yM=Number(dN.maxDvrSequence),On=Number(dN.minDvrMediaTimeMs),TQ=Number(dN.maxDvrMediaTimeMs),xc=Number(dN.startWalltimeMs);qA&&(this.lB=qA);On&&(this.Eo=On/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&& QZ(this)&&(this.ZI=On/1E3));yM&&(this.E2=yM);TQ&&(this.ID=TQ/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&QZ(this)&&(this.H8=TQ/1E3));xc&&(this.h9=xc/1E3);(qA||On)&&(yM||TQ)&&(this.allowLiveDvr=this.isLivePlayback=this.TQ=!0,this.zX=!1)}var k3=J5.daiConfig;if(k3){if(k3.enableDai){this.IU=!0;var or=k3.enableServerStitchedDai;or&&(this.enableServerStitchedDai=or);var RH=k3.enablePreroll;RH&&(this.X7=RH)}var XI;if(k3.daiType==="DAI_TYPE_SS_DISABLED"||((XI=k3.debugInfo)==null?0:XI.isDisabledUnpluggedChannel))this.bl= !0;k3.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Ws=!0);k3.allowUstreamerRequestAdconfig&&(this.O$=!0)}var fN=J5.audioConfig;if(fN){var vV=fN.loudnessDb;vV!=null&&(this.h1=vV);var Taq=fN.trackAbsoluteLoudnessLkfs;Taq!=null&&(this.Ph=Taq);var X8N=fN.loudnessTargetLkfs;X8N!=null&&(this.loudnessTargetLkfs=X8N);fN.audioMuted&&(this.NO=!0);fN.muteOnStart&&(this.IT=!0);var b8=fN.loudnessNormalizationConfig;if(b8){b8.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);b8.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var fkO=b8.minimumLoudnessTargetLkfs;fkO!=null&&(this.minimumLoudnessTargetLkfs=fkO);var AQz=b8.maxStatefulTimeThresholdSec;AQz!=null&&(this.maxStatefulTimeThresholdSec=AQz)}fN.playAudioOnly&&(this.t1=!0)}var Dcl=J5.playbackEndConfig;if(Dcl){var U0I=Dcl.endSeconds,CS3=Dcl.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(U0I&&(this.endSeconds=U0I),CS3&&(this.limitedPlaybackDurationInSeconds=CS3))}var ZM=J5.fairPlayConfig;if(ZM){var GBJ=ZM.certificate;GBJ&& (this.Uo=Qw(GBJ));var Eez=Number(ZM.keyRotationPeriodMs);Eez>0&&(this.UD=Eez);var bwT=Number(ZM.keyPrefetchMarginMs);bwT>0&&(this.D6=bwT)}var lR=J5.playbackStartConfig;if(lR){this.O8=Number(lR.startSeconds);var tzL=lR.liveUtcStartSeconds,ge4=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;tzL&&!ge4&&(this.liveUtcStartSeconds=Number(tzL));var VNI=lR.startPosition;if(VNI){var ZwJ=VNI.utcTimeMillis;ZwJ&&!ge4&&(this.liveUtcStartSeconds=Number(ZwJ)*.001);var Ow4=VNI.streamTimeMillis;Ow4&&(this.kh= Number(Ow4)*.001)}this.progressBarStartPosition=lR.progressBarStartPosition;this.progressBarEndPosition=lR.progressBarEndPosition}else{var $cq=J5.skippableSegmentsConfig;if($cq){var kB4=$cq.introSkipDurationMs;kB4&&(this.Rq=Number(kB4)/1E3);var d0J=$cq.outroSkipDurationMs;d0J&&(this.OL=Number(d0J)/1E3)}}var QbO=J5.skippableIntroConfig;if(QbO){var JQl=Number(QbO.startMs),D04=Number(QbO.endMs);isNaN(JQl)||isNaN(D04)||(this.n5=JQl,this.Ky=D04)}var Vzj=J5.streamSelectionConfig;Vzj&&(this.Te=Number(Vzj.maxBitrate)); var $0J=J5.vrConfig;$0J&&(this.LR=$0J.partialSpherical=="1");var tg=J5.webDrmConfig;if(tg){tg.skipWidevine&&(this.Zx=!0);var QSq=tg.widevineServiceCert;QSq&&(this.gb=Qw(QSq));tg.useCobaltWidevine&&(this.useCobaltWidevine=!0);tg.startWithNoQualityConstraint&&(this.He=!0)}var Ra=J5.mediaCommonConfig;if(Ra){var OI=Ra.dynamicReadaheadConfig;if(OI){this.maxReadAheadMediaTimeMs=OI.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=OI.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=OI.readAheadGrowthRateMs|| NaN;var WW4,lkN=Ra==null?void 0:(WW4=Ra.mediaUstreamerRequestConfig)==null?void 0:WW4.videoPlaybackUstreamerConfig;lkN&&(this.XG=Qw(lkN));var Wv4=Ra==null?void 0:Ra.sabrContextUpdates;if(Wv4&&Wv4.length>0)for(var LWN=g.Z(Wv4),lX4=LWN.next();!lX4.done;lX4=LWN.next()){var ay=lX4.value;if(ay.type&&ay.value){var dr8={type:ay.type,scope:ay.scope,value:Qw(ay.value)||void 0,sendByDefault:ay.sendByDefault};this.sabrContextUpdates.set(ay.type,dr8)}}}var YNI=Ra.serverPlaybackStartConfig;YNI&&(this.serverPlaybackStartConfig= YNI);Ra.useServerDrivenAbr&&(this.Yv=!0);var w8T=Ra.requestPipeliningConfig;w8T&&(this.requestPipeliningConfig=w8T)}var p8O=J5.inlinePlaybackConfig;p8O&&(this.Ol=!!p8O.showAudioControls);var kU=J5.embeddedPlayerConfig;if(kU){this.embeddedPlayerConfig=kU;var Lvy=kU.embeddedPlayerMode;if(Lvy){var iwj=this.G();iwj.Eo=Lvy;iwj.B=Lvy==="EMBEDDED_PLAYER_MODE_PFL"}var zRN=kU.permissions;zRN&&(this.allowImaMonetization=!!zRN.allowImaMonetization)}var dq=J5.webPlayerConfig;dq&&(dq.gatewayExperimentGroup&&(this.gatewayExperimentGroup= dq.gatewayExperimentGroup),dq.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var Sp=this.playerResponse.streamingData;if(Sp){var Y5I=Sp.formats;if(Y5I){for(var g7=[],NaJ=g.Z(Y5I),wQ4=NaJ.next();!wQ4.done;wQ4=NaJ.next()){var pQ3=wQ4.value;g7.push(pQ3.itag+"/"+pQ3.width+"x"+pQ3.height)}this.o1=g7.join(",");g7=[];for(var x0T=g.Z(Y5I),igL=x0T.next();!igL.done;igL=x0T.next()){var Z8=igL.value,OE={itag:Z8.itag,type:Z8.mimeType,quality:Z8.quality},IkN=Z8.url;IkN&&(OE.url=IkN);var JF=M$(Z8),JlZ=JF.jo, DrB=JF.SW,Vw8=JF.s;JF.Nw&&(OE.url=JlZ,OE.sp=DrB,OE.s=Vw8);g7.push(g.GS(OE))}this.sx=g7.join(",")}var zgN=Sp.hlsFormats;if(zgN){var HwJ=J5||null,DM={};if(HwJ){var NFL=HwJ.audioPairingConfig;if(NFL&&NFL.pairs)for(var qNI=g.Z(NFL.pairs),xcJ=qNI.next();!xcJ.done;xcJ=qNI.next()){var vej=xcJ.value,IXl=vej.videoItag;DM[IXl]||(DM[IXl]=[]);DM[IXl].push(vej.audioItag)}}for(var RR4={},SNq=g.Z(zgN),HgI=SNq.next();!HgI.done;HgI=SNq.next()){var sSO=HgI.value;RR4[sSO.itag]=sSO.bitrate}for(var m0y=[],FWI=g.Z(zgN), q5l=FWI.next();!q5l.done;q5l=FWI.next()){var mM=q5l.value,JP={itag:mM.itag,type:mM.mimeType,url:mM.url,bitrate:mM.bitrate,width:mM.width,height:mM.height,fps:mM.fps},Va=mM.audioTrack;if(Va){var Mzz=Va.displayName;Mzz&&(JP.name=Mzz,JP.audio_track_id=Va.id,Va.audioIsDefault&&(JP.is_default="1"))}if(mM.drmFamilies){for(var jSI=[],ur3=g.Z(mM.drmFamilies),vuy=ur3.next();!vuy.done;vuy=ur3.next())jSI.push(za[vuy.value]);JP.drm_families=jSI.join(",")}var $U=DM[mM.itag];if($U&&$U.length){JP.audio_itag=$U.join(","); var KWL=RR4[$U[0]];KWL&&(JP.bitrate+=KWL)}var eH4=c0J(mM);eH4&&(JP.eotf=eH4);mM.audioChannels&&(JP.audio_channels=mM.audioChannels);m0y.push(g.GS(JP))}this.hlsFormats=m0y.join(",")}var RgL=Sp.licenseInfos;if(RgL&&RgL.length>0){for(var aZq={},rHz=g.Z(RgL),S5N=rHz.next();!S5N.done;S5N=rHz.next()){var P3l=S5N.value,BoL=P3l.drmFamily,hHj=P3l.url;BoL&&hHj&&(aZq[za[BoL]]=hHj)}this.DX=aZq}var cH3=Sp.drmParams;cH3&&(this.drmParams=cH3);var oAL=Sp.dashManifestUrl;oAL&&(this.J9=g.EW(oAL,{cpn:this.clientPlaybackNonce})); var nAq=Sp.hlsManifestUrl;nAq&&(this.hlsvp=nAq);var yH4=Sp.probeUrl;yH4&&(this.probeUrl=H_(g.EW(yH4,{cpn:this.clientPlaybackNonce})));var Toz=Sp.serverAbrStreamingUrl;Toz&&(this.dD=new g.v2(Toz,!0))}var X$N=this.playerResponse.trackingParams;X$N&&(this.e1=X$N);var ZL=this.playerResponse.videoDetails;if(ZL){var DN=e,sb4=ZL.videoId;sb4&&(this.videoId=sb4,DN.video_id||(DN.video_id=sb4));var mc4=ZL.title;mc4&&(this.title=mc4,DN.title||(DN.title=mc4));var Fvq=ZL.lengthSeconds;Fvq&&(this.lengthSeconds= Number(Fvq),DN.length_seconds||(DN.length_seconds=Fvq));var fZJ=ZL.keywords;fZJ&&(this.keywords=nYT(fZJ));var MNj=ZL.channelId;MNj&&(this.ix=MNj,DN.ucid||(DN.ucid=MNj));var AHj=ZL.viewCount;AHj&&(this.rawViewCount=Number(AHj));var jbN=ZL.author;jbN&&(this.author=jbN,DN.author||(DN.author=jbN));var Ua4=ZL.shortDescription;Ua4&&(this.shortDescription=Ua4);var C34=ZL.isCrawlable;C34&&(this.isListed=C34);var G2l=ZL.musicVideoType;G2l&&(this.musicVideoType=G2l);var usj=ZL.isLive;usj!=null&&(this.isLivePlayback= usj);if(usj||ZL.isUpcoming)this.isPremiere=!ZL.isLiveContent;var EAT=ZL.thumbnail;EAT&&(this.Y=qg(EAT));var bo4=ZL.isExternallyHostedPodcast;bo4&&(this.isExternallyHostedPodcast=bo4);var Kvq=ZL.viewerLivestreamJoinPosition;if(Kvq==null?0:Kvq.utcTimeMillis)this.GF=Y8(Kvq.utcTimeMillis);var t6T=J5||null,eAI=e;ZL.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);ZL.isUpcoming&&(this.isUpcoming=!0);if(ZL.isPostLiveDvr){this.zX=!0;var gAj=ZL.latencyClass;gAj&&(this.latencyClass=usl[gAj]||"UNKNOWN"); ZL.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var aQj=!1;this.rP?(this.allowLiveDvr=tG()?!0:Sw&&eo<5?!1:!0,this.isLivePlayback=!0):ZL.isLive?(eAI.livestream="1",this.allowLiveDvr=ZL.isLiveDvrEnabled?tG()?!0:Sw&&eo<5?!1:!0:!1,this.partnerId=27,aQj=!0):ZL.isUpcoming&&(aQj=!0);if(ZL.isLive||this.rP){ZL.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var Zo4=ZL.latencyClass;Zo4&&(this.latencyClass=usl[Zo4]||"UNKNOWN");var OoT=ZL.liveChunkReadahead;OoT&&(this.liveChunkReadahead= OoT);var L3=t6T&&t6T.livePlayerConfig;if(L3){L3.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);L3.hasSubfragmentedWebm&&(this.PM=!0);L3.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var k2O=L3.liveExperimentalContentId;k2O&&(this.liveExperimentalContentId=Number(k2O));var daL=L3.isLiveHeadPlayable;this.X("html5_live_head_playable")&&daL!=null&&(this.isLiveHeadPlayable=daL)}}aQj&&(this.isLivePlayback=!0,eAI.adformat&&eAI.adformat.split("_")[1]!=="8"||this.N.push("heartbeat"))}var JH4= ZL.isPrivate;JH4!==void 0&&(this.isPrivate=ue(this.isPrivate,JH4))}if(m){var Da4=ZL||null,V64=!1,YB=m.errorScreen;V64=YB&&(YB.playerLegacyDesktopYpcOfferRenderer||YB.playerLegacyDesktopYpcTrailerRenderer||YB.ypcTrailerRenderer)?!0:Da4&&Da4.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(m.status);if(!V64){this.errorCode=ERj(m.errorCode)||"auth";var Qa=YB&&YB.playerErrorMessageRenderer;if(Qa){this.playerErrorMessageRenderer=Qa;var $a4=Qa.reason;$a4&&(this.errorReason=g.yd($a4)); var rCj=Qa.subreason;rCj&&(this.Qt=g.yd(rCj),this.j2=rCj)}else this.errorReason=m.reason||null;var PJy=m.status;if(PJy==="LOGIN_REQUIRED")this.errorDetail="1";else if(PJy==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(PJy==="AGE_CHECK_REQUIRED"){var QNT=m.errorScreen,WzJ=QNT&&QNT.playerKavRenderer;this.errorDetail=WzJ&&WzJ.kavUrl?"4":"3"}else this.errorDetail=m.isBlockedInRestrictedMode?"5":"0"}}var lZz=this.playerResponse.interstitialPods;lZz&&LkT(this,lZz);this.XM&&this.eventId&&(this.XM= af(this.XM,{ei:this.eventId}));var BO4=this.playerResponse.captions;if(BO4&&BO4.playerCaptionsTracklistRenderer)a:{var VM=BO4.playerCaptionsTracklistRenderer;this.captionTracks=[];if(VM.captionTracks)for(var Lzj=g.Z(VM.captionTracks),hAj=Lzj.next();!hAj.done;hAj=Lzj.next()){var $P=hAj.value,YRO=ceJ($P.baseUrl);if(!YRO)break a;var cCj={is_translateable:!!$P.isTranslatable,languageCode:$P.languageCode,languageName:$P.name&&g.yd($P.name),url:YRO,vss_id:$P.vssId,kind:$P.kind};cCj.name=$P.trackName;cCj.displayName= $P.name&&g.yd($P.name);this.captionTracks.push(new g.zF(cCj))}this.a9=VM.audioTracks||[];this.ew=VM.defaultAudioTrackIndex||0;this.TL=[];if(VM.translationLanguages)for(var w$J=g.Z(VM.translationLanguages),ojO=w$J.next();!ojO.done;ojO=w$J.next()){var wH=ojO.value,rl={};rl.languageCode=wH.languageCode;rl.languageName=g.yd(wH.languageName);if(wH.translationSourceTrackIndices){rl.translationSourceTrackIndices=[];for(var p$L=g.Z(wH.translationSourceTrackIndices),njl=p$L.next();!njl.done;njl=p$L.next())rl.translationSourceTrackIndices.push(njl.value)}if(wH.excludeAudioTrackIndices){rl.excludeAudioTrackIndices= [];for(var ioy=g.Z(wH.excludeAudioTrackIndices),yC4=ioy.next();!yC4.done;yC4=ioy.next())rl.excludeAudioTrackIndices.push(yC4.value)}this.TL.push(rl)}this.eS=[];if(VM.defaultTranslationSourceTrackIndices)for(var zHz=g.Z(VM.defaultTranslationSourceTrackIndices),TOO=zHz.next();!TOO.done;TOO=zHz.next())this.eS.push(TOO.value);this.b7=!!VM.contribute&&!!VM.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.O8=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&wwj(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var NoT;this.compositeLiveIngestionOffsetToken=(NoT=this.playerResponse.playbackTracking)==null?void 0:NoT.compositeLiveIngestionOffsetToken;var xaz;this.compositeLiveStatusToken=(xaz=this.playerResponse.playbackTracking)==null?void 0: xaz.compositeLiveStatusToken;this.X("html5_fill_default_mosaic_audio_track_id")&&yT(this)&&(this.gP.PW=M7L(this));if(this.X("html5_enable_player_response_driven_playback_rate_clamping")){var IZJ,Hoj,qR4=(IZJ=this.playerResponse.playerConfig)==null?void 0:(Hoj=IZJ.granularVariableSpeedConfig)==null?void 0:Hoj.minimumPlaybackRate,vA3,RHz,SRL=(vA3=this.playerResponse.playerConfig)==null?void 0:(RHz=vA3.granularVariableSpeedConfig)==null?void 0:RHz.maximumPlaybackRate;qR4&&SRL&&(this.u_=qR4/100,this.i_= SRL/100)}}Gc(this,e);e.queue_info&&(this.queueInfo=e.queue_info);var sNI=e.hlsdvr;sNI!=null&&(this.allowLiveDvr=Number(sNI)===1?tG()?!0:Sw&&eo<5?!1:!0:!1);this.adQueryId=e.ad_query_id||null;this.Vh||(this.Vh=e.encoded_ad_safety_reason||null);this.NO=ue(this.NO,e.infringe||e.muted);this.hTr=e.authkey;this.xG=e.authuser;this.mutedAutoplay=ue(this.mutedAutoplay,e&&e.playmuted);this.mutedAutoplayDurationMode=e$(this.mutedAutoplayDurationMode,e&&e.muted_autoplay_duration_mode);this.I9=ue(this.I9,e&&e.mutedautoplay); var Wt=e.length_seconds;Wt&&(this.lengthSeconds=typeof Wt==="string"?Y8(Wt):Wt);if(this.isAd()||this.bx||!g.hJ(g.om(this.gP)))this.endSeconds=e$(this.endSeconds,this.OL||e.end||e.endSeconds);else{var $r8=g.om(this.gP),ln=this.lengthSeconds;switch($r8){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ln>30?this.limitedPlaybackDurationInSeconds=30:ln<30&&ln>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= ln*.2}}this.e1=a6(this.e1,e.itct);this.BC=ue(this.BC,e.is_live_destination);this.isLivePlayback=ue(this.isLivePlayback,e.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.QX();e.isUpcoming&&(this.isUpcoming=ue(this.isUpcoming,e.isUpcoming));this.zX=ue(this.zX,e.post_live_playback);this.TQ&&(this.zX=!1);this.isMdxPlayback=ue(this.isMdxPlayback,e.mdx);var L2=e.mdx_control_mode;L2&&(this.mdxControlMode=typeof L2==="number"?L2:Y8(L2));this.isInlinePlaybackNoAd=ue(this.isInlinePlaybackNoAd, e.is_inline_playback_no_ad);this.sM=e$(this.sM,e.reload_count);this.reloadReason=a6(this.reloadReason,e.reload_reason);this.SZ=ue(this.SZ,e.show_content_thumbnail);this.cycToken=e.cyc||null;var maL=Hb(e);Object.keys(maL).length>0&&(this.Y=maL);this.Lf=a6(this.Lf,e.vvt);this.mdxEnvironment=a6(this.mdxEnvironment,e.mdx_environment);e.source_container_playlist_id&&(this.sourceContainerPlaylistId=e.source_container_playlist_id);e.serialized_mdx_metadata&&(this.serializedMdxMetadata=e.serialized_mdx_metadata); this.XG1=e.osig;this.eventId||(this.eventId=e.eventid);this.osid||(this.osid=e.osid);this.playlistId=a6(this.playlistId,e.list);e.index&&(this.playlistIndex=this.playlistIndex===void 0?e$(0,e.index):e$(this.playlistIndex,e.index));this.Hy=e.pyv_view_beacon_url;this.Rm=e.pyv_quartile25_beacon_url;this.bS=e.pyv_quartile50_beacon_url;this.L2=e.pyv_quartile75_beacon_url;this.Sf=e.pyv_quartile100_beacon_url;var Fz4=e.session_data;!this.Im&&Fz4&&(this.Im=Fv(Fz4,"&").feature);this.isFling=e$(this.isFling? 1:0,e.is_fling)===1;this.vnd=e$(this.vnd,e.vnd);this.forceAdsUrl=a6(this.forceAdsUrl,e.force_ads_url);this.n8=a6(this.n8,e.ctrl);this.qO=a6(this.qO,e.ytr);this.mj=e.ytrcc;this.En=e.ytrexp;this.SS=e.ytrext;this.mJ=a6(this.mJ,e.adformat);this.JF=a6(this.JF,e.attrib);this.slotPosition=e$(this.slotPosition,e.slot_pos);this.breakType=e.break_type;this.CE=ue(this.CE,e.ssrt);this.videoId=Ph(e)||this.videoId;this.Z=a6(this.Z,e.vss_credentials_token);this.H4=a6(this.H4,e.vss_credentials_token_type);this.t1= ue(this.t1,e.audio_only);this.GQ=ue(this.GQ,e.aac_high);this.fN=ue(this.fN,e.prefer_low_quality_audio);this.JX=ue(this.JX,e.uncap_inline_quality);this.X("html5_enable_qoe_cat_list")?e.qoe_cat&&(this.Iq=this.Iq.concat(e.qoe_cat.split(","))):this.sQ=a6(this.sQ,e.qoe_cat);this.wR=ue(this.wR,e.download_media);var M6L=e.prefer_gapless;this.D=M6L!=null?ue(this.D,M6L):this.D?this.D:this.gP.preferGapless&&this.gP.supportsGaplessShorts();nll(this.playerResponse)&&this.N.push("ad");var jN3=e.adaptive_fmts; jN3&&(this.adaptiveFormats=jN3,this.nf("adpfmts",{},!0));var ucT=e.allow_embed;ucT&&(this.allowEmbed=Number(ucT)===1);var KzT=e.backgroundable;KzT&&(this.backgroundable=Number(KzT)===1);var eL4=e.autonav;eL4&&(this.isAutonav=Number(eL4)===1);var aYq=e.autoplay;aYq&&(this.o4=this.U5=Number(aYq)===1);var rrI=e.iv_load_policy;rrI&&(this.annotationsLoadPolicy=KK(this.annotationsLoadPolicy,rrI,nQ));var PjL=e.cc_lang_pref;PjL&&(this.captionsLanguagePreference=a6(PjL,this.captionsLanguagePreference));var Btj= e.cc_load_policy;Btj&&(this.H1=KK(this.H1,Btj,nQ));var hLI;this.deviceCaptionsOn=(hLI=e.device_captions_on)!=null?hLI:void 0;var cr4;this.Vs=(cr4=e.device_captions_lang_pref)!=null?cr4:"";var obq;this.VQ=(obq=e.viewer_selected_caption_langs)!=null?obq:[];var nbq=e.cached_load;nbq&&(this.M6=ue(this.M6,nbq));if(e.dash==="0"||e.dash===0||e.dash===!1)this.Fi=!0;var yr4=e.dashmpd;yr4&&(this.J9=g.EW(yr4,{cpn:this.clientPlaybackNonce}));var Ttz=e.delay;Ttz&&(this.bv=Y8(Ttz));var XS4=this.OL||e.end;if(this.dW? XS4!=null:XS4!=void 0)this.clipEnd=e$(this.clipEnd,XS4);var Xu3=e.fmt_list;Xu3&&(this.o1=Xu3);e.heartbeat_preroll&&this.N.push("heartbeat");this.Up=-Math.floor(Math.random()*10);this.jP=-Math.floor(Math.random()*40);var fY4=e.is_listed;fY4&&(this.isListed=ue(this.isListed,fY4));var ArJ=e.is_private;ArJ&&(this.isPrivate=ue(this.isPrivate,ArJ));var Ubj=e.is_dni;Ubj&&(this.nB=ue(this.nB,Ubj));var CjN=e.dni_color;CjN&&(this.s9=a6(this.s9,CjN));var Gjl=e.pipable;Gjl&&(this.pipable=ue(this.pipable,Gjl)); this.f2=(this.Od=this.pipable&&this.gP.Mo)&&!this.gP.showMiniplayerButton;var EbN=e.paid_content_overlay_duration_ms;EbN&&(this.paidContentOverlayDurationMs=Y8(EbN));var bPj=e.paid_content_overlay_text;bPj&&(this.paidContentOverlayText=bPj);var tcz=e.url_encoded_fmt_stream_map;tcz&&(this.sx=tcz);var gbL=e.hls_formats;gbL&&(this.hlsFormats=gbL);var ZP3=e.hlsvp;ZP3&&(this.hlsvp=ZP3);var YU=e.live_start_walltime;YU&&(this.o2m=typeof YU==="number"?YU:Y8(YU));var wq=e.live_manifest_duration;wq&&(this.fg= typeof wq==="number"?wq:Y8(wq));var OPN=e.player_params;OPN&&(this.playerParams=OPN);var kjy=e.partnerid;kjy&&(this.partnerId=e$(this.partnerId,kjy));var dbj=e.probe_url;dbj&&(this.probeUrl=H_(g.EW(dbj,{cpn:this.clientPlaybackNonce})));var fQ4=e.pyv_billable_url;fQ4&&U9j(fQ4)&&(this.F7=fQ4);var ACL=e.pyv_conv_url;ACL&&U9j(ACL)&&(this.n2=ACL);yez(this,e);this.startSeconds>0?this.X("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.O8||this.Rq||e.start||e.startSeconds)&&this.nf("lss", {css:this.startSeconds,pcss:this.O8,iss:this.Rq,ps:e.start||void 0,pss:e.startSeconds||void 0}):this.T$=this.startSeconds=e$(this.startSeconds,this.O8||this.Rq||e.start||e.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var JrO=e.live_utc_start;if(JrO!=null)this.liveUtcStartSeconds=Number(JrO);else{var Uu4=this.startSeconds;Uu4&&isFinite(Uu4)&&Uu4>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Db3=e.utc_start_millis; Db3&&(this.liveUtcStartSeconds=Number(Db3)*.001)}var Vcl=e.stream_time_start_millis;Vcl&&(this.kh=Number(Vcl)*.001);var CJz=this.Rq||e.start;(this.dW?CJz==null||Number(e.resume)===1:CJz==void 0||e.resume=="1")||this.isLivePlayback||(this.clipStart=e$(this.clipStart,CJz));var $bI=e.url_encoded_third_party_media;$bI&&(this.B8=ux($bI));var GPy=e.ypc_offer_button_formatted_text;if(GPy){var Qxy=JSON.parse(GPy);this.v1=Qxy!=null?Qxy:null;this.qY=GPy}var Wr4=e.ypc_offer_button_text;Wr4&&(this.QD=Wr4);var lY4= e.ypc_offer_description;lY4&&(this.bK=lY4);var Lrl=e.ypc_offer_headline;Lrl&&(this.D2=Lrl);var YaL=e.ypc_full_video_message;YaL&&(this.Sd=YaL);var wuq=e.ypc_offer_id;wuq&&(this.Kq=wuq);var pu3=e.ypc_buy_url;pu3&&(this.Ig=pu3);var iPj=e.ypc_item_thumbnail;iPj&&(this.eP=iPj);var zLI=e.ypc_item_title;zLI&&(this.pT=zLI);var Nty=e.ypc_item_url;Nty&&(this.Xg=Nty);var xb3=e.ypc_vid;xb3&&(this.AN=xb3);e.ypc_overlay_timeout&&(this.wx=Number(e.ypc_overlay_timeout));var IYz=e.ypc_trailer_player_vars;IYz&&(this.W8= jX(IYz));var HPJ=e.ypc_original_itct;HPJ&&(this.Ay=HPJ);this.ix=a6(this.ix,e.ucid);this.UX=e.storyboard_spec||null;this.cB=e.live_storyboard_spec||null;this.wK=e.iv_endscreen_url||null;this.G0=ue(this.G0,e.ypc_module);this.BV=ue(this.BV,e.ypc_clickwrap_module);this.G0&&this.N.push("ypc");this.BV&&this.N.push("ypc_clickwrap");this.Ot={video_id:e.video_id,eventid:e.eventid,cbrand:e.cbrand,cbr:e.cbr,cbrver:e.cbrver,c:e.c,cver:e.cver,ctheme:e.ctheme,cplayer:e.cplayer,cmodel:e.cmodel,cnetwork:e.cnetwork, cos:e.cos,cosver:e.cosver,cplatform:e.cplatform,user_age:e.user_age,user_display_image:e.user_display_image,user_display_name:e.user_display_name,user_gender:e.user_gender,csi_page_type:e.csi_page_type,csi_service_name:e.csi_service_name,enablecsi:e.enablecsi,enabled_engage_types:e.enabled_engage_types};hQq(this,e);var qaL=e.cotn;qaL&&(this.cotn=qaL);if(ZRq(this))LY(this)&&(this.isLivePlayback&&this.J9&&(this.mf=!0),this.Uo&&(this.by=!0));else if(ORL(this))this.mf=!0;else{var vbz,RLL,Say=((vbz=this.playerResponse)== null?void 0:(RLL=vbz.streamingData)==null?void 0:RLL.adaptiveFormats)||[];if(Say.length>0)var kR=gYI(this,Say);else{this.X("html5_log_pafmtstr_ctmp")&&this.nf("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var sx4=this.adaptiveFormats;if(sx4&&!LY(this)){this.gP.C.B&&(jf=!0);var p3=x0(sx4),EjI=this.DX,mby=this.lengthSeconds,QfB=this.isLivePlayback,d7=this.zX,iR=this.gP,WpN=ZZ4(p3);if(QfB||d7){var Fry=iR==null?void 0:iR.experiments,zT=new pz("",Fry,!0);zT.QX=!0;zT.isManifestless=!0;zT.T=!d7;zT.isLive= !d7;zT.zX=d7;for(var McT=g.Z(p3),bUL=McT.next();!bUL.done;bUL=McT.next()){var z3=bUL.value,jxj=xE(z3,EjI),PC=Il(z3.url,z3.sp,z3.s),uoI=PC.get("id");uoI&&uoI.includes("%7E")&&(zT.N=!0);var KrJ=void 0,l7b=(KrJ=Fry)==null?void 0:KrJ.FM("html5_max_known_end_time_rebase"),LpG=Number(z3.target_duration_sec)||5,YP8=Number(z3.max_dvr_duration_sec)||14400,eKy=Number(PC.get("mindsq")||PC.get("min_sq")||"0"),aML=Number(PC.get("maxdsq")||PC.get("max_sq")||"0")||Infinity;zT.lB=zT.lB||eKy;zT.E2=zT.E2||aML;var wf9= !K_(jxj.mimeType);PC&&Lz(zT,new Ga(PC,jxj,{qc:LpG,eQ:wf9,g_:YP8,lB:eKy,E2:aML,zW:300,zX:d7,D7:l7b}))}var rFL=zT}else{if(WpN==="FORMAT_STREAM_TYPE_OTF"){var p2=mby;p2=p2===void 0?0:p2;var NQ=new pz("",iR==null?void 0:iR.experiments,!1);NQ.duration=p2||0;for(var Pnl=g.Z(p3),tyN=Pnl.next();!tyN.done;tyN=Pnl.next()){var xB=tyN.value,gjl=xE(xB,EjI,NQ.duration),ZU4=Il(xB.url,xB.sp,xB.s);if(ZU4)if(gjl.streamType==="FORMAT_STREAM_TYPE_OTF")Lz(NQ,new Ex(ZU4,gjl,"sq/0"));else{var pfZ=FH(xB.init),iKa=FH(xB.index); Lz(NQ,new QH(ZU4,gjl,pfZ,iKa))}}NQ.isOtf=!0;var Bq4=NQ}else{var zi=mby;zi=zi===void 0?0:zi;var ND=new pz("",iR==null?void 0:iR.experiments,!1);ND.duration=zi||0;for(var hK4=g.Z(p3),OU4=hK4.next();!OU4.done;OU4=hK4.next()){var Ig=OU4.value,z_5=xE(Ig,EjI,ND.duration),Ne9=FH(Ig.init),xr5=FH(Ig.index),cFI=Il(Ig.url,Ig.sp,Ig.s);cFI&&Lz(ND,new QH(cFI,z_5,Ne9,xr5))}Bq4=ND}rFL=Bq4}var oU3=rFL;if(p3.length>0){var nUO=p3[0];if(this.G().playerStyle==="hangouts-meet"&&nUO.url){var I79=g.KG(nUO.url);this.vj=this.vj|| Number(I79.expire)}}var HKw=this.isLivePlayback&&!this.zX&&!this.TQ&&!this.isPremiere;this.X("html5_live_head_playable")&&(!Y0(this)&&HKw&&this.nf("missingLiveHeadPlayable",{}),this.gP.HW==="yt"&&(oU3.XM=!0));kR=oU3}else kR=null;this.nf("pafmts",{isManifestFilled:!!kR})}if(kR){iz(this,kR);var yFI=!0}else yFI=!1;yFI?this.enableServerStitchedDai=this.enableServerStitchedDai&&w3(this):this.J9&&(this.gP.HW==="yt"&&this.QX()&&this.X("drm_manifestless_unplugged")&&this.X("html5_deprecate_manifestful_fallback")? this.nf("deprecateMflFallback",{}):this.mf=!0)}var kP4=e.adpings;kP4&&(this.Fx=kP4?jX(kP4):null);var TqI=e.feature;TqI&&(this.E8=TqI);var XtL=e.referrer;XtL&&(this.referrer=XtL);this.clientScreenNonce=a6(this.clientScreenNonce,e.csn);this.Pg=e$(this.Pg,e.root_ve_type);this.gz=e$(this.gz,e.kids_age_up_mode);this.dW||e.kids_app_info==void 0||(this.kidsAppInfo=e.kids_app_info);this.dW&&e.kids_app_info!=null&&(this.kidsAppInfo=e.kids_app_info);this.yQ=ue(this.yQ,e.upg_content_filter_mode);this.unpluggedFilterModeType= e$(this.unpluggedFilterModeType,e.unplugged_filter_mode_type);var fMl=e.unplugged_location_info;fMl&&(this.RO=fMl);var AFI=e.unplugged_partner_opt_out;AFI&&(this.b1=a6("",AFI));this.il=ue(this.il,e.disable_watch_next);this.pC=a6(this.pC,e.internal_ip_override);this.T_=!!e.is_yto_interstitial;(this.interstitials.length||this.T_)&&this.N.push("yto");var UDN=e.hB;UDN&&(this.hB=UDN);this.HW=a6(this.HW,e.csi_timer);e.watchUrl&&(this.watchUrl=e.watchUrl);var BC=e.watch_endpoint;this.X("html5_attach_watch_endpoint_ustreamer_config")&& BC&&gRJ(this,BC);if(BC==null?0:BC.ustreamerConfig)this.aG=Qw(BC.ustreamerConfig);var Cnj,Giy,EUj=BC==null?void 0:(Cnj=BC.loggingContext)==null?void 0:(Giy=Cnj.qoeLoggingContext)==null?void 0:Giy.serializedContextData;EUj&&(this.e$W=EUj);g.uP(this.gP)&&this.gP.gb&&(this.embedsRct=a6(this.embedsRct,e.rct),this.embedsRctn=a6(this.embedsRctn,e.rctn));e.embed_config&&(this.Cg=e.embed_config);this.HI=this.HI||!!e.pause_at_start;e.default_active_source_video_id&&(this.defaultActiveSourceVideoId=e.default_active_source_video_id)}; g.E.G=function(){return this.gP}; g.E.X=function(e){return this.gP.X(e)}; g.E.uQ=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.E.hasSupportedAudio51Tracks=function(){var e;return!((e=this.py)==null||!e.HA)}; g.E.getUserAudio51Preference=function(){var e=1;gd(this.gP)&&this.X("html5_ytv_surround_toggle_default_off")?e=0:g.EA(this.gP)&&this.isLivePlayback&&this.lQ()&&(e=0);var a;return(a=g.$f("yt-player-audio51"))!=null?a:e}; g.E.Nm=function(){this.wP()||(this.S.T||this.S.unsubscribe("refresh",this.Nm,this),this.T1(-1))}; g.E.T1=function(e){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var a=kWl(this.S,this.OB);if(a.length>0){for(var r=g.Z(a),P=r.next();!P.done;P=r.next())P=P.value,P.startSecs=Math.max(P.startSecs,this.N5()),this.X("html5_cuepoint_identifier_logging")&&P.event==="start"&&this.nf("cuepoint",{pubCue:P.identifier,segNum:e});this.publish("cuepointupdated",a,e);this.OB+=a.length;if(w3(this)&&this.gP.UM())for(a=g.Z(a),r=a.next();!r.done;r=a.next())r=r.value,this.nf("cuepoint",{segNum:e,event:r.event, startSecs:r.startSecs,id:r.identifier.slice(-16)}),r.event==="start"&&(r=r.startSecs,this.gf.start=this.QH,this.gf.end=r+3)}}}; g.E.FF=function(){this.wP()||(this.loading=!1,this.publish("dataloaded"))}; g.E.lQ=function(){return this.Rd!==void 0?this.Rd:this.Rd=!!this.DX||!!this.S&&pt(this.S)}; g.E.x0=function(e){var a=this;if(this.wP())return D7();this.AC=this.ym=this.B=null;Gg(this,"html5_high_res_logging_always")&&(this.gP.h1=!0);return Jel(this,e).then(void 0,function(){return V7j(a,e)}).then(void 0,function(){return $kJ(a)}).then(void 0,function(){return W6L(a)})}; g.E.uD=function(e){this.B=e;DkI(this,this.B.getAvailableAudioTracks());if(this.B){e=g.Z(this.B.videoInfos);for(var a=e.next();!a.done;a=e.next()){a=a.value;var r=a.containerType;r!==0&&(this.BB[r]=a.id)}}e=this.getAvailableAudioTracks();e=e.concat(this.ih);for(a=0;a0?this.B.getAvailableAudioTracks():this.uh||[]:[]}; g.E.getAudioTrack=function(){var e=this;if(this.L&&!FQ(this.L)){var a=g.tw(this.getAvailableAudioTracks(),function(B){return B.id===e.L.id}),r; if(!a&&((r=this.L.yX)==null?0:r.id)){var P=this.L.yX.id;a=g.tw(this.getAvailableAudioTracks(),function(B){return B.yX.id===P}); this.nf("nat",{id:this.L.id,track:!!a})}return a||this.ih}if(this.uh){if(!this.w0)for(a=g.Z(this.uh),r=a.next();!r.done;r=a.next())if(r=r.value,r.yX.getIsDefault()){this.w0=r;break}return this.w0||this.ih}return this.ih}; g.E.getPlayerResponse=function(){return this.playerResponse}; g.E.getWatchNextResponse=function(){return this.Cf}; g.E.getHeartbeatResponse=function(){return this.nC}; g.E.Um=function(){return this.watchUrl?this.watchUrl:this.gP.getVideoUrl(this.videoId)}; g.E.My=function(){return!!this.S&&(A03(this.S)||UOz(this.S)||CBj(this.S))}; g.E.getEmbeddedPlayerResponse=function(){return this.U2}; g.E.z0=function(){return(this.eventLabel||this.gP.Lf)==="shortspage"}; g.E.isAd=function(){return!!this.adFormat}; g.E.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.E.w1=function(){var e,a,r;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((e=this.playerResponse)==null?0:(a=e.playerConfig)==null?0:(r=a.daiConfig)==null?0:r.ssaEnabledPlayback)}; g.E.kR=function(){return this.OA}; g.E.u0=function(){return this.G0||this.VY}; g.E.Ud=function(){return Gg(this,"html5_samsung_vp9_live")}; g.E.nf=function(e,a,r){this.publish("ctmp",e,a,r)}; g.E.oI=function(e,a,r){this.publish("ctmpstr",e,a,r)}; g.E.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.E.getGetAdBreakContext=function(e,a){e=e===void 0?NaN:e;a=a===void 0?NaN:a;var r={isSabr:QZ(this)},P,B=(P=this.getHeartbeatResponse())==null?void 0:P.adBreakHeartbeatParams;B&&(r.adBreakHeartbeatParams=B);if(this.X("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.S&&!isNaN(e)&&!isNaN(a)){a=e-a;for(var h in this.S.S)if(P=this.S.S[h],P.info.Dw()||P.info.sU())if(P=P.index,P.isLoaded()){h=P.I4(a);P=P.BZ(h)+a-P.getStartTime(h);this.nf("gabc",{t:e.toFixed(3),mt:a.toFixed(3),sg:h,igt:P.toFixed(3)}); r.livePlaybackPosition={utcTimeMillis:""+(P*1E3).toFixed(0)};break}}return r}; g.E.isEmbedsShortsMode=function(e,a){if(!g.uP(this.gP)||(this.gP.Eo||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||a)return!1;var r,P;return!!(((r=this.embeddedPlayerConfig)==null?0:(P=r.embeddedPlayerFlags)==null?0:P.isShortsExperienceEligible)&&e.width<=e.height)}; g.E.RH=function(){g.aK.prototype.RH.call(this);this.Fx=null;delete this.Do;delete this.accountLinkingConfig;delete this.S;this.B=this.nC=this.playerResponse=this.Cf=null;this.sx=this.adaptiveFormats="";delete this.botguardData;this.PW=this.suggestions=this.No=null;this.sabrContextUpdates.clear()};var n_3={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},yOI={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},cOO={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},PDj={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"},hhJ={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},BnN={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"},o_4={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.b(OL,g.N);g.E=OL.prototype;g.E.handleExternalCall=function(e,a,r){var P=this.state.D[e],B=this.state.Y[e],h=P;if(B)if(r&&NT(r,Ucw))h=B;else if(!P)throw Error('API call from an untrusted origin: "'+r+'"');this.logApiCall(e,r);if(h){r=!1;P=g.Z(a);for(B=P.next();!B.done;B=P.next())if(String(B.value).includes("javascript:")){r=!0;break}r&&g.VJ(Error('Dangerous call to "'+e+'" with ['+a+"]."));return h.apply(this,a)}throw Error('Unknown API method: "'+e+'".');}; g.E.logApiCall=function(e,a,r){var P=this.app.G();P.ZI&&!this.state.N.has(e)&&(this.state.N.add(e),g.BU("webPlayerApiCalled",{callerUrl:P.loaderUrl,methodName:e,origin:a||void 0,playerStyle:P.playerStyle||void 0,embeddedPlayerMode:P.Eo,errorCode:r}))}; g.E.publish=function(e){var a=g.xN.apply(1,arguments);this.state.B.publish.apply(this.state.B,[e].concat(g.UO(a)));if(e==="videodatachange"||e==="resize"||e==="cardstatechange")this.state.T.publish.apply(this.state.T,[e].concat(g.UO(a))),this.state.L.publish.apply(this.state.L,[e].concat(g.UO(a)))}; g.E.qF=function(e){var a=g.xN.apply(1,arguments);this.state.B.publish.apply(this.state.B,[e].concat(g.UO(a)));this.state.T.publish.apply(this.state.T,[e].concat(g.UO(a)))}; g.E.Og=function(e){var a=g.xN.apply(1,arguments);this.state.B.publish.apply(this.state.B,[e].concat(g.UO(a)));this.state.T.publish.apply(this.state.T,[e].concat(g.UO(a)));this.state.L.publish.apply(this.state.L,[e].concat(g.UO(a)))}; g.E.cG=function(e){var a=g.xN.apply(1,arguments);this.state.B.publish.apply(this.state.B,[e].concat(g.UO(a)));this.state.T.publish.apply(this.state.T,[e].concat(g.UO(a)));this.state.L.publish.apply(this.state.L,[e].concat(g.UO(a)));this.state.C.publish.apply(this.state.C,[e].concat(g.UO(a)))}; g.E.X=function(e){return this.app.G().X(e)}; g.E.RH=function(){if(this.state.element){var e=this.state.element,a;for(a in this.state.S)this.state.S.hasOwnProperty(a)&&(e[a]=null);this.state.element=null}g.N.prototype.RH.call(this)};g.b(VT,g.Oy);VT.prototype.publish=function(e){var a=g.xN.apply(1,arguments);if(this.C.has(e))return this.C.get(e).push(a),!0;var r=!1;try{for(a=[a],this.C.set(e,a);a.length;)r=g.Oy.prototype.publish.call.apply(g.Oy.prototype.publish,[this,e].concat(g.UO(a.shift())))}finally{this.C.delete(e)}return r};g.b($d,g.N);$d.prototype.RH=function(){this.C.dispose();this.L.dispose();this.T.dispose();this.B.dispose();this.N=this.S=this.Y=this.D=this.Z=void 0};var GCN=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.b(Wx,OL);g.E=Wx.prototype;g.E.getApiInterface=function(){return Array.from(this.state.Z)}; g.E.TC=function(e,a){this.state.C.subscribe(e,a)}; g.E.OyW=function(e,a){this.state.C.unsubscribe(e,a)}; g.E.getPlayerState=function(e){return AYq(this.app,e)}; g.E.gH=function(){return AYq(this.app)}; g.E.sLQ=function(e,a,r){Yd(this)&&(IY(this.app,!0,1),v0(this.app,e,a,r,1))}; g.E.getCurrentTime=function(e,a,r){var P=this.getPlayerState(e);if(this.app.getAppState()===2&&P===5){var B;return((B=this.app.getVideoData())==null?void 0:B.startSeconds)||0}return this.X("web_player_max_seekable_on_ended")&&P===0?wZ(this.app,e):e?this.app.getCurrentTime(e,a,r):this.app.getCurrentTime(e)}; g.E.rG=function(){return this.app.getCurrentTime(1)}; g.E.Sa=function(){var e=this.app.BZ(1);return isNaN(e)?this.getCurrentTime(1):e}; g.E.H$=function(){return this.app.getDuration(1)}; g.E.Sc=function(e,a){e=g.ID(Math.floor(e),0,100);isFinite(e)&&LF(this.app,{volume:e,muted:this.isMuted()},a)}; g.E.NyQ=function(e){this.Sc(e,!1)}; g.E.ej=function(e){LF(this.app,{muted:!0,volume:this.getVolume()},e)}; g.E.KrQ=function(){this.ej(!1)}; g.E.f1=function(e){LV(this.app)&&!this.X("embeds_enable_emc3ds_muted_autoplay")||LF(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},e)}; g.E.YUm=function(){LV(this.app)&&this.X("embeds_enable_emc3ds_muted_autoplay")||this.f1(!1)}; g.E.getPlayerMode=function(){var e={};this.app.getVideoData().nB&&(e.pfp={enableIma:this.app.TX().allowImaMonetization,autoplay:cx(this.app.TX()),mutedAutoplay:this.app.TX().mutedAutoplay});return e}; g.E.JG=function(){var e=this.app.getPresentingPlayerType();if(e===2&&!this.app.IU()){var a=i6(this.app.eO());if(!(UMG(a)||g.uP(this.app.G())&&g.S(this.app.Y$().getPlayerState(),1024))||CNN(a))return}(a=this.app.DW().K5)?a.playVideo():this.app.playVideo(e)}; g.E.AiP=function(){IY(this.app,!0,1);this.JG()}; g.E.pauseVideo=function(e){var a=this.app.getPresentingPlayerType();if(a!==2||this.app.IU()||UMG(i6(this.app.eO()))){var r=this.app.DW().K5;r?r.pauseVideo():this.app.pauseVideo(a,e)}}; g.E.EKH=function(){var e=this.app,a=!1;e.iW.h9&&(e.j1.publish("pageTransition"),a=!0);e.stopVideo(a)}; g.E.clearVideo=function(){}; g.E.getAvailablePlaybackRates=function(){var e=this.app.G();if(e.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(e.L?e.ancestorOrigins[0]:window.location.origin)||e.w0)return IFG;if(e.X("html5_enable_player_response_driven_playback_rate_clamping")){e=this.app.getVideoData();var a=e.u_,r=e.i_;return vHV.filter(function(P){return P>=a&&P<=r})}return e.supportsVarispeedExtendedFeatures?HOb:e.X("web_remix_allow_up_to_3x_playback_rate")&& g.L$(e)?q9B:Ld}return[1]}; g.E.getPlaybackQuality=function(e){return(e=this.app.Q5(e))?e.getPlaybackQuality():"unknown"}; g.E.FJo=function(){}; g.E.getAvailableQualityLevels=function(e){return(e=this.app.Q5(e))?(e=g.ba(e.jQ(),function(a){return a.quality}),e.length&&(e[0]==="auto"&&e.shift(),e=e.concat(["auto"])),e):[]}; g.E.kG=function(){return this.getAvailableQualityLevels(1)}; g.E.KP=function(){return this.A3()}; g.E.aV=function(){return 1}; g.E.getVideoLoadedFraction=function(e){return this.app.getVideoLoadedFraction(e)}; g.E.A3=function(){return this.getVideoLoadedFraction()}; g.E.lm=function(){return 0}; g.E.getSize=function(){var e=this.app.MF().getPlayerSize();return{width:e.width,height:e.height}}; g.E.setSize=function(){this.app.MF().resize()}; g.E.loadVideoById=function(e,a,r,P){if(!e)return!1;e=QT(e,a,r);return this.app.loadVideoByPlayerVars(e,P)}; g.E.Ga=function(e,a,r){e=this.loadVideoById(e,a,r,1);IY(this.app,e,1)}; g.E.cueVideoById=function(e,a,r,P){e=QT(e,a,r);this.app.cueVideoByPlayerVars(e,P)}; g.E.ye=function(e,a,r){this.cueVideoById(e,a,r,1)}; g.E.loadVideoByUrl=function(e,a,r,P){e=CD4(e,a,r);return this.app.loadVideoByPlayerVars(e,P)}; g.E.FA=function(e,a,r){e=this.loadVideoByUrl(e,a,r,1);IY(this.app,e,1)}; g.E.cueVideoByUrl=function(e,a,r,P){e=CD4(e,a,r);this.app.cueVideoByPlayerVars(e,P)}; g.E.ke=function(e,a,r){this.cueVideoByUrl(e,a,r,1)}; g.E.wH=function(){var e=this.app.G();if(e.oH)return"";var a=this.app.TX(),r=void 0;a.isLivePlayback||(r=Math.floor(this.app.getCurrentTime(1)));return e.getVideoUrl(a.videoId,this.getPlaylistId()||void 0,r)}; g.E.im=function(){return this.app.getDebugText()}; g.E.getVideoEmbedCode=function(){var e=this.app.G();if(e.oH)return"";var a=this.app.TX();return e.getVideoEmbedCode(a.isPrivate?"":a.title,this.app.TX().videoId,this.app.MF().getPlayerSize(),this.getPlaylistId()||void 0)}; g.E.R6=function(e,a,r){return ZII(this.app,e,a,r)}; g.E.removeCueRange=function(e){return this.app.sC(e)}; g.E.loadPlaylist=function(e,a,r,P){this.app.loadPlaylist(e,a,r,P)}; g.E.Yz=function(e,a,r,P){this.loadPlaylist(e,a,r,P);IY(this.app,!0,1)}; g.E.cuePlaylist=function(e,a,r,P){this.app.cuePlaylist(e,a,r,P)}; g.E.nextVideo=function(e,a){this.app.nextVideo(e,a)}; g.E.aQr=function(){this.nextVideo();IY(this.app,!0,1)}; g.E.previousVideo=function(e){this.app.previousVideo(e)}; g.E.vff=function(){this.previousVideo();IY(this.app,!0,1)}; g.E.playVideoAt=function(e){this.app.playVideoAt(e)}; g.E.xdM=function(e){this.playVideoAt(e);IY(this.app,!0,1)}; g.E.setShuffle=function(e){var a=this.app.getPlaylist();a&&a.setShuffle(e)}; g.E.setLoop=function(e){var a=this.app.getPlaylist();a&&(a.loop=e)}; g.E.LP=function(){var e=this.app.getPlaylist();if(!e)return null;for(var a=[],r=0;r=400)if(e=this.TX(),this.W.G().X("client_respect_autoplay_switch_button_renderer"))e=!!e.autoplaySwitchButtonRenderer;else{var a,r,P,B;e=!!((a=e.getWatchNextResponse())==null?0:(r=a.contents)==null?0:(P=r.twoColumnWatchNextResults)==null?0:(B=P.autoplay)==null?0:B.autoplay)!==!1}if(e)this.S||(this.S=!0,this.Nr(this.S),this.W.G().X("web_player_autonav_toggle_always_listen")||I34(this), a=this.TX(),this.QR(a.autonavState),this.W.logVisibility(this.element,this.S));else if(this.S=!1,this.Nr(this.S),!this.W.G().X("web_player_autonav_toggle_always_listen"))for(this.W.G().X("web_player_autonav_toggle_always_listen"),a=g.Z(this.T),r=a.next();!r.done;r=a.next())this.Xo(r.value)}; g.E.QR=function(e){qiq(this)?this.isChecked=e!==1:((e=e!==1)||(g.wu(),e=g.CK("web_autonav_allow_off_by_default")&&!g.pE(0,141)&&g.IM("AUTONAV_OFF_BY_DEFAULT")?!1:!g.pE(0,140)),this.isChecked=e);HAL(this)}; g.E.onClick=function(){this.isChecked=!this.isChecked;this.W.AM(this.isChecked?2:1);HAL(this);if(qiq(this)){var e=this.TX().autoplaySwitchButtonRenderer;this.isChecked&&(e==null?0:e.onEnabledCommand)?this.W.qF("innertubeCommand",e.onEnabledCommand):!this.isChecked&&(e==null?0:e.onDisabledCommand)&&this.W.qF("innertubeCommand",e.onDisabledCommand)}this.W.logClick(this.element)}; g.E.getValue=function(){return this.isChecked}; g.E.TX=function(){return this.W.getVideoData(1)};g.b(v_l,fw);g.b(Zk,g.nw);Zk.prototype.onClick=function(){this.enabled&&(ON(this,!this.checked),this.publish("select",this.checked))}; Zk.prototype.getValue=function(){return this.checked}; Zk.prototype.setEnabled=function(e){(this.enabled=e)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var JQ=["en-CA","en","es-MX","fr-CA"];g.b(W8,Zk);W8.prototype.zQ=function(e){e?this.S||(this.OM.D5(this),this.S=!0):this.S&&(this.OM.JA(this),this.S=!1);this.S&&ON(this,xT4())}; W8.prototype.L=function(){g.BD(this.element,"ytp-menuitem-highlight-transition-enabled")}; W8.prototype.B=function(e){var a=xT4();e!==a&&(a=g.wu(),zn(190,e),zn(192,!0),a.save(),this.W.qF("cinematicSettingsToggleChange",e))}; W8.prototype.RH=function(){this.S&&this.OM.JA(this);Zk.prototype.RH.call(this)};g.b(lS,fw);lS.prototype.updateCinematicSettings=function(e){this.S=e;var a;(a=this.menuItem)==null||a.zQ(e);this.api.publish("onCinematicSettingsVisibilityChange",e)};g.b(FPI,fw);g.b(Lw,fw);Lw.prototype.setCreatorEndscreenVisibility=function(e){var a;(a=I7(this.api.eO()))==null||a.Nr(e)}; Lw.prototype.S=function(e){function a(P){P==="creatorendscreen"&&(P=I7(r.api.eO()))&&P.y1M(r.hideButton)} var r=this;this.hideButton=e;this.events.j(this.api,"modulecreated",a);a("creatorendscreen")};g.b(Ye,Zk);Ye.prototype.L=function(e){this.B(e?1:0)}; Ye.prototype.T=function(){var e=this.hasDrcAudioTrack(),a=this.S()===1&&e;ON(this,a);this.setEnabled(e)}; Ye.prototype.RH=function(){this.OM.JA(this);Zk.prototype.RH.call(this)};g.b(wa,fw);wa.prototype.getDrcUserPreference=function(){return this.S}; wa.prototype.setDrcUserPreference=function(e){g.Vy("yt-player-drc-pref",e,31536E3);e!==this.S&&(this.S=e,this.updateEnvironmentData(),this.T()&&this.api.Pw())}; wa.prototype.updateEnvironmentData=function(){this.api.G().t1=this.S===1}; wa.prototype.T=function(){var e,a,r=(e=this.api.getVideoData())==null?void 0:(a=e.B)==null?void 0:a.S;if(!r)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.X("mta_drc_mutual_exclusion_removal")){var P,B,h=(P=this.api.C9())==null?void 0:(B=P.yX)==null?void 0:B.id;return va(r,function(c){var y;return c.audio.S&&((y=c.yX)==null?void 0:y.id)===h})}return va(r,function(c){var y; return((y=c.audio)==null?void 0:y.S)===!0})};g.b(pw,fw);pw.prototype.onVideoDataChange=function(){var e=this,a=this.api.getVideoData();this.api.Ai("embargo",1);var r=a==null?void 0:a.pz.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(r==null?0:r.length)?jjq(this,r.filter(function(P){return MHI(e,P)})):(a==null?0:a.cueRanges)&&jjq(this,a.cueRanges.filter(function(P){return MHI(e,P)}))}; pw.prototype.T=function(e){return e.embargo!==void 0}; pw.prototype.RH=function(){fw.prototype.RH.call(this);this.S={}};g.b(iS,fw); iS.prototype.addEmbedsConversionTrackingParams=function(e){var a=this.api.G(),r=a.widgetReferrer,P=a.J9,B=this.S,h="",c=a.getWebPlayerContextConfig();c&&(h=c.embedsIframeOriginParam||"");r.length>0&&(e.embeds_widget_referrer=r);P.length>0&&(e.embeds_referring_euri=P);a.L&&h.length>0&&(e.embeds_referring_origin=h);c&&c.embedsFeature&&(e.feature=c.embedsFeature);B.length>0&&(a.X("embeds_web_enable_lite_experiment_control_arm_logging")?B.unshift(28572):g.hJ(g.om(a))&&B.unshift(159628),a=B.join(","),a= g.x2()?a:g.$u(a,4),e.source_ve_path=a);this.S.length=0};g.b(ulT,fw);g.b(KPO,fw);g.b(zB,g.N);zB.prototype.RH=function(){g.N.prototype.RH.call(this);this.S=null;this.T&&this.T.disconnect()};g.b(a94,fw);g.b(N0,g.v);N0.prototype.show=function(){g.v.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; N0.prototype.stopTimer=function(){this.S&&(this.S.dispose(),this.S=null)}; N0.prototype.onVideoDataChange=function(e){var a,r,P=(a=this.api.getVideoData())==null?void 0:(r=a.getPlayerResponse())==null?void 0:r.playabilityStatus;P&&(a=ro4(P),g.S(this.api.getPlayerStateObject(),128)||e==="dataloaderror"||!a?(this.T=0,this.stopTimer(),this.hide()):(e=(a.remainingTimeSecs||0)*1E3,e>0&&(this.show(),this.updateValue("label",Fl(a.label)),BpL(this,e))))}; N0.prototype.RH=function(){this.stopTimer();g.v.prototype.RH.call(this)};g.b(hfT,fw);g.b(xe,g.v);xe.prototype.onClick=function(){this.j1.logClick(this.element);this.j1.qF("onFullerscreenEduClicked")}; xe.prototype.zQ=function(){this.j1.isFullscreen()?this.S?this.fade.hide():this.fade.show():this.hide();this.j1.logVisibility(this.element,this.j1.isFullscreen()&&!this.S)};g.b(IS,fw);IS.prototype.updateFullerscreenEduButtonSubtleModeState=function(e){var a;(a=this.S)!=null&&(g.cD(a.element,"ytp-fullerscreen-edu-button-subtle",e),e&&!a.T&&(a.j1.X("player_tooltip_data_title_killswitch")?a.element.setAttribute("title","Scroll for details"):a.element.setAttribute("data-tooltip-title","Scroll for details"),xd(a.j1,a.element,a),a.T=!0))}; IS.prototype.updateFullerscreenEduButtonVisibility=function(e){var a;(a=this.S)!=null&&(a.S=e,a.zQ())};g.b(coI,g.v);g.b(yoL,fw);g.b(H8,fw);H8.prototype.getSphericalProperties=function(){var e=g.mu(this.api.eO());return e?e.getSphericalProperties():{}}; H8.prototype.setSphericalProperties=function(e){if(e){var a=g.mu(this.api.eO());a&&a.setSphericalProperties(e,!0)}};g.b(q0,fw);g.E=q0.prototype;g.E.createClientVe=function(e,a,r,P){this.api.createClientVe(e,a,r,P===void 0?!1:P)}; g.E.createServerVe=function(e,a,r){this.api.createServerVe(e,a,r===void 0?!1:r)}; g.E.setTrackingParams=function(e,a){this.api.setTrackingParams(e,a)}; g.E.logClick=function(e,a){this.api.logClick(e,a)}; g.E.logVisibility=function(e,a,r){this.api.logVisibility(e,a,r)}; g.E.hasVe=function(e){return this.api.hasVe(e)}; g.E.destroyVe=function(e){this.api.destroyVe(e)};var X24=!1;RS.prototype.setPlaybackRate=function(e){this.playbackRate=Math.max(1,e)}; RS.prototype.getPlaybackRate=function(){return this.playbackRate};M0.prototype.w9=function(e){var a=g.MW(e.info.S.info,this.Qm.QX),r=e.info.lW+this.L,P=e.info.startTime*1E3;if(this.policy.ym)try{P=this.policy.ym?g.kE(e)*1E3:e.info.startTime*1E3}catch(c){Math.random()>.99&&this.logger&&(P=n3(e.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:e.info.Kb(),encodedDataView:g.Vq(P,4)})),P=e.info.startTime*1E3}var B=e.info.clipId,h=this.policy.ym?g.uQ4(e)*1E3:e.info.duration*1E3;this.policy.ym&&(P<0||h<0)&&(this.logger&&(this.logger({missingSegInfo:e.info.Kb(), startTimeMs:P,durationMs:h}),this.policy.Rq||(P<0&&(P=e.info.startTime*1E3),h<0&&(h=e.info.duration*1E3))),this.policy.Rq&&(P<0&&(P=e.info.startTime*1E3),h<0&&(h=e.info.duration*1E3)));return{formatId:a,lW:r,startTimeMs:P,clipId:B,Rl:h}}; M0.prototype.pE=function(e){this.timestampOffset=e};jz.prototype.seek=function(e,a){e!==this.targetTime&&(this.seekCount=0);this.targetTime=e;var r=this.videoTrack.T,P=this.audioTrack.T,B=this.audioTrack.mL,h=QXj(this,this.videoTrack,e,this.videoTrack.mL,a);a=QXj(this,this.audioTrack,this.policy.py?e:h,B,a);e=Math.max(e,h,a);this.L=!0;this.Qm.isManifestless&&(d$j(this,this.videoTrack,r),d$j(this,this.audioTrack,P));return e}; jz.prototype.isSeeking=function(){return this.L}; jz.prototype.Jp=function(e){this.T=e}; var $$N=2/24;var LJy=0;g.E=no.prototype;g.E.Zr=function(){this.N=this.now();DNl(this.e5,this.N);this.Lr.Zr()}; g.E.vS=function(e,a){var r=this.policy.T?(0,g.Ov)():0;yQ(this,e,a);e-this.Z<10&&this.T>0||this.e2(e,a);this.Lr.vS(e,a);this.policy.T&&(e=(0,g.Ov)()-r,this.ID+=e,this.rP=Math.max(e,this.rP))}; g.E.e2=function(e,a){var r=(e-this.Z)/1E3,P=a-this.B;this.hL||(HM(this.e5,r,P),this.fQ(r,P));this.Z=e;this.B=a}; g.E.uq=function(){this.Eo&&Y$T(this);this.Lr.uq()}; g.E.VC=function(e){this.Eo||(this.Eo=this.C-this.h9+e,this.J9=this.C,this.Te=this.D)}; g.E.Dr=function(e,a){e=e===void 0?this.D:e;a=a===void 0?this.C:a;this.T>0||(this.Y=e,this.T=a,this.HW=this.isActive=!0)}; g.E.V8=function(){return this.jT||2}; g.E.Tn=function(){}; g.E.Sr=function(){var e,a={rn:this.requestNumber,rt:(this.D-this.S).toFixed(),lb:this.C,stall:(1E3*this.L).toFixed(),ht:(this.N-this.S).toFixed(),elt:(this.Y-this.S).toFixed(),elb:this.T,d:(e=this.Lf)==null?void 0:e.n_()};this.url&&TpJ(a,this.url);this.policy.T&&(a.mph=this.rP.toFixed(),a.tph=this.ID.toFixed());a.ulb=this.Cf;a.ult=this.oH;return a}; g.E.now=function(){return(0,g.Ov)()}; g.E.deactivate=function(){this.isActive&&(this.isActive=!1)};g.b(Xc,no);g.E=Xc.prototype;g.E.Sr=function(){var e=no.prototype.Sr.call(this);e.pb=this.eE;e.pt=(1E3*this.HA).toFixed();e.se=this.dW;return e}; g.E.xl=function(){var e=this.Lr;this.ym||(this.ym=e.xl?e.xl():1);return this.ym}; g.E.Hn=function(){return this.AO?this.xl()!==1:!1}; g.E.J7=function(e,a,r){if(!this.sM){this.sM=!0;if(!this.hL){yQ(this,e,a);this.e2(e,a);var P=this.xl();this.dW=r;if(!this.hL)if(P===2){P=e-this.Y0)||fo(this,P,a),this.T>0&&x1(this.e5,a,this.L));e=(e-this.S)/ 1E3||.01;this.policy.Y&&!(this.T>0)||NR(this.e5,e,this.B,p23(this),this.wu)}this.deactivate()}}; g.E.KQ=function(e,a,r){r&&(this.ym=2);e<0&&this.jT&&(e=this.jT);a?this.GQ+=e:this.Uo+=e}; g.E.V8=function(){return this.Uo||this.GQ||no.prototype.V8.call(this)}; g.E.e2=function(e,a){var r=(e-this.Z)/1E3,P=a-this.B,B=this.xl();this.isActive?B===1&&((P>0||this.policy.C)&&(r>.2||P<1024)?(this.L+=r,P>0&&r>.2&&fo(this,this.P8?r:.05,P),this.bv=!0):P>0&&(fo(this,r,P),this.bv=!0)):a&&a>=this.policy.S&&this.Dr(e,a);no.prototype.e2.call(this,e,a)}; g.E.UA=function(e){if(!this.hL){yQ(this,e,this.C);var a=(e-this.S)/1E3;this.xl()!==2&&this.T>0&&(this.L+=(e-this.Z)/1E3,x1(this.e5,this.B,this.L));NR(this.e5,a,this.B,p23(this),this.wu,!0);e=(e-this.Z)/1E3;HM(this.e5,e,0);this.fQ(e,0)}}; g.E.Dr=function(e,a){e=e===void 0?this.D:e;a=a===void 0?this.C:a;if(!(this.T>0)&&(no.prototype.Dr.call(this,e,a),this.xl()===1)){a=(this.N-this.S)/1E3;var r=(e-this.N)/1E3;this.AO&&AH(this,this.now());this.T$||this.hL||(this.jT&&(r=Math.max(0,r-this.jT)),e=this.e5,e.Y.dT(1,a),e.Lf.dT(1,r))}}; g.E.zV=function(){this.AO&&AH(this,this.now());return this.XM}; g.E.d2=function(){var e;if(e=this.B>this.mT)e=(e=this.B)?e>=this.policy.S:!1;return e}; g.E.Hh=function(){return this.PW}; g.E.T2=function(e){e=e===void 0?this.now():e;if(this.AO){AH(this,e);if(this.ym?this.Hn():this.TQ!==this.e1){var a=this.e1;if(e0?r+e:r+Math.max(e,a)}; g.E.Yc=function(){return this.now()-this.Y}; g.E.N4=function(){return(this.B-this.T)*1E3/this.Yc()||0}; g.E.m_=function(){return this.Y};UR.prototype.feed=function(e){P4(this.S,e);this.CB()}; UR.prototype.CB=function(){if(this.L){if(!this.S.totalLength)return;var e=this.S.split(this.B-this.T),a=e.e3;e=e.v8;if(!this.Lr.VC(this.L,a,this.T,this.B))return;this.T+=a.totalLength;this.S=e;this.T===this.B&&(this.L=this.B=this.T=void 0)}for(;;){var r=0;e=g.Z(x$I(this.S,r));a=e.next().value;r=e.next().value;r=g.Z(x$I(this.S,r));e=r.next().value;r=r.next().value;if(a<0||e<0)break;if(!(r+e<=this.S.totalLength)){if(!(this.Lr.VC&&r+1<=this.S.totalLength))break;r=this.S.split(r).v8;this.Lr.VC(a,r,0, e)&&(this.L=a,this.T=r.totalLength,this.B=e,this.S=new rH([]));break}e=this.S.split(r).v8.split(e);r=e.v8;this.Lr.vu(a,e.e3);this.S=r}}; UR.prototype.dispose=function(){this.S=new rH};g.E=Co.prototype;g.E.tJ=function(){return 0}; g.E.aC=function(){return null}; g.E.aX=function(){return null}; g.E.kY=function(){return this.state>=1}; g.E.isComplete=function(){return this.state>=3}; g.E.md=function(){return this.state===5}; g.E.onStateChange=function(){}; g.E.dg=function(e){var a=this.state;this.state=e;this.onStateChange(a);this.callback&&this.callback(this,a)}; g.E.GW=function(e){e&&this.state=this.xhr.HEADERS_RECEIVED}; g.E.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(a){return""}}; g.E.g9=function(){return+this.getResponseHeader("content-length")}; g.E.Zt=function(){return this.T}; g.E.yj=function(){return this.status>=200&&this.status<300&&!!this.T}; g.E.jr=function(){return this.S.totalLength>0}; g.E.T3=function(){var e=this.S;this.S=new rH;return e}; g.E.gJ=function(){return this.S}; g.E.abort=function(){this.wP=!0;this.xhr.abort()}; g.E.y4=function(){return!0}; g.E.DH=function(){return this.B}; g.E.OU=function(){return""};g.E=v$4.prototype;g.E.getResponseHeader=function(e){return e==="content-type"?this.S.get("type"):""}; g.E.abort=function(){}; g.E.AQ=function(){return!0}; g.E.g9=function(){return this.range.length}; g.E.Zt=function(){return this.loaded}; g.E.yj=function(){return!!this.loaded}; g.E.jr=function(){return!!this.T.totalLength}; g.E.T3=function(){var e=this.T;this.T=new rH;return e}; g.E.gJ=function(){return this.T}; g.E.y4=function(){return!0}; g.E.DH=function(){return!!this.error}; g.E.OU=function(){return this.error};g.E=S$4.prototype;g.E.start=function(e){var a={credentials:"include",cache:"no-store"};Object.assign(a,this.D);this.L&&(a.signal=this.L.signal);e=new Request(e,a);fetch(e).then(this.N,this.onError).then(void 0,PU)}; g.E.onDone=function(){this.wP()||this.Lr.uq()}; g.E.getResponseHeader=function(e){return this.responseHeaders?this.responseHeaders.get(e):null}; g.E.AQ=function(){return!!this.responseHeaders}; g.E.Zt=function(){return this.T}; g.E.g9=function(){return+this.getResponseHeader("content-length")}; g.E.yj=function(){return this.status>=200&&this.status<300&&!!this.T}; g.E.jr=function(){return!!this.S.totalLength}; g.E.T3=function(){var e=this.S;this.S=new rH;return e}; g.E.gJ=function(){return this.S}; g.E.wP=function(){return this.C}; g.E.abort=function(){this.B&&this.B.cancel().catch(function(){}); this.L&&this.L.abort();this.C=!0}; g.E.y4=function(){return!0}; g.E.DH=function(){return this.Z}; g.E.OU=function(){return this.errorMessage};g.E=sXO.prototype;g.E.onDone=function(){if(!this.wP){this.status=this.xhr.status;try{this.response=this.xhr.response,this.T=this.response.byteLength}catch(e){}this.S=!0;this.Lr.uq()}}; g.E.kA=function(){this.xhr.readyState===2&&this.Lr.Zr()}; g.E.onProgress=function(e){this.wP||(this.status=this.xhr.status,this.S||(this.T=e.loaded),this.Lr.vS((0,g.Ov)(),e.loaded))}; g.E.AQ=function(){return this.xhr.readyState>=2}; g.E.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(a){return g.VJ(Error("Could not read XHR header "+e)),""}}; g.E.g9=function(){return+this.getResponseHeader("content-length")}; g.E.Zt=function(){return this.T}; g.E.yj=function(){return this.status>=200&&this.status<300&&this.S&&!!this.T}; g.E.jr=function(){return this.S&&!!this.response&&!!this.response.byteLength}; g.E.T3=function(){var e=this.response;this.response=void 0;return new rH([new Uint8Array(e)])}; g.E.gJ=function(){return new rH([new Uint8Array(this.response)])}; g.E.abort=function(){this.wP=!0;this.xhr.abort()}; g.E.y4=function(){return!1}; g.E.DH=function(){return!1}; g.E.OU=function(){return""};g.b(b3,g.N);b3.prototype.Va=function(){if(!this.qf.length)return[];var e=this.qf;this.qf=[];this.B=g.GV(e).info;return e}; b3.prototype.nL=function(){return this.qf}; b3.prototype.RH=function(){g.N.prototype.RH.call(this);this.S=null;this.qf.length=0;this.Vm.length=0;this.B=null};g.b(go,g.N);g.E=go.prototype; g.E.awr=function(){if(!this.wP()){var e=(0,g.Ov)(),a=!1;if(this.policy.gb){e=e-(this.timing.T>0?this.timing.Y:this.timing.S)-this.timing.V8()*1E3;var r=NE(ZZ(this),!1);e>=2E3*r?a=!0:e>=this.policy.qo*r&&(this.S=this.policy.oi)}else if(this.timing.T>0){if(this.C){this.policy.Q2&&(this.S=0);return}var P=this.timing.Hh();this.timing.T2();var B=this.timing.Hh();B-P>=this.policy.t1*.8?(this.S++,this.logger.debug(function(){return"Mispredicted by "+(B-P).toFixed(0)}),a=this.S>=5):this.S=0}else{var h=e- this.timing.zV(); this.policy.oi&&h>0&&(this.S+=1);a=NE(ZZ(this),!1)*this.policy.SS;(a=h>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+h.toFixed(3)})}this.S>0&&this.Lr.wr(); a?this.Ms():this.T.start()}}; g.E.Ms=function(){this.L=!0;this.Lr.q0();this.lastError="net.timeout";kA(this)}; g.E.canRetry=function(e){var a=ZZ(this);e=e?this.policy.Xg:this.policy.hN;return a.timedOut0&&(a=y$(a.S,0),e.ubyte=a,r===1&&a===0&&(e.b248180278=!0))}this.xK&&(e.rc=this.policy.SQ?this.xK:this.xK.toString());this.policy.kh&&this.Qk&&(e.tr=this.Qk);e.itag=this.info.Vm[0].S.info.itag;e.ml=""+ +this.info.Vm[0].S.QP();e.sq=""+this.info.Vm[0].lW;this.WZ&&(e.ifi=""+ +mJ(this.info.Kr.T));this.xK!==410&&this.xK!==500&&this.xK!==503||(e.fmt_unav="true");var P;(r=this.errorMessage||((P=this.xhr)==null?void 0: P.OU()))&&(e.msg=r);this.TZ&&(e.smb="1");this.info.isDecorated()&&(e.sdai="1");return e}; g.E.gq=function(){return itq(this.timing)}; g.E.OU=function(){return this.xhr.OU()||""}; g.E.d2=function(){return this.isComplete()||this.timing.d2()}; g.E.vS=function(){!this.wP()&&this.xhr&&(this.xK=this.xhr.status,this.policy.BB&&this.WV&&this.QB(!1),this.Pr()?this.GW(2):!this.Ra&&this.d2()&&(this.GW(),this.Ra=!0))}; g.E.Zr=function(){if(!this.wP()&&this.xhr){if(!this.p9&&this.xhr.AQ()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var e=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.p9=((0,g.Ov)()-e)/1E3}this.xhr.AQ()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.ZK&&!eJ4()&&g.Vy("yt-player-headers-readable",!0,2592E3);e=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var a=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),r;(r=this.Ti)==null||r.stop();this.r0=e||this.r0; this.Uj=a||this.Uj}}; g.E.uq=function(){var e=this.xhr;if(!this.wP()&&e){this.xK=e.status;e=this.D9(e);if(this.policy.kh){var a;(a=this.Ti)==null||a.stop()}e===5?kA(this.Ub):this.dg(e);this.Ub.T.stop()}}; g.E.D9=function(e){var a=this;DEq(this);if(JH(this.Ub,this.xhr.status,this.Ec?this.timing.HW||this.z9:this.xhr.yj(),!1,this.J2))return 5;var r="";DZ(this.Ub,this.xhr)&&(r=KJq(this.Ub,this.xhr));if(r)return zZ(ZZ(this.Ub)),this.info.QY(this.WZ,r),3;r=e.Zt();if(this.NQ){this.QB(!0);DEq(this);if(JH(this.Ub,this.xhr.status,this.timing.HW||this.z9,!1,this.J2))return 5;if(!this.qB){if(this.z9)return zZ(ZZ(this.Ub)),3;this.Ub.lastError="net.closed";return 5}}else{if(JH(this.Ub,this.xhr.status,this.xhr.yj(), !1,this.J2))return 5;var P=this.info.B;if(P&&P!==r||e.DH())return this.Ub.lastError="net.closed",5;this.QB(!0)}P=I9N(this)?e.getResponseHeader("X-Bandwidth-Est"):0;if(e=I9N(this)?e.getResponseHeader("X-Bandwidth-Est3"):0)this.m9=!0,this.policy.BQ&&(P=e);jXT(this.Ub,r,P?Number(P):0,this.info.Vm[0].type===5);this.logger.debug(function(){var B=a.timing;return"Succeeded, rtpd="+(B.HA*1E3+B.S-Date.now()).toFixed(0)}); return 4}; g.E.canRetry=function(){this.wP();var e=this.info.isDecorated();return this.Ub.canRetry(e)}; g.E.onStateChange=function(){this.isComplete()&&(this.policy.t6?this.q0():this.timing.deactivate())}; g.E.Ms=function(){this.Ub.Ms()}; g.E.wr=function(){this.callback&&this.callback(this,this.state)}; g.E.lP=function(){return this.Ub.lP()}; g.E.dispose=function(){Co.prototype.dispose.call(this);this.Ub.dispose();var e;(e=this.Ti)==null||e.dispose();this.policy.t6||this.q0()}; g.E.q0=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.E.Va=function(){if(!this.nL().length)return[];this.UT=!0;return this.WV.Va()}; g.E.Pr=function(){if(this.state<1)return!1;if(this.WV&&this.WV.qf.length)return!0;var e;return((e=this.xhr)==null?0:e.jr())?!0:!1}; g.E.nL=function(){this.QB(!1);return this.WV?this.WV.nL():[]}; g.E.QB=function(e){try{if(e||this.xhr.AQ()&&this.xhr.jr()&&!DZ(this.Ub,this.xhr)&&!this.NJ)this.WV||(this.WV=new b3(this.policy,this.info.Vm)),this.xhr.jr()&&(this.NQ?this.NQ.feed(this.xhr.T3()):tH(this.WV,this.xhr.T3(),e&&!this.xhr.jr()))}catch(a){this.NQ?kZ3(this,a):g.VJ(a)}}; g.E.vu=function(e,a){switch(e){case 21:e=a.split(1).v8;dEN(this,e);break;case 22:this.qB=!0;tH(this.WV,new rH([]),!0);break;case 43:if(e=kB(new EV(a),1))this.info.QY(this.WZ,e),this.z9=!0;break;case 45:a=L_(new EV(a));e=a.QA;a=a.Dp;e&&a&&(this.Y0=e/a);break;case 44:this.C0=ddj(new EV(a));var r,P,B;!this.timing.HW&&((r=this.C0)==null?void 0:r.action)===4&&((P=this.C0)==null?0:(B=P.D8)==null?0:B.Ec)&&(this.Ec=this.C0.D8.Ec);break;case 53:this.policy.kh&&(e=Z$z(new EV(a)).gx)&&(this.Ti||(this.gx=e,this.Ti= new g.vP(this.eG,e,this)),this.Ti.start());break;case 60:this.CR=l7(new EV(a));break;case 58:if(e=uBz(new EV(a)))this.cw=e,e.cw===3&&(this.J2=!0)}}; g.E.VC=function(e,a,r,P){r||this.timing.VC(P);if(e!==21)return!1;if(e=this.policy.BB)if(e*=this.info.Vm[0].S.info.NF,a.totalLength+r!==P&&a.totalLength0)return!1;if(!this.xhr.AQ())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.NQ)var e=!this.info.B;else this.xhr.g9()?e=!1:(e=this.xhr.getResponseHeader("content-type"),e=e==="audio/mp4"||e==="video/mp4"||e==="video/webm");if(!e)return!1;if(isNaN(this.info.K_)){e=this.xhr.getResponseHeader("x-head-seqnum");var a=this.timing.policy.D?1:0;if(!e)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(e)>this.info.Vm[0].lW+a)return!1}return!0}; g.E.SR=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.E.aC=function(){this.xhr&&(this.r0=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.r0}; g.E.aX=function(){this.xhr&&(this.Uj=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Uj}; g.E.P7=function(){return this.Ub.P7()}; g.E.eG=function(){if(!this.wP()&&this.xhr){this.Qk="heartbeat";var e=this.Ub;e.S+=2;this.wr()}};g.b(wo,no);g.E=wo.prototype;g.E.e2=function(e,a){var r=(e-this.Z)/1E3,P=a-this.B;this.T>0?P>0&&(this.TQ&&(r>.2||P<1024?(this.L+=r,r>.2&&VvL(this,.05,P)):VvL(this,r,P)),this.e1&&(this.XM+=P,this.Uo+=r)):a>this.policy.S&&this.Dr(e,a);no.prototype.e2.call(this,e,a)}; g.E.J7=function(e,a){yQ(this,e,a);this.e2(e,a);this.TQ&&(a=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.T>0&&x1(this.e5,this.XM,this.L),e=(e-this.S)/1E3||.01,this.policy.Y&&!(this.T>0)||NR(this.e5,e,this.B,a,!1))}; g.E.UA=function(e){yQ(this,e,this.C);var a=(e-this.Z)/1E3;HM(this.e5,a,0);this.fQ(a,0);!this.TQ&&this.T>0||(a=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.T>0&&(this.L+=(e-this.Z)/1E3,x1(this.e5,this.XM,this.L)),NR(this.e5,(e-this.S)/1E3||.01,this.B,a,!1,!0))}; g.E.rV=function(e){e=e.b3||2147483647;(e&2)!==2&&(this.e1=!1);(e&1)===1&&(this.TQ=!0)}; g.E.dV=function(e){e=e.b3||2147483647;(e&2)===2&&(this.e1=!1);(e&1)===1&&(this.TQ=!1)}; g.E.m_=function(){return this.Y}; g.E.Yc=function(){var e=this.e1?this.now()-this.Z:0;return Math.max(this.Uo*1E3+e,1)}; g.E.N4=function(){return this.XM*1E3/this.Yc()}; g.E.Dr=function(e,a){e=e===void 0?this.D:e;a=a===void 0?this.C:a;this.T>0||(no.prototype.Dr.call(this,e,a),a=this.e5,e=(e-this.N)/1E3,a.Y.dT(1,(this.N-this.S)/1E3),a.Lf.dT(1,e))}; g.E.Tn=function(e){this.GQ=e}; g.E.Sr=function(){var e=no.prototype.Sr.call(this);e.rbw=this.N4();e.rbe=+this.e1;e.gbe=+this.TQ;e.ackt=(this.GQ-this.S).toFixed();return e}; g.E.T2=function(){}; g.E.Hh=function(){return NaN}; g.E.zV=function(){return this.S+this.snapshot.delay*1E3};po.prototype.vu=function(e,a){switch(e){case 20:e=new EV(a);e={Nj:gH(e,1),videoId:kB(e,2),itag:gH(e,3),lmt:gH(e,4),xtags:kB(e,5),Xt:gH(e,6),GU:ZP(e,8),JB:gH(e,9),rLo:gH(e,10),startMs:gH(e,11),durationMs:gH(e,12),E3:gH(e,14),timeRange:dH(e,15,wsz),yl:gH(e,16),jj:gH(e,17),clipId:kB(e,1E3)};this.IN(e);break;case 21:this.Oi(a,!1);break;case 22:this.I5(a);break;case 31:e=V$(a,AxL);this.Iy(e);break;case 52:e=V$(a,O$j);this.V3(e);break;default:this.uR(e,a)}}; po.prototype.IN=function(){}; po.prototype.uR=function(){};g.b(i3,po);g.E=i3.prototype; g.E.uR=function(e,a){switch(e){case 35:this.E5(a);break;case 44:this.qE(a);break;case 43:this.Xf(a);break;case 53:this.Zk(a);break;case 55:e=new EV(a);dH(e,1,Ddj);dH(e,2,Q9J);break;case 56:this.Gj();break;case 57:this.Uh(a);break;case 42:this.SC(a);break;case 45:this.KT(a);break;case 59:this.y6(a);break;case 51:this.ME(a);break;case 49:this.rV(a);break;case 50:this.dV(a);break;case 47:this.F8(a);break;case 58:this.e0(a);break;case 61:this.Lr.Su.Tn((0,g.Ov)());break;case 66:this.Mz(a);break;case 46:this.Yw(a); break;case 67:this.onSnackbarMessage(a);break;case 69:this.Fq(a)}}; g.E.ME=function(e){e=new EV(e);e={Vmf:DP(e,1,VN),kgQ:DP(e,2,VN)};this.Lr.ME(e)}; g.E.y6=function(e){var a=new EV(e);e=JT(a,1);var r=JT(a,2);a=JT(a,3);this.Lr.y6(e,r,a)}; g.E.KT=function(e){e=L_(new EV(e));this.Lr.KT(e)}; g.E.F8=function(e){e=V$(e,GHL);this.Lr.F8(e)}; g.E.SC=function(e){e=new EV(e);e={videoId:kB(e,1),formatId:dH(e,2,VN),endTimeMs:gH(e,3),gxf:gH(e,4),mimeType:kB(e,5),ws:dH(e,6,ogN),indexRange:dH(e,7,ogN),D_:dH(e,8,ng4)};this.Lr.SC(e)}; g.E.Uh=function(e){e=Q9J(new EV(e));this.Lr.Uh(e)}; g.E.Gj=function(){this.Lr.Gj()}; g.E.E5=function(e){e=UdT(new EV(e));this.Lr.E5(e)}; g.E.Zk=function(e){e=Z$z(new EV(e));this.Lr.Zk(e)}; g.E.qE=function(e){e=ddj(new EV(e));this.Lr.qE(e)}; g.E.Xf=function(e){e={redirectUrl:kB(new EV(e),1)};this.Lr.Xf(e)}; g.E.Oi=function(e){var a=y$(e,0);if(e.totalLength!==1){e=e.split(1).v8;var r=this.T[a]||null;r&&v$(this.Lr.oU,a,r,e)}}; g.E.I5=function(e){e=y$(e,0);var a=this.T[e]||null;a&&this.Lr.I5(e,a)}; g.E.V3=function(e){this.Lr.V3(e)}; g.E.IN=function(e){var a=e.Nj,r=e.GU,P=e.Xt,B=e.jj,h=e.yl,c=e.JB,y=e.startMs,T=e.durationMs,X=e.timeRange,f=e.E3,A=e.clipId,U=Sv(e);e=QbG.has(NW[""+e.itag]);this.T[a]=U;this.Lr.KQ(U,e,{Nj:a,GU:!!r,Xt:P!=null?P:-1,JB:c!=null?c:-1,startMs:y!=null?y:-1,durationMs:T!=null?T:-1,E3:f,jj:B,yl:h,clipId:A,timeRange:X})}; g.E.rV=function(e){e={b3:gH(new EV(e),1)};this.Lr.rV(e)}; g.E.dV=function(e){e={b3:gH(new EV(e),1)};this.Lr.dV(e)}; g.E.Iy=function(e){this.Lr.Iy(e)}; g.E.e0=function(e){e=uBz(new EV(e));this.Lr.e0(e)}; g.E.Mz=function(e){e={Vg:dH(new EV(e),1,tWO)};this.Lr.Mz(e)}; g.E.onSnackbarMessage=function(e){e=gH(new EV(e),1);this.Lr.onSnackbarMessage(e)}; g.E.Fq=function(e){e={cP:DP(new EV(e),1,cxy)};this.Lr.Fq(e)}; g.E.Yw=function(e){e=new EV(e);e={reloadPlaybackParams:dH(e,1,jKl),TB:ZP(e,2)};this.Lr.Yw(e)};g.b(z2,g.N);g.E=z2.prototype;g.E.wC=function(){return Array.from(this.PO.keys())}; g.E.Ce=function(e){e=this.PO.get(e);var a=e.qf;e.uO+=a.totalLength;e.qf=new rH;return a}; g.E.iQ=function(e){return this.PO.get(e).iQ}; g.E.h2=function(e){return this.PO.get(e).h2}; g.E.KQ=function(e,a,r){this.PO.get(e)||LH4(this,e,a);a=this.PO.get(e);this.Qm?(e=w5j(this,e,r),Ykj(this,r.Nj,a,e)):(r.GU?a.Ze=r.E3:a.Q6.push(r),a.jn.push(r))}; g.E.GJ=function(e){var a;return((a=this.PO.get(e))==null?void 0:a.Vm)||[]}; g.E.GW=function(){for(var e=g.Z(this.PO.values()),a=e.next();!a.done;a=e.next())if(a=a.value,a.r$){if(a.onProgress)a.onProgress();a.r$=!1}}; g.E.I5=function(e,a){this.logger.debug(function(){return"[onMediaEnd] formatId: "+a}); var r=this.PO.get(a);Na?r&&!r.iQ&&(r.f8.get(e)?r.f8.get(e).A2=!0:r.f8.set(e,{data:new rH,dF:0,A2:!0}),r.h2=!0):r&&!r.h2&&(r.h2=!0)}; g.E.Va=function(e){if(Na){var a=this.PO.get(e);if(a)for(var r=g.Z(a.f8),P=r.next();!P.done;P=r.next()){var B=g.Z(P.value);P=B.next().value;B=B.next().value;var h=a.n6.get(P);if(KW(h[0])){if(!B.A2)continue;var c=B.data,y=0,T=[];h=g.Z(h);for(var X=h.next();!X.done;X=h.next()){X=X.value;var f=X.B,A=B4(c,y,f);y+=f;T.push(new gj(X,A))}a.Bm.push.apply(a.Bm,g.UO(T))}else if(B.data.totalLength>0||!h[0].range&&B.A2)c=void 0,y=h[0],T=B.dF,h=B.data,y.range||(c=B.A2),c=new gj(JXj(y,y.T+T,h.totalLength,c),h), B.dF+=c.info.B,a.Bm.push(c);a.f8.get(P).data=new rH;B.A2&&a.f8.delete(P)}e=this.PO.get(e);if(!e)return[];a=e.Bm;e.Bm=[];r=g.Z(a);for(P=r.next();!P.done;P=r.next())e.uO+=P.value.info.B;return a||[]}r=(a=this.PO.get(e))==null?void 0:a.WV;if(!r)return[];this.QB(e,r);return r.Va()}; g.E.Pr=function(e){if(Na)return qa(this,e);var a,r,P;return!!((r=(a=this.PO.get(e))==null?void 0:a.WV)==null?0:(P=r.nL())==null?0:P.length)||qa(this,e)}; g.E.QB=function(e,a){for(;qa(this,e);){var r=this.Ce(e);var P=e;P=this.PO.get(P).iQ&&!H$(this,P);tH(a,r,P&&ldJ(this,e))}}; g.E.RH=function(){g.N.prototype.RH.call(this);for(var e=g.Z(this.PO.keys()),a=e.next();!a.done;a=e.next())xA(this,a.value);var r;if((r=this.Md)==null?0:r.Rs)for(e=g.Z(this.PO.values()),a=e.next();!a.done;a=e.next())a=a.value,a.f8.clear(),a.n6.clear(),a.Bm.length=0,a.Vm.length=0,a.jn.length=0,a.Q6.length=0;this.PO.clear()}; var Na=!1;g.b(RN,g.N);g.E=RN.prototype;g.E.vS=function(){!this.wP()&&this.xhr&&(this.QB(!1),K2(this.Lr,this))}; g.E.Zr=function(){}; g.E.uq=function(){if(!this.wP()&&this.xhr){var e=this.D9();e===5?kA(this.Ub):this.dg(e);this.Ub.T.stop();var a;(a=this.fL)==null||a.stop()}}; g.E.D9=function(){var e="";DZ(this.Ub,this.xhr)&&(e=KJq(this.Ub,this.xhr));if(e)return this.info.Kr.QY(this.WZ,e),3;this.QB(!0);if(JH(this.Ub,this.xhr.status,this.xhr.yj(),this.info.cS(),this.J2))return 5;if(this.Uq)return 3;jXT(this.Ub,this.xhr.Zt(),0,this.cS());this.policy.AC&&E04(this.Lr);return 4}; g.E.QB=function(e){var a=this.xhr;if((e||!DZ(this.Ub,this.xhr))&&a.jr()){e=a.T3();var r=e.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+r}); this.NQ.feed(e)}}; g.E.vu=function(e,a){this.xhr.y4()&&e===21&&xEO(this);this.j9.vu(e,a)}; g.E.VC=function(e,a,r,P){r||(this.Su.VC(P),this.policy.qT&&e===21&&xEO(this));if(e!==21)return!1;this.Su.HW=!0;e=a.totalLength;r||(this.M1=y$(a,0),a=a.split(1).v8);var B=this.policy.T7,h=this.j9.T[this.M1],c=this.Qm.B.get(h);if(B&&c&&(B*=c.info.NF,e+r!==P&&e0){this.policy.gb&&this.Ub.T.stop();e=this.Su.Yc();a=this.Su.N4();var r=IdN(this,e);if(!(a>r.EA||r.t7>0&&this.info.dZ()>r.t7)){this.gA=(0,g.Ov)();var P;(P=this.fL)==null||P.stop();this.policy.AC&&(P=this.Lr,e={VV:Math.round(a*e/1E3),Ep:e},P.policy.AC&&(P.Lf=e,P.Qh++));this.Ms()}}}}; g.E.Ms=function(){this.Ub.Ms()}; g.E.qE=function(e){this.Lr.qE(e,this.wc())}; g.E.Xf=function(e){this.Uq=!0;this.info.Kr.QY(this.WZ,e.redirectUrl)}; g.E.rV=function(e){this.Su instanceof wo&&this.Su.rV(e)}; g.E.dV=function(e){this.Su instanceof wo&&this.Su.dV(e)}; g.E.SC=function(e){var a=e.formatId,r=Sv({itag:a.itag,lmt:a.lmt,xtags:a.xtags}),P,B,h=new mH(((P=e.ws)==null?void 0:P.first)||0,((B=e.ws)==null?void 0:B.Am)||0),c,y;P=new mH(((c=e.indexRange)==null?void 0:c.first)||0,((y=e.indexRange)==null?void 0:y.Am)||0);this.Qm.B.get(r)||(r=e.D_||{},r.mimeType=e.mimeType,r.itag=a.itag,r.lastModified=""+(a.lmt||0),r.xtags=a.xtags,e=this.Qm,a=Il(""),r=Nz(r,null),Lz(e,new QH(a,r,h,P)))}; g.E.KT=function(e){this.Lr.KT(e,this.wc())}; g.E.onSnackbarMessage=function(e){if(this.policy.bl)this.Lr.onSnackbarMessage(e)}; g.E.Fq=function(e){this.policy.ID&&this.Lr.Fq(e,this.wc())}; g.E.Iy=function(e){this.qa=e;this.Hd=(0,g.Ov)();this.Lr.Iy(e)}; g.E.y6=function(e,a,r){this.Lr.y6(e,a,r)}; g.E.Uh=function(e){e.scope===2&&(this.Xz=e);this.Lr.Uh(e)}; g.E.Gj=function(){this.hf=!0;this.Lr.Gj()}; g.E.ME=function(e){this.policy.wx&&this.Lr.ME(e)}; g.E.F8=function(e){this.Lr.F8(e,this.wc())}; g.E.e0=function(e){e.cw===3&&(this.J2=!0);this.Lr.e0(e)}; g.E.Mz=function(e){this.Lr.Mz(e)}; g.E.Yw=function(e){this.Lr.Yw(e)}; g.E.canRetry=function(){this.wP();return this.Ub.canRetry(!1)}; g.E.dispose=function(){if(!this.wP()){g.N.prototype.dispose.call(this);this.Ub.dispose();var e;(e=this.fL)==null||e.dispose();this.dg(-1);this.q0()}}; g.E.dg=function(e){this.state=e;K2(this.Lr,this)}; g.E.cS=function(){return this.info.cS()}; g.E.LJ=function(){return this.hf}; g.E.o3=function(){return this.Xz}; g.E.KQ=function(e,a,r){r.clipId&&(this.clipId=r.clipId);this.policy.T&&!a&&(this.F6=r.JB);this.oU.KQ(e,a,r);if(this.policy.Tm&&this.qa&&this.Su instanceof Xc){var P=this.qa.d9;this.Su.KQ(r.durationMs/1E3,a,P>0&&r.JB+1>=P)}this.oU.PO.get(e).I1=!0}; g.E.I5=function(e,a){this.oU.I5(e,a)}; g.E.V3=function(e){this.requestIdentifier=e}; g.E.Va=function(e){return this.oU.Va(e)}; g.E.GJ=function(e){return this.oU.GJ(e)}; g.E.Pr=function(e){return this.oU.Pr(e)}; g.E.wC=function(){return this.oU.wC()}; g.E.xl=function(){return 1}; g.E.wc=function(){return this.Su.requestNumber}; g.E.u2=function(){return this.requestIdentifier}; g.E.ju=function(){return this.WZ.ju()}; g.E.Js=function(){this.q0()}; g.E.q0=function(){this.Su.deactivate();var e;(e=this.xhr)==null||e.abort()}; g.E.isComplete=function(){return this.state>=3}; g.E.hm=function(){return this.state===3}; g.E.md=function(){return this.state===5}; g.E.xW=function(){return this.state===4}; g.E.BR=function(){return this.isComplete()}; g.E.kY=function(){return this.state>=1}; g.E.lP=function(){return this.policy.Q2?this.Ub.lP():0}; g.E.wr=function(){this.policy.Q2&&K2(this.Lr,this)}; g.E.h3=function(){return nGj(this.info)}; g.E.P7=function(){return this.Ub.P7()}; g.E.Pj=function(){var e=erl(this.Ub);Object.assign(e,Td3(this.info));e.req="sabr";e.rn=this.wc();var a;if((a=this.xhr)==null?0:a.status)e.rc=this.policy.SQ?this.xhr.status:this.xhr.status.toString();var r;(a=(r=this.xhr)==null?void 0:r.OU())&&(e.msg=a);this.gA&&(r=IdN(this,this.gA-this.Su.m_()),e.letm=r.fI,e.mrbps=r.EA,e.mram=r.t7);return e};HWL.prototype.tick=function(e,a){this.ticks[e]=a?window.performance.timing.navigationStart+a:(0,g.Ov)()};g.b(sR,g.aK);g.E=sR.prototype; g.E.Gv=function(e,a,r,P){if(this.policy.Sd&&this.policy.T){var B=e.Eg||null;B?(PlJ(this,e.lW,u3(this,e.startTime,e.lW),{Eg:B,lW:e.lW,PJ:!!a,Dw:r},this.B),P&&this.B&&this.B.MJ(e.lW,e.startTime,this.T,(a==null?void 0:a.S)||[],(a==null?void 0:a.T)||[],(a==null?void 0:a.L)||[],r,(a==null?void 0:a.Fg)||0,(a==null?void 0:a.B)||void 0)):this.T===1&&Fc(this,5,"noad")}else{var h=!1;this.policy.T&&(h=r?this.Eo===e.lW:this.TQ===e.lW);if(this.B&&P&&!h){P=[];h=[];var c=[],y=void 0,T=0;a&&(P=a.S,h=a.T,c=a.L,y= a.B,T=a.Fg,this.nf("sdai",{sq:e.lW,ssvicpns:P.join("."),ssvid:h.join(".")}));this.policy.T&&(r?this.Eo=e.lW:this.TQ=e.lW);this.B.MJ(e.lW,e.startTime,this.T,P,h,c,r,T,y)}this.policy.T?r&&(this.T===1&&Fc(this,5,"noad"),e.lW!==((B=this.S)==null?void 0:B.lW)&&(eeT(this,e,a,r),isNaN(e.startTime)||a54(this,e.lW,u3(this,e.startTime,e.lW),!!a,this.B))):r&&eeT(this,e,a)}}; g.E.Ei=function(e,a,r){var P=this.videoTrack.S.index.q5()<=a;this.S={Eg:e,lW:a,PJ:r};P&&mz(this,e,a)}; g.E.QM=function(){this.B&&this.B.QM()}; g.E.nf=function(e,a,r){(e!=="sdai"||this.policy.AN||(r===void 0?0:r))&&this.loader.nf(e,a)}; g.E.M2=function(e,a){var r=this.videoTrack.S.index.I4(e);if(r>=0){var P;var B=((P=a.cO.Y4(r,2))==null?void 0:P.g2)||"";if(this.policy.T||B)return a.X9(e,r),Ma(this.loader,e,e,r),this.nf("sdai",{cmskpad:1,t:e.toFixed(3),sq:r}),!0}this.nf("sdai",{cmskpad:0,t:e.toFixed(3),sq:r});return!1};g.E=oEz.prototype;g.E.ZN=function(e,a,r){e=e||this.S;this.T.has(e)||(this.nf("sldai",{setadconfig:"noentry",cid:e}),this.T.set(e,{event:"unknown",startTimeSecs:0,Ug:0,N$:[],HY:Date.now()}));var P=this.T.get(e);P?(P.AI=6,P.N$.push(r),P.CH=a):this.nf("sldai",{setadconfig:"notfound",cid:e})}; g.E.Fq=function(e,a,r,P){var B;if(!((((B=e.cP)==null?void 0:B.length)||0)<=0)&&(e=e.cP[0],e.Eg)){var h;B=-(((h=e.Eg)==null?void 0:h.kF)||0);e.timeRange&&(B+=(e.timeRange.startTicks||0)/(e.timeRange.timescale||1)-a);var c,y,T,X,f;a=new oO(B,((c=e.Eg)==null?void 0:c.cA1)||0,((y=e.Eg)==null?void 0:y.Ve)||"",((T=e.Eg)==null?void 0:T.identifier)||"",TjT(((X=e.Eg)==null?void 0:X.event)||0),(((f=e.Eg)==null?void 0:f.kF)||0)*1E3);nEO(this,a,r,P)}}; g.E.X9=function(e,a){this.sO(e);var r=this.T.get(this.S);r?(this.nf("ssskipad",{cid:this.S,sn:a,mt:e.toFixed(3)}),r.oS=a):this.nf("ssskipadfail",{cid:this.S,sn:a,mt:e.toFixed(3)})}; g.E.x8=function(){for(var e=g.Z(this.T.values()),a=e.next();!a.done;a=e.next())a.value.oS=NaN}; g.E.sO=function(e,a){a&&(this.B=a);if(this.S&&(a=this.T.get(this.S))&&a.startTimeSecs<=e&&e<=a.startTimeSecs+a.Ug)return;this.S="";a=g.Z(this.T.entries());for(var r=a.next();!r.done;r=a.next()){var P=g.Z(r.value);r=P.next().value;P=P.next().value;var B=void 0,h=void 0,c=void 0;if(((B=P)==null?void 0:B.startTimeSecs)<=e&&e<=((h=P)==null?void 0:h.startTimeSecs)+((c=P)==null?void 0:c.Ug)){this.S=r;break}}};g.b(Pu,g.N);Pu.prototype.E9=function(e,a,r){r=r===void 0?{}:r;this.policy.K8=eD(e,r,this.L,a===void 0?!1:a)};nP.prototype.d3=function(e){var a=this;if(this.policy.o1){var r=new Set(e);r.size===this.Lf.size&&[].concat(g.UO(r)).every(function(P){return a.Lf.has(P)})||(this.loader.nf("lwnmow",{itagDenylist:[].concat(g.UO(e)).join(",")}),this.loader.rp(!!r.size),this.N=-1,this.Lf=r,y_(this,this.S),this.XM=!0)}}; nP.prototype.E9=function(e,a,r){r=r===void 0?{}:r;var P=this.policy.K8;this.C.E9(e,a===void 0?!1:a,r);if(P!==this.policy.K8){y_(this,this.S);Tj(this);var B,h;P>this.policy.K8&&((B=this.B)==null?0:vH(B.info))&&((h=this.nextVideo)==null||!vH(h.info))&&(this.HW=!0)}};Ua.prototype.pE=function(e){this.timestampOffset=e;this.flush()}; Ua.prototype.flush=function(){if(this.S.pos>0){var e={a:this.track.sU(),u:this.S.n_(),pd:Math.round(this.L),ad:Math.round(this.B)},a=this.T;if(a){var r=a.S.info;e.itag=r.itag;r.S&&(e.xtags=r.S);e.sq=a.lW;e.st=a.startTime;e.sd=a.duration;this.track.policy.Pt&&(e.si=a.Kb());a.L&&(e.esl=a.T+a.B);a.jH()&&(e.eos=1)}isNaN(this.timestampOffset)||(e.to=this.timestampOffset);var P;if(a=(P=this.track.mL)==null?void 0:P.vA({})){for(var B in a)this.Z[B]!==a[B]&&(e["sb_"+B]=a[B]);this.Z=a}this.track.nf("sbu", e);this.S.reset();this.buffered=[];this.C=this.B=this.L=0;this.timestampOffset=this.T=void 0}};Gj.prototype.dispose=function(){this.oH=!0}; Gj.prototype.wP=function(){return this.oH}; g.b(Oa,Error);Jr.prototype.skip=function(e){this.offset+=e}; Jr.prototype.wM=function(){return this.offset};g.E=Fxl.prototype;g.E.jh=function(){return this.T}; g.E.Ww=function(){return this.T.length?this.T[this.T.length-1]:null}; g.E.GA=function(){this.T=[];Wu(this);$b(this)}; g.E.Ce=function(e){this.Uo=this.T.shift().info;e.info.equals(this.Uo)}; g.E.GJ=function(){return g.ba(this.T,function(e){return e.info})}; g.E.sU=function(){return!!this.C.info.audio}; g.E.isDrm=function(){return!!this.C.info.DX}; g.E.getDuration=function(){return this.C.index.WS()};g.b(uS,Co);g.E=uS.prototype;g.E.onStateChange=function(){this.wP()&&(IN(this.oU,this.formatId),this.S.dispose())}; g.E.Pj=function(){var e=WHj(this.oU,this.formatId),a;var r=((a=this.oU.PO.get(this.formatId))==null?void 0:a.bytesReceived)||0;var P;a=((P=this.oU.PO.get(this.formatId))==null?void 0:P.uO)||0;return{expected:e,received:r,bytesShifted:a,sliceLength:H$(this.oU,this.formatId),isAnyMediaEndReceived:this.oU.h2(this.formatId)}}; g.E.gq=function(){return 0}; g.E.d2=function(){return!0}; g.E.Va=function(){return this.oU.Va(this.formatId)}; g.E.nL=function(){return[]}; g.E.Pr=function(){return this.oU.Pr(this.formatId)}; g.E.P7=function(){return this.lastError}; g.E.lP=function(){return 0};g.b(wt,g.N);g.E=wt.prototype;g.E.sU=function(){return!!this.S.info.audio}; g.E.Ww=function(){return this.L.Ww()}; g.E.Ce=function(e){this.L.Ce(e);var a;(a=this.Y)!=null&&(a.C.add(e.info.lW),a.S=btj(a,a.BO,a.xg,e,a.S),a.B=e,a.Z=(0,g.Ov)());this.NF=Math.max(this.NF,e.info.S.info.NF||0)}; g.E.getDuration=function(){return this.S.index.WS()}; g.E.GA=function(){e6(this);this.L.GA()}; g.E.VT=function(){return this.L}; g.E.isRequestPending=function(e){return this.B.length?e===this.B[this.B.length-1].info.Vm[0].lW:!1}; g.E.pE=function(e){var a;(a=this.Y)==null||a.pE(e);var r;(r=this.N)==null||r.pE(e)}; g.E.nf=function(e,a){this.loader.nf(e,a)}; g.E.Dm=function(){return this.loader.Dm()}; g.E.dispose=function(){var e;(e=this.N)==null||e.flush();g.N.prototype.dispose.call(this)};g.b(Pt,g.N);Pt.prototype.B=function(){this.T++>15||(this.S=!this.S,new zl4(this.loader,this.policy,this.e5,this.Kr,this.S),this.delay.start())}; g.E=zl4.prototype;g.E.Zr=function(){}; g.E.vS=function(){}; g.E.uq=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Zt()===this.size)this.loader.nf("rqs",this.getInfo());else{var e="net.connect";this.xhr.status>200?e="net.badstatus":this.xhr.AQ()&&(e="net.closed");this.onError(e)}}; g.E.onError=function(e){var a=this;this.loader.handleError(e,this.getInfo());v8("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(r){a.loader.nf("pathprobe",r)},function(r){a.loader.handleError(r.errorCode,r.details)})}; g.E.getInfo=function(){var e=this.timing.Sr();e.shost=Sj(this.location.YL);e.pb=this.size;return e};g.b(Bt,g.N); Bt.prototype.D=function(e,a){if(e.D){this.Qm.isLive?(e=this.Qm.lB&&this.Qm.L?e.S.yI(this.Qm.lB,!1):e.S.Uc(Infinity),e.K_=this.K_):e=e.S.yI(0,!1);if(this.HW){var r=this.HW;e.K_===0&&(e.C=r.Y)}else e.C=this.N;return e}r=e.T;if(!r.S.QP())return r.S.fW()?(e=sN(this.C,e.S.info.NF,a.S.info.NF,0),e=r.S.Yq(r,e)):e=r.S.tX(r),e;var P=r.Z-this.loader.getCurrentTime(),B=!r.range||r.B===0&&r.T===0?0:r.range.length-(r.T+r.B),h=r.S;this.iX(e,P)&&B===0&&(this.Qm.isManifestless?h=e.S:(h=r.startTime+hR3,r.B&&(h+=r.duration), P$(e,h),r=e.T,h=r.S));h.fW()?(B=this.B,a=sN(this.C,h.info.NF,a.S.info.NF,P,B.L.length>0&&B.Y===0&&this.loader.nT),P=Mb(e),e=r.S.Yq(r,a),(a=e.B)&&e.Vm.length>1&&(P||e.Kr.B||e.Vm[0].S!==r.S?e=r.S.Yq(r,e.Vm[0].B):(P=e.Vm[e.Vm.length-1],h=P.B/a,!P.L&&h<.4&&(e=r.S.Yq(r,a-P.B))))):(r.lW<0&&(a=PO(r),a.pr=""+e.B.length,this.loader.isSeeking()&&(a.sk="1"),a.snss=r.D,this.loader.nf("nosq",a)),e=h.tX(r));if(this.policy.Eo)for(r=g.Z(e.Vm),a=r.next();!a.done;a=r.next())a.value.type=6;return e}; Bt.prototype.iX=function(e,a){if(!Mb(e)||!e.S.QP())return!1;var r=this.B.XM||OnL(e)||a<=this.policy.dN||this.B.HW;this.logger.debug(function(){return"ready to adapt: "+r+", upgrade pending: "+OnL(e)+", health: "+a}); return r}; Bt.prototype.RH=function(){g.N.prototype.RH.call(this)}; var hR3=2/24;g.b(AF,g.N);AF.prototype.PU=function(e,a,r){var P;var B=((P=this.T)==null?void 0:P.reason)==="m"?"m":this.T&&uZJ(this,this.T)?this.T.reason:"a";this.loader.PU(new rt(e,B,r));X1(this.loader,a,e,!0)}; AF.prototype.fG=function(e,a){for(var r=g.Z(this.Eo),P=r.next();!P.done;P=r.next())if(P.value.id===e)return this.C=this.Qm.S[e],l3(this.Md)&&(this.HW=!0),e=new rt(this.C,a?"t":"m"),a&&(this.D=!0),e;this.B=[];return null}; AF.prototype.E9=function(e,a,r){r=r===void 0?{}:r;this.S.E9(e,a===void 0?!1:a,r)};C2.prototype.setData=function(e,a,r){var P=this;r=r===void 0?{}:r;if(a==null?0:a.sM)this.kd=NSy(this,a,r),e.rR=this.Kr.rR();if(this.cS())return!0;this.data=e;this.S=cZj(e,function(B,h){var c;(c=P.Lr)==null||c.gW(B,h)},a==null?void 0:a.B); if(!this.S)return!1;this.T=g.S_(this.S,auL);return!0}; C2.prototype.cS=function(){return this.requestType===1}; C2.prototype.dZ=function(){var e;return((e=this.Lr)==null?void 0:e.dZ())||0}; C2.prototype.isDecorated=function(){var e;return!((e=this.data)==null||!e.GT)};Xb4.prototype.encrypt=function(e){(0,g.Ov)();return this.S.S?EGT(this,e,this.iv):(new g.nC(this.S.T)).encrypt(e,this.iv)}; Xb4.prototype.decrypt=function(e,a){(0,g.Ov)();return this.S.S?EGT(this,e,a):(new g.nC(this.S.T)).decrypt(e,a)};g.b(Gi,g.N);Gi.prototype.B=function(e,a){if(a){a=a instanceof g.v2?a:EI(this,a);var r;((r=this.S.get(e))==null?void 0:Sj(r.location))!==Sj(a)&&this.S.set(e,new kFO(a,e))}else this.S.delete(e)}; Gi.prototype.load=function(){var e=this,a,r,P,B,h,c,y,T,X,f;return g.Y(function(A){switch(A.T){case 1:a=e.S.get(0);g.kN(A,2);var U;if(U=a&&!e.T)U=Sj(a.location),U=e.T===OR(U);if(U){A.Oo(4);break}return g.l(A,ZQL(e,e.T?2:0),5);case 5:if(r=A.S)e.B(0,r),mJ(r)&&e.B(1,FO(r));case 4:g.Dl(A,3);break;case 2:P=g.Q3(A);g.VJ(P);if(!e.T){A.Oo(3);break}e.T=!1;return g.l(A,e.load(),7);case 7:return A.return();case 3:if(!e.iW.experiments.FM("html5_onesie_probe_ec_hosts")){A.Oo(0);break}g.kN(A,9);B=e;h=B.B;c=3;return g.l(A, ZQL(e,1),11);case 11:return h.call(B,c,A.S),y=e,T=y.B,X=4,g.l(A,ZQL(e,2),12);case 12:T.call(y,X,A.S);g.Dl(A,0);break;case 9:f=g.Q3(A),g.VJ(f),g.OO(A)}})}; Gi.prototype.D=function(){var e=this,a,r;return g.Y(function(P){g.sC(e.Y);a=g.eS(e.iW.experiments,"html5_onesie_prewarm_max_lact_ms");if(tB()>=a)return P.return();(r=e.S.get(0))&&gG4(e,r);g.OO(P)})}; var bQj={BMW:0,x2o:1,e7Q:2,ABQ:3,b8Q:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};dgO.prototype.decrypt=function(e){var a=this,r,P,B,h,c,y;return g.Y(function(T){switch(T.T){case 1:if(a.S.length&&!a.S[0].isEncrypted)return T.return();a.T=!0;a.tB.M5("omd_s");r=new Uint8Array(16);cr()?P=new g.yP(e):B=new g.nC(e);case 2:if(!a.S.length||!a.S[0].isEncrypted){T.Oo(4);break}h=a.S.shift();if(!P){c=B.decrypt(og(h.buffer),r);T.Oo(5);break}return g.l(T,P.decrypt(og(h.buffer),r),6);case 6:c=T.S;case 5:y=c;for(var X=0;X=4)){var a=SR(this),r=this.xhr;a.rc=r.status;e&&(a.ab=!0);if(r.OU()){var P="onesie.net";a.msg=r.OU()}else r.status>=400?P="onesie.net.badstatus":r.yj()?this.SF||(P="onesie.response.noplayerresponse"):P=r.status===204?"onesie.net.nocontent":"onesie.net.connect";P?this.fail(new g.f_(P,a)):(this.M5("or_fs"),this.Su.J7((0,g.Ov)(),r.Zt(),0),this.dg(4),this.Dt&&this.nf("rqs",a));this.Dt&&this.nf("ombre", "ok."+ +!P);this.tq=!1;Rh(this);Ndj(this.tB);if(!this.Qi){this.ip.stop();var B;(B=this.NZ)==null||B.stop()}var h;if(e=(h=this.rj)==null?void 0:OQT(h))for(h=0;h1E3){var e;(e=this.Su)==null||e.UA((0,g.Ov)());e=SR(this);if(this.iW.UM()&&this.xhr instanceof G2){var a=this.xhr;e.xrs=a.xhr.readyState;e.xpb=a.S.totalLength;e.xdc=a.L}this.fail(new g.f_("net.timeout",e))}}else(0,g.Ov)()-this.Su.S>1E4&&((a=this.Su)==null||a.UA((0,g.Ov)()),this.XQ());this.isComplete()||this.l3.start()}}; g.E.XQ=function(){this.logger.info("Onesie request timed out");this.tq=!1;if(!Rh(this)){var e=SR(this);e.timeout="1";this.fail(new g.f_("onesie.request",e))}}; g.E.fail=function(e){var a=this;e=Ud(e);this.Bu?this.uW.LB(e):(this.mM.reject(e),this.Bu=!0);Ndj(this.tB);this.Qi||this.ip.stop();this.M5("or_fe");var r,P;(r=this.rj)==null||(P=OQT(r))==null||P.forEach(function(B){a.nf("pathprobe",B)}); this.dg(5);this.dispose()}; g.E.isComplete=function(){return this.state>=3}; g.E.xW=function(){return this.state===4}; g.E.BR=function(e){var a,r;return this.isComplete()||!!((a=this.EU)==null?0:(r=a.get(e))==null?0:r.S)}; g.E.hm=function(){return!1}; g.E.md=function(){return this.state===5}; g.E.notifySubscribers=function(e){for(var a=0;a102400&&!this.jF&&(this.M5("or100k"),this.jF=!0);if(e.jr()){var a=e.T3(),r=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+r}); this.Dt&&this.nf("ombrss","len."+r);this.NQ.feed(a)}if(this.EU)for(var P=g.Z(this.EU.keys()),B=P.next();!B.done;B=P.next()){var h=B.value;e=void 0;(e=this.EU.get(h))==null||e.GW();this.notifySubscribers(h)}}catch(c){this.fail(c)}}; g.E.wc=function(){return this.Su.requestNumber}; g.E.u2=function(e){return this.KG.get(e)};g.b(Pzj,g.N);g.E=Pzj.prototype;g.E.O3=function(e,a){this.oH=void 0;E04(this);GcT(this,e,a)}; g.E.rr=function(e){if(this.S.length===0)return!1;var a=this.S[0];return a instanceof sI?e===this.loader.getCurrentTime()*1E3:!(a instanceof RN&&yZ4(a.info))&&Math.abs(a.h3()-e)<50}; g.E.E5=function(e){this.T=e;this.oH=(0,g.Ov)()+(e.backoffTimeMs||0)}; g.E.qE=function(e,a){if(e.action===void 0){var r=this.uW.w2();r!==void 0&&this.loader.oy(r)}else if(e.action!==0||!this.GQ)if(e.action===0&&this.policy.rf&&(e.action=2),e.EZ==="sabr.malformed_config"&&this.policy.B8>0&&this.ym++0&&(e.action=2),r={},r.reason=e.EZ,r.action=e.action,r.rn=a,e.action){case 1:this.policy.T&&this.Y&&this.Y.Ih(void 0, void 0,r);break;case 0:this.GQ=!0;this.videoData.w1()&&this.policy.T&&this.Y&&this.Y.Ih(void 0,void 0,r,!1);this.loader.uJ(r);break;case 2:bj4(e.EZ)!=="sabr.config"&&delete r.reason;this.loader.handleError(bj4(e.EZ),r,1);break;case 3:this.policy.sM&&((e=this.Qm.Y)!=null&&(e.Y=!0),this.loader.handleError("sabr.hostfallback",r))}}; g.E.Uh=function(e){e&&(this.loader.nf("sabrctxt",{onsbrctxt:e.type,scp:e.scope,dflt:e.sendByDefault}),e.type&&e.sendByDefault&&this.videoData.k$.add(e.type),e.scope!==2&&(e.type&&this.videoData.sabrContextUpdates.set(e.type,e),this.uW.Uh(e)))}; g.E.Gj=function(){}; g.E.KT=function(e,a){if(e.QA!==void 0&&e.Dp){var r=e.QA/e.Dp;this.audioTrack.D=!1;this.videoTrack.D=!1;if(this.policy.HW||this.policy.U8||this.policy.lq)this.loader.MC.S=!1;var P=this.loader.Zs(r,1);this.policy.PW&&this.policy.T&&this.loader.sO(P,a);this.uW.getCurrentTime()!==r&&(a={ze:"sabr_seek",MH:!0,uH:!0},e.seekSource&&(a.seekSource=e.seekSource),c$(this.loader,r+.1,a))}}; g.E.onSnackbarMessage=function(e){this.uW.publish("onSnackbarMessage",e)}; g.E.Fq=function(e,a){this.policy.ID&&this.N&&this.loader.Fq(e,a)}; g.E.Iy=function(e){e.d9&&e.Vf&&mx(this.Qm,e.d9,e.Vf);this.policy.X7&&(e.zY&&e.f7&&(this.Qm.ZI=e.zY/e.f7),e.Ey&&e.K7&&(this.Qm.H8=e.Ey/e.K7));M4(this.videoData)&&!this.videoData.TQ&&e.Vf&&this.loader.Zs(e.Vf,1E3);e.k5!=null&&this.uW.FT(e.k5);this.policy.pT&&e.vc&&(e=((0,g.Ov)()-e.vc)/1E3,this.loader.cC.dT(1,e))}; g.E.e0=function(e){this.loader.e0(e)}; g.E.KR=function(e){return this.videoData.k$.has(e)}; g.E.y6=function(e,a,r){this.policy.B&&this.loader.nf("sabrctxtplc",{start:e?e.join("_"):"",stop:a?a.join("_"):"",discard:r?r.join("_"):""});if(e){e=g.Z(e);for(var P=e.next();!P.done;P=e.next())this.videoData.k$.add(P.value)}if(a)for(a=g.Z(a),e=a.next();!e.done;e=a.next())e=e.value,this.videoData.k$.has(e)&&this.videoData.k$.delete(e);if(r)for(r=g.Z(r),a=r.next();!a.done;a=r.next())if(a=a.value,this.videoData.sabrContextUpdates.has(a)&&(this.videoData.sabrContextUpdates.delete(a),a===3&&(this.videoData.T7= "")),this.policy.N&&this.S.length)for(e=g.Z(this.S),P=e.next();!P.done;P=e.next())if(P=P.value,!(P instanceof sI)){var B=void 0;((B=P.Xz)==null?void 0:B.type)===a&&(P.Xz=void 0)}}; g.E.ME=function(){}; g.E.Gn=function(e){this.D=e}; g.E.hp=function(e){this.Z=e}; g.E.F8=function(e,a){rq(this.policy,e,4,a)}; g.E.Mz=function(e){if(e==null?0:e.Vg)if(e=e.Vg.RX){e=g.Z(e);for(var a=e.next();!a.done;a=e.next())if(a=a.value,a.formatId){var r=this.Qm.B.get(Sv(a.formatId));r&&r.info&&(r.info.debugInfo=a.debugInfo)}}}; g.E.Yw=function(e){this.uW.publish("reloadplayer",e)}; g.E.Y2=function(){return this.uW.Y2()||""}; g.E.dZ=function(){var e=Rx(this.audioTrack,!0)*1E3,a=Rx(this.videoTrack,!0)*1E3;return Math.min(e,a)}; g.E.gW=function(e,a){this.loader.nf(e,a)}; g.E.GV=function(e){wxI(this.loader,Ozz(this.k$,e))}; g.E.RH=function(){g.N.prototype.RH.call(this);this.T=void 0;GcT(this,!0,"i");this.S=[]};D4z.prototype.V6=function(){this.isSeeking=!0;this.S===1&&d44(this.L);this.S===0&&this.Ca.Ai("transitiondetector");this.Z=!1};wEy.prototype.CB=function(e,a){if(this.L)return x43(this,a);if(a=oN(e)){var r=a.S;r&&r.B&&r.S&&(e=e.B.length?e.B[0]:null)&&e.state>=2&&!e.md()&&e.info.K_===0&&(this.L=e,this.D=r,this.T=a.info,this.Z=this.startTimeSecs=Date.now()/1E3,this.C=this.T.startTime)}return NaN}; wEy.prototype.clear=function(){this.T=this.D=this.L=null;this.S=this.C=this.Z=this.startTimeSecs=NaN;this.B=!1};g.b(qTj,g.N);qTj.prototype.RH=function(){Roj(this);g.N.prototype.RH.call(this)};var ST4=/[?&]cpn=/;g.b(aR,g.N);aR.prototype.flush=function(){var e={};this.T&&(e.pe=this.T);this.S.length>0&&(e.pt=this.S.join("."));this.S=[];return e}; aR.prototype.stop=function(){var e=this,a,r,P;return g.Y(function(B){if(B.T==1)return g.kN(B,2),g.l(B,(a=e.L)==null?void 0:a.stop(),4);if(B.T!=2)return(r=B.S)&&e.logTrace(r),g.Dl(B,0);P=g.Q3(B);e.T=KRT(P.message);g.OO(B)})}; aR.prototype.logTrace=function(e){this.encoder.reset();this.encoder.add(1);this.encoder.add(e.resources.length);for(var a=g.Z(e.resources),r=a.next();!r.done;r=a.next()){r=r.value.replace("https://www.youtube.com/s/","");this.encoder.add(r.length);for(var P=0;P=0?e:g.c7(this.provider),this.TQ?KvN.has(this.kf)&&(this.S.size||(this.kf==="PL"?e>=this.T+30:e<=this.HW+30||e>=this.T+1200&&e<=this.HW+86400))&&(g.P7(this,e,"vps",[this.kf]),this.T=e):["PL","B","S"].indexOf(this.kf)>-1&&(this.S.size||e>=this.T+30)&&(g.P7(this,e,"vps",[this.kf]),this.T=e),this.S.size)){this.sequenceNumber===7E3&&g.VJ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){oR(this,e);var a=this.provider.uW.m3(); a=g.Z(a);for(var r=a.next();!r.done;r=a.next())r=r.value,this.nf(r.key,r.value);a=e;r=this.provider.uW.sN();var P=r.droppedVideoFrames||0,B=r.totalVideoFrames||0,h=P-this.RY,c=B&&!this.bd;P>r.totalVideoFrames||h>5E3?Aty(this,"html5.badframedropcount","df."+P+";tf."+r.totalVideoFrames):(h>0||c)&&g.P7(this,a,"df",[h]);this.RY=P;this.bd=B;this.Y>0&&(g.P7(this,e,"glf",[this.Y]),this.Y=0);cl.isActive()&&(e=cl.Sh(),Object.keys(e).length>0&&this.nf("profile",e));this.ID&&nJ(this,"lwnmow");this.provider.iW.UM()&& this.provider.X("html5_record_now")&&this.nf("now",{wt:(0,g.Ov)()});e={};this.provider.videoData.T&&(e.fmt=this.provider.videoData.T.itag,(a=this.provider.videoData.L)&&a.itag!==e.fmt&&(e.afmt=a.itag));e.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(e.adcpn=this.adCpn);this.kq&&(e.addocid=this.kq);this.contentCpn&&(e.ccpn=this.contentCpn);this.Eo&&(e.cdocid=this.Eo);this.provider.videoData.cotn&&(e.cotn=this.provider.videoData.cotn);e.el=Px(this.provider.videoData);e.content_v=ht(this.provider.videoData); e.ns=this.provider.iW.HW;e.fexp=FYT(this.provider.iW.experiments).toString();e.cl=(788692020).toString();(a=this.provider.videoData.adFormat||this.adFormat)&&(e.adformat=a);(a=vE(this.provider.videoData))&&(e.live=a);this.provider.videoData.lQ()&&(e.drm=1,this.provider.videoData.C&&(e.drm_system=HgB[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(e.drm_product=this.provider.videoData.drmProduct));Pf()&&this.provider.videoData.Z&&(e.ctt=this.provider.videoData.Z,e.cttype= this.provider.videoData.H4,this.provider.videoData.mdxEnvironment&&(e.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(e.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.yk&&(e.dai_fallback="1")):this.provider.videoData.Cb?e.dai="cs":this.provider.videoData.bl&&(e.dai="disabled");e.seq=this.sequenceNumber++;if(this.provider.videoData.aT){if(a=this.provider.videoData.aT,e&&a)for(a.ns==="3pp"&&(e.ns="3pp"),this.QH.has(a.ns)&& nJ(this,"hbps"),a.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=a.shbpslc),this.provider.iW.experiments.FM("html5_use_server_qoe_el_value")&&this.k$.delete("el"),r=g.Z(Object.keys(a)),P=r.next();!P.done;P=r.next())P=P.value,this.k$.has(P)||(e[P]=a[P])}else e.event="streamingstats",e.docid=this.provider.videoData.videoId,e.ei=this.provider.videoData.eventId;this.isEmbargoed&&(e.embargoed="1");Object.assign(e,this.provider.iW.S);if(a=e.seq)a={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+a,serializedWatchEndpointLoggingContext:this.provider.videoData.e$W},this.serializedHouseBrandPlayerServiceLoggingContext&&(a.serializedHouseBrandPlayerServiceLoggingContext=Qq(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(a.playerResponseCpn=this.provider.videoData.playerResponseCpn),rY.length&&(a.decoderInfo=rY),this.remoteControlMode&&(a.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(a.remoteConnectedDevices= this.remoteConnectedDevices),a=g.S_(a,BGy),a=g.Vq(a,4),this.S.set("qclc",[a]);e=g.EW("//"+this.provider.iW.Iq+"/api/stats/qoe",e);r=a="";P=g.Z(this.S.entries());for(B=P.next();!B.done;B=P.next())h=g.Z(B.value),B=h.next().value,h=h.next().value,c=void 0,(c=h)!=null&&c.join&&(B="&"+B+"="+h.join(","),B.length>100?r+=B:a+=B);yt4(this,e+a,r.replace(/ /g,"%20"))}this.S.clear()}}; g.E.rp=function(e){this.ID=e}; g.E.YV=function(){if(this.provider.videoData.C){var e=this.provider.videoData.C;nJ(this,"eme-"+(e.keySystemAccess?"final":PM(e)?"ms":cM(e)?"ytfp":hG(e)?"safarifp":"nonfinal"))}}; g.E.Yp=eL(53);g.E.J4=function(e){this.isEmbargoed=e}; g.E.Gu=eL(30);g.E.yJ=eL(36);g.E.onPlaybackRateChange=function(e){var a=g.c7(this.provider);e&&e!==this.Q2&&(g.P7(this,a,"rate",[e]),this.Q2=e);this.TQ||this.reportStats(a)}; g.E.rT=eL(24);g.E.getPlayerState=function(e){if(g.S(e,128))return"ER";if(g.S(e,2048))return"B";if(g.S(e,512))return"SU";if(g.S(e,16)||g.S(e,32))return"S";if(e.isOrWillBePlaying()&&g.S(e,64))return"B";var a=eAB[zW(e)];g.Uh(this.provider.iW)&&a==="B"&&this.provider.uW.getVisibilityState()===3&&(a="SU");a==="B"&&g.S(e,4)&&(a="PB");return a}; g.E.Xd=function(e){var a=g.c7(this.provider);g.P7(this,a,"vfi",[e===0?"":""+e,e===0?"A":"M"])}; g.E.RH=function(){g.N.prototype.RH.call(this);g.Al(this.oH);g.Al(this.h9)}; g.E.eN=function(e){this.isOffline=e;g.P7(this,g.c7(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.E.nf=function(e,a,r){var P=this.kh.indexOf(e)!==-1;P||this.kh.push(e);if(!r||!P){var B=typeof a!=="string"?XQ(a):a;B=CLj(B);if(!r&&!/^t[.]/.test(B)){var h=g.c7(this.provider)*1E3;B="t."+h.toFixed()+";"+B}hu(this,"ctmp",e+":"+B);this.logger.debug(function(){return"ctmp "+e+" "+B}); TC4(this);return h}}; g.E.j0=function(e,a,r){this.C={UfW:Number(this.nf("glrem",{nst:e.toFixed(),rem:a.toFixed(),ca:+r})),P6:e,Byz:a,isAd:r}}; g.E.bk=function(e,a,r){g.P7(this,g.c7(this.provider),"ad_playback",[e,a,r])}; g.E.U1=function(e,a){var r=g.c7(this.provider)*1E3;hu(this,"daism","t."+r.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(a*1E3).toFixed(0))}; g.E.resume=function(){var e=this;isNaN(this.oH)?XxL(this):this.oH=g.Xw(function(){e.reportStats()},1E4)}; var Zz={},eAB=(Zz[5]="N",Zz[-1]="N",Zz[3]="B",Zz[0]="EN",Zz[2]="PA",Zz[1]="PL",Zz[-1E3]="ER",Zz[1E3]="N",Zz),KvN=new Set(["PL","B","S"]),rY=[];g.b(g.fJ,g.N);g.E=g.fJ.prototype;g.E.initialize=function(e,a,r){this.logger.debug(function(){return"Initialized, t="+e}); e=e||0;this.policy.S||(a=dzz(this.S),zMN(this.uW,new rt(a.video,a.reason)),this.uW.Qj(new rt(a.audio,a.reason)));this.policy.S&&oh(this);this.Qm.isManifestless&&mR4(this.C);this.D&&iYI(this.D,this.videoTrack.S);a=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var P=!this.Qm.isManifestless;this.policy.j2&&(P=P||this.Qm.zX);if(!this.policy.Lf||this.policy.h9)this.currentTime=P?e:a;this.policy.HW&&this.seek(this.getCurrentTime(),{}).Vl(function(){}); if(this.policy.S){var B;((B=this.HW)==null?0:r3I(B,this.Y2()||""))&&dYy(this)&&kgJ(this,this.videoTrack)&&kgJ(this,this.audioTrack)&&(bY4(this.T,this.HW),this.policy.C&&OVq(this))}else this.TQ&&(Jt3(this,this.videoTrack),Jt3(this,this.audioTrack),QOq(this.TQ),delete this.TQ);r?(Vnj(this,!1),g.sC(this.Di)):(r=this.getCurrentTime()===0,n2(this.C,this.videoTrack,this.videoTrack.S,r),n2(this.C,this.audioTrack,this.audioTrack.S,r),this.policy.S&&c34(this.T,!0),this.policy.HW||this.seek(this.getCurrentTime(), {}).Vl(function(){}),this.timing.tick("gv")); (this.Qm.lB||this.Qm.E2||this.Qm.Eo||this.Qm.ID||this.Qm.h9)&&this.uW.Z0(this.Qm)}; g.E.resume=function(){if(this.isSuspended||this.nT){this.logger.debug("Resumed.");this.Ea=this.nT=this.isSuspended=!1;try{this.CB()}catch(e){g.D6(e)}}}; g.E.t2=function(){return!this.policy.Yf}; g.E.L9=function(e,a){e=e===void 0?!1:e;a=a===void 0?!1:a;this.logger.debug("detaching media source");laj(this);this.uW.SH()&&(this.Z=NaN);e?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Cf&&this.nf("loader",{setsmb:1}),this.policy.Eo=!0,this.GA()):(Vnj(this,!1),a||this.GA())}; g.E.setAudioTrack=function(e,a,r){r=r===void 0?!1:r;if(!this.wP()){var P=!isNaN(a);r&&P&&(this.audioTrack.oH=Date.now(),this.policy.mJ&&(this.rP=!0));if(this.policy.S){var B=this.L.fG(e.id,P);this.logger.debug(function(){return"Logging new audio format: "+B.S.info.id}); this.uW.Qj(B)}else{var h=Zzj(this.S,e.id,P);this.logger.debug(function(){return"Logging new audio format: "+h.audio.info.id}); this.uW.Qj(new rt(h.audio,h.reason))}P?(this.ID=Date.now(),r=this.audioTrack.S.index.I4(a),this.nf("setAudio",{id:e.id,cmt:a,sq:r}),r>=0&&(e=this.policy.T_?r+1:r,this.policy.S&&this.O3(!0,"mosaic"),Sc(this.audioTrack,e,NaN,NaN),!this.policy.Ky&&this.Qm.isLive&&sx(this.Qm,e,!1))):this.uW.nE()}}; g.E.setPlaybackRate=function(e){e!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(e)}; g.E.mU=function(e){var a=this.T.D;this.T.Gn(e);this.nf("scfidc",{curr:Sv(a),"new":Sv(e)});e&&Sv(e)!==Sv(a)&&(this.O3(!0,"caption change"),this.CB())}; g.E.f0=function(e){this.T.hp(e)}; g.E.PU=function(e){var a=e.S.info.sU();this.logger.debug(function(){return"New "+(a?"audio":"video")+" format from SABR: "+aV(e.S.info)}); a?this.uW.Qj(e):zMN(this.uW,e)}; g.E.GV=function(e){ef(e.Vm[e.Vm.length-1])&&wxI(this,Ozz(this.S,e.Vm[0].S))}; g.E.xZ=function(){return this.uW.xZ()}; g.E.ut=function(){return this.uW.ut()}; g.E.e0=function(e){this.uW.G().UM()&&this.nf("sps",{status:e.cw||""});if(e.cw===1)this.uW.videoData.R9=0;else if(e.cw===2||e.cw===3){var a=!1;if(e.cw===3){a=this.uW.jk();var r;this.Ge=(r=e.Tyo)!=null?r:Infinity;this.uW.videoData.R9=a+1;(a=s14(this))&&this.pU(!0)}this.uW.Dk(!0,a)}}; g.E.Pf=function(){return this.uW.Pf()}; g.E.AR=function(){return this.uW.AR()}; g.E.zr=function(e){this.uW.zr(e)}; g.E.GX1=function(){var e,a=(e=this.uW.rg())==null?void 0:e.getCurrentTime();a?this.uW.nf("rms",{cta:a}):g.sC(this.AC)}; g.E.CB=function(){YL3(this);if(this.cW&&ED(this.cW)&&!this.cW.hO()&&(!this.policy.Lf||isFinite(this.getCurrentTime()))){var e=ij(this.videoTrack);e=this.policy.OL&&e&&e.jH();this.Qm.isManifestless&&this.Qm.L&&qz(this.Qm)?(this.Z=qz(this.Qm),this.cW.q2(this.Z)):Fe(this.Qm)&&!e?isNaN(this.Z)?(this.Z=this.getCurrentTime()+3600,this.cW.q2(this.Z)):this.Z<=this.getCurrentTime()+1800&&(this.Z=Math.max(this.Z+1800,this.getCurrentTime()+3600),this.cW.q2(this.Z)):this.cW.isView||(e=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.Z)||this.Z!==e)&&e>0&&(this.cW.q2(e),this.Z=e))}if(!this.wP())if(HO(this.Qm)&&this.Qm.md()){var a=this.Qm;this.handleError("manifest.net.retryexhausted",a.PW?{rc:a.xK}:{rc:a.xK.toString()},1)}else if(this.policy.S)a:{try{A33(this.T);this.Qm.isManifestless&&this.policy.C&&B$(this.MC);var r;((r=this.cW)==null?0:gx(r))&&this.n0();c34(this.T)}catch(c){g.VJ(c);a=c;if(a.message.includes("changeType")){this.nf("ctype",{exp:a.name,msg:a.message,s:a.stack});break a}this.handleError("fmt.unplayable", {exp:a.name,msg:a.message,s:a.stack,trg:"sabrslicerqt"},1)}rQL(this);g.sC(this.PW)}else if(!this.Qm.T||!JGq(this.videoTrack)&&!JGq(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.bv?r=!1:(this.GA(),this.uW.seekTo(Infinity,{ze:"checkLoaderTracksSync",Zs:!0}),r=!0),!r){YL3(this);this.Qm.isManifestless&&(DRI(this.videoTrack),DRI(this.audioTrack),B$(this.MC),(r=oN(this.videoTrack))&&r.S&&(r=r.S.B&&!this.policy.EQ,this.nf(r===this.policy.D.gD?"strm":"strmbug",{strm:r,sfmp4:this.policy.D.gD, dfs:this.policy.EQ},!0)));if(this.cW)this.n0();else if(this.policy.L){var P;r=!1;if(this.policy.eS){var B;e=g.Z([this.videoTrack,this.audioTrack]);for(B=e.next();!B.done;B=e.next()){var h=B.value;for(B=oN(h);B&&h.Ww()!==ij(h);B=oN(h))h.Ce(B);r=r||!!B}}else(a=oN(this.videoTrack))&&this.videoTrack.Ce(a),(P=oN(this.audioTrack))&&this.audioTrack.Ce(P);Hu(this.videoTrack)&&Hu(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(a||P||r)&&un(this)}DY4(this);n2(this.C,this.videoTrack, this.videoTrack.S,!1);n2(this.C,this.audioTrack,this.audioTrack.S,!1);this.policy.il||iVN(this,this.videoTrack,this.audioTrack);I0L(this.C,this.videoTrack,this.audioTrack);I0L(this.C,this.audioTrack,this.videoTrack);rQL(this);this.D&&(a=this.D,a.L?(P=a.Z+a.policy.D2,a.B||(P=Math.min(P,a.startTimeSecs+a.policy.Kq)),a=Math.max(0,P*1E3-Date.now())):a=NaN,isNaN(a)||g.sC(this.kh,a));g.sC(this.PW)}}; g.E.uJ=function(e){this.uW.uJ(e)}; g.E.n0=function(){var e=this;if(this.cW){var a=this.cW.S,r=this.cW.T;nej(this,this.audioTrack);nej(this,this.videoTrack);var P=xYJ(this);if(P){if(this.policy.Gf){if(!a.a8()){var B=oN(this.audioTrack);if(B){if(!Tq(this,this.audioTrack,a,B.info))return;qLO(this,this.audioTrack,a,B)}}if(!r.a8()&&(B=oN(this.videoTrack))){if(!Tq(this,this.videoTrack,r,B.info))return;qLO(this,this.videoTrack,r,B)}}this.oH||(this.oH=(0,g.Ov)(),this.logger.debug(function(){return"Appends pause start "+e.oH+" reason "+P}), this.policy.B&&this.nf("apdps",{r:P}))}else if(this.oH&&(NCL(this,this.oH),this.oH=0),IaN(this),B=!1,mYO(this,this.videoTrack,r)&&(B=!0,Rrz(this.timing),FHO(this.timing)),this.cW&&!this.cW.iQ()&&(mYO(this,this.audioTrack,a)&&(B=!0,SkL(this.timing),Mvj(this.timing)),!this.wP()&&this.cW))!this.policy.Yf&&Hu(this.videoTrack)&&Hu(this.audioTrack)&&ED(this.cW)&&!this.cW.hO()&&(r=!1,r=ij(this.audioTrack).S,r=r===this.Qm.S[r.info.id])&&(this.logger.debug("Setting EOS"),xd4(this.cW),V0L(this.schedule),this.zi("e")), B&&!this.cW.isAsync()&&un(this)}}; g.E.zi=function(e){if(this.policy.IT&&this.Qm.isManifestless){var a=this.videoTrack.S;if(a){var r=a.index.q5(),P=-1,B=-1;a.index instanceof Ux&&(P=a.index.aC(),B=a.index.WS());this.uW.zi(e,r,P,B)}}}; g.E.QS=function(e){var a,r=e===((a=this.cW)==null?void 0:a.S)?this.audioTrack:this.videoTrack,P;if((P=oN(r))==null?0:P.isLocked){if(this.uW.G().UM()){var B;this.nf("eosl",{ounlock:(B=oN(r))==null?void 0:B.info.Kb()})}var h;eRI(this,e===((h=this.cW)==null?void 0:h.S))}var c;if(this.policy.mJ&&e===((c=this.cW)==null?void 0:c.S)&&this.HA){a=this.HA-this.getCurrentTime();var y;this.uW.nf("asl",{l:a,xtag:(y=ij(this.audioTrack))==null?void 0:y.S.info.S});this.rP=!1;this.HA=0}e.zT()&&e.HG().length===0&& (e.oh(),this.cW&&!this.cW.zT()&&(this.uW.G().UM()&&this.uW.nf("rms",{ld:"seek"}),this.cW.Z=performance.now(),this.uW.X3(),this.uW.G().UM()&&g.sC(this.AC)));var T;(T=r.N)!=null&&CP(T,0);this.policy.Te?Ti(this):this.CB()}; g.E.zd1=function(e){if(this.cW){var a=ij(e===this.cW.S?this.audioTrack:this.videoTrack);if(e=e.HL())for(var r=0;r5&&y.HW.shift();a=a.lW;var T;if((T=this.uW.getVideoData())==null?0:T.enableServerStitchedDai)T=l04(this.audioTrack,a),r=l04(this.videoTrack,a),T!==0&&r!==0&&T!==r&&this.handleError("ssdai.avsync",{sq:a,a:T,v:r},0)}}; g.E.Ei=function(e,a,r,P){e.info.video&&this.B.Ei(a,r,P)}; g.E.d3=function(e){this.S.d3(e)}; g.E.m$=eL(12);g.E.C3=function(){if(g.S(this.uW.getPlayerState(),8)){var e,a,r=(a=(e=this.uW.rg())==null?void 0:e.getCurrentTime())!=null?a:this.uW.getCurrentTime(),P;(P=this.bv)==null||$4j(P,r)}var B;(B=this.sM)==null||g.sC(B)}; g.E.ue=function(){return this.videoTrack.D||this.audioTrack.D}; g.E.seek=function(e,a){if(this.wP())return LN();if(this.ue())return LN("seeking to head");if(this.policy.HW&&!isFinite(e))return D$4(this.MC),g.lE(Infinity);YL3(this);oh(this);this.policy.S||DY4(this,e);this.cW&&this.cW.S&&this.cW.T&&!this.uW.getVideoData().LH&&(this.cW.S.isLocked()||this.cW.T.isLocked())&&this.uW.nE({reattachOnLockedBuffer:1,vsb:""+this.cW.T.isLocked(),asb:""+this.cW.S.isLocked()});var r=this.getCurrentTime(),P=this.MC.seek(e,a);if(!this.policy.Lf||this.policy.h9)this.currentTime= P;Ko(this.B,e,r,this.policy.JF&&!a.MH);un(this);return g.lE(P)}; g.E.rr=function(e){return this.policy.S&&this.T.rr(e)}; g.E.KR=function(e){return this.T.KR(e)}; g.E.O3=function(e,a){this.T.O3(e,a)}; g.E.getCurrentTime=function(){if(this.policy.Lf){var e=this.t9()||0;return this.uW.getCurrentTime(!0)-e}return this.currentTime}; g.E.AJ=function(){return this.audioTrack.S.info}; g.E.AL=function(){return this.videoTrack.S.info}; g.E.DU=function(){return this.audioTrack.S.info.vW}; g.E.Us=function(){return this.videoTrack.S.info.vW}; g.E.RH=function(){try{this.L9(),e6(this.audioTrack),e6(this.videoTrack),jc(this.audioTrack),jc(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.N.prototype.RH.call(this)}catch(e){g.D6(e)}}; g.E.handleError=function(e,a,r){r=r===void 0?0:r;var P=AX(r);e==="fmt.unplayable"&&this.Qm.isLive&&(this.policy.Gf=!1,Sf(this.Qm));a=new g.f_(e,a,r);g.oZ(this);XQ(a.details);this.uW.handleError(a);e!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&e!=="fmt.unparseable"&&P&&this.dispose()}; g.E.vA=function(){var e=ij(this.audioTrack),a=ij(this.videoTrack);e={lct:this.getCurrentTime().toFixed(3),lsk:this.MC.isSeeking(),lmf:this.S.S.isLocked(),lbw:qR(this.schedule).toFixed(3),lhd:I1(this.schedule).toFixed(3),lst:((this.schedule.D.rL()||0)*1E9).toFixed(3),laa:e?e.Kb():"",lva:a?a.Kb():"",lar:this.audioTrack.T?this.audioTrack.T.Kb():"",lvr:this.videoTrack.T?this.videoTrack.T.Kb():"",laq:""+qb(this.audioTrack),lvq:""+qb(this.videoTrack)};this.cW&&!this.cW.iQ()&&this.cW.S&&this.cW.T&&(e.lab= Pi(this.cW.S.HG()),e.lvb=Pi(this.cW.T.HG()));this.oH&&(e.lapt=((0,g.Ov)()-this.oH).toFixed(0),e.lapr=xYJ(this));this.XM&&(e.lapmabht=((0,g.Ov)()-this.XM).toFixed(0),e.lapmabh=ro(this,this.audioTrack).toFixed(0));this.GQ&&(e.lapmvbht=((0,g.Ov)()-this.GQ).toFixed(0),e.lapmvbh=ro(this,this.videoTrack).toFixed(0));this.Uo&&(e.lapsdai=((0,g.Ov)()-this.Uo).toFixed(0));return e}; g.E.GA=function(){try{this.policy.S&&this.T.O3(!1,"pending"),this.audioTrack.GA(),this.videoTrack.GA()}catch(e){g.D6(e)}this.policy.L=""}; g.E.hJ=function(){return Sz(this.N)}; g.E.nf=function(e,a,r){this.uW.nf(e,a,r===void 0?!1:r)}; g.E.Y2=function(){return this.uW.Y2()}; g.E.Zs=function(e,a){e/=a;isNaN(this.timestampOffset)&&yQl(this,e-Math.min(e,this.policy.R9));return(e-this.timestampOffset)*a}; g.E.t9=function(){return this.timestampOffset}; g.E.isSeeking=function(){return this.MC.isSeeking()}; g.E.QM=function(){this.B.QM()}; g.E.E9=function(e,a,r){a=a===void 0?!1:a;r=r===void 0?{}:r;this.policy.S?this.L.E9(e,a,r):this.S.E9(e,a,r)}; g.E.M2=function(e,a){if(this.Y&&this.B.M2(e,this.Y)){if(this.policy.PW&&this.policy.T){var r=this.videoTrack.S.index.I4(e),P;(P=this.Eo)==null||P.X9(e,r)}yQl(this,this.timestampOffset-a);un(this);this.policy.T&&(Sf(this.Qm),jc(this.audioTrack),jc(this.videoTrack),this.GA());return!0}a=this.videoTrack.S.index.I4(e);this.handleError("ad.skipfailed",{dec:!!this.Y,t:e.toFixed(3),sq:a});return!1}; g.E.getManifest=function(){return this.Qm}; g.E.isOffline=function(){return!!this.uW.getVideoData().cotn}; g.E.wi=function(e,a){this.uW.wi(e,a)}; g.E.Bi=function(e){if(this.policy.S)this.T.O3(!0,"utc"),this.CB();else{var a=this.uW.getVideoData().XG;if(a){var r=this.C;r.c7=e;r.XG=a;f2(this)}}}; g.E.oy=function(e){this.videoTrack.D=!1;this.audioTrack.D=!1;this.MC.S=!1;this.uW.oy(e)}; g.E.Jp=function(e){this.MC.Jp(e-this.t9())}; g.E.z_=function(){this.uW.z_()}; g.E.pU=function(e){e!==this.policy.He&&((this.policy.He=e)||this.CB())}; g.E.nE=function(e){this.uW.nE(e)}; g.E.rp=function(e){this.uW.rp(e)}; g.E.ZN=function(e,a,r){var P;(P=this.Eo)==null||P.ZN(e,a,r)}; g.E.sO=function(e,a){var r;(r=this.Eo)==null||r.sO(e,a)}; g.E.jk=function(){return this.uW.jk()}; g.E.Fq=function(e,a){if(this.policy.ID){var r;(r=this.Eo)==null||r.Fq(e,this.timestampOffset,a,this.Y||void 0)}};g.E=g.Au.prototype;g.E.jE=function(e,a,r,P,B,h){return this.cO.jE(e,a,r,P,B,h)}; g.E.Bh=function(e,a,r,P,B,h){return this.cO.Bh(e,a,r,P,B,h)}; g.E.R3=function(e){return this.cO.R3(e)}; g.E.LF=function(e){this.cO.LF(e)}; g.E.Ih=function(e,a,r,P){return this.cO.Ih(e,a,r,P)}; g.E.QM=function(){this.cO.QM()}; g.E.X9=function(e,a){this.cO.X9(e,a)}; g.E.x8=function(){this.cO.x8()}; g.E.Lj=eL(56);g.E.QY=function(e,a,r){this.cO.QY(e,a,r)}; g.E.Ns=eL(59);g.E.MJ=function(e,a,r,P,B,h,c,y,T){this.cO.MJ(e,a,r,P,B,h,c,y,T)}; g.E.yA=function(e){this.cO.yA(e)}; g.E.qz=function(e){return this.cO.qz(e)}; g.E.gr=function(e){return this.cO.gr(e)}; g.E.Ss=function(e){return this.cO.Ss(e)};g.b(UM,g.aK);g.b(CJ,UM);CJ.prototype.Z=function(e,a){if(e&&a){var r=Number(OW(e,"cpi"))*1+1;isNaN(r)||r<=0||rthis.B&&(this.B=r,g.Ak(this.S)||(this.S={},this.L.stop(),this.T.stop())),this.S[a]=e,g.sC(this.T))}}; CJ.prototype.C=function(){for(var e=g.Z(Object.keys(this.S)),a=e.next();!a.done;a=e.next()){var r=a.value;a=this.publish;for(var P=this.B,B=g.yp(this.S[r]),h=[],c=g.Z(B[6].split("&")),y=c.next();!y.done;y=c.next())y=y.value,y.indexOf("cpi=")===0?h.push("cpi="+P.toString()):y.indexOf("ek=")===0?h.push("ek="+g.VC(r)):h.push(y);B[6]="?"+h.join("&");r="skd://"+B.slice(2).join("");B=r.length*2;P=new Uint8Array(B+4);P[0]=B%256;P[1]=(B-P[0])/256;for(B=0;B0)for(var r=g.Z(this.S),P=r.next();!P.done;P=r.next())if(a===P.value.info.cryptoPeriodIndex){a=!0;break a}a=!1}if(!a){a=(0,g.Ov)();a:{r=e.cryptoPeriodIndex;if(!isNaN(r)){P=g.Z(this.B.values());for(var B=P.next();!B.done;B=P.next())if(Math.abs(B.value.cryptoPeriodIndex-r)<=1){r=!0;break a}}r=!1}r?(r=e.S,r=Math.max(0,Math.random()*((isNaN(r)?120:r)-30))*1E3):r=0;this.publish("log_qoe",{wvagt:"delay."+r,cpi:e.cryptoPeriodIndex,reqlen:this.S.length}); r<=0?Z2O(this,e):(this.S.push({time:a+r,info:e}),g.sC(this.T,r))}}; Gq.prototype.RH=function(){this.S=[];UM.prototype.RH.call(this)};var Oz={},DDI=(Oz.DRM_TRACK_TYPE_AUDIO="AUDIO",Oz.DRM_TRACK_TYPE_SD="SD",Oz.DRM_TRACK_TYPE_HD="HD",Oz.DRM_TRACK_TYPE_UHD1="UHD1",Oz);g.b(dDJ,g.N);g.b($Dl,g.aK);g.E=$Dl.prototype;g.E.LT=function(e){var a=this;if(!(this.wP()||e.size<=0)){var r={};e.forEach(function(P,B){var h=BM(a.T)?B:P;B=new Uint8Array(BM(a.T)?P:B);BM(a.T)&&RKO(B);P=g.Vq(B,4);RKO(B);B=g.Vq(B,4);a.S[P]?a.S[P].status=h:a.S[B]?a.S[B].status=h:a.S[P]={type:"",status:h};qIO(a,a.S[P].type,r)}); IMN(this,",");EM(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.E.error=function(e,a,r,P){this.wP()||(this.publish("licenseerror",e,a,r,P),e==="drm.provision"&&(e=(Date.now()-this.Z)/1E3,this.Z=NaN,this.publish("ctmp","provf",{et:e.toFixed(3)})));AX(a)&&this.dispose()}; g.E.shouldRetry=function(e,a){return!e&&this.requestNumber===a.requestNumber}; g.E.RH=function(){this.S={};g.aK.prototype.RH.call(this)}; g.E.vA=function(){var e={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.TQ,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(e.keyStatuses=this.S);return e}; g.E.getInfo=function(){var e=this.L.join();if(bH(this)){var a=new Set,r;for(r in this.S)this.S[r].status!=="usable"&&a.add(this.S[r].type);e+="/UKS."+Array.from(a)}return e+="/"+this.cryptoPeriodIndex}; g.E.ju=function(){return this.url};g.b(gY,g.N);g.E=gY.prototype;g.E.DR=function(e){if(this.C){var a=e.messageType||"license-request";this.C(new Uint8Array(e.message),a)}}; g.E.LT=function(){this.D&&this.D(this.S.keyStatuses)}; g.E.onClosed=function(){this.wP()||g.zu("xboxone")&&this.B&&this.B("closedShouldNotRetry")}; g.E.Bd=function(e){this.C&&this.C(e.message,"license-request")}; g.E.TK=function(e){if(this.B){if(this.T){var a=this.T.error.code;e=this.T.error.systemCode}else a=e.errorCode,e=e.systemCode;this.B("t.prefixedKeyError;c."+a+";sc."+e,a,e)}}; g.E.bA=function(){this.Z&&this.Z()}; g.E.update=function(e){var a=this;if(this.S)return this.S.update(e).then(null,M5(function(r){shI(a,"t.update",r)})); this.T?this.T.update(e):this.element.addKey?this.element.addKey(this.Y.keySystem,e,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,e,this.initData,this.sessionId);return VU()}; g.E.RH=function(){this.S&&(this.N?this.S.close().catch(g.VJ):this.S.close());this.element=null;g.N.prototype.RH.call(this)};g.b(ZC,g.N);g.E=ZC.prototype;g.E.setServerCertificate=function(){return this.T.setServerCertificate?this.S.flavor==="widevine"&&this.S.gb?this.T.setServerCertificate(this.S.gb):o1(this.S)&&this.S.Uo?this.T.setServerCertificate(this.S.Uo):null:null}; g.E.createSession=function(e,a){var r=e.initData;if(this.S.keySystemAccess){a&&a("createsession");var P=this.T.createSession();cM(this.S)?r=MRL(r,this.S.Uo):o1(this.S)&&(r=gU4(r)||new Uint8Array(0));a&&a("genreq");e=P.generateRequest(e.contentType,r);var B=new gY(null,null,null,P,null,this.D);e.then(function(){a&&a("genreqsuccess")},M5(function(c){shI(B,"t.generateRequest",c)})); return B}if(PM(this.S))return u14(this,r);if(hG(this.S))return jhy(this,r);if((P=this.element)==null?0:P.generateKeyRequest)this.element.generateKeyRequest(this.S.keySystem,r);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.S.keySystem,r)}return this.L=new gY(this.element,this.S,r,null,null,this.D)}; g.E.zt=function(e){var a=K3L(this,e);a&&a.Bd(e)}; g.E.je=function(e){var a=K3L(this,e);a&&a.TK(e)}; g.E.UR=function(e){var a=K3L(this,e);a&&a.bA(e)}; g.E.getMetrics=function(){var e=null;if(this.T&&this.T.getMetrics)try{e=this.T.getMetrics()}catch(a){}return e}; g.E.RH=function(){this.B=this.T=null;var e;(e=this.L)==null||e.dispose();e=g.Z(Object.values(this.Z));for(var a=e.next();!a.done;a=e.next())a.value.dispose();this.Z={};g.N.prototype.RH.call(this);delete this.element};g.E=OM.prototype;g.E.get=function(e){e=this.findIndex(e);return e!==-1?this.values[e]:null}; g.E.remove=function(e){e=this.findIndex(e);e!==-1&&(this.keys.splice(e,1),this.values.splice(e,1))}; g.E.removeAll=function(){this.keys=[];this.values=[]}; g.E.set=function(e,a){var r=this.findIndex(e);r!==-1?this.values[r]=a:(this.keys.push(e),this.values.push(a))}; g.E.findIndex=function(e){return g.gb(this.keys,function(a){return g.sG(e,a)})};g.b(ruj,g.aK);g.E=ruj.prototype;g.E.SMr=function(e){this.Em({onecpt:1});e.initData&&hTj(this,new Uint8Array(e.initData),e.initDataType)}; g.E.jD$=function(e){this.Em({onndky:1});hTj(this,e.initData,e.contentType)}; g.E.DT=function(e){this.Em({onneedkeyinfo:1});this.iW.X("html5_eme_loader_sync")&&(this.D.get(e.initData)||this.D.set(e.initData,e));BYj(this,e)}; g.E.zH=function(e){this.B.push(e);kV(this)}; g.E.createSession=function(e){var a=oVN(this)?vE4(e):g.Vq(e.initData);this.T.get(a);this.Eo=!0;e=new $Dl(this.videoData,this.iW,e,this.drmSessionId);this.T.set(a,e);e.subscribe("ctmp",this.Fj,this);e.subscribe("keystatuseschange",this.LT,this);e.subscribe("licenseerror",this.Yr,this);e.subscribe("newlicense",this.Sp,this);e.subscribe("newsession",this.pu,this);e.subscribe("sessionready",this.Cu,this);e.subscribe("fairplay_next_need_key_info",this.iA,this);this.iW.X("html5_enable_vp9_fairplay")&&e.subscribe("qualitychange", this.YN,this);e.subscribe("sabrlicenseconstraint",this.F2W,this);L3q(e,this.L)}; g.E.Sp=function(e){this.wP()||(this.Em({onnelcswhb:1}),e&&!this.heartbeatParams&&(this.heartbeatParams=e,this.publish("heartbeatparams",e)))}; g.E.pu=function(){this.wP()||(this.Em({newlcssn:1}),this.B.shift(),this.Eo=!1,kV(this))}; g.E.Cu=function(){if(PM(this.S)&&(this.Em({onsnrdy:1}),this.e1--,this.e1===0)){var e=this.HW,a,r;(a=e.element)==null||(r=a.msSetMediaKeys)==null||r.call(a,e.B)}}; g.E.LT=function(e){if(!this.wP()){this.Cf||(this.Cf=!0,this.iW.UM()&&nV4(this));this.Em({onksch:1});var a=this.YN;if(!bH(e)&&g.qU&&e.T.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var r="large";else{r=[];var P=!0;if(bH(e))for(var B=g.Z(Object.keys(e.S)),h=B.next();!h.done;h=B.next())h=h.value,e.S[h].status==="usable"&&r.push(e.S[h].type),e.S[h].status!=="unknown"&&(P=!1);if(!bH(e)||P)r=e.L;r=xDI(r)}a.call(this,r);if(!bH(e))for(a={},r=g.Z(e.L),P=r.next();!P.done;P=r.next())qIO(e, P.value,a);this.videoData.authorizedFormats=e.authorizedFormats;this.publish("keystatuseschange",e)}}; g.E.Fj=function(e,a){this.wP()||this.publish("ctmp",e,a)}; g.E.iA=function(e,a){this.wP()||this.publish("fairplay_next_need_key_info",e,a)}; g.E.Yr=function(e,a,r,P){this.wP()||(this.videoData.X("html5_log_drm_metrics_on_error")&&nV4(this),this.publish("licenseerror",e,a,r,P))}; g.E.eq=function(){return this.Y}; g.E.YN=function(e){var a=g.dp("auto",e,!1,"l");if(this.videoData.He){if(this.Y.equals(a))return}else if(XAy(this.Y,e))return;this.Y=a;this.publish("qualitychange");this.Em({updtlq:e})}; g.E.F2W=function(e){this.videoData.sabrLicenseConstraint=e}; g.E.RH=function(){this.S.keySystemAccess&&this.element&&(this.TQ?this.element.setMediaKeys(null).catch(g.VJ):this.element.setMediaKeys(null));this.element=null;this.B=[];for(var e=g.Z(this.T.values()),a=e.next();!a.done;a=e.next())a=a.value,a.unsubscribe("ctmp",this.Fj,this),a.unsubscribe("keystatuseschange",this.LT,this),a.unsubscribe("licenseerror",this.Yr,this),a.unsubscribe("newlicense",this.Sp,this),a.unsubscribe("newsession",this.pu,this),a.unsubscribe("sessionready",this.Cu,this),a.unsubscribe("fairplay_next_need_key_info", this.iA,this),this.iW.X("html5_enable_vp9_fairplay")&&a.unsubscribe("qualitychange",this.YN,this),a.dispose();this.T.clear();this.Z.removeAll();this.D.removeAll();this.heartbeatParams=null;g.aK.prototype.RH.call(this)}; g.E.vA=function(){for(var e={systemInfo:this.S.vA(),sessions:[]},a=g.Z(this.T.values()),r=a.next();!r.done;r=a.next())e.sessions.push(r.value.vA());return e}; g.E.getInfo=function(){return this.T.size<=0?"no session":""+this.T.values().next().value.getInfo()+(this.C?"/KR":"")}; g.E.Em=function(e,a){a=a===void 0?!1:a;this.wP()||(XQ(e),(this.iW.UM()||a)&&this.publish("ctmp","drmlog",e))};g.b(Auj,g.N);g.E=Auj.prototype;g.E.l4=function(){return!!this.BE}; g.E.yM=function(){return this.T}; g.E.handleError=function(e){var a=this;tQz(this,e);if((e.errorCode!=="html5.invalidstate"&&e.errorCode!=="fmt.unplayable"&&e.errorCode!=="fmt.unparseable"||!bJ3(this,e.errorCode,e.details))&&!kqy(this,e)){if(this.gP.HW!=="yt"&&ZJj(this,e)&&this.videoData.vj&&(0,g.Ov)()/1E3>this.videoData.vj&&this.gP.HW==="hm"){var r=Object.assign({e:e.errorCode},e.details);r.stalesigexp="1";r.expire=this.videoData.vj;r.init=this.videoData.gt/1E3;r.now=(0,g.Ov)()/1E3;r.systelapsed=((0,g.Ov)()-this.videoData.gt)/1E3; e=new g.f_(e.errorCode,r,2);this.uW.Ex(e.errorCode,2,"SIGNATURE_EXPIRED",XQ(e.details))}if(AX(e.severity)){var P;r=(P=this.uW.loader)==null?void 0:P.S.S;if(this.gP.X("html5_use_network_error_code_enums"))if(gV4(e)&&r&&r.isLocked())var B="FORMAT_UNAVAILABLE";else if(this.gP.Z||e.errorCode!=="auth"||e.details.rc!==429)e.errorCode==="ump.spsrejectfailure"&&(B="HTML5_SPS_UMP_STATUS_REJECTED");else{B="TOO_MANY_REQUESTS";var h="6"}else gV4(e)&&r&&r.isLocked()?B="FORMAT_UNAVAILABLE":this.gP.Z||e.errorCode!== "auth"||e.details.rc!=="429"?e.errorCode==="ump.spsrejectfailure"&&(B="HTML5_SPS_UMP_STATUS_REJECTED"):(B="TOO_MANY_REQUESTS",h="6");this.uW.Ex(e.errorCode,e.severity,B,XQ(e.details),h)}else this.uW.publish("nonfatalerror",e),P=/^pp/.test(this.videoData.clientPlaybackNonce),this.LB(e.errorCode,e.details),P&&e.errorCode==="manifest.net.connect"&&(e="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Ov)(),v8(e,"manifest",function(c){a.Z=!0;a.nf("pathprobe",c)}, function(c){a.LB(c.errorCode,c.details)}))}}; g.E.nf=function(e,a){this.uW.cA.nf(e,a)}; g.E.LB=function(e,a){a=XQ(a);this.uW.cA.LB(e,a)};dY.prototype.c9=function(e){var a=VQI(this);if(!e)return{Jt:A3,xQ:A3,rk:A3,LV:A3,Vu:A3,uE:A3,bE:a};var r=A3;if(D9(a)||this.X("html5_perf_cap_override_sticky"))r=xn3(this,e);return{Jt:r,xQ:YMq(this,e),rk:lCL(this,e),LV:IC4(this,e.videoData),Vu:HJI(this,e.videoData,e),uE:QRy(this,e),bE:a}}; dY.prototype.tP=function(e){if(g.Uh(this.iW)&&H2(this.iW.C,q$.HEIGHT))var a=e.S.videoInfos[0].video.qualityOrdinal;else{var r=this.PY(!!e.S.S);Do(e.videoData)||Tg(e.videoData);e=e.S.videoInfos;if(e.length){var P=g.eS(this.iW.experiments,"html5_override_oversend_fraction")||.85,B=e[0].video;B.projectionType!=="MESH"&&B.projectionType!=="EQUIRECTANGULAR"&&B.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||am||(P=.45);B=g.eS(this.iW.experiments,"html5_viewport_undersend_maximum");for(var h=0;h< e.length;h++){a=e[h];var c=a.video;if(r===null||c.width*P=0,stateAtSend:a,joinLatencySecs:h,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:P,playerCanaryStage:B,isAd:this.provider.videoData.isAd(),liveMode:r,hasDrm:!!g.HE(this.provider.videoData),isGapless:this.provider.videoData.D,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:QZ(this.provider.videoData)};e||g.BU("html5PlayerHealthEvent",a);this.B=!0;this.dispose()}}; DC.prototype.RH=function(){this.B||this.send();window.removeEventListener("error",this.qJ);window.removeEventListener("unhandledrejection",this.qJ);g.N.prototype.RH.call(this)}; var aQl=/\bnet\b/;sRL.prototype.update=function(){if(this.D){var e=this.XI()||0,a=g.c7(this.provider);e>=this.provider.uW.getDuration()-.1&&(this.previouslyEnded=!0);if(e!==this.S||MQO(this,e,a)){var r;if(!(r=ea-this.R5+2||MQO(this,e,a))){r=this.provider.uW.getVolume();var P=r!==this.N,B=this.provider.uW.isMuted()?1:0;B!==this.Y?(this.Y=B,r=!0):(!P||this.L>=0||(this.N=r,this.L=a),r=a-this.L,this.L>=0&&r>2?(this.L=-1,r=!0):r=!1)}r&&($V(this),this.B=e);this.R5=a;this.S=e}}}; sRL.prototype.XI=function(){var e=this.provider.uW.XI();return this.provider.iW.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&$0(this.provider.videoData)?e+this.provider.uW.t9():e};jRI.prototype.send=function(e){var a=this;if(!this.PW){var r=KZO(this),P=g.EW(this.uri,r);this.iW.X("vss_through_gel_double")&&ezO(P);this.Eo&&!this.iW.X("html5_simplify_pings")?hz3(this,P):uR4(this,e).then(function(B){a.Eo&&(B=B||{},B.method="POST",B.postParams={atr:a.attestationResponse});Mtl(P,B,{token:a.oH,lH:a.T$,mdxEnvironment:a.mdxEnvironment},a.iW,e,a.Lf,a.isFinal&&a.t1||a.Cf||a.B&&a.A1)}); this.PW=!0}}; jRI.prototype.T=function(e){e===void 0&&(e=NaN);return Number(e.toFixed(3)).toString()}; var kt={},PZ4=(kt.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,kt.LIVING_ROOM_APP_MODE_MAIN=1,kt.LIVING_ROOM_APP_MODE_KIDS=2,kt.LIVING_ROOM_APP_MODE_MUSIC=3,kt.LIVING_ROOM_APP_MODE_UNPLUGGED=4,kt.LIVING_ROOM_APP_MODE_GAMING=5,kt),dg={},rmy=(dg.EMBEDDED_PLAYER_MODE_UNKNOWN=0,dg.EMBEDDED_PLAYER_MODE_DEFAULT=1,dg.EMBEDDED_PLAYER_MODE_PFP=2,dg.EMBEDDED_PLAYER_MODE_PFL=3,dg);g.b(W7,g.N);W7.prototype.onProgress=function(){this.S.update();UpI(this)&&(n7j(this),ymj(this))}; W7.prototype.RH=function(){g.N.prototype.RH.call(this);YV(this);mn4(this.S)}; W7.prototype.vA=function(){return KZO(lH(this,"playback"))}; W7.prototype.L_=function(e){var a=lH(this,"engage");a.TQ=e;return aJO(a,g7q(this.provider))};tij.prototype.isEmpty=function(){return this.endTime===this.startTime};pJ.prototype.X=function(e){return this.iW.X(e)}; pJ.prototype.getCurrentTime=function(){return this.uW.getCurrentTime()}; pJ.prototype.XI=function(){return this.uW.XI()}; var Zc4={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.b(g.iH,g.N);g.E=g.iH.prototype;g.E.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.u$){var e;(e=this.B.get(this.u$))==null||e.onProgress()}else if(this.S)this.S.onProgress()}; g.E.J4=function(e){this.qoe&&this.qoe.J4(e)}; g.E.Gu=eL(29);g.E.yJ=eL(35);g.E.U1=function(e,a){this.qoe&&this.qoe.U1(e,a)}; g.E.B_=function(){if(this.provider.videoData.enableServerStitchedDai&&this.u$){var e;(e=this.B.get(this.u$))!=null&&$V(e.S)}else this.S&&$V(this.S.S)}; g.E.LB=function(e,a){this.qoe&&Aty(this.qoe,e,a);if(this.T)this.T.onError(e)}; g.E.Xd=function(e){var a;(a=this.qoe)==null||a.Xd(e)}; g.E.onPlaybackRateChange=function(e){if(this.qoe)this.qoe.onPlaybackRateChange(e);this.S&&$V(this.S.S)}; g.E.Yp=eL(52);g.E.nf=function(e,a,r){this.qoe&&this.qoe.nf(e,a,r)}; g.E.j0=function(e,a,r){this.qoe&&this.qoe.j0(e,a,r)}; g.E.FT=function(e){var a;(a=this.qoe)==null||a.FT(e)}; g.E.Z0=function(e){var a;(a=this.qoe)==null||a.Z0(e)}; g.E.zi=function(e,a,r,P){var B;(B=this.qoe)==null||B.zi(e,a,r,P)}; g.E.rp=function(e){this.qoe&&this.qoe.rp(e)}; g.E.bk=function(e,a,r){this.qoe&&this.qoe.bk(e,a,r)}; g.E.rT=eL(23);g.E.lG=function(){if(this.qoe)return this.qoe.lG()}; g.E.vA=function(){if(this.provider.videoData.enableServerStitchedDai&&this.u$){var e,a;return(a=(e=this.B.get(this.u$))==null?void 0:e.vA())!=null?a:{}}return this.S?this.S.vA():{}}; g.E.Q7=function(){var e;return(e=this.qoe)==null?void 0:e.Q7()}; g.E.Ac=function(e,a){var r;(r=this.qoe)==null||r.Ac(e,a)}; g.E.L_=function(e){return this.S?this.S.L_(e):function(){}}; g.E.getVideoData=function(){return this.provider.videoData}; g.E.resume=function(){this.qoe&&this.qoe.resume()};g.b(g.zq,g.N);g.E=g.zq.prototype;g.E.Ji=function(e,a){this.sync();a&&this.S.array.length>=2E3&&this.LD("captions",1E4);a=this.S;if(e.length>1&&e.length>a.array.length)a.array=a.array.concat(e),a.array.sort(a.S);else{e=g.Z(e);for(var r=e.next();!r.done;r=e.next())r=r.value,!a.array.length||a.S(r,a.array[a.array.length-1])>0?a.array.push(r):g.ml(a.array,r,a.S)}this.B=NaN;this.sync()}; g.E.FU=function(e){e.length>1E4&&g.VJ(new g.I6("Over 10k cueRanges removal occurs with a sample: ",e[0]));if(!this.wP()){var a=new Set(e);this.T=this.T.filter(function(r){return!a.has(r)}); N2j(this.S,a);this.sync()}}; g.E.sC=function(e,a){if(!this.wP()){var r=this.AR().find(function(P){return P.id===a&&P.namespace===e}); r&&this.FU([r])}}; g.E.LD=function(e,a){var r=(isNaN(this.B)?v7L(this):this.B)-a;a=this.AR().filter(function(P){return P.namespace===e&&P.endthis.S,h=g.S(r,8)&&g.S(r,16),c=this.uW.XU().isBackground()||r.isSuspended();mZ(this,this.ym,h&&!c,B,"qoe.slowseek",function(){},"timeout"); var y=isFinite(this.S);y=h&&y&&s9T(a,this.S);var T=!P||Math.abs(P-this.S)>10,X=this.iW.X("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),f=P===0&&this.T&&[11,10].includes(this.T);mZ(this,this.PW,y&&T&&!c&&(!X||!f),B,"qoe.slowseek",function(){a.seekTo(e.S)},"set_cmt"); T=y&&h0(a.vV(),this.S);var A=this.uW.loader;y=!A||A.t2();var U=function(){a.seekTo(e.S+.001)}; mZ(this,this.Cf,T&&y&&!c,B,"qoe.slowseek",U,"jiggle_cmt");y=function(){return e.uW.p5()}; mZ(this,this.XM,T&&!c,B,"qoe.slowseek",y,"new_elem");var C=iB(r);f=r.isBuffering();var G=a.vV(),O=Bi(G,P),d=O>=0&&G.end(O)>P+5;T=C&&f&&d;X=this.uW.getVideoData();mZ(this,this.e1,P<.002&&this.S<.002&&h&&g.Uh(this.iW)&&g.Bx(X)&&!c,B,"qoe.slowseek",y,"slow_seek_shorts");mZ(this,this.N,X.z0()&&h&&!c&&!X.oH,B,"qoe.slowseek",y,"slow_seek_gapless_shorts");mZ(this,this.HW,T&&!c,C&&!f,"qoe.longrebuffer",U,"jiggle_cmt");mZ(this,this.oH,T&&!c,C&&!f,"qoe.longrebuffer",y,"new_elem_nnr");if(A){var W=A.getCurrentTime(); h=a.CD();h=pK4(h,W);h=!A.isSeeking()&&P===h;mZ(this,this.ID,C&&f&&h&&!c,C&&!f&&!h,"qoe.longrebuffer",function(){a.seekTo(W)},"seek_to_loader")}h={}; U=Bi(G,Math.max(P-3.5,0));var V=U>=0&&P>G.end(U)-1.1,L=U>=0&&U+1=0&&V&&L<11;h.close2edge=V;h.gapsize=L;h.buflen=G.length;this.T&&(h.seekSour=this.T);mZ(this,this.TQ,C&&f&&!c,C&&!f,"qoe.longrebuffer",function(){},"timeout",h); h=r.isSuspended();h=this.uW.Jb()&&!h;mZ(this,this.D,h,!h,"qoe.start15s",function(){e.uW.wy("ad")},"ads_preroll_timeout"); h=this.iW.experiments.FM("html5_use_playback_rate_in_skip_slow_ad")?this.uW.getPlaybackRate()*1E3:1E3;O=P-this.L5;mZ(this,this.GQ,g.Bx(X)&&A,C&&!f,"qoe.longrebuffer",function(){e.uW.nE()},"reset_media_source"); mZ(this,this.Uo,g.Bx(X)&&A,C&&!f,"qoe.longrebuffer",y,"reset_media_element");this.L===0&&(this.Z=P);A=f&&this.S===0&&P>1&&P===this.Z;mZ(this,this.Lf,g.Bx(X)&&A,C&&!f,"qoe.slowseek",function(){a.seekTo(0)},"reseek_after_time_jump"); c=r.isOrWillBePlaying()&&!c;d=this.uW.XJ()-P<6&&!d&&this.uW.fS();mZ(this,this.Y,X.z0()&&c&&f&&d,C&&!f,"qoe.longrebuffer",function(){e.uW.p5(!1,!0)},"handoff_end_long_buffer_reload"); c=this.T===104||this.uW.p$;r=J3(X)&&X.isAd()&&!X.oH&&c&&(f||g.S(r,8)&&g.S(r,16));mZ(this,this.k$,r,B,"qoe.start15s",y,"gapless_ad_slow_start");r=J3(X)&&!X.oH&&c&&T;mZ(this,this.rP,r,B,"qoe.longrebuffer",y,"gapless_slow_start");this.L=P;this.C.start()}}; sM.prototype.LB=function(e,a,r){a=this.vA(a);a.wn=r;a.wdup=this.B[e]?"1":"0";this.uW.LB(new g.f_(e,a));this.B[e]=!0}; sM.prototype.vA=function(e){e=Object.assign(this.uW.vA(!0),e.vA());this.S&&(e.stt=this.S.toFixed(3));this.uW.getVideoData().isLivePlayback&&(e.ct=this.uW.getCurrentTime().toFixed(3),e.to=this.uW.t9().toFixed(3));delete e.uga;delete e.euri;delete e.referrer;delete e.fexp;delete e.vm;return e}; SQ.prototype.reset=function(){this.S=this.T=this.B=this.startTimestamp=0;this.L=!1}; SQ.prototype.test=function(e){if(!this.C||this.T)return!1;if(!e)return this.reset(),!1;e=(0,g.Ov)();if(!this.startTimestamp)this.startTimestamp=e,this.B=0;else if(this.B>=this.C)return this.T=e,!0;this.B+=1;return!1}; SQ.prototype.vA=function(){var e={},a=(0,g.Ov)();this.startTimestamp&&(e.wsd=(a-this.startTimestamp).toFixed());this.T&&(e.wtd=(a-this.T).toFixed());this.S&&(e.wssd=(a-this.S).toFixed());return e};g.b(yhz,g.N);g.E=yhz.prototype;g.E.setMediaElement=function(e){(this.mediaElement=e)?(this.mediaElement&&(this.C||this.B||!this.mediaElement.II()||this.seekTo(.01,{ze:"seektimeline_setupMediaElement"})),FR(this)):jQ(this)}; g.E.getCurrentTime=function(e){e=e===void 0?!1:e;if(Mn(this.uW)){if(this.X("html5_use_centralized_player_time")&&!e&&!isNaN(this.Z))return this.Z;if(!isNaN(this.T))return this.T}else{if(this.X("html5_use_centralized_player_time")&&!e&&!isNaN(this.Z)&&isFinite(this.Z))return this.Z;if(!isNaN(this.T)&&isFinite(this.T))return this.T}return this.mediaElement&&dGL(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0}; g.E.w2=function(){return this.k$}; g.E.XI=function(){return this.getCurrentTime()-this.t9()}; g.E.C8=function(){return this.S?this.S.C8():Infinity}; g.E.isAtLiveHead=function(e){if(!this.S)return!1;e===void 0&&(e=this.getCurrentTime());return qn(this.S,e)}; g.E.o5=function(){return!!this.S&&this.S.o5()}; g.E.seekTo=function(e,a){var r=a===void 0?{}:a;a=r.k9===void 0?!1:r.k9;var P=r.zM===void 0?0:r.zM;var B=r.c_===void 0?!1:r.c_;var h=r.ZA===void 0?0:r.ZA;var c=r.ze===void 0?"":r.ze;var y=r.seekSource===void 0?void 0:r.seekSource;var T=r.Zs===void 0?!1:r.Zs;var X=r.MH===void 0?!1:r.MH;r=r.uH===void 0?!1:r.uH;T&&(e+=this.t9());QZ(this.videoData)&&y===29&&(this.k$=void 0);T=e=this.HZ())||!g.FL(this.videoData),O||(d={st:d,mst:this.HZ()},this.S&&this.X("html5_high_res_seek_logging")&&(d.ht=this.S.C8(),d.adft=rhy(this.S)),this.uW.nf("seeknotallowed",d)),d=O));if(!d)return this.L&&(this.L=null,ZkJ(this)),g.lE(this.getCurrentTime());d=.005;X&&this.X("html5_sabr_seek_no_shift_tolerance")&&(d=0);if(Math.abs(e-this.T)<=d&&this.Lf)return this.C;c&&(d=e,(this.iW.UM()||this.X("html5_log_seek_reasons"))&& this.uW.nf("seekreason",{reason:c,tgt:d}));y&&(this.HW.T=y);this.Lf&&jQ(this);this.C||(this.C=new kF);e&&!isFinite(e)&&Ah3(this,!1);(c=r||T)||(c=e,c=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.S&&!(this.mediaElement&&this.mediaElement.Lq()>0&&J0(this.mediaElement)>0)||w3(this.videoData)&&this.N5()===this.HZ(!1)?0:isFinite(c)||!w3(this.videoData)));c||(e=KJ(this,e,B));e&&!isFinite(e)&&Ah3(this,!1);this.X("html5_use_centralized_player_time")?this.Z=e:this.T=this.B=e;this.GQ= h;this.D=0;this.S&&(B=this.S,h=e,P6j(B,h,!1),BPj(B,h));B=this.uW;h=e;c={k9:a,seekSource:y};B.fb.B=h;r=B.CC;r.mediaTime=h;r.S=!0;c.k9&&B.Y9(c);c=h>B.videoData.endSeconds&&h>B.videoData.limitedPlaybackDurationInSeconds;B.Of&&c&&isFinite(h)&&aW4(B);ha.start&&aW4(this.uW);return this.C}; g.E.HZ=function(e){if(!this.videoData.isLivePlayback)return this.uW.videoData.HZ();var a;return EL(this.videoData)&&((a=this.mediaElement)==null?0:a.isPaused())&&this.videoData.S?(e=this.getCurrentTime(),u$4(this.BZ(e)*1E3)+e):this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&QZ(this.videoData)&&this.videoData.S?e?this.videoData.S.oH||0:this.videoData.S.H8||0:w3(this.videoData)&&this.videoData.TQ&&this.videoData.S?this.videoData.S.HZ()+this.timestampOffset:this.videoData.B&&this.videoData.B.S? !e&&this.S?this.S.C8():this.uW.videoData.HZ()+this.timestampOffset:this.mediaElement?If()?u$4(this.mediaElement.oT().getTime()):J0(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.E.N5=function(){if(this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&QZ(this.videoData)){var e;return((e=this.videoData.S)==null?void 0:e.ZI)||0}e=this.videoData?this.videoData.N5()+this.timestampOffset:this.timestampOffset;if(EL(this.videoData)&&this.videoData.S){var a,r=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3;a=this.getCurrentTime();a=this.BZ(a)-a;if(!isNaN(r)&&!isNaN(a))return Math.max(e,r-a)}return e}; g.E.X3=function(){this.C||this.seekTo(this.B,{ze:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.E.ue=function(){return this.Lf&&!isFinite(this.T)}; g.E.RH=function(){UGT(this,null);this.HW.dispose();g.N.prototype.RH.call(this)}; g.E.vA=function(){var e={};this.loader&&Object.assign(e,this.loader.vA());this.mediaElement&&Object.assign(e,this.mediaElement.vA());return e}; g.E.jC=function(e){this.timestampOffset=e}; g.E.getStreamTimeOffset=function(){return w3(this.videoData)?0:this.videoData.S?this.videoData.S.getStreamTimeOffset():0}; g.E.t9=function(){return this.timestampOffset}; g.E.BZ=function(e){return this.videoData&&this.videoData.S?this.videoData.S.BZ(e-this.timestampOffset):NaN}; g.E.lL=function(){if(!this.mediaElement)return 0;if(M4(this.videoData)){var e=this.mediaElement,a=e.vV();e=(nZ(a)&&e.getDuration()?a.end(a.length-1):0)+this.timestampOffset-this.N5();a=this.HZ()-this.N5();return Math.max(0,Math.min(1,e/a))}return this.mediaElement.lL()}; g.E.Qj=function(e){this.Y&&(this.Y.S=e)}; g.E.Bi=function(e,a){this.uW.nf("requestUtcSeek",{time:e});QZ(this.videoData)&&(this.k$=e);var r;(r=this.loader)==null||r.Bi(e);a&&(this.Eo=a)}; g.E.oy=function(e){QZ(this.videoData)&&(this.k$=void 0);if(this.Eo)this.uW.nf("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Eo}),this.uW.seekTo(this.Eo,{ze:"utcSeekingFallback_streamTime"}),this.Eo=0;else{var a=this.getCurrentTime();isNaN(a)||(e=this.BZ(a)-e,a-=e,this.uW.nf("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.uW.seekTo(a,{ze:"utcSeekingFallback_estimate"}))}}; g.E.z_=function(){this.Eo=0}; g.E.X=function(e){return this.iW&&this.iW.X(e)};g.b(ei,g.N);ei.prototype.start=function(){this.T.start()}; ei.prototype.stop=function(){this.T.stop()}; ei.prototype.clear=function(){for(var e=g.Z(this.S.values()),a=e.next();!a.done;a=e.next())a.value.clear()}; ei.prototype.sample=function(){for(var e=g.Z(this.B),a=e.next();!a.done;a=e.next()){var r=g.Z(a.value);a=r.next().value;r=r.next().value;this.S.has(a)||this.S.set(a,new WGz(rCl.has(a)));this.S.get(a).update(r())}this.T.start()}; var rCl=new Set(["networkactivity"]);WGz.prototype.update=function(e){this.T?(this.buffer.add(e-this.S||0),this.S=e):this.buffer.add(e)}; WGz.prototype.clear=function(){this.buffer.clear();this.S=0};Pv.prototype.kY=function(){return this.started}; Pv.prototype.start=function(){this.started=!0}; Pv.prototype.reset=function(){this.finished=this.started=!1};var ppj=!1;g.b(g.on,g.aK);g.E=g.on.prototype;g.E.RH=function(){this.logger.debug("dispose");g.Al(this.L4);fCO(this.GG);this.visibility.unsubscribe("visibilitystatechange",this.GG);DpJ(this.cA);g.Pe(this.cA);TO(this);g.i9.OQ(this.Pm);this.l$();this.IL=null;g.Pe(this.videoData);g.Pe(this.wb);g.Pe(this.nJ);g.Pe(this.S7);g.Be(this.lQM);this.Of=null;g.aK.prototype.RH.call(this)}; g.E.bk=function(e,a,r,P,B){if(this.iW.X("html5_log_ad_playback_docid")){var h=this.cA;if(h.qoe){h=h.qoe;var c=this.iW.HW||"yt";g.P7(h,g.c7(h.provider),"ad_playback",[e,a,r,B,c])}}else this.cA.bk(e,a,r);this.X("html5_log_media_perf_info")&&this.nf("adloudness",{ld:P.toFixed(3),cpn:e})}; g.E.DU=function(){var e;return(e=this.loader)==null?void 0:e.DU()}; g.E.Us=function(){var e;return(e=this.loader)==null?void 0:e.Us()}; g.E.AL=function(){var e;return(e=this.loader)==null?void 0:e.AL()}; g.E.AJ=function(){var e;return(e=this.loader)==null?void 0:e.AJ()}; g.E.lQ=function(){return this.videoData.lQ()}; g.E.SH=function(){return this.X("html5_not_reset_media_source")&&!this.lQ()&&!this.videoData.isLivePlayback&&g.Bx(this.videoData)&&!this.iW.supportsGaplessShorts()}; g.E.tU=function(){this.videoData.D&&(this.videoData.xE=this.videoData.xE||this.hC.Y$().DU(),this.videoData.A6=this.videoData.A6||this.hC.Y$().Us());if(xkL(this.videoData)||!CV(this.videoData)){var e=this.videoData.errorDetail;this.Ex(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),e,e,this.videoData.Qt||void 0)}this.X("html5_generate_content_po_token")&&this.Z2();this.X("html5_enable_d6de4")&&this.C6()}; g.E.getVideoData=function(){return this.videoData}; g.E.G=function(){return this.iW}; g.E.c9=function(){return this.NA.c9(this.IL)}; g.E.XU=function(){return this.visibility}; g.E.cJ=function(){return this.mediaElement&&this.mediaElement.WB()?this.mediaElement.EM():null}; g.E.rg=function(){return this.mediaElement}; g.E.uL=function(){if(this.videoData.errorCode)return!1;this.G().Z&&this.G().houseBrandUserStatus&&this.nf("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.Fw())return!0;this.Ex("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.E.U3=function(e){(e=e===void 0?!1:e)||OcJ(this.cA);this.qH=e;!this.uL()||this.Hi.kY()?g.Uh(this.iW)&&this.videoData.isLivePlayback&&this.Hi.kY()&&!this.Hi.finished&&!this.qH&&this.Zv():(this.Hi.start(),e=this.cA,g.c7(e.provider),e.qoe&&XxL(e.qoe),this.Zv())}; g.E.Zv=function(){if(this.videoData.isLoaded()){var e=this.wb;g.eS(e.gP.experiments,"html5_player_min_build_cl")>0&&g.eS(e.gP.experiments,"html5_player_min_build_cl")>788692020&&OJN(e,"oldplayer");j73(this)}else this.videoData.mf||this.videoData.by?this.qH&&g.Uh(this.iW)&&this.videoData.isLivePlayback||(this.videoData.mf?krI(this.videoData):(e=this.cA,e.qoe&&(e=e.qoe,nJ(e,"protected"),e.provider.videoData.C?e.YV():e.provider.videoData.subscribe("dataloaded",e.YV,e)),t7j(this.videoData))):!this.videoData.loading&& this.lI&&mGI(this)}; g.E.n1=function(e){this.cO=e;this.loader&&(Baj(this.loader,new g.Au(e)),this.nf("sdai",{sdsstm:1}))}; g.E.ZN=function(e,a,r){var P;(P=this.loader)==null||P.ZN(e,a,r)}; g.E.s8=eL(8);g.E.isFullscreen=function(){return this.visibility.isFullscreen()}; g.E.isBackground=function(){return this.visibility.isBackground()}; g.E.Pw=function(){var e=this;this.logger.debug("Updating for format change");nc(this).then(function(){return cv(e)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.E.P0=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.U3();this.uL()&&!g.S(this.playerState,128)&&(this.o2.kY()||(this.o2.start(),this.videoData.HI?this.S5(LZ(this.playerState,4)):this.S5(LZ(LZ(this.playerState,8),1))),FGq(this))}; g.E.Ni=function(){return this.Hi.finished}; g.E.sendAbandonmentPing=function(){g.S(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.V_(!0),DpJ(this.cA),g.Pe(this.cA),g.i9.OQ(this.Pm))}; g.E.s1=function(e,a,r){e=e===void 0?!0:e;(a===void 0||a)&&this.mediaElement&&this.mediaElement.pause();e&&r&&this.loader&&w3(this.videoData)&&this.loader.zi(r);this.S5(e?new g.Q9(14):new g.Q9)}; g.E.s3=function(){this.cA.B_()}; g.E.Ex=function(e,a,r,P,B,h){this.logger.debug(function(){return"set player error: ec="+e+", detail="+B}); var c,y;g.X7(Caa,r)?c=r:r?y=r:c="GENERIC_WITHOUT_LINK";P=(P||"")+(";a6s."+mc());if(e==="auth"||e==="drm.auth"||e==="heartbeat.stop")r&&(P+=";r."+r.replaceAll(" ","_")),h&&(P+="sr."+h.replaceAll(" ","_"));a={errorCode:e,errorDetail:B,errorMessage:y||g.mG[c]||"",LX:c,Qt:h||"",Q_:P,Xp:a,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=e;yK(this,"dataloaderror");this.S5(lB(this.playerState,128,a));g.i9.OQ(this.Pm);TO(this);this.yY()}; g.E.wy=function(e){this.lK=this.lK.filter(function(a){return e!==a}); this.logger.debug(function(){return"set preroll ready for "+e}); this.o2.kY()&&FGq(this)}; g.E.c8=function(){var e;(e=!!this.lK.length)||(e=this.Ca.S.array[0],e=!!e&&e.start<=-0x8000000000000);return e}; g.E.o5=function(){return this.fb.o5()}; g.E.isPlaying=function(){return this.playerState.isPlaying()}; g.E.y7=function(){return this.playerState.y7()&&this.videoData.HI}; g.E.getPlayerState=function(){return this.playerState}; g.E.mU=function(e){var a;(a=this.loader)==null||a.mU(e)}; g.E.f0=function(e){var a;(a=this.loader)==null||a.f0(e)}; g.E.getPlayerType=function(){return this.playerType}; g.E.getPreferredQuality=function(){if(this.IL){var e=this.IL;e=e.videoData.FO.compose(e.videoData.WQ);e=$$(e)}else e="auto";return e}; g.E.JL=eL(16);g.E.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.E.setMediaElement=function(e){this.logger.debug("set media element");if(this.mediaElement&&e.EM()===this.mediaElement.EM()&&(e.isView()||this.mediaElement.isView())){if(e.isView()||!this.mediaElement.isView())this.IY(),this.mediaElement=e,this.mediaElement.uW=this,AdL(this),this.fb.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.l$();if(!this.playerState.isError()){var a=YF(this.playerState,512);g.S(a,8)&&!g.S(a,2)&&(a=LZ(a,1));e.isView()&&(a=YF(a,64));this.S5(a)}this.mediaElement= e;this.mediaElement.uW=this;!g.Uh(this.iW)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);AdL(this);this.fb.setMediaElement(this.mediaElement);this.X("html5_prewarm_media_source")&&!this.wb.l4()&&qKO(this.mediaElement)}}; g.E.l$=function(e,a,r){e=e===void 0?!1:e;a=a===void 0?!1:a;r=r===void 0?!1:r;this.logger.debug("remove media element");if(this.mediaElement){var P=this.getCurrentTime();P>0&&(this.fb.B=P);this.fb.setMediaElement(null);!e&&this.SH()?nzJ(this):this.CT(r);this.loader&&(un(this.loader),U0(this,a));this.Hm.stop();if(this.mediaElement&&(!this.o2.kY()&&!this.Jb()||this.playerState.isError()||g.S(this.playerState,2)||this.S5(LZ(this.playerState,512)),this.mediaElement)){this.IY();if(e||!this.mediaElement.isView())this.WA.Fh("mesv_s"), this.mediaElement.stopVideo(),Cc(this);this.mediaElement=this.mediaElement.uW=null}}}; g.E.playVideo=function(e,a){e=e===void 0?!1:e;a=a===void 0?!1:a;var r=this,P,B,h,c,y,T;return g.Y(function(X){if(X.T==1){r.logger.debug("start play video");var f=window.google_image_requests;f&&f.length>10&&(window.google_image_requests=f.slice(-10));if(g.S(r.playerState,128))return X.return();if(r.wb.yM())return r.publish("signatureexpired"),X.return();r.mediaElement&&OcJ(r.cA);r.P0();(g.S(r.playerState,64)||e)&&r.S5(LZ(r.playerState,8));return r.o2.finished&&r.mediaElement?r.IL||!r.oM?X.Oo(2):g.l(X, r.oM,3):X.return()}if(X.T!=2&&g.S(r.playerState,128))return X.return();if(!r.videoData.B)return r.videoData.isLivePlayback&&!g.gV(r.iW.C,!0)?(P="html5.unsupportedlive",B=2):(P=r.videoData.lQ()?"fmt.unplayable":"fmt.noneavailable",B=1),g.VJ(Error("selectableFormats")),r.Ex(P,B,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),X.return();if(r.W7()&&r.videoData.B.S)return r.logger.debug("rebuild playbackData for airplay"),X.return(nc(r));if(Mn(r))f=r.fb,Y0(f.videoData)&&!f.isAtLiveHead(f.getCurrentTime())&& f.o5()&&f.uW.seekTo(Infinity,{ze:"seektimeline_peggedToLive",seekSource:34});else if(Y0(r.videoData)&&(h=r.getCurrentTime()c;if(!y||!c){B&&y&&(h=Math.max(h,B));var T;B=$nJ(a,(T=P.S)==null?void 0:T.videoInfos);T=a.uW.getPlaybackRate();T>1&&B&&(T=KYq(a.iW.C,P.S.videoInfos,T),e.S!==0&&T=480;if(a.X("html5_exponential_memory_for_sticky")){X=a.iW.Ky;f=1;var A=A===void 0?!1:A;Loj(X,"sticky-lifetime");X.values["sticky-lifetime"]&&X.CS["sticky-lifetime"]||(X.values["sticky-lifetime"]=0,X.CS["sticky-lifetime"]=0);A&&SD(X,"sticky-lifetime")>.0625&&(f=X.CS["sticky-lifetime"]*2);X.values["sticky-lifetime"]+=1*Math.pow(2, X.S/f);X.CS["sticky-lifetime"]=f;X.L.start()}if(a.X("html5_perf_cap_override_sticky")){A=a.B;a=a.X("html5_perserve_av1_perf_cap");a=a===void 0?!1:a;if(a===void 0?0:a){X=Ct();f=g.Z(Object.keys(X));for(e=f.next();!e.done;e=f.next())e=e.value,e.indexOf("1")!==0&&delete X[e];g.Vy("yt-player-performance-cap",X,2592E3)}else g.Qy("yt-player-performance-cap");ubz(a);if(a){a=g.Z(ul.keys());for(X=a.next();!X.done;X=a.next())X=X.value,X.startsWith("1")||ul.delete(X);a=g.Z(Ju.values());for(X=a.next();!X.done;X= a.next())X=X.value,X.startsWith("1")||Ju.delete(X);a=g.Z(A.keys());for(X=a.next();!X.done;X=a.next())X=X.value,X.startsWith("1")||A.delete(X)}else ul.clear(),Ju.clear(),A.clear()}}}}this.loader&&(a=this.loader,r=r||"",a.policy.S?cu(a.L.S,r):cu(a.S.C,r));this.Yx()}; g.E.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.S?$$(this.videoData.FO):Vz[Ao()]}; g.E.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.E.setUserAudio51Preference=function(e,a){this.getUserAudio51Preference()!==e&&(this.nf("toggle51",{pref:e}),g.Vy("yt-player-audio51",e,a?31536E3:2592E3),this.Pw())}; g.E.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.E.setProximaLatencyPreference=function(e){var a=this.getProximaLatencyPreference();this.nf("proxima",{pref:e});g.Vy("yt-player-proxima-pref",e,31536E3);a!==e&&(e=this.fb,e.rP=!0,e.uW.seekTo(Infinity,{ze:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.E.getProximaLatencyPreference=function(){var e;return(e=U$())!=null?e:0}; g.E.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.E.Z2=function(){this.videoData.videoId?this.hC.Z2(this.videoData):this.nf("povid",{})}; g.E.C6=function(){this.videoData.videoId?this.hC.C6(this.videoData):this.nf("piavid",{})}; g.E.Yx=function(){if(!this.wP()&&!g.S(this.playerState,128)&&this.videoData.B){if(this.videoData.B.S)hm(this);else{var e=Am(this),a=this.videoData;a:{var r=this.videoData.AC;if(e.S){for(var P=g.Z(r),B=P.next();!B.done;B=P.next()){B=B.value;var h=B.getInfo(),c=g.wE[h.video.quality];if((!e.B||h.video.quality!=="auto")&&c<=e.S){r=B;break a}}r=r[r.length-1]}else r=r[0]}a.ym=r;rd4(this,e.reason,Gbz(this,this.videoData.ym))}if(this.X("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.fb.N= !1,this.playVideo()}}; g.E.lr=function(e,a){if(this.wP()||g.S(this.playerState,128))return!1;var r,P=!((r=this.videoData.B)==null||!r.S);r=P&&a?this.getCurrentTime()-this.t9():NaN;if(this.iW.experiments.FM("html5_record_audio_format_intent")){var B=this.cA;if(B.qoe){B=B.qoe;var h=[e.yX.id,isNaN(r)?"m":"t"];g.P7(B,g.c7(B.provider),"afi",h)}}if(P)return a&&(P=Ghj(this.fb),this.nf("aswh",{id:e.id,xtags:e.xtags,bh:P.toFixed(3)})),this.loader.setAudioTrack(e,r,a),!0;if(BXL(this)){a:{a=this.mediaElement.audioTracks();for(P=0;P< a.length;++P)if(r=a[P],r.label===e.yX.getName()){if(r.enabled){a=!1;break a}a=r.enabled=!0;break a}a=void 0}a&&this.nf("hlsaudio",{id:e.id})}else{a:if(a=this.videoData,a.L&&!FQ(a.L)||e===a.w0||!a.AC||a.AC.length<=0)a=!1;else{P=g.Z(a.AC);for(r=P.next();!r.done;r=P.next()){r=r.value;if(!(r instanceof wd)){a=!1;break a}B=e.yX.getId();r.T&&(B7J(r.T,B),r.Kr=null)}a.w0=e;a=!0}a&&cv(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.nf("hlsaudio",{id:e.id}))}return!0}; g.E.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.E.getAudioTrack=function(){if(BXL(this)){var e=cdq(this);if(e)return e}return this.videoData.getAudioTrack()}; g.E.C9=function(){return this.videoData.L}; g.E.g4=function(){if(this.videoData.X("html5_trigger_loader_when_idle_network")&&!this.videoData.QX()&&QZ(this.videoData)){var e;(e=this.loader)!=null&&e.CB()}}; g.E.Qc=function(){if(J3(this.videoData)&&this.videoData.X("html5_gapless_append_early")){var e;(e=this.loader)!=null&&e.CB()}}; g.E.onPlayerRequestSent=function(e){this.hC.onPlayerRequestSent(e)}; g.E.L9=function(e){e=e===void 0?!1:e;if(this.loader){var a=this.loader,r=a.L9;var P=this.videoData;P=P.X("html5_ssdai_use_post_for_media")&&P.enableServerStitchedDai?!1:w3(P)&&P.IU&&!P.isAd();r.call(a,P,e)}}; g.E.CT=function(e){e=e===void 0?!1:e;this.cW&&(this.logger.debug("remove media source"),H$4(this.cW),this.L9(e),this.cW.dispose(),this.cW=null)}; g.E.lx=function(){return this.cW}; g.E.UF=function(e,a,r,P){function B(c){try{fWy(h,c,a,r)}catch(y){g.VJ(y),h.handleError(new g.f_("fmt.unplayable",{msi:"1",ename:y&&typeof y==="object"&&"name"in y?String(y.name):void 0,trg:"setmediasrc"},1))}} var h=this;a=a===void 0?!1:a;r=r===void 0?!1:r;TXy(this,P===void 0?!1:P);this.cW=e;this.SH()&&ZT(this.cW)==="open"?B(this.cW):zaz(this.cW,B)}; g.E.DT=function(e){this.logger.debug("onNeedKeyInfo");this.ud.set(e.initData,e);this.uB&&(this.uB.DT(e),this.X("html5_eme_loader_sync")||this.ud.remove(e.initData))}; g.E.zr=function(e){this.videoData.TF=g.dp("auto",e,!1,"u");hm(this)}; g.E.Qj=function(e){var a=e.reason,r=e.S.info,P=e.token,B=e.videoId,h=this.cA,c=this.videoData;if(r!==c.L){var y=!c.L;c.L=r;a!=="m"&&a!=="t"&&(a=y?"i":"a");var T=a==="m"||a==="t";this.iW.experiments.FM("html5_refactor_sabr_audio_format_selection_logging")?this.cQ=new Juq(c,r,a,"",P,B):(a=new Juq(c,r,a,"",P),h.qoe&&(h=h.qoe,r=g.c7(h.provider),tn4(h,r,a)));this.publish("internalaudioformatchange",c,!y&&T)}this.fb.Qj(e.S.index)}; g.E.JT=function(e){this.publish("localmediachange",e)}; g.E.E9=function(e){e=e===void 0?{}:e;var a;(a=this.loader)==null||a.E9(this.iW,VZ(this.videoData),e)}; g.E.yM=function(){return this.wb.yM()}; g.E.f4=function(e){this.LB(new g.f_("staleconfig",{reason:e}))}; g.E.handleError=function(e){this.wb.handleError(e)}; g.E.l4=function(){return this.wb.l4()}; g.E.oy=function(e){this.fb.oy(e)}; g.E.p5=function(e,a){e=e===void 0?!1:e;a=a===void 0?!1:a;var r=this,P,B,h;return g.Y(function(c){if(c.T==1){r.loader&&r.loader.QM();r.loader&&r.loader.wP()&&TO(r);if(r.X("html5_enable_vp9_fairplay")&&r.lQ()&&(P=r.videoData.S)!=null)for(var y in P.S)P.S.hasOwnProperty(y)&&(P.S[y].S=null,P.S[y].B=!1);r.S5(LZ(r.playerState,2048));r.publish("newelementrequired");return e?g.l(c,nc(r),2):c.Oo(2)}r.videoData.QX()&&((B=r.loader)==null?0:B.Lf)&&!Mn(r)&&((h=r.isAtLiveHead())&&Y0(r.videoData)?r.seekTo(Infinity, {ze:"videoPlayer_getNewElement"}):r.videoData.zX&&r.loader&&(y=r.loader,y.Qm.QX&&(y.Qm.zX||y.Qm.L||y.Qm.isPremiere?(y.seek(0,{ze:"loader_resetSqless"}),y.videoTrack.D=!0,y.audioTrack.D=!0,y.videoTrack.C=!0,y.audioTrack.C=!0):Fe(y.Qm)&&f2(y))));a&&r.seekTo(0,{seekSource:105});g.S(r.playerState,8)&&r.playVideo();g.OO(c)})}; g.E.XO=function(e){this.nf("hgte",{ne:+e});this.videoData.D=!1;e&&this.p5();this.loader&&WuI(this.loader)}; g.E.KF=function(e){this.nf("newelem",{r:e});this.p5()}; g.E.pauseVideo=function(e){e=e===void 0?!1:e;if((g.S(this.playerState,64)||g.S(this.playerState,2))&&!e)if(g.S(this.playerState,8))this.S5(wx(this.playerState,4,8));else if(this.y7())cv(this);else return;g.S(this.playerState,128)||(e?this.S5(LZ(this.playerState,256)):this.S5(wx(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.FL(this.videoData)&&this.loader&&U0(this,!1)}; g.E.stopVideo=function(){this.pauseVideo();this.loader&&(U0(this,!1),this.loader.GA())}; g.E.yY=function(e,a){e=e===void 0?!1:e;a=a===void 0?!1:a;if(this.SH()&&a){var r;(r=this.mediaElement)==null||r.yY()}else{var P;(P=this.mediaElement)==null||P.stopVideo()}Cc(this);TO(this);g.S(this.playerState,128)||(e?this.S5(YF(YF(LZ(this.playerState,4),8),16)):this.S5(lB(this.playerState)));this.videoData.videoId&&this.iW.e1.remove(this.videoData.videoId)}; g.E.seekTo=function(e,a){a=a===void 0?{}:a;this.logger.debug(function(){return"SeekTo "+e+", "+JSON.stringify(a)}); g.S(this.playerState,2)&&cv(this);a.OeF&&this.S5(LZ(this.playerState,2048));a.seekSource!==58&&a.seekSource!==60||!this.X("html5_update_vss_during_gapless_seeking")||dp3(this.cA,a.seekSource);this.fb.seekTo(e,a);this.Ca.sync()}; g.E.Y9=function(e){this.WA.L.T=(0,g.Ov)();g.S(this.playerState,32)||(this.S5(LZ(this.playerState,32,e==null?void 0:e.seekSource)),g.S(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.j5()}; g.E.wj=function(e){e=e==null?void 0:e.seekSource;g.S(this.playerState,32)?(this.S5(wx(this.playerState,16,32,e)),this.publish("endseeking")):g.S(this.playerState,2)||this.S5(LZ(this.playerState,16,e));e=this.WA.L;var a=this.videoData,r=this.playerState.isPaused();if(a.clientPlaybackNonce&&!isNaN(e.S)){if(Math.random()<.01){r=r?"pbp":"pbs";var P={startTime:e.S};a.Z&&(P.cttAuthInfo={token:a.Z,videoId:a.videoId});Dp("seek",P);g.JA({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(e.T)||dL("pl_ss", e.T,"seek");dL(r,(0,g.Ov)(),"seek")}e.reset()}}; g.E.V6=function(e){this.wj(e)}; g.E.QO=function(){this.publish("SEEK_COMPLETE")}; g.E.Uh=function(e){var a=this.hC,r=this.videoData.clientPlaybackNonce,P=this.playerType;if(e.scope===4){var B=e.type;if(B){var h=a.RD(),c=h.getVideoData().clientPlaybackNonce;P===1&&(c=r);if(P=LE4(a,c)){if(r=P.getVideoData())e.writePolicy===2&&r.sabrContextUpdates.has(B)||(e.sendByDefault&&r.k$.add(B),r.sabrContextUpdates.set(B,e)),a.X("html5_enable_t1_enf_on_sabr")&&(e=B===5,B=nll(r.playerResponse),e?(e=B?1:0,BK(e,"m.p_",{}),xm("MBSTAT",e)):e=1,e===0&&a.j1.qF("onAbnormalityDetected"))}else h.nf("scuset", {ncpf:"1",ccpn:c,crcpn:r})}else g.VJ(Error("b/380308491: contextUpdateType is undefined"))}}; g.E.xa=function(){if(this.playerType===2)return this.hC.xa("")}; g.E.getCurrentTime=function(e){return this.fb.getCurrentTime(e===void 0?!1:e)}; g.E.w2=function(){return this.fb.w2()}; g.E.XI=function(){return this.fb.XI()}; g.E.P9=function(){return this.XI()}; g.E.C8=function(){return this.fb.C8()}; g.E.getPlaylistSequenceForTime=function(e){return this.videoData.getPlaylistSequenceForTime(e-this.t9())}; g.E.ZP=function(){var e=NaN;this.mediaElement&&(e=this.mediaElement.ZP());return e>=0?e:this.getCurrentTime()}; g.E.BZ=function(){var e;return((e=this.videoData.S)==null?0:e.BZ)?this.videoData.S.BZ(this.getCurrentTime()-this.t9()):this.mediaElement&&(e=this.mediaElement.oT())&&(e=e.getTime(),!isNaN(e))?e/1E3+this.getCurrentTime():NaN}; g.E.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.t9():this.HZ()?this.HZ():0}; g.E.UN=function(){var e=new lJN;if(this.loader){var a=this.iW.schedule,r=this.iW.UM();r=r===void 0?!1:r;e.mO=a.TQ;e.kI=a.Uo;e.bandwidthEstimate=vM(a);if(r){r=(a.Y.rL()*1E3).toFixed();var P=(a.Lf.rL()*1E3).toFixed(),B=I1(a).toFixed(2),h=((a.D.rL()||0)*1E9).toFixed(2),c=a.B.rL().toFixed(0),y=a.Cf.rL().toFixed(0),T=a.N.percentile(.5).toFixed(2),X=a.N.percentile(.92).toFixed(2),f=a.N.percentile(.96).toFixed(2),A=a.N.percentile(.98).toFixed(2);a.S?a.S.reset():a.S=new lP;a.S.add(a.Eo);a.S.add(a.interruptions.length); for(var U=0,C=a.interruptions.length-1;C>=0;C--){var G=a.interruptions[C];a.S.add(G-U);U=G}U=0;for(C=a.L.length-1;C>=0;C--){G=a.L[C];var O=G.stamp/36E5;a.S.add(O-U);U=O;a.S.add(G.net/1E3);a.S.add(G.max)}a=a.S.n_();e.S={ttr:r,ttm:P,d:B,st:h,bw:c,abw:y,v50:T,v92:X,v96:f,v98:A,"int":a}}PSN(this.loader,e)}else this.mediaElement&&(e.kM=DT(this.mediaElement));e.mO=this.mO;e.kI=this.kI;e.B=this.isAtLiveHead()&&this.isPlaying()?S4T(this):NaN;return e}; g.E.wi=function(e,a){this.kI+=e;this.mO+=a}; g.E.lL=function(){return this.mediaElement?g.FL(this.videoData)?1:M4(this.videoData)?this.isAtLiveHead()||this.o5()?1:this.fb.lL():this.mediaElement.lL():0}; g.E.Jn=function(){var e=this.Bc,a=r2(e,"bandwidth"),r=r2(e,"bufferhealth"),P=r2(e,"livelatency"),B=r2(e,"networkactivity"),h=an(e,"bandwidth"),c=an(e,"bufferhealth"),y=an(e,"livelatency");e=an(e,"networkactivity");var T=this.sN(),X=T.droppedVideoFrames;T=T.totalVideoFrames;var f=this.getCurrentTime();if(this.uB){var A="IT/"+(this.uB.S.getInfo()+"/"+$$(this.eq()));A+="/"+this.uB.getInfo()}else A="";var U=this.isGapless(),C=this.O2(),G=this.lG(),O=g.fc(this),d=this.getPlayerState(),W=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var V=0;var L="";if(this.cO){if(this.cO.Wr){L="D,";break a}V=this.cO.bL;L=this.cO.Mf.substring(0,4)}V>0?(V="AD"+V+", ",L&&(V+=L+", "),L=V):L=""}return{ML:h,N0:c,currentTime:f,kB:A,droppedVideoFrames:X,isGapless:U,O2:C,lV:G,Fm:a,kW:r,Me:P,vR:B,n7:y,sy:e,Pd:O,playerState:d,VG:W,XX:L,totalVideoFrames:T}}; g.E.vA=function(e){var a={};if(e===void 0?0:e){Object.assign(a,this.cA.vA());this.mediaElement&&(Object.assign(a,this.mediaElement.vA()),e=this.sN(),a.dvf=e.droppedVideoFrames,a.tvf=e.totalVideoFrames);this.loader&&Object.assign(a,this.loader.vA());this.uB&&(a.drm=JSON.stringify(this.uB.vA()));a.state=this.playerState.state.toString(16);g.S(this.playerState,128)&&(a.debug_error=JSON.stringify(this.playerState.xu));this.c8()&&(a.prerolls=this.lK.join(","));this.videoData.Te&&(a.ismb=this.videoData.Te); this.videoData.latencyClass!=="UNKNOWN"&&(a.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(a.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)a.is_mosaic=1;this.videoData.cotn&&(a.is_offline=1,a.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(a.playerResponseCpn=this.videoData.playerResponseCpn);this.hC.isOrchestrationLeader()&&(a.leader=1);this.videoData.isLivePlayback&& (this.videoData.S&&Rl(this.videoData.S)&&(a.segduration=Rl(this.videoData.S)),e=this.fb,a.lat=e.Y?Mij(e.Y.L):0,a.liveutcstart=this.videoData.liveUtcStartSeconds);a.relative_loudness=this.videoData.h1.toFixed(3);if(e=g.fc(this))a.optimal_format=e.video.qualityLabel;a.user_qual=Ao();a.release_version=n[34]}a.debug_videoId=this.videoData.videoId;return a}; g.E.addCueRange=function(e){this.VI([e])}; g.E.removeCueRange=function(e){this.Ca.FU([e])}; g.E.tT=function(){var e=this.Ca;if(e.uW.G().X("html5_sort_cueranges_on_update")&&!(e.AR().length<=0||e.wP())){var a=e.S;a.array.sort(a.S)}e.sync()}; g.E.LD=function(e,a){return this.Ca.LD(e,a)}; g.E.VI=function(e,a){this.Ca.Ji(e,a)}; g.E.MI=function(e){this.Ca.FU(e)}; g.E.AR=function(){return this.Ca.AR()||[]}; g.E.y8=function(){return this.fF}; g.E.W7=function(){return this.visibility.W7()}; g.E.bq=function(){this.mediaElement&&this.mediaElement.bq()}; g.E.WAQ=function(){yK(this)}; g.E.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.E.IY=function(){g.du(this.zZ)}; g.E.ZbM=function(){this.j5();this.publish("onLoadProgress",this.lL())}; g.E.fu=function(e){var a=e.target.Rn();if(this.mediaElement&&this.mediaElement.Rn()&&this.mediaElement.Rn()===a){kbL(this,e.type);switch(e.type){case "error":var r=$F(this.mediaElement)||"",P=this.mediaElement.OU();if(r==="capability.changed"){this.X("html5_restart_on_capability_change")?(this.nf("capchg",{msg:P}),this.p5(!0)):nc(this);return}if(this.mediaElement.hasError()&&bJ3(this.wb,r,{msg:P,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.P7()===4){this.yY();XS(this,"unplayable"); return}break;case "durationchange":r=this.mediaElement.getDuration();isFinite(r)&&(!this.cW||r>0)&&r!==1&&this.q2(r);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());xpO(this.Ca);this.cA.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":JdJ(this);this.publish("onLoadedMetadata");CuO(this);r=this.BZ();this.videoData.GF&&(this.videoData.GF=r);break;case "loadstart":CuO(this);break;case "progress":case "suspend":this.Ir.iN(); break;case "playing":this.WA.Fh("plev");this.UY&&!Mn(this)&&(this.UY=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{ze:"videoplayer_onPlaying"})));break;case "timeupdate":r=this.mediaElement&&!this.mediaElement.getCurrentTime();P=this.mediaElement&&this.mediaElement.Lq()===0;if(r&&(!this.Xl||P))return;this.Xl=this.Xl||!!this.mediaElement.getCurrentTime();UwJ(this);this.j5();if(!this.mediaElement||this.mediaElement.Rn()!==a)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.CD().length>0&&this.mediaElement.vV().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.X("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Lq()>2||!this.mediaElement.isSeeking()&&h0(this.mediaElement.vV(),this.mediaElement.getCurrentTime()))&&(r=this.mediaElement.vA(),r.bh=DT(this.mediaElement).toFixed(3),this.nf("uwe",r));break;case "resize":JdJ(this); this.videoData.T&&this.videoData.T.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.y9&&g.S(this.playerState,8)&&!g.S(this.playerState,1024)&&this.getCurrentTime()===0&&g.Uv){XS(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Rn()===a){VK4(this.fb,e);this.publish("videoelementevent",e);a=this.playerState;P=this.CC;var B=this.mediaElement;r=this.videoData.clientPlaybackNonce;if(!g.S(a,128)){var h=a.state; B=B?B:e.target;var c=B.getCurrentTime();if(!g.S(a,64)||e.type!=="ended"&&e.type!=="pause"){var y=B.getDuration();y=B.isEnded()||c>1&&Math.abs(c-y)<1.1;var T=e.type==="pause"&&B.isEnded();c=e.type==="ended"||e.type==="waiting"||e.type==="timeupdate"&&!g.S(a,4)&&!Nn(P,c);if(T||y&&c)B.vY()>0&&B.Rn()&&(h=14);else switch(e.type){case "error":$F(B)&&(h|=128);break;case "pause":g.S(a,256)?(h^=256)||(h=64):g.S(a,32)||g.S(a,2)||g.S(a,4)||(h=4,g.S(a,1)&&g.S(a,8)&&(h|=1));break;case "playing":c=h;h=(h|8)&-1093; c&4?(h|=1,Wi(P,B,!0)):Nn(P,B.getCurrentTime())&&(h&=-2);g.S(a,1)&&Wi(P,B)&&(h|=1);break;case "seeking":h|=16;g.S(a,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;Wi(P,B,!0);break;case "waiting":g.S(a,2)||(h|=1);Wi(P,B);break;case "timeupdate":c=g.S(a,16),y=g.S(a,4),(g.S(a,8)||c)&&!y&&Nn(P,B.getCurrentTime())&&(h=8),Wi(P,B)&&(h|=1)}}P=h;h=null;P&128&&(h=e.target,B=$F(h),c=1,B?(B==="capability.changed"&&(c=2),y="GENERIC_WITHOUT_LINK",T=h.vA(),T.mediaElem="1",T.trg="melem",/AUDIO_RENDERER/.test(h.OU())&& (y="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:B,errorMessage:g.mG[y]||"",LX:y,Q_:XQ(T),Xp:c,cpn:a.xu?a.xu.cpn:""}):h=null,h&&(h.cpn=r));a=lB(a,P,h)}!g.S(this.playerState,1)&&g.S(a,1)&&O1z(this,"evt"+e.type);this.S5(a)}}}; g.E.QHM=function(e){e=e.S.availability==="available";e!==this.fF&&(this.fF=e,this.publish("airplayavailabilitychange"))}; g.E.DFW=function(){var e=(0,g.Ov)(),a=this.mediaElement.W7();this.nf("airplay",{ia:a});!a&&!isNaN(this.GR)&&e-this.GR<2E3||(this.GR=e,a!==this.W7()&&(e=this.visibility,e.S!==a&&(e.S=a,e.GG()),this.nf("airplay",{rbld:a}),this.Pw()),this.publish("airplayactivechange"))}; g.E.mC=function(e){if(this.loader){var a=this.loader,r=a.B,P=a.getCurrentTime(),B=Date.now()-r.N;r.N=NaN;r.nf("sdai",{adfetchdone:e,d:B});e&&!isNaN(r.D)&&r.T!==3&&Ma(r.loader,P,r.D,r.Z);r.policy.T?r.C=NaN:r.L=NaN;Fc(r,4,r.T===3?"adfps":"adf");un(a)}}; g.E.mw=function(){g.Al(this.L4);this.Hm.stop();this.videoData.oH=!0;this.iW.lq=!0;this.iW.T$=0;var e=this.wb;if(e.videoData.T){var a=e.gP.C,r=e.videoData.T.vW;a.L.has(r)&&(a.L.delete(r),a.T=!0)}e.S.stop();this.UB();g.S(this.playerState,8)&&this.S5(YF(this.playerState,65));this.qH=!1;e=this.cA;e.S&&T24(e.S);e.T&&(e=e.T,a=g.c7(e.provider),e.S<0&&(e.S=a,e.delay.start()),e.T=a,e.L=a);g.sC(this.nJ);this.publish("playbackstarted");(e=g.aZ("yt.scheduler.instance.clearPriorityThreshold"))?e():j$(0)}; g.E.UB=function(){var e=this.hC.TX(),a={},r={};!VA("pbs",this.WA.timerName)&&AA.measure&&AA.getEntriesByName&&(AA.getEntriesByName("mark_nr")[0]?P4y("mark_nr"):P4y());e.videoId&&(a.videoId=e.videoId);e.clientPlaybackNonce&&!this.X("web_player_early_cpn")&&(a.clientPlaybackNonce=e.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(r.isPausedOnLoad=!0);r.itag=e.T?Number(e.T.itag):-1;e.gT&&(r.preloadType=String(this.TD?2:1));a.liveStreamMode=q5B[vE(e)];a.playerInfo=r;this.WA.infoGel(a); if(this.loader){e=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(e.B&&(a=window.performance.getEntriesByName(e.B),a.length&&(a=a[0],e.tick("vri",a.fetchStart),e.tick("vdns",a.domainLookupEnd),e.tick("vreq",a.requestStart),e.tick("vrc",a.responseEnd))),e.T&&(a=window.performance.getEntriesByName(e.T),a.length&&(a=a[0],e.tick("ari",a.fetchStart),e.tick("adns",a.domainLookupEnd),e.tick("areq",a.requestStart),e.tick("arc",a.responseEnd))));e=e.ticks;for(var P in e)e.hasOwnProperty(P)&& this.WA.tick(P,e[P])}}; g.E.j5=function(e){var a=this;e=e===void 0?!1:e;if(this.mediaElement&&this.videoData){Epy(this.fb,this.isPlaying());var r=this.getCurrentTime();if(this.loader&&(g.S(this.playerState,4)&&g.FL(this.videoData)||g.S(this.playerState,32)&&QZ(this.videoData)||cQ4(this.loader,r),this.X("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var P;this.nf("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(P=this.loader)==null?void 0:P.currentTime},!0)}r> 5&&(this.fb.B=r);(P=g.Ml())?g.i9.OQ(this.Pm):g.fK(this.Pm);var B=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!B||EL(this.videoData))&&!g.S(this.playerState,128)){var h=function(){if(a.mediaElement&&!g.S(a.playerState,128)){a.iW.UM()&&kbL(a,"pfx");var c=a.getCurrentTime();a.X("html5_buffer_underrun_transition_fix")&&(c-=a.t9());var y=DT(a.mediaElement),T=g.S(a.playerState,8),X=Nn(a.CC,c),f=F9L(a.CC,c,(0,g.Ov)(),y);T&&X?a.S5(YF(a.playerState,1)):T&&f?(T=a.getDuration(),X=Y0(a.videoData), T&&Math.abs(T-c)<1.1?(a.nf("setended",{ct:c,bh:y,dur:T,live:X}),a.mediaElement.tb()?(a.logger.debug("seek to 0 because of looping"),a.seekTo(0,{ze:"videoplayer_loop",seekSource:37})):a.s1()):(a.playerState.isBuffering()||O1z(a,"progress_fix"),a.S5(LZ(a.playerState,1)))):(T&&!X&&!f&&c>0&&(T=(Date.now()-a.BE)/1E3,X=a.getDuration(),c>X-1&&a.nf("misspg",{t:c.toFixed(2),d:X.toFixed(2),r:T.toFixed(2),bh:y.toFixed(2)})),a.playerState.isPaused()&&a.playerState.isBuffering()&&DT(a.mediaElement)>5&&a.S5(YF(a.playerState, 1)));a.j5()}}; this.mediaElement.CD().length===0?this.Pm=P?g.i9.xL(h,100):g.Tu(h,100):this.Pm=P?g.i9.xL(h,500):g.Tu(h,500)}this.videoData.QH=r;!e&&this.isPlaying()&&Ezz(this);NYN(this.NA,this.IL,this.rg(),this.isBackground())&&hm(this);this.publish("progresssync",e);B&&EL(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.E.zP=function(){this.Ex("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.E.lG=function(){return this.cA.lG()}; g.E.hJ=function(){return this.loader?this.loader.hJ():vM(this.iW.schedule,!0)}; g.E.S5=function(e){if(!g.pZ(this.playerState,e)){this.logger.debug(function(){return"Setting state "+e.toString()}); var a=new g.n$(e,this.playerState);this.playerState=e;dwL(this);var r=!this.EC.length;this.EC.push(a);var P=this.mediaElement&&this.mediaElement.isSeeking();g.TH(a,1)&&this.loader&&$Y3(this.loader);P=a.oldState.state===8&&!P;g.TH(a,1)&&P&&g.S(this.playerState,8)&&!g.S(this.playerState,64)&&this.loader&&(QkJ(this.loader),this.mediaElement&&DT(this.mediaElement)>=5&&iJT(this.NA,this.IL)&&hm(this));(P=g.eS(this.iW.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.S(e,1)&&(g.S(e,8)||g.S(e, 16))?this.Yk.start(P):this.Yk.stop();(yW(a,8)<0||g.TH(a,1024))&&this.Hm.stop();!g.TH(a,8)||this.videoData.oH||g.S(a.state,1024)||this.Hm.start();g.S(a.state,8)&&yW(a,16)<0&&!g.S(a.state,32)&&!g.S(a.state,2)&&this.playVideo();g.S(a.state,2)&&M4(this.videoData)&&(this.q2(this.getCurrentTime()),this.j5(!0));g.TH(a,2)&&(this.V_(!0),this.iW.UM()&&this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&QZ(this.videoData)&&this.videoData.S&&(P={minst:""+this.videoData.S.ZI,cminst:""+(this.videoData.S.N5()+ this.t9()),maxst:""+this.videoData.S.H8,hts:""+this.videoData.S.oH,cmaxst:""+(this.videoData.S.HZ()+this.t9())},this.nf("sabrSeekableBoundaries",P)));g.TH(a,128)&&this.yY();this.videoData.S&&this.videoData.isLivePlayback&&!this.nV&&(yW(a,8)<0?lT3(this.videoData.S):g.TH(a,8)&&this.videoData.S.resume());C6L(this.fb,a);Jmq(this.cA,a);if(r&&!this.wP())try{for(var B=g.Z(this.EC),h=B.next();!h.done;h=B.next()){var c=h.value;IJL(this.Ca,c);this.publish("statechange",c)}}finally{this.EC.length=0}}}; g.E.Cm=function(){this.WA.tick("qoes")}; g.E.X3=function(){this.fb.X3()}; g.E.Yr=function(e,a,r,P){a:{var B=this.wb;P=P===void 0?"LICENSE":P;r=r.substring(0,256);var h=AX(a);e==="drm.keyerror"&&this.uB&&this.uB.T.keys.length>1&&B.L<96&&(e="drm.sessionlimitexhausted",h=!1);var c=B.gP.experiments.FM("html5_retry_on_drm_unavailable"),y=B.gP.experiments.FM("html5_retry_on_drm_key_error"),T=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(c&&e==="drm.unavailable"||y&&e==="drm.keyerror"&&!r.match(T))B.LB("qoe.restart",{retryOnDrmError:1,e:e,detail:r}),B.uW.p5(!0);else{if(h)if(B.videoData.T&& B.videoData.T.video.isHdr())dnj(B,e);else{if(B.uW.Ex(e,a,P,r),CH4(B,{detail:r}))break a}else B.LB(e,{detail:r});e==="drm.sessionlimitexhausted"&&(B.nf("retrydrm",{sessionLimitExhausted:1}),B.L++,Z13(B.uW))}}}; g.E.KLW=function(){var e=this,a=g.eS(this.iW.experiments,"html5_license_constraint_delay"),r=Mr();a&&r?(a=new g.vP(function(){e.Yx();yK(e)},a),g.x(this,a),a.start()):(this.Yx(),yK(this))}; g.E.RN=function(e){this.publish("heartbeatparams",e)}; g.E.LT=function(e){this.nf("keystatuses",H24(e));var a="auto",r=!1;this.videoData.T&&(a=this.videoData.T.video.quality,r=this.videoData.T.video.isHdr());a:{switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:a="";break a}r&&(a+="HDR")}a=bH(e)?tu(e,a):e.L.includes(a);if(this.X("html5_enable_vp9_fairplay")){if(r)if(e.D){var P;if((P= this.uB)==null?0:o1(P.S))if((r=this.uB)==null)r=0;else{for(var B=P=void 0,h=g.Z(r.T.values()),c=h.next();!c.done;c=h.next())c=c.value,P||(P=vUl(c,"SD")),B||(B=vUl(c,"AUDIO"));r.Em({sd:P,audio:B});r=P==="output-restricted"||B==="output-restricted"}else r=!a;if(r){this.nf("drm",{dshdr:1});dnj(this.wb);return}}else{this.videoData.Mu||(this.videoData.Mu=!0,this.nf("drm",{dphdr:1}),this.p5(!0));return}var y;if((y=this.uB)==null?0:o1(y.S))return}else if(y=e.D&&a,r&&!y){dnj(this.wb);return}a||tu(e,"AUDIO")&& tu(e,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),e=H24(e),this.lT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.X("html5_report_fatal_drm_restricted_error_killswitch")||this.Ex("drm.keyerror",2,void 0,"info."+e)):(this.lT=!0,this.LB(new g.f_("qoe.restart",Object.assign({},{retrydrm:1},e))),hm(this),Z13(this)))}; g.E.aD1=function(){if(!this.videoData.oH&&this.mediaElement&&!this.isBackground()){var e="0";this.mediaElement.Lq()>0&&DT(this.mediaElement)>=5&&this.videoData.B&&this.videoData.B.S&&(this.S5(LZ(this.playerState,1)),O1z(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),e="1");dwL(this);var a=this.videoData.B;e={restartmsg:e,mfmt:!d3(this.videoData),mdrm:!(!(a&&a.videoInfos&&a.videoInfos.length&&a.videoInfos[0].DX)||this.uB),mfmtinfo:!this.videoData.T,prerolls:this.c8()?this.lK.join(","): "0"};if(this.uB){a=this.uB;if(a.T.size<=0){var r="ns;";a.N||(r+="nr;");a=r+="ql."+a.B.length}else a=H24(a.T.values().next().value),a=XQ(a);e.drmp=a}var P;Object.assign(e,((P=this.loader)==null?void 0:P.vA())||{});var B;Object.assign(e,((B=this.mediaElement)==null?void 0:B.vA())||{});this.cA.LB("qoe.start15s",XQ(e));this.publish("loadsofttimeout")}}; g.E.q2=function(e){this.videoData.lengthSeconds!==e&&(this.videoData.lengthSeconds=e,yK(this))}; g.E.V_=function(e,a){var r=this;e=e===void 0?!1:e;if(!this.fH)if(VA("att_s","player_att")||QA("att_s",void 0,"player_att"),this.X("use_rta_for_player"))(function(){var B,h,c,y;return g.Y(function(T){switch(T.T){case 1:if(!(B=e)){T.Oo(2);break}return g.l(T,g.L5j(),3);case 3:B=!T.S;case 2:if(B)return T.return();g.kN(T,4);h=Qn4(r.cA);if(!h)throw Error();c={};return g.l(T,g.lH4((c.cpn=r.videoData.clientPlaybackNonce,c.encryptedVideoId=r.videoData.videoId||"",c),3E4),6);case 6:y=T.S;if(r.fH)throw Error(); if(!y.challenge)throw g.VJ(Error("Not sending attestation ping; no attestation challenge string")),Error();r.fH=!0;var X=[y.challenge];y.error?X.push("r1c="+y.error):y.webResponse&&X.push("r1a="+y.webResponse);var f;((f=y.adblockReporting)==null?void 0:f.reportingStatus)!==void 0&&X.push("r6a="+y.adblockReporting.reportingStatus);var A;((A=y.adblockReporting)==null?void 0:A.broadSpectrumDetectionResult)!==void 0&&X.push("r6b="+y.adblockReporting.broadSpectrumDetectionResult);h(X.join("&"));QA("att_f", void 0,"player_att");g.Dl(T,0);break;case 4:g.Q3(T),QA("att_e",void 0,"player_att"),g.OO(T)}})})().then(function(){a==null||a()}); else{var P=new g.vl4(this.videoData);if("c1a"in P.Ej&&!g.nt.isInitialized()){QA("att_wb",void 0,"player_att");this.oe===2&&Math.random()<.01&&g.VJ(Error("Botguard not available after 2 attempts"));if(e)return;if(this.oe<5){g.sC(this.S7);this.oe++;return}}(P=g.ROl(P))?(QA("att_f",void 0,"player_att"),$pq(this.cA,P),this.fH=!0):QA("att_e",void 0,"player_att")}}; g.E.XJ=function(e){e=e===void 0?!1:e;return Y0(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.o5()||g.FL(this.videoData))?this.getCurrentTime():this.HZ(e)}; g.E.er=function(){return this.N5()}; g.E.HZ=function(e){return this.fb.HZ(e===void 0?!1:e)}; g.E.N5=function(){return this.fb.N5()}; g.E.t9=function(){return this.fb?this.fb.t9():0}; g.E.getStreamTimeOffset=function(){return this.fb?this.fb.getStreamTimeOffset():0}; g.E.yn=function(){var e=0;this.iW.X("web_player_ss_media_time_offset")&&(e=this.getStreamTimeOffset()===0?this.t9():this.getStreamTimeOffset());return e}; g.E.setPlaybackRate=function(e){var a;this.playbackRate!==e&&$nJ(this.NA,(a=this.videoData.B)==null?void 0:a.videoInfos)&&(this.playbackRate=e,hm(this));this.playbackRate=e;this.mediaElement&&this.mediaElement.setPlaybackRate(e)}; g.E.getPlaybackRate=function(){return this.playbackRate}; g.E.getPlaybackQuality=function(){var e="unknown";if(this.videoData.T&&(e=this.videoData.T.video.quality,e==="auto"&&this.mediaElement)){var a=this.cJ();a&&a.videoHeight>0&&(e=YK(a.videoWidth,a.videoHeight))}return e}; g.E.isHdr=function(){return!!(this.videoData.T&&this.videoData.T.video&&this.videoData.T.video.isHdr())}; g.E.sendVideoStatsEngageEvent=function(e,a){var r=this.cA;r.S?(r=lH(r.S,"engage"),r.TQ=e,r.send(a)):a&&a()}; g.E.L_=function(e){return this.cA.L_(e)}; g.E.isAtLiveHead=function(e,a){a=a===void 0?!1:a;return Y0(this.videoData)&&(this.rq||a)?this.fb.isAtLiveHead(e):!1}; g.E.Qa=function(){var e=this.HZ(),a=this.getCurrentTime(),r;(r=!Y0(this.videoData))||(r=this.fb,r=!(r.S&&r.S.B));return r||this.o5()||isNaN(e)||isNaN(a)?0:Math.max(0,e-a)}; g.E.Aw=function(e){(this.rq=e)||this.Hm.stop();this.videoData.S&&(e?this.videoData.S.resume():lT3(this.videoData.S));if(this.loader){var a=this.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&this.Jb()&&this.videoData.isLivePlayback;e&&!a?this.loader.resume():U0(this,!0)}g.S(this.playerState,2)||e?g.S(this.playerState,512)&&e&&this.S5(YF(this.playerState,512)):this.S5(LZ(this.playerState,512));a=this.cA;a.qoe&&(a=a.qoe,g.P7(a,g.c7(a.provider),"stream",[e?"A":"I"]))}; g.E.xr=function(e){this.cA.LB("player.exception",XQ({n:e.name,m:e.message}))}; g.E.rT=eL(22);g.E.Yp=eL(51);g.E.J4=function(e){this.cA.J4(e)}; g.E.FT=function(e){this.cA.FT(e)}; g.E.rp=function(e){this.cA.rp(e)}; g.E.Gu=eL(28);g.E.yJ=eL(34);g.E.Z0=function(e){this.cA.Z0(e)}; g.E.zi=function(e,a,r,P){this.cA.zi(e,a,r,P)}; g.E.HU=function(){this.nf("hidden",{},!0)}; g.E.sN=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.E.t2=function(){return this.loader?this.loader.t2():!0}; g.E.setLoop=function(e){this.loop=e;this.mediaElement&&!g.Uh(this.iW)&&this.mediaElement.setLoop(e)}; g.E.tb=function(){return this.mediaElement&&!g.Uh(this.iW)?this.mediaElement.tb():this.loop}; g.E.jC=function(e){this.nf("timestamp",{o:e.toString()});this.fb.jC(e)}; g.E.M5=function(e){this.WA.tick(e)}; g.E.p_=function(e){return this.WA.p_(e)}; g.E.Fh=function(e){this.WA.Fh(e)}; g.E.nf=function(e,a,r){this.cA.nf(e,a,r===void 0?!1:r)}; g.E.oI=function(e,a,r){this.cA.nf(e,a,r===void 0?!1:r)}; g.E.LB=function(e){this.cA.LB(e.errorCode,XQ(e.details));e=e.errorCode;if(this.videoData.isLivePlayback&&(e==="qoe.longrebuffer"||e==="qoe.slowseek")||e==="qoe.restart"){e=this.loader?URI(this.loader.videoTrack):{};var a,r;this.nf("lasoe",Object.assign(this.loader?URI(this.loader.audioTrack):{},(a=this.cW)==null?void 0:(r=a.S)==null?void 0:r.Fp()));var P,B;this.nf("lvsoe",Object.assign(e,(P=this.cW)==null?void 0:(B=P.T)==null?void 0:B.Fp()))}if(this.X("html5_log_centralized_player_time")){var h;this.nf("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(h=this.loader)==null?void 0:h.currentTime})}}; g.E.j0=function(e,a,r){this.cA.j0(e,a,r)}; g.E.CL=function(e,a,r,P,B,h,c,y){var T;if((T=this.videoData.S)!=null&&T.isLive){var X=a.playerType===2?a:e,f=e.videoData.videoId,A=a.videoData.videoId;if(f&&A){T=this.cA;if(T.qoe){var U=T.qoe,C=e.cpn,G=a.cpn,O=X.videoData.mJ,d=U.provider.videoData.clientPlaybackNonce,W=U.provider.videoData.videoId,V=G!==d&&A!==W;d=C!==d&&f!==W;U.reportStats();U.adCpn&&U.adCpn!==C||(U.adCpn=d?C:"",U.kq=d?f:"",U.adFormat=d?O:void 0,gdL(U,h?4:B?2:0,G,A,P),U.reportStats(),U.adCpn=V?G:"",U.kq=V?A:"",U.adFormat=V?O:void 0, gdL(U,h?5:B?3:1,C,f,r),U.reportStats())}r=e.cpn;if(T.B.has(r)){if(B=T.B.get(r),wY(B,!0).send(),YV(B),r!==T.provider.videoData.clientPlaybackNonce){GOJ(B);var L;(L=T.S)==null||Xvy(L);T.B.delete(r)}}else T.u$=T.provider.videoData.clientPlaybackNonce,T.u$&&T.S&&(T.B.set(T.u$,T.S),wY(T.S).send(),YV(T.S));L=a.cpn;X=X.videoData;P-=this.yn();if(T.B.has(L)){P=T.B.get(L);var z=P.B&&isNaN(P.C)?LJ(P):NaN;P=CZ4(P,!1);isNaN(z)||(P.D=z);P.send()}else P=WX4(T,T.provider,X,P),T.B.set(L,P),E7T(P,new g.n$(LZ(new g.Q9, 8),new g.Q9)),T24(P),(z=T.S)==null||YV(z);T.u$=L;if(this.X("html5_unify_csi_server_stitched_transition_logging")){if(T=this.WA,z=a.cpn,P=this.videoData.clientPlaybackNonce,a=a.videoData,e=(e.cpn===P?"video":"ad")+"_to_"+(z===P?"video":"ad"),e!=="video_to_ad"){P=e==="ad_to_video"?void 0:a;X=P==null?void 0:P.z1;L={};if(a==null?0:a.Z)L.cttAuthInfo={token:a.Z,videoId:a.videoId};c&&(L.startTime=c);Dp(e,L);var q,M,m;c={targetVideoId:(q=a==null?void 0:a.videoId)!=null?q:"empty_video",targetCpn:z,adVideoId:(M= P==null?void 0:P.videoId)!=null?M:"empty_video",adClientPlaybackNonce:(m=X==null?void 0:X.cpn)!=null?m:P==null?void 0:P.clientPlaybackNonce};X&&(c.adBreakType=X.adBreakType,c.adType=X.adType);g.JA(c,e);O4(T,y,e)}}else q=this.WA,m=this.videoData.clientPlaybackNonce,M=a.videoData,m=(e.cpn===m?"video":"ad")+"_to_"+(a.cpn===m?"video":"ad"),e={},M.Z&&(e.cttAuthInfo={token:M.Z,videoId:M.videoId}),c&&(e.startTime=c),Dp(m,e),g.JA({targetVideoId:M.videoId,targetCpn:a.cpn,isSsdai:!0},m),c||O4(q,y,m)}}else this.logger.S(360717806, "SSTEvent for nonSS")}; g.E.m3=function(){var e=this.hC,a=e.cH;e.cH=[];return a}; g.E.uJ=function(e){this.videoData.Y5=!0;this.LB(new g.f_("sabr.fallback",e));this.p5(!0)}; g.E.Ks=function(e,a){this.videoData.yk=!0;if(a===void 0||a)this.LB(new g.f_("qoe.restart",e)),this.p5(!0)}; g.E.jy=function(e){this.nf("sdai",{aftimeout:e});this.LB(new g.f_("ad.fetchtimeout",{timeout:e}))}; g.E.zo=function(e,a){this.nf("timelineerror",e);e=new g.f_("dai.timelineerror",e);a?this.Ex("dai.timelineerror",1,"RETRYABLE_ERROR",XQ(e.details)):this.LB(e)}; g.E.Dm=function(){return g.c7(this.cA.provider)}; g.E.getPlayerSize=function(){return this.AU.getPlayerSize()}; g.E.TA=function(){return this.AU.TA()}; g.E.SM=function(){return this.WA}; g.E.Zh=function(){return this.hC.Zh()}; g.E.getVolume=function(){return this.hC.getVolume()}; g.E.Hw=function(){return this.hC.Hw()}; g.E.isMuted=function(){return this.hC.isMuted()}; g.E.Qf=function(){return this.hC.Qf()}; g.E.iD=function(){this.nV=!0}; g.E.X=function(e){return this.iW.X(e)}; g.E.Wg=function(e,a,r,P,B){this.nf("xvt",{m:e,g:a?1:0,tt:r?1:0,np:P?1:0,c:B})}; g.E.JM=function(){var e;(e=this.loader)==null||e.resume()}; g.E.Jb=function(){return g.ZB(this.lK,"ad")}; g.E.M2=function(){var e=this.getCurrentTime(),a=e-this.t9();var r=this.mediaElement?oV(this.mediaElement.vV()):0;r=Math.floor(Math.max(r-a,0))+100;var P;return((P=this.loader)==null?0:P.M2(a,r))?(this.nf("sdai",{skipad:1,ct:a.toFixed(3),adj:r.toFixed(3)}),QZ(this.videoData)&&this.loader.seek(a+r,{seekSource:89,ze:"videoplayer_skipServerStitchedAd"}),Q7N(this.fb,e),!0):!1}; g.E.UM=function(){return this.iW.UM()}; g.E.xZ=function(){if(this.X("html5_generate_content_po_token"))return this.videoData.hY||"";this.hC.Pc();return this.iW.A1||""}; g.E.ut=function(){if(this.videoData.videoId)return this.videoData.Yb}; g.E.Y2=function(){return this.videoData.videoId}; g.E.Pf=function(){return this.hC.fU}; g.E.Ip=function(){return this.qH}; g.E.fS=function(){return this.hC.fS()}; g.E.Bi=function(e,a,r){this.S5(LZ(this.playerState,16,r));this.fb.Bi(e,a)}; g.E.prefetchKeyPlay=function(){}; g.E.z_=function(){this.fb.z_()}; g.E.Dk=function(e,a){var r=this.X("html5_generate_content_po_token")?this.videoData:void 0;this.hC.Dk(e,a,r)}; g.E.Ac=function(e,a){this.cA.Ac(e,a)}; g.E.Q7=function(){return this.cA.Q7()}; g.E.jk=function(){return this.videoData.R9}; g.E.O2=function(){return this.hC.O2()}; g.E.Ny=function(){return this.hC.Ny(this)}; g.E.MZ=function(){this.p$=!0}; g.E.pU=function(e){var a;(a=this.loader)==null||a.pU(e)};g.b(DwL,fw);g.b(GO,Zk);GO.prototype.S=function(e){e&&ON(this,this.W.getLoopVideo());this.W.logVisibility(this.element,e)}; GO.prototype.logClick=function(){this.W.logClick(this.element)}; GO.prototype.onLoopChange=function(e){ON(this,e)}; GO.prototype.T=function(e){this.W.setLoopVideo(e)};g.b(Voj,fw);g.b($w3,fw);g.E=$w3.prototype;g.E.seekToChapterWithAnimation=function(e){var a=this;if(g.lL(this.api)&&!(e<0)){var r=this.api.getVideoData(),P=r.Tu;if(P&&e=0)return;a=~a;g.NM(this.items,a,0,e);bd(this.menuItems.element,e.element,a)}e.subscribe("size-change",this.Km,this);this.menuItems.publish("size-change")}; g.E.JA=function(e){e.unsubscribe("size-change",this.Km,this);this.wP()||(g.k9(this.items,e),this.menuItems.element.removeChild(e.element),this.menuItems.publish("size-change"))}; g.E.Km=function(){this.menuItems.publish("size-change")}; g.E.focus=function(){for(var e=0,a=0;a1&&g.Y7(this)}; g.E.v0=function(){Tz4(this);this.oD&&(nw4(this),g.ab(this.element,this.size))}; g.E.Ho=function(){var e=this.S.pop();ybO(this,e,this.S[this.S.length-1],!0)}; g.E.fM=function(e){if(!e.defaultPrevented)switch(e.keyCode){case 27:this.XN();e.preventDefault();break;case 37:this.S.length>1&&this.Ho();e.preventDefault();break;case 39:e.preventDefault()}}; g.E.focus=function(){this.S.length&&this.S[this.S.length-1].focus()}; g.E.RH=function(){g.P8.prototype.RH.call(this);this.Z&&this.Z.dispose();this.D&&this.D.dispose()};g.b(w2,g.lZ);w2.prototype.open=function(e,a){this.initialize(e.items)&&this.Yh(a,!!a)}; w2.prototype.initialize=function(e){g.Wv(this.TG);if(e===void 0||e.length===0)return!1;var a=e.length;e=g.Z(e);for(var r=e.next();!r.done;r=e.next())this.D5(r.value,a--);return!0}; w2.prototype.D5=function(e,a){e.menuNavigationItemRenderer?Abj(this,e.menuNavigationItemRenderer,a):e.menuServiceItemRenderer&&U3L(this,e.menuServiceItemRenderer,a)};g.b(pc,VK);g.E=pc.prototype;g.E.td=function(e){e.target!==this.dismissButton.element&&e.target!==this.overflowButton.element&&(this.bU(),this.onClickCommand&&this.W.qF("innertubeCommand",this.onClickCommand))}; g.E.LQ=function(){this.enabled=!1;this.N.hide()}; g.E.d4=function(){return!!this.S&&this.enabled}; g.E.onVideoDataChange=function(e,a){this.Aa(a);if(this.S){this.dk();a:if(!this.isCounterfactual){var r,P,B;this.banner.update({title:(r=this.S)==null?void 0:r.title,subtitle:(P=this.S)==null?void 0:P.subtitle,metadata:(B=this.S)==null?void 0:B.metadataText});var h;this.onClickCommand=g.H((h=this.S)==null?void 0:h.onTap,QJ);var c;if(e=g.H((c=this.S)==null?void 0:c.onOverflow,QJ))this.D=g.H(e,aFV);var y;if((y=this.S)==null?0:y.thumbnailImage){var T,X;c=((T=this.S)==null?void 0:(X=T.thumbnailImage)== null?void 0:X.sources)||[];if(c.length===0)break a;this.thumbnailImage.update({url:c[0].url})}else{var f;if((f=this.S)==null?0:f.thumbnailIconName){var A;this.thumbnailIcon.update({icon:(A=this.S)==null?void 0:A.thumbnailIconName})}}var U;this.shouldShowOverflowButton=!((U=this.S)==null||!U.shouldShowOverflowButton);var C;this.shouldHideDismissButton=!((C=this.S)==null||!C.shouldHideDismissButton)}var G;this.banner.element.setAttribute("aria-label",((G=this.S)==null?void 0:G.a11yLabel)||"");var O; this.GQ=(O=this.S)==null?void 0:O.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;G9O(this)}}; g.E.pAf=function(){this.isVisible=!0;G9O(this)}; g.E.brd=function(){this.isVisible=!1;G9O(this)}; g.E.Ru=function(){VK.prototype.Ru.call(this);this.T&&this.W.logVisibility(this.banner.element,this.isVisible)}; g.E.bU=function(){VK.prototype.bU.call(this,!1);this.T&&this.W.logClick(this.banner.element)}; g.E.cq=function(e){this.Z||(this.Z=new w2(this.W),g.x(this,this.Z));var a,r;if((a=this.D)==null?0:(r=a.menu)==null?0:r.menuRenderer)this.Z.open(this.D.menu.menuRenderer,e.target),e.preventDefault()}; g.E.Aa=function(){}; g.E.dk=function(){}; g.E.RH=function(){this.W.Ai("suggested_action_view_model");VK.prototype.RH.call(this)};g.b(iZ,pc); iZ.prototype.Aa=function(e){var a,r,P;this.productUpsellSuggestedActionViewModel=g.H((a=e.getWatchNextResponse())==null?void 0:(r=a.playerOverlays)==null?void 0:(P=r.playerOverlayRenderer)==null?void 0:P.suggestedActionViewModel,EHN);var B;if((B=this.productUpsellSuggestedActionViewModel)==null?0:B.content){var h;this.S=g.H((h=this.productUpsellSuggestedActionViewModel)==null?void 0:h.content,u8V)}var c,y;if(this.T=!!((c=this.productUpsellSuggestedActionViewModel)==null?0:(y=c.loggingDirectives)==null? 0:y.trackingParams)){var T,X;this.W.setTrackingParams(this.banner.element,((T=this.productUpsellSuggestedActionViewModel)==null?void 0:(X=T.loggingDirectives)==null?void 0:X.trackingParams)||null)}var f;this.isCounterfactual=!((f=this.productUpsellSuggestedActionViewModel)==null||!f.isCounterfactualServing)}; iZ.prototype.dk=function(){var e=[],a,r=g.Z(((a=this.productUpsellSuggestedActionViewModel)==null?void 0:a.ranges)||[]);for(a=r.next();!a.done;a=r.next()){var P=a.value;P&&(a=Number(P.startTimeMilliseconds),P=Number(P.endTimeMilliseconds),isNaN(a)||isNaN(P)||e.push(new g.v_(a,P,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.W.Ji(e)};g.b(EwJ,fw);g.b(zO,fw);zO.prototype.onVideoDataChange=function(e,a){var r=this;if(!yT(a)&&(e==="newdata"&&tZy(this),this.S&&e==="dataloaded")){this.S=!1;var P;Ij(x_(Qg(this.api.G(),(P=this.api.getVideoData())==null?void 0:g.ok(P)),function(B){Jbq(r,B)}),function(){r.S=!0})}}; zO.prototype.jM=function(){var e=this;if(g.Uh(this.api.G())){var a,r=g.$G(this.api.G(),(a=this.api.getVideoData())==null?void 0:g.ok(a));return x_(pA(r),function(P){var B=ez();aS(B,P);return e.api.jM(B)})}return pA(this.api.jM())};g.b(g.x7,g.nw);g.E=g.x7.prototype;g.E.open=function(){g.Lc(this.OM,this.T)}; g.E.Nq=function(e){D3l(this);var a=this.options[e];a&&(a.element.setAttribute("aria-checked","true"),this.vO(this.Sv(e)),this.B=e)}; g.E.Is=function(e){g.Wv(this.T);for(var a={},r=!1,P=0;P=0?this.S.playbackRate:1}catch(e){return 1}}; g.E.setPlaybackRate=function(e){this.getPlaybackRate()!==e&&(this.S.playbackRate=e);return e}; g.E.tb=function(){return this.S.loop}; g.E.setLoop=function(e){this.S.loop=e}; g.E.canPlayType=function(e,a){return this.S.canPlayType(e,a)}; g.E.isPaused=function(){return this.S.paused}; g.E.isSeeking=function(){return this.S.seeking}; g.E.isEnded=function(){return this.S.ended}; g.E.Mb=function(){return this.S.muted}; g.E.ji=function(e){gE();this.S.muted=e}; g.E.CD=function(){return this.S.played||rx([],[])}; g.E.vV=function(){try{var e=this.S.buffered}catch(a){}return e||rx([],[])}; g.E.dj=function(){return this.S.seekable||rx([],[])}; g.E.oT=function(){var e=this.S;return e.getStartDate?e.getStartDate():null}; g.E.getCurrentTime=function(){return this.S.currentTime}; g.E.setCurrentTime=function(e){this.S.currentTime=e}; g.E.getDuration=function(){return this.S.duration}; g.E.load=function(){var e=this.S.playbackRate;try{this.S.load()}catch(a){}this.S.playbackRate=e}; g.E.pause=function(){this.S.pause()}; g.E.play=function(){var e=this.S.play();if(!e||!e.then)return null;e.then(void 0,function(){}); return e}; g.E.Lq=function(){return this.S.readyState}; g.E.vY=function(){return this.S.networkState}; g.E.P7=function(){return this.S.error?this.S.error.code:null}; g.E.OU=function(){return this.S.error?this.S.error.message:""}; g.E.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.S instanceof window.HTMLVideoElement&&this.S.getVideoPlaybackQuality)return this.S.getVideoPlaybackQuality();if(this.S){var e=this.S,a=e.webkitDroppedFrameCount;if(e=e.webkitDecodedFrameCount)return{droppedVideoFrames:a||0,totalVideoFrames:e}}return{}}; g.E.W7=function(){return!!this.S.webkitCurrentPlaybackTargetIsWireless}; g.E.bq=function(){return!!this.S.webkitShowPlaybackTargetPicker()}; g.E.togglePictureInPicture=function(){var e=this.S,a=window.document;window.document.pictureInPictureEnabled?this.S!==a.pictureInPictureElement?e.requestPictureInPicture():a.exitPictureInPicture():tX()&&e.webkitSetPresentationMode(e.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.E.X$=function(){var e=this.S;return new g.vR(e.offsetLeft,e.offsetTop)}; g.E.getSize=function(){return g.rF(this.S)}; g.E.setSize=function(e){g.ab(this.S,e)}; g.E.getVolume=function(){return this.S.volume}; g.E.setVolume=function(e){gE();this.S.volume=e}; g.E.B9=function(e){this.C[e]||(this.S.addEventListener(e,this.listener),this.C[e]=this.listener)}; g.E.setAttribute=function(e,a){this.S.setAttribute(e,a)}; g.E.removeAttribute=function(e){this.S.removeAttribute(e)}; g.E.hasAttribute=function(e){return this.S.hasAttribute(e)}; g.E.WC=eL(61);g.E.O6=eL(63);g.E.L6=eL(65);g.E.n9=eL(67);g.E.HM=function(){return Uu(this.S)}; g.E.kE=function(e){g.rr(this.S,e)}; g.E.jl=function(e){return g.S2(this.S,e)}; g.E.Vq=function(){return g.gy(document.body,this.S)}; g.E.audioTracks=function(){var e=this.S;if("audioTracks"in e)return e.audioTracks}; g.E.RH=function(){for(var e=g.Z(Object.keys(this.C)),a=e.next();!a.done;a=e.next())a=a.value,this.S.removeEventListener(a,this.C[a]);dx.prototype.RH.call(this)}; g.E.tp=function(e){this.S.disableRemotePlayback=e};g.b(uZ,g.v);g.b(eK,g.v);eK.prototype.show=function(){g.v.prototype.show.call(this);this.zQ();this.j1.X("html5_enable_moving_s4n_window")&&g.Uh(this.j1.G())&&this.Y()}; eK.prototype.hide=function(){g.v.prototype.hide.call(this);this.delay.stop();this.L.stop()}; eK.prototype.zQ=function(){var e=(0,g.Ov)(),a=z5N(this.j1);Kc(this.S,a.bandwidth_samples);Kc(this.D,a.network_activity_samples);Kc(this.B,a.live_latency_samples);Kc(this.T,a.buffer_health_samples);var r={};a=g.Z(Object.entries(a));for(var P=a.next();!P.done;P=a.next()){var B=g.Z(P.value);P=B.next().value;B=B.next().value;this.N[P]!==B&&(r[P]=" "+String(B));this.N[P]=B}this.update(r);e=(0,g.Ov)()-e>25?5E3:500;this.delay.start(e)}; eK.prototype.Y=function(){this.Z?(this.position+=1,this.position>15&&(this.Z=!1)):(--this.position,this.position<=0&&(this.Z=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.L.start(2E4)};g.b(IiJ,fw);g.b(a7,g.N);a7.prototype.S=function(){var e=(0,g.Ov)()-this.startTime;e=ethis.L[e])&&(this.S=e,this.Rv())}; g.E.onCueRangeExit=function(e){var a=eIL(this,e);a&&this.S===e&&this.api.qF("innertubeCommand",a);Bp(this);this.S=void 0}; g.E.V6=function(e){this.B=e}; g.E.QO=function(){this.Rv();this.B=void 0}; g.E.Rv=function(){if(this.S!==void 0){var e=(e=Pp(this,this.S))&&e.onCueRangeEnter?ls(e.onCueRangeEnter):void 0;var a=Pp(this,this.S);a:if(a&&a.additionalTrigger){var r=g.Z(a.additionalTrigger);for(var P=r.next();!P.done;P=r.next())if(P=P.value,P.type){var B=void 0,h=void 0;if((B=this.Eo[P.type])==null?0:B((h=P.args)!=null?h:{})){r=!0;break a}}r=!1}else r=!0;e&&r&&(this.api.qF("innertubeCommand",e),agN(this,a),this.L[this.S]!==void 0&&this.L[this.S]++,this.N=!0)}}; g.E.RH=function(){this.timelyActions=this.B=this.S=this.videoId=void 0;this.L={};this.FU();Bp(this);fw.prototype.RH.call(this)};g.b(BZ4,fw);g.b(hh,Zk);hh.prototype.Z=function(e){this.L(e?2:1)}; hh.prototype.T=function(){var e=this.W.getPresentingPlayerType();e===2||e===3?(this.S=!1,this.OM.JA(this)):this.S||(e=this.hasVoiceBoostAudioTrack(),this.setEnabled(e),e=this.B()===2&&e,ON(this,e),this.OM.D5(this),this.S=!0)}; hh.prototype.RH=function(){this.OM.JA(this);Zk.prototype.RH.call(this)};g.b(cp,fw);cp.prototype.getVoiceBoostUserPreference=function(){return this.S}; cp.prototype.setVoiceBoostUserPreference=function(e){this.api.nf("vb_set",{pref:e});g.Vy("yt-player-voice-boost",e);e!==this.S&&(this.S=e,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Pw())}; cp.prototype.hasVoiceBoostAudioTrack=function(){var e,a,r=(e=this.api.getVideoData())==null?void 0:(a=e.B)==null?void 0:a.S;return r?va(r,function(P){var B;return((B=P.audio)==null?void 0:B.T)===!0}):!1}; cp.prototype.updateEnvironmentData=function(){this.api.G().E8=this.S};var CVI=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.b(yn,fw);yn.prototype.RH=function(){this.D&&(g.Al(this.D),this.D=void 0);fw.prototype.RH.call(this)}; yn.prototype.Pc=function(){(this.T?!this.S:this.B)&&Xa(this)}; yn.prototype.hH=function(e,a,r){var P=this;if(oS4(e)){var B=r||"";if(this.S)a=fk(this,B),nS4(e,a);else{var h=new g.fp;a.push(h.promise);this.C.promise.then(function(){var c=fk(P,B);nS4(e,c);h.resolve()})}}}; yn.prototype.Z2=function(e){var a=this;if(this.T||this.B)e.hY=fk(this,e.videoId),this.S||(this.L=new kF,this.C.promise.then(function(){a.WA.p_("pot_if");e.hY=fk(a,e.videoId)}))};g.b(g.U4,g.v);g.U4.prototype.select=function(){this.api.nY(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Wf||void 0)&&this.api.logClick(this.element)}; g.U4.prototype.onClick=function(e){if(g.uP(this.api.G())&&this.api.X("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var a=this.suggestion.Um(),r={};g.sL(this.api,r);a=g.EW(a,r);g.da(a,this.api,e)}else g.ke(e,this.api,this.T,this.suggestion.sessionData||void 0)&&this.select()}; g.U4.prototype.onKeyPress=function(e){switch(e.keyCode){case 13:case 32:e.defaultPrevented||(this.select(),e.preventDefault())}}; g.U4.prototype.onVideoDataChange=function(){var e=this.api.getVideoData(),a=this.api.G();this.T=e.nB?!1:a.L};g.b(gSO,g.v);g.E=gSO.prototype;g.E.RH=function(){this.hide();g.du(this.L);g.Be(this.stills);this.stills.length=0;this.T&&this.T.removeEventListener("click",this.Oq);this.B&&this.B.removeEventListener("click",this.yf);this.S&&this.S.removeEventListener("click",this.yf);g.v.prototype.RH.call(this)}; g.E.yf=function(e){this.Y&&this.Y(e)}; g.E.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var e,a,r,P,B;var h=(((e=this.videoData)==null?0:(a=e.suggestions)==null?0:a.length)?(r=this.videoData)==null?void 0:r.suggestions:((P=this.videoData)==null?0:g.Zo(P))?[(B=this.videoData)==null?void 0:g.Zo(B)]:[]).slice(0,18);if((e=this.N)&&this.D&&this.Z)if(g.E9(e),h.length)for(this.stills.length>h.length&&g.Be(this.stills.splice(h.length)),this.stills.length=h.length,a=0;a=0;e--)this.features[e].dispose();this.features.length=0;g.N.prototype.RH.call(this)};VFj.prototype.reset=function(){this.S=this.T=NaN};g.E=$Cz.prototype;g.E.reset=function(){Zp(this.timerName)}; g.E.tick=function(e,a){dL(e,a,this.timerName)}; g.E.p_=function(e){return $W(e,void 0,this.timerName)}; g.E.Fh=function(e){g.KZ(e,void 0,this.timerName)}; g.E.infoGel=function(e){g.JA(e,this.timerName)};g.b(lgJ,g.aK);g.E=lgJ.prototype;g.E.fq=function(e){return this.loop||!!e||this.index+1=0}; g.E.setShuffle=function(e){this.shuffle=e;e=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var a=0;a0)||Hp(this,1,!0)}; g.E.fd=function(){this.Z=!0;this.S.Xo(this.C);this.C=this.S.j(document,"mouseup",this.Pq)}; g.E.Pq=function(){this.Z=!1;Hp(this,8,!1);this.S.Xo(this.C);this.C=this.S.j(this.target,"mousedown",this.fd)}; g.E.ma=function(e){if(e=(e=e.changedTouches)&&e[0])this.Eo=e.identifier,this.S.Xo(this.Y),this.Y=this.S.j(this.target,"touchend",this.dw,void 0,!0),Hp(this,1024,!0)}; g.E.dw=function(e){if(e=e.changedTouches)for(var a=0;a1280||B>720)if(a=P.EG("maxresdefault.jpg"))break;if(h>640||B>480)if(a=P.EG("maxresdefault.jpg"))break;if(h>320||B>180)if(a=P.EG("sddefault.jpg")||P.EG("hqdefault.jpg")||P.EG("mqdefault.jpg"))break;if(a=P.EG("default.jpg"))break}g.OA(e)&&(e=new Image,e.addEventListener("load", function(){nMO()}),e.src=a?a:"",this.api.SM().tick("ftr")); this.L.style.backgroundImage=a?"url("+a+")":""};g.b(g.SK,g.v);g.SK.prototype.resize=function(){}; g.SK.prototype.T=function(e){var a=this;this.B=!1;EJy(this);var r=e.LX,P=this.api.G();r!=="GENERIC_WITHOUT_LINK"||P.Z?r==="TOO_MANY_REQUESTS"?(P=this.api.getVideoData(),this.vO(Fa(this,"TOO_MANY_REQUESTS_WITH_LINK",P.Um(),void 0,void 0,void 0,!1))):r!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||P.Z?this.api.G().X("html5_enable_bandaid_error_screen")&&r==="HTML5_SPS_UMP_STATUS_REJECTED"&&!P.Z?(P=P.hostLanguage,e="//support.google.com/youtube?p=videoError",P&&(e=g.EW(e,{hl:P})),this.vO(Fa(this,"HTML5_SPS_UMP_STATUS_REJECTED", e))):this.api.G().X("enable_adb_handling_in_sabr")&&r==="BROWSER_OR_EXTENSION_ERROR"&&!P.Z?(P=P.hostLanguage,e="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",P&&(e=g.EW(e,{hl:P})),this.vO(Fa(this,"BROWSER_OR_EXTENSION_ERROR",e))):this.vO(g.s4(e.errorMessage)):this.vO(Fa(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(e=P.hostLanguage,r="//support.google.com/youtube/?p=player_error1",e&&(r=g.EW(r, {hl:e})),this.vO(Fa(this,"GENERIC_WITH_LINK_AND_CPN",r,!0)),P.h9&&!P.L&&GdI(this,function(h){if(g.ke(h,a.api,!GF(a.api.G()))){h={as3:!1,html5:!0,player:!0,cpn:a.api.getVideoData().clientPlaybackNonce};var c=a.api;c.Og("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:h});c.isFullscreen()&&c.toggleFullscreen()}})); if(this.B){var B=this.BW("ytp-error-link");B&&(this.api.createClientVe(B,this,216104),this.api.logVisibility(B,!0),GdI(this,function(){a.api.logClick(B)}))}}; var CCy=/([^<>]+)<\/a>/;g.b(bSj,g.v);bSj.prototype.Pe=function(e,a,r){r=r===void 0?!1:r;switch(a){case 1:MG(this,e,this.B,r);break;case 2:MG(this,e,this.L,r);break;case 3:MG(this,e,this.S,r);break;case 4:MG(this,e,this.T,r)}};g.b(tTO,g.v);g.E=tTO.prototype;g.E.onClick=function(e){this.innertubeCommand?(this.W.qF("innertubeCommand",this.innertubeCommand),e.preventDefault()):g.ke(e,this.W,!0);this.W.logClick(this.element)}; g.E.onVideoDataChange=function(e,a){ZSJ(this,a);this.kf&&OSO(this,this.kf)}; g.E.Yj=function(e){var a=this.W.getVideoData();this.videoId!==a.videoId&&ZSJ(this,a);this.S&&OSO(this,e.state);this.kf=e.state}; g.E.Yh=function(){this.fade.show();this.W.publish("paidcontentoverlayvisibilitychange",!0);this.W.logVisibility(this.element,!0)}; g.E.XN=function(){this.fade.hide();this.W.publish("paidcontentoverlayvisibilitychange",!1);this.W.logVisibility(this.element,!1)};g.b(jK,g.v);jK.prototype.hide=function(){this.S.stop();this.message.style.display="none";g.v.prototype.hide.call(this)}; jK.prototype.onStateChange=function(e){this.dg(e.state)}; jK.prototype.dg=function(e){if(g.S(e,128)||this.api.Ip())var a=!1;else{var r;a=this.api.X("web_watch_enable_multiview_manager")&&((r=this.api.getVideoData())==null?0:yT(r))?!1:g.S(e,16)||g.S(e,1)?!0:!1}a?this.S.start():this.hide()}; jK.prototype.T=function(){this.message.style.display="block"};g.b(u6,g.P8);u6.prototype.onMutedAutoplayChange=function(e){this.B&&(e?(kdL(this),this.Yh()):(this.S&&this.logClick(),this.XN()))}; u6.prototype.We=function(e){this.api.isMutedByMutedAutoplay()&&g.TH(e,2)&&this.XN()}; u6.prototype.onClick=function(){this.api.unMute();this.logClick()}; u6.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.b(g.Kk,g.Zc);g.E=g.Kk.prototype;g.E.init=function(){var e=this.api,a=e.getPlayerStateObject();this.DK=e.getPlayerSize();this.S5(a);this.JN();this.VX();this.api.publish("basechromeinitialized",this);this.b2()&&this.api.publish("standardControlsInitialized")}; g.E.onVideoDataChange=function(e,a){var r=this.Tj!==a.videoId;if(r||e==="newdata")e=this.api,e.isFullscreen()||(this.DK=e.getPlayerSize());r&&(this.Tj=a.videoId,r=this.wL,r.Lf=3E3,Hp(r,512,!0),this.JN());this.api.X("web_render_jump_buttons")&&a.showSeekingControls&&(this.vD=572)}; g.E.tOW=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.E.x9=function(){var e=this.api.BI()&&this.api.DI(),a=this.api.x5();return this.xm||e||this.zS||a}; g.E.i7=function(){var e=!this.x9();g.cD(this.api.getRootNode(),"ytp-menu-shown",!e)}; g.E.Fu=function(e){try{if(!g.gy(this.api.getRootNode(),e))return!1}catch(a){return!1}for(;e&&!NbJ(e);)e=e===this.api.getRootNode()?null:e.parentElement||null;return!!e}; g.E.y3=function(e){var a=this.api.getRootNode();g.cD(a,"ytp-autohide",e);g.cD(a,"ytp-autohide-active",!0);this.Jf.start(e?250:100);e&&(this.Qy=!1,g.BD(a,"ytp-touch-mode"));this.Ag=!e;this.api.Na(!e);this.api.X("delhi_modern_web_player")&&this.api.publish("autohideupdate",e)}; g.E.kT=function(){var e=this.api.getRootNode();g.cD(e,"ytp-autohide-active",!1)}; g.E.Ge$=function(){this.Qr=!0}; g.E.JCM=function(e){if(this.api.G().X("player_doubletap_to_seek")||this.api.G().D)this.Qr=!1,this.DA&&this.Xo(this.DA),this.hd===0&&aW(this,e)?(this.cL(),this.aQ.start(),this.DA=this.j(this.api.MF(),"touchmove",this.Ge$,void 0,!0)):this.aQ.stop();VTT(this)&&aW(this,e)&&!this.api.G().D&&JRl(this);var a=this.hS.DP();if(!g.uP(this.api.G())&&md&&$64(this,e))a&&e.preventDefault();else if(this.Qy=!0,g.rr(this.api.getRootNode(),"ytp-touch-mode"),this.wL.tN(),this.api.G().X("player_doubletap_to_seek")||this.api.G().D)if(a= this.api.getPlayerStateObject(),!(!this.api.uQ()||g.S(a,2)&&g.qY(this.api)||g.S(a,64))){a=Date.now()-this.GD;this.hd+=1;if(a<=350){this.F5=!0;a=this.api.getPlayerSize().width/3;var r=this.api.getRootNode().getBoundingClientRect(),P=e.targetTouches[0].clientX-r.left;r=e.targetTouches[0].clientY-r.top;var B=(this.hd-1)*10;P>0&&Pa*2&&P=650,P=e.width<528;this.wL.resize();if(this.api.X("web_player_use_screen_width_for_big_mode")){var B,h=e.width>=((B=g.eS(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?B:2E3);g.cD(a,"ytp-big-mode",h)}g.cD(a,"ytp-fullscreen",this.api.isFullscreen());g.cD(a,"ytp-large-width-mode",r);this.api.X("delhi_modern_web_player")?g.cD(a,"ytp-xsmall-width-mode",P):g.cD(a,"ytp-small-mode",this.tA()); g.cD(a,"ytp-tiny-mode",this.AZ());g.cD(a,"ytp-big-mode",this.eX());this.mq&&this.mq.resize(e)}; g.E.We=function(e){this.S5(e.state);this.JN()}; g.E.zc=eL(3);g.E.q4=function(){var e=!!this.Tj&&!this.api.eK()&&!this.hG,a=this.api.getPresentingPlayerType()===2,r=this.api.G();if(a)return r=i6(this.api.eO()),e&&(r&&r.player?e=(e=r.player.getVideoData(2))?e.isListed&&!g.fm(r.player.G()):!1:(o9("showInfoBarDuringAd: this is null"),e=!1)),e;a=r.X("web_player_imax_theater_mode")&&this.api.zA();return e&&(r.TU||a||this.api.isFullscreen()||r.VY)}; g.E.JN=function(){var e=this.q4();this.YZ!==e&&(this.YZ=e,g.cD(this.api.getRootNode(),"ytp-hide-info-bar",!e))}; g.E.S5=function(e){var a=e.isCued()||this.api.c8()&&this.api.getPresentingPlayerType()!==3;a!==this.isCued&&(this.isCued=a,this.U0&&this.Xo(this.U0),this.U0=this.j(this.api.MF(),"touchstart",this.JCM,void 0,a));var r=this.wL,P=e.isPlaying()&&!g.S(e,32)||this.api.r9();Hp(r,128,!P);r=this.wL;P=this.api.getPresentingPlayerType()===3;Hp(r,256,P);r=this.api.getRootNode();g.S(e,2)?P=[MH.ENDED]:(P=[],g.S(e,8)?P.push(MH.PLAYING):g.S(e,4)&&P.push(MH.PAUSED),g.S(e,1)&&!g.S(e,32)&&P.push(MH.BUFFERING),g.S(e, 32)&&P.push(MH.SEEKING),g.S(e,64)&&P.push(MH.UNSTARTED));g.sG(this.dS,P)||(g.hi(r,this.dS),this.dS=P,g.PD(r,P));P=this.api.G();var B=g.S(e,2);a:{var h=this.api.G();var c=h.controlsType;switch(c){case "2":case "0":h=!1;break a}h=c==="3"&&!g.S(e,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:CNN(i6(this.api.eO())))||this.api.x5()||g.uP(h)&&this.api.getPresentingPlayerType()===2?!1:!0}g.cD(r,"ytp-hide-controls",!h);g.cD(r,"ytp-native-controls",P.controlsType==="3"&&!a&&!B&&!this.zS);g.S(e, 128)&&!g.uP(P)?(this.mq||(this.mq=new g.SK(this.api),g.x(this,this.mq),g.MY(this.api,this.mq.element,4)),this.mq.T(e.xu),this.mq.show()):this.mq&&(this.mq.dispose(),this.mq=null)}; g.E.LS=function(){return this.api.BI()&&this.api.DI()?(this.api.DC(!1,!1),!0):this.api.eK()?(g.vx(this.api,!0),!0):!1}; g.E.onMutedAutoplayChange=function(e){this.zS=e;this.i7()}; g.E.eX=function(){return!1}; g.E.tA=function(){return!this.eX()&&(this.api.getPlayerSize().width=0&&a.left>=0&&a.bottom>a.top&&a.right>a.left?a:null;a=this.size;e=e.clone();a=a.clone();P&&(c=a,B=5,(B&65)==65&&(e.x=P.right)&&(B&=-2),(B&132)==132&&(e.y=P.bottom)&&(B&=-5),e.xP.right&&(c.width=Math.min(P.right-e.x,h+c.width-P.left),c.width=Math.max(c.width,0))),e.x+c.width>P.right&&B&1&&(e.x=Math.max(P.right-c.width,P.left)),e.yP.bottom&&(c.height=Math.min(P.bottom-e.y,h+c.height-P.top),c.height=Math.max(c.height,0))),e.y+c.height>P.bottom&&B&4&&(e.y=Math.max(P.bottom-c.height,P.top)));P=new g.I8(0,0,0,0);P.left=e.x;P.top=e.y;P.width= a.width;P.height=a.height;g.j2(this.element,new g.vR(P.left,P.top));g.du(this.L);this.L.j(B8(this),"contextmenu",this.ir1);this.L.j(this.W,"fullscreentoggled",this.onFullscreenToggled);this.L.j(this.W,"pageTransition",this.F_)}; g.E.ir1=function(e){if(!e.defaultPrevented){var a=gu(e);g.gy(this.element,a)||this.XN();this.W.G().disableNativeContextMenu&&e.preventDefault()}}; g.E.onFullscreenToggled=function(){this.XN();KhN(this)}; g.E.F_=function(){this.XN()};g.b(Xx,g.v);Xx.prototype.onClick=function(){var e=this,a,r,P,B;return g.Y(function(h){if(h.T==1)return a=e.api.G(),r=e.api.getVideoData(),P=e.api.getPlaylistId(),B=a.getVideoUrl(r.videoId,P,void 0,!0),g.l(h,rIl(e,B),2);h.S&&aqN(e);e.api.logClick(e.element);g.OO(h)})}; Xx.prototype.zQ=function(){this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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=e1T(this);g.cD(this.element, "ytp-copylink-button-visible",this.visible);this.Nr(this.visible);this.tooltip.gE();this.api.logVisibility(this.element,this.visible&&this.C)}; Xx.prototype.Yy=function(e){g.v.prototype.Yy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)}; Xx.prototype.RH=function(){g.v.prototype.RH.call(this);g.BD(this.element,"ytp-copylink-button-visible")};g.b(PWl,g.v);g.E=PWl.prototype;g.E.show=function(){g.v.prototype.show.call(this);g.sC(this.T)}; g.E.hide=function(){this.L.stop();this.B=0;this.BW("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.BD(this.element,"ytp-chapter-seek");g.BD(this.element,"ytp-time-seeking");g.v.prototype.hide.call(this)}; g.E.EF=function(e,a,r,P){this.B=e===this.D?this.B+P:P;this.D=e;var B=e===-1?this.N:this.Y;B&&this.W.logClick(B);this.Z?this.T.stop():g.Fu(this.T);this.L.start();this.element.setAttribute("data-side",e===-1?"back":"forward");var h=3*this.W.MF().getPlayerSize().height;B=this.W.MF().getPlayerSize();B=B.width/3-3*B.height;this.S.style.width=h+"px";this.S.style.height=h+"px";e===1?(this.S.style.left="",this.S.style.right=B+"px"):e===-1&&(this.S.style.right="",this.S.style.left=B+"px");var c=h*2.5;h=c/ 2;var y=this.BW("ytp-doubletap-ripple");y.style.width=c+"px";y.style.height=c+"px";e===1?(e=this.W.MF().getPlayerSize().width-a+Math.abs(B),y.style.left="",y.style.right=e-h+"px"):e===-1&&(e=Math.abs(B)+a,y.style.right="",y.style.left=e-h+"px");y.style.top="calc((33% + "+Math.round(r)+"px) - "+h+"px)";if(r=this.BW("ytp-doubletap-ripple"))r.classList.remove("ytp-doubletap-ripple"),r.classList.add("ytp-doubletap-ripple");B03(this,this.Z?this.B:P)}; g.E.Xx=function(e,a,r){if(r=r===void 0?null:r){var P=e===-1?this.N.visualElement:this.Y.visualElement;r={seekData:r};var B=g.bs();B&&us(B,P,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",r)}this.B=e===this.D?this.B+a:a;this.D=e;P=this.W.MF().getPlayerSize();this.Z?this.T.stop():g.Fu(this.T);this.L.start();this.element.setAttribute("data-side",e===-1?"back":"forward");g.rr(this.element,"ytp-time-seeking");this.S.style.width="110px";this.S.style.height="110px";r=P.width*.1-15;e===1?this.HW?(this.S.style.right= r+"px",this.S.style.left=""):(this.S.style.right="",this.S.style.left=P.width*.8-30+"px"):e===-1&&(this.HW?(this.S.style.right="",this.S.style.left=r+"px"):(this.S.style.right="",this.S.style.left=P.width*.1-15+"px"));this.S.style.top=P.height*.5+15+"px";B03(this,this.Z?this.B:a)}; g.E.jN=function(e,a,r){r=r===void 0?null:r;g.Fu(this.T);this.L.start();switch(e){case -1:e="back";break;case 1:e="forward";break;default:e=""}this.element.setAttribute("data-side",e);this.S.style.width="0";this.S.style.height="0";g.rr(this.element,"ytp-chapter-seek");this.updateValue("seekText",a);this.updateValue("seekTime","");a=this.BW("ytp-seek-icon");if(r){a:if(r){switch(r){case "PREMIUM_STANDALONE":r=DlL();break a;case "PREMIUM_STANDALONE_CAIRO":r=V$3();break a}r=void 0}else r=null;this.updateValue("seekIcon", r);a.style.display="inline-block"}else a.style.display="none"};g.b(h1q,VK);g.E=h1q.prototype;g.E.VS=function(e){this.e1||(this.e1=new w2(this.W),g.x(this,this.e1));var a,r;if((a=this.bv)==null?0:(r=a.menu)==null?0:r.menuRenderer)this.e1.open(this.bv.menu.menuRenderer,e.target),e.preventDefault()}; g.E.d4=function(){return!!this.S}; g.E.Bp=function(){return!!this.S}; g.E.td=function(e){e.target===this.overflowButton.element?e.preventDefault():(this.Te&&this.W.qF("innertubeCommand",this.Te),this.bU(!1))}; g.E.LQ=function(){this.bU(!0);var e,a;((e=this.S)==null?0:(a=e.bannerData)==null?0:a.dismissedStatusKey)&&this.h9.push(this.S.bannerData.dismissedStatusKey);this.D0()}; g.E.DE=function(){this.D0();UU(this)}; g.E.GGW=function(e){var a=this,r;if(e.id!==((r=this.S)==null?void 0:r.identifier)){this.D0();r=g.Z(this.Eo);for(var P=r.next();!P.done;P=r.next()){var B=P.value,h=void 0,c=void 0;if((P=(h=B)==null?void 0:(c=h.bannerData)==null?void 0:c.itemData)&&B.identifier===e.id){c=h=void 0;var y=((h=B)==null?void 0:(c=h.bannerData)==null?void 0:c.dismissedStatusKey)||"";if(this.h9.includes(y))return;this.S=B;this.banner.element.setAttribute("aria-label",P.accessibilityLabel||"");P.trackingParams&&(this.L=!0, this.W.setTrackingParams(this.badge.element,P.trackingParams));this.show();this.N.show();DJ(this);this.Lf.Nr(!P.stayInApp);EiI(this);oiq(this);Ad(this);this.Te=g.H(P.onTapCommand,QJ);if(B=g.H(P.menuOnTap,QJ))this.bv=g.H(B,aFV);B=void 0;this.banner.update({thumbnail:(B=(P.thumbnailSources||[])[0])==null?void 0:B.url,title:P.productTitle,price:P.priceReplacementText?P.priceReplacementText:P.price,salesOriginalPrice:T0L(this),priceDropReferencePrice:XTN(this),promotionText:yI4(this),priceA11yText:fqO(this), affiliateDisclaimer:P.affiliateDisclaimer,vendor:AIy(this)});y=c=h=B=void 0;((B=P)==null?0:(h=B.hiddenProductOptions)==null?0:h.showDropCountdown)&&((c=P)==null?0:(y=c.hiddenProductOptions)==null?0:y.dropTimestampMs)&&(this.ID=new g.vP(function(){GML(a)},1E3),this.Lf.hide(),this.countdownTimer.show(),GML(this)); this.W.X("web_player_enable_featured_product_banner_exclusives_on_desktop")&&cI3(this)&&(this.dW=new g.vP(function(){niL(a)},1E3),niL(this))}}this.W.getRootNode()&&g.rr(this.W.getRootNode(),"ytp-featured-product-shown")}}; g.E.D0=function(){this.S&&(this.S=void 0,this.Mc(),this.W.getRootNode()&&g.BD(this.W.getRootNode(),"ytp-featured-product-shown"))}; g.E.onVideoDataChange=function(e,a){var r=this;e==="dataloaded"&&UU(this);var P,B,h;e=g.H((P=a.getWatchNextResponse())==null?void 0:(B=P.playerOverlays)==null?void 0:(h=B.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,K4w);this.overflowButton.show();this.dismissButton.hide();var c=e==null?void 0:e.featuredProductsEntityKey;this.trendingOfferEntityKey=e==null?void 0:e.trendingOfferEntityKey;this.Eo.length||(CWz(this,c),Ad(this));var y;(y=this.Q2)==null||y.call(this);this.Q2=g.k0.subscribe(function(){CWz(r, c);Ad(r)})}; g.E.RH=function(){UU(this);EiI(this);oiq(this);VK.prototype.RH.call(this)};g.b(Odl,g.v);Odl.prototype.onClick=function(){this.W.logClick(this.element,this.T)};g.b(kMy,g.P8);g.E=kMy.prototype;g.E.show=function(){g.P8.prototype.show.call(this);this.W.publish("infopaneldetailvisibilitychange",!0);this.W.logVisibility(this.element,!0);dH3(this,!0)}; g.E.hide=function(){g.P8.prototype.hide.call(this);this.W.publish("infopaneldetailvisibilitychange",!1);this.W.logVisibility(this.element,!1);dH3(this,!1)}; g.E.getId=function(){return this.L}; g.E.d0=function(){return this.itemData.length}; g.E.onVideoDataChange=function(e,a){if(a){var r,P,B,h;this.update({title:((r=a.Nc)==null?void 0:(P=r.title)==null?void 0:P.content)||"",body:((B=a.Nc)==null?void 0:(h=B.bodyText)==null?void 0:h.content)||""});var c;e=((c=a.Nc)==null?void 0:c.trackingParams)||null;this.W.setTrackingParams(this.element,e);c=g.Z(this.itemData);for(e=c.next();!e.done;e=c.next())e.value.dispose();this.itemData=[];var y;if((y=a.Nc)==null?0:y.ctaButtons)for(a=g.Z(a.Nc.ctaButtons),y=a.next();!y.done;y=a.next())if(y=g.H(y.value, sDw))y=new Odl(this.W,y,this.S),y.Fw&&(this.itemData.push(y),y.Kf(this.items))}}; g.E.RH=function(){this.hide();g.P8.prototype.RH.call(this)};g.b(V8j,g.v);g.E=V8j.prototype;g.E.onVideoDataChange=function(e,a){DHL(this,a);this.kf&&QpL(this,this.kf)}; g.E.iM=function(e){var a=this.W.getVideoData();this.videoId!==a.videoId&&DHL(this,a);QpL(this,e.state);this.kf=e.state}; g.E.r7=function(e){(this.B=e)?this.hide():this.S&&this.show()}; g.E.N8=function(){this.T||this.Yh();this.showControls=!0}; g.E.M8=function(){this.T||this.XN();this.showControls=!1}; g.E.Yh=function(){var e,a=(e=this.W)==null?void 0:e.getPlayerSize();e=a.width<380;var r;a=a.height<(((r=this.W)==null?0:r.isEmbedsShortsMode())?400:280);var P,B;(((P=this.W)==null?0:P.getPlayerStateObject().isCued())||((B=this.W)==null?0:g.S(B.getPlayerStateObject(),1024)))&&e&&a||!this.S||this.B||(this.fade.show(),this.W.publish("infopanelpreviewvisibilitychange",!0),this.W.logVisibility(this.element,!0))}; g.E.XN=function(){this.S&&!this.B&&(this.fade.hide(),this.W.publish("infopanelpreviewvisibilitychange",!1),this.W.logVisibility(this.element,!1))}; g.E.MKm=function(){this.T=!1;this.showControls||this.XN()};var cCl={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(cCl).reduce(function(e,a){e[cCl[a]]=a;return e},{}); var ojG={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ojG).reduce(function(e,a){e[ojG[a]]=a;return e},{}); var njB={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(njB).reduce(function(e,a){e[njB[a]]=a;return e},{});var yCN,TOG;yCN=[{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"}];TOG=[{option:0,text:C1(0)},{option:.25,text:C1(.25)},{option:.5,text:C1(.5)},{option:.75,text:C1(.75)},{option:1,text:C1(1)}]; g.td=[{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 colour",options:yCN},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:C1(.5)},{option:-1,text:C1(.75)},{option:0,text:C1(1)},{option:1,text:C1(1.5)},{option:2, text:C1(2)},{option:3,text:C1(3)},{option:4,text:C1(4)}]},{option:"background",text:"Background colour",options:yCN},{option:"backgroundOpacity",text:"Background opacity",options:TOG},{option:"windowColor",text:"Window colour",options:yCN},{option:"windowOpacity",text:"Window opacity",options:TOG},{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:C1(.25)},{option:.5,text:C1(.5)},{option:.75,text:C1(.75)},{option:1,text:C1(1)}]}];var XSN=[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.b(pT4,g.Zc);g.E=pT4.prototype; g.E.kC=function(e){e.repeat||(this.B.JP=!1);var a=!1,r=e.keyCode,P=gu(e),B=!e.altKey&&!e.ctrlKey&&!e.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||XSN.includes(r)),h=!1,c=!1,y=this.api.G();e.defaultPrevented?(B=!1,c=!0):y.py&&!this.api.isMutedByEmbedsMutedAutoplay()&&(B=!1);if(r===9)a=!0;else{if(P)switch(r){case 32:case 13:if(P.tagName==="BUTTON"||P.tagName==="A"||P.tagName==="INPUT")a=!0,B=!1;else if(B){var T=P.getAttribute("role");!T||T!=="option"&&T!=="button"&&T.indexOf("menuitem")!==0|| (a=!0,P.click(),h=!0)}break;case 37:case 39:case 36:case 35:a=P.getAttribute("role")==="slider";break;case 38:case 40:T=P.getAttribute("role"),P=r===38?P.previousSibling:P.nextSibling,T==="slider"?a=!0:B&&(T==="option"?(P&&P.getAttribute("role")==="option"&&P.focus(),h=a=!0):T&&T.indexOf("menuitem")===0&&(P&&P.hasAttribute("role")&&P.getAttribute("role").indexOf("menuitem")===0&&P.focus(),h=a=!0))}if(B&&!h)switch(r){case 38:h=Math.min(this.api.getVolume()+5,100);B6(this.fB,h,!1);this.api.setVolume(h); c=h=!0;break;case 40:h=Math.max(this.api.getVolume()-5,0);B6(this.fB,h,!0);this.api.setVolume(h);c=h=!0;break;case 36:this.api.uQ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),c=h=!0);break;case 35:this.api.uQ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),c=h=!0)}}a&&EU(this,!0);(a||c)&&this.wL.tN();(h||B&&this.handleGlobalKeyDown(r,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code,e.repeat))&&e.preventDefault();y.Y&&(e={keyCode:e.keyCode, altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,handled:e.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.cG("onKeyPress",e))}; g.E.Vx=function(e){var a=e.keyCode;(!this.api.X("web_player_spacebar_control_bugfix")||this.api.X("web_player_spacebar_control_bugfix")&&!this.B.d8)&&this.handleGlobalKeyUp(a,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code)&&e.preventDefault()}; g.E.handleGlobalKeyUp=function(e,a,r,P,B,h,c){this.api.publish("keyboardserviceglobalkeyup",{keyCode:e,shiftKey:a,ctrlKey:r,altKey:P,metaKey:B,key:h,code:c});a=!1;if(this.B.JP)return a;(h=g.mu(this.api.eO()))&&(h=h.DN)&&h.oD&&(h.qw(e),a=!0);switch(e){case 9:EU(this,!0);a=!0;break;case 32:if(this.api.X("web_speedmaster_spacebar_control")&&(!this.api.X("web_player_spacebar_control_bugfix")&&!this.B.d8||this.api.X("web_player_spacebar_control_bugfix"))&&!this.api.G().py){var y,T;e=(y=this.progressBar)== null?void 0:(T=y.T)==null?void 0:T.isEnabled;a=this.zg(e)}break;case 39:(Ar?P:r)&&!B&&this.api.uQ()&&this.api.X("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),y=(y=this.api.getVideoData())?y.Tu:[],T=lqL(y,this.api.getCurrentTime()*1E3),T!==-1&&this.S!=null&&(this.S.jN(1,y[T].title),this.api.seekTo(y[T].startTime/1E3,void 0,void 0,void 0,52),a=!0))}return a}; g.E.handleGlobalKeyDown=function(e,a,r,P,B,h,c,y){y||(this.B.JP=!1);var T=!1,X=this.api.G();if(X.py&&!this.api.isMutedByEmbedsMutedAutoplay())return T;var f=g.mu(this.api.eO());if(f&&(f=f.DN)&&f.oD)switch(e){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:T=f.yx(e)}X.Z||T||(T=h||String.fromCharCode(e).toLowerCase(),this.T+=T,"awesome".indexOf(this.T)===0||this.api.X("web_player_rtr_ctrls")&&"bday".indexOf(this.T)===0?(T=!0,4===this.T.length&&this.T==="bday"&&this.api.X("web_player_rtr_ctrls")&& (NKq(this.C),this.wL.tN()),7===this.T.length&&this.T==="awesome"&&dqL(this.api.getRootNode(),"ytp-color-party")):(this.T=T,T="awesome".indexOf(this.T)===0||"bday".indexOf(this.T)===0));if(!T&&(!this.api.isMutedByEmbedsMutedAutoplay()||XSN.includes(e))){var A=this.api.getVideoData(),U,C;f=(U=this.progressBar)==null?void 0:(C=U.T)==null?void 0:C.isEnabled;U=A?A.Tu:[];C=Ar?P:r;switch(e){case 80:a&&!X.XM&&(P6(this.fB,$l3(),"Previous"),this.api.previousVideo(),T=!0);break;case 78:a&&!X.XM&&(P6(this.fB, EY(),"Next"),this.api.nextVideo(),T=!0);break;case 74:this.api.uQ()&&(this.api.startSeekCsiAction(),this.S?this.api.X("enable_key_press_seek_logging")?(T=bu(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.S.Xx(-1,10,T)):this.S.Xx(-1,10):P6(this.fB,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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),T=!0);break;case 76:this.api.uQ()&&(this.api.startSeekCsiAction(),this.S?this.api.X("enable_key_press_seek_logging")?(T=bu(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.S.Xx(1,10,T)):this.S.Xx(1,10):P6(this.fB,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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),T=!0);break;case 37:this.api.uQ()&&(this.api.startSeekCsiAction(),C?(C=LFj(U,this.api.getCurrentTime()*1E3),C!==-1&&this.S!=null&&(this.S.jN(-1,U[C].title),this.api.seekTo(U[C].startTime/1E3,void 0,void 0,void 0,53),T=!0)):(this.S?this.api.X("enable_key_press_seek_logging")?(T=bu(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.S.Xx(-1,5,T)):this.S.Xx(-1,5):P6(this.fB,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},V:[{K:"path",Rz:!0,U:"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),T=!0));break;case 39:this.api.uQ()&&(this.api.startSeekCsiAction(),C?this.api.X("web_enable_keyboard_shortcut_for_timely_actions")||(C=lqL(U,this.api.getCurrentTime()*1E3),C!==-1&&this.S!=null&&(this.S.jN(1,U[C].title),this.api.seekTo(U[C].startTime/1E3,void 0,void 0,void 0,52),T=!0)):(this.S!=null?this.api.X("enable_key_press_seek_logging")?(T=bu(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.S.Xx(1,5,T)):this.S.Xx(1, 5):P6(this.fB,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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),T=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),B6(this.fB,this.api.getVolume(),!1)):(this.api.mute(),B6(this.fB,0,!0));T=!0;break;case 32:T=this.api.X("web_speedmaster_spacebar_control")?!this.api.G().XM:this.zg(f);break;case 75:T=this.zg(f);break;case 190:a?X.enableSpeedOptions&&z1L(this)&&(T=this.api.getPlaybackRate(),this.api.setPlaybackRate(T+.25,!0),WhI(this.fB,!1),T=!0):this.api.uQ()&&(this.step(1),T=!0);break;case 188:a? X.enableSpeedOptions&&z1L(this)&&(T=this.api.getPlaybackRate(),this.api.setPlaybackRate(T-.25,!0),WhI(this.fB,!0),T=!0):this.api.uQ()&&(this.step(-1),T=!0);break;case 70:Rhy(this.api)&&(this.api.toggleFullscreen().catch(function(){}),T=!0); break;case 27:f?(this.progressBar.KD(),T=!0):this.Z()&&(T=!0)}if(X.controlsType!=="3")switch(e){case 67:g.Yp(this.api.eO())&&(X=this.api.getOption("captions","track"),this.api.toggleSubtitles(),lx3(this.fB,!X||X&&!X.displayName),T=!0);break;case 79:gX(this,"textOpacity");break;case 87:gX(this,"windowOpacity");break;case 187:case 61:gX(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:gX(this,"fontSizeIncrement",!0,!0)}var G;a||r||P||(e>=48&&e<=57?G=e-48:e>=96&&e<=105&&(G=e-96));G!=null&&this.api.uQ()&& !this.api.X("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),X=this.api.getProgressState(),this.api.seekTo(G/10*(X.seekableEnd-X.seekableStart)+X.seekableStart,void 0,void 0,void 0,81),T=!0);T&&this.wL.tN()}this.B.Cx=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:e,shiftKey:a,ctrlKey:r,altKey:P,metaKey:B,key:h,code:c,repeat:y},this.B);this.B.Cx&&(T=!0,this.wL.tN());return T}; g.E.step=function(e){this.api.uQ();if(this.api.getPlayerStateObject().isPaused()){var a=this.api.getVideoData().T;a&&(a=a.video)&&this.api.seekBy(e/(a.fps||30),void 0,void 0,e>0?77:78)}}; g.E.zg=function(e){if(!this.api.G().XM){var a;var r,P=(a=this.api.getVideoData())==null?void 0:(r=a.getPlayerResponse())==null?void 0:r.playabilityStatus;if(P){var B;a=((B=g.H(P.miniplayer,nHN))==null?void 0:B.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else a=!1;a&&this.api.qF("onExpandMiniplayer");e?this.progressBar.wZ():(e=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.fB.Ht(e),e?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.E.RH=function(){g.Fu(this.L);g.Zc.prototype.RH.call(this)};g.b(ZW,g.v);ZW.prototype.zQ=function(){var e=this.W.G(),a=e.B||this.W.X("web_player_hide_overflow_button_if_empty_menu")&&this.eM.isEmpty();e=g.uP(e)&&g.Sn(this.W)&&g.S(this.W.getPlayerStateObject(),128);var r=this.W.getPlayerSize();this.visible=this.W.tA()&&!e&&r.width>=240&&!this.W.getVideoData().nB&&!a&&!this.W.isEmbedsShortsMode();g.cD(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.W.gE();this.W.logVisibility(this.element,this.visible&&this.C)}; ZW.prototype.Yy=function(e){g.v.prototype.Yy.call(this,e);this.W.logVisibility(this.element,this.visible&&e)}; ZW.prototype.RH=function(){g.v.prototype.RH.call(this);g.BD(this.element,"ytp-overflow-button-visible")};g.b(N0j,g.P8);g.E=N0j.prototype;g.E.uM=function(e){e=gu(e);g.gy(this.element,e)&&(g.gy(this.S,e)||g.gy(this.closeButton,e)||hQ(this))}; g.E.XN=function(){g.P8.prototype.XN.call(this);this.W.IZ(this.element)}; g.E.show=function(){this.oD&&this.W.publish("OVERFLOW_PANEL_OPENED");g.P8.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Iq3(this,!0)}; g.E.hide=function(){g.P8.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Iq3(this,!1)}; g.E.onFullscreenToggled=function(e){!e&&this.DP()&&hQ(this)}; g.E.isEmpty=function(){return this.actionButtons.length===0}; g.E.focus=function(){for(var e=g.Z(this.actionButtons),a=e.next();!a.done;a=e.next())if(a=a.value,a.oD){a.focus();break}};g.b(Hdq,g.v);Hdq.prototype.onClick=function(e){g.ke(e,this.api)&&this.api.playVideoAt(this.index)};g.b(qQ3,g.P8);g.E=qQ3.prototype;g.E.show=function(){g.P8.prototype.show.call(this);this.S.j(this.api,"videodatachange",this.j4);this.S.j(this.api,"onPlaylistUpdate",this.j4);this.j4()}; g.E.hide=function(){g.P8.prototype.hide.call(this);g.du(this.S);this.updatePlaylist(null)}; g.E.j4=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().B&&(this.BW("ytp-playlist-menu-title-name").removeAttribute("href"),this.B&&(this.Xo(this.B),this.B=null))}; g.E.dJ=function(){var e=this.playlist,a=e.author,r=a?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",P={CURRENT_POSITION:String(e.index+1),PLAYLIST_LENGTH:String(e.length)};a&&(P.AUTHOR=a);this.update({title:e.title,subtitle:g.PA(r,P),playlisturl:this.api.getVideoUrl(!0)});a=e.T;if(a===this.L)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[e.index];else{r=g.Z(this.playlistData);for(P=r.next();!P.done;P=r.next())P.value.dispose(); r=e.length;this.playlistData=[];for(P=0;P=this.T&&!e.B&&!a.isAd()&&!this.api.isEmbedsShortsMode()}else e=!1;this.visible=e;this.Nr(this.visible);g.cD(this.element,"ytp-search-button-visible",this.visible);g.cD(this.element,"ytp-show-search-title",!this.api.tA());this.api.logVisibility(this.element,this.visible&&this.C)}; Jd.prototype.Yy=function(e){g.v.prototype.Yy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.b(DW,g.v); DW.prototype.trigger=function(e,a,r,P){this.show();if(this.T&&e!==this.T){var B=1;this.B&&(B=azT(this));M8O(this,B,!1);ejO(this)}this.T=e;this.L=this.T===-1?this.Y:this.N;e="";a?(this.D+=a,e=(this.T===-1?"\u2212":"+")+" "+this.D):this.D=0;this.updateValue(this.T===-1?"durationBack":"durationForward",e);if(this.S==="hidden"||this.S==="fading-out")a=0,this.S==="fading-out"&&(a=azT(this),KF4(this)),jpz(this,a),this.S!=="fading-out"&&uFN(this,this.L.querySelector(".ytp-seek-overlay-arrow-persistent")),this.S= "fading-in";else if(this.S==="fading-in"||this.S==="lingering")a=this.L.querySelector(".ytp-seek-overlay-duration"),e=g.eS(this.W.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,a.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("+e+")"},{offset:1,transform:"scale(1)"}],{duration:184}),KF4(this),this.S==="lingering"&&(this.Z.stop(),this.Z.start());r&&r9j(this,r,P)}; DW.prototype.EF=function(e,a,r,P){this.trigger(e,P)}; DW.prototype.Xx=function(e,a,r){this.trigger(e,a);r&&(e=e===-1?this.N.visualElement:this.Y.visualElement,r={seekData:r},(a=g.bs())&&us(a,e,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",r))}; DW.prototype.jN=function(e,a,r){this.trigger(e,void 0,a,r)};g.b(Vt,g.v);Vt.prototype.onClick=function(){var e=this,a=this.api.G(),r=this.api.getVideoData(this.api.getPresentingPlayerType()),P=this.api.getPlaylistId();a=this.api.X("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):a.getVideoUrl(r.videoId,P,void 0,!0);if(navigator.share)try{var B=navigator.share({title:r.title,url:a});B instanceof Promise&&B.catch(function(h){Bg4(e,h)})}catch(h){h instanceof Error&&Bg4(this,h)}else this.S.LS(),hQ(this.T,this.element,!1); this.api.logClick(this.element)}; Vt.prototype.zQ=function(){var e=this.api.G(),a=this.api.isEmbedsShortsMode();g.cD(this.element,"ytp-show-share-title",g.uP(e)&&!a);this.S.eX()&&a?(e=(this.api.MF().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.vo(this.element,"right",e+"px")):a&&g.vo(this.element,"right","0px");this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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=PUz(this);g.cD(this.element,"ytp-share-button-visible",this.visible);this.Nr(this.visible);this.tooltip.gE();this.api.logVisibility(this.element,PUz(this)&&this.C)}; Vt.prototype.Yy=function(e){g.v.prototype.Yy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)}; Vt.prototype.RH=function(){g.v.prototype.RH.call(this);g.BD(this.element,"ytp-share-button-visible")};g.b(c9y,g.P8);g.E=c9y.prototype;g.E.pK=function(e){e=gu(e);g.gy(this.Z,e)||g.gy(this.closeButton,e)||hQ(this)}; g.E.XN=function(){g.P8.prototype.XN.call(this);this.tooltip.IZ(this.element);this.api.logVisibility(this.S,!1);for(var e=g.Z(this.B),a=e.next();!a.done;a=e.next())a=a.value,this.api.hasVe(a.element)&&this.api.logVisibility(a.element,!1)}; g.E.show=function(){var e=this.oD;g.P8.prototype.show.call(this);this.zQ();e||this.api.qF("onSharePanelOpened")}; g.E.vl=function(){this.oD&&this.zQ()}; g.E.zQ=function(){var e=this;g.rr(this.element,"ytp-share-panel-loading");g.BD(this.element,"ytp-share-panel-fail");var a=this.api.getVideoData(),r=this.api.getPlaylistId()&&this.L.checked;a.getSharePanelCommand&&lI(this.api.jM(),a.getSharePanelCommand,{includeListId:r}).then(function(P){e.wP()||(g.BD(e.element,"ytp-share-panel-loading"),y9L(e,P))}); a=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",a);this.updateValue("linkText",a);this.updateValue("shareLinkWithUrl",g.PA("Share link $URL",{URL:a}));Vi(this.S);this.api.logVisibility(this.S,!0)}; g.E.onFullscreenToggled=function(e){!e&&this.DP()&&hQ(this)}; g.E.focus=function(){this.S.focus()}; g.E.RH=function(){g.P8.prototype.RH.call(this);otL(this)};g.b(fzT,VK);g.E=fzT.prototype;g.E.RH=function(){Et3(this);VK.prototype.RH.call(this)}; g.E.td=function(e){e.target!==this.dismissButton.element&&(this.bU(!1),this.W.qF("innertubeCommand",this.onClickCommand))}; g.E.LQ=function(){this.ym=!0;this.bU(!0);this.Mc()}; g.E.L2d=function(e){this.D=e;this.Mc()}; g.E.onVideoDataChange=function(e,a){if(e=!!a.videoId&&this.videoId!==a.videoId)this.videoId=a.videoId,this.ym=!1,this.TQ=!0,this.Y=this.oH=!1,Et3(this),GlL(this,!1),this.T=this.S=!1,Qt(this),A9j(this);if(e||!a.videoId)this.HW=this.L=!1;var r,P;if(a==null?0:(r=a.getPlayerResponse())==null?0:(P=r.videoDetails)==null?0:P.isLiveContent)this.GG(!1);else{var B,h,c;a=g.H((B=a.getWatchNextResponse())==null?void 0:(h=B.playerOverlays)==null?void 0:(c=h.playerOverlayRenderer)==null?void 0:c.productsInVideoOverlayRenderer, K4w);this.D=this.enabled=!1;if(a){if(B=a==null?void 0:a.featuredProductsEntityKey){h=g.k0.getState().entities;var y;if((y=MQ(h,"featuredProductsEntity",B))==null?0:y.productsData){this.GG(!1);return}}if(!a.text||!a.onClickCommand||!a.timing){this.GG(!1);return}this.enabled=!0;if(!this.L){var T;y=(T=a.badgeInteractionLogging)==null?void 0:T.trackingParams;(this.L=!!y)&&this.W.setTrackingParams(this.badge.element,y||null)}if(!this.HW){var X;if(this.HW=!((X=a.dismissButton)==null||!X.trackingParams)){var f; this.W.setTrackingParams(this.dismissButton.element,((f=a.dismissButton)==null?void 0:f.trackingParams)||null)}}a.isContentForward&&(T=a.productsData,GlL(this,!0),A9j(this),T=CUN(this,T),X=[],T.length>0&&X.push(T[0]),T.length>1&&(f=new g.v({K:"div",U:"ytp-suggested-action-more-products-icon"}),g.x(this,f),X.push(f),X.push.apply(X,g.UO(T.slice(1)))),this.Z=new g.v({K:"div",V:X,U:"ytp-suggested-action-content-forward-container"}),g.x(this,this.Z),this.Cf.element.append(this.Z.element));this.text=g.yd(a.text); var A;if(T=(A=a.dismissButton)==null?void 0:A.a11yLabel)this.GQ=g.yd(T);this.onClickCommand=a.onClickCommand;this.timing=a.timing;this.Ji()}cbI(this);DJ(this);this.Mc()}}; g.E.d4=function(){return!this.D&&this.enabled&&!this.ym&&!this.W.tA()&&!this.T$&&(this.Y||this.TQ)}; g.E.sA=function(e){VK.prototype.sA.call(this,e);if(this.S||this.T)this.timing&&$z(this.timing.preview)&&(this.S=!1,Qt(this),this.T=!1,Qt(this),this.W.Ai("shopping_overlay_preview_collapsed"),this.W.Ai("shopping_overlay_preview_expanded"),e=W6(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),$z(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.W.Ai("shopping_overlay_expanded"),e.end=this.timing.expanded.endSec*1E3),this.W.Ji([e])), this.oH=!0,DJ(this);Qt(this)}; g.E.GG=function(e){(this.Y=e)?(Jm(this),DJ(this,!1)):(Et3(this),this.XM.start());this.Mc()}; g.E.Ji=function(e){var a=this.timing;e=(e===void 0?0:e)+this.W.getCurrentTime();var r=[],P=a.visible,B=a.preview;a=a.expanded;$z(P)&&(Tgz(P,e),r.push(W6(P.startSec,P.endSec,"shopping_overlay_visible")));$z(B)&&(Tgz(B,e),P=B.startSec+1,r.push(W6(B.startSec,P,"shopping_overlay_preview_collapsed")),r.push(W6(P,B.endSec,"shopping_overlay_preview_expanded")));$z(a)&&(Tgz(a,e),r.push(W6(a.startSec,a.endSec,"shopping_overlay_expanded")));this.W.Ji(r)}; g.E.Mc=function(){VK.prototype.Mc.call(this);this.W.getRootNode()&&g.cD(this.W.getRootNode(),"ytp-shopping-pill-shown",this.d4())};g.b(gt3,g.v); gt3.prototype.zQ=function(){var e=this.api.G();this.Nr(g.uP(e)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.oD);var a=this.api.getVideoData(),r=!1;this.api.getPresentingPlayerType()===2?r=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.HA&&!!a.profilePicture:g.uP(e)&&(r=!!a.videoId&&!!a.HA&&!!a.profilePicture&&!a.nB&&!e.B&&!(e.D&&this.api.getPlayerSize().width<200));var P=a.profilePicture;e=g.uP(e)?a.expandedTitle:a.author;P=P===void 0? "":P;e=e===void 0?"":e;r?(this.T!==P&&(this.S.style.backgroundImage="url("+P+")",this.T=P),this.updateValue("channelLogoLabel",g.PA("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:e})),g.rr(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.BD(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.S,r&&this.C);this.api.logVisibility(this.channelName,r&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=a.ix);this.updateValue("expandedTitle",a.expandedTitle)};g.b(lu,g.P8);lu.prototype.show=function(){g.P8.prototype.show.call(this);this.S.start()}; lu.prototype.hide=function(){g.P8.prototype.hide.call(this);this.S.stop()}; lu.prototype.zm=function(e,a){e==="dataloaded"&&((this.n5=a.n5,this.Ky=a.Ky,isNaN(this.n5)||isNaN(this.Ky))?this.B&&(this.W.Ai("intro"),this.W.removeEventListener(g.SS("intro"),this.D),this.W.removeEventListener(g.sh("intro"),this.Z),this.W.removeEventListener("onShowControls",this.L),this.hide(),this.B=!1):(this.W.addEventListener(g.SS("intro"),this.D),this.W.addEventListener(g.sh("intro"),this.Z),this.W.addEventListener("onShowControls",this.L),e=new g.v_(this.n5,this.Ky,{priority:9,namespace:"intro"}), this.W.Ji([e]),this.B=!0))};g.b(L1,g.v);L1.prototype.onClick=function(){this.W.bq()}; L1.prototype.zQ=function(){var e=!0;g.uP(this.W.G())&&(e=e&&this.W.MF().getPlayerSize().width>=480);this.Nr(e);e=this.updateValue;var a=this.W.X("delhi_modern_web_player_icons"),r=a?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!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"}}]};a=a?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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"}}]};e.call(this,"icon",this.W.W7()?r:a)};g.b(OxJ,g.v);OxJ.prototype.RH=function(){this.S=null;g.v.prototype.RH.call(this)};g.b(Yz,g.v);Yz.prototype.onClick=function(){this.W.qF("innertubeCommand",this.T)}; Yz.prototype.N=function(){if(this.W.X("delhi_modern_web_player")){var e=this.W.getPlayerSize();e.width&&(this.element.style.maxWidth=e.width*.25+"px")}}; Yz.prototype.oH=function(e){e!==this.D&&(this.update({chapterTitle:e,ariaLabel:e}),this.D=e);e?this.show():this.hide()}; Yz.prototype.HW=function(){this.S.disabled=this.T==null;g.cD(this.S,"ytp-chapter-container-disabled",this.S.disabled);this.j5()};g.b(wX,Yz);wX.prototype.onClickCommand=function(e){g.H(e,OT)&&this.j5()}; wX.prototype.updateVideoData=function(e,a){var r,P,B;e=g.H((r=a.getWatchNextResponse())==null?void 0:(P=r.playerOverlays)==null?void 0:(B=P.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,Mg);r=g.H(e==null?void 0:e.playerBarActionButton,g.nR);if(this.W.X("web_player_updated_entrypoint")){this.Y=Fl(r==null?void 0:r.text);var h;P=(h=r==null?void 0:r.tooltip)!=null?h:"View chapter";this.Z.setAttribute("title",P)}this.T=r==null?void 0:r.command;Yz.prototype.HW.call(this)}; wX.prototype.j5=function(){var e=this.Y,a=this.L.S,r,P=((r=this.W.getLoopRange())==null?void 0:r.type)==="clips";if(a.length>1&&!P){e=this.W.getProgressState().current*1E3;r=Gb(a,e);e=a[r].title||"Chapters";if(r!==this.currentIndex||this.B)this.W.qF("innertubeCommand",a[r].onActiveCommand),this.currentIndex=r;this.B=!1}else this.B=!0;Yz.prototype.oH.call(this,e)};g.b(p1,g.cs);p1.prototype.T=function(){var e;(e=this.element.parentElement)==null||e.classList.contains("ytp-right-controls-left");(this.S=!this.S)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; p1.prototype.isExpanded=function(){return this.S};g.b(iu,g.v);iu.prototype.B=function(e){g.S(e.state,32)?dLz(this,this.api.b$()):this.oD&&(g.S(e.state,16)||g.S(e.state,1))||this.fade.hide()}; iu.prototype.onProgress=function(){var e=this.api.getPlayerStateObject();(g.S(e,32)||g.S(e,16))&&J9J(this)}; iu.prototype.L=function(){this.frameIndex=NaN;J9J(this)}; iu.prototype.hide=function(){this.S&&dLz(this,null);g.v.prototype.hide.call(this)};g.b(DLJ,g.v);g.E=DLJ.prototype;g.E.onClick=function(){var e=this;if(this.W.G().HA||this.W.G().D){this.W.logClick(this.element);try{this.W.toggleFullscreen().catch(function(a){e.xU(a)})}catch(a){this.xU(a)}}else hQ(this.message,this.element,!0)}; g.E.xU=function(e){String(e).includes("fullscreen error")?g.VJ(e):g.D6(e);this.pm()}; g.E.pm=function(){this.disable();this.message.Yh(this.element,!0)}; g.E.XT=function(){AJ()===this.W.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.E.XV=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var e=window.screen.width*.9,a=window.screen.height*.9,r=Math.max(window.outerWidth,window.innerWidth),P=Math.max(window.outerHeight,window.innerHeight);if(r>P!==e>a){var B=r;r=P;P=B}e>r&&a>P&&this.pm()}}; g.E.disable=function(){var e=this;if(!this.message){var a=(Tn(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.P8(this.W,{K:"div",WW:["ytp-popup","ytp-generic-popup"],J:{role:"alert",tabindex:"0"},V:[a[0],{K:"a",J:{href:"https://support.google.com/youtube/answer/6276924", target:this.W.G().N},S1:a[2]},a[4]]},100,!0);this.message.hide();g.x(this,this.message);this.message.subscribe("show",function(r){e.T.rz(e.message,r)}); g.MY(this.W,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.S)();this.S=null}}; g.E.zQ=function(){var e=Rhy(this.W),a=this.W.G().D&&this.W.getPlayerSize().width<250;this.Nr(e&&!a);var r;((r=this.W.G())==null?0:r.X("embeds_use_parent_visibility_in_ve_logging"))?this.W.logVisibility(this.element,this.oD&&this.C):this.W.logVisibility(this.element,this.oD)}; g.E.kp=function(e){if(e){var a=g.Ik(this.W,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.W.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(r){g.VJ(r)})}else a=g.Ik(this.W,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); e=VJj(this,e);a=this.message?null:a;this.W.G().X("player_tooltip_data_title_killswitch")?this.update({title:a,icon:e}):this.update({"tooltip-title":a,"aria-label":a,icon:e});this.T.yH().gE()}; g.E.RH=function(){this.message||((0,this.S)(),this.S=null);g.v.prototype.RH.call(this)}; g.E.Yy=function(e){g.v.prototype.Yy.call(this,e);var a;((a=this.W.G())==null?0:a.X("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.oD&&e)};g.b(zb,g.v);zb.prototype.onClick=function(){this.W.logClick(this.element);this.W.seekBy(this.S,!0);var e=this.S>0?1:-1,a=Math.abs(this.S),r=this.W.ZW().Li;r&&r.Xx(e,a);this.T.isActive()?this.B=!0:(e=["ytp-jump-spin"],this.S<0&&e.push("backwards"),this.element.classList.add.apply(this.element.classList,g.UO(e)),g.sC(this.T))};g.b(Nw,Yz);Nw.prototype.onClickCommand=function(e){g.H(e,jD9)&&this.j5()}; Nw.prototype.updateVideoData=function(){var e,a;this.T=(e=QLz(this))==null?void 0:(a=e.onTap)==null?void 0:a.innertubeCommand;Yz.prototype.HW.call(this)}; Nw.prototype.j5=function(){var e="",a=this.L.D,r,P=(r=QLz(this))==null?void 0:r.headerTitle;r=P?g.yd(P):"";var B;P=((B=this.W.getLoopRange())==null?void 0:B.type)==="clips";a.length>1&&!P&&(e=this.W.getProgressState().current*1E3,B=WFj(a,e),e=B!=null?a[B].title:r,B!=null&&B!==this.currentIndex&&(this.W.qF("innertubeCommand",a[B].onActiveCommand),this.currentIndex=B));Yz.prototype.oH.call(this,e)};g.b(xz,g.v);xz.prototype.onClick=function(){this.W.qF("onCollapseMiniplayer");this.W.logClick(this.element)}; xz.prototype.zQ=function(){this.visible=!this.W.isFullscreen();this.Nr(this.visible);this.W.logVisibility(this.element,this.visible&&this.C)}; xz.prototype.Yy=function(e){g.v.prototype.Yy.call(this,e);this.W.logVisibility(this.element,this.visible&&e)};g.b(IW,g.v);IW.prototype.init=function(){this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.Z);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.S);lzJ(this,this.S)}; IW.prototype.B=function(){H6(this,Number(this.T.value));this.T.focus()}; IW.prototype.D=function(e){if(!e.defaultPrevented){switch(e.code){case "ArrowDown":e=-this.Y;break;case "ArrowUp":e=this.Y;break;default:return}H6(this,Math.min(this.Z,Math.max(Number((this.S+e).toFixed(2)),this.L)))}};g.b(qw,IW);qw.prototype.onVolumeChange=function(e){if(this.N)this.N=!1;else{var a=e.volume;a===0||e.muted?H6(this,0):H6(this,a)}}; qw.prototype.B=function(){IW.prototype.B.call(this);this.HW(this.S)}; qw.prototype.oH=function(e){var a=-e.deltaY;a=e.deltaMode===WheelEvent.DOM_DELTA_LINE||e.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ID(this.S+a,0,100):g.ID(this.S+g.ID(a/10,-10,10),0,100);a===0?H6(this,0):H6(this,a);this.HW(a);e.preventDefault();e.stopPropagation()}; qw.prototype.TQ=function(e,a){this.N=!0;e===0||a?this.W.mute():(this.W.isMuted()&&this.W.unMute(),this.W.setVolume(e))};g.b(LCO,g.v);g.b(RW,g.v);g.E=RW.prototype;g.E.x_=function(){if(!this.W.zy()){this.updateValue("dataTooltipOffsetY",-120);var e;(e=this.S)!=null&&v6(e,!0);var a;(a=this.S)!=null&&a.S.stop()}}; g.E.OE=function(){var e;(e=this.S)!=null&&e.S.start()}; g.E.P2=function(e){this.visible=e.width>=300||this.e1;this.Nr(this.visible);this.W.logVisibility(this.element,this.visible&&this.C)}; g.E.W5=function(){this.W.G().Cf?this.W.isMuted()?this.W.unMute():this.W.mute():hQ(this.message,this.element,!0);this.W.logClick(this.element)}; g.E.eTM=function(e){if(this.W.G().Cf&&this.S)if(e.target===this.B){var a;if(!this.W.zy()||((a=this.S)==null?0:a.isVisible))this.W5();else{var r;(r=this.S)!=null&&v6(r,!0)}}else{var P;(P=this.S)!=null&&v6(P,!0)}else this.W5()}; g.E.onVolumeChange=function(e){this.setVolume(e.volume,e.muted)}; g.E.setVolume=function(e,a){var r=this,P=a?0:e/100;e=P===0?1:e>50?1:0;if(this.N!==e){var B=this.Y;isNaN(B)?zjl(this,e):vwy(this.Cf,function(c){zjl(r,B+(r.N-B)*c)},250); this.N=e}P=P===0?1:0;if(this.D!==P){var h=this.TQ;isNaN(h)?NgO(this,P):vwy(this.Eo,function(c){NgO(r,h+(r.D-h)*c)},250); this.D=P}wly(this,a)}; g.E.Yy=function(e){g.v.prototype.Yy.call(this,e);this.W.logVisibility(this.element,this.visible&&e)}; var plj=["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"],ix4=["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.b(g.So,g.v);g.E=g.So.prototype;g.E.onStateChange=function(e){this.dg(e.state);var a;((a=this.W.G())==null?0:a.X("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.oD&&this.C)}; g.E.dg=function(e){var a=g.FL(this.W.getVideoData()),r=!1;e.isOrWillBePlaying()?e=a?4:2:g.S(e,2)?(e=3,r=a):e=1;this.element.disabled=r;if(this.S!==e){a=null;switch(e){case 2:a=g.Ik(this.W,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:a="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:a=g.Ik(this.W,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:a="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}e=== 3?this.W.G().X("player_tooltip_data_title_killswitch")?this.update({title:a,icon:xLL(this,e)}):this.update({"tooltip-title":a,icon:xLL(this,e)}):(this.W.X("player_tooltip_data_title_killswitch")?this.update({title:a}):this.update({"tooltip-title":a}),(a=xLL(this,e))&&this.S&&this.S!==3?S8j(this.transition,this.element,a):this.updateValue("icon",a));this.tooltip.gE();this.S=e}}; g.E.onVideoDataChange=function(){g.cD(this.element,"ytp-play-button-playlist",g.Sn(this.W))}; g.E.zg=function(e){this.W.logClick(this.element);if(this.W.getPlayerStateObject().isOrWillBePlaying())this.W.pauseVideo();else{if(this.W.isMinimized()&&this.W.getPlayerStateObject().isCued()){var a={},r;if((r=this.W.getVideoData())==null?0:r.Z)a.cttAuthInfo={token:this.W.getVideoData().Z,videoId:this.W.getVideoData().videoId};Dp("direct_playback",a);this.W.SM().timerName="direct_playback"}this.W.playVideo()}this.W.isMinimized()&&(e==null?void 0:e.type)==="click"&&this.element.blur()}; g.E.Yy=function(e){g.v.prototype.Yy.call(this,e);var a;((a=this.W.G())==null?0:a.X("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.oD&&e)};g.b(g.sU,g.v);g.E=g.sU.prototype;g.E.onVideoDataChange=function(){qz4(this);this.L&&(this.Xo(this.L),this.L=null);this.videoData=this.W.getVideoData(1);if(this.playlist=this.W.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.L=this.j(this.W,"progresssync",this.Rb);this.B=vtT(this);Hx4(this);this.zN(this.W.MF().getPlayerSize())}; g.E.zN=function(e){e=e===void 0?this.W.MF().getPlayerSize():e;var a,r=((a=this.W.getLoopRange())==null?void 0:a.type)==="clips";e=(g.Sn(this.W)||this.S&&g.jn(this.W)&&!this.W.X("web_hide_next_button")||RjL(this))&&!r&&(this.S||e.width>=400);this.Nr(e);this.W.logVisibility(this.element,e)}; g.E.onClick=function(e){this.W.logClick(this.element);var a=!0;this.D?a=g.ke(e,this.W):e.preventDefault();a&&(this.S&&this.W.getPresentingPlayerType()===5?this.W.publish("ytoprerollinternstitialnext"):this.S?(kp(this.W.SM()),this.W.publish("playlistnextbuttonclicked",this.element),this.W.nextVideo(!0)):this.B?this.W.seekTo(0):(kp(this.W.SM()),this.W.publish("playlistprevbuttonclicked",this.element),this.W.previousVideo(!0)))}; g.E.Rb=function(){var e=vtT(this);e!==this.B&&(this.B=e,Hx4(this))}; g.E.RH=function(){this.T&&(this.T(),this.T=null);qz4(this);g.v.prototype.RH.call(this)};g.b(sLJ,g.v);g.E=sLJ.prototype;g.E.Ts=function(e){this.cK(e.pageX);this.fZ(e.pageX+e.deltaX);mLN(this)}; g.E.cK=function(e){this.HW=e-this.e1}; g.E.fZ=function(e){e-=this.e1;!isNaN(this.HW)&&this.thumbnails.length>0&&(this.N=e-this.HW,this.thumbnails.length>0&&this.N!==0&&(this.B=this.Y+this.N,e=KCl(this,this.B),this.B<=this.S/2&&this.B>=uyj(this)?(this.api.seekTo(e,!1,void 0,void 0,25),g.vo(this.TQ,"transform","translateX("+(this.B-this.S/2)+"px)"),Szy(this,e)):this.B=this.Y))}; g.E.bM=function(){this.oH&&(this.oH.S8=!0);var e=(0,g.Ov)()-this.Uo<300;if(Math.abs(this.N)<5&&!e){this.Uo=(0,g.Ov)();e=this.HW+this.N;var a=this.S/2-e;this.cK(e);this.fZ(e+a);mLN(this);this.api.logClick(this.Z)}mLN(this)}; g.E.Bz=function(){mI(this,this.api.getCurrentTime())}; g.E.play=function(e){this.api.seekTo(KCl(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();e&&this.api.logClick(this.playButton)}; g.E.onExit=function(e){this.api.seekTo(this.XM,void 0,void 0,void 0,63);this.api.playVideo();e&&this.api.logClick(this.dismissButton)}; g.E.VX=function(e,a){this.e1=e;this.S=a;mI(this,this.api.getCurrentTime())}; g.E.enable=function(){this.isEnabled||(this.isEnabled=!0,this.XM=this.api.getCurrentTime(),Szy(this,this.XM),g.cD(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Cf=this.j(this.element,"wheel",this.Ts),this.logVisibility(this.isEnabled))}; g.E.disable=function(){this.isEnabled=!1;this.hide();g.cD(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Cf&&this.Xo(this.Cf);this.logVisibility(this.isEnabled)}; g.E.reset=function(){this.disable();this.L=[];this.Lf=!1}; g.E.logVisibility=function(e){this.api.logVisibility(this.element,e);this.api.logVisibility(this.Z,e);this.api.logVisibility(this.dismissButton,e);this.api.logVisibility(this.playButton,e)}; g.E.RH=function(){for(;this.T.length;){var e=void 0;(e=this.T.pop())==null||e.dispose()}g.v.prototype.RH.call(this)}; g.b(FCj,g.v);g.b(MJj,g.v);g.b(euN,g.v);g.b(Fx,g.v);Fx.prototype.EM=function(e){return e==="PLAY_PROGRESS"?this.Y:e==="LOAD_PROGRESS"?this.D:e==="LIVE_BUFFER"?this.Z:this.B};P1q.prototype.update=function(e,a,r,P){r=r===void 0?0:r;this.width=a;this.L=r;this.S=a-r-(P===void 0?0:P);this.position=g.ID(e,r,r+this.S);this.B=this.position-r;this.T=this.B/this.S};g.b(B$q,g.v);g.b(g.uu,g.cs);g.E=g.uu.prototype; g.E.ow=function(){var e=!1,a=this.api.getVideoData();if(!a)return e;this.api.Ai("timedMarkerCueRange");o5O(this);for(var r=g.Z(a.PW),P=r.next();!P.done;P=r.next()){P=P.value;var B=void 0,h=(B=this.GQ[P])==null?void 0:B.markerType,c=void 0;B=(c=this.GQ[P])==null?void 0:c.markers;if(!B)break;if(h==="MARKER_TYPE_TIMESTAMPS"){e=g.Z(B);for(h=e.next();!h.done;h=e.next()){c=h.value;h=new B$q;var y=void 0;h.title=((y=c.title)==null?void 0:y.simpleText)||"";h.timeRangeStartMillis=Number(c.startMillis);h.S= Number(c.durationMillis);var T=y=void 0;h.onActiveCommand=(T=(y=c.onActive)==null?void 0:y.innertubeCommand)!=null?T:void 0;AyI(this,h)}Umq(this,this.D);e=this.D;h=this.A1;c=[];y=null;for(T=0;TX&&(y.end=X);X=YQ3(X,X+A);c.push(X);y=X;h[X.id]=e[T].onActiveCommand}}this.api.Ji(c);a:{e=g.Z(B);for(B=e.next();!B.done;B=e.next())if(B.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){e= !1;break a}e=!0}e&&(this.Tu=this.GQ[P]);e=!0}else if(h==="MARKER_TYPE_HEATMAP"){P=this.GQ[P];f=X=h=T=y=c=void 0;if(P&&P.markers){B=(h=(f=P.markersMetadata)==null?void 0:(X=f.heatmapMetadata)==null?void 0:X.minHeightDp)!=null?h:0;h=(c=(T=P.markersMetadata)==null?void 0:(y=T.heatmapMetadata)==null?void 0:y.maxHeightDp)!=null?c:60;c=this.S.length;y=null;for(T=0;T=f&&G<=A&&X.push(C)}h>0&&(this.oH.style.height=h+"px");f=this.L[T];A=X;C=B;var O=h,d=T===0;d=d===void 0?!1:d;a2N(f,O);U=A;G=f.T;d=d===void 0?!1:d;var W=1E3/U.length,V=[];V.push({x:0,y:100});for(var L=0;L0&&(y=X[X.length-1])}g.K1(this)}h=void 0;B=[];if(P=(h=P.markersDecoration)==null?void 0:h.timedMarkerDecorations)for(P=g.Z(P),h=P.next();!h.done;h=P.next())h=h.value,T=y=c=void 0,B.push({visibleTimeRangeStartMillis:(c=h.visibleTimeRangeStartMillis)!= null?c:-1,visibleTimeRangeEndMillis:(y=h.visibleTimeRangeEndMillis)!=null?y:-1,decorationTimeMillis:(T=h.decorationTimeMillis)!=null?T:NaN,label:h.label?g.yd(h.label):""});P=B;this.heatMarkersDecorations=P}}a.gF=this.D;g.cD(this.element,"ytp-timed-markers-enabled",e);return e}; g.E.VX=function(){g.K1(this);rz(this);Umq(this,this.D);if(this.T){var e=g.KO(this.element).x||0;this.T.VX(e,this.Z)}}; g.E.t5F=function(){var e=this.api.getVideoData();e&&Jyj(this,e)}; g.E.onClickCommand=function(e){if(e=g.H(e,OT)){var a=e.key;e.isVisible&&a&&bqL(this,a)}}; g.E.gfW=function(e){this.api.qF("innertubeCommand",this.A1[e.id])}; g.E.j5=function(){rz(this);var e=this.api.getCurrentTime();(ethis.clipEnd)&&this.hM()}; g.E.gU=function(e){if(!e.defaultPrevented){var a=!1;switch(e.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);a=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);a=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);a=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);a=!0;break;case 38:this.api.X("enable_key_press_seek_logging")&&yl(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);a=!0;break;case 40:this.api.X("enable_key_press_seek_logging")&&yl(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),a=!0}a&&e.preventDefault()}}; g.E.zm=function(e,a){this.updateVideoData(a,e==="newdata")}; g.E.P$=function(){this.zm("newdata",this.api.getVideoData())}; g.E.updateVideoData=function(e,a){a=a===void 0?!1:a;var r=!!e&&e.Fw();r&&(EL(e)||k_z(this)?this.BV=!1:this.BV=e.allowLiveDvr,g.cD(this.api.getRootNode(),"ytp-enable-live-buffer",!(e==null||!EL(e))),Jyj(this,e));xmN(this,this.api.uQ());if(a){if(r){a=e.clipEnd;this.clipStart=e.clipStart;this.clipEnd=a;T9(this);for(cF(this,this.HW,this.bv);this.L.length>0;)this.L.pop().dispose();this.heatMarkersDecorations=[];this.ID={};var P;(P=this.T)==null||P.reset();Ci(this);g.cD(this.api.getRootNode(),"ytp-fine-scrubbing-exp", jo(this))}else this.hM();this.Be()}if(e){var B;P=((B=this.ZD)==null?void 0:B.type)==="clips";if(B=!e.isLivePlayback){B=this.api.getVideoData();a=g.jP(B);r=yyq(B);var h;B=a!=null||r!=null&&r.length>0||((h=B.mK)==null?void 0:h.length)>0}if(B&&!P){h=this.api.getVideoData();P=g.jP(h);B=!1;if(P==null?0:P.markersMap){B=this.api.getVideoData();var c;B.l7=((c=P.visibleOnLoad)==null?void 0:c.key)||B.l7;c=g.Z(P.markersMap);for(P=c.next();!P.done;P=c.next())P=P.value,P.key&&P.value&&(this.ID[P.key]=P.value, P.value.onChapterRepeat&&(B.IYz=P.value.onChapterRepeat));B.l7!=null&&bqL(this,B.l7);B=!0}var y;if(((y=h.mK)==null?void 0:y.length)>0){y=g.k0.getState().entities;c=g.Z(h.mK);for(P=c.next();!P.done;P=c.next()){P=P.value;r=void 0;a=(r=MQ(y,"macroMarkersListEntity",P))==null?void 0:r.markersList;var T=r=void 0;if(((r=a)==null?void 0:r.markerType)==="MARKER_TYPE_TIMESTAMPS"||((T=a)==null?void 0:T.markerType)==="MARKER_TYPE_HEATMAP")this.GQ[P]=a}B=this.ow()||B}!B&&(y=yyq(h))&&(XY4(this,y),h.Tu=this.S, T$J(this));DmT(this,null);e.Xa&&this.L.length===0&&(e=e.Xa,y=e.key,e.isVisible&&y&&bqL(this,y))}else huO(this),o5O(this)}rz(this)}; g.E.dH=function(e){this.Y&&!g.S(e.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var a;((a=this.T)==null?0:a.isEnabled)&&g.S(e.state,8)&&this.api.pauseVideo();e=this.api.getPresentingPlayerType()===2||!this.api.uQ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.cD(this.sx,"ytp-hide-scrubber-button",e)}; g.E.Y_=function(e){var a=!!this.ZD!==!!e,r=this.ZD;this.ZD=e;DmT(this,r);(e==null?void 0:e.type)!=="clips"&&e||(e?(this.updateValue("clipstarticon",gfI()),this.updateValue("clipendicon",gfI()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",f1j()),this.updateValue("clipendicon",Xhj()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),a&&(this.updateVideoData(this.api.getVideoData(), !0),g.K1(this)),T9(this));cF(this,this.HW,this.bv)}; g.E.Ehd=function(){this.api.publish("progressBarHoverStart")}; g.E.a5P=function(e,a,r){var P=g.KO(this.element),B=aA(this).S,h=r?r.getAttribute("data-tooltip"):void 0,c=r?r.getAttribute("data-position"):void 0,y=r?r.getAttribute("data-offset-y"):void 0;y=y?Number(y):0;c&&(e=QW(this.B,Number(r.getAttribute("data-position")),0)*B+g.KO(this.progressBar).x);this.HA.x=e-P.x;this.HA.y=a-P.y;e=aA(this);r=ni(this,e);a=0;var T;if((T=this.api.getVideoData())==null?0:EL(T))(T=this.api.getProgressState().seekableEnd)&&r>T&&(r=T,e.position=QW(this.B,T)*aA(this).S),a=this.B.T; k_z(this)&&(a=this.B.T);T=h||g.tx(this.BV?r-this.B.S:r-a);a=e.position+this.gT;r-=this.api.t9();var X;if((X=this.T)==null||!X.isEnabled)if(this.api.b$()){if(this.S.length>1){X=oA(this,this.HA.x,!0);if(!this.ZD)for(P=0;P1)for(P=0;P0)for(X=this.HA.x,P=g.Z(this.D),B=P.next();!B.done;B=P.next())B=B.value,c=eZ(this,B.timeRangeStartMillis/ (this.B.S*1E3),aA(this)),g.cD(B.element,"ytp-timed-marker-hover",c<=X&&c+6>=X);P=this.tooltip.scale;X=this.api.X("delhi_modern_web_player")?67:45;y=(isNaN(y)?0:y)-X*P;this.api.X("web_key_moments_markers")?this.Tu?(X=WFj(this.D,r*1E3),X=X!=null?this.D[X].title:""):(X=Gb(this.S,r*1E3),X=this.S[X].title):(X=Gb(this.S,r*1E3),X=this.S[X].title);X||(y+=16*P);this.tooltip.scale===.6&&(g.tZ(this.api.G())?(y=this.api.MF().getPlayerSize().height-225,P=this.api.X("delhi_modern_web_player")?70:110,y=X?y+P:y+ P+16):y=X?110:126);P=Gb(this.S,r*1E3);this.Lf=$ml(this,r,P)?P:$ml(this,r,P+1)?P+1:-1;g.cD(this.api.getRootNode(),"ytp-progress-bar-snap",this.Lf!==-1&&this.S.length>1);P=!1;B=g.Z(this.heatMarkersDecorations);for(c=B.next();!c.done;c=B.next()){c=c.value;var f=r*1E3;f>=c.visibleTimeRangeStartMillis&&f<=c.visibleTimeRangeEndMillis&&(X=c.label,T=g.tx(c.decorationTimeMillis/1E3),this.api.X("web_heat_marker_use_current_time")&&(T=g.tx(ni(this,e))),P=!0)}this.Ky!==P&&(this.Ky=P,this.api.logVisibility(this.py, this.Ky));g.cD(this.api.getRootNode(),"ytp-progress-bar-decoration",P);P=160*this.tooltip.scale*2;B=X.length*(this.N?8.55:5.7);B=B<=P?B:P;c=B<160*this.tooltip.scale;P=3;!c&&B/2>e.position&&(P=1);!c&&B/2>this.Z-e.position&&(P=2);this.api.G().D&&(y-=10);this.L.length&&this.L[0].Fw&&(y-=14*(this.N?2:1),this.XM||(this.XM=!0,this.api.logVisibility(this.oH,this.XM)));var A;if(jo(this)&&(((A=this.T)==null?0:A.isEnabled)||this.PW>0)){var U;y-=((U=this.T)==null?0:U.isEnabled)?fi(this):this.PW}A=void 0;jo(this)&& !this.api.X("web_player_hide_fine_scrubbing_edu")&&(A="Pull up for precise seeking",this.e1||(this.e1=!0,this.api.logVisibility(this.Yf,this.e1)));this.tooltip.IJ(a,r,T,!!h,y,X,P,A)}else this.tooltip.IJ(a,r,T,!!h,y);g.rr(this.api.getRootNode(),"ytp-progress-bar-hover");Oqq(this)}; g.E.K21=function(){this.Be();g.BD(this.api.getRootNode(),"ytp-progress-bar-hover");this.XM&&(this.XM=!1,this.api.logVisibility(this.oH,this.XM));this.e1&&(this.e1=!1,this.api.logVisibility(this.Yf,this.e1));this.api.X("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.E.I5$=function(e,a){var r=g.KO(this.element);this.AC=e-r.x;jo(this)&&this.T&&(this.T.Lf?mI(this.T,this.api.getCurrentTime()):jL3(this.T),this.T.show(),g.cD(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.T.isEnabled));this.FI&&(this.FI.dispose(),this.FI=null);this.L5=a;this.h1=this.api.getCurrentTime();this.S.length>1&&this.Lf!==-1?this.api.seekTo(this.S[this.Lf].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ni(this,aA(this)),!1,void 0,void 0,7);g.rr(this.element,"ytp-drag");(this.ZZ= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.E.W2o=function(){if(jo(this)&&this.T){var e=fi(this);this.PW>=e*.5?(this.T.enable(),mI(this.T,this.api.getCurrentTime()),N$O(this,e)):Ci(this)}if(g.S(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var a;if((a=this.T)==null?0:a.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.S.length>1&&this.Lf!==-1)this.api.X("html5_enable_progress_bar_slide_seek_logging")&&yl(this,this.h1,this.S[this.Lf].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.S[this.Lf].startTime/1E3,void 0,void 0,void 0,7);else{e=ni(this,aA(this));this.api.X("html5_enable_progress_bar_slide_seek_logging")&&yl(this,this.h1,e,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(e,void 0,void 0,void 0,7);a=g.Z(this.heatMarkersDecorations);for(var r=a.next();!r.done;r=a.next())r=r.value,e*1E3>=r.visibleTimeRangeStartMillis&&e*1E3<=r.visibleTimeRangeEndMillis&& this.api.logClick(this.py)}g.BD(this.element,"ytp-drag");this.Eo&&(this.TQ.src=this.Eo);this.ZZ&&!g.S(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.E.eu$=function(e,a){var r=this,P=aA(this),B=ni(this,P);this.api.MF().SV||(P.position>this.AC+2?this.Te&&(this.TQ.src=this.Te):P.position1);this.Nr(e&&this.W.MF().getPlayerSize().width>=400);this.W.logVisibility(this.element,this.oD);var a=1;e&&this.isActive()&&(a=2);if(this.S!==a){this.S=a;e=this.W.X("delhi_modern_web_player_icons");switch(a){case 1:this.updateValue("icon",e?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Rz:!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", e?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",J:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.yJj())}g.cD(this.element,"ytp-remote-button-active",this.isActive())}}; G9.prototype.T=function(){if(this.W.getOption("remote","quickCast"))this.W.setOption("remote","quickCast",!0);else{var e=this.OM,a=this.element;if(e.DP())e.XN();else{e.initialize();a:{var r=g.Z(e.TG.items);for(var P=r.next();!P.done;P=r.next())if(P=P.value,P.priority===1){r=P;break a}r=null}r&&(r.open(),e.Yh(a));e.Yh(a)}}this.W.logClick(this.element)};g.b(E8,g.v);E8.prototype.S=function(e){var a=this.W.G(),r=400;this.W.X("web_player_small_hbp_settings_menu")&&a.Z?r=300:a.D&&(r=200);e=this.T&&e.width>=r;this.Nr(e);this.W.X("embeds_use_parent_visibility_in_ve_logging")?this.W.logVisibility(this.element,e&&this.C):this.W.logVisibility(this.element,e)}; E8.prototype.B=function(){if(this.OM.oD)this.OM.XN();else{var e=g.Yp(this.W.eO());e&&!e.loaded&&(e.i$("tracklist",{includeAsr:!0}).length||e.load());this.W.logClick(this.element);this.OM.Yh(this.element)}}; E8.prototype.updateBadge=function(){var e=this.W.isHdr(),a=this.W.getPresentingPlayerType(),r=a!==2&&a!==3,P=g.FI(this.W),B=r&&!!g.mu(this.W.eO());a=B&&P.displayMode===1;P=B&&P.displayMode===2;r=(B=a||P)||!r?null:this.W.getPlaybackQuality();g.cD(this.element,"ytp-hdr-quality-badge",e);g.cD(this.element,"ytp-hd-quality-badge",!e&&(r==="hd1080"||r==="hd1440"));g.cD(this.element,"ytp-4k-quality-badge",!e&&r==="hd2160");g.cD(this.element,"ytp-5k-quality-badge",!e&&r==="hd2880");g.cD(this.element,"ytp-8k-quality-badge", !e&&r==="highres");g.cD(this.element,"ytp-3d-badge-grey",!e&&B&&a);g.cD(this.element,"ytp-3d-badge",!e&&B&&P)};g.b(bc,Zk);bc.prototype.isLoaded=function(){var e=g.xp(this.W.eO());return e!==void 0&&e.loaded}; bc.prototype.zQ=function(){g.xp(this.W.eO())!==void 0&&this.W.getPresentingPlayerType()!==3?this.S||(this.OM.D5(this),this.S=!0):this.S&&(this.OM.JA(this),this.S=!1);ON(this,this.isLoaded())}; bc.prototype.onSelect=function(e){this.isLoaded();e?this.W.loadModule("annotations_module"):this.W.unloadModule("annotations_module");this.W.publish("annotationvisibility",e)}; bc.prototype.RH=function(){this.S&&this.OM.JA(this);Zk.prototype.RH.call(this)};g.b(tb,g.x7);tb.prototype.zQ=function(){var e=this.W.getAvailableAudioTracks();e.length>1?(this.Is(g.ba(e,this.S)),this.tracks=g.MM(e,this.S,this),this.countLabel.vO(e.length?" ("+e.length+")":""),this.publish("size-change"),this.Nq(this.S(this.W.getAudioTrack())),this.enable(!0)):this.enable(!1)}; tb.prototype.bQ=function(e){g.x7.prototype.bQ.call(this,e);this.W.setAudioTrack(this.tracks[e]);this.OM.Ho()}; tb.prototype.S=function(e){return e.toString()};g.b(gz,Zk); gz.prototype.T=function(){var e=this.W.getPresentingPlayerType();if(e!==2&&e!==3&&g.jn(this.W))this.S||(this.OM.D5(this),this.S=!0,this.B.push(this.j(this.W,"videodatachange",this.T)),this.B.push(this.j(this.W,"videoplayerreset",this.T)),this.B.push(this.j(this.W,"onPlaylistUpdate",this.T)),this.B.push(this.j(this.W,"autonavchange",this.L)),e=this.W.getVideoData(),this.L(e.autonavState),this.W.logVisibility(this.element,this.S));else if(this.S){this.OM.JA(this);this.S=!1;e=g.Z(this.B);for(var a=e.next();!a.done;a= e.next())this.Xo(a.value)}}; gz.prototype.L=function(e){ON(this,e!==1)}; gz.prototype.onSelect=function(e){this.W.AM(e?2:1);this.S&&(this.W.logVisibility(this.element,this.S),this.W.logClick(this.element))}; gz.prototype.RH=function(){this.S&&this.OM.JA(this);Zk.prototype.RH.call(this)};g.b(Hq4,g.nw);Hq4.prototype.onClick=function(e){e.preventDefault();var a,r;(a=g.lL(this.W))==null||(r=a.Ch())==null||r.XN();var P,B;(P=g.lL(this.W))==null||(B=P.Bv())==null||B.Yh(e.target)};g.b(q_N,g.x7);g.E=q_N.prototype; g.E.P1=function(){var e=this.W.getPresentingPlayerType();if(e!==2&&e!==3){this.TQ=this.W.jQ();var a=this.W.getAvailableQualityLevels();if(this.S){this.L={};e=g.Da(this.W,"getAvailableQualityData",[]);e=g.Z(e);for(var r=e.next();!r.done;r=e.next())r=r.value,this.L[r.qualityLabel]=r;e=Object.keys(this.L);a[a.length-1]==="auto"&&e.push("auto");this.Eo=new Set(a)}else if(this.Z){r=g.Da(this.W,"getAvailableQualityData",[]);e=[];r=g.Z(r);for(var P=r.next();!P.done;P=r.next())P=P.value,this.Y[P.quality]= P,P.quality&&e.push(P.quality);a[a.length-1]==="auto"&&e.push("auto")}else e=a;g.QjI(this.W)&&this.W.D1()&&e.unshift("missing-qualities");a=this.W.app.Y$();r=a.getVideoData();if(!r.T||!r.T.video||r.T.video.qualityOrdinal<1080||r.y_)a=!1;else{P=/^qsa/.test(r.clientPlaybackNonce);var B="r";r.T.id.indexOf(";")>=0&&(P=/^[a-p]/.test(r.clientPlaybackNonce),B="x");P?(a.nf("iqss",{trigger:B},!0),a=!0):a=!1}a&&e.unshift("inline-survey");this.Is(e);a=this.W.getVideoData().cotn?!0:!1;r=this.oH.ZY();r=!g.tZ(this.W.G())|| !(a===void 0?0:a)||!(r===void 0||r);a=this.T;r=r===void 0?!1:r;a.HR&&g.cD(a.BW("ytp-panel-footer"),"ytp-panel-hide-footer",r===void 0?!1:r);if(e.length){this.JW();this.enable(!0);return}}this.enable(!1)}; g.E.JW=function(){if(this.S){var e=this.W.getPreferredQuality();this.Eo.has(e)&&(this.D=this.W.getPlaybackQuality(),this.HW=this.W.getPlaybackQualityLabel(),e==="auto"?(this.Nq(e),this.vO(this.Sv(e))):this.Nq(this.HW))}else e=this.W.getPreferredQuality(),this.options[e]&&(this.D=this.W.getPlaybackQuality(),this.Nq(e),e==="auto"&&this.vO(this.Sv(e)))}; g.E.bQ=function(e){if(e!=="missing-qualities"){g.x7.prototype.bQ.call(this,e);var a=this.S?this.L[e]:this.Y[e];var r=a==null?void 0:a.quality,P=a==null?void 0:a.formatId,B=a==null?void 0:a.paygatedQualityDetails;a=B==null?void 0:B.endpoint;if(B){var h;B=(h=this.options[e])==null?void 0:h.element;this.W.logClick(B)}if(this.S){var c,y;if((c=g.H(a,g.RGa))==null?0:(y=c.popup)==null?0:y.notificationActionRenderer)this.W.qF("innertubeCommand",a);else if(a){this.W.qF("innertubeCommand",a);return}P?this.W.setPlaybackQuality(r, P):this.W.setPlaybackQuality(r)}else{if(this.Z){var T,X;if((T=g.H(a,g.RGa))==null?0:(X=T.popup)==null?0:X.notificationActionRenderer)this.W.qF("innertubeCommand",a);else if(a){this.W.qF("innertubeCommand",a);return}}this.W.setPlaybackQuality(e)}this.OM.XN();this.P1()}}; g.E.open=function(){for(var e=g.Z(Object.values(this.options)),a=e.next();!a.done;a=e.next()){a=a.value;var r=void 0;this.W.hasVe((r=a)==null?void 0:r.element)&&(r=void 0,this.W.logVisibility((r=a)==null?void 0:r.element,!0))}g.x7.prototype.open.call(this);this.W.logClick(this.element)}; g.E.iO=function(e,a,r){var P=this;if(e==="missing-qualities")return new g.nw({K:"a",WW:["ytp-menuitem"],J:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.W.G().N,tabindex:"0",role:"menuitemradio"},V:[{K:"div",WW:["ytp-menuitem-label"],S1:"{{label}}"}]},a,this.Sv(e));if(e!=="inline-survey"){var B,h=(B=this.S?this.L[e]:this.Y[e])==null?void 0:B.paygatedQualityDetails;B=h==null?void 0:h.veType;h=h==null?void 0:h.trackingParams;a=g.x7.prototype.iO.call(this,e,a,r);h?(this.W.createServerVe(a.element, this,!0),this.W.setTrackingParams(a.element,h)):B&&this.W.createClientVe(a.element,this,B,!0);return a}e=[{K:"span",S1:"Look good?"}];r=g.Z([!0,!1]);h=r.next();for(B={};!h.done;B={t5:void 0},h=r.next())B.t5=h.value,h=new g.v({K:"span",U:"ytp-menuitem-inline-survey-response",V:[B.t5?t$J():UlT()],J:{tabindex:"0",role:"button"}}),h.listen("click",function(c){return function(){var y=P.W.app.Y$();y.nf("iqsr",{tu:c.t5});y.getVideoData().y_=!0;P.OM.XN();P.P1()}}(B)),e.push(h); return new g.nw({K:"div",U:"ytp-menuitem",J:{"aria-disabled":"true"},V:[{K:"div",WW:["ytp-menuitem-label"],V:e}]},a)}; g.E.Sv=function(e,a){a=a===void 0?!1:a;if(e==="missing-qualities")return{K:"div",S1:"Missing options?"};if(e==="inline-survey")return"";var r=this.Z||this.S?[S_I(this,e,a,!1)]:[RuL(this,e)];var P=this.W.getPreferredQuality();a||P!=="auto"||e!=="auto"||(r.push(" "),this.S?r.push(S_I(this,this.HW,a,!0,["ytp-menu-label-secondary"])):this.Z?r.push(S_I(this,this.D,a,!0,["ytp-menu-label-secondary"])):r.push(RuL(this,this.D,["ytp-menu-label-secondary"])));return{K:"div",V:r}};g.b(Zi,IW);Zi.prototype.B=function(){IW.prototype.B.call(this);this.N&&s3L(this)}; Zi.prototype.Eo=function(){this.HW()}; Zi.prototype.TQ=function(){this.W.setPlaybackRate(this.S,!0)}; Zi.prototype.D=function(e){IW.prototype.D.call(this,e);this.HW();s3L(this);e.preventDefault()};g.b(O8,g.v);g.E=O8.prototype;g.E.init=function(){this.Rg(this.S);this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.B)}; g.E.Ib=function(e){if(!e.defaultPrevented){switch(e.keyCode){case 37:case 40:var a=-this.Y;break;case 39:case 38:a=this.Y;break;default:return}this.Rg(this.S+a);e.preventDefault()}}; g.E.Or=function(e){var a=this.S;a+=(e.deltaX||-e.deltaY)<0?-this.N:this.N;this.Rg(a);e.preventDefault()}; g.E.LK=function(e){e=(e-g.KO(this.L).x)/this.HW*this.range+this.T;this.Rg(e)}; g.E.Rg=function(e,a){a=a===void 0?"":a;e=g.ID(e,this.T,this.B);a===""&&(a=e.toString());this.updateValue("valuenow",e);this.updateValue("valuetext",a);this.oH.style.left=(e-this.T)/this.range*(this.HW-this.Lf)+"px";this.S=e}; g.E.focus=function(){this.Cf.focus()};g.b(kw,O8);kw.prototype.TQ=function(){this.W.setPlaybackRate(this.S,!0)}; kw.prototype.Rg=function(e){O8.prototype.Rg.call(this,e,F8L(this,e).toString());this.Z&&(mmL(this),this.Eo())}; kw.prototype.updateValues=function(){var e=this.W.getPlaybackRate();F8L(this,this.S)!==e&&(this.Rg(e),mmL(this))};g.b(Md3,g.cs);Md3.prototype.focus=function(){this.S.focus()};g.b(j34,$7);g.b(K8O,g.x7);g.E=K8O.prototype;g.E.Sv=function(e){return e==="1"?"Normal":e.toLocaleString()}; g.E.zQ=function(){var e,a=(e=this.W.getVideoData())==null?void 0:e.w1();e=this.W.getPresentingPlayerType(a);this.enable(e!==2&&e!==3);r$q(this)}; g.E.Is=function(e){g.x7.prototype.Is.call(this,e);this.Y&&this.Y.T.focus()}; g.E.G3=function(e){g.x7.prototype.G3.call(this,e);e?(this.oH=this.j(this.W,"onPlaybackRateChange",this.onPlaybackRateChange),r$q(this),es3(this,this.W.getPlaybackRate())):(this.Xo(this.oH),this.oH=null)}; g.E.onPlaybackRateChange=function(e){var a=this.W.getPlaybackRate();!this.L&&this.HW.includes(a)||aAO(this,a);es3(this,e)}; g.E.iO=function(e,a,r){return e===this.S&&BD3(this.W)?g.x7.prototype.iO.call(this,e,a,r,{K:"div",U:"ytp-speed-slider-menu-footer",V:[this.Y]}):e===this.Z&&uYq(this.W)?PmL(this,e,a,r):g.x7.prototype.iO.call(this,e,a,r)}; g.E.bQ=function(e){g.x7.prototype.bQ.call(this,e);e===this.S?this.W.setPlaybackRate(this.D,!0):this.W.setPlaybackRate(Number(e),!0);BD3(this.W)&&e===this.S||this.OM.Ho()}; g.E.RT=function(e){var a=e===this.S;this.L=!1;a&&dz(this.W)&&!BD3(this.W)?(e=new j34(this.W),g.Lc(this.OM,e)):g.x7.prototype.RT.call(this,e)};g.b(c$L,g.x7);g.E=c$L.prototype;g.E.Nq=function(e){g.x7.prototype.Nq.call(this,e)}; g.E.Gd=function(e){return e.option.toString()}; g.E.getOption=function(e){return this.settings[e]}; g.E.Sv=function(e){return this.getOption(e).text||""}; g.E.bQ=function(e){g.x7.prototype.bQ.call(this,e);this.publish("settingChange",this.setting,this.settings[e].option)};g.b(Di,g.QK);Di.prototype.wT=function(e){for(var a=g.Z(Object.keys(e)),r=a.next();!r.done;r=a.next()){var P=r.value;if(r=this.pQ[P]){var B=e[P].toString();P=!!e[P+"Override"];r.options[B]&&(r.Nq(B),r.L.element.setAttribute("aria-checked",String(!P)),r.S.element.setAttribute("aria-checked",String(P)))}}}; Di.prototype.t4=function(e,a){this.publish("settingChange",e,a)};g.b(Vl,g.x7);Vl.prototype.S=function(e){return e.languageCode}; Vl.prototype.Sv=function(e){return this.languages[e].languageName||""}; Vl.prototype.bQ=function(e){this.publish("select",e);this.W.logClick(this.element);g.Y7(this.OM)};g.b(y$3,g.x7);g.E=y$3.prototype;g.E.df=function(e){return g.Ak(e)?"__off__":e.displayName}; g.E.Sv=function(e){return e==="__off__"?"Off":e==="__translate__"?"Auto-translate":e==="__contribute__"?"Add subtitles/CC":e==="__correction__"?"Suggest caption corrections":(e==="__off__"?{}:this.tracks[e]).displayName}; g.E.bQ=function(e){if(e==="__translate__")this.S.open();else if(e==="__contribute__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var a=g.Ty(this.W.G(),this.W.getVideoData());g.xg(a)}else if(e==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var r=TDl(this);$w(this,r);g.x7.prototype.bQ.call(this,this.df(r));var P,B;r=(a=this.W.getVideoData().getPlayerResponse())==null?void 0:(P=a.captions)==null?void 0:(B=P.playerCaptionsTracklistRenderer)== null?void 0:B.openTranscriptCommand;this.W.qF("innertubeCommand",r);this.OM.Ho();this.L&&this.W.logClick(this.L)}else{if(e==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();a=TDl(this);$w(this,a);g.x7.prototype.bQ.call(this,this.df(a));var h,c;a=(r=this.W.getVideoData().getPlayerResponse())==null?void 0:(h=r.captions)==null?void 0:(c=h.playerCaptionsTracklistRenderer)==null?void 0:c.openTranscriptCommand;this.W.qF("innertubeCommand",a)}else this.W.logClick(this.element), $w(this,e==="__off__"?{}:this.tracks[e]),g.x7.prototype.bQ.call(this,e);this.OM.Ho()}}; g.E.zQ=function(){var e=this.W.getOptions();e=e&&e.indexOf("captions")!==-1;var a=this.W.getVideoData(),r=a&&a.b7,P,B=!((P=this.W.getVideoData())==null||!g.UL(P));P={};if(e||r){var h;if(e){var c=this.W.getOption("captions","track");P=this.W.getOption("captions","tracklist",{includeAsr:!0});var y=B?[]:this.W.getOption("captions","translationLanguages");this.tracks=g.MM(P,this.df,this);B=g.ba(P,this.df);var T,X;TDl(this)&&((h=a.getPlayerResponse())==null?0:(T=h.captions)==null?0:(X=T.playerCaptionsTracklistRenderer)== null?0:X.openTranscriptCommand)&&B.push("__correction__");if(y.length&&!g.Ak(c)){if((h=c.translationLanguage)&&h.languageName){var f=h.languageName;h=y.findIndex(function(A){return A.languageName===f}); WjI(y,h)}ovL(this.S,y);B.push("__translate__")}h=this.df(c)}else this.tracks={},B=[],h="__off__";B.unshift("__off__");this.tracks.__off__={};r&&B.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=c,B.push(h));this.Is(B);this.Nq(h);c&&c.translationLanguage?this.S.Nq(this.S.S(c.translationLanguage)):D3l(this.S);e&&this.Z.wT(this.W.getSubtitlesUserSettings());this.countLabel.vO(P&&P.length?" ("+P.length+")":"");this.publish("size-change");this.W.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.E.Er=function(e){var a=this.W.getOption("captions","track");a=g.GX(a);a.translationLanguage=this.S.languages[e];$w(this,a)}; g.E.t4=function(e,a){if(e==="reset")this.W.resetSubtitlesUserSettings();else{var r={};r[e]=a;this.W.updateSubtitlesUserSettings(r)}nvN(this,!0);this.D.start();this.Z.wT(this.W.getSubtitlesUserSettings())}; g.E.Ngo=function(e){e||g.Fu(this.D)}; g.E.RH=function(){g.Fu(this.D);g.x7.prototype.RH.call(this)}; g.E.open=function(){g.x7.prototype.open.call(this);this.options.__correction__&&!this.L&&(this.L=this.options.__correction__.element,this.W.createClientVe(this.L,this,167341),this.W.logVisibility(this.L,!0))};g.b(XX4,g.lZ);g.E=XX4.prototype; g.E.initialize=function(){if(!this.isInitialized){var e=this.W.G();this.isInitialized=!0;try{this.iT=new q_N(this.W,this)}catch(r){g.VJ(Error("QualityMenuItem creation failed"))}g.x(this,this.iT);var a=new y$3(this.W,this);g.x(this,a);e.B||(a=new bc(this.W,this),g.x(this,a));e.enableSpeedOptions&&(a=new K8O(this.W,this),g.x(this,a));(g.uP(e)||e.Z)&&(e.T||e.Uo)&&(a=new Hq4(this.W,this),g.x(this,a));e.QH&&!e.X("web_player_move_autonav_toggle")&&(e=new gz(this.W,this),g.x(this,e));e=new tb(this.W,this); g.x(this,e);this.W.publish("settingsMenuInitialized");I2I(this.settingsButton,this.TG.d0())}}; g.E.D5=function(e){this.initialize();this.TG.D5(e);I2I(this.settingsButton,this.TG.d0())}; g.E.JA=function(e){this.oD&&this.TG.d0()<=1&&this.hide();this.TG.JA(e);I2I(this.settingsButton,this.TG.d0())}; g.E.Yh=function(e){this.initialize();this.TG.d0()>0&&g.lZ.prototype.Yh.call(this,e)}; g.E.XN=function(){this.Sy?this.Sy=!1:g.lZ.prototype.XN.call(this)}; g.E.show=function(){g.lZ.prototype.show.call(this);g.rr(this.W.getRootNode(),"ytp-settings-shown")}; g.E.hide=function(){g.lZ.prototype.hide.call(this);g.BD(this.W.getRootNode(),"ytp-settings-shown")}; g.E.GG=function(e){this.W.logVisibility(this.element,e);this.W.publish("settingsMenuVisibilityChanged",e)};g.b(UF4,g.v);g.E=UF4.prototype;g.E.onClick=function(){if(Ql(this)&&(this.W.toggleSubtitles(),this.W.logClick(this.element),!this.isEnabled())){var e=!1,a=g.pE(g.wu(),65);g.tZ(this.W.G())&&a!=null&&(e=!a);e&&this.W.G().X("web_player_nitrate_promo_tooltip")&&this.W.publish("showpromotooltip",this.element)}}; g.E.LAW=function(e){var a,r;(a=g.lL(this.W))==null||(r=a.Ch())==null||r.Yh(e)}; g.E.isEnabled=function(){var e=this.W.getOption("captions","track");return!(!e||!e.displayName)}; g.E.zQ=function(){var e=Ql(this),a=300;this.W.G().D&&(a=480);this.W.X("delhi_modern_web_player_icons")&&this.updateValue("icon",A$j(this));if(this.W.G().Z){this.updateValue("title",g.Ik(this.W,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.Ik(this.W,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var r=e}else{if(e)(r=this.BW("ytp-subtitles-button-icon"))==null||r.setAttribute("fill-opacity","1"),this.W.G().X("player_tooltip_data_title_killswitch")? this.updateValue("title",g.Ik(this.W,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.Ik(this.W,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.W.X("delhi_modern_web_player_icons")){var P;(P=this.BW("ytp-subtitles-button-icon"))==null||P.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var B;(B=this.BW("ytp-subtitles-button-icon"))==null||B.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"})}r=!0}this.tooltip.gE();r=r&&this.W.MF().getPlayerSize().width>=a;this.Nr(r);this.W.X("embeds_use_parent_visibility_in_ve_logging")?this.W.logVisibility(this.element,r&&this.C):this.W.logVisibility(this.element,r);e?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.E.Yy=function(e){g.v.prototype.Yy.call(this,e);this.W.G().X("embeds_use_parent_visibility_in_ve_logging")&&this.W.logVisibility(this.element,this.oD&&e)};g.b(g.WF,g.v);g.E=g.WF.prototype;g.E.canShowCountdown=function(){return!Li(this)&&!lc(this)}; g.E.j5=function(){var e=this.api.MF().getPlayerSize().width,a=this.N;this.api.G().D&&(a=400);a=e>=a&&(!lc(this)||!g.S(this.api.getPlayerStateObject(),64));this.Nr(a);g.cD(this.element,"ytp-time-display-allow-autohide",a&&e<400);e=this.api.getProgressState();if(a){var r=this.api.getPresentingPlayerType();a=this.api.getCurrentTime(r,!1);this.T&&(a-=e.airingStart);Li(this)&&(a-=this.ZD.startTimeMs/1E3);this.canShowCountdown()&&this.B&&(a-=this.api.getDuration(r,!1));var P=g.tx(a);this.L!==P&&(this.updateValue("currenttime", P),this.L=P);r=Li(this)?(this.ZD.endTimeMs-this.ZD.startTimeMs)/1E3:this.api.getDuration(r,!1);P=g.tx(r);this.Z!==P&&(this.updateValue("duration",P),this.Z=P,a&&(a=g.PA("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.tx(a,!0),DURATION:g.tx(r,!0)}),this.updateValue("timeDisplayAriaLabel",a)))}Cmj(this,e.isAtLiveHead);GvL(this,this.api.getLoopRange())}; g.E.onLoopRangeChange=function(e){var a=this.ZD!==e;this.ZD=e;a&&(this.j5(),EvT(this))}; g.E.lXP=function(){this.api.setLoopRange(null)}; g.E.V11=function(){this.B=!this.B;this.j5()}; g.E.onVideoDataChange=function(e,a,r){this.updateVideoData((this.api.G().X("enable_topsoil_wta_for_halftime")||this.api.G().X("enable_topsoil_wta_for_halftime_live_infra"))&&r===2?this.api.getVideoData(1):a);this.j5();EvT(this)}; g.E.updateVideoData=function(e){this.vM=e.isLivePlayback&&!e.rP;this.T=EL(e);this.isPremiere=e.isPremiere;g.cD(this.element,"ytp-live",lc(this));this.api.X("delhi_modern_web_player")&&this.BW("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.E.onClick=function(e){e.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.E.RH=function(){this.S&&this.S();g.v.prototype.RH.call(this)};g.b(tx3,g.v);g.E=tx3.prototype;g.E.XT=function(){var e=this.api.eX();this.B!==e&&(this.B=e,bbI(this,this.api.getVolume(),this.api.isMuted()))}; g.E.yR=function(e){this.Nr(e.width>=350)}; g.E.lM=function(e){if(!e.defaultPrevented){var a=e.keyCode,r=null;a===37?r=this.volume-5:a===39?r=this.volume+5:a===36?r=0:a===35&&(r=100);r!==null&&(r=g.ID(r,0,100),r===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(r)),e.preventDefault())}}; g.E.KK=function(e){var a=e.deltaX||-e.deltaY;e.deltaMode?this.api.setVolume(this.volume+(a<0?-10:10)):this.api.setVolume(this.volume+g.ID(a/10,-10,10));e.preventDefault()}; g.E.ofr=function(){Yw(this,this.S,!0,this.T,this.api.zy());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.E.Wz=function(e){var a=this.B?78:52,r=this.B?18:12;e-=g.KO(this.Y).x;this.api.setVolume(g.ID((e-r/2)/(a-r),0,1)*100)}; g.E.HBo=function(){Yw(this,this.S,!1,this.T,this.api.zy());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.E.onVolumeChange=function(e){bbI(this,e.volume,e.muted)}; g.E.BP=function(){Yw(this,this.S,this.isDragging,this.T,this.api.zy())}; g.E.RH=function(){g.v.prototype.RH.call(this);g.BD(this.D,"ytp-volume-slider-active")};g.b(wz,g.v); wz.prototype.onVideoDataChange=function(){var e=this.api.G();this.VX();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).nB;this.Nr(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var a=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a)}e.B&&(this.S&&(this.Xo(this.S),this.S=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.rr(this.element,"no-link")); a=this.api.G();e=this.api.getVideoData();var r="";a.B||(a=g.UA(a),a.indexOf("www.")===0&&(a=a.substring(4)),r=g.bL(e)?"Watch on YouTube Music":a==="youtube.com"?"Watch on YouTube":g.PA("Watch on $WEBSITE",{WEBSITE:a}));this.api.X("player_tooltip_data_title_killswitch")?this.updateValue("title",r):this.updateValue("tooltip-title",r)}; wz.prototype.onClick=function(e){this.api.X("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var a=this.api.G(),r=this.api.getVideoUrl(!g.gG(e),!1,!0,!0);if(g.uP(a)){var P={};g.uP(a)&&g.Da(this.api,"addEmbedsConversionTrackingParams",[P]);r=g.EW(r,P)}g.da(r,this.api,e);this.api.X("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; wz.prototype.VX=function(){var e={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{K:"path",Rz:!0,U:"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 "}}]}, a=28666,r=this.api.getVideoData();this.api.isEmbedsShortsMode()?e={K:"svg",J:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{K:"path",J:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.bL(r)&&(e={K:"svg",J:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{K:"path",J:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{K:"path",J:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{K:"path",J:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{K:"path",J:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",J:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{K:"path",J:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{K:"path",J:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{K:"path",J:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{K:"path",J:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{K:"path",J:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{K:"path",J:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{K:"path",J:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},a=216163);g.bL(r)?g.rr(this.element,"ytp-youtube-music-button"):g.BD(this.element,"ytp-youtube-music-button");e.J=Object.assign({},e.J,{"aria-hidden":"true"});this.updateValue("logoSvg",e);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,a,!0)}; wz.prototype.Yy=function(e){g.v.prototype.Yy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.b(Obl,g.Zc);g.E=Obl.prototype;g.E.onProgress=function(){if(this.W.X("web_player_max_seekable_on_ended")||!g.S(this.W.getPlayerStateObject(),2))this.progressBar.j5(),this.Cf.j5()}; g.E.y3=function(){this.dn();if(this.wL.T)this.onProgress();else this.progressBar.Be()}; g.E.us=function(){this.onProgress();this.N.start()}; g.E.dn=function(){var e;if(e=!this.W.G().T){e=this.progressBar;var a=2*g.bX()*e.Z,r=e.B;e=(r.S-r.T)*1E3/e.api.getPlaybackRate()/a<300}e=e&&this.W.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;a=!e;this.wL.T||(e=a=!1);a?this.TQ||(this.TQ=this.j(this.W,"progresssync",this.onProgress)):this.TQ&&(this.Xo(this.TQ),this.TQ=null);e?this.N.isActive()||this.N.start():this.N.stop()}; g.E.VX=function(){var e=this.W.eX(),a=this.W.MF().getPlayerSize(),r=this.W.MF().SV,P=dF3(this),B=J$L(this),h=Math.max(a.width-P*2,100);if(this.bv!==a.width||this.HA!==e||this.W.X("web_player_rtr_ctrls")&&this.gV!==r)this.bv=a.width,this.HA=e,this.gV=r,this.T.element.style.width=B+"px",this.T.element.style.left=P+"px",g.iqL(this.progressBar,P,B,e),this.W.yH().Lk=B;r=this.L;h=Math.min(570*(e?1.5:1),h);e=Math.min(413*(e?1.5:1),Math.round((a.height-DFq(this))*.82));r.maxWidth=h;r.maxHeight=e;r.v0();this.dn(); this.T$&&Zx3(this.rP,a.height)}; g.E.onVideoDataChange=function(){var e=this.W.getVideoData();this.GQ.style.background=e.nB?e.s9:"";this.oH&&$LT(this.oH,e.showSeekingControls);this.HW&&$LT(this.HW,e.showSeekingControls)}; g.E.EM=function(){return this.T.element};g.b(VxJ,VK);g.E=VxJ.prototype;g.E.td=function(e){e.target!==this.dismissButton.element&&(this.onClickCommand&&this.W.qF("innertubeCommand",this.onClickCommand),this.LQ())}; g.E.LQ=function(){this.enabled=!1;this.N.hide()}; g.E.onVideoDataChange=function(e,a){e==="dataloaded"&&$FN(this);e=[];var r,P,B,h;if(a=(h=g.H((r=a.getWatchNextResponse())==null?void 0:(P=r.playerOverlays)==null?void 0:(B=P.playerOverlayRenderer)==null?void 0:B.suggestedActionsRenderer,t2N))==null?void 0:h.suggestedActions)for(r=g.Z(a),P=r.next();!P.done;P=r.next())(P=g.H(P.value,gH5))&&g.H(P.trigger,bOZ)&&e.push(P);if(e.length!==0){r=[];e=g.Z(e);for(P=e.next();!P.done;P=e.next())if(P=P.value,B=g.H(P.trigger,bOZ))h=(h=P.title)?g.yd(h):"View Chapters", a=B.timeRangeStartMillis,B=B.timeRangeEndMillis,a!=null&&B!=null&&P.tapCommand&&(r.push(new g.v_(a,B,{priority:9,namespace:"suggested_action_button_visible",id:h})),this.suggestedActions[h]=P.tapCommand);this.W.Ji(r)}}; g.E.d4=function(){return this.enabled}; g.E.GG=function(){this.enabled?this.XM.start():Jm(this);this.Mc()}; g.E.RH=function(){$FN(this);VK.prototype.RH.call(this)};var $t={},z9=($t.CHANNEL_NAME="ytp-title-channel-name",$t.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",$t.LINK="ytp-title-link",$t.SESSIONLINK="yt-uix-sessionlink",$t.SUBTEXT="ytp-title-subtext",$t.TEXT="ytp-title-text",$t.TITLE="ytp-title",$t);g.b(N3,g.v);N3.prototype.onClick=function(e){this.api.logClick(this.element);var a=this.api.G(),r=this.api.getVideoUrl(!g.gG(e),!1,!0);g.uP(a)&&(a={},g.Da(this.api,"addEmbedsConversionTrackingParams",[a]),r=g.EW(r,a));g.da(r,this.api,e)}; N3.prototype.zQ=function(){var e=this.api.getVideoData(),a=this.api.G();this.updateValue("title",e.title);var r={K:"a",U:z9.CHANNEL_NAME,J:{href:"{{channelLink}}",target:"_blank"},S1:"{{channelName}}"};this.api.G().B&&(r={K:"span",U:z9.CHANNEL_NAME,S1:"{{channelName}}",J:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",r);QCj(this);this.api.getPresentingPlayerType()===2&&(r=this.api.getVideoData(),r.videoId&&r.isListed&&r.author&&r.HA&&r.profilePicture?(this.updateValue("channelLink", r.HA),this.updateValue("channelName",r.author),this.updateValue("channelTitleFocusable","0")):QCj(this));r=a.externalFullscreen||!this.api.isFullscreen()&&a.VY;g.cD(this.link,z9.FULLERSCREEN_LINK,r);a.oH||!e.videoId||r||e.nB||a.B?this.S&&(this.updateValue("url",null),this.Xo(this.S),this.S=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.S||(this.S=this.j(this.link,"click",this.onClick)));a.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.uP(a)?e.expandedTitle: e.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.b(g.xw,g.v);g.E=g.xw.prototype;g.E.setEnabled=function(e){if(this.type!=null)if(e)switch(this.type){case 3:case 2:IA(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.D=e}; g.E.IJ=function(e,a,r,P,B,h,c,y){if(!this.Eo||this.env.D){this.type===3&&this.Be();this.type!==1&&(g.eG(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.D&&this.fade.show(),this.T&&this.T.dispose(),(this.T=this.api.b$())&&this.T.subscribe("l",this.uA,this));if(y){var T=g.rF(this.bg).height||141;this.Lf.style.bottom=T+2+"px"}else this.Lf.style.display="none";this.env.X("delhi_modern_web_player")?(this.update({pillTimeStamp:r,pillTitle:h!=null?h:"",eduText:y!=null?y:""}),g.rr(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:r,title:h!=null?h:"",eduText:y!=null?y:""}),g.cD(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!h));this.api.isInline()&&g.rr(this.bottomText,"ytp-modern-tooltip-text");g.cD(this.element,"ytp-text-detail",!!P);r=-1;this.T&&(r=cE(this.T,243*this.scale),this.env.X("web_l3_storyboard")&&this.T.levels.length===4&&(r=this.T.levels.length-1),r=rej(this.T,r,a));YBj(this,r);if(c)switch(a=g.rF(this.element).width,c){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=a+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=a/2+"px",this.title.style.textAlign="center"}LLN(this,!!P,e,B)}}; g.E.h5=function(){this.type===1&&this.Be()}; g.E.oP=function(e,a){if(this.type)if(this.type===3)this.Be();else return;WL4(this,e,3,a)}; g.E.gE=function(){this.S&&!this.Y&&(this.env.X("player_tooltip_data_title_killswitch")?this.S.hasAttribute("title")&&(this.B=this.S.getAttribute("title")||"",this.S.removeAttribute("title"),this.D&&IA(this)):this.S.hasAttribute("data-tooltip-title")&&(this.B=this.S.getAttribute("data-tooltip-title")||"",this.S.removeAttribute("data-tooltip-title"),this.D&&IA(this)))}; g.E.uA=function(e,a){e<=this.L&&this.L<=a&&(e=this.L,this.L=NaN,YBj(this,e))}; g.E.dQ=function(){eQ3(this.T,this.L,243*this.scale)}; g.E.Be=function(){switch(this.type){case 2:var e=this.S;e.removeEventListener("mouseout",this.N);e.addEventListener("mouseover",this.Z);e.removeEventListener("blur",this.N);e.addEventListener("focus",this.Z);wXy(this);break;case 3:wXy(this);break;case 1:this.T&&(this.T.unsubscribe("l",this.uA,this),this.T=null),this.api.removeEventListener("videoready",this.HW),this.oH.stop()}this.type=null;this.D&&this.fade.hide()}; g.E.IZ=function(){if(this.S)for(var e=0;e=0;a--)if(this.BT[a]===e){this.BT.splice(a,1);break}Hp(this.wL,64,this.BT.length>0)}; g.E.x9=function(){this.api.BI()&&this.api.DI();return!!this.PC||Hbj(this)||g.Kk.prototype.x9.call(this)}; g.E.i7=function(){var e=!this.x9(),a=e&&this.api.BI()&&!g.S(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().nB&&!this.api.G().B&&!this.api.isEmbedsShortsMode(),r=this.zp&&g.Sn(this.api)&&g.S(this.api.getPlayerStateObject(),128);e||r?(this.C1.show(),this.Xb.show()):(this.C1.hide(),this.Xb.hide(),this.api.IZ(this.C5.element));a?this.VP.Yh():this.VP.XN();this.Gl&&kvy(this.Gl,this.QOW||!e);this.api.X("web_player_hide_overflow_button_if_empty_menu")&&qBz(this);g.Kk.prototype.i7.call(this)}; g.E.tF=function(e,a,r,P,B){e.style.left="";e.style.top="";e.style.bottom="";var h=g.rF(e),c=P||this.Gl&&g.gy(this.Gl.EM(),a),y=P=null;r!=null&&c||(P=g.rF(a),y=g.eN(a,this.api.getRootNode()),r==null&&(r=y.x+P.width/2));r-=h.width/2;c?(a=this.Gl,P=dF3(a),y=J$L(a),c=this.api.MF().getPlayerSize().height,r=g.ID(r,P,P+y-h.width),h=c-DFq(a)-h.height):g.gy(this.C5.element,a)?(a=this.api.MF().getPlayerSize().width,r=g.ID(r,12,a-h.width-12),h=this.eX()?this.CJ:this.w5,this.api.G().playerStyle==="gvn"&&(h+= 20),this.zp&&(h-=this.eX()?26:18)):(a=this.api.MF().getPlayerSize(),r=g.ID(r,12,a.width-h.width-12),h=y.y>(a.height-P.height)/2?y.y-h.height-12:y.y+P.height+12);e.style.top=h+(B||0)+"px";e.style.left=r+"px"}; g.E.y3=function(e){e&&(this.api.IZ(this.C5.element),this.Gl&&this.api.IZ(this.Gl.EM()));this.mu&&(g.cD(this.contextMenu.element,"ytp-autohide",e),g.cD(this.contextMenu.element,"ytp-autohide-active",!0));g.Kk.prototype.y3.call(this,e)}; g.E.kT=function(){g.Kk.prototype.kT.call(this);this.mu&&(g.cD(this.contextMenu.element,"ytp-autohide-active",!1),this.mu&&(this.contextMenu.hide(),this.eM&&this.eM.hide()))}; g.E.jZ=function(e,a){var r=this.api.MF().getPlayerSize();r=new g.I8(0,0,r.width,r.height);if(e||this.wL.T&&!this.x9()){if(this.api.G().TU||a)e=this.eX()?this.CJ:this.w5,r.top+=e,r.height-=e;this.Gl&&(r.height-=DFq(this.Gl))}return r}; g.E.XT=function(e){var a=this.api.getRootNode();e?a.parentElement?(a.setAttribute("aria-label","YouTube Video Player in Full screen"),this.api.G().externalFullscreen||(a.parentElement.insertBefore(this.pj.element,a),a.parentElement.insertBefore(this.Sl.element,a.nextSibling))):g.D6(Error("Player not in DOM.")):(a.setAttribute("aria-label","YouTube Video Player"),this.pj.detach(),this.Sl.detach());this.VX();this.JN()}; g.E.eX=function(){if(this.api.X("web_player_use_screen_width_for_big_mode")){var e;return this.api.MF().getPlayerSize().width>=((e=g.eS(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?e:2E3)}e=this.api.G();return this.api.isFullscreen()&&!e.D||!1}; g.E.showControls=function(e){this.xm=!e;this.i7()}; g.E.VX=function(){var e=this.eX();this.tooltip.scale=e?1.5:1;this.contextMenu&&g.cD(this.contextMenu.element,"ytp-big-mode",e);this.i7();this.api.X("web_player_hide_overflow_button_if_empty_menu")||qBz(this);this.JN();var a=this.api.isEmbedsShortsMode();a&&e?(e=(this.api.MF().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.vo(this.C5.element,"padding-left",e+"px"),g.vo(this.C5.element,"padding-right",e+"px")):a&&(g.vo(this.C5.element,"padding-left",""),g.vo(this.C5.element,"padding-right", ""));g.Kk.prototype.VX.call(this)}; g.E.q4=function(){if(Hbj(this)&&!g.Sn(this.api))return!1;var e=this.api.getVideoData();return!g.uP(this.api.G())||this.api.getPresentingPlayerType()===2||!this.U2||((e=this.U2||e.U2)?(e=e.embedPreview)?(e=e.thumbnailPreviewRenderer,e=e.videoDetails&&g.H(e.videoDetails,iRI)||null):e=null:e=null,e&&e.collapsedRenderer&&e.expandedRenderer)?g.Kk.prototype.q4.call(this):!1}; g.E.JN=function(){g.Kk.prototype.JN.call(this);this.api.logVisibility(this.title.element,!!this.YZ);this.hF&&this.hF.Yy(!!this.YZ);this.channelAvatar.Yy(!!this.YZ);this.overflowButton&&this.overflowButton.Yy(this.tA()&&!!this.YZ);this.shareButton&&this.shareButton.Yy(!this.tA()&&!!this.YZ);this.Wj&&this.Wj.Yy(!this.tA()&&!!this.YZ);this.searchButton&&this.searchButton.Yy(!this.tA()&&!!this.YZ);this.copyLinkButton&&this.copyLinkButton.Yy(!this.tA()&&!!this.YZ);if(!this.YZ){this.api.IZ(this.C5.element); for(var e=0;e5&&a.nf("glrs",{cmt:r});a.seekTo(0,{seekSource:58});a.nf("glrre",{cmt:r})}}; vF.prototype.RH=function(){this.S=null;g.N.prototype.RH.call(this)};g.b(g.RA,dx);g.E=g.RA.prototype;g.E.isView=function(){return!0}; g.E.II=function(){var e=this.mediaElement.getCurrentTime();if(e1;h0(e.HG(),P-.01)&&!B&&(s8(this,4),r.isActive=!1,r.x6=r.x6||r.isActive,(this.C===1?this.S:this.T).nf("sbh",{}),a.isActive=!0,a.x6=a.x6||a.isActive,this.C!==0&&(this.S.getVideoData().LH=!0));e=this.L.T;if(this.L.S.isActive&&e.isActive&&(s8(this,5),this.C!==0)){e=this.T.AL();r=this.S.AL(); this.S.nf("sbs",{citag:r==null?void 0:r.itag,nitag:e==null?void 0:e.itag});this.T.nf("gitags",{pitag:r==null?void 0:r.itag,citag:e==null?void 0:e.itag});var h;(h=this.T)==null||h.Qc()}}}; g.E.nu=function(){this.fS()&&this.SX("player-reload-after-handoff")}; g.E.SX=function(e,a){a=a===void 0?{}:a;if(!this.wP()&&this.status.status!==6){var r=this.status.status>=4&&e!=="player-reload-after-handoff";this.status={status:Infinity,error:e};if(this.S&&this.T){var P=this.T.getVideoData().clientPlaybackNonce;this.S.LB(new g.f_("dai.transitionfailure",Object.assign(a,{cpn:P,transitionTimeMs:this.iy,msg:e})));this.S.XO(r)}this.mM.reject(e);this.dispose()}}; g.E.fS=function(){return this.status.status>=4&&this.status.status<6}; g.E.RH=function(){arq(this);this.S.unsubscribe("newelementrequired",this.nu,this);if(this.B){var e=this.B.T;this.B.S.pB.unsubscribe("updateend",this.mN,this);e.pB.unsubscribe("updateend",this.mN,this)}g.N.prototype.RH.call(this)}; g.E.I7=function(e){g.TH(e,128)&&this.SX("player-error-event")};g.b(m$,g.N);m$.prototype.clearQueue=function(e,a){e=e===void 0?!1:e;a=a===void 0?!1:a;this.L&&this.L.reject("Queue cleared");this.app.G().X("html5_gapless_fallback_on_qoe_restart_v2")||a&&this.T&&this.T.XO(!1);Fq(this,e)}; m$.prototype.O2=function(){return!this.S}; m$.prototype.fS=function(){var e;return((e=this.B)==null?void 0:e.fS())||!1}; m$.prototype.RH=function(){Fq(this);g.N.prototype.RH.call(this)};g.b(y8O,g.aK);g.E=y8O.prototype;g.E.getVisibilityState=function(e,a,r,P,B,h,c,y){return e?4:yuz()?3:a?2:r?1:P?5:B?7:h?8:c?9:y?10:0}; g.E.kp=function(e){this.fullscreen!==e&&(this.fullscreen=e,this.GG())}; g.E.setMinimized=function(e){this.T!==e&&(this.T=e,this.GG())}; g.E.setInline=function(e){this.inline!==e&&(this.inline=e,this.GG())}; g.E.xI=function(e){this.pictureInPicture!==e&&(this.pictureInPicture=e,this.GG())}; g.E.setSqueezeback=function(e){this.B!==e&&(this.B=e,this.GG())}; g.E.sF=function(e){this.L!==e&&(this.L=e,this.GG())}; g.E.W7=function(){return this.S}; g.E.Hw=function(){return this.fullscreen!==0}; g.E.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.E.Kj=function(){return this.fullscreen}; g.E.isMinimized=function(){return this.T}; g.E.isInline=function(){return this.inline}; g.E.isBackground=function(){return yuz()}; g.E.kL=function(){return this.pictureInPicture}; g.E.g6=function(){return!1}; g.E.e8=function(){return this.B}; g.E.zA=function(){return this.L}; g.E.GG=function(){this.publish("visibilitychange");var e=this.getVisibilityState(this.W7(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.kL(),this.g6(),this.e8(),this.zA());e!==this.Z&&this.publish("visibilitystatechange");this.Z=e}; g.E.RH=function(){fCO(this.C);g.aK.prototype.RH.call(this)};g.b(g.M3,g.N);g.E=g.M3.prototype;g.E.RH=function(){this.videoData=this.playerState=null;g.N.prototype.RH.call(this)}; g.E.addCueRange=function(){}; g.E.VI=function(){}; g.E.UB=function(){}; g.E.uL=function(){return!1}; g.E.Xc=function(){return!1}; g.E.B_=function(){}; g.E.Ks=function(){}; g.E.LD=function(){return[]}; g.E.wj=function(){}; g.E.getAudioTrack=function(){return this.getVideoData().ih}; g.E.C9=function(){return null}; g.E.getAvailableAudioTracks=function(){return[]}; g.E.jQ=function(){return[]}; g.E.Ef=function(){return[]}; g.E.wD=function(){return""}; g.E.AR=function(){return[]}; g.E.DU=function(){}; g.E.XI=function(){return 0}; g.E.getCurrentTime=function(){return 0}; g.E.Us=function(){}; g.E.AL=function(){}; g.E.vA=function(){return{}}; g.E.getDuration=function(){return 0}; g.E.C8=function(){return 0}; g.E.BZ=function(){return 0}; g.E.y8=function(){return!1}; g.E.Qa=function(){return 0}; g.E.ZP=function(){return 0}; g.E.s8=eL(7);g.E.Dm=function(){return 0}; g.E.tb=function(){return!1}; g.E.XJ=function(){return 0}; g.E.rg=function(){return null}; g.E.lx=function(){return null}; g.E.N5=function(){return 0}; g.E.er=function(){return 0}; g.E.p5=function(){return g.Y(function(e){g.OO(e)})}; g.E.JL=eL(15);g.E.getPlaybackQuality=function(){return"auto"}; g.E.getPlaybackRate=function(){return 1}; g.E.getPlayerState=function(){this.playerState||(this.playerState=new g.Q9);return this.playerState}; g.E.getPlayerType=function(){return 0}; g.E.getPlaylistSequenceForTime=function(){return null}; g.E.L_=function(){return function(){}}; g.E.xZ=function(){return""}; g.E.getPreferredQuality=function(){return"unknown"}; g.E.Q7=function(){}; g.E.getProximaLatencyPreference=function(){return 0}; g.E.S3=function(){return A3}; g.E.b$=function(){return null}; g.E.getStoryboardFormat=function(){return null}; g.E.getStreamTimeOffset=function(){return 0}; g.E.yn=function(){return 0}; g.E.t9=function(){return 0}; g.E.Jn=function(){return{ML:[],N0:[],currentTime:0,kB:"",droppedVideoFrames:0,isGapless:!1,O2:!0,lV:0,Fm:0,kW:0,Me:0,vR:0,n7:[],sy:[],Pd:null,playerState:this.getPlayerState(),VG:null,XX:"",totalVideoFrames:0}}; g.E.getUserAudio51Preference=function(){return 0}; g.E.getUserPlaybackQualityPreference=function(){return""}; g.E.getVideoData=function(){this.videoData||(this.videoData=new g.UT(this.iW),g.x(this,this.videoData));return this.videoData}; g.E.Lt=function(){return null}; g.E.cJ=function(){return null}; g.E.Y2=function(){}; g.E.getVideoLoadedFraction=function(){return 0}; g.E.mC=function(){}; g.E.handleError=function(){}; g.E.XO=function(){}; g.E.KF=function(){}; g.E.Vn=eL(40);g.E.c8=function(){return!1}; g.E.hasSupportedAudio51Tracks=function(){return!1}; g.E.Jb=function(){return!1}; g.E.W7=function(){return!1}; g.E.isAtLiveHead=function(){return!1}; g.E.t2=function(){return!0}; g.E.isGapless=function(){return!1}; g.E.isHdr=function(){return!1}; g.E.y7=function(){return!1}; g.E.Ni=function(){return!1}; g.E.Ip=function(){return!1}; g.E.isProximaLatencyEligible=function(){return!1}; g.E.O2=function(){return!0}; g.E.KR=function(){return!1}; g.E.yM=function(){return!1}; g.E.HU=function(){}; g.E.pU=function(){}; g.E.Qc=function(){}; g.E.g4=function(){}; g.E.mw=function(){}; g.E.tT=function(){}; g.E.xr=function(){}; g.E.Yp=eL(50);g.E.rT=eL(21);g.E.MZ=function(){}; g.E.pauseVideo=function(){}; g.E.prefetchKeyPlay=function(){}; g.E.playVideo=function(){return g.Y(function(e){return e.return()})}; g.E.bk=function(){}; g.E.Gu=eL(27);g.E.yJ=eL(33);g.E.Wg=function(){}; g.E.nf=function(){}; g.E.J4=function(){}; g.E.U1=function(){}; g.E.j0=function(){}; g.E.LB=function(){}; g.E.jy=function(){}; g.E.zo=function(){}; g.E.CL=function(){}; g.E.BD=function(){}; g.E.f4=function(){}; g.E.yY=function(){}; g.E.removeCueRange=function(){}; g.E.MI=function(){}; g.E.Ai=function(){return[]}; g.E.CT=function(){}; g.E.l$=function(){}; g.E.IY=function(){}; g.E.e9=function(){}; g.E.JM=function(){}; g.E.Bi=function(){}; g.E.seekTo=function(){}; g.E.sendAbandonmentPing=function(){}; g.E.sendVideoStatsEngageEvent=function(){}; g.E.s1=function(){}; g.E.setLoop=function(){}; g.E.iD=function(){}; g.E.setMediaElement=function(){}; g.E.UF=function(){}; g.E.setPlaybackRate=function(){}; g.E.Ex=function(){}; g.E.Ac=function(){}; g.E.wy=function(){}; g.E.setProximaLatencyPreference=function(){}; g.E.f0=function(){}; g.E.mU=function(){}; g.E.ZN=function(){}; g.E.tU=function(){}; g.E.n1=function(){}; g.E.setUserAudio51Preference=function(){}; g.E.vg=function(){}; g.E.SH=function(){return!1}; g.E.bq=function(){}; g.E.M2=function(){return!1}; g.E.U3=function(){}; g.E.P0=function(){}; g.E.Y9=function(){}; g.E.stopVideo=function(){}; g.E.subscribe=function(){return NaN}; g.E.N2=function(){}; g.E.togglePictureInPicture=function(){}; g.E.V4=function(){return 0}; g.E.unsubscribe=function(){return!1}; g.E.r4=function(){}; g.E.lr=function(){return!1}; g.E.Yx=function(){}; g.E.Aw=function(){}; g.E.Pw=function(){};g.b(Ki,g.N);g.E=Ki.prototype;g.E.get=function(e){jZ(this);var a=this.data.find(function(r){return r.key===e}); return a?a.value:null}; g.E.set=function(e,a,r){this.remove(e,!0);jZ(this);e={key:e,value:a,expire:Infinity};r&&isFinite(r)&&(r*=1E3,e.expire=(0,g.Ov)()+r);for(this.data.push(e);this.data.length>this.B;)(r=this.data.shift())&&eF(this,r,!0);uc(this)}; g.E.remove=function(e,a){a=a===void 0?!1:a;var r=this.data.find(function(P){return P.key===e}); r&&(eF(this,r,a),g.$9(this.data,function(P){return P.key===e}),uc(this))}; g.E.removeAll=function(e){if(e=e===void 0?!1:e)for(var a=g.Z(this.data),r=a.next();!r.done;r=a.next())eF(this,r.value,e);this.data=[];uc(this)}; g.E.RH=function(){var e=this;g.N.prototype.RH.call(this);this.data.forEach(function(a){eF(e,a,!0)}); this.data=[]};g.b(g.aY,g.N);g.E=g.aY.prototype;g.E.RH=function(){for(var e=g.Z(Object.values(this.B)),a=e.next();!a.done;a=e.next())a.value.dispose();TBq(this);this.S.dispose();g.N.prototype.RH.call(this)}; g.E.Q5=function(e){return e?e===1?this.Y:this.T.getVideoData().enableServerStitchedDai&&e===2?this.T.getVideoData().X7?this.B[2]||this.T:this.T:this.B[e]||null:this.T}; g.E.sb=function(e){var a=e.cpn;e=e.playerType;if(a)a:{e=g.Z(Object.values(this.B));for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.wD()===a){a=r;break a}a=this.Z[a]||null}else a=e?this.Q5(e):this.T;return a}; g.E.RD=function(){return this.Y}; g.E.rJ=function(e){this.Y=e}; g.E.Y$=function(){return this.T}; g.E.lk=function(e){this.T=e;rZ(this)}; g.E.Vb=eL(46);g.E.UZ=eL(48);g.b(t4y,g.ra);g.E=t4y.prototype;g.E.J$=function(){}; g.E.wD=function(){return this.videoData.clientPlaybackNonce}; g.E.getVideoData=function(){if(g.ra.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state")){var e=q6q(this.cO,g.ra.prototype.getCurrentTime.call(this))||g.ra.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==e.clientPlaybackNonce&&go4(this.T,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:e.clientPlaybackNonce});return this.videoData}return q6q(this.cO,g.ra.prototype.getCurrentTime.call(this))||g.ra.prototype.getVideoData.call(this)}; g.E.getCurrentTime=function(e){var a=g.ra.prototype.getCurrentTime.call(this);if(g.ra.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state")){this.S===0?e||(a-=this.startTimeSecs):e&&(a=this.S);var r=e?this.cO.w4||g.ra.prototype.getCurrentTime.call(this):NB4(this.cO,g.ra.prototype.getCurrentTime.call(this));a!==r&&go4(this.T,"time"+(e!=null?e:!1),{time:a,ref:r,ct:e!=null?e:!1})}else a=e?this.cO.w4||a:NB4(this.cO,a);return a}; g.E.getDuration=function(){if(g.ra.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state")){var e=IrJ(this.cO,g.ra.prototype.getCurrentTime.call(this));this.duration!==e&&go4(this.T,"duration",{dur:this.duration,ref:e});return this.duration}return IrJ(this.cO,g.ra.prototype.getCurrentTime.call(this))}; g.E.q2=function(e){this.duration=e};g.B0.prototype.Y4=function(e,a){if(a===1)return this.S.get(e);if(a===2)return this.B.get(e);if(a===3)return this.T.get(e)}; g.B0.prototype.Ns=eL(58);g.B0.prototype.MJ=function(e,a,r,P){r={g2:P,Fg:r};a?this.B.set(e,r):this.S.set(e,r)}; g.B0.prototype.clearAll=function(){this.S.clear();this.B.clear();this.T.clear()}; OM3.prototype.clear=function(){this.S=[];this.B.clear();this.L.clear();this.T.clear()}; OM3.prototype.sb=function(e){var a=e.cpn;e=e.Cb;if(a&&(a=this.B.get(a))||e&&(a=(this.C?this.B:this.L).get(e)))return a}; g.b(g.hN,g.N);g.E=g.hN.prototype;g.E.onCueRangeEnter=function(e){var a=e.getId();this.gW({oncueEnter:1,cpn:a,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.XI()||0).toFixed(3)});var r=this.S.sb({cpn:a});this.gW({enterAdCueRange:1});var P=this.Mf||this.KS().cpn,B;P=(B=this.S.sb({cpn:P}))!=null?B:this.KS();r&&(B=this.playback.getCurrentTime(),r.startTimeSecs=e.start/1E3,r={EH:P,gZ:r,OH:B},yj3(this,a,e.start/1E3,B),na3(this,r))}; g.E.tQ=function(e,a){if(e===this.playback.wD())P0(this.app.DW(),this.playback,!1);else{var r=this.Lf.get(e);r?(r.S=0,r.startTimeSecs=a,P0(this.app.DW(),r,!0)):this.gW({nop_s:e})}}; g.E.onCueRangeExit=function(e){for(var a=this.playback.getCurrentTime()*1E3,r=e.getId(),P=g.Z(this.T.values()),B=P.next();!B.done;B=P.next())if(B=B.value,B.getId()!==r&&a>=B.start&&a<=B.end)return;if(r=this.S.sb({cpn:r}))a=this.playback.getCurrentTime(),P=this.KS(),P.startTimeSecs=e.end/1E3,r={EH:r,gZ:P,OH:a},yj3(this,this.playback.wD(),e.end/1E3,a),na3(this,r)}; g.E.KS=function(){return{cpn:this.playback.wD(),durationMs:0,Eb:0,playerType:1,g1:0,videoData:this.playback.getVideoData(),errorCount:0,ph:""}}; g.E.seekTo=function(e,a,r,P){e=e===void 0?0:e;a=a===void 0?{}:a;r=r===void 0?!1:r;P=P===void 0?null:P;Xj(this,this.Mf);if(this.playback.getVideoData().w1()&&e<=this.w4)this.playback.pauseVideo(),this.w4=0,TKO(this,e);else if(this.HW=!0,r)$Zy(this,e,a);else{r=this.app.Y$();var B=r===this.Eo?this.PW:null;yY(this,!1);this.HA=e;this.rP=a;P!=null&&this.k$.start(P);r&&(this.PW=B||r.getPlayerState(),r.Y9(a),this.Eo=r)}}; g.E.RH=function(){yY(this,!1);S6L(this);soJ(this);g.N.prototype.RH.call(this)}; g.E.yA=function(e){this.bv=e;this.gW({swebm:e})}; g.E.QY=function(e,a,r){if(r&&a){var P=this.C.get(e);if(P){P.locations||(P.locations=new Map);var B=Number(a.split(";")[0]);r=new g.v2(r);this.gW({hdlredir:1,itag:a,seg:e,hostport:Sj(r)});P.locations.set(B,r)}}}; g.E.Bh=function(e,a,r,P,B,h){var c=P===3,y=M4j(this,e,a,P,r,h);if(!y){TL(this,a,c);var T=g.mZJ(this,a)?"undec":"ncp";this.gW({gvprp:T,mt:e,seg:a,tt:P,itag:r,ce:h});return null}c||this.C.set(a,y);h=y.ph;var X;P=((X=this.Y4(a-1,P,B))==null?void 0:X.g2)||"";P===""&&this.gW({eds:1});X=uAL(this,y.ssdaiAdsConfig);B=this.playback.getVideoData();var f;c=((f=B.T)==null?void 0:f.containerType)||0;f=B.BB[c];y=y.QI&&a>=y.QI?y.QI:void 0;f={PB:h?rj3(this,h):[],adsConfig:X,g2:P,EO:y,qW:Y8(f.split(";")[0]),F2:f.split(";")[1]|| ""};y={GT:f};this.XM&&(e={gvprpro:"v",sq:a,mt:e.toFixed(3),itag:r,acpns:((T=f.PB)==null?void 0:T.join("_"))||"none",abid:h},this.gW(e));return y}; g.E.R3=function(e){a:{if(!this.Wr){var a=joz(this,e);if(!(this.playback.getVideoData().w1()&&(a==null?0:a.sE)))break a}a=void 0}var r=a;if(!r)return this.gW({gvprp:"ncp",mt:e}),null;a=r.ph;var P=uAL(this,r.ssdaiAdsConfig);r=r.QI&&r.Sg&&e>=r.Sg?r.QI:void 0;var B=this.playback.getVideoData(),h,c=((h=B.T)==null?void 0:h.containerType)||0;h=B.BB[c];h={PB:a?rj3(this,a):[],adsConfig:P,EO:r,qW:Y8(h.split(";")[0]),F2:h.split(";")[1]||""};var y;e={gvprpro:"v",mt:e.toFixed(3),acpns:((y=h.PB)==null?void 0:y.join("_"))|| "none",abid:a};this.gW(e);return h}; g.E.jE=function(e,a,r,P,B,h){var c=Number(r.split(";")[0]),y=P===3;e=M4j(this,e,a,P,r,h);this.gW({gdu:1,seg:a,itag:c,pb:""+!!e});if(!e)return TL(this,a,y),null;e.locations||(e.locations=new Map);if(!e.locations.has(c)){var T,X;h=(T=e.videoData.getPlayerResponse())==null?void 0:(X=T.streamingData)==null?void 0:X.adaptiveFormats;if(!h)return this.gW({gdu:"noadpfmts",seg:a,itag:c}),TL(this,a,y),null;T=h.find(function(U){return U.itag===c}); if(!T||!T.url){var f=e.videoData.videoId;e=[];var A=g.Z(h);for(P=A.next();!P.done;P=A.next())e.push(P.value.itag);this.gW({gdu:"nofmt",seg:a,vid:f,itag:c,fullitag:r,itags:e.join(",")});TL(this,a,y);return null}e.locations.set(c,new g.v2(T.url,!0))}h=e.locations.get(c);if(!h)return this.gW({gdu:"nourl",seg:a,itag:c}),TL(this,a,y),null;h=new pW(h);this.bv&&(h.get("dvc")?this.gW({dvc:h.get("dvc")||""}):h.set("dvc","webm"));(P=(A=this.Y4(a-1,P,B))==null?void 0:A.g2)&&h.set("daistate",P);e.QI&&a>=e.QI&& h.set("skipsq",""+e.QI);(A=this.playback.getVideoData().clientPlaybackNonce)&&h.set("cpn",A);A=[];e.ph&&(A=rj3(this,e.ph),A.length>0&&h.set("acpns",A.join(",")));y||this.C.set(a,e);y=null;y=h.get("aids");P=h.ju();(P==null?void 0:P.length)>2048&&this.gW({urltoolong:1,sq:a,itag:c,len:P.length});this.XM&&(P&&(h=e.cpn,B=e.ph,h43(this,h,B),B&&!this.dW.has(B)&&(h=Prz(this,h,B),T=BKT(this,B),this.gW({iofa:h}),this.gW({noawnzd:T-h}),this.gW({acpns:A.join("."),aids:(f=y)==null?void 0:f.replace(/,/g,".")}), this.dW.add(B))),this.gW({gdu:"v",seg:a,itag:r,ast:e.Eb.toFixed(3),alen:e.durationMs.toFixed(3),acpn:e.cpn,avid:e.videoData.videoId}));return P}; g.E.X9=function(e,a,r){r=r===void 0?!1:r;var P=FBL(this,e,a);if(P){var B=void 0,h=P.ph;if(h){this.gW({skipadonsq:a,sts:r,abid:h,acpn:P.cpn,avid:P.videoData.videoId});r=this.S.T.get(h);if(!r)return;r=g.Z(r);for(h=r.next();!h.done;h=r.next())h=h.value,h.QI=a,h.Sg=e,h.Eb>P.Eb&&(B=h)}Xj(this,this.Mf);this.L=P.cpn;KBy(this);e=this.playback.getCurrentTime();e4O(this,P,B,e,e,!1,!0);oaL(this)}}; g.E.x8=function(){for(var e=g.Z(this.S.S),a=e.next();!a.done;a=e.next())a=a.value,a.QI=NaN,a.Sg=NaN;KBy(this);this.gW({rsac:"resetSkipAd",sac:this.L});this.ym.delete(this.L);this.L=""}; g.E.Y4=function(e,a,r){return this.oH.Y4(e,a,r)}; g.E.Ns=eL(57); g.E.MJ=function(e,a,r,P,B,h,c,y,T){P.length>0&&this.gW({onssinfo:1,sq:e,start:a.toFixed(3),cpns:P.join(","),ds:B.join(","),isVideo:c?1:0});T&&this.oH.MJ(e,c,y,T);if(c){if(P.length&&B.length)for(this.ym.has(P[0])&&this.gW({skipfail:1,sq:e,acpn:P[0]}),e=a+this.yn(),r=0;r0&&(this.bL=0,this.Mf="",this.iW.X("html5_huli_ssdai_use_playback_state")&&this.tQ(this.playback.wD(),0),this.api.publish("serverstitchedvideochange"));this.playback.Ks(r,P);return!0}; g.E.QM=function(){this.gW({rstdaist:1});this.oH.clearAll()}; g.E.E1=function(e){var a;if(e!==((a=this.Z)==null?void 0:a.identifier))this.gW({ignorenoad:e});else{this.Te.add(e);this.gW({noadrcv:e});var r;((r=this.Z)==null?void 0:r.identifier)===e&&oY(this)}}; g.E.qz=function(e){if(this.Wr)return this.gW({dai_disabled:e.event}),!1;if(this.playback.getVideoData().w1()&&(e.event==="continue"||e.event==="stop"))return!1;var a=i6(this.api.eO());if(a=a?a.qz(e):!1)this.B={q1:e.identifier,wF:e.startSecs};else if(this.B&&this.B.q1===e.identifier&&e.startSecs>this.B.wF+1){this.gW({cueStChg:e.identifier,oldSt:this.B.wF.toFixed(3),newSt:e.startSecs.toFixed(3),abid:this.B.ZG});if(this.B.ZG){var r=e.startSecs-this.B.wF,P=this.S.T.get(this.B.ZG);if(P){P=g.Z(P);for(var B= P.next();!B.done;B=P.next())B=B.value,B.Eb>=0&&(B.Eb+=r*1E3,this.iW.X("html5_ssdai_update_timeline_on_start_time_change")&&(B.g1+=r*1E3),this.gW({newApEt:B.Eb,newApPrt:B.g1,acpn:B.cpn}))}}this.B.wF=e.startSecs}this.iW.X("html5_ssdai_log_missing_ad_config_reason")&&(a?this.Cf.add(e.identifier):this.Cf.has(e.identifier)&&this.Cf.delete(e.identifier));return a}; g.E.gr=function(e){var a="";e?e.event==="unknown"?a="unknown":this.Cf.has(e.identifier)?this.B&&this.B.q1===e.identifier?this.B.q1===e.identifier?a="pending":va(this.GQ,function(r){return r.identifier===e.identifier})||(a="noAdsAdded"):a="wrongAdBreakInfo":a="unscheduled":a="noCuepoint"; return a}; g.E.Ss=function(e){return this.Wr?!1:!!joz(this,e)}; g.E.nx=function(e){var a=this;if(this.iW.X("html5_lifa_ignore_multiple_skips")&&this.TQ)return this.gW({ufs_ad:this.L,ufs_cur:this.Mf,ufs_cont:this.KS().cpn}),!1;Xj(this,this.Mf);this.playback.pauseVideo();var r=this.playback.getCurrentTime(),P=this.S.sb({cpn:this.Mf});if(!P)return this.gW({skipFail:r}),!1;this.L=this.Mf;this.HW=!1;cjq(this,P.ph);XLj(this,P,this.KS(),e);TKO(this,r,{seekSource:89,ze:"lifa_skip"});this.TQ||(this.TQ=this.events.j(this.api,"progresssync",function(){O4(a.api.SM(),(0,g.Ov)(), "ad_to_video");a.TQ&&(a.events.Xo(a.TQ),a.TQ=null)})); return!0}; g.E.gW=function(e,a){((a===void 0?0:a)||this.XM||this.playback.getVideoData().w1())&&this.playback.nf("sdai",e)}; var LBL=0;g.b(Ajy,g.N);g.E=Ajy.prototype;g.E.onCueRangeEnter=function(e){if(this.S===this.app.Y$()){var a=this.C.get(e);a?tIL(this,a.target,a.iy,e):this.LB("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:e.toString()})}else if(a=this.T.find(function(B){return B.Ki.tR===e})){var r=a.Ki,P=r.target; r=r.iy;P?tIL(this,P,r,e):b9N(this,a.g1,r,e)}}; g.E.onQueuedVideoLoaded=function(){var e=this.D;CF(this);if(e){if(!UJ(this,e)){var a=this.app.Y$();this.LB("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:a==null?void 0:a.getVideoData().clientPlaybackNonce,ccpn:""+e.playerVars.cpn})}this.app.Y$().addCueRange(e.Ki.tR)}}; g.E.seekTo=function(e,a,r,P){e=e===void 0?0:e;a=a===void 0?{}:a;P=P===void 0?null:P;if(r===void 0?0:r)fvz(this,e,a);else{r=this.app.Y$()||null;var B=r===this.L?this.Z:null;GL(this,!1);this.HW=e;this.N=a;P!=null&&this.Y.start(P);r&&(this.Z=B||r.getPlayerState(),r.Y9(),this.L=r)}}; g.E.We=function(e){g.TH(e,128)&&d24(this)}; g.E.isManifestless=function(){return w3(this.S.getVideoData())}; g.E.RH=function(){GL(this,!1);D2I(this);g.N.prototype.RH.call(this)}; g.E.LB=function(e,a){this.S.LB(new g.f_(e,a))}; var U2j=0;var VI3="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.b(EJ,g.N);EJ.prototype.Jx=function(e){if(e)return this.T.get(e)}; EJ.prototype.RH=function(){this.S.removeAll();this.T.removeAll();g.N.prototype.RH.call(this)};g.fQN=YH(function(){var e=window.AudioContext||window.webkitAudioContext;try{return new e}catch(a){return a.name}});g.b(Lyz,g.v);g.E=Lyz.prototype;g.E.kE=function(){g.PD(this.element,g.xN.apply(0,arguments))}; g.E.l$=function(){this.HO&&(this.HO.removeEventListener("focus",this.nm),g.t5(this.HO),this.HO=null)}; g.E.r5=function(){this.wP();var e=this.app.G();e.O8||this.kE("tag-pool-enabled");e.Z&&this.kE(g.to.HOUSE_BRAND);e.playerStyle==="gvn"&&(this.kE("ytp-gvn"),this.element.style.backgroundColor="transparent");e.h9&&(this.hg=g.jA("yt-dom-content-change",this.resize,this));this.j(window,"orientationchange",this.resize,this);this.j(window,"resize",this.resize,this)}; g.E.Na=function(e){g.Pb(this.app.G());this.w8=!e;bV(this)}; g.E.resize=function(){if(this.HO){var e=this.TA();if(!e.isEmpty()){var a=g.eS(this.app.G().experiments,"html5_android_mweb_resize_delay")>0,r=this.app.j1.isFullscreen();if(a&&r&&Nr()){var P;(P=this.tf)==null||P.start()}a=!g.sZ(e,this.Si.getSize());r=z4O(this);a&&(this.Si.width=e.width,this.Si.height=e.height);e=this.app.G();(r||a||this.aI||e.h9)&&this.app.j1.publish("resize",this.getPlayerSize())}}}; g.E.zm=function(e,a){this.updateVideoData(a)}; g.E.updateVideoData=function(e){if(this.HO){var a=this.app.G();HU&&(this.HO.setAttribute("x-webkit-airplay","allow"),e.title?this.HO.setAttribute("title",e.title):this.HO.removeAttribute("title"));this.HO.setAttribute("controlslist","nodownload");a.No&&e.videoId&&(this.HO.poster=e.EG("default.jpg"))}a=g.RG(e,"yt:bgcolor");this.o8.style.backgroundColor=a?a:"";this.cn=ru(g.RG(e,"yt:stretch"));this.h7=ru(g.RG(e,"yt:crop"),!0);g.cD(this.element,"ytp-dni",e.nB);this.app.G().X("delhi_modern_web_player")&& (e=this.app.j1.isHdr()?"none":"initial",this.element.style.setProperty("--yt-frosted-glass-backdrop-filter-override",e));this.resize()}; g.E.setGlobalCrop=function(e){this.ET=ru(e,!0);this.resize()}; g.E.setCenterCrop=function(e){this.RB=e;this.resize()}; g.E.kp=function(){}; g.E.getPlayerSize=function(){var e=this.app.G(),a=this.app.j1.isFullscreen(),r=e.externalFullscreen&&g.uP(e);if(a&&Nr()&&!r)return new g.Sr(window.outerWidth,window.outerHeight);r=!isNaN(this.nj.width)&&!isNaN(this.nj.height);var P=this.app.G().X("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.G().X("web_watch_enable_fs_squeezeback_panels");if(a&&!r&&P)return new g.Sr(this.element.clientWidth,this.element.clientHeight);if(a||e.vj){if(window.matchMedia){e="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Zl&&this.Zl.media===e||(this.Zl=window.matchMedia(e));var B=this.Zl&&this.Zl.matches}if(B)return new g.Sr(window.innerWidth,window.innerHeight)}else if(r)return this.nj.clone();return new g.Sr(this.element.clientWidth,this.element.clientHeight)}; g.E.TA=function(){var e=this.app.G().X("enable_desktop_player_underlay"),a=this.getPlayerSize(),r=g.eS(this.app.G().experiments,"player_underlay_min_player_width");return e&&this.VO&&a.width>r?(e=g.eS(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.Sr(Math.min(a.height*this.getVideoAspectRatio(),a.width*e),Math.min(a.height,a.width*e/this.getVideoAspectRatio()))):a}; g.E.getVideoAspectRatio=function(){return isNaN(this.cn)?wLL(this):this.cn}; g.E.getVideoContentRect=function(e){var a=this.TA();e=pL3(this,a,this.getVideoAspectRatio(),e);return new g.I8((a.width-e.width)/2,(a.height-e.height)/2,e.width,e.height)}; g.E.zf=function(e){this.VO=e;this.resize()}; g.E.Ev=function(){return this.K4}; g.E.onMutedAutoplayChange=function(){bV(this)}; g.E.setInternalSize=function(e){g.sZ(this.nj,e)||(this.nj=e,this.resize())}; g.E.RH=function(){this.hg&&g.u4(this.hg);this.l$();g.v.prototype.RH.call(this)};g.E=x2O.prototype;g.E.click=function(e,a){this.elements.has(e);this.S.has(e);var r=g.bs();r&&e.visualElement&&g.js(r,e.visualElement,a)}; g.E.createClientVe=function(e,a,r,P){var B=this;P=P===void 0?!1:P;this.elements.has(e);this.elements.add(e);r=CeL(r);e.visualElement=r;var h=g.bs(),c=g.Er();h&&c&&(g.CK("combine_ve_grafts")?P2(aX(),r,c):g.s7(g.xZ)(void 0,h,c,r));a.addOnDisposeCallback(function(){B.elements.has(e)&&B.destroyVe(e)}); P&&this.T.add(e)}; g.E.createServerVe=function(e,a,r){var P=this;r=r===void 0?!1:r;this.elements.has(e);this.elements.add(e);a.addOnDisposeCallback(function(){P.destroyVe(e)}); r&&this.T.add(e)}; g.E.destroyVe=function(e){this.elements.has(e);this.elements.delete(e);this.B.delete(e);this.S.delete(e);this.T.delete(e)}; g.E.jz=function(e,a){this.clientPlaybackNonce!==a&&(this.clientPlaybackNonce=a,rp(aX(),e),Iv4(this))}; g.E.setTrackingParams=function(e,a){this.elements.has(e);a&&(e.visualElement=g.C4(a))}; g.E.Nr=function(e,a,r){this.elements.has(e);a?this.S.add(e):this.S.delete(e);var P=g.bs(),B=e.visualElement;this.T.has(e)?P&&B&&(a?g.F_(P,[B]):g.M9(P,[B])):a&&!this.B.has(e)&&(P&&B&&g.ma(P,B,void 0,r),this.B.add(e))}; g.E.hasVe=function(e){return this.elements.has(e)};g.b(g.gZ,g.N);g.gZ.create=function(e,a,r,P){try{var B=typeof e==="string"?e:"player"+g.oZ(e),h=QD[B];if(h){try{h.dispose()}catch(y){g.D6(y)}QD[B]=null}var c=new g.gZ(e,a,r,P);c.addOnDisposeCallback(function(){QD[B]=null;c.Vk&&c.Vk()}); return QD[B]=c}catch(y){throw g.D6(y),(y&&y instanceof Error?y:Error(String(y))).stack;}}; g.E=g.gZ.prototype;g.E.XU=function(){return this.visibility}; g.E.rJ=function(e){var a=this.RD();if(e!==a){e.getVideoData().autonavState=a.getVideoData().autonavState;a.r4(this.Ha,this);var r=a.getPlaybackRate();a.dispose();this.wg.rJ(e);e.setPlaybackRate(r);e.N2(this.Ha,this);m2j(this)}}; g.E.jM=function(){this.qy||(this.qy=g.v3(ez(),Yhj()));return this.qy}; g.E.l$=function(e){if(this.mediaElement){this.u1&&(this.events.Xo(this.u1),this.u1=null);g.du(this.nQ);this.Y$().l$(!0,!1,e);this.template.l$();try{this.X("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.tM()}catch(a){g.VJ(a)}this.mediaElement=null}}; g.E.lk=function(e,a,r){r=r===void 0?!1:r;if(e!==this.Y$()){this.logger.debug(function(){return"start set presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId}); var P=null;r||(r=this.Y$(),P=r.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),pk(this.vZ,3),qC(this,"cuerangesremoved",r.AR()),this.Om&&!e.isGapless()&&r.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),r=e.SH()&&r.SH(),this.WA.Fh("iv_s"),rY4(this,r));e.getPlayerType()===1&&this.rJ(e);abj(this,e);this.wg.lk(e);this.mediaElement&&e.setMediaElement(this.mediaElement);e.N2(this.i6,this);e.yM()?$Vy(this,"setPresenting",!1):(this.zm("newdata",e,e.getVideoData()), P&&!g.pZ(P,e.getPlayerState())&&this.OI(new g.n$(e.getPlayerState(),P)),a=a&&e.getPlayerType()===1,e.Ni()&&!a&&this.zm("dataloaded",e,e.getVideoData()),(a=(a=e.getVideoData().T)&&a.video)&&this.j1.cG("onPlaybackQualityChange",a.quality),qC(this,"cuerangesadded",e.AR()),a=e.getPlayerState(),g.S(a,2)?eUL(this):g.S(a,8)?e.playVideo():e.y7()&&e.pauseVideo(),a=this.RD(),e.getPlayerType()===2&&(e.getVideoData().T8=a.getVideoData().clientPlaybackNonce),e.getPlayerType()!==2||this.IU()||(P=e.getVideoData(), a.bk(P.clientPlaybackNonce,P.mJ||"",P.breakType||0,P.h1,P.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.E.cT=function(){if(this.RD()!==this.Y$()){var e=this.Y$();this.logger.debug(function(){return"release presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId}); this.lk(this.RD())}}; g.E.DW=function(){return this.wg}; g.E.sb=function(e){return this.wg.sb(e)}; g.E.Q5=function(e){return this.wg.Q5(e)}; g.E.RD=function(){return this.wg.RD()}; g.E.Y$=function(){return this.wg.Y$()}; g.E.A8=eL(44);g.E.fQM=function(){Dg(this)||(this.logger.debug("application playback ready"),this.jd(5))}; g.E.NWM=function(){if(!Dg(this)){this.logger.debug("playback ready");dVj(this);var e=this.Y$(),a=e.getPlayerState();e.y7()?this.pauseVideo():a.isOrWillBePlaying()&&this.playVideo()}}; g.E.canPlayType=function(e){return Gs(e)}; g.E.G=function(){return this.iW}; g.E.getVideoData=function(){return this.Y$().getVideoData()}; g.E.m$=eL(11);g.E.TX=function(){return this.RD().getVideoData()}; g.E.getVideoLoadedFraction=function(e){return(e=this.sb({playerType:e}))?e.getVideoLoadedFraction():this.wg.S.getVideoLoadedFraction()}; g.E.MF=function(){return this.template}; g.E.eO=function(){return this.vZ}; g.E.SM=function(){return this.WA}; g.E.SP=function(e,a,r){(a=this.sb({playerType:a===void 0?1:a}))&&a.s1(e,void 0,r)}; g.E.Zh=function(){var e=this.vZ.Zh();this.j1.publish("videoStatsPingCreated",e);return e}; g.E.getVolume=function(){return Math.round(this.j1.getVolume())}; g.E.isMuted=function(){return this.j1.isMuted()}; g.E.Qf=function(){if(this.RD()===this.Y$()&&this.ZD)return this.ZD.postId}; g.E.pGQ=function(){var e=this;this.X("use_rta_for_player")||(g.Uh(this.iW)?g.$G(this.iW,g.ok(this.getVideoData())).then(function(a){aS(ez(),a);U5I(e.getVideoData(),e.iW,e.jM())}):U5I(this.getVideoData(),this.iW,this.jM()))}; g.E.Z2=function(e){this.j1.publish("poTokenVideoBindingChange",e)}; g.E.C6=function(e){this.j1.publish("d6de4videobindingchange",e)}; g.E.Pc=function(){this.MN&&this.MN.Pc()}; g.E.dA=function(e){this.MN=e}; g.E.LL=function(e){if(e===1){this.WA.tick("vr");var a=this.Y$();a.UB();QYy(this.WA,a.getVideoData(),kN3(this));hv4(this.vZ)}a=this.iW;if(JZ(a)&&a.Y||g.hZ(a)){var r;(((r=this.Y$().getVideoData())==null?0:r.enableServerStitchedDai)||!this.IU())&&this.j1.cG("onAdStateChange",e)}}; g.E.setLoopVideo=function(e){var a=this.Y$();a===this.RD()&&a.tb()!==e&&(a.setLoop(e),this.j1.qF("onLoopChange",e))}; g.E.getLoopVideo=function(){return this.Y$().tb()}; g.E.setLoopRange=function(e){var a=!1;!!this.ZD!==!!e?a=!0:this.ZD&&e&&(a=this.ZD.startTimeMs!==e.startTimeMs||this.ZD.endTimeMs!==e.endTimeMs||this.ZD.postId!==e.postId||this.ZD.type!==e.type);if(a){a=this.Y$();J3(a.getVideoData())&&a.nf("slr",{et:(e==null?void 0:e.endTimeMs)||-1});a=this.RD();a.Ai("applooprange");if(e){var r=new g.v_(e.startTimeMs,e.endTimeMs,{id:"looprange",namespace:"applooprange"});a.addCueRange(r)}else{this.TX().clipConfig=void 0;var P;((r=this.ZD)==null?void 0:r.type)!=="repeatChapter"|| isNaN(Number((P=this.ZD)==null?void 0:P.loopCount))||(r={loopCount:String(this.ZD.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.BU("repeatChapterLoopEvent",r))}this.ZD=e;this.j1.qF("onLoopRangeChange",e||void 0);this.RD()===this.Y$()&&(this.F4(),a.B_())}}; g.E.getLoopRange=function(){return this.ZD}; g.E.F4=function(){var e="",a=this.RD();this.ZD?a!==this.Y$()?e="pnea":T53(this,a.getCurrentTime())&&(this.ZD.loopCount=0,e="ilr"):e="nlr";var r=this.Y$();if(J3(r.getVideoData()))if(this.X("html5_gapless_log_loop_range_info")){var P,B;r.nf("slrre",{rej:e,ct:a.getCurrentTime(),lst:(P=this.ZD)==null?void 0:P.startTimeMs,let:(B=this.ZD)==null?void 0:B.endTimeMs})}else r.nf("slrre",{});e||fbO(this)}; g.E.setPlaybackRate=function(e,a){if(!isNaN(e)){e=jvy(this,e);var r=this.RD();r.getPlaybackRate()!==e&&(r.setPlaybackRate(e),a&&!this.iW.L&&g.Vy("yt-player-playback-rate",e),this.j1.cG("onPlaybackRateChange",e))}}; g.E.getCurrentTime=function(e,a){a=a===void 0?!0:a;var r=this.wg.K5;if(r)return r.getCurrentTime();var P=e===2&&this.getVideoData().enableServerStitchedDai;r=null;P?r=this.Y$():r=this.sb({playerType:e});return r?P&&this.Nd?(e=this.wg.D)?e.getCurrentTime(a):r.getCurrentTime():a?(a=JN(this,r),iV(this,a.getCurrentTime(),a)):r.getCurrentTime():this.wg.S.getCurrentTime()}; g.E.ZP=function(){var e=this.sb({playerType:void 0});if(!e)return this.wg.S.ZP();e=JN(this,e);return iV(this,e.ZP(),e)}; g.E.getDuration=function(e,a){a=a===void 0?!0:a;var r=this.wg.K5;if(r)return r.getDuration();r=this.getVideoData();var P=e===2&&r.enableServerStitchedDai,B=null;P?B=this.Y$():B=this.sb({playerType:e});if(!B)return this.wg.S.getDuration();if(r.hasProgressBarBoundaries()&&!P){var h,c=Number((h=r.progressBarStartPosition)==null?void 0:h.utcTimeMillis),y;h=Number((y=r.progressBarEndPosition)==null?void 0:y.utcTimeMillis);if(!isNaN(c)&&!isNaN(h))return(h-c)/1E3}if(J3(r)&&!r.isLivePlayback)return wZ(this, e);if(a)return e=dZ(this,B),iV(this,e.getDuration(),e);if(P&&this.Nd){if(this.X("html5_huli_ssdai_use_playback_state"))return e=this.wg,e=e.L===e.D?e.L:null,(e==null?void 0:e.getDuration())||0;var T;return((T=this.wg.D)==null?void 0:T.getDuration())||0}return B.getDuration()}; g.E.BZ=function(e){var a=this.sb({playerType:e});return a?this.IU(a)?(a=dZ(this,a),a.BZ()-a.getCurrentTime()+this.getCurrentTime(e)):a.BZ():this.wg.S.BZ()}; g.E.finishSegmentByCpn=function(){return[]}; g.E.r5=function(){this.template.r5();var e=this.j1;e.state.element=this.template.element;var a=e.state.element,r;for(r in e.state.S)e.state.S.hasOwnProperty(r)&&(a[r]=e.state.S[r]);(e=YmT(this.template.element))&&this.events.j(this.template,e,this.onFullscreenChange)}; g.E.getDebugText=function(e){var a=this.RD().vA(e),r=this.Y$();if(r!==this.RD()){r=r.vA(e);for(var P=g.Z(Object.keys(r)),B=P.next();!B.done;B=P.next())B=B.value,a["ad"+B]=r[B];if(e){r=a;P={};if(B=Bo(document,"movie_player"))P.bounds=B.getBoundingClientRect(),P["class"]=B.className;B={};var h=g.nO("video-ads");h?(lbj(h,B),B.html=h.outerHTML):B.missing=1;h={};var c=g.nO("videoAdUiSkipContainer"),y=g.nO("ytp-ad-skip-button-container"),T=g.nO("ytp-skip-ad-button"),X=c||y||T;X?(lbj(X,h),h.ima=c?1:0,h.bulleit= y?1:0,h.component=T?1:0):h.missing=1;P=JSON.stringify({player:P,videoAds:B,skipButton:h});r.ad_skipBtnDbgInfo=P}}e&&this.mediaElement&&(a["0sz"]=""+(+m4(this.mediaElement.getSize())===0),a.op=this.mediaElement.jl("opacity"),r=this.mediaElement.X$().y+this.mediaElement.getSize().height,a.yof=""+(+r<=0),a.dis=this.mediaElement.jl("display"));e&&((e=(0,g.yE)())&&(a.gpu=e),(e=this.iW.playerStyle)&&(a.ps=e),this.iW.Uo&&(a.webview=1),(e=this.webPlayerContextConfig.jsUrl)&&(a.js=e));a.debug_playbackQuality= this.j1.getPlaybackQuality(1);a.debug_date=(new Date).toString();a.origin=window.origin;a.timestamp=Date.now();delete a.uga;delete a.q;return JSON.stringify(a,null,2)}; g.E.getFeedbackProductData=function(){var e={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:n[34]},a=this.getPlayerStateObject().xu;a&&(e.player_error_code=a.errorCode,e.player_error_details=JSON.stringify(a.errorDetail));return e}; g.E.getPresentingPlayerType=function(e){if(this.appState===1)return 1;if(Dg(this))return 3;var a;return e&&((a=this.Nd)==null?0:HML(a,this.getCurrentTime()))?2:this.Y$().getPlayerType()}; g.E.x5=function(){return!1}; g.E.getPlayerStateObject=function(e){var a=this.wg.K5;return a?a.getPlayerState():this.sb({playerType:e}).getPlayerState()}; g.E.getAppState=function(){return this.appState}; g.E.BgP=function(e){switch(e.type){case "loadedmetadata":this.Yd.start();e=g.Z(this.ZC);for(var a=e.next();!a.done;a=e.next())a=a.value,OI3(this,a.id,a.p7$,a.SGQ,void 0,!1);this.ZC=[];break;case "loadstart":this.WA.Fh("gv");break;case "progress":case "timeupdate":oV(e.target.vV())>=2&&this.WA.Fh("l2s");break;case "playing":g.kG&&this.Yd.start();if(g.Uh(this.iW))e=!1;else{a=g.mu(this.eO());e=this.mediaElement.jl("display")==="none"||m4(this.mediaElement.getSize())===0;var r=tN(this.template),P=this.Y$().getVideoData(), B=g.L$(this.iW);P=Do(P);a=!r||a||B||P||this.iW.k$;e=e&&!a}e&&(e=this.Y$(),e.HU(),this.getVideoData().sM||(this.getVideoData().sM=1,this.gh(),e.playVideo()))}}; g.E.VOP=function(e){this.j1.Og("onLoadProgress",e)}; g.E.bbW=function(){this.j1.publish("playbackstalledatstart")}; g.E.ohQ=function(e,a){this.j1.publish("sabrCaptionsDataLoaded",e,a)}; g.E.qbH=function(e){this.Y$().mU(e)}; g.E.yCM=function(e){this.Y$().f0(e)}; g.E.ObQ=function(e){e=JN(this,this.Y$());e=iV(this,e.getCurrentTime(),e);this.j1.cG("onVideoProgress",e);this.iW.SQ&&bIL(this,this.visibility.kL())&&this.pauseVideo()}; g.E.YMW=function(){this.j1.cG("onAutoplayBlocked");var e=this.Y$().getVideoData();e&&(e.Ed=!0);this.X("embeds_enable_autoplay_and_visibility_signals")&&g.uP(this.iW)&&(e={autoplayBrowserPolicy:gp(),autoplayIntended:Z9(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.BU("embedsAutoplayStatusChanged",e))}; g.E.uoW=function(){this.j1.publish("progresssync")}; g.E.r9r=function(){this.j1.Og("onPlaybackPauseAtStart")}; g.E.mFP=function(e){if(this.getPresentingPlayerType()===1){g.TH(e,1)&&!g.S(e.state,64)&&this.TX().isLivePlayback&&this.RD().isAtLiveHead()&&this.j1.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.TH(e,2)){if(this.ZD&&this.ZD.endTimeMs>=(this.getDuration()-1)*1E3){fbO(this);return}eUL(this)}if(g.S(e.state,128)){var a=e.state;this.cancelPlayback(5);a=a.xu;JSON.stringify({errorData:a,debugInfo:this.getDebugText(!0)});this.j1.cG("onError",D5L(a.errorCode));this.j1.Og("onDetailedError",{errorCode:a.errorCode, errorDetail:a.errorDetail,message:a.errorMessage,messageKey:a.LX,cpn:a.cpn});(0,g.Ov)()-this.iW.sx>6048E5&&this.j1.Og("onReloadRequired")}a={};if(e.state.isPlaying()&&!e.state.isBuffering()&&!VA("pbresume","ad_to_video")&&VA("_start","ad_to_video")){var r=this.getVideoData();a.clientPlaybackNonce=r.clientPlaybackNonce;r.videoId&&(a.videoId=r.videoId);g.JA(a,"ad_to_video");dL("pbresume",void 0,"ad_to_video");hv4(this.vZ)}this.j1.publish("applicationplayerstatechange",e)}}; g.E.OI=function(e){this.wg.K5||this.j1.publish("presentingplayerstatechange",e)}; g.E.We=function(e){kS(this,zW(e.state));g.S(e.state,1024)&&this.j1.isMutedByMutedAutoplay()&&(LF(this,{muted:!1,volume:this.tH.volume},!1),YS(this,!1))}; g.E.onPlayerRequestSent=function(e){this.j1.qF("onPlayerRequestSent",e)}; g.E.F0=function(e,a){e==="newdata"&&m2j(this);this.j1.publish("applicationvideodatachange",e,a)}; g.E.drd=function(e,a){this.X("html5_afmt_change_update_volume")&&dVj(this);this.j1.Og("onPlaybackAudioChange",this.j1.getAudioTrack().yX.name);this.j1.publish("internalaudioformatchange",this.j1.getAudioTrack().yX.id,a)}; g.E.ghW=function(e){var a=this.Y$().getVideoData();e===a&&this.j1.cG("onPlaybackQualityChange",e.T.video.quality)}; g.E.vQ=function(){var e=this.wg.B[2]||null;e&&(e=e.getVideoData(),this.Y$().nf("ssdai",{cleanaply:1,acpn:e==null?void 0:e.clientPlaybackNonce,avid:e.videoId,isDai:this.TX().enableServerStitchedDai?1:0}),delete this.wg.B[2])}; g.E.Tgz=function(e,a){this.zm(e,this.Y$(),a)}; g.E.zm=function(e,a,r){this.logger.debug(function(){return"on video data change "+e+", player type "+a.getPlayerType()+", vid "+r.videoId}); this.iW.UM()&&a.nf("vdc",{type:e,vid:r.videoId||"",cpn:r.clientPlaybackNonce||""});a===this.RD()&&(this.iW.L5=r.oauthToken);a===this.RD()&&(this.getVideoData().enableServerStitchedDai&&!this.Nd?(this.RD().nf("sdai",{initSstm:1}),this.Nd=new g.hN(this.j1,this.iW,this.RD(),this)):!this.getVideoData().enableServerStitchedDai&&this.Nd&&(this.Nd.dispose(),this.Nd=null));if(e==="newdata")this.logger.debug("new video data, destroy modules"),pk(this.vZ,2),this.j1.publish("videoplayerreset",a);else{if(!this.mediaElement)return; e==="dataloaded"&&(this.RD()===this.Y$()?(TF(r.gP,r.Ot),cYj(this)):B5j(this));a.getPlayerType()===1&&(this.iW.Cf&&WEj(this),this.getVideoData().isLivePlayback&&!this.iW.Fx&&this.SX("html5.unsupportedlive",2,"DEVICE_FALLBACK"),r.isLoaded()&&((wz4(r)||this.getVideoData().Fx)&&this.j1.publish("legacyadtrackingpingchange",this.getVideoData()),r.hasProgressBarBoundaries()&&UVT(this)));this.j1.publish("videodatachange",e,r,a.getPlayerType())}this.j1.cG("onVideoDataChange",{type:e,playertype:a.getPlayerType()}); this.F4();var P=r.Pg;P?this.Uf.jz(P,r.clientPlaybackNonce):Iv4(this.Uf)}; g.E.QW=function(){$S(this,null);this.j1.Og("onPlaylistUpdate")}; g.E.l51=function(e){delete this.C4[e.getId()];this.RD().removeCueRange(e);a:{e=this.getVideoData();var a,r,P,B,h,c,y,T,X,f,A=((a=e.Cf)==null?void 0:(r=a.contents)==null?void 0:(P=r.singleColumnWatchNextResults)==null?void 0:(B=P.autoplay)==null?void 0:(h=B.autoplay)==null?void 0:h.sets)||((c=e.Cf)==null?void 0:(y=c.contents)==null?void 0:(T=y.twoColumnWatchNextResults)==null?void 0:(X=T.autoplay)==null?void 0:(f=X.autoplay)==null?void 0:f.sets);if(A)for(a=g.Z(A),r=a.next();!r.done;r=a.next())if(r= r.value,B=P=void 0,r=r.autoplayVideo||((P=r.autoplayVideoRenderer)==null?void 0:(B=P.autoplayEndpointRenderer)==null?void 0:B.endpoint),P=g.H(r,g.g3),h=B=void 0,r!=null&&((B=P)==null?void 0:B.videoId)===e.videoId&&((h=P)==null?0:h.continuePlayback)){e=r;break a}e=null}(a=g.H(e,g.g3))&&this.j1.qF("onPlayVideo",{sessionData:{autonav:"1",itct:e==null?void 0:e.clickTrackingParams},videoId:a.videoId,watchEndpoint:a})}; g.E.jd=function(e){var a=this;e!==this.appState&&(this.logger.debug(function(){return"app state change "+a.appState+" -> "+e}),e===2&&this.getPresentingPlayerType()===1&&(kS(this,-1),kS(this,5)),this.appState=e,this.j1.publish("appstatechange",e))}; g.E.SX=function(e,a,r,P,B){this.RD().Ex(e,a,r,P,B)}; g.E.fT=eL(13);g.E.isAtLiveHead=function(e,a){a=a===void 0?!1:a;var r=this.sb({playerType:e});if(!r)return this.wg.S.isAtLiveHead();e=dZ(this,r);r=JN(this,r);return e!==r?e.isAtLiveHead(iV(this,r.getCurrentTime(),r),!0):e.isAtLiveHead(void 0,a)}; g.E.Qa=function(){var e=this.sb({playerType:void 0});return e?dZ(this,e).Qa():this.wg.S.Qa()}; g.E.seekTo=function(e,a,r,P,B){a=a!==!1;if(P=this.sb({playerType:P}))this.appState===2&&W0(this),this.IU(P)?zL(this)?this.Nd.seekTo(e,{seekSource:B},a,r):this.cO.seekTo(e,{seekSource:B},a,r):P.seekTo(e,{k9:!a,zM:r,ze:"application",seekSource:B})}; g.E.seekBy=function(e,a,r,P){this.seekTo(this.getCurrentTime()+e,a,r,P)}; g.E.nh1=function(){this.j1.cG("SEEK_COMPLETE")}; g.E.xrf=function(){this.j1.qF("onAbnormalityDetected")}; g.E.Ruf=function(e){this.j1.qF("onSnackbarMessage",e)}; g.E.SbQ=function(e){var a=this.Y$(),r=a.getVideoData();if(this.appState===1||this.appState===2)r.startSeconds=e;this.appState===2?g.S(a.getPlayerState(),512)||W0(this):this.j1.cG("SEEK_TO",e)}; g.E.A9r=function(){this.j1.publish("airplayactivechange")}; g.E.Pvd=function(){this.j1.publish("airplayavailabilitychange")}; g.E.showAirplayPicker=function(){this.Y$().bq()}; g.E.J9Q=function(){this.j1.publish("beginseeking")}; g.E.y9f=function(){this.j1.publish("endseeking")}; g.E.getStoryboardFormat=function(e){return(e=this.sb({playerType:e}))?dZ(this,e).getStoryboardFormat():this.wg.S.getStoryboardFormat()}; g.E.b$=function(e){return(e=this.sb({playerType:e}))?dZ(this,e).getVideoData().b$():this.wg.S.b$()}; g.E.IU=function(e){e=(e||this.Y$()).getVideoData();if(zL(this))e=e===this.Nd.playback.getVideoData();else a:{var a=this.cO;if(e===a.S.getVideoData()&&a.T.length)e=!0;else{a=g.Z(a.T);for(var r=a.next();!r.done;r=a.next())if(e.Cb===r.value.Cb){e=!0;break a}e=!1}}return e}; g.E.KC=function(e,a,r,P,B,h,c,y){this.logger.debug(function(){return"Adding video to timeline id="+e.video_id+"\n lengthMs="+P+" enterTimeMs="+B}); var T="",X=zL(this);this.Y$().nf("appattl",{sstm:this.Nd?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:X});X?(r=wqq(this.Nd,e,a,r,P,B,h,c),T=(r==null?void 0:r.Cb)||"",(this.X("html5_ssdai_new_decoration_logic")||this.RD().getVideoData().O$)&&this.RD().ZN(y||"",a,(r==null?void 0:r.clientPlaybackNonce)||"")):T=EaL(this.cO,e,r,P,B,h);this.logger.debug(function(){return"Video added to timeline id="+e.video_id+" timelinePlaybackId="+T}); return T}; g.E.yg=function(e,a,r,P,B,h,c){if(zL(this)){var y,T=(y=this.Nd)==null?void 0:wqq(y,e,a,r,P,B,h,c);this.logger.debug(function(){return"Remaining video added to timeline id="+e.video_id+" timelinePlaybackId="+((T==null?void 0:T.Cb)||"")})}}; g.E.E1=function(e){this.X("html5_ssdai_new_decoration_logic")&&this.RD().ZN(e,"","");var a;(a=this.Nd)==null||a.E1(e)}; g.E.Hf=function(e,a){e=e===void 0?-1:e;a=a===void 0?Infinity:a;zL(this)||D2I(this.cO,e,a)}; g.E.XL=function(e,a,r){if(zL(this)){var P=this.Nd,B=P.S.sb({Cb:e});B?(r===void 0&&(r=B.g1),RiL(P,B,a,r)):P.cI("Invalid_timelinePlaybackId_"+e+"_specified")}else{P=this.cO;B=null;for(var h=g.Z(P.T),c=h.next();!c.done;c=h.next())if(c=c.value,c.Cb===e){B=c;break}B?(r===void 0&&(r=B.g1),JjN(P,B,a,r)):fF(P,"InvalidTimelinePlaybackId timelinePlaybackId="+e)}}; g.E.enqueueVideoByPlayerVars=function(e,a,r,P){r=r===void 0?Infinity:r;P=P===void 0?"":P;this.IU();e=new g.UT(this.iW,e);P&&(e.Cb=P);C$O(this,e,a,r)}; g.E.queueNextVideo=function(e,a,r,P,B){r=r===void 0?NaN:r;e=this.preloadVideoByPlayerVars(e,a===void 0?1:a,r,P===void 0?"":P,B===void 0?"":B);a=this.Y$();e&&(this.X("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&a.getVideoData().D&&(r=this.qt,P=this.Om.C,r.L!==e&&(r.T=a,r.L=e,r.B=1,r.S=e.getVideoData(),r.C=P,r.S.isLoaded()?r.Z():r.S.subscribe("dataloaded",r.Z,r))):(r=mF4(a,e,this.Om.C),r!=null?(a.nf("sgap",r),a.getVideoData().D&&a.XO(!1)):(e=e.getVideoData(),a=this.qt,a.S!== e&&(a.S=e,a.B=1,e.isLoaded()?a.D():a.S.subscribe("dataloaded",a.D,a)))))}; g.E.wI=function(e,a,r,P){var B=this;r=r===void 0?0:r;P=P===void 0?0:P;dZ(this,this.Y$()).iD();hi4(this.Om,e,a,r,P).then(function(){B.j1.Og("onQueuedVideoLoaded")},function(){})}; g.E.O2=function(){return this.Om.O2()}; g.E.Ny=function(e){var a=this.Om.S;return a?a.Xc(e):!1}; g.E.clearQueue=function(e,a){e=e===void 0?!1:e;a=a===void 0?!1:a;this.logger.debug("Clearing queue");this.Om.clearQueue(e,a)}; g.E.loadVideoByPlayerVars=function(e,a,r,P,B,h){a=a===void 0?1:a;var c=this.RD();if(a===2&&this.TX().enableServerStitchedDai&&c&&!c.Jb())return c.nf("lvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:a}),!1;var y=!1;c=new g.UT(this.iW,e);c.lq=h;g.OA(this.iW)&&!c.o4&&kp(this.WA);var T;h=this.WA;var X=(T=c.HW)!=null?T:"";h.timerName=X;this.WA.p_("pl_i");this.X("web_player_early_cpn")&&c.clientPlaybackNonce&&this.WA.infoGel({clientPlaybackNonce:c.clientPlaybackNonce});Tnj(c).supportsVp9Encoding===!1&& this.Y$().nf("noVp9enc",{});if(this.G().supportsGaplessShorts()){T=no4(this.Om,c,a);if(T==null){kS(this,-1);var f;((f=this.Om.S)==null?0:f.getVideoData().isAd())||NC(this);e=this.Om;e.app.G().X("html5_gapless_new_slr")?pF(e.app,"gaplessshortslooprange"):e.app.setLoopRange(null);e.app.getVideoData().rf=!0;var A;(A=e.S)==null||A.JM();var U;(U=e.S)==null||U.BD();r={ze:"gapless_to_next_video",seekSource:60,uH:e.C.S};P=g.eS(e.app.G().experiments,"html5_gapless_seek_offset");B=ooq(e);if(e.C.S){var C;c= ((C=e.B)==null?void 0:SZ(C))||{};C=c.h$;c=c.w3;c!=null&&C!=null&&(B=c-C+.001)}var G;(G=e.app.Y$())==null||G.seekTo(B+P,r);if(!e.app.getPlayerStateObject(a).isPlaying()){var O;(O=e.app.Y$())==null||O.playVideo(!0)}var d;(d=e.app.Y$())==null||d.IY();e.D();return!0}G=this.X("html5_shorts_gapless_preload_fallback");O=this.Om.S;G&&O&&!O.wP()&&(d=O.getVideoData(),this.wg.C.set(xS(a,d),O,3600));this.Om.clearQueue(G);this.Y$().nf("sgap",{f:T})}if(B){for(;c.hB.length&&c.hB[0].isExpired();)c.hB.shift();G=c.hB.length- 1;y=G>0&&B.T(c.hB[G])&&B.T(c.hB[G-1]);c.hB.push(B)}r||(e&&L_j(e)?(GF(this.iW)&&!this.eH&&(e.fetch=0),$S(this,e)):this.playlist&&$S(this,null),e&&(this.eH=ue(!1,e.external_list)));this.j1.publish("loadvideo");G=this.uC(c,a,P);y&&this.SX("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+c.hB.join()).replace(/[;:,]/g,"_"));return G}; g.E.preloadVideoByPlayerVars=function(e,a,r,P,B){a=a===void 0?1:a;r=r===void 0?NaN:r;P=P===void 0?"":P;B=B===void 0?"":B;var h=EyN(a,e,B),c=this.wg.C.get(h)||null;if(c)return this.logger.debug(function(){return"already preloaded "+h}),this.X("html5_return_playback_if_already_preloaded")?c:null; e=new g.UT(this.iW,e);B&&(e.Cb=B);return GN4(this,e,a,r,P)}; g.E.setMinimized=function(e){this.visibility.setMinimized(e);(e=nJz(this.vZ))&&(this.isMinimized()?e.load():e.unload());this.j1.publish("minimized")}; g.E.setInline=function(e){this.visibility.setInline(e)}; g.E.setInlinePreview=function(e){this.visibility.setInline(e)}; g.E.xI=function(e){tM4(this,e)||this.visibility.xI(e)}; g.E.setSqueezeback=function(e){this.visibility.setSqueezeback(e)}; g.E.uF=function(){var e,a=(e=this.mediaElement)==null?void 0:e.EM();a&&(this.iW.h6&&Ij(zC(function(){return document.exitFullscreen()}),function(){}),Ij(zC(function(){return Uu(a)}),function(){}))}; g.E.keW=function(){this.mediaElement.EM();this.mediaElement.EM().webkitPresentationMode==="picture-in-picture"?this.xI(!0):this.xI(!1)}; g.E.togglePictureInPicture=function(){this.Y$().togglePictureInPicture()}; g.E.uC=function(e,a,r){a=a===void 0?1:a;this.logger.debug(function(){return"start load video, id "+e.videoId+", type "+a}); VA("_start",this.WA.timerName)||g.s7(Eg)(void 0,this.WA.timerName);var P=!1,B=yYl(this,a,e,!1);B?(P=!0,e.dispose()):(B=Zg(this,a,e,!0,r),(this.X("html5_onesie")||this.X("html5_load_before_stop"))&&B.uL()&&B.U3(),this.Yd.stop(),a===1&&a!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,a),this.lk(B));B===this.RD()&&(this.iW.L5=e.oauthToken);if(!B.uL())return!1;if(B===this.RD())return this.jd(1),r=W0(this),P&&this.X("html5_player_preload_ad_fix")&&B.getPlayerType()===1&& B.Ni()&&this.zm("dataloaded",B,B.getVideoData()),r;B.P0();return!0}; g.E.cueVideoByPlayerVars=function(e,a){var r=this;a=a===void 0?1:a;var P=this.RD();if(this.TX().enableServerStitchedDai&&P&&!P.Jb()&&e&&Object.keys(e).length>0)P.nf("qvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:a});else if(e&&L_j(e))if(this.Yo=!0,$S(this,e),(e=g.dP(this.playlist))&&e.Fw())H0(this,e,a);else this.playlist.onReady(function(){QY(r)}); else{a||(a=this.getPresentingPlayerType());a===1&&this.QW();P=new g.UT(this.iW,e);var B=g.uP(this.iW)&&!this.iW.oH&&a===1&&!P.isAd()&&!P.mJ;this.j1.publish("cuevideo");B?(this.Y$().getVideoData().loading=!0,xCq(P,e?e:{}).then(function(h){H0(r,h,a)}),P.dispose()):H0(this,P,a)}}; g.E.nY=function(e,a,r,P,B,h,c){if(!e&&!r)throw Error("Playback source is invalid");if(eP(this.iW)||g.fm(this.iW))return a=a||{},a.lact=tB(),a.vis=this.j1.getVisibilityState(),this.j1.qF("onPlayVideo",{videoId:e,watchEndpoint:h,sessionData:a,listId:r}),!1;W_T(this.WA);this.WA.reset();e={video_id:e};P&&(e.autoplay="1");P&&(e.autonav="1");h&&(e.player_params=h.playerParams);c&&(e.oauth_token=c);r?(e.list=r,this.loadPlaylist(e)):this.loadVideoByPlayerVars(e,1);return!0}; g.E.cuePlaylist=function(e,a,r,P){this.Yo=!0;gyl(this,e,a,r,P)}; g.E.loadPlaylist=function(e,a,r,P){this.Yo=!1;gyl(this,e,a,r,P)}; g.E.BM=function(){return this.j1.isMutedByMutedAutoplay()?!1:this.wg.K5?!0:!(!this.playlist||!this.playlist.fq())}; g.E.Zq=eL(5); g.E.nextVideo=function(e,a){var r=g.Zo(this.RD().getVideoData());g.jn(this.j1)&&r?this.nY(r.videoId,a?r.iG:r.sessionData,r.playlistId,a,void 0,r.GH||void 0):this.eH?this.j1.Og("onPlaylistNext"):this.getPresentingPlayerType()===3?Rk(this.vZ).nextVideo():!this.playlist||GF(this.iW)&&!this.j1.isFullscreen()||(this.playlist.fq(e)&&p0J(this.playlist,YJJ(this.playlist)),this.playlist.loaded?(e=a&&this.iW.X("html5_player_autonav_logging"),a&&this.j1.publish("playlistautonextvideo"),this.uC(g.dP(this.playlist,void 0, a,e),1)):this.Yo=!1)}; g.E.previousVideo=function(e){this.eH?this.j1.Og("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Rk(this.vZ).ey():!this.playlist||GF(this.iW)&&!this.j1.isFullscreen()||(this.playlist.Mj(e)&&p0J(this.playlist,w0J(this.playlist)),this.playlist.loaded?this.uC(g.dP(this.playlist),1):this.Yo=!1)}; g.E.playVideoAt=function(e){this.eH?this.j1.Og("onPlaylistIndex",e):this.playlist&&(this.playlist.loaded?this.uC(g.dP(this.playlist,e),1):this.Yo=!1,p0J(this.playlist,e))}; g.E.getPlaylist=function(){return this.playlist}; g.E.Cj=eL(19);g.E.sC=function(e){this.ZC=g.QX(this.ZC,function(h){return h.id!==e}); for(var a=this.RD(),r=a.AR(),P=0;P0&&(T=Math.floor(X/1E3))}T=a?a.Ug:T;var f={AD_BLOCK:this.S++,AD_BREAK_LENGTH:T,AUTONAV_STATE:RY(this.player.G()),CA_TYPE:"image",CPN:y.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Qa()*1E3,LACT:tB(),LIVE_INDEX:a?this.B++:1,LIVE_TARGETING_CONTEXT:a&&a.context?a.context:"",MIDROLL_POS:h? Math.round(h.start/1E3):0,MIDROLL_POS_MS:h?Math.round(h.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.MF().TA().height,P_W:this.player.MF().TA().width,YT_REMOTE:B?B.join(","):""},A=cf(hl);Object.keys(A).forEach(function(C){A[C]!=null&&(f[C.toUpperCase()]=A[C].toString())}); r!==""&&(f.BISCOTTI_ID=r);r={};Bf(e)&&(r.sts="20299",(a=this.player.G().forcedExperiments)&&(r.forced_experiments=a));var U=af(g.Vm(e,f),r);return U.split("?").length!==2?LN(Error("Invalid AdBreakInfo URL")):g.$G(this.player.G(),y==null?void 0:y.oauthToken).then(function(C){if(C&&Pf()){var G=ez();aS(G,C)}C=P.player.jM(G);G=KE4(P,U,f,y.isMdxPlayback,c);return g.L8(C,G,"/youtubei/v1/player/ad_break").then(function(O){return O})})}; SF.prototype.reset=function(){this.B=this.S=1};g.b(e$q,SF); e$q.prototype.T=function(e,a,r){a=a===void 0?{}:a;var P=a.pD;var B=a.tR;var h=a.cueProcessedMs;r=r===void 0?"":r;a=this.S;this.S++;var c=this.player.G().X("h5_disable_macro_substitution_in_get_ad_break")?e:afL(this,e,{pD:P,tR:B,cueProcessedMs:h},r,a);if(c.split("?").length!==2)return Math.random()<.1&&g.VJ(Error("Invalid AdBreakInfo URL")),LN(Error("Invalid AdBreakInfo URL"));var y=this.player.getVideoData(1).isMdxPlayback,T=r;r=Sf3.exec(c);r=r!=null&&r.length>=2?r[1]:"";e=si4.test(c);var X=mVj.exec(c); X=X!=null&&X.length>=2?X[1]:"";var f=FEI.exec(c);f=f!=null&&f.length>=2&&!Number.isNaN(Number(f[1]))?Number(f[1]):1;var A=MM4.exec(c);A=A!=null&&A.length>=2?A[1]:"0";var U=yg(this.player.G().QL),C=g.sK(this.player.getVideoData(1).e1,!0);xVz(this,C,c,T===""?"":T,this.player.G(),this.player.getVideoData(1));T={splay:!1,lactMilliseconds:String(tB()),playerHeightPixels:Math.trunc(this.player.MF().TA().height),playerWidthPixels:Math.trunc(this.player.MF().TA().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20299,autonavState:RY(this.player.G())};if(y){y={};var G=this.player.G().dD;qfj(y,G?G.join(","):"")&&(T.mdxContext=y)}if(y=jiL.includes(U)?void 0:g.le("PREF")){G=y.split(RegExp("[:&]"));for(var O=0,d=G.length;O1&&W[1].toUpperCase()==="TRUE"){C.user.lockedSafetyMode=!0;break}}T.autoCaptionsDefaultOn=RUz(y)}c=u3q.exec(c);(c=c!=null&&c.length>=2?c[1]:"")&&X&&(C.user.credentialTransferTokens= [{token:c,scope:"VIDEO"}]);c={contentPlaybackContext:T};T=this.player.getVideoData(1).getGetAdBreakContext();y=this.player.getVideoData(1).clientPlaybackNonce;G=h!==void 0?Math.round(h).toString():void 0;O=(P==null?0:P.context)?P.context:void 0;d=0;h&&B&&!P&&(B=B.end-B.start,B>0&&(d=Math.floor(B/1E3)));P=(P=Math.trunc((P?P.Ug:d)*1E3))?String(P):void 0;B=this.player.Qa()*1E3;B=Number.isNaN(B)?0:Math.trunc(B);a={adBlock:a,params:r,breakIndex:f,breakPositionMs:A,clientPlaybackNonce:y,topLevelDomain:U, isProxyAdTagRequest:e,context:C,overridePlaybackContext:c,cueProcessedMs:G,videoId:X?X:void 0,liveTargetingParams:O,breakLengthMs:P,driftFromHeadMs:B?String(B):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:T?T:void 0};return rfq(this,a)};var UuN={XrH:"replaceUrlMacros",Gmm:"onAboutThisAdPopupClosed",dcf:"executeCommand"};PKN.prototype.ac=function(){return"adPingingEndpoint"}; PKN.prototype.hQ=function(e,a,r){IfL(this.ZQ.get(),e,a,r)};BRj.prototype.ac=function(){return"changeEngagementPanelVisibilityAction"}; BRj.prototype.hQ=function(e){this.W.qF("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:e})};h$j.prototype.ac=function(){return"loggingUrls"}; h$j.prototype.hQ=function(e,a,r){e=g.Z(e);for(var P=e.next();!P.done;P=e.next())P=P.value,IfL(this.ZQ.get(),P.baseUrl,a,r,P.attributionSrcMode)};g.b(on4,g.N);g.b(m_,g.N);g.E=m_.prototype;g.E.addListener=function(e){this.listeners.push(e)}; g.E.removeListener=function(e){this.listeners=this.listeners.filter(function(a){return a!==e})}; g.E.hj=function(e,a,r,P,B,h,c,y){if(e==="")o9("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(e!==this.S||r){this.S=e;this.aH.get().hj(e,a,r,P,B,h,c,y);this.DQ.get().hj(e,a,r,P,B,h,c,y);var T;(T=this.GX)==null||T.get().hj(e,a,r,P,B,h,c,y);this.T.hj(e,a,r,P,B,h,c,y);T=g.Z(this.listeners);for(var X=T.next();!X.done;X=T.next())X.value.hj(e,a,r,P,B,h,c,y)}else o9("Duplicate content video loaded signal")}; g.E.IDM=function(){this.S&&this.sj(this.S)}; g.E.sj=function(e){this.S=void 0;for(var a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.sj(e)};Fj.prototype.tY=function(e,a,r,P,B){nnl(this);this.C=!a&&r===0;var h=this.W.getVideoData(1),c=this.W.getVideoData(2);h&&(this.contentCpn=h.clientPlaybackNonce,this.videoId=h.videoId,this.S=h.Z);c&&(this.adCpn=c.clientPlaybackNonce,this.adVideoId=c.videoId,this.adFormat=c.adFormat);this.L=e;P<=0?(nnl(this),this.C=!a&&r===0):(this.actionType=this.C?a?"unknown_type":"video_to_ad":a?"ad_to_video":"ad_to_ad",this.videoStreamType=B?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.B=!0,VA("_start",this.actionType)&&XkJ(this)))}; Fj.prototype.reset=function(){return new Fj(this.W)};g.b(MC,g.N);MC.prototype.addCueRange=function(e,a,r,P,B,h,c,y,T){h=h===void 0?3:h;c=c===void 0?1:c;this.S.has(e)?o9("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:e}):(e=new ffL(e,a,r,P,h,y,T),this.S.set(e.id,{tR:e,listener:B,Hr:c}),this.W.Ji([e],c))}; MC.prototype.removeCueRange=function(e){var a=this.S.get(e);a?(this.W.FU([a.tR],a.Hr),this.S.delete(a.tR.id)):o9("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:e})}; MC.prototype.onCueRangeEnter=function(e){if(this.S.has(e.id))this.S.get(e.id).listener.onCueRangeEnter(e.id)}; MC.prototype.onCueRangeExit=function(e){if(this.S.has(e.id))this.S.get(e.id).listener.onCueRangeExit(e.id)}; g.b(ffL,g.v_);jF.prototype.addPlayerResponseForAssociation=function(e){this.W.addPlayerResponseForAssociation(e)};uV.prototype.LL=function(e){this.W.LL(e)}; uV.prototype.Xh=function(e){var a=g.xN.apply(1,arguments);e==="onAdStart"||e==="onAdEnd"?this.W.cG.apply(this.W,[e].concat(g.UO(a))):this.W.qF.apply(this.W,[e].concat(g.UO(a)))};KF.prototype.Cy=function(e){return e&&eT(this)};var dSL=null;g.b(kwO,g.aK);kwO.prototype.Gw=function(e){return this.S.hasOwnProperty(e)?this.S[e].Gw():{}}; g.KL("ytads.bulleit.getVideoMetadata",function(e){return aw().Gw(e)}); g.KL("ytads.bulleit.triggerExternalActivityEvent",function(e,a,r){var P=aw();r=Osz(r);r!==null&&P.publish(r,{queryId:e,viewabilityString:a})});g.E=rU.prototype;g.E.FH=function(e,a){if(!this.S.has(e))return{};if(a==="seek"){a=!1;a=a===void 0?!1:a;var r=ZX(FE).TR(e,{});r?ve(r):a&&(e=ZX(FE).Qb(null,La(),!1,e),e.mz=3,O0z([e]));return{}}a=DSj(a);if(a===null)return{};var P=this.W.cJ();if(!P)return{};var B=this.W.getPresentingPlayerType(!0);if((r=this.W.getVideoData(B))==null||!r.isAd())return{};r={opt_adElement:P,opt_fullscreen:this.aH.get().isFullscreen()};return Ov3(a,e,r)}; g.E.u7=function(e,a,r,P,B){this.S.has(e)&&(P<=0||B<=0||ZX(FE).u7(e,a,r,P,B))}; g.E.ZT=function(e){var a;(a=this.S.get(e.queryId))==null||a.ZT()}; g.E.lU=function(e){var a;(a=this.S.get(e.queryId))==null||a.lU()}; g.E.wp=function(e){var a;(a=this.S.get(e.queryId))==null||a.wp()}; g.E.Wm=function(e){var a;(a=this.S.get(e.queryId))==null||a.Wm()}; g.E.e6=function(e){var a;(a=this.S.get(e.queryId))==null||a.e6()};pk4.prototype.send=function(e,a,r,P){try{isI(this,e,a,r,P===void 0?!1:P)}catch(B){}};g.b(z$j,pk4);NRl.prototype.send=function(e,a,r,P){var B=!1;try{if(P==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||P==="ATTRIBUTION_SRC_MODE_XHR_OPTION")B=!0,e=hnL(e);P=B;var h=g.yp(e);if(h[1]==="https")var c=e;else h[1]="https",c=na("https",h[2],h[3],h[4],h[5],h[6],h[7]);var y=hcJ(c);h=[];var T=Soj(c)&&this.bW.get().W.G().experiments.FM("add_auth_headers_to_remarketing_google_dot_com_ping");if(Bf(c)||T)h.push({headerType:"USER_AUTH"}),h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),h.push({headerType:"EOM_VISITOR_ID"}), h.push({headerType:"AUTH_USER"}),h.push({headerType:"DATASYNC_ID"});this.S.send({baseUrl:c,scrubReferrer:y,headers:h},a,r,P)}catch(X){}};ow.prototype.L_=function(){return this.W.L_(1)};g.b(nS,g.N);g.E=nS.prototype;g.E.X6=function(){return this.W.getVideoData(1).clientPlaybackNonce}; g.E.addListener=function(e){this.listeners.push(e)}; g.E.removeListener=function(e){this.listeners=this.listeners.filter(function(a){return a!==e})}; g.E.hj=function(){this.V1.clear();this.eI=null;this.s5.get().clear()}; g.E.sj=function(){}; g.E.aXH=function(e,a,r,P,B){a.videoId==="nPpU29QrbiU"&&this.W.nf("ads_ssm_vdc_s",{pt:r,dvt:e});m6(this.bW.get())&&e!=="dataloaded"||mSj(this,a,r);if(eT(this.bW.get())&&e==="newdata"&&B!==void 0){e=this.X6();var h=a.clientPlaybackNonce,c={};oH(this,"rte",(c.ec=h,c.xc=P==null?void 0:P.clientPlaybackNonce,c.tr=B,c.pt=r,c.ia=h!==e,c.ctp=cH(h),c));a=a.clientPlaybackNonce;P=P==null?void 0:P.clientPlaybackNonce;B=Ft4(B);if(B!==1)if(P!==void 0)for(r=g.Z(this.listeners),e=r.next();!e.done;e=r.next())e.value.PE(P, a,B);else o9("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:a,transitionReason:String(B)});B=g.Z(this.listeners);for(P=B.next();!P.done;P=B.next())P.value.Ad(a)}}; g.E.vhQ=function(e,a){e!==void 0&&(this.eI=e,a===void 0?o9("Expected ad video start time on SS video changed"):this.V1.set(e,a));var r=this.W.getPresentingPlayerType(!0),P=this.W.getVideoData(r),B;e===void 0?B=null:B=this.s5.get().S.get(e)||null;this.W.getVideoData(1).nf("ads_ssvc",{pt:r,cpn:P==null?void 0:P.clientPlaybackNonce,crtt:this.W.getCurrentTime(1,!1),atlh:this.W.isAtLiveHead(),adstt:a,pid:e,slid:B==null?void 0:B.layoutId});P?mSj(this,P,r):o9("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.W.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:e})}; g.E.x0=function(e,a){var r=e.author,P=e.clientPlaybackNonce,B=e.isListed,h=e.Cb,c=e.title,y=e.n8,T=e.qO,X=e.isMdxPlayback,f=e.H4,A=e.mdxEnvironment,U=e.isAutonav,C=e.U5,G=e.o4,O=e.M6,d=e.videoId||"",W=e.profilePicture||"",V=e.ix||"",L=e.z0()||!1,z=e.w1()||!1;e=e.mj||void 0;h=this.s5.get().S.get(h)||{layoutId:null,slotId:null};var q=this.W.getVideoData(1),M=q.QX();q=q.getPlayerResponse();a=1E3*this.W.getDuration(a);var m=1E3*this.W.getDuration(1),cI,CL,nL=(q==null?void 0:(cI=q.playerConfig)==null? void 0:(CL=cI.daiConfig)==null?void 0:CL.enableDai)||!1,y3,aT;cI=(q==null?void 0:(y3=q.playerConfig)==null?void 0:(aT=y3.daiConfig)==null?void 0:aT.enablePreroll)||!1;return Object.assign({},h,{videoId:d,author:r,clientPlaybackNonce:P,GK:a,yL:m,daiEnabled:nL,s_:cI,isListed:B,QX:M,profilePicture:W,title:c,ix:V,n8:y,qO:T,mj:e,isMdxPlayback:X,H4:f,mdxEnvironment:A,isAutonav:U,U5:C,o4:G,M6:O,z0:L,w1:z})}; g.E.RH=function(){this.listeners.length=0;this.TE=null;g.N.prototype.RH.call(this)};g.b(y4,g.N);g.E=y4.prototype;g.E.hj=function(){var e=this;eT(this.bW.get())||(this.S=wy(function(){e.W.wP()||e.W.wy("ad",1)}))}; g.E.sj=function(){}; g.E.addListener=function(e){this.listeners.push(e)}; g.E.removeListener=function(e){this.listeners=this.listeners.filter(function(a){return a!==e})}; g.E.vn=function(){}; g.E.playVideo=function(){this.W.playVideo()}; g.E.pauseVideo=function(){this.W.pauseVideo()}; g.E.resumeVideo=function(e){this.FD(e)&&this.W.playVideo()}; g.E.FD=function(e){return this.W.getPlayerState(e)===2}; g.E.getCurrentTimeSec=function(e,a,r){var P=this.DQ.get().eI;if(e===2&&!a&&P!==null)return fS(this,P);pm(this.bW.get(),"html5_ssap_use_cpn_to_get_time")||(r=void 0);return r!==void 0?this.W.getCurrentTime(e,a,r):this.W.getCurrentTime(e,a)}; g.E.getVolume=function(){return this.W.getVolume()}; g.E.isMuted=function(){return this.W.isMuted()}; g.E.getPresentingPlayerType=function(){return this.W.getPresentingPlayerType(!0)}; g.E.getPlayerState=function(e){return this.W.getPlayerState(e)}; g.E.getGetAdBreakContext=function(){return this.W.getGetAdBreakContext()}; g.E.isFullscreen=function(){return this.W.isFullscreen()}; g.E.isAtLiveHead=function(){return this.W.isAtLiveHead()}; g.E.zf=function(e){this.W.zf(e)}; g.E.wOW=function(){var e=this.W.getPresentingPlayerType(!0),a=this.getCurrentTimeSec(e,!1);if(e===2){e=g.Z(this.listeners);for(var r=e.next();!r.done;r=e.next())r.value.f5(a)}else if(e===1)for(e=g.Z(this.xB),r=e.next();!r.done;r=e.next())r.value.vn(a)}; g.E.ib1=function(e){for(var a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.dL(e,this.getPresentingPlayerType())}; g.E.onFullscreenToggled=function(e){for(var a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.onFullscreenToggled(e)}; g.E.onVolumeChange=function(){for(var e=g.Z(this.listeners),a=e.next();!a.done;a=e.next())a.value.onVolumeChange()}; g.E.C_=function(){for(var e=this.W.isMinimized(),a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.C_(e)}; g.E.tj=function(e){for(var a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.tj(e)}; g.E.VX=function(){for(var e=this.W.MF().TA(),a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.MA(e)}; g.E.mV=function(e){for(var a=g.Z(this.listeners),r=a.next();!r.done;r=a.next())r.value.mV(e)}; g.E.Aj=function(){for(var e=g.Z(this.listeners),a=e.next();!a.done;a=e.next())a.value.Aj()};g.b(Ktq,g.N);g.b(CS,g.N);CS.prototype.RH=function(){this.MK.wP()||this.MK.get().removeListener(this);g.N.prototype.RH.call(this)};Gd.prototype.fetch=function(e){var a=e.FS;return this.S.fetch(e.JS,{pD:e.pD===void 0?void 0:e.pD,tR:a,cueProcessedMs:e.cueProcessedMs===void 0?0:e.cueProcessedMs}).then(function(r){return eyG(r,a)})};g.b(EF,g.N);g.E=EF.prototype;g.E.addListener=function(e){this.listeners.push(e)}; g.E.removeListener=function(e){this.listeners=this.listeners.filter(function(a){return a!==e})}; g.E.L1=function(e){alN(this,e,1)}; g.E.onAdUxClicked=function(e,a){bC(this,function(r){r.La(e,a)})}; g.E.qk=function(e){bC(this,function(a){a.eR(e)})}; g.E.y0=function(e){bC(this,function(a){a.WL(e)})}; g.E.XWm=function(e){bC(this,function(a){a.Io(e)})};tR.prototype.reduce=function(e){switch(e.event){case "unknown":return}var a=e.identifier;var r=this.S[a];r?a=r:(r={YB:null,VZ:-Infinity},a=this.S[a]=r);r=e.startSecs+e.S/1E3;if(!(r=this.S.startSecs&&r.startSecs<=this.S.startSecs+this.S.Ug)){var P=void 0;if(F$(this.bW.get())&&r.identifier!==((P=this.S)==null?void 0:P.identifier)){var B=P=void 0,h=void 0,c=void 0;$D(this.ZQ.get(),"ocud","ccpi."+r.identifier+";ccpe."+r.event+";ccps."+r.startSecs+";\n ccpd."+r.Ug+";pcpi."+((P=this.S)==null?void 0:P.identifier)+ ";pcpe."+((B=this.S)==null?void 0:B.event)+";\n pcps."+((h=this.S)==null?void 0:h.startSecs)+";pcpd."+((c=this.S)==null?void 0:c.Ug)+";")}P=void 0;r.identifier!==((P=this.S)==null?void 0:P.identifier)&&o9("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.S=r,B4a(this,r)}}; g.E.RH=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.Nk,this),this.T=null);this.listeners.length=0;this.Ft.length=0;g.N.prototype.RH.call(this)};g.E=OF.prototype;g.E.KC=function(e,a,r,P,B,h,c,y){return this.W.KC(e,a,r,P,B,h,c,y)}; g.E.Hf=function(e,a){this.W.Hf(e,a)}; g.E.XL=function(e,a,r){this.W.XL(e,a,r)}; g.E.E1=function(e){this.W.E1(e)}; g.E.yg=function(e,a,r,P,B,h,c,y){this.W.yg(e,a,r,P,B,h,c,y)}; g.E.M2=function(e){return this.W.M2(e)}; g.E.finishSegmentByCpn=function(e,a,r){r=oNM(r);this.W.finishSegmentByCpn(e,a,r)};g.b(kJ,g.N);g.b(yzV,g.N);g.b(T49,g.N);g.b(XIB,g.N);g.b(flG,g.N);g.b(Azl,g.N);g.b(CqN,g.N);CqN.prototype.B=function(){return this.T};g.b(GJM,xT); GJM.prototype.B=function(e){var a=e.content;if(a.componentType==="shopping-companion")switch(e.actionType){case 1:case 2:e=this.S.getVideoData(1);this.S.qF("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,shoppingCompanionCarouselRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.S,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:this.S.qF("updateKevlarOrC3Companion",{})}else if(a.componentType==="action-companion")switch(e.actionType){case 1:case 2:e=this.S.getVideoData(1); this.S.qF("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,actionCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.S,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.S.getVideoData(1),this.S.qF("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),this.S.qF("updateKevlarOrC3Companion",{})}else if(a.componentType==="image-companion")switch(e.actionType){case 1:case 2:e=this.S.getVideoData(1);this.S.qF("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,imageCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.S,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.S.getVideoData(1),this.S.qF("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),this.S.qF("updateKevlarOrC3Companion",{})}else if(a.componentType==="top-banner-image-text-icon-buttoned")switch(e.actionType){case 1:case 2:e=this.S.getVideoData(1);this.S.qF("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,topBannerImageTextIconButtonedLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.S,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.S.getVideoData(1),this.S.qF("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),this.S.qF("updateKevlarOrC3Companion",{})}else if(a.componentType==="banner-image")switch(e.actionType){case 1:case 2:e=this.S.getVideoData(1);this.S.qF("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,bannerImageLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.S,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.S.getVideoData(1),this.S.qF("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),this.S.qF("updateKevlarOrC3Companion",{})}else if(a.componentType==="ads-engagement-panel")switch(a=a.renderer,e.actionType){case 1:case 2:this.S.qF("updateEngagementPanelAction",a.addAction);this.S.qF("changeEngagementPanelVisibility", a.expandAction);break;case 3:this.S.qF("changeEngagementPanelVisibility",a.hideAction),this.S.qF("updateEngagementPanelAction",a.removeAction)}else if(a.componentType==="ads-engagement-panel-layout"){var r=a.renderer;switch(e.actionType){case 1:case 2:this.S.qF("updateEngagementPanelAction",{action:ls(r.addAction),layoutId:a.layoutId,onLayoutVisibleCallback:a.S,interactionLoggingClientData:a.interactionLoggingClientData});this.S.qF("changeEngagementPanelVisibility",ls(r.expandAction));break;case 3:this.S.qF("changeEngagementPanelVisibility", ls(r.hideAction)),this.S.qF("updateEngagementPanelAction",{action:ls(r.removeAction)})}}};g.b(ENN,mq);g.E=ENN.prototype;g.E.init=function(e,a,r){mq.prototype.init.call(this,e,a,r);g.vo(this.B,"stroke-dasharray","0 "+this.T);this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.Z.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.L.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){MI(this);mq.prototype.hide.call(this)}; g.E.show=function(){FB(this);mq.prototype.show.call(this)}; g.E.dM=function(){this.hide()}; g.E.ya=function(){if(this.S){var e=this.S.getProgressState();e!=null&&e.current!=null&&g.vo(this.B,"stroke-dasharray",e.current/e.seekableEnd*this.T+" "+this.T)}};g.b(bLl,oK);g.E=bLl.prototype; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if(a.backgroundImage&&a.backgroundImage.thumbnail)if(a.actionButton&&g.H(a.actionButton,g.nR))if(e=a.durationMilliseconds||0,typeof e!=="number"||e<=0)g.D6(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+e));else if(a.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null){var B=a.image.thumbnail.thumbnails;B!=null&& B.length>0&&g.Wd(g.lF(B[0].url))&&(B[0].url=P.profilePicture,g.Wd(g.lF(P.profilePicture))&&qdT("VideoPlayer",239976093,"Expected non-empty profile picture."));B=a.backgroundImage.thumbnail.thumbnails;B!=null&&B.length>0&&g.Wd(g.lF(B[0].url))&&(B[0].url=P.EG());B=a.headline;B!=null&&g.Wd(g.lF(B.text))&&(B.text=P.author)}this.N.init(K4("ad-image"),a.image,r);this.Z.init(K4("ad-text"),a.headline,r);this.B.init(K4("ad-text"),a.description,r);this.Uo.init(K4("ad-image"),a.backgroundImage,r);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.Z.element.classList.add("ytp-ad-action-interstitial-headline-light");this.B.element.classList.add("ytp-ad-action-interstitial-description-light");P.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().T&&(P.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),P.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().X("enable_unified_action_endcap_on_web")&& !this.api.G().T&&(P.push("ytp-ad-action-interstitial-action-button-unified"),this.PW.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.k$.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.PG.classList.add("ytp-ad-action-interstitial-card-unified"),this.oH.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Lf.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.e1.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.XM.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,P);g.x(this,this.actionButton);this.actionButton.Kf(this.PW); this.actionButton.init(K4("button"),g.H(a.actionButton,g.nR),r);Ne(this.actionButton.element);P=HP(this.actionButton.element);Ia(this.actionButton.element,P+" This link opens in new tab");this.navigationEndpoint=a.navigationEndpoint;this.L.j(this.e1,"click",this.Ik,this);this.L.j(this.oH,"click",this.Ik,this);!this.api.G().X("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.G().T||this.L.j(this.Lf,"click",this.Ik,this);this.S=this.vH?new EK(this.api,e):new bG(e);g.x(this,this.S);if(a.skipButton){(e= g.H(a.skipButton,$vB))&&this.S&&(this.skipButton=new X5(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.S,this.T9),g.x(this,this.skipButton),this.skipButton.Kf(this.element),this.skipButton.init(K4("skip-button"),e,r));if(r=a.adBadgeRenderer)if(r=g.H(r,Vrl))e=new C$(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0,!0),e.Kf(this.XM),e.init(K4("simple-ad-badge"),r,this.macros),g.x(this,e);if(r=a.adInfoRenderer)if(r=g.H(r,cz))e=new RK(this.api,this.layoutId,this.interactionLoggingClientData, this.dP,this.element,void 0,!0),e.Kf(this.XM),e.init(K4("ad-info-hover-text-button"),r,this.macros),g.x(this,e)}else a.nonskippableOverlayRenderer&&(e=g.H(a.nonskippableOverlayRenderer,o0))&&this.S&&(this.T=new KB(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.S,!1),g.x(this,this.T),this.T.Kf(this.element),this.T.init(K4("ad-preview"),e,r));a.countdownRenderer&&(a=a.countdownRenderer,g.H(a,QDl)&&this.S&&(r=new ENN(this.api,this.layoutId,this.interactionLoggingClientData,this.dP, this.S),g.x(this,r),r.Kf(this.element),r.init(K4("timed-pie-countdown"),g.H(a,QDl),this.macros)));this.show();this.element.focus()}else g.D6(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.D6(Error("AdActionInterstitialRenderer has no button."));else g.D6(Error("AdActionInterstitialRenderer has no background AdImage."));else g.D6(Error("AdActionInterstitialRenderer has no description AdText."));else g.D6(Error("AdActionInterstitialRenderer has no headline AdText."));else g.D6(Error("AdActionInterstitialRenderer has no image."))}; g.E.clear=function(){g.du(this.L);this.hide()}; g.E.show=function(){tLN(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.T&&this.T.show();oK.prototype.show.call(this)}; g.E.hide=function(){tLN(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.T&&this.T.hide();oK.prototype.hide.call(this)}; g.E.Ik=function(){this.navigationEndpoint&&(this.layoutId?this.dP.executeCommand(this.navigationEndpoint,this.layoutId):g.D6(Error("Missing layoutId for ad action interstitial.")))};var djb={iconType:"CLOSE"},V4=new g.Sr(320,63);g.b(kJM,oK);g.E=kJM.prototype; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);this.L=a;this.N=g.WB(this.L.onClickCommands||[]);this.XM=this.L.onErrorCommand||null;if(e=this.L.contentSupportedRenderer)e=this.L.contentSupportedRenderer,a=this.L.adInfoRenderer||null,g.H(e,dvM)?(this.Z=g.nO("ytp-ad-overlay-ad-info-button-container",this.B.element),JzZ(this,a),e=VL8(this,g.H(e,dvM))):g.H(e,JU8)?(this.Z=g.nO("ytp-ad-overlay-ad-info-button-container",this.T.element),JzZ(this,a),e=$jB(this,g.H(e,JU8))):g.H(e,Dvw)?(this.Z= g.nO("ytp-ad-overlay-ad-info-button-container",this.S.element),JzZ(this,a),e=QTN(this,g.H(e,Dvw))):(g.D6(Error("InvideoOverlayAdRenderer content could not be initialized.")),e=!1);e&&(this.show(),WjB(this,!0))}; g.E.clear=function(){WjB(this,!1);this.e1.reset();this.oH=0;this.B.hide();this.logVisibility(this.B.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.hide();this.dispose()}; g.E.T1W=function(){this.PW&&(this.layoutId?this.dP.executeCommand(this.PW,this.layoutId):g.D6(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.E.rd=function(){a:{if(this.L&&this.L.closeButton&&this.L.closeButton.buttonRenderer){var e=this.L.closeButton.buttonRenderer;if(e.serviceEndpoint){e=[e.serviceEndpoint];break a}}e=[]}e=g.Z(e);for(var a=e.next();!a.done;a=e.next())a=a.value,this.layoutId?this.dP.executeCommand(a,this.layoutId):g.D6(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.E.wWm=function(){this.Uo||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.E.aN=function(){this.Uo||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.aN("invideo-overlay")}; g.E.CWz=function(e){e.target===this.Z&&g.nO("ytp-ad-button",this.k$.element).click()};g.b(llb,mq);g.E=llb.prototype;g.E.init=function(e,a,r){mq.prototype.init.call(this,e,a,r);e=a.durationMs;this.B=e==null||e===0?0:e+this.S.getProgressState().current*1E3;if(a.text)var P=a.text.templatedAdText;else a.staticMessage&&(P=a.staticMessage);this.messageText.init(K4("ad-text"),P,r);this.messageText.Kf(this.T.element);this.L.show(100);this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){Lja(this,!1);mq.prototype.hide.call(this);this.T.hide();this.messageText.hide();MI(this)}; g.E.show=function(){Lja(this,!0);mq.prototype.show.call(this);FB(this);this.T.show();this.messageText.show()}; g.E.dM=function(){this.hide()}; g.E.ya=function(){if(this.S!=null){var e=this.S.getProgressState();e!=null&&e.current!=null&&(e=1E3*e.current,!this.oH&&e>=this.B?(this.L.hide(),this.oH=!0):this.messageText&&this.messageText.isTemplated()&&(e=Math.max(0,Math.ceil((this.B-e)/1E3)),e!==this.Z&&(sY(this.messageText,{TIME_REMAINING:String(e)}),this.Z=e)))}};g.b(YON,oK);g.E=YON.prototype; g.E.init=function(e,a,r){oK.prototype.init.call(this,e,a,{});a.image&&a.image.thumbnail?a.headline?a.description?a.actionButton&&g.H(a.actionButton,g.nR)?(this.B.init(K4("ad-image"),a.image,r),this.T.init(K4("ad-text"),a.headline,r),this.L.init(K4("ad-text"),a.description,r),this.actionButton=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,["ytp-ad-underlay-action-button"]),a.backgroundColor&&g.vo(this.element,"background-color",g.Yg(a.backgroundColor)),g.x(this,this.actionButton), this.actionButton.Kf(this.Z),this.actionButton.init(K4("button"),g.H(a.actionButton,g.nR),r),e=g.eS(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().X("place_shrunken_video_on_left_of_player")?(a=this.S,g.BD(a,"ytp-ad-underlay-left-container"),g.rr(a,"ytp-ad-underlay-right-container"),g.vo(this.S,"margin-left",Math.round((e+.02)*100)+"%")):(a=this.S,g.BD(a,"ytp-ad-underlay-right-container"),g.rr(a,"ytp-ad-underlay-left-container")),g.vo(this.S,"width",Math.round((1-e- .04)*100)+"%"),this.api.Ev()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Kk.bind(this)),this.api.addEventListener("resize",this.Et.bind(this))):g.D6(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.D6(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.D6(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.D6(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.E.show=function(){wIB(!0);this.actionButton&&this.actionButton.show();oK.prototype.show.call(this)}; g.E.hide=function(){wIB(!1);this.actionButton&&this.actionButton.hide();oK.prototype.hide.call(this)}; g.E.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Kk.bind(this));this.api.removeEventListener("resize",this.Et.bind(this));this.hide()}; g.E.onClick=function(e){oK.prototype.onClick.call(this,e);this.actionButton&&g.gy(this.actionButton.element,e.target)&&this.api.pauseVideo()}; g.E.Kk=function(e){e==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))}; g.E.Et=function(e){e.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):e.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.vo(this.T.element,"font-size",e.width/40+"px")};g.b($J,oK); $J.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);a.toggledLoggingParams&&(this.toggledLoggingParams=a.toggledLoggingParams);a.answer&&g.H(a.answer,g.nR)?(e=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),e.Kf(this.answer),e.init(K4("ytp-ad-survey-answer-button"),g.H(a.answer,g.nR),r),e.show()):a.answer&&g.H(a.answer,JI)&&(this.S=new zK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP, ["ytp-ad-survey-answer-toggle-button"]),this.S.Kf(this.answer),g.x(this,this.S),this.S.init(K4("survey-answer-button"),g.H(a.answer,JI),r));this.show()}; $J.prototype.di=function(e){this.layoutId?Lm(this.dP,e,this.layoutId,this.macros):(e=new g.I6("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.D6(e))}; $J.prototype.onClick=function(e){oK.prototype.onClick.call(this,e);if(this.api.G().X("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; $J.prototype.clear=function(){this.hide()};g.b(pI9,oK);pI9.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);a.answer&&g.H(a.answer,JI)&&(this.button=new zK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Kf(this.S),this.button.init(K4("survey-none-of-the-above-button"),g.H(a.answer,JI),r));this.show()};g.b(Q4,Vd);Q4.prototype.init=function(e,a,r){Vd.prototype.init.call(this,e,a,r);e=!1;a.text&&(a=g.yd(a.text),e=!g.Wd(a));e||g.VJ(Error("No submit text was present in the renderer."))}; Q4.prototype.onClick=function(e){this.publish("l");Vd.prototype.onClick.call(this,e)};g.b(WG,oK); WG.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);if(e=a.skipOrPreviewRenderer)g.H(e,L7)?(e=g.H(e,L7),r=new Ax(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.L,!0),r.Kf(this.skipOrPreview),r.init(K4("skip-button"),e,this.macros),g.x(this,r),this.S=r):g.H(e,o0)&&(e=g.H(e,o0),r=new KB(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.L,!1),r.Kf(this.skipOrPreview),r.init(K4("ad-preview"),e,this.macros),r.oH.show(100),r.show(),g.x(this,r), this.S=r);this.S==null&&(e=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(a)),g.D6(e));a.submitButton&&(e=a.submitButton,g.H(e,g.nR)&&(e=g.H(e,g.nR),r=new Q4(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),r.Kf(this.submitButton),r.init(K4("survey-submit"),e,this.macros),g.x(this,r),this.T=r));if(e=a.adBadgeRenderer)e=g.H(e,Vrl),r=new C$(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0,!0,!0),r.Kf(this.B),r.init(K4("simple-ad-badge"), e,this.macros),this.adBadge=r.element,g.x(this,r);if(e=a.adDurationRemaining)e=g.H(e,ZD8),r=new Zu(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.L,void 0,!0),r.Kf(this.B),r.init(K4("ad-duration-remaining"),e,this.macros),g.x(this,r);(a=a.adInfoRenderer)&&g.H(a,cz)&&(e=new RK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.element,void 0,!0),g.x(this,e),this.adBadge!==void 0?this.B.insertBefore(e.element,this.adBadge.nextSibling):e.Kf(this.B),e.init(K4("ad-info-hover-text-button"), g.H(a,cz),this.macros));this.show()}; WG.prototype.clear=function(){this.hide()};g.b(lC,oK);lC.prototype.init=function(e,a,r){oK.prototype.init.call(this,e,a,r);IlG(this)}; lC.prototype.show=function(){this.B=Date.now();oK.prototype.show.call(this)}; lC.prototype.gk=function(){};g.b(HLG,lC);g.E=HLG.prototype;g.E.init=function(e,a,r){var P=this;lC.prototype.init.call(this,e,a,r);a.questionText&&iLN(this,a.questionText);a.answers&&a.answers.forEach(function(B,h){g.H(B,ki)&&zyB(P,g.H(B,ki),r,h)}); this.Z=new Set(this.T.map(function(B){return B.S.S})); (e=a.noneOfTheAbove)&&(e=g.H(e,k1w))&&qOM(this,e,r);a.surveyAdQuestionCommon&&xjG(this,a.surveyAdQuestionCommon);a.submitEndpoints&&(this.submitEndpoints=a.submitEndpoints);this.j(this.element,"change",this.onChange);this.show()}; g.E.gk=function(){vN5(this,!1);this.L.T.subscribe("l",this.RTM,this)}; g.E.onChange=function(e){e.target===this.noneOfTheAbove.button.S?Ryw(this):this.Z.has(e.target)&&(this.noneOfTheAbove.button.toggleButton(!1),vN5(this,!0))}; g.E.RTM=function(){var e=[],a=this.T.reduce(function(B,h,c){var y=h.toggledLoggingParams;h.S&&h.S.isToggled()&&y&&(B.push(y),e.push(c));return B},[]).join("&"),r=this.submitEndpoints.map(function(B){if(!B.loggingUrls)return B; B=g.EH(B);B.loggingUrls=B.loggingUrls.map(function(h){h.baseUrl&&(h.baseUrl=bt(h.baseUrl,a));return h}); return B}); if(r){r=g.Z(r);for(var P=r.next();!P.done;P=r.next())P=P.value,this.layoutId?Lm(this.dP,P,this.layoutId,this.macros):g.D6(Error("Missing layoutId for multi_select_question."))}this.api.G().X("supports_multi_step_on_desktop")&&this.oH(e)}; g.E.clear=function(){this.api.G().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.b(LS,lC);LS.prototype.init=function(e,a,r){var P=this;lC.prototype.init.call(this,e,a,r);a.questionText&&iLN(this,a.questionText);a.answers&&a.answers.forEach(function(B,h){g.H(B,ki)&&zyB(P,g.H(B,ki),r,h)}); a.surveyAdQuestionCommon?xjG(this,a.surveyAdQuestionCommon):PU(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(a)));this.show()}; LS.prototype.clear=function(){this.api.G().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.b(YJ,oK);YJ.prototype.init=function(e,a,r){var P=this;oK.prototype.init.call(this,e,a,r);if(this.api.G().X("supports_multi_step_on_desktop")){var B;this.conditioningRules=(B=a.conditioningRules)!=null?B:[];var h;this.T=(h=a.questions)!=null?h:[];var c;((c=a.questions)==null?0:c.length)&&FjG(this,0)}else(a.questions||[]).forEach(function(y){g.H(y,Bz)?sTV(P,g.H(y,Bz),r):g.H(y,Pz)&&mj5(P,g.H(y,Pz),r)}); this.show()}; YJ.prototype.clear=function(){this.api.G().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; YJ.prototype.L=function(e){var a=this;if(this.api.G().X("supports_multi_step_on_desktop")){var r;if((r=this.conditioningRules)==null?0:r.length){var P;if(e.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(B){return B.questionIndex===a.S})==null)g.D6(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(B){if(B.questionIndex===a.S)switch(B.condition){case "CONDITION_ALL_OF":var h;if((h=B.answerIndices)==null?0:h.every(function(y){return e.includes(y)}))P=B.nextQuestionIndex; break;case "CONDITION_ANY_OF":var c;if((c=B.answerIndices)==null?0:c.some(function(y){return e.includes(y)}))P=B.nextQuestionIndex; break;default:g.D6(Error("Expected specified condition in survey conditioning rules."))}}),P!=null)FjG(this,P); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.D6(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.b(wU,oK); wU.prototype.init=function(e,a,r){var P=this;oK.prototype.init.call(this,e,a,r);e=a.timeoutSeconds||0;if(typeof e!=="number"||e<0)g.D6(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+e));else if(a.timeoutCommands)if(a.text)if(a.ctaButton&&g.H(a.ctaButton,g.nR))if(a.brandImage)if(a.backgroundImage&&g.H(a.backgroundImage,y5)&&g.H(a.backgroundImage,y5).landscape){this.layoutId||g.D6(Error("Missing layoutId for survey interstitial."));MLV(this.interstitial,g.H(a.backgroundImage, y5).landscape);MLV(this.logoImage,a.brandImage);g.ZF(this.text,g.yd(a.text));var B=["ytp-ad-survey-interstitial-action-button"];B.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,B);g.x(this,this.actionButton);this.actionButton.Kf(this.T);this.actionButton.init(K4("button"),g.H(a.ctaButton,g.nR),r);this.actionButton.show();this.S=new EK(this.api,e*1E3);this.S.subscribe("g",function(){P.transition.hide()}); g.x(this,this.S);this.j(this.element,"click",function(h){var c=h.target===P.interstitial;h=P.actionButton.element.contains(h.target);if(c||h)if(P.transition.hide(),c)P.api.onAdUxClicked(P.componentType,P.layoutId)}); this.transition.show(100)}else g.D6(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.D6(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.D6(Error("SurveyTextInterstitialRenderer has no button."));else g.D6(Error("SurveyTextInterstitialRenderer has no text."));else g.D6(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; wU.prototype.clear=function(){this.hide()}; wU.prototype.show=function(){jTl(!0);oK.prototype.show.call(this)}; wU.prototype.hide=function(){jTl(!1);oK.prototype.hide.call(this)};g.b(pS,mq);g.E=pS.prototype; g.E.init=function(e,a){mq.prototype.init.call(this,e,a,{});if(a.durationMilliseconds){if(a.durationMilliseconds<0){g.D6(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+a.durationMilliseconds));return}this.T=a.durationMilliseconds}else this.T=this.S.dI();var r;if((r=a.previewText)==null||!r.text||g.Wd(a.previewText.text))g.D6(Error("No text is returned for AdPreview."));else{this.Z=a.previewText;a.previewText.isTemplated||g.ZF(this.B,a.previewText.text);var P; if(((P=this.api.getVideoData(1))==null?0:P.SZ)&&a.previewImage){var B,h;(e=((h=fC(((B=a.previewImage)==null?void 0:B.sources)||[],52,!1))==null?void 0:h.url)||"")&&e.length?(this.previewImage=new g.cs({K:"img",U:"ytp-preview-ad__image",J:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",e),g.x(this,this.previewImage),this.previewImage.Kf(this.element)):g.D6(Error("Failed to get imageUrl in AdPreview."))}else this.B.classList.add("ytp-preview-ad__text--padding--wide")}}; g.E.clear=function(){this.hide()}; g.E.hide=function(){MI(this);mq.prototype.hide.call(this)}; g.E.show=function(){FB(this);mq.prototype.show.call(this)}; g.E.dM=function(){this.hide()}; g.E.ya=function(){if(this.S){var e=this.S.getProgressState();if(e!=null&&e.current)if(e=1E3*e.current,e>=this.T)this.transition.hide();else{var a;if((a=this.Z)==null?0:a.isTemplated)if(a=Math.max(0,Math.ceil((this.T-e)/1E3)),a!==this.L){var r,P;(e=(r=this.Z)==null?void 0:(P=r.text)==null?void 0:P.replace("{TIME_REMAINING}",String(a)))&&g.ZF(this.B,e);this.L=a}}}};g.b(iC,oK); iC.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});var r,P;if((e=((P=fC(((r=a.image)==null?void 0:r.sources)||[],u4V(a),!0))==null?void 0:P.url)||"")&&e.length){r=this.BW("ytp-ad-avatar");r.src=e;var B,h;if(P=(B=a.interaction)==null?void 0:(h=B.accessibility)==null?void 0:h.label)r.alt=P;switch(a.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(a.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.D6(Error("Failed to get imageUrl in AdAvatar."))}; iC.prototype.clear=function(){this.hide()}; iC.prototype.onClick=function(e){oK.prototype.onClick.call(this,e)};g.b(zd,oK); zd.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});var r;e=(r=a.label)==null?void 0:r.content;if((r=e!=null&&!g.Wd(e))||a.iconImage){r&&(this.buttonText=new g.cs({K:"span",U:"ytp-ad-button-vm__text",S1:e}),g.x(this,this.buttonText),this.buttonText.Kf(this.element));var P,B,h=((P=a.interaction)==null?0:(B=P.accessibility)==null?0:B.label)||r?e:"";h&&Ia(this.element,h+" This link opens in new tab");Ne(this.element);if(a.iconImage){P=void 0;if(a.iconImage){a:{B=a.iconImage;if(B.sources)for(B= g.Z(B.sources),e=B.next();!e.done;e=B.next())if(e=e.value,h=void 0,(h=e.clientResource)==null?0:h.imageName){B=e;break a}B=void 0}if(B){var c;P={iconType:(c=B.clientResource)==null?void 0:c.imageName}}}c=Dt(P,!1,this.T);c!=null&&(this.buttonIcon=new g.cs({K:"span",U:"ytp-ad-button-vm__icon",V:[c]}),g.x(this,this.buttonIcon),a.iconLeading?(bd(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):r?(this.buttonIcon.Kf(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Kf(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(a.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_FILLED":this.api.X("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.S?"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(a.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.VJ(Error("AdButton does not have label or an icon."))}; zd.prototype.clear=function(){this.hide()}; zd.prototype.onClick=function(e){oK.prototype.onClick.call(this,e)};g.b(KjM,mq);g.E=KjM.prototype; g.E.init=function(e,a){mq.prototype.init.call(this,e,a,{});if(e=g.H(a.avatar,sF)){var r=a.headline;if(r){var P=a.description;if(P){var B=g.H(a.button,FC);B?(this.adAvatar.init(K4("ad-avatar"),e),this.headline.init(K4("ad-simple-attributed-string"),new kg(r)),this.description.init(K4("ad-simple-attributed-string"),new kg(P)),r.content&&r.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(K4("ad-button"),B), this.startMilliseconds=a.startMs||0,this.api.Ev()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.a7.bind(this)),FB(this)):g.D6(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.D6(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.D6(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.D6(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.E.ya=function(){if(this.S){var e=this.S.getProgressState();e&&e.current&&1E3*e.current>=this.startMilliseconds&&(MI(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.E.dM=function(){this.clear()}; g.E.onClick=function(e){this.api.pauseVideo();mq.prototype.onClick.call(this,e)}; g.E.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.a7.bind(this))}; g.E.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();mq.prototype.show.call(this)}; g.E.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();mq.prototype.hide.call(this)}; g.E.a7=function(e){e==="hidden"?this.show():this.hide()};g.b(N6,oK);g.E=N6.prototype; g.E.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(!a.label||g.Wd(a.label))g.D6(Error("No label is returned for SkipAdButton."));else if(g.ZF(this.L,a.label),e=Dt({iconType:"SKIP_NEXT_NEW"}),e==null)g.D6(Error("Unable to retrieve icon for SkipAdButton"));else if(this.B=new g.cs({K:"span",U:"ytp-skip-ad-button__icon",V:[e]}),g.x(this,this.B),this.B.Kf(this.element),this.api.G().experiments.FM("enable_skip_to_next_messaging")&&(a=g.lF(a.targetId)))this.T=!0,this.element.setAttribute("data-tooltip-target-id",a), this.element.setAttribute("data-tooltip-target-fixed","")}; g.E.onClick=function(e){e&&e.preventDefault();var a,r;aII(e,{contentCpn:(r=(a=this.api.getVideoData(1))==null?void 0:a.clientPlaybackNonce)!=null?r:""})===0?this.api.qF("onAbnormalityDetected"):(oK.prototype.onClick.call(this,e),this.api.qF("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.E.clear=function(){this.S.reset();this.hide()}; g.E.hide=function(){oK.prototype.hide.call(this)}; g.E.show=function(){this.S.start();oK.prototype.show.call(this);this.T&&this.api.G().experiments.FM("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.b(e8G,mq);g.E=e8G.prototype; g.E.init=function(e,a){mq.prototype.init.call(this,e,a,{});e=g.H(a.preskipState,iDl);var r;if((r=this.api.getVideoData())==null?0:r.isDaiEnabled()){if(!e){g.D6(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.T=new pS(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.S);g.x(this,this.T);this.T.Kf(this.element);var P;(P=this.T)==null||P.init(K4("preview-ad"),e);(r=this.T)!=null&&(r.transition.show(100),r.show())}(r=g.H(a.skippableState,Nfw))?(a.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=a.skipOffsetMilliseconds:(g.VJ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(K4("skip-button"),r),this.show()):g.D6(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.E.show=function(){FB(this);mq.prototype.show.call(this)}; g.E.hide=function(){!this.isSkippable&&this.T?this.T.hide():this.B&&this.B.hide();MI(this);mq.prototype.hide.call(this)}; g.E.clear=function(){var e;(e=this.T)==null||e.clear();this.B&&this.B.clear();MI(this);mq.prototype.hide.call(this)}; g.E.dM=function(){this.hide()}; g.E.ya=function(){if(1E3*this.S.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var e;(e=this.T)!=null&&e.transition.hide();(e=this.B)!=null&&(e.transition.show(),e.show())}};g.b(xJ,oK); xJ.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(a.label){var r;((r=a.label)==null?0:r.content)&&!g.Wd(a.label.content)&&(this.linkText=new g.cs({K:"span",U:"ytp-visit-advertiser-link__text",S1:a.label.content}),g.x(this,this.linkText),this.linkText.Kf(this.element));var P,B;if((P=a.interaction)==null?0:(B=P.accessibility)==null?0:B.label)Ia(this.element,a.interaction.accessibility.label+" This link opens in new tab");else{var h;((h=a.label)==null?0:h.content)&&!g.Wd(a.label.content)&&Ia(this.element, a.label.content+" This link opens in new tab")}Ne(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.D6(Error("No label found in VisitAdvertiserLink."))}; xJ.prototype.onClick=function(e){oK.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)}; xJ.prototype.clear=function(){this.hide()};g.b(Iw,oK); Iw.prototype.init=function(e,a,r,P){oK.prototype.init.call(this,e,a,{});if(a.skipOrPreview){r=a.skipOrPreview;e=g.H(r,xva);r=g.H(r,iDl);if(e)this.X9=new e8G(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T),g.x(this,this.X9),this.X9.Kf(this.N),this.X9.init(K4("skip-ad"),e);else{var B;r&&((B=this.api.getVideoData())==null?0:B.isDaiEnabled())&&(this.L=new pS(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T,1),g.x(this,this.L),this.L.Kf(this.N),this.L.init(K4("ad-preview"), r),B=this.L,B.transition.show(100),B.show())}if(B=g.H(a.skipOrPreview,xva))var h=B.skipOffsetMilliseconds}a.playerAdCard&&(B=g.H(a.playerAdCard,zGB))&&(this.playerAdCard=new KjM(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T),g.x(this,this.playerAdCard),this.playerAdCard.Kf(this.Lf),this.playerAdCard.init(K4("ad-avatar-lockup-card"),B));a.adBadgeRenderer&&((B=g.H(a.adBadgeRenderer,mh))?(this.B=new Jx(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0),g.x(this, this.B),this.B.Kf(this.S),this.B.init(K4("ad-badge"),B)):g.D6(Error("AdBadgeViewModel is not found in player overlay layout.")));a.adPodIndex&&(B=g.H(a.adPodIndex,L4B))&&(this.adPodIndex=new Du(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.adPodIndex),this.adPodIndex.Kf(this.S),this.adPodIndex.init(K4("ad-pod-index"),B));a.adInfoRenderer&&((B=g.H(a.adInfoRenderer,cz))?(this.adInfoButton=new RK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.element, void 0,!0),g.x(this,this.adInfoButton),this.B!==void 0?this.S.insertBefore(this.adInfoButton.element,this.B.element.nextSibling):this.adInfoButton.Kf(this.S),this.adInfoButton.init(K4("ad-info-hover-text-button"),B,this.macros)):g.VJ(Error("AdInfoRenderer is not found in player overlay layout.")));var c;B=(c=this.api.getVideoData())==null?void 0:c.isDaiEnabled();a.adDurationRemaining&&B&&(c=g.H(a.adDurationRemaining,ZD8))&&(this.adDurationRemaining=new Zu(this.api,this.layoutId,this.interactionLoggingClientData, this.dP,this.T,P.videoAdDurationSeconds,!0),g.x(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.S.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Kf(this.S),this.adDurationRemaining.init(K4("ad-duration-remaining"),c,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));a.visitAdvertiserLink&&(P=g.H(a.visitAdvertiserLink,HDN))&&(this.visitAdvertiserLink=new xJ(this.api,this.layoutId, this.interactionLoggingClientData,this.dP),g.x(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Kf(this.S),this.visitAdvertiserLink.init(K4("visit-advertiser-link"),P));a.adDisclosureBanner&&(a=g.H(a.adDisclosureBanner,lLN))&&(this.adDisclosureBanner=new VW(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.adDisclosureBanner),this.adDisclosureBanner.Kf(this.oH),this.adDisclosureBanner.init(K4("ad-disclosure-banner"),a));this.Z=new WK(this.api,this.T,h,!0);g.x(this, this.Z);g.MY(this.api,this.Z.element,4);this.show()}; Iw.prototype.clear=function(){this.hide()};g.b(aBl,oK);g.E=aBl.prototype; g.E.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(a!=null&&a.title)if(e=a.title)if(this.headline.init(K4("ad-simple-attributed-string"),new kg(e)),e=g.H(a.moreInfoButton,FC)){if(this.moreInfoButton.init(K4("ad-button"),e),a.descriptions)a.descriptions.length>0&&(e=a.descriptions[0])&&(this.S=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.S),this.S.Kf(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.S.init(K4("ad-simple-attributed-string"), new kg(e))),a.descriptions.length>1&&(a=a.descriptions[1])&&(this.T=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.T),this.T.Kf(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.T.init(K4("ad-simple-attributed-string"),new kg(a)))}else g.D6(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.D6(Error("No headline found in AdGridCardText."));else g.D6(Error("No headline found in AdGridCardText."))}; g.E.onClick=function(e){oK.prototype.onClick.call(this,e);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.E.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var e;(e=this.S)==null||e.clear();var a;(a=this.T)==null||a.clear()}; g.E.hide=function(){this.headline.hide();this.moreInfoButton.hide();var e;(e=this.S)==null||e.hide();var a;(a=this.T)==null||a.hide();oK.prototype.hide.call(this)}; g.E.show=function(){oK.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var e;(e=this.S)==null||e.show();var a;(a=this.T)==null||a.show()};g.b(HG,oK);HG.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(a!=null&&a.gridCards)if(a.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.D6(Error("Only single column style is currently supported in AdGridCardCollection."));else for(e=g.Z(a.gridCards),a=e.next();!a.done;a=e.next()){if(a=g.H(a.value,pR5)){var r=new aBl(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,r);r.Kf(this.element);r.init(K4("ad-grid-card-text"),a);this.S.push(r)}}else g.D6(Error("No grid cards found in AdGridCardCollection."))}; HG.prototype.show=function(){for(var e=g.Z(this.S),a=e.next();!a.done;a=e.next())a.value.show();oK.prototype.show.call(this)}; HG.prototype.clear=function(){this.hide();for(var e=g.Z(this.S),a=e.next();!a.done;a=e.next())a.value.clear()}; HG.prototype.hide=function(){for(var e=g.Z(this.S),a=e.next();!a.done;a=e.next())a.value.hide();oK.prototype.hide.call(this)};g.b(q6,mq);g.E=q6.prototype;g.E.init=function(e,a,r,P,B){B=B===void 0?0:B;mq.prototype.init.call(this,e,a,r,P);this.playerProgressOffsetMs=B;FB(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Mw.bind(this));this.api.addEventListener("resize",this.W3.bind(this));this.api.Ev()?(this.T=!0,this.api.zf(!0),this.show()):this.hide()}; g.E.ya=function(){if(this.S){var e=this.S.getProgressState();e&&e.current&&!this.T&&1E3*e.current>=this.playerProgressOffsetMs&&(this.T=!0,this.api.zf(!0),this.show())}}; g.E.dM=function(){this.T&&this.api.zf(!1);this.hide()}; g.E.clear=function(){this.api.zf(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Mw.bind(this));this.api.removeEventListener("resize",this.W3.bind(this));MI(this);this.hide()}; g.E.hide=function(){rwZ(!1);mq.prototype.hide.call(this)}; g.E.show=function(){rwZ(!0);mq.prototype.show.call(this)};g.b(PNa,q6);g.E=PNa.prototype; g.E.init=function(e,a,r,P){if(a!=null&&a.adGridCardCollection)if(a!=null&&a.adButton){var B=Number(a.playerProgressOffsetMs||"0");isNaN(B)?q6.prototype.init.call(this,e,a,r,P):q6.prototype.init.call(this,e,a,r,P,B);e=a.headline;r=g.H(a.adAvatar,sF);e&&r?(this.headline=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.headline),this.headline.Kf(this.BW("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(K4("ad-simple-attributed-string"),new kg(e)), this.adAvatar=new iC(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.adAvatar),this.adAvatar.Kf(this.BW("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(K4("ad-avatar"),r)):this.L.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");e=g.H(a.adGridCardCollection,wR8);this.adGridCardCollection.init(K4("ad-grid-card-collection"),e);a=g.H(a.adButton,FC);this.adButton.init(K4("ad-button"),a); this.hide()}else g.D6(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.D6(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.E.onClick=function(e){(this.adButton&&g.gy(this.adButton.element,e.target)||this.adAvatar&&g.gy(this.adAvatar.element,e.target))&&this.api.pauseVideo();q6.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.E.W3=function(){}; g.E.clear=function(){this.hide();var e;(e=this.headline)==null||e.clear();var a;(a=this.adAvatar)==null||a.clear();this.adGridCardCollection.clear();this.adButton.clear();q6.prototype.clear.call(this)}; g.E.show=function(){var e;(e=this.headline)==null||e.show();var a;(a=this.adAvatar)==null||a.show();this.adGridCardCollection.show();this.adButton.show();q6.prototype.show.call(this)}; g.E.hide=function(){var e;(e=this.headline)==null||e.hide();var a;(a=this.adAvatar)==null||a.hide();this.adGridCardCollection.hide();this.adButton.hide();q6.prototype.hide.call(this)}; g.E.Mw=function(e){e==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))};g.b(vG,oK); vG.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(a.attributes===void 0)g.D6(Error("No attributes found in AdDetailsLineViewModel."));else if(a.style===void 0)g.D6(Error("No style found in AdDetailsLineViewModel."));else{e=g.Z(a.attributes);for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.text!==void 0){r=r.text;var P=a.style,B=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,B);B.Kf(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"}B.element.classList.add(P);B.init(K4("ad-simple-attributed-string"),new kg(r));this.S.push(B)}this.show()}}; vG.prototype.show=function(){this.S.forEach(function(e){e.show()}); oK.prototype.show.call(this)}; vG.prototype.clear=function(){this.hide()}; vG.prototype.hide=function(){this.S.forEach(function(e){e.hide()}); oK.prototype.hide.call(this)};g.b(Rw,oK);Rw.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});var r,P;(e=((P=fC(((r=a.image)==null?void 0:r.sources)||[]))==null?void 0:P.url)||"")&&e.length?(r=this.BW("ytp-image-background-image"),g.vo(r,"backgroundImage","url("+e+")"),a.blurLevel!==void 0&&g.vo(r,"filter","blur("+a.blurLevel+"px)"),a.gradient!==void 0&&(a=new g.v({K:"div",WW:["ytp-image-background--gradient-vertical"]}),g.x(this,a),a.Kf(this.element)),this.show()):g.D6(Error("Failed to get imageUrl in ImageBackground."))}; Rw.prototype.clear=function(){this.hide()};g.b(BbN,mq);g.E=BbN.prototype;g.E.init=function(e,a){mq.prototype.init.call(this,e,a,{});g.vo(this.B,"stroke-dasharray","0 "+this.T);this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){MI(this);mq.prototype.hide.call(this)}; g.E.show=function(){FB(this);mq.prototype.show.call(this)}; g.E.dM=function(){this.hide()}; g.E.ya=function(){if(this.S){var e=this.S.getProgressState();e!=null&&e.current!=null&&g.vo(this.B,"stroke-dasharray",e.current/e.seekableEnd*this.T+" "+this.T)}};g.b(ST,oK); ST.prototype.init=function(e,a){oK.prototype.init.call(this,e,a,{});if(cwB(a)){this.adAvatar=new iC(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.adAvatar);this.adAvatar.Kf(this.BW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(K4("ad-avatar"),g.H(a.adAvatar,sF));this.headline=new dG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP);g.x(this,this.headline);this.headline.Kf(this.BW("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(K4("ad-simple-attributed-string"),new kg(a.headline));if(e=g.H(a.adDetailsLine,W4a))this.detailsLine=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.detailsLine),this.detailsLine.Kf(this.BW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(K4("ad-details-line"),e);this.adButton=new zd(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0);g.x(this,this.adButton); this.adButton.Kf(this.BW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(K4("ad-button"),g.H(a.adButton,FC));this.adBadge=new Jx(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,!0);g.x(this,this.adBadge);this.adBadge.Kf(this.L);this.adBadge.init(K4("ad-badge"),g.H(a.adBadge,mh));this.adInfoButton=new RK(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.element,void 0,!0);g.x(this,this.adInfoButton);this.adInfoButton.Kf(this.L); this.adInfoButton.init(K4("ad-info-hover-text-button"),g.H(a.adInfoRenderer,cz),this.macros);if(e=g.H(a.skipAdButton,Nfw))this.skipAdButton=new N6(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.skipAdButton),this.skipAdButton.Kf(this.element),this.skipAdButton.init(K4("skip-button"),e);this.T=new bG(a.durationMilliseconds);g.x(this,this.T);if(e=g.H(a.countdownViewModel,ILM))this.S=new BbN(this.api,this.layoutId,this.interactionLoggingClientData,this.dP,this.T),g.x(this, this.S),this.S.Kf(this.BW("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.S.init(K4("timed-pie-countdown"),e);if(a=g.H(a.imageBackground,YZB))this.imageBackground=new Rw(this.api,this.layoutId,this.interactionLoggingClientData,this.dP),g.x(this,this.imageBackground),this.imageBackground.Kf(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(K4("image-background"), a);this.show();this.element.focus()}}; ST.prototype.clear=function(){g.du(this.B);this.hide()}; ST.prototype.show=function(){h88(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();oK.prototype.show.call(this)}; ST.prototype.hide=function(){h88(!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.S&&this.S.hide();this.imageBackground&&this.imageBackground.hide();oK.prototype.hide.call(this)};g.b(M6,g.aK);g.E=M6.prototype;g.E.dI=function(){return 1E3*this.api.getDuration(this.Hr,!1)}; g.E.stop=function(){this.S&&this.oO.Xo(this.S)}; g.E.j5=function(){var e=this.api.getProgressState(this.Hr);this.T={seekableStart:e.seekableStart,seekableEnd:e.seekableEnd,current:this.api.getCurrentTime(this.Hr,!1)};this.publish("h")}; g.E.getProgressState=function(){return this.T}; g.E.o0=function(e){g.TH(e,2)&&this.publish("g")};var CJw="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.b(jT,xT); jT.prototype.B=function(e){var a=e.id,r=e.content,P=r.componentType;if(!CJw.includes(P))switch(e.actionType){case 1:e=this.api;var B=this.dP,h=r.layoutId,c=r.interactionLoggingClientData,y=r instanceof wI?r.vH:!1,T=r instanceof wI||r instanceof GH?r.T9:!1;c=c===void 0?{}:c;y=y===void 0?!1:y;T=T===void 0?!1:T;switch(P){case "invideo-overlay":e=new kJM(e,h,c,B);break;case "player-overlay":e=new lG(e,h,c,B,new M6(e),T);break;case "player-overlay-layout":e=new Iw(e,h,c,B,new M6(e));break;case "survey":e= new YJ(e,h,c,B);break;case "ad-action-interstitial":e=new bLl(e,h,c,B,y,T);break;case "video-interstitial-buttoned-centered":e=new ST(e,h,c,B);break;case "survey-interstitial":e=new wU(e,h,c,B);break;case "ad-message":e=new llb(e,h,c,B,new M6(e,1));break;case "player-underlay":e=new YON(e,h,c,B);break;case "display-underlay-text-grid-cards":e=new PNa(e,h,c,B,new M6(e));break;default:e=null}if(!e){g.VJ(Error("No UI component returned from ComponentFactory for type: "+P));break}g.TX(this.components, a)?g.VJ(Error("Ad UI component already registered: "+a)):this.components[a]=e;e.bind(r);r instanceof LH?this.T?this.T.append(e.wA):g.VJ(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(e.wA);break;case 2:a=o9G(this,e);if(a==null)break;a.bind(r);break;case 3:r=o9G(this,e),r!=null&&(g.Pe(r),g.TX(this.components,a)?(r=this.components,a in r&&delete r[a]):g.VJ(Error("Ad UI component does not exist: "+a)))}}; jT.prototype.RH=function(){g.Be(Object.values(this.components));this.components={};xT.prototype.RH.call(this)};g.b(n9G,g.Vn);g.E=n9G.prototype;g.E.create=function(){try{ywl(this),this.load(),this.created=!0,ywl(this)}catch(e){o9(e instanceof Error?e:String(e))}}; g.E.load=function(){try{fBa(this)}finally{eT(JR(this.S).Cq)&&this.player.wy("ad",1)}}; g.E.destroy=function(){var e=this.player.getVideoData(1);this.S.S.CU.sj(e&&e.clientPlaybackNonce||"");this.unload();this.created=!1}; g.E.unload=function(){g.Vn.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(a){o9(a instanceof Error?a:String(a))}if(this.T!=null){var e=this.T;this.T=null;e.dispose()}this.B.reset()}; g.E.FP=function(){return!1}; g.E.getAdState=function(){return-1}; g.E.getOptions=function(){return Object.values(UuN)}; g.E.i$=function(e,a){a=a===void 0?{}:a;switch(e){case "replaceUrlMacros":return e=a,e.url?(a=Wt4(this.player),Object.assign(a,e.sGz),e=g.Vm(e.url,a)):e=null,e;case "onAboutThisAdPopupClosed":this.O5(a);break;case "executeCommand":e=a;e.command&&e.layoutId&&this.executeCommand(e);break;default:return null}}; g.E.qz=function(e){var a;return!((a=this.S.S.GX)==null||!a.get().qz(e))}; g.E.O5=function(e){e.isMuted&&d8z(JR(this.S).tO,JR(this.S).NK,e.layoutId);this.qg&&this.qg.O5()}; g.E.executeCommand=function(e){JR(this.S).dP.executeCommand(e.command,e.layoutId)};g.KL("yt.player.Application.create",g.gZ.create);g.KL("yt.player.Application.createAlternate",g.gZ.create);Lp3(Or(),ACa);var GP8=g.aZ("ytcsi.tick");GP8&&GP8("pe");g.DD("ad",n9G);g.b(g.e8,g.N);g.e8.prototype.start=function(e,a,r){this.config={from:e,to:a,duration:r,startTime:(0,g.Ov)()};this.next()}; g.e8.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.e8.prototype.next=function(){if(this.config){var e=this.config,a=e.from,r=e.to,P=e.duration;e=e.startTime;var B=(0,g.Ov)()-e;e=this.S;P=IOO(e,B/P);if(P==0)e=e.D;else if(P==1)e=e.Y;else{B=qv(e.D,e.C,P);var h=qv(e.C,e.Z,P);e=qv(e.Z,e.Y,P);B=qv(B,h,P);h=qv(h,e,P);e=qv(B,h,P)}e=g.ID(e,0,1);this.callback(a+(r-a)*e);e<1&&this.delay.start()}};g.b(g.ap,g.v);g.E=g.ap.prototype;g.E.hasSuggestions=function(){return this.suggestionData.length>0}; g.E.nw=function(){this.T&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.E.show=function(){g.v.prototype.show.call(this);b55(this)}; g.E.SU=function(){this.T&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.E.XT=function(){this.VX(this.api.MF().getPlayerSize())}; g.E.VX=function(e){var a=this.api.isEmbedsShortsMode()?.5625:16/9,r=this.api.eX();e=e.width-(r?112:58);r=Math.ceil(e/(r?320:192));var P=(e-r*8)/r;a=Math.floor(P/a);for(var B=g.Z(this.S),h=B.next();!h.done;h=B.next())h=h.value.BW("ytp-suggestion-image"),h.style.width=P+"px",h.style.height=a+"px";this.suggestions.element.style.height=a+"px";this.L=P;this.Y=a;this.containerWidth=e;this.columns=r;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.r0(this)}; g.E.onVideoDataChange=function(){var e=this.api.G(),a=this.api.getVideoData();this.Z=a.nB?!1:e.L;this.suggestionData=a.suggestions?g.QX(a.suggestions,function(r){return r&&!r.playlistId}):[]; g9w(this);a.nB?this.title.update({title:g.PA("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More Shorts":"More videos"})}; g.E.scrollTo=function(e){e=g.ID(e,this.containerWidth-this.suggestionData.length*(this.L+8),0);this.D.start(this.scrollPosition,e,1E3);this.scrollPosition=e;g.r0(this);b55(this)};})(_yt_player);