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 cD,pDW,ciQ,Ex,BuW,i_Y,Ji,TuV,Mv,b_E,YB,hi,PD,VQD,Dvi,tQi,aE,ZV,XDv,xvQ,EBE,qxY,WD,yW,C_,eQ,lf,vD,JiD,IE,QW,ru,Yxu,mvW,cq,hN_,PfB,Hq,Aiu,O_u,X3,xL,EQ,RNY,Sxv,$vV,KSV,uYf,aVN,Z_E,LSV,JJ,dvv,hJ,WSE,lVx,Pq,vBB,IVx,OQ,jE_,$L,uE,y$,C9,el,lE,FSB,oBu,vq,F3,Ig,nBE,QEx,riY,UvB,og,sED,n9,Q$,rz,kYW,gBu,sQ,NuE,fVN,He,zKY,D5,pq_,cJD,b0,Bzi,H9E,i9f,Yu,Tzu,VlQ,qQW,Ay,ELY,tlV,MlY,hKu,wd,Sg,K$,$u,PE_,wqf,u0,aW,Z5,We,yT,C$,l0,ve,Z9S,IW,jg,L1Y,n$,QT,U_,CEN,Go,f$,cy,eKN,p2,lmQ,vLS,By,NC,Hy,iN,Tu,Imv, bN,DB,F1x,tD,Xp,x_,nLi,Py,Qgv,rJY,UdE,oLE,hD,MI,ED,sgx,kvN,GvQ,Nzu,fmf,OD,wL,R8,zUY,Sx,K2,uN,a8,peQ,L2,cyD,Wy,dL,TdW,ex,lN,b$E,Vgv,vy,I8,Fp,jx,n2,o8,gL,QY,UD,sD,tgY,NI,XeW,f2,zc,HQ,iJ,Tc,pp,BQ,cQ,VH,DQ,X2,xCf,iE,E7,qo,rL,k_,J5,q_B,Mo,V$,Yy,mn,h5,PQ,A5,O7,wv,Jyv,RJ,MgN,$y,Y_u,uJ,Kp,aJ,ZQ,Lp,dv,WQ,mCv,P0_,Cp,AyD,O$v,weQ,lJ,vQ,F2,S_D,oJ,$Ci,np,ueE,QH,Z$i,rv,U7,s7,LrV,ky,dCE,gv,WrY,yyf,Gc,C0f,No,fp,pw,cA,l5Q,iv,jWS,eUQ,Ts,V5,DX,nuV,FrN,XC,EU,QWN,UC_,sWY,qi,Ju,Mi,YC,me,hu,PA,guE,GoN,NdS,zxS,py_,Au,cDx, BLD,OU,wh,RQ,Sf,H2u,VxY,DIV,XyQ,txW,xID,qDS,aQ,ZX,Lw,dh,WA,Cw,ef,mIY,vA,jf,FC,oQ,Q5,rh,hxx,UU,sU,gh,ADE,O2_,Gs,fw,zk,cj,Bj,iU,Tk,Z2x,L0i,dIf,W0V,bU,V3,yD_,CNf,exf,D$,to,Xa,x0,Jo,mH,Pj,wC,$0,lBu,v_V,Wj,IBv,Fa,ox,o_Y,s8u,rDD,g_Y,s2,k0,z5,fBQ,pQW,zkQ,cG,HG,c5D,BG,DN,Q3,Hpi,Bv_,qx,EN,nH,J3,Mx,Yr,ipu,m8,bpN,A3,VrS,wc,Rz,SS,$r,DoB,trE,XQf,Ku,xoS,EyB,f5f,dc,q7Y,J5Y,WG,Mrv,Lu,moE,Y7v,ZN,ym,Cu,hkB,PJN,A5f,Opv,eS,wQu,l4,TLx,i2Y,vG,Iz,F4,oz,$o_,nu,Qm,gc,Kn_,u2D,G5,Wnx,cN,Zp_,doY,z1,fu,bt,Vo,y5_,X0,CJi,xA,E9, ek_,vyN,YA,jJD,hG,PN,FnD,oyY,w6,SB,Uov,kcY,gyV,GcE,$A,pA_,AG,QJx,BhY,z2N,NvV,fQY,HwY,cuf,ut,sJY,WN,Thi,bwE,Vfi,Dif,tfv,Cf,XAN,lt,xiN,Juf,Mfv,vN,IS,jB,Qo,miV,r6,U9,s9,h2S,PvN,G1,AuS,Ng,ff,OHx,RfE,$Qf,S2Y,KHS,pz,Hb,VC,t9,X8,xX,EE,ql,ZHY,LHu,J9,dQD,Ml,YX,Ds,mE,h9,Pb,Tv,A9,WHS,wN,efi,R$,SK,Kz,l$Q,v0V,I$x,jxS,uo,FHx,a$,Zs,n0f,UQv,sxu,Lz,NC_,Gkv,f$u,zn_,pGV,dN,c3Y,kkx,Wb,BcV,HuY,yC,Tci,buW,VSY,DxS,tSB,eK,XGQ,xxW,Eri,qND,YND,J3i,lo,vb,I$,jK,o$,nz,QC,rN,hnQ,sE,UE,P4N,kX,A3W,gN,Ouu,wGV,Rni,SNf,GB,fz,u4Y,Nl, aND,zi,pD,Zu_,cF,BF,HF,iY,Ti,bY,C4x,L8B,XW,y3u,xY,W8u,te,VR,dxv,DY,q7,lNf,M7,Je,Ae,Oa,Re,jzD,wI,KD,F8Q,uY,vrS,QzV,r3D,UxW,LD,dI,WF,szS,yR,CD,eL,lY,k5D,vF,Ie,QR,grE,G5Y,rI,NcN,pN_,QxN,z1_,cGN,B6Y,Hff,fNB,T6V,Ua,sa,kY,bff,Gi,gI,VBW,DgE,tBu,pE,XNi,cR,BR,xgD,HR,q9V,iW,EAE,JGf,MBx,Y9S,T$,bW,VA,Dc,tY,Xu,xV,mgY,Ek,qr,JY,h1f,AGY,Of_,YV,hY,m_,AY,Ok,w7,R1D,S9Y,R2,SP,$V,Kyu,u0_,Lyi,aCW,dgx,e1E,KE,CtW,WyW,uW,a2,lCQ,Zc,vAW,LE,jSD,ICY,FyY,oA_,CE,eP,nAf,QSf,rGB,lW,vR,UgB,I2,sSx,k1i,G1S,pbN,jP,c9N,BNY,Hzi,izS,TNE, nE,bz_,VKu,DlQ,G$,g7,kV,tKN,XbY,xlN,Nr,fE,zX,qEf,TX,bn,VM,t_,xm,Eg,MKW,YEW,mlv,qy,My,Ym,A_,Og,Sz,PoY,Ozi,A9S,wbS,REi,C4,SEx,$lW,ez,KEY,u8Y,asD,Zzv,jz,vx,Fi,oj,n4,LEu,dlD,WEv,QM,rY,y9_,Ug,Coi,eEv,ls_,sg,vXW,km,gY,Isu,j$f,FED,oXY,nXE,Q$B,GX,Ny,f4,px,s$B,cV,BV,kBY,UlE,zw,gXQ,HV,i6,Tw,Ve,b6,GBY,NNx,fsx,DL,pFi,tE,BIW,HDY,iDS,TIY,bDE,VLN,D7v,tLf,EY,q3,JE,x7_,XF_,EYV,qaQ,YO,JeV,mk,MLY,YaQ,hE,PV,AE,m7E,OY,wK,hPW,RV,Su,$O,Kx,u6,aV,ZL,Lx,PYQ,Ae_,ODf,wFD,dK,RPi,$7v,SaN,ye,Cx,uWu,KMx,LMx,yei,WMD,eu,CYi,ePv,lYY, IYi,vYW,jef,l6,FMx,oYN,IV,nYE,Qev,reS,U7S,ju,seV,FF,kix,oV,nx,GiN,Qe,NIW,rK,UY,fYY,zyV,sY,gK,cYv,Gw,pR_,B7Y,HEW,iEE,bEV,N3,VPQ,po,cO,tPQ,XRS,qku,JYY,BO,HO,i8,T_,b8,VX,Dq,tS,Xd,xv,Er,qV,JS,hyi,mrW,PWV,OEu,AYf,Ryi,YkS,wRN,MPx,MV,Yv,$rN,K_B,uuY,AS,Or,w4,mG,ZEV,RA,Sk_,drN,W_E,L_v,SV,$v,Ko,u8,yYV,acE,CWi,aA,eyW,lcu,vVB,Ici,j2D,nVu,Q2i,rYu,Urx,WO,k$Y,gVY,fc_,z9Y,Co,c_D,eV,yX,H4_,BYv,b4_,vO,jV,Dyi,tz_,Xx_,xyE,qgx,no,oA,J_B,Emf,YgW,h9B,SgB,Ur,$yS,r4,kv,KmV,g4,NV,fo,uiW,aRS,VL,Z4f,tn,LmN,dyv,hn,WmS,Cnv,P4, e9_,lRE,omN,vmi,RY,So,$f,u5,aY,sjS,Zv,LI,dD,gmB,CI,GXQ,NYB,eo,zTW,v4,IY,jo,Fj,pVN,oY,QL,rD,Uo,so,cEu,BKE,Hxu,gD,GV,N5,fI,zI,pQ,ixu,TKx,bxS,VuY,D3V,tuV,cn,XVV,D_,x3Y,EOY,qYS,tq,xD,E6,qR,YD,m6,hq,MuE,O6,wj,R1,YYu,m3x,SY,hTS,P6S,KQ,uFB,aLS,ZxW,u3,LkE,d3W,C6Q,Z_,lLY,eTY,dj,ILv,jVV,FkW,ys,CQ,oOf,eY,l3,vn,I1,jY,Fm,o1,nQ,U6,s6,kD,gj,GI,NR,nON,QVY,rES,zQ,ch,U3_,TQ,bO,VS,Dz,t6,x5,E0,GwQ,q_,J6,M_,fLN,NKf,sVD,h6,mI,B4Q,Ph,af,$5,Zz,LN,ioN,VVY,Wh,XOY,DVv,tVN,EvE,mVS,qrx,MVY,Yru,CN,yS,hRW,lO,vh,If,P8x,rS,ASf,U0, s0,gS,OoE,N_,fN,wOD,zW,pG,SrS,HL,TW,bL,Vh,DA,tr,Xy,x4,EA,qD,KG_,Jr,mo,Y4,aqB,WGi,LGV,dVS,ySY,C8Y,lq_,vvi,eRD,jAS,Ar,OA,Sa,FGf,ov_,Rw,$4,QAQ,rSY,gvx,k_i,ZA,LG,d3,WL,yh,ea,N4Y,fqx,z__,Qh,r3,p4i,cnB,BDW,GW,ND,fG,HIS,iI_,bIQ,D5Q,BJ,toD,T6,HJ,Dg,tM,xU,X4D,hM,PJ,AM,Om,RO,Sj,Kt,MoN,YoE,aO,m5W,h_f,Lt,P5f,AnW,dy,WJ,OIW,w4u,SoS,lR,KaB,ujf,Ct,avD,ZID,d5x,Laf,F1,$5u,ynu,C5u,sm,ry,e_x,lvx,kU,gy,vf_,IvY,ft,jYV,FaN,ofS,nff,HU,QYN,rnx,U5D,sYQ,kVY,gfD,GVv,NDS,TG,fvi,Vc,pnf,cqf,BjQ,HQx,iQB,DJ,Jc,bQv,tYi,Mq,XnE,EDW, TjE,q6f,JqD,MYN,VYf,DRD,tc,X$,qq,xRS,E3,xc,Y6B,mRu,h4W,P3V,AqV,OQE,K6Y,wnB,PU,Ac,uH,ZQ_,W6_,dRW,Kq,Lq,yqV,yc,C3u,l_D,IX,e4x,URD,vDV,rqD,nq,s1u,GIE,Qc,oX,kI_,gDf,Nj_,U3,zWV,ph_,c6D,BSV,HND,iNf,TSx,f_f,V9i,D_x,t9Y,x_E,XhS,q0Y,GG,J6u,Nq,fq,zy,M9Y,Y0Q,Bd,Hd,hWY,m_i,iI,PO_,ONQ,RWu,whQ,S0x,uLB,$_N,MA,wf,Oj,azE,Yg,RU,Sp,$g,KU,ZNQ,aU,d_N,df,LU,y0,CU,ep,lI,WIN,vd,jp,y6D,oU,Q0,rf,COW,eWx,lzY,v5v,Uj,kg,IzY,gf,Gy,NA,FIV,fU,zt,o5x,cu,i$,Hu,Bu,Tt,b$,r6x,NSN,zYi,GQY,g5Y,fzE,tg,EF,HG_,pLW,crY,B3f,QfV,E4Y,wH,xDD, Max,XLS,DU,Rc,YP,Ag,qA_,Jg,sfB,U_f,kQx,xP,taE,u$,OGf,ac,RYx,SAV,$DV,Lh,KoQ,uyv,aAx,LoS,dDY,yy,yrY,Ch,CLv,eYv,v4f,IAY,l$,jwW,o4S,vu,n4_,Ic,jb,JM,g4W,pJY,UF,Byi,Tyx,kP,Vj_,DGS,tjQ,XJi,Tr,xGW,H_,L6N,c_,iZ,B_,gH,qK,EL,MK,mU,qmW,hQ,AQ,OL,JMB,MjD,S_,mGD,hVE,PRY,AMf,Otv,wJf,RVS,SmN,$GV,KFu,Zy,u1u,LB,W_,agB,ZtD,LFv,yj,dG_,WFS,v_,Ib,j_,yMS,F9,CRi,nB,lgY,eVQ,rJ,UL,sL,kj,vUV,gJ,Gr,IgV,jOi,NK,fB,QOf,FFv,nUx,oUW,z3,pJ,c7,rMV,UGE,sON,B7,gUu,fgD,NyV,H7,iT,T3,bT,VQ,tb,XA,xQ,Eu,q6,Jb,zSB,pUW,ccD,M6,YQ,ms,P7,Ou,RG, iq_,HqY,$Q,T5W,KJ,uT,aG,Za,LJ,yQ,CJ,eT,lT,v7,IG,jT,FA,oG,nJ,QQ,DqE,Uu,gn,tG_,G3,xqi,EcN,q3D,MGS,mqB,BH,hSV,ie,HH,Oqf,wUN,RSE,be,V_,$qQ,ts,XZ,xw,Rt,u$u,S0,$w,K0,aJx,ue,K2Q,at,Z6,L2N,ZqS,L0,dO,WH,y_,e0,W2x,ycB,vH,It,FZ,ot,CHY,j0,vcS,IJQ,jXE,F2D,ocQ,ncW,QXS,Q_,n0,lJB,sXx,rO,gc_,GGf,Gl,N5E,sM,kw,fJQ,NZ,pdx,BfB,f0,z4,HUi,cY,TfE,BY,xAi,tpY,bUQ,DAV,VpE,ia,T4,ba,VG,DS,tv,XO,xp,qjY,YjD,Jv,pxv,M2,mAS,PIE,mP,OR,hv,Av,PY,wdV,OUY,ApW,RpQ,wQ,SjQ,auQ,Rk,$p,Lh_,Kb,ua,ak,ZS,dAY,Lb,WhD,ypY,WY,la,vY,Ik,je,FO,ok,nb, QG,rQ,UR,sR,kp,gQ,CID,epD,G4,N2,fb,zE,p7,c8,luV,vgx,B8,Yl,Fhv,ogB,mZ,hz,S7,$l,QUD,aN,dk,rp_,sUS,UAY,kyQ,ggV,Gy_,Nfi,fuB,zCx,cgY,puW,BHY,THV,VbY,ihE,DMu,tbD,xMQ,yV,C7,qFv,EPE,e7,lS,v8,MbQ,IN,j7,F6,mMi,hCf,oN,YFQ,n7,Ohu,QV,rk,UG,sG,kl,gk,GE,N9,f7,zD,pF,c1,B1,H1,ix,TD,bx,Vk,Dk,tL,XH,xZ,EW,qj,JL,Mj,YZ,mB,hL,P1,AL,OW,w2,RR,S3,$Z,KF,ux,aR,Zk,LF,d2,W1,yk,CF,e3,lx,v1,IR,j3,FH,oR,nF,Qk,r2,UW,sW,kZ,g2,GD,Nj,fF,zb,pO,c3,B3,H3,iG,Tb,bG,DD,tf,SFV,Xo,k,x8,Vi,Ei,qL,Jf,KcY,Y8,aUN,ML,Zh_,hf,Lc_,Af,mK,Oi,w9,R9,$8, Wcu,ygx,C$x,eCQ,CO,eE,LO,lG,vPW,IUx,jci,FcY,dM_,oPW,SE,nPQ,QcY,I9,Qi,jE,uG,rgQ,KO,v3,Fo,r9,scW,a9,ZD,nO,o9,ktQ,Ui,si,k8,g9,gPf,Gb,NL,fO,zM,pV,Gtv,NHE,zoQ,p_u,H$,iD,TM,bD,TJY,V_B,t_Y,X_S,DI,EjD,qLx,JT,JQV,MT,Y6,m$,hT,P$,AT,M_x,mKN,hoY,YLW,PZY,AQi,SD,$6,uD,ZI,LV,dl,OBN,W$,w_N,yK,CV,KV,v$,ID,jD,Fq,RoS,lD,$KB,oD,KUE,u9Q,nV,ayD,QK,rl,ZBW,LUu,U5,dKY,WUD,s5,yQV,CZY,eoV,lyB,k6,gl,vjx,Iyx,GM,NT,fV,jbB,ze,pd,c2,B2,FUW,H2,iz,ojx,Te,njV,bz,Qbx,rQQ,UKf,sbu,krD,gjV,Vn,GrV,NJi,fyQ,Dp,zXY,td,p7B,XI,cbD,x7,BnB,HJD, E4,mC,iJE,hd,P2,Ad,O4,Tnv,wB,Rr,SU,bJW,VTE,Kd,uz,tTx,ar,X7S,x6x,D6f,EQN,quW,Jbf,Ld,MTf,dB,W2,yn,Cd,YuY,eU,lz,Ir,m6x,jU,FI,hXx,nd,U4,Qn,Ge,Ne,PTf,fd,AbS,pZ,c6,B6,OJB,im,w7u,bm,Vf,Di,k7,tw,Xb,xK,RXu,EI,qF,Jw,Suf,MF,YK,mX,hw,P6,OI,wr,Rp,gr,$6Y,KsY,uA_,aaf,zC,Gq,pg,cS,ZJv,LsY,d6u,BS,HS,iB,WsS,ybx,fZ,CTx,eXD,TC,laS,bB,VD,tO,XQ,xN,EC,qP,MP,YN,hO,PS,AO,OC,mO,jGD,FsY,Rh,S4,$N,oQB,uB,QGD,ah,Z0,rbv,Lg,dV,WS,Cg,U6E,yD,e4,lB,vS,sGi,FQ,gQx,G3E,oh,ng,Nni,fai,zai,QD,csu,Kg,pHu,BOu,rV,H0i,UC,i0Y,sC,TOx,b0f,V0Q,DZE, t0S,kN,xZW,XHx,gV,fg,EwY,zN,qMN,pC,JsW,M0V,cT,YMf,mZY,hax,PeN,BT,AsQ,HT,wHE,TN,bA,SMS,RaS,$ZN,Kli,uZY,Dr,tH,X_,a6x,Z0x,LlB,dZV,Wl_,ysf,CeQ,eaQ,l6E,vwN,EX,qu,I6D,jtv,JH,Mu,Flf,Yb,mv,PT,owW,AH,OX,wg,nwu,Rs,QtY,Sv,rsx,$b,UZE,stf,KC,klY,gwQ,Gl_,uA,as,Zr,LC,dg,NOB,f6Y,WT,yw,CC,zlu,ev,lA,vT,Is,jv,pYD,cvY,F_,os,BQx,nC,Qw,rg,UX,fUY,HbS,ibQ,sX,TQN,bbD,Vex,kb,gg,GN,Nu,fC,zd,pl,cr,Br,Hr,iV,D2D,teD,ET,qW,XYY,JZ,OT,YS,Wr,YRx,ObV,m2v,wYD,SR_,$2i,Rli,KPx,uOB,aSN,ro,d2Y,yvS,elW,lSi,vpW,kS,go,jkY,FPD,rvY,Gd,U2v,opQ, NW,fl,zj,pc,k4B,NQi,gpx,p8x,V7S,b7v,czf,D9x,BZ,H7W,Bkx,x9W,JzE,qGQ,hcY,M7_,HZ,iq,Rci,VE,SGV,d9_,LZY,Z7Q,aGV,KZx,CSW,yzY,u6S,jNW,IGx,FZV,EO,QNE,olx,nlV,$9W,rzx,U9S,Db,Xc,lGx,ecW,vlu,sND,t$,WZN,glY,NkS,z5B,cLv,iFQ,T2u,V3W,DjB,X1v,t3E,M3f,EZW,xjW,YWE,PxS,ALE,OFE,w1S,RF,WPE,$jD,R5W,Kc,aku,aF,LBQ,dju,ZF_,Zb,WBW,Lc,dW,O5,WZ,LPD,yE,Cc,eC,yLV,CxN,lq,e5E,lkB,vZN,vZ,IF,jC,Fc,oF,nc,QE,rW,UO,IkB,jRD,sO,FBQ,kH,NP,gW,Gj,nZY,oZY,Np,QRN,rLx,fc,za,Ujx,pk,sRQ,kDv,CaQ,uHN,gZu,ct,wl,B$,qp,GDY,N2S,Ht,w8E,Tj,fkx,SC,$H, Mp,J$,cZ,mW,B2W,bFW,YH,PSB,mj_,zsV,t7S,i7E,ij,KBN,sT,cfE,p3N,skx,HFD,B9Y,h5W,OO,AzS,O7V,Eli,p1v,fGS,zcN,G4S,QkY,npB,ISB,kEi,Tkx,qWQ,YGB,m9f,PZ,A$,h$,JLx,GEB,iOV,HOu,Ta,bj,Vg,Dx,th,EZ,MH,Yx,m7,hh,Ah,OZ,T9x,XG,xx,Pt,VEB,bOE,wU,DLY,tEf,St,X3S,xL_,$x,Kk,uj,an,Zx,Lk,dU,Wt,MEx,Ck,yg,YiW,qif,JfY,mLB,et,lj,hsx,PGf,vt,AfS,qG,w3v,OO_,SiY,KK_,uoD,$LE,aDQ,dLi,Qg,rU,WKx,yf_,UZ,sZ,CGY,esW,lDf,v8D,gU,NH,fk,j9E,FKE,Q9Y,ULB,s9E,rff,ci,Hi,Bi,kb_,g8Q,zO,Gbi,N9E,fDx,z7Q,pS,HVf,iVB,Tli,BlV,cTB,p$Q,bVv,VDN,o8f,DTB,n8B, tDN,X$B,JTf,xTu,E6i,q5V,mTE,MDW,Y5D,h7B,PDv,TO,w$Y,ATD,R7Q,OVf,S5B,$TY,K$W,uq_,aID,ZVi,L$B,dTf,W$W,yTB,CDu,e7Y,bF,v6S,IIY,jDB,lIY,F$f,o6x,rTW,DW,xt,qJ,UTx,JP,MJ,Yt,GM_,fI_,NlY,p2W,tUY,BB_,SI,hP,zIv,g6Q,kMN,sDi,Ru,Pi,wM,ZW,LS,E7E,dM,Wi,au,Y4E,q4u,JdY,meQ,yq,CS,PzS,lF,vi,Iu,jI,FK,ou,nS,AdQ,OdV,Qq,rM,sJ,RIN,S4E,UJ,kt,uIY,apf,gM,Zdu,fS,LCx,zP,cE,def,pi,BE,WCV,is,CzD,eI_,bs,Vz,EV,v7Q,tR,qm,Mm,IpE,mN,x3,JR,jrB,hR,FCv,PE,o7Y,Dj,Xh,lpB,Y3,AR,n7S,QrY,OV,rdu,w8,RB,SM,$3,UeW,us,Ki,aB,Zj,srB,kef,Li,d8,WE,yz, Ci,g7f,eM,ls,GeB,NBY,vE,IB,jM,zAB,fpi,Fh,p6N,cwD,BrY,oB,HZY,iZf,Trx,bZx,V2f,ni,Qz,r8,UV,DFf,t2Y,k3,X6N,g8,GP,xFf,EKE,Nm,qIx,Jwv,hAv,PmQ,M2S,YIV,mFu,zm,p5,cw,Bw,AwQ,OZW,Hw,w6_,SID,RAS,Vr,b2,KXD,ubi,aiN,ZZu,Dn,LXu,XJ,xT,dFW,ywS,Cmv,qO,hX,IiY,VUS,AP,FXB,oKv,nKv,QpQ,rwE,mp,JX,UFY,OP,wm,gK_,GqN,NrY,RM,cOx,fif,z6x,HgD,ig_,S5,TVY,BVQ,bgv,$T,K5,u2,V4v,DPV,aM,Zn,t4N,L5,XSY,dm,Pw,e5,xPB,DeY,cdf,l2,vw,j5,FJ,oM,n5,Qr,IM,sP,qCu,Gm,JOx,M4S,YCx,mPB,h6f,NO,AON,f5,wSQ,zx,SCQ,$Pu,R6f,OgB,KOD,uQY,a0x,iP,ZgN,LOQ,WON, Tx,xeu,bP,CBS,l0Y,$t,vN_,I0Q,D8,FO_,OJ,jhN,Hdf,TBf,bdW,yOD,tN,XB,xq,oNv,nNB,Ec,Qhx,JN,MB,Yq,md,hN,rOY,PW,AN,UPD,shD,Oc,wX,R6,SF,$q,Km,gNu,kCf,uP,GCB,f0N,a6,zmu,NVV,kq,Uc,gX,NB,fm,BW,pTY,Vv_,W3,sc,BX,xuv,qXS,eF,bi,Cm,Vv,XD,rX,xW,hmS,Et,qb,PAN,AHS,OCN,wTf,Jj,RmW,SXx,Mb,$uY,LvN,ZCx,Kvf,arf,u__,YW,duf,mY,Wvu,yHu,emS,lrB,vbi,nbf,we,Rd,UuY,SO,$W,ssE,GNY,Ngx,frE,zgB,K8,prQ,Bo_,HlE,Id,ESW,VRW,DWY,JZu,jO,MR_,mWW,YTQ,hgS,od,re,PVx,FD,Ut,kW,AZD,wrS,$WV,f8,Hf,Dt,xI,IoY,jPE,Mk,Ja,ha,Pf,FiW,QPS,nSu,rZY,Oe,Aa,UWY, kdQ,gSx,NoE,SN,GdD,foi,zwN,KT,ur,c$_,Nb,Ry,LT,LiQ,OlN,CVD,CT,m9,sPB,oy,ta,QN,rG,Ue,J$Q,qOv,Xl,kI,gG,YOf,Gz,Nk,mpW,Ee,Bv,oSY,Tg,bcS,YI,hwx,uRu,KiW,RgQ,bg,D7,abS,ucE,LWB,dpW,ES,J1,M0,q0,h1,Pv,WWu,A1,CqY,OS,lbS,Sq,ew_,$G,KP,FWD,ug,QFx,r$f,LP,UpD,kjN,nP,r$,US,g$,gH_,Gg,N0,cK,BK,HK,id,GjV,Tn,bd,ptB,Vx,De,chi,BUu,tW,HkE,ikD,TUQ,bki,Xf,xM,Vtv,ttx,JW,Ma,hW,PK,XtQ,xHN,AW,OB,w1,RL,Exi,qZ_,Sk,Jhu,MtV,$M,mHV,YZV,hLD,Ke,AhW,PjQ,ud,OkQ,aL,Ze,wtY,SZx,$H_,Le,d1,WK,K7v,yx,axW,ek,ZkY,L7i,Ce,ld,vK,IL,CjB,lxW,dHW,eLY, vxf,W7Q,yhi,IxB,jnu,oL,F7v,nxv,UHN,kai,snE,Gn,g1,zh,GaQ,pR,cm,Bm,fxY,Hm,ztf,NUQ,ic,BMD,Th,bc,HSE,VF,iSi,blD,xWv,bSS,TME,DJx,VIW,tI_,tm,Xii,xJY,x2,JPN,El,qn,Jm,YJY,PFY,mJ,hm,Pm,OSx,APB,Mn,wiB,RtY,SJD,Kpi,Am,etB,S8,$2,ot_,Qx,QuW,rPY,UJv,suE,kOv,uc,gtW,a3,ZO,LR,GOY,yF,NMQ,fWN,CR,e8,zHi,pEE,cRY,B8v,Hix,lc,Wm,iif,vm,biQ,VMf,DmE,I3,tMY,XEY,xmB,E3_,qVD,JRV,MMu,YVS,mmQ,hHS,j8,ARN,Fk,Oif,nR,wEN,SVV,Ul,PsN,o3,sl,k2,gA,Gh,Nn,fR,$mV,zH,KN_,cC,dmY,CsE,eHY,ljY,v3i,ib,Iji,yRV,LNE,jBi,BC,FNf,n3B,pa,HC,ajN,Zif,TH, QBu,rRi,WNQ,uhY,Umf,Vd,sBf,DZ,tF,kPu,XX,N8D,g3Q,GPN,xo,fjY,E$,qE,JF,ME,zDD,pwE,cXE,Yo,H5f,i5Y,mq,Tmu,hF,PC,b5_,V5Y,DOv,t5v,XwQ,xOi,YPN,qPv,QnY,O$,hDV,P2_,JXS,M5v,ETW,SJ,SPN,Ra,w_,mO_,K4i,RDW,wwS,O5_,AXf,Ka,uJu,ne,ub,aa,ZZ,anv,La,Z5E,d_,L4D,fe,dOW,WC,UB,kM,oxY,eJ,vC,C2V,eDY,Ia,FX,lb,Ca,na,yd,W4Q,yXN,Qd,ln_,vTD,rA,RHi,r1,r_,InE,jJ,jMY,F4Y,oTW,nTx,QMQ,U$,UOi,sMB,kmW,gTE,GmW,Nm_,fnW,o3Y,ko,g_,pWN,s$,cNY,piD,cPY,GH,BX_,HmS,imu,TXN,NE,DBv,bmY,tFf,xBY,VFS,EqY,JNf,qcQ,mBY,fa,ca,ANE,PPV,Sc_,wWW,$Bi,KdB,OmB, RiQ,hiu,uBi,Ba,a8B,dBY,ZmY,Ldf,ip,T8Y,Wdi,yNQ,CPx,ei_,l8_,T9,vq_,bp,I8W,Vl,Dd,j6f,tA,FdD,oqV,XN,nqN,Q6S,rNf,UBY,xn,hti,Ep,gqD,qw,kxY,Gx_,NXY,mJY,Y2,f8E,zef,Mw,b8Y,TeY,va,VOu,i8Q,XXY,I5,xbW,EWD,MOv,Ytu,heE,JjB,PiV,AjN,O8N,wXN,ReY,$bD,KYf,uDf,StN,FN,JA,Z8V,qtY,LYB,mbN,o5,WYY,a3x,jH,yjW,CiY,vWV,oWB,I3u,nWB,FYE,QdS,eeE,nv,rjW,l3B,sp,gW_,NeB,GUV,f3x,zMB,pfE,kUi,ca_,BGN,Ql,HTD,iTf,TGY,bTx,VND,XfS,tNW,DkD,gE,xk_,qev,Jai,MNv,Yei,mkY,fv,QF,hMv,Pri,AaB,RMY,wfB,OTY,SeV,K9u,ulE,$kY,Up,MFf,ZTQ,L9f,dk_,Itv,CrY, eMu,ltY,jyY,oIf,$OD,G9,yaW,W9D,F9Q,Na,vIY,AF,sB,jdf,syu,Uku,kzi,gIB,zhi,pvv,EIx,pv,z9,QyQ,c1E,raQ,B$f,HPY,XWW,iPS,sdi,UbS,nIQ,YcV,c5,B5,bPS,H5,VqN,D0u,tq_,XvN,x0E,qSx,J1D,hhY,MqN,m0N,Pgf,T8,RhN,OPB,wvY,Kbx,u7_,a7_,by,ZPW,iy,Lbx,$0Y,A1V,VU,d0Y,YSY,WbN,DM,Cg_,ehv,l7u,y1Y,tU,rF_,Qaf,kHu,sai,UEx,goY,GH_,XM,N_Y,fZY,paN,cAQ,zQS,BEY,VHf,ivV,TEB,bvW,DwQ,tHY,XaS,EnB,xwB,qpE,JAx,MHD,mwu,hQf,AAS,PpV,OvW,Ypx,waS,SpW,$wW,uNY,ZvY,KTv,qN,LTY,dw_,RQQ,WTY,adV,JU,yAV,CpN,eQW,ldY,vnN,IdB,j5v,onu,Q5u,rAY,UwY,s5Q,k9i, MN,gnD,Ya,NEu,fdY,AU,p5x,On,BwE,H6_,i6Y,Twv,Vnv,b6D,NGx,X5Y,xN_,GzY,ww,Sn,DNV,tnu,Ea_,K6,JUN,qni,MnY,YnN,mNu,AUB,hux,Ru_,uy,PyE,SnW,aI,Z6W,$NW,L6,dw,LQB,ZM,dNY,W5,CyD,yUY,uMD,aMQ,euB,lMQ,vaB,KQB,IMB,yU,jIW,WQV,cUY,$a,oa_,en,naW,QIS,rUf,UNY,sIN,k8v,gaB,G8Y,NwW,ly,fMV,zjV,cIW,Btv,Hji,p9f,ijE,Tti,bju,VsE,DtE,tsN,II,IaB,X9Q,xtN,jn,ERS,qHV,oI,YHv,mtf,n6,PlY,AIN,hj_,MsE,QU,FM,JIY,sn,Un,Oji,ka,rw,$tN,a1Q,Lxv,dtV,yIu,RjQ,ZjY,ClV,SHv,ejx,l1B,zL,gw,I1i,jHi,vRx,NN,nR_,QHY,uVu,KxQ,oR_,rIV,WxY,w9W,pj,c9,B9,UtN, H9,f1S,gRY,z3_,GL_,kLE,pcu,sHY,inx,cVu,il,Tbv,VZi,tZN,XcN,xsY,JVx,D1,MZV,EFY,f6,h3W,PQu,qt,dbS,TL,AVY,On_,R3Y,wcE,SsD,msD,XV,$sE,KLD,usS,Znv,aHQ,at_,LLB,tI,dsW,yV_,WLu,e3u,CQE,DsW,vFN,lHY,xR,bl,IHi,Mt,FLQ,oFD,nFS,Q0S,rVx,JI,HvV,qsQ,UsS,T$Y,G8,s0u,kZW,gFV,GZf,NbY,YR,mx,z8B,pIB,c8S,fHY,Bs_,hI,bWD,iWS,Ts_,VWf,P9,D$u,tWx,XID,AI,x$D,q8E,J8W,MWx,OH,EhN,wt,RH,Y8B,m$S,Kj,Ss,$R,h8N,ul,PkE,A8Q,OW_,R8E,wIV,yI,$$B,KzE,S8v,unQ,Cj,a2B,es,ZWS,ll,Lzv,d$S,l2W,e8x,jKV,Ckf,WzY,vhY,v9,y8x,I2D,ohY,nhQ,QKf,r8_,js,U$Q, nj,FV,sKi,QI,rt,ghD,sH,kR,G7Q,UH,NsY,gt,zFi,f2W,Nt,fj,zZ,BT_,pkY,c7u,pn,HKi,VAS,TTu,iKQ,bKD,cc,tAE,qyW,J7v,Bc,MAN,Yyv,XkY,xhY,P9Q,A7f,OK_,wk_,RFN,Syu,TZ,aKQ,bQ,Kjv,uPu,WjD,iQ,Vu,DH,$hY,ZKD,y7i,tV,C9f,eFQ,lKu,Xs,vdY,xF,IKB,jmY,FjW,odD,ndN,QmN,r7Y,kKf,UhW,gd_,GK_,fKv,zzi,wb,TqD,c0Y,Bqu,byD,ViY,iyv,pzY,DzV,XzY,tiS,xzu,mzY,SZ,A0W,Rzx,wzu,OyD,Miv,Ydx,E1W,qdE,hzW,$F,Kn,$zB,eq,vHY,KAv,a0,Ln,aTB,u5_,PuE,LAD,dzi,WAY,db,y0Y,I0,ezx,lTW,v1S,j7W,IT_,FAx,jZ,Fs,o1W,r0B,Uzf,Qu,Q7B,s7u,kpv,n1D,kF,g1V,GpY,Us,NqE,fT_, zdQ,plv,Bp_,cCS,TpY,bYu,HYf,DUi,tyB,iYD,Ns,fn,Xlx,EED,z7,xUW,qKx,Myf,JCY,YKW,pW,mUx,hdV,PKB,cI,BI,HI,ACQ,OYW,wlN,SKE,RdY,$UN,K5Q,uxE,a9u,ZYE,dUu,T7,ik,bk,W5V,yCY,L5S,I9B,j_Q,F5i,Q_V,nEx,oEi,rCS,UUY,V1,D2,s_B,kfx,gEx,GfQ,f9i,zZW,Xn,psu,t8,E8,NpW,ctD,B0W,HA_,iAx,T0Q,J8,bAE,V1Q,Xsv,M$,x4W,t1Q,Yh,mz,EiD,qqD,M1Y,m4D,JtW,YqW,PI,hZu,AtN,OAW,RZY,SqN,A8,O8,$4v,PXx,aEx,uwN,Kgf,ws,RK,Lgx,ZAY,SW,$h,d4Y,KW,WgB,ytY,CXY,uk,eZ_,aK,lEY,Z2,LW,jqD,FgY,oif,QqN,rtQ,U4f,ni_,kTY,sqQ,gi_,fES,y1,pBf,zB_,GTS,N0S,ckW,Biu,CW, eW,HrW,irQ,TiB,brN,V$W,D1_,XBx,x1Q,P1f,JkE,M$D,Eei,Orf,oK,Q1,$1E,s8,kh,Kwx,wBf,Fn,N$,G7,rs,af_,ZrS,fW,d1B,yku,WwV,zK,U8,jW,LwD,gs,RBY,uS_,eB_,lk,pK,lfB,vev,nW,SzN,ck,Bk,IfQ,Hk,i9,TK,jiQ,FwQ,neS,QiB,oe_,b9,U1v,rkW,VO,siu,DK,t7,kJv,geY,GJv,NiS,ffQ,zbu,cxN,pPW,xd,XP,BF_,i3D,H3E,Ey,qh,TFu,VcV,DcV,J7,b3N,tci,XPi,xcY,E$N,qw_,JxY,McE,Yd,mj,mcu,Ywv,hbW,h7,Pk,PhW,AxQ,wPV,O3N,Rbf,Oy,SwY,$cf,Rm,KVW,uTi,awS,Z3i,LVY,dc_,yxY,ChV,ebu,WVu,lwD,v$Y,Iwf,jl_,FVQ,o$Q,n$N,Qlx,am,rxB,Uci,slB,G2V,pov,fwW,g$S,dT,NFQ,k2x, zrY,Wk,BxQ,c4Q,yO,HsY,isD,Tx_,xa,XoY,xXE,EsD,l9,q1Q,Im,kn,J4u,jA,MmE,vk,Y1Q,mXY,Rri,rT,Uy,kd,gT,$XV,S1N,hrB,GK,KDV,utB,Zsu,Nh,LDD,dXN,WDE,sy,CwQ,y4B,fK,zp,Osi,nK,erV,lhu,vsW,IhS,Pwf,A4f,QO,joi,FDY,osi,nsY,soY,kAu,GAS,UXD,zvB,jk,Ff,rE,BZY,H1E,cKN,i1i,gsS,p0Y,QoN,TZW,fhD,b1Y,Nxf,oa,rXE,FxV,py,Ha,r4B,DfS,Ezi,Bz,qfS,JKW,X0_,iu,M6Q,Yfi,V6u,mfS,xfS,hvu,Tp,Hz,P7x,O1i,AKu,cz,RvD,DT,Fzu,bu,t0,V8,X5,YsN,SfW,uvN,K3Q,Z1W,L3f,a4W,Ed,x1,W3D,yKE,C7N,QTY,jTS,F3Y,vzf,sTY,l4W,Mz,GRE,kRS,NZi,f4B,J0,mA,h0,BPS,cBv,pMf, A0,nzY,Si,iXS,R7,Pz,bX_,tXQ,XMi,UfD,VXB,uu,xYY,ozN,HXB,Od,Ek_,Y1,qvE,JB_,MXS,Ly,dq,TPQ,Yv_,mYx,Wz,y8,hqY,wq,gzN,P_i,ABY,OXB,DYu,wMS,$1,RqB,Ky,Rv,SvD,Ktf,Cy,ei,uEx,aFY,ZXY,ZT,a7,Ltx,$fi,dYN,Wtu,yBW,C_V,eqV,lu,vz,IFx,okB,Q4u,vkx,fFv,z0v,ppS,c2Q,Bav,HLx,iLf,bLS,Taf,I7,ji,F5,VwN,D8B,twN,GC,XpY,o7,x8W,ny,Q8,Zp,rq,c$,E9Y,uq,SWY,qhS,bq,J2x,Ih,j4,Bt,MwY,Yhv,Ud,RCQ,m8_,h0D,sd,A2u,OL_,k1,Gp,Nz,wpV,$8f,KRE,fy,uzf,R0v,ShQ,alf,ZLu,LRB,d8i,WRf,zf,CCN,SLW,aD,iA,e0E,llu,Vw,y2Y,eD,v9B,IlW,jCY,pY,wV,o9W,n9x,cl,Bl, QCv,Hl,r2f,gq,U8D,sCY,k3u,iK,Tf,kSW,bK,Vp,g9i,D9,GSx,tC,Xx,NaY,flW,O0i,xE,zGD,clW,pgE,EK,BRv,qU,JC,HM_,iMf,TR_,bMu,Vd_,DSv,tdW,xSQ,YE,XgY,EJN,qbE,JlE,MdW,PMW,YbB,mSv,hGx,OMW,RGQ,SbV,$SE,wgN,m5,KfN,uUv,aPi,ZMW,Lff,Pl,dS_,AC,OK,wp,WfS,yli,eGf,lPE,vJE,IPB,FfE,jZW,oJQ,R_,Sy,rlB,nJi,QZY,$E,USY,sZf,KY,uK,kFx,a_,gJV,Z9,GFE,LY,dp,NRV,Wl,yp,fPN,zNv,CY,ey,pD$,lK,cil,Bu$,Fx,o_,H_l,i_v,Tum,DvJ,VQq,nY,tQJ,XDd,xvl,ZbY,b_g,qx3,Jiq,Yxz,zNY,XY;cD=function(z){return function(){return zNY[z].apply(this,arguments)}}; g.BD=function(z,p){return zNY[z]=p}; pDW=function(z){var p=0;return function(){return p=this.length))return this[z]}; vD=function(z){return z?z:lf}; JiD=function(z,p,c){z instanceof String&&(z=String(z));for(var B=z.length-1;B>=0;B--){var H=z[B];if(p.call(c,H,B,z))return{jZ:B,Jr:H}}return{jZ:-1,Jr:void 0}}; IE=function(z){return z?z:function(p,c){return JiD(this,p,c).jZ}}; g.oE=function(z,p,c){z=z.split(".");c=c||g.jQ;for(var B;z.length&&(B=z.shift());)z.length||p===void 0?c[B]&&c[B]!==Object.prototype[B]?c=c[B]:c=c[B]={}:c[B]=p}; QW=function(z,p){var c=g.n_("CLOSURE_FLAGS");z=c&&c[z];return z!=null?z:p}; g.n_=function(z,p){z=z.split(".");p=p||g.jQ;for(var c=0;c2){var B=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,B);return z.apply(p,H)}}return function(){return z.apply(p,arguments)}}; g.Nv=function(z,p,c){g.Nv=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Yxu:mvW;return g.Nv.apply(null,arguments)}; g.f_=function(z,p){var c=Array.prototype.slice.call(arguments,1);return function(){var B=c.slice();B.push.apply(B,arguments);return z.apply(this,B)}}; g.p9=function(){return Date.now()}; cq=function(z){return z}; g.Bq=function(z,p){function c(){} c.prototype=p.prototype;z.QR=p.prototype;z.prototype=new c;z.prototype.constructor=z;z.base=function(B,H,T){for(var b=Array(arguments.length-2),D=2;Dp&&c.push(V$(B,1))}); return c}; g.Dm=function(z){z&&typeof z.dispose=="function"&&z.dispose()}; g.tJ=function(z){for(var p=0,c=arguments.length;p>6|192;else{if(T>=55296&&T<=57343){if(T<=56319&&H=56320&&b<=57343){T=(T-55296)*1024+ b-56320+65536;B[c++]=T>>18|240;B[c++]=T>>12&63|128;B[c++]=T>>6&63|128;B[c++]=T&63|128;continue}else H--}if(p)throw Error("Found an unpaired surrogate");T=65533}B[c++]=T>>12|224;B[c++]=T>>6&63|128}B[c++]=T&63|128}}z=c===B.length?B:B.subarray(0,c)}return z}; Pq=function(z){g.jQ.setTimeout(function(){throw z;},0)}; vBB=function(z){return Array.prototype.map.call(z,function(p){p=p.toString(16);return p.length>1?p:"0"+p}).join("")}; IVx=function(z){for(var p=[],c=0;c>6|192:((H&64512)==55296&&B+1>18|240,p[c++]=H>>12&63|128):p[c++]=H>>12|224,p[c++]=H>>6&63|128),p[c++]=H&63|128)}return p}; OQ=function(z,p){return z.lastIndexOf(p,0)==0}; jE_=function(z,p){var c=z.length-p.length;return c>=0&&z.indexOf(p,c)==c}; g.wz=function(z){return/^[\s\xa0]*$/.test(z)}; g.Sl=function(z,p){return z.indexOf(p)!=-1}; $L=function(z,p){return g.Sl(z.toLowerCase(),p.toLowerCase())}; g.ag=function(z,p){var c=0;z=K9(String(z)).split(".");p=K9(String(p)).split(".");for(var B=Math.max(z.length,p.length),H=0;c==0&&Hp?1:0}; g.Zm=function(){var z=g.jQ.navigator;return z&&(z=z.userAgent)?z:""}; y$=function(z){if(!L9&&!dz||!Wq)return!1;for(var p=0;p0:!1}; lE=function(){return el()?!1:C9("Opera")}; FSB=function(){return el()?!1:C9("Trident")||C9("MSIE")}; oBu=function(){return el()?y$("Microsoft Edge"):C9("Edg/")}; vq=function(){return C9("Firefox")||C9("FxiOS")}; F3=function(){return C9("Safari")&&!(Ig()||(el()?0:C9("Coast"))||lE()||(el()?0:C9("Edge"))||oBu()||(el()?y$("Opera"):C9("OPR"))||vq()||C9("Silk")||C9("Android"))}; Ig=function(){return el()?y$("Chromium"):(C9("Chrome")||C9("CriOS"))&&!(el()?0:C9("Edge"))||C9("Silk")}; nBE=function(){return C9("Android")&&!(Ig()||vq()||lE()||C9("Silk"))}; QEx=function(z){var p={};z.forEach(function(c){p[c[0]]=c[1]}); return function(c){return p[c.find(function(B){return B in p})]||""}}; riY=function(z){var p=g.Zm();if(z==="Internet Explorer"){if(FSB())if((z=/rv: *([\d\.]*)/.exec(p))&&z[1])p=z[1];else{z="";var c=/MSIE +([\d\.]+)/.exec(p);if(c&&c[1])if(p=/Trident\/(\d.\d)/.exec(p),c[1]=="7.0")if(p&&p[1])switch(p[1]){case "4.0":z="8.0";break;case "5.0":z="9.0";break;case "6.0":z="10.0";break;case "7.0":z="11.0"}else z="7.0";else z=c[1];p=z}else p="";return p}var B=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var H;H=B.exec(p);)c.push([H[1],H[2],H[3]||void 0]); p=QEx(c);switch(z){case "Opera":if(lE())return p(["Version","Opera"]);if(el()?y$("Opera"):C9("OPR"))return p(["OPR"]);break;case "Microsoft Edge":if(el()?0:C9("Edge"))return p(["Edge"]);if(oBu())return p(["Edg"]);break;case "Chromium":if(Ig())return p(["Chrome","CriOS","HeadlessChrome"])}return z==="Firefox"&&vq()||z==="Safari"&&F3()||z==="Android Browser"&&nBE()||z==="Silk"&&C9("Silk")?(p=c[2])&&p[1]||"":""}; UvB=function(z){if(el()&&z!=="Silk"){var p=Wq.brands.find(function(c){return c.brand===z}); if(!p||!p.version)return NaN;p=p.version.split(".")}else{p=riY(z);if(p==="")return NaN;p=p.split(".")}return p.length===0?NaN:Number(p[0])}; og=function(){return L9||dz?!!Wq&&!!Wq.platform:!1}; sED=function(){return og()?Wq.platform==="Android":C9("Android")}; n9=function(){return C9("iPhone")&&!C9("iPod")&&!C9("iPad")}; Q$=function(){return n9()||C9("iPad")||C9("iPod")}; rz=function(){return og()?Wq.platform==="macOS":C9("Macintosh")}; kYW=function(){return og()?Wq.platform==="Windows":C9("Windows")}; g.UQ=function(z){return z[z.length-1]}; gBu=function(z,p){var c=z.length,B=typeof z==="string"?z.split(""):z;for(--c;c>=0;--c)c in B&&p.call(void 0,B[c],c,z)}; g.kL=function(z,p,c){p=sQ(z,p,c);return p<0?null:typeof z==="string"?z.charAt(p):z[p]}; sQ=function(z,p,c){for(var B=z.length,H=typeof z==="string"?z.split(""):z,T=0;T=0;B--)if(B in H&&p.call(c,H[B],B,z))return B;return-1}; g.Gv=function(z,p){return GYV(z,p)>=0}; NuE=function(z){if(!Array.isArray(z))for(var p=z.length-1;p>=0;p--)delete z[p];z.length=0}; g.f9=function(z,p){p=GYV(z,p);var c;(c=p>=0)&&g.Nd(z,p);return c}; g.Nd=function(z,p){return Array.prototype.splice.call(z,p,1).length==1}; g.zo=function(z,p){p=sQ(z,p);p>=0&&g.Nd(z,p)}; fVN=function(z,p){var c=0;gBu(z,function(B,H){p.call(void 0,B,H,z)&&g.Nd(z,H)&&c++})}; g.p$=function(z){return Array.prototype.concat.apply([],arguments)}; g.ce=function(z){var p=z.length;if(p>0){for(var c=Array(p),B=0;B>>1),t=void 0;c?t=p.call(void 0,z[D],D,z):t=p(B,z[D]);t>0?H=D+1:(T=D,b=!t)}return b?H:-H-1}; g.ty=function(z,p){z.sort(p||b0)}; cJD=function(z,p){var c=b0;g.ty(z,function(B,H){return c(p(B),p(H))})}; g.Xe=function(z,p,c){if(!g.sx(z)||!g.sx(p)||z.length!=p.length)return!1;var B=z.length;c=c||Bzi;for(var H=0;Hp?1:z=0})}; g.hy=function(z,p){p===void 0&&(p=0);tlV();p=XqB[p];for(var c=Array(Math.floor(z.length/3)),B=p[64]||"",H=0,T=0;H>2];b=p[(b&3)<<4|D>>4];D=p[(D&15)<<2|t>>6];t=p[t&63];c[T++]=""+X+b+D+t}X=0;t=B;switch(z.length-H){case 2:X=z[H+1],t=p[(X&15)<<2]||B;case 1:z=z[H],c[T]=""+p[z>>2]+p[(z&3)<<4|X>>4]+t+B}return c.join("")}; g.Pe=function(z,p){if(xdY&&!p)z=g.jQ.btoa(z);else{for(var c=[],B=0,H=0;H255&&(c[B++]=T&255,T>>=8);c[B++]=T}z=g.hy(c,p)}return z}; qQW=function(z){var p=[];ELY(z,function(c){p.push(c)}); return p}; Ay=function(z){var p=z.length,c=p*3/4;c%3?c=Math.floor(c):g.Sl("=.",z[p-1])&&(c=g.Sl("=.",z[p-2])?c-2:c-1);var B=new Uint8Array(c),H=0;ELY(z,function(T){B[H++]=T}); return H!==c?B.subarray(0,H):B}; ELY=function(z,p){function c(t){for(;B>4);b!=64&&(p(T<<4&240|b>>2),D!=64&&p(b<<6&192|D))}}; tlV=function(){if(!O_){O_={};for(var z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),p=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var B=z.concat(p[c].split(""));XqB[c]=B;for(var H=0;H=p||(B[z]=c+1,z=Error(),wqf(z,"incident"),Pq(z))}}; Z5=function(z,p,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&z?Symbol.for(z):z!=null?Symbol(z):Symbol():p}; We=function(z,p){L$||dd in z||SQN(z,$dB);z[dd]|=p}; yT=function(z,p){L$||dd in z||SQN(z,$dB);z[dd]=p}; C$=function(z,p){z[dd]&=~p}; l0=function(z){z=z[eg];var p=z===K1Q;u3f&&z&&!p&&aW(amu,3);return p}; ve=function(z){return z!==null&&typeof z==="object"&&!Array.isArray(z)&&z.constructor===Object}; Z9S=function(z,p){if(z!=null)if(typeof z==="string")z=z?new wd(z,RW):Sg();else if(z.constructor!==wd)if(O9W&&z!=null&&z instanceof Uint8Array)z=z.length?new wd(new Uint8Array(z),RW):Sg();else{if(!p)throw Error();z=void 0}return z}; IW=function(z){if(z&2)throw Error();}; jg=function(z,p){if(typeof p!=="number"||p<0||p>=z.length)throw Error();}; L1Y=function(z,p,c){var B=p&512?0:-1,H=z.length;p=p&64?p&256:!!H&&ve(z[H-1]);for(var T=H+(p?-1:0),b=0;bp.length)return!1;if(z.lengthH)return!1;if(B>>0;s_=p;gd=(z-p)/4294967296>>>0}; f$=function(z){if(z<0){Go(0-z);var p=g.m(NC(s_,gd));z=p.next().value;p=p.next().value;s_=z>>>0;gd=p>>>0}else Go(z)}; cy=function(z,p){var c=p*4294967296+(z>>>0);return Number.isSafeInteger(c)?c:p2(z,p)}; eKN=function(z,p){var c=p&2147483648;c&&(z=~z+1>>>0,p=~p>>>0,z==0&&(p=p+1>>>0));z=cy(z,p);return typeof z==="number"?c?-z:z:c?"-"+z:z}; p2=function(z,p){p>>>=0;z>>>=0;if(p<=2097151)var c=""+(4294967296*p+z);else n$()?c=""+(BigInt(p)<>>24|p<<8)&16777215,p=p>>16&65535,z=(z&16777215)+c*6777216+p*6710656,c+=p*8147497,p*=2,z>=1E7&&(c+=z/1E7>>>0,z%=1E7),c>=1E7&&(p+=c/1E7>>>0,c%=1E7),c=p+lmQ(c)+lmQ(z));return c}; lmQ=function(z){z=String(z);return"0000000".slice(z.length)+z}; vLS=function(){var z=s_,p=gd;p&2147483648?n$()?z=""+(BigInt(p|0)<>>0)):(p=g.m(NC(z,p)),z=p.next().value,p=p.next().value,z="-"+p2(z,p)):z=p2(z,p);return z}; By=function(z){if(z.length<16)f$(Number(z));else if(n$())z=BigInt(z),s_=Number(z&BigInt(4294967295))>>>0,gd=Number(z>>BigInt(32)&BigInt(4294967295));else{var p=+(z[0]==="-");gd=s_=0;for(var c=z.length,B=0+p,H=(c-p)%6+p;H<=c;B=H,H+=6)B=Number(z.slice(B,H)),gd*=1E6,s_=s_*1E6+B,s_>=4294967296&&(gd+=Math.trunc(s_/4294967296),gd>>>=0,s_>>>=0);p&&(p=g.m(NC(s_,gd)),z=p.next().value,p=p.next().value,s_=z,gd=p)}}; NC=function(z,p){p=~p;z?z=~z+1:p+=1;return[z,p]}; Hy=function(z){return Array.prototype.slice.call(z)}; iN=function(z,p){throw Error(p===void 0?"unexpected value "+z+"!":p);}; Tu=function(z){if(z!=null&&typeof z!=="number")throw Error("Value of float/double field must be a number, found "+typeof z+": "+z);return z}; Imv=function(z){return z.displayName||z.name||"unknown type name"}; bN=function(z){if(z!=null&&typeof z!=="boolean")throw Error("Expected boolean but got "+ru(z)+": "+z);return z}; DB=function(z){switch(typeof z){case "bigint":return!0;case "number":return VY(z);case "string":return jgY.test(z);default:return!1}}; F1x=function(z){if(typeof z!=="number")throw u0("int32");if(!VY(z))throw u0("int32");return z|0}; tD=function(z){return z==null?z:F1x(z)}; Xp=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return VY(z)?z|0:void 0}; x_=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return VY(z)?z>>>0:void 0}; nLi=function(z){var p=0;p=p===void 0?0:p;if(!DB(z))throw u0("int64");var c=typeof z;switch(p){case 2048:switch(c){case "string":return ED(z);case "bigint":return String(qI(64,z));default:return MI(z)}case 4096:switch(c){case "string":return p=Y_(Number(z)),m0(p)?z=U_(p):(p=z.indexOf("."),p!==-1&&(z=z.substring(0,p)),z=n$()?U_(qI(64,BigInt(z))):U_(oLE(z))),z;case "bigint":return U_(qI(64,z));default:return m0(z)?U_(hD(z)):U_(MI(z))}case 0:switch(c){case "string":return ED(z);case "bigint":return U_(qI(64, z));default:return hD(z)}default:return iN(p,"Unknown format requested type for int64")}}; Py=function(z){return z==null?z:nLi(z)}; Qgv=function(z){if(z[0]==="-")return!1;var p=z.length;return p<20?!0:p===20&&Number(z.substring(0,6))<184467}; rJY=function(z){var p=z.length;return z[0]==="-"?p<20?!0:p===20&&Number(z.substring(0,7))>-922337:p<19?!0:p===19&&Number(z.substring(0,6))<922337}; UdE=function(z){if(z<0){f$(z);var p=p2(s_,gd);z=Number(p);return m0(z)?z:p}p=String(z);if(Qgv(p))return p;f$(z);return cy(s_,gd)}; oLE=function(z){if(rJY(z))return z;By(z);return vLS()}; hD=function(z){DB(z);z=Y_(z);m0(z)||(f$(z),z=eKN(s_,gd));return z}; MI=function(z){DB(z);z=Y_(z);if(m0(z))z=String(z);else{var p=String(z);rJY(p)?z=p:(f$(z),z=vLS())}return z}; ED=function(z){DB(z);var p=Y_(Number(z));if(m0(p))return String(p);p=z.indexOf(".");p!==-1&&(z=z.substring(0,p));return oLE(z)}; sgx=function(z){if(z==null)return z;if(typeof z==="bigint")return AD(z)?z=Number(z):(z=qI(64,z),z=AD(z)?Number(z):String(z)),z;if(DB(z))return typeof z==="number"?hD(z):ED(z)}; kvN=function(z){if(z==null)return z;var p=typeof z;if(p==="bigint")return String(qI(64,z));if(DB(z)){if(p==="string")return ED(z);if(p==="number")return hD(z)}}; GvQ=function(z){if(z==null)return z;var p=typeof z;if(p==="bigint")return String(gLD(64,z));if(DB(z)){if(p==="string")return DB(z),p=Y_(Number(z)),m0(p)&&p>=0?z=String(p):(p=z.indexOf("."),p!==-1&&(z=z.substring(0,p)),Qgv(z)||(By(z),z=p2(s_,gd))),z;if(p==="number")return DB(z),z=Y_(z),z>=0&&m0(z)?z:UdE(z)}}; Nzu=function(z){if(z==null||typeof z=="string"||z instanceof wd)return z}; fmf=function(z){if(typeof z!=="string")throw Error();return z}; OD=function(z){if(z!=null&&typeof z!=="string")throw Error();return z}; wL=function(z){return z==null||typeof z==="string"?z:void 0}; R8=function(z,p){if(!(z instanceof p))throw Error("Expected instanceof "+Imv(p)+" but got "+(z&&Imv(z.constructor)));return z}; zUY=function(z,p,c){if(z!=null&&typeof z==="object"&&l0(z))return z;if(Array.isArray(z)){var B=z[dd]|0,H=B;H===0&&(H|=c&32);H|=c&2;H!==B&&yT(z,H);return new p(z)}}; Sx=function(z){return z}; K2=function(z){var p=cq($_);return p?z[p]:void 0}; uN=function(){}; a8=function(z,p){for(var c in z)!isNaN(c)&&p(z,+c,z[c])}; peQ=function(z){var p=new uN;a8(z,function(c,B,H){p[B]=H.slice()}); p.W=z.W;return p}; L2=function(z,p,c,B,H){var T=B?!!(p&32):void 0;B=[];var b=z.length,D=!1;if(p&64){if(p&256){b--;var t=z[b];var X=b}else X=4294967295,t=void 0;if(!(H||p&512)){D=!0;var x;var E=((x=ZB)!=null?x:Sx)(t?X- -1:p>>15&1023||536870912,-1,z,t);X=E+-1}}else X=4294967295,p&1||(t=b&&z[b-1],ve(t)?(b--,X=b,E=0):t=void 0);x=void 0;for(var q=0;q=X){var M=void 0;((M=x)!=null?M:x={})[q- -1]=J}else B[q]=J}if(t)for(var P in t)b=t[P],b!=null&&(b=c(b,T))!=null&&(q=+P,q< E?B[q+-1]=b:(q=void 0,((q=x)!=null?q:x={})[P]=b));x&&(D?B.push(x):B[X]=x);H&&(yT(B,p&33522241|(x!=null?290:34)),cq($_)&&(z=K2(z))&&z instanceof uN&&(B[$_]=peQ(z)));return B}; cyD=function(z){switch(typeof z){case "number":return Number.isFinite(z)?z:""+z;case "bigint":return AD(z)?Number(z):""+z;case "boolean":return z?1:0;case "object":if(Array.isArray(z)){var p=z[dd]|0;return z.length===0&&p&1?void 0:L2(z,p,cyD,!1,!1)}if(l0(z))return dL(z);if(z instanceof wd){p=z.W;if(p==null)z="";else if(typeof p==="string")z=p;else{if(YQW){for(var c="",B=0,H=p.length-10240;B0?void 0:z===0?i$S||(i$S=[0,void 0]):[-z,void 0];case "string":return[0,z];case "object":return z}}; ex=function(z,p,c){z=b$E(z,p[0],p[1],c?1:2);p!==yY&&c&&We(z,8192);return z}; lN=function(z,p,c){return b$E(z,p,c,3)}; b$E=function(z,p,c,B){if(z==null){var H=96;c?(z=[c],H|=512):z=[];p&&(H=H&-33521665|(p&1023)<<15)}else{if(!Array.isArray(z))throw Error("narr");H=z[dd]|0;8192&H||!(64&H)||2&H||Vgv();if(H&1024)throw Error("farr");if(H&64)return B!==3||H&16384||yT(z,H|16384),z;B===1||B===2||(H|=64);if(c&&(H|=512,c!==z[0]))throw Error("mid");a:{c=z;var T=c.length;if(T){var b=T-1,D=c[b];if(ve(D)){H|=256;p=H&512?0:-1;b-=p;if(b>=1024)throw Error("pvtlmt");for(var t in D)T=+t,T1024)throw Error("spvt");H=H&-33521665|(t&1023)<<15}}}B===3&&(H|=16384);yT(z,H);return z}; Vgv=function(){aW(DCY,5)}; vy=function(z,p){if(typeof z!=="object")return z;if(Array.isArray(z)){var c=z[dd]|0;if(z.length===0&&c&1)return;if(c&2)return z;var B;if(B=p)B=c===0||!!(c&32)&&!(c&64||!(c&16));return B?(We(z,34),c&4&&Object.freeze(z),z):L2(z,c,vy,p!==void 0,!0)}if(l0(z))return l0(z),l0(z),p=z.Ka,c=p[dd]|0,c&2?z:L2(p,c,vy,!0,!0);if(z instanceof wd)return z}; I8=function(z){var p=z;l0(p);p=p.Ka;if(!((p[dd]|0)&2))return z;p=z=new z.constructor(L2(p,p[dd]|0,vy,!0,!0));l0(p);C$(p.Ka,2);return z}; Fp=function(z,p){Object.isExtensible(z);l0(z);z=z.Ka;return jx(z,z[dd]|0,p)}; jx=function(z,p,c,B){if(c===-1)return null;var H=c+(p&512?0:-1),T=z.length-1;if(H>=T&&p&256){p=z[T][c];var b=!0}else if(H<=T)p=z[H];else return;if(B&&p!=null){B=B(p);if(B==null)return B;if(B!==p)return b?z[T][c]=B:z[H]=B,B}return p}; n2=function(z,p,c){l0(z);var B=z.Ka;var H=B[dd]|0;IW(H);o8(B,H,p,c);return z}; o8=function(z,p,c,B){var H=p&512?0:-1,T=c+H,b=z.length-1;if(T>=b&&p&256)return z[b][c]=B,p;if(T<=b)return z[T]=B,p;B!==void 0&&(b=p>>15&1023||536870912,c>=b?B!=null&&(T={},z[b+H]=(T[c]=B,T),p|=256,yT(z,p)):z[T]=B);return p}; gL=function(z,p,c,B,H){l0(z);var T=z.Ka;z=T[dd]|0;var b=2&z?1:B;H=!!H;B=QY(T,z,p);var D=B[dd]|0;if(!(4&D)){4&D&&(B=Hy(B),D=rL(D,z),z=o8(T,z,p,B));for(var t=0,X=0;t "+z)}; $y=function(z){if(typeof z==="string")return{buffer:hKu(z),JS:!1};if(Array.isArray(z))return{buffer:new Uint8Array(z),JS:!1};if(z.constructor===Uint8Array)return{buffer:z,JS:!1};if(z.constructor===ArrayBuffer)return{buffer:new Uint8Array(z),JS:!1};if(z.constructor===wd)return{buffer:$u(z)||new Uint8Array(0),JS:!0};if(z instanceof Uint8Array)return{buffer:new Uint8Array(z.buffer,z.byteOffset,z.byteLength),JS:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; Y_u=function(z,p,c,B){this.K=null;this.L=!1;this.W=this.D=this.X=0;this.init(z,p,c,B)}; uJ=function(z){var p=0,c=0,B=0,H=z.K,T=z.W;do{var b=H[T++];p|=(b&127)<32&&(c|=(b&127)>>4);for(B=3;B<32&&b&128;B+=7)b=H[T++],c|=(b&127)<>>0,c>>>0);throw RJ();}; Kp=function(z,p){z.W=p;if(p>z.D)throw MgN(z.D,p);}; aJ=function(z){var p=z.K,c=z.W,B=p[c++],H=B&127;if(B&128&&(B=p[c++],H|=(B&127)<<7,B&128&&(B=p[c++],H|=(B&127)<<14,B&128&&(B=p[c++],H|=(B&127)<<21,B&128&&(B=p[c++],H|=B<<28,B&128&&p[c++]&128&&p[c++]&128&&p[c++]&128&&p[c++]&128&&p[c++]&128)))))throw RJ();Kp(z,c);return H}; ZQ=function(z){var p=z.K,c=z.W,B=p[c+0],H=p[c+1],T=p[c+2];p=p[c+3];Kp(z,z.W+4);return(B<<0|H<<8|T<<16|p<<24)>>>0}; Lp=function(z){var p=ZQ(z);z=ZQ(z);return cy(p,z)}; dv=function(z){var p=ZQ(z),c=ZQ(z);z=(c>>31)*2+1;var B=c>>>20&2047;p=4294967296*(c&1048575)+p;return B==2047?p?NaN:z*Infinity:B==0?z*4.9E-324*p:z*Math.pow(2,B-1075)*(p+4503599627370496)}; WQ=function(z){for(var p=0,c=z.W,B=c+10,H=z.K;cz.D)throw MgN(p,z.D-c);z.W=B;return c}; P0_=function(z,p){if(p==0)return Sg();var c=mCv(z,p);z.Lu&&z.L?c=z.K.subarray(c,c+p):(z=z.K,p=c+p,c=c===p?new Uint8Array(0):hUv?z.slice(c,p):new Uint8Array(z.subarray(c,p)));return c.length==0?Sg():new wd(c,RW)}; Cp=function(z,p,c,B){if(yH.length){var H=yH.pop();H.init(z,p,c,B);z=H}else z=new Y_u(z,p,c,B);this.W=z;this.D=this.W.W;this.K=this.X=-1;AyD(this,B)}; AyD=function(z,p){p=p===void 0?{}:p;z.ex=p.ex===void 0?!1:p.ex}; O$v=function(z,p,c,B){if(er.length){var H=er.pop();AyD(H,B);H.W.init(z,p,c,B);return H}return new Cp(z,p,c,B)}; weQ=function(z){var p=z.W;if(p.W==p.D)return!1;z.D=z.W.W;var c=aJ(z.W)>>>0;p=c>>>3;c&=7;if(!(c>=0&&c<=5))throw Jyv(c,z.D);if(p<1)throw Error("Invalid field number: "+p+" (at position "+z.D+")");z.X=p;z.K=c;return!0}; lJ=function(z){switch(z.K){case 0:z.K!=0?lJ(z):WQ(z.W);break;case 1:z=z.W;Kp(z,z.W+8);break;case 2:if(z.K!=2)lJ(z);else{var p=aJ(z.W)>>>0;z=z.W;Kp(z,z.W+p)}break;case 5:z=z.W;Kp(z,z.W+4);break;case 3:p=z.X;do{if(!weQ(z))throw Error("Unmatched start-group tag: stream EOF");if(z.K==4){if(z.X!=p)throw Error("Unmatched end-group tag");break}lJ(z)}while(1);break;default:throw Jyv(z.K,z.D);}}; vQ=function(z,p,c){var B=z.W.D,H=aJ(z.W)>>>0,T=z.W.W+H,b=T-B;b<=0&&(z.W.D=T,c(p,z,void 0,void 0,void 0),b=T-z.W.W);if(b)throw Error("Message parsing ended unexpectedly. Expected to read "+(H+" bytes, instead read "+(H-b)+" bytes, either the data ended unexpectedly or the message misreported its own length"));z.W.W=T;z.W.D=B}; F2=function(z){var p=aJ(z.W)>>>0;z=z.W;var c=mCv(z,p);z=z.K;if(RUi){var B=z,H;(H=IJ)||(H=IJ=new TextDecoder("utf-8",{fatal:!0}));p=c+p;B=c===0&&p===B.length?B:B.subarray(c,p);try{var T=H.decode(B)}catch(X){if(jr===void 0){try{H.decode(new Uint8Array([128]))}catch(x){}try{H.decode(new Uint8Array([97])),jr=!0}catch(x){jr=!1}}!jr&&(IJ=void 0);throw X;}}else{T=c;p=T+p;c=[];for(var b=null,D,t;T=p?hJ():(t=z[T++],D<194||(t&192)!==128?(T--,hJ()):c.push((D&31)<<6|t&63)): D<240?T>=p-1?hJ():(t=z[T++],(t&192)!==128||D===224&&t<160||D===237&&t>=160||((H=z[T++])&192)!==128?(T--,hJ()):c.push((D&15)<<12|(t&63)<<6|H&63)):D<=244?T>=p-2?hJ():(t=z[T++],(t&192)!==128||(D<<28)+(t-144)>>30!==0||((H=z[T++])&192)!==128||((B=z[T++])&192)!==128?(T--,hJ()):(D=(D&7)<<18|(t&63)<<12|(H&63)<<6|B&63,D-=65536,c.push((D>>10&1023)+55296,(D&1023)+56320))):hJ(),c.length>=8192&&(b=WSE(b,c),c.length=0);T=WSE(b,c)}return T}; S_D=function(z){var p=aJ(z.W)>>>0;return P0_(z.W,p)}; oJ=function(z,p,c){z=lN(z,p,c);l0(this);this.Ka=z}; $Ci=function(z,p){if(p==null||p=="")return new z;p=JSON.parse(p);if(!Array.isArray(p))throw Error("dnarr");We(p,32);return new z(p)}; np=function(z,p){this.K=z>>>0;this.W=p>>>0}; ueE=function(z){if(!z)return KrY||(KrY=new np(0,0));if(!/^\d+$/.test(z))return null;By(z);return new np(s_,gd)}; QH=function(z,p){this.K=z>>>0;this.W=p>>>0}; Z$i=function(z){if(!z)return a5u||(a5u=new QH(0,0));if(!/^-?\d+$/.test(z))return null;By(z);return new QH(s_,gd)}; rv=function(){this.W=[]}; U7=function(z,p,c){for(;c>0||p>127;)z.W.push(p&127|128),p=(p>>>7|c<<25)>>>0,c>>>=7;z.W.push(p)}; s7=function(z,p){for(;p>127;)z.W.push(p&127|128),p>>>=7;z.W.push(p)}; LrV=function(z,p){if(p>=0)s7(z,p);else{for(var c=0;c<9;c++)z.W.push(p&127|128),p>>=7;z.W.push(1)}}; ky=function(z,p){z.W.push(p>>>0&255);z.W.push(p>>>8&255);z.W.push(p>>>16&255);z.W.push(p>>>24&255)}; dCE=function(){this.D=[];this.K=0;this.W=new rv}; gv=function(z,p){p.length!==0&&(z.D.push(p),z.K+=p.length)}; WrY=function(z,p){Gc(z,p,2);p=z.W.end();gv(z,p);p.push(z.K);return p}; yyf=function(z,p){var c=p.pop();for(c=z.K+z.W.length()-c;c>127;)p.push(c&127|128),c>>>=7,z.K++;p.push(c);z.K++}; Gc=function(z,p,c){s7(z.W,p*8+c)}; C0f=function(z,p,c){if(c!=null){switch(typeof c){case "string":ueE(c)}Gc(z,p,1);switch(typeof c){case "number":z=z.W;Go(c);ky(z,s_);ky(z,gd);break;case "bigint":c=BigInt.asUintN(64,c);c=new np(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));z=z.W;p=c.W;ky(z,c.K);ky(z,p);break;default:c=ueE(c),z=z.W,p=c.W,ky(z,c.K),ky(z,p)}}}; No=function(z,p,c){Gc(z,p,2);s7(z.W,c.length);gv(z,z.W.end());gv(z,c)}; fp=function(){function z(){throw Error();} Object.setPrototypeOf(z,z.prototype);return z}; pw=function(z,p,c){this.EC=z;this.WF=p;z=cq(zs);this.W=!!z&&c===z||!1}; cA=function(z,p){var c=c===void 0?zs:c;return new pw(z,p,c)}; l5Q=function(z,p,c,B,H){p=eUQ(p,B);p!=null&&(c=WrY(z,c),H(p,z),yyf(z,c))}; iv=function(z,p,c,B){var H=B[z];if(H)return H;H={};H.zR=B;H.M8=TdW(B[0]);var T=B[1],b=1;T&&T.constructor===Object&&(H.extensions=T,T=B[++b],typeof T==="function"&&(H.pR=!0,BA!=null||(BA=T),HA!=null||(HA=B[b+1]),T=B[b+=2]));for(var D={};T&&Array.isArray(T)&&T.length&&typeof T[0]==="number"&&T[0]>0;){for(var t=0;t>BigInt(32)));U7(z.W,c.K,c.W);break;default:c=Z$i(p),U7(z.W,c.K,c.W)}}}; PA=function(z,p,c){p=Xp(p);p!=null&&p!=null&&(Gc(z,c,0),LrV(z.W,p))}; guE=function(z,p,c){p=p==null||typeof p==="boolean"?p:typeof p==="number"?!!p:void 0;p!=null&&(Gc(z,c,0),z.W.W.push(p?1:0))}; GoN=function(z,p,c){p=wL(p);p!=null&&No(z,c,lVx(p))}; NdS=function(z,p,c,B,H){p=eUQ(p,B);p!=null&&(c=WrY(z,c),H(p,z),yyf(z,c))}; zxS=function(){this.W=f5f;this.isRepeated=0;this.K=X2;this.defaultValue=void 0}; py_=function(z){return function(){var p=new dCE;l0(this);UC_(this.Ka,p,iv(xC,XC,EU,z));gv(p,p.W.end());for(var c=new Uint8Array(p.K),B=p.D,H=B.length,T=0,b=0;b>>31)&4294967295;E=H[0];var M=H[1],P=H[2],O=H[3],R=H[4];for(J=0;J<80;J++){if(J<40)if(J<20){var K=O^M&(P^O);var Z=1518500249}else K=M^P^O,Z=1859775393;else J<60?(K=M&P|O&(M|P),Z=2400959708):(K=M^P^O,Z=3395469782);K=((E<<5|E>>>27)&4294967295)+K+R+Z+q[J]&4294967295;R=O;O=P;P=(M<<30|M>>>2)&4294967295;M=E;E=K}H[0]=H[0]+E&4294967295;H[1]=H[1]+M&4294967295;H[2]= H[2]+P&4294967295;H[3]=H[3]+O&4294967295;H[4]=H[4]+R&4294967295} function c(E,q){if(typeof E==="string"){E=unescape(encodeURIComponent(E));for(var J=[],M=0,P=E.length;M=56;J--)T[J]=q&255,q>>>=8;p(T);for(J=q=0;J<5;J++)for(var M=24;M>=0;M-=8)E[q++]=H[J]>>M&255;return E} for(var H=[],T=[],b=[],D=[128],t=1;t<64;++t)D[t]=0;var X,x;z();return{reset:z,update:c,digest:B,bE:function(){for(var E=B(),q="",J=0;J4);H++)p[fw(z[H])]||(c+="\nInner error "+B++ +": ",z[H].stack&&z[H].stack.indexOf(z[H].toString())==0||(c+=typeof z[H]==="string"?z[H]:z[H].message+"\n"),c+=Gs(z[H],p));H")!=-1&&(z=z.replace($IN,">")),z.indexOf('"')!=-1&&(z=z.replace(K0u,""")),z.indexOf("'")!=-1&&(z=z.replace(upB,"'")),z.indexOf("\x00")!=-1&&(z=z.replace(aBS,"�")));return z}; g.Hj=function(z){return z==null?"":String(z)}; iU=function(z){for(var p=0,c=0;c>>0;return p}; Tk=function(z){var p=Number(z);return p==0&&g.wz(z)?NaN:p}; Z2x=function(z){return String(z).replace(/\-([a-z])/g,function(p,c){return c.toUpperCase()})}; L0i=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; dIf=function(z){return z.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(p,c,B){return c+B.toUpperCase()})}; W0V=function(z){var p=1;z=z.split(":");for(var c=[];p>0&&z.length;)c.push(z.shift()),p--;z.length&&c.push(z.join(":"));return c}; bU=function(z){this.W=z||{cookie:""}}; V3=function(z){z=(z.W.cookie||"").split(";");for(var p=[],c=[],B,H,T=0;T/g,">").replace(/"/g,""").replace(/'/g,"'");return FC(z)}; o_Y=function(z){var p=ox("");return FC(z.map(function(c){return oQ(ox(c))}).join(oQ(p).toString()))}; s8u=function(z){var p;if(!n_W.test("div"))throw Error("");if(Q8f.indexOf("DIV")!==-1)throw Error("");var c="":(z=o_Y(p.map(function(B){return B instanceof jf?B:ox(String(B))})),c+=">"+z.toString()+""); return FC(c)}; rDD=function(z){for(var p="",c=Object.keys(z),B=0;B2&&c5D(H,b,B,2);return b}; c5D=function(z,p,c,B){function H(D){D&&p.appendChild(typeof D==="string"?z.createTextNode(D):D)} for(;B0)H(T);else{a:{if(T&&typeof T.length=="number"){if(g.kB(T)){var b=typeof T.item=="function"||typeof T.item=="string";break a}if(typeof T==="function"){b=typeof T.item=="function";break a}}b=!1}g.E_(b?g.ce(T):T,H)}}}; g.i4=function(z){return BG(document,z)}; BG=function(z,p){p=String(p);z.contentType==="application/xhtml+xml"&&(p=p.toLowerCase());return z.createElement(p)}; g.T5=function(z){return document.createTextNode(String(z))}; g.b4=function(z,p){z.appendChild(p)}; g.Vm=function(z){for(var p;p=z.firstChild;)z.removeChild(p)}; DN=function(z,p,c){z.insertBefore(p,z.childNodes[c]||null)}; g.t3=function(z){return z&&z.parentNode?z.parentNode.removeChild(z):null}; g.X4=function(z,p){if(!z||!p)return!1;if(z.contains&&p.nodeType==1)return z==p||z.contains(p);if(typeof z.compareDocumentPosition!="undefined")return z==p||!!(z.compareDocumentPosition(p)&16);for(;p&&z!=p;)p=p.parentNode;return p==z}; Q3=function(z){return z.nodeType==9?z:z.ownerDocument||z.document}; g.xr=function(z,p){if("textContent"in z)z.textContent=p;else if(z.nodeType==3)z.data=String(p);else if(z.firstChild&&z.firstChild.nodeType==3){for(;z.lastChild!=z.firstChild;)z.removeChild(z.lastChild);z.firstChild.data=String(p)}else g.Vm(z),z.appendChild(Q3(z).createTextNode(String(p)))}; Hpi=function(z){return z.tagName=="A"&&z.hasAttribute("href")||z.tagName=="INPUT"||z.tagName=="TEXTAREA"||z.tagName=="SELECT"||z.tagName=="BUTTON"?!z.disabled&&(!z.hasAttribute("tabindex")||Bv_(z)):z.hasAttribute("tabindex")&&Bv_(z)}; Bv_=function(z){z=z.tabIndex;return typeof z==="number"&&z>=0&&z<32768}; qx=function(z,p,c){if(!p&&!c)return null;var B=p?String(p).toUpperCase():null;return EN(z,function(H){return(!B||H.nodeName==B)&&(!c||typeof H.className==="string"&&g.Gv(H.className.split(/\s+/),c))},!0)}; EN=function(z,p,c){z&&!c&&(z=z.parentNode);for(c=0;z;){if(p(z))return z;z=z.parentNode;c++}return null}; nH=function(z){this.W=z||g.jQ.document||document}; J3=function(z){z=lN(z);l0(this);this.Ka=z}; Mx=function(z){z=lN(z);l0(this);this.Ka=z}; Yr=function(z){z=lN(z);l0(this);this.Ka=z}; ipu=function(z,p){qo(z,Mx,1,p)}; m8=function(z){z=lN(z);l0(this);this.Ka=z}; bpN=function(z,p){p=p===void 0?Tvf:p;if(!h3){var c;z=(c=z.navigator)==null?void 0:c.userAgentData;if(!z||typeof z.getHighEntropyValues!=="function"||z.brands&&typeof z.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));c=(z.brands||[]).map(function(H){var T=new Mx;T=A5(T,1,H.brand);return A5(T,2,H.version)}); ipu(n2(PG,2,bN(z.mobile)),c);h3=z.getHighEntropyValues(p)}var B=new Set(p);return h3.then(function(H){var T=PG.clone();B.has("platform")&&A5(T,3,H.platform);B.has("platformVersion")&&A5(T,4,H.platformVersion);B.has("architecture")&&A5(T,5,H.architecture);B.has("model")&&A5(T,6,H.model);B.has("uaFullVersion")&&A5(T,7,H.uaFullVersion);return T}).catch(function(){return PG.clone()})}; A3=function(z){z=lN(z);l0(this);this.Ka=z}; VrS=function(z){z=lN(z);l0(this);this.Ka=z}; wc=function(z){z=lN(z,4);l0(this);this.Ka=z}; Rz=function(z){z=lN(z,36);l0(this);this.Ka=z}; SS=function(z){z=lN(z,19);l0(this);this.Ka=z}; $r=function(z,p){this.OJ=p=p===void 0?!1:p;this.uach=this.locale=null;this.K=0;this.isFinal=!1;this.W=new SS;Number.isInteger(z)&&this.W.yN(z);p||(this.locale=document.documentElement.getAttribute("lang"));DoB(this,new A3)}; DoB=function(z,p){E7(z.W,A3,1,p);h5(p,1)||wv(p,1,1);z.OJ||(p=Ku(z),mn(p,5)||A5(p,5,z.locale));z.uach&&(p=Ku(z),X2(p,Yr,9)||E7(p,Yr,9,z.uach))}; trE=function(z,p){z.K=p}; XQf=function(z){var p=p===void 0?Tvf:p;var c=z.OJ?void 0:cG();c?bpN(c,p).then(function(B){z.uach=B;B=Ku(z);E7(B,Yr,9,z.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; Ku=function(z){z=X2(z.W,A3,1);var p=X2(z,m8,11);p||(p=new m8,E7(z,m8,11,p));return p}; xoS=function(z){return g.pu?"webkit"+z:z.toLowerCase()}; g.u4=function(z,p,c,B){this.X=z;this.L=p;this.W=this.D=z;this.V=c||0;this.G=B||2}; g.az=function(z){z.W=Math.min(z.L,z.W*z.G);z.D=Math.min(z.L,z.W+(z.V?Math.round(z.V*(Math.random()-.5)*2*z.W):0));z.K++}; EyB=function(z){z=lN(z,8);l0(this);this.Ka=z}; f5f=function(z){z=lN(z);l0(this);this.Ka=z}; dc=function(z){g.e.call(this);var p=this;this.componentId="";this.W=[];this.rA="";this.pageId=null;this.i8=this.T$=-1;this.G=this.experimentIds=null;this.V=this.X=0;this.U=null;this.Dt=this.tD=0;this.OH=1;this.timeoutMillis=0;this.Ra=!1;this.logSource=z.logSource;this.Is=z.Is||function(){}; this.D=new $r(z.logSource,z.OJ);this.network=z.network||null;this.HT=z.HT||null;this.S=z.wQA||null;this.sessionIndex=z.sessionIndex||null;this.wz=z.wz||!1;this.logger=null;this.withCredentials=!z.RC;this.OJ=z.OJ||!1;this.MZ=!this.OJ&&!!cG()&&!!cG().navigator&&cG().navigator.sendBeacon!==void 0;this.fH=typeof URLSearchParams!=="undefined"&&!!(new URL(ZN())).searchParams&&!!(new URL(ZN())).searchParams.set;var c=wv(new A3,1,1);DoB(this.D,c);this.L=new g.u4(1E4,3E5,.1);z=q7Y(this,z.Gp);this.K=new Xa(this.L.getValue(), z);this.YA=new Xa(6E5,z);this.wz||this.YA.start();this.OJ||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Lu(p);var B;(B=p.U)==null||B.flush()}}),document.addEventListener("pagehide",function(){Lu(p); var B;(B=p.U)==null||B.flush()}))}; q7Y=function(z,p){return z.fH?p?function(){p().then(function(){z.flush()})}:function(){z.flush()}:function(){}}; J5Y=function(z){z.S||(z.S=ZN());try{return(new URL(z.S)).toString()}catch(p){return(new URL(z.S,cG().location.origin)).toString()}}; WG=function(z,p,c){z.U&&z.U.II(p,c)}; Mrv=function(z,p,c){c=c===void 0?z.Is():c;var B=B===void 0?z.withCredentials:B;var H={},T=new URL(J5Y(z));c&&(H.Authorization=c);z.sessionIndex&&(H["X-Goog-AuthUser"]=z.sessionIndex,T.searchParams.set("authuser",z.sessionIndex));z.pageId&&(Object.defineProperty(H,"X-Goog-PageId",{value:z.pageId}),T.searchParams.set("pageId",z.pageId));return{url:T.toString(),body:p,mZ:1,requestHeaders:H,requestType:"POST",withCredentials:B,timeoutMillis:z.timeoutMillis}}; Lu=function(z){z.D.isFinal=!0;z.flush();z.D.isFinal=!1}; moE=function(z){Y7v(z,function(p,c){p=new URL(p);p.searchParams.set("format","json");var B=!1;try{B=cG().navigator.sendBeacon(p.toString(),c.M_())}catch(H){}B||(z.MZ=!1);return B})}; Y7v=function(z,p){if(z.W.length!==0){var c=new URL(J5Y(z));c.searchParams.delete("format");var B=z.Is();B&&c.searchParams.set("auth",B);c.searchParams.set("authuser",z.sessionIndex||"0");for(B=0;B<10&&z.W.length;++B){var H=z.W.slice(0,32),T=z.D.build(H,z.X,z.V,z.HT,z.tD,z.Dt);if(!p(c.toString(),T)){++z.V;break}z.X=0;z.V=0;z.tD=0;z.Dt=0;z.W=z.W.slice(H.length)}z.K.enabled&&z.K.stop()}}; ZN=function(){return"https://play.google.com/log?format=json&hasfast=true"}; ym=function(){this.S2=typeof AbortController!=="undefined"}; Cu=function(z,p){g.e.call(this);this.logSource=z;this.sessionIndex=p;this.lr="https://play.google.com/log?format=json&hasfast=true";this.K=null;this.X=!1;this.network=null;this.componentId="";this.W=this.HT=null;this.D=!1;this.pageId=null}; hkB=function(z,p){z.K=p;return z}; PJN=function(z,p){z.network=p;return z}; A5f=function(z,p){z.W=p}; Opv=function(z){z.D=!0;return z}; eS=function(z,p,c,B,H,T,b){z=z===void 0?-1:z;p=p===void 0?"":p;c=c===void 0?"":c;B=B===void 0?!1:B;H=H===void 0?"":H;g.e.call(this);this.logSource=z;this.componentId=p;T?p=T:(z=new Cu(z,"0"),z.componentId=p,g.l(this,z),c!==""&&(z.lr=c),B&&(z.X=!0),H&&hkB(z,H),b&&PJN(z,b),p=z.build());this.W=p}; wQu=function(z){this.W=z}; l4=function(z,p,c){this.K=z;this.X=p;this.fields=c||[];this.W=new Map}; TLx=function(z){return z.fields.map(function(p){return p.fieldType})}; i2Y=function(z){return z.fields.map(function(p){return p.fieldName})}; vG=function(z,p){l4.call(this,z,3,p)}; Iz=function(z,p){l4.call(this,z,2,p)}; g.jS=function(z,p){this.type=z;this.currentTarget=this.target=p;this.defaultPrevented=this.K=!1}; F4=function(z,p){g.jS.call(this,z?z.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.W=null;z&&this.init(z,p)}; oz=function(z){return!(!z||!z[RkD])}; $o_=function(z,p,c,B,H){this.listener=z;this.proxy=null;this.src=p;this.type=c;this.capture=!!B;this.Dz=H;this.key=++S7W;this.removed=this.wr=!1}; nu=function(z){z.removed=!0;z.listener=null;z.proxy=null;z.src=null;z.Dz=null}; Qm=function(z){this.src=z;this.listeners={};this.W=0}; g.kr=function(z,p){var c=p.type;c in z.listeners&&g.f9(z.listeners[c],p)&&(nu(p),z.listeners[c].length==0&&(delete z.listeners[c],z.W--))}; gc=function(z,p,c,B){for(var H=0;H1)));b=b.next)H||(T=b);H&&(c.W==0&&B==1?GcE(c,p):(T?(B=T,B.next==c.X&&(c.X=B),B.next=B.next.next):NvV(c),fQY(c,H,3,p)))}z.D=null}else AG(z,3,p)}; $A=function(z,p){z.K||z.W!=2&&z.W!=3||z2N(z);z.X?z.X.next=p:z.K=p;z.X=p}; pA_=function(z,p,c,B){var H=w6(null,null,null);H.W=new g.O9(function(T,b){H.D=p?function(D){try{var t=p.call(B,D);T(t)}catch(X){b(X)}}:T; H.K=c?function(D){try{var t=c.call(B,D);t===void 0&&D instanceof ut?b(D):T(t)}catch(X){b(X)}}:b}); H.W.D=z;$A(z,H);return H.W}; AG=function(z,p,c){z.W==0&&(z===c&&(p=3,c=new TypeError("Promise cannot resolve to itself")),z.W=1,QJx(c,z.utA,z.rnH,z)||(z.G=c,z.W=p,z.D=null,z2N(z),p!=3||c instanceof ut||cuf(z,c)))}; QJx=function(z,p,c,B){if(z instanceof g.O9)return gyV(z,p,c,B),!0;if(z)try{var H=!!z.$goog_Thenable}catch(b){H=!1}else H=!1;if(H)return z.then(p,c,B),!0;if(g.kB(z))try{var T=z.then;if(typeof T==="function")return BhY(z,T,p,c,B),!0}catch(b){return c.call(B,b),!0}return!1}; BhY=function(z,p,c,B,H){function T(t){D||(D=!0,B.call(H,t))} function b(t){D||(D=!0,c.call(H,t))} var D=!1;try{p.call(z,b,T)}catch(t){T(t)}}; z2N=function(z){z.V||(z.V=!0,g.Mg(z.VF,z))}; NvV=function(z){var p=null;z.K&&(p=z.K,z.K=p.next,p.next=null);z.K||(z.X=null);return p}; fQY=function(z,p,c,B){if(c==3&&p.K&&!p.X)for(;z&&z.L;z=z.D)z.L=!1;if(p.W)p.W.D=null,HwY(p,c,B);else try{p.X?p.D.call(p.context):HwY(p,c,B)}catch(H){iwS.call(null,H)}y5_(nyx,p)}; HwY=function(z,p,c){p==2?z.D.call(z.context,c):z.K&&z.K.call(z.context,c)}; cuf=function(z,p){z.L=!0;g.Mg(function(){z.L&&iwS.call(null,p)})}; ut=function(z){JJ.call(this,z)}; sJY=function(z,p,c){this.promise=z;this.resolve=p;this.reject=c}; g.aS=function(z,p){g.T1.call(this);this.DZ=z||1;this.Ry=p||g.jQ;this.gI=(0,g.Nv)(this.Qk$,this);this.d8=g.p9()}; g.d6=function(z,p,c){if(typeof z==="function")c&&(z=(0,g.Nv)(z,c));else if(z&&typeof z.handleEvent=="function")z=(0,g.Nv)(z.handleEvent,z);else throw Error("Invalid listener argument");return Number(p)>2147483647?-1:g.jQ.setTimeout(z,p||0)}; WN=function(z,p){var c=null;return(new g.O9(function(B,H){c=g.d6(function(){B(p)},z); c==-1&&H(Error("Failed to schedule timer."))})).zL(function(B){g.jQ.clearTimeout(c); throw B;})}; g.yo=function(z){g.e.call(this);this.G=z;this.X=0;this.D=100;this.L=!1;this.K=new Map;this.V=new Set;this.flushInterval=3E4;this.W=new g.aS(this.flushInterval);this.W.listen("tick",this.K1,!1,this);g.l(this,this.W)}; Thi=function(z){z.W.enabled||z.W.start();z.X++;z.X>=z.D&&z.K1()}; bwE=function(z,p){return z.V.has(p)?void 0:z.K.get(p)}; Vfi=function(z){for(var p=0;p=0){var T=z[c].substring(0,B);H=z[c].substring(B+1)}else T=z[c];p(T,H?cj(H):"")}}}; U9=function(z,p){if(!p)return z;var c=z.indexOf("#");c<0&&(c=z.length);var B=z.indexOf("?");if(B<0||B>c){B=c;var H=""}else H=z.substring(B+1,c);z=[z.slice(0,B),H,z.slice(c)];c=z[1];z[1]=p?c?c+"&"+p:p:c;return z[0]+(z[1]?"?"+z[1]:"")+z[2]}; s9=function(z,p,c){if(Array.isArray(p))for(var B=0;B=0&&pc)H=c;B+=p.length+1;return cj(z.slice(B,H!==-1?H:0))}; ff=function(z,p){for(var c=z.search(Owu),B=0,H,T=[];(H=AuS(z,B,p,c))>=0;)T.push(z.substring(B,H)),B=Math.min(z.indexOf("&",H)+1||c,c);T.push(z.slice(B));return T.join("").replace(Ao_,"$1")}; OHx=function(z,p,c){return G1(ff(z,p),p,c)}; g.zB=function(z){g.T1.call(this);this.headers=new Map;this.Ra=z||null;this.D=!1;this.W=null;this.S="";this.K=0;this.X="";this.L=this.tD=this.U=this.Dt=!1;this.MZ=0;this.V=null;this.T$="";this.G=!1}; RfE=function(z,p,c,B,H,T,b){var D=new g.zB;wjN.push(D);p&&D.listen("complete",p);D.VX("ready",D.IK);T&&(D.MZ=Math.max(0,T));b&&(D.G=b);D.send(z,c,B,H)}; $Qf=function(z,p){z.D=!1;z.W&&(z.L=!0,z.W.abort(),z.L=!1);z.X=p;z.K=5;S2Y(z);pz(z)}; S2Y=function(z){z.Dt||(z.Dt=!0,z.dispatchEvent("complete"),z.dispatchEvent("error"))}; KHS=function(z){if(z.D&&typeof cb!="undefined")if(z.U&&g.Bb(z)==4)setTimeout(z.ai.bind(z),0);else if(z.dispatchEvent("readystatechange"),z.isComplete()){z.getStatus();z.D=!1;try{if(Hb(z))z.dispatchEvent("complete"),z.dispatchEvent("success");else{z.K=6;try{var p=g.Bb(z)>2?z.W.statusText:""}catch(c){p=""}z.X=p+" ["+z.getStatus()+"]";S2Y(z)}}finally{pz(z)}}}; pz=function(z,p){if(z.W){z.V&&(clearTimeout(z.V),z.V=null);var c=z.W;z.W=null;p||z.dispatchEvent("ready");try{c.onreadystatechange=null}catch(B){}}}; Hb=function(z){var p=z.getStatus();a:switch(p){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(p=p===0)z=g.oS(1,String(z.S)),!z&&g.jQ.self&&g.jQ.self.location&&(z=g.jQ.self.location.protocol.slice(0,-1)),p=!uaQ.test(z?z.toLowerCase():"");c=p}return c}; g.Bb=function(z){return z.W?z.W.readyState:0}; g.io=function(z){try{return z.W?z.W.responseText:""}catch(p){return""}}; g.TB=function(z){try{if(!z.W)return null;if("response"in z.W)return z.W.response;switch(z.T$){case "":case "text":return z.W.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in z.W)return z.W.mozResponseArrayBuffer}return null}catch(p){return null}}; g.a$v=function(z){var p={};z=(z.W&&g.Bb(z)>=2?z.W.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c>1,p),yC(z,z.length>>1)]}; buW=function(z){var p=g.m(Tci(z,Cz));z=p.next().value;p=p.next().value;return z.toString(16)+p.toString(16)}; VSY=function(z,p){var c=Tci(p);z=new Uint32Array(z.buffer);p=z[0];var B=g.m(c);c=B.next().value;B=B.next().value;for(var H=1;H>>8|b<<24,b+=T|0,b^=D+38293,T=T<<3|T>>>29,T^=b,t=t>>>8|t<<24,t+=D|0,t^=X+38293,D=D<<3|D>>>29,D^=t;T=[T,b];z[H]^=T[0];H+1=c?(globalThis.sessionStorage.removeItem(z),["e"]):["a",new Uint8Array(B.buffer,p+4)]}; eK=function(z,p,c){c=c===void 0?[]:c;this.maxItems=z;this.W=p===void 0?0:p;this.K=c}; XGQ=function(z){var p=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!p)return new eK(z);var c=p.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new eK(z);p=c.slice(1);p.length===1&&p[0]===""&&(p=[]);c=Number(c[0]);return isNaN(c)||c<0||c>p.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new eK(z)):new eK(z,c,p)}; xxW=function(z,p){this.logger=p;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(B){c=!1}c&&(this.index=XGQ(z))}; Eri=function(z,p,c,B,H){var T=z.index?xX(z.logger,function(){return DxS(z.index,buW(p),c,B,H)},"W"):"u"; z.logger.NT(T)}; qND=function(z,p,c){var B=g.m(z.index?xX(z.logger,function(){return tSB(buW(p),c)},"R"):["u"]),H=B.next().value; B=B.next().value;z.logger.wQ(H);return B}; YND=function(z){function p(){c-=B;c-=H;c^=H>>>13;B-=H;B-=c;B^=c<<8;H-=c;H-=B;H^=B>>>13;c-=B;c-=H;c^=H>>>12;B-=H;B-=c;B^=c<<16;H-=c;H-=B;H^=B>>>5;c-=B;c-=H;c^=H>>>3;B-=H;B-=c;B^=c<<10;H-=c;H-=B;H^=B>>>15} z=J3i(z);for(var c=2654435769,B=2654435769,H=314159265,T=z.length,b=T,D=0;b>=12;b-=12,D+=12)c+=lo(z,D),B+=lo(z,D+4),H+=lo(z,D+8),p();H+=T;switch(b){case 11:H+=z[D+10]<<24;case 10:H+=z[D+9]<<16;case 9:H+=z[D+8]<<8;case 8:B+=z[D+7]<<24;case 7:B+=z[D+6]<<16;case 6:B+=z[D+5]<<8;case 5:B+=z[D+4];case 4:c+=z[D+3]<<24;case 3:c+=z[D+2]<<16;case 2:c+=z[D+1]<<8;case 1:c+=z[D+0]}p();return MSN.toString(H)}; J3i=function(z){for(var p=[],c=0;c>7,z.error.code]);B.set(c,4);return B}; sE=function(z,p,c){vb.call(this,z);this.X=p;this.clientState=c;this.W="S";this.D="q"}; UE=function(z){return globalThis.TextEncoder?(new TextEncoder).encode(z):g.AJ(z)}; P4N=function(z,p,c){return z instanceof Zs?UQv(z,c,p,1):z.Ip(c)}; kX=function(z,p,c){g.e.call(this);var B=this;this.logger=z;this.onError=p;this.state=c;this.G=0;this.K=void 0;this.addOnDisposeCallback(function(){B.W&&(B.W.dispose(),B.W=void 0)})}; A3W=function(z,p){p=p instanceof Hq?p:new Hq(5,"TVD:error",p);return z.reportError(p)}; gN=function(z,p,c){try{if(z.qZ())throw new Hq(21,"BNT:disposed");if(!z.W&&z.K)throw z.K;var B,H;return(H=(B=Ouu(z,p,c))!=null?B:wGV(z,p,c))!=null?H:Rni(z,p,c)}catch(T){if(!p.xi)throw A3W(z,T);return SNf(z,c,T)}}; Ouu=function(z,p,c){var B;return(B=z.W)==null?void 0:jK(B,function(){return GB(z,p)},c,function(H){var T; if(z.W instanceof o$&&((T=p.Qm)==null?0:T.LL))try{var b;(b=z.cache)==null||Eri(b,GB(z,p),H,p.Qm.Ec,z.S-120)}catch(D){z.reportError(new Hq(24,"ELX:write",D))}})}; wGV=function(z,p,c){var B;if((B=p.Qm)!=null&&B.m8)try{var H,T=(H=z.cache)==null?void 0:qND(H,GB(z,p),p.Qm.Ec);return T?c?xX(z.logger,function(){return g.hy(T,2)},"a"):T:void 0}catch(b){z.reportError(new Hq(23,"RXO:read",b))}}; Rni=function(z,p,c){var B={stack:[],error:void 0,hasError:!1};try{if(!p.uh)throw new Hq(29,"SDF:notready");return jK(hN_(B,new sE(z.logger,z.G,z.state)),function(){return GB(z,p)},c)}catch(H){B.error=H,B.hasError=!0}finally{PfB(B)}}; SNf=function(z,p,c){var B={stack:[],error:void 0,hasError:!1};try{var H=A3W(z,c);return jK(hN_(B,new rN(z.logger,H)),function(){return[]},p)}catch(T){B.error=T,B.hasError=!0}finally{PfB(B)}}; GB=function(z,p){return p.bC?p.bC:p.Wu?xX(z.logger,function(){return p.bC=UE(p.Wu)},"c"):[]}; fz=function(z){var p;kX.call(this,z.WO.zK(),(p=z.onError)!=null?p:function(){},0); var c=this;this.L=0;this.X=new g.OE;this.D=!1;this.WO=z.WO;this.yH=z.yH;this.Iy=Object.assign({},$xY,z.Iy||{});z.tq&&(this.logger instanceof YX||this.logger instanceof ql)&&this.logger.Ux(z.tq);this.Qn=z.Qn||!1;if(K8x(z)){var B=this.WO;this.V=function(){return NC_(B).catch(function(b){b=c.reportError(new Hq(c.D?20:32,"TRG:Disposed",b));c.K=b;var D;(D=c.W)==null||D.dispose();c.W=void 0;c.X.reject(b)})}; f$u(B,function(){return void Nl(c)}); B.S===2&&Nl(this)}else this.V=z.dCa,Nl(this);var H=this.logger.share();H.cH("o");var T=new t9(H,"o");this.X.promise.then(function(){T.done();H.aY();H.dispose()},function(){return void H.dispose()}); this.addOnDisposeCallback(function(){c.D||(c.K?c.logger.aY():(c.K=c.reportError(new Hq(32,"TNP:Disposed")),c.logger.aY(),c.X.reject(c.K)))}); g.l(this,this.logger)}; u4Y=function(z,p){if(!(p instanceof Hq))if(p instanceof Cf){var c=Error(p.toString());c.stack=p.stack;p=new Hq(11,"EBH:Error",c)}else p=new Hq(12,"BSO:Unknown",p);return z.reportError(p)}; Nl=function(z){var p,c,B,H,T,b,D,t,X,x,E,q,J,M,P;return g.L(function(O){switch(O.W){case 1:p=void 0;z.L++;c=new g.OE;z.WO instanceof Lz&&z.WO.X.push(c.promise);if(!z.Qn){O.hD(2);break}B=new g.OE;setTimeout(function(){return void B.resolve()}); return g.a(O,B.promise,2);case 2:return H=z.logger.share(),g.Ox(O,4,5),z.state=5,T={},b=[],g.a(O,Wb(z.WO.snapshot({Wu:T,ey:b}),z.Iy.Adp,function(){return Promise.reject(new Hq(15,"MDA:Timeout"))}),7); case 7:D=O.K;if(z.qZ())throw new Hq(z.D?20:32,"MDA:Disposed");t=b[0];z.state=6;return g.a(O,Wb(P4N(z.yH,H,D),z.Iy.rB,function(){return Promise.reject(new Hq(10,"BWB:Timeout"))}),8); case 8:X=O.K;if(z.qZ())throw new Hq(z.D?20:32,"BWB:Disposed");z.state=7;p=xX(H,function(){var K=aND(z,X,c,t);K.K.promise.then(function(){return void z.V()}).catch(function(){}); return K},"i"); case 5:g.$B(O);H.dispose();g.K_(O,6);break;case 4:x=g.SQ(O);(E=p)==null||E.dispose();if(!z.K){q=u4Y(z,x);c.resolve();var R;if(R=z.WO instanceof Lz&&z.L<2)a:if(x instanceof Hq)R=x.code!==32&&x.code!==20&&x.code!==10;else{if(x instanceof Cf)switch(x.code){case 2:case 13:case 14:case 4:break;default:R=!1;break a}R=!0}if(R)return J=(1+Math.random()*.25)*(z.D?6E4:1E3),M=setTimeout(function(){return void z.V()},J),z.addOnDisposeCallback(function(){return void clearTimeout(M)}),O.return(); z.K=q}H.zU(z.D?13:14);z.X.reject(z.K);return O.return();case 6:z.state=8,z.L=0,(P=z.W)==null||P.dispose(),z.W=p,z.D=!0,z.X.resolve(),g.Ai(O)}})}; aND=function(z,p,c,B){var H=Yy(p,2)*1E3;if(H<=0)throw new Hq(31,"TTM:Invalid");if(mn(p,4))return new QC(z.logger,mn(p,4),H);if(!Yy(p,3))return new nz(z.logger,K$(NI(p,1)),H);if(!B)throw new Hq(4,"PMD:Undefined");B=B(K$(NI(p,1)));if(!(B instanceof Function))throw new Hq(16,"APF:Failed");z.S=Math.floor((Date.now()+H)/1E3);z=new o$(z.logger,B,Yy(p,3),H);z.addOnDisposeCallback(function(){return void c.resolve()}); return z}; zi=function(){var z=0,p;return function(c){p||(p=new EE);var B=new sE(p,z,1),H=jK(B,function(){return UE(c)},!0); B.dispose();z++;return H}}; pD=function(z){z=lN(z);l0(this);this.Ka=z}; Zu_=function(z,p,c){this.DK=z;this.IV=p;this.metadata=c}; cF=function(z,p){p=p===void 0?{}:p;this.KhA=z;this.metadata=p;this.status=null}; BF=function(z,p,c,B,H){this.name=z;this.methodType="unary";this.requestType=p;this.responseType=c;this.W=B;this.K=H}; HF=function(z){z=lN(z);l0(this);this.Ka=z}; iY=function(z){z=lN(z);l0(this);this.Ka=z}; Ti=function(z){z=lN(z);l0(this);this.Ka=z}; bY=function(z,p){this.G=z.aPD;this.S=p;this.W=z.xhr;this.D=[];this.L=[];this.V=[];this.X=[];this.K=[];this.G&&L8B(this)}; C4x=function(z,p){var c=new dxv;g.Nx(z.W,"complete",function(){if(Hb(z.W)){var B=g.io(z.W);if(p&&z.W.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");B=atob(B)}try{var H=z.S(B)}catch(D){VR(z,DY(new Cf(13,"Error when deserializing response data; error: "+D+(", response: "+B)),c));return}B=Dif(z.W.getStatus());te(z,XW(z));B==0?W8u(z,H):VR(z,DY(new Cf(B,"Xhr succeeded but the status code is not 200"),c))}else{B=g.io(z.W);H=XW(z);if(B){var T=y3u(z, B);B=T.code;var b=T.details;T=T.metadata}else B=2,b="Rpc failed due to xhr error. uri: "+String(z.W.S)+", error code: "+z.W.K+", error: "+z.W.getLastError(),T=H;te(z,H);VR(z,DY(new Cf(B,b,T),c))}})}; L8B=function(z){z.G.Jz("data",function(p){if("1"in p){var c=p["1"];try{var B=z.S(c)}catch(H){VR(z,new Cf(13,"Error when deserializing response data; error: "+H+(", response: "+c)))}B&&W8u(z,B)}if("2"in p)for(p=y3u(z,p["2"]),c=0;c-1&&z.splice(p,1)}; W8u=function(z,p){for(var c=0;c>4&15).toString(16)+(z&15).toString(16)}; wI=function(z,p){this.K=this.W=null;this.D=z||null;this.X=!!p}; KD=function(z){z.W||(z.W=new Map,z.K=0,z.D&&r6(z.D,function(p,c){z.add(cj(p),c)}))}; F8Q=function(z,p){KD(z);p=uY(z,p);return z.W.has(p)}; g.oru=function(z,p,c){z.remove(p);c.length>0&&(z.D=null,z.W.set(uY(z,p),g.ce(c)),z.K=z.K+c.length)}; uY=function(z,p){p=String(p);z.X&&(p=p.toLowerCase());return p}; vrS=function(z,p){p&&!z.X&&(KD(z),z.D=null,z.W.forEach(function(c,B){var H=B.toLowerCase();B!=H&&(this.remove(B),g.oru(this,H,c))},z)); z.X=p}; g.nrE=function(z){var p="";g.Rx(z,function(c,B){p+=B;p+=":";p+=c;p+="\r\n"}); return p}; g.ae=function(z,p,c){if(g.y3(c))return z;c=g.nrE(c);if(typeof z==="string")return G1(z,g.pH(p),c);g.SL(z,p,c);return z}; g.ZY=function(z){g.e.call(this);this.K=z;this.W={}}; QzV=function(z,p,c,B,H,T){if(Array.isArray(c))for(var b=0;b0&&(p[H]=B)},z); return p}; h1f=function(z){z=JY(z);var p=[];g.Rx(z,function(c,B){B in Object.prototype||typeof c!="undefined"&&p.push([B,":",c].join(""))}); return p}; AGY=function(z){xV(z,"od",PtS);xV(z,"opac",Mr).W=!0;xV(z,"sbeos",Mr).W=!0;xV(z,"prf",Mr).W=!0;xV(z,"mwt",Mr).W=!0;xV(z,"iogeo",Mr)}; Of_=function(){this.W=this.bP=null}; YV=function(){}; hY=function(){if(!m_())throw Error();}; m_=function(){return!(!PR||!PR.performance)}; AY=function(z){return z?z.passive&&wNB()?z:z.capture||!1:!1}; Ok=function(z,p,c,B){return z.addEventListener?(z.addEventListener(p,c,AY(B)),!0):!1}; w7=function(z){return z.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[z.visibilityState||z.webkitVisibilityState||z.mozVisibilityState||""]||0}; R1D=function(){}; S9Y=function(){return(L9||dz)&&Wq?Wq.mobile:!R2()&&(C9("iPod")||C9("iPhone")||C9("Android")||C9("IEMobile"))}; R2=function(){return(L9||dz)&&Wq?!Wq.mobile&&(C9("iPad")||C9("Android")||C9("Silk")):C9("iPad")||C9("Android")&&!C9("Mobile")||C9("Silk")}; SP=function(z){try{return!!z&&z.location.href!=null&&Tzu(z,"foo")}catch(p){return!1}}; $V=function(z,p){if(z)for(var c in z)Object.prototype.hasOwnProperty.call(z,c)&&p(z[c],c,z)}; Kyu=function(){var z=[];$V($gE,function(p){z.push(p)}); return z}; u0_=function(z){var p,c;return(c=(p=/https?:\/\/[^\/]+/.exec(z))==null?void 0:p[0])!=null?c:""}; Lyi=function(){var z=aCW("IFRAME"),p={};g.E_(Zfx(),function(c){z.sandbox&&z.sandbox.supports&&z.sandbox.supports(c)&&(p[c]=!0)}); return p}; aCW=function(z,p){p=p===void 0?document:p;return p.createElement(String(z).toLowerCase())}; dgx=function(z){for(var p=z;z&&z!=z.parent;)z=z.parent,SP(z)&&(p=z);return p}; e1E=function(z){z=z||KE();for(var p=new WyW(g.jQ.location.href,!1),c=null,B=z.length-1,H=B;H>=0;--H){var T=z[H];!c&&yGE.test(T.url)&&(c=T);if(T.url&&!T.W){p=T;break}}H=null;T=z.length&&z[B].url;p.depth!==0&&T&&(H=z[B]);return new CtW(p,H,c)}; KE=function(){var z=g.jQ,p=[],c=null;do{var B=z;if(SP(B)){var H=B.location.href;c=B.document&&B.document.referrer||null}else H=c,c=null;p.push(new WyW(H||""));try{z=B.parent}catch(T){z=null}}while(z&&B!==z);B=0;for(z=p.length-1;B<=z;++B)p[B].depth=z-B;B=g.jQ;if(B.location&&B.location.ancestorOrigins&&B.location.ancestorOrigins.length===p.length-1)for(z=1;zp&&(p=c.length);return 3997-p-z.D.length-1}; LE=function(z,p){this.W=z;this.depth=p}; jSD=function(){function z(D,t){return D==null?t:D} var p=KE(),c=Math.max(p.length-1,0),B=e1E(p);p=B.W;var H=B.K,T=B.D,b=[];T&&b.push(new LE([T.url,T.W?2:0],z(T.depth,1)));H&&H!=T&&b.push(new LE([H.url,2],0));p.url&&p!=T&&b.push(new LE([p.url,0],z(p.depth,c)));B=g.d7(b,function(D,t){return b.slice(0,b.length-t)}); !p.url||(T||H)&&p!=T||(H=u0_(p.url))&&B.push([new LE([H,1],z(p.depth,c))]);B.push([]);return g.d7(B,function(D){return ICY(c,D)})}; ICY=function(z,p){g.WR(p,function(H){return H.depth>=0}); var c=yA(p,function(H,T){return Math.max(H,T.depth)},-1),B=H9E(c+2); B[0]=z;g.E_(p,function(H){return B[H.depth+1]=H.W}); return B}; FyY=function(){var z=z===void 0?jSD():z;return z.map(function(p){return Zc(p)})}; oA_=function(z){var p=!1;p=p===void 0?!1:p;PR.google_image_requests||(PR.google_image_requests=[]);var c=aCW("IMG",PR.document);p&&(c.attributionSrc="");c.src=z;PR.google_image_requests.push(c)}; CE=function(z){var p="GO";if(z.GO&&z.hasOwnProperty(p))return z.GO;var c=new z;z.GO=c;z.hasOwnProperty(p);return c}; eP=function(){this.K=new R1D;this.W=m_()?new hY:new YV}; nAf=function(){lW();var z=PR.document;return!!(z&&z.body&&z.body.getBoundingClientRect&&typeof PR.setInterval==="function"&&typeof PR.clearInterval==="function"&&typeof PR.setTimeout==="function"&&typeof PR.clearTimeout==="function")}; QSf=function(){lW();return FyY()}; rGB=function(){}; lW=function(){var z=CE(rGB);if(!z.W){if(!PR)throw Error("Context has not been set and window is undefined.");z.W=CE(eP)}return z.W}; vR=function(z){z=lN(z);l0(this);this.Ka=z}; UgB=function(z){this.D=z;this.W=-1;this.K=this.X=0}; I2=function(z,p){return function(){var c=g.L_.apply(0,arguments);if(z.W>-1)return p.apply(null,g.A(c));try{return z.W=z.D.W.now(),p.apply(null,g.A(c))}finally{z.X+=z.D.W.now()-z.W,z.W=-1,z.K+=1}}}; sSx=function(z,p){this.K=z;this.D=p;this.W=new UgB(z)}; k1i=function(){this.W={}}; G1S=function(){var z=jP().flags,p=gAv;z=z.W[p.key];if(p.valueType==="proto"){try{var c=JSON.parse(z);if(Array.isArray(c))return c}catch(B){}return p.defaultValue}return typeof z===typeof p.defaultValue?z:p.defaultValue}; pbN=function(){this.D=void 0;this.K=this.V=0;this.L=-1;this.qb=new Xu;xV(this.qb,"mv",N6x).W=!0;xV(this.qb,"omid",Mr);xV(this.qb,"epoh",Mr).W=!0;xV(this.qb,"epph",Mr).W=!0;xV(this.qb,"umt",Mr).W=!0;xV(this.qb,"phel",Mr).W=!0;xV(this.qb,"phell",Mr).W=!0;xV(this.qb,"oseid",fCx).W=!0;var z=this.qb;z.W.sloi||(z.W.sloi=new Dc);z.W.sloi.W=!0;xV(this.qb,"mm",Fu);xV(this.qb,"ovms",zEY).W=!0;xV(this.qb,"xdi",Mr).W=!0;xV(this.qb,"amp",Mr).W=!0;xV(this.qb,"prf",Mr).W=!0;xV(this.qb,"gtx",Mr).W=!0;xV(this.qb, "mvp_lv",Mr).W=!0;xV(this.qb,"ssmol",Mr).W=!0;xV(this.qb,"fmd",Mr).W=!0;xV(this.qb,"gen204simple",Mr);this.W=new sSx(lW(),this.qb);this.X=!1;this.flags=new k1i}; jP=function(){return CE(pbN)}; c9N=function(z,p,c,B){if(Math.random()<(B||z.W))try{if(c instanceof uW)var H=c;else H=new uW,$V(c,function(b,D){var t=H,X=t.X++;b=a2(D,b);t.W.push(X);t.K[X]=b}); var T=H.BU(z.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+p+"&");T&&(lW(),oA_(T))}catch(b){}}; BNY=function(z,p,c){c=c===void 0?{}:c;this.error=z;this.meta=c;this.context=p.context;this.msg=p.message||"";this.id=p.id||"jserror"}; Hzi=function(){var z=z===void 0?g.jQ:z;return(z=z.performance)&&z.now&&z.timing?Math.floor(z.now()+z.timing.navigationStart):g.p9()}; izS=function(){var z=z===void 0?g.jQ:z;return(z=z.performance)&&z.now?z.now():null}; TNE=function(z,p,c){this.label=z;this.type=p;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; nE=function(){var z=window;this.events=[];this.K=z||g.jQ;var p=null;z&&(z.google_js_reporting_queue=z.google_js_reporting_queue||[],this.events=z.google_js_reporting_queue,p=z.google_measure_js_timing);this.W=o2()||(p!=null?p:Math.random()<1)}; bz_=function(z){z&&QA&&o2()&&(QA.clearMarks("goog_"+z.label+"_"+z.uniqueId+"_start"),QA.clearMarks("goog_"+z.label+"_"+z.uniqueId+"_end"))}; VKu=function(){var z=r7;this.W=Uk;this.oC="jserror";this.z4=!0;this.ET=null;this.K=this.Tu;this.Py=z===void 0?null:z}; DlQ=function(z,p,c){var B=sk;return I2(jP().W.W,function(){try{if(B.Py&&B.Py.W){var H=B.Py.start(z.toString(),3);var T=p();B.Py.end(H)}else T=p()}catch(D){var b=B.z4;try{bz_(H),b=B.K(z,new kV(g7(D)),void 0,c)}catch(t){B.Tu(217,t)}if(!b)throw D;}return T})()}; G$=function(z,p,c,B){return I2(jP().W.W,function(){var H=g.L_.apply(0,arguments);return DlQ(z,function(){return p.apply(c,H)},B)})}; g7=function(z){var p=z.toString();z.name&&p.indexOf(z.name)==-1&&(p+=": "+z.name);z.message&&p.indexOf(z.message)==-1&&(p+=": "+z.message);if(z.stack)a:{z=z.stack;var c=p;try{z.indexOf(c)==-1&&(z=c+"\n"+z);for(var B;z!=B;)B=z,z=z.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");p=z.replace(/\n */g,"\n");break a}catch(H){p=c;break a}p=void 0}return p}; kV=function(z){BNY.call(this,Error(z),{message:z})}; tKN=function(){PR&&typeof PR.google_measure_js_timing!="undefined"&&(PR.google_measure_js_timing||r7.disable())}; XbY=function(z){sk.ET=function(p){g.E_(z,function(c){c(p)})}}; xlN=function(z,p){return DlQ(z,p)}; Nr=function(z,p){return G$(z,p)}; fE=function(z,p,c,B){sk.Tu(z,p,c,B)}; zX=function(){return Date.now()-EXY}; qEf=function(){var z=jP().D,p=p4>=0?zX()-p4:-1,c=cx?zX()-Bx:-1,B=Hx>=0?zX()-Hx:-1;if(z==947190542)return 100;if(z==79463069)return 200;z=[2E3,4E3];var H=[250,500,1E3];fE(637,Error(),.001);var T=p;c!=-1&&c1500&&B<4E3?500:b}; TX=function(z,p,c,B){this.top=z;this.right=p;this.bottom=c;this.left=B}; bn=function(z){return z.right-z.left}; VM=function(z,p){return z==p?!0:z&&p?z.top==p.top&&z.right==p.right&&z.bottom==p.bottom&&z.left==p.left:!1}; t_=function(z,p,c){p instanceof g.ho?(z.left+=p.x,z.right+=p.x,z.top+=p.y,z.bottom+=p.y):(z.left+=p,z.right+=p,typeof c==="number"&&(z.top+=c,z.bottom+=c));return z}; xm=function(z,p,c){var B=new TX(0,0,0,0);this.time=z;this.volume=null;this.D=p;this.W=B;this.K=c}; Eg=function(z,p,c,B,H,T,b,D){this.X=z;this.G=p;this.D=c;this.V=B;this.W=H;this.L=T;this.K=b;this.S=D}; MKW=function(z){var p=z!==z.top,c=z.top===dgx(z),B=-1,H=0;if(p&&c&&z.top.mraid){B=3;var T=z.top.mraid}else B=(T=z.mraid)?p?c?2:1:0:-1;T&&(T.IS_GMA_SDK||(H=2),lBu(J9Y,function(b){return typeof T[b]==="function"})||(H=1)); return{YY:T,compatibility:H,Nk0:B}}; YEW=function(){var z=window.document;return z&&typeof z.elementFromPoint==="function"}; mlv=function(z,p,c){if(z&&p!==null&&p!=p.top){if(!p.top)return new g.Ao(-12245933,-12245933);p=p.top}try{return(c===void 0?0:c)?(new g.Ao(p.innerWidth,p.innerHeight)).round():fBQ(p||window).round()}catch(B){return new g.Ao(-12245933,-12245933)}}; qy=function(z,p,c){try{if(z){if(!p.top)return new TX(-12245933,-12245933,-12245933,-12245933);p=p.top}var B=mlv(z,p,c),H=B.height,T=B.width;if(T===-12245933)return new TX(T,T,T,T);var b=pQW(s2(p.document).W),D=b.x,t=b.y;return new TX(t,D+T,t+H,D)}catch(X){return new TX(-12245933,-12245933,-12245933,-12245933)}}; g.J_=function(z,p,c,B){this.left=z;this.top=p;this.width=c;this.height=B}; My=function(z,p){return z==p?!0:z&&p?z.left==p.left&&z.width==p.width&&z.top==p.top&&z.height==p.height:!1}; g.mm=function(z,p,c){if(typeof p==="string")(p=Ym(z,p))&&(z.style[p]=c);else for(var B in p){c=z;var H=p[B],T=Ym(c,B);T&&(c.style[T]=H)}}; Ym=function(z,p){var c=hES[p];if(!c){var B=Z2x(p);c=B;z.style[B]===void 0&&(B=(g.pu?"Webkit":h_?"Moz":null)+dIf(B),z.style[B]!==void 0&&(c=B));hES[p]=c}return c}; g.Px=function(z,p){var c=z.style[Z2x(p)];return typeof c!=="undefined"?c:z.style[Ym(z,p)]||""}; A_=function(z,p){var c=Q3(z);return c.defaultView&&c.defaultView.getComputedStyle&&(z=c.defaultView.getComputedStyle(z,null))?z[p]||z.getPropertyValue(p)||"":""}; Og=function(z,p){return A_(z,p)||(z.currentStyle?z.currentStyle[p]:null)||z.style&&z.style[p]}; g.Rj=function(z,p,c){if(p instanceof g.ho){var B=p.x;p=p.y}else B=p,p=c;z.style.left=g.wY(B,!1);z.style.top=g.wY(p,!1)}; Sz=function(z){try{return z.getBoundingClientRect()}catch(p){return{left:0,top:0,right:0,bottom:0}}}; PoY=function(z){var p=Q3(z),c=Og(z,"position"),B=c=="fixed"||c=="absolute";for(z=z.parentNode;z&&z!=p;z=z.parentNode)if(z.nodeType==11&&z.host&&(z=z.host),c=Og(z,"position"),B=B&&c=="static"&&z!=p.documentElement&&z!=p.body,!B&&(z.scrollWidth>z.clientWidth||z.scrollHeight>z.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return z;return null}; g.$m=function(z){var p=Q3(z),c=new g.ho(0,0);if(z==(p?Q3(p):document).documentElement)return c;z=Sz(z);p=pQW(s2(p).W);c.x=z.left+p.x;c.y=z.top+p.y;return c}; Ozi=function(z,p){var c=new g.ho(0,0),B=cG(Q3(z));if(!Tzu(B,"parent"))return c;do{var H=B==p?g.$m(z):A9S(z);c.x+=H.x;c.y+=H.y}while(B&&B!=p&&B!=B.parent&&(z=B.frameElement)&&(B=B.parent));return c}; g.K4=function(z,p){z=wbS(z);p=wbS(p);return new g.ho(z.x-p.x,z.y-p.y)}; A9S=function(z){z=Sz(z);return new g.ho(z.left,z.top)}; wbS=function(z){if(z.nodeType==1)return A9S(z);z=z.changedTouches?z.changedTouches[0]:z;return new g.ho(z.clientX,z.clientY)}; g.dY=function(z,p,c){if(p instanceof g.Ao)c=p.height,p=p.width;else if(c==void 0)throw Error("missing height argument");z.style.width=g.wY(p,!0);z.style.height=g.wY(c,!0)}; g.wY=function(z,p){typeof z=="number"&&(z=(p?Math.round(z):z)+"px");return z}; g.Wx=function(z){var p=REi;if(Og(z,"display")!="none")return p(z);var c=z.style,B=c.display,H=c.visibility,T=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";z=p(z);c.display=B;c.position=T;c.visibility=H;return z}; REi=function(z){var p=z.offsetWidth,c=z.offsetHeight,B=g.pu&&!p&&!c;return(p===void 0||B)&&z.getBoundingClientRect?(z=Sz(z),new g.Ao(z.right-z.left,z.bottom-z.top)):new g.Ao(p,c)}; g.yM=function(z,p){z.style.display=p?"":"none"}; C4=function(z,p){p=Math.pow(10,p);return Math.floor(z*p)/p}; SEx=function(z){return new TX(z.top,z.right,z.bottom,z.left)}; $lW=function(z){var p=z.top||0,c=z.left||0;return new TX(p,c+(z.width||0),p+(z.height||0),c)}; ez=function(z){return z!=null&&z>=0&&z<=1}; KEY=function(){var z=g.Zm();return z?ln("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;WebOS".split(";"),function(p){return $L(z,p)})||$L(z,"OMI/")&&!$L(z,"XiaoMi/")?!0:$L(z,"Presto")&&$L(z,"Linux")&&!$L(z,"X11")&&!$L(z,"Android")&&!$L(z,"Mobi"):!1}; u8Y=function(){this.D=!SP(PR.top);this.isMobileDevice=R2()||S9Y();var z=KE();this.domain=z.length>0&&z[z.length-1]!=null&&z[z.length-1].url!=null?g.nf(z[z.length-1].url)||"":"";this.W=new TX(0,0,0,0);this.X=new g.Ao(0,0);this.L=new g.Ao(0,0);this.G=new TX(0,0,0,0);this.frameOffset=new g.ho(0,0);this.V=0;this.S=!1;this.K=!(!PR||!MKW(PR).YY);this.update(PR)}; asD=function(z,p){p&&p.screen&&(z.X=new g.Ao(p.screen.width,p.screen.height))}; Zzv=function(z,p){a:{var c=z.W?new g.Ao(bn(z.W),z.W.getHeight()):new g.Ao(0,0);p=p===void 0?PR:p;p!==null&&p!=p.top&&(p=p.top);var B=0,H=0;try{var T=p.document,b=T.body,D=T.documentElement;if(T.compatMode=="CSS1Compat"&&D.scrollHeight)B=D.scrollHeight!=c.height?D.scrollHeight:D.offsetHeight,H=D.scrollWidth!=c.width?D.scrollWidth:D.offsetWidth;else{var t=D.scrollHeight,X=D.scrollWidth,x=D.offsetHeight,E=D.offsetWidth;D.clientHeight!=x&&(t=b.scrollHeight,X=b.scrollWidth,x=b.offsetHeight,E=b.offsetWidth); t>c.height?t>x?(B=t,H=X):(B=x,H=E):t0||z.S)return!0;z=lW().K.isVisible();var p=w7(Ij)===0;return z||p}; vx=function(){return CE(u8Y)}; Fi=function(z){this.D=z;this.K=0;this.W=null}; oj=function(z,p,c){this.D=z;this.rA=c===void 0?"na":c;this.L=[];this.isInitialized=!1;this.X=new xm(-1,!0,this);this.W=this;this.S=p;this.MZ=this.U=!1;this.Ra="uk";this.T$=!1;this.V=!0}; n4=function(z,p){g.Gv(z.L,p)||(z.L.push(p),p.M7(z.W),p.pj(z.X),p.fQ()&&(z.U=!0))}; LEu=function(z){z=z.W;z.EX();z.kL();var p=vx();p.G=qy(!1,z.D,p.isMobileDevice);Zzv(vx(),z.D);z.X.W=z.Ld()}; dlD=function(z){z.U=z.L.length?ln(z.L,function(p){return p.fQ()}):!1}; WEv=function(z){var p=g.ce(z.L);g.E_(p,function(c){c.pj(z.X)})}; QM=function(z){var p=g.ce(z.L);g.E_(p,function(c){c.M7(z.W)}); z.W!=z||WEv(z)}; rY=function(z,p,c,B){this.element=z;this.W=new TX(0,0,0,0);this.D=null;this.V=new TX(0,0,0,0);this.K=p;this.qb=c;this.T$=B;this.tD=!1;this.timestamp=-1;this.U=new Eg(p.X,this.element,this.W,new TX(0,0,0,0),0,0,zX(),0);this.L=void 0}; y9_=function(z,p){return z.L?new TX(Math.max(p.top+z.L.top,p.top),Math.min(p.left+z.L.right,p.right),Math.min(p.top+z.L.bottom,p.bottom),Math.max(p.left+z.L.left,p.left)):p.clone()}; Ug=function(z){this.L=!1;this.W=z;this.X=function(){}}; Coi=function(z,p,c){this.D=c===void 0?0:c;this.K=z;this.W=p==null?"":p}; eEv=function(z){switch(Math.trunc(z.D)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; ls_=function(z,p){return z.Dp.D?!1:z.Kp.K?!1:typeof z.Wtypeof p.W?!1:z.W0?B[c]-B[c-1]:B[c]})}; HV=function(){this.K=new Ny;this.rA=this.fH=0;this.OH=new GX;this.Dt=this.G=-1;this.CH=1E3;this.sH=new Ny([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ra=this.tD=-1}; i6=function(z,p){return s$B(z.K,p===void 0?!0:p)}; Tw=function(z,p,c,B){var H=H===void 0?!1:H;c=G$(B,c);Ok(z,p,c,{capture:H})}; Ve=function(z,p){p=b6(p);return p===0?0:b6(z)/p}; b6=function(z){return Math.max(z.bottom-z.top,0)*Math.max(z.right-z.left,0)}; GBY=function(z,p){if(!z||!p)return!1;for(var c=0;z!==null&&c++<100;){if(z===p)return!0;try{if(z=z.parentElement||z){var B=Q3(z),H=B&&cG(B),T=H&&H.frameElement;T&&(z=T)}}catch(b){break}}return!1}; NNx=function(z,p,c){if(!z||!p)return!1;p=t_(z.clone(),-p.left,-p.top);z=(p.left+p.right)/2;p=(p.top+p.bottom)/2;SP(window.top)&&window.top&&window.top.document&&(window=window.top);if(!YEW())return!1;z=window.document.elementFromPoint(z,p);if(!z)return!1;p=(p=(p=Q3(c))&&p.defaultView&&p.defaultView.frameElement)&&GBY(p,z);var B=z===c;z=!B&&z&&EN(z,function(H){return H===c}); return!(p||B||z)}; fsx=function(z,p,c,B){return vx().D?!1:bn(z)<=0||z.getHeight()<=0?!0:c&&B?xlN(208,function(){return NNx(z,p,c)}):!1}; DL=function(z,p,c){g.e.call(this);this.position=zPQ.clone();this.kW=this.Zq();this.Xk=-2;this.timeCreated=Date.now();this.Vz=-1;this.kU=p;this.G3=null;this.JT=!1;this.LV=null;this.opacity=-1;this.requestSource=c;this.vFi=!1;this.hw=function(){}; this.Pc=function(){}; this.oz=new Of_;this.oz.bP=z;this.oz.W=z;this.nj=!1;this.zG={nE:null,oO:null};this.CF=!0;this.Dj=null;this.fz=this.QRi=!1;jP().V++;this.YF=this.HC();this.Qz=-1;this.PU=null;this.hasCompleted=this.FUI=!1;this.qb=new Xu;AGY(this.qb);pFi(this);this.requestSource==1?Ek(this.qb,"od",1):Ek(this.qb,"od",0)}; pFi=function(z){z=z.oz.bP;var p;if(p=z&&z.getAttribute)p=/-[a-z]/.test("googleAvInapp")?!1:ceY&&z.dataset?"googleAvInapp"in z.dataset:z.hasAttribute?z.hasAttribute("data-"+L0i()):!!z.getAttribute("data-"+L0i());p&&(vx().K=!0)}; tE=function(z,p){p!=z.fz&&(z.fz=p,z=vx(),p?z.V++:z.V>0&&z.V--)}; BIW=function(z,p){if(z.PU){if(p.getName()===z.PU.getName())return;z.PU.dispose();z.PU=null}p=p.create(z.oz.W,z.qb,z.fQ());if(p=p!=null&&p.observe()?p:null)z.PU=p}; HDY=function(z,p,c){if(!z.G3||z.kU==-1||p.K===-1||z.G3.K===-1)return 0;z=p.K-z.G3.K;return z>c?0:z}; iDS=function(z,p,c){if(z.PU){z.PU.P6();var B=z.PU.U,H=B.X,T=H.W;if(B.V!=null){var b=B.D;z.LV=new g.ho(b.left-T.left,b.top-T.top)}T=z.X1()?Math.max(B.W,B.L):B.W;b={};H.volume!==null&&(b.volume=H.volume);H=z.mS(B);z.G3=B;z.Bq(T,p,c,!1,b,H,B.S)}}; TIY=function(z){if(z.JT&&z.Dj){var p=qr(z.qb,"od")==1,c=vx().W,B=z.Dj,H=z.PU?z.PU.getName():"ns",T=z.LV,b=new g.Ao(bn(c),c.getHeight());c=z.X1();z={cnA:H,LV:T,CYD:b,X1:c,Zz:z.YF.Zz,S5A:p};if(p=B.K){p.P6();H=p.U;T=H.X.W;var D=b=null;H.V!=null&&T&&(b=H.D,b=new g.ho(b.left-T.left,b.top-T.top),D=new g.Ao(T.right-T.left,T.bottom-T.top));H=c?Math.max(H.W,H.L):H.W;c={cnA:p.getName(),LV:b,CYD:D,X1:c,S5A:!1,Zz:H}}else c=null;c&&Q$B(B,z,c)}}; bDE=function(z,p,c){p&&(z.hw=p);c&&(z.Pc=c)}; g.XF=function(){}; g.xO=function(z){return{value:z,done:!1}}; VLN=function(){this.X=this.W=this.D=this.K=this.L=0}; D7v=function(z){var p={};var c=g.p9()-z.L;p=(p.ptlt=c,p);(c=z.K)&&(p.pnk=c);(c=z.D)&&(p.pnc=c);(c=z.X)&&(p.pnmm=c);(z=z.W)&&(p.pns=z);return p}; tLf=function(){T$.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; EY=function(z){return ez(z.volume)&&z.volume>0}; q3=function(z,p,c,B){c=c===void 0?!0:c;B=B===void 0?function(){return!0}:B; return function(H){var T=H[z];if(Array.isArray(T)&&B(H))return XF_(T,p,c)}}; JE=function(z,p){return function(c){return p(c)?c[z]:void 0}}; x7_=function(z){return function(p){for(var c=0;c0?T[H-1]+1:0,B+1).reduce(function(b,D){return b+D},0)})}; EYV=function(){this.K=this.W=""}; qaQ=function(){}; YO=function(z,p){var c={};if(z!==void 0)if(p!=null)for(var B in p){var H=p[B];B in Object.prototype||H!=null&&(c[B]=typeof H==="function"?H(z):z[H])}else g.Ix(c,z);return gY(km(new sg,c))}; JeV=function(){var z={};this.K=(z.vs=[1,0],z.vw=[0,1],z.am=[2,2],z.a=[4,4],z.f=[8,8],z.bm=[16,16],z.b=[32,32],z.avw=[0,64],z.avs=[64,0],z.pv=[256,256],z.gdr=[0,512],z.p=[0,1024],z.r=[0,2048],z.m=[0,4096],z.um=[0,8192],z.ef=[0,16384],z.s=[0,32768],z.pmx=[0,16777216],z.mut=[33554432,33554432],z.umutb=[67108864,67108864],z.tvoff=[134217728,134217728],z);this.W={};for(var p in this.K)this.K[p][1]>0&&(this.W[p]=0);this.D=0}; mk=function(z,p){var c=z.K[p],B=c[1];z.D+=c[0];B>0&&z.W[p]==0&&(z.W[p]=1)}; MLY=function(z){var p=g.Z$(z.K),c=0,B;for(B in z.W)g.Gv(p,B)&&z.W[B]==1&&(c+=z.K[B][1],z.W[B]=2);return c}; YaQ=function(z){var p=0,c;for(c in z.W){var B=z.W[c];if(B==1||B==2)p+=z.K[c][1]}return p}; hE=function(){this.W=this.K=0}; PV=function(){HV.call(this);this.D=new GX;this.i8=this.U=this.T$=0;this.S=-1;this.UH=new GX;this.L=new GX;this.W=new Ny;this.V=this.X=-1;this.MZ=new GX;this.CH=2E3;this.YA=new hE;this.Zt=new hE;this.NZ=new hE}; AE=function(z,p,c){var B=z.i8;cx||c||z.S==-1||(B+=p-z.S);return B}; m7E=function(){this.D=!1}; OY=function(z,p){this.D=!1;this.X=z;this.U=p;this.L=0}; wK=function(z,p){OY.call(this,z,p);this.G=[]}; hPW=function(){}; RV=function(){}; Su=function(z,p,c,B){rY.call(this,z,p,c,B)}; $O=function(z,p,c){rY.call(this,null,z,p,c);this.S=z.isActive();this.G=0}; Kx=function(z){return[z.top,z.left,z.bottom,z.right]}; u6=function(z,p,c,B,H,T){T=T===void 0?new RV:T;DL.call(this,p,c,B);this.yZ=H;this.Ky=0;this.iY={};this.EF=new JeV;this.MX={};this.jK="";this.NZ=null;this.RR=!1;this.W=[];this.gK=T.K();this.V=T.D();this.X=null;this.D=-1;this.rA=this.U=void 0;this.Dt=this.MZ=0;this.Ra=-1;this.CH=this.Zt=!1;this.T$=this.S=this.K=this.iN=this.WM=0;new Ny;this.YA=this.i8=0;this.OH=-1;this.lf=0;this.G=g.my;this.tD=[this.Zq()];this.Zw=2;this.O9={};this.O9.pause="p";this.O9.resume="r";this.O9.skip="s";this.O9.mute="m";this.O9.unmute= "um";this.O9.exitfullscreen="ef";this.L=null;this.sH=this.UH=!1;this.FQ=Math.floor(Date.now()/1E3-1704067200);this.fH=0}; aV=function(z){z.hasCompleted=!0;z.lf!=0&&(z.lf=3)}; ZL=function(z){return z===void 0?z:Number(z)?C4(z,3):0}; Lx=function(z,p){return z.tD[p!=null&&pMath.max(1E4,z.D/3)?0:p);var c=z.G(z)||{};c=c.currentTime!==void 0?c.currentTime:z.MZ;var B=c-z.MZ,H=0;B>=0?(z.Dt+=p,z.YA+=Math.max(p-B,0),H=Math.min(B,z.Dt)):z.i8+=Math.abs(B);B!=0&&(z.Dt=0);z.OH==-1&&B>0&&(z.OH=Hx>=0?zX()-Hx:-1);z.MZ=c;return H}; ODf=function(z,p){ln(z.V,function(c){return c.X==p.X})||z.V.push(p)}; wFD=function(z){var p=px(z.dC().W,1);return dK(z,p)}; dK=function(z,p,c){return p>=15E3?!0:z.Zt?(c===void 0?0:c)?!0:z.D>0?p>=z.D/2:z.Ra>0?p>=z.Ra:!1:!1}; RPi=function(z){var p=C4(z.YF.Zz,2),c=z.EF.D,B=z.YF,H=Lx(z),T=ZL(H.X),b=ZL(H.V),D=ZL(B.volume),t=C4(H.G,2),X=C4(H.Dt,2),x=C4(B.Zz,2),E=C4(H.tD,2),q=C4(H.Ra,2);B=C4(B.Qy,2);var J=z.T5().clone().round();z=z.PU&&z.PU.D?(z.PU?z.PU.D:null).clone().round():null;H=i6(H,!1);return{Jn0:p,AP:c,ax:T,CP:b,tT:D,MV:t,yG:X,Zz:x,D$:E,bv:q,Qy:B,position:J,Yj:z,ma:H}}; $7v=function(z,p){SaN(z.W,p,function(){return{Jn0:0,AP:void 0,ax:-1,CP:-1,tT:-1,MV:-1,yG:-1,Zz:-1,D$:-1,bv:-1,Qy:-1,position:void 0,Yj:void 0,ma:[]}}); z.W[p]=RPi(z)}; SaN=function(z,p,c){for(var B=z.length;B0?1:0;E.atos= f4(X.W);E.ssb=f4(X.sH,!1);E.amtos=s$B(X.W,!1);E.uac=z.WM;E.vpt=X.D.W;x=="nio"&&(E.nio=1,E.avms="nio");E.gmm="4";E.gdr=dK(z,X.D.W,!0)?1:0;E.efpf=z.Zw;if(x=="gsv"||x=="nis")x=z.PU,x.G>0&&(E.nnut=x.G);E.tcm=PYQ(z);E.nmt=z.i8;E.bt=z.YA;E.pst=z.OH;E.vpaid=z.U;E.dur=z.D;E.vmtime=z.MZ;E.is=z.EF.D;z.W.length>=1&&(E.i0=z.W[0].AP,E.a0=[z.W[0].tT],E.c0=[z.W[0].Zz],E.ss0=[z.W[0].Qy],x=z.W[0].position,T=z.W[0].Yj,E.p0=x?Kx(x):void 0,x&&T&&!VM(T,x)&&(E.cp0=Kx(T)));z.W.length>=2&&(E.i1=z.W[1].AP,E.a1=Cx(z.W[1].ax, z.W[1].tT,z.W[1].CP),E.c1=Cx(z.W[1].MV,z.W[1].Zz,z.W[1].yG),E.ss1=Cx(z.W[1].D$,z.W[1].Qy,z.W[1].bv),x=z.W[1].position,T=z.W[1].Yj,E.p1=x?Kx(x):void 0,x&&T&&!VM(T,x)&&(E.cp1=Kx(T)),E.mtos1=z.W[1].ma);z.W.length>=3&&(E.i2=z.W[2].AP,E.a2=Cx(z.W[2].ax,z.W[2].tT,z.W[2].CP),E.c2=Cx(z.W[2].MV,z.W[2].Zz,z.W[2].yG),E.ss2=Cx(z.W[2].D$,z.W[2].Qy,z.W[2].bv),x=z.W[2].position,T=z.W[2].Yj,E.p2=x?Kx(x):void 0,x&&T&&!VM(T,x)&&(E.cp2=Kx(T)),E.mtos2=z.W[2].ma);z.W.length>=4&&(E.i3=z.W[3].AP,E.a3=Cx(z.W[3].ax,z.W[3].tT, z.W[3].CP),E.c3=Cx(z.W[3].MV,z.W[3].Zz,z.W[3].yG),E.ss3=Cx(z.W[3].D$,z.W[3].Qy,z.W[3].bv),x=z.W[3].position,T=z.W[3].Yj,E.p3=x?Kx(x):void 0,x&&T&&!VM(T,x)&&(E.cp3=Kx(T)),E.mtos3=z.W[3].ma);E.cs=YaQ(z.EF);p&&(E.ic=MLY(z.EF),E.dvpt=X.D.K,E.dvs=BV(X.K,.5),E.dfvs=BV(X.K,1),E.davs=BV(X.W,.5),E.dafvs=BV(X.W,1),c&&(X.D.K=0,kBY(X.K),kBY(X.W)),z.nI()&&(E.dtos=X.T$,E.dav=X.U,E.dtoss=z.Ky+1,c&&(X.T$=0,X.U=0,z.Ky++)),E.dat=X.L.K,E.dft=X.MZ.K,c&&(X.L.K=0,X.MZ.K=0));E.ps=[D.L.width,D.L.height];E.bs=[bn(D.W),D.W.getHeight()]; E.scs=[D.X.width,D.X.height];E.dom=D.domain;z.iN&&(E.vds=z.iN);if(z.V.length>0||z.gK)p=g.ce(z.V),z.gK&&p.push(z.gK),E.pings=g.d7(p,function(q){return q.toString()}); p=g.d7(g.M3(z.V,function(q){return q.V()}),function(q){return q.getId()}); zKY(p);E.ces=p;z.K&&(E.vmer=z.K);z.S&&(E.vmmk=z.S);z.T$&&(E.vmiec=z.T$);E.avms=z.PU?z.PU.getName():"ns";z.PU&&g.Ix(E,z.PU.Xr());B?(E.c=C4(z.YF.Zz,2),E.ss=C4(z.YF.Qy,2)):E.tth=zX()-ZDN;E.mc=C4(X.Dt,2);E.nc=C4(X.G,2);E.mv=ZL(X.V);E.nv=ZL(X.X);E.lte=C4(z.Xk,2);B=Lx(z,H);i6(X);E.qmtos=i6(B);E.qnc=C4(B.G,2);E.qmv=ZL(B.V);E.qnv=ZL(B.X);E.qas=B.X>0?1:0;E.qi=z.jK;E.avms||(E.avms="geo");E.psm=X.YA.W;E.psv=X.YA.getValue();E.psfv=X.Zt.getValue();E.psa=X.NZ.getValue();t=h1f(t.qb);t.length&&(E.veid=t);z.L&&g.Ix(E, D7v(z.L));E.avas=z.fM();E.vs=z.YJ();E.co=LMx(z);E.tm=X.fH;E.tu=X.rA;return E}; KMx=function(z,p){if(g.Gv(d7f,p))return!0;var c=z.iY[p];return c!==void 0?(z.iY[p]=!0,!c):!1}; LMx=function(z){var p=z.fH.toString(10).padStart(2,"0");p=""+z.FQ+p;z.fH<99&&z.fH++;return p}; yei=function(){this.W={};var z=cG();eu(this,z,document);var p=WMD();try{if("1"==p){for(var c=z.parent;c!=z.top;c=c.parent)eu(this,c,c.document);eu(this,z.top,z.top.document)}}catch(B){}}; WMD=function(){var z=document.documentElement;try{if(!SP(cG().top))return"2";var p=[],c=cG(z.ownerDocument);for(z=c;z!=c.top;z=z.parent)if(z.frameElement)p.push(z.frameElement);else break;return p&&p.length!=0?"1":"0"}catch(B){return"2"}}; eu=function(z,p,c){Tw(c,"mousedown",function(){return CYi(z)},301); Tw(p,"scroll",function(){return ePv(z)},302); Tw(c,"touchmove",function(){return lYY(z)},303); Tw(c,"mousemove",function(){return vYW(z)},304); Tw(c,"keydown",function(){return IYi(z)},305)}; CYi=function(z){g.Rx(z.W,function(p){p.D>1E5||++p.D})}; ePv=function(z){g.Rx(z.W,function(p){p.W>1E5||++p.W})}; lYY=function(z){g.Rx(z.W,function(p){p.W>1E5||++p.W})}; IYi=function(z){g.Rx(z.W,function(p){p.K>1E5||++p.K})}; vYW=function(z){g.Rx(z.W,function(p){p.X>1E5||++p.X})}; jef=function(){this.W=[];this.K=[]}; l6=function(z,p){return g.kL(z.W,function(c){return c.jK==p})}; FMx=function(z,p){return p?g.kL(z.W,function(c){return c.oz.bP==p}):null}; oYN=function(z,p){return g.kL(z.K,function(c){return c.O_()==2&&c.jK==p})}; IV=function(){var z=vV;return z.W.length==0?z.K:z.K.length==0?z.W:g.p$(z.K,z.W)}; nYE=function(z,p){z=p.O_()==1?z.W:z.K;var c=sQ(z,function(B){return B==p}); return c!=-1?(z.splice(c,1),p.PU&&p.PU.unobserve(),p.dispose(),!0):!1}; Qev=function(z){var p=vV;if(nYE(p,z)){switch(z.O_()){case 0:var c=function(){return null}; case 2:c=function(){return oYN(p,z.jK)}; break;case 1:c=function(){return l6(p,z.jK)}}for(var B=c();B;B=c())nYE(p,B)}}; reS=function(z){var p=vV;z=g.M3(z,function(c){return!FMx(p,c.oz.bP)}); p.W.push.apply(p.W,g.A(z))}; U7S=function(z){var p=[];g.E_(z,function(c){ln(vV.W,function(B){return B.oz.bP===c.oz.bP&&B.jK===c.jK})||(vV.W.push(c),p.push(c))})}; ju=function(){this.W=this.K=null}; seV=function(z,p){function c(B,H){p(B,H)} if(z.K==null)return!1;z.W=g.kL(z.K,function(B){return B!=null&&B.Wr()}); z.W&&(z.W.init(c)?LEu(z.W.W):p(z.W.W.A9(),z.W));return z.W!=null}; FF=function(z){z=kix(z);Ug.call(this,z.length?z[z.length-1]:new oj(PR,0));this.D=z;this.K=null}; kix=function(z){if(!z.length)return[];z=(0,g.M3)(z,function(c){return c!=null&&c.zi()}); for(var p=1;pc.time?p:c},z[0])}; rK=function(z){z=z===void 0?PR:z;Ug.call(this,new oj(z,2))}; UY=function(){var z=fYY();oj.call(this,PR.top,z,"geo")}; fYY=function(){jP();var z=vx();return z.D||z.K?0:2}; zyV=function(){}; sY=function(){this.done=!1;this.W={Co:0,XK:0,EPa:0,vX:0,GC:-1,nK:0,oK:0,GR:0,EeD:0};this.L=null;this.V=!1;this.D=null;this.G=0;this.K=new Fi(this)}; gK=function(){var z=kO;z.V||(z.V=!0,pR_(z,function(){return z.X.apply(z,g.A(g.L_.apply(0,arguments)))}),z.X())}; cYv=function(){CE(zyV);var z=CE(ju);z.W!=null&&z.W.W?LEu(z.W.W):vx().update(PR)}; Gw=function(z,p,c){if(!z.done&&(z.K.cancel(),p.length!=0)){z.D=null;try{cYv();var B=zX();jP().L=B;if(CE(ju).W!=null)for(var H=0;H=0?zX()-p4:-1,D=zX();H.W.GC==-1&&(b=D);var t=vx(),X=jP(),x=JY(X.qb),E=IV();try{if(E.length>0){var q=t.W;q&&(x.bs=[bn(q),q.getHeight()]);var J=t.L;J&&(x.ps=[J.width,J.height]);PR.screen&&(x.scs=[PR.screen.width,PR.screen.height])}else x.url=encodeURIComponent(PR.location.href.substring(0,512)),T.referrer&&(x.referrer=encodeURIComponent(T.referrer.substring(0,512))); x.tt=b;x.pt=p4;x.bin=X.K;PR.google_osd_load_pub_page_exp!==void 0&&(x.olpp=PR.google_osd_load_pub_page_exp);x.deb=[1,H.W.Co,H.W.XK,H.W.vX,H.W.GC,0,H.K.K,H.W.nK,H.W.oK,H.W.GR,H.W.EeD,-1].join(";");x.tvt=HEW(H,D);t.K&&(x.inapp=1);if(PR!==null&&PR!=PR.top){E.length>0&&(x.iframe_loc=encodeURIComponent(PR.location.href.substring(0,512)));var M=t.G;x.is=[bn(M),M.getHeight()]}}catch(P){x.error=1}kO.D=x}q=g.lU(kO.D);J=jP().W;qr(J.D,"prf")==1?(M=new vR,H=J.W,T=0,H.W>-1&&(T=H.D.W.now()-H.W),M=f2(M,1,Tu(H.X+ T),0),H=J.W,M=f2(M,5,tD(H.W>-1?H.K+1:H.K),0),M=f2(M,2,Py(J.K.W.D()),"0"),M=f2(M,3,Py(J.K.W.K()),"0"),J=f2(M,4,Py(J.K.W.W()),"0"),M={},J=(M.pf=g.hy(J.W()),M)):J={};g.Ix(q,J);g.Ix(p,B,c,q,z())}])}; bEV=function(){var z=T7Y||PR;if(!z)return"";var p=[];if(!z.location||!z.location.href)return"";p.push("url="+encodeURIComponent(z.location.href.substring(0,512)));z.document&&z.document.referrer&&p.push("referrer="+encodeURIComponent(z.document.referrer.substring(0,512)));return p.join("&")}; N3=function(){var z="youtube.player.web_20250318_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250318_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250318_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250318_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),p;if(((p=z)==null?void 0:p.length)==2)return z[1];z="youtube.player.web_20250318_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=z)==null?void 0:c.length)==3?"20"+z[1]+z[2]:null}; VPQ=function(){return"av.default_js".includes("ima_html5_sdk")?{I_:"ima",Vd:null}:"av.default_js".includes("ima_native_sdk")?{I_:"nima",Vd:null}:"av.default_js".includes("admob-native-video-javascript")?{I_:"an",Vd:null}:"youtube.player.web_20250318_01_RC00".includes("cast_js_sdk")?{I_:"cast",Vd:N3()}:"youtube.player.web_20250318_01_RC00".includes("youtube.player.web")?{I_:"yw",Vd:N3()}:"youtube.player.web_20250318_01_RC00".includes("outstream_web_client")?{I_:"out",Vd:N3()}:"youtube.player.web_20250318_01_RC00".includes("drx_rewarded_web")? {I_:"r",Vd:N3()}:"youtube.player.web_20250318_01_RC00".includes("gam_native_web_video")?{I_:"n",Vd:N3()}:"youtube.player.web_20250318_01_RC00".includes("admob_interstitial_video")?{I_:"int",Vd:N3()}:{I_:"j",Vd:null}}; po=function(z,p){var c={sv:"966"};fx!==null&&(c.v=fx);c.cb=DrD;c.nas=vV.W.length;c.msg=z;p!==void 0&&(z=tPQ(p))&&(c.e=z_[z]);return c}; cO=function(z){return OQ(z,"custom_metric_viewable")}; tPQ=function(z){var p=cO(z)?"custom_metric_viewable":z.toLowerCase();return Wj(WV,function(c){return c==p})}; XRS=function(){this.W=void 0;this.K=!1;this.D=0;this.X=-1;this.L="tos"}; qku=function(z){try{var p=z.split(",");return p.length>g.Z$(xr_).length?null:yA(p,function(c,B){B=B.toLowerCase().split("=");if(B.length!=2||EVY[B[0]]===void 0||!EVY[B[0]](B[1]))throw Error("Entry ("+B[0]+", "+B[1]+") is invalid.");c[B[0]]=B[1];return c},{})}catch(c){return null}}; JYY=function(z,p){if(z.W==void 0)return 0;switch(z.L){case "mtos":return z.K?cV(p.W,z.W):cV(p.K,z.W);case "tos":return z.K?px(p.W,z.W):px(p.K,z.W)}return 0}; BO=function(z,p,c,B){OY.call(this,p,B);this.G=z;this.S=c}; HO=function(){}; i8=function(z){OY.call(this,"fully_viewable_audible_half_duration_impression",z)}; T_=function(z){this.W=z}; b8=function(z,p){OY.call(this,z,p)}; VX=function(z){wK.call(this,"measurable_impression",z)}; Dq=function(){T_.apply(this,arguments)}; tS=function(z,p,c){$O.call(this,z,p,c)}; Xd=function(z){z=z===void 0?PR:z;Ug.call(this,new oj(z,2))}; xv=function(z,p,c){$O.call(this,z,p,c)}; Er=function(z){z=z===void 0?PR:z;Ug.call(this,new oj(z,2))}; qV=function(){oj.call(this,PR,2,"mraid");this.YA=0;this.Dt=this.tD=!1;this.G=null;this.K=MKW(this.D);this.X.W=new TX(0,0,0,0);this.fH=!1}; JS=function(z,p,c){z.Yx("addEventListener",p,c)}; hyi=function(z){jP().X=!!z.Yx("isViewable");JS(z,"viewableChange",MPx);z.Yx("getState")==="loading"?JS(z,"ready",YkS):mrW(z)}; mrW=function(z){typeof z.K.YY.AFMA_LIDAR==="string"?(z.tD=!0,PWV(z)):(z.K.compatibility=3,z.G="nc",z.MS("w"))}; PWV=function(z){z.Dt=!1;var p=qr(jP().qb,"rmmt")==1,c=!!z.Yx("isViewable");(p?!c:1)&&lW().setTimeout(Nr(524,function(){z.Dt||(AYf(z),fE(540,Error()),z.G="mt",z.MS("w"))}),500); OEu(z);JS(z,z.K.YY.AFMA_LIDAR,wRN)}; OEu=function(z){var p=qr(jP().qb,"sneio")==1,c=z.K.YY.AFMA_LIDAR_EXP_1!==void 0,B=z.K.YY.AFMA_LIDAR_EXP_2!==void 0;(p=p&&B)&&(z.K.YY.AFMA_LIDAR_EXP_2=!0);c&&(z.K.YY.AFMA_LIDAR_EXP_1=!p)}; AYf=function(z){z.Yx("removeEventListener",z.K.YY.AFMA_LIDAR,wRN);z.tD=!1}; Ryi=function(z,p){if(z.Yx("getState")==="loading")return new g.Ao(-1,-1);p=z.Yx(p);if(!p)return new g.Ao(-1,-1);z=parseInt(p.width,10);p=parseInt(p.height,10);return isNaN(z)||isNaN(p)?new g.Ao(-1,-1):new g.Ao(z,p)}; YkS=function(){try{var z=CE(qV);z.Yx("removeEventListener","ready",YkS);mrW(z)}catch(p){fE(541,p)}}; wRN=function(z,p){try{var c=CE(qV);c.Dt=!0;var B=z?new TX(z.y,z.x+z.width,z.y+z.height,z.x):new TX(0,0,0,0);var H=zX(),T=jz();var b=new xm(H,T,c);b.W=B;b.volume=p;c.pj(b)}catch(D){fE(542,D)}}; MPx=function(z){var p=jP(),c=CE(qV);z&&!p.X&&(p.X=!0,c.fH=!0,c.G&&c.MS("w",!0))}; MV=function(){this.isInitialized=!1;this.W=this.K=null;var z={};this.G=(z.start=this.bHD,z.firstquartile=this.P8H,z.midpoint=this.C8$,z.thirdquartile=this.HH$,z.complete=this.ZH$,z.error=this.SHZ,z.pause=this.AO,z.resume=this.XP,z.skip=this.yDH,z.viewable_impression=this.gm,z.mute=this.nL,z.unmute=this.nL,z.fullscreen=this.JDp,z.exitfullscreen=this.NAA,z.fully_viewable_audible_half_duration_impression=this.gm,z.measurable_impression=this.gm,z.abandon=this.AO,z.engagedview=this.gm,z.impression=this.gm, z.creativeview=this.gm,z.progress=this.nL,z.custom_metric_viewable=this.gm,z.bufferstart=this.AO,z.bufferfinish=this.XP,z.audio_measurable=this.gm,z.audio_audible=this.gm,z);z={};this.S=(z.overlay_resize=this.ADa,z.abandon=this.vE,z.close=this.vE,z.collapse=this.vE,z.overlay_unmeasurable_impression=function(p){return ye(p,"overlay_unmeasurable_impression",jz())},z.overlay_viewable_immediate_impression=function(p){return ye(p,"overlay_viewable_immediate_impression",jz())},z.overlay_unviewable_impression= function(p){return ye(p,"overlay_unviewable_impression",jz())},z.overlay_viewable_end_of_session_impression=function(p){return ye(p,"overlay_viewable_end_of_session_impression",jz())},z); jP().K=3;Sk_(this);this.D=null}; Yv=function(z,p,c,B){z=z.qF(null,B,!0,p);z.X=c;reS([z]);return z}; $rN=function(z,p,c){Y9S(p);var B=z.W;g.E_(p,function(H){var T=g.d7(H.criteria,function(b){var D=qku(b);if(D==null)b=null;else if(b=new XRS,D.visible!=null&&(b.W=D.visible/100),D.audible!=null&&(b.K=D.audible==1),D.time!=null){var t=D.timetype=="mtos"?"mtos":"tos",X=jE_(D.time,"%")?"%":"ms";D=parseInt(D.time,10);X=="%"&&(D/=100);b.setTime(D,X,t)}return b}); ln(T,function(b){return b==null})||ODf(c,new BO(H.id,H.event,T,B))})}; K_B=function(){var z=[],p=jP();z.push(CE(UY));qr(p.qb,"mvp_lv")&&z.push(CE(qV));p=[new Xd,new Er];p.push(new FF(z));p.push(new rK(PR));return p}; uuY=function(z){if(!z.isInitialized){z.isInitialized=!0;try{var p=zX(),c=jP(),B=vx();p4=p;c.D=79463069;z.K!=="o"&&(T7Y=dgx(PR));if(nAf()){kO.W.XK=0;kO.W.GC=zX()-p;var H=K_B(),T=CE(ju);T.K=H;seV(T,function(){mG()})?kO.done||(B7Y(),n4(T.W.W,z),gK()):B.D?mG():gK()}else hS=!0}catch(b){throw vV.reset(),b; }}}; AS=function(z){kO.K.cancel();PO=z;kO.done=!0}; Or=function(z){if(z.K)return z.K;var p=CE(ju).W;if(p)switch(p.getName()){case "nis":z.K="n";break;case "gsv":z.K="m"}z.K||(z.K="h");return z.K}; w4=function(z,p,c){if(z.W==null)return p.iN|=4,!1;z=acE(z.W,c,p);p.iN|=z;return z==0}; mG=function(){var z=[new rK(PR)],p=CE(ju);p.K=z;seV(p,function(){AS("i")})?kO.done||(B7Y(),gK()):AS("i")}; ZEV=function(z,p){if(!z.RR){var c=ye(z,"start",jz());c=z.yZ.W(c).W;var B={id:"lidarv"};B.r=p;B.sv="966";fx!==null&&(B.v=fx);r6(c,function(H,T){return B[H]=H=="mtos"||H=="tos"?T:encodeURIComponent(T)}); p=bEV();r6(p,function(H,T){return B[H]=encodeURIComponent(T)}); p="//pagead2.googlesyndication.com/pagead/gen_204?"+gY(km(new sg,B));oXY(p);z.RR=!0}}; RA=function(z,p,c){Gw(kO,[z],!jz());$7v(z,c);c!=4&&SaN(z.tD,c,z.Zq);return ye(z,p,jz())}; Sk_=function(z){iEE(function(){var p=L_v();z.K!=null&&(p.sdk=z.K);var c=CE(ju);c.W!=null&&(p.avms=c.W.getName());return p})}; drN=function(z,p,c,B){var H=FMx(vV,c);H!==null&&H.jK!==p&&(z.WA(H),H=null);H||(p=z.qF(c,zX(),!1,p),vV.K.length==0&&(jP().D=79463069),U7S([p]),H=p,H.X=Or(z),B&&(H.NZ=B));return H}; W_E=function(z,p){var c=z[p];c!==void 0&&c>0&&(z[p]=Math.floor(c*1E3))}; L_v=function(){var z=vx(),p={},c={},B={};return Object.assign({},(p.sv="966",p),fx!==null&&(c.v=fx,c),(B["if"]=z.D?"1":"0",B.nas=String(vV.W.length),B))}; SV=function(z){OY.call(this,"audio_audible",z)}; $v=function(z){wK.call(this,"audio_measurable",z)}; Ko=function(){T_.apply(this,arguments)}; u8=function(){}; yYV=function(z){this.W=z}; acE=function(z,p,c){z=z.K();if(typeof z==="function"){var B={};var H={};B=Object.assign({},fx!==null&&(B.v=fx,B),(H.sv="966",H.cb=DrD,H.e=CWi(p),H));H=ye(c,p,jz());g.Ix(B,H);c.MX[p]=H;B=c.O_()==2?FED(B).join("&"):c.yZ.W(B).W;try{return z(c.jK,B,p),0}catch(T){return 2}}else return 1}; CWi=function(z){var p=cO(z)?"custom_metric_viewable":z;z=Wj(WV,function(c){return c==p}); return z_[z]}; aA=function(){MV.call(this);this.V=null;this.L=!1;this.X="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; eyW=function(z,p,c){c=c.opt_configurable_tracking_events;z.W!=null&&Array.isArray(c)&&$rN(z,c,p)}; lcu=function(z,p,c){var B=l6(vV,p);B||(B=c.opt_nativeTime||-1,B=Yv(z,p,Or(z),B),c.opt_osdId&&(B.NZ=c.opt_osdId));return B}; vVB=function(z,p,c){var B=l6(vV,p);B||(B=Yv(z,p,"n",c.opt_nativeTime||-1));return B}; Ici=function(z,p){var c=l6(vV,p);c||(c=Yv(z,p,"h",-1));return c}; j2D=function(z){jP();switch(Or(z)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; nVu=function(z,p,c,B){c=c===void 0?{}:c;var H={};g.Ix(H,{opt_adElement:void 0,opt_fullscreen:void 0},c);var T=z.Uu(p,c);c=T?T.yZ:z.bq();if(H.opt_bounds)return c.W(po("ol",B));if(B!==void 0)if(tPQ(B)!==void 0)if(hS)z=po("ue",B);else if(uuY(z),PO=="i")z=po("i",B),z["if"]=0;else if(p=z.Uu(p,H)){b:{PO=="i"&&(p.nj=!0);T=H.opt_fullscreen;T!==void 0&&tE(p,!!T);var b;if(T=!vx().K)(T=$L(g.Zm(),"CrKey")&&!($L(g.Zm(),"CrKey")&&$L(g.Zm(),"SmartSpeaker"))||$L(g.Zm(),"PlayStation")||$L(g.Zm(),"Roku")||KEY()||$L(g.Zm(), "Xbox"))||(T=g.Zm(),T=$L(T,"AppleTV")||$L(T,"Apple TV")||$L(T,"CFNetwork")||$L(T,"tvOS")),T||(T=g.Zm(),T=$L(T,"sdk_google_atv_x86")||$L(T,"Android TV")),T=!T;T&&(lW(),T=w7(Ij)===0);if(b=T){switch(p.O_()){case 1:ZEV(p,"pv");break;case 2:z.hg(p)}AS("pv")}T=B.toLowerCase();if(b=!b)b=qr(jP().qb,"ssmol")&&T==="loaded"?!1:g.Gv(F_Q,T);if(b&&p.lf==0){PO!="i"&&(kO.done=!1);b=H!==void 0?H.opt_nativeTime:void 0;Hx=b=typeof b==="number"?b:zX();p.JT=!0;var D=jz();p.lf=1;p.iY={};p.iY.start=!1;p.iY.firstquartile= !1;p.iY.midpoint=!1;p.iY.thirdquartile=!1;p.iY.complete=!1;p.iY.resume=!1;p.iY.pause=!1;p.iY.skip=!1;p.iY.mute=!1;p.iY.unmute=!1;p.iY.viewable_impression=!1;p.iY.measurable_impression=!1;p.iY.fully_viewable_audible_half_duration_impression=!1;p.iY.fullscreen=!1;p.iY.exitfullscreen=!1;p.Ky=0;D||(p.dC().S=b);Gw(kO,[p],!D)}(b=p.O9[T])&&mk(p.EF,b);qr(jP().qb,"fmd")||g.Gv(oVB,T)&&p.gK&&p.gK.K(p,null);switch(p.O_()){case 1:var t=cO(T)?z.G.custom_metric_viewable:z.G[T];break;case 2:t=z.S[T]}if(t&&(B=t.call(z, p,H,B),qr(jP().qb,"fmd")&&g.Gv(oVB,T)&&p.gK&&p.gK.K(p,null),B!==void 0)){H=po(void 0,T);g.Ix(H,B);B=H;break b}B=void 0}p.lf==3&&z.WA(p);z=B}else z=po("nf",B);else z=void 0;else hS?z=po("ue"):T?(z=po(),g.Ix(z,uWu(T,!0,!1,!1))):z=po("nf");return typeof z==="string"?c.W():c.W(z)}; Q2i=function(z,p){p&&(z.X=p)}; rYu=function(z){var p={};return p.viewability=z.W,p.googleViewability=z.K,p}; Urx=function(z,p,c){c=c===void 0?{}:c;z=nVu(CE(aA),p,c,z);return rYu(z)}; WO=function(z){var p=g.L_.apply(1,arguments).filter(function(B){return B}).join("&"); if(!p)return z;var c=z.match(/[?&]adurl=/);return c?z.slice(0,c.index+1)+p+"&"+z.slice(c.index+1):z+(z.indexOf("?")===-1?"?":"&")+p}; k$Y=function(z){var p=z.url;z=z.G53;this.W=p;this.G=z;z=/[?&]dsh=1(&|$)/.test(p);this.L=!z&&/[?&]ae=1(&|$)/.test(p);this.V=!z&&/[?&]ae=2(&|$)/.test(p);if((this.K=/[?&]adurl=([^&]*)/.exec(p))&&this.K[1]){try{var c=decodeURIComponent(this.K[1])}catch(B){c=null}this.D=c}this.X=(new Date).getTime()-s2x}; gVY=function(z){z=z.G;if(!z)return"";var p="";z.platform&&(p+="&uap="+encodeURIComponent(z.platform));z.platformVersion&&(p+="&uapv="+encodeURIComponent(z.platformVersion));z.uaFullVersion&&(p+="&uafv="+encodeURIComponent(z.uaFullVersion));z.architecture&&(p+="&uaa="+encodeURIComponent(z.architecture));z.model&&(p+="&uam="+encodeURIComponent(z.model));z.bitness&&(p+="&uab="+encodeURIComponent(z.bitness));z.fullVersionList&&(p+="&uafvl="+encodeURIComponent(z.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+ ";"+encodeURIComponent(c.version)}).join("|"))); typeof z.wow64!=="undefined"&&(p+="&uaw="+Number(z.wow64));return p.substring(1)}; fc_=function(z,p,c,B,H){var T=window;var b=b===void 0?!1:b;var D;c?D=(b===void 0?0:b)?"//ep1.adtrafficquality.google/bg/"+Bj(c)+".js":"//pagead2.googlesyndication.com/bg/"+Bj(c)+".js":D="";b=b===void 0?!1:b;c=T.document;var t={};p&&(t._scs_=p);t._bgu_=D;t._bgp_=B;t._li_="v_h.3.0.0.0";H&&(t._upb_=H);(p=T.GoogleTyFxhY)&&typeof p.push=="function"||(p=T.GoogleTyFxhY=[]);p.push(t);p=s2(c).createElement("SCRIPT");p.type="text/javascript";p.async=!0;z=(b===void 0?0:b)?g_Y(G$W,Bj(z)+".js"):g_Y(N7S,Bj(z)+ ".js");g.kC(p,z);(T=(T.GoogleTyFxhYEET||{})[p.src])?T():c.getElementsByTagName("head")[0].appendChild(p)}; z9Y=function(){try{var z,p;return!!((z=window)==null?0:(p=z.top)==null?0:p.location.href)&&!1}catch(c){return!0}}; Co=function(){var z=pxv();z=z===void 0?"bevasrsg":z;return new Promise(function(p){var c=window===window.top?window:z9Y()?window:window.top,B=c[z],H;((H=B)==null?0:H.bevasrs)?p(new yX(B.bevasrs)):(B||(B={},B=(B.nqfbel=[],B),c[z]=B),B.nqfbel.push(function(T){p(new yX(T))}))})}; c_D=function(z){var p={c:z.Wu,e:z.bC,mc:z.uh,me:z.xi};z.Qm&&(p.co={c:z.Qm.Ec,a:z.Qm.m8,s:z.Qm.LL});return p}; eV=function(z){g.e.call(this);this.wpc=z}; yX=function(z){g.e.call(this);var p=this;this.WO=z;this.D="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.W=void 0;this.X_=this.WO.p;this.X=this.Ui.bind(this);this.addOnDisposeCallback(function(){return void BYv(p)})}; H4_=function(z){var p;return g.L(function(c){if(c.W==1){if(!z.WO.wpc)throw new Hq(30,"NWA");return z.K?c.return(z.K):g.a(c,z.WO.wpc(),2)}p=c.K;z.K=new eV(p);return c.return(z.K)})}; BYv=function(z){z.W!==void 0&&(z.D.forEach(function(p){var c;(c=z.W)==null||c.removeEventListener(p,z.X)}),z.W=void 0)}; b4_=function(z){if(g.wz(g.Hj(z)))return!1;if(z.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var p=new g.YY(z)}catch(c){return g.kL(i4Q,function(B){return z.search(B)>0})!=null}return p.V.match(TYi)?!0:g.kL(i4Q,function(c){return z.match(c)!=null})!=null}; g.l8=function(z,p){return z.replace(VzS,function(c,B){try{var H=g.CH(p,B);if(H==null||H.toString()==null)return c;H=H.toString();if(H==""||!g.wz(g.Hj(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(T){}return c})}; vO=function(z,p){return Object.is(z,p)}; jV=function(z){var p=IA;IA=z;return p}; Dyi=function(z){if(z.sY!==void 0){var p=Fd;Fd=!0;try{for(var c=g.m(z.sY),B=c.next();!B.done;B=c.next()){var H=B.value;H.eF||(z=void 0,H.eF=!0,Dyi(H),(z=H.aC)==null||z.call(H,H))}}finally{Fd=p}}}; tz_=function(){var z;return((z=IA)==null?void 0:z.cX)!==!1}; Xx_=function(z){z&&(z.tQ=0);return jV(z)}; xyE=function(z,p){jV(p);if(z&&z.nD!==void 0&&z.T7!==void 0&&z.tZ!==void 0){if(oA(z))for(p=z.tQ;pz.tQ;)z.nD.pop(),z.tZ.pop(),z.T7.pop()}}; qgx=function(z,p,c){Emf(z);if(z.sY.length===0&&z.nD!==void 0)for(var B=0;B0}; J_B=function(z){z.nD!=null||(z.nD=[]);z.T7!=null||(z.T7=[]);z.tZ!=null||(z.tZ=[])}; Emf=function(z){z.sY!=null||(z.sY=[]);z.Da!=null||(z.Da=[])}; YgW=function(z){function p(){if(Fd)throw Error("");if(IA!==null){var B=IA.tQ++;J_B(IA);B0?" "+p:p))}}; g.q5=function(z,p){if(z.classList)Array.prototype.forEach.call(p,function(H){g.Eo(z,H)}); else{var c={};Array.prototype.forEach.call(tn(z),function(H){c[H]=!0}); Array.prototype.forEach.call(p,function(H){c[H]=!0}); p="";for(var B in c)p+=p.length>0?" "+B:B;g.Xj(z,p)}}; g.Jn=function(z,p){z.classList?z.classList.remove(p):g.xf(z,p)&&g.Xj(z,Array.prototype.filter.call(tn(z),function(c){return c!=p}).join(" "))}; g.M5=function(z,p){z.classList?Array.prototype.forEach.call(p,function(c){g.Jn(z,c)}):g.Xj(z,Array.prototype.filter.call(tn(z),function(c){return!g.Gv(p,c)}).join(" "))}; g.Yf=function(z,p,c){c?g.Eo(z,p):g.Jn(z,p)}; LmN=function(z,p){var c=!g.xf(z,p);g.Yf(z,p,c)}; g.ma=function(){g.T1.call(this);this.W=0;this.endTime=this.startTime=null}; dyv=function(z,p){Array.isArray(p)||(p=[p]);p=p.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); g.mm(z,"transition",p.join(","))}; hn=function(z,p,c,B,H){g.ma.call(this);this.K=z;this.L=p;this.V=c;this.X=B;this.G=Array.isArray(H)?H:[H]}; WmS=function(z,p,c,B){return new hn(z,p,{opacity:c},{opacity:B},{property:"opacity",duration:p,timing:"ease-in",delay:0})}; Cnv=function(z){z=K9(z);if(z=="")return null;var p=String(z.slice(0,4)).toLowerCase();if(("url("1||z&&z.split(")"),null;if(z.indexOf("(")>0){if(/"|'/.test(z))return null;p=/([\-\w]+)\(/g;for(var c;c=p.exec(z);)if(!(c[1].toLowerCase()in y_u))return null}return z}; P4=function(z,p){z=g.jQ[z];return z&&z.prototype?(p=Object.getOwnPropertyDescriptor(z.prototype,p))&&p.get||null:null}; e9_=function(z){var p=g.jQ.CSSStyleDeclaration;return p&&p.prototype&&p.prototype[z]||null}; lRE=function(z,p,c,B){if(z)return z.apply(p,B);if(g.An&&document.documentMode<10){if(!p[c].call)throw Error("IE Clobbering detected");}else if(typeof p[c]!="function")throw Error("Clobbering detected");return p[c].apply(p,B)}; omN=function(z){if(!z)return"";var p=document.createElement("div").style;vmi(z).forEach(function(c){var B=g.pu&&c in IRV?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");OQ(B,"--")||OQ(B,"var")||(c=lRE(jjf,z,z.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Cnv(c),c!=null&&lRE(FmS,p,p.setProperty?"setProperty":"setAttribute",[B,c]))}); return p.cssText||""}; vmi=function(z){g.sx(z)?z=g.ce(z):(z=g.Z$(z),g.f9(z,"cssText"));return z}; g.wD=function(z){var p,c=p=0,B=!1;z=z.split(nmY);for(var H=0;H.4?-1:1;return(p==0?null:p)==-1?"rtl":"ltr"}; g.KI=function(z){if(z instanceof RY||z instanceof So||z instanceof $f)return z;if(typeof z.next=="function")return new RY(function(){return z}); if(typeof z[Symbol.iterator]=="function")return new RY(function(){return z[Symbol.iterator]()}); if(typeof z.iD=="function")return new RY(function(){return z.iD()}); throw Error("Not an iterator or iterable.");}; RY=function(z){this.K=z}; So=function(z){this.K=z}; $f=function(z){RY.call(this,function(){return z}); this.D=z}; u5=function(z,p,c,B,H,T,b,D){this.W=z;this.G=p;this.D=c;this.L=B;this.X=H;this.V=T;this.K=b;this.S=D}; aY=function(z,p){if(p==0)return z.W;if(p==1)return z.K;var c=mH(z.W,z.D,p),B=mH(z.D,z.X,p);z=mH(z.X,z.K,p);c=mH(c,B,p);B=mH(B,z,p);return mH(c,B,p)}; sjS=function(z,p){var c=(p-z.W)/(z.K-z.W);if(c<=0)return 0;if(c>=1)return 1;for(var B=0,H=1,T=0,b=0;b<8;b++){T=aY(z,c);var D=(aY(z,c+1E-6)-T)/1E-6;if(Math.abs(T-p)<1E-6)return c;if(Math.abs(D)<1E-6)break;else T1E-6&&b<8;b++)T=0}; g.W4=function(z){g.e.call(this);this.V=1;this.D=[];this.X=0;this.W=[];this.K={};this.G=!!z}; gmB=function(z,p,c){g.Mg(function(){z.apply(p,c)})}; g.yL=function(z){this.W=z}; CI=function(z){this.W=z}; GXQ=function(z){this.data=z}; NYB=function(z){return z===void 0||z instanceof GXQ?z:new GXQ(z)}; eo=function(z){this.W=z}; g.fRB=function(z){var p=z.creation;z=z.expiration;return!!z&&zg.p9()}; g.l5=function(z){this.W=z}; zTW=function(){}; v4=function(){}; IY=function(z){this.W=z;this.K=null}; jo=function(z){if(z.W==null)throw Error("Storage mechanism: Storage unavailable");var p;((p=z.K)!=null?p:z.isAvailable())||Pq(Error("Storage mechanism: Storage unavailable"))}; Fj=function(){var z=null;try{z=g.jQ.localStorage||null}catch(p){}IY.call(this,z)}; pVN=function(){var z=null;try{z=g.jQ.sessionStorage||null}catch(p){}IY.call(this,z)}; oY=function(z,p){this.K=z;this.W=p+"::"}; g.nI=function(z){var p=new Fj;return p.isAvailable()?z?new oY(p,z):p:null}; QL=function(z,p){this.W=z;this.K=p}; rD=function(z){this.W=[];if(z)a:{if(z instanceof rD){var p=z.mx();z=z.lD();if(this.W.length<=0){for(var c=this.W,B=0;B>>6:(T<65536?D[c++]=224|T>>>12:(D[c++]=240|T>>>18,D[c++]=128|T>>>12&63),D[c++]=128|T>>> 6&63),D[c++]=128|T&63);return D}; gD=function(z){for(var p=z.length;--p>=0;)z[p]=0}; GV=function(z,p,c,B,H){this.Wc=z;this.qW=p;this.Lc=c;this.Kc=B;this.Nti=H;this.Uh=z&&z.length}; N5=function(z,p){this.L5=z;this.cw=0;this.Z6=p}; fI=function(z,p){z.Bf[z.pending++]=p&255;z.Bf[z.pending++]=p>>>8&255}; zI=function(z,p,c){z.wL>16-c?(z.GU|=p<>16-z.wL,z.wL+=c-16):(z.GU|=p<>>=1,c<<=1;while(--p>0);return c>>>1}; TKx=function(z,p,c){var B=Array(16),H=0,T;for(T=1;T<=15;T++)B[T]=H=H+c[T-1]<<1;for(c=0;c<=p;c++)H=z[c*2+1],H!==0&&(z[c*2]=ixu(B[H]++,H))}; bxS=function(z){var p;for(p=0;p<286;p++)z.OY[p*2]=0;for(p=0;p<30;p++)z.jO[p*2]=0;for(p=0;p<19;p++)z.E5[p*2]=0;z.OY[512]=1;z.U0=z.vN=0;z.ej=z.matches=0}; VuY=function(z){z.wL>8?fI(z,z.GU):z.wL>0&&(z.Bf[z.pending++]=z.GU);z.GU=0;z.wL=0}; D3V=function(z,p,c){VuY(z);fI(z,c);fI(z,~c);kf.D8(z.Bf,z.window,p,c,z.pending);z.pending+=c}; tuV=function(z,p,c,B){var H=p*2,T=c*2;return z[H]>>7)];pQ(z,b,c);D=b3[b];D!==0&&(H-=Vs[b],zI(z,H,D))}}while(B>1;b>=1;b--)cn(z,c,b);t=T;do b=z.wE[1],z.wE[1]=z.wE[z.qw--],cn(z,c,1),B=z.wE[1],z.wE[--z.XC]=b,z.wE[--z.XC]=B,c[t*2]=c[b*2]+c[B*2],z.depth[t]=(z.depth[b]>=z.depth[B]?z.depth[b]:z.depth[B])+1,c[b*2+1]=c[B*2+1]=t,z.wE[1]=t++,cn(z,c,1);while(z.qw>= 2);z.wE[--z.XC]=z.wE[1];b=p.L5;t=p.cw;B=p.Z6.Wc;H=p.Z6.Uh;T=p.Z6.qW;var X=p.Z6.Lc,x=p.Z6.Nti,E,q=0;for(E=0;E<=15;E++)z.We[E]=0;b[z.wE[z.XC]*2+1]=0;for(p=z.XC+1;p<573;p++){var J=z.wE[p];E=b[b[J*2+1]*2+1]+1;E>x&&(E=x,q++);b[J*2+1]=E;if(!(J>t)){z.We[E]++;var M=0;J>=X&&(M=T[J-X]);var P=b[J*2];z.U0+=P*(E+M);H&&(z.vN+=P*(B[J*2+1]+M))}}if(q!==0){do{for(E=x-1;z.We[E]===0;)E--;z.We[E]--;z.We[E+1]+=2;z.We[x]--;q-=2}while(q>0);for(E=x;E!==0;E--)for(J=z.We[E];J!==0;)B=z.wE[--p],B>t||(b[B*2+1]!==E&&(z.U0+=(E- b[B*2+1])*b[B*2],b[B*2+1]=E),J--)}TKx(c,D,z.We)}; x3Y=function(z,p,c){var B,H=-1,T=p[1],b=0,D=7,t=4;T===0&&(D=138,t=3);p[(c+1)*2+1]=65535;for(B=0;B<=c;B++){var X=T;T=p[(B+1)*2+1];++b>>=1)if(p&1&&z.OY[c*2]!==0)return 0;if(z.OY[18]!==0||z.OY[20]!==0||z.OY[26]!==0)return 1;for(c=32;c<256;c++)if(z.OY[c*2]!==0)return 1;return 0}; tq=function(z,p,c){z.Bf[z.iC+z.ej*2]=p>>>8&255;z.Bf[z.iC+z.ej*2+1]=p&255;z.Bf[z.c8+z.ej]=c&255;z.ej++;p===0?z.OY[c*2]++:(z.matches++,p--,z.OY[(Bn[c]+256+1)*2]++,z.jO[(p<256?TI[p]:TI[256+(p>>>7)])*2]++);return z.ej===z.vB-1}; xD=function(z,p){z.msg=Xm[p];return p}; E6=function(z){for(var p=z.length;--p>=0;)z[p]=0}; qR=function(z){var p=z.state,c=p.pending;c>z.aj&&(c=z.aj);c!==0&&(kf.D8(z.output,p.Bf,p.z8,c,z.X2),z.X2+=c,p.z8+=c,z.ip+=c,z.aj-=c,p.pending-=c,p.pending===0&&(p.z8=0))}; YD=function(z,p){var c=z.SA>=0?z.SA:-1,B=z.Tr-z.SA,H=0;if(z.level>0){z.A1.WC===2&&(z.A1.WC=qYS(z));D_(z,z.xW);D_(z,z.kT);x3Y(z,z.OY,z.xW.cw);x3Y(z,z.jO,z.kT.cw);D_(z,z.ON);for(H=18;H>=3&&z.E5[JEY[H]*2+1]===0;H--);z.U0+=3*(H+1)+5+5+4;var T=z.U0+3+7>>>3;var b=z.vN+3+7>>>3;b<=T&&(T=b)}else T=b=B+5;if(B+4<=T&&c!==-1)zI(z,p?1:0,3),D3V(z,c,B);else if(z.strategy===4||b===T)zI(z,2+(p?1:0),3),XVV(z,Jq,MR);else{zI(z,4+(p?1:0),3);c=z.xW.cw+1;B=z.kT.cw+1;H+=1;zI(z,c-257,5);zI(z,B-1,5);zI(z,H-4,4);for(T=0;T>>8&255;z.Bf[z.pending++]=p&255}; MuE=function(z,p){var c=z.zS,B=z.Tr,H=z.je,T=z.xs,b=z.Tr>z.f2-262?z.Tr-(z.f2-262):0,D=z.window,t=z.E$,X=z.jb,x=z.Tr+258,E=D[B+H-1],q=D[B+H];z.je>=z.rR&&(c>>=2);T>z.HM&&(T=z.HM);do{var J=p;if(D[J+H]===q&&D[J+H-1]===E&&D[J]===D[B]&&D[++J]===D[B+1]){B+=2;for(J++;D[++B]===D[++J]&&D[++B]===D[++J]&&D[++B]===D[++J]&&D[++B]===D[++J]&&D[++B]===D[++J]&&D[++B]===D[++J]&&D[++B]===D[++J]&&D[++B]===D[++J]&&BH){z.Es=p;H=J;if(J>=T)break;E=D[B+H-1];q=D[B+H]}}}while((p=X[p&t])>b&&--c!== 0);return H<=z.HM?H:z.HM}; O6=function(z){var p=z.f2,c;do{var B=z.mA-z.HM-z.Tr;if(z.Tr>=p+(p-262)){kf.D8(z.window,z.window,p,p,0);z.Es-=p;z.Tr-=p;z.SA-=p;var H=c=z.FD;do{var T=z.head[--H];z.head[H]=T>=p?T-p:0}while(--c);H=c=p;do T=z.jb[--H],z.jb[H]=T>=p?T-p:0;while(--c);B+=p}if(z.A1.n2===0)break;H=z.A1;c=z.window;T=z.Tr+z.HM;var b=H.n2;b>B&&(b=B);b===0?c=0:(H.n2-=b,kf.D8(c,H.input,H.Yd,b,T),H.state.wrap===1?H.qP=Pn(H.qP,c,b,T):H.state.wrap===2&&(H.qP=Aq(H.qP,c,b,T)),H.Yd+=b,H.xo+=b,c=b);z.HM+=c;if(z.HM+z.Uv>=3)for(B=z.Tr-z.Uv, z.lZ=z.window[B],z.lZ=(z.lZ<=3&&(z.lZ=(z.lZ<=3)if(c=tq(z,z.Tr-z.Es,z.jd-3),z.HM-=z.jd,z.jd<=z.jN&&z.HM>=3){z.jd--;do z.Tr++,z.lZ=(z.lZ<=3&&(z.lZ=(z.lZ<4096)&&(z.jd=2));if(z.je>=3&&z.jd<=z.je){B=z.Tr+z.HM-3;c=tq(z,z.Tr-1-z.JN,z.je-3);z.HM-=z.je-1;z.je-=2;do++z.Tr<=B&&(z.lZ=(z.lZ<=3&&z.Tr>0&&(B=z.Tr-1,c=T[B],c===T[++B]&&c===T[++B]&&c===T[++B])){for(H=z.Tr+258;c===T[++B]&&c===T[++B]&&c===T[++B]&&c===T[++B]&&c===T[++B]&&c===T[++B]&&c===T[++B]&&c===T[++B]&&Bz.HM&&(z.jd=z.HM)}z.jd>=3?(c=tq(z,1,z.jd-3),z.HM-=z.jd,z.Tr+=z.jd,z.jd=0):(c=tq(z,0,z.window[z.Tr]),z.HM--,z.Tr++);if(c&&(YD(z,!1),z.A1.aj===0))return 1}z.Uv=0;return p=== 4?(YD(z,!0),z.A1.aj===0?3:4):z.ej&&(YD(z,!1),z.A1.aj===0)?1:2}; m3x=function(z,p){for(var c;;){if(z.HM===0&&(O6(z),z.HM===0)){if(p===0)return 1;break}z.jd=0;c=tq(z,0,z.window[z.Tr]);z.HM--;z.Tr++;if(c&&(YD(z,!1),z.A1.aj===0))return 1}z.Uv=0;return p===4?(YD(z,!0),z.A1.aj===0?3:4):z.ej&&(YD(z,!1),z.A1.aj===0)?1:2}; SY=function(z,p,c,B,H){this.ItZ=z;this.SW3=p;this.KBi=c;this.ZaA=B;this.func=H}; hTS=function(){this.A1=null;this.status=0;this.Bf=null;this.wrap=this.pending=this.z8=this.Qe=0;this.I8=null;this.Tc=0;this.method=8;this.P5=-1;this.E$=this.Kp=this.f2=0;this.window=null;this.mA=0;this.head=this.jb=null;this.xs=this.rR=this.strategy=this.level=this.jN=this.zS=this.je=this.HM=this.Es=this.Tr=this.jI=this.JN=this.jd=this.SA=this.fI=this.LI=this.pO=this.FD=this.lZ=0;this.OY=new kf.Al(1146);this.jO=new kf.Al(122);this.E5=new kf.Al(78);E6(this.OY);E6(this.jO);E6(this.E5);this.ON=this.kT= this.xW=null;this.We=new kf.Al(16);this.wE=new kf.Al(573);E6(this.wE);this.XC=this.qw=0;this.depth=new kf.Al(573);E6(this.depth);this.wL=this.GU=this.Uv=this.matches=this.vN=this.U0=this.iC=this.ej=this.vB=this.c8=0}; P6S=function(z,p){if(!z||!z.state||p>5||p<0)return z?xD(z,-2):-2;var c=z.state;if(!z.output||!z.input&&z.n2!==0||c.status===666&&p!==4)return xD(z,z.aj===0?-5:-2);c.A1=z;var B=c.P5;c.P5=p;if(c.status===42)if(c.wrap===2)z.qP=0,m6(c,31),m6(c,139),m6(c,8),c.I8?(m6(c,(c.I8.text?1:0)+(c.I8.uP?2:0)+(c.I8.extra?4:0)+(c.I8.name?8:0)+(c.I8.comment?16:0)),m6(c,c.I8.time&255),m6(c,c.I8.time>>8&255),m6(c,c.I8.time>>16&255),m6(c,c.I8.time>>24&255),m6(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),m6(c,c.I8.os& 255),c.I8.extra&&c.I8.extra.length&&(m6(c,c.I8.extra.length&255),m6(c,c.I8.extra.length>>8&255)),c.I8.uP&&(z.qP=Aq(z.qP,c.Bf,c.pending,0)),c.Tc=0,c.status=69):(m6(c,0),m6(c,0),m6(c,0),m6(c,0),m6(c,0),m6(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),m6(c,3),c.status=113);else{var H=8+(c.Kp-8<<4)<<8;H|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Tr!==0&&(H|=32);c.status=113;hq(c,H+(31-H%31));c.Tr!==0&&(hq(c,z.qP>>>16),hq(c,z.qP&65535));z.qP=1}if(c.status===69)if(c.I8.extra){for(H= c.pending;c.Tc<(c.I8.extra.length&65535)&&(c.pending!==c.Qe||(c.I8.uP&&c.pending>H&&(z.qP=Aq(z.qP,c.Bf,c.pending-H,H)),qR(z),H=c.pending,c.pending!==c.Qe));)m6(c,c.I8.extra[c.Tc]&255),c.Tc++;c.I8.uP&&c.pending>H&&(z.qP=Aq(z.qP,c.Bf,c.pending-H,H));c.Tc===c.I8.extra.length&&(c.Tc=0,c.status=73)}else c.status=73;if(c.status===73)if(c.I8.name){H=c.pending;do{if(c.pending===c.Qe&&(c.I8.uP&&c.pending>H&&(z.qP=Aq(z.qP,c.Bf,c.pending-H,H)),qR(z),H=c.pending,c.pending===c.Qe)){var T=1;break}T=c.TcH&&(z.qP=Aq(z.qP,c.Bf,c.pending-H,H));T===0&&(c.Tc=0,c.status=91)}else c.status=91;if(c.status===91)if(c.I8.comment){H=c.pending;do{if(c.pending===c.Qe&&(c.I8.uP&&c.pending>H&&(z.qP=Aq(z.qP,c.Bf,c.pending-H,H)),qR(z),H=c.pending,c.pending===c.Qe)){T=1;break}T=c.TcH&&(z.qP=Aq(z.qP,c.Bf,c.pending-H,H));T===0&&(c.status=103)}else c.status= 103;c.status===103&&(c.I8.uP?(c.pending+2>c.Qe&&qR(z),c.pending+2<=c.Qe&&(m6(c,z.qP&255),m6(c,z.qP>>8&255),z.qP=0,c.status=113)):c.status=113);if(c.pending!==0){if(qR(z),z.aj===0)return c.P5=-1,0}else if(z.n2===0&&(p<<1)-(p>4?9:0)<=(B<<1)-(B>4?9:0)&&p!==4)return xD(z,-5);if(c.status===666&&z.n2!==0)return xD(z,-5);if(z.n2!==0||c.HM!==0||p!==0&&c.status!==666){B=c.strategy===2?m3x(c,p):c.strategy===3?YYu(c,p):$D[c.level].func(c,p);if(B===3||B===4)c.status=666;if(B===1||B===3)return z.aj===0&&(c.P5= -1),0;if(B===2&&(p===1?(zI(c,2,3),pQ(c,256,Jq),c.wL===16?(fI(c,c.GU),c.GU=0,c.wL=0):c.wL>=8&&(c.Bf[c.pending++]=c.GU&255,c.GU>>=8,c.wL-=8)):p!==5&&(zI(c,0,3),D3V(c,0,0),p===3&&(E6(c.head),c.HM===0&&(c.Tr=0,c.SA=0,c.Uv=0))),qR(z),z.aj===0))return c.P5=-1,0}if(p!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(m6(c,z.qP&255),m6(c,z.qP>>8&255),m6(c,z.qP>>16&255),m6(c,z.qP>>24&255),m6(c,z.xo&255),m6(c,z.xo>>8&255),m6(c,z.xo>>16&255),m6(c,z.xo>>24&255)):(hq(c,z.qP>>>16),hq(c,z.qP&65535));qR(z);c.wrap>0&& (c.wrap=-c.wrap);return c.pending!==0?0:1}; KQ=function(z){if(!(this instanceof KQ))return new KQ(z);z=this.options=kf.assign({level:-1,method:8,chunkSize:16384,W_:15,yaI:8,strategy:0,nQ:""},z||{});z.raw&&z.W_>0?z.W_=-z.W_:z.Vpa&&z.W_>0&&z.W_<16&&(z.W_+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.A1=new AEv;this.A1.aj=0;var p=this.A1;var c=z.level,B=z.method,H=z.W_,T=z.yaI,b=z.strategy;if(p){var D=1;c===-1&&(c=6);H<0?(D=0,H=-H):H>15&&(D=2,H-=16);if(T<1||T>9||B!==8||H<8||H>15||c<0||c>9||b<0||b>4)p=xD(p,-2);else{H===8&&(H=9); var t=new hTS;p.state=t;t.A1=p;t.wrap=D;t.I8=null;t.Kp=H;t.f2=1<>=7;T<30;T++)for(Vs[T]=b<<7,H=0;H<1<=X.f2&&(p===0&&(E6(X.head),X.Tr=0,X.SA=0,X.Uv=0),c=new kf.Su(X.f2),kf.D8(c,T,b-X.f2,X.f2,0),T=c,b=X.f2);c=z.n2;B=z.Yd;H=z.input;z.n2=b;z.Yd=0;z.input=T;for(O6(X);X.HM>=3;){T=X.Tr;b=X.HM-2;do X.lZ=(X.lZ<=6&&(0,c[68])(c[28],c[53]),c[3]!==-10&&((0,c[0])(c[36],c[47]),c[17])((0,c[18])(c[44]),c[33],c[18]),c[32]<2?(((0,c[47])((0,c[15])(c[59],c[18]),c[2],(0,c[15])(c[10],c[25]),c[69],c[46]),((0,c[61])(c[44],c[58]),c[64])(c[67],c[60]),c[22])((0,c[42])(c[46],c[34]),c[10], c[3],c[34]),c[6])((0,c[38])(),c[61],c[58]):(0,c[40])((0,c[22])((0,c[21])(c[34]),c[3],c[14])&(0,c[6])((0,c[5])(),c[43],c[58]),(0,c[31])(c[65],c[48]),c[22],(0,c[6])((0,c[11])(),c[61],c[0]),(0,c[31])(c[0],c[25]),(0,c[55])(c[60],c[0]),c[31],c[58],c[4]),c[23]>=-5&&((((0,c[32])((((0,c[22])((0,c[21])(c[0]),c[42],c[1],c[0]),c[22])((0,c[10])(c[53],c[34]),c[35],c[2],c[0]),c[64])(c[0],c[62]),c[22],((0,c[42])(c[57],c[65]),c[21])(c[58]),c[64],c[65],c[45]),c[36])((0,c[26])(((0,c[25])(c[18]),c[new Date("1970-01-01T03:00:32.000+03:00")/ 1E3])(c[59],c[9]),c[69],c[65]),c[50],(0,c[45])((0,c[3])(c[60],c[26]),c[3],c[53],c[71]),c[67],(0,c[24])(c[40],c[1]),c[25],c[new Date("1970-01-01T03:15:41.000+03:15")/1E3]),c[56])((0,c[36])(c[42],c[20]),c[3],c[20]),(0,c[23])(c[55],c[44]),c[36])(c[15],c[44]),c[28]>7&&(c[49]!=-2?(0,c[0])((0,c[56])((0,c[57])(c[20]),c[47],c[71],c[52]),c[61],(0,c[36])(c[26],c[64]),c[23],(0,c[23])(c[27],c[64]),c[62],c[44]):((0,c[56])((0,c[3])(c[64]),c[23],c[19],c[64]),(0,c[59])((0,c[1])(),c[17],c[71]),(0,c[8])(c[20]),c[59])((0,c[41])(), c[17],c[36-401%(new Date("1969-12-31T18:18:23.000-05:45")/1E3)+233]))}catch(B){(0,c[new Date("1969-12-31T18:15:14.000-05:45")/1E3])(c[20],c[9]),(0,c[43])(c[31],c[4]),(0,c[47])(c[20],c[58]),(0,c[43])(c[45],c[20]),(0,c[23])(c[63],c[44])}finally{c[24]!=10&&((0,c[56])((0,c[23])(c[34],c[44]),c[23],c[12],c[64]),(0,c[47])(c[4],c[7])),c[48]!==8&&(0,c[8])(c[20]),c[33]>=new Date("1970-01-01T07:15:04.000+07:15")/1E3&&(c[37]>=0?(0,c[new Date("1970-01-01T02:45:47.000+02:45")/1E3])(c[20],c[54]):(0,c[47])(c[71], c[65]))}}catch(B){return"1GQ6bGQDm4Uxp0BueL-_w8_"+z}return p.join("")}; jVV=function(z){return z,"Content-Type"[5+!!z]}; g.Wn=function(z){this.name=z}; FkW=function(z){z=lN(z);l0(this);this.Ka=z}; ys=function(z){z=lN(z);l0(this);this.Ka=z}; CQ=function(z){z=lN(z);l0(this);this.Ka=z}; oOf=function(z){z=lN(z);l0(this);this.Ka=z}; eY=function(z){z=lN(z);l0(this);this.Ka=z}; l3=function(z){z=lN(z);l0(this);this.Ka=z}; vn=function(z){z=lN(z);l0(this);this.Ka=z}; I1=function(z){z=lN(z);l0(this);this.Ka=z}; jY=function(z){z=lN(z);l0(this);this.Ka=z}; Fm=function(z){z=lN(z);l0(this);this.Ka=z}; o1=function(z){z=lN(z);l0(this);this.Ka=z}; nQ=function(z){z=lN(z);l0(this);this.Ka=z}; U6=function(z){z=lN(z);l0(this);this.Ka=z}; s6=function(z){z=lN(z);l0(this);this.Ka=z}; kD=function(z){z=lN(z);l0(this);this.Ka=z}; gj=function(z){z=lN(z,500);l0(this);this.Ka=z}; GI=function(z){z=lN(z);l0(this);this.Ka=z}; NR=function(z){z=lN(z);l0(this);this.Ka=z}; nON=function(z){z=lN(z);l0(this);this.Ka=z}; QVY=function(){return g.n_("yt.ads.biscotti.lastId_")||""}; rES=function(z){g.oE("yt.ads.biscotti.lastId_",z)}; zQ=function(){var z=arguments,p=fQ;z.length>1?p[z[0]]=z[1]:z.length===1&&Object.assign(p,z[0])}; g.pN=function(z,p){return z in fQ?fQ[z]:p}; ch=function(z){var p=fQ.EXPERIMENT_FLAGS;return p?p[z]:void 0}; U3_=function(z){Bh.forEach(function(p){return p(z)})}; g.iO=function(z){return z&&window.yterr?function(){try{return z.apply(this,arguments)}catch(p){g.Hh(p)}}:z}; g.Hh=function(z){var p=g.n_("yt.logging.errors.log");p?p(z,"ERROR",void 0,void 0,void 0,void 0,void 0):(p=g.pN("ERRORS",[]),p.push([z,"ERROR",void 0,void 0,void 0,void 0,void 0]),zQ("ERRORS",p));U3_(z)}; TQ=function(z,p,c,B,H){var T=g.n_("yt.logging.errors.log");T?T(z,"WARNING",p,c,B,void 0,H):(T=g.pN("ERRORS",[]),T.push([z,"WARNING",p,c,B,void 0,H]),zQ("ERRORS",T))}; bO=function(z,p){p=z.split(p);for(var c={},B=0,H=p.length;B1?z[1]:z[0])):{}}; x5=function(z,p){return GwQ(z,p||{},!0)}; E0=function(z,p){return GwQ(z,p||{},!1)}; GwQ=function(z,p,c){var B=z.split("#",2);z=B[0];B=B.length>1?"#"+B[1]:"";var H=z.split("?",2);z=H[0];H=Dz(H[1]||"");for(var T in p)if(c||!g.LH(H,T))H[T]=p[T];return g.g6(z,H)+B}; q_=function(z){if(!p)var p=window.location.href;var c=g.oS(1,z),B=g.nf(z);c&&B?(z=z.match(F0),p=p.match(F0),z=z[3]==p[3]&&z[1]==p[1]&&z[4]==p[4]):z=B?g.nf(p)===B&&(Number(g.oS(4,p))||null)===(Number(g.oS(4,z))||null):!0;return z}; J6=function(z){z||(z=document.location.href);z=g.oS(1,z);return z!==null&&z==="https"}; M_=function(z){z=NKf(z);return z===null?!1:z[0]==="com"&&z[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; fLN=function(z){z=NKf(z);return z===null?!1:z[1]==="google"?!0:z[2]==="google"?z[0]==="au"&&z[1]==="com"?!0:z[0]==="uk"&&z[1]==="co"?!0:!1:!1}; NKf=function(z){z=g.nf(z);return z!==null?z.split(".").reverse():null}; sVD=function(z){return z&&z.match(zRB)?z:cj(z)}; h6=function(z){var p=Y5;z=z===void 0?QVY():z;var c=Object,B=c.assign,H=mI(p);var T=p.W;try{var b=T.screenX;var D=T.screenY}catch(R){}try{var t=T.outerWidth;var X=T.outerHeight}catch(R){}try{var x=T.innerWidth;var E=T.innerHeight}catch(R){}try{var q=T.screenLeft;var J=T.screenTop}catch(R){}try{x=T.innerWidth,E=T.innerHeight}catch(R){}try{var M=T.screen.availWidth;var P=T.screen.availTop}catch(R){}T=[q,J,b,D,M,P,t,X,x,E];b=mlv(!1,p.W.top);D={};var O=O===void 0?g.jQ:O;t=new kv;"SVGElement"in O&&"createElementNS"in O.document&&t.set(0);X=Lyi();X["allow-top-navigation-by-user-activation"]&&t.set(1);X["allow-popups-to-escape-sandbox"]&&t.set(2);O.crypto&&O.crypto.subtle&&t.set(3);"TextDecoder"in O&&"TextEncoder"in O&&t.set(4);O=KmV(t);p=(D.bc=O,D.bih=b.height,D.biw=b.width,D.brdim=T.join(),D.vis=w7(p.K),D.wgl=!!PR.WebGLRenderingContext,D);c=B.call(c,H,p);c.ca_type="image";z&&(c.bid=z);return c}; mI=function(z){var p={};p.dt=pOv;p.flash="0";a:{try{var c=z.W.top.location.href}catch(x){z=2;break a}z=c?c===z.K.location.href?0:1:2}p=(p.frm=z,p);try{p.u_tz=-(new Date).getTimezoneOffset();var B=B===void 0?PR:B;try{var H=B.history.length}catch(x){H=0}p.u_his=H;var T;p.u_h=(T=PR.screen)==null?void 0:T.height;var b;p.u_w=(b=PR.screen)==null?void 0:b.width;var D;p.u_ah=(D=PR.screen)==null?void 0:D.availHeight;var t;p.u_aw=(t=PR.screen)==null?void 0:t.availWidth;var X;p.u_cd=(X=PR.screen)==null?void 0: X.colorDepth}catch(x){}return p}; B4Q=function(){if(!cSB)return null;var z=cSB();return"open"in z?z:null}; g.A6=function(z){switch(Ph(z)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Ph=function(z){return z&&"status"in z?z.status:-1}; g.O0=function(z,p){typeof z==="function"&&(z=g.iO(z));return window.setTimeout(z,p)}; g.wS=function(z,p){typeof z==="function"&&(z=g.iO(z));return window.setInterval(z,p)}; g.Rf=function(z){window.clearTimeout(z)}; g.S9=function(z){window.clearInterval(z)}; g.KN=function(z){z=$5(z);return typeof z==="string"&&z==="false"?!1:!!z}; g.uO=function(z,p){z=$5(z);return z===void 0&&p!==void 0?p:Number(z||0)}; af=function(){return g.pN("EXPERIMENTS_TOKEN","")}; $5=function(z){return g.pN("EXPERIMENT_FLAGS",{})[z]}; Zz=function(){for(var z=[],p=g.pN("EXPERIMENTS_FORCED_FLAGS",{}),c=g.m(Object.keys(p)),B=c.next();!B.done;B=c.next())B=B.value,z.push({key:B,value:String(p[B])});c=g.pN("EXPERIMENT_FLAGS",{});B=g.m(Object.keys(c));for(var H=B.next();!H.done;H=B.next())H=H.value,H.startsWith("force_")&&p[H]===void 0&&z.push({key:H,value:String(c[H])});return z}; LN=function(z,p,c,B,H,T,b,D){function t(){(X&&"readyState"in X?X.readyState:0)===4&&p&&g.iO(p)(X)} c=c===void 0?"GET":c;B=B===void 0?"":B;D=D===void 0?!1:D;var X=B4Q();if(!X)return null;"onloadend"in X?X.addEventListener("loadend",t,!1):X.onreadystatechange=t;g.KN("debug_forward_web_query_parameters")&&(z=HoS(z,window.location.search));X.open(c,z,!0);T&&(X.responseType=T);b&&(X.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(B instanceof FormData));if(H=ioN(z,H))for(var x in H)X.setRequestHeader(x,H[x]),"content-type"===x.toLowerCase()&&(c=!1);c&&X.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(D&&"setAttributionReporting"in XMLHttpRequest.prototype){z={eventSourceEligible:!0,triggerEligible:!1};try{X.setAttributionReporting(z)}catch(E){TQ(E)}}X.send(B);return X}; ioN=function(z,p){p=p===void 0?{}:p;var c=q_(z),B=g.pN("INNERTUBE_CLIENT_NAME"),H=g.KN("web_ajax_ignore_global_headers_if_set"),T;for(T in T4B){var b=g.pN(T4B[T]),D=T==="X-Goog-AuthUser"||T==="X-Goog-PageId";T!=="X-Goog-Visitor-Id"||b||(b=g.pN("VISITOR_DATA"));var t;if(!(t=!b)){if(!(t=c||(g.nf(z)?!1:!0))){t=z;var X;if(X=g.KN("add_auth_headers_to_remarketing_google_dot_com_ping")&&T==="Authorization"&&(B==="TVHTML5"||B==="TVHTML5_UNPLUGGED"||B==="TVHTML5_SIMPLY")&&fLN(t))t=jB(g.oS(5,t))||"",t=t.split("/"), t="/"+(t.length>1?t[1]:""),X=t==="/pagead";t=X?!0:!1}t=!t}t||H&&p[T]!==void 0||B==="TVHTML5_UNPLUGGED"&&D||(p[T]=b)}"X-Goog-EOM-Visitor-Id"in p&&"X-Goog-Visitor-Id"in p&&delete p["X-Goog-Visitor-Id"];if(c||!g.nf(z))p["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.nf(z)){try{var x=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(E){}x&&(p["X-YouTube-Time-Zone"]=x)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.nf(z)||(p["X-YouTube-Ad-Signals"]= VS(h6()));return p}; VVY=function(z,p){var c=g.nf(z);g.KN("debug_handle_relative_url_for_query_forward_killswitch")||!c&&q_(z)&&(c=document.location.hostname);var B=jB(g.oS(5,z));B=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&B&&B.startsWith("/api/");if(!c||B)return z;var H=Dz(p),T={};g.E_(boY,function(b){H[b]&&(T[b]=H[b])}); return E0(z,T)}; Wh=function(z,p){p.method="POST";p.postParams||(p.postParams={});return g.dS(z,p)}; XOY=function(z,p){if(window.fetch&&p.format!=="XML"){var c={method:p.method||"GET",credentials:"same-origin"};p.headers&&(c.headers=p.headers);p.priority&&(c.priority=p.priority);z=DVv(z,p);var B=tVN(z,p);B&&(c.body=B);p.withCredentials&&(c.credentials="include");var H=p.context||g.jQ,T=!1,b;fetch(z,c).then(function(D){if(!T){T=!0;b&&g.Rf(b);var t=D.ok,X=function(x){x=x||{};t?p.onSuccess&&p.onSuccess.call(H,x,D):p.onError&&p.onError.call(H,x,D);p.onFinish&&p.onFinish.call(H,x,D)}; (p.format||"JSON")==="JSON"&&(t||D.status>=400&&D.status<500)?D.json().then(X,function(){X(null)}):X(null)}}).catch(function(){p.onError&&p.onError.call(H,{},{})}); z=p.timeout||0;p.onFetchTimeout&&z>0&&(b=g.O0(function(){T||(T=!0,g.Rf(b),p.onFetchTimeout.call(p.context||g.jQ))},z))}else g.dS(z,p)}; g.dS=function(z,p){var c=p.format||"JSON";z=DVv(z,p);var B=tVN(z,p),H=!1,T=xVi(z,function(t){if(!H){H=!0;D&&g.Rf(D);var X=g.A6(t),x=null,E=400<=t.status&&t.status<500,q=500<=t.status&&t.status<600;if(X||E||q)x=EvE(z,c,t,p.convertToSafeHtml);X&&(X=qrx(c,t,x));x=x||{};E=p.context||g.jQ;X?p.onSuccess&&p.onSuccess.call(E,t,x):p.onError&&p.onError.call(E,t,x);p.onFinish&&p.onFinish.call(E,t,x)}},p.method,B,p.headers,p.responseType,p.withCredentials); B=p.timeout||0;if(p.onTimeout&&B>0){var b=p.onTimeout;var D=g.O0(function(){H||(H=!0,T.abort(),g.Rf(D),b.call(p.context||g.jQ,T))},B)}return T}; DVv=function(z,p){p.includeDomain&&(z=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+z);var c=g.pN("XSRF_FIELD_NAME");if(p=p.urlParams)p[c]&&delete p[c],z=x5(z,p);return z}; tVN=function(z,p){var c=g.pN("XSRF_FIELD_NAME"),B=g.pN("XSRF_TOKEN"),H=p.postBody||"",T=p.postParams,b=g.pN("XSRF_FIELD_NAME"),D;p.headers&&(D=p.headers["Content-Type"]);p.excludeXsrf||g.nf(z)&&!p.withCredentials&&g.nf(z)!==document.location.hostname||p.method!=="POST"||D&&D!=="application/x-www-form-urlencoded"||p.postParams&&p.postParams[b]||(T||(T={}),T[c]=B);(g.KN("ajax_parse_query_data_only_when_filled")&&T&&Object.keys(T).length>0||T)&&typeof H==="string"&&(H=Dz(H),g.Ix(H,T),H=p.postBodyFormat&& p.postBodyFormat==="JSON"?JSON.stringify(H):g.kA(H));T=H||T&&!g.y3(T);!JSu&&T&&p.method!=="POST"&&(JSu=!0,g.Hh(Error("AJAX request with postData should use POST")));return H}; EvE=function(z,p,c,B){var H=null;switch(p){case "JSON":try{var T=c.responseText}catch(b){throw B=Error("Error reading responseText"),B.params=z,TQ(B),b;}z=c.getResponseHeader("Content-Type")||"";T&&z.indexOf("json")>=0&&(T.substring(0,5)===")]}'\n"&&(T=T.substring(5)),H=JSON.parse(T));break;case "XML":if(z=(z=c.responseXML)?MVY(z):null)H={},g.E_(z.getElementsByTagName("*"),function(b){H[b.tagName]=Yru(b)})}B&&mVS(H); return H}; mVS=function(z){if(g.kB(z))for(var p in z)p==="html_content"||jE_(p,"_html")?z[p]=FC(z[p]):mVS(z[p])}; qrx=function(z,p,c){if(p&&p.status===204)return!0;switch(z){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; MVY=function(z){return z?(z=("responseXML"in z?z.responseXML:z).getElementsByTagName("root"))&&z.length>0?z[0]:null:null}; Yru=function(z){var p="";g.E_(z.childNodes,function(c){p+=c.nodeValue}); return p}; CN=function(z,p){var c=g.lU(p),B;return(new g.O9(function(H,T){c.onSuccess=function(b){g.A6(b)?H(new hRW(b)):T(new yS("Request failed, status="+Ph(b),"net.badstatus",b))}; c.onError=function(b){T(new yS("Unknown request error","net.unknown",b))}; c.onTimeout=function(b){T(new yS("Request timed out","net.timeout",b))}; B=g.dS(z,c)})).zL(function(H){if(H instanceof ut){var T; (T=B)==null||T.abort()}return SB(H)})}; g.e9=function(z,p,c,B){function H(D,t,X){return D.zL(function(x){if(t<=0||Ph(x.xhr)===403)return SB(new yS("Request retried too many times","net.retryexhausted",x.xhr,x));x=Math.pow(2,c-t+1)*X;var E=b>0?Math.min(b,x):x;return T(X).then(function(){return H(CN(z,p),t-1,E)})})} function T(D){return new g.O9(function(t){setTimeout(t,D)})} var b=b===void 0?-1:b;return H(CN(z,p),c-1,B)}; yS=function(z,p,c){JJ.call(this,z+", errorCode="+p);this.errorCode=p;this.xhr=c;this.name="PromiseAjaxError"}; hRW=function(z){this.xhr=z}; lO=function(z){this.W=z===void 0?null:z;this.D=0;this.K=null}; vh=function(z){var p=new lO;z=z===void 0?null:z;p.D=2;p.K=z===void 0?null:z;return p}; If=function(z){var p=new lO;z=z===void 0?null:z;p.D=1;p.K=z===void 0?null:z;return p}; g.of=function(z,p,c,B,H){j9||FL.set(""+z,p,{pC:c,path:"/",domain:B===void 0?"youtube.com":B,secure:H===void 0?!1:H})}; g.nN=function(z,p){if(!j9)return FL.get(""+z,p)}; g.QS=function(z,p,c){j9||FL.remove(""+z,p===void 0?"/":p,c===void 0?"youtube.com":c)}; P8x=function(){if(g.KN("embeds_web_enable_cookie_detection_fix")){if(!g.jQ.navigator.cookieEnabled)return!1}else if(!FL.isEnabled())return!1;if(!FL.isEmpty())return!0;g.KN("embeds_web_enable_cookie_detection_fix")?FL.set("TESTCOOKIESENABLED","1",{pC:60,tmi:"none",secure:!0}):FL.set("TESTCOOKIESENABLED","1",{pC:60});if(FL.get("TESTCOOKIESENABLED")!=="1")return!1;FL.remove("TESTCOOKIESENABLED");return!0}; g.I=function(z,p){if(z)return z[p.name]}; rS=function(z){var p=g.pN("INNERTUBE_HOST_OVERRIDE");p&&(z=String(p)+String(Qo(z)));return z}; ASf=function(z){var p={};g.KN("json_condensed_response")&&(p.prettyPrint="false");return z=E0(z,p)}; U0=function(z,p){var c=c===void 0?{}:c;z={method:p===void 0?"POST":p,mode:q_(z)?"same-origin":"cors",credentials:q_(z)?"same-origin":"include"};p={};for(var B=g.m(Object.keys(c)),H=B.next();!H.done;H=B.next())H=H.value,c[H]&&(p[H]=c[H]);Object.keys(p).length>0&&(z.headers=p);return z}; s0=function(){var z=/Chrome\/(\d+)/.exec(g.Zm());return z?parseFloat(z[1]):NaN}; gS=function(){return g.k5("android")&&g.k5("chrome")&&!(g.k5("trident/")||g.k5("edge/"))&&!g.k5("cobalt")}; OoE=function(){return g.k5("armv7")||g.k5("aarch64")||g.k5("android")}; g.GQ=function(){return g.k5("cobalt")}; N_=function(){return g.k5("cobalt")&&g.k5("appletv")}; fN=function(){return g.k5("(ps3; leanback shell)")||g.k5("ps3")&&g.GQ()}; wOD=function(){return g.k5("(ps4; leanback shell)")||g.k5("ps4")&&g.GQ()}; g.RRu=function(){return g.GQ()&&(g.k5("ps4 vr")||g.k5("ps4 pro vr"))}; zW=function(){var z=/WebKit\/([0-9]+)/.exec(g.Zm());return!!(z&&parseInt(z[1],10)>=600)}; pG=function(){var z=/WebKit\/([0-9]+)/.exec(g.Zm());return!!(z&&parseInt(z[1],10)>=602)}; SrS=function(){return g.k5("iemobile")||g.k5("windows phone")&&g.k5("edge")}; HL=function(){return(cL||BL)&&g.k5("applewebkit")&&!g.k5("version")&&(!g.k5("safari")||g.k5("gsa/"))}; TW=function(){return g.iL&&g.k5("version/")}; bL=function(){return g.k5("smart-tv")&&g.k5("samsung")}; g.k5=function(z){var p=g.Zm();return p?p.toLowerCase().indexOf(z)>=0:!1}; Vh=function(){return yD_()||HL()||TW()?!0:g.pN("EOM_VISITOR_DATA")?!1:!0}; DA=function(z,p){return p===void 0||p===null?z:p==="1"||p===!0||p===1||p==="True"?!0:!1}; tr=function(z,p,c){for(var B in c)if(c[B]==p)return c[B];return z}; Xy=function(z,p){return p===void 0||p===null?z:Number(p)}; x4=function(z,p){return p===void 0||p===null?z:p.toString()}; EA=function(z,p){if(p){if(z==="fullwidth")return Infinity;if(z==="fullheight")return 0}return z&&(p=z.match($VN))&&(z=Number(p[2]),p=Number(p[1]),!isNaN(z)&&!isNaN(p)&&z>0)?p/z:NaN}; qD=function(z){var p=z.docid||z.video_id||z.videoId||z.id;if(p)return p;p=z.raw_player_response;p||(z=z.player_response)&&(p=JSON.parse(z));return p&&p.videoDetails&&p.videoDetails.videoId||null}; KG_=function(z){return Jr(z,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.MD=function(z){return z==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||z==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Jr=function(z,p){p=(p===void 0?0:p)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(p="EMBEDDED_PLAYER_MODE_PFL");var c=z.raw_embedded_player_response;if(!c&&(z=z.embedded_player_response))try{c=JSON.parse(z)}catch(B){return p}return c?tr(p,c.embeddedPlayerMode,udD):p}; mo=function(z){JJ.call(this,z.message||z.description||z.name);this.isMissing=z instanceof Y4;this.isTimeout=z instanceof yS&&z.errorCode=="net.timeout";this.isCanceled=z instanceof ut}; Y4=function(){JJ.call(this,"Biscotti ID is missing from server")}; aqB=function(){if(g.KN("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Vh())return Error("User has not consented - not fetching biscotti id.");var z=g.pN("PLAYER_VARS",{});if(g.CH(z,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(KG_(z))return Error("Biscotti id fetching has been disabled for pfl.")}; WGi=function(){var z=aqB();if(z!==void 0)return SB(z);hr||(hr=CN("//googleads.g.doubleclick.net/pagead/id",ZoY).then(LGV).zL(function(p){return dVS(2,p)})); return hr}; LGV=function(z){z=z.xhr.responseText;if(!OQ(z,")]}'"))throw new Y4;z=JSON.parse(z.substr(4));if((z.type||1)>1)throw new Y4;z=z.id;rES(z);hr=If(z);ySY(18E5,2);return z}; dVS=function(z,p){p=new mo(p);rES("");hr=vh(p);z>0&&ySY(12E4,z-1);throw p;}; ySY=function(z,p){g.O0(function(){CN("//googleads.g.doubleclick.net/pagead/id",ZoY).then(LGV,function(c){return dVS(p,c)}).zL(g.my)},z)}; C8Y=function(){try{var z=g.n_("yt.ads.biscotti.getId_");return z?z():WGi()}catch(p){return SB(p)}}; lq_=function(z){z&&(z.dataset?z.dataset[eRD()]="true":ADE(z))}; vvi=function(z){return z?z.dataset?z.dataset[eRD()]:z.getAttribute("data-loaded"):null}; eRD=function(){return IqW.loaded||(IqW.loaded="loaded".replace(/\-([a-z])/g,function(z,p){return p.toUpperCase()}))}; jAS=function(){var z=document;if("visibilityState"in z)return z.visibilityState;var p=PL+"VisibilityState";if(p in z)return z[p]}; Ar=function(z,p){var c;ln(z,function(B){c=p[B];return!!c}); return c}; OA=function(z){if(z.requestFullscreen)z=z.requestFullscreen(void 0);else if(z.webkitRequestFullscreen)z=z.webkitRequestFullscreen();else if(z.mozRequestFullScreen)z=z.mozRequestFullScreen();else if(z.msRequestFullscreen)z=z.msRequestFullscreen();else if(z.webkitEnterFullscreen)z=z.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return z instanceof Promise?z:Promise.resolve()}; Sa=function(z){var p;g.w3()?Rw()==z&&(p=document):p=z;return p&&(z=Ar(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],p))?(p=z.call(p),p instanceof Promise?p:Promise.resolve()):Promise.resolve()}; FGf=function(z){return g.kL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(p){return"on"+p.toLowerCase()in z})}; ov_=function(){var z=document;return g.kL(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(p){return"on"+p.toLowerCase()in z})}; g.w3=function(){return!!Ar(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Rw=function(z){z=z===void 0?!1:z;var p=Ar(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(z)for(;p&&p.shadowRoot;)p=p.shadowRoot.fullscreenElement;return p?p:null}; $4=function(z){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(z=z||window.event){this.event=z;for(var p in z)p in nvB||(this[p]=z[p]);this.scale=z.scale;this.rotation=z.rotation;var c=z.target||z.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var B=z.relatedTarget; if(B)try{B=B.nodeName?B:null}catch(H){B=null}else this.type=="mouseover"?B=z.fromElement:this.type=="mouseout"&&(B=z.toElement);this.relatedTarget=B;this.clientX=z.clientX!=void 0?z.clientX:z.pageX;this.clientY=z.clientY!=void 0?z.clientY:z.pageY;this.keyCode=z.keyCode?z.keyCode:z.which;this.charCode=z.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=z.altKey;this.ctrlKey=z.ctrlKey;this.shiftKey=z.shiftKey;this.metaKey=z.metaKey;this.W=z.pageX;this.K=z.pageY}}catch(H){}}; QAQ=function(z){if(document.body&&document.documentElement){var p=document.body.scrollTop+document.documentElement.scrollTop;z.W=z.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);z.K=z.clientY+p}}; rSY=function(z,p,c,B){B=B===void 0?{}:B;z.addEventListener&&(p!="mouseenter"||"onmouseenter"in document?p!="mouseleave"||"onmouseenter"in document?p=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(p="MozMousePixelScroll"):p="mouseout":p="mouseover");return Wj(KG,function(H){var T=typeof H[4]==="boolean"&&H[4]==!!B,b=g.kB(H[4])&&g.kB(B)&&g.eh(H[4],B);return!!H.length&&H[0]==z&&H[1]==p&&H[2]==c&&(T||b)})}; g.uL=function(z,p,c,B){B=B===void 0?{}:B;if(!z||!z.addEventListener&&!z.attachEvent)return"";var H=rSY(z,p,c,B);if(H)return H;H=++UVE.count+"";var T=!(p!="mouseenter"&&p!="mouseleave"||!z.addEventListener||"onmouseenter"in document);var b=T?function(D){D=new $4(D);if(!EN(D.relatedTarget,function(t){return t==z},!0))return D.currentTarget=z,D.type=p,c.call(z,D)}:function(D){D=new $4(D); D.currentTarget=z;return c.call(z,D)}; b=g.iO(b);z.addEventListener?(p=="mouseenter"&&T?p="mouseover":p=="mouseleave"&&T?p="mouseout":p=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(p="MozMousePixelScroll"),sAV()||typeof B==="boolean"?z.addEventListener(p,b,B):z.addEventListener(p,b,!!B.capture)):z.attachEvent("on"+p,b);KG[H]=[z,p,c,b,B];return H}; gvx=function(z){return k_i(z,function(p){return g.xf(p,"ytp-ad-has-logging-urls")})}; k_i=function(z,p){var c=document.body||document;return g.uL(c,"click",function(B){var H=EN(B.target,function(T){return T===c||p(T)},!0); H&&H!==c&&!H.disabled&&(B.currentTarget=H,z.call(H,B))})}; g.aw=function(z){z&&(typeof z=="string"&&(z=[z]),g.E_(z,function(p){if(p in KG){var c=KG[p],B=c[0],H=c[1],T=c[3];c=c[4];B.removeEventListener?sAV()||typeof c==="boolean"?B.removeEventListener(H,T,c):B.removeEventListener(H,T,!!c.capture):B.detachEvent&&B.detachEvent("on"+H,T);delete KG[p]}}))}; ZA=function(z){for(var p in KG)KG[p][0]==z&&g.aw(p)}; LG=function(z){z=z||window.event;var p;z.composedPath&&typeof z.composedPath==="function"?p=z.composedPath():p=z.path;p&&p.length?z=p[0]:(z=z||window.event,z=z.target||z.srcElement,z.nodeType==3&&(z=z.parentNode));return z}; d3=function(z){this.G=z;this.W=null;this.X=0;this.V=null;this.L=0;this.K=[];for(z=0;z<4;z++)this.K.push(0);this.D=0;this.Dt=g.uL(window,"mousemove",(0,g.Nv)(this.U,this));this.S=g.wS((0,g.Nv)(this.MZ,this),25)}; WL=function(z){g.e.call(this);this.G=[];this.WM=z||this}; yh=function(z,p,c,B){for(var H=0;H0?c:0;c=B?Date.now()+B*1E3:0;if((B=B?(0,g.lL)():vL())&&window.JSON){typeof p!=="string"&&(p=JSON.stringify(p,void 0));try{B.set(z,p,c)}catch(H){B.remove(z)}}}; g.Fy=function(z){var p=vL(),c=(0,g.lL)();if(!p&&!c||!window.JSON)return null;try{var B=p.get(z)}catch(H){}if(typeof B!=="string")try{B=c.get(z)}catch(H){}if(typeof B!=="string")return null;try{B=JSON.parse(B,void 0)}catch(H){}return B}; fqx=function(){var z=(0,g.lL)();if(z&&(z=z.K("yt-player-quality")))return z.creation}; g.ow=function(z){try{var p=vL(),c=(0,g.lL)();p&&p.remove(z);c&&c.remove(z)}catch(B){}}; g.nG=function(){return g.Fy("yt-remote-session-screen-id")}; z__=function(z){var p=this;this.K=void 0;this.W=!1;z.addEventListener("beforeinstallprompt",function(c){c.preventDefault();p.K=c}); z.addEventListener("appinstalled",function(){p.W=!0},{once:!0})}; Qh=function(){if(!g.jQ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.jQ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.jQ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.jQ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.jQ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(z){return"WEB_DISPLAY_MODE_UNKNOWN"}}; r3=function(){this.zs=!0}; p4i=function(){r3.instance||(r3.instance=new r3);return r3.instance}; cnB=function(z){switch(z){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; BDW=function(){this.W=g.pN("ALT_PREF_COOKIE_NAME","PREF");this.K=g.pN("ALT_PREF_COOKIE_DOMAIN","youtube.com");var z=g.nN(this.W);z&&this.parse(z)}; g.sA=function(){UA||(UA=new BDW);return UA}; g.k4=function(z,p){return!!((HIS("f"+(Math.floor(p/31)+1))||0)&1<0;)switch(z=YU.shift(),z.type){case "ERROR":Em.zU(z.payload);break;case "EVENT":Em.logEvent(z.eventType,z.payload)}}; hM=function(z){mF||(Em?Em.zU(z):(YU.push({type:"ERROR",payload:z}),YU.length>10&&YU.shift()))}; PJ=function(z,p){mF||(Em?Em.logEvent(z,p):(YU.push({type:"EVENT",eventType:z,payload:p}),YU.length>10&&YU.shift()))}; AM=function(z){if(z.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Om=function(z){return z.substr(0,z.indexOf(":"))||z}; g.wy=function(z,p,c,B,H){p=p===void 0?{}:p;c=c===void 0?x5u[z]:c;B=B===void 0?Efx[z]:B;H=H===void 0?qoB[z]:H;g.z6.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:z},p));this.type=z;this.message=c;this.level=B;this.W=H;Object.setPrototypeOf(this,g.wy.prototype)}; RO=function(z,p){g.wy.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:p,foundObjectStores:z},x5u.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,RO.prototype)}; Sj=function(z,p){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=z;this.objectStore=p;Object.setPrototypeOf(this,Sj.prototype)}; Kt=function(z,p,c,B){p=Om(p);var H=z instanceof Error?z:Error("Unexpected error: "+z);if(H instanceof g.wy)return H;z={objectStoreNames:c,dbName:p,dbVersion:B};if(H.name==="QuotaExceededError")return new g.wy("QUOTA_EXCEEDED",z);if(g.$U&&H.name==="UnknownError")return new g.wy("QUOTA_MAYBE_EXCEEDED",z);if(H instanceof Sj)return new g.wy("MISSING_INDEX",Object.assign({},z,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&JnS.some(function(T){return H.message.includes(T)}))return new g.wy("EXECUTE_TRANSACTION_ON_CLOSED_DB", z); if(H.name==="AbortError")return new g.wy("UNKNOWN_ABORT",z,H.message);H.args=[Object.assign({},z,{name:"IdbError",CV:H.name})];H.level="WARNING";return H}; g.uR=function(z,p,c){var B=xU();return new g.wy("IDB_NOT_SUPPORTED",{context:{caller:z,publicName:p,version:c,hasSucceededOnce:B==null?void 0:B.hasSucceededOnce}})}; MoN=function(z){if(!z)throw Error();throw z;}; YoE=function(z){return z}; aO=function(z){this.W=z}; g.Zg=function(z){function p(H){if(B.state.status==="PENDING"){B.state={status:"REJECTED",reason:H};H=g.m(B.K);for(var T=H.next();!T.done;T=H.next())T=T.value,T()}} function c(H){if(B.state.status==="PENDING"){B.state={status:"FULFILLED",value:H};H=g.m(B.W);for(var T=H.next();!T.done;T=H.next())T=T.value,T()}} var B=this;this.state={status:"PENDING"};this.W=[];this.K=[];z=z.W;try{z(c,p)}catch(H){p(H)}}; m5W=function(z,p,c,B,H){try{if(z.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var T=c(z.state.value);T instanceof g.Zg?Lt(z,p,T,B,H):B(T)}catch(b){H(b)}}; h_f=function(z,p,c,B,H){try{if(z.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var T=c(z.state.reason);T instanceof g.Zg?Lt(z,p,T,B,H):B(T)}catch(b){H(b)}}; Lt=function(z,p,c,B,H){p===c?H(new TypeError("Circular promise chain detected.")):c.then(function(T){T instanceof g.Zg?Lt(z,p,T,B,H):B(T)},function(T){H(T)})}; P5f=function(z,p,c){function B(){c(z.error);T()} function H(){p(z.result);T()} function T(){try{z.removeEventListener("success",H),z.removeEventListener("error",B)}catch(b){}} z.addEventListener("success",H);z.addEventListener("error",B)}; AnW=function(z){return new Promise(function(p,c){P5f(z,p,c)})}; dy=function(z){return new g.Zg(new aO(function(p,c){P5f(z,p,c)}))}; WJ=function(z,p){return new g.Zg(new aO(function(c,B){function H(){var T=z?p(z):null;T?T.then(function(b){z=b;H()},B):c()} H()}))}; OIW=function(z,p){this.request=z;this.cursor=p}; w4u=function(z){return dy(z).then(function(p){return p?new OIW(z,p):null})}; g.R_N=function(z){z.cursor.continue(void 0);return w4u(z.request)}; SoS=function(z,p){this.W=z;this.options=p;this.transactionCount=0;this.D=Math.round((0,g.y2)());this.K=!1}; g.ej=function(z,p,c){z=z.W.createObjectStore(p,c);return new Ct(z)}; lR=function(z,p){z.W.objectStoreNames.contains(p)&&z.W.deleteObjectStore(p)}; g.jj=function(z,p,c){return g.vJ(z,[p],{mode:"readwrite",xt:!0},function(B){return g.IO(B.objectStore(p),c)})}; g.vJ=function(z,p,c,B){var H,T,b,D,t,X,x,E,q,J,M,P;return g.L(function(O){switch(O.W){case 1:var R={mode:"readonly",xt:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?R.mode=c:Object.assign(R,c);H=R;z.transactionCount++;T=H.xt?3:1;b=0;case 2:if(D){O.hD(4);break}b++;t=Math.round((0,g.y2)());g.Ox(O,5);X=z.W.transaction(p,H.mode);R=new F1(X);R=$5u(R,B);return g.a(O,R,7);case 7:return x=O.K,E=Math.round((0,g.y2)()),KaB(z,t,E,b,void 0,p.join(),H),O.return(x);case 5:q=g.SQ(O);J=Math.round((0,g.y2)()); M=Kt(q,z.W.name,p.join(),z.W.version);if((P=M instanceof g.wy&&!M.W)||b>=T)KaB(z,t,J,b,M,p.join(),H),D=M;O.hD(2);break;case 4:return O.return(Promise.reject(D))}})}; KaB=function(z,p,c,B,H,T,b){p=c-p;H?(H instanceof g.wy&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&PJ("QUOTA_EXCEEDED",{dbName:Om(z.W.name),objectStoreNames:T,transactionCount:z.transactionCount,transactionMode:b.mode}),H instanceof g.wy&&H.type==="UNKNOWN_ABORT"&&(c-=z.D,c<0&&c>=2147483648&&(c=0),PJ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:T,transactionDuration:p,transactionCount:z.transactionCount,dbDuration:c}),z.K=!0),ujf(z,!1,B,T,p,b.tag),hM(H)):ujf(z,!0,B,T,p, b.tag)}; ujf=function(z,p,c,B,H,T){PJ("TRANSACTION_ENDED",{objectStoreNames:B,connectionHasUnknownAbortedTransaction:z.K,duration:H,isSuccessful:p,tryCount:c,tag:T===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":T})}; Ct=function(z){this.W=z}; g.oO=function(z,p,c){z.W.createIndex(p,c,{unique:!1})}; avD=function(z,p){return g.nt(z,{query:p},function(c){return c.delete().then(function(){return g.Q2(c)})}).then(function(){})}; ZID=function(z,p,c){var B=[];return g.nt(z,{query:p},function(H){if(!(c!==void 0&&B.length>=c))return B.push(H.getValue()),g.Q2(H)}).then(function(){return B})}; d5x=function(z){return"getAllKeys"in IDBObjectStore.prototype?dy(z.W.getAllKeys(void 0,void 0)):Laf(z)}; Laf=function(z){var p=[];return g.Wax(z,{query:void 0},function(c){p.push(c.cursor.primaryKey);return g.R_N(c)}).then(function(){return p})}; g.IO=function(z,p,c){return dy(z.W.put(p,c))}; g.nt=function(z,p,c){z=z.W.openCursor(p.query,p.direction);return ry(z).then(function(B){return WJ(B,c)})}; g.Wax=function(z,p,c){var B=p.query;p=p.direction;z="openKeyCursor"in IDBObjectStore.prototype?z.W.openKeyCursor(B,p):z.W.openCursor(B,p);return w4u(z).then(function(H){return WJ(H,c)})}; F1=function(z){var p=this;this.W=z;this.D=new Map;this.K=!1;this.done=new Promise(function(c,B){p.W.addEventListener("complete",function(){c()}); p.W.addEventListener("error",function(H){H.currentTarget===H.target&&B(p.W.error)}); p.W.addEventListener("abort",function(){var H=p.W.error;if(H)B(H);else if(!p.K){H=g.wy;for(var T=p.W.objectStoreNames,b=[],D=0;D=c))return B.push(H.getValue()),g.Q2(H)}).then(function(){return B})}; g.Um=function(z,p,c){z=z.W.openCursor(p.query===void 0?null:p.query,p.direction===void 0?"next":p.direction);return ry(z).then(function(B){return WJ(B,c)})}; sm=function(z,p){this.request=z;this.cursor=p}; ry=function(z){return dy(z).then(function(p){return p?new sm(z,p):null})}; g.Q2=function(z){z.cursor.continue(void 0);return ry(z.request)}; e_x=function(z,p,c){return new Promise(function(B,H){function T(){q||(q=new SoS(b.result,{closed:E}));return q} var b=p!==void 0?self.indexedDB.open(z,p):self.indexedDB.open(z);var D=c.blocked,t=c.blocking,X=c.F$8,x=c.upgrade,E=c.closed,q;b.addEventListener("upgradeneeded",function(J){try{if(J.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(b.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");J.dataLoss&&J.dataLoss!=="none"&&PJ("IDB_DATA_CORRUPTED",{reason:J.dataLossMessage||"unknown reason",dbName:Om(z)});var M=T(),P=new F1(b.transaction); x&&x(M,function(O){return J.oldVersion=O},P); P.done.catch(function(O){H(O)})}catch(O){H(O)}}); b.addEventListener("success",function(){var J=b.result;t&&J.addEventListener("versionchange",function(){t(T())}); J.addEventListener("close",function(){PJ("IDB_UNEXPECTEDLY_CLOSED",{dbName:Om(z),dbVersion:J.version});X&&X()}); B(T())}); b.addEventListener("error",function(){H(b.error)}); D&&b.addEventListener("blocked",function(){D()})})}; lvx=function(z,p,c){c=c===void 0?{}:c;return e_x(z,p,c)}; kU=function(z,p){p=p===void 0?{}:p;var c,B,H,T;return g.L(function(b){if(b.W==1)return g.Ox(b,2),c=self.indexedDB.deleteDatabase(z),B=p,(H=B.blocked)&&c.addEventListener("blocked",function(){H()}),g.a(b,AnW(c),4); if(b.W!=2)return g.RE(b,0);T=g.SQ(b);throw Kt(T,z,"",-1);})}; gy=function(z,p){this.name=z;this.options=p;this.D=!0;this.L=this.X=0}; vf_=function(z,p){return new g.wy("INCOMPATIBLE_DB_VERSION",{dbName:z.name,oldVersion:z.options.version,newVersion:p})}; g.G6=function(z,p){if(!p)throw g.uR("openWithToken",Om(z.name));return z.open()}; IvY=function(z,p){var c;return g.L(function(B){if(B.W==1)return g.a(B,g.G6(NG,p),2);c=B.K;return B.return(g.vJ(c,["databases"],{xt:!0,mode:"readwrite"},function(H){var T=H.objectStore("databases");return T.get(z.actualName).then(function(b){if(b?z.actualName!==b.actualName||z.publicName!==b.publicName||z.userIdentifier!==b.userIdentifier:1)return g.IO(T,z).then(function(){})})}))})}; ft=function(z,p){var c;return g.L(function(B){if(B.W==1)return z?g.a(B,g.G6(NG,p),2):B.return();c=B.K;return B.return(c.delete("databases",z))})}; jYV=function(z,p){var c,B;return g.L(function(H){return H.W==1?(c=[],g.a(H,g.G6(NG,p),2)):H.W!=3?(B=H.K,g.a(H,g.vJ(B,["databases"],{xt:!0,mode:"readonly"},function(T){c.length=0;return g.nt(T.objectStore("databases"),{},function(b){z(b.getValue())&&c.push(b.getValue());return g.Q2(b)})}),3)):H.return(c)})}; FaN=function(z,p){return jYV(function(c){return c.publicName===z&&c.userIdentifier!==void 0},p)}; ofS=function(){var z,p,c,B;return g.L(function(H){switch(H.W){case 1:z=xU();if((p=z)==null?0:p.hasSucceededOnce)return H.return(!0);if(zG&&zW()&&!pG()||g.pq)return H.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return H.return(!1)}catch(T){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);g.Ox(H,2);B={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.a(H,IvY(B,cU),4);case 4:return g.a(H,ft("yt-idb-test-do-not-use",cU),5);case 5:return H.return(!0);case 2:return g.SQ(H),H.return(!1)}})}; nff=function(){if(BU!==void 0)return BU;mF=!0;return BU=ofS().then(function(z){mF=!1;var p;if((p=X1())!=null&&p.W){var c;p={hasSucceededOnce:((c=xU())==null?void 0:c.hasSucceededOnce)||z};var B;(B=X1())==null||B.set("LAST_RESULT_ENTRY_KEY",p,2592E3,!0)}return z})}; HU=function(){return g.n_("ytglobal.idbToken_")||void 0}; g.iH=function(){var z=HU();return z?Promise.resolve(z):nff().then(function(p){(p=p?cU:void 0)&&g.oE("ytglobal.idbToken_",p);return p})}; QYN=function(z){if(!g.cJ())throw z=new g.wy("AUTH_INVALID",{dbName:z}),hM(z),z;var p=g.pt();return{actualName:z+":"+p,publicName:z,userIdentifier:p}}; rnx=function(z,p,c,B){var H,T,b,D,t,X;return g.L(function(x){switch(x.W){case 1:return T=(H=Error().stack)!=null?H:"",g.a(x,g.iH(),2);case 2:b=x.K;if(!b)throw D=g.uR("openDbImpl",z,p),g.KN("ytidb_async_stack_killswitch")||(D.stack=D.stack+"\n"+T.substring(T.indexOf("\n")+1)),hM(D),D;AM(z);t=c?{actualName:z,publicName:z,userIdentifier:void 0}:QYN(z);g.Ox(x,3);return g.a(x,IvY(t,b),5);case 5:return g.a(x,lvx(t.actualName,p,B),6);case 6:return x.return(x.K);case 3:return X=g.SQ(x),g.Ox(x,7),g.a(x,ft(t.actualName, b),9);case 9:g.RE(x,8);break;case 7:g.SQ(x);case 8:throw X;}})}; U5D=function(z,p,c){c=c===void 0?{}:c;return rnx(z,p,!1,c)}; sYQ=function(z,p,c){c=c===void 0?{}:c;return rnx(z,p,!0,c)}; kVY=function(z,p){p=p===void 0?{}:p;var c,B;return g.L(function(H){if(H.W==1)return g.a(H,g.iH(),2);if(H.W!=3){c=H.K;if(!c)return H.return();AM(z);B=QYN(z);return g.a(H,kU(B.actualName,p),3)}return g.a(H,ft(B.actualName,c),0)})}; gfD=function(z,p,c){z=z.map(function(B){return g.L(function(H){return H.W==1?g.a(H,kU(B.actualName,p),2):g.a(H,ft(B.actualName,c),0)})}); return Promise.all(z).then(function(){})}; GVv=function(z){var p=p===void 0?{}:p;var c,B;return g.L(function(H){if(H.W==1)return g.a(H,g.iH(),2);if(H.W!=3){c=H.K;if(!c)return H.return();AM(z);return g.a(H,FaN(z,c),3)}B=H.K;return g.a(H,gfD(B,p,c),0)})}; NDS=function(z,p){p=p===void 0?{}:p;var c;return g.L(function(B){if(B.W==1)return g.a(B,g.iH(),2);if(B.W!=3){c=B.K;if(!c)return B.return();AM(z);return g.a(B,kU(z,p),3)}return g.a(B,ft(z,c),0)})}; TG=function(z,p){gy.call(this,z,p);this.options=p;AM(z)}; fvi=function(z,p){var c;return function(){c||(c=new TG(z,p));return c}}; g.bH=function(z,p){return fvi(z,p)}; Vc=function(z){return g.G6(z4x(),z)}; pnf=function(z,p,c,B){var H,T,b;return g.L(function(D){switch(D.W){case 1:return H={config:z,hashData:p,timestamp:B!==void 0?B:(0,g.y2)()},g.a(D,Vc(c),2);case 2:return T=D.K,g.a(D,T.clear("hotConfigStore"),3);case 3:return g.a(D,g.jj(T,"hotConfigStore",H),4);case 4:return b=D.K,D.return(b)}})}; cqf=function(z,p,c,B,H){var T,b,D;return g.L(function(t){switch(t.W){case 1:return T={config:z,hashData:p,configData:c,timestamp:H!==void 0?H:(0,g.y2)()},g.a(t,Vc(B),2);case 2:return b=t.K,g.a(t,b.clear("coldConfigStore"),3);case 3:return g.a(t,g.jj(b,"coldConfigStore",T),4);case 4:return D=t.K,t.return(D)}})}; BjQ=function(z){var p,c;return g.L(function(B){return B.W==1?g.a(B,Vc(z),2):B.W!=3?(p=B.K,c=void 0,g.a(B,g.vJ(p,["coldConfigStore"],{mode:"readwrite",xt:!0},function(H){return g.Um(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(T){c=T.getValue()})}),3)):B.return(c)})}; HQx=function(z){var p,c;return g.L(function(B){return B.W==1?g.a(B,Vc(z),2):B.W!=3?(p=B.K,c=void 0,g.a(B,g.vJ(p,["hotConfigStore"],{mode:"readwrite",xt:!0},function(H){return g.Um(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(T){c=T.getValue()})}),3)):B.return(c)})}; iQB=function(){return g.L(function(z){return g.a(z,GVv("ytGcfConfig"),0)})}; DJ=function(){g.e.call(this);this.K=[];this.W=[];var z=g.n_("yt.gcf.config.hotUpdateCallbacks");z?(this.K=[].concat(g.A(z)),this.W=z):(this.W=[],g.oE("yt.gcf.config.hotUpdateCallbacks",this.W))}; Jc=function(){var z=this;this.L=!1;this.D=this.X=0;this.V=new DJ;this.Xg={z2i:function(){z.L=!0}, aY8:function(){return z.W}, XIq:function(p){tc(z,p)}, XL:function(p){z.XL(p)}, MDI:function(p){X$(z,p)}, PG:function(){return z.coldHashData}, Ud:function(){return z.hotHashData}, fY3:function(){return z.K}, jJq:function(){return xc()}, h9A:function(){return E3()}, TKH:function(){return g.n_("yt.gcf.config.coldHashData")}, R9H:function(){return g.n_("yt.gcf.config.hotHashData")}, oRH:function(){TjE(z)}, UCH:function(){z.XL(void 0);qq(z);delete Jc.instance}, zmA:function(p){z.D=p}, FOH:function(){return z.D}}}; bQv=function(){if(!Jc.instance){var z=new Jc;Jc.instance=z}return Jc.instance}; tYi=function(z){var p;g.L(function(c){if(c.W==1)return g.KN("start_client_gcf")||g.KN("delete_gcf_config_db")?g.KN("start_client_gcf")?g.a(c,g.iH(),3):c.hD(2):c.return();c.W!=2&&((p=c.K)&&g.cJ()&&!g.KN("delete_gcf_config_db")?(z.L=!0,TjE(z)):(VYf(z),DRD(z)));return g.KN("delete_gcf_config_db")?g.a(c,iQB(),0):c.hD(0)})}; Mq=function(){var z;return(z=E3())!=null?z:g.pN("RAW_HOT_CONFIG_GROUP")}; XnE=function(z){var p,c,B,H,T,b;return g.L(function(D){switch(D.W){case 1:if(z.K)return D.return(E3());if(!z.L)return p=g.uR("getHotConfig IDB not initialized"),TQ(p),D.return(Promise.reject(p));c=HU();B=g.pN("TIME_CREATED_MS");if(!c){H=g.uR("getHotConfig token error");TQ(H);D.hD(2);break}return g.a(D,HQx(c),3);case 3:if((T=D.K)&&T.timestamp>B)return tc(z,T.config),z.XL(T.hashData),D.return(E3());case 2:DRD(z);if(!(c&&z.K&&z.hotHashData)){D.hD(4);break}return g.a(D,pnf(z.K,z.hotHashData,c,B),4);case 4:return z.K? D.return(E3()):(b=new g.z6("Config not available in ytConfig"),TQ(b),D.return(Promise.reject(b)))}})}; EDW=function(z){var p,c,B,H,T,b;return g.L(function(D){switch(D.W){case 1:if(z.W)return D.return(xc());if(!z.L)return p=g.uR("getColdConfig IDB not initialized"),TQ(p),D.return(Promise.reject(p));c=HU();B=g.pN("TIME_CREATED_MS");if(!c){H=g.uR("getColdConfig");TQ(H);D.hD(2);break}return g.a(D,BjQ(c),3);case 3:if((T=D.K)&&T.timestamp>B)return X$(z,T.config),xRS(z,T.configData),qq(z,T.hashData),D.return(xc());case 2:VYf(z);if(!(c&&z.W&&z.coldHashData&&z.configData)){D.hD(4);break}return g.a(D,cqf(z.W, z.coldHashData,z.configData,c,B),4);case 4:return z.W?D.return(xc()):(b=new g.z6("Config not available in ytConfig"),TQ(b),D.return(Promise.reject(b)))}})}; TjE=function(z){if(!z.K||!z.W){if(!HU()){var p=g.uR("scheduleGetConfigs");TQ(p)}z.X||(z.X=g.sr.lY(function(){return g.L(function(c){switch(c.W){case 1:return g.Ox(c,2),g.a(c,XnE(z),4);case 4:g.RE(c,3);break;case 2:g.SQ(c);case 3:return g.Ox(c,5),g.a(c,EDW(z),7);case 7:g.RE(c,6);break;case 5:g.SQ(c);case 6:z.X&&(z.X=0),g.Ai(c)}})},100))}}; q6f=function(z,p,c){var B,H,T;return g.L(function(b){switch(b.W){case 1:if(!g.KN("start_client_gcf")){b.hD(0);break}c&&tc(z,c);z.XL(p);B=HU();if(!B){b.hD(3);break}if(c){b.hD(4);break}return g.a(b,HQx(B),5);case 5:H=b.K,c=(T=H)==null?void 0:T.config;case 4:return g.a(b,pnf(c,p,B),3);case 3:if(c)for(var D=c,t=g.m(z.V.W),X=t.next();!X.done;X=t.next())X=X.value,X(D);g.Ai(b)}})}; JqD=function(z,p,c){var B,H,T,b;return g.L(function(D){if(D.W==1){if(!g.KN("start_client_gcf"))return D.hD(0);qq(z,p);return(B=HU())?c?D.hD(4):g.a(D,BjQ(B),5):D.hD(0)}D.W!=4&&(H=D.K,c=(T=H)==null?void 0:T.config);if(!c)return D.hD(0);b=c.configData;return g.a(D,cqf(c,p,b,B),0)})}; MYN=function(){var z=bQv(),p=(0,g.y2)()-z.D;if(!(z.D!==0&&p0&&(p.request={internalExperimentFlags:c});mRu(z,void 0,p);h4W(void 0,p);P3V(void 0,p);AqV(z,void 0,p);OQE(void 0,p);g.KN("start_client_gcf")&&wnB(void 0,p);g.pN("DELEGATED_SESSION_ID")&& !g.KN("pageid_as_header_web")&&(p.user={onBehalfOfUser:g.pN("DELEGATED_SESSION_ID")});!g.KN("fill_delegate_context_in_gel_killswitch")&&(z=g.pN("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(p.user=Object.assign({},p.user,{serializedDelegationContext:z}));z=g.pN("INNERTUBE_CONTEXT");var B;if(g.KN("enable_persistent_device_token")&&(z==null?0:(B=z.client)==null?0:B.rolloutToken)){var H;p.client.rolloutToken=z==null?void 0:(H=z.client)==null?void 0:H.rolloutToken}B=Object;H=B.assign;z=p.client; c={};for(var T=g.m(Object.entries(Dz(g.pN("DEVICE","")))),b=T.next();!b.done;b=T.next()){var D=g.m(b.value);b=D.next().value;D=D.next().value;b==="cbrand"?c.deviceMake=D:b==="cmodel"?c.deviceModel=D:b==="cbr"?c.browserName=D:b==="cbrver"?c.browserVersion=D:b==="cos"?c.osName=D:b==="cosver"?c.osVersion=D:b==="cplatform"&&(c.platform=D)}p.client=H.call(B,z,c);return p}; mRu=function(z,p,c){z=z.BE;if(z==="WEB"||z==="MWEB"||z===1||z===2)if(p){c=X2(p,CQ,96)||new CQ;var B=Qh();B=Object.keys(R4v).indexOf(B);B=B===-1?null:B;B!==null&&wv(c,3,B);E7(p,CQ,96,c)}else c&&(c.client.mainAppWebInfo=(B=c.client.mainAppWebInfo)!=null?B:{},c.client.mainAppWebInfo.webDisplayMode=Qh())}; h4W=function(z,p){var c=g.n_("yt.embedded_player.embed_url");c&&(z?(p=X2(z,jY,7)||new jY,A5(p,4,c),E7(z,jY,7,p)):p&&(p.thirdParty={embedUrl:c}))}; P3V=function(z,p){var c;if(g.KN("web_log_memory_total_kbytes")&&((c=g.jQ.navigator)==null?0:c.deviceMemory)){var B;c=(B=g.jQ.navigator)==null?void 0:B.deviceMemory;z?n2(z,95,Py(c*1E6)):p&&(p.client.memoryTotalKbytes=""+c*1E6)}}; AqV=function(z,p,c){if(z.appInstallData)if(p){var B;c=(B=X2(p,ys,62))!=null?B:new ys;A5(c,6,z.appInstallData);E7(p,ys,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=z.appInstallData)}; OQE=function(z,p){var c=bIQ();c&&(z?wv(z,61,S6Q[c]):p&&(p.client.connectionType=c));g.KN("web_log_effective_connection_type")&&(c=D5Q())&&(z?wv(z,94,$Ri[c]):p&&(p.client.effectiveConnectionType=c))}; K6Y=function(z,p,c){c=c===void 0?{}:c;var B={};g.pN("EOM_VISITOR_DATA")?B={"X-Goog-EOM-Visitor-Id":g.pN("EOM_VISITOR_DATA")}:B={"X-Goog-Visitor-Id":c.visitorData||g.pN("VISITOR_DATA","")};if(p&&p.includes("www.youtube-nocookie.com"))return B;p=c.Y4||g.pN("AUTHORIZATION");p||(z?p="Bearer "+g.n_("gapi.auth.getToken")().access_token:(z=p4i().XM(hc),g.KN("pageid_as_header_web")||delete z["X-Goog-PageId"],B=Object.assign({},B,z)));p&&(B.Authorization=p);return B}; wnB=function(z,p){var c=MYN();if(c){var B=c.coldConfigData,H=c.coldHashData;c=c.hotHashData;if(z){var T;p=(T=X2(z,ys,62))!=null?T:new ys;B=A5(p,1,B);A5(B,3,H).XL(c);E7(z,ys,62,p)}else p&&(p.client.configInfo=p.client.configInfo||{},B&&(p.client.configInfo.coldConfigData=B),H&&(p.client.configInfo.coldHashData=H),c&&(p.client.configInfo.hotHashData=c))}}; PU=function(z,p){this.version=z;this.args=p}; Ac=function(z,p){this.topic=z;this.W=p}; uH=function(z,p){var c=Kq();c&&c.publish.call(c,z.toString(),z,p)}; ZQ_=function(z){var p=um_,c=Kq();if(!c)return 0;var B=c.subscribe(p.toString(),function(H,T){var b=g.n_("ytPubsub2Pubsub2SkipSubKey");b&&b==B||(b=function(){if(aX[B])try{if(T&&p instanceof Ac&&p!=H)try{var D=p.W,t=T;if(!t.args||!t.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!D.kx){var X=new D;D.kx=X.version}var x=D.kx}catch(E){}if(!x||t.version!=x)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{T=Reflect.construct(D, g.ce(t.args))}catch(E){throw E.message="yt.pubsub2.Data.deserialize(): "+E.message,E;}}catch(E){throw E.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+p.toString()+": "+E.message,E;}z.call(window,T)}catch(E){g.Hh(E)}},a_W[p.toString()]?g.V2()?g.sr.lY(b):g.O0(b,0):b())}); aX[B]=!0;ZJ[p.toString()]||(ZJ[p.toString()]=[]);ZJ[p.toString()].push(B);return B}; W6_=function(){var z=L6N,p=ZQ_(function(c){z.apply(void 0,arguments);dRW(p)}); return p}; dRW=function(z){var p=Kq();p&&(typeof z==="number"&&(z=[z]),g.E_(z,function(c){p.unsubscribeByKey(c);delete aX[c]}))}; Kq=function(){return g.n_("ytPubsub2Pubsub2Instance")}; Lq=function(z,p,c){c=c===void 0?{sampleRate:.1}:c;Math.random()I_x||b=nDW&&(F$++,g.KN("abandon_compression_after_N_slow_zips")?jG===g.uO("compression_disable_point")&&F$>Q1x&&(lH=!1):lH=!1);rqD(p);B.headers||(B.headers={});B.headers["Content-Encoding"]="gzip";B.postBody=z;B.postParams=void 0;H(c,B)}; URD=function(z){var p=p===void 0?!1:p;var c=c===void 0?!1:c;var B=(0,g.y2)(),H={startTime:B,ticks:{},infos:{}},T=p?g.n_("yt.logging.gzipForFetch",!1):!0;if(lH&&T){if(!z.body)return z;try{var b=c?z.body:typeof z.body==="string"?z.body:JSON.stringify(z.body);T=b;if(!c&&typeof b==="string"){var D=vDV(b);if(D!=null&&(D>I_x||D=nDW)if(F$++,g.KN("abandon_compression_after_N_slow_zips")||g.KN("abandon_compression_after_N_slow_zips_lr")){p=F$/jG;var X=Q1x/g.uO("compression_disable_point");jG>0&&jG%g.uO("compression_disable_point")===0&&p>=X&&(lH=!1)}else lH=!1;rqD(H)}}z.headers=Object.assign({},{"Content-Encoding":"gzip"},z.headers||{});z.body=T;return z}catch(x){return TQ(x),z}}else return z}; vDV=function(z){try{return(new Blob(z.split(""))).size}catch(p){return TQ(p),null}}; rqD=function(z){g.KN("gel_compression_csi_killswitch")||!g.KN("log_gel_compression_latency")&&!g.KN("log_gel_compression_latency_lr")||Lq("gel_compression",z,{sampleRate:.1})}; nq=function(z){var p=this;this.Bm=this.W=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.eZ=function(){}; this.now=Date.now;this.ZV=!1;this.Xg={Dct:function(x){p.sI=x}, nRH:function(){p.Yc()}, Ql:function(){p.Vi()}, N6:function(x){return g.L(function(E){return g.a(E,p.N6(x),0)})}, B3:function(x,E){return p.B3(x,E)}, NG:function(){p.NG()}}; var c;this.X$=(c=z.X$)!=null?c:100;var B;this.Tt=(B=z.Tt)!=null?B:1;var H;this.aM=(H=z.aM)!=null?H:2592E6;var T;this.sQ=(T=z.sQ)!=null?T:12E4;var b;this.jL=(b=z.jL)!=null?b:5E3;var D;this.sI=(D=z.sI)!=null?D:void 0;this.Dq=!!z.Dq;var t;this.J$=(t=z.J$)!=null?t:.1;var X;this.mW=(X=z.mW)!=null?X:10;z.handleError&&(this.handleError=z.handleError);z.eZ&&(this.eZ=z.eZ);z.ZV&&(this.ZV=z.ZV);z.Bm&&(this.Bm=z.Bm);this.JD=z.JD;this.f4=z.f4;this.Ev=z.Ev;this.Ov=z.Ov;this.sendFn=z.sendFn;this.g9=z.g9;this.ZG= z.ZG;oX(this)&&(!this.JD||this.JD("networkless_logging"))&&s1u(this)}; s1u=function(z){oX(z)&&!z.ZV&&(z.W=!0,z.Dq&&Math.random()<=z.J$&&z.Ev.RK(z.sI),z.NG(),z.Ov.Bn()&&z.Yc(),z.Ov.listen(z.g9,z.Yc.bind(z)),z.Ov.listen(z.ZG,z.Vi.bind(z)))}; GIE=function(z,p){if(!oX(z))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=p.options.onError?p.options.onError:function(){}; p.options.onError=function(H,T){var b,D,t,X;return g.L(function(x){switch(x.W){case 1:b=kI_(T);(D=gDf(T))&&z.JD&&z.JD("web_enable_error_204")&&z.handleError(Error("Request failed due to compression"),p.url,T);if(!(z.JD&&z.JD("nwl_consider_error_code")&&b||z.JD&&!z.JD("nwl_consider_error_code")&&z.potentialEsfErrorCounter<=z.mW)){x.hD(2);break}if(!z.Ov.bb){x.hD(3);break}return g.a(x,z.Ov.bb(),3);case 3:if(z.Ov.Bn()){x.hD(2);break}c(H,T);if(!z.JD||!z.JD("nwl_consider_error_code")||((t=p)==null?void 0: t.id)===void 0){x.hD(6);break}return g.a(x,z.Ev.qJ(p.id,z.sI,!1),6);case 6:return x.return();case 2:if(z.JD&&z.JD("nwl_consider_error_code")&&!b&&z.potentialEsfErrorCounter>z.mW)return x.return();z.potentialEsfErrorCounter++;if(((X=p)==null?void 0:X.id)===void 0){x.hD(8);break}return p.sendCount=400&&z<=599?!1:!0}; gDf=function(z){var p;z=z==null?void 0:(p=z.error)==null?void 0:p.code;return!(z!==400&&z!==415)}; Nj_=function(){if(r5)return r5();var z={};r5=g.bH("LogsDatabaseV2",{Pe:(z.LogsRequestsStore={Jm:2},z),shared:!1,upgrade:function(p,c,B){c(2)&&g.ej(p,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(B=B.objectStore("LogsRequestsStore"),B.W.indexNames.contains("newRequest")&&B.W.deleteIndex("newRequest"),g.oO(B,"newRequestV2",["status","interface","timestamp"]));c(7)&&lR(p,"sapisid");c(9)&&lR(p,"SWHealthLog")}, version:9});return r5()}; U3=function(z){return g.G6(Nj_(),z)}; zWV=function(z,p){var c,B,H,T;return g.L(function(b){if(b.W==1)return c={startTime:(0,g.y2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.a(b,U3(p),2);if(b.W!=3)return B=b.K,H=Object.assign({},z,{options:JSON.parse(JSON.stringify(z.options)),interface:g.pN("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.a(b,g.jj(B,"LogsRequestsStore",H),3);T=b.K;c.ticks.tc=(0,g.y2)();f_f(c);return b.return(T)})}; ph_=function(z,p){var c,B,H,T,b,D,t,X;return g.L(function(x){if(x.W==1)return c={startTime:(0,g.y2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.a(x,U3(p),2);if(x.W!=3)return B=x.K,H=g.pN("INNERTUBE_CONTEXT_CLIENT_NAME",0),T=[z,H,0],b=[z,H,(0,g.y2)()],D=IDBKeyRange.bound(T,b),t="prev",g.KN("use_fifo_for_networkless")&&(t="next"),X=void 0,g.a(x,g.vJ(B,["LogsRequestsStore"],{mode:"readwrite",xt:!0},function(E){return g.Um(E.objectStore("LogsRequestsStore").index("newRequestV2"), {query:D,direction:t},function(q){q.getValue()&&(X=q.getValue(),z==="NEW"&&(X.status="QUEUED",q.update(X)))})}),3); c.ticks.tc=(0,g.y2)();f_f(c);return x.return(X)})}; c6D=function(z,p){var c;return g.L(function(B){if(B.W==1)return g.a(B,U3(p),2);c=B.K;return B.return(g.vJ(c,["LogsRequestsStore"],{mode:"readwrite",xt:!0},function(H){var T=H.objectStore("LogsRequestsStore");return T.get(z).then(function(b){if(b)return b.status="QUEUED",g.IO(T,b).then(function(){return b})})}))})}; BSV=function(z,p,c,B){c=c===void 0?!0:c;var H;return g.L(function(T){if(T.W==1)return g.a(T,U3(p),2);H=T.K;return T.return(g.vJ(H,["LogsRequestsStore"],{mode:"readwrite",xt:!0},function(b){var D=b.objectStore("LogsRequestsStore");return D.get(z).then(function(t){return t?(t.status="NEW",c&&(t.sendCount+=1),B!==void 0&&(t.options.compress=B),g.IO(D,t).then(function(){return t})):g.Zg.resolve(void 0)})}))})}; HND=function(z,p){var c;return g.L(function(B){if(B.W==1)return g.a(B,U3(p),2);c=B.K;return B.return(c.delete("LogsRequestsStore",z))})}; iNf=function(z){var p,c;return g.L(function(B){if(B.W==1)return g.a(B,U3(z),2);p=B.K;c=(0,g.y2)()-2592E6;return g.a(B,g.vJ(p,["LogsRequestsStore"],{mode:"readwrite",xt:!0},function(H){return g.nt(H.objectStore("LogsRequestsStore"),{},function(T){if(T.getValue().timestamp<=c)return T.delete().then(function(){return g.Q2(T)})})}),0)})}; TSx=function(){g.L(function(z){return g.a(z,GVv("LogsDatabaseV2"),0)})}; f_f=function(z){g.KN("nwl_csi_killswitch")||Lq("networkless_performance",z,{sampleRate:1})}; V9i=function(z){return g.G6(bNQ(),z)}; D_x=function(z){var p,c;g.L(function(B){if(B.W==1)return g.a(B,V9i(z),2);p=B.K;c=(0,g.y2)()-2592E6;return g.a(B,g.vJ(p,["SWHealthLog"],{mode:"readwrite",xt:!0},function(H){return g.nt(H.objectStore("SWHealthLog"),{},function(T){if(T.getValue().timestamp<=c)return T.delete().then(function(){return g.Q2(T)})})}),0)})}; t9Y=function(z){var p;return g.L(function(c){if(c.W==1)return g.a(c,V9i(z),2);p=c.K;return g.a(c,p.clear("SWHealthLog"),0)})}; g.s3=function(z,p,c,B,H,T,b){H=H===void 0?"":H;T=T===void 0?!1:T;b=b===void 0?!1:b;if(z)if(c&&!g.GQ())TQ(new g.z6("Legacy referrer-scrubbed ping detected")),z&&XhS(z,void 0,{scrubReferrer:!0});else if(H)LN(z,p,"POST",H,B);else if(g.pN("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||B||b)LN(z,p,"GET","",B,void 0,T,b);else{b:{try{var D=new k$Y({url:z});if(D.L?typeof D.D!=="string"||D.D.length===0?0:{version:3,H7:D.D,Ml:WO(D.W,"act=1","ri=1",gVY(D))}:D.V&&{version:4,H7:WO(D.W,"dct=1","suid="+D.X,""),Ml:WO(D.W, "act=1","ri=1","suid="+D.X)}){var t=jB(g.oS(5,z));var X=!(!t||!t.endsWith("/aclk")||Ng(z,"ri")!=="1");break b}}catch(x){}X=!1}X?x_E(z)?(p&&p(),c=!0):c=!1:c=!1;c||XhS(z,p)}}; x_E=function(z,p){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(z,p===void 0?"":p))return!0}catch(c){}return!1}; XhS=function(z,p,c){c=c===void 0?{}:c;var B=new Image,H=""+E5Q++;kc[H]=B;B.onload=B.onerror=function(){p&&kc[H]&&p();delete kc[H]}; c.scrubReferrer&&(B.referrerPolicy="no-referrer");B.src=z}; q0Y=function(z){var p;return((p=document.featurePolicy)==null?0:p.allowedFeatures().includes("attribution-reporting"))?z+"&nis=6":z+"&nis=5"}; GG=function(){g5||(g5=new tM("yt.offline"));return g5}; J6u=function(z){if(g.KN("offline_error_handling")){var p=GG().get("errors",!0)||{};p[z.message]={name:z.name,stack:z.stack};z.level&&(p[z.message].level=z.level);GG().set("errors",p,2592E3,!0)}}; Nq=function(){this.W=new Map;this.K=!1}; fq=function(){if(!Nq.instance){var z=g.n_("yt.networkRequestMonitor.instance")||new Nq;g.oE("yt.networkRequestMonitor.instance",z);Nq.instance=z}return Nq.instance}; zy=function(){g.T1.call(this);var z=this;this.K=!1;this.W=$yS();this.W.listen("networkstatus-online",function(){if(z.K&&g.KN("offline_error_handling")){var p=GG().get("errors",!0);if(p){for(var c in p)if(p[c]){var B=new g.z6(c,"sent via offline_errors");B.name=p[c].name;B.stack=p[c].stack;B.level=p[c].level;g.Hh(B)}GG().set("errors",{},2592E3,!0)}}})}; M9Y=function(){if(!zy.instance){var z=g.n_("yt.networkStatusManager.instance")||new zy;g.oE("yt.networkStatusManager.instance",z);zy.instance=z}return zy.instance}; g.pU=function(z){z=z===void 0?{}:z;g.T1.call(this);var p=this;this.W=this.X=0;this.K=M9Y();var c=g.n_("yt.networkStatusManager.instance.listen").bind(this.K);c&&(z.rateLimit?(this.rateLimit=z.rateLimit,c("networkstatus-online",function(){Y0Q(p,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Y0Q(p,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){p.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){p.dispatchEvent("publicytnetworkstatus-offline")})))}; Y0Q=function(z,p){z.rateLimit?z.W?(g.sr.YE(z.X),z.X=g.sr.lY(function(){z.D!==p&&(z.dispatchEvent(p),z.D=p,z.W=(0,g.y2)())},z.rateLimit-((0,g.y2)()-z.W))):(z.dispatchEvent(p),z.D=p,z.W=(0,g.y2)()):z.dispatchEvent(p)}; Bd=function(){var z=nq.call;cd||(cd=new g.pU({fe$:!0,uh3:!0}));z.call(nq,this,{Ev:{RK:iNf,oZ:HND,Fi:ph_,OaH:c6D,qJ:BSV,set:zWV},Ov:cd,handleError:function(p,c,B){var H,T=B==null?void 0:(H=B.error)==null?void 0:H.code;if(T===400||T===415){var b;TQ(new g.z6(p.message,c,B==null?void 0:(b=B.error)==null?void 0:b.code),void 0,void 0,void 0,!0)}else g.Hh(p)}, eZ:TQ,sendFn:m_i,now:g.y2,FY:J6u,f4:g.bR(),g9:"publicytnetworkstatus-online",ZG:"publicytnetworkstatus-offline",Dq:!0,J$:.1,mW:g.uO("potential_esf_error_limit",10),JD:g.KN,ZV:!(g.cJ()&&g.nf(document.location.toString())!=="www.youtube-nocookie.com")});this.D=new g.OE;g.KN("networkless_immediately_drop_all_requests")&&TSx();NDS("LogsDatabaseV2")}; Hd=function(){var z=g.n_("yt.networklessRequestController.instance");z||(z=new Bd,g.oE("yt.networklessRequestController.instance",z),g.KN("networkless_logging")&&g.iH().then(function(p){z.sI=p;s1u(z);z.D.resolve();z.Dq&&Math.random()<=z.J$&&z.sI&&D_x(z.sI);g.KN("networkless_immediately_drop_sw_health_store")&&hWY(z)})); return z}; hWY=function(z){var p;g.L(function(c){if(!z.sI)throw p=g.uR("clearSWHealthLogsDb"),p;return c.return(t9Y(z.sI).catch(function(B){z.handleError(B)}))})}; m_i=function(z,p,c,B){B=B===void 0?!1:B;p=g.KN("web_fp_via_jspb")?Object.assign({},p):p;g.KN("use_cfr_monitor")&&PO_(z,p);if(g.KN("use_request_time_ms_header"))p.headers&&q_(z)&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.y2)())));else{var H;if((H=p.postParams)==null?0:H.requestTimeMs)p.postParams.requestTimeMs=Math.round((0,g.y2)())}c&&Object.keys(p).length===0?g.s3(z):p.compress?p.postBody?(typeof p.postBody!=="string"&&(p.postBody=JSON.stringify(p.postBody)),IX(z,p.postBody, p,g.dS,B)):IX(z,JSON.stringify(p.postParams),p,Wh,B):g.dS(z,p)}; iI=function(z,p){g.KN("use_event_time_ms_header")&&q_(z)&&(p.headers||(p.headers={}),p.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.y2)())));return p}; PO_=function(z,p){var c=p.onError?p.onError:function(){}; p.onError=function(H,T){fq().requestComplete(z,!1);c(H,T)}; var B=p.onSuccess?p.onSuccess:function(){}; p.onSuccess=function(H,T){fq().requestComplete(z,!0);B(H,T)}}; g.Ty=function(z){this.config_=null;z?this.config_=z:Y6B()&&(this.config_=g.Yc())}; g.bI=function(z,p,c,B){function H(X){try{if((X===void 0?0:X)&&B.retry&&!B.networklessOptions.bypassNetworkless)T.method="POST",B.networklessOptions.writeThenSend?Hd().writeThenSend(t,T):Hd().sendAndWrite(t,T);else if(B.compress){var x=!B.networklessOptions.writeThenSend;if(T.postBody){var E=T.postBody;typeof E!=="string"&&(E=JSON.stringify(T.postBody));IX(t,E,T,g.dS,x)}else IX(t,JSON.stringify(T.postParams),T,Wh,x)}else g.KN("web_all_payloads_via_jspb")?g.dS(t,T):Wh(t,T)}catch(q){if(q.name==="InvalidAccessError")TQ(Error("An extension is blocking network request.")); else throw q;}} !g.pN("VISITOR_DATA")&&p!=="visitor_id"&&Math.random()<.01&&TQ(new g.z6("Missing VISITOR_DATA when sending innertube request.",p,c,B));if(!z.isReady())throw z=new g.z6("innertube xhrclient not ready",p,c,B),g.Hh(z),z;var T={headers:B.headers||{},method:"POST",postParams:c,postBody:B.postBody,postBodyFormat:B.postBodyFormat||"JSON",onTimeout:function(){B.onTimeout()}, onFetchTimeout:B.onTimeout,onSuccess:function(X,x){if(B.onSuccess)B.onSuccess(x)}, onFetchSuccess:function(X){if(B.onSuccess)B.onSuccess(X)}, onError:function(X,x){if(B.onError)B.onError(x)}, onFetchError:function(X){if(B.onError)B.onError(X)}, timeout:B.timeout,withCredentials:!0,compress:B.compress};T.headers["Content-Type"]||(T.headers["Content-Type"]="application/json");c="";var b=z.config_.TH;b&&(c=b);b=z.config_.h0||!1;var D=K6Y(b,c,B);Object.assign(T.headers,D);T.headers.Authorization&&!c&&b&&(T.headers["x-origin"]=window.location.origin);var t=x5(""+c+("/youtubei/"+z.config_.innertubeApiVersion+"/"+p),{alt:"json"});g.n_("ytNetworklessLoggingInitializationOptions")&&A6W.isNwlInitialized?nff().then(function(X){H(X)}):H(!1)}; g.xg=function(z,p,c){var B=g.V0();if(B&&p){var H=B.subscribe(z,function(){function T(){Du[H]&&p.apply&&typeof p.apply=="function"&&p.apply(c||window,b)} var b=arguments;try{g.tp[z]?T():g.O0(T,0)}catch(D){g.Hh(D)}},c); Du[H]=!0;Xg[z]||(Xg[z]=[]);Xg[z].push(H);return H}return 0}; ONQ=function(z){var p=g.xg("LOGGED_IN",function(c){z.apply(void 0,arguments);g.Ej(p)})}; g.Ej=function(z){var p=g.V0();p&&(typeof z==="number"?z=[z]:typeof z==="string"&&(z=[parseInt(z,10)]),g.E_(z,function(c){p.unsubscribeByKey(c);delete Du[c]}))}; g.qA=function(z,p){var c=g.V0();return c?c.publish.apply(c,arguments):!1}; RWu=function(z){var p=g.V0();if(p)if(p.clear(z),z)whQ(z);else for(var c in Xg)whQ(c)}; g.V0=function(){return g.jQ.ytPubsubPubsubInstance}; whQ=function(z){Xg[z]&&(z=Xg[z],g.E_(z,function(p){Du[p]&&delete Du[p]}),z.length=0)}; g.Jp=function(z,p,c){S0x(z,p,c===void 0?null:c)}; S0x=function(z,p,c){c=c===void 0?null:c;var B=$_N(z),H=document.getElementById(B),T=H&&vvi(H),b=H&&!T;T?p&&p():(p&&(T=g.xg(B,p),p=""+g.GY(p),KIV[p]=T),b||(H=uLB(z,B,function(){vvi(H)||(lq_(H),g.qA(B),g.O0(function(){RWu(B)},0))},c)))}; uLB=function(z,p,c,B){B=B===void 0?null:B;var H=g.i4("SCRIPT");H.id=p;H.onload=function(){c&&setTimeout(c,0)}; H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}}; B&&H.setAttribute("nonce",B);g.kC(H,g.LQ(z));z=document.getElementsByTagName("head")[0]||document.body;z.insertBefore(H,z.firstChild);return H}; $_N=function(z){var p=document.createElement("a");g.IQ(p,z);z=p.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+iU(z)}; MA=function(z,p){if(z===p)z=!0;else if(Array.isArray(z)&&Array.isArray(p))z=g.Xe(z,p,MA);else if(g.kB(z)&&g.kB(p))a:if(g.Z$(z).length!=g.Z$(p).length)z=!1;else{for(var c in z)if(!MA(z[c],p[c])){z=!1;break a}z=!0}else z=!1;return z}; wf=function(z){var p=g.L_.apply(1,arguments);if(!Yg(z)||p.some(function(B){return!Yg(B)}))throw Error("Only objects may be merged."); p=g.m(p);for(var c=p.next();!c.done;c=p.next())Oj(z,c.value)}; Oj=function(z,p){for(var c in p)if(Yg(p[c])){if(c in z&&!Yg(z[c]))throw Error("Cannot merge an object into a non-object.");c in z||(z[c]={});Oj(z[c],p[c])}else if(RU(p[c])){if(c in z&&!RU(z[c]))throw Error("Cannot merge an array into a non-array.");c in z||(z[c]=[]);azE(z[c],p[c])}else z[c]=p[c];return z}; azE=function(z,p){p=g.m(p);for(var c=p.next();!c.done;c=p.next())c=c.value,Yg(c)?z.push(Oj({},c)):RU(c)?z.push(azE([],c)):z.push(c);return z}; Yg=function(z){return typeof z==="object"&&!Array.isArray(z)}; RU=function(z){return typeof z==="object"&&Array.isArray(z)}; Sp=function(z){g.e.call(this);this.K=z}; $g=function(z){Sp.call(this,!0);this.W=z}; KU=function(z,p){g.e.call(this);var c=this;this.D=[];this.G=!1;this.K=0;this.L=this.V=this.X=!1;this.MZ=null;var B=(0,g.Nv)(z,p);this.W=new g.B4(function(){return B(c.MZ)},300); g.l(this,this.W);this.U=this.S=Infinity}; ZNQ=function(z,p){if(!p)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+p);if(z.K.has(p))return z.K.get(p);if(!z.W.has(p)){if(B)return;throw Error("No provider for: "+p);}B=z.W.get(p);c.push(p);if(B.k$!==void 0)var H=B.k$;else if(B.ZDi)H=B[IU]?y6D(z,B[IU],c):[],H=B.ZDi.apply(B,g.A(H));else if(B.UL){H=B.UL;var T=H[IU]?y6D(z,H[IU],c):[];H=new (Function.prototype.bind.apply(H,[null].concat(g.A(T))))}else throw Error("Could not resolve providers for: "+p);c.pop();B.f9D||z.K.set(p,H); return H}; y6D=function(z,p,c){return p?p.map(function(B){return B instanceof ep?jp(z,B.key,c,!0):jp(z,B,c)}):[]}; oU=function(){Fg||(Fg=new WIN);return Fg}; Q0=function(){var z,p;return"h5vcc"in nU&&((z=nU.h5vcc.traceEvent)==null?0:z.traceBegin)&&((p=nU.h5vcc.traceEvent)==null?0:p.traceEnd)?1:"performance"in nU&&nU.performance.mark&&nU.performance.measure?2:0}; rf=function(z){var p=Q0();switch(p){case 1:nU.h5vcc.traceEvent.traceBegin("YTLR",z);break;case 2:nU.performance.mark(z+"-start");break;case 0:break;default:iN(p,"unknown trace type")}}; COW=function(z){var p=Q0();switch(p){case 1:nU.h5vcc.traceEvent.traceEnd("YTLR",z);break;case 2:p=z+"-start";var c=z+"-end";nU.performance.mark(c);nU.performance.measure(z,p,c);break;case 0:break;default:iN(p,"unknown trace type")}}; eWx=function(z){var p,c;(c=(p=window).onerror)==null||c.call(p,z.message,"",0,0,z)}; lzY=function(z){var p=this;var c=c===void 0?0:c;var B=B===void 0?g.bR():B;this.D=c;this.scheduler=B;this.K=new g.OE;this.W=z;for(z={Bg:0};z.Bg=1E3?H():B>=z?MM||(MM=YP(function(){H();MM=void 0},0)):T-D>=10&&(pLW(p,c.tier),b.X=T)}; g5Y=function(z,p){if(z.endpoint==="log_event"){g.KN("more_accurate_gel_parser")&&b$().storePayload({isJspb:!1},z.payload);DU(z);var c=tg(z),B=new Map;B.set(c,[z.payload]);var H=U_f(z.payload)||"";p&&(qM=new p);return new g.O9(function(T,b){qM&&qM.isReady()?crY(B,qM,T,b,{bypassNetworkless:!0},!0,xP(H)):T()})}}; fzE=function(z,p,c){if(p.endpoint==="log_event"){DU(void 0,p);var B=tg(p,!0),H=new Map;H.set(B,[Wy(p.payload)]);c&&(qM=new c);return new g.O9(function(T){qM&&qM.isReady()?B3f(H,qM,T,{bypassNetworkless:!0},!0,xP(z)):T()})}}; tg=function(z,p){var c="";if(z.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(z.cttAuthInfo){if(p===void 0?0:p){p=z.cttAuthInfo.token;c=z.cttAuthInfo;var B=new NR;c.videoId?B.setVideoId(c.videoId):c.playlistId&&HQ(B,2,mc,OD(c.playlistId));hg[p]=B}else p=z.cttAuthInfo,c={},p.videoId?c.videoId=p.videoId:p.playlistId&&(c.playlistId=p.playlistId),Pu[z.cttAuthInfo.token]=c;c=z.cttAuthInfo.token}return c}; EF=function(z,p,c){z=z===void 0?{}:z;p=p===void 0?!1:p;new g.O9(function(B,H){var T=Jg(p,c),b=T.D;T.D=!1;Ag(T.K);Ag(T.W);T.W=0;qM&&qM.isReady()?c===void 0&&g.KN("enable_web_tiered_gel")?HG_(B,H,z,p,300,b):HG_(B,H,z,p,c,b):(pLW(p,c),B())})}; HG_=function(z,p,c,B,H,T){var b=qM;c=c===void 0?{}:c;B=B===void 0?!1:B;H=H===void 0?200:H;T=T===void 0?!1:T;var D=new Map,t=new Map,X={isJspb:B,cttAuthInfo:void 0,tier:H},x={isJspb:B,cttAuthInfo:void 0};if(B){p=g.m(Object.keys(Xr));for(H=p.next();!H.done;H=p.next())H=H.value,t=g.KN("enable_web_tiered_gel")?b$().smartExtractMatchingEntries({keys:[X,x],sizeLimit:1E3}):b$().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),t.length>0&&D.set(H,t),(g.KN("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.KN("web_fp_via_jspb_and_json"))&& delete Xr[H];B3f(D,b,z,c,!1,T)}else{D=g.m(Object.keys(Xr));for(X=D.next();!X.done;X=D.next())X=X.value,x=g.KN("enable_web_tiered_gel")?b$().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:X,tier:H},{isJspb:!1,cttAuthInfo:X}],sizeLimit:1E3}):b$().extractMatchingEntries({isJspb:!1,cttAuthInfo:X}),x.length>0&&t.set(X,x),(g.KN("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.KN("web_fp_via_jspb_and_json"))&&delete Xr[X];crY(t,b,z,p,c,!1,T)}}; pLW=function(z,p){function c(){EF({writeThenSend:!0},z,p)} z=z===void 0?!1:z;p=p===void 0?200:p;var B=Jg(z,p),H=B===iGW||B===T3Y?5E3:bGE;g.KN("web_gel_timeout_cap")&&!B.W&&(H=YP(function(){c()},H),B.W=H); Ag(B.K);H=g.pN("LOGGING_BATCH_TIMEOUT",g.uO("web_gel_debounce_ms",1E4));g.KN("shorten_initial_gel_batch_timeout")&&OF&&(H=Vaf);H=YP(function(){g.uO("gel_min_batch_size")>0?b$().getSequenceCount({cttAuthInfo:void 0,isJspb:z,tier:p})>=DDD&&c():c()},H); B.K=H}; crY=function(z,p,c,B,H,T,b){H=H===void 0?{}:H;var D=Math.round((0,g.y2)()),t=z.size,X=taE(b);z=g.m(z);var x=z.next();for(b={};!x.done;b={ih:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,r9:void 0,s2:void 0},x=z.next()){var E=g.m(x.value);x=E.next().value;E=E.next().value;b.batchRequest=g.vj({context:g.m2(p.config_||g.Yc())});if(!g.sx(E)&&!g.KN("throw_err_when_logevent_malformed_killswitch")){B();break}b.batchRequest.events=E;(E=Pu[x])&&XLS(b.batchRequest,x,E);delete Pu[x];b.dangerousLogToVisitorSession= x==="visitorOnlyApprovedKey";xDD(b.batchRequest,D,b.dangerousLogToVisitorSession);E4Y(H);b.r9=function(q){g.KN("start_client_gcf")&&g.sr.lY(function(){return g.L(function(J){return g.a(J,qA_(q),0)})}); t--;t||c()}; b.ih=0;b.s2=function(q){return function(){q.ih++;if(H.bypassNetworkless&&q.ih===1)try{g.bI(p,X,q.batchRequest,wH({writeThenSend:!0},q.dangerousLogToVisitorSession,q.r9,q.s2,T)),OF=!1}catch(J){g.Hh(J),B()}t--;t||c()}}(b); try{g.bI(p,X,b.batchRequest,wH(H,b.dangerousLogToVisitorSession,b.r9,b.s2,T)),OF=!1}catch(q){g.Hh(q),B()}}}; B3f=function(z,p,c,B,H,T){B=B===void 0?{}:B;var b=Math.round((0,g.y2)()),D={value:z.size},t=new Map([].concat(g.A(z)));t=g.m(t);for(var X=t.next();!X.done;X=t.next()){var x=g.m(X.value).next().value,E=z.get(x);X=new nON;var q=p.config_||g.Yc(),J=new nQ,M=new eY;A5(M,1,q.Of);A5(M,2,q.iJ);wv(M,16,q.jQ);A5(M,17,q.innertubeContextClientVersion);if(q.I7){var P=q.I7,O=new ys;P.coldConfigData&&A5(O,1,P.coldConfigData);P.appInstallData&&A5(O,6,P.appInstallData);P.coldHashData&&A5(O,3,P.coldHashData);P.hotHashData&& O.XL(P.hotHashData);E7(M,ys,62,O)}(P=g.jQ.devicePixelRatio)&&P!=1&&n2(M,65,Tu(P));P=af();P!==""&&A5(M,54,P);P=Zz();if(P.length>0){O=new I1;for(var R=0;R65535&&(z=1);zQ("BATCH_CLIENT_COUNTER",z);return z}; XLS=function(z,p,c){if(c.videoId)var B="VIDEO";else if(c.playlistId)B="PLAYLIST";else return;z.credentialTransferTokenTargetId=c;z.context=z.context||{};z.context.user=z.context.user||{};z.context.user.credentialTransferTokens=[{token:p,scope:B}]}; DU=function(z,p){if(!g.n_("yt.logging.transport.enableScrapingForTest")){var c=$5("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")$P=[],g.oE("yt.logging.transport.enableScrapingForTest",!0),g.oE("yt.logging.transport.scrapedPayloadsForTesting",$P),g.oE("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.oE("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.oE("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.n_("yt.logging.transport.scrapedPayloadsForTesting");var B=g.n_("yt.logging.transport.payloadToScrape");p&&(p=p.payload,(p=g.n_("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(p)())&&c.push(p));p=g.n_("yt.logging.transport.scrapeClientEvent");if(B&&B.length>=1)for(var H=0;H0&&CLv(z,p,T)}else CLv(z,p)}; CLv=function(z,p,c){z=eYv(z);p=p?g.kA(p):"";c=c||5;Vh()&&g.of(z,p,c)}; eYv=function(z){for(var p=g.m(lA_),c=p.next();!c.done;c=p.next())z=ff(z,c.value);return"ST-"+iU(z).toString(36)}; v4f=function(z){if(z.name==="JavaException")return!0;z=z.stack;return z.includes("chrome://")||z.includes("chrome-extension://")||z.includes("moz-extension://")}; IAY=function(){this.KI=[];this.wK=[]}; l$=function(){if(!eb){var z=eb=new IAY;z.wK.length=0;z.KI.length=0;jwW(z,Fof)}return eb}; jwW=function(z,p){p.wK&&z.wK.push.apply(z.wK,p.wK);p.KI&&z.KI.push.apply(z.KI,p.KI)}; o4S=function(z){function p(){return z.charCodeAt(B++)} var c=z.length,B=0;do{var H=vu(p);if(H===Infinity)break;var T=H>>3;switch(H&7){case 0:H=vu(p);if(T===2)return H;break;case 1:if(T===2)return;B+=8;break;case 2:H=vu(p);if(T===2)return z.substr(B,H);B+=H;break;case 5:if(T===2)return;B+=4;break;default:return}}while(B500));B++);B=H}else if(typeof z==="object")for(H in z){if(z[H]){var T=H;var b=z[H],D=p,t=c;T=typeof b!=="string"||T!=="clickTrackingParams"&&T!=="trackingParams"?0:(b=o4S(atob(b.replace(/-/g,"+").replace(/_/g,"/"))))?Ic(T+".ve",b,D,t):0;B+=T;B+=Ic(H,z[H],p,c);if(B>500)break}}else c[p]=jb(z),B+=c[p].length;else c[p]=jb(z),B+=c[p].length;return B}; Ic=function(z,p,c,B){c+="."+z;z=jb(p);B[c]=z;return c.length+z.length}; jb=function(z){try{return(typeof z==="string"?z:String(JSON.stringify(z))).substr(0,500)}catch(p){return"unable to serialize "+typeof z+" ("+p.message+")"}}; JM=function(z){g.Fr(z)}; g.oc=function(z){g.Fr(z,"WARNING")}; g.Fr=function(z,p){var c=c===void 0?{}:c;c.name=g.pN("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.pN("INNERTUBE_CONTEXT_CLIENT_VERSION");p=p===void 0?"ERROR":p;var B=!1;p=p===void 0?"ERROR":p;B=B===void 0?!1:B;if(z){z.hasOwnProperty("level")&&z.level&&(p=z.level);if(g.KN("console_log_js_exceptions")){var H=[];H.push("Name: "+z.name);H.push("Message: "+z.message);z.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(z.params));z.hasOwnProperty("args")&&H.push("Error args: "+JSON.stringify(z.args)); H.push("File name: "+z.fileName);H.push("Stacktrace: "+z.stack);window.console.log(H.join("\n"),z)}if(!(Qwv>=5)){H=[];for(var T=g.m(rrD),b=T.next();!b.done;b=T.next()){b=b.value;try{b()&&H.push(b())}catch(P){}}H=[].concat(g.A(UDB),g.A(H));var D=O2_(z);T=D.message||"Unknown Error";b=D.name||"UnknownError";var t=D.stack||z.K||"Not available";if(t.startsWith(b+": "+T)){var X=t.split("\n");X.shift();t=X.join("\n")}X=D.lineNumber||"Not available";D=D.fileName||"Not available";var x=0;if(z.hasOwnProperty("args")&& z.args&&z.args.length)for(var E=0;E=500);E++);else if(z.hasOwnProperty("params")&&z.params){var q=z.params;if(typeof z.params==="object")for(E in q){if(q[E]){var J="params."+E,M=jb(q[E]);c[J]=M;x+=J.length+M.length;if(x>500)break}}else c.params=jb(q)}if(H.length)for(E=0;E=500);E++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:T,name:b,lineNumber:X, fileName:D,stack:t,params:c,sampleWeight:1};E=Number(z.columnNumber);isNaN(E)||(c.lineNumber=c.lineNumber+":"+E);if(z.level==="IGNORED")z=0;else a:{z=l$();E=g.m(z.wK);for(H=E.next();!H.done;H=E.next())if(H=H.value,c.message&&c.message.match(H.dK)){z=H.weight;break a}z=g.m(z.KI);for(E=z.next();!E.done;E=z.next())if(E=E.value,E.callback(c)){z=E.weight;break a}z=1}c.sampleWeight=z;z=g.m(swv);for(E=z.next();!E.done;E=z.next())if(E=E.value,E.lT[c.name])for(T=g.m(E.lT[c.name]),H=T.next();!H.done;H=T.next())if(b= H.value,H=c.message.match(b.WV)){c.params["params.error.original"]=H[0];T=b.groups;b={};for(X=0;X1E3&&g.oc(new g.z6("IL Attach cache exceeded limit"))}D= c_(c,p);Gt.has(D)?B_(c,p):fh.set(D,!0)}}B=B.filter(function(x){x.csn!==p?(x.csn=p,x=!0):x=!1;return x}); c={csn:p,parentVe:c.getAsJson(),childVes:g.d7(B,function(x){return x.getAsJson()})}; p==="UNDEFINED_CSN"?H_("visualElementAttached",T,c):z?u$("visualElementAttached",c,z,T):g.MG("visualElementAttached",c,T)}; DGS=function(z,p,c,B,H){iZ(c,p);B=gH({cttAuthInfo:yy(p)||void 0},p);c={csn:p,ve:c.getAsJson(),eventType:1};H&&(c.clientData=H);p==="UNDEFINED_CSN"?H_("visualElementShown",B,c):z?u$("visualElementShown",c,z,B):g.MG("visualElementShown",c,B)}; tjQ=function(z,p,c,B){var H=(B=B===void 0?!1:B)?16:8;B=gH({cttAuthInfo:yy(p)||void 0,endOfSequence:B},p);c={csn:p,ve:c.getAsJson(),eventType:H};p==="UNDEFINED_CSN"?H_("visualElementHidden",B,c):z?u$("visualElementHidden",c,z,B):g.MG("visualElementHidden",c,B)}; XJi=function(z,p,c,B,H){Tr(z,p,c,void 0,B,H)}; Tr=function(z,p,c,B,H){iZ(c,p);B=B||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var T=gH({cttAuthInfo:yy(p)||void 0},p);c={csn:p,ve:c.getAsJson(),gestureType:B};H&&(c.clientData=H);p==="UNDEFINED_CSN"?H_("visualElementGestured",T,c):z?u$("visualElementGestured",c,z,T):g.MG("visualElementGestured",c,T)}; xGW=function(){var z=aU(16);for(var p=[],c=0;c0&&c.push(g.i4("BR"));c.push(g.T5(T))}):c.push(g.T5(B))}return c}; hQ=function(z,p,c,B){if(c==="child"){g.Vm(p);var H;B===void 0?H=void 0:H=!Array.isArray(B)||B&&typeof B.j==="string"?[B]:B;c=qmW(z,H);c=g.m(c);for(z=c.next();!z.done;z=c.next())p.appendChild(z.value)}else c==="style"?g.mm(p,"cssText",B?B:""):B===null||B===void 0?p.removeAttribute(c):(z=B.toString(),c==="href"&&(z=g.y5(g.lv(z))),p.setAttribute(c,z))}; g.Q=function(z){g.Yj.call(this,z);this.EH=!0;this.L=!1;this.listeners=[]}; g.P_=function(z){g.Q.call(this,z);this.i8=new g.JQ;g.l(this,this.i8)}; AQ=function(z,p,c,B,H,T,b){b=b===void 0?null:b;g.P_.call(this,p);this.api=z;this.macros={};this.componentType=c;this.G=this.S=null;this.UH=b;this.layoutId=B;this.interactionLoggingClientData=H;this.Sp=T;this.NZ=null;this.o0=new $g(this.element);g.l(this,this.o0);this.sH=this.Z(this.element,"click",this.onClick);this.T$=[];this.tD=new KU(this.onClick,this);g.l(this,this.tD);this.WM=!1;this.YA=this.MZ=null}; OL=function(z,p){z=z===void 0?null:z;p=p===void 0?null:p;if(z==null)return g.oc(Error("Got null or undefined adText object")),"";var c=g.Hj(z.text);if(!z.isTemplated)return c;if(p==null)return g.oc(Error("Missing required parameters for a templated message")),c;z=g.m(Object.entries(p));for(p=z.next();!p.done;p=z.next()){var B=g.m(p.value);p=B.next().value;B=B.next().value;c=c.replace("{"+p+"}",B)}return c}; JMB=function(z){z=z===void 0?null:z;return z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].url!=null)?g.Hj(z.thumbnails[0].url):""}; MjD=function(z){z=z===void 0?null:z;return z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].width!=null&&z.thumbnails[0].height!=null)?new g.Ao(z.thumbnails[0].width||0,z.thumbnails[0].height||0):new g.Ao(0,0)}; g.wJ=function(z){if(z.simpleText)return z.simpleText;if(z.runs){var p=[];z=g.m(z.runs);for(var c=z.next();!c.done;c=z.next())c=c.value,c.text&&p.push(c.text);return p.join("")}return""}; g.Rb=function(z){if(z.simpleText)return z=document.createTextNode(z.simpleText),z;var p=[];if(z.runs)for(var c=0;c1){for(var p=[z[0]],c=1;c0&&(this.W=new g.B4(this.uM,p,this),g.l(this,this.W));this.L=new g.B4(this.uM,c,this);g.l(this,this.L);this.S=WmS(this.K,H,1,B);g.l(this,this.S);this.G=WmS(this.K,0,B,1);g.l(this,this.G);this.X=new WL;g.l(this,this.X)}; Jb=function(z,p,c){this.K=z;this.isAsync=p;this.W=c}; zSB=function(z){switch(z){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:iN(z,"unknown result type")}}; pUW=function(z,p){var c=1;z.isTrusted===!1&&(c=0);zQ("ISDSTAT",c);M6(c,"i.s_",{triggerContext:"sk",metadata:p});return c}; ccD=function(z,p){var c=[];p?p.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):p.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");M6(0,"a.s_",{metadata:z,states:c});zQ("ASDSTAT",0)}; M6=function(z,p,c){p=B5S[p];var B,H,T={detected:z===0,source:""+p.K+((B=c.triggerContext)!=null?B:"")+((H=c.HD)!=null?H:""),detectionStates:c.states,durationMs:c.bu};c.metadata&&(T.contentCpn=c.metadata.contentCpn,T.adCpn=c.metadata.adCpn);g.MG("biscottiBasedDetection",T);p.W!==void 0&&(c=Number(g.pN("CATSTAT",0)),p.W!==void 0?(p=p.W,z=zSB(z),z=c&~(3<0}; RG=function(z,p,c,B,H,T){T3.call(this,z,{j:"div",B:"ytp-ad-skip-button-slot"},"skip-button",p,c,B,H);var b=this;this.Dt=null;this.Ra=!1;this.OH=T;this.V=this.api.N().experiments.JD("enable_modern_skip_button_on_web");this.Zt=!1;this.D=new g.P_({j:"span",LH:["ytp-ad-skip-button-container"]});this.V&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");this.api.Y("enable_ad_pod_index_autohide")&&this.D.element.classList.add("ytp-ad-skip-button-container--clean-player");g.l(this,this.D); this.D.Ia(this.element);this.K=this.X=null;this.CH=new g.Da(this.D,500,!1,100,function(){return b.hide()}); g.l(this,this.CH);this.fH=new q6(this.D.element,15E3,5E3,.5,.5,this.V);g.l(this,this.fH);this.hide()}; iq_=function(z){z=z.Dt&&z.Dt.adRendererCommands;return(z&&z.clickCommand&&g.I(z.clickCommand,g.ST)&&g.I(z.clickCommand,g.ST).commands||[]).some(function(p){return p.adLifecycleCommand?HqY(p.adLifecycleCommand):!1})}; HqY=function(z){return z.action==="END_LINEAR_AD"||z.action==="END_LINEAR_AD_PLACEMENT"}; $Q=function(z,p,c,B,H,T){T3.call(this,z,{j:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",p,c,B,H);this.Dt=T;this.X=!1;this.V=0;this.D=this.K=null;this.hide()}; T5W=function(z,p){z.X||(z.X=!0,z.K&&(p?z.K.Dt.hide():z.K.hide()),p?(z=z.D,z.CH.show(),z.show()):z.D.show())}; KJ=function(z,p,c,B){j_.call(this,z,p,c,B,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; uT=function(z,p,c,B,H,T,b){T=T===void 0?!1:T;b=b===void 0?!1:b;AQ.call(this,z,{j:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",p,c,B);this.D=H;this.W=this.jp("ytp-ad-simple-ad-badge");(this.K=T)&&this.W.classList.add("ytp-ad-simple-ad-badge--clean-player");b&&this.W.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; aG=function(z,p,c,B,H){H=H===void 0?!1:H;qK.call(this,"player-overlay",z,{},p,B);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=B;this.mL=H}; Za=function(z,p){g.JQ.call(this);this.api=z;this.durationMs=p;this.W=null;this.Dz=new WL(this);g.l(this,this.Dz);this.K=bqQ;this.Dz.Z(this.api,"presentingplayerstatechange",this.TD);this.W=this.Dz.Z(this.api,"onAdPlaybackProgress",this.xr)}; LJ=function(z){g.JQ.call(this);this.W=!1;this.VT=0;this.Dz=new WL(this);g.l(this,this.Dz);this.durationMs=z;this.y8=new g.aS(100);g.l(this,this.y8);this.Dz.Z(this.y8,"tick",this.xr);this.K={seekableStart:0,seekableEnd:z/1E3,current:0};this.start()}; g.dn=function(z,p){var c=Math.abs(Math.floor(z)),B=Math.floor(c/86400),H=Math.floor(c%86400/3600),T=Math.floor(c%3600/60);c=Math.floor(c%60);if(p){p="";B>0&&(p+=" "+B+" Days");if(B>0||H>0)p+=" "+H+" Hours";p+=" "+T+" Minutes";p+=" "+c+" Seconds";B=p.trim()}else{p="";B>0&&(p+=B+":",H<10&&(p+="0"));if(B>0||H>0)p+=H+":",T<10&&(p+="0");p+=T+":";c<10&&(p+="0");B=p+c}return z>=0?B:"-"+B}; g.W7=function(z){return(!("button"in z)||typeof z.button!=="number"||z.button===0)&&!("shiftKey"in z&&z.shiftKey)&&!("altKey"in z&&z.altKey)&&!("metaKey"in z&&z.metaKey)&&!("ctrlKey"in z&&z.ctrlKey)}; yQ=function(z,p,c,B,H,T,b){T3.call(this,z,{j:"span",B:b?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",p,c,B,H);this.videoAdDurationSeconds=T;this.K=null;this.api.Y("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");b&&this.api.N().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.Y("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), zG&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; CJ=function(z,p,c,B){H7.call(this,z,p,c,B,"ytp-video-ad-top-bar-title","ad-title");z.Y("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; eT=function(z){this.content=z.content;if(z.commandRuns){z=g.m(z.commandRuns);for(var p=z.next();!p.done;p=z.next())p=p.value,this.loggingDirectives=g.I(p,VGY),p.onTap&&(this.interaction={onTap:p.onTap})}}; lT=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",p,c,B);this.hide()}; v7=function(z,p,c,B,H){AQ.call(this,z,{j:"span",B:H?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",p,c,B);this.K=H;this.adBadgeText=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);this.adBadgeText.Ia(this.element);g.l(this,this.adBadgeText);H?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),zG&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; IG=function(z,p,c,B){AQ.call(this,z,{j:"span",B:"ytp-ad-pod-index"},"ad-pod-index",p,c,B);this.api.N().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),zG&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; jT=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",p,c,B);this.hide()}; FA=function(z,p){this.K=z;this.W=p}; oG=function(z,p,c){if(!z.getLength())return c!=null?c:Infinity;z=(p-z.K)/z.getLength();return g.MQ(z,0,1)}; nJ=function(z,p,c,B){B=B===void 0?!1:B;g.P_.call(this,{j:"div",B:"ytp-ad-persistent-progress-bar-container",J:[{j:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=z;this.K=p;this.D=c;B&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.l(this,this.K);this.progressBar=this.jp("ytp-ad-persistent-progress-bar");this.W=-1;this.Z(z,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; QQ=function(z,p,c,B,H,T){AQ.call(this,z,{j:"div",B:"ytp-ad-player-overlay",J:[{j:"div",B:"ytp-ad-player-overlay-flyout-cta"},{j:"div",B:"ytp-ad-player-overlay-instream-info"},{j:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{j:"div",B:"ytp-ad-player-overlay-progress-bar"},{j:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{j:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",p,c,B);this.U=T;this.V=this.jp("ytp-ad-player-overlay-flyout-cta");this.V.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.W=this.jp("ytp-ad-player-overlay-instream-info");this.X=null;DqE(this)&&(z=HG("div"),g.Eo(z,"ytp-ad-player-overlay-top-bar-gradients"),p=this.W,p.parentNode&&p.parentNode.insertBefore(z,p),(p=this.api.getVideoData(2))&&p.isListed&&p.title&&(c=new CJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),c.Ia(z),c.init(EL("ad-title"),{text:p.title},this.macros),g.l(this,c)),this.X=z);this.D=null;this.rA=this.jp("ytp-ad-player-overlay-skip-or-preview");this.fH=this.jp("ytp-ad-player-overlay-progress-bar"); this.Ra=this.jp("ytp-ad-player-overlay-instream-user-sentiment");this.Dt=this.jp("ytp-ad-player-overlay-ad-disclosure-banner");this.K=H;g.l(this,this.K);this.hide()}; DqE=function(z){z=z.api.N();return g.rn(z)&&z.K}; Uu=function(z,p,c){var B={};p&&(B.v=p);c&&(B.list=c);z={name:z,locale:void 0,feature:void 0};for(var H in B)z[H]=B[H];B=g.g6("/sharing_services",z);g.s3(B)}; g.kQ=function(z){z&=16777215;var p=[(z&16711680)>>16,(z&65280)>>8,z&255];z=p[0];var c=p[1];p=p[2];z=Number(z);c=Number(c);p=Number(p);if(z!=(z&255)||c!=(c&255)||p!=(p&255))throw Error('"('+z+","+c+","+p+'") is not a valid RGB color');c=z<<16|c<<8|p;return z<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; gn=function(z){this.W=new eo(z)}; tG_=function(){var z=!1;try{z=!!window.sessionStorage.getItem("session_logininfo")}catch(p){z=!0}return(g.pN("INNERTUBE_CLIENT_NAME")==="WEB"||g.pN("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&z}; G3=function(z){if(g.pN("LOGGED_IN",!0)&&tG_()){var p=g.pN("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.nf(window.location.href);c&&p.push(c);c=g.nf(z);g.Gv(p,c)||!c&&OQ(z,"/")?(p=Qo(z),(p=miV(p))?(p=eYv(p),p=(p=g.nN(p)||null)?Dz(p):{}):p=null):p=null;p==null&&(p={});c=p;var B=void 0;tG_()?(B||(B=g.pN("LOGIN_INFO")),B?(c.session_logininfo=B,c=!0):c=!1):c=!1;c&&Ch(z,p)}}; g.XUS=function(z){var p=p===void 0?{}:p;var c=c===void 0?"":c;var B=B===void 0?window:B;z=g.g6(z,p);G3(z);c=g.lv(z+c);B=B.location;c=vA(c);c!==void 0&&(B.href=c)}; g.N6=function(z,p,c){p=p===void 0?{}:p;c=c===void 0?!1:c;var B=g.pN("EVENT_ID");B&&(p.ei||(p.ei=B));p&&Ch(z,p);c||(G3(z),g.XUS(z))}; g.fJ=function(z,p,c,B,H){H=H===void 0?!1:H;c&&Ch(z,c);c=g.lv(z);var T=g.y5(c);z!=T&&TQ(Error("Unsafe window.open URL: "+z));z=T;p=p||iU(z).toString(36);try{if(H)return H=z,H=q0Y(H),G3(H),g.nw(window,H,p,"attributionsrc")}catch(b){g.Hh(b)}G3(z);return g.nw(window,c,p,B)}; xqi=function(z){zl=z}; EcN=function(z){p0=z}; q3D=function(z){cH=z}; MGS=function(){JcY=cH=p0=zl=null}; mqB=function(){var z=z===void 0?window.location.href:z;if(g.KN("kevlar_disable_theme_param"))return null;var p=jB(g.oS(5,z));if(g.KN("enable_dark_theme_only_on_shorts")&&p!=null&&p.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var c=g.XL(z).theme;return Y3E.get(c)||null}catch(B){}return null}; BH=function(){this.W={};if(this.K=P8x()){var z=g.nN("CONSISTENCY");z&&hSV(this,{encryptedTokenJarContents:z})}}; hSV=function(z,p){if(p.encryptedTokenJarContents&&(z.W[p.encryptedTokenJarContents]=p,typeof p.expirationSeconds==="string")){var c=Number(p.expirationSeconds);setTimeout(function(){delete z.W[p.encryptedTokenJarContents]},c*1E3); z.K&&g.of("CONSISTENCY",p.encryptedTokenJarContents,c,void 0,!0)}}; ie=function(){this.K=-1;var z=g.pN("LOCATION_PLAYABILITY_TOKEN");g.pN("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=HH(this))&&(z=this.localStorage.get("yt-location-playability-token"));z&&(this.locationPlayabilityToken=z,this.W=void 0)}; HH=function(z){return z.localStorage===void 0?new tM("yt-client-location"):z.localStorage}; g.Tl=function(z,p,c){p=p===void 0?!1:p;c=c===void 0?!1:c;var B=g.pN("INNERTUBE_CONTEXT");if(!B)return g.Fr(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};B=g.vj(B);g.KN("web_no_tracking_params_in_shell_killswitch")||delete B.clickTracking;B.client||(B.client={});var H=B.client;H.clientName==="MWEB"&&H.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(H.clientFormFactor=g.pN("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");H.screenWidthPoints=window.innerWidth;H.screenHeightPoints= window.innerHeight;H.screenPixelDensity=Math.round(window.devicePixelRatio||1);H.screenDensityFloat=window.devicePixelRatio||1;H.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var T=T===void 0?!1:T;g.sA();var b="USER_INTERFACE_THEME_LIGHT";g.k4(0,165)?b="USER_INTERFACE_THEME_DARK":g.k4(0,174)?b="USER_INTERFACE_THEME_LIGHT":!g.KN("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (b="USER_INTERFACE_THEME_DARK");T=T?b:mqB()||b;H.userInterfaceTheme=T;if(!p){if(T=bIQ())H.connectionType=T;g.KN("web_log_effective_connection_type")&&(T=D5Q())&&(B.client.effectiveConnectionType=T)}var D;if(g.KN("web_log_memory_total_kbytes")&&((D=g.jQ.navigator)==null?0:D.deviceMemory)){var t;D=(t=g.jQ.navigator)==null?void 0:t.deviceMemory;B.client.memoryTotalKbytes=""+D*1E6}g.KN("web_gcf_hashes_innertube")&&(T=MYN())&&(t=T.coldConfigData,D=T.coldHashData,T=T.hotHashData,B.client.configInfo=B.client.configInfo|| {},t&&(B.client.configInfo.coldConfigData=t),D&&(B.client.configInfo.coldHashData=D),T&&(B.client.configInfo.hotHashData=T));t=g.XL(g.jQ.location.href);!g.KN("web_populate_internal_geo_killswitch")&&t.internalcountrycode&&(H.internalGeo=t.internalcountrycode);H.clientName==="MWEB"||H.clientName==="WEB"?(H.mainAppWebInfo={graftUrl:g.jQ.location.href},g.KN("kevlar_woffle")&&z__.instance&&(t=z__.instance,H.mainAppWebInfo.pwaInstallabilityStatus=!t.W&&t.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),H.mainAppWebInfo.webDisplayMode=Qh(),H.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):H.clientName==="TVHTML5"&&(!g.KN("web_lr_app_quality_killswitch")&&(t=g.pN("LIVING_ROOM_APP_QUALITY"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{appQuality:t})),t=g.pN("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{certificationScope:t}));if(!g.KN("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var X=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(W){}X=void 0}X&&(H.timeZone=X)}(X=af())?H.experimentsToken=X:delete H.experimentsToken;X=Zz();BH.instance||(BH.instance=new BH);B.request=Object.assign({},B.request,{internalExperimentFlags:X,consistencyTokenJars:g.ax(BH.instance.W)});!g.KN("web_prequest_context_killswitch")&&(X=g.pN("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(B.request.externalPrequestContext=X);H=g.sA();X=g.k4(0,58);H=H.get("gsml","");B.user=Object.assign({}, B.user);X&&(B.user.enableSafetyMode=X);H&&(B.user.lockedSafetyMode=!0);g.KN("warm_op_csn_cleanup")?c&&(p=g.Wu())&&(B.clientScreenNonce=p):!p&&(p=g.Wu())&&(B.clientScreenNonce=p);z&&(B.clickTracking={clickTrackingParams:z});if(z=g.n_("yt.mdx.remote.remoteClient_"))B.remoteClient=z;ie.getInstance().setLocationOnInnerTubeContext(B);try{var x=h6(),E=x.bid;delete x.bid;B.adSignalsInfo={params:[],bid:E};for(var q=g.m(Object.entries(x)),J=q.next();!J.done;J=q.next()){var M=g.m(J.value),P=M.next().value, O=M.next().value;x=P;E=O;z=void 0;(z=B.adSignalsInfo.params)==null||z.push({key:x,value:""+E})}var R,K;if(((R=B.client)==null?void 0:R.clientName)==="TVHTML5"||((K=B.client)==null?void 0:K.clientName)==="TVHTML5_UNPLUGGED"){var Z=g.pN("INNERTUBE_CONTEXT");Z.adSignalsInfo&&(B.adSignalsInfo.advertisingId=Z.adSignalsInfo.advertisingId,B.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",B.adSignalsInfo.limitAdTracking=Z.adSignalsInfo.limitAdTracking)}}catch(W){g.Fr(W)}return B}; Oqf=function(z,p){if(!z)return!1;var c,B=(c=g.I(z,PHW))==null?void 0:c.signal;if(B&&p.LZ)return!!p.LZ[B];var H;if((c=(H=g.I(z,AcD))==null?void 0:H.request)&&p.Zo)return!!p.Zo[c];for(var T in z)if(p.iq[T])return!0;return!1}; wUN=function(z){var p={"Content-Type":"application/json"};g.pN("EOM_VISITOR_DATA")?p["X-Goog-EOM-Visitor-Id"]=g.pN("EOM_VISITOR_DATA"):g.pN("VISITOR_DATA")&&(p["X-Goog-Visitor-Id"]=g.pN("VISITOR_DATA"));p["X-Youtube-Bootstrap-Logged-In"]=g.pN("LOGGED_IN",!1);g.pN("DEBUG_SETTINGS_METADATA")&&(p["X-Debug-Settings-Metadata"]=g.pN("DEBUG_SETTINGS_METADATA"));z!=="cors"&&((z=g.pN("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(p["X-Youtube-Client-Name"]=z),(z=g.pN("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(p["X-Youtube-Client-Version"]= z),(z=g.pN("CHROME_CONNECTED_HEADER"))&&(p["X-Youtube-Chrome-Connected"]=z),(z=g.pN("DOMAIN_ADMIN_STATE"))&&(p["X-Youtube-Domain-Admin-State"]=z),g.pN("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(z=g.pN("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(p["X-YouTube-Lava-Device-Context"]=z));return p}; RSE=function(){this.W={}}; be=function(){this.mappings=new RSE}; V_=function(z){return function(){return new z}}; $qQ=function(z){var p=p===void 0?"UNKNOWN_INTERFACE":p;if(z.length===1)return z[0];var c=S3V[p];if(c){c=new RegExp(c);for(var B=g.m(z),H=B.next();!H.done;H=B.next())if(H=H.value,c.exec(H))return H}var T=[];Object.entries(S3V).forEach(function(b){var D=g.m(b);b=D.next().value;D=D.next().value;p!==b&&T.push(D)}); c=new RegExp(T.join("|"));z.sort(function(b,D){return b.length-D.length}); B=g.m(z);for(H=B.next();!H.done;H=B.next())if(H=H.value,!c.exec(H))return H;return z[0]}; g.D6=function(z){return"/youtubei/v1/"+$qQ(z)}; ts=function(){}; XZ=function(){}; xw=function(){}; Rt=function(z){return g.n_("ytcsi."+(z||"")+"data_")||K2Q(z)}; u$u=function(){var z=Rt();z.info||(z.info={});return z.info}; S0=function(z){z=Rt(z);z.metadata||(z.metadata={});return z.metadata}; $w=function(z){z=Rt(z);z.tick||(z.tick={});return z.tick}; K0=function(z){z=Rt(z);if(z.gel){var p=z.gel;p.gelInfos||(p.gelInfos={});p.gelTicks||(p.gelTicks={})}else z.gel={gelTicks:{},gelInfos:{}};return z.gel}; aJx=function(z){z=K0(z);z.gelInfos||(z.gelInfos={});return z.gelInfos}; ue=function(z){var p=Rt(z).nonce;p||(p=g.Zu(16),Rt(z).nonce=p);return p}; K2Q=function(z){var p={tick:{},info:{}};g.oE("ytcsi."+(z||"")+"data_",p);return p}; at=function(){var z=g.n_("ytcsi.debug");z||(z=[],g.oE("ytcsi.debug",z),g.oE("ytcsi.reference",{}));return z}; Z6=function(z){z=z||"";var p=ZqS();if(p[z])return p[z];var c=at(),B={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};c.push(B);return p[z]=B}; L2N=function(z){z=z||"";var p=ZqS();p[z]&&delete p[z];var c=at(),B={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};c.push(B);p[z]=B}; ZqS=function(){var z=g.n_("ytcsi.reference");if(z)return z;at();return g.n_("ytcsi.reference")}; L0=function(z){return dq_[z]||"LATENCY_ACTION_UNKNOWN"}; dO=function(z,p){PU.call(this,1,arguments);this.y8=p}; WH=function(){this.W=0}; y_=function(){WH.instance||(WH.instance=new WH);return WH.instance}; e0=function(z,p){C0[p]=C0[p]||{count:0};var c=C0[p];c.count++;c.time=(0,g.y2)();z.W||(z.W=g.iR(0,function(){var B=(0,g.y2)(),H;for(H in C0)C0[H]&&B-C0[H].time>6E4&&delete C0[H];z&&(z.W=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.z6("CSI data exceeded logging limit with key",p.split("_")),p.indexOf("plev")>=0||g.oc(c)),!0):!1}; W2x=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; ycB=function(){var z;if(g.KN("csi_use_performance_navigation_timing")||g.KN("csi_use_performance_navigation_timing_tvhtml5")){var p,c,B,H=le==null?void 0:(z=le.getEntriesByType)==null?void 0:(p=z.call(le,"navigation"))==null?void 0:(c=p[0])==null?void 0:(B=c.toJSON)==null?void 0:B.call(c);H?(H.requestStart=vH(H.requestStart),H.responseEnd=vH(H.responseEnd),H.redirectStart=vH(H.redirectStart),H.redirectEnd=vH(H.redirectEnd),H.domainLookupEnd=vH(H.domainLookupEnd),H.connectStart=vH(H.connectStart), H.connectEnd=vH(H.connectEnd),H.responseStart=vH(H.responseStart),H.secureConnectionStart=vH(H.secureConnectionStart),H.domainLookupStart=vH(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,z=H):z=le.timing}else z=g.KN("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(le.timing)):le.timing;return z}; vH=function(z){return Math.round(It()+z)}; It=function(){return(g.KN("csi_use_time_origin")||g.KN("csi_use_time_origin_tvhtml5"))&&le.timeOrigin?Math.floor(le.timeOrigin):le.timing.navigationStart}; FZ=function(z,p){j0("_start",z,p)}; ot=function(z,p){if(!g.KN("web_csi_action_sampling_enabled")||!Rt(p).actionDisabled){var c=Z6(p||"");wf(c.info,z);z.loadType&&(c=z.loadType,S0(p).loadType=c);wf(aJx(p),z);c=ue(p);p=Rt(p).cttAuthInfo;y_().info(z,c,p)}}; CHY=function(){var z,p,c,B;return((B=oU().resolve(lI(Jc))==null?void 0:(z=Mq())==null?void 0:(p=z.loggingHotConfig)==null?void 0:(c=p.csiConfig)==null?void 0:c.debugTicks)!=null?B:[]).map(function(H){return Object.values(H)[0]})}; j0=function(z,p,c){if(!g.KN("web_csi_action_sampling_enabled")||!Rt(c).actionDisabled){var B=ue(c),H;if(H=g.KN("web_csi_debug_sample_enabled")&&B){(oU().resolve(lI(Jc))==null?0:Mq())&&!eSW&&(eSW=!0,j0("gcfl",(0,g.y2)(),c));var T,b,D;H=(oU().resolve(lI(Jc))==null?void 0:(T=Mq())==null?void 0:(b=T.loggingHotConfig)==null?void 0:(D=b.csiConfig)==null?void 0:D.debugSampleWeight)||0;if(T=H!==0)b:{T=CHY();if(T.length>0)for(b=0;bc.duration?B:c},{duration:0}))&&p.startTime>0&&p.responseEnd>0&&(j0("wffs",vH(p.startTime)),j0("wffe",vH(p.responseEnd)))}; ncW=function(z,p,c){le&&le.measure&&(z.startsWith("measure_")||(z="measure_"+z),c?le.measure(z,p,c):p?le.measure(z,p):le.measure(z))}; QXS=function(z){var p=n0("aft",z);if(p)return p;p=g.pN((z||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=p.length,B=0;B0&&ot(p);p={isNavigation:!0,actionType:L0(g.pN("TIMING_ACTION"))};var c=g.pN("PREVIOUS_ACTION");c&&(p.previousAction=L0(c));if(c=g.pN("CLIENT_PROTOCOL"))p.httpProtocol=c;if(c=g.pN("CLIENT_TRANSPORT"))p.transportProtocol=c;(c=g.Wu())&&c!=="UNDEFINED_CSN"&&(p.clientScreenNonce=c);c=IJQ();if(c===1||c===-1)p.isVisible= !0;c=S0().loadType==="cold";var B=u$u();c||(c=B.yt_lt==="cold");if(c){p.loadType="cold";c=u$u();B=ycB();var H=It(),T=g.pN("CSI_START_TIMESTAMP_MILLIS",0);T>0&&!g.KN("embeds_web_enable_csi_start_override_killswitch")&&(H=T);H&&(j0("srt",B.responseStart),c.prerender!==1&&FZ(H));c=sXx();c>0&&j0("fpt",c);c=ycB();c.isPerformanceNavigationTiming&&ot({performanceNavigationTiming:!0},void 0);j0("nreqs",c.requestStart,void 0);j0("nress",c.responseStart,void 0);j0("nrese",c.responseEnd,void 0);c.redirectEnd- c.redirectStart>0&&(j0("nrs",c.redirectStart,void 0),j0("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(j0("ndnss",c.domainLookupStart,void 0),j0("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(j0("ntcps",c.connectStart,void 0),j0("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=It()&&c.connectEnd-c.secureConnectionStart>0&&(j0("nstcps",c.secureConnectionStart,void 0),j0("ntcpe",c.connectEnd,void 0));le&&"getEntriesByType"in le&&ocQ();c=[];if(document.querySelector&& le&&le.getEntriesByName)for(var b in UM)UM.hasOwnProperty(b)&&(B=UM[b],F2D(b,B)&&c.push(B));if(c.length>0)for(p.resourceInfo=[],b=g.m(c),c=b.next();!c.done;c=b.next())p.resourceInfo.push({resourceCache:c.value})}ot(p);p=K0();p.preLoggedGelInfos||(p.preLoggedGelInfos=[]);b=p.preLoggedGelInfos;p=aJx();c=void 0;for(B=0;B-1&&(delete h["@type"],U=h);P&&z.K.has(P)&&z.K.delete(P);((FY=p.config)==null?0:FY.aNq)&&kw(p.config.aNq);if(U||(Rg=z.D)==null||!Rg.mD3(p.input,p.C9)){uf.hD(15);break}return g.a(uf,z.D.vPI(p.input,p.C9),16);case 16:U=uf.K;case 15:return xAi(z,U,p),((Md=p.config)==null?0:Md.ii8)&&kw(p.config.ii8),B(),uf.return(U||void 0)}})}; bUQ=function(z,p){a:{z=z.FH;var c,B=(c=g.I(p,PHW))==null?void 0:c.signal;if(B&&z.LZ&&(c=z.LZ[B])){var H=c();break a}var T;if((c=(T=g.I(p,AcD))==null?void 0:T.request)&&z.Zo&&(T=z.Zo[c])){H=T();break a}for(H in p)if(z.iq[H]&&(p=z.iq[H])){H=p();break a}H=void 0}if(H!==void 0)return Promise.resolve(H)}; DAV=function(z,p,c){var B,H,T,b,D,t,X;return g.L(function(x){if(x.W==1){T=((B=p)==null?void 0:(H=B.JW)==null?void 0:H.identity)||hc;t=(b=p)==null?void 0:(D=b.JW)==null?void 0:D.sessionIndex;var E=g.RS(z.W.XM(T,{sessionIndex:t}));return g.a(x,E,2)}X=x.K;return x.return(Promise.resolve(Object.assign({},wUN(c),X)))})}; VpE=function(z,p,c){var B,H=(p==null?void 0:(B=p.JW)==null?void 0:B.identity)||hc,T;p=p==null?void 0:(T=p.JW)==null?void 0:T.sessionIndex;z=z.W.XM(H,{sessionIndex:p});return Object.assign({},wUN(c),z)}; ia=function(){}; T4=function(){}; ba=function(z){this.V=z}; VG=function(){}; DS=function(){}; tv=function(){}; XO=function(){}; xp=function(z,p,c,B){this.W=z;this.K=p;this.D=c;this.X=B}; qjY=function(z,p,c){if(z.W){var B=jB(g.oS(5,ff(p,"key")))||"/UNKNOWN_PATH";z.W.start(B)}B=c;g.KN("wug_networking_gzip_request")&&(B=URD(c));var H;return new ((H=z.X)!=null?H:window.Request)(p,B)}; g.q2=function(z,p){if(!ER){var c=oU();vd(c,{gq:JpQ,UL:xp});var B={iq:{feedbackEndpoint:V_(VG),modifyChannelNotificationPreferenceEndpoint:V_(DS),playlistEditEndpoint:V_(tv),shareEntityEndpoint:V_(ba),subscribeEndpoint:V_(ia),unsubscribeEndpoint:V_(T4),webPlayerShareEntityServiceEndpoint:V_(XO)}},H=ie.getInstance(),T={};H&&(T.client_location=H);z===void 0&&(z=p4i());p===void 0&&(p=c.resolve(JpQ));TfE(B,p,z,T);vd(c,{gq:MpE,k$:cY.instance});ER=c.resolve(MpE)}return ER}; YjD=function(z){var p=new Pb;if(z.interpreterJavascript){var c=C6Q(z.interpreterJavascript);c=UU(c).toString();var B=new mE;A5(B,6,c);E7(p,mE,1,B)}else z.interpreterUrl&&(c=Z_(z.interpreterUrl),c=dh(c).toString(),B=new h9,A5(B,4,c),E7(p,h9,2,B));z.interpreterHash&&O7(p,3,z.interpreterHash);z.program&&O7(p,4,z.program);z.globalName&&O7(p,5,z.globalName);z.clientExperimentsStateBlob&&O7(p,7,z.clientExperimentsStateBlob);return p}; Jv=function(z){var p={};z=z.split("&");z=g.m(z);for(var c=z.next();!c.done;c=z.next())c=c.value.split("="),c.length===2&&(p[c[0]]=c[1]);return p}; pxv=function(){if(g.KN("bg_st_hr"))return"havuokmhhs-0";var z,p=((z=performance)==null?void 0:z.timeOrigin)||0;return"havuokmhhs-"+Math.floor(p)}; M2=function(z){this.W=z}; mAS=function(){return new Promise(function(z){var p=window.top;p.ntpevasrs!==void 0?z(new M2(p.ntpevasrs)):(p.ntpqfbel===void 0&&(p.ntpqfbel=[]),p.ntpqfbel.push(function(c){z(new M2(c))}))})}; PIE=function(){if(!g.KN("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.KN("disable_biscotti_fetch_entirely_for_all_web_clients")&&Vh()){var z=g.pN("PLAYER_VARS",{});if(g.CH(z,"privembed",!1)!="1"&&!KG_(z)){var p=function(){Yp=!0;"google_ad_status"in window?zQ("DCLKSTAT",1):zQ("DCLKSTAT",2)}; try{g.Jp("//static.doubleclick.net/instream/ad_status.js",p)}catch(c){}hpS.push(g.sr.lY(function(){if(!(Yp||"google_ad_status"in window)){try{if(p){var c=""+g.GY(p),B=KIV[c];B&&g.Ej(B)}}catch(H){}Yp=!0;zQ("DCLKSTAT",3)}},5E3))}}}; mP=function(){var z=Number(g.pN("DCLKSTAT",0));return isNaN(z)?0:z}; OR=function(z,p,c){var B=this;this.network=z;this.options=p;this.K=c;this.W=null;if(p.ija){var H=new g.OE;this.W=H.promise;g.jQ.ytAtRC&&HJ(function(){var T,b;return g.L(function(D){if(D.W==1){if(!g.jQ.ytAtRC)return D.return();T=hv(null);return g.a(D,PY(B,T),2)}b=D.K;g.jQ.ytAtRC&&g.jQ.ytAtRC(JSON.stringify(b));g.Ai(D)})},2); mAS().then(function(T){var b,D,t,X;return g.L(function(x){if(x.W==1)return T.bindInnertubeChallengeFetcher(function(E){return PY(B,hv(E))}),g.a(x,Co(),2); b=x.K;D=T.getLatestChallengeResponse();t=D.challenge;if(!t)throw Error("BGE_MACIL");X={challenge:t,NB:Jv(t),WO:b,bgChallenge:new Pb};H.resolve(X);T.registerChallengeFetchedCallback(function(E){E=E.challenge;if(!E)throw Error("BGE_MACR");E={challenge:E,NB:Jv(E),WO:b,bgChallenge:new Pb};B.W=Promise.resolve(E)}); g.Ai(x)})})}else p.preload&&ApW(this,new Promise(function(T){g.iR(0,function(){T(Av(B))},0)}))}; hv=function(z){var p={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};z&&(p.interpreterHash=z);return p}; Av=function(z,p){p=p===void 0?0:p;var c,B,H,T,b,D,t,X,x,E,q,J;return g.L(function(M){switch(M.W){case 1:c=hv(SK().W);if(g.KN("att_fet_ks"))return g.Ox(M,7),g.a(M,PY(z,c),9);g.Ox(M,4);return g.a(M,OUY(z,c),6);case 6:b=M.K;H=b.mn3;T=b.FVp;B=b;g.RE(M,3);break;case 4:return g.SQ(M),g.oc(Error("Failed to fetch attestation challenge after "+(p+" attempts; not retrying for 24h."))),wQ(z,864E5),M.return({challenge:"",NB:{},WO:void 0,bgChallenge:void 0});case 9:B=M.K;if(!B)throw Error("Fetching Attestation challenge returned falsy"); if(!B.challenge)throw Error("Missing Attestation challenge");H=B.challenge;T=Jv(H);if("c1a"in T&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.RE(M,3);break;case 7:D=g.SQ(M);g.oc(D);p++;if(p>=5)return g.oc(Error("Failed to fetch attestation challenge after "+(p+" attempts; not retrying for 24h."))),wQ(z,864E5),M.return({challenge:"",NB:{},WO:void 0,bgChallenge:void 0});t=1E3*Math.pow(2,p-1)+Math.random()*1E3;return M.return(new Promise(function(P){g.iR(0, function(){P(Av(z,p))},t)})); case 3:X=Number(T.t)||7200;wQ(z,X*1E3);x=void 0;if(!("c1a"in T&&B.bgChallenge)){M.hD(10);break}E=YjD(B.bgChallenge);g.Ox(M,11);return g.a(M,Kz(SK(),E),13);case 13:g.RE(M,12);break;case 11:return q=g.SQ(M),g.oc(q),M.return({challenge:H,NB:T,WO:x,bgChallenge:E});case 12:return g.Ox(M,14),x=new wN({challenge:E,D2:{cQ:"aGIf"}}),g.a(M,x.X_,16);case 16:g.RE(M,10);break;case 14:J=g.SQ(M),g.oc(J),x=void 0;case 10:return M.return({challenge:H,NB:T,WO:x,bgChallenge:E})}})}; PY=function(z,p){var c;return g.L(function(B){c=z.K;if(!c||c.Bn())return B.return(PY(z.network,p));z4("att_pna",void 0,"attestation_challenge_fetch");return B.return(new Promise(function(H){c.VX("publicytnetworkstatus-online",function(){PY(z.network,p).then(H)})}))})}; wdV=function(z){if(!z)throw Error("Fetching Attestation challenge returned falsy");if(!z.challenge)throw Error("Missing Attestation challenge");var p=z.challenge,c=Jv(p);if("c1a"in c&&(!z.bgChallenge||!z.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},z,{mn3:p,FVp:c})}; OUY=function(z,p){var c,B,H,T,b;return g.L(function(D){switch(D.W){case 1:c=void 0,B=0,H={};case 2:if(!(B<5)){D.hD(4);break}if(!(B>0)){D.hD(5);break}H.Bi=1E3*Math.pow(2,B-1)+Math.random()*1E3;return g.a(D,new Promise(function(t){return function(X){g.iR(0,function(){X(void 0)},t.Bi)}}(H)),5); case 5:return g.Ox(D,7),g.a(D,PY(z,p),9);case 9:return T=D.K,D.return(wdV(T));case 7:c=b=g.SQ(D),b instanceof Error&&g.oc(b);case 8:B++;H={Bi:void 0};D.hD(2);break;case 4:throw c;}})}; ApW=function(z,p){z.W=p}; RpQ=function(z){var p,c,B;return g.L(function(H){if(H.W==1)return g.a(H,Promise.race([z.W,null]),2);p=H.K;var T=Av(z);z.W=T;(c=p)==null||(B=c.WO)==null||B.dispose();g.Ai(H)})}; wQ=function(z,p){function c(){var H;return g.L(function(T){H=B-Date.now();return H<1E3?g.a(T,RpQ(z),0):(HJ(c,0,Math.min(H,6E4)),T.hD(0))})} var B=Date.now()+p;c()}; SjQ=function(z,p){return new Promise(function(c){g.iR(0,function(){c(p())},z)})}; g.$A_=function(z,p){var c;return g.L(function(B){var H=g.n_("yt.aba.att");return(c=H?H:OR.instance!==void 0?OR.instance.D.bind(OR.instance):null)?B.return(c("ENGAGEMENT_TYPE_PLAYBACK",z,p)):B.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.KhB=function(){var z;return(z=(z=g.n_("yt.aba.att2"))?z:OR.instance!==void 0?OR.instance.X.bind(OR.instance):null)?z():Promise.resolve(!1)}; auQ=function(z,p){var c=g.n_("ytDebugData.callbacks");c||(c={},g.oE("ytDebugData.callbacks",c));if(g.KN("web_dd_iu")||ugN.includes(z))c[z]=p}; Rk=function(){var z=ZUu;var p=p===void 0?[]:p;var c=c===void 0?[]:c;p=aLS.apply(null,[ZxW.apply(null,g.A(p))].concat(g.A(c)));this.store=d3W(z,void 0,p)}; g.Se=function(z,p,c){for(var B=Object.assign({},z),H=g.m(Object.keys(p)),T=H.next();!T.done;T=H.next()){T=T.value;var b=z[T],D=p[T];if(D===void 0)delete B[T];else if(b===void 0)B[T]=D;else if(Array.isArray(D)&&Array.isArray(b))B[T]=c?[].concat(g.A(b),g.A(D)):D;else if(!Array.isArray(D)&&g.kB(D)&&!Array.isArray(b)&&g.kB(b))B[T]=g.Se(b,D,c);else if(typeof D===typeof b)B[T]=D;else return p=new g.z6("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:T,ZxI:b,updateValue:D}),g.Fr(p), z}return B}; $p=function(z){var p=this;z=z===void 0?[]:z;this.j8=[];this.fl=this.rC=0;this.M6=void 0;this.totalLength=0;z.forEach(function(c){p.append(c)})}; Lh_=function(z,p){return z.j8.length===0?!1:(z=z.j8[z.j8.length-1])&&z.buffer===p.buffer&&z.byteOffset+z.length===p.byteOffset}; Kb=function(z,p){p=g.m(p.j8);for(var c=p.next();!c.done;c=p.next())z.append(c.value)}; ua=function(z,p,c){return z.split(p).vt.split(c).XD}; ak=function(z){z.M6=void 0;z.rC=0;z.fl=0}; ZS=function(z,p,c){z.isFocused(p);return p-z.fl+c<=z.j8[z.rC].length}; dAY=function(z){if(!z.M6){var p=z.j8[z.rC];z.M6=new DataView(p.buffer,p.byteOffset,p.length)}return z.M6}; Lb=function(z,p,c){z=z.S1(p===void 0?0:p,c===void 0?-1:c);p=new Uint8Array(z.length);try{p.set(z)}catch(B){for(c=0;c>10;T=56320|T&1023}yG[H++]=T}}T=String.fromCharCode.apply(String,yG); H<1024&&(T=T.substring(0,H));c.push(T)}return c.join("")}; la=function(z,p){var c;if((c=ee)==null?0:c.encodeInto)return p=ee.encodeInto(z,p),p.read>6|192:((H&64512)===55296&&B+1>18|240,p[c++]=H>>12&63|128):p[c++]=H>>12|224,p[c++]=H>>6&63|128),p[c++]=H&63|128)}return c}; vY=function(z){if(ee)return ee.encode(z);var p=new Uint8Array(Math.ceil(z.length*1.2)),c=la(z,p);p.lengthc&&(p=p.subarray(0,c));return p}; Ik=function(z){this.W=z;this.pos=0;this.K=-1}; je=function(z){var p=z.W.getUint8(z.pos);++z.pos;if(p<128)return p;for(var c=p&127,B=1;p>=128;)p=z.W.getUint8(z.pos),++z.pos,B*=128,c+=(p&127)*B;return c}; FO=function(z,p){var c=z.K;for(z.K=-1;z.W.n6(z.pos,1);){c<0&&(c=je(z));var B=c>>3,H=c&7;if(B===p)return!0;if(B>p){z.K=c;break}c=-1;switch(H){case 0:je(z);break;case 1:z.pos+=8;break;case 2:B=je(z);z.pos+=B;break;case 5:z.pos+=4}}return!1}; ok=function(z,p){if(FO(z,p))return je(z)}; nb=function(z,p){if(FO(z,p))return!!je(z)}; QG=function(z,p){if(FO(z,p)){p=je(z);var c=z.W.S1(z.pos,p);z.pos+=p;return c}}; rQ=function(z,p){if(z=QG(z,p))return g.Cb(z)}; UR=function(z,p,c){if(z=QG(z,p))return c(new Ik(new $p([z])))}; sR=function(z,p){for(var c=[];FO(z,p);)c.push(je(z));return c.length?c:void 0}; kp=function(z,p,c){for(var B=[],H;H=QG(z,p);)B.push(c(new Ik(new $p([H]))));return B.length?B:void 0}; gQ=function(z,p){z=z instanceof Uint8Array?new $p([z]):z;return p(new Ik(z))}; CID=function(z,p,c){if(p&&c&&c.buffer===p.exports.memory.buffer){var B=p.realloc(c.byteOffset,z);if(B)return new Uint8Array(p.exports.memory.buffer,B,z)}z=p?new Uint8Array(p.exports.memory.buffer,p.malloc(z),z):new Uint8Array(z);c&&z.set(c);return z}; epD=function(z,p){this.Xm=p;this.pos=0;this.K=[];this.W=CID(z===void 0?4096:z,p);this.view=new DataView(this.W.buffer,this.W.byteOffset,this.W.byteLength)}; G4=function(z,p){p=z.pos+p;if(!(z.W.length>=p)){for(var c=z.W.length*2;c268435455){G4(z,4);for(var c=p&1073741823,B=0;B<4;B++)z.view.setUint8(z.pos,c&127|128),c>>=7,z.pos+=1;p=Math.floor(p/268435456)}for(G4(z,4);p>127;)z.view.setUint8(z.pos,p&127|128),p>>=7,z.pos+=1;z.view.setUint8(z.pos,p);z.pos+=1}; fb=function(z,p,c){c!==void 0&&(N2(z,p*8),N2(z,c))}; zE=function(z,p,c){c!==void 0&&fb(z,p,c?1:0)}; p7=function(z,p,c){c!==void 0&&(N2(z,p*8+2),p=c.length,N2(z,p),G4(z,p),z.W.set(c,z.pos),z.pos+=p)}; c8=function(z,p,c){c!==void 0&&(luV(z,p,Math.ceil(Math.log2(c.length*4+2)/7)),G4(z,c.length*1.2),p=la(c,z.W.subarray(z.pos)),z.pos+p>z.W.length&&(G4(z,p),p=la(c,z.W.subarray(z.pos))),z.pos+=p,vgx(z))}; luV=function(z,p,c){c=c===void 0?2:c;N2(z,p*8+2);z.K.push(z.pos);z.K.push(c);z.pos+=c}; vgx=function(z){for(var p=z.K.pop(),c=z.K.pop(),B=z.pos-c-p;p--;){var H=p?128:0;z.view.setUint8(c++,B&127|H);B>>=7}}; B8=function(z,p,c,B,H){c&&(luV(z,p,H===void 0?3:H),B(z,c),vgx(z))}; g.q9=function(z,p,c){c=new epD(4096,c);p(c,z);return new Uint8Array(c.W.buffer,c.W.byteOffset,c.pos)}; g.Jz=function(z){var p=new Ik(new $p([Ay(decodeURIComponent(z))]));z=rQ(p,2);p=ok(p,4);var c=IuE[p];if(typeof c==="undefined")throw z=new g.z6("Failed to recognize field number",{name:"EntityKeyHelperError",NX3:p}),g.Fr(z),z;return{tV:p,entityType:c,entityId:z}}; g.M9=function(z,p){var c=c===void 0?0:c;var B=new epD;p7(B,2,vY(z));z=jUQ[p];if(typeof z==="undefined")throw c=new g.z6("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:p}),g.Fr(c),c;fb(B,4,z);fb(B,5,1);p=new Uint8Array(B.W.buffer,B.W.byteOffset,B.pos);return encodeURIComponent(g.hy(p,c))}; Yl=function(z,p,c,B){if(B===void 0)return B=Object.assign({},z[p]||{}),c=(delete B[c],B),B={},Object.assign({},z,(B[p]=c,B));var H={},T={};return Object.assign({},z,(T[p]=Object.assign({},z[p],(H[c]=B,H)),T))}; Fhv=function(z,p,c,B,H){var T=z[p];if(T==null||!T[c])return z;B=g.Se(T[c],B,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};T={};return Object.assign({},z,(T[p]=Object.assign({},z[p],(H[c]=B,H)),T))}; ogB=function(z,p){z=z===void 0?{}:z;switch(p.type){case "ENTITY_LOADED":return p.payload.reduce(function(B,H){var T,b=(T=H.options)==null?void 0:T.persistenceOption;if(b&&b!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&b!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return B;if(!H.entityKey)return g.Fr(Error("Missing entity key")),B;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return g.Fr(new g.z6("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey})),B;var D=g.uU(H.payload); return Yl(B,D,H.entityKey,H.payload[D])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var t=g.Jz(H).entityType;D=Yl(B,t,H);break a}catch(E){if(E instanceof Error){g.Fr(new g.z6("Failed to deserialize entity key",{entityKey:H,d9:E.message}));D=B;break a}throw E;}D=void 0}return D}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return g.Fr(new g.z6("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey})),B;D=g.uU(H.payload);var X,x;return Fhv(B,D,H.entityKey, H.payload[D],(X=H.fieldMask)==null?void 0:(x=X.mergeOptions)==null?void 0:x.repeatedFieldsMergeOption)}return B},z); case "REPLACE_ENTITY":var c=p.payload;return Yl(z,c.entityType,c.key,c.XG);case "REPLACE_ENTITIES":return Object.keys(p.payload).reduce(function(B,H){var T=p.payload[H];return Object.keys(T).reduce(function(b,D){return Yl(b,H,D,T[D])},B)},z); case "UPDATE_ENTITY":return c=p.payload,Fhv(z,c.entityType,c.key,c.XG,c.YtA);default:return z}}; mZ=function(z,p,c){return z[p]?z[p][c]||null:null}; hz=function(z){return window.Int32Array?new Int32Array(z):Array(z)}; S7=function(z){g.e.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.W=16;if(!ngY){var p,c=new Uint8Array(256),B=new Uint8Array(256);var H=1;for(p=0;p<256;p++)c[H]=p,B[p]=H,H^=H<<1^(H>>7&&283);P8=new Uint8Array(256);Az=hz(256);OG=hz(256);wk=hz(256);RN=hz(256);for(var T=0;T<256;T++){H=T?B[255^c[T]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;P8[T]=H;p=H<<1^(H>>7&&283);var b=p^H;Az[T]=p<<24|H<<16|H<<8|b;OG[T]=b<<24|Az[T]>>>8;wk[T]=H<<24|OG[T]>>>8;RN[T]=H<<24|wk[T]>>>8}ngY=!0}H=hz(44);for(c= 0;c<4;c++)H[c]=z[4*c]<<24|z[4*c+1]<<16|z[4*c+2]<<8|z[4*c+3];for(B=1;c<44;c++)z=H[c-1],c%4||(z=(P8[z>>16&255]^B)<<24|P8[z>>8&255]<<16|P8[z&255]<<8|P8[z>>>24],B=B<<1^(B>>7&&283)),H[c]=H[c-4]^z;this.key=H}; $l=function(z,p){for(var c=0;c<4;c++)z.counter[c]=p[c*4]<<24|p[c*4+1]<<16|p[c*4+2]<<8|p[c*4+3];z.W=16}; QUD=function(z){for(var p=z.key,c=z.counter[0]^p[0],B=z.counter[1]^p[1],H=z.counter[2]^p[2],T=z.counter[3]^p[3],b=3;b>=0&&!(z.counter[b]=-~z.counter[b]);b--);for(var D,t,X=4;X<40;)b=Az[c>>>24]^OG[B>>16&255]^wk[H>>8&255]^RN[T&255]^p[X++],D=Az[B>>>24]^OG[H>>16&255]^wk[T>>8&255]^RN[c&255]^p[X++],t=Az[H>>>24]^OG[T>>16&255]^wk[c>>8&255]^RN[B&255]^p[X++],T=Az[T>>>24]^OG[c>>16&255]^wk[B>>8&255]^RN[H&255]^p[X++],c=b,B=D,H=t;z=z.K;b=p[40];z[0]=P8[c>>>24]^b>>>24;z[1]=P8[B>>16&255]^b>>16&255;z[2]=P8[H>>8&255]^ b>>8&255;z[3]=P8[T&255]^b&255;b=p[41];z[4]=P8[B>>>24]^b>>>24;z[5]=P8[H>>16&255]^b>>16&255;z[6]=P8[T>>8&255]^b>>8&255;z[7]=P8[c&255]^b&255;b=p[42];z[8]=P8[H>>>24]^b>>>24;z[9]=P8[T>>16&255]^b>>16&255;z[10]=P8[c>>8&255]^b>>8&255;z[11]=P8[B&255]^b&255;b=p[43];z[12]=P8[T>>>24]^b>>>24;z[13]=P8[c>>16&255]^b>>16&255;z[14]=P8[B>>8&255]^b>>8&255;z[15]=P8[H&255]^b&255}; aN=function(){if(!K7&&!g.pq){if(uS)return uS;var z;uS=(z=window.crypto)==null?void 0:z.subtle;var p,c,B;if(((p=uS)==null?0:p.importKey)&&((c=uS)==null?0:c.sign)&&((B=uS)==null?0:B.encrypt))return uS;uS=void 0}}; g.ZG=function(z){this.X=z}; g.L7=function(z){this.K=z}; dk=function(z){this.L=new Uint8Array(64);this.D=new Uint8Array(64);this.X=0;this.V=new Uint8Array(64);this.K=0;this.L.set(z);this.D.set(z);for(z=0;z<64;z++)this.L[z]^=92,this.D[z]^=54;this.reset()}; rp_=function(z,p,c){for(var B=z.G,H=z.W[0],T=z.W[1],b=z.W[2],D=z.W[3],t=z.W[4],X=z.W[5],x=z.W[6],E=z.W[7],q,J,M,P=0;P<64;)P<16?(B[P]=M=p[c]<<24|p[c+1]<<16|p[c+2]<<8|p[c+3],c+=4):(q=B[P-2],J=B[P-15],M=B[P-7]+B[P-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((J>>>7|J<<25)^(J>>>18|J<<14)^J>>>3),B[P]=M),q=E+W8[P]+M+((t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7))+(t&X^~t&x),J=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&T^H&b^T&b),E=q+J,D+=q,P++,P<16?(B[P]=M=p[c]<<24|p[c+1]<<16|p[c+2]<<8|p[c+3],c+=4):(q= B[P-2],J=B[P-15],M=B[P-7]+B[P-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((J>>>7|J<<25)^(J>>>18|J<<14)^J>>>3),B[P]=M),q=x+W8[P]+M+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&t^~D&X),J=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&H^E&T^H&T),x=q+J,b+=q,P++,P<16?(B[P]=M=p[c]<<24|p[c+1]<<16|p[c+2]<<8|p[c+3],c+=4):(q=B[P-2],J=B[P-15],M=B[P-7]+B[P-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((J>>>7|J<<25)^(J>>>18|J<<14)^J>>>3),B[P]=M),q=X+W8[P]+M+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&D^ ~b&t),J=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&E^x&H^E&H),X=q+J,T+=q,P++,P<16?(B[P]=M=p[c]<<24|p[c+1]<<16|p[c+2]<<8|p[c+3],c+=4):(q=B[P-2],J=B[P-15],M=B[P-7]+B[P-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((J>>>7|J<<25)^(J>>>18|J<<14)^J>>>3),B[P]=M),q=t+W8[P]+M+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&b^~T&D),J=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&x^X&E^x&E),M=E,E=D,D=M,M=x,x=b,b=M,M=X,X=T,T=M,t=H+q,H=q+J,P++;z.W[0]=H+z.W[0]|0;z.W[1]=T+z.W[1]|0;z.W[2]=b+z.W[2]|0;z.W[3]= D+z.W[3]|0;z.W[4]=t+z.W[4]|0;z.W[5]=X+z.W[5]|0;z.W[6]=x+z.W[6]|0;z.W[7]=E+z.W[7]|0}; sUS=function(z){var p=new Uint8Array(32),c=64-z.K;z.K>55&&(c+=64);var B=new Uint8Array(c);B[0]=128;for(var H=z.X*8,T=1;T<9;T++){var b=H%256;B[c-T]=b;H=(H-b)/256}z.update(B);for(c=0;c<8;c++)p[c*4]=z.W[c]>>>24,p[c*4+1]=z.W[c]>>>16&255,p[c*4+2]=z.W[c]>>>8&255,p[c*4+3]=z.W[c]&255;UAY(z);return p}; UAY=function(z){z.W=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];z.G=[];z.G.length=64;z.X=0;z.K=0}; kyQ=function(z){this.W=z}; ggV=function(z,p,c){z=new dk(z.W);z.update(p);z.update(c);p=sUS(z);z.update(z.L);z.update(p);p=sUS(z);z.reset();return p}; Gy_=function(z){this.K=z}; Nfi=function(z,p,c,B){var H,T,b;return g.L(function(D){switch(D.W){case 1:if(z.W){D.hD(2);break}return g.a(D,B.importKey("raw",z.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:z.W=D.K;case 2:return H=new Uint8Array(p.length+c.length),H.set(p),H.set(c,p.length),T={name:"HMAC",hash:"SHA-256"},g.a(D,B.sign(T,z.W,H),4);case 4:return b=D.K,D.return(new Uint8Array(b))}})}; fuB=function(z,p,c){z.D||(z.D=new kyQ(z.K));return ggV(z.D,p,c)}; zCx=function(z,p,c){var B,H;return g.L(function(T){if(T.W==1){B=aN();if(!B)return T.return(fuB(z,p,c));g.Ox(T,3);return g.a(T,Nfi(z,p,c,B),5)}if(T.W!=3)return T.return(T.K);H=g.SQ(T);g.oc(H);K7=!0;return T.return(fuB(z,p,c))})}; cgY=function(z){for(var p="",c=0;c=1?z[z.length-1]:null;for(var B=g.m(z),H=B.next();!H.done;H=B.next())if(H=H.value,H.width&&H.height&&(c&&H.width>=p||!c&&H.height>=p))return H;for(p=z.length-1;p>=0;p--)if(c&&z[p].width||!c&&z[p].height)return z[p];return z[0]}; C7=function(){this.state=1;this.WO=null;this.qa=void 0}; qFv=function(z,p,c,B,H,T){var b=b===void 0?"trayride":b;c?(z.Hy(2),g.Jp(c,function(){if(window[b])EPE(z,B,b,H);else{z.Hy(3);var D=$_N(c),t=document.getElementById(D);t&&(RWu(D),t.parentNode.removeChild(t));g.oc(new g.z6("BL:ULB",""+c))}},T)):p?(T=g.i4("SCRIPT"),p instanceof rh?(T.textContent=UU(p),sU(T)):T.textContent=p,T.nonce=Q5(document),document.head.appendChild(T),document.head.removeChild(T),window[b]?EPE(z,B,b,H):(z.Hy(4),g.oc(new g.z6("BL:ULBJ")))):g.oc(new g.z6("BL:ULV"))}; EPE=function(z,p,c,B){z.Hy(5);var H=!!z.qa&&Jgx.includes(g.nf(z.qa)||"");try{var T=new wN({program:p,globalName:c,D2:{disable:!g.KN("att_web_record_metrics")||!g.KN("att_skip_metrics_for_cookieless_domains_ks")&&H,cQ:"aGIf"}});T.X_.then(function(){z.Hy(6);B&&B(p)}); z.sx(T)}catch(b){z.Hy(7),b instanceof Error&&g.oc(b)}}; e7=function(){var z=g.n_("yt.abuse.playerAttLoader");return z&&["bgvma","bgvmb","bgvmc"].every(function(p){return p in z})?z:null}; lS=function(){C7.apply(this,arguments)}; v8=function(){}; MbQ=function(z,p,c){for(var B=!1,H=g.m(z.Im.entries()),T=H.next();!T.done;T=H.next())T=g.m(T.value).next().value,T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.wA==="core"&&(B=!0);if(B){a:if(!c){z=g.m(z.Im.entries());for(c=z.next();!c.done;c=z.next())if(B=g.m(c.value),c=B.next().value,B=B.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.wA==="core"){c=B.layoutId;break a}c=void 0}c?p.hp(c):P7("No triggering layout ID available when attempting to mute.")}}; IN=function(z,p){this.MB=z;this.rP=p}; j7=function(){}; F6=function(){}; mMi=function(z){g.e.call(this);var p=this;this.lk=z;this.W=new Map;oN(this,"commandExecutorCommand",function(c,B,H){YFQ(p,c.commands,B,H)}); oN(this,"clickTrackingParams",function(){})}; hCf=function(z,p){oN(z,p.Qo(),function(c,B,H){p.qc(c,B,H)})}; oN=function(z,p,c){z.qZ();z.W.get(p)&&g.Fr(Error("Extension name "+p+" already registered"));z.W.set(p,c)}; YFQ=function(z,p,c,B){p=p===void 0?[]:p;z.qZ();var H=[],T=[];p=g.m(p);for(var b=p.next();!b.done;b=p.next())b=b.value,g.I(b,P$E)||g.I(b,AgE)?H.push(b):T.push(b);H=g.m(H);for(p=H.next();!p.done;p=H.next())n7(z,p.value,c,B);T=g.m(T);for(H=T.next();!H.done;H=T.next())n7(z,H.value,c,B)}; n7=function(z,p,c,B){z.qZ();p.loggingUrls&&Ohu(z,"loggingUrls",p.loggingUrls,c,B);p=g.m(Object.entries(p));for(var H=p.next();!H.done;H=p.next()){var T=g.m(H.value);H=T.next().value;T=T.next().value;H==="openPopupAction"?z.lk.get().TV("innertubeCommand",{openPopupAction:T}):H==="confirmDialogEndpoint"?z.lk.get().TV("innertubeCommand",{confirmDialogEndpoint:T}):wuf.hasOwnProperty(H)||Ohu(z,H,T,c,B)}}; Ohu=function(z,p,c,B,H){if((z=z.W.get(p))&&typeof z==="function")try{z(c,B,H)}catch(T){g.Fr(T)}else p=new g.z6("Unhandled field",p),g.oc(p)}; QV=function(z,p,c){this.Xj=z;this.W=p;this.u8=c;RCQ(this.W)&&vd(oU(),{gq:XuW,UL:tbD})}; rk=function(z){this.value=z}; UG=function(z){this.value=z}; sG=function(z){this.value=z}; kl=function(z){this.value=z}; gk=function(z){this.value=z}; GE=function(z){this.value=z}; N9=function(z){this.value=z}; f7=function(){rk.apply(this,arguments)}; zD=function(z){this.value=z}; pF=function(z){this.value=z}; c1=function(z){this.value=z}; B1=function(z){this.value=z}; H1=function(z){this.value=z}; ix=function(z){this.value=z}; TD=function(z){this.value=z}; bx=function(z){this.value=z}; Vk=function(z){this.value=z}; Dk=function(z){this.value=z}; tL=function(){rk.apply(this,arguments)}; XH=function(z){this.value=z}; xZ=function(z){this.value=z}; EW=function(z){this.value=z}; qj=function(z){this.value=z}; JL=function(z){this.value=z}; Mj=function(z){this.value=z}; YZ=function(z){this.value=z}; mB=function(z){this.value=z}; hL=function(z){this.value=z}; P1=function(z){this.value=z}; AL=function(z){this.value=z}; OW=function(z){this.value=z}; w2=function(z){this.value=z}; RR=function(z){this.value=z}; S3=function(z){this.value=z}; $Z=function(z){this.value=z}; KF=function(z){this.value=z}; ux=function(z){this.value=z}; aR=function(z){this.value=z}; Zk=function(z){this.value=z}; LF=function(z){this.value=z}; d2=function(z){this.value=z}; W1=function(z){this.value=z}; yk=function(z){this.value=z}; CF=function(z){this.value=z}; e3=function(z){this.value=z}; lx=function(z){this.value=z}; v1=function(z){this.value=z}; IR=function(z){this.value=z}; j3=function(z){this.value=z}; FH=function(z){this.value=z}; oR=function(z){this.value=z}; nF=function(z){this.value=z}; Qk=function(z){this.value=z}; r2=function(z){this.value=z}; UW=function(z){this.value=z}; sW=function(z){this.value=z}; kZ=function(z){this.value=z}; g2=function(){rk.apply(this,arguments)}; GD=function(z){this.value=z}; Nj=function(){rk.apply(this,arguments)}; fF=function(){rk.apply(this,arguments)}; zb=function(){rk.apply(this,arguments)}; pO=function(){rk.apply(this,arguments)}; c3=function(){rk.apply(this,arguments)}; B3=function(z){this.value=z}; H3=function(z){this.value=z}; iG=function(z){this.value=z}; Tb=function(z){this.value=z}; bG=function(z){this.value=z}; DD=function(z,p,c){if(c&&!c.includes(z.layoutType))return!1;p=g.m(p);for(c=p.next();!c.done;c=p.next())if(!Vi(z.clientMetadata,c.value))return!1;return!0}; tf=function(){return""}; SFV=function(z,p){switch(z){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 p(z),8}}; Xo=function(z,p,c,B){B=B===void 0?!1:B;JJ.call(this,z);this.Zc=c;this.P_=B;this.args=[];p&&this.args.push(p)}; k=function(z,p,c,B){B=B===void 0?!1:B;JJ.call(this,z);this.Zc=c;this.P_=B;this.args=[];p&&this.args.push(p)}; x8=function(z){var p=new Map;z.forEach(function(c){p.set(c.getType(),c)}); this.W=p}; Vi=function(z,p){return z.W.has(p)}; Ei=function(z,p){z=z.W.get(p);if(z!==void 0)return z.get()}; qL=function(z){return Array.from(z.W.keys())}; Jf=function(z,p,c){if(c&&c!==z.slotType)return!1;p=g.m(p);for(c=p.next();!c.done;c=p.next())if(!Vi(z.clientMetadata,c.value))return!1;return!0}; KcY=function(z){var p;return((p=$MY.get(z))==null?void 0:p.pZ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Y8=function(z,p){var c={type:p.slotType,controlFlowManagerLayer:urW.get(p.wA)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p.slotEntryTrigger&&(c.entryTriggerType=p.slotEntryTrigger.triggerType);p.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=p.slotPhysicalPosition);if(z){c.debugData={slotId:p.slotId};if(z=p.slotEntryTrigger)c.debugData.slotEntryTriggerData=ML(z);z=p.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];z=g.m(z);for(var B=z.next();!B.done;B=z.next())c.debugData.fulfillmentTriggerData.push(ML(B.value)); p=p.slotExpirationTriggers;c.debugData.expirationTriggerData=[];p=g.m(p);for(z=p.next();!z.done;z=p.next())c.debugData.expirationTriggerData.push(ML(z.value))}return c}; aUN=function(z,p){var c={type:p.layoutType,controlFlowManagerLayer:urW.get(p.wA)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z&&(c.debugData={layoutId:p.layoutId});return c}; ML=function(z,p){var c={type:z.triggerType};p!=null&&(c.category=p);z.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=z.triggeringSlotId);z.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=z.triggeringLayoutId);return c}; Zh_=function(z,p,c,B){p={opportunityType:p};z&&(B||c)&&(B=g.d7(B||[],function(H){return Y8(z,H)}),p.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},B.length>0?{slots:B}:{})); return p}; hf=function(z,p){return function(c){return Lc_(mK(z),p.slotId,p.slotType,p.slotPhysicalPosition,p.wA,p.slotEntryTrigger,p.slotFulfillmentTriggers,p.slotExpirationTriggers,c.layoutId,c.layoutType,c.wA)}}; Lc_=function(z,p,c,B,H,T,b,D,t,X,x){return{adClientDataEntry:{slotData:Y8(z,{slotId:p,slotType:c,slotPhysicalPosition:B,wA:H,slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:D,clientMetadata:new x8([])}),layoutData:aUN(z,{layoutId:t,layoutType:X,wA:x,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],Ms:new Map,clientMetadata:new x8([]),Gr:{}})}}}; Af=function(z){this.X3=z;z=Math.random();var p=this.X3.get();p=g.P3(p.T.N().experiments,"html5_debug_data_log_probability");p=Number.isFinite(p)&&p>=0&&p<=1?p:0;this.W=z1){g.oc(new g.z6("Exit already started",{current:z.currentState}));var c=!1}else c=!0;if(!c)return!1;z.currentState=2;z.W=p;return!0}; SU=function(z){if(z.currentState!==2)return!1;z.currentState=3;return!0}; bJW=function(z,p){var c=new Map;z=g.m(z);for(var B=z.next();!B.done;B=z.next()){B=B.value;if(B.layoutType==="LAYOUT_TYPE_MEDIA")var H="v";else B.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(H=Ei(B.clientMetadata,"metadata_type_linked_in_player_layout_type"),H=H==="LAYOUT_TYPE_ENDCAP"||H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":H==="LAYOUT_TYPE_SURVEY"?"s":H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):H="u";c.set(B.layoutId,H);if(H==="u"){var T={};H=p;B=(T.c=B.layoutId,T);H.T.KH("uct",B)}}z= p.C3();$7={contentCpn:z,J4:c};B={};c=(B.ct=c.size,B.c=z,B);p.T.KH("acc",c)}; VTE=function(){$7={contentCpn:"",J4:new Map}}; Kd=function(z){var p;return(p=$7.J4.get(z))!=null?p:"u"}; uz=function(z,p,c){z.T.KH(p,c);D6f(z)}; tTx=function(z){var p=z.layoutId,c=z.oJ;if(z.v1){var B={};uz(z.Xj,"slso",(B.ec=p,B.is=c,B.ctp=Kd(p),B))}}; ar=function(z){var p=z.layoutId,c=z.oJ;if(z.v1){var B={};uz(z.Xj,"slse",(B.ec=p,B.is=c,B.ctp=Kd(p),B))}}; X7S=function(z){var p=z.layoutId,c=z.oJ,B=z.Xj;z.v1&&(z={},uz(B,"sleo",(z.xc=p,z.is=c,z.ctp=Kd(p),z)),D6f(B))}; x6x=function(z){var p=z.cpn,c=z.Xj;z=z.oJ;var B=c.C3(),H={};uz(c,"ce",(H.ec=p,H.ia=p!==B,H.r=$7.J4.has(p),H.is=z,H.ctp=Kd(p),H))}; D6f=function(z){if(z.C3()!==$7.contentCpn){var p={};p=(p.c=$7.contentCpn,p);z.T.KH("ccm",p)}}; EQN=function(z){var p=z.cpn,c=z.Xj;z=z.oJ;var B=c.C3(),H={};uz(c,"cx",(H.xc=p,H.ia=p!==B,H.r=$7.J4.has(p),H.is=z,H.ctp=Kd(p),H))}; quW=function(z){this.params=z;this.W=new Set}; Jbf=function(z,p,c){if(!z.W.has(p)){z.W.add(p);var B={};z.params.K2.kA(p,Object.assign({},c,(B.p_ac=z.params.adCpn,B.p_isv=z.params.jRq&&z.params.Ni,B)))}}; Ld=function(z,p,c){if(Zp(z.params.K2.X3.get(),!0)){var B=c.flush,H={};Jbf(z,p,(H.cts=c.currentTimeSec,H.f=B,H))}}; MTf=function(z,p){this.Xj=z;this.X3=p}; dB=function(z){var p=[];if(z){z=g.m(Object.entries(z));for(var c=z.next();!c.done;c=z.next()){var B=g.m(c.value);c=B.next().value;B=B.next().value;B!==void 0&&(B=typeof B==="boolean"?""+ +B:(""+B).replace(/[:,=]/g,"_"),p.push(c+"."+B))}}return p.join(";")}; W2=function(z,p,c){p=p===void 0?{}:p;this.errorCode=z;this.details=p;this.severity=c===void 0?0:c}; yn=function(z){return z===1||z===2}; Cd=function(z,p){p=p===void 0?0:p;if(z instanceof W2)return z;z=z&&z instanceof Error?z:Error(""+z);yn(p)?g.Fr(z):g.oc(z);return new W2(p===1?"player.fatalexception":"player.exception",{name:""+z.name,message:""+z.message},p)}; YuY=function(z,p){function c(){var B=g.L_.apply(0,arguments);z.removeEventListener("playing",c);p.apply(null,g.A(B))} z.addEventListener("playing",c)}; eU=function(){var z=g.n_("yt.player.utils.videoElement_");z||(z=g.i4("VIDEO"),g.oE("yt.player.utils.videoElement_",z));return z}; lz=function(z){var p=eU();return!!(p&&p.canPlayType&&p.canPlayType(z))}; Ir=function(z){if(/opus/.test(z)&&g.v2&&!dD("38")&&!g.GQ())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(z);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(z);if(/webm/.test(z)&&!wOD())return!1;z==='audio/mp4; codecs="mp4a.40.2"'&&(z='video/mp4; codecs="avc1.4d401f"');return!!lz(z)}; m6x=function(z){try{var p=Ir('video/mp4; codecs="avc1.42001E"')||Ir('video/webm; codecs="vp9"');return(Ir('audio/mp4; codecs="mp4a.40.2"')||Ir('audio/webm; codecs="opus"'))&&(p||!z)||lz('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; jU=function(){var z=eU();return!(!z.webkitSupportsPresentationMode||typeof z.webkitSetPresentationMode!=="function")}; FI=function(){var z=eU();try{var p=z.muted;z.muted=!p;return z.muted!==p}catch(c){}return!1}; hXx=function(){var z;return((z=navigator.connection)==null?void 0:z.type)||""}; g.or=function(){WL.apply(this,arguments)}; nd=function(z,p,c,B,H,T,b){this.sampleRate=z===void 0?0:z;this.numChannels=p===void 0?0:p;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.W=B===void 0?!1:B;this.D=H===void 0?0:H;this.K=T===void 0?0:T;this.audioQuality=b===void 0?"AUDIO_QUALITY_UNKNOWN":b}; U4=function(z,p,c,B,H,T,b,D,t){this.width=z;this.height=p;this.quality=T||Qn(z,p);this.qualityOrdinal=g.rB[this.quality];this.fps=c||0;this.stereoLayout=!H||B!=null&&B!=="UNKNOWN"&&B!=="RECTANGULAR"?0:H;this.projectionType=B?B==="EQUIRECTANGULAR"&&H===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":B:"UNKNOWN";(z=b)||(z=g.rB[this.quality],z===0?z="Auto":(p=this.fps,c=this.projectionType,z=z.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(p>55?"60":p>49?"50": p>39?"48":"")));this.qualityLabel=z;this.W=D||"";this.primaries=t||""}; Qn=function(z,p){var c=Math.max(z,p);z=Math.min(z,p);p=s4[0];for(var B=0;B=Math.floor(T*16/9)*1.3||z>=T*1.3)return p;p=H}return"tiny"}; Ge=function(z,p,c){c=c===void 0?{}:c;this.id=z;this.mimeType=p;c.l8>0||(c.l8=16E3);Object.assign(this,c);z=g.m(this.id.split(";"));this.itag=z.next().value;this.W=z.next().value;this.containerType=k7(p);this.yI=gB[this.itag]||""}; Ne=function(z){return z.yI==="9"||z.yI==="("||z.yI==="9h"||z.yI==="(h"}; PTf=function(z){return z.yI==="H"||z.yI==="h"}; fd=function(z){return z.yI==="9h"||z.yI==="(h"}; AbS=function(z){return!!z.o8&&!!z.o8.fairplay&&(z.yI==="("||z.yI==="(h"||z.yI==="A"||z.yI==="MEAC3")||zq&&!!z.o8&&z.yI==="1e"}; pZ=function(z){return z.yI==="1"||z.yI==="1h"||zq&&z.yI==="1e"}; c6=function(z){return z.yI==="mac3"||z.yI==="meac3"||z.yI==="m"||z.yI==="i"}; B6=function(z){return z.yI==="MAC3"||z.yI==="MEAC3"||z.yI==="M"||z.yI==="I"}; g.H6=function(z){return z.containerType===1}; OJB=function(z){return z.yI==="("||z.yI==="(h"||z.yI==="H"||zq&&z.yI==="1e"}; im=function(z){return z.mimeType==="application/x-mpegURL"}; g.Tq=function(z,p){return{itag:+z.itag,lmt:p?0:z.lastModified,xtags:z.W||""}}; w7u=function(z){var p=navigator.mediaCapabilities;if(p==null||!p.decodingInfo||z.yI==="f")return Promise.resolve();var c={type:z.audio&&z.video?"file":"media-source"};z.video&&(c.video={contentType:z.mimeType,width:z.video.width||640,height:z.video.height||360,bitrate:z.l8*8||1E6,framerate:z.video.fps||30});z.audio&&(c.audio={contentType:z.mimeType,channels:""+(z.audio.numChannels||2),bitrate:z.l8*8||128E3,samplerate:z.audio.sampleRate||44100});return p.decodingInfo(c).then(function(B){z.K=B})}; bm=function(z){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(z)}; Vf=function(z){return/(vp9|vp09|vp8|avc1|av01)/.test(z)}; Di=function(z){return z.includes("vtt")||z.includes("text/mp4")}; k7=function(z){return z.indexOf("/mp4")>=0?1:z.indexOf("/webm")>=0?2:z.indexOf("/x-flv")>=0?3:z.indexOf("/vtt")>=0?4:0}; tw=function(z,p,c,B,H,T){var b=new nd;p in g.rB||(p="small");p==="light"&&(p="tiny");B&&H?(H=Number(H),B=Number(B)):(H=g.rB[p],B=Math.round(H*16/9));T=new U4(B,H,0,null,void 0,p,T);z=unescape(z.replace(/"/g,'"'));return new Ge(c,z,{audio:b,video:T})}; Xb=function(z){var p="id="+z.id;z.video&&(p+=", res="+z.video.qualityLabel);var c,B;return p+", byterate=("+((c=z.y6)==null?void 0:c.toFixed(0))+", "+((B=z.l8)==null?void 0:B.toFixed(0))+")"}; xK=function(z,p){return{start:function(c){return z[c]}, end:function(c){return p[c]}, length:z.length}}; RXu=function(z,p,c){for(var B=[],H=[],T=0;T=p)return c}catch(B){}return-1}; Jw=function(z,p){return qF(z,p)>=0}; Suf=function(z,p){if(!z)return NaN;p=qF(z,p);return p>=0?z.start(p):NaN}; MF=function(z,p){if(!z)return NaN;p=qF(z,p);return p>=0?z.end(p):NaN}; YK=function(z){return z&&z.length?z.end(z.length-1):NaN}; mX=function(z,p){z=MF(z,p);return z>=0?z-p:0}; hw=function(z,p,c){for(var B=[],H=[],T=0;Tc||(B.push(Math.max(p,z.start(T))-p),H.push(Math.min(c,z.end(T))-p));return xK(B,H)}; P6=function(z,p,c,B){g.JQ.call(this);var H=this;this.MP=z;this.start=p;this.end=c;this.isActive=B;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.wR={error:function(){!H.qZ()&&H.isActive&&H.publish("error",H)}, updateend:function(){!H.qZ()&&H.isActive&&H.publish("updateend",H)}}; this.MP.pn(this.wR);this.g4=this.isActive}; OI=function(z,p,c,B,H,T){g.JQ.call(this);var b=this;this.oR=z;this.Na=p;this.id=c;this.containerType=B;this.yI=H;this.Ni=T;this.Mo=this.XB=this.e8=null;this.Cu=!1;this.appendWindowStart=this.timestampOffset=0;this.jR=xK([],[]);this.I4=!1;this.FB=[];this.AL=Aw?[]:void 0;this.Dz=function(t){return b.publish(t.type,b)}; var D;if((D=this.oR)==null?0:D.addEventListener)this.oR.addEventListener("updateend",this.Dz),this.oR.addEventListener("error",this.Dz)}; wr=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Rp=function(z,p){this.j9=z;this.W=p===void 0?!1:p;this.K=!1}; gr=function(z,p,c){c=c===void 0?!1:c;g.e.call(this);this.mediaElement=z;this.G$=p;this.isView=c;this.V=0;this.X=!1;this.L=!0;this.U=0;this.callback=null;this.S=!1;this.G$||(this.Na=this.mediaElement.XQ());this.events=new g.or(this);g.l(this,this.events);this.D=new Rp(this.G$?window.URL.createObjectURL(this.G$):this.Na.webkitMediaSourceURL,!0);z=this.G$||this.Na;yh(this.events,z,["sourceopen","webkitsourceopen"],this.NJD);yh(this.events,z,["sourceclose","webkitsourceclose"],this.SIq);this.G={updateend:this.h7}}; $6Y=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; KsY=function(z,p){Gq(z)?g.Mg(function(){p(z)}):z.callback=p}; uA_=function(z,p,c){if(NF){var B;fZ(z.mediaElement,{l:"mswssb",sr:(B=z.mediaElement.cq)==null?void 0:B.Rm()},!1);p.pn(z.G,z);c.pn(z.G,z)}z.W=p;z.K=c;g.l(z,p);g.l(z,c)}; aaf=function(z,p,c,B){B=p.mimeType+(B===void 0?"":B);var H=c.mimeType;p=p.yI;c=c.yI;var T;z.MZ=(T=z.G$)==null?void 0:T.addSourceBuffer(H);var b;z.Dt=B.split(";")[0]==="fakesb"?void 0:(b=z.G$)==null?void 0:b.addSourceBuffer(B);z.Na&&(z.Na.webkitSourceAddId("0",H),z.Na.webkitSourceAddId("1",B));T=new OI(z.MZ,z.Na,"0",k7(H),c,!1);B=new OI(z.Dt,z.Na,"1",k7(B),p,!0);uA_(z,T,B)}; zC=function(z){return!!z.W||!!z.K}; Gq=function(z){try{return pg(z)==="open"}catch(p){return!1}}; pg=function(z){if(z.G$)return z.G$.readyState;switch(z.Na.webkitSourceState){case z.Na.SOURCE_OPEN:return"open";case z.Na.SOURCE_ENDED:return"ended";default:return"closed"}}; cS=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; ZJv=function(z){Gq(z)&&(z.G$?z.G$.endOfStream():z.Na.webkitSourceEndOfStream(z.Na.EOS_NO_ERROR))}; LsY=function(z,p,c,B){if(!z.W||!z.K)return null;var H=z.W.isView()?z.W.MP:z.W,T=z.K.isView()?z.K.MP:z.K,b=new gr(z.mediaElement,z.G$,!0);b.D=z.D;uA_(b,new P6(H,p,c,B),new P6(T,p,c,B));Gq(z)||z.W.vW(z.W.e_());return b}; d6u=function(z){var p;(p=z.W)==null||p.RZ();var c;(c=z.K)==null||c.RZ();z.L=!1}; BS=function(){var z=this;this.Q_=this.QA=dvv;this.promise=new g.O9(function(p,c){z.QA=p;z.Q_=c})}; HS=function(){g.e.call(this);this.T3=!1;this.j9=null;this.G=this.V=!1;this.X=new g.T1;this.cq=null;g.l(this,this.X)}; iB=function(z){z=z.W5();return z.length<1?NaN:z.end(z.length-1)}; WsS=function(z){!z.K&&$6Y()&&(z.D?z.D.then(function(){return WsS(z)}):z.vQ()||(z.K=z.H0()))}; ybx=function(z){z.K&&(z.K.dispose(),z.K=void 0)}; fZ=function(z,p,c){var B;((B=z.cq)==null?0:B.OW())&&z.cq.KH("rms",p,c===void 0?!1:c)}; CTx=function(z,p,c){z.isPaused()||z.getCurrentTime()>p||c>10||(z.play(),g.O0(function(){CTx(z,z.getCurrentTime(),c+1)},500))}; eXD=function(z,p){z.j9&&z.j9.oI(p)||(z.j9&&z.j9.dispose(),z.j9=p)}; TC=function(z){return mX(z.zO(),z.getCurrentTime())}; laS=function(z,p){if(z.YG()===0||z.hasError())return!1;var c=z.getCurrentTime()>0;return p>=0&&(z=z.W5(),z.length||!c)?Jw(z,p):c}; bB=function(z){z.vQ()&&(z.cq&&z.cq.Ph("rs_s"),zG&&z.getCurrentTime()>0&&z.seekTo(0),z.ub(),z.load(),eXD(z,null));delete z.D}; VD=function(z){switch(z.bz()){case 2:return"progressive.net.retryexhausted";case 3:return z=z.Tg(),(z==null?0:z.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||vQE&&(z==null?0:z.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.D0=function(z,p,c){this.DN=p===void 0?null:p;this.seekSource=c===void 0?null:c;this.state=z||64}; tO=function(z,p,c){c=c===void 0?!1:c;return IaB(z,p.getCurrentTime(),(0,g.y2)(),TC(p),c)}; XQ=function(z,p,c,B){if(!(p===z.state&&c===z.DN&&B===z.seekSource||p!==void 0&&(p&128&&!c||p&2&&p&16))){var H;if(H=p)H=p||z.state,H=!!(H&16||H&32);z=new g.D0(p,c,H?B?B:z.seekSource:null)}return z}; xN=function(z,p,c){return XQ(z,z.state|p,null,c===void 0?null:c)}; EC=function(z,p){return XQ(z,z.state&~p,null,null)}; qP=function(z,p,c,B){return XQ(z,(z.state|p)&~c,null,B===void 0?null:B)}; g.r=function(z,p){return!!(z.state&p)}; g.JO=function(z,p){return p.state===z.state&&p.DN===z.DN}; MP=function(z){return z.isPlaying()&&!g.r(z,16)&&!g.r(z,32)}; YN=function(z){return g.r(z,128)?-1:g.r(z,2)?0:g.r(z,2048)?3:g.r(z,64)?-1:g.r(z,1)&&!g.r(z,32)?3:g.r(z,8)?1:g.r(z,4)?2:-1}; hO=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M,P,O){g.e.call(this);var R=this;this.JI=z;this.slot=p;this.layout=c;this.u8=B;this.Dw=H;this.oa=T;this.VI=b;this.fB=D;this.vM=t;this.hm=X;this.position=E;this.V=q;this.X3=J;this.Z9=M;this.WQ=P;this.context=O;this.Xu=!0;this.L=!1;this.lQ="not_rendering";this.K=!1;this.D=new wB;z=Ei(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Pq=new yK(c.Ms,this.u8,z,c.layoutId);var K;z=((K=mO(this))==null?void 0:K.progressCommands)||[];this.X=new lyB(t, z,c.layoutId,function(){return R.Hb()}); this.W=new quW({adCpn:this.layout.layoutId,K2:O.K2,jRq:this.Z9,Ni:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; PS=function(z){return{layoutId:z.Uq(),oJ:z.Z9,Xj:z.oa.get(),v1:z.V4()}}; AO=function(z,p){return p.layoutId!==z.layout.layoutId?(z.JI.zg(z.slot,p,new Xo("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+z.layout.layoutId+("and LayoutType: "+z.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; OC=function(z){z.lQ="rendering_start_requested";z.hm(-1)}; mO=function(z){return Ei(z.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; jGD=function(z){P7("Received layout exit signal when not in layout exit flow.",z.slot,z.layout)}; FsY=function(z){var p;return((p=wV(z.oa.get(),2))==null?void 0:p.clientPlaybackNonce)||""}; Rh=function(z,p){switch(p){case "normal":z.Ja("complete");break;case "skipped":z.Ja("skip");break;case "abandoned":jD(z.Pq,"impression")&&z.Ja("abandon")}}; S4=function(z,p){z.L||(p=new g.Ab(p.state,new g.D0),z.L=!0);return p}; $N=function(z,p){hd(p)?z.hm(1):g.wn(p,4)&&!g.wn(p,2)&&z.o2();Ou(p,4)<0&&!(Ou(p,2)<0)&&z.Gs()}; oQB=function(z){z.position===0&&(z.fB.get(),z=Ei(z.layout.clientMetadata,"metadata_type_ad_placement_config").kind,z={adBreakType:Kg(z)},kw("ad_bl"),g.gO(z))}; uB=function(z,p){v$(z.Pq,p,!z.K)}; QGD=function(z){var p;return(((p=mO(z))==null?void 0:p.progressCommands)||[]).findIndex(function(c){return!!g.I(c==null?void 0:c.command,nQx)})!==-1}; ah=function(z,p){var c=Ei(z.clientMetadata,"metadata_type_eligible_for_ssap");return c===void 0?(P7("Expected SSAP eligibility in PlayerBytes factory",z),!1):p.V4(c)}; Z0=function(z,p){if(!c$(p.get(),"html5_ssap_pass_transition_reason"))return 3;switch(z){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return P7("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return P7("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:z}),3;default:iN(z,"unknown layoutExitReason")}}; rbv=function(z){P7("getExitReason: unexpected reason",void 0,void 0,{reason:z})}; Lg=function(z,p){if(c$(p.get(),"html5_ssap_pass_transition_reason"))switch(z){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return rbv(z),"abandoned";case 3:case 1:return rbv(z),"error";default:iN(z,"unexpected transition reason")}else switch(z){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return P7("getExitReason: unexpected reason",void 0,void 0,{reason:z}),"error";default:iN(z,"unexpected transition reason")}}; dV=function(z,p,c){NZ(z,c)||z4(z,p,c);NZ(z,"video_to_ad")||z4(z,p,"video_to_ad");NZ(z,"ad_to_video")||z4(z,p,"ad_to_video");NZ(z,"ad_to_ad")||z4(z,p,"ad_to_ad")}; WS=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M,P,O,R){hO.call(this,z,p,c,B,H,T,b,D,X,x,E,q,J,M,P,O,R);var K=this;this.lk=t;this.J5=E;this.pP=!0;this.mT=this.VT=0;this.bj=PN(function(){tTx(PS(K));K.JI.sW(K.slot,K.layout)}); this.pw=PN(function(){X7S(PS(K));K.lQ!=="rendering_stop_requested"&&K.J5(K);K.layoutExitReason?K.JI.Rw(K.slot,K.layout,K.layoutExitReason):jGD(K)}); this.y8=new g.aS(200);this.y8.listen("tick",function(){K.xr()}); g.l(this,this.y8)}; Cg=function(z){z.mT=Date.now();yD(z,z.VT);z.y8.start()}; U6E=function(z){z.VT=z.Hb();z.oT(z.VT/1E3,!0);yD(z,z.VT)}; yD=function(z,p){p={current:p/1E3,duration:z.Hb()/1E3};z.lk.get().TV("onAdPlaybackProgress",p)}; e4=function(z){WS.call(this,z.JI,z.slot,z.i9,z.u8,z.Dw,z.oa,z.VI,z.fB,z.lk,z.vM,z.hm,z.J5,z.qe,z.v9,z.X3,z.Z9,z.WQ,z.context)}; lB=function(z){WS.call(this,z.JI,z.slot,z.i9,z.u8,z.Dw,z.oa,z.VI,z.fB,z.lk,z.vM,z.hm,z.J5,z.qe,z.v9,z.X3,z.Z9,z.WQ,z.context)}; vS=function(){lB.apply(this,arguments)}; sGi=function(z){return ah(z.slot,z.X3.get())?new vS(z):new e4(z)}; FQ=function(z){hO.call(this,z.callback,z.slot,z.i9,z.u8,z.Dw,z.oa,z.VI,z.fB,z.vM,z.hm,z.J5,z.qe,z.v9,z.X3,z.Z9,z.WQ,z.context);var p=this;this.adCpn="";this.oU=this.QB=0;this.bj=PN(function(){tTx(PS(p));p.JI.sW(p.slot,p.layout)}); this.pw=PN(function(){X7S(PS(p));p.lQ!=="rendering_stop_requested"&&p.J5(p);p.layoutExitReason?p.JI.Rw(p.slot,p.layout,p.layoutExitReason):jGD(p)}); this.CN=z.CN;this.U1=z.U1;this.By=z.By;this.lk=z.lk;this.S8=z.S8;this.J5=z.J5;if(!this.V4()){c$(this.X3.get(),"html5_disable_media_load_timeout")||(this.Wv=new g.B4(function(){p.Rx("load_timeout",new Xo("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); z=Ih(this.X3.get());var c=j4(this.X3.get());z&&c&&(this.KG=new g.B4(function(){var B=Ei(p.layout.clientMetadata,"metadata_type_preload_player_vars");B&&p.U1.get().T.preloadVideoByPlayerVars(B,2,300)}))}}; gQx=function(z,p){var c=Ei(p.clientMetadata,"metadata_type_ad_video_id"),B=Ei(p.clientMetadata,"metadata_type_legacy_info_card_vast_extension");c&&B&&z.S8.get().T.N().YA.add(c,{Pm:B});(p=Ei(p.clientMetadata,"metadata_type_sodar_extension_data"))&&Gtv(z.CN.get(),p);k3u(z.VI.get(),!1)}; G3E=function(z){k3u(z.VI.get(),!0);var p;((p=z.shrunkenPlayerBytesConfig)==null?0:p.shouldRequestShrunkenPlayerBytes)&&z.VI.get().Yp(!1)}; oh=function(){FQ.apply(this,arguments)}; ng=function(){oh.apply(this,arguments)}; Nni=function(z){return sGi(Object.assign({},z,{JI:z.callback,hm:function(){}}))}; fai=function(z){return new FQ(Object.assign({},z,{hm:function(p){z.lk.get().TV("onAdIntroStateChange",p)}}))}; zai=function(z){function p(c){z.lk.get().hZ(c)} return ah(z.slot,z.X3.get())?new ng(Object.assign({},z,{hm:p})):new FQ(Object.assign({},z,{hm:p}))}; QD=function(z){for(var p=z.i9,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],B=g.m(CV()),H=B.next();!H.done;H=B.next())c.push(H.value);if(H2(p,{j5:c,ER:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Nni(z);p=z.i9;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];B=g.m(CV());for(H=B.next();!H.done;H=B.next())c.push(H.value);if(H2(p,{j5:c,ER:["LAYOUT_TYPE_MEDIA"]}))return Vi(z.i9.clientMetadata,"metadata_type_ad_intro")?fai(z):zai(z)}; csu=function(z){var p=Ei(z.clientMetadata,"metadata_type_ad_placement_config").kind,c=Ei(z.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:z.layoutId,adType:pHu(c),adBreakType:Kg(p)}}; Kg=function(z){switch(z){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"}}; pHu=function(z){switch(z){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; BOu=function(z){try{return new rV(z.qC,z.slot,z.layout,z.xb,z.Ij,z.oa,z.tH,z.U1,z.KB,z.VI,z.K$I,z)}catch(p){}}; rV=function(z,p,c,B,H,T,b,D,t,X,x,E){g.e.call(this);this.qC=z;this.slot=p;this.layout=c;this.xb=B;this.Ij=H;this.oa=T;this.tH=b;this.U1=D;this.KB=t;this.VI=X;this.params=E;this.Xu=!0;z=QD(x);if(!z)throw Error("Invalid params for sublayout");this.s1=z}; H0i=function(){this.W=1;this.K=new wB}; UC=function(z,p,c,B,H,T,b,D,t,X,x,E,q){g.e.call(this);this.callback=z;this.oa=p;this.tH=c;this.U1=B;this.VI=H;this.fB=T;this.P1=b;this.slot=D;this.layout=t;this.xb=X;this.An=x;this.KB=E;this.X3=q;this.Xu=!0;this.wG=!1;this.eh=[];this.MN=-1;this.ZR=!1;this.A4=new H0i}; i0Y=function(z){var p;return(p=z.layout.xp)!=null?p:Ei(z.layout.clientMetadata,"metadata_type_sub_layouts")}; sC=function(z){return{Xj:z.oa.get(),oJ:!1,v1:z.V4()}}; TOx=function(z,p,c){if(z.JA()===z.eh.length-1){var B,H;P7("Unexpected skip requested during the last sublayout",(B=z.lA())==null?void 0:B.PM(),(H=z.lA())==null?void 0:H.gA(),{requestingSlot:p,requestingLayout:c})}}; b0f=function(z,p,c){return c.layoutId!==kN(z,p,c)?(P7("onSkipRequested for a PlayerBytes layout that is not currently active",z.PM(),z.gA()),!1):!0}; V0Q=function(z){z.JA()===z.eh.length-1&&P7("Unexpected skip with target requested during the last sublayout")}; DZE=function(z,p,c){return c.renderingContent===void 0&&c.layoutId!==kN(z,p,c)?(P7("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",z.PM(),z.gA(),{requestingSlot:p,requestingLayout:c}),!1):!0}; t0S=function(z,p,c,B){var H=Ei(p.gA().clientMetadata,"metadata_type_ad_pod_skip_target");if(H&&H>0&&H0)){P7("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",z.slot,z.layout,{indexToPlay:p,layoutId:z.layout.layoutId});break a}z.MN=p;p=z.lA();if(z.JA()>0&&!z.V4()){var c=z.fB.get();c.K=!1;var B={};c.W&&c.videoId&&(B.cttAuthInfo={token:c.W,videoId:c.videoId});Gl("ad_to_ad",B)}z.RE(p)}}; fg=function(z){UC.call(this,z.qC,z.oa,z.tH,z.U1,z.VI,z.fB,z.P1,z.slot,z.layout,z.xb,z.An,z.KB,z.X3)}; EwY=function(z){(z=z.lA())&&z.aX()}; zN=function(z){UC.call(this,z.qC,z.oa,z.tH,z.U1,z.VI,z.fB,z.P1,z.slot,z.layout,z.xb,z.An,z.KB,z.X3);this.fN=void 0}; qMN=function(z,p){z.Bh()&&!SU(z.A4.K)||z.callback.Rw(z.slot,z.layout,p)}; pC=function(z){return c$(z.X3.get(),"html5_ssap_pass_transition_reason")}; JsW=function(z,p,c){p.Dl().currentState<2&&(c=Lg(c,z.X3),p.e5(p.gA(),c));c=p.Dl().W;z.d2(z.slot,p.gA(),c)}; M0V=function(z,p){if(z.A4.K.currentState<2){var c=Lg(p,z.X3);c==="error"?z.callback.zg(z.slot,z.layout,new Xo("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:p},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):NP(z.An,z.layout,c)}}; cT=function(z,p,c){p.Dl().currentState>=2||(p.e5(p.gA(),c),SU(p.Dl())&&(eE(z.P1,z.slot,p.gA(),c),z.fN=void 0))}; YMf=function(z,p){z.A4.W===2&&p!==z.C3()&&P7("onClipEntered: unknown cpn",z.slot,z.layout,{cpn:p})}; mZY=function(z,p){var c=z.lA();if(c){var B=c.gA().layoutId,H=z.JA()+1;z.Bh()?cT(z,c,p):c.e5(c.gA(),p);H>=0&&HH&&b.qf(x,H-B);return x}; Kli=function(z,p,c){var B=Ei(p.clientMetadata,"metadata_type_sodar_extension_data");if(B)try{Gtv(c,B)}catch(H){P7("Unexpected error when loading Sodar",z,p,{error:H})}}; uZY=function(z,p,c,B,H,T,b){Dr(z,p,new g.Ab(c,new g.D0),B,H,b,!1,T)}; Dr=function(z,p,c,B,H,T,b,D){b=b===void 0?!0:b;hd(c)&&P2(H,0,null)&&(!jD(z,"impression")&&D&&D(),z.Ja("impression"));jD(z,"impression")&&(g.wn(c,4)&&!g.wn(c,2)&&z.D_("pause"),Ou(c,4)<0&&!(Ou(c,2)<0)&&z.D_("resume"),g.wn(c,16)&&H>=.5&&z.D_("seek"),b&&g.wn(c,2)&&tH(z,c.state,p,B,H,T))}; tH=function(z,p,c,B,H,T,b,D){jD(z,"impression")&&(T?(T=H-B,T=T>=-1&&T<=2):T=Math.abs(B-H)<=1,X_(z,p,T?B:H,c,B,b,D&&T),T&&z.Ja("complete"))}; X_=function(z,p,c,B,H,T,b){ID(z,c*1E3,b);H<=0||c<=0||(p==null?0:g.r(p,16))||(p==null?0:g.r(p,32))||(P2(c,H*.25,B)&&(T&&!jD(z,"first_quartile")&&T("first"),z.Ja("first_quartile")),P2(c,H*.5,B)&&(T&&!jD(z,"midpoint")&&T("second"),z.Ja("midpoint")),P2(c,H*.75,B)&&(T&&!jD(z,"third_quartile")&&T("third"),z.Ja("third_quartile")))}; a6x=function(z,p){jD(z,"impression")&&z.D_(p?"fullscreen":"end_fullscreen")}; Z0x=function(z){jD(z,"impression")&&z.D_("clickthrough")}; LlB=function(z){z.D_("active_view_measurable")}; dZV=function(z){jD(z,"impression")&&!jD(z,"seek")&&z.D_("active_view_fully_viewable_audible_half_duration")}; Wl_=function(z){jD(z,"impression")&&!jD(z,"seek")&&z.D_("active_view_viewable")}; ysf=function(z){jD(z,"impression")&&!jD(z,"seek")&&z.D_("audio_audible")}; CeQ=function(z){jD(z,"impression")&&!jD(z,"seek")&&z.D_("audio_measurable")}; eaQ=function(z,p,c,B,H,T,b,D,t,X,x,E){this.callback=z;this.slot=p;this.layout=c;this.tH=B;this.Pq=H;this.VI=T;this.Lx=b;this.Dw=D;this.CN=t;this.X3=X;this.u8=x;this.oa=E;this.pP=!0;this.WU=this.lQ=null;this.adCpn=void 0;this.W=!1}; l6E=function(z,p,c){var B;Vw(z.u8.get(),"ads_qua","cpn."+Ei(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=wV(z.oa.get(),2))==null?void 0:B.clientPlaybackNonce)+";qt."+p+";clr."+c)}; vwN=function(z,p){var c,B;Vw(z.u8.get(),"ads_imp","cpn."+Ei(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=wV(z.oa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+p+";skp."+!!g.I((B=Ei(z.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:B.skipOrPreviewRenderer,xb))}; EX=function(z){return{enterMs:Ei(z.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Ei(z.clientMetadata,"metadata_type_layout_exit_ms")}}; qu=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J){HT.call(this,z,p,c,B,H,b,D,t,X,E);this.Lx=T;this.CN=x;this.Dw=q;this.X3=J;this.WU=this.lQ=null}; I6D=function(z,p){var c;Vw(z.u8.get(),"ads_imp","acpn."+((c=wV(z.oa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+p)}; jtv=function(z,p,c){var B;Vw(z.u8.get(),"ads_qua","cpn."+Ei(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=wV(z.oa.get(),2))==null?void 0:B.clientPlaybackNonce)+";qt."+p+";clr."+c)}; JH=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M,P,O,R,K,Z,W){this.KB=z;this.xb=p;this.An=c;this.oa=B;this.tH=H;this.VI=T;this.u8=b;this.Lx=D;this.HU=t;this.Dw=X;this.CN=x;this.U1=E;this.By=q;this.fB=J;this.lk=M;this.vM=P;this.S8=O;this.X3=R;this.W=K;this.context=Z;this.WQ=W}; Mu=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M,P,O,R){this.KB=z;this.xb=p;this.An=c;this.u8=B;this.Dw=H;this.CN=T;this.U1=b;this.oa=D;this.VI=t;this.By=X;this.fB=x;this.lk=E;this.vM=q;this.S8=J;this.X3=M;this.tH=P;this.context=O;this.WQ=R}; Flf=function(z,p,c,B){qK.call(this,"survey-interstitial",z,p,c,B)}; Yb=function(z,p,c,B,H){$6.call(this,c,z,p,B);this.u8=H;z=Ei(p.clientMetadata,"metadata_type_ad_placement_config");this.Pq=new yK(p.Ms,H,z,p.layoutId)}; mv=function(z){return Math.round(z.width)+"x"+Math.round(z.height)}; PT=function(z,p,c){c=c===void 0?hH:c;c.widthz.width*z.height*.2)return{l7:3,xf:501,errorMessage:"ad("+mv(c)+") to container("+mv(z)+") ratio exceeds limit."};if(c.height>z.height/3-p)return{l7:3,xf:501,errorMessage:"ad("+mv(c)+") covers container("+mv(z)+") center."}}; owW=function(z,p){var c=Ei(z.clientMetadata,"metadata_type_ad_placement_config");return new yK(z.Ms,p,c,z.layoutId)}; AH=function(z){return Ei(z.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; OX=function(z,p,c,B){qK.call(this,"invideo-overlay",z,p,c,B);this.interactionLoggingClientData=B}; wg=function(z,p,c,B,H,T,b,D,t,X,x,E){$6.call(this,T,z,p,H);this.u8=c;this.X=b;this.VI=D;this.vM=t;this.X3=X;this.V=x;this.L=E;this.Pq=owW(p,c)}; nwu=function(){var z=["metadata_type_invideo_overlay_ad_renderer"];CV().forEach(function(p){z.push(p)}); return{j5:z,ER:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Rs=function(z,p,c,B,H,T,b,D,t,X,x,E,q){$6.call(this,T,z,p,H);this.u8=c;this.X=b;this.S=D;this.VI=t;this.vM=X;this.X3=x;this.V=E;this.L=q;this.Pq=owW(p,c)}; QtY=function(){for(var z=["metadata_type_invideo_overlay_ad_renderer"],p=g.m(CV()),c=p.next();!c.done;c=p.next())z.push(c.value);return{j5:z,ER:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Sv=function(z){this.VI=z;this.W=!1}; rsx=function(z,p,c){qK.call(this,"survey",z,{},p,c)}; $b=function(z,p,c,B,H,T,b){$6.call(this,c,z,p,B);this.X=H;this.VI=T;this.X3=b}; UZE=function(z,p,c,B,H,T,b,D,t,X){this.mB=z;this.VI=p;this.u8=c;this.X=B;this.Dw=H;this.K=T;this.D=b;this.vM=D;this.X3=t;this.W=X}; stf=function(z,p,c,B,H,T,b,D,t,X){this.mB=z;this.VI=p;this.u8=c;this.X=B;this.Dw=H;this.K=T;this.D=b;this.vM=D;this.X3=t;this.W=X}; KC=function(z,p,c,B,H,T,b,D,t,X){td.call(this,z,p,c,B,H,T,b,t);this.Zg=D;this.oa=X}; klY=function(){var z=p7B();z.j5.push("metadata_type_ad_info_ad_metadata");return z}; gwQ=function(z,p,c,B,H,T,b){this.mB=z;this.VI=p;this.u8=c;this.K=B;this.Zg=H;this.W=T;this.oa=b}; Gl_=function(z,p,c,B,H,T,b,D){this.mB=z;this.VI=p;this.u8=c;this.K=B;this.Zg=H;this.W=T;this.X3=b;this.oa=D}; uA=function(z,p){this.slotId=p;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=z(this.triggerType)}; as=function(z,p){this.adPodIndex=z;this.W=p.length;this.adBreakLengthSeconds=p.reduce(function(B,H){return B+H},0); var c=0;for(z+=1;z0}; ET=function(z){return!!(z.eXq&&z.slot&&z.layout)}; qW=function(z){var p,c=(p=z.config)==null?void 0:p.adPlacementConfig;z=z.renderer;return!(!c||c.kind==null||!z)}; XYY=function(z){if(!iV(z.adLayoutMetadata))return!1;z=z.renderingContent;return g.I(z,Me)||g.I(z,Y7)||g.I(z,qe)||g.I(z,Jd)?!0:!1}; JZ=function(z){return z.playerVars!==void 0&&z.pings!==void 0&&z.externalVideoId!==void 0}; OT=function(z){if(!iV(z.adLayoutMetadata))return!1;z=z.renderingContent;var p=g.I(z,MW);return p?YS(p):(p=g.I(z,mi))?JZ(p):(p=g.I(z,hZ))?p.playerVars!==void 0:(p=g.I(z,Me))?p.durationMilliseconds!==void 0:g.I(z,Pr)||g.I(z,AZ)?!0:!1}; YS=function(z){z=(z.sequentialLayouts||[]).map(function(p){return g.I(p,wo)}); return z.length>0&&z.every(OT)}; Wr=function(z){return iV(z.adLayoutMetadata)?(z=g.I(z.renderingContent,RP))&&z.pings?!0:!1:!1}; YRx=function(z){if(!iV(z.adLayoutMetadata))return!1;if(g.I(z.renderingContent,x2x)||g.I(z.renderingContent,EpN))return!0;var p=g.I(z.renderingContent,ya);return g.I(z.renderingContent,Cl)||g.I(p==null?void 0:p.sidePanel,qRu)||g.I(p==null?void 0:p.sidePanel,JvD)||g.I(p==null?void 0:p.sidePanel,MeQ)?!0:!1}; ObV=function(z){var p;(p=!z)||(p=z.adSlotMetadata,p=!((p==null?void 0:p.slotId)!==void 0&&(p==null?void 0:p.slotType)!==void 0));if(p||!(m2v(z)||z.slotEntryTrigger&&z.slotFulfillmentTriggers&&z.slotExpirationTriggers))return!1;var c;z=(c=z.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.I(z,wo))?OT(c):(c=g.I(z,eR))?YRx(c):(c=g.I(z,hli))?XYY(c):(c=g.I(z,Paf))?D2D(c):(c=g.I(z,AvW))?iV(c.adLayoutMetadata)?g.I(c.renderingContent,Td)?!0:!1:!1:(z=g.I(z,lV))?Wr(z):!1}; m2v=function(z){var p;z=g.I((p=z.fulfillmentContent)==null?void 0:p.fulfilledLayout,eR);var c;return z&&((c=z.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&z.layoutExitNormalTriggers===void 0}; wYD=function(z){var p;return(z==null?void 0:(p=z.adSlotMetadata)==null?void 0:p.slotType)==="SLOT_TYPE_IN_PLAYER"}; SR_=function(z,p){var c;if((c=z.questions)==null||!c.length||!z.playbackCommands||(p===void 0||!p)&&z.questions.length!==1)return!1;z=g.m(z.questions);for(p=z.next();!p.done;p=z.next()){p=p.value;var B=c=void 0,H=((c=g.I(p,vr))==null?void 0:c.surveyAdQuestionCommon)||((B=g.I(p,IP))==null?void 0:B.surveyAdQuestionCommon);if(!Rli(H))return!1}return!0}; $2i=function(z){z=((z==null?void 0:z.playerOverlay)||{}).instreamSurveyAdRenderer;var p;if(z)if(z.playbackCommands&&z.questions&&z.questions.length===1){var c,B=((p=g.I(z.questions[0],vr))==null?void 0:p.surveyAdQuestionCommon)||((c=g.I(z.questions[0],IP))==null?void 0:c.surveyAdQuestionCommon);p=Rli(B)}else p=!1;else p=!1;return p}; Rli=function(z){if(!z)return!1;z=g.I(z.instreamAdPlayerOverlay,jR);var p=g.I(z==null?void 0:z.skipOrPreviewRenderer,xb),c=g.I(z==null?void 0:z.adInfoRenderer,FR);return(g.I(z==null?void 0:z.skipOrPreviewRenderer,oP)||p)&&c?!0:!1}; KPx=function(z){return z.linearAds!=null&&iV(z.adLayoutMetadata)}; uOB=function(z){return z.linearAd!=null&&z.adVideoStart!=null}; aSN=function(z){if(isNaN(Number(z.timeoutSeconds))||!z.text||!z.ctaButton||!g.I(z.ctaButton,g.nl)||!z.brandImage)return!1;var p;return z.backgroundImage&&g.I(z.backgroundImage,Qa)&&((p=g.I(z.backgroundImage,Qa))==null?0:p.landscape)?!0:!1}; ro=function(z,p,c,B,H,T,b){g.e.call(this);this.X3=z;this.W=p;this.D=B;this.oa=H;this.X=T;this.K=b}; d2Y=function(z,p,c){var B,H=((B=c.adSlots)!=null?B:[]).map(function(D){return g.I(D,UT)}); if(c.pL)if(Ei(p.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))O5(z.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},p.slotId); else{if(z.X3.get().T.N().Y("h5_check_forecasting_renderer_for_throttled_midroll")){var T=c.Nt.filter(function(D){var t;return((t=D.renderer)==null?void 0:t.clientForecastingAdRenderer)!=null}); T.length!==0?ZbY(z.K,T,H,p.slotId,c.ssdaiAdsConfig):O5(z.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},p.slotId)}else O5(z.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},p.slotId); LPD(z.X,p)}else{var b;B={Kx:Math.round(((T=Ei(p.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:T.Kx)||0),c6:(b=Ei(p.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.c6};ZbY(z.K,c.Nt,H,p.slotId,c.ssdaiAdsConfig,B)}}; yvS=function(z,p,c,B,H,T,b){var D=wV(z.oa.get(),1);O5(z.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return WPE(z.D.get(),c,B,H,D.clientPlaybackNonce,D.Bu,D.daiEnabled,D,T,b)},p)}; elW=function(z,p,c,B,H,T,b){p=CaQ(p,T,Number(B.prefetchMilliseconds)||0,b);z=p instanceof k?p:sT(z,B,H,p,c);return z instanceof k?z:[z]}; lSi=function(z,p,c,B,H){var T=wl(z.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");B=[new Qk({getAdBreakUrl:B.getAdBreakUrl,Kx:0,c6:0}),new iG(!0)];z=p.pauseDurationMs?p.lactThresholdMs?{slotId:T,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new zd(z.W,T),slotFulfillmentTriggers:[new f6Y(z.W)],slotExpirationTriggers:[new UX(z.W,H),new GN(z.W,T)],wA:"core",clientMetadata:new x8(B),adSlotLoggingData:c}:new k("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new k("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return z instanceof k?z:[z]}; vpW=function(z){var p,c;return((p=z.renderer)==null?void 0:(c=p.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; kS=function(z,p,c){if(z.beforeContentVideoIdStartedTrigger)z=z.beforeContentVideoIdStartedTrigger?new Zr(tf,p,z.id):new k("Not able to create BeforeContentVideoIdStartedTrigger");else{if(z.layoutIdExitedTrigger){var B;p=(B=z.layoutIdExitedTrigger)!=null&&B.triggeringLayoutId?new ev(tf,z.layoutIdExitedTrigger.triggeringLayoutId,z.id):new k("Not able to create LayoutIdExitedTrigger")}else{if(z.layoutExitedForReasonTrigger){var H,T;((H=z.layoutExitedForReasonTrigger)==null?0:H.triggeringLayoutId)&&((T= z.layoutExitedForReasonTrigger)==null?0:T.layoutExitReason)?(p=zlu(z.layoutExitedForReasonTrigger.layoutExitReason),z=p instanceof k?p:new CC(tf,z.layoutExitedForReasonTrigger.triggeringLayoutId,[p],z.id)):z=new k("Not able to create LayoutIdExitedForReasonTrigger")}else{if(z.onLayoutSelfExitRequestedTrigger){var b;p=(b=z.onLayoutSelfExitRequestedTrigger)!=null&&b.triggeringLayoutId?new rg(tf,z.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,z.id):new k("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(z.onNewPlaybackAfterContentVideoIdTrigger)z= z.onNewPlaybackAfterContentVideoIdTrigger?new UX(tf,p,z.id):new k("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(z.skipRequestedTrigger){var D;p=(D=z.skipRequestedTrigger)!=null&&D.triggeringLayoutId?new kb(tf,z.skipRequestedTrigger.triggeringLayoutId,z.id):new k("Not able to create SkipRequestedTrigger")}else if(z.slotIdEnteredTrigger){var t;p=(t=z.slotIdEnteredTrigger)!=null&&t.triggeringSlotId?new gg(tf,z.slotIdEnteredTrigger.triggeringSlotId,z.id):new k("Not able to create SlotIdEnteredTrigger")}else if(z.slotIdExitedTrigger){var X; p=(X=z.slotIdExitedTrigger)!=null&&X.triggeringSlotId?new GN(tf,z.slotIdExitedTrigger.triggeringSlotId,z.id):new k("Not able to create SkipRequestedTrigger")}else if(z.surveySubmittedTrigger){var x;p=(x=z.surveySubmittedTrigger)!=null&&x.triggeringLayoutId?new cr(tf,z.surveySubmittedTrigger.triggeringLayoutId,z.id):new k("Not able to create SurveySubmittedTrigger")}else{if(z.mediaResumedTrigger)z=z.mediaResumedTrigger&&z.id?new pYD(z.id):new k("Not able to create MediaResumedTrigger");else{if(z.closeRequestedTrigger){var E; p=(E=z.closeRequestedTrigger)!=null&&E.triggeringLayoutId?new LC(tf,z.closeRequestedTrigger.triggeringLayoutId,z.id):new k("Not able to create CloseRequestedTrigger")}else if(z.slotIdScheduledTrigger){var q;p=(q=z.slotIdScheduledTrigger)!=null&&q.triggeringSlotId?new zd(tf,z.slotIdScheduledTrigger.triggeringSlotId,z.id):new k("Not able to create SlotIdScheduledTrigger")}else{if(z.mediaTimeRangeTrigger){var J;B=Number((J=z.mediaTimeRangeTrigger)==null?void 0:J.offsetStartMilliseconds);var M;b=Number((M= z.mediaTimeRangeTrigger)==null?void 0:M.offsetEndMilliseconds);isFinite(B)&&isFinite(b)?(M=b,M===-1&&(M=c),c=B>M?new k("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:B,offsetEndMs:M},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",M===c&&B-500<=M):new Zv(B,M),z=c instanceof k?c:new F_(tf,p,c,!1,z.id)):z=new k("Not able to create MediaTimeRangeTrigger")}else if(z.contentVideoIdEndedTrigger)z=z.contentVideoIdEndedTrigger?new dg(tf,p,!1,z.id):new k("Not able to create ContentVideoIdEndedTrigger"); else{if(z.layoutIdEnteredTrigger){var P;p=(P=z.layoutIdEnteredTrigger)!=null&&P.triggeringLayoutId?new yw(tf,z.layoutIdEnteredTrigger.triggeringLayoutId,z.id):new k("Not able to create LayoutIdEnteredTrigger")}else if(z.timeRelativeToLayoutEnterTrigger){var O;p=(O=z.timeRelativeToLayoutEnterTrigger)!=null&&O.triggeringLayoutId?new Br(tf,Number(z.timeRelativeToLayoutEnterTrigger.durationMs),z.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,z.id):new k("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(z.onDifferentLayoutIdEnteredTrigger){var R; p=(R=z.onDifferentLayoutIdEnteredTrigger)!=null&&R.triggeringLayoutId&&z.onDifferentLayoutIdEnteredTrigger.slotType&&z.onDifferentLayoutIdEnteredTrigger.layoutType?new nC(tf,z.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,z.onDifferentLayoutIdEnteredTrigger.slotType,z.onDifferentLayoutIdEnteredTrigger.layoutType,z.id):new k("Not able to create CloseRequestedTrigger")}else{if(z.liveStreamBreakStartedTrigger)z=z.liveStreamBreakStartedTrigger&&z.id?new jv(tf,z.id):new k("Not able to create LiveStreamBreakStartedTrigger"); else if(z.liveStreamBreakEndedTrigger)z=z.liveStreamBreakEndedTrigger&&z.id?new lA(tf,z.id):new k("Not able to create LiveStreamBreakEndedTrigger");else{if(z.liveStreamBreakScheduledDurationMatchedTrigger){var K;p=(K=z.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&K.breakDurationMs?new vT(Number(z.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,z.id):new k("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(z.liveStreamBreakScheduledDurationNotMatchedTrigger){var Z; p=(Z=z.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&Z.breakDurationMs?new Is(Number(z.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,z.id):new k("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(z.newSlotScheduledWithBreakDurationTrigger){var W;p=(W=z.newSlotScheduledWithBreakDurationTrigger)!=null&&W.breakDurationMs?new os(Number(z.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,z.id):new k("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else p= z.prefetchCacheExpiredTrigger?new sX(tf,z.id):new k("Not able to convert an AdsControlflowTrigger.");z=p}p=z}z=p}p=z}z=p}p=z}z=p}p=z}z=p}p=z}z=p}return z}; go=function(z,p){p.W>=2&&(z.slot_pos=p.adPodIndex);z.autoplay="1"}; jkY=function(z,p,c,B,H,T,b,D){return p===null?new k("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:p,ActionCompanionAdRenderer:B}):[ISB(z,p,b,T,function(t){var X=t.slotId;t=D(t);var x=B.adLayoutLoggingData,E=new x8([new UG(B),new ix(H)]);X=B$(c.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",X);var q={layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wA:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ms:new Map, layoutExitNormalTriggers:[new UX(c.W,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:E,Gr:t(q),adLayoutLoggingData:x}})]}; FPD=function(z,p,c,B,H,T,b,D){return p===null?new k("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:p,TopBannerImageTextIconButtonedLayoutViewModel:B}):[ISB(z,p,b,T,function(t){var X=t.slotId;t=D(t);var x=B.adLayoutLoggingData,E=new x8([new sG(B),new ix(H)]);X=B$(c.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",X);var q={layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wA:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Ms:new Map,layoutExitNormalTriggers:[new UX(c.W,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:E,Gr:t(q),adLayoutLoggingData:x}})]}; rvY=function(z,p,c,B,H,T){if(!T)for(p=g.m(p),T=p.next();!T.done;T=p.next())T=T.value,Gd(z,T.renderer,T.config.adPlacementConfig.kind);z=Array.from(z.values()).filter(function(x){return opQ(x)}); p=[];T=g.m(z);for(var b=T.next(),D={};!b.done;D={cg:void 0},b=T.next()){D.cg=b.value;b=g.m(D.cg.yK);for(var t=b.next(),X={};!t.done;X={Sj:void 0},t=b.next())X.Sj=t.value,t=function(x,E){return function(q){return x.Sj.C7(q,E.cg.instreamVideoAdRenderer.elementId,x.Sj.A2)}}(X,D),X.Sj.isContentVideoCompanion?p.push(npB(c,B,H,D.cg.instreamVideoAdRenderer.elementId,X.Sj.associatedCompositePlayerBytesLayoutId,X.Sj.adSlotLoggingData,t)):z.length>1?p.push(QkY(c,B,H,D.cg.instreamVideoAdRenderer.elementId,X.Sj.adSlotLoggingData, function(x,E){return function(q){return x.Sj.C7(q,E.cg.instreamVideoAdRenderer.elementId,x.Sj.A2,x.Sj.associatedCompositePlayerBytesLayoutId)}}(X,D))):p.push(QkY(c,B,H,D.cg.instreamVideoAdRenderer.elementId,X.Sj.adSlotLoggingData,t))}return p}; Gd=function(z,p,c){if(p=U2v(p)){p=g.m(p);for(var B=p.next();!B.done;B=p.next())if((B=B.value)&&B.externalVideoId){var H=NW(z,B.externalVideoId);H.instreamVideoAdRenderer||(H.instreamVideoAdRenderer=B,H.yM=c)}else P7("InstreamVideoAdRenderer without externalVideoId")}}; U2v=function(z){var p=[],c=z.sandwichedLinearAdRenderer&&z.sandwichedLinearAdRenderer.linearAd&&g.I(z.sandwichedLinearAdRenderer.linearAd,mi);if(c)return p.push(c),p;if(z.instreamVideoAdRenderer)return p.push(z.instreamVideoAdRenderer),p;if(z.linearAdSequenceRenderer&&z.linearAdSequenceRenderer.linearAds){z=g.m(z.linearAdSequenceRenderer.linearAds);for(c=z.next();!c.done;c=z.next())c=c.value,g.I(c,mi)&&p.push(g.I(c,mi));return p}return null}; opQ=function(z){if(z.instreamVideoAdRenderer===void 0)return P7("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var p=g.m(z.yK),c=p.next();!c.done;c=p.next()){c=c.value;if(c.C7===void 0)return!1;if(c.A2===void 0)return P7("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(z.yM===void 0||c.ID===void 0||z.yM!==c.ID&&c.ID!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(z.instreamVideoAdRenderer.elementId===void 0)return P7("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:z.yM,"matching APSR kind":c.ID}),!1}return!0}; NW=function(z,p){z.has(p)||z.set(p,{instreamVideoAdRenderer:void 0,yM:void 0,adVideoId:p,yK:[]});return z.get(p)}; fl=function(z,p,c,B,H,T,b,D,t){H?NW(z,H).yK.push({W3q:p,ID:c,isContentVideoCompanion:B,A2:b,associatedCompositePlayerBytesLayoutId:T,adSlotLoggingData:D,C7:t}):P7("Companion AdPlacementSupportedRenderer without adVideoId")}; zj=function(z){var p=0;z=g.m(z.questions);for(var c=z.next();!c.done;c=z.next())if(c=c.value,c=g.I(c,vr)||g.I(c,IP)){var B=void 0;p+=((B=c.surveyAdQuestionCommon)==null?void 0:B.durationMilliseconds)||0}return p}; pc=function(z){var p,c,B,H,T=((c=g.I((p=z.questions)==null?void 0:p[0],vr))==null?void 0:c.surveyAdQuestionCommon)||((H=g.I((B=z.questions)==null?void 0:B[0],IP))==null?void 0:H.surveyAdQuestionCommon),b;p=[].concat(g.A(((b=z.playbackCommands)==null?void 0:b.instreamAdCompleteCommands)||[]),g.A((T==null?void 0:T.timeoutCommands)||[]));var D,t,X,x,E,q,J,M,P,O,R,K,Z,W,v,zY,U,HD,VW,f;return{impressionCommands:(D=z.playbackCommands)==null?void 0:D.impressionCommands,errorCommands:(t=z.playbackCommands)== null?void 0:t.errorCommands,muteCommands:(X=z.playbackCommands)==null?void 0:X.muteCommands,unmuteCommands:(x=z.playbackCommands)==null?void 0:x.unmuteCommands,pauseCommands:(E=z.playbackCommands)==null?void 0:E.pauseCommands,rewindCommands:(q=z.playbackCommands)==null?void 0:q.rewindCommands,resumeCommands:(J=z.playbackCommands)==null?void 0:J.resumeCommands,skipCommands:(M=z.playbackCommands)==null?void 0:M.skipCommands,progressCommands:(P=z.playbackCommands)==null?void 0:P.progressCommands,QP0:(O= z.playbackCommands)==null?void 0:O.clickthroughCommands,fullscreenCommands:(R=z.playbackCommands)==null?void 0:R.fullscreenCommands,activeViewViewableCommands:(K=z.playbackCommands)==null?void 0:K.activeViewViewableCommands,activeViewMeasurableCommands:(Z=z.playbackCommands)==null?void 0:Z.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(W=z.playbackCommands)==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(v=z.playbackCommands)== null?void 0:(zY=v.activeViewTracking)==null?void 0:zY.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(U=z.playbackCommands)==null?void 0:(HD=U.activeViewTracking)==null?void 0:HD.activeViewAudioMeasurableCommands,endFullscreenCommands:(VW=z.playbackCommands)==null?void 0:VW.endFullscreenCommands,abandonCommands:(f=z.playbackCommands)==null?void 0:f.abandonCommands,completeCommands:p}}; k4B=function(z,p,c,B,H,T,b){return function(D,t){return skx(z,t.slotId,D,T,function(X,x){var E=t.layoutId;X=b(X);return cZ(p,E,x,H,X,"LAYOUT_TYPE_SURVEY",[new AL(c),B],c.adLayoutLoggingData)})}}; NQi=function(z,p,c,B,H,T,b){if(!gpx(z))return new k("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:z});var D=z.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[G4S(T,p,c,B,function(t){var X=t.slotId;t=b(t);X=B$(H.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",X);var x={layoutId:X,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wA:"core"},E=new ev(H.W,B);return{layoutId:X,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ms:new Map,layoutExitNormalTriggers:[E], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([new OW(D)]),Gr:t(x)}})]}; gpx=function(z){z=g.I(z==null?void 0:z.additionalPlayerOverlay,fSV);if(!z)return!1;var p=z.slidingMessages;return z.title&&p&&p.length!==0?!0:!1}; p8x=function(z,p,c,B,H){var T;if((T=z.playerOverlay)==null||!T.instreamSurveyAdRenderer)return function(){return[]}; if(!$2i(z))return function(){return new k("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:z})}; var b=z.playerOverlay.instreamSurveyAdRenderer,D=zj(b);return D<=0?function(){return new k("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b})}:function(t,X){var x=zcN(t,c,B,function(E){var q=E.slotId; E=X(E);var J=pc(b);q=B$(H.K.get(),"LAYOUT_TYPE_SURVEY",q);var M={layoutId:q,layoutType:"LAYOUT_TYPE_SURVEY",wA:"core"},P=new ev(H.W,B),O=new kb(H.W,q),R=new cr(H.W,q),K=new ibQ(H.W);return{layoutId:q,layoutType:"LAYOUT_TYPE_SURVEY",Ms:new Map,layoutExitNormalTriggers:[P,K],layoutExitSkipTriggers:[O],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[R],O1:[],wA:"core",clientMetadata:new x8([new P1(b),new ix(p),new sW(D/1E3),new Nj(J)]),Gr:E(M),adLayoutLoggingData:b.adLayoutLoggingData}}); t=NQi(z,c,x.slotId,B,H,t,X);return t instanceof k?t:[x].concat(g.A(t))}}; V7S=function(z,p,c,B,H,T,b){b=b===void 0?!1:b;var D=[];try{var t=[];if(c.renderer.linearAdSequenceRenderer)var X=function(P){P=czf(P.slotId,c,p,H(P),B,T,b);t=P.D_H;return P.JM}; else if(c.renderer.instreamVideoAdRenderer)X=function(P){var O=P.slotId;P=H(P);var R=b,K=c.config.adPlacementConfig,Z=Bkx(K),W=Z.x6,v=Z.BX;Z=c.renderer.instreamVideoAdRenderer;var zY;if(Z==null?0:(zY=Z.playerOverlay)==null?0:zY.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var U=BZ(Z,R);zY=Math.min(W+U.videoLengthSeconds*1E3,v);R=new as(0,[U.videoLengthSeconds]);v=U.videoLengthSeconds;var HD=U.playerVars,VW=U.instreamAdPlayerOverlayRenderer,f=U.playerOverlayLayoutRenderer, F=U.adVideoId,N=H7W(c),h=U.Ms;U=U.w5;var n=Z==null?void 0:Z.adLayoutLoggingData;Z=Z==null?void 0:Z.sodarExtensionData;O=B$(p.K.get(),"LAYOUT_TYPE_MEDIA",O);var FY={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",wA:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",Ms:h,layoutExitNormalTriggers:[new lA(p.W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([new XH(B),new d2(v),new W1(HD),new e3(W),new lx(zY),VW&&new xZ(VW), f&&new EW(f),new ix(K),new tL(F),new TD(R),new oR(N),Z&&new CF(Z),new ux({current:null}),new IR({}),new pO(U)].filter(i7E)),Gr:P(FY),adLayoutLoggingData:n}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var x=Tkx(z,B,c.adSlotLoggingData,X);D.push(x);for(var E=g.m(t),q=E.next();!q.done;q=E.next()){var J=q.value,M=J(z,H);if(M instanceof k)return M;D.push.apply(D,g.A(M))}}catch(P){return new k(P,{errorMessage:P.message,AdPlacementRenderer:c,numberOfSurveyRenderers:b7v(c)})}return D}; b7v=function(z){z=(z.renderer.linearAdSequenceRenderer||{}).linearAds;return z!=null&&z.length?z.filter(function(p){var c,B;return((c=g.I(p,mi))==null?void 0:(B=c.playerOverlay)==null?void 0:B.instreamSurveyAdRenderer)!=null}).length:0}; czf=function(z,p,c,B,H,T,b){var D=p.config.adPlacementConfig,t=Bkx(D),X=t.x6,x=t.BX;t=(p.renderer.linearAdSequenceRenderer||{}).linearAds;if(t==null||!t.length)throw new TypeError("Expected linear ads");var E=[],q={mz:X,qe:0,a_I:E};t=t.map(function(M){return D9x(z,M,q,c,B,D,H,x,b)}).map(function(M,P){P=new as(P,E); return M(P)}); var J=t.map(function(M){return M.CK}); return{JM:t7S(c,z,X,J,D,H7W(p),B,x,T),D_H:t.map(function(M){return M.e5a})}}; D9x=function(z,p,c,B,H,T,b,D,t){var X=BZ(g.I(p,mi),t),x=c.mz,E=c.qe,q=Math.min(x+X.videoLengthSeconds*1E3,D);c.mz=q;c.qe++;c.a_I.push(X.videoLengthSeconds);var J,M,P=(J=g.I(p,mi))==null?void 0:(M=J.playerOverlay)==null?void 0:M.instreamSurveyAdRenderer;if(X.adVideoId==="nPpU29QrbiU"&&P==null)throw new TypeError("Survey slate media has no survey overlay");return function(O){go(X.playerVars,O);var R,K,Z=X.videoLengthSeconds,W=X.playerVars,v=X.Ms,zY=X.w5,U=X.instreamAdPlayerOverlayRenderer,HD=X.playerOverlayLayoutRenderer, VW=X.adVideoId,f=(R=g.I(p,mi))==null?void 0:R.adLayoutLoggingData;R=(K=g.I(p,mi))==null?void 0:K.sodarExtensionData;K=B$(B.K.get(),"LAYOUT_TYPE_MEDIA",z);var F={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",wA:"adapter"};O={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",Ms:v,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"adapter",clientMetadata:new x8([new XH(b),new d2(Z),new W1(W),new e3(x),new lx(q),new v1(E),new ux({current:null}), U&&new xZ(U),HD&&new EW(HD),new ix(T),new tL(VW),new TD(O),R&&new CF(R),P&&new zb(P),new IR({}),new pO(zY)].filter(i7E)),Gr:H(F),adLayoutLoggingData:f};Z=p8x(g.I(p,mi),T,b,O.layoutId,B);return{CK:O,e5a:Z}}}; BZ=function(z,p){if(!z)throw new TypeError("Expected instream video ad renderer");if(!z.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=Dz(z.playerVars),B=Number(c.length_seconds);if(isNaN(B))throw new TypeError("Expected valid length seconds in player vars");var H=Number(z.trimmedMaxNonSkippableAdDurationMs);B=isNaN(H)?B:Math.min(B,H/1E3);H=z.playerOverlay||{};H=H.instreamAdPlayerOverlayRenderer===void 0?null:H.instreamAdPlayerOverlayRenderer;var T=z.playerOverlay|| {};T=T.playerOverlayLayoutRenderer===void 0?null:T.playerOverlayLayoutRenderer;var b=c.video_id;b||(b=(b=z.externalVideoId)?b:void 0);if(!b)throw new TypeError("Expected valid video id in IVAR");if(p&&B===0){var D;p=(D=X8B[b])!=null?D:B}else p=B;return{playerVars:c,videoLengthSeconds:p,instreamAdPlayerOverlayRenderer:H,playerOverlayLayoutRenderer:T,adVideoId:b,Ms:z.pings?W$(z.pings):new Map,w5:dl(z.pings)}}; H7W=function(z){z=Number(z.driftRecoveryMs);return isNaN(z)||z<=0?null:z}; Bkx=function(z){var p=z.adTimeOffset||{};z=p.offsetEndMilliseconds;p=Number(p.offsetStartMilliseconds);if(isNaN(p))throw new TypeError("Expected valid start offset");z=Number(z);if(isNaN(z))throw new TypeError("Expected valid end offset");return{x6:p,BX:z}}; x9W=function(z){var p,c=(p=Ei(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:p.current;if(!c)return null;p=Ei(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var B=z.layoutId,H=Ei(z.clientMetadata,"metadata_type_content_cpn"),T=Ei(z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=Ei(z.clientMetadata,"metadata_type_player_underlay_renderer"),D=Ei(z.clientMetadata,"metadata_type_ad_placement_config"),t=Ei(z.clientMetadata,"metadata_type_video_length_seconds"); var X=Vi(z.clientMetadata,"metadata_type_layout_enter_ms")&&Vi(z.clientMetadata,"metadata_type_layout_exit_ms")?(Ei(z.clientMetadata,"metadata_type_layout_exit_ms")-Ei(z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BH:B,contentCpn:H,lH:c,HF:p,instreamAdPlayerOverlayRenderer:T,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:D,videoLengthSeconds:t,EA:X,inPlayerLayoutId:Ei(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ei(z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; JzE=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M){B=wl(B,"SLOT_TYPE_PLAYER_BYTES");z=Eli(H,z,b,c,B,t,X);if(z instanceof k)return z;var P;X=(P=Ei(z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:P.layoutId;if(!X)return new k("Invalid adNotify layout");p=qGQ(X,H,T,c,D,p,t,x,E,q,J,M,b);return p instanceof k?p:[z].concat(g.A(p))}; qGQ=function(z,p,c,B,H,T,b,D,t,X,x,E,q){c=M7_(p,c,B,T,b,D,t,X,x,E,q);if(c instanceof k)return c;z=YGB(p,z,b,H,c);return z instanceof k?z:[].concat(g.A(z.BO),[z.Ah])}; hcY=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J){p=M7_(z,p,c,H,T,D,t,X,x,E,q,J);if(p instanceof k)return p;z=m9f(z,c,T,b,B,D.La,p);return z instanceof k?z:z.BO.concat(z.Ah)}; M7_=function(z,p,c,B,H,T,b,D,t,X,x,E){var q=HZ(B,c,X);return q instanceof Xo?new k(q):X.T.N().experiments.JD("html5_refactor_in_player_slot_generation")?function(J){var M=new as(0,[q.Xz]);J=PSB(p,q.layoutId,q.bx,c,iq(q.playerVars,q.Z2,T,t,M),q.Xz,H,M,b(J),D.get(q.bx.externalVideoId),E);M=[];if(q.bx.playerOverlay.instreamAdPlayerOverlayRenderer){var P=x9W(J);if(!P)return P7("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,J),{layout:J,BO:[]}; M=[AzS(z,P.contentCpn,P.BH,function(R){return Tj(p,R.slotId,"core",P,hf(x,R))},P.inPlayerSlotId)].concat(g.A(M)); if(P.instreamAdPlayerUnderlayRenderer&&bq(X)){var O=P.instreamAdPlayerUnderlayRenderer;M=[O7V(z,P.contentCpn,P.BH,function(R){return w8E(p,R.slotId,O,P.adPlacementConfig,P.BH,hf(x,R))})].concat(g.A(M))}}return{layout:J, BO:M}}:function(J){var M=new as(0,[q.Xz]); return{layout:PSB(p,q.layoutId,q.bx,c,iq(q.playerVars,q.Z2,T,t,M),q.Xz,H,M,b(J),D.get(q.bx.externalVideoId),E),BO:[]}}}; HZ=function(z,p,c){if(!z.playerVars)return new Xo("No playerVars available in InstreamVideoAdRenderer.");var B,H;if(z.elementId==null||z.playerVars==null||z.playerOverlay==null||((B=z.playerOverlay)==null?void 0:B.instreamAdPlayerOverlayRenderer)==null&&((H=z.playerOverlay)==null?void 0:H.playerOverlayLayoutRenderer)==null||z.pings==null||z.externalVideoId==null)return new Xo("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:z});B=Dz(z.playerVars);H=Number(B.length_seconds); isNaN(H)&&(H=0,P7("Expected valid length seconds in player vars but got NaN"));if(c.V4(p.kind==="AD_PLACEMENT_KIND_START")){if(z.layoutId===void 0)return new Xo("Expected server generated layout ID in instreamVideoAdRenderer");p=z.layoutId}else p=z.elementId;return{layoutId:p,bx:z,playerVars:B,Z2:z.playerVars,Xz:H}}; iq=function(z,p,c,B,H){z.iv_load_policy=B;p=Dz(p);if(p.cta_conversion_urls)try{z.cta_conversion_urls=JSON.parse(p.cta_conversion_urls)}catch(T){P7(T)}c.TU&&(z.ctrl=c.TU);c.cV&&(z.ytr=c.cV);c.DI&&(z.ytrcc=c.DI);c.isMdxPlayback&&(z.mdx="1");z.vvt&&(z.vss_credentials_token=z.vvt,c.x8&&(z.vss_credentials_token_type=c.x8),c.mdxEnvironment&&(z.mdx_environment=c.mdxEnvironment));go(z,H);return z}; Rci=function(z){var p=new Map;z=g.m(z);for(var c=z.next();!c.done;c=z.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&p.set(c.hostElementId,c);return p}; VE=function(z){return z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; SGV=function(z){return z!=null}; d9_=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J){for(var M=[],P=g.m(z),O=P.next();!O.done;O=P.next())if(O=O.value,!m2v(O)&&!wYD(O)){var R=VE(O)&&!!O.slotEntryTrigger.beforeContentVideoIdStartedTrigger,K=t.V4(R),Z=$9W(O,X,B,c.Bu,K);if(Z instanceof k)return Z;var W=void 0,v={slotId:O.adSlotMetadata.slotId,slotType:O.adSlotMetadata.slotType,slotPhysicalPosition:(W=O.adSlotMetadata.slotPhysicalPosition)!=null?W:1,wA:"core",slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers, slotExpirationTriggers:Z.slotExpirationTriggers},zY=g.I(O.fulfillmentContent.fulfilledLayout,wo);if(zY){if(!OT(zY))return new k("Invalid PlayerBytesAdLayoutRenderer");W=E&&!(VE(O)&&O.slotEntryTrigger.beforeContentVideoIdStartedTrigger);Z=Z.slotFulfillmentTriggers.some(function(U){return U instanceof vT}); K=W?KZx(v,O.adSlotMetadata.triggerEvent,zY,c,B,T,X,z,K,q,Z,J):u6S(v,O.adSlotMetadata.triggerEvent,zY,p,c,B,H,T,b,D,t,X,z,x,K,O.adSlotMetadata.triggeringSourceLayoutId);if(K instanceof k)return K;Z=[];VE(O)&&Z.push(new Tb({iP:VE(O)&&!!O.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));W&&Z.push(new IR({}));c.La&&Z.push(new fF({}));Z.push(new H3(R));O=Object.assign({},v,{clientMetadata:new x8(Z),fulfilledLayout:K.layout,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});M.push.apply(M,g.A(K.BO)); M.push(O)}else if(R=g.I(O.fulfillmentContent.fulfilledLayout,eR)){if(!YRx(R))return new k("Invalid PlayerUnderlayAdLayoutRenderer");R=aGV(R,B,c.Bu,T,v,O.adSlotMetadata.triggerEvent,O.adSlotMetadata.triggeringSourceLayoutId);if(R instanceof k)return R;O=Object.assign({},v,{clientMetadata:new x8([]),fulfilledLayout:R,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});M.push(O)}else if(R=g.I(O.fulfillmentContent.fulfilledLayout,Paf)){if(!D2D(R))return new k("Invalid AboveFeedAdLayoutRenderer");R= Z7Q(R,B,c.Bu,T,v,O.adSlotMetadata.triggerEvent,O.adSlotMetadata.triggeringSourceLayoutId);if(R instanceof k)return R;O=Object.assign({},v,{clientMetadata:new x8([]),fulfilledLayout:R,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});M.push(O)}else if(R=g.I(O.fulfillmentContent.fulfilledLayout,AvW)){if(!iV(R.adLayoutMetadata)||!g.I(R.renderingContent,Td))return new k("Invalid BelowPlayerAdLayoutRenderer");R=Z7Q(R,B,c.Bu,T,v,O.adSlotMetadata.triggerEvent,O.adSlotMetadata.triggeringSourceLayoutId); if(R instanceof k)return R;O=Object.assign({},v,{clientMetadata:new x8([]),fulfilledLayout:R,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});M.push(O)}else if(R=g.I(O.fulfillmentContent.fulfilledLayout,lV)){if(!Wr(R))return new k("Invalid PlayerBytesSequenceItemAdLayoutRenderer");R=LZY(R,B,c.Bu,T,v,O.adSlotMetadata.triggerEvent);if(R instanceof k)return R;O=Object.assign({},v,{clientMetadata:new x8([]),fulfilledLayout:R,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});M.push(O)}else return new k("Unable to retrieve a client slot ["+ v.slotType+"] from a given AdSlotRenderer")}return M}; LZY=function(z,p,c,B,H,T){var b={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,wA:"core"};p=Db(z,p,c);return p instanceof k?p:(c=g.I(z.renderingContent,RP))&&c.pings?Object.assign({},b,{renderingContent:z.renderingContent,Ms:W$(c.pings)},p,{Gr:hf(B,H)(b),clientMetadata:new x8([new ix(t$(T))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}):new k("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; Z7Q=function(z,p,c,B,H,T,b){var D={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,wA:"core"};p=Db(z,p,c);if(p instanceof k)return p;c=[];c.push(new ix(t$(T)));T==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&b!==void 0&&c.push(new w2(b));return Object.assign({},D,{renderingContent:z.renderingContent,Ms:new Map([["impression",WZN(z)]])},p,{Gr:hf(B,H)(D),clientMetadata:new x8(c),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; aGV=function(z,p,c,B,H,T,b){if(z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(b=g.I(z.renderingContent,ya))if(b=g.I(b.sidePanel,JvD)){var D={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,wA:"core"};p=Db(z,p,c);z=p instanceof k?p:Object.assign({},D,{renderingContent:z.renderingContent,Ms:new Map([["impression",b.impressionPings||[]],["resume",b.resumePings||[]]])},p,{Gr:hf(B,H)(D),clientMetadata:new x8([new ix(t$(T))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}else z= new k("DismissablePanelTextPortraitImageRenderer is missing");else z=new k("SqueezebackPlayerSidePanelRenderer is missing");else z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.I(z.renderingContent,x2x)?(b={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,wA:"core"},p=Db(z,p,c),z=p instanceof k?p:Object.assign({},b,{renderingContent:z.renderingContent,Ms:new Map},p,{Gr:hf(B,H)(b),clientMetadata:new x8([new ix(t$(T))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})): z=new k("CounterfactualRenderer is missing"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?z=new k("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?z=new k("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.I(z.renderingContent,Cl)?(T={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType, wA:"core"},p=Db(z,p,c),z=p instanceof k?p:b?Object.assign({},T,{renderingContent:z.renderingContent,Ms:new Map},p,{Gr:hf(B,H)(T),clientMetadata:new x8([new w2(b)]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}):new k("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):z=new k("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.I(z.renderingContent,EpN)? (T={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,wA:"core"},p=Db(z,p,c),z=p instanceof k?p:Object.assign({},T,{renderingContent:z.renderingContent,Ms:new Map([])},p,{Gr:hf(B,H)(T),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new x8([])})):z=new k("AdsEngagementPanelSectionListViewModel is missing"):z=new k("LayoutType ["+z.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return z}; KZx=function(z,p,c,B,H,T,b,D,t,X,x,E){if((E==null?void 0:E.Kx)===void 0||(E==null?void 0:E.c6)===void 0)return new k("Cached ad break range from cue point is missing");var q=Db(c,H,B.Bu);if(q instanceof k)return q;q={layoutExitMuteTriggers:[],layoutExitNormalTriggers:q.layoutExitNormalTriggers,layoutExitSkipTriggers:[],O1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.I(c.renderingContent,mi))return z=yzY(z,p,c,q,H,T,D,t,B.Bu,b,E.Kx,E.c6),z instanceof k?z:z.J1===void 0?new k("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:z.layout,BO:[z.J1]};var J=g.I(c.renderingContent,MW);if(J){if(!iV(c.adLayoutMetadata))return new k("Invalid ad layout metadata");if(!YS(J))return new k("Invalid sequential layout");J=J.sequentialLayouts.map(function(M){return M.playerBytesAdLayoutRenderer}); z=CSW(z,p,c,q,J,H,B,T,b,t,D,X,E.Kx,E.c6,x);return z instanceof k?z:{layout:z.O4,BO:z.BO}}return new k("Not able to convert a sequential layout")}; CSW=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M){var P=ecW(H,q,J);if(P instanceof k)return P;var O=[],R=[];P=g.m(P);for(var K=P.next();!K.done;K=P.next()){var Z=K.value;K=z;var W=H[Z.qe],v=Z,zY=p;Z=T;var U=b,HD=D,VW=t,f=X,F=x,N=Xc(W);if(N instanceof k)K=N;else{var h={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,wA:"adapter"};v=lGx(zY,W,v,Z);v instanceof k?K=v:(K=Object.assign({},h,xH,{Ms:N,renderingContent:W.renderingContent,clientMetadata:new x8(v),Gr:hf(HD,K)(h),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}), K=(W=EO(F,K,Z,U.Bu,HD,VW,f,void 0,!0))?W instanceof k?W:{layout:K,J1:W}:new k("Expecting associatedInPlayerSlot"))}if(K instanceof k)return K;O.push(K.layout);R.push(K.J1)}H={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,wA:"core"};p=[new oR(Number(c.driftRecoveryMs)),new e3(q),new lx(J),new ix(t$(p)),new B3(E),new IR({})];M&&p.push(new bG({}));return{O4:Object.assign({},H,B,{xp:O,Ms:new Map,clientMetadata:new x8(p),Gr:hf(D,z)(H)}),BO:R}}; yzY=function(z,p,c,B,H,T,b,D,t,X,x,E){if(!OT(c))return new k("Invalid PlayerBytesAdLayoutRenderer");var q=Xc(c);if(q instanceof k)return q;var J={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,wA:"core"},M=g.I(c.renderingContent,mi);if(!M)return new k("Invalid rendering content for DAI media layout");M=BZ(M,!1);x={ES:M,qe:0,mz:x,eC:Math.min(x+M.videoLengthSeconds*1E3,E),Fz:new as(0,[M.videoLengthSeconds])};var P;E=(P=Number(c.driftRecoveryMs))!=null?P:void 0;p=lGx(p, c,x,H,E);if(p instanceof k)return p;z=Object.assign({},J,B,{Ms:q,renderingContent:c.renderingContent,clientMetadata:new x8(p),Gr:hf(T,z)(J),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});return(H=EO(b,z,H,t,T,X,D,void 0,!0))?H instanceof k?H:{layout:z,J1:H}:new k("Expecting associatedInPlayerSlot")}; u6S=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M,P){var O=Db(c,T,H.Bu);if(O instanceof k)return O;if(g.I(c.renderingContent,mi)){t=vlu([c],H,t);if(t instanceof k)return t;if(t.length!==1)return new k("Only expected one media layout.");z=IGx(z,p,c,O,t[0],void 0,"core",B,T,b,D,X,q,J,M,H.Bu,E,void 0,P);return z instanceof k?z:{layout:z.layout,BO:z.J1?[z.J1]:[]}}var R=g.I(c.renderingContent,MW);if(R){if(!iV(c.adLayoutMetadata))return new k("Invalid ad layout metadata");if(!YS(R))return new k("Invalid sequential layout"); R=R.sequentialLayouts.map(function(K){return K.playerBytesAdLayoutRenderer}); z=jNW(z,p,c.adLayoutMetadata,O,R,B,T,H,t,b,D,X,x,E,M,q,J,P);return z instanceof k?z:{layout:z.O4,BO:z.BO}}return new k("Not able to convert a sequential layout")}; jNW=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J,M,P,O,R){var K=new Dk({current:null}),Z=vlu(H,D,t);if(Z instanceof k)return Z;t=[];for(var W=[],v=void 0,zY=0;zY0&&(zY.push(R),zY.push(new Vk(v.adPodSkipTarget)));(T=X.get(v.externalVideoId))&&zY.push(new UW(T));T=zY}else T= new k("Invalid vod media renderer")}if(T instanceof k)return T;z=Object.assign({},b,B,{Ms:Z,renderingContent:c.renderingContent,clientMetadata:new x8(T),Gr:hf(x,z)(b),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.I(c.renderingContent,mi);if(!c||!JZ(c))return new k("Invalid meida renderer");E=NW(E,c.externalVideoId);E.instreamVideoAdRenderer=c;E.yM="AD_PLACEMENT_KIND_START";return J?(t=EO(q,z,t,P,x,O,M,R,!1),t instanceof k?t:nlV(z.layoutId,q)&&t?{layout:Object.assign({},z,{clientMetadata:new x8(T.concat(new Mj(t)))})}: {layout:z,J1:t}):{layout:z}}; FZV=function(z,p,c,B,H){if(!OT(p))return new k("Invalid PlayerBytesAdLayoutRenderer");var T=g.I(p.renderingContent,Me);if(!T||T.durationMilliseconds===void 0)return new k("Invalid endcap renderer");var b={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,wA:"adapter"};B=[new kZ(T.durationMilliseconds),new Nj({impressionCommands:void 0,abandonCommands:T.abandonCommands?[{commandExecutorCommand:T.abandonCommands}]:void 0,completeCommands:T.completionCommands}),new ix(B), new S3("LAYOUT_TYPE_ENDCAP")];if(H){B.push(new bx(H.Fz.adPodIndex-1));B.push(new v1(H.Fz.adPodIndex));var D;B.push(new Vk((D=H.adPodSkipTarget)!=null?D:-1))}return Object.assign({},b,xH,{renderingContent:p.renderingContent,clientMetadata:new x8(B),Ms:T.skipPings?new Map([["skip",T.skipPings]]):new Map,Gr:hf(c,z)(b),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}; EO=function(z,p,c,B,H,T,b,D,t){z=z.filter(function(x){return x.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&x.adSlotMetadata.triggeringSourceLayoutId===p.layoutId}); if(z.length!==0){if(z.length!==1)return new k("Invalid InPlayer slot association for the given PlayerBytes layout");z=z[0];b=$9W(z,T,c,B,b);if(b instanceof k)return b;var X;T={slotId:z.adSlotMetadata.slotId,slotType:z.adSlotMetadata.slotType,slotPhysicalPosition:(X=z.adSlotMetadata.slotPhysicalPosition)!=null?X:1,wA:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};X=g.I(z.fulfillmentContent.fulfilledLayout, hli);if(!X||!XYY(X))return new k("Invalid InPlayerAdLayoutRenderer");b={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,wA:"core"};c=Db(X,c,B);if(c instanceof k)return c;B=[];t&&B.push(new IR({}));if(X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")B.push.apply(B,g.A(QNE(z.adSlotMetadata.triggerEvent,p)));else if(X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")B.push(new ix(t$(z.adSlotMetadata.triggerEvent))),D&&B.push(D);else return new k("Not able to parse an SDF InPlayer layout"); H=Object.assign({},b,c,{renderingContent:X.renderingContent,Ms:new Map,Gr:hf(H,T)(b),clientMetadata:new x8(B),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},T,{fulfilledLayout:H,clientMetadata:new x8([])})}}; QNE=function(z,p){var c=[];c.push(new ix(t$(z)));c.push(new w2(p.layoutId));(z=Ei(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&c.push(new ux(z));(z=Ei(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new Dk(z));(z=Ei(p.clientMetadata,"metadata_type_remote_slots_data"))&&c.push(new UW(z));(z=Ei(p.clientMetadata,"metadata_type_ad_next_params"))&&c.push(new GE(z));(z=Ei(p.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new N9(z));(z= Ei(p.clientMetadata,"metadata_type_ad_pod_info"))&&c.push(new TD(z));(p=Ei(p.clientMetadata,"metadata_type_ad_video_id"))&&c.push(new tL(p));return c}; olx=function(z,p,c,B,H,T){function b(X){return qp(p,X)} var D=B.Fq.inPlayerSlotId,t={layoutId:B.Fq.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",wA:"core"};c={slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:new yw(b,z),slotFulfillmentTriggers:[new gg(b,D)],slotExpirationTriggers:[new GN(b,D),new UX(b,c)]};z=Object.assign({},t,{layoutExitNormalTriggers:[new ev(b,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],Ms:new Map,clientMetadata:new x8([new mB(B.Fq), new ix(B.adPlacementConfig),H]),Gr:hf(T,c)(t),adLayoutLoggingData:B.Fq.adLayoutLoggingData});return Object.assign({},c,{clientMetadata:new x8([new nF(z)])})}; nlV=function(z,p){p=g.m(p);for(var c=p.next();!c.done;c=p.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var B=g.I(c.fulfillmentContent.fulfilledLayout,eR);if(B&&(B=g.I(B.renderingContent,ya))&&B.associatedPlayerBytesLayoutId===z)return c}}; $9W=function(z,p,c,B,H){var T=rzx(kS(z.slotEntryTrigger,c,B),H,z,p);if(T instanceof k)return T;for(var b=[],D=g.m(z.slotFulfillmentTriggers),t=D.next();!t.done;t=D.next()){t=kS(t.value,c,B);if(t instanceof k)return t;b.push(t)}b=U9S(b,H,z,p);p=[];z=g.m(z.slotExpirationTriggers);for(H=z.next();!H.done;H=z.next()){H=kS(H.value,c,B);if(H instanceof k)return H;p.push(H)}return{slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:p}}; rzx=function(z,p,c,B){return p&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&z instanceof Zr?new uA(function(H){return qp(B,H)},c.adSlotMetadata.slotId):z}; U9S=function(z,p,c,B){return p&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?z.map(function(H){return H instanceof gg?new zd(function(T){return qp(B,T)},c.adSlotMetadata.slotId):H}):z}; Db=function(z,p,c){for(var B=[],H=g.m(z.layoutExitNormalTriggers||[]),T=H.next();!T.done;T=H.next()){T=kS(T.value,p,c);if(T instanceof k)return T;B.push(T)}H=[];T=g.m(z.layoutExitSkipTriggers||[]);for(var b=T.next();!b.done;b=T.next()){b=kS(b.value,p,c);if(b instanceof k)return b;H.push(b)}T=[];b=g.m(z.layoutExitMuteTriggers||[]);for(var D=b.next();!D.done;D=b.next()){D=kS(D.value,p,c);if(D instanceof k)return D;T.push(D)}b=[];z=g.m(z.layoutExitUserInputSubmittedTriggers||[]);for(D=z.next();!D.done;D= z.next()){D=kS(D.value,p,c);if(D instanceof k)return D;b.push(D)}return{layoutExitNormalTriggers:B,layoutExitSkipTriggers:H,layoutExitMuteTriggers:T,layoutExitUserInputSubmittedTriggers:b,O1:[]}}; Xc=function(z){var p=g.I(z.renderingContent,mi);if(p==null?0:p.pings)return W$(p.pings);z=g.I(z.renderingContent,Me);return(z==null?0:z.skipPings)?new Map([["skip",z.skipPings]]):new Map}; lGx=function(z,p,c,B,H){p=g.I(p.renderingContent,mi);if(!p)return new k("Invalid rendering content for DAI media layout");z=[new XH(B),new d2(c.ES.videoLengthSeconds),new W1(c.ES.playerVars),new e3(c.mz),new lx(c.eC),new v1(c.qe),new ix(t$(z)),new tL(c.ES.adVideoId),new TD(c.Fz),p.sodarExtensionData&&new CF(p.sodarExtensionData),new ux({current:null}),new IR({}),new pO(dl(p.pings))].filter(SGV);H!==void 0&&z.push(new oR(H));return z}; ecW=function(z,p,c){z=z.map(function(t){return BZ(g.I(t.renderingContent,mi),!1)}); var B=z.map(function(t){return t.videoLengthSeconds}),H=B.map(function(t,X){return new as(X,B)}),T=p,b=c,D=[]; z.forEach(function(t,X){b=Math.min(T+t.videoLengthSeconds*1E3,c);go(t.playerVars,H[X]);D.push({ES:t,mz:T,eC:b,qe:X,Fz:H[X]});T=b}); return D}; vlu=function(z,p,c){for(var B=[],H=g.m(z),T=H.next();!T.done;T=H.next())if(T=g.I(T.value.renderingContent,mi)){if(!JZ(T))return new k("Invalid vod media renderer");B.push(sND(T))}H=B.map(function(E){return E.Xz}); T=[];for(var b=0,D=0;D0?f:-1;else if(h=g.I(N,Me)){N=iFQ(z,p,c,h,T,P,D,U,f);if(N instanceof k){J=N;break a}N= N(q);O.push(N.i9);R=[].concat(g.A(N.JC),g.A(R));K=[].concat(g.A(N.uf),g.A(K));N.J1&&(VW=[N.J1].concat(g.A(VW)))}else if(h=g.I(N,Pr)){if(J===void 0){J=new k("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:h});break a}N=V3W(z,p,c,T,h,zY,D,J,P,c$(x,"supports_multi_step_on_desktop"));if(N instanceof k){J=N;break a}N=N(q);O.push(N.i9);N.J1&&VW.push(N.J1);R=[].concat(g.A(N.JC),g.A(R));K=[].concat(g.A(N.uf),g.A(K));Z=[].concat(g.A(N.q9),g.A(Z));W=[].concat(g.A(N.f8), g.A(W));v=[zY].concat(g.A(v))}else if(N=g.I(N,AZ)){N=DjB(z,p,c,T,N,zY,D,P);if(N instanceof k){J=N;break a}N=N(q);O.push(N.i9);N.J1&&VW.push(N.J1);K=[].concat(g.A(N.uf),g.A(K))}else{J=new k("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}J={xp:O,layoutExitSkipTriggers:R,layoutExitUserInputSubmittedTriggers:Z,O1:W,layoutExitMuteTriggers:K,Vw:v,BO:VW}}}else a:if(P=YWE(B,c,x),P instanceof k)J=P;else{O=0;R=[];K=[];Z=[];W=[];v=[];zY=[];U=new aR({current:null});HD=new Dk({current:null}); VW=!1;F=[];f=-1;M=g.m(B);for(N=M.next();!N.done;N=M.next())if(N=N.value,g.I(N,hZ)){N=T2u(p,c,g.I(N,hZ),D);if(N instanceof k){J=N;break a}N=N(q);R.push(N.i9);K=[].concat(g.A(N.JC),g.A(K));Z=[].concat(g.A(N.uf),g.A(Z));N.J1&&(F=[N.J1].concat(g.A(F)))}else if(g.I(N,mi)){f=HZ(g.I(N,mi),c,x);if(f instanceof Xo){J=new k(f);break a}N=new as(O,P);N=mj_(p,f.layoutId,f.bx,c,iq(f.playerVars,f.Z2,b,X,N),f.Xz,T,N,D(q),HD,t.get(f.bx.externalVideoId),void 0,E);O++;R.push(N.i9);K=[].concat(g.A(N.JC),g.A(K));Z=[].concat(g.A(N.uf), g.A(Z));VW||(zY.push(HD),VW=!0);f=(f=f.bx.adPodSkipTarget)&&f>0?f:-1}else if(g.I(N,Me)){N=iFQ(z,p,c,g.I(N,Me),T,O,D,HD,f);if(N instanceof k){J=N;break a}N=N(q);R.push(N.i9);K=[].concat(g.A(N.JC),g.A(K));Z=[].concat(g.A(N.uf),g.A(Z));N.J1&&(F=[N.J1].concat(g.A(F)))}else if(g.I(N,Pr)){if(J===void 0){J=new k("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.I(N,Pr)});break a}N=V3W(z,p,c,T,g.I(N,Pr),U,D,J,O,c$(x,"supports_multi_step_on_desktop")); if(N instanceof k){J=N;break a}N=N(q);R.push(N.i9);N.J1&&F.push(N.J1);K=[].concat(g.A(N.JC),g.A(K));Z=[].concat(g.A(N.uf),g.A(Z));W=[].concat(g.A(N.q9),g.A(W));v=[].concat(g.A(N.f8),g.A(v));zY=[U].concat(g.A(zY))}else if(g.I(N,AZ)){N=DjB(z,p,c,T,g.I(N,AZ),U,D,O);if(N instanceof k){J=N;break a}N=N(q);R.push(N.i9);N.J1&&F.push(N.J1);Z=[].concat(g.A(N.uf),g.A(Z))}else{J=new k("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}J={xp:R,layoutExitSkipTriggers:K,layoutExitUserInputSubmittedTriggers:W, O1:v,layoutExitMuteTriggers:Z,Vw:zY,BO:F}}J instanceof k?q=J:(v=q.slotId,P=J.xp,O=J.layoutExitSkipTriggers,R=J.layoutExitMuteTriggers,K=J.layoutExitUserInputSubmittedTriggers,Z=J.Vw,q=D(q),W=H?H.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",v=H?H.layoutId:B$(p.K.get(),W,v),zY={layoutId:v,layoutType:W,wA:"core"},q={layout:{layoutId:v,layoutType:W,Ms:new Map,layoutExitNormalTriggers:[new rg(p.W,v)],layoutExitSkipTriggers:O,layoutExitMuteTriggers:R,layoutExitUserInputSubmittedTriggers:K,O1:[],wA:"core", clientMetadata:new x8([new Zk(P)].concat(g.A(Z))),Gr:q(zY)},BO:J.BO});return q}}; YWE=function(z,p,c){var B=[];z=g.m(z);for(var H=z.next();!H.done;H=z.next())if(H=H.value,g.I(H,mi)){H=HZ(g.I(H,mi),p,c);if(H instanceof Xo)return new k(H);B.push(H.Xz)}return B}; PxS=function(z,p,c,B,H,T,b,D){if(!SR_(c,D===void 0?!1:D))return new k("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var t=zj(c);if(t<=0)return new k("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var X=new aR({current:null}),x=k4B(z,p,c,X,B,T,b);return h5W(z,B,T,t,H,function(E,q){var J=E.slotId,M=pc(c);E=b(E);var P,O=(P=mW(p,B,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?P: B$(p.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);J={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wA:"core"};P=x(O,q);var R=Ei(P.clientMetadata,"metadata_type_fulfilled_layout");R||P7("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");M=[new ix(B),new kZ(t),new Nj(M),X];R&&M.push(new S3(R.layoutType));return{CQa:{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ms:new Map,layoutExitNormalTriggers:[new rg(p.W,O)],layoutExitSkipTriggers:[new kb(p.W, q.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new cr(p.W,q.layoutId)],O1:[],wA:"core",clientMetadata:new x8(M),Gr:E(J)},EAa:P}})}; ALE=function(z){if(!uOB(z))return!1;var p=g.I(z.adVideoStart,wW);return p?g.I(z.linearAd,mi)&&ET(p)?!0:(P7("Invalid Sandwich with notify"),!1):!1}; OFE=function(z){if(z.linearAds==null)return!1;z=g.I(z.adStart,wW);return z?ET(z)?!0:(P7("Invalid LASR with notify"),!1):!1}; w1S=function(z){if(!KPx(z))return!1;z=g.I(z.adStart,wW);return z?ET(z)?!0:(P7("Invalid LASR with notify"),!1):!1}; RF=function(z,p,c,B,H,T,b,D,t,X){this.X=z;this.K=p;this.W=c;this.X3=B;this.ze=H;this.D=T;this.VI=b;this.GL=D;this.PO=t;this.loadPolicy=X===void 0?1:X}; WPE=function(z,p,c,B,H,T,b,D,t,X){var x=[];if(p.length===0&&B.length===0&&c.length===0)return x;p=p.filter(qW);var E=c.filter(ObV),q=B.filter(qW),J=new Map,M=Rci(p),P=c.some(function(n){var FY;return(n==null?void 0:(FY=n.adSlotMetadata)==null?void 0:FY.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),O=c.some(function(n){var FY; return(n==null?void 0:(FY=n.adSlotMetadata)==null?void 0:FY.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),R=c.some(function(n){var FY; return(n==null?void 0:(FY=n.adSlotMetadata)==null?void 0:FY.slotType)==="SLOT_TYPE_IN_PLAYER"}),K=c.some(function(n){var FY,Rg; return(n==null?void 0:(FY=n.adSlotMetadata)==null?void 0:FY.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(n==null?void 0:(Rg=n.adSlotMetadata)==null?void 0:Rg.slotType)==="SLOT_TYPE_ABOVE_FEED"}); c=c.some(function(n){var FY;return(n==null?void 0:(FY=n.adSlotMetadata)==null?void 0:FY.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(P||O||R||K||c)X=d9_(E,p,D,H,M,z.ze.get(),z.loadPolicy,J,z.X3.get(),z.X.get(),R,b,t,X),X instanceof k?P7(X,void 0,void 0,{contentCpn:H}):x.push.apply(x,g.A(X));X=g.m(p);for(c=X.next();!c.done;c=X.next())c=c.value,O=R5W(z,J,c,H,T,b,P,D,M,t,E),O instanceof k?P7(O,void 0,void 0,{renderer:c.renderer,config:c.config.adPlacementConfig,kind:c.config.adPlacementConfig.kind,contentCpn:H,daiEnabled:b}):x.push.apply(x,g.A(O));SWY(z.X3.get())||(T=$jD(z,q,H,D,M,J),x.push.apply(x,g.A(T)));if(z.D===null||b&&!D.tG){var Z, W,v;z=D.La&&p.length===1&&((Z=p[0].config)==null?void 0:(W=Z.adPlacementConfig)==null?void 0:W.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((v=p[0].renderer)==null?void 0:v.adBreakServiceRenderer);if(!x.length&&!z){var zY,U,HD,VW;P7("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":p.length,contentCpn:H,"first APR kind":(zY=p[0])==null?void 0:(U=zY.config)==null?void 0:(HD=U.adPlacementConfig)==null?void 0:HD.kind,renderer:(VW=p[0])==null?void 0: VW.renderer})}return x}Z=B.filter(qW);x.push.apply(x,g.A(rvY(J,Z,z.K.get(),z.D,H,P)));if(!x.length){var f,F,N,h;P7("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":p.length,contentCpn:H,daiEnabled:b.toString(),"first APR kind":(f=p[0])==null?void 0:(F=f.config)==null?void 0:(N=F.adPlacementConfig)==null?void 0:N.kind,renderer:(h=p[0])==null?void 0:h.renderer})}return x}; $jD=function(z,p,c,B,H,T){function b(q){return hf(z.ze.get(),q)} var D=[];p=g.m(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var X=t.renderer,x=X.sandwichedLinearAdRenderer,E=X.linearAdSequenceRenderer;x&&ALE(x)?(P7("Found AdNotify with SandwichedLinearAdRenderer"),E=g.I(x.adVideoStart,wW),x=g.I(x.linearAd,mi),Gd(T,X,t.config.adPlacementConfig.kind),X=void 0,E=qGQ((X=E)==null?void 0:X.layout.layoutId,z.K.get(),z.W.get(),t.config.adPlacementConfig,t.adSlotLoggingData,x,c,B,b,H,z.loadPolicy,z.X3.get(),z.ze.get()),E instanceof k?P7(E):D.push.apply(D,g.A(E))): E&&(!E.adLayoutMetadata&&OFE(E)||E.adLayoutMetadata&&w1S(E))&&(P7("Found AdNotify with LinearAdSequenceRenderer"),Gd(T,X,t.config.adPlacementConfig.kind),X=void 0,x=t3E((X=g.I(E.adStart,wW))==null?void 0:X.layout.layoutId,z.K.get(),z.W.get(),t.config.adPlacementConfig,t.adSlotLoggingData,E.linearAds,iV(E.adLayoutMetadata)?E.adLayoutMetadata:void 0,c,B,b,H,z.loadPolicy,z.X3.get()),x instanceof k?P7(x):D.push.apply(D,g.A(x)))}return D}; R5W=function(z,p,c,B,H,T,b,D,t,X,x){function E(R){return hf(z.ze.get(),R)} var q=c.renderer,J=c.config.adPlacementConfig,M=J.kind,P=c.adSlotLoggingData,O=D.tG&&M==="AD_PLACEMENT_KIND_START";O=T&&!O;if(q.adsEngagementPanelRenderer!=null)return fl(p,c.elementId,M,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.adsEngagementPanelRenderer;R=hf(z.ze.get(),R);return SC(v,zY,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new kl(U),K,Z,U.impressionPings,R,q.adsEngagementPanelRenderer.adLayoutLoggingData,W)}),[]; if(q.adsEngagementPanelLayoutViewModel)return fl(p,c.elementId,M,q.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,q.adsEngagementPanelLayoutViewModel.adVideoId,q.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.adsEngagementPanelLayoutViewModel;R=hf(z.ze.get(),R);return $H(v,zY,"LAYOUT_TYPE_PANEL",new gk(U),K,Z,R,q.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,W)}),[]; if(q.actionCompanionAdRenderer!=null){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return jkY(z.K.get(),z.D,z.W.get(),q.actionCompanionAdRenderer,J,P,B,E);fl(p,c.elementId,M,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.actionCompanionAdRenderer;R=hf(z.ze.get(),R);return SC(v,zY,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new UG(U),K,Z,U.impressionPings,R,q.actionCompanionAdRenderer.adLayoutLoggingData,W)})}else if(q.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(q.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return FPD(z.K.get(),z.D,z.W.get(),q.topBannerImageTextIconButtonedLayoutViewModel,J,P,B,E); fl(p,c.elementId,M,q.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,q.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,q.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.topBannerImageTextIconButtonedLayoutViewModel;R=hf(z.ze.get(),R);return $H(v,zY,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new sG(U),K,Z,R,q.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,W)})}else if(q.imageCompanionAdRenderer)fl(p, c.elementId,M,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.imageCompanionAdRenderer; R=hf(z.ze.get(),R);return SC(v,zY,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new zD(U),K,Z,U.impressionPings,R,q.imageCompanionAdRenderer.adLayoutLoggingData,W)}); else if(q.bannerImageLayoutViewModel)fl(p,c.elementId,M,q.bannerImageLayoutViewModel.isContentVideoCompanion,q.bannerImageLayoutViewModel.adVideoId,q.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.bannerImageLayoutViewModel;R=hf(z.ze.get(),R);return $H(v,zY,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new pF(U),K,Z,R,q.bannerImageLayoutViewModel.adLayoutLoggingData,W)}); else if(q.shoppingCompanionCarouselRenderer)fl(p,c.elementId,M,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,J,P,function(R,K,Z,W){var v=z.W.get(),zY=R.slotId,U=q.shoppingCompanionCarouselRenderer;R=hf(z.ze.get(),R);return SC(v,zY,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new c1(U),K,Z,U.impressionPings,R,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,W)}); else if(q.adBreakServiceRenderer){if(!vpW(c))return[];if(M==="AD_PLACEMENT_KIND_PAUSE")return lSi(z.K.get(),J,P,c.renderer.adBreakServiceRenderer,B);if(M!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&M!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return elW(z.K.get(),J,P,c.renderer.adBreakServiceRenderer,B,H,T);D.La||P7("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:M,adPlacementConfig:J,daiEnabledForContentVideo:String(T),isServedFromLiveInfra:String(D.La),clientPlaybackNonce:D.clientPlaybackNonce}); if(M==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!z.VI)return new k("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!z.PO)return new k("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");z.PO.lh({adPlacementRenderer:c,contentCpn:B,Bu:H});H=z.VI.get().getCurrentTimeSec(1,!1);return KBN(z.K.get(),c.renderer.adBreakServiceRenderer,J,H,B,P,T)}if(!z.GL)return new k("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); z.GL.lh({adPlacementRenderer:c,contentCpn:B,Bu:H})}else{if(q.clientForecastingAdRenderer)return NkS(z.K.get(),z.W.get(),J,P,q.clientForecastingAdRenderer,B,H,E);if(q.invideoOverlayAdRenderer)return cLv(z.K.get(),z.W.get(),J,P,q.invideoOverlayAdRenderer,B,H,E);if(q.instreamAdPlayerOverlayRenderer)return z5B(z.K.get(),z.W.get(),J,P,q.instreamAdPlayerOverlayRenderer,B,E);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&O)return V7S(z.K.get(),z.W.get(),c,B,E,X,!z.X3.get().T.N().Y("html5_override_ad_video_length_killswitch")); if(q.linearAdSequenceRenderer&&!O){if(b)return[];Gd(p,q,M);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!KPx(q.linearAdSequenceRenderer))return new k("Received invalid LinearAdSequenceRenderer.")}else if(q.linearAdSequenceRenderer.linearAds==null)return new k("Received invalid LinearAdSequenceRenderer.");if(g.I(q.linearAdSequenceRenderer.adStart,wW)){P7("Found AdNotify in LinearAdSequenceRenderer");c=g.I(q.linearAdSequenceRenderer.adStart,wW);if(!teD(c))return new k("Invalid AdMessageRenderer."); T=q.linearAdSequenceRenderer.linearAds;return X1v(z.X.get(),z.K.get(),z.W.get(),z.ze.get(),J,P,c,iV(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,T,B,H,D,E,t,z.loadPolicy,z.X3.get())}return M3f(z.K.get(),z.W.get(),J,P,q.linearAdSequenceRenderer.linearAds,iV(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,B,H,D,E,t,z.loadPolicy,z.X3.get(),x)}if(!q.remoteSlotsRenderer||T){if(q.instreamVideoAdRenderer&& !O){if(b)return[];Gd(p,q,M);return hcY(z.K.get(),z.W.get(),J,P,q.instreamVideoAdRenderer,B,H,D,E,t,z.loadPolicy,z.X3.get(),z.ze.get(),x)}if(q.instreamSurveyAdRenderer)return PxS(z.K.get(),z.W.get(),q.instreamSurveyAdRenderer,J,P,B,E,c$(z.X3.get(),"supports_multi_step_on_desktop"));if(q.sandwichedLinearAdRenderer!=null)return uOB(q.sandwichedLinearAdRenderer)?g.I(q.sandwichedLinearAdRenderer.adVideoStart,wW)?(P7("Found AdNotify in SandwichedLinearAdRenderer"),c=g.I(q.sandwichedLinearAdRenderer.adVideoStart, wW),teD(c)?(T=g.I(q.sandwichedLinearAdRenderer.linearAd,mi))?JzE(c,T,J,z.X.get(),z.K.get(),z.W.get(),z.ze.get(),P,B,H,D,E,t,z.loadPolicy,z.X3.get()):new k("Missing IVAR from Sandwich"):new k("Invalid AdMessageRenderer.")):M3f(z.K.get(),z.W.get(),J,P,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,B,H,D,E,t,z.loadPolicy,z.X3.get()):new k("Received invalid SandwichedLinearAdRenderer.");if(q.videoAdTrackingRenderer!=null)return glY(z.K.get(),z.W.get(),q.videoAdTrackingRenderer, J,P,B,H,D.Jo,E)}}return[]}; Kc=function(z,p,c,B,H,T,b,D){g.e.call(this);var t=this;this.K=z;this.D=p;this.HU=B;this.VI=H;this.X3=T;this.u8=b;this.tH=D;this.W=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.qZ()||c.get().removeListener(t)}); B.get().addListener(this);this.addOnDisposeCallback(function(){B.qZ()||B.get().removeListener(t)})}; aku=function(z,p,c){var B=z.VI.get().getCurrentTimeSec(1,!1);z.X3.get().T.N().OW()&&Vw(z.u8.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.UI.toFixed(3));O5(z.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var H=z.D.get(),T=p.adPlacementRenderer.renderer.adBreakServiceRenderer,b=p.contentCpn,D=p.adPlacementRenderer.adSlotLoggingData,t=uq(z.X3.get()),X=z.u8;if(H.X3.get().T.N().experiments.JD("enable_smearing_expansion_dai")){var x=g.P3(H.X3.get().T.N().experiments, "max_prefetch_window_sec_for_livestream_optimization");var E=g.P3(H.X3.get().T.N().experiments,"min_prefetch_offset_sec_for_livestream_optimization");t={RH:uHN(c),wq:!1,cueProcessedMs:B*1E3};var q=c.startSecs+c.UI;if(B===0)t.p9=new Zv(0,q*1E3);else{E=c.startSecs-E;var J=E-B;t.p9=J<=0?new Zv(E*1E3,q*1E3):new Zv(Math.floor(B+Math.random()*Math.min(J,x))*1E3,q*1E3)}x=t}else x={RH:uHN(c),wq:!1},q=c.startSecs+c.UI,c.startSecs<=B?t=new Zv((c.startSecs-4)*1E3,q*1E3):(E=Math.max(0,c.startSecs-B-10),t=new Zv(Math.floor(B+ Math.random()*(t?B===0?0:Math.min(E,5):E))*1E3,q*1E3)),x.p9=t;H=sT(H,T,b,x,D,[new LF(c)]);X.get().T.I6(x.p9.start/1E3-B,c.startSecs-B);return[H]})}; aF=function(z){var p,c=(p=Ei(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:p.current;if(!c)return null;p=Ei(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var B=z.layoutId,H=Ei(z.clientMetadata,"metadata_type_content_cpn"),T=Ei(z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=Ei(z.clientMetadata,"metadata_type_player_overlay_layout_renderer"),D=Ei(z.clientMetadata,"metadata_type_player_underlay_renderer"),t=Ei(z.clientMetadata, "metadata_type_ad_placement_config"),X=Ei(z.clientMetadata,"metadata_type_video_length_seconds");var x=Vi(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Ei(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Vi(z.clientMetadata,"metadata_type_layout_enter_ms")&&Vi(z.clientMetadata,"metadata_type_layout_exit_ms")?(Ei(z.clientMetadata,"metadata_type_layout_exit_ms")-Ei(z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BH:B,contentCpn:H,lH:c,HF:p,instreamAdPlayerOverlayRenderer:T, playerOverlayLayoutRenderer:b,instreamAdPlayerUnderlayRenderer:D,adPlacementConfig:t,videoLengthSeconds:X,EA:x,inPlayerLayoutId:Ei(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ei(z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; LBQ=function(z,p){return ZF_(z,p)}; dju=function(z,p){p=ZF_(z,p);if(!p)return null;var c;p.EA=(c=Ei(z.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return p}; ZF_=function(z,p){var c,B=(c=Ei(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!B)return null;c=NJi(z,p);return{AJ:GrV(z,p),adPlacementConfig:Ei(z.clientMetadata,"metadata_type_ad_placement_config"),s7:c,contentCpn:Ei(z.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Ei(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ei(z.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Ei(z.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,EA:void 0,lH:B,BH:z.layoutId,videoLengthSeconds:Ei(z.clientMetadata,"metadata_type_video_length_seconds")}}; Zb=function(z,p,c,B,H,T,b,D,t){g.e.call(this);this.X=z;this.V=p;this.L=c;this.D=B;this.W=H;this.K=T;this.ze=b;this.X3=D;this.oa=t;this.Xu=!0}; WBW=function(z,p,c){return O7V(z.W.get(),p.contentCpn,p.BH,function(B){return w8E(z.K.get(),B.slotId,c,p.adPlacementConfig,p.BH,hf(z.ze.get(),B))})}; Lc=function(z,p,c,B,H,T,b,D){g.e.call(this);this.K=z;this.W=p;this.D=c;this.X3=B;this.X=H;this.oa=T;this.VI=b;this.fB=D}; dW=function(z){g.e.call(this);this.W=z}; O5=function(z,p,c,B){z.W().Nn(p,B);c=c();z=z.W();z.BM.t$("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",p,B,c);p=g.m(c);for(c=p.next();!c.done;c=p.next())a:{B=z;c=c.value;B.BM.Iz("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);B.BM.Iz("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var H=B.W;if(g.wz(c.slotId))throw new k("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(uG(H,c))throw new k("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!H.Pn.eD.has(c.slotType))throw new k("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!H.Pn.gM.has(c.slotType))throw new k("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");r9(H,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);r9(H,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);r9(H,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var T=B.W,b=c.slotType+"_"+c.slotPhysicalPosition,D=jE(T,b);if(uG(T,c))throw new k("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");D.set(c.slotId,new QcY(c));T.W.set(b,D)}catch(HD){HD instanceof k&&HD.Zc?(B.BM.Bt("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",HD.Zc,c),P7(HD,c,void 0,void 0,HD.P_)):(B.BM.Bt("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),P7(HD,c));break a}uG(B.W,c).V=!0;try{var t=B.W,X=uG(t,c),x=c.slotEntryTrigger,E=t.Pn.u_.get(x.triggerType);E&&(E.FW("TRIGGER_CATEGORY_SLOT_ENTRY",x,c,null),X.tD.set(x.triggerId,E));for(var q=g.m(c.slotFulfillmentTriggers),J=q.next();!J.done;J=q.next()){var M=J.value,P=t.Pn.u_.get(M.triggerType);P&&(P.FW("TRIGGER_CATEGORY_SLOT_FULFILLMENT",M,c,null),X.MZ.set(M.triggerId,P))}for(var O=g.m(c.slotExpirationTriggers),R=O.next();!R.done;R=O.next()){var K=R.value,Z=t.Pn.u_.get(K.triggerType);Z&&(Z.FW("TRIGGER_CATEGORY_SLOT_EXPIRATION", K,c,null),X.U.set(K.triggerId,Z))}var W=t.Pn.eD.get(c.slotType).get().build(t.D,c);X.G=W;var v=t.Pn.gM.get(c.slotType).get().build(t.L,c);v.init();X.K=v}catch(HD){HD instanceof k&&HD.Zc?(B.BM.Bt("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",HD.Zc,c),P7(HD,c,void 0,void 0,HD.P_)):(B.BM.Bt("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),P7(HD,c));SE(B,c,!0);break a}B.BM.Iz("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);B.W.Ci(c);for(var zY=g.m(B.K),U=zY.next();!U.done;U= zY.next())U.value.Ci(c);LO(B,c)}}; WZ=function(z,p,c,B,H){g.e.call(this);var T=this;this.K=z;this.D=p;this.By=c;this.context=H;this.W=new Map;B.get().addListener(this);this.addOnDisposeCallback(function(){B.qZ()||B.get().removeListener(T)})}; LPD=function(z,p){var c=0x8000000000000;var B=0;for(var H=g.m(p.slotFulfillmentTriggers),T=H.next();!T.done;T=H.next())T=T.value,T instanceof F_?(c=Math.min(c,T.W.start),B=Math.max(B,T.W.end)):P7("Found unexpected fulfillment trigger for throttled slot.",p,null,{fulfillmentTrigger:T});B=new Zv(c,B);c="throttledadcuerange:"+p.slotId;z.W.set(c,p);z.By.get().addCueRange(c,B.start,B.end,!1,z);Zp(z.context.X3.get())&&(p=B.start,B=B.end,H={},z.context.K2.kA("tcrr",(H.cid=c,H.sm=p,H.em=B,H)))}; yE=function(){g.e.apply(this,arguments);this.Xu=!0;this.Im=new Map;this.W=new Map}; Cc=function(z,p){z=g.m(z.Im.values());for(var c=z.next();!c.done;c=z.next())if(c.value.layoutId===p)return!0;return!1}; eC=function(z,p){z=g.m(z.W.values());for(var c=z.next();!c.done;c=z.next()){c=g.m(c.value);for(var B=c.next();!B.done;B=c.next())if(B=B.value,B.layoutId===p)return B}P7("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.wz(p)),layoutId:p})}; yLV=function(){this.W=new Map}; CxN=function(z,p){this.callback=z;this.slot=p}; lq=function(){}; e5E=function(z,p,c){this.callback=z;this.slot=p;this.VI=c}; lkB=function(z,p,c){this.callback=z;this.slot=p;this.VI=c;this.K=!1;this.W=0}; vZN=function(z,p,c){this.callback=z;this.slot=p;this.VI=c}; vZ=function(z){this.VI=z}; IF=function(z){g.e.call(this);this.f_=z;this.Yt=new Map}; jC=function(z,p){for(var c=[],B=g.m(z.Yt.values()),H=B.next();!H.done;H=B.next()){H=H.value;var T=H.trigger;T instanceof cr&&T.triggeringLayoutId===p&&c.push(H)}c.length?lG(z.f_(),c):P7("Survey is submitted but no registered triggers can be activated.")}; Fc=function(z,p,c){IF.call(this,z);var B=this;this.X3=c;p.get().addListener(this);this.addOnDisposeCallback(function(){p.qZ()||p.get().removeListener(B)})}; oF=function(z){g.e.call(this);this.W=z;this.Xu=!0;this.Yt=new Map;this.L=new Set;this.D=new Set;this.X=new Set;this.V=new Set;this.K=new Set}; nc=function(z){g.e.call(this);this.W=z;this.Yt=new Map}; QE=function(z,p){for(var c=[],B=g.m(z.Yt.values()),H=B.next();!H.done;H=B.next())H=H.value,H.trigger.W===p.layoutId&&c.push(H);c.length&&lG(z.W(),c)}; rW=function(z,p,c){g.e.call(this);var B=this;this.W=z;this.context=c;this.Yt=new Map;p.get().addListener(this);this.addOnDisposeCallback(function(){p.qZ()||p.get().removeListener(B)})}; UO=function(z,p,c,B,H){g.e.call(this);var T=this;this.K=z;this.By=p;this.VI=c;this.oa=B;this.context=H;this.Xu=!0;this.Yt=new Map;this.W=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.qZ()||c.get().removeListener(T)})}; IkB=function(z,p,c,B,H,T,b,D,t,X){if(wV(z.oa.get(),1).clientPlaybackNonce!==t)throw new k("Cannot register CueRange-based trigger for different content CPN",{trigger:c});z.Yt.set(c.triggerId,{hT:new Hr(p,c,B,H),cueRangeId:T});z.By.get().addCueRange(T,b,D,X,z);Zp(z.context.X3.get())&&(t={},z.context.K2.kA("crr",(t.ca=p,t.tt=c.triggerType,t.st=B.slotType,t.lt=H==null?void 0:H.layoutType,t.cid=T,t.sm=b,t.em=D,t)))}; jRD=function(z,p){z=g.m(z.Yt.entries());for(var c=z.next();!c.done;c=z.next()){var B=g.m(c.value);c=B.next().value;B=B.next().value;if(p===B.cueRangeId)return c}return""}; sO=function(z,p){g.e.call(this);var c=this;this.X=z;this.K=new Map;this.D=new Map;this.W=null;p.get().addListener(this);this.addOnDisposeCallback(function(){p.qZ()||p.get().removeListener(c)}); var B;this.W=((B=p.get().FU)==null?void 0:B.slotId)||null}; FBQ=function(z,p){var c=[];z=g.m(z.values());for(var B=z.next();!B.done;B=z.next())B=B.value,B.slot.slotId===p&&c.push(B);return c}; kH=function(z){g.e.call(this);this.W=z;this.Xu=!0;this.Yt=new Map}; NP=function(z,p,c){p=p.layoutId;for(var B=[],H=g.m(z.Yt.values()),T=H.next();!T.done;T=H.next())if(T=T.value,T.trigger instanceof rg){var b;if(b=T.trigger.layoutId===p){b=c;var D=lUu.get(T.category);b=D?D===b:!1}b&&B.push(T)}B.length&&lG(z.W(),B)}; gW=function(z){g.e.call(this);this.W=z;this.Xu=!0;this.Yt=new Map}; Gj=function(z,p,c,B,H){g.e.call(this);var T=this;this.L=z;this.HU=p;this.VI=c;this.u8=B;this.W=null;this.Xu=!0;this.Yt=new Map;this.D=new Map;p.get().addListener(this);this.addOnDisposeCallback(function(){p.qZ()||p.get().removeListener(T)}); H.get().addListener(this);this.addOnDisposeCallback(function(){H.qZ()||H.get().removeListener(T)})}; nZY=function(z){z.W&&(z.K&&(z.K.stop(),z.K.start()),oZY(z,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; oZY=function(z,p){for(var c=[],B=g.m(z.Yt.values()),H=B.next();!H.done;H=B.next())H=H.value,H.trigger.triggerType===p&&c.push(H);c.length>0&&lG(z.L(),c)}; Np=function(z,p,c,B,H){H=H===void 0?!0:H;for(var T=[],b=g.m(z.Yt.values()),D=b.next();!D.done;D=b.next()){D=D.value;var t=D.trigger;if(t.triggerType===p){if(t instanceof vT||t instanceof Is||t instanceof os){if(H&&t.breakDurationMs!==c)continue;if(!H&&t.breakDurationMs===c)continue;if(B.has(t.triggerId))continue}T.push(D)}}T.length>0&&lG(z.L(),T)}; QRN=function(z){z=z.adPlacementRenderer.config.adPlacementConfig;if(!z.prefetchModeConfig||!z.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;z=Number(z.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(z)||z<=0?0:Math.floor(Math.random()*z)}; rLx=function(z){z=z.adPlacementRenderer.config.adPlacementConfig;if(z.prefetchModeConfig&&z.prefetchModeConfig.cacheFetchRefreshDurationMs&&(z=Number(z.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(z)||z<=0)))return z}; fc=function(z){z.W=null;z.Yt.clear();z.D.clear();z.K&&z.K.stop();z.X&&z.X.stop()}; za=function(z){g.e.call(this);this.D=z;this.Xu=!0;this.Yt=new Map;this.W=new Map;this.K=new Map}; Ujx=function(z,p){var c=[];if(p=z.W.get(p.layoutId)){p=g.m(p);for(var B=p.next();!B.done;B=p.next())(B=z.K.get(B.value.triggerId))&&c.push(B)}return c}; pk=function(z){g.e.call(this);this.W=z;this.Yt=new Map}; sRQ=function(z,p){for(var c=[],B=g.m(z.Yt.values()),H=B.next();!H.done;H=B.next())H=H.value,H.trigger instanceof uA&&H.trigger.slotId===p&&c.push(H);c.length>=1&&lG(z.W(),c)}; kDv=function(z,p){var c={slotId:wl(p,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],wA:"surface",clientMetadata:new x8([])},B=Object,H=B.assign;p=B$(p,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);p={layoutId:p,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ms:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"surface", clientMetadata:new x8([]),Gr:Lc_(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.wA,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,p,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return H.call(B,{},z,{eXq:!0,slot:c,layout:p})}; CaQ=function(z,p,c,B){var H=z.kind;B=B?!1:!z.hideCueRangeMarker;switch(H){case "AD_PLACEMENT_KIND_START":return B={RH:new Zv(-0x8000000000000,-0x8000000000000),wq:B},c!=null&&(B.p9=new Zv(-0x8000000000000,-0x8000000000000)),B;case "AD_PLACEMENT_KIND_END":return B={RH:new Zv(0x7ffffffffffff,0x8000000000000),wq:B},c!=null&&(B.p9=new Zv(Math.max(0,p-c),0x8000000000000)),B;case "AD_PLACEMENT_KIND_MILLISECONDS":H=z.adTimeOffset;H.offsetStartMilliseconds||P7("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); H.offsetEndMilliseconds||P7("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");z=Number(H.offsetStartMilliseconds);H=Number(H.offsetEndMilliseconds);H===-1&&(H=p);if(Number.isNaN(z)||Number.isNaN(H)||z>H)return new k("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:z,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===p&&z-500<=H);B={RH:new Zv(z,H),wq:B};if(c!=null){z=Math.max(0,z-c);if(z===H)return B;B.p9=new Zv(z,H)}return B; default:return new k("AdPlacementKind not supported in convertToRange.",{kind:H,adPlacementConfig:z})}}; uHN=function(z){var p=z.startSecs*1E3;return new Zv(p,p+z.UI*1E3)}; gZu=function(z){if(!z||!z.adPlacements&&!z.adSlots)return!1;for(var p=g.m(z.adPlacements||[]),c=p.next();!c.done;c=p.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;z=g.m(z.adSlots||[]);for(p=z.next();!p.done;p=z.next()){var B=c=void 0;if(((c=g.I(p.value,UT))==null?void 0:(B=c.adSlotMetadata)==null?void 0:B.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; ct=function(z){this.X3=z;this.K=new Map;this.W=new Map;this.D=new Map}; wl=function(z,p){if(Bt(z.X3.get())){var c=z.K.get(p)||0;c++;z.K.set(p,c);return p+"_"+c}return g.Zu(16)}; B$=function(z,p,c){if(Bt(z.X3.get())){var B=z.W.get(p)||0;B++;z.W.set(p,B);return c+"_"+p+"_"+B}return g.Zu(16)}; qp=function(z,p){if(Bt(z.X3.get())){var c=z.D.get(p)||0;c++;z.D.set(p,c);return p+"_"+c}return g.Zu(16)}; GDY=function(z){var p=[new w2(z.BH),new KF(z.lH),new ix(z.adPlacementConfig),new d2(z.videoLengthSeconds),new sW(z.EA)];z.instreamAdPlayerOverlayRenderer&&p.push(new xZ(z.instreamAdPlayerOverlayRenderer));z.playerOverlayLayoutRenderer&&p.push(new EW(z.playerOverlayLayoutRenderer));z.HF&&p.push(new Dk(z.HF));return p}; N2S=function(z,p,c,B,H,T){z=c.inPlayerLayoutId?c.inPlayerLayoutId:B$(T,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);var b,D,t=c.instreamAdPlayerOverlayRenderer?(b=c.instreamAdPlayerOverlayRenderer)==null?void 0:b.adLayoutLoggingData:(D=c.playerOverlayLayoutRenderer)==null?void 0:D.adLayoutLoggingData;b={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wA:p};return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ms:new Map,layoutExitNormalTriggers:[new ev(function(X){return qp(T, X)},c.BH)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:p,clientMetadata:B,Gr:H(b),adLayoutLoggingData:t}}; Ht=function(z,p){var c=this;this.K=z;this.X3=p;this.W=function(B){return qp(c.K.get(),B)}}; w8E=function(z,p,c,B,H,T){c=new x8([new qj(c),new ix(B)]);p=B$(z.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",p);B={layoutId:p,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wA:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ms:new Map,layoutExitNormalTriggers:[new ev(function(b){return qp(z.K.get(),b)},H)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:c,Gr:T(B),adLayoutLoggingData:void 0}}; Tj=function(z,p,c,B,H){var T=GDY(B);return N2S(p,c,B,new x8(T),H,z.K.get())}; fkx=function(z,p,c,B,H){var T=GDY(B);T.push(new B1(B.AJ));T.push(new H1(B.s7));return N2S(p,c,B,new x8(T),H,z.K.get())}; SC=function(z,p,c,B,H,T,b,D,t,X){p=B$(z.K.get(),c,p);var x={layoutId:p,layoutType:c,wA:"core"},E=new Map;b&&E.set("impression",b);b=[new nC(z.W,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];X&&b.push(new CC(z.W,X,["normal"]));return{layoutId:p,layoutType:c,Ms:E,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([B,new ix(T),new w2(H)]),Gr:D(x),adLayoutLoggingData:t}}; $H=function(z,p,c,B,H,T,b,D,t){p=B$(z.K.get(),c,p);var X={layoutId:p,layoutType:c,wA:"core"},x=[new nC(z.W,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];t&&x.push(new CC(z.W,t,["normal"]));return{layoutId:p,layoutType:c,Ms:new Map,layoutExitNormalTriggers:x,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([B,new ix(T),new w2(H)]),Gr:b(X),adLayoutLoggingData:D}}; Mp=function(z,p,c){var B=[];B.push(new Qw(z.W,c));p&&B.push(p);return B}; J$=function(z,p,c,B,H,T,b){var D={layoutId:p,layoutType:c,wA:"core"};return{layoutId:p,layoutType:c,Ms:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[new LC(z.W,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([new f7(B),new ix(H)]),Gr:T(D),adLayoutLoggingData:B.adLayoutLoggingData}}; cZ=function(z,p,c,B,H,T,b,D){var t={layoutId:p,layoutType:T,wA:"core"};return{layoutId:p,layoutType:T,Ms:new Map,layoutExitNormalTriggers:[new ev(z.W,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([new ix(B)].concat(g.A(b))),Gr:H(t),adLayoutLoggingData:D}}; mW=function(z,p,c,B){if(z.X3.get().V4(p.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)P7("Expected SSAP layout ID in renderer",void 0,void 0,{caller:B});else return c}; B2W=function(z,p,c,B,H,T,b,D,t,X,x,E,q){z=YH(z,p,c,H,T,b,D,t,E,mW(z,c,B.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),q);p=z.Vw;c=new RR(z.AQ);B=z.layoutExitSkipTriggers;X>0&&(p.push(c),p.push(new Vk(X)),B=[]);p.push(new bx(x));return{i9:{layoutId:z.layoutId,layoutType:z.layoutType,Ms:z.Ms,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:z.wA,clientMetadata:new x8(p),Gr:z.Gr,adLayoutLoggingData:z.adLayoutLoggingData}, JC:B,uf:z.layoutExitMuteTriggers,q9:z.layoutExitUserInputSubmittedTriggers,f8:z.O1,J1:z.J1}}; bFW=function(z,p,c,B,H,T,b,D,t,X){p=YH(z,p,c,B,T,new Map,b,function(x){return D(x,t)},void 0,mW(z,c,H.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); z=new cr(z.W,p.AQ);c=new RR(p.AQ);X=new bx(X);return{i9:{layoutId:p.layoutId,layoutType:p.layoutType,Ms:p.Ms,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:p.wA,clientMetadata:new x8([].concat(g.A(p.Vw),[c,X])),Gr:p.Gr,adLayoutLoggingData:p.adLayoutLoggingData},JC:p.layoutExitSkipTriggers,uf:p.layoutExitMuteTriggers,q9:[].concat(g.A(p.layoutExitUserInputSubmittedTriggers),[z]),f8:p.O1,J1:p.J1}}; YH=function(z,p,c,B,H,T,b,D,t,X,x){p=X!=null?X:B$(z.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",p);X={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wA:"adapter"};D=D(p);var E=Ei(D.clientMetadata,"metadata_type_fulfilled_layout");E||P7("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var q=E?E.layoutId:"";c=[new ix(c),new kZ(B),new Nj(H)];E&&c.push(new S3(E.layoutType));x&&c.push(new v1(x));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Ms:T,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new kb(z.W,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"adapter",Vw:c,Gr:b(X),adLayoutLoggingData:t,J1:D,AQ:q}}; PSB=function(z,p,c,B,H,T,b,D,t,X,x){z=zsV(z,p,"core",c,B,H,T,b,D,t,X,void 0,x);return{layoutId:z.layoutId,layoutType:z.layoutType,Ms:z.Ms,layoutExitNormalTriggers:z.layoutExitNormalTriggers,layoutExitSkipTriggers:z.layoutExitSkipTriggers,layoutExitMuteTriggers:z.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:z.layoutExitUserInputSubmittedTriggers,O1:z.O1,wA:z.wA,clientMetadata:new x8(z.sN),Gr:z.Gr,adLayoutLoggingData:z.adLayoutLoggingData}}; mj_=function(z,p,c,B,H,T,b,D,t,X,x,E,q){p=zsV(z,p,"adapter",c,B,H,T,b,D,t,x,E,q);B=p.layoutExitSkipTriggers;H=p.sN;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(H.push(X),H.push(new Vk(c.adPodSkipTarget)),B=[]);H.push(new bx(D.adPodIndex));c.isCritical&&(B=[new CC(z.W,p.layoutId,["error"])].concat(g.A(B)));return{i9:{layoutId:p.layoutId,layoutType:p.layoutType,Ms:p.Ms,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:p.wA,clientMetadata:new x8(H), Gr:p.Gr,adLayoutLoggingData:p.adLayoutLoggingData},JC:B,uf:p.layoutExitMuteTriggers,q9:p.layoutExitUserInputSubmittedTriggers,f8:p.O1}}; zsV=function(z,p,c,B,H,T,b,D,t,X,x,E,q){var J={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",wA:c};H=[new ix(H),new TD(t),new tL(B.externalVideoId),new XH(D),new Nj({impressionCommands:B.impressionCommands,abandonCommands:B.onAbandonCommands,completeCommands:B.completeCommands,progressCommands:B.adVideoProgressCommands}),new W1(T),new ux({current:null}),new d2(b)];(T=B.playerOverlay.instreamAdPlayerOverlayRenderer)&&H.push(new xZ(T));(b=B.playerOverlay.playerOverlayLayoutRenderer)&&H.push(new EW(b)); E&&H.push(new yk(E));(E=B.playerUnderlay)&&H.push(new qj(E));D=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER");E=(E=T?T.elementId:b==null?void 0:b.layoutId)?E:B$(z.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);H.push(new RR(E));H.push(new $Z(D));H.push(new v1(t.adPodIndex));B.adNextParams&&H.push(new GE(B.adNextParams));B.shrunkenPlayerBytesConfig&&H.push(new YZ(B.shrunkenPlayerBytesConfig));B.clickthroughEndpoint&&H.push(new N9(B.clickthroughEndpoint));B.legacyInfoCardVastExtension&&H.push(new g2(B.legacyInfoCardVastExtension)); B.sodarExtensionData&&H.push(new CF(B.sodarExtensionData));x&&H.push(new UW(x));H.push(new pO(dl(B.pings)));t=W$(B.pings);if(q){a:{q=g.m(q);for(x=q.next();!x.done;x=q.next())if(x=x.value,x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(T=g.I(x.fulfillmentContent.fulfilledLayout,eR))&&(T=g.I(T.renderingContent,ya))&&T.associatedPlayerBytesLayoutId===p){q=x;break a}q=void 0}q&&H.push(new JL(q))}return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Ms:t,layoutExitNormalTriggers:[new rg(z.W,p)],layoutExitSkipTriggers:B.skipOffsetMilliseconds? [new kb(z.W,E)]:[],layoutExitMuteTriggers:[new kb(z.W,E)],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:c,sN:H,Gr:X(J),adLayoutLoggingData:B.adLayoutLoggingData}}; t7S=function(z,p,c,B,H,T,b,D,t){B.every(function(x){return DD(x,[],["LAYOUT_TYPE_MEDIA"])})||P7("Unexpect subLayout type for DAI composite layout"); p=B$(z.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",p);var X={layoutId:p,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wA:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ms:new Map,layoutExitNormalTriggers:[new lA(z.W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],O1:[],wA:"core",clientMetadata:new x8([new e3(c),new lx(D),new Zk(B),new ix(H),new oR(T),new IR({}),new B3(t)]),Gr:b(X)}}; i7E=function(z){return z!=null}; ij=function(z,p,c){var B=this;this.K=z;this.D=p;this.X3=c;this.W=function(H){return qp(B.K.get(),H)}}; KBN=function(z,p,c,B,H,T,b){if(!c.prefetchModeConfig)return new k("AdPlacementConfig for Live Prefetch is missing prefetch_config");c=c.prefetchModeConfig;B*=1E3;var D=[];if(!c.breakLengthMs)return new k("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var t=g.m(c.breakLengthMs),X=t.next();!X.done;X=t.next())if(X=X.value,Number(X)>0){var x=B+Number(c.startTimeOffsetMs),E=x+Number(c.cacheFetchSmearingDurationMs);X={RH:new Zv(E,E+Number(X)),wq:!1,p9:new Zv(Math.floor(x+Math.random()* Number(c.cacheFetchSmearingDurationMs)),E),cueProcessedMs:B?B:x};x=[];x.push(new bG({}));E=[];E.push(new sX(z.W));E.push(new NOB(z.W));b&&x.push(new IR({}));D.push(sT(z,p,H,X,T,x,E))}return D}; sT=function(z,p,c,B,H,T,b){T=T===void 0?[]:T;b=b===void 0?[]:b;var D=wl(z.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),t=[];b=g.m(b);for(var X=b.next();!X.done;X=b.next())t.push(X.value);B.p9&&B.p9.start!==B.RH.start&&t.push(new F_(z.W,c,new Zv(B.p9.start,B.RH.start),!1));t.push(new F_(z.W,c,new Zv(B.RH.start,B.RH.end),B.wq));B={getAdBreakUrl:p.getAdBreakUrl,Kx:B.RH.start,c6:B.RH.end,cueProcessedMs:B.cueProcessedMs};p=new fC(z.W,D);T=[new Qk(B)].concat(g.A(T));return{slotId:D,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:t,slotExpirationTriggers:[new UX(z.W,c),new GN(z.W,D),new Nu(z.W,D)],wA:"core",clientMetadata:new x8(T),adSlotLoggingData:H}}; cfE=function(z,p,c){var B=[];c=g.m(c);for(var H=c.next();!H.done;H=c.next())B.push(p3N(z,p,H.value));return B}; p3N=function(z,p,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===z?c.clone(p):c}; skx=function(z,p,c,B,H){return B9Y(z,p,c,B,H)}; HFD=function(z,p,c,B){var H=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER");return B9Y(z,H,p,c,B)}; B9Y=function(z,p,c,B,H){var T=new yw(z.W,c),b=[new gg(z.W,p)];z=[new GN(z.W,p),new UX(z.W,B)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(H({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:z},c))]),adSlotLoggingData:void 0}}; h5W=function(z,p,c,B,H,T){var b=wl(z.K.get(),"SLOT_TYPE_PLAYER_BYTES"),D=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER"),t=B$(z.K.get(),"LAYOUT_TYPE_SURVEY",D);B=Ta(z,p,c,B);var X=[new gg(z.W,b)];c=[new GN(z.W,b),new UX(z.W,c),new LC(z.W,t)];if(B instanceof k)return B;D=T({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:B,slotFulfillmentTriggers:X,slotExpirationTriggers:c},{slotId:D,layoutId:t});T=D.CQa;D=D.EAa;return[{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:PZ(z,p,b,B),slotFulfillmentTriggers:A$(z,p,b,X),slotExpirationTriggers:c,wA:"core",clientMetadata:new x8([new nF(T),new H3(OO(p)),new Tb({iP:z.iP(p)})]),adSlotLoggingData:H},D]}; OO=function(z){return z.kind==="AD_PLACEMENT_KIND_START"}; AzS=function(z,p,c,B,H){H=H?H:wl(z.K.get(),"SLOT_TYPE_IN_PLAYER");c=new yw(z.W,c);var T=[new gg(z.W,H)];z=[new UX(z.W,p),new GN(z.W,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:T,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(B({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:c,slotFulfillmentTriggers:T,slotExpirationTriggers:z}))])}}; O7V=function(z,p,c,B){var H=wl(z.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new yw(z.W,c);var T=[new gg(z.W,H)];z=[new UX(z.W,p),new GN(z.W,H)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:T,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(B({slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:c,slotFulfillmentTriggers:T,slotExpirationTriggers:z}))])}}; Eli=function(z,p,c,B,H,T,b){var D=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER"),t=B$(z.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",D);B=HOu(z,B,T,b,t);if(B instanceof k)return B;b=[new gg(z.W,D)];H=[new UX(z.W,T),new gg(z.W,H),new pl(z.W,H)];c=hf(c,{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:B,slotFulfillmentTriggers:b,slotExpirationTriggers:H});z=z.D.get();T={layoutId:t,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",wA:"core"};p={layoutId:t,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Ms:new Map,layoutExitNormalTriggers:[new TQN(z.W,t,p.durationMs)],layoutExitSkipTriggers:[new Vex(z.W,t,p.durationMs)],O1:[new bbD(z.W,t)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],wA:"core",clientMetadata:new x8([new GD(p)]),Gr:c(T)};return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:B,slotFulfillmentTriggers:b,slotExpirationTriggers:H,clientMetadata:new x8([new nF(p)])}}; p1v=function(z,p,c,B,H,T){p=Ta(z,p,c,B);if(p instanceof k)return p;var b=p instanceof F_?new BQx(z.W,c,p.W):null;B=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER");var D=[new gg(z.W,B)];z=[new UX(z.W,c),new GN(z.W,B)];T=T({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:p,slotFulfillmentTriggers:D,slotExpirationTriggers:z},b);return T instanceof Xo?new k(T):{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:D,slotExpirationTriggers:z, wA:"core",clientMetadata:new x8([new nF(T)]),adSlotLoggingData:H}}; fGS=function(z,p,c,B){var H=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER"),T=new Zr(z.W,p),b=[new zd(z.W,H)];z=[new UX(z.W,p),new GN(z.W,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(B({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:z}))]),adSlotLoggingData:c}}; zcN=function(z,p,c,B){var H=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER");c=new yw(z.W,c);var T=[new gg(z.W,H)],b=[new GN(z.W,H),new UX(z.W,p)];T={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:c,slotFulfillmentTriggers:T,slotExpirationTriggers:b};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new gg(z.W,H)],slotExpirationTriggers:[new UX(z.W,p),new GN(z.W,H)],wA:"core",clientMetadata:new x8([new nF(B(T))])}}; G4S=function(z,p,c,B,H){var T=wl(z.K.get(),"SLOT_TYPE_IN_PLAYER");c=new WT(z.W,B,c);B=[new gg(z.W,T)];z=[new UX(z.W,p)];return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(H({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:z}))])}}; QkY=function(z,p,c,B,H,T){var b=wl(z.K.get(),p);return bj(z,b,p,new yw(z.W,B),[new UX(z.W,c),new GN(z.W,b),new CC(z.W,B,["error"])],H,T)}; npB=function(z,p,c,B,H,T,b){var D=wl(z.K.get(),p);return bj(z,D,p,new CC(z.W,H,["normal"]),[new UX(z.W,c),new GN(z.W,D),new CC(z.W,B,["error"])],T,b)}; ISB=function(z,p,c,B,H){var T=wl(z.K.get(),p);return bj(z,T,p,new Zr(z.W,c),[new UX(z.W,c),new GN(z.W,T)],B,H)}; kEi=function(z,p,c,B,H){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var T=wl(z.K.get(),c);p=new Zr(z.W,p);var b=[new gg(z.W,T)];z=[new GN(z.W,T)];return{slotId:T,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:b,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(H({slotId:T,slotType:c,slotPhysicalPosition:1,wA:"core",slotEntryTrigger:p,slotFulfillmentTriggers:b,slotExpirationTriggers:z}))]),adSlotLoggingData:B}}; Tkx=function(z,p,c,B){var H=wl(z.K.get(),"SLOT_TYPE_PLAYER_BYTES"),T=new jv(z.W),b=[new zd(z.W,H)];z=[new UX(z.W,p)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(B({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:T,slotFulfillmentTriggers:b,slotExpirationTriggers:z})),new IR({})]),adSlotLoggingData:c}}; qWQ=function(z,p){return SWY(z.X3.get())?new CC(z.W,p,["normal","error","skipped"]):new CC(z.W,p,["normal"])}; YGB=function(z,p,c,B,H){p=qWQ(z,p);z=h$(z,p,c);H=H({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:z.slotExpirationTriggers,wA:z.wA});return H instanceof k?H:{Ah:Object.assign({},z,{clientMetadata:new x8([new nF(H.layout)]),adSlotLoggingData:B}),BO:H.BO}}; m9f=function(z,p,c,B,H,T,b){c=JLx(z,p,c,B);if(c instanceof k)return c;b=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,wA:c.wA});if(b instanceof k)return b;B=[new H3(OO(p)),new nF(b.layout),new Tb({iP:z.iP(p)})];T&&B.push(new fF({}));return{Ah:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:PZ(z, p,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:A$(z,p,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,wA:c.wA,clientMetadata:new x8(B),adSlotLoggingData:H},BO:b.BO}}; PZ=function(z,p,c,B){return z.X3.get().V4(OO(p))?new uA(z.W,c):B}; A$=function(z,p,c,B){return z.X3.get().V4(OO(p))?[new zd(z.W,c)]:B}; h$=function(z,p,c){var B=wl(z.K.get(),"SLOT_TYPE_PLAYER_BYTES"),H=[new gg(z.W,B)];z=[new GN(z.W,B),new UX(z.W,c)];return{slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:H,slotExpirationTriggers:z,wA:"core"}}; JLx=function(z,p,c,B){p=Ta(z,p,c,B);return p instanceof k?p:h$(z,p,c)}; GEB=function(z,p,c,B,H,T){var b=wl(z.K.get(),"SLOT_TYPE_FORECASTING");p=Ta(z,p,c,B);if(p instanceof k)return p;B=[new gg(z.W,b)];z=[new GN(z.W,b),new UX(z.W,c)];return{slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:B,slotExpirationTriggers:z,wA:"core",clientMetadata:new x8([new nF(T({slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,wA:"core",slotEntryTrigger:p,slotFulfillmentTriggers:B,slotExpirationTriggers:z}))]),adSlotLoggingData:H}}; iOV=function(z,p,c,B,H){var T=!p.hideCueRangeMarker;switch(p.kind){case "AD_PLACEMENT_KIND_START":return new Zr(z.W,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return z=CaQ(p,B),z instanceof k?z:H(z.RH,T);case "AD_PLACEMENT_KIND_END":return new dg(z.W,c,T);default:return new k("Cannot construct entry trigger",{kind:p.kind})}}; HOu=function(z,p,c,B,H){return iOV(z,p,c,B,function(T,b){return new cvY(z.W,c,T,b,H)})}; Ta=function(z,p,c,B){return iOV(z,p,c,B,function(H,T){return new F_(z.W,c,H,T)})}; bj=function(z,p,c,B,H,T,b){z=[new zd(z.W,p)];return{slotId:p,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:z,slotExpirationTriggers:H,wA:"core",clientMetadata:new x8([new nF(b({slotId:p,slotType:c,slotPhysicalPosition:1,wA:"core",slotEntryTrigger:B,slotFulfillmentTriggers:z,slotExpirationTriggers:H}))]),adSlotLoggingData:T}}; Vg=function(z,p){g.e.call(this);this.X3=z;this.W=p;this.eventCount=0}; Dx=function(z,p,c,B){Vg.call(this,z,p);this.X3=z;this.oa=c;this.context=B}; th=function(){this.W=new Map}; EZ=function(z,p){var c=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=z;this.result=p.result;this.error=p.error;p.promise&&p.promise.then(function(B){XG(c,B)},function(B){xx(c,B)})}; MH=function(z){if(qH(z)){if(z instanceof EZ)return z;if(Jh(z))return new EZ("wait",{promise:z})}return new EZ("done",{result:z})}; Yx=function(){return new EZ("wait",{})}; m7=function(z){return new EZ("fail",{error:z})}; hh=function(z){try{return MH(z())}catch(p){return m7(p)}}; Ah=function(z,p){var c=Yx();z.onSuccess.push(function(B){try{var H=p(B);XG(c,H)}catch(T){xx(c,T)}}); z.onFailure.push(function(B){xx(c,B)}); Pt(z);return c}; OZ=function(z,p){var c=Yx();z.onSuccess.push(function(B){XG(c,B)}); z.onFailure.push(function(B){try{var H=p(B);XG(c,H)}catch(T){xx(c,T)}}); Pt(z);return c}; T9x=function(z,p){var c=Yx();z.onSuccess.push(function(B){try{p(),XG(c,B)}catch(H){xx(c,H)}}); z.onFailure.push(function(B){try{p(),xx(c,B)}catch(H){xx(c,H)}}); Pt(z)}; XG=function(z,p){if(qH(p)){if(Jh(p)){p.then(function(c){XG(z,c)},function(c){xx(z,c)}); return}if(p instanceof EZ){Ah(p,function(c){XG(z,c)}); OZ(p,function(c){xx(z,c)}); return}}z.currentState="done";z.result=p;Pt(z)}; xx=function(z,p){z.currentState="fail";z.error=p;Pt(z)}; Pt=function(z){if(z.currentState==="done"){var p=z.onSuccess;z.onSuccess=[];z.onFailure=[];p=g.m(p);for(var c=p.next();!c.done;c=p.next())c=c.value,c(z.result)}else if(z.currentState==="fail")for(p=z.onFailure,z.onSuccess=[],z.onFailure=[],p=g.m(p),c=p.next();!c.done;c=p.next())c=c.value,c(z.error)}; VEB=function(z){return function(){return bOE(z.apply(this,g.L_.apply(0,arguments)))}}; bOE=function(z){return hh(function(){return wU(z,z.next())})}; wU=function(z,p){return p.done?MH(p.value):OZ(Ah(p.value.Od,function(c){return wU(z,z.next(c))}),function(c){return wU(z,z.throw(c))})}; DLY=function(z,p){if(z.length===0)return MH(NaN);var c=Yx(),B=z.length;z.forEach(function(H,T){T9x(MH(H),function(){c.currentState==="wait"&&(p!==void 0&&p(T)&&c.currentState==="wait"?c.resolve(T):(--B,B===0&&c.resolve(NaN)))})}); return c}; tEf=function(z){return z.map(function(p){return MH(p)})}; St=function(z){var p=z.hours||0;var c=z.minutes||0,B=z.seconds||0;p=B+c*60+p*3600+(z.days||0)*86400+(z.weeks||0)*604800+(z.months||0)*2629800+(z.years||0)*31557600;p<=0?p={hours:0,minutes:0,seconds:0}:(z=p,p=Math.floor(z/3600),z%=3600,c=Math.floor(z/60),B=Math.floor(z%60),p={hours:p,minutes:c,seconds:B});var H=p.hours===void 0?0:p.hours;c=p.minutes===void 0?0:p.minutes;z=p.seconds===void 0?0:p.seconds;B=H>0;p=[];if(B){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var T=["fr"],b="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(" "); H="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(Rn)?H.replace(",","\u00a0"):T.includes(Rn)?H.replace(",","\u202f"):b.includes(Rn)?H.replace(",","."):H;p.push(H)}B=B===void 0?!1:B;c=(["af","be","lt"].includes(Rn)||B)&&c<10?X3S().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);p.push(c);c=X3S().format(z);p.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(Rn)&&(c=".");return p.join(c)}; X3S=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; xL_=function(z,p){var c,B;z=((c=z.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(B=c.videoAuthorizationToken)==null?void 0:B.credentialTransferTokens)||[];for(c=0;cp;z=c}else z=!1;return z}; aDQ=function(z){z=z.split("");FG.yq(z,1);FG.dn(z,33);FG.dn(z,14);return z.join("")}; g.on=function(z,p){return z.qa+"timedtext_video?ref=player&v="+p.videoId}; g.ZOV=function(z){var p=this;this.videoData=z;z={};this.W=(z.c1a=function(){var c=[];if(g.In.isInitialized()){var B="";p.videoData&&p.videoData.Eo&&(B=p.videoData.Eo+("&r1b="+p.videoData.clientPlaybackNonce));var H={};B=(H.atr_challenge=B,H);z4("bg_v",void 0,"player_att");(B=uoD(B))?(z4("bg_s",void 0,"player_att"),c.push("r1a="+B)):(z4("bg_e",void 0,"player_att"),c.push("r1c=2"))}else z4("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.In.getState()); return c.join("&")},z.c6a=function(c){return"r6a="+(Number(c.c)^mP())},z.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.pN("CATSTAT",0)))},z); this.videoData&&this.videoData.Eo?this.NB=Dz(this.videoData.Eo):this.NB={}}; g.LKQ=function(z){if(z.videoData&&z.videoData.Eo){for(var p=[z.videoData.Eo],c=g.m(Object.keys(z.W)),B=c.next();!B.done;B=c.next())B=B.value,z.NB[B]&&z.W[B]&&(B=z.W[B](z.NB))&&p.push(B);return p.join("&")}return null}; g.nk=function(z,p){KK_(z,{NEA:g.P3(p.experiments,"bg_vm_reinit_threshold"),cspNonce:p.cspNonce,qa:p.qa||""})}; dLi=function(){var z=XMLHttpRequest.prototype.fetch;return!!z&&z.length===3}; Qg=function(z){z=z===void 0?2592E3:z;if(z>0&&!(fqx()>(0,g.y2)()-z*1E3))return 0;z=g.Fy("yt-player-quality");if(typeof z==="string"){if(z=g.rB[z],z>0)return z}else if(z instanceof Object)return z.quality;return 0}; rU=function(){var z=g.Fy("yt-player-proxima-pref");return z==null?null:z}; WKx=function(){var z=g.Fy("yt-player-quality");if(z instanceof Object&&z.quality&&z.previousQuality){if(z.quality>z.previousQuality)return 1;if(z.quality0&&p[0]?z.getAutoplayPolicy(p[0]):z.getAutoplayPolicy("mediaelement");if(IDY[c])return IDY[c]}}catch(B){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; fk=function(z){return z.gJ||z.bY||z.mutedAutoplay}; j9E=function(z,p){return fk(z)?p!==1&&p!==2&&p!==0?"AUTOPLAY_STATUS_UNAVAILABLE":z.QO?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; FKE=function(z,p,c){var B=p.N();z.thirdParty||(z.thirdParty={});B.ancestorOrigins&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{ancestorOrigins:B.ancestorOrigins}));B.Y("embeds_enable_autoplay_and_visibility_signals")&&(B.Iu!=null&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(B.Iu)})),B.Vy&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{visibilityFractionSource:B.Vy})), z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:NH(),autoplayIntended:fk(p),autoplayStatus:j9E(p,c)}))}; Q9Y=function(z,p){B8(z,2,p.aJ,zO,3);B8(z,3,p.g3,o8f,3);p7(z,4,p.onesieUstreamerConfig);p7(z,9,p.Um);B8(z,10,p.fL,pS,3);B8(z,15,p.reloadPlaybackParams,n8B,3)}; ULB=function(z,p){B8(z,1,p.formatId,ci,3);fb(z,2,p.startTimeMs);fb(z,3,p.durationMs);fb(z,4,p.jA);fb(z,5,p.Ma);B8(z,9,p.aWA,rff,3);B8(z,11,p.J4A,Bi,1);B8(z,12,p.JO,Bi,1)}; s9E=function(z,p){c8(z,1,p.videoId);fb(z,2,p.lmt)}; rff=function(z,p){if(p.tX)for(var c=0;c>31));fb(z,16,p.Iw8);fb(z,17,p.detailedNetworkType);fb(z,18,p.fK);fb(z,19,p.LK);fb(z,21,p.lN8);fb(z,23,p.DL);fb(z,28,p.Wk);fb(z,29,p.TLH);fb(z,34,p.visibility);c=p.playbackRate;if(c!==void 0){var B=new ArrayBuffer(4);(new Float32Array(B))[0]=c;c=(new Uint32Array(B))[0];if(c!==void 0)for(N2(z,285),G4(z,4),B=0;B<4;)z.view.setUint8(z.pos,c&255),c>>=8,z.pos+=1,B+=1}fb(z,36,p.cG); B8(z,38,p.mediaCapabilities,Gbi,3);fb(z,39,p.jk3);fb(z,40,p.yV);fb(z,44,p.playerState);zE(z,46,p.kq);fb(z,48,p.Tb);fb(z,50,p.lO);fb(z,51,p.uK);fb(z,54,p.LQ);if(p.qO)for(c=0;c>31));c8(z,2,p.message)}; Tli=function(z,p){fb(z,1,p.clientState);B8(z,2,p.oPI,HVf,1)}; BlV=function(z,p){p7(z,1,p.haH);B8(z,2,p.TEA,iVB,3);B8(z,3,p.coldStartInfo,Tli,3)}; cTB=function(z,p){fb(z,1,p.type);p7(z,2,p.value)}; p$Q=function(z,p){c8(z,1,p.hl);c8(z,12,p.deviceMake);c8(z,13,p.deviceModel);fb(z,16,p.clientName);c8(z,17,p.clientVersion);c8(z,18,p.osName);c8(z,19,p.osVersion)}; bVv=function(z,p){c8(z,1,p.name);c8(z,2,p.value)}; VDN=function(z,p){c8(z,1,p.url);if(p.xK)for(var c=0;c1&&(this.L=z[1]==="2")}; DW=function(z,p,c,B,H){this.K=z;this.W=p;this.D=c;this.reason=B;this.l8=H===void 0?0:H}; g.tP=function(z,p,c,B){return new DW(g.rB[z]||0,g.rB[p]||0,c,B)}; xt=function(z){if(XK&&z.l8)return!1;var p=g.rB.auto;return z.K===p&&z.W===p}; qJ=function(z){return EJ[z.W||z.K]||"auto"}; UTx=function(z,p){p=g.rB[p];return z.K<=p&&(!z.W||z.W>=p)}; JP=function(z){return"["+z.K+"-"+z.W+", override: "+(z.D+", reason: "+z.reason+"]")}; MJ=function(z,p,c){this.videoInfos=z;this.W=p;this.audioTracks=[];if(this.W){z=new Set;c==null||c({ainfolen:this.W.length});p=g.m(this.W);for(var B=p.next();!B.done;B=p.next())if(B=B.value,!B.bQ||z.has(B.bQ.id)){var H=void 0,T=void 0,b=void 0;(b=c)==null||b({atkerr:!!B.bQ,itag:B.itag,xtag:B.W,lang:((H=B.bQ)==null?void 0:H.name)||"",langid:((T=B.bQ)==null?void 0:T.id)||""})}else H=new g.Vq(B.id,B.bQ),z.add(B.bQ.id),this.audioTracks.push(H);c==null||c({atklen:this.audioTracks.length})}}; Yt=function(){g.e.apply(this,arguments);this.W=null}; GM_=function(z,p,c,B,H,T,b){if(z.W)return z.W;var D={},t=new Set,X={};if(mp(B)){for(var x in B.W)B.W.hasOwnProperty(x)&&(z=B.W[x],X[z.info.yI]=[z.info]);return X}x=sDi(p,B,D);T&&H({aftsrt:hP(x)});for(var E={},q=g.m(Object.keys(x)),J=q.next();!J.done;J=q.next()){J=J.value;for(var M=g.m(x[J]),P=M.next();!P.done;P=M.next()){P=P.value;var O=P.itag,R=void 0,K=J+"_"+(((R=P.video)==null?void 0:R.fps)||0);E.hasOwnProperty(K)?E[K]===!0?X[J].push(P):D[O]=E[K]:(R=Pi(p,P,c,B.isLive,t),R!==!0?(b.add(J),D[O]=R, R==="disablevp9hfr"&&(E[K]="disablevp9hfr")):(X[J]=X[J]||[],X[J].push(P),E[K]=!0))}}T&&H({bfflt:hP(X)});for(var Z in X)X.hasOwnProperty(Z)&&(B=Z,X[B]&&X[B][0].Ni()&&(X[B]=X[B],X[B]=kMN(p,X[B],D),X[B]=g6Q(X[B],D)));T&&Object.keys(D).length>0&&H({rjr:dB(D)});p=g.m(t.values());for(B=p.next();!B.done;B=p.next())(B=c.K.get(B.value))&&--B.Qx;T&&H({aftflt:hP(X)});z.W=g.Sh(X,function(W){return!!W.length}); return z.W}; fI_=function(z,p,c,B,H,T,b,D){D=D===void 0?!1:D;if(p.wU&&b&&b.length>1&&!(p.xw>0||p.U)){for(var t=p.K||!!H,X=t&&p.gt?T:void 0,x=sDi(p,B),E=[],q=[],J={},M=0;M0&&q&&H&&(x=[b,c],O=H.concat(q).filter(function(R){return R})); if(O.length&&!p.Om){wM(O,x);if(t){t=[];p=g.m(O);for(B=p.next();!B.done;B=p.next())t.push(B.value.itag);T({hbdfmt:t.join(".")})}return If(new MJ(O,z,X))}O=DeY(p);O=g.kL(O,D);if(!O){if(E[b])return T=E[b],wM(T),If(new MJ(T,z,X));t&&T({novideo:1});return vh()}p.LB&&(O==="1"||O==="1h")&&E[c]&&(b=Ru(E[O]),x=Ru(E[c]),x>b?O=c:x===b&&tUY(E[c])&&(O=c));O==="9"&&E.h&&Ru(E.h)>Ru(E["9"])&&(O="h");p.RR&&B.isLive&&O==="("&&E.H&&Ru(E["("])<1440&&(O="H");t&&T({vfmly:SI(O)});p=E[O];if(!p.length)return t&&T({novfmly:SI(O)}), vh();wM(p);return If(new MJ(p,z,X))}; p2W=function(z,p){var c=!(!z.m&&!z.M),B=!(!z.mac3&&!z.MAC3),H=!(!z.meac3&&!z.MEAC3);z=!(!z.i&&!z.I);p.JH=z;return c||B||H||z}; tUY=function(z){z=g.m(z);for(var p=z.next();!p.done;p=z.next())if(p=p.value,p.itag&&X2u.has(p.itag))return!0;return!1}; BB_=function(z){z=g.m(z);for(var p=z.next();!p.done;p=z.next())if(p.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; SI=function(z){switch(z){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return z}}; hP=function(z){var p=[],c;for(c in z)if(z.hasOwnProperty(c)){var B=c;p.push(SI(B));B=g.m(z[B]);for(var H=B.next();!H.done;H=B.next())p.push(H.value.itag)}return p.join(".")}; zIv=function(z,p,c,B,H,T){var b={},D={};g.Rx(p,function(t,X){t=t.filter(function(x){var E=x.itag;if(!x.o8)return D[E]="noenc",!1;if(T.FQ&&x.yI==="(h"&&T.WM)return D[E]="lichdr",!1;if(!z.D&&x.yI==="1e")return D[E]="noav1enc",!1;if(x.yI==="("||x.yI==="(h"){if(z.L&&c&&c.flavor==="widevine"){var q=x.mimeType+"; experimental=allowed";(q=!!x.o8[c.flavor]&&!!c.W[q])||(D[E]=x.o8[c.flavor]?"unspt":"noflv");return q}if(!$t(z,KS.CRYPTOBLOCKFORMAT)&&!z.YA||z.T$)return D[E]=z.T$?"disvp":"vpsub",!1}return c&&x.o8[c.flavor]&& c.W[x.mimeType]?!0:(D[E]=c?x.o8[c.flavor]?"unspt":"noflv":"nosys",!1)}); t.length&&(b[X]=t)}); B&&Object.entries(D).length&&H({rjr:dB(D)});return b}; g6Q=function(z,p){var c=yA(z,function(B,H){return H.video.fps>32?Math.min(B,H.video.width):B},Infinity); c32||B.video.widthz.G)return"max"+z.G;if(z.sH&&p.yI==="h"&&p.video&&p.video.qualityOrdinal>1080)return"blkhigh264";if(p.yI==="(h"&&!c.G)return"enchdr";if((B===void 0?0:B)&&B6(p)&&!z.i8)return"blk51live";if((p.yI==="MAC3"||p.yI==="mac3")&&!z.L)return"blkac3";if((p.yI==="MEAC3"||p.yI==="meac3")&&!z.V)return"blkeac3";if(p.yI==="M"||p.yI==="m")return"blkaac51"; if((p.yI==="so"||p.yI==="sa")&&!z.Dt)return"blkamb";if(!z.FQ&&AbS(p)&&(!c.D||p.yI!=="1e"))return"cbc";if(!c.D&&AbS(p)&&p.yI==="1e")return"cbcav1";if((p.yI==="i"||p.yI==="I")&&!z.Zw)return"blkiamf";if(p.itag==="774"&&!z.T$)return"blkouh";var T,b;if(z.Zt&&(p.yI==="1"||p.yI==="1h"||c.D&&p.yI==="1e")&&((T=p.video)==null?0:T.qualityOrdinal)&&((b=p.video)==null?void 0:b.qualityOrdinal)>z.Zt)return"av1cap";if((B=c.K.get(p.yI))&&B.Qx>0)return H.add(p.yI),"byerr";var D;if((D=p.video)==null?0:D.fps>32){if(!c.Ra&& !$t(c,KS.FRAMERATE))return"capHfr";if(z.CH&&p.video.qualityOrdinal>=4320)return"blk8khfr";if(Ne(p)&&z.Q8&&p.o8&&p.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(z.l8&&p.l8>z.l8)return"ratecap";z=xeu(c,p);return z!==!0?z:!0}; wM=function(z,p){p=p===void 0?[]:p;g.ty(z,function(c,B){var H=B.l8-c.l8;if(!c.Ni()||!B.Ni())return H;var T=B.video.height*B.video.width-c.video.height*c.video.width;!T&&p&&p.length>0&&(c=p.indexOf(c.yI)+1,B=p.indexOf(B.yI)+1,T=c===0||B===0?B||-1:c-B);T||(T=H);return T})}; g.uF=function(z,p){this.K=z;this.X=p===void 0?!1:p;this.D=this.path=this.scheme="";this.W={};this.url=""}; ZW=function(z){au(z);return z.D}; LS=function(z){return z.K?z.K.startsWith("local"):z.scheme==="local"}; E7E=function(z){au(z);return g.KH(z.W,function(p){return p!==null})}; dM=function(z){au(z);var p=decodeURIComponent(z.get("mn")||"").split(",");return z.path==="/videoplayback"&&p.length>1&&!!p[1]}; Wi=function(z,p){p=p===void 0?!1:p;au(z);if(z.path!=="/videoplayback"){var c=z.clone();c.set("playerfallback","1");return c}var B=z.BU();c=new g.YY(B);var H=z.get("fvip"),T=decodeURIComponent(z.get("mn")||"").split(",");if(H&&T&&T.length>1&&T[1])return B=c.W,z=B.replace(/^[^.]*/,""),g.he(c,(B.indexOf("rr")===0?"rr":"r")+H+"---"+T[1]+z),c=new g.uF(c.toString()),c.set("fallback_count","1"),c;if(p)return c=z.clone(),c.set("fallback_count","1"),c;H=c.W.match("\\.a1\\.googlevideo\\.com$");c.W.match("\\.googlevideo\\.com$")? (g.he(c,"redirector.googlevideo.com"),B=c.toString()):c.W.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.he(c,"www.youtube.com"),B=c.toString()):(c=X_S(B),bD(c)&&(B=c));c=new g.uF(B);c.set("cmo=pf","1");H&&c.set("cmo=td","a1.googlevideo.com");return c}; au=function(z){if(z.K){if(!bD(z.K)&&!z.K.startsWith("local"))throw new g.z6("Untrusted URL",z.K);var p=g.$Y(z.K);z.scheme=p.L;z.D=p.W+(p.D!=null?":"+p.D:"");var c=p.K;if(c.startsWith("/videoplayback"))z.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))z.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var B=c.indexOf("/",12),H=c.indexOf("/",B+1);B>0&&H>0?(z.path=c.slice(0,H),c=c.slice(H+1)):(z.path=c,c="")}else z.path=c,c="";B=z.W;z.W=q4u(c);Object.assign(z.W, JdY(p.X.toString()));Object.assign(z.W,B);z.W.file==="index.m3u8"&&(delete z.W.file,z.path+="/file/index.m3u8");z.K="";z.url="";z.X&&(p=jVV(),au(z),c=z.W[p]||null)&&(c=MUv[0](c),z.set(p,c),z.X||jVV(""))}}; Y4E=function(z){au(z);var p=z.scheme+(z.scheme?"://":"//")+z.D+z.path;if(E7E(z)){var c=[];g.Rx(z.W,function(B,H){B!==null&&c.push(H+"="+B)}); p+="?"+c.join("&")}return p}; q4u=function(z){z=z.split("/");var p=0;z[0]||p++;for(var c={};p0?meQ(p,B.slice(0,H),B.slice(H+1)):B&&(p[B]="")}return p}; meQ=function(z,p,c){if(p==="cmo"){var B;(B=c.indexOf("="))>=0?(p="cmo="+c.slice(0,B),c=c.slice(B+1)):(B=c.indexOf("%3D"))>=0&&(p="cmo="+c.slice(0,B),c=c.slice(B+3))}z[p]=c}; yq=function(z){var p=g.I(z,hIf)||z.signatureCipher;z={S$:!1,vK:"",Mf:"",s:""};if(!p)return z;p=Dz(p);z.S$=!0;z.vK=p.url;z.Mf=p.sp;z.s=p.s;return z}; CS=function(z,p,c,B,H,T,b,D,t){this.pH=z;this.startTime=p;this.duration=c;this.ingestionTime=B;this.sourceURL=H;this.ZS=t;this.endTime=p+c;this.W=b||0;this.range=T||null;this.pending=D||!1;this.ZS=t||null}; g.eI=function(){this.segments=[];this.W=null;this.K=!0;this.D=""}; PzS=function(z,p){if(p>z.E1())z.segments=[];else{var c=sQ(z.segments,function(B){return B.pH>=p},z); c>0&&z.segments.splice(0,c)}}; lF=function(z,p,c,B,H){H=H===void 0?!1:H;this.data=z;this.offset=p;this.size=c;this.type=B;this.W=(this.K=H)?0:8;this.dataOffset=this.offset+this.W}; vi=function(z){var p=z.data.getUint8(z.offset+z.W);z.W+=1;return p}; Iu=function(z){var p=z.data.getUint16(z.offset+z.W);z.W+=2;return p}; jI=function(z){var p=z.data.getInt32(z.offset+z.W);z.W+=4;return p}; FK=function(z){var p=z.data.getUint32(z.offset+z.W);z.W+=4;return p}; ou=function(z){var p=z.data;var c=z.offset+z.W;p=p.getUint32(c)*4294967296+p.getUint32(c+4);z.W+=8;return p}; nS=function(z,p){p=p===void 0?NaN:p;if(isNaN(p))var c=z.size;else for(c=z.W;c1?Math.ceil(H*p):Math.floor(H*p))}z.skip(1);c=vi(z)<<16|Iu(z);if(c&256){B=c&1;H=c&4;var T=c&512,b=c&1024,D=c&2048;c=FK(z);B&&z.skip(4);H&&z.skip(4);B=(T?4:0)+(b?4:0)+(D?4:0);for(H=0;H1?Math.ceil(b*p):Math.floor(b*p)),z.skip(B)}}}; fS=function(z){z=new DataView(z.buffer,z.byteOffset,z.byteLength);return(z=g.GO(z,0,1836476516))?g.NJ(z):NaN}; LCx=function(z){var p=g.GO(z,0,1937011556);if(!p)return null;p=zP(z,p.dataOffset+8,1635148593)||zP(z,p.dataOffset+8,1635135537);if(!p)return null;var c=zP(z,p.dataOffset+78,1936995172),B=zP(z,p.dataOffset+78,1937126244);if(!B)return null;p=null;if(c)switch(c.skip(4),vi(c)){default:p=0;break;case 1:p=2;break;case 2:p=1;break;case 3:p=255}var H=c=null,T=null;if(B=zP(z,B.dataOffset,1886547818)){var b=zP(z,B.dataOffset,1886546020),D=zP(z,B.dataOffset,2037673328);if(!D&&(D=zP(z,B.dataOffset,1836279920), !D))return null;b&&(b.skip(4),c=jI(b)/65536,T=jI(b)/65536,H=jI(b)/65536);z=AdQ(D);z=new DataView(z.buffer,z.byteOffset+8,z.byteLength-8);return new apf(p,c,T,H,z)}return null}; zP=function(z,p,c){for(;pi(z,p);){var B=cE(z,p);if(B.type===c)return B;p+=B.size}return null}; g.GO=function(z,p,c){for(;pi(z,p);){var B=cE(z,p);if(B.type===c)return B;p=BE(B.type)?p+8:p+B.size}return null}; g.HE=function(z){if(z.data.getUint8(z.dataOffset)){var p=z.data;z=z.dataOffset+4;p=p.getUint32(z)*4294967296+p.getUint32(z+4)}else p=z.data.getUint32(z.dataOffset+4);return p}; cE=function(z,p){var c=z.getUint32(p),B=z.getUint32(p+4);return new lF(z,p,c,B)}; g.NJ=function(z){var p=z.data.getUint8(z.dataOffset)?20:12;return z.data.getUint32(z.dataOffset+p)}; def=function(z){z=new lF(z.data,z.offset,z.size,z.type,z.K);var p=vi(z);z.skip(7);var c=FK(z);if(p===0){p=FK(z);var B=FK(z)}else p=ou(z),B=ou(z);z.skip(2);for(var H=Iu(z),T=[],b=[],D=0;D122)return!1}return!0}; BE=function(z){return z===1701082227||z===1836019558||z===1836019574||z===1835297121||z===1835626086||z===1937007212||z===1953653094||z===1953653099||z===1836475768}; WCV=function(z){z.skip(4);return{Q3t:nS(z,0),value:nS(z,0),timescale:FK(z),bx0:FK(z),npA:FK(z),id:FK(z),hE:nS(z),offset:z.offset}}; g.ydY=function(z){var p=zP(z,0,1701671783);if(!p)return null;var c=WCV(p),B=c.Q3t;c=gM(c.hE);if(z=zP(z,p.offset+p.size,1701671783))if(z=WCV(z),z=gM(z.hE),c&&z){p=g.m(Object.keys(z));for(var H=p.next();!H.done;H=p.next())H=H.value,c[H]=z[H]}return c?new sJ(c,B):null}; is=function(z,p){for(var c=zP(z,0,p);c;){var B=c;B.type=1936419184;B.data.setUint32(B.offset+4,1936419184);c=zP(z,c.offset+c.size,p)}}; g.TP=function(z,p){for(var c=0,B=[];pi(z,c);){var H=cE(z,c);H.type===p&&B.push(H);c=BE(H.type)?c+8:c+H.size}return B}; CzD=function(z,p){var c=g.GO(z,0,1937011556),B=g.GO(z,0,1953654136);if(!c||!B||z.getUint32(c.offset+12)>=2)return null;var H=new DataView(p.buffer,p.byteOffset,p.length),T=g.GO(H,0,1937011556);if(!T)return null;p=H.getUint32(T.dataOffset+8);B=H.getUint32(T.dataOffset+12);if(B!==1701733217&&B!==1701733238)return null;B=new OdV(z.byteLength+p);Qq(B,z,0,c.offset+12);B.data.setInt32(B.offset,2);B.offset+=4;Qq(B,z,c.offset+16,c.size-16);Qq(B,H,H.byteOffset+T.dataOffset+8,p);Qq(B,z,c.offset+c.size,z.byteLength- (c.offset+c.size));c=g.m([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(H=c.next();!H.done;H=c.next())H=g.GO(z,0,H.value),B.data.setUint32(H.offset,H.size+p);z=g.GO(B.data,0,1953654136);B.data.setUint32(z.offset+16,2);return B.data}; eI_=function(z){var p=g.GO(z,0,1937011556);if(!p)return null;var c=z.getUint32(p.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;p=zP(z,p.offset+24+(c===1701733217?28:78),1936289382);if(!p)return null;c=zP(z,p.offset+8,1935894637);if(!c||z.getUint32(c.offset+12)!==1667392371)return null;p=zP(z,p.offset+8,1935894633);if(!p)return null;p=zP(z,p.offset+8,1952804451);if(!p)return null;c=new Uint8Array(16);for(var B=0;B<16;B++)c[B]=z.getInt8(p.offset+16+B);return c}; bs=function(z,p){this.W=z;this.pos=0;this.start=p||0}; Vz=function(z){return z.pos>=z.W.byteLength}; EV=function(z,p,c){var B=new bs(c);if(!Dj(B,z))return!1;B=tR(B);if(!Xh(B,p))return!1;for(z=0;p;)p>>>=8,z++;p=B.start+B.pos;var H=x3(B,!0);B=z+(B.start+B.pos-p)+H;B=B>9?lpB(B-9,8):lpB(B-2,1);z=p-z;c.setUint8(z++,236);for(p=0;pc;H++)c=c*256+mN(z),B*=128;return p?c-B:c}; JR=function(z){var p=x3(z,!0);z.pos+=p}; jrB=function(z){if(!Xh(z,440786851,!0))return null;var p=z.pos;x3(z,!1);var c=x3(z,!0)+z.pos-p;z.pos=p+c;if(!Xh(z,408125543,!1))return null;x3(z,!0);if(!Xh(z,357149030,!0))return null;var B=z.pos;x3(z,!1);var H=x3(z,!0)+z.pos-B;z.pos=B+H;if(!Xh(z,374648427,!0))return null;var T=z.pos;x3(z,!1);var b=x3(z,!0)+z.pos-T,D=new Uint8Array(c+12+H+b),t=new DataView(D.buffer);D.set(new Uint8Array(z.W.buffer,z.W.byteOffset+p,c));t.setUint32(c,408125543);t.setUint32(c+4,33554431);t.setUint32(c+8,4294967295); D.set(new Uint8Array(z.W.buffer,z.W.byteOffset+B,H),c+12);D.set(new Uint8Array(z.W.buffer,z.W.byteOffset+T,b),c+12+H);return D}; hR=function(z){var p=z.pos;z.pos=0;var c=1E6;Dj(z,[408125543,357149030,2807729])&&(c=qm(z));z.pos=p;return c}; FCv=function(z,p){var c=z.pos;z.pos=0;if(z.W.getUint8(z.pos)!==160&&!PE(z)||!Xh(z,160))return z.pos=c,NaN;x3(z,!0);var B=z.pos;if(!Xh(z,161))return z.pos=c,NaN;x3(z,!0);mN(z);var H=mN(z)<<8|mN(z);z.pos=B;if(!Xh(z,155))return z.pos=c,NaN;B=qm(z);z.pos=c;return(H+B)*p/1E9}; PE=function(z){if(!o7Y(z)||!Xh(z,524531317))return!1;x3(z,!0);return!0}; o7Y=function(z){if(z.VQ()){if(!Xh(z,408125543))return!1;x3(z,!0)}return!0}; Dj=function(z,p){for(var c=0;c0){var B=JdY(p.substring(c+1));g.Rx(B,function(H,T){this.set(T,H)},z); p=p.substring(0,c)}p=q4u(p);g.Rx(p,function(H,T){this.set(T,H)},z)}; QrY=function(z){var p=z.base.BU(),c=[];g.Rx(z.W,function(H,T){c.push(T+"="+H)}); if(!c.length)return p;var B=c.join("&");z=E7E(z.base)?"&":"?";return p+z+B}; OV=function(z,p){var c=new g.uF(p);(p=c.get("req_id"))&&z.set("req_id",p);g.Rx(z.W,function(B,H){c.set(H,null)}); return c}; rdu=function(){this.X=this.D=this.W=this.timedOut=this.started=this.L=this.K=0}; w8=function(z){z.L=(0,g.y2)();z.started=0;z.timedOut=0;z.W=0}; RB=function(z,p){var c=z.started+z.W*4;p&&(c+=z.D);c=Math.max(0,c-3);return Math.pow(1.6,c)}; SM=function(z,p){z[p]||(z[p]=new rdu);return z[p]}; $3=function(z){this.U=this.G=this.L=this.K=0;this.S=this.V=!1;this.W=z;this.D=z.clone()}; UeW=function(z,p,c){if(LS(z.W))return!1;var B=SM(c,ZW(z.W));if(B.timedOut<1&&B.W<1)return!1;B=B.timedOut+B.W;z=Ki(z,p);c=SM(c,ZW(z));return c.timedOut+c.W+01?p=p.Gx:(c=SM(c,aB(z,z.Fo(p,c),p)),p=Math.max(z.L,c.timedOut)+p.T_*(z.K-z.L)+.25*z.G,p=p>3?1E3*Math.pow(1.6,p-3):0);return p===0?!0:z.U+p<(0,g.y2)()}; srB=function(z,p,c){z.W.set(p,c);z.D.set(p,c);z.X&&z.X.set(p,c)}; kef=function(z,p,c,B,H){++z.K;p&&++z.L;ZW(c.base).startsWith("redirector.")&&(z.W=z.D.clone(),delete z.X,B.QO&&delete H[ZW(z.W)])}; Li=function(z){return z?(z.itag||"")+";"+(z.lmt||0)+";"+(z.xtags||""):""}; d8=function(z,p,c,B){this.initRange=c;this.indexRange=B;this.W=null;this.D=!1;this.V=0;this.X=this.NN=this.K=null;this.info=p;this.j9=new $3(z)}; WE=function(z,p){this.start=z;this.end=p;this.length=p-z+1}; yz=function(z){z=z.split("-");var p=Number(z[0]),c=Number(z[1]);if(!isNaN(p)&&!isNaN(c)&&z.length===2&&(z=new WE(p,c),!isNaN(z.start)&&!isNaN(z.end)&&!isNaN(z.length)&&z.length>0))return z}; Ci=function(z,p){return new WE(z,z+p-1)}; g7f=function(z){return z.end==null?{start:String(z.start)}:{start:String(z.start),end:String(z.end)}}; eM=function(z){if(!z)return new WE(0,0);var p=Number(z.start);z=Number(z.end);if(!isNaN(p)&&!isNaN(z)&&(p=new WE(p,z),p.length>0))return p}; ls=function(z,p,c,B,H,T,b,D,t,X,x,E){B=B===void 0?"":B;this.type=z;this.W=p;this.range=c;this.source=B;this.Kl=x;this.clipId=E===void 0?"":E;this.U=[];this.G="";this.pH=-1;this.MZ=this.Dt=0;this.G=B;this.pH=H>=0?H:-1;this.startTime=T||0;this.duration=b||0;this.K=D||0;this.D=t>=0?t:this.range?this.range.length:NaN;this.L=this.range?this.K+this.D===this.range.length:X===void 0?!!this.D:X;this.range?(this.X=this.startTime+this.duration*this.K/this.range.length,this.S=this.duration*this.D/this.range.length, this.V=this.X+this.S):GeB(this)}; GeB=function(z){z.X=z.startTime;z.S=z.duration;z.V=z.X+z.S}; NBY=function(z,p,c){var B=!(!p||p.W!==z.W||p.type!==z.type||p.pH!==z.pH);return c?B&&!!p&&(z.range&&p.range?p.range.end===z.range.end:p.range===z.range)&&p.K+p.D===z.K+z.D:B}; vE=function(z){return z.type===1||z.type===2}; IB=function(z){return z.type===3||z.type===6}; jM=function(z,p){return z.W===p.W?z.range&&p.range?z.range.start+z.K+z.D===p.range.start+p.K:z.pH===p.pH?z.K+z.D===p.K:z.pH+1===p.pH&&p.K===0&&z.L:!1}; zAB=function(z,p){return z.pH!==p.pH&&p.pH!==z.pH+1||z.type!==p.type?!1:jM(z,p)?!0:Math.abs(z.X-p.X)<=1E-6&&z.pH===p.pH?!1:fpi(z,p)}; fpi=function(z,p){return jM(z,p)||Math.abs(z.V-p.X)<=1E-6||z.pH+1===p.pH&&p.K===0&&z.L?!0:!1}; Fh=function(z){return z.pH+(z.L?1:0)}; p6N=function(z){z.length===1||g.WR(z,function(c){return!!c.range}); for(var p=1;p=p.range.start+p.K&&z.range.start+z.K+z.D<=p.range.start+p.K+p.D:z.pH===p.pH&&z.K>=p.K&&(z.K+z.D<=p.K+p.D||p.L)}; V2f=function(z,p){return z.W!==p.W?!1:z.type===4&&p.type===3&&z.W.Gg()?(z=z.W.JL(z),ln(z,function(c){return V2f(c,p)})):z.pH===p.pH&&!!p.D&&p.K+p.D>z.K&&p.K+p.D<=z.K+z.D}; ni=function(z,p){var c=p.pH;z.G="updateWithSegmentInfo";z.pH=c;if(z.startTime!==p.startTime||z.duration!==p.duration)z.startTime=p.startTime+z.Dt,z.duration=p.duration,GeB(z)}; Qz=function(z,p){var c=this;this.b8=z;this.X=this.W=null;this.L=this.nt=NaN;this.Fo=this.requestId=null;this.Xg={ZIq:function(){return c.range}}; this.j9=z[0].W.j9;this.K=p||"";this.b8[0].range&&this.b8[0].D>0&&(cwD(z)?(this.range=p6N(z),this.D=this.range.length):(this.range=this.b8[this.b8.length-1].range,this.D=BrY(z)))}; r8=function(z){return!vE(z.b8[z.b8.length-1])}; UV=function(z){return z.b8[z.b8.length-1].type===4}; g.sV=function(z,p,c){c=z.Fo===null?z.j9.Fo(p,c,z.b8[0].type):z.Fo;if(z.W){p=c?Wi(z.W,p.mN):z.W;var B=new AR(p);B.get("alr")||B.set("alr","yes");z.K&&n7S(B,z.K)}else/http[s]?:\/\//.test(z.K)?B=new AR(new g.uF(z.K)):(B=us(z.j9,c,p),z.K&&n7S(B,z.K));(p=z.range)?B.set("range",p.toString()):z.b8[0].W.yc()&&z.b8.length===1&&z.b8[0].K&&B.set("range",z.b8[0].K+"-");z.requestId&&B.set("req_id",z.requestId);isNaN(z.nt)||B.set("headm",z.nt.toString());isNaN(z.L)||B.set("mffa",z.L+"ms");z.urlParams&&g.Rx(z.urlParams, function(H,T){B.set(T,H)}); return B}; DFf=function(z){if(z.range)return z.D;z=z.b8[0];return Math.round(z.S*z.W.info.l8)}; t2Y=function(z,p){return Math.max(0,z.b8[0].X-p)}; k3=function(z,p,c,B,H,T){T=T===void 0?0:T;d8.call(this,z,p,B,void 0);this.L=c;this.MO=T;this.index=H||new g.eI}; X6N=function(z,p,c,B,H){this.pH=z;this.startSecs=p;this.UI=c;this.W=B||NaN;this.K=H||NaN}; g8=function(z,p,c){for(;z;z=z.parentNode)if(z.attributes&&(!c||z.nodeName===c)){var B=z.getAttribute(p);if(B)return B}return""}; GP=function(z,p){for(;z;z=z.parentNode){var c=z.getElementsByTagName(p);if(c.length>0)return c[0]}return null}; xFf=function(z){if(!z)return 0;var p=z.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return p?(Number(p[2])|0)*3600+(Number(p[4])|0)*60+(Number(p[6])|0):Number(z)|0}; EKE=function(z){return z.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?z+"Z":z}; Nm=function(){this.W=[];this.K=null;this.V=0;this.D=[];this.L=!1;this.G="";this.X=-1}; qIx=function(z){var p=z.D;z.D=[];return p}; Jwv=function(){this.X=[];this.W=null;this.K={};this.D={}}; hAv=function(z,p){var c=[];p=Array.from(p.getElementsByTagName("SegmentTimeline"));p=g.m(p);for(var B=p.next();!B.done;B=p.next()){B=B.value;var H=B.parentNode.parentNode,T=null;H.nodeName==="Period"?T=M2S(z):H.nodeName==="AdaptationSet"?(H=H.getAttribute("id")||H.getAttribute("mimetype")||"",T=YIV(z,H)):H.nodeName==="Representation"&&(H=H.getAttribute("id")||"",T=mFu(z,H));if(T==null)return;T.update(B);g.Be(c,qIx(T))}g.Be(z.X,c);cJD(z.X,function(b){return b.startSecs*1E3+b.W})}; PmQ=function(z){z.W&&(z.W.W=[]);g.Rx(z.K,function(p){p.W=[]}); g.Rx(z.D,function(p){p.W=[]})}; M2S=function(z){z.W||(z.W=new Nm);return z.W}; YIV=function(z,p){z.K[p]||(z.K[p]=new Nm);return z.K[p]}; mFu=function(z,p){z.D[p]||(z.D[p]=new Nm);return z.D[p]}; zm=function(z){var p=z===void 0?{}:z;z=p.MO===void 0?0:p.MO;var c=p.Cn===void 0?!1:p.Cn;var B=p.DY===void 0?0:p.DY;var H=p.Rj===void 0?0:p.Rj;var T=p.uY===void 0?Infinity:p.uY;var b=p.Ww===void 0?0:p.Ww;var D=p.iZ===void 0?!1:p.iZ;p=p.u3===void 0?!1:p.u3;g.eI.call(this);this.cW=this.Nk=-1;this.OF=z;this.DY=B;this.Cn=c;this.Rj=H;this.uY=T;this.Ww=b;((this.iZ=D)||isFinite(T)&&this.uY>0)&&c&&fi&&(this.K=!1,this.D="postLive");this.u3=p}; p5=function(z,p){return D5(z.segments,function(c){return p-c.pH})}; cw=function(z,p,c){c=c===void 0?{}:c;k3.call(this,z,p,"",void 0,void 0,c.MO||0);this.index=new zm(c)}; Bw=function(z,p,c){d8.call(this,z,p);this.L=c;z=this.index=new g.eI;z.K=!1;z.D="d"}; AwQ=function(z,p,c){var B=z.index.CM(p),H=z.index.getStartTime(p),T=z.index.getDuration(p);c?T=c=0:c=z.info.l8*T;return new Qz([new ls(3,z,void 0,"otfCreateRequestInfoForSegment",p,H,T,0,c)],B)}; OZW=function(z,p){if(!z.index.isLoaded()){var c=[],B=p.X;p=p.L.split(",").filter(function(x){return x.length>0}); for(var H=0,T=0,b=0,D=/^(\d+)/,t=/r=(\d+)/,X=0;X0&&(p-=z.timestampOffset);var c=g.Tm(z)+p;RAS(z,c);z.timestampOffset=p}; RAS=function(z,p){g.H6(z.info.W.info)||z.info.W.info.Q4();z.D=p;if(g.H6(z.info.W.info)){var c=z.TZ();z=z.info.W.W;for(var B=NaN,H=NaN,T=0;pi(c,T);){var b=cE(c,T);isNaN(B)&&(b.type===1936286840?B=b.data.getUint32(b.dataOffset+8):b.type===1836476516&&(B=g.NJ(b)));if(b.type===1952867444){!B&&z&&(B=fS(z));var D=g.HE(b);isNaN(H)&&(H=Math.round(p*B)-D);var t=b;D+=H;if(t.data.getUint8(t.dataOffset)){var X=t.data;t=t.dataOffset+4;X.setUint32(t,Math.floor(D/4294967296));X.setUint32(t+4,D&4294967295)}else t.data.setUint32(t.dataOffset+ 4,D)}T=BE(b.type)?T+8:T+b.size}return!0}c=new bs(z.TZ());z=z.L?c:new bs(new DataView(z.info.W.W.buffer));B=hR(z);z=c.pos;c.pos=0;if(PE(c)&&Xh(c,231))if(H=x3(c,!0),p=Math.floor(p*1E9/B),Math.ceil(Math.log(p)/Math.log(2)/8)>H)p=!1;else{for(B=H-1;B>=0;B--)c.W.setUint8(c.pos+B,p&255),p>>>=8;c.pos=z;p=!0}else p=!1;return p}; Vr=function(z,p){p=p===void 0?!1:p;var c=b2(z);z=p?0:z.info.S;return c||z}; b2=function(z){g.H6(z.info.W.info)||z.info.W.info.Q4();if(z.K&&z.info.type===6)return z.K.MO;if(g.H6(z.info.W.info)){var p=z.TZ();var c=0;p=g.TP(p,1936286840);p=g.m(p);for(var B=p.next();!B.done;B=p.next())B=def(B.value),c+=B.Lb[0]/B.timescale;c=c||NaN;if(!(c>=0))a:{c=z.TZ();p=z.info.W.W;for(var H=B=0,T=0;pi(c,B);){var b=cE(c,B);if(b.type===1836476516)H=g.NJ(b);else if(b.type===1836019558){!H&&p&&(H=fS(p));if(!H){c=NaN;break a}var D=zP(b.data,b.dataOffset,1953653094),t=D;D=H;var X=zP(t.data,t.dataOffset, 1952868452);t=zP(t.data,t.dataOffset,1953658222);var x=jI(X);jI(X);x&2&&jI(X);X=x&8?jI(X):0;var E=jI(t),q=E&1;x=E&4;var J=E&256,M=E&512,P=E&1024;E&=2048;var O=FK(t);q&&jI(t);x&&jI(t);for(var R=q=0;R2048?"":p.indexOf("https://")===0?p:""}; qO=function(z,p,c){p.match(liD);return z(p,c).then(function(B){var H=g.eAD(B.xhr);return H?qO(z,H,c):B.xhr})}; hX=function(z,p,c){z=z===void 0?"":z;p=p===void 0?null:p;c=c===void 0?!1:c;g.JQ.call(this);var B=this;this.sourceUrl=z;this.isLivePlayback=c;this.NZ=this.duration=0;this.isPremiere=this.iZ=this.X=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.uY=this.Rj=0;this.isOtf=this.La=!1;this.i8=(0,g.y2)();this.MZ=Infinity;this.W={};this.D=new Map;this.state=this.ZJ=0;this.timeline=null;this.isManifestless=!1;this.tD=[];this.V=null;this.T$=0;this.L="";this.Ra=NaN;this.fH=this.Ca=this.timestampOffset=this.G= 0;this.f3=this.Fh=NaN;this.LB=0;this.OH=this.U=!1;this.YA=[];this.rA={};this.Dt=NaN;this.Xg={clI:function(D){JX(B,D)}}; var H;this.Zt=(H=p)==null?void 0:H.JD("html5_use_network_error_code_enums");vKY=!!p&&p.JD("html5_modern_vp9_mime_type");var T;MO=!((T=p)==null||!T.JD("html5_enable_flush_during_seek"))&&g.GQ();var b;m4=!((b=p)==null||!b.JD("html5_enable_reset_audio_decoder"))&&g.GQ()}; IiY=function(z){return g.KH(z.W,function(p){return!!p.info.video&&p.info.video.qualityOrdinal>=2160})}; VUS=function(z){return g.KH(z.W,function(p){return!!p.info.video&&p.info.video.isHdr()})}; AP=function(z){return g.KH(z.W,function(p){return!!p.info.o8})}; g.jpi=function(z){return g.KH(z.W,function(p){return Di(p.info.mimeType)})}; FXB=function(z){return g.KH(z.W,function(p){return p.info.video?p.info.video.projectionType==="EQUIRECTANGULAR":!1})}; oKv=function(z){return g.KH(z.W,function(p){return p.info.video?p.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; nKv=function(z){return g.KH(z.W,function(p){return p.info.video?p.info.video.projectionType==="MESH":!1})}; QpQ=function(z){return g.KH(z.W,function(p){return p.info.video?p.info.video.stereoLayout===1:!1})}; rwE=function(z){return lBu(z.W,function(p){return p.info.video?p.bH():!0})}; mp=function(z){return g.KH(z.W,function(p){return LS(p.j9.W)})}; JX=function(z,p){z.W[p.info.id]=p;z.D.set(Li(g.Tq(p.info,z.La)),p)}; UFY=function(z,p){return Li({itag:p.itag,lmt:z.La?0:p.lmt||0,xtags:p.xtags})}; OP=function(z,p,c){c=c===void 0?0:c;var B=z.mimeType||"",H=z.itag;var T=z.xtags;H=H?H.toString():"";T&&(H+=";"+T);T=H;if(Vf(B)){var b=z.width||640;H=z.height||360;var D=z.fps,t=z.qualityLabel,X=z.colorInfo,x=z.projectionType,E;z.stereoLayout&&(E=spQ[z.stereoLayout]);var q=ywS(z)||void 0;if(X==null?0:X.primaries)var J=kqN[X.primaries]||void 0;b=new U4(b,H,D,x,E,void 0,t,q,J);B=Pw(B,b,gB[z.itag||""]);MO&&(B+="; enableflushduringseek=true");m4&&(B+="; enableresetaudiodecoder=true")}var M;if(bm(B)){var P= z.audioSampleRate;E=z.audioTrack;P=new nd(P?+P:void 0,z.audioChannels,z.spatialAudioType,z.isDrc,z.loudnessDb,z.trackAbsoluteLoudnessLkfs,z.audioQuality||"AUDIO_QUALITY_UNKNOWN");E&&(J=E.displayName,H=E.id,E=E.audioIsDefault,J&&(M=new g.EP(J,H||"",!!E)))}var O;z.captionTrack&&(t=z.captionTrack,E=t.displayName,J=t.vssId,H=t.languageCode,D=t.kind,t=t.id,E&&J&&H&&(O=new dFW(E,J,H,D,z.xtags,t)));E=Number(z.bitrate)/8;J=Number(z.contentLength);H=Number(z.lastModified);t=z.drmFamilies;D=z.type;c=c&&J?J/ c:0;z=Number(z.approxDurationMs);if(p&&t){var R={};t=g.m(t);for(X=t.next();!X.done;X=t.next())(X=AX[X.value])&&(R[X]=p[X])}return new Ge(T,B,{audio:P,video:b,bQ:M,o8:R,l8:E,y6:c,contentLength:J,lastModified:H,captionTrack:O,streamType:D,approxDurationMs:z})}; wm=function(z,p,c){c=c===void 0?0:c;var B=z.type;var H=z.itag;var T=z.xtags;T&&(H=z.itag+";"+T);if(Vf(B)){var b=(z.size||"640x360").split("x");b=new U4(+b[0],+b[1],+z.fps,z.projection_type,+z.stereo_layout,void 0,z.quality_label,z.eotf,z.primaries);B=Pw(B,b,gB[z.itag]);MO&&(B+="; enableflushduringseek=true");m4&&(B+="; enableresetaudiodecoder=true")}var D;if(bm(B)){var t=new nd(+z.audio_sample_rate||void 0,+z.audio_channels||0,z.spatial_audio_type,!!z.drc);z.name&&(D=new g.EP(z.name,z.audio_track_id, z.isDefault==="1"))}var X;z.caption_display_name&&z.caption_vss_id&&z.caption_language_code&&(X=new dFW(z.caption_display_name,z.caption_vss_id,z.caption_language_code,z.caption_kind,z.xtags,z.caption_id));T=Number(z.bitrate)/8;var x=Number(z.clen),E=Number(z.lmt);c=c&&x?x/c:0;if(p&&z.drm_families){var q={};for(var J=g.m(z.drm_families.split(",")),M=J.next();!M.done;M=J.next())M=M.value,q[M]=p[M]}return new Ge(H,B,{audio:t,video:b,bQ:D,o8:q,l8:T,y6:c,contentLength:x,lastModified:E,captionTrack:X, streamType:z.stream_type,approxDurationMs:Number(z.approx_duration_ms)})}; gK_=function(z){return ln(z,function(p){return"FORMAT_STREAM_TYPE_OTF"===p.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; GqN=function(z){return ln(z,function(p){return"FORMAT_STREAM_TYPE_OTF"===p.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; NrY=function(z,p){return z.timeline?He(z.timeline.X,p):z.tD.length?He(z.tD,p):[]}; RM=function(z,p,c){p=p===void 0?"":p;c=c===void 0?"":c;z=new g.uF(z,!0);z.set("alr","yes");c&&(c=aDQ(decodeURIComponent(c)),z.set(p,encodeURIComponent(c)));return z}; cOx=function(z,p){var c=g8(p,"id");c=c.replace(":",";");var B=g8(p,"mimeType"),H=g8(p,"codecs");B=H?B+'; codecs="'+H+'"':B;H=Number(g8(p,"bandwidth"))/8;var T=Number(GP(p,"BaseURL").getAttribute(z.L+":contentLength")),b=z.duration&&T?T/z.duration:0;if(Vf(B)){var D=Number(g8(p,"width"));var t=Number(g8(p,"height")),X=Number(g8(p,"frameRate")),x=fif(g8(p,z.L+":projectionType"));a:switch(g8(p,z.L+":stereoLayout")){case "layout_left_right":var E=1;break a;case "layout_top_bottom":E=2;break a;default:E= 0}D=new U4(D,t,X,x,E)}if(bm(B)){var q=Number(g8(p,"audioSamplingRate"));var J=Number(g8(p.getElementsByTagName("AudioChannelConfiguration")[0],"value"));t=z6x(g8(p,z.L+":spatialAudioType"));q=new nd(q,J,t);a:{J=g8(p,"lang")||"und";if(t=GP(p,"Role"))if(x=g8(t,"value")||"",g.LH(pSS,x)){t=J+"."+pSS[x];X=x==="main";z=g8(p,z.L+":langName")||J+" - "+x;J=new g.EP(z,t,X);break a}J=void 0}}if(p=GP(p,"ContentProtection"))if(p.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var M={};for(p= p.firstChild;p!=null;p=p.nextSibling)p instanceof Element&&/SystemURL/.test(p.nodeName)&&(z=p.getAttribute("type"),t=p.textContent,z&&t&&(M[z]=t.trim()))}else M=void 0;return new Ge(c,B,{audio:q,video:D,bQ:J,o8:M,l8:H,y6:b,contentLength:T})}; fif=function(z){switch(z){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"}}; z6x=function(z){switch(z){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"}}; HgD=function(z,p){p=p===void 0?"":p;z.state=1;z.i8=(0,g.y2)();return Cmv(p||z.sourceUrl).then(function(c){if(!z.qZ()){z.ZJ=c.status;c=c.responseText;var B=new DOMParser;c=zk(B,lLY(c),"text/xml").getElementsByTagName("MPD")[0];z.MZ=xFf(g8(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){B=g.m(c.attributes);for(var H=B.next();!H.done;H=B.next())if(H=H.value,H.value==="http://youtube.com/yt/2012/10/10"){B=H.name.split(":")[1];break b}}B=""}z.L=B;z.isLive=z.MZ=z.MZ}; TVY=function(z){z.V&&z.V.stop()}; BVQ=function(z){var p=z.MZ;isFinite(p)&&(S5(z)?z.refresh():(p=Math.max(0,z.i8+p-(0,g.y2)()),z.V||(z.V=new g.B4(z.refresh,p,z),g.l(z,z.V)),z.V.start(p)))}; bgv=function(z){z=z.W;for(var p in z){var c=z[p].index;if(c.isLoaded())return c.E1()+1}return 0}; $T=function(z){return z.Ca?z.Ca-(z.G||z.timestampOffset):0}; K5=function(z){return z.fH?z.fH-(z.G||z.timestampOffset):0}; u2=function(z){if(!isNaN(z.Ra))return z.Ra;var p=z.W,c;for(c in p){var B=p[c].index;if(B.isLoaded()&&!Di(p[c].info.mimeType)){p=0;for(c=B.zc();c<=B.E1();c++)p+=B.getDuration(c);p/=B.l5();p=Math.round(p/.5)*.5;B.l5()>10&&(z.Ra=p);return p}if(z.isLive&&(B=p[c],B.MO))return B.MO}return NaN}; V4v=function(z,p){z=IBv(z.W,function(B){return B.index.isLoaded()}); if(!z)return NaN;z=z.index;var c=z.Hn(p);return z.getStartTime(c)===p?p:c=0&&H.segments.splice(T,1)}}}; t4N=function(z){for(var p in z.W)Di(z.W[p].info.mimeType)||PzS(z.W[p].index,Infinity)}; L5=function(z,p,c){for(var B in z.W){var H=z.W[B].index,T=p,b=c;H.Cn&&(T&&(H.Nk=Math.max(H.Nk,T)),b&&(H.cW=Math.max(H.cW||0,b)))}c&&(z.Dt=c/1E3)}; XSY=function(z){z.fH=0;z.Ca=0;z.LB=0}; dm=function(z){return z.OH&&z.isManifestless?z.isLiveHeadPlayable:z.isLive}; Pw=function(z,p,c){Ww===null&&(Ww=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(vKY&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Ww||c!=="9"&&c!=="("?Ww||c!=="9h"&&c!=="(h"||(z='video/webm; codecs="vp9.2"'):z='video/webm; codecs="vp9"',z;if(!Ww&&!yr||z!=='video/webm; codecs="vp9"'&&z!=='video/webm; codecs="vp9.2"')return z; c="00";var B="08",H="01",T="01",b="01";z==='video/webm; codecs="vp9.2"'&&(c="02",B="10",p.primaries==="bt2020"&&(b=H="09"),p.W==="smpte2084"&&(T="16"),p.W==="arib-std-b67"&&(T="18"));return'video/webm; codecs="'+["vp09",c,"51",B,"01",H,T,b,"00"].join(".")+'"'}; e5=function(z,p,c){z=""+z+(p>49?"p60":p>32?"p48":"");p=UZ()[z];if(p!=null&&p>0)return p;p=C5.get(z);if(p!=null&&p>0)return p;c=c==null?void 0:c.get(z);return c!=null&&c>0?c:8192}; xPB=function(z){this.QI=z;this.Wy=this.Om=this.fH=this.V=this.L=this.rA=this.NZ=this.Dt=!1;this.S=this.G=0;this.sH=!1;this.tD=!0;this.CH=!1;this.xw=0;this.fu=this.Ra=!1;this.LB=!0;this.OH=this.i8=!1;this.W={};this.EW=this.disableAv1=this.WM=this.JH=this.UH=this.RR=this.K=this.U=!1;this.t1=this.QI.Y("html5_disable_aac_preference");this.Ca=Infinity;this.YA=0;this.gt=this.QI.OW();this.FQ=this.QI.experiments.JD("html5_enable_vp9_fairplay");this.cO=this.QI.Y("html5_force_av1_for_testing");this.Zt=g.P3(this.QI.experiments, "html5_av1_ordinal_cap");this.Q8=this.QI.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.wU=this.QI.Y("html5_account_onesie_format_selection_during_format_filter");this.l8=g.P3(this.QI.experiments,"html5_max_byterate");this.D=this.QI.Y("html5_sunset_aac_high_codec_family");this.T$=this.QI.Y("html5_sunset_aac_high_codec_family");this.Zw=this.QI.Y("html5_enable_iamf_audio");this.Lv=this.QI.experiments.JD("html5_allow_capability_merge");this.ow=this.QI.Y("html5_enable_encrypted_av1")}; DeY=function(z){if(z.NZ)return["f"];if(g.k5("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var p=["9h","9","h","8"];z.ow&&p.push("1e");p=p.concat(["(h","(","H","*"]);z.Ra&&(p.unshift("1"),p.unshift("1h"));z.Om&&p.unshift("h");z.MZ&&(p=(ENf[z.MZ]||[z.MZ]).concat(p));return p}; cdf=function(z){var p=["o","a","A"];z.YA===1&&(z.L&&(p=["mac3","MAC3"].concat(p)),z.V&&(p=["meac3","MEAC3"].concat(p)),z.Zw&&(p=["i","I"].concat(p)));z.Dt&&(p=["so","sa"].concat(p));!z.Wy||z.fH||z.X||z.t1||p.unshift("a");z.rA&&!z.D&&p.unshift("ah");z.X&&(p=(ENf[z.X]||[z.X]).concat(p));return p}; l2=function(z,p,c,B){p=p===void 0?{}:p;if(B===void 0?0:B)return p.disabled=1,0;if($t(z.L,KS.AV1_CODECS)&&$t(z.L,KS.HEIGHT)&&$t(z.L,KS.BITRATE))return p.isCapabilityUsable=1,8192;try{var H=v8D();if(H)return p.localPref=H}catch(D){}B=1080;H=navigator.hardwareConcurrency;H<=2&&(B=480);p.coreCount=H;if(H=g.P3(z.experiments,"html5_default_av1_threshold"))B=p["default"]=H;!z.Y("html5_disable_av1_arm_check")&&OoE()&&(p.isArm=1,B=240);if(z=z.L.tD)p.mcap=z,B=Math.max(B,z);if(c){var T,b;if(z=(T=c.videoInfos.find(function(D){return pZ(D)}))== null?void 0:(b=T.K)==null?void 0:b.powerEfficient)B=8192,p.isEfficient=1; c=c.videoInfos[0].video;T=Math.min(e5("1",c.fps),e5("1",30));p.perfCap=T;B=Math.min(B,T);c.isHdr()&&!z&&(p.hdr=1,B*=.75)}else c=e5("1",30),p.perfCap30=c,B=Math.min(B,c),c=e5("1",60),p.perfCap60=c,B=Math.min(B,c);return p.av1Threshold=B}; vw=function(z,p,c,B){this.flavor=z;this.keySystem=p;this.K=c;this.experiments=B;this.W={};this.CH=this.keySystemAccess=null;this.SB=this.H_=-1;this.Ob=null;this.D=!!B&&B.JD("edge_nonprefixed_eme");B&&B.JD("html5_enable_vp9_fairplay")}; j5=function(z){return z.D?!1:!z.keySystemAccess&&!!IM()&&z.keySystem==="com.microsoft.playready"}; FJ=function(z){return z.keySystem==="com.microsoft.playready"}; oM=function(z){return!z.keySystemAccess&&!!IM()&&z.keySystem==="com.apple.fps.1_0"}; n5=function(z){return z.keySystem==="com.youtube.fairplay"}; Qr=function(z){return z.keySystem==="com.youtube.fairplay.sbdl"}; g.rm=function(z){return z.flavor==="fairplay"}; IM=function(){var z=window,p=z.MSMediaKeys;zW()&&!p&&(p=z.WebKitMediaKeys);return p&&p.isTypeSupported?p:null}; sP=function(z){return navigator.requestMediaKeySystemAccess?g.v2&&!g.GQ()?dD("45"):g.pq||g.An?z.JD("edge_nonprefixed_eme"):g.UP?dD("47"):g.$U&&z.JD("html5_enable_safari_fairplay")?!1:!0:!1}; qCu=function(z,p,c,B){var H=N_(),T=(c=H||c&&zW())?["com.youtube.fairplay"]:["com.widevine.alpha"];p&&T.unshift("com.youtube.widevine.l3");H&&B&&T.unshift("com.youtube.fairplay.sbdl");return c?T:z?[].concat(g.A(T),g.A(kT.playready)):[].concat(g.A(kT.playready),g.A(T))}; Gm=function(){this.K=this.ye=0;this.W=Array.from({length:gm.length}).fill(0)}; JOx=function(){}; M4S=function(){this.startTimeMs=(0,g.y2)();this.W=!1}; YCx=function(){this.W=new JOx}; mPB=function(z,p,c,B){B=B===void 0?1:B;c>=0&&(p in z.W||(z.W[p]=new Gm),z.W[p].hC(c,B))}; h6f=function(z,p,c,B,H){var T=(0,g.y2)(),b=H?H(p):void 0,D;H=(D=b==null?void 0:b.ye)!=null?D:1;if(H!==0){var t;D=(t=b==null?void 0:b.profile)!=null?t:c;mPB(z,D,T-B,H)}return p}; NO=function(z,p,c,B,H){if(p&&typeof p==="object"){var T=function(b){return h6f(z,b,c,B,H)}; if(Jh(p))return p.then(T);if(PBS(p))return Ah(p,T)}return h6f(z,p,c,B,H)}; AON=function(){}; f5=function(z,p,c,B,H){B=B===void 0?!1:B;g.e.call(this);this.QI=p;this.useCobaltWidevine=B;this.KH=H;this.K=[];this.D={};this.W={};this.callback=null;this.L=!1;this.X=[];this.initialize(z,!c)}; wSQ=function(z,p){z.callback=p;z.X=[];sP(z.QI.experiments)?zx(z):OgB(z)}; zx=function(z){if(!z.qZ())if(z.K.length===0)z.callback(z.X);else{var p=z.K[0],c=z.D[p],B=R6f(z,c);if(pm&&pm.keySystem===p&&pm.Whq===JSON.stringify(B))z.KH("remksa",{re:!0}),SCQ(z,c,pm.keySystemAccess);else{var H,T;z.KH("remksa",{re:!1,ok:(T=(H=pm)==null?void 0:H.keySystem)!=null?T:""});pm=void 0;(cW.isActive()?cW.V7("emereq",function(){return navigator.requestMediaKeySystemAccess(p,B)}):navigator.requestMediaKeySystemAccess(p,B)).then(Kk(function(b){SCQ(z,c,b,B)}),Kk(function(){z.L=!z.L&&z.D[z.K[0]].flavor=== "widevine"; z.L||z.K.shift();zx(z)}))}}}; SCQ=function(z,p,c,B){if(!z.qZ()){B&&(pm={keySystem:p.keySystem,keySystemAccess:c,Whq:JSON.stringify(B)});p.keySystemAccess=c;if(FJ(p)){c=eU();B=g.m(Object.keys(z.W[p.flavor]));for(var H=B.next();!H.done;H=B.next())H=H.value,p.W[H]=!!c.canPlayType(H)}else{c=p.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(B=g.m(c.audioCapabilities),H=B.next();!H.done;H=B.next())$Pu(z,p,H.value);if(c.videoCapabilities)for(c=g.m(c.videoCapabilities),B=c.next();!B.done;B=c.next())$Pu(z,p,B.value)}z.X.push(p); z.useCobaltWidevine||z.Y("html5_enable_vp9_fairplay")&&Qr(p)?(z.K.shift(),zx(z)):z.callback(z.X)}}; $Pu=function(z,p,c){z.Y("log_robustness_for_drm")?p.W[c.contentType]=c.robustness||!0:p.W[c.contentType]=!0}; R6f=function(z,p){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(z.Y("html5_enable_vp9_fairplay")&&n5(p))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];FJ(p)&&(c.initDataTypes=["keyids","cenc"]);for(var B=g.m(Object.keys(z.W[p.flavor])),H=B.next();!H.done;H=B.next()){H=H.value;var T=H.indexOf("audio/")===0,b=T?c.audioCapabilities:c.videoCapabilities;p.flavor!== "widevine"||z.L?b.push({contentType:H}):T?b.push({contentType:H,robustness:"SW_SECURE_CRYPTO"}):(g.v2&&g.k5("windows nt")&&!z.Y("html5_drm_enable_moho")||b.push({contentType:H,robustness:"HW_SECURE_ALL"}),T=H,z.Y("html5_enable_cobalt_experimental_vp9_decoder")&&H.includes("vp09")&&(T=H+"; experimental=allowed"),b.push({contentType:T,robustness:"SW_SECURE_DECODE"}),BW(z.QI)==="MWEB"&&(TW()||gS())&&(z.KH("swcrypto",{}),b.push({contentType:H,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; OgB=function(z){if(IM()&&(g.$U||cL))z.X.push(new vw("fairplay","com.apple.fps.1_0","",z.QI.experiments));else{var p=KOD(),c=g.kL(z.K,function(B){var H=z.D[B],T=!1,b=!1,D;for(D in z.W[H.flavor])p(D,B)&&(H.W[D]=!0,T=T||D.indexOf("audio/")===0,b=b||D.indexOf("video/")===0);return T&&b}); c&&z.X.push(z.D[c]);z.K=[]}z.callback(z.X)}; KOD=function(){var z=IM();if(z){var p=z.isTypeSupported;return function(B,H){return p(H,B)}}var c=eU(); return c&&(c.addKey||c.webkitAddKey)?function(B,H){return!!c.canPlayType(B,H)}:function(){return!1}}; uQY=function(z){this.experiments=z;this.W=2048;this.X=0;this.tD=(this.G=this.Y("html5_streaming_resilience"))?.5:.25;var p=p===void 0?0:p;this.D=g.P3(this.experiments,"html5_media_time_weight_prop")||p;this.Dt=g.P3(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.U=(this.L=this.experiments.JD("html5_consider_end_stall"))&&HW;this.K=this.experiments.JD("html5_measure_max_progress_handling");this.S=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.V=this.Y("html5_media_time_weight")|| !!this.D;this.MZ=g.P3(this.experiments,"html5_streaming_fallback_byterate");this.Y("html5_sabr_live_audio_early_return_fix")&&HW&&(this.W=65536)}; a0x=function(z,p){this.W=void 0;this.experimentIds=z?z.split(","):[];this.flags=bO(p||"","&");z={};p=g.m(this.experimentIds);for(var c=p.next();!c.done;c=p.next())z[c.value]=!0;this.experiments=z}; g.P3=function(z,p){z=z.flags[p];JSON.stringify(z);return Number(z)||0}; iP=function(z,p){return(z=z.flags[p])?z.toString():""}; ZgN=function(z){if(z=z.flags.html5_web_po_experiment_ids)if(z=z.replace(/\[ *(.*?) *\]/,"$1"))return z.split(",").map(Number);return[]}; LOQ=function(z){if(z.W)return z.W;if(z.experimentIds.length<=1)return z.W=z.experimentIds,z.W;var p=[].concat(g.A(z.experimentIds)).map(function(B){return Number(B)}); p.sort();for(var c=p.length-1;c>0;--c)p[c]-=p[c-1];z.W=p.map(function(B){return B.toString()}); z.W.unshift("v1");return z.W}; WON=function(z){return dPf.then(z)}; Tx=function(z,p,c){this.experiments=z;this.Ra=p;this.YA=c===void 0?!1:c;this.Dt=!!g.n_("cast.receiver.platform.canDisplayType");this.U={};this.S=!1;this.K=new Map;this.G=!0;this.X=this.L=!1;this.W=new Map;this.tD=0;this.T$=this.experiments.JD("html5_disable_vp9_encrypted");this.D=this.experiments.JD("html5_enable_encrypted_av1");z=g.n_("cast.receiver.platform.getValue");this.V=!this.Dt&&z&&z("max-video-resolution-vpx")||null;yOD(this)}; xeu=function(z,p,c){c=c===void 0?1:c;var B=p.itag;if(B==="0")return!0;var H=p.mimeType;if(p.yI==="1e"&&!z.D)return"dav1enc";if(pZ(p)&&z.S)return"dav1";if(p.video&&(p.video.isHdr()||p.video.primaries==="bt2020")&&!($t(z,KS.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(B==="338"&&!(g.v2?dD(53):g.UP&&dD(64)))return"dopus";var T=c;T=T===void 0?1:T; c={};p.video&&(p.video.width&&(c[KS.WIDTH.name]=p.video.width),p.video.height&&(c[KS.HEIGHT.name]=p.video.height),p.video.fps&&(c[KS.FRAMERATE.name]=p.video.fps*T),p.video.W&&(c[KS.EOTF.name]=p.video.W),p.l8&&(c[KS.BITRATE.name]=p.l8*8*T),p.yI==="("&&(c[KS.CRYPTOBLOCKFORMAT.name]="subsample"),p.video.projectionType==="EQUIRECTANGULAR"||p.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||p.video.projectionType==="MESH")&&(c[KS.DECODETOTEXTURE.name]="true");p.audio&&p.audio.numChannels&&(c[KS.CHANNELS.name]= p.audio.numChannels);z.L&&Ne(p)&&(c[KS.EXPERIMENTAL.name]="allowed");T=g.m(Object.keys(KS));for(var b=T.next();!b.done;b=T.next()){b=KS[b.value];var D;if(D=c[b.name])if(D=!(b===KS.EOTF&&p.mimeType.indexOf("vp09.02")>0)){D=b;var t=p;D=!(z.experiments.JD("html5_ignore_h264_framerate_cap")&&D===KS.FRAMERATE&&PTf(t))}if(D)if($t(z,b))if(z.V){if(z.V[b.name]1080&&p.o8&& (H+="; hdcp=2.2");return B==="227"?"hqcenc":B!=="585"&&B!=="588"&&B!=="583"&&B!=="586"&&B!=="584"&&B!=="587"&&B!=="591"&&B!=="592"||z.experiments.JD("html5_enable_new_hvc_enc")?z.isTypeSupported(H)?!0:"tpus":"newhvc"}; bP=function(){var z=gS()&&!dD(29),p=g.k5("google tv")&&g.k5("chrome")&&!dD(30);return z||p?!1:$6Y()}; CBS=function(z,p,c){var B=480;p=g.m(p);for(var H=p.next();!H.done;H=p.next()){H=H.value;var T=H.video.qualityOrdinal;T<=1080&&T>B&&xeu(z,H,c)===!0&&(B=T)}return B}; g.VB=function(z,p){p=p===void 0?!1:p;return bP()&&z.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!p&&z.canPlayType(eU(),"application/x-mpegURL")?!0:!1}; l0Y=function(z){e6v(function(){for(var p=g.m(Object.keys(KS)),c=p.next();!c.done;c=p.next())$t(z,KS[c.value])})}; $t=function(z,p){p.name in z.U||(z.U[p.name]=vN_(z,p));return z.U[p.name]}; vN_=function(z,p){if(z.V)return!!z.V[p.name];if(p===KS.BITRATE&&z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(p===KS.AV1_CODECS)return z.isTypeSupported("video/mp4; codecs="+p.valid)&&!z.isTypeSupported("video/mp4; codecs="+p.hI);if(p.video){var c='video/webm; codecs="vp9"';z.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', z.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return z.isTypeSupported(c+"; "+p.name+"="+p.valid)&&!z.isTypeSupported(c+"; "+p.name+"="+p.hI)}; I0Q=function(z){z.L||(z.L=!0,D8(z))}; D8=function(z){z.X=!0;z.experiments.JD("html5_ssap_update_capabilities_on_change")&&jhN(z)}; FO_=function(z,p){var c=0;z.K.has(p)&&(c=z.K.get(p).pc);z.K.set(p,{pc:c+1,Qx:Math.pow(2,c+1)});D8(z)}; OJ=function(z){for(var p=[],c=g.m(z.W.keys()),B=c.next();!B.done;B=c.next()){B=B.value;var H=z.W.get(B);p.push(B+"_"+H.maxWidth+"_"+H.maxHeight)}return p.join(".")}; jhN=function(z){z.MZ=[];for(var p=g.m(z.W.values()),c=p.next();!c.done;c=p.next()){c=c.value;var B=c.yI;z.experiments.JD("html5_ssap_force_mp4_aac")&&B!=="a"&&B!=="h"||z.K.has(B)||z.S&&(B==="1"||B==="1h"||z.D&&B==="1e")||z.MZ.push(c)}}; Hdf=function(z,p){for(var c=new Map,B=g.m(z.W.keys()),H=B.next();!H.done;H=B.next()){H=H.value;var T=H.split("_")[0];p.has(T)||c.set(H,z.W.get(H))}z.W=c}; TBf=function(z,p,c){var B,H=((B=c.video)==null?void 0:B.fps)||0;B=p+"_"+H;var T=!!c.audio,b={itag:c.itag,yI:p,aI:T};if(T)b.numChannels=c.audio.numChannels;else{var D=c.video;b.maxWidth=D==null?void 0:D.width;b.maxHeight=D==null?void 0:D.height;b.maxFramerate=H;$t(z,KS.BITRATE)&&(b.maxBitrateBps=c.l8*8);b.lc=D==null?void 0:D.isHdr()}D=z.W.get(B);D?T||(c=Math.max(D.maxWidth||0,D.maxHeight||0)>Math.max(b.maxWidth||0,b.maxHeight||0)?D:b,p={itag:c.itag,yI:p,aI:T,maxWidth:Math.max(D.maxWidth||0,b.maxWidth|| 0),maxHeight:Math.max(D.maxHeight||0,b.maxHeight||0),maxFramerate:H,lc:c.lc},$t(z,KS.BITRATE)&&(p.maxBitrateBps=c.maxBitrateBps),z.W.set(B,p)):z.W.set(B,b)}; bdW=function(z,p,c){var B,H=((B=c.video)==null?void 0:B.fps)||0;B=p+"_"+H;var T=!!c.audio,b=z.W.get(B);a:{var D=z.W.get(B),t=!!c.audio;if(D){if(t){var X=!1;break a}var x;if(!t&&((X=c.video)==null?0:X.height)&&D.maxHeight&&D.maxHeight>=((x=c.video)==null?void 0:x.height)){X=!1;break a}}X=!0}X&&(X=c.itag,p=b?b:{itag:X,yI:p,aI:T},T?p.numChannels=c.audio.numChannels:(T=c.video,p.maxWidth=T==null?void 0:T.width,p.maxHeight=T==null?void 0:T.height,p.maxFramerate=H,$t(z,KS.BITRATE)&&(p.maxBitrateBps=c.l8* 8),p.lc=T==null?void 0:T.isHdr()),z.W.set(B,p))}; yOD=function(z){var p;(p=navigator.mediaCapabilities)!=null&&p.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(c){c.smooth&&c.powerEfficient&&(z.tD=2160)})}; tN=function(){g.JQ.call(this);this.items={}}; XB=function(){g.ZG.apply(this,arguments)}; xq=function(){g.L7.apply(this,arguments)}; oNv=function(z,p,c){this.encryptedClientKey=p;this.L=c;this.W=new Uint8Array(z.buffer,0,16);this.D=new Uint8Array(z.buffer,16)}; nNB=function(z){z.K||(z.K=new XB(z.W));return z.K}; Ec=function(z){try{return Ay(z)}catch(p){return null}}; Qhx=function(z,p){if(!p&&z)try{p=JSON.parse(z)}catch(H){}if(p){z=p.clientKey?Ec(p.clientKey):null;var c=p.encryptedClientKey?Ec(p.encryptedClientKey):null,B=p.keyExpiresInSeconds?Number(p.keyExpiresInSeconds)*1E3+(0,g.y2)():null;z&&c&&B&&(this.W=new oNv(z,c,B));p.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Ec(p.onesieUstreamerConfig)||void 0);this.baseUrl=p.baseUrl}}; JN=function(){this.data=new Uint8Array(2048);this.pos=0;qB||(qB=vY("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; MB=function(z,p){z.add(p==null||isNaN(p)?0:p+1)}; Yq=function(z){this.W=this.K=0;this.alpha=Math.exp(Math.log(.5)/z)}; md=function(z){this.K=z===void 0?15:z;this.values=new Float64Array(176);this.W=new Float64Array(11);this.D=new Float64Array(16)}; hN=function(z,p,c,B){c=c===void 0?.5:c;B=B===void 0?0:B;this.resolution=p;this.K=0;this.D=!1;this.eF=!0;this.W=Math.round(z*this.resolution);this.values=Array(this.W);for(z=0;z0)p=z.byterate,this.MZ=!0;else{var B; c=(((B=navigator.connection)==null?void 0:B.downlink)||0)*64*1024;c>0&&(p=c,this.MZ=!0)}this.D.kF(this.policy.V,p);z.delay>0&&this.S.kF(1,Math.min(z.delay,2));z.stall>0&&this.G.kF(1,z.stall);z.init>0&&(this.fH=Math.min(z.init,this.fH));z.interruptions&&(this.X=this.X.concat(z.interruptions),this.X.length>16&&this.X.pop());this.Dt=(0,g.y2)();this.policy.G>0&&(this.rA=new g.B4(this.OH,this.policy.G,this),g.l(this,this.rA),this.rA.start())}; AN=function(z,p,c,B){z.D.kF(B===void 0?p:B,c/p);z.V=(0,g.y2)()}; UPD=function(z){z.L||(z.L=(0,g.y2)());z.policy.U&&(z.V=(0,g.y2)())}; shD=function(z,p){if(z.L){var c=p-z.L;if(c<6E4){if(c>1E3){var B=z.interruptions;B.push(Math.ceil(c));B.sort(function(H,T){return T-H}); B.length>16&&B.pop()}z.T$+=c}}z.L=p}; Oc=function(z,p,c,B,H,T){T=T===void 0?!1:T;z.YA.kF(p,c/p);z.V=(0,g.y2)();H||z.U.kF(1,p-B);T||(z.L=0);z.Dt>-1&&(0,g.y2)()-z.Dt>3E4&&kCf(z)}; wX=function(z,p,c){p=Math.max(p,z.K.W);z.G.kF(1,c/p)}; R6=function(z){z=z.S.Fu()+z.Ra.Fu()||0;z=isNaN(z)?.5:z;return z=Math.min(z,5)}; SF=function(z,p,c){isNaN(c)||(z.tD+=c);isNaN(p)||(z.i8+=p)}; $q=function(z){z=z.D.Fu();return z>0?z:1}; Km=function(z,p,c){p=p===void 0?!1:p;c=c===void 0?1048576:c;var B=$q(z);B=1/((z.G.Fu()||0)*z.policy.MZ+1/B);var H=z.YA.Fu();H=H>0?H:1;var T=Math.max(B,H);z.policy.L>0&&H=4E3}; GCB=function(z){this.experiments=z;this.W=17;this.D=13E4;this.V=.5;this.K=!1;this.Dt=this.Y("html5_use_histogram_for_bandwidth");this.X=!1;this.L=g.P3(this.experiments,"html5_auxiliary_estimate_weight");this.MZ=g.P3(this.experiments,"html5_stall_factor")||1;this.G=g.P3(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.JD("html5_trigger_loader_when_idle_network");this.U=this.experiments.JD("html5_sabr_fetch_on_idle_network_preloaded_players")}; f0N=function(z,p){z=z===void 0?{}:z;p=p===void 0?{}:p;g.e.call(this);var c=this;this.values=z;this.Vo=p;this.K={};this.D=this.W=0;this.X=new g.B4(function(){NVV(c)},1E4); g.l(this,this.X)}; a6=function(z,p){zmu(z,p);return z.values[p]&&z.Vo[p]?z.values[p]/Math.pow(2,z.W/z.Vo[p]):0}; zmu=function(z,p){z.values[p]||(p=yf_(),z.values=p.values||{},z.Vo=p.halfLives||{},z.K=p.values?Object.assign({},p.values):{})}; NVV=function(z){var p=yf_();if(p.values){p=p.values;for(var c={},B=g.m(Object.keys(z.values)),H=B.next();!H.done;H=B.next())H=H.value,p[H]&&z.K[H]&&(z.values[H]+=p[H]-z.K[H]),c[H]=a6(z,H);z.K=c}p=z.Vo;c={};c.values=z.K;c.halfLives=p;g.Iw("yt-player-memory",c,2592E3)}; kq=function(z,p,c,B,H){g.e.call(this);this.webPlayerContextConfig=p;this.f3=B;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.SK=this.Zw=this.NZ=this.Rk=this.userDisplayName=this.userDisplayImage=this.UF="";this.W={};this.Ca={};this.controlsType="0";this.Lv=NaN;this.UH=!1;this.dJ=(0,g.y2)();this.gt=0;this.xG=this.ev=!1;this.OM=!0;this.preferGapless=this.v0=this.gJ=this.D=this.L3=this.LN=!1;this.dP=[];this.wJ=!1;z=z?g.lU(z):{};p&&p.csiPageType&&(this.csiPageType=p.csiPageType);p&&p.csiServiceName&& (this.csiServiceName=p.csiServiceName);p&&p.preferGapless&&(this.preferGapless=p.preferGapless);this.experiments=new a0x(p?p.serializedExperimentIds:z.fexp,p?p.serializedExperimentFlags:z.fflags);this.forcedExperiments=p?p.serializedForcedExperimentIds:x4("",z.forced_experiments)||void 0;this.cspNonce=(p==null?0:p.cspNonce)?p.cspNonce:x4("",z.csp_nonce);this.Y("web_player_deprecated_uvr_killswitch");try{var T=document.location.toString()}catch(HD){T=""}this.cO=T;this.ancestorOrigins=(B=window.location.ancestorOrigins)? Array.from(B):[];this.X=DA(!1,p?p.isEmbed:z.is_embed);if(p&&p.device){if(B=p.device,B.androidOsExperience&&(this.W.caoe=""+B.androidOsExperience),B.androidPlayServicesVersion&&(this.W.capsv=""+B.androidPlayServicesVersion),B.brand&&(this.W.cbrand=B.brand),B.browser&&(this.W.cbr=B.browser),B.browserVersion&&(this.W.cbrver=B.browserVersion),B.cobaltReleaseVehicle&&(this.W.ccrv=""+B.cobaltReleaseVehicle),this.W.c=B.interfaceName||"WEB",this.W.cver=B.interfaceVersion||"html5",B.interfaceTheme&&(this.W.ctheme= B.interfaceTheme),this.W.cplayer=B.interfacePlayerType||"UNIPLAYER",B.model&&(this.W.cmodel=B.model),B.network&&(this.W.cnetwork=B.network),B.os&&(this.W.cos=B.os),B.osVersion&&(this.W.cosver=B.osVersion),B.platform&&(this.W.cplatform=B.platform),T=iP(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),T==="all"||T==="once")B.chipset&&(this.Ca.cchip=B.chipset),B.cobaltAppVersion&&(this.Ca.ccappver=B.cobaltAppVersion),B.firmwareVersion&&(this.Ca.cfrmver=B.firmwareVersion),B.deviceYear&&(this.Ca.crqyear= B.deviceYear)}else this.W.c=z.c||"web",this.W.cver=z.cver||"html5",this.W.cplayer="UNIPLAYER";this.loaderUrl=p?this.X||pTY(this)&&p.loaderUrl?p.loaderUrl||"":this.cO:this.X||pTY(this)&&z.loaderUrl?x4("",z.loaderUrl):this.cO;this.X&&g.oE("yt.embedded_player.embed_url",this.loaderUrl);this.G=iD(this.loaderUrl,cHW);B=this.loaderUrl;var b=b===void 0?!1:b;this.RP=H$(iD(B,Bgu),B,b,"Trusted Ad Domain URL");this.LB=DA(!1,z.privembed);this.protocol=this.cO.indexOf("http:")===0?"http":"https";this.qa=TM((p? p.customBaseYoutubeUrl:z.BASE_YT_URL)||"")||TM(this.cO)||this.protocol+"://www.youtube.com/";b=p?p.eventLabel:z.el;B="detailpage";b==="adunit"?B=this.X?"embedded":"detailpage":b==="embedded"||this.G?B=tr(B,b,HCB):b&&(B="embedded");this.Ra=B;d_N();b=null;B=p?p.playerStyle:z.ps;T=g.Gv(iCu,B);!B||T&&!this.G||(b=B);this.playerStyle=b;this.V=g.Gv(iCu,this.playerStyle);this.houseBrandUserStatus=p==null?void 0:p.houseBrandUserStatus;this.Dt=this.V&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Fh=!this.Dt;this.fH=DA(!1,z.disableplaybackui);this.disablePaidContentOverlay=DA(!1,p==null?void 0:p.disablePaidContentOverlay);this.disableSeek=DA(!1,p==null?void 0:p.disableSeek);this.enableSpeedOptions=(p==null?void 0:p.enableSpeedOptions)||(eU().defaultPlaybackRate?Z8||g.iL||Lm?g.UP&&dD("20")||g.v2&&dD("4")||g.dX&&dD("11")||pG():!(g.dX&&!g.k5("chrome")||Z8||g.k5("android")||g.k5("silk")):!1);this.zf=DA(!1,z.enable_faster_speeds);var D;this.supportsVarispeedExtendedFeatures=(D=p==null?void 0: p.supportsVarispeedExtendedFeatures)!=null?D:!1;this.K=DA(this.playerStyle==="blazer",z.is_html5_mobile_device||p&&p.isMobileDevice);this.i8=HL()||TW();this.E_=this.Y("mweb_allow_background_playback")?!1:this.K&&!this.V;this.rA=FI();this.Em=g.WW;var t;this.ou=!!(p==null?0:(t=p.embedsHostFlags)==null?0:t.optOutApiDeprecation);var X;this.L9=!!(p==null?0:(X=p.embedsHostFlags)==null?0:X.allowPfpImaIntegration);this.s_=this.Y("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var x;p?p.hideInfo!== void 0&&(x=!p.hideInfo):x=z.showinfo;this.BW=g.yB(this)&&!this.ou||DA(!Cm(this)&&!eF(this)&&!this.V,x);this.Ob=p?!!p.mobileIphoneSupportsInlinePlayback:DA(!1,z.playsinline);D=this.K&&lP&&vW!=null&&vW>0&&vW<=2.3;t=p?p.useNativeControls:z.use_native_controls;this.S=g.yB(this)&&this.K;X=this.K&&!this.S;t=g.I6(this)||!D&&DA(X,t)?"3":"1";this.disableOrganicUi=!(p==null||!p.disableOrganicUi);X=p?p.controlsType:z.controls;this.controlsType=this.disableOrganicUi?"0":X!=="0"&&X!==0?t:"0";this.Rz=this.K;this.color= tr("red",p?p.progressBarColor:z.color,Tgi);this.ZW=this.controlsType==="3";this.Wy=!this.X;this.i_=(t=!this.Wy&&!eF(this)&&!this.Dt&&!this.V&&!Cm(this))&&!this.ZW&&this.controlsType==="1";this.JH=g.jF(this)&&t&&this.controlsType==="0"&&!this.i_&&!(p==null?0:p.embedsEnableEmc3ds);this.a_=this.kY=D;this.ow=(this.controlsType==="3"||this.K||DA(!1,z.use_media_volume))&&!this.S;this.gh=cL&&!g.mr(601)?!1:!0;this.U_=this.X||!1;this.Zt=eF(this)?"":(this.loaderUrl||z.post_message_origin||"").substring(0,128); this.widgetReferrer=x4("",p?p.widgetReferrer:z.widget_referrer);var E;p?p.disableCastApi&&(E=!1):E=z.enablecastapi;E=!this.G||DA(!0,E);D=!0;p&&p.disableMdxCast&&(D=!1);this.l6=this.Y("enable_cast_for_web_unplugged")&&g.FB(this)&&D||g.rn(this)&&D||E&&D&&this.controlsType==="1"&&!this.K&&(eF(this)||g.jF(this)||g.o6(this));this.K9=!!window.document.pictureInPictureEnabled||jU();E=p?!!p.supportsAutoplayOverride:DA(!1,z.autoplayoverride);this.Hf=!(this.K&&!g.yB(this))&&!g.k5("nintendo wiiu")||E;this.sF= (p?!!p.enableMutedAutoplay:DA(!1,z.mutedautoplay))&&!1;E=(eF(this)||Cm(this))&&this.playerStyle==="blazer";this.EB=p?!!p.disableFullscreen:!DA(!0,z.fs);D=g.MD(g.nm(this))&&g.yB(this);this.FQ=!this.EB&&(E||g.w3())&&!D;this.Jl=this.Y("html5_picture_in_picture_logging_onresize");var q;this.CQ=(q=g.P3(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?q:.33;this.n3=this.Y("html5_picture_in_picture_blocking_onresize");this.Gx=this.Y("html5_picture_in_picture_blocking_ontimeupdate"); this.ND=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.B0=this.Y("html5_picture_in_picture_blocking_standard_api");q=gS()&&dD(58)&&!TW();E=zG||typeof MediaSource==="undefined";this.Ru=this.Y("uniplayer_block_pip")&&(q||E)||this.n3||this.Gx||this.B0;q=g.yB(this)&&!this.ou;var J;p?p.disableRelatedVideos!==void 0&&(J=!p.disableRelatedVideos):J=z.rel;this.wU=q||DA(!this.V,J);this.wp=DA(!1,p?p.enableContentOwnerRelatedVideos:z.co_rel);this.U=TW()&&vW>0&&vW<=4.4?"_top":"_blank";this.y4= g.o6(this);this.hq=DA(this.playerStyle==="blazer",p?p.enableCsiLogging:z.enablecsi);switch(this.playerStyle){case "blogger":J="bl";break;case "gmail":J="gm";break;case "gac":J="ga";break;case "ads-preview":J="ap";break;case "books":J="gb";break;case "docs":case "flix":J="gd";break;case "duo":J="gu";break;case "google-live":J="gl";break;case "google-one":J="go";break;case "play":J="gp";break;case "chat":J="hc";break;case "hangouts-meet":J="hm";break;case "photos-edu":case "picasaweb":J="pw";break; default:J="yt"}this.MZ=J;this.tD=x4("",p?p.authorizedUserIndex:z.authuser);this.EW=g.yB(this)&&(this.LB||!P8x()||this.i8);var M;p?p.disableWatchLater!==void 0&&(M=!p.disableWatchLater):M=z.showwatchlater;this.xl=((J=!this.EW)||!!this.tD&&J)&&DA(!this.Dt,this.G?M:void 0);this.Q8=p?p.isMobileDevice||!!p.disableKeyboardControls:DA(!1,z.disablekb);this.loop=DA(!1,z.loop);this.pageId=x4("",p?p.initialDelegatedSessionId:z.pageid);this.Ws=DA(!0,z.canplaylive);this.sH=DA(!1,z.livemonitor);this.disableSharing= DA(this.V,p?p.disableSharing:z.ss);(M=p&&this.Y("fill_video_container_size_override_from_wpcc")?p.videoContainerOverride:z.video_container_override)?(J=M.split("x"),J.length!==2?M=null:(M=Number(J[0]),J=Number(J[1]),M=isNaN(M)||isNaN(J)||M*J<=0?null:new g.Ao(M,J))):M=null;this.dh=M;this.mute=p?!!p.startMuted:DA(!1,z.mute);this.storeUserVolume=!this.mute&&DA(this.controlsType!=="0",p?p.storeUserVolume:z.store_user_volume);M=p?p.annotationsLoadPolicy:z.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:tr(void 0,M,QB);this.captionsLanguagePreference=p?p.captionsLanguagePreference||"":x4("",z.cc_lang_pref);M=tr(2,p?p.captionsLanguageLoadPolicy:z.cc_load_policy,QB);this.controlsType==="3"&&M===2&&(M=3);this.WM=M;this.RR=p?p.hl||"en_US":x4("en_US",z.hl);this.region=p?p.contentRegion||"US":x4("US",z.cr);this.hostLanguage=p?p.hostLanguage||"en":x4("en",z.host_language);this.Dp=!this.LB&&Math.random()=480;this.schedule=new PW(E,new uQY(this.experiments),H);g.l(this,this.schedule);var P;this.enableSafetyMode=(P=p==null?void 0:p.initialEnableSafetyMode)!=null? P:DA(!1,z.enable_safety_mode);H=this.fH?!1:eF(this)&&this.playerStyle!=="blazer";var O;p?p.disableAutonav!=null&&(O=!p.disableAutonav):O=z.allow_autonav;this.t1=DA(H,!this.Dt&&O);this.sendVisitorIdHeader=p?!!p.sendVisitorIdHeader:DA(!1,z.send_visitor_id_header);var R;this.playerStyle==="docs"&&(p?R=p.disableNativeContextMenu:R=z.disable_native_context_menu);this.disableNativeContextMenu=DA(!1,R);this.Sv=W3(this)&&this.Y("enable_skip_intro_button");this.embedConfig=x4("",p?p.serializedEmbedConfig: z.embed_config);this.T$=Jr(z,g.yB(this));this.D=this.T$==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(p==null||!p.embedsErrorLinks);this.e1=DA(!1,z.full_window);var K;this.CH=!((K=this.webPlayerContextConfig)==null?0:K.chromeless);var Z;this.livingRoomAppMode=tr("LIVING_ROOM_APP_MODE_UNSPECIFIED",z.living_room_app_mode||(p==null?void 0:(Z=p.device)==null?void 0:Z.livingRoomAppMode),DuY);var W;O=Xy(NaN,p==null?void 0:(W=p.device)==null?void 0:W.deviceYear);isNaN(O)||(this.deviceYear=O);this.transparentBackground= p?!!p.transparentBackground:DA(!1,z.transparent_background);this.showMiniplayerButton=p?!!p.showMiniplayerButton:DA(!1,z.show_miniplayer_button);var v;g.yB(this)&&!(p==null?0:(v=p.embedsHostFlags)==null?0:v.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=p?!!p.externalFullscreen:DA(!1,z.external_fullscreen);this.showMiniplayerUiWhenMinimized=p?!!p.showMiniplayerUiWhenMinimized:DA(!1,z.use_miniplayer_ui);var zY;this.OM=(zY=z.show_loop_video_toggle)!=null?zY:!0;this.iF=Math.random()< 1E-4;this.j1=z.onesie_hot_config||(p==null?0:p.onesieHotConfig)?new Qhx(z.onesie_hot_config,p==null?void 0:p.onesieHotConfig):void 0;this.isTectonic=p?!!p.isTectonic:!!z.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=p==null?void 0:p.canaryStage;this.vO=new f0N;g.l(this,this.vO);this.L3=DA(!1,z.force_gvi);this.datasyncId=(p==null?void 0:p.datasyncId)||g.pN("DATASYNC_ID");this.Q3=g.pN("LOGGED_IN",!1);this.gC=(p==null?void 0:p.allowWoffleManagement)||!1;this.hA=Infinity;this.TL=NaN;this.livingRoomPoTokenId= p==null?void 0:p.livingRoomPoTokenId;this.Y("html5_high_res_logging_always")?this.gJ=!0:this.gJ=Math.random()*100=0&&z0&&z.iF&&(B.sort(),g.oc(new g.z6("Player client parameters changed after startup",B)));z.userAge=Xy(z.userAge,p.user_age);z.UF=x4(z.UF,p.user_display_email);z.userDisplayImage=x4(z.userDisplayImage,p.user_display_image);g.VK(z.userDisplayImage)||(z.userDisplayImage= "");z.userDisplayName=x4(z.userDisplayName,p.user_display_name);z.Rk=x4(z.Rk,p.user_gender);z.csiPageType=x4(z.csiPageType,p.csi_page_type);z.csiServiceName=x4(z.csiServiceName,p.csi_service_name);z.hq=DA(z.hq,p.enablecsi);z.pageId=x4(z.pageId,p.pageid);if(c=p.enabled_engage_types)z.enabledEngageTypes=new Set(c.split(","));p.living_room_session_po_token&&(z.A8=p.living_room_session_po_token.toString())}; gX=function(z,p){return!z.V&&gS()&&dD(55)&&z.controlsType==="3"&&!p}; g.Gx=function(z){z=rX(z.qa);return z==="www.youtube-nocookie.com"?"www.youtube.com":z}; NB=function(z,p,c){return z.protocol+"://i1.ytimg.com/vi/"+p+"/"+(c||"hqdefault.jpg")}; fm=function(z){return eF(z)&&!g.FB(z)}; g.I6=function(z){return z.Y("html5_local_playsinline")?cL&&!g.mr(602)&&!("playsInline"in eU()):cL&&!z.Ob||g.k5("nintendo wiiu")?!0:!1}; BW=function(z){return z.W.c}; g.yi=function(z){return/^TVHTML5/.test(BW(z))}; g.zU=function(z){return BW(z)==="TVHTML5"}; pTY=function(z){return BW(z)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Vv_=function(z){return z.W.cmodel==="CHROMECAST ULTRA/STEAK"||z.W.cmodel==="CHROMECAST/STEAK"}; g.p8=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; W3=function(z){return/web/i.test(BW(z))}; g.cX=function(z){return BW(z).toUpperCase()==="WEB"}; sc=function(z){return BW(z)==="WEB_KIDS"}; g.FB=function(z){return BW(z)==="WEB_UNPLUGGED"}; BX=function(z){return BW(z)==="TVHTML5_UNPLUGGED"}; g.d9=function(z){return g.FB(z)||BW(z)==="TV_UNPLUGGED_CAST"||BX(z)}; g.rn=function(z){return BW(z)==="WEB_REMIX"}; g.HX=function(z){return BW(z)==="WEB_EMBEDDED_PLAYER"}; g.TU=function(z){return(z.deviceIsAudioOnly||!g.v2||zG||z.controlsType==="3"?!1:g.iL?z.X&&g.mr(51):!0)||(z.deviceIsAudioOnly||!g.UP||zG||z.controlsType==="3"?!1:g.iL?z.X&&g.mr(48):g.mr(38))||(z.deviceIsAudioOnly||!g.dX||zG||z.controlsType==="3"?!1:g.iL?z.X&&g.mr(37):g.mr(27))||!z.deviceIsAudioOnly&&g.ii&&!SrS()&&g.mr(11)||!z.deviceIsAudioOnly&&g.$U&&g.mr("604.4")}; xuv=function(z){if(g.jF(z)&&lP)return!1;if(g.UP){if(!g.mr(47)||!g.mr(52)&&g.mr(51))return!1}else if(g.$U)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; qXS=function(z,p){return z.enabledEngageTypes.has(p.toString())||EbB.includes(p)}; eF=function(z){return z.Ra==="detailpage"}; g.jF=function(z){return z.Ra==="embedded"}; bi=function(z){return z.Ra==="leanback"}; Cm=function(z){return z.Ra==="adunit"||z.playerStyle==="gvn"}; g.o6=function(z){return z.Ra==="profilepage"}; g.yB=function(z){return z.X&&g.jF(z)&&!Cm(z)&&!z.V}; Vv=function(z){if(!z.userDisplayImage)return"";var p=z.userDisplayImage.split("/");if(p.length===5)return z=p[p.length-1].split("="),z[1]="s20-c",p[p.length-1]=z.join("="),p.join("/");if(p.length===8)return p.splice(7,0,"s20-c"),p.join("/");if(p.length===9)return p[7]+="-s20-c",p.join("/");g.oc(new g.z6("Profile image not a FIFE URL.",z.userDisplayImage));return z.userDisplayImage}; g.D3=function(z){var p=g.Gx(z);JHu.includes(p)&&(p="www.youtube.com");return z.protocol+"://"+p}; g.tj=function(z,p){p=p===void 0?"":p;if(z.f3){var c=new BS,B,H=z.f3();H.signedOut?B="":H.token?B=H.token:H.pendingResult.then(function(T){H.signedOut?c.resolve(""):c.resolve(T.token)},function(T){g.oc(new g.z6("b189348328_oauth_callback_failed",{error:T})); c.resolve(p)}); return B!==void 0?If(B):new lO(c)}return If(p)}; XD=function(z,p){p=p===void 0?"":p;return z.Q3?MH(!0):OZ(Ah(MH(g.tj(z,p)),function(c){return MH(!!c)}),function(){return MH(!1)})}; rX=function(z){var p=g.nf(z);return(z=Number(g.oS(4,z))||null)?p+":"+z:p}; xW=function(z,p){p=p===void 0?!1:p;var c=gB[z],B=MvS[c],H=YXN[z];if(!H||!B)return null;p=new U4(p?H.height:H.width,p?H.width:H.height,H.fps);B=Pw(B,p,c);return new Ge(z,B,{video:p,l8:H.bitrate/8})}; hmS=function(z){var p=MvS[gB[z]],c=muE[z];return c&&p?new Ge(z,p,{audio:new nd(c.audioSampleRate,c.numChannels)}):null}; Et=function(z){this.W=z}; qb=function(z,p,c,B){if(c)return vh();c={};var H=eU();p=g.m(p);for(var T=p.next();!T.done;T=p.next())if(T=T.value,z.canPlayType(H,T.getInfo().mimeType)||B){var b=T.W.video.quality;if(!c[b]||c[b].getInfo().Q4())c[b]=T}z=[];c.auto&&z.push(c.auto);B=g.m(s4);for(H=B.next();!H.done;H=B.next())(H=c[H.value])&&z.push(H);return z.length?If(z):vh()}; PAN=function(z){this.itag=z.itag;this.url=z.url;this.codecs=z.codecs;this.width=z.width;this.height=z.height;this.fps=z.fps;this.bitrate=z.bitrate;var p;this.K=((p=z.audioItag)==null?void 0:p.split(","))||[];this.Og=z.Og;this.o8=z.o8||"";this.bQ=z.bQ;this.audioChannels=z.audioChannels;this.W=""}; AHS=function(z,p,c,B){p=p===void 0?!1:p;c=c===void 0?!0:c;B=B===void 0?{}:B;var H={};z=g.m(z);for(var T=z.next();!T.done;T=z.next()){T=T.value;if(p&&MediaSource&&MediaSource.isTypeSupported){var b=T.type;T.audio_channels&&(b=b+"; channels="+T.audio_channels);if(!MediaSource.isTypeSupported(b)){B[T.itag]="tpus";continue}}if(c||!T.drm_families||T.eotf!=="smpte2084"&&T.eotf!=="arib-std-b67"){b=void 0;var D={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},t=T.type.match(/codecs="([^"]*)"/); t=t?t[1]:"";T.audio_track_id&&(b=new g.EP(T.name,T.audio_track_id,!!T.is_default));var X=T.eotf;T=new PAN({itag:T.itag,url:T.url,codecs:t,width:Number(T.width),height:Number(T.height),fps:Number(T.fps),bitrate:Number(T.bitrate),audioItag:T.audio_itag,Og:X?D[X]:void 0,o8:T.drm_families,bQ:b,audioChannels:Number(T.audio_channels)});H[T.itag]=H[T.itag]||[];H[T.itag].push(T)}else B[T.itag]="enchdr"}return H}; OCN=function(z,p,c,B,H){this.D=z;this.K=p;this.L=c;this.cpn=B;this.V=H;this.X=0;this.W=""}; wTf=function(z,p){z.D.some(function(c){var B;return((B=c.bQ)==null?void 0:B.getId())===p}); z.W=p}; Jj=function(z,p,c){z.cpn&&(p=g.g6(p,{cpn:z.cpn}));c&&(p=g.g6(p,{paired:c}));return p}; RmW=function(z,p){z=z.itag.toString();p!==null&&(z+=p.itag.toString());return z}; SXx=function(z){for(var p=[],c=[],B=g.m(z.K),H=B.next();!H.done;H=B.next())H=H.value,H.bitrate<=z.X?p.push(H):c.push(H);p.sort(function(T,b){return b.bitrate-T.bitrate}); c.sort(function(T,b){return T.bitrate-b.bitrate}); z.K=p.concat(c)}; Mb=function(z,p,c){this.W=z;this.K=p;this.expiration=c;this.j9=null}; $uY=function(z,p){if(!(zG||zW()||N_()))return null;z=AHS(p,z.Y("html5_filter_fmp4_in_hls"));if(!z)return null;p=[];for(var c={},B=g.m(Object.keys(z)),H=B.next();!H.done;H=B.next()){H=g.m(z[H.value]);for(var T=H.next();!T.done;T=H.next()){var b=T.value;b.bQ&&(T=b.bQ.getId(),c[T]||(b=new g.Vq(T,b.bQ),c[T]=b,p.push(b)))}}return p.length>0?p:null}; LvN=function(z,p,c,B,H,T,b){if(!(zG||zW()||N_()))return vh();var D={},t=Kvf(c),X=AHS(c,z.Y("html5_filter_fmp4_in_hls"),z.L.G,D);if(!X)return b({noplst:1}),vh();u__(X);c={};var x=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),E;c=[];var q=[],J=[],M=null,P="";B=B&&B.match(/hls_timedtext_playlist/)?new PAN({itag:"0",url:B,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,bQ:new g.EP("English","en",!1)}):null;for(var O=g.m(Object.keys(X)),R=O.next();!R.done;R=O.next())if(R=R.value,!z.Y("html5_disable_drm_hfr_1080")|| R!=="383"&&R!=="373"){R=g.m(X[R]);for(var K=R.next();!K.done;K=R.next())if(K=K.value,K.width){for(var Z=g.m(K.K),W=Z.next();!W.done;W=Z.next())if(W=W.value,X[W]){K.W=W;break}K.W||(K.W=arf(X,K));if(Z=X[K.W])if(c.push(K),K.o8==="fairplay"&&(E=x),W="",K.Og==="PQ"?W="smpte2084":K.Og==="HLG"&&(W="arib-std-b67"),W&&(P=W),J.push(ZCx(Z,[K],B,T,K.itag,K.width,K.height,K.fps,t,void 0,void 0,E,W)),!M||K.width*K.height*K.fps>M.width*M.height*M.fps)M=K}else q.push(K)}else D[R]="disdrmhfr";J.reduce(function(v, zY){return zY.getInfo().isEncrypted()&&v},!0)&&(E=x); H=Math.max(H,0);x=M||{};X=x.fps===void 0?0:x.fps;M=x.width===void 0?0:x.width;x=x.height===void 0?0:x.height;O=z.Y("html5_native_audio_track_switching");J.push(ZCx(q,c,B,T,"93",M,x,X,t,"auto",H,E,P,O));Object.entries(D).length&&b(D);return qb(z.L,J,gX(z,p),!1)}; ZCx=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J){for(var M=0,P="",O=g.m(z),R=O.next();!R.done;R=O.next())R=R.value,P||(P=R.itag),R.audioChannels&&R.audioChannels>M&&(M=R.audioChannels,P=R.itag);H=new Ge(H,"application/x-mpegURL",{audio:new nd(0,M),video:new U4(T,b,D,null,void 0,X,void 0,q),o8:E,X8:P});z=new OCN(z,p,c?[c]:[],B,!!J);z.X=x?x:1369843;return new Mb(H,z,t)}; Kvf=function(z){z=g.m(z);for(var p=z.next();!p.done;p=z.next())if(p=p.value,p.url&&(p=p.url.split("expire/"),!(p.length<=1)))return+p[1].split("/")[0];return NaN}; arf=function(z,p){for(var c=g.m(Object.keys(z)),B=c.next();!B.done;B=c.next()){B=B.value;var H=z[B][0];if(!H.width&&H.o8===p.o8&&!H.audioChannels)return B}return""}; u__=function(z){for(var p=new Set,c=g.m(Object.values(z)),B=c.next();!B.done;B=c.next())B=B.value,B.length&&(B=B[0],B.height&&B.codecs.startsWith("vp09")&&p.add(B.height));c=[];if(p.size){B=g.m(Object.keys(z));for(var H=B.next();!H.done;H=B.next())if(H=H.value,z[H].length){var T=z[H][0];T.height&&p.has(T.height)&&!T.codecs.startsWith("vp09")&&c.push(H)}}p=g.m(c);for(c=p.next();!c.done;c=p.next())delete z[c.value]}; YW=function(z,p){this.W=z;this.K=p}; duf=function(z,p,c,B){var H=[];c=g.m(c);for(var T=c.next();!T.done;T=c.next()){var b=T.value;if(b.url){T=new g.uF(b.url,!0);if(b.s){var D=T,t=b.sp,X=aDQ(decodeURIComponent(b.s));D.set(t,encodeURIComponent(X))}D=g.m(Object.keys(B));for(t=D.next();!t.done;t=D.next())t=t.value,T.set(t,B[t]);b=tw(b.type,b.quality,b.itag,b.width,b.height);H.push(new YW(b,T))}}return qb(z.L,H,gX(z,p),!1)}; mY=function(z,p){this.W=z;this.K=p}; Wvu=function(z,p,c){var B=[];c=g.m(c);for(var H=c.next();!H.done;H=c.next())if((H=H.value)&&H.url){var T=tw(H.type,"medium","0");B.push(new mY(T,H.url))}return qb(z.L,B,gX(z,p),!1)}; yHu=function(z,p){var c=[],B=tw(p.type,"auto",p.itag);c.push(new mY(B,p.url));return qb(z.L,c,!1,!0)}; emS=function(z){return z&&CAY[z]?CAY[z]:null}; lrB=function(z){if(z=z.commonConfig)this.url=z.url,this.urlQueryOverride=z.urlQueryOverride,z.ustreamerConfig&&(this.Um=Ec(z.ustreamerConfig)||void 0)}; vbi=function(z,p){var c;if(p=p==null?void 0:(c=p.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)z.iH=new lrB(p)}; g.hj=function(z){z=z===void 0?{}:z;this.languageCode=z.languageCode||"";this.languageName=z.languageName||null;this.kind=z.kind||"";this.name=z.name===void 0?null:z.name;this.displayName=z.displayName||null;this.id=z.id||null;this.W=z.is_servable||!1;this.isTranslateable=z.is_translateable||!1;this.url=z.url||null;this.vssId=z.vss_id||"";this.isDefault=z.is_default||!1;this.translationLanguage=z.translationLanguage||null;this.xtags=z.xtags||"";this.captionId=z.captionId||""}; g.Aj=function(z){var p={languageCode:z.languageCode,languageName:z.languageName,displayName:g.PX(z),kind:z.kind,name:z.name,id:z.id,is_servable:z.W,is_default:z.isDefault,is_translateable:z.isTranslateable,vss_id:z.vssId};z.xtags&&(p.xtags=z.xtags);z.captionId&&(p.captionId=z.captionId);z.translationLanguage&&(p.translationLanguage=z.translationLanguage);return p}; g.Ot=function(z){return z.translationLanguage?z.translationLanguage.languageCode:z.languageCode}; g.IrY=function(z){var p=z.vssId;z.translationLanguage&&p&&(p="t"+p+"."+g.Ot(z));return p}; g.PX=function(z){var p=[];if(z.displayName)p.push(z.displayName);else{var c=z.languageName||"";p.push(c);z.kind==="asr"&&c.indexOf("(")===-1&&p.push(" (Automatic Captions)");z.name&&p.push(" - "+z.name)}z.translationLanguage&&p.push(" >> "+z.translationLanguage.languageName);return p.join("")}; nbf=function(z,p,c,B){z||(z=p&&jsD.hasOwnProperty(p)&&Fvf.hasOwnProperty(p)?Fvf[p]+"_"+jsD[p]:void 0);p=z;if(!p)return null;z=p.match(obf);if(!z||z.length!==5)return null;if(z=p.match(obf)){var H=Number(z[3]),T=[7,8,10,5,6];z=!(Number(z[1])===1&&H===8)&&T.indexOf(H)>=0}else z=!1;return c||B||z?p:null}; we=function(z,p){for(var c={},B=g.m(Object.keys(QsS)),H=B.next();!H.done;H=B.next()){H=H.value;var T=p?p+H:H;T=z[T+"_webp"]||z[T];g.VK(T)&&(c[QsS[H]]=T)}return c}; Rd=function(z){var p={};if(!z||!z.thumbnails)return p;z=z.thumbnails.filter(function(D){return!!D.url}); z.sort(function(D,t){return D.width-t.width||D.height-t.height}); for(var c=g.m(Object.keys(rHi)),B=c.next();!B.done;B=c.next()){var H=Number(B.value);B=rHi[H];for(var T=g.m(z),b=T.next();!b.done;b=T.next())if(b=b.value,b.width>=H){H=UuY(b.url);g.VK(H)&&(p[B]=H);break}}(z=z.pop())&&z.width>=1280&&(z=UuY(z.url),g.VK(z)&&(p["maxresdefault.jpg"]=z));return p}; UuY=function(z){return z.startsWith("//")?"https:"+z:z}; SO=function(z){return z&&z.baseUrl||""}; $W=function(z){z=g.XL(z);for(var p=g.m(Object.keys(z)),c=p.next();!c.done;c=p.next()){c=c.value;var B=z[c];z[c]=Array.isArray(B)?B[0]:B}return z}; ssE=function(z,p){z.botguardData=p.playerAttestationRenderer.botguardData;p=p.playerAttestationRenderer.challenge;p!=null&&(z.Eo=p)}; GNY=function(z,p){p=g.m(p);for(var c=p.next();!c.done;c=p.next()){c=c.value;var B=c.interstitials.map(function(b){var D=g.I(b,kNW);if(D)return{is_yto_interstitial:!0,raw_player_response:D};if(b=g.I(b,gbQ))return Object.assign({is_yto_interstitial:!0},Dz(b))}); B=g.m(B);for(var H=B.next();!H.done;H=B.next())switch(H=H.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":z.interstitials=z.interstitials.concat({time:0,playerVars:H,H1:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":z.interstitials=z.interstitials.concat({time:0x7ffffffffffff,playerVars:H,H1:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var T=Number(c.podConfig.timeToInsertAtMillis);z.interstitials=z.interstitials.concat({time:T,playerVars:H, H1:T===0?5:7})}}}; Ngx=function(z,p){if(p=p.find(function(c){return!(!c||!c.tooltipRenderer)}))z.tooltipRenderer=p.tooltipRenderer}; frE=function(z,p){p.subscribeCommand&&(z.subscribeCommand=p.subscribeCommand);p.unsubscribeCommand&&(z.unsubscribeCommand=p.unsubscribeCommand);p.addToWatchLaterCommand&&(z.addToWatchLaterCommand=p.addToWatchLaterCommand);p.removeFromWatchLaterCommand&&(z.removeFromWatchLaterCommand=p.removeFromWatchLaterCommand);p.getSharePanelCommand&&(z.getSharePanelCommand=p.getSharePanelCommand)}; zgB=function(z,p){p!=null?(z.qk=p,z.Sd=!0):(z.qk="",z.Sd=!1)}; K8=function(z,p){this.type=z||"";this.id=p||""}; g.ui=function(z){return new K8(z.substring(0,2),z.substring(2))}; g.ad=function(z,p){this.QI=z;this.author="";this.HK=null;this.playlistLength=0;this.W=this.sessionData=null;this.U={};this.title="";if(p){this.author=p.author||p.playlist_author||"";this.title=p.playlist_title||"";if(z=p.session_data)this.sessionData=bO(z,"&");var c;this.W=((c=p.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.U=we(p,"playlist_");this.videoId=p.video_id||void 0;if(c=p.list)switch(p.listType){case "user_uploads":this.playlistId=(new K8("UU","PLAYER_"+c)).toString();break;default:if(z= p.playlist_length)this.playlistLength=Number(z)||0;this.playlistId=g.ui(c).toString();if(p=p.video)this.videoId=(p[0]||null).video_id||void 0}else p.playlist&&(this.playlistLength=p.playlist.toString().split(",").length)}}; g.Z3=function(z,p){this.QI=z;this.S0=this.author="";this.HK=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.My=this.lengthText="";this.sessionData=null;this.U={};this.title="";if(p){this.ariaLabel=p.aria_label||void 0;this.author=p.author||"";this.S0=p.S0||"";if(z=p.endscreen_autoplay_session_data)this.HK=bO(z,"&");this.Oq=p.Oq;this.isLivePlayback=p.live_playback==="1";this.isUpcoming=!!p.isUpcoming;if(z=p.length_seconds)this.lengthSeconds=typeof z==="string"?Number(z):z;this.lengthText= p.lengthText||"";this.My=p.My||"";this.publishedTimeText=p.publishedTimeText||void 0;if(z=p.session_data)this.sessionData=bO(z,"&");this.shortViewCount=p.short_view_count_text||void 0;this.U=we(p);this.title=p.title||"";this.videoId=p.docid||p.video_id||p.videoId||p.id||void 0;this.watchUrl=p.watchUrl||void 0}}; prQ=function(z){var p,c,B=(p=z.getWatchNextResponse())==null?void 0:(c=p.contents)==null?void 0:c.twoColumnWatchNextResults,H,T,b,D,t;z=(H=z.getWatchNextResponse())==null?void 0:(T=H.playerOverlays)==null?void 0:(b=T.playerOverlayRenderer)==null?void 0:(D=b.endScreen)==null?void 0:(t=D.watchNextEndScreenRenderer)==null?void 0:t.results;if(!z){var X,x;z=B==null?void 0:(X=B.endScreen)==null?void 0:(x=X.endScreen)==null?void 0:x.results}return z}; g.de=function(z){var p,c,B;z=g.I((p=z.getWatchNextResponse())==null?void 0:(c=p.playerOverlays)==null?void 0:(B=c.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,L8);return g.I(z==null?void 0:z.playerBar,cZS)}; Bo_=function(z){this.W=z.playback_progress_0s_url;this.D=z.playback_progress_2s_url;this.K=z.playback_progress_10s_url}; HlE=function(){if(WX===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(p){}a:{try{var z=!!self.localStorage}catch(p){z=!1}if(z&&(z=g.nI(g.pt()+"::yt-player"))){WX=new gn(z);break a}WX=void 0}}return WX}; g.yv=function(){var z=HlE();if(!z)return{};try{var p=z.get("yt-player-lv");return JSON.parse(p||"{}")}catch(c){return{}}}; g.ili=function(z){var p=HlE();p&&(z=JSON.stringify(z),p.set("yt-player-lv",z))}; g.C8=function(z){return g.yv()[z]||0}; g.eO=function(z,p){var c=g.yv();p!==c[z]&&(p!==0?c[z]=p:delete c[z],g.ili(c))}; g.li=function(z){return g.L(function(p){return p.return(g.G6(Toi(),z))})}; Id=function(z,p,c,B,H,T,b,D){var t,X,x,E,q,J;return g.L(function(M){switch(M.W){case 1:return t=g.C8(z),t===4?M.return(4):g.a(M,g.iH(),2);case 2:X=M.K;if(!X)throw g.uR("wiac");if(!D||b===void 0){M.hD(3);break}return g.a(M,blD(D,b),4);case 4:b=M.K;case 3:return x=c.lastModified||"0",g.a(M,g.li(X),5);case 5:return E=M.K,g.Ox(M,6),vX++,g.a(M,g.vJ(E,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",xt:!0},function(P){if(T!==void 0&&b!==void 0){var O=""+z+"|"+p.id+"|"+x+"|"+String(T).padStart(10, "0");O=g.IO(P.objectStore("media"),b,O)}else O=g.Zg.resolve(void 0);var R=VRW(z,p.Ni()),K=VRW(z,!p.Ni()),Z={fmts:DWY(B),format:c||{}};R=g.IO(P.objectStore("index"),Z,R);var W=B.downloadedEndTime===-1;Z=W?P.objectStore("index").get(K):g.Zg.resolve(void 0);var v={fmts:"music",format:{}};P=W&&H&&!p.Ni()?g.IO(P.objectStore("index"),v,K):g.Zg.resolve(void 0);return g.Zg.all([P,Z,O,R]).then(function(zY){zY=g.m(zY);zY.next();zY=zY.next().value;vX--;var U=g.C8(z);if(U!==4&&W&&H||zY!==void 0&&g.tRY(zY.fmts))U= 1,g.eO(z,U);return U})}),8); case 8:return M.return(M.K);case 6:q=g.SQ(M);vX--;J=g.C8(z);if(J===4)return M.return(J);g.eO(z,4);throw q;}})}; g.XrE=function(z){var p,c;return g.L(function(B){if(B.W==1)return g.a(B,g.iH(),2);if(B.W!=3){p=B.K;if(!p)throw g.uR("ri");return g.a(B,g.li(p),3)}c=B.K;return B.return(g.vJ(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(H){var T=IDBKeyRange.bound(z+"|",z+"~");return H.objectStore("index").getAll(T).then(function(b){return b.map(function(D){return D?D.format:{}})})}))})}; ESW=function(z,p,c,B,H){var T,b,D;return g.L(function(t){if(t.W==1)return g.a(t,g.iH(),2);if(t.W!=3){T=t.K;if(!T)throw g.uR("rc");return g.a(t,g.li(T),3)}b=t.K;D=g.vJ(b,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(X){var x=""+z+"|"+p+"|"+c+"|"+String(B).padStart(10,"0");return X.objectStore("media").get(x)}); return H?t.return(D.then(function(X){if(X===void 0)throw Error("No data from indexDb");return xWv(H,X)}).catch(function(X){throw new g.z6("Error while reading chunk: "+X.name+", "+X.message); })):t.return(D)})}; g.tRY=function(z){return z?z==="music"?!0:z.includes("dlt=-1")||!z.includes("dlt="):!1}; VRW=function(z,p){return""+z+"|"+(p?"v":"a")}; DWY=function(z){var p={};return VS((p.dlt=z.downloadedEndTime.toString(),p.mket=z.maxKnownEndTime.toString(),p.avbr=z.averageByteRate.toString(),p))}; JZu=function(z){var p={},c={};z=g.m(z);for(var B=z.next();!B.done;B=z.next()){var H=B.value,T=H.split("|");H.match(g.qTS)?(B=Number(T.pop()),isNaN(B)?c[H]="?":(T=T.join("|"),(H=p[T])?(T=H[H.length-1],B===T.end+1?T.end=B:H.push({start:B,end:B})):p[T]=[{start:B,end:B}])):c[H]="?"}z=g.m(Object.keys(p));for(B=z.next();!B.done;B=z.next())B=B.value,c[B]=p[B].map(function(b){return b.start+"-"+b.end}).join(","); return c}; jO=function(z){g.JQ.call(this);this.W=null;this.D=new Uo;this.W=null;this.V=new Set;this.crossOrigin=z||""}; MR_=function(z,p,c){for(c=FD(z,c);c>=0;){var B=z.levels[c];if(B.isLoaded(od(B,p))&&(B=g.n8(B,p)))return B;c--}return g.n8(z.levels[0],p)}; mWW=function(z,p,c){c=FD(z,c);for(var B,H;c>=0;c--)if(B=z.levels[c],H=od(B,p),!B.isLoaded(H)){B=z;var T=c,b=T+"-"+H;B.V.has(b)||(B.V.add(b),B.D.enqueue(T,{CR:T,fk:H}))}YTQ(z)}; YTQ=function(z){if(!z.W&&!z.D.isEmpty()){var p=z.D.remove();z.W=hgS(z,p)}}; hgS=function(z,p){var c=document.createElement("img");z.crossOrigin&&(c.crossOrigin=z.crossOrigin);c.src=z.levels[p.CR].BU(p.fk);c.onload=function(){var B=p.CR,H=p.fk;z.W!==null&&(z.W.onload=null,z.W=null);B=z.levels[B];B.loaded.add(H);YTQ(z);var T=B.columns*B.rows;H*=T;B=Math.min(H+T-1,B.x0()-1);H=[H,B];z.publish("l",H[0],H[1])}; return c}; g.Qv=function(z,p,c,B){this.level=z;this.X=p;this.loaded=new Set;this.level=z;this.X=p;z=c.split("#");this.width=Math.floor(Number(z[0]));this.height=Math.floor(Number(z[1]));this.frameCount=Math.floor(Number(z[2]));this.columns=Math.floor(Number(z[3]));this.rows=Math.floor(Number(z[4]));this.W=Math.floor(Number(z[5]));this.D=z[6];this.signature=z[7];this.videoLength=B}; od=function(z,p){return Math.floor(p/(z.columns*z.rows))}; g.n8=function(z,p){p>=z.p_()&&z.s9();var c=od(z,p),B=z.columns*z.rows,H=p%B;p=H%z.columns;H=Math.floor(H/z.columns);var T=z.s9()+1-B*c;if(T1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; PVx=function(z,p,c){return(z=z.levels[p])?z.jJ(c):-1}; FD=function(z,p){var c=z.X.get(p);if(c)return c;c=z.levels.length;for(var B=0;B=p)return z.X.set(p,B),B;z.X.set(p,c-1);return c-1}; Ut=function(z,p,c,B){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.Qv.call(this,z,p,c,0);this.K=null;this.L=B?2:0}; kW=function(z,p,c,B){re.call(this,z,0,void 0,p,!(B===void 0||!B));for(z=0;z(c!=null?c:50)&&(c=aoQ.shift())&&cf.delete(c),c=H),H!==c&&z.aT("ssei","dcpn_"+H+"_"+c+"_"+z.clientPlaybackNonce),c)}; f8=function(z,p){var c=p.raw_watch_next_response;if(!c){var B=p.watch_next_response;B&&(c=JSON.parse(B))}if(c){z.i8=c;var H=z.i8.playerCueRangeSet;H&&g.Bf(z,H);var T=z.i8.playerOverlays;if(T){var b=T.playerOverlayRenderer;if(b){var D=b.autonavToggle;D&&(z.autoplaySwitchButtonRenderer=g.I(D,Zli),z.Y("web_player_autonav_use_server_provided_state")&&Hf(z)&&(z.autonavState=z.autoplaySwitchButtonRenderer.enabled?2:1));var t=b.videoDetails;if(t){var X=t.embeddedPlayerOverlayVideoDetailsRenderer;var x=t.playerOverlayVideoDetailsRenderer; x&&(x.title&&(p.title=g.wJ(x.title)),x.subtitle&&(p.subtitle=g.wJ(x.subtitle)))}g.jF(z.QI)&&(z.xl=!!b.addToMenu);LiQ(z,b.shareButton);b.startPosition&&b.endPosition&&(z.progressBarStartPosition=b.startPosition,z.progressBarEndPosition=b.endPosition);var E=b.gatedActionsOverlayRenderer;E&&(z.xB=g.I(E,dWN));var q,J,M,P=g.I((q=z.getWatchNextResponse())==null?void 0:(J=q.playerOverlays)==null?void 0:(M=J.playerOverlayRenderer)==null?void 0:M.infoPanel,WiD);if(P){z.Rn=Number(P==null?void 0:P.durationMs)|| NaN;if(P==null?0:P.infoPanelOverviewViewModel)z.A8=P==null?void 0:P.infoPanelOverviewViewModel;if(P==null?0:P.infoPanelDetailsViewModel)z.Iu=P==null?void 0:P.infoPanelDetailsViewModel}z.showSeekingControls=!!b.showSeekingControls}}var O,R,K=(O=z.getWatchNextResponse())==null?void 0:(R=O.contents)==null?void 0:R.twoColumnWatchNextResults;if(K){var Z=K.desktopOverlay&&g.I(K.desktopOverlay,yZY);Z&&(Z.suppressShareButton&&(z.showShareButton=!1),Z.suppressWatchLaterButton&&(z.xl=!1))}X&&CVD(z,p,X);var W= Xy(0,p.autoplay_count),v=z.getWatchNextResponse(),zY,U=(zY=v.contents)==null?void 0:zY.twoColumnWatchNextResults,HD,VW,f,F=(HD=v.playerOverlays)==null?void 0:(VW=HD.playerOverlayRenderer)==null?void 0:(f=VW.autoplay)==null?void 0:f.playerOverlayAutoplayRenderer,N=prQ(z),h,n=(h=v.contents)==null?void 0:h.singleColumnWatchNextResults;if(n){var FY;if(((FY=n.autoplay)==null?0:FY.autoplay)&&!n.playlist){var Rg=n.autoplay.autoplay.sets,Md={},uf=new g.Z3(z.N()),zv=null,bE;if(Rg){for(var m1=g.m(Rg),w=m1.next();!w.done;w= m1.next()){var S=w.value.autoplayVideoRenderer;if(S&&S.compactVideoRenderer){zv=S.compactVideoRenderer;break}}if(bE=Rg[0].autoplayVideo){var u=bE.clickTrackingParams;u&&(Md.itct=u);Md.autonav="1";Md.playnext=String(W)}}else Md.feature="related-auto";var d=g.I(bE,g.ir);if(zv){uf.videoId=zv.videoId;var C=zv.shortBylineText;C&&(uf.author=g.wJ(C));var p_=zv.title;p_&&(uf.title=g.wJ(p_))}else d!=null&&d.videoId&&(uf.videoId=d.videoId);uf.HK=Md;z.suggestions=[];z.Yn=uf}}if(N){for(var TY=[],bf=g.m(N),y= bf.next();!y.done;y=bf.next()){var xB=y.value,mS=void 0,ti=null;if(xB.endScreenVideoRenderer){var du=xB.endScreenVideoRenderer,YL=du.title;ti=new g.Z3(z.N());ti.videoId=du.videoId;ti.lengthSeconds=du.lengthInSeconds||0;var jl=du.publishedTimeText;jl&&(ti.publishedTimeText=g.wJ(jl));var Jy=du.shortBylineText;Jy&&(ti.author=g.wJ(Jy));var Ux=du.shortViewCountText;Ux&&(ti.shortViewCount=g.wJ(Ux));if(YL){ti.title=g.wJ(YL);var Fe=YL.accessibility;if(Fe){var t5=Fe.accessibilityData;t5&&t5.label&&(ti.ariaLabel= t5.label)}}var C2=du.navigationEndpoint;if(C2){mS=C2.clickTrackingParams;var rC=g.I(C2,g.ir),E2=g.I(C2,g.Qj);rC?ti.Oq=rC:E2!=null&&(ti.watchUrl=E2.url)}var rc=du.thumbnailOverlays;if(rc)for(var oW=g.m(rc),UN=oW.next();!UN.done;UN=oW.next()){var ON=UN.value.thumbnailOverlayTimeStatusRenderer;if(ON)if(ON.style==="LIVE"){ti.isLivePlayback=!0;break}else if(ON.style==="UPCOMING"){ti.isUpcoming=!0;break}}ti.U=Rd(du.thumbnail)}else if(xB.endScreenPlaylistRenderer){var qQ=xB.endScreenPlaylistRenderer,ZC= qQ.navigationEndpoint;if(!ZC)continue;var JD=g.I(ZC,g.ir);if(!JD)continue;var Lf=JD.videoId;ti=new g.ad(z.N());ti.playlistId=qQ.playlistId;ti.playlistLength=Number(qQ.videoCount)||0;ti.W=Lf||null;ti.videoId=Lf;var jL=qQ.title;jL&&(ti.title=g.wJ(jL));var FW=qQ.shortBylineText;FW&&(ti.author=g.wJ(FW));mS=ZC.clickTrackingParams;ti.U=Rd(qQ.thumbnail)}ti&&(mS&&(ti.sessionData={itct:mS}),TY.push(ti))}z.suggestions=TY}if(F){z.Wi=!!F.preferImmediateRedirect;z.cO=z.cO||!!F.webShowNewAutonavCountdown;z.ou= z.ou||!!F.webShowBigThumbnailEndscreen;if(z.cO||z.ou){var $X=U||null,zu=new g.Z3(z.N());zu.videoId=F.videoId;var sN=F.videoTitle;if(sN){zu.title=g.wJ(sN);var i0=sN.accessibility;if(i0){var Zq=i0.accessibilityData;Zq&&Zq.label&&(zu.ariaLabel=Zq.label)}}var Qs=F.byline;Qs&&(zu.author=g.wJ(Qs));var MC=F.publishedTimeText;MC&&(zu.publishedTimeText=g.wJ(MC));var S2=F.shortViewCountText;S2&&(zu.shortViewCount=g.wJ(S2));var $K=F.thumbnailOverlays;if($K)for(var KZ=g.m($K),EM=KZ.next();!EM.done;EM=KZ.next()){var DR= EM.value.thumbnailOverlayTimeStatusRenderer;if(DR)if(DR.style==="LIVE"){zu.isLivePlayback=!0;break}else if(DR.style==="UPCOMING"){zu.isUpcoming=!0;break}else if(DR.style==="DEFAULT"&&DR.text){zu.lengthText=g.wJ(DR.text);var qZ=DR.text.accessibility;if(qZ){var Js=qZ.accessibilityData;Js&&Js.label&&(zu.My=Js.label||"")}break}}zu.U=Rd(F.background);var um=F.nextButton;if(um){var ap=um.buttonRenderer;if(ap){var Zi=ap.navigationEndpoint;if(Zi){var LZ=g.I(Zi,g.ir);LZ&&(zu.Oq=LZ)}}}if(F.topBadges){var dr= F.topBadges[0];if(dr){var W6=g.I(dr,egV);W6&&W6.style==="BADGE_STYLE_TYPE_PREMIUM"&&(zu.daH=!0)}}var fT=F.alternativeTitle;fT&&(zu.S0=g.wJ(fT));var Lo={autonav:"1",playnext:String(W)};zu.playlistId&&(Lo.autoplay="1");if($X){var zg,U2,MZ,yf,Yw=(zg=$X.autoplay)==null?void 0:(U2=zg.autoplay)==null?void 0:(MZ=U2.sets)==null?void 0:(yf=MZ[0])==null?void 0:yf.autoplayVideo;if(Yw){var CZ=Yw.clickTrackingParams;CZ&&(Lo.itct=CZ);var ml=g.I(Yw,g.ir);ml&&(zu.x4=ml)}}else if(F){var e2,lm,v6,Ip=(e2=F.nextButton)== null?void 0:(lm=e2.buttonRenderer)==null?void 0:(v6=lm.navigationEndpoint)==null?void 0:v6.clickTrackingParams;Ip&&(Lo.itct=Ip)}Lo.itct||(Lo.feature="related-auto");zu.HK=Lo;z.suggestions||(z.suggestions=[]);z.Yn=zu}F.countDownSecs!=null&&(z.T_=F.countDownSecs*1E3);F.countDownSecsForFullscreen!=null&&(z.OD=F.countDownSecsForFullscreen>=0?F.countDownSecsForFullscreen*1E3:-1);z.Y("web_autonav_color_transition")&&F.watchToWatchTransitionRenderer&&(z.watchToWatchTransitionRenderer=g.I(F.watchToWatchTransitionRenderer, loW))}var hs=prQ(z);if(hs){var O3,j2,PH,As=hs==null?void 0:(O3=hs[0])==null?void 0:(j2=O3.endScreenVideoRenderer)==null?void 0:(PH=j2.navigationEndpoint)==null?void 0:PH.clickTrackingParams,Fb=g.Tz(z);As&&Fb&&(Fb.sessionData={itct:As})}z.i8.currentVideoThumbnail&&(z.U=Rd(z.i8.currentVideoThumbnail));var pP,op,nZ,cv,Qf,w5=(pP=z.i8)==null?void 0:(op=pP.contents)==null?void 0:(nZ=op.twoColumnWatchNextResults)==null?void 0:(cv=nZ.results)==null?void 0:(Qf=cv.results)==null?void 0:Qf.contents;if(w5&&w5[1]){var rr, UI,d4,Sr,oe=(rr=w5[1].videoSecondaryInfoRenderer)==null?void 0:(UI=rr.owner)==null?void 0:(d4=UI.videoOwnerRenderer)==null?void 0:(Sr=d4.thumbnail)==null?void 0:Sr.thumbnails;oe&&oe.length&&(z.profilePicture=oe[oe.length-1].url)}var sI=qD(p),OM,RX=(OM=z.getWatchNextResponse())==null?void 0:OM.onResponseReceivedEndpoints;if(RX)for(var SG=g.m(RX),wO=SG.next();!wO.done;wO=SG.next()){var nD=wO.value;g.I(nD,br)&&(z.C$=g.I(nD,br));var $c=g.I(nD,vS_),kK=void 0;if((kK=$c)==null?0:kK.entityKeys)z.EZ=$c.entityKeys|| [],$c.visibleOnLoadKeys&&(z.visibleOnLoadKeys=$c.visibleOnLoadKeys)}if(z.Y("web_key_moments_markers")){var Hv=g.VN.getState().entities,Xi=g.M9("visibility_override","markersVisibilityOverrideEntity");var rj=mZ(Hv,"markersVisibilityOverrideEntity",Xi);z.WM=(rj==null?void 0:rj.videoId)===(z.videoId||sI)&&(rj==null?0:rj.visibilityOverrideMarkersKey)?rj.visibilityOverrideMarkersKey:z.visibleOnLoadKeys;z.visibleOnLoadKeys=[].concat(g.A(z.WM))}}}; Hf=function(z){var p;return((p=z.autoplaySwitchButtonRenderer)==null?void 0:p.enabled)!==void 0}; Dt=function(z){return!!(z.D&&z.D.videoInfos&&z.D.videoInfos.length)}; g.qk=function(z){var p=z.S;z.Y("html5_gapless_unlimit_format_selection")&&ta(z)&&(p=!1);var c=!!z.W&&z.W.La,B=z.QI,H=z.PE(),T=Xl(z),b=z.rA,D=p,t=z.isOtf();p=z.fu();var X=z.sH,x=z.getUserAudio51Preference(),E=xI(z),q=new xPB(B);if(B.OW()||B.Y("html5_logging_format_selection"))q.K=!0;q.NZ=T;q.rA=b&&B.G;q.YA=x;g.k5("windows nt 5.1")&&!g.UP&&(q.Om=!0);if(T=H)T=g.TU(B)?xuv(B):!1;T&&(q.Dt=!0);D&&(q.Om=!0,q.Wy=!0);t&&!B.Y("html5_otf_prefer_vp9")&&(q.Om=!0);B.playerStyle==="picasaweb"&&(t&&(q.Om=!1),q.tD= !1);X&&(q.Om=!0);$t(B.L,KS.CHANNELS)&&(B.Y("html5_enable_ac3")&&(q.L=!0),B.Y("html5_enable_eac3")&&(q.V=!0),B.Y("html5_enable_ac3_gapless")&&(q.fH=!0));B.Y("html5_block_8k_hfr")&&(q.CH=!0);q.G=g.P3(B.experiments,"html5_max_selectable_quality_ordinal");q.S=g.P3(B.experiments,"html5_min_selectable_quality_ordinal");Lm&&(q.Ca=480);if(c||H)q.tD=!1;q.sH=!1;q.disableAv1=E;c=l2(B,q.W,void 0,q.disableAv1);c>0&&c<2160&&(wr()||B.Y("html5_format_hybridization"))&&(q.W.supportsChangeType=+wr(),q.xw=c);c>=2160&& (q.Ra=!0);v8D()&&(q.W.serveVp9OverAv1IfHigherRes=0,q.LB=!1);q.fu=p;q.OH=g.pq||bL()&&!p?!1:!0;q.U=B.Y("html5_format_hybridization");q.RR=B.Y("html5_disable_encrypted_vp9_live_non_2k_4k");Ee(z)&&(q.EW=z.Y("html5_prefer_language_over_codec"));N_()&&z.playerResponse&&z.playerResponse.playerConfig&&z.playerResponse.playerConfig.webPlayerConfig&&z.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.L=!0,q.V=!0);z.S&&z.isAd()&&(z.tW&&(q.MZ=z.tW),z.Xd&&(q.X=z.Xd));q.i8=z.isLivePlayback&& z.ke()&&z.QI.Y("html5_drm_live_audio_51");q.WM=z.lV;return z.wJ=q}; xI=function(z){return z.QI.Y("html5_disable_av1")||z.Y("html5_gapless_shorts_disable_av1")&&ta(z)?!0:!1}; IoY=function(z){kw("drm_pb_s",void 0,z.OH);z.CH||z.W&&AP(z.W);var p={};z.W&&(p=GM_(z.B_,g.qk(z),z.QI.L,z.W,function(c){return z.publish("ctmp","fmtflt",c)},!0,new Set)); p=new f5(p,z.QI,z.WJ,z.useCobaltWidevine?N_()?Ja(z):!1:!1,function(c,B){z.KH(c,B)}); g.l(z,p);z.Dp=!1;z.loading=!0;wSQ(p,function(c){kw("drm_pb_f",void 0,z.OH);for(var B=g.m(c),H=B.next();!H.done;H=B.next())switch(H=H.value,H.flavor){case "fairplay":H.CH=z.CH;H.H_=z.H_;H.SB=z.SB;break;case "widevine":H.Ob=z.Ob}z.s_=c;if(z.s_.length>0&&(z.L=z.s_[0],z.QI.OW())){c={};B=g.m(Object.entries(z.L.W));for(H=B.next();!H.done;H=B.next()){var T=g.m(H.value);H=T.next().value;T=T.next().value;var b="unk";(H=H.match(/(.*)codecs="(.*)"/))&&(b=H[2]);c[b]=T}z.KH("drmProbe",c)}z.TY()})}; jPE=function(z,p){if(p.length===0||Mk(z))return null;YI(z,"html5_enable_cobalt_experimental_vp9_decoder")&&(yr=!0);var c=z.o8;var B=z.lengthSeconds,H=z.isLivePlayback,T=z.iZ,b=z.QI,D=GqN(p);if(H||T){b=b.experiments;B=new hX("",b,!0);B.K=!T;B.La=!0;B.isManifestless=!0;B.isLive=!T;B.iZ=T;p=g.m(p);for(H=p.next();!H.done;H=p.next()){var t=H.value;H=OP(t,c);D=yq(t);D=RM(D.vK||t.url||"",D.Mf,D.s);var X=D.get("id");X&&X.includes("%7E")&&(B.U=!0);var x=void 0;X=(x=b)==null?void 0:x.JD("html5_max_known_end_time_rebase"); x=Number(t.targetDurationSec||5);t=Number(t.maxDvrDurationSec||14400);var E=Number(D.get("mindsq")||D.get("min_sq")||"0"),q=Number(D.get("maxdsq")||D.get("max_sq")||"0")||Infinity;B.Rj=B.Rj||E;B.uY=B.uY||q;var J=!Di(H.mimeType);D&&JX(B,new cw(D,H,{MO:x,Cn:J,DY:t,Rj:E,uY:q,Ww:300,iZ:T,u3:X}))}c=B}else if(D==="FORMAT_STREAM_TYPE_OTF"){B=B===void 0?0:B;T=new hX("",b.experiments,!1);T.duration=B||0;b=g.m(p);for(B=b.next();!B.done;B=b.next())B=B.value,p=OP(B,c,T.duration),H=yq(B),(H=RM(H.vK||B.url||"", H.Mf,H.s))&&(p.streamType==="FORMAT_STREAM_TYPE_OTF"?JX(T,new Bw(H,p,"sq/0")):JX(T,new xT(H,p,eM(B.initRange),eM(B.indexRange))));T.isOtf=!0;c=T}else{B=B===void 0?0:B;T=new hX("",b.experiments,!1);T.duration=B||0;b=g.m(p);for(B=b.next();!B.done;B=b.next())D=B.value,B=OP(D,c,T.duration),p=eM(D.initRange),H=eM(D.indexRange),X=yq(D),(D=RM(X.vK||D.url||"",X.Mf,X.s))&&JX(T,new xT(D,B,p,H));c=T}T=z.isLivePlayback&&!z.iZ&&!z.YA&&!z.isPremiere;z.Y("html5_live_head_playable")&&(!m9(z)&&T&&z.KH("missingLiveHeadPlayable", {}),z.QI.MZ==="yt"&&(c.OH=!0));return c}; Mk=function(z){return N_()?!Ja(z):zW()?!(!z.CH||!z.Y("html5_enable_safari_fairplay")&&bP()):!1}; Ja=function(z){return z.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Bf=function(z,p){p=g.m(p);for(var c=p.next();!c.done;c=p.next())if(c=c.value,c.cueRangeSetIdentifier){var B=void 0;z.Gi.set(c.cueRangeSetIdentifier,(B=c.playerCueRanges)!=null?B:[])}}; ha=function(z){return!(!z.W||!z.W.isManifestless)}; Pf=function(z){return z.ow?z.isLowLatencyLiveStream&&z.W!=null&&u2(z.W)>=5:z.isLowLatencyLiveStream&&z.W!=void 0&&u2(z.W)>=5}; FiW=function(z){return N_()&&Ja(z)?!1:Mk(z)&&(g.d9(z.QI)?!z.isLivePlayback:z.hlsvp)||!bP()||z.sD?!0:!1}; QPS=function(z){z.loading=!0;z.gC=!1;if(oSY(z))g.XrE(z.videoId).then(function(B){nSu(z,B)}).then(function(){z.TY()}); else{bD(z.wU)||g.oc(new g.z6("DASH MPD Origin invalid: ",z.wU));var p=z.wU,c=g.P3(z.QI.experiments,"dash_manifest_version")||4;p=g.g6(p,{mpd_version:c});z.isLowLatencyLiveStream&&z.latencyClass!=="NORMAL"||(p=g.g6(p,{pacing:0}));ig_(p,z.QI.experiments,z.isLivePlayback).then(function(B){z.qZ()||(Aa(z,B,!0),kw("mrc",void 0,z.OH),z.TY())},function(B){z.qZ()||(z.loading=!1,z.publish("dataloaderror",new W2("manifest.net.retryexhausted",{backend:"manifest", rc:B.status},1)))}); kw("mrs",void 0,z.OH)}}; nSu=function(z,p){var c=p.map(function(t){return t.itag}),B; if((B=z.playerResponse)!=null&&B.streamingData){B=[];if(z.Y("html5_offline_always_use_local_formats")){c=0;for(var H=g.m(p),T=H.next();!T.done;T=H.next()){T=T.value;var b=Object.assign({},T);b.signatureCipher="";B.push(b);b=g.m(z.playerResponse.streamingData.adaptiveFormats);for(var D=b.next();!D.done;D=b.next())if(D=D.value,T.itag===D.itag&&T.xtags===D.xtags){c+=1;break}}cx&&(x=J.getInfo().audio.numChannels)}x>2&&z.KH("hlschl",{mn:x});var O;((O=z.wJ)==null?0:O.K)&&z.KH("hlsfmtaf",{itags:E.join(".")});var R;if(z.Y("html5_enable_vp9_fairplay")&&((R=z.L)==null?0:Qr(R)))for(z.KH("drm",{sbdlfbk:1}),x=g.m(z.s_),E=x.next();!E.done;E=x.next())if(E=E.value,n5(E)){z.L=E;break}SN(z,X)})}return vh()}; gSx=function(z){if(z.isExternallyHostedPodcast&&z.Hf){var p=Ry(z.Hf);if(!p[0])return vh();z.j2=p[0];return yHu(z.QI,p[0]).then(function(c){SN(z,c)})}return z.Gx&&z.ZX?Wvu(z.QI,z.isAd(),z.Gx).then(function(c){SN(z,c)}):vh()}; NoE=function(z){if(z.isExternallyHostedPodcast)return vh();var p=Ry(z.Hf,z.Th);if(z.hlsvp){var c=AZD(z.hlsvp,z.clientPlaybackNonce,z.Lv);p.push(c)}return duf(z.QI,z.isAd(),p,GdD(z)).then(function(B){SN(z,B)})}; SN=function(z,p){z.t1=p;z.Ez(new MJ(g.d7(z.t1,function(c){return c.getInfo()})))}; GdD=function(z){var p={cpn:z.clientPlaybackNonce,c:z.QI.W.c,cver:z.QI.W.cver};z.cT&&(p.ptk=z.cT,p.oid=z.b2,p.ptchn=z.yC,p.pltype=z.Hr,z.wd&&(p.m=z.wd));return p}; g.$I=function(z){return Mk(z)&&z.CH?(z={},z.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",z):z.K&&z.K.o8||null}; foi=function(z){var p=KT(z);return p&&p.text?g.wJ(p.text):z.paidContentOverlayText}; zwN=function(z){var p=KT(z);return p&&p.durationMs?Tk(p.durationMs):z.paidContentOverlayDurationMs}; KT=function(z){var p,c,B;return z.playerResponse&&z.playerResponse.paidContentOverlay&&z.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.I((p=z.i8)==null?void 0:(c=p.playerOverlays)==null?void 0:(B=c.playerOverlayRenderer)==null?void 0:B.playerDisclosure,pZx)||null}; ur=function(z){var p="";if(z.Jk)return z.Jk;z.isLivePlayback&&(p=z.allowLiveDvr?"dvr":z.isPremiere?"lp":z.YA?"window":"live");z.iZ&&(p="post");return p}; g.ay=function(z,p){return typeof z.keywords[p]!=="string"?null:z.keywords[p]}; c$_=function(z){return!!z.l6||!!z.IB||!!z.kd||!!z.Ep||z.Jb||z.G.focEnabled||z.G.rmktEnabled}; g.Zt=function(z){return!!(z.wU||z.Hf||z.Gx||z.hlsvp||z.x7())}; Nb=function(z){if(z.Y("html5_onesie")&&z.errorCode)return!1;var p=g.Gv(z.tD,"ypc");z.ypcPreview&&(p=!1);return z.NP()&&!z.loading&&(g.Zt(z)||g.Gv(z.tD,"heartbeat")||p)}; Ry=function(z,p){z=t6(z);var c={};if(p){p=g.m(p.split(","));for(var B=p.next();!B.done;B=p.next())(B=B.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[B[1]]={width:B[2],height:B[3]})}p=g.m(z);for(B=p.next();!B.done;B=p.next()){B=B.value;var H=c[B.itag];H&&(B.width=H.width,B.height=H.height)}return z}; LT=function(z){var p=z.getAvailableAudioTracks();p=p.concat(z.SK);for(var c=0;c0:p||z.adFormat!=="17_8"||z.isAutonav||g.HX(z.QI)||z.Zl?z.LN?!1:z.QI.Hf||z.QI.sF||!g.yB(z.QI)?!p&&oy(z)==="adunit"&&z.l6?!1:!0:!1:!1:(z.LN?0:z.gJ)&&g.yB(z.QI)?!0:!1;z.Y("html5_log_detailpage_autoplay")&&oy(z)==="detailpage"&&z.KH("autoplay_info",{autoplay:z.bY,autonav:z.isAutonav,wasDompaused:z.LN,result:p});return p}; g.se=function(z){return z.oauthToken||z.QI.SK}; J$Q=function(z){if(z.Y("html5_stateful_audio_normalization")){var p=1,c=g.P3(z.QI.experiments,"html5_default_ad_gain");c&&z.isAd()&&(p=c);var B;if(c=((B=z.X)==null?void 0:B.audio.K)||z.Nf){B=(0,g.y2)();z.mN=2;var H=B-z.QI.TL<=z.maxStatefulTimeThresholdSec*1E3;z.applyStatefulNormalization&&H?z.mN=4:H||(z.QI.hA=Infinity,z.QI.TL=NaN);H=(z.mN===4?g.MQ(z.QI.hA,z.minimumLoudnessTargetLkfs,z.loudnessTargetLkfs):z.loudnessTargetLkfs)-c;if(z.mN!==4){var T,b,D,t,X=((T=z.playerResponse)==null?void 0:(b=T.playerConfig)== null?void 0:(D=b.audioConfig)==null?void 0:(t=D.loudnessNormalizationConfig)==null?void 0:t.statelessLoudnessAdjustmentGain)||0;H+=X}H=Math.min(H,0);z.preserveStatefulLoudnessTarget&&(z.QI.hA=c+H,z.QI.TL=B);z=Math.min(1,Math.pow(10,H/20))||p}else z=qOv(z)}else z=qOv(z);return z}; qOv=function(z){var p=1,c=g.P3(z.QI.experiments,"html5_default_ad_gain");c&&z.isAd()&&(p=c);var B;if(c=((B=z.X)==null?void 0:B.audio.D)||z.e1)z.mN=1;return Math.min(1,Math.pow(10,-c/20))||p}; Xl=function(z){var p=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=BW(z.QI)==="TVHTML5_SIMPLY"&&z.QI.W.ctheme==="MUSIC";z.sF||!g.rn(z.QI)&&!c||!p.includes(z.musicVideoType)&&!z.isExternallyHostedPodcast||(z.sF=!0);if(p=g.GQ())p=/Starboard\/([0-9]+)/.exec(g.Zm()),p=(p?parseInt(p[1],10):NaN)<10;c=z.QI;c=(BW(c)==="TVHTML5_CAST"||BW(c)==="TVHTML5"&&(c.W.cver.startsWith("6.20130725")||c.W.cver.startsWith("6.20130726")))&&z.QI.W.ctheme==="MUSIC";var B;if(B=!z.sF)c||(c=z.QI,c=BW(c)=== "TVHTML5"&&c.W.cver.startsWith("7")),B=c;B&&!p&&(p=z.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(z.Y("cast_prefer_audio_only_for_atv_and_uploads")||z.Y("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&z.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",p||c||z.isExternallyHostedPodcast)&&(z.sF=!0);return z.QI.deviceIsAudioOnly||z.sF&&z.QI.G}; g.MCY=function(z){var p;if(!(p=z.Y("html5_enable_sabr_live_captions")&&z.La()&&Ee(z))){var c,B,H;p=((c=z.playerResponse)==null?void 0:(B=c.playerConfig)==null?void 0:(H=B.compositeVideoConfig)==null?void 0:H.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return p}; kI=function(z){var p,c,B;return!!((p=z.playerResponse)==null?0:(c=p.playerConfig)==null?0:(B=c.mediaCommonConfig)==null?0:B.splitScreenEligible)}; gG=function(z){var p;return!((p=z.playerResponse)==null||!p.compositePlayabilityStatus)}; YOf=function(z){return isNaN(z)?0:Math.max((Date.now()-z)/1E3-30,0)}; Gz=function(z){return!(!z.OM||!z.QI.G)&&z.x7()}; Nk=function(z){return z.Oc&&z.enableServerStitchedDai}; mpW=function(z){return z.Q3&&!z.mu}; Ee=function(z){var p=z.Y("html5_enable_sabr_on_drive")&&z.QI.MZ==="gd";if(z.P9)return z.Q3&&z.KH("fds",{fds:!0},!0),!1;if(z.QI.MZ!=="yt"&&!p)return z.Q3&&z.KH("dsvn",{ns:z.QI.MZ},!0),!1;if(z.cotn||!z.W||z.W.isOtf||z.OO&&!z.Y("html5_enable_sabr_csdai"))return!1;if(z.Y("html5_use_sabr_requests_for_debugging"))return!0;z.Q3&&z.KH("esfw",{usbc:z.Q3,hsu:!!z.mu},!0);if(z.Q3&&z.mu)return!0;if(z.Y("html5_remove_client_sabr_determination"))return!1;var c=!z.W.La&&!z.ke();p=c&&HW&&z.Y("html5_enable_sabr_vod_streaming_xhr"); c=c&&!HW&&z.Y("html5_enable_sabr_vod_non_streaming_xhr");var B=Bv(z),H=z.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&HW&&z.ke()&&!z.W.La&&(z.hq==="1"?!1:!0);(p=p||c||B||H)&&!z.mu&&z.KH("sabr",{loc:"m"},!0);return p&&!!z.mu}; Bv=function(z){var p;if(!(p=HW&&z.La()&&z.ke()&&(z.hq==="1"?!1:!0)&&z.Y("html5_sabr_live_drm_streaming_xhr"))){p=z.La()&&!z.ke()&&HW;var c=z.La()&&z.latencyClass!=="ULTRALOW"&&!z.isLowLatencyLiveStream&&z.Y("html5_sabr_live_normal_latency_streaming_xhr"),B=z.isLowLatencyLiveStream&&z.Y("html5_sabr_live_low_latency_streaming_xhr"),H=z.latencyClass==="ULTRALOW"&&z.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");p=p&&(c||B||H)}c=p;p=z.enableServerStitchedDai&&c&&z.Y("html5_enable_sabr_ssdai_streaming_xhr"); c=!z.enableServerStitchedDai&&c;B=z.La()&&!HW&&z.Y("html5_enable_sabr_live_non_streaming_xhr");z=HW&&(z.yL()||kI(z)&&z.Y("html5_enable_sabr_for_lifa_eligible_streams"));return p||c||B||z}; g.pT=function(z){return z.k9&&Ee(z)}; oSY=function(z){var p;if(p=!!z.cotn)p=z.videoId,p=!!p&&g.C8(p)===1;return p&&!z.OM}; g.ig=function(z){if(!z.W||!z.K||!z.X)return!1;var p=z.W.W,c=!!p[z.K.id]&&LS(p[z.K.id].j9.W);p=!!p[z.X.id]&&LS(p[z.X.id].j9.W);return(z.K.itag==="0"||c)&&p}; Tg=function(z){return z.Rc?["OK","LIVE_STREAM_OFFLINE"].includes(z.Rc.status):!0}; bcS=function(z){return(z=z.gh)&&z.showError?z.showError:!1}; YI=function(z,p){return z.Y(p)?!0:(z.fflags||"").includes(p+"=true")}; hwx=function(z){return z.Y("html5_heartbeat_iff_heartbeat_params_filled")}; uRu=function(z,p){p.inlineMetricEnabled&&(z.inlineMetricEnabled=!0);p.playback_progress_0s_url&&(z.Ep=new Bo_(p));if(p=p.video_masthead_ad_quartile_urls)z.IB=p.quartile_0_url,z.Mm=p.quartile_25_url,z.eG=p.quartile_50_url,z.Dr=p.quartile_75_url,z.Kf=p.quartile_100_url,z.kd=p.quartile_0_urls,z.fA=p.quartile_25_urls,z.pA=p.quartile_50_urls,z.uV=p.quartile_75_urls,z.vj=p.quartile_100_urls}; KiW=function(z){var p={};z=g.m(z);for(var c=z.next();!c.done;c=z.next()){c=c.value;var B=c.split("=");B.length===2?p[B[0]]=B[1]:p[c]=!0}return p}; RgQ=function(z){if(z){if(t_Y(z))return z;z=X_S(z);if(t_Y(z,!0))return z}return""}; g.PqY=function(z){return z.captionsLanguagePreference||z.QI.captionsLanguagePreference||g.ay(z,"yt:cc_default_lang")||z.QI.RR}; bg=function(z){return!(!z.isLivePlayback||!z.hasProgressBarBoundaries())}; g.Tz=function(z){var p;return z.Yn||((p=z.suggestions)==null?void 0:p[0])||null}; g.VP=function(z){return z.Sd&&(z.Y("embeds_enable_pfp_always_unbranded")||z.QI.L9)}; D7=function(z,p){z.Y("html5_log_autoplay_src")&&ta(z)&&z.KH("apsrc",{src:p})}; g.t1=function(z){var p,c;return!!((p=z.embeddedPlayerConfig)==null?0:(c=p.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; g.xG=function(z){var p=z.N(),c=g.X7(p),B=p.Zt;(p.Y("embeds_web_enable_iframe_api_send_full_embed_url")||p.Y("embeds_web_enable_rcat_validation_in_havs")||p.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.jF(p)&&(B&&(c.thirdParty=Object.assign({},c.thirdParty,{embedUrl:B})),FKE(c,z));if(B=z.Ra)c.clickTracking={clickTrackingParams:B};B=c.client||{};var H="EMBED",T=oy(z);T==="leanback"?H="WATCH":p.Y("gvi_channel_client_screen")&&T==="profilepage"?H="CHANNEL":z.sH?H="LIVE_MONITOR":T==="detailpage"? H="WATCH_FULL_SCREEN":T==="adunit"?H="ADUNIT":T==="sponsorshipsoffer"&&(H="UNKNOWN");B.clientScreen=H;if(p=z.kidsAppInfo)B.kidsAppInfo=JSON.parse(p);(H=z.zf)&&!p&&(B.kidsAppInfo={contentSettings:{ageUpMode:A$v[H]}});if(p=z.wS)B.unpluggedAppInfo={enableFilterMode:!0};(H=z.unpluggedFilterModeType)&&!p&&(B.unpluggedAppInfo={filterModeType:OcY[H]});if(p=z.MZ)B.unpluggedLocationInfo=p;c.client=B;B=c.request||{};z.JH&&(B.isPrefetch=!0);if(p=z.mdxEnvironment)B.mdxEnvironment=p;if(p=z.mdxControlMode)B.mdxControlMode= wZE[p];c.request=B;B=c.user||{};if(p=z.Dt)B.credentialTransferTokens=[{token:p,scope:"VIDEO"}];if(p=z.RR)B.delegatePurchases={oauthToken:p},B.kidsParent={oauthToken:p};c.user=B;if(B=z.contextParams)c.activePlayers=[{playerContextParams:B}];if(z=z.clientScreenNonce)c.clientScreenNonce=z;return c}; g.X7=function(z){var p=g.Tl(),c=p.client||{};if(z.forcedExperiments){var B=z.forcedExperiments.split(","),H=[];B=g.m(B);for(var T=B.next();!T.done;T=B.next())H.push(Number(T.value));c.experimentIds=H}if(H=z.homeGroupInfo)c.homeGroupInfo=JSON.parse(H);if(H=z.getPlayerType())c.playerType=H;if(H=z.W.ctheme)c.theme=H;if(H=z.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:H});H=z.deviceYear;z.Y("html5_propagate_device_year")&&H&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,{deviceYear:H})); if(H=z.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:H});p.client=c;c=p.user||{};z.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));z.pageId&&(c=Object.assign({},c,{onBehalfOfUser:z.pageId}));p.user=c;c=z.Zt;z.Y("embeds_web_enable_iframe_api_send_full_embed_url")||z.Y("embeds_web_enable_rcat_validation_in_havs")||z.Y("embeds_enable_autoplay_and_visibility_signals")||!c||(p.thirdParty={embedUrl:c});return p}; abS=function(z,p,c){var B=z.videoId,H=g.xG(z),T=z.N(),b={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(y0()),referer:document.location.toString(),signatureTimestamp:20166};g.sA();z.isAutonav&&(b.autonav=!0);g.k4(0,141)&&(b.autonavState=g.k4(0,140)?"STATE_OFF":"STATE_ON");b.autoCaptionsDefaultOn=g.k4(0,66);Ue(z)&&(b.autoplay=!0);T.G&&z.cycToken&&(b.cycToken=z.cycToken);T.enablePrivacyFilter&&(b.enablePrivacyFilter=!0);z.isFling&&(b.fling=!0);var D=z.forceAdsUrl;if(D){var t={},X=[];D=D.split(","); D=g.m(D);for(var x=D.next();!x.done;x=D.next()){x=x.value;var E=x.split("|");E.length!==3||x.includes("=")||(E[0]="breaktype="+E[0],E[1]="offset="+E[1],E[2]="url="+E[2]);x={adtype:"video_ad"};E=g.m(E);for(var q=E.next();!q.done;q=E.next()){var J=g.m(q.value.split("="));q=J.next().value;J=i_Y(J);x[q]=J.join("=")}E=x.url;q=x.presetad;J=x.viralresponseurl;var M=Number(x.campaignid);if(x.adtype==="in_display_ad")E&&(t.url=E),q&&(t.presetAd=q),J&&(t.viralAdResponseUrl=J),M&&(t.viralCampaignId=String(M)); else if(x.adtype==="video_ad"){var P={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(x.offset)||0)}};if(x=Rwv[x.breaktype])P.breakType=x;E&&(P.url=E);q&&(P.presetAd=q);J&&(P.viralAdResponseUrl=J);M&&(P.viralCampaignId=String(M));X.push(P)}}b.forceAdParameters={videoAds:X,inDisplayAd:t}}z.isInlinePlaybackNoAd&&(b.isInlinePlaybackNoAd=!0);z.isLivingRoomDeeplink&&(b.isLivingRoomDeeplink=!0);t=z.Ak;if(t!=null){t={startWalltime:String(t)};if(X=z.Vy)t.manifestDuration=String(X||14400);b.liveContext= t}if(z.mutedAutoplay){b.mutedAutoplay=!0;t=T.getWebPlayerContextConfig();var O,R;(t==null?0:(O=t.embedsHostFlags)==null?0:O.allowMutedAutoplayDurationMode)&&(t==null?0:(R=t.embedsHostFlags)==null?0:R.allowMutedAutoplayDurationMode.includes(SOB[z.mutedAutoplayDurationMode]))&&(b.mutedAutoplayDurationMode=SOB[z.mutedAutoplayDurationMode])}if(z.LN?0:z.gJ)b.splay=!0;O=z.vnd;O===5&&(b.vnd=O);O={};if(R=z.isMdxPlayback)O.triggeredByMdx=R;if(R=z.DI)O.skippableAdsSupported=R.split(",").includes("ska");if(X= z.cV){R=z.oB;t=[];X=g.m(o6x(X));for(D=X.next();!D.done;D=X.next()){D=D.value;x=D.platform;D={applicationState:D.Mu?"INACTIVE":"ACTIVE",clientFormFactor:$pf[x]||"UNKNOWN_FORM_FACTOR",clientName:QDS[D.Hl]||"UNKNOWN_INTERFACE",clientVersion:D.deviceVersion||"",platform:KWQ[x]||"UNKNOWN_PLATFORM"};x={};if(R){E=void 0;try{E=JSON.parse(R)}catch(K){g.oc(K)}E&&(x={params:[{key:"ms",value:E.ms}]},E.advertising_id&&(x.advertisingId=E.advertising_id),E.limit_ad_tracking!==void 0&&E.limit_ad_tracking!==null&& (x.limitAdTracking=E.limit_ad_tracking),D.osName=E.os_name,D.userAgent=E.user_agent,D.windowHeightPoints=E.window_height_points,D.windowWidthPoints=E.window_width_points)}t.push({adSignalsInfo:x,remoteClient:D})}O.remoteContexts=t}R=z.sourceContainerPlaylistId;t=z.serializedMdxMetadata;if(R||t)X={},R&&(X.mdxPlaybackContainerInfo={sourceContainerPlaylistId:R}),t&&(X.serializedMdxMetadata=t),O.mdxPlaybackSourceContext=X;b.mdxContext=O;O=p.width;O>0&&(b.playerWidthPixels=Math.round(O));if(p=p.height)b.playerHeightPixels= Math.round(p);c!==0&&(b.vis=c);if(c=T.widgetReferrer)b.widgetReferrer=c.substring(0,128);g.yB(T)&&b&&(b.ancestorOrigins=T.ancestorOrigins);z.defaultActiveSourceVideoId&&(b.compositeVideoContext={defaultActiveSourceVideoId:z.defaultActiveSourceVideoId});if(T=T.getWebPlayerContextConfig())b.encryptedHostFlags=T.encryptedHostFlags;B={videoId:B,context:H,playbackContext:{contentPlaybackContext:b}};z.reloadPlaybackParams&&(B.playbackContext.reloadPlaybackContext={reloadPlaybackParams:z.reloadPlaybackParams}); z.contentCheckOk&&(B.contentCheckOk=!0);if(H=z.clientPlaybackNonce)B.cpn=H;if(H=z.playerParams)B.params=H;if(H=z.playlistId)B.playlistId=H;z.racyCheckOk&&(B.racyCheckOk=!0);H=z.N();if(b=H.embedConfig)B.serializedThirdPartyEmbedConfig=b;B.captionParams={};b=g.k4(g.sA(),65);z.deviceCaptionsOn!=null?B.captionParams.deviceCaptionsOn=z.deviceCaptionsOn:g.cX(H)&&(B.captionParams.deviceCaptionsOn=b!=null?!b:!1);z.b7&&(B.captionParams.deviceCaptionsLangPref=z.b7);z.UD.length?B.captionParams.viewerSelectedCaptionLangs= z.UD:g.cX(H)&&(b=g.kx(),b==null?0:b.length)&&(B.captionParams.viewerSelectedCaptionLangs=b);b=z.fetchType==="onesie"&&z.Y("html5_onesie_attach_po_token");T=z.fetchType!=="onesie"&&z.Y("html5_non_onesie_attach_po_token");if(b||T)b=z.N(),b.A8&&(B.serviceIntegrityDimensions={},B.serviceIntegrityDimensions.poToken=b.A8);H.Y("fetch_att_independently")&&(B.attestationRequest={omitBotguardData:!0});B.playbackContext||(B.playbackContext={});B.playbackContext.devicePlaybackCapabilities=ucE(z);B.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&z.KH("noVp9",{});return B}; ucE=function(z){var p=!(z==null?0:z.fu())&&(z==null?void 0:z.La())&&bL(),c;if(c=z==null?0:z.Y("html5_report_supports_vp9_encoding")){if(z==null)c=0;else{c=g.qk(z);z=z.N().L;var B=xW("243");c=B?Pi(c,B,z,!0)===!0:!1}c=c&&!p}return{supportsVp9Encoding:!!c,supportXhr:HW}}; LWB=function(z,p){var c,B,H;return g.L(function(T){if(T.W==1)return c={context:g.X7(z.N()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:z.videoId,cpn:z.clientPlaybackNonce}}]},B=g.D6(Zcu),g.a(T,g.HY(p,c,B),2);H=T.K;return T.return(H)})}; dpW=function(z,p,c){var B=g.P3(p.experiments,"bg_vm_reinit_threshold");(!jt||(0,g.y2)()-jt>B)&&LWB(z,c).then(function(H){H&&(H=H.botguardData)&&g.nk(H,p)},function(H){z.qZ()||(H=Cd(H),z.KH("attf",H.details))})}; ES=function(z,p){g.e.call(this);this.app=z;this.state=p}; J1=function(z,p,c){z.state.W.hasOwnProperty(p)||q0(z,p,c);z.state.G[p]=function(){return c.apply(z,g.L_.apply(0,arguments))}; z.state.V.add(p)}; M0=function(z,p,c){z.state.W.hasOwnProperty(p)||q0(z,p,c);z.app.N().G&&(z.state.S[p]=function(){return c.apply(z,g.L_.apply(0,arguments))},z.state.V.add(p))}; q0=function(z,p,c){z.state.W[p]=function(){return c.apply(z,g.L_.apply(0,arguments))}}; g.YG=function(z,p,c){return z.state.W[p].apply(z.state.W,g.A(c))}; h1=function(){g.W4.call(this);this.L=new Map}; Pv=function(){g.e.apply(this,arguments);this.element=null;this.V=new Set;this.G={};this.S={};this.W={};this.U=new Set;this.D=new h1;this.K=new h1;this.X=new h1;this.L=new h1}; WWu=function(z,p,c){typeof z==="string"&&(z={mediaContentUrl:z,startSeconds:p,suggestedQuality:c});a:{if((p=z.mediaContentUrl)&&(p=/\/([ve]|embed)\/([^#?]+)/.exec(p))&&p[2]){p=p[2];break a}p=null}z.videoId=p;return A1(z)}; A1=function(z,p,c){if(typeof z==="string")return{videoId:z,startSeconds:p,suggestedQuality:c};p={};c=g.m(y$W);for(var B=c.next();!B.done;B=c.next())B=B.value,z[B]&&(p[B]=z[B]);return p}; CqY=function(z,p,c,B){if(g.kB(z)&&!Array.isArray(z)){p="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(B=0;B32&&B.push("hfr");p.isHdr()&&B.push("hdr");p.primaries==="bt2020"&&B.push("wcg");c.video_quality_features=B}}if(z=z.getPlaylistId())c.list=z;return c}; $G=function(){OS.apply(this,arguments)}; KP=function(z,p){var c={};if(z.app.N().Dt){z=g.m(Ib_);for(var B=z.next();!B.done;B=z.next())B=B.value,p.hasOwnProperty(B)&&(c[B]=p[B]);if(p=c.qoe_cat)z="",typeof p==="string"&&p.length>0&&(z=p.split(",").filter(function(H){return jFN.includes(H)}).join(",")),c.qoe_cat=z; FWD(c)}else for(z=g.m(oHD),B=z.next();!B.done;B=z.next())B=B.value,p.hasOwnProperty(B)&&(c[B]=p[B]);return c}; FWD=function(z){var p=z.raw_player_response;if(!p){var c=z.player_response;c&&(p=JSON.parse(c))}delete z.player_response;delete z.raw_player_response;if(p){z.raw_player_response={streamingData:p.streamingData,playerConfig:p.playerConfig};var B;if((B=p.playbackTracking)==null?0:B.qoeUrl)z.raw_player_response=Object.assign({},z.raw_player_response,{playbackTracking:{qoeUrl:p.playbackTracking.qoeUrl}});var H;if((H=p.videoDetails)==null?0:H.videoId)z.raw_player_response=Object.assign({},z.raw_player_response, {videoDetails:{videoId:p.videoDetails.videoId}})}}; ug=function(z,p,c){var B=z.app.S5(c);if(!B)return 0;z=B-z.app.getCurrentTime(c);return p-z}; QFx=function(z){var p=p===void 0?5:p;return z?nHf[z]||p:p}; g.av=function(){$G.apply(this,arguments)}; r$f=function(z){q0(z,"getInternalApiInterface",z.getInternalApiInterface);q0(z,"addEventListener",z.E7);q0(z,"removeEventListener",z.AvI);q0(z,"cueVideoByPlayerVars",z.ZL);q0(z,"loadVideoByPlayerVars",z.YWa);q0(z,"preloadVideoByPlayerVars",z.uj8);q0(z,"getAdState",z.getAdState);q0(z,"sendAbandonmentPing",z.sendAbandonmentPing);q0(z,"setLoopRange",z.setLoopRange);q0(z,"getLoopRange",z.getLoopRange);q0(z,"setAutonavState",z.setAutonavState);q0(z,"seekTo",z.hzI);q0(z,"seekBy",z.j3A);q0(z,"seekToLiveHead", z.seekToLiveHead);q0(z,"requestSeekToWallTimeSeconds",z.requestSeekToWallTimeSeconds);q0(z,"seekToStreamTime",z.seekToStreamTime);q0(z,"startSeekCsiAction",z.startSeekCsiAction);q0(z,"getStreamTimeOffset",z.getStreamTimeOffset);q0(z,"getVideoData",z.XqA);q0(z,"setInlinePreview",z.setInlinePreview);q0(z,"getAppState",z.getAppState);q0(z,"updateLastActiveTime",z.updateLastActiveTime);q0(z,"setBlackout",z.setBlackout);q0(z,"setUserEngagement",z.setUserEngagement);q0(z,"updateSubtitlesUserSettings",z.updateSubtitlesUserSettings); q0(z,"getPresentingPlayerType",z.PA);q0(z,"canPlayType",z.canPlayType);q0(z,"updatePlaylist",z.updatePlaylist);q0(z,"updateVideoData",z.updateVideoData);q0(z,"updateEnvironmentData",z.updateEnvironmentData);q0(z,"sendVideoStatsEngageEvent",z.LhH);q0(z,"productsInVideoVisibilityUpdated",z.productsInVideoVisibilityUpdated);q0(z,"setSafetyMode",z.setSafetyMode);q0(z,"isAtLiveHead",function(p){return z.isAtLiveHead(void 0,p)}); q0(z,"getVideoAspectRatio",z.getVideoAspectRatio);q0(z,"getPreferredQuality",z.getPreferredQuality);q0(z,"getPlaybackQualityLabel",z.getPlaybackQualityLabel);q0(z,"setPlaybackQualityRange",z.oeH);q0(z,"onAdUxClicked",z.onAdUxClicked);q0(z,"getFeedbackProductData",z.getFeedbackProductData);q0(z,"getStoryboardFrame",z.getStoryboardFrame);q0(z,"getStoryboardFrameIndex",z.getStoryboardFrameIndex);q0(z,"getStoryboardLevel",z.getStoryboardLevel);q0(z,"getNumberOfStoryboardLevels",z.getNumberOfStoryboardLevels); q0(z,"getCaptionWindowContainerId",z.getCaptionWindowContainerId);q0(z,"getAvailableQualityLabels",z.getAvailableQualityLabels);q0(z,"addCueRange",z.addCueRange);q0(z,"addUtcCueRange",z.addUtcCueRange);q0(z,"showAirplayPicker",z.showAirplayPicker);q0(z,"dispatchReduxAction",z.dispatchReduxAction);q0(z,"getPlayerResponse",z.cDH);q0(z,"getWatchNextResponse",z.hiA);q0(z,"getHeartbeatResponse",z.HG);q0(z,"getCurrentTime",z.JV);q0(z,"getDuration",z.k6);q0(z,"getPlayerState",z.getPlayerState);q0(z,"getPlayerStateObject", z.K0A);q0(z,"getVideoLoadedFraction",z.getVideoLoadedFraction);q0(z,"getProgressState",z.getProgressState);q0(z,"getVolume",z.getVolume);q0(z,"setVolume",z.ea);q0(z,"isMuted",z.isMuted);q0(z,"mute",z.F8);q0(z,"unMute",z.gj);q0(z,"loadModule",z.loadModule);q0(z,"unloadModule",z.unloadModule);q0(z,"getOption",z.Qr);q0(z,"getOptions",z.getOptions);q0(z,"setOption",z.setOption);q0(z,"loadVideoById",z.s3);q0(z,"loadVideoByUrl",z.U3);q0(z,"playVideo",z.Hz);q0(z,"loadPlaylist",z.loadPlaylist);q0(z,"nextVideo", z.nextVideo);q0(z,"previousVideo",z.previousVideo);q0(z,"playVideoAt",z.playVideoAt);q0(z,"getDebugText",z.getDebugText);q0(z,"getWebPlayerContextConfig",z.getWebPlayerContextConfig);q0(z,"notifyShortsAdSwipeEvent",z.notifyShortsAdSwipeEvent);q0(z,"getVideoContentRect",z.getVideoContentRect);q0(z,"setSqueezeback",z.setSqueezeback);q0(z,"toggleSubtitlesOn",z.toggleSubtitlesOn);q0(z,"isSubtitlesOn",z.isSubtitlesOn);q0(z,"reportPlaybackIssue",z.reportPlaybackIssue);q0(z,"setAutonav",z.setAutonav);q0(z, "isNotServable",z.isNotServable);q0(z,"channelSubscribed",z.channelSubscribed);q0(z,"channelUnsubscribed",z.channelUnsubscribed);q0(z,"togglePictureInPicture",z.togglePictureInPicture);q0(z,"supportsGaplessAudio",z.supportsGaplessAudio);q0(z,"supportsGaplessShorts",z.supportsGaplessShorts);q0(z,"enqueueVideoByPlayerVars",function(p){return void z.enqueueVideoByPlayerVars(p)}); q0(z,"clearQueue",z.clearQueue);q0(z,"getAudioTrack",z.gB);q0(z,"setAudioTrack",z.fNA);q0(z,"getAvailableAudioTracks",z.Zd);q0(z,"getMaxPlaybackQuality",z.getMaxPlaybackQuality);q0(z,"getUserPlaybackQualityPreference",z.getUserPlaybackQualityPreference);q0(z,"getSubtitlesUserSettings",z.getSubtitlesUserSettings);q0(z,"resetSubtitlesUserSettings",z.resetSubtitlesUserSettings);q0(z,"setMinimized",z.setMinimized);q0(z,"setOverlayVisibility",z.setOverlayVisibility);q0(z,"confirmYpcRental",z.confirmYpcRental); q0(z,"queueNextVideo",z.queueNextVideo);q0(z,"handleExternalCall",z.handleExternalCall);q0(z,"logApiCall",z.logApiCall);q0(z,"isExternalMethodAvailable",z.isExternalMethodAvailable);q0(z,"setScreenLayer",z.setScreenLayer);q0(z,"getCurrentPlaylistSequence",z.getCurrentPlaylistSequence);q0(z,"getPlaylistSequenceForTime",z.getPlaylistSequenceForTime);q0(z,"shouldSendVisibilityState",z.shouldSendVisibilityState);q0(z,"syncVolume",z.syncVolume);q0(z,"highlightSettingsMenuItem",z.highlightSettingsMenuItem); q0(z,"openSettingsMenuItem",z.openSettingsMenuItem);q0(z,"getEmbeddedPlayerResponse",z.getEmbeddedPlayerResponse);q0(z,"getVisibilityState",z.getVisibilityState);q0(z,"isMutedByMutedAutoplay",z.isMutedByMutedAutoplay);q0(z,"isMutedByEmbedsMutedAutoplay",z.isMutedByEmbedsMutedAutoplay);q0(z,"setGlobalCrop",z.setGlobalCrop);q0(z,"setInternalSize",z.setInternalSize);q0(z,"setFauxFullscreen",z.setFauxFullscreen);q0(z,"setAppFullscreen",z.setAppFullscreen)}; LP=function(z,p,c){z=g.Z7(z.t8(),p);return c?(c.addOnDisposeCallback(z),null):z}; g.d$=function(z,p,c){return z.app.N().Q8?p:g.RD("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:p,SHORTCUT:c})}; UpD=function(z){z.t8().element.setAttribute("aria-live","polite")}; g.Wv=function(z,p){g.av.call(this,z,p);r$f(this);M0(this,"addEventListener",this.c7);M0(this,"removeEventListener",this.bip);M0(this,"cueVideoByPlayerVars",this.Sr);M0(this,"loadVideoByPlayerVars",this.uQ3);M0(this,"preloadVideoByPlayerVars",this.rv3);M0(this,"loadVideoById",this.s3);M0(this,"loadVideoByUrl",this.U3);M0(this,"playVideo",this.Hz);M0(this,"loadPlaylist",this.loadPlaylist);M0(this,"nextVideo",this.nextVideo);M0(this,"previousVideo",this.previousVideo);M0(this,"playVideoAt",this.playVideoAt); M0(this,"getVideoData",this.fd);M0(this,"seekBy",this.TkH);M0(this,"seekTo",this.IN0);M0(this,"showControls",this.showControls);M0(this,"hideControls",this.hideControls);M0(this,"cancelPlayback",this.cancelPlayback);M0(this,"getProgressState",this.getProgressState);M0(this,"isInline",this.isInline);M0(this,"setInline",this.setInline);M0(this,"setLoopVideo",this.setLoopVideo);M0(this,"getLoopVideo",this.getLoopVideo);M0(this,"getVideoContentRect",this.getVideoContentRect);M0(this,"getVideoStats",this.jat); M0(this,"getCurrentTime",this.AV);M0(this,"getDuration",this.k6);M0(this,"getPlayerState",this.Mpa);M0(this,"getVideoLoadedFraction",this.tp$);M0(this,"mute",this.F8);M0(this,"unMute",this.gj);M0(this,"setVolume",this.ea);M0(this,"loadModule",this.loadModule);M0(this,"unloadModule",this.unloadModule);M0(this,"getOption",this.Qr);M0(this,"getOptions",this.getOptions);M0(this,"setOption",this.setOption);M0(this,"addCueRange",this.addCueRange);M0(this,"getDebugText",this.getDebugText);M0(this,"getStoryboardFormat", this.getStoryboardFormat);M0(this,"toggleFullscreen",this.toggleFullscreen);M0(this,"isFullscreen",this.isFullscreen);M0(this,"getPlayerSize",this.getPlayerSize);M0(this,"toggleSubtitles",this.toggleSubtitles);this.app.N().Y("embeds_enable_move_set_center_crop_to_public")||M0(this,"setCenterCrop",this.setCenterCrop);M0(this,"setFauxFullscreen",this.setFauxFullscreen);M0(this,"setSizeStyle",this.setSizeStyle);M0(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);M0(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); lbS(this)}; g.yP=function(z){z=z.mU();var p=z.DS.get("endscreen");return p&&p.O$()?!0:z.l1()}; g.CP=function(z,p){z.getPresentingPlayerType()===3?z.publish("mdxautoplaycancel"):z.AD("onAutonavCancelled",p)}; g.lg=function(z){var p=eq(z.mU());return z.app.OB&&!z.isFullscreen()||z.getPresentingPlayerType()===3&&p&&p.kG()&&p.Zp()||!!z.getPlaylist()}; g.vv=function(z,p){g.YG(z,"addEmbedsConversionTrackingParams",[p])}; g.jq=function(z){return(z=g.Iv(z.mU()))?z.Aj():{}}; g.sFN=function(z){z=(z=z.getVideoData())&&z.K;return!!z&&!(!z.audio||!z.video)&&z.mimeType!=="application/x-mpegURL"}; g.F7=function(z,p,c){z=z.Hq().element;var B=D5(z.children,function(H){H=Number(H.getAttribute("data-layer"));return c-H||1}); B<0&&(B=-(B+1));DN(z,p,B);p.setAttribute("data-layer",String(c))}; g.ov=function(z){var p=z.N();if(!p.t1)return!1;var c=z.getVideoData();if(!c||z.getPresentingPlayerType()===3)return!1;var B=(!c.isLiveDefaultBroadcast||p.Y("allow_poltergust_autoplay"))&&!bg(c);B=c.isLivePlayback&&(!p.Y("allow_live_autoplay")||!B);var H=c.isLivePlayback&&p.Y("allow_live_autoplay_on_mweb");z=z.getPlaylist();z=!!z&&z.kG();var T=c.i8&&c.i8.playerOverlays||null;T=!!(T&&T.playerOverlayRenderer&&T.playerOverlayRenderer.autoplay);T=c.Sd&&T;return!c.ypcPreview&&(!B||H)&&!g.Gv(c.tD,"ypc")&& !z&&(!g.yB(p)||T)}; kjN=function(z){z=z.app.dA();if(!z)return!1;var p=z.getVideoData();if(!p.K||!p.K.video||p.K.video.qualityOrdinal<1080||p.Xc)return!1;var c=/^qsa/.test(p.clientPlaybackNonce),B="r";p.K.id.indexOf(";")>=0&&(c=/^[a-p]/.test(p.clientPlaybackNonce),B="x");return c?(z.KH("iqss",{trigger:B},!0),!0):!1}; nP=function(){r3.apply(this,arguments);this.requestHeaders={}}; r$=function(){QP||(QP=new nP);return QP}; US=function(z,p){p?z.requestHeaders.Authorization="Bearer "+p:delete z.requestHeaders.Authorization}; g.sS=function(z){var p=this;this.cq=z;this.Xg={k9D:function(){return p.cq}}}; g.kG=function(z,p,c,B){B=B===void 0?!1:B;g.P_.call(this,p);var H=this;this.T=z;this.tD=B;this.S=new g.or(this);this.fade=new g.Da(this,c,!0,void 0,void 0,function(){H.JG()}); g.l(this,this.S);g.l(this,this.fade)}; g$=function(z){var p=z.T.getRootNode();return z.T.Y("web_watch_pip")||z.T.Y("web_shorts_pip")?Q3(p):document}; gH_=function(z){z.K&&(document.activeElement&&g.X4(z.element,document.activeElement)&&z.K.focus(),z.K.setAttribute("aria-expanded","false"),z.K=void 0);g.CG(z.S);z.U=void 0}; Gg=function(z,p,c){z.Cl()?z.uQ():z.S_(p,c)}; N0=function(z,p,c,B){B=new g.Q({j:"div",LH:["ytp-linked-account-popup-button"],F3:B,C:{role:"button",tabindex:"0"}});p=new g.Q({j:"div",B:"ytp-linked-account-popup",C:{role:"dialog","aria-modal":"true",tabindex:"-1"},J:[{j:"div",B:"ytp-linked-account-popup-title",F3:p},{j:"div",B:"ytp-linked-account-popup-description",F3:c},{j:"div",B:"ytp-linked-account-popup-buttons",J:[B]}]});g.kG.call(this,z,{j:"div",B:"ytp-linked-account-popup-container",J:[p]},100);var H=this;this.dialog=p;g.l(this,this.dialog); B.listen("click",function(){H.uQ()}); g.l(this,B);g.F7(this.T,this.element,4);this.hide()}; g.zn=function(z,p,c,B){g.P_.call(this,z);this.priority=p;c&&g.fP(this,c);B&&this.cU(B)}; g.pe=function(z,p,c,B){z=z===void 0?{}:z;p=p===void 0?[]:p;c=c===void 0?!1:c;B=B===void 0?!1:B;p.push("ytp-menuitem");var H=z;"role"in H||(H.role="menuitem");c||(H=z,"tabindex"in H||(H.tabindex="0"));z={j:c?"a":"div",LH:p,C:z,J:[{j:"div",B:"ytp-menuitem-icon",F3:"{{icon}}"},{j:"div",B:"ytp-menuitem-label",F3:"{{label}}"},{j:"div",B:"ytp-menuitem-content",F3:"{{content}}"}]};B&&z.J.push({j:"div",B:"ytp-menuitem-secondary-icon",F3:"{{secondaryIcon}}"});return z}; g.fP=function(z,p){z.updateValue("label",p)}; cK=function(z){g.zn.call(this,g.pe({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var p=this;this.T=z;this.K=this.W=!1;this.QS=z.UP();z.createServerVe(this.element,this,!0);this.Z(this.T,"settingsMenuVisibilityChanged",function(c){p.Ns(c)}); this.Z(this.T,"videodatachange",this.X);this.listen("click",this.onClick);this.X()}; BK=function(z){return z?g.wJ(z):""}; HK=function(z){g.e.call(this);this.api=z}; id=function(z){HK.call(this,z);var p=this;q0(z,"setAccountLinkState",function(c){p.setAccountLinkState(c)}); q0(z,"updateAccountLinkingConfig",function(c){p.updateAccountLinkingConfig(c)}); z.addEventListener("videodatachange",function(c,B){p.onVideoDataChange(B)}); z.addEventListener("settingsMenuInitialized",function(){p.menuItem=new cK(p.api);g.l(p,p.menuItem)})}; GjV=function(z){this.api=z;this.W={}}; Tn=function(z,p,c,B){p in z.W||(c=new g.Xq(c,B,{id:p,priority:2,namespace:"appad"}),z.api.KN([c],1),z.W[p]=c)}; bd=function(z){HK.call(this,z);var p=this;this.events=new g.or(this);g.l(this,this.events);this.W=new GjV(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){p.W.W={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(c){var B=p.W;Tn(B,"part2viewed",1,0x8000000000000);Tn(B,"engagedview",Math.max(1,c.Zw*1E3),0x8000000000000);if(!c.isLivePlayback){var H=c.lengthSeconds*1E3;ta(c)&&B.api.Y("html5_shorts_gapless_ads_duration_fix")&&(H=B.api.getProgressState().seekableEnd*1E3-c.bR);Tn(B,"videoplaytime25",H*.25,H);Tn(B,"videoplaytime50",H*.5,H);Tn(B,"videoplaytime75",H*.75,H);Tn(B,"videoplaytime100",H,0x8000000000000);Tn(B,"conversionview",H,0x8000000000000); Tn(B,"videoplaybackstart",1,H);Tn(B,"videoplayback2s",2E3,H);Tn(B,"videoplayback10s",1E4,H)}}); this.events.Z(this.api,g.E5("appad"),this.K);this.events.Z(this.api,g.qT("appad"),this.K)}; ptB=function(z,p,c){if(!(c in p))return!1;p=p[c];Array.isArray(p)||(p=[p]);p=g.m(p);for(c=p.next();!c.done;c=p.next()){c=c.value;var B={CPN:z.api.getVideoData().clientPlaybackNonce};c=g.l8(c,B);B=void 0;B=B===void 0?!1:B;(B=H$(iD(c,NWY),c,B,"Active View 3rd Party Integration URL"))||(B=void 0,B=B===void 0?!1:B,B=H$(iD(c,fbx),c,B,"Google/YouTube Brand Lift URL"));B||(B=void 0,B=B===void 0?!1:B,B=H$(iD(c,zLD),c,B,"Nielsen OCR URL"));g.s3(c,void 0,B)}return!0}; Vx=function(z,p){chi(z,p).then(function(c){g.s3(p,void 0,void 0,c)})}; De=function(z,p){p.forEach(function(c){Vx(z,c)})}; chi=function(z,p){return g.yi(z.api.N())&&M_(p)&&J6(p)?g.tj(z.api.N(),g.se(z.api.getVideoData())).then(function(c){var B;c&&(B={Authorization:"Bearer "+c});return B},void 0):If()}; BUu=function(z){HK.call(this,z);this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"videoready",function(p){if(z.getPresentingPlayerType()===1){var c,B,H={playerDebugData:{pmlSignal:!!((c=p.getPlayerResponse())==null?0:(B=c.adPlacements)==null?0:B.some(function(T){var b;return T==null?void 0:(b=T.adPlacementRenderer)==null?void 0:b.renderer})), contentCpn:p.clientPlaybackNonce}};g.MG("adsClientStateChange",H)}})}; tW=function(z){g.Q.call(this,{j:"button",LH:["ytp-button"],C:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},J:[{j:"div",B:"ytp-autonav-toggle-button-container",J:[{j:"div",B:"ytp-autonav-toggle-button",C:{"aria-checked":"true"}}]}]});this.T=z;this.K=[];this.W=!1;this.isChecked=!0;z.createClientVe(this.element,this,113681);this.Z(z,"presentingplayerstatechange",this.Q9);this.listen("click",this.onClick);this.T.N().Y("web_player_autonav_toggle_always_listen")&& HkE(this);LP(z,this.element,this);this.Q9()}; HkE=function(z){z.K.push(z.Z(z.T,"videodatachange",z.Q9));z.K.push(z.Z(z.T,"videoplayerreset",z.Q9));z.K.push(z.Z(z.T,"onPlaylistUpdate",z.Q9));z.K.push(z.Z(z.T,"autonavchange",z.jq))}; ikD=function(z){z.isChecked=z.isChecked;z.jp("ytp-autonav-toggle-button").setAttribute("aria-checked",String(z.isChecked));var p=z.isChecked?"Autoplay is on":"Autoplay is off";z.updateValue("title",p);z.updateValue("label",p);z.T.Tk()}; TUQ=function(z){return z.T.N().Y("web_player_autonav_use_server_provided_state")&&Hf(z.CB())}; bki=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"standardControlsInitialized",function(){var c=new tW(z);g.l(p,c);z.ew(c,"RIGHT_CONTROLS_LEFT")})}; Xf=function(z,p){g.zn.call(this,g.pe({role:"menuitemcheckbox","aria-checked":"false"}),p,z,{j:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; xM=function(z,p){z.checked=p;z.element.setAttribute("aria-checked",String(z.checked))}; Vtv=function(z){var p=!z.N().EB&&z.getPresentingPlayerType()!==3;return z.isFullscreen()||p}; g.EB=function(z,p,c,B){var H=z.currentTarget;if((c===void 0||!c)&&g.W7(z))return z.preventDefault(),!0;p.pauseVideo();z=H.getAttribute("href");g.N6(z,B,!0);return!1}; g.qa=function(z,p,c){if(fm(p.N())&&p.getPresentingPlayerType()!==2){if(g.W7(c))return p.isFullscreen()&&!p.N().externalFullscreen&&p.toggleFullscreen(),c.preventDefault(),!0}else{var B=g.W7(c);B&&p.pauseVideo();g.N6(z,void 0,!0);B&&(g.fJ(z),c.preventDefault())}return!1}; ttx=function(){var z=DH_.includes("en")?{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,C:{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"}}]}:{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,C:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};z.B="ytp-subtitles-button-icon";return z}; JW=function(){return{j:"div",B:"ytp-spinner-container",J:[{j:"div",B:"ytp-spinner-rotator",J:[{j:"div",B:"ytp-spinner-left",J:[{j:"div",B:"ytp-spinner-circle"}]},{j:"div",B:"ytp-spinner-right",J:[{j:"div",B:"ytp-spinner-circle"}]}]}]}}; Ma=function(z){if(document.createRange){var p=document.createRange();p&&(p.selectNodeContents(z),z=window.getSelection())&&(z.removeAllRanges(),z.addRange(p))}}; hW=function(z){var p=z.Y("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Xf.call(this,p,g.YM.GF);var c=this;this.T=z;this.W=!1;this.K=new g.B4(function(){g.Jn(c.element,"ytp-menuitem-highlighted")},0); this.QS=z.UP();this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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.subscribe("select",this.D,this);this.listen(mu,this.X);g.l(this,this.K)}; PK=function(z){HK.call(this,z);var p=this;this.W=!1;z.addEventListener("settingsMenuInitialized",function(){XtQ(p)}); z.addEventListener("highlightSettingsMenu",function(c){XtQ(p);var B=p.menuItem;c==="menu_item_cinematic_lighting"&&(g.Eo(B.element,"ytp-menuitem-highlighted"),g.Eo(B.element,"ytp-menuitem-highlight-transition-enabled"),B.K.start())}); q0(z,"updateCinematicSettings",function(c){p.updateCinematicSettings(c)})}; XtQ=function(z){z.menuItem||(z.menuItem=new hW(z.api),g.l(z,z.menuItem),z.menuItem.Bq(z.W))}; xHN=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"applicationvideodatachange",function(c,B){B=B.clipConfig;c==="dataloaded"&&B&&B.startTimeMs!=null&&B.endTimeMs!=null&&p.api.setLoopRange({startTimeMs:Math.floor(Number(B.startTimeMs)),endTimeMs:Math.floor(Number(B.endTimeMs)),postId:B.postId,type:"clips"})})}; AW=function(z){HK.call(this,z);this.events=new g.or(z);g.l(this,this.events);q0(z,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));q0(z,"setCreatorEndscreenHideButton",this.W.bind(this))}; OB=function(z,p,c,B){Xf.call(this,"Stable Volume",g.YM.oQ);g.Eo(this.element,"ytp-drc-menu-item");this.QS=z.UP();this.X=p;this.W=c;this.hasDrcAudioTrack=B;z.addEventListener("videodatachange",this.K.bind(this));z.Y("mta_drc_mutual_exclusion_removal")&&this.Z(z,"onPlaybackAudioChange",this.K);z=this.W()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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.subscribe("select",this.D,this);xM(this,z);this.QS.nB(this)}; w1=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);z.Y("html5_show_drc_toggle")&&z.addEventListener("settingsMenuInitialized",function(){p.menuItem||(p.menuItem=new OB(p.api,p.setDrcUserPreference.bind(p),p.getDrcUserPreference.bind(p),p.K.bind(p)),g.l(p,p.menuItem))}); q0(this.api,"setDrcUserPreference",function(B){p.setDrcUserPreference(B)}); q0(this.api,"getDrcUserPreference",function(){return p.getDrcUserPreference()}); q0(this.api,"hasDrcAudioTrack",function(){return p.K()}); var c;this.W=(c=g.Fy("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; RL=function(z){HK.call(this,z);var p=this;this.W={};this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"videodatachange",function(){p.onVideoDataChange()}); this.events.Z(z,g.E5("embargo"),function(c){p.api.zx(!0);var B,H=(B=p.W[c.id])!=null?B:[];B=g.m(H);for(H=B.next();!H.done;H=B.next()){var T=H.value;p.api.hideControls();p.api.OI("auth",2,"This video isn't available in your current playback area",dB({embargoed:1,id:c.id,idx:c.K,start:c.start}));H=void 0;(T=(H=T.embargo)==null?void 0:H.onTrigger)&&p.api.AD("innertubeCommand",T)}})}; Exi=function(z,p){var c;return(c=p.onEnter)==null?void 0:c.some(z.K)}; qZ_=function(z,p){p=g.m(p);for(var c=p.next();!c.done;c=p.next()){c=c.value;var B=void 0,H=Number((B=c.playbackPosition)==null?void 0:B.utcTimeMillis)/1E3,T=void 0;B=H+Number((T=c.duration)==null?void 0:T.seconds);T="embargo_"+H;z.api.addUtcCueRange(T,H,B,"embargo",!1);c.onEnter&&(z.W[T]=c.onEnter.filter(z.K))}}; Sk=function(z){HK.call(this,z);var p=this;this.W=[];this.events=new g.or(z);g.l(this,this.events);q0(z,"addEmbedsConversionTrackingParams",function(c){p.api.N().s_&&p.addEmbedsConversionTrackingParams(c)}); this.events.Z(z,"veClickLogged",function(c){p.api.hasVe(c)&&(c=V$(c.visualElement.getAsJspb(),2),p.W.push(c))})}; Jhu=function(z){HK.call(this,z);q0(z,"isEmbedsShortsMode",function(){return z.isEmbedsShortsMode()})}; MtV=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"initialvideodatacreated",function(c){Wt(dU(),16623);p.W=g.Wu();var B=z.N().Hf&&!c.LN;if(rG(c)&&B){Wt(dU(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var H,T=(H=c.getWatchNextResponse())==null?void 0:H.trackingParams;T&&Ck(T)}if(c.getPlayerResponse()){var b;(c=(b=c.getPlayerResponse())==null?void 0:b.trackingParams)&&Ck(c)}}else Wt(dU(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(b=(T=c.getEmbeddedPlayerResponse())==null?void 0:T.trackingParams)&&Ck(b)}); this.events.Z(z,"loadvideo",function(){Wt(dU(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:p.W})}); this.events.Z(z,"cuevideo",function(){Wt(dU(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:p.W})}); this.events.Z(z,"largeplaybuttonclicked",function(c){Wt(dU(),27240,c.visualElement)}); this.events.Z(z,"playlistnextbuttonclicked",function(c){Wt(dU(),27240,c.visualElement)}); this.events.Z(z,"playlistprevbuttonclicked",function(c){Wt(dU(),27240,c.visualElement)}); this.events.Z(z,"playlistautonextvideo",function(){Wt(dU(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; $M=function(z,p){g.e.call(this);var c=this;this.W=null;this.D=p;p=[];for(var B=0;B<=100;B++)p.push(B/100);p={threshold:p,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(H){H=H[H.length-1];typeof H.isVisible==="undefined"?document.visibilityState==="visible"&&H.isIntersecting&&H.intersectionRatio>0?c.W=H.intersectionRatio:document.visibilityState==="hidden"?c.W=0:c.W=null:c.W=H.isVisible?H.intersectionRatio:0;typeof c.D==="function"&&c.D(c.W)},p): null)&&this.K.observe(z)}; mHV=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"applicationInitialized",function(){YZV(p)})}; YZV=function(z){var p=z.api.getRootNode(),c,B=z.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((c=p.parentElement)==null?void 0:c.parentElement)||p:p;z.W=new $M(B,function(H){H!=null&&(z.api.N().Iu=H,z.api.N().Vy="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.l(z,z.W);z.events.Z(z.api,"videoStatsPingCreated",function(H){var T=z.W;T=T.W==null?null:Math.round(T.W*100)/100;H.inview=T!=null?T:void 0;T=z.api.getPlayerSize();if(T.height>0&&T.width>0){T=[Math.round(T.width),Math.round(T.height)];var b=g.p8();b>1&&T.push(b);T=T.join(":")}else T=void 0;H.size=T})}; hLD=function(z){var p;return((p=((z==null?void 0:z.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:p.timeCounterRenderer)||null}; Ke=function(z){g.Q.call(this,{j:"div",LH:["ytp-player-content","ytp-iv-player-content"],J:[{j:"div",B:"ytp-free-preview-countdown-timer",J:[{j:"span",F3:"{{label}}"},{j:"span",B:"ytp-free-preview-countdown-timer-separator",F3:"\u2022"},{j:"span",F3:"{{duration}}"}]}]});this.api=z;this.W=null;this.D=this.K=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; AhW=function(z,p){z.W||(z.K=p,z.D=(0,g.y2)(),z.W=new g.zV(function(){PjQ(z)},null),PjQ(z))}; PjQ=function(z){var p=Math,c=p.round,B=Math.min((0,g.y2)()-z.D,z.K);p=c.call(p,(z.K-B)/1E3);z.updateValue("duration",St({seconds:p}));p<=0&&z.W?ud(z):z.W&&z.W.start()}; ud=function(z){z.W&&(z.W.dispose(),z.W=null)}; OkQ=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"basechromeinitialized",function(){p.W=new Ke(z);g.l(p,p.W);g.F7(z,p.W.element,4);p.W.hide()})}; aL=function(z){g.Q.call(this,{j:"button",LH:["ytp-fullerscreen-edu-button","ytp-button"],J:[{j:"div",LH:["ytp-fullerscreen-edu-text"],F3:"Scroll for details"},{j:"div",LH:["ytp-fullerscreen-edu-chevron"],J:[{j:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{j:"path",C:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],C:{"data-priority":"1"}});this.nH=z;this.fade=new g.Da(this,250,void 0,100);this.K=this.W=!1;z.createClientVe(this.element,this,61214);g.l(this, this.fade);this.Z(z,"fullscreentoggled",this.Bq);this.Z(z,"presentingplayerstatechange",this.Bq);this.listen("click",this.onClick);this.Bq()}; Ze=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);q0(this.api,"updateFullerscreenEduButtonSubtleModeState",function(B){p.updateFullerscreenEduButtonSubtleModeState(B)}); q0(this.api,"updateFullerscreenEduButtonVisibility",function(B){p.updateFullerscreenEduButtonVisibility(B)}); var c=z.N();z.Y("external_fullscreen_with_edu")&&c.externalFullscreen&&fm(c)&&c.controlsType==="1"&&this.events.Z(z,"standardControlsInitialized",function(){p.W=new aL(z);g.l(p,p.W);z.ew(p.W)})}; wtY=function(z){g.Q.call(this,{j:"div",B:"ytp-gated-actions-overlay",J:[{j:"div",B:"ytp-gated-actions-overlay-background",J:[{j:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{j:"button",LH:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],C:{"aria-label":"Close"},J:[g.ab()]},{j:"div",B:"ytp-gated-actions-overlay-bar",J:[{j:"div",B:"ytp-gated-actions-overlay-text-container",J:[{j:"div",B:"ytp-gated-actions-overlay-title",F3:"{{title}}"},{j:"div",B:"ytp-gated-actions-overlay-subtitle", F3:"{{subtitle}}"}]},{j:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var p=this;this.api=z;this.background=this.jp("ytp-gated-actions-overlay-background");this.K=this.jp("ytp-gated-actions-overlay-button-container");this.W=[];this.Z(this.jp("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){p.api.AD("onCloseMiniplayer")}); this.hide()}; SZx=function(z,p){var c=0;c=0;for(var B={};c H&&(H=D.width,T="url("+D.url+")")}c.background.style.backgroundImage=T;SZx(c,B.actionButtons||[]);c.show()}else c.hide()}); g.F7(this.api,this.W.element,4)}; Le=function(z){HK.call(this,z);var p=this;M0(this.api,"getSphericalProperties",function(){return p.getSphericalProperties()}); M0(this.api,"setSphericalProperties",function(){p.setSphericalProperties.apply(p,g.A(g.L_.apply(0,arguments)))}); J1(this.api,"getSphericalProperties",function(){return p.api.getPresentingPlayerType()===2?{}:p.getSphericalProperties()}); J1(this.api,"setSphericalProperties",function(){var c=g.L_.apply(0,arguments);p.api.getPresentingPlayerType()!==2&&p.setSphericalProperties.apply(p,g.A(c))})}; d1=function(z){HK.call(this,z);q0(z,"createClientVe",this.createClientVe.bind(this));q0(z,"createServerVe",this.createServerVe.bind(this));q0(z,"destroyVe",this.destroyVe.bind(this));q0(z,"hasVe",this.hasVe.bind(this));q0(z,"logClick",this.logClick.bind(this));q0(z,"logVisibility",this.logVisibility.bind(this));q0(z,"setTrackingParams",this.setTrackingParams.bind(this))}; WK=function(z,p,c,B){function H(b){var D=!(b.status!==204&&b.status!==200&&!b.response),t;b={succ:""+ +D,rc:b.status,lb:((t=b.response)==null?void 0:t.byteLength)||0,rt:((0,g.y2)()-T).toFixed(),shost:g.nf(z),trigger:p};K7v(b,z);c&&c(b);B&&!D&&B(new W2("pathprobe.net",b))} var T=(0,g.y2)();g.dS(z,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:H,onTimeout:H})}; K7v=function(z,p){var c;((c=window.performance)==null?0:c.getEntriesByName)&&(p=performance.getEntriesByName(p))&&p.length&&(p=p[0],z.pedns=(p.domainLookupEnd-p.startTime).toFixed(),z.pecon=(p.connectEnd-p.domainLookupEnd).toFixed(),z.perqs=(p.requestStart-p.connectEnd).toFixed(),uGY&&(z.perqsa=p.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; yx=function(z,p){this.Tl=z;this.policy=p;this.playbackRate=1}; axW=function(z,p){var c=Math.min(2.5,R6(z.Tl));z=Ce(z);return p-c*z}; ek=function(z,p,c,B,H){H=H===void 0?!1:H;if(z.policy.Ws)return Math.ceil(z.policy.Ws*p);z.policy.OM&&(B=Math.abs(B));B/=z.playbackRate;var T=1/Km(z.Tl);c=Math.max(.9*(B-3),R6(z.Tl)+z.Tl.K.W*T)/T*.8/(p+c);c=Math.min(c,B);z.policy.PH>0&&H&&(c=Math.max(c,z.policy.PH));return ZkY(z,c,p)}; ZkY=function(z,p,c){return Math.ceil(Math.max(Math.max(z.policy.v0,z.policy.cT*c),Math.min(Math.min(z.policy.OH,31*c),Math.ceil(p*c))))||z.policy.v0}; L7i=function(z,p,c){c=ek(z,p.W.info.l8,c.W.info.l8,0);var B=R6(z.Tl)+c/Km(z.Tl);return Math.max(B,B+z.policy.Nv-c/p.W.info.l8)}; Ce=function(z){return Km(z.Tl,!z.policy.hA,z.policy.EZ)}; ld=function(z){return Ce(z)/z.playbackRate}; vK=function(z,p,c){var B=z.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],H=z.policy.playbackStartPolicy.startMinReadaheadPolicy||[];z=Infinity;p=g.m(p&&B.length>0?B:H);for(B=p.next();!B.done;B=p.next())B=B.value,H=B.minReadaheadMs||0,c<(B.minBandwidthBytesPerSec||0)||z>H&&(z=H);return z0&&(this.K=c.rd)}; CjB=function(z,p,c,B,H){if(!B.info.L){if(c.length===0)c.push(B);else{var T;(z=(T=c.pop())==null?void 0:g.i2(T,B))?c.push(z):c.push(B)}return H}var b;(c=(b=c.pop())==null?void 0:g.i2(b,B))||(c=B);if(z.policy.wU&&c.info.K)return z.logger&&z.logger({incompleteSegment:c.info.hH()}),H;b=z.LW(c);B=b.formatId;H=b.pH;c=b.clipId;T=b.EG;b=b.startTimeMs;if(!z.policy.SK&&z.policy.K&&z.gU){var D=jk(z.gU,c);b+=D}B={clipId:c,formatId:B,startTimeMs:b,durationMs:T,jA:H,Ma:H};H=dHW(p,B.startTimeMs);(c=H>=0?p[H]:null)&& W7Q(z,c,B)?B=c:(H+=1,p.splice(H,0,B));c=0;for(T=H+1;T=X+b.K?b=!0:x+b.K=0?z:-z-2}; eLY=function(z,p){if(z.oR){var c=z.oR.UR();if(c.length!==0){if(z.D&&p){var B=z.D,H=B.info.X;!Jw(c,H)&&B.info.S>0&&(0,g.y2)()-z.V<5E3&&(z.logger&&z.logger({dend:B.info.hH()}),c=RXu(c,H,H+.01))}z.policy.gp&&z.logger&&z.logger({cbri:""+z.W});B=[];for(var T=H=0;H=b){var x=0;if(z.gU){var E=Ff(z.gU,t*1E3);E&&(x=E.Xe/1E3)}E=Object.assign({},z.yS[T]);var q=z.xA.D.get(Li(z.yS[T].formatId)), J=Math.max(t,b);b=q.index.Hn(J+z.K/1E3-x);t=q.index.getStartTime(b)+x;var M=b+ +(Math.abs(t-J)>z.K/1E3);J=M+z.X;M=(q.index.getStartTime(M)+x)*1E3;T!==z.W||p?(E.jA=J,E.startTimeMs=M):(z.logger&&z.logger({pEvict:"1",og:E.startTimeMs,adj:t*1E3}),E.jA=b+z.X,E.startTimeMs=t*1E3);b=void 0;t=((b=z.D)==null?void 0:b.info.duration)||11;T===z.W&&Dz.K/1E3);b=t+z.X;x=(q.index.u$(t)+x)*1E3;E.Ma=b;E.durationMs=x-E.startTimeMs;E.jA<=E.Ma&&B.push(E)}Xz.K)return!1;if(yhi(z,p.formatId,c.formatId))return p.durationMs=Math.max(B,H)-p.startTimeMs,p.Ma=Math.max(p.Ma,c.Ma),!0;if(Math.abs(p.startTimeMs-c.startTimeMs)<=z.K){if(p.durationMs>c.durationMs+z.K){z=p.formatId;var T=p.jA,b=p.Ma;p.formatId=c.formatId;p.durationMs=c.durationMs;p.jA=c.jA;p.Ma=c.Ma;c.formatId=z;c.startTimeMs=H;c.durationMs=B-H;c.jA=T;c.Ma=b;return!1}p.formatId=c.formatId;return!0}B> c.startTimeMs&&(p.durationMs=c.startTimeMs-p.startTimeMs,p.clipId===c.clipId&&(p.Ma=c.jA-1));return!1}; yhi=function(z,p,c){return p.itag!==c.itag||p.xtags!==c.xtags?!1:z.xA.La||p.lmt===c.lmt}; IxB=function(z,p,c){if(z.logger){for(var B=[],H=0;H=0&&UB(z.audioTrack,z.W)>=0&&T?((z.videoTrack.L||z.audioTrack.L)&&z.z$.KH("iterativeSeeking",{status:"done",count:z.seekCount}),z.videoTrack.L=!1,z.audioTrack.L=!1):B&&g.Mg(function(){if(z.K||!z.policy.RR)g1(z);else{var b=p.startTime,D=p.duration;if(!z.policy.V){var t=c?z.videoTrack.L:z.audioTrack.L,X=z.videoTrack.V!==-1&&z.audioTrack.V!==-1,x=z.W>=b&&z.W432E3&&XSY(z.xA);z.D&&(H=z.D,z.D=0);g.Mg(function(){z.policy.V||Gn(z,H,102)}); z.z$.KH("initManifestlessSync",{st:H,ost:H+z.z$.e_(),a:z.audioTrack.V,v:z.videoTrack.V});z.X&&(z.X.resolve(H+.1),z.X=null);z.policy.V&&Gn(z,H,102)}}}; zh=function(z,p){var c=this;this.e9=z;this.requestNumber=++gx_;this.W=this.now();this.S=this.U=NaN;this.G=this.W;this.D=this.gt=this.L=0;this.V=this.W;this.Zt=this.Dt=this.YA=this.Wy=this.EW=this.T$=this.K=this.X=0;this.MZ=this.isActive=!1;this.FQ=this.sH=0;this.Xg={h20:function(){return c.b_}}; this.Tl=p.Tl;this.snapshot=gNu(this.Tl);this.policy=this.Tl.K;this.f9=!!p.f9;this.Lm=p.Lm;this.Fe=p.Fe||0;this.OF=p.OF||0;p.zQ&&(this.Ra=new JN);var B;this.b_=(B=p.b_)!=null?B:!1;this.f9||UPD(this.Tl)}; GaQ=function(z){z.YA=Math.max(z.YA,z.L-z.EW);z.Dt=Math.max(z.Dt,z.G-z.Wy);z.T$=0}; pR=function(z,p,c){shD(z.Tl,p);z.Ra&&(z.Ra.add(Math.ceil(p)-Math.ceil(z.G)),z.Ra.add(Math.max(0,Math.ceil(c/1024)-Math.ceil(z.L/1024))));var B=p-z.G,H=c-z.L;z.gt=H;z.Zt=Math.max(z.Zt,H/(B+.01)*1E3);z.G=p;z.L=c;z.T$&&c>z.T$&&GaQ(z)}; cm=function(z,p){z.url=p;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Bm=function(z,p){zh.call(this,z,p);this.WM=this.Zw=!1;this.fH=this.tD=Infinity;this.rA=NaN;this.RR=!1;this.CH=NaN;this.Ca=this.i8=this.OH=0;this.gH=p.gH||1;this.w9=p.w9||this.gH;this.zn=p.zn;this.pH=p.pH;this.nt=p.nt;NUQ(this);this.R0(this.W);this.UH=(this.CH-this.W)/1E3}; fxY=function(z){var p=z.i8||z.OH;return p?z.snapshot.delay+Math.min(z.OF,(z.S-z.U)/1E3)+p:z.UH}; Hm=function(z,p,c){if(!z.f9){p=Math.max(p,.01);var B=z.Fe?Math.max(p,c/z.Fe):p,H=z.Tl.K.D;H&&(B=p,z.Fe&&(B=Math.max(p,c/z.Fe*H)));AN(z.Tl,p,c,B)}}; ztf=function(z){return(z.V-z.W)/1E3}; NUQ=function(z){z.rA=z.W+z.snapshot.delay*1E3;z.RR=!1}; ic=function(z,p){if(z.zn&&z.pH!==void 0&&z.nt!==void 0){var c=Math,B=c.min,H=z.tD;var T=z.zn;var b=z.W;if(piD(T,z.pH))T=p;else{var D=0;T.L2&&(D=.2);T=b+(T.OF+D)*1E3}z.tD=B.call(c,H,T);c=Math;B=c.min;H=z.fH;T=z.zn;b=z.W;D=cPY(T,z.pH,z.nt);D!==2&&(p=D?p:b+T.OF*1E3,T.L2&&(p+=T.OF*1E3));z.fH=B.call(c,H,p);z.tD<=z.W?NUQ(z):(z.rA=z.tD,z.RR=!0)}}; BMD=function(z,p){if(z.n6(p,1)){var c=z.getUint8(p);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!z.n6(p,c))return[-1,p];if(c===1)z=z.getUint8(p++);else if(c===2)c=z.getUint8(p++),z=z.getUint8(p++),z=(c&63)+64*z;else if(c===3){c=z.getUint8(p++);var B=z.getUint8(p++);z=z.getUint8(p++);z=(c&31)+32*(B+256*z)}else if(c===4){c=z.getUint8(p++);B=z.getUint8(p++);var H=z.getUint8(p++);z=z.getUint8(p++);z=(c&15)+16*(B+256*(H+256*z))}else c=p+1,z.focus(c),ZS(z,c,4)?z=dAY(z).getUint32(c-z.fl,!0):(B= z.getUint8(c+2)+256*z.getUint8(c+3),z=z.getUint8(c)+256*(z.getUint8(c+1)+256*B)),p+=5;return[z,p]}; Th=function(z){this.e9=z;this.W=new $p}; bc=function(z,p){this.info=z;this.callback=p;this.state=1;this.q8=this.qL=!1;this.qn=null}; HSE=function(z){return g.WR(z.info.b8,function(p){return p.type===3})}; VF=function(z,p,c,B){var H=this;B=B===void 0?{}:B;this.policy=p;this.e9=c;this.status=0;this.W=new $p;this.K=0;this.qZ=this.X=this.D=!1;this.xhr=new XMLHttpRequest;this.xhr.open(B.method||"GET",z);if(B.headers)for(z=B.headers,p=g.m(Object.keys(z)),c=p.next();!c.done;c=p.next())c=c.value,this.xhr.setRequestHeader(c,z[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return H.hL()}; this.xhr.onload=function(){return H.onDone()}; this.xhr.onerror=function(){return H.onError()}; this.xhr.fetch(function(T){H.W.append(T);H.K+=T.length;T=(0,g.y2)();H.e9.s0(T,H.K)},function(){},B.body||null)}; iSi=function(z,p){this.K=(new TextEncoder).encode(z);this.W=(new TextEncoder).encode(p)}; blD=function(z,p){var c,B,H;return g.L(function(T){if(T.W==1){if(!p)return T.return(p);c=DO.Il();B=new g.ZG(z.K);return g.a(T,B.encrypt(p,z.W),2)}H=T.K;DO.wH("woe",c,Math.ceil(p.byteLength/16));return T.return(H)})}; xWv=function(z,p){var c,B,H;return g.L(function(T){if(T.W==1){if(!p)return T.return(p);c=DO.Il();B=new g.ZG(z.K);return g.a(T,B.decrypt(p,z.W),2)}H=T.K;DO.wH("wod",c,Math.ceil(p.byteLength/16));return T.return(H)})}; bSS=function(z,p){var c=this;this.W=z;this.e9=p;this.loaded=this.status=0;this.error="";z=yz(this.W.get("range")||"");if(!z)throw Error("bad range");this.range=z;this.K=new $p;TME(this).then(function(){c.e9.Gc()},function(B){c.error=""+B||"unknown_err"; c.e9.Gc()})}; TME=function(z){var p,c,B,H,T,b,D,t,X,x,E,q,J,M,P;return g.L(function(O){if(O.W==1){z.status=200;p=z.W.get("docid");c=cj(z.W.get("fmtid")||"");B=z.W.get("lmt")||"0";H=+(z.W.get("csz")||0);if(!p||!c||!H)throw Error("Invalid local URL");z.W.get("ck")&&z.W.get("civ")&&(T=new iSi(z.W.get("ck"),z.W.get("civ")));b=z.range;D=Math.floor(b.start/H);t=Math.floor(b.end/H);X=D}if(O.W!=5)return X<=t?g.a(O,ESW(p,c,B,X,T),5):O.hD(0);x=O.K;if(x===void 0)throw Error("invariant: data is undefined");E=X*H;q=(X+1)*H; J=Math.max(0,b.start-E);M=Math.min(b.end+1,q)-(J+E);P=new Uint8Array(x.buffer,J,M);z.K.append(P);z.loaded+=M;z.loaded0&&(H.W=Math.min(H.W+b,10),H.K=T);H.W>0?(H.W--,H=!0):H=!1;if(H)typeof B==="function"&&(B=B()),console.log("plyr."+p,B);else{var D;B=((D=MIf.get(p))!=null?D:0)+1;MIf.set(p,B);B%100===1&&console.warn("plyr","plyr."+p+" is chatty, dropping logs.")}}}; JPN=function(){this.W=10;this.K=Date.now()}; El=function(z,p){g.e.call(this);var c=this;this.policy=z;this.b8=p;this.K=0;this.W=null;this.J8=[];this.D=null;this.Xg={iU:function(){return c.b8}}; this.b8.length===1||g.WR(this.b8,function(B){return!!B.range})}; qn=function(z,p,c){z.W&&(Kb(z.W,p),p=z.W,z.W=null);for(var B=0,H=0,T=g.m(z.b8),b=T.next();!b.done;b=T.next())if(b=b.value,b.range&&B+b.D<=z.K)B+=b.D;else{p.getLength();if(vE(b)&&!c&&z.K+p.getLength()-H=400?(z.lastError="net.badstatus",!0):(H===void 0?0:H)?(z.lastError="ump.spsrejectfailure",!0):c||B!==void 0&&B?!1:(z.lastError=p===204?"net.nocontent":"net.connect",!0)}; Pm=function(z,p){if(z.policy.OD)return!1;var c=p.getResponseHeader("content-type"),B=p.QM();z=!B||B<=z.policy.fJ;return(!p.SX()||!c||c.indexOf("text/plain")!==-1)&&z}; OSx=function(z,p){var c="";p=p.Ei();p.getLength()<=z.policy.fJ&&(c=APB(z,p.S1()));return c}; APB=function(z,p){var c=WY(p);return bD(c)?(z.logger.debug(function(){return"Redirecting to "+c}),c):""}; Mn=function(z){return SM(z.D,ZW(z.vU.base))}; wiB=function(z){var p=z.timing.lF();p.shost=ZW(z.vU.base);return p}; RtY=function(z,p){return(z==null?void 0:z.maxWidth)>(p==null?void 0:p.maxWidth)||(z==null?void 0:z.maxHeight)>(p==null?void 0:p.maxHeight)}; SJD=function(z,p){for(var c=g.m(p.keys()),B=c.next();!B.done;B=c.next())if(B=p.get(B.value),B.length!==0){g.ty(B,function(D,t){return t.maxFramerate-D.maxFramerate}); for(var H=[B[0]],T=0,b=1;bz.W||c.push(B)}return c}; Am=function(z,p,c){var B=uKi[z]||[];c.Y("html5_shorts_onesie_mismatched_fix")&&(B=aWu[z]||[]);p.push.apply(p,g.A(B));c.Y("html5_early_media_for_drm")&&p.push.apply(p,g.A(ZSY[z]||[]))}; etB=function(z,p){var c=g.qk(z),B=z.N(),H=B.L;B=B.Y("html5_shorts_onesie_mismatched_fix");var T=z.Jo();if(B){if(!H.X){if(T&&Ol)return Ol;if(wA)return wA}}else if(wA&&!H.X)return wA;var b=[],D=[],t={},X=R3.concat(LpW);B&&(X=R3.concat(dJQ));z.Y("html5_early_media_for_drm")&&(X=X.concat(Wpf),z.Y("allow_vp9_1080p_mq_enc")&&X.push(yPW));var x=[].concat(g.A(CFD));if(c.D)for(var E=0;Ec.xw)){var P=g.P3(z.N().experiments,"html5_drm_byterate_soft_cap");P>0&&OJB(M)&&M.l8>P||(E?(b.push(J),Am(J,b,z)):(M=Pi(c,M,H),M===!0?(E=!0,b.push(J),Am(J,b,z)):t[J]=M))}}}x=g.m(x);for(X=x.next();!X.done;X=x.next())for(X=g.m(X.value),E=X.next();!E.done;E= X.next())if(E=E.value,(q=hmS(E))&&q.audio&&(z.Y("html5_onesie_51_audio")||!c6(q)&&!B6(q)))if(q=Pi(c,q,H),q===!0){D.push(E);Am(E,D,z);break}else t[E]=q;c.K&&p("orfmts",t);if(B)return H.X&&(H.X=!1,Ol=wA=void 0),T?Ol={video:b,audio:D}:wA={video:b,audio:D};wA={video:b,audio:D};H.X=!1;return wA}; g.IWV=function(z,p,c){var B=c.L,H=[],T=[],b=c.Y("html5_shorts_onesie_mismatched_fix");z=z.Jo();var D=R3.concat(LpW);b&&(D=R3.concat(dJQ));c.Y("html5_early_media_for_drm")&&(D=D.concat(Wpf),c.Y("allow_vp9_1080p_mq_enc")&&D.push(yPW));var t=[].concat(g.A(CFD));if(p.D)for(var X=0;X0&&OJB(E)&&E.l8>q)&&Pi(p,E,B)===!0){H.push({videoCodec:lW_[gB[x]],maxWidth:E.video.width,maxHeight:E.video.height,maxFramerate:E.video.fps});break}}}}b=g.m(t);for(z=b.next();!z.done;z=b.next())for(z=g.m(z.value),t=z.next();!t.done;t=z.next())if(t=t.value,(D=hmS(t))&&D.audio&&(c.Y("html5_onesie_51_audio")||!c6(D)&&!B6(D))&&Pi(p,D,B)=== !0){T.push({audioCodec:vtE[gB[t]],numChannels:D.audio.numChannels});break}return{videoFormatCapabilities:H,audioFormatCapabilities:T}}; S8=function(z){var p={},c=z.cq,B=z.QI,H=c.getVideoData(),T=Qg(0),b=c.getPlayerSize(),D=c.getVisibilityState();T&&(p.Iw8=T,p.lastManualDirection=WKx(),T=fqx()||0,T>0&&(T=(B.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.y2)())-T,B.Y("html5_use_date_now_for_local_storage")?T>0&&(p.timeSinceLastManualFormatSelectionMs=T):p.timeSinceLastManualFormatSelectionMs=T));T=B.Y("html5_use_streamer_bandwidth_for_low_latency_live")&&H.isLowLatencyLiveStream;if(B.schedule.MZ&&!T){var t;T=B.Y("html5_disable_bandwidth_cofactors_for_sabr_live")? !((t=z.Nb)==null||!t.hA):!1;p.DL=Km(B.schedule,!T)}t=g.p8();var X=g.rB.medium,x=Math.floor(X*16/9);T=H.Jo()?X:x;X=H.Jo()?x:X;p.fK=Math.max(b.width*t,T);p.LK=Math.max(b.height*t,X);p.visibility=D;p.jk3=y0();p.cG=c.Gf()*1E3;b=z.cq.xz(!0);var E,q,J,M,P,O;p.dn0={defaultPolicy:(b==null?void 0:(E=b.AM)==null?void 0:E.W)||0,smooth:(b==null?void 0:(q=b.Jd$)==null?void 0:q.W)||0,visibility:(b==null?void 0:(J=b.AnI)==null?void 0:J.W)||0,zI:(b==null?void 0:(M=b.mX)==null?void 0:M.W)||0,performance:(b==null? void 0:(P=b.xV)==null?void 0:P.W)||0,speed:(b==null?void 0:(O=b.bt0)==null?void 0:O.W)||0};var R;p.lN8=(b==null?void 0:(R=b.Ua3)==null?void 0:R.W)||0;B.Y("html5_enable_sabr_drm_hd720p")&&z.qO&&z.qO.length>0&&(p.qO=z.qO);B.Y("html5_enable_sabr_drm_hd720p")&&z.sabrLicenseConstraint&&(p.sabrLicenseConstraint=z.sabrLicenseConstraint);if(B.Y("html5_onesie_media_capabilities")||B.Y("html5_enable_server_format_filter"))p.yV=3;B.Y("html5_onesie_audio_only_playback")&&Xl(H)&&(p.yV=1);var K;((K=z.Nb)==null? 0:K.WM)&&z.zX3&&(p.yV=p.yV===void 0?7:p.yV|4);E=H.wJ?H.wJ:g.qk(H);B.Y("html5_onesie_media_capabilities")&&(p.mediaCapabilities=g.IWV(H,E,B));var Z;if((Z=z.Nb)==null?0:Z.W&&Z.vO){J=B.L;Z=[];q=[];M=new Map;B.Y("html5_ssap_update_capabilities_on_change")?(J.MZ||jhN(J),P=J.MZ||[]):P=Array.from(J.W.values());P=g.m(P);for(O=P.next();!O.done;O=P.next())R=O.value,R.aI?q.push({audioCodec:vtE[R.yI],numChannels:R.numChannels,spatialCapabilityBitmask:juS[R.yI]}):(K=lW_[R.yI],O={videoCodec:K,maxWidth:R.maxWidth|| 0,maxHeight:R.maxHeight||0,maxFramerate:R.maxFramerate||0,is10BitSupported:R.lc||!1},R.maxBitrateBps&&(O.maxBitrateBps=R.maxBitrateBps,b=xW(R.itag),D=void 0,((D=b)==null?0:D.video)&&Pi(E,b,J)===!0&&(b=b.l8*8,b>O.maxBitrateBps&&(O.maxBitrateBps=b))),R=K+"_"+R.lc,K=M.get(R)||[],K.push(O),M.set(R,K));Z=SJD(Z,M);J={};B.Y("html5_ssff_denylist_opus_low")&&(J={itagDenylist:[249,350]});p.mediaCapabilities={videoFormatCapabilities:Z,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:J}}var W; if((W=z.Nb)==null?0:W.W){p.Om=E.Om;var v;p.xw=(v=z.Nb)==null?void 0:v.xw}B.wJ&&(p.kq=B.wJ);p.Wk=z.BK;p.YC=z.YC;p.rT=z.rT;p.Tb=z.Tb;if(B.Y("html5_fix_time_since_last_seek_reporting")?z.lU!==void 0:z.lU)p.TLH=(0,g.y2)()-z.lU;z.isPrefetch&&B.Y("html5_report_prefetch_requests")&&(p.isPrefetch=!0);HW||(p.Us0=!0);W=R6(B.schedule)*1E3;W>0&&(p.r$=W);var zY;((zY=z.Nb)==null?0:zY.GG)&&z.qy&&z.qy0?U:B.schedule.interruptions[0]||0);var HD;if((HD=z.Nb)==null?0:HD.Zw)p.Wg=z.Wg;var VW;((VW=z.Nb)==null?0:VW.Rn)&&H.B0&&(p.audioTrackId=H.B0);var f;if((f=z.Nb)==null?0:f.fh)if(z=hXx())p.detailedNetworkType=FpY[z]||FpY.other;return p}; $2=function(z,p,c,B,H,T,b){var D={};p&&(D.YQ=p);if(!z)return D;D.playbackCookie=c==null?void 0:c.playbackCookie;H&&(D.T8=H);D.ol=[];D.ju=[];if(b==null?0:b.size)for(p=g.m(b.values()),c=p.next();!c.done;c=p.next())D.ju.push(c.value);if(z.sabrContextUpdates.size>0)for(p=g.m(z.sabrContextUpdates.values()),c=p.next();!c.done;c=p.next())ot_(D,c.value,B);Ee(z)&&!g.pT(z)&&z.Y("html5_enable_sabr_request_pipelining")&&T&&ot_(D,T,B);z.nZ&&(D.Ztq=z.nZ);B=z.N().W;D.clientInfo={clientName:ntB[B.c.toUpperCase()]|| 0};B.cbrand&&(D.clientInfo.deviceMake=B.cbrand);B.cmodel&&(D.clientInfo.deviceModel=B.cmodel);B.cver&&(D.clientInfo.clientVersion=B.cver);B.cos&&(D.clientInfo.osName=B.cos);B.cosver&&(D.clientInfo.osVersion=B.cosver);B=z.N();B.Y("html5_sabr_enable_server_xtag_selection")&&B.RR&&(D.clientInfo.hl=B.RR);z.Um&&(D.Um=z.Um);return D}; ot_=function(z,p,c){var B=p.type||0;(c==null?0:c.has(B))?z.ju.push(p):z.ol.push(B)}; Qx=function(z,p,c,B,H,T){var b=T===void 0?{}:T;var D=b.mq===void 0?[]:b.mq;var t=b.z6===void 0?!1:b.z6;var X=b.Uc===void 0?0:b.Uc;var x=b.poToken===void 0?"":b.poToken;var E=b.Ce===void 0?void 0:b.Ce;var q=b.In===void 0?"":b.In;var J=b.Ct===void 0?0:b.Ct;var M=b.dL===void 0?new Uint8Array(0):b.dL;var P=b.Vs===void 0?!1:b.Vs;T=b.KQ===void 0?0:b.KQ;b=b.YQ===void 0?void 0:b.YQ;bc.call(this,p,H);var O=this;this.policy=z;this.logger=new g.Xk("dash/request");this.L8=this.ZJ=0;this.pF=!1;this.cW=this.Nk= null;this.by=!1;this.dL=this.Ct=null;this.OC=this.wu=!1;this.OS=null;this.KQ=this.Et=0;this.UZ=!1;this.Xg={Hy:function(K){O.Hy(K)}, Psi:function(){return O.qn}, jvi:function(K){O.qn=K}, QvD:function(K){O.ZJ=K}, tDi:function(K){O.rU.lastError=K}, Fl:function(){return O.xhr}}; this.timing=new Bm(this,c);this.z6=t;this.Ct=J;this.dL=M;this.vU=g.sV(this.info,this.policy,B);this.vU.set("rn",this.sP().toString());this.vU.set("rbuf",(X*1E3).toFixed().toString());this.z6&&this.vU.set("smb","1");this.policy.dh&&x&&this.vU.set("pot",x);q&&this.vU.set("bbs",q);this.policy.useUmp&&!LS(this.vU.base)&&(this.qB=new Th(this),this.vU.set("ump","1"),this.vU.set("srfvp","1"));if(z=this.policy.wX?this.policy.P3&&!isNaN(this.info.nt)&&this.info.nt>this.policy.uV?!1:!0:!1)p=null,this.policy.bN&& this.policy.BV?p=[1]:P&&(p=[]),p!=null&&(this.policy.gQ&&p.push(2),this.vU.set("defsel",p.join(",")));this.rU=new Jm(this,this.policy,this.vU,this.info.j9,this.timing,this.logger,B,E);this.mq=D||null;this.q8=QuW(this);YJY(this.rU);B=void 0;if(this.policy.Ab||this.qB||this.policy.YA)B={method:"POST"},D=(0,g.KR)([120,0]),E={},this.policy.mG&&b&&(b=$2(void 0,b),E.fL=b),this.policy.Yo&&this.dL&&(E.videoPlaybackUstreamerConfig=this.dL),this.policy.YA&&(b=this.info.X)&&Object.assign(E,b),Object.keys(E).length> 0?B.body=g.q9(E,g.iF):B.body=D;if(this.Ct&&this.dL){this.vU.set("iwts","1");B={method:"POST"};b={Tb:this.Ct*1E3};var R;D=(R=this.info.X)==null?void 0:R.IH;R=g.q9({aJ:b,IH:D||void 0,videoPlaybackUstreamerConfig:this.dL},g.iF);B.body=R}try{this.xhr=tm(this.vU,this.policy.S,this.timing,z,B),this.rU.K.start(),T&&(this.kR=new g.B4(this.Fw,T,this),this.kR.start(T+(this.timing.Tl.S.Fu()||0)*1E3)),this.policy.wd&&cm(this.timing,this.BU()),this.logger.debug(function(){return"Sent, itag="+O.vU.get("itag")+ " seg="+O.info.b8[0].pH+" range="+O.vU.get("range")+" time="+Math.round(O.info.b8[0].X)+"-"+Math.round(g.UQ(O.info.b8).V)+" rtp="+(O.timing.Jj()-Date.now()).toFixed(0)}),g.Mg(function(){})}catch(K){rPY(this,K,!0)}}; QuW=function(z){if(!(UV(z.info)&&z.info.b_()&&z.policy.y4&&z.mq)||z.info.j9.K>=2||Qg()>0||!lDf())return!1;var p=z.vU.get("aitags");if(!p)return!1;p=cj(p).split(",");for(var c=[],B=g.m(z.mq),H=B.next();!H.done;H=B.next())H=H.value,g.Gv(p,H)&&c.push(H);if(!c.length)return!1;z.vU.set("altitags",g.pH(c.join(",")));return!0}; rPY=function(z,p,c){c=c===void 0?!1:c;g.Fr(p);z.rU.lastError="player.exception";z.errorMessage=p.name+"_"+p.message;c?g.Mg(function(){mJ(z.rU)}):mJ(z.rU)}; UJv=function(z,p){z.timing.MZ=!0;z.xhr.SX()&&z.timing.R6();if(z.policy.JH){var c;(c=z.kR)==null||c.stop()}qn(z.qn,p,!1)}; suE=function(z,p){z.info=p;if(z.qn){var c=z.qn;p=p.b8;(p.length!==c.b8.length||p.length0){p=g.m(p.b8);for(var c=p.next();!c.done;c=p.next()){var B=void 0;z+=((B=c.value.range)==null?void 0:B.length)||0}return z}if(p.xC.length>0)for(c=g.m(p.xC),B=c.next();!B.done;B=c.next())z+=B.value.FL||0;return z+p.XN}; CR=function(z,p){if(dA){var c=0;z=z.dU.get(p);if(z==null||!z.Ao)return 0;z=g.m(z.Ao.values());for(p=z.next();!p.done;p=z.next())c+=p.value.data.getLength();return c}return((c=z.dU.get(p))==null?void 0:c.J8.getLength())||0}; e8=function(z,p){z=z.dU.get(p);if(dA){if(z==null||!z.a4)return!1;p=z.Ao.size>0;return z.Ic.length>0||p}return!(z==null||!z.a4)&&!(z==null||!z.J8.getLength())}; zHi=function(z,p){var c=z.dU.get(p),B=fWN(z,p),H=!B&&!!c.bytesReceived;if(dA){var T;if((T=z.xA)==null?0:T.La){z=g.m(c.Ao.values());for(p=z.next();!p.done;p=z.next())if(!p.value.AS)return!1;return H}}else if(T=z.SO(p),H&&z.W&&T!==void 0)return T;return(H||c.bytesReceived===B)&&c.Qw+CR(z,p)===c.bytesReceived}; pEE=function(z,p,c){z.dU.set(p,{J8:new $p,Qw:0,bytesReceived:0,XN:0,D0:!1,QE:!1,SO:!1,aI:c,g6:[],b8:[],xC:[],a4:!1,Ao:new Map,c9:new Map,Ic:[]});z.logger.debug(function(){return"[initStream] formatId: "+p})}; cRY=function(z,p,c,B){c.b8.push.apply(c.b8,g.A(B));if(dA){c.c9.has(p)||c.c9.set(p,[]);var H;(H=c.c9.get(p)).push.apply(H,g.A(B))}else if(c.qn)for(z=g.m(B),p=z.next();!p.done;p=z.next())c.qn.b8.push(p.value);else{c.qn=new El(z.Nb,[].concat(g.A(c.b8)));var T;((T=z.Nb)==null?0:T.f3)&&g.l(z,c.qn)}}; B8v=function(z,p,c){var B,H=(B=z.xA)==null?void 0:B.D.get(p);if(!H)return[];if(c.VQ){var T;return((T=H.qx(0,c.clipId))==null?void 0:T.b8)||[]}if(H.aH()){var b=c.startMs,D=c.durationMs,t=1E3,X;if(((X=z.Nb)==null?0:X.W)&&c.timeRange){var x;b=(x=c.timeRange.startTicks)!=null?x:-1;var E;D=(E=c.timeRange.PK)!=null?E:-1;var q;t=(q=c.timeRange.timescale)!=null?q:-1}if(c.sj<0||c.wP<0||D<0||b<0||c.FL<0||t<0)return yF(z,p),[];z=Ci(c.sj,c.FL);p=c.VO||0;return[new ls(3,H,z,"makeSliceInfosMediaBytes",c.wP-1,b/ t,D/t,p,z.length-p,void 0,c.Kl,c.clipId)]}if(c.wP<0)return yF(z,p),[];var J;return((J=z.xA)==null?0:J.La)?(p=H.MO,X=p*H.info.l8,x=((b=z.Nb)==null?0:b.wU)?c.VO:void 0,((t=z.Nb)==null?0:t.Mt)&&c.timeRange&&!x&&(D=c.timeRange.startTicks/c.timeRange.timescale),[new ls(3,H,void 0,"makeSliceInfosMediaBytes",c.wP,D,p,x,X,!0,c.Kl,c.clipId)]):[]}; Hix=function(z,p,c){z.xA=p;z.Nb=c;p=g.m(z.dU);for(c=p.next();!c.done;c=p.next()){var B=g.m(c.value);c=B.next().value;B=B.next().value;for(var H=g.m(B.g6),T=H.next();!T.done;T=H.next()){T=T.value;var b=B8v(z,c,T);cRY(z,T.Ps,B,b)}}}; lc=function(z,p,c,B){z.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+p+" bytes: "+B.getLength()}); (z=z.dU.get(c))&&!z.QE&&(dA?(z.Ao.has(p)||z.Ao.set(p,{data:new $p,ij:0,AS:!1}),Kb(z.Ao.get(p).data,B)):Kb(z.J8,B),z.bytesReceived+=B.getLength(),z.D0=!0)}; Wm=function(z,p){z.logger.debug(function(){return"[closeStream] formatId: "+p}); var c=z.dU.get(p);c&&!c.QE&&(c.QE=!0,c.Jv&&c.Jv(),iif(z)&&z.X.nk())}; iif=function(z){z=g.m(z.dU.values());for(var p=z.next();!p.done;p=z.next())if(!p.value.QE)return!1;return!0}; vm=function(z,p,c,B,H,T,b,D){g.e.call(this);this.policy=z;this.info=p;this.xA=c;this.e9=H;this.Xw=D;this.logger=new g.Xk("sabr");this.qB=new Th(this);this.Vx=new ZO(this);this.DJ=new LR(this);this.state=1;this.IM=!1;this.V_=0;this.clipId="";this.rM=this.BQ=-1;this.MM=0;this.E4=-1;this.UZ=this.VB=!1;this.JE=0;this.Y6=!1;this.policy.Th?this.mY=new uc(this,T):this.mY=new Bm(this,T);this.vU=this.policy.Zw?p.At:T8Y(p,this.policy,B);this.vU.set("rn",""+this.sP());this.vU.set("alr","yes");Hix(this.DJ,c, z);this.rU=new Jm(this,this.policy,this.vU,p.j9,this.mY,this.logger,B,b,this.policy.enableServerDrivenRequestCancellation);YJY(this.rU);var t;if((t=this.policy)==null?0:t.f3)g.l(this,this.DJ),g.l(this,this.rU);z=p.K;p={method:"POST",body:z};z&&(this.MM=z.length);try{this.xhr=tm(this.vU,this.policy.S,this.mY,HW,p),this.policy.wd&&cm(this.mY,this.BU()),this.rU.K.start()}catch(X){g.oc(X)}}; biQ=function(z){z.policy.Ep&&z.Jt&&!z.Y6?z.Y6=!0:z.mY.R6()}; VMf=function(z,p){var c=-1,B=-1,H=-1,T;if((T=z.I0)==null?0:T.items)for(z=g.m(z.I0.items),T=z.next();!T.done;T=z.next())T=T.value,p=D,t=z.xA.isManifestless&&z.policy.Oc,b){var X;if(((X=z.W)==null?void 0:X.ZS.event)==="predictStart"&&z.W.pHz.V&&(z.V=NaN,z.G=NaN);z.W&&z.W.pH===p?wEN(z,p,c,z.W,H):z.K===1&&o3(z,5,"noad")}; wEN=function(z,p,c,B,H){if(H&&B){var T=B.ZS,b=H.M2(T);T.event==="predictStart"&&(z.Dt=p);z.KH("sdai",{onqevt:T.event,sq:p,mt:c,gab:b,cst:T.startSecs,cueid:z.policy.nA&&(b||T.event==="start")?T.identifier:void 0},!0);if(b)if(T.event!=="predictStart")T.event==="start"&&z.Dt===p-1&&z.KH("sdai",{gabonstart:p}),B.DD?o3(z,4,"cue"):(z.V=p,z.G=c,z.KH("sdai",{joinad:z.K,sg:z.V,st:z.G.toFixed(3)}),z.U=Date.now(),o3(z,2,"join"),H.Wo(B.ZS));else{var D=p+Math.max(Math.ceil(-T.W/5E3),1);b=Math.floor(c-T.W/1E3); z.policy.L?z.L=b:z.X=D;z.KH("sdai",{onpred:c,estsq:D,estmt:b.toFixed(3)});QF(z.z$,b,b,D);z.U=Date.now();o3(z,3,"predict");H.Wo(B.ZS)}else z.K===1?((D=z.D)==null?0:D.DM(c))?(QF(z.z$,c,c,p),o3(z,4,"sk2had")):o3(z,5,"nogab"):T.event==="predictStart"&&(z.policy.L&&z.L>0?(c=Math.floor(c-T.W/1E3),z.L!==c&&z.KH("sdai",{updateSt:c,old:z.L}),z.L=c):z.X>0&&(c=p+Math.max(Math.ceil(-T.W/5E3),1),z.X!==c&&(z.KH("sdai",{updateSt:c,old:z.X}),z.X=c)));var t,X;if(z.yL&&T.event==="start"&&((t=z.W)==null?void 0:t.ZS.event)!== "predictStart"&&((X=z.W)==null?void 0:X.pH)===p-1){var x;z.KH("sdai",{ovlpst:(x=z.W)==null?void 0:x.ZS.event,sq:p})}}else z.KH("sdai",{nulldec:1,sq:p,mt:c.toFixed(3),evt:(B==null?void 0:(T=B.ZS)==null?void 0:T.event)||"none"})}; SVV=function(z,p,c){if(z.policy.ND&&z.policy.L)return!(z.K===1||z.K===2||z.K===3&&c>=z.X);if(z.K===1||z.K===2)return!1;if(z.K!==0&&p===z.audioTrack){if(z.policy.L)return RHi(z.videoTrack,c)||RHi(z.videoTrack,c+1);z=rA(z.videoTrack);if(c>(z?z.pH:-1))return!1}return!0}; Ul=function(z,p,c){return(c<0||c===z.V)&&!isNaN(z.G)?z.G:p}; PsN=function(z,p){if(z.W){var c=z.W.ZS.UI-(p.startTime+z.S-z.W.ZS.startSecs);c<=0||(c=new rM(z.W.ZS.startSecs-(isNaN(z.S)?0:z.S),c,z.W.ZS.context,z.W.ZS.identifier,"stop",z.W.ZS.W+p.duration*1E3),z.KH("cuepointdiscontinuity",{segNum:p.pH}),Fk(z,c,p.pH))}}; o3=function(z,p,c){z.K!==p&&(z.KH("sdai",{setsst:p,old:z.K,r:c}),z.K=p)}; sl=function(z,p,c,B){(B===void 0?0:B)?o3(z,1,"seek"):p>0&&Math.abs(p-c)>=5&&z.K===4&&o3(z,5,"sk2t."+p.toFixed(2)+";ct."+c.toFixed(2))}; k2=function(z,p,c){this.audio=z;this.video=p;this.reason=c}; gA=function(z,p,c){this.W=z;this.reason=p;this.token=c;this.videoId=void 0}; Gh=function(z,p,c){g.e.call(this);this.policy=z;this.X=p;this.KH=c;this.D=new Map;this.L=0;this.V=!1;this.W="";this.K=!1}; Nn=function(z,p,c){if(c===void 0?0:c)z.V=!0;++z.L;c=6E4*Math.pow(2,z.L);c=(0,g.y2)()+c;z.D.set(p.info.id,c)}; fR=function(z){for(var p=g.m(z.D.entries()),c=p.next();!c.done;c=p.next()){var B=g.m(c.value);c=B.next().value;B=B.next().value;B<(0,g.y2)()&&z.D.delete(c)}return z.D}; $mV=function(z){return z.V&&fR(z).size>0}; zH=function(z,p){z.W!==p&&(z.W=p,z.K=!0)}; KN_=function(z,p){var c;p&&(c=g.kL(z.X.W,function(H){return H.id===p})); if(!c&&(c=g.kL(z.X.W,function(H){var T;return!((T=H.bQ)==null||!T.isDefault)}),p)){var B; z.KH("iaf",{id:p,sid:(B=c)==null?void 0:B.id})}return c}; cC=function(z,p,c,B,H,T){var b=this;T=T===void 0?[]:T;this.z$=z;this.tD=p;this.policy=c;this.xA=B;this.V=H;this.CH=T;this.logger=new g.Xk("dash/abr");this.W=ge;this.D=this.G=null;this.U=-1;this.fH=!1;this.nextVideo=this.K=null;this.X=[];this.i8=new Set;this.YA={};this.Zt=new Yq(1);this.S=0;this.OH=this.Dt=this.MZ=!1;this.T$=0;this.NZ=!1;this.Ra=new Set;this.rA=!1;this.Xg={LF:function(){pa(b)}}; this.L=new Gh(this.policy,H,function(D,t){b.z$.KH(D,t)})}; dmY=function(z,p,c){BC(z,p);p=KN_(z.L,c);c||p||(p=uhY(z));p=p||z.V.W[0];z.K=z.xA.W[p.id];pa(z);z.G=z.K;ajN(z);Zif(z);z.D=z.nextVideo;z.G=z.K;return LNE(z)}; CsE=function(z,p){if(WNQ(z,p))return null;if(p.reason==="m"&&p.isLocked())return z.logger.debug(function(){return"User sets constraint to: "+JP(p)}),BC(z,p),z.S=z.X.length-1,pa(z),HC(z),z.Dt=z.Dt||z.D!==z.nextVideo,z.D=z.nextVideo,new k2(z.K,z.D,p.reason); p.reason==="r"&&(z.U=-1);BC(z,p);HC(z);if(p.reason==="r"&&z.nextVideo===z.D)return new k2(z.K,z.nextVideo,p.reason);yRV(z);return null}; eHY=function(z,p,c){z.K=z.xA.W[p];z.G=z.K;return new k2(z.G,z.D,c?"t":"m")}; ljY=function(z,p){if(p.info.video){if(z.D!==p)return z.D=p,LNE(z)}else z.OH=z.G!==p,z.G=p;return null}; v3i=function(z,p){if(p.W.info.video&&p.L){var c=(p.K+p.D)/p.duration,B=p.W.info.l8;c&&B&&(z.Zt.kF(1,c/B),z.policy.D&&c/B>1.5&&z.z$.KH("overshoot",{sq:p.pH,br:c,max:B}))}}; ib=function(z,p,c){Nn(z.L,p,c===void 0?!1:c);z.U=-1;BC(z,z.W)}; Iji=function(z,p){return new k2(z.G,z.D,p||z.W.reason)}; yRV=function(z){if(z.D&&z.nextVideo&&TH(z,z.D.info)z.policy.xw,D=H<=z.policy.xw?pZ(B):Ne(B);if(!T||b||D)c[H]=B}return c}; BC=function(z,p){z.W=p;var c=z.V.videoInfos;if(!z.W.isLocked()){var B=(0,g.y2)();c=g.M3(c,function(D){if(D.l8>this.policy.l8)return!1;var t=this.xA.W[D.id];return fR(this.L).get(D.id)>B?!1:t.j9.K>4||t.V>4?(this.logger.debug(function(){return"Remove "+Xb(D)+"; 4 load failures"}),!1):this.Ra.has(+D.itag)?!1:!0},z); $mV(z.L)&&(c=g.M3(c,function(D){return D.video.width<=854&&D.video.height<=480}))}c.length||(c=z.V.videoInfos); var H=c;z.policy.K9&&(H=FNf(z,H,p));H=g.M3(H,p.X,p);if(z.W.isLocked()&&z.L.W){var T=g.kL(c,function(D){return D.id===z.L.W}); T?H=[T]:zH(z.L,"")}z.policy.K9||(H=FNf(z,H,p));H.length||(H=[c[0]]);H.sort(function(D,t){return TH(z,D)-TH(z,t)}); p={};for(c=1;cp.mF.video.width?(g.Nd(H,c),c--):TH(z,p.SH)*z.policy.U>TH(z,p.mF)&&(g.Nd(H,c-1),c--);var b=H[H.length-1];z.NZ=!!z.D&&!!z.D.info&&z.D.info.yI!==b.yI;z.logger.debug(function(){return"Constraint: "+JP(z.W)+", "+H.length+" fmts selectable, max selectable fmt: "+Xb(b)}); z.X=H;z.i8.clear();p=!1;for(c=0;c=1080&&(p=!0);o3Y(z.policy,b,z.xA.La)}; FNf=function(z,p,c){var B=c.reason==="m"||c.reason==="s";z.policy.SM&&bb&&g.$U&&(!B||c.W<1080)&&(p=p.filter(function(X){return X.video&&(!X.K||X.K.powerEfficient)})); if(p.length>0)if(wr()){var H=jBi(z,p);p=p.filter(function(X){return!!X&&!!X.video&&X.yI===H[X.video.qualityOrdinal].yI})}else{var T,b,D=(T=p[0])==null?void 0:(b=T.video)==null?void 0:b.qualityOrdinal; if(D){c=p.filter(function(X){return!!X&&!!X.video&&X.video.qualityOrdinal===D}); var t=jBi(z,c)[D].yI;p=p.filter(function(X){return!!X&&!!X.video&&X.yI===t})}}return p}; n3B=function(z,p){for(var c=0;c+1B}; pa=function(z){if(!z.K||!z.policy.X&&!z.K.info.bQ){var p=z.V.W;z.K&&(p=p.filter(function(B){return B.audio.W===z.K.info.audio.W}),p.length||(p=z.V.W)); z.K=z.xA.W[p[0].id];if(p.length>1){if(z.policy.i_){if(z.policy.N0&&z.G===null){var c=g.d7(p,function(B){return B.audio.audioQuality}); z.z$.KH("aq",{hqa:z.policy.rA,qs:c.join("_")})}if(z.policy.rA)return;if(c=g.kL(p,function(B){return B.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))z.K=z.xA.W[c.id]}c=!1; if(c=z.policy.t1?!0:z.W.isLocked()?z.W.W<240:n3B(z,z.K))z.K=z.xA.W[g.UQ(p).id]}}}; HC=function(z){if(!z.nextVideo||!z.policy.X)if(z.W.isLocked())z.nextVideo=z.W.W<=360?z.xA.W[z.X[0].id]:z.xA.W[g.UQ(z.X).id],z.logger.debug(function(){return"Select max fmt: "+Xb(z.nextVideo.info)}); else{for(var p=Math.min(z.S,z.X.length-1),c=ld(z.tD),B=TH(z,z.K.info),H=c/z.policy.MZ-B;p>0&&!(TH(z,z.X[p])<=H);p--);for(var T=c/z.policy.U-B;p=T);p++);z.nextVideo=z.xA.W[z.X[p].id];z.S!==p&&z.logger.info(function(){return"Adapt to: "+Xb(z.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+H.toFixed(0)+", bandwidth to upgrade: "+T.toFixed(0)+", constraint: "+JP(z.W)}); z.S=p}}; ajN=function(z){var p=z.policy.MZ,c=ld(z.tD),B=c/p-TH(z,z.K.info);p=g.gz(z.X,function(H){return TH(this,H)T?H=0:B[b]>z.buffered[b]&&(b===T-1?H=2:b===T-2&&B[b+1]>z.buffered[b+1]&&(H=3))}z.W.add(p<<3|(c&&4)|H);p=Math.ceil(z.track.Gf()*1E3);z.W.add(p-z.L);z.L=p;if(H===1)for(z.W.add(T),b=p=0;b=2&&z.W.add(B[T- 1]-z.buffered[T-1]);c&&z.W.add(c);z.buffered=B}; tF=function(z,p,c){var B=this;this.policy=z;this.W=p;this.T$=c;this.X=this.K=0;this.e8=null;this.MZ=new Set;this.U=[];this.indexRange=this.initRange=null;this.S=new BS;this.Dt=this.tD=!1;this.Xg={gOa:function(){return B.D}, KOq:function(){return B.chunkSize}, sPA:function(){return B.G}, HQH:function(){return B.V}}; (p=kPu(this))?(this.chunkSize=p.csz,this.D=Math.floor(p.clen/p.csz),this.G=p.ck,this.V=p.civ):(this.chunkSize=z.bV,this.D=0,this.G=g.Zu(16),this.V=g.Zu(16));this.L=new Uint8Array(this.chunkSize);this.G&&this.V&&(this.crypto=new iSi(this.G,this.V))}; kPu=function(z){if(z.policy.Rk&&z.policy.lV)for(var p=g.m(z.policy.Rk),c=p.next(),B={};!c.done;B={GJ:void 0,U4:void 0},c=p.next())if(c=g.XL(c.value),B.GJ=+c.clen,B.U4=+c.csz,B.GJ>0&&B.U4>0&&z.policy.X===c.docid&&z.W.info.id===c.fmtid&&z.W.info.lastModified===+c.lmt)return z={},z.clen=B.GJ,z.csz=B.U4,z.ck=c.ck,z.civ=c.civ,z}; XX=function(z){return!!z.e8&&z.e8.NS()}; N8D=function(z,p){if(!XX(z)&&!z.qZ()){if(!(z.tD||(z.tD=!0,z.D>0))){var c=xo(z);c=Id(z.policy.X,z.W.info,E$(z),c,z.policy.sH);qE(z,c)}if(p.info.type===1){if(z.e8){JF(z,Error("Woffle: Expect INIT slices to always start us off"));return}z.initRange=Ci(0,p.W.getLength())}else if(p.info.type===2)z.e8&&z.e8.type===1||JF(z,Error("Woffle: Index before init")),z.indexRange=Ci(z.initRange.end+1,p.W.getLength());else if(p.info.type===3){if(!z.e8){JF(z,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(z.e8.type===3&&!jM(z.e8,p.info)&&(z.U=[],p.info.pH!==Fh(z.e8)||p.info.K!==0))return;if(p.info.L){c=g.m(z.U);for(var B=c.next();!B.done;B=c.next())g3Q(z,B.value);z.U=[]}else{z.U.push(p);z.e8=p.info;return}}else{JF(z,Error("Woffle: Unexpected slice type"));return}z.e8=p.info;g3Q(z,p);GPN(z)}}; g3Q=function(z,p){var c=0,B=p.W.S1();if(z.X=B.length)return;if(c<0)throw Error("Missing data");z.X=z.D;z.K=0}for(H={};c0){var b=B.getUint32(c+28);T+=b*16+4}var D=B.getUint32(c+T-4);try{var t=BmW(p.subarray(c+T,c+T+D));if(t!==null){var X=t;break a}}catch(x){}}c+=H}X=null;break a}catch(x){X=null;break a}X=void 0}if(X!=null)for(p=x_(Fp(X,7)),p==null||z.Q4||(z.cryptoPeriodIndex=p),p=x_(Fp(X,10)),p!=null&&p>0&&!z.Q4&&(z.W=p),X=gL(X, 2,tgY,void 0===Eu_?2:4),X=g.m(X),p=X.next();!p.done;p=X.next())z.D.push(g.hy(K$(p.value),4))}; i5Y=function(z){return isNaN(z.cryptoPeriodIndex)?g.hy(z.initData):""+z.cryptoPeriodIndex}; mq=function(z,p,c){var B=c===void 0?{}:c;c=B.videoDuration===void 0?0:B.videoDuration;var H=B.QN===void 0?void 0:B.QN;B=B.jT===void 0?!1:B.jT;this.videoId=z;this.status=p;this.videoDuration=c;this.QN=H;this.jT=B}; Tmu=function(z,p,c,B,H){this.videoId=z;this.py=p;this.K=c;this.bytesDownloaded=B;this.W=H}; hF=function(z){this.W=z;this.offset=0}; PC=function(z){if(z.offset>=z.W.getLength())throw Error();return z.W.getUint8(z.offset++)}; b5_=function(z,p){p=p===void 0?!1:p;var c=PC(z);if(c===1){p=-1;for(c=0;c<7;c++){var B=PC(z);p===-1&&B!==255&&(p=0);p>-1&&(p=p*256+B)}return p}B=128;for(var H=0;H<6&&B>c;H++)c=c*256+PC(z),B*=128;return p?c:c-B}; V5Y=function(z){try{var p=b5_(z,!0),c=b5_(z,!1);return{id:p,size:c}}catch(B){return{id:-1,size:-1}}}; DOv=function(z){for(var p=new hF(z),c=-1,B=0,H=0;!B||!H;){var T=V5Y(p),b=T.id;T=T.size;if(b<0)return;if(b===176){if(T!==2)return;B=p.Ht()}else if(b===186){if(T!==2)return;H=p.Ht()}b===374648427?c=p.Ht()+T:b!==408125543&&b!==174&&b!==224&&p.skip(T)}p=Lb(z,0,c);c=new DataView(p.buffer);c.setUint16(B,3840);c.setUint16(H,2160);B=new $p([p]);Kb(B,z);return B}; t5v=function(z,p,c){var B=this;this.z$=z;this.policy=p;this.V=c;this.logger=new g.Xk("dash");this.K=[];this.W=null;this.tD=-1;this.U=0;this.Ra=NaN;this.MZ=0;this.D=NaN;this.S=this.fH=0;this.NZ=-1;this.YA=this.L=this.X=this.T$=null;this.Zt=this.OH=NaN;this.G=this.Dt=this.i8=this.CH=null;this.sH=!1;this.rA=this.timestampOffset=0;this.Xg={TX:function(){return B.K}}; if(this.policy.X){var H=this.V,T=this.policy.X;this.policy.sH&&z.KH("atv",{ap:this.policy.sH});this.G=new tF(this.policy,H,function(b,D,t){AF(z,new mq(B.policy.X,2,{QN:new Tmu(T,b,H.info,D,t)}))}); this.G.S.promise.then(function(b){B.G=null;b===1?AF(z,new mq(B.policy.X,b)):B.z$.KH("offlineerr",{status:b.toString()})},function(b){var D=(b.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); b instanceof ME&&!b.W?(B.logger.info(function(){return"Assertion failed: "+D}),B.z$.KH("offlinenwerr",{em:D}),O$(B),AF(z,new mq(B.policy.X,4))):(B.logger.info(function(){return"Failed to write to disk: "+D}),B.z$.KH("dldbwerr",{em:D}),O$(B),AF(z,new mq(B.policy.X,4,{jT:!0})))})}}; XwQ=function(z){return z.K.length?z.K[0]:null}; xOi=function(z,p){return z.K.some(function(c){return c.info.pH===p})}; YPN=function(z,p,c,B){B=B===void 0?0:B;if(z.L){var H=z.L.K+z.L.D;if(c.info.K>0)if(c.info.pH===z.L.pH&&c.info.K=0&&z.L.pH>=0&&!jM(z.L,c.info))throw new g.z6("improper_continuation",z.L.hH(),c.info.hH());zAB(z.L,c.info)||w_(z,"d")}else if(c.info.K>0)throw new g.z6("continuation_of_null",c.info.hH());z.L=c.info;z.V=c.info.W;if(c.info.K===0){if(z.W)if(!z.z$.isOffline()||z.policy.Ru)z.z$.KH("slice_not_fully_processed",{buffered:z.W.info.hH(), push:c.info.hH()});else throw new g.z6("slice_not_fully_processed",z.W.info.hH(),c.info.hH());Ra(z);z.fH=B}else{if(z.fH&&B&&z.fH!==B)throw z=new g.z6("lmt_mismatch",c.info.pH,z.fH,B),z.level="WARNING",z;!c.info.W.aH()&&z.X&&(B=c.info,H=z.X.BQ,B.G="updateWithEmsg",B.pH=H)}if(z.W){B=g.i2(z.W,c);if(!B)throw new g.z6("failed_to_merge",z.W.info.hH(),c.info.hH());z.W=B}else z.W=c;a:{c=g.H6(z.W.info.W.info);if(z.W.info.type!==3){if(!z.W.info.L)break a;z.W.info.type===6?ETW(z,p,z.W):qPv(z,z.W);z.W=null}for(;z.W;){B= z.W.W.getLength();if(z.tD<=0&&z.U===0){var T=z.W.W,b=-1;H=-1;if(c){for(var D=0;D+80))break;if(E!==408125543)if(E===524531317)D=!0,x>=0&&(H=T.Ht()+x,t=!0);else{if(D&&(E===160||E===163)&&(b<0&&(b=X),t))break;E===163&&(b=Math.max(0,b),H=T.Ht()+x);if(E===160){b<0&&(H=b=T.Ht()+x);break}T.skip(x)}}b<0&&(H=-1)}if(b< 0)break;z.tD=b;z.U=H-b}if(z.tD>B)break;z.tD?(B=JXS(z,z.tD),B.L&&M5v(z,B),ETW(z,p,B),SJ(z,B),z.tD=0):z.U&&(B=JXS(z,z.U<0?Infinity:z.U),z.U-=B.W.getLength(),SJ(z,B))}}z.W&&z.W.info.L&&(SJ(z,z.W),z.W=null)}; qPv=function(z,p){!p.info.W.aH()&&p.info.K===0&&(g.H6(p.info.W.info)||p.info.W.info.Q4())&&aiN(p);if(p.info.type===1)try{M5v(z,p),mO_(z,p)}catch(H){g.Fr(H);var c=oB(p.info);c.hms="1";z.z$.handleError("fmt.unparseable",c||{},1)}c=p.info.W;c.TC(p);z.G&&N8D(z.G,p);if(c.Gg()&&z.policy.W)a:{z=z.z$.xA;p=p.info.clipId;c=g.Tq(c.info,z.La);if(p){var B=UFY(z,c);if(z.rA[B])break a;z.rA[B]=p}z.YA.push(c)}}; QnY=function(z,p,c){if(z.K.length!==0&&(c||z.K.some(function(T){return T.info.X=Ka(b)+D):p=z.getDuration()>=b.getDuration(),p=!p;p&&AXf(c)&&(p=z.T$,$o?(D=KXD(c),b=1/D,D=Ka(z,D),p=Ka(p)+b-D):p=p.getDuration()- z.getDuration(),p=1+p/c.info.duration,Zdu(c.TZ(),p))}else{b=!1;z.X||(aiN(c),c.K&&(z.X=c.K,b=!0,T=c.info,B=c.K.BQ,T.G="updateWithEmsg",T.pH=B,T=c.K,T.NS&&(B=z.V.index,B.K=!T.NS,B.D="emsg"),T=c.info.W.info,B=c.TZ(),g.H6(T)?is(B,1701671783):T.Q4()&&EV([408125543],307544935,B)));a:if((T=Vr(c,z.policy.EW))&&ubi(c))D=O5_(z,c),z.S+=D,T-=D,z.MZ+=T,z.D=z.policy.L3?z.D+T:NaN;else{if(z.policy.dS){if(B=t=z.z$.Zs(g.Tm(c),1),z.D>=0&&c.info.type!==6){if(z.policy.L3&&isNaN(z.OH)){g.oc(new g.z6("Missing duration while processing previous chunk", c.info.hH()));z.z$.isOffline()&&!z.policy.Ru||wwS(z,c,B);w_(z,"m");break a}var X=t-z.D,x=X-z.S,E=c.info.pH,q=z.YA?z.YA.pH:-1,J=z.Zt,M=z.OH,P=z.policy.tW&&X>z.policy.tW,O=Math.abs(x)>10,R=Math.abs(z.D-B)<1E-7;if(Math.abs(x)>1E-4){z.rA+=1;var K=(H=z.X)==null?void 0:kt(H);H={audio:""+ +z.aI(),sq:E.toFixed(),sliceStart:t,lastSq:q.toFixed(),lastSliceStart:J,lastSliceDuration:M,totalDrift:(X*1E3).toFixed(),segDrift:(x*1E3).toFixed(),skipRewrite:""+ +(P||O)};if(K==null?0:K.length)H.adCpn=K[0];z.z$.handleError("qoe.avsync", H);z.NZ=E}P||O||R||(B=z.D);H=O5_(z,c,t);T-=H;z.S=X+H;z.policy.D&&(x&&!R||H)&&(X=(D=z.X)==null?void 0:kt(D),z.z$.KH("discontinuityRewrite",{adCpn:(X==null?0:X.length)?X.join("."):"",itag:c.info.W.info.itag,sq:c.info.pH,originalStartTime:t,rewrittenStartTime:B,startTimeAdjustment:B-t,segDrift:(x*1E3).toFixed(),originalDuration:T+H,rewrittenDuration:T,durationAdjustment:H}))}}else B=isNaN(z.D)?c.info.startTime:z.D;wwS(z,c,B)&&(z.MZ+=T,z.D=B+T,z.policy.Xd&&z.rA>=z.policy.Xd&&(z.rA=0,z.z$.gP({resetForRewrites:"count"})))}z.YA= c.info;z.OH=b2(c);c.D>=0&&(z.Zt=c.D);if(b&&z.X){b=RDW(z,!0);ni(c.info,b);z.W&&ni(z.W.info,b);p=g.m(p);for(D=p.next();!D.done;D=p.next())D=D.value,H=void 0,z.policy.V&&D.pH!==((H=z.X)==null?void 0:H.BQ)||ni(D,b);(c.info.L||z.W&&z.W.info.L)&&c.info.type!==6||(z.Dt=b,z.policy.CH?(p=SPN(z.X),z.z$.iT(z.V,b,p)):(p=z.z$,p.xA.isManifestless&&$OD(p,b,null,!!z.V.info.video)),z.policy.Ye||K4i(z))}}mO_(z,c);z.timestampOffset&&SID(c,z.timestampOffset)}; SJ=function(z,p){if(p.info.L){z.CH=p.info;if(z.X){var c=z.X,B=RDW(z,!1);c=SPN(c);z.z$.iT(z.V,B,c);z.Dt||z.policy.Ye||K4i(z);z.Dt=null}Ra(z)}z.G&&N8D(z.G,p);if(B=z.ix())if(B=g.i2(B,p,z.policy.ev)){z.K.pop();z.K.push(B);return}z.K.push(p)}; SPN=function(z){if(z.DD()){var p=z.data["Stitched-Video-Id"]?z.data["Stitched-Video-Id"].split(",").slice(0,-1):[],c=kt(z),B=[];if(z.data["Stitched-Video-Duration-Us"])for(var H=g.m(z.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),T=H.next();!T.done;T=H.next())B.push((Number(T.value)||0)/1E6);H=[];if(z.data["Stitched-Video-Start-Frame-Index"]){T=g.m(z.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var b=T.next();!b.done;b=T.next())H.push(Number(b.value)||0)}H=[]; if(z.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(T=g.m(z.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),b=T.next();!b.done;b=T.next())H.push((Number(b.value)||0)/1E6);z=new cXE(p,c,B,H,g.$eQ(z),g.KCV(z))}else z=null;return z}; Ra=function(z){z.W=null;z.tD=-1;z.U=0;z.X=null;z.Ra=NaN;z.MZ=0;z.Dt=null}; w_=function(z,p){p={rst4disc:p,cd:z.S.toFixed(3),sq:z.YA?z.YA.pH:-1};z.D=NaN;z.S=0;z.NZ=-1;z.YA=null;z.Zt=NaN;z.OH=NaN;z.i8=null;z.z$.KH("mdstm",p)}; mO_=function(z,p){if(z.V.info.o8){if(p.info.W.info.Q4()){var c=new bs(p.TZ());if(Dj(c,[408125543,374648427,174,28032,25152,20533,18402])){var B=x3(c,!0);c=B!==16?null:Y3(c,B)}else c=null;B="webm"}else p.info.U=zDD(p.TZ()),c=pwE(p.info.U),B="cenc";c&&c.length&&(c=new Yo(c,B),z.policy.UD&&g.H6(p.info.W.info)&&(B=eI_(p.TZ()))&&(c.K=B),c.Q4=p.info.W.info.Q4(),p.K&&p.K.cryptoPeriodIndex&&(c.cryptoPeriodIndex=p.K.cryptoPeriodIndex),p.K&&p.K.K&&(c.W=p.K.K),z.z$.D6(c))}}; K4i=function(z){var p=z.X,c=RIN(p);c&&(c.startSecs+=z.Ra,z.z$.hO(z.V,c,p.BQ,p.DD()))}; RDW=function(z,p){var c,B=z.X;if(c=RIN(B))c.startSecs+=z.Ra;return new CS(B.BQ,z.Ra,p?B.MO:z.MZ,B.ingestionTime,"sq/"+B.BQ,void 0,void 0,p,c)}; wwS=function(z,p,c){if(!RAS(p,c))return p=oB(p.info),p.smst="1",z.z$.handleError("fmt.unparseable",p||{},1),!1;isNaN(z.Ra)&&(z.Ra=c);return!0}; O5_=function(z,p,c){var B=0;if(p.info.W.info.Q4()&&!ubi(p))return 0;if(z.T$&&!z.aI()){var H=0;c&&g.H6(p.info.W.info)?H=c-z.D:p.info.W.info.Q4()&&(H=z.S);var T=p.info.pH;c=Vr(p,z.policy.EW);var b=z.T$;var D=b.NZ;b=b.S;var t=Math.abs(b-H)>.02;if((T===D||T>D&&T>z.NZ)&&t){B=Math.max(.95,Math.min(1.05,(c-(b-H))/c));if(g.H6(p.info.W.info))Zdu(p.TZ(),B);else if(p.info.W.info.Q4()&&(T=H-b,!g.H6(p.info.W.info)&&(p.info.W.info.Q4(),B=new bs(p.TZ()),D=p.L?B:new bs(new DataView(p.info.W.W.buffer)),Vr(p,!0)))){var X= T*1E3,x=hR(D);D=B.pos;B.pos=0;if(B.W.getUint8(B.pos)===160||PE(B))if(Xh(B,160))if(x3(B,!0),Xh(B,155)){if(T=B.pos,t=x3(B,!0),B.pos=T,X=X*1E9/x,x=qm(B),X=x+Math.max(-x*.7,Math.min(x,X)),X=Math.sign(X)*Math.floor(Math.abs(X)),!(Math.ceil(Math.log(X)/Math.log(2)/8)>t)){B.pos=T+1;for(T=t-1;T>=0;T--)B.W.setUint8(B.pos+T,X&255),X>>>=8;B.pos=D}}else B.pos=D;else B.pos=D;else B.pos=D}B=Vr(p,z.policy.EW);B=c-B}B&&p.info.W.info.Q4()&&z.z$.KH("webmDurationAdjustment",{durationAdjustment:B,videoDrift:H+B,audioDrift:b})}return B}; AXf=function(z){return z.info.W.aH()&&z.info.pH===z.info.W.index.E1()}; Ka=function(z,p){p=(p=p===void 0?0:p)?Math.round(z.timestampOffset*p)/p:z.timestampOffset;z.V.X&&p&&(p+=z.V.X.W);return p+z.getDuration()}; uJu=function(z,p){p<0||(z.K.forEach(function(c){SID(c,p)}),z.timestampOffset=p)}; ne=function(z,p,c,B,H){bc.call(this,c,H);var T=this;this.policy=z;this.formatId=p;this.DJ=B;this.lastError=null;this.Jv=function(){T.qZ()||(T.DJ.dU.has(T.formatId)?(T.isComplete()||T.W.start(),e8(T.DJ,T.formatId)&&T.tL(2),T.DJ.QE(T.formatId)&&(zHi(T.DJ,T.formatId)?T.Hy(4):(T.lastError="net.closed",T.Hy(5)))):(T.lastError="player.exception",T.Hy(5)))}; this.W=new g.B4(function(){T.isComplete()||(T.lastError="net.timeout",T.Hy(5))},1E3); this.W.start();GOY(this.DJ,this.formatId,this.Jv);g.Mg(this.Jv)}; ub=function(z,p,c,B){g.e.call(this);var H=this;this.z$=z;this.policy=p;this.W=c;this.timing=B;this.logger=new g.Xk("dash");this.D=[];this.T$=[];this.K=this.oR=null;this.fH=!1;this.rA=this.i8=0;this.V=-1;this.tD=!1;this.Ra=-1;this.YA=null;this.Dt=NaN;this.MZ=[];this.Xg={yY:function(){return H.X}, iIH:function(){return H.D}, Epi:function(){return H.S}}; this.X=new t5v(z,p,c);this.policy.W&&(this.S=new IL(this.X,this.z$.getManifest(),this.policy,function(T){H.policy.Di&&H.KH("buftl",T)})); this.policy.Ca&&(this.U=new Vd(this));this.l8=c.info.l8;this.G=this.policy.Dt?!1:c.xa();this.isManifestless=c.xa();this.L=this.G;g.l(this,this.YA)}; aa=function(z,p,c){c=c===void 0?!1:c;p&&$o&&uJu(z.X,p.zC());if(!c){var B;(B=z.S)==null||jnu(B)}z.oR=p;(p=z.S)!=null&&(p.oR=z.oR)}; ZZ=function(z){var p=z.oR&&z.oR.Ou();if(z.policy.eB){if((z=z.S)==null)z=void 0;else{var c;z=(c=z.D)==null?void 0:c.info}return z||null}return p}; anv=function(z){for(var p={},c=0;c4&&z.T$.shift()}; Z5E=function(z,p){if(p.jj()){var c=p.Ie();c=g.m(c);for(var B=c.next();!B.done;B=c.next())B=B.value,z.policy.D&&p instanceof ne&&z.KH("omblss",{s:B.info.hH()}),d_(z,p.info.b8,B,p.aS())}}; d_=function(z,p,c,B){B=B===void 0?0:B;isNaN(z.Dt)||(z.KH("aswm",{sq:p[0].pH,id:p[0].W.info.itag,xtag:p[0].W.info.W,ep:Date.now()-z.Dt}),z.Dt=NaN);switch(c.info.type){case 1:case 2:L4D(z,c);break;case 4:var H=c.info.W,T=H.tR(c),b;((b=z.K)==null?0:b.type===4)&&bZx(c.info,z.K)&&(z.K=H.JL(z.K).pop());c=g.m(T);for(H=c.next();!H.done;H=c.next())d_(z,p,H.value,B);break;case 3:c.info.W.info.video?(H=z.timing,H.T$||(H.T$=(0,g.y2)(),dV("fvb_r",H.T$,H.W))):(H=z.timing,H.V||(H.V=(0,g.y2)(),dV("fab_r",H.V,H.W))); YPN(z.X,p,c,B);z.policy.W&&dOW(z);break;case 6:YPN(z.X,p,c,B),z.K=c.info}}; L4D=function(z,p){if(p.info.type===1)if(p.info.W.info.video){var c=z.timing;c.YA||(c.YA=(0,g.y2)(),dV("vis_r",c.YA,c.W))}else c=z.timing,c.S||(c.S=(0,g.y2)(),dV("ais_r",c.S,c.W));qPv(z.X,p);z=z.z$;z.videoTrack.W.Gg()&&z.audioTrack.W.Gg()&&z.policy.W&&!z.xA.La&&(p=z.audioTrack.getDuration(),c=z.videoTrack.getDuration(),Math.abs(p-c)>1&&z.KH("trBug",{af:""+g.Tq(z.audioTrack.W.info,!1),vf:""+g.Tq(z.videoTrack.W.info,!1),a:""+p,v:""+c}))}; fe=function(z){return XwQ(z.X)}; dOW=function(z){z.D.length?z.K=g.UQ(g.UQ(z.D).info.b8):z.X.K.length?z.K=z.X.ix().info:z.K=ZZ(z)}; WC=function(z,p){var c={yS:[],QH:[]},B;if((z=z.S)==null)z=void 0;else{IxB(z,z.yS,"og");eLY(z,p);IxB(z,z.yS,"trim");var H=vxf(z);p=H.yS;H=H.Xn;for(var T=[],b=0;b0){var q=qF(E,t);q>=0&&(x=(E.end(q)-t+.1)*1E3)}T.push({formatId:g.Tq(D.info.W.info,z.xA.La), Kl:D.info.Kl,sequenceNumber:D.info.pH+z.X,Vj:X,J0:D.info.D,n5:x})}z={yS:p,QH:T}}return(B=z)!=null?B:c}; UB=function(z,p,c){c=c===void 0?!1:c;if(z.oR){var B=z.oR.UR(),H=MF(B,p),T=NaN,b=ZZ(z);b&&(T=MF(B,b.W.index.getStartTime(b.pH)));if(H===T&&z.K&&z.K.D&&W4Q(yd(z),0))return p}z=yXN(z,p,c);return z>=0?z:NaN}; kM=function(z,p,c){z.W.Gg();var B=yXN(z,p);if(B>=0)return B;var H;(H=z.S)==null||lxW(H,p,c);c=Math;B=c.min;H=z.X;if(H.G)if(H=H.G,H.e8&&H.e8.type===3)H=H.e8.startTime;else if(H.D>0){var T=H.W.index;T=g.VT(T.offsets.subarray(0,T.count),H.D*H.chunkSize);H=H.W.index.getStartTime(T>=0?T:Math.max(0,-T-2))}else H=0;else H=Infinity;p=B.call(c,p,H);if(z.policy.K){var b,D;c=(b=z.z$.Wf())==null?void 0:(D=Ff(b,p))==null?void 0:D.clipId;z.K=z.W.T9(p,void 0,c).b8[0]}else z.K=z.policy.Dt?null:z.W.T9(p).b8[0];Ca(z)&& (z.oR&&z.oR.abort(),z.policy.kd&&(b=z.S)!=null&&(b.D=void 0));z.rA=0;return z.K?z.K.startTime:p}; oxY=function(z){z.G=!0;z.L=!0;z.V=-1;kM(z,Infinity)}; eJ=function(z){for(var p=0,c=g.m(z.D),B=c.next();!B.done;B=c.next())p+=DFf(B.value.info);return p+=hDV(z.X)}; vC=function(z,p){p=p===void 0?!1:p;var c=z.z$.getCurrentTime(),B=z.X.ix(),H=(B==null?void 0:B.info.V)||0;z.policy.TL&&(B==null?0:B.info.W.xa())&&!B.info.L&&(H=B.info.X);if(z.policy.K&&B&&B.info.clipId){var T,b=(((T=z.z$.Wf())==null?void 0:jk(T,B.info.clipId))||0)/1E3;H+=b}if(!z.oR)return z.policy.W&&p&&!isNaN(c)&&B?H-c:0;if((T=ZZ(z))&&lb(z,T))return T.V;b=z.oR.UR(!0);if(p&&B)return T=0,z.policy.W&&(T=mX(b,H+.02)),T+H-c;H=mX(b,c);z.policy.xm&&T&&(p=qF(b,c),b=qF(b,T.X-.02),p===b&&(c=T.V-c,z.policy.D&& c>H+.02&&z.KH("abh",{bh:H,bhtls:c}),H=Math.max(H,c)));return H}; C2V=function(z){var p=ZZ(z);return p?p.V-z.z$.getCurrentTime():0}; eDY=function(z,p){if(z.D.length){if(z.D[0].info.b8[0].startTime<=p)return;r1(z)}for(var c=z.X,B=c.K.length-1;B>=0;B--)c.K[B].info.startTime>p&&c.K.pop();dOW(z);z.K&&p=0;b--){var D=H.K[b];D.info.pH>=p&&(H.K.pop(),H.D-=Vr(D,H.policy.EW),T=D.info)}T&&(H.L=H.K.length>0?H.K[H.K.length-1].info:H.i8,H.K.length!==0||H.L||w_(H,"r"));H.z$.KH("mdstm",{rollbk:1,itag:T?T.W.info.itag:"",popped:T?T.pH:-1,sq:p,lastslc:H.L?H.L.pH:-1,lastfraget:H.D.toFixed(3)});if(z.policy.W)return z.K=null,!0;B>c?kM(z,B):z.K=z.W.g5(p-1,!1).b8[0]}catch(t){return p=Cd(t),p.details.reason="rollbkerr", z.z$.handleError(p.errorCode,p.details,p.severity),!1}return!0}; FX=function(z,p){var c;for(c=0;c0?c||p.pH>=z.Ra:c}; na=function(z){var p;return Ca(z)||lb(z,(p=z.X.ix())==null?void 0:p.info)}; yd=function(z){var p=[],c=ZZ(z);c&&p.push(c);p=g.p$(p,z.X.iU());c=g.m(z.D);for(var B=c.next();!B.done;B=c.next()){B=B.value;for(var H=g.m(B.info.b8),T=H.next(),b={};!T.done;b={G8:void 0},T=H.next())b.G8=T.value,B.qL&&(p=g.M3(p,function(D){return function(t){return!bZx(t,D.G8)}}(b))),(IB(b.G8)||b.G8.type===4)&&p.push(b.G8)}z.K&&!NBY(z.K,g.UQ(p),z.K.W.aH())&&p.push(z.K); return p}; W4Q=function(z,p){if(!z.length)return!1;for(p+=1;p=p){p=T;break a}}p=H}return p<0?NaN:W4Q(z,c?p:0)?z[p].startTime:NaN}; Qd=function(z){return!(!z.K||z.K.W===z.W)}; ln_=function(z){return Qd(z)&&z.W.Gg()&&z.K.W.info.l8p&&B.V1080&&!z.oo&&(z.i8=36700160,z.UH=5242880,z.OH=Math.max(4194304,z.OH),z.oo=!0);p.video.qualityOrdinal>2160&&!z.nJ&&(z.i8=104857600,z.l8=13107200,z.nJ=!0);g.P3(z.QI.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?p.isEncrypted()&&g.GQ()&&g.k5("samsung")&&(g.k5("kant")||g.k5("muse"))&&(z.l8=g.P3(z.QI.experiments,"html5_samsung_kant_limit_max_bitrate")):p.isEncrypted()&&g.GQ()&&g.k5("kant")&&(z.l8=1310720);z.Fh!==0&&p.isEncrypted()&& (z.l8=z.Fh);z.RP!==0&&p.isEncrypted()&&c&&(z.l8=z.RP);p.l8&&(z.EZ=Math.max(z.v0,Math.min(z.OH,5*p.l8)))}; ko=function(z){return z.W&&z.e1&&z.playbackStartPolicy}; g_=function(z){return z.K||z.W&&z.vO}; pWN=function(z,p,c,B){z.e1&&(z.playbackStartPolicy=p,z.cA=c,z.rr=B)}; s$=function(z,p,c){c=c===void 0?0:c;return g.P3(z.QI.experiments,p)||c}; cNY=function(z){var p=z===void 0?{}:z;z=p.BV;var c=p.L2;var B=p.OF;var H=p.E1;p=p.vg;this.BV=z;this.L2=c;this.OF=B;this.E1=H;this.vg=p}; piD=function(z,p){if(p<0)return!0;var c=z.E1();return p0)return 2;if(p<0)return 1;c=z.E1();return p(0,g.y2)()?0:1}; NE=function(z,p,c,B,H,T,b,D,t,X,x,E,q,J){J=J===void 0?null:J;g.e.call(this);var M=this;this.z$=z;this.policy=p;this.videoTrack=c;this.audioTrack=B;this.X=H;this.W=T;this.timing=b;this.L=D;this.schedule=t;this.xA=X;this.D=x;this.MZ=E;this.Vs=q;this.dL=J;this.Dt=!1;this.In="";this.zn=null;this.nt=NaN;this.tD=!1;this.K=null;this.Ct=this.U=NaN;this.KQ=this.V=0;this.logger=new g.Xk("dash");this.Xg={HE:function(P,O){return M.HE(P,O)}}; this.policy.uO>0&&(this.In=g.Zu(this.policy.uO));this.policy.EB&&(this.S=new GH(this.z$,this.policy,this.schedule),g.l(this,this.S))}; DBv=function(z,p,c){var B=p.K?p.K.W.j9:p.W.j9;var H=z.X,T;(T=!z.policy.uv)||(T=ZW(B.W)===ZW(B.D));T?B=!1:(H=SM(H,ZW(B.D)),T=6E4*Math.pow(H.X,1.6),(0,g.y2)()=H.X?(H.KH("sdai",{haltrq:T+1,est:H.X}),B=!1):B=H.K!==2;if(!B||!Zj(p.K?p.K.W.j9:p.W.j9,z.policy,z.X,z.z$.Iv())||z.z$.isSuspended&&(!uP(z.schedule)||z.z$.KM))return!1;if(z.policy.X&&vX>=5)return g.H4(z.z$.Us),!1;if(z.xA.isManifestless){if(p.D.length>0&&p.K&&p.K.pH===-1||p.D.length>=z.policy.mP||!z.policy.ED&&p.D.length>0&&!z.policy.S.L2)return!1;if(p.G)return!z.xA.isLive||!isNaN(z.nt)}if(oTW(p))return z.logger.debug("Pending request with server-selectable format found"), !1;if(!p.K){if(!p.W.Gg())return!1;kM(p,z.z$.getCurrentTime())}if(fe(p)&&(p.ix()!==fe(p)||z.z$.isSuspended))return!1;H=(B=z.policy.LA)&&!p.D.length&&vC(p,!0)=z.policy.LJ)return!1;B=p.K;if(!B)return!0;B.type===4&&B.W.Gg()&&(p.K=g.UQ(B.W.JL(B)),B=p.K);if(!B.NS()&&!B.W.Ot(B))return!1;T=z.xA.iZ||z.xA.X;if(z.xA.isManifestless&&T){T=p.W.index.E1();var b=c.W.index.E1(); T=Math.min(T,b);if(p.W.index.nM()>0&&T>0&&B.pH>=T)return p.Ra=T,c.Ra=T,!1}if(B.W.info.audio&&B.type===4||B.NS())return!1;T=!p.L&&!c.L;if(H=!H)H=B.V,H=!!(c.K&&!lb(c,c.K)&&c.K.VtFf(z,p)?(tFf(z,p),!1):(z=p.oR)&&z.isLocked()?!1:!0}; tFf=function(z,p){var c=z.W;c=c.W?c.W.ZS:null;if(z.policy.T$&&c)return c.startSecs+c.UI+15;p=sB(z.z$,p);z.policy.FQ>0&&(c=((0,g.y2)()-z.z$.lU)/1E3,p=Math.min(p,z.policy.FQ+z.policy.dP*c));c=z.z$.getCurrentTime()+p;return z.policy.G1&&(p=XWW(z.z$)+z.policy.G1,p=0||p.j9.Sg("defrag")==="1"||p.j9.Sg("otf")==="1"){p=null;break a}H=Ci(0,4096)}H=new Qz([new ls(5,B.W,H,"createProbeRequestInfo"+B.G,B.pH)],p.K);H.Fo=c;H.W=p.W;p=H}p&&VFS(z,p)}}; VFS=function(z,p){z.z$.oN(p);var c=DFf(p),B=z.z$.Nr();c={Tl:z.schedule,gH:c,w9:axW(z.L,c),b_:vE(p.b8[0]),f9:LS(p.j9.W),zQ:z.policy.D,Lm:function(b,D){z.z$.LU(b,D)}}; if(z.schedule.K.V){var H,T;c.Fe=(((H=z.videoTrack.W)==null?void 0:H.info.l8)||0)+(((T=z.audioTrack.W)==null?void 0:T.info.l8)||0)}z.zn&&(c.pH=p.b8[0].pH,c.nt=p.nt,c.zn=z.zn);B={Uc:t2Y(p,z.z$.getCurrentTime()),mq:z.policy.y4&&UV(p)&&p.b8[0].W.info.video?rRi(z.D):void 0,z6:z.policy.T$,poToken:z.z$.QQ(),Ce:z.z$.Eq(),In:z.In,Ct:isNaN(z.Ct)?null:z.Ct,dL:z.dL,Vs:z.Vs,KQ:z.KQ,YQ:B};return new Qx(z.policy,p,c,z.X,function(b,D){try{a:{var t=b.info.b8[0].W,X=t.info.video?z.videoTrack:z.audioTrack;if(!(b.state>= 2)||b.isComplete()||b.jF()||!(!z.z$.G$||z.z$.isSuspended||vC(X)>3)){var x=imu(b,z.policy,z.X);x===1&&(z.tD=!0);xBY(z,b,x);if(b.isComplete()||b.qZ()&&D<3){if(z.policy.D){var E=b.timing.lF();E.rst=b.state;E.strm=b.xhr.SX();E.cncl=b.xhr&&b.rU.X?1:0;z.z$.KH("rqs",E)}b.pF&&z.z$.KH("sbwe3",{},!0)}if(!z.qZ()&&b.state>=2){mmQ(z.timing,b,t);var q=z.z$;z.Ct&&b.OS&&q&&(z.Ct=NaN,z.z$.Hk(b.OS),z.z$.Lw(),z.z$.KH("cabrUtcSeek",{mediaTimeSeconds:b.OS}));b.Hw&&z.Ct&&b.Hw&&!b.Hw.action&&(z.z$.HI(z.Ct),z.Ct=NaN,z.z$.KH("cabrUtcSeekFallback", {targetUtcTimeSeconds:z.Ct}));b.rX&&z.z$.Xa(b.rX);z.policy.JH&&(z.KQ=b.KQ);if(b.state===3){FX(X,b);UV(b.info)&&fa(z,X,t,!0);if(z.K){var J=b.info.J9();J&&z.K.NO(b.info.b8[0].pH,t.info.id,J)}z.z$.uZ()}else if(b.isComplete()&&b.info.b8[0].type===5){if(b.state!==4)b.Ks()&&z.z$.handleError(b.bz(),b.xU());else{var M=(b.info.b8[0].W.info.video?z.videoTrack:z.audioTrack).D[0]||null;M&&M instanceof Qx&&M.jF()&&M.A6()}b.dispose()}else{b.Ks()||EqY(z,b);var P;((P=b.Cz)==null?0:P.itagDenylist)&&z.z$.nV(b.Cz.itagDenylist); if(b.state===4)qcQ(z,b),z.W&&Oif(z.W,b.info,z.K);else if(z.policy.wX&&b.jj()&&!b.isComplete()&&!qcQ(z,b)&&!b.Ks())break a;b.Ks()&&(JNf(z,b),isNaN(z.Ct)||(z.z$.HI(z.Ct),z.Ct=NaN));z.policy.Wy&&!b.isComplete()?MFf(z.z$):z.z$.uZ();var O=TXN(b,z.policy,z.X);xBY(z,b,O)}}}}}catch(R){D=z.Dt?1:0,z.Dt=!0,b=yn(D),D=Cd(R,D),z.z$.handleError(D.errorCode,D.details,D.severity),b||z.z$.Z_()}},B)}; EqY=function(z,p){if(p.q8&&p.state>=2&&p.state!==3){var c=p.xhr.getResponseHeader("X-Response-Itag");if(c){z.logger.debug(function(){return"Applying streamer-selected format "+c}); var B=QBu(z.D,c),H=p.info.D;H&&(H-=B.bX(),B.D=!0,p.info.b8[0].W.D=!1,suE(p,B.qx(H)),z9(z.z$,z.videoTrack,B),nTx(z.videoTrack,B),z.z$.Bz(B.info.video.quality),(H=p.aS())&&B.info.lastModified&&B.info.lastModified!==+H&&FX(z.videoTrack,p))}else p.q8=!1}}; JNf=function(z,p){var c=p.info.b8[0].W,B=p.bz();if(LS(c.j9.W)){var H=g.Pe(p.Tg(),3);z.z$.KH("dldbrerr",{em:H||"none"})}H=p.info.b8[0].pH;var T=Ul(z.W,p.info.b8[0].X,H);B==="net.badstatus"&&(z.V+=1);if(p.canRetry()&&YcV(z.z$)){if(!(p.info.j9.K>=z.policy.Zb&&z.K&&p.info.isDecorated()&&B==="net.badstatus"&&z.K.Gw(T,H))){H=(c.info.video&&c.j9.K>1||p.ZJ===410||p.ZJ===500||p.ZJ===503)&&!(fR(z.D.L).size>0)&&!LS(c.j9.W);T=p.xU();var b=c.info.video?z.videoTrack:z.audioTrack;H&&(T.stun="1");z.z$.handleError(B, T);z.qZ()||(H&&(z.logger.debug(function(){return"Stunning format "+c.info.id}),ib(z.D,c)),FX(b,p),z.z$.uZ())}}else b=1,z.K&&p.info.isDecorated()&&B==="net.badstatus"&&z.K.Gw(T,H)&&(b=0),z.xA.isLive&&p.bz()==="net.badstatus"&&z.V<=z.policy.Q3*2?(t4N(z.xA),z.xA.iZ||z.xA.isPremiere?Na(z.z$,0,{VL:"badStatusWorkaround"}):z.xA.X?Na(z.z$,z.xA.fH,{VL:"badStatusWorkaround", Zs:!0}):pv(z.z$)):z.z$.handleError(B,p.xU(),b)}; qcQ=function(z,p){if(z.policy.useUmp&&p.qZ())return!1;try{var c=p.info.b8[0].W,B=c.info.video?z.videoTrack:z.audioTrack;if(z.xA.isManifestless&&B){z.V=0;B.G&&(p.qZ(),p.isComplete()||p.jj(),B.G=!1);p.iX()&&z.z$.qN.kF(1,p.iX());var H=p.nM(),T=p.aN();L5(z.xA,H,T)}if(p.info.b_()&&!r8(p.info))for(var b=g.m(p.Ie()),D=b.next();!D.done;D=b.next())L4D(B,D.value);for(z.z$.getCurrentTime();B.D.length&&B.D[0].state===4;){var t=B.D.shift();Z5E(B,t);B.i8=t.UE()}B.D.length&&Z5E(B,B.D[0]);var X=!!fe(B);X&&p instanceof ne&&(c.info.aI()?XEY(z.timing):tMY(z.timing));return X}catch(x){p=p.xU();p.origin="hrhs";a:{z=z.z$;c=x;if(c instanceof Error){p.msg||(p.msg=""+c.message);p.name||(p.name=""+c.name);if(c instanceof g.z6&&c.args)for(B=g.m(Object.entries(c.args)),H=B.next();!H.done;H=B.next())T=g.m(H.value),H=T.next().value,T=T.next().value,p["arg"+H]=""+T;g.oc(c);if(c.level==="WARNING"){z.cq.gP(p);break a}}z.handleError("fmt.unplayable",p,1)}return!1}}; mBY=function(z){var p=z.videoTrack.W.index;z.zn=new cNY({BV:z.policy.BV,L2:z.policy.S.L2,OF:p.ob(),E1:function(){return p.E1()}, vg:function(){return p.vg()}})}; fa=function(z,p,c,B){var H=z.policy.L1?z.z$.Iv():0;c.Gg()||c.dl()||c.D||!Zj(c.j9,z.policy,z.X,H)||c.info.yI==="f"||z.policy.W||(B?(B=z.L,H=c.info,B=ZkY(B,H.video?B.policy.Fd:B.policy.wh,H.l8)):B=0,B=c.qx(B),z=VFS(z,B),r8(B)&&La(p,z),c.D=!0)}; ca=function(z,p,c,B,H,T,b,D){g.e.call(this);var t=this;this.z$=z;this.Nb=p;this.videoTrack=c;this.audioTrack=B;this.xA=H;this.U=T;this.isAudioOnly=b;this.G=D;this.K=ge;this.tD=!1;this.logger=new g.Xk("sabr");this.L=this.Dt=this.MZ=!1;this.videoInfos=this.S=this.U.videoInfos;this.D=this.T$=this.U.W;this.W=new Gh(p,T,function(X,x){t.z$.KH(X,x)}); this.Nb.n3||hiu(this);this.isAudioOnly&&PPV(this,this.xA.W["0"])}; ANE=function(z,p){var c=[];p=g.m(p);for(var B=p.next();!B.done;B=p.next())c.push(g.Tq(B.value,z.xA.La));return c}; PPV=function(z,p,c){p!==z.X&&(z.X&&(z.tD=!0),z.X=p,z.ox(p,z.videoTrack,c))}; Sc_=function(z,p){z.logger.debug("setConstraint: "+JP(p));g_(z.Nb)&&(z.Dt=p.reason==="m"||p.reason==="l"?!0:!1);p.reason==="m"?p.isLocked()&&OmB(z,p.W):wWW(z,p)?RiQ(z,p.K,p.W):z.videoInfos=z.S;z.K=p}; wWW=function(z,p){return z.Nb.D3&&p.reason==="b"||z.Nb.aW&&p.reason==="l"||z.Nb.rQ?!1:z.Nb.V9?!0:p.reason==="l"||p.reason==="b"||p.reason==="o"}; $Bi=function(z,p){return p.isLocked()&&z.W.K||z.K===void 0?!1:p.oI(z.K)}; KdB=function(z,p){var c,B=(c=z.X)==null?void 0:c.info.video.qualityOrdinal;return z.tD?!0:z.X?p!==B?!0:!z.W.K||z.Nb.j1&&z.W.W===z.X.info.itag?!1:!0:!1}; OmB=function(z,p){var c=z.W.W;if(c){z.videoInfos=z.S;var B=g.kL(z.videoInfos,function(H){return H.id===c}); B&&B.video.qualityOrdinal===p?z.videoInfos=[B]:(B=z.videoInfos.map(function(H){return H.id}),z.z$.KH("sabrpf",{pfid:""+c, vfids:""+B.join(".")}),RiQ(z,p,p),zH(z.W,""))}else RiQ(z,p,p)}; RiQ=function(z,p,c){z.videoInfos=z.S;z.videoInfos=g.M3(z.videoInfos,function(B){return B.video.qualityOrdinal>=p&&B.video.qualityOrdinal<=c})}; hiu=function(z){var p=KN_(z.W,z.G);p&&(z.D=[p])}; uBi=function(z,p,c){if(z.Nb.n3){if(z.G){var B=g.M3(z.D,function(H){return H.id===z.G}); return Ba(B,c).includes(p)}B=g.M3(z.D,function(H){var T;return!((T=H.bQ)==null||!T.isDefault)}); if(B.length>0)return Ba(B,c).includes(p)}return Ba(z.D,c).includes(p)}; Ba=function(z,p){return z.map(function(c){return Li(g.Tq(c,p))})}; a8B=function(z){var p;if((p=z.K)==null?0:p.isLocked())return z.videoInfos;var c=fR(z.W);p=g.M3(z.videoInfos,function(B){return B.l8>z.Nb.l8?!1:!c.has(B.id)}); $mV(z.W)&&(p=g.M3(p,function(B){return B.video.width<=854&&B.video.height<=480})); return p}; dBY=function(z,p,c,B){var H=z.xA,T=z.cq.getVideoData(),b=g.pT(T),D=z.PL,t=S8({QI:T.N(),cq:z.cq,BK:z.BK,Nb:z.Nb,lU:z.lU,qy:z.qy,lO:z.lO,uK:z.uK,LQ:z.LQ,isPrefetch:z.isPrefetch,UN:z.UN,sabrLicenseConstraint:T.sabrLicenseConstraint,Tb:z.Tb,Wg:z.Wg,YC:z.YC,rT:z.rT,zX3:!!D,qO:T.qO}),X=$2(T,z.YQ,z.nextRequestPolicy,z.Jq,z.T8,z.kg$,z.B7);B&&c&&(B=X.ju?X.ju.map(function(P){return P.type}):[],c("sabr",{stmctxt:B.join("_"), unsntctxt:X.ol?X.ol.join("_"):""}));B=z.NF;var x=z.JZ;if(x===void 0&&B===void 0){var E;x=ZmY(H.La,(E=z.F5)==null?void 0:E.video);var q;B=ZmY(H.La,(q=z.F5)==null?void 0:q.audio)}if(T.dL)var J=T.dL;T={aJ:t,QH:z.QH,NF:B,JZ:x,PL:D,videoPlaybackUstreamerConfig:J,fL:X};z.IH&&(T.IH=z.IH);if(b&&p){b=new Map;var M=g.m(H.YA);for(D=M.next();!D.done;D=M.next())D=D.value,(t=H.rA[UFY(H,D)]||"")?(b.has(t)||b.set(t,[]),b.get(t).push(D)):c&&c("ssap",{nocid4fmt:(D.itag||"")+"_"+(D.lmt||0)+"_"+(D.xtags||"")});H=new Map; M=g.m(z.yS);for(D=M.next();!D.done;D=M.next())D=D.value,t=D.startTimeMs||0,X=void 0,E=(X=p)==null?void 0:Ff(X,t),X=E.clipId,E=E.Xe,X?(H.has(X)||(q=b.get(X)||[],H.set(X,{clipId:X,yS:[],ZI:q})),E!==0&&(D.startTimeMs=t-E),H.get(X).yS.push(D)):c&&(X=void 0,c("ssap",{nocid4range:"1",fmt:((X=D.formatId)==null?void 0:X.itag)||"",st:t.toFixed(3),d:(D.durationMs||0).toFixed(3),timeline:Ha(p)}));T.eM=[];H=g.m(H.entries());for(b=H.next();!b.done;b=H.next())b=g.m(b.value),b.next(),b=b.next().value,T.eM.push(b); if(z.yS.length&&!T.eM.length){c&&c("ssap",{nobfrange:"1",br:Ldf(z.yS),timeline:Ha(p)});return}z.OA&&(T.OA=z.OA);z.nP&&(T.nP=z.nP)}else T.yS=z.yS,T.ZI=H.YA,b&&((M=z.yS)==null?void 0:M.length)>0&&!p&&c&&c("ssap",{bldmistlm:"1"});return T}; ZmY=function(z,p){return p?[g.Tq(p.info,z)]:[]}; Ldf=function(z){var p="";z=g.m(z);for(var c=z.next();!c.done;c=z.next()){c=c.value;var B=void 0,H=void 0,T=void 0;p+="fmt."+(((B=c.formatId)==null?void 0:B.itag)||"")+"_"+(((H=c.formatId)==null?void 0:H.lmt)||0)+"_"+(((T=c.formatId)==null?void 0:T.xtags)||"")+";st."+(c.startTimeMs||0).toFixed(3)+";d."+(c.durationMs||0).toFixed(3)+";"}return p}; ip=function(z,p,c){var B=this;this.requestType=z;this.j9=p;this.e9=c;this.K=null;this.Xg={T5I:function(){var H;return(H=B.data)==null?void 0:H.isPrefetch}, T8:function(){var H;return(H=B.data)==null?void 0:H.T8}}}; T8Y=function(z,p,c){p=us(z.j9,Wdi(z,p,c),p);z.rK()&&p.set("probe","1");return p}; Wdi=function(z,p,c){z.Fo===void 0&&(z.Fo=z.j9.Fo(p,c));return z.Fo}; yNQ=function(z){var p,c;return((p=z.W)==null?void 0:(c=p.aJ)==null?void 0:c.Wk)||0}; CPx=function(z){var p,c;return!!((p=z.W)==null?0:(c=p.aJ)==null?0:c.Tb)}; ei_=function(z){var p={},c=[],B=[];if(!z.data)return p;for(var H=0;H0;t--)c.push(D)}c.length!==b?p.error=!0:(T=c.slice(-T),c.length=H,b8Y(p,c,T));break;case 1:b8Y(p,Yn,pXu);break;case 0:VOu(p, p.W&7);c=va(p,16);H=va(p,16);(c^H)!==65535&&(p.error=!0);p.output.set(p.data.subarray(p.K,p.K+c),p.D);p.K+=c;p.D+=c;break;default:p.error=!0}z.D>z.output.length&&(z.output=new Uint8Array(z.D*2),z.D=0,z.K=0,z.X=!1,z.W=0,z.register=0)}z.output.length!==z.D&&(z.output=z.output.subarray(0,z.D));return z.error?new Uint8Array(0):z.output}; b8Y=function(z,p,c){p=i8Q(p);c=i8Q(c);for(var B=z.data,H=z.output,T=z.D,b=z.register,D=z.W,t=z.K;;){if(D<15){if(t>B.length){z.error=!0;break}b|=(B[t+1]<<8)+B[t]<>=7;X<0;)X=p[(b&1)-X],b>>=1;else b>>=X&15;D-=X&15;X>>=4;if(X<256)H[T++]=X;else if(z.register=b,z.W=D,z.K=t,X>256){b=hA[X];b+=va(z,mT[X]);t=TeY(z,c);D=lp[t];D+=va(z,cjf[t]);if(tOD&&bc.length&&(z.error=!0);z.register|=(c[B+1]<<8)+c[B]<=0)return VOu(z,c&15),c>>4;for(VOu(z,7);c<0;)c=p[va(z,1)-c];return c>>4}; va=function(z,p){for(;z.W=z.data.length)return z.error=!0,0;z.register|=z.data[z.K++]<>=p;z.W-=p;return c}; VOu=function(z,p){z.W-=p;z.register>>=p}; i8Q=function(z){for(var p=[],c=g.m(z),B=c.next();!B.done;B=c.next())B=B.value,p[B]||(p[B]=0),p[B]++;var H=p[0]=0;c=[];var T=0;B=0;for(var b=1;b7&&(T+=p[b]);for(H=1;H>t&1;D=T<<4|b;if(b<=7)for(t=1<<7-b;t--;)B[t<>=7;b--;){B[t]||(B[t]=-p,p+=2);var X=H&1;H>>=1;t=X-B[t]}B[t]=D}}return B}; XXY=function(z){var p,c,B,H,T,b,D;return g.L(function(t){switch(t.W){case 1:if(!("DecompressionStream"in window))return t.return(g.DbW(new g.BeS(z)));p=new DecompressionStream("gzip");c=p.writable.getWriter();c.write(z);c.close();B=p.readable.getReader();H=new $p([]);case 2:return g.a(t,B.read(),5);case 5:T=t.K;b=T.value;if(D=T.done){t.hD(4);break}H.append(b);t.hD(2);break;case 4:return t.return(H.S1())}})}; I5=function(z,p){this.W=z;this.Xm=p}; xbW=function(z){return OZ(OZ(hh(function(){return Ah(z.Xm,function(p){return z.FN(z.W,p)})}),function(){return z.m4(z.W)}),function(){return z.zH(z.W)})}; EWD=function(z,p){return xbW(new I5(z,p))}; MOv=function(z){a3.call(this,"onesie");this.j_=z;this.W={};this.D=!0;this.X=null;this.queue=new zef(this);this.L={};this.V=VEB(function(p,c){var B=this;return function T(){var b,D,t,X,x,E,q,J,M,P,O,R,K,Z,W,v,zY,U,HD,VW;return xvQ(T,function(f){switch(f.W){case 1:g.wu(f,2);B.j_.Oi();b=function(F){return function(N){throw{name:F,message:N};}}; D=p.S1();g.Ox(f,4,5);if(!c){f.hD(7);break}return VQD(f,OZ(qtY(B.j_,D,B.iv),b("DecryptError")).wait(),8);case 8:t=f.K;case 7:if(!B.j_.enableCompression){f.hD(9);break}return VQD(f,OZ(EWD((E=t)!=null?E:D,B.j_.N().Ye),b("DecompressError")).wait(),10);case 10:X=f.K;case 9:x=gQ((J=(q=X)!=null?q:t)!=null?J:D,DTB);case 5:g.$B(f,0,2);if(P=(M=B.j_.N())==null?void 0:M.Xm)((O=t)==null?void 0:O.buffer)===P.exports.memory.buffer&&P.free(t.byteOffset),((R=X)==null?void 0:R.buffer)===P.exports.memory.buffer&&P.free(X.byteOffset); g.K_(f,6);break;case 4:throw Z=K=g.SQ(f),new W2("onesie.response.parse",{name:(U=Z.name)!=null?U:"unknown",message:(HD=Z.message)!=null?HD:"unknown",wasm:((W=B.j_.N())==null?0:W.Xm)?((v=B.j_.N())==null?0:(zY=v.Xm)==null?0:zY.yd)?"1js":"1":"0",enc:B.D,gz:B.j_.enableCompression,webcrypto:!!aN()});case 6:return JjB(x),VW=g.Cb(x.body),f.return(VW);case 2:g.$B(f),g.K_(f,0)}})}()})}; Ytu=function(z){var p=z.queue;p.W.length&&p.W[0].isEncrypted&&!p.K&&(p.W.length=0);p=g.m(Object.keys(z.W));for(var c=p.next();!c.done;c=p.next()){c=c.value;var B=z.W[c];if(!B.Pp){var H=z.queue;H.W.push({videoId:B.videoId,formatId:c,isEncrypted:!1});H.K||Mw(H)}}}; heE=function(z,p){var c=p.getLength(),B=!1;switch(z.X){case 0:z.j_.Y("html5_future_onesie_ump_handler_on_player_response")?OZ(Ah(z.V(p,z.D),function(H){mbN(z.j_,H)}),function(H){z.j_.MS(H)}):z.Oi(p,z.D).then(function(H){mbN(z.j_,H)},function(H){z.j_.MS(H)}); break;case 2:z.Fm("ormk");p=p.S1();z.queue.decrypt(p);break;default:B=!0}z.j_.EP&&z.j_.KH("ombup","id.11;pt."+z.X+";len."+c+(B?";ignored.1":""));z.X=null}; JjB=function(z){if(z.vP!==1)throw new W2("onesie.response.badproxystatus",{st:z.vP,webcrypto:!!aN(),textencoder:!!g.jQ.TextEncoder});if(z.Wa!==200)throw new W2("onesie.response.badstatus",{st:z.Wa});}; PiV=function(z){return new Promise(function(p){setTimeout(p,z)})}; AjN=function(z,p){var c=z.N();c=z.JH&&c.Y("html5_onesie_preload_use_content_owner");var B=z.iH,H=iP(p.Wq.experiments,"debug_bandaid_hostname");if(H)p=Ep(p,H);else if((c===void 0?0:c)&&(B==null?0:B.url)&&!p.K){var T=ZW(new g.uF(B.url));p=Ep(p,T)}else p=(T=p.W.get(0))==null?void 0:T.location.clone();if(p&&z.videoId){T=Ec(z.videoId);z=[];if(T)for(T=g.m(T),c=T.next();!c.done;c=T.next())z.push(c.value.toString(16).padStart(2,"0"));p.set("id",z.join(""));return p}}; O8N=function(z,p,c){c=c===void 0?0:c;var B,H;return g.L(function(T){if(T.W==1)return B=[],B.push(p.load()),c>0&&B.push(PiV(c)),g.a(T,Promise.race(B),2);H=AjN(z,p);return T.return(H)})}; wXN=function(z,p,c,B){B=B===void 0?!1:B;z.set("cpn",p.clientPlaybackNonce);z.set("opr","1");var H=p.N();z.set("por","1");aN()||z.set("onem","1");p.startSeconds>0&&z.set("osts",""+p.startSeconds);B||(H.Y("html5_onesie_disable_partial_segments")&&z.set("oses","1"),p=H.Y("html5_gapless_onesie_no_media_bytes")&&ta(p)&&p.JH,c&&!p?(p=c.audio,z.set("pvi",c.video.join(",")),H.Y("html5_onesie_disable_audio_bytes")||z.set("pai",p.join(",")),HW||z.set("osh","1")):(z.set("oad","0"),z.set("ovd","0"),z.set("oaad", "0"),z.set("oavd","0")))}; ReY=function(z,p,c,B,H){H=H===void 0?!1:H;var T="https://youtubei.googleapis.com/youtubei/"+p.mu.innertubeApiVersion+"/player",b=[{name:"Content-Type",value:"application/json"}];B&&b.push({name:"Authorization",value:"Bearer "+B});b.push({name:"User-Agent",value:g.Zm()});g.pN("EOM_VISITOR_DATA")?b.push({name:"X-Goog-EOM-Visitor-Id",value:g.pN("EOM_VISITOR_DATA")}):(c=c.visitorData||g.pN("VISITOR_DATA"))&&b.push({name:"X-Goog-Visitor-Id",value:c});(c=g.pN("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&b.push({name:"X-YouTube-Lava-Device-Context", value:c});(p=iP(p.experiments,"debug_sherlog_username"))&&b.push({name:"X-Youtube-Sherlog-Username",value:p});z=vY(JSON.stringify(z));return{url:T,xK:b,postBody:z,Oi8:H,hk:H}}; $bD=function(z,p,c,B,H,T){var b=g.q9(z,VDN,z.hk?void 0:c.Xm),D={encryptedClientKey:p.W.encryptedClientKey,qM:!0,qU:!0,m2:StN(c,!!z.hk),l4:c.experiments.JD("html5_use_jsonformatter_to_parse_player_response")};if(z.hk)D.x_a=b;else{z=p.encrypt(b);var t;if(((t=c.Xm)==null?void 0:t.exports.memory.buffer)===b.buffer&&z.byteOffset!==b.byteOffset){var X;(X=c.Xm)==null||X.free(b.byteOffset)}var x;z=((x=c.Xm)==null?void 0:x.Gu(z))||z;b=D.uI=z;(0,g.y2)();b=ggV(new kyQ(p.W.D),b,p.iv);D.kJ=b;D.iv=p.iv}p=B.getVideoData(); c=S8({QI:c,cq:B,BK:p.startSeconds*1E3});H={g3:D,aJ:c,onesieUstreamerConfig:H,Um:T,fL:$2(p)};p.reloadPlaybackParams&&(H.reloadPlaybackParams=p.reloadPlaybackParams);return H}; KYf=function(z,p,c){var B,H,T;return g.L(function(b){if(b.W==1)return B=g.q9(p,VDN),g.a(b,Q6S(c,B),2);if(b.W!=3)return H=b.K,g.a(b,rNf(c,H),3);T=b.K;return b.return({uI:H,encryptedClientKey:c.W.encryptedClientKey,iv:c.iv,kJ:T,qM:!0,qU:!0,m2:StN(z,!!p.hk),l4:z.experiments.JD("html5_use_jsonformatter_to_parse_player_response")})})}; uDf=function(z,p,c,B,H,T){var b,D,t,X;return g.L(function(x){if(x.W==1)return g.a(x,KYf(c,z,p),2);b=x.K;D=B.getVideoData();t=S8({QI:c,cq:B,BK:D.startSeconds*1E3});X={g3:b,aJ:t,onesieUstreamerConfig:H,Um:T,fL:$2(D)};D.reloadPlaybackParams&&(X.reloadPlaybackParams=D.reloadPlaybackParams);return x.return(X)})}; StN=function(z,p){z=Km(z.schedule,!0);p=p||!!aN()&&z>1572864;return"DecompressionStream"in window||!p}; FN=function(z,p){g.e.call(this);var c=this;this.cq=z;this.playerRequest=p;this.logger=new g.Xk("onesie");this.xhr=null;this.state=1;this.oP=new BS;this.yr=!1;this.playerResponse="";this.qB=new Th(this);this.Fn=new MOv(this);this.jX="";this.qT=this.Vg=!1;this.On="";this.enableCompression=this.RO=this.uB=!1;this.Fp=[];this.rM=this.BQ=-1;this.Wq=this.cq.N();this.videoData=this.cq.getVideoData();this.EP=this.Wq.OW();this.lq=this.Wq.j1;this.LG=new XN(this.lq.W,this.Wq.Ye,l8_(this.Wq));this.Yf=this.Wq.Y("html5_onesie_check_timeout"); this.q3=new g.B4(this.hM,500,this);this.cL=new g.B4(this.Vt,1E4,this);this.Pv=new g.B4(function(){if(!c.isComplete()){var B=jH(c);c.MS(new W2("net.timeout",B))}},1E3); this.VW=new g.B4(this.PQA,2E3,this);this.Qv=this.cq.Eq();this.Oy=this.Y("html5_onesie_wait_for_media_availability");g.l(this.videoData,this);g.l(this,this.q3);g.l(this,this.cL);g.l(this,this.VW);g.l(this,this.LG);z=bP();HW&&z&&(this.VR=new Map);this.AG=new Map;this.Ys=new Map;this.eL=new Map;this.qH=new Map}; JA=function(z,p){var c;return(c=z.VR)==null?void 0:c.get(p)}; Z8V=function(z,p,c){var B;return g.L(function(H){if(H.W==1)return z.Fm("oprd_s"),a3x(z)?g.a(H,UBY(z.LG,p,c),3):(B=z.LG.decrypt(p,c),H.hD(2));H.W!=2&&(B=H.K);z.Fm("oprd_c");return H.return(B)})}; qtY=function(z,p,c){z.Fm("oprd_s");p=nqN(z.LG).encrypt(p,c);Ah(p,function(){z.Fm("oprd_c")}); return p}; LYB=function(z){return z.Y("html5_onesie_host_probing")||z.EP?HW:!1}; mbN=function(z,p){z.Fm("oprr");z.playerResponse=p;z.RO||(z.Oy=!1);o5(z)}; o5=function(z){if(!z.playerResponse)return!1;if(z.uB)return!0;var p=z.videoData.Y("html5_onesie_audio_only_playback")&&Xl(z.videoData);if(z.VR&&z.Oy){if(!z.VR.has(z.jX))return!1;var c=z.VR.get(z.jX),B;if(B=c){B=!1;for(var H=g.m(c.dU.keys()),T=H.next();!T.done;T=H.next())if(T=c.dU.get(T.value))for(var b=g.m(T.xC),D=b.next();!D.done;D=b.next())D.value.FL>0&&(T.aI?B=!0:p=!0);B=!(p&&B)}if(B)return!1}z.Fm("ofr");z.oP.resolve(z.playerResponse);if(!z.Yf){var t;(t=z.Pv)==null||t.start();z.cL.start()}return z.uB= !0}; WYY=function(z){if(z.VR&&!z.Y("html5_onesie_media_capabilities")){z.Fm("ogsf_s");var p=etB(z.cq.getVideoData(),function(B,H){z.KH(B,H)}),c=dbS(z.cq); p.video=Kpi(c,p.video);z.Fm("ogsf_c");if(p.video.length)return p;z.KH("ombspf","l."+c.K+";u."+c.W+";o."+c.D+";r."+c.reason)}}; a3x=function(z,p){return z.Y("html5_onesie_sync_request_encryption")||(p==null?0:p.hk)||g.HX(z.Wq)&&z.Y("html5_embed_onesie_use_sync_encryption")?!1:!!aN()}; jH=function(z){if(!z.mY)return{};var p=z.mY.lF(),c;p.d=(c=z.mY.Ra)==null?void 0:c.M_();p.shost=z.At;p.ty="o";return p}; yjW=function(z,p){var c,B;(B=(z=(c=z.VR)==null?void 0:c.get(p))==null)||(p=z.D?!1:z.D=!0,B=!p);return!B}; CiY=function(z,p,c,B,H,T,b,D,t,X,x){g.e.call(this);var E=this;this.cq=z;this.z$=p;this.policy=c;this.audioTrack=B;this.videoTrack=H;this.xA=T;this.Tl=b;this.NZ=D;this.D=t;this.timing=X;this.U=x;this.W=[];this.G={};this.i8=this.OH=!1;this.Jq=new Set;this.L=this.rA=this.MZ=this.LQ=0;this.X=null;this.tD={yS:[],QH:[]};this.T$={yS:[],QH:[]};this.V=null;this.fH=[];this.Xg={NK8:function(){return E.W}, z93:function(){return E.G}, tbq:function(){E.W.length=0}, q0$:function(){return E.Jq}, VF0:function(){return E.MZ}, Fri:function(q){E.MZ=q}, Te$:function(q){E.L=q}, gF:function(q){E.V=q}}; this.videoData=this.cq.getVideoData();this.policy.EB&&(this.YA=new GH(this.z$,this.policy,this.Tl),g.l(this,this.YA))}; vWV=function(z,p){p=p===void 0?!1:p;if(eeE(z,p)){z.policy.G&&z.z$.KH("sabrcrq",{create:1});var c=new ip(0,z.xA.S,z);z.policy.sF>0&&z.L++;p=l3B(z,c,p);z.W.push(p);var B;(B=z.YA)==null||BX_(B,z.xA.S)}}; oWB=function(z,p){var c=I3u(z);if(z.policy.wp){var B=z.tD;var H=z.T$}else B=nv(z,z.audioTrack),H=nv(z,z.videoTrack);var T=[].concat(g.A(B.yS),g.A(H.yS));z.policy.WM&&z.V&&T.push.apply(T,g.A(z.fH));var b=[].concat(g.A(B.QH),g.A(H.QH)),D=z.z$.Nr(),t,X,x=z.cq,E=z.xA,q=z.K,J=z.Jq,M=z.policy,P=z.z$.lU,O=XWW(z.z$)*1E3,R=(t=z.Ra)==null?void 0:t.lO;t=(X=z.Ra)==null?void 0:X.uK;var K;X=Number((K=z.D.X)==null?void 0:K.info.itag)||0;var Z;K=Number((Z=z.D.V)==null?void 0:Z.info.itag)||0;p={cq:x,xA:E,yS:T,QH:b, BK:c,nextRequestPolicy:q,Jq:J,Nb:M,lU:P,qy:O,lO:R,uK:t,LQ:z.LQ,isPrefetch:p||z.z$.isSuspended,OA:X,nP:K,YQ:D,B7:z.cq.gV()};c=z.z$.QQ();T=Ec(c);c&&(p.T8=T);if(c=z.cq.p6())p.Tb=c*1E3;var W;c=z.D;T=c.MZ;if((c.Nb.K&&c.Nb.Zj||((W=c.Nb)==null?0:W.W&&W.vO))&&!T)for(W=g.m(c.D),b=W.next();!b.done;b=W.next())if(b.value.bQ){T=!0;break}W=g_(c.Nb)&&!T?[]:ANE(c,c.D);p.NF=W;W=z.D;g_(W.Nb)&&!W.Dt?W=[]:(c=a8B(W),c.length===0&&(c=W.S),W=ANE(W,c));p.JZ=W;p.PL=z.policy.WM&&z.V?[z.V]:void 0;z.policy.KV&&(p.YC=jdf(z.z$, z.audioTrack),p.rT=jdf(z.z$,z.videoTrack));if(z.policy.L){B=FYE(z,B.yS,H.yS);var v;if(H=(v=z.X)==null?void 0:v.ML(B))p.IH=H}z.policy.fH&&z.W.length>0&&z.W[0].Rq()&&(p.kg$=z.W[0].cE());return p}; I3u=function(z){var p,c=z.policy.V&&((p=z.z$)==null?void 0:p.cB());p=z.z$.getCurrentTime()||0;p=nWB(z,p);var B=z.z$.e_()||0;p+=B;B=CT(z.videoData)||g.yN(z.videoData);var H=0;c?(B&&(H=Number.MAX_SAFE_INTEGER),z.videoData.YA&&(H=Math.ceil(z.videoData.fH*1E3))):H=Math.ceil(p*1E3);return Math.min(Number.MAX_SAFE_INTEGER,H)}; nWB=function(z,p){if(z.z$.isSeeking())return p;var c=z.cq.h1();if(!c)return p;c=c.zO();if(c.length===0||Jw(c,p))return p;if(!QMQ(z.videoTrack,p)&&!QMQ(z.audioTrack,p))return z.z$.KH("sundrn",{b:0,lt:p}),p;for(var B=p,H=Infinity,T=0;Tp)){var b=p-c.end(T);b=20)?(z.z$.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),p):B}; FYE=function(z,p,c){var B=z.z$.getCurrentTime()||0;p=QdS(z,p,B);z=QdS(z,c,B);return Math.min(p,z)}; QdS=function(z,p,c){z=z.z$.e_()||0;p=g.m(p);for(var B=p.next();!B.done;B=p.next()){var H=B.value;B=H.startTimeMs?H.startTimeMs/1E3-z:0;H=B+(H.durationMs?H.durationMs/1E3:0);if(B<=c&&c<=H)return H}return c}; eeE=function(z,p){if(z.policy.sF>0){var c=Math.floor((0,g.y2)()/1E4);if(c===z.rA){if(z.L>=z.policy.sF){if(z.L===z.policy.sF){var B={reason:"toomanyrequests"};B.limit=z.L;z.z$.handleError("player.exception",B);z.L+=1}return!1}}else z.rA=c,z.L=0}p=!p&&!uP(z.Tl)&&!z.policy.UF;if(z.z$.isSuspended&&(z.z$.KM||p))return!1;if(z.Dt&&(0,g.y2)()0&&(!z.policy.fH||z.W.length!==1||!z.W[0].Rq()))return!1;var H;if((H=z.xA.S)==null||!Zj(H,z.policy,z.G,z.z$.Iv()))return!1; H=z.policy.b3&&z.policy.K&&z.z$.Wf();if(na(z.audioTrack)&&na(z.videoTrack)&&!H)return!1;if(z.policy.K&&z.S&&!z.z$.Wf())return z.kA("ssap",{pauseontlm:1}),!1;if(Ql(z,z.audioTrack)&&Ql(z,z.videoTrack))return z.policy.D&&z.z$.KH("sabrHeap",{a:""+eJ(z.audioTrack),v:""+eJ(z.videoTrack)}),!1;if(H=z.policy.L)H=!1,z.U.K===2?H=!0:z.U.K===3&&(I3u(z),z.z$.e_(),p=FYE(z,WC(z.audioTrack,z.z$.isSeeking()).yS,WC(z.videoTrack,z.z$.isSeeking()).yS),c=z.U,p>=c.L?(c.KH("sdai",{haltrq:p,est:c.L}),p=!0):p=!1,p&&(H=!0)), H&&z.policy.G&&z.z$.KH("sabrcrq",{waitad:1});if(H)return!1;z.policy.wp&&(z.tD=nv(z,z.audioTrack),z.T$=nv(z,z.videoTrack));if(!z.K)return z.policy.G&&z.z$.KH("sabrcrq",{nopolicy:1}),!0;if(z.cq.p6())return z.policy.G&&z.z$.KH("sabrcrq",{utc:1}),!0;if(z.D.L)return z.policy.G&&z.z$.KH("sabrcrq",{audio:1}),!0;if(!z.K.targetAudioReadaheadMs||!z.K.targetVideoReadaheadMs)return z.policy.G&&z.z$.KH("sabrcrq",{noreadahead:1}),!0;if(z.policy.V&&z.z$.cB())return z.policy.G&&z.z$.KH("sabrcrq",{seekToHead:1}), !0;H=Math.min(sB(z.z$,z.audioTrack)*1E3,z.K.targetAudioReadaheadMs);p=Math.min(sB(z.z$,z.videoTrack)*1E3,z.K.targetVideoReadaheadMs);var T=Math.min(H,p);c=vC(z.audioTrack,!0)*1E3;var b=vC(z.videoTrack,!0)*1E3;if(z.policy.wp){var D=z.cq.getCurrentTime()*1E3;var t=rjW(z.tD.yS,D);D=rjW(z.T$.yS,D)}else t=c,D=b;var X=tp||B>=0&&H.jA>B+1)break;c=Math.max(c,H.startTimeMs+H.durationMs);B=Math.max(B,H.Ma)}return Math.max(0,c-p)}; l3B=function(z,p,c){var B={Tl:z.Tl,Lm:function(t,X){z.cq.LU(t,X)}, b_:z.policy.E_,zQ:z.policy.D};z.Tl.K.V&&(B.Fe=(z.videoTrack.W.info.l8||0)+(z.audioTrack.W.info.l8||0));z.policy.xG&&(B.OF=z.audioTrack.W.index.ob(),B.b_=!1);var H=Wdi(p,z.policy,z.G)?2:1;H!==z.MZ&&(z.MZ=H,kUi(z));c=oWB(z,c);if((z.policy.K||z.policy.fH)&&z.policy.D&&c.Jq){for(var T=H="",b=g.m(c.Jq),D=b.next();!D.done;D=b.next())D=D.value,z.videoData.sabrContextUpdates.has(D)?H+="_"+D:T+="_"+D;z.z$.KH("sabrbldrqs",{ctxts:H,misctxts:T})}p.setData(c,z.z$.Wf(),z.policy,z.G)||!z.policy.K&&!z.policy.fH|| z.z$.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);B=new vm(z.policy,p,z.xA,z.G,z,B,z.z$.Eq(),z.policy.SK?z.z$.Wf():void 0);I3(z.timing);z.policy.G&&z.z$.KH("sabrcrq",{rn:B.sP(),probe:p.rK()});return B}; sp=function(z,p){if(p.qZ()||z.qZ())z.policy.s_||(z.policy.V?Up(z.z$):z.z$.uZ());else{if(z.policy.D&&p.isComplete()&&p instanceof vm){var c=z.z$,B=c.KH,H,T,b=Object.assign(p.mY.lF(),{rst:p.state,strm:p.xhr.SX(),d:(H=p.mY.Ra)==null?void 0:H.M_(),cncl:p.xhr&&p.rU.X?1:0,rqb:p.MM,cwt:p.JE,swt:(T=p.Jt)==null?void 0:T.ME});H=Object.assign(ei_(p.info),b);B.call(c,"rqs",H)}if(p.isComplete()&&p.rK()&&p instanceof vm)z.policy.LB?p.uW()?(p.dispose(),z.W.length===0?z.z$.uZ():(z=z.W[0],z instanceof vm&&z.jF()&& z.A6())):p.Ks()&&z.z$.handleError(p.bz(),p.xU()):(p.dispose(),z.z$.uZ());else{if(p.Yk())p instanceof vm&&mmQ(z.timing,p),kUi(z),gW_(z);else if(p.Ks())c=z.cq.p6(),p instanceof vm&&CPx(p.info)&&c&&z.z$.HI(c),p instanceof FN?z.W.pop():(c=1,p.canRetry()&&YcV(z.z$)&&(GUV(z,p),c=0),z.z$.handleError(p.bz(),p.xU(),c));else{if(z.z$.isSuspended&&!p.isComplete())return;gW_(z)}p.qZ()||p instanceof FN||(p.isComplete()?c=TXN(p,z.policy,z.G):(c=imu(p,z.policy,z.G),c===1&&(z.OH=!0)),c!==0&&(B=new ip(1,p.info.j9), B.Fo=c===2,l3B(z,B)));z.policy.Wy&&!p.isComplete()?MFf(z.z$):z.z$.uZ()}}}; gW_=function(z){for(;z.W.length&&z.W[0].fO(z.uA());){var p=z.W.shift();NeB(z,p);if(z.policy.L){var c=z;if(!c.policy.CH&&p.fO(c.uA())){var B=p.sP();if(c.Zt!==B){var H=p.vp();p=H.BQ;var T=H.rM;H=H.isDecorated;!c.X||T<0||(c.Zt=B,B=Ul(c.U,T/1E3,p),T=c.z$.e_()||0,nR(c.U,p,B-T,H,c.X))}}}}z.W.length&&NeB(z,z.W[0])}; NeB=function(z,p){var c=new Set(p.z5(z.uA()));c=g.m(c);for(var B=c.next();!B.done;B=c.next()){var H=B.value;if(!(B=!(p instanceof FN))){B=z.D;var T=B.xA.La,b=Ba(B.videoInfos,T);T=uBi(B,H,T);var D=b.includes(H);!B.Nb.IB||T||D||B.z$.KH("sabrcpf",{fid:""+H,vfids:""+b.join("."),said:B.G||""});B=T||b.includes(H)}if(B&&(B=p.iU(H,z.uA()),b=z.policy.WM&&Di(B[0].W.info.mimeType),(!(!b&&z.policy.Bj&&B.length>0&&(B[0].W.info.aI()?vC(z.audioTrack):vC(z.videoTrack))>3)||p.isComplete())&&p.jj(H,z.uA()))){H=p.Ie(H, z.uA());if(z.policy.K&&(T=B[0].W.info,(D=z.z$.Wf())&&T)){var t=p.bI();D.api.Y("html5_ssap_set_format_info_on_video_data")&&t===oa(D)&&(T.aI()?D.playback.getVideoData().X=T:D.playback.getVideoData().K=T);if(D=kn(D.timeline,t))if(D=D[0].getVideoData())T.aI()?D.X=T:D.K=T}H=g.m(H);for(T=H.next();!T.done;T=H.next())if(T=T.value,z.policy.D&&p instanceof FN&&z.z$.KH("omblss",{s:T.info.hH()}),b)D=z,D.videoData.La()&&D.V&&Li(D.V)===Li(g.Tq(T.info.W.info,D.xA.La))&&D.cq.publish("sabrCaptionsDataLoaded",T,D.rF.bind(D)); else{D=T.info.W.info.aI();var X=T.info.W;if(D){t=void 0;var x=z.D,E=(t=p.Ea(z.uA()))==null?void 0:t.token;x.Nb.dJ&&x.L&&X!==x.V?t=!0:(x.L=!1,X!==x.V&&(x.V=X,x.ox(X,x.audioTrack,E)),t=!1);if(z.policy.dJ&&t)continue}else t=void 0,PPV(z.D,X,(t=p.Ea(z.uA()))==null?void 0:t.token);t=D?z.audioTrack:z.videoTrack;p instanceof FN&&(t.G=!1,p instanceof FN&&(D?XEY(z.timing):tMY(z.timing)));try{d_(t,B,T)}catch(q){T=Cd(q),z.z$.handleError(T.errorCode,T.details,T.severity),t.Z_(),z.e0(!1,"pushSlice"),Up(z.z$)}}}}}; GUV=function(z,p){z.policy.fH?z.W.splice(z.W.indexOf(p)).forEach(function(c){c.dispose()}):(z.W.pop(),p==null||p.dispose())}; f3x=function(z,p,c){for(var B=[],H=0;H0)for(var p=g.m(z.videoData.sabrContextUpdates.keys()),c=p.next();!c.done;c=p.next()){c=c.value;var B=void 0;((B=z.videoData.sabrContextUpdates.get(c))==null?0:B.sendByDefault)&&z.Jq.add(c)}if(z.policy.fH&&z.W.length)for(p=g.m(z.W),c=p.next();!c.done;c=p.next())(c=c.value.cE())&&c.type&&c.sendByDefault&&z.Jq.add(c.type)}; ca_=function(z){z.policy.ow&&(z.Ra=void 0,z.LQ=0)}; BGN=function(z,p){if(p.Ks()||p.qZ()){var c=z.z$,B=c.KH,H=p.state;z=z.uA();var T,b;if((p=(T=p.VR)==null?void 0:T.get(z))==null)p=void 0;else{T=0;z=p.z5();for(var D=0;D=z.policy.KJ,b=!1;if(T){var D=0;!isNaN(p)&&p>z.L&&(D=p-z.L,z.L=p);D/H=z.policy.Ob&&!z.D;if(!T&&!c&&DkD(z,p))return NaN;c&&(z.D=!0);a:{B=b;c=(0,g.y2)()/1E3-(z.L8.Fu()||0)-z.G.W-z.policy.Lv;T=z.K.startTime;c=T+c;if(B){if(isNaN(p)){gE(z,NaN,"n",p);T=NaN;break a}B=p-z.policy.B0;B=T.X&&B<=T.V){B=!0;break a}B=!1}B=!B}if(B)return z.KH("ostmf",{ct:z.getCurrentTime(),a:p.W.info.aI()}),!1;(z=z.Dt)!=null&&(z.dU.get(c).a4=!0);return!0}; MNv=function(z){if(!z.xA.La)return!0;var p=z.cq.getVideoData();if(z.cq.If())return z.KH("ombpa",{}),!1;var c,B;if(z.policy.sD&&!!((c=z.MZ)==null?0:(B=c.yg)==null?0:B.qFZ)!==z.xA.iZ)return z.KH("ombplmm",{}),!1;c=p.gt||p.liveUtcStartSeconds||p.vO;if(z.xA.iZ&&c)return z.KH("ombplst",{}),!1;if(z.xA.U)return z.KH("ombab",{}),!1;c=Date.now();return dm(z.xA)&&!isNaN(z.tD)&&c-z.tD>z.policy.y9*1E3?(z.KH("ombttl",{}),!1):z.xA.Rj&&z.xA.X||!z.policy.Jb&&z.xA.isPremiere||!(Oe(p)===0||z.policy.W&&p.Y("html5_enable_onesie_media_for_sabr_proxima_optin"))|| p.Y("html5_disable_onesie_media_for_mosaic")&&gG(p)||p.Y("html5_disable_onesie_media_for_ssdai")&&p.isDaiEnabled()&&p.enableServerStitchedDai||p.Y("html5_disable_onesie_media_for_lifa_eligible")&&kI(p)?!1:!0}; Yei=function(z,p){var c=p.W,B=z.xA.La;if(MNv(z))if(z.Dt&&z.Dt.dU.has(Li(g.Tq(c.info,B)))){if(B=Li(g.Tq(c.info,B)),Jai(z,p)){var H=new Qz(z.Dt.iU(B)),T=function(b){try{if(b.Ks())z.handleError(b.bz(),b.xU()),FX(p,b),UV(b.info)&&fa(z.L,p,c,!0),z.uZ();else if(qcQ(z.L,b)){var D;(D=z.X)==null||Oif(D,b.info,z.S);z.uZ()}}catch(t){b=Cd(t),z.handleError(b.errorCode,b.details,b.severity),z.Z_()}}; c.D=!0;r8(H)&&(La(p,new ne(z.policy,B,H,z.Dt,T)),I3(z.timing))}}else z.KH("ombfmt",{})}; mkY=function(z,p){p=p||z.videoTrack&&z.videoTrack.K&&z.videoTrack.K.startTime||z.getCurrentTime();var c=z9,B=z.videoTrack,H=z.W;p=H.nextVideo&&H.nextVideo.index.Hn(p)||0;H.T$!==p&&(H.YA={},H.T$=p,BC(H,H.W));p=!H.W.isLocked()&&H.U>-1&&(0,g.y2)()-H.Up.W&&p.reason==="b";B||H||c?(z.cq.gP({reattachOnConstraint:B?"u":H?"drm":"perf",lo:p.K,up:p.W}),z.policy.j1||(z.K.W.K=!1)):(z.policy.j1&&(z.K.W.K=!1),Up(z))}}else if(!WNQ(z.W,p)&&z.videoTrack){z.logger.debug(function(){return"Setting constraint: r="+p.reason+" u="+p.W}); c=z.W.W;$kY(z,CsE(z.W,p));mkY(z);B=p.isLocked()&&p.reason==="m"&&z.W.Dt;H=z.policy.xY&&p.reason==="l"&&Qd(z.videoTrack);c=c.W>p.W&&p.reason==="b";var T=z.W.NZ&&!wr();B||H||c||T?z.cq.gP({reattachOnConstraint:B?"u":H?"drm":T?"codec":"perf"}):Up(z)}}; ulE=function(z,p,c){if((!z.G$||Gq(z.G$)&&!z.policy.L9)&&!z.Wn.isSeeking()&&(z.policy.W||Qd(p)&&p.W.Gg()&&z.W.MZ)){var B=z.getCurrentTime()+L7i(z.U,p,c);z.logger.debug(function(){return"Clearing back to "+B.toFixed(3)}); eDY(p,B)}}; $kY=function(z,p){p&&(z.logger.debug(function(){return"Logging new format: "+Xb(p.video.info)}),at_(z.cq,new gA(p.video,p.reason))); if(z.W.OH){var c=Iji(z.W,"a");z.cq.SI(new gA(c.audio,c.reason))}}; Up=function(z){g.H4(z.RR)}; MFf=function(z){z.policy.Wy&&z.policy.wX&&Math.min(C2V(z.videoTrack),C2V(z.audioTrack))*1E3>z.policy.Hj?g.H4(z.WM):z.uZ()}; ZTQ=function(z,p){var c=(0,g.y2)()-p,B=vC(z.audioTrack,!0)*1E3,H=vC(z.videoTrack,!0)*1E3;z.logger.debug(function(){return"Appends paused for "+c}); if(z.policy.D&&(z.KH("apdpe",{dur:c.toFixed(),abuf:B.toFixed(),vbuf:H.toFixed()}),ko(z.policy))){var T=ld(z.U);z.KH("sdps",{ct:p,ah:B.toFixed(),vh:H.toFixed(),mr:vK(z.U,z.xO,T),bw:T.toFixed(),js:z.isSeeking(),re:+z.xO,ps:(z.policy.cA||"").toString(),rn:(z.policy.rr||"").toString()})}}; L9f=function(z){if(z.policy.K&&U$(z.videoTrack)&&U$(z.audioTrack))return"ssap";if(oTW(z.videoTrack))return z.logger.debug("Pausing appends for server-selectable format"),"ssf";if(z.policy.NZ&&UOi(z.videoTrack)&&UOi(z.audioTrack))return"updateEnd";if(na(z.audioTrack)||na(z.videoTrack)&&z.videoTrack.W.info.yI!=="f")return"";if(z.Wn.isSeeking()){var p=z.U;var c=z.videoTrack;var B=z.audioTrack;if(p.policy.W){var H=p.policy.Rz;ko(p.policy)&&(H=vK(p,!1,ld(p)));p=H;c=vC(B,!0)>=p&&vC(c,!0)>=p}else c.D.length|| B.D.length?(H=c.W.info.l8+B.W.info.l8,H=10*(1-ld(p)/H),p=Math.max(H,p.policy.Rz),c=vC(B,!0)>=p&&vC(c,!0)>=p):c=!0;if(!c)return"abr";c=z.videoTrack;if(c.D.length>0&&c.X.K.length===1&&XwQ(c.X).info.S360);B=ko(z.policy)&&z.policy.U_;if(!z.xO||!B&&c)return"";c=z.policy.hq;ko(z.policy)&&(c=vK(z.U,z.xO,ld(z.U)));c=vTD(z.videoTrack, z.getCurrentTime(),c)||vTD(z.audioTrack,z.getCurrentTime(),c);return ko(z.policy)?c?"mbnm":"":(z.videoTrack.D.length>0||z.audioTrack.D.length>0||bmY(z.L,z.videoTrack,z.audioTrack)||bmY(z.L,z.audioTrack,z.videoTrack))&&c?"nord":""}; dk_=function(z){if(z.G){var p=z.G.uZ(z.audioTrack,YK(z.G$.K.UR()));p&&z.cq.seekTo(p,{dG:!0,VL:"pollSubsegmentReadahead",Zs:!0})}}; Itv=function(z,p,c){if(z.policy.NZ&&UOi(p))return!1;if(c.Sn())return!0;if(!c.SJ())return!1;var B=fe(p);if(!B||B.info.type===6)return!1;var H=z.policy.iV;if(H&&!B.info.L){var T=B.info.X-z.getCurrentTime();if(B.info.ST)return z.policy.W&&CrY(z,p),z.policy.H_&&QnY(p.X,T,!1),!1;eMu(z,p);var D;z.policy.wJ&&c===((D=z.G$)==null?void 0:D.W)&&z.Zt&&(c.k0()===0?(z.Zt=!1,z.policy.wJ=!1):z.CH=c.k0());if(!ltY(z,c,B,p))return!1;z.policy.NZ&&B.info.NS()?(z.cq.N().OW()&&z.KH("eosl",{ls:B.info.hH()}), B.isLocked=!0):(p.RY(B),v3i(z.W,B.info),z.logger.debug(function(){return"Appended "+B.info.hH()+", buffered: "+EI(c.UR())})); H&&vIY(z,B.info.W.NN);return!0}; CrY=function(z,p){p===z.videoTrack?z.fH=z.fH||(0,g.y2)():z.Ra=z.Ra||(0,g.y2)()}; eMu=function(z,p){p===z.videoTrack?z.fH=0:z.Ra=0}; ltY=function(z,p,c,B){var H=z.policy.Ca?(0,g.y2)():0,T=c.L&&c.info.W.W||void 0,b=c.W;c.L&&(b=jyY(z,c,b)||b);var D=b.S1();b=z.policy.Ca?(0,g.y2)():0;p=F9Q(z,p,D,c.info,T);(B=B.U)!=null&&(T=c.info,H=b-H,b=(0,g.y2)()-b,!B.K||zAB(B.K,T)&&B.K.pH===T.pH||B.flush(),B.X+=H,B.D+=b,H=1,!B.K&&T.K&&(H=2),DZ(B,H,p),b=Math.ceil(T.K/1024),H===2&&B.W.add(b),B.W.add(Math.ceil((T.K+T.D)/1024)-b),B.K=T);z.T$=0;if(p===0)return z.rA&&(z.logger.debug("Retry succeed, back to normal append logic."),z.rA=!1,z.UH=!1),z.sH= 0,!0;if(p===2||p===5)return oIf(z,"checked",p,c.info),!1;if(p===1){if(!z.rA)return z.logger.debug("QuotaExceeded, retrying."),z.rA=!0,!1;if(!z.UH)return z.UH=!0,z.cq.seekTo(z.getCurrentTime(),{VL:"quotaExceeded",Zs:!0}),!1;c.info.Ni()?(H=z.policy,H.i8=Math.floor(H.i8*.8),H.tD=Math.floor(H.tD*.8)):(H=z.policy,H.UH=Math.floor(H.UH*.8),H.tD=Math.floor(H.tD*.8));z.policy.W?Nn(z.K.W,c.info.W,!1):ib(z.W,c.info.W)}z.cq.gP({reattachOnAppend:p});return!1}; jyY=function(z,p,c){var B;if(B=z.policy.wS&&z.G$&&!z.G$.S&&!z.cq.mE())p=p.info.W.info,B=p.Q4()&&Ne(p)&&p.video&&p.video.width<3840&&p.video.width>p.video.height;if(B&&(z.G$.S=!0,Ir('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=DOv(c),z.policy.D&&z.KH("sp4k",{s:!!c}),c}; oIf=function(z,p,c,B){var H="fmt.unplayable",T=1;c===5||c===3?(H="fmt.unparseable",z.policy.W?!B.W.info.video||fR(z.K.W).size>0||Nn(z.K.W,B.W,!1):!B.W.info.video||fR(z.W.L).size>0||ib(z.W,B.W)):c===2&&(z.sH<15?(z.sH++,H="html5.invalidstate",T=0):H="fmt.unplayable");B=oB(B);var b;B.mrs=(b=z.G$)==null?void 0:pg(b);B.origin=p;B.reason=c;z.handleError(H,B,T)}; $OD=function(z,p,c,B,H){var T=z.xA;var b=z.policy.W,D=!1,t=-1,X;for(X in T.W){var x=Di(T.W[X].info.mimeType)||T.W[X].info.Ni();if(B===x)if(x=T.W[X].index,x.WW(p.pH)){D=x;var E=p,q=D.W1(E.pH);q&&q.startTime!==E.startTime?(D.segments=[],D.QD(E),D=!0):D=!1;D?t=p.pH:!p.pending&&b&&(E=x.getDuration(p.pH),E!==p.duration&&(T.publish("clienttemp","mfldurUpdate",{itag:T.W[X].info.itag,seg:p.pH,od:E,nd:p.duration},!1),x.QD(p),D=!0))}else x.QD(p),D=!0}t>=0&&(b={},T.publish("clienttemp","resetMflIndex",(b[B? "v":"a"]=t,b),!1));T=D;kai(z.Wn,p,B,T);z.X.iT(p,c,B,H);if(z.policy.A8&&c){var J;(J=z.EW)!=null&&J.D.set(p.pH,c)}p.pH===z.xA.Rj&&T&&K5(z.xA)&&p.startTime>K5(z.xA)&&(z.xA.fH=p.startTime+(isNaN(z.timestampOffset)?0:z.timestampOffset),z.Wn.isSeeking()&&z.Wn.W 5)return z.T$=0,z.cq.gP({initSegStuck:1,as:B.info.hH()}),!0}else z.T$=0,z.Zw=B;z.policy.Ug&&(c.abort(),(b=p.U)!=null&&(DZ(b,4),b.flush()));H=F9Q(z,c,T,t,H);var X;(X=p.U)==null||sBf(X,H,t);if(H!==0)return nIQ(z,H,B),!0;B.info.Ni()?qVD(z.timing):JRV(z.timing);z.logger.debug(function(){return"Appended init for "+B.info.W.info.id}); vIY(z,B.info.W.NN);return c.bf()}; W9D=function(z,p,c){if(p.Vc()==null){z=ZZ(z);if(!(p=!z||z.W!==c.info.W)){a:if(z=z.U,c=c.info.U,z.length!==c.length)c=!1;else{for(p=0;p1)return 6;t.YA=new g.B4(function(){var X=fe(t);z.qZ()||X==null||!X.isLocked?z.cq.N().OW()&&z.KH("eosl",{delayA:X==null?void 0:X.info.hH()}):QyQ(t)?(z.cq.N().OW()&&z.KH("eosl",{dunlock:X==null?void 0:X.info.hH()}),raQ(z, t===z.audioTrack)):(z.KH("nue",{ls:X.info.hH()}),X.info.MZ+=1,z.G$&&z.xQ())},1E4,z); z.cq.N().OW()&&z.KH("eosl",{delayS:B.hH()});t.YA.start()}z.policy.z1&&(B==null?void 0:B.W)instanceof k3&&B.NS()&&z.KH("poseos",{itag:B.W.info.itag,seg:B.pH,lseg:B.W.index.E1(),es:B.W.index.D});p.appendBuffer(c,B,H)}catch(X){if(X instanceof DOMException){if(X.code===11)return 2;if(X.code===12)return 5;if(X.code===22||X.message.indexOf("Not enough storage")===0)return p=Object.assign({name:"QuotaExceededError",buffered:EI(p.UR()).replace(/,/g,"_"),vheap:eJ(z.videoTrack),aheap:eJ(z.audioTrack),message:g.Pe(X.message, 3),track:z.G$?p===z.G$.K?"v":"a":"u"},xk_()),z.handleError("player.exception",p),1;g.Fr(X)}return 4}return z.G$.QE()?3:0}; Na=function(z,p,c){z.cq.seekTo(p,c)}; vIY=function(z,p){p&&z.cq.D6(new Yo(p.key,p.type))}; AF=function(z,p){z.cq.Bv(p)}; sB=function(z,p){if(z.rA&&!z.xO)return 3;if(z.isSuspended)return 1;var c;if((c=z.G$)==null?0:c.G$&&c.G$.streaming===!1)return 4;c=(p.W.info.audio?z.policy.UH:z.policy.i8)/(p.l8*z.policy.Dp);if(z.policy.pJ>0&&z.G$&&Gq(z.G$)&&(p=p.W.info.video?z.G$.K:z.G$.W)&&!p.bf()){p=p.UR();var B=qF(p,z.getCurrentTime());B>=0&&(p=z.getCurrentTime()-p.start(B),c+=Math.max(0,Math.min(p-z.policy.pJ,z.policy.gy)))}z.policy.tD>0&&(c=Math.min(c,z.policy.tD));return c}; jdf=function(z,p){return(sB(z,p)+z.policy.cK)*p.l8}; syu=function(z){z.NZ&&!z.isSuspended&&uP(z.schedule)&&(Uku(z,z.NZ),z.NZ="")}; Uku=function(z,p){WK(p,"cms",function(c){z.policy.D&&z.KH("pathprobe",c)},function(c){z.cq.handleError(c)})}; kzi=function(z,p){if(z.G$&&z.G$.X&&!z.G$.QE()&&(p.Uc=vC(z.videoTrack),p.K=vC(z.audioTrack),z.policy.D)){var c=eJ(z.videoTrack),B=eJ(z.audioTrack),H=EI(z.G$.K.UR(),"_",5),T=EI(z.G$.W.UR(),"_",5);Object.assign(p.W,{lvq:c,laq:B,lvb:H,lab:T})}p.bandwidthEstimate=Ce(z.U);var b;(b=z.audioTrack.U)==null||b.flush();var D;(D=z.videoTrack.U)==null||D.flush();z.logger.debug(function(){return dB(p.W)})}; gIB=function(z,p){z.S=p;z.X&&(z.X.D=p);z.S.l0(z.videoTrack.W.info.Q4());z.L.K=z.S;z.policy.L&&(z.D.X=z.S)}; zhi=function(z,p){if(z.G$&&z.G$.K){if(z.policy.Np){var c=gTE(z.audioTrack);if(c&&c.aI()){var B=z.cq;if(B.Xb&&(B.Xb.W=c,c=B.S9(B.Xb.videoId),c.qoe)){c=c.qoe;B=B.Xb;var H=g.z8(c.provider);GzY(c,H,B)}}}z.policy.PN&&(c=gTE(z.videoTrack))&&c.Ni()&&(B=z.cq,B.n1&&(B.n1.W=c,c=B.S9(B.n1.videoId),c.qoe&&NGx(c.qoe,B.n1)));p-=isNaN(z.timestampOffset)?0:z.timestampOffset;z.getCurrentTime()!==p&&z.resume();z.Wn.isSeeking()&&z.G$&&!z.G$.QE()&&(B=z.getCurrentTime()<=p&&p=0&&T1?D.K[0]=p&&EIx(z,B.startTime,!1)}); return c&&c.startTimez.getCurrentTime())return c.start/1E3;return Infinity}; iPS=function(z){var p=ZZ(z.videoTrack),c=ZZ(z.audioTrack);return p&&!kmW(z.videoTrack)?p.startTime:c&&!kmW(z.audioTrack)?c.startTime:NaN}; sdi=function(z){if(z.cq.getVideoData().isLivePlayback)return!1;var p=z.cq.h1();if(!p)return!1;p=p.getDuration();return UbS(z,p)}; UbS=function(z,p){if(!z.G$||!z.G$.W||!z.G$.K)return!1;var c=z.getCurrentTime(),B=z.G$.W.UR();z=z.G$.K.UR();B=B?MF(B,c):c;c=z?MF(z,c):c;c=Math.min(B,c);return isNaN(c)?!1:c>=p-.01}; nIQ=function(z,p,c){z.policy.So&&ta(z.cq.getVideoData())?(z.cq.bJ()||oIf(z,"sepInit",p,c.info),T$Y(z.cq,"sie")):oIf(z,"sepInit",p,c.info)}; YcV=function(z){return z.cq.Iv()0){var H=B.W.shift();VqN(B,H.info)}B.W.length>0&&(H=B.W[0].time-(0,g.y2)(),B.K.start(Math.max(0,H)))}},0); g.l(this,this.K);p.subscribe("widevine_set_need_key_info",this.L,this)}; VqN=function(z,p){a:{var c=p.cryptoPeriodIndex;if(isNaN(c)&&z.D.size>0)c=!0;else{for(var B=g.m(z.D.values()),H=B.next();!H.done;H=B.next())if(H.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}z.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||z.publish("rotated_need_key_info_ready",p)}; D0u=function(){var z={};var p=z.url;var c=z.interval;z=z.retries;this.url=p;this.interval=c;this.retries=z}; tq_=function(z,p){this.statusCode=z;this.message=p;this.K=this.heartbeatParams=this.errorMessage=null;this.W={};this.nextFairplayKeyId=null}; XvN=function(z,p,c){c=c===void 0?"":c;g.e.call(this);this.message=z;this.requestNumber=p;this.y8=c;this.onError=this.onSuccess=null;this.W=new g.u4(5E3,2E4,.2)}; x0E=function(z,p,c){z.onSuccess=p;z.onError=c}; qSx=function(z,p,c,B){var H={timeout:3E4,onSuccess:function(T){if(!z.qZ()){kw("drm_net_r",void 0,z.y8);var b=T.status==="LICENSE_STATUS_OK"?0:9999,D=null;if(T.license)try{D=Ay(T.license)}catch(M){g.Fr(M)}if(b!==0||D){D=new tq_(b,D);b!==0&&T.reason&&(D.errorMessage=T.reason);if(T.authorizedFormats){b={};for(var t=[],X={},x=g.m(T.authorizedFormats),E=x.next();!E.done;E=x.next())if(E=E.value,E.trackType&&E.keyId){var q=EGE[E.trackType];if(q){q==="HD"&&T.isHd720&&(q="HD720");E.isHdr&&(q+="HDR");b[q]|| (t.push(q),b[q]=!0);var J=null;try{J=Ay(E.keyId)}catch(M){g.Fr(M)}J&&(X[g.hy(J,4)]=q)}}D.K=t;D.W=X}T.nextFairplayKeyId&&(D.nextFairplayKeyId=T.nextFairplayKeyId);T.sabrLicenseConstraint&&(D.sabrLicenseConstraint=Ay(T.sabrLicenseConstraint));T=D}else T=null;if(T)z.onSuccess(T,z.requestNumber);else z.onError(z,"drm.net","t.p;p.i")}}, onError:function(T){if(!z.qZ())if(T&&T.error)T=T.error,z.onError(z,"drm.net.badstatus","t.r;p.i;c."+T.code+";s."+T.status,T.code);else z.onError(z,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){z.onError(z,"drm.net","rt.req."+z.requestNumber)}}; B&&(H.Y4="Bearer "+B);g.bI(c,"player/get_drm_license",p,H)}; J1D=function(z,p,c,B){g.JQ.call(this);this.videoData=z;this.Wq=p;this.S=c;this.sessionId=B;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.MZ=this.Dt=!1;this.D=null;this.tD=[];this.X=[];this.qO=[];this.G=!1;this.W={};this.status="";this.V=NaN;this.K=z.L;this.cryptoPeriodIndex=c.cryptoPeriodIndex;z={};Object.assign(z,this.Wq.W);z.cpn=this.videoData.clientPlaybackNonce;this.videoData.Dt&&(z.vvt=this.videoData.Dt,this.videoData.mdxEnvironment&&(z.mdx_environment=this.videoData.mdxEnvironment)); this.Wq.tD&&(z.authuser=this.Wq.tD);this.Wq.pageId&&(z.pageid=this.Wq.pageId);isNaN(this.cryptoPeriodIndex)||(z.cpi=this.cryptoPeriodIndex.toString());var H=(H=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Zm()))?H[1]:"";H==="ATV"&&(z.cdt=H);this.L=z;this.L.session_id=B;this.U=!0;this.K.flavor==="widevine"&&(this.L.hdr="1");this.K.flavor==="playready"&&(p=Number(iP(p.experiments,"playready_first_play_expiration")),!isNaN(p)&&p>=0&&(this.L.mfpe=""+p),this.U=!1);p="";g.rm(this.K)?Qr(this.K)?(B=c.K)&&(p="https://www.youtube.com/api/drm/fps?ek="+ vBB(B)):(p=c.initData.subarray(4),p=new Uint16Array(p.buffer,p.byteOffset,p.byteLength/2),p=String.fromCharCode.apply(null,p).replace("skd://","https://")):p=this.K.K;this.baseUrl=p;this.fairplayKeyId=Ng(this.baseUrl,"ek")||"";if(p=Ng(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(p);this.tD=c.Q4?[g.hy(c.initData,4)]:c.D;iy(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; hhY=function(z,p){iy(z,{createkeysession:1});z.status="gr";kw("drm_gk_s",void 0,z.videoData.OH);z.url=MqN(z);try{z.D=p.createSession(z.S,function(c){iy(z,{m:c})})}catch(c){p="t.g"; c instanceof DOMException&&(p+=";c."+c.code);z.publish("licenseerror","drm.unavailable",1,p,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}z.D&&(YSY(z.D,function(c,B){m0N(z,c,B)},function(c,B,H){if(!z.qZ()){B=void 0; var T=1;g.rm(z.K)&&g.FB(z.Wq)&&z.Wq.Y("html5_enable_safari_fairplay")&&H===1212433232&&(B="ERROR_HDCP",T=z.Wq.Y("html5_safari_fairplay_ignore_hdcp")?0:T);z.error("drm.keyerror",T,c,B)}},function(){z.qZ()||(iy(z,{onkyadd:1}),z.MZ||(z.publish("sessionready"),z.MZ=!0))},function(c){z.MD(c)}),g.l(z,z.D))}; MqN=function(z){var p=z.baseUrl;V_B(p)||z.error("drm.net",2,"t.x");if(!Ng(p,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(H){return z.Wq.experiments.experiments[H]}); c.length>0&&(z.L.fexp=c.join())}c=g.m(Object.keys(z.L));for(var B=c.next();!B.done;B=c.next())B=B.value,p=OHx(p,B,z.L[B]);return p}; m0N=function(z,p,c){if(!z.qZ())if(p){iy(z,{onkmtyp:c});z.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Pgf(z,p);return;default:z.publish("ctmp","message_type",{t:c,l:p.byteLength})}z.Dt||(kw("drm_gk_f",void 0,z.videoData.OH),z.Dt=!0,z.publish("newsession",z));if(FJ(z.K)&&(p=A1V(p),!p))return;p=new XvN(p,++z.requestNumber,z.videoData.OH);x0E(p,function(B){OPB(z,B)},function(B,H,T){if(!z.qZ()){var b=0; B.W.K>=3&&(b=1,H="drm.net.retryexhausted");iy(z,{onlcsrqerr:H,info:T});z.error(H,b,T);z.shouldRetry(yn(b),B)&&wvY(z,B)}}); g.l(z,p);RhN(z,p)}else z.error("drm.unavailable",1,"km.empty")}; Pgf=function(z,p){iy(z,{sdpvrq:1});z.V=Date.now();if(z.K.flavor!=="widevine")z.error("drm.provision",1,"e.flavor;f."+z.K.flavor+";l."+p.byteLength);else{var c={cpn:z.videoData.clientPlaybackNonce};Object.assign(c,z.Wq.W);c=g.g6("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);p={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, p)}),responseType:"arraybuffer"};g.e9(c,p,3,500).then(Kk(function(B){B=B.xhr;if(!z.qZ()){B=new Uint8Array(B.response);var H=String.fromCharCode.apply(null,B);try{var T=JSON.parse(H)}catch(b){}T&&T.signedResponse?(z.publish("ctmp","drminfo",{provisioning:1}),T=(Date.now()-z.V)/1E3,z.V=NaN,z.publish("ctmp","provs",{et:T.toFixed(3)}),z.D&&z.D.update(B)):(T=T&&T.error&&T.error.message,B="e.parse",T&&(B+=";m."+T),z.error("drm.provision",1,B))}}),Kk(function(B){z.qZ()||z.error("drm.provision",1,"e."+B.errorCode+ ";c."+(B.xhr&&B.xhr.status))}))}}; T8=function(z){var p;if(p=z.U&&z.D!=null)z=z.D,p=!(!z.W||!z.W.keyStatuses);return p}; RhN=function(z,p){z.status="km";kw("drm_net_s",void 0,z.videoData.OH);var c=new g.Ty(z.Wq.mu),B={context:g.m2(c.config_||g.Yc())};B.drmSystem=SSY[z.K.flavor];B.videoId=z.videoData.videoId;B.cpn=z.videoData.clientPlaybackNonce;B.sessionId=z.sessionId;B.licenseRequest=g.hy(p.message);B.drmParams=z.videoData.drmParams;isNaN(z.cryptoPeriodIndex)||(B.isKeyRotated=!0,B.cryptoPeriodIndex=z.cryptoPeriodIndex);var H,T,b=!!((H=z.videoData.K)==null?0:(T=H.video)==null?0:T.isHdr());B.drmVideoFeature=b?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(B.context&&B.context.client){if(H=z.Wq.W)B.context.client.deviceMake=H.cbrand,B.context.client.deviceModel=H.cmodel,B.context.client.browserName=H.cbr,B.context.client.browserVersion=H.cbrver,B.context.client.osName=H.cos,B.context.client.osVersion=H.cosver;B.context.user=B.context.user||{};B.context.request=B.context.request||{};z.videoData.Dt&&(B.context.user.credentialTransferTokens=[{token:z.videoData.Dt,scope:"VIDEO"}]);B.context.request.mdxEnvironment=z.videoData.mdxEnvironment|| B.context.request.mdxEnvironment;z.videoData.RR&&(B.context.user.kidsParent={oauthToken:z.videoData.RR});g.rm(z.K)&&(B.fairplayKeyId=g.hy(IVx(z.fairplayKeyId)));g.tj(z.Wq,g.se(z.videoData)).then(function(D){qSx(p,B,c,D);z.status="rs"})}else z.error("drm.net",2,"t.r;ic.0")}; OPB=function(z,p){if(!z.qZ())if(iy(z,{onlcsrsp:1}),z.status="rr",p.statusCode!==0)z.error("drm.auth",1,"t.f;c."+p.statusCode,p.errorMessage||void 0);else{kw("drm_kr_s",void 0,z.videoData.OH);if(p.heartbeatParams&&p.heartbeatParams.url&&z.videoData.Y("outertube_streaming_data_always_use_staging_license_service")){var c=z.K.K.match(/(.*)youtube.com/g);c&&(p.heartbeatParams.url=c[0]+p.heartbeatParams.url)}p.heartbeatParams&&z.publish("newlicense",p.heartbeatParams);p.K&&(z.X=p.K,z.videoData.D3||z.publish("newlicense", new D0u),z.videoData.D3=!0,z.G=ln(z.X,function(B){return B.includes("HDR")})); p.W&&(z.Wq.Y("html5_enable_vp9_fairplay")&&Qr(z.K)?(c=g.hy(IVx(z.fairplayKeyId),4),z.W[c]={type:p.W[c],status:"unknown"}):z.W=$0(p.W,function(B){return{type:B,status:"unknown"}})); n5(z.K)&&(p.message=ypY(g.hy(p.message)));z.D&&(iy(z,{updtks:1}),z.status="ku",z.D.update(p.message).then(function(){kw("drm_kr_f",void 0,z.videoData.OH);T8(z)||(iy(z,{ksApiUnsup:1}),z.publish("keystatuseschange",z))},function(B){B="msuf.req."+z.requestNumber+";msg."+g.Pe(B.message,3); z.error("drm.keyerror",1,B)})); g.rm(z.K)&&z.publish("fairplay_next_need_key_info",z.baseUrl,p.nextFairplayKeyId);z.Wq.Y("html5_enable_vp9_fairplay")&&Qr(z.K)&&z.publish("qualitychange",$0Y(z.X));p.sabrLicenseConstraint&&z.publish("sabrlicenseconstraint",p.sabrLicenseConstraint)}}; wvY=function(z,p){var c=p.W.getValue();c=new g.B4(function(){RhN(z,p)},c); g.l(z,c);c.start();g.az(p.W);iy(z,{rtyrq:1})}; Kbx=function(z,p){for(var c=[],B=g.m(Object.keys(z.W)),H=B.next();!H.done;H=B.next())H=H.value,c.push(H+"_"+z.W[H].type+"_"+z.W[H].status);return c.join(p)}; u7_=function(z){var p={};p[z.status]=T8(z)?Kbx(z,"."):z.X.join(".");return p}; a7_=function(z){switch(z){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; by=function(z,p){for(var c in z.W)if(z.W[c].status==="usable"&&z.W[c].type===p)return!0;return!1}; ZPW=function(z,p){for(var c in z.W)if(z.W[c].type===p)return z.W[c].status}; iy=function(z,p){var c=c===void 0?!1:c;dB(p);(c||z.Wq.OW())&&z.publish("ctmp","drmlog",p)}; Lbx=function(z){var p=z[0];z[0]=z[3];z[3]=p;p=z[1];z[1]=z[2];z[2]=p;p=z[4];z[4]=z[5];z[5]=p;p=z[6];z[6]=z[7];z[7]=p}; $0Y=function(z){return g.Gv(z,"UHD2")||g.Gv(z,"UHD2HDR")?"highres":g.Gv(z,"UHD1")||g.Gv(z,"UHD1HDR")?"hd2160":g.Gv(z,"HD")||g.Gv(z,"HDHDR")?"hd1080":g.Gv(z,"HD720")||g.Gv(z,"HD720HDR")?"hd720":"large"}; A1V=function(z){for(var p="",c=0;c'.charCodeAt(B);z=z.D.createSession("video/mp4",p,c);return new VU(null,null,null,null,z)}; l7u=function(z,p){var c=z.V[p.sessionId];!c&&z.X&&(c=z.X,z.X=null,c.sessionId=p.sessionId,z.V[p.sessionId]=c);return c}; y1Y=function(z,p){var c=z.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var B="",H=0;H=0&&z.push(B);z=parseFloat(z.join("."))}else z=NaN;z>19.2999?(z=c.H_,c=c.SB,c>=z&&(c=z*.75),p=(z-c)*.5,c=new B5(p,z,z-p-c,this)):c=null;break a;case "widevine":c=new H5(p,this,z);break a;default:c=null}if(this.L=c)g.l(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.Tp,this),this.L.subscribe("log_qoe",this.Yw,this);sP(this.Wq.experiments);this.Yw({cks:this.W.getInfo()})}; Qaf=function(z){var p=z.X.aq();p?p.then(Kk(function(){UEx(z)}),Kk(function(c){if(!z.qZ()){g.Fr(c); var B="t.a";c instanceof DOMException&&(B+=";n."+c.name+";m."+c.message);z.publish("licenseerror","drm.unavailable",1,B,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(z.Yw({mdkrdy:1}),z.U=!0); z.MZ&&(p=z.MZ.aq())}; kHu=function(z,p,c){z.rA=!0;c=new Yo(p,c);z.Wq.Y("html5_eme_loader_sync")&&(z.V.get(p)||z.V.set(p,c));sai(z,c)}; sai=function(z,p){if(!z.qZ()){z.Yw({onInitData:1});if(z.Wq.Y("html5_eme_loader_sync")&&z.videoData.D&&z.videoData.D.W){var c=z.G.get(p.initData);p=z.V.get(p.initData);if(!c||!p)return;p=c;c=p.initData;z.V.remove(c);z.G.remove(c)}z.Yw({initd:p.initData.length,ct:p.contentType});if(z.W.flavor==="widevine")if(z.Ra&&!z.videoData.isLivePlayback)XM(z);else{if(!(z.Wq.Y("vp9_drm_live")&&z.videoData.isLivePlayback&&p.Q4)){z.Ra=!0;c=p.cryptoPeriodIndex;var B=p.W;H5f(p);p.Q4||(B&&p.W!==B?z.publish("ctmp","cpsmm", {emsg:B,pssh:p.W}):c&&p.cryptoPeriodIndex!==c&&z.publish("ctmp","cpimm",{emsg:c,pssh:p.cryptoPeriodIndex}));z.publish("widevine_set_need_key_info",p)}}else z.Tp(p)}}; UEx=function(z){if(!z.qZ())if(z.Wq.Y("html5_drm_set_server_cert")||Qr(z.W)){var p=z.X.setServerCertificate();p?p.then(Kk(function(c){z.Wq.OW()&&z.publish("ctmp","ssc",{success:c})}),Kk(function(c){z.publish("ctmp","ssce",{n:c.name, m:c.message})})).then(Kk(function(){goY(z)})):goY(z)}else goY(z)}; goY=function(z){z.qZ()||(z.U=!0,z.Yw({onmdkrdy:1}),XM(z))}; GH_=function(z){return z.W.flavor==="widevine"&&z.videoData.Y("html5_drm_cpi_license_key")}; XM=function(z){if((z.rA||z.Wq.Y("html5_widevine_use_fake_pssh"))&&z.U&&!z.T$){for(;z.D.length;){var p=z.D[0],c=GH_(z)?i5Y(p):g.hy(p.initData);if(Qr(z.W)&&!p.K)z.D.shift();else{if(z.K.get(c))if(z.W.flavor!=="fairplay"||Qr(z.W)){z.D.shift();continue}else z.K.delete(c);H5f(p);break}}z.D.length&&z.createSession(z.D[0])}}; N_Y=function(z){var p;if(p=g.GQ()){var c;p=!((c=z.X.K)==null||!c.getMetrics)}p&&(p=z.X.getMetrics())&&(p=g.Cb(p),z.publish("ctmp","drm",{metrics:p}))}; fZY=function(){var z=jAS();return!(!z||z==="visible")}; paN=function(z){var p=zQS();p&&document.addEventListener(p,z,!1)}; cAQ=function(z){var p=zQS();p&&document.removeEventListener(p,z,!1)}; zQS=function(){if(document.visibilityState)var z="visibilitychange";else{if(!document[PL+"VisibilityState"])return"";z=PL+"visibilitychange"}return z}; BEY=function(z){g.e.call(this);var p=this;this.cq=z;this.jl=0;this.V=this.K=this.L=!1;this.X=0;this.QI=this.cq.N();this.videoData=this.cq.getVideoData();this.D=g.P3(this.QI.experiments,"html5_delayed_retry_count");this.W=new g.B4(function(){p.cq.hv()},g.P3(this.QI.experiments,"html5_delayed_retry_delay_ms")); g.l(this,this.W)}; VHf=function(z,p,c){var B=z.videoData.K,H=z.videoData.X;ta(z.cq.getVideoData())&&z.QI.Y("html5_gapless_fallback_on_qoe_restart")&&T$Y(z.cq,"pe");if((p==="progressive.net.retryexhausted"||p==="fmt.unplayable"||p==="fmt.decode")&&!z.cq.au.L&&B&&B.itag==="22")return z.cq.au.L=!0,z.ZP("qoe.restart",{reason:"fmt.unplayable.22"}),z.cq.xP(),!0;var T=!1;if(z.videoData.isExternallyHostedPodcast){if(T=z.videoData.j2)c.mimeType=T.type,z.KH("3pp",{url:T.url});c.ns="3pp";z.cq.OI(p,1,"VIDEO_UNAVAILABLE",dB((new W2(p, c,1)).details));return!0}var b=z.jl+3E4<(0,g.y2)()||z.W.isActive();if(z.QI.Y("html5_empty_src")&&z.videoData.isAd()&&p==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",z.ZP("auth",c),!0;b||xa(z.cq.wC())||(c.nonfg="paused",b=!0,z.cq.pauseVideo());(p==="fmt.decode"||p==="fmt.unplayable")&&(H==null?0:c6(H)||B6(H))&&(FO_(z.QI.L,H.yI),c.acfallexp=H.yI,T=b=!0);!b&&z.D>0&&(z.W.start(),b=!0,c.delayed="1",--z.D);H=z.cq.z$;!b&&((B==null?0:pZ(B))||(B==null?0:Ne(B)))&&(FO_(z.QI.L,B.yI), T=b=!0,c.cfallexp=B.yI);if(z.QI.Y("html5_ssap_ignore_decode_error_for_next_video")&&g.pT(z.videoData)&&p==="fmt.unplayable"&&c.cid&&c.ccid&&xa(z.cq.wC())){if(c.cid!==c.ccid)return c.ignerr="1",z.ZP("ssap.transitionfailure",c),!0;z.ZP("ssap.transitionfailure",c);if(HvV(z.cq,p))return!0}if(!b)return ivV(z,c);if(z.QI.Y("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.pT(z.videoData)&&p==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&xa(z.cq.wC())&&(z.ZP("ssap.transitionfailure",c),HvV(z.cq, p)))return!0;b=!1;z.L?z.jl=(0,g.y2)():b=z.L=!0;var D=z.videoData;if(D.UH){D=D.UH.EE();var t=Date.now()/1E3+1800;D=D6048E5&&xwB(z,"signature");return!1}; xwB=function(z,p){try{window.location.reload(),z.ZP("qoe.restart",{detail:"pr."+p})}catch(c){}}; qpE=function(z,p){p=p===void 0?"fmt.noneavailable":p;var c=z.QI.L;c.G=!1;D8(c);z.ZP("qoe.restart",{e:p,detail:"hdr"});z.cq.hv(!0)}; JAx=function(z,p,c,B,H,T){this.videoData=z;this.W=p;this.reason=c;this.K=B;this.token=H;this.videoId=T}; MHD=function(z,p,c){this.Wq=z;this.Tz=p;this.cq=c;this.S=this.V=this.W=this.X=this.G=this.K=0;this.L=!1;this.U=g.P3(this.Wq.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.D=new Map}; mwu=function(z,p,c){!z.Wq.Y("html5_tv_ignore_capable_constraint")&&g.yi(z.Wq)&&(c=c.compose(Ypx(z,p)));return c}; hQf=function(z){if(z.cq.wC().isInline())return ge;var p;z.Y("html5_exponential_memory_for_sticky")?p=a6(z.Wq.vO,"sticky-lifetime")<.5?"auto":EJ[Qg()]:p=EJ[Qg()];return g.tP("auto",p,!1,"s")}; AAS=function(z,p){var c,B=PpV(z,(c=p.W)==null?void 0:c.videoInfos);c=z.cq.getPlaybackRate();return c>1&&B?(z=CBS(z.Wq.L,p.W.videoInfos,c),new DW(0,z,!0,"o")):new DW(0,0,!1,"o")}; PpV=function(z,p){return p&&g.yi(z.Wq)?p.some(function(c){return c.video.fps>32}):!1}; OvW=function(z,p){var c=z.cq.r7();z.Y("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.EL>0&&xt(p.videoData.c_)&&(z=c.EL,p.videoData.c_=new DW(0,z,!1,"u"));return p.videoData.c_}; Ypx=function(z,p){if(g.yi(z.Wq)&&$t(z.Wq.L,KS.HEIGHT))var c=p.W.videoInfos[0].video.qualityOrdinal;else{var B=!!p.W.W;var H;g.I6(z.Wq)&&(H=window.screen&&window.screen.width?new g.Ao(window.screen.width,window.screen.height):null);H||(H=z.Wq.dh?z.Wq.dh.clone():z.Tz.fD());(cL||bb||B)&&H.scale(g.p8());B=H;Xl(p.videoData)||Gz(p.videoData);p=p.W.videoInfos;if(p.length){H=g.P3(z.Wq.experiments,"html5_override_oversend_fraction")||.85;var T=p[0].video;T.projectionType!=="MESH"&&T.projectionType!=="EQUIRECTANGULAR"&& T.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||lP||(H=.45);z=g.P3(z.Wq.experiments,"html5_viewport_undersend_maximum");for(T=0;T0&&(c=Math.min(c,B));if(B=g.P3(z.Wq.experiments,"html5_max_vertical_resolution")){z=4320;for(H=0;HB&&(z=Math.min(z,T.video.qualityOrdinal));if(z<4320){for(H=B=0;H32){H=!0;break a}}H=!1}H&&(c=Math.min(c,B));(B=g.P3(z.Wq.experiments,"html5_live_quality_cap"))&&p.videoData.isLivePlayback&&(c=Math.min(c,B));c=RQQ(z,p,c);z=g.P3(z.Wq.experiments,"html5_byterate_soft_cap");return new DW(0,c===4320?0:c,!1,"d",z)}; $wW=function(z){var p,c,B,H;return g.L(function(T){switch(T.W){case 1:return z.W.W&&typeof((p=navigator.mediaCapabilities)==null?void 0:p.decodingInfo)==="function"?g.a(T,Promise.resolve(),2):T.return(Promise.resolve());case 2:c=g.m(z.W.videoInfos),B=c.next();case 3:if(B.done){T.hD(0);break}H=B.value;return g.a(T,w7u(H),4);case 4:B=c.next(),T.hD(3)}})}; uNY=function(z,p){if(!p.videoData.K||z.Y("html5_disable_performance_downgrade"))return!1;Date.now()-z.G>6E4&&(z.K=0);z.K++;z.G=Date.now();if(z.K!==4)return!1;KTv(z,p.videoData.K);return!0}; ZvY=function(z,p,c,B){if(!p||!c||!p.videoData.K)return!1;var H=g.P3(z.Wq.experiments,"html5_df_downgrade_thresh"),T=z.Y("html5_log_media_perf_info");if(!((0,g.y2)()-z.X<5E3?0:T||H>0))return!1;var b=((0,g.y2)()-z.X)/1E3;z.X=(0,g.y2)();c=c.getVideoPlaybackQuality();if(!c)return!1;var D=c.droppedVideoFrames-z.V,t=c.totalVideoFrames-z.S;z.V=c.droppedVideoFrames;z.S=c.totalVideoFrames;var X=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;T&&z.Wq.OW()&&z.cq.KH("ddf",{dr:c.droppedVideoFrames, de:c.totalVideoFrames,comp:X});if(B)return z.W=0,!1;if((t-D)/b>z.U||!H||g.yi(z.Wq))return!1;z.W=(t>60?D/t:0)>H?z.W+1:0;if(z.W!==3)return!1;KTv(z,p.videoData.K);z.cq.KH("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},adV()));return!0}; KTv=function(z,p){var c=p.yI,B=p.video.fps,H=p.video.qualityOrdinal-1,T=z.D;p=""+c+(B>49?"p60":B>32?"p48":"");c=e5(c,B,T);H>0&&(c=Math.min(c,H));if(!En.has(p)&&sZ().includes(p)){var b=c;c=UZ();+c[p]>0&&(b=Math.min(+c[p],b));c[p]!==b&&(c[p]=b,g.Iw("yt-player-performance-cap",c,2592E3))}else if(En.has(p)||T==null){a:{b=b===void 0?!0:b;B=sZ().slice();if(b){if(B.includes(p))break a;B.push(p)}else{if(!B.includes(p))break a;B.splice(B.indexOf(p),1)}g.Iw("yt-player-performance-cap-active-set",B,2592E3)}C5.set(p, c)}else En.add(p),T==null||T.set(p,c);z.cq.yQ()}; qN=function(z,p){if(!p.W.W)return z.L?new DW(0,360,!1,"b"):ge;for(var c=!1,B=!1,H=g.m(p.W.videoInfos),T=H.next();!T.done;T=H.next())pZ(T.value)?c=!0:B=!0;c=c&&B;B=0;H=g.P3(z.Wq.experiments,"html5_performance_cap_floor");H=z.Wq.K?240:H;p=g.m(p.W.videoInfos);for(T=p.next();!T.done;T=p.next()){var b=T.value;if(!c||!pZ(b))if(T=e5(b.yI,b.video.fps,z.D),b=b.video.qualityOrdinal,Math.max(T,H)>=b){B=b;break}}return new DW(0,B,!1,"b")}; LTY=function(z,p){var c=z.cq.wC();return c.isInline()&&!p.Hj?new DW(0,480,!1,"v"):c.isBackground()&&y0()/1E3>60&&!g.yi(z.Wq)?new DW(0,360,!1,"v"):ge}; dw_=function(z,p,c){if(z.Wq.experiments.JD("html5_disable_client_autonav_cap_for_onesie")&&p.fetchType==="onesie"||g.yi(z.Wq)&&(Qg(-1)>=1080||p.osid))return ge;var B=g.P3(z.Wq.experiments,"html5_autonav_quality_cap"),H=g.P3(z.Wq.experiments,"html5_autonav_cap_idle_secs");return B&&p.isAutonav&&y0()/1E3>H?(c&&(B=RQQ(z,c,B)),new DW(0,B,!1,"e")):ge}; RQQ=function(z,p,c){if(z.Y("html5_optimality_defaults_chooses_next_higher")&&c)for(z=p.W.videoInfos,p=1;p=0||(z.provider.cq.getVisibilityState()===3?z.L=!0:(z.W=g.z8(z.provider),z.delay.start()))}; CpN=function(z){if(!(z.K<0)){var p=g.z8(z.provider),c=p-z.X;z.X=p;z.playerState.state===8?z.playTimeSecs+=c:z.playerState.isBuffering()&&!g.r(z.playerState,16)&&(z.rebufferTimeSecs+=c)}}; eQW=function(z){var p;switch((p=z.Wq.playerCanaryStage)==null?void 0:p.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"}}; ldY=function(z){return window.PressureObserver&&new window.PressureObserver(z)}; vnN=function(z){z=z===void 0?ldY:z;g.e.call(this);var p=this;try{this.D=z(function(B){p.K=B.at(-1)}); var c;this.X=(c=this.D)==null?void 0:c.observe("cpu",{sampleInterval:2E3}).catch(function(B){B instanceof DOMException&&(p.W=B)})}catch(B){B instanceof DOMException&&(this.W=B)}}; IdB=function(z){var p={},c=window.h5vcc;p.hwConcurrency=navigator.hardwareConcurrency;z.W&&(p.cpe=z.W.message);z.K&&(p.cpt=z.K.time,p.cps=z.K.state);if(c==null?0:c.cVal)p.cb2s=c.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),p.cb5s=c.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),p.cb30s=c.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return p}; j5v=function(z){var p;g.L(function(c){switch(c.W){case 1:return g.Ox(c,2),g.a(c,z.X,4);case 4:g.RE(c,3);break;case 2:g.SQ(c);case 3:(p=z.D)==null||p.disconnect(),g.Ai(c)}})}; onu=function(z,p){p?FT_.test(z):(z=g.XL(z),Object.keys(z).includes("cpn"))}; Q5u=function(z,p,c,B,H,T,b){var D={format:"RAW"},t={};if(q_(z)&&J6()){if(b){var X;((X=nnV.uaChPolyfill)==null?void 0:X.state.type)!==2?b=null:(b=nnV.uaChPolyfill.state.data.values,b={"Synth-Sec-CH-UA-Arch":b.architecture,"Synth-Sec-CH-UA-Model":b.model,"Synth-Sec-CH-UA-Platform":b.platform,"Synth-Sec-CH-UA-Platform-Version":b.platformVersion,"Synth-Sec-CH-UA-Full-Version":b.uaFullVersion});t=Object.assign(t,b);D.withCredentials=!0}(b=g.pN("EOM_VISITOR_DATA"))?t["X-Goog-EOM-Visitor-Id"]=b:B?t["X-Goog-Visitor-Id"]= B:g.pN("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=g.pN("VISITOR_DATA"));c&&(t["X-Goog-PageId"]=c);(B=p.tD)&&!BX(p)&&(t["X-Goog-AuthUser"]=B);H&&(t.Authorization="Bearer "+H);p.Y("enable_datasync_id_header_in_web_vss_pings")&&p.Q3&&p.datasyncId&&(t["X-YouTube-DataSync-Id"]=p.datasyncId);b||t["X-Goog-Visitor-Id"]||H||c||B?D.withCredentials=!0:p.Y("html5_send_cpn_with_options")&&FT_.test(z)&&(D.withCredentials=!0)}Object.keys(t).length>0&&(D.headers=t);T&&(D.onFinish=T);return Object.keys(D).length>1? D:null}; rAY=function(z,p,c,B,H,T,b,D){J6()&&c.token&&(z=x5(z,{ctt:c.token,cttype:c.G4,mdx_environment:c.mdxEnvironment}));B.Y("net_pings_low_priority")&&(p||(p={}),p.priority="low");T||D&&B.Y("nwl_skip_retry")?(p==null?p={}:onu(z,B.Y("html5_assert_cpn_with_regex")),b?Hd().sendAndWrite(z,p):Hd().sendThenWrite(z,p,D)):p?(onu(z,B.Y("html5_assert_cpn_with_regex")),B.Y("net_pings_use_fetch")?XOY(z,p):g.dS(z,p)):g.s3(z,H)}; UwY=function(z){for(var p=[],c=0;c0&&c>0&&!z.K&&z.D<1E7)try{z.X=z.L({sampleInterval:p,maxBufferSize:c});var B;(B=z.X)==null||B.addEventListener("samplebufferfull",function(){return g.L(function(H){if(H.W==1)return g.a(H,z.stop(),2);gnD(z);g.Ai(H)})})}catch(H){z.K=k9i(H.message)}}; Ya=function(z,p){var c,B;return!!((c=window.h5vcc)==null?0:(B=c.settings)==null?0:B.set(z,p))}; NEu=function(){var z,p,c,B=(z=window.h5vcc)==null?void 0:(p=z.settings)==null?void 0:(c=p.getPersistentSettingAsString)==null?void 0:c.call(p,"cpu_usage_tracker_intervals");if(B!=null){var H;z=(H=JSON.parse(B))!=null?H:[];H=z.filter(function(X){return X.type==="total"}).map(function(X){return X.seconds}); p=g.m(G9x);for(c=p.next();!c.done;c=p.next())c=c.value,H.indexOf(c)===-1&&z.push({type:"total",seconds:c});var T,b;(T=window.h5vcc)==null||(b=T.settings)==null||b.set("cpu_usage_tracker_intervals_enabled",1);var D,t;(D=window.h5vcc)==null||(t=D.settings)==null||t.set("cpu_usage_tracker_intervals",JSON.stringify(z))}}; fdY=function(){var z=window.H5vccPlatformService,p="";if(z&&z.has("dev.cobalt.coat.clientloginfo")&&(z=z.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=z.send(new ArrayBuffer(0)); c&&(p=String.fromCharCode.apply(String,g.A(new Uint8Array(c))));z.close()}return p}; g.P5=function(z,p){g.e.call(this);var c=this;this.provider=z;this.logger=new g.Xk("qoe");this.W=new Map;this.sequenceNumber=1;this.V=NaN;this.OR="N";this.U=this.Bw=this.GY=this.fH=this.D=0;this.EW=this.rA=this.G=this.OH="";this.LB=this.i8=NaN;this.Wy=0;this.wU=-1;this.ow=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.RR=this.isEmbargoed=this.Ra=this.isOffline=this.isBuffering=!1;this.JH=[];this.MZ=null;this.WM=this.X=this.UH=this.S=!1;this.K=-1;this.Zt=!1;this.Lv=new g.B4(this.BAp,750,this);this.M9= this.adCpn=this.Dt=this.contentCpn="";this.adFormat=void 0;this.Q8=0;this.sH=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.t1=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.FQ=!1;this.Ca=NaN;this.YA=0;this.Zw=!1;this.T$=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.gt=!1;this.Xg={v3:function(H){c.v3(H)}, Y0p:function(){return c.L}, C3:function(){return c.contentCpn}, e9H:function(){return c.Dt}, reportStats:function(){c.reportStats()}, WOi:function(){return c.W.get("cat")||[]}, Sg:function(H){return c.W.get(H)||[]}, Uw$:function(){return c.W}, c4p:function(){return c.T$}, Alq:function(){return{adCpn:c.adCpn,M9:c.M9,adFormat:c.adFormat}}}; this.tD=this.provider.Wq.Y("html5_qoe_relaxed_reporting");var B=g.P3(this.provider.Wq.experiments,"html5_qoe_proto_mock_length");B&&!mQ.length&&(mQ=UwY(B));g.l(this,this.Lv);try{navigator.getBattery().then(function(H){c.MZ=H})}catch(H){}g.hU(this,0,"vps",["N"]); z.Wq.OW()&&(this.YA=(0,g.y2)(),this.Ca=g.wS(function(){var H=(0,g.y2)(),T=H-c.YA;T>500&&c.KH("vmlock",{diff:T.toFixed()});c.YA=H},250)); z.cq.Wf()&&p&&(this.T$=p-Math.round(g.z8(z)*1E3));this.provider.videoData.TU&&(this.remoteControlMode=zuf[this.provider.videoData.TU]||0);this.provider.videoData.cV&&(p=rTW(this.provider.videoData.cV),p==null?0:p.length)&&(this.remoteConnectedDevices=p);if(z.Wq.OW()||z.Y("html5_log_cpu_info"))this.CH=new vnN,g.l(this,this.CH);p=g.P3(z.Wq.experiments,"html5_js_self_profiler_sample_interval_ms");z=g.P3(z.Wq.experiments,"html5_js_self_profiler_max_samples");p>0&&z>0&&(this.NZ=new MN(p,z),g.l(this,this.NZ))}; AU=function(z,p,c){var B=z.W.get(p);B?B.push(c):z.W.set(p,[c])}; g.hU=function(z,p,c,B){AU(z,c,p.toFixed(3)+":"+B.join(":"))}; p5x=function(z,p){var c=z.adCpn||z.provider.videoData.clientPlaybackNonce,B=z.provider.getCurrentTime(c);g.hU(z,p,"cmt",[B.toFixed(3)]);B=z.provider.pN(c);if(z.L&&B*1E3>z.L.rN+100&&z.L){var H=z.L;c=H.isAd;B=B*1E3-H.rN;z.SZ=p*1E3-H.DaA-B-H.Jvq;H=(0,g.y2)()-B;p=z.SZ;B=z.provider.videoData;var T=B.isAd();if(c||T){T=(c?"ad":"video")+"_to_"+(T?"ad":"video");var b={};B.V&&(b.cttAuthInfo={token:B.V,videoId:B.videoId});b.startTime=H-p;Gl(T,b);g.gO({targetVideoId:B.videoId,targetCpn:B.clientPlaybackNonce}, T);kw("pbs",H,T)}else H=z.provider.cq.Ik(),H.V!==B.clientPlaybackNonce?(H.L=B.clientPlaybackNonce,H.K=p):B.Jo()||g.oc(new g.z6("CSI timing logged before gllat",{cpn:B.clientPlaybackNonce}));z.KH("gllat",{l:z.SZ.toFixed(),prev_ad:+c});delete z.L}}; On=function(z,p){p=p===void 0?NaN:p;p=p>=0?p:g.z8(z.provider);var c=z.provider.cq.rb(),B=c.r5-(z.i8||0);B>0&&g.hU(z,p,"bwm",[B,(c.J6-(z.LB||0)).toFixed(3)]);isNaN(z.i8)&&c.r5&&z.isOffline&&z.v3(!1);z.i8=c.r5;z.LB=c.J6;isNaN(c.bandwidthEstimate)||g.hU(z,p,"bwe",[c.bandwidthEstimate.toFixed(0)]);z.provider.Wq.OW()&&Object.keys(c.W).length!==0&&z.KH("bwinfo",c.W);if(z.provider.Wq.OW()||z.provider.Wq.Y("html5_log_meminfo"))B=xk_(),Object.values(B).some(function(T){return T!==void 0})&&z.KH("meminfo", B); if(z.provider.Wq.OW()||z.provider.Wq.Y("html5_log_cpu_info")){var H;(B=(H=z.CH)==null?void 0:IdB(H))&&Object.values(B).some(function(T){return T!=null})&&z.KH("cpuinfo",B)}z.NZ&&z.KH("jsprof",z.NZ.flush()); z.MZ&&g.hU(z,p,"bat",[z.MZ.level,z.MZ.charging?"1":"0"]);H=z.provider.cq.getVisibilityState();z.wU!==H&&(g.hU(z,p,"vis",[H]),z.wU=H);p5x(z,p);(H=cUY(z.provider))&&H!==z.Wy&&(g.hU(z,p,"conn",[H]),z.Wy=H);BwE(z,p,c)}; BwE=function(z,p,c){if(!isNaN(c.Uc)){var B=c.Uc;c.K96E3&&(new g.B4(z.reportStats,0,z)).start()}; Twv=function(z){z.provider.videoData.JH&&ww(z,"prefetch");z.provider.videoData.Wy&&z.KH("reload",{r:z.provider.videoData.reloadReason,ct:z.provider.videoData.Wy});z.provider.videoData.sH&&ww(z,"monitor");z.provider.videoData.isLivePlayback&&ww(z,"live");HW&&ww(z,"streaming");z.provider.videoData.TU&&z.KH("ctrl",{mode:z.provider.videoData.TU},!0);if(z.provider.videoData.cV){var p=z.provider.videoData.cV.replace(/,/g,"_");z.KH("ytp",{type:p},!0)}z.provider.videoData.r8&&(p=z.provider.videoData.r8.replace(/,/g, "."),z.KH("ytrexp",{ids:p},!0));var c=z.provider.videoData;p=z.provider.Wq.Y("enable_white_noise")||z.provider.Wq.Y("enable_webgl_noop");c=g.wG(c)||g.eN(c)||g.lr(c)||g.vf(c);(p||c)&&(p=(0,g.RI)())&&z.W.set("gpu",[p]);Gz(z.provider.videoData)&&g.hU(z,g.z8(z.provider),"dt",["1"]);z.provider.Wq.OW()&&(p=(0,g.y2)()-z.provider.Wq.dJ,z.KH("playerage",{secs:Math.pow(1.6,Math.round(Math.log(p/1E3)/Math.log(1.6))).toFixed()}));z.X=!0;z.V=g.wS(function(){z.reportStats()},1E4)}; Vnv=function(z,p,c){var B=g.z8(z.provider);b6D(z,B,p,0,c);On(z,B);i6Y(z)}; b6D=function(z,p,c,B,H){var T=z.provider.Wq.W.cbrver;z.provider.Wq.W.cbr==="Chrome"&&/^96[.]/.test(T)&&c==="net.badstatus"&&/rc\.500/.test(H)&&DNV(z,3);z.provider.Wq.Y("html5_use_ump")&&/b248180278/.test(H)&&DNV(z,4);T=z.provider.getCurrentTime(z.adCpn||z.provider.videoData.clientPlaybackNonce);B=B===1?"fatal":"";c=[c,B,T.toFixed(3)];B&&(H+=";a6s."+mP());H&&c.push(tnu(H));g.hU(z,p,"error",c);z.X=!0}; NGx=function(z,p){var c=g.z8(z.provider);if(!z.provider.Wq.experiments.JD("html5_refactor_sabr_video_format_selection_logging")||p.W.id!==z.OH){var B=[p.W.id,p.K,z.OH,p.reason];p.token&&B.push(p.token);g.hU(z,c,"vfs",B);z.OH=p.W.id;B=z.provider.cq.getPlayerSize();if(B.width>0&&B.height>0){B=[Math.round(B.width),Math.round(B.height)];var H=g.p8();H>1&&B.push(H);g.hU(z,c,"view",B)}z.UH||(z.provider.Wq.OW()&&ww(z,"rqs2"),z.provider.videoData.W&&mp(z.provider.videoData.W)&&z.W.set("preload",["1"]));z.UH= !0;z.X=!0}p.reason==="m"&&++z.Q8===100&&DNV(z,2);g.hU(z,c,"vps",[z.OR]);z.tD||z.reportStats(c)}; X5Y=function(z){z.K>=0||(z.provider.Wq.LN||z.provider.cq.getVisibilityState()!==3?z.K=g.z8(z.provider):z.Zt=!0)}; xN_=function(z,p,c,B){if(c!==z.OR){z.tD||p=10&&z.playTimeSecs<=180&&(z.W.set("qoealert",["1"]),z.RR=!0)),c!=="B"||z.OR!=="PL"&&z.OR!=="PB"||(z.isBuffering=!0),z.D=p);z.OR==="PL"&&(c==="B"||c==="S")||z.provider.Wq.OW()?On(z,p):(z.FQ||c!=="PL"||(z.FQ=!0,BwE(z,p,z.provider.cq.rb())),p5x(z,p));c==="PL"&&g.H4(z.Lv);var H=[c];c==="S"&&B&&H.push("ss."+B);g.hU(z,p,"vps", H);z.OR=c;z.fH=p;z.D=p;z.X=!0}}; GzY=function(z,p,c){if(z.provider.Wq.experiments.JD("html5_refactor_sabr_audio_format_selection_logging")){p=c.W;var B=[p.audio&&p.video?p.X8?p.X8:"":p.id];p.bQ&&p.bQ.id&&B.push(p.bQ.id);p=B.join(";");p!==z.G&&(B=[p,z.G,c.reason],c.token&&B.push(c.token),g.hU(z,g.z8(z.provider),"afs",B),z.G=p)}else c.W.id!==z.G&&(B=[c.W.id,z.G,c.reason],c.token&&B.push(c.token),g.hU(z,p,"afs",B),z.G=c.W.id)}; ww=function(z,p){AU(z,"cat",p)}; Sn=function(z,p,c,B,H,T){var b=g.z8(z.provider);c!==1&&c!==3&&c!==5||g.hU(z,b,"vps",[z.OR]);AU(z,"xvt","t."+b.toFixed(3)+";m."+T.toFixed(3)+";g."+p+";tt."+c+";np.0;c."+B+";d."+H)}; DNV=function(z,p){z.WM||(AU(z,"fcnz",""+p),z.WM=!0)}; tnu=function(z){/[^a-zA-Z0-9;.!_-]/.test(z)&&(z=z.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return z}; Ea_=function(z){this.provider=z;this.G=!1;this.W=0;this.X=-1;this.kU=NaN;this.D=0;this.segments=[];this.V=this.L=0;this.previouslyEnded=!1;this.U=this.provider.cq.getVolume();this.S=this.provider.cq.isMuted()?1:0;this.K=$a(this.provider)}; K6=function(z){z.K.startTime=z.D;z.K.endTime=z.W;var p=!1;z.segments.length&&g.UQ(z.segments).isEmpty()?(z.segments[z.segments.length-1].previouslyEnded&&(z.K.previouslyEnded=!0),z.segments[z.segments.length-1]=z.K,p=!0):z.segments.length&&z.K.isEmpty()||(z.segments.push(z.K),p=!0);p?z.K.endTime===0&&(z.previouslyEnded=!1):z.K.previouslyEnded&&(z.previouslyEnded=!0);z.L+=z.W-z.D;z.K=$a(z.provider);z.K.previouslyEnded=z.previouslyEnded;z.previouslyEnded=!1;z.D=z.W}; JUN=function(z){qni(z);z.V=g.wS(function(){z.update()},100); z.kU=g.z8(z.provider);z.K=$a(z.provider)}; qni=function(z){g.S9(z.V);z.V=NaN}; MnY=function(z,p,c){c-=z.kU;return p===z.W&&c>.5}; YnN=function(z,p,c,B){this.Wq=p;this.Ca=c;this.segments=[];this.experimentIds=[];this.OH=this.FQ=this.isFinal=this.delayThresholdMet=this.WM=this.ow=this.autoplay=this.autonav=!1;this.EW="yt";this.V=[];this.G=this.U=null;this.sendVisitorIdHeader=this.NZ=!1;this.S=this.pageId="";this.L=c==="watchtime";this.D=c==="playback";this.tD=c==="atr";this.LN=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.tD?"/api/stats/"+c:"//"+p.wh+"/api/stats/"+c;B&&(this.FQ=B.fs,B.rtn&&(this.G=B.rtn),this.L?(this.playerState= B.state,B.rti>0&&(this.U=B.rti)):(this.gJ=B.mos,this.y4=B.volume,B.at&&(this.adType=B.at)),B.autonav&&(this.autonav=B.autonav),B.inview!=null&&(this.LB=B.inview),B.size&&(this.Wy=B.size),B.playerwidth&&(this.playerWidth=B.playerwidth),B.playerheight&&(this.playerHeight=B.playerheight));this.t1=g.lU(p.W);this.S=iP(p.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.S==="all"||this.S==="once")this.RR=g.lU(p.Ca);this.vO=p.Zt;this.experimentIds=LOQ(p.experiments);this.i8=p.RR;this.EW=p.MZ;this.region= p.region;this.userAge=p.userAge;this.CH=p.Rk;this.Lv=y0();this.sendVisitorIdHeader=p.sendVisitorIdHeader;this.T$=p.Y("vss_pings_using_networkless")||p.Y("kevlar_woffle");this.dJ=p.Y("vss_final_ping_send_and_write");this.Ra=p.Y("vss_use_send_and_write");this.pageId=p.pageId;this.wJ=p.Y("vss_playback_use_send_and_write");p.livingRoomAppMode&&(this.livingRoomAppMode=p.livingRoomAppMode);this.xl=p.X&&p.Y("embeds_append_synth_ch_headers");g.yB(p)&&(this.fH=p.T$);g.MD(g.nm(p))&&this.V.push(1);this.accessToken= g.se(z);z.L9[this.Ca]?this.X=z.L9[this.Ca]:z.L9.playback&&(this.X=z.L9.playback);this.adFormat=z.adFormat;this.adQueryId=z.adQueryId;this.autoplay=Ue(z);this.D&&(this.ow=(z.Y("html5_enable_log_server_autoplay")||z.Y("enable_cleanup_masthead_autoplay_hack_fix"))&&z.Zl&&oy(z)==="adunit"?!0:!1);this.autonav=z.isAutonav||this.autonav;this.contentVideoId=QN(z);this.clientPlaybackNonce=z.clientPlaybackNonce;this.WM=z.Sd;z.V&&(this.MZ=z.V,this.UH=z.x8);z.mdxEnvironment&&(this.mdxEnvironment=z.mdxEnvironment); this.W=z.NZ;this.Zw=z.Zw;z.K&&(this.JH=z.K.itag,z.X&&z.X.itag!==this.JH&&(this.sH=z.X.itag));z.W&&mp(z.W)&&(this.offlineDownloadUserChoice="1");this.eventLabel=oy(z);this.OH=z.LN?!1:z.gJ;this.Q8=z.RB;if(p=ur(z))this.A8=p;this.cO=z.V9;this.partnerId=z.partnerId;this.eventId=z.eventId;this.playlistId=z.XY||z.playlistId;this.Yo=z.Yo;this.TU=z.TU;this.cV=z.cV;this.iF=z.iF;this.subscribed=z.subscribed;this.videoId=z.videoId;this.videoMetadata=z.videoMetadata;this.visitorData=z.visitorData;this.osid=z.osid; this.lN=z.lN;this.referrer=z.referrer;this.E_=z.ly||z.E_;this.Zt=z.qv;this.dS=z.dS;this.userGenderAge=z.userGenderAge;this.LJ=z.LJ;this.embedsRct=z.embedsRct;this.embedsRctn=z.embedsRctn;g.yB(this.Wq)&&z.mutedAutoplay&&(z.mutedAutoplayDurationMode===2&&z.limitedPlaybackDurationInSeconds===0&&z.endSeconds===0?this.V.push(7):this.V.push(2));z.isEmbedsShortsMode(new g.Ao(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.V.push(3);g.t1(z)&&this.V.push(4);this.rA=z.cA;z.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=z.compositeLiveIngestionOffsetToken)}; mNu=function(z,p){var c=z.sendVisitorIdHeader?z.visitorData:void 0;return g.tj(z.Wq,z.accessToken).then(function(B){return Q5u(z.uri,z.Wq,z.pageId,c,B,p,z.xl)})}; AUB=function(z,p){return function(){z.Wq.Y("html5_simplify_pings")?(z.W=z.YA,z.wU=p(),z.Lv=0,z.send()):mNu(z).then(function(c){var B=hux(z);B.cmt=B.len;B.lact="0";var H=p().toFixed(3);B.rt=Number(H).toString();B=g.g6(z.uri,B);z.Wq.Y("vss_through_gel_double")&&PyE(B);z.T$?(c==null&&(c={}),z.Ra?Hd().sendAndWrite(B,c):Hd().sendThenWrite(B,c)):c?g.dS(B,c):g.s3(B)})}}; hux=function(z){var p={ns:z.EW,el:z.eventLabel,cpn:z.clientPlaybackNonce,ver:2,cmt:z.K(z.W),fmt:z.JH,fs:z.FQ?"1":"0",rt:z.K(z.wU),adformat:z.adFormat,content_v:z.contentVideoId,euri:z.vO,lact:z.Lv,live:z.A8,cl:(738194565).toString(),mos:z.gJ,state:z.playerState,volume:z.y4};z.subscribed&&(p.subscribed="1");Object.assign(p,z.t1);z.S==="all"?Object.assign(p,z.RR):z.S==="once"&&z.D&&Object.assign(p,z.RR);z.autoplay&&(p.autoplay="1");z.ow&&(p.sautoplay="1");z.WM&&(p.dni="1");!z.L&&z.fH&&(p.epm=O6f[z.fH]); z.isFinal&&(p["final"]="1");z.OH&&(p.splay="1");z.Zw&&(p.delay=z.Zw);z.i8&&(p.hl=z.i8);z.region&&(p.cr=z.region);z.userGenderAge&&(p.uga=z.userGenderAge);z.userAge!==void 0&&z.CH&&(p.uga=z.CH+z.userAge);z.YA!==void 0&&(p.len=z.K(z.YA));!z.L&&z.experimentIds.length>0&&(p.fexp=z.experimentIds.toString());z.G!==null&&(p.rtn=z.K(z.G));z.E_&&(p.feature=z.E_);z.TU&&(p.ctrl=z.TU);z.cV&&(p.ytr=z.cV);z.sH&&(p.afmt=z.sH);z.offlineDownloadUserChoice&&(p.ODUC=z.offlineDownloadUserChoice);z.gt&&(p.lio=z.K(z.gt)); z.L?(p.idpj=z.Q8,p.ldpj=z.cO,z.delayThresholdMet&&(p.dtm="1"),z.U!=null&&(p.rti=z.K(z.U)),z.LJ&&(p.ald=z.LJ),z.compositeLiveIngestionOffsetToken&&(p.clio=z.compositeLiveIngestionOffsetToken)):z.adType!==void 0&&(p.at=z.adType);z.Wy&&(z.D||z.L)&&(p.size=z.Wy);z.D&&z.V.length&&(p.pbstyle=z.V.join(","));z.LB!=null&&(z.D||z.L)&&(p.inview=z.K(z.LB));z.L&&(p.volume=uy(z,g.d7(z.segments,function(B){return B.volume})),p.st=uy(z,g.d7(z.segments,function(B){return B.startTime})),p.et=uy(z,g.d7(z.segments,function(B){return B.endTime})), ln(z.segments,function(B){return B.playbackRate!==1})&&(p.rate=uy(z,g.d7(z.segments,function(B){return B.playbackRate}))),ln(z.segments,function(B){return B.W!=="-"})&&(p.als=g.d7(z.segments,function(B){return B.W}).join(",")),ln(z.segments,function(B){return B.previouslyEnded})&&(p.pe=g.d7(z.segments,function(B){return""+ +B.previouslyEnded}).join(","))); p.muted=uy(z,g.d7(z.segments,function(B){return B.muted?1:0})); ln(z.segments,function(B){return B.visibilityState!==0})&&(p.vis=uy(z,g.d7(z.segments,function(B){return B.visibilityState}))); ln(z.segments,function(B){return B.connectionType!==0})&&(p.conn=uy(z,g.d7(z.segments,function(B){return B.connectionType}))); ln(z.segments,function(B){return B.K!==0})&&(p.blo=uy(z,g.d7(z.segments,function(B){return B.K}))); ln(z.segments,function(B){return!!B.D})&&(p.blo=g.d7(z.segments,function(B){return B.D}).join(",")); ln(z.segments,function(B){return!!B.compositeLiveStatusToken})&&(p.cbs=g.d7(z.segments,function(B){return B.compositeLiveStatusToken}).join(",")); ln(z.segments,function(B){return B.X!=="-"})&&(p.cc=g.d7(z.segments,function(B){return B.X}).join(",")); ln(z.segments,function(B){return B.clipId!=="-"})&&(p.clipid=g.d7(z.segments,function(B){return B.clipId}).join(",")); if(ln(z.segments,function(B){return!!B.audioId})){var c="au"; z.D&&(c="au_d");p[c]=g.d7(z.segments,function(B){return B.audioId}).join(",")}J6()&&z.MZ&&(p.ctt=z.MZ,p.cttype=z.UH,p.mdx_environment=z.mdxEnvironment); z.LN&&(p.etype=z.Dt!==void 0?z.Dt:0);z.Zt&&(p.uoo=z.Zt);z.livingRoomAppMode&&z.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(p.clram=w5S[z.livingRoomAppMode]||z.livingRoomAppMode);z.X?Ru_(z,p):(p.docid=z.videoId,p.referrer=z.referrer,p.ei=z.eventId,p.of=z.lN,p.osid=z.osid,p.vm=z.videoMetadata,z.adQueryId&&(p.aqi=z.adQueryId),z.autonav&&(p.autonav="1"),z.playlistId&&(p.list=z.playlistId),z.iF&&(p.ssrt="1"),z.dS&&(p.upt=z.dS));z.D&&(z.embedsRct&&(p.rct=z.embedsRct),z.embedsRctn&&(p.rctn= z.embedsRctn),z.compositeLiveIngestionOffsetToken&&(p.clio=z.compositeLiveIngestionOffsetToken));z.rA&&(p.host_cpn=z.rA);return p}; Ru_=function(z,p){if(p&&z.X){var c=new Set(["q","feature","mos"]),B=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),H=new Set(["aqi","autonav","list","ssrt","upt"]);z.X.ns==="3pp"&&(p.ns="3pp");for(var T=g.m(Object.keys(z.X)),b=T.next();!b.done;b=T.next())b=b.value,B.has(b)||c.has(b)||H.has(b)&&!z.X[b]||(p[b]=z.X[b])}}; uy=function(z,p){return g.d7(p,z.K).join(",")}; PyE=function(z){z.indexOf("watchtime")!==-1&&g.MG("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:z}})}; SnW=function(z,p){z.attestationResponse&&mNu(z).then(function(c){c=c||{};c.method="POST";c.postParams={atr:z.attestationResponse};z.T$?z.Ra?Hd().sendAndWrite(p,c):Hd().sendThenWrite(p,c):g.dS(p,c)})}; aI=function(z){g.e.call(this);this.provider=z;this.V="paused";this.L=NaN;this.G=[10,10,10,40];this.U=this.S=0;this.Dt=this.T$=this.tD=this.MZ=this.D=!1;this.K=this.X=NaN;this.logger=new g.Xk("vss");this.W=new Ea_(z)}; Z6W=function(z){if(!z.D){z.provider.videoData.df===16623&&g.oc(Error("Playback for EmbedPage"));var p=ZM(z,"playback");$NW(z);JUN(z.W);p.G=L6(z);z.K>0&&(p.W-=z.K);p.send();if(z.provider.videoData.cT){p=z.provider.Wq;var c=z.provider.videoData,B={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.cT,oid:c.b2,ptchn:c.yC,pltype:c.Hr,content_v:QN(c)};c.wd&&Object.assign(B,{m:c.wd});p=g.g6(p.qa+"ptracking",B);KQB(z,p)}z.provider.videoData.Zw||(uMD(z),aMQ(z),z.rh());z.D=!0;z=z.W; z.W=z.provider.cq.pN();z.kU=g.z8(z.provider);!(z.D===0&&z.W<5)&&z.W-z.D>2&&(z.D=z.W);z.G=!0}}; $NW=function(z){var p=z.provider.videoData.RB,c=z.provider.videoData.V9;z.G=[10+p,10,10,40+c-p,40];if(z.provider.Wq.Y("web_player_use_server_vss_schedule")){var B,H=(B=z.provider.videoData.getPlayerResponse())==null?void 0:B.playbackTracking,T=H==null?void 0:H.videostatsScheduledFlushWalltimeSeconds;B=H==null?void 0:H.videostatsDefaultFlushIntervalSeconds;T&&T.length>0&&B?(p=[T[0]+p].concat(g.A(T.slice(1).map(function(b,D){return b-T[D]})),[B+c-p, B]),p.some(function(b){return b<0})?z.logger.W(347111855,"Neg vss scheduled pings "+T+" "+B):z.G=p):z.logger.W(347111855,"Unexpected scheduled pings config "+T+" "+B)}}; L6=function(z,p){p=p===void 0?NaN:p;var c=g.z8(z.provider);p=isNaN(p)?c:p;p=Math.ceil(p);var B=z.G[z.S];z.S+11E3;!(T.length>1)&&T[0].isEmpty()||D||(b.G=L6(z,H));b.send();z.U++}},(H-c)*1E3); return z.X=H}; dw=function(z){g.Rf(z.L);z.L=NaN}; LQB=function(z){z.W.update();z=z.W;z.segments.length&&z.W===z.D||K6(z);var p=z.segments;z.segments=[];return p}; ZM=function(z,p){var c=WQV(z.provider);Object.assign(c,{state:z.V});p=new YnN(z.provider.videoData,z.provider.Wq,p,c);p.W=z.provider.cq.pN();c=z.provider.videoData.clientPlaybackNonce;p.W=z.provider.cq.qr(c);z.provider.videoData.isLivePlayback||(p.YA=z.provider.cq.getDuration(c));z.provider.videoData.W&&(c=z.provider.videoData.W.S5(p.W))&&(p.gt=c-p.W);p.wU=g.z8(z.provider);p.segments=[$a(z.provider)];return p}; dNY=function(z,p){var c=ZM(z,"watchtime");yUY(z)&&(c.delayThresholdMet=!0,z.tD=!0);if(z.K>0){for(var B=g.m(p),H=B.next();!H.done;H=B.next())H=H.value,H.startTime-=z.K,H.endTime-=z.K;c.W-=z.K}else c.W=z.W.A_();c.segments=p;return c}; W5=function(z,p){var c=CyD(z,!isNaN(z.X));p&&(z.X=NaN);return c}; CyD=function(z,p){var c=dNY(z,LQB(z));!isNaN(z.X)&&p&&(c.U=z.X);return c}; yUY=function(z){var p;if(p=z.provider.videoData.isLoaded()&&z.provider.videoData.Zw&&z.D&&!z.tD)p=z.W,p=p.L+p.provider.cq.pN()-p.D>=z.provider.videoData.Zw;return!!p}; uMD=function(z){z.provider.videoData.youtubeRemarketingUrl&&!z.T$&&(KQB(z,z.provider.videoData.youtubeRemarketingUrl),z.T$=!0)}; aMQ=function(z){z.provider.videoData.googleRemarketingUrl&&!z.Dt&&(KQB(z,z.provider.videoData.googleRemarketingUrl),z.Dt=!0)}; euB=function(z){if(!z.qZ()&&z.D){z.V="paused";var p=W5(z);p.isFinal=!0;p.send();z.dispose()}}; lMQ=function(z,p){if(!z.qZ())if(g.r(p.state,2)||g.r(p.state,512)){if(z.V="paused",g.wn(p,2)||g.wn(p,512))g.wn(p,2)&&(z.W.previouslyEnded=!0),z.D&&(dw(z),W5(z).send(),z.X=NaN)}else if(g.r(p.state,8)){z.V="playing";var c=z.D&&isNaN(z.L)?L6(z):NaN;if(!isNaN(c)&&(Ou(p,64)<0||Ou(p,512)<0)){var B=CyD(z,!1);B.G=c;B.send()}g.wn(p,16)&&p.state.seekSource===58&&(z.W.previouslyEnded=!0)}else z.V="paused"}; vaB=function(z,p,c){if(!z.MZ){c||(c=ZM(z,"atr"));c.attestationResponse=p;try{c.send()}catch(B){if(B.message!=="Unknown Error")throw B;}z.MZ=!0}}; KQB=function(z,p){var c=z.provider.Wq;g.tj(z.provider.Wq,g.se(z.provider.videoData)).then(function(B){var H=z.provider.Wq.pageId,T=z.provider.Wq.sendVisitorIdHeader?z.provider.videoData.visitorData:void 0,b=z.provider.Wq.Y("vss_pings_using_networkless")||z.provider.Wq.Y("kevlar_woffle"),D=z.provider.Wq.Y("allow_skip_networkless");B=Q5u(p,c,H,T,B);rAY(p,B,{token:z.provider.videoData.V,G4:z.provider.videoData.x8,mdxEnvironment:z.provider.videoData.mdxEnvironment},c,void 0,b&&!D,!1,!0)})}; IMB=function(){this.endTime=this.startTime=-1;this.X="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.K=0;this.compositeLiveStatusToken=this.D=void 0;this.volume=this.connectionType=0;this.muted=!1;this.W=this.clipId="-";this.previouslyEnded=!1}; yU=function(z,p,c){this.videoData=z;this.Wq=p;this.cq=c;this.W=void 0}; g.z8=function(z){return jIW(z)()}; jIW=function(z){if(!z.W){var p=g.f_(function(B){var H=(0,g.y2)();B&&H<=631152E6&&(z.cq.KH("ytnerror",{issue:28799967,value:""+H}),H=(new Date).getTime()+2);return H},z.Wq.Y("html5_validate_yt_now")),c=p(); z.W=function(){return Math.round(p()-c)/1E3}; z.cq.fY()}return z.W}; WQV=function(z){var p=z.cq.RJ()||{};p.fs=z.cq.A5();p.volume=z.cq.getVolume();p.muted=z.cq.isMuted()?1:0;p.mos=p.muted;p.clipid=z.cq.Sw();var c;p.playerheight=((c=z.cq.getPlayerSize())==null?void 0:c.height)||0;var B;p.playerwidth=((B=z.cq.getPlayerSize())==null?void 0:B.width)||0;z=z.videoData;c={};z.K&&(c.fmt=z.K.itag,z.X&&(z.ow?z.X.itag!==z.K.itag:z.X.itag!=z.K.itag)&&(c.afmt=z.X.itag));c.ei=z.eventId;c.list=z.playlistId;c.cpn=z.clientPlaybackNonce;z.videoId&&(c.v=z.videoId);z.TL&&(c.infringe=1); (z.LN?0:z.gJ)&&(c.splay=1);(B=ur(z))&&(c.live=B);z.Zl&&(c.sautoplay=1);z.bY&&(c.autoplay=1);z.Yo&&(c.sdetail=z.Yo);z.partnerId&&(c.partnerid=z.partnerId);z.osid&&(c.osid=z.osid);z.bV&&(c.cc=g.IrY(z.bV));return Object.assign(p,c)}; cUY=function(z){var p=hXx();if(p)return FQY[p]||FQY.other;if(g.yi(z.Wq)){z=navigator.userAgent;if(/[Ww]ireless[)]/.test(z))return 3;if(/[Ww]ired[)]/.test(z))return 30}return 0}; $a=function(z){var p=new IMB,c;p.X=((c=WQV(z).cc)==null?void 0:c.toString())||"-";p.playbackRate=z.cq.getPlaybackRate();c=z.cq.getVisibilityState();c!==0&&(p.visibilityState=c);z.Wq.UH&&(p.K=1);p.D=z.videoData.Di;p.compositeLiveStatusToken=z.videoData.compositeLiveStatusToken;c=z.cq.getAudioTrack();c.bQ&&c.bQ.id&&c.bQ.id!=="und"&&(p.audioId=c.bQ.id);p.connectionType=cUY(z);p.volume=z.cq.getVolume();p.muted=z.cq.isMuted();p.clipId=z.cq.Sw()||"-";p.W=z.videoData.rr||"-";return p}; g.C6=function(z,p){g.e.call(this);var c=this;this.provider=z;this.X=!1;this.D=new Map;this.OR=new g.D0;this.Xg={dwH:function(){return c.qoe}, WvA:function(){return c.W}, IYD:function(){return c.K}}; this.provider.videoData.NP()&&!this.provider.videoData.Gx&&(this.W=new aI(this.provider),this.W.K=this.provider.videoData.Q8/1E3,g.l(this,this.W),this.qoe=new g.P5(this.provider,p),g.l(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Kt=this.provider.videoData.clientPlaybackNonce)&&this.D.set(this.Kt,this.W));if(z.Wq.playerCanaryState==="canary"||z.Wq.playerCanaryState==="holdback")this.K=new JU(this.provider),g.l(this,this.K)}; oa_=function(z){return!!z.W&&!!z.qoe}; en=function(z){z.K&&yAV(z.K);z.qoe&&X5Y(z.qoe)}; naW=function(z){if(z.qoe){z=z.qoe;for(var p=z.provider.videoData,c=z.provider.Wq,B=g.m(c.dP),H=B.next();!H.done;H=B.next())ww(z,H.value);if(z.provider.Y("html5_enable_qoe_cat_list"))for(B=g.m(p.U_),H=B.next();!H.done;H=B.next())ww(z,H.value);else p.dP&&ww(z,z.provider.videoData.dP);p.La()&&(B=p.W,ha(p)&&ww(z,"manifestless"),B&&u2(B)&&ww(z,"live-segment-"+u2(B).toFixed(1)));Ee(p)?ww(z,"sabr"):z.M0(Oe(p));if(kI(p)||p.yL())p.yL()&&ww(z,"ssa"),ww(z,"lifa");p.gatewayExperimentGroup&&(B=p.gatewayExperimentGroup, B==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?B="spkadtrt":B==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(B="spkadctrl"),ww(z,B));c.MZ!=="yt"&&z.W.set("len",[p.lengthSeconds.toFixed(2)]);p.cotn&&!Gz(p)&&z.v3(!0);c.OW()&&(p=fdY())&&z.KH("cblt",{m:p});if(c.Y("html5_log_screen_diagonal")){c=z.KH;var T;p=((T=window.H5vccScreen)==null?0:T.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;c.call(z,"cbltdiag",{v:p})}}}; QIS=function(z){if(z.provider.cq.Wf()){if(z.X)return;z.X=!0}z.W&&Z6W(z.W);if(z.K){z=z.K;var p=g.z8(z.provider);z.W<0&&(z.W=p,z.delay.start());z.K=p;z.X=p}}; rUf=function(z,p){z.W&&(z=z.W,p===58?z.W.update():z.D&&(dw(z),W5(z).send(),z.X=NaN))}; UNY=function(z,p){if(g.wn(p,1024)||g.wn(p,512)||g.wn(p,4)){if(z.K){var c=z.K;c.K>=0||(c.W=-1,c.delay.stop())}z.qoe&&(c=z.qoe,c.S||(c.K=-1))}if(z.provider.videoData.enableServerStitchedDai&&z.Kt){var B;(B=z.D.get(z.Kt))==null||lMQ(B,p)}else z.W&&lMQ(z.W,p);if(z.qoe){B=z.qoe;c=p.state;var H=g.z8(B.provider),T=B.getPlayerState(c);xN_(B,H,T,c.seekSource||void 0);T=c.DN;g.r(c,128)&&T&&(T.R$=T.R$||"",b6D(B,H,T.errorCode,T.lC,T.R$));(g.r(c,2)||g.r(c,128))&&B.reportStats(H);c.isPlaying()&&!B.S&&(B.K>=0&& B.W.set("user_intent",[B.K.toString()]),B.S=!0);i6Y(B)}z.K&&(B=z.K,CpN(B),B.playerState=p.state,B.K>=0&&g.wn(p,16)&&B.seekCount++,p.state.isError()&&B.send());z.provider.cq.Wf()&&(z.OR=p.state)}; sIN=function(z){z.K&&z.K.send();if(z.qoe){var p=z.qoe;if(p.X){p.OR==="PL"&&(p.OR="N");var c=g.z8(p.provider);g.hU(p,c,"vps",[p.OR]);p.S||(p.K>=0&&p.W.set("user_intent",[p.K.toString()]),p.S=!0);p.provider.Wq.OW()&&p.KH("finalized",{});p.Ra=!0;p.reportStats(c)}}if(z.provider.videoData.enableServerStitchedDai)for(p=g.m(z.D.values()),c=p.next();!c.done;c=p.next())euB(c.value);else z.W&&euB(z.W);z.dispose()}; k8v=function(z,p){z.W&&vaB(z.W,p)}; gaB=function(z){if(!z.W)return null;var p=ZM(z.W,"atr");return function(c){z.W&&vaB(z.W,c,p)}}; G8Y=function(z,p,c,B){c.adFormat=c.EW;var H=p.cq;p=new aI(new yU(c,p.Wq,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return H.getCurrentTime()}, pN:function(){return H.pN()}, qr:function(){return H.qr()}, Wf:function(){return H.Wf()}, rb:function(){return H.rb()}, getPlayerSize:function(){return H.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return H.getPlaybackRate()}, Bx:function(){return H.Bx()}, getVisibilityState:function(){return H.getVisibilityState()}, Ik:function(){return H.Ik()}, RJ:function(){return H.RJ()}, getVolume:function(){return H.getVolume()}, isMuted:function(){return H.isMuted()}, A5:function(){return H.A5()}, Sw:function(){return H.Sw()}, getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()}, fY:function(){H.fY()}, KH:function(T,b){H.KH(T,b)}, oF:function(){return H.oF()}})); p.K=B;g.l(z,p);return p}; NwW=function(){this.Uc=0;this.D=this.J6=this.r5=this.K=NaN;this.W={};this.bandwidthEstimate=NaN}; ly=function(z,p,c){g.e.call(this);var B=this;this.Wq=z;this.cq=p;this.K=c;this.W=new Map;this.Kt="";this.Xg={mx:function(){return Array.from(B.W.keys())}}}; fMV=function(z,p){z.W.has(p)&&(sIN(z.W.get(p)),z.W.delete(p))}; zjV=function(){this.W=g.x6;this.array=[]}; cIW=function(z,p,c){var B=[];for(p=p9f(z,p);pc)break}return B}; Btv=function(z,p){var c=[];z=g.m(z.array);for(var B=z.next();!B.done&&!(B=B.value,B.contains(p)&&c.push(B),B.start>p);B=z.next());return c}; Hji=function(z){return z.array.slice(p9f(z,0x7ffffffffffff),z.array.length)}; p9f=function(z,p){z=D5(z.array,function(c){return p-c.start||1}); return z<0?-(z+1):z}; ijE=function(z,p){var c=NaN;z=g.m(z.array);for(var B=z.next();!B.done;B=z.next())if(B=B.value,B.contains(p)&&(isNaN(c)||B.endp&&(isNaN(c)||B.startz.mediaTime+z.L&&p1)z.X=!0;if((H===void 0?0:H)||isNaN(z.K))z.K=p;if(z.W)p!==z.mediaTime&&(z.W=!1);else if(p>0&&z.mediaTime===p){H=1500;if(z.Wq.Y("html5_buffer_underrun_transition_fix")){H=g.P3(z.Wq.experiments,"html5_min_playback_advance_for_steady_state_secs");var T=g.P3(z.Wq.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");H=H>0&&T>0&&Math.abs(p-z.K)(B||!z.X?H:400)}z.mediaTime=p;z.D=c;return!1}; X9Q=function(z,p){this.videoData=z;this.W=p}; xtN=function(z,p,c){return p.nu(c).then(function(){return If(new X9Q(p,p.D))},function(B){B instanceof Error&&g.oc(B); var H=lz('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),T=Ir('audio/mp4; codecs="mp4a.40.2"'),b=H||T,D=p.isLivePlayback&&!g.VB(z.L,!0);B="fmt.noneavailable";D?B="html5.unsupportedlive":b||(B="html5.missingapi");b=D||!b?2:1;H={buildRej:"1",a:p.x7(),d:!!p.wU,drm:p.ke(),f18:p.Hf.indexOf("itag=18")>=0,c18:H};p.W&&(p.ke()?(H.f142=!!p.W.W["142"],H.f149=!!p.W.W["149"],H.f279=!!p.W.W["279"]):(H.f133=!!p.W.W["133"],H.f140=!!p.W.W["140"],H.f242=!!p.W.W["242"]),H.cAAC=T,H.cAVC=Ir('video/mp4; codecs="avc1.42001E"'), H.cVP9=Ir('video/webm; codecs="vp9"'));p.L&&(H.drmsys=p.L.keySystem,T=0,p.L.W&&(T=Object.keys(p.L.W).length),H.drmst=T);return new W2(B,H,b)})}; jn=function(z){this.data=window.Float32Array?new Float32Array(z):Array(z);this.K=this.W=z-1}; ERS=function(z){return z.data[z.W]||0}; qHV=function(z){this.L=z;this.D=this.K=0;this.X=new jn(50)}; oI=function(z,p,c){g.JQ.call(this);this.videoData=z;this.experiments=p;this.L=c;this.K=[];this.XI=0;this.D=!0;this.X=!1;this.V=0;c=new JIY;z.latencyClass==="ULTRALOW"&&(c.L=!1);z.sH?c.K=3:g.yN(z)&&(c.K=2);z.latencyClass==="NORMAL"&&(c.X=!0);g.P3(p,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.P3(p,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||z.latencyClass!=="LOW"&&z.latencyClass!=="ULTRALOW"||(c.X=!0);var B=g.P3(p,"html5_liveness_drift_proxima_override");if(Oe(z)!== 0&&B){c.W=B;var H;((H=z.W)==null?0:IiY(H))&&c.W--}Ee(z)&&p.JD("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.U=!0);if(g.k5("trident/")||g.k5("edge/"))H=g.P3(p,"html5_platform_minimum_readahead_seconds")||3,c.D=Math.max(c.D,H);g.P3(p,"html5_minimum_readahead_seconds")&&(c.D=g.P3(p,"html5_minimum_readahead_seconds"));g.P3(p,"html5_maximum_readahead_seconds")&&(c.S=g.P3(p,"html5_maximum_readahead_seconds"));p.JD("html5_force_adaptive_readahead")&&(c.L=!0);if(H=g.P3(p,"html5_liveness_drift_chunk_override"))c.W= H;Pf(z)&&(c.W=(c.W+1)/5,z.latencyClass==="LOW"&&(c.W*=2));if(z.latencyClass==="ULTRALOW"||z.latencyClass==="LOW")c.V=g.P3(p,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,c.G=g.P3(p,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=c;this.G=this.policy.K!==1;this.W=FM(this,MsE(this,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z))}; YHv=function(z,p){if(p)return p=z.videoData,p=MsE(z,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p),FM(z,p);if(z.K.length){if(Math.min.apply(null,z.K)>1)return FM(z,z.W-1);if(z.policy.L)return FM(z,z.W+1)}return z.W}; mtf=function(z,p){if(!z.K.length)return!1;var c=z.W;z.W=YHv(z,p===void 0?!1:p);if(p=c!==z.W)z.K=[],z.XI=0;return p}; n6=function(z,p){return p>=z.ww()-hj_(z)}; PlY=function(z,p,c){p=n6(z,p);c||p?p&&(z.D=!0):z.D=!1;z.G=z.policy.K===2||z.policy.K===3&&z.D}; AIN=function(z,p){p=n6(z,p);z.X!==p&&z.publish("livestatusshift",p);z.X=p}; hj_=function(z){var p=z.policy.W;z.X||(p=Math.max(p-1,0));return p*QU(z)}; MsE=function(z,p,c){c.sH&&p--;Pf(c)&&(p=1);if(Oe(c)!==0&&(z=g.P3(z.experiments,"html5_live_chunk_readahead_proxima_override"))){p=z;var B;((B=c.W)==null?0:IiY(B))&&p++}return p}; QU=function(z){return z.videoData.W?u2(z.videoData.W)||5:5}; FM=function(z,p){p=Math.max(Math.max(1,Math.ceil(z.policy.D/QU(z))),p);return Math.min(Math.min(8,Math.floor(z.policy.S/QU(z))),p)}; JIY=function(){this.D=0;this.S=Infinity;this.L=!0;this.W=2;this.K=1;this.X=!1;this.G=10;this.U=!1;this.V=1}; sn=function(z){g.e.call(this);this.cq=z;this.W=0;this.K=null;this.V=this.X=0;this.D={};this.Wq=this.cq.N();this.L=new g.B4(this.uZ,1E3,this);this.sH=new rw({delayMs:g.P3(this.Wq.experiments,"html5_seek_timeout_delay_ms")});this.Ra=new rw({delayMs:g.P3(this.Wq.experiments,"html5_long_rebuffer_threshold_ms")});this.UH=Un(this,"html5_seek_set_cmt");this.i8=Un(this,"html5_seek_jiggle_cmt");this.NZ=Un(this,"html5_seek_new_elem");this.gt=Un(this,"html5_unreported_seek_reseek");this.tD=Un(this,"html5_long_rebuffer_jiggle_cmt"); this.YA=Un(this,"html5_long_rebuffer_ssap_clip_not_match");this.T$=new rw({delayMs:2E4});this.OH=Un(this,"html5_seek_new_elem_shorts");this.CH=Un(this,"html5_seek_new_media_source_shorts_reuse");this.Zt=Un(this,"html5_seek_new_media_element_shorts_reuse");this.rA=Un(this,"html5_reseek_after_time_jump");this.S=Un(this,"html5_gapless_handoff_close_end_long_rebuffer");this.MZ=Un(this,"html5_gapless_slow_seek");this.U=Un(this,"html5_gapless_slice_append_stuck");this.Dt=Un(this,"html5_gapless_slow_start"); this.G=Un(this,"html5_ads_preroll_lock_timeout");this.Zw=Un(this,"html5_ssap_ad_longrebuffer_new_element");this.WM=new rw({delayMs:g.P3(this.Wq.experiments,"html5_skip_slow_ad_delay_ms")||5E3,rH:!this.Wq.Y("html5_report_slow_ads_as_error")});this.RR=new rw({delayMs:g.P3(this.Wq.experiments,"html5_skip_slow_ad_delay_ms")||5E3,rH:!this.Wq.Y("html5_skip_slow_buffering_ad")});this.FQ=new rw({delayMs:g.P3(this.Wq.experiments,"html5_slow_start_timeout_delay_ms")});this.fH=Un(this,"html5_slow_start_no_media_source"); g.l(this,this.L)}; Un=function(z,p){var c=g.P3(z.Wq.experiments,p+"_delay_ms");z=z.Wq.Y(p+"_cfl");return new rw({delayMs:c,rH:z})}; Oji=function(z,p){z.W=p}; ka=function(z,p,c,B,H,T,b,D){p.test(c)?(z.ZP(H,p,b),p.rH||T()):(p.nS&&p.K&&!p.X?(c=(0,g.y2)(),B?p.W||(p.W=c):p.W=0,T=!B&&c-p.K>p.nS,c=p.W&&c-p.W>p.TP||T?p.X=!0:!1):c=!1,c&&(D=Object.assign({},z.kt(p),D),D.wn=b,D.we=H,D.wsuc=B,z.cq.KH("workaroundReport",D),B&&(p.reset(),z.D[H]=!1)))}; rw=function(z){var p=z===void 0?{}:z;z=p.delayMs===void 0?0:p.delayMs;var c=p.TP===void 0?1E3:p.TP;var B=p.nS===void 0?3E4:p.nS;p=p.rH===void 0?!1:p.rH;this.W=this.K=this.D=this.startTimestamp=0;this.X=!1;this.L=Math.ceil(z/1E3);this.TP=c;this.nS=B;this.rH=p}; $tN=function(z){g.e.call(this);var p=this;this.cq=z;this.G=this.W=this.z$=this.mediaElement=this.playbackData=null;this.D=0;this.L=this.Dt=this.X=null;this.tD=!1;this.WM=0;this.MZ=!1;this.timestampOffset=0;this.S=!0;this.i8=0;this.NZ=this.FQ=!1;this.V=0;this.CH=!1;this.T$=0;this.Wq=this.cq.N();this.videoData=this.cq.getVideoData();this.policy=new w9W;this.U=new sn(this.cq);this.sH=this.rA=this.fH=this.K=NaN;this.YA=new g.B4(function(){RjQ(p,!1)},2E3); this.RR=new g.B4(function(){gw(p)}); this.OH=new g.B4(function(){p.tD=!0;SHv(p,{})}); this.UH=NaN;this.Ra=new g.B4(function(){var c=p.Wq.vO;c.W+=1E4/36E5;c.W-c.D>1/6&&(NVV(c),c.D=c.W);p.Ra.start()},1E4); g.l(this,this.U);g.l(this,this.YA);g.l(this,this.OH);g.l(this,this.RR);g.l(this,this.Ra)}; a1Q=function(z,p){z.playbackData=p;z.videoData.isLivePlayback&&(z.G=new qHV(function(){a:{if(z.playbackData&&z.playbackData.W.W){if(ha(z.videoData)&&z.z$){var c=z.z$.qN.Fu()||0;break a}if(z.videoData.W){c=z.videoData.W.T$;break a}}c=0}return c}),z.W=new oI(z.videoData,z.Wq.experiments,function(){return z.Yb(!0)})); G8(z.cq)?(p=KxQ(z),p.PY?(Ee(z.videoData)&&z.MC(p.PY,p.startSeconds),z.D=p.startSeconds):p.startSeconds>0&&z.seekTo(p.startSeconds,{VL:"seektimeline_startPlayback",seekSource:15}),z.S=!1):uVu(z)||(z.D=z.D||(g.pT(z.videoData)?0:z.videoData.startSeconds)||0)}; Lxv=function(z,p){(z.z$=p)?ZjY(z,!0):NN(z)}; dtV=function(z,p){g.H4(z.U.L);z.Y("html5_exponential_memory_for_sticky")&&(p.state.isPlaying()?g.H4(z.Ra):z.Ra.stop());if(z.mediaElement)if(p.oldState.state===8&&MP(p.state)&&p.state.isBuffering()){p=z.mediaElement.getCurrentTime();var c=z.mediaElement.zO();var B=z.Y("manifestless_post_live_ufph")||z.Y("manifestless_post_live")?qF(c,Math.max(p-3.5,0)):qF(c,p-3.5);B>=0&&p>c.end(B)-1.1&&B+10?(f6(z.cq,z.getCurrentTime()+z.videoData.limitedPlaybackDurationInSeconds),z.NZ=!0):z.videoData.isLivePlayback&&z.videoData.endSeconds>0&&(f6(z.cq,z.getCurrentTime()+z.videoData.endSeconds),z.NZ=!0))}; yIu=function(z,p){var c=z.getCurrentTime(),B=z.isAtLiveHead(c);if(z.G&&B){var H=z.G;if(H.W&&!(c>=H.K&&c50&&H.K.shift())),H=z.W,PlY(H,c,p===void 0?!0:p),AIN(H,c),p&&RjQ(z,!0));B!==z.FQ&&(p=z.getCurrentTime()-z.sH<=500,c=z.WM>=1E3,p||c||(p=z.cq.S9(),p.qoe&&(p=p.qoe,c=g.z8(p.provider), g.hU(p,c,"lh",[B?"1":"0"])),z.FQ=B,z.WM++,z.sH=z.getCurrentTime()))}; RjQ=function(z,p){if(z.W){var c=z.W;var B=z.getCurrentTime();!n6(c,B)&&c.Hs()?(c.policy.X&&(c.policy.W=Math.max(c.policy.W+c.policy.V,c.policy.G)),c=Infinity):c=B0&&iB(z.mediaElement)>0&&(z.K=zL(z,z.K,!1)),!z.mediaElement||!I1i(z))z.RR.start(750);else if(!isNaN(z.K)&&isFinite(z.K)){var p=z.rA-(z.K-z.timestampOffset);if(!(p===0||z.Y("html5_enable_new_seek_timeline_logic")&&Math.abs(p)<.005))if(p=z.mediaElement.getCurrentTime()-z.K,Math.abs(p)<=z.i8||z.Y("html5_enable_new_seek_timeline_logic")&&Math.abs(p)<.005)jHi(z);else{if(z.videoData.WK)z.videoData.WK= !1;else if(!m9(z.videoData)&&z.K>=z.Yb()-.1){z.K=z.Yb();z.X.resolve(z.Yb());z.cq.xx();return}try{var c=z.K-z.timestampOffset;z.mediaElement.seekTo(c);z.U.W=c;z.rA=c;z.D=z.K;z.Y("html5_enable_new_seek_timeline_logic")&&(z.MZ=!1)}catch(B){}}}}; I1i=function(z){if(!z.mediaElement||z.mediaElement.YG()===0||z.mediaElement.hasError())return!1;var p=z.mediaElement.getCurrentTime()>0;if(!(z.videoData.D&&z.videoData.D.W||z.videoData.isLivePlayback)&&z.videoData.ke())return p;if(z.K>=0){var c=z.mediaElement.W5();if(c.length||!p)return Jw(c,z.K-z.timestampOffset)}return p}; jHi=function(z){z.X&&(z.X.resolve(z.mediaElement.getCurrentTime()),z.U.K=null)}; vRx=function(z,p){z.L&&(z.L.resolve(p),z.cq.pY(),z.Wq.OW()&&(p=z.kt(),p["native"]=""+ +z.MZ,p.otgt=""+(z.K+z.timestampOffset),z.cq.KH("seekEnd",p)));NN(z)}; NN=function(z){z.K=NaN;z.rA=NaN;z.X=null;z.Dt=null;z.L=null;z.tD=!1;z.MZ=!1;z.i8=0;z.YA.stop();z.OH.stop()}; nR_=function(z,p,c){var B=z.mediaElement,H=p.type;switch(H){case "seeking":var T=B.getCurrentTime()+z.timestampOffset;if(!z.X||z.MZ&&T!==z.K){var b=!!z.X;z.X=new BS;z.Y("html5_enable_new_seek_timeline_logic")&&z.X.then(function(t){vRx(z,t)},function(){NN(z)}); if(z.videoData.isAd()){var D;ccD({adCpn:z.videoData.clientPlaybackNonce,contentCpn:(D=z.videoData.cA)!=null?D:""},p.W)}z.rA=T;Oji(z.U,B.getCurrentTime());z.seekTo(T,{seekSource:104,VL:"seektimeline_mediaElementEvent"});c&&FxV(c,T*1E3,!!b);z.MZ=!0}break;case "seeked":jHi(z);break;case "loadedmetadata":G8(z.cq)||oR_(z);gw(z);break;case "progress":gw(z);break;case "pause":z.V=z.getCurrentTime()}z.V&&((H==="play"||H==="playing"||H==="timeupdate"||H==="progress")&&z.getCurrentTime()-z.V>10&&(z.Y("html5_enable_new_media_element_puase_jump")? (z.cq.ZP(new W2("qoe.restart",{reason:"pauseJump"})),z.cq.hv(),z.seekTo(z.V,{VL:"pauseJumpNewElement"})):z.seekTo(z.V,{VL:"pauseJump"})),H!=="pause"&&H!=="play"&&H!=="playing"&&H!=="progress"&&(z.V=0))}; QHY=function(z){return(CT(z.videoData)||!!z.videoData.liveUtcStartSeconds)&&(!!z.videoData.liveUtcStartSeconds||uVu(z))&&!!z.videoData.W}; uVu=function(z){return!!z.videoData.startSeconds&&isFinite(z.videoData.startSeconds)&&z.videoData.startSeconds>1E9}; KxQ=function(z){var p=0,c=NaN,B="";if(!z.S)return{startSeconds:p,PY:c,source:B};z.videoData.YA?p=z.videoData.fH:m9(z.videoData)&&(p=Infinity);if(g.yN(z.videoData))return{startSeconds:p,PY:c,source:B};z.videoData.startSeconds?(B="ss",p=z.videoData.startSeconds):z.videoData.vO&&(B="stss",p=z.videoData.vO);z.videoData.liveUtcStartSeconds&&(c=z.videoData.liveUtcStartSeconds);if(isFinite(p)&&(p>z.Yb()||pz.Yb()||c0?(B.onesie="0",z.handleError(new W2("html5.missingapi",B)),!1):!0}; z3_=function(z){var p=r$();US(p,z);return g.q2(p,hsx())}; GL_=function(z,p){var c,B,H,T,b,D,t,X,x,E,q,J,M,P,O,R,K,Z,W,v,zY,U,HD,VW,f,F;return g.L(function(N){if(N.W==1)return p.fetchType="onesie",c=abS(p,z.getPlayerSize(),z.getVisibilityState()),B=new FN(z,c),g.a(N,B.fetch(),2);H=N.K;T={player_response:H};p.loading=!1;b=z.Gl.UJ;if(B.VR){D=g.m(B.VR.entries());for(t=D.next();!t.done;t=D.next())X=t.value,x=g.m(X),E=x.next().value,q=x.next().value,J=E,M=q,b.W.set(J,M,180),J===p.videoId&&(P=M.z5(),p.bN=P);b.yH=B}O=g.m(B.AG.entries());for(R=O.next();!R.done;R= O.next())K=R.value,Z=g.m(K),W=Z.next().value,v=Z.next().value,zY=W,U=v,b.K.set(zY,U,180);g.zz(p,T,!0);if(p.loading||Nb(p))return N.return(Promise.resolve());b.W.removeAll();b.K.removeAll();p.bN=[];HD={};VW="onesie.response";f=0;p.errorCode?(VW="auth",HD.ec=p.errorCode,HD.ed=p.errorDetail,HD.es=p.k8||"",f=2):(HD.successButUnplayable="1",HD.disposed=""+ +p.qZ(),HD.afmts=""+ +/adaptiveFormats/.test(H),HD.cpn=p.clientPlaybackNonce);F=new W2(VW,HD,f);return N.return(Promise.reject(F))})}; kLE=function(z,p){var c,B,H,T,b,D,t,X,x,E,q;return g.L(function(J){switch(J.W){case 1:c=p.isAd(),B=!c,H=c?1:3,T=0;case 2:if(!(T0)){J.hD(5);break}return g.a(J,WN(5E3),6);case 6:b=new g.z6("Retrying OnePlatform request",{attempt:T}),g.oc(b);case 5:return g.Ox(J,7),g.a(J,pcu(z,p),9);case 9:return J.return();case 7:D=g.SQ(J);t=Cd(D);X=t.errorCode;x=z.N();E=x.Y("html5_use_network_error_code_enums")?401:"401";B&&X==="manifest.net.badstatus"&&t.details.rc===E&&(B=!1,T===H-1&&(H+= 1));if(T===H-1)return q=cVu(c,t.details),q.details.backend="op",q.details.originec=X,J.return(Promise.reject(q));if(X==="auth"||X==="manifest.net.retryexhausted")return J.return(Promise.reject(t));z.handleError(t);if(yn(t.severity)){J.hD(4);break}case 3:T++;J.hD(2);break;case 4:return J.return(Promise.reject(cVu(c,{backend:"op"})))}})}; pcu=function(z,p){function c(VW){VW.readyState===2&&z.Fm("ps_c")} var B,H,T,b,D,t,X,x,E,q,J,M,P,O,R,K,Z,W,v,zY,U,HD;return g.L(function(VW){switch(VW.W){case 1:p.fetchType="gp";B=z.N();H=g.tj(B,g.se(p));if(!H.W){T=H.getValue();VW.hD(2);break}return g.a(VW,H.W,3);case 3:T=VW.K;case 2:return b=T,D=z3_(b),t=abS(p,z.getPlayerSize(),z.getVisibilityState()),X=g.D6(BbY),x=g.se(p),E=(0,g.y2)(),q=!1,J="empty",M=0,z.Fm("psns"),P={hL:c},g.a(VW,g.HY(D,t,X,void 0,P),4);case 4:O=VW.K;z.Fm("psnr");if(p.qZ())return VW.return();O?"error"in O&&O.error?(q=!0,J="esf:"+O.error.message, M=O.error.code):O.errorMetadata&&(q=!0,J="its",M=O.errorMetadata.status):q=!0;if(q)return R=0,K=((0,g.y2)()-E).toFixed(),Z={},Z=B.Y("html5_use_network_error_code_enums")?{backend:"op",rc:M,rt:K,reason:J,has_kpt:p.RR?"1":"0",has_mdx_env:p.mdxEnvironment?"1":"0",has_omit_key_flag:g.pN("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:B.pageId?"1":"0",has_token:x?"1":"0",has_vvt:p.Dt?"1":"0",is_mdx:p.isMdxPlayback?"1":"0",mdx_ctrl:p.TU||"",token_eq:x===g.se(p)?"1":"0"}:{backend:"op", rc:""+M,rt:K,reason:J,has_kpt:p.RR?"1":"0",has_mdx_env:p.mdxEnvironment?"1":"0",has_omit_key_flag:g.pN("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:B.pageId?"1":"0",has_token:x?"1":"0",has_vvt:p.Dt?"1":"0",is_mdx:p.isMdxPlayback?"1":"0",mdx_ctrl:p.TU||"",token_eq:x===g.se(p)?"1":"0"},W="manifest.net.connect",M===429?(W="auth",R=2):M>200&&(W="manifest.net.badstatus",M===400&&(R=2)),VW.return(Promise.reject(new W2(W,Z,R)));p.loading=!1;g.zz(p,{raw_player_response:O},!0); v=O;g.jF(p.N())&&v&&v.trackingParams&&Ck(v.trackingParams);if(p.errorCode)return zY={ec:p.errorCode,ed:p.errorDetail,es:p.k8||""},VW.return(Promise.reject(new W2("auth",zY,2)));if(!p.loading&&!Nb(p))return U=p.isAd()?"auth":"manifest.net.retryexhausted",HD=p.isAd()?2:1,VW.return(Promise.reject(new W2(U,{successButUnplayable:"1",hasMedia:g.Zt(p)?"1":"0"},HD)));g.Ai(VW)}})}; sHY=function(z,p,c){function B(M){M=Cd(M);if(yn(M.severity))return Promise.reject(M);z.handleError(M);return!1} function H(){return!0} var T,b,D,t,X,x,E,q,J;return g.L(function(M){switch(M.W){case 1:var P=z.N(),O=z.getPlayerSize(),R=z.getVisibilityState();z.isFullscreen();var K=window.location.search;if(p.partnerId===38&&P.playerStyle==="books")K=p.videoId.indexOf(":"),K=g.g6("//play.google.com/books/volumes/"+p.videoId.slice(0,K)+"/content/media",{aid:p.videoId.slice(K+1),sig:p.JU});else if(p.partnerId===30&&P.playerStyle==="docs")K=g.g6("https://docs.google.com/get_video_info",{docid:p.videoId,authuser:p.pT,authkey:p.Zy,eurl:P.Zt}); else if(p.partnerId===33&&P.playerStyle==="google-live")K=g.g6("//google-liveplayer.appspot.com/get_video_info",{key:p.videoId});else{P.MZ!=="yt"&&g.Fr(Error("getVideoInfoUrl for invalid namespace: "+P.MZ));var Z={html5:"1",video_id:p.videoId,cpn:p.clientPlaybackNonce,eurl:P.Zt,ps:P.playerStyle,el:oy(p),hl:P.RR,list:p.playlistId,agcid:p.uv,aqi:p.adQueryId,sts:20166,lact:y0()};Object.assign(Z,P.W);P.forcedExperiments&&(Z.forced_experiments=P.forcedExperiments);p.Dt?(Z.vvt=p.Dt,p.mdxEnvironment&&(Z.mdx_environment= p.mdxEnvironment)):g.se(p)&&(Z.access_token=g.se(p));p.adFormat&&(Z.adformat=p.adFormat);p.slotPosition>=0&&(Z.slot_pos=p.slotPosition);p.breakType&&(Z.break_type=p.breakType);p.Ym!==null&&(Z.ad_id=p.Ym);p.nA!==null&&(Z.ad_sys=p.nA);p.aW!==null&&(Z.encoded_ad_playback_context=p.aW);P.captionsLanguagePreference&&(Z.cc_lang_pref=P.captionsLanguagePreference);P.WM&&P.WM!==2&&(Z.cc_load_policy=P.WM);var W=g.k4(g.sA(),65);g.cX(P)&&W!=null&&!W&&(Z.device_captions_on="1");P.mute&&(Z.mute=P.mute);p.annotationsLoadPolicy&& P.annotationsLoadPolicy!==2&&(Z.iv_load_policy=p.annotationsLoadPolicy);p.Zi&&(Z.endscreen_ad_tracking=p.Zi);(W=P.YA.get(p.videoId))&&W.rj&&(Z.ic_track=W.rj);p.Ra&&(Z.itct=p.Ra);Ue(p)&&(Z.autoplay="1");p.mutedAutoplay&&(Z.mutedautoplay=p.mutedAutoplay);p.isAutonav&&(Z.autonav="1");p.w4&&(Z.noiba="1");p.isMdxPlayback&&(Z.mdx="1",Z.ytr=p.cV);p.mdxControlMode&&(Z.mdx_control_mode=p.mdxControlMode);p.DI&&(Z.ytrcc=p.DI);p.Np&&(Z.utpsa="1");p.isFling&&(Z.is_fling="1");p.isInlinePlaybackNoAd&&(Z.mute="1"); p.vnd&&(Z.vnd=p.vnd);p.forceAdsUrl&&(W=p.forceAdsUrl.split("|").length===3,Z.force_ad_params=W?p.forceAdsUrl:"||"+p.forceAdsUrl);p.JH&&(Z.preload=p.JH);O.width&&(Z.width=O.width);O.height&&(Z.height=O.height);(p.LN?0:p.gJ)&&(Z.splay="1");p.ypcPreview&&(Z.ypc_preview="1");QN(p)&&(Z.content_v=QN(p));p.sH&&(Z.livemonitor=1);P.tD&&(Z.authuser=P.tD);P.pageId&&(Z.pageid=P.pageId);P.NZ&&(Z.ei=P.NZ);P.X&&(Z.iframe="1");p.contentCheckOk&&(Z.cco="1");p.racyCheckOk&&(Z.rco="1");P.G&&p.Ak&&(Z.live_start_walltime= p.Ak);P.G&&p.Vy&&(Z.live_manifest_duration=p.Vy);P.G&&p.playerParams&&(Z.player_params=p.playerParams);P.G&&p.cycToken&&(Z.cyc=p.cycToken);P.G&&p.Nv&&(Z.tkn=p.Nv);R!==0&&(Z.vis=R);P.enableSafetyMode&&(Z.enable_safety_mode="1");p.RR&&(Z.kpt=p.RR);p.zf&&(Z.kids_age_up_mode=p.zf);p.kidsAppInfo&&(Z.kids_app_info=p.kidsAppInfo);p.wS&&(Z.upg_content_filter_mode="1");P.widgetReferrer&&(Z.widget_referrer=P.widgetReferrer.substring(0,128));p.MZ?(O=p.MZ.latitudeE7!=null&&p.MZ.longitudeE7!=null?p.MZ.latitudeE7+ ","+p.MZ.longitudeE7:",",O+=","+(p.MZ.clientPermissionState||0)+","+(p.MZ.locationRadiusMeters||"")+","+(p.MZ.locationOverrideToken||"")):O=null;O&&(Z.uloc=O);p.wh&&(Z.internalipoverride=p.wh);P.embedConfig&&(Z.embed_config=P.embedConfig);P.wp&&(Z.co_rel="1");P.ancestorOrigins.length>0&&(Z.ancestor_origins=Array.from(P.ancestorOrigins).join(","));P.homeGroupInfo!==void 0&&(Z.home_group_info=P.homeGroupInfo);P.livingRoomAppMode!==void 0&&(Z.living_room_app_mode=P.livingRoomAppMode);P.enablePrivacyFilter&& (Z.enable_privacy_filter="1");p.isLivingRoomDeeplink&&(Z.is_living_room_deeplink="1");p.oo&&p.nJ&&(Z.clip=p.oo,Z.clipt=p.nJ);p.iO&&(Z.disable_watch_next="1");p.dh&&(Z.forced_by_var="1");for(var v in Z)!Hnu.has(v)&&Z[v]&&String(Z[v]).length>512&&(g.oc(Error("GVI param too long: "+v)),Z[v]="");v=P.qa;g.FB(P)&&(v=TM(v.replace(/\b(?:www|web)([.-])/,"tv$1"))||P.qa);P=g.g6(v+"get_video_info",Z);K&&(P=VVY(P,K));K=P}T=K;D=(b=p.isAd())?1:3;t=0;case 2:if(!(t0)){M.hD(5);break}return g.a(M, WN(5E3),6);case 6:x={playerretry:t,playerretrysrc:c},b||(x.recover="embedded"),X=E0(T,x);case 5:return g.a(M,inx(p,X).then(H,B),7);case 7:if(E=M.K)return M.return();t++;M.hD(2);break;case 4:q=b?"auth":"manifest.net.retryexhausted";J=b?2:1;if(!b&&Math.random()<1E-4)try{g.oc(new g.z6("b/152131571",btoa(T)))}catch(zY){}return M.return(Promise.reject(new W2(q,{backend:"gvi"},J)))}})}; inx=function(z,p){function c(O){return B(O.xhr)} function B(O){if(!z.qZ()){O=O?O.status:-1;var R=0,K=((0,g.y2)()-x).toFixed();K=H.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:O,rt:K}:{backend:"gvi",rc:""+O,rt:K};var Z="manifest.net.connect";O===429?(Z="auth",R=2):O>200&&(Z="manifest.net.badstatus",O===400&&(R=2));return Promise.reject(new W2(Z,K,R))}} var H,T,b,D,t,X,x,E,q,J,M,P;return g.L(function(O){if(O.W==1){z.fetchType="gvi";H=z.N();var R={};z.oB&&(R.ytrext=z.oB);(D=g.y3(R)?void 0:R)?(T={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:D},b=E0(p,{action_display_post:1})):(T={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},b=p);t={};H.sendVisitorIdHeader&&z.visitorData&&(t["X-Goog-Visitor-Id"]=z.visitorData);(X=iP(H.experiments,"debug_sherlog_username"))&&(t["X-Youtube-Sherlog-Username"]=X);Object.keys(t).length> 0&&(T.headers=t);x=(0,g.y2)();return g.a(O,qO(CN,b,T).then(void 0,c),2)}E=O.K;if(!E||!E.responseText)return O.return(B(E));z.loading=!1;q=Dz(E.responseText);g.zz(z,q,!0);if(z.errorCode)return J={ec:z.errorCode,ed:z.errorDetail,es:z.k8||""},O.return(Promise.reject(new W2("auth",J,2)));if(!z.loading&&!Nb(z))return M=z.isAd()?"auth":"manifest.net.retryexhausted",P=z.isAd()?2:1,O.return(Promise.reject(new W2(M,{successButUnplayable:"1"},P)));g.Ai(O)})}; cVu=function(z,p){return new W2(z?"auth":"manifest.net.retryexhausted",p,z?2:1)}; il=function(z,p,c){c=c===void 0?!1:c;var B,H,T,b;g.L(function(D){if(D.W==1){B=z.N();if(c&&(!g.HX(B)||oy(p)!=="embedded")||p.iO||oy(p)!=="adunit"&&(g.yi(B)||sc(B)||g.rn(B)||g.FB(B)||BW(B)==="WEB_CREATOR"))return D.return();H=g.tj(B,g.se(p));return H.W?g.a(D,H.W,3):(T=H.getValue(),D.hD(2))}D.W!=2&&(T=D.K);b=T;return D.return(Tbv(z,p,b))})}; Tbv=function(z,p,c){var B,H,T,b,D;return g.L(function(t){if(t.W==1){g.Ox(t,2);B=z3_(c);var X=p.N();g.sA();var x={context:g.xG(p),videoId:p.videoId,racyCheckOk:p.racyCheckOk,contentCheckOk:p.contentCheckOk,autonavState:"STATE_NONE"};oy(p)==="adunit"&&(x.isAdPlayback=!0);X.embedConfig&&(x.serializedThirdPartyEmbedConfig=X.embedConfig);X.wp&&(x.showContentOwnerOnly=!0);p.hs&&(x.showShortsOnly=!0);g.k4(0,141)&&(x.autonavState=g.k4(0,140)?"STATE_OFF":"STATE_ON");if(g.cX(X)){var E=g.k4(0,65);E=E!=null? !E:!1;var q=!!g.Fy("yt-player-sticky-caption");x.captionsRequested=E&&q}var J;if(X=(J=X.getWebPlayerContextConfig())==null?void 0:J.encryptedHostFlags)x.playbackContext={encryptedHostFlags:X};H=x;T=g.D6(bnB);z.Fm("wn_s");return g.a(t,g.HY(B,H,T),4)}if(t.W!=2)return b=t.K,z.Fm("wn_r"),!b||"error"in b&&b.error||(D=b,g.jF(p.N())&&D.trackingParams&&Ck(D.trackingParams),g.zz(p,{raw_watch_next_response:b},!1)),g.RE(t,0);g.SQ(t);g.Ai(t)})}; VZi=function(z){z.Fm("vir");z.Fm("ps_s");z4("vir",void 0,"video_to_ad");var p=f1S(z);p.then(function(){z.Fm("virc");z4("virc",void 0,"video_to_ad");z.Fm("ps_r");z4("ps_r",void 0,"video_to_ad")},function(){z.Fm("virc"); z4("virc",void 0,"video_to_ad")}); return p}; g.VI=function(z,p,c,B,H,T,b,D,t,X){t=t===void 0?new g.GU(z):t;X=X===void 0?!0:X;g.JQ.call(this);var x=this;this.Wq=z;this.playerType=p;this.VS=c;this.Tz=B;this.getVisibilityState=T;this.visibility=b;this.Gl=D;this.videoData=t;this.tM=X;this.logger=new g.Xk("VideoPlayer");this.sR=null;this.pG=new tU;this.z9=null;this.Zv=!0;this.G$=this.z$=null;this.Xh=[];this.E0=new H9;this.Fj=this.MF=null;this.W6=new H9;this.W3=null;this.Hp=this.BI=!1;this.KS=NaN;this.GN=!1;this.playerState=new g.D0;this.DU=[];this.oy= new g.or;this.Nz=new BEY(this);this.mediaElement=null;this.mI=new g.B4(this.WY3,15E3,this);this.Ox=this.Tm=!1;this.Up=NaN;this.uj=!1;this.M3=0;this.Uk=!1;this.o7=NaN;this.V$=new pj(new Map([["bufferhealth",function(){return WxY(x.Yr)}], ["bandwidth",function(){return x.GB()}], ["networkactivity",function(){return x.Wq.schedule.tD}], ["livelatency",function(){return x.isAtLiveHead()&&x.isPlaying()?DsW(x):NaN}], ["rawlivelatency",function(){return DsW(x)}]])); this.jl=0;this.loop=!1;this.playbackRate=1;this.GH=0;this.Yr=new $tN(this);this.o1=!1;this.MG=[];this.aO=this.BP=0;this.r6=this.yz=!1;this.J6=this.r5=0;this.lj=-1;this.Lf="";this.J2=new g.B4(this.vAI,0,this);this.aR=this.gU=null;this.M_H=[this.oy,this.J2,this.mI,this.V$];this.n1=this.Xb=null;this.mV=function(){var E=x.S9();E.provider.Wq.LN||E.provider.cq.getVisibilityState()===3||(E.provider.Wq.LN=!0);E.XU();if(E.K){var q=E.K;q.L&&q.W<0&&q.provider.cq.getVisibilityState()!==3&&yAV(q)}E.qoe&&(E=E.qoe, E.Zt&&E.K<0&&E.provider.Wq.LN&&X5Y(E),E.X&&On(E));x.z$&&TL(x);x.Wq.E_&&!x.videoData.backgroundable&&x.mediaElement&&!x.td()&&(x.isBackground()&&x.mediaElement.FF()?(x.KH("bgmobile",{suspend:1}),x.XW(!0,!0)):x.isBackground()||bl(x)&&x.KH("bgmobile",{resume:1}))}; this.Xg={MD:function(E){x.MD(E)}, mcA:function(E){x.sR=E}, rzH:function(){return x.bB}, vx:function(){return x.H5}, H0:function(){return x.G$}, UDA:function(){return x.eR}, lWH:function(){return x.Do}, Ox$:function(){}, N:function(){return x.Wq}, h1:function(){return x.mediaElement}, gP8:function(E){x.Ii(E)}, HI0:function(){return x.Tz}}; this.logger.debug(function(){return"creating, type "+p}); this.Td=new tsN(this.Wq);this.au=new MHD(this.Wq,this.Tz,this);this.hn=new g.v5(this,function(E,q){E!==g.E5("endcr")||g.r(x.playerState,32)||x.xx();H(E,q,x.playerType)},function(E,q){g.pT(x.videoData)&&x.KH(E,q)}); g.l(this,this.hn);g.l(this,this.Yr);tZN(this,t);this.videoData.subscribe("dataupdated",this.WVA,this);this.videoData.subscribe("dataloaded",this.p7,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.KH,this);this.videoData.subscribe("ctmpstr",this.aT,this);this.Ai();paN(this.mV);this.visibility.subscribe("visibilitystatechange",this.mV);this.eR=new g.B4(this.yh,g.P3(this.Wq.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Do= new g.B4(this.yh,g.P3(this.Wq.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.KX=new g.b5(this.cP,g.P3(this.Wq.experiments,"html5_progress_event_throttle_ms")||350,this);g.l(this,this.KX)}; tZN=function(z,p){if(z.playerType===2||z.Wq.RP)p.ZX=!0;var c=nbf(p.EW,p.KJ,z.Wq.X,z.Wq.G);c&&(p.adFormat=c);z.playerType===2&&(p.bY=!0);if(z.isFullscreen()||z.Wq.X)c=g.Fy("yt-player-autonavstate"),p.autonavState=c||(z.Wq.X?2:z.videoData.autonavState);p.endSeconds&&p.endSeconds>p.startSeconds&&f6(z,p.endSeconds)}; XcN=function(z){sIN(z.bB);g.Dm(z.bB);for(var p=z.H5,c=g.m(p.W.values()),B=c.next();!B.done;B=c.next())sIN(B.value);p.W.clear();g.Dm(z.H5)}; xsY=function(z){var p=z.videoData;VZi(z).then(void 0,function(c){z.videoData!==p||p.qZ()||(c=Cd(c),c.errorCode==="auth"&&z.videoData.errorDetail?z.OI(c.errorCode,2,unescape(z.videoData.errorReason),dB(c.details),z.videoData.errorDetail,z.videoData.k8||void 0):z.handleError(c))})}; JVx=function(z){if(!g.r(z.playerState,128))if(z.videoData.isLoaded(),z.logger.debug("finished loading playback data"),z.Xh=g.ce(z.videoData.tD),g.Zt(z.videoData)){z.VS.tick("bpd_s");D1(z).then(function(){z.VS.tick("bpd_c");if(!z.qZ()){z.BI&&(z.QL(xN(xN(z.playerState,512),1)),bl(z));var B=z.videoData;B.endSeconds&&B.endSeconds>B.startSeconds&&f6(z,B.endSeconds);z.E0.finished=!0;tI(z,"dataloaded");z.W6.ge()&&EFY(z);WTY(z.au,z.Fj)}}); z.Y("html5_log_media_perf_info")&&z.KH("loudness",{v:z.videoData.e1.toFixed(3)},!0);var p,c=(p=z.mediaElement)==null?void 0:p.XQ();if(c&&"disablePictureInPicture"in c&&z.Wq.B0)try{c.disablePictureInPicture=z.Wq.Ru&&!z.videoData.backgroundable}catch(B){g.oc(B)}qsQ(z)}else tI(z,"dataloaded")}; D1=function(z){XV(z);z.Fj=null;var p=xtN(z.Wq,z.videoData,z.td());z.MF=p;z.MF.then(function(c){MZV(z,c)},function(c){z.qZ()||(c=Cd(c),z.visibility.isBackground()?(xR(z,"vp_none_avail"),z.MF=null,z.E0.reset()):(z.E0.finished=!0,z.OI(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dB(c.details))))}); return p}; MZV=function(z,p){if(!z.qZ()&&!p.videoData.qZ()){z.logger.debug("finished building playback data");z.Fj=p;a1Q(z.Yr,z.Fj);if(z.videoData.isLivePlayback){var c=YsN(z.Gl.UJ,z.videoData.videoId)||z.z$&&!isNaN(z.z$.tD);c=z.Y("html5_onesie_live")&&c;G8(z)||z.videoData.gt>0&&!ha(z.videoData)||c||z.seekTo(z.Yb(),{VL:"videoplayer_playbackData",seekSource:18})}if(z.videoData.D.W){if(z.Y("html5_sabr_report_missing_url_as_error")&&mpW(z.videoData)){z.handleError(new W2("fmt.missing",{missabrurl:"1"},2));return}z.z$? g.oc(Error("Duplicated Loader")):(c=g.P3(z.Wq.experiments,"html5_onesie_defer_content_loader_ms"))&&z.If()&&YsN(z.Gl.UJ,z.videoData.HJ)?g.O0(function(){z.qZ()||z.z$||msD(z)},c):msD(z)}else!z.videoData.D.W&&Gz(z.videoData)&&z.Bv(new mq(z.videoData.videoId||"",4)); z.gX();$wW(p).then(function(){var B={};z.yQ(B);z.Wq.OW()&&z.Y("html5_log_media_perf_info")&&z.KH("av1Info",B);TL(z)})}}; EFY=function(z){z.qZ();z.logger.debug("try finish readying playback");if(z.W6.finished)z.logger.debug("already finished readying");else if(z.E0.finished)if(g.r(z.playerState,128))z.logger.debug("cannot finish readying because of error");else if(z.Xh.length)z.logger.debug(function(){return"cannot finish readying because of pending preroll: "+z.Xh}); else if(z.hn.started||bju(z.hn),z.PV())z.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{z.z$&&(z.Hp=hHS(z.z$.timing));z.W6.finished||(z.W6.finished=!0);var p=z.Y("html5_onesie_live")&&z.z$&&!isNaN(z.z$.tD);!z.videoData.isLivePlayback||z.videoData.gt>0&&!ha(z.videoData)||p||G8(z)||(z.logger.debug("seek to head for live"),z.seekTo(Infinity,{VL:"videoplayer_readying",seekSource:18}),z.isBackground()&&(z.Ox=!0));naW(z.S9());z.logger.debug("finished readying playback"); z.publish("playbackready");NZ("pl_c",z.VS.timerName)||(z.VS.tick("pl_c"),z4("pl_c",void 0,"video_to_ad"));NZ("pbr",z.VS.timerName)||(z.VS.tick("pbr"),z4("pbr",void 0,"video_to_ad"))}else z.logger.debug("playback data not loaded")}; f6=function(z,p){z.z9&&h3W(z);z.z9=new g.Xq(p*1E3,0x7ffffffffffff);z.z9.namespace="endcr";z.addCueRange(z.z9)}; h3W=function(z){z.removeCueRange(z.z9);z.z9=null}; PQu=function(z,p,c,B,H){var T=z.S9(H),b=g.pT(z.videoData)?T.getVideoData():z.videoData;b.K=c;var D=g.EH(z);c=new JAx(b,c,p,D?D.itag:"",B);z.Wq.experiments.JD("html5_refactor_sabr_video_format_selection_logging")?(c.videoId=H,z.n1=c):T.qoe&&NGx(T.qoe,c);H=z.au;H.K=0;H.W=0;z.publish("internalvideoformatchange",b,p==="m")}; g.EH=function(z){var p=qt(z);return xt(p)||!z.Fj?null:g.kL(z.Fj.W.videoInfos,function(c){return p.X(c)})}; qt=function(z){if(z.Fj){var p=z.au;var c=z.Fj;z=z.L6();var B=hQf(p);if(xt(B)){if(B=Ypx(p,c).compose(waS(p,c)).compose(SpW(p,c)).compose(LTY(p,c.videoData)).compose(dw_(p,c.videoData,c)).compose(qN(p,c)).compose(AAS(p,c)),xt(z)||p.Y("html5_apply_pbr_cap_for_drm"))B=B.compose(OvW(p,c))}else p.Y("html5_perf_cap_override_sticky")&&(B=B.compose(qN(p,c))),p.Y("html5_ustreamer_cap_override_sticky")&&(B=B.compose(OvW(p,c)));B=B.compose(AAS(p,c));p=c.videoData.Zb.compose(B).compose(c.videoData.DE).compose(z)}else p= ge;return p}; dbS=function(z){var p=z.au;z=z.videoData;var c=LTY(p,z);p.Y("html5_disable_client_autonav_cap_for_onesie")||c.compose(dw_(p,z));return c}; TL=function(z){if(z.videoData.D&&z.videoData.D.W){var p=qt(z);z.z$&&K9u(z.z$,p)}}; AVY=function(z){var p;return!!(z.Y("html5_native_audio_track_switching")&&g.$U&&((p=z.videoData.K)==null?0:im(p)))}; On_=function(z){if(!AVY(z))return!1;var p;z=(p=z.mediaElement)==null?void 0:p.audioTracks();return!!(z&&z.length>1)}; R3Y=function(z){var p=wcE(z);if(p)return z.videoData.getAvailableAudioTracks().find(function(c){return c.bQ.getName()===p})}; wcE=function(z){var p;if(z=(p=z.mediaElement)==null?void 0:p.audioTracks())for(p=0;p0&&(p.Rk=B.mP)); p.xY=B.Rz;p.xw=l2(c,{},B.D||void 0,xI(B));p.sH=Xl(B)&&g.rn(c);Ee(B)&&(p.cO=!0,c.Y("html5_sabr_report_partial_segment_estimated_duration")&&(p.TG=!0),p.W=!0,p.CQ=!0,p.Jl=c.Y("html5_sabr_enable_live_clock_offset"),p.U_=c.Y("html5_disable_client_resume_policy_for_sabr"),p.c_=c.Y("html5_trigger_loader_when_idle_network"),p.Iu=c.Y("html5_sabr_parse_live_metadata_playback_boundaries"),p.xn=c.Y("html5_enable_platform_backpressure_with_sabr"),p.Sv=c.Y("html5_consume_onesie_next_request_policy_for_sabr"), p.GG=c.Y("html5_sabr_report_next_ad_break_time"),p.Di=c.Y("html5_log_high_res_buffer_timeline")&&c.OW(),p.H_=c.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"),p.eB=c.Y("html5_gapless_sabr_btl_last_slice")&&ta(B),p.kd=c.Y("html5_reset_last_appended_slice_on_seek")&&ta(B),ha(B)?(p.SB=!0,p.E_=c.Y("html5_disable_variability_tracker_for_live"),p.Zt=c.Y("html5_sabr_use_accurate_slice_info_params"),c.Y("html5_simplified_backup_timeout_sabr_live")&&(p.ou=!0,p.Hf=p.a_)):p.LB=c.Y("html5_probe_request_on_sabr_request_progress"), p.B_=c.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),p.gJ=c.Y("html5_flush_index_on_updated_timestamp_offset"),p.fH=c.Y("html5_enable_sabr_request_pipelining")&&!g.pT(B),p.TL=c.Y("html5_ignore_partial_segment_from_live_readahead"),p.z1=c.Y("html5_use_non_active_broadcast_for_post_live"),p.Ra=c.Y("html5_use_centralized_player_time"),p.l6=c.Y("html5_consume_onesie_sabr_seek"),p.Dt=c.Y("html5_enable_sabr_seek_loader_refactor"),p.Mt=c.Y("html5_update_segment_start_time_from_media_header"),B.enableServerStitchedDai&& (p.L=!0,p.gS=c.Y("html5_reset_server_stitch_state_for_non_sabr_seek"),p.Zi=c.Y("html5_remove_ssdai_append_pause")&&!B.yL(),p.CH=c.Y("html5_consume_ssdai_info_with_streaming"),p.A8=c.Y("html5_ssdai_log_ssevt_in_loader")),p.kY=c.OW()||B.yL());p.V=p.W&&c.Y("html5_sabr_live");p.WM=g.MCY(B);$t(c.L,KS.BITRATE)&&(p.l8=NaN);if(D=g.P3(c.experiments,"html5_request_size_max_kb"))p.OH=D*1024;c.L.L?p.LN="; "+KS.EXPERIMENTAL.name+"=allowed":c.Y("html5_enable_cobalt_tunnel_mode")&&(p.LN="; tunnelmode=true");D=B.serverPlaybackStartConfig; (D==null?0:D.enable)&&(D==null?0:D.playbackStartPolicy)&&(p.e1=!0,pWN(p,D.playbackStartPolicy,2));D=SsD(z);z.pG.removeAll();a:{c=z.Gl.UJ;if(B=z.videoData.videoId)if(H=c.W.get(B)){c.W.remove(B);c=H;break a}c=void 0}z.z$=new g.Nw(z,z.Wq.schedule,p,z.videoData.W,z.videoData.D,qt(z),D,z.videoData.enableServerStitchedDai,c,z.videoData.OH);p=z.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&z.videoData.isLivePlayback&&z.If()?!0:z.BI&&g.yi(z.Wq)&&z.videoData.isLivePlayback;z.z$.initialize(z.getCurrentTime(), qt(z),p);z.videoData.probeUrl&&(z.z$.NZ=z.videoData.probeUrl);if(z.Xh.length||z.BI)z.videoData.cotn||JI(z,!1);Lxv(z.Yr,z.z$);z.gU&&(gIB(z.z$,new g.p6(z.gU)),z.KH("sdai",{sdl:1}));z.aR&&(z.z$.GV(z.aR),z.Yr.S=!1);g.ig(z.videoData)&&(z=z.z$,z.policy.Q3=z.policy.Jf)}; XV=function(z){z.z$&&(z.z$.dispose(),z.z$=null,Lxv(z.Yr,null));z.Rm()?$sE(z):z.vH()}; $sE=function(z){if(z.G$)if(z.logger.debug("release media source"),z.n8(),z.G$.L)try{z.Wq.OW()&&z.KH("rms",{l:"vprms",sr:z.Rm(),rs:pg(z.G$)});z.G$.clear();var p;(p=z.mediaElement)!=null&&(p.K=z.G$);z.G$=null}catch(c){p=new g.z6("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),p=Cd(p),z.handleError(p),z.vH()}else z.vH()}; KLD=function(z,p){p=p===void 0?!1:p;if(z.G$)return z.G$.D;z.logger.debug("update media source");a:{p=p===void 0?!1:p;try{g.GQ()&&z.videoData.PE()&&ybx(z.mediaElement);var c=z.mediaElement.H0(z.uU(),z.wV())}catch(H){if(VHf(z.Nz,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);z.OI("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}z.Ej(c,!1,!1,p)}var B;return((B=z.H0())==null?void 0:B.D)||null}; usS=function(z,p){p=p===void 0?!1:p;if(z.z$){z.Y("html5_keep_ssdai_avsync_in_loader_track")&&HPY(z.z$);var c=z.getCurrentTime()-z.e_();z.z$.seek(c,{G9:p}).zL(function(){})}else msD(z)}; Znv=function(z,p,c,B){c=c===void 0?!1:c;B=B===void 0?!1:B;if(z.G$&&(!p||z.G$===p)){z.logger.debug("media source opened");var H=z.getDuration();!H&&ha(z.videoData)&&(H=25200);if(z.G$.isView){var T=H;z.logger.debug(function(){return"Set media source duration to "+T+", video duration "+H}); T>z.G$.getDuration()&&aHQ(z,T)}else aHQ(z,H);RMY(z.z$,z.G$,c,B);z.publish("mediasourceattached")}}; aHQ=function(z,p){if(z.G$){z.G$.pQ(p);var c;(c=z.z$)!=null&&c.policy.Ra&&(c.V=p)}}; at_=function(z,p){PQu(z,p.reason,p.W.info,p.token,p.videoId)}; LLB=function(z,p){z.Wq.experiments.JD("enable_adb_handling_in_sabr")&&(z.pauseVideo(!0),z.publish("onAbnormalityDetected"),p&&z.OI("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; tI=function(z,p){z.publish("internalvideodatachange",p===void 0?"dataupdated":p,z.videoData)}; dsW=function(z){var p="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");z.Y("html5_remove_progress_event_listener")||(p.push("progress"),p.push("suspend"));p=g.m(p);for(var c=p.next();!c.done;c=p.next())z.oy.Z(z.mediaElement,c.value,z.Ii,z);z.Wq.gp&&z.mediaElement.V6()&&(z.oy.Z(z.mediaElement,"webkitplaybacktargetavailabilitychanged",z.FBp,z),z.oy.Z(z.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",z.Xyp, z))}; yV_=function(z){g.S9(z.KS);WLu(z)||(z.KS=g.wS(function(){return WLu(z)},100))}; WLu=function(z){var p=z.mediaElement;p&&z.Tm&&!z.videoData.T$&&!NZ("vfp",z.VS.timerName)&&p.YG()>=2&&!p.isEnded()&&YK(p.zO())>0&&z.VS.tick("vfp");return(p=z.mediaElement)&&!z.videoData.T$&&p.getDuration()>0&&(p.isPaused()&&p.YG()>=2&&YK(p.zO())>0&&(NZ("pbp",z.VS.timerName)||z.VS.tick("pbp"),!z.videoData.v0||z.GN||p.isSeeking()||(z.GN=!0,z.publish("onPlaybackPauseAtStart"))),p=p.getCurrentTime(),II(z.Td,p))?(z.im(),!0):!1}; e3u=function(z){z.S9().Jv();if(m9(z.videoData)&&Date.now()>z.GH+6283){if(!(!z.isAtLiveHead()||z.videoData.W&&S5(z.videoData.W))){var p=z.S9();if(p.qoe){p=p.qoe;var c=p.provider.cq.rb(),B=g.z8(p.provider);BwE(p,B,c);c=c.D;isNaN(c)||g.hU(p,B,"e2el",[c.toFixed(3)])}}z.Y("html5_alc_live_log_rawlat")?(p=z.videoData,p=g.d9(p.N())?!0:g.zU(p.N())?p.hq==="6":!1):p=g.d9(z.Wq);p&&z.KH("rawlat",{l:B9(z.V$,"rawlivelatency").toFixed(3)});z.GH=Date.now()}z.videoData.K&&im(z.videoData.K)&&(p=z.vI())&&p.videoHeight!== z.aO&&(z.aO=p.videoHeight,PQu(z,"a",CQE(z,z.videoData.UH)))}; CQE=function(z,p){if(p.W.video.quality==="auto"&&im(p.getInfo())&&z.videoData.t1)for(var c=g.m(z.videoData.t1),B=c.next();!B.done;B=c.next())if(B=B.value,B.getHeight()===z.aO&&B.W.video.quality!=="auto")return B.getInfo();return p.getInfo()}; DsW=function(z){if(!m9(z.videoData))return NaN;var p=0;z.z$&&z.videoData.W&&(p=ha(z.videoData)?z.z$.qN.Fu()||0:z.videoData.W.T$);return(0,g.y2)()/1E3-z.S5()-p}; vFN=function(z){z.mediaElement&&z.mediaElement.td()&&(z.o7=(0,g.y2)());z.Wq.Em?g.O0(function(){lHY(z)},0):lHY(z)}; lHY=function(z){var p;if((p=z.G$)==null||!p.Kn()){if(z.mediaElement)try{z.W3=z.mediaElement.playVideo()}catch(B){xR(z,"err."+B)}if(z.W3){var c=z.W3;c.then(void 0,function(B){z.logger.debug(function(){return"playMediaElement failed: "+B}); if(!g.r(z.playerState,4)&&!g.r(z.playerState,256)&&z.W3===c)if(B&&B.name==="AbortError"&&B.message&&B.message.includes("load"))z.logger.debug(function(){return"ignore play media element failure: "+B.message}); else{var H="promise";B&&B.name&&(H+=";m."+B.name);xR(z,H);z.o1=!0;z.videoData.LN=!0}})}}}; xR=function(z,p){g.r(z.playerState,128)||(z.QL(qP(z.playerState,1028,9)),z.KH("dompaused",{r:p}),z.publish("onAutoplayBlocked"))}; bl=function(z,p){p=p===void 0?!1:p;if(!z.mediaElement||!z.videoData.D)return!1;var c=p;c=c===void 0?!1:c;var B=null;var H;if((H=z.videoData.D)==null?0:H.W){B=KLD(z,c);var T;(T=z.z$)==null||T.resume()}else XV(z),z.videoData.UH&&(B=z.videoData.UH.tf());H=z.mediaElement.FF();c=!1;H&&H.oI(B)||(IHi(z,B),c=!0);g.r(z.playerState,2)||(B=z.Yr,p=p===void 0?!1:p,B.L||!(B.D>0)||B.mediaElement&&B.mediaElement.getCurrentTime()>0||(p={VL:"seektimeline_resumeTime",G9:p},B.videoData.T$||(p.seekSource=15),B.seekTo(B.D, p)));a:{p=c;if(Ee(z.videoData)){if(!z.videoData.ke())break a}else if(!g.$I(z.videoData))break a;if(z.mediaElement)if((B=z.videoData.L)&&z.mediaElement.V6()){H=z.mediaElement.XQ();if(z.sR)if(H!==z.sR.element)Mt(z);else if(p&&B.flavor==="fairplay"&&!N_())Mt(z);else break a;if(z.Y("html5_report_error_for_unsupported_tvos_widevine")&&N_()&&B.flavor==="widevine")z.OI("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{z.sR=new rF_(H,z.videoData,z.Wq);z.sR.subscribe("licenseerror", z.Gm,z);z.sR.subscribe("qualitychange",z.ErD,z);z.sR.subscribe("heartbeatparams",z.ag,z);z.sR.subscribe("keystatuseschange",z.MD,z);z.sR.subscribe("ctmp",z.KH,z);z.Y("html5_widevine_use_fake_pssh")&&!z.videoData.isLivePlayback&&B.flavor==="widevine"&&z.sR.D6(new Yo(j0f,"cenc",!1));p=g.m(z.pG.keys);for(B=p.next();!B.done;B=p.next())B=z.pG.get(B.value),z.sR.D6(B);z.Y("html5_eme_loader_sync")||z.pG.removeAll()}}else z.OI("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c}; IHi=function(z,p){z.VS.tick("vta");z4("vta",void 0,"video_to_ad");z.getCurrentTime()>0&&ClV(z.Yr,z.getCurrentTime());z.mediaElement.activate(p);z.G$&&Dg(0,4);!z.videoData.T$&&z.playerState.isOrWillBePlaying()&&z.mI.start();if(AVY(z)){var c;if(p=(c=z.mediaElement)==null?void 0:c.audioTracks())p.onchange=function(){z.publish("internalaudioformatchange",z.videoData,!0)}}}; Mt=function(z){z.sR&&(z.sR.dispose(),z.sR=null)}; FLQ=function(z){var p=p===void 0?!1:p;z.logger.debug("reattachVideoSource");z.mediaElement&&(z.G$?(Mt(z),z.vH(),KLD(z,p)):(z.videoData.UH&&z.videoData.UH.w6(),z.mediaElement.stopVideo()),z.playVideo())}; oFD=function(z,p){z.Wq.Y("html5_log_rebuffer_reason")&&(p={r:p,lact:y0()},z.mediaElement&&(p.bh=TC(z.mediaElement)),z.KH("bufreason",p))}; nFS=function(z,p){if(z.Wq.OW()&&z.mediaElement){var c=z.mediaElement.kt();c.omt=(z.mediaElement.getCurrentTime()+z.e_()).toFixed(3);c.ps=z.playerState.state.toString(16);c.rt=(g.z8(z.S9().provider)*1E3).toFixed();c.e=p;z.MG[z.BP++%5]=c}try{if(p==="timeupdate"||p==="progress")return}catch(B){}z.logger.debug(function(){return"video element event "+p})}; Q0S=function(z){if(z.Wq.OW()){z.MG.sort(function(B,H){return+B.rt-+H.rt}); for(var p=g.m(z.MG),c=p.next();!c.done;c=p.next())c=c.value,z.KH("vpe",Object.assign({t:c.rt},c));z.MG=[];z.BP=0}}; rVx=function(z){if(g.k5("cobalt")&&g.k5("nintendo switch")){var p=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;z.KH("nxdock",{d:p})}}; JI=function(z,p){var c;(c=z.z$)==null||fv(c,p)}; HvV=function(z,p){return g.pT(z.videoData)&&z.aR?z.aR.handleError(p,void 0):!1}; qsQ=function(z){YI(z.videoData,"html5_set_debugging_opt_in")&&(z=g.sA(),g.k4(0,183)||(GW(183,!0),z.save()))}; UsS=function(z){return g.pT(z.videoData)&&z.aR?rE(z.aR):z.videoData.Yb()}; T$Y=function(z,p){z.Gl.pD()||(z.KH("sgap",{f:p}),z.Gl.clearQueue(!1,p==="pe"))}; G8=function(z){return z.Y("html5_disable_video_player_initiated_seeks")&&Ee(z.videoData)}; s0u=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);q0(this.api,"isLifaAdPlaying",function(){return p.api.isLifaAdPlaying()}); this.events.Z(z,"serverstitchedvideochange",function(){var c;(c=p.api.getVideoData())!=null&&c.yL()&&(p.api.isLifaAdPlaying()?(p.playbackRate=p.api.getPlaybackRate(),p.api.setPlaybackRate(1)):p.api.setPlaybackRate(p.playbackRate))}); this.playbackRate=1}; kZW=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);q0(this.api,"seekToChapterWithAnimation",function(c){p.seekToChapterWithAnimation(c)}); q0(this.api,"seekToTimeWithAnimation",function(c,B){p.seekToTimeWithAnimation(c,B)}); q0(this.api,"renderChapterSeekingAnimation",function(c,B,H){p.api.renderChapterSeekingAnimation(c,B,H)}); q0(this.api,"setMacroMarkers",function(c){p.setMacroMarkers(z,c)}); q0(this.api,"changeMarkerVisibility",function(c,B,H){p.changeMarkerVisibility(c,B,H)}); q0(this.api,"isSameMarkerTypeVisible",function(c){return p.isSameMarkerTypeVisible(c)})}; gFV=function(z,p,c){var B=z.api.getCurrentTime()*1E30&&H>0&&(c.width+=H,g.mm(p.element,"width",c.width+"px")));z.size=c}}; g.dt=function(z,p){var c=z.W[z.W.length-1];c!==p&&(z.W.push(p),OW_(z,c,p))}; g.W9=function(z){if(!(z.W.length<=1)){var p=z.W.pop(),c=z.W[0];z.W=[c];OW_(z,p,c,!0)}}; OW_=function(z,p,c,B){wIV(z);p&&(p.unsubscribe("size-change",z.BN,z),p.unsubscribe("back",z.QT,z));c.subscribe("size-change",z.BN,z);c.subscribe("back",z.QT,z);if(z.EH){g.Eo(c.element,B?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ia(z.element);c.focus();z.element.scrollLeft=0;z.element.scrollTop=0;var H=z.size;A8Q(z);g.dY(z.element,H);z.V=new g.B4(function(){R8E(z,p,c,B)},20,z); z.V.start()}else c.Ia(z.element),p&&p.detach()}; R8E=function(z,p,c,B){z.V.dispose();z.V=null;g.Eo(z.element,"ytp-popup-animating");B?(g.Eo(p.element,"ytp-panel-animate-forward"),g.Jn(c.element,"ytp-panel-animate-back")):(g.Eo(p.element,"ytp-panel-animate-back"),g.Jn(c.element,"ytp-panel-animate-forward"));g.dY(z.element,z.size);z.G=new g.B4(function(){g.Jn(z.element,"ytp-popup-animating");p.detach();g.M5(p.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);z.G.dispose();z.G=null},250,z); z.G.start()}; wIV=function(z){z.V&&g.i5(z.V);z.G&&g.i5(z.G)}; yI=function(z){g.Lj.call(this,z,"ytp-shopping-product-menu");this.mM=new g.aH(this.T);g.l(this,this.mM);this.hide();g.dt(this,this.mM);g.F7(this.T,this.element,4)}; $$B=function(z,p,c){var B,H=p==null?void 0:(B=p.text)==null?void 0:B.simpleText;H&&(c=S8v(z,c,H,p==null?void 0:p.icon,p==null?void 0:p.secondaryIcon),p.navigationEndpoint&&c.listen("click",function(){z.T.AD("innertubeCommand",p.navigationEndpoint);z.hide()},z))}; KzE=function(z,p,c){var B,H=p==null?void 0:(B=p.text)==null?void 0:B.simpleText;H&&S8v(z,c,H,p==null?void 0:p.icon).listen("click",function(){var T;(p==null?void 0:(T=p.icon)==null?void 0:T.iconType)==="HIDE"?z.T.publish("featuredproductdismissed"):p.serviceEndpoint&&z.T.AD("innertubeCommand",p.serviceEndpoint);z.hide()},z)}; S8v=function(z,p,c,B,H){p=new g.zn(g.pe({},[],!1,!!H),p,c);H&&p.updateValue("secondaryIcon",unQ(H));p.setIcon(unQ(B));g.l(z,p);z.mM.nB(p,!0);return p}; unQ=function(z){if(!z)return null;switch(z.iconType){case "ACCOUNT_CIRCLE":return{j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{j:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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 RVS();case "HIDE":return{j:"svg",C:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"g",J:[{j:"path",C:{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 W_()}}; Cj=function(z){Kj.call(this,z,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.Q({j:"button",LH:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.l(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.Q({j:"img",B:"ytp-suggested-action-badge-img",C:{src:"{{url}}"}}); this.thumbnailImage.hide();g.l(this,this.thumbnailImage);this.thumbnailIcon=new g.Q({j:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.l(this,this.thumbnailIcon);this.banner=new g.Q({j:"a",B:"ytp-suggested-action-container",J:[this.thumbnailImage,this.thumbnailIcon,{j:"div",B:"ytp-suggested-action-details",J:[{j:"text",B:"ytp-suggested-action-title",F3:"{{title}}"},{j:"text",B:"ytp-suggested-action-subtitle",F3:"{{subtitle}}"},{j:"text",B:"ytp-suggested-action-metadata-text", F3:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.l(this,this.banner);this.banner.Ia(this.D.element);this.Z(this.T,"videodatachange",this.onVideoDataChange);this.Z(this.T,g.E5("suggested_action_view_model"),this.Ck8);this.Z(this.T,g.qT("suggested_action_view_model"),this.yHA);this.Z(this.overflowButton.element,"click",this.pg);this.Z(z,"featuredproductdismissed",this.a6);this.T.createServerVe(this.banner.element,this.banner,!0)}; a2B=function(z){z.isInitialized&&(z.enabled=z.isVisible,z.Dt=z.isVisible,$R(z),z.YH(),z.thumbnailImage.DP(z.isVisible),z.shouldHideDismissButton||z.dismissButton.DP(z.isVisible),z.shouldShowOverflowButton&&z.overflowButton.DP(z.isVisible))}; es=function(){Cj.apply(this,arguments)}; ZWS=function(z){HK.call(this,z);this.W=new es(this.api);g.l(this,this.W);g.F7(this.api,this.W.element,4)}; ll=function(z){HK.call(this,z);var p=this;this.W="";this.D=!0;this.K=this.api.Y("html5_enable_audio_track_stickiness_phase_two");this.X=this.api.Y("html5_update_preloaded_playback_with_sticky_audio_track");var c=new g.or(z);g.l(this,c);c.Z(z,"internalaudioformatchange",function(B,H){Lzv(p,B,H)}); c.Z(z,"videoplayerreset",function(){d$S(p)}); c.Z(z,"videodatachange",function(B,H){p.onVideoDataChange(B,H)})}; Lzv=function(z,p,c){if(c){var B="";WzY(z,p)&&(B=p,z.K||(z.W=p),z.api.Y("html5_sabr_enable_server_xtag_selection")&&(c=z.api.getVideoData(void 0,!0)))&&(c.B0=p);if(z.K&&B&&y8x(z,B)){z.X&&Ckf(z,B);var H;Ah(XD(z.api.N(),(H=z.api.getVideoData())==null?void 0:g.se(H)),function(T){e8x(z,B,T)})}}}; d$S=function(z){if(z.W)l2W(z);else{var p;if(z.K&&((p=gU())==null?0:p.size)){var c;Ah(XD(z.api.N(),(c=z.api.getVideoData())==null?void 0:g.se(c)),function(B){if((B=vhY(B))&&y8x(z,B)){var H=z.api.getVideoData(void 0,!0);H&&(H.B0=B)}})}}}; l2W=function(z){var p=z.api.getVideoData(void 0,!0);p&&(p.B0=z.W)}; e8x=function(z,p,c){vhY(c)!==p&&(I2D([{settingItemId:v9(c),settingOptionValue:{stringValue:p}}]),Ah(z.Jn(),function(B){VbY(B,v9(c),{stringValue:p})}))}; jKV=function(z,p){OZ(Ah(Ah(z.Jn(),function(c){return THV(c,[v9(p)])}),function(c){if(c){c=g.m(c); for(var B=c.next();!B.done;B=c.next()){var H=B.value;B=H.key;H=H.value;B&&H&&I2D([{settingItemId:B,settingOptionValue:H}])}}}),function(){z.D=!0})}; Ckf=function(z,p){if(p=WzY(z,z.W||p)){z=Fzu(z.api.app.jD().X);z=g.m(z);for(var c=z.next();!c.done;c=z.next())c.value.Bd(p,!0)}}; WzY=function(z,p){z=z.api.getAvailableAudioTracks();z=g.m(z);for(var c=z.next();!c.done;c=z.next())if(c=c.value,c.getLanguageInfo().getId()===p)return c;return null}; vhY=function(z){z=v9(z);var p=gU();z=p?p.get(z):void 0;return z&&z.stringValue?z.stringValue:""}; v9=function(z){var p=(484).toString();z&&(p=(483).toString());return p}; y8x=function(z,p){var c;return p.split(".")[0]!==""&&((c=z.api.getVideoData())==null?void 0:!gG(c))}; I2D=function(z){var p=gU();p||(p=new Map);z=g.m(z);for(var c=z.next();!c.done;c=z.next())c=c.value,p.set(c.settingItemId,c.settingOptionValue);p=JSON.stringify(Object.fromEntries(p));g.Iw("yt-player-user-settings",p,2592E3)}; g.IH=function(z,p,c,B,H,T,b){g.zn.call(this,g.pe({"aria-haspopup":"true"}),p,z);this.QS=B;this.S=!1;this.D=null;this.options={};this.K=new g.aH(c,void 0,z,H,T,b);g.l(this,this.K);this.listen("keydown",this.Yg);this.listen("click",this.open)}; ohY=function(z){if(z.D){var p=z.options[z.D];p.element.getAttribute("aria-checked");p.element.setAttribute("aria-checked","false");z.D=null}}; nhQ=function(z,p){g.IH.call(this,"Sleep timer",g.YM.SLEEP_TIMER,z,p);this.T=z;this.U={};this.V=this.yw("Off");this.G=this.W="";z.Y("web_settings_menu_icons")&&this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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.X=new g.Q({j:"div",LH:["ytp-menuitem-label-wrapper"],J:[{j:"div",F3:"End of video"},{j:"div",LH:["ytp-menuitem-sublabel"],F3:"{{content}}"}]});g.l(this,this.X);this.listen("click",this.onClick);this.Z(z,"videodatachange",this.onVideoDataChange);this.Z(z,"presentingplayerstatechange",this.Bq);this.Z(z,"settingsMenuVisibilityChanged",this.ONp);z.createClientVe(this.element,this,218889);this.Bq();this.T.AD("onSleepTimerFeatureAvailable")}; QKf=function(z){var p="Off 10 15 20 30 45 60".split(" "),c;((c=z.T.getVideoData())==null?0:c.isLivePlayback)||p.push("End of video");c=z.T.getPlaylist();var B;c&&((B=c.listId)==null?void 0:B.type)!=="RD"&&p.push("End of playlist");z.rp(g.d7(p,z.yw));z.U=g.qC(p,z.yw,z);p=z.yw("End of video");z.options[p]&&g.fP(z.options[p],z.X)}; r8_=function(z,p){var c=z.U[p],B=c==="End of video"||c==="End of playlist";c==="Off"&&(z.W="");z.T.getPlayerState()!==0&&z.T.getPlayerState()!==5||!B?(z.V=p,g.IH.prototype.vn.call(z,p),z.Xt(p),z.T.AD("onSleepTimerSettingsChanged",c)):z.T.AD("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; js=function(z){HK.call(this,z);var p=this;z.addEventListener("settingsMenuInitialized",function(){p.menuItem||(p.menuItem=new nhQ(p.api,p.api.UP()),g.l(p,p.menuItem))}); z.addEventListener("openSettingsMenuItem",function(c){if(c==="menu_item_sleep_timer"){if(!p.menuItem){var B;(B=p.api.UP())==null||B.S_()}p.menuItem.open()}}); q0(z,"resetSleepTimerMenuSettings",function(){p.resetSleepTimerMenuSettings()}); q0(z,"setSleepTimerTimeLeft",function(c){p.setSleepTimerTimeLeft(c)}); q0(z,"setVideoTimeLeft",function(c){p.setVideoTimeLeft(c)})}; U$Q=function(z){HK.call(this,z);var p=this;this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"onSnackbarMessage",function(c){switch(c){case 1:c=p.api.getPlayerStateObject(),c.isBuffering()&&g.r(c,8)&&g.r(c,16)&&p.api.AD("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.oH=function(z,p,c,B,H){p=p===void 0?!1:p;B=B===void 0?!1:B;H=H===void 0?!1:H;g.JQ.call(this);this.U=H;this.G=!1;this.X=new WL(this);this.L=this.V=null;this.D=this.K=!1;g.l(this,this.X);this.target=z;this.W=p;this.S=c||z;this.G=B;p&&(g.pu&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));FV(this)}; nj=function(z){g.CG(z.X,!z.W)}; FV=function(z){z.L=null;z.V=null;z.Z(QI("over"),z.vT);z.Z("touchstart",z.ri);z.W&&z.Z(QI("down"),z.krq)}; sKi=function(z,p){for(var c=0;cH.start&&c>=5;P+=R}q=P.substr(0,4)+" "+P.substr(4,4)+" "+P.substr(8,4)+" "+(P.substr(12,4)+" "+P.substr(16,4))}else q="";b={video_id_and_cpn:String(p.videoId)+" / "+q,codecs:"", dims_and_frames:"",bandwidth_kbps:b.toFixed(0)+" Kbps",buffer_health_seconds:t.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:X?"":"display:none",drm:X,debug_info:c,extra_debug_info:"",bandwidth_style:E,network_activity_style:E,network_activity_bytes:D.toFixed(0)+" KB",shader_info:x,shader_info_style:x?"":"display:none",playback_categories:""};D=B.clientWidth+"x"+B.clientHeight+(H>1?"*"+H.toFixed(2):"");t="-";T.totalVideoFrames&&(t=(T.droppedVideoFrames||0)+" dropped of "+T.totalVideoFrames); b.dims_and_frames=D+" / "+t;z=z.getVolume();D=J$Q(p);var Z;t=((Z=p.X)==null?0:Z.audio.W)?"DRC":Math.round(z*D)+"%";Z=Math.round(z)+"% / "+t;z=p.e1.toFixed(1);isFinite(Number(z))&&(Z+=" (content loudness "+z+"dB)");b.volume=Z;b.resolution=B.videoWidth+"x"+B.videoHeight;if(B=p.K){if(Z=B.video)z=Z.fps,z>1&&(b.resolution+="@"+z),(z=T.fX)&&z.video&&(b.resolution+=" / "+z.video.width+"x"+z.video.height,z.video.fps>1&&(b.resolution+="@"+z.video.fps)),b.codecs=f2W(B),!p.X||B.audio&&B.video?B.X8&&(b.codecs+= " / "+B.X8+"A"):b.codecs+=" / "+f2W(p.X),Z.W||Z.primaries?(z=Z.W||"unknown",z==="smpte2084"?z+=" (PQ)":z==="arib-std-b67"&&(z+=" (HLG)"),b.color=z+" / "+(Z.primaries||"unknown"),b.color_style=""):b.color_style="display:none";if(B.debugInfo)for(b.fmt_debug_info="",B=g.m(B.debugInfo),Z=B.next();!Z.done;Z=B.next())Z=Z.value,b.fmt_debug_info+=Z.label+":"+Z.text+" ";b.fmt_debug_info_style=b.fmt_debug_info&&b.fmt_debug_info.length>0?"":"display:none"}B=p.isLivePlayback;Z=p.iZ;b.live_mode_style=B||Z?"": "display:none";b.live_latency_style=B?"":"display:none";if(Z)b.live_mode="Post-Live"+(ha(p)?" Manifestless":"");else if(B){Z=T.Nu;b.live_latency_secs=Z.toFixed(2)+"s";B=ha(p)?"Manifestless, ":"";p.YA&&(B+="Windowed, ");z="Uncertain";if(Z>=0&&Z<120)if(p.latencyClass&&p.latencyClass!=="UNKNOWN")switch(p.latencyClass){case "NORMAL":z="Optimized for Normal Latency";break;case "LOW":z="Optimized for Low Latency";break;case "ULTRALOW":z="Optimized for Ultra Low Latency";break;default:z="Unknown Latency Setting"}else z= p.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";B+=z;(Z=T.d_)&&(B+=", seq "+Z.sequence);b.live_mode=B}!T.isGapless||ta(p)&&T.pD||(b.playback_categories+="Gapless ");b.playback_categories_style=b.playback_categories?"":"display:none";b.bandwidth_samples=T.iM;b.network_activity_samples=T.q$;b.live_latency_samples=T.A0;b.buffer_health_samples=T.XI;T=g.ig(p);if(p.cotn||T)b.cotn_and_local_media=(p.cotn?p.cotn:"null")+" / "+T;b.cotn_and_local_media_style=b.cotn_and_local_media? "":"display:none";YI(p,"web_player_release_debug")?(b.release_name="youtube.player.web_20250318_01_RC00",b.release_style=""):b.release_style="display:none";b.debug_info&&J.length>0&&b.debug_info.length+J.length<=60?b.debug_info+=" "+J:b.extra_debug_info=J;b.extra_debug_info_style=b.extra_debug_info&&b.extra_debug_info.length>0?"":"display:none";return b}; f2W=function(z){var p=/codecs="([^"]*)"/.exec(z.mimeType);return p&&p[1]?p[1]+" ("+z.itag+")":z.itag}; Nt=function(z,p,c,B,H){g.Q.call(this,{j:"div",B:"ytp-horizonchart"});this.G=p;this.sampleCount=c;this.X=B;this.V=H;this.index=0;this.heightPx=-1;this.D=this.K=null;this.W=Math.round(z/c);this.element.style.width=this.W*this.sampleCount+"px";this.element.style.height=this.G+"em"}; fj=function(z,p){if(z.heightPx===-1){var c=null;try{c=g.i4("CANVAS"),z.K=c.getContext("2d")}catch(D){}if(z.K){var B=z.W*z.sampleCount;z.D=c;z.D.width=B;z.D.style.width=B+"px";z.element.appendChild(z.D)}else for(z.sampleCount=Math.floor(z.sampleCount/4),z.W*=4,c=0;c1?2:1,z.D.height=z.heightPx*c,z.D.style.height= z.heightPx+"px",z.K.scale(1,c)));p=g.m(p);for(B=p.next();!B.done;B=p.next()){c=z;var H=z.index,T=B.value;for(B=0;B+20&&g.Vm(p.D.element);B.classList.add("ytp-timely-actions-overlay");p.D.element.appendChild(B)}); g.l(this,this.D);g.F7(this.api,this.D.element,4)}; J7v=function(z){z.timelyActions&&(z.X=z.timelyActions.reduce(function(p,c){if(c.cueRangeId===void 0)return p;p[c.cueRangeId]=0;return p},{}))}; Bc=function(z,p){if(z.timelyActions){z=g.m(z.timelyActions);for(var c=z.next();!c.done;c=z.next())if(c=c.value,c.cueRangeId===p)return c}}; MAN=function(z,p){if((z=Bc(z,p))&&z.onCueRangeExit)return UF(z.onCueRangeExit)}; Yyv=function(z){if(z.W!==void 0){var p=(p=Bc(z,z.W))&&p.onCueRangeEnter?UF(p.onCueRangeEnter):void 0;var c=Bc(z,z.W);if(c&&c.additionalTrigger){var B=!1;for(var H=g.m(c.additionalTrigger),T=H.next();!T.done;T=H.next())T=T.value,T.type&&T.args&&z.V[T.type]!==void 0&&(B=B||z.V[T.type](T.args))}else B=!0;p&&B&&(z.api.AD("innertubeCommand",p),z.setTimeout(c),z.X[z.W]!==void 0&&z.X[z.W]++,z.G=!0)}}; XkY=function(z,p){return z.K===void 0?!1:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(p.seekLengthMilliseconds)===5E3?z.K===72:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(p.seekLengthMilliseconds)===1E4?z.K===74:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(p.seekLengthMilliseconds)===5E3?z.K===71:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(p.seekLengthMilliseconds)===1E4?z.K===73:!1}; xhY=function(z){if(z=z.getWatchNextResponse()){var p,c;z=(p=z.playerOverlays)==null?void 0:(c=p.playerOverlayRenderer)==null?void 0:c.timelyActionsOverlayViewModel;p=g.I(z,mhx);if(p!=null&&p.timelyActions)return p==null?void 0:p.timelyActions.map(function(B){return g.I(B,hFW)}).filter(function(B){return!!B})}}; P9Q=function(z){HK.call(this,z);var p=this;J1(this.api,"getPlaybackRate",function(){return p.api.getPlaybackRate()}); J1(this.api,"setPlaybackRate",function(c){typeof c==="number"&&p.api.setPlaybackRate(c)})}; A7f=function(z){z=z.BU();if(!z)return!1;z=g.XL(z).exp||"";return z.includes("xpv")||z.includes("xpe")}; OK_=function(z){z=g.m(g.Hc(z,!0));for(var p=z.next();!p.done;p=z.next())if(A7f(p.value))return!0;return!1}; wk_=function(z,p){z=g.m(g.Hc(z,!0));for(var c=z.next();!c.done;c=z.next())if(c=c.value,A7f(c)){var B={potc:"1",pot:p};c.url&&(c.url=x5(c.url,B))}}; RFN=function(z){var p=new T6V,c={},B=(c["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",c);return new Zs(p,z,function(){return B})}; Syu=function(z){return g.L(function(p){if(p.W==1)return g.Ox(p,2),g.a(p,z,4);if(p.W!=2)return g.RE(p,0);g.SQ(p);g.Ai(p)})}; TZ=function(z){HK.call(this,z);var p=this;this.useLivingRoomPoToken=!1;this.X=new g.OE;this.VS=null;this.G=!1;this.D=null;this.L=!1;var c=z.N().getWebPlayerContextConfig();this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"spsumpreject",function(B,H,T){p.L=H;B&&p.G&&!p.D&&(p.Y("html5_generate_content_po_token")&&T?p.Gz(T):p.Y("html5_generate_session_po_token")&&$hY(p));p.D||p.api.KH("stp",{s:+p.G,b:+p.L})}); this.events.Z(z,"poTokenVideoBindingChange",function(B){p.Gz(B)}); this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);z.addEventListener("csiinitialized",function(){p.VS=z.Ik();var B=(p.Y("html5_generate_session_po_token")||p.Y("html5_generate_content_po_token"))&&!p.useLivingRoomPoToken;try{if(p.Y("html5_use_shared_owl_instance"))Kjv(p);else if(B){p.VS.u9("pot_isc");p.Y("html5_new_wpo_client")||uPu(p);var H=g.P3(p.api.N().experiments,"html5_webpo_kaios_defer_timeout_ms");H?(p.Y("html5_new_wpo_client")&&(p.K=zi()),g.O0(function(){iQ(p)},H)):p.Y("html5_webpo_idle_priority_job")? (p.Y("html5_new_wpo_client")&&(p.K=zi()),g.iR(g.bR(),function(){iQ(p)})):iQ(p)}}catch(T){T instanceof Error&&g.oc(T)}}); z.addEventListener("trackListLoaded",this.ym.bind(this));z.y_(this)}; aKQ=function(z){var p=iP(z.experiments,"html5_web_po_request_key");return p?p:g.yi(z)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; bQ=function(z,p){if(z.Y("html5_webpo_bge_ctmp")){var c,B={hwpo:!!z.W,hwpor:!((c=z.W)==null||!c.isReady())};z.api.KH(p,B)}}; Kjv=function(z){var p,c;g.L(function(B){if(B.W==1)return bQ(z,"swpo_i"),z.K=zi(),Vu(z),g.a(B,Co(),2);if(B.W!=3)return p=B.K,bQ(z,"swpo_co"),g.a(B,H4_(p),3);c=B.K;z.W=ZKD(z,c);bQ(z,"swpo_cc");z.W.ready().then(function(){z.X.resolve();bQ(z,"swpo_re")}); g.O0(function(){iQ(z);bQ(z,"swpo_si")},0); g.Ai(B)})}; uPu=function(z){var p=z.api.N(),c=aKQ(p),B=RFN(c);p=new HR({cQ:"CLEn",nU:c,yH:B,onEvent:function(H){(H=LjQ[H])&&z.VS.u9(H)}, onError:g.oc,cI:ZgN(p.experiments),DT:function(){return void z.api.KH("itr",{})}, C98:p.experiments.JD("html5_web_po_disable_remote_logging")||dhD.includes(g.nf(p.qa)||"")});p.ready().then(function(){return void z.X.resolve()}); g.l(z,p);z.W=p}; WjD=function(z){var p=z.api.N(),c=RFN(aKQ(p)),B=c.Ip.bind(c);c.Ip=function(D){var t;return g.L(function(X){if(X.W==1)return g.a(X,B(D),2);t=X.K;z.api.KH("itr",{});return X.return(t)})}; try{var H=new Lz({yH:c,Iy:{maxAttempts:5},D2:{cQ:"CLEn",disable:p.experiments.JD("html5_web_po_disable_remote_logging")||dhD.includes(g.nf(p.qa)||""),vG:ZgN(p.experiments),sRp:z.Y("wpo_dis_lfdms")?0:1E3},AH0:g.oc});var T=new fz({WO:H,yH:c,onError:g.oc});Syu(T.vC()).then(function(){return void z.X.resolve()}); g.l(z,H);g.l(z,T);z.W=ZKD(z,T)}catch(D){g.oc(D);var b;(b=H)==null||b.dispose()}}; iQ=function(z){var p=z.api.N();z.VS.u9("pot_ist");z.W?z.W.start():z.Y("html5_new_wpo_client")&&WjD(z);z.Y("html5_bandaid_attach_content_po_token")||(z.Y("html5_generate_session_po_token")&&(Vu(z),$hY(z)),p=g.P3(p.experiments,"html5_session_po_token_interval_time_ms")||0,p>0&&(z.V=g.wS(function(){Vu(z)},p)),z.G=!0)}; Vu=function(z){var p,c,B,H;g.L(function(T){if(!z.Y("html5_generate_session_po_token")||z.useLivingRoomPoToken)return T.return();p=z.api.N();c=g.pN("EOM_VISITOR_DATA")||g.pN("VISITOR_DATA");B=p.Q3?p.datasyncId:c;H=iP(p.experiments,"html5_mock_content_binding_for_session_token")||p.livingRoomPoTokenId||B;p.A8=DH(z,H);g.Ai(T)})}; DH=function(z,p){if(!z.W)return z.K?z.K(p):"";try{var c=z.W.isReady();z.VS.u9(c?"pot_cms":"pot_csms");var B="";B=z.Y("html5_web_po_token_disable_caching")?z.W.SF({Wu:p}):z.W.SF({Wu:p,Qm:{Ec:p,gtI:150,m8:!0,LL:!0}});z.VS.u9(c?"pot_cmf":"pot_csmf");if(c){var H;(H=z.D)==null||H.resolve();z.D=null;if(z.L){z.L=!1;var T;(T=z.api.app.dA())==null||T.Ty(!1)}}return B}catch(b){return g.oc(b),""}}; $hY=function(z){z.W&&(z.D=new BS,z.W.ready().then(function(){z.VS.u9("pot_if");Vu(z)}))}; ZKD=function(z,p){z.Y("html5_web_po_token_disable_caching")||p.Ji(150);var c=!1,B=Syu(p.vC()).then(function(){c=!0}); return{isReady:function(){return c}, ready:function(){return B}, SF:function(H){return p.SF({Wu:H.Wu,uh:!0,xi:!0,Qm:H.Qm?{Ec:H.Qm.Ec,m8:H.Qm.m8,LL:H.Qm.LL}:void 0})}, start:function(){}}}; y7i=function(z){HK.call(this,z);var p=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.or(z);g.l(this,this.events);this.events.Z(z,"heartbeatRequest",function(c){if(p.freePreviewUsageDetails.length||p.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),p.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= p.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+p.freePreviewWatchedDuration}}); q0(z,"setFreePreviewWatchedDuration",function(c){p.freePreviewWatchedDuration=c}); q0(z,"setFreePreviewUsageDetails",function(c){p.freePreviewUsageDetails=c})}; tV=function(z){g.e.call(this);this.features=[];var p=this.W,c=new d1(z),B=new id(z),H=new P9(z),T=new TZ(z);var b=g.d9(z.N())?void 0:new RL(z);var D=new hI(z),t=new BT_(z),X=new P9Q(z),x=new Le(z);var E=g.d9(z.N())?new y7i(z):void 0;var q=z.Y("html5_enable_ssap")?new NsY(z):void 0;var J=z.Y("web_cinematic_watch_settings")&&(J=z.N().getWebPlayerContextConfig())!=null&&J.cinematicSettingsAvailable?new PK(z):void 0;var M=new Ze(z);var P=z.Y("enable_courses_player_overlay_purchase")?new $H_(z):void 0; var O=g.cX(z.N())?new OkQ(z):void 0;var R=new Sk(z);var K=z.N().X?new MtV(z):void 0;var Z=g.yB(z.N())?new Jhu(z):void 0;var W=z.Y("web_player_move_autonav_toggle")&&z.N().t1?new bki(z):void 0;var v=g.cX(z.N())?new kZW(z):void 0;var zY=z.Y("web_enable_speedmaster")&&g.cX(z.N())?new sH(z):void 0;var U=z.N().e1?void 0:new tAE(z);var HD=z.Y("report_pml_debug_signal")?new BUu(z):void 0;var VW=new VWf(z),f=new RH(z);var F=g.rn(z.N())?new m$S(z):void 0;var N=navigator.mediaSession&&window.MediaMetadata&& z.N().mN?new YR(z):void 0;var h=z.Y("html5_enable_drc")&&!z.N().V?new w1(z):void 0;var n=new bd(z);var FY=g.cX(z.N())?new ZWS(z):void 0;var Rg=z.Y("html5_enable_d6de4")?new AI(z):void 0;var Md=g.cX(z.N())&&z.Y("web_sleep_timer")?new js(z):void 0;var uf=g.yB(z.N())?new mHV(z):void 0;var zv=new ll(z),bE=new xHN(z),m1=new s0u(z);var w=z.Y("enable_sabr_snackbar_message")?new U$Q(z):void 0;var S=z.Y("web_enable_timely_actions")?new qyW(z):void 0;p.call(this,c,B,H,T,b,D,t,X,x,E,q,J,M,P,O,R,K,Z,W,v,zY,U, HD,VW,f,F,void 0,N,h,n,void 0,FY,Rg,Md,uf,void 0,zv,bE,m1,void 0,w,S,new AW(z))}; C9f=function(){this.K=this.W=NaN}; eFQ=function(z,p){this.Wq=z;this.timerName="";this.D=!1;this.K=NaN;this.X=new C9f;this.W=p||null;this.D=!1}; lKu=function(z,p,c){var B=g.jF(p.QI)&&!p.QI.V;if(p.QI.hq&&(eF(p.QI)||p.QI.Ra==="shortspage"||bi(p.QI)||B)&&!z.D){z.D=!0;z.V=p.clientPlaybackNonce;g.pN("TIMING_ACTION")||zQ("TIMING_ACTION",z.Wq.csiPageType);z.Wq.csiServiceName&&zQ("CSI_SERVICE_NAME",z.Wq.csiServiceName);if(z.W){B=z.W.Ik();for(var H=g.m(Object.keys(B)),T=H.next();!T.done;T=H.next())T=T.value,kw(T,B[T],z.timerName);B=g.iO(jXE)(z.W.sS);g.gO(B,z.timerName);B=z.W;B.K={};B.sS={}}g.gO({playerInfo:{visibilityState:g.iO(IJQ)()},playerType:"LATENCY_PLAYER_HTML5"}, z.timerName);z.L!==p.clientPlaybackNonce||Number.isNaN(z.K)||(NZ("_start",z.timerName)?c=g.iO(n0)("_start",z.timerName)+z.K:g.oc(new g.z6("attempted to log gapless pbs before CSI timeline started",{cpn:p.clientPlaybackNonce})));c&&!NZ("pbs",z.timerName)&&Xs(c)}}; Xs=function(z,p){kw("pbs",z!=null?z:(0,g.y2)(),p)}; vdY=function(z,p,c,B,H,T,b){z=(z===c?"video":"ad")+"_to_"+(p===c?"video":"ad");if(z!=="video_to_ad"||T!=null&&T.T$){T=z==="ad_to_video"?T:B;c=T==null?void 0:T.US;var D={};if(B==null?0:B.V)D.cttAuthInfo={token:B.V,videoId:B.videoId};H&&(D.startTime=H);Gl(z,D);var t,X,x;B={targetVideoId:(t=B==null?void 0:B.videoId)!=null?t:"empty_video",targetCpn:p,adVideoId:(X=T==null?void 0:T.videoId)!=null?X:"empty_video",adClientPlaybackNonce:(x=c==null?void 0:c.cpn)!=null?x:T==null?void 0:T.clientPlaybackNonce}; c&&(B.adBreakType=c.adBreakType,B.adType=c.adType);g.gO(B,z);Xs(b,z)}}; xF=function(z){GGf();gc_();z.timerName=""}; IKB=function(z){if(z.W){var p=z.W;p.K={};p.sS={}}z.D=!1;z.L=void 0;z.K=NaN}; jmY=function(z,p){g.JQ.call(this);this.QI=z;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.W=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.U={};this.K=0;if(z=p.session_data)this.sessionData=bO(z,"&");this.index=Math.max(0,Number(p.index)||0);this.loop=!!p.loop;this.startSeconds=Number(p.startSeconds)||0;this.title=p.playlist_title||"";this.description=p.playlist_description||"";this.author= p.author||p.playlist_author||"";p.video_id&&(this.items[this.index]=p);if(z=p.api)typeof z==="string"&&z.length===16?p.list="PL"+z:p.playlist=z;if(z=p.list)switch(p.listType){case "user_uploads":this.listId=new K8("UU","PLAYER_"+z);break;default:var c=p.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.ui(z);if(z=p.video)this.items=z.slice(0),this.loaded=!0}else if(p.playlist){z=p.playlist.toString().split(",");this.index>0&&(this.items=[]);z=g.m(z);for(c=z.next();!c.done;c=z.next())(c= c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(z=p.video)this.items=z.slice(0),this.loaded=!0}this.setShuffle(!!p.shuffle);if(z=p.suggestedQuality)this.quality=z;this.U=we(p,"playlist_");this.D=(p=p.thumbnail_ids)?p.split(","):[]}; FjW=function(z){return!!(z.playlist||z.list||z.api)}; odD=function(z){var p=z.index+1;return p>=z.length?0:p}; ndN=function(z){var p=z.index-1;return p<0?z.length-1:p}; g.Es=function(z,p,c,B){p=p!==void 0?p:z.index;p=z.items&&p in z.items?z.items[z.order[p]]:null;var H=null;p&&(c&&(p.autoplay="1"),B&&(p.autonav="1"),H=new g.GU(z.QI,p),g.l(z,H),H.BW=!0,H.startSeconds=z.startSeconds||H.clipStart||0,z.listId&&(H.playlistId=z.listId.toString()));return H}; QmN=function(z,p){z.index=g.MQ(p,0,z.length-1);z.startSeconds=0}; r7Y=function(z,p){if(p.video&&p.video.length){z.title=p.title||"";z.description=p.description;z.views=p.views;z.likes=p.likes;z.dislikes=p.dislikes;z.author=p.author||"";var c=p.loop;c&&(z.loop=c);c=g.Es(z);z.items=[];for(var B=g.m(p.video),H=B.next();!H.done;H=B.next())if(H=H.value)H.video_id=H.encrypted_id,z.items.push(H);z.length=z.items.length;(p=p.index)?z.index=p:z.findIndex(c);z.setShuffle(!1);z.loaded=!0;z.K++;z.W&&z.W()}}; kKf=function(z,p){var c,B,H,T,b,D,t;return g.L(function(X){if(X.W==1){c=g.q2();var x=z.N(),E={context:g.xG(z),playbackContext:{contentPlaybackContext:{ancestorOrigins:x.ancestorOrigins}}},q=x.getWebPlayerContextConfig();if(q==null?0:q.encryptedHostFlags)E.playbackContext.contentPlaybackContext.encryptedHostFlags=q.encryptedHostFlags;if(q==null?0:q.hideInfo)E.playerParams={showinfo:!1};x=x.embedConfig;q=p.docid||p.video_id||p.videoId||p.id;if(!q){q=p.raw_embedded_player_response;if(!q){var J=p.embedded_player_response; J&&(q=JSON.parse(J))}if(q){var M,P,O,R,K,Z;q=((Z=g.I((M=q)==null?void 0:(P=M.embedPreview)==null?void 0:(O=P.thumbnailPreviewRenderer)==null?void 0:(R=O.playButton)==null?void 0:(K=R.buttonRenderer)==null?void 0:K.navigationEndpoint,g.ir))==null?void 0:Z.videoId)||null}else q=null}M=(M=q)?M:void 0;P=z.playlistId?z.playlistId:p.list;O=p.listType;if(P){var W;O==="user_uploads"?W={username:P}:W={playlistId:P};UhW(x,M,p,W);E.playlistRequest=W}else p.playlist?(W={templistVideoIds:p.playlist.toString().split(",")}, UhW(x,M,p,W),E.playlistRequest=W):M&&(W={videoId:M},x&&(W.serializedThirdPartyEmbedConfig=x),E.singleVideoRequest=W);B=E;H=g.D6(smf);g.Ox(X,2);return g.a(X,g.HY(c,B,H),4)}if(X.W!=2)return T=X.K,b=z.N(),p.raw_embedded_player_response=T,b.T$=Jr(p,g.yB(b)),b.D=b.T$==="EMBEDDED_PLAYER_MODE_PFL",T&&(D=T,D.trackingParams&&Ck(D.trackingParams)),X.return(new g.GU(b,p));t=g.SQ(X);t instanceof Error||(t=Error("b259802748"));g.Fr(t);return X.return(z)})}; UhW=function(z,p,c,B){c.index&&(B.playlistIndex=String(Number(c.index)+1));B.videoId=p?p:"";z&&(B.serializedThirdPartyEmbedConfig=z)}; g.JV=function(z,p){qs.get(z);qs.set(z,p)}; g.Ms=function(z){g.JQ.call(this);this.loaded=!1;this.player=z}; gd_=function(){this.K=[];this.W=[]}; g.Hc=function(z,p){return p?z.W.concat(z.K):z.W}; g.YF=function(z,p){switch(p.kind){case "asr":GK_(p,z.K);break;default:GK_(p,z.W)}}; GK_=function(z,p){g.kL(p,function(c){return z.oI(c)})||p.push(z)}; g.mL=function(z){g.e.call(this);this.nH=z;this.K=new gd_;this.X=null;this.L=[];this.S=[]}; g.hV=function(z,p,c){g.mL.call(this,z);this.videoData=p;this.audioTrack=c;this.W=null;this.D=!1;this.L=p.xn;this.S=p.SY;this.D=g.nT(p)}; g.Pc=function(z,p){return Di(z.info.mimeType)?p?z.info.itag===p:!0:!1}; g.NT_=function(z,p){if(z.W!=null&&g.d9(p.N())&&!z.W.isManifestless&&z.W.W.rawcc!=null)return!0;if(!z.La())return!1;p=!!z.W&&z.W.isManifestless&&Object.values(z.W.W).some(function(c){return g.Pc(c,"386")}); z=!!z.W&&!z.W.isManifestless&&g.jpi(z.W);return p||z}; g.AV=function(z,p,c,B,H,T){g.mL.call(this,z);this.videoId=c;this.eQ=H;this.eventId=T;this.V={};this.W=null;z=B||g.XL(p).hl||"";z=z.split("_").join("-");this.D=x5(p,{hl:z})}; fKv=function(z,p){this.K=z;this.W=p;this.onFailure=void 0}; zzi=function(z,p){return{zw:z.zw&&p.zw,Xm:z.Xm&&p.Xm,sync:z.sync&&p.sync,streaming:z.streaming&&p.streaming}}; wb=function(z,p){var c=pzY,B=this;this.path=z;this.D=p;this.X=c;this.capabilities={zw:!!this.D,Xm:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.L=new fKv([{name:"compileStreaming",condition:function(H){return!!B.K&&H.streaming}, Rs:Os.d0("wmcx",function(){return WebAssembly.compileStreaming(fetch(B.path))}), onFailure:function(){return B.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.sync}, Rs:function(){return Ah(c0Y(B),Os.d0("wmcs",function(H){return new WebAssembly.Module(H)}))}, onFailure:function(){return B.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, Rs:function(){return Ah(c0Y(B),Os.d0("wmca",function(H){return WebAssembly.compile(H)}))}, onFailure:function(){return B.capabilities.Xm=!1}}]); this.V=new fKv([{name:"instantiateStreaming",condition:function(H){return H.Xm&&H.streaming&&!B.K&&!B.W}, Rs:function(H,T){return Os.V7("wmix",function(){return WebAssembly.instantiateStreaming(fetch(B.path),T)}).then(function(b){B.W=MH(b.module); return{instance:b.instance,yd:!1}})}, onFailure:function(){return B.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.Xm&&H.sync}, Rs:function(H,T){return Ah(Bqu(B,H),Os.d0("wmis",function(b){return{instance:new WebAssembly.Instance(b,T),yd:!1}}))}, onFailure:function(){return B.capabilities.sync=!1}}, {name:"async",condition:function(H){return H.Xm}, Rs:function(H,T){return Ah(Ah(Bqu(B,H),Os.d0("wmia",function(b){return WebAssembly.instantiate(b,T)})),function(b){return{instance:b, yd:!1}})}, onFailure:function(){return B.capabilities.Xm=!1}}, {name:"asmjs",condition:function(H){return H.zw}, Rs:function(H,T){return MH(Os.V7("wmij",function(){return B.D(T)}).then(function(b){return{instance:{exports:b}, yd:!0}}))}, onFailure:function(){return B.capabilities.zw=!1}}],function(H,T,b){return B.X(b,H.instance.exports)})}; TqD=function(z){var p=HyQ;return p.instantiate(z?zzi(p.capabilities,z):p.capabilities,new iyv)}; c0Y=function(z){if(z.K)return z.K;var p=fetch(z.path).then(function(c){return c.arrayBuffer()}).then(function(c){z.K=MH(c); return c}).then(void 0,function(c){g.oc(Error("wasm module fetch failure: "+c.message,{cause:c})); z.K=void 0;throw c;}); z.K=MH(p);return z.K}; Bqu=function(z,p){if(!p.Xm)return m7(Error("wasm unavailable"));if(z.W)return z.W;z.W=OZ(Ah(z.compile(p),function(c){z.W=MH(c);return c}),function(c){g.oc(Error("wasm module compile failure: "+c.message,{cause:c})); z.W=void 0;throw c;}); return z.W}; byD=function(){}; ViY=function(){var z=this;this.proc_exit=function(){}; this.fd_write=function(p,c,B){if(!z.exports)return 1;p=new Uint32Array(z.exports.memory.buffer,c,B*2);c=[];for(var H=0;H=11;z=z.api.N().S&&Wc;return!(!p&&!z)}; Qu=function(z,p){return!z.api.isInline()&&!r0B(z,LG(p))&&g.W7(p)}; Q7B=function(z){z.l9.Cm();if(z.u7&&z.N3)z.N3=!1;else if(!z.api.N().fH&&!z.mO()){var p=z.api.getPlayerStateObject();g.r(p,2)&&g.yP(z.api)||z.kS(p);!z.api.N().FQ||p.isCued()||g.r(p,1024)?z.YP():z.qQ.isActive()?(z.uJ(),z.qQ.stop()):z.qQ.start()}}; s7u=function(z,p){var c;if((c=z.api.getVideoData())==null?0:c.mutedAutoplay){var B,H;if((B=p.target)==null?0:(H=B.className)==null?0:H.includes("ytp-info-panel"))return!1}return g.W7(p)&&z.api.isMutedByMutedAutoplay()?(z.api.unMute(),z.api.getPresentingPlayerType()===2&&z.api.playVideo(),p=z.api.getPlayerStateObject(),!g.r(p,4)||g.r(p,8)||g.r(p,2)||z.YP(),!0):!1}; kpv=function(z,p,c){z.api.isFullscreen()?c<1-p&&z.api.toggleFullscreen():c>1+p&&z.api.toggleFullscreen()}; n1D=function(z){var p=gS()&&s0()>=67&&!z.api.N().S;z=z.api.N().disableOrganicUi;return!g.k5("tizen")&&!Lm&&!p&&!z}; g.rb=function(z){g.Q.call(this,{j:"div",J:[{j:"div",B:"ytp-bezel-text-wrapper",J:[{j:"div",B:"ytp-bezel-text",F3:"{{title}}"}]},{j:"div",B:"ytp-bezel",C:{role:"status","aria-label":"{{label}}"},J:[{j:"div",B:"ytp-bezel-icon",F3:"{{icon}}"}]}]});this.T=z;this.K=new g.B4(this.show,10,this);z=this.T.Y("delhi_modern_web_player")?1E3:500;this.W=new g.B4(this.hide,z,this);g.l(this,this.K);g.l(this,this.W);this.hide()}; kF=function(z,p,c){if(p<=0){c=v_();p="muted";var B=0}else c=c?{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,C:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,C:{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"}}]},B=Math.floor(p),p=B+"volume";Us(z,c,p,B+"%")}; g1V=function(z,p){p=p?{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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"}}]}:wJf();var c=z.T.getPlaybackRate(),B=g.RD("Speed is $RATE",{RATE:String(c)});Us(z,p,B,c+"x")}; GpY=function(z,p){p=p?"Subtitles/closed captions on":"Subtitles/closed captions off";Us(z,ttx(),p)}; Us=function(z,p,c,B){B=B===void 0?"":B;z.updateValue("label",c===void 0?"":c);z.updateValue("icon",p);g.TV(z.W);z.K.start();z.updateValue("title",B);g.Yf(z.element,"ytp-bezel-text-hide",!B)}; NqE=function(z,p){g.Q.call(this,{j:"button",LH:["ytp-button","ytp-cards-button"],C:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.yB(z.N()))},J:[{j:"span",B:"ytp-cards-button-icon-default",J:[{j:"div",B:"ytp-cards-button-icon",J:[z.N().Y("player_new_info_card_format")?$GV():{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {j:"div",B:"ytp-cards-button-title",F3:"Info"}]},{j:"span",B:"ytp-cards-button-icon-shopping",J:[{j:"div",B:"ytp-cards-button-icon",J:[{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",B:"ytp-svg-shadow",C:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{j:"path",B:"ytp-svg-fill",C:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{j:"path",B:"ytp-svg-shadow-fill",C:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{j:"div", B:"ytp-cards-button-title",F3:"Shopping"}]}]});this.T=z;this.K=p;this.W=null;this.fade=new g.Da(this,250,!0,100);g.l(this,this.fade);g.Yf(this.K,"ytp-show-cards-title",g.yB(z.N()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.HL(!0)}; fT_=function(z,p){g.Q.call(this,{j:"div",B:"ytp-cards-teaser",J:[{j:"div",B:"ytp-cards-teaser-box"},{j:"div",B:"ytp-cards-teaser-text",J:z.N().Y("player_new_info_card_format")?[{j:"button",B:"ytp-cards-teaser-info-icon",C:{"aria-label":"Show cards","aria-haspopup":"true"},J:[$GV()]},{j:"span",B:"ytp-cards-teaser-label",F3:"{{text}}"},{j:"button",B:"ytp-cards-teaser-close-button",C:{"aria-label":"Close"},J:[g.ab()]}]:[{j:"span",B:"ytp-cards-teaser-label",F3:"{{text}}"}]}]});var c=this;this.T=z;this.rk= p;this.fade=new g.Da(this,250,!1,250);this.W=null;this.G=new g.B4(this.XU0,300,this);this.V=new g.B4(this.FYa,2E3,this);this.X=[];this.K=null;this.S=new g.B4(function(){c.element.style.margin="0"},250); this.onClickCommand=this.D=null;g.l(this,this.fade);g.l(this,this.G);g.l(this,this.V);g.l(this,this.S);z.N().Y("player_new_info_card_format")?(g.Eo(z.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.jp("ytp-cards-teaser-close-button"),"click",this.Or),this.Z(this.jp("ytp-cards-teaser-info-icon"),"click",this.fb),this.Z(this.jp("ytp-cards-teaser-label"),"click",this.fb)):this.listen("click",this.fb);this.Z(p.element,"mouseover",this.qI);this.Z(p.element,"mouseout",this.f$);this.Z(z,"cardsteasershow", this.CA$);this.Z(z,"cardsteaserhide",this.uQ);this.Z(z,"cardstatechange",this.JB);this.Z(z,"presentingplayerstatechange",this.JB);this.Z(z,"appresize",this.x5);this.Z(z,"onShowControls",this.x5);this.Z(z,"onHideControls",this.Vl);this.listen("mouseenter",this.g1)}; zdQ=function(z){g.Q.call(this,{j:"button",LH:[gb.BUTTON,gb.TITLE_NOTIFICATIONS],C:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},J:[{j:"div",B:gb.TITLE_NOTIFICATIONS_ON,C:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},J:[g.dJ()]},{j:"div",B:gb.TITLE_NOTIFICATIONS_OFF,C:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},J:[{j:"svg",C:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{j:"path",C:{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=z;this.W=!1;z.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; plv=function(z,p){z.W=p;z.element.classList.toggle(gb.NOTIFICATIONS_ENABLED,z.W);var c=z.api.getVideoData();c?(p=p?c.y9:c.Jf)?(z=z.api.Jn())?BY(z,p):g.Fr(Error("No innertube service available when updating notification preferences.")):g.Fr(Error("No update preferences command available.")):g.Fr(Error("No video data when updating notification preferences."))}; Bp_=function(z,p,c){var B=B===void 0?800:B;var H=H===void 0?600:H;var T=document.location.protocol;z=PvN(T+"//"+z+"/signin?context=popup","feature",p,"next",T+"//"+location.hostname+"/post_login");cCS(z,c,B,H)}; cCS=function(z,p,c,B){c=c===void 0?800:c;B=B===void 0?600:B;if(z=g.nw(window,z,"loginPopup","width="+c+",height="+B+",resizable=yes,scrollbars=yes"))ONQ(function(){p()}),z.moveTo((screen.width-c)/2,(screen.height-B)/2)}; g.GZ=function(z,p,c,B,H,T,b,D,t,X,x,E){z=z.charAt(0)+z.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if(p==="0"||p==="-1")p=null;if(B==="0"||B==="-1")B=null;var q=x.N(),J=q.userDisplayName&&g.jF(q);g.Q.call(this,{j:"div",LH:["ytp-button","ytp-sb"],J:[{j:"div",B:"ytp-sb-subscribe",C:J?{title:g.RD("Subscribe as $USER_NAME",{USER_NAME:q.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Vv(q),"data-tooltip-opaque":String(g.yB(q)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},J:[{j:"div",B:"ytp-sb-text",J:[{j:"div",B:"ytp-sb-icon"},z]},p?{j:"div",B:"ytp-sb-count",F3:p}:""]},{j:"div",B:"ytp-sb-unsubscribe",C:J?{title:g.RD("Subscribed as $USER_NAME",{USER_NAME:q.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Vv(q),"data-tooltip-opaque":String(g.yB(q)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},J:[{j:"div",B:"ytp-sb-text",J:[{j:"div",B:"ytp-sb-icon"},c]},B?{j:"div",B:"ytp-sb-count", F3:B}:""]}],C:{"aria-live":"polite"}});var M=this;this.channelId=b;this.T=x;this.D=E;var P=this.jp("ytp-sb-subscribe"),O=this.jp("ytp-sb-unsubscribe");T&&g.Eo(this.element,"ytp-sb-classic");if(H){D?this.W():this.K();var R=function(){if(q.tD){var Z=M.channelId;if(t||X){var W={c:Z};var v;g.In.isInitialized()&&(v=uoD(W));W=v||"";if(v=x.getVideoData())if(v=v.subscribeCommand){var zY=x.Jn();zY?(BY(zY,v,{botguardResponse:W,feature:t}),x.AD("SUBSCRIBE",Z)):g.Fr(Error("No innertube service available when updating subscriptions."))}else g.Fr(Error("No subscribe command in videoData.")); else g.Fr(Error("No video data available when updating subscription."))}O.focus();O.removeAttribute("aria-hidden");P.setAttribute("aria-hidden","true")}else Bp_(g.Gx(M.T.N()),"sb_button",M.X)},K=function(){var Z=M.channelId; if(t||X){var W=x.getVideoData();BY(x.Jn(),W.unsubscribeCommand,{feature:t});x.AD("UNSUBSCRIBE",Z)}P.focus();P.removeAttribute("aria-hidden");O.setAttribute("aria-hidden","true")}; this.Z(P,"click",R);this.Z(O,"click",K);this.Z(P,"keypress",function(Z){Z.keyCode===13&&R(Z)}); this.Z(O,"keypress",function(Z){Z.keyCode===13&&K(Z)}); this.Z(x,"SUBSCRIBE",this.W);this.Z(x,"UNSUBSCRIBE",this.K);this.D&&J&&(UpD(x),LP(x,P,this),LP(x,O,this))}else g.Eo(P,"ytp-sb-disabled"),g.Eo(O,"ytp-sb-disabled")}; TpY=function(z){g.Q.call(this,{j:"div",B:"ytp-title-channel",J:[{j:"div",B:"ytp-title-beacon"},{j:"a",B:"ytp-title-channel-logo",C:{href:"{{channelLink}}",target:z.N().U,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{j:"div",B:"ytp-title-expanded-overlay",C:{"aria-hidden":"{{flyoutUnfocusable}}"},J:[{j:"div",B:"ytp-title-expanded-heading",J:[{j:"div",B:"ytp-title-expanded-title",J:[{j:"a",F3:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:z.N().U,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{j:"div",B:"ytp-title-expanded-subtitle",F3:"{{expandedSubtitle}}",C:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var p=this;this.api=z;this.channel=this.jp("ytp-title-channel");this.K=this.jp("ytp-title-channel-logo");this.channelName=this.jp("ytp-title-expanded-title");this.V=this.jp("ytp-title-expanded-overlay");this.D=this.W=this.subscribeButton=null;this.X=!1;z.createClientVe(this.K,this,36925);z.createClientVe(this.channelName,this, 37220);g.yB(this.api.N())&&HYf(this);this.Z(z,"videodatachange",this.Bq);this.Z(z,"videoplayerreset",this.Bq);this.Z(this.channelName,"click",function(c){p.api.logClick(p.channelName);g.nw(window,iYD(p));c.preventDefault()}); this.Z(this.K,"click",this.rHD);this.Bq()}; bYu=function(z){if(!z.api.N().EW){var p=z.api.getVideoData(),c=new g.GZ("Subscribe",null,"Subscribed",null,!0,!1,p.uD,p.subscribed,"channel_avatar",null,z.api,!0);z.api.createServerVe(c.element,z);var B;z.api.setTrackingParams(c.element,((B=p.subscribeButtonRenderer)==null?void 0:B.trackingParams)||null);z.Z(c.element,"click",function(){z.api.logClick(c.element)}); z.subscribeButton=c;g.l(z,z.subscribeButton);z.subscribeButton.Ia(z.V);z.subscribeButton.hide();var H=new zdQ(z.api);z.W=H;g.l(z,H);H.Ia(z.V);H.hide();z.Z(z.api,"SUBSCRIBE",function(){p.n3&&(H.show(),z.api.logVisibility(H.element,!0))}); z.Z(z.api,"UNSUBSCRIBE",function(){p.n3&&(H.hide(),z.api.logVisibility(H.element,!1),plv(H,!1))})}}; HYf=function(z){var p=z.api.N();bYu(z);z.updateValue("flyoutUnfocusable","true");z.updateValue("channelTitleFocusable","-1");z.updateValue("shouldHideExpandedTitleForA11y","true");z.updateValue("shouldHideExpandedSubtitleForA11y","true");p.K||p.i8||(z.Z(z.channel,"mouseenter",z.RF),z.Z(z.channel,"mouseleave",z.B$),z.Z(z.channel,"focusin",z.RF),z.Z(z.channel,"focusout",function(c){z.channel.contains(c.relatedTarget)||z.B$()})); z.D=new g.B4(function(){z.isExpanded()&&(z.api.logVisibility(z.channelName,!1),z.subscribeButton&&(z.subscribeButton.hide(),z.api.logVisibility(z.subscribeButton.element,!1)),z.W&&(z.W.hide(),z.api.logVisibility(z.W.element,!1)),z.channel.classList.remove("ytp-title-expanded"),z.channel.classList.add("ytp-title-show-collapsed"))},500); g.l(z,z.D);z.Z(z.channel,VyQ,function(){DUi(z)}); z.Z(z.api,"onHideControls",z.f0);z.Z(z.api,"appresize",z.f0);z.Z(z.api,"fullscreentoggled",z.f0)}; DUi=function(z){z.channel.classList.remove("ytp-title-show-collapsed");z.channel.classList.remove("ytp-title-show-expanded")}; tyB=function(z){var p=z.api.getPlayerSize();return g.yB(z.api.N())&&p.width>=524}; iYD=function(z){var p=z.api.N(),c=z.api.getVideoData(),B=g.D3(p)+c.FQ;g.t1(c)&&(B="https://music.youtube.com"+c.FQ);if(!g.yB(p))return B;p={};g.YG(z.api,"addEmbedsConversionTrackingParams",[p]);return g.g6(B,p)}; Ns=function(z){var p=g.pe({"aria-haspopup":"true"});g.zn.call(this,p,z);this.listen("keydown",this.W)}; fn=function(z,p){z.element.setAttribute("aria-haspopup",String(p))}; Xlx=function(z,p){g.Q.call(this,{j:"div",B:"ytp-user-info-panel",C:{"aria-label":"User info"},J:z.N().tD&&!z.Y("embeds_web_always_enable_signed_out_state")?[{j:"div",B:"ytp-user-info-panel-icon",F3:"{{icon}}"},{j:"div",B:"ytp-user-info-panel-content",J:[{j:"div",B:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable}}",role:"text"},F3:"{{watchingAsUsername}}"},{j:"div",B:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable2}}",role:"text"},F3:"{{watchingAsEmail}}"}]}]:[{j:"div",B:"ytp-user-info-panel-icon", F3:"{{icon}}"},{j:"div",B:"ytp-user-info-panel-content",J:[{j:"div",J:[{j:"text",C:{tabIndex:"{{userInfoFocusable}}"},F3:"Signed out"}]},{j:"div",B:"ytp-user-info-panel-login",J:[{j:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},F3:z.N().EW?"":"Sign in on YouTube"}]}]}]});this.nH=z;this.W=p;z.N().tD||z.N().EW||this.Z(this.jp("ytp-user-info-panel-login"),"click",this.w1);this.closeButton=new g.Q({j:"button",LH:["ytp-collapse","ytp-button"],C:{title:"Close"},J:[g.lZ()]});this.closeButton.Ia(this.element); g.l(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.d1);this.Bq()}; EED=function(z,p,c){g.aH.call(this,z);this.QS=p;this.ws=c;this.getVideoUrl=new Ns(6);this.jP=new Ns(5);this.eP=new Ns(4);this.kt=new Ns(3);this.rf=new g.zn(g.pe({href:"{{href}}",target:this.T.N().U},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.zn(g.pe(),1,"Stats for nerds");this.u5=new g.P_({j:"div",LH:["ytp-copytext","ytp-no-contextmenu"],C:{draggable:"false",tabindex:"1"},F3:"{{text}}"});this.eV=new ul(this.T,this.u5);this.r4=this.xR=null;g.yB(this.T.N())&&(this.closeButton= new g.Q({j:"button",LH:["ytp-collapse","ytp-button"],C:{title:"Close"},J:[g.lZ()]}),g.l(this,this.closeButton),this.closeButton.Ia(this.element),this.closeButton.listen("click",this.ql,this));g.yB(this.T.N())&&(this.VH=new g.zn(g.pe(),8,"Account"),g.l(this,this.VH),this.nB(this.VH,!0),this.VH.listen("click",this.gyt,this),z.createClientVe(this.VH.element,this.VH,137682));this.T.N().OM&&(this.Ds=new Xf("Loop",7),g.l(this,this.Ds),this.nB(this.Ds,!0),this.Ds.listen("click",this.aza,this),z.createClientVe(this.Ds.element, this.Ds,28661));g.l(this,this.getVideoUrl);this.nB(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Ub0,this);z.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.l(this,this.jP);this.nB(this.jP,!0);this.jP.listen("click",this.lPa,this);z.createClientVe(this.jP.element,this.jP,28660);g.l(this,this.eP);this.nB(this.eP,!0);this.eP.listen("click",this.swZ,this);z.createClientVe(this.eP.element,this.eP,28658);g.l(this,this.kt);this.nB(this.kt,!0);this.kt.listen("click",this.HBH, this);g.l(this,this.rf);this.nB(this.rf,!0);this.rf.listen("click",this.hUZ,this);g.l(this,this.showVideoInfo);this.nB(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.dip,this);g.l(this,this.u5);this.u5.listen("click",this.BUA,this);g.l(this,this.eV);p=document.queryCommandSupported&&document.queryCommandSupported("copy");UvB("Chromium")>=43&&(p=!0);UvB("Firefox")<=40&&(p=!1);p&&(this.xR=new g.Q({j:"textarea",B:"ytp-html5-clipboard",C:{readonly:"",tabindex:"-1"}}),g.l(this,this.xR), this.xR.Ia(this.element));var B;(B=this.VH)==null||B.setIcon(ZtD());var H;(H=this.Ds)==null||H.setIcon({j:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.kt.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{"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.rf.setIcon(RVS());this.showVideoInfo.setIcon(SmN());this.Z(z,"onLoopChange",this.onLoopChange);this.Z(z,"videodatachange",this.onVideoDataChange);xUW(this);this.MQ(this.T.getVideoData())}; z7=function(z,p){var c=!1;if(z.xR){var B=z.xR.element;B.value=p;B.select();try{c=document.execCommand("copy")}catch(H){}}c?z.QS.uQ():(z.u5.cU(p,"text"),g.dt(z.QS,z.eV),Ma(z.u5.element),z.xR&&(z.xR=null,xUW(z)));return c}; xUW=function(z){var p=!!z.xR;g.fP(z.kt,p?"Copy debug info":"Get debug info");fn(z.kt,!p);g.fP(z.eP,p?"Copy embed code":"Get embed code");fn(z.eP,!p);g.fP(z.getVideoUrl,p?"Copy video URL":"Get video URL");fn(z.getVideoUrl,!p);g.fP(z.jP,p?"Copy video URL at current time":"Get video URL at current time");fn(z.jP,!p);z.eP.setIcon(p?AMf():null);z.getVideoUrl.setIcon(p?Zy():null);z.jP.setIcon(p?Zy():null)}; qKx=function(z){return g.yB(z.T.N())?z.VH:z.Ds}; Myf=function(z,p){g.Lj.call(this,z);this.ws=p;this.X=new g.or(this);this.MZ=new g.B4(this.UiH,1E3,this);this.Dt=this.D=null;g.l(this,this.X);g.l(this,this.MZ);p=this.T.N();z.createClientVe(this.element,this,28656);g.Eo(this.element,"ytp-contextmenu");this.T.N().experiments.JD("delhi_modern_web_player")&&g.cX(p)&&g.Eo(this.element,"ytp-delhi-modern-contextmenu");JCY(this);this.hide()}; JCY=function(z){g.CG(z.X);var p=z.T.N();p.playerStyle==="gvn"||p.K||p.i8||(p=z.T.Hq(),z.X.Z(p,"contextmenu",z.nra),z.X.Z(p,"touchstart",z.onTouchStart,null,!0),z.X.Z(p,"touchmove",z.hN,null,!0),z.X.Z(p,"touchend",z.hN,null,!0))}; YKW=function(z){z.T.isFullscreen()?g.F7(z.T,z.element,10):z.Ia(g$(z).body)}; pW=function(z,p,c){c=c===void 0?240:c;g.Q.call(this,{j:"button",LH:["ytp-button","ytp-copylink-button"],C:{title:"{{title-attr}}","data-tooltip-opaque":String(g.yB(z.N()))},J:[{j:"div",B:"ytp-copylink-icon",F3:"{{icon}}"},{j:"div",B:"ytp-copylink-title",F3:"Copy link",C:{"aria-hidden":"true"}}]});this.api=z;this.W=p;this.K=c;this.visible=!1;this.tooltip=this.W.t8();p=z.N();this.tooltip.element.setAttribute("aria-live","polite");g.Yf(this.element,"ytp-show-copylink-title",g.yB(p));z.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Z(z,"videodatachange",this.Bq);this.Z(z,"videoplayerreset",this.Bq);this.Z(z,"appresize",this.Bq);this.Bq();this.addOnDisposeCallback(g.Z7(this.tooltip,this.element))}; mUx=function(z){var p=z.api.N(),c=z.api.getVideoData(),B=z.api.Hq().getPlayerSize().width;p=p.D;return!!c.videoId&&B>=z.K&&c.ZW&&!g.VP(c)&&!z.api.isEmbedsShortsMode()&&!p}; hdV=function(z){z.updateValue("icon",S_());if(z.api.N().K)z.tooltip.Ey(z.element,"Link copied to clipboard");else{z.updateValue("title-attr","Link copied to clipboard");z.tooltip.Tk();z.tooltip.Ey(z.element);var p=z.listen("mouseleave",function(){z.vy(p);z.Bq();z.tooltip.Se()})}}; PKB=function(z,p){return g.L(function(c){if(c.W==1)return g.Ox(c,2),g.a(c,navigator.clipboard.writeText(p),4);if(c.W!=2)return c.return(!0);g.SQ(c);var B=c.return,H=!1,T=g.i4("TEXTAREA");T.value=p;T.setAttribute("readonly","");var b=z.api.getRootNode();b.appendChild(T);if(zG){var D=window.getSelection();D.removeAllRanges();var t=document.createRange();t.selectNodeContents(T);D.addRange(t);T.setSelectionRange(0,p.length)}else T.select();try{H=document.execCommand("copy")}catch(X){}b.removeChild(T); return B.call(c,H)})}; cI=function(z){g.Q.call(this,{j:"div",B:"ytp-doubletap-ui-legacy",J:[{j:"div",B:"ytp-doubletap-fast-forward-ve"},{j:"div",B:"ytp-doubletap-rewind-ve"},{j:"div",B:"ytp-doubletap-static-circle",J:[{j:"div",B:"ytp-doubletap-ripple"}]},{j:"div",B:"ytp-doubletap-overlay-a11y"},{j:"div",B:"ytp-doubletap-seek-info-container",J:[{j:"div",B:"ytp-doubletap-arrows-container",J:[{j:"span",B:"ytp-doubletap-base-arrow"},{j:"span",B:"ytp-doubletap-base-arrow"},{j:"span",B:"ytp-doubletap-base-arrow"}]},{j:"div", B:"ytp-doubletap-tooltip",J:[{j:"div",B:"ytp-seek-icon-text-container",J:[{j:"div",B:"ytp-seek-icon",F3:"{{seekIcon}}"},{j:"div",B:"ytp-chapter-seek-text-legacy",F3:"{{seekText}}"}]},{j:"div",B:"ytp-doubletap-tooltip-label",F3:"{{seekTime}}"}]}]}]});this.T=z;this.X=new g.B4(this.show,10,this);this.K=new g.B4(this.hide,700,this);this.G=this.D=0;this.MZ=this.V=!1;this.W=this.jp("ytp-doubletap-static-circle");g.l(this,this.X);g.l(this,this.K);this.hide();this.S=this.jp("ytp-doubletap-fast-forward-ve"); this.U=this.jp("ytp-doubletap-rewind-ve");this.T.createClientVe(this.S,this,28240);this.T.createClientVe(this.U,this,28239);this.T.logVisibility(this.S,!0);this.T.logVisibility(this.U,!0);this.V=z.Y("web_show_cumulative_seek_time");this.MZ=z.Y("web_center_static_circles")}; BI=function(z,p,c,B){if(B=B===void 0?null:B){var H=p===-1?z.U.visualElement:z.S.visualElement;B={seekData:B};var T=g.Wu();T&&g.iO(Tr)(void 0,T,H,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B,void 0)}z.D=p===z.G?z.D+c:c;z.G=p;H=z.T.Hq().getPlayerSize();z.V?z.K.stop():g.TV(z.K);z.X.start();z.element.setAttribute("data-side",p===-1?"back":"forward");g.Eo(z.element,"ytp-time-seeking");z.W.style.width="110px";z.W.style.height="110px";B=H.width*.1-15;p===1?z.MZ?(z.W.style.right=B+"px",z.W.style.left=""): (z.W.style.right="",z.W.style.left=H.width*.8-30+"px"):p===-1&&(z.MZ?(z.W.style.right="",z.W.style.left=B+"px"):(z.W.style.right="",z.W.style.left=H.width*.1-15+"px"));z.W.style.top=H.height*.5+15+"px";ACQ(z,z.V?z.D:c)}; HI=function(z,p,c,B){B=B===void 0?null:B;g.TV(z.K);z.X.start();switch(p){case -1:p="back";break;case 1:p="forward";break;default:p=""}z.element.setAttribute("data-side",p);z.W.style.width="0";z.W.style.height="0";g.Eo(z.element,"ytp-chapter-seek");z.updateValue("seekText",c);z.updateValue("seekTime","");c=z.jp("ytp-seek-icon");if(B){a:if(B){switch(B){case "PREMIUM_STANDALONE":B={j:"svg",C:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},J:[{j:"path",C:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{j:"path",C:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":B={j:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"rect",C:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{j:"rect",C:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{j:"path",C:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{j:"defs",J:[{j:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},J:[{j:"stop",C:{offset:"0.3","stop-color":"#E1002D"}},{j:"stop",C:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}B=void 0}else B=null;z.updateValue("seekIcon",B);c.style.display="inline-block"}else c.style.display="none"}; ACQ=function(z,p){p=g.RD("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:p.toString()});z.updateValue("seekTime",p)}; OYW=function(z){Kj.call(this,z,!1,!0);this.T$=[];this.gt=[];this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.Ra=new g.Q({j:"div",B:"ytp-featured-product-open-in-new"});g.l(this,this.Ra);this.countdownTimer=new g.Q({j:"text",B:"ytp-featured-product-countdown",F3:"{{content}}"});this.countdownTimer.hide();g.l(this,this.countdownTimer);this.K=new g.Q({j:"div",B:"ytp-featured-product-trending",J:[{j:"div",B:"ytp-featured-product-trending-icon"},{j:"text",B:"ytp-featured-product-trending-text", F3:"{{trendingOffer}}"}]});this.K.hide();g.l(this,this.K);this.overflowButton=new g.Q({j:"button",LH:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.l(this,this.overflowButton);this.G=new g.Q({j:"text",B:"ytp-featured-product-exclusive-countdown",F3:"{{content}}",C:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.l(this,this.G);this.V=new g.Q({j:"div",B:"ytp-featured-product-exclusive-container",C:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, J:[{j:"div",B:"ytp-featured-product-exclusive-badge-container",J:[{j:"div",B:"ytp-featured-product-exclusive-badge",J:[{j:"text",B:"ytp-featured-product-exclusive-badge-text",F3:"{{exclusive}}",C:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.V.hide();g.l(this,this.V);this.banner=new g.Q({j:"a",B:"ytp-featured-product-container",J:[{j:"div",B:"ytp-featured-product-thumbnail",J:[{j:"img",C:{src:"{{thumbnail}}"}},this.Ra]},{j:"div",B:"ytp-featured-product-details",J:[{j:"text",B:"ytp-featured-product-title", F3:"{{title}}"},this.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",B:"ytp-featured-product-price-container",C:{"aria-label":"{{priceA11yText}}"},J:[{j:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",F3:"{{price}}",C:{"aria-hidden":"true"}},{j:"text",B:"ytp-featured-product-promotion-text",F3:"{{promotionText}}",C:{"aria-hidden":"true"}}]}:{j:"div",C:{"aria-label":"{{priceA11yText}}"},J:[{j:"text",B:"ytp-featured-product-price",F3:"{{price}}", C:{"aria-hidden":"true"}},{j:"text",B:"ytp-featured-product-sales-original-price",F3:"{{salesOriginalPrice}}",C:{"aria-hidden":"true"}},{j:"text",B:"ytp-featured-product-price-drop-reference-price",F3:"{{priceDropReferencePrice}}",C:{"aria-hidden":"true"}}]},this.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",B:"ytp-featured-product-when-promotion-text-enabled",J:[{j:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",F3:"{{affiliateDisclaimer}}"}, this.K,{j:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",F3:"{{vendor}}"}]}:{j:"div",J:[{j:"text",B:"ytp-featured-product-affiliate-disclaimer",F3:"{{affiliateDisclaimer}}"},this.T.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.V:null,this.K,{j:"text",B:"ytp-featured-product-vendor",F3:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.l(this,this.banner);this.banner.Ia(this.D.element);this.Z(this.T,g.E5("featured_product"),this.YvH);this.Z(this.T, g.qT("featured_product"),this.pU);this.Z(this.T,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.Sc);this.Z(z,"featuredproductdismissed",this.a6)}; wlN=function(z){var p,c;z=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:c.itemData;var B,H,T;return(z==null||!z.affiliateDisclaimer)&&(z==null?0:(B=z.exclusivesData)==null?0:B.exclusiveOfferLabelText)&&(z==null?0:(H=z.exclusivesData)==null?0:H.expirationTimestampMs)&&(z==null?0:(T=z.exclusivesData)==null?0:T.exclusiveOfferCountdownText)?!0:!1}; SKE=function(z){var p,c,B,H,T=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:(B=c.itemData)==null?void 0:(H=B.exclusivesData)==null?void 0:H.expirationTimestampMs;p=(Number(T)-Date.now())/1E3;if(p>0){if(p<604800){var b,D,t,X;c=(b=z.W)==null?void 0:(D=b.bannerData)==null?void 0:(t=D.itemData)==null?void 0:(X=t.exclusivesData)==null?void 0:X.exclusiveOfferCountdownText;if(c!==void 0)for(b=Date.now(),D=g.m(c),t=D.next();!t.done;t=D.next())if(t=t.value,t!==void 0&&t.text!==void 0&&(X=Number(t.textDisplayStartTimestampMs), !isNaN(X)&&b>=X)){t.insertCountdown?(p=t.text.replace(/\$0/,String(St({seconds:p}))),z.G.cU(p)):z.G.cU(t.text);z.G.show();break}}var x,E,q,J;z.V.update({exclusive:(x=z.W)==null?void 0:(E=x.bannerData)==null?void 0:(q=E.itemData)==null?void 0:(J=q.exclusivesData)==null?void 0:J.exclusiveOfferLabelText});z.V.show();ik(z);var M;(M=z.Ca)==null||M.start()}else RdY(z)}; RdY=function(z){var p;(p=z.Ca)==null||p.stop();z.G.hide();z.V.hide();T7(z)}; $UN=function(z){var p,c,B=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:c.itemData;return z.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(B==null||!B.priceReplacementText)&&(B==null?0:B.promotionText)?B==null?void 0:B.promotionText.content:null}; K5Q=function(z){var p,c,B=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:c.itemData,H,T;if(!(B!=null&&B.priceReplacementText||z.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(B==null?0:(H=B.dealsData)==null?0:(T=H.sales)==null?0:T.originalPrice)){var b,D;return B==null?void 0:(b=B.dealsData)==null?void 0:(D=b.sales)==null?void 0:D.originalPrice}return null}; uxE=function(z){var p,c,B=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:c.itemData,H,T,b,D;if(!((B==null?0:B.priceReplacementText)||z.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(B==null?0:(H=B.dealsData)==null?0:(T=H.sales)==null?0:T.originalPrice))&&(B==null?0:(b=B.dealsData)==null?0:(D=b.priceDrop)==null?0:D.referencePrice)){var t,X;return B==null?void 0:(t=B.dealsData)==null?void 0:(X=t.priceDrop)==null?void 0:X.referencePrice}return null}; a9u=function(z){var p,c,B=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:c.itemData;if(B==null?0:B.priceReplacementText)return B==null?void 0:B.priceReplacementText;if((B==null?0:B.promotionText)&&z.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var H;return(B==null?void 0:B.price)+" "+(B==null?void 0:(H=B.promotionText)==null?void 0:H.content)}var T,b;if(B==null?0:(T=B.dealsData)==null?0:(b=T.sales)==null?0:b.originalPrice){var D,t;return B==null?void 0:(D=B.dealsData)== null?void 0:(t=D.sales)==null?void 0:t.salesPriceAccessibilityLabel}var X,x;if(B==null?0:(X=B.dealsData)==null?0:(x=X.priceDrop)==null?0:x.referencePrice){var E,q;return(B==null?void 0:B.price)+" "+(B==null?void 0:(E=B.dealsData)==null?void 0:(q=E.priceDrop)==null?void 0:q.referencePrice)}return B==null?void 0:B.price}; ZYE=function(z){if(z.T.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var p,c,B;return z.K.EH?null:(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:(B=c.itemData)==null?void 0:B.vendorName}var H,T,b,D,t,X;return z.K.EH||z.V.EH||((H=z.W)==null?0:(T=H.bannerData)==null?0:(b=T.itemData)==null?0:b.affiliateDisclaimer)?null:(D=z.W)==null?void 0:(t=D.bannerData)==null?void 0:(X=t.itemData)==null?void 0:X.vendorName}; dUu=function(z,p){bk(z);if(p){var c=g.VN.getState().entities;c=mZ(c,"featuredProductsEntity",p);if(c!=null&&c.productsData){p=[];c=g.m(c.productsData);for(var B=c.next();!B.done;B=c.next()){B=B.value;var H=void 0;if((H=B)!=null&&H.identifier&&B.featuredSegments){z.T$.push(B);var T=void 0;H=g.m((T=B)==null?void 0:T.featuredSegments);for(T=H.next();!T.done;T=H.next()){var b=T.value;T=L5S(b.startTimeSec);T!==void 0&&(b=L5S(b.endTimeSec),p.push(new g.Xq(T*1E3,b===void 0?0x7ffffffffffff:b*1E3,{id:B.identifier, namespace:"featured_product"})))}}}z.T.KN(p)}}}; T7=function(z){if(z.trendingOfferEntityKey){var p=g.VN.getState().entities;if(p=mZ(p,"trendingOfferEntity",z.trendingOfferEntityKey)){var c,B,H;p.encodedSkuId!==((c=z.W)==null?void 0:(B=c.bannerData)==null?void 0:(H=B.itemData)==null?void 0:H.encodedOfferSkuId)?ik(z):(z.K.update({trendingOffer:p.shortLabel+" \u2022 "+p.countLabel}),z.K.show(),z.banner.update({vendor:ZYE(z)}))}else ik(z)}else ik(z)}; ik=function(z){z.K.hide();z.banner.update({vendor:ZYE(z)})}; bk=function(z){z.T$=[];z.pU();z.T.gs("featured_product")}; W5V=function(z){var p,c,B,H,T=(p=z.W)==null?void 0:(c=p.bannerData)==null?void 0:(B=c.itemData)==null?void 0:(H=B.hiddenProductOptions)==null?void 0:H.dropTimestampMs;p=(Number(T)-Date.now())/1E3;z.countdownTimer.cU(St({seconds:p}));if(p>0){var b;(b=z.Zw)==null||b.start()}}; yCY=function(z){var p;(p=z.Zw)==null||p.stop();z.countdownTimer.hide()}; L5S=function(z){if(z!==void 0&&z.trim()!==""&&(z=Math.trunc(Number(z.trim())),!(isNaN(z)||z<0)))return z}; I9B=function(z,p,c){g.Q.call(this,{j:"div",LH:["ytp-info-panel-action-item"],J:[{j:"div",B:"ytp-info-panel-action-item-disclaimer",F3:"{{disclaimer}}"},{j:"a",LH:["ytp-info-panel-action-item-button","ytp-button"],C:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},J:[{j:"div",B:"ytp-info-panel-action-item-icon",F3:"{{icon}}"},{j:"div",B:"ytp-info-panel-action-item-label",F3:"{{label}}"}]}]});this.T=z;this.W=c;this.disclaimer=this.jp("ytp-info-panel-action-item-disclaimer");this.button= this.jp("ytp-info-panel-action-item-button");this.NP=!1;this.T.createServerVe(this.element,this,!0);this.listen("click",this.onClick);z="";c=g.I(p==null?void 0:p.onTap,Qy);var B=g.I(c,g.Qj);this.NP=!1;B?(z=B.url||"",z.startsWith("//")&&(z="https:"+z),this.NP=!0,g.IQ(this.button,g.lv(z))):(B=g.I(c,CKQ))&&!this.W?((z=B.phoneNumbers)&&z.length>0?(z="sms:"+z[0],B.messageText&&(z+="?&body="+encodeURI(B.messageText))):z="",this.NP=!0,g.IQ(this.button,g.lv(z,[edS]))):(c=g.I(c,l9v))&&!this.W&&(z=c.phoneNumber? "tel:"+c.phoneNumber:"",this.NP=!0,g.IQ(this.button,g.lv(z,[vEY])));var H;if(c=(H=p.disclaimerText)==null?void 0:H.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var T;this.update({label:(T=p.bodyText)==null?void 0:T.content,icon:W_(),disclaimer:c})}else{this.disclaimer.style.display="none";var b;this.update({label:(b=p.bodyText)==null?void 0:b.content,icon:W_()})}this.T.setTrackingParams(this.element,p.trackingParams||null);this.NP&&(this.K={externalLinkData:{url:z}})}; j_Q=function(z,p){var c=MK();g.kG.call(this,z,{j:"div",B:"ytp-info-panel-detail-skrim",J:[{j:"div",B:"ytp-info-panel-detail",C:{role:"dialog",id:c},J:[{j:"div",B:"ytp-info-panel-detail-header",J:[{j:"div",B:"ytp-info-panel-detail-title",F3:"{{title}}"},{j:"button",LH:["ytp-info-panel-detail-close","ytp-button"],C:{"aria-label":"Close"},J:[g.ab()]}]},{j:"div",B:"ytp-info-panel-detail-body",F3:"{{body}}"},{j:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.W=p;this.items=this.jp("ytp-info-panel-detail-items"); this.D=new g.or(this);this.itemData=[];this.X=c;this.Z(this.jp("ytp-info-panel-detail-close"),"click",this.uQ);this.Z(this.jp("ytp-info-panel-detail-skrim"),"click",this.uQ);this.Z(this.jp("ytp-info-panel-detail"),"click",function(B){B.stopPropagation()}); g.l(this,this.D);this.T.createServerVe(this.element,this,!0);this.Z(z,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",z.getVideoData());this.hide()}; F5i=function(z,p){z=g.m(z.itemData);for(var c=z.next();!c.done;c=z.next())c=c.value,c.T.logVisibility(c.element,p)}; Q_V=function(z,p){g.Q.call(this,{j:"div",B:"ytp-info-panel-preview",C:{"aria-live":"assertive","aria-atomic":"true","aria-owns":p.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.yB(z.N()))},J:[{j:"div",B:"ytp-info-panel-preview-text",F3:"{{text}}"},{j:"div",B:"ytp-info-panel-preview-chevron",F3:"{{chevron}}"}]});var c=this;this.T=z;this.OR=this.W=this.videoId=null;this.D=this.showControls=this.K=!1;this.Z(this.element,"click",function(){z.logClick(c.element);z.mO();Gg(p)}); this.fade=new g.Da(this,250,!1,100);g.l(this,this.fade);this.T.createServerVe(this.element,this,!0);this.Z(z,"videodatachange",this.onVideoDataChange);this.Z(z,"presentingplayerstatechange",this.J7);this.Z(this.T,"paidcontentoverlayvisibilitychange",this.ZO);this.Z(this.T,"infopaneldetailvisibilitychange",this.ZO);var B=z.getVideoData()||{};oEi(B)&&nEx(this,B);this.Z(z,"onShowControls",this.PZ);this.Z(z,"onHideControls",this.N5)}; nEx=function(z,p){if(!p.UF||!z.T.PV()){var c=p.Rn||1E4,B=oEi(p);z.W?p.videoId&&p.videoId!==z.videoId&&(g.TV(z.W),z.videoId=p.videoId,B?(rCS(z,c,p),z.S_()):(z.uQ(),z.W.dispose(),z.W=null)):B&&(p.videoId&&(z.videoId=p.videoId),rCS(z,c,p),z.S_())}}; oEi=function(z){var p,c,B,H;return!!((p=z.A8)==null?0:(c=p.title)==null?0:c.content)||!!((B=z.A8)==null?0:(H=B.bodyText)==null?0:H.content)}; rCS=function(z,p,c){z.W&&z.W.dispose();z.W=new g.B4(z.GO$,p,z);g.l(z,z.W);var B;p=((B=c.A8)==null?void 0:B.trackingParams)||null;z.T.setTrackingParams(z.element,p);var H;var T,b;if(c==null?0:(T=c.A8)==null?0:(b=T.title)==null?0:b.content){var D;B=(H=c.A8)==null?void 0:(D=H.title)==null?void 0:D.content;var t,X;if((t=c.A8)==null?0:(X=t.bodyText)==null?0:X.content)B+=" \u2022 ";H=B}else H="";var x,E;c=((x=c.A8)==null?void 0:(E=x.bodyText)==null?void 0:E.content)||"";z.update({text:H+c,chevron:g.uZ()})}; UUY=function(z,p){z.W&&(g.r(p,8)?(z.K=!0,z.S_(),z.W.start()):(g.r(p,2)||g.r(p,64))&&z.videoId&&(z.videoId=null))}; V1=function(z){var p=null;try{p=z.toLocaleString("en",{style:"percent"})}catch(c){p=z.toLocaleString(void 0,{style:"percent"})}return p}; D2=function(z,p){var c=0;z=g.m(z);for(var B=z.next();!(B.done||B.value.startTime>p);B=z.next())c++;return c===0?c:c-1}; s_B=function(z,p){for(var c=0,B=g.m(z),H=B.next();!H.done;H=B.next()){H=H.value;if(p=H.timeRangeStartMillis&&p0?p[0]:null;var c=g.fH("ytp-chrome-bottom"),B=g.fH("ytp-ad-module");z.X=!(c==null||!c.contains(p));z.S=!(B==null||!B.contains(p));z.U=!(p==null||!p.hasAttribute("data-tooltip-target-fixed"));return p}; Xsv=function(z,p,c){if(!z.V){if(p){z.tooltipRenderer=p;p=z.tooltipRenderer.text;var B=!1,H;(p==null?0:(H=p.runs)==null?0:H.length)&&p.runs[0].text&&(z.update({title:p.runs[0].text.toString()}),B=!0);g.yM(z.title,B);p=z.tooltipRenderer.detailsText;H=!1;var T;if((p==null?0:(T=p.runs)==null?0:T.length)&&p.runs[0].text){B=p.runs[0].text.toString();T=B.indexOf("$TARGET_ICON");if(T>-1)if(z.tooltipRenderer.targetId){p=[];B=B.split("$TARGET_ICON");var b=new g.Yj({j:"span",B:"ytp-promotooltip-details-icon", J:[D4i[z.tooltipRenderer.targetId]]});g.l(z,b);for(var D=[],t=g.m(B),X=t.next();!X.done;X=t.next())X=new g.Yj({j:"span",B:"ytp-promotooltip-details-component",F3:X.value}),g.l(z,X),D.push(X);B.length===2?(p.push(D[0].element),p.push(b.element),p.push(D[1].element)):B.length===1&&(T===0?(p.push(b.element),p.push(D[0].element)):(p.push(D[0].element),p.push(b.element)));T=p.length?p:null}else T=null;else T=B;if(T){if(typeof T!=="string")for(g.Vm(z.details),H=g.m(T),T=H.next();!T.done;T=H.next())z.details.appendChild(T.value); else z.update({details:T});H=!0}}g.yM(z.details,H);H=z.tooltipRenderer.acceptButton;T=!1;var x,E,q;((x=g.I(H,g.nl))==null?0:(E=x.text)==null?0:(q=E.runs)==null?0:q.length)&&g.I(H,g.nl).text.runs[0].text&&(z.update({acceptButtonText:g.I(H,g.nl).text.runs[0].text.toString()}),T=!0);g.yM(z.acceptButton,T);x=z.tooltipRenderer.dismissButton;E=!1;var J,M,P;((J=g.I(x,g.nl))==null?0:(M=J.text)==null?0:(P=M.runs)==null?0:P.length)&&g.I(x,g.nl).text.runs[0].text&&(z.update({dismissButtonText:g.I(x,g.nl).text.runs[0].text.toString()}), E=!0);g.yM(z.dismissButton,E)}c&&(z.D=c);z.W=V1Q(z);z.G=!1;z.T.N().Y("web_player_hide_nitrate_promo_tooltip")||z.DP(!0);t1Q(z);z.EH&&!z.MZ&&(z.MZ=!0,z.Xg.CU(0));z.K&&z.T.logVisibility(z.element,z.EH)}}; M$=function(z){z.DP(!1);z.K&&z.T.logVisibility(z.element,z.EH)}; x4W=function(z){var p,c,B,H=((p=g.I(z.acceptButton,g.nl))==null?void 0:(c=p.text)==null?void 0:(B=c.runs)==null?void 0:B.length)&&!!g.I(z.acceptButton,g.nl).text.runs[0].text,T,b,D;p=((T=g.I(z.dismissButton,g.nl))==null?void 0:(b=T.text)==null?void 0:(D=b.runs)==null?void 0:D.length)&&!!g.I(z.dismissButton,g.nl).text.runs[0].text;return H||p}; t1Q=function(z){var p;if(!(p=!z.W)){p=z.W;var c=window.getComputedStyle(p);p=c.display==="none"||c.visibility==="hidden"||p.getAttribute("aria-hidden")==="true"}if(p||z.T.isMinimized())z.DP(!1);else if(p=g.Wx(z.W),p.width&&p.height){z.T.ya(z.element,z.W);var B=z.T.Hq().getPlayerSize().height;c=g.Wx(z.jp("ytp-promotooltip-container")).height;z.X?z.element.style.top=B-c-p.height-12+"px":z.U||(B=z.T.Ub().height-c-p.height-12,z.element.style.top=B+"px");B=z.jp("ytp-promotooltip-pointer");var H=g.K4(z.W, z.T.getRootNode()),T=Number(z.element.style.left.replace(/[^\d\.]/g,""));z=z.T.isFullscreen()?18:12;B.style.left=H.x-T+p.width/2-z+"px";B.style.top=c+"px"}else z.DP(!1)}; Yh=function(z){g.Q.call(this,{j:"button",LH:["ytp-replay-button","ytp-button"],C:{title:"Replay"},J:[g.CB()]});this.T=z;this.Z(z,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Hy(z.getPlayerStateObject());LP(this.T,this.element,this)}; mz=function(z,p){p=p===void 0?240:p;g.Q.call(this,{j:"button",LH:["ytp-button","ytp-search-button"],C:{title:"Search","data-tooltip-opaque":String(g.yB(z.N()))},J:[{j:"div",B:"ytp-search-icon",F3:"{{icon}}"},{j:"div",B:"ytp-search-title",F3:"Search"}]});this.api=z;this.K=p;this.visible=!1;this.updateValue("icon",{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},J:[{j:"path",B:"ytp-svg-fill",C:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); z.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.W();this.Z(z,"appresize",this.W);this.Z(z,"videodatachange",this.W);LP(z,this.element,this)}; g.h8=function(z,p,c,B){B=B===void 0?240:B;g.Q.call(this,{j:"button",LH:["ytp-button","ytp-share-button"],C:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.yB(z.N()))},J:[{j:"div",B:"ytp-share-icon",F3:"{{icon}}"},{j:"div",B:"ytp-share-title",F3:"Share"}]});this.api=z;this.W=p;this.D=c;this.X=B;this.K=this.visible=!1;this.tooltip=this.W.t8();z.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Z(z,"videodatachange",this.Bq); this.Z(z,"videoplayerreset",this.Bq);this.Z(z,"appresize",this.Bq);this.Z(z,"presentingplayerstatechange",this.Bq);this.Bq();this.addOnDisposeCallback(g.Z7(this.tooltip,this.element))}; EiD=function(z){var p=z.api.N(),c=z.api.getVideoData(),B=g.yB(p)&&g.lg(z.api)&&g.r(z.api.getPlayerStateObject(),128);p=p.D||p.disableSharing&&z.api.getPresentingPlayerType()!==2||!c.showShareButton||c.ZW||B||g.VP(c)||z.K;B=z.api.Hq().getPlayerSize().width;return!!c.videoId&&B>=z.X&&!p}; qqD=function(z,p){p.name!=="InvalidStateError"&&p.name!=="AbortError"&&(p.name==="NotAllowedError"?(z.W.mO(),Gg(z.D,z.element,!1)):g.Fr(p))}; M1Y=function(z,p){var c=MK(),B=z.N();c={j:"div",B:"ytp-share-panel",C:{id:MK(),role:"dialog","aria-labelledby":c},J:[{j:"div",B:"ytp-share-panel-inner-content",J:[{j:"div",B:"ytp-share-panel-title",C:{id:c},F3:"Share"},{j:"a",LH:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:B.U,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},F3:"{{linkText}}"},{j:"label",B:"ytp-share-panel-include-playlist",J:[{j:"input",B:"ytp-share-panel-include-playlist-checkbox",C:{type:"checkbox", checked:"true"}},"Include playlist"]},{j:"div",B:"ytp-share-panel-loading-spinner",J:[JW()]},{j:"div",B:"ytp-share-panel-service-buttons",F3:"{{buttons}}"},{j:"div",B:"ytp-share-panel-error",F3:"An error occurred while retrieving sharing information. Please try again later."}]},{j:"button",LH:["ytp-share-panel-close","ytp-button"],C:{title:"Close"},J:[g.ab()]}]};g.kG.call(this,z,c,250);var H=this;this.moreButton=null;this.api=z;this.tooltip=p.t8();this.D=[];this.V=this.jp("ytp-share-panel-inner-content"); this.closeButton=this.jp("ytp-share-panel-close");this.Z(this.closeButton,"click",this.uQ);this.addOnDisposeCallback(g.Z7(this.tooltip,this.closeButton));this.X=this.jp("ytp-share-panel-include-playlist-checkbox");this.Z(this.X,"click",this.Bq);this.W=this.jp("ytp-share-panel-link");this.addOnDisposeCallback(g.Z7(this.tooltip,this.W));this.api.createClientVe(this.W,this,164503);this.Z(this.W,"click",function(T){T.preventDefault();H.api.logClick(H.W);var b=H.api.getVideoUrl(!0,!0,!1,!1);b=JtW(H,b); g.qa(b,H.api,T)&&H.api.AD("SHARE_CLICKED")}); this.listen("click",this.HZ);this.Z(z,"videoplayerreset",this.hide);this.Z(z,"fullscreentoggled",this.onFullscreenToggled);this.Z(z,"onLoopRangeChange",this.iaA);this.hide()}; m4D=function(z,p){YqW(z);for(var c=p.links||p.shareTargets,B=0,H={},T=0;T'),(P=J.document)&&P.write&&(P.write(oQ(M)),P.close()))):((J=g.nw(J,P,q,Z))&&M.noopener&&(J.opener=null),J&&M.noreferrer&&(J.opener=null));J&&(J.opener||(J.opener=window),J.focus());E.preventDefault()}}}(H)); H.Ve.addOnDisposeCallback(g.Z7(z.tooltip,H.Ve.element));D==="Facebook"?z.api.createClientVe(H.Ve.element,H.Ve,164504):D==="Twitter"&&z.api.createClientVe(H.Ve.element,H.Ve,164505);z.Z(H.Ve.element,"click",function(x){return function(){z.api.logClick(x.Ve.element)}}(H)); z.api.logVisibility(H.Ve.element,!0);z.D.push(H.Ve);B++}}var t=p.more||p.moreLink,X=new g.Q({j:"a",LH:["ytp-share-panel-service-button","ytp-button"],J:[{j:"span",B:"ytp-share-panel-service-button-more",J:[{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{j:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",C:{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"}}]}]}],C:{href:t,target:"_blank",title:"More"}});X.listen("click",function(x){var E=t;z.api.logClick(z.moreButton.element);E=JtW(z,E);g.qa(E,z.api,x)&&z.api.AD("SHARE_CLICKED")}); X.addOnDisposeCallback(g.Z7(z.tooltip,X.element));z.api.createClientVe(X.element,X,164506);z.Z(X.element,"click",function(){z.api.logClick(X.element)}); z.api.logVisibility(X.element,!0);z.D.push(X);z.moreButton=X;z.updateValue("buttons",z.D)}; JtW=function(z,p){var c={};g.yB(z.api.N())&&(g.YG(z.api,"addEmbedsConversionTrackingParams",[c]),p=g.g6(p,c));return p}; YqW=function(z){for(var p=g.m(z.D),c=p.next();!c.done;c=p.next())c=c.value,c.detach(),g.Dm(c);z.D=[]}; PI=function(z){return z===void 0||z.startSec===void 0||z.endSec===void 0?!1:!0}; hZu=function(z,p){z.startSec+=p;z.endSec+=p}; AtN=function(z){Kj.call(this,z);this.K=this.W=this.isContentForward=this.G=!1;PXx(this);this.Z(this.T,"changeProductsInVideoVisibility",this.kZI);this.Z(this.T,"videodatachange",this.onVideoDataChange)}; OAW=function(z){z.V&&z.YA.element.removeChild(z.V.element);z.V=void 0}; RZY=function(z,p){return p.map(function(c){var B,H;if((c=(B=g.I(c,wsi))==null?void 0:(H=B.thumbnail)==null?void 0:H.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.Q({j:"img", B:"ytp-suggested-action-product-thumbnail",C:{alt:"",src:c}});g.l(z,c);return c})}; SqN=function(z,p){z.isContentForward=p;g.Yf(z.badge.element,"ytp-suggested-action-badge-content-forward",p)}; A8=function(z){var p=z.isContentForward&&!z.F1();g.Yf(z.badge.element,"ytp-suggested-action-badge-preview-collapsed",p&&z.W);g.Yf(z.badge.element,"ytp-suggested-action-badge-preview-expanded",p&&z.K)}; O8=function(z,p,c){return new g.Xq(z*1E3,p*1E3,{priority:9,namespace:c})}; $4v=function(z){z.T.gs("shopping_overlay_visible");z.T.gs("shopping_overlay_preview_collapsed");z.T.gs("shopping_overlay_preview_expanded");z.T.gs("shopping_overlay_expanded")}; PXx=function(z){z.Z(z.T,g.E5("shopping_overlay_visible"),function(){z.mV(!0)}); z.Z(z.T,g.qT("shopping_overlay_visible"),function(){z.mV(!1)}); z.Z(z.T,g.E5("shopping_overlay_expanded"),function(){z.Dt=!0;$R(z)}); z.Z(z.T,g.qT("shopping_overlay_expanded"),function(){z.Dt=!1;$R(z)}); z.Z(z.T,g.E5("shopping_overlay_preview_collapsed"),function(){z.W=!0;A8(z)}); z.Z(z.T,g.qT("shopping_overlay_preview_collapsed"),function(){z.W=!1;A8(z)}); z.Z(z.T,g.E5("shopping_overlay_preview_expanded"),function(){z.K=!0;A8(z)}); z.Z(z.T,g.qT("shopping_overlay_preview_expanded"),function(){z.K=!1;A8(z)})}; aEx=function(z){g.Q.call(this,{j:"div",B:"ytp-shorts-title-channel",J:[{j:"a",B:"ytp-shorts-title-channel-logo",C:{href:"{{channelLink}}",target:z.N().U,"aria-label":"{{channelLogoLabel}}"}},{j:"div",B:"ytp-shorts-title-expanded-heading",J:[{j:"div",B:"ytp-shorts-title-expanded-title",J:[{j:"a",F3:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:z.N().U,tabIndex:"0"}}]}]}]});var p=this;this.api=z;this.W=this.jp("ytp-shorts-title-channel-logo");this.channelName=this.jp("ytp-shorts-title-expanded-title"); this.subscribeButton=null;z.createClientVe(this.W,this,36925);this.Z(this.W,"click",function(c){p.api.logClick(p.W);g.nw(window,Kgf(p));c.preventDefault()}); z.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(c){p.api.logClick(p.channelName);g.nw(window,Kgf(p));c.preventDefault()}); uwN(this);this.Z(z,"videodatachange",this.Bq);this.Z(z,"videoplayerreset",this.Bq);this.Bq()}; uwN=function(z){if(!z.api.N().EW){var p=z.api.getVideoData(),c=new g.GZ("Subscribe",null,"Subscribed",null,!0,!1,p.uD,p.subscribed,"channel_avatar",null,z.api,!0);z.api.createServerVe(c.element,z);var B;z.api.setTrackingParams(c.element,((B=p.subscribeButtonRenderer)==null?void 0:B.trackingParams)||null);z.Z(c.element,"click",function(){z.api.logClick(c.element)}); z.subscribeButton=c;g.l(z,z.subscribeButton);z.subscribeButton.Ia(z.element)}}; Kgf=function(z){var p=z.api.N(),c=z.api.getVideoData();c=g.D3(p)+c.FQ;if(!g.yB(p))return c;p={};g.YG(z.api,"addEmbedsConversionTrackingParams",[p]);return g.g6(c,p)}; ws=function(z){g.kG.call(this,z,{j:"button",LH:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{j:"div",B:"ytp-skip-intro-button-text",F3:"Skip Intro"}]},100);var p=this;this.D=!1;this.W=new g.B4(function(){p.hide()},5E3); this.y4=this.C2=NaN;g.l(this,this.W);this.G=function(){p.show()}; this.V=function(){p.hide()}; this.X=function(){var c=p.T.getCurrentTime();c>p.C2/1E3&&c0?{j:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},J:[{j:"path",LH:["ytp-circle-arrow","ytp-svg-fill"],C:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {j:"text",LH:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"7.05",y:"15.05"}}]}:{j:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},J:[{j:"path",LH:["ytp-circle-arrow","ytp-svg-fill"],C:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {j:"text",LH:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"6.5",y:"15"}}]}]});var c=this;this.T=z;this.W=p;this.K=new g.B4(function(){c.D?(c.D=!1,c.K.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); this.D=!1;(p=p>0)?this.T.createClientVe(this.element,this,36843):this.T.createClientVe(this.element,this,36844);var B=g.RD(p?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.W).toString()});this.update({title:B,"data-title-no-tooltip":B,"aria-keyshortcuts":p?"\u2192":"\u2190"});this.X=this.element.querySelector(".ytp-jump-button-text");this.X.textContent=Math.abs(this.W).toString();this.listen("click",this.onClick,this);LP(z,this.element, this)}; eZ_=function(z,p){p?z.element.classList.add("ytp-jump-button-enabled"):z.element.classList.remove("ytp-jump-button-enabled");z.T.logVisibility(z.element,p);z.T.Tk()}; aK=function(z,p){SW.call(this,z,p,"timedMarkerCueRange","View key moments");this.Z(z,g.qT("timedMarkerCueRange"),this.xr);this.Z(z,"updatemarkervisibility",this.updateVideoData)}; lEY=function(z){var p,c=(p=z.T.getVideoData())==null?void 0:p.WM;if(c)for(z=z.X.rA,c=g.m(c),p=c.next();!p.done;p=c.next())if(p=z[p.value]){var B=void 0,H=void 0,T=void 0;if(((B=p.onTap)==null?void 0:(H=B.innertubeCommand)==null?void 0:(T=H.changeEngagementPanelVisibilityAction)==null?void 0:T.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return p}}; Z2=function(z){var p=z.Y("web_enable_pip_on_miniplayer");g.Q.call(this,{j:"button",LH:["ytp-miniplayer-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},J:[p?{j:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},J:[{j:"g",C:{transform:"translate(96, -96) scale(0.8)"},J:[{j:"path",Fg:!0,C:{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"}}]}]}: LFv()]});this.T=z;this.visible=!1;this.listen("click",this.onClick);this.Z(z,"fullscreentoggled",this.Bq);this.updateValue("title",g.d$(z,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});LP(z,this.element,this);z.createClientVe(this.element,this,62946);this.Bq()}; LW=function(z,p,c){c=c===void 0?!1:c;g.Q.call(this,{j:"button",LH:["ytp-mute-button","ytp-button"],C:z.N().rA?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},F3:"{{icon}}"});this.T=z;this.Ra=c;this.W=null;this.X=this.U=this.V=this.Dt=NaN;this.tD=this.G=null;this.D=[];this.K=[];this.visible=!1;this.S=null;z.Y("delhi_modern_web_player")&&this.update({"data-priority":3}); c=this.T.N();this.updateValue("icon",v_());this.tooltip=p.t8();this.W=new g.Yj({j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"defs",J:[{j:"clipPath",C:{id:"ytp-svg-volume-animation-mask"},J:[{j:"path",C:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{j:"path",C:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{j:"path",B:"ytp-svg-volume-animation-mover",C:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{j:"clipPath",C:{id:"ytp-svg-volume-animation-slash-mask"}, J:[{j:"path",B:"ytp-svg-volume-animation-mover",C:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{j:"path",Fg:!0,LH:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{"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"}},{j:"path",Fg:!0,LH:["ytp-svg-fill","ytp-svg-volume-animation-hider"],C:{"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"}}]});g.l(this,this.W);this.G=this.W.jp("ytp-svg-volume-animation-speaker");this.tD=this.G.getAttribute("d");this.D=g.Gk("ytp-svg-volume-animation-mover",this.W.element);this.K=g.Gk("ytp-svg-volume-animation-hider",this.W.element);this.T$=new pn;g.l(this,this.T$);this.MZ=new pn;g.l(this,this.MZ);this.listen("click",this.t5Z);this.Z(z,"appresize",this.p$);this.Z(z,"onVolumeChange",this.onVolumeChange);var B=null;c.rA?this.addOnDisposeCallback(g.Z7(p.t8(), this.element)):(p="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),B=new g.kG(z,{j:"span",LH:["ytp-popup","ytp-generic-popup"],C:{tabindex:"0"},J:[p[0],{j:"a",C:{href:"https://support.google.com/youtube/?p=noaudio",target:c.U},F3:p[2]},p[4]]},100,!0),g.l(this,B),B.hide(),B.subscribe("show",function(H){z.AT(B,H)}),g.F7(z,B.element,4)); this.message=B;z.createClientVe(this.element,this,28662);this.p$(z.Hq().getPlayerSize());this.setVolume(z.getVolume(),z.isMuted())}; jqD=function(z,p){z.Dt=p;var c=z.tD;p&&(c+=bKD(viu,IEN,p));z.G.setAttribute("d",c)}; FgY=function(z,p){z.U=p;for(var c=20*p,B=0;B=3&&z.T.getPresentingPlayerType()!==2}; U4f=function(z){var p=eq(z.T.mU());return p?z.W?p.kG():p.Zp():!1}; ni_=function(z){var p={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=z.playlist!=null&&z.playlist.kG();c=g.lg(z.T)&&(!z.W||c);var B=z.W&&g.ov(z.T),H=U4f(z),T=z.W&&z.T.getPresentingPlayerType()===5,b=g.d$(z.T,"Next","SHIFT+n"),D=g.d$(z.T,"Previous","SHIFT+p");if(T)p.title="Start video";else if(z.D)p.title="Replay";else if(c){var t=null;z.playlist&&(t=g.Es(z.playlist,z.W?odD(z.playlist):ndN(z.playlist)));if(t){if(t.videoId){var X=z.playlist.listId; p.url=z.T.N().getVideoUrl(t.videoId,X?X.toString():void 0)}p.text=t.title;p.duration=t.lengthText?t.lengthText:t.lengthSeconds?g.dn(t.lengthSeconds):null;p.preview=t.o3("mqdefault.jpg")}z.W?(p.title=b,p["data-title-no-tooltip"]="Next",p["aria-keyshortcuts"]="SHIFT+n"):(p.title=D,p["data-title-no-tooltip"]="Previous",p["aria-keyshortcuts"]="SHIFT+p")}else if(B){if(D=(t=z.videoData)==null?void 0:g.Tz(t))p.url=D.ZZ(),p.text=D.title,p.duration=D.lengthText?D.lengthText:D.lengthSeconds?g.dn(D.lengthSeconds): null,p.preview=D.o3("mqdefault.jpg");p.title=b;p["data-title-no-tooltip"]="Next";p["aria-keyshortcuts"]="SHIFT+n"}p.disabled=!B&&!c&&!H&&!T;z.update(p);z.G=!!p.url;B||c||z.D||H||T?z.K||(z.K=g.Z7(z.tooltip,z.element),z.V=z.listen("click",z.onClick,z)):z.K&&(z.K(),z.K=null,z.vy(z.V),z.V=null);z.tooltip.Tk();g.Yf(z.element,"ytp-playlist-ui",z.W&&c)}; kTY=function(z,p){g.Q.call(this,{j:"div",B:"ytp-fine-scrubbing",J:[{j:"div",B:"ytp-fine-scrubbing-draggable",J:[{j:"div",B:"ytp-fine-scrubbing-thumbnails",C:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{j:"div",C:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{j:"div",B:"ytp-fine-scrubbing-seek-time",C:{"aria-hidden":"true"}, F3:"{{seekTime}}"},{j:"div",B:"ytp-fine-scrubbing-play",J:[yj()],C:{title:"Play from this position",role:"button"}},{j:"div",B:"ytp-fine-scrubbing-dismiss",J:[g.ab()],C:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=z;this.V=this.jp("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.jp("ytp-fine-scrubbing-dismiss");this.tD=this.jp("ytp-fine-scrubbing-draggable");this.playButton=this.jp("ytp-fine-scrubbing-play");this.thumbnails=[];this.K=[];this.fH=this.W=0;this.YA=void 0; this.MZ=NaN;this.rA=this.U=this.D=this.S=0;this.X=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.i8=0;this.isEnabled=this.Ra=!1;sqQ(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Z7(p,this.dismissButton));this.addOnDisposeCallback(g.Z7(p,this.playButton));this.T$=new g.oH(this.tD,!0);this.T$.subscribe("dragstart",this.BF,this);this.T$.subscribe("dragmove",this.G0,this);this.T$.subscribe("dragend",this.Er,this);this.Z(z,"SEEK_COMPLETE",this.cD);z.Y("web_fix_fine_scrubbing_false_play")&& this.Z(z,"rootnodemousedown",function(B){c.Dt=B}); this.V.addEventListener("keydown",function(){}); g.l(this,this.T$);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.V,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; sqQ=function(z,p){var c=g.dn(p),B=g.RD("Seek to $PROGRESS",{PROGRESS:g.dn(p,!0)});z.update({ariamin:0,ariamax:Math.floor(z.api.getDuration()),arianow:Math.floor(p),arianowtext:B,seekTime:c})}; gi_=function(z){z.MZ=NaN;z.U=0;z.S=z.D}; fES=function(z){var p=z.api.LD();if(p){var c=90*z.scale,B=FD(p,160*z.scale);if(p=p.levels[B]){z.G=p.width;if(!z.X.length){B=[];for(var H=od(p,p.s9()),T=p.columns*p.rows,b=p.frameCount,D=0;D<=H;D++)for(var t=bz.X.length;)B= void 0,(B=z.thumbnails.pop())==null||B.dispose();for(;z.thumbnails.lengthc.length;)B=void 0,(B=z.K.pop())==null||B.dispose(); for(;z.K.length-c?-p/c*z.interval*.5:-(p+c/2)/c*z.interval}; zB_=function(z){return-((z.V.offsetWidth||(z.frameCount-1)*z.G*z.scale)-z.W/2)}; GTS=function(){g.Q.call(this,{j:"div",B:"ytp-fine-scrubbing-thumbnail"})}; N0S=function(){g.Q.call(this,{j:"div",B:"ytp-fine-scrubbing-chapter-title",J:[{j:"div",B:"ytp-fine-scrubbing-chapter-title-content",F3:"{{chapterTitle}}"}]})}; ckW=function(z){g.Q.call(this,{j:"div",B:"ytp-heat-map-chapter",J:[{j:"svg",B:"ytp-heat-map-svg",C:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},J:[{j:"defs",J:[{j:"clipPath",C:{id:"{{id}}"},J:[{j:"path",B:"ytp-heat-map-path",C:{d:"",fill:"white"}}]},{j:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},J:[{j:"stop",C:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{j:"stop",C:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{j:"rect",B:"ytp-heat-map-graph",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",B:"ytp-heat-map-hover",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",B:"ytp-heat-map-play",C:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{j:"path",B:"ytp-modern-heat-map",C:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=z;this.S=this.jp("ytp-heat-map-svg");this.V=this.jp("ytp-heat-map-path");this.X=this.jp("ytp-heat-map-graph");this.G=this.jp("ytp-heat-map-play");this.W=this.jp("ytp-heat-map-hover");this.D=this.jp("ytp-modern-heat-map");this.NP=!1;this.K=60;z=""+g.GY(this);this.update({id:z});z="url(#"+z+")";this.X.setAttribute("clip-path",z);this.G.setAttribute("clip-path",z);this.W.setAttribute("clip-path", z)}; Biu=function(z,p){p>0&&(z.K=p,z.S.style.height=z.K+"px")}; CW=function(){g.Q.call(this,{j:"div",B:"ytp-chapter-hover-container",J:[{j:"div",B:"ytp-progress-bar-padding"},{j:"div",B:"ytp-progress-list",J:[{j:"div",LH:["ytp-play-progress","ytp-swatch-background-color"]},{j:"div",B:"ytp-progress-linear-live-buffer"},{j:"div",B:"ytp-load-progress"},{j:"div",B:"ytp-hover-progress"},{j:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.jp("ytp-progress-list");this.V=this.jp("ytp-progress-linear-live-buffer"); this.X=this.jp("ytp-ad-progress-list");this.G=this.jp("ytp-load-progress");this.S=this.jp("ytp-play-progress");this.D=this.jp("ytp-hover-progress");this.W=this.jp("ytp-chapter-hover-container")}; eW=function(z,p){g.mm(z.W,"width",p)}; HrW=function(z,p){g.mm(z.W,"margin-right",p+"px")}; irQ=function(){this.K=this.position=this.D=this.W=this.X=this.width=NaN}; TiB=function(){g.Q.call(this,{j:"div",B:"ytp-timed-marker"});this.W=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.vI=function(z,p){g.P_.call(this,{j:"div",B:"ytp-progress-bar-container",C:{"aria-disabled":"true"},J:[{j:"div",LH:["ytp-heat-map-container"],J:[{j:"div",B:"ytp-heat-map-edu"}]},{j:"div",LH:["ytp-progress-bar"],C:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{j:"div",B:"ytp-chapters-container"},{j:"div",B:"ytp-timed-markers-container"},{j:"div",B:"ytp-clip-start-exclude"}, {j:"div",B:"ytp-clip-end-exclude"},{j:"div",B:"ytp-scrubber-container",J:[{j:"div",LH:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{j:"div",B:"ytp-scrubber-pull-indicator"},{j:"img",LH:["ytp-decorated-scrubber-button"]}]}]}]},{j:"div",LH:["ytp-fine-scrubbing-container"],J:[{j:"div",B:"ytp-fine-scrubbing-edu"}]},{j:"div",B:"ytp-bound-time-left",F3:"{{boundTimeLeft}}"},{j:"div",B:"ytp-bound-time-right",F3:"{{boundTimeRight}}"},{j:"div",B:"ytp-clip-start",C:{title:"{{clipstarttitle}}"},F3:"{{clipstarticon}}"}, {j:"div",B:"ytp-clip-end",C:{title:"{{clipendtitle}}"},F3:"{{clipendicon}}"}]});this.api=z;this.wJ=!1;this.cO=this.Ye=this.OH=this.V=this.UF=0;this.xl=null;this.Q8=!1;this.fH={};this.gt={};this.clipEnd=Infinity;this.FQ=this.jp("ytp-clip-end");this.EW=new g.oH(this.FQ,!0);this.Ca=this.jp("ytp-clip-end-exclude");this.Wy=this.jp("ytp-clip-start-exclude");this.clipStart=0;this.Zw=this.jp("ytp-clip-start");this.LB=new g.oH(this.Zw,!0);this.U=this.sH=0;this.progressBar=this.jp("ytp-progress-bar");this.WM= {};this.rA={};this.NZ=this.jp("ytp-chapters-container");this.sF=this.jp("ytp-timed-markers-container");this.W=[];this.G=[];this.gJ={};this.A8=null;this.tD=-1;this.UH=this.T$=0;this.JH=this.S=null;this.vO=this.jp("ytp-scrubber-button");this.ow=this.jp("ytp-decorated-scrubber-button");this.Rk=this.jp("ytp-scrubber-container");this.CH=new g.ho;this.y4=new irQ;this.D=new FA(0,0);this.IR=null;this.MZ=this.dJ=!1;this.Hf=null;this.Dt=this.jp("ytp-heat-map-container");this.Lv=this.jp("ytp-heat-map-edu"); this.X=[];this.heatMarkersDecorations=[];this.Zt=this.jp("ytp-fine-scrubbing-container");this.wU=this.jp("ytp-fine-scrubbing-edu");this.K=void 0;this.Ra=this.t1=this.YA=!1;this.tooltip=p.t8();this.addOnDisposeCallback(g.Z7(this.tooltip,this.FQ));g.l(this,this.EW);this.EW.subscribe("hoverstart",this.gN,this);this.EW.subscribe("hoverend",this.O8,this);this.Z(this.FQ,"click",this.Y1);this.addOnDisposeCallback(g.Z7(this.tooltip,this.Zw));g.l(this,this.LB);this.LB.subscribe("hoverstart",this.gN,this); this.LB.subscribe("hoverend",this.O8,this);this.Z(this.Zw,"click",this.Y1);brN(this);this.Z(z,"resize",this.UW);this.Z(z,"presentingplayerstatechange",this.nA8);this.Z(z,"videodatachange",this.le);this.Z(z,"videoplayerreset",this.oAH);this.Z(z,"cuerangesadded",this.OD8);this.Z(z,"cuerangesremoved",this.HiH);this.Z(z,"onLoopRangeChange",this.Y_);this.Z(z,"innertubeCommand",this.onClickCommand);this.Z(z,g.E5("timedMarkerCueRange"),this.bNp);this.Z(z,"updatemarkervisibility",this.AB);this.Z(z,"serverstitchedvideochange", this.gFt);this.updateVideoData(z.getVideoData(),!0);this.Y_(z.getLoopRange());lk(this)&&!this.K&&(this.K=new kTY(this.api,this.tooltip),z=g.$m(this.element).x||0,this.K.UW(z,this.V),this.K.Ia(this.Zt),g.l(this,this.K),this.Z(this.K.dismissButton,"click",this.hS),this.Z(this.K.playButton,"click",this.VY),this.Z(this.K.element,"dblclick",this.VY));this.api.createClientVe(this.Dt,this,139609,!0);this.api.createClientVe(this.Lv,this,140127,!0);this.api.createClientVe(this.wU,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; brN=function(z){if(z.W.length===0){var p=new CW;z.W.push(p);g.l(z,p);p.Ia(z.NZ,0)}for(;z.W.length>1;)z.W.pop().dispose();eW(z.W[0],"100%");z.W[0].startTime=0;z.W[0].title=""}; V$W=function(z){var p=p===void 0?NaN:p;var c=new ckW(z.api);z.X.push(c);g.l(z,c);c.Ia(z.Dt);p>=0&&(c.element.style.width=p+"px")}; D1_=function(z){for(;z.G.length;)z.G.pop().dispose()}; XBx=function(z){var p,c,B,H,T;return(T=g.I((H=g.I((p=z.getWatchNextResponse())==null?void 0:(c=p.playerOverlays)==null?void 0:(B=c.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,L8))==null?void 0:H.playerBar,t$Y))==null?void 0:T.chapters}; x1Q=function(z){for(var p=z.W,c=[],B=0;B=b&&P<=x&&T.push(q)}t>0&&(z.Dt.style.height=t+"px");b=z.X[B];x=T;q=H;M=t;P=B===0;P=P===void 0?!1:P;Biu(b,M);E=x;J=b.K;P=P===void 0?!1:P;var O=1E3/E.length,R=[];R.push({x:0,y:100});for(var K=0;K0&&(c=T[T.length-1])}g.IK(z);D=[];p=g.m(p.heatMarkersDecorations||[]);for(H=p.next();!H.done;H=p.next())if(H=g.I(H.value,hBS))t=H.label,B=c=X=void 0,D.push({visibleTimeRangeStartMillis:(X=H.visibleTimeRangeStartMillis)!=null?X:-1,visibleTimeRangeEndMillis:(c=H.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(B=H.decorationTimeMillis)!=null?B:NaN,label:t?g.wJ(t):""});z.heatMarkersDecorations=D}}; JkE=function(z,p){z.G.push(p);g.l(z,p);p.Ia(z.sF,z.sF.children.length)}; M$D=function(z,p){p=g.m(p);for(var c=p.next();!c.done;c=p.next()){c=c.value;var B=jW(z,c.timeRangeStartMillis/(z.D.W*1E3),Fn(z));g.mm(c.element,"transform","translateX("+B+"px) scaleX(0.6)")}}; Eei=function(z,p){var c=0,B=!1;p=g.m(p);for(var H=p.next();!H.done;H=p.next()){H=H.value;if(g.I(H,AkN)){H=g.I(H,AkN);var T={startTime:NaN,title:null,onActiveCommand:void 0},b=H.title;T.title=b?g.wJ(b):"";b=H.timeRangeStartMillis;b!=null&&(T.startTime=b);T.onActiveCommand=H.onActiveCommand;H=T;c===0&&H.startTime!==0&&(z.W[c].startTime=0,z.W[c].title="",z.W[c].onActiveCommand=H.onActiveCommand,c++,B=!0);z.W.length<=c&&(T=new CW,z.W.push(T),g.l(z,T),T.Ia(z.NZ,z.NZ.children.length));z.W[c].startTime= H.startTime;z.W[c].title=H.title?H.title:"";z.W[c].onActiveCommand=H.onActiveCommand;z.W[c].index=B?c-1:c}c++}for(;c=0;B--)if(z.W[B].width>0){HrW(z.W[B],0);var H=Math.floor(z.W[B].width);z.W[B].width=H;eW(z.W[B],H+"px");break}z.W[c].width=0;eW(z.W[c],"0")}else c===z.W.length-1?(B=Math.floor(z.W[c].width+p),z.W[c].width=B,eW(z.W[c],B+"px")):(p=z.W[c].width+p,B=Math.round(p),p-=B,z.W[c].width=B,eW(z.W[c],B+"px"));c=0;if(z.X.length===z.W.length)for(p=0;p< z.X.length;p++)B=z.W[p].width,z.X[p].element.style.width=B+"px",z.X[p].element.style.left=c+"px",c+=B+nW(z);z.api.Y("delhi_modern_web_player")&&(z.W.length===1?z.W[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(z.W[0].K.classList.remove("ytp-progress-bar-end"),z.W[0].K.classList.add("ytp-progress-bar-start"),z.W[z.W.length-1].K.classList.add("ytp-progress-bar-end")))}; Orf=function(z,p){var c=0,B=!1,H=z.W.length,T=z.D.W*1E3;T===0&&(T=z.api.getProgressState().seekableEnd*1E3);if(T>0&&z.V>0){for(var b=z.V-nW(z)*z.T$,D=z.UH===0?3:b*z.UH,t=g.m(z.W),X=t.next();!X.done;X=t.next())X.value.width=0;for(;c1);X=(T===0?0:t/T*b)+z.W[c].width;if(X>D)z.W[c].width=X;else{z.W[c].width=0;var x=z,E=c,q=x.W[E-1];q!==void 0&&q.width>0? q.width+=X:Ez.UH&&(z.UH=t/T),B=!0)}c++}}return B}; oK=function(z){if(z.V){var p=z.api.getProgressState(),c=z.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.Oc)||isFinite(p.current)){var B;if(((B=z.api.getVideoData())==null?0:bg(B))&&p.airingStart&&p.airingEnd)var H=Q1(z,p.airingStart,p.airingEnd);else if(z.api.getPresentingPlayerType()===2&&z.api.N().Y("show_preskip_progress_bar_for_skippable_ads")){var T,b,D;H=(c=(H=z.api.getVideoData())==null?void 0:(T=H.getPlayerResponse())==null?void 0:(b=T.playerConfig)==null?void 0:(D=b.webPlayerConfig)== null?void 0:D.skippableAdProgressBarDuration)?Q1(z,p.seekableStart,c/1E3):Q1(z,p.seekableStart,p.seekableEnd)}else H=Q1(z,p.seekableStart,p.seekableEnd);T=oG(H,p.loaded,0);p=oG(H,p.current,0);b=z.D.K!==H.K||z.D.W!==H.W;z.D=H;rs(z,p,T);b&&wBf(z);RBY(z)}}}; Q1=function(z,p,c){return SzN(z)?new FA(Math.max(p,z.IR.startTimeMs/1E3),Math.min(c,z.IR.endTimeMs/1E3)):new FA(p,c)}; $1E=function(z,p){var c;if(((c=z.IR)==null?void 0:c.type)==="repeatChapter"||(p==null?void 0:p.type)==="repeatChapter")p&&(p=z.W[D2(z.W,p.startTimeMs)],g.Yf(p.W,"ytp-repeating-chapter",!1)),z.IR&&(p=z.W[D2(z.W,z.IR.startTimeMs)],g.Yf(p.W,"ytp-repeating-chapter",!0)),z.W.forEach(function(B){g.Yf(B.W,"ytp-exp-chapter-hover-container",!z.IR)})}; s8=function(z,p){var c=z.D;c=c.K+p.K*c.getLength();if(z.W.length>1){c=U8(z,p.D,!0);for(var B=0,H=0;H0&&(B+=z.W[H].width,B+=nW(z));c=(z.W[c].startTime+(p.D-B)/z.W[c].width*((c===z.W.length-1?z.D.W*1E3:z.W[c+1].startTime)-z.W[c].startTime))/1E3||0}return c}; kh=function(z,p,c,B,H){p=p<0?0:Math.floor(Math.min(p,z.api.getDuration())*1E3);c=c<0?0:Math.floor(Math.min(c,z.api.getDuration())*1E3);z=z.progressBar.visualElement;B={seekData:{startMediaTimeMs:p,endMediaTimeMs:c,seekSource:B}};(p=g.Wu())&&g.iO(Tr)(void 0,p,z,H,B,void 0)}; Kwx=function(z,p,c){if(c>=z.W.length)return!1;var B=z.V-nW(z)*z.T$;return Math.abs(p-z.W[c].startTime/1E3)/z.D.W*B<4}; wBf=function(z){z.vO.style.removeProperty("height");for(var p=g.m(Object.keys(z.fH)),c=p.next();!c.done;c=p.next())uS_(z,c.value);gs(z);rs(z,z.U,z.sH)}; Fn=function(z){var p=z.CH.x;p=g.MQ(p,0,z.V);z.y4.update(p,z.V);return z.y4}; N$=function(z){return(z.MZ?135:90)-G7(z)}; G7=function(z){var p=48,c=z.api.N();z.MZ?p=54:g.yB(c)&&!c.K?p=40:z.api.Y("delhi_modern_web_player")&&(p=68);return p}; rs=function(z,p,c){z.U=p;z.sH=c;var B=Fn(z),H=z.D.W;var T=z.D;T=T.K+z.U*T.getLength();var b=g.RD("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.dn(T,!0),DURATION:g.dn(H,!0)}),D=D2(z.W,T*1E3);D=z.W[D].title;z.update({ariamin:Math.floor(z.D.K),ariamax:Math.floor(H),arianow:Math.floor(T),arianowtext:D?D+" "+b:b});H=z.clipStart;T=z.clipEnd;z.IR&&z.api.getPresentingPlayerType()!==2&&(H=z.IR.startTimeMs/1E3,T=z.IR.endTimeMs/1E3);H=oG(z.D,H,0);D=oG(z.D,T,1);b=z.api.getVideoData();T=g.MQ(p,H,D);c=(b==null? 0:g.ig(b))?1:g.MQ(c,H,D);p=jW(z,p,B);g.mm(z.Rk,"transform","translateX("+p+"px)");z.api.Y("delhi_modern_web_player")&&af_(z,p);fW(z,B,H,T,"PLAY_PROGRESS");(b==null?0:bg(b))?(p=z.api.getProgressState().seekableEnd)&&fW(z,B,T,oG(z.D,p),"LIVE_BUFFER"):fW(z,B,H,c,"LOAD_PROGRESS");if(z.api.Y("web_player_heat_map_played_bar")){var t;(t=z.X[0])!=null&&t.G.setAttribute("width",(T*100).toFixed(2)+"%")}}; af_=function(z,p){z.api.getPresentingPlayerType()!==1?z.NZ.style.removeProperty("clip-path"):(p||(p=jW(z,z.U,Fn(z))),z.NZ.style.clipPath='path("'+(z.Q8?ZrS(z,8,p,z.MZ?50:36,0,6):ZrS(z,4,p,z.MZ?34:24,2,3))+'")')}; ZrS=function(z,p,c,B,H,T){var b=c-B/2;c+=B/2;p+=H;return"M 0 "+H+" L 0 "+(p+" L ")+(b+" "+p+" C ")+(b+T+" "+p+" "+(b+T)+" "+H+" "+b+" "+H+" L 0 ")+(H+" M ")+(c+" "+H+" L ")+(z.V+" "+H+" L ")+(z.V+" "+p+" L ")+(c+" "+p+" C ")+(c-T+" "+p+" "+(c-T)+" "+H+" "+c+" "+H)}; fW=function(z,p,c,B,H){var T=z.W.length,b=p.W-z.T$*nW(z),D=c*b;c=U8(z,D);var t=B*b;b=U8(z,t);H==="HOVER_PROGRESS"&&(b=U8(z,p.W*B,!0),t=p.W*B-LwD(z,p.W*B)*nW(z));B=Math.max(D-d1B(z,c),0);for(D=c;D=z.W.length)return z.V;for(var c=0,B=0;B0||z.Ca.clientWidth>0?(T=p.clientWidth/c,z=-1*z.Wy.clientWidth/c):(T/=c,z=-1*z.W[H].element.offsetLeft/c),g.mm(p,"background-size",T+"px"),g.mm(p,"background-position-x",z+"px"))}; zK=function(z,p,c,B,H){H||z.api.N().K?p.style.width=c+"px":g.mm(p,"transform","scalex("+(B?c/B:0)+")")}; U8=function(z,p,c){var B=0;(c===void 0?0:c)&&(p-=LwD(z,p)*nW(z));c=g.m(z.W);for(var H=c.next();!H.done;H=c.next()){H=H.value;if(p>H.width)p-=H.width;else break;B++}return B===z.W.length?B-1:B}; jW=function(z,p,c){var B=p*z.D.W*1E3;for(var H=-1,T=g.m(z.W),b=T.next();!b.done;b=T.next())b=b.value,B>b.startTime&&b.width>0&&H++;B=H<0?0:H;H=c.W-nW(z)*z.T$;return p*H+nW(z)*B+c.X}; LwD=function(z,p){for(var c=z.W.length,B=0,H=g.m(z.W),T=H.next();!T.done;T=H.next())if(T=T.value,T.width!==0)if(p>T.width)p-=T.width,p-=nW(z),B++;else break;return B===c?c-1:B}; g.C1D=function(z,p,c,B){var H=z.V!==c,T=z.MZ!==B;z.UF=p;z.V=c;z.MZ=B;lk(z)&&(p=z.K)!=null&&(p.scale=B?1.5:1);wBf(z);z.W.length===1&&(z.W[0].width=c||0);H&&g.IK(z);z.K&&T&&lk(z)&&(z.K.isEnabled&&(c=z.MZ?135:90,B=c-G7(z),z.Zt.style.height=c+"px",g.mm(z.Dt,"transform","translateY("+-B+"px)"),g.mm(z.progressBar,"transform","translateY("+-B+"px)")),fES(z.K))}; gs=function(z){var p=!!z.IR&&z.api.getPresentingPlayerType()!==2,c=z.clipStart,B=z.clipEnd,H=!0,T=!0;p&&z.IR?(c=z.IR.startTimeMs/1E3,B=z.IR.endTimeMs/1E3):(H=c>z.D.K,T=z.D.W>0&&Bz.U);g.Yf(z.vO,"ytp-scrubber-button-hover",c===B&&z.W.length>1);if(z.api.Y("web_player_heat_map_played_bar")){var T;(T=z.X[0])!=null&&T.W.setAttribute("width",(p.K*100).toFixed(2)+"%")}}}; uS_=function(z,p){var c=z.fH[p];p=z.gt[p];var B=Fn(z),H=oG(z.D,c.start/1E3,0),T=qLx(c,z.MZ)/B.width;var b=oG(z.D,c.end/1E3,1);T!==Number.POSITIVE_INFINITY&&(H=g.MQ(H,0,b-T));b=Math.min(b,H+T);c.color&&(p.style.background=c.color);c=H;p.style.left=Math.max(c*B.W+B.X,0)+"px";zK(z,p,g.MQ((b-c)*B.W+B.X,0,B.width),B.width,!0)}; eB_=function(z,p){var c=p.getId();z.fH[c]===p&&(g.t3(z.gt[c]),delete z.fH[c],delete z.gt[c])}; lk=function(z){var p=g.cX(z.api.N())&&(z.api.Y("web_shorts_pip")||z.api.Y("web_watch_pip")),c;return!((c=z.api.getVideoData())==null?0:c.isLivePlayback)&&!z.api.isMinimized()&&!z.api.isInline()&&(!z.api.Pu()||!p)}; pK=function(z){z.K&&(z.K.disable(),z.OH=0,z.Dt.style.removeProperty("transform"),z.progressBar.style.removeProperty("transform"),z.Zt.style.removeProperty("height"),z.element.parentElement&&z.element.parentElement.style.removeProperty("height"))}; lfB=function(z,p){var c=p/N$(z)*G7(z);g.mm(z.progressBar,"transform","translateY("+-p+"px)");g.mm(z.Dt,"transform","translateY("+-p+"px)");g.mm(z.Zt,"transform","translateY("+c+"px)");z.Zt.style.height=p+c+"px";z.element.parentElement&&(z.element.parentElement.style.height=G7(z)-c+"px")}; vev=function(z,p){p?z.S||(z.element.removeAttribute("aria-disabled"),z.S=new g.oH(z.progressBar,!0),z.S.subscribe("hovermove",z.c80,z),z.S.subscribe("hoverend",z.WMq,z),z.S.subscribe("dragstart",z.EbA,z),z.S.subscribe("dragmove",z.aSi,z),z.S.subscribe("dragend",z.KMH,z),z.api&&z.api.Y("delhi_modern_web_player")&&(z.JH=new g.oH(z.progressBar,!0),z.JH.subscribe("hoverstart",function(){z.Q8=!0;af_(z)},z),z.JH.subscribe("hoverend",function(){z.Q8=!1; af_(z)},z)),z.Hf=z.listen("keydown",z.Ko)):z.S&&(z.element.setAttribute("aria-disabled","true"),z.vy(z.Hf),z.S.cancel(),z.S.dispose(),z.S=null)}; nW=function(z){return z.api.Y("delhi_modern_web_player")?4:z.MZ?3:2}; SzN=function(z){var p;return!((p=z.IR)==null||!p.postId)&&z.api.getPresentingPlayerType()!==2}; ck=function(z,p){g.Q.call(this,{j:"button",LH:["ytp-remote-button","ytp-button"],C:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},F3:"{{icon}}"});this.T=z;this.QS=p;this.W=null;this.Z(z,"onMdxReceiversChange",this.Bq);this.Z(z,"presentingplayerstatechange",this.Bq);this.Z(z,"appresize",this.Bq);z.createClientVe(this.element,this,139118);this.Bq();this.listen("click",this.K,this);LP(z,this.element,this)}; Bk=function(z,p){g.Q.call(this,{j:"button",LH:["ytp-button","ytp-settings-button"],C:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":MK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},J:[g.e_()]});this.T=z;this.QS=p;this.K=!0;this.listen("click",this.D);this.Z(z,"onPlaybackQualityChange",this.updateBadge);this.Z(z,"videodatachange",this.updateBadge);this.Z(z,"webglsettingschanged",this.updateBadge);this.Z(z,"appresize",this.W);LP(z,this.element,this);this.T.createClientVe(this.element, this,28663);this.updateBadge();this.W(z.Hq().getPlayerSize())}; IfQ=function(z,p){z.K=!!p;z.W(z.T.Hq().getPlayerSize())}; Hk=function(z,p){Xf.call(this,"Annotations",g.YM.It);this.T=z;this.QS=p;this.W=!1;z.Y("web_settings_menu_icons")&&this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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.Z(z,"videodatachange",this.Bq);this.Z(z,"onApiChange",this.Bq);this.subscribe("select",this.onSelect,this);this.Bq()}; i9=function(z,p){g.IH.call(this,"Audio track",g.YM.AUDIO,z,p);this.T=z;this.tracks={};g.Eo(this.element,"ytp-audio-menu-item");this.countLabel=new g.Q({j:"div",J:[{j:"span",F3:"Audio track"},{j:"span",B:"ytp-menuitem-label-count",F3:"{{content}}"}]});z.Y("web_settings_menu_icons")&&this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.l(this,this.countLabel);g.fP(this,this.countLabel);this.Z(z,"videodatachange",this.Bq);this.Z(z,"onPlaybackAudioChange",this.Bq);this.Bq()}; TK=function(z,p){Xf.call(this,"Autoplay",g.YM.qX);this.T=z;this.QS=p;this.W=!1;this.D=[];this.Z(z,"presentingplayerstatechange",this.K);this.subscribe("select",this.onSelect,this);z.createClientVe(this.element,this,113682);this.K()}; jiQ=function(z,p){g.zn.call(this,g.pe({"aria-haspopup":"false"}),0,"More options");this.T=z;this.QS=p;this.Z(this.element,"click",this.onClick);this.QS.nB(this)}; FwQ=function(z,p){var c;g.cX(z.N())&&(c={j:"div",B:"ytp-panel-footer-content",J:[{j:"span",F3:"Adjust download quality from your "},{j:"a",B:"ytp-panel-footer-content-link",F3:"Settings",C:{href:"/account_downloads"}}]});g.IH.call(this,"Quality",g.YM.YD,z,p,void 0,void 0,c);this.T=z;this.tD={};this.U={};this.X={};this.T$=new Set;this.W=this.V=!1;this.G="unknown";this.MZ="";this.Dt=new g.pU;g.l(this,this.Dt);this.V=this.T.Y("web_player_use_new_api_for_quality_pullback");this.W=this.T.Y("web_player_enable_premium_hbr_playback_cap"); z.Y("web_settings_menu_icons")&&this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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"}}]});g.Eo(this.K.element,"ytp-quality-menu");this.Z(z,"videodatachange",this.jY);this.Z(z,"videoplayerreset",this.jY);this.Z(z,"onPlaybackQualityChange",this.u2);this.jY();z.createClientVe(this.element,this,137721)}; neS=function(z,p,c){var B=z.tD[p],H=g.rB[p];return oe_(z,B?B.qualityLabel:H?H+"p":"Auto",p,c)}; QiB=function(z,p,c,B,H){var T=(p=z.W?z.X[p]:z.U[p])&&p.quality,b=p&&p.qualityLabel;b=b?b:"Auto";B&&(b="("+b);z=oe_(z,b,T||"",H);B&&z.J.push(")");(B=(B=p&&p.paygatedQualityDetails)&&B.paygatedIndicatorText)&&c&&z.J.push({j:"div",B:"ytp-premium-label",F3:B});return z}; oe_=function(z,p,c,B){p={j:"span",LH:B,J:[p]};var H;B="ytp-swatch-color";if(z.V||z.W)B="ytp-swatch-color-white";c==="highres"?H="8K":c==="hd2880"?H="5K":c==="hd2160"?H="4K":c.indexOf("hd")===0&&c!=="hd720"&&(H="HD");H&&(p.J.push(" "),p.J.push({j:"sup",B:B,F3:H}));return p}; b9=function(z,p,c,B,H,T){T=T===void 0?!1:T;var b={j:"div",LH:["ytp-input-slider-section"],J:[{j:"input",B:"ytp-input-slider",C:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};H&&b.J.unshift(H);T&&b.LH.push("ytp-vertical-slider");g.Q.call(this,b);this.D=z;this.X=p;this.G=c;this.initialValue=B;this.header=H;this.W=this.jp("ytp-input-slider");this.K=B?B:z;this.init();this.Z(this.W,"input",this.S);this.Z(this.W,"keydown", this.V)}; U1v=function(z,p){z.K=p;z.updateValue("slidervalue",z.K);z.W.valueAsNumber=z.K;rkW(z,p)}; rkW=function(z,p){z.W.style.setProperty("--yt-slider-shape-gradient-percent",(p-z.D)/(z.X-z.D)*100+"%")}; VO=function(z){b9.call(this,z.getAvailablePlaybackRates()[0],z.getAvailablePlaybackRates()[z.getAvailablePlaybackRates().length-1],.05,z.getPlaybackRate(),{j:"div",B:"ytp-speedslider-indicator-container",J:[{j:"div",B:"ytp-speedslider-badge"},{j:"p",B:"ytp-speedslider-text"}]});this.T=z;this.MZ=FnD(this.Dt,this);g.Eo(this.W,"ytp-speedslider");this.U=this.jp("ytp-speedslider-text");this.T$=this.jp("ytp-speedslider-badge");siu(this);this.Z(this.W,"change",this.tD)}; siu=function(z){z.U.textContent=z.K+"x";z.T$.classList.toggle("ytp-speedslider-premium-badge",z.K>2&&z.T.Y("enable_web_premium_varispeed"))}; DK=function(z,p,c,B,H,T,b){g.Q.call(this,{j:"div",B:"ytp-slider-section",C:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{j:"div",B:"ytp-slider",J:[{j:"div",B:"ytp-slider-handle"}]}]});this.S=z;this.U=p;this.K=c;this.D=B;this.MZ=H;this.Ra=T;this.range=this.D-this.K;this.YA=this.jp("ytp-slider-section");this.X=this.jp("ytp-slider");this.Dt=this.jp("ytp-slider-handle");this.G=new g.oH(this.X, !0);this.W=b?b:c;g.l(this,this.G);this.G.subscribe("dragmove",this.Md,this);this.Z(this.element,"keydown",this.e2);this.Z(this.element,"wheel",this.aQ);this.init()}; t7=function(z){DK.call(this,.05,.05,z.getAvailablePlaybackRates()[0],z.getAvailablePlaybackRates()[z.getAvailablePlaybackRates().length-1],150,20,z.getPlaybackRate());this.T=z;this.V=g.i4("P");this.T$=FnD(this.tD,this);g.Eo(this.X,"ytp-speedslider");g.Eo(this.V,"ytp-speedslider-text");z=this.V;var p=this.X;p.parentNode&&p.parentNode.insertBefore(z,p.nextSibling);kJv(this);this.Z(this.T,"onPlaybackRateChange",this.updateValues)}; kJv=function(z){z.V.textContent=geY(z,z.W)+"x"}; geY=function(z,p){z=Number(g.MQ(p,z.K,z.D).toFixed(2));p=Math.floor((z+.001)*100%5+2E-15);var c=z;p!==0&&(c=z-p*.01);return Number(c.toFixed(2))}; GJv=function(z){g.P_.call(this,{j:"div",B:"ytp-speedslider-component"});z.Y("web_settings_use_input_slider")?this.W=new VO(z):this.W=new t7(z);g.l(this,this.W);this.element.appendChild(this.W.element)}; NiS=function(z){var p=new GJv(z);ul.call(this,z,p,"Custom");g.l(this,p)}; ffQ=function(z,p){var c=new NiS(z);g.IH.call(this,"Playback speed",g.YM.xD,z,p,XP(z)?void 0:"Custom",XP(z)?void 0:function(){g.dt(p,c)}); var B=this;this.X=!1;g.l(this,c);this.G=new VO(z);g.l(this,this.G);z.Y("web_settings_menu_icons")&&this.setIcon({j:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{j:"path",C:{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.T=z;this.X=!1;this.MZ=null;XP(z)?(this.W=g.RD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.T.getPlaybackRate().toString()}),this.V=this.T.getPlaybackRate()):this.V=this.W=null;this.U=this.T.getAvailablePlaybackRates();this.Z(z,"presentingplayerstatechange",this.Bq);var H;((H=this.T.getVideoData())==null?0:H.yL())&&this.Z(z,"serverstitchedvideochange",this.Bq);this.Z(this.G.W,"change",function(){B.X=!0;B.Bq()}); this.Bq()}; zbu=function(z,p){var c=xd(p);z.W&&(z.X||p===z.V)?(z.Xt(z.W),z.cU(p.toString())):z.Xt(c)}; cxN=function(z){z.rp(z.U.map(xd));z.W=null;z.V=null;var p=z.T.getPlaybackRate();XP(z.T)&&pPW(z,p);!z.U.includes(p)||z.X?z.Xt(z.W):z.Xt(xd(p))}; pPW=function(z,p){z.V=p;z.W=g.RD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:p.toString()});p=z.U.map(xd);p.unshift(z.W);z.rp(p)}; xd=function(z){return z.toString()}; XP=function(z){return z.Y("web_settings_menu_surface_custom_playback")}; BF_=function(z){return z.Y("web_settings_menu_surface_custom_playback")&&z.Y("web_settings_use_input_slider")}; i3D=function(z,p,c,B){var H=new g.aH(p,void 0,"Video Override");g.IH.call(this,B.text||"",z,p,c,"Video Override",function(){g.dt(c,H)}); var T=this;g.Eo(this.element,"ytp-subtitles-options-menu-item");this.setting=B.option.toString();z=B.options;this.settings=g.qC(z,this.rD,this);this.V=H;g.l(this,this.V);p=new g.zn({j:"div",B:"ytp-menuitemtitle",F3:"Allow for a different caption style if specified by the video."},0);g.l(this,p);this.V.nB(p,!0);this.X=new g.zn({j:"div",B:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},J:[{j:"div",B:"ytp-menuitem-label",F3:"On"}]},-1);g.l(this,this.X);this.V.nB(this.X,!0);this.Z(this.X.element, "click",function(){H3E(T,!0)}); this.W=new g.zn({j:"div",B:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},J:[{j:"div",B:"ytp-menuitem-label",F3:"Off"}]},-2);g.l(this,this.W);this.V.nB(this.W,!0);this.Z(this.W.element,"click",function(){H3E(T,!1)}); this.rp(g.d7(z,this.rD))}; H3E=function(z,p){z.publish("settingChange",z.setting+"Override",!p);z.QS.QT()}; Ey=function(z,p){g.aH.call(this,z,void 0,"Options");var c=this;this.lP={};for(var B=0;B=0);if(!(p<0||p===z.X)){z.X=p;p=243*z.scale;var c=141*z.scale,B=MR_(z.K,z.X,p);d4Y(z.bg,B,p,c,!0);z.Dt.start()}}; dc_=function(z){var p=z.W;z.type===3&&z.tD.stop();z.api.removeEventListener("appresize",z.MZ);z.S||p.setAttribute("title",z.D);z.D="";z.W=null;z.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});z.wrapper.style.width=""}; yxY=function(z){g.Q.call(this,{j:"button",LH:["ytp-watch-later-button","ytp-button"],C:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.yB(z.N()))},J:[{j:"div",B:"ytp-watch-later-icon",F3:"{{icon}}"},{j:"div",B:"ytp-watch-later-title",F3:"Watch later"}]});this.T=z;this.icon=null;this.visible=this.isRequestPending=this.W=!1;UpD(z);z.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Z(z,"videoplayerreset",this.onReset);this.Z(z,"appresize", this.hf);this.Z(z,"videodatachange",this.hf);this.Z(z,"presentingplayerstatechange",this.hf);this.hf();z=this.T.N();var p=g.Fy("yt-player-watch-later-pending");z.X&&p?(esW(),WVu(this)):this.Bq(2);g.Yf(this.element,"ytp-show-watch-later-title",g.yB(z));LP(this.T,this.element,this)}; ChV=function(z){var p=z.T.getPlayerSize(),c=z.T.N(),B=z.T.getVideoData(),H=g.yB(c)&&g.lg(z.T)&&g.r(z.T.getPlayerStateObject(),128),T=c.D;return c.xl&&p.width>=240&&!B.isAd()&&B.xl&&!H&&!g.VP(B)&&!z.T.isEmbedsShortsMode()&&!T}; ebu=function(z,p){Bp_(g.Gx(z.T.N()),"wl_button",function(){esW({videoId:p});window.location.reload()})}; WVu=function(z){if(!z.isRequestPending){z.isRequestPending=!0;z.Bq(3);var p=z.T.getVideoData();p=z.W?p.removeFromWatchLaterCommand:p.addToWatchLaterCommand;var c=z.T.Jn(),B=z.W?function(){z.W=!1;z.isRequestPending=!1;z.Bq(2);z.T.N().G&&z.T.AD("WATCH_LATER_VIDEO_REMOVED")}:function(){z.W=!0; z.isRequestPending=!1;z.Bq(1);z.T.N().K&&z.T.Ey(z.element);z.T.N().G&&z.T.AD("WATCH_LATER_VIDEO_ADDED")}; BY(c,p).then(B,function(){z.isRequestPending=!1;z.Bq(4,"An error occurred. Please try again later.");z.T.N().G&&z.T.AD("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; lwD=function(z,p){if(p!==z.icon){switch(p){case 3:var c=JW();break;case 1:c=S_();break;case 2:c={j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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:c={j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path", Fg:!0,C:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}z.updateValue("icon",c);z.icon=p}}; g.$d=function(){g.o0.apply(this,arguments);this.fP=(this.YO=g.yB(this.api.N()))&&(this.api.N().K||TW()||HL());this.YZ=48;this.uq=69;this.nw=this.Sh=null;this.EJ=[];this.ph=this.gL=this.Y9=this.Qc=this.ws=null;this.V2=[];this.contextMenu=this.Av=this.overflowButton=this.xF=this.rk=this.searchButton=this.copyLinkButton=this.shareButton=this.lx=this.I3=this.title=this.channelAvatar=this.rq=this.tooltip=null;this.zJ=!1;this.j6=this.Ke=this.Dn=this.zM=null;this.ZT=this.VJ=this.SR=!1}; v$Y=function(z){var p=z.api.N(),c=g.r(z.api.getPlayerStateObject(),128);return p.X&&c&&!z.api.isFullscreen()}; Iwf=function(z){if(z.jm()&&!z.api.isEmbedsShortsMode()&&z.xF){var p=z.api.Y("web_player_hide_overflow_button_if_empty_menu");!z.lx||p&&!ChV(z.lx)||B0W(z.xF,z.lx);!z.shareButton||p&&!EiD(z.shareButton)||B0W(z.xF,z.shareButton);!z.copyLinkButton||p&&!mUx(z.copyLinkButton)||B0W(z.xF,z.copyLinkButton)}else{if(z.xF){p=z.xF;for(var c=g.m(p.actionButtons),B=c.next();!B.done;B=c.next())B.value.detach();p.actionButtons=[]}z.searchButton&&!g.X4(z.I3.element,z.searchButton.element)&&z.searchButton.Ia(z.I3.element); z.lx&&!g.X4(z.I3.element,z.lx.element)&&z.lx.Ia(z.I3.element);z.shareButton&&!g.X4(z.I3.element,z.shareButton.element)&&z.shareButton.Ia(z.I3.element);z.copyLinkButton&&!g.X4(z.I3.element,z.copyLinkButton.element)&&z.copyLinkButton.Ia(z.I3.element)}}; jl_=function(z,p,c){p=c?p.lastElementChild:p.firstElementChild;for(var B=null;p;){if(A_(p,"display")!=="none"&&p.getAttribute("aria-hidden")!=="true"){var H=void 0;p.tabIndex>=0?H=p:H=jl_(z,p,c);H&&(B?c?H.tabIndex>B.tabIndex&&(B=H):H.tabIndexB/1E3+1)return{msg:"in-the-past"};if(T.isLivePlayback&&!isFinite(B))return{msg:"live-infinite"};(B=p.h1())&&B.isView()&&(B=B.mediaElement);if(B&&B.Y7().length>12&&g.$I(H))return{msg:"played-ranges"};if(!H.D)return null;if(!b)return{msg:"no-pvd-formats"};if(!H.D.W||!b.W)return{msg:"non-dash"};B=b.videoInfos[0];var D=H.D.videoInfos[0];z.G&&ta(T)&&(B=p.uU(),D= c.uU());if(!B||!D)return{msg:"no-video-info"};if(z.D&&(pZ(B)||pZ(D)))return{msg:"av1"};p=z.W&&T.Jo()&&wr();if(D.containerType!==B.containerType)if(p)T.KH("sgap",{ierr:"container"});else return{msg:"container"};if(z.K&&!p&&(D.yI!==B.yI||D.yI===""||B.yI===""))return{msg:"codec"};if(z.X&&D.video&&B.video&&Math.abs(D.video.width/D.video.height-B.video.width/B.video.height)>.01)return{msg:"ratio"};if(g.$I(T)&&g.$I(H))return{msg:"content-protection"};b=b.W[0];H=H.D.W[0];c=b.audio;var t=H.audio;if(c.sampleRate!== t.sampleRate&&!g.v2)if(p)T.KH("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:b.itag,cr:c.sampleRate,ni:H.itag,nr:t.sampleRate};return(c.numChannels||2)!==(t.numChannels||2)?{msg:"channel-count"}:z.L&&T.Jo()&&B.video.fps!==D.video.fps?{msg:"fps"}:null}; Qlx=function(z,p,c){var B=z.getVideoData(),H=p.getVideoData();if(!B.N().supportsGaplessShorts())return{nq:"env"};if(c.V){if(B.bY&&!B.isAd()||H.bY&&!H.isAd())return{nq:"autoplay"}}else if(B.bY||H.bY)return{nq:"autoplay"};if(!B.S)return{nq:"client"};if(!z.pD())return{nq:"no-empty"};z=n$N(c,z,p,Infinity);return z!=null?{nq:z.msg}:null}; am=function(z){g.e.call(this);this.app=z;this.L=this.X=this.K=this.W=null;this.D=1;this.events=new g.or(this);this.events.Z(this.app.nH,g.qT("gaplessshortslooprange"),this.S);g.l(this,this.events)}; rxB=function(){this.X=this.V=this.D=this.G=this.L=this.K=this.W=!1}; Uci=function(z){var p=new rxB;p.W=z.Y("h5_gapless_support_types_diff");p.L=z.Y("h5_gapless_error_on_fps_diff");p.G=z.Y("html5_gapless_use_format_info_fix");p.D=z.Y("html5_gapless_disable_on_av1")&&!z.Y("html5_gapless_enable_on_av1");p.K=z.Y("html5_gapless_check_codec_diff_strictly");p.V=z.Y("html5_gapless_on_ad_autoplay");p.X=z.Y("html5_gapless_disable_diff_aspect_radio");return p}; g.ZK=function(z,p,c,B){B=B===void 0?!1:B;HS.call(this);this.mediaElement=z;this.start=p;this.end=c;this.W=B}; slB=function(z,p,c,B,H,T){T=T===void 0?0:T;g.e.call(this);var b=this;this.policy=z;this.W=p;this.K=c;this.Gl=H;this.L=T;this.X=this.D=null;this.currentVideoDuration=this.V=-1;this.G=!1;this.oP=new BS;this.Y8=B-p.e_()*1E3;this.oP.then(void 0,function(){}); this.timeout=new g.B4(function(){b.R3("timeout")},1E4); g.l(this,this.timeout);this.S=isFinite(B)||this.Gl.N().experiments.JD("html5_pseudogapless_shorts")&&ta(p.getVideoData());this.status={status:0,error:null}}; G2V=function(z){var p,c,B,H,T,b,D,t,X,x;return g.L(function(E){if(E.W==1){if(z.qZ())return E.return(Promise.reject(Error(z.status.error||"disposed")));z.timeout.start();p=g.LK.Il();return g.a(E,z.oP,2)}g.LK.wH("gtfta",p);c=z.W.h1();if(c.isEnded())return z.R3("ended_in_finishTransition"),E.return(Promise.reject(Error(z.status.error||"")));if(!z.X||!Gq(z.X))return z.R3("next_mse_closed"),E.return(Promise.reject(Error(z.status.error||"")));if(z.K.H0()!==z.X)return z.R3("next_mse_mismatch"),E.return(Promise.reject(Error(z.status.error|| "")));B=k2x(z);H=B.uL;T=B.XA;b=B.pk;z.W.Gk(!1,!0);D=g$S(c,H,b,!z.K.getVideoData().isAd());z.K.setMediaElement(D);(t=z.W.hx())&&z.K.nm(t.GY,t.Bw);z.S&&(z.K.seekTo(z.K.getCurrentTime()+.001,{dG:!0,BR:3,VL:"gapless_pseudo"}),D.play(),If());X=c.kt();X.cpn=z.W.getVideoData().clientPlaybackNonce;X.st=""+H;X.et=""+b;z.K.KH("gapless",X);z.W.KH("gaplessTo",{cpn:z.K.getVideoData().clientPlaybackNonce});x=z.W.getPlayerType()===z.K.getPlayerType();z.W.VN(T,!0,!1,x,z.K.getVideoData().clientPlaybackNonce);z.K.VN(z.K.getCurrentTime(), !0,!0,x,z.W.getVideoData().clientPlaybackNonce);g.Mg(function(){!z.K.getVideoData().T$&&z.K.getPlayerState().isOrWillBePlaying()&&z.K.im()}); dT(z,6);z.dispose();return E.return(Promise.resolve())})}; pov=function(z){if(z.K.getVideoData().D){var p=z.Gl.N().Y("html5_gapless_suspend_next_loader")&&z.L===1;z.K.Ej(z.X,p,NFQ(z));dT(z,3);fwW(z);var c=zrY(z);p=c.Ex;c=c.ZK;p.subscribe("updateend",z.lK,z);c.subscribe("updateend",z.lK,z);z.lK(p);z.lK(c)}}; fwW=function(z){z.W.unsubscribe("internalvideodatachange",z.Am,z);z.K.unsubscribe("internalvideodatachange",z.Am,z);z.Gl.N().Y("html5_gapless_use_format_info_fix")&&(z.W.unsubscribe("internalvideoformatchange",z.Am,z),z.K.unsubscribe("internalvideoformatchange",z.Am,z));z.W.unsubscribe("mediasourceattached",z.Am,z);z.K.unsubscribe("statechange",z.n$,z)}; g$S=function(z,p,c,B){z=z.isView()?z.mediaElement:z;return new g.ZK(z,p,c,B)}; dT=function(z,p){p<=z.status.status||(z.status={status:p,error:null},p===5&&z.oP.resolve())}; NFQ=function(z){return z.Gl.N().Y("html5_gapless_no_clear_buffer_timeline")&&z.L===1&&Ee(z.W.getVideoData())}; k2x=function(z){var p=z.W.h1();p=p.isView()?p.start:0;var c=z.W.getVideoData().isLivePlayback?Infinity:z.W.tI(!0);c=Math.min(z.Y8/1E3,c)+p;var B=z.S?100:0;z=c-z.K.pN()+B;return{P7:p,uL:z,XA:c,pk:Infinity}}; zrY=function(z){return{Ex:z.D.W.MP,ZK:z.D.K.MP}}; Wk=function(z){g.e.call(this);var p=this;this.app=z;this.L=this.K=this.W=null;this.S=!1;this.D=this.X=null;this.G=Uci(this.app.N());this.V=function(){g.Mg(function(){c4Q(p)})}}; BxQ=function(z,p,c,B,H){B=B===void 0?0:B;H=H===void 0?0:H;z.pD()||yO(z);z.X=new BS;z.W=p;var T=c,b=H===0;b=b===void 0?!0:b;var D=z.app.dA(),t=D.getVideoData().isLivePlayback?Infinity:D.tI(!0)*1E3;T>t&&(T=t-200,z.S=!0);b&&D.getCurrentTime()>=T/1E3?z.V():(z.K=D,b&&(b=T,T=z.K,z.app.nH.addEventListener(g.E5("vqueued"),z.V),b=isFinite(b)||b/1E3>T.getDuration()?b:0x8000000000000,z.L=new g.Xq(b,0x8000000000000,{namespace:"vqueued"}),T.addCueRange(z.L)));b=B/=1E3;T=p.getVideoData().W;B&&T&&z.K&&(D=B,t=0, p.getVideoData().isLivePlayback&&(b=Math.min(c/1E3,z.K.tI(!0)),t=Math.max(0,b-z.K.getCurrentTime()),D=Math.min(B,p.tI()+t)),b=V4v(T,D)||B,b!==B&&z.W.KH("qvaln",{st:B,at:b,rm:t,ct:D}));p=b;B=z.W;B.getVideoData().JH=!0;B.getVideoData().S=!0;B.VU(!0);T={};z.K&&(T=z.K.Gf(),b=z.K.getVideoData().clientPlaybackNonce,T={crt:(T*1E3).toFixed(),cpn:b});B.KH("queued",T);p!==0&&B.seekTo(p+.01,{dG:!0,BR:3,VL:"videoqueuer_queued"});z.D=new slB(z.G,z.app.dA(),z.W,c,z.app,H);c=z.D;c.status.status!==Infinity&&(dT(c, 1),c.W.subscribe("internalvideodatachange",c.Am,c),c.K.subscribe("internalvideodatachange",c.Am,c),c.Gl.N().Y("html5_gapless_use_format_info_fix")&&(c.W.subscribe("internalvideoformatchange",c.Am,c),c.K.subscribe("internalvideoformatchange",c.Am,c)),c.W.subscribe("mediasourceattached",c.Am,c),c.K.subscribe("statechange",c.n$,c),c.W.subscribe("newelementrequired",c.Ck,c),c.Am());return z.X}; c4Q=function(z){var p,c,B,H,T,b,D,t,X;g.L(function(x){switch(x.W){case 1:if(z.qZ()||!z.X||!z.W)return x.return();z.S&&z.app.dA().xx(!0,!1);c=z.app.N().Y("html5_force_csdai_gapful_transition")&&((p=z.app.dA())==null?void 0:p.getVideoData().isDaiEnabled());B=null;if(!z.D||c){x.hD(2);break}g.Ox(x,3);return g.a(x,G2V(z.D),5);case 5:g.RE(x,2);break;case 3:B=H=g.SQ(x);case 2:if(!z.W)return x.return();g.LK.V7("vqsp",function(){z.app.Tj(z.W)}); if(!z.W)return x.return();T=z.W.h1();z.app.N().Y("html5_gapless_seek_on_negative_time")&&T&&T.getCurrentTime()<-.01&&z.W.seekTo(0);g.LK.V7("vqpv",function(){z.app.playVideo()}); if(B||c)z.W?(b=B?B.message:"forced",(D=z.K)==null||D.KH("gapfulfbk",{r:b}),z.W.eT(b)):(t=z.K)==null||t.KH("gapsp",{});X=z.X;yO(z);X&&X.resolve();return x.return(Promise.resolve())}})}; yO=function(z,p){p=p===void 0?!1:p;if(z.K){if(z.L){var c=z.K;z.app.nH.removeEventListener(g.E5("vqueued"),z.V);c.removeCueRange(z.L)}z.K=null;z.L=null}z.D&&(z.D.status.status!==6&&(c=z.D,c.status.status!==Infinity&&c.L!==1&&c.R3("Canceled")),z.D=null);z.X=null;z.W&&!p&&z.W!==z.app.cM()&&z.W!==z.app.dA()&&z.W.l_();z.W&&p&&z.W.vH();z.W=null;z.S=!1}; HsY=function(z){var p;return((p=z.D)==null?void 0:p.currentVideoDuration)||-1}; isD=function(z,p,c){if(z.pD())return"qie";if(z.W==null||z.W.ZD()||z.W.getVideoData()==null)return"qpd";if(p.videoId!==z.W.uA())return"vinm";if(HsY(z)<=0)return"ivd";if(c!==1)return"upt";if((c=z.D)==null)z=void 0;else if(c.getStatus().status!==5)z="niss";else if(n$N(c.policy,c.W,c.K,c.Y8)!=null)z="pge";else{p=zrY(c);z=p.Ex;var B=p.ZK;p=g.P3(c.Gl.N().experiments,"html5_shorts_gapless_next_buffer_in_seconds");c=c.V+p;B=Jw(B.UR(),c);z=Jw(z.UR(),c);z=!(p>0)||B&&z?null:"neb"}return z!=null?z:null}; Tx_=function(){g.JQ.call(this);var z=this;this.fullscreen=0;this.X=this.D=this.pictureInPicture=this.W=this.K=this.inline=!1;this.L=function(){z.mV()}; paN(this.L);this.V=this.getVisibilityState(this.td(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Pu(),this.rl(),this.wl(),this.Aq())}; xa=function(z){return!(z.isMinimized()||z.isInline()||z.isBackground()||z.Pu()||z.rl()||z.wl()||z.Aq())}; g.CK=function(z){this.Wq=z;this.videoData=this.playerState=null}; g.eA=function(z,p){g.e.call(this);this.Wq=z;this.D={};this.UY=this.K=this.L=null;this.W=new g.CK(z);z.Y("web_player_present_empty")&&(this.K=this.W);this.X=p}; XoY=function(z){var p=z.experiments,c=p.JD.bind(p);bs_=c("html5_use_async_stopVideo");Vm_=c("html5_pause_for_async_stopVideo");DXB=c("html5_not_reset_media_source");c("html5_listen_for_audio_output_changed")&&(vQE=!0);NF=c("html5_not_reset_media_source");tmN=c("html5_not_reset_media_source");Aw=c("html5_retain_source_buffer_appends_for_debugging");k7u=c("web_watch_pip");c("html5_mediastream_applies_timestamp_offset")&&($o=!0);var B=g.P3(p,"html5_cobalt_override_quic");B&&Ya("QUIC",+(B>0));(B=g.P3(p, "html5_cobalt_audio_write_ahead_ms"))&&Ya("Media.AudioWriteDurationLocal",B);(B=c("html5_cobalt_enable_decode_to_texture"))&&Ya("Media.PlayerConfiguration.DecodeToTexturePreferred",B?1:0);(z.OW()||c("html5_log_cpu_info"))&&NEu();Error.stackTraceLimit=50;var H=g.P3(p,"html5_idle_rate_limit_ms");H&&Object.defineProperty(window,"requestIdleCallback",{value:function(T){return window.setTimeout(T,H)}}); l0Y(z.L);dA=c("html5_use_ump_request_slicer");uGY=c("html5_record_now");c("html5_disable_streaming_xhr")&&(HW=!1);c("html5_byterate_constraints")&&(XK=!0);c("html5_use_non_active_broadcast_for_post_live")&&(fi=!0);c("html5_sunset_aac_high_codec_family")&&(gB["141"]="a");c("html5_enable_encrypted_av1")&&(zq=!0)}; xXE=function(z){return z.slice(12).replace(/_[a-z]/g,function(p){return p.toUpperCase().replace("_","")}).replace("Dot",".")}; EsD=function(z){var p={},c;for(c in z.experiments.flags)if(c.startsWith("cobalt_h5vcc")){var B=xXE(c),H=g.P3(z.experiments,c);B&&H&&(p[B]=Ya(B,H))}return p}; l9=function(z,p,c,B,H){H=H===void 0?[]:H;g.e.call(this);this.Wq=z;this.iQ=p;this.X=c;this.segments=H;this.W=void 0;this.K=new Map;H.length&&(this.W=H[0])}; q1Q=function(z){if(!(z.segments.length<2)){var p=z.segments.shift();if(p){var c=p.W,B=[];if(c.size){c=g.m(c.values());for(var H=c.next();!H.done;H=c.next()){H=g.m(H.value);for(var T=H.next();!T.done;T=H.next()){T=T.value;for(var b=g.m(T.segments),D=b.next();!D.done;D=b.next())(D=vk(D.value))&&B.push(D);T.removeAll()}}}(c=vk(p))&&B.push(c);B=g.m(B);for(c=B.next();!c.done;c=B.next())z.K.delete(c.value);p.dispose()}}}; Im=function(z,p,c,B){if(!z.W||p>c)return!1;p=new l9(z.Wq,p,c,z.W,B);B=g.m(B);for(c=B.next();!c.done;c=B.next()){c=c.value;var H=vk(c);H&&H!==vk(z.W)&&z.K.set(H,[c])}z=z.W;z.W.has(p.Yy())?z.W.get(p.Yy()).push(p):z.W.set(p.Yy(),[p]);return!0}; kn=function(z,p){return z.K.get(p)}; J4u=function(z,p,c){z.K.set(p,c)}; jA=function(z,p,c,B,H,T){return new MmE(c,c+(B||0),!B,p,z,H,T)}; MmE=function(z,p,c,B,H,T,b){g.e.call(this);this.iQ=z;this.D=p;this.K=c;this.type=B;this.X=H;this.videoData=T;this.AF=b;this.W=new Map;LT(T)}; vk=function(z){return z.videoData.clientPlaybackNonce}; Y1Q=function(z){if(z.W.size)for(var p=g.m(z.W.values()),c=p.next();!c.done;c=p.next()){c=g.m(c.value);for(var B=c.next();!B.done;B=c.next())B.value.dispose()}z.W.clear()}; mXY=function(z){this.end=this.start=z}; g.FP=function(){this.W=new Map;this.D=new Map;this.K=new Map}; g.om=function(z,p,c,B){g.e.call(this);var H=this;this.api=z;this.Wq=p;this.playback=c;this.app=B;this.fH=new g.FP;this.K=new Map;this.V=[];this.L=[];this.D=new Map;this.EW=new Map;this.G=new Map;this.NZ=null;this.Ca=NaN;this.FQ=this.gt=null;this.Zw=new g.B4(function(){hrB(H,H.Ca,H.gt||void 0)}); this.events=new g.or(this);this.WM=15E3;this.Ra=new g.B4(function(){H.YA=!0;H.playback.LS(H.WM);Pwf(H);if(H.playback.getVideoData().yL()){var T;H.kA({togab:(T=H.Dt)==null?void 0:T.identifier})}H.Lj(!1)},this.WM); this.YA=!1;this.S=new Map;this.sH=[];this.Dt=null;this.RR=new Set;this.rA=[];this.Wy=[];this.Lv=[];this.wU=[];this.W=void 0;this.T$=0;this.OH=!0;this.U=!1;this.i8=[];this.CH=new Set;this.t1=new Set;this.JH=new Set;this.i6=0;this.Zt=new Set;this.ow=0;this.Cs=this.LB=!1;this.zr=this.X="";this.tD=null;this.logger=new g.Xk("dai");this.Xg={CFq:function(){return H.K}, MF8:function(){return H.V}, bQZ:function(){return H.D}, FG:function(T){H.onCueRangeEnter(H.K.get(T))}, dD$:function(T){H.onCueRangeExit(H.K.get(T))}, a9A:function(T,b){H.K.set(T,b)}, em0:function(T){H.zr=T}, MR:function(){return H.MR()}, ylD:function(T){return H.G.get(T)}, sJ3:function(){return H.tD}}; this.playback.getPlayerType();this.playback.Kh(this);this.UH=this.Wq.OW();g.l(this,this.Zw);g.l(this,this.events);g.l(this,this.Ra);this.events.Z(this.api,g.E5("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.qT("serverstitchedcuerange"),this.onCueRangeExit)}; Rri=function(z,p,c,B,H,T,b,D,t){if(z.Wq.Y("html5_ignore_ads_after_noadresponse")&&t&&z.RR.has(t))return nK(z,{reason:"addafternoad",cueid:t}),"";t=A4f(z,T,T+H);z.YA&&z.kA({adaftto:1});c||z.kA({missadcon:1,enter:T,len:H,aid:D});z.MZ&&!z.MZ.h$&&(z.MZ.h$=D);z.Cs&&z.kA({adfbk:1,enter:T,len:H,aid:D});var X=z.playback;b=b===void 0?T+H:b;T===b&&!H&&z.Wq.Y("html5_allow_zero_duration_ads_on_timeline")&&z.kA({attl0d:1});T>b&&nK(z,{reason:"enterTime_greater_than_return",iQ:T,zZ:b});var x=X.pB()*1E3;TX&&nK(z,{reason:"parent_return_greater_than_content_duration",zZ:b,Sti:X});X=null;x=g.VT(z.L,{zZ:T},function(E,q){return E.zZ-q.zZ}); x>=0&&(X=z.L[x],X.zZ>T&&Osi(z,p.video_id||"",T,b,X));if(t&&X)for(x=0;x.5&&z.kA({ttdtb:1,delta:b,cpn:H.cpn,enter:p.adCpn,exit:c.adCpn,seek:B,skip:T});z.api.Y("html5_ssdai_enable_media_end_cue_range")&&z.api.G7();if(p.isAd&&c.isAd){H=!!T;if(p.adCpn&&c.adCpn){var D=z.D.get(p.adCpn);var t=z.D.get(c.adCpn)}H?z.kA({igtransskip:1,enter:p.adCpn,exit:c.adCpn,seek:B,skip:T}):sy(z,t,D,c.Ad,p.Ad,B,H)}else if(!p.isAd&&c.isAd){z.zr=H.cpn;z.api.publish("serverstitchedvideochange");D=rT(z,"a2c");z.kA(D); z.i6=0;if(D=c.GZ)z.T$=D.end;var X;c.adCpn&&(X=z.D.get(c.adCpn));X&&z.playback.fm(X,H,c.Ad,p.Ad,B,!!T)}else if(p.isAd&&!c.isAd){var x;p.adCpn&&(x=z.D.get(p.adCpn));x&&(z.T$=0,z.zr=x.cpn,Uy(z,x),X=rT(z,"c2a",x),z.kA(X),z.i6=1,z.playback.fm(H,x,c.Ad,p.Ad,B,!!T))}}; gT=function(z,p,c){c=c===void 0?0:c;var B=g.VT(z.L,{iQ:(p+c)*1E3},function(D,t){return D.iQ-t.iQ}); B=B<0?(B+2)*-1:B;if(B>=0)for(var H=p*1E3,T=B;T<=B+1&&T=b.iQ-c*1E3&&H<=b.zZ+c*1E3)return{Pt:b,Km:p}}return{Pt:void 0,Km:p}}; $XV=function(z,p){var c="";(p=S1N(z,p))&&(c=p.getId());return c?z.D.get(c):void 0}; S1N=function(z,p){if(z.zr){var c=z.K.get(z.zr);if(c&&c.start-200<=p&&c.end+200>=p)return c}z=g.m(z.K.values());for(c=z.next();!c.done;c=z.next())if(c=c.value,c.start<=p&&c.end>=p)return c}; hrB=function(z,p,c){var B=z.FQ||z.app.dA().getPlayerState();GK(z,!0);z.playback.seekTo(p,c);z=z.app.dA();p=z.getPlayerState();B.isOrWillBePlaying()&&!p.isOrWillBePlaying()?z.playVideo():B.isPaused()&&!p.isPaused()&&z.pauseVideo()}; GK=function(z,p){z.Ca=NaN;z.gt=null;z.Zw.stop();z.NZ&&p&&z.NZ.Z8();z.FQ=null;z.NZ=null}; KDV=function(z){var p=p===void 0?-1:p;var c=c===void 0?Infinity:c;for(var B=[],H=g.m(z.L),T=H.next();!T.done;T=H.next())T=T.value,(T.iQc)&&B.push(T);z.L=B;B=g.m(z.K.values());for(H=B.next();!H.done;H=B.next())H=H.value,H.start>=p&&H.end<=c&&(z.playback.removeCueRange(H),z.K.delete(H.getId()),z.kA({rmAdCR:1}));B=gT(z,p/1E3);p=B.Pt;B=B.Km;if(p&&(B=B*1E3-p.iQ,H=p.iQ+B,p.durationMs=B,p.zZ=H,B=z.K.get(p.cpn))){H=g.m(z.V);for(T=H.next();!T.done;T=H.next())T=T.value,T.start===B.end?T.start=p.iQ+ p.durationMs:T.end===B.start&&(T.end=p.iQ);B.start=p.iQ;B.end=p.iQ+p.durationMs}if(p=gT(z,c/1E3).Pt){var b;B="playback_timelinePlaybackId_"+p.WU+"_video_id_"+((b=p.videoData)==null?void 0:b.videoId)+"_durationMs_"+p.durationMs+"_enterTimeMs_"+p.iQ+"_parentReturnTimeMs_"+p.zZ;z.zU("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+B+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; utB=function(z){z.fH.clearAll();z.K.clear();z.V=[];z.L=[];z.D.clear();z.EW.clear();z.G.clear();z.S.clear();z.sH=[];z.Dt=null;z.RR.clear();z.rA=[];z.Wy=[];z.Lv=[];z.wU=[];z.i8=[];z.CH.clear();z.t1.clear();z.JH.clear();z.Zt.clear();z.YA=!1;z.W=void 0;z.T$=0;z.OH=!0;z.U=!1;z.i6=0;z.ow=0;z.LB=!1;z.Cs=!1;z.X="";z.Ra.isActive()&&QO(z)}; Zsu=function(z,p,c,B,H,T){if(!z.Cs)if(g.ahB(z,c))z.kA({gdu:"undec",seg:c,itag:H});else if(p=Nh(z,p,c,B,T),!(z.playback.getVideoData().yL()&&(p==null?0:p.iB)))return p}; Nh=function(z,p,c,B,H){var T=z.S.get(c);if(!T){if(T=LDD(z,p))return T;p=z.c5(c-1,B!=null?B:2);if(H)return z.kA({misscue:H,sq:c,type:B,prevsstate:p==null?void 0:p.K8,prevrecord:z.S.has(c-1)}),z.S.get(c-1);if((p==null?void 0:p.K8)===2)return z.kA({adnf:1,sq:c,type:B,prevrecord:z.S.has(c-1)}),z.S.get(c-1)}return T}; LDD=function(z,p){p+=z.ZF();if(z.playback.getVideoData().yL())a:{var c=1;c=c===void 0?0:c;var B=p*1E3;z=g.m(z.L);for(var H=z.next();!H.done;H=z.next()){H=H.value;var T=H.Ne?H.Ne*1E3:H.iQ;if(B>=H.iQ-c*1E3&&B<=T+H.durationMs+c*1E3){B={Pt:H,Km:p};break a}}B={Pt:void 0,Km:p}}else B=gT(z,p),((c=B)==null?0:c.Pt)||(B=gT(z,p,1));var b;return(b=B)==null?void 0:b.Pt}; dXN=function(z,p){p=p===void 0?"":p;var c=Ec(p)||void 0;if(!p||!c){var B;z.kA({adcfg:(B=p)==null?void 0:B.length,dcfg:c==null?void 0:c.length})}return c}; WDE=function(z){if(z.i8.length)for(var p=g.m(z.i8),c=p.next();!c.done;c=p.next())z.onCueRangeExit(c.value);p=g.m(z.K.values());for(c=p.next();!c.done;c=p.next())z.playback.removeCueRange(c.value);p=g.m(z.V);for(c=p.next();!c.done;c=p.next())z.playback.removeCueRange(c.value);z.K.clear();z.V=[];z.fH.clearAll();z.W||(z.OH=!0)}; sy=function(z,p,c,B,H,T,b){if(p&&c){z.zr=c.cpn;Uy(z,c);var D=rT(z,"a2a",c);z.kA(D);z.i6++;z.playback.fm(p,c,B||0,H||0,!!T,!!b)}else z.kA({misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(p==null?void 0:p.cpn)||"",seek:T,skip:b})}; CwQ=function(z,p,c,B){if(B)for(B=0;Bc){var T=H.end;H.end=p;y4B(z,c,T)}else if(H.start>=p&&H.startc)H.start=c;else if(H.end>p&&H.end<=c&&H.start=p&&H.end<=c){z.playback.removeCueRange(H);if(z.i8.includes(H))z.onCueRangeExit(H);z.V.splice(B,1);continue}B++}else y4B(z,p,c)}; y4B=function(z,p,c){p=z.xj(p,c);c=!0;g.xu(z.V,p,function(b,D){return b.start-D.start}); for(var B=0;B0){var H=z.V[B],T=z.V[B-1];if(Math.round(T.end/1E3)>=Math.round(H.start/1E3)){T.end=H.end;H!==p?z.playback.removeCueRange(H):c=!1;z.V.splice(B,1);continue}}B++}if(c)for(z.playback.addCueRange(p),p=z.playback.XE("serverstitchedcuerange",36E5),p=g.m(p),c=p.next();!c.done;c=p.next())z.K.delete(c.value.getId())}; fK=function(z,p,c){if(c===void 0||!c){c=g.m(z.sH);for(var B=c.next();!B.done;B=c.next()){B=B.value;if(p>=B.start&&p<=B.end)return;if(p===B.end+1){B.end+=1;return}}z.sH.push(new mXY(p))}}; g.ahB=function(z,p){z=g.m(z.sH);for(var c=z.next();!c.done;c=z.next())if(c=c.value,p>=c.start&&p<=c.end)return!0;return!1}; zp=function(z,p,c){var B;if(B=z.playback.getVideoData().yL()||z.Wq.Y("html5_ssdai_extent_last_unfinished_ad_cue_range"))B=(B=z.D.get(p))&&B.u6?(z=z.G.get(B==null?void 0:B.u6))&&z.slice(-1)[0].cpn===p:!1;return B&&c===2?1E3:0}; Osi=function(z,p,c,B,H){var T;p={reason:"overlapping_playbacks",ixA:p,iQ:c,zZ:B,OQa:H.WU,gpH:((T=H.videoData)==null?void 0:T.videoId)||"",G7p:H.durationMs,BXH:H.iQ,iQA:H.zZ};nK(z,p)}; nK=function(z,p,c){z.playback.fS(p,c)}; erV=function(z,p){var c=[];z=z.G.get(p);if(!z)return[];z=g.m(z);for(p=z.next();!p.done;p=z.next())p=p.value,p.cpn&&c.push(p.cpn);return c}; lhu=function(z,p,c){var B=0;z=z.G.get(c);if(!z)return-1;z=g.m(z);for(c=z.next();!c.done;c=z.next()){if(c.value.cpn===p)return B;B++}return-1}; vsW=function(z,p){var c=0;z=z.G.get(p);if(!z)return 0;z=g.m(z);for(p=z.next();!p.done;p=z.next())p=p.value,p.durationMs!==0&&p.zZ!==p.iQ&&c++;return c}; IhS=function(z,p,c){var B=!1;if(c&&(c=z.G.get(c))){c=g.m(c);for(var H=c.next();!H.done;H=c.next())H=H.value,H.durationMs!==0&&H.zZ!==H.iQ&&(H=H.cpn,p===H&&(B=!0),B&&!z.t1.has(H)&&(z.kA({decoratedAd:H}),z.t1.add(H)))}}; Pwf=function(z){z.UH&&z.kA({adf:"0_"+((new Date).getTime()/1E3-z.ow)+"_isTimeout_"+z.YA})}; A4f=function(z,p,c){if(z.rA.length)for(var B=g.m(z.rA),H=B.next(),T={};!H.done;T={xu:void 0},H=B.next()){T.xu=H.value;H=T.xu.startSecs*1E3;var b=T.xu.UI*1E3+H;if(p>H&&pH&&c0&&B>p*1E3+z.VmH)&&(B=gsS(z,c))){p=!1;c=void 0;B=g.m(B.segments);for(H=B.next();!H.done;H=B.next()){H=H.value;if(p){c=H;break}vk(H)===z.zr&&(p=!0)}B=void 0;if(c)B=vk(c);else if(p){var T;B=(T=z.timeline.W)==null?void 0:vk(T)}if(B)z.finishSegmentByCpn(z.zr,B,2,void 0);else{var b;z.api.KH("ssap",{mfnc:1,mfncc:(b=z.timeline.W)== null?void 0:vk(b)})}}}}; UXD=function(z){return z.api.Y("html5_force_ssap_gapful_switch")||z.api.Y("html5_ssap_enable_legacy_browser_logic")&&!wr()}; zvB=function(z,p,c,B){z.uN.set(p,B);Nxf(z,p,c);fhD(z,c)}; jk=function(z,p){z=kn(z.timeline,p);return(z==null?0:z.length)?z[0].Yy():0}; Ff=function(z,p){var c=c===void 0?!1:c;var B=z.timeline.W;if(!B)return{clipId:"",Xe:0};var H=p0Y(z,p,c);if(H)return{clipId:vk(H)||"",Xe:H.Yy()};z.api.KH("mci",{cs:vk(B),mt:p,tl:Ha(z),invt:!!c});return{clipId:"",Xe:0}}; rE=function(z){var p=z.timeline.W;if(!p)return 0;z=0;if(p.W.size===0)return(p.PQ()-p.Yy())/1E3;p=p.W.values();p=g.m(p);for(var c=p.next();!c.done;c=p.next()){c=g.m(c.value);for(var B=c.next();!B.done;B=c.next())B=B.value,z+=(B.PQ()-B.Yy())/1E3}return z}; BZY=function(z,p){return(z=cKN(z,p*1E3))?z.Yy():0}; H1E=function(z,p){var c=kn(z.timeline,p);p=0;if(c==null?0:c.length)for(z=g.m(c),c=z.next();!c.done;c=z.next())c=c.value,p+=(c.PQ()-c.Yy())/1E3;else return rE(z);return p}; cKN=function(z,p){if(z=kn(z.timeline,z.zr)){z=g.m(z);for(var c=z.next();!c.done;c=z.next())if(c=c.value,c.Yy()<=p&&c.PQ()>=p)return c}}; i1i=function(z){var p=z.playback.getVideoData();z.zr&&(z=z.HW.get(z.zr))&&(p=z);return p}; gsS=function(z,p,c){c=c===void 0?!1:c;var B=z.timeline.W;if(B){B=B.W;var H=Array.from(B.keys());g.ty(H);p=g.VT(H,p);p=B.get(H[p<0?(p+2)*-1:p]);if(!c&&p){c=g.m(p);for(p=c.next();!p.done;p=c.next())if(p=p.value,p.Yy()!==p.PQ())return p;return z.timeline}return p&&p.length>0?p[p.length-1]:void 0}}; p0Y=function(z,p,c){c=c===void 0?!1:c;var B=gsS(z,p,c);if(B){if(z=B.segments,z.length){for(var H=g.m(z),T=H.next();!T.done;T=H.next())if(T=T.value,T.Yy()<=p&&T.PQ()>p)return T;if(c&&B.Yy()===B.PQ())return z[0]}}else z.api.KH("ssap",{ctnf:1})}; QoN=function(z,p){var c;if(z.fZ)for(c=z.Dk.shift();c&&c!==z.fZ;)c=z.Dk.shift();else c=z.Dk.shift();if(c){if(z.EY.has(c))TZW(z,c);else if(p===3||p===4)z.jU.stop(),z.api.playVideo(1,z.api.Y("html5_ssap_keep_media_on_finish_segment"));z.uN.set(z.zr,p);z.api.KH("ssap",{onvftn:1});fhD(z,c);return!1}z.api.KH("ssap",{onvftv:1});z.jU.stop();return!0}; TZW=function(z,p){p=kn(z.timeline,p);if(p==null?0:p.length)z.api.pauseVideo(),z.jU.start(p[0].AF)}; fhD=function(z,p){var c=z.playback.getVideoData(),B=c.clientPlaybackNonce;z.Ar&&(z.events.vy(z.Ar),z.Ar=null,z.playback.Oz());var H=z.zr,T=!1;if(H==="")H=B,T=!0;else if(H===void 0){var b=z.playback.sE();b&&z.timeline.K.has(b)&&(H=b);z.api.KH("ssap",{mcc:H+";"+p});z.playback.ZP(new W2("ssap.timelineerror",{e:"missing_current_cpn",pcpn:H,ccpn:p}))}if(H===p)T&&c&&b1Y(z,c,T);else{b=z.uN.get(H);if(!T&&(!b||b!==3&&b!==5&&b!==6&&b!==7)){var D=z.api.G7(z.zr);z.api.KH("ssap",{nmec:D,cpc:z.zr,ec:p})}b&&b!== 2||z.v6();z.zr=p;z.v6();p=kn(z.timeline,z.zr);if(p==null?0:p.length){p=p[0];D=p.getType();H!==B&&(z.Bo=H,c=z.HW.get(H));b?z.uN.delete(H):b=T?1:2;z.api.Y("html5_ssap_pacf_qoe_ctmp")&&D===2&&!p.K&&(z.Ar=z.events.Z(z.api,"onVideoProgress",z.cv3));z.api.KH("ssapt",{ostro:b,pcpn:H,ccpn:z.zr});a:{var t=z.zr;if(!z.xE.has(t))for(var X=g.m(z.xE),x=X.next();!x.done;x=X.next()){var E=g.m(x.value);x=E.next().value;E=E.next().value;if(E.getId().includes(t)){t=x;break a}}}X=z.api.N().Y("html5_ssap_insert_su_before_nonvideo")&& t!==z.zr;z.playback.nF(t,X);t=Math.max(0,py(z,H));X=z.playback.getCurrentTime();X=Math.max(0,X-jk(z,z.zr)/1E3);x=p.getVideoData();E=b===3||b===5||b===6||b===7;if(z.api.Y("html5_ssap_skip_illegal_seeking")){var q=z.playback.getPlayerState();q=!g.r(q,8)&&g.r(q,16);E=E||q;q&&z.api.KH("ssap",{iis:1})}z.playback.tN(H,z.zr,t,X,!1,E,z.playback.getPlayerState(),!0);z.api.KH("ssapt",{ostri:b,pcpn:H,ccpn:z.zr});var J;z.playback.Kk(H,z.zr,B,x,(J=z.x9.get(H))!=null?J:(0,g.y2)(),c);z.x9.delete(H);T?c=void 0:c|| z.api.KH("ssap",{pvdm:H+";"+z.zr,pvdmc:z.zr===B?"1":"0"});z.api.KH("ssap",{tpac:H+";"+z.zr,tpcc:B,tpv:(x==null?0:x.NP())?"1":"0"},!1,1);z.api.N().Y("html5_ssap_cleanup_player_switch_ad_player")&&z.api.Tw();z.api.publish("videodatachange","newdata",x,D,c,b);p.K||z.playback.getVideoData().publish("dataupdated");z.EY.delete(H);z.fZ="";x&&D===1?b1Y(z,x):z.playback.KH("ssap",{nis:z.zr});D===2?z.i6++:z.i6=0}}}; b1Y=function(z,p,c){c=c===void 0?!1:c;if(p.startSeconds&&z.Js){var B=p.startSeconds;p=kn(z.timeline,p.clientPlaybackNonce);if(p==null?0:p.length)B+=p[0].Yy()/1E3,z.api.Y("htm5_ssap_ignore_initial_seek_if_too_big")&&B>=z.A_()||(z.playback.seekTo(B,{mf:!0}),z.Js=!1,z.playback.KH("ssap",{is:z.zr,co:c?"1":"0",tse:B.toFixed()}))}}; Nxf=function(z,p,c){p=kn(z.timeline,p);if(p!=null&&p.length&&(p=gsS(z,p[0].Yy()))){p=g.m(p.segments);for(var B=p.next();!B.done;B=p.next()){B=B.value;if(vk(B)===c)break;if(B=vk(B)){var H=z.xE.get(B);H&&z.playback.removeCueRange(H);z.xE.delete(B)}}}}; oa=function(z){return z.playback.getVideoData().clientPlaybackNonce}; rXE=function(z,p){if(z.Qk&&z.zr!==p)return!1;if(z.sG)return!0;if(p=z.xE.get(p))if(p=p.getId().split(","),p.length>1)for(var c=0;cT)return cz(z,"enterAfterReturn enterTimeMs="+H+" is greater than parentReturnTimeMs="+T.toFixed(3),b,D),"";var X=t.pB()*1E3;if(HX)return t="returnAfterDuration parentReturnTimeMs="+T.toFixed(3)+" is greater than parentDurationMs="+X+". And timestampOffset in seconds is "+ t.e_(),cz(z,t,b,D),"";X=null;for(var x=g.m(z.K),E=x.next();!E.done;E=x.next()){E=E.value;if(H>=E.iQ&&HE.iQ)return cz(z,"overlappingReturn",b,D),"";if(T===E.iQ)return cz(z,"outOfOrder",b,D),"";H===E.zZ&&(X=E)}b="cs_childplayback_"+t6E++;D={GZ:Bz(B,!0),Y8:Infinity,target:null};var q={WU:b,playerVars:p,playerType:c,durationMs:B,iQ:H,zZ:T,WI:D};z.K=z.K.concat(q).sort(function(P,O){return P.iQ-O.iQ}); X?X0_(z,X,{GZ:Bz(X.durationMs,!0),Y8:X.WI.Y8,target:q}):(p={GZ:Bz(H,!1),Y8:H,target:q},z.L.set(p.GZ,p),t.addCueRange(p.GZ));p=!0;if(z.W===z.app.dA()&&(t=t.getCurrentTime()*1E3,t>=q.iQ&&tp)break;if(T>p)return{Pt:B,Km:p-H};c=T-B.zZ/1E3}return{Pt:null,Km:p-c}}; V6u=function(z,p,c){c=c===void 0?{}:c;var B=z.V||z.app.dA().getPlayerState();Tp(z,!0);p=isFinite(p)?p:z.W.ww();var H=Yfi(z,p);p=H.Km;var T=(H=H.Pt)&&!Hz(z,H)||!H&&z.W!==z.app.dA(),b=p*1E3;b=z.D&&z.D.start<=b&&b<=z.D.end;!T&&b||iu(z);H?xfS(z,H,p,c,B):mfS(z,p,c,B)}; mfS=function(z,p,c,B){var H=z.W;H!==z.app.dA()&&z.app.zb();H.seekTo(p,Object.assign({},{VL:"application_timelinemanager"},c));hvu(z,B)}; xfS=function(z,p,c,B,H){var T=Hz(z,p);if(!T){p.playerVars.prefer_gapless=!0;z.Wq.Y("html5_enable_ssap_entity_id")&&(p.playerVars.cached_load=!0);var b=new g.GU(z.Wq,p.playerVars);b.WU=p.WU;z.api.Ax(b,p.playerType)}b=z.app.dA();T||b.addCueRange(p.WI.GZ);b.seekTo(c,Object.assign({},{VL:"application_timelinemanager"},B));hvu(z,H)}; hvu=function(z,p){z=z.app.dA();var c=z.getPlayerState();p.isOrWillBePlaying()&&!c.isOrWillBePlaying()?z.playVideo():p.isPaused()&&!c.isPaused()&&z.pauseVideo()}; Tp=function(z,p){z.MZ=NaN;z.U=null;z.S.stop();z.X&&p&&z.X.Z8();z.V=null;z.X=null}; Hz=function(z,p){z=z.app.dA();return!!z&&z.getVideoData().WU===p.WU}; P7x=function(z){var p=z.K.find(function(H){return Hz(z,H)}); if(p){var c=z.app.dA();iu(z);var B=new g.D0(8);p=M6Q(z,p)/1E3;mfS(z,p,{},B);c.KH("forceParentTransition",{childPlayback:1});z.W.KH("forceParentTransition",{parentPlayback:1})}}; O1i=function(z,p,c){p=p===void 0?-1:p;c=c===void 0?Infinity:c;for(var B=p,H=c,T=g.m(z.L),b=T.next();!b.done;b=T.next()){var D=g.m(b.value);b=D.next().value;D=D.next().value;D.Y8>=B&&D.target&&D.target.zZ<=H&&(z.W.removeCueRange(b),z.L.delete(b))}B=p;H=c;T=[];b=g.m(z.K);for(D=b.next();!D.done;D=b.next())if(D=D.value,D.iQ>=B&&D.zZ<=H){var t=z;t.G===D&&iu(t);Hz(t,D)&&t.app.zb()}else T.push(D);z.K=T;B=Yfi(z,p/1E3);p=B.Pt;B=B.Km;p&&(B*=1E3,AKu(z,p,B,p.zZ===p.iQ+p.durationMs?p.iQ+B:p.zZ));(p=Yfi(z,c/1E3).Pt)&& cz(z,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(p.WU+" video_id="+p.playerVars.video_id+" durationMs="+p.durationMs+" enterTimeMs="+p.iQ+" parentReturnTimeMs="+p.zZ+"}.Child playbacks can only have duration updated not their start."))}; AKu=function(z,p,c,B){p.durationMs=c;p.zZ=B;B={GZ:Bz(c,!0),Y8:c,target:null};X0_(z,p,B);Hz(z,p)&&z.app.dA().getCurrentTime()*1E3>c&&(p=M6Q(z,p)/1E3,c=z.app.dA().getPlayerState(),mfS(z,p,{},c))}; cz=function(z,p,c,B){z.W.KH("timelineerror",{e:p,cpn:c?c:void 0,videoId:B?B:void 0})}; RvD=function(z){z&&z!=="web"&&w0Y.includes(z)}; DT=function(z,p){g.e.call(this);var c=this;this.data=[];this.D=z||NaN;this.K=p||null;this.W=new g.B4(function(){bu(c);V8(c)}); g.l(this,this.W)}; Fzu=function(z){bu(z);return z.data.map(function(p){return p.value})}; bu=function(z){var p=(0,g.y2)();z.data.forEach(function(c){c.expireT?{width:p.width,height:p.width/H,aspectRatio:H}:HH?z.width=z.height*c:ct;if(Ed(z)){var X=Z1W(z);var x=isNaN(X)||g.pq||bb&&g.$U||t;zG&&!g.mr(601)?X=H.aspectRatio:x=x||T.controlsType==="3";x?t?(x=T.Y("place_shrunken_video_on_left_of_player")?16:z.getPlayerSize().width-p.width-16,X=Math.max((z.getPlayerSize().height-p.height)/2,0),x=new g.J_(x,X,p.width, p.height),z.zl.style.setProperty("border-radius","12px")):x=new g.J_(0,0,p.width,p.height):(c=H.aspectRatio/X,x=new g.J_((p.width-H.width/c)/2,(p.height-H.height)/2,H.width/c,H.height),c===1&&g.$U&&(X=x.width-p.height*X,X>0&&(x.width+=X,x.height+=X)));g.Yf(z.element,"ytp-fit-cover-video",Math.max(x.width-H.width,x.height-H.height)<1);if(D||z.Pl)z.zl.style.display="";z.Ef=!0}else{x=-p.height;zG?x*=window.devicePixelRatio:g.ii&&(x-=window.screen.height);x=new g.J_(0,x,p.width,p.height);if(D||z.Pl)z.zl.style.display= "none";z.Ef=!1}My(z.Xf,x)||(z.Xf=x,g.FB(T)?(z.zl.style.setProperty("width",x.width+"px","important"),z.zl.style.setProperty("height",x.height+"px","important")):g.dY(z.zl,x.getSize()),B=new g.ho(x.left,x.top),g.Rj(z.zl,Math.round(B.x),Math.round(B.y)),B=!0);p=new g.J_((p.width-H.width)/2,(p.height-H.height)/2,H.width,H.height);My(z.nG,p)||(z.nG=p,B=!0);g.mm(z.zl,"transform",c===1?"":"scaleX("+c+")");b&&t!==z.z_&&(t&&(z.zl.addEventListener(mu,z.SU),z.zl.addEventListener("transitioncancel",z.SU),z.zl.classList.add(g.Ga.VIDEO_CONTAINER_TRANSITIONING)), z.z_=t,z.app.nH.publish("playerUnderlayVisibilityChange",z.z_?"transitioning":"hidden"));return B}; yKE=function(){this.csn=g.Wu();this.clientPlaybackNonce=null;this.elements=new Set;this.D=new Set;this.W=new Set;this.K=new Set}; C7N=function(z){if(z.csn!==g.Wu())if(z.csn==="UNDEFINED_CSN")z.csn=g.Wu();else{var p=g.Wu(),c=g.dH();if(p&&c){z.csn=p;for(var B=g.m(z.elements),H=B.next();!H.done;H=B.next())(H=H.value.visualElement)&&H.isClientVe()&&p&&c&&(g.KN("combine_ve_grafts")?yg(dU(),H,c):g.iO(g.pB)(void 0,p,c,H))}if(p)for(z=g.m(z.W),c=z.next();!c.done;c=z.next())(c=c.value.visualElement)&&c.isClientVe()&&g.Dy(p,c)}}; g.qz=function(z,p,c,B){g.e.call(this);var H=this;this.logger=new g.Xk("App");this.F2=this.OB=!1;this.jf={};this.y5=[];this.Qg=!1;this.d3=null;this.intentionalPlayback=!1;this.sZ=!0;this.Kb=!1;this.g8=this.eN=null;this.W4=!0;this.mediaElement=this.IR=null;this.B8=NaN;this.KU=!1;this.bZ=this.g0=this.aR=this.Cv=this.screenLayer=this.playlist=null;this.Z0=[];this.QJ=0;this.Xg={jD:function(){return H.bk}, Wf:function(){return H.aR}, GV:function(b){H.aR=b}, UT:function(b,D){H.aR&&H.aR.UT(b,D)}}; this.logger.debug("constructor begin");this.config=N4Y(p||{});this.webPlayerContextConfig=c;X4D();p=this.config.args||{};this.Wq=new kq(p,c,c?c.canaryState:this.config.assets.player_canary_state,B,this);g.l(this,this.Wq);XoY(this.Wq);B=EsD(this.Wq);this.Wq.OW()&&this.Z0.push({key:"h5vcc",value:B});this.Wq.experiments.JD("jspb_serialize_with_worker")&&r6x();this.Wq.experiments.JD("gzip_gel_with_worker")&&l_D();this.Wq.K&&!ev_&&(window.addEventListener(Z8?"touchstart":"click",o$Q,{capture:!0,passive:!0}), ev_=!0);this.Y("html5_onesie")&&(this.Ce=new xn(this.Wq),g.l(this,this.Ce));this.As=DA(eF(this.Wq)&&!0,p.enablesizebutton);this.lJ=DA(!1,p.player_wide);this.visibility=new Tx_;g.l(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.mR(DA(!1,p.player_wide));this.OB=DA(!1,p.external_list);this.events=new g.or(this);g.l(this,this.events);this.Y("start_client_gcf")&&(vd(oU(),{gq:Jc,k$:bQv()}),this.uE=oU().resolve(Jc),tYi(this.uE));this.BE$=new h1;g.l(this,this.BE$);this.pI=new yKE;B= new Pv;this.nH=new g.Wv(this,B);g.l(this,this.nH);this.template=new uvN(this);g.l(this,this.template);this.appState=1;this.s5=l4W(this);g.l(this,B);B={};this.K7=(B.internalvideodatachange=this.IPA,B.playbackready=this.TUp,B.playbackstarted=this.hMZ,B.statechange=this.RM$,B);this.Y3=new tV(this.nH);this.Mi=vzf(this);B=this.Y("html5_load_wasm");p=this.Y("html5_allow_asmjs");if(B&&I4S||p)this.Wq.Ye=aTB(this.Mi,p),OZ(Ah(this.Wq.Ye,function(b){H.Wq.Xm=b;var D;(D=H.dA())==null||D.KH("wasm",{a:b.yd})}), function(b){g.oc(b); b="message"in b&&b.message||b.toString()||"";var D;(D=H.dA())==null||D.KH("wasm",{e:b})}); else if(B&&!I4S){var T;(T=this.dA())==null||T.KH("wasm",{e:"wasm unavailable"})}this.VS=new eFQ(this.Wq,this.Mi);this.nH.publish("csiinitialized");T=10;g.yi(this.Wq)&&(T=3);BX(this.Wq)&&(T=g.P3(this.Wq.experiments,"tvhtml5_unplugged_preload_cache_size"));T=new DT(T,function(b){b!==H.Mb(b.getPlayerType())&&b.l_()}); g.l(this,T);this.bk=new g.eA(this.Wq,T);T=jTS(this);this.bk.H3(T);F3Y(this);T={};this.Ng=(T.airplayactivechange=this.qRA,T.airplayavailabilitychange=this.pUI,T.beginseeking=this.r1A,T.sabrCaptionsDataLoaded=this.PZ3,T.endseeking=this.ob8,T.internalAbandon=this.GZ8,T.internalaudioformatchange=this.YRH,T.internalvideodatachange=this.Hvt,T.internalvideoformatchange=this.UPq,T.liveviewshift=this.BsH,T.playbackstalledatstart=this.bvI,T.progresssync=this.SRH,T.onAbnormalityDetected=this.fza,T.onSnackbarMessage= this.y13,T.onLoadProgress=this.ivt,T.SEEK_COMPLETE=this.J1q,T.SEEK_TO=this.CZ3,T.onVideoProgress=this.lz$,T.onLoadedMetadata=this.OvI,T.onAutoplayBlocked=this.umH,T.onPlaybackPauseAtStart=this.dP8,T.playbackready=this.wUi,T.statechange=this.E8,T.newelementrequired=this.lL,T.heartbeatparams=this.nb8,T.videoelementevent=this.s8A,T.drmoutputrestricted=this.xPA,T.signatureexpired=this.A1t,T.nonfatalerror=this.gbp,T.reloadplayer=this.Ns$,T);this.sJ=new g.or(this);g.l(this,this.sJ);this.UJ=new X5;g.l(this, this.UJ);this.IF=this.Rp=-1;this.ZU=new g.B4(this.template.resize,16,this.template);g.l(this,this.ZU);this.gU=new DfS(this.nH,this.Wq,this.cM(),this);this.Q7=new l9(this.Wq);this.Xo=new Wk(this);g.l(this,this.Xo);this.ys=new am(this);g.l(this,this.ys);RvD(this.Wq.W.c);this.events.Z(this.nH,g.E5("appapi"),this.t_3);this.events.Z(this.nH,g.qT("appapi"),this.QwZ);this.events.Z(this.nH,g.E5("appprogressboundary"),this.MdI);this.events.Z(this.nH,g.qT("applooprange"),this.CS);this.events.Z(this.nH,"presentingplayerstatechange", this.rL);this.events.Z(this.nH,"resize",this.RUD);this.template.Ia(k0(document,z));this.events.Z(this.nH,"offlineslatestatechange",this.hh$);this.events.Z(this.nH,"sabrCaptionsTrackChanged",this.uJA);this.events.Z(this.nH,"sabrCaptionsBufferedRangesUpdated",this.YIt);this.Mi.T.N().gC&&SZ(this.Mi,"offline");this.Wq.CH&&g.JV("ux",g.KK);z=g.P3(this.Wq.experiments,"html5_defer_fetch_att_ms");this.qm=new g.B4(this.Zi8,z,this);g.l(this,this.qm);this.CB().NP()&&(g.nG()&&this.CB().tD.push("remote"),ozN(this)); this.VS.tick("fs");nzY(this);this.Wq.CH&&SZ(this.Mi,"ux",!0);g.yB(this.Mi.T.N())&&SZ(this.Mi,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.oc(new g.z6("Player experiment flags missing","web_player_sentinel_is_uniplayer"));z=this.Y("web_player_sentinel_yt_experiments_sync");T=g.KN("web_player_sentinel_yt_experiments_sync");z!==T&&g.oc(new g.z6("b/195699950",{yt:z,player:T}));c||g.oc(new g.z6("b/179532961"));this.ZH=QTY(this);if(c=g.P3(this.Wq.experiments,"html5_block_pip_safari_delay"))this.uX= new g.B4(this.SG,c,this),g.l(this,this.uX);j9=this.Wq.LB;c=g.P3(this.Wq.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.uR=new g.aS(c),g.l(this,this.uR),this.events.Z(this.uR,"tick",function(){H.r_&&rKu.wH("apit",H.r_);H.r_=rKu.Il()})); this.nH.publish("applicationInitialized");this.logger.debug("constructor end")}; QTY=function(z){function p(c){c.stack&&c.stack.indexOf("player")!==-1&&(z.dA()||z.cM()).uT(c)} nh.subscribe("handleError",p);Bh.push(p);return function(){nh.unsubscribe("handleError",p);var c=Bh.indexOf(p);c!==-1&&Bh.splice(c,1)}}; jTS=function(z){var p=new g.GU(z.Wq,z.config.args);z.nH.publish("initialvideodatacreated",p);return J0(z,1,p,!1)}; F3Y=function(z){var p=z.cM();p.setPlaybackRate(z.Wq.X?1:UfD(z,Number(g.Fy("yt-player-playback-rate"))||1));p.pn(z.K7,z);p.F_()}; vzf=function(z){var p="",c=$fi(z);c.indexOf("//")===0&&(c=z.Wq.protocol+":"+c);var B=c.lastIndexOf("/base.js");B!==-1&&(p=c.substring(0,B+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(p)||g.oc(Error("Player module URL mismatch: "+(c+" vs "+p+".")));p=new xzu(z.nH,p);sTY(z,p);return p}; sTY=function(z,p){var c={};c=(c.destroyed=function(){z.onApiChange()},c); p.D=c}; l4W=function(z){if(z.Wq.storeUserVolume){z=g.Fy("yt-player-volume")||{};var p=z.volume;z={volume:isNaN(p)?100:g.MQ(Math.floor(p),0,100),muted:!!z.muted}}else z={volume:100,muted:z.Wq.mute};return z}; Mz=function(z){z.mediaElement=z.Wq.deviceIsAudioOnly?new g.GL(g.i4("AUDIO")):u9.pop()||new g.GL(g.i4("VIDEO"));g.l(z,z.mediaElement);var p=z.dA();p&&p.setMediaElement(z.mediaElement);try{z.Wq.ow?(z.g0&&z.events.vy(z.g0),z.g0=z.events.Z(z.mediaElement,"volumechange",z.mPA)):(z.mediaElement.WN(z.s5.muted),z.mediaElement.setVolume(z.s5.volume/100))}catch(H){z.R3("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g, "_")));return}g.CG(z.sJ);kRS(z);p=z.template;var c=z.mediaElement.XQ();p.zl=c;p.QG=!1;p.zl.parentNode||DN(p.Yu,p.zl,0);p.Xf=new g.J_(0,0,0,0);W3D(p);x1(p);c=p.zl;g.Eo(c,"video-stream");g.Eo(c,g.Ga.MAIN_VIDEO);var B=p.app.N();B.EB&&c.setAttribute("data-no-fullscreen","true");B.Y("html5_local_playsinline")?"playsInline"in eU()&&(c.playsInline=!0):B.Ob&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));B.kY&&p.zl&&p.Z(c,"click",c.play,c);try{z.mediaElement.activate()}catch(H){z.R3("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g,"_")))}}; GRE=function(z){if(!gzN(z)){var p=z.cM().h1();p&&(p=p.Ew(),p instanceof Promise&&p.catch(function(){})); Y1(z,YN(z.getPlayerStateObject()))}}; kRS=function(z){var p=z.mediaElement;jU()?z.sJ.Z(p,"webkitpresentationmodechanged",z.xii):window.document.pictureInPictureEnabled&&(z.sJ.Z(p,"enterpictureinpicture",function(){z.o6(!0)}),z.sJ.Z(p,"leavepictureinpicture",function(){z.o6(!1)})); cL&&(z.sJ.Z(p,"webkitbeginfullscreen",function(){z.Re(3)}),z.sJ.Z(p,"webkitendfullscreen",function(){z.Re(0)}))}; NZi=function(z,p){var c=p.getPlayerType(),B=z.bk.D[c]||null;p!==z.cM()&&p!==B&&(B==null||B.l_(),z.bk.D[c]=p)}; f4B=function(z,p){p=p===void 0?!0:p;z.logger.debug("start clear presenting player");var c;if(c=z.bZ){c=z.bZ;var B=z.mediaElement;c=!!B&&B===c.mediaElement}c&&(z.Gk(),Mz(z));if(c=z.dA())c.Gk(!p),c.Hh(z.Ng,z),c.getPlayerType()!==1&&c.l_();p=z.bk;p.Wq.Y("web_player_present_empty")?p.K=p.W:p.K=null;z.logger.debug("finish clear presenting player")}; g.zqx=function(z,p,c,B){var H=z.VS;p===2&&(H=new eFQ(z.Wq));return new g.VI(z.Wq,p,H,z.template,function(T,b,D){z.nH.publish(T,b,D)},function(){return z.nH.getVisibilityState()},z.visibility,z,c,B)}; J0=function(z,p,c,B,H){z=g.zqx(z,p,c,H);z=new g.sS(z);B&&z.F_();return z}; mA=function(z,p){return z.Mn(p)?z.cM():p}; h0=function(z,p){var c=z.dA(),B=z.cM();return c&&p===B&&z.Mn(p)&&z.Mn(c)?c:p}; BPS=function(z){z.logger.debug("start application playback");if(z.cM().getPlayerState().isError())z.logger.debug("start application playback done, player in error state");else{var p=Pz(z);z.CB().isLoaded();p&&z.qD(6);pMf(z);OyD(z.Mi)||cBv(z)}}; cBv=function(z){if(!Pz(z)){var p=Kn(z.Mi);p&&!p.created&&E1W(z.Mi)&&(z.logger.debug("reload ad module"),p.create())}}; pMf=function(z){z.logger.debug("start presenter playback");var p=z.getVideoData(),c=z.Mi;OyD(c)||c.P$();!I4S&&c.T.Y("html5_allow_asmjs")&&u5_(c);SZ(c,"embed");SZ(c,"kids");SZ(c,"remote");SZ(c,"miniplayer");SZ(c,"offline");SZ(c,"unplugged");SZ(c,"ypc",!1,!0);SZ(c,"ypc_clickwrap",!1,!0);SZ(c,"yto",!1,!0);SZ(c,"webgl",!1,!0);wzu(c)||(SZ(c,"captions",!0),SZ(c,"endscreen"),c.cR()||c.Hm(),SZ(c,"creatorendscreen",!0));c.Dx();z.nH.publish("videoready",p)}; A0=function(z){z=z.CB();z.NP();return rG(z)}; nzY=function(z){z.logger.debug("start prepare initial playback");z.cC();var p=z.config.args;Mz(z);z.Y("web_player_present_empty")&&z.events.Z(window,"resize",z.Dh);var c=z.CB();z.nH.iA("onVolumeChange",z.s5);if(p&&FjW(p)){var B=fm(z.Wq);B&&!z.OB&&(p.fetch=0);var H=g.yB(z.Wq);H&&!z.OB&&(p.fetch=0);Od(z,p);g.yB(z.Wq)&&z.VS.tick("ep_pr_s");if(!B||z.OB)if(H&&!z.OB)HXB(z);else if(!c.NP())z.playlist.onReady(function(){wq(z)})}z.Tj(z.cM(),!1,!0); g.r(z.cM().getPlayerState(),128)||(p=m6x(!z.Wq.deviceIsAudioOnly),p==="fmt.noneavailable"?z.R3("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):p==="html5.missingapi"?z.R3(p,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.NP()&&A0(z)&&(z.Wq.Hf||z.Wq.sF)?R7(z):c.gy?z.nH.mutedAutoplay({durationMode:c.mutedAutoplayDurationMode}):g.Fy("yt-player-playback-on-reload")?(g.MG("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!z.Wq.tD}),g.Iw("yt-player-playback-on-reload",!1), R7(z)):bi(z.Wq)||iXS(z),g.cX(z.Wq)||BW(z.Wq)==="MWEB"?(g.iR(g.bR(),function(){Si(z)}),g.iR(g.bR(),function(){PIE()})):(Si(z),PIE()),z.logger.debug("finish prepare initial playback"))}; Si=function(z){if(!z.Y("use_rta_for_player"))if(z.Y("fetch_att_independently"))g.H4(z.qm);else{var p=z.getVideoData().botguardData;p&&g.nk(p,z.Wq,z.getVideoData().Eo||"")}}; iXS=function(z){z.logger.debug("start initialize to CUED mode");z.nH.publish("initializingmode");z.qD(2);z.Y("embeds_web_enable_defer_loading_remote_js")&&g.HX(z.Wq)?g.iR(g.bR(),function(){SZ(z.Mi,"remote")}):SZ(z.Mi,"remote"); SZ(z.Mi,"miniplayer");z.logger.debug("initialized to CUED mode")}; R7=function(z){z.logger.debug("start initialize application playback");var p=z.cM();if(g.r(p.getPlayerState(),128))return!1;var c=p.getVideoData();A0(z)&&z.Wq.sF&&(u9.length&&z.F2?($1(z,{muted:!1,volume:z.s5.volume},!1),Ky(z,!1)):u9.length||z.s5.muted||($1(z,{muted:!0,volume:z.s5.volume},!1),Ky(z,!0)));A0(z)&&g.yB(z.Wq)&&c.mutedAutoplay&&($1(z,{muted:!0,volume:z.s5.volume},!1),Ky(z,!0));c.KV&&$1(z,{muted:!0,volume:z.s5.volume},!1);TPQ(z,1,c,!1);z.nH.publish("initializingmode");z.Tj(z.cM());z.qD(3); var B;if(!(B=!z.Wq.gh)){if(B=z.bZ){B=z.bZ;var H=z.mediaElement;B=!!H&&H===B.mediaElement}B=B&&z.Qg}B&&(z.Gk(),Mz(z),p.setMediaElement(z.mediaElement));p.Rl();if(g.r(p.getPlayerState(),128))return!1;c.v0||Y1(z,3);return z.Qg=!0}; Pz=function(z){z=eq(z.Mi);return!!z&&z.loaded}; bX_=function(z,p){if(!z.IR)return!1;var c=z.IR.startTimeMs*.001-1,B=z.IR.endTimeMs*.001;z.IR.type==="repeatChapter"&&B--;return Math.abs(p-c)<=1E-6||Math.abs(p-B)<=1E-6||p>=c&&p<=B}; tXQ=function(z){var p=z.dA();p&&ta(p.getVideoData())&&!p.Pg()&&(p=VXB(z)*1E3-z.getVideoData().bR,z.Y("html5_gapless_new_slr")?(z=z.ys,DYu(z.app,"gaplessshortslooprange"),p=new g.Xq(0,p,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(z=z.app.dA())&&z.addCueRange(p)):z.setLoopRange({startTimeMs:0,endTimeMs:p,type:"shortsLoop"}))}; XMi=function(z){var p=z.cM();if(!(g.r(p.getPlayerState(),64)&&z.CB().isLivePlayback&&z.IR.startTimeMs<5E3)){if(z.IR.type==="repeatChapter"){var c,B=(c=vHY(z.mU()))==null?void 0:c.N_(),H;c=(H=z.getVideoData())==null?void 0:H.Rk;B instanceof g.o0&&c&&(H=c[D2(c,z.IR.startTimeMs)],B.renderChapterSeekingAnimation(0,H.title));isNaN(Number(z.IR.loopCount))?z.IR.loopCount=0:z.IR.loopCount++;z.IR.loopCount===1&&z.nH.AD("innertubeCommand",z.getVideoData().sK)}B={VL:"application_loopRangeStart"};if(z.IR.type=== "clips"||z.IR.type==="shortsLoop")B.seekSource=58;p.seekTo(z.IR.startTimeMs*.001,B)}}; UfD=function(z,p){var c=z.nH.getAvailablePlaybackRates();p=Number(p.toFixed(2));z=c[0];c=c[c.length-1];p<=z?p=z:p>=c?p=c:(z=Math.floor(p*100+.001)%5,p=z===0?p:Math.floor((p-z*.01)*100+.001)/100);return p}; VXB=function(z,p){p=z.Mb(p);if(!p)return z.bk.W.tI();p=mA(z,p);return uu(z,p.tI(),p)}; uu=function(z,p,c){if(z.Mn(c)){c=c.getVideoData();if(a7(z))c=p;else{z=z.gU;for(var B=g.m(z.K),H=B.next();!H.done;H=B.next())if(H=H.value,c.WU===H.WU){p+=H.iQ/1E3;break}B=p;z=g.m(z.K);for(H=z.next();!H.done;H=z.next()){H=H.value;if(c.WU===H.WU)break;var T=H.iQ/1E3;if(T1&&(H=!1);if(!z.KU||H!==p){c=c.lock(H?"portrait":"landscape");if(c!=null)c["catch"](function(){}); z.KU=!0}}else z.KU&&(z.KU=!1,c.unlock())}; Cy=function(z,p,c){z.nH.publish(p,c);var B=g.yi(z.Wq)||g.FB(z.Wq)||g.rn(z.Wq);if(c&&B){switch(p){case "cuerangemarkersupdated":var H="onCueRangeMarkersUpdated";break;case "cuerangesadded":H="onCueRangesAdded";break;case "cuerangesremoved":H="onCueRangesRemoved"}H&&z.nH.AD(H,c.map(function(T){return{getId:function(){return this.id}, end:T.end,id:T.getId(),namespace:T.namespace==="ad"?"ad":"",start:T.start,style:T.style,visible:T.visible}}))}}; ei=function(z,p,c,B,H,T){c=c===void 0?!0:c;var b=z.Mb(H);b&&(b.getPlayerType()===2&&!z.Mn(b)||g.yN(b.getVideoData()))||(z.getPresentingPlayerType()===3?z.bk.UY.seekTo(p,{Gb:!c,i7:B,VL:"application",seekSource:T}):(b&&b===z.cM()&&z.IR&&!bX_(z,p)&&z.setLoopRange(null),z.seekTo(p,c,B,H,T)))}; uEx=function(z,p,c,B){c&&(z.Gk(),Mz(z));c=z.dA();c.qG(p);var H=z.getVideoData(),T={};T.video_id=H.videoId;T.adformat=H.adFormat;H.isLivePlayback||(T.start=c.getCurrentTime(),T.resume="1");H.isLivePlayback&&ha(H)&&g.d9(z.Wq)&&(T.live_utc_start=c.S5(),T.resume="1");H.Dt&&(T.vvt=H.Dt);H.V&&(T.vss_credentials_token=H.V,T.vss_credentials_token_type=H.x8);H.oauthToken&&(T.oauth_token=H.oauthToken);H.dh&&(T.force_gvi=H.dh);T.autoplay=1;T.reload_count=H.Wy+1;T.reload_reason=p;H.qv&&(T.unplugged_partner_opt_out= H.qv);H.Ye&&(T.ypc_is_premiere_trailer=H.Ye);H.playerParams&&(T.player_params=H.playerParams);z.loadVideoByPlayerVars(T,void 0,!0,void 0,void 0,B);p==="signature"&&z.Cv&&cBv(z)}; aFY=function(z,p){z.CB().autonavState=p;g.Iw("yt-player-autonavstate",p);z.nH.publish("autonavchange",p)}; ZXY=function(z){var p=z.getVideoData().TL,c=z.Wq.UH,B=z.isInline()&&!z.getVideoData().UC,H=z.mediaElement;p||c||B?H.aF():(H.zB(),$1(z,z.s5))}; ZT=function(z){var p=Kn(z.mU());p&&p.created&&(z.logger.debug("reset ad module"),p.destroy())}; a7=function(z){return z.getVideoData().enableServerStitchedDai&&!!z.Cv}; Ltx=function(z,p){p.bounds=z.getBoundingClientRect();for(var c=g.m(["display","opacity","visibility","zIndex"]),B=c.next();!B.done;B=c.next())B=B.value,p[B]=A_(z,B);p.hidden=!!z.hidden}; $fi=function(z){if(z.webPlayerContextConfig){var p=z.webPlayerContextConfig.trustedJsUrl;return p?Z_(p).toString():z.webPlayerContextConfig.jsUrl}return z.config.assets&&z.config.assets.js?z.config.assets.js:""}; dYN=function(z,p){var c=z.Mb(1);if(c){if(c.getVideoData().clientPlaybackNonce===p)return c;if((z=z.Xo.W)&&z.getVideoData().clientPlaybackNonce===p)return z}return null}; Wtu=function(z){return z.name==="TypeError"&&z.stack.includes("/s/player/")&&s0()<=105}; yBW=function(z){return z.isTimeout?"NO_BID":"ERR_BID"}; C_V=function(){var z=null;C8Y().then(function(p){return z=p},function(p){return z=yBW(p)}); return z}; eqV=function(){var z=WN(1E3,"NO_BID");return g.Kf(Uov([C8Y(),z]).zL(yBW),function(){z.cancel()})}; lu=function(z){return z.t1?g.k4(g.sA(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; vz=function(z){this.player=z;this.D=this.W=1}; IFx=function(z,p,c,B,H,T){p.client||(p.client={});z.player.N().Y("h5_remove_url_for_get_ad_break")||(p.client.originalUrl=c);var b=q_(c),D=g.nf(c)?!1:!0;(b||D)&&typeof Intl!=="undefined"&&(p.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);D=g.nf(c)?!1:!0;if(b||D||B!==""){var t={};c=VS(h6(B)).split("&");var X=new Map;c.forEach(function(x){x=x.split("=");x.length>1&&X.set(x[0].toString(),decodeURIComponent(x[1].toString()))}); X.has("bid")&&(t.bid=X.get("bid"));t.params=[];lFW.forEach(function(x){X.has(x)&&(x={key:x,value:X.get(x)},t.params.push(x))}); vkx(z,t);p.adSignalsInfo=t}p.client.unpluggedAppInfo||(p.client.unpluggedAppInfo={});p.client.unpluggedAppInfo.enableFilterMode=!1;c=H.W.cosver;c!=null&&c!=="cosver"&&(p.client.osVersion=c);c=H.W.cplatform;c!=null&&c!=="cplatform"&&c!==""&&(p.client.platform=c);c=H.W.cmodel;c!=null&&c!=="cmodel"&&(p.client.deviceModel=c);c=H.W.cplayer;c!=null&&c!=="cplayer"&&(p.client.playerType=c);c=H.W.cbrand;c!=null&&c!=="cbrand"&&(p.client.deviceMake=c);p.user||(p.user={});p.user.lockedSafetyMode=!1;(H.Y("embeds_web_enable_iframe_api_send_full_embed_url")|| H.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.jF(H)&&FKE(p,T,z.player.getPlayerState(1))}; okB=function(z,p){var c=!1;if(p==="")return c;p.split(",").forEach(function(B){var H={},T={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},b="ACTIVE";B[0]==="!"&&(B=B.substring(1),b="INACTIVE");B=B.split("-");B.length<3||(B[0]in j4D&&(T.clientName=j4D[B[0]]),B[1]in FtY&&(T.platform=FtY[B[1]]),T.applicationState=b,T.clientVersion=B.length>2?B[2]:"",H.remoteClient=T,z.remoteContexts?z.remoteContexts.push(H):z.remoteContexts=[H],c=!0)}); return c}; Q4u=function(z){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in nku))return!1;z=z.split(RegExp("[:&]"));var p=nku.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(p/31)).toString();p=1<=2?b[1]:"";var D=UYY.test(p),t=s4_.exec(p);t=t!=null&&t.length>=2?t[1]:"";var X=k0W.exec(p);X=X!=null&&X.length>=2&&!Number.isNaN(Number(X[1]))?Number(X[1]):1;var x=gkN.exec(p);x=x!=null&&x.length>=2?x[1]:"0";var E=rX(z.player.N().qa),q=z.player.getVideoData(1),J=g.Tl(q.Ra,!0),M="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";IFx(z,J,p,M.toString(),z.player.N(), q);q={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:20166,autonavState:lu(z.player.N())};B&&(B={},okB(B,c.YT_REMOTE)&&(q.mdxContext=B));if(B=G0W.includes(E)?void 0:g.nN("PREF")){for(var P=B.split(RegExp("[:&]")),O=0,R=P.length;O1&&K[1].toUpperCase()==="TRUE"){J.user.lockedSafetyMode=!0;break}}q.autoCaptionsDefaultOn= Q4u(B)}p=NPB.exec(p);(p=p!=null&&p.length>=2?p[1]:"")&&t&&(J.user.credentialTransferTokens=[{token:p,scope:"VIDEO"}]);p={contentPlaybackContext:q};b={adBlock:Math.trunc(c.AD_BLOCK),params:b,breakIndex:X,breakPositionMs:x,clientPlaybackNonce:c.CPN,topLevelDomain:E,isProxyAdTagRequest:D,context:J,adSignalsInfoString:VS(h6(M.toString())),overridePlaybackContext:p};H!==void 0&&(b.cueProcessedMs=Math.round(H).toString());t&&(b.videoId=t);c.LIVE_TARGETING_CONTEXT&&(b.liveTargetingParams=c.LIVE_TARGETING_CONTEXT); c.AD_BREAK_LENGTH&&(b.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());T&&(b.driftFromHeadMs=T.toString());b.currentMediaTimeMs=Math.round(z.player.getCurrentTime(1)*1E3);(z=z.player.getGetAdBreakContext())&&(b.getAdBreakContext=z);return b}; z0v=function(){vz.apply(this,arguments)}; ppS=function(z,p,c,B,H){var T=c.mm;var b=c.GZ;var D=z.player.N().C2,t=0;c.cueProcessedMs&&b&&!T&&(c=b.end-b.start,c>0&&(t=Math.floor(c/1E3)));var X={AD_BLOCK:H,AD_BREAK_LENGTH:T?T.UI:t,AUTONAV_STATE:lu(z.player.N()),CA_TYPE:"image",CPN:z.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:z.player.yy()*1E3,LACT:y0(),LIVE_INDEX:T?z.D++:1,LIVE_TARGETING_CONTEXT:T&&T.context?T.context:"",MIDROLL_POS:b?Math.round(b.start/1E3):0,MIDROLL_POS_MS:b?Math.round(b.start):0,VIS:z.player.getVisibilityState(), P_H:z.player.Hq().fD().height,P_W:z.player.Hq().fD().width,YT_REMOTE:D?D.join(","):""},x=mI(Y5);Object.keys(x).forEach(function(E){x[E]!=null&&(X[E.toUpperCase()]=x[E].toString())}); B!==""&&(X.BISCOTTI_ID=B);B={};M_(p)&&(B.sts="20166",(z=z.player.N().forcedExperiments)&&(B.forced_experiments=z));return E0(g.l8(p,X),B)}; c2Q=function(z,p){var c=z.player.N(),B,H=(B=z.player.getVideoData(1))==null?void 0:B.oauthToken;return g.tj(c,H).then(function(T){if(T&&J6()){var b=r$();US(b,T)}return g.HY(z.player.Jn(b),p,"/youtubei/v1/player/ad_break").then(function(D){return D})})}; Bav=function(z){this.u8=z}; HLx=function(z){this.T=z}; iLf=function(z){this.u8=z}; bLS=function(z){g.e.call(this);this.W=z;this.Qf=Taf(this)}; Taf=function(z){var p=new mMi(z.W.lk);g.l(z,p);z=[new Bav(z.W.u8),new HLx(z.W.T),new iLf(z.W.u8),new IN(z.W.MB,z.W.rP),new F6,new QV(z.W.Xj,z.W.P0,z.W.u8),new j7,new v8];z=g.m(z);for(var c=z.next();!c.done;c=z.next())hCf(p,c.value);z=g.m(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=z.next();!c.done;c=z.next())oN(p,c.value,function(){}); return p}; I7=function(z){var p=z.oa,c=z.X3;z=z.ze;var B=new yLV,H={K2:new MTf(p.get(),c),X3:c};return{BM:new Dx(c,z,p,H),context:H,WQ:B}}; ji=function(z,p,c,B,H){g.e.call(this);this.K=p;this.VI=c;this.oa=B;this.HU=H;this.listeners=[];var T=new WL(this);g.l(this,T);T.Z(z,"internalAbandon",this.zE);this.addOnDisposeCallback(function(){g.CG(T)})}; F5=function(z){this.T=z;this.adVideoId=this.W=this.videoId=this.adCpn=this.contentCpn=null;this.L=!0;this.K=this.D=!1;this.adFormat=null;this.X="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; VwN=function(z){z.contentCpn=null;z.adCpn=null;z.videoId=null;z.adVideoId=null;z.adFormat=null;z.X="AD_PLACEMENT_KIND_UNKNOWN";z.actionType="unknown_type";z.D=!1;z.K=!1}; D8B=function(z,p){z=g.m(p);for(p=z.next();!p.done;p=z.next())if((p=p.value.renderer)&&(p.instreamVideoAdRenderer||p.linearAdSequenceRenderer||p.sandwichedLinearAdRenderer||p.instreamSurveyAdRenderer)){kw("ad_i");g.gO({isMonetized:!0});break}}; twN=function(z){var p;(p=z.T.getVideoData(1))!=null&&p.T$&&(z.K=!1,p={},z.W&&z.videoId&&(p.cttAuthInfo={token:z.W,videoId:z.videoId}),Gl("video_to_ad",p))}; GC=function(z){z.K=!1;var p={};z.W&&z.videoId&&(p.cttAuthInfo={token:z.W,videoId:z.videoId});Gl("ad_to_video",p);XpY(z)}; XpY=function(z){if(z.D)if(z.X==="AD_PLACEMENT_KIND_START"&&z.actionType==="video_to_ad")rO("video_to_ad");else{var p={adBreakType:Kg(z.X),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:z.videoStreamType};z.actionType==="ad_to_video"?(z.contentCpn&&(p.targetCpn=z.contentCpn),z.videoId&&(p.targetVideoId=z.videoId)):(z.adCpn&&(p.targetCpn=z.adCpn),z.adVideoId&&(p.targetVideoId=z.adVideoId));z.adFormat&&(p.adType=z.adFormat);z.contentCpn&& (p.clientPlaybackNonce=z.contentCpn);z.videoId&&(p.videoId=z.videoId);z.adCpn&&(p.adClientPlaybackNonce=z.adCpn);z.adVideoId&&(p.adVideoId=z.adVideoId);g.gO(p,z.actionType)}}; o7=function(z){g.e.call(this);this.T=z;this.W=new Map;this.K=new WL(this);g.l(this,this.K);this.K.Z(this.T,g.E5("ad"),this.onCueRangeEnter,this);this.K.Z(this.T,g.qT("ad"),this.onCueRangeExit,this)}; x8W=function(z,p,c,B,H){g.Xq.call(this,p,c,{id:z,namespace:"ad",priority:H,visible:B})}; ny=function(z){this.T=z}; Q8=function(z){this.T=z;g.P3(this.T.N().experiments,"tv_pacf_logging_sample_rate")}; Zp=function(z,p){p=p===void 0?!1:p;return z.T.N().Y("html5_ssap_force_ads_ctmp")?!0:(p||z.T.N().OW())&&z.T.N().Y("html5_ssap_pacf_qoe_ctmp")}; rq=function(z){var p,c;return(c=(p=z.T.getVideoData(1))==null?void 0:g.pT(p))!=null?c:!1}; c$=function(z,p){return z.T.N().Y(p)}; E9Y=function(z){return z.T.N().Y("substitute_ad_cpn_macro_in_ssdai")}; uq=function(z){var p,c,B;return((p=z.T.getVideoData(1).getPlayerResponse())==null?void 0:(c=p.playerConfig)==null?void 0:(B=c.daiConfig)==null?void 0:B.enableServerStitchedDai)||!1}; SWY=function(z){return z.T.N().Y("html5_enable_vod_slar_with_notify_pacf")}; qhS=function(z){return z.T.N().Y("html5_recognize_predict_start_cue_point")}; bq=function(z){return z.T.N().experiments.JD("enable_desktop_player_underlay")}; J2x=function(z){return z.T.N().experiments.JD("html5_load_empty_player_in_media_break_sub_lra")}; Ih=function(z){return z.T.N().experiments.JD("html5_load_ads_instead_of_cue")}; j4=function(z){return z.T.N().experiments.JD("html5_preload_ads")}; Bt=function(z){return z.T.N().experiments.JD("enable_ads_control_flow_deterministic_id_generation")}; MwY=function(z){return z.T.N().experiments.JD("enable_desktop_discovery_video_abandon_pings")||g.zU(z.T.N())}; Yhv=function(z){return z.T.N().experiments.JD("enable_progres_commands_lr_feeds")}; Ud=function(z){return z.T.N().experiments.JD("html5_cuepoint_identifier_logging")}; RCQ=function(z){return z.T.N().experiments.JD("enable_postmessage_tunnel_for_ad_clicks")}; m8_=function(z){switch(z){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}}; h0D=function(){g.JQ.call(this);var z=this;this.W={};this.addOnDisposeCallback(function(){for(var p=g.m(Object.keys(z.W)),c=p.next();!c.done;c=p.next())delete z.W[c.value]})}; sd=function(){if(PCB===null){PCB=new h0D;CE(aA).K="b";var z=CE(aA),p=Or(z)=="h"||Or(z)=="b",c=!(jP(),!1);p&&c&&(z.L=!0,z.V=new yei)}return PCB}; A2u=function(z,p,c){z.W[p]=c}; OL_=function(z){switch(z){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; k1=function(z,p,c){this.VI=z;this.T=p;this.X3=c;this.K=new Set;this.W=new Map;sd().subscribe("adactiveviewmeasurable",this.Op,this);sd().subscribe("adfullyviewableaudiblehalfdurationimpression",this.BT,this);sd().subscribe("adviewableimpression",this.gx,this);sd().subscribe("adaudioaudible",this.xd,this);sd().subscribe("adaudiomeasurable",this.Gy,this)}; Gp=function(z,p,c){var B=c.w5,H=c.G6,T=c.listener,b=c.PD;c=c.v1===void 0?!1:c.v1;if(z.W.has(p))P7("Unexpected registration of layout in LidarApi");else{if(b){if(z.K.has(b))return;z.K.add(b)}z.W.set(p,T);Ek(jP().qb,"fmd",1);Q2i(CE(aA),B);var D=c?p:void 0;A2u(sd(),p,{NH:function(){if(!H)return{};var t=z.T.getPresentingPlayerType(!0),X;return(X=z.T.getVideoData(t))!=null&&X.isAd()?{currentTime:z.VI.get().getCurrentTimeSec(t,!1,D),duration:H,isPlaying:gq(z.VI.get(),t).isPlaying(),isVpaid:!1,isYouTube:!0, volume:z.VI.get().isMuted()?0:z.VI.get().getVolume()/100}:{}}})}}; Nz=function(z,p){z.W.has(p)?(z.W.delete(p),delete sd().W[p]):P7("Unexpected unregistration of layout in LidarApi")}; wpV=function(z,p){if(z.T.isLifaAdPlaying()){var c=z.T.Ub(!0,!0);z.U$(p,c.width*.5*1.1,c.height*.25*1.1,c.width*.5*.9,c.height*.5*.9)}}; $8f=function(z,p,c){var B={};R0v(z,B,p,c);ShQ(B);B.LACT=fy(function(){return y0().toString()}); B.VIS=fy(function(){return z.getVisibilityState().toString()}); B.SDKV="h.3.0";B.VOL=fy(function(){return z.isMuted()?"0":Math.round(z.getVolume()).toString()}); B.VED="";return B}; KRE=function(z,p){var c={};if(p)return c;if(!z.kind)return g.Fr(Error("AdPlacementConfig without kind")),c;if(z.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||z.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!z.adTimeOffset||!z.adTimeOffset.offsetStartMilliseconds)return g.Fr(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=fy(YA(Math.round(Tk(z.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=fy(YA("0"));return c}; fy=function(z){return{toString:function(){return z()}}}; uzf=function(z,p,c){function B(D,t){(t=c[t])&&(T[D]=t)} function H(D,t){(t=c[t])&&(T[D]=b(t))} if(!c||g.y3(c))return z;var T=Object.assign({},z),b=p?encodeURIComponent:function(D){return D}; H("DV_VIEWABILITY","doubleVerifyViewability");H("IAS_VIEWABILITY","integralAdsViewability");H("MOAT_INIT","moatInit");H("MOAT_VIEWABILITY","moatViewability");B("GOOGLE_VIEWABILITY","googleViewability");B("VIEWABILITY","viewability");return T}; R0v=function(z,p,c,B){p.CPN=fy(function(){var H;(H=z.getVideoData(1))?H=H.clientPlaybackNonce:(g.oc(Error("Video data is null.")),H=null);return H}); p.AD_MT=fy(function(){if(B!=null)var H=B;else{var T=c;z.N().Y("html5_ssap_use_cpn_to_get_time")||(T=void 0);if(z.N().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||z.N().Y("enable_desktop_discovery_pings_ad_mt_macro")||g.zU(z.N())){var b=z.getPresentingPlayerType(!0),D;H=((D=z.getVideoData(b))==null?0:D.isAd())?alf(z,b,T):0}else H=alf(z,2,T)}return Math.round(Math.max(0,H*1E3)).toString()}); p.MT=fy(function(){return Math.round(Math.max(0,z.getCurrentTime(1,!1)*1E3)).toString()}); p.P_H=fy(function(){return z.Hq().fD().height.toString()}); p.P_W=fy(function(){return z.Hq().fD().width.toString()}); p.PV_H=fy(function(){return z.Hq().getVideoContentRect().height.toString()}); p.PV_W=fy(function(){return z.Hq().getVideoContentRect().width.toString()})}; ShQ=function(z){z.CONN=fy(YA("0"));z.WT=fy(function(){return Date.now().toString()})}; alf=function(z,p,c){return c!==void 0?z.getCurrentTime(p,!1,c):z.getCurrentTime(p,!1)}; ZLu=function(){}; LRB=function(z,p,c,B,H){var T,b,D,t,X,x,E,q,J,M,P,O,R;g.L(function(K){switch(K.W){case 1:T=!!p.scrubReferrer;b=g.l8(p.baseUrl,uzf(c,T,B));D={};if(!p.headers){K.hD(2);break}t=z.X();if(!t.W){X=t.getValue();K.hD(3);break}return g.a(K,t.W,4);case 4:X=K.K;case 3:x=X;E=g.m(p.headers);for(q=E.next();!q.done;q=E.next())switch(J=q.value,J.headerType){case "VISITOR_ID":g.pN("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.pN("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.pN("EOM_VISITOR_DATA")&&(D["X-Goog-EOM-Visitor-Id"]= g.pN("EOM_VISITOR_DATA"));break;case "USER_AUTH":x&&(D.Authorization="Bearer "+x);break;case "PLUS_PAGE_ID":(M=z.L())&&(D["X-Goog-PageId"]=M);break;case "AUTH_USER":P=z.W();!x&&P&&(D["X-Goog-AuthUser"]=P);break;case "DATASYNC_ID":if(O=void 0,(O=z.D())==null?0:O.JD("enable_datasync_id_header_in_web_vss_pings"))R=z.K(),q_(b)&&g.pN("LOGGED_IN")&&R&&(D["X-YouTube-DataSync-Id"]=R)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];case 2:g.s3(b,void 0,T,Object.keys(D).length!== 0?D:void 0,"",!0,H),g.Ai(K)}})}; d8i=function(z,p,c,B,H){this.X=z;this.L=p;this.W=c;this.K=B;this.D=H}; WRf=function(z,p){this.W=z;this.X3=p}; zf=function(z,p,c,B,H,T,b){var D=D===void 0?new d8i(function(){var t=z.N(),X=z.getVideoData(1);return g.tj(t,X?g.se(X):"")},function(){return z.N().pageId},function(){return z.N().tD},function(){var t; return(t=z.N().datasyncId)!=null?t:""},function(){return z.N().experiments}):D; this.T=z;this.K=p;this.Dw=c;this.oa=B;this.BM=H;this.X3=T;this.WQ=b;this.X=D;this.Q2=null;this.W=new Map;this.D=new WRf(D,this.X3)}; CCN=function(z,p,c,B,H){var T=eC(z.K.get(),c);T?(c=eD(z,y2Y(T),T,void 0,void 0,B),p.hasOwnProperty("baseUrl")?z.X.send(p,c):z.D.send(p,c,{},H)):P7("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; SLW=function(z,p,c,B,H,T){B=B===void 0?[]:B;var b=eC(z.K.get(),p);if(b){var D=z.Dw.get().D_(p,c),t=eD(z,y2Y(b),b,H,T);B.forEach(function(X,x){X.baseUrl&&(z.D.send(X.baseUrl,t,D,X.attributionSrcMode),X.serializedAdPingMetadata&&z.BM.O0("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,b,new HbS(X,x),void 0,void 0,b.adLayoutLoggingData))})}else P7("Trying to track from an unknown layout.",void 0,void 0,{layoutId:p, trackingType:c})}; aD=function(z,p){z.T.sendVideoStatsEngageEvent(p,void 0,2)}; iA=function(z,p){g.MG("adsClientStateChange",p)}; e0E=function(z,p){z.W.has(p.Uq())?P7("Trying to register an existing AdErrorInfoSupplier."):z.W.set(p.Uq(),p)}; llu=function(z,p){z.W.delete(p.Uq())||P7("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Vw=function(z,p,c){typeof c==="string"?z.T.getVideoData(1).aT(p,c):z.T.getVideoData(1).KH(p,c)}; y2Y=function(z){var p=Ei(z.clientMetadata,"metadata_type_ad_placement_config");z=Ei(z.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:p,tE:z}}; eD=function(z,p,c,B,H,T){var b=c?v9B(z):{},D=c?IlW(z,c.layoutId):{},t=jCY(z),X,x=H!=null?H:(X=wV(z.oa.get(),2))==null?void 0:X.clientPlaybackNonce;H=void 0;if(c){var E;if((E=z.WQ.W.get(c.layoutId))==null?0:E.v1)H=c.layoutId}E={};z=Object.assign({},$8f(z.T,H,B),KRE(p.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),D,b,t,(E.FINAL=fy(function(){return"1"}),E.AD_CPN=fy(function(){return x||""}),E)); (c==null?void 0:c.renderingContent)!==void 0||(z.SLOT_POS=fy(function(){return(p.tE||0).toString()})); c={};T=Object.assign({},z,T);z=g.m(Object.values(FRv));for(B=z.next();!B.done;B=z.next())B=B.value,b=T[B],b!=null&&b.toString()!=null&&(c[B]=b.toString());return c}; v9B=function(z){var p={},c,B=(c=z.Q2)==null?void 0:c.VT/1E3;B!=null&&(p.SURVEY_ELAPSED_MS=fy(function(){return Math.round(B*1E3).toString()})); p.SURVEY_LOCAL_TIME_EPOCH_S=fy(function(){return Math.round(Date.now()/1E3).toString()}); return p}; IlW=function(z,p){z=z.W.get(p);if(!z)return{};z=z.rV();if(!z)return{};p={};return p.YT_ERROR_CODE=z.l7.toString(),p.ERRORCODE=z.xf.toString(),p.ERROR_MSG=z.errorMessage,p}; jCY=function(z){var p={},c=z.T.getVideoData(1);p.ASR=fy(function(){var B;return(B=c==null?void 0:c.qt)!=null?B:null}); p.EI=fy(function(){var B;return(B=c==null?void 0:c.eventId)!=null?B:null}); return p}; pY=function(z,p,c){g.e.call(this);this.T=z;this.Lx=p;this.X3=c;this.listeners=[];this.Fk=null;this.sT=new Map;p=new g.or(this);g.l(this,p);p.Z(z,"videodatachange",this.EyA);p.Z(z,"serverstitchedvideochange",this.GeA);this.FU=wV(this)}; wV=function(z,p){var c=z.T.getVideoData(p);return c?z.nu(c,p||z.T.getPresentingPlayerType(!0)):null}; o9W=function(z,p,c){var B=z.nu(p,c);z.FU=B;z.listeners.forEach(function(H){H.gY(B)})}; n9x=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; cl=function(z,p,c){g.e.call(this);this.T=z;this.oa=p;this.X3=c;this.listeners=[];this.uC=[];this.W=function(){P7("Called 'doUnlockPreroll' before it's initialized.")}; p=new WL(this);c=new g.or(this);g.l(this,c);g.l(this,p);p.Z(z,"progresssync",this.eUp);p.Z(z,"presentingplayerstatechange",this.Zv3);p.Z(z,"fullscreentoggled",this.onFullscreenToggled);p.Z(z,"onVolumeChange",this.onVolumeChange);p.Z(z,"minimized",this.gk);p.Z(z,"overlayvisibilitychange",this.Hu);p.Z(z,"shortsadswipe",this.UB);p.Z(z,"resize",this.UW);c.Z(z,g.E5("appad"),this.yT)}; Bl=function(z){rq(z.X3.get())||z.W()}; QCv=function(z,p){z.uC=z.uC.filter(function(c){return c!==p})}; Hl=function(z,p,c){return z.getCurrentTimeSec(p,c)}; r2f=function(z,p){var c;p=(c=z.oa.get().sT.get(p))!=null?c:null;if(p===null)return P7("Expected ad video start time on playback timeline"),0;z=z.T.getCurrentTime(2,!0);return z0){var T=p.end.toString();H.forEach(function(b){(b=b.config&&b.config.adPlacementConfig)&&b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&b.adTimeOffset&&b.adTimeOffset.offsetEndMilliseconds==="-1"&&b.adTimeOffset.offsetEndMilliseconds!==T&&(b.adTimeOffset.offsetEndMilliseconds=T)}); B.map(function(b){return g.I(b,UT)}).forEach(function(b){var D; (b=b==null?void 0:(D=b.slotEntryTrigger)==null?void 0:D.mediaTimeRangeTrigger)&&b.offsetEndMilliseconds==="-1"&&(b.offsetEndMilliseconds=T)})}return{Nt:H, adSlots:B,pL:!1,ssdaiAdsConfig:z.ssdaiAdsConfig}}; D9=function(z){g.e.call(this);this.T=z;this.listeners=[];this.W=new WL(this);g.l(this,this.W);this.W.Z(this.T,"aduxclicked",this.onAdUxClicked);this.W.Z(this.T,"aduxmouseover",this.No);this.W.Z(this.T,"aduxmouseout",this.SN);this.W.Z(this.T,"muteadaccepted",this.mbi)}; GSx=function(z,p,c){p=g.d7(p,function(B){return new jOi(B,c,B.id)}); z.T.AD("onAdUxUpdate",p)}; tC=function(z,p){z=g.m(z.listeners);for(var c=z.next();!c.done;c=z.next())p(c.value)}; Xx=function(z,p){this.K=z;this.D=p===void 0?!1:p;this.W={}}; NaY=function(z,p){var c=z.startSecs+z.UI;c=c<=0?null:c;if(c===null)return null;switch(z.event){case "start":case "continue":case "stop":break;case "predictStart":if(p)break;return null;default:return null}p=Math.max(z.startSecs,0);return{g$:new Zv(p,c),M9$:new rM(p,c-p,z.context,z.identifier,z.event,z.W)}}; flW=function(){this.W=[]}; O0i=function(z,p,c){var B=g.VT(z.W,p);if(B>=0)return p;p=-B-1;return p>=z.W.length||z.W[p]>c?null:z.W[p]}; xE=function(z,p,c){g.e.call(this);this.T=z;this.X3=p;this.u8=c;this.listeners=[];this.X=!1;this.r0=[];this.W=null;this.L=new Xx(this,qhS(p.get()));this.D=new flW;this.K=null}; zGD=function(z,p){z.r0.push(p);for(var c=!1,B=g.m(z.listeners),H=B.next();!H.done;H=B.next())c=H.value.VZ(p)||c;z.X=c;Ud(z.X3.get())&&Vw(z.u8.get(),"onci","cpi."+p.identifier+";cpe."+p.event+";cps."+p.startSecs+";cbi."+c)}; clW=function(z,p){iA(z.u8.get(),{cuepointTrigger:{event:pgE(p.event),cuepointId:p.identifier,totalCueDurationMs:p.UI*1E3,playheadTimeMs:p.W,cueStartTimeMs:p.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:z.T.getVideoData(1).clientPlaybackNonce}})}; pgE=function(z){switch(z){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return iN(z,"Unexpected cuepoint event")}}; EK=function(z){this.T=z}; BRv=function(z,p){z.T.cueVideoByPlayerVars(p,2)}; qU=function(z){this.T=z}; JC=function(z){this.T=z}; HM_=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:iN(z,"unknown transitionReason")}}; iMf=function(z){this.T=z}; TR_=function(z,p,c,B,H){g.e.call(this);var T=this,b=k8(function(){return new ct(T.X3)}); g.l(this,b);var D=k8(function(){return new Ht(b,T.X3)}); g.l(this,D);var t=k8(function(){return new yE}); g.l(this,t);var X=k8(function(){return new dW(z)}); g.l(this,X);var x=k8(function(){return new ij(b,D,T.X3)}); g.l(this,x);var E=k8(function(){return new th}); g.l(this,E);this.mB=k8(function(){return new D9(p)}); g.l(this,this.mB);this.vM=k8(function(){return new Gb(H)}); g.l(this,this.vM);this.fB=k8(function(){return new F5(p)}); g.l(this,this.fB);this.By=k8(function(){return new o7(p)}); g.l(this,this.By);this.U1=k8(function(){return new EK(p)}); g.l(this,this.U1);this.lk=k8(function(){return new ny(p)}); g.l(this,this.lk);this.X3=k8(function(){return new Q8(p)}); g.l(this,this.X3);var q=k8(function(){return new Vp(B)}); g.l(this,q);var J=k8(function(){return new Af(T.X3)}); g.l(this,J);this.S8=k8(function(){return new qU(p)}); g.l(this,this.S8);this.p4=k8(function(){return new zM}); g.l(this,this.p4);this.oa=k8(function(){return new pY(p,E,T.X3)}); g.l(this,this.oa);var M=I7({oa:this.oa,X3:this.X3,ze:J}),P=M.context,O=M.WQ;this.BM=M.BM;this.HU=k8(function(){return new xE(p,T.X3,T.u8)}); g.l(this,this.HU);this.tH=k8(function(){return new JC(p)}); g.l(this,this.tH);this.VI=k8(function(){return new cl(p,T.oa,T.X3)}); g.l(this,this.VI);M=k8(function(){return new RF(b,x,D,T.X3,J,"SLOT_TYPE_ABOVE_FEED",T.VI,T.GL,T.PO)}); g.l(this,M);this.CN=k8(function(){return new pV(T.X3)}); this.Dw=k8(function(){return new k1(T.VI,p,T.X3)}); g.l(this,this.Dw);this.u8=k8(function(){return new zf(p,t,T.Dw,T.oa,T.BM,T.X3,O)}); g.l(this,this.u8);this.eA=new Zb(aF,MU,function(K,Z,W,v){return Tj(D.get(),K,Z,W,v)},X,x,D,J,this.X3,this.oa); g.l(this,this.eA);this.V8=new Lc(X,M,c,this.X3,z,this.oa,this.VI,this.fB);g.l(this,this.V8);var R=new ji(p,this.V8,this.VI,this.oa,this.HU);this.gE=k8(function(){return R}); this.wx=R;this.GL=new Kc(X,x,this.gE,this.HU,this.VI,this.X3,this.u8,this.tH);g.l(this,this.GL);this.yR=new WZ(X,x,this.By,this.gE,P);g.l(this,this.yR);this.fv=new ro(this.X3,X,x,M,this.oa,this.yR,c);g.l(this,this.fv);this.vV=k8(function(){return new P$(q,D,J,T.X3,T.u8,T.VI,T.tH)}); g.l(this,this.vV);this.Te=k8(function(){return new AT}); g.l(this,this.Te);this.Lt=new Fc(z,this.mB,this.X3);g.l(this,this.Lt);this.Aa=new oF(z);g.l(this,this.Aa);this.eO=new nc(z);g.l(this,this.eO);this.yE=new rW(z,this.gE,P);g.l(this,this.yE);this.HO=new UO(z,this.By,this.VI,this.oa,P);g.l(this,this.HO);this.zy=new sO(z,this.oa);g.l(this,this.zy);this.PO=new Gj(z,this.HU,this.VI,this.u8,this.gE);g.l(this,this.PO);this.Ij=new kH(z);g.l(this,this.Ij);this.xb=new pk(z);g.l(this,this.xb);this.K3=new gW(z);g.l(this,this.K3);this.rS=new za(z);g.l(this,this.rS); this.xb=new pk(z);g.l(this,this.xb);this.XJ=k8(function(){return new lq}); g.l(this,this.XJ);this.Dc=k8(function(){return new vZ(T.VI)}); g.l(this,this.Dc);this.FK=k8(function(){return new rQQ(T.mB,T.u8,z,t,T.Dw)}); g.l(this,this.FK);this.V3=k8(function(){return new iz(T.fv,X,b)}); g.l(this,this.V3);this.gw=k8(function(){return new Vn(T.X3,T.u8,T.Ij,T.Dw)}); g.l(this,this.gw);this.Mz=k8(function(){return new JH(z,T.xb,T.Ij,T.oa,T.tH,T.VI,T.u8,E,T.HU,T.Dw,T.CN,T.U1,T.By,T.fB,T.lk,T.vM,T.S8,T.X3,t,P,O)}); g.l(this,this.Mz);this.Un=k8(function(){return new Tnv(T.VI,T.u8,T.vM,T.X3,T.Dw,T.oa)}); g.l(this,this.Un);this.ov=k8(function(){return new UZE(T.mB,T.VI,T.u8,t,T.Dw,T.eO,T.rS,T.vM,T.X3,c)}); g.l(this,this.ov);this.SC=k8(function(){return new UKf(T.mB,T.u8,t)}); g.l(this,this.SC);this.C_=new bK(z,this.p4,b);g.l(this,this.C_);this.Pn={fG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.GL],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.eA],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.V8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yR]]),eD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vV],["SLOT_TYPE_ABOVE_FEED",this.Te],["SLOT_TYPE_FORECASTING",this.Te], ["SLOT_TYPE_IN_PLAYER",this.Te],["SLOT_TYPE_PLAYER_BYTES",this.Te],["SLOT_TYPE_PLAYER_UNDERLAY",this.Te],["SLOT_TYPE_PLAYBACK_TRACKING",this.Te],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Te]]),u_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Lt],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Lt],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Aa],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Aa],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Aa],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Aa],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Aa],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Aa],["TRIGGER_TYPE_CLOSE_REQUESTED",this.eO],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yE],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.HO],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.HO],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.HO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.HO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.HO],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.HO],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.HO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ij],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.yE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.K3],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.rS],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.PO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.PO],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.PO],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.PO],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.PO]]),gM:new Map([["SLOT_TYPE_ABOVE_FEED",this.XJ], ["SLOT_TYPE_AD_BREAK_REQUEST",this.XJ],["SLOT_TYPE_FORECASTING",this.XJ],["SLOT_TYPE_IN_PLAYER",this.XJ],["SLOT_TYPE_PLAYER_BYTES",this.Dc],["SLOT_TYPE_PLAYER_UNDERLAY",this.XJ],["SLOT_TYPE_PLAYBACK_TRACKING",this.XJ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.XJ]]),Jx:new Map([["SLOT_TYPE_ABOVE_FEED",this.FK],["SLOT_TYPE_AD_BREAK_REQUEST",this.V3],["SLOT_TYPE_FORECASTING",this.gw],["SLOT_TYPE_PLAYER_BYTES",this.Mz],["SLOT_TYPE_PLAYBACK_TRACKING",this.Un],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Un],["SLOT_TYPE_IN_PLAYER",this.ov],["SLOT_TYPE_PLAYER_UNDERLAY",this.SC]])};this.listeners=[t.get()];this.Au={fv:this.fv,P0:this.X3.get(),Sp:this.vM.get(),uo:this.VI.get(),V8:this.V8,gG:b.get(),RW:this.p4.get(),rP:this.Lt,MB:t.get(),Xj:this.oa.get()}}; bMu=function(z,p,c,B,H){g.e.call(this);var T=this,b=k8(function(){return new ct(T.X3)}); g.l(this,b);var D=k8(function(){return new Ht(b,T.X3)}); g.l(this,D);var t=k8(function(){return new yE}); g.l(this,t);var X=k8(function(){return new dW(z)}); g.l(this,X);var x=k8(function(){return new ij(b,D,T.X3)}); g.l(this,x);var E=k8(function(){return new th}); g.l(this,E);this.mB=k8(function(){return new D9(p)}); g.l(this,this.mB);this.vM=k8(function(){return new Gb(H)}); g.l(this,this.vM);this.fB=k8(function(){return new F5(p)}); g.l(this,this.fB);this.By=k8(function(){return new o7(p)}); g.l(this,this.By);this.U1=k8(function(){return new EK(p)}); g.l(this,this.U1);this.lk=k8(function(){return new ny(p)}); g.l(this,this.lk);this.X3=k8(function(){return new Q8(p)}); g.l(this,this.X3);var q=k8(function(){return new Vp(B)}); g.l(this,q);var J=k8(function(){return new Af(T.X3)}); g.l(this,J);var M=k8(function(){return new RF(b,x,D,T.X3,J,null,null,T.GL,T.PO)}); g.l(this,M);this.S8=k8(function(){return new qU(p)}); g.l(this,this.S8);this.p4=k8(function(){return new zM}); g.l(this,this.p4);this.oa=k8(function(){return new pY(p,E,T.X3)}); g.l(this,this.oa);var P=I7({oa:this.oa,X3:this.X3,ze:J}),O=P.context,R=P.WQ;this.BM=P.BM;this.HU=k8(function(){return new xE(p,T.X3,T.u8)}); this.VI=k8(function(){return new cl(p,T.oa,T.X3)}); g.l(this,this.VI);this.Dw=k8(function(){return new k1(T.VI,p,T.X3)}); g.l(this,this.Dw);this.u8=k8(function(){return new zf(p,t,T.Dw,T.oa,T.BM,T.X3,R)}); g.l(this,this.u8);this.CN=k8(function(){return new pV(T.X3)}); g.l(this,this.CN);this.eA=new Zb(aF,MU,function(Z,W,v,zY){return Tj(D.get(),Z,W,v,zY)},X,x,D,J,this.X3,this.oa); g.l(this,this.eA);this.V8=new Lc(X,M,c,this.X3,z,this.oa,this.VI,this.fB);g.l(this,this.V8);var K=new ji(p,this.V8,this.VI,this.oa,this.HU);this.gE=k8(function(){return K}); this.wx=K;this.GL=new Kc(X,x,this.gE,this.HU,this.VI,this.X3,this.u8);g.l(this,this.GL);this.yR=new WZ(X,x,this.By,this.gE,O);g.l(this,this.yR);this.fv=new ro(this.X3,X,x,M,this.oa,this.yR,c);g.l(this,this.fv);this.vV=k8(function(){return new P$(q,D,J,T.X3,T.u8,T.VI)}); g.l(this,this.vV);this.Te=k8(function(){return new AT}); g.l(this,this.Te);this.Lt=new Fc(z,this.mB,this.X3);g.l(this,this.Lt);this.Aa=new oF(z);g.l(this,this.Aa);this.eO=new nc(z);g.l(this,this.eO);this.yE=new rW(z,this.gE,O);g.l(this,this.yE);this.HO=new UO(z,this.By,this.VI,this.oa,O);g.l(this,this.HO);this.Ij=new kH(z);g.l(this,this.Ij);this.K3=new gW(z);g.l(this,this.K3);this.rS=new za(z);g.l(this,this.rS);this.tH=k8(function(){return new JC(p)}); g.l(this,this.tH);this.xb=new pk(z);g.l(this,this.xb);this.PO=new Gj(z,this.HU,this.VI,this.u8,this.gE);g.l(this,this.PO);this.XJ=k8(function(){return new lq}); g.l(this,this.XJ);this.Dc=k8(function(){return new vZ(T.VI)}); g.l(this,this.Dc);this.V3=k8(function(){return new iz(T.fv,X,b)}); g.l(this,this.V3);this.gw=k8(function(){return new Vn(T.X3,T.u8,T.Ij,T.Dw)}); g.l(this,this.gw);this.ov=k8(function(){return new stf(T.mB,T.VI,T.u8,t,T.Dw,T.eO,T.rS,T.vM,T.X3,c)}); g.l(this,this.ov);this.Mz=k8(function(){return new Mu(z,T.xb,T.Ij,T.u8,T.Dw,T.CN,T.U1,T.oa,T.VI,T.By,T.fB,T.lk,T.vM,T.S8,T.X3,T.tH,O,R)}); g.l(this,this.Mz);this.C_=new bK(z,this.p4,b);g.l(this,this.C_);this.Pn={fG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.GL],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.eA],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.V8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yR]]),eD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vV],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_IN_PLAYER",this.Te], ["SLOT_TYPE_PLAYER_BYTES",this.Te]]),u_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Lt],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Aa],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Aa],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Aa], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Aa],["TRIGGER_TYPE_CLOSE_REQUESTED",this.eO],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.HO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.HO],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.HO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ij],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.K3],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.rS],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.PO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.PO],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.PO],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.PO],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.PO]]),gM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XJ],["SLOT_TYPE_FORECASTING",this.XJ],["SLOT_TYPE_IN_PLAYER",this.XJ],["SLOT_TYPE_PLAYER_BYTES",this.Dc]]), Jx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V3],["SLOT_TYPE_FORECASTING",this.gw],["SLOT_TYPE_IN_PLAYER",this.ov],["SLOT_TYPE_PLAYER_BYTES",this.Mz]])};this.listeners=[t.get()];this.Au={fv:this.fv,P0:this.X3.get(),Sp:this.vM.get(),uo:this.VI.get(),V8:this.V8,gG:b.get(),RW:this.p4.get(),rP:this.Lt,MB:t.get(),Xj:this.oa.get()}}; Vd_=function(z,p,c,B,H){g.e.call(this);var T=this,b=k8(function(){return new ct(T.X3)}); g.l(this,b);var D=k8(function(){return new Ht(b,T.X3)}); g.l(this,D);var t=k8(function(){return new yE}); g.l(this,t);var X=k8(function(){return new dW(z)}); g.l(this,X);var x=k8(function(){return new ij(b,D,T.X3)}); g.l(this,x);var E=k8(function(){return new th}); g.l(this,E);this.mB=k8(function(){return new D9(p)}); g.l(this,this.mB);this.vM=k8(function(){return new Gb(H)}); g.l(this,this.vM);this.fB=k8(function(){return new F5(p)}); g.l(this,this.fB);this.By=k8(function(){return new o7(p)}); g.l(this,this.By);this.U1=k8(function(){return new EK(p)}); g.l(this,this.U1);this.lk=k8(function(){return new ny(p)}); g.l(this,this.lk);this.X3=k8(function(){return new Q8(p)}); g.l(this,this.X3);var q=k8(function(){return new Vp(B)}); g.l(this,q);var J=k8(function(){return new Af(T.X3)}); g.l(this,J);var M=k8(function(){return new RF(b,x,D,T.X3,J,null,null,null,null)}); g.l(this,M);this.S8=k8(function(){return new qU(p)}); g.l(this,this.S8);this.oa=k8(function(){return new pY(p,E,T.X3)}); g.l(this,this.oa);var P=I7({oa:this.oa,X3:this.X3,ze:J}),O=P.context,R=P.WQ;this.BM=P.BM;this.VI=k8(function(){return new cl(p,T.oa,T.X3)}); g.l(this,this.VI);this.Dw=k8(function(){return new k1(T.VI,p,T.X3)}); g.l(this,this.Dw);this.u8=k8(function(){return new zf(p,t,T.Dw,T.oa,T.BM,T.X3,R)}); g.l(this,this.u8);this.CN=k8(function(){return new pV(T.X3)}); g.l(this,this.CN);this.eA=new Zb(aF,MU,function(Z,W,v,zY){return Tj(D.get(),Z,W,v,zY)},X,x,D,J,this.X3,this.oa); g.l(this,this.eA);this.V8=new Lc(X,M,c,this.X3,z,this.oa,this.VI,this.fB);g.l(this,this.V8);var K=new ji(p,this.V8,this.VI,this.oa);this.gE=k8(function(){return K}); this.wx=K;this.yR=new WZ(X,x,this.By,this.gE,O);g.l(this,this.yR);this.fv=new ro(this.X3,X,x,M,this.oa,this.yR,c);g.l(this,this.fv);this.vV=k8(function(){return new P$(q,D,J,T.X3,T.u8,T.VI)}); g.l(this,this.vV);this.Te=k8(function(){return new AT}); g.l(this,this.Te);this.Lt=new Fc(z,this.mB,this.X3);g.l(this,this.Lt);this.Aa=new oF(z);g.l(this,this.Aa);this.yE=new rW(z,this.gE,O);g.l(this,this.yE);this.HO=new UO(z,this.By,this.VI,this.oa,O);g.l(this,this.HO);this.Ij=new kH(z);g.l(this,this.Ij);this.K3=new gW(z);g.l(this,this.K3);this.tH=k8(function(){return new JC(p)}); g.l(this,this.tH);this.xb=new pk(z);g.l(this,this.xb);this.XJ=k8(function(){return new lq}); g.l(this,this.XJ);this.Dc=k8(function(){return new vZ(T.VI)}); g.l(this,this.Dc);this.V3=k8(function(){return new iz(T.fv,X,b)}); g.l(this,this.V3);this.gw=k8(function(){return new Vn(T.X3,T.u8,T.Ij,T.Dw)}); g.l(this,this.gw);this.YV=k8(function(){return new iJE(T.mB,T.VI,T.u8,t,c,T.X3)}); g.l(this,this.YV);this.Mz=k8(function(){return new Mu(z,T.xb,T.Ij,T.u8,T.Dw,T.CN,T.U1,T.oa,T.VI,T.By,T.fB,T.lk,T.vM,T.S8,T.X3,T.tH,O,R)}); g.l(this,this.Mz);this.Pn={fG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.eA],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.V8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yR]]),eD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vV],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_IN_PLAYER",this.Te],["SLOT_TYPE_PLAYER_BYTES",this.Te]]),u_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Lt],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Aa],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Aa],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Aa],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Aa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.HO],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.HO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ij],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.K3],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xb]]),gM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XJ],["SLOT_TYPE_ABOVE_FEED",this.XJ],["SLOT_TYPE_FORECASTING",this.XJ],["SLOT_TYPE_IN_PLAYER",this.XJ],["SLOT_TYPE_PLAYER_BYTES",this.Dc]]),Jx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V3],["SLOT_TYPE_FORECASTING",this.gw],["SLOT_TYPE_IN_PLAYER", this.YV],["SLOT_TYPE_PLAYER_BYTES",this.Mz]])};this.listeners=[t.get()];this.Au={fv:this.fv,P0:this.X3.get(),Sp:this.vM.get(),uo:this.VI.get(),V8:this.V8,gG:b.get(),RW:null,rP:this.Lt,MB:t.get(),Xj:this.oa.get()}}; DSv=function(z,p,c,B,H){g.e.call(this);var T=this,b=k8(function(){return new ct(T.X3)}); g.l(this,b);var D=k8(function(){return new Ht(b,T.X3)}); g.l(this,D);var t=k8(function(){return new yE}); g.l(this,t);var X=k8(function(){return new dW(z)}); g.l(this,X);var x=k8(function(){return new ij(b,D,T.X3)}); g.l(this,x);var E=k8(function(){return new th}); g.l(this,E);this.Zg=k8(function(){return new iMf(p)}); g.l(this,this.Zg);this.mB=k8(function(){return new D9(p)}); g.l(this,this.mB);this.vM=k8(function(){return new Gb(H)}); g.l(this,this.vM);this.fB=k8(function(){return new F5(p)}); g.l(this,this.fB);this.By=k8(function(){return new o7(p)}); g.l(this,this.By);this.U1=k8(function(){return new EK(p)}); g.l(this,this.U1);this.lk=k8(function(){return new ny(p)}); g.l(this,this.lk);this.X3=k8(function(){return new Q8(p)}); g.l(this,this.X3);var q=k8(function(){return new Vp(B)}); g.l(this,q);var J=k8(function(){return new Af(T.X3)}); g.l(this,J);var M=k8(function(){return new RF(b,x,D,T.X3,J,null,null,null,null)}); g.l(this,M);this.S8=k8(function(){return new qU(p)}); g.l(this,this.S8);this.oa=k8(function(){return new pY(p,E,T.X3)}); g.l(this,this.oa);var P=I7({oa:this.oa,X3:this.X3,ze:J}),O=P.context,R=P.WQ;this.BM=P.BM;this.VI=k8(function(){return new cl(p,T.oa,T.X3)}); g.l(this,this.VI);this.Dw=k8(function(){return new k1(T.VI,p,T.X3)}); g.l(this,this.Dw);this.u8=k8(function(){return new zf(p,t,T.Dw,T.oa,T.BM,T.X3,R)}); g.l(this,this.u8);this.CN=k8(function(){return new pV(T.X3)}); g.l(this,this.CN);this.eA=new Zb(LBQ,MU,function(Z,W,v,zY){return fkx(D.get(),Z,W,v,zY)},X,x,D,J,this.X3,this.oa); g.l(this,this.eA);this.V8=new Lc(X,M,c,this.X3,z,this.oa,this.VI,this.fB);g.l(this,this.V8);var K=new ji(p,this.V8,this.VI,this.oa);this.gE=k8(function(){return K}); this.wx=K;this.yR=new WZ(X,x,this.By,this.gE,O);g.l(this,this.yR);this.fv=new ro(this.X3,X,x,M,this.oa,this.yR,c);g.l(this,this.fv);this.vV=k8(function(){return new P$(q,D,J,T.X3,T.u8,T.VI)}); g.l(this,this.vV);this.Te=k8(function(){return new AT}); g.l(this,this.Te);this.Lt=new Fc(z,this.mB,this.X3);g.l(this,this.Lt);this.Aa=new oF(z);g.l(this,this.Aa);this.yE=new rW(z,this.gE,O);g.l(this,this.yE);this.HO=new UO(z,this.By,this.VI,this.oa,O);g.l(this,this.HO);this.Ij=new kH(z);g.l(this,this.Ij);this.K3=new gW(z);g.l(this,this.K3);this.tH=k8(function(){return new JC(p)}); g.l(this,this.tH);this.xb=new pk(z);g.l(this,this.xb);this.XJ=k8(function(){return new lq}); g.l(this,this.XJ);this.Dc=k8(function(){return new vZ(T.VI)}); g.l(this,this.Dc);this.V3=k8(function(){return new iz(T.fv,X,b)}); g.l(this,this.V3);this.gw=k8(function(){return new Vn(T.X3,T.u8,T.Ij,T.Dw)}); g.l(this,this.gw);this.Mz=k8(function(){return new Mu(z,T.xb,T.Ij,T.u8,T.Dw,T.CN,T.U1,T.oa,T.VI,T.By,T.fB,T.lk,T.vM,T.S8,T.X3,T.tH,O,R)}); g.l(this,this.Mz);this.Dy=k8(function(){return new gwQ(T.mB,T.VI,T.u8,t,T.Zg,c,T.oa)}); g.l(this,this.Dy);this.Pn={fG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.eA],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.V8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yR]]),eD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vV],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_IN_PLAYER",this.Te],["SLOT_TYPE_PLAYER_BYTES",this.Te]]),u_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Lt],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Aa],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Aa],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Aa],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Aa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.HO],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.HO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ij],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.K3],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xb]]),gM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XJ],["SLOT_TYPE_FORECASTING",this.XJ],["SLOT_TYPE_IN_PLAYER",this.XJ],["SLOT_TYPE_PLAYER_BYTES",this.Dc]]),Jx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V3],["SLOT_TYPE_FORECASTING",this.gw],["SLOT_TYPE_IN_PLAYER",this.Dy],["SLOT_TYPE_PLAYER_BYTES", this.Mz]])};this.listeners=[t.get()];this.Au={fv:this.fv,P0:this.X3.get(),Sp:this.vM.get(),uo:this.VI.get(),V8:this.V8,gG:b.get(),RW:null,rP:this.Lt,MB:t.get(),Xj:this.oa.get()}}; tdW=function(z,p,c,B,H){g.e.call(this);var T=this,b=k8(function(){return new ct(T.X3)}); g.l(this,b);var D=k8(function(){return new Ht(b,T.X3)}); g.l(this,D);var t=k8(function(){return new yE}); g.l(this,t);var X=k8(function(){return new dW(z)}); g.l(this,X);var x=k8(function(){return new ij(b,D,T.X3)}); g.l(this,x);var E=k8(function(){return new th}); g.l(this,E);this.Zg=k8(function(){return new iMf(p)}); g.l(this,this.Zg);this.mB=k8(function(){return new D9(p)}); g.l(this,this.mB);this.vM=k8(function(){return new Gb(H)}); g.l(this,this.vM);this.fB=k8(function(){return new F5(p)}); g.l(this,this.fB);this.By=k8(function(){return new o7(p)}); g.l(this,this.By);this.U1=k8(function(){return new EK(p)}); g.l(this,this.U1);this.lk=k8(function(){return new ny(p)}); g.l(this,this.lk);this.X3=k8(function(){return new Q8(p)}); g.l(this,this.X3);var q=k8(function(){return new Vp(B)}); g.l(this,q);var J=k8(function(){return new Af(T.X3)}); g.l(this,J);this.S8=k8(function(){return new qU(p)}); g.l(this,this.S8);this.oa=k8(function(){return new pY(p,E,T.X3)}); g.l(this,this.oa);var M=I7({oa:this.oa,X3:this.X3,ze:J}),P=M.context,O=M.WQ;this.BM=M.BM;this.HU=k8(function(){return new xE(p,T.X3,T.u8)}); g.l(this,this.HU);this.tH=k8(function(){return new JC(p)}); g.l(this,this.tH);this.VI=k8(function(){return new cl(p,T.oa,T.X3)}); g.l(this,this.VI);M=k8(function(){return new RF(b,x,D,T.X3,J,null,T.VI,T.GL,T.PO,3)}); g.l(this,M);this.CN=k8(function(){return new pV(T.X3)}); this.Dw=k8(function(){return new k1(T.VI,p,T.X3)}); g.l(this,this.Dw);this.u8=k8(function(){return new zf(p,t,T.Dw,T.oa,T.BM,T.X3,O)}); g.l(this,this.u8);this.V8=new Lc(X,M,c,this.X3,z,this.oa,this.VI,this.fB);g.l(this,this.V8);var R=new ji(p,this.V8,this.VI,this.oa,this.HU);this.gE=k8(function(){return R}); this.wx=R;this.eA=new Zb(dju,MU,function(K,Z,W,v){return fkx(D.get(),K,Z,W,v)},X,x,D,J,this.X3,this.oa); g.l(this,this.eA);this.GL=new Kc(X,x,this.gE,this.HU,this.VI,this.X3,this.u8,this.tH);g.l(this,this.GL);this.yR=new WZ(X,x,this.By,this.gE,P);g.l(this,this.yR);this.fv=new ro(this.X3,X,x,M,this.oa,this.yR,c);g.l(this,this.fv);this.vV=k8(function(){return new P$(q,D,J,T.X3,T.u8,T.VI,T.tH)}); g.l(this,this.vV);this.Te=k8(function(){return new AT}); g.l(this,this.Te);this.Lt=new Fc(z,this.mB,this.X3);g.l(this,this.Lt);this.Aa=new oF(z);g.l(this,this.Aa);this.yE=new rW(z,this.gE,P);g.l(this,this.yE);this.HO=new UO(z,this.By,this.VI,this.oa,P);g.l(this,this.HO);this.zy=new sO(z,this.oa);g.l(this,this.zy);this.PO=new Gj(z,this.HU,this.VI,this.u8,this.gE);g.l(this,this.PO);this.Ij=new kH(z);g.l(this,this.Ij);this.K3=new gW(z);g.l(this,this.K3);this.xb=new pk(z);g.l(this,this.xb);this.XJ=k8(function(){return new lq}); g.l(this,this.XJ);this.Dc=k8(function(){return new vZ(T.VI)}); g.l(this,this.Dc);this.V3=k8(function(){return new iz(T.fv,X,b)}); g.l(this,this.V3);this.gw=k8(function(){return new Vn(T.X3,T.u8,T.Ij,T.Dw)}); g.l(this,this.gw);this.Mz=k8(function(){return new JH(z,T.xb,T.Ij,T.oa,T.tH,T.VI,T.u8,E,T.HU,T.Dw,T.CN,T.U1,T.By,T.fB,T.lk,T.vM,T.S8,T.X3,t,P,O)}); g.l(this,this.Mz);this.ov=k8(function(){return new Gl_(T.mB,T.VI,T.u8,t,T.Zg,c,T.X3,T.oa)}); g.l(this,this.ov);this.Pn={fG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fv],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.GL],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.eA],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.V8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yR]]),eD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vV],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_IN_PLAYER",this.Te],["SLOT_TYPE_PLAYER_BYTES",this.Te]]),u_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Lt],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Aa],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Aa],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Aa],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Aa],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Aa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.HO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.HO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ij],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.K3],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.PO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.PO],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.PO],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.PO],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.PO]]),gM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XJ],["SLOT_TYPE_FORECASTING",this.XJ],["SLOT_TYPE_IN_PLAYER",this.XJ],["SLOT_TYPE_PLAYER_BYTES",this.Dc]]),Jx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V3],["SLOT_TYPE_FORECASTING",this.gw],["SLOT_TYPE_PLAYER_BYTES",this.Mz],["SLOT_TYPE_IN_PLAYER",this.ov]])};this.listeners=[t.get()]; this.Au={fv:this.fv,P0:this.X3.get(),Sp:this.vM.get(),uo:this.VI.get(),V8:this.V8,gG:b.get(),RW:null,rP:this.Lt,MB:t.get(),Xj:this.oa.get()}}; xSQ=function(z,p,c,B){function H(){return T.K} g.e.call(this);var T=this;z.N().experiments.JD("html5_dispose_of_manager_before_dependency")?(this.W=XgY(H,z,p,c,B),this.K=(new g9(this.W)).D(),g.l(this,this.K),g.l(this,this.W)):(this.W=XgY(H,z,p,c,B),g.l(this,this.W),this.K=(new g9(this.W)).D(),g.l(this,this.K))}; YE=function(z){return z.W.Au}; XgY=function(z,p,c,B,H){try{var T=p.N();if(g.cX(T))var b=new TR_(z,p,c,B,H);else if(g.HX(T))b=new bMu(z,p,c,B,H);else if(sc(T))b=new Vd_(z,p,c,B,H);else if(g.rn(T))b=new DSv(z,p,c,B,H);else if(g.FB(T))b=new tdW(z,p,c,B,H);else throw new TypeError("Unknown web interface");return b}catch(D){return b=p.N(),P7("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:b.W.cplatform,interface:b.W.c,X6i:b.W.cver,Fv8:b.W.ctheme,mCZ:b.W.cplayer,Cr$:b.playerStyle}),new kSW(z,p,c,B,H)}}; EJN=function(z){NK.call(this,z)}; qbE=function(z,p,c,B,H){T3.call(this,z,{j:"div",B:"ytp-ad-timed-pie-countdown-container",J:[{j:"svg",B:"ytp-ad-timed-pie-countdown",C:{viewBox:"0 0 20 20"},J:[{j:"circle",B:"ytp-ad-timed-pie-countdown-background",C:{r:"10",cx:"10",cy:"10"}},{j:"circle",B:"ytp-ad-timed-pie-countdown-inner",C:{r:"5",cx:"10",cy:"10"}},{j:"circle",B:"ytp-ad-timed-pie-countdown-outer",C:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",p,c,B,H);this.X=this.jp("ytp-ad-timed-pie-countdown-container");this.D=this.jp("ytp-ad-timed-pie-countdown-inner"); this.V=this.jp("ytp-ad-timed-pie-countdown-outer");this.K=Math.ceil(2*Math.PI*5);this.hide()}; JlE=function(z,p,c,B,H,T){AQ.call(this,z,{j:"div",B:"ytp-ad-action-interstitial",C:{tabindex:"0"},J:[{j:"div",B:"ytp-ad-action-interstitial-background-container"},{j:"div",B:"ytp-ad-action-interstitial-slot",J:[{j:"div",B:"ytp-ad-action-interstitial-instream-info"},{j:"div",B:"ytp-ad-action-interstitial-card",J:[{j:"div",B:"ytp-ad-action-interstitial-image-container"},{j:"div",B:"ytp-ad-action-interstitial-headline-container"},{j:"div",B:"ytp-ad-action-interstitial-description-container"},{j:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",p,c,B);this.M4=H;this.mL=T;this.navigationEndpoint=this.W=this.skipButton=this.K=this.actionButton=null;this.rA=this.jp("ytp-ad-action-interstitial-instream-info");this.fH=this.jp("ytp-ad-action-interstitial-image-container");this.U=new sL(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-action-interstitial-image");g.l(this,this.U);this.U.Ia(this.fH);this.Ra=this.jp("ytp-ad-action-interstitial-headline-container"); this.V=new H7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-action-interstitial-headline");g.l(this,this.V);this.V.Ia(this.Ra);this.Dt=this.jp("ytp-ad-action-interstitial-description-container");this.D=new H7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-action-interstitial-description");g.l(this,this.D);this.D.Ia(this.Dt);this.CH=this.jp("ytp-ad-action-interstitial-background-container");this.OH=new sL(this.api,this.layoutId,this.interactionLoggingClientData, this.Sp,"ytp-ad-action-interstitial-background",!0);g.l(this,this.OH);this.OH.Ia(this.CH);this.Zt=this.jp("ytp-ad-action-interstitial-action-button-container");this.slot=this.jp("ytp-ad-action-interstitial-slot");this.bA=this.jp("ytp-ad-action-interstitial-card");this.X=new WL;g.l(this,this.X);this.hide()}; MdW=function(z){var p=g.fH("html5-video-player");p&&g.Yf(p,"ytp-ad-display-override",z)}; PMW=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-overlay-slot",J:[{j:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",p,c,B);this.U=[];this.CH=this.Ra=this.X=this.Zt=this.rA=null;this.OH=!1;this.V=null;this.Dt=0;z=this.jp("ytp-ad-overlay-container");this.fH=new q6(z,45E3,6E3,.3,.4);g.l(this,this.fH);this.D=YbB(this);g.l(this,this.D);this.D.Ia(z);this.K=mSv(this);g.l(this,this.K);this.K.Ia(z);this.W=hGx(this);g.l(this,this.W);this.W.Ia(z);this.hide()}; YbB=function(z){var p=new g.P_({j:"div",B:"ytp-ad-text-overlay",J:[{j:"div",B:"ytp-ad-overlay-ad-info-button-container"},{j:"div",B:"ytp-ad-overlay-close-container",J:[{j:"button",B:"ytp-ad-overlay-close-button",J:[Ib(AlD)]}]},{j:"div",B:"ytp-ad-overlay-title",F3:"{{title}}"},{j:"div",B:"ytp-ad-overlay-desc",F3:"{{description}}"},{j:"div",LH:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],F3:"{{displayUrl}}"}]});z.Z(p.jp("ytp-ad-overlay-title"),"click",function(c){m5(z,p.element,c)}); z.Z(p.jp("ytp-ad-overlay-link"),"click",function(c){m5(z,p.element,c)}); z.Z(p.jp("ytp-ad-overlay-close-container"),"click",z.OT);p.hide();return p}; mSv=function(z){var p=new g.P_({j:"div",LH:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{j:"div",B:"ytp-ad-overlay-ad-info-button-container"},{j:"div",B:"ytp-ad-overlay-close-container",J:[{j:"button",B:"ytp-ad-overlay-close-button",J:[Ib(AlD)]}]},{j:"div",B:"ytp-ad-overlay-text-image",J:[{j:"img",C:{src:"{{imageUrl}}"}}]},{j:"div",B:"ytp-ad-overlay-title",F3:"{{title}}"},{j:"div",B:"ytp-ad-overlay-desc",F3:"{{description}}"},{j:"div",LH:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], F3:"{{displayUrl}}"}]});z.Z(p.jp("ytp-ad-overlay-title"),"click",function(c){m5(z,p.element,c)}); z.Z(p.jp("ytp-ad-overlay-link"),"click",function(c){m5(z,p.element,c)}); z.Z(p.jp("ytp-ad-overlay-close-container"),"click",z.OT);z.Z(p.jp("ytp-ad-overlay-text-image"),"click",z.A8p);p.hide();return p}; hGx=function(z){var p=new g.P_({j:"div",B:"ytp-ad-image-overlay",J:[{j:"div",B:"ytp-ad-overlay-ad-info-button-container"},{j:"div",B:"ytp-ad-overlay-close-container",J:[{j:"button",B:"ytp-ad-overlay-close-button",J:[Ib(AlD)]}]},{j:"div",B:"ytp-ad-overlay-image",J:[{j:"img",C:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});z.Z(p.jp("ytp-ad-overlay-image"),"click",function(c){m5(z,p.element,c)}); z.Z(p.jp("ytp-ad-overlay-close-container"),"click",z.OT);p.hide();return p}; OMW=function(z,p){if(p){var c=g.I(p,FR)||null;c==null?g.Fr(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(p=g.fH("video-ads ytp-ad-module")||null,p==null?g.Fr(Error("Could not locate the root ads container element to attach the ad info dialog.")):(z.Ra=new g.P_({j:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.l(z,z.Ra),z.Ra.Ia(p),p=new B7(z.api,z.layoutId,z.interactionLoggingClientData,z.Sp,z.Ra.element,!1),g.l(z,p),p.init(EL("ad-info-hover-text-button"),c,z.macros), z.V?(p.Ia(z.V,0),p.subscribe("f",z.DbI,z),p.subscribe("e",z.Ig,z),z.Z(z.V,"click",z.zMA),z.Z(g.fH("ytp-ad-button",p.element),"click",function(){var B;if(g.I((B=g.I(c.button,g.nl))==null?void 0:B.serviceEndpoint,G6B))z.OH=z.api.getPlayerState(1)===2,z.api.pauseVideo();else z.api.onAdUxClicked("ad-info-hover-text-button",z.layoutId)}),z.CH=p):g.Fr(Error("Ad info button container within overlay ad was not present."))))}else g.oc(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; RGQ=function(z,p){if(wgN(z,hC)||z.api.isMinimized())return!1;var c=OL(p.title),B=OL(p.description);if(g.wz(c)||g.wz(B))return!1;z.createServerVe(z.D.element,p.trackingParams||null);z.D.updateValue("title",OL(p.title));z.D.updateValue("description",OL(p.description));z.D.updateValue("displayUrl",OL(p.displayUrl));p.navigationEndpoint&&g.Be(z.U,p.navigationEndpoint);z.D.show();z.fH.start();z.logVisibility(z.D.element,!0);z.Z(z.D.element,"mouseover",function(){z.Dt++}); return!0}; SbV=function(z,p){if(wgN(z,hC)||z.api.isMinimized())return!1;var c=OL(p.title),B=OL(p.description);if(g.wz(c)||g.wz(B))return!1;z.createServerVe(z.K.element,p.trackingParams||null);z.K.updateValue("title",OL(p.title));z.K.updateValue("description",OL(p.description));z.K.updateValue("displayUrl",OL(p.displayUrl));z.K.updateValue("imageUrl",JMB(p.image));p.navigationEndpoint&&g.Be(z.U,p.navigationEndpoint);z.Zt=p.imageNavigationEndpoint||null;z.K.show();z.fH.start();z.logVisibility(z.K.element,!0); z.Z(z.K.element,"mouseover",function(){z.Dt++}); return!0}; $SE=function(z,p){if(z.api.isMinimized())return!1;var c=MjD(p.image),B=c;c.width0?(p=new nJ(z.api,z.W),p.Ia(z.playerOverlay), g.l(z,p)):g.Fr(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(p)))}}else g.Fr(Error("addCommonComponents() needs to be called before starting countdown."))}; lPE=function(z){function p(c){return{toString:function(){return c()}}} z.macros.SURVEY_LOCAL_TIME_EPOCH_S=p(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-1*c.getTimezoneOffset()*60).toString()}); z.macros.SURVEY_ELAPSED_MS=p(function(){return(Date.now()-z.D).toString()})}; vJE=function(z,p,c,B,H){wp.call(this,z,p,c,B,"survey-question-multi-select");this.Dt=H;this.noneOfTheAbove=null;this.submitEndpoints=[];this.V=null;this.hide()}; IPB=function(z,p,c){z.noneOfTheAbove=new dS_(z.api,z.layoutId,z.interactionLoggingClientData,z.Sp);z.noneOfTheAbove.Ia(z.answers);z.noneOfTheAbove.init(EL("survey-none-of-the-above"),p,c)}; FfE=function(z){z.K.forEach(function(p){p.W.toggleButton(!1)}); jZW(z,!0)}; jZW=function(z,p){var c=z.X;z=oJQ(z);p=p===void 0?!1:p;c.W&&(z?c.W.hide():c.W.show(),p&&c.W instanceof $Q&&!c.W.X&&T5W(c.W,!1));c.K&&(z?c.K.show():c.K.hide())}; oJQ=function(z){return z.K.some(function(p){return p.W.isToggled()})||z.noneOfTheAbove.button.isToggled()}; R_=function(z,p,c,B,H){wp.call(this,z,p,c,B,"survey-question-single-select",function(b){T.api.N().Y("supports_multi_step_on_desktop")&&H([b])}); var T=this;this.hide()}; Sy=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-survey",J:[{j:"div",B:"ytp-ad-survey-questions"}]},"survey",p,c,B);this.questions=[];this.K=[];this.conditioningRules=[];this.W=0;this.V=this.jp("ytp-ad-survey-questions");this.api.N().Y("fix_survey_color_contrast_on_destop")&&this.jp("ytp-ad-survey").classList.add("color-contrast-fix");this.api.N().Y("web_enable_speedmaster")&&this.jp("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; rlB=function(z,p){var c=z.K[p],B;(B=z.D)==null||B.dispose();g.I(c,IP)?nJi(z,g.I(c,IP),z.macros):g.I(c,vr)&&QZY(z,g.I(c,vr),z.macros);z.W=p}; nJi=function(z,p,c){var B=new R_(z.api,z.layoutId,z.interactionLoggingClientData,z.Sp,z.X.bind(z));B.Ia(z.V);B.init(EL("survey-question-single-select"),p,c);z.api.N().Y("supports_multi_step_on_desktop")?z.D=B:z.questions.push(B);g.l(z,B)}; QZY=function(z,p,c){var B=new vJE(z.api,z.layoutId,z.interactionLoggingClientData,z.Sp,z.X.bind(z));B.Ia(z.V);B.init(EL("survey-question-multi-select"),p,c);z.api.N().Y("supports_multi_step_on_desktop")?z.D=B:z.questions.push(B);g.l(z,B)}; $E=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-survey-interstitial",J:[{j:"div",B:"ytp-ad-survey-interstitial-contents",J:[{j:"div",B:"ytp-ad-survey-interstitial-logo",J:[{j:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{j:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",p,c,B);this.W=this.actionButton=null;this.interstitial=this.jp("ytp-ad-survey-interstitial");this.K=this.jp("ytp-ad-survey-interstitial-contents");this.text=this.jp("ytp-ad-survey-interstitial-text"); this.logoImage=this.jp("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Da(this,500,!1,300);g.l(this,this.transition)}; USY=function(z,p){p=p&&UL(p)||"";if(g.wz(p))g.oc(Error("Found ThumbnailDetails without valid image URL"));else{var c=z.style;z=z.style.cssText;var B=document.implementation.createHTMLDocument("").createElement("DIV");B.style.cssText=z;z=omN(B.style);c.cssText=[z,'background-image:url("'+p+'");'].join("")}}; sZf=function(z){var p=g.fH("html5-video-player");p&&g.Yf(p,"ytp-ad-display-override",z)}; KY=function(z,p,c,B,H,T){T=T===void 0?0:T;T3.call(this,z,{j:"div",B:"ytp-preview-ad",J:[{j:"div",B:"ytp-preview-ad__text"}]},"preview-ad",p,c,B,H);var b=this;this.Dt=T;this.K=0;this.X=-1;this.D=this.jp("ytp-preview-ad__text");switch(this.Dt){case 1:this.D.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Da(this,400,!1,100,function(){b.hide()}); g.l(this,this.transition);this.hide()}; uK=function(z,p,c,B){AQ.call(this,z,{j:"img",B:"ytp-ad-avatar"},"ad-avatar",p,c,B);this.hide()}; kFx=function(z){switch(z.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; a_=function(z,p,c,B,H,T){H=H===void 0?!1:H;T=T===void 0?!1:T;AQ.call(this,z,{j:"button",B:"ytp-ad-button-vm"},"ad-button",p,c,B);this.buttonText=this.buttonIcon=null;this.hide();this.W=H;this.K=T}; gJV=function(z,p,c,B,H){T3.call(this,z,{j:"div",LH:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],J:[{j:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",J:[{j:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",p,c,B,H);this.startMilliseconds=0;this.adAvatar=new uK(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.adAvatar);DN(this.element,this.adAvatar.element,0);this.headline=new lT(this.api,this.layoutId, this.interactionLoggingClientData,this.Sp);g.l(this,this.headline);this.headline.Ia(this.jp("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.description);this.description.Ia(this.jp("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new a_(this.api, this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.adButton);this.adButton.Ia(this.element);this.hide()}; Z9=function(z,p,c,B){AQ.call(this,z,{j:"button",B:"ytp-skip-ad-button",J:[{j:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",p,c,B);var H=this;this.K=!1;this.X=this.jp("ytp-skip-ad-button__text");this.transition=new g.Da(this,500,!1,100,function(){H.hide()}); g.l(this,this.transition);this.W=new q6(this.element,15E3,5E3,.5,.5,!0);g.l(this,this.W);this.hide()}; GFE=function(z,p,c,B,H){T3.call(this,z,{j:"div",B:"ytp-skip-ad"},"skip-ad",p,c,B,H);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.D=new Z9(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.D);this.D.Ia(this.element);this.hide()}; LY=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",p,c,B);this.hide();this.api.Y("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.Y("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; dp=function(z,p,c,B,H){AQ.call(this,z,{j:"div",B:"ytp-ad-player-overlay-layout",J:[{j:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{j:"div",B:"ytp-ad-player-overlay-layout__ad-info-container",J:[z.N().Y("delhi_modern_web_player")?{j:"div",B:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{j:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{j:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",p,c,B);this.K= H;this.fH=this.jp("ytp-ad-player-overlay-layout__player-card-container");this.D=this.jp("ytp-ad-player-overlay-layout__ad-info-container");this.Dt=this.jp("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Ra=this.jp("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");z.N().Y("delhi_modern_web_player")&&(this.X=this.jp("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; NRV=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-grid-card-text",J:[{j:"div",B:"ytp-ad-grid-card-text__metadata",J:[{j:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{j:"div",B:"ytp-ad-grid-card-text__metadata__description",J:[{j:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{j:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{j:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",p,c,B);this.headline=new lT(this.api,this.layoutId,this.interactionLoggingClientData, this.Sp);g.l(this,this.headline);this.headline.Ia(this.jp("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new a_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0);g.l(this,this.moreInfoButton);this.moreInfoButton.Ia(this.jp("ytp-ad-grid-card-text__button"))}; Wl=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",p,c,B);this.W=[]}; yp=function(z,p,c,B,H,T,b){T3.call(this,z,T,b,p,c,B,H);this.playerProgressOffsetMs=0;this.K=!1}; fPN=function(z){var p=g.fH("html5-video-player");p&&g.Yf(p,"ytp-ad-display-override",z)}; zNv=function(z,p,c,B,H){yp.call(this,z,p,c,B,H,{j:"div",B:"ytp-display-underlay-text-grid-cards",J:[{j:"div",B:"ytp-display-underlay-text-grid-cards__content_container",J:[{j:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",J:[{j:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{j:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{j:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {j:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Wl(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.adGridCardCollection);this.adGridCardCollection.Ia(this.jp("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new a_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.adButton);this.adButton.Ia(this.jp("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.D=this.jp("ytp-display-underlay-text-grid-cards__content_container");this.X=this.jp("ytp-display-underlay-text-grid-cards__content_container__header")}; CY=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-ad-details-line"},"ad-details-line",p,c,B);this.W=[];this.hide()}; ey=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-image-background",J:[{j:"img",B:"ytp-image-background-image"}]},"image-background",p,c,B);this.hide()}; pD$=function(z,p,c,B,H){T3.call(this,z,{j:"svg",B:"ytp-timed-pie-countdown",C:{viewBox:"0 0 20 20"},J:[{j:"circle",B:"ytp-timed-pie-countdown__background",C:{r:"10",cx:"10",cy:"10"}},{j:"circle",B:"ytp-timed-pie-countdown__inner",C:{r:"5",cx:"10",cy:"10"}},{j:"circle",B:"ytp-timed-pie-countdown__outer",C:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",p,c,B,H);this.D=this.jp("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; lK=function(z,p,c,B){AQ.call(this,z,{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout",C:{tabindex:"0"},J:[{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",J:[{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",J:[{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{j:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",p,c,B);this.K=null;this.X=this.jp("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.D=new WL;g.l(this,this.D);this.hide()}; cil=function(z){var p=g.fH("html5-video-player");p&&g.Yf(p,"ytp-ad-display-override",z)}; Bu$=function(z){if(!z.adAvatar||!g.I(z.adAvatar,vl))return g.Fr(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!z.headline)return g.Fr(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!z.adBadge||!g.I(z.adBadge,I_))return g.Fr(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!z.adButton||!g.I(z.adButton,jy))return g.Fr(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!z.adInfoRenderer|| !g.I(z.adInfoRenderer,FR))return g.Fr(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;z=z.durationMilliseconds||0;return typeof z!=="number"||z<=0?(g.Fr(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+z)),!1):!0}; Fx=function(z,p){p=p===void 0?2:p;g.JQ.call(this);this.api=z;this.W=null;this.Dz=new WL(this);g.l(this,this.Dz);this.K=bqQ;this.Dz.Z(this.api,"presentingplayerstatechange",this.WS);this.W=this.Dz.Z(this.api,"progresssync",this.xr);this.H1=p;this.H1===1&&this.xr()}; o_=function(z,p,c){NK.call(this,z);this.api=z;this.Sp=p;this.K={};z=new g.Q({j:"div",LH:["video-ads","ytp-ad-module"]});g.l(this,z);Lm&&g.Eo(z.element,"ytp-ads-tiny-mode");this.L=new $g(z.element);g.l(this,this.L);g.F7(this.api,z.element,4);bq(c)&&(c=new g.Q({j:"div",LH:["ytp-ad-underlay"]}),g.l(this,c),this.D=new $g(c.element),g.l(this,this.D),g.F7(this.api,c.element,0));g.l(this,CRi())}; H_l=function(z,p){z=g.CH(z.K,p.id,null);z==null&&g.oc(Error("Component not found for element id: "+p.id));return z||null}; i_v=function(z){g.Ms.call(this,z);var p=this;this.K=null;this.created=!1;this.D=z.N().Y("h5_use_refactored_get_ad_break")?new z0v(this.player):new vz(this.player);this.X=function(){if(p.K!=null)return p.K;var B=new bLS({rP:YE(p.W).rP,Xj:YE(p.W).Xj,T:p.player,P0:YE(p.W).P0,u8:p.W.W.u8,MB:YE(p.W).MB,lk:p.W.W.lk});p.K=B.Qf;return p.K}; this.W=new xSQ(this.player,this,this.D,this.X);g.l(this,this.W);var c=z.N();!W3(c)||g.FB(c)||sc(c)||(g.l(this,new o_(z,YE(this.W).Sp,YE(this.W).P0)),g.l(this,new EJN(z)))}; Tum=function(z){z.created!==z.loaded&&P7("Created and loaded are out of sync")}; DvJ=function(z){g.Ms.prototype.load.call(z);var p=YE(z.W).P0;try{z.player.getRootNode().classList.add("ad-created")}catch(t){P7(t instanceof Error?t:String(t))}var c=z.player.getVideoData(1),B=c&&c.videoId||"",H=c&&c.getPlayerResponse()||{},T=(!z.player.N().experiments.JD("debug_ignore_ad_placements")&&H&&H.adPlacements||[]).map(function(t){return t.adPlacementRenderer}),b=((H==null?void 0:H.adSlots)||[]).map(function(t){return g.I(t,UT)}); H=H.playerConfig&&H.playerConfig.daiConfig&&H.playerConfig.daiConfig.enableDai||!1;c&&c.La();T=b_g(T,b,p,YE(z.W).gG);b=c&&c.clientPlaybackNonce||"";c=c&&c.Tf||!1;if(Zp(p,!0)&&c){var D;p={};(D=z.player.getVideoData())==null||D.KH("p_cpb",(p.cc=b,p))}D=1E3*z.player.getDuration(1);VQq(z);z.W.W.wx.b6(b,D,c,T.Hv,T.jG,T.Hv,H,B)}; VQq=function(z){var p,c;if(c=(p=z.player.getVideoData(1))==null||!p.Tf)p=z.player.N(),c=W3(p)&&!g.d9(p)&&p.playerStyle==="desktop-polymer";c&&(z=z.player.getInternalApi(),z.addEventListener("updateKevlarOrC3Companion",xqi),z.addEventListener("updateEngagementPanelAction",EcN),z.addEventListener("changeEngagementPanelVisibility",q3D),window.addEventListener("yt-navigate-start",MGS))}; nY=function(z,p){p===z.d5&&(z.d5=void 0)}; tQJ=function(z){var p=YE(z.W).V8,c=p.X().KO("SLOT_TYPE_PLAYER_BYTES",1);p=wV(p.oa.get(),1).clientPlaybackNonce;var B=!1;c=g.m(c);for(var H=c.next();!H.done;H=c.next()){H=H.value;var T=H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.slotEntryTrigger instanceof Zr?H.slotEntryTrigger.y0:void 0;T&&T===p&&(B&&P7("More than 1 preroll playerBytes slot detected",H),B=!0)}B||Bl(YE(z.W).uo)}; XDd=function(z){if(rq(YE(z.W).P0))return!0;var p="";z=g.m(YE(z.W).MB.Im.keys());for(var c=z.next();!c.done;c=z.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.wA==="core")return!0;p+=c.slotType+" "}Math.random()<.01&&P7("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:p});return!1}; xvl=function(z){z=g.m(YE(z.W).MB.Im.values());for(var p=z.next();!p.done;p=z.next())if(p.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; ZbY=function(z,p,c,B,H,T){c=c===void 0?[]:c;B=B===void 0?"":B;H=H===void 0?"":H;var b=YE(z.W).P0,D=z.player.getVideoData(1);D&&D.getPlayerResponse();D&&D.La();c=b_g(p,c,b,YE(z.W).gG);yvS(YE(z.W).fv,B,c.Hv,c.jG,p,H,T)}; b_g=function(z,p,c,B){p={Hv:[],jG:p};z=g.m(z);for(var H=z.next();!H.done;H=z.next())if((H=H.value)&&H.renderer!=null){var T=H.renderer;if(!c.T.N().Y("html5_enable_vod_lasr_with_notify_pacf")){var b=void 0,D=void 0,t=void 0,X=void 0,x=B;g.I((X=T.sandwichedLinearAdRenderer)==null?void 0:X.adVideoStart,wW)?(b=g.I((t=T.sandwichedLinearAdRenderer)==null?void 0:t.adVideoStart,wW),b=kDv(b,x),g.sF(T.sandwichedLinearAdRenderer.adVideoStart,wW,b)):g.I((D=T.linearAdSequenceRenderer)==null?void 0:D.adStart,wW)&& (t=g.I((b=T.linearAdSequenceRenderer)==null?void 0:b.adStart,wW),b=kDv(t,x),g.sF(T.linearAdSequenceRenderer.adStart,wW,b))}p.Hv.push(H)}return p}; g.Qp=function(z){if(typeof DOMParser!="undefined")return zk(new DOMParser,lLY(z),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.rp=function(z){g.e.call(this);this.callback=z;this.W=new u5(0,0,.4,0,.2,1,1,1);this.delay=new g.zV(this.next,window,this);g.l(this,this.delay)}; g.EBg=function(z){var p=z.N();return p.wU&&!p.D&&g.yB(p)?z.isEmbedsShortsMode()?(z=z.Ub(),Math.min(z.width,z.height)>=315):!z.jm():!1}; g.UK=function(z){g.Q.call(this,{j:"div",B:"ytp-more-videos-view",C:{tabIndex:"-1"}});var p=this;this.api=z;this.K=!0;this.D=new g.or(this);this.W=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.X=this.scrollPosition=0;this.title=new g.Q({j:"h2",B:"ytp-related-title",F3:"{{title}}"});this.previous=new g.Q({j:"button",LH:["ytp-button","ytp-previous"],C:{"aria-label":"Show previous suggested videos"},J:[g.KB()]});this.G=new g.rp(function(c){p.suggestions.element.scrollLeft=-c}); this.next=new g.Q({j:"button",LH:["ytp-button","ytp-next"],C:{"aria-label":"Show more suggested videos"},J:[g.uZ()]});g.l(this,this.D);this.V=z.N().X;g.l(this,this.title);this.title.Ia(this.element);this.suggestions=new g.Q({j:"div",B:"ytp-suggestions"});g.l(this,this.suggestions);this.suggestions.Ia(this.element);g.l(this,this.previous);this.previous.Ia(this.element);this.previous.listen("click",this.Kq,this);g.l(this,this.G);qx3(this);g.l(this,this.next);this.next.Ia(this.element);this.next.listen("click", this.cS,this);this.D.Z(this.api,"appresize",this.UW);this.D.Z(this.api,"fullscreentoggled",this.Za);this.D.Z(this.api,"videodatachange",this.onVideoDataChange);this.UW(this.api.Hq().getPlayerSize());this.onVideoDataChange()}; qx3=function(z){for(var p={RX:0};p.RX<16;p={RX:p.RX},++p.RX){var c=new g.Q({j:"a",B:"ytp-suggestion-link",C:{href:"{{link}}",target:z.api.N().U,"aria-label":"{{aria_label}}"},J:[{j:"div",B:"ytp-suggestion-image"},{j:"div",B:"ytp-suggestion-overlay",C:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},J:[{j:"div",B:"ytp-suggestion-title",F3:"{{title}}"},{j:"div",B:"ytp-suggestion-author",F3:"{{author_and_views}}"},{j:"div",C:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", F3:"{{duration}}"}]}]});g.l(z,c);var B=c.jp("ytp-suggestion-link");g.mm(B,"transitionDelay",p.RX/20+"s");z.D.Z(B,"click",function(H){return function(T){var b=H.RX;if(z.K){var D=z.suggestionData[b],t=D.sessionData;z.V&&z.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(z.api.logClick(z.W[b].element),b=D.ZZ(),D={},g.vv(z.api,D),b=g.g6(b,D),g.qa(b,z.api,T)):g.EB(T,z.api,z.V,t||void 0)&&z.api.oH(D.videoId,t,D.playlistId)}else T.preventDefault(),document.activeElement.blur()}}(p)); c.Ia(z.suggestions.element);z.W.push(c);z.api.createServerVe(c.element,c)}}; Jiq=function(z){if(z.api.N().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var p=Math.floor(-z.scrollPosition/(z.X+8)),c=Math.min(p+z.columns,z.suggestionData.length)-1;p<=c;p++)z.api.logVisibility(z.W[p].element,!0)}; g.sK=function(z){var p=z.api.lz()?32:16;p=z.S/2+p;z.next.element.style.bottom=p+"px";z.previous.element.style.bottom=p+"px";p=z.scrollPosition;var c=z.containerWidth-z.suggestionData.length*(z.X+8);g.Yf(z.element,"ytp-scroll-min",p>=0);g.Yf(z.element,"ytp-scroll-max",p<=c)}; Yxz=function(z){for(var p=z.suggestionData.length,c=0;c>>0)+"_",H=0;return p}); Ex("Symbol.iterator",function(z){if(z)return z;z=Symbol("Symbol.iterator");for(var p="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=T}}); Ex("String.prototype.endsWith",function(z){return z?z:function(p,c){var B=WD(this,p,"endsWith");p+="";c===void 0&&(c=B.length);c=Math.max(0,Math.min(c|0,B.length));for(var H=p.length;H>0&&c>0;)if(B[--c]!=p[--H])return!1;return H<=0}}); Ex("Array.prototype.entries",function(z){return z?z:function(){return yW(this,function(p,c){return[p,c]})}}); Ex("Math.imul",function(z){return z?z:function(p,c){p=Number(p);c=Number(c);var B=p&65535,H=c&65535;return B*H+((p>>>16&65535)*H+B*(c>>>16&65535)<<16>>>0)|0}}); Ex("Math.trunc",function(z){return z?z:function(p){p=Number(p);if(isNaN(p)||p===Infinity||p===-Infinity||p===0)return p;var c=Math.floor(Math.abs(p));return p<0?-c:c}}); Ex("Math.clz32",function(z){return z?z:function(p){p=Number(p)>>>0;if(p===0)return 32;var c=0;(p&4294901760)===0&&(p<<=16,c+=16);(p&4278190080)===0&&(p<<=8,c+=8);(p&4026531840)===0&&(p<<=4,c+=4);(p&3221225472)===0&&(p<<=2,c+=2);(p&2147483648)===0&&c++;return c}}); Ex("Number.isNaN",function(z){return z?z:function(p){return typeof p==="number"&&isNaN(p)}}); Ex("Array.prototype.keys",function(z){return z?z:function(){return yW(this,function(p){return p})}}); Ex("Array.prototype.values",function(z){return z?z:function(){return yW(this,function(p,c){return c})}}); Ex("Array.prototype.fill",function(z){return z?z:function(p,c,B){var H=this.length||0;c<0&&(c=Math.max(0,H+c));if(B==null||B>H)B=H;B=Number(B);B<0&&(B=Math.max(0,H+B));for(c=Number(c||0);c1342177279)throw new RangeError("Invalid count value");p|=0;for(var B="";p;)if(p&1&&(B+=c),p>>>=1)c+=c;return B}}); Ex("Promise.prototype.finally",function(z){return z?z:function(p){return this.then(function(c){return Promise.resolve(p()).then(function(){return c})},function(c){return Promise.resolve(p()).then(function(){throw c; })})}}); Ex("String.prototype.padStart",function(z){return z?z:function(p,c){var B=WD(this,null,"padStart");p-=B.length;c=c!==void 0?String(c):" ";return(p>0&&c?c.repeat(Math.ceil(p/c.length)).substring(0,p):"")+B}}); Ex("Array.prototype.findIndex",function(z){return z?z:function(p,c){return qxY(this,p,c).jZ}}); Ex("Math.sign",function(z){return z?z:function(p){p=Number(p);return p===0||isNaN(p)?p:p>0?1:-1}}); Ex("WeakSet",function(z){function p(c){this.W=new WeakMap;if(c){c=g.m(c);for(var B;!(B=c.next()).done;)this.add(B.value)}} if(function(){if(!z||!Object.seal)return!1;try{var c=Object.seal({}),B=Object.seal({}),H=new z([c]);if(!H.has(c)||H.has(B))return!1;H.delete(c);H.add(B);return!H.has(c)&&H.has(B)}catch(T){return!1}}())return z; p.prototype.add=function(c){this.W.set(c,!0);return this}; p.prototype.has=function(c){return this.W.has(c)}; p.prototype.delete=function(c){return this.W.delete(c)}; return p}); Ex("Array.prototype.copyWithin",function(z){function p(c){c=Number(c);return c===Infinity||c===-Infinity?c:c|0} return z?z:function(c,B,H){var T=this.length;c=p(c);B=p(B);H=H===void 0?T:p(H);c=c<0?Math.max(T+c,0):Math.min(c,T);B=B<0?Math.max(T+B,0):Math.min(B,T);H=H<0?Math.max(T+H,0):Math.min(H,T);if(cB;)--H in this?this[--c]=this[H]:delete this[--c];return this}}); Ex("Int8Array.prototype.copyWithin",eQ);Ex("Uint8Array.prototype.copyWithin",eQ);Ex("Uint8ClampedArray.prototype.copyWithin",eQ);Ex("Int16Array.prototype.copyWithin",eQ);Ex("Uint16Array.prototype.copyWithin",eQ);Ex("Int32Array.prototype.copyWithin",eQ);Ex("Uint32Array.prototype.copyWithin",eQ);Ex("Float32Array.prototype.copyWithin",eQ);Ex("Float64Array.prototype.copyWithin",eQ);Ex("Array.prototype.at",function(z){return z?z:lf}); Ex("Int8Array.prototype.at",vD);Ex("Uint8Array.prototype.at",vD);Ex("Uint8ClampedArray.prototype.at",vD);Ex("Int16Array.prototype.at",vD);Ex("Uint16Array.prototype.at",vD);Ex("Int32Array.prototype.at",vD);Ex("Uint32Array.prototype.at",vD);Ex("Float32Array.prototype.at",vD);Ex("Float64Array.prototype.at",vD);Ex("String.prototype.at",function(z){return z?z:lf}); Ex("Array.prototype.findLastIndex",function(z){return z?z:function(p,c){return JiD(this,p,c).jZ}}); Ex("Int8Array.prototype.findLastIndex",IE);Ex("Uint8Array.prototype.findLastIndex",IE);Ex("Uint8ClampedArray.prototype.findLastIndex",IE);Ex("Int16Array.prototype.findLastIndex",IE);Ex("Uint16Array.prototype.findLastIndex",IE);Ex("Int32Array.prototype.findLastIndex",IE);Ex("Uint32Array.prototype.findLastIndex",IE);Ex("Float32Array.prototype.findLastIndex",IE);Ex("Float64Array.prototype.findLastIndex",IE);Ex("Number.parseInt",function(z){return z||parseInt});var cb,gu,MQx;cb=cb||{};g.jQ=this||self;gu="closure_uid_"+(Math.random()*1E9>>>0);MQx=0;g.Y(Hq,Error);g.e.prototype.PH=!1;g.e.prototype.qZ=function(){return this.PH}; g.e.prototype.dispose=function(){this.PH||(this.PH=!0,this.m0())}; g.e.prototype[Symbol.dispose]=function(){this.dispose()}; g.e.prototype.addOnDisposeCallback=function(z,p){this.PH?p!==void 0?z.call(p):z():(this.xY||(this.xY=[]),p&&(z=z.bind(p)),this.xY.push(z))}; g.e.prototype.m0=function(){if(this.xY)for(;this.xY.length;)this.xY.shift()()};var wDv;g.Y(xL,g.e);xL.prototype.share=function(){if(this.qZ())throw Error("E:AD");this.X++;return this}; xL.prototype.dispose=function(){--this.X||g.e.prototype.dispose.call(this)}; wDv=Symbol.dispose;RNY.prototype.hC=function(z,p){this.W.hC("/client_streamz/bg/frs",z,p)}; Sxv.prototype.hC=function(z,p,c,B,H,T){this.W.hC("/client_streamz/bg/wrl",z,p,c,B,H,T)}; $vV.prototype.II=function(z,p){this.W.Go("/client_streamz/bg/ec",z,p)}; KSV.prototype.hC=function(z,p,c,B){this.W.hC("/client_streamz/bg/el",z,p,c,B)}; uYf.prototype.II=function(z,p,c){this.W.Go("/client_streamz/bg/cec",z,p,c)}; aVN.prototype.II=function(z,p,c){this.W.Go("/client_streamz/bg/po/csc",z,p,c)}; Z_E.prototype.II=function(z,p,c){this.W.Go("/client_streamz/bg/po/ctav",z,p,c)}; LSV.prototype.II=function(z,p,c){this.W.Go("/client_streamz/bg/po/cwsc",z,p,c)};g.Bq(JJ,Error);JJ.prototype.name="CustomError";var GuD;var jr=void 0,IJ,RUi=typeof TextDecoder!=="undefined",eN_,CfV=typeof String.prototype.isWellFormed==="function",yi_=typeof TextEncoder!=="undefined";var K9=String.prototype.trim?function(z){return z.trim()}:function(z){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(z)[1]},RxW=/&/g,SDS=//g,K0u=/"/g,upB=/'/g,aBS=/\x00/g,wyY=/[\x00&<>"']/;var RNv=QW(1,!0),L9=QW(610401301,!1);QW(899588437,!1);var Sxd=QW(725719775,!1),$vm=QW(513659523,!1),KSm=QW(568333945,!1);QW(651175828,!1);QW(722764542,!1);QW(2147483644,!1);QW(2147483645,!1);QW(2147483646,RNv);QW(2147483647,!0);var dz=!!g.n_("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Wq,uYE=g.jQ.navigator;Wq=uYE?uYE.userAgentData||null:null;var GYV,yA,ln;GYV=Array.prototype.indexOf?function(z,p){return Array.prototype.indexOf.call(z,p,void 0)}:function(z,p){if(typeof z==="string")return typeof p!=="string"||p.length!=1?-1:z.indexOf(p,0); for(var c=0;c=0;c--)if(c in z&&z[c]===p)return c;return-1}; g.E_=Array.prototype.forEach?function(z,p,c){Array.prototype.forEach.call(z,p,c)}:function(z,p,c){for(var B=z.length,H=typeof z==="string"?z.split(""):z,T=0;TparseFloat(yi9)){WSg=String(kE);break a}}WSg=yi9}var DdS=WSg,b9B={};var cL,BL;g.UP=vq();cL=n9()||C9("iPod");BL=C9("iPad");g.WW=nBE();g.v2=Ig();g.$U=F3()&&!Q$();var XqB={},O_=null,xdY=h_||g.pu||typeof g.jQ.btoa=="function";var O9W=typeof Uint8Array!=="undefined",YQW=!g.An&&typeof btoa==="function",mdx=/[-_.]/g,JJV={"-":"+",_:"/",".":"="},RW={};wd.prototype.isEmpty=function(){return this.W==null}; wd.prototype.sizeBytes=function(){var z=$u(this);return z?z.length:0}; var AJi;var RKx=void 0;var L$=typeof Symbol==="function"&&typeof Symbol()==="symbol",lVQ=Z5("jas",void 0,!0),bJ=Z5(void 0,"1oa"),$_=Z5(void 0,Symbol()),vBL=Z5(void 0,"0ub"),DCY=Z5(void 0,"0actk"),eg=Z5("m_m","uLA",!0),amu=Z5(void 0,"mrtk"),Bd_=Z5(void 0,"vps");Math.max.apply(Math,g.A(Object.values({RQp:1,hQ8:2,TcD:4,XWI:8,Fe8:16,cm$:32,V1p:64,NPA:128,xzA:256,rA$:512,tAa:1024,nYa:2048,ju0:4096,nEH:8192,oGH:16384})));var dd=L$?lVQ:"KUa",$dB={KUa:{value:0,configurable:!0,writable:!0,enumerable:!1}},SQN=Object.defineProperties;var u3f=typeof eg==="symbol",K1Q={},Gu,IVQ=[];yT(IVQ,55);Gu=Object.freeze(IVQ);var Eu_=Object.freeze({});var W1i=QT(function(z){return typeof z==="number"}),ddS=QT(function(z){return typeof z==="string"}),yJS=QT(function(z){return typeof z==="boolean"}),Jh=QT(function(z){return z!=null&&typeof z==="object"&&typeof z.then==="function"}),qH=QT(function(z){return!!z&&(typeof z==="object"||typeof z==="function")});var rd=typeof g.jQ.BigInt==="function"&&typeof g.jQ.BigInt(0)==="bigint";var AD=QT(function(z){return rd?z>=jE9&&z<=FSL:z[0]==="-"?CEN(z,oBz):CEN(z,nBg)}),oBz=Number.MIN_SAFE_INTEGER.toString(),jE9=rd?BigInt(Number.MIN_SAFE_INTEGER):void 0,nBg=Number.MAX_SAFE_INTEGER.toString(),FSL=rd?BigInt(Number.MAX_SAFE_INTEGER):void 0;var hUv=typeof Uint8Array.prototype.slice==="function",s_=0,gd=0,kou;var qI=typeof BigInt==="function"?BigInt.asIntN:void 0,gLD=typeof BigInt==="function"?BigInt.asUintN:void 0,m0=Number.isSafeInteger,VY=Number.isFinite,Y_=Math.trunc,jgY=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var H$Y={};var ZB;var yY,i$S;g.V=Y_u.prototype;g.V.init=function(z,p,c,B){B=B===void 0?{}:B;this.Lu=B.Lu===void 0?!1:B.Lu;z&&(z=$y(z),this.K=z.buffer,this.L=z.JS,this.X=p||0,this.D=c!==void 0?this.X+c:this.K.length,this.W=this.X)}; g.V.free=function(){this.clear();yH.length<100&&yH.push(this)}; g.V.clear=function(){this.K=null;this.L=!1;this.W=this.D=this.X=0;this.Lu=!1}; g.V.reset=function(){this.W=this.X}; g.V.TZ=function(){var z=this.V;z||(z=this.K,z=this.V=new DataView(z.buffer,z.byteOffset,z.byteLength));return z}; var yH=[];Cp.prototype.free=function(){this.W.clear();this.K=this.X=-1;er.length<100&&er.push(this)}; Cp.prototype.reset=function(){this.W.reset();this.D=this.W.W;this.K=this.X=-1}; var er=[];oJ.prototype.toJSON=function(){return Wy(this)}; oJ.prototype.M_=function(z){return JSON.stringify(Wy(this,z))}; oJ.prototype.clone=function(){var z=this;l0(z);var p=z;l0(p);p=p.Ka;p=z=new z.constructor(L2(p,p[dd]|0,vy,!0,!0));l0(p);C$(p.Ka,2);return z}; oJ.prototype.JS=function(){l0(this);return!!((this.Ka[dd]|0)&2)}; oJ.prototype[eg]=K1Q;oJ.prototype.toString=function(){l0(this);return this.Ka.toString()};var KrY,a5u;rv.prototype.length=function(){return this.W.length}; rv.prototype.end=function(){var z=this.W;this.W=[];return z};var zs=fp(),QEQ=fp(),riv=fp(),UvL=fp(),sEq=fp(),kY$=fp(),gBz=fp(),GYm=fp();var vuN=cA(function(z,p,c,B,H){if(z.K!==2)return!1;vQ(z,VH(p,B,c),H);return!0},l5Q),I5B=cA(function(z,p,c,B,H){if(z.K!==2)return!1; vQ(z,VH(p,B,c),H);return!0},l5Q),xC=Symbol(),bv=Symbol(),tu=Symbol(),ryE=Symbol(),ouB=Symbol(),BA,HA;var Nug=Ju(function(z,p,c){if(z.K!==1)return!1;YC(p,c,dv(z.W));return!0},me,gBz),fVK=Ju(function(z,p,c){if(z.K!==1)return!1; z=dv(z.W);YC(p,c,z===0?void 0:z);return!0},me,gBz),zKv=Ju(function(z,p,c,B){if(z.K!==1)return!1; iJ(p,c,B,dv(z.W));return!0},me,gBz),pq9=Ju(function(z,p,c){if(z.K!==0)return!1; YC(p,c,uJ(z.W));return!0},hu,sEq),cJq=Ju(function(z,p,c){if(z.K!==0)return!1; z=uJ(z.W);YC(p,c,z===0?void 0:z);return!0},hu,sEq),BzJ=Ju(function(z,p,c,B){if(z.K!==0)return!1; iJ(p,c,B,uJ(z.W));return!0},hu,sEq),H9g=Ju(function(z,p,c){if(z.K!==0)return!1; YC(p,c,aJ(z.W));return!0},PA,UvL),i9E=Ju(function(z,p,c){if(z.K!==0)return!1; z=aJ(z.W);YC(p,c,z===0?void 0:z);return!0},PA,UvL),Tzz=Ju(function(z,p,c,B){if(z.K!==0)return!1; iJ(p,c,B,aJ(z.W));return!0},PA,UvL),b9L=Ju(function(z,p,c){if(z.K!==1)return!1; YC(p,c,Lp(z.W));return!0},function(z,p,c){C0f(z,c,GvQ(p))},kY$),Vll=Mi(function(z,p,c){if(z.K!==1&&z.K!==2)return!1; p=zc(p,p[dd]|0,c,!1);if(z.K==2)for(c=aJ(z.W)>>>0,c=z.W.W+c;z.W.W>>0);return!0},function(z,p,c){p=x_(p); p!=null&&p!=null&&(Gc(z,c,0),s7(z.W,p))},fp()),JJm=Ju(function(z,p,c){if(z.K!==0)return!1; YC(p,c,aJ(z.W));return!0},function(z,p,c){p=Xp(p); p!=null&&(p=parseInt(p,10),Gc(z,c,0),LrV(z.W,p))},fp());zxS.prototype.register=function(){Yu(this)};g.Y(cDx,oJ);g.Y(OU,oJ);var Kw=[1,2,3];var Ml3=[0,Kw,xd3,Tzz,tlm];var YQ$=[0,Gf,[0,Nug,pq9]];g.Y(wh,oJ);var $C=[1,2,3];var mdQ=[0,$C,BzJ,zKv,fY,YQ$];g.Y(RQ,oJ);var hKz=[0,Gf,Ml3,mdQ];var PE9=[0,[1,2,3],fY,[0,gp,-1,Dd1],fY,[0,gp,-1,H9g,Dd1],fY,[0,gp]];g.Y(Sf,oJ);Sf.prototype.Qo=function(){var z=gL(this,3,wL,3,!0);jg(z);return z[void 0]};Sf.prototype.W=py_([0,gp,PE9,XqL,Gf,hKz,b9L,Vll]);g.Y(H2u,oJ);var E_Q=globalThis.trustedTypes,uv;ZX.prototype.toString=function(){return this.W+""};WA.prototype.toString=function(){return this.W}; var MxS=new WA("about:invalid#zClosurez");var vEY=ef("tel"),edS=ef("sms"),JDQ=[ef("data"),ef("http"),ef("https"),ef("mailto"),ef("ftp"),new Cw(function(z){return/^[^:]*([/?#]|$)/.test(z)})],YDD=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;jf.prototype.toString=function(){return this.W+""};rh.prototype.toString=function(){return this.W+""};gh.prototype.toString=function(){return this.W};var Ni={};g.AJJ=String.prototype.repeat?function(z,p){return z.repeat(p)}:function(z,p){return Array(p+1).join(z)};g.V=bU.prototype;g.V.isEnabled=function(){if(!g.jQ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{pC:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.V.set=function(z,p,c){var B=!1;if(typeof c==="object"){var H=c.tmi;B=c.secure||!1;var T=c.domain||void 0;var b=c.path||void 0;var D=c.pC}if(/[;=\s]/.test(z))throw Error('Invalid cookie name "'+z+'"');if(/[;\r\n]/.test(p))throw Error('Invalid cookie value "'+p+'"');D===void 0&&(D=-1);c=T?";domain="+T:"";b=b?";path="+b:"";B=B?";secure":"";D=D<0?"":D==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+D*1E3)).toUTCString();this.W.cookie=z+"="+p+c+b+D+B+(H!=null?";samesite="+ H:"")}; g.V.get=function(z,p){for(var c=z+"=",B=(this.W.cookie||"").split(";"),H=0,T;H=0;p--)this.remove(z[p])}; var FL=new bU(typeof document=="undefined"?null:document);D$.prototype.compress=function(z){var p,c,B,H;return g.L(function(T){switch(T.W){case 1:return p=new CompressionStream("gzip"),c=(new Response(p.readable)).arrayBuffer(),B=p.writable.getWriter(),g.a(T,B.write((new TextEncoder).encode(z)),2);case 2:return g.a(T,B.close(),3);case 3:return H=Uint8Array,g.a(T,c,4);case 4:return T.return(new H(T.K))}})}; D$.prototype.isSupported=function(z){return z<1024?!1:typeof CompressionStream!=="undefined"};g.Y(to,oJ);Xa.prototype.setInterval=function(z){this.intervalMs=z;this.y8&&this.enabled?(this.stop(),this.start()):this.y8&&this.stop()}; Xa.prototype.start=function(){var z=this;this.enabled=!0;this.y8||(this.y8=setTimeout(function(){z.tick()},this.intervalMs),this.K=this.W())}; Xa.prototype.stop=function(){this.enabled=!1;this.y8&&(clearTimeout(this.y8),this.y8=void 0)}; Xa.prototype.tick=function(){var z=this;if(this.enabled){var p=Math.max(this.W()-this.K,0);p0?c:void 0));c=n2(c,4,tD(H>0?H:void 0));c=n2(c,5,tD(T>0?T:void 0));l0(c);H=c.Ka;T=H[dd]|0;c=T&2?c:new c.constructor(L2(H,T,vy,!0,!0));E7(b,J3,10,c)}b=this.W.clone();c=Date.now().toString();b=n2(b,4,Py(c));z=qo(b,Rz,3,z.slice());B&&(b=new x0,B= n2(b,13,tD(B)),b=new Jo,B=E7(b,x0,2,B),b=new wc,B=E7(b,Jo,1,B),B=wv(B,2,9),E7(z,wc,18,B));p&&PQ(z,14,p);return z};var aQS=function(){if(!g.jQ.addEventListener||!Object.defineProperty)return!1;var z=!1,p=Object.defineProperty({},"passive",{get:function(){z=!0}}); try{var c=function(){}; g.jQ.addEventListener("test",c,p);g.jQ.removeEventListener("test",c,p)}catch(B){}return z}();var VyQ=xoS("AnimationEnd"),mu=xoS("TransitionEnd");g.u4.prototype.K=0;g.u4.prototype.reset=function(){this.W=this.D=this.X;this.K=0}; g.u4.prototype.getValue=function(){return this.D};g.Y(EyB,oJ);var O9$=Au(EyB);g.Y(f5f,oJ);var pA=new zxS;g.Y(dc,g.e);g.V=dc.prototype;g.V.m0=function(){Lu(this);this.K.stop();this.YA.stop();g.e.prototype.m0.call(this)}; g.V.dispatch=function(z){if(z instanceof Rz)this.log(z);else try{var p=new Rz,c=z.M_();var B=A5(p,8,c);this.log(B)}catch(H){WG(this,4,1)}}; g.V.log=function(z){WG(this,2,1);if(this.fH){z=z.clone();var p=this.OH++;z=PQ(z,21,p);this.componentId&&A5(z,26,this.componentId);p=z;if(q_B(p)==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";n2(p,1,Py(c))}sgx(Fp(p,15))!=null||PQ(p,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(c=this.experimentIds.clone(),E7(p,to,16,c));WG(this,1,1);p=this.W.length-1E3+1;p>0&&(this.W.splice(0,p),this.X+=p,WG(this,3,p));this.W.push(z);this.wz||this.K.enabled||this.K.start()}}; g.V.flush=function(z,p){var c=this;if(this.W.length===0)z&&z();else if(this.Ra&&this.MZ)this.D.K=3,moE(this);else{var B=Date.now();if(this.i8>B&&this.T$0&&(c.T$=Date.now(),c.i8=c.T$+O);var R;l0(J);O=cq($_);if(q=L$&&O)l0(J),q=((R=J.Ka[O])==null?void 0:R[175237375])!=null;q&&aW(vBL,3);R=pA.W?pA.K(J,pA.W,175237375):pA.K(J,175237375,null);if(R=R===null?void 0:R)R=V$(R,1,-1), R!==-1&&(c.L=new g.u4(R<1?1:R,3E5,.1),c.K.setInterval(c.L.getValue()))}}z&&z();c.V=0},x=function(q,J){var M=iE(T,Rz,3); var P;var O=(P=sgx(Fp(T,14)))!=null?P:void 0;g.az(c.L);c.K.setInterval(c.L.getValue());q===401&&b&&(c.rA=b);O&&(c.X+=O);J===void 0&&(J=c.isRetryable(q));J&&(c.W=M.concat(c.W),c.wz||c.K.enabled||c.K.start());WG(c,7,1);p&&p("net-send-failed",q);++c.V},E=function(){c.network&&c.network.send(t,X,x)}; D?D.then(function(q){WG(c,5,H);t.requestHeaders["Content-Encoding"]="gzip";t.requestHeaders["Content-Type"]="application/binary";t.body=q;t.mZ=2;E()},function(){WG(c,6,H); E()}):E()}}}}; g.V.isRetryable=function(z){return 500<=z&&z<600||z===401||z===0};ym.prototype.send=function(z,p,c){var B=this,H,T,b,D,t,X,x,E,q,J;return g.L(function(M){switch(M.W){case 1:return T=(H=B.S2?new AbortController:void 0)?setTimeout(function(){H.abort()},z.timeoutMillis):void 0,g.Ox(M,2,3),b=Object.assign({},{method:z.requestType, headers:Object.assign({},z.requestHeaders)},z.body&&{body:z.body},z.withCredentials&&{credentials:"include"},{signal:z.timeoutMillis&&H?H.signal:null}),g.a(M,fetch(z.url,b),5);case 5:D=M.K;if(D.status!==200){(t=c)==null||t(D.status);M.hD(3);break}if((X=p)==null){M.hD(7);break}return g.a(M,D.text(),8);case 8:X(M.K);case 7:case 3:g.$B(M);clearTimeout(T);g.K_(M,0);break;case 2:x=g.SQ(M);switch((E=x)==null?void 0:E.name){case "AbortError":(q=c)==null||q(408);break;default:(J=c)==null||J(400)}M.hD(3)}})}; ym.prototype.HA=function(){return 4};g.Y(Cu,g.e);Cu.prototype.RC=function(){this.L=!0;return this}; Cu.prototype.build=function(){this.network||(this.network=new ym);var z=new dc({logSource:this.logSource,Is:this.Is?this.Is:exf,sessionIndex:this.sessionIndex,wQA:this.lr,OJ:this.X,wz:!1,RC:this.L,Gp:this.Gp,network:this.network});g.l(this,z);if(this.K){var p=this.K,c=Ku(z.D);A5(c,7,p)}z.G=new D$;this.componentId&&(z.componentId=this.componentId);this.HT&&(z.HT=this.HT);this.pageId&&(z.pageId=this.pageId);this.W&&((c=this.W)?(z.experimentIds||(z.experimentIds=new to),p=z.experimentIds,c=c.M_(),A5(p, 4,c)):z.experimentIds&&n2(z.experimentIds,4));this.D&&(z.Ra=z.MZ);XQf(z.D);this.network.yN&&this.network.yN(this.logSource);this.network.BkH&&this.network.BkH(z);return z};g.Y(eS,g.e);eS.prototype.flush=function(z){z=z||[];if(z.length){for(var p=new H2u,c=[],B=0;B-1?(p=z[b],c||(p.wr=!1)):(p=new $o_(p,this.src,T,!!B,H),p.wr=c,z.push(p));return p}; g.V.remove=function(z,p,c,B){z=z.toString();if(!(z in this.listeners))return!1;var H=this.listeners[z];p=gc(H,p,c,B);return p>-1?(nu(H[p]),g.Nd(H,p),H.length==0&&(delete this.listeners[z],this.W--),!0):!1}; g.V.removeAll=function(z){z=z&&z.toString();var p=0,c;for(c in this.listeners)if(!z||c==z){for(var B=this.listeners[c],H=0;H-1?z[H]:null}; g.V.hasListener=function(z,p){var c=z!==void 0,B=c?z.toString():"",H=p!==void 0;return g.KH(this.listeners,function(T){for(var b=0;b>>0);g.Bq(g.T1,g.e);g.T1.prototype[RkD]=!0;g.V=g.T1.prototype;g.V.addEventListener=function(z,p,c,B){g.Nx(this,z,p,c,B)}; g.V.removeEventListener=function(z,p,c,B){Wnx(this,z,p,c,B)}; g.V.dispatchEvent=function(z){var p=this.Pz;if(p){var c=[];for(var B=1;p;p=p.Pz)c.push(p),++B}p=this.JJ;B=z.type||z;if(typeof z==="string")z=new g.jS(z,p);else if(z instanceof g.jS)z.target=z.target||p;else{var H=z;z=new g.jS(B,p);g.Ix(z,H)}H=!0;var T;if(c)for(T=c.length-1;!z.K&&T>=0;T--){var b=z.currentTarget=c[T];H=bt(b,B,!0,z)&&H}z.K||(b=z.currentTarget=p,H=bt(b,B,!0,z)&&H,z.K||(H=bt(b,B,!1,z)&&H));if(c)for(T=0;!z.K&&T0){this.K--;var z=this.W;this.W=z.next;z.next=null}else z=this.D();return z};var tG;xA.prototype.add=function(z,p){var c=IQV.get();c.set(z,p);this.K?this.K.next=c:this.W=c;this.K=c}; xA.prototype.remove=function(){var z=null;this.W&&(z=this.W,this.W=this.W.next,this.W||(this.K=null),z.next=null);return z}; var IQV=new Vo(function(){return new E9},function(z){return z.reset()}); E9.prototype.set=function(z,p){this.W=z;this.scope=p;this.next=null}; E9.prototype.reset=function(){this.next=this.scope=this.W=null};var qg,JG=!1,lQY=new xA;oyY.prototype.reset=function(){this.context=this.K=this.D=this.W=null;this.X=!1}; var nyx=new Vo(function(){return new oyY},function(z){z.reset()}); g.O9.prototype.then=function(z,p,c){return pA_(this,DC(typeof z==="function"?z:null),DC(typeof p==="function"?p:null),c)}; g.O9.prototype.$goog_Thenable=!0;g.V=g.O9.prototype;g.V.finally=function(z){var p=this;z=DC(z);return new Promise(function(c,B){gyV(p,function(H){z();c(H)},function(H){z(); B(H)})})}; g.V.zL=function(z,p){return pA_(this,null,DC(z),p)}; g.V.catch=g.O9.prototype.zL;g.V.cancel=function(z){if(this.W==0){var p=new ut(z);g.Mg(function(){GcE(this,p)},this)}}; g.V.utA=function(z){this.W=0;AG(this,2,z)}; g.V.rnH=function(z){this.W=0;AG(this,3,z)}; g.V.VF=function(){for(var z;z=NvV(this);)fQY(this,z,this.W,this.G);this.V=!1}; var iwS=Pq;g.Bq(ut,JJ);ut.prototype.name="cancel";g.Bq(g.aS,g.T1);g.V=g.aS.prototype;g.V.enabled=!1;g.V.Py=null;g.V.setInterval=function(z){this.DZ=z;this.Py&&this.enabled?(this.stop(),this.start()):this.Py&&this.stop()}; g.V.Qk$=function(){if(this.enabled){var z=g.p9()-this.d8;z>0&&z0&&(this.getStatus(),this.V=setTimeout(this.Qp.bind(this), this.MZ)),this.getStatus(),this.U=!0,this.W.send(z),this.U=!1}catch(b){this.getStatus(),$Qf(this,b)}}; g.V.Qp=function(){typeof cb!="undefined"&&this.W&&(this.X="Timed out after "+this.MZ+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.V.abort=function(z){this.W&&this.D&&(this.getStatus(),this.D=!1,this.L=!0,this.W.abort(),this.L=!1,this.K=z||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),pz(this))}; g.V.m0=function(){this.W&&(this.D&&(this.D=!1,this.L=!0,this.W.abort(),this.L=!1),pz(this,!0));g.zB.QR.m0.call(this)}; g.V.ai=function(){this.qZ()||(this.tD||this.U||this.L?KHS(this):this.mit())}; g.V.mit=function(){KHS(this)}; g.V.isActive=function(){return!!this.W}; g.V.isComplete=function(){return g.Bb(this)==4}; g.V.getStatus=function(){try{return g.Bb(this)>2?this.W.status:-1}catch(z){return-1}}; g.V.getResponseHeader=function(z){if(this.W&&this.isComplete())return z=this.W.getResponseHeader(z),z===null?void 0:z}; g.V.getLastError=function(){return typeof this.X==="string"?this.X:String(this.X)};VC.prototype.send=function(z,p,c){p=p===void 0?function(){}:p; c=c===void 0?function(){}:c; RfE(z.url,function(B){B=B.target;Hb(B)?p(g.io(B)):c(B.getStatus())},z.requestType,z.body,z.requestHeaders,z.timeoutMillis,z.withCredentials)}; VC.prototype.HA=function(){return 1};t9.prototype.done=function(){this.logger.XR(this.event,Ds()-this.startTime)}; g.Y(X8,xL);g.Y(EE,X8);g.V=EE.prototype;g.V.LC=function(){}; g.V.cH=function(){}; g.V.XR=function(){}; g.V.zU=function(){}; g.V.aY=function(){}; g.V.Qa=function(z,p,c){return c}; g.V.Po=function(){}; g.V.wQ=function(){}; g.V.NT=function(){}; g.V.wj=function(){}; g.Y(ql,X8);g.V=ql.prototype;g.V.update=function(z){this.logger.dispose();this.logger=z}; g.V.cH=function(z){this.logger.cH(z)}; g.V.XR=function(z,p){this.logger.XR(z,p)}; g.V.zU=function(z){this.logger.zU(z)}; g.V.aY=function(){this.logger.aY()}; g.V.Qa=function(z,p,c){return this.logger.Qa(z,p,c)}; g.V.Po=function(z){this.logger.Po(z)}; g.V.wQ=function(z){this.logger.wQ(z)}; g.V.NT=function(z){this.logger.NT(z)}; g.V.wj=function(z){this.logger.wj(z)}; g.V.Ux=function(z){this.logger instanceof YX&&this.logger.Ux(z)}; g.V.LC=function(z){this.logger.LC(z)}; g.Y(J9,g.e);g.Y(Ml,X8);g.V=Ml.prototype;g.V.Ux=function(z){this.tq=z}; g.V.LC=function(z){this.metrics.Czq.hC(z,this.cQ)}; g.V.cH=function(z){this.metrics.eventCount.II(z,this.cQ)}; g.V.XR=function(z,p){this.metrics.IL.hC(p,z,this.tq,this.cQ)}; g.V.zU=function(z){this.metrics.errorCount.II(z,this.tq,this.cQ)}; g.V.Qa=function(z,p,c){function B(b){if(!H.qZ()){var D=Ds()-T;H.metrics.ynA.hC(D,z,p,b,H.tq,H.cQ)}} var H=this,T=Ds();c.then(function(){return void B(0)},function(b){return void B(b instanceof Cf?b.code:-1)}); return c}; g.V.Po=function(z){this.metrics.HD3.II(z,this.tq,this.cQ)}; g.V.wQ=function(z){this.metrics.X5.II(z,this.tq,this.cQ)}; g.V.NT=function(z){this.metrics.bDa.II(z,this.tq,this.cQ)}; g.Y(YX,Ml);YX.prototype.wj=function(z){var p=this;this.W.dispose();this.K&&this.service.dispose();this.service=this.options.qp("47",this.options.cI.concat(z));this.W=new J9(function(){return void p.service.K1()},this.options.Zm); this.metrics=ZHY(this.service);this.D=z}; YX.prototype.aY=function(){dQD(this.W)};g.Y(mE,oJ);g.Y(h9,oJ);g.Y(Pb,oJ);var o0i=Au(Pb),yo_=function(z){return QT(function(p){var c;if(c=p instanceof z)l0(p),c=!((p.Ka[dd]|0)&2);return c})}(Pb); Pb.messageId="bfkj";g.Y(Tv,oJ);g.Y(A9,oJ);var CUB=Au(A9);g.Y(wN,g.e);wN.prototype.snapshot=function(z){if(this.qZ())throw Error("Already disposed");this.logger.cH("n");var p=this.logger.share();return this.D.then(function(c){var B=c.aK;return new Promise(function(H){var T=new t9(p,"n");B(function(b){T.done();p.LC(b.length);p.aY();p.dispose();H(b)},[z.Wu, z.Df,z.ey,z.F4])})})}; wN.prototype.Q$=function(z){var p=this;if(this.qZ())throw Error("Already disposed");this.logger.cH("n");var c=xX(this.logger,function(){return p.X([z.Wu,z.Df,z.ey,z.F4])},"n"); this.logger.LC(c.length);this.logger.aY();return c}; wN.prototype.Ui=function(z){this.D.then(function(p){var c;(c=p.t83)==null||c(z)})}; wN.prototype.zK=function(){return this.logger.share()};g.Y(uo,oJ);g.Y(a$,oJ);Zs.prototype.Wx=function(z,p){return n0f(this,z,p,new EE,0)}; Zs.prototype.Ip=function(z){return UQv(this,z,new EE,0)};g.Y(Lz,g.e);Lz.prototype.snapshot=function(z){var p=this;return g.L(function(c){switch(c.W){case 1:if(p.qZ())throw Error("Already disposed");if(p.K||p.G){c.hD(2);break}return g.a(c,p.L.promise,2);case 2:if(!p.K){c.hD(4);break}return g.a(c,p.K.snapshot(z),5);case 5:return c.return(c.K);case 4:throw p.G;}})}; Lz.prototype.Ui=function(z){var p,c;(p=this.K)==null||(c=p.Ui)==null||c.call(p,z)}; Lz.prototype.handleError=function(z){if(!this.qZ()){this.G=z;this.L.resolve();var p,c;(c=(p=this.options).AH0)==null||c.call(p,z)}}; Lz.prototype.zK=function(){return this.logger.share()}; var g0Y={SFt:432E5,tB:3E5,I2:10,xq:1E4,uG:3E4,qWp:3E4,ge3:6E4,TI:1E3,j7:6E4,hV:6E5,RL:.25,QF:2,maxAttempts:10};var SQK,iuY=(SQK=Math.imul)!=null?SQK:function(z,p){return z*p|0},Cz=[196, 200,224,18];eK.prototype.M_=function(){return String(this.W)+","+this.K.join()}; eK.prototype.Uv=function(z,p){var c=void 0;if(this.K[this.W]!==z){var B=this.K.indexOf(z);B!==-1?(this.K.splice(B,1),B0;)p[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(z%62),z=Math.floor(z/62);return p.join("")}};var mxW;g.Y(vb,g.e);vb.prototype.SF=function(z,p){var c=this.ZY(z);p==null||p(c);return xX(this.logger,function(){return g.hy(c,2)},this.D)}; mxW=Symbol.dispose;g.Y(o$,vb);o$.prototype.ZY=function(z,p){var c=this;this.logger.cH(this.W);++this.L>=this.V&&this.K.resolve();var B=z();z=xX(this.logger,function(){return c.X(B)},"C"); if(z===void 0)throw new Hq(17,"YNJ:Undefined");if(!(z instanceof Uint8Array))throw new Hq(18,"ODM:Invalid");p==null||p(z);return z}; g.Y(nz,vb);nz.prototype.ZY=function(){return this.X}; g.Y(QC,vb);QC.prototype.ZY=function(){var z=this;return xX(this.logger,function(){return Ay(z.X)},"d")}; QC.prototype.SF=function(){return this.X}; g.Y(rN,vb);rN.prototype.ZY=function(){if(this.X)return this.X;this.X=hnQ(this,function(z){return"_"+YND(z)}); return hnQ(this,function(z){return z})}; g.Y(sE,vb);sE.prototype.ZY=function(z){var p=z();if(p.length>118)throw new Hq(19,"DFO:Invalid");z=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],B=c.concat([this.X&255,this.clientState],[z>>24&255,z>>16&255,z>>8&255,z&255]);z=new Uint8Array(2+B.length+p.length);z[0]=34;z[1]=B.length+p.length;z.set(B,2);z.set(p,2+B.length);p=z.subarray(2);for(B=c=c.length;B150))try{this.cache=new xxW(z,this.logger)}catch(p){this.reportError(new Hq(22,"GBJ:init",p))}}; kX.prototype.reportError=function(z){this.logger.zU(z.code);this.onError(z);return z}; g.Y(fz,kX);fz.prototype.vC=function(){return this.X.promise}; fz.prototype.ZY=function(z){return gN(this,Object.assign({},z),!1)}; fz.prototype.SF=function(z){return gN(this,Object.assign({},z),!0)}; var K8x=function(z){return QT(function(p){if(!qH(p))return!1;for(var c=g.m(Object.entries(z)),B=c.next();!B.done;B=c.next()){var H=g.m(B.value);B=H.next().value;H=H.next().value;if(!(B in p)){if(H.jYt===!0)continue;return!1}if(!H(p[B]))return!1}return!0})}({WO:function(z){return QT(function(p){return p instanceof z})}(Lz)},"");g.Y(pD,oJ);var $dL=Au(pD);Zu_.prototype.getMetadata=function(){return this.metadata};cF.prototype.getMetadata=function(){return this.metadata}; cF.prototype.getStatus=function(){return this.status};BF.prototype.G=function(z,p){p=p===void 0?{}:p;return new Zu_(z,this,p)}; BF.prototype.getName=function(){return this.name};var K1l=new BF("/google.internal.waa.v1.Waa/Create",uo,pD,function(z){return z.M_()},$dL);g.Y(HF,oJ);var rou=new BF("/google.internal.waa.v1.Waa/GenerateIT",a$,HF,function(z){return z.M_()},Au(HF));var ifE=new Set(["SAPISIDHASH","APISIDHASH"]);g.Y(iY,oJ);iY.prototype.getValue=function(){var z=Fp(this,2);if(Array.isArray(z)||z instanceof oJ)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return NI(this,2)};g.Y(Ti,oJ);Ti.prototype.getMessage=function(){return mn(this,2)}; var eni=Au(Ti);bY.prototype.Jz=function(z,p){z=="data"?this.D.push(p):z=="metadata"?this.L.push(p):z=="status"?this.V.push(p):z=="end"?this.X.push(p):z=="error"&&this.K.push(p);return this}; bY.prototype.removeListener=function(z,p){z=="data"?xY(this.D,p):z=="metadata"?xY(this.L,p):z=="status"?xY(this.V,p):z=="end"?xY(this.X,p):z=="error"&&xY(this.K,p);return this}; bY.prototype.cancel=function(){this.W.abort()}; bY.prototype.cancel=bY.prototype.cancel;bY.prototype.removeListener=bY.prototype.removeListener;bY.prototype.on=bY.prototype.Jz;g.Y(dxv,Error);g.Bq(g.Ea,Mfv);g.Ea.prototype.W=function(){var z=new q7(this.X,this.D);this.K&&z.setCredentialsMode(this.K);return z}; g.Ea.prototype.setCredentialsMode=function(z){this.K=z}; g.Bq(q7,g.T1);g.V=q7.prototype;g.V.open=function(z,p){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.MZ=z;this.U=p;this.readyState=1;Je(this)}; g.V.send=function(z){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.W=!0;var p={headers:this.S,method:this.MZ,credentials:this.L,cache:void 0};z&&(p.body=z);(this.Dt||g.jQ).fetch(new Request(this.U,p)).then(this.gAZ.bind(this),this.z3.bind(this))}; g.V.abort=function(){this.response=this.responseText="";this.S=new Headers;this.status=0;this.D&&this.D.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.W&&this.readyState!=4&&(this.W=!1,M7(this));this.readyState=0}; g.V.gAZ=function(z){if(this.W&&(this.X=z,this.K||(this.status=this.X.status,this.statusText=this.X.statusText,this.K=z.headers,this.readyState=2,Je(this)),this.W&&(this.readyState=3,Je(this),this.W)))if(this.responseType==="arraybuffer")z.arrayBuffer().then(this.iHD.bind(this),this.z3.bind(this));else if(typeof g.jQ.ReadableStream!=="undefined"&&"body"in z){this.D=z.body.getReader();if(this.V){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.G=new TextDecoder;lNf(this)}else z.text().then(this.OHH.bind(this),this.z3.bind(this))}; g.V.pqH=function(z){if(this.W){if(this.V&&z.value)this.response.push(z.value);else if(!this.V){var p=z.value?z.value:new Uint8Array(0);if(p=this.G.decode(p,{stream:!z.done}))this.response=this.responseText+=p}z.done?M7(this):Je(this);this.readyState==3&&lNf(this)}}; g.V.OHH=function(z){this.W&&(this.response=this.responseText=z,M7(this))}; g.V.iHD=function(z){this.W&&(this.response=z,M7(this))}; g.V.z3=function(){this.W&&M7(this)}; g.V.setRequestHeader=function(z,p){this.S.append(z,p)}; g.V.getResponseHeader=function(z){return this.K?this.K.get(z.toLowerCase())||"":""}; g.V.getAllResponseHeaders=function(){if(!this.K)return"";for(var z=[],p=this.K.entries(),c=p.next();!c.done;)c=c.value,z.push(c[0]+": "+c[1]),c=p.next();return z.join("\r\n")}; g.V.setCredentialsMode=function(z){this.L=z}; Object.defineProperty(q7.prototype,"withCredentials",{get:function(){return this.L==="include"}, set:function(z){this.setCredentialsMode(z?"include":"same-origin")}});g.YY.prototype.toString=function(){var z=[],p=this.L;p&&z.push(Re(p,u3E,!0),":");var c=this.W;if(c||p=="file")z.push("//"),(p=this.S)&&z.push(Re(p,u3E,!0),"@"),z.push(g.pH(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,c!=null&&z.push(":",String(c));if(c=this.K)this.W&&c.charAt(0)!="/"&&z.push("/"),z.push(Re(c,c.charAt(0)=="/"?amz:Z91,!0));(c=this.X.toString())&&z.push("?",c);(c=this.V)&&z.push("#",Re(c,L1v));return z.join("")}; g.YY.prototype.resolve=function(z){var p=this.clone(),c=!!z.L;c?g.mM(p,z.L):c=!!z.S;c?p.S=z.S:c=!!z.W;c?g.he(p,z.W):c=z.D!=null;var B=z.K;if(c)g.PF(p,z.D);else if(c=!!z.K){if(B.charAt(0)!="/")if(this.W&&!this.K)B="/"+B;else{var H=p.K.lastIndexOf("/");H!=-1&&(B=p.K.slice(0,H+1)+B)}H=B;if(H==".."||H==".")B="";else if(g.Sl(H,"./")||g.Sl(H,"/.")){B=OQ(H,"/");H=H.split("/");for(var T=[],b=0;b1||T.length==1&&T[0]!="")&&T.pop(), B&&b==H.length&&T.push("")):(T.push(D),B=!0)}B=T.join("/")}else B=H}c?p.K=B:c=z.X.toString()!=="";c?Ae(p,z.X.clone()):c=!!z.V;c&&(p.V=z.V);return p}; g.YY.prototype.clone=function(){return new g.YY(this)}; var u3E=/[#\/\?@]/g,Z91=/[#\?:]/g,amz=/[#\?]/g,INS=/[#\?@]/g,L1v=/#/g;g.V=wI.prototype;g.V.add=function(z,p){KD(this);this.D=null;z=uY(this,z);var c=this.W.get(z);c||this.W.set(z,c=[]);c.push(p);this.K=this.K+1;return this}; g.V.remove=function(z){KD(this);z=uY(this,z);return this.W.has(z)?(this.D=null,this.K=this.K-this.W.get(z).length,this.W.delete(z)):!1}; g.V.clear=function(){this.W=this.D=null;this.K=0}; g.V.isEmpty=function(){KD(this);return this.K==0}; g.V.forEach=function(z,p){KD(this);this.W.forEach(function(c,B){c.forEach(function(H){z.call(p,H,B,this)},this)},this)}; g.V.mx=function(){KD(this);for(var z=Array.from(this.W.values()),p=Array.from(this.W.keys()),c=[],B=0;B0?String(z[0]):p}; g.V.toString=function(){if(this.D)return this.D;if(!this.W)return"";for(var z=[],p=Array.from(this.W.keys()),c=0;c>>3;T.D!=1&&T.D!=2&&T.D!=15&&dI(T,b,D,"unexpected tag");T.W=1;T.K=0;T.X=0} function c(t){T.X++;T.X==5&&t&240&&dI(T,b,D,"message length too long");T.K|=(t&127)<<(T.X-1)*7;t&128||(T.W=2,T.S=0,typeof Uint8Array!=="undefined"?T.L=new Uint8Array(T.K):T.L=Array(T.K),T.K==0&&H())} function B(t){T.L[T.S++]=t;T.S==T.K&&H()} function H(){if(T.D<15){var t={};t[T.D]=T.L;T.G.push(t)}T.W=0} for(var T=this,b=z instanceof Array?z:new Uint8Array(z),D=0;D0?z:null};WF.prototype.isInputValid=function(){return this.W===null}; WF.prototype.Tg=function(){return this.W}; WF.prototype.TW=function(){return!1}; WF.prototype.parse=function(z){this.W!==null&&szS(this,z,"stream already broken");var p=null;try{var c=this.D;c.D||UxW(c,z,"stream already broken");c.W+=z;var B=Math.floor(c.W.length/4);if(B==0)var H=null;else{try{var T=qQW(c.W.slice(0,B*4))}catch(b){UxW(c,c.W,b.message)}c.K+=B*4;c.W=c.W.slice(B*4);H=T}p=H===null?null:this.X.parse(H)}catch(b){szS(this,z,b.message)}this.K+=z.length;return p};var W1J={INIT:0,CA:1,ZB:2,E9:3,ZC:4,w0:5,STRING:6,gi:7,gD:8,sO:9,UO:10,l2:11,Du:12,zT:13,m6:14,Fc:15,Sq:16,NI:17,Pr:18,qd:19,wi:20};g.V=CD.prototype;g.V.isInputValid=function(){return this.L!=3}; g.V.Tg=function(){return this.U}; g.V.done=function(){return this.L===2}; g.V.TW=function(){return!1}; g.V.parse=function(z){function p(){for(;q0;)if(M=z[q++], T.S===4?T.S=0:T.S++,!M)break a;if(M==='"'&&!T.G){T.W=B();break}if(M==="\\"&&!T.G&&(T.G=!0,M=z[q++],!M))break;if(T.G)if(T.G=!1,M==="u"&&(T.S=1),M=z[q++])continue;else break;D.lastIndex=q;M=D.exec(z);if(!M){q=z.length+1;break}q=M.index+1;M=z[M.index];if(!M)break}T.D+=q-P;continue;case t.sO:if(!M)continue;M==="r"?T.W=t.UO:eL(T,z,q);continue;case t.UO:if(!M)continue;M==="u"?T.W=t.l2:eL(T,z,q);continue;case t.l2:if(!M)continue;M==="e"?T.W=B():eL(T,z,q);continue;case t.Du:if(!M)continue;M==="a"?T.W=t.zT: eL(T,z,q);continue;case t.zT:if(!M)continue;M==="l"?T.W=t.m6:eL(T,z,q);continue;case t.m6:if(!M)continue;M==="s"?T.W=t.Fc:eL(T,z,q);continue;case t.Fc:if(!M)continue;M==="e"?T.W=B():eL(T,z,q);continue;case t.Sq:if(!M)continue;M==="u"?T.W=t.NI:eL(T,z,q);continue;case t.NI:if(!M)continue;M==="l"?T.W=t.Pr:eL(T,z,q);continue;case t.Pr:if(!M)continue;M==="l"?T.W=B():eL(T,z,q);continue;case t.qd:M==="."?T.W=t.wi:eL(T,z,q);continue;case t.wi:if("0123456789.eE+-".indexOf(M)!==-1)continue;else q--,T.D--,T.W= B();continue;default:eL(T,z,q)}}} function B(){var M=b.pop();return M!=null?M:t.CA} function H(M){T.K>1||(M||(M=E===-1?T.X+z.substring(x,q):z.substring(E,q)),T.MZ?T.V.push(M):T.V.push(JSON.parse(M)),E=q)} for(var T=this,b=T.Dt,D=T.tD,t=W1J,X=z.length,x=0,E=-1,q=0;q0?(J=T.V,T.V=[],J):null}return null};lY.prototype.isInputValid=function(){return this.L===null}; lY.prototype.Tg=function(){return this.L}; lY.prototype.TW=function(){return!1}; lY.prototype.parse=function(z){function p(t){T.K=6;T.L="The stream is broken @"+T.W+"/"+b+". Error: "+t+". With input:\n";throw Error(T.L);} function c(){T.D=new CD({Mbp:!0,yl:!0})} function B(t){if(t)for(var X=0;X1)&&p("extra status: "+t);T.V=!0;var X={};X[2]=t[0];T.X.push(X)}} for(var T=this,b=0;b0?(z=T.X,T.X=[],z):null};vF.prototype.Fl=function(){return this.W}; vF.prototype.getStatus=function(){return this.L}; vF.prototype.MZ=function(z){z=z.target;try{if(z==this.W)a:{var p=g.Bb(this.W),c=this.W.K,B=this.W.getStatus(),H=g.io(this.W);z=[];if(g.TB(this.W)instanceof Array){var T=g.TB(this.W);T.length>0&&T[0]instanceof Uint8Array&&(this.U=!0,z=T)}if(!(p<3||p==3&&!H&&z.length==0))if(B=B==200||B==206,p==4&&(c==8?Ie(this,7):c==7?Ie(this,8):B||Ie(this,3)),this.K||(this.K=k5D(this.W),this.K==null&&Ie(this,5)),this.L>2)QR(this);else{if(z.length>this.D){var b=z.length;c=[];try{if(this.K.TW())for(var D=0;Dthis.D){D=H.slice(this.D);this.D=H.length;try{var X=this.K.parse(D);X!=null&&this.X&&this.X(X)}catch(x){Ie(this,5);QR(this);break a}}p==4?(H.length!= 0||this.U?Ie(this,2):Ie(this,4),QR(this)):Ie(this,1)}}}catch(x){Ie(this,6),QR(this)}};g.V=grE.prototype;g.V.Jz=function(z,p){var c=this.K[z];c||(c=[],this.K[z]=c);c.push(p);return this}; g.V.addListener=function(z,p){this.Jz(z,p);return this}; g.V.removeListener=function(z,p){var c=this.K[z];c&&g.f9(c,p);(z=this.W[z])&&g.f9(z,p);return this}; g.V.once=function(z,p){var c=this.W[z];c||(c=[],this.W[z]=c);c.push(p);return this}; g.V.OBi=function(z){var p=this.K.data;p&&G5Y(z,p);(p=this.W.data)&&G5Y(z,p);this.W.data=[]}; g.V.PAi=function(){switch(this.D.getStatus()){case 1:rI(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rI(this,"error");break;case 8:rI(this,"close");break;case 2:rI(this,"end")}};NcN.prototype.serverStreaming=function(z,p,c,B){var H=this,T=z.substring(0,z.length-B.name.length);return fNB(function(b){var D=b.IV,t=b.getMetadata(),X=cGN(H,!1);t=B6Y(H,t,X,T+D.getName());var x=Hff(X,D.K,!0);b=D.W(b.DK);X.send(t,"POST",b);return x},this.X).call(this,B.G(p,c))};T6V.prototype.create=function(z,p){return QxN(this.W,this.K+"/$rpc/google.internal.waa.v1.Waa/Create",z,p||{},K1l)};var yJ1=1,z$=new WeakMap;g.Y(Ua,g.e);Ua.prototype.signal=function(){var z=new kY(!1);this.signals.add(z);g.l(this,z);return z}; Ua.prototype.N7=function(z){return sa(this,z).N7()}; g.Y(kY,g.e);g.V=kY.prototype;g.V.aq=function(){var z=this,p=yJ1++;gI(function(){bff(z,p)}); return p}; g.V.detach=function(z){var p=this;gI(function(){var c=p.slots.get(z);c&&c.Tv()})}; g.V.value=function(z){return this.promise(!0,z)}; g.V.N7=function(){return this.O3}; g.V.next=function(z){return this.promise(!1,z)}; g.V.promise=function(z,p){var c=this,B=kcY();gI(function(){if(c.qZ())B.reject(new ut("Signal initially disposed"));else if(p&&p.qZ())B.reject(new ut("Owner initially disposed"));else if(z&&c.dI&&c.Jc)B.resolve(c.O3);else if(c.CG.add(B),g.Kf(B.promise,function(){c.CG.delete(B)}),p){var H=function(){B.reject(new ut("Owner asynchronously disposed"))}; g.Kf(B.promise,function(){var T=z$.get(p);T&&g.f9(T,H)}); tBu(p,H)}}); return B.promise}; g.V.m0=function(){var z=this;g.e.prototype.m0.call(this);gI(function(){for(var p=g.m(z.slots.values()),c=p.next();!c.done;c=p.next())c=c.value.Tv,c();z.slots.clear();p=g.m(z.CG);for(c=p.next();!c.done;c=p.next())c.value.reject(new ut("Signal asynchronously disposed"));z.CG.clear()})}; var N7=[],fD=!1;g.Y(pE,g.e);pE.prototype.start=function(){var z=this;if(this.qZ())throw new BR("Cannot start a disposed timer.");if(!this.V){this.X=0;if(this.G){var p=Date.now();this.handle=setInterval(function(){z.X=z.milliseconds>0?Math.trunc((Date.now()-p)/z.milliseconds):z.X+1;var c;(c=z.K)==null||c.resolve();z.K=void 0;if(z.D){var B;(B=z.W)!=null&&Gi(sa(B,z.D),z)}z.e9.xv(z)},this.milliseconds)}else this.handle=setTimeout(function(){z.state=3; z.handle=void 0;z.X=1;var c;(c=z.K)==null||c.resolve();z.K=void 0;if(z.D){var B;(B=z.W)!=null&&Gi(sa(B,z.D),z)}z.e9.xv(z)},this.milliseconds); this.state=1}}; pE.prototype.cancel=function(){if(this.V){this.clear();this.state=2;var z;(z=this.K)==null||z.reject(new cR);var p;(p=this.e9.iL)==null||p.call(this);if(this.L){var c;(c=this.W)!=null&&Gi(sa(c,this.L))}}}; pE.prototype.m0=function(){this.clear();var z;(z=this.K)==null||z.reject(new BR);this.state=4;g.e.prototype.m0.call(this)}; pE.prototype.clear=function(){this.G?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.DV.Object.defineProperties(pE.prototype,{V:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.X}}, S:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.K!=null||(this.K=new g.OE),this.K.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new cR("Timer has been cancelled."));case 4:return Promise.reject(new BR("Timer has been disposed."));default:iN(this.state)}}}, xv:{configurable:!0,enumerable:!0,get:function(){if(this.qZ())throw new BR("Cannot attach a signal to a disposed timer.");this.D||(this.W!=null||(this.W=new Ua(this)),this.D=this.W.signal());return this.D}}, iL:{configurable:!0,enumerable:!0,get:function(){if(this.qZ())throw new BR("Cannot attach a signal to a disposed timer.");this.L||(this.W!=null||(this.W=new Ua(this)),this.L=this.W.signal());return this.L}}}); g.Y(cR,JJ);g.Y(BR,JJ);g.Y(HR,kX);g.V=HR.prototype;g.V.isReady=function(){return!!this.W}; g.V.ready=function(){var z=this;return g.L(function(p){return g.a(p,z.D.promise,0)})}; g.V.Wx=function(z){return EAE(this,this.logger.Qa("c",z===void 0?1:z,this.yH.Wx(SK().W,null)),new Hq(10,"JVZ:Timeout"))}; g.V.prefetch=function(){this.state===1&&(this.Px=this.Wx())}; g.V.start=function(){if(this.state===1){this.state=2;var z=new t9(this.logger,"r");this.ready().finally(function(){return void z.done()}); JGf(this)}}; g.V.ZY=function(z){MBx(this,z);return gN(this,xgD(z),!1)}; g.V.SF=function(z){MBx(this,z);return gN(this,xgD(z),!0)};var PtS={NONE:0,Cft:1},zEY={wO:0,lg$:1,UeI:2,koA:3},Fu={Vn:"a",ZlD:"d",VIDEO:"v"};T$.prototype.isVisible=function(){return this.C6?this.Zz>=.3:this.Zz>=.5};var Mr={fFZ:0,zkp:1},N6x={NONE:0,Uz8:1,Tp$:2};bW.prototype.getValue=function(){return this.K}; g.Y(VA,bW);VA.prototype.D=function(z){this.K===null&&g.dC(this.X,z)&&(this.K=z)}; g.Y(Dc,bW);Dc.prototype.D=function(z){this.K===null&&typeof z==="number"&&(this.K=z)}; g.Y(tY,bW);tY.prototype.D=function(z){this.K===null&&typeof z==="string"&&(this.K=z)};Xu.prototype.disable=function(){this.K=!1}; Xu.prototype.enable=function(){this.K=!0}; Xu.prototype.isEnabled=function(){return this.K}; Xu.prototype.reset=function(){this.W={};this.K=!0;this.D={}};var Ij=document,PR=window;var ceY=!g.An&&!F3();YV.prototype.now=function(){return 0}; YV.prototype.K=function(){return 0}; YV.prototype.D=function(){return 0}; YV.prototype.W=function(){return 0};g.Y(hY,YV);hY.prototype.now=function(){return m_()&&PR.performance.now?PR.performance.now():YV.prototype.now.call(this)}; hY.prototype.K=function(){return m_()&&PR.performance.memory?PR.performance.memory.totalJSHeapSize||0:YV.prototype.K.call(this)}; hY.prototype.D=function(){return m_()&&PR.performance.memory?PR.performance.memory.usedJSHeapSize||0:YV.prototype.D.call(this)}; hY.prototype.W=function(){return m_()&&PR.performance.memory?PR.performance.memory.jsHeapSizeLimit||0:YV.prototype.W.call(this)};var wNB=hG(function(){var z=!1;try{var p=Object.defineProperty({},"passive",{get:function(){z=!0}}); g.jQ.addEventListener("test",null,p)}catch(c){}return z});R1D.prototype.isVisible=function(){return w7(Ij)===1};var $gE={mSZ:"allow-forms",Fl8:"allow-modals",XuI:"allow-orientation-lock",tKi:"allow-pointer-lock",Qmi:"allow-popups",jm3:"allow-popups-to-escape-sandbox",TCA:"allow-presentation",hT0:"allow-same-origin",RT3:"allow-scripts",IZ$:"allow-top-navigation",VKA:"allow-top-navigation-by-user-activation"},Zfx=hG(function(){return Kyu()});var yGE=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");uW.prototype.BU=function(z,p,c){z=z+"//"+p+c;var B=vAW(this)-c.length;if(B<0)return"";this.W.sort(function(X,x){return X-x}); c=null;p="";for(var H=0;H=t.length){B-=t.length;z+=t;p=this.D;break}c=c==null?T:c}}B="";c!=null&&(B=""+p+"trn="+c);return z+B};eP.prototype.setInterval=function(z,p){return PR.setInterval(z,p)}; eP.prototype.clearInterval=function(z){PR.clearInterval(z)}; eP.prototype.setTimeout=function(z,p){return PR.setTimeout(z,p)}; eP.prototype.clearTimeout=function(z){PR.clearTimeout(z)};g.Y(vR,oJ);vR.prototype.W=py_([0,fVK,cJq,-2,i9E]);var fCx={Bh3:1,Z5:2,bsH:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};pbN.prototype.ez=function(z){if(typeof z==="string"&&z.length!=0){var p=this.qb;if(p.K){z=z.split("&");for(var c=z.length-1;c>=0;c--){var B=z[c].split("="),H=decodeURIComponent(B[0]);B.length>1?(B=decodeURIComponent(B[1]),B=/^[0-9]+$/g.exec(B)?parseInt(B,10):B):B=1;(H=p.W[H])&&H.D(B)}}}};var cs=null;var QA=g.jQ.performance,CEK=!!(QA&&QA.mark&&QA.measure&&QA.clearMarks),o2=hG(function(){var z;if(z=CEK){var p=p===void 0?window:p;if(cs===null){cs="";try{z="";try{z=p.top.location.hash}catch(B){z=p.location.hash}if(z){var c=z.match(/\bdeid=([\d,]+)/);cs=c?c[1]:""}}catch(B){}}p=cs;z=!!p.indexOf&&p.indexOf("1337")>=0}return z}); nE.prototype.disable=function(){this.W=!1;this.events!==this.K.google_js_reporting_queue&&(o2()&&g.E_(this.events,bz_),this.events.length=0)}; nE.prototype.start=function(z,p){if(!this.W)return null;var c=izS()||Hzi();z=new TNE(z,p,c);p="goog_"+z.label+"_"+z.uniqueId+"_start";QA&&o2()&&QA.mark(p);return z}; nE.prototype.end=function(z){if(this.W&&typeof z.value==="number"){var p=izS()||Hzi();z.duration=p-z.value;p="goog_"+z.label+"_"+z.uniqueId+"_end";QA&&o2()&&QA.mark(p);!this.W||this.events.length>2048||this.events.push(z)}};VKu.prototype.Tu=function(z,p,c,B,H){H=H||this.oC;try{var T=new uW;T.W.push(1);T.K[1]=a2("context",z);p.error&&p.meta&&p.id||(p=new kV(g7(p)));if(p.msg){var b=p.msg.substring(0,512);T.W.push(2);T.K[2]=a2("msg",b)}var D=p.meta||{};if(this.ET)try{this.ET(D)}catch(J){}if(B)try{B(D)}catch(J){}B=[D];T.W.push(3);T.K[3]=B;var t=e1E();if(t.K){var X=t.K.url||"";T.W.push(4);T.K[4]=a2("top",X)}var x={url:t.W.url||""};if(t.W.url){var E=t.W.url.match(F0);var q=IS(E[1],null,E[3],E[4])}else q="";X=[x,{url:q}];T.W.push(5); T.K[5]=X;c9N(this.W,H,T,c)}catch(J){try{c9N(this.W,H,{context:"ecmserr",rctx:z,msg:g7(J),url:t&&t.W.url},c)}catch(M){}}return this.z4}; g.Y(kV,BNY);var Uk,sk,r7=new nE;Uk=new function(){var z="https:";PR&&PR.location&&PR.location.protocol==="http:"&&(z="http:");this.K=z;this.W=.01}; sk=new VKu;PR&&PR.document&&(PR.document.readyState=="complete"?tKN():r7.W&&Ok(PR,"load",function(){tKN()}));var EXY=Date.now(),Bx=-1,p4=-1,ZDN,Hx=-1,cx=!1;g.V=TX.prototype;g.V.getHeight=function(){return this.bottom-this.top}; g.V.clone=function(){return new TX(this.top,this.right,this.bottom,this.left)}; g.V.contains=function(z){return this&&z?z instanceof TX?z.left>=this.left&&z.right<=this.right&&z.top>=this.top&&z.bottom<=this.bottom:z.x>=this.left&&z.x<=this.right&&z.y>=this.top&&z.y<=this.bottom:!1}; g.V.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.V.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.V.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.V.scale=function(z,p){p=typeof p==="number"?p:z;this.left*=z;this.right*=z;this.top*=p;this.bottom*=p;return this};xm.prototype.oI=function(z,p){return!!z&&(!(p===void 0?0:p)||this.volume==z.volume)&&this.D==z.D&&VM(this.W,z.W)&&!0};Eg.prototype.XQ=function(){return this.G}; Eg.prototype.oI=function(z,p){return this.X.oI(z.X,p===void 0?!1:p)&&this.G==z.G&&VM(this.D,z.D)&&VM(this.V,z.V)&&this.W==z.W&&this.L==z.L&&this.K==z.K&&this.S==z.S};var eKK={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},WV={Gq:"start",CT:"firstquartile",Vf:"midpoint",BD:"thirdquartile",COMPLETE:"complete",ERROR:"error",IQ:"metric",PAUSE:"pause",uu:"resume",rg:"skip",wg:"viewable_impression",Lo:"mute",gg:"unmute",AU:"fullscreen",PJ:"exitfullscreen",rO:"bufferstart",ut:"bufferfinish",yn:"fully_viewable_audible_half_duration_impression",RQ:"measurable_impression",hU:"abandon",SS:"engagedview",kB:"impression",BJ:"creativeview",hJ:"loaded", de8:"progress",CLOSE:"close",R0Z:"collapse",Igt:"overlay_resize",VjH:"overlay_unmeasurable_impression",v8q:"overlay_unviewable_impression",fgq:"overlay_viewable_immediate_impression",Lep:"overlay_viewable_end_of_session_impression",gO:"custom_metric_viewable",vJ:"audio_audible",fT:"audio_measurable",LT:"audio_impression"},F_Q="start firstquartile midpoint thirdquartile resume loaded".split(" "),oVB=["start","firstquartile","midpoint","thirdquartile"],d7f=["abandon"],z_={UNKNOWN:-1,Gq:0,CT:1,Vf:2, BD:3,COMPLETE:4,IQ:5,PAUSE:6,uu:7,rg:8,wg:9,Lo:10,gg:11,AU:12,PJ:13,yn:14,RQ:15,hU:16,SS:17,kB:18,BJ:19,hJ:20,gO:21,rO:22,ut:23,LT:27,fT:28,vJ:29};var J9Y={EF$:"addEventListener",Rkq:"getMaxSize",IcD:"getScreenSize",VA0:"getState",vGp:"getVersion",ymZ:"removeEventListener",IsA:"isViewable"};g.V=g.J_.prototype;g.V.clone=function(){return new g.J_(this.left,this.top,this.width,this.height)}; g.V.contains=function(z){return z instanceof g.ho?z.x>=this.left&&z.x<=this.left+this.width&&z.y>=this.top&&z.y<=this.top+this.height:this.left<=z.left&&this.left+this.width>=z.left+z.width&&this.top<=z.top&&this.top+this.height>=z.top+z.height}; g.V.getSize=function(){return new g.Ao(this.width,this.height)}; g.V.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.V.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.V.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.V.scale=function(z,p){p=typeof p==="number"?p:z;this.left*=z;this.width*=z;this.top*=p;this.height*=p;return this};var hES={};u8Y.prototype.update=function(z){z&&z.document&&(this.G=qy(!1,z,this.isMobileDevice),this.W=qy(!0,z,this.isMobileDevice),Zzv(this,z),asD(this,z))};Fi.prototype.cancel=function(){lW().clearTimeout(this.W);this.W=null}; Fi.prototype.schedule=function(){var z=this,p=lW(),c=jP().W.W;this.W=p.setTimeout(I2(c,Nr(143,function(){z.K++;z.D.sample()})),qEf())};g.V=oj.prototype;g.V.zi=function(){return!1}; g.V.initialize=function(){return this.isInitialized=!0}; g.V.A9=function(){return this.W.Ra}; g.V.gb=function(){return this.W.MZ}; g.V.MS=function(z,p){if(!this.MZ||(p===void 0?0:p))this.MZ=!0,this.Ra=z,this.S=0,this.W!=this||QM(this)}; g.V.getName=function(){return this.W.rA}; g.V.Xr=function(){return this.W.M1()}; g.V.M1=function(){return{}}; g.V.IJ=function(){return this.W.S}; g.V.kL=function(){var z=vx();z.W=qy(!0,this.D,z.isMobileDevice)}; g.V.EX=function(){asD(vx(),this.D)}; g.V.Ld=function(){return this.X.W}; g.V.sample=function(){}; g.V.isActive=function(){return this.W.V}; g.V.M7=function(z){var p=this.W;this.W=z.IJ()>=this.S?z:this;p!==this.W?(this.V=this.W.V,QM(this)):this.V!==this.W.V&&(this.V=this.W.V,QM(this))}; g.V.pj=function(z){if(z.K===this.W){var p=!this.X.oI(z,this.U);this.X=z;p&&WEv(this)}}; g.V.fQ=function(){return this.U}; g.V.dispose=function(){this.T$=!0}; g.V.qZ=function(){return this.T$};g.V=rY.prototype;g.V.observe=function(){return!0}; g.V.unobserve=function(){}; g.V.U$=function(z){this.L=z}; g.V.dispose=function(){if(!this.qZ()){var z=this.K;g.f9(z.L,this);z.U&&this.fQ()&&dlD(z);this.unobserve();this.tD=!0}}; g.V.qZ=function(){return this.tD}; g.V.Xr=function(){return this.K.Xr()}; g.V.IJ=function(){return this.K.IJ()}; g.V.A9=function(){return this.K.A9()}; g.V.gb=function(){return this.K.gb()}; g.V.M7=function(){}; g.V.pj=function(){this.P6()}; g.V.fQ=function(){return this.T$};g.V=Ug.prototype;g.V.IJ=function(){return this.W.IJ()}; g.V.A9=function(){return this.W.A9()}; g.V.gb=function(){return this.W.gb()}; g.V.create=function(z,p,c){var B=null;this.W&&(B=this.eJ(z,p,c),n4(this.W,B));return B}; g.V.Wr=function(){return this.md()}; g.V.md=function(){return!1}; g.V.init=function(z){return this.W.initialize()?(n4(this.W,this),this.X=z,!0):!1}; g.V.M7=function(z){z.IJ()==0&&this.X(z.A9(),this)}; g.V.pj=function(){}; g.V.fQ=function(){return!1}; g.V.dispose=function(){this.L=!0}; g.V.qZ=function(){return this.L}; g.V.Xr=function(){return{}};sg.prototype.add=function(z,p,c){++this.D;z=new Coi(z,p,c);this.W.push(new Coi(z.K,z.W,z.D+this.D/4096));this.K=!0;return this};j$f.prototype.toString=function(){var z="//pagead2.googlesyndication.com//pagead/gen_204",p=gY(this.W);p.length>0&&(z+="?"+p);return z};GX.prototype.update=function(z,p,c){z&&(this.W+=p,this.K+=p,this.X+=p,this.D=Math.max(this.D,this.X));if(c===void 0?!z:c)this.X=0};var r9S=[1,.75,.5,.3,0];Ny.prototype.update=function(z,p,c,B,H,T){T=T===void 0?!0:T;p=H?Math.min(z,p):p;for(H=0;H0&&p>=b;b=!(z>0&&z>=b)||c;this.W[H].update(T&&D,B,!T||b)}};HV.prototype.update=function(z,p,c,B){this.G=this.G!=-1?Math.min(this.G,p.Zz):p.Zz;this.Dt=Math.max(this.Dt,p.Zz);this.tD=this.tD!=-1?Math.min(this.tD,p.Qy):p.Qy;this.Ra=Math.max(this.Ra,p.Qy);this.sH.update(p.Qy,c.Qy,p.W,z,B);this.fH+=z;p.Zz===0&&(this.rA+=z);this.K.update(p.Zz,c.Zz,p.W,z,B);c=B||c.C6!=p.C6?c.isVisible()&&p.isVisible():c.isVisible();p=!p.isVisible()||p.W;this.OH.update(c,z,p)}; HV.prototype.nI=function(){return this.OH.D>=this.CH};if(Ij&&Ij.URL){var lml=Ij.URL,vL1;if(vL1=!!lml){var Imd;a:{if(lml){var jg3=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Bs=jg3.exec(decodeURIComponent(lml));if(Bs){Imd=Bs[1]&&Bs[1].length>1?Bs[1].substring(1):"true";break a}}catch(z){}}Imd=""}vL1=Imd.length>0}sk.z4=!vL1};var F1Q=new TX(0,0,0,0);var zPQ=new TX(0,0,0,0);g.Y(DL,g.e);g.V=DL.prototype; g.V.m0=function(){if(this.oz.W){if(this.zG.nE){var z=this.oz.W;z.removeEventListener&&z.removeEventListener("mouseover",this.zG.nE,AY());this.zG.nE=null}this.zG.oO&&(z=this.oz.W,z.removeEventListener&&z.removeEventListener("mouseout",this.zG.oO,AY()),this.zG.oO=null)}this.Dj&&this.Dj.dispose();this.PU&&this.PU.dispose();delete this.kW;delete this.hw;delete this.Pc;delete this.oz.bP;delete this.oz.W;delete this.zG;delete this.Dj;delete this.PU;delete this.qb;g.e.prototype.m0.call(this)}; g.V.T5=function(){return this.PU?this.PU.W:this.position}; g.V.ez=function(z){jP().ez(z)}; g.V.fQ=function(){return!1}; g.V.Zq=function(){return new HV}; g.V.dC=function(){return this.kW}; g.V.mS=function(z){return HDY(this,z,1E4)}; g.V.Bq=function(z,p,c,B,H,T,b){this.nj||(this.JT&&(z=this.Qi(z,c,H,b),B=B&&this.YF.Zz>=(this.C6()?.3:.5),this.Cb(T,z,B),this.kU=p,z.Zz>0&&-1===this.Qz&&(this.Qz=p),this.Vz==-1&&this.nI()&&(this.Vz=p),this.Xk==-2&&(this.Xk=b6(this.T5())?z.Zz:-1),this.YF=z),this.hw(this))}; g.V.Cb=function(z,p,c){this.dC().update(z,p,this.YF,c)}; g.V.HC=function(){return new T$}; g.V.Qi=function(z,p,c,B){c=this.HC();c.W=p;p=lW().K;p=w7(Ij)===0?-1:p.isVisible()?0:1;c.K=p;c.Zz=this.g2(z);c.C6=this.C6();c.Qy=B;return c}; g.V.g2=function(z){return this.opacity===0&&qr(this.qb,"opac")===1?0:z}; g.V.C6=function(){return!1}; g.V.X1=function(){return this.FUI||this.QRi}; g.V.vT=function(){zX()}; g.V.mQ=function(){zX()}; g.V.O_=function(){return 0}; g.V.nI=function(){return this.kW.nI()}; g.V.YJ=function(){var z=this.JT;z=(this.hasCompleted||this.qZ())&&!z;var p=jP().K!==2||this.vFi;return this.nj||p&&z?2:this.nI()?4:3}; g.V.fM=function(){return 0};g.XF.prototype.next=function(){return g.Hs}; g.Hs={done:!0,value:void 0};g.XF.prototype.iD=function(){return this};g.Y(tLf,T$);var iX=x7_([void 0,1,2,3,4,8,16]),TT=x7_([void 0,4,8,16]),oLg={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:JE("p0",TT),p1:JE("p1",TT),p2:JE("p2",TT),p3:JE("p3",TT),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:q3("mtos1",[0,2,4],!1,TT),mtos2:q3("mtos2",[0,2,4],!1,TT),mtos3:q3("mtos3",[0,2,4],!1,TT),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:JE("a0",TT),a1:JE("a1",TT),a2:JE("a2",TT),a3:JE("a3",TT),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:JE("c0",TT),c1:JE("c1",TT),c2:JE("c2",TT),c3:JE("c3",TT),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:JE("qmtos",iX),qnc:JE("qnc",iX),qmv:JE("qmv",iX),qnv:JE("qnv",iX), 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:JE("ss0",TT),ss1:JE("ss1",TT),ss2:JE("ss2",TT),ss3:JE("ss3",TT),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"},nLJ=Object.assign({},oLg,{avid:YA("audio"),avas:"avas",vs:"vs"}),Qgd={atos:"atos",avt:q3("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(z,p){return function(c){return c[z]===void 0&&p!==void 0?p:c[z]}}("ss",0), t:"t"};hE.prototype.getValue=function(){return this.K}; hE.prototype.update=function(z,p){z>=32||(this.W&1<=.5;ez(p.volume)&&(this.X=this.X!=-1?Math.min(this.X,p.volume):p.volume,this.V=Math.max(this.V,p.volume));T&&(this.T$+=z,this.U+=H?z:0);this.W.update(p.Zz,c.Zz,p.W,z,B,H);this.D.update(!0,z);this.L.update(H,z);this.MZ.update(c.fullscreen,z);this.UH.update(H&&!T,z);z=Math.floor(p.mediaTime/1E3);this.YA.update(z,p.isVisible());this.Zt.update(z,p.Zz>=1);this.NZ.update(z, EY(p))}};m7E.prototype.K=function(z){this.D||(this.W(z)?(z=acE(this.U,this.X,z),this.L|=z,z=z==0):z=!1,this.D=z)};g.Y(OY,m7E);OY.prototype.W=function(){return!0}; OY.prototype.V=function(){return!1}; OY.prototype.getId=function(){var z=this,p=Wj(WV,function(c){return c==z.X}); return z_[p].toString()}; OY.prototype.toString=function(){var z="";this.V()&&(z+="c");this.D&&(z+="s");this.L>0&&(z+=":"+this.L);return this.getId()+z};g.Y(wK,OY);wK.prototype.K=function(z,p){p=p===void 0?null:p;p!=null&&this.G.push(p);OY.prototype.K.call(this,z)};g.Y(RV,hPW);RV.prototype.K=function(){return null}; RV.prototype.D=function(){return[]};g.Y(Su,rY);g.V=Su.prototype;g.V.TJ=function(){if(this.element){var z=this.element,p=this.K.W.D;try{try{var c=SEx(z.getBoundingClientRect())}catch(X){c=new TX(0,0,0,0)}var B=c.right-c.left,H=c.bottom-c.top,T=Ozi(z,p),b=T.x,D=T.y;var t=new TX(Math.round(D),Math.round(b+B),Math.round(D+H),Math.round(b))}catch(X){t=F1Q.clone()}this.D=t;this.W=y9_(this,this.D)}}; g.V.wI=function(){this.V=this.K.X.W}; g.V.LR=function(z){var p=qr(this.qb,"od")==1;return fsx(z,this.V,this.element,p)}; g.V.Zr=function(){this.timestamp=zX()}; g.V.P6=function(){this.Zr();this.TJ();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var z=this.element;var p=new g.Ao(z.videoWidth,z.videoHeight);z=this.W;var c=bn(z),B=z.getHeight(),H=p.width;p=p.height;H<=0||p<=0||c<=0||B<=0||(H/=p,p=c/B,z=z.clone(),H>p?(c/=H,B=(B-c)/2,B>0&&(B=z.top+B,z.top=Math.round(B),z.bottom=Math.round(B+c))):(B*=H,c=Math.round((c-B)/2),c>0&&(c=z.left+c,z.left=Math.round(c),z.right=Math.round(c+B))));this.W=z}this.wI(); z=this.W;c=this.V;z=z.left<=c.right&&c.left<=z.right&&z.top<=c.bottom&&c.top<=z.bottom?new TX(Math.max(z.top,c.top),Math.min(z.right,c.right),Math.min(z.bottom,c.bottom),Math.max(z.left,c.left)):new TX(0,0,0,0);c=z.top>=z.bottom||z.left>=z.right?new TX(0,0,0,0):z;z=this.K.X;p=H=B=0;if((this.W.bottom-this.W.top)*(this.W.right-this.W.left)>0)if(this.LR(c))c=new TX(0,0,0,0);else{B=vx().X;p=new TX(0,B.height,B.width,0);var T;B=Ve(c,(T=this.L)!=null?T:this.W);H=Ve(c,vx().W);p=Ve(c,p)}T=c.top>=c.bottom|| c.left>=c.right?new TX(0,0,0,0):t_(c,-this.W.left,-this.W.top);jz()||(H=B=0);this.U=new Eg(z,this.element,this.W,T,B,H,this.timestamp,p)}; g.V.getName=function(){return this.K.getName()};var rJv=new TX(0,0,0,0);g.Y($O,Su);g.V=$O.prototype;g.V.observe=function(){this.X();return!0}; g.V.pj=function(){Su.prototype.P6.call(this)}; g.V.Zr=function(){}; g.V.TJ=function(){}; g.V.P6=function(){this.X();Su.prototype.P6.call(this)}; g.V.M7=function(z){z=z.isActive();z!==this.S&&(z?this.X():(vx().W=new TX(0,0,0,0),this.W=new TX(0,0,0,0),this.V=new TX(0,0,0,0),this.timestamp=-1));this.S=z};var bX={},aYf=(bX.firstquartile=0,bX.midpoint=1,bX.thirdquartile=2,bX.complete=3,bX);g.Y(u6,DL);g.V=u6.prototype;g.V.fQ=function(){return!0}; g.V.L4=function(){return this.lf==2}; g.V.mS=function(z){return HDY(this,z,Math.max(1E4,this.D/3))}; g.V.Bq=function(z,p,c,B,H,T,b){var D=this,t=this.G(this)||{};g.Ix(t,H);this.D=t.duration||this.D;this.U=t.isVpaid||this.U;this.rA=t.isYouTube||this.rA;lW();this.sH=!1;H=Ae_(this,p);PYQ(this)===1&&(T=H);DL.prototype.Bq.call(this,z,p,c,B,t,T,b);this.gK&&this.gK.D&&g.E_(this.V,function(X){X.K(D)})}; g.V.Cb=function(z,p,c){DL.prototype.Cb.call(this,z,p,c);Lx(this).update(z,p,this.YF,c);this.CH=EY(this.YF)&&EY(p);this.Ra==-1&&this.Zt&&(this.Ra=this.dC().D.W);this.EF.D=0;z=this.nI();p.isVisible()&&mk(this.EF,"vs");z&&mk(this.EF,"vw");ez(p.volume)&&mk(this.EF,"am");EY(p)?mk(this.EF,"a"):mk(this.EF,"mut");this.fz&&mk(this.EF,"f");p.K!=-1&&(mk(this.EF,"bm"),p.K==1&&(mk(this.EF,"b"),EY(p)&&mk(this.EF,"umutb")));EY(p)&&p.isVisible()&&mk(this.EF,"avs");this.CH&&z&&mk(this.EF,"avw");p.Zz>0&&mk(this.EF, "pv");dK(this,this.dC().D.W,!0)&&mk(this.EF,"gdr");cV(this.dC().K,1)>=2E3&&mk(this.EF,"pmx");this.sH&&mk(this.EF,"tvoff")}; g.V.Zq=function(){return new PV}; g.V.dC=function(){return this.kW}; g.V.HC=function(){return new tLf}; g.V.Qi=function(z,p,c,B){z=DL.prototype.Qi.call(this,z,p,c,B===void 0?-1:B);z.fullscreen=this.fz;z.paused=this.L4();z.volume=c.volume;ez(z.volume)||(this.WM++,p=this.YF,ez(p.volume)&&(z.volume=p.volume));c=c.currentTime;z.mediaTime=c!==void 0&&c>=0?c:-1;return z}; g.V.g2=function(z){return vx(),this.fz?1:DL.prototype.g2.call(this,z)}; g.V.O_=function(){return 1}; g.V.getDuration=function(){return this.D}; g.V.YJ=function(){return this.nj?2:wFD(this)?5:this.nI()?4:3}; g.V.fM=function(){return this.UH?this.dC().L.D>=2E3?4:3:2}; g.V.U$=function(z){this.PU&&this.PU.U$(z)};var Udg=g.p9();jef.prototype.reset=function(){this.W=[];this.K=[]}; var vV=CE(jef);g.Y(FF,Ug);g.V=FF.prototype;g.V.getName=function(){return(this.K?this.K:this.W).getName()}; g.V.Xr=function(){return(this.K?this.K:this.W).Xr()}; g.V.IJ=function(){return(this.K?this.K:this.W).IJ()}; g.V.init=function(z){var p=!1;(0,g.E_)(this.D,function(c){c.initialize()&&(p=!0)}); p&&(this.X=z,n4(this.W,this));return p}; g.V.dispose=function(){(0,g.E_)(this.D,function(z){z.dispose()}); Ug.prototype.dispose.call(this)}; g.V.Wr=function(){return ln(this.D,function(z){return z.zi()})}; g.V.md=function(){return ln(this.D,function(z){return z.zi()})}; g.V.eJ=function(z,p,c){return new Su(z,this.W,p,c)}; g.V.pj=function(z){this.K=z.K};var gYD={threshold:[0,.3,.5,.75,1]};g.Y(oV,Su);g.V=oV.prototype;g.V.observe=function(){var z=this;this.Dt||(this.Dt=zX());if(xlN(298,function(){return GiN(z)}))return!0; this.K.MS("msf");return!1}; g.V.unobserve=function(){if(this.X&&this.element)try{this.X.unobserve(this.element),this.S?(this.S.unobserve(this.element),this.S=null):this.G&&(this.G.disconnect(),this.G=null)}catch(z){}}; g.V.P6=function(){var z=nx(this);z.length>0&&Qe(this,z);Su.prototype.P6.call(this)}; g.V.TJ=function(){}; g.V.LR=function(){return!1}; g.V.wI=function(){}; g.V.Xr=function(){var z={};return Object.assign(this.K.Xr(),(z.niot_obs=this.Dt,z.niot_cbk=this.MZ,z))}; g.V.getName=function(){return"nio"};g.Y(rK,Ug);rK.prototype.getName=function(){return"nio"}; rK.prototype.md=function(){return!vx().K&&this.W.W.D.IntersectionObserver!=null}; rK.prototype.eJ=function(z,p,c){return new oV(z,this.W,p,c)};g.Y(UY,oj);UY.prototype.Ld=function(){return vx().W}; UY.prototype.zi=function(){var z=fYY();this.S!==z&&(this.W!=this&&z>this.W.S&&(this.W=this,QM(this)),this.S=z);return z==2};sY.prototype.sample=function(){Gw(this,IV(),!1)}; sY.prototype.X=function(){var z=jz(),p=zX();z?(cx||(Bx=p,g.E_(vV.W,function(c){var B=c.dC();B.i8=AE(B,p,c.lf!=1)})),cx=!0):(this.G=HEW(this,p),cx=!1,ZDN=p,g.E_(vV.W,function(c){c.JT&&(c.dC().S=p)})); Gw(this,IV(),!z)}; var kO=CE(sY);var T7Y=null,PO="",hS=!1;var DrD=VPQ().I_,fx=VPQ().Vd;var xr_={mz$:"visible",P60:"audible",i4p:"time",O4a:"timetype"},EVY={visible:function(z){return/^(100|[0-9]{1,2})$/.test(z)}, audible:function(z){return z=="0"||z=="1"}, timetype:function(z){return z=="mtos"||z=="tos"}, time:function(z){return/^(100|[0-9]{1,2})%$/.test(z)||/^([0-9])+ms$/.test(z)}}; XRS.prototype.setTime=function(z,p,c){p=="ms"?(this.D=z,this.X=-1):(this.D=-1,this.X=z);this.L=c===void 0?"tos":c;return this};g.Y(BO,OY);BO.prototype.getId=function(){return this.G}; BO.prototype.V=function(){return!0}; BO.prototype.W=function(z){var p=z.dC(),c=z.getDuration();return ln(this.S,function(B){if(B.W!=void 0)var H=JYY(B,p);else b:{switch(B.L){case "mtos":H=B.K?p.L.D:p.D.W;break b;case "tos":H=B.K?p.L.W:p.D.W;break b}H=0}H==0?B=!1:(B=B.D!=-1?B.D:c!==void 0&&c>0?B.X*c:-1,B=B!=-1&&H>=B);return B})};g.Y(HO,qaQ);HO.prototype.W=function(z){var p=new EYV;p.W=YO(z,oLg);p.K=YO(z,Qgd);return p};g.Y(i8,OY);i8.prototype.W=function(z){return wFD(z)};g.Y(T_,hPW);g.Y(b8,OY);b8.prototype.W=function(z){return z.dC().nI()};g.Y(VX,wK);VX.prototype.W=function(z){var p=g.Gv(this.G,qr(jP().qb,"ovms"));return!z.nj&&(z.lf!=0||p)};g.Y(Dq,T_);Dq.prototype.K=function(){return new VX(this.W)}; Dq.prototype.D=function(){return[new b8("viewable_impression",this.W),new i8(this.W)]};g.Y(tS,$O);tS.prototype.X=function(){var z=g.n_("ima.admob.getViewability"),p=qr(this.qb,"queryid");typeof z==="function"&&p&&z(p)}; tS.prototype.getName=function(){return"gsv"};g.Y(Xd,Ug);Xd.prototype.getName=function(){return"gsv"}; Xd.prototype.md=function(){var z=vx();jP();return z.K&&!1}; Xd.prototype.eJ=function(z,p,c){return new tS(this.W,p,c)};g.Y(xv,$O);xv.prototype.X=function(){var z=this,p=g.n_("ima.bridge.getNativeViewability"),c=qr(this.qb,"queryid");typeof p==="function"&&c&&p(c,function(B){g.y3(B)&&z.G++;var H=B.opt_nativeViewVisibleBounds||{},T=B.opt_nativeViewHidden;z.W=$lW(B.opt_nativeViewBounds||{});var b=z.K.X;b.W=T?rJv.clone():$lW(H);z.timestamp=B.opt_nativeTime||-1;vx().W=b.W;B=B.opt_nativeVolume;B!==void 0&&(b.volume=B)})}; xv.prototype.getName=function(){return"nis"};g.Y(Er,Ug);Er.prototype.getName=function(){return"nis"}; Er.prototype.md=function(){var z=vx();jP();return z.K&&!1}; Er.prototype.eJ=function(z,p,c){return new xv(this.W,p,c)};g.Y(qV,oj);g.V=qV.prototype;g.V.zi=function(){return this.K.YY!=null}; g.V.M1=function(){var z={};this.YA&&(z.mraid=this.YA);this.tD&&(z.mlc=1);z.mtop=this.K.Nk0;this.G&&(z.mse=this.G);this.fH&&(z.msc=1);z.mcp=this.K.compatibility;return z}; g.V.Yx=function(z){var p=g.L_.apply(1,arguments);try{return this.K.YY[z].apply(this.K.YY,p)}catch(c){fE(538,c,.01,function(B){B.method=z})}}; g.V.initialize=function(){var z=this;if(this.isInitialized)return!this.gb();this.isInitialized=!0;if(this.K.compatibility===2)return this.G="ng",this.MS("w"),!1;if(this.K.compatibility===1)return this.G="mm",this.MS("w"),!1;vx().S=!0;this.D.document.readyState&&this.D.document.readyState=="complete"?hyi(this):Tw(this.D,"load",function(){lW().setTimeout(Nr(292,function(){return hyi(z)}),100)},292); return!0}; g.V.kL=function(){var z=vx(),p=Ryi(this,"getMaxSize");z.W=new TX(0,p.width,p.height,0)}; g.V.EX=function(){vx().X=Ryi(this,"getScreenSize")}; g.V.dispose=function(){AYf(this);oj.prototype.dispose.call(this)};var gAv=new function(z,p){this.key=z;this.defaultValue=p===void 0?!1:p;this.valueType="boolean"}("45378663");g.V=MV.prototype;g.V.WA=function(z){tE(z,!1);Qev(z)}; g.V.Uu=function(){}; g.V.qF=function(z,p,c,B){var H=this;z=new u6(PR,z,c?p:-1,7,this.bq(),this.zv());z.jK=B;mgY(z.qb);Ek(z.qb,"queryid",z.jK);z.ez("");bDE(z,function(){return H.iy.apply(H,g.A(g.L_.apply(0,arguments)))},function(){return H.wq8.apply(H,g.A(g.L_.apply(0,arguments)))}); (B=CE(ju).W)&&BIW(z,B);this.D&&(z.U$(this.D),this.D=null);z.oz.bP&&CE(zyV);return z}; g.V.M7=function(z){switch(z.IJ()){case 0:if(z=CE(ju).W)z=z.W,g.f9(z.L,this),z.U&&this.fQ()&&dlD(z);mG();break;case 2:gK()}}; g.V.pj=function(){}; g.V.fQ=function(){return!1}; g.V.wq8=function(z,p){z.nj=!0;switch(z.O_()){case 1:ZEV(z,p);break;case 2:this.hg(z)}}; g.V.bHD=function(z){var p=z.G(z);p&&(p=p.volume,z.UH=ez(p)&&p>0);$7v(z,0);return ye(z,"start",jz())}; g.V.nL=function(z,p,c){Gw(kO,[z],!jz());return this.gm(z,p,c)}; g.V.gm=function(z,p,c){return ye(z,c,jz())}; g.V.P8H=function(z){return RA(z,"firstquartile",1)}; g.V.C8$=function(z){z.Zt=!0;return RA(z,"midpoint",2)}; g.V.HH$=function(z){return RA(z,"thirdquartile",3)}; g.V.ZH$=function(z){var p=RA(z,"complete",4);aV(z);return p}; g.V.SHZ=function(z){z.lf=3;return ye(z,"error",jz())}; g.V.XP=function(z,p,c){p=jz();if(z.L4()&&!p){var B=z.dC(),H=zX();B.S=H}Gw(kO,[z],!p);z.L4()&&(z.lf=1);return ye(z,c,p)}; g.V.yDH=function(z,p){p=this.nL(z,p||{},"skip");aV(z);return p}; g.V.JDp=function(z,p){tE(z,!0);return this.nL(z,p||{},"fullscreen")}; g.V.NAA=function(z,p){tE(z,!1);return this.nL(z,p||{},"exitfullscreen")}; g.V.AO=function(z,p,c){p=z.dC();var B=zX();p.i8=AE(p,B,z.lf!=1);Gw(kO,[z],!jz());z.lf==1&&(z.lf=2);return ye(z,c,jz())}; g.V.ADa=function(z){Gw(kO,[z],!jz());return z.K()}; g.V.vE=function(z){Gw(kO,[z],!jz());this.KF(z);aV(z);return z.K()}; g.V.iy=function(){}; g.V.hg=function(){}; g.V.KF=function(){}; g.V.K$=function(){}; g.V.s4=function(){}; g.V.zv=function(){this.W||(this.W=this.s4());return this.W==null?new RV:new Dq(this.W)}; g.V.bq=function(){return new HO};g.Y(SV,OY);SV.prototype.W=function(z){return z.fM()==4};g.Y($v,wK);$v.prototype.W=function(z){z=z.fM();return z==3||z==4};g.Y(Ko,T_);Ko.prototype.K=function(){return new $v(this.W)}; Ko.prototype.D=function(){return[new SV(this.W)]};g.Y(u8,qaQ);u8.prototype.W=function(z){z&&(z.e===28&&(z=Object.assign({},z,{avas:3})),z.vs===4||z.vs===5)&&(z=Object.assign({},z,{vs:3}));var p=new EYV;p.W=YO(z,nLJ);p.K=YO(z,Qgd);return p};yYV.prototype.K=function(){return g.n_(this.W)};g.Y(aA,MV);g.V=aA.prototype;g.V.Uu=function(z,p){var c=this,B=CE(ju);if(B.W!=null)switch(B.W.getName()){case "nis":var H=vVB(this,z,p);break;case "gsv":H=lcu(this,z,p);break;case "exc":H=Ici(this,z)}H||(p.opt_overlayAdElement?H=void 0:p.opt_adElement&&(H=drN(this,z,p.opt_adElement,p.opt_osdId)));H&&H.O_()==1&&(H.G==g.my&&(H.G=function(T){return c.K$(T)}),eyW(this,H,p)); return H}; g.V.K$=function(z){z.K=0;z.T$=0;if(z.X=="h"||z.X=="n"){jP();z.NZ&&(jP(),Or(this)!="h"&&Or(this));var p=g.n_("ima.common.getVideoMetadata");if(typeof p==="function")try{var c=p(z.jK)}catch(H){z.K|=4}else z.K|=2}else if(z.X=="b")if(p=g.n_("ytads.bulleit.getVideoMetadata"),typeof p==="function")try{c=p(z.jK)}catch(H){z.K|=4}else z.K|=2;else if(z.X=="ml")if(p=g.n_("ima.common.getVideoMetadata"),typeof p==="function")try{c=p(z.jK)}catch(H){z.K|=4}else z.K|=2;else z.K|=1;z.K||(c===void 0?z.K|=8:c===null? z.K|=16:g.y3(c)?z.K|=32:c.errorCode!=null&&(z.T$=c.errorCode,z.K|=64));c==null&&(c={});p=c;z.S=0;for(var B in eKK)p[B]==null&&(z.S|=eKK[B]);W_E(p,"currentTime");W_E(p,"duration");ez(c.volume)&&ez()&&(c.volume*=NaN);return c}; g.V.s4=function(){jP();Or(this)!="h"&&Or(this);var z=j2D(this);return z!=null?new yYV(z):null}; g.V.hg=function(z){!z.W&&z.nj&&w4(this,z,"overlay_unmeasurable_impression")&&(z.W=!0)}; g.V.KF=function(z){z.CF&&(z.nI()?w4(this,z,"overlay_viewable_end_of_session_impression"):w4(this,z,"overlay_unviewable_impression"),z.CF=!1)}; g.V.iy=function(){}; g.V.qF=function(z,p,c,B){if(G1S()){var H=qr(jP().qb,"mm"),T={};(H=(T[Fu.Vn]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",T[Fu.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",T)[H])&&Q2i(this,H);this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&fE(1044,Error())}z=MV.prototype.qF.call(this,z,p,c,B);this.L&&(p=this.V,z.L==null&&(z.L=new VLN),p.W[z.jK]=z.L,z.L.L=Udg);return z}; g.V.WA=function(z){z&&z.O_()==1&&this.L&&delete this.V.W[z.jK];return MV.prototype.WA.call(this,z)}; g.V.zv=function(){this.W||(this.W=this.s4());return this.W==null?new RV:this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Ko(this.W):new Dq(this.W)}; g.V.bq=function(){return this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new u8:new HO}; g.V.U$=function(z,p,c,B,H){p=new TX(c,p+B,c+H,p);(z=l6(vV,z))?z.U$(p):this.D=p}; var sgQ=G$(193,Urx,void 0,L_v);g.oE("Goog_AdSense_Lidar_sendVastEvent",sgQ);var kvK=Nr(194,function(z,p){p=p===void 0?{}:p;z=nVu(CE(aA),z,p);return rYu(z)}); g.oE("Goog_AdSense_Lidar_getViewability",kvK);var gLq=G$(195,function(){return QSf()}); g.oE("Goog_AdSense_Lidar_getUrlSignalsArray",gLq);var Gvl=Nr(196,function(){return JSON.stringify(QSf())}); g.oE("Goog_AdSense_Lidar_getUrlSignalsList",Gvl);var s2x=(new Date("2024-01-01T00:00:00Z")).getTime();var G$W=Ji(["//ep2.adtrafficquality.google/sodar/",""]),N7S=Ji(["//tpc.googlesyndication.com/sodar/",""]);g.Y(eV,g.e);eV.prototype.vC=function(){return this.wpc.f()}; eV.prototype.Ji=function(z){this.wpc.c(z)}; eV.prototype.ZY=function(z){return this.wpc.m(c_D(z))}; eV.prototype.SF=function(z){return this.wpc.mws(c_D(z))}; g.Y(yX,g.e);yX.prototype.snapshot=function(z){return this.WO.s(Object.assign({},z.Wu&&{c:z.Wu},z.Df&&{s:z.Df},z.F4!==void 0&&{p:z.F4}))}; yX.prototype.Ui=function(z){this.WO.e(z)}; yX.prototype.zK=function(){return this.WO.l()};var pOv=(new Date).getTime();var i4Q="://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(" "),TYi=/\bocr\b/;var VzS=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var A_u=0,PnV=0,wxD=0;var O4E=Object.assign({},{attributes:{},handleError:function(z){throw z;}},{fWi:!0, pHA:!0,Yoa:$vm,rlA:KSm,p5:!1,e8H:!1,R8a:!1,qoA:Sxd,L38:!1});var IA=null,Fd=!1,myN=1,QX=Symbol("SIGNAL"),V9={version:0,IeH:0,eF:!1,nD:void 0,tZ:void 0,T7:void 0,tQ:0,sY:void 0,Da:void 0,cX:!1,K5:!1,kind:"unknown",CX:function(){return!1}, AN:function(){}, aC:function(){}, h8i:function(){}};var DE=Symbol("UNSET"),tt=Symbol("COMPUTING"),Xw=Symbol("ERRORED");Object.assign({},V9,{value:DE,eF:!0,error:null,Uw:vO,kind:"computed",CX:function(z){return z.value===DE||z.value===tt}, AN:function(z){if(z.value===tt)throw Error("Detected cycle in computations.");var p=z.value;z.value=tt;var c=Xx_(z),B=!1;try{var H=z.Yq();jV(null);B=p!==DE&&p!==Xw&&H!==Xw&&z.Uw(p,H)}catch(T){H=Xw,z.error=T}finally{xyE(z,c)}B?z.value=p:(z.value=H,z.version++)}});var Mzi=Object.assign({},V9,{Uw:vO,value:void 0,kind:"signal"});Object.assign({},V9,{value:DE,eF:!0,error:null,Uw:vO,CX:function(z){return z.value===DE||z.value===tt}, AN:function(z){if(z.value===tt)throw Error("Detected cycle in computations.");var p=z.value;z.value=tt;var c=Xx_(z);try{var B=z.source();var H=z.Yq(B,p===DE||p===Xw?void 0:{source:z.yd$,value:p});z.yd$=B}catch(T){H=Xw,z.error=T}finally{xyE(z,c)}p!==DE&&H!==Xw&&z.Uw(p,H)?z.value=p:(z.value=H,z.version++)}});Object.assign({},V9,{K5:!0,cX:!1,aC:function(z){z.schedule!==null&&z.schedule(z.sYp)}, ae3:!1,XHH:function(){}});var R9_=Symbol("updater");g.Y(Ur,g.T1);Ur.prototype.dispose=function(){window.removeEventListener("offline",this.D);window.removeEventListener("online",this.D);this.f4.YE(this.L);delete Ur.instance}; Ur.prototype.Bn=function(){return this.W}; Ur.prototype.uZ=function(){var z=this;this.L=this.f4.lY(function(){var p;return g.L(function(c){if(c.W==1)return z.W?((p=window.navigator)==null?0:p.onLine)?c.hD(3):g.a(c,r4(z),3):g.a(c,r4(z),3);z.uZ();g.Ai(c)})},3E4)};kv.prototype.set=function(z,p){p=p===void 0?!0:p;0<=z&&z<52&&Number.isInteger(z)&&this.data[z]!==p&&(this.data[z]=p,this.W=-1)}; kv.prototype.get=function(z){return!!this.data[z]};var G_;g.Bq(g.zV,g.e);g.V=g.zV.prototype;g.V.start=function(){this.stop();this.X=!1;var z=uiW(this),p=aRS(this);z&&!p&&this.K.mozRequestAnimationFrame?(this.W=g.Nx(this.K,"MozBeforePaint",this.D),this.K.mozRequestAnimationFrame(null),this.X=!0):this.W=z&&p?z.call(this.K,this.D):this.K.setTimeout(jJD(this.D),20)}; g.V.stop=function(){if(this.isActive()){var z=uiW(this),p=aRS(this);z&&!p&&this.K.mozRequestAnimationFrame?cN(this.W):z&&p?p.call(this.K,this.W):this.K.clearTimeout(this.W)}this.W=null}; g.V.isActive=function(){return this.W!=null}; g.V.jc=function(){this.X&&this.W&&cN(this.W);this.W=null;this.V.call(this.L,g.p9())}; g.V.m0=function(){this.stop();g.zV.QR.m0.call(this)};g.Bq(g.B4,g.e);g.V=g.B4.prototype;g.V.F0=0;g.V.m0=function(){g.B4.QR.m0.call(this);this.stop();delete this.W;delete this.K}; g.V.start=function(z){this.stop();this.F0=g.d6(this.D,z!==void 0?z:this.DZ)}; g.V.stop=function(){this.isActive()&&g.jQ.clearTimeout(this.F0);this.F0=0}; g.V.isActive=function(){return this.F0!=0}; g.V.aG=function(){this.F0=0;this.W&&this.W.call(this.K)};g.Y(g.b5,g.e);g.V=g.b5.prototype;g.V.D1=function(z){this.D=arguments;this.Py||this.K?this.W=!0:VL(this)}; g.V.stop=function(){this.Py&&(g.jQ.clearTimeout(this.Py),this.Py=null,this.W=!1,this.D=null)}; g.V.pause=function(){this.K++}; g.V.resume=function(){this.K--;this.K||!this.W||this.Py||(this.W=!1,VL(this))}; g.V.m0=function(){g.e.prototype.m0.call(this);this.stop()};g.Dv.prototype[Symbol.iterator]=function(){return this}; g.Dv.prototype.next=function(){var z=this.W.next();return{value:z.done?void 0:this.K.call(void 0,z.value),done:z.done}};g.Bq(g.ma,g.T1);g.V=g.ma.prototype;g.V.isPlaying=function(){return this.W==1}; g.V.isPaused=function(){return this.W==-1}; g.V.fV=function(){this.UM("begin")}; g.V.CI=function(){this.UM("end")}; g.V.onFinish=function(){this.UM("finish")}; g.V.onStop=function(){this.UM("stop")}; g.V.UM=function(z){this.dispatchEvent(z)};var Nzz=hG(function(){var z=g.i4("DIV"),p=g.pu?"-webkit":h_?"-moz":null,c="transition:opacity 1s linear;";p&&(c+=p+"-transition:opacity 1s linear;");p=s8u({style:c});if(z.nodeType===1&&/^(script|style)$/i.test(z.tagName))throw Error("");z.innerHTML=oQ(p);return g.Px(z.firstChild,"transition")!=""});g.Bq(hn,g.ma);g.V=hn.prototype;g.V.play=function(){if(this.isPlaying())return!1;this.fV();this.UM("play");this.startTime=g.p9();this.W=1;if(Nzz())return g.mm(this.K,this.V),this.D=g.d6(this.V80,void 0,this),!0;this.vF(!1);return!1}; g.V.V80=function(){g.Wx(this.K);dyv(this.K,this.G);g.mm(this.K,this.X);this.D=g.d6((0,g.Nv)(this.vF,this,!1),this.L*1E3)}; g.V.stop=function(){this.isPlaying()&&this.vF(!0)}; g.V.vF=function(z){g.mm(this.K,"transition","");g.jQ.clearTimeout(this.D);g.mm(this.K,this.X);this.endTime=g.p9();this.W=0;if(z)this.onStop();else this.onFinish();this.CI()}; g.V.m0=function(){this.stop();hn.QR.m0.call(this)}; g.V.pause=function(){};var y_u={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};P4("Element","attributes")||P4("Node","attributes");P4("Element","innerHTML")||P4("HTMLElement","innerHTML");P4("Node","nodeName");P4("Node","nodeType");P4("Node","parentNode");P4("Node","childNodes");P4("HTMLElement","style")||P4("Element","style");P4("HTMLStyleElement","sheet");var jjf=e9_("getPropertyValue"),FmS=e9_("setProperty");P4("Element","namespaceURI")||P4("Node","namespaceURI");var IRV={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var r_W,MQQ,QjD,nmY,UyY;r_W=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]");MQQ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.fmE=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.Oo=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]");QjD=/^http:\/\/.*/;g.zU3=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");nmY=/\s+/;UyY=/[\d\u06f0-\u06f9]/;RY.prototype.iD=function(){return new So(this.K())}; RY.prototype[Symbol.iterator]=function(){return new $f(this.K())}; RY.prototype.W=function(){return new $f(this.K())}; g.Y(So,g.XF);So.prototype.next=function(){return this.K.next()}; So.prototype[Symbol.iterator]=function(){return new $f(this.K)}; So.prototype.W=function(){return new $f(this.K)}; g.Y($f,RY);$f.prototype.next=function(){return this.D.next()};u5.prototype.clone=function(){return new u5(this.W,this.G,this.D,this.L,this.X,this.V,this.K,this.S)}; u5.prototype.oI=function(z){return this.W==z.W&&this.G==z.G&&this.D==z.D&&this.L==z.L&&this.X==z.X&&this.V==z.V&&this.K==z.K&&this.S==z.S};Zv.prototype.clone=function(){return new Zv(this.start,this.end)}; Zv.prototype.getLength=function(){return this.end-this.start};(function(){if($YW){var z=/Windows NT ([0-9.]+)/;return(z=z.exec(g.Zm()))?z[1]:"0"}return bb?(z=/1[0|1][_.][0-9_.]+/,(z=z.exec(g.Zm()))?z[0].replace(/_/g,"."):"10"):g.iL?(z=/Android\s+([^\);]+)(\)|;)/,(z=z.exec(g.Zm()))?z[1]:""):Z_g||LSm||dvd?(z=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(z=z.exec(g.Zm()))?z[1].replace(/_/g,"."):""):""})();var kXD=function(){if(g.UP)return LI(/Firefox\/([0-9.]+)/);if(g.An||g.pq||g.dX)return DdS;if(g.v2){if(Q$()||rz()){var z=LI(/CriOS\/([0-9.]+)/);if(z)return z}return LI(/Chrome\/([0-9.]+)/)}if(g.$U&&!Q$())return LI(/Version\/([0-9.]+)/);if(cL||BL){if(z=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Zm()))return z[1]+"."+z[2]}else if(g.WW)return(z=LI(/Android\s+([0-9.]+)/))?z:LI(/Version\/([0-9.]+)/);return""}();g.Bq(g.W4,g.e);g.V=g.W4.prototype;g.V.subscribe=function(z,p,c){var B=this.K[z];B||(B=this.K[z]=[]);var H=this.V;this.W[H]=z;this.W[H+1]=p;this.W[H+2]=c;this.V=H+3;B.push(H);return H}; g.V.unsubscribe=function(z,p,c){if(z=this.K[z]){var B=this.W;if(z=z.find(function(H){return B[H+1]==p&&B[H+2]==c}))return this.zk(z)}return!1}; g.V.zk=function(z){var p=this.W[z];if(p){var c=this.K[p];this.X!=0?(this.D.push(z),this.W[z+1]=function(){}):(c&&g.f9(c,z),delete this.W[z],delete this.W[z+1],delete this.W[z+2])}return!!p}; g.V.publish=function(z,p){var c=this.K[z];if(c){var B=Array(arguments.length-1),H=arguments.length,T;for(T=1;T0&&this.X==0)for(;c=this.D.pop();)this.zk(c)}}return T!=0}return!1}; g.V.clear=function(z){if(z){var p=this.K[z];p&&(p.forEach(this.zk,this),delete this.K[z])}else this.W.length=0,this.K={}}; g.V.m0=function(){g.W4.QR.m0.call(this);this.clear();this.D.length=0};g.yL.prototype.set=function(z,p){p===void 0?this.W.remove(z):this.W.set(z,g.eB(p))}; g.yL.prototype.get=function(z){try{var p=this.W.get(z)}catch(c){return}if(p!==null)try{return JSON.parse(p)}catch(c){throw"Storage: Invalid value was encountered";}}; g.yL.prototype.remove=function(z){this.W.remove(z)};g.Bq(CI,g.yL);CI.prototype.set=function(z,p){CI.QR.set.call(this,z,NYB(p))}; CI.prototype.K=function(z){z=CI.QR.get.call(this,z);if(z===void 0||z instanceof Object)return z;throw"Storage: Invalid value was encountered";}; CI.prototype.get=function(z){if(z=this.K(z)){if(z=z.data,z===void 0)throw"Storage: Invalid value was encountered";}else z=void 0;return z};g.Bq(eo,CI);eo.prototype.set=function(z,p,c){if(p=NYB(p)){if(c){if(c=c.length)return g.Hs;var H=c.key(p++);if(z)return g.xO(H);H=c.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return g.xO(H)}; return B}; g.V.clear=function(){jo(this);this.W.clear()}; g.V.key=function(z){jo(this);return this.W.key(z)};g.Bq(Fj,IY);g.Bq(pVN,IY);g.Bq(oY,v4);oY.prototype.set=function(z,p){this.K.set(this.W+z,p)}; oY.prototype.get=function(z){return this.K.get(this.W+z)}; oY.prototype.remove=function(z){this.K.remove(this.W+z)}; oY.prototype.iD=function(z){var p=this.K[Symbol.iterator](),c=this,B=new g.XF;B.next=function(){var H=p.next();if(H.done)return H;for(H=H.value;H.slice(0,c.W.length)!=c.W;){H=p.next();if(H.done)return H;H=H.value}return g.xO(z?H.slice(c.W.length):c.K.get(H))}; return B};QL.prototype.getValue=function(){return this.K}; QL.prototype.clone=function(){return new QL(this.W,this.K)};g.V=rD.prototype;g.V.Uv=function(z,p){var c=this.W;c.push(new QL(z,p));z=c.length-1;p=this.W;for(c=p[z];z>0;){var B=z-1>>1;if(p[B].W>c.W)p[z]=p[B],z=B;else break}p[z]=c}; g.V.remove=function(){var z=this.W,p=z.length,c=z[0];if(!(p<=0)){if(p==1)z.length=0;else{z[0]=z.pop();z=0;p=this.W;for(var B=p.length,H=p[z];z>1;){var T=z*2+1,b=z*2+2;T=bH.W)break;p[z]=p[T];z=T}p[z]=H}return c.getValue()}}; g.V.lD=function(){for(var z=this.W,p=[],c=z.length,B=0;B>>16&65535|0;for(var T;c!==0;){T=c>2E3?2E3:c;c-=T;do H=H+p[B++]|0,z=z+H|0;while(--T);H%=65521;z%=65521}return H|z<<16|0};for(var Aq={},xi,i$1=[],Eq=0;Eq<256;Eq++){xi=Eq;for(var Td$=0;Td$<8;Td$++)xi=xi&1?3988292384^xi>>>1:xi>>>1;i$1[Eq]=xi}Aq=function(z,p,c,B){c=B+c;for(z^=-1;B>>8^i$1[(z^p[B])&255];return z^-1};var Xm={};Xm={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 Hn=[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],b3=[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],$3f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],JEY=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Jq=Array(576);gD(Jq);var MR=Array(60);gD(MR);var TI=Array(512);gD(TI);var Bn=Array(256);gD(Bn);var i3=Array(29);gD(i3);var Vs=Array(30);gD(Vs);var wVD,RTY,SYx,OxY=!1;var $D;$D=[new SY(0,0,0,0,function(z,p){var c=65535;for(c>z.Qe-5&&(c=z.Qe-5);;){if(z.HM<=1){O6(z);if(z.HM===0&&p===0)return 1;if(z.HM===0)break}z.Tr+=z.HM;z.HM=0;var B=z.SA+c;if(z.Tr===0||z.Tr>=B)if(z.HM=z.Tr-B,z.Tr=B,YD(z,!1),z.A1.aj===0)return 1;if(z.Tr-z.SA>=z.f2-262&&(YD(z,!1),z.A1.aj===0))return 1}z.Uv=0;if(p===4)return YD(z,!0),z.A1.aj===0?3:4;z.Tr>z.SA&&YD(z,!1);return 1}), new SY(4,4,8,4,wj),new SY(4,5,16,8,wj),new SY(4,6,32,32,wj),new SY(4,4,16,16,R1),new SY(8,16,32,32,R1),new SY(8,16,128,128,R1),new SY(8,32,128,256,R1),new SY(32,128,258,1024,R1),new SY(32,258,258,4096,R1)];var AEv={};AEv=function(){this.input=null;this.xo=this.n2=this.Yd=0;this.output=null;this.ip=this.aj=this.X2=0;this.msg="";this.state=null;this.WC=2;this.qP=0};var Kki=Object.prototype.toString; KQ.prototype.push=function(z,p){var c=this.A1,B=this.options.chunkSize;if(this.ended)return!1;var H=p===~~p?p:p===!0?4:0;typeof z==="string"?c.input=Hxu(z):Kki.call(z)==="[object ArrayBuffer]"?c.input=new Uint8Array(z):c.input=z;c.Yd=0;c.n2=c.input.length;do{c.aj===0&&(c.output=new kf.Su(B),c.X2=0,c.aj=B);z=P6S(c,H);if(z!==1&&z!==0)return this.CI(z),this.ended=!0,!1;if(c.aj===0||c.n2===0&&(H===4||H===2))if(this.options.nQ==="string"){var T=kf.ek(c.output,c.X2);p=T;T=T.length;if(T<65537&&(p.subarray&& H$3||!p.subarray))p=String.fromCharCode.apply(null,kf.ek(p,T));else{for(var b="",D=0;D0||c.aj===0)&&z!==1);if(H===4)return(c=this.A1)&&c.state?(B=c.state.status,B!==42&&B!==69&&B!==73&&B!==91&&B!==103&&B!==113&&B!==666?z=xD(c,-2):(c.state=null,z=B===113?xD(c,-3):0)):z=-2,this.CI(z),this.ended=!0,z===0;H===2&&(this.CI(0),c.aj=0);return!0}; KQ.prototype.CI=function(z){z===0&&(this.result=this.options.nQ==="string"?this.chunks.join(""):kf.NU(this.chunks));this.chunks=[];this.err=z;this.msg=this.A1.msg};var a1="@@redux/INIT"+u3(),Wk_="@@redux/REPLACE"+u3();var yEB=typeof Symbol==="function"&&Symbol.observable||"@@observable";var b$g=[0,EL3,-3,zT];g.Y(dj,oJ);dj.prototype.getType=function(){return h5(this,11)};var BmW=function(){var z=[0,JJm,qQ$,gp,EL3,gp,-1,zT,EL3,zT,-1,JJm,zT,qQ$,Gf,b$g,gp,-1,zT];return function(p,c){p=O$v(p,void 0,void 0,c);try{var B=new dj;l0(B);var H=B.Ka;DX(z)(H,p);var T=B}finally{p.free()}return T}}();var vOB=-82609325;var G6B=new g.Wn("adInfoDialogEndpoint");var AgE=new g.Wn("adPingingEndpoint");var nQx=new g.Wn("crossDeviceProgressCommand");var Td=new g.Wn("actionCompanionAdRenderer");var Me=new g.Wn("adActionInterstitialRenderer");var Vgd=new g.Wn("adDurationRemainingRenderer");var FR=new g.Wn("adHoverTextButtonRenderer");var k6x=new g.Wn("adInfoDialogRenderer");var wW=new g.Wn("adMessageRenderer");var oP=new g.Wn("adPreviewRenderer");var Va=new g.Wn("adsEngagementPanelRenderer");var JvD=new g.Wn("dismissablePanelTextPortraitImageRenderer");var EpN=new g.Wn("adsEngagementPanelSectionListViewModel");var DC3=new g.Wn("flyoutCtaRenderer");var bV=new g.Wn("imageCompanionAdRenderer");var qe=new g.Wn("instreamAdPlayerOverlayRenderer");var CMf=new g.Wn("instreamSurveyAdBackgroundImageRenderer");var jR=new g.Wn("instreamSurveyAdPlayerOverlayRenderer");var Pr=new g.Wn("instreamSurveyAdRenderer"),IP=new g.Wn("instreamSurveyAdSingleSelectQuestionRenderer"),vr=new g.Wn("instreamSurveyAdMultiSelectQuestionRenderer"),q4=new g.Wn("instreamSurveyAdAnswerRenderer"),tg3=new g.Wn("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var mi=new g.Wn("instreamVideoAdRenderer");var Xe$=new g.Wn("textOverlayAdContentRenderer"),xCE=new g.Wn("enhancedTextOverlayAdContentRenderer"),Eu9=new g.Wn("imageOverlayAdContentRenderer");var Jd=new g.Wn("playerOverlayLayoutRenderer");var Y7=new g.Wn("videoInterstitialButtonedCenteredLayoutRenderer");var Paf=new g.Wn("aboveFeedAdLayoutRenderer");var AvW=new g.Wn("belowPlayerAdLayoutRenderer");var hli=new g.Wn("inPlayerAdLayoutRenderer");var wo=new g.Wn("playerBytesAdLayoutRenderer");var lV=new g.Wn("playerBytesSequenceItemAdLayoutRenderer");var eR=new g.Wn("playerUnderlayAdLayoutRenderer");var hZ=new g.Wn("adIntroRenderer");var MW=new g.Wn("playerBytesSequentialLayoutRenderer");var fSV=new g.Wn("slidingTextPlayerOverlayRenderer");var AZ=new g.Wn("surveyTextInterstitialRenderer");var RP=new g.Wn("videoAdTrackingRenderer");var q_L=new g.Wn("simpleAdBadgeRenderer");var xb=new g.Wn("skipAdRenderer"),Jyd=new g.Wn("skipButtonRenderer");var UT=new g.Wn("adSlotRenderer");var ya=new g.Wn("squeezebackPlayerSidePanelRenderer");var MgK=new g.Wn("timedPieCountdownRenderer");var vl=new g.Wn("adAvatarViewModel");var I_=new g.Wn("adBadgeViewModel");var jy=new g.Wn("adButtonViewModel");var Y_z=new g.Wn("adDetailsLineViewModel");var mCd=new g.Wn("adDisclosureBannerViewModel");var hUd=new g.Wn("adPodIndexViewModel");var P09=new g.Wn("imageBackgroundViewModel");var Ayq=new g.Wn("adGridCardCollectionViewModel");var O$d=new g.Wn("adGridCardTextViewModel");var wel=new g.Wn("adPreviewViewModel");var RUJ=new g.Wn("playerAdAvatarLockupCardButtonedViewModel");var S_q=new g.Wn("skipAdButtonViewModel");var $CJ=new g.Wn("skipAdViewModel");var Krv=new g.Wn("timedPieCountdownViewModel");var ueg=new g.Wn("visitAdvertiserLinkViewModel");var Do=new g.Wn("bannerImageLayoutViewModel");var tZ=new g.Wn("topBannerImageTextIconButtonedLayoutViewModel");var xS=new g.Wn("adsEngagementPanelLayoutViewModel");var Cl=new g.Wn("displayUnderlayTextGridCardsLayoutViewModel");g.dG=new g.Wn("browseEndpoint");var a5z=new g.Wn("confirmDialogEndpoint");var Edi=new g.Wn("commandContext");var mDY=new g.Wn("rawColdConfigGroup");var YAV=new g.Wn("rawHotConfigGroup");g.ST=new g.Wn("commandExecutorCommand");g.Y(FkW,oJ);var bCv={ap8:0,hjH:1,r58:32,i98:61,NmH:67,dkH:103,gUA:86,uz8:42,xkH:60,Ipa:62,BmI:73,nUH:76,wsD:88,Z90:90,PUD:99,psA:98,S_q:100,Gfp:102,J5$:41,CUA:69,A58:70,y5H:71,Kea:2,agA:27,ANDROID:3,fZ$:54,qBD:14,i23:91,puI:55,YBZ:24,uvi:20,roA:18,owI:21,nwA:104,gwp:30,Z2H:29,SBA:28,XsZ:101,NCH:34,O2H:36,xSp:38,IOS:5,kx3:15,mB$:92,EGa:40,cC0:25,KnH:17,asq:19,Mep:64,eQI:66,DBZ:26,Xtp:22,teq:33,QeZ:68,je8:35,zQ0:53,Fnq:37,WnH:39,Cxi:7,AIi:57,yIA:43,H4H:59,b4H:93,wu8:74,sfA:75,URq:85,llA:65,EYt:80,WNp:8,Px0:10, KNH:58,c5q:63,kc3:72,dSH:23,s_A:11,UkA:13,jzq:12,JI$:16,Y_A:56,O9I:31,EH3:77,Lka:84,oUI:87,qba:89,fcH:94,ZsA:95};g.Y(ys,oJ);ys.prototype.PG=function(){return mn(this,3)}; ys.prototype.Ud=function(){return mn(this,5)}; ys.prototype.XL=function(z){return A5(this,5,z)};g.Y(CQ,oJ);g.Y(oOf,oJ);g.Y(eY,oJ);g.V=eY.prototype;g.V.getDeviceId=function(){return mn(this,6)}; g.V.C8=function(z){var p=gL(this,9,Xp,3,!0);jg(p,z);return p[z]}; g.V.getPlayerType=function(){return h5(this,36)}; g.V.setHomeGroupInfo=function(z){return E7(this,oOf,81,z)}; g.V.clearLocationPlayabilityToken=function(){return n2(this,89)};g.Y(l3,oJ);l3.prototype.getValue=function(){return mn(this,Tc(this,Jrx)===2?2:-1)}; var Jrx=[2,3,4,5,6];g.Y(vn,oJ);vn.prototype.setTrackingParams=function(z){return n2(this,1,Z9S(z,!1))};g.Y(I1,oJ);g.Y(jY,oJ);jY.prototype.C8=function(z){var p=gL(this,5,x_,3,!0);jg(p,z);return p[z]};g.Y(Fm,oJ);Fm.prototype.getToken=function(){return Mo(this,2)}; Fm.prototype.setToken=function(z){return A5(this,2,z)};g.Y(o1,oJ);o1.prototype.setSafetyMode=function(z){return wv(this,5,z)};g.Y(nQ,oJ);nQ.prototype.AZ=function(z){return E7(this,eY,1,z)};var Qa=new g.Wn("thumbnailLandscapePortraitRenderer");g.Z$J=new g.Wn("changeEngagementPanelVisibilityAction");var AcD=new g.Wn("continuationCommand");g.Lrm=new g.Wn("openPopupAction");g.Jt=new g.Wn("webCommandMetadata");var egV=new g.Wn("metadataBadgeRenderer");var PHW=new g.Wn("signalServiceEndpoint");var Qy=new g.Wn("innertubeCommand");var VGY=new g.Wn("loggingDirectives");var udD={sz0:"EMBEDDED_PLAYER_MODE_UNKNOWN",yqt:"EMBEDDED_PLAYER_MODE_DEFAULT",Hla:"EMBEDDED_PLAYER_MODE_PFP",blq:"EMBEDDED_PLAYER_MODE_PFL"};var DpY=new g.Wn("channelThumbnailEndpoint");var VCB=new g.Wn("embeddedPlayerErrorMessageRenderer");var Hc_=new g.Wn("embeddedPlayerOverlayVideoDetailsRenderer"),tCY=new g.Wn("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),XZf=new g.Wn("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var WiD=new g.Wn("embedsInfoPanelRenderer");var dCg=new g.Wn("feedbackEndpoint");var Wr3=new g.Wn("callToActionButtonViewModel");var yyE=new g.Wn("interactionLoggingCommandMetadata");var R4v={q_A:"WEB_DISPLAY_MODE_UNKNOWN",VvH:"WEB_DISPLAY_MODE_BROWSER",LNa:"WEB_DISPLAY_MODE_MINIMAL_UI",fpD:"WEB_DISPLAY_MODE_STANDALONE",vUt:"WEB_DISPLAY_MODE_FULLSCREEN"};g.Y(U6,oJ);U6.prototype.getPlayerType=function(){return h5(this,7)}; U6.prototype.uA=function(){return mn(this,19)}; U6.prototype.setVideoId=function(z){return A5(this,19,z)};g.Y(s6,oJ);g.Y(kD,oJ);g.Y(gj,oJ); var C0E=[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];var eUl=new g.Wn("loggingContext");g.Y(GI,oJ);g.Y(NR,oJ);NR.prototype.uA=function(){return Mo(this,Tc(this,mc)===1?1:-1)}; NR.prototype.setVideoId=function(z){return HQ(this,1,mc,OD(z))}; NR.prototype.getPlaylistId=function(){return Mo(this,Tc(this,mc)===2?2:-1)}; var mc=[1,2];g.Y(nON,oJ);var br=new g.Wn("changeKeyedMarkersVisibilityCommand");var l5l=new g.Wn("changeMarkersVisibilityCommand");var vS_=new g.Wn("loadMarkersCommand");var vuK=new g.Wn("suggestedActionDataViewModel");var hFW=new g.Wn("timelyActionViewModel");var mhx=new g.Wn("timelyActionsOverlayViewModel");var wsi=new g.Wn("productListItemRenderer");var I5L=new g.Wn("shoppingOverlayRenderer");var icu=new g.Wn("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var jW1=new g.Wn("adFeedbackEndpoint");var FrK=new g.Wn("menuEndpoint");var l9v=new g.Wn("phoneDialerEndpoint");var CKQ=new g.Wn("sendSmsEndpoint");var BWW=new g.Wn("copyTextEndpoint");var ouL=new g.Wn("shareEndpoint"),num=new g.Wn("shareEntityEndpoint"),QWK=new g.Wn("shareEntityServiceEndpoint"),ryg=new g.Wn("webPlayerShareEntityServiceEndpoint");g.Qj=new g.Wn("urlEndpoint");g.ir=new g.Wn("watchEndpoint");var UC9=new g.Wn("watchPlaylistEndpoint");g.sWv=new g.Wn("offlineOrchestrationActionCommand");var HW_=new g.Wn("compositeVideoOverlayRenderer");var koz=new g.Wn("miniplayerRenderer");var pZx=new g.Wn("paidContentOverlayRenderer");var gug=new g.Wn("playerMutedAutoplayOverlayRenderer"),GoK=new g.Wn("playerMutedAutoplayEndScreenRenderer");var kNW=new g.Wn("unserializedPlayerResponse"),Nd1=new g.Wn("unserializedPlayerResponse");var f5E=new g.Wn("playlistEditEndpoint");var M4;g.nl=new g.Wn("buttonRenderer");M4=new g.Wn("toggleButtonRenderer");var x2x=new g.Wn("counterfactualRenderer");var zx1=new g.Wn("resolveUrlCommandMetadata");var py9=new g.Wn("modifyChannelNotificationPreferenceEndpoint");var P$E=new g.Wn("pingingEndpoint");var cDQ=new g.Wn("unsubscribeEndpoint");g.Wf=new g.Wn("subscribeButtonRenderer");var BLq=new g.Wn("subscribeEndpoint");var RL_=new g.Wn("buttonViewModel");var qRu=new g.Wn("qrCodeRenderer");var DuY={nH8:"LIVING_ROOM_APP_MODE_UNSPECIFIED",rC0:"LIVING_ROOM_APP_MODE_MAIN",uea:"LIVING_ROOM_APP_MODE_KIDS",xB3:"LIVING_ROOM_APP_MODE_MUSIC",oHq:"LIVING_ROOM_APP_MODE_UNPLUGGED",YPi:"LIVING_ROOM_APP_MODE_GAMING"};var Zli=new g.Wn("autoplaySwitchButtonRenderer");var L8,t$Y,cZS,AkN;L8=new g.Wn("decoratedPlayerBarRenderer");t$Y=new g.Wn("chapteredPlayerBarRenderer");cZS=new g.Wn("multiMarkersPlayerBarRenderer");AkN=new g.Wn("chapterRenderer");g.qzY=new g.Wn("markerRenderer");var H2z=new g.Wn("decoratedPlayheadRenderer");var yZY=new g.Wn("desktopOverlayConfigRenderer");var MeQ=new g.Wn("engagementPanelSectionListRenderer");var dWN=new g.Wn("gatedActionsOverlayViewModel");var m1Q=new g.Wn("heatMarkerRenderer");var Yzv=new g.Wn("heatmapRenderer");var loW=new g.Wn("watchToWatchTransitionRenderer");var TWB=new g.Wn("playlistPanelRenderer");var i23=new g.Wn("productUpsellSuggestedActionViewModel");var TLQ=new g.Wn("suggestedActionTimeRangeTrigger"),b2J=new g.Wn("suggestedActionsRenderer"),Vxv=new g.Wn("suggestedActionRenderer");var hBS=new g.Wn("timedMarkerDecorationRenderer");var hIf=new g.Wn("cipher");var gbQ=new g.Wn("playerVars");var DIm=new g.Wn("playerVars");var Yi=g.jQ.window,tx$,Xyl,fQ=(Yi==null?void 0:(tx$=Yi.yt)==null?void 0:tx$.config_)||(Yi==null?void 0:(Xyl=Yi.ytcfg)==null?void 0:Xyl.data_)||{};g.oE("yt.config_",fQ);var Bh=[];var zRB=/^[\w.]*$/,gOE={q:!0,search_query:!0},kwx=String(bO);var Y5=new function(){var z=window.document;this.W=window;this.K=z}; g.oE("yt.ads_.signals_.getAdSignalsString",function(z){return VS(h6(z))});g.p9();var cSB="XMLHttpRequest"in g.jQ?function(){return new XMLHttpRequest}:null;var xIq="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.A(xIq);var T4B={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"},boY="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.A(xIq)),JSu=!1,HoS=VVY,xVi=LN;g.Y(yS,JJ);lO.prototype.then=function(z,p,c){return this.W?this.W.then(z,p,c):this.D===1&&z?(z=z.call(c,this.K))&&typeof z.then==="function"?z:If(z):this.D===2&&p?(z=p.call(c,this.K))&&typeof z.then==="function"?z:vh(z):this}; lO.prototype.getValue=function(){return this.K}; lO.prototype.$goog_Thenable=!0;var j9=!1;var zG=cL||BL;var $VN=/^([0-9\.]+):([0-9\.]+)$/;g.Y(mo,JJ);mo.prototype.name="BiscottiError";g.Y(Y4,JJ);Y4.prototype.name="BiscottiMissingError";var ZoY={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hr=null;var PNQ=Ji(["data-"]),IqW={};var E_l=0,PL=g.pu?"webkit":h_?"moz":g.An?"ms":g.dX?"o":"",qD1=g.n_("ytDomDomGetNextId")||function(){return++E_l}; g.oE("ytDomDomGetNextId",qD1);var nvB={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};$4.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; $4.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; $4.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var KG=g.jQ.ytEventsEventsListeners||{};g.oE("ytEventsEventsListeners",KG);var UVE=g.jQ.ytEventsEventsCounter||{count:0};g.oE("ytEventsEventsCounter",UVE);var G_u=hG(function(){var z=!1;try{var p=Object.defineProperty({},"passive",{get:function(){z=!0}}); window.addEventListener("test",null,p)}catch(c){}return z}),sAV=hG(function(){var z=!1; try{var p=Object.defineProperty({},"capture",{get:function(){z=!0}}); window.addEventListener("test",null,p)}catch(c){}return z});var mg;mg=window;g.y2=mg.ytcsi&&mg.ytcsi.now?mg.ytcsi.now:mg.performance&&mg.performance.timing&&mg.performance.now&&mg.performance.timing.navigationStart?function(){return mg.performance.timing.navigationStart+mg.performance.now()}:function(){return(new Date).getTime()};g.Bq(d3,g.e);d3.prototype.U=function(z){z.W===void 0&&QAQ(z);var p=z.W;z.K===void 0&&QAQ(z);this.W=new g.ho(p,z.K)}; d3.prototype.T5=function(){return this.W||new g.ho}; d3.prototype.MZ=function(){if(this.W){var z=(0,g.y2)();if(this.X!=0){var p=this.V,c=this.W,B=p.x-c.x;p=p.y-c.y;B=Math.sqrt(B*B+p*p)/(z-this.X);this.K[this.D]=Math.abs((B-this.L)/this.L)>.5?1:0;for(c=p=0;c<4;c++)p+=this.K[c]||0;p>=3&&this.G();this.L=B}this.X=z;this.V=this.W;this.D=(this.D+1)%4}}; d3.prototype.m0=function(){g.S9(this.S);g.aw(this.Dt)};g.Y(WL,g.e);WL.prototype.Z=function(z,p,c,B,H){c=g.iO((0,g.Nv)(c,B||this.WM));c={target:z,name:p,callback:c};var T;H&&G_u()&&(T={passive:!0});z.addEventListener(p,c.callback,T);this.G.push(c);return c}; WL.prototype.vy=function(z){for(var p=0;p=v.Jm)||O.W.version>=zY||O.W.objectStoreNames.contains(W)||K.push(W)}t=K;if(t.length===0){P.hD(5);break}X=Object.keys(c.options.Pe); x=D.objectStoreNames();if(c.Lc.options.version+1)throw q.close(),c.D=!1,vf_(c,J);return P.return(q);case 8:throw p(), E instanceof Error&&!g.KN("ytidb_async_stack_killswitch")&&(E.stack=E.stack+"\n"+b.substring(b.indexOf("\n")+1)),Kt(E,c.name,"",(M=c.options.version)!=null?M:-1);}})} function p(){c.W===B&&(c.W=void 0)} var c=this;if(!this.D)throw vf_(this);if(this.W)return this.W;var B,H={blocking:function(T){T.close()}, closed:p,F$8:p,upgrade:this.options.upgrade};return this.W=B=z()};var NG=new gy("YtIdbMeta",{Pe:{databases:{Jm:1}},upgrade:function(z,p){p(1)&&g.ej(z,"databases",{keyPath:"actualName"})}});var BU,cU=new function(){}(new function(){});new g.OE;g.Y(TG,gy);TG.prototype.K=function(z,p,c){c=c===void 0?{}:c;return(this.options.shared?sYQ:U5D)(z,p,Object.assign({},c))}; TG.prototype.delete=function(z){z=z===void 0?{}:z;return(this.options.shared?NDS:kVY)(this.name,z)};var wy3={},z4x=g.bH("ytGcfConfig",{Pe:(wy3.coldConfigStore={Jm:1},wy3.hotConfigStore={Jm:1},wy3),shared:!1,upgrade:function(z,p){p(1)&&(g.oO(g.ej(z,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.oO(g.ej(z,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.Y(DJ,g.e);DJ.prototype.m0=function(){for(var z=g.m(this.K),p=z.next();!p.done;p=z.next()){var c=this.W;p=c.indexOf(p.value);p>=0&&c.splice(p,1)}this.K.length=0;g.e.prototype.m0.call(this)};Jc.prototype.XL=function(z){this.hotHashData=z;g.oE("yt.gcf.config.hotHashData",this.hotHashData||null)};var Rx$=typeof TextEncoder!=="undefined"?new TextEncoder:null,oDY=Rx$?function(z){return Rx$.encode(z)}:function(z){z=g.AJ(z); for(var p=new Uint8Array(z.length),c=0;c=p?!1:!0}; g.V.NG=function(){var z=this;if(!oX(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ev.Fi("QUEUED",this.sI).then(function(p){p&&!z.B3(p,z.sQ)?z.f4.lY(function(){return g.L(function(c){if(c.W==1)return p.id===void 0?c.hD(2):g.a(c,z.Ev.qJ(p.id,z.sI),2);z.NG();g.Ai(c)})}):z.Ov.Bn()&&z.Yc()})};var r5;var ArY={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,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};var $IK={},bNQ=g.bH("ServiceWorkerLogsDatabase",{Pe:($IK.SWHealthLog={Jm:1},$IK),shared:!0,upgrade:function(z,p){p(1)&&g.oO(g.ej(z,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var kc={},E5Q=0;var g5;Nq.prototype.requestComplete=function(z,p){p&&(this.K=!0);z=this.removeParams(z);this.W.get(z)||this.W.set(z,p)}; Nq.prototype.isEndpointCFR=function(z){z=this.removeParams(z);return(z=this.W.get(z))?!1:z===!1&&this.K?!0:null}; Nq.prototype.removeParams=function(z){return z.split("?")[0]}; Nq.prototype.removeParams=Nq.prototype.removeParams;Nq.prototype.isEndpointCFR=Nq.prototype.isEndpointCFR;Nq.prototype.requestComplete=Nq.prototype.requestComplete;Nq.getInstance=fq;g.Y(zy,g.T1);g.V=zy.prototype;g.V.Bn=function(){return this.W.Bn()}; g.V.Le=function(z){this.W.W=z}; g.V.Rip=function(){var z=window.navigator.onLine;return z===void 0?!0:z}; g.V.aL=function(){this.K=!0}; g.V.listen=function(z,p){return this.W.listen(z,p)}; g.V.bb=function(z){z=r4(this.W,z);z.then(function(p){g.KN("use_cfr_monitor")&&fq().requestComplete("generate_204",p)}); return z}; zy.prototype.sendNetworkCheckRequest=zy.prototype.bb;zy.prototype.listen=zy.prototype.listen;zy.prototype.enableErrorFlushing=zy.prototype.aL;zy.prototype.getWindowStatus=zy.prototype.Rip;zy.prototype.networkStatusHint=zy.prototype.Le;zy.prototype.isNetworkAvailable=zy.prototype.Bn;zy.getInstance=M9Y;g.Y(g.pU,g.T1);g.pU.prototype.Bn=function(){var z=g.n_("yt.networkStatusManager.instance.isNetworkAvailable");return z?z.bind(this.K)():!0}; g.pU.prototype.Le=function(z){var p=g.n_("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);p&&p(z)}; g.pU.prototype.bb=function(z){var p=this,c;return g.L(function(B){c=g.n_("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(p.K);return g.KN("skip_network_check_if_cfr")&&fq().isEndpointCFR("generate_204")?B.return(new Promise(function(H){var T;p.Le(((T=window.navigator)==null?void 0:T.onLine)||!0);H(p.Bn())})):c?B.return(c(z)):B.return(!0)})};var cd;g.Y(Bd,nq);Bd.prototype.writeThenSend=function(z,p){p||(p={});p=iI(z,p);g.cJ()||(this.W=!1);nq.prototype.writeThenSend.call(this,z,p)}; Bd.prototype.sendThenWrite=function(z,p,c){p||(p={});p=iI(z,p);g.cJ()||(this.W=!1);nq.prototype.sendThenWrite.call(this,z,p,c)}; Bd.prototype.sendAndWrite=function(z,p){p||(p={});p=iI(z,p);g.cJ()||(this.W=!1);nq.prototype.sendAndWrite.call(this,z,p)}; Bd.prototype.awaitInitialization=function(){return this.D.promise};var A6W=g.jQ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.oE("ytNetworklessLoggingInitializationOptions",A6W);g.Ty.prototype.isReady=function(){!this.config_&&Y6B()&&(this.config_=g.Yc());return!!this.config_};var K0z,Du,Xg;K0z=g.jQ.ytPubsubPubsubInstance||new g.W4;Du=g.jQ.ytPubsubPubsubSubscribedKeys||{};Xg=g.jQ.ytPubsubPubsubTopicToKeys||{};g.tp=g.jQ.ytPubsubPubsubIsSynchronous||{};g.W4.prototype.subscribe=g.W4.prototype.subscribe;g.W4.prototype.unsubscribeByKey=g.W4.prototype.zk;g.W4.prototype.publish=g.W4.prototype.publish;g.W4.prototype.clear=g.W4.prototype.clear;g.oE("ytPubsubPubsubInstance",K0z);g.oE("ytPubsubPubsubTopicToKeys",Xg);g.oE("ytPubsubPubsubIsSynchronous",g.tp); g.oE("ytPubsubPubsubSubscribedKeys",Du);var KIV={};g.Y(Sp,g.e);Sp.prototype.append=function(z){if(!this.K)throw Error("This does not support the append operation");z=z.XQ();this.XQ().appendChild(z)}; g.Y($g,Sp);$g.prototype.XQ=function(){return this.W};g.Y(KU,g.e);KU.prototype.onTouchStart=function(z){this.G=!0;this.K=z.touches.length;this.W.isActive()&&(this.W.stop(),this.L=!0);z=z.touches;this.V=ZNQ(this,z)||z.length!=1;var p=z.item(0);this.V||!p?this.U=this.S=Infinity:(this.S=p.clientX,this.U=p.clientY);for(p=this.D.length=0;p=0)}if(p||z&&Math.pow(z.clientX-this.S,2)+Math.pow(z.clientY-this.U,2)>25)this.X=!0}; KU.prototype.onTouchEnd=function(z){var p=z.changedTouches;p&&this.G&&this.K==1&&!this.X&&!this.L&&!this.V&&ZNQ(this,p)&&(this.MZ=z,this.W.start());this.K=z.touches.length;this.K===0&&(this.X=this.G=!1,this.D.length=0);this.L=!1};var uI=Date.now().toString();var Wd={};var IU=Symbol("injectionDeps");CU.prototype.toString=function(){return"InjectionToken("+this.name+")"}; WIN.prototype.resolve=function(z){return z instanceof ep?jp(this,z.key,[],!0):jp(this,z,[])};var Fg;var nU=window;var sj=g.KN("web_enable_lifecycle_monitoring")&&Q0()!==0,jfx=g.KN("web_enable_lifecycle_monitoring");lzY.prototype.cancel=function(){for(var z=g.m(this.W),p=z.next();!p.done;p=z.next())p=p.value,p.jobId===void 0||p.Qh||this.scheduler.YE(p.jobId),p.Qh=!0;this.K.resolve()};g.V=kg.prototype;g.V.install=function(z){this.plugins.push(z);return this}; g.V.uninstall=function(){var z=this;g.L_.apply(0,arguments).forEach(function(p){p=z.plugins.indexOf(p);p>-1&&z.plugins.splice(p,1)})}; g.V.transition=function(z,p){var c=this;sj&&COW(this.state);var B=this.transitions.find(function(T){return Array.isArray(T.from)?T.from.find(function(b){return b===c.state&&T.nQ===z}):T.from===c.state&&T.nQ===z}); if(B){this.K&&(v5v(this.K),this.K=void 0);FIV(this,z,p);this.state=z;sj&&rf(this.state);B=B.action.bind(this);var H=this.plugins.filter(function(T){return T[z]}).map(function(T){return T[z]}); B(IzY(this,H),p)}else throw Error("no transition specified from "+this.state+" to "+z);}; g.V.ezH=function(z){var p=g.L_.apply(1,arguments);g.bR();for(var c=g.m(z),B=c.next(),H={};!B.done;H={IW:void 0},B=c.next())H.IW=B.value,toD(function(T){return function(){Gy(T.IW.name);fU(function(){return T.IW.callback.apply(T.IW,g.A(p))}); NA(T.IW.name)}}(H))}; g.V.Mma=function(z){var p=g.L_.apply(1,arguments),c,B,H,T;return g.L(function(b){b.W==1&&(g.bR(),c=g.m(z),B=c.next(),H={});if(b.W!=3){if(B.done)return b.hD(0);H.Cj=B.value;H.pu=void 0;T=function(D){return function(){Gy(D.Cj.name);var t=fU(function(){return D.Cj.callback.apply(D.Cj,g.A(p))}); Jh(t)?D.pu=g.KN("web_lifecycle_error_handling_killswitch")?t.then(function(){NA(D.Cj.name)}):t.then(function(){NA(D.Cj.name)},function(X){eWx(X); NA(D.Cj.name)}):NA(D.Cj.name)}}(H); toD(T);return H.pu?g.a(b,H.pu,3):b.hD(3)}H={Cj:void 0,pu:void 0};B=c.next();return b.hD(2)})}; g.V.Ol=function(z){var p=g.L_.apply(1,arguments),c=this,B=z.map(function(H){return{W8:function(){Gy(H.name);fU(function(){return H.callback.apply(H,g.A(p))}); NA(H.name)}, priority:gf(c,H)}}); B.length&&(this.K=new lzY(B))}; g.DV.Object.defineProperties(kg.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ph;g.Y(zt,kg);zt.prototype.L=function(z,p){var c=this;this.W=g.iR(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); z(p==null?void 0:p.event)}; zt.prototype.V=function(z,p){this.W&&(g.sr.YE(this.W),this.W=null);z(p==null?void 0:p.event)};var $P=[];g.oE("yt.logging.transport.getScrapedGelPayloads",function(){return $P});cu.prototype.storePayload=function(z,p){z=Bu(z);this.store[z]?this.store[z].push(p):(this.K={},this.store[z]=[p]);this.W++;g.KN("more_accurate_gel_parser")&&(p=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(p));return z}; cu.prototype.smartExtractMatchingEntries=function(z){if(!z.keys.length)return[];for(var p=i$(this,z.keys.splice(0,1)[0]),c=[],B=0;B=0){B=!1;break a}}B=!0}B&&(p=UF(p))&&this.wf(p)}}; g.V.yW=function(z){return z}; g.V.onTouchStart=function(z){this.tD.onTouchStart(z)}; g.V.onTouchMove=function(z){this.tD.onTouchMove(z)}; g.V.onTouchEnd=function(z){if(this.tD)this.tD.onTouchEnd(z)}; g.V.wf=function(z){this.layoutId?this.Sp.executeCommand(z,this.layoutId):g.Fr(new g.z6("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.V.createServerVe=function(z,p){this.api.createServerVe(z,this);this.api.setTrackingParams(z,p)}; g.V.logVisibility=function(z,p){this.api.hasVe(z)&&this.api.logVisibility(z,p,this.interactionLoggingClientData)}; g.V.m0=function(){this.clear(null);this.vy(this.sH);for(var z=g.m(this.T$),p=z.next();!p.done;p=z.next())this.vy(p.value);g.P_.prototype.m0.call(this)};g.Y(j_,AQ); j_.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);this.W=p;if(p.text==null&&p.icon==null)g.oc(Error("ButtonRenderer did not have text or an icon set."));else{switch(p.style||null){case "STYLE_UNKNOWN":z="ytp-ad-button-link";break;default:z=null}z!=null&&g.Eo(this.element,z);p.text!=null&&(z=g.wJ(p.text),g.wz(z)||(this.element.setAttribute("aria-label",z),this.D=new g.P_({j:"span",B:"ytp-ad-button-text",F3:z}),g.l(this,this.D),this.D.Ia(this.element)));p.accessibilityData&&p.accessibilityData.accessibilityData&& p.accessibilityData.accessibilityData.label&&!g.wz(p.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",p.accessibilityData.accessibilityData.label);p.icon!=null&&(p=Ib(p.icon,this.X),p!=null&&(this.K=new g.P_({j:"span",B:"ytp-ad-button-icon",J:[p]}),g.l(this,this.K)),this.V?DN(this.element,this.K.element,0):this.K.Ia(this.element))}}; j_.prototype.clear=function(){this.hide()}; j_.prototype.onClick=function(z){AQ.prototype.onClick.call(this,z);z=g.m(yMS(this));for(var p=z.next();!p.done;p=z.next())p=p.value,this.layoutId?this.Sp.executeCommand(p,this.layoutId):g.Fr(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.Y(F9,g.e);F9.prototype.m0=function(){this.K&&g.aw(this.K);this.W.clear();ob=null;g.e.prototype.m0.call(this)}; F9.prototype.register=function(z,p){p&&this.W.set(z,p)}; var ob=null;g.Y(rJ,AQ); rJ.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);z=p.hoverText||null;p=p.button&&g.I(p.button,g.nl)||null;p==null?g.Fr(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new j_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,void 0,void 0,void 0,void 0,this.D),g.l(this,this.button),this.button.init(EL("button"),p,this.macros),z&&this.button.element.setAttribute("aria-label",g.wJ(z)),this.button.Ia(this.element),this.U&&!g.xf(this.button.element, "ytp-ad-clickable")&&g.Eo(this.button.element,"ytp-ad-clickable"),this.D&&(g.Eo(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.Y("clean_player_style_fix_on_web")&&g.Eo(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),z&&(this.K=new g.P_({j:"div",B:"ytp-ad-hover-text-container"}),this.V&&(p=new g.P_({j:"div",B:"ytp-ad-hover-text-callout"}),p.Ia(this.K.element),g.l(this,p)),g.l(this,this.K),this.K.Ia(this.element),p=nB(z),DN(this.K.element,p,0)), this.show())}; rJ.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();AQ.prototype.hide.call(this)}; rJ.prototype.show=function(){this.button&&this.button.show();AQ.prototype.show.call(this)};g.Y(sL,AQ); sL.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);c=(z=p.thumbnail)&&UL(z)||"";g.wz(c)?Math.random()<.01&&g.oc(Error("Found AdImage without valid image URL")):(this.W?g.mm(this.element,"backgroundImage","url("+c+")"):z5(this.element,{src:c}),z5(this.element,{alt:z&&z.accessibility&&z.accessibility.label||""}),p&&p.adRendererCommands&&p.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; sL.prototype.clear=function(){this.hide()};g.Y(kj,AQ);g.V=kj.prototype;g.V.hide=function(){AQ.prototype.hide.call(this);this.D&&this.D.focus()}; g.V.show=function(){this.D=document.activeElement;AQ.prototype.show.call(this);this.X.focus()}; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);this.K=p;p.dialogMessages||p.title!=null?p.confirmLabel==null?g.Fr(Error("ConfirmDialogRenderer.confirmLabel was not set.")):p.cancelLabel==null?g.Fr(Error("ConfirmDialogRenderer.cancelLabel was not set.")):vUV(this,p):g.Fr(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.V.clear=function(){g.CG(this.W);this.hide()}; g.V.Jw=function(){this.hide()}; g.V.L_=function(){var z=this.K.cancelEndpoint;z&&(this.layoutId?this.Sp.executeCommand(z,this.layoutId):g.Fr(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.V.CE=function(){var z=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;z&&(this.layoutId?this.Sp.executeCommand(z,this.layoutId):g.Fr(Error("Missing layoutId for confirm dialog.")));this.hide()};g.Y(gJ,AQ);g.V=gJ.prototype; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);this.D=p;if(p.defaultText==null&&p.defaultIcon==null)g.Fr(Error("ToggleButtonRenderer must have either text or icon set."));else if(p.defaultIcon==null&&p.toggledIcon!=null)g.Fr(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(p.style){switch(p.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":z="ytp-ad-toggle-button-default-style";break;default:z=null}z!=null&&g.Eo(this.X,z)}z={};p.defaultText? (c=g.wJ(p.defaultText),g.wz(c)||(z.buttonText=c,this.api.N().experiments.JD("a11y_h5_associate_survey_question")||this.W.setAttribute("aria-label",c),this.api.N().experiments.JD("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",c))):g.yM(this.Ra,!1);p.defaultTooltip&&(z.tooltipText=p.defaultTooltip,this.W.hasAttribute("aria-label")||this.K.setAttribute("aria-label",p.defaultTooltip));p.defaultIcon?(c=Ib(p.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),p.toggledIcon?(this.Dt= !0,c=Ib(p.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.yM(this.U,!0),g.yM(this.V,!1)),g.yM(this.W,!1)):g.yM(this.K,!1);g.y3(z)||this.update(z);p.isToggled&&(g.Eo(this.X,"ytp-ad-toggle-button-toggled"),this.toggleButton(p.isToggled));Gr(this);this.Z(this.element,"change",this.MI);this.show()}}; g.V.onClick=function(z){this.T$.length>0&&(this.toggleButton(!this.isToggled()),this.MI());AQ.prototype.onClick.call(this,z)}; g.V.MI=function(){g.Yf(this.X,"ytp-ad-toggle-button-toggled",this.isToggled());for(var z=g.m(IgV(this,this.isToggled())),p=z.next();!p.done;p=z.next())p=p.value,this.layoutId?this.Sp.executeCommand(p,this.layoutId):g.Fr(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Gr(this)}; g.V.clear=function(){this.hide()}; g.V.toggleButton=function(z){g.Yf(this.X,"ytp-ad-toggle-button-toggled",z);this.W.checked=z;Gr(this)}; g.V.isToggled=function(){return this.W.checked};g.Y(NK,WL);NK.prototype.V=function(z){if(Array.isArray(z)){z=g.m(z);for(var p=z.next();!p.done;p=z.next())p=p.value,p instanceof jOi&&this.X(p)}};g.Y(fB,AQ);g.V=fB.prototype;g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);p.reasons?p.confirmLabel==null?g.Fr(Error("AdFeedbackRenderer.confirmLabel was not set.")):(p.cancelLabel==null&&g.oc(Error("AdFeedbackRenderer.cancelLabel was not set.")),p.title==null&&g.oc(Error("AdFeedbackRenderer.title was not set.")),QOf(this,p)):g.Fr(Error("AdFeedbackRenderer.reasons were not set."))}; g.V.clear=function(){ZA(this.V);ZA(this.U);this.X.length=0;this.hide()}; g.V.hide=function(){this.W&&this.W.hide();this.K&&this.K.hide();AQ.prototype.hide.call(this);this.D&&this.D.focus()}; g.V.show=function(){this.W&&this.W.show();this.K&&this.K.show();this.D=document.activeElement;AQ.prototype.show.call(this);this.V.focus()}; g.V.dN=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.V.ke8=function(){this.hide()}; z3.prototype.XQ=function(){return this.W.element}; z3.prototype.getCommand=function(){return this.K}; z3.prototype.isChecked=function(){return this.D.checked};g.Y(pJ,kj);pJ.prototype.Jw=function(z){kj.prototype.Jw.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; pJ.prototype.L_=function(z){kj.prototype.L_.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; pJ.prototype.CE=function(z){kj.prototype.CE.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.Y(c7,AQ);g.V=c7.prototype; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);this.V=p;if(p.dialogMessage==null&&p.title==null)g.Fr(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{p.confirmLabel==null&&g.oc(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(z=p.closeOverlayRenderer&&g.I(p.closeOverlayRenderer,g.nl)||null)this.W=new j_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.l(this,this.W),this.W.init(EL("button"),z,this.macros),this.W.Ia(this.element);p.title&&(z=g.wJ(p.title),this.updateValue("title",z));if(p.adReasons)for(z=p.adReasons,c=0;c=this.fH?(this.Dt.hide(),this.OH=!0,this.publish("i")):this.D&&this.D.isTemplated()&&(z=Math.max(0,Math.ceil((this.fH-z)/1E3)),z!=this.Zt&&(iT(this.D,{TIME_REMAINING:String(z)}),this.Zt=z)))}};g.Y(xQ,T3);g.V=xQ.prototype; g.V.init=function(z,p,c){T3.prototype.init.call(this,z,p,c);if(p.image&&p.image.thumbnail)if(p.headline)if(p.description)if((z=p.actionButton&&g.I(p.actionButton,g.nl))&&z.navigationEndpoint){var B=this.api.getVideoData(2);if(B!=null)if(p.image&&p.image.thumbnail){var H=p.image.thumbnail.thumbnails;H!=null&&H.length>0&&g.wz(g.Hj(H[0].url))&&(H[0].url=B.profilePicture)}else g.oc(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(EL("ad-image"),p.image,c);this.V.init(EL("ad-text"), p.headline,c);this.X.init(EL("ad-text"),p.description,c);this.K.init(EL("button"),z,c);c=fo(this.K.element);NV(this.K.element,c+" This link opens in new tab");this.Dt=z.navigationEndpoint;this.api.B5()||this.show();this.api.N().Y("enable_larger_flyout_cta_on_desktop")&&(this.jp("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.jp("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.jp("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.jp("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.jp("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.jp("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.jp("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.DX.bind(this));this.Ra=p.startMs||0;bT(this)}else g.Fr(Error("FlyoutCtaRenderer has no valid action button."));else g.Fr(Error("FlyoutCtaRenderer has no description AdText."));else g.Fr(Error("FlyoutCtaRenderer has no headline AdText."));else g.oc(Error("FlyoutCtaRenderer has no image."))}; g.V.onClick=function(z){T3.prototype.onClick.call(this,z);this.api.pauseVideo();!g.X4(this.K.element,z.target)&&this.Dt&&(this.layoutId?this.Sp.executeCommand(this.Dt,this.layoutId):g.Fr(Error("Missing layoutId for flyout cta.")))}; g.V.Tn=function(){if(this.W){var z=this.W.getProgressState();(z&&z.current||this.fH)&&1E3*z.current>=this.Ra&&(VQ(this),g.Jn(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.V.To=function(){this.clear()}; g.V.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.DX.bind(this))}; g.V.show=function(){this.K&&this.K.show();T3.prototype.show.call(this)}; g.V.hide=function(){this.K&&this.K.hide();T3.prototype.hide.call(this)}; g.V.DX=function(z){z=="hidden"?this.show():this.hide()};g.Y(Eu,AQ);g.V=Eu.prototype; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);this.W=p;if(this.W.rectangle)for(z=this.W.likeButton&&g.I(this.W.likeButton,M4),p=this.W.dislikeButton&&g.I(this.W.dislikeButton,M4),this.D.init(EL("toggle-button"),z,c),this.K.init(EL("toggle-button"),p,c),this.Z(this.element,"change",this.z2),this.X.show(100),this.show(),c=g.m(this.W&&this.W.impressionCommands||[]),z=c.next();!z.done;z=c.next())z=z.value,this.layoutId?this.Sp.executeCommand(z,this.layoutId):g.Fr(Error("Missing layoutId for instream user sentiment."))}; g.V.clear=function(){this.hide()}; g.V.hide=function(){this.D.hide();this.K.hide();AQ.prototype.hide.call(this)}; g.V.show=function(){this.D.show();this.K.show();AQ.prototype.show.call(this)}; g.V.z2=function(){LmN(this.element,"ytp-ad-instream-user-sentiment-selected");this.W.postMessageAction&&this.api.AD("onYtShowToast",this.W.postMessageAction);this.X.hide()}; g.V.onClick=function(z){this.T$.length>0&&this.z2();AQ.prototype.onClick.call(this,z)};g.Y(q6,g.e);g.V=q6.prototype;g.V.m0=function(){this.reset();g.e.prototype.m0.call(this)}; g.V.reset=function(){g.CG(this.X);this.V=!1;this.W&&this.W.stop();this.L.stop();this.D&&(this.D=!1,this.G.play())}; g.V.start=function(){this.reset();this.X.Z(this.K,"mouseover",this.Xx,this);this.X.Z(this.K,"mouseout",this.Fx,this);this.MZ&&(this.X.Z(this.K,"focusin",this.Xx,this),this.X.Z(this.K,"focusout",this.Fx,this));this.W?this.W.start():(this.V=this.D=!0,g.mm(this.K,{opacity:this.U}))}; g.V.Xx=function(){this.D&&(this.D=!1,this.G.play());this.L.stop();this.W&&this.W.stop()}; g.V.Fx=function(){this.V?this.L.start():this.W&&this.W.start()}; g.V.uM=function(){this.D||(this.D=!0,this.S.play(),this.V=!0)};var B5S=[new Jb("b.f_",!1,0),new Jb("j.s_",!1,2),new Jb("r.s_",!1,4),new Jb("e.h_",!1,6),new Jb("i.s_",!0,8),new Jb("s.t_",!1,10),new Jb("p.h_",!1,12),new Jb("s.i_",!1,14),new Jb("f.i_",!1,16),new Jb("a.b_",!1,18),new Jb("a.o_",!1),new Jb("g.o_",!1,22),new Jb("p.i_",!1,24),new Jb("p.m_",!1),new Jb("n.k_",!0,20),new Jb("i.f_",!1),new Jb("a.s_",!0),new Jb("m.c_",!1),new Jb("n.h_",!1,26),new Jb("o.p_",!1)].reduce(function(z,p){z[p.K]=p;return z},{});g.Y(RG,T3);g.V=RG.prototype; g.V.init=function(z,p,c){T3.prototype.init.call(this,z,p,c);this.Dt=p;(this.Ra=iq_(this))&&g.oc(Error("hasAdControlInClickCommands_ is true."));if(!p||g.y3(p))g.Fr(Error("SkipButtonRenderer was not specified or empty."));else if(!p.message||g.y3(p.message))g.Fr(Error("SkipButtonRenderer.message was not specified or empty."));else{z=this.V?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};p=Ib(z);p==null?g.Fr(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+z.iconType+".")): (this.X=new g.P_({j:"button",LH:[this.V?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],J:[{j:"span",B:this.V?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",J:[p]}]}),g.l(this,this.X),this.X.Ia(this.D.element),this.K=new H7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-skip-button-text"),this.V&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"),this.K.init(EL("ad-text"),this.Dt.message,c),g.l(this,this.K),DN(this.X.element,this.K.element, 0));var B=B===void 0?null:B;c=this.api.N();!(this.T$.length>0)&&c.K&&(Lm?0:"ontouchstart"in document.documentElement&&(S9Y()||R2()))&&(this.vy(this.sH),B&&this.vy(B),this.T$=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.V.clear=function(){this.fH.reset();this.hide()}; g.V.hide=function(){this.D.hide();this.K&&this.K.hide();VQ(this);T3.prototype.hide.call(this)}; g.V.onClick=function(z){if(this.X!=null){if(z){var p=z||window.event;p.returnValue=!1;p.preventDefault&&p.preventDefault()}var c;if(pUW(z,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0)this.api.AD("onAbnormalityDetected");else if(T3.prototype.onClick.call(this,z),this.publish("j"),this.api.AD("onAdSkip"),this.OH||!this.Ra)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.V.yW=function(z){if(!this.OH)return this.Ra&&P7("SkipButton click commands not pruned while ALC exist"),z;var p,c=(p=g.I(z,g.ST))==null?void 0:p.commands;if(!c)return z;z=[];for(p=0;p=this.V&&T5W(this,!0)};g.Y(KJ,j_);KJ.prototype.init=function(z,p,c){j_.prototype.init.call(this,z,p,c);z=!1;p.text!=null&&(z=g.wJ(p.text),z=!g.wz(z));z?p.navigationEndpoint==null?g.oc(Error("No visit advertiser clickthrough provided in renderer,")):p.style!=="STYLE_UNKNOWN"?g.oc(Error("Button style was not a link-style type in renderer,")):this.show():g.oc(Error("No visit advertiser text was present in the renderer."))};g.Y(uT,AQ); uT.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);z=p.text;g.wz(OL(z))?g.oc(Error("SimpleAdBadgeRenderer has invalid or empty text")):(z&&z.text&&(p=z.text,this.D&&!this.K&&(p=this.api.N(),p=z.text+" "+(p&&p.K?"\u2022":"\u00b7")),p={text:p,isTemplated:z.isTemplated},z.style&&(p.style=z.style),z.targetId&&(p.targetId=z.targetId),z=new H7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),z.init(EL("simple-ad-badge"),p,c),z.Ia(this.element),g.l(this,z)),this.show())}; uT.prototype.clear=function(){this.hide()};g.Y(aG,qK);g.Y(Za,g.JQ);g.V=Za.prototype;g.V.pM=function(){return this.durationMs}; g.V.stop=function(){this.W&&this.Dz.vy(this.W)}; g.V.xr=function(z){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:z.current};this.publish("h")}; g.V.getProgressState=function(){return this.K}; g.V.TD=function(z){g.wn(z,2)&&this.publish("g")};g.Y(LJ,g.JQ);g.V=LJ.prototype;g.V.pM=function(){return this.durationMs}; g.V.start=function(){this.W||(this.W=!0,this.y8.start())}; g.V.stop=function(){this.W&&(this.W=!1,this.y8.stop())}; g.V.xr=function(){this.VT+=100;var z=!1;this.VT>this.durationMs&&(this.VT=this.durationMs,this.y8.stop(),z=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.VT/1E3};this.publish("h");z&&this.publish("g")}; g.V.getProgressState=function(){return this.K};g.Y(yQ,T3);g.V=yQ.prototype;g.V.init=function(z,p,c){T3.prototype.init.call(this,z,p,c);var B;if(p==null?0:(B=p.templatedCountdown)==null?0:B.templatedAdText){z=p.templatedCountdown.templatedAdText;if(!z.isTemplated){g.oc(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new H7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);this.K.init(EL("ad-text"),z,{});this.K.Ia(this.element);g.l(this,this.K)}this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){VQ(this);T3.prototype.hide.call(this)}; g.V.To=function(){this.hide()}; g.V.Tn=function(){if(this.W!=null){var z=this.W.getProgressState();if(z!=null&&z.current!=null&&this.K){var p=this.W instanceof Za?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:z.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.W instanceof LJ?z.seekableEnd:this.api.getDuration(2,!1);z=z.current;var c,B,H=((c=this.api.getVideoData())==null?0:(B=c.yL)==null?0:B.call(c))?Math.max(p-z,0):p-z;iT(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.dn(H)), TIME_REMAINING:String(Math.ceil(H))})}}}; g.V.show=function(){bT(this);T3.prototype.show.call(this)};g.Y(CJ,H7);CJ.prototype.onClick=function(z){H7.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType)};g.Y(lT,AQ);lT.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(z=p.content){g.xr(this.element,z);var c,B;p=((c=p.interaction)==null?void 0:(B=c.accessibility)==null?void 0:B.label)||z;this.element.setAttribute("aria-label",p)}else g.Fr(Error("AdSimpleAttributedString does not have text content"))}; lT.prototype.clear=function(){this.hide()}; lT.prototype.onClick=function(z){AQ.prototype.onClick.call(this,z)};g.Y(v7,AQ); v7.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});(z=p.label)&&z.content&&!g.wz(z.content)?(this.adBadgeText.init(EL("ad-simple-attributed-string"),new eT(z)),(p=p.adPodIndex)&&p.content&&!g.wz(p.content)&&(this.W=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),this.W.Ia(this.element),g.l(this,this.W),this.W.element.classList.add("ytp-ad-badge__pod-index"),this.W.init(EL("ad-simple-attributed-string"),new eT(p))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Fr(Error("No label is returned in AdBadgeViewModel."))}; v7.prototype.show=function(){this.adBadgeText.show();var z;(z=this.W)==null||z.show();AQ.prototype.show.call(this)}; v7.prototype.hide=function(){this.adBadgeText.hide();var z;(z=this.W)==null||z.hide();AQ.prototype.hide.call(this)};g.Y(IG,AQ);IG.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});(z=p.adPodIndex)&&z.content&&!g.wz(z.content)&&(this.W=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),this.W.Ia(this.element),g.l(this,this.W),this.W.init(EL("ad-simple-attributed-string"),new eT(z)),p.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()}; IG.prototype.show=function(){var z;(z=this.W)==null||z.show();AQ.prototype.show.call(this)}; IG.prototype.hide=function(){var z;(z=this.W)==null||z.hide();AQ.prototype.hide.call(this)};g.Y(jT,AQ); jT.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(p!=null&&p.text){var c;if(((c=p.text)==null?0:c.content)&&!g.wz(p.text.content)){this.W=new g.P_({j:"div",B:"ytp-ad-disclosure-banner__text",F3:p.text.content});g.l(this,this.W);this.W.Ia(this.element);var B,H;z=((B=p.interaction)==null?void 0:(H=B.accessibility)==null?void 0:H.label)||p.text.content;this.element.setAttribute("aria-label",z);var T;if((T=p.interaction)==null?0:T.onTap)this.K=new g.P_({j:"div",B:"ytp-ad-disclosure-banner__chevron",J:[g.uZ()]}), g.l(this,this.K),this.K.Ia(this.element);this.show()}}else g.Fr(Error("No banner text found in AdDisclosureBanner."))}; jT.prototype.clear=function(){this.hide()};FA.prototype.getLength=function(){return this.W-this.K};g.Y(nJ,g.P_);nJ.prototype.xr=function(){var z=this.K.getProgressState(),p=z.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.N().Y("show_preskip_progress_bar_for_skippable_ads")&&(p=this.D?this.D/1E3:z.seekableEnd);z=oG(new FA(z.seekableStart,p),z.current,0);this.progressBar.style.width=z*100+"%"}; nJ.prototype.onStateChange=function(){g.FB(this.api.N())||(this.api.getPresentingPlayerType()===2?this.W===-1&&(this.show(),this.W=this.K.subscribe("h",this.xr,this),this.xr()):this.W!==-1&&(this.hide(),this.K.zk(this.W),this.W=-1))};g.Y(QQ,AQ); QQ.prototype.init=function(z,p,c,B){AQ.prototype.init.call(this,z,p,c);if(p.skipOrPreviewRenderer){if(z=g.I(p.skipOrPreviewRenderer,xb))c=new $Q(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,this.U),c.Ia(this.rA),c.init(EL("skip-button"),z,this.macros),g.l(this,c);if(z=g.I(p.skipOrPreviewRenderer,xb))var H=z.skipOffsetMilliseconds}p.brandInteractionRenderer&&(z=p.brandInteractionRenderer.brandInteractionRenderer,c=new Eu(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp), c.Ia(this.Ra),c.init(EL("instream-user-sentiment"),z,this.macros),g.l(this,c));if(z=g.I(p,DC3))if(z=g.I(z,DC3))c=new xQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,!!p.showWithoutLinkedMediaLayout),g.l(this,c),c.Ia(this.V),c.init(EL("flyout-cta"),z,this.macros);B=B&&B.videoAdDurationSeconds;p.adBadgeRenderer&&(c=p.adBadgeRenderer,z=g.I(c,I_),z!=null?(c=new v7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!1),g.l(this,c),c.Ia(this.W),c.init(EL("ad-badge"), z,this.macros),this.D=c.element):(z=c.simpleAdBadgeRenderer,z==null&&(z={text:{text:"Ad",isTemplated:!1}}),c=new uT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0),g.l(this,c),c.Ia(this.W),c.init(EL("simple-ad-badge"),z,this.macros)));p.adPodIndex&&(z=g.I(p.adPodIndex,hUd),z!=null&&(c=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,c),c.Ia(this.W),c.init(EL("ad-pod-index"),z)));p.adDurationRemaining&&!p.showWithoutLinkedMediaLayout&&(z=p.adDurationRemaining.adDurationRemainingRenderer, z==null&&(z={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),B=new yQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,B,!1),g.l(this,B),B.Ia(this.W),B.init(EL("ad-duration-remaining"),z,this.macros));p.adInfoRenderer&&(B=g.I(p.adInfoRenderer,FR))&&(z=new B7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,!1),g.l(this,z),this.D!==null?this.W.insertBefore(z.element,this.D.nextSibling):z.Ia(this.W), z.init(EL("ad-info-hover-text-button"),B,this.macros));p.visitAdvertiserRenderer&&(z=g.I(p.visitAdvertiserRenderer,g.nl))&&(c=DqE(this)&&this.X?this.X:this.W)&&(B=new KJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,B),B.Ia(c),B.init(EL("visit-advertiser"),z,this.macros),g4(B.element),z=fo(B.element),NV(B.element,z+" This link opens in new tab"));!(B=this.api.N())||g.I6(B)||B.controlsType!="3"&&!B.disableOrganicUi||(H=new nJ(this.api,this.K,H,!1),H.Ia(this.fH),g.l(this, H));p.adDisclosureBannerRenderer&&(p=g.I(p.adDisclosureBannerRenderer,mCd))&&(H=new jT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),H.Ia(this.Dt),H.init(EL("ad-disclosure-banner"),p),g.l(this,H));this.api.N().Y("enable_updated_html5_player_focus_style")&&g.Eo(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; QQ.prototype.clear=function(){this.hide()};gn.prototype.set=function(z,p,c){c=c!==void 0?Date.now()+c:void 0;this.W.set(z,p,c)}; gn.prototype.get=function(z){return this.W.get(z)}; gn.prototype.remove=function(z){this.W.remove(z)};var zl=null,p0=null,cH=null,JcY=null;g.oE("yt.www.ads.eventcache.getLastCompanionData",function(){return zl}); g.oE("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.oE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return p0}); g.oE("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return cH}); g.oE("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return JcY});var Y3E=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);BH.prototype.handleResponse=function(z,p){if(!p)throw Error("request needs to be passed into ConsistencyService");var c,B;p=((c=p.C9.context)==null?void 0:(B=c.request)==null?void 0:B.consistencyTokenJars)||[];var H;(z=(H=z.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(p,z)}; BH.prototype.replace=function(z,p){z=g.m(z);for(var c=z.next();!c.done;c=z.next())delete this.W[c.value.encryptedTokenJarContents];hSV(this,p)};var yD9=window.location.hostname.split(".").slice(-2).join("."),Rq;ie.getInstance=function(){Rq=g.n_("yt.clientLocationService.instance");Rq||(Rq=new ie,g.oE("yt.clientLocationService.instance",Rq));return Rq}; g.V=ie.prototype; g.V.setLocationOnInnerTubeContext=function(z){z.client||(z.client={});if(this.W)z.client.locationInfo||(z.client.locationInfo={}),z.client.locationInfo.latitudeE7=Math.floor(this.W.coords.latitude*1E7),z.client.locationInfo.longitudeE7=Math.floor(this.W.coords.longitude*1E7),z.client.locationInfo.horizontalAccuracyMeters=Math.round(this.W.coords.accuracy),z.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.D||this.locationPlayabilityToken)z.client.locationPlayabilityToken=this.D|| this.locationPlayabilityToken}; g.V.handleResponse=function(z){var p;z=(p=z.responseContext)==null?void 0:p.locationPlayabilityToken;z!==void 0&&(this.locationPlayabilityToken=z,this.W=void 0,g.pN("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=HH(this))&&this.localStorage.set("yt-location-playability-token",z,15552E3):g.of("YT_CL",JSON.stringify({loctok:z}),15552E3,yD9,!0))}; g.V.clearLocationPlayabilityToken=function(z){z==="TVHTML5"?(this.localStorage=HH(this))&&this.localStorage.remove("yt-location-playability-token"):g.QS("YT_CL");this.D=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.V.getCurrentPositionFromGeolocation=function(){var z=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var p=!1,c=1E4;g.pN("INNERTUBE_CLIENT_NAME")==="MWEB"&&(p=!0,c=15E3);return new Promise(function(B,H){navigator.geolocation.getCurrentPosition(function(T){z.W=T;B(T)},function(T){H(T)},{enableHighAccuracy:p, maximumAge:0,timeout:c})})}; g.V.createUnpluggedLocationInfo=function(z){var p={};z=z.coords;if(z==null?0:z.latitude)p.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)p.longitudeE7=Math.floor(z.longitude*1E7);if(z==null?0:z.accuracy)p.locationRadiusMeters=Math.round(z.accuracy);return p}; g.V.createLocationInfo=function(z){var p={};z=z.coords;if(z==null?0:z.latitude)p.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)p.longitudeE7=Math.floor(z.longitude*1E7);return p};g.V=RSE.prototype;g.V.contains=function(z){return Object.prototype.hasOwnProperty.call(this.W,z)}; g.V.get=function(z){if(this.contains(z))return this.W[z]}; g.V.set=function(z,p){this.W[z]=p}; g.V.mx=function(){return Object.keys(this.W)}; g.V.remove=function(z){delete this.W[z]};be.prototype.getModuleId=function(z){return z.serviceId.getModuleId()}; be.prototype.get=function(z){a:{var p=this.mappings.get(z.toString());switch(p.type){case "mapping":z=p.value;break a;case "factory":p=p.value();this.mappings.set(z.toString(),{type:"mapping",value:p});z=p;break a;default:z=iN(p)}}return z}; be.prototype.registerService=function(z,p){this.mappings.set(z.toString(),{type:"mapping",value:p});return z}; new be;var S1={},S3V=(S1.WEB_UNPLUGGED="^unplugged/",S1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",S1.WEB_UNPLUGGED_OPS="^unplugged/",S1.WEB_UNPLUGGED_PUBLIC="^unplugged/",S1.WEB_CREATOR="^creator/",S1.WEB_KIDS="^kids/",S1.WEB_EXPERIMENTS="^experiments/",S1.WEB_MUSIC="^music/",S1.WEB_REMIX="^music/",S1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",S1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",S1);ts.prototype.L=function(z,p,c){p=p===void 0?{}:p;c=c===void 0?hc:c;var B={context:g.Tl(z.clickTrackingParams,!1,this.X)};var H=this.K(z);if(H){this.W(B,H,p);var T;p=g.D6(this.D());(H=(T=g.I(z.commandMetadata,g.Jt))==null?void 0:T.apiUrl)&&(p=H);T=ASf(rS(p));z=Object.assign({},{command:z},void 0);B={input:T,pm:U0(T),C9:B,config:z};B.config.JW?B.config.JW.identity=c:B.config.JW={identity:c};return B}g.Fr(new g.z6("Error: Failed to create Request from Command.",z))}; g.DV.Object.defineProperties(ts.prototype,{X:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.Y(XZ,ts);g.Y(xw,XZ);xw.prototype.L=function(){return{input:"/getDatasyncIdsEndpoint",pm:U0("/getDatasyncIdsEndpoint","GET"),C9:{}}}; xw.prototype.D=function(){return[]}; xw.prototype.K=function(){}; xw.prototype.W=function(){};var CNE={},iU_=(CNE.GET_DATASYNC_IDS=V_(xw),CNE);var $i={},exE=($i["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",$i["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",$i["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",$i["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",$i["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",$i["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",$i["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", $i["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",$i["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",$i["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",$i["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",$i["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",$i["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",$i["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",$i["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", $i["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",$i["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",$i["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",$i["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",$i["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",$i["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",$i["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", $i["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",$i.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",$i["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",$i["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",$i["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",$i["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",$i["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",$i["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", $i["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",$i["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",$i["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",$i["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",$i["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",$i["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",$i["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",$i["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",$i["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",$i["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",$i.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",$i["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",$i["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",$i["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",$i["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",$i["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",$i["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",$i["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",$i["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",$i["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",$i["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",$i["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",$i["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",$i["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",$i["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",$i["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",$i["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",$i["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",$i["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",$i["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",$i["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",$i["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", $i["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",$i["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",$i["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",$i["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",$i["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",$i["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",$i["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",$i["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",$i["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", $i["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",$i["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",$i["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",$i["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",$i["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",$i["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",$i["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",$i["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", $i),KA={},dq_=(KA.auto_search="LATENCY_ACTION_AUTO_SEARCH",KA.ad_to_ad="LATENCY_ACTION_AD_TO_AD",KA.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",KA.app_startup="LATENCY_ACTION_APP_STARTUP",KA.browse="LATENCY_ACTION_BROWSE",KA.cast_splash="LATENCY_ACTION_CAST_SPLASH",KA.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",KA.channels="LATENCY_ACTION_CHANNELS",KA.chips="LATENCY_ACTION_CHIPS",KA.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",KA.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", KA.editor="LATENCY_ACTION_EDITOR",KA.embed="LATENCY_ACTION_EMBED",KA.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",KA.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",KA.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",KA.explore="LATENCY_ACTION_EXPLORE",KA.favorites="LATENCY_ACTION_FAVORITES",KA.home="LATENCY_ACTION_HOME",KA.inboarding="LATENCY_ACTION_INBOARDING",KA.library="LATENCY_ACTION_LIBRARY",KA.live="LATENCY_ACTION_LIVE",KA.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",KA.management="LATENCY_ACTION_MANAGEMENT",KA.mini_app="LATENCY_ACTION_MINI_APP_PLAY",KA.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",KA.onboarding="LATENCY_ACTION_ONBOARDING",KA.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",KA.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",KA.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",KA.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",KA.prebuffer="LATENCY_ACTION_PREBUFFER", KA.prefetch="LATENCY_ACTION_PREFETCH",KA.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",KA.profile_switcher="LATENCY_ACTION_LOGIN",KA.projects="LATENCY_ACTION_PROJECTS",KA.reel_watch="LATENCY_ACTION_REEL_WATCH",KA.results="LATENCY_ACTION_RESULTS",KA.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",KA.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",KA.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",KA.review="LATENCY_ACTION_REVIEW",KA.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", KA.search_ui="LATENCY_ACTION_SEARCH_UI",KA.search_suggest="LATENCY_ACTION_SUGGEST",KA.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",KA.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",KA.seek="LATENCY_ACTION_PLAYER_SEEK",KA.settings="LATENCY_ACTION_SETTINGS",KA.store="LATENCY_ACTION_STORE",KA.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",KA.tenx="LATENCY_ACTION_TENX",KA.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",KA.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",KA.watch="LATENCY_ACTION_WATCH", KA.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",KA["watch,watch7"]="LATENCY_ACTION_WATCH",KA["watch,watch7_html5"]="LATENCY_ACTION_WATCH",KA["watch,watch7ad"]="LATENCY_ACTION_WATCH",KA["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",KA.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",KA.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",KA.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",KA.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",KA.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", KA.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",KA.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",KA.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",KA);Object.assign(dq_,exE);g.Y(dO,PU);var Uqi=new Ac("aft-recorded",dO);var lBz=g.jQ.ytLoggingGelSequenceIdObj_||{};g.oE("ytLoggingGelSequenceIdObj_",lBz);var C0=g.jQ.ytLoggingLatencyUsageStats_||{};g.oE("ytLoggingLatencyUsageStats_",C0);WH.prototype.tick=function(z,p,c,B){e0(this,"tick_"+z+"_"+p)||g.MG("latencyActionTicked",{tickName:z,clientActionNonce:p},{timestamp:c,cttAuthInfo:B})}; WH.prototype.info=function(z,p,c){var B=Object.keys(z).join("");e0(this,"info_"+B+"_"+p)||(z=Object.assign({},z),z.clientActionNonce=p,g.MG("latencyActionInfo",z,{cttAuthInfo:c}))}; WH.prototype.jspbInfo=function(z,p,c){for(var B="",H=0;H=H.length?(p.append(H),z-=H.length):z?(p.append(new Uint8Array(H.buffer,H.byteOffset,z)),c.append(new Uint8Array(H.buffer,H.byteOffset+z,H.length-z)),z=0):c.append(H);return{XD:p,vt:c}}; g.V.isFocused=function(z){return z>=this.fl&&z=64&&(this.V.set(z.subarray(0,64-this.K),this.K),p=64-this.K,this.K=0,rp_(this,this.V,0));for(;p+64<=c;p+=64)rp_(this,z,p);p=this.start&&(z=2&&c.ssdaiAdsConfig&&P7("Unexpected ad placement renderers length",z.slot,null,{length:B.length});var H;((H=c.adSlots)==null?0:H.some(function(T){var b,D;return((b=g.I(T,UT))==null?void 0:(D=b.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||B.some(function(T){var b,D,t,X; return!!((b=T.renderer)==null?0:(D=b.linearAdSequenceRenderer)==null?0:(t=D.linearAds)==null?0:t.length)||!((X=T.renderer)==null||!X.instreamVideoAdRenderer)})||JQV(z)})}; JT.prototype.Iq=function(){p_u(this.W)};MT.prototype.KW=function(){var z=this;zoQ(this.K,function(){var p=Ei(z.slot.clientMetadata,"metadata_type_ad_break_request_data");return p.cueProcessedMs?z.W.get().fetch({sL:p.getAdBreakUrl,kZ:new g.Xq(p.Kx,p.c6),cueProcessedMs:p.cueProcessedMs}):z.W.get().fetch({sL:p.getAdBreakUrl,kZ:new g.Xq(p.Kx,p.c6)})})}; MT.prototype.Iq=function(){p_u(this.K)};Y6.prototype.KW=function(){var z=this.slot.clientMetadata,p,c=(p=this.slot.fulfilledLayout)!=null?p:Ei(z,"metadata_type_fulfilled_layout");Wcu(this.callback,this.slot,c)}; Y6.prototype.Iq=function(){$8(this.callback,this.slot,new k("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")};hT.prototype.build=function(z,p){return p.fulfilledLayout||m$(p,{j5:["metadata_type_fulfilled_layout"]})?new Y6(z,p):this.D(z,p)};g.Y(P$,hT); P$.prototype.D=function(z,p){if(m$(p,{j5:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JT(z,p,this.W,this.K,this.ze,this.X3,this.u8,this.VI,this.tH);if(m$(p,{j5:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new MT(z,p,this.W,this.K,this.ze,this.X3);throw new k("Unsupported slot with type: "+p.slotType+" and client metadata: "+qL(p.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.Y(AT,hT);AT.prototype.D=function(z,p){throw new k("Unsupported slot with type: "+p.slotType+" and client metadata: "+qL(p.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.V=M_x.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){}; g.V.release=function(){}; g.V.startRendering=function(z){if(z.layoutId!==this.layout.layoutId)this.callback.zg(this.slot,z,new Xo("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 p=Ei(z.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.sW(this.slot,z),d2Y(this.D, this.slot,p)):P7("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,z)}}; g.V.e5=function(z,p){z.layoutId!==this.layout.layoutId?this.callback.zg(this.slot,z,new Xo("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.Rw(this.slot,z,p),mKN(this),hoY(this))};g.Y($6,g.JQ);g.V=$6.prototype;g.V.PM=function(){return this.K.slot}; g.V.gA=function(){return this.K.layout}; g.V.init=function(){this.D.get().addListener(this)}; g.V.release=function(){this.D.get().removeListener(this);this.dispose()}; g.V.hp=function(){}; g.V.jn=function(){}; g.V.Qt=function(){}; g.V.KP=function(){}; g.V.startRendering=function(z){var p=this;SD(this.K,z,function(){return void p.Qs()})}; g.V.Qs=function(){this.D.get().Qs(this.W)}; g.V.e5=function(z,p){var c=this;SD(this.K,z,function(){var B=c.D.get();GSx(B,c.W,3);c.W=[];c.callback.Rw(c.slot,z,p)})}; g.V.m0=function(){this.D.qZ()||this.D.get().removeListener(this);g.JQ.prototype.m0.call(this)}; g.DV.Object.defineProperties($6.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});yK.prototype.D_=function(z,p){p=p===void 0?!1:p;var c=(this.D.get(z)||[]).concat();if(p=p&&w_N(z)){var B=this.D.get(p);B&&c.push.apply(c,g.A(B))}lD(this,z,c);this.W.add(z);p&&this.W.add(p)}; yK.prototype.Ja=function(z,p){p=p===void 0?!1:p;if(!this.W.has(z)){var c=p&&w_N(z);c&&(p=!this.W.has(c));this.D_(z,p)}};g.Y($KB,qK);g.Y(oD,$6);g.V=oD.prototype;g.V.RI=function(z,p){ZI("ads-engagement-panel-layout",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),g.I(this.gA().renderingContent,xS),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(p,c,B,H,T){return new $KB(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};g.Y(u9Q,qK);g.Y(nV,$6);g.V=nV.prototype;g.V.RI=function(z,p){ZI("banner-image",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),g.I(this.gA().renderingContent,Do),this.callback,"metadata_type_banner_image_layout_view_model",function(p,c,B,H,T){return new u9Q(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};g.Y(QK,qK);g.Y(rl,$6);g.V=rl.prototype;g.V.RI=function(z,p){ZI("action-companion",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),g.I(this.gA().renderingContent,Td),this.callback,"metadata_type_action_companion_ad_renderer",function(p,c,B,H,T){return new QK(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){p.layoutId===this.layout.layoutId?this.Pq.Ja("impression"):this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};g.Y(LUu,qK);g.Y(U5,$6);g.V=U5.prototype;g.V.RI=function(z,p){ZI("image-companion",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),g.I(this.gA().renderingContent,bV),this.callback,"metadata_type_image_companion_ad_renderer",function(p,c,B,H,T){return new LUu(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){p.layoutId===this.layout.layoutId?this.Pq.Ja("impression"):this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};g.Y(WUD,qK);g.Y(s5,$6);g.V=s5.prototype;g.V.RI=function(z,p){ZI("shopping-companion",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(p,c,B,H,T){return new WUD(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){p.layoutId===this.layout.layoutId?this.Pq.Ja("impression"):this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};g.Y(gl,$6);g.V=gl.prototype;g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(p,c,B,H,T){return new QK(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(){}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)}; g.V.RI=function(){};g.V=Iyx.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){this.VI.get().addListener(this);this.VI.get().uC.push(this);var z=Ei(this.layout.clientMetadata,"metadata_type_video_length_seconds"),p=Ei(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");LV(this.layout.Ms)&&Gp(this.Dw.get(),this.layout.layoutId,{w5:p,G6:z,listener:this})}; g.V.release=function(){this.VI.get().removeListener(this);QCv(this.VI.get(),this);LV(this.layout.Ms)&&Nz(this.Dw.get(),this.layout.layoutId)}; g.V.startRendering=function(z){this.callback.sW(this.slot,z)}; g.V.e5=function(z,p){MwY(this.X3.get())&&!this.W&&(this.Pq.Ja("abandon"),this.W=!0);this.callback.Rw(this.slot,z,p)}; g.V.yT=function(z){switch(z.id){case "part2viewed":this.Pq.Ja("start");this.Pq.Ja("impression");break;case "videoplaytime25":this.Pq.Ja("first_quartile");break;case "videoplaytime50":this.Pq.Ja("midpoint");break;case "videoplaytime75":this.Pq.Ja("third_quartile");break;case "videoplaytime100":MwY(this.X3.get())?this.W||(this.Pq.Ja("complete"),this.W=!0):this.Pq.Ja("complete");Fq(this.Pq)&&ID(this.Pq,Infinity,!0);Yhv(this.X3.get())&&k6(this.K,Infinity,!0);break;case "engagedview":Fq(this.Pq)||this.Pq.Ja("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:P7("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.V.onVolumeChange=function(){}; g.V.Fv=function(){}; g.V.gk=function(){}; g.V.Hu=function(){}; g.V.onFullscreenToggled=function(){}; g.V.Pf=function(){}; g.V.CD=function(){}; g.V.Aw=function(z){Yhv(this.X3.get())&&k6(this.K,z*1E3,!1);Fq(this.Pq)&&ID(this.Pq,z*1E3,!1)}; g.V.UB=function(){}; g.V.Op=function(){this.Pq.Ja("active_view_measurable")}; g.V.gx=function(){this.Pq.Ja("active_view_viewable")}; g.V.BT=function(){this.Pq.Ja("active_view_fully_viewable_audible_half_duration")}; g.V.Gy=function(){this.Pq.Ja("audio_measurable")}; g.V.xd=function(){this.Pq.Ja("audio_audible")};g.Y(GM,$6);g.V=GM.prototype;g.V.init=function(){$6.prototype.init.call(this);var z=Ei(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p={adsClientData:this.layout.Gr};this.W.push(new aG(z,this.layout.layoutId,Ei(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),p,!0))}; g.V.aP=function(){this.X||this.VI.get().resumeVideo(1)}; g.V.startRendering=function(z){$6.prototype.startRendering.call(this,z);iK(this.VI.get(),"ad-showing");this.callback.sW(this.slot,z);this.L.d5=this}; g.V.e5=function(z,p){$6.prototype.e5.call(this,z,p);Tf(this.VI.get(),"ad-showing");nY(this.L,this)}; g.V.RI=function(z){switch(z){case "ad-info-icon-button":(this.X=this.VI.get().L4(1))||this.VI.get().pauseVideo();break;case "visit-advertiser":this.VI.get().pauseVideo()}}; g.V.m0=function(){$6.prototype.m0.call(this)};g.Y(NT,qK);g.Y(fV,$6);g.V=fV.prototype;g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(p,c,B,H,T){return new NT(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(){}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)}; g.V.RI=function(){};g.Y(ze,qK);g.Y(pd,$6);pd.prototype.init=function(){$6.prototype.init.call(this);this.W.push(new ze(g.I(this.layout.renderingContent,Cl),this.layout.layoutId,{adsClientData:this.layout.Gr}))}; pd.prototype.RI=function(){Cc(this.X.get(),this.L)&&aD(this.u8.get(),3)}; pd.prototype.startRendering=function(z){$6.prototype.startRendering.call(this,z);this.callback.sW(this.slot,z)}; pd.prototype.m0=function(){$6.prototype.m0.call(this)};g.Y(c2,qK);g.Y(B2,$6);B2.prototype.init=function(){$6.prototype.init.call(this);var z=g.I(this.layout.renderingContent,Me)||Ei(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),p=KV(this.Pq);this.W.push(new c2(z,p,this.layout.layoutId,{adsClientData:this.layout.Gr},!0,!0))}; B2.prototype.startRendering=function(z){$6.prototype.startRendering.call(this,z);this.callback.sW(this.slot,z)}; B2.prototype.RI=function(z,p){if(p===this.layout.layoutId)switch(z){case "skip-button":var c;(z=(c=Ei(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&z.Ee(this.PM(),this.layout)}}; B2.prototype.m0=function(){$6.prototype.m0.call(this)};iz.prototype.build=function(z,p,c,B){if(H2(B,{j5:["metadata_type_ad_break_response_data"],ER:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new M_x(z,c,B,this.K,this.D,this.W);throw new Xo("Unsupported layout with type: "+B.layoutType+" and client metadata: "+qL(B.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.Y(ojx,qK);g.Y(Te,$6);g.V=Te.prototype;g.V.RI=function(z,p){ZI("ads-engagement-panel",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),g.I(this.gA().renderingContent,Va),this.callback,"metadata_type_ads_engagement_panel_renderer",function(p,c,B,H,T){return new ojx(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){p.layoutId===this.layout.layoutId?this.Pq.Ja("impression"):this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};g.Y(bz,$6);g.V=bz.prototype;g.V.RI=function(z,p){ZI("top-banner-image-text-icon-buttoned",z,this.V.get().Im,this.u8.get(),this.X,this.L,this.PM(),this.gA(),p)}; g.V.startRendering=function(z){uD(this.Pq,this.PM(),this.gA(),g.I(this.gA().renderingContent,tZ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(p,c,B,H,T){return new NT(p,c,B,H,T)},this.W); $6.prototype.startRendering.call(this,z)}; g.V.sW=function(z,p){this.L===p.layoutId&&(this.X===null?this.X=this.u8.get().xe():P7("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.m0=function(){R9(this.KB(),this);$6.prototype.m0.call(this)};rQQ.prototype.build=function(z,p,c,B){if(H2(B,njV())||g.I(B.renderingContent,Va)!==void 0)return new Te(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,ZBW())||g.I(B.renderingContent,Td)!==void 0)return new rl(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,dKY())||g.I(B.renderingContent,bV)!==void 0)return new U5(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,yQV()))return new s5(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,vjx()))return new gl(z,c,B,this.mB,this.u8,this.KB, this.Dw,this.W);if(H2(B,ayD())||g.I(B.renderingContent,Do)!==void 0)return new nV(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,Qbx())||g.I(B.renderingContent,tZ)!==void 0)return new bz(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,jbB()))return new fV(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);if(H2(B,KUE())||g.I(B.renderingContent,xS)!==void 0)return new oD(z,c,B,this.mB,this.u8,this.KB,this.Dw,this.W);throw new Xo("Unsupported layout with type: "+B.layoutType+" and client metadata: "+ qL(B.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};UKf.prototype.build=function(z,p,c,B){if(H2(B,{j5:["metadata_type_linked_player_bytes_layout_id"],ER:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new pd(z,c,B,this.mB,this.u8,this.W);throw new Xo("Unsupported layout with type: "+B.layoutType+" and client metadata: "+qL(B.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.V=sbu.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){}; g.V.release=function(){}; g.V.startRendering=function(z){z.layoutId!==this.layout.layoutId?this.callback.zg(this.slot,z,new Xo("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.sW(this.slot,z),this.Pq.Ja("impression"),NP(this.An,z,"normal"))}; g.V.e5=function(z,p){z.layoutId!==this.layout.layoutId?this.callback.zg(this.slot,z,new Xo("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.Rw(this.slot,z,p)};g.V=gjV.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){}; g.V.release=function(){}; g.V.startRendering=function(z){z.layoutId!==this.layout.layoutId?this.callback.zg(this.slot,z,new Xo("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.sW(this.slot,z),this.Pq.Ja("impression"),NP(this.An,z,"normal"))}; g.V.e5=function(z,p){z.layoutId!==this.layout.layoutId?this.callback.zg(this.slot,z,new Xo("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.Rw(this.slot,z,p)};Vn.prototype.build=function(z,p,c,B){if(!this.X3.get().T.N().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(H2(B,krD()))return new sbu(z,c,B,this.u8,this.An)}else if(H2(B,{j5:[],ER:["LAYOUT_TYPE_FORECASTING"]}))return new gjV(z,c,B,this.u8,this.An);throw new Xo("Unsupported layout with type: "+B.layoutType+" and client metadata: "+qL(B.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.Y(fyQ,qK);g.Y(Dp,$6);g.V=Dp.prototype;g.V.init=function(){$6.prototype.init.call(this);var z=g.I(this.layout.renderingContent,Jd)||Ei(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),p={adsClientData:this.layout.Gr};this.W.push(new fyQ(z,Ei(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,p))}; g.V.aP=function(){this.X||this.VI.get().resumeVideo(2)}; g.V.startRendering=function(z){$6.prototype.startRendering.call(this,z);this.callback.sW(this.slot,z);this.L.d5=this}; g.V.e5=function(z,p){$6.prototype.e5.call(this,z,p);nY(this.L,this)}; g.V.RI=function(z){if(Cc(this.V.get(),this.G))switch(z){case "visit-advertiser-link":aD(this.u8.get(),3)}switch(z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.VI.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.VI.get().L4(2))||this.VI.get().pauseVideo();break;case "visit-advertiser-link":this.VI.get().pauseVideo();zXY(this).o$();break;case "skip-button":if(z=zXY(this), this.layout.renderingContent&&!Vi(this.layout.clientMetadata,"metadata_type_dai")||!z.pP){var p;(z=(p=Ei(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:p.current)&&z.Ee(this.PM(),this.layout)}else P7("Requesting to skip by LegacyPlayerBytes when components enabled"),z.PT(this.PM(),this.layout)}}; g.V.m0=function(){$6.prototype.m0.call(this)};g.Y(td,$6);g.V=td.prototype;g.V.init=function(){$6.prototype.init.call(this);var z=g.I(this.layout.renderingContent,qe)||Ei(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p={adsClientData:this.layout.Gr},c;(c=!!this.layout.renderingContent)||(c=!XI(this).pP);this.W.push(new aG(z,this.layout.layoutId,Ei(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),p,c))}; g.V.aP=function(){this.X||this.VI.get().resumeVideo(2)}; g.V.startRendering=function(z){$6.prototype.startRendering.call(this,z);this.callback.sW(this.slot,z);this.L.d5=this}; g.V.e5=function(z,p){$6.prototype.e5.call(this,z,p);nY(this.L,this)}; g.V.RI=function(z){if(Cc(this.V.get(),this.G))switch(z){case "visit-advertiser":aD(this.u8.get(),3)}switch(z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.VI.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.VI.get().L4(2))||this.VI.get().pauseVideo();break;case "visit-advertiser":this.VI.get().pauseVideo();XI(this).o$();break;case "skip-button":if(z=XI(this),this.layout.renderingContent&& !Vi(this.layout.clientMetadata,"metadata_type_dai")||!z.pP){var p;(z=(p=Ei(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:p.current)&&z.Ee(this.PM(),this.layout)}else P7("Requesting to skip by LegacyPlayerBytes"),z.PT(this.PM(),this.layout)}}; g.V.m0=function(){$6.prototype.m0.call(this)};g.Y(cbD,qK);g.Y(x7,$6);g.V=x7.prototype;g.V.startRendering=function(z){var p=this;SD(this.K,z,function(){p.W.push(new cbD(Ei(p.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),z.layoutId,z.Gr));p.Qs();p.callback.sW(p.slot,z);g.r(gq(p.VI.get(),1),512)&&p.callback.zg(p.PM(),p.gA(),new Xo("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.V.CD=function(){}; g.V.Pf=function(z){if(z.state.isError()){var p;this.callback.zg(this.PM(),this.gA(),new Xo("A player error happened during adNotify",{playerErrorCode:(p=z.state.DN)==null?void 0:p.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.V.onFullscreenToggled=function(){}; g.V.gk=function(){}; g.V.Hu=function(){}; g.V.Fv=function(){}; g.V.onVolumeChange=function(){}; g.V.yT=function(){}; g.V.UB=function(){}; g.V.RI=function(){};g.Y(HJD,qK);g.Y(E4,$6);E4.prototype.init=function(){$6.prototype.init.call(this);var z=g.I(this.layout.renderingContent,Y7),p=KV(this.Pq);this.W.push(new HJD(z,p,this.layout.layoutId,{adsClientData:this.layout.Gr}))}; E4.prototype.startRendering=function(z){$6.prototype.startRendering.call(this,z);this.callback.sW(this.slot,z)}; E4.prototype.RI=function(z,p){if(p===this.layout.layoutId)switch(z){case "skip-button":var c;(z=(c=Ei(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&z.Ee(this.PM(),this.layout)}}; E4.prototype.m0=function(){$6.prototype.m0.call(this)};iJE.prototype.build=function(z,p,c,B){if(z=mC(z,c,B,this.mB,this.VI,this.u8,this.K,this.W,this.X3))return z;throw new Xo("Unsupported layout with type: "+B.layoutType+" and client metadata: "+qL(B.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.V=Ad.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){this.VI.get().addListener(this);this.VI.get().uC.push(this);var z=this.layout.renderingContent?wV(this.oa.get(),1).nX/1E3:Ei(this.layout.clientMetadata,"metadata_type_video_length_seconds"),p=g.I(this.layout.renderingContent,RP),c=p?dl(p.pings):Ei(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");p=p?OBN(p.pings):Ei(this.layout.clientMetadata,"metadata_type_active_view_identifier");LV(this.layout.Ms)&&Gp(this.Dw.get(),this.layout.layoutId,{w5:c,G6:z,listener:this, PD:p})}; g.V.release=function(){this.VI.get().removeListener(this);QCv(this.VI.get(),this);LV(this.layout.Ms)&&Nz(this.Dw.get(),this.layout.layoutId)}; g.V.startRendering=function(z){this.callback.sW(this.slot,z)}; g.V.e5=function(z,p){O4(this,"abandon");this.callback.Rw(this.slot,z,p)}; g.V.yT=function(z){switch(z.id){case "part2viewed":this.Pq.Ja("start");this.Pq.Ja("impression");break;case "videoplaytime25":this.Pq.Ja("first_quartile");break;case "videoplaytime50":this.Pq.Ja("midpoint");break;case "videoplaytime75":this.Pq.Ja("third_quartile");break;case "videoplaytime100":O4(this,"complete");Fq(this.Pq)&&ID(this.Pq,Infinity,!0);break;case "engagedview":Fq(this.Pq)||this.Pq.Ja("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:P7("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.V.onVolumeChange=function(){}; g.V.Fv=function(){}; g.V.gk=function(){}; g.V.Hu=function(){}; g.V.onFullscreenToggled=function(){}; g.V.Pf=function(z){this.W||(g.wn(z,4)&&!g.wn(z,2)?v$(this.Pq,"pause"):Ou(z,4)<0&&!(Ou(z,2)<0)&&v$(this.Pq,"resume"))}; g.V.CD=function(){}; g.V.Aw=function(z){Fq(this.Pq)&&ID(this.Pq,z*1E3,!1)}; g.V.UB=function(){O4(this,"swipe")}; g.V.Op=function(){this.Pq.Ja("active_view_measurable")}; g.V.gx=function(){this.Pq.Ja("active_view_viewable")}; g.V.BT=function(){this.Pq.Ja("active_view_fully_viewable_audible_half_duration")}; g.V.Gy=function(){this.Pq.Ja("audio_measurable")}; g.V.xd=function(){this.Pq.Ja("audio_audible")};Tnv.prototype.build=function(z,p,c,B){if(c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.I(B.renderingContent,RP)!==void 0)return new Ad(z,c,B,this.VI,this.u8,this.X3,this.Dw,this.oa);p=["metadata_type_ad_placement_config"];for(var H=g.m(CV()),T=H.next();!T.done;T=H.next())p.push(T.value);if(H2(B,{j5:p,ER:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Ad(z,c,B,this.VI,this.u8,this.X3,this.Dw,this.oa):new Iyx(z,c,B,this.VI,this.u8, this.vM,this.X3,this.Dw);throw new Xo("Unsupported layout with type: "+B.layoutType+" and client metadata: "+qL(B.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var $7={contentCpn:"",J4:new Map};MTf.prototype.kA=function(z,p){var c={};p=Object.assign({},p,(c.cc=this.Xj.C3(),c));this.Xj.T.KH(z,p)};var c5q,d0; c5q={vwi:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Jot:"AUTHENTICATION_MALFORMED",C6p:"AUTHENTICATION_MISSING",yoH:"BAD_REQUEST",Ew$:"CAST_SESSION_DEVICE_MISMATCHED",Wuq:"CAST_SESSION_VIDEO_MISMATCHED",cq8:"CAST_TOKEN_EXPIRED",KuI:"CAST_TOKEN_FAILED",aF$:"CAST_TOKEN_MALFORMED",M1$:"CGI_PARAMS_MALFORMED",e0a:"CGI_PARAMS_MISSING",Bwa:"DEVICE_FALLBACK",WkH:"GENERIC_WITH_LINK_AND_CPN",cAp:"ERROR_HDCP",KkD:"LICENSE",MAi:"VIDEO_UNAVAILABLE",X0H:"FORMAT_UNAVAILABLE",hkA:"GEO_FAILURE", O3i:"HTML5_AUDIO_RENDERER_ERROR",gGA:"GENERIC_WITHOUT_LINK",dzD:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",w0$:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Z3D:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Sbt:"HTML5_SPS_UMP_STATUS_REJECTED",lcA:"INVALID_DRM_MESSAGE",ZnZ:"PURCHASE_NOT_FOUND",SM0:"PURCHASE_REFUNDED",bnA:"RENTAL_EXPIRED",E8$:"RETRYABLE_ERROR",zIZ:"SERVER_ERROR",IlI:"SIGNATURE_EXPIRED",Yma:"STOPPED_BY_ANOTHER_PLAYBACK",uOA:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",rIt:"STREAMING_NOT_ALLOWED", xR0:"STREAM_LICENSE_NOT_FOUND",dRI:"TOO_MANY_REQUESTS",w10:"TOO_MANY_REQUESTS_WITH_LINK",Z48:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Smi:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",zjt:"VIDEO_FORBIDDEN",mk3:"VIDEO_NOT_FOUND",sm8:"BROWSER_OR_EXTENSION_ERROR"};d0={}; g.vc=(d0.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.",d0.DEVICE_FALLBACK="Sorry, this video is not available on this device.",d0.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",d0.LICENSE="Sorry, there was an error licensing this video.",d0.VIDEO_UNAVAILABLE= "Video unavailable",d0.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",d0.GEO_FAILURE="This video isn't available in your country.",d0.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",d0.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",d0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",d0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", d0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",d0.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",d0.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",d0.PURCHASE_NOT_FOUND="This video requires payment.",d0.PURCHASE_REFUNDED="This video's purchase has been refunded.",d0.RENTAL_EXPIRED="This video's rental has expired.",d0.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",d0.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",d0.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",d0.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",d0.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",d0.SERVER_ERROR="There was an internal server error. Please try again later.",d0.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",d0.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",d0.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",d0.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",d0.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",d0.TOO_MANY_REQUESTS="Please log in to watch this video.", d0.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",d0.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",d0.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",d0.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",d0.VIDEO_FORBIDDEN="Access to this video is forbidden.",d0.VIDEO_NOT_FOUND="This video can not be found.",d0.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",d0);var Bv9;var HpJ=g.Zm(),ipz=HpJ.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ipz||ipz.length<2)Bv9=void 0;else{var TvE=HpJ.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Bv9=TvE&&TvE.length===6?Number(TvE[5].replace("_",".")):0}var nn=Bv9,Wc=nn>=0;g.Y(g.or,WL);g.or.prototype.Z=function(z,p,c,B,H){return WL.prototype.Z.call(this,z,p,c,B,H)};var Ws={},AX=(Ws.FAIRPLAY="fairplay",Ws.PLAYREADY="playready",Ws.WIDEVINE="widevine",Ws.CLEARKEY=null,Ws.FLASHACCESS=null,Ws.UNKNOWN=null,Ws.WIDEVINE_CLASSIC=null,Ws);nd.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var y9={},KS=(y9.WIDTH={name:"width",video:!0,valid:640,hI:99999},y9.HEIGHT={name:"height",video:!0,valid:360,hI:99999},y9.FRAMERATE={name:"framerate",video:!0,valid:30,hI:9999},y9.BITRATE={name:"bitrate",video:!0,valid:3E5,hI:2E9},y9.EOTF={name:"eotf",video:!0,valid:"bt709",hI:"catavision"},y9.CHANNELS={name:"channels",video:!1,valid:2,hI:99},y9.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",hI:"invalidformat"},y9.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", hI:"nope"},y9.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",hI:"av99.0.05M.08"},y9.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",hI:"invalid"},y9);var bpK=["h","H"],Vr1=["9","("],DoL=["9h","(h"],trg=["8","*"],XQE=["a","A"],xo1=["o","O"],EyL=["m","M"],q7v=["mac3","MAC3"],J5v=["meac3","MEAC3"],CA={},ENf=(CA.h=bpK,CA.H=bpK,CA["9"]=Vr1,CA["("]=Vr1,CA["9h"]=DoL,CA["(h"]=DoL,CA["8"]=trg,CA["*"]=trg,CA.a=XQE,CA.A=XQE,CA.o=xo1,CA.O=xo1,CA.m=EyL,CA.M=EyL,CA.mac3=q7v,CA.MAC3=q7v,CA.meac3=J5v,CA.MEAC3=J5v,CA),Mrd=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),id_=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var G={},gB=(G["0"]="f",G["160"]="h",G["133"]="h",G["134"]="h",G["135"]="h",G["136"]="h",G["137"]="h",G["264"]="h",G["266"]="h",G["138"]="h",G["298"]="h",G["299"]="h",G["304"]="h",G["305"]="h",G["214"]="h",G["216"]="h",G["374"]="h",G["375"]="h",G["140"]="a",G["141"]="ah",G["327"]="sa",G["258"]="m",G["380"]="mac3",G["328"]="meac3",G["161"]="H",G["142"]="H",G["143"]="H",G["144"]="H",G["222"]="H",G["223"]="H",G["145"]="H",G["224"]="H",G["225"]="H",G["146"]="H",G["226"]="H",G["227"]="H",G["147"]="H", G["384"]="H",G["376"]="H",G["385"]="H",G["377"]="H",G["149"]="A",G["261"]="M",G["381"]="MAC3",G["329"]="MEAC3",G["598"]="9",G["278"]="9",G["242"]="9",G["243"]="9",G["244"]="9",G["775"]="9",G["776"]="9",G["777"]="9",G["778"]="9",G["779"]="9",G["780"]="9",G["781"]="9",G["782"]="9",G["783"]="9",G["247"]="9",G["248"]="9",G["353"]="9",G["355"]="9",G["356"]="9",G["271"]="9",G["577"]="9",G["313"]="9",G["579"]="9",G["272"]="9",G["302"]="9",G["303"]="9",G["407"]="9",G["408"]="9",G["308"]="9",G["315"]="9", G["330"]="9h",G["331"]="9h",G["332"]="9h",G["333"]="9h",G["334"]="9h",G["335"]="9h",G["336"]="9h",G["337"]="9h",G["338"]="so",G["600"]="o",G["250"]="o",G["251"]="o",G["774"]="o",G["194"]="*",G["195"]="*",G["220"]="*",G["221"]="*",G["196"]="*",G["197"]="*",G["279"]="(",G["280"]="(",G["317"]="(",G["318"]="(",G["273"]="(",G["274"]="(",G["357"]="(",G["358"]="(",G["275"]="(",G["359"]="(",G["360"]="(",G["276"]="(",G["583"]="(",G["584"]="(",G["314"]="(",G["585"]="(",G["561"]="(",G["277"]="(",G["361"]="(h", G["362"]="(h",G["363"]="(h",G["364"]="(h",G["365"]="(h",G["366"]="(h",G["591"]="(h",G["592"]="(h",G["367"]="(h",G["586"]="(h",G["587"]="(h",G["368"]="(h",G["588"]="(h",G["562"]="(h",G["409"]="(",G["410"]="(",G["411"]="(",G["412"]="(",G["557"]="(",G["558"]="(",G["394"]="1",G["395"]="1",G["396"]="1",G["397"]="1",G["398"]="1",G["399"]="1",G["720"]="1",G["721"]="1",G["400"]="1",G["401"]="1",G["571"]="1",G["402"]="1",G["694"]="1h",G["695"]="1h",G["696"]="1h",G["697"]="1h",G["698"]="1h",G["699"]="1h",G["700"]= "1h",G["701"]="1h",G["702"]="1h",G["703"]="1h",G["386"]="3",G["387"]="w",G["406"]="6",G["787"]="1",G["788"]="1",G["548"]="1e",G["549"]="1e",G["550"]="1e",G["551"]="1e",G["809"]="1e",G["810"]="1e",G["552"]="1e",G["811"]="1e",G["812"]="1e",G["553"]="1e",G["813"]="1e",G["814"]="1e",G["554"]="1e",G["815"]="1e",G["816"]="1e",G["555"]="1e",G["817"]="1e",G["818"]="1e",G["572"]="1e",G["556"]="1e",G["645"]="(",G["646"]="(",G["647"]="(",G["648"]="(",G["649"]="(",G["650"]="(",G["651"]="(",G["652"]="(",G["653"]= "(",G["654"]="(",G["655"]="(",G["656"]="(",G["657"]="(",G["658"]="(",G["659"]="(",G["660"]="(",G["661"]="(",G["662"]="(",G["663"]="(",G["664"]="(",G["665"]="(",G["666"]="(",G["667"]="(",G["668"]="(",G["669"]="(",G["670"]="(",G["671"]="(",G["672"]="(",G["673"]="(",G["674"]="(h",G["675"]="(h",G["676"]="(h",G["677"]="(h",G["678"]="(h",G["679"]="(h",G["680"]="(h",G["681"]="(h",G["682"]="(h",G["683"]="(h",G["684"]="(h",G["685"]="(h",G["686"]="(h",G["687"]="(h",G["688"]="A",G["689"]="A",G["690"]="A",G["691"]= "MEAC3",G["773"]="i",G["806"]="I",G["805"]="I",G["829"]="9",G["830"]="9",G["831"]="9",G["832"]="9",G["833"]="9",G["834"]="9",G["835"]="9",G["836"]="9",G["837"]="9",G["838"]="9",G["839"]="9",G["840"]="9",G["841"]="(",G["842"]="(",G["843"]="(",G["844"]="(",G["845"]="(",G["846"]="(",G["847"]="(",G["848"]="(",G["849"]="(",G["850"]="(",G["851"]="(",G["852"]="(",G["865"]="9",G["866"]="9",G["867"]="9",G["868"]="9",G["869"]="9",G["870"]="9",G["871"]="9",G["872"]="9",G["873"]="9",G["874"]="9",G["875"]="9", G["876"]="9",G["877"]="(",G["878"]="(",G["879"]="(",G["880"]="(",G["881"]="(",G["882"]="(",G["883"]="(",G["884"]="(",G["885"]="(",G["886"]="(",G["887"]="(",G["888"]="(",G);var e1={},spQ=(e1.STEREO_LAYOUT_UNKNOWN=0,e1.STEREO_LAYOUT_LEFT_RIGHT=1,e1.STEREO_LAYOUT_TOP_BOTTOM=2,e1);var lX,EJ;lX={};g.rB=(lX.auto=0,lX.tiny=144,lX.light=144,lX.small=240,lX.medium=360,lX.large=480,lX.hd720=720,lX.hd1080=1080,lX.hd1440=1440,lX.hd2160=2160,lX.hd2880=2880,lX.highres=4320,lX);EJ={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var s4="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");U4.prototype.isHdr=function(){return this.W==="smpte2084"||this.W==="arib-std-b67"};Ge.prototype.Q4=function(){return this.containerType===2}; Ge.prototype.isEncrypted=function(){return!!this.o8}; Ge.prototype.aI=function(){return!!this.audio}; Ge.prototype.Ni=function(){return!!this.video}; var zq=!1;g.Y(P6,g.JQ);g.V=P6.prototype;g.V.appendBuffer=function(z,p,c){if(this.MP.FM()!==this.appendWindowStart+this.start||this.MP.vA()!==this.appendWindowEnd+this.start||this.MP.e_()!==this.timestampOffset+this.start)this.MP.supports(1),this.MP.Sz(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.MP.vW(this.timestampOffset+this.start);this.MP.appendBuffer(z,p,c)}; g.V.abort=function(){this.MP.abort()}; g.V.remove=function(z,p){this.MP.remove(z+this.start,p+this.start)}; g.V.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.V.clear=function(){this.MP.clear()}; g.V.Sz=function(z,p){this.appendWindowStart=z;this.appendWindowEnd=p}; g.V.zC=function(){return this.timestampOffset+this.start}; g.V.FM=function(){return this.appendWindowStart}; g.V.vA=function(){return this.appendWindowEnd}; g.V.vW=function(z){this.timestampOffset=z}; g.V.e_=function(){return this.timestampOffset}; g.V.UR=function(z){z=this.MP.UR(z===void 0?!1:z);return hw(z,this.start,this.end)}; g.V.bf=function(){return this.MP.bf()}; g.V.k0=function(){return this.MP.k0()}; g.V.Kn=function(){return this.MP.Kn()}; g.V.Sn=function(){return this.MP.Sn()}; g.V.RZ=function(){this.MP.RZ()}; g.V.lw=function(z){return this.MP.lw(z)}; g.V.Vc=function(){return this.MP.Vc()}; g.V.BA=function(){return this.MP.BA()}; g.V.Oa=function(){return this.MP.Oa()}; g.V.N4=function(z,p,c){this.MP.N4(z,p,c)}; g.V.PR=function(z,p,c){this.MP.PR(z,p,c)}; g.V.BL=function(z,p){return this.MP.BL(z,p)}; g.V.supports=function(z){return this.MP.supports(z)}; g.V.Ou=function(){return this.MP.Ou()}; g.V.isView=function(){return!0}; g.V.SJ=function(){return this.MP.SJ()?this.isActive:!1}; g.V.isLocked=function(){return this.g4&&!this.isActive}; g.V.kt=function(z){z=this.MP.kt(z);z.vw=this.start+"-"+this.end;return z}; g.V.i$=function(){return this.MP.i$()}; g.V.b5=function(){return this.MP.b5()}; g.V.WE=function(){return this.MP.WE()}; g.V.m0=function(){this.MP.Hh(this.wR);g.JQ.prototype.m0.call(this)};var $o=!1;g.Y(OI,g.JQ);g.V=OI.prototype;g.V.appendBuffer=function(z,p,c){this.I4=!1;c&&(this.XB=c);if(z.length){var B;((B=this.oR)==null?0:B.appendBuffer)?this.oR.appendBuffer(z):this.oR?this.oR.append(z):this.Na&&this.Na.webkitSourceAppend(this.id,z)}p&&(p.isEncrypted()&&(this.Mo=this.XB),p.type===3&&(this.e8=p),this.FB.push(p.hH()),this.FB.length>4&&this.FB.shift());this.AL&&(this.AL.length>=2||z.length>1048576?delete this.AL:this.AL.push(z))}; g.V.abort=function(){try{this.oR?this.oR.abort():this.Na&&this.Na.webkitSourceAbort(this.id)}catch(z){tmN&&g.Fr(new g.z6("Error while abort the source buffer: "+z.name+", "+z.message))}this.XB=this.e8=null}; g.V.remove=function(z,p,c){this.I4=!1;var B;if((B=this.oR)==null?0:B.remove)c&&c({b:EI(this.UR()),s:z,e:p}),this.oR.remove(z,p)}; g.V.removeAll=function(){this.remove(this.FM(),this.vA())}; g.V.clear=function(){this.Kn()||(this.abort(),this.removeAll(),this.Mo=this.XB=this.e8=null,this.appendWindowStart=this.timestampOffset=0,this.jR=xK([],[]),this.I4=!1,this.AL=Aw?[]:void 0,this.Cu=!0)}; g.V.FM=function(){if($o&&this.Ni)return this.appendWindowStart;var z;return((z=this.oR)==null?void 0:z.appendWindowStart)||0}; g.V.vA=function(){var z;return((z=this.oR)==null?void 0:z.appendWindowEnd)||0}; g.V.Sz=function(z,p){this.oR&&($o&&this.Ni?(this.appendWindowStart=z,this.oR.appendWindowEnd=p):z>this.FM()?(this.oR.appendWindowEnd=p,this.oR.appendWindowStart=z):(this.oR.appendWindowStart=z,this.oR.appendWindowEnd=p))}; g.V.zC=function(){return this.timestampOffset}; g.V.vW=function(z){$o?this.timestampOffset=z:this.supports(1)&&(this.oR.timestampOffset=z)}; g.V.e_=function(){return $o?this.timestampOffset:this.supports(1)?this.oR.timestampOffset:0}; g.V.UR=function(z){if(z===void 0?0:z)return this.I4||this.bf()||(this.jR=this.UR(!1),this.I4=!0),this.jR;try{return this.oR?this.oR.buffered:this.Na?this.Na.webkitSourceBuffered(this.id):xK([0],[Infinity])}catch(p){return xK([],[])}}; g.V.bf=function(){var z;return((z=this.oR)==null?void 0:z.updating)||!1}; g.V.Kn=function(){return this.Cu}; g.V.Sn=function(){return!this.Cu&&this.bf()}; g.V.RZ=function(){this.Cu=!1}; g.V.lw=function(z){var p=z==null?void 0:z.yI;z=z==null?void 0:z.containerType;return!p&&!z||p===this.yI&&z===this.containerType}; g.V.Vc=function(){return this.XB}; g.V.BA=function(){return this.Mo}; g.V.BL=function(z,p){return this.containerType!==z||this.yI!==p}; g.V.N4=function(z,p,c){if(this.containerType!==z||c&&this.BL(z,c))this.supports(4),wr()&&this.oR.changeType(p),c&&(this.yI=c);this.containerType=z}; g.V.PR=function(z,p,c){this.containerType&&this.BL(z,p)&&wr()&&this.oR.changeType(c);this.containerType=z;this.yI=p}; g.V.Ou=function(){return this.e8}; g.V.isView=function(){return!1}; g.V.supports=function(z){switch(z){case 1:var p;return((p=this.oR)==null?void 0:p.timestampOffset)!==void 0;case 0:var c;return!((c=this.oR)==null||!c.appendBuffer);case 2:var B;return!((B=this.oR)==null||!B.remove);case 3:var H,T;return!!(((H=this.oR)==null?0:H.addEventListener)&&((T=this.oR)==null?0:T.removeEventListener));case 4:return!(!this.oR||!this.oR.changeType);default:return!1}}; g.V.SJ=function(){return!this.bf()}; g.V.isLocked=function(){return!1}; g.V.kt=function(z){z.to=this.e_();z.up=this.bf();var p,c=((p=this.oR)==null?void 0:p.appendWindowStart)||0,B;p=((B=this.oR)==null?void 0:B.appendWindowEnd)||Infinity;z.aw=c.toFixed(3)+"-"+p.toFixed(3);return z}; g.V.k0=function(){var z;return((z=this.oR)==null?void 0:z.writeHead)||0}; g.V.i$=function(){for(var z={},p=0;p=7&&YuY(this,function(){g.O0(function(){CTx(z,z.getCurrentTime(),0)},500)}); return p}; g.V.seekTo=function(z){this.YG()>0&&(Wc&&nn<4&&(z=Math.max(.1,z)),this.setCurrentTime(z))}; g.V.XW=function(){if(!this.K&&this.G$)if(this.G$.L)try{var z;fZ(this,{l:"mer",sr:(z=this.cq)==null?void 0:z.Rm(),rs:pg(this.G$)});this.G$.clear();this.K=this.G$;this.G$=void 0}catch(p){z=new g.z6("Error while clearing Media Source in MediaElement: "+p.name+", "+p.message),g.Fr(z),this.stopVideo()}else this.stopVideo()}; g.V.stopVideo=function(){var z=this;if(!this.K){var p;(p=this.G$)==null||d6u(p);if(bs_){if(!this.D){var c=new BS;c.then(void 0,function(){}); this.D=c;Vm_&&this.pause();g.O0(function(){z.D===c&&(bB(z),c.resolve())},200)}}else bB(this)}}; g.V.n9=function(){var z=this.zO();return YK(z)>0&&this.getDuration()?MF(z,this.getCurrentTime()):0}; g.V.f6=function(){var z=this.getDuration();return z===Infinity?1:z?this.n9()/z:0}; g.V.kt=function(){try{var z=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:EI(this.Y7(),",",3),vbu:EI(this.zO()),vbs:EI(this.W5()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.YG(),vns:""+this.w7(),vec:""+this.bz(),vemsg:this.Tg(),vvol:""+this.getVolume(),vdom:""+ +this.NL(),vsrc:""+ +!!this.vQ(),vw:""+z.width,vh:""+z.height}}catch(p){return{}}}; g.V.hasError=function(){return this.bz()>0}; g.V.addEventListener=function(z,p){this.X.listen(z,p,!1,this);this.XH(z)}; g.V.removeEventListener=function(z,p){this.X.vy(z,p,!1,this)}; g.V.dispatchEvent=function(z){if(this.D&&z.type==="pause")return!1;if(DXB){var p,c=((p=z.W)==null?void 0:p.timeStamp)||Infinity;p=c>performance.now()?c-Date.now()+performance.now():c;c=this.K||this.G$;if((c==null?0:c.Kn())||p<=((c==null?void 0:c.V)||0)){var B;fZ(this,{l:"mede",sr:(B=this.cq)==null?void 0:B.Rm(),et:z.type});return!1}if(this.T3)return fZ(this,{l:"medes",et:z.type}),c&&z.type==="seeking"&&(c.V=performance.now(),this.T3=!1),!1}return this.X.dispatchEvent(z)}; g.V.zB=function(){this.V=!1}; g.V.aF=function(){this.V=!0;this.WN(!0)}; g.V.Hi=function(){this.V&&!this.d7()&&this.WN(!0)}; g.V.oI=function(z){return!!z&&z.XQ()===this.XQ()}; g.V.m0=function(){this.G&&this.removeEventListener("volumechange",this.Hi);bs_&&bB(this);g.e.prototype.m0.call(this)}; var bs_=!1,Vm_=!1,DXB=!1,vQE=!1;g.V=g.D0.prototype;g.V.isPaused=function(){return g.r(this,4)}; g.V.isPlaying=function(){return g.r(this,8)&&!g.r(this,512)&&!g.r(this,64)&&!g.r(this,2)}; g.V.isOrWillBePlaying=function(){return g.r(this,8)&&!g.r(this,2)&&!g.r(this,1024)}; g.V.isCued=function(){return g.r(this,64)&&!g.r(this,8)&&!g.r(this,4)}; g.V.isBuffering=function(){return g.r(this,1)&&!g.r(this,2)}; g.V.isError=function(){return g.r(this,128)}; g.V.isSuspended=function(){return g.r(this,512)}; g.V.G5=function(){return g.r(this,64)&&g.r(this,4)}; g.V.toString=function(){return"PSt."+this.state.toString(16)}; var vs={},Iq=(vs.BUFFERING="buffering-mode",vs.CUED="cued-mode",vs.ENDED="ended-mode",vs.PAUSED="paused-mode",vs.PLAYING="playing-mode",vs.SEEKING="seeking-mode",vs.UNSTARTED="unstarted-mode",vs);g.Y(hO,g.e);g.V=hO.prototype;g.V.Dl=function(){return this.D}; g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){var z=Ei(this.layout.clientMetadata,"metadata_type_video_length_seconds"),p=Ei(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");LV(this.layout.Ms)&&Gp(this.Dw.get(),this.layout.layoutId,{w5:p,G6:z,listener:this,v1:this.V4()});e0E(this.u8.get(),this);z=this.WQ;p=this.layout.layoutId;var c={v1:this.V4()};z.W.set(p,c);this.hF()}; g.V.pz=function(){}; g.V.release=function(){LV(this.layout.Ms)&&Nz(this.Dw.get(),this.layout.layoutId);llu(this.u8.get(),this);this.WQ.W.delete(this.layout.layoutId);this.Db()}; g.V.kO=function(){}; g.V.De=function(){}; g.V.startRendering=function(z){ar(PS(this));if(AO(this,z)){var p=this.W;Zp(p.params.K2.X3.get(),!0)&&Jbf(p,"p_sr",{});OC(this);this.q0(z);this.V4()||this.oD(!1)}}; g.V.sW=function(z,p){if(p.layoutId===this.layout.layoutId){this.lQ="rendering";this.K=this.VI.get().isMuted()||this.VI.get().getVolume()===0;this.Ja("impression");this.Ja("start");if(this.VI.get().isMuted()){uB(this,"mute");var c;z=((c=mO(this))==null?void 0:c.muteCommands)||[];NL(this.vM.get(),z,this.layout.layoutId)}if(this.VI.get().isFullscreen()){this.D_("fullscreen");var B;c=((B=mO(this))==null?void 0:B.fullscreenCommands)||[];NL(this.vM.get(),c,this.layout.layoutId)}this.V4()||(B=this.fB.get(), B.D&&!B.K&&(B.L=!1,B.K=!0,B.actionType!=="ad_to_video"&&(z4("pbs",void 0,B.actionType),g.KN("finalize_all_timelines")&&N5E(B.actionType))));this.hm(1);this.FZ(p);var H;p=((H=mO(this))==null?void 0:H.impressionCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.Rx=function(z,p,c){this.G={l7:3,xf:z==="load_timeout"?402:400,errorMessage:p.message};this.Ja("error");var B;z=((B=mO(this))==null?void 0:B.errorCommands)||[];NL(this.vM.get(),z,this.layout.layoutId);this.V4()||this.JI.zg(this.slot,this.layout,p,c)}; g.V.o2=function(){if(this.lQ==="rendering"){uB(this,"pause");var z,p=((z=mO(this))==null?void 0:z.pauseCommands)||[];NL(this.vM.get(),p,this.layout.layoutId);this.hm(2)}}; g.V.Gs=function(){if(this.lQ==="rendering"){uB(this,"resume");var z,p=((z=mO(this))==null?void 0:z.resumeCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.oT=function(z,p){p=p===void 0?!1:p;if(this.lQ==="rendering"){var c={currentTimeSec:z,flush:p};Ld(this.W,"p_ip",c);ID(this.Pq,z*1E3,p);this.K||ID(this.Pq,z*1E3,p===void 0?!1:p);var B=this.Hb();if(B){B/=1E3;if(z>=B*.25||p)this.Ja("first_quartile"),Ld(this.W,"p_fq",c);if(z>=B*.5||p)this.Ja("midpoint"),Ld(this.W,"p_sq",c);if(z>=B*.75||p)this.Ja("third_quartile"),Ld(this.W,"p_tq",c);this.X3.get().T.N().experiments.JD("enable_progress_command_flush_on_kabuki")?k6(this.X,z*1E3,p):k6(this.X,z*1E3,QGD(this)? p:!1)}}}; g.V.C3=function(){var z;return((z=wV(this.oa.get(),1))==null?void 0:z.clientPlaybackNonce)||""}; g.V.iK=function(z,p){z.layoutId!==this.layout.layoutId?this.JI.zg(this.slot,z,new Xo("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"):p()}; g.V.Rw=function(z,p,c){if(p.layoutId===this.layout.layoutId)switch(this.lQ="not_rendering",this.layoutExitReason=void 0,this.V4()||(z=c!=="normal"||this.position+1===this.V)&&this.oD(z),this.xM(c),this.hm(0),c){case "abandoned":if(jD(this.Pq,"impression")){var B,H=((B=mO(this))==null?void 0:B.abandonCommands)||[];NL(this.vM.get(),H,this.layout.layoutId)}break;case "normal":B=((H=mO(this))==null?void 0:H.completeCommands)||[];NL(this.vM.get(),B,this.layout.layoutId);break;case "skipped":var T;B=((T= mO(this))==null?void 0:T.skipCommands)||[];NL(this.vM.get(),B,this.layout.layoutId)}}; g.V.Uq=function(){return this.layout.layoutId}; g.V.rV=function(){return this.G}; g.V.Op=function(){if(this.lQ==="rendering"){this.Pq.Ja("active_view_measurable");var z,p=((z=mO(this))==null?void 0:z.activeViewMeasurableCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.BT=function(){if(this.lQ==="rendering"){this.Pq.Ja("active_view_fully_viewable_audible_half_duration");var z,p=((z=mO(this))==null?void 0:z.activeViewFullyViewableAudibleHalfDurationCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.gx=function(){if(this.lQ==="rendering"){this.Pq.Ja("active_view_viewable");var z,p=((z=mO(this))==null?void 0:z.activeViewViewableCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.xd=function(){if(this.lQ==="rendering"){this.Pq.Ja("audio_audible");var z,p=((z=mO(this))==null?void 0:z.activeViewAudioAudibleCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.Gy=function(){if(this.lQ==="rendering"){this.Pq.Ja("audio_measurable");var z,p=((z=mO(this))==null?void 0:z.activeViewAudioMeasurableCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}}; g.V.oD=function(z){this.fB.get().oD(Ei(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,z,this.position,this.V,!1)}; g.V.onFullscreenToggled=function(z){if(this.lQ==="rendering")if(z){this.D_("fullscreen");var p,c=((p=mO(this))==null?void 0:p.fullscreenCommands)||[];NL(this.vM.get(),c,this.layout.layoutId)}else this.D_("end_fullscreen"),p=((c=mO(this))==null?void 0:c.endFullscreenCommands)||[],NL(this.vM.get(),p,this.layout.layoutId)}; g.V.onVolumeChange=function(){if(this.lQ==="rendering")if(this.VI.get().isMuted()){uB(this,"mute");var z,p=((z=mO(this))==null?void 0:z.muteCommands)||[];NL(this.vM.get(),p,this.layout.layoutId)}else uB(this,"unmute"),z=((p=mO(this))==null?void 0:p.unmuteCommands)||[],NL(this.vM.get(),z,this.layout.layoutId)}; g.V.gk=function(){}; g.V.Hu=function(){}; g.V.Fv=function(){}; g.V.yT=function(){}; g.V.UB=function(){}; g.V.D_=function(z){this.Pq.D_(z,!this.K)}; g.V.Ja=function(z){this.Pq.Ja(z,!this.K)}; g.V.V4=function(){var z=Ei(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(P7("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.X3.get().V4(z)};g.Y(WS,hO);g.V=WS.prototype;g.V.hF=function(){}; g.V.Db=function(){var z=this.u8.get();z.Q2===this&&(z.Q2=null);this.y8.stop()}; g.V.kO=function(){this.y8.stop();hO.prototype.o2.call(this)}; g.V.De=function(){Cg(this);hO.prototype.Gs.call(this)}; g.V.Hb=function(){return Ei(this.gA().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.V.e5=function(z,p){var c=this;this.iK(z,function(){c.lQ!=="rendering_stop_requested"&&(c.lQ="rendering_stop_requested",c.layoutExitReason=p,Rh(c,p),c.y8.stop())})}; g.V.xr=function(){var z=Date.now(),p=z-this.mT;this.mT=z;this.VT+=p;this.VT>=this.Hb()?this.xJ():(this.oT(this.VT/1E3),yD(this,this.VT))}; g.V.xM=function(){}; g.V.CD=function(){}; g.Y(e4,WS);g.V=e4.prototype;g.V.Pf=function(z){if(this.lQ!=="not_rendering"){z=S4(this,z);var p=this.VI.get().getPresentingPlayerType()===2;this.lQ==="rendering_start_requested"?p&&hd(z)&&this.bj():p?g.wn(z,2)?P7("Receive player ended event during MediaBreak",this.PM(),this.gA()):$N(this,z):this.aX()}}; g.V.q0=function(){oQB(this);sCY(this.VI.get());this.u8.get().Q2=this;NZ("pbp")||NZ("pbs")||z4("pbp");NZ("pbp","watch")||NZ("pbs","watch")||z4("pbp",void 0,"watch");this.bj()}; g.V.FZ=function(z){this.fB.get();var p=Ei(z.clientMetadata,"metadata_type_ad_placement_config").kind,c=this.position===0;z=Ei(z.clientMetadata,"metadata_type_linked_in_player_layout_type");z={adBreakType:Kg(p),adType:pHu(z)};var B=void 0;c?p!=="AD_PLACEMENT_KIND_START"&&(B="video_to_ad"):B="ad_to_ad";kw("ad_mbs",void 0,B);g.gO(z,B);Cg(this)}; g.V.aX=function(){this.pw()}; g.V.xJ=function(){U6E(this);this.pw()}; g.Y(lB,WS);g.V=lB.prototype;g.V.Pf=function(z){this.lQ!=="not_rendering"&&(z=S4(this,z),$N(this,z))}; g.V.q0=function(){P7("Not used in SSAP")}; g.V.FZ=function(){Cg(this)}; g.V.aX=function(){P7("Not used in SSAP")}; g.V.xJ=function(){U6E(this);this.JI.Pw(this.PM(),this.gA(),"normal")}; g.Y(vS,lB);vS.prototype.e5=function(z,p){var c=this;this.iK(z,function(){Rr(c.D,p)&&(c.lQ="rendering_stop_requested",c.layoutExitReason=p,Rh(c,p),c.y8.stop())})}; vS.prototype.startRendering=function(z){ar(PS(this));AO(this,z)&&(OC(this),this.u8.get().Q2=this)};g.Y(FQ,hO);g.V=FQ.prototype;g.V.aX=function(){this.pw()}; g.V.Pf=function(z){if(this.lQ!=="not_rendering"){z=S4(this,z);var p=this.VI.get().getPresentingPlayerType()===2;this.lQ==="rendering_start_requested"?p&&hd(z)&&this.bj():!p||g.wn(z,2)?this.pw():$N(this,z)}}; g.V.hF=function(){Ei(this.gA().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Ei(this.gA().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.V.Db=function(){Ei(this.gA().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Mw){var z=this.context.K2,p=this.Mw,c=this.gA().layoutId;if(Zp(z.X3.get(),!0)){var B={};z.kA("mccru",(B.cid=p,B.p_ac=c,B))}this.By.get().removeCueRange(this.Mw)}this.Mw=void 0;var H;(H=this.Wv)==null||H.dispose();this.KG&&this.KG.dispose()}; g.V.q0=function(z){var p=Ih(this.X3.get()),c=j4(this.X3.get());if(p&&c&&!this.V4()){c=Ei(z.clientMetadata,"metadata_type_preload_player_vars");var B=g.P3(this.X3.get().T.N().experiments,"html5_preload_wait_time_secs");c&&this.KG&&this.KG.start(B*1E3)}gQx(this,z);oQB(this);p?(c=this.U1.get(),z=Ei(z.clientMetadata,"metadata_type_player_vars"),c.T.loadVideoByPlayerVars(z,!1,2)):BRv(this.U1.get(),Ei(z.clientMetadata,"metadata_type_player_vars"));var H;(H=this.Wv)==null||H.start();p||this.U1.get().T.playVideo(2)}; g.V.FZ=function(){var z;(z=this.Wv)==null||z.stop();this.Mw="adcompletioncuerange:"+this.gA().layoutId;this.By.get().addCueRange(this.Mw,0x7ffffffffffff,0x8000000000000,!1,this,2,2);z=this.context.K2;var p=this.Mw,c=this.gA().layoutId;if(Zp(z.X3.get(),!0)){var B={};z.kA("mccr",(B.cid=p,B.p_ac=c,B))}(this.adCpn=FsY(this))||P7("Media layout confirmed started, but ad CPN not set.");this.lk.get().TV("onAdStart",this.adCpn);this.QB=Date.now()}; g.V.Hb=function(){var z;return(z=wV(this.oa.get(),2))==null?void 0:z.nX}; g.V.o$=function(){this.Pq.D_("clickthrough")}; g.V.e5=function(z,p){var c=this;this.iK(z,function(){if(c.lQ!=="rendering_stop_requested"){c.lQ="rendering_stop_requested";c.layoutExitReason=p;Rh(c,p);var B;(B=c.Wv)==null||B.stop();c.KG&&c.KG.stop();G3E(c)}})}; g.V.onCueRangeEnter=function(z){if(z!==this.Mw)P7("Received CueRangeEnter signal for unknown layout.",this.PM(),this.gA(),{cueRangeId:z});else{var p=this.context.K2,c=this.gA().layoutId;if(Zp(p.X3.get(),!0)){var B={};p.kA("mccre",(B.cid=z,B.p_ac=c,B))}this.By.get().removeCueRange(this.Mw);this.Mw=void 0;c$(this.context.X3.get(),"html5_ssap_flush_at_stop_rendering")&&this.V4()||(z=Ei(this.gA().clientMetadata,"metadata_type_video_length_seconds"),this.oT(z,!0),this.Ja("complete"))}}; g.V.xM=function(z){z!=="abandoned"&&this.lk.get().TV("onAdComplete");this.lk.get().TV("onAdEnd",this.adCpn)}; g.V.onCueRangeExit=function(){}; g.V.CD=function(z){this.lQ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&z>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.VI.get().Yp(!0),this.oT(z))}; g.V.oT=function(z,p){hO.prototype.oT.call(this,z,p===void 0?!1:p);p=Date.now()-this.QB;var c=z*1E3,B={contentCpn:this.C3(),adCpn:FsY(this)};if(z-this.oU>=5){var H=p=2||(this.s1.e5(this.layout,p),z=c$(this.params.context.X3.get(),"html5_ssap_pass_transition_reason")&&p==="abandoned",this.LP()&&!z&&(c$(this.params.context.X3.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(p)||P7("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:p})),this.tH.get().finishSegmentByCpn(this.layout.layoutId, wV(this.oa.get(),1).clientPlaybackNonce,Z0(p,this.params.context.X3))),this.VI.get().removeListener(this),this.Bh()&&SU(this.s1.Dl())&&this.qC.Rw(this.slot,this.layout,this.s1.Dl().W))}; g.V.Sl=function(z,p,c){EQN({cpn:z,Xj:this.oa.get(),oJ:!0});this.gA().layoutId!==z||c$(this.params.context.X3.get(),"html5_ssap_pass_transition_reason")&&c===5||(this.s1.Dl().currentState<2&&(z=Lg(c,this.params.context.X3),z==="error"?this.qC.zg(this.slot,this.layout,new Xo("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:c},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):NP(this.Ij, this.layout,z)),c$(this.params.context.X3.get(),"html5_ssap_exit_without_waiting_for_transition")||this.qC.Rw(this.slot,this.layout,this.s1.Dl().W))};g.Y(UC,g.e);g.V=UC.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.gY=function(){}; g.V.lA=function(){return this.eh[this.MN]}; g.V.JA=function(){return this.MN}; g.V.kO=function(z,p){var c=this.lA();p.layoutId!==kN(c,z,p)?P7("pauseLayout for a PlayerBytes layout that is not currently active",z,p):c.kO()}; g.V.De=function(z,p){var c=this.lA();p.layoutId!==kN(c,z,p)?P7("resumeLayout for a PlayerBytes layout that is not currently active",z,p):c.De()}; g.V.PT=function(z,p){var c=this.lA();TOx(this,z,p);b0f(c,z,p)&&this.hj(c.PM(),c.gA(),"skipped")}; g.V.Ee=function(z,p){var c=this.lA();V0Q(this);DZE(c,z,p)&&(z=t0S(this,c,z,p),z!==void 0&&(this.V4()?P7("Should not happen. Should delete"):xZW(this,c.PM(),c.gA(),z)))}; g.V.QW=function(z,p){var c=Object.assign({},sC(this),{layoutId:p.layoutId}),B=c.layoutId,H=c.oJ;if(c.v1){var T={};uz(c.Xj,"wrse",(T.ec=B,T.is=H,T.ctp=Kd(B),T))}CO(this.P1,z,p)}; g.V.sW=function(z,p){var c;(c=this.lA())==null||c.sW(z,p)}; g.V.Rw=function(z,p,c){p.layoutId===this.gA().layoutId&&(this.wG=!1,R9(this.KB(),this));var B;(B=this.lA())==null||B.Rw(z,p,c)}; g.V.CD=function(z){var p;(p=this.lA())==null||p.CD(z)}; g.V.a7=function(z,p,c){this.JA()===-1&&(this.callback.sW(this.slot,this.layout),this.MN++);var B=this.lA();B?(B.Rx(z,p,c),this.V4()&&this.callback.zg(this.slot,this.layout,p,c)):P7("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.JA()),layoutId:this.gA().layoutId})}; g.V.onFullscreenToggled=function(z){var p;(p=this.lA())==null||p.onFullscreenToggled(z)}; g.V.gk=function(z){var p;(p=this.lA())==null||p.gk(z)}; g.V.Fv=function(z){var p;(p=this.lA())==null||p.Fv(z)}; g.V.onVolumeChange=function(){var z;(z=this.lA())==null||z.onVolumeChange()}; g.V.d2=function(z,p,c){eE(this.P1,z,p,c)}; g.V.RE=function(z){z.startRendering(z.gA())}; g.V.init=function(){var z=Ei(this.gA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=this);if(this.eh.length<1)throw new k("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.eh.length)});if(z=Ei(this.gA().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))z.current=this;z=g.m(this.eh);for(var p=z.next();!p.done;p=z.next())p=p.value,p.init(),ygx(this.P1,this.slot,p.gA()),C$x(this.P1,this.slot,p.gA()); if(this.V4())for(this.oa.get().addListener(this),bJW(i0Y(this),this.oa.get()),z=i0Y(this),z=g.m(z),p=z.next();!p.done;p=z.next())this.W$(p.value)}; g.V.W$=function(z){var p=Ei(z.clientMetadata,"metadata_type_player_vars");p?(z.layoutType!=="LAYOUT_TYPE_MEDIA"&&P7("Non-video ad contains playerVars",this.slot,z),this.U1.get().addPlayerResponseForAssociation({playerVars:p})):(z=csu(z),this.U1.get().addPlayerResponseForAssociation({US:z}))}; g.V.release=function(){var z=Ei(this.gA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=null);if(z=Ei(this.gA().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))z.current=null;z=g.m(this.eh);for(var p=z.next();!p.done;p=z.next())p=p.value,eCQ(this.P1,this.slot,p.gA()),p.release();this.V4()&&(this.oa.get().removeListener(this),VTE())}; g.V.iK=function(z){return z.layoutId!==this.gA().layoutId?(this.callback.zg(this.PM(),z,new Xo("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.gA().layoutId+("and LayoutType: "+this.gA().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.V.VD=function(){this.VI.get().addListener(this);w9(this.KB(),this)}; g.V.Pf=function(z){if(z.state.isError()){var p,c;this.a7((p=z.state.DN)==null?void 0:p.errorCode,new Xo("There was a player error during this media layout.",{playerErrorCode:(c=z.state.DN)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(p=this.lA())&&p.Pf(z)}; g.V.V4=function(){var z=Ei(this.PM().clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(P7("Expected SSAP eligibility in PlayerBytes slots",this.PM(),this.gA()),!1):this.X3.get().V4(z)}; g.V.Hu=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.yT=function(){}; g.V.UB=function(){}; g.Y(fg,UC);g.V=fg.prototype;g.V.TN=function(z,p,c){this.hj(z,p,c)}; g.V.j3=function(z,p){this.hj(z,p,"error")}; g.V.hj=function(z,p,c){var B=this;XHx(this,z,p,c,function(){gV(B,B.JA()+1)})}; g.V.startRendering=function(z){this.iK(z)&&(this.VD(),twN(this.fB.get()),J2x(this.X3.get())||sCY(this.VI.get()),this.JA()===-1&&gV(this,this.JA()+1))}; g.V.e5=function(z,p){var c=this;this.wG=!0;this.JA()===this.eh.length?this.callback.Rw(this.slot,this.layout,p):(z=this.lA(),z.e5(z.gA(),p),this.aU=function(){c.callback.Rw(c.slot,c.layout,p)}); this.VI.get().T.zb();BRv(this.U1.get(),{});z=gq(this.VI.get(),1);z.isPaused()&&!g.r(z,2)&&this.VI.get().playVideo();this.VI.get().removeListener(this);this.wG&&EwY(this)}; g.V.Sl=function(){}; g.V.Z3=function(){}; g.V.Pw=function(){}; g.Y(zN,UC);g.V=zN.prototype;g.V.TN=function(z,p,c){z=Object.assign({},sC(this),{layoutId:p.layoutId,layoutExitReason:c});p=z.layoutId;c=z.layoutExitReason;var B={};uz(z.Xj,"prse",(B.xc=p,B.ler=c,B.ctp=Kd(p),B))}; g.V.j3=function(){P7("onSubLayoutError in SSAP")}; g.V.hj=function(){P7("exitSubLayoutAndPlayNext in SSAP")}; g.V.lA=function(){return this.fN}; g.V.JA=function(){var z=this;return this.eh.findIndex(function(p){var c;return p.gA().layoutId===((c=z.fN)==null?void 0:c.gA().layoutId)})}; g.V.RE=function(z){ms(this.fN===void 0,"replacing another adapter");this.fN=z;z.startRendering(z.gA())}; g.V.d2=function(z,p,c){eE(this.P1,z,p,c);var B;ms(p.layoutId===((B=this.fN)==null?void 0:B.gA().layoutId),"currentAdapter does not match exiting layout",{slot:z?"slot: "+z.slotType:"",subLayout:YQ(p)})&&(this.fN=void 0)}; g.V.release=function(){UC.prototype.release.call(this);ms(this.fN===void 0,"currentAdapter is still active during release");this.fN=void 0}; g.V.LP=function(){return this.VI.get().getPresentingPlayerType()===2}; g.V.e5=function(z,p){function c(){pC(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(p)||P7("Composite stopRendering: Unexpected layout exit reason",this.slot,z,{layoutExitReason:p}))} function B(){this.fN&&cT(this,this.fN,p);if(this.LP()&&(!pC(this)||p!=="abandoned")){c.call(this);var T;var b=((T=this.oa.get().T.getVideoData())==null?void 0:T.clientPlaybackNonce)||"";T=wV(this.oa.get(),1).clientPlaybackNonce;this.tH.get().finishSegmentByCpn(b,T,Z0(p,this.X3))}qMN(this,p)} function H(){if(this.fN){var T=this.fN;T.Dl().currentState<2&&T.e5(T.gA(),p);T=pC(this)&&p==="abandoned";this.LP()&&!T&&(c.call(this),this.tH.get().finishSegmentByCpn(this.fN.gA().layoutId,wV(this.oa.get(),1).clientPlaybackNonce,Z0(p,this.X3)))}} ms(z.layoutId===this.gA().layoutId,"StopRendering for wrong layout")&&Rr(this.A4.K,p)&&(this.Bh()?B.call(this):H.call(this))}; g.V.Rw=function(z,p,c){UC.prototype.Rw.call(this,z,p,c);p.layoutId===this.gA().layoutId&&this.VI.get().removeListener(this)}; g.V.C3=function(){return wV(this.oa.get(),1).clientPlaybackNonce}; g.V.Sl=function(z,p,c){EQN(Object.assign({},sC(this),{cpn:z}));if(!pC(this)||c!==5)if(this.Bh()){if(this.fN&&this.fN.gA().layoutId!==p){var B=this.fN.gA().layoutId;B!==z&&P7("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:B,exitingCpn:z,enteringCpn:p});z=Lg(c,this.X3);cT(this,this.fN,z)}else this.fN&&P7("onClipExited: active layout is entering again");p===this.C3()&&M0V(this,c)}else{if(this.fN&&this.fN.gA().layoutId===z)JsW(this,this.fN,c);else{var H;P7("Exiting cpn does not match active cpn", this.slot,(B=this.fN)==null?void 0:B.gA(),{exitingCpn:z,transitionReason:c,activeCpn:(H=this.fN)==null?void 0:H.gA().layoutId})}p===this.C3()&&(this.fN!==void 0&&(P7("active adapter is not properly exited",this.slot,this.layout,{activeLayout:YQ(this.fN.gA())}),JsW(this,this.fN,c)),M0V(this,c),qMN(this,this.A4.K.W))}}; g.V.Bh=function(){return c$(this.X3.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.V.startRendering=function(z){this.iK(z)&&(z=this.A4,ms(z.W===1,"tickStartRendering: state is not initial"),z.W=2,this.VD())}; g.V.Z3=function(z){x6x(Object.assign({},sC(this),{cpn:z}));var p=this.eh.find(function(c){return c.gA().layoutId===z}); p?(this.A4.W!==2&&(sRQ(this.xb,this.slot.slotId),ms(this.A4.W===2,"Expect started"),this.callback.sW(this.slot,this.layout)),this.RE(p),CO(this.P1,this.slot,p.gA())):YMf(this,z)}; g.V.PT=function(z,p){TOx(this,z,p);var c=this.lA();c?b0f(c,z,p)&&mZY(this,"skipped"):hax(this,"onSkipRequested")}; g.V.Ee=function(z,p){var c;a:{if(c=this.lA()){if(V0Q(this),DZE(c,z,p)&&(z=t0S(this,c,z,p),z!==void 0)){c={Nd:c,z5A:this.eh[z]};break a}}else hax(this,"SkipWithAdPodSkip");c=void 0}if(z=c)c=z.Nd,p=z.z5A,z=c.gA().layoutId,this.Bh()?cT(this,c,"skipped"):c.e5(c.gA(),"skipped"),c=p.gA().layoutId,this.tH.get().finishSegmentByCpn(z,c,Z0("skipped",this.X3))}; g.V.QW=function(){P7("Not used in html5_ssap_fix_layout_exit")}; g.V.Pf=function(z){var p;(p=this.lA())==null||p.Pf(z)}; g.V.a7=function(){P7("Not used in html5_ssap_fix_layout_exit")}; g.V.Pw=function(z,p,c){var B;if(((B=this.lA())==null?void 0:B.gA().layoutId)!==p.layoutId)return void P7("requestToExitSubLayout: wrong layout");mZY(this,c)};g.Y(BT,g.e);g.V=BT.prototype;g.V.PM=function(){return this.s1.PM()}; g.V.gA=function(){return this.s1.gA()}; g.V.init=function(){var z=Ei(this.gA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=this);this.hF()}; g.V.hF=function(){this.s1.init()}; g.V.release=function(){var z=Ei(this.gA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=null);this.Db()}; g.V.Db=function(){this.s1.release()}; g.V.kO=function(){this.s1.kO()}; g.V.De=function(){this.s1.De()}; g.V.PT=function(z,p){P7("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.PM(),this.gA(),{requestingSlot:z,requestingLayout:p})}; g.V.startRendering=function(z){z.layoutId!==this.gA().layoutId?this.callback.zg(this.PM(),z,new Xo("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.gA().layoutId+("and LayoutType: "+this.gA().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.VI.get().addListener(this),w9(this.KB(),this),twN(this.fB.get()),J2x(this.X3.get())||sCY(this.VI.get()),this.s1.startRendering(z))}; g.V.e5=function(z,p){this.wG=!0;this.s1.e5(z,p);this.VI.get().T.zb();BRv(this.U1.get(),{});z=gq(this.VI.get(),1);z.isPaused()&&!g.r(z,2)&&this.VI.get().playVideo();this.VI.get().removeListener(this);this.wG&&this.s1.aX()}; g.V.sW=function(z,p){this.s1.sW(z,p)}; g.V.Rw=function(z,p,c){p.layoutId===this.gA().layoutId&&(this.wG=!1,R9(this.KB(),this));this.s1.Rw(z,p,c);p.layoutId===this.gA().layoutId&&GC(this.fB.get())}; g.V.CD=function(z){this.s1.CD(z)}; g.V.Pf=function(z){if(z.state.isError()){var p,c;this.a7((p=z.state.DN)==null?void 0:p.errorCode,new Xo("There was a player error during this media layout.",{playerErrorCode:(c=z.state.DN)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.s1.Pf(z)}; g.V.a7=function(z,p,c){this.s1.Rx(z,p,c)}; g.V.onFullscreenToggled=function(z){this.s1.onFullscreenToggled(z)}; g.V.gk=function(z){this.s1.gk(z)}; g.V.Fv=function(z){this.s1.Fv(z)}; g.V.onVolumeChange=function(){this.s1.onVolumeChange()}; g.V.Hu=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.yT=function(){}; g.V.UB=function(){};g.V=HT.prototype;g.V.PM=function(){return this.slot}; g.V.gA=function(){return this.layout}; g.V.init=function(){this.HU.get().addListener(this);this.VI.get().addListener(this);var z=Ei(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var p=Ei(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.X){var c=this.HU.get().r0.slice(-1)[0];c!==void 0&&(z=c.startSecs*1E3,p=(c.startSecs+c.UI)*1E3)}this.pz(z,p);var B;c=(B=this.oa.get().FU)==null?void 0:B.clientPlaybackNonce;B=this.layout.Gr.adClientDataEntry;iA(this.u8.get(),{daiStateTrigger:{filledAdsDurationMs:p-z,contentCpn:c, adClientData:B}});var H=this.HU.get();H=O0i(H.D,z,p);H!==null&&(iA(this.u8.get(),{daiStateTrigger:{filledAdsDurationMs:H-z,contentCpn:c,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:B}}),this.tH.get().h9(H,p))}; g.V.release=function(){this.Db();this.HU.get().removeListener(this);this.VI.get().removeListener(this)}; g.V.startRendering=function(){this.q0();this.callback.sW(this.slot,this.layout)}; g.V.e5=function(z,p){this.Kr(p);this.driftRecoveryMs!==null&&(TN(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(wHE(this)-Ei(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.VI.get().T.yy()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Rw(this.slot,this.layout,p)}; g.V.VZ=function(){return!1}; g.V.yJ=function(z){var p=Ei(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=Ei(this.layout.clientMetadata,"metadata_type_layout_exit_ms");z*=1E3;if(p<=z&&z0&&lG(this.W(),p)}; g.V.Sm=function(z){this.L.delete(z.slotId);for(var p=[],c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next()){B=B.value;var H=B.trigger;H instanceof pl&&H.triggeringSlotId===z.slotId&&p.push(B)}p.length>0&&lG(this.W(),p)}; g.V.dk=function(z){for(var p=[],c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next()){B=B.value;var H=B.trigger;H instanceof Qw&&H.slotType===z.slotType&&H.W!==z.slotId&&p.push(B)}p.length>0&&lG(this.W(),p)}; g.V.nN=function(z){this.D.add(z.slotId);for(var p=[],c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next())B=B.value,B.trigger instanceof gg&&z.slotId===B.trigger.triggeringSlotId&&p.push(B);p.length>0&&lG(this.W(),p)}; g.V.Ge=function(z){this.D.delete(z.slotId);this.X.add(z.slotId);for(var p=[],c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next())if(B=B.value,B.trigger instanceof GN)z.slotId===B.trigger.triggeringSlotId&&p.push(B);else if(B.trigger instanceof WT){var H=B.trigger;z.slotId===H.slotId&&this.K.has(H.triggeringLayoutId)&&p.push(B)}p.length>0&&lG(this.W(),p)}; g.V.wk=function(z){for(var p=[],c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next())B=B.value,B.trigger instanceof Nu&&z.slotId===B.trigger.triggeringSlotId&&p.push(B);p.length>0&&lG(this.W(),p)}; g.V.ZN=function(z){for(var p=[],c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next())B=B.value,B.trigger instanceof fC&&z.slotId===B.trigger.triggeringSlotId&&p.push(B);p.length>0&&lG(this.W(),p)}; g.V.TO=function(z,p){this.V.add(p.layoutId)}; g.V.Li=function(z,p){this.V.delete(p.layoutId)}; g.V.sW=function(z,p){this.K.add(p.layoutId);for(var c=[],B=g.m(this.Yt.values()),H=B.next();!H.done;H=B.next())if(H=H.value,H.trigger instanceof yw)p.layoutId===H.trigger.triggeringLayoutId&&c.push(H);else if(H.trigger instanceof nC){var T=H.trigger;z.slotType===T.slotType&&p.layoutType===T.layoutType&&p.layoutId!==T.W&&c.push(H)}else H.trigger instanceof WT&&(T=H.trigger,p.layoutId===T.triggeringLayoutId&&this.X.has(T.slotId)&&c.push(H));c.length>0&&lG(this.W(),c)}; g.V.Rw=function(z,p,c){this.K.delete(p.layoutId);z=[];for(var B=g.m(this.Yt.values()),H=B.next();!H.done;H=B.next())if(H=H.value,H.trigger instanceof ev&&p.layoutId===H.trigger.triggeringLayoutId&&z.push(H),H.trigger instanceof CC){var T=H.trigger;p.layoutId===T.triggeringLayoutId&&T.W.includes(c)&&z.push(H)}z.length>0&&lG(this.W(),z)}; g.V.Nn=function(){}; g.V.b6=function(){this.X.clear()}; g.V.zo=function(){};g.Y(nc,g.e);nc.prototype.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");if(!(p instanceof LC))throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in CloseRequestedTriggerAdapter");this.Yt.set(p.triggerId,new Hr(z,p,c,B))}; nc.prototype.Tx=function(z){this.Yt.delete(z.triggerId)};g.Y(rW,g.e);rW.prototype.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");if(!(p instanceof Zr||p instanceof UX))throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Yt.set(p.triggerId,new Hr(z,p,c,B))}; rW.prototype.Tx=function(z){this.Yt.delete(z.triggerId)}; rW.prototype.b6=function(z){for(var p=[],c=p.push,B=c.apply,H=[],T=g.m(this.Yt.values()),b=T.next();!b.done;b=T.next())b=b.value,b.trigger instanceof Zr&&b.trigger.y0===z&&H.push(b);B.call(c,p,g.A(H));c=p.push;B=c.apply;H=[];T=g.m(this.Yt.values());for(b=T.next();!b.done;b=T.next())b=b.value,b.trigger instanceof UX&&b.trigger.W!==z&&H.push(b);B.call(c,p,g.A(H));p.length&&lG(this.W(),p)}; rW.prototype.zo=function(z){for(var p=[],c=p.push,B=c.apply,H=[],T=g.m(this.Yt.values()),b=T.next();!b.done;b=T.next()){b=b.value;var D=b.trigger;D instanceof UX&&D.W===z&&H.push(b)}B.call(c,p,g.A(H));p.length&&lG(this.W(),p)};g.Y(UO,g.e);g.V=UO.prototype;g.V.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");var H="adtriggercuerange:"+p.triggerId;if(p instanceof F_)IkB(this,z,p,c,B,H,p.W.start,p.W.end,p.y0,p.visible);else if(p instanceof dg)IkB(this,z,p,c,B,H,0x7ffffffffffff,0x8000000000000,p.y0,p.visible);else throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in CueRangeTriggerAdapter");}; g.V.Tx=function(z){var p=this.Yt.get(z.triggerId);p&&this.By.get().removeCueRange(p.cueRangeId);this.Yt.delete(z.triggerId)}; g.V.onCueRangeEnter=function(z){var p=jRD(this,z);if(p&&(p=this.Yt.get(p)))if(g.r(gq(this.VI.get()),32))this.W.add(p.cueRangeId);else{var c=p==null?void 0:p.hT.trigger;if(c instanceof F_||c instanceof dg){if(Zp(this.context.X3.get())){var B=p.hT.slot,H=p.hT.layout,T={};this.context.K2.kA("cre",(T.ca=p.hT.category,T.tt=c.triggerType,T.st=B.slotType,T.lt=H==null?void 0:H.layoutType,T.cid=z,T))}lG(this.K(),[p.hT])}}}; g.V.onCueRangeExit=function(z){(z=jRD(this,z))&&(z=this.Yt.get(z))&&this.W.delete(z.cueRangeId)}; g.V.Pf=function(z){if(Ou(z,16)<0){z=g.m(this.W);for(var p=z.next();!p.done;p=z.next())this.onCueRangeEnter(p.value,!0);this.W.clear()}}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.sW=function(){}; g.V.Rw=function(){}; g.V.Nn=function(){}; g.V.CD=function(){}; g.V.onFullscreenToggled=function(){}; g.V.gk=function(){}; g.V.Hu=function(){}; g.V.Fv=function(){}; g.V.onVolumeChange=function(){}; g.V.yT=function(){}; g.V.UB=function(){};g.Y(sO,g.e);g.V=sO.prototype; g.V.FW=function(z,p,c,B){if(this.K.has(p.triggerId)||this.D.has(p.triggerId))throw new k("Tried to re-register the trigger.");z=new Hr(z,p,c,B);if(z.trigger instanceof jv)this.K.set(z.trigger.triggerId,z);else if(z.trigger instanceof lA)this.D.set(z.trigger.triggerId,z);else throw new k("Incorrect TriggerType: Tried to register trigger of type "+z.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(z.trigger.triggerId)&&z.slot.slotId===this.W&&lG(this.X(),[z])}; g.V.Tx=function(z){this.K.delete(z.triggerId);this.D.delete(z.triggerId)}; g.V.gY=function(z){z=z.slotId;if(this.W!==z){var p=[];this.W!=null&&p.push.apply(p,g.A(FBQ(this.D,this.W)));z!=null&&p.push.apply(p,g.A(FBQ(this.K,z)));this.W=z;p.length&&lG(this.X(),p)}}; g.V.Sl=function(){}; g.V.Z3=function(){};g.Y(kH,g.e);g.V=kH.prototype;g.V.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");if(!(p instanceof rg))throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Yt.set(p.triggerId,new Hr(z,p,c,B))}; g.V.Tx=function(z){this.Yt.delete(z.triggerId)}; g.V.sW=function(){}; g.V.Rw=function(){}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){};g.Y(gW,g.e);g.V=gW.prototype;g.V.Nn=function(z,p){for(var c=[],B=g.m(this.Yt.values()),H=B.next();!H.done;H=B.next()){H=H.value;var T=H.trigger;T.opportunityType===z&&(T.associatedSlotId&&T.associatedSlotId!==p||c.push(H))}c.length&&lG(this.W(),c)}; g.V.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");if(!(p instanceof fUY))throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in OpportunityEventTriggerAdapter");this.Yt.set(p.triggerId,new Hr(z,p,c,B))}; g.V.Tx=function(z){this.Yt.delete(z.triggerId)}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.sW=function(){}; g.V.Rw=function(){};g.Y(Gj,g.e);g.V=Gj.prototype;g.V.FW=function(z,p,c,B){z=new Hr(z,p,c,B);if(p instanceof vT||p instanceof os||p instanceof Is||p instanceof sX||p instanceof NOB){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");this.Yt.set(p.triggerId,z);c=c.slotId;z=this.D.has(c)?this.D.get(c):new Set;z.add(p);this.D.set(c,z)}else throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in PrefetchTriggerAdapter");}; g.V.Tx=function(z){this.Yt.delete(z.triggerId)}; g.V.Ci=function(z){var p=z.slotId;if(this.D.has(p)){z=0;var c=new Set;p=g.m(this.D.get(p));for(var B=p.next();!B.done;B=p.next())if(B=B.value,c.add(B.triggerId),B instanceof os&&B.breakDurationMs){z=B.breakDurationMs;break}Np(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",z,c)}}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.sW=function(){}; g.V.Rw=function(){}; g.V.Nn=function(){}; g.V.VZ=function(z){if(this.W){this.K&&this.K.stop();this.X&&g.H4(this.X);z=z.UI*1E3+1E3;for(var p=0,c=g.m(this.Yt.values()),B=c.next();!B.done;B=c.next())B=B.value.trigger,B instanceof vT&&B.breakDurationMs<=z&&B.breakDurationMs>p&&(p=B.breakDurationMs);z=p;if(z>0)return Np(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",z,new Set,!0),Np(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",z,new Set,!1),!0}return!1}; g.V.yJ=function(){}; g.V.b6=function(z){this.W&&this.W.contentCpn!==z?(P7("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:z,fetchInstructionsCpn:this.W.contentCpn}),fc(this)):nZY(this)}; g.V.zo=function(z){this.W&&this.W.contentCpn!==z&&P7("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:z,fetchInstructionsCpn:this.W.contentCpn},!0);fc(this)}; g.V.lh=function(z){var p=this;if(this.W)P7("Unexpected multiple fetch instructions for the current content");else{this.W=z;z=rLx(z);this.K=new g.B4(function(){nZY(p)},z?z:6E5); this.K.start();this.X=new g.B4(function(){p.W&&(p.K&&(p.K.stop(),p.K.start()),oZY(p,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},QRN(this.W)); z=this.VI.get().getCurrentTimeSec(1,!1);for(var c=g.m(this.HU.get().r0),B=c.next();!B.done;B=c.next())B=B.value,Vw(this.u8.get(),"nocache","ct."+Date.now()+";cmt."+z+";d."+B.UI.toFixed(3)+";tw."+(B.startSecs-z)+";cid."+B.identifier+";")}}; g.V.m0=function(){g.e.prototype.m0.call(this);fc(this)};g.Y(za,g.e);g.V=za.prototype;g.V.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");if(!(p instanceof Br))throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Yt.set(p.triggerId,new Hr(z,p,c,B));z=this.W.has(p.triggeringLayoutId)?this.W.get(p.triggeringLayoutId):new Set;z.add(p);this.W.set(p.triggeringLayoutId,z)}; g.V.Tx=function(z){this.Yt.delete(z.triggerId);if(!(z instanceof Br))throw new k("Incorrect TriggerType: Tried to unregister trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var p=this.K.get(z.triggerId);p&&(p.dispose(),this.K.delete(z.triggerId));if(p=this.W.get(z.triggeringLayoutId))p.delete(z),p.size===0&&this.W.delete(z.triggeringLayoutId)}; g.V.Ci=function(){}; g.V.Sm=function(){}; g.V.dk=function(){}; g.V.nN=function(){}; g.V.Ge=function(){}; g.V.wk=function(){}; g.V.ZN=function(){}; g.V.TO=function(){}; g.V.Li=function(){}; g.V.Nn=function(){}; g.V.sW=function(z,p){var c=this;if(this.W.has(p.layoutId)){z=this.W.get(p.layoutId);z=g.m(z);var B=z.next();for(p={};!B.done;p={nh:void 0},B=z.next())p.nh=B.value,B=new g.B4(function(H){return function(){var T=c.Yt.get(H.nh.triggerId);lG(c.D(),[T])}}(p),p.nh.durationMs),B.start(),this.K.set(p.nh.triggerId,B)}}; g.V.Rw=function(){};g.Y(pk,g.e);pk.prototype.FW=function(z,p,c,B){if(this.Yt.has(p.triggerId))throw new k("Tried to register duplicate trigger for slot.");if(!(p instanceof uA))throw new k("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in VideoTransitionTriggerAdapter.");this.Yt.set(p.triggerId,new Hr(z,p,c,B))}; pk.prototype.Tx=function(z){this.Yt.delete(z.triggerId)};ij.prototype.iP=function(z){return z.kind==="AD_PLACEMENT_KIND_START"};g.Y(Vg,g.e);g.V=Vg.prototype;g.V.logEvent=function(z){this.O0(z)}; g.V.Iz=function(z,p,c){this.O0(z,void 0,void 0,void 0,p,void 0,void 0,void 0,p.adSlotLoggingData,void 0,void 0,c)}; g.V.Ft=function(z,p,c,B){this.O0(z,void 0,void 0,void 0,p,c?c:void 0,void 0,void 0,p.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,B)}; g.V.qq=function(z,p,c,B){c$(this.X3.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"trigger:",c,"slot:",p,"layout:",B);mK(this.W.get())&&this.O0(z,void 0,void 0,void 0,p,B?B:void 0,void 0,c,p.adSlotLoggingData,B?B.adLayoutLoggingData:void 0)}; g.V.t$=function(z,p,c,B,H){this.O0(z,p,c,B,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)}; g.V.Bt=function(z,p,c,B){this.O0("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,B,void 0,void 0,c.adSlotLoggingData,B?B.adLayoutLoggingData:void 0,{errorType:z,errorMessage:p})}; g.V.O0=function(z,p,c,B,H,T,b,D,t,X,x,E){var q=this;E=E===void 0?0:E;c$(this.X3.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"slot:",H,"layout:",T,"ping:",b,"Opportunity:",{opportunityType:p,associatedSlotId:c,pIA:B,xc$:D,adSlotLoggingData:t,adLayoutLoggingData:X});try{var J=function(){if(!q.X3.get().T.N().Y("html5_disable_client_tmp_logs")&&z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){z||P7("Empty PACF event type",H,T);var M=mK(q.W.get()),P={eventType:z,eventOrder:++q.eventCount},O={}; H&&(O.slotData=Y8(M,H));T&&(O.layoutData=aUN(M,T));b&&(O.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:b.W.serializedAdPingMetadata,pingIndex:b.index});D&&(O.triggerData=ML(D.trigger,D.category));p&&(O.opportunityData=Zh_(M,p,c,B));M={organicPlaybackContext:{contentCpn:wV(q.oa.get(),1).clientPlaybackNonce}};M.organicPlaybackContext.isLivePlayback=wV(q.oa.get(),1).La;var R;M.organicPlaybackContext.isMdxPlayback=(R=wV(q.oa.get(),1))==null?void 0:R.isMdxPlayback; var K;if((K=wV(q.oa.get(),1))==null?0:K.daiEnabled)M.organicPlaybackContext.isDaiContent=!0;var Z;if(R=(Z=wV(q.oa.get(),2))==null?void 0:Z.clientPlaybackNonce)M.adVideoPlaybackContext={adVideoCpn:R};M&&(O.externalContext=M);P.adClientData=O;t&&(P.serializedSlotAdServingData=t.serializedSlotAdServingDataEntry);X&&(P.serializedAdServingData=X.serializedAdServingDataEntry);x&&(P.errorInfo=x);g.MG("adsClientStateChange",{adsClientEvent:P})}}; E&&E>0?g.iR(g.bR(),function(){return J()},E):J()}catch(M){c$(this.X3.get(),"html5_log_pacf_logging_errors")&&g.iR(g.bR(),function(){P7(M instanceof Error?M:String(M),H,T,{pacf_message:"exception during pacf logging"})})}};var mog=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.Y(Dx,Vg);g.V=Dx.prototype; g.V.Iz=function(z,p,c){Vg.prototype.Iz.call(this,z,p,c);Zp(this.X3.get())&&(c={},this.context.K2.kA("pacf",(c.et=z,c.st=p.slotType,c.si=p.slotId,c)))}; g.V.Ft=function(z,p,c,B){var H=mog.has(z);Vg.prototype.Ft.call(this,z,p,c,B);Zp(this.X3.get(),H)&&(B={},this.context.K2.kA("pacf",(B.et=z,B.st=p.slotType,B.si=p.slotId,B.lt=c==null?void 0:c.layoutType,B.li=c==null?void 0:c.layoutId,B.p_ac=c==null?void 0:c.layoutId,B)))}; g.V.t$=function(z,p,c,B,H){Vg.prototype.t$.call(this,z,p,c,B,H);Zp(this.X3.get())&&(c={},this.context.K2.kA("pacf",(c.et=z,c.ot=p,c.ss=B==null?void 0:B.length,c)))}; g.V.qq=function(z,p,c,B){Vg.prototype.qq.call(this,z,p,c,B);if(Zp(this.X3.get())){var H={};this.context.K2.kA("pacf",(H.et=z,H.tt=c.trigger.triggerType,H.tc=c.category,H.st=p.slotType,H.si=p.slotId,H.lt=B==null?void 0:B.layoutType,H.li=B==null?void 0:B.layoutId,H.p_ac=B==null?void 0:B.layoutId,H))}}; g.V.Bt=function(z,p,c,B){Vg.prototype.Bt.call(this,z,p,c,B);if(Zp(this.X3.get(),!0)){var H={};this.context.K2.kA("perror",(H.ert=z,H.erm=p,H.st=c.slotType,H.si=c.slotId,H.lt=B==null?void 0:B.layoutType,H.li=B==null?void 0:B.layoutId,H.p_ac=B==null?void 0:B.layoutId,H))}}; g.V.O0=function(z,p,c,B,H,T,b,D,t,X,x){if(g.yi(this.X3.get().T.N())){var E=this.X3.get();E=g.P3(E.T.N().experiments,"H5_async_logging_delay_ms")}else E=void 0;Vg.prototype.O0.call(this,z,p,c,B,H,T,b,D,t,X,x,E)};th.prototype.clear=function(){this.W.clear()};EZ.prototype.resolve=function(z){XG(this,z)}; EZ.prototype.reject=function(z){xx(this,z)}; EZ.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; EZ.prototype.wait=function(){var z=this;return function c(){return xvQ(c,function(B){if(B.W==1)return g.wu(B,2),g.a(B,{Od:z},4);if(B.W!=2)return B.return(B.K);g.$B(B);return g.K_(B,0)})}()}; var PBS=QT(function(z){return qH(z)?z instanceof EZ:!1});Object.freeze({dcH:function(z){var p=tEf(z);return Ah(DLY(p,function(c){return p[c].currentState==="fail"}),function(c){return Number.isNaN(c)?p.map(function(B){return B.state().result}):p[c]})}, wIt:function(z){var p=tEf(z);return Ah(DLY(p),function(){return p.map(function(c){return c.state()})})}});var Rn=window.kfH||"en";uj.prototype.AZ=function(z){this.client=z}; uj.prototype.W=function(){this.clear();this.csn=g.Wu()}; uj.prototype.clear=function(){this.D.clear();this.K.clear();this.X.clear();this.csn=null};Zx.prototype.AZ=function(z){g.iO(an().AZ).bind(an())(z)}; Zx.prototype.clear=function(){g.iO(an().clear).bind(an())()};g.V=Lk.prototype;g.V.AZ=function(z){this.client=z}; g.V.m9=function(z,p){var c=this;p=p===void 0?{}:p;g.iO(function(){var B,H,T,b=((B=g.I(z==null?void 0:z.commandMetadata,g.Jt))==null?void 0:B.rootVe)||((H=g.I(z==null?void 0:z.commandMetadata,yyE))==null?void 0:(T=H.screenVisualElement)==null?void 0:T.uiType);if(b){B=g.I(z==null?void 0:z.commandMetadata,zx1);if(B==null?0:B.parentTrackingParams){var D=g.ZU(B.parentTrackingParams);if(B.parentCsn)var t=B.parentCsn}else p.clickedVisualElement?D=p.clickedVisualElement:z.clickTrackingParams&&(D=g.ZU(z.clickTrackingParams)); a:{B=g.I(z,g.ir);H=g.I(z,UC9);if(B){if(H=xL_(B,"VIDEO")){B={token:H,videoId:B.videoId};break a}}else if(H&&(B=xL_(H,"PLAYLIST"))){B={token:B,playlistId:H.playlistId};break a}B=void 0}p=Object.assign({},{cttAuthInfo:B,parentCsn:t},p);if(g.KN("expectation_logging")){var X;p.loggingExpectations=((X=g.I(z==null?void 0:z.commandMetadata,yyE))==null?void 0:X.loggingExpectations)||void 0}Wt(c,b,D,p)}else g.oc(new g.z6("Error: Trying to create a new screen without a rootVeType",z))})()}; g.V.clickCommand=function(z,p,c){z=z.clickTrackingParams;c=c===void 0?0:c;z?(c=g.Wu(c===void 0?0:c))?(XJi(this.client,c,g.ZU(z),p),p=!0):p=!1:p=!1;return p}; g.V.stateChanged=function(z,p,c){this.visualElementStateChanged(g.ZU(z),p,c===void 0?0:c)}; g.V.visualElementStateChanged=function(z,p,c){c=c===void 0?0:c;c===0&&this.K.has(c)?this.S.push([z,p]):YiW(this,z,p,c)};lj.prototype.fetch=function(z,p,c){var B=this,H=PGf(z,p,c);return new Promise(function(T,b){function D(){if(c==null?0:c.FE)try{var X=B.handleResponse(z,H.status,H.response,c);T(X)}catch(x){b(x)}else T(B.handleResponse(z,H.status,H.response,c))} H.onerror=D;H.onload=D;var t;H.send((t=p.body)!=null?t:null)})}; lj.prototype.handleResponse=function(z,p,c,B){c=c.replace(")]}'","");try{var H=JSON.parse(c)}catch(T){g.oc(new g.z6("JSON parsing failed after XHR fetch",z,p,c));if((B==null?0:B.FE)&&c)throw new g.pb(1,"JSON parsing failed after XHR fetch");H={}}p!==200&&(g.oc(new g.z6("XHR API fetch failed",z,p,c)),H=Object.assign({},H,{errorMetadata:{status:p}}));return H};vt.getInstance=function(){var z=g.n_("ytglobal.storage_");z||(z=new vt,g.oE("ytglobal.storage_",z));return z}; vt.prototype.estimate=function(){var z,p,c;return g.L(function(B){z=navigator;return((p=z.storage)==null?0:p.estimate)?B.return(z.storage.estimate()):((c=z.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?B.return(AfS()):B.return()})}; g.oE("ytglobal.storageClass_",vt);qG.prototype.zU=function(z){this.handleError(z)}; qG.prototype.logEvent=function(z,p){switch(z){case "IDB_DATA_CORRUPTED":g.KN("idb_data_corrupted_killswitch")||this.W("idbDataCorrupted",p);break;case "IDB_UNEXPECTEDLY_CLOSED":this.W("idbUnexpectedlyClosed",p);break;case "IS_SUPPORTED_COMPLETED":g.KN("idb_is_supported_completed_killswitch")||this.W("idbIsSupportedCompleted",p);break;case "QUOTA_EXCEEDED":w3v(this,p);break;case "TRANSACTION_ENDED":this.D&&Math.random()<=.1&&this.W("idbTransactionEnded",p);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":z= Object.assign({},p,{hasWindowUnloaded:this.K}),this.W("idbTransactionAborted",z)}};var j1={},Toi=g.bH("yt-player-local-media",{Pe:(j1.index={Jm:2},j1.media={Jm:2},j1.captions={Jm:5},j1),shared:!1,upgrade:function(z,p){p(2)&&(g.ej(z,"index"),g.ej(z,"media"));p(5)&&g.ej(z,"captions");p(6)&&(lR(z,"metadata"),lR(z,"playerdata"))}, version:5});var hkL={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},Fw;a:{var oq=g.Zm();oq=oq.toLowerCase();if(g.Sl(oq,"android")){var PJK=oq.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(PJK){var A5E=parseFloat(PJK[1]);if(A5E<100){Fw=A5E;break a}}var Opd=oq.match("("+Object.keys(hkL).join("|")+")");Fw=Opd?hkL[Opd[0]]:0}else Fw=void 0}var vW=Fw,lP=vW>=0;var nnV=window;var Rsf=hG(function(){var z,p;return(p=(z=window).matchMedia)==null?void 0:p.call(z,"(prefers-reduced-motion: reduce)").matches});var jt;g.In=new lS;jt=0;var FG={cn:function(z){z.reverse()}, dn:function(z,p){var c=z[0];z[0]=z[p%z.length];z[p%z.length]=c}, yq:function(z,p){z.splice(0,p)}};var Hnu=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var HW=dLi()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.pq?!0:!1;var HCB={DSZ:"adunit",GLH:"detailpage",Jqq:"editpage",Aqt:"embedded",fsH:"leanback",inH:"previewpage",g8p:"profilepage",dg:"unplugged",n8A:"playlistoverview",p1Z:"sponsorshipsoffer",jfH:"shortspage",YbA:"handlesclaiming",Pei:"immersivelivepage",uoq:"creatormusic",JAH:"immersivelivepreviewpage",WlH:"admintoolyurt",Qft:"shortsaudiopivot",vE3:"consumption"};var nA,wQz,A7;nA={};g.Ga=(nA.STOP_EVENT_PROPAGATION="html5-stop-propagation",nA.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",nA.IV_DRAWER_OPEN="ytp-iv-drawer-open",nA.MAIN_VIDEO="html5-main-video",nA.VIDEO_CONTAINER="html5-video-container",nA.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",nA.HOUSE_BRAND="house-brand",nA);wQz={};A7=(wQz.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",wQz.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",wQz);var IDY={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var n6Y={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},QDS={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"},zuf={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var STu={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Vq.prototype.getLanguageInfo=function(){return this.bQ}; g.Vq.prototype.getXtags=function(){if(!this.xtags){var z=this.id.split(";");z.length>1&&(this.xtags=z[1])}return this.xtags}; g.Vq.prototype.toString=function(){return this.bQ.name}; g.Vq.prototype.getLanguageInfo=g.Vq.prototype.getLanguageInfo;DW.prototype.oI=function(z){return this.K===z.K&&this.W===z.W&&this.D===z.D&&this.reason===z.reason&&(!XK||this.l8===z.l8)}; DW.prototype.isLocked=function(){return this.D&&!!this.K&&this.K===this.W}; DW.prototype.compose=function(z){if(z.D&&xt(z))return ge;if(z.D||xt(this))return z;if(this.D||xt(z))return this;var p=this.K&&z.K?Math.max(this.K,z.K):this.K||z.K,c=this.W&&z.W?Math.min(this.W,z.W):this.W||z.W;p=Math.min(p,c);var B=0;XK&&(B=this.l8!==0&&z.l8!==0?Math.min(this.l8,z.l8):this.l8===0?z.l8:this.l8);return XK&&p===this.K&&c===this.W&&B===this.l8||!XK&&p===this.K&&c===this.W?this:XK?new DW(p,c,!1,c===this.W&&B===this.l8?this.reason:z.reason,B):new DW(p,c,!1,c===this.W?this.reason:z.reason)}; DW.prototype.X=function(z){return!z.video||XK&&this.l8!==0&&this.l8=0}; g.V.Qq=function(){var z=this.segments[this.segments.length-1];return z?z.endTime:NaN}; g.V.pB=function(){return this.segments[0].startTime}; g.V.l5=function(){return this.segments.length}; g.V.Ht=function(){return 0}; g.V.Hn=function(z){return(z=this.dH(z))?z.pH:-1}; g.V.CM=function(z){return(z=this.W1(z))?z.sourceURL:""}; g.V.getStartTime=function(z){return(z=this.W1(z))?z.startTime:0}; g.V.u$=function(z){return this.getStartTime(z)+this.getDuration(z)}; g.V.b$=cD(1);g.V.isLoaded=function(){return this.segments.length>0}; g.V.W1=function(z){if(this.W&&this.W.pH===z)return this.W;z=g.VT(this.segments,new CS(z,0,0,0,""),function(p,c){return p.pH-c.pH}); return this.W=z>=0?this.segments[z]:null}; g.V.dH=function(z){if(this.W&&this.W.startTime<=z&&z=0?this.segments[z]:this.segments[Math.max(0,-z-2)]}; g.V.append=function(z){if(z.length)if(z=g.ce(z),this.segments.length){var p=this.segments.length?g.UQ(this.segments).endTime:0,c=z[0].pH-this.E1();c>1&&NuE(this.segments);for(c=c>0?0:-c+1;cz.pH&&this.index.zc()<=z.pH+1}; g.V.update=function(z,p,c){this.index.append(z);PzS(this.index,c);z=this.index;z.K=p;z.D="update"}; g.V.Gg=function(){return this.dl()?!0:d8.prototype.Gg.call(this)}; g.V.g5=function(z,p){var c=this.index.CM(z),B=this.index.getStartTime(z),H=this.index.getDuration(z),T;p?H=T=0:T=this.info.l8>0?this.info.l8*H:1E3;return new Qz([new ls(3,this,void 0,"liveCreateRequestInfoForSegment",z,B,H,0,T,!p)],c)}; g.V.bX=function(){return this.dl()?0:this.initRange.length}; g.V.bH=function(){return!1};Nm.prototype.update=function(z){var p=void 0;this.K&&(p=this.K);var c=new Nm,B=Array.from(z.getElementsByTagName("S"));if(B.length){var H=+g8(z,"timescale")||1,T=(+B[0].getAttribute("t")||0)/H,b=+g8(z,"startNumber")||0;c.X=T;var D=p?p.startSecs+p.UI:0,t=Date.parse(EKE(g8(z,"yt:segmentIngestTime")))/1E3;c.L=z.parentElement.tagName==="SegmentTemplate";c.L&&(c.G=g8(z,"media"));z=p?b-p.pH:1;c.V=z>0?0:-z+1;z=g.m(B);for(B=z.next();!B.done;B=z.next()){B=B.value;for(var X=+B.getAttribute("d")/H,x=(+B.getAttribute("yt:sid")|| 0)/H,E=+B.getAttribute("r")||0,q=0;q<=E;q++)if(p&&b<=p.pH)b++;else{var J=new X6N(b,D,X,t+x,T);c.W.push(J);var M=B;var P=H,O=J.startSecs;J=M.getAttribute("yt:cuepointTimeOffset");var R=M.getAttribute("yt:cuepointDuration");if(J&&R){J=Number(J);O=-J/P+O;P=Number(R)/P;R=M.getAttribute("yt:cuepointContext")||null;var K=M.getAttribute("yt:cuepointIdentifier")||"";M=M.getAttribute("yt:cuepointEvent")||"";M=new rM(O,P,R,K,S7$[M]||"unknown",J)}else M=null;M&&c.D.push(M);b++;D+=X;T+=X;t+=X+x}}c.W.length&& (c.K=g.UQ(c.W))}this.V=c.V;this.K=c.K||this.K;g.Be(this.W,c.W);g.Be(this.D,c.D);this.L=c.L;this.G=c.G;this.X===-1&&(this.X=c.getStreamTimeOffset())}; Nm.prototype.getStreamTimeOffset=function(){return this.X===-1?0:this.X};g.Y(zm,g.eI);g.V=zm.prototype;g.V.ob=function(){return this.OF}; g.V.WW=function(z,p){z=p5(this,z);return z>=0&&(p||!this.segments[z].pending)}; g.V.zc=function(){return this.Cn?this.segments.length?this.dH(this.pB()).pH:-1:g.eI.prototype.zc.call(this)}; g.V.pB=function(){if(this.iZ)return 0;if(!this.Cn)return g.eI.prototype.pB.call(this);if(!this.segments.length)return 0;var z=Math.max(g.UQ(this.segments).endTime-this.DY,0);return this.Rj>0&&this.dH(z).pH0)return this.cW/1E3;if(!this.segments.length)return g.eI.prototype.Qq.call(this);var z=this.E1();if(!this.Cn||z<=this.segments[this.segments.length-1].pH)z=this.segments[this.segments.length-1];else{var p=this.segments[this.segments.length-1];z=new CS(z,Math.max(0,p.startTime-(p.pH-z)*this.OF),this.OF,0,"sq/"+z,void 0,void 0,!0)}return this.iZ?Math.min(this.DY,z.endTime):z.endTime}; g.V.l5=function(){return this.Cn?this.segments.length?this.E1()-this.zc()+1:0:g.eI.prototype.l5.call(this)}; g.V.E1=function(){var z=Math.min(this.uY,Math.max(g.eI.prototype.E1.call(this),this.Nk)),p=this.DY*1E3;p=this.cW>0&&this.cW0&&this.Nk>0&&!p&&(p=this.dH(this.DY))&&(z=Math.min(p.pH-1,z));return z}; g.V.vg=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.V.QD=function(z){var p=p5(this,z.pH);if(p>=0)this.segments[p]=z;else if(this.segments.splice(-(p+1),0,z),this.Ww&&z.pH%(300/this.OF)===0){var c=this.segments[0].pH,B=Math.floor(this.Ww/this.OF);z=z.pH-B;p=-(p+1)-B;p>0&&z>c&&(this.segments=this.segments.slice(p))}}; g.V.nM=function(){return this.Nk}; g.V.KC=function(z){return fi?!this.K&&z>=0&&this.E1()<=z:g.eI.prototype.KC.call(this,z)}; g.V.dH=function(z){if(!this.Cn)return g.eI.prototype.dH.call(this,z);if(!this.segments.length)return null;var p=this.segments[this.segments.length-1];if(z=p.endTime)p=p.pH+Math.floor((z-p.endTime)/this.OF+1);else{p=D5(this.segments,function(B){return z=B.endTime?1:0}); if(p>=0)return this.segments[p];var c=-(p+1);p=this.segments[c-1];c=this.segments[c];p=Math.floor((z-p.endTime)/((c.startTime-p.endTime)/(c.pH-p.pH-1))+1)+p.pH}return this.W1(p)}; g.V.W1=function(z){if(!this.Cn)return g.eI.prototype.W1.call(this,z);if(!this.segments.length)return null;var p=p5(this,z);if(p>=0)return this.segments[p];var c=-(p+1);p=this.OF;if(c===0)var B=Math.max(0,this.segments[0].startTime-(this.segments[0].pH-z)*p);else c===this.segments.length?(B=this.segments[this.segments.length-1],B=B.endTime+(z-B.pH-1)*p):(B=this.segments[c-1],p=this.segments[c],p=(p.startTime-B.endTime)/(p.pH-B.pH-1),B=B.endTime+(z-B.pH-1)*p);return new CS(z,B,p,0,"sq/"+z,void 0,void 0, !0)}; var fi=!1;g.Y(cw,k3);g.V=cw.prototype;g.V.xa=function(){return!0}; g.V.Gg=function(){return!0}; g.V.Ot=function(z){return this.yc()&&z.D&&!z.L||!z.W.index.KC(z.pH)}; g.V.qx=function(){}; g.V.T9=function(z,p){return typeof z!=="number"||isFinite(z)?k3.prototype.T9.call(this,z,p===void 0?!1:p):new Qz([new ls(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.MO,void 0,this.MO*this.info.l8)],"")}; g.V.g5=function(z,p){var c=c===void 0?!1:c;if(this.index.WW(z))return k3.prototype.g5.call(this,z,p);var B=this.index.getStartTime(z),H=Math.round(this.MO*this.info.l8),T=this.MO;p&&(T=H=0);return new Qz([new ls(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",z,B,T,void 0,H,!p)],z>=0?"sq/"+z:"")};g.Y(Bw,d8);g.V=Bw.prototype;g.V.aH=function(){return!1}; g.V.yc=function(){return!1}; g.V.xa=function(){return!1}; g.V.qx=function(){return new Qz([new ls(1,this,void 0,"otfInit")],this.L)}; g.V.Hd=function(){return null}; g.V.X0=function(z){this.Ot(z);return AwQ(this,Fh(z),!1)}; g.V.T9=function(z,p){p=p===void 0?!1:p;z=this.index.Hn(z);p&&(z=Math.min(this.index.E1(),z+1));return AwQ(this,z,!0)}; g.V.TC=function(z){z.info.type===1&&(this.W||(this.W=Lb(z.W)),z.K&&z.K.uri==="http://youtube.com/streaming/otf/durations/112015"&&OZW(this,z.K))}; g.V.Ot=function(z){return z.D===0?!0:this.index.E1()>z.pH&&this.index.zc()<=z.pH+1}; g.V.bX=function(){return 0}; g.V.bH=function(){return!1};Hw.prototype.TZ=function(){return this.W.TZ()};g.V=g.tX.prototype;g.V.WW=function(z){return z<=this.E1()}; g.V.Ht=function(z){return this.offsets[z]}; g.V.getStartTime=function(z){return this.startTicks[z]/this.W}; g.V.u$=function(z){return this.getStartTime(z)+this.getDuration(z)}; g.V.b$=cD(0);g.V.S5=function(){return NaN}; g.V.getDuration=function(z){z=this.lI(z);return z>=0?z/this.W:-1}; g.V.lI=function(z){return z+1=0}; g.V.Qq=function(){return this.K?this.startTicks[this.count]/this.W:NaN}; g.V.pB=function(){return 0}; g.V.l5=function(){return this.count}; g.V.CM=function(){return""}; g.V.Hn=function(z){z=g.VT(this.startTicks.subarray(0,this.count),z*this.W);return z>=0?z:Math.max(0,-z-2)}; g.V.isLoaded=function(){return this.E1()>=0}; g.V.Dv=function(z,p){if(z>=this.E1())return 0;var c=0;for(p=this.getStartTime(z)+p;zthis.getStartTime(z);z++)c=Math.max(c,LXu(this,z)/this.getDuration(z));return c}; g.V.resize=function(z){z+=2;var p=this.offsets;this.offsets=new Float64Array(z+1);var c=this.startTicks;this.startTicks=new Float64Array(z+1);for(z=0;z0&&z&&(c=c.range.end+1,z=Math.min(z,this.info.contentLength-c),z>0&&B.push(new ls(4,this,Ci(c,z),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p)));return new Qz(B)}; g.V.TC=function(z){if(z.info.type===1){if(this.W)return;this.W=Lb(z.W)}else if(z.info.type===2){if(this.L||this.index.E1()>=0)return;if(g.H6(this.info)){var p=this.index,c=z.TZ();z=z.info.range.start;var B=g.GO(c,0,1936286840);c=def(B);p.W=c.timescale;var H=c.WG;p.offsets[0]=c.x3+z+B.size;p.startTicks[0]=H;p.K=!0;z=c.Lb.length;for(B=0;B0&&z===T[0].yD)for(z=0;z=p+c)break}H.length||g.Fr(new g.z6("b189619593",""+z,""+p,""+c));return new Qz(H)}; g.V.tR=function(z){for(var p=this.JL(z.info),c=z.info.range.start+z.info.K,B=[],H=0;H=this.index.Ht(c+1);)c++;return this.uc(c,p,z.D).b8}; g.V.Ot=function(z){z.NS();return this.Gg()?!0:z.range.end+1this.info.contentLength&&(p=new WE(p.start,this.info.contentLength-1)),new Qz([new ls(4,z.W,p,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z.clipId)]);z.type===4&&(z=this.JL(z),z=z[z.length-1]);var c=0,B=z.range.start+z.K+z.D;z.type===3&&(z.NS(),c=z.pH,B===z.range.end+1&&(c+=1));return this.uc(c,B,p)}; g.V.X0=function(){return null}; g.V.T9=function(z,p,c){p=p===void 0?!1:p;z=this.index.Hn(z);p&&(z=Math.min(this.index.E1(),z+1));return this.uc(z,this.index.Ht(z),0,c)}; g.V.aH=function(){return!0}; g.V.yc=function(){return!0}; g.V.xa=function(){return!1}; g.V.bX=function(){return this.indexRange.length+this.initRange.length}; g.V.bH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var r0={},kqN=(r0.COLOR_PRIMARIES_BT709="bt709",r0.COLOR_PRIMARIES_BT2020="bt2020",r0.COLOR_PRIMARIES_UNKNOWN=null,r0.COLOR_PRIMARIES_UNSPECIFIED=null,r0),Uq={},WXY=(Uq.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Uq.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Uq.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Uq.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Uq.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Uq.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Uq);g.EP.prototype.getName=function(){return this.name}; g.EP.prototype.getId=function(){return this.id}; g.EP.prototype.getIsDefault=function(){return this.isDefault}; g.EP.prototype.toString=function(){return this.name}; g.EP.prototype.getName=g.EP.prototype.getName;g.EP.prototype.getId=g.EP.prototype.getId;g.EP.prototype.getIsDefault=g.EP.prototype.getIsDefault;var liD=/action_display_post/;var vKY,MO,m4;g.Y(hX,g.JQ);g.V=hX.prototype;g.V.isLoading=function(){return this.state===1}; g.V.Ks=function(){return this.state===3}; g.V.zaD=function(z){var p=z.getElementsByTagName("Representation");if(z.getElementsByTagName("SegmentList").length>0||z.getElementsByTagName("SegmentTemplate").length>0){this.La=this.K=!0;this.timeline||(this.timeline=new Jwv);hAv(this.timeline,z);this.publish("refresh");for(z=0;z=0?x=yz(q):E=E+"?range="+q}t.call(D,new CS(X.pH,X.startSecs,X.UI,X.W,E,x,X.K))}B=H}c.update(B,this.isLive,this.NZ)}PmQ(this.timeline);return!0}this.duration=xFf(g8(z,"mediaPresentationDuration")); a:{for(z=0;z0))return this.Yb()-z}}z=this.W;for(var p in z){var c=z[p].index;if(c.isLoaded()&&!Di(z[p].info.mimeType))return c.pB()}return 0}; g.V.getStreamTimeOffset=function(){return this.G}; g.V.S5=function(z){for(var p in this.W){var c=this.W[p].index;if(c.isLoaded()){var B=c.Hn(z),H=c.S5(B);if(H)return H+z-c.getStartTime(B)}}return NaN}; var Ww=null,$o9,yr=!(($o9=navigator.mediaCapabilities)==null||!$o9.decodingInfo),pSS={commentary:1,alternate:2,dub:3,main:4};var En=new Set,C5=new Map;vw.prototype.clone=function(z){return new vw(this.flavor,z,this.K,this.experiments)}; vw.prototype.kt=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; vw.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 Kn9={},kT=(Kn9.playready=["com.youtube.playready","com.microsoft.playready"],Kn9.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Kn9),sq={},SSY=(sq.widevine="DRM_SYSTEM_WIDEVINE",sq.fairplay="DRM_SYSTEM_FAIRPLAY",sq.playready="DRM_SYSTEM_PLAYREADY",sq),ki={},u2q=(ki.widevine=1,ki.fairplay=2,ki.playready=3,ki);Gm.prototype.hC=function(z,p){p=p===void 0?1:p;this.ye+=p;this.K+=z;z/=p;for(var c=0;c0)B+="."+gm[H].toFixed(0)+"_"+c.W[H].toFixed(0);else break;c=B}c&&(z[p]=c)}this.W=new JOx;return z}; g.V.toString=function(){return""};g.V=AON.prototype;g.V.isActive=function(){return!1}; g.V.VG=function(){}; g.V.Ya=function(){}; g.V.d0=function(z,p){return p}; g.V.Il=function(){}; g.V.wH=function(){}; g.V.V7=function(z,p){return p()}; g.V.PX=function(){return{}}; g.V.toString=function(){return""};var g0,aQ1,Zp9,Lnd,dov,WnQ,GT,Os,DO,rKu,cW;g0=new AON;aQ1=!!+ch("html5_enable_profiler");Zp9=!!+ch("html5_onesie_enable_profiler");Lnd=!!+ch("html5_offline_encryption_enable_profiler");dov=!!+ch("html5_performance_impact_profiling_timer_ms");WnQ=!!+ch("html5_drm_enable_profiler");GT=aQ1||Zp9||Lnd||dov||WnQ?new YCx:g0;g.LK=aQ1?GT:g0;Os=Zp9?GT:g0;DO=Lnd?GT:g0;rKu=dov?GT:g0;cW=WnQ?GT:g0;var pm;g.Y(f5,g.e); f5.prototype.initialize=function(z,p){for(var c=this,B=g.m(Object.keys(z)),H=B.next();!H.done;H=B.next()){H=g.m(z[H.value]);for(var T=H.next();!T.done;T=H.next())if(T=T.value,T.o8)for(var b=g.m(Object.keys(T.o8)),D=b.next();!D.done;D=b.next()){var t=D.value;D=t;t=kT[t];!t&&this.Y("html5_enable_vp9_fairplay")&&D==="fairplay"&&(t=["com.youtube.fairplay.sbdl"]);if(t){t=g.m(t);for(var X=t.next();!X.done;X=t.next())X=X.value,this.D[X]=this.D[X]||new vw(D,X,T.o8[D],this.QI.experiments),this.W[D]=this.W[D]|| {},this.W[D][T.mimeType]=!0}}}N_()&&(this.D["com.youtube.fairplay"]=new vw("fairplay","com.youtube.fairplay","",this.QI.experiments),this.Y("html5_enable_vp9_fairplay")||(this.W.fairplay=this.W.fairplay||{},this.W.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.W.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=qCu(p,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(function(x){return!!c.D[x]})}; f5.prototype.Y=function(z){return this.QI.experiments.JD(z)};var y59={"":"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"};uQY.prototype.Y=function(z){return this.experiments.JD(z)};var Tgi={RED:"red",b9A:"white"};a0x.prototype.JD=function(z){z=this.flags[z];JSON.stringify(z);return z==="true"};var dPf=Promise.resolve(),e6v=window.queueMicrotask?window.queueMicrotask.bind(window):WON;Tx.prototype.canPlayType=function(z,p){z=z.canPlayType?z.canPlayType(p):!1;zG?z=z||CJJ[p]:vW===2.2?z=z||ek9[p]:gS()&&(z=z||lQ3[p]);return!!z}; Tx.prototype.isTypeSupported=function(z){return this.Dt?window.cast.receiver.platform.canDisplayType(z):Ir(z)}; var ek9={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},lQ3={"application/x-mpegURL":"maybe"},CJJ={"application/x-mpegURL":"maybe"};g.Y(tN,g.JQ);tN.prototype.add=function(z,p){if(!this.items[z]&&(p.Pm||p.L7||p.rj)){var c=this.items,B=p;Object.isFrozen&&!Object.isFrozen(p)&&(B=Object.create(p),Object.freeze(B));c[z]=B;this.publish("vast_info_card_add",z)}}; tN.prototype.remove=function(z){var p=this.get(z);delete this.items[z];return p}; tN.prototype.get=function(z){return this.items[z]||null}; tN.prototype.isEmpty=function(){return g.y3(this.items)};g.Y(XB,g.ZG);XB.prototype.W=function(z,p){return g.ZG.prototype.W.call(this,z,p)}; XB.prototype.K=function(z,p,c){var B=this;return g.L(function(H){return H.W==1?g.a(H,g.ZG.prototype.K.call(B,z,p,c),2):H.return(H.K)})}; g.Y(xq,g.L7);xq.prototype.encrypt=function(z,p){return g.L7.prototype.encrypt.call(this,z,p)};var qB;JN.prototype.add=function(z){if(this.pos+20>this.data.length){var p=new Uint8Array(this.data.length*2);p.set(this.data);this.data=p}for(;z>31;)this.data[this.pos++]=qB[(z&31)+32],z>>=5;this.data[this.pos++]=qB[z|0]}; JN.prototype.M_=function(){return g.Cb(this.data.subarray(0,this.pos))}; JN.prototype.reset=function(){this.pos=0};Yq.prototype.kF=function(z,p){var c=Math.pow(this.alpha,z);this.W=p*(1-c)+c*this.W;this.K+=z}; Yq.prototype.Fu=function(){return this.W/(1-Math.pow(this.alpha,this.K))};md.prototype.kF=function(z,p){for(var c=0;c<10;c++){var B=this.W[c],H=B+(c===0?z:0),T=1*Math.pow(2,c);if(H<=T)break;B=Math.min(1,(H-T*.5)/B);for(H=0;H<16;H++)T=this.values[c*16+H]*B,this.values[(c+1)*16+H]+=T,this.W[c+1]+=T,this.values[c*16+H]-=T,this.W[c]-=T}B=c=0;H=8192;p>8192&&(c=Math.ceil(Math.log(p/8192)/Math.log(2)),B=8192*Math.pow(2,c-1),H=B*2);c+2>16?this.values[15]+=z:(p=(p-B)/(H-B),this.values[c]+=z*(1-p),this.values[c+1]+=z*p);this.W[0]+=z}; md.prototype.Fu=function(){var z=z===void 0?this.K:z;var p=p===void 0?.02:p;var c=c===void 0?.98:c;for(var B=this.D,H=0;H<16;H++)B[H]=this.values[H];H=this.W[0];for(var T=1;T<11;T++){var b=this.W[T];if(b===0)break;for(var D=Math.min(1,(z-H)/b),t=0;t<16;t++)B[t]+=this.values[T*16+t]*D;H+=b*D;if(D<1)break}for(T=z=b=0;T<16;T++){D=b+B[T]/H;z+=Math.max(0,Math.min(D,c)-Math.max(b,p))*(T>0?8192*Math.pow(2,T-1):0);if(D>c)break;b=D}return z/(c-p)};hN.prototype.kF=function(z,p){z=Math.min(this.W,Math.max(1,Math.round(z*this.resolution)));z+this.K>=this.W&&(this.D=!0);for(;z--;)this.values[this.K]=p,this.K=(this.K+1)%this.W;this.eF=!0}; hN.prototype.percentile=function(z){var p=this;if(!this.D&&this.K===0)return 0;this.eF&&(g.ty(this.L,function(c,B){return p.values[c]-p.values[B]}),this.eF=!1); return this.values[this.L[Math.round(z*((this.D?this.W:this.K)-1))]]||0}; hN.prototype.Fu=function(){return this.V?(this.percentile(this.X-this.V)+this.percentile(this.X)+this.percentile(this.X+this.V))/3:this.percentile(this.X)};g.Y(PW,g.e);PW.prototype.OH=function(){var z;(z=this.rA)==null||z.start();if(uP(this)&&this.policy.S){var p;(p=this.Gl)==null||p.Wh()}};GCB.prototype.Y=function(z){return this.experiments.JD(z)};g.Y(f0N,g.e);var iCu="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),XTB={GUt:"caoe",BCt:"capsv",b2D:"cbrand",H2A:"cbr",US3:"cbrver",z0Z:"cchip",TwZ:"ccappver",h0q:"ccrv",FkI:"cfrmver",yAt:"c",sua:"cver",H3a:"ctheme",b3i:"cplayer",yC3:"cmodel",eOA:"cnetwork",hOH:"cos",ROt:"cosver",YM8:"cplatform",sH3:"crqyear"};g.Y(kq,g.e);g.V=kq.prototype;g.V.Y=function(z){return this.experiments.JD(z)}; g.V.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.V.getVideoUrl=function(z,p,c,B,H,T,b){p={list:p};c&&(H?p.time_continue=c:p.t=c);c=b?"music.youtube.com":g.Gx(this);H=c==="www.youtube.com";!T&&B&&H?T="https://youtu.be/"+z:g.FB(this)?(T="https://"+c+"/fire",p.v=z):(T&&H?(T=this.protocol+"://"+c+"/shorts/"+z,B&&(p.feature="share")):(T=this.protocol+"://"+c+"/watch",p.v=z),zG&&(z=QVY())&&(p.ebc=z));return g.g6(T,p)}; g.V.getVideoEmbedCode=function(z,p,c,B){p="https://"+g.Gx(this)+"/embed/"+p;B&&(p=g.g6(p,{list:B}));B=c.width;c=c.height;p=Bj(p);z=Bj(z!=null?z:"YouTube video player");return'')}; g.V.supportsGaplessAudio=function(){return g.v2&&!zG&&s0()>=74||g.UP&&g.mr(68)?!0:!1}; g.V.supportsGaplessShorts=function(){return!this.Y("html5_enable_short_gapless")||this.i8||g.$U?!1:!0}; g.V.getPlayerType=function(){return this.W.cplayer}; g.V.OW=function(){return this.gJ}; var JHu=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],tvi=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],EbB=[19];var N4={},muE=(N4["140"]={numChannels:2},N4["141"]={numChannels:2},N4["251"]={audioSampleRate:48E3,numChannels:2},N4["774"]={audioSampleRate:48E3,numChannels:2},N4["380"]={numChannels:6},N4["328"]={numChannels:6},N4["773"]={},N4),fA={},MvS=(fA["1"]='video/mp4; codecs="av01.0.08M.08"',fA["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',fA["1e"]='video/mp4; codecs="av01.0.08M.08"',fA["9"]='video/webm; codecs="vp9"',fA["("]='video/webm; codecs="vp9"',fA["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', fA.h='video/mp4; codecs="avc1.64001e"',fA.H='video/mp4; codecs="avc1.64001e"',fA.o='audio/webm; codecs="opus"',fA.a='audio/mp4; codecs="mp4a.40.2"',fA.ah='audio/mp4; codecs="mp4a.40.2"',fA.mac3='audio/mp4; codecs="ac-3"; channels=6',fA.meac3='audio/mp4; codecs="ec-3"; channels=6',fA.i='audio/mp4; codecs="iamf.001.001.Opus"',fA),zJ={},YXN=(zJ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},zJ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},zJ["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, zJ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},zJ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},zJ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},zJ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},zJ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},zJ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},zJ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, zJ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},zJ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},zJ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},zJ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},zJ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},zJ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},zJ["308"]={width:2560, height:1440,bitrate:1E7,fps:60},zJ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},zJ["302"]={width:1280,height:720,bitrate:25E5,fps:60},zJ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},zJ["298"]={width:1280,height:720,bitrate:35E5,fps:60},zJ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},zJ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},zJ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},zJ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},zJ["398"]={width:1280,height:720,bitrate:1E6, fps:60},zJ["397"]={width:854,height:480,bitrate:4E5,fps:30},zJ["396"]={width:640,height:360,bitrate:25E4,fps:30},zJ["787"]={width:1080,height:608,bitrate:2E5,fps:30},zJ["788"]={width:1080,height:608,bitrate:4E5,fps:30},zJ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},zJ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},zJ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},zJ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},zJ["552"]={width:1280,height:720,bitrate:1E6,fps:60},zJ["551"]={width:854, height:480,bitrate:4E5,fps:30},zJ["550"]={width:640,height:360,bitrate:25E4,fps:30},zJ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},zJ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},zJ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},zJ["247"]={width:1280,height:720,bitrate:15E5,fps:30},zJ["244"]={width:854,height:480,bitrate:52E4,fps:30},zJ["243"]={width:640,height:360,bitrate:28E4,fps:30},zJ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},zJ["136"]={width:1280,height:720,bitrate:3E6, fps:30},zJ["135"]={width:854,height:480,bitrate:1E6,fps:30},zJ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},zJ["376"]={width:1280,height:720,bitrate:5706960,fps:60},zJ["384"]={width:1280,height:720,bitrate:3660979,fps:60},zJ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},zJ["224"]={width:1280,height:720,bitrate:453E4,fps:30},zJ["145"]={width:1280,height:720,bitrate:2682052,fps:30},zJ);g.V=Et.prototype;g.V.getInfo=function(){return this.W}; g.V.tf=function(){return null}; g.V.EE=function(){var z=this.tf();return z?(z=g.XL(z.j9),Number(z.expire)):NaN}; g.V.w6=function(){}; g.V.getHeight=function(){return this.W.video.height};OCN.prototype.build=function(){SXx(this);var z=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],p={};a:if(this.W)var c=this.W;else{c="";for(var B=g.m(this.D),H=B.next();!H.done;H=B.next())if(H=H.value,H.bQ){if(H.bQ.getIsDefault()){c=H.bQ.getId();break a}c||(c=H.bQ.getId())}}B=g.m(this.D);for(H=B.next();!H.done;H=B.next())if(H=H.value,this.V||!H.bQ||H.bQ.getId()===c)p[H.itag]||(p[H.itag]=[]),p[H.itag].push(H);c=g.m(this.K);for(B=c.next();!B.done;B=c.next())if(B=B.value,H=p[B.W]){H=g.m(H);for(var T=H.next();!T.done;T= H.next()){var b=z,D=b.push;T=T.value;var t="#EXT-X-MEDIA:TYPE=AUDIO,",X="YES",x="audio";if(T.bQ){x=T.bQ;var E=x.getId().split(".")[0];E&&(t+='LANGUAGE="'+E+'",');(this.W?this.W===x.getId():x.getIsDefault())||(X="NO");x=x.getName()}E="";B!==null&&(E=B.itag.toString());E=Jj(this,T.url,E);t=t+('NAME="'+x+'",DEFAULT='+(X+',AUTOSELECT=YES,GROUP-ID="'))+(RmW(T,B)+'",URI="'+(E+'"'));D.call(b,t)}}c=g.m(this.L);for(B=c.next();!B.done;B=c.next())B=B.value,H=vyK,B=(b=B.bQ)?'#EXT-X-MEDIA:URI="'+Jj(this,B.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+H+'",LANGUAGE="'+b.getId()+'",NAME="'+b.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,B&&z.push(B);c=this.L.length>0?vyK:void 0;B=g.m(this.K);for(H=B.next();!H.done;H=B.next())H=H.value,D=p[H.W],b=void 0,((b=D)==null?void 0:b.length)>0&&(b=H,D=D[0],D="#EXT-X-STREAM-INF:BANDWIDTH="+(b.bitrate+D.bitrate)+',CODECS="'+(b.codecs+","+D.codecs+'",RESOLUTION=')+(b.width+"x"+b.height+',AUDIO="')+(RmW(D,b)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",b.fps>1&&(D+= ",FRAME-RATE="+b.fps),b.Og&&(D+=",VIDEO-RANGE="+b.Og),z.push(D),z.push(Jj(this,H.url,"")));return z.join("\n")}; var vyK="text";g.Y(Mb,Et);Mb.prototype.EE=function(){return this.expiration}; Mb.prototype.tf=function(){if(!this.j9||this.j9.qZ()){var z=this.K.build();z="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(z);this.j9=new Rp(z)}return this.j9};g.Y(YW,Et);YW.prototype.tf=function(){return new Rp(this.K.BU())}; YW.prototype.w6=function(){this.K=Wi(this.K)};g.Y(mY,Et);mY.prototype.tf=function(){return new Rp(this.K)};var pr={},CAY=(pr.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",pr.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",pr.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",pr);g.V=g.hj.prototype;g.V.getId=function(){return this.id}; g.V.getName=function(){return this.name}; g.V.isServable=function(){return this.W}; g.V.BU=function(){return this.url}; g.V.getXtags=function(){return this.xtags}; g.V.toString=function(){return this.languageCode+": "+g.PX(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.V.oI=function(z){return z?this.toString()===z.toString():!1}; g.V.NP=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var jsD={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Fvf={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},obf=/^(\d*)_((\d*)_?(\d*))$/;var QsS={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},rHi={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var cB={},IQm=(cB.ALWAYS=1,cB.BY_REQUEST=3,cB.UNKNOWN=void 0,cB),BB={},jJq=(BB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",BB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",BB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",BB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",BB);var ZUu; ZUu=function(z){for(var p=Object.keys(z),c={},B=0;BB-p?-1:z}; g.V.s9=function(){return this.K.E1()}; g.V.p_=function(){return this.K.zc()}; g.V.QC=function(z){this.K=z};g.Y(kW,re);kW.prototype.K=function(z,p){return re.prototype.K.call(this,"$N|"+z,p)}; kW.prototype.L=function(z,p,c){return new Ut(z,p,c,this.isLive)};var aoQ=[],cf=new Set;g.Y(g.GU,g.JQ);g.V=g.GU.prototype; g.V.setData=function(z){z=z||{};var p=z.errordetail;p!=null&&(this.errorDetail=p);var c=z.errorcode;c!=null?this.errorCode=c:z.status==="fail"&&(this.errorCode="auth");var B=z.reason;B!=null&&(this.errorReason=B);var H=z.subreason;H!=null&&(this.k8=H);this.Y("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=z.cpn||(this.QI.OW()?"r"+g.Zu(15):g.Zu(16)));this.sH=DA(this.QI.sH,z.livemonitor);OlN(this,z);var T=z.raw_player_response;if(T)this.yk=T;else{var b=z.player_response; b&&(T=JSON.parse(b))}if(this.Y("html5_enable_ssap_entity_id")){var D=z.cached_load;D&&(this.Tf=DA(this.Tf,D));if(!this.clientPlaybackNonce){var t=z.cpn;t?(this.aT("ssei","shdc"),this.clientPlaybackNonce=t):this.clientPlaybackNonce=this.QI.OW()?"r"+g.Zu(15):g.Zu(16)}}T&&(this.playerResponse=T);if(this.playerResponse){var X=this.playerResponse.annotations;if(X)for(var x=g.m(X),E=x.next();!E.done;E=x.next()){var q=E.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(this.pJ=!0);var J=q.loadPolicy; J&&(this.annotationsLoadPolicy=IQm[J]);var M=q.invideoUrl;M&&(this.Zt=DI(M));break}}var P=this.playerResponse.attestation;P&&ssE(this,P);var O=this.playerResponse.cotn;O&&(this.cotn=O);var R=this.playerResponse.heartbeatParams;if(R){hwx(this)&&(this.C1=!0);var K=R.heartbeatToken;K&&(this.drmSessionId=R.drmSessionId||"",this.heartbeatToken=K,this.Ab=Number(R.intervalMilliseconds),this.b3=Number(R.maxRetries),this.H9=!!R.softFailOnError,this.t3=!!R.useInnertubeHeartbeatsForDrm,this.Em=!0);this.heartbeatServerData= R.heartbeatServerData;var Z;this.L3=!((Z=R.heartbeatAttestationConfig)==null||!Z.requiresAttestation)}var W=this.playerResponse.messages;W&&Ngx(this,W);var v=this.playerResponse.overlay;if(v){var zY=v.playerControlsOverlayRenderer;if(zY)if(zgB(this,zY.controlBgHtml),zY.mutedAutoplay){var U=g.I(zY.mutedAutoplay,gug);if(U&&U.endScreen){var HD=g.I(U.endScreen,GoK);HD&&HD.text&&(this.AR=g.wJ(HD.text))}}else this.mutedAutoplay=!1}var VW=this.playerResponse.playabilityStatus;if(VW){var f=VW.backgroundability; f&&f.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var F,N;if((F=VW.offlineability)==null?0:(N=F.offlineabilityRenderer)==null?0:N.offlineable)this.offlineable=!0;var h=VW.contextParams;h&&(this.contextParams=h);var n=VW.pictureInPicture;n&&n.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);VW.playableInEmbed&&(this.allowEmbed=!0);var FY=VW.ypcClickwrap;if(FY){var Rg=FY.playerLegacyDesktopYpcClickwrapRenderer,Md=FY.ypcRentalActivationRenderer;if(Rg)this.Jl=Rg.durationMessage|| "",this.UF=!0;else if(Md){var uf=Md.durationMessage;this.Jl=uf?g.wJ(uf):"";this.UF=!0}}var zv=VW.errorScreen;if(zv){if(zv.playerLegacyDesktopYpcTrailerRenderer){var bE=zv.playerLegacyDesktopYpcTrailerRenderer;this.a_=bE.trailerVideoId||"";var m1=zv.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var w=m1&&m1.ypcTrailerRenderer}else if(zv.playerLegacyDesktopYpcOfferRenderer)bE=zv.playerLegacyDesktopYpcOfferRenderer;else if(zv.ypcTrailerRenderer){w=zv.ypcTrailerRenderer;var S=w.fullVideoMessage;this.CQ= S?g.wJ(S):"";var u,d;this.a_=((u=g.I(w,Nd1))==null?void 0:(d=u.videoDetails)==null?void 0:d.videoId)||""}bE&&(this.kY=bE.itemTitle||"",bE.itemUrl&&(this.z1=bE.itemUrl),bE.itemBuyUrl&&(this.Mt=bE.itemBuyUrl),this.eB=bE.itemThumbnail||"",this.N0=bE.offerHeadline||"",this.Ws=bE.offerDescription||"",this.gp=bE.offerId||"",this.Fd=bE.offerButtonText||"",this.ED=bE.offerButtonFormattedText||null,this.K9=bE.overlayDurationMsec||NaN,this.CQ=bE.fullVideoMessage||"",this.j1=!0);if(w){var C=g.I(w,Nd1);if(C)this.wp= {raw_player_response:C};else{var p_=g.I(w,DIm);this.wp=p_?Dz(p_):null}this.j1=!0}}}var TY=this.playerResponse.playbackTracking;if(TY){var bf=z,y=SO(TY.googleRemarketingUrl);y&&(this.googleRemarketingUrl=y);var xB=SO(TY.youtubeRemarketingUrl);xB&&(this.youtubeRemarketingUrl=xB);var mS={},ti=SO(TY.ptrackingUrl);if(ti){var du=$W(ti),YL=du.oid;YL&&(this.b2=YL);var jl=du.pltype;jl&&(this.Hr=jl);var Jy=du.ptchn;Jy&&(this.yC=Jy);var Ux=du.ptk;Ux&&(this.cT=encodeURIComponent(Ux));var Fe=du.m;Fe&&(this.wd= Fe)}var t5=SO(TY.qoeUrl);if(t5){for(var C2=g.XL(t5),rC=g.m(Object.keys(C2)),E2=rC.next();!E2.done;E2=rC.next()){var rc=E2.value,oW=C2[rc];C2[rc]=Array.isArray(oW)?oW.join(","):oW}this.P3=C2;var UN=C2.cat;UN&&(this.Y("html5_enable_qoe_cat_list")?this.U_=this.U_.concat(UN.split(",")):this.dP=UN);var ON=C2.live;ON&&(this.Jk=ON);var qQ=C2.drm_product;qQ&&(this.hq=qQ)}var ZC=SO(TY.videostatsPlaybackUrl);if(ZC){var JD=$W(ZC),Lf=JD.adformat;if(Lf){bf.adformat=Lf;var jL=this.N(),FW=nbf(Lf,this.KJ,jL.X,jL.G); FW&&(this.adFormat=FW)}var $X=JD.aqi;$X&&(bf.ad_query_id=$X);var zu=JD.autoplay;zu&&(this.bY=zu=="1",this.Zl=zu=="1",D7(this,"vss"));var sN=JD.autonav;sN&&(this.isAutonav=sN=="1");var i0=JD.delay;i0&&(this.Zw=Tk(i0));var Zq=JD.ei;Zq&&(this.eventId=Zq);if(JD.adcontext||Lf)this.bY=!0,D7(this,"ad");var Qs=JD.feature;Qs&&(this.E_=Qs);var MC=JD.list;MC&&(this.playlistId=MC);var S2=JD.of;S2&&(this.lN=S2);var $K=JD.osid;$K&&(this.osid=$K);var KZ=JD.referrer;KZ&&(this.referrer=KZ);var EM=JD.sdetail;EM&&(this.Yo= EM);var DR=JD.ssrt;DR&&(this.iF=DR=="1");var qZ=JD.subscribed;qZ&&(this.subscribed=qZ=="1",this.G.subscribed=qZ);var Js=JD.uga;Js&&(this.userGenderAge=Js);var um=JD.upt;um&&(this.dS=um);var ap=JD.vm;ap&&(this.videoMetadata=ap);mS.playback=JD}var Zi=SO(TY.videostatsWatchtimeUrl);if(Zi){var LZ=$W(Zi),dr=LZ.ald;dr&&(this.LJ=dr);mS.watchtime=LZ}var W6=SO(TY.atrUrl);if(W6){var fT=$W(W6);mS.atr=fT}var Lo=SO(TY.engageUrl);if(Lo){var zg=$W(Lo);mS.engage=zg}this.L9=mS;if(TY.promotedPlaybackTracking){var U2= TY.promotedPlaybackTracking;U2.startUrls&&(this.kd=U2.startUrls);U2.firstQuartileUrls&&(this.fA=U2.firstQuartileUrls);U2.secondQuartileUrls&&(this.pA=U2.secondQuartileUrls);U2.thirdQuartileUrls&&(this.uV=U2.thirdQuartileUrls);U2.completeUrls&&(this.vj=U2.completeUrls);U2.engagedViewUrls&&(U2.engagedViewUrls.length>1&&g.oc(new g.z6("There are more than one engaged_view_urls.")),this.l6=U2.engagedViewUrls[0])}}var MZ=this.playerResponse.playerCueRanges;MZ&&MZ.length>0&&(this.cueRanges=MZ);var yf=this.playerResponse.playerCueRangeSet; yf&&g.Bf(this,yf);a:{var Yw=this.playerResponse.adPlacements;if(Yw)for(var CZ=g.m(Yw),ml=CZ.next();!ml.done;ml=CZ.next()){var e2=void 0,lm=void 0,v6=(e2=ml.value.adPlacementRenderer)==null?void 0:(lm=e2.renderer)==null?void 0:lm.videoAdTrackingRenderer;if(v6){var Ip=v6;break a}}Ip=null}var hs=Ip;TY&&TY.promotedPlaybackTracking&&hs&&g.oc(new g.z6("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var O3;if(!(O3=hs))a:{for(var j2=g.m(this.playerResponse.adSlots||[]), PH=j2.next();!PH.done;PH=j2.next()){var As=g.I(PH.value,UT);if(As===void 0||!ObV(As))break;var Fb=void 0,pP=(Fb=As.fulfillmentContent)==null?void 0:Fb.fulfilledLayout,op=g.I(pP,lV);if(op&&Wr(op)){O3=!0;break a}}O3=!1}O3&&(this.Jb=!0);var nZ=this.playerResponse.playerAds;if(nZ)for(var cv=z,Qf=g.m(nZ),w5=Qf.next();!w5.done;w5=Qf.next()){var rr=w5.value;if(rr){var UI=rr.playerLegacyDesktopWatchAdsRenderer;if(UI){var d4=UI.playerAdParams;if(d4){d4.autoplay=="1"&&(this.Zl=this.bY=!0);this.qt=d4.encodedAdSafetyReason|| null;d4.showContentThumbnail!==void 0&&(this.xG=!!d4.showContentThumbnail);cv.enabled_engage_types=d4.enabledEngageTypes;break}}}}var Sr=this.playerResponse.playerConfig;if(Sr){var oe=Sr.manifestlessWindowedLiveConfig;if(oe){var sI=Number(oe.minDvrSequence),OM=Number(oe.maxDvrSequence),RX=Number(oe.minDvrMediaTimeMs),SG=Number(oe.maxDvrMediaTimeMs),wO=Number(oe.startWalltimeMs);sI&&(this.Rj=sI);RX&&(this.fH=RX/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&Ee(this)&&(this.Fh=RX/ 1E3));OM&&(this.uY=OM);SG&&(this.Ca=SG/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&Ee(this)&&(this.f3=SG/1E3));wO&&(this.LB=wO/1E3);(sI||RX)&&(OM||SG)&&(this.allowLiveDvr=this.isLivePlayback=this.YA=!0,this.iZ=!1)}var nD=Sr.daiConfig;if(nD){if(nD.enableDai){this.Mn=!0;var $c=nD.enableServerStitchedDai;$c&&(this.enableServerStitchedDai=$c);var kK=nD.enablePreroll;kK&&(this.Oc=kK)}var Hv;if(nD.daiType==="DAI_TYPE_SS_DISABLED"||((Hv=nD.debugInfo)==null?0:Hv.isDisabledUnpluggedChannel))this.L1= !0;nD.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.OO=!0)}var Xi=Sr.audioConfig;if(Xi){var rj=Xi.loudnessDb;rj!=null&&(this.e1=rj);var vGQ=Xi.trackAbsoluteLoudnessLkfs;vGQ!=null&&(this.Nf=vGQ);var I7B=Xi.loudnessTargetLkfs;I7B!=null&&(this.loudnessTargetLkfs=I7B);Xi.audioMuted&&(this.TL=!0);Xi.muteOnStart&&(this.KV=!0);var SR=Xi.loudnessNormalizationConfig;if(SR){SR.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);SR.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var jvN=SR.minimumLoudnessTargetLkfs;jvN!=null&&(this.minimumLoudnessTargetLkfs=jvN);var FbY=SR.maxStatefulTimeThresholdSec;FbY!=null&&(this.maxStatefulTimeThresholdSec=FbY)}this.Y("web_player_audio_playback_from_audio_config")&&Xi.playAudioOnly&&(this.sF=!0)}var wAv=Sr.playbackEndConfig;if(wAv){var oGx=wAv.endSeconds,nGS=wAv.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(oGx&&(this.endSeconds=oGx),nGS&&(this.limitedPlaybackDurationInSeconds=nGS))}var Pa=Sr.fairPlayConfig;if(Pa){var Qvi= Pa.certificate;Qvi&&(this.CH=Ec(Qvi));var r1u=Number(Pa.keyRotationPeriodMs);r1u>0&&(this.H_=r1u);var U0D=Number(Pa.keyPrefetchMarginMs);U0D>0&&(this.SB=U0D)}var H8=Sr.playbackStartConfig;if(H8){this.Sv=Number(H8.startSeconds);var svB=H8.liveUtcStartSeconds,kgY=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;svB&&!kgY&&(this.liveUtcStartSeconds=Number(svB));var R2x=H8.startPosition;if(R2x){var gGu=R2x.utcTimeMillis;gGu&&!kgY&&(this.liveUtcStartSeconds=Number(gGu)*.001);var GgN=R2x.streamTimeMillis; GgN&&(this.vO=Number(GgN)*.001)}this.progressBarStartPosition=H8.progressBarStartPosition;this.progressBarEndPosition=H8.progressBarEndPosition}else{var SUE=Sr.skippableSegmentsConfig;if(SUE){var N$x=SUE.introSkipDurationMs;N$x&&(this.ev=Number(N$x)/1E3);var f7f=SUE.outroSkipDurationMs;f7f&&(this.HN=Number(f7f)/1E3)}}var $if=Sr.skippableIntroConfig;if($if){var z$S=Number($if.startMs),pKu=Number($if.endMs);isNaN(z$S)||isNaN(pKu)||(this.C2=z$S,this.y4=pKu)}var cWW=Sr.streamSelectionConfig;cWW&&(this.Lv= Number(cWW.maxBitrate));var B1B=Sr.vrConfig;B1B&&(this.nz=B1B.partialSpherical=="1");var $S=Sr.webDrmConfig;if($S){$S.skipWidevine&&(this.WJ=!0);var HeQ=$S.widevineServiceCert;HeQ&&(this.Ob=Ec(HeQ));$S.useCobaltWidevine&&(this.useCobaltWidevine=!0);$S.startWithNoQualityConstraint&&(this.Rz=!0)}var pI=Sr.mediaCommonConfig;if(pI){var AA=pI.dynamicReadaheadConfig;if(AA){this.maxReadAheadMediaTimeMs=AA.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=AA.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= AA.readAheadGrowthRateMs||NaN;var iev,T1D=pI==null?void 0:(iev=pI.mediaUstreamerRequestConfig)==null?void 0:iev.videoPlaybackUstreamerConfig;T1D&&(this.dL=Ec(T1D));var KeE=pI==null?void 0:pI.sabrContextUpdates;if(KeE&&KeE.length>0)for(var beu=g.m(KeE),uCS=beu.next();!uCS.done;uCS=beu.next()){var mh=uCS.value;if(mh.type&&mh.value){var iNE={type:mh.type,scope:mh.scope,value:Ec(mh.value)||void 0,sendByDefault:mh.sendByDefault};this.sabrContextUpdates.set(mh.type,iNE)}}}var Vkx=pI.serverPlaybackStartConfig; Vkx&&(this.serverPlaybackStartConfig=Vkx);pI.useServerDrivenAbr&&(this.Q3=!0);var Dau=pI.requestPipeliningConfig;Dau&&(this.requestPipeliningConfig=Dau)}var tkV=Sr.inlinePlaybackConfig;tkV&&(this.UC=!!tkV.showAudioControls);var Op=Sr.embeddedPlayerConfig;if(Op){this.embeddedPlayerConfig=Op;var aXE=Op.embeddedPlayerMode;if(aXE){var XKB=this.N();XKB.T$=aXE;XKB.D=aXE==="EMBEDDED_PLAYER_MODE_PFL"}var xai=Op.permissions;xai&&(this.allowImaMonetization=!!xai.allowImaMonetization)}var EMN=Sr.ssapConfig; EMN&&(this.k9=EMN.ssapPrerollEnabled||!1);var wE=Sr.webPlayerConfig;wE&&(wE.gatewayExperimentGroup&&(this.gatewayExperimentGroup=wE.gatewayExperimentGroup),wE.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var c4=this.playerResponse.streamingData;if(c4){var ZwY=c4.formats;if(ZwY){for(var Kl=[],qBi=g.m(ZwY),LeQ=qBi.next();!LeQ.done;LeQ=qBi.next()){var diQ=LeQ.value;Kl.push(diQ.itag+"/"+diQ.width+"x"+diQ.height)}this.Th=Kl.join(",");Kl=[];for(var JWv=g.m(ZwY),WeV=JWv.next();!WeV.done;WeV=JWv.next()){var uV= WeV.value,aP={itag:uV.itag,type:uV.mimeType,quality:uV.quality},MkN=uV.url;MkN&&(aP.url=MkN);var R5=yq(uV),TSQ=R5.vK,bNl=R5.Mf,V9J=R5.s;R5.S$&&(aP.url=TSQ,aP.sp=bNl,aP.s=V9J);Kl.push(g.kA(aP))}this.Hf=Kl.join(",")}var yui=c4.hlsFormats;if(yui&&!this.Y("safari_live_drm_captions_fix")){var YBv=Sr||null,SH={};if(YBv){var Cvf=YBv.audioPairingConfig;if(Cvf&&Cvf.pairs)for(var maQ=g.m(Cvf.pairs),e2f=maQ.next();!e2f.done;e2f=maQ.next()){var h$S=e2f.value,lXu=h$S.videoItag;SH[lXu]||(SH[lXu]=[]);SH[lXu].push(h$S.audioItag)}}for(var PdD= {},AWY=g.m(yui),vCS=AWY.next();!vCS.done;vCS=AWY.next()){var Oev=vCS.value;PdD[Oev.itag]=Oev.bitrate}for(var wKW=[],R$E=g.m(yui),IXV=R$E.next();!IXV.done;IXV=R$E.next()){var BN=IXV.value,un={itag:BN.itag,type:BN.mimeType,url:BN.url,bitrate:BN.bitrate,width:BN.width,height:BN.height,fps:BN.fps},$n=BN.audioTrack;if($n){var SBB=$n.displayName;SBB&&(un.name=SBB,un.audio_track_id=$n.id,$n.audioIsDefault&&(un.is_default="1"))}if(BN.drmFamilies){for(var $au=[],KuW=g.m(BN.drmFamilies),jQY=KuW.next();!jQY.done;jQY= KuW.next())$au.push(AX[jQY.value]);un.drm_families=$au.join(",")}var Kv=SH[BN.itag];if(Kv&&Kv.length){un.audio_itag=Kv.join(",");var ufN=PdD[Kv[0]];ufN&&(un.bitrate+=ufN)}var aeY=ywS(BN);aeY&&(un.eotf=aeY);BN.audioChannels&&(un.audio_channels=BN.audioChannels);wKW.push(g.kA(un))}this.hlsFormats=wKW.join(",")}var Fef=c4.licenseInfos;if(Fef&&Fef.length>0){for(var Zex={},LuV=g.m(Fef),oCB=LuV.next();!oCB.done;oCB=LuV.next()){var da_=oCB.value,WuD=da_.drmFamily,yWN=da_.url;WuD&&yWN&&(Zex[AX[WuD]]=yWN)}this.o8= Zex}var CdW=c4.drmParams;CdW&&(this.drmParams=CdW);var e$f=c4.dashManifestUrl;e$f&&(this.wU=g.g6(e$f,{cpn:this.clientPlaybackNonce}));var leS=c4.hlsManifestUrl;leS&&(this.hlsvp=leS);var vMS=c4.probeUrl;vMS&&(this.probeUrl=DI(g.g6(vMS,{cpn:this.clientPlaybackNonce})));var Iex=c4.serverAbrStreamingUrl;Iex&&(this.mu=new g.uF(Iex,!0))}var jLW=this.playerResponse.trackingParams;jLW&&(this.Ra=jLW);var ku=this.playerResponse.videoDetails;if(ku){var aj=z,nCx=ku.videoId;nCx&&(this.videoId=nCx,aj.video_id|| (aj.video_id=nCx));var FuN=ku.channelId;FuN&&(this.G.uid=FuN.substring(2));var QQi=ku.title;QQi&&(this.title=QQi,aj.title||(aj.title=QQi));var ruv=ku.lengthSeconds;ruv&&(this.lengthSeconds=Number(ruv),aj.length_seconds||(aj.length_seconds=ruv));var oMY=ku.keywords;oMY&&(this.keywords=KiW(oMY));var Uix=ku.channelId;Uix&&(this.uD=Uix,aj.ucid||(aj.ucid=Uix));var nMx=ku.viewCount;nMx&&(this.rawViewCount=Number(nMx));var sQN=ku.author;sQN&&(this.author=sQN,aj.author||(aj.author=sQN));var QLi=ku.shortDescription; QLi&&(this.shortDescription=QLi);var rWS=ku.isCrawlable;rWS&&(this.isListed=rWS);var UaY=ku.musicVideoType;UaY&&(this.musicVideoType=UaY);var ksv=ku.isLive;ksv!=null&&(this.isLivePlayback=ksv);if(ksv||ku.isUpcoming)this.isPremiere=!ku.isLiveContent;var sLY=ku.thumbnail;sLY&&(this.U=Rd(sLY));var knu=ku.isExternallyHostedPodcast;knu&&(this.isExternallyHostedPodcast=knu);var gCi=ku.viewerLivestreamJoinPosition;if(gCi==null?0:gCi.utcTimeMillis)this.ao=Tk(gCi.utcTimeMillis);var gMf=Sr||null,GsQ=z;ku.isLiveDefaultBroadcast&& (this.isLiveDefaultBroadcast=!0);ku.isUpcoming&&(this.isUpcoming=!0);if(ku.isPostLiveDvr){this.iZ=!0;var Gnx=ku.latencyClass;Gnx&&(this.latencyClass=jJq[Gnx]||"UNKNOWN");ku.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var NhV=!1;this.sH?(this.allowLiveDvr=bP()?!0:BL&&nn<5?!1:!0,this.isLivePlayback=!0):ku.isLive?(GsQ.livestream="1",this.allowLiveDvr=ku.isLiveDvrEnabled?bP()?!0:BL&&nn<5?!1:!0:!1,this.partnerId=27,NhV=!0):ku.isUpcoming&&(NhV=!0);if(ku.isLive||this.sH&&this.Y("html5_parse_live_monitor_flags")){ku.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var N1Y=ku.latencyClass;N1Y&&(this.latencyClass=jJq[N1Y]||"UNKNOWN");var feY=ku.liveChunkReadahead;feY&&(this.liveChunkReadahead=feY);var iS=gMf&&gMf.livePlayerConfig;if(iS){iS.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);iS.hasSubfragmentedWebm&&(this.wb=!0);iS.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var zJY=iS.liveExperimentalContentId;zJY&&(this.liveExperimentalContentId=Number(zJY));var pmY=iS.isLiveHeadPlayable;this.Y("html5_live_head_playable")&& pmY!=null&&(this.isLiveHeadPlayable=pmY)}}NhV&&(this.isLivePlayback=!0,GsQ.adformat&&GsQ.adformat.split("_")[1]!=="8"||this.tD.push("heartbeat"),this.Em=!0)}var cmY=ku.isPrivate;cmY!==void 0&&(this.isPrivate=DA(this.isPrivate,cmY))}if(VW){var BAQ=ku||null,HRu=!1,TE=VW.errorScreen;HRu=TE&&(TE.playerLegacyDesktopYpcOfferRenderer||TE.playerLegacyDesktopYpcTrailerRenderer||TE.ypcTrailerRenderer)?!0:BAQ&&BAQ.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(VW.status);if(!HRu){this.errorCode= emS(VW.errorCode)||"auth";var up=TE&&TE.playerErrorMessageRenderer;if(up){this.playerErrorMessageRenderer=up;var iRD=up.reason;iRD&&(this.errorReason=g.wJ(iRD));var fXB=up.subreason;fXB&&(this.k8=g.wJ(fXB),this.TG=fXB)}else this.errorReason=VW.reason||null;var zfi=VW.status;if(zfi==="LOGIN_REQUIRED")this.errorDetail="1";else if(zfi==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(zfi==="AGE_CHECK_REQUIRED"){var TAV=VW.errorScreen,bRx=TAV&&TAV.playerKavRenderer;this.errorDetail=bRx&&bRx.kavUrl? "4":"3"}else this.errorDetail=VW.isBlockedInRestrictedMode?"5":"0"}}var V8S=this.playerResponse.interstitialPods;V8S&&GNY(this,V8S);this.Zt&&this.eventId&&(this.Zt=E0(this.Zt,{ei:this.eventId}));var pjD=this.playerResponse.captions;if(pjD&&pjD.playerCaptionsTracklistRenderer)a:{var ZR=pjD.playerCaptionsTracklistRenderer;this.captionTracks=[];if(ZR.captionTracks)for(var DnN=g.m(ZR.captionTracks),coD=DnN.next();!coD.done;coD=DnN.next()){var L4=coD.value,t8Y=RgQ(L4.baseUrl);if(!t8Y)break a;var BCV={is_translateable:!!L4.isTranslatable, languageCode:L4.languageCode,languageName:L4.name&&g.wJ(L4.name),url:t8Y,vss_id:L4.vssId,kind:L4.kind};BCV.name=L4.trackName;BCV.displayName=L4.name&&g.wJ(L4.name);this.captionTracks.push(new g.hj(BCV))}this.wy=ZR.audioTracks||[];this.fh=ZR.defaultAudioTrackIndex||0;this.xn=[];if(ZR.translationLanguages)for(var Xm_=g.m(ZR.translationLanguages),HHY=Xm_.next();!HHY.done;HHY=Xm_.next()){var bS=HHY.value,hp={};hp.languageCode=bS.languageCode;hp.languageName=g.wJ(bS.languageName);if(bS.translationSourceTrackIndices){hp.translationSourceTrackIndices= [];for(var xnW=g.m(bS.translationSourceTrackIndices),iHi=xnW.next();!iHi.done;iHi=xnW.next())hp.translationSourceTrackIndices.push(iHi.value)}if(bS.excludeAudioTrackIndices){hp.excludeAudioTrackIndices=[];for(var E2Q=g.m(bS.excludeAudioTrackIndices),TCu=E2Q.next();!TCu.done;TCu=E2Q.next())hp.excludeAudioTrackIndices.push(TCu.value)}this.xn.push(hp)}this.SY=[];if(ZR.defaultTranslationSourceTrackIndices)for(var qlY=g.m(ZR.defaultTranslationSourceTrackIndices),bHi=qlY.next();!bHi.done;bHi=qlY.next())this.SY.push(bHi.value); this.rd=!!ZR.contribute&&!!ZR.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Sv=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&frE(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Jmf;this.compositeLiveIngestionOffsetToken= (Jmf=this.playerResponse.playbackTracking)==null?void 0:Jmf.compositeLiveIngestionOffsetToken;var M8x;this.compositeLiveStatusToken=(M8x=this.playerResponse.playbackTracking)==null?void 0:M8x.compositeLiveStatusToken}f8(this,z);z.queue_info&&(this.queueInfo=z.queue_info);var Ylx=z.hlsdvr;Ylx!=null&&(this.allowLiveDvr=Number(Ylx)===1?bP()?!0:BL&&nn<5?!1:!0:!1);this.adQueryId=z.ad_query_id||null;this.qt||(this.qt=z.encoded_ad_safety_reason||null);this.uv=z.agcid||null;this.Ym=z.ad_id||null;this.nA= z.ad_sys||null;this.aW=z.encoded_ad_playback_context||null;this.TL=DA(this.TL,z.infringe||z.muted);this.Zy=z.authkey;this.pT=z.authuser;this.mutedAutoplay=DA(this.mutedAutoplay,z&&z.playmuted);this.mutedAutoplayDurationMode=Xy(this.mutedAutoplayDurationMode,z&&z.muted_autoplay_duration_mode);this.gy=DA(this.gy,z&&z.mutedautoplay);var a5=z.length_seconds;a5&&(this.lengthSeconds=typeof a5==="string"?Tk(a5):a5);if(this.isAd()||this.BW||!g.MD(g.nm(this.QI)))this.endSeconds=Xy(this.endSeconds,this.HN|| z.end||z.endSeconds);else{var D_Q=g.nm(this.QI),Zd=this.lengthSeconds;switch(D_Q){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Zd>30?this.limitedPlaybackDurationInSeconds=30:Zd<30&&Zd>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Zd*.2}}this.Ra=x4(this.Ra,z.itct);this.w4=DA(this.w4,z.noiba);this.SM=DA(this.SM,z.is_live_destination);this.isLivePlayback=DA(this.isLivePlayback,z.live_playback); this.enableServerStitchedDai=this.enableServerStitchedDai&&this.La();z.isUpcoming&&(this.isUpcoming=DA(this.isUpcoming,z.isUpcoming));this.iZ=DA(this.iZ,z.post_live_playback);this.YA&&(this.iZ=!1);this.isMdxPlayback=DA(this.isMdxPlayback,z.mdx);var Lv=z.mdx_control_mode;Lv&&(this.mdxControlMode=typeof Lv==="number"?Lv:Tk(Lv));this.isInlinePlaybackNoAd=DA(this.isInlinePlaybackNoAd,z.is_inline_playback_no_ad);this.Wy=Xy(this.Wy,z.reload_count);this.reloadReason=x4(this.reloadReason,z.reload_reason); this.xG=DA(this.xG,z.show_content_thumbnail);this.Np=DA(this.Np,z.utpsa);this.cycToken=z.cyc||null;this.Nv=z.tkn||null;var mnY=we(z);Object.keys(mnY).length>0&&(this.U=mnY);this.Dt=x4(this.Dt,z.vvt);this.mdxEnvironment=x4(this.mdxEnvironment,z.mdx_environment);z.source_container_playlist_id&&(this.sourceContainerPlaylistId=z.source_container_playlist_id);z.serialized_mdx_metadata&&(this.serializedMdxMetadata=z.serialized_mdx_metadata);this.JU=z.osig;this.eventId||(this.eventId=z.eventid);this.osid|| (this.osid=z.osid);this.playlistId=x4(this.playlistId,z.list);z.index&&(this.playlistIndex=this.playlistIndex===void 0?Xy(0,z.index):Xy(this.playlistIndex,z.index));this.R1=z.pyv_view_beacon_url;this.f5=z.pyv_quartile25_beacon_url;this.OE=z.pyv_quartile50_beacon_url;this.uy=z.pyv_quartile75_beacon_url;this.hG=z.pyv_quartile100_beacon_url;var hJ_=z.session_data;!this.ly&&hJ_&&(this.ly=bO(hJ_,"&").feature);this.isFling=Xy(this.isFling?1:0,z.is_fling)===1;this.vnd=Xy(this.vnd,z.vnd);this.forceAdsUrl= x4(this.forceAdsUrl,z.force_ads_url);this.TU=x4(this.TU,z.ctrl);this.cV=x4(this.cV,z.ytr);this.DI=z.ytrcc;this.r8=z.ytrexp;this.oB=z.ytrext;this.EW=x4(this.EW,z.adformat);this.KJ=x4(this.KJ,z.attrib);this.slotPosition=Xy(this.slotPosition,z.slot_pos);this.breakType=z.break_type;this.iF=DA(this.iF,z.ssrt);this.videoId=qD(z)||this.videoId;this.V=x4(this.V,z.vss_credentials_token);this.x8=x4(this.x8,z.vss_credentials_token_type);this.sF=DA(this.sF,z.audio_only);this.rA=DA(this.rA,z.aac_high);this.LA= DA(this.LA,z.prefer_low_quality_audio);this.Hj=DA(this.Hj,z.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?z.qoe_cat&&(this.U_=this.U_.concat(z.qoe_cat.split(","))):this.dP=x4(this.dP,z.qoe_cat);this.OM=DA(this.OM,z.download_media);var Pcu=z.prefer_gapless;this.S=Pcu!=null?DA(this.S,Pcu):this.S?this.S:this.QI.preferGapless&&this.QI.supportsGaplessShorts();gZu(this.playerResponse)&&this.tD.push("ad");var Am_=z.adaptive_fmts;Am_&&(this.adaptiveFormats=Am_,this.KH("adpfmts",{},!0));var ORQ= z.allow_embed;ORQ&&(this.allowEmbed=Number(ORQ)===1);var wmu=z.backgroundable;wmu&&(this.backgroundable=Number(wmu)===1);var RJE=z.autonav;RJE&&(this.isAutonav=Number(RJE)===1);var SlN=z.autoplay;SlN&&(this.bY=this.Zl=Number(SlN)===1,D7(this,"c"));var $nY=z.iv_load_policy;$nY&&(this.annotationsLoadPolicy=tr(this.annotationsLoadPolicy,$nY,QB));var KJf=z.cc_lang_pref;KJf&&(this.captionsLanguagePreference=x4(KJf,this.captionsLanguagePreference));var ukY=z.cc_load_policy;ukY&&(this.Ug=tr(this.Ug,ukY, QB));var aOV;this.deviceCaptionsOn=(aOV=z.device_captions_on)!=null?aOV:void 0;var ZRf;this.b7=(ZRf=z.device_captions_lang_pref)!=null?ZRf:"";var LJN;this.UD=(LJN=z.viewer_selected_caption_langs)!=null?LJN:[];if(!this.Y("html5_enable_ssap_entity_id")){var dnS=z.cached_load;dnS&&(this.Tf=DA(this.Tf,dnS))}if(z.dash==="0"||z.dash===0||z.dash===!1)this.sD=!0;var WJS=z.dashmpd;WJS&&(this.wU=g.g6(WJS,{cpn:this.clientPlaybackNonce}));var ymv=z.delay;ymv&&(this.Zw=Tk(ymv));var VhQ=this.HN||z.end;if(this.ow? VhQ!=null:VhQ!=void 0)this.clipEnd=Xy(this.clipEnd,VhQ);var CcY=z.fmt_list;CcY&&(this.Th=CcY);z.heartbeat_preroll&&this.tD.push("heartbeat");this.RB=-Math.floor(Math.random()*10);this.V9=-Math.floor(Math.random()*40);var eJY=z.is_listed;eJY&&(this.isListed=DA(this.isListed,eJY));var lON=z.is_private;lON&&(this.isPrivate=DA(this.isPrivate,lON));var v2E=z.is_dni;v2E&&(this.Sd=DA(this.Sd,v2E));var IOx=z.dni_color;IOx&&(this.qk=x4(this.qk,IOx));var j3u=z.pipable;j3u&&(this.pipable=DA(this.pipable,j3u)); this.zF=(this.rQ=this.pipable&&this.QI.K9)&&!this.QI.showMiniplayerButton;var FJx=z.paid_content_overlay_duration_ms;FJx&&(this.paidContentOverlayDurationMs=Tk(FJx));var o2W=z.paid_content_overlay_text;o2W&&(this.paidContentOverlayText=o2W);var n2x=z.url_encoded_fmt_stream_map;n2x&&(this.Hf=n2x);var Q3V=z.hls_formats;Q3V&&(this.hlsFormats=Q3V);var rmN=z.hlsvp;rmN&&(this.hlsvp=rmN);var dE=z.live_start_walltime;dE&&(this.Ak=typeof dE==="number"?dE:Tk(dE));var Wa=z.live_manifest_duration;Wa&&(this.Vy= typeof Wa==="number"?Wa:Tk(Wa));var UnY=z.player_params;UnY&&(this.playerParams=UnY);var s3_=z.partnerid;s3_&&(this.partnerId=Xy(this.partnerId,s3_));var khS=z.probe_url;khS&&(this.probeUrl=DI(g.g6(khS,{cpn:this.clientPlaybackNonce})));var DQN=z.pyv_billable_url;DQN&&TJY(DQN)&&(this.l6=DQN);var thN=z.pyv_conv_url;thN&&TJY(thN)&&(this.AX=thN);uRu(this,z);this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Sv||this.ev||z.start||z.startSeconds)&&this.KH("lss", {css:this.startSeconds,pcss:this.Sv,iss:this.ev,ps:z.start||void 0,pss:z.startSeconds||void 0}):this.gt=this.startSeconds=Xy(this.startSeconds,this.Sv||this.ev||z.start||z.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var g2W=z.live_utc_start;if(g2W!=null)this.liveUtcStartSeconds=Number(g2W);else{var Xjf=this.startSeconds;Xjf&&isFinite(Xjf)&&Xjf>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Ghv=z.utc_start_millis; Ghv&&(this.liveUtcStartSeconds=Number(Ghv)*.001)}var NAB=z.stream_time_start_millis;NAB&&(this.vO=Number(NAB)*.001);var xQx=this.ev||z.start;(this.ow?xQx==null||Number(z.resume)===1:xQx==void 0||z.resume=="1")||this.isLivePlayback||(this.clipStart=Xy(this.clipStart,xQx));var fOB=z.url_encoded_third_party_media;fOB&&(this.Gx=t6(fOB));var E0Y=z.ypc_offer_button_formatted_text;if(E0Y){var zOx=JSON.parse(E0Y);this.ED=zOx!=null?zOx:null;this.TF=E0Y}var pCY=z.ypc_offer_button_text;pCY&&(this.Fd=pCY);var cFD= z.ypc_offer_description;cFD&&(this.Ws=cFD);var B_E=z.ypc_offer_headline;B_E&&(this.N0=B_E);var Haf=z.ypc_full_video_message;Haf&&(this.CQ=Haf);var iau=z.ypc_offer_id;iau&&(this.gp=iau);var T_E=z.ypc_buy_url;T_E&&(this.Mt=T_E);var baS=z.ypc_item_thumbnail;baS&&(this.eB=baS);var VJv=z.ypc_item_title;VJv&&(this.kY=VJv);var DEf=z.ypc_item_url;DEf&&(this.z1=DEf);var tJS=z.ypc_vid;tJS&&(this.a_=tJS);z.ypc_overlay_timeout&&(this.K9=Number(z.ypc_overlay_timeout));var XCS=z.ypc_trailer_player_vars;XCS&&(this.wp= Dz(XCS));var xEx=z.ypc_original_itct;xEx&&(this.Tq=xEx);this.uD=x4(this.uD,z.ucid);z.baseUrl&&(this.G.baseUrl=z.baseUrl);z.uid&&(this.G.uid=z.uid);z.oeid&&(this.G.oeid=z.oeid);z.ieid&&(this.G.ieid=z.ieid);z.ppe&&(this.G.ppe=z.ppe);z.engaged&&(this.G.engaged=z.engaged);z.subscribed&&(this.G.subscribed=z.subscribed);this.G.focEnabled=DA(this.G.focEnabled,z.focEnabled);this.G.rmktEnabled=DA(this.G.rmktEnabled,z.rmktEnabled);this.gS=z.storyboard_spec||null;this.GG=z.live_storyboard_spec||null;this.JR= z.iv_endscreen_url||null;this.Em=DA(this.Em,z.ypc_license_checker_module);this.j1=DA(this.j1,z.ypc_module);this.UF=DA(this.UF,z.ypc_clickwrap_module);this.j1&&this.tD.push("ypc");this.UF&&this.tD.push("ypc_clickwrap");this.EO={video_id:z.video_id,eventid:z.eventid,cbrand:z.cbrand,cbr:z.cbr,cbrver:z.cbrver,c:z.c,cver:z.cver,ctheme:z.ctheme,cplayer:z.cplayer,cmodel:z.cmodel,cnetwork:z.cnetwork,cos:z.cos,cosver:z.cosver,cplatform:z.cplatform,user_age:z.user_age,user_display_image:z.user_display_image, user_display_name:z.user_display_name,user_gender:z.user_gender,csi_page_type:z.csi_page_type,csi_service_name:z.csi_service_name,enablecsi:z.enablecsi,enabled_engage_types:z.enabled_engage_types};wrS(this,z);var Eov=z.cotn;Eov&&(this.cotn=Eov);if(FiW(this))Mk(this)&&(this.isLivePlayback&&this.wU&&(this.gC=!0),this.CH&&(this.Dp=!0));else if(oSY(this))this.gC=!0;else{var q$B,JFD,MJv=((q$B=this.playerResponse)==null?void 0:(JFD=q$B.streamingData)==null?void 0:JFD.adaptiveFormats)||[];if(MJv.length> 0)var Zo=jPE(this,MJv);else{var Y$E=this.adaptiveFormats;if(Y$E&&!Mk(this)){YI(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(yr=!0);var VV=Ry(Y$E),q2E=this.o8,mEx=this.lengthSeconds,t93=this.isLivePlayback,Ll=this.iZ,DG=this.QI,Xh1=gK_(VV);if(t93||Ll){var hO_=DG==null?void 0:DG.experiments,F8=new hX("",hO_,!0);F8.La=!0;F8.isManifestless=!0;F8.K=!Ll;F8.isLive=!Ll;F8.iZ=Ll;for(var PbQ=g.m(VV),JoV=PbQ.next();!JoV.done;JoV=PbQ.next()){var tz=JoV.value,AFD=wm(tz,q2E),Pd=RM(tz.url,tz.sp,tz.s), Oa_=Pd.get("id");Oa_&&Oa_.includes("%7E")&&(F8.U=!0);var wCi=void 0,x_g=(wCi=hO_)==null?void 0:wCi.JD("html5_max_known_end_time_rebase"),E5l=Number(tz.target_duration_sec)||5,q0v=Number(tz.max_dvr_duration_sec)||14400,ROV=Number(Pd.get("mindsq")||Pd.get("min_sq")||"0"),S$Y=Number(Pd.get("maxdsq")||Pd.get("max_sq")||"0")||Infinity;F8.Rj=F8.Rj||ROV;F8.uY=F8.uY||S$Y;var J6z=!Di(AFD.mimeType);Pd&&JX(F8,new cw(Pd,AFD,{MO:E5l,Cn:J6z,DY:q0v,Rj:ROV,uY:S$Y,Ww:300,iZ:Ll,u3:x_g}))}var $E_=F8}else{if(Xh1==="FORMAT_STREAM_TYPE_OTF"){var yl= mEx;yl=yl===void 0?0:yl;var X6=new hX("",DG==null?void 0:DG.experiments,!1);X6.duration=yl||0;for(var Kqu=g.m(VV),MhE=Kqu.next();!MhE.done;MhE=Kqu.next()){var xl=MhE.value,Y2S=wm(xl,q2E,X6.duration),mQS=RM(xl.url,xl.sp,xl.s);if(mQS)if(Y2S.streamType==="FORMAT_STREAM_TYPE_OTF")JX(X6,new Bw(mQS,Y2S,"sq/0"));else{var M9v=yz(xl.init),Y0l=yz(xl.index);JX(X6,new xT(mQS,Y2S,M9v,Y0l))}}X6.isOtf=!0;var uXY=X6}else{var Cv=mEx;Cv=Cv===void 0?0:Cv;var eH=new hX("",DG==null?void 0:DG.experiments,!1);eH.duration= Cv||0;for(var aZf=g.m(VV),hfE=aZf.next();!hfE.done;hfE=aZf.next()){var EG=hfE.value,m_J=wm(EG,q2E,eH.duration),hWv=yz(EG.init),PO9=yz(EG.index),Zau=RM(EG.url,EG.sp,EG.s);Zau&&JX(eH,new xT(Zau,m_J,hWv,PO9))}uXY=eH}$E_=uXY}var LqE=$E_;if(VV.length>0){var dEB=VV[0];if(this.N().playerStyle==="hangouts-meet"&&dEB.url){var A6$=g.XL(dEB.url);this.ND=this.ND||Number(A6$.expire)}}var ONl=this.isLivePlayback&&!this.iZ&&!this.YA&&!this.isPremiere;this.Y("html5_live_head_playable")&&(!m9(this)&&ONl&&this.KH("missingLiveHeadPlayable", {}),this.QI.MZ==="yt"&&(LqE.OH=!0));Zo=LqE}else Zo=null;this.KH("pafmts",{isManifestFilled:!!Zo})}if(Zo){Aa(this,Zo);var Wqf=!0}else Wqf=!1;Wqf?this.enableServerStitchedDai=this.enableServerStitchedDai&&ha(this):this.wU&&(this.QI.MZ==="yt"&&this.La()&&this.Y("drm_manifestless_unplugged")&&this.Y("html5_deprecate_manifestful_fallback")?this.KH("deprecateMflFallback",{}):this.gC=!0)}var PUi=z.adpings;PUi&&(this.fJ=PUi?Dz(PUi):null);var yFD=z.feature;yFD&&(this.E_=yFD);var Cb_=z.referrer;Cb_&&(this.referrer= Cb_);this.clientScreenNonce=x4(this.clientScreenNonce,z.csn);this.df=Xy(this.df,z.root_ve_type);this.zf=Xy(this.zf,z.kids_age_up_mode);this.ow||z.kids_app_info==void 0||(this.kidsAppInfo=z.kids_app_info);this.ow&&z.kids_app_info!=null&&(this.kidsAppInfo=z.kids_app_info);this.wS=DA(this.wS,z.upg_content_filter_mode);this.unpluggedFilterModeType=Xy(this.unpluggedFilterModeType,z.unplugged_filter_mode_type);var eOu=z.unplugged_location_info;eOu&&(this.MZ=eOu);var lZi=z.unplugged_partner_opt_out;lZi&& (this.qv=x4("",lZi));this.iO=DA(this.iO,z.disable_watch_next);this.wh=x4(this.wh,z.internal_ip_override);this.Zj=!!z.is_yto_interstitial;(this.interstitials.length||this.Zj)&&this.tD.push("yto");var voW=z.Dg;voW&&(this.Dg=voW);var IZY;this.OH=(IZY=z.csi_timer)!=null?IZY:"";this.dh=!!z.force_gvi;z.watchUrl&&(this.watchUrl=z.watchUrl);var Ap=z.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&&Ap&&vbi(this,Ap);if(Ap==null?0:Ap.ustreamerConfig)this.Um=Ec(Ap.ustreamerConfig);var jaV, FqN,oof=Ap==null?void 0:(jaV=Ap.loggingContext)==null?void 0:(FqN=jaV.qoeLoggingContext)==null?void 0:FqN.serializedContextData;oof&&(this.EK=oof);g.yB(this.QI)&&this.QI.v0&&(this.embedsRct=x4(this.embedsRct,z.rct),this.embedsRctn=x4(this.embedsRctn,z.rctn));this.v0=this.v0||!!z.pause_at_start;z.default_active_source_video_id&&(this.defaultActiveSourceVideoId=z.default_active_source_video_id)}; g.V.N=function(){return this.QI}; g.V.Y=function(z){return this.QI.Y(z)}; g.V.iz=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.V.hasSupportedAudio51Tracks=function(){var z;return!((z=this.wJ)==null||!z.UH)}; g.V.getUserAudio51Preference=function(){var z=1;BX(this.QI)&&this.Y("html5_ytv_surround_toggle_default_off")?z=0:g.zU(this.QI)&&this.isLivePlayback&&this.ke()&&(z=0);var p;return(p=g.Fy("yt-player-audio51"))!=null?p:z}; g.V.S4=function(){this.qZ()||(this.W.K||this.W.unsubscribe("refresh",this.S4,this),this.yB(-1))}; g.V.yB=function(z){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var p=NrY(this.W,this.PN);if(p.length>0){for(var c=g.m(p),B=c.next();!B.done;B=c.next())B=B.value,B.startSecs=Math.max(B.startSecs,this.pB()),this.Y("html5_cuepoint_identifier_logging")&&B.event==="start"&&this.KH("cuepoint",{pubCue:B.identifier,segNum:z});this.publish("cuepointupdated",p,z);this.PN+=p.length;if(ha(this)&&this.QI.OW())for(p=g.m(p),c=p.next();!c.done;c=p.next())c=c.value,this.KH("cuepoint",{segNum:z,event:c.event, startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.xm.start=this.NZ,this.xm.end=c+3)}}}; g.V.TY=function(){this.qZ()||(this.loading=!1,this.publish("dataloaded"))}; g.V.ke=function(){return this.uO!==void 0?this.uO:this.uO=!!this.o8||!!this.W&&AP(this.W)}; g.V.nu=function(z){var p=this;if(this.qZ())return vh();this.t1=this.UH=this.D=null;YI(this,"html5_high_res_logging_always")&&(this.QI.gJ=!0);return UWY(this,z).then(void 0,function(){return kdQ(p,z)}).then(void 0,function(){return gSx(p)}).then(void 0,function(){return NoE(p)})}; g.V.Ez=function(z){this.D=z;sPB(this,this.D.getAvailableAudioTracks());if(this.D){z=g.m(this.D.videoInfos);for(var p=z.next();!p.done;p=z.next()){p=p.value;var c=p.containerType;c!==0&&(this.Pj[c]=p.id)}}LT(this);if(this.L&&this.D&&this.D.videoInfos&&!(this.D.videoInfos.length<=0)&&(z=im(this.D.videoInfos[0]),this.L.flavor==="fairplay"!==z))for(p=g.m(this.s_),c=p.next();!c.done;c=p.next())if(c=c.value,z===(c.flavor==="fairplay")){this.L=c;break}}; g.V.LD=function(){if(this.cotn)return null;var z=g.d9(this.QI)||this.Y("web_l3_storyboard");if(!this.hA)if(this.playerResponse&&this.playerResponse.storyboards){var p=this.playerResponse.storyboards,c=p.playerStoryboardSpecRenderer;c&&c.spec?this.hA=new re(c.spec,this.lengthSeconds,void 0,!1,z):(p=p.playerLiveStoryboardSpecRenderer)&&p.spec&&this.W&&(c=v_V(this.W.W).index)&&(this.hA=new kW(p.spec,this.W.isLive,c,z))}else this.gS?this.hA=new re(this.gS,this.lengthSeconds,void 0,!1,z):this.GG&&this.W&& (p=v_V(this.W.W).index)&&(this.hA=new kW(this.GG,this.W.isLive,p,z));return this.hA}; g.V.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var z=this.playerResponse.storyboards;return(z=z.playerStoryboardSpecRenderer||z.playerLiveStoryboardSpecRenderer)&&z.spec||null}return this.gS||this.GG}; g.V.Yb=function(){return this.W&&!isNaN(this.W.Yb())?this.W.Yb():ha(this)?0:this.lengthSeconds}; g.V.pB=function(){return this.W&&!isNaN(this.W.pB())?this.W.pB():0}; g.V.getPlaylistSequenceForTime=function(z){if(this.W&&this.K){var p=this.W.W[this.K.id];if(!p)return null;var c=p.index.Hn(z);p=p.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((z-p)*1E3)}}return null}; g.V.NP=function(){return!this.qZ()&&!(!this.videoId&&!this.Gx)}; g.V.x7=function(){var z,p,c;return!!this.adaptiveFormats||!!((z=this.playerResponse)==null?0:(p=z.streamingData)==null?0:(c=p.adaptiveFormats)==null?0:c.length)}; g.V.isLoaded=function(){return Nb(this)&&!this.gC&&!this.Dp}; g.V.o3=function(z){z||(z="hqdefault.jpg");var p=this.U[z];return p||this.QI.Dt||z==="pop1.jpg"||z==="pop2.jpg"||z==="sddefault.jpg"||z==="hq720.jpg"||z==="maxresdefault.jpg"?p:NB(this.QI,this.videoId,z)}; g.V.La=function(){return this.isLivePlayback||this.iZ||this.YA||!(!this.liveUtcStartSeconds||!this.Vy)}; g.V.isOtf=function(){return!!this.W&&(this.W.isOtf||!this.iZ&&!this.isLivePlayback&&this.W.K)}; g.V.getAvailableAudioTracks=function(){return this.D?this.D.getAvailableAudioTracks().length>0?this.D.getAvailableAudioTracks():this.Ru||[]:[]}; g.V.getAudioTrack=function(){var z=this;if(this.X&&!im(this.X))return g.kL(this.getAvailableAudioTracks(),function(B){return B.id===z.X.id})||this.SK; if(this.Ru){if(!this.RP)for(var p=g.m(this.Ru),c=p.next();!c.done;c=p.next())if(c=c.value,c.bQ.getIsDefault()){this.RP=c;break}return this.RP||this.SK}return this.SK}; g.V.getPlayerResponse=function(){return this.playerResponse}; g.V.getWatchNextResponse=function(){return this.i8}; g.V.getHeartbeatResponse=function(){return this.gT}; g.V.ZZ=function(){return this.watchUrl?this.watchUrl:this.QI.getVideoUrl(this.videoId)}; g.V.PE=function(){return!!this.W&&(FXB(this.W)||oKv(this.W)||nKv(this.W))}; g.V.getEmbeddedPlayerResponse=function(){return this.Sh}; g.V.Jo=function(){return(this.eventLabel||this.QI.Ra)==="shortspage"}; g.V.isAd=function(){return this.So||!!this.adFormat}; g.V.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.V.yL=function(){var z,p,c;return this.isDaiEnabled()&&!!((z=this.playerResponse)==null?0:(p=z.playerConfig)==null?0:(c=p.daiConfig)==null?0:c.ssaEnabledPlayback)}; g.V.WR=function(){return hwx(this)?this.C1:this.Em||this.Ye}; g.V.l1=function(){return this.j1||this.Ye}; g.V.fu=function(){return YI(this,"html5_samsung_vp9_live")}; g.V.KH=function(z,p,c){this.publish("ctmp",z,p,c)}; g.V.aT=function(z,p,c){this.publish("ctmpstr",z,p,c)}; g.V.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.V.getGetAdBreakContext=function(z,p){z=z===void 0?NaN:z;p=p===void 0?NaN:p;var c={isSabr:Ee(this)},B,H=(B=this.getHeartbeatResponse())==null?void 0:B.adBreakHeartbeatParams;H&&(c.adBreakHeartbeatParams=H);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.W&&!isNaN(z)&&!isNaN(p)){p=z-p;for(var T in this.W.W)if(B=this.W.W[T],B.info.Ni()||B.info.aI())if(B=B.index,B.isLoaded()){T=B.Hn(p);B=B.S5(T)+p-B.getStartTime(T);this.KH("gabc",{t:z.toFixed(3),mt:p.toFixed(3),sg:T,igt:B.toFixed(3)}); c.livePlaybackPosition={utcTimeMillis:""+(B*1E3).toFixed(0)};break}}return c}; g.V.isEmbedsShortsMode=function(z,p){if(!g.yB(this.QI))return!1;var c;if(!this.Y("embeds_enable_emc3ds_shorts")&&((c=this.QI.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||(this.QI.T$||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||p)return!1;var B,H;return!!(((B=this.embeddedPlayerConfig)==null?0:(H=B.embeddedPlayerFlags)==null?0:H.isShortsExperienceEligible)&&z.width<=z.height)}; g.V.m0=function(){g.JQ.prototype.m0.call(this);this.fJ=null;delete this.dO;delete this.accountLinkingConfig;delete this.W;this.D=this.gT=this.playerResponse=this.i8=null;this.Hf=this.adaptiveFormats="";delete this.botguardData;this.WM=this.suggestions=this.Yn=null;this.sabrContextUpdates.clear()};var $pf={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},KWQ={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Rwv={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},A$v={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"},wZE={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},OcY={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"},SOB={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.Y(ES,g.e);g.V=ES.prototype;g.V.handleExternalCall=function(z,p,c){var B=this.state.G[z],H=this.state.S[z],T=B;if(H)if(c&&iD(c,pQ$))T=H;else if(!B)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(z,c);if(T){c=!1;B=g.m(p);for(H=B.next();!H.done;H=B.next())if(String(H.value).includes("javascript:")){c=!0;break}c&&g.oc(Error('Dangerous call to "'+z+'" with ['+p+"]."));return T.apply(this,p)}throw Error('Unknown API method: "'+z+'".');}; g.V.logApiCall=function(z,p,c){var B=this.app.N();B.Dp&&!this.state.U.has(z)&&(this.state.U.add(z),g.MG("webPlayerApiCalled",{callerUrl:B.loaderUrl,methodName:z,origin:p||void 0,playerStyle:B.playerStyle||void 0,embeddedPlayerMode:B.T$,errorCode:c}))}; g.V.publish=function(z){var p=g.L_.apply(1,arguments);this.state.D.publish.apply(this.state.D,[z].concat(g.A(p)));if(z==="videodatachange"||z==="resize"||z==="cardstatechange")this.state.K.publish.apply(this.state.K,[z].concat(g.A(p))),this.state.X.publish.apply(this.state.X,[z].concat(g.A(p)))}; g.V.AD=function(z){var p=g.L_.apply(1,arguments);this.state.D.publish.apply(this.state.D,[z].concat(g.A(p)));this.state.K.publish.apply(this.state.K,[z].concat(g.A(p)))}; g.V.Kv=function(z){var p=g.L_.apply(1,arguments);this.state.D.publish.apply(this.state.D,[z].concat(g.A(p)));this.state.K.publish.apply(this.state.K,[z].concat(g.A(p)));this.state.X.publish.apply(this.state.X,[z].concat(g.A(p)))}; g.V.iA=function(z){var p=g.L_.apply(1,arguments);this.state.D.publish.apply(this.state.D,[z].concat(g.A(p)));this.state.K.publish.apply(this.state.K,[z].concat(g.A(p)));this.state.X.publish.apply(this.state.X,[z].concat(g.A(p)));this.state.L.publish.apply(this.state.L,[z].concat(g.A(p)))}; g.V.Y=function(z){return this.app.N().Y(z)}; g.V.m0=function(){if(this.state.element){var z=this.state.element,p;for(p in this.state.W)this.state.W.hasOwnProperty(p)&&(z[p]=null);this.state.element=null}g.e.prototype.m0.call(this)};g.Y(h1,g.W4);h1.prototype.publish=function(z){var p=g.L_.apply(1,arguments);if(this.L.has(z))return this.L.get(z).push(p),!0;var c=!1;try{for(p=[p],this.L.set(z,p);p.length;)c=g.W4.prototype.publish.call.apply(g.W4.prototype.publish,[this,z].concat(g.A(p.shift())))}finally{this.L.delete(z)}return c};g.Y(Pv,g.e);Pv.prototype.m0=function(){this.L.dispose();this.X.dispose();this.K.dispose();this.D.dispose();this.U=this.W=this.S=this.G=this.V=void 0};var y$W=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.Y(OS,ES);g.V=OS.prototype;g.V.getApiInterface=function(){return Array.from(this.state.V)}; g.V.W7=function(z,p){this.state.L.subscribe(z,p)}; g.V.yv0=function(z,p){this.state.L.unsubscribe(z,p)}; g.V.getPlayerState=function(z){return xYY(this.app,z)}; g.V.atH=function(){return xYY(this.app)}; g.V.RzH=function(z,p,c){Sq(this)&&(Wz(this.app,!0,1),ei(this.app,z,p,c,1))}; g.V.getCurrentTime=function(z,p,c){var B=this.getPlayerState(z);if(this.app.getAppState()===2&&B===5){var H;return((H=this.app.getVideoData())==null?void 0:H.startSeconds)||0}return this.Y("web_player_max_seekable_on_ended")&&B===0?VXB(this.app,z):z?this.app.getCurrentTime(z,p,c):this.app.getCurrentTime(z)}; g.V.Cc=function(){return this.app.getCurrentTime(1)}; g.V.lG=function(){var z=this.app.S5(1);return isNaN(z)?this.getCurrentTime(1):z}; g.V.bG=function(){return this.app.getDuration(1)}; g.V.ea=function(z,p){z=g.MQ(Math.floor(z),0,100);isFinite(z)&&$1(this.app,{volume:z,muted:this.isMuted()},p)}; g.V.OtZ=function(z){this.ea(z,!1)}; g.V.F8=function(z){$1(this.app,{muted:!0,volume:this.getVolume()},z)}; g.V.WBI=function(){this.F8(!1)}; g.V.gj=function(z){Rv(this.app)&&!this.Y("embeds_enable_emc3ds_muted_autoplay")||$1(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},z)}; g.V.Y5q=function(){Rv(this.app)&&this.Y("embeds_enable_emc3ds_muted_autoplay")||this.gj(!1)}; g.V.getPlayerMode=function(){var z={};this.app.getVideoData().Sd&&(z.pfp={enableIma:g.VP(this.app.getVideoData())&&this.app.CB().allowImaMonetization,autoplay:rG(this.app.CB()),mutedAutoplay:this.app.CB().mutedAutoplay});return z}; g.V.Hz=function(){var z=this.app.getPresentingPlayerType();if(z===2&&!this.app.Mn()){var p=Kn(this.app.mU());if(!XDd(p)||xvl(p))return}z===3?this.app.jD().UY.playVideo():this.app.N().Y("html5_ssap_ignore_play_for_ad")&&g.pT(this.app.CB())&&z===2||this.app.playVideo(z)}; g.V.IJp=function(){Wz(this.app,!0,1);this.Hz()}; g.V.pauseVideo=function(z){var p=this.app.getPresentingPlayerType();if(p!==2||this.app.Mn()||XDd(Kn(this.app.mU())))p===3?this.app.jD().UY.pauseVideo():this.app.pauseVideo(p,z)}; g.V.W$I=function(){var z=this.app,p=!1;z.Wq.Wy&&(z.nH.publish("pageTransition"),p=!0);z.stopVideo(p)}; g.V.clearVideo=function(){}; g.V.getAvailablePlaybackRates=function(){var z=this.app.N();return z.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(z.X?z.ancestorOrigins[0]:window.location.origin)||z.zf?Z2Q:z.supportsVarispeedExtendedFeatures?L0J:z.Y("web_remix_allow_up_to_3x_playback_rate")&&g.rn(z)?dIE:w0:[1]}; g.V.getPlaybackQuality=function(z){return(z=this.app.Mb(z))?z.getPlaybackQuality():"unknown"}; g.V.xaD=function(){}; g.V.getAvailableQualityLevels=function(z){return(z=this.app.Mb(z))?(z=g.d7(z.K4(),function(p){return p.quality}),z.length&&(z[0]==="auto"&&z.shift(),z=z.concat(["auto"])),z):[]}; g.V.S7=function(){return this.getAvailableQualityLevels(1)}; g.V.mZ$=function(){return this.q1()}; g.V.F0i=function(){return 1}; g.V.getVideoLoadedFraction=function(z){return this.app.getVideoLoadedFraction(z)}; g.V.q1=function(){return this.getVideoLoadedFraction()}; g.V.Qa8=function(){return 0}; g.V.getSize=function(){var z=this.app.Hq().getPlayerSize();return{width:z.width,height:z.height}}; g.V.setSize=function(){this.app.Hq().resize()}; g.V.loadVideoById=function(z,p,c,B){if(!z)return!1;z=A1(z,p,c);return this.app.loadVideoByPlayerVars(z,B)}; g.V.pM8=function(z,p,c){z=this.loadVideoById(z,p,c,1);Wz(this.app,z,1)}; g.V.cueVideoById=function(z,p,c,B){z=A1(z,p,c);this.app.cueVideoByPlayerVars(z,B)}; g.V.w$=function(z,p,c){this.cueVideoById(z,p,c,1)}; g.V.loadVideoByUrl=function(z,p,c,B){z=WWu(z,p,c);return this.app.loadVideoByPlayerVars(z,B)}; g.V.xs3=function(z,p,c){z=this.loadVideoByUrl(z,p,c,1);Wz(this.app,z,1)}; g.V.cueVideoByUrl=function(z,p,c,B){z=WWu(z,p,c);this.app.cueVideoByPlayerVars(z,B)}; g.V.Nl=function(z,p,c){this.cueVideoByUrl(z,p,c,1)}; g.V.TAt=function(){var z=this.app.N();if(z.Dt)return"";var p=this.app.CB(),c=void 0;p.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return z.getVideoUrl(p.videoId,this.getPlaylistId()||void 0,c)}; g.V.yF=function(){return this.app.getDebugText()}; g.V.getVideoEmbedCode=function(){var z=this.app.N();if(z.Dt)return"";var p=this.app.CB();return z.getVideoEmbedCode(p.isPrivate?"":p.title,this.app.CB().videoId,this.app.Hq().getPlayerSize(),this.getPlaylistId()||void 0)}; g.V.kD=function(z,p,c){return P_i(this.app,z,p,c)}; g.V.removeCueRange=function(z){return OXB(this.app,z)}; g.V.loadPlaylist=function(z,p,c,B){this.app.loadPlaylist(z,p,c,B)}; g.V.fwI=function(z,p,c,B){this.loadPlaylist(z,p,c,B);Wz(this.app,!0,1)}; g.V.cuePlaylist=function(z,p,c,B){this.app.cuePlaylist(z,p,c,B)}; g.V.nextVideo=function(z,p){this.app.nextVideo(z,p)}; g.V.cHI=function(){this.nextVideo();Wz(this.app,!0,1)}; g.V.previousVideo=function(z){this.app.previousVideo(z)}; g.V.olH=function(){this.previousVideo();Wz(this.app,!0,1)}; g.V.playVideoAt=function(z){this.app.playVideoAt(z)}; g.V.Ra0=function(z){this.playVideoAt(z);Wz(this.app,!0,1)}; g.V.setShuffle=function(z){var p=this.app.getPlaylist();p&&p.setShuffle(z)}; g.V.setLoop=function(z){var p=this.app.getPlaylist();p&&(p.loop=z)}; g.V.eiH=function(){var z=this.app.getPlaylist();if(!z)return null;for(var p=[],c=0;c=400)if(z=this.CB(),this.T.N().Y("client_respect_autoplay_switch_button_renderer"))z=!!z.autoplaySwitchButtonRenderer;else{var p,c,B,H;z=!!((p=z.getWatchNextResponse())==null?0:(c=p.contents)==null?0:(B=c.twoColumnWatchNextResults)==null?0:(H=B.autoplay)==null?0:H.autoplay)!==!1}if(z)this.W||(this.W=!0,this.DP(this.W),this.T.N().Y("web_player_autonav_toggle_always_listen")||HkE(this), p=this.CB(),this.jq(p.autonavState),this.T.logVisibility(this.element,this.W));else if(this.W=!1,this.DP(this.W),!this.T.N().Y("web_player_autonav_toggle_always_listen"))for(this.T.N().Y("web_player_autonav_toggle_always_listen"),p=g.m(this.K),c=p.next();!c.done;c=p.next())this.vy(c.value)}; g.V.jq=function(z){TUQ(this)?this.isChecked=z!==1:((z=z!==1)||(g.sA(),z=g.KN("web_autonav_allow_off_by_default")&&!g.k4(0,141)&&g.pN("AUTONAV_OFF_BY_DEFAULT")?!1:!g.k4(0,140)),this.isChecked=z);ikD(this)}; g.V.onClick=function(){this.isChecked=!this.isChecked;this.T.G_(this.isChecked?2:1);ikD(this);if(TUQ(this)){var z=this.CB().autoplaySwitchButtonRenderer;this.isChecked&&(z==null?0:z.onEnabledCommand)?this.T.AD("innertubeCommand",z.onEnabledCommand):!this.isChecked&&(z==null?0:z.onDisabledCommand)&&this.T.AD("innertubeCommand",z.onDisabledCommand)}this.T.logClick(this.element)}; g.V.getValue=function(){return this.isChecked}; g.V.CB=function(){return this.T.getVideoData(1)};g.Y(bki,HK);g.Y(Xf,g.zn);Xf.prototype.onClick=function(){this.enabled&&(xM(this,!this.checked),this.publish("select",this.checked))}; Xf.prototype.getValue=function(){return this.checked}; Xf.prototype.setEnabled=function(z){(this.enabled=z)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var DH_=["en-CA","en","es-MX","fr-CA"];g.Y(hW,Xf);hW.prototype.Bq=function(z){z?this.W||(this.QS.nB(this),this.W=!0):this.W&&(this.QS.Jd(this),this.W=!1);this.W&&xM(this,SiY())}; hW.prototype.X=function(){g.Jn(this.element,"ytp-menuitem-highlight-transition-enabled")}; hW.prototype.D=function(z){var p=SiY();z!==p&&(p=g.sA(),GW(190,z),GW(192,!0),p.save(),this.T.AD("cinematicSettingsToggleChange",z))}; hW.prototype.m0=function(){this.W&&this.QS.Jd(this);Xf.prototype.m0.call(this)};g.Y(PK,HK);PK.prototype.updateCinematicSettings=function(z){this.W=z;var p;(p=this.menuItem)==null||p.Bq(z);this.api.publish("onCinematicSettingsVisibilityChange",z)};g.Y(xHN,HK);g.Y(AW,HK);AW.prototype.setCreatorEndscreenVisibility=function(z){var p;(p=Ln(this.api.mU()))==null||p.DP(z)}; AW.prototype.W=function(z){function p(B){B==="creatorendscreen"&&(B=Ln(c.api.mU()))&&B.uu$(c.hideButton)} var c=this;this.hideButton=z;this.events.Z(this.api,"modulecreated",p);p("creatorendscreen")};g.Y(OB,Xf);OB.prototype.D=function(z){this.X(z?1:0)}; OB.prototype.K=function(){var z=this.hasDrcAudioTrack(),p=this.W()===1&&z;xM(this,p);this.setEnabled(z)}; OB.prototype.m0=function(){this.QS.Jd(this);Xf.prototype.m0.call(this)};g.Y(w1,HK);w1.prototype.getDrcUserPreference=function(){return this.W}; w1.prototype.setDrcUserPreference=function(z){g.Iw("yt-player-drc-pref",z,31536E3);z!==this.W&&(this.W=z,this.updateEnvironmentData(),this.K()&&this.api.xP())}; w1.prototype.updateEnvironmentData=function(){this.api.N().wJ=this.W===1}; w1.prototype.K=function(){var z,p,c=(z=this.api.getVideoData())==null?void 0:(p=z.D)==null?void 0:p.W;if(!c)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){var B=this.api.getAudioTrack().bQ.id;return ln(c,function(H){var T;return H.audio.W&&((T=H.bQ)==null?void 0:T.id)===B})}return ln(c,function(H){var T; return((T=H.audio)==null?void 0:T.W)===!0})};g.Y(RL,HK);RL.prototype.onVideoDataChange=function(){var z=this,p=this.api.getVideoData();this.api.gs("embargo",1);var c=p==null?void 0:p.Gi.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?qZ_(this,c.filter(function(B){return Exi(z,B)})):(p==null?0:p.cueRanges)&&qZ_(this,p.cueRanges.filter(function(B){return Exi(z,B)}))}; RL.prototype.K=function(z){return z.embargo!==void 0}; RL.prototype.m0=function(){HK.prototype.m0.call(this);this.W={}};g.Y(Sk,HK); Sk.prototype.addEmbedsConversionTrackingParams=function(z){var p=this.api.N(),c=p.widgetReferrer,B=p.Zt,H=this.W,T="",b=p.getWebPlayerContextConfig();b&&(T=b.embedsIframeOriginParam||"");c.length>0&&(z.embeds_widget_referrer=c);B.length>0&&(z.embeds_referring_euri=B);p.X&&T.length>0&&(z.embeds_referring_origin=T);b&&b.embedsFeature&&(z.feature=b.embedsFeature);H.length>0&&(p.Y("embeds_web_enable_lite_experiment_control_arm_logging")?H.unshift(28572):g.MD(g.nm(p))&&H.unshift(159628),p=H.join(","),p= g.GQ()?p:g.Pe(p,4),z.source_ve_path=p);this.W.length=0};g.Y(Jhu,HK);g.Y(MtV,HK);g.Y($M,g.e);$M.prototype.m0=function(){g.e.prototype.m0.call(this);this.W=null;this.K&&this.K.disconnect()};g.Y(mHV,HK);g.Y(Ke,g.Q);Ke.prototype.show=function(){g.Q.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Ke.prototype.onVideoDataChange=function(z){var p,c,B=(p=this.api.getVideoData())==null?void 0:(c=p.getPlayerResponse())==null?void 0:c.playabilityStatus;B&&(p=hLD(B),g.r(this.api.getPlayerStateObject(),128)||z==="dataloaderror"||!p?(this.K=0,ud(this),this.hide()):(z=(p.remainingTimeSecs||0)*1E3,z>0&&(this.show(),this.updateValue("label",$x(p.label)),AhW(this,z))))}; Ke.prototype.m0=function(){ud(this);g.Q.prototype.m0.call(this)};g.Y(OkQ,HK);g.Y(aL,g.Q);aL.prototype.onClick=function(){this.nH.logClick(this.element);this.nH.AD("onFullerscreenEduClicked")}; aL.prototype.Bq=function(){this.nH.isFullscreen()?this.W?this.fade.hide():this.fade.show():this.hide();this.nH.logVisibility(this.element,this.nH.isFullscreen()&&!this.W)};g.Y(Ze,HK);Ze.prototype.updateFullerscreenEduButtonSubtleModeState=function(z){var p;(p=this.W)!=null&&(g.Yf(p.element,"ytp-fullerscreen-edu-button-subtle",z),z&&!p.K&&(p.element.setAttribute("title","Scroll for details"),LP(p.nH,p.element,p),p.K=!0))}; Ze.prototype.updateFullerscreenEduButtonVisibility=function(z){var p;(p=this.W)!=null&&(p.W=z,p.Bq())};g.Y(wtY,g.Q);g.Y($H_,HK);g.Y(Le,HK);Le.prototype.getSphericalProperties=function(){var z=g.Iv(this.api.mU());return z?z.getSphericalProperties():{}}; Le.prototype.setSphericalProperties=function(z){if(z){var p=g.Iv(this.api.mU());p&&p.setSphericalProperties(z,!0)}};g.Y(d1,HK);g.V=d1.prototype;g.V.createClientVe=function(z,p,c,B){this.api.createClientVe(z,p,c,B===void 0?!1:B)}; g.V.createServerVe=function(z,p,c){this.api.createServerVe(z,p,c===void 0?!1:c)}; g.V.setTrackingParams=function(z,p){this.api.setTrackingParams(z,p)}; g.V.logClick=function(z,p){this.api.logClick(z,p)}; g.V.logVisibility=function(z,p,c){this.api.logVisibility(z,p,c)}; g.V.hasVe=function(z){return this.api.hasVe(z)}; g.V.destroyVe=function(z){this.api.destroyVe(z)};var uGY=!1;yx.prototype.setPlaybackRate=function(z){this.playbackRate=Math.max(1,z)}; yx.prototype.getPlaybackRate=function(){return this.playbackRate};IL.prototype.LW=function(z){var p=g.Tq(z.info.W.info,this.xA.La),c=z.info.pH+this.X,B=z.info.startTime*1E3;if(this.policy.Zt)try{B=this.policy.Zt?g.Tm(z)*1E3:z.info.startTime*1E3}catch(b){Math.random()>.99&&this.logger&&(B=Lb(z.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:z.info.hH(),encodedDataView:g.hy(B,4)})),B=z.info.startTime*1E3}var H=z.info.clipId,T=this.policy.Zt?g.$FB(z)*1E3:z.info.duration*1E3;this.policy.Zt&&(B<0||T<0)&&(this.logger&&(this.logger({missingSegInfo:z.info.hH(), startTimeMs:B,durationMs:T}),this.policy.gh||(B<0&&(B=z.info.startTime*1E3),T<0&&(T=z.info.duration*1E3))),this.policy.gh&&(B<0&&(B=z.info.startTime*1E3),T<0&&(T=z.info.duration*1E3)));return{formatId:p,pH:c,startTimeMs:B,clipId:H,EG:T}}; IL.prototype.vW=function(z){this.timestampOffset=z};oL.prototype.seek=function(z,p){z!==this.W&&(this.seekCount=0);this.W=z;var c=this.videoTrack.K,B=this.audioTrack.K,H=this.audioTrack.oR,T=UHN(this,this.videoTrack,z,this.videoTrack.oR,p);p=UHN(this,this.audioTrack,this.policy.cO?z:T,H,p);z=Math.max(z,T,p);this.L=!0;this.xA.isManifestless&&(F7v(this,this.videoTrack,c),F7v(this,this.audioTrack,B));return z}; oL.prototype.isSeeking=function(){return this.L}; oL.prototype.Hk=function(z){this.D=z}; var rhN=2/24;var gx_=0;g.V=zh.prototype;g.V.Q0=function(){this.U=this.now();shD(this.Tl,this.U);this.e9.Q0()}; g.V.s0=function(z,p){var c=this.policy.K?(0,g.y2)():0;pR(this,z,p);z-this.V<10&&this.K>0||this.v_(z,p);this.e9.s0(z,p);this.policy.K&&(z=(0,g.y2)()-c,this.FQ+=z,this.sH=Math.max(z,this.sH))}; g.V.v_=function(z,p){var c=(z-this.V)/1E3,B=p-this.D;this.f9||(SF(this.Tl,c,B),this.Lm(c,B));this.V=z;this.D=p}; g.V.Gc=function(){this.T$&&GaQ(this);this.e9.Gc()}; g.V.Az=function(z){this.T$||(this.T$=this.L-this.gt+z,this.EW=this.L,this.Wy=this.G)}; g.V.R6=function(z,p){z=z===void 0?this.G:z;p=p===void 0?this.L:p;this.K>0||(this.S=z,this.K=p,this.MZ=this.isActive=!0)}; g.V.g7=function(){return this.OF||2}; g.V.lR=function(){}; g.V.lF=function(){var z,p={rn:this.requestNumber,rt:(this.G-this.W).toFixed(),lb:this.L,stall:(1E3*this.X).toFixed(),ht:(this.U-this.W).toFixed(),elt:(this.S-this.W).toFixed(),elb:this.K,d:(z=this.Ra)==null?void 0:z.M_()};this.url&&K7v(p,this.url);this.policy.K&&(p.mph=this.sH.toFixed(),p.tph=this.FQ.toFixed());p.ulb=this.YA;p.ult=this.Dt;p.abw=this.Zt;return p}; g.V.now=function(){return(0,g.y2)()}; g.V.deactivate=function(){this.isActive&&(this.isActive=!1)};g.Y(Bm,zh);g.V=Bm.prototype;g.V.lF=function(){var z=zh.prototype.lF.call(this);z.pb=this.gH;z.pt=(1E3*this.UH).toFixed();z.se=this.Ca;return z}; g.V.YU=function(){var z=this.e9;this.NZ||(this.NZ=z.YU?z.YU():1);return this.NZ}; g.V.Uf=function(){return this.zn?this.YU()!==1:!1}; g.V.wv=function(z,p,c){if(!this.Zw){this.Zw=!0;if(!this.f9){pR(this,z,p);this.v_(z,p);var B=this.YU();this.Ca=c;if(!this.f9)if(B===2){B=z-this.S0)||Hm(this,B,p),this.K>0&&wX(this.Tl, p,this.X));z=(z-this.W)/1E3||.01;this.policy.S&&!(this.K>0)||Oc(this.Tl,z,this.D,fxY(this),this.b_)}this.deactivate()}}; g.V.mH=function(z,p,c){c&&(this.NZ=2);z<0&&this.OF&&(z=this.OF);p?this.OH+=z:this.i8+=z}; g.V.g7=function(){return this.i8||this.OH||zh.prototype.g7.call(this)}; g.V.v_=function(z,p){var c=(z-this.V)/1E3,B=p-this.D,H=this.YU();this.isActive?H===1&&((B>0||this.policy.L)&&(c>.2||B<1024)?(this.X+=c,B>0&&c>.2&&Hm(this,this.Fe?c:.05,B),this.WM=!0):B>0&&(Hm(this,c,B),this.WM=!0)):p&&p>=this.policy.W&&this.R6(z,p);zh.prototype.v_.call(this,z,p)}; g.V.Ix=function(z){if(!this.f9){pR(this,z,this.L);var p=(z-this.W)/1E3;this.YU()!==2&&this.K>0&&(this.X+=(z-this.V)/1E3,wX(this.Tl,this.D,this.X));Oc(this.Tl,p,this.D,fxY(this),this.b_,!0);z=(z-this.V)/1E3;SF(this.Tl,z,0);this.Lm(z,0)}}; g.V.R6=function(z,p){z=z===void 0?this.G:z;p=p===void 0?this.L:p;if(!(this.K>0)&&(zh.prototype.R6.call(this,z,p),this.YU()===1)){p=(this.U-this.W)/1E3;var c=(z-this.U)/1E3;this.zn&&ic(this,this.now());this.RR||this.f9||(this.OF&&(c=Math.max(0,c-this.OF)),z=this.Tl,z.S.kF(1,p),z.Ra.kF(1,c))}}; g.V.hc=function(){this.zn&&ic(this,this.now());return this.rA}; g.V.Hg=function(){var z;if(z=this.D>this.w9)z=(z=this.D)?z>=this.policy.W:!1;return z}; g.V.Jj=function(){return this.CH}; g.V.R0=function(z){z=z===void 0?this.now():z;if(this.zn){ic(this,z);if(this.NZ?this.Uf():this.tD!==this.fH){var p=this.fH;if(z0?c+z:c+Math.max(z,p)}; g.V.Y0=function(){return this.now()-this.S}; g.V.kz=function(){return(this.D-this.K)*1E3/this.Y0()||0}; g.V.RN=function(){return this.S};Th.prototype.feed=function(z){Kb(this.W,z);this.uZ()}; Th.prototype.uZ=function(){if(this.X){if(!this.W.getLength())return;var z=this.W.split(this.D-this.K),p=z.XD;z=z.vt;if(!this.e9.Az(this.X,p,this.K,this.D))return;this.K+=p.getLength();this.W=z;this.K===this.D&&(this.X=this.D=this.K=void 0)}for(;;){var c=0;z=g.m(BMD(this.W,c));p=z.next().value;c=z.next().value;c=g.m(BMD(this.W,c));z=c.next().value;c=c.next().value;if(p<0||z<0)break;if(!this.W.n6(c,z)){if(!this.e9.Az||!this.W.n6(c,1))break;c=this.W.split(c).vt;this.e9.Az(p,c,0,z)&&(this.X=p,this.K= c.getLength(),this.D=z,this.W=new $p([]));break}z=this.W.split(c).vt.split(z);c=z.vt;this.e9.V5(p,z.XD);this.W=c}}; Th.prototype.dispose=function(){this.W=new $p};g.V=bc.prototype;g.V.iX=function(){return 0}; g.V.nM=function(){return null}; g.V.aN=function(){return null}; g.V.ge=function(){return this.state>=1}; g.V.isComplete=function(){return this.state>=3}; g.V.Ks=function(){return this.state===5}; g.V.onStateChange=function(){}; g.V.Hy=function(z){var p=this.state;this.state=z;this.onStateChange(p);this.callback&&this.callback(this,p)}; g.V.tL=function(z){z&&this.state=this.xhr.HEADERS_RECEIVED}; g.V.getResponseHeader=function(z){try{return this.xhr.getResponseHeader(z)}catch(p){return""}}; g.V.QM=function(){return+this.getResponseHeader("content-length")}; g.V.bD=function(){return this.K}; g.V.Wd=function(){return this.status>=200&&this.status<300&&!!this.K}; g.V.Wt=function(){return this.W.getLength()>0}; g.V.IT=function(){var z=this.W;this.W=new $p;return z}; g.V.Ei=function(){return this.W}; g.V.abort=function(){this.qZ=!0;this.xhr.abort()}; g.V.SX=function(){return!0}; g.V.I$=function(){return this.D}; g.V.Tg=function(){return""};g.V=bSS.prototype;g.V.getResponseHeader=function(z){return z==="content-type"?this.W.get("type"):""}; g.V.abort=function(){}; g.V.YR=function(){return!0}; g.V.QM=function(){return this.range.length}; g.V.bD=function(){return this.loaded}; g.V.Wd=function(){return!!this.loaded}; g.V.Wt=function(){return!!this.K.getLength()}; g.V.IT=function(){var z=this.K;this.K=new $p;return z}; g.V.Ei=function(){return this.K}; g.V.SX=function(){return!0}; g.V.I$=function(){return!!this.error}; g.V.Tg=function(){return this.error};g.V=DJx.prototype;g.V.start=function(z){var p={credentials:"include",cache:"no-store"};Object.assign(p,this.G);this.X&&(p.signal=this.X.signal);z=new Request(z,p);fetch(z).then(this.U,this.onError).then(void 0,JM)}; g.V.onDone=function(){this.qZ()||this.e9.Gc()}; g.V.getResponseHeader=function(z){return this.responseHeaders?this.responseHeaders.get(z):null}; g.V.YR=function(){return!!this.responseHeaders}; g.V.bD=function(){return this.K}; g.V.QM=function(){return+this.getResponseHeader("content-length")}; g.V.Wd=function(){return this.status>=200&&this.status<300&&!!this.K}; g.V.Wt=function(){return!!this.W.getLength()}; g.V.IT=function(){this.Wt();var z=this.W;this.W=new $p;return z}; g.V.Ei=function(){this.Wt();return this.W}; g.V.qZ=function(){return this.L}; g.V.abort=function(){this.D&&this.D.cancel().catch(function(){}); this.X&&this.X.abort();this.L=!0}; g.V.SX=function(){return!0}; g.V.I$=function(){return this.V}; g.V.Tg=function(){return this.errorMessage};g.V=tI_.prototype;g.V.onDone=function(){if(!this.qZ){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(z){}this.W=!0;this.e9.Gc()}}; g.V.hL=function(){this.xhr.readyState===2&&this.e9.Q0()}; g.V.Jv=function(z){this.qZ||(this.status=this.xhr.status,this.W||(this.K=z.loaded),this.e9.s0((0,g.y2)(),z.loaded))}; g.V.YR=function(){return this.xhr.readyState>=2}; g.V.getResponseHeader=function(z){try{return this.xhr.getResponseHeader(z)}catch(p){return g.oc(Error("Could not read XHR header "+z)),""}}; g.V.QM=function(){return+this.getResponseHeader("content-length")}; g.V.bD=function(){return this.K}; g.V.Wd=function(){return this.status>=200&&this.status<300&&this.W&&!!this.K}; g.V.Wt=function(){return this.W&&!!this.response&&!!this.response.byteLength}; g.V.IT=function(){this.Wt();var z=this.response;this.response=void 0;return new $p([new Uint8Array(z)])}; g.V.Ei=function(){this.Wt();return new $p([new Uint8Array(this.response)])}; g.V.abort=function(){this.qZ=!0;this.xhr.abort()}; g.V.SX=function(){return!1}; g.V.I$=function(){return!1}; g.V.Tg=function(){return""};g.Xk.prototype.info=function(){}; g.Xk.prototype.debug=function(){}; g.Xk.prototype.W=function(z){x2.apply(null,[5,this.tag,z].concat(g.A(g.L_.apply(1,arguments))))}; var EtW=new Map,MIf=new Map,qJB=new function(){var z=this;this.W=new Map;this.Xg={k7A:function(){return z.W}}};g.Y(El,g.e);El.prototype.Ie=function(){if(!this.J8.length)return[];var z=this.J8;this.J8=[];this.D=g.UQ(z).info;return z}; El.prototype.e6=function(){return this.J8}; El.prototype.m0=function(){g.e.prototype.m0.call(this);this.W=null;this.J8.length=0;this.b8.length=0;this.D=null};g.Y(Jm,g.e);g.V=Jm.prototype; g.V.lJA=function(){if(!this.qZ()){var z=(0,g.y2)(),p=!1;if(this.policy.ou){z=z-(this.timing.K>0?this.timing.S:this.timing.W)-this.timing.g7()*1E3;var c=RB(Mn(this),!1);z>=2E3*c?p=!0:z>=this.policy.a_*c&&(this.W=this.policy.Vy)}else if(this.timing.K>0){if(this.L){this.policy.LB&&(this.W=0);return}var B=this.timing.Jj();this.timing.R0();var H=this.timing.Jj();H-B>=this.policy.Hf*.8?(this.W++,this.logger.debug(function(){return"Mispredicted by "+(H-B).toFixed(0)}),p=this.W>=5):this.W=0}else{var T=z- this.timing.hc(); this.policy.Vy&&T>0&&(this.W+=1);p=RB(Mn(this),!1)*this.policy.pA;(p=T>p*1E3)&&this.logger.debug(function(){return"Elbow late by "+T.toFixed(3)})}this.W>0&&this.e9.RS(); p?this.A6():this.K.start()}}; g.V.A6=function(){this.X=!0;this.e9.Wb();this.lastError="net.timeout";mJ(this)}; g.V.canRetry=function(z){var p=Mn(this);z=z?this.policy.Zb:this.policy.Q3;return p.timedOut0&&(p=p.W.getUint8(0),z.ubyte=p,c===1&&p===0&&(z.b248180278=!0))}this.ZJ&&(z.rc=this.policy.BW?this.ZJ:this.ZJ.toString());this.policy.JH&&this.R2&&(z.tr=this.R2);z.itag=this.info.b8[0].W.info.itag;z.ml=""+ +this.info.b8[0].W.Gg();z.sq=""+this.info.b8[0].pH;this.vU&&(z.ifi=""+ +dM(this.info.j9.D));this.ZJ!==410&&this.ZJ!==500&&this.ZJ!==503||(z.fmt_unav="true");var B;(c=this.errorMessage||((B=this.xhr)==null? void 0:B.Tg()))&&(z.msg=c);this.z6&&(z.smb="1");this.info.isDecorated()&&(z.sdai="1");return z}; g.V.UE=function(){return ztf(this.timing)}; g.V.Tg=function(){return this.xhr.Tg()||""}; g.V.Hg=function(){return this.isComplete()||this.timing.Hg()}; g.V.s0=function(){!this.qZ()&&this.xhr&&(this.ZJ=this.xhr.status,this.policy.qt&&this.qn&&this.kH(!1),this.jj()?this.tL(2):!this.by&&this.Hg()&&(this.tL(),this.by=!0))}; g.V.Q0=function(){if(!this.qZ()&&this.xhr){if(!this.L8&&this.xhr.YR()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var z=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.L8=((0,g.y2)()-z)/1E3}this.xhr.YR()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.sC&&!lDf()&&g.Iw("yt-player-headers-readable",!0,2592E3);z=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var p=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.kR)==null||c.stop();this.Nk=z||this.Nk; this.cW=p||this.cW}}; g.V.Gc=function(){var z=this.xhr;if(!this.qZ()&&z){this.ZJ=z.status;z=this.LO(z);if(this.policy.JH){var p;(p=this.kR)==null||p.stop()}z===5?mJ(this.rU):this.Hy(z);this.rU.K.stop()}}; g.V.LO=function(z){var p=this;kOv(this);if(hm(this.rU,this.xhr.status,this.Et?this.timing.MZ||this.OC:this.xhr.Wd(),!1,this.UZ))return 5;var c="";Pm(this.rU,this.xhr)&&(c=OSx(this.rU,this.xhr));if(c)return w8(Mn(this.rU)),this.info.NO(this.vU,c),3;c=z.bD();if(this.qB){this.kH(!0);kOv(this);if(hm(this.rU,this.xhr.status,this.timing.MZ||this.OC,!1,this.UZ))return 5;if(!this.wu){if(this.OC)return w8(Mn(this.rU)),3;this.rU.lastError="net.closed";return 5}}else{if(hm(this.rU,this.xhr.status,this.xhr.Wd(), !1,this.UZ))return 5;var B=this.info.D;if(B&&B!==c||z.I$())return this.rU.lastError="net.closed",5;this.kH(!0)}B=HSE(this)?z.getResponseHeader("X-Bandwidth-Est"):0;if(z=HSE(this)?z.getResponseHeader("X-Bandwidth-Est3"):0)this.pF=!0,this.policy.tF&&(B=z);PFY(this.rU,c,B?Number(B):0,this.info.b8[0].type===5);this.logger.debug(function(){var H=p.timing;return"Succeeded, rtpd="+(H.UH*1E3+H.W-Date.now()).toFixed(0)}); return 4}; g.V.canRetry=function(){this.qZ();var z=this.info.isDecorated();return this.rU.canRetry(z)}; g.V.onStateChange=function(){this.isComplete()&&(this.policy.Em?this.Wb():this.timing.deactivate())}; g.V.A6=function(){this.rU.A6()}; g.V.RS=function(){this.callback&&this.callback(this,this.state)}; g.V.jF=function(){return this.rU.jF()}; g.V.dispose=function(){bc.prototype.dispose.call(this);this.rU.dispose();var z;(z=this.kR)==null||z.dispose();this.policy.Em||this.Wb()}; g.V.Wb=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.V.Ie=function(){if(!this.e6().length)return[];this.qL=!0;return this.qn.Ie()}; g.V.jj=function(){if(this.state<1)return!1;if(this.qn&&this.qn.J8.length)return!0;var z;return((z=this.xhr)==null?0:z.Wt())?!0:!1}; g.V.e6=function(){this.kH(!1);return this.qn?this.qn.e6():[]}; g.V.kH=function(z){try{if(z||this.xhr.YR()&&this.xhr.Wt()&&!Pm(this.rU,this.xhr)&&!this.q8)this.qn||(this.qn=new El(this.policy,this.info.b8)),this.xhr.Wt()&&(this.qB?this.qB.feed(this.xhr.IT()):qn(this.qn,this.xhr.IT(),z&&!this.xhr.Wt()))}catch(p){this.qB?rPY(this,p):g.oc(p)}}; g.V.V5=function(z,p){switch(z){case 21:z=p.split(1).vt;UJv(this,z);break;case 22:this.wu=!0;qn(this.qn,new $p([]),!0);break;case 43:if(z=rQ(new Ik(p),1))this.info.NO(this.vU,z),this.OC=!0;break;case 45:p=bF(new Ik(p));z=p.GP;p=p.Bk;z&&p&&(this.OS=z/p);break;case 44:this.Hw=e7Y(new Ik(p));var c,B,H;!this.timing.MZ&&((c=this.Hw)==null?void 0:c.action)===4&&((B=this.Hw)==null?0:(H=B.RM)==null?0:H.Et)&&(this.Et=this.Hw.RM.Et);break;case 53:this.policy.JH&&(z=W$W(new Ik(p)).KQ)&&(this.kR||(this.KQ=z,this.kR= new g.B4(this.Fw,z,this)),this.kR.start());break;case 60:this.Cz=TO(new Ik(p));break;case 58:if(z=X$B(new Ik(p)))this.rX=z,z.rX===3&&(this.UZ=!0)}}; g.V.Az=function(z,p,c,B){c||this.timing.Az(B);if(z!==21)return!1;if(z=this.policy.qt)if(B=p.getLength()+c===B,z*=this.info.b8[0].W.info.l8,!B&&p.getLength()0)return!1;if(!this.xhr.YR())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.qB)var z=!this.info.D;else this.xhr.QM()?z=!1:(z=this.xhr.getResponseHeader("content-type"),z=z==="audio/mp4"||z==="video/mp4"||z==="video/webm");if(!z)return!1;if(isNaN(this.info.nt)){z=this.xhr.getResponseHeader("x-head-seqnum");var p=this.timing.policy.G?1:0;if(!z)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(z)>this.info.b8[0].pH+p)return!1}return!0}; g.V.aS=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.V.nM=function(){this.xhr&&(this.Nk=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Nk}; g.V.aN=function(){this.xhr&&(this.cW=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.cW}; g.V.bz=function(){return this.rU.bz()}; g.V.Fw=function(){if(!this.qZ()&&this.xhr){this.R2="heartbeat";var z=this.rU;z.W+=2;this.RS()}};g.Y(uc,zh);g.V=uc.prototype;g.V.v_=function(z,p){var c=(z-this.V)/1E3,B=p-this.D;this.K>0?B>0&&(this.tD&&(c>.2||B<1024?(this.X+=c,c>.2&>W(this,.05,B)):gtW(this,c,B)),this.fH&&(this.rA+=B,this.i8+=c)):p>this.policy.W&&this.R6(z,p);zh.prototype.v_.call(this,z,p)}; g.V.wv=function(z,p){pR(this,z,p);this.v_(z,p);this.tD&&(p=this.D*this.snapshot.stall+this.D/this.snapshot.byterate,this.K>0&&wX(this.Tl,this.rA,this.X),z=(z-this.W)/1E3||.01,this.policy.S&&!(this.K>0)||Oc(this.Tl,z,this.D,p,!1))}; g.V.Ix=function(z){pR(this,z,this.L);var p=(z-this.V)/1E3;SF(this.Tl,p,0);this.Lm(p,0);!this.tD&&this.K>0||(p=this.D*this.snapshot.stall+this.D/this.snapshot.byterate,this.K>0&&(this.X+=(z-this.V)/1E3,wX(this.Tl,this.rA,this.X)),Oc(this.Tl,((z-this.W)/1E3||.01)*this.policy.Dt,this.D,p,!1,!0))}; g.V.WL=function(z){z=z.Fs||2147483647;(z&2)!==2&&(this.fH=!1);(z&1)===1&&(this.tD=!0)}; g.V.PB=function(z){z=z.Fs||2147483647;(z&2)===2&&(this.fH=!1);(z&1)===1&&(this.tD=!1)}; g.V.RN=function(){return this.S}; g.V.Y0=function(){var z=this.fH?this.now()-this.V:0;return Math.max(this.i8*1E3+z,1)}; g.V.kz=function(){return this.rA*1E3/this.Y0()}; g.V.R6=function(z,p){z=z===void 0?this.G:z;p=p===void 0?this.L:p;this.K>0||(zh.prototype.R6.call(this,z,p),p=this.Tl,z=(z-this.U)/1E3,p.S.kF(1,(this.U-this.W)/1E3),p.Ra.kF(1,z))}; g.V.lR=function(z){this.OH=z}; g.V.lF=function(){var z=zh.prototype.lF.call(this);z.rbw=this.kz();z.rbe=+this.fH;z.gbe=+this.tD;z.ackt=(this.OH-this.W).toFixed();return z}; g.V.R0=function(){}; g.V.Jj=function(){return NaN}; g.V.hc=function(){return this.W+this.snapshot.delay*1E3};a3.prototype.V5=function(z,p){p.getLength();switch(z){case 20:z=new Ik(p);z={Ps:ok(z,1),videoId:rQ(z,2),itag:ok(z,3),lmt:ok(z,4),xtags:rQ(z,5),sj:ok(z,6),VQ:nb(z,8),wP:ok(z,9),Vb3:ok(z,10),startMs:ok(z,11),durationMs:ok(z,12),FL:ok(z,14),timeRange:UR(z,15,kb_),Kl:ok(z,16),VO:ok(z,17),clipId:rQ(z,1E3)};this.TE(z);break;case 21:this.tO(p,!1);break;case 22:this.eb(p);break;case 31:z=gQ(p,S5B);this.eX(z);break;case 52:z=gQ(p,yTB);this.Rd(z);break;default:this.U2(z,p)}}; a3.prototype.TE=function(){}; a3.prototype.U2=function(){};g.Y(ZO,a3);g.V=ZO.prototype; g.V.U2=function(z,p){p.getLength();switch(z){case 35:this.DW(p);break;case 44:this.Ue(p);break;case 43:this.qY(p);break;case 53:this.vz(p);break;case 55:z=new Ik(p);(z={timeline:UR(z,1,v6S),zzD:UR(z,2,F$f)},z.timeline)&&z.timeline.hB&&this.e9.nY(z.timeline.hB,z.timeline.Svq,z.zzD);break;case 56:this.yX();break;case 57:this.Ny(p);break;case 42:this.cz(p);break;case 45:this.z7(p);break;case 59:this.HB(p);break;case 51:this.kC(p);break;case 49:this.WL(p);break;case 50:this.PB(p);break;case 47:this.lm(p); break;case 58:this.Xa(p);break;case 61:this.e9.mY.lR((0,g.y2)());break;case 66:this.He(p);break;case 46:this.CC(p);break;case 67:this.onSnackbarMessage(p)}}; g.V.kC=function(z){z=new Ik(z);z={cxi:kp(z,1,Hi),Wr3:kp(z,2,Hi)};this.e9.kC(z)}; g.V.HB=function(z){var p=new Ik(z);z=sR(p,1);var c=sR(p,2);p=sR(p,3);this.e9.HB(z,c,p)}; g.V.z7=function(z){z=bF(new Ik(z));this.e9.z7(z)}; g.V.lm=function(z){z=gQ(z,uq_);this.e9.lm(z)}; g.V.cz=function(z){z=new Ik(z);z={videoId:rQ(z,1),formatId:UR(z,2,Hi),endTimeMs:ok(z,3),opp:ok(z,4),mimeType:rQ(z,5),t0:UR(z,6,h7B),indexRange:UR(z,7,h7B),py:UR(z,8,PDv)};this.e9.cz(z)}; g.V.Ny=function(z){z=F$f(new Ik(z));this.e9.Ny(z)}; g.V.yX=function(){this.e9.yX()}; g.V.DW=function(z){z=$TY(new Ik(z));this.e9.DW(z)}; g.V.vz=function(z){z=W$W(new Ik(z));this.e9.vz(z)}; g.V.Ue=function(z){z=e7Y(new Ik(z));this.e9.Ue(z)}; g.V.qY=function(z){z={redirectUrl:rQ(new Ik(z),1)};this.e9.qY(z)}; g.V.tO=function(z){var p=z.getUint8(0);if(z.getLength()!==1){z=z.split(1).vt;var c=this.K[p]||null;c&&lc(this.e9.DJ,p,c,z)}}; g.V.eb=function(z){z=z.getUint8(0);var p=this.K[z]||null;p&&this.e9.eb(z,p)}; g.V.Rd=function(z){this.e9.Rd(z)}; g.V.TE=function(z){var p=z.Ps,c=z.VQ,B=z.sj,H=z.VO,T=z.Kl,b=z.wP,D=z.startMs,t=z.durationMs,X=z.timeRange,x=z.FL,E=z.clipId,q=Li(z);z=Mrd.has(gB[""+z.itag]);this.K[p]=q;this.e9.mH(q,z,{Ps:p,VQ:!!c,sj:B!=null?B:-1,wP:b!=null?b:-1,startMs:D!=null?D:-1,durationMs:t!=null?t:-1,FL:x,VO:H,Kl:T,clipId:E,timeRange:X})}; g.V.WL=function(z){z={Fs:ok(new Ik(z),1)};this.e9.WL(z)}; g.V.PB=function(z){z={Fs:ok(new Ik(z),1)};this.e9.PB(z)}; g.V.eX=function(z){this.e9.eX(z)}; g.V.Xa=function(z){z=X$B(new Ik(z));this.e9.Xa(z)}; g.V.He=function(z){z={Hx:UR(new Ik(z),1,L$B)};this.e9.He(z)}; g.V.onSnackbarMessage=function(z){z=ok(new Ik(z),1);this.e9.onSnackbarMessage(z)}; g.V.CC=function(z){z={reloadPlaybackParams:UR(new Ik(z),1,tDN)};this.e9.CC(z)};g.Y(LR,g.e);g.V=LR.prototype;g.V.z5=function(){return Array.from(this.dU.keys())}; g.V.RY=function(z){z=this.dU.get(z);var p=z.J8;z.Qw+=p.getLength();z.J8=new $p;return p}; g.V.QE=function(z){return this.dU.get(z).QE}; g.V.SO=function(z){return this.dU.get(z).SO}; g.V.mH=function(z,p,c,B){this.dU.get(z)||pEE(this,z,p);p=this.dU.get(z);if(this.xA){z=B8v(this,z,c);if(B)for(var H=g.m(z),T=H.next();!T.done;T=H.next()){T=T.value;var b=B;T.Dt=b;T.startTime+=b;T.X+=b;T.V+=b}cRY(this,c.Ps,p,z)}else c.VQ?p.XN=c.FL:p.xC.push(c),p.g6.push(c)}; g.V.iU=function(z){var p;return((p=this.dU.get(z))==null?void 0:p.b8)||[]}; g.V.tL=function(){for(var z=g.m(this.dU.values()),p=z.next();!p.done;p=z.next())p=p.value,p.D0&&(p.Jv&&p.Jv(),p.D0=!1)}; g.V.eb=function(z,p){this.logger.debug(function(){return"[onMediaEnd] formatId: "+p}); var c=this.dU.get(p);if(dA){if(c&&!c.QE){if(c.Ao.get(z))c.Ao.get(z).AS=!0;else{var B;((B=this.Nb)==null?0:B.wU)&&c.Ao.set(z,{data:new $p,ij:0,AS:!0})}c.SO=!0}}else c&&!c.SO&&(c.SO=!0)}; g.V.Ie=function(z){if(dA){var p=this.dU.get(z);if(p)for(var c=g.m(p.Ao),B=c.next();!B.done;B=c.next()){var H=g.m(B.value);B=H.next().value;H=H.next().value;var T=p.c9.get(B);if(vE(T[0])){if(!H.AS)continue;var b=T,D=H.data;D.getLength();T=0;var t=[];b=g.m(b);for(var X=b.next();!X.done;X=b.next()){X=X.value;var x=X.D,E=ua(D,T,x);T+=x;t.push(new Hw(X,E))}p.Ic.push.apply(p.Ic,g.A(t))}else if(H.data.getLength()>0||!T[0].range&&H.AS)D=void 0,T=T[0],t=H.ij,b=H.data,T.range||(D=H.AS),X=b.getLength(),D=new Hw(Trx(T, T.K+t,X,D),b),H.ij+=D.info.D,p.Ic.push(D);p.Ao.get(B).data=new $p;H.AS&&p.Ao.delete(B)}z=this.dU.get(z);if(!z)return[];p=z.Ic;z.Ic=[];c=g.m(p);for(B=c.next();!B.done;B=c.next())z.Qw+=B.value.info.D;return p||[]}c=(p=this.dU.get(z))==null?void 0:p.qn;if(!c)return[];this.kH(z,c);return c.Ie()}; g.V.jj=function(z){if(dA)return e8(this,z);var p,c,B;return!!((c=(p=this.dU.get(z))==null?void 0:p.qn)==null?0:(B=c.e6())==null?0:B.length)||e8(this,z)}; g.V.kH=function(z,p){for(;e8(this,z);){var c=this.RY(z);var B=z;B=this.dU.get(B).QE&&!CR(this,B);qn(p,c,B&&zHi(this,z))}}; g.V.m0=function(){g.e.prototype.m0.call(this);for(var z=g.m(this.dU.keys()),p=z.next();!p.done;p=z.next())Wm(this,p.value);var c;if((c=this.Nb)==null?0:c.f3)for(z=g.m(this.dU.values()),p=z.next();!p.done;p=z.next())p=p.value,p.Ao.clear(),p.c9.clear(),p.Ic.length=0,p.b8.length=0,p.g6.length=0,p.xC.length=0;this.dU.clear()}; var dA=!1;g.Y(vm,g.e);g.V=vm.prototype;g.V.s0=function(){!this.qZ()&&this.xhr&&(this.kH(!1),sp(this.e9,this))}; g.V.Q0=function(){}; g.V.Gc=function(){if(!this.qZ()&&this.xhr){var z=this.LO();z===5?mJ(this.rU):this.Hy(z);this.rU.K.stop();var p;(p=this.xS)==null||p.stop()}}; g.V.LO=function(){var z="";Pm(this.rU,this.xhr)&&(z=OSx(this.rU,this.xhr));if(z)return this.info.j9.NO(this.vU,z),3;this.kH(!0);if(hm(this.rU,this.xhr.status,this.xhr.Wd(),this.info.rK(),this.UZ))return 5;if(this.IM)return 3;PFY(this.rU,this.xhr.bD(),0,this.rK());this.policy.ow&&ca_(this.e9);return 4}; g.V.kH=function(z){var p=this.xhr;if((z||!Pm(this.rU,this.xhr))&&p.Wt()){z=p.IT();var c=z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.qB.feed(z)}}; g.V.V5=function(z,p){this.xhr.SX()&&z===21&&biQ(this);this.Vx.V5(z,p)}; g.V.Az=function(z,p,c,B){c||(this.mY.Az(B),this.policy.Ep&&z===21&&biQ(this));if(z!==21)return!1;this.mY.MZ=!0;z=p.getLength();c||(this.E4=p.getUint8(0),p=p.split(1).vt);var H=this.policy.Gi,T=this.Vx.K[this.E4],b=this.xA.D.get(T);if(H&&b&&(H*=b.info.l8,z+c!==B&&z0){this.policy.ou&&this.rU.K.stop();z=this.mY.Y0();p=this.mY.kz();var c=VMf(this,z);if(!(p>c.eU||c.Yi>0&&this.info.ZM()>c.Yi)){this.V_=(0,g.y2)();var B;(B=this.xS)==null||B.stop();this.policy.ow&&(B=this.e9,z={lO:Math.round(p*z/1E3),uK:z},B.policy.ow&&(B.Ra=z,B.LQ++));this.A6()}}}}; g.V.A6=function(){this.rU.A6()}; g.V.Ue=function(z){this.e9.Ue(z,this.sP())}; g.V.qY=function(z){this.IM=!0;this.info.j9.NO(this.vU,z.redirectUrl)}; g.V.WL=function(z){this.mY instanceof uc&&this.mY.WL(z)}; g.V.PB=function(z){this.mY instanceof uc&&this.mY.PB(z)}; g.V.nY=function(z,p,c){this.e9.nY(z,p,c,this.sP())}; g.V.cz=function(z){var p=z.formatId,c=Li({itag:p.itag,lmt:p.lmt,xtags:p.xtags}),B,H,T=new WE(((B=z.t0)==null?void 0:B.first)||0,((H=z.t0)==null?void 0:H.xk)||0),b,D;B=new WE(((b=z.indexRange)==null?void 0:b.first)||0,((D=z.indexRange)==null?void 0:D.xk)||0);if(!this.xA.D.get(c)){c=z.py||{};if(this.policy.iF){var t,X;z=(t=z.mimeType)!=null?t:"";t=(X=p.itag)!=null?X:0;X=gB[""+t];c.mimeType=X!=="9"&&X!=="9h"?z:'video/webm; codecs="'+["vp09",X==="9h"?"02":"00","51",X==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else c.mimeType=z.mimeType;c.itag=p.itag;c.lastModified=""+(p.lmt||0);c.xtags=p.xtags;p=this.xA;X=RM("");t=OP(c,null);JX(p,new xT(X,t,T,B))}}; g.V.z7=function(z){this.e9.z7(z)}; g.V.onSnackbarMessage=function(z){if(this.policy.gT)this.e9.onSnackbarMessage(z)}; g.V.eX=function(z){this.Jt=z;this.JE=(0,g.y2)();this.e9.eX(z)}; g.V.HB=function(z,p,c){this.e9.HB(z,p,c)}; g.V.Ny=function(z){z.scope===2&&(this.FhZ=z);this.e9.Ny(z)}; g.V.yX=function(){this.VB=!0;this.e9.yX()}; g.V.kC=function(z){this.policy.vO&&this.e9.kC(z)}; g.V.lm=function(z){this.e9.lm(z,this.sP())}; g.V.Xa=function(z){z.rX===3&&(this.UZ=!0);this.e9.Xa(z)}; g.V.He=function(z){this.e9.He(z)}; g.V.CC=function(z){this.e9.CC(z)}; g.V.canRetry=function(){this.qZ();return this.rU.canRetry(!1)}; g.V.dispose=function(){if(!this.qZ()){g.e.prototype.dispose.call(this);this.rU.dispose();var z;(z=this.xS)==null||z.dispose();this.Hy(-1);this.Wb()}}; g.V.Hy=function(z){this.state=z;sp(this.e9,this)}; g.V.rK=function(){return this.info.rK()}; g.V.Rq=function(){return this.VB}; g.V.cE=function(){return this.FhZ}; g.V.mH=function(z,p,c){c.clipId&&(this.clipId=c.clipId);this.policy.L&&!p&&(this.BQ=c.wP,this.rM=c.startMs);var B=0;this.policy.SK&&this.Xw&&this.clipId&&(B=jk(this.Xw,this.clipId)/1E3);this.DJ.mH(z,p,c,B);this.policy.xG&&this.Jt&&this.mY instanceof Bm&&(B=this.Jt.Zn,this.mY.mH(c.durationMs/1E3,p,B>0&&c.wP+1>=B));this.DJ.dU.get(z).a4=!0}; g.V.eb=function(z,p){this.DJ.eb(z,p)}; g.V.Rd=function(z){this.requestIdentifier=z}; g.V.Ie=function(z){return this.DJ.Ie(z)}; g.V.iU=function(z){return this.DJ.iU(z)}; g.V.jj=function(z){return this.DJ.jj(z)}; g.V.z5=function(){return this.DJ.z5()}; g.V.YU=function(){return 1}; g.V.sP=function(){return this.mY.requestNumber}; g.V.Ea=function(){return this.requestIdentifier}; g.V.bI=function(){return this.clipId}; g.V.BU=function(){return this.vU.BU()}; g.V.nk=function(){this.Wb()}; g.V.Wb=function(){this.mY.deactivate();var z;(z=this.xhr)==null||z.abort()}; g.V.isComplete=function(){return this.state>=3}; g.V.Yk=function(){return this.state===3}; g.V.Ks=function(){return this.state===5}; g.V.uW=function(){return this.state===4}; g.V.fO=function(){return this.isComplete()}; g.V.ge=function(){return this.state>=1}; g.V.jF=function(){return this.policy.LB?this.rU.jF():0}; g.V.RS=function(){this.policy.LB&&sp(this.e9,this)}; g.V.IN=function(){return yNQ(this.info)}; g.V.bz=function(){return this.rU.bz()}; g.V.xU=function(){var z=wiB(this.rU);Object.assign(z,ei_(this.info));z.req="sabr";z.rn=this.sP();var p;if((p=this.xhr)==null?0:p.status)z.rc=this.policy.BW?this.xhr.status:this.xhr.status.toString();var c;(p=(c=this.xhr)==null?void 0:c.Tg())&&(z.msg=p);this.V_&&(c=VMf(this,this.V_-this.mY.RN()),z.letm=c.RXA,z.mrbps=c.eU,z.mram=c.Yi);return z}; g.V.vp=function(){return{BQ:this.BQ,rM:this.rM,isDecorated:this.info.isDecorated()}};DmE.prototype.tick=function(z,p){this.ticks[z]=p?window.performance.timing.navigationStart+p:(0,g.y2)()};g.Y(j8,g.JQ);g.V=j8.prototype; g.V.iT=function(z,p,c,B){if(this.policy.ND&&this.policy.L){var H=z.ZS||null;H?(wEN(this,z.pH,Ul(this,z.startTime,z.pH),{ZS:H,pH:z.pH,DD:!!p,Ni:c},this.D),B&&this.D&&this.D.Fa(z.pH,z.startTime,this.K,(p==null?void 0:p.W)||[],(p==null?void 0:p.K)||[],(p==null?void 0:p.D)||[],c,(p==null?void 0:p.K8)||0,(p==null?void 0:p.X)||void 0)):this.K===1&&o3(this,5,"noad")}else{var T=!1;this.policy.CH&&(T=c?this.T$===z.pH:this.tD===z.pH);if(this.D&&B&&!T){B=[];T=[];var b=[],D=void 0,t=0;p&&(B=p.W,T=p.K,b=p.D,D= p.X,t=p.K8,this.KH("sdai",{sq:z.pH,ssvicpns:B.join("."),ssvid:T.join(".")}));this.policy.CH&&(c?this.T$=z.pH:this.tD=z.pH);this.D.Fa(z.pH,z.startTime,this.K,B,T,b,c,t,D)}this.policy.CH?c&&(this.K===1&&o3(this,5,"noad"),z.pH!==((H=this.W)==null?void 0:H.pH)&&(ARN(this,z,p,c),isNaN(z.startTime)||nR(this,z.pH,Ul(this,z.startTime,z.pH),!!p,this.D))):c&&ARN(this,z,p)}}; g.V.hO=function(z,p,c){var B=this.videoTrack.W.index.E1()<=p;this.W={ZS:z,pH:p,DD:c};B&&Fk(this,z,p)}; g.V.rG=function(){this.D&&this.D.rG()}; g.V.KH=function(z,p,c){(z!=="sdai"||this.policy.kY||(c===void 0?0:c))&&this.z$.KH(z,p)}; g.V.fn=function(z,p){var c=this.videoTrack.W.index.Hn(z);if(c>=0){var B;var H=((B=p.gU.c5(c,2))==null?void 0:B.tS)||"";if(this.policy.L||H)return p.IY(z,c),QF(this.z$,z,z,c),this.KH("sdai",{cmskpad:1,t:z.toFixed(3),sq:c}),!0}this.KH("sdai",{cmskpad:0,t:z.toFixed(3),sq:c});return!1};g.Y(Gh,g.e);Gh.prototype.yQ=function(z,p,c){c=c===void 0?{}:c;this.policy.xw=l2(z,c,this.X,p===void 0?!1:p)};cC.prototype.nV=function(z){var p=this;if(this.policy.WK){var c=new Set(z);c.size===this.Ra.size&&[].concat(g.A(c)).every(function(B){return p.Ra.has(B)})||(this.z$.KH("lwnmow",{itagDenylist:[].concat(g.A(z)).join(",")}),this.z$.XV(!!c.size),this.U=-1,this.Ra=c,BC(this,this.W),this.rA=!0)}}; cC.prototype.yQ=function(z,p,c){c=c===void 0?{}:c;var B=this.policy.xw;this.L.yQ(z,p===void 0?!1:p,c);if(B!==this.policy.xw){BC(this,this.W);HC(this);var H,T;B>this.policy.xw&&((H=this.D)==null?0:pZ(H.info))&&((T=this.nextVideo)==null||!pZ(T.info))&&(this.MZ=!0)}};Vd.prototype.vW=function(z){this.timestampOffset=z;this.flush()}; Vd.prototype.flush=function(){if(this.W.pos>0){var z={a:this.track.aI(),u:this.W.M_(),pd:Math.round(this.X),ad:Math.round(this.D)},p=this.K;if(p){var c=p.W.info;z.itag=c.itag;c.W&&(z.xtags=c.W);z.sq=p.pH;z.st=p.startTime;z.sd=p.duration;this.track.policy.vj&&(z.si=p.hH());p.L&&(z.esl=p.K+p.D);p.NS()&&(z.eos=1)}isNaN(this.timestampOffset)||(z.to=this.timestampOffset);var B;if(p=(B=this.track.oR)==null?void 0:B.kt({})){for(var H in p)this.V[H]!==p[H]&&(z["sb_"+H]=p[H]);this.V=p}this.track.KH("sbu", z);this.W.reset();this.buffered=[];this.L=this.D=this.X=0;this.timestampOffset=this.K=void 0}};tF.prototype.dispose=function(){this.Dt=!0}; tF.prototype.qZ=function(){return this.Dt}; g.Y(ME,Error);var j0f=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);hF.prototype.skip=function(z){this.offset+=z}; hF.prototype.Ht=function(){return this.offset};g.V=t5v.prototype;g.V.TX=function(){return this.K}; g.V.ix=function(){return this.K.length?this.K[this.K.length-1]:null}; g.V.Z_=function(){this.K=[];Ra(this);O$(this)}; g.V.RY=function(z){this.i8=this.K.shift().info;z.info.oI(this.i8)}; g.V.iU=function(){return g.d7(this.K,function(z){return z.info})}; g.V.aI=function(){return!!this.V.info.audio}; g.V.getDuration=function(){return this.V.index.Qq()};g.Y(ne,bc);g.V=ne.prototype;g.V.onStateChange=function(){this.qZ()&&(yF(this.DJ,this.formatId),this.W.dispose())}; g.V.xU=function(){var z=fWN(this.DJ,this.formatId),p;var c=((p=this.DJ.dU.get(this.formatId))==null?void 0:p.bytesReceived)||0;var B;p=((B=this.DJ.dU.get(this.formatId))==null?void 0:B.Qw)||0;return{expected:z,received:c,bytesShifted:p,sliceLength:CR(this.DJ,this.formatId),isAnyMediaEndReceived:this.DJ.SO(this.formatId)}}; g.V.UE=function(){return 0}; g.V.Hg=function(){return!0}; g.V.Ie=function(){return this.DJ.Ie(this.formatId)}; g.V.e6=function(){return[]}; g.V.jj=function(){return this.DJ.jj(this.formatId)}; g.V.bz=function(){return this.lastError}; g.V.jF=function(){return 0};g.Y(ub,g.e);g.V=ub.prototype;g.V.aI=function(){return!!this.W.info.audio}; g.V.ix=function(){return this.X.ix()}; g.V.RY=function(z){this.X.RY(z);var p;(p=this.S)!=null&&(p.L.add(z.info.pH),p.W=CjB(p,p.yS,p.Xn,z,p.W),p.D=z,p.V=(0,g.y2)());this.l8=Math.max(this.l8,z.info.W.info.l8||0)}; g.V.getDuration=function(){if(this.policy.K){var z=this.z$.Wf();if(z)return rE(z)}return this.W.index.Qq()}; g.V.Z_=function(){r1(this);this.X.Z_()}; g.V.yY=function(){return this.X}; g.V.isRequestPending=function(z){return this.D.length?z===this.D[this.D.length-1].info.b8[0].pH:!1}; g.V.vW=function(z){var p;(p=this.S)==null||p.vW(z);var c;(c=this.U)==null||c.vW(z)}; g.V.KH=function(z,p){this.z$.KH(z,p)}; g.V.Gf=function(){return this.z$.Gf()}; g.V.dispose=function(){var z;(z=this.U)==null||z.flush();g.e.prototype.dispose.call(this)};g.Y(GH,g.e);GH.prototype.D=function(){this.K++>15||(this.W=!this.W,new HmS(this.z$,this.policy,this.Tl,this.j9,this.W),this.delay.start())}; g.V=HmS.prototype;g.V.Q0=function(){}; g.V.s0=function(){}; g.V.Gc=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.bD()===this.size)this.z$.KH("rqs",this.getInfo());else{var z="net.connect";this.xhr.status>200?z="net.badstatus":this.xhr.YR()&&(z="net.closed");this.onError(z)}}; g.V.onError=function(z){var p=this;this.z$.handleError(z,this.getInfo());WK("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){p.z$.KH("pathprobe",c)},function(c){p.z$.handleError(c.errorCode,c.details)})}; g.V.getInfo=function(){var z=this.timing.lF();z.shost=ZW(this.location.base);z.pb=this.size;return z};g.Y(NE,g.e); NE.prototype.G=function(z,p){if(z.G){this.xA.isLive?(z=this.xA.Rj&&this.xA.X?z.W.g5(this.xA.Rj,!1):z.W.T9(Infinity),z.nt=this.nt):z=z.W.g5(0,!1);if(this.MZ){var c=this.MZ;z.nt===0&&(z.L=c.S)}else z.L=this.U;return z}c=z.K;if(!c.W.Gg())return c.W.aH()?(z=ek(this.L,z.W.info.l8,p.W.info.l8,0),z=c.W.Hd(c,z)):z=c.W.X0(c),z;var B=c.V-this.z$.getCurrentTime(),H=!c.range||c.D===0&&c.K===0?0:c.range.length-(c.K+c.D),T=c.W;this.HE(z,B)&&H===0&&(this.xA.isManifestless?T=z.W:(T=c.startTime+ftD,c.D&&(T+=c.duration), kM(z,T),c=z.K,T=c.W));T.aH()?(H=this.D,p=ek(this.L,T.info.l8,p.W.info.l8,B,H.X.length>0&&H.S===0&&this.z$.xO),B=Qd(z),z=c.W.Hd(c,p),(p=z.D)&&z.b8.length>1&&(B||z.j9.K||z.b8[0].W!==c.W?z=c.W.Hd(c,z.b8[0].D):(B=z.b8[z.b8.length-1],T=B.D/p,!B.L&&T<.4&&(z=c.W.Hd(c,p-B.D))))):(c.pH<0&&(p=oB(c),p.pr=""+z.D.length,this.z$.isSeeking()&&(p.sk="1"),p.snss=c.G,this.z$.KH("nosq",p)),z=T.X0(c));if(this.policy.T$)for(c=g.m(z.b8),p=c.next();!p.done;p=c.next())p.value.type=6;return z}; NE.prototype.HE=function(z,p){if(!Qd(z)||!z.W.Gg())return!1;var c=this.D.rA||ln_(z)||p<=this.policy.fA||this.D.MZ;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+ln_(z)+", health: "+p}); return c}; NE.prototype.m0=function(){g.e.prototype.m0.call(this)}; var ftD=2/24;g.Y(ca,g.e);ca.prototype.ox=function(z,p,c){var B;var H=((B=this.K)==null?void 0:B.reason)==="m"?"m":this.K&&wWW(this,this.K)?this.K.reason:"a";this.z$.ox(new gA(z,H,c));z9(this.z$,p,z,!0)}; ca.prototype.LF=function(z,p){for(var c=g.m(this.T$),B=c.next();!B.done;B=c.next())if(B=B.value,B.id===z)return this.Nb.n3||(this.D=[B]),this.V=this.xA.W[z],g_(this.Nb)&&(this.MZ=!0),z=new gA(this.V,p?"t":"m"),this.Nb.dJ&&p&&(this.L=!0),z;this.D=[];return null}; ca.prototype.yQ=function(z,p,c){c=c===void 0?{}:c;this.W.yQ(z,p===void 0?!1:p,c)};ip.prototype.setData=function(z,p,c,B){var H=this;B=B===void 0?{}:B;if(c==null?0:c.Zw)this.At=T8Y(this,c,B),z.Wg=this.j9.Wg();if(this.rK())return!0;this.data=z;this.W=dBY(z,p,function(T,b){var D;(D=H.e9)==null||D.kA(T,b)},c==null?void 0:c.D); if(!this.W)return!1;this.K=g.q9(this.W,JTf);return!0}; ip.prototype.rK=function(){return this.requestType===1}; ip.prototype.ZM=function(){var z;return((z=this.e9)==null?void 0:z.ZM())||0}; ip.prototype.isDecorated=function(){var z;return!((z=this.data)==null||!z.IH)};T9.prototype.encrypt=function(z){this.Xm.exports.AES128CTRCipher_encrypt(this.cipher,z.byteOffset,z.byteLength);return z}; T9.prototype.qZ=function(){return this.cipher===0}; T9.prototype.dispose=function(){this.Xm.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};bp.prototype.encrypt=function(z,p){return MH(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:p},this.key,z).catch(function(c){return Promise.reject(c.name+": "+c.message)}).then(function(c){return new Uint8Array(c)}))}; bp.prototype.qZ=function(){return this.W}; bp.prototype.dispose=function(){this.W=!0}; Os.Ya(bp,{encrypt:vq_("oan2")});Vl.prototype.encrypt=function(z,p){$l(this.K,p);return MH(this.K.encrypt(z))}; Vl.prototype.qZ=function(){return this.W}; Vl.prototype.dispose=function(){this.W=!0}; Os.Ya(Vl,{encrypt:vq_("oap")});Dd.prototype.encrypt=function(z,p){var c=this.Xm.rz(p),B=this.W;B.Xm.exports.AES128CTRCipher_setCounter(B.cipher,(c!=null?c:p).byteOffset);p=this.Xm.rz(z);this.W.encrypt(p!=null?p:z);c&&this.Xm.free(c.byteOffset);return p?MH(this.Xm.Gu(p)):MH(z)}; Dd.prototype.qZ=function(){return this.W.qZ()}; Dd.prototype.dispose=function(){this.W.dispose()}; Os.Ya(Dd,{encrypt:vq_("oalw")});tA.prototype.encrypt=function(z,p){var c=this,B=m7("");z.length<=this.d4&&this.W&&!this.X&&(B=OZ(B,function(){return c.W?c.W.encrypt(z,p):m7("wasm unavailable")})); z.length<=this.MK&&(this.W&&this.X&&(B=OZ(B,function(){return c.W?c.W.encrypt(z,p):m7("wasm unavailable")})),B=OZ(B,function(){return FdD(c,z,p)})); return OZ(OZ(B,function(){return oqV(c,z,p)}),function(){return FdD(c,z,p)})}; tA.prototype.qZ=function(){return this.L}; tA.prototype.dispose=function(){this.L=!0;var z;(z=this.D)==null||Ah(z,g.Dm);g.Dm(this.W);g.Dm(this.K)};XN.prototype.encrypt=function(z){(0,g.y2)();return(new xq(this.W.W)).encrypt(z,this.iv)}; XN.prototype.decrypt=function(z,p){(0,g.y2)();return(new xq(this.W.W)).decrypt(z,p)}; XN.prototype.qZ=function(){return this.D}; XN.prototype.dispose=function(){this.D=!0;g.Dm(this.K)};g.Y(xn,g.e);xn.prototype.D=function(z,p){if(p){p=p instanceof g.uF?p:Ep(this,p);var c;((c=this.W.get(z))==null?void 0:ZW(c.location))!==ZW(p)&&this.W.set(z,new f8E(p,z))}else this.W.delete(z)}; xn.prototype.load=function(){var z=this,p,c,B,H,T,b,D,t,X,x;return g.L(function(E){switch(E.W){case 1:p=z.W.get(0);g.Ox(E,2);var q;if(q=p&&!z.K)q=ZW(p.location),q=z.K===Y2(q);if(q){E.hD(4);break}return g.a(E,Gx_(z,z.K?2:0),5);case 5:if(c=E.K)z.D(0,c),dM(c)&&z.D(1,Wi(c));case 4:g.RE(E,3);break;case 2:B=g.SQ(E);g.oc(B);if(!z.K){E.hD(3);break}z.K=!1;return g.a(E,z.load(),7);case 7:return E.return();case 3:if(!z.Wq.experiments.JD("html5_onesie_probe_ec_hosts")){E.hD(0);break}g.Ox(E,9);H=z;T=H.D;b=3;return g.a(E, Gx_(z,1),11);case 11:return T.call(H,b,E.K),D=z,t=D.D,X=4,g.a(E,Gx_(z,2),12);case 12:t.call(D,X,E.K);g.RE(E,0);break;case 9:x=g.SQ(E),g.oc(x),g.Ai(E)}})}; xn.prototype.G=function(){var z=this,p,c;return g.L(function(B){g.H4(z.S);p=g.P3(z.Wq.experiments,"html5_onesie_prewarm_max_lact_ms");if(y0()>=p)return B.return();(c=z.W.get(0))&&gqD(z,c);g.Ai(B)})}; var s6B={OnH:0,eIH:1,Jm8:2,DRq:3,oED:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};zef.prototype.decrypt=function(z){var p=this,c,B,H,T,b,D;return g.L(function(t){switch(t.W){case 1:if(p.W.length&&!p.W[0].isEncrypted)return t.return();p.K=!0;p.Fn.Fm("omd_s");c=new Uint8Array(16);aN()?B=new XB(z):H=new xq(z);case 2:if(!p.W.length||!p.W[0].isEncrypted){t.hD(4);break}T=p.W.shift();if(!B){b=H.decrypt(T.buffer.S1(),c);t.hD(5);break}return g.a(t,B.decrypt(T.buffer.S1(),c),6);case 6:b=t.K;case 5:D=b;for(var X=0;X=4)){var p=jH(this),c=this.xhr;p.rc=c.status;z&&(p.ab=!0);if(c.Tg()){var B="onesie.net";p.msg=c.Tg()}else c.status>=400?B="onesie.net.badstatus":c.Wd()?this.yr||(B="onesie.response.noplayerresponse"):B=c.status===204?"onesie.net.nocontent":"onesie.net.connect";B?this.MS(new W2(B,p)):(this.Fm("or_fs"),this.mY.wv((0,g.y2)(),c.bD(),0),this.Hy(4),this.EP&&this.KH("rqs",p));this.EP&&this.KH("ombre", "ok."+ +!B);this.Oy=!1;o5(this);Ytu(this.Fn);if(!this.Yf){this.cL.stop();var H;(H=this.Pv)==null||H.stop()}var T;if(z=(T=this.Qv)==null?void 0:NXY(T))for(T=0;T1E3){var z;(z=this.mY)==null||z.Ix((0,g.y2)());z=jH(this);if(this.Wq.OW()&&this.xhr instanceof VF){var p=this.xhr;z.xrs=p.xhr.readyState;z.xpb=p.W.getLength();z.xdc=p.X}this.MS(new W2("net.timeout",z))}}else(0,g.y2)()-this.mY.W>1E4&&((p=this.mY)==null||p.Ix((0,g.y2)()),this.Vt());this.isComplete()||this.q3.start()}}; g.V.Vt=function(){this.logger.info("Onesie request timed out");this.Oy=!1;if(!o5(this)){var z=jH(this);z.timeout="1";this.MS(new W2("onesie.request",z))}}; g.V.MS=function(z){var p=this;z=Cd(z);this.uB?this.cq.ZP(z):(this.oP.reject(z),this.uB=!0);Ytu(this.Fn);this.Yf||this.cL.stop();this.Fm("or_fe");var c,B;(c=this.Qv)==null||(B=NXY(c))==null||B.forEach(function(H){p.KH("pathprobe",H)}); this.Hy(5);this.dispose()}; g.V.isComplete=function(){return this.state>=3}; g.V.uW=function(){return this.state===4}; g.V.fO=function(z){var p,c;return this.isComplete()||!!((p=this.VR)==null?0:(c=p.get(z))==null?0:c.W)}; g.V.Yk=function(){return!1}; g.V.Ks=function(){return this.state===5}; g.V.notifySubscribers=function(z){for(var p=0;p102400&&!this.Vg&&(this.Fm("or100k"),this.Vg=!0);if(z.Wt()){var p=z.IT(),c=p.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.EP&&this.KH("ombrss","len."+c);this.qB.feed(p)}if(this.VR)for(var B=g.m(this.VR.keys()),H=B.next();!H.done;H=B.next()){var T=H.value;z=void 0;(z=this.VR.get(T))==null||z.tL();this.notifySubscribers(T)}}catch(b){this.MS(b)}}; g.V.sP=function(){return this.mY.requestNumber}; g.V.Ea=function(z){return this.eL.get(z)}; g.V.vp=function(){return{BQ:this.BQ,rM:this.rM,isDecorated:!1}};g.Y(CiY,g.e);g.V=CiY.prototype;g.V.e0=function(z,p){this.Dt=void 0;ca_(this);f3x(this,z,p)}; g.V.Ap=function(z){if(this.W.length===0)return!1;var p=this.W[0];return p instanceof FN?z===this.z$.getCurrentTime()*1E3:!(p instanceof vm&&CPx(p.info))&&Math.abs(p.IN()-z)<50}; g.V.DW=function(z){this.K=z;this.Dt=(0,g.y2)()+(z.backoffTimeMs||0)}; g.V.Ue=function(z,p){if(z.action===void 0){var c=this.cq.p6();c!==void 0&&this.z$.HI(c)}else if(z.action!==0||!this.i8)switch(z.action===0&&this.policy.SY&&(z.action=2),c={},c.reason=z.gl3,c.action=z.action,c.rn=p,z.action){case 1:this.policy.L&&this.X&&this.X.Gw(void 0,void 0,c);break;case 0:this.i8=!0;this.videoData.yL()&&this.policy.L&&this.X&&this.X.Gw(void 0,void 0,c,!1);this.z$.MH(c);break;case 2:this.z$.handleError("sabr.config",c,1);break;case 5:LLB(this.cq,!0);break;case 6:LLB(this.cq,!1); break;case 3:this.policy.Zw&&((z=this.xA.S)!=null&&(z.S=!0),this.z$.handleError("sabr.hostfallback",c))}}; g.V.nY=function(z,p,c,B){if(this.policy.K){this.z$.KH("ssap",{rn:B,v:p,tl:HTD(z)});var H=this.z$.Wf();z={J4:z,context:c,version:p};zMB(this,c);H?pfE(this,H,z):(this.z$.KH("ssap",{cacheclips:1,rn:B,v:p}),this.S=z)}}; g.V.Ny=function(z){this.z$.KH("ssap",{onsbrctxt:z.type,dflt:z.sendByDefault});zMB(this,z);this.cq.Ny(z)}; g.V.yX=function(){}; g.V.z7=function(z){if(z.GP!==void 0&&z.Bk){var p=z.GP/z.Bk;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.Dt||this.policy.l6||this.policy.s_)this.z$.Wn.K=!1;this.policy.nZ||this.z$.Zs(p,1);if(this.cq.getCurrentTime()!==p){var c={VL:"sabr_seek",G9:!0,mf:!0};z.seekSource&&(c.seekSource=z.seekSource);Na(this.z$,p+.1,c)}}}; g.V.onSnackbarMessage=function(z){this.cq.publish("onSnackbarMessage",z)}; g.V.eX=function(z){z.Zn&&z.FC&&L5(this.xA,z.Zn,z.FC);this.policy.Iu&&(z.v4&&z.Lk&&(this.xA.Fh=z.v4/z.Lk),z.Ho&&z.sA&&(this.xA.f3=z.Ho/z.sA));this.policy.nZ&&(this.policy.Iu?z.Ho&&z.sA&&this.z$.Zs(z.Ho,z.sA):z.FC&&this.z$.Zs(z.FC,1E3));z.dQ!=null&&this.cq.M0(z.dQ);this.policy.Jl&&z.ME&&(z=((0,g.y2)()-z.ME)/1E3,this.z$.qN.kF(1,z))}; g.V.Xa=function(z){this.z$.Xa(z)}; g.V.Os=function(z){return this.Jq.has(z)}; g.V.HB=function(z,p,c){this.policy.D&&this.z$.KH("sabrctxtplc",{start:z?z.join("_"):"",stop:p?p.join("_"):"",discard:c?c.join("_"):""});if(z){z=g.m(z);for(var B=z.next();!B.done;B=z.next())this.Jq.add(B.value)}if(p)for(p=g.m(p),z=p.next();!z.done;z=p.next())z=z.value,this.Jq.has(z)&&this.Jq.delete(z);if(c)for(c=g.m(c),p=c.next();!p.done;p=c.next())p=p.value,this.videoData.sabrContextUpdates.has(p)&&(this.videoData.sabrContextUpdates.delete(p),p===3&&(this.videoData.nZ=""))}; g.V.kC=function(){}; g.V.gF=function(z){this.V=z}; g.V.rF=function(z){this.fH=z}; g.V.lm=function(z,p){pWN(this.policy,z,4,p)}; g.V.He=function(z){if(z==null?0:z.Hx)if(z=z.Hx.C5){z=g.m(z);for(var p=z.next();!p.done;p=z.next())if(p=p.value,p.formatId){var c=this.xA.D.get(Li(p.formatId));c&&c.info&&(c.info.debugInfo=p.debugInfo)}}}; g.V.CC=function(z){(z=z==null?void 0:z.reloadPlaybackParams)&&this.cq.publish("reloadplayer",z)}; g.V.uA=function(){return this.cq.uA()||""}; g.V.ZM=function(){var z=vC(this.audioTrack,!0)*1E3,p=vC(this.videoTrack,!0)*1E3;return Math.min(z,p)}; g.V.kA=function(z,p){this.z$.KH(z,p)}; g.V.oN=function(z){$kY(this.z$,ljY(this.NZ,z))}; g.V.m0=function(){g.e.prototype.m0.call(this);this.K=void 0;f3x(this,!0,"i");this.W=[]};TGY.prototype.uZ=function(z,p){if(this.X)return XfS(this,p);if(p=fe(z)){var c=p.K;c&&c.D&&c.W&&(z=z.D.length?z.D[0]:null)&&z.state>=2&&!z.Ks()&&z.info.nt===0&&(this.X=z,this.G=c,this.K=p.info,this.V=this.startTimeSecs=Date.now()/1E3,this.L=this.K.startTime)}return NaN}; TGY.prototype.clear=function(){this.K=this.G=this.X=null;this.W=this.L=this.V=this.startTimeSecs=NaN;this.D=!1};g.Y(g.Nw,g.e);g.V=g.Nw.prototype;g.V.initialize=function(z,p,c){this.logger.debug(function(){return"Initialized, t="+z}); z=z||0;this.policy.W||(p=Iji(this.W),at_(this.cq,new gA(p.video,p.reason)),this.cq.SI(new gA(p.audio,p.reason)));this.xA.isManifestless&&mBY(this.L);this.G&&VND(this.G,this.videoTrack.W);p=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var B=!this.xA.isManifestless;this.policy.B_&&(B=B||this.xA.iZ);this.policy.Ra||(this.currentTime=B?z:p);this.policy.Dt&&this.seek(this.getCurrentTime(),{}).zL(function(){}); if(this.policy.W){var H;((H=this.MZ)==null?0:yjW(H,this.uA()||""))&&MNv(this)&&Jai(this,this.videoTrack)&&Jai(this,this.audioTrack)&&(BGN(this.D,this.MZ),this.policy.V&&qev(this))}else this.Dt&&(Yei(this,this.videoTrack),Yei(this,this.audioTrack),NMQ(this.Dt),delete this.Dt);c?(this.policy.gC?(this.FQ=c,fv(this,c)):fv(this,!1),g.H4(this.Us)):(c=this.getCurrentTime()===0,fa(this.L,this.videoTrack,this.videoTrack.W,c),fa(this.L,this.audioTrack,this.audioTrack.W,c),this.policy.W&&vWV(this.D,!0),this.policy.Dt|| this.seek(this.getCurrentTime(),{}).zL(function(){}),this.timing.tick("gv")); (this.xA.Rj||this.xA.uY||this.xA.fH||this.xA.Ca||this.xA.LB)&&this.cq.vL(this.xA)}; g.V.resume=function(){if(this.isSuspended||this.xO){this.logger.debug("Resumed.");this.KM=this.xO=this.isSuspended=!1;try{this.uZ()}catch(z){g.Fr(z)}}}; g.V.Pg=function(){return!this.policy.Q8}; g.V.n8=function(z,p){z=z===void 0?!1:z;p=p===void 0?!1:p;this.logger.debug("detaching media source");OTY(this);this.cq.Rm()&&(this.V=NaN);z?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.YA&&this.KH("loader",{setsmb:1}),this.policy.T$=!0,this.Z_()):(this.policy.gC?fv(this,this.FQ):fv(this,!1),p||this.Z_())}; g.V.setAudioTrack=function(z,p,c){c=c===void 0?!1:c;if(!this.qZ()){var B=!isNaN(p);c&&B&&(this.audioTrack.Dt=Date.now(),this.policy.wJ&&(this.Zt=!0));if(this.policy.W){var H=this.K.LF(z.id,B);this.logger.debug(function(){return"Logging new audio format: "+H.W.info.id}); this.cq.SI(H)}else{var T=eHY(this.W,z.id,B);this.logger.debug(function(){return"Logging new audio format: "+T.audio.info.id}); this.cq.SI(new gA(T.audio,T.reason))}if(B&&(c=this.audioTrack.W.index.Hn(p),this.KH("setAudio",{id:z.id,cmt:p,sq:c}),c>=0)){this.policy.W&&(this.policy.dJ||(this.K.L=!0),this.e0(!0,"mosaic"));Ia(this.audioTrack,c,NaN,NaN);!this.policy.gJ&&this.xA.isLive&&Zn(this.xA,c,!1);return}this.cq.gP()}}; g.V.setPlaybackRate=function(z){z!==this.U.getPlaybackRate()&&this.U.setPlaybackRate(z)}; g.V.DC=function(z){var p=this.D.V;this.D.gF(z);this.KH("scfidc",{curr:Li(p),"new":Li(z)});z&&Li(z)!==Li(p)&&(this.e0(!1,"caption change"),this.uZ())}; g.V.Mp=function(z){this.D.rF(z)}; g.V.ox=function(z){var p=z.W.info.aI();this.logger.debug(function(){return"New "+(p?"audio":"video")+" format from SABR: "+Xb(z.W.info)}); p?this.cq.SI(z):at_(this.cq,z)}; g.V.oN=function(z){IB(z.b8[z.b8.length-1])&&$kY(this,ljY(this.W,z.b8[0].W))}; g.V.QQ=function(){return this.cq.QQ()}; g.V.Nr=function(){return this.cq.Nr()}; g.V.Xa=function(z){this.cq.N().OW()&&this.KH("sps",{status:z.rX||""});if(z.rX===1)this.cq.videoData.iV=0;else if(z.rX===2||z.rX===3){var p=!1;if(z.rX===3){p=this.cq.Iv();var c;this.Wy=(c=z.P9p)!=null?c:Infinity;this.cq.videoData.iV=p+1;(p=YcV(this))&&this.Ty(!0)}this.cq.uH(!0,p)}}; g.V.Eq=function(){return this.cq.Eq()}; g.V.Vm=function(){return this.cq.Vm()}; g.V.Bz=function(z){this.cq.Bz(z)}; g.V.fJp=function(){var z,p=(z=this.cq.h1())==null?void 0:z.getCurrentTime();p?this.cq.KH("rms",{cta:p}):g.H4(this.Ca)}; g.V.uZ=function(){SeV(this);if(this.G$&&Gq(this.G$)&&!this.G$.bf()&&(!this.policy.Ra||isFinite(this.getCurrentTime()))){var z=ZZ(this.videoTrack);z=this.policy.yk&&z&&z.NS();this.xA.isManifestless&&this.xA.X&&$T(this.xA)?(this.V=$T(this.xA),this.G$.pQ(this.V)):dm(this.xA)&&!z?isNaN(this.V)?(this.V=this.getCurrentTime()+3600,this.G$.pQ(this.V)):this.V<=this.getCurrentTime()+1800&&(this.V=Math.max(this.V+1800,this.getCurrentTime()+3600),this.G$.pQ(this.V)):this.G$.isView||(z=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.V)||this.V!==z)&&z>0&&(this.G$.pQ(z),this.V=z))}if(!this.qZ())if(S5(this.xA)&&this.xA.Ks()){var p=this.xA;this.handleError("manifest.net.retryexhausted",p.Zt?{rc:p.ZJ}:{rc:p.ZJ.toString()},1)}else if(this.policy.W)a:{try{gW_(this.D);this.xA.isManifestless&&this.policy.V&&g1(this.Wn);if(AaB(this)&&this.G$&&!zC(this.G$)&&this.videoTrack.fH&&this.audioTrack.fH){this.KH("ssap",{delaysb:1,v:this.videoTrack.W.info.id,vf:this.videoTrack.W.info.yI,a:this.audioTrack.W.info.id, af:this.audioTrack.W.info.yI});var c=this.G$,B=this.videoTrack.W,H=this.audioTrack.W;!zC(c)&&H&&B&&(aaf(c,B.info,H.info,this.policy.LN),wfB(this,c))}var T;((T=this.G$)==null?0:zC(T))&&this.xQ();vWV(this.D)}catch(D){g.oc(D);p=D;if(p.message.includes("changeType")){this.KH("ssap",{exp:p.name,msg:p.message,s:p.stack});break a}this.handleError("fmt.unplayable",{exp:p.name,msg:p.message,s:p.stack},1)}syu(this);g.H4(this.OH)}else if(!this.xA.K||!jMY(this.videoTrack)&&!jMY(this.audioTrack)||(this.videoTrack.L|| this.audioTrack.L)&&this.policy.RR?c=!1:(this.Z_(),this.cq.seekTo(Infinity,{VL:"checkLoaderTracksSync",Zs:!0}),c=!0),!c){SeV(this);this.xA.isManifestless&&(F4Y(this.videoTrack),F4Y(this.audioTrack),g1(this.Wn),(c=fe(this.videoTrack))&&c.K&&(c=c.K.D&&!this.policy.BV,this.KH(c===this.policy.S.L2?"strm":"strmbug",{strm:c,sfmp4:this.policy.S.L2,dfs:this.policy.BV},!0)));if(this.G$)this.xQ();else if(this.policy.X){var b;c=!1;if(this.policy.Ym)for(B=g.m([this.videoTrack,this.audioTrack]),H=B.next();!H.done;H= B.next()){T=H.value;for(H=fe(T);H&&T.ix()!==ZZ(T);H=fe(T))T.RY(H);c=c||!!H}else(p=fe(this.videoTrack))&&this.videoTrack.RY(p),(b=fe(this.audioTrack))&&this.audioTrack.RY(b);Ca(this.videoTrack)&&Ca(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(p||b||c)&&Up(this)}mkY(this);fa(this.L,this.videoTrack,this.videoTrack.W,!1);fa(this.L,this.audioTrack,this.audioTrack.W,!1);this.policy.Pj||ulE(this,this.videoTrack,this.audioTrack);DBv(this.L,this.videoTrack,this.audioTrack); DBv(this.L,this.audioTrack,this.videoTrack);syu(this);this.G&&(p=this.G,p.X?(b=p.V+p.policy.KJ,p.D||(b=Math.min(b,p.startTimeSecs+p.policy.Ob)),p=Math.max(0,b*1E3-Date.now())):p=NaN,isNaN(p)||g.H4(this.LB,p));g.H4(this.OH)}}; g.V.MH=function(z){this.cq.MH(z)}; g.V.xQ=function(){var z=this;if(this.G$){var p=this.G$.W,c=this.G$.K;c1E(this,this.audioTrack);c1E(this,this.videoTrack);var B=L9f(this);if(B){if(this.policy.wX){if(!p.Vc()){var H=fe(this.audioTrack);if(H){if(!G9(this,this.audioTrack,p,H.info))return;yaW(this,this.audioTrack,p,H)}}if(!c.Vc()&&(H=fe(this.videoTrack))){if(!G9(this,this.videoTrack,c,H.info))return;yaW(this,this.videoTrack,c,H)}}this.t5||(this.t5=(0,g.y2)(),this.logger.debug(function(){return"Appends pause start "+z.t5+" reason "+B}), this.policy.D&&this.KH("apdps",{r:B}))}else if(this.t5&&(ZTQ(this,this.t5),this.t5=0),dk_(this),H=!1,this.policy.K&&U$(this.videoTrack)||!Itv(this,this.videoTrack,c)||(H=!0,xmB(this.timing),MMu(this.timing)),this.G$&&!this.G$.QE()&&(this.policy.K&&U$(this.audioTrack)||!Itv(this,this.audioTrack,p)||(H=!0,E3_(this.timing),YVS(this.timing)),!this.qZ()&&this.G$)){if(!this.policy.Q8&&Ca(this.videoTrack)&&Ca(this.audioTrack)&&Gq(this.G$)&&!this.G$.bf()){c=!1; c=ZZ(this.audioTrack);if(this.policy.K){var T;p=(T=this.aR)==null?void 0:Ff(T,c.X*1E3);c=!(!p||p.clipId!==c.clipId);this.KH("ssap",{eos:c})}else T=c.W,c=T===this.xA.W[T.info.id];c&&(this.logger.debug("Setting EOS"),ZJv(this.G$),kCf(this.schedule))}H&&!this.G$.isAsync()&&Up(this)}}}; g.V.I5=function(z){var p,c=z===((p=this.G$)==null?void 0:p.W)?this.audioTrack:this.videoTrack,B;if((B=fe(c))==null?0:B.isLocked){if(this.cq.N().OW()){var H;this.KH("eosl",{ounlock:(H=fe(c))==null?void 0:H.info.hH()})}var T;raQ(this,z===((T=this.G$)==null?void 0:T.W))}var b;if(this.policy.wJ&&z===((b=this.G$)==null?void 0:b.W)&&this.CH){p=this.CH-this.getCurrentTime();var D;this.cq.KH("asl",{l:p,xtag:(D=ZZ(this.audioTrack))==null?void 0:D.W.info.W});this.Zt=!1;this.CH=0}z.Kn()&&z.UR().length===0&& (z.RZ(),this.G$&&!this.G$.Kn()&&(this.cq.N().OW()&&this.cq.KH("rms",{ld:"seek"}),this.G$.V=performance.now(),this.cq.Ly(),this.cq.N().OW()&&g.H4(this.Ca)));var t;(t=c.U)!=null&&DZ(t,0);this.policy.Wy?MFf(this):this.uZ()}; g.V.jwI=function(z){if(this.G$){var p=ZZ(z===this.G$.W?this.audioTrack:this.videoTrack);if(z=z.WE())for(var c=0;c5&&z.MZ.shift();p=p.pH;var B;this.policy.gt&&((B=this.cq.getVideoData())==null?0:B.enableServerStitchedDai)&&(B=GmW(this.audioTrack,p),c=GmW(this.videoTrack,p),B!==0&&c!==0&&B!==c&&this.handleError("ssdai.avsync",{sq:p,a:B,v:c},0))}}; g.V.hO=function(z,p,c,B){z.info.video&&this.X.hO(p,c,B)}; g.V.nV=function(z){this.W.nV(z)}; g.V.nW=cD(20);g.V.GV=function(z){this.aR=z;var p;(p=this.audioTrack.S)!=null&&(p.gU=z);(p=this.videoTrack.S)!=null&&(p.gU=z);p=this.D;p.S&&(p.z$.KH("ssap",{addcacheclips:1,v:p.S.version,tl:HTD(p.S.J4)}),pfE(p,z,p.S),p.S=void 0)}; g.V.Wf=function(){return this.aR}; g.V.cB=function(){return this.videoTrack.G||this.audioTrack.G}; g.V.seek=function(z,p){if(this.qZ())return SB();if(this.cB())return SB("seeking to head");if(this.policy.Dt&&!isFinite(z))return nxv(this.Wn),g.RS(Infinity);SeV(this);this.lU=(0,g.y2)();this.policy.W||mkY(this,z);this.G$&&this.G$.W&&this.G$.K&&!this.cq.getVideoData().gQ&&(this.G$.W.isLocked()||this.G$.K.isLocked())&&this.cq.gP({reattachOnLockedBuffer:1,vsb:""+this.G$.K.isLocked(),asb:""+this.G$.W.isLocked()});var c=this.getCurrentTime(),B=this.Wn.seek(z,p);this.policy.Ra||(this.currentTime=B);sl(this.X, z,c,this.policy.gS&&!p.G9);Up(this);return g.RS(B)}; g.V.Ap=function(z){return this.policy.W&&this.D.Ap(z)}; g.V.Os=function(z){return this.D.Os(z)}; g.V.e0=function(z,p){this.D.e0(z,p)}; g.V.getCurrentTime=function(){if(this.policy.Ra){var z=this.e_()||0;return this.cq.getCurrentTime()-z}return this.currentTime}; g.V.wV=function(){return this.audioTrack.W.info}; g.V.uU=function(){return this.videoTrack.W.info}; g.V.N9=function(){return this.audioTrack.W.info.yI}; g.V.Pb=function(){return this.videoTrack.W.info.yI}; g.V.m0=function(){try{this.n8(),r1(this.audioTrack),r1(this.videoTrack),r_(this.audioTrack),r_(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.e.prototype.m0.call(this)}catch(z){g.Fr(z)}}; g.V.handleError=function(z,p,c){c=c===void 0?0:c;var B=yn(c);z==="fmt.unplayable"&&this.xA.isLive&&(this.policy.wX=!1,aM(this.xA));p=new W2(z,p,c);g.GY(this);dB(p.details);this.cq.handleError(p);z!=="html5.invalidstate"&&p.errorCode!=="fmt.unplayable"&&z!=="fmt.unparseable"&&B&&this.dispose()}; g.V.kt=function(){var z=ZZ(this.audioTrack),p=ZZ(this.videoTrack);z={lct:this.getCurrentTime().toFixed(3),lsk:this.Wn.isSeeking(),lmf:this.W.W.isLocked(),lbw:$q(this.schedule).toFixed(3),lhd:R6(this.schedule).toFixed(3),lst:((this.schedule.G.Fu()||0)*1E9).toFixed(3),laa:z?z.hH():"",lva:p?p.hH():"",lar:this.audioTrack.K?this.audioTrack.K.hH():"",lvr:this.videoTrack.K?this.videoTrack.K.hH():"",laq:""+eJ(this.audioTrack),lvq:""+eJ(this.videoTrack)};this.G$&&!this.G$.QE()&&this.G$.W&&this.G$.K&&(z.lab= EI(this.G$.W.UR()),z.lvb=EI(this.G$.K.UR()));this.t5&&(z.lapt=((0,g.y2)()-this.t5).toFixed(0),z.lapr=L9f(this));this.Ra&&(z.lapmabht=((0,g.y2)()-this.Ra).toFixed(0),z.lapmabh=sB(this,this.audioTrack).toFixed(0));this.fH&&(z.lapmvbht=((0,g.y2)()-this.fH).toFixed(0),z.lapmvbh=sB(this,this.videoTrack).toFixed(0));this.YA&&(z.lapsdai=((0,g.y2)()-this.YA).toFixed(0));return z}; g.V.Z_=function(){try{this.policy.W&&this.D.e0(!1,"pending"),this.audioTrack.Z_(),this.videoTrack.Z_()}catch(z){g.Fr(z)}this.policy.X=""}; g.V.GB=function(){return Ce(this.U)}; g.V.KH=function(z,p,c){this.cq.KH(z,p,c===void 0?!1:c)}; g.V.uA=function(){return this.cq.uA()}; g.V.Zs=function(z,p){z/=p;isNaN(this.timestampOffset)&&B$f(this,z-Math.min(z,this.policy.oB));return(z-this.timestampOffset)*p}; g.V.e_=function(){return this.timestampOffset}; g.V.isSeeking=function(){return this.Wn.isSeeking()}; g.V.rG=function(){this.X.rG()}; g.V.yQ=function(z,p,c){p=p===void 0?!1:p;c=c===void 0?{}:c;this.policy.W?this.K.yQ(z,p,c):this.W.yQ(z,p,c)}; g.V.Zk=function(z,p){if(!this.S)return!1;var c=this.videoTrack.W.index.Hn(z);return this.S.Zk(z,p,c)}; g.V.fn=function(z,p){if(this.S&&this.X.fn(z,this.S))return B$f(this,this.timestampOffset-p),Up(this),this.policy.L&&(aM(this.xA),r_(this.audioTrack),r_(this.videoTrack),this.Z_()),!0;p=this.videoTrack.W.index.Hn(z);this.handleError("ad.skipfailed",{dec:!!this.S,t:z.toFixed(3),sq:p});return!1}; g.V.getManifest=function(){return this.xA}; g.V.isOffline=function(){return!!this.cq.getVideoData().cotn}; g.V.LU=function(z,p){this.cq.LU(z,p)}; g.V.MC=function(z){if(this.policy.CQ)this.policy.W&&this.D.e0(!0,"utc"),this.uZ();else{var p=this.cq.getVideoData().dL;if(p){var c=this.L;c.Ct=z;c.dL=p;pv(this)}}}; g.V.HI=function(z){this.videoTrack.G=!1;this.audioTrack.G=!1;this.Wn.K=!1;this.cq.HI(z)}; g.V.Hk=function(z){this.Wn.Hk(z-this.e_())}; g.V.Lw=function(){this.cq.Lw()}; g.V.Ty=function(z){z!==this.policy.C2&&((this.policy.C2=z)||this.uZ())}; g.V.Si=function(z,p){var c=this.audioTrack.oR,B=this.videoTrack.oR;c&&B&&(c.remove(z,p),B.remove(z,p))}; g.V.gP=function(z){this.cq.gP(z)}; g.V.XV=function(z){this.cq.XV(z)}; g.V.Iv=function(){return this.cq.Iv()}; g.V.Id=function(){aM(this.xA);this.Z_()};g.V=g.p6.prototype;g.V.J9=function(z,p,c,B,H,T){return this.gU.J9(z,p,c,B,H,T)}; g.V.l$=function(z,p,c,B,H,T){return this.gU.l$(z,p,c,B,H,T)}; g.V.ML=function(z){return this.gU.ML(z)}; g.V.Wo=function(z){this.gU.Wo(z)}; g.V.Gw=function(z,p,c,B){return this.gU.Gw(z,p,c,B)}; g.V.rG=function(){this.gU.rG()}; g.V.Zk=function(z,p,c){return this.gU.Zk(z,p,c)}; g.V.IY=function(z,p){this.gU.IY(z,p)}; g.V.Y2=function(){this.gU.Y2()}; g.V.jW=cD(62);g.V.NO=function(z,p,c){this.gU.NO(z,p,c)}; g.V.s$=cD(65);g.V.Fa=function(z,p,c,B,H,T,b,D,t){this.gU.Fa(z,p,c,B,H,T,b,D,t)}; g.V.l0=function(z){this.gU.l0(z)}; g.V.M2=function(z){return this.gU.M2(z)}; g.V.DM=function(z){return this.gU.DM(z)};g.Y(c5,g.JQ);g.Y(B5,c5);B5.prototype.V=function(z,p){if(z&&p){var c=Number(Ng(z,"cpi"))*1+1;isNaN(c)||c<=0||cthis.D&&(this.D=c,g.y3(this.W)||(this.W={},this.X.stop(),this.K.stop())),this.W[p]=z,g.H4(this.K))}}; B5.prototype.L=function(){for(var z=g.m(Object.keys(this.W)),p=z.next();!p.done;p=z.next()){var c=p.value;p=this.publish;for(var B=this.D,H=this.W[c].match(F0),T=[],b=g.m(H[6].split("&")),D=b.next();!D.done;D=b.next())D=D.value,D.indexOf("cpi=")===0?T.push("cpi="+B.toString()):D.indexOf("ek=")===0?T.push("ek="+g.pH(c)):T.push(D);H[6]="?"+T.join("&");c="skd://"+H.slice(2).join("");H=c.length*2;B=new Uint8Array(H+4);B[0]=H%256;B[1]=(H-B[0])/256;for(H=0;H0)for(var c=g.m(this.W),B=c.next();!B.done;B=c.next())if(p===B.value.info.cryptoPeriodIndex){p=!0;break a}p=!1}if(!p){p=(0,g.y2)();a:{c=z.cryptoPeriodIndex;if(!isNaN(c)){B=g.m(this.D.values());for(var H=B.next();!H.done;H=B.next())if(Math.abs(H.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=z.W,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:z.cryptoPeriodIndex,reqlen:this.W.length, ignore:this.X});c<=0?VqN(this,z):this.X||(this.W.push({time:p+c,info:z}),g.H4(this.K,c))}}; H5.prototype.m0=function(){this.W=[];c5.prototype.m0.call(this)};var xe={},EGE=(xe.DRM_TRACK_TYPE_AUDIO="AUDIO",xe.DRM_TRACK_TYPE_SD="SD",xe.DRM_TRACK_TYPE_HD="HD",xe.DRM_TRACK_TYPE_UHD1="UHD1",xe);g.Y(XvN,g.e);g.Y(J1D,g.JQ);g.V=J1D.prototype;g.V.MD=function(z){var p=this;this.qZ()||z.size<=0||(z.forEach(function(c,B){var H=FJ(p.K)?B:c;B=new Uint8Array(FJ(p.K)?c:B);FJ(p.K)&&Lbx(B);c=g.hy(B,4);Lbx(B);B=g.hy(B,4);p.W[c]?p.W[c].status=H:p.W[B]?p.W[B].status=H:p.W[c]={type:"",status:H};p.qO=[];by(p,p.W[c].type)&&p.qO.push(a7_(p.W[c].type))}),Kbx(this,","),iy(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.V.error=function(z,p,c,B){this.qZ()||(this.publish("licenseerror",z,p,c,B),z==="drm.provision"&&(z=(Date.now()-this.V)/1E3,this.V=NaN,this.publish("ctmp","provf",{et:z.toFixed(3)})));yn(p)&&this.dispose()}; g.V.shouldRetry=function(z,p){return!z&&this.requestNumber===p.requestNumber}; g.V.m0=function(){this.W={};g.JQ.prototype.m0.call(this)}; g.V.kt=function(){var z={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.tD,cryptoPeriodIndex:this.cryptoPeriodIndex};this.D&&(z.keyStatuses=this.W);return z}; g.V.getInfo=function(){var z=this.X.join();if(T8(this)){var p=new Set,c;for(c in this.W)this.W[c].status!=="usable"&&p.add(this.W[c].type);z+="/UKS."+Array.from(p)}return z+="/"+this.cryptoPeriodIndex}; g.V.BU=function(){return this.url};g.Y(VU,g.e);g.V=VU.prototype;g.V.Vp=function(z){if(this.L){var p=z.messageType||"license-request";this.L(new Uint8Array(z.message),p)}}; g.V.MD=function(){this.G&&this.G(this.W.keyStatuses)}; g.V.onClosed=function(){this.qZ()||g.k5("xboxone")&&this.D&&this.D("closedShouldNotRetry")}; g.V.U8=function(z){this.L&&this.L(z.message,"license-request")}; g.V.s8=function(z){if(this.D){if(this.K){var p=this.K.error.code;z=this.K.error.systemCode}else p=z.errorCode,z=z.systemCode;this.D("t.prefixedKeyError;c."+p+";sc."+z,p,z)}}; g.V.H4=function(){this.V&&this.V()}; g.V.update=function(z){var p=this;if(this.W)return(cW.isActive()?cW.V7("emeupd",function(){return p.W.update(z)}):this.W.update(z)).then(null,Kk(function(c){WbN(p,"t.update",c)})); this.K?this.K.update(z):this.element.addKey?this.element.addKey(this.S.keySystem,z,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,z,this.initData,this.sessionId);return If()}; g.V.m0=function(){this.W&&(this.U?this.W.close().catch(g.oc):this.W.close());this.element=null;g.e.prototype.m0.call(this)};g.Y(DM,g.e);g.V=DM.prototype;g.V.aq=function(){var z=this;if(this.W.keySystemAccess)return(cW.isActive()?cW.V7("emenew",function(){return z.W.keySystemAccess.createMediaKeys()}):this.W.keySystemAccess.createMediaKeys()).then(function(c){if(!z.qZ())if(z.K=c,cW.isActive())cW.V7("emeset",function(){return z.element.setMediaKeys(c)}); else{var B;(B=z.element)==null||B.setMediaKeys(c)}}); if(j5(this.W))this.D=new (IM())(this.W.keySystem);else if(oM(this.W)){this.D=new (IM())(this.W.keySystem);var p;(p=this.element)==null||p.webkitSetMediaKeys(this.D)}else cW.isActive()&&this.KH("emev",{v:"01b"}),yh(this.L,this.element,["keymessage","webkitkeymessage"],this.fg),yh(this.L,this.element,["keyerror","webkitkeyerror"],this.Lg),yh(this.L,this.element,["keyadded","webkitkeyadded"],this.vZ);return null}; g.V.setServerCertificate=function(){return this.K.setServerCertificate?this.W.flavor==="widevine"&&this.W.Ob?this.K.setServerCertificate(this.W.Ob):Qr(this.W)&&this.W.CH?this.K.setServerCertificate(this.W.CH):null:null}; g.V.createSession=function(z,p){var c=z.initData;if(this.W.keySystemAccess){p&&p("createsession");var B=this.K.createSession();n5(this.W)?c=y1Y(c,this.W.CH):Qr(this.W)&&(c=bPS(c)||new Uint8Array(0));p&&p("genreq");var H=cW.isActive()?cW.V7("emegen",function(){return B.generateRequest(z.contentType,c)}):B.generateRequest(z.contentType,c); var T=new VU(null,null,null,B,null,this.G);H.then(function(){p&&p("genreqsuccess")},Kk(function(D){WbN(T,"t.generateRequest",D)})); return T}if(j5(this.W))return ehv(this,c);if(oM(this.W))return Cg_(this,c);if((H=this.element)==null?0:H.generateKeyRequest)this.element.generateKeyRequest(this.W.keySystem,c);else{var b;(b=this.element)==null||b.webkitGenerateKeyRequest(this.W.keySystem,c)}return this.X=new VU(this.element,this.W,c,null,null,this.G)}; g.V.fg=function(z){var p=l7u(this,z);p&&p.U8(z)}; g.V.Lg=function(z){var p=l7u(this,z);p&&p.s8(z)}; g.V.vZ=function(z){var p=l7u(this,z);p&&p.H4(z)}; g.V.getMetrics=function(){if(this.K&&this.K.getMetrics)try{var z=this.K.getMetrics()}catch(p){}return z}; g.V.m0=function(){this.D=this.K=null;var z;(z=this.X)==null||z.dispose();z=g.m(Object.values(this.V));for(var p=z.next();!p.done;p=z.next())p.value.dispose();this.V={};g.e.prototype.m0.call(this);delete this.element};g.V=tU.prototype;g.V.get=function(z){z=this.findIndex(z);return z!==-1?this.values[z]:null}; g.V.remove=function(z){z=this.findIndex(z);z!==-1&&(this.keys.splice(z,1),this.values.splice(z,1))}; g.V.removeAll=function(){this.keys=[];this.values=[]}; g.V.set=function(z,p){var c=this.findIndex(z);c!==-1?this.values[c]=p:(this.keys.push(z),this.values.push(p))}; g.V.findIndex=function(z){return g.gz(this.keys,function(p){return g.Xe(z,p)})};g.Y(rF_,g.JQ);g.V=rF_.prototype;g.V.JHA=function(z){this.Yw({onecpt:1});z.initData&&kHu(this,new Uint8Array(z.initData),z.initDataType)}; g.V.j8A=function(z){this.Yw({onndky:1});kHu(this,z.initData,z.contentType)}; g.V.D6=function(z){this.Yw({onneedkeyinfo:1});this.Wq.Y("html5_eme_loader_sync")&&(this.G.get(z.initData)||this.G.set(z.initData,z));sai(this,z)}; g.V.Tp=function(z){this.D.push(z);XM(this)}; g.V.createSession=function(z){var p=GH_(this)?i5Y(z):g.hy(z.initData);this.K.get(p);this.T$=!0;z=new J1D(this.videoData,this.Wq,z,this.drmSessionId);this.K.set(p,z);z.subscribe("ctmp",this.qV,this);z.subscribe("keystatuseschange",this.MD,this);z.subscribe("licenseerror",this.Gm,this);z.subscribe("newlicense",this.AE,this);z.subscribe("newsession",this.yu,this);z.subscribe("sessionready",this.FX,this);z.subscribe("fairplay_next_need_key_info",this.N$,this);this.Wq.Y("html5_enable_vp9_fairplay")&&z.subscribe("qualitychange", this.HR,this);this.Wq.Y("html5_enable_sabr_drm_hd720p")&&z.subscribe("sabrlicenseconstraint",this.r8H,this);hhY(z,this.X)}; g.V.AE=function(z){this.qZ()||(this.Yw({onnelcswhb:1}),z&&!this.heartbeatParams&&(this.heartbeatParams=z,this.publish("heartbeatparams",z)))}; g.V.yu=function(){this.qZ()||(this.Yw({newlcssn:1}),this.D.shift(),this.T$=!1,XM(this))}; g.V.FX=function(){if(j5(this.W)&&(this.Yw({onsnrdy:1}),this.fH--,this.fH===0)){var z=this.MZ,p,c;(p=z.element)==null||(c=p.msSetMediaKeys)==null||c.call(p,z.D)}}; g.V.MD=function(z){if(!this.qZ()){!this.YA&&this.videoData.Y("html5_log_drm_metrics_on_key_statuses")&&(N_Y(this),this.YA=!0);this.Yw({onksch:1});var p=this.HR;if(!T8(z)&&g.pq&&z.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var B=!0;if(T8(z))for(var H=g.m(Object.keys(z.W)),T=H.next();!T.done;T=H.next())T=T.value,z.W[T].status==="usable"&&c.push(z.W[T].type),z.W[T].status!=="unknown"&&(B=!1);if(!T8(z)||B)c=z.X;c=$0Y(c)}p.call(this,c);this.publish("keystatuseschange", z)}}; g.V.qV=function(z,p){this.qZ()||this.publish("ctmp",z,p)}; g.V.N$=function(z,p){this.qZ()||this.publish("fairplay_next_need_key_info",z,p)}; g.V.Gm=function(z,p,c,B){this.qZ()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&N_Y(this),this.publish("licenseerror",z,p,c,B))}; g.V.L6=function(){return this.S}; g.V.HR=function(z){var p=g.tP("auto",z,!1,"l");if(this.videoData.Rz){if(this.S.oI(p))return}else if(UTx(this.S,z))return;this.S=p;this.publish("qualitychange");this.Yw({updtlq:z})}; g.V.r8H=function(z){this.videoData.sabrLicenseConstraint=z}; g.V.m0=function(){this.W.keySystemAccess&&this.element&&(this.tD?this.element.setMediaKeys(null).catch(g.oc):this.element.setMediaKeys(null));this.element=null;this.D=[];for(var z=g.m(this.K.values()),p=z.next();!p.done;p=z.next())p=p.value,p.unsubscribe("ctmp",this.qV,this),p.unsubscribe("keystatuseschange",this.MD,this),p.unsubscribe("licenseerror",this.Gm,this),p.unsubscribe("newlicense",this.AE,this),p.unsubscribe("newsession",this.yu,this),p.unsubscribe("sessionready",this.FX,this),p.unsubscribe("fairplay_next_need_key_info", this.N$,this),this.Wq.Y("html5_enable_vp9_fairplay")&&p.unsubscribe("qualitychange",this.HR,this),p.dispose();this.K.clear();this.V.removeAll();this.G.removeAll();this.heartbeatParams=null;g.JQ.prototype.m0.call(this)}; g.V.kt=function(){for(var z={systemInfo:this.W.kt(),sessions:[]},p=g.m(this.K.values()),c=p.next();!c.done;c=p.next())z.sessions.push(c.value.kt());return z}; g.V.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.L?"/KR":"")}; g.V.Yw=function(z,p){p=p===void 0?!1:p;this.qZ()||(dB(z),(this.Wq.OW()||p)&&this.publish("ctmp","drmlog",z))};g.Y(BEY,g.e);g.V=BEY.prototype;g.V.mE=function(){return!!this.jl}; g.V.k7=function(){return this.K}; g.V.handleError=function(z){var p=this;DwQ(this,z);if((z.errorCode!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&z.errorCode!=="fmt.unparseable"||!VHf(this,z.errorCode,z.details))&&!EnB(this,z)){if(this.QI.MZ!=="yt"&&XaS(this,z)&&this.videoData.ND&&(0,g.y2)()/1E3>this.videoData.ND&&this.QI.MZ==="hm"){var c=Object.assign({e:z.errorCode},z.details);c.stalesigexp="1";c.expire=this.videoData.ND;c.init=this.videoData.k_/1E3;c.now=(0,g.y2)()/1E3;c.systelapsed=((0,g.y2)()-this.videoData.k_)/1E3; z=new W2(z.errorCode,c,2);this.cq.OI(z.errorCode,2,"SIGNATURE_EXPIRED",dB(z.details))}if(yn(z.severity)){var B;c=(B=this.cq.z$)==null?void 0:B.W.W;if(this.QI.Y("html5_use_network_error_code_enums"))if(tHY(z)&&c&&c.isLocked())var H="FORMAT_UNAVAILABLE";else if(this.QI.V||z.errorCode!=="auth"||z.details.rc!==429)z.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED");else{H="TOO_MANY_REQUESTS";var T="6"}else tHY(z)&&c&&c.isLocked()?H="FORMAT_UNAVAILABLE":this.QI.V||z.errorCode!=="auth"|| z.details.rc!=="429"?z.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED"):(H="TOO_MANY_REQUESTS",T="6");this.cq.OI(z.errorCode,z.severity,H,dB(z.details),T)}else this.cq.publish("nonfatalerror",z),B=/^pp/.test(this.videoData.clientPlaybackNonce),this.ZP(z.errorCode,z.details),B&&z.errorCode==="manifest.net.connect"&&(z="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.y2)(),WK(z,"manifest",function(b){p.V=!0;p.KH("pathprobe",b)},function(b){p.ZP(b.errorCode, b.details)}))}}; g.V.KH=function(z,p){this.cq.S9().KH(z,p)}; g.V.ZP=function(z,p){p=dB(p);this.cq.S9().ZP(z,p)};MHD.prototype.xz=function(z,p){return(p===void 0?0:p)?{xV:z?qN(this,z):ge,AM:z?SpW(this,z):ge,Jd$:z?waS(this,z):ge,AnI:z?LTY(this,z.videoData):ge,mX:z?dw_(this,z.videoData,z):ge,bt0:z?AAS(this,z):ge,Ua3:hQf(this)}:{xV:z?qN(this,z):ge}}; MHD.prototype.Y=function(z){return this.Wq.Y(z)};g.Y(JU,g.e);JU.prototype.onError=function(z){if(z!=="player.fatalexception"||this.provider.Y("html5_exception_to_health"))z==="sabr.fallback"&&(this.encounteredSabrFallback=!0),z.match(Fnq)?this.networkErrorCount++:this.nonNetworkErrorCount++}; JU.prototype.send=function(){if(!(this.D||this.W<0)){CpN(this);var z=g.z8(this.provider)-this.W,p="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.DN;this.playerState.isError()?p=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.r(this.playerState,2)?p="PLAYER_PLAYBACK_STATE_ENDED":g.r(this.playerState,64)?p="PLAYER_PLAYBACK_STATE_UNSTARTED":g.r(this.playerState,16)||g.r(this.playerState,32)?p="PLAYER_PLAYBACK_STATE_SEEKING":g.r(this.playerState,1)&&g.r(this.playerState, 4)?p="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.r(this.playerState,1)?p="PLAYER_PLAYBACK_STATE_BUFFERING":g.r(this.playerState,4)?p="PLAYER_PLAYBACK_STATE_PAUSED":g.r(this.playerState,8)&&(p="PLAYER_PLAYBACK_STATE_PLAYING");c=y59[ur(this.provider.videoData)];a:switch(this.provider.Wq.playerCanaryState){case "canary":var B="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":B="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:B="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var H=eQW(this.provider), T=this.K<0?z:this.K-this.W;z=this.provider.Wq.dJ+36E5<(0,g.y2)();p={started:this.K>=0,stateAtSend:p,joinLatencySecs:T,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:B,playerCanaryStage:H,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.$I(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Ee(this.provider.videoData)};z||g.MG("html5PlayerHealthEvent",p);this.D=!0;this.dispose()}}; JU.prototype.m0=function(){this.D||this.send();window.removeEventListener("error",this.ji);window.removeEventListener("unhandledrejection",this.ji);g.e.prototype.m0.call(this)}; var Fnq=/\bnet\b/;g.Y(vnN,g.e);vnN.prototype.m0=function(){j5v(this);g.e.prototype.m0.call(this)};var FT_=/[?&]cpn=/;g.Y(MN,g.e);MN.prototype.flush=function(){var z={};this.K&&(z.pe=this.K);this.W.length>0&&(z.pt=this.W.join("."));this.W=[];return z}; MN.prototype.stop=function(){var z=this,p,c,B;return g.L(function(H){if(H.W==1)return g.Ox(H,2),g.a(H,(p=z.X)==null?void 0:p.stop(),4);if(H.W!=2)return(c=H.K)&&z.logTrace(c),g.RE(H,0);B=g.SQ(H);z.K=k9i(B.message);g.Ai(H)})}; MN.prototype.logTrace=function(z){this.encoder.reset();this.encoder.add(1);this.encoder.add(z.resources.length);for(var p=g.m(z.resources),c=p.next();!c.done;c=p.next()){c=c.value.replace("https://www.youtube.com/s/","");this.encoder.add(c.length);for(var B=0;B=0?z:g.z8(this.provider),this.tD?oy3.has(this.OR)&&(this.W.size||(this.OR==="PL"?z>=this.D+30:z<=this.fH+30))&&(g.hU(this,z,"vps",[this.OR]),this.D=z):["PL","B","S"].indexOf(this.OR)>-1&&(this.W.size||z>=this.D+30)&&(g.hU(this,z,"vps",[this.OR]),this.D=z),this.W.size)){this.sequenceNumber===7E3&&g.oc(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){On(this,z);var p=this.provider.cq.oF();p=g.m(p);for(var c=p.next();!c.done;c= p.next())c=c.value,this.KH(c.key,c.value);p=z;c=this.provider.cq.Bx();var B=c.droppedVideoFrames||0,H=c.totalVideoFrames||0,T=B-this.GY,b=H&&!this.Bw;B>c.totalVideoFrames||T>5E3?Vnv(this,"html5.badframedropcount","df."+B+";tf."+c.totalVideoFrames):(T>0||b)&&g.hU(this,p,"df",[T]);this.GY=B;this.Bw=H;this.U>0&&(g.hU(this,z,"glf",[this.U]),this.U=0);GT.isActive()&&(z=GT.PX(),Object.keys(z).length>0&&this.KH("profile",z));this.Zw&&ww(this,"lwnmow");this.provider.Wq.OW()&&this.provider.Y("html5_record_now")&& this.KH("now",{wt:(0,g.y2)()});z={};this.provider.videoData.K&&(z.fmt=this.provider.videoData.K.itag,(p=this.provider.videoData.X)&&p.itag!==z.fmt&&(z.afmt=p.itag));z.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(z.adcpn=this.adCpn);this.M9&&(z.addocid=this.M9);this.contentCpn&&(z.ccpn=this.contentCpn);this.Dt&&(z.cdocid=this.Dt);this.provider.videoData.cotn&&(z.cotn=this.provider.videoData.cotn);z.el=oy(this.provider.videoData);z.content_v=QN(this.provider.videoData);z.ns=this.provider.Wq.MZ; z.fexp=LOQ(this.provider.Wq.experiments).toString();z.cl=(738194565).toString();(p=this.provider.videoData.adFormat||this.adFormat)&&(z.adformat=p);(p=ur(this.provider.videoData))&&(z.live=p);this.provider.videoData.ke()&&(z.drm=1,this.provider.videoData.L&&(z.drm_system=u2q[this.provider.videoData.L.flavor]||0),this.provider.videoData.hq&&(z.drm_product=this.provider.videoData.hq));J6()&&this.provider.videoData.V&&(z.ctt=this.provider.videoData.V,z.cttype=this.provider.videoData.x8,this.provider.videoData.mdxEnvironment&& (z.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(z.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.dD&&(z.dai_fallback="1")):this.provider.videoData.WU?z.dai="cs":this.provider.videoData.L1&&(z.dai="disabled");z.seq=this.sequenceNumber++;if(this.provider.videoData.P3){if(p=this.provider.videoData.P3,z&&p)for(p.ns==="3pp"&&(z.ns="3pp"),this.t1.has(p.ns)&&ww(this,"hbps"),p.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= p.shbpslc),this.provider.Wq.experiments.JD("html5_use_server_qoe_el_value")&&this.sH.delete("el"),c=g.m(Object.keys(p)),B=c.next();!B.done;B=c.next())B=B.value,this.sH.has(B)||(z[B]=p[B])}else z.event="streamingstats",z.docid=this.provider.videoData.videoId,z.ei=this.provider.videoData.eventId;this.isEmbargoed&&(z.embargoed="1");Object.assign(z,this.provider.Wq.W);if(p=z.seq)p={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+p,serializedWatchEndpointLoggingContext:this.provider.videoData.EK}, this.serializedHouseBrandPlayerServiceLoggingContext&&(p.serializedHouseBrandPlayerServiceLoggingContext=Ay(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(p.playerResponseCpn=this.provider.videoData.playerResponseCpn),mQ.length&&(p.decoderInfo=mQ),this.provider.cq.Wf()&&(p.transitionStitchType=4,this.T$&&(p.timestampOffsetMsecs=this.T$)),this.remoteControlMode&&(p.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&& (p.remoteConnectedDevices=this.remoteConnectedDevices),p=g.q9(p,mTE),p=g.hy(p,4),this.W.set("qclc",[p]);z=g.g6("//"+this.provider.Wq.wh+"/api/stats/qoe",z);c=p="";B=g.m(this.W.entries());for(H=B.next();!H.done;H=B.next())if(T=g.m(H.value),H=T.next().value,T=T.next().value)H="&"+H+"="+T.join(","),H.length>100?c+=H:p+=H;H6_(this,z+p,c.replace(/ /g,"%20"))}this.W.clear()}}; g.V.XV=function(z){this.Zw=z}; g.V.Gt=function(){if(this.provider.videoData.L){var z=this.provider.videoData.L;ww(this,"eme-"+(z.keySystemAccess?"final":j5(z)?"ms":n5(z)?"ytfp":oM(z)?"safarifp":"nonfinal"))}}; g.V.tC=cD(59);g.V.zx=function(z){this.isEmbargoed=z}; g.V.hd=cD(36);g.V.KD=cD(42);g.V.onPlaybackRateChange=function(z){var p=g.z8(this.provider);z&&z!==this.ow&&(g.hU(this,p,"rate",[z]),this.ow=z);this.tD||this.reportStats(p)}; g.V.Xv=cD(30);g.V.getPlayerState=function(z){if(g.r(z,128))return"ER";if(g.r(z,2048))return"B";if(g.r(z,512))return"SU";if(g.r(z,16)||g.r(z,32))return"S";if(z.isOrWillBePlaying()&&g.r(z,64))return"B";var p=nyQ[YN(z)];g.yi(this.provider.Wq)&&p==="B"&&this.provider.cq.getVisibilityState()===3&&(p="SU");p==="B"&&g.r(z,4)&&(p="PB");return p}; g.V.m0=function(){g.e.prototype.m0.call(this);g.S9(this.V);g.S9(this.Ca)}; g.V.v3=function(z){this.isOffline=z;g.hU(this,g.z8(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.V.KH=function(z,p,c){var B=this.JH.indexOf(z)!==-1;B||this.JH.push(z);if(!c||!B){var H=typeof p!=="string"?dB(p):p;H=tnu(H);if(!c&&!/^t[.]/.test(H)){var T=g.z8(this.provider)*1E3;H="t."+T.toFixed()+";"+H}AU(this,"ctmp",z+":"+H);this.logger.debug(function(){return"ctmp "+z+" "+H}); i6Y(this);return T}}; g.V.V0=function(z,p,c){this.L={DaA:Number(this.KH("glrem",{nst:z.toFixed(),rem:p.toFixed(),ca:+c})),rN:z,Jvq:p,isAd:c}}; g.V.IP=function(z,p,c){g.hU(this,g.z8(this.provider),"ad_playback",[z,p,c])}; g.V.I6=function(z,p){var c=g.z8(this.provider)*1E3;AU(this,"daism","t."+c.toFixed(0)+";smw."+(z*1E3).toFixed(0)+";smo."+(p*1E3).toFixed(0))}; g.V.resume=function(){var z=this;this.provider.Wq.OW()&&this.KH("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.V)?Twv(this):this.V=g.wS(function(){z.reportStats()},1E4)}; var Ez={},nyQ=(Ez[5]="N",Ez[-1]="N",Ez[3]="B",Ez[0]="EN",Ez[2]="PA",Ez[1]="PL",Ez[-1E3]="ER",Ez[1E3]="N",Ez),oy3=new Set(["PL","B","S"]),mQ=[];Ea_.prototype.A_=function(){return this.W}; Ea_.prototype.update=function(){if(this.G){var z=this.provider.cq.qr(this.provider.videoData.clientPlaybackNonce)||0,p=g.z8(this.provider);z>=this.provider.cq.getDuration()-.1&&(this.previouslyEnded=!0);if(z!==this.W||MnY(this,z,p)){var c;if(!(c=zp-this.kU+2||MnY(this,z,p))){c=this.provider.cq.getVolume();var B=c!==this.U,H=this.provider.cq.isMuted()?1:0;H!==this.S?(this.S=H,c=!0):(!B||this.X>=0||(this.U=c,this.X=p),c=p-this.X,this.X>=0&&c>2?(this.X=-1,c=!0):c=!1)}c&&(K6(this),this.D= z);this.kU=p;this.W=z}}};YnN.prototype.send=function(z){var p=this;if(!this.NZ){var c=hux(this),B=g.g6(this.uri,c);this.Wq.Y("vss_through_gel_double")&&PyE(B);this.tD&&!this.Wq.Y("html5_simplify_pings")?SnW(this,B):mNu(this,z).then(function(H){p.tD&&(H=H||{},H.method="POST",H.postParams={atr:p.attestationResponse});rAY(B,H,{token:p.MZ,G4:p.UH,mdxEnvironment:p.mdxEnvironment},p.Wq,z,p.T$,p.isFinal&&p.dJ||p.Ra||p.D&&p.wJ)}); this.NZ=!0}}; YnN.prototype.K=function(z){z===void 0&&(z=NaN);return Number(z.toFixed(3)).toString()}; var q1={},w5S=(q1.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,q1.LIVING_ROOM_APP_MODE_MAIN=1,q1.LIVING_ROOM_APP_MODE_KIDS=2,q1.LIVING_ROOM_APP_MODE_MUSIC=3,q1.LIVING_ROOM_APP_MODE_UNPLUGGED=4,q1.LIVING_ROOM_APP_MODE_GAMING=5,q1),Jk={},O6f=(Jk.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Jk.EMBEDDED_PLAYER_MODE_DEFAULT=1,Jk.EMBEDDED_PLAYER_MODE_PFP=2,Jk.EMBEDDED_PLAYER_MODE_PFL=3,Jk);g.Y(aI,g.e);g.V=aI.prototype;g.V.Jv=function(){this.W.update();yUY(this)&&(uMD(this),aMQ(this),this.rh())}; g.V.m0=function(){g.e.prototype.m0.call(this);dw(this);qni(this.W)}; g.V.kt=function(){return hux(ZM(this,"playback"))}; g.V.rh=function(){this.provider.videoData.G.eventLabel=oy(this.provider.videoData);this.provider.videoData.G.playerStyle=this.provider.Wq.playerStyle;this.provider.videoData.l6&&(this.provider.videoData.G.feature="pyv");this.provider.videoData.G.vid=this.provider.videoData.videoId;var z=this.provider.videoData.G;var p=this.provider.videoData;p=p.isAd()||!!p.l6;z.isAd=p}; g.V.xe=function(z){var p=ZM(this,"engage");p.Dt=z;return AUB(p,jIW(this.provider))};IMB.prototype.isEmpty=function(){return this.endTime===this.startTime};yU.prototype.Y=function(z){return this.Wq.Y(z)}; yU.prototype.getCurrentTime=function(z){if(this.Y("html5_ssap_current_time_for_logging_refactor")){var p=this.cq.Wf();if(p&&(z=z||p.AA()))return py(p,z)}else if(g.pT(this.videoData)){var c=this.cq.Wf();if(c)return z=this.cq.getCurrentTime(),c=(((p=Ff(c,z*1E3))==null?void 0:p.Xe)||0)/1E3,z-c}return this.cq.getCurrentTime()}; yU.prototype.pN=function(z){if(this.Y("html5_ssap_current_time_for_logging_refactor")){var p=this.cq.Wf();if(p&&(z=z||p.AA()))return py(p,z)}else if(g.pT(this.videoData)){var c=this.cq.Wf();if(c)return z=this.cq.pN(),c=(((p=Ff(c,z*1E3))==null?void 0:p.Xe)||0)/1E3,z-c}return this.cq.pN()}; var FQY={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.Y(g.C6,g.e);g.V=g.C6.prototype;g.V.Jv=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Kt){var z;(z=this.D.get(this.Kt))==null||z.Jv()}else this.W&&this.W.Jv()}; g.V.zx=function(z){this.qoe&&this.qoe.zx(z)}; g.V.hd=cD(35);g.V.KD=cD(41);g.V.I6=function(z,p){this.qoe&&this.qoe.I6(z,p)}; g.V.XU=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Kt){var z;(z=this.D.get(this.Kt))!=null&&K6(z.W)}else this.W&&K6(this.W.W)}; g.V.ZP=function(z,p){this.qoe&&Vnv(this.qoe,z,p);if(this.K)this.K.onError(z)}; g.V.onPlaybackRateChange=function(z){if(this.qoe)this.qoe.onPlaybackRateChange(z);this.W&&K6(this.W.W)}; g.V.tC=cD(58);g.V.KH=function(z,p,c){this.qoe&&this.qoe.KH(z,p,c)}; g.V.V0=function(z,p,c){this.qoe&&this.qoe.V0(z,p,c)}; g.V.M0=function(z){var p;(p=this.qoe)==null||p.M0(z)}; g.V.vL=function(z){var p;(p=this.qoe)==null||p.vL(z)}; g.V.XV=function(z){this.qoe&&this.qoe.XV(z)}; g.V.IP=function(z,p,c){this.qoe&&this.qoe.IP(z,p,c)}; g.V.Xv=cD(29);g.V.Ib=function(){if(this.qoe)return this.qoe.Ib()}; g.V.kt=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Kt){var z,p;return(p=(z=this.D.get(this.Kt))==null?void 0:z.kt())!=null?p:{}}return this.W?this.W.kt():{}}; g.V.hx=function(){var z;return(z=this.qoe)==null?void 0:z.hx()}; g.V.nm=function(z,p){var c;(c=this.qoe)==null||c.nm(z,p)}; g.V.xe=function(z){return this.W?this.W.xe(z):function(){}}; g.V.rh=function(){this.W&&this.W.rh()}; g.V.getVideoData=function(){return this.provider.videoData}; g.V.resume=function(){this.qoe&&this.qoe.resume()};g.Y(ly,g.e); ly.prototype.Ai=function(z,p,c){if(this.W.has(z)){var B=this.W.get(z);if(p.videoId&&!oa_(B))this.K.KH("ssap",{rlc:z}),fMV(this,z);else return}if(!this.W.has(z)){B=new yU(p,this.Wq,this.cq);var H=Math.round(g.z8(this.K.provider)*1E3);B=new g.C6(B,H);oa_(B)||this.K.KH("nqv",{vv:p.videoId});H=this.K.getVideoData();this.W.set(z,B);if(B.qoe){var T=B.qoe,b=H.videoId||"";T.contentCpn=H.clientPlaybackNonce;T.Dt=b}naW(B);c===2&&(this.Wq.Y("html5_log_ad_playback_docid")?(c=this.K,c.qoe&&(c=c.qoe,B=p.EW||"", H=p.breakType||0,p=p.videoId||"",T=this.Wq.MZ||"yt",g.hU(c,g.z8(c.provider),"ad_playback",[z,B,H,p,T]))):this.K.IP(z,p.EW||"",p.breakType||0))}}; ly.prototype.Je=function(z,p,c,B,H,T,b,D){if(z!==p){var t=this.S9(z),X=this.S9(p),x,E=z===((x=t.getVideoData())==null?void 0:x.clientPlaybackNonce),q;x=p===((q=X.getVideoData())==null?void 0:q.clientPlaybackNonce);var J;q=E?((J=t.getVideoData())==null?void 0:J.videoId)||"":"nvd";var M;J=x?((M=X.getVideoData())==null?void 0:M.videoId)||"":"nvd";E&&(t=t.qoe)!=null&&(Sn(t,4,T?4:H?2:0,p,J,c),t.reportStats());x&&(en(X),(p=X.qoe)!=null&&(Sn(p,4,T?5:H?3:1,z,q,B),p.reportStats()),UNY(X,new g.Ab(b,X.OR)), QIS(X));D&&fMV(this,z)}}; ly.prototype.S9=function(z){z=z||this.Kt;return this.W.get(z)||this.K};g.Y(g.v5,g.e);g.V=g.v5.prototype; g.V.KN=function(z,p){this.sync();p&&this.W.array.length>=2E3&&this.XE("captions",1E4);p=this.W;if(z.length>1&&z.length>p.array.length)p.array=p.array.concat(z),p.array.sort(p.W);else for(var c=g.m(z),B=c.next();!B.done;B=c.next())B=B.value,!p.array.length||p.W(B,p.array[p.array.length-1])>0?p.array.push(B):g.xu(p.array,B,p.W);z=g.m(z);for(p=z.next();!p.done;p=z.next())p=p.value,p.namespace==="ad"&&this.X("ssap",{acrsid:p.getId(),acrsst:p.start,acrset:p.end,acrscpt:p.playerType});this.D=NaN;this.sync()}; g.V.tA=function(z){z.length>1E4&&g.oc(new g.z6("Over 10k cueRanges removal occurs with a sample: ",z[0]));if(!this.qZ()){for(var p=g.m(z),c=p.next();!c.done;c=p.next())(c=c.value)&&c.namespace==="ad"&&this.X("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var B=new Set(z);this.K=this.K.filter(function(H){return!B.has(H)}); Tti(this.W,B);this.sync()}}; g.V.XE=function(z,p){var c=(isNaN(this.D)?g.r(this.cq.getPlayerState(),2)?0x8000000000000:this.cq.getCurrentTime()*1E3:this.D)-p;p=this.Vm().filter(function(B){return B.namespace===z&&B.endthis.W,T=g.r(c,8)&&g.r(c,16),b=this.cq.wC().isBackground()||c.isSuspended();ka(this,this.sH,T&&!b,H,"qoe.slowseek",function(){},"timeout"); var D=isFinite(this.W);D=T&&D&&laS(p,this.W);var t=!B||Math.abs(B-this.W)>10,X=this.Wq.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),x=B===0&&this.K&&[11,10].includes(this.K);ka(this,this.UH,D&&t&&!b&&(!X||!x),H,"qoe.slowseek",function(){p.seekTo(z.W)},"set_cmt"); t=D&&Jw(p.zO(),this.W);X=this.cq.z$;D=!X||X.Pg();var E=function(){p.seekTo(z.W+.001)}; ka(this,this.i8,t&&D&&!b,H,"qoe.slowseek",E,"jiggle_cmt");D=function(){return z.cq.hv()}; ka(this,this.NZ,t&&!b,H,"qoe.slowseek",D,"new_elem");t=MP(c);x=c.isBuffering();var q=p.zO(),J=qF(q,B),M=J>=0&&q.end(J)>B+5,P=t&&x&&M,O=this.cq.getVideoData();ka(this,this.OH,B<.002&&this.W<.002&&T&&g.yi(this.Wq)&&g.nT(O)&&!b,H,"qoe.slowseek",D,"slow_seek_shorts");ka(this,this.MZ,O.Jo()&&T&&!b&&!O.T$,H,"qoe.slowseek",D,"slow_seek_gapless_shorts");ka(this,this.tD,P&&!b,t&&!x,"qoe.longrebuffer",E,"jiggle_cmt");ka(this,this.T$,P&&!b,t&&!x,"qoe.longrebuffer",D,"new_elem_nnr");if(X){var R=X.getCurrentTime(); T=p.Y7();T=Suf(T,R);T=!X.isSeeking()&&B===T;ka(this,this.gt,t&&x&&T&&!b,t&&!x&&!T,"qoe.longrebuffer",function(){p.seekTo(R)},"seek_to_loader")}T={}; E=qF(q,Math.max(B-3.5,0));P=E>=0&&B>q.end(E)-1.1;var K=E>=0&&E+1=0&&P&&K<11;T.close2edge=P;T.gapsize=K;T.buflen=q.length;this.K&&(T.seekSour=this.K);if(J=this.cq.Wf()){E=J.AA();P=E!==Ff(J,B*1E3).clipId;K=g.P3(this.Wq.experiments,"html5_ssap_skip_seeking_offset_ms");var Z=(jk(J,E)+K)/1E3;ka(this,this.YA,P&&t&&x&&!b,t&&!x,"qoe.longrebuffer",function(){p.seekTo(Z)},"ssap_clip_not_match")}ka(this,this.Ra,t&&x&&!b,t&&!x,"qoe.longrebuffer", function(){},"timeout",T); T=c.isSuspended();T=this.cq.If()&&!T;ka(this,this.G,T,!T,"qoe.start15s",function(){z.cq.tv("ad")},"ads_preroll_timeout"); J=B-this.X<.5;var W;T=!((W=this.cq.Wf())==null||!W.Eb());P=(E=O.isAd()||T&&this.Wq.experiments.JD("html5_ssap_skip_slow_ad"))&&t&&!x&&J;W=function(){var v=z.cq,zY=g.pT(v.videoData)&&v.aR,U=v.Gl.getVideoData();(U&&v.videoData.isAd()&&U.WU===v.getVideoData().WU||!v.videoData.Mn)&&!zY?v.OI("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+v.videoData.videoId):YI(v.videoData,"html5_ssap_skip_slow_ad")&&zY&&v.aR.Eb()&&(v.ZP(new W2("ssap.transitionfailure",{cpn:Ff(v.aR,v.pN()).clipId,pcpn:v.aR.AA(), cmt:v.pN()})),v=v.aR,zY=v.playback.pN(),(zY=cKN(v,zY))&&GAS(v,zY.PQ()/1E3))}; ka(this,this.WM,P,!P,"ad.rebuftimeout",W,"skip_slow_ad");J=E&&x&&Jw(p.zO(),B+5)&&J;ka(this,this.RR,J&&!b,!J,"ad.rebuftimeout",W,"skip_slow_ad_buf");W=c.isOrWillBePlaying()&&g.r(c,64)&&!b;ka(this,this.FQ,W,H,"qoe.start15s",function(){},"timeout"); W=!!X&&!X.G$&&c.isOrWillBePlaying();ka(this,this.fH,W,H,"qoe.start15s",D,"newElemMse");W=mX(q,0);J=g.r(c,16)||g.r(c,32);J=!b&&c.isOrWillBePlaying()&&x&&!J&&(g.r(c,64)||B===0)&&W>5;ka(this,this.CH,g.nT(O)&&J,t&&!x,"qoe.longrebuffer",function(){z.cq.gP()},"reset_media_source"); ka(this,this.Zt,g.nT(O)&&J,t&&!x,"qoe.longrebuffer",D,"reset_media_element");this.X===0&&(this.V=B);J=x&&this.W===0&&B>1&&B===this.V;ka(this,this.rA,g.nT(O)&&J,t&&!x,"qoe.slowseek",function(){p.seekTo(0)},"reseek_after_time_jump"); b=c.isOrWillBePlaying()&&!b;M=this.cq.tI()-B<6&&!M&&this.cq.us();ka(this,this.S,O.Jo()&&b&&x&&M,t&&!x,"qoe.longrebuffer",function(){z.cq.hv(!1,!0)},"handoff_end_long_buffer_reload"); X=(X==null?void 0:iPS(X))||NaN;X=q.length>1||!isNaN(X)&&X-.1<=B;ka(this,this.U,ta(O)&&b&&x&&X,t&&!x,"qoe.longrebuffer",D,"gapless_slice_append_stuck");b=ta(O)&&this.K===104&&b&&(x||g.r(c,8)&&g.r(c,16));ka(this,this.Dt,b,H,"qoe.start15s",D,"gapless_slow_start");c=!!(T&&W>5&&c.isPlaying()&&B<.1);ka(this,this.Zw,c,B>.5&&t,"qoe.longrebuffer",D,"ssap_stuck_in_ad_beginning");this.X=B;this.L.start()}}; sn.prototype.ZP=function(z,p,c){p=this.kt(p);p.wn=c;p.wdup=this.D[z]?"1":"0";this.cq.ZP(new W2(z,p));this.D[z]=!0}; sn.prototype.kt=function(z){z=Object.assign(this.cq.kt(!0),z.kt());this.W&&(z.stt=this.W.toFixed(3));this.cq.getVideoData().isLivePlayback&&(z.ct=this.cq.getCurrentTime().toFixed(3),z.to=this.cq.e_().toFixed(3));delete z.uga;delete z.euri;delete z.referrer;delete z.fexp;delete z.vm;return z}; rw.prototype.reset=function(){this.W=this.K=this.D=this.startTimestamp=0;this.X=!1}; rw.prototype.test=function(z){if(!this.L||this.K)return!1;if(!z)return this.reset(),!1;z=(0,g.y2)();if(!this.startTimestamp)this.startTimestamp=z,this.D=0;else if(this.D>=this.L)return this.K=z,!0;this.D+=1;return!1}; rw.prototype.kt=function(){var z={},p=(0,g.y2)();this.startTimestamp&&(z.wsd=(p-this.startTimestamp).toFixed());this.K&&(z.wtd=(p-this.K).toFixed());this.W&&(z.wssd=(p-this.W).toFixed());return z};g.Y($tN,g.e);g.V=$tN.prototype;g.V.setMediaElement=function(z){(this.mediaElement=z)?(this.mediaElement&&(this.L||this.D||!this.mediaElement.L0()||this.seekTo(.01,{VL:"seektimeline_setupMediaElement"})),gw(this)):NN(this)}; g.V.getCurrentTime=function(){if(G8(this.cq)){if(!isNaN(this.K))return this.K}else if(!isNaN(this.K)&&isFinite(this.K))return this.K;return this.mediaElement&&I1i(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.V.p6=function(){return this.Zt}; g.V.pN=function(){return this.getCurrentTime()-this.e_()}; g.V.ww=function(){return this.W?this.W.ww():Infinity}; g.V.isAtLiveHead=function(z){if(!this.W)return!1;z===void 0&&(z=this.getCurrentTime());return n6(this.W,z)}; g.V.Hs=function(){return!!this.W&&this.W.Hs()}; g.V.seekTo=function(z,p){var c=p===void 0?{}:p;p=c.Gb===void 0?!1:c.Gb;var B=c.i7===void 0?0:c.i7;var H=c.dG===void 0?!1:c.dG;var T=c.BR===void 0?0:c.BR;var b=c.VL===void 0?"":c.VL;var D=c.seekSource===void 0?void 0:c.seekSource;var t=c.Zs===void 0?!1:c.Zs;var X=c.G9===void 0?!1:c.G9;c=c.mf===void 0?!1:c.mf;t&&(z+=this.e_());Ee(this.videoData)&&D===29&&(this.Zt=void 0);t=z=this.Yb())||!g.yN(this.videoData),x||(P={st:P,mst:this.Yb()},this.W&&this.Y("html5_high_res_seek_logging")&&(P.ht=this.W.ww(),P.adft=hj_(this.W)),this.cq.KH("seeknotallowed",P)),P=x));if(!P)return this.X&&(this.X=null,l1B(this)),g.RS(this.getCurrentTime());P=.005;X&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(P=0);if(Math.abs(z-this.K)<=P&&this.tD)return this.L;b&&(P=z,(this.Wq.OW()||this.Y("html5_log_seek_reasons"))&&this.cq.KH("seekreason",{reason:b, tgt:P}));D&&(this.U.K=D);this.tD&&NN(this);this.L||(this.L=new BS);z&&!isFinite(z)&&ZjY(this,!1);(b=c||t)||(b=z,b=!(this.videoData.isLivePlayback&&this.videoData.D&&!this.videoData.D.W&&!(this.mediaElement&&this.mediaElement.YG()>0&&iB(this.mediaElement)>0)||ha(this.videoData)&&this.pB()===this.Yb(!1)?0:isFinite(b)||!ha(this.videoData)));b||(z=zL(this,z,H));z&&!isFinite(z)&&ZjY(this,!1);this.D=z;this.i8=T;this.K=z;this.V=0;this.W&&(H=this.W,T=z,PlY(H,T,!1),AIN(H,T));H=this.cq;T=z;b={Gb:p,seekSource:D}; H.Yr.D=T;c=H.Td;c.mediaTime=T;c.W=!0;b.Gb&&H.Vk(b);b=T>H.videoData.endSeconds&&T>H.videoData.limitedPlaybackDurationInSeconds;H.z9&&b&&isFinite(T)&&h3W(H);Tp.start&&h3W(this.cq);return this.L}; g.V.Yb=function(z){if(!this.videoData.isLivePlayback)return UsS(this.cq);var p;return bg(this.videoData)&&((p=this.mediaElement)==null?0:p.isPaused())&&this.videoData.W?(z=this.getCurrentTime(),YOf(this.S5(z)*1E3)+z):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&Ee(this.videoData)&&this.videoData.W?z?this.videoData.W.Dt||0:this.videoData.W.f3||0:ha(this.videoData)&&this.videoData.YA&&this.videoData.W?this.videoData.W.Yb()+this.timestampOffset:this.videoData.D&&this.videoData.D.W?!z&& this.W?this.W.ww():UsS(this.cq)+this.timestampOffset:this.mediaElement?N_()?YOf(this.mediaElement.XF().getTime()):iB(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.V.pB=function(){if(g.pT(this.videoData)){var z=this.cq;g.pT(z.videoData);var p,c;return(c=(p=z.aR)==null?void 0:p.pB())!=null?c:z.videoData.pB()}if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&Ee(this.videoData)){var B;return((B=this.videoData.W)==null?void 0:B.Fh)||0}p=this.videoData?this.videoData.pB()+this.timestampOffset:this.timestampOffset;return bg(this.videoData)&&this.videoData.W&&(c=Number((z=this.videoData.progressBarStartPosition)==null?void 0:z.utcTimeMillis)/1E3,z= this.getCurrentTime(),z=this.S5(z)-z,!isNaN(c)&&!isNaN(z))?Math.max(p,c-z):p}; g.V.Ly=function(){this.L||this.seekTo(this.D,{VL:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.V.cB=function(){return this.tD&&!isFinite(this.K)}; g.V.m0=function(){Lxv(this,null);this.U.dispose();g.e.prototype.m0.call(this)}; g.V.kt=function(){var z={};this.z$&&Object.assign(z,this.z$.kt());this.mediaElement&&Object.assign(z,this.mediaElement.kt());return z}; g.V.GE=function(z){this.timestampOffset=z}; g.V.getStreamTimeOffset=function(){return ha(this.videoData)?0:this.videoData.W?this.videoData.W.getStreamTimeOffset():0}; g.V.e_=function(){return this.timestampOffset}; g.V.S5=function(z){return this.videoData&&this.videoData.W?this.videoData.W.S5(z-this.timestampOffset):NaN}; g.V.f6=function(){if(!this.mediaElement)return 0;if(CT(this.videoData)){var z=this.mediaElement,p=z.zO();z=(YK(p)>0&&z.getDuration()?p.end(p.length-1):0)+this.timestampOffset-this.pB();p=this.Yb()-this.pB();return Math.max(0,Math.min(1,z/p))}return this.mediaElement.f6()}; g.V.SI=function(z){this.G&&(this.G.W=z)}; g.V.MC=function(z,p){this.cq.KH("requestUtcSeek",{time:z});Ee(this.videoData)&&(this.Zt=z);var c;(c=this.z$)==null||c.MC(z);p&&(this.T$=p)}; g.V.HI=function(z){Ee(this.videoData)&&(this.Zt=void 0);if(this.T$)this.cq.KH("utcSeekingFallback",{source:"streamTime",timeSeconds:this.T$}),this.cq.seekTo(this.T$,{VL:"utcSeekingFallback_streamTime"}),this.T$=0;else{var p=this.getCurrentTime();isNaN(p)||(z=this.S5(p)-z,p-=z,this.cq.KH("utcSeekingFallback",{source:"estimate",timeSeconds:p}),this.cq.seekTo(p,{VL:"utcSeekingFallback_estimate"}))}}; g.V.Lw=function(){this.T$=0}; g.V.Y=function(z){return this.Wq&&this.Wq.Y(z)};g.Y(pj,g.e);pj.prototype.start=function(){this.K.start()}; pj.prototype.stop=function(){this.K.stop()}; pj.prototype.clear=function(){for(var z=g.m(this.W.values()),p=z.next();!p.done;p=z.next())p.value.clear()}; pj.prototype.sample=function(){for(var z=g.m(this.D),p=z.next();!p.done;p=z.next()){var c=g.m(p.value);p=c.next().value;c=c.next().value;this.W.has(p)||this.W.set(p,new UtN(QJQ.has(p)));this.W.get(p).update(c())}this.K.start()}; var QJQ=new Set(["networkactivity"]);UtN.prototype.update=function(z){this.W?(this.buffer.add(z-this.N7||0),this.N7=z):this.buffer.add(z)}; UtN.prototype.clear=function(){this.buffer.clear();this.N7=0};H9.prototype.ge=function(){return this.started}; H9.prototype.start=function(){this.started=!0}; H9.prototype.reset=function(){this.finished=this.started=!1};var NtN=!1;g.Y(g.VI,g.JQ);g.V=g.VI.prototype;g.V.m0=function(){this.logger.debug("dispose");g.S9(this.KS);cAQ(this.mV);this.visibility.unsubscribe("visibilitystatechange",this.mV);XcN(this);XV(this);g.sr.YE(this.Up);this.Gk();this.Fj=null;g.Dm(this.videoData);g.Dm(this.Nz);g.Dm(this.eR);g.Dm(this.Do);g.tJ(this.M_H);this.z9=null;g.JQ.prototype.m0.call(this)}; g.V.IP=function(z,p,c,B,H){if(this.Wq.Y("html5_log_ad_playback_docid")){var T=this.S9();if(T.qoe){T=T.qoe;var b=this.Wq.MZ||"yt";g.hU(T,g.z8(T.provider),"ad_playback",[z,p,c,H,b])}}else this.S9().IP(z,p,c);this.Y("html5_log_media_perf_info")&&this.KH("adloudness",{ld:B.toFixed(3),cpn:z})}; g.V.N9=function(){var z;return(z=this.z$)==null?void 0:z.N9()}; g.V.Pb=function(){var z;return(z=this.z$)==null?void 0:z.Pb()}; g.V.uU=function(){var z;return(z=this.z$)==null?void 0:z.uU()}; g.V.wV=function(){var z;return(z=this.z$)==null?void 0:z.wV()}; g.V.ke=function(){return this.videoData.ke()}; g.V.Rm=function(){return this.Y("html5_not_reset_media_source")&&!this.ke()&&!this.videoData.isLivePlayback&&g.nT(this.videoData)&&!this.Wq.supportsGaplessShorts()}; g.V.F_=function(){if(this.videoData.S){var z;if(!(z=this.videoData.Xd)){var p;z=(p=this.Gl.dA())==null?void 0:p.N9()}this.videoData.Xd=z;if(!(z=this.videoData.tW)){var c;z=(c=this.Gl.dA())==null?void 0:c.Pb()}this.videoData.tW=z}if(bcS(this.videoData)||!Tg(this.videoData))c=this.videoData.errorDetail,this.OI(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),c,c,this.videoData.k8||void 0);this.Y("html5_generate_content_po_token")&&this.Gz();this.Y("html5_enable_d6de4")&&this.f1(); if(this.Y("html5_ssap_cleanup_player_switch_ad_player")||this.Y("html5_ssap_cleanup_ad_player_on_new_data"))if(c=this.Gl.CB())this.Lf=c.clientPlaybackNonce}; g.V.vx=function(){return this.H5}; g.V.Ai=function(){!this.bB||this.bB.qZ();this.bB=new g.C6(new yU(this.videoData,this.Wq,this));this.H5=new ly(this.Wq,this,this.bB)}; g.V.getVideoData=function(){return this.videoData}; g.V.N=function(){return this.Wq}; g.V.xz=function(z){return this.au.xz(this.Fj,z===void 0?!1:z)}; g.V.S9=function(z){if(z)a:{for(var p=this.H5,c=g.m(p.W.values()),B=c.next();!B.done;B=c.next())if(B=B.value,B.getVideoData().videoId===z){z=B;break a}z=p.K}else z=this.H5.S9();return z}; g.V.wC=function(){return this.visibility}; g.V.vI=function(){return this.mediaElement&&this.mediaElement.V6()?this.mediaElement.XQ():null}; g.V.h1=function(){return this.mediaElement}; g.V.Mx=function(){if(this.Y("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.N().V&&this.N().houseBrandUserStatus&&this.KH("hbut",{status:this.N().houseBrandUserStatus});if(this.videoData.NP())return!0;this.OI("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.V.VU=function(z){(z=z===void 0?!1:z)||g.pT(this.videoData)||en(this.S9());this.BI=z;!this.Mx()||this.E0.ge()?g.yi(this.Wq)&&this.videoData.isLivePlayback&&this.E0.ge()&&!this.E0.finished&&!this.BI&&this.p7():(this.E0.start(),z=this.S9(),g.z8(z.provider),z.qoe&&Twv(z.qoe),this.p7())}; g.V.p7=function(){if(this.videoData.isLoaded()){var z=this.Nz;g.P3(z.QI.experiments,"html5_player_min_build_cl")>0&&g.P3(z.QI.experiments,"html5_player_min_build_cl")>738194565&&xwB(z,"oldplayer");JVx(this)}else this.videoData.gC||this.videoData.Dp?this.BI&&g.yi(this.Wq)&&this.videoData.isLivePlayback||(this.videoData.gC?QPS(this.videoData):(z=this.S9(),z.qoe&&(z=z.qoe,ww(z,"protected"),z.provider.videoData.L?z.Gt():z.provider.videoData.subscribe("dataloaded",z.Gt,z)),IoY(this.videoData))):!this.videoData.loading&& this.tM&&xsY(this)}; g.V.Kh=function(z){this.gU=z;this.z$&&(gIB(this.z$,new g.p6(z)),this.KH("sdai",{sdsstm:1}))}; g.V.GV=function(z){this.aR=z;this.z$&&this.z$.GV(z)}; g.V.FO=cD(16);g.V.isFullscreen=function(){return this.visibility.isFullscreen()}; g.V.isBackground=function(){return this.visibility.isBackground()}; g.V.xP=function(){var z=this;this.logger.debug("Updating for format change");D1(this).then(function(){return bl(z)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.V.Rl=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.VU();this.Mx()&&!g.r(this.playerState,128)&&(this.W6.ge()||(this.W6.start(),this.videoData.v0?this.QL(xN(this.playerState,4)):this.QL(xN(xN(this.playerState,8),1))),EFY(this))}; g.V.WB=function(){return this.E0.finished}; g.V.sendAbandonmentPing=function(){g.r(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.yh(!0),XcN(this),g.sr.YE(this.Up))}; g.V.xx=function(z,p){z=z===void 0?!0:z;(p===void 0||p)&&this.mediaElement&&this.mediaElement.pause();this.QL(z?new g.D0(14):new g.D0)}; g.V.nx=function(){this.S9().XU()}; g.V.OI=function(z,p,c,B,H,T){this.logger.debug(function(){return"set player error: ec="+z+", detail="+H}); var b,D;g.dC(c5q,c)?b=c:c?D=c:b="GENERIC_WITHOUT_LINK";B=(B||"")+(";a6s."+mP());if(z==="auth"||z==="drm.auth"||z==="heartbeat.stop")c&&(B+=";r."+c.replaceAll(" ","_")),T&&(B+="sr."+T.replaceAll(" ","_"));p={errorCode:z,errorDetail:H,errorMessage:D||g.vc[b]||"",jx:b,k8:T||"",R$:B,lC:p,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=z;tI(this,"dataloaderror");this.QL(XQ(this.playerState,128,p));g.sr.YE(this.Up);XV(this);this.XW()}; g.V.tv=function(z){this.Xh=this.Xh.filter(function(p){return z!==p}); this.logger.debug(function(){return"set preroll ready for "+z}); g.pT(this.videoData)&&!this.PV()&&this.VS.u9("pl_pr");this.W6.ge()&&EFY(this)}; g.V.PV=function(){var z;(z=!!this.Xh.length)||(z=this.hn.W.array[0],z=!!z&&z.start<=-0x8000000000000);return z}; g.V.Hs=function(){return this.Yr.Hs()}; g.V.isPlaying=function(){return this.playerState.isPlaying()}; g.V.G5=function(){return this.playerState.G5()&&this.videoData.v0}; g.V.getPlayerState=function(){return this.playerState}; g.V.DC=function(z){var p;(p=this.z$)==null||p.DC(z)}; g.V.Mp=function(z){var p;(p=this.z$)==null||p.Mp(z)}; g.V.getPlayerType=function(){return this.playerType}; g.V.getPreferredQuality=function(){if(this.Fj){var z=this.Fj;z=z.videoData.Zb.compose(z.videoData.DE);z=qJ(z)}else z="auto";return z}; g.V.Bs=cD(22);g.V.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.V.setMediaElement=function(z){this.logger.debug("set media element");if(this.mediaElement&&z.XQ()===this.mediaElement.XQ()&&(z.isView()||this.mediaElement.isView())){if(z.isView()||!this.mediaElement.isView())this.N8(),this.mediaElement=z,this.mediaElement.cq=this,dsW(this),this.Yr.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Gk();if(!this.playerState.isError()){var p=EC(this.playerState,512);g.r(p,8)&&!g.r(p,2)&&(p=xN(p,1));z.isView()&&(p=EC(p,64));this.QL(p)}this.mediaElement= z;this.mediaElement.cq=this;!g.yi(this.Wq)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);dsW(this);this.Yr.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.Nz.mE()&&WsS(this.mediaElement)}}; g.V.Gk=function(z,p,c){z=z===void 0?!1:z;p=p===void 0?!1:p;c=c===void 0?!1:c;this.logger.debug("remove media element");if(this.mediaElement){var B=this.getCurrentTime();B>0&&(this.Yr.D=B);this.Yr.setMediaElement(null);!z&&this.Rm()?$sE(this):this.vH(c);this.z$&&(Up(this.z$),JI(this,p));this.mI.stop();if(this.mediaElement&&(!this.W6.ge()&&!this.If()||this.playerState.isError()||g.r(this.playerState,2)||this.QL(xN(this.playerState,512)),this.mediaElement)){this.N8();if(z||!this.mediaElement.isView())this.VS.Ph("mesv_s"), this.mediaElement.stopVideo(),Mt(this);this.mediaElement=this.mediaElement.cq=null}}}; g.V.playVideo=function(z,p){z=z===void 0?!1:z;p=p===void 0?!1:p;var c=this,B,H,T,b,D,t;return g.L(function(X){if(X.W==1){c.logger.debug("start play video");var x=window.google_image_requests;x&&x.length>10&&(window.google_image_requests=x.slice(-10));if(g.r(c.playerState,128))return X.return();if(c.Nz.k7())return c.publish("signatureexpired"),X.return();c.mediaElement&&en(c.S9());c.Rl();(g.r(c.playerState,64)||z)&&c.QL(xN(c.playerState,8));return c.W6.finished&&c.mediaElement?c.Fj||!c.MF?X.hD(2): g.a(X,c.MF,3):X.return()}if(X.W!=2&&g.r(c.playerState,128))return X.return();if(!c.videoData.D)return c.videoData.isLivePlayback&&!g.VB(c.Wq.L,!0)?(B="html5.unsupportedlive",H=2):(B=c.videoData.ke()?"fmt.unplayable":"fmt.noneavailable",H=1),g.oc(Error("selectableFormats")),c.OI(B,H,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),X.return();if(c.td()&&c.videoData.D.W)return c.logger.debug("rebuild playbackData for airplay"),X.return(D1(c));if(G8(c))x=c.Yr,m9(x.videoData)?!x.isAtLiveHead(x.getCurrentTime())&& x.Hs()&&x.cq.seekTo(Infinity,{VL:"seektimeline_peggedToLive",seekSource:34}):g.pT(x.videoData)&&x.getCurrentTime()b;b=p.Y("html5_dont_save_under_1080")&&b<1080;if(!H||!T&&!b){var D;H=PpV(p,(D=B.W)==null?void 0:D.videoInfos);D=p.cq.getPlaybackRate();D>1&&H&&(D=CBS(p.Wq.L,B.W.videoInfos,D),z.W!==0&&D=480;if(p.Y("html5_exponential_memory_for_sticky")){t=p.Wq.vO;X=1;var x=x===void 0?!1:x;zmu(t,"sticky-lifetime");t.values["sticky-lifetime"]&&t.Vo["sticky-lifetime"]||(t.values["sticky-lifetime"]=0,t.Vo["sticky-lifetime"]=0);x&&a6(t,"sticky-lifetime")>.0625&&(X=t.Vo["sticky-lifetime"]*2);t.values["sticky-lifetime"]+=1*Math.pow(2, t.W/X);t.Vo["sticky-lifetime"]=X;t.X.start()}if(p.Y("html5_perf_cap_override_sticky")){x=p.D;t=p.Y("html5_perserve_av1_perf_cap");t=t===void 0?!1:t;if(t===void 0?0:t){X=UZ();p=g.m(Object.keys(X));for(z=p.next();!z.done;z=p.next())z=z.value,z.indexOf("1")!==0&&delete X[z];g.Iw("yt-player-performance-cap",X,2592E3)}else g.ow("yt-player-performance-cap");CGY(t);if(t){t=g.m(C5.keys());for(X=t.next();!X.done;X=t.next())X=X.value,X.startsWith("1")||C5.delete(X);t=g.m(En.values());for(X=t.next();!X.done;X= t.next())X=X.value,X.startsWith("1")||En.delete(X);t=g.m(x.keys());for(X=t.next();!X.done;X=t.next())X=X.value,X.startsWith("1")||x.delete(X)}else C5.clear(),En.clear(),x.clear()}}}this.z$&&(x=this.z$,c=c||"",x.policy.W?zH(x.K.W,c):zH(x.W.L,c));this.gX()}; g.V.getUserPlaybackQualityPreference=function(){return this.videoData.D&&!this.videoData.D.W?qJ(this.videoData.Zb):EJ[Qg()]}; g.V.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.V.setUserAudio51Preference=function(z,p){this.getUserAudio51Preference()!==z&&(this.KH("toggle51",{pref:z}),g.Iw("yt-player-audio51",z,p?31536E3:2592E3),this.xP())}; g.V.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.V.setProximaLatencyPreference=function(z){var p=this.getProximaLatencyPreference();this.KH("proxima",{pref:z});g.Iw("yt-player-proxima-pref",z,31536E3);p!==z&&(z=this.Yr,z.CH=!0,z.cq.seekTo(Infinity,{VL:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.V.getProximaLatencyPreference=function(){var z;return(z=rU())!=null?z:0}; g.V.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.V.Gz=function(){this.videoData.videoId?this.Gl.Gz(this.videoData):this.KH("povid",{})}; g.V.f1=function(){this.videoData.videoId?this.Gl.f1(this.videoData):this.KH("piavid",{})}; g.V.gX=function(){if(!this.qZ()&&!g.r(this.playerState,128)&&this.videoData.D){if(this.videoData.D.W)TL(this);else{var z=qt(this),p=this.videoData;a:{var c=this.videoData.t1;if(z.W){for(var B=g.m(c),H=B.next();!H.done;H=B.next()){H=H.value;var T=H.getInfo(),b=g.rB[T.video.quality];if((!z.D||T.video.quality!=="auto")&&b<=z.W){c=H;break a}}c=c[c.length-1]}else c=c[0]}p.UH=c;PQu(this,z.reason,CQE(this,this.videoData.UH))}if(this.Y("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Yr.S= !1,this.playVideo()}}; g.V.Bd=function(z,p){if(this.qZ()||g.r(this.playerState,128))return!1;var c,B=!((c=this.videoData.D)==null||!c.W);c=B&&p?this.getCurrentTime()-this.e_():NaN;if(this.Wq.experiments.JD("html5_record_audio_format_intent")){var H=this.S9();if(H.qoe){H=H.qoe;var T=[z.bQ.id,isNaN(c)?"m":"t"];g.hU(H,g.z8(H.provider),"afi",T)}}if(B)return p&&(B=WxY(this.Yr),this.KH("aswh",{id:z.id,xtags:z.xtags,bh:B.toFixed(3)})),this.z$.setAudioTrack(z,c,p),!0;if(On_(this)){a:{p=this.mediaElement.audioTracks();for(B=0;B< p.length;++B)if(c=p[B],c.label===z.bQ.getName()){if(c.enabled){p=!1;break a}p=c.enabled=!0;break a}p=void 0}p&&this.KH("hlsaudio",{id:z.id})}else{a:if(p=this.videoData,p.X&&!im(p.X)||z===p.RP||!p.t1||p.t1.length<=0)p=!1;else{B=g.m(p.t1);for(c=B.next();!c.done;c=B.next()){c=c.value;if(!(c instanceof Mb)){p=!1;break a}H=z.bQ.getId();c.K&&(wTf(c.K,H),c.j9=null)}p.RP=z;p=!0}p&&bl(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.KH("hlsaudio",{id:z.id}))}return!0}; g.V.getAvailableAudioTracks=function(){return g.pT(this.videoData)&&this.aR?i1i(this.aR).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.V.getAudioTrack=function(){if(On_(this)){var z=R3Y(this);if(z)return z}return this.videoData.getAudioTrack()}; g.V.Wh=function(){if(this.videoData.Y("html5_trigger_loader_when_idle_network")&&!this.videoData.La()&&Ee(this.videoData)){var z;(z=this.z$)!=null&&z.uZ()}}; g.V.hQ=function(){if(ta(this.videoData)&&this.videoData.Y("html5_gapless_append_early")){var z;(z=this.z$)!=null&&z.uZ()}}; g.V.n8=function(z){z=z===void 0?!1:z;if(this.z$){var p=this.z$,c=p.n8;var B=this.videoData;B=B.Y("html5_ssdai_use_post_for_media")&&B.enableServerStitchedDai?!1:ha(B)&&B.Mn&&!B.isAd();c.call(p,B,z)}}; g.V.vH=function(z){z=z===void 0?!1:z;this.G$&&(this.logger.debug("remove media source"),d6u(this.G$),this.n8(z),this.G$.dispose(),this.G$=null)}; g.V.H0=function(){return this.G$}; g.V.Ej=function(z,p,c,B){function H(b){try{Znv(T,b,p,c)}catch(D){g.oc(D),T.handleError(new W2("fmt.unplayable",{msi:"1",ename:D&&typeof D==="object"&&"name"in D?String(D.name):void 0},1))}} var T=this;p=p===void 0?!1:p;c=c===void 0?!1:c;usS(this,B===void 0?!1:B);this.G$=z;this.Rm()&&pg(this.G$)==="open"?H(this.G$):KsY(this.G$,H)}; g.V.D6=function(z){this.logger.debug("onNeedKeyInfo");this.pG.set(z.initData,z);this.sR&&(this.sR.D6(z),this.Y("html5_eme_loader_sync")||this.pG.remove(z.initData))}; g.V.Bz=function(z){this.videoData.c_=g.tP("auto",z,!1,"u");TL(this)}; g.V.SI=function(z){var p=z.reason,c=z.W.info,B=z.token,H=z.videoId,T=this.S9(H),b=g.pT(this.videoData)?T.getVideoData():this.videoData;if(c!==b.X){var D=!b.X;b.X=c;p!=="m"&&p!=="t"&&(p=D?"i":"a");var t=p==="m"||p==="t";this.Wq.experiments.JD("html5_refactor_sabr_audio_format_selection_logging")?this.Xb=new JAx(b,c,p,"",B,H):(p=new JAx(b,c,p,"",B),T.qoe&&(T=T.qoe,c=g.z8(T.provider),GzY(T,c,p)));this.publish("internalaudioformatchange",b,!D&&t)}this.Yr.SI(z.W.index)}; g.V.Bv=function(z){this.publish("localmediachange",z)}; g.V.yQ=function(z){z=z===void 0?{}:z;var p;(p=this.z$)==null||p.yQ(this.Wq,xI(this.videoData),z)}; g.V.k7=function(){return this.Nz.k7()}; g.V.qG=function(z){this.ZP(new W2("staleconfig",{reason:z}))}; g.V.handleError=function(z){this.Nz.handleError(z)}; g.V.mE=function(){return this.Nz.mE()}; g.V.HI=function(z){this.Yr.HI(z)}; g.V.hv=function(z,p,c){z=z===void 0?!1:z;p=p===void 0?!1:p;c=c===void 0?!1:c;var B=this,H,T,b;return g.L(function(D){if(D.W==1){B.z$&&B.z$.rG();B.z$&&B.z$.qZ()&&XV(B);if(B.Y("html5_enable_vp9_fairplay")&&B.ke()&&(H=B.videoData.W)!=null)for(var t in H.W)H.W.hasOwnProperty(t)&&(H.W[t].W=null,H.W[t].D=!1);B.QL(xN(B.playerState,2048));B.Y("html5_ssap_keep_media_on_finish_segment")&&g.pT(B.videoData)?B.publish("newelementrequired",c):B.publish("newelementrequired");return z?g.a(D,D1(B),2):D.hD(2)}B.videoData.La()&& ((T=B.z$)==null?0:T.tD)&&!G8(B)&&((b=B.isAtLiveHead())&&m9(B.videoData)?B.seekTo(Infinity,{VL:"videoPlayer_getNewElement"}):B.videoData.iZ&&B.z$&&(t=B.z$,t.xA.La&&(t.xA.iZ||t.xA.X||t.xA.isPremiere?(t.seek(0,{VL:"loader_resetSqless"}),t.videoTrack.G=!0,t.audioTrack.G=!0,t.videoTrack.L=!0,t.audioTrack.L=!0):dm(t.xA)&&pv(t))));p&&B.seekTo(0,{seekSource:105});g.r(B.playerState,8)&&(B.Y("html5_ssap_keep_media_on_finish_segment")&&g.pT(B.videoData)?B.playVideo(!1,c):B.playVideo());g.Ai(D)})}; g.V.uw=function(z){this.KH("hgte",{ne:+z});this.videoData.S=!1;z&&this.hv();this.z$&&Pri(this.z$)}; g.V.eT=function(z){this.KH("newelem",{r:z});this.hv()}; g.V.pauseVideo=function(z){z=z===void 0?!1:z;if((g.r(this.playerState,64)||g.r(this.playerState,2))&&!z)if(g.r(this.playerState,8))this.QL(qP(this.playerState,4,8));else if(this.G5())bl(this);else return;g.r(this.playerState,128)||(z?this.QL(xN(this.playerState,256)):this.QL(qP(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.yN(this.videoData)&&this.z$&&JI(this,!1)}; g.V.stopVideo=function(){this.pauseVideo();this.z$&&(JI(this,!1),this.z$.Z_())}; g.V.XW=function(z,p){z=z===void 0?!1:z;p=p===void 0?!1:p;if(this.Rm()&&p){var c;(c=this.mediaElement)==null||c.XW()}else{var B;(B=this.mediaElement)==null||B.stopVideo()}Mt(this);XV(this);g.r(this.playerState,128)||(z?this.QL(EC(EC(xN(this.playerState,4),8),16)):this.QL(XQ(this.playerState)));this.videoData.videoId&&this.Wq.YA.remove(this.videoData.videoId)}; g.V.seekTo=function(z,p){p=p===void 0?{}:p;this.logger.debug(function(){return"SeekTo "+z+", "+JSON.stringify(p)}); g.r(this.playerState,2)&&bl(this);p.p6i&&this.QL(xN(this.playerState,2048));p.seekSource!==58&&p.seekSource!==60||!this.Y("html5_update_vss_during_gapless_seeking")||rUf(this.S9(),p.seekSource);this.Yr.seekTo(z,p);this.hn.sync()}; g.V.Vk=function(z){this.VS.X.K=(0,g.y2)();g.r(this.playerState,32)||(this.QL(xN(this.playerState,32,z==null?void 0:z.seekSource)),g.r(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.xr()}; g.V.Z8=function(z){z=z==null?void 0:z.seekSource;g.r(this.playerState,32)?(this.QL(qP(this.playerState,16,32,z)),this.publish("endseeking")):g.r(this.playerState,2)||this.QL(xN(this.playerState,16,z));z=this.VS.X;var p=this.videoData,c=this.playerState.isPaused();if(p.clientPlaybackNonce&&!isNaN(z.W)){if(Math.random()<.01){c=c?"pbp":"pbs";var B={startTime:z.W};p.V&&(B.cttAuthInfo={token:p.V,videoId:p.videoId});Gl("seek",B);g.gO({clientPlaybackNonce:p.clientPlaybackNonce},"seek");isNaN(z.K)||kw("pl_ss", z.K,"seek");kw(c,(0,g.y2)(),"seek")}z.reset()}}; g.V.Yv=function(z){this.Z8(z)}; g.V.pY=function(){this.publish("SEEK_COMPLETE")}; g.V.Ny=function(z){var p=this.Gl,c=this.videoData.clientPlaybackNonce,B=this.playerType;if(z.scope===4){var H=z.type;if(H){var T=p.cM(),b=T.getVideoData().clientPlaybackNonce;B===1&&(b=c);(p=dYN(p,b))?(c=p.getVideoData())&&(z.writePolicy===2&&c.sabrContextUpdates.has(H)||c.sabrContextUpdates.set(H,z)):T.KH("scuset",{ncpf:"1",ccpn:b,crcpn:c})}else g.oc(Error("b/380308491: contextUpdateType is undefined"))}}; g.V.gV=function(){if(this.playerType===2)return this.Gl.gV("")}; g.V.getCurrentTime=function(){return this.Yr.getCurrentTime()}; g.V.p6=function(){return this.Yr.p6()}; g.V.pN=function(){return this.Yr.pN()}; g.V.qr=function(z){return this.aR&&(z=z||this.aR.AA())?py(this.aR,z):this.pN()}; g.V.ww=function(){return this.Yr.ww()}; g.V.getPlaylistSequenceForTime=function(z){return this.videoData.getPlaylistSequenceForTime(z-this.e_())}; g.V.n9=function(){var z=NaN;this.mediaElement&&(z=this.mediaElement.n9());return z>=0?z:this.getCurrentTime()}; g.V.S5=function(){var z;return((z=this.videoData.W)==null?0:z.S5)?this.videoData.W.S5(this.getCurrentTime()-this.e_()):this.mediaElement&&(z=this.mediaElement.XF())&&(z=z.getTime(),!isNaN(z))?z/1E3+this.getCurrentTime():NaN}; g.V.getDuration=function(z){return g.pT(this.videoData)&&this.aR?z?H1E(this.aR,z):rE(this.aR):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.e_():this.Yb()?this.Yb():0}; g.V.rb=function(){var z=new NwW;if(this.z$){var p=this.Wq.schedule,c=this.Wq.OW();c=c===void 0?!1:c;z.r5=p.tD;z.J6=p.i8;z.bandwidthEstimate=Km(p);if(c){c=(p.S.Fu()*1E3).toFixed();var B=(p.Ra.Fu()*1E3).toFixed(),H=R6(p).toFixed(2),T=((p.G.Fu()||0)*1E9).toFixed(2),b=p.D.Fu().toFixed(0),D=p.YA.Fu().toFixed(0),t=p.U.percentile(.5).toFixed(2),X=p.U.percentile(.92).toFixed(2),x=p.U.percentile(.96).toFixed(2),E=p.U.percentile(.98).toFixed(2);p.W?p.W.reset():p.W=new JN;p.W.add(p.T$);p.W.add(p.interruptions.length); for(var q=0,J=p.interruptions.length-1;J>=0;J--){var M=p.interruptions[J];p.W.add(M-q);q=M}q=0;for(J=p.X.length-1;J>=0;J--){M=p.X[J];var P=M.stamp/36E5;p.W.add(P-q);q=P;p.W.add(M.net/1E3);p.W.add(M.max)}p=p.W.M_();z.W={ttr:c,ttm:B,d:H,st:T,bw:b,abw:D,v50:t,v92:X,v96:x,v98:E,"int":p}}kzi(this.z$,z)}else this.mediaElement&&(z.Uc=TC(this.mediaElement));z.r5=this.r5;z.J6=this.J6;z.D=this.isAtLiveHead()&&this.isPlaying()?DsW(this):NaN;return z}; g.V.LU=function(z,p){this.J6+=z;this.r5+=p}; g.V.f6=function(){return this.mediaElement?g.yN(this.videoData)?1:CT(this.videoData)?this.isAtLiveHead()||this.Hs()?1:this.Yr.f6():this.mediaElement.f6():0}; g.V.Kz=function(){var z=this.V$,p=B9(z,"bandwidth"),c=B9(z,"bufferhealth"),B=B9(z,"livelatency"),H=B9(z,"networkactivity"),T=c9(z,"bandwidth"),b=c9(z,"bufferhealth"),D=c9(z,"livelatency");z=c9(z,"networkactivity");var t=this.Bx(),X=t.droppedVideoFrames;t=t.totalVideoFrames;var x=this.getCurrentTime();if(this.sR){var E="IT/"+(this.sR.W.getInfo()+"/"+qJ(this.L6()));E+="/"+this.sR.getInfo()}else E="";var q=this.isGapless(),J=this.pD(),M=this.Ib(),P=g.EH(this),O=this.getPlayerState(),R=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var K=0;var Z="";if(this.gU){if(this.gU.Cs){Z="D,";break a}K=this.gU.dV();Z=this.gU.AA().substring(0,4)}else this.aR&&(K=this.aR.dV(),Z=this.aR.AA().substring(0,4));K>0?(K="AD"+K+", ",Z&&(K+=Z+", "),Z=K):Z=""}return{iM:T,XI:b,currentTime:x,NN:E,droppedVideoFrames:X,isGapless:q,pD:J,SZ:M,w8:p,Z4:c,Nu:B,Pa:H,A0:D,q$:z,fX:P,playerState:O,d_:R,rW:Z,totalVideoFrames:t}}; g.V.kt=function(z){var p={};if(z===void 0?0:z){Object.assign(p,this.S9().kt());this.mediaElement&&(Object.assign(p,this.mediaElement.kt()),Object.assign(p,this.Bx()));this.z$&&Object.assign(p,this.z$.kt());this.sR&&(p.drm=JSON.stringify(this.sR.kt()));p.state=this.playerState.state.toString(16);g.r(this.playerState,128)&&(p.debug_error=JSON.stringify(this.playerState.DN));this.PV()&&(p.prerolls=this.Xh.join(","));this.videoData.Lv&&(p.ismb=this.videoData.Lv);this.videoData.latencyClass!=="UNKNOWN"&& (p.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(p.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)p.is_mosaic=1;this.videoData.cotn&&(p.is_offline=1,p.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(p.playerResponseCpn=this.videoData.playerResponseCpn);this.Gl.isOrchestrationLeader()&&(p.leader=1);this.videoData.isLivePlayback&&(this.videoData.W&& u2(this.videoData.W)&&(p.segduration=u2(this.videoData.W)),z=this.Yr,p.lat=z.G?ERS(z.G.X):0,p.liveutcstart=this.videoData.liveUtcStartSeconds);p.relative_loudness=this.videoData.e1.toFixed(3);if(z=g.EH(this))p.optimal_format=z.video.qualityLabel;p.user_qual=Qg();p.release_version="youtube.player.web_20250318_01_RC00";g.pT(this.videoData)&&this.aR&&(p.ssap=Ha(this.aR))}p.debug_videoId=this.videoData.videoId;return p}; g.V.addCueRange=function(z){this.kp([z])}; g.V.removeCueRange=function(z){this.hn.tA([z])}; g.V.NK=function(){this.hn.sync()}; g.V.XE=function(z,p){return this.hn.XE(z,p)}; g.V.kp=function(z,p){this.hn.KN(z,p)}; g.V.q2=function(z){this.hn.tA(z)}; g.V.oW=function(z){var p=this.hn;z.length<=0||p.qZ()||(z=p.W,z.array.sort(z.W))}; g.V.Vm=function(){return this.hn.Vm()||[]}; g.V.GQ=function(){return this.Uk}; g.V.td=function(){return this.visibility.td()}; g.V.SP=function(){this.mediaElement&&this.mediaElement.SP()}; g.V.WVA=function(){tI(this)}; g.V.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.V.N8=function(){g.CG(this.oy)}; g.V.cP=function(){this.xr();this.publish("onLoadProgress",this.f6())}; g.V.Ii=function(z){var p=z.target.vQ();if(this.mediaElement&&this.mediaElement.vQ()&&this.mediaElement.vQ()===p){nFS(this,z.type);switch(z.type){case "error":var c=VD(this.mediaElement)||"",B=this.mediaElement.Tg();if(c==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.KH("capchg",{msg:B}),this.hv(!0)):D1(this);return}if(this.mediaElement.hasError()&&(VHf(this.Nz,c,{msg:B})||g.pT(this.videoData)&&this.aR&&(B=this.playerState.DN,this.aR.handleError(c,B==null?void 0:B.lC))))return; if(this.isBackground()&&this.mediaElement.bz()===4){this.XW();xR(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.G$||c>0)&&c!==1&&this.pQ(c);break;case "ratechange":this.z$&&this.z$.setPlaybackRate(this.mediaElement.getPlaybackRate());bju(this.hn);this.S9().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":rVx(this);this.publish("onLoadedMetadata");yV_(this);c=this.S5();this.videoData.ao&&(this.videoData.ao=c);break; case "loadstart":yV_(this);break;case "progress":case "suspend":g.P3(this.Wq.experiments,"html5_progress_event_throttle_ms")>0?this.KX.D1():this.cP();break;case "playing":this.VS.Ph("plev");this.Ox&&!G8(this)&&(this.Ox=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{VL:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();B=this.mediaElement&&this.mediaElement.YG()===0;if(c&&(!this.Tm||B))return; this.Tm=this.Tm||!!this.mediaElement.getCurrentTime();WLu(this);this.xr();if(!this.mediaElement||this.mediaElement.vQ()!==p)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.Y7().length>0&&this.mediaElement.zO().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.z$)return;this.Y("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.YG()>2||!this.mediaElement.isSeeking()&& Jw(this.mediaElement.zO(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.kt(),c.bh=TC(this.mediaElement).toFixed(3),this.KH("uwe",c));g.pT(this.videoData)&&this.aR&&GAS(this.aR,this.mediaElement.getCurrentTime());break;case "resize":rVx(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.o1&&g.r(this.playerState,8)&&!g.r(this.playerState,1024)&&this.getCurrentTime()===0&&g.$U){xR(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.vQ()===p){nR_(this.Yr,z,this.aR||void 0);this.publish("videoelementevent",z);p=this.playerState;B=this.Td;var H=this.mediaElement,T=this.Wq.experiments;c=this.videoData.clientPlaybackNonce;var b=g.pT(this.videoData)&&this.aR?rE(this.aR):void 0;if(!g.r(p,128)){var D=p.state;H=H?H:z.target;var t=H.getCurrentTime();if(!g.r(p,64)||z.type!=="ended"&&z.type!=="pause"){b=b||H.getDuration();b=H.isEnded()||t>1&&Math.abs(t-b)<1.1;var X=z.type==="pause"&&H.isEnded(); t=z.type==="ended"||z.type==="waiting"||z.type==="timeupdate"&&!g.r(p,4)&&!II(B,t);if(X||b&&t)H.w7()>0&&H.vQ()&&(D=14);else switch(z.type){case "error":VD(H)&&(D|=128);break;case "pause":g.r(p,256)?(D^=256)||(D=64):g.r(p,32)||g.r(p,2)||g.r(p,4)||(D=4,g.r(p,1)&&g.r(p,8)&&(D|=1));break;case "playing":T=D;D=(D|8)&-1093;T&4?(D|=1,tO(B,H,!0)):II(B,H.getCurrentTime())&&(D&=-2);g.r(p,1)&&tO(B,H)&&(D|=1);break;case "seeking":D|=16;g.r(p,8)&&(D|=1);D&=-3;break;case "seeked":D&=-17;tO(B,H,!0);break;case "waiting":g.r(p, 2)||(D|=1);tO(B,H);break;case "timeupdate":T=g.r(p,16);t=g.r(p,4);(g.r(p,8)||T)&&!t&&II(B,H.getCurrentTime())&&(D=8);tO(B,H)&&(D|=1);break;case "progress":case "suspend":T.JD("html5_track_underruns_on_progress")&&tO(B,H)}}B=D;D=null;B&128&&(D=z.target,H=VD(D),T=1,H?(H==="capability.changed"&&(T=2),t="GENERIC_WITHOUT_LINK",b=D.kt(),b.mediaElem="1",/AUDIO_RENDERER/.test(D.Tg())&&(t="HTML5_AUDIO_RENDERER_ERROR"),D={errorCode:H,errorMessage:g.vc[t]||"",jx:t,R$:dB(b),lC:T,cpn:p.DN?p.DN.cpn:""}):D=null, D&&(D.cpn=c));p=XQ(p,B,D)}!g.r(this.playerState,1)&&g.r(p,1)&&oFD(this,"evt"+z.type);this.QL(p)}}}; g.V.FBp=function(z){z=z.W.availability==="available";z!==this.Uk&&(this.Uk=z,this.publish("airplayavailabilitychange"))}; g.V.Xyp=function(){var z=(0,g.y2)(),p=this.mediaElement.td();this.KH("airplay",{ia:p});!p&&!isNaN(this.o7)&&z-this.o7<2E3||(this.o7=z,p!==this.td()&&(z=this.visibility,z.W!==p&&(z.W=p,z.mV()),this.KH("airplay",{rbld:p}),this.xP()),this.publish("airplayactivechange"))}; g.V.Lj=function(z){if(this.z$){var p=this.z$,c=p.X,B=p.getCurrentTime(),H=Date.now()-c.U;c.U=NaN;c.KH("sdai",{adfetchdone:z,d:H});z&&!isNaN(c.G)&&c.K!==3&&QF(c.z$,B,c.G,c.V);c.policy.L?c.L=NaN:c.X=NaN;o3(c,4,c.K===3?"adfps":"adf");Up(p)}}; g.V.im=function(){g.S9(this.KS);this.mI.stop();this.videoData.T$=!0;this.Wq.ev=!0;this.Wq.gt=0;var z=this.Nz;if(z.videoData.K){var p=z.QI.L,c=z.videoData.K.yI;p.K.has(c)&&(p.K.delete(c),D8(p))}z.W.stop();this.VV();g.r(this.playerState,8)&&this.QL(EC(this.playerState,65));this.BI=!1;QIS(this.S9());g.H4(this.eR);this.publish("playbackstarted");(z=g.n_("yt.scheduler.instance.clearPriorityThreshold"))?z():Dg(0,0)}; g.V.VV=function(){var z=this.Gl.CB(),p={},c={};!NZ("pbs",this.VS.timerName)&&le.measure&&le.getEntriesByName&&(le.getEntriesByName("mark_nr")[0]?fJQ("mark_nr"):fJQ());z.videoId&&(p.videoId=z.videoId);z.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&&(p.clientPlaybackNonce=z.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(c.isPausedOnLoad=!0);c.itag=z.K?Number(z.K.itag):-1;z.JH&&(c.preloadType=String(this.Hp?2:1));p.liveStreamMode=y59[ur(z)];p.playerInfo=c;this.VS.infoGel(p); if(this.z$){z=this.z$.timing;window&&window.performance&&window.performance.getEntriesByName&&(z.D&&(p=window.performance.getEntriesByName(z.D),p.length&&(p=p[0],z.tick("vri",p.fetchStart),z.tick("vdns",p.domainLookupEnd),z.tick("vreq",p.requestStart),z.tick("vrc",p.responseEnd))),z.K&&(p=window.performance.getEntriesByName(z.K),p.length&&(p=p[0],z.tick("ari",p.fetchStart),z.tick("adns",p.domainLookupEnd),z.tick("areq",p.requestStart),z.tick("arc",p.responseEnd))));z=z.ticks;for(var B in z)z.hasOwnProperty(B)&& this.VS.tick(B,z[B])}}; g.V.fU=function(z,p,c){z=(z+(this.lj===3?.3:0))/p;p=Math.floor(z*4);p>this.lj&&(this.KH("vpq",{q:p,cpn:c||this.videoData.clientPlaybackNonce,ratio:z.toFixed(3)}),this.lj=p)}; g.V.Oz=function(){this.lj=-1}; g.V.xr=function(z){var p=this;z=z===void 0?!1:z;if(this.mediaElement&&this.videoData){yIu(this.Yr,this.isPlaying());var c=this.getCurrentTime();!this.z$||g.r(this.playerState,4)&&g.yN(this.videoData)||g.r(this.playerState,32)&&Ee(this.videoData)||zhi(this.z$,c);this.Y("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.fU(c,this.videoData.lengthSeconds);c>5&&(this.Yr.D=c);var B=g.V2();B?g.sr.YE(this.Up):g.Rf(this.Up);var H=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!H||bg(this.videoData))&& !g.r(this.playerState,128)){var T=function(){if(p.mediaElement&&!g.r(p.playerState,128)){p.Wq.OW()&&nFS(p,"pfx");var b=p.getCurrentTime();p.Y("html5_buffer_underrun_transition_fix")&&(b-=p.e_());var D=TC(p.mediaElement),t=g.r(p.playerState,8),X=II(p.Td,b),x=IaB(p.Td,b,(0,g.y2)(),D);t&&X?p.QL(EC(p.playerState,1)):t&&x?(t=p.getDuration(),X=m9(p.videoData),t&&Math.abs(t-b)<1.1?(p.KH("setended",{ct:b,bh:D,dur:t,live:X}),p.mediaElement.XO()?(p.logger.debug("seek to 0 because of looping"),p.seekTo(0,{VL:"videoplayer_loop", seekSource:37})):p.xx()):(p.playerState.isBuffering()||oFD(p,"progress_fix"),p.QL(xN(p.playerState,1)))):(t&&!X&&!x&&b>0&&(t=(Date.now()-p.jl)/1E3,X=p.getDuration(),b>X-1&&p.KH("misspg",{t:b.toFixed(2),d:X.toFixed(2),r:t.toFixed(2),bh:D.toFixed(2)})),p.playerState.isPaused()&&p.playerState.isBuffering()&&TC(p.mediaElement)>5&&p.QL(EC(p.playerState,1)));p.xr()}}; this.mediaElement.Y7().length===0?this.Up=B?g.sr.lY(T,100):g.O0(T,100):this.Up=B?g.sr.lY(T,500):g.O0(T,500)}this.videoData.NZ=c;this.aR&&this.aR.v6();!z&&this.isPlaying()&&e3u(this);ZvY(this.au,this.Fj,this.h1(),this.isBackground())&&TL(this);this.publish("progresssync",z);H&&bg(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.V.vAI=function(){this.OI("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.V.Ib=function(){return this.S9().Ib()}; g.V.GB=function(){return this.z$?this.z$.GB():Km(this.Wq.schedule,!0)}; g.V.QL=function(z){if(!g.JO(this.playerState,z)){this.logger.debug(function(){return"Setting state "+z.toString()}); var p=new g.Ab(z,this.playerState);this.playerState=z;Q0S(this);var c=!this.DU.length;this.DU.push(p);var B=this.mediaElement&&this.mediaElement.isSeeking();B=p.oldState.state===8&&!B;g.wn(p,1)&&B&&g.r(this.playerState,8)&&!g.r(this.playerState,64)&&this.z$&&(hMv(this.z$),this.mediaElement&&TC(this.mediaElement)>=5&&uNY(this.au,this.Fj)&&TL(this));(B=g.P3(this.Wq.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.r(z,1)&&(g.r(z,8)||g.r(z,16))?this.J2.start(B):this.J2.stop();(Ou(p,8)<0|| g.wn(p,1024))&&this.mI.stop();!g.wn(p,8)||this.videoData.T$||g.r(p.state,1024)||this.mI.start();g.r(p.state,8)&&Ou(p,16)<0&&!g.r(p.state,32)&&!g.r(p.state,2)&&this.playVideo();g.r(p.state,2)&&CT(this.videoData)&&(this.pQ(this.getCurrentTime()),this.xr(!0));g.wn(p,2)&&(this.yh(!0),this.Wq.OW()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&Ee(this.videoData)&&this.videoData.W&&(B={minst:""+this.videoData.W.Fh,cminst:""+(this.videoData.W.pB()+this.e_()),maxst:""+this.videoData.W.f3, hts:""+this.videoData.W.Dt,cmaxst:""+(this.videoData.W.Yb()+this.e_())},this.KH("sabrSeekableBoundaries",B)));g.wn(p,128)&&this.XW();this.videoData.W&&this.videoData.isLivePlayback&&!this.yz&&(Ou(p,8)<0?TVY(this.videoData.W):g.wn(p,8)&&this.videoData.W.resume());dtV(this.Yr,p);UNY(this.S9(),p);if(c&&!this.qZ())try{for(var H=g.m(this.DU),T=H.next();!T.done;T=H.next()){var b=T.value;VsE(this.hn,b);this.publish("statechange",b)}}finally{this.DU.length=0}}}; g.V.fY=function(){this.VS.tick("qoes")}; g.V.Ly=function(){this.Yr.Ly()}; g.V.Gm=function(z,p,c,B){a:{var H=this.Nz;B=B===void 0?"LICENSE":B;c=c.substring(0,256);var T=yn(p);z==="drm.keyerror"&&this.sR&&this.sR.K.keys.length>1&&H.X<96&&(z="drm.sessionlimitexhausted",T=!1);var b=H.QI.experiments.JD("html5_retry_on_drm_unavailable"),D=H.QI.experiments.JD("html5_retry_on_drm_key_error"),t=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(b&&z==="drm.unavailable"||D&&z==="drm.keyerror"&&!c.match(t))H.ZP("qoe.restart",{retryOnDrmError:1,e:z,detail:c}),H.cq.hv(!0);else{if(T)if(H.videoData.K&& H.videoData.K.video.isHdr())qpE(H,z);else{if(H.cq.OI(z,p,B,c),ivV(H,{detail:c}))break a}else H.ZP(z,{detail:c});z==="drm.sessionlimitexhausted"&&(H.KH("retrydrm",{sessionLimitExhausted:1}),H.X++,FLQ(H.cq))}}}; g.V.ErD=function(){var z=this,p=g.P3(this.Wq.experiments,"html5_license_constraint_delay"),c=bL();p&&c?(p=new g.B4(function(){z.gX();tI(z)},p),g.l(this,p),p.start()):(this.gX(),tI(this))}; g.V.ag=function(z){this.publish("heartbeatparams",z)}; g.V.MD=function(z){this.KH("keystatuses",u7_(z));var p="auto",c=!1;this.videoData.K&&(p=this.videoData.K.video.quality,c=this.videoData.K.video.isHdr());a:{switch(p){case "highres":case "hd2880":p="UHD2";break;case "hd2160":case "hd1440":p="UHD1";break;case "hd1080":case "hd720":p="HD";break;case "large":case "medium":case "small":case "light":case "tiny":p="SD";break;default:p="";break a}c&&(p+="HDR")}p=T8(z)?by(z,p):z.X.includes(p);this.Y("html5_enable_sabr_drm_hd720p")&&(this.videoData.qO=z.qO); if(this.Y("html5_enable_vp9_fairplay")){if(c)if(z.G){var B;if((B=this.sR)==null?0:Qr(B.W))if((c=this.sR)==null)c=0;else{for(var H=B=void 0,T=g.m(c.K.values()),b=T.next();!b.done;b=T.next())b=b.value,B||(B=ZPW(b,"SD")),H||(H=ZPW(b,"AUDIO"));c.Yw({sd:B,audio:H});c=B==="output-restricted"||H==="output-restricted"}else c=!p;if(c){this.KH("drm",{dshdr:1});qpE(this.Nz);return}}else{this.videoData.lV||(this.videoData.lV=!0,this.KH("drm",{dphdr:1}),this.hv(!0));return}var D;if((D=this.sR)==null?0:Qr(D.W))return}else if(D= z.G&&p,c&&!D){qpE(this.Nz);return}p||by(z,"AUDIO")&&by(z,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),z=u7_(z),this.r6?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.OI("drm.keyerror",2,void 0,"info."+z)):(this.r6=!0,this.ZP(new W2("qoe.restart",Object.assign({},{retrydrm:1},z))),TL(this),FLQ(this)))}; g.V.WY3=function(){if(!this.videoData.T$&&this.mediaElement&&!this.isBackground()){var z="0";this.mediaElement.YG()>0&&TC(this.mediaElement)>=5&&this.videoData.D&&this.videoData.D.W&&(this.QL(xN(this.playerState,1)),oFD(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),z="1");Q0S(this);var p=this.videoData.D;z={restartmsg:z,mfmt:!Dt(this.videoData),mdrm:!(!(p&&p.videoInfos&&p.videoInfos.length&&p.videoInfos[0].o8)||this.sR),mfmtinfo:!this.videoData.K,prerolls:this.PV()?this.Xh.join(","): "0"};if(this.sR){p=this.sR;if(p.K.size<=0){var c="ns;";p.U||(c+="nr;");p=c+="ql."+p.D.length}else p=u7_(p.K.values().next().value),p=dB(p);z.drmp=p}var B;Object.assign(z,((B=this.z$)==null?void 0:B.kt())||{});var H;Object.assign(z,((H=this.mediaElement)==null?void 0:H.kt())||{});this.S9().ZP("qoe.start15s",dB(z));this.publish("loadsofttimeout")}}; g.V.pQ=function(z){this.videoData.lengthSeconds!==z&&(this.videoData.lengthSeconds=z,tI(this))}; g.V.yh=function(z,p){var c=this;z=z===void 0?!1:z;if(!this.uj)if(NZ("att_s","player_att")||z4("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(function(){var H,T,b,D;return g.L(function(t){switch(t.W){case 1:if(!(H=z)){t.hD(2);break}return g.a(t,g.KhB(),3);case 3:H=!t.K;case 2:if(H)return t.return();g.Ox(t,4);T=gaB(c.S9());if(!T)throw Error();b={};return g.a(t,g.$A_((b.cpn=c.videoData.clientPlaybackNonce,b.encryptedVideoId=c.videoData.videoId||"",b),3E4),6);case 6:D=t.K;if(c.uj)throw Error(); if(!D.challenge)throw g.oc(Error("Not sending attestation ping; no attestation challenge string")),Error();c.uj=!0;var X=[D.challenge];D.error?X.push("r1c="+D.error):D.webResponse&&X.push("r1a="+D.webResponse);var x;((x=D.adblockReporting)==null?void 0:x.reportingStatus)!==void 0&&X.push("r6a="+D.adblockReporting.reportingStatus);var E;((E=D.adblockReporting)==null?void 0:E.broadSpectrumDetectionResult)!==void 0&&X.push("r6b="+D.adblockReporting.broadSpectrumDetectionResult);T(X.join("&"));z4("att_f", void 0,"player_att");g.RE(t,0);break;case 4:g.SQ(t),z4("att_e",void 0,"player_att"),g.Ai(t)}})})().then(function(){p==null||p()}); else{var B=new g.ZOV(this.videoData);if("c1a"in B.NB&&!g.In.isInitialized()){z4("att_wb",void 0,"player_att");this.M3===2&&Math.random()<.01&&g.oc(Error("Botguard not available after 2 attempts"));if(z)return;if(this.M3<5){g.H4(this.Do);this.M3++;return}}(B=g.LKQ(B))?(z4("att_f",void 0,"player_att"),k8v(this.S9(),B),this.uj=!0):z4("att_e",void 0,"player_att")}}; g.V.tI=function(z){z=z===void 0?!1:z;if(m9(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Hs()||g.yN(this.videoData)))z=this.getCurrentTime();else if(g.pT(this.videoData)&&this.aR){z=this.aR;var p=this.getCurrentTime();z=(z=p0Y(z,p*1E3))?(z.PQ()-z.Yy())/1E3:0}else z=this.Yb(z);return z}; g.V.fW=function(){return g.pT(this.videoData)?this.videoData.pB():this.pB()}; g.V.Yb=function(z){return this.Yr.Yb(z===void 0?!1:z)}; g.V.pB=function(){return this.Yr.pB()}; g.V.e_=function(){return this.Yr?this.Yr.e_():0}; g.V.getStreamTimeOffset=function(){return this.Yr?this.Yr.getStreamTimeOffset():0}; g.V.ZF=function(){var z=0;this.Wq.Y("web_player_ss_media_time_offset")&&(z=this.getStreamTimeOffset()===0?this.e_():this.getStreamTimeOffset());return z}; g.V.setPlaybackRate=function(z){var p;this.playbackRate!==z&&PpV(this.au,(p=this.videoData.D)==null?void 0:p.videoInfos)&&(this.playbackRate=z,TL(this));this.playbackRate=z;this.mediaElement&&this.mediaElement.setPlaybackRate(z)}; g.V.getPlaybackRate=function(){return this.playbackRate}; g.V.getPlaybackQuality=function(){var z="unknown";if(this.videoData.K&&(z=this.videoData.K.video.quality,z==="auto"&&this.mediaElement)){var p=this.vI();p&&p.videoHeight>0&&(z=Qn(p.videoWidth,p.videoHeight))}return z}; g.V.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.V.rh=function(){this.S9().rh()}; g.V.sendVideoStatsEngageEvent=function(z,p){var c=this.S9();c.W?(c=ZM(c.W,"engage"),c.Dt=z,c.send(p)):p&&p()}; g.V.xe=function(z){return this.S9().xe(z)}; g.V.isAtLiveHead=function(z,p){p=p===void 0?!1:p;return m9(this.videoData)&&(this.Zv||p)?this.Yr.isAtLiveHead(z):!1}; g.V.yy=function(){var z=this.Yb(),p=this.getCurrentTime(),c;(c=!m9(this.videoData))||(c=this.Yr,c=!(c.W&&c.W.D));return c||this.Hs()||isNaN(z)||isNaN(p)?0:Math.max(0,z-p)}; g.V.Sa=function(z){(this.Zv=z)||this.mI.stop();this.videoData.W&&(z?this.videoData.W.resume():TVY(this.videoData.W));if(this.z$){var p=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.If()&&this.videoData.isLivePlayback;z&&!p?this.z$.resume():JI(this,!0)}g.r(this.playerState,2)||z?g.r(this.playerState,512)&&z&&this.QL(EC(this.playerState,512)):this.QL(xN(this.playerState,512));p=this.S9();p.qoe&&(p=p.qoe,g.hU(p,g.z8(p.provider),"stream",[z?"A":"I"]))}; g.V.uT=function(z){z={n:z.name,m:z.message};this.S9().ZP("player.exception",dB(z))}; g.V.Xv=cD(28);g.V.tC=cD(57);g.V.zx=function(z){this.S9().zx(z)}; g.V.M0=function(z){this.S9().M0(z)}; g.V.XV=function(z){this.S9().XV(z)}; g.V.hd=cD(34);g.V.KD=cD(40);g.V.vL=function(z){this.S9().vL(z)}; g.V.JF=function(){this.KH("hidden",{},!0)}; g.V.Bx=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.V.Pg=function(){return this.z$?this.z$.Pg():!0}; g.V.setLoop=function(z){this.loop=z;this.mediaElement&&!g.yi(this.Wq)&&this.mediaElement.setLoop(z)}; g.V.XO=function(){return this.mediaElement&&!g.yi(this.Wq)?this.mediaElement.XO():this.loop}; g.V.GE=function(z){this.KH("timestamp",{o:z.toString()});this.Yr.GE(z)}; g.V.Fm=function(z){this.VS.tick(z)}; g.V.u9=function(z){return this.VS.u9(z)}; g.V.Ph=function(z){this.VS.Ph(z)}; g.V.KH=function(z,p,c){c=c===void 0?!1:c;this.S9().KH(z,p,c)}; g.V.aT=function(z,p,c){c=c===void 0?!1:c;this.S9().KH(z,p,c)}; g.V.ZP=function(z){this.S9().ZP(z.errorCode,dB(z.details));z=z.errorCode;if(this.videoData.isLivePlayback&&(z==="qoe.longrebuffer"||z==="qoe.slowseek")||z==="qoe.restart"){z=this.z$?anv(this.z$.videoTrack):{};var p,c;this.KH("lasoe",Object.assign(this.z$?anv(this.z$.audioTrack):{},(p=this.G$)==null?void 0:(c=p.W)==null?void 0:c.i$()));var B,H;this.KH("lvsoe",Object.assign(z,(B=this.G$)==null?void 0:(H=B.K)==null?void 0:H.i$()))}}; g.V.V0=function(z,p,c){this.S9().V0(z,p,c)}; g.V.fm=function(z,p,c,B,H,T,b,D){var t;if((t=this.videoData.W)!=null&&t.isLive){var X=p.playerType===2?p:z,x=z.videoData.videoId,E=p.videoData.videoId;if(x&&E){t=this.S9();if(t.qoe){var q=t.qoe,J=z.cpn,M=p.cpn,P=X.videoData.EW,O=q.provider.videoData.clientPlaybackNonce,R=q.provider.videoData.videoId,K=M!==O&&E!==R;O=J!==O&&x!==R;q.reportStats();q.adCpn&&q.adCpn!==J||(q.adCpn=O?J:"",q.M9=O?x:"",q.adFormat=O?P:void 0,Sn(q,2,T?4:H?2:0,M,E,B),q.reportStats(),q.adCpn=K?M:"",q.M9=K?E:"",q.adFormat=K?P: void 0,Sn(q,2,T?5:H?3:1,J,x,c),q.reportStats())}c=z.cpn;if(t.D.has(c)){if(H=t.D.get(c),W5(H,!0).send(),dw(H),c!==t.provider.videoData.clientPlaybackNonce){euB(H);var Z;(Z=t.W)==null||LQB(Z);t.D.delete(c)}}else t.Kt=t.provider.videoData.clientPlaybackNonce,t.Kt&&t.W&&(t.D.set(t.Kt,t.W),W5(t.W).send(),dw(t.W));Z=p.cpn;X=X.videoData;B-=this.ZF();if(t.D.has(Z)){B=t.D.get(Z);var W=B.D&&isNaN(B.L)?L6(B):NaN;B=CyD(B,!1);isNaN(W)||(B.G=W);B.send()}else B=G8Y(t,t.provider,X,B),t.D.set(Z,B),lMQ(B,new g.Ab(xN(new g.D0, 8),new g.D0)),Z6W(B),(W=t.W)==null||dw(W);t.Kt=Z;this.Y("html5_unify_csi_server_stitched_transition_logging")?vdY(z.cpn,p.cpn,this.videoData.clientPlaybackNonce,p.videoData,b,void 0,D):(t=this.VS,B=this.videoData.clientPlaybackNonce,W=p.videoData,z=(z.cpn===B?"video":"ad")+"_to_"+(p.cpn===B?"video":"ad"),B={},W.V&&(B.cttAuthInfo={token:W.V,videoId:W.videoId}),b&&(B.startTime=b),Gl(z,B),g.gO({targetVideoId:W.videoId,targetCpn:p.cpn,isSsdai:!0},z),t.Wq.Y("html5_enable_ssdai_transition_with_only_enter_cuerange")? b||Xs(D,z):Xs(D,z))}}else this.logger.W(360717806,"SSTEvent for nonSS")}; g.V.oF=function(){var z=this.Gl,p=z.Z0;z.Z0=[];return p}; g.V.MH=function(z){this.videoData.P9=!0;this.ZP(new W2("sabr.fallback",z));this.hv(!0)}; g.V.Mr=function(z,p){this.videoData.dD=!0;if(p===void 0||p)this.ZP(new W2("qoe.restart",z)),this.hv(!0);this.videoData.yL()&&this.Y("html5_reload_caption_on_ssdai_fallback")&&this.Gl.FV()}; g.V.LS=function(z){this.KH("sdai",{aftimeout:z});this.ZP(new W2("ad.fetchtimeout",{timeout:z}))}; g.V.fS=function(z,p){this.KH("timelineerror",z);z=new W2("dai.timelineerror",z);p?this.OI("dai.timelineerror",1,"RETRYABLE_ERROR",dB(z.details)):this.ZP(z)}; g.V.Gf=function(){return g.z8(this.S9().provider)}; g.V.getPlayerSize=function(){return this.Tz.getPlayerSize()}; g.V.fD=function(){return this.Tz.fD()}; g.V.Ik=function(){return this.VS}; g.V.RJ=function(){return this.Gl.RJ()}; g.V.getVolume=function(){return this.Gl.getVolume()}; g.V.A5=function(){return this.Gl.A5()}; g.V.isMuted=function(){return this.Gl.isMuted()}; g.V.Sw=function(){return this.Gl.Sw()}; g.V.Uz=function(){this.yz=!0}; g.V.Y=function(z){return this.Wq.Y(z)}; g.V.VN=function(z,p,c,B,H){this.KH("xvt",{m:z,g:p?1:0,tt:c?1:0,np:B?1:0,c:H})}; g.V.Sf=function(){var z;(z=this.z$)==null||z.resume()}; g.V.If=function(){return g.Gv(this.Xh,"ad")}; g.V.fn=function(){var z=this.getCurrentTime(),p=z-this.e_();var c=this.mediaElement?YK(this.mediaElement.zO()):0;c=Math.floor(Math.max(c-p,0))+100;var B;if(!this.Y("html5_ssdai_disable_seek_to_skip")&&((B=this.z$)==null?0:B.Zk(p,this.Yb())))return this.KH("sdai",{skipad:1,ct:p.toFixed(3),adj:0}),!0;var H;return((H=this.z$)==null?0:H.fn(p,c))?(this.KH("sdai",{skipad:1,ct:p.toFixed(3),adj:c.toFixed(3)}),Ee(this.videoData)&&this.z$.seek(p+c,{seekSource:89,VL:"videoplayer_skipServerStitchedAd"}),rIV(this.Yr, z),!0):!1}; g.V.OW=function(){return this.Wq.OW()}; g.V.QQ=function(){if(this.Y("html5_generate_content_po_token"))return this.videoData.BY||"";this.Gl.Ay();return this.Wq.A8||""}; g.V.Nr=function(){if(this.videoData.videoId)return this.videoData.Af}; g.V.uA=function(){return this.videoData.videoId}; g.V.Eq=function(){return this.Gl.Ce}; g.V.Ga=function(){return this.BI}; g.V.us=function(){return this.Gl.us()}; g.V.MC=function(z,p){this.Yr.MC(z,p)}; g.V.Lw=function(){this.Yr.Lw()}; g.V.uH=function(z,p){var c=this.Y("html5_generate_content_po_token")?this.videoData:void 0;this.Gl.uH(z,p,c)}; g.V.Si=function(z,p){var c;(c=this.z$)==null||c.Si(z,p)}; g.V.jw=function(){var z=this.H0();return!!z&&z.jw()}; g.V.Wf=function(){return this.aR}; g.V.nm=function(z,p){this.S9().nm(z,p)}; g.V.hx=function(){return this.S9().hx()}; g.V.Iv=function(){return this.videoData.iV}; g.V.pD=function(){return this.Gl.pD()}; g.V.bJ=function(){return this.Gl.bJ(this)}; g.V.LM=function(){return this.Lf}; g.V.Ty=function(z){var p;(p=this.z$)==null||p.Ty(z)}; g.V.Id=function(){var z;(z=this.z$)==null||z.Id()};g.Y(s0u,HK);g.Y(kZW,HK);g.V=kZW.prototype;g.V.seekToChapterWithAnimation=function(z){var p=this;if(g.w$(this.api)&&!(z<0)){var c=this.api.getVideoData(),B=c.Rk;if(B&&z=0)return;p=~p;g.To(this.items,p,0,z);DN(this.menuItems.element,z.element,p)}z.subscribe("size-change",this.Rg,this);this.menuItems.publish("size-change")}; g.V.Jd=function(z){z.unsubscribe("size-change",this.Rg,this);this.qZ()||(g.f9(this.items,z),this.menuItems.element.removeChild(z.element),this.menuItems.publish("size-change"))}; g.V.Rg=function(){this.menuItems.publish("size-change")}; g.V.focus=function(){for(var z=0,p=0;p1&&g.W9(this)}; g.V.BN=function(){wIV(this);this.EH&&(A8Q(this),g.dY(this.element,this.size))}; g.V.QT=function(){var z=this.W.pop();OW_(this,z,this.W[this.W.length-1],!0)}; g.V.q5=function(z){if(!z.defaultPrevented)switch(z.keyCode){case 27:this.uQ();z.preventDefault();break;case 37:this.W.length>1&&this.QT();z.preventDefault();break;case 39:z.preventDefault()}}; g.V.focus=function(){this.W.length&&this.W[this.W.length-1].focus()}; g.V.m0=function(){g.kG.prototype.m0.call(this);this.V&&this.V.dispose();this.G&&this.G.dispose()};g.Y(yI,g.Lj);yI.prototype.open=function(z,p){this.initialize(z.items)&&this.S_(p,!!p)}; yI.prototype.initialize=function(z){g.Z1(this.mM);if(z===void 0||z.length===0)return!1;var p=z.length;z=g.m(z);for(var c=z.next();!c.done;c=z.next())this.nB(c.value,p--);return!0}; yI.prototype.nB=function(z,p){z.menuNavigationItemRenderer?$$B(this,z.menuNavigationItemRenderer,p):z.menuServiceItemRenderer&&KzE(this,z.menuServiceItemRenderer,p)};g.Y(Cj,Kj);g.V=Cj.prototype;g.V.dT=function(z){z.target!==this.dismissButton.element&&z.target!==this.overflowButton.element&&(this.hh(),this.onClickCommand&&this.T.AD("innertubeCommand",this.onClickCommand))}; g.V.a6=function(){this.enabled=!1;this.U.hide()}; g.V.VA=function(){return!!this.W&&this.enabled}; g.V.onVideoDataChange=function(z,p){this.YX(p);if(this.W){this.oM();a:if(!this.isCounterfactual){var c,B,H;this.banner.update({title:(c=this.W)==null?void 0:c.title,subtitle:(B=this.W)==null?void 0:B.subtitle,metadata:(H=this.W)==null?void 0:H.metadataText});var T;this.onClickCommand=g.I((T=this.W)==null?void 0:T.onTap,Qy);var b;if(z=g.I((b=this.W)==null?void 0:b.onOverflow,Qy))this.G=g.I(z,FrK);var D;if((D=this.W)==null?0:D.thumbnailImage){var t,X;b=((t=this.W)==null?void 0:(X=t.thumbnailImage)== null?void 0:X.sources)||[];if(b.length===0)break a;this.thumbnailImage.update({url:b[0].url})}else{var x;if((x=this.W)==null?0:x.thumbnailIconName){var E;this.thumbnailIcon.update({icon:(E=this.W)==null?void 0:E.thumbnailIconName})}}var q;this.shouldShowOverflowButton=!((q=this.W)==null||!q.shouldShowOverflowButton);var J;this.shouldHideDismissButton=!((J=this.W)==null||!J.shouldHideDismissButton)}var M;this.banner.element.setAttribute("aria-label",((M=this.W)==null?void 0:M.a11yLabel)||"");var P; this.OH=(P=this.W)==null?void 0:P.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;a2B(this)}}; g.V.Ck8=function(){this.isVisible=!0;a2B(this)}; g.V.yHA=function(){this.isVisible=!1;a2B(this)}; g.V.UA=function(){Kj.prototype.UA.call(this);this.K&&this.T.logVisibility(this.banner.element,this.isVisible)}; g.V.hh=function(){Kj.prototype.hh.call(this,!1);this.K&&this.T.logClick(this.banner.element)}; g.V.pg=function(z){this.V||(this.V=new yI(this.T),g.l(this,this.V));var p,c;if((p=this.G)==null?0:(c=p.menu)==null?0:c.menuRenderer)this.V.open(this.G.menu.menuRenderer,z.target),z.preventDefault()}; g.V.YX=function(){}; g.V.oM=function(){}; g.V.m0=function(){this.T.gs("suggested_action_view_model");Kj.prototype.m0.call(this)};g.Y(es,Cj); es.prototype.YX=function(z){var p,c,B;this.productUpsellSuggestedActionViewModel=g.I((p=z.getWatchNextResponse())==null?void 0:(c=p.playerOverlays)==null?void 0:(B=c.playerOverlayRenderer)==null?void 0:B.suggestedActionViewModel,i23);var H;if((H=this.productUpsellSuggestedActionViewModel)==null?0:H.content){var T;this.W=g.I((T=this.productUpsellSuggestedActionViewModel)==null?void 0:T.content,vuK)}var b,D;if(this.K=!!((b=this.productUpsellSuggestedActionViewModel)==null?0:(D=b.loggingDirectives)==null? 0:D.trackingParams)){var t,X;this.T.setTrackingParams(this.banner.element,((t=this.productUpsellSuggestedActionViewModel)==null?void 0:(X=t.loggingDirectives)==null?void 0:X.trackingParams)||null)}var x;this.isCounterfactual=!((x=this.productUpsellSuggestedActionViewModel)==null||!x.isCounterfactualServing)}; es.prototype.oM=function(){var z=[],p,c=g.m(((p=this.productUpsellSuggestedActionViewModel)==null?void 0:p.ranges)||[]);for(p=c.next();!p.done;p=c.next()){var B=p.value;B&&(p=Number(B.startTimeMilliseconds),B=Number(B.endTimeMilliseconds),isNaN(p)||isNaN(B)||z.push(new g.Xq(p,B,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.T.KN(z)};g.Y(ZWS,HK);g.Y(ll,HK);ll.prototype.onVideoDataChange=function(z,p){var c=this;if(!gG(p)&&(z==="newdata"&&d$S(this),this.K&&z==="dataloaded")){var B;Ah(XD(this.api.N(),(B=this.api.getVideoData())==null?void 0:g.se(B)),function(H){var T=vhY(H);T&&!c.X&&(T=WzY(c,c.W||T))&&c.api.setAudioTrack(T,!0);c.D&&(c.D=!1,jKV(c,H))})}}; ll.prototype.Jn=function(){var z=this;if(g.yi(this.api.N())){var p,c=g.tj(this.api.N(),(p=this.api.getVideoData())==null?void 0:g.se(p));return Ah(MH(c),function(B){var H=r$();US(H,B);return z.api.Jn(H)})}return MH(this.api.Jn())};g.Y(g.IH,g.zn);g.V=g.IH.prototype;g.V.open=function(){g.dt(this.QS,this.K)}; g.V.Xt=function(z){ohY(this);var p=this.options[z];p&&(p.element.setAttribute("aria-checked","true"),this.cU(this.ue(z)),this.D=z)}; g.V.rp=function(z){g.Z1(this.K);for(var p={},c=!1,B=0;B=0?this.W.playbackRate:1}catch(z){return 1}}; g.V.setPlaybackRate=function(z){this.getPlaybackRate()!==z&&(this.W.playbackRate=z);return z}; g.V.XO=function(){return this.W.loop}; g.V.setLoop=function(z){this.W.loop=z}; g.V.canPlayType=function(z,p){return this.W.canPlayType(z,p)}; g.V.isPaused=function(){return this.W.paused}; g.V.isSeeking=function(){return this.W.seeking}; g.V.isEnded=function(){return this.W.ended}; g.V.d7=function(){return this.W.muted}; g.V.WN=function(z){FI();this.W.muted=z}; g.V.Y7=function(){return this.W.played||xK([],[])}; g.V.zO=function(){try{var z=this.W.buffered}catch(p){}return z||xK([],[])}; g.V.W5=function(){return this.W.seekable||xK([],[])}; g.V.XF=function(){var z=this.W;return z.getStartDate?z.getStartDate():null}; g.V.getCurrentTime=function(){return this.W.currentTime}; g.V.setCurrentTime=function(z){this.W.currentTime=z}; g.V.getDuration=function(){return this.W.duration}; g.V.load=function(){var z=this.W.playbackRate;try{this.W.load()}catch(p){}this.W.playbackRate=z}; g.V.pause=function(){this.W.pause()}; g.V.play=function(){var z=this.W.play();if(!z||!z.then)return null;z.then(void 0,function(){}); return z}; g.V.YG=function(){return this.W.readyState}; g.V.w7=function(){return this.W.networkState}; g.V.bz=function(){return this.W.error?this.W.error.code:null}; g.V.Tg=function(){return this.W.error?this.W.error.message:""}; g.V.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.W instanceof window.HTMLVideoElement&&this.W.getVideoPlaybackQuality)return this.W.getVideoPlaybackQuality();if(this.W){var z=this.W,p=z.webkitDroppedFrameCount;if(z=z.webkitDecodedFrameCount)return{droppedVideoFrames:p||0,totalVideoFrames:z}}return{}}; g.V.td=function(){return!!this.W.webkitCurrentPlaybackTargetIsWireless}; g.V.SP=function(){return!!this.W.webkitShowPlaybackTargetPicker()}; g.V.togglePictureInPicture=function(){var z=this.W,p=window.document;window.document.pictureInPictureEnabled?this.W!==p.pictureInPictureElement?z.requestPictureInPicture():p.exitPictureInPicture():jU()&&z.webkitSetPresentationMode(z.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.V.T5=function(){var z=this.W;return new g.ho(z.offsetLeft,z.offsetTop)}; g.V.getSize=function(){return g.Wx(this.W)}; g.V.setSize=function(z){g.dY(this.W,z)}; g.V.getVolume=function(){return this.W.volume}; g.V.setVolume=function(z){FI();this.W.volume=z}; g.V.XH=function(z){this.L[z]||(this.W.addEventListener(z,this.listener),this.L[z]=this.listener)}; g.V.setAttribute=function(z,p){this.W.setAttribute(z,p)}; g.V.removeAttribute=function(z){this.W.removeAttribute(z)}; g.V.hasAttribute=function(z){return this.W.hasAttribute(z)}; g.V.Fb=cD(67);g.V.Xp=cD(69);g.V.tb=cD(71);g.V.IZ=cD(73);g.V.Ew=function(){return Sa(this.W)}; g.V.Ze=function(z){g.Eo(this.W,z)}; g.V.xI=function(z){return g.Px(this.W,z)}; g.V.NL=function(){return g.X4(document.body,this.W)}; g.V.audioTracks=function(){var z=this.W;if("audioTracks"in z)return z.audioTracks}; g.V.m0=function(){for(var z=g.m(Object.keys(this.L)),p=z.next();!p.done;p=z.next())p=p.value,this.W.removeEventListener(p,this.L[p]);HS.prototype.m0.call(this)}; g.V.Pk=function(z){this.W.disableRemotePlayback=z};g.Y(Nt,g.Q);g.Y(zZ,g.Q);zZ.prototype.show=function(){g.Q.prototype.show.call(this);this.Bq();this.nH.Y("html5_enable_moving_s4n_window")&&g.yi(this.nH.N())&&this.S()}; zZ.prototype.hide=function(){g.Q.prototype.hide.call(this);this.delay.stop();this.X.stop()}; zZ.prototype.Bq=function(){var z=(0,g.y2)(),p=zFi(this.nH);fj(this.W,p.bandwidth_samples);fj(this.G,p.network_activity_samples);fj(this.D,p.live_latency_samples);fj(this.K,p.buffer_health_samples);var c={};p=g.m(Object.entries(p));for(var B=p.next();!B.done;B=p.next()){var H=g.m(B.value);B=H.next().value;H=H.next().value;this.U[B]!==H&&(c[B]=" "+String(H));this.U[B]=H}this.update(c);z=(0,g.y2)()-z>25?5E3:500;this.delay.start(z)}; zZ.prototype.S=function(){this.V?(this.position+=1,this.position>15&&(this.V=!1)):(--this.position,this.position<=0&&(this.V=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.X.start(2E4)};g.Y(BT_,HK);g.Y(pn,g.e);pn.prototype.W=function(){var z=(0,g.y2)()-this.startTime;z=zthis.X[z])&&(this.W=z,Yyv(this))}; g.V.onCueRangeExit=function(z){var p=MAN(this,z);p&&this.W===z&&this.api.AD("innertubeCommand",p);this.clearTimeout();this.W=void 0}; g.V.onTimeout=function(z){this.W!==void 0&&(z==null?void 0:z.cueRangeId)===this.W&&(z=MAN(this,this.W))&&this.api.AD("innertubeCommand",z)}; g.V.Yv=function(z){this.K=z}; g.V.pY=function(){Yyv(this);this.K=void 0}; g.V.setTimeout=function(z){var p=this,c=Number(z==null?void 0:z.maxVisibleDurationMilliseconds);c&&(this.clearTimeout(),this.L=setTimeout(function(){p.onTimeout(z)},c))}; g.V.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0;this.G=!1}; g.V.m0=function(){this.timelyActions=this.K=this.W=this.videoId=void 0;this.X={};this.tA();this.clearTimeout();HK.prototype.m0.call(this)};g.Y(P9Q,HK);var Ye={},LjQ=(Ye[1]="pot_ss",Ye[2]="pot_sf",Ye[3]="pot_se",Ye[4]="pot_xs",Ye[5]="pot_xf",Ye[6]="pot_xe",Ye),dhD=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.Y(TZ,HK);TZ.prototype.m0=function(){this.V&&(g.S9(this.V),this.V=void 0);HK.prototype.m0.call(this)}; TZ.prototype.Ay=function(){(this.W?!this.W.isReady():this.K)&&Vu(this)}; TZ.prototype.ym=function(z,p,c){var B=this;if(OK_(z)){var H=c||"",T;if((T=this.W)==null?0:T.isReady())p=DH(this,H),wk_(z,p);else{var b=new g.OE;p.push(b.promise);this.X.promise.then(function(){var D=DH(B,H);wk_(z,D);b.resolve()})}}}; TZ.prototype.Gz=function(z){var p=this;if(this.W||this.K)z.BY=DH(this,z.videoId),this.W&&!this.W.isReady()&&(this.D=new BS,this.X.promise.then(function(){p.VS.u9("pot_if");z.BY=DH(p,z.videoId)}))};g.Y(y7i,HK);g.Y(tV,g.e);tV.prototype.W=function(){for(var z=g.m(g.L_.apply(0,arguments)),p=z.next();!p.done;p=z.next())(p=p.value)&&this.features.push(p)}; tV.prototype.m0=function(){for(var z=this.features.length-1;z>=0;z--)this.features[z].dispose();this.features.length=0;g.e.prototype.m0.call(this)};C9f.prototype.reset=function(){this.W=this.K=NaN};g.V=eFQ.prototype;g.V.reset=function(){rO(this.timerName)}; g.V.tick=function(z,p){kw(z,p,this.timerName)}; g.V.u9=function(z){return f0(z,this.timerName)}; g.V.Ph=function(z){dV(z,void 0,this.timerName)}; g.V.infoGel=function(z){g.gO(z,this.timerName)};g.Y(jmY,g.JQ);g.V=jmY.prototype;g.V.kG=function(z){return this.loop||!!z||this.index+1=0}; g.V.setShuffle=function(z){this.shuffle=z;z=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var p=0;p0)||db(this,1,!0)}; g.V.vr=function(){this.V=!0;this.W.vy(this.L);this.L=this.W.Z(document,"mouseup",this.o5)}; g.V.o5=function(){this.V=!1;db(this,8,!1);this.W.vy(this.L);this.L=this.W.Z(this.target,"mousedown",this.vr)}; g.V.L$=function(z){if(z=(z=z.changedTouches)&&z[0])this.tD=z.identifier,this.W.vy(this.S),this.S=this.W.Z(this.target,"touchend",this.GD,void 0,!0),db(this,1024,!0)}; g.V.GD=function(z){if(z=z.changedTouches)for(var p=0;p1280||T>720)if(H=c.o3("maxresdefault.jpg"))break;if(B>640||T>480)if(H=c.o3("maxresdefault.jpg"))break; if(B>320||T>180)if(H=c.o3("sddefault.jpg")||c.o3("hqdefault.jpg")||c.o3("mqdefault.jpg"))break;if(H=c.o3("default.jpg"))break}g.HX(p)&&(p=new Image,p.addEventListener("load",function(){HUi()}),p.src=H?H:"",this.api.Ik().tick("ftr")); this.X.style.backgroundImage=H?"url("+H+")":""};g.Y(g.eZ,g.Q);g.eZ.prototype.resize=function(){}; g.eZ.prototype.K=function(z){var p=this;this.D=!1;lTW(this);var c=z.jx,B=this.api.N();c!=="GENERIC_WITHOUT_LINK"||B.V?c==="TOO_MANY_REQUESTS"?(B=this.api.getVideoData(),this.cU(I0(this,"TOO_MANY_REQUESTS_WITH_LINK",B.ZZ(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||B.V?this.api.N().Y("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!B.V?(B=B.hostLanguage,z="//support.google.com/youtube?p=videoError",B&&(z=g.g6(z,{hl:B})),this.cU(I0(this,"HTML5_SPS_UMP_STATUS_REJECTED", z))):this.api.N().Y("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!B.V?(B=B.hostLanguage,z="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",B&&(z=g.g6(z,{hl:B})),this.cU(I0(this,"BROWSER_OR_EXTENSION_ERROR",z))):this.cU(g.lQ(z.errorMessage)):this.cU(I0(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(z=B.hostLanguage,c="//support.google.com/youtube/?p=player_error1",z&&(c=g.g6(c, {hl:z})),this.cU(I0(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),B.Wy&&!B.X&&ezx(this,function(T){if(g.EB(T,p.api,!fm(p.api.N()))){T={as3:!1,html5:!0,player:!0,cpn:p.api.getVideoData().clientPlaybackNonce};var b=p.api;b.Kv("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:T});b.isFullscreen()&&b.toggleFullscreen()}})); if(this.D){var H=this.jp("ytp-error-link");H&&(this.api.createClientVe(H,this,216104),this.api.logVisibility(H,!0),ezx(this,function(){p.api.logClick(H)}))}}; var Cux=/([^<>]+)<\/a>/;g.Y(v1S,g.Q);g.V=v1S.prototype;g.V.onClick=function(z){this.innertubeCommand?(this.T.AD("innertubeCommand",this.innertubeCommand),z.preventDefault()):g.EB(z,this.T,!0);this.T.logClick(this.element)}; g.V.onVideoDataChange=function(z,p){j7W(this,p);this.OR&&FAx(this,this.OR)}; g.V.BZ=function(z){var p=this.T.getVideoData();this.videoId!==p.videoId&&j7W(this,p);this.W&&FAx(this,z.state);this.OR=z.state}; g.V.S_=function(){this.fade.show();this.T.publish("paidcontentoverlayvisibilitychange",!0);this.T.logVisibility(this.element,!0)}; g.V.uQ=function(){this.fade.hide();this.T.publish("paidcontentoverlayvisibilitychange",!1);this.T.logVisibility(this.element,!1)};g.Y(jZ,g.Q);jZ.prototype.hide=function(){this.W.stop();this.message.style.display="none";g.Q.prototype.hide.call(this)}; jZ.prototype.onStateChange=function(z){this.Hy(z.state)}; jZ.prototype.Hy=function(z){(g.r(z,128)||this.api.Ga()?0:g.r(z,16)||g.r(z,1))?this.W.start():this.hide()}; jZ.prototype.K=function(){this.message.style.display="block"};g.Y(Fs,g.kG);Fs.prototype.onMutedAutoplayChange=function(z){this.D&&(z?(o1W(this),this.S_()):(this.W&&this.logClick(),this.uQ()))}; Fs.prototype.rL=function(z){this.api.isMutedByMutedAutoplay()&&g.wn(z,2)&&this.uQ()}; Fs.prototype.onClick=function(){this.api.unMute();this.logClick()}; Fs.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.Y(g.o0,g.or);g.V=g.o0.prototype;g.V.init=function(){var z=this.api,p=z.getPlayerStateObject();this.R7=z.getPlayerSize();this.QL(p);this.dX();this.UW();this.api.publish("basechromeinitialized",this);this.DR()&&this.api.publish("standardControlsInitialized")}; g.V.onVideoDataChange=function(z,p){var c=this.QX!==p.videoId;if(c||z==="newdata"){z=this.api;z.isFullscreen()||(this.R7=z.getPlayerSize());var B;((B=this.api.getVideoData(1))==null?0:g.pT(B))&&this.Oo()}c&&(this.QX=p.videoId,c=this.l9,c.T$=3E3,db(c,512,!0),this.dX());this.api.Y("web_render_jump_buttons")&&p.showSeekingControls&&(this.yx=572)}; g.V.LYA=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.V.jo=function(){var z=this.api.Ll()&&this.api.Qd(),p=this.api.oX();return this.SR||z||this.YK||p}; g.V.Oo=function(){var z=!this.jo();g.Yf(this.api.getRootNode(),"ytp-menu-shown",!z);var p;((p=this.api.getVideoData(1))==null?0:g.pT(p))&&g.Yf(this.api.getRootNode(),"ytp-hide-controls",!z)}; g.V.Nj=function(z){try{if(!g.X4(this.api.getRootNode(),z))return!1}catch(p){return!1}for(;z&&!Hpi(z);)z=z===this.api.getRootNode()?null:z.parentElement||null;return!!z}; g.V.Q5=function(z){var p=this.api.getRootNode();g.Yf(p,"ytp-autohide",z);g.Yf(p,"ytp-autohide-active",!0);this.rI.start(z?250:100);z&&(this.u7=!1,g.Jn(p,"ytp-touch-mode"));this.N3=!z;this.api.sz(!z)}; g.V.P8=function(){var z=this.api.getRootNode();g.Yf(z,"ytp-autohide-active",!1)}; g.V.pOZ=function(){this.OL=!0}; g.V.qIH=function(z){if(this.api.N().Y("player_doubletap_to_seek")||this.api.N().S)this.OL=!1,this.gW&&this.vy(this.gW),this.Oe===0&&Qu(this,z)?(this.uJ(),this.eg.start(),this.gW=this.Z(this.api.Hq(),"touchmove",this.pOZ,void 0,!0)):this.eg.stop();Uzf(this)&&Qu(this,z)&&!this.api.N().S&&Q7B(this);var p=this.Zf.Cl();if(!g.yB(this.api.N())&&Z8&&s7u(this,z))p&&z.preventDefault();else if(this.u7=!0,g.Eo(this.api.getRootNode(),"ytp-touch-mode"),this.l9.Cm(),this.api.N().Y("player_doubletap_to_seek")||this.api.N().S)if(p= this.api.getPlayerStateObject(),!(!this.api.iz()||g.r(p,2)&&g.yP(this.api)||g.r(p,64))){p=Date.now()-this.iW;this.Oe+=1;if(p<=350){this.St=!0;p=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),B=z.targetTouches[0].clientX-c.left;c=z.targetTouches[0].clientY-c.top;var H=(this.Oe-1)*10;B>0&&Bp*2&&B=650;this.l9.resize();g.Yf(p,"ytp-fullscreen",this.api.isFullscreen());g.Yf(p,"ytp-large-width-mode",c);g.Yf(p,"ytp-small-mode",this.jm());g.Yf(p,"ytp-tiny-mode",this.YW());g.Yf(p,"ytp-big-mode",this.lz());this.dE&&this.dE.resize(z)}; g.V.rL=function(z){this.QL(z.state);this.dX()}; g.V.KL=cD(5);g.V.J_=function(){var z=!!this.QX&&!this.api.rJ()&&!this.Ss,p=this.api.getPresentingPlayerType()===2,c=this.api.N();if(p){if(LSm&&c.Y("enable_visit_advertiser_support_on_ipad_mweb"))return!1;p=Kn(this.api.mU());z&&(p&&p.player?z=(z=p.player.getVideoData(2))?z.isListed&&!g.d9(p.player.N()):!1:(P7("showInfoBarDuringAd: this is null"),z=!1));return z}return z&&(c.BW||this.api.isFullscreen()||c.e1)}; g.V.dX=function(){var z=this.J_();this.Rf!==z&&(this.Rf=z,g.Yf(this.api.getRootNode(),"ytp-hide-info-bar",!z))}; g.V.QL=function(z){var p=z.isCued()||this.api.PV()&&this.api.getPresentingPlayerType()!==3;p!==this.isCued&&(this.isCued=p,this.dW&&this.vy(this.dW),this.dW=this.Z(this.api.Hq(),"touchstart",this.qIH,void 0,p));var c=this.l9,B=z.isPlaying()&&!g.r(z,32)||this.api.Ek();db(c,128,!B);c=this.l9;B=this.api.getPresentingPlayerType()===3;db(c,256,B);c=this.api.getRootNode();g.r(z,2)?B=[Iq.ENDED]:(B=[],g.r(z,8)?B.push(Iq.PLAYING):g.r(z,4)&&B.push(Iq.PAUSED),g.r(z,1)&&!g.r(z,32)&&B.push(Iq.BUFFERING),g.r(z, 32)&&B.push(Iq.SEEKING),g.r(z,64)&&B.push(Iq.UNSTARTED));g.Xe(this.PF,B)||(g.M5(c,this.PF),this.PF=B,g.q5(c,B));B=this.api.N();var H=g.r(z,2);a:{var T=this.api.N();var b=T.controlsType;switch(b){case "2":case "0":T=!1;break a}T=b==="3"&&!g.r(z,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:xvl(Kn(this.api.mU())))||this.api.oX()||g.yB(T)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Yf(c,"ytp-hide-controls",!T);g.Yf(c,"ytp-native-controls",B.controlsType==="3"&&!p&&!H&&!this.YK);g.r(z, 128)&&!g.yB(B)?(this.dE||(this.dE=new g.eZ(this.api),g.l(this,this.dE),g.F7(this.api,this.dE.element,4)),this.dE.K(z.DN),this.dE.show()):this.dE&&(this.dE.dispose(),this.dE=null)}; g.V.mO=function(){return this.api.Ll()&&this.api.Qd()?(this.api.kQ(!1,!1),!0):this.api.rJ()?(g.CP(this.api,!0),!0):!1}; g.V.onMutedAutoplayChange=function(z){this.YK=z;this.Oo()}; g.V.lz=function(){return!1}; g.V.jm=function(){return!this.lz()&&(this.api.getPlayerSize().width=0&&p.left>=0&&p.bottom>p.top&&p.right>p.left?p:null;p=this.size;z=z.clone();p=p.clone();B&&(b=p,H=5,(H&65)==65&&(z.x=B.right)&&(H&=-2),(H&132)==132&&(z.y=B.bottom)&&(H&=-5),z.xB.right&&(b.width=Math.min(B.right-z.x,T+b.width-B.left),b.width=Math.max(b.width,0))),z.x+b.width>B.right&&H&1&&(z.x=Math.max(B.right-b.width,B.left)),z.yB.bottom&&(b.height=Math.min(B.bottom-z.y,T+b.height-B.top),b.height=Math.max(b.height,0))),z.y+b.height>B.bottom&&H&4&&(z.y=Math.max(B.bottom-b.height,B.top)));B=new g.J_(0,0,0,0);B.left=z.x;B.top=z.y;B.width= p.width;B.height=p.height;g.Rj(this.element,new g.ho(B.left,B.top));g.CG(this.X);this.X.Z(g$(this),"contextmenu",this.ZBI);this.X.Z(this.T,"fullscreentoggled",this.onFullscreenToggled);this.X.Z(this.T,"pageTransition",this.Z7)}; g.V.ZBI=function(z){if(!z.defaultPrevented){var p=LG(z);g.X4(this.element,p)||this.uQ();this.T.N().disableNativeContextMenu&&z.preventDefault()}}; g.V.onFullscreenToggled=function(){this.uQ();YKW(this)}; g.V.Z7=function(){this.uQ()};g.Y(pW,g.Q);pW.prototype.onClick=function(){var z=this,p,c,B,H;return g.L(function(T){if(T.W==1)return p=z.api.N(),c=z.api.getVideoData(),B=z.api.getPlaylistId(),H=p.getVideoUrl(c.videoId,B,void 0,!0),g.a(T,PKB(z,H),2);T.K&&hdV(z);z.api.logClick(z.element);g.Ai(T)})}; pW.prototype.Bq=function(){this.updateValue("icon",{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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.visible=mUx(this);g.Yf(this.element,"ytp-copylink-button-visible",this.visible); this.DP(this.visible);this.tooltip.Tk();this.api.logVisibility(this.element,this.visible&&this.L)}; pW.prototype.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.api.logVisibility(this.element,this.visible&&z)}; pW.prototype.m0=function(){g.Q.prototype.m0.call(this);g.Jn(this.element,"ytp-copylink-button-visible")};g.Y(cI,g.Q);cI.prototype.show=function(){g.Q.prototype.show.call(this);g.H4(this.K)}; cI.prototype.hide=function(){this.X.stop();this.D=0;this.jp("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Jn(this.element,"ytp-chapter-seek");g.Jn(this.element,"ytp-time-seeking");g.Q.prototype.hide.call(this)}; cI.prototype.u1=function(z,p,c,B){this.D=z===this.G?this.D+B:B;this.G=z;var H=z===-1?this.U:this.S;H&&this.T.logClick(H);this.V?this.K.stop():g.TV(this.K);this.X.start();this.element.setAttribute("data-side",z===-1?"back":"forward");var T=3*this.T.Hq().getPlayerSize().height;H=this.T.Hq().getPlayerSize();H=H.width/3-3*H.height;this.W.style.width=T+"px";this.W.style.height=T+"px";z===1?(this.W.style.left="",this.W.style.right=H+"px"):z===-1&&(this.W.style.right="",this.W.style.left=H+"px");var b=T* 2.5;T=b/2;var D=this.jp("ytp-doubletap-ripple");D.style.width=b+"px";D.style.height=b+"px";z===1?(z=this.T.Hq().getPlayerSize().width-p+Math.abs(H),D.style.left="",D.style.right=z-T+"px"):z===-1&&(z=Math.abs(H)+p,D.style.right="",D.style.left=z-T+"px");D.style.top="calc((33% + "+Math.round(c)+"px) - "+T+"px)";if(c=this.jp("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");ACQ(this,this.V?this.D:B)};g.Y(OYW,Kj);g.V=OYW.prototype;g.V.Sc=function(z){this.fH||(this.fH=new yI(this.T),g.l(this,this.fH));var p,c;if((p=this.WM)==null?0:(c=p.menu)==null?0:c.menuRenderer)this.fH.open(this.WM.menu.menuRenderer,z.target),z.preventDefault()}; g.V.VA=function(){return!!this.W}; g.V.F1=function(){return!!this.W}; g.V.dT=function(z){z.target===this.overflowButton.element?z.preventDefault():(this.Wy&&this.T.AD("innertubeCommand",this.Wy),this.hh(!1))}; g.V.a6=function(){this.hh(!0);var z,p;((z=this.W)==null?0:(p=z.bannerData)==null?0:p.dismissedStatusKey)&&this.gt.push(this.W.bannerData.dismissedStatusKey);this.pU()}; g.V.T2=function(){this.pU();bk(this)}; g.V.YvH=function(z){var p=this,c;if(z.id!==((c=this.W)==null?void 0:c.identifier)){this.pU();c=g.m(this.T$);for(var B=c.next();!B.done;B=c.next()){var H=B.value,T=void 0,b=void 0;if((B=(T=H)==null?void 0:(b=T.bannerData)==null?void 0:b.itemData)&&H.identifier===z.id){b=T=void 0;var D=((T=H)==null?void 0:(b=T.bannerData)==null?void 0:b.dismissedStatusKey)||"";if(this.gt.includes(D))break;this.W=H;this.banner.element.setAttribute("aria-label",B.accessibilityLabel||"");B.trackingParams&&(this.X=!0,this.T.setTrackingParams(this.badge.element, B.trackingParams));this.U.show();$R(this);this.Ra.DP(!B.stayInApp);yCY(this);RdY(this);T7(this);this.Wy=g.I(B.onTapCommand,Qy);if(H=g.I(B.menuOnTap,Qy))this.WM=g.I(H,FrK);H=void 0;this.banner.update({thumbnail:(H=(B.thumbnailSources||[])[0])==null?void 0:H.url,title:B.productTitle,price:B.priceReplacementText?B.priceReplacementText:B.price,salesOriginalPrice:K5Q(this),priceDropReferencePrice:uxE(this),promotionText:$UN(this),priceA11yText:a9u(this),affiliateDisclaimer:B.affiliateDisclaimer,vendor:ZYE(this)}); D=b=T=H=void 0;((H=B)==null?0:(T=H.hiddenProductOptions)==null?0:T.showDropCountdown)&&((b=B)==null?0:(D=b.hiddenProductOptions)==null?0:D.dropTimestampMs)&&(this.Zw=new g.B4(function(){W5V(p)},1E3),this.Ra.hide(),this.countdownTimer.show(),W5V(this)); this.T.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&wlN(this)&&(this.Ca=new g.B4(function(){SKE(p)},1E3),SKE(this))}}}}; g.V.pU=function(){this.W&&(this.W=void 0,this.YH())}; g.V.onVideoDataChange=function(z,p){var c=this;z==="dataloaded"&&bk(this);var B,H,T;z=g.I((B=p.getWatchNextResponse())==null?void 0:(H=B.playerOverlays)==null?void 0:(T=H.playerOverlayRenderer)==null?void 0:T.productsInVideoOverlayRenderer,I5L);this.overflowButton.show();this.dismissButton.hide();var b=z==null?void 0:z.featuredProductsEntityKey;this.trendingOfferEntityKey=z==null?void 0:z.trendingOfferEntityKey;this.T$.length||(dUu(this,b),T7(this));var D;(D=this.LB)==null||D.call(this);this.LB=g.VN.subscribe(function(){dUu(c, b);T7(c)})}; g.V.m0=function(){bk(this);yCY(this);RdY(this);Kj.prototype.m0.call(this)};g.Y(I9B,g.Q);I9B.prototype.onClick=function(){this.T.logClick(this.element,this.K)};g.Y(j_Q,g.kG);g.V=j_Q.prototype;g.V.show=function(){g.kG.prototype.show.call(this);this.T.publish("infopaneldetailvisibilitychange",!0);this.T.logVisibility(this.element,!0);F5i(this,!0)}; g.V.hide=function(){g.kG.prototype.hide.call(this);this.T.publish("infopaneldetailvisibilitychange",!1);this.T.logVisibility(this.element,!1);F5i(this,!1)}; g.V.getId=function(){return this.X}; g.V.o_=function(){return this.itemData.length}; g.V.onVideoDataChange=function(z,p){if(p){var c,B,H,T;this.update({title:((c=p.Iu)==null?void 0:(B=c.title)==null?void 0:B.content)||"",body:((H=p.Iu)==null?void 0:(T=H.bodyText)==null?void 0:T.content)||""});var b;z=((b=p.Iu)==null?void 0:b.trackingParams)||null;this.T.setTrackingParams(this.element,z);b=g.m(this.itemData);for(z=b.next();!z.done;z=b.next())z.value.dispose();this.itemData=[];var D;if((D=p.Iu)==null?0:D.ctaButtons)for(p=g.m(p.Iu.ctaButtons),D=p.next();!D.done;D=p.next())if(D=g.I(D.value, Wr3))D=new I9B(this.T,D,this.W),D.NP&&(this.itemData.push(D),D.Ia(this.items))}}; g.V.m0=function(){this.hide();g.kG.prototype.m0.call(this)};g.Y(Q_V,g.Q);g.V=Q_V.prototype;g.V.onVideoDataChange=function(z,p){nEx(this,p);this.OR&&UUY(this,this.OR)}; g.V.J7=function(z){var p=this.T.getVideoData();this.videoId!==p.videoId&&nEx(this,p);UUY(this,z.state);this.OR=z.state}; g.V.ZO=function(z){(this.D=z)?this.hide():this.W&&this.show()}; g.V.PZ=function(){this.K||this.S_();this.showControls=!0}; g.V.N5=function(){this.K||this.uQ();this.showControls=!1}; g.V.S_=function(){var z;if((z=this.T)==null?0:z.Y("embeds_web_enable_info_panel_sizing_fix")){var p;z=(p=this.T)==null?void 0:p.getPlayerSize();p=z.width<380;var c;z=z.height<(((c=this.T)==null?0:c.isEmbedsShortsMode())?400:280);var B,H;if((((B=this.T)==null?0:B.getPlayerStateObject().isCued())||((H=this.T)==null?0:g.r(H.getPlayerStateObject(),1024)))&&p&&z)return}this.W&&!this.D&&(this.fade.show(),this.T.publish("infopanelpreviewvisibilitychange",!0),this.T.logVisibility(this.element,!0))}; g.V.uQ=function(){this.W&&!this.D&&(this.fade.hide(),this.T.publish("infopanelpreviewvisibilitychange",!1),this.T.logVisibility(this.element,!1))}; g.V.GO$=function(){this.K=!1;this.showControls||this.uQ()};var kc3={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(kc3).reduce(function(z,p){z[kc3[p]]=p;return z},{}); var gym={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(gym).reduce(function(z,p){z[gym[p]]=p;return z},{}); var Gcg={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Gcg).reduce(function(z,p){z[Gcg[p]]=p;return z},{});var Nvm,fQ3;Nvm=[{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"}];fQ3=[{option:0,text:V1(0)},{option:.25,text:V1(.25)},{option:.5,text:V1(.5)},{option:.75,text:V1(.75)},{option:1,text:V1(1)}]; g.xh=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Nvm},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:V1(.5)},{option:-1,text:V1(.75)},{option:0,text:V1(1)},{option:1,text:V1(1.5)},{option:2, text:V1(2)},{option:3,text:V1(3)},{option:4,text:V1(4)}]},{option:"background",text:"Background color",options:Nvm},{option:"backgroundOpacity",text:"Background opacity",options:fQ3},{option:"windowColor",text:"Window color",options:Nvm},{option:"windowOpacity",text:"Window opacity",options:fQ3},{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:V1(.25)},{option:.5,text:V1(.5)},{option:.75,text:V1(.75)},{option:1,text:V1(1)}]}];var z2K=[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.Y(f9i,g.or);g.V=f9i.prototype; g.V.Oh=function(z){z.repeat||(this.D.SW=!1);var p=!1,c=z.keyCode,B=LG(z),H=!z.altKey&&!z.ctrlKey&&!z.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||z2K.includes(c)),T=!1,b=!1,D=this.api.N();z.defaultPrevented?(H=!1,b=!0):D.Q8&&!this.api.isMutedByEmbedsMutedAutoplay()&&(H=!1);if(c===9)p=!0;else{if(B)switch(c){case 32:case 13:if(B.tagName==="BUTTON"||B.tagName==="A"||B.tagName==="INPUT")p=!0,H=!1;else if(H){var t=B.getAttribute("role");!t||t!=="option"&&t!=="button"&&t.indexOf("menuitem")!==0|| (p=!0,B.click(),T=!0)}break;case 37:case 39:case 36:case 35:p=B.getAttribute("role")==="slider";break;case 38:case 40:t=B.getAttribute("role"),B=c===38?B.previousSibling:B.nextSibling,t==="slider"?p=!0:H&&(t==="option"?(B&&B.getAttribute("role")==="option"&&B.focus(),T=p=!0):t&&t.indexOf("menuitem")===0&&(B&&B.hasAttribute("role")&&B.getAttribute("role").indexOf("menuitem")===0&&B.focus(),T=p=!0))}if(H&&!T)switch(c){case 38:T=Math.min(this.api.getVolume()+5,100);kF(this.ws,T,!1);this.api.setVolume(T); b=T=!0;break;case 40:T=Math.max(this.api.getVolume()-5,0);kF(this.ws,T,!0);this.api.setVolume(T);b=T=!0;break;case 36:this.api.iz()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),b=T=!0);break;case 35:this.api.iz()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),b=T=!0)}}p&&t8(this,!0);(p||b)&&this.l9.Cm();(T||H&&this.handleGlobalKeyDown(c,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code,z.repeat))&&z.preventDefault();D.G&&(z={keyCode:z.keyCode, altKey:z.altKey,ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,handled:z.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.iA("onKeyPress",z))}; g.V.gR=function(z){var p=z.keyCode;(!this.api.Y("web_player_spacebar_control_bugfix")||this.api.Y("web_player_spacebar_control_bugfix")&&!this.X)&&this.handleGlobalKeyUp(p,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code)&&z.preventDefault()}; g.V.handleGlobalKeyUp=function(z,p,c,B,H,T,b){this.api.publish("keyboardserviceglobalkeyup",{keyCode:z,shiftKey:p,ctrlKey:c,altKey:B,metaKey:H,key:T,code:b});p=!1;if(this.D.SW)return p;(H=g.Iv(this.api.mU()))&&(H=H.dM)&&H.EH&&(H.Bp(z),p=!0);switch(z){case 9:t8(this,!0);p=!0;break;case 32:if(this.api.Y("web_speedmaster_spacebar_control")&&(!this.api.Y("web_player_spacebar_control_bugfix")&&!this.X||this.api.Y("web_player_spacebar_control_bugfix"))&&!this.api.N().Q8){var D,t;z=(D=this.progressBar)== null?void 0:(t=D.K)==null?void 0:t.isEnabled;p=this.YP(z)}break;case 39:(bb?B:c)&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),D=(D=this.api.getVideoData())?D.Rk:[],t=kfx(D,this.api.getCurrentTime()*1E3),t!==-1&&this.W!=null&&(HI(this.W,1,D[t].title),this.api.seekTo(D[t].startTime/1E3,void 0,void 0,void 0,52),p=!0))}return p}; g.V.handleGlobalKeyDown=function(z,p,c,B,H,T,b,D){D||(this.D.SW=!1);var t=!1,X=this.api.N();if(X.Q8&&!this.api.isMutedByEmbedsMutedAutoplay())return t;var x=g.Iv(this.api.mU());if(x&&(x=x.dM)&&x.EH)switch(z){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:t=x.GX(z)}X.V||t||(t=T||String.fromCharCode(z).toLowerCase(),this.K+=t,"awesome".indexOf(this.K)===0?(t=!0,7===this.K.length&&LmN(this.api.getRootNode(),"ytp-color-party")):(this.K=t,t="awesome".indexOf(this.K)===0));if(!t&&(!this.api.isMutedByEmbedsMutedAutoplay()|| z2K.includes(z))){var E=this.api.getVideoData(),q,J;x=(q=this.progressBar)==null?void 0:(J=q.K)==null?void 0:J.isEnabled;q=E?E.Rk:[];J=bb?B:c;switch(z){case 80:p&&!X.fH&&(Us(this.ws,dG_(),"Previous"),this.api.previousVideo(),t=!0);break;case 78:p&&!X.fH&&(Us(this.ws,LB(),"Next"),this.api.nextVideo(),t=!0);break;case 74:this.api.iz()&&(this.api.startSeekCsiAction(),this.W?this.api.Y("enable_key_press_seek_logging")?(t=Xn(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),BI(this.W, -1,10,t)):BI(this.W,-1,10):Us(this.ws,{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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.iz()&&(this.api.startSeekCsiAction(),this.W?this.api.Y("enable_key_press_seek_logging")?(t=Xn(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),BI(this.W,1,10,t)):BI(this.W,1,10):Us(this.ws,{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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.iz()&&(this.api.startSeekCsiAction(),J?(J=gEx(q,this.api.getCurrentTime()*1E3),J!==-1&&this.W!=null&&(HI(this.W,-1,q[J].title),this.api.seekTo(q[J].startTime/1E3,void 0,void 0,void 0,53),t=!0)):(this.W?this.api.Y("enable_key_press_seek_logging")?(t=Xn(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),BI(this.W,-1,5,t)):BI(this.W,-1,5):Us(this.ws,{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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.iz()&&(this.api.startSeekCsiAction(),J?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||(J=kfx(q,this.api.getCurrentTime()*1E3),J!==-1&&this.W!=null&&(HI(this.W,1,q[J].title),this.api.seekTo(q[J].startTime/1E3,void 0,void 0,void 0,52),t=!0)):(this.W!=null?this.api.Y("enable_key_press_seek_logging")?(t=Xn(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),BI(this.W,1,5,t)):BI(this.W, 1,5):Us(this.ws,{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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(),kF(this.ws,this.api.getVolume(),!1)):(this.api.mute(),kF(this.ws,0,!0));t=!0;break;case 32:t=this.api.Y("web_speedmaster_spacebar_control")?!this.api.N().fH:this.YP(x);break;case 75:t=this.YP(x);break;case 190:p?X.enableSpeedOptions&&psu(this)&&(t=this.api.getPlaybackRate(),this.api.setPlaybackRate(t+.25,!0),g1V(this.ws,!1),t=!0):this.api.iz()&&(this.step(1),t=!0);break;case 188:p? X.enableSpeedOptions&&psu(this)&&(t=this.api.getPlaybackRate(),this.api.setPlaybackRate(t-.25,!0),g1V(this.ws,!0),t=!0):this.api.iz()&&(this.step(-1),t=!0);break;case 70:Vtv(this.api)&&(this.api.toggleFullscreen().catch(function(){}),t=!0); break;case 27:x?(this.progressBar.hS(),t=!0):this.V()&&(t=!0)}if(X.controlsType!=="3")switch(z){case 67:g.R0(this.api.mU())&&(X=this.api.getOption("captions","track"),this.api.toggleSubtitles(),GpY(this.ws,!X||X&&!X.displayName),t=!0);break;case 79:E8(this,"textOpacity");break;case 87:E8(this,"windowOpacity");break;case 187:case 61:E8(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:E8(this,"fontSizeIncrement",!0,!0)}var M;p||c||B||(z>=48&&z<=57?M=z-48:z>=96&&z<=105&&(M=z-96));M!=null&&this.api.iz()&& (this.api.startSeekCsiAction(),X=this.api.getProgressState(),this.api.seekTo(M/10*(X.seekableEnd-X.seekableStart)+X.seekableStart,void 0,void 0,void 0,81),t=!0);t&&this.l9.Cm()}this.X||this.api.publish("keyboardserviceglobalkeydown",{keyCode:z,shiftKey:p,ctrlKey:c,altKey:B,metaKey:H,key:T,code:b,repeat:D},this.D);return t}; g.V.step=function(z){this.api.iz();if(this.api.getPlayerStateObject().isPaused()){var p=this.api.getVideoData().K;p&&(p=p.video)&&this.api.seekBy(z/(p.fps||30),void 0,void 0,z>0?77:78)}}; g.V.YP=function(z){if(!this.api.N().fH){var p;var c,B=(p=this.api.getVideoData())==null?void 0:(c=p.getPlayerResponse())==null?void 0:c.playabilityStatus;if(B){var H;p=((H=g.I(B.miniplayer,koz))==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else p=!1;p&&this.api.AD("onExpandMiniplayer");z?this.progressBar.VY():(z=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.ws.kS(z),z?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.V.m0=function(){g.TV(this.L);g.or.prototype.m0.call(this)};g.Y(g.q$,g.Q);g.q$.prototype.QU=cD(11); g.q$.prototype.Bq=function(){var z=this.T.N(),p=z.D||this.T.Y("web_player_hide_overflow_button_if_empty_menu")&&this.xF.isEmpty();z=g.yB(z)&&g.lg(this.T)&&g.r(this.T.getPlayerStateObject(),128);var c=this.T.getPlayerSize();this.visible=this.T.jm()&&!z&&c.width>=240&&!g.VP(this.T.getVideoData())&&!p&&!this.W&&!this.T.isEmbedsShortsMode();g.Yf(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.T.Tk();this.T.logVisibility(this.element,this.visible&&this.L)}; g.q$.prototype.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.T.logVisibility(this.element,this.visible&&z)}; g.q$.prototype.m0=function(){g.Q.prototype.m0.call(this);g.Jn(this.element,"ytp-overflow-button-visible")};g.Y(ctD,g.kG);g.V=ctD.prototype;g.V.Cg=function(z){z=LG(z);g.X4(this.element,z)&&(g.X4(this.W,z)||g.X4(this.closeButton,z)||Gg(this))}; g.V.uQ=function(){g.kG.prototype.uQ.call(this);this.T.Se(this.element)}; g.V.show=function(){this.EH&&this.T.publish("OVERFLOW_PANEL_OPENED");g.kG.prototype.show.call(this);this.element.setAttribute("aria-modal","true");HA_(this,!0)}; g.V.hide=function(){g.kG.prototype.hide.call(this);this.element.removeAttribute("aria-modal");HA_(this,!1)}; g.V.onFullscreenToggled=function(z){!z&&this.Cl()&&Gg(this)}; g.V.isEmpty=function(){return this.actionButtons.length===0}; g.V.focus=function(){for(var z=g.m(this.actionButtons),p=z.next();!p.done;p=z.next())if(p=p.value,p.EH){p.focus();break}};g.Y(iAx,g.Q);iAx.prototype.onClick=function(z){g.EB(z,this.api)&&this.api.playVideoAt(this.index)};g.Y(T0Q,g.kG);g.V=T0Q.prototype;g.V.show=function(){g.kG.prototype.show.call(this);this.W.Z(this.api,"videodatachange",this.o9);this.W.Z(this.api,"onPlaylistUpdate",this.o9);this.o9()}; g.V.hide=function(){g.kG.prototype.hide.call(this);g.CG(this.W);this.updatePlaylist(null)}; g.V.o9=function(){this.updatePlaylist(this.api.getPlaylist());this.api.N().D&&(this.jp("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.vy(this.D),this.D=null))}; g.V.ib=function(){var z=this.playlist,p=z.author,c=p?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",B={CURRENT_POSITION:String(z.index+1),PLAYLIST_LENGTH:String(z.getLength())};p&&(B.AUTHOR=p);this.update({title:z.title,subtitle:g.RD(c,B),playlisturl:this.api.getVideoUrl(!0)});p=z.K;if(p===this.X)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[z.index];else{c=g.m(this.playlistData);for(B=c.next();!B.done;B=c.next())B.value.dispose(); c=z.getLength();this.playlistData=[];for(B=0;B=this.K&&!z.D&&!p.isAd()&&!this.api.isEmbedsShortsMode()}else z=!1;this.visible=z;this.DP(this.visible);g.Yf(this.element,"ytp-search-button-visible",this.visible);g.Yf(this.element,"ytp-show-search-title",!this.api.jm());this.api.logVisibility(this.element,this.visible&&this.L)}; mz.prototype.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.api.logVisibility(this.element,this.visible&&z)};g.Y(g.h8,g.Q);g.V=g.h8.prototype;g.V.j0=cD(8);g.V.onClick=function(){var z=this,p=this.api.N(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),B=this.api.getPlaylistId();p=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):p.getVideoUrl(c.videoId,B,void 0,!0);if(navigator.share)try{var H=navigator.share({title:c.title,url:p});H instanceof Promise&&H.catch(function(T){qqD(z,T)})}catch(T){T instanceof Error&&qqD(this,T)}else this.W.mO(),Gg(this.D,this.element,!1); this.api.logClick(this.element)}; g.V.Bq=function(){var z=this.api.N(),p=this.api.isEmbedsShortsMode();g.Yf(this.element,"ytp-show-share-title",g.yB(z)&&!p);this.W.lz()&&p?(z=(this.api.Hq().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.mm(this.element,"right",z+"px")):p&&g.mm(this.element,"right","0px");this.updateValue("icon",{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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=EiD(this);g.Yf(this.element,"ytp-share-button-visible",this.visible);this.DP(this.visible);this.tooltip.Tk();this.api.logVisibility(this.element,EiD(this)&&this.L)}; g.V.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.api.logVisibility(this.element,this.visible&&z)}; g.V.m0=function(){g.Q.prototype.m0.call(this);g.Jn(this.element,"ytp-share-button-visible")};g.Y(M1Y,g.kG);g.V=M1Y.prototype;g.V.HZ=function(z){z=LG(z);g.X4(this.V,z)||g.X4(this.closeButton,z)||Gg(this)}; g.V.uQ=function(){g.kG.prototype.uQ.call(this);this.tooltip.Se(this.element);this.api.logVisibility(this.W,!1);for(var z=g.m(this.D),p=z.next();!p.done;p=z.next())p=p.value,this.api.hasVe(p.element)&&this.api.logVisibility(p.element,!1)}; g.V.show=function(){var z=this.EH;g.kG.prototype.show.call(this);this.Bq();z||this.api.AD("onSharePanelOpened")}; g.V.iaA=function(){this.EH&&this.Bq()}; g.V.Bq=function(){var z=this;g.Eo(this.element,"ytp-share-panel-loading");g.Jn(this.element,"ytp-share-panel-fail");var p=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.X.checked;p.getSharePanelCommand&&BY(this.api.Jn(),p.getSharePanelCommand,{includeListId:c}).then(function(B){z.qZ()||(g.Jn(z.element,"ytp-share-panel-loading"),m4D(z,B))}); p=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",p);this.updateValue("linkText",p);this.updateValue("shareLinkWithUrl",g.RD("Share link $URL",{URL:p}));Ma(this.W);this.api.logVisibility(this.W,!0)}; g.V.onFullscreenToggled=function(z){!z&&this.Cl()&&Gg(this)}; g.V.focus=function(){this.W.focus()}; g.V.m0=function(){g.kG.prototype.m0.call(this);YqW(this)};g.Y(AtN,Kj);g.V=AtN.prototype;g.V.m0=function(){$4v(this);Kj.prototype.m0.call(this)}; g.V.dT=function(z){z.target!==this.dismissButton.element&&(this.hh(!1),this.T.AD("innertubeCommand",this.onClickCommand))}; g.V.a6=function(){this.NZ=!0;this.hh(!0);this.YH()}; g.V.kZI=function(z){this.G=z;this.YH()}; g.V.onVideoDataChange=function(z,p){if(z=!!p.videoId&&this.videoId!==p.videoId)this.videoId=p.videoId,this.NZ=!1,this.tD=!0,this.S=this.Dt=!1,$4v(this),SqN(this,!1),this.K=this.W=!1,A8(this),OAW(this);if(z||!p.videoId)this.MZ=this.X=!1;var c,B;if(p==null?0:(c=p.getPlayerResponse())==null?0:(B=c.videoDetails)==null?0:B.isLiveContent)this.mV(!1);else{var H,T,b;p=g.I((H=p.getWatchNextResponse())==null?void 0:(T=H.playerOverlays)==null?void 0:(b=T.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer, I5L);this.G=this.enabled=!1;if(p){if(H=p==null?void 0:p.featuredProductsEntityKey){T=g.VN.getState().entities;var D;if((D=mZ(T,"featuredProductsEntity",H))==null?0:D.productsData){this.mV(!1);return}}this.enabled=!0;if(!this.X){var t;D=(t=p.badgeInteractionLogging)==null?void 0:t.trackingParams;(this.X=!!D)&&this.T.setTrackingParams(this.badge.element,D||null)}if(!this.MZ){var X;if(this.MZ=!((X=p.dismissButton)==null||!X.trackingParams)){var x;this.T.setTrackingParams(this.dismissButton.element,((x= p.dismissButton)==null?void 0:x.trackingParams)||null)}}p.isContentForward&&(t=p.productsData,SqN(this,!0),OAW(this),t=RZY(this,t),X=[],t.length>0&&X.push(t[0]),t.length>1&&(x=new g.Q({j:"div",B:"ytp-suggested-action-more-products-icon"}),g.l(this,x),X.push(x),X.push.apply(X,g.A(t.slice(1)))),this.V=new g.Q({j:"div",J:X,B:"ytp-suggested-action-content-forward-container"}),g.l(this,this.V),this.YA.element.append(this.V.element));this.text=g.wJ(p.text);var E;if(t=(E=p.dismissButton)==null?void 0:E.a11yLabel)this.OH= g.wJ(t);this.onClickCommand=p.onClickCommand;this.timing=p.timing;this.KN()}h8N(this);$R(this);this.YH()}}; g.V.VA=function(){return!this.G&&this.enabled&&!this.NZ&&!this.T.jm()&&!this.FQ&&(this.S||this.tD)}; g.V.Yh=function(z){Kj.prototype.Yh.call(this,z);if(this.W||this.K)this.timing&&PI(this.timing.preview)&&(this.W=!1,A8(this),this.K=!1,A8(this),this.T.gs("shopping_overlay_preview_collapsed"),this.T.gs("shopping_overlay_preview_expanded"),z=O8(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),PI(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.T.gs("shopping_overlay_expanded"),z.end=this.timing.expanded.endSec*1E3),this.T.KN([z])), this.Dt=!0,$R(this);A8(this)}; g.V.mV=function(z){(this.S=z)?(Ss(this),$R(this,!1)):($4v(this),this.rA.start());this.YH()}; g.V.KN=function(z){var p=this.timing;z=(z===void 0?0:z)+this.T.getCurrentTime();var c=[],B=p.visible,H=p.preview;p=p.expanded;PI(B)&&(hZu(B,z),c.push(O8(B.startSec,B.endSec,"shopping_overlay_visible")));PI(H)&&(hZu(H,z),B=H.startSec+1,c.push(O8(H.startSec,B,"shopping_overlay_preview_collapsed")),c.push(O8(B,H.endSec,"shopping_overlay_preview_expanded")));PI(p)&&(hZu(p,z),c.push(O8(p.startSec,p.endSec,"shopping_overlay_expanded")));this.T.KN(c)};g.Y(aEx,g.Q); aEx.prototype.Bq=function(){var z=this.api.N();this.DP(g.yB(z)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.EH);var p=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!p.videoId&&!!p.isListed&&!!p.author&&!!p.FQ&&!!p.profilePicture:g.yB(z)&&(c=!!p.videoId&&!!p.FQ&&!!p.profilePicture&&!g.VP(p)&&!z.D&&!(z.S&&this.api.getPlayerSize().width<200));var B=p.profilePicture;z=g.yB(z)?p.expandedTitle:p.author;B=B===void 0? "":B;z=z===void 0?"":z;c?(this.K!==B&&(this.W.style.backgroundImage="url("+B+")",this.K=B),this.updateValue("channelLogoLabel",g.RD("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:z})),g.Eo(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Jn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.W,c&&this.L);this.api.logVisibility(this.channelName,c&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=p.uD);this.updateValue("expandedTitle",p.expandedTitle)};g.Y(ws,g.kG);ws.prototype.show=function(){g.kG.prototype.show.call(this);this.W.start()}; ws.prototype.hide=function(){g.kG.prototype.hide.call(this);this.W.stop()}; ws.prototype.le=function(z,p){z==="dataloaded"&&((this.C2=p.C2,this.y4=p.y4,isNaN(this.C2)||isNaN(this.y4))?this.D&&(this.T.gs("intro"),this.T.removeEventListener(g.E5("intro"),this.G),this.T.removeEventListener(g.qT("intro"),this.V),this.T.removeEventListener("onShowControls",this.X),this.hide(),this.D=!1):(this.T.addEventListener(g.E5("intro"),this.G),this.T.addEventListener(g.qT("intro"),this.V),this.T.addEventListener("onShowControls",this.X),z=new g.Xq(this.C2,this.y4,{priority:9,namespace:"intro"}), this.T.KN([z]),this.D=!0))};g.Y(RK,g.Q);RK.prototype.onClick=function(){this.T.SP()}; RK.prototype.Bq=function(){var z=!0;g.yB(this.T.N())&&(z=z&&this.T.Hq().getPlayerSize().width>=480);this.DP(z);this.updateValue("icon",this.T.td()?{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,C:{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"}}]}: {j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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"}}]})};g.Y(Lgx,g.Q);Lgx.prototype.m0=function(){this.W=null;g.Q.prototype.m0.call(this)};g.Y(SW,g.Q);SW.prototype.onClick=function(){this.T.AD("innertubeCommand",this.K)}; SW.prototype.U=function(z){z!==this.V&&(this.update({title:z,ariaLabel:z}),this.V=z);z?this.show():this.hide()}; SW.prototype.S=function(){this.W.disabled=this.K==null;g.Yf(this.W,"ytp-chapter-container-disabled",this.W.disabled);this.xr()};g.Y($h,SW);$h.prototype.onClickCommand=function(z){g.I(z,br)&&this.xr()}; $h.prototype.updateVideoData=function(z,p){var c,B,H;z=g.I((c=p.getWatchNextResponse())==null?void 0:(B=c.playerOverlays)==null?void 0:(H=B.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,L8);c=g.I(z==null?void 0:z.playerBarActionButton,g.nl);this.T.Y("web_player_updated_entrypoint")&&(this.G=$x(c==null?void 0:c.text));this.K=c==null?void 0:c.command;SW.prototype.S.call(this)}; $h.prototype.xr=function(){var z=this.T.Y("web_player_updated_entrypoint")?this.G:"",p=this.X.W,c,B=((c=this.T.getLoopRange())==null?void 0:c.type)==="clips";if(p.length>1&&!B){z=this.T.getProgressState().current*1E3;c=D2(p,z);z=p[c].title||"Chapters";if(c!==this.currentIndex||this.D)this.T.AD("innertubeCommand",p[c].onActiveCommand),this.currentIndex=c;this.D=!1}else this.D=!0;SW.prototype.U.call(this,z)};g.Y(KW,g.Q);KW.prototype.D=function(z){g.r(z.state,32)?WgB(this,this.api.LD()):this.EH&&(g.r(z.state,16)||g.r(z.state,1))||this.fade.hide()}; KW.prototype.Jv=function(){var z=this.api.getPlayerStateObject();(g.r(z,32)||g.r(z,16))&&ytY(this)}; KW.prototype.X=function(){this.frameIndex=NaN;ytY(this)}; KW.prototype.hide=function(){this.W&&WgB(this,null);g.Q.prototype.hide.call(this)};g.Y(CXY,g.Q);g.V=CXY.prototype;g.V.onClick=function(){var z=this;if(this.T.N().FQ||this.T.N().S){this.T.logClick(this.element);try{this.T.toggleFullscreen().catch(function(p){z.Ok(p)})}catch(p){this.Ok(p)}}else Gg(this.message,this.element,!0)}; g.V.Ok=function(z){String(z).includes("fullscreen error")?g.oc(z):g.Fr(z);this.KY()}; g.V.KY=function(){this.disable();this.message.S_(this.element,!0)}; g.V.Za=function(){Rw()===this.T.getRootNode()?this.D.start():(this.D.stop(),this.message&&this.message.hide())}; g.V.TR=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var z=window.screen.width*.9,p=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),B=Math.max(window.outerHeight,window.innerHeight);if(c>B!==z>p){var H=c;c=B;B=H}z>c&&p>B&&this.KY()}}; g.V.disable=function(){var z=this;if(!this.message){var p=(Ar(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.kG(this.T,{j:"div",LH:["ytp-popup","ytp-generic-popup"],C:{role:"alert",tabindex:"0"},J:[p[0],{j:"a",C:{href:"https://support.google.com/youtube/answer/6276924", target:this.T.N().U},F3:p[2]},p[4]]},100,!0);this.message.hide();g.l(this,this.message);this.message.subscribe("show",function(c){z.K.AT(z.message,c)}); g.F7(this.T,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.W)();this.W=null}}; g.V.Bq=function(){var z=Vtv(this.T),p=this.T.N().S&&this.T.getPlayerSize().width<250;this.DP(z&&!p);var c;((c=this.T.N())==null?0:c.Y("embeds_use_parent_visibility_in_ve_logging"))?this.T.logVisibility(this.element,this.EH&&this.L):this.T.logVisibility(this.element,this.EH)}; g.V.Re=function(z){if(z){var p={j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"g",B:"ytp-fullscreen-button-corner-2",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{j:"g",B:"ytp-fullscreen-button-corner-3",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{j:"g",B:"ytp-fullscreen-button-corner-0",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{j:"g", B:"ytp-fullscreen-button-corner-1",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};z=g.d$(this.T,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.T.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.oc(c)})}else p={j:"svg", C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"g",B:"ytp-fullscreen-button-corner-0",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{j:"g",B:"ytp-fullscreen-button-corner-1",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{j:"g",B:"ytp-fullscreen-button-corner-2",J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{j:"g",B:"ytp-fullscreen-button-corner-3", J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},z=g.d$(this.T,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});z=this.message?null:z;this.update({title:z,icon:p});this.K.t8().Tk()}; g.V.m0=function(){this.message||((0,this.W)(),this.W=null);g.Q.prototype.m0.call(this)}; g.V.Ns=function(z){g.Q.prototype.Ns.call(this,z);var p;((p=this.T.N())==null?0:p.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.EH&&z)};g.Y(uk,g.Q);uk.prototype.onClick=function(){this.T.logClick(this.element);this.T.seekBy(this.W,!0);var z=this.W>0?1:-1,p=Math.abs(this.W),c=this.T.N_().Qc;c&&BI(c,z,p);this.K.isActive()?this.D=!0:(z=["ytp-jump-spin"],this.W<0&&z.push("backwards"),this.element.classList.add.apply(this.element.classList,g.A(z)),g.H4(this.K))};g.Y(aK,SW);aK.prototype.onClickCommand=function(z){g.I(z,l5l)&&this.xr()}; aK.prototype.updateVideoData=function(){var z,p;this.K=(z=lEY(this))==null?void 0:(p=z.onTap)==null?void 0:p.innertubeCommand;SW.prototype.S.call(this)}; aK.prototype.xr=function(){var z="",p=this.X.G,c,B=(c=lEY(this))==null?void 0:c.headerTitle;c=B?g.wJ(B):"";var H;B=((H=this.T.getLoopRange())==null?void 0:H.type)==="clips";p.length>1&&!B&&(z=this.T.getProgressState().current*1E3,H=s_B(p,z),z=H!=null?p[H].title:c,H!=null&&H!==this.currentIndex&&(this.T.AD("innertubeCommand",p[H].onActiveCommand),this.currentIndex=H));SW.prototype.U.call(this,z)};g.Y(Z2,g.Q);Z2.prototype.onClick=function(){this.T.AD("onCollapseMiniplayer");this.T.logClick(this.element)}; Z2.prototype.Bq=function(){this.visible=!this.T.isFullscreen();this.DP(this.visible);this.T.logVisibility(this.element,this.visible&&this.L)}; Z2.prototype.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.T.logVisibility(this.element,this.visible&&z)};g.Y(LW,g.Q);g.V=LW.prototype;g.V.p$=function(z){this.visible=z.width>=300||this.Ra;this.DP(this.visible);this.T.logVisibility(this.element,this.visible&&this.L)}; g.V.t5Z=function(){this.T.N().rA?this.T.isMuted()?this.T.unMute():this.T.mute():Gg(this.message,this.element,!0);this.T.logClick(this.element)}; g.V.onVolumeChange=function(z){this.setVolume(z.volume,z.muted)}; g.V.setVolume=function(z,p){var c=this,B=p?0:z/100,H=this.T.N();z=B===0?1:z>50?1:0;if(this.V!==z){var T=this.Dt;isNaN(T)?jqD(this,z):TTu(this.T$,function(D){jqD(c,T+(c.V-T)*D)},250); this.V=z}B=B===0?1:0;if(this.X!==B){var b=this.U;isNaN(b)?FgY(this,B):TTu(this.MZ,function(D){FgY(c,b+(c.X-b)*D)},250); this.X=B}H.rA&&(H=g.d$(this.T,"Mute","m"),B=g.d$(this.T,"Unmute","m"),this.updateValue("title",p?B:H),this.update({"data-title-no-tooltip":p?"Unmute":"Mute"}),this.tooltip.Tk())}; g.V.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.T.logVisibility(this.element,this.visible&&z)}; var viu=["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"],IEN=["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.Y(g.ds,g.Q);g.V=g.ds.prototype;g.V.onStateChange=function(z){this.Hy(z.state);var p;((p=this.T.N())==null?0:p.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.EH&&this.L)}; g.V.Hy=function(z){var p=g.yN(this.T.getVideoData()),c=!1;z.isOrWillBePlaying()?z=p?4:2:g.r(z,2)?(z=3,c=p):z=1;this.element.disabled=c;if(this.W!==z){p=null;switch(z){case 2:p=g.d$(this.T,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:p="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:p=g.d$(this.T,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:p="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}z=== 3?this.update({title:p,icon:oif(z)}):(this.update({title:p}),(p=oif(z))&&this.W&&this.W!==3?VAS(this.transition,this.element,p):this.updateValue("icon",p));this.tooltip.Tk();this.W=z}}; g.V.onVideoDataChange=function(){g.Yf(this.element,"ytp-play-button-playlist",g.lg(this.T))}; g.V.YP=function(z){this.T.logClick(this.element);if(this.T.getPlayerStateObject().isOrWillBePlaying())this.T.pauseVideo();else{if(this.T.isMinimized()&&this.T.getPlayerStateObject().isCued()){var p={},c;if((c=this.T.getVideoData())==null?0:c.V)p.cttAuthInfo={token:this.T.getVideoData().V,videoId:this.T.getVideoData().videoId};Gl("direct_playback",p);this.T.Ik().timerName="direct_playback"}this.T.playVideo()}this.T.isMinimized()&&(z==null?void 0:z.type)==="click"&&this.element.blur()}; g.V.Ns=function(z){g.Q.prototype.Ns.call(this,z);var p;((p=this.T.N())==null?0:p.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.EH&&z)};g.Y(g.WI,g.Q);g.V=g.WI.prototype;g.V.onVideoDataChange=function(){QqN(this);this.X&&(this.vy(this.X),this.X=null);this.videoData=this.T.getVideoData(1);if(this.playlist=this.T.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.X=this.Z(this.T,"progresssync",this.Ur);this.D=rtQ(this);ni_(this);this.n_(this.T.Hq().getPlayerSize())}; g.V.n_=function(z){z=z===void 0?this.T.Hq().getPlayerSize():z;var p,c=((p=this.T.getLoopRange())==null?void 0:p.type)==="clips";z=(g.lg(this.T)||this.W&&g.ov(this.T)&&!this.T.Y("web_hide_next_button")||U4f(this))&&!c&&(this.W||z.width>=400);this.DP(z);this.T.logVisibility(this.element,z)}; g.V.onClick=function(z){this.T.logClick(this.element);var p=!0;this.G?p=g.EB(z,this.T):z.preventDefault();p&&(this.W&&this.T.getPresentingPlayerType()===5?this.T.publish("ytoprerollinternstitialnext"):this.W?(xF(this.T.Ik()),this.T.publish("playlistnextbuttonclicked",this.element),this.T.nextVideo(!0)):this.D?this.T.seekTo(0):(xF(this.T.Ik()),this.T.publish("playlistprevbuttonclicked",this.element),this.T.previousVideo(!0)))}; g.V.Ur=function(){var z=rtQ(this);z!==this.D&&(this.D=z,ni_(this))}; g.V.m0=function(){this.K&&(this.K(),this.K=null);QqN(this);g.Q.prototype.m0.call(this)};g.Y(kTY,g.Q);g.V=kTY.prototype;g.V.WD=function(z){this.BF(z.pageX);this.G0(z.pageX+z.deltaX);gi_(this)}; g.V.BF=function(z){this.MZ=z-this.fH}; g.V.G0=function(z){z-=this.fH;!isNaN(this.MZ)&&this.thumbnails.length>0&&(this.U=z-this.MZ,this.thumbnails.length>0&&this.U!==0&&(this.D=this.S+this.U,z=pBf(this,this.D),this.D<=this.W/2&&this.D>=zB_(this)?(this.api.seekTo(z,!1,void 0,void 0,25),g.mm(this.tD,"transform","translateX("+(this.D-this.W/2)+"px)"),sqQ(this,z)):this.D=this.S))}; g.V.Er=function(){this.Dt&&(this.Dt.Lz=!0);var z=(0,g.y2)()-this.i8<300;if(Math.abs(this.U)<5&&!z){this.i8=(0,g.y2)();z=this.MZ+this.U;var p=this.W/2-z;this.BF(z);this.G0(z+p);gi_(this);this.api.logClick(this.V)}gi_(this)}; g.V.cD=function(){y1(this,this.api.getCurrentTime())}; g.V.play=function(z){this.api.seekTo(pBf(this,this.D),void 0,void 0,void 0,26);this.api.playVideo();z&&this.api.logClick(this.playButton)}; g.V.onExit=function(z){this.api.seekTo(this.rA,void 0,void 0,void 0,63);this.api.playVideo();z&&this.api.logClick(this.dismissButton)}; g.V.UW=function(z,p){this.fH=z;this.W=p;y1(this,this.api.getCurrentTime())}; g.V.enable=function(){this.isEnabled||(this.isEnabled=!0,this.rA=this.api.getCurrentTime(),sqQ(this,this.rA),g.Yf(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.YA=this.Z(this.element,"wheel",this.WD),this.logVisibility(this.isEnabled))}; g.V.disable=function(){this.isEnabled=!1;this.hide();g.Yf(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.YA&&this.vy(this.YA);this.logVisibility(this.isEnabled)}; g.V.reset=function(){this.disable();this.X=[];this.Ra=!1}; g.V.logVisibility=function(z){this.api.logVisibility(this.element,z);this.api.logVisibility(this.V,z);this.api.logVisibility(this.dismissButton,z);this.api.logVisibility(this.playButton,z)}; g.V.m0=function(){for(;this.K.length;){var z=void 0;(z=this.K.pop())==null||z.dispose()}g.Q.prototype.m0.call(this)}; g.Y(GTS,g.Q);g.Y(N0S,g.Q);g.Y(ckW,g.Q);g.Y(CW,g.Q);CW.prototype.XQ=function(z){return z==="PLAY_PROGRESS"?this.S:z==="LOAD_PROGRESS"?this.G:z==="LIVE_BUFFER"?this.V:this.D};irQ.prototype.update=function(z,p,c,B){c=c===void 0?0:c;this.width=p;this.X=c;this.W=p-c-(B===void 0?0:B);this.position=g.MQ(z,c,c+this.W);this.D=this.position-c;this.K=this.D/this.W};g.Y(TiB,g.Q);g.Y(g.vI,g.P_);g.V=g.vI.prototype; g.V.AB=function(){var z=!1,p=this.api.getVideoData();if(!p)return z;this.api.gs("timedMarkerCueRange");D1_(this);for(var c=g.m(p.WM),B=c.next();!B.done;B=c.next()){B=B.value;var H=void 0,T=(H=this.rA[B])==null?void 0:H.markerType;H=void 0;var b=(H=this.rA[B])==null?void 0:H.markers;if(!b)break;if(T==="MARKER_TYPE_TIMESTAMPS"){z=g.m(b);for(T=z.next();!T.done;T=z.next()){H=T.value;T=new TiB;b=void 0;T.title=((b=H.title)==null?void 0:b.simpleText)||"";T.timeRangeStartMillis=Number(H.startMillis);T.W= Number(H.durationMillis);var D=b=void 0;T.onActiveCommand=(D=(b=H.onActive)==null?void 0:b.innertubeCommand)!=null?D:void 0;JkE(this,T)}M$D(this,this.G);z=this.G;T=this.gJ;H=[];b=null;for(D=0;Dt&&(b.end=t);t=GfQ(t,t+x);H.push(t);b=t;T[t.id]=z[D].onActiveCommand}}this.api.KN(H);this.A8=this.rA[B];z=!0}else if(T==="MARKER_TYPE_HEATMAP"){B=this.rA[B];x=X=H=t=D=b=void 0;if(B&& B.markers){T=(H=(x=B.markersMetadata)==null?void 0:(X=x.heatmapMetadata)==null?void 0:X.minHeightDp)!=null?H:0;H=(b=(t=B.markersMetadata)==null?void 0:(D=t.heatmapMetadata)==null?void 0:D.maxHeightDp)!=null?b:60;b=this.W.length;D=null;for(t=0;t=x&&M<=E&&X.push(J)}H>0&&(this.Dt.style.height= H+"px");x=this.X[t];E=X;J=T;var P=H,O=t===0;O=O===void 0?!1:O;Biu(x,P);q=E;M=x.K;O=O===void 0?!1:O;var R=1E3/q.length,K=[];K.push({x:0,y:100});for(var Z=0;Z0&&(D=X[X.length-1])}g.IK(this)}H=void 0;T=[];if(B=(H=B.markersDecoration)==null?void 0:H.timedMarkerDecorations)for(B=g.m(B),H=B.next();!H.done;H=B.next())H=H.value,t=D=b=void 0,T.push({visibleTimeRangeStartMillis:(b=H.visibleTimeRangeStartMillis)!=null?b:-1,visibleTimeRangeEndMillis:(D=H.visibleTimeRangeEndMillis)!=null?D:-1,decorationTimeMillis:(t=H.decorationTimeMillis)!= null?t:NaN,label:H.label?g.wJ(H.label):""});B=T;this.heatMarkersDecorations=B}}p.tF=this.G;g.Yf(this.element,"ytp-timed-markers-enabled",z);return z}; g.V.UW=function(){g.IK(this);oK(this);M$D(this,this.G);if(this.K){var z=g.$m(this.element).x||0;this.K.UW(z,this.V)}}; g.V.onClickCommand=function(z){if(z=g.I(z,br)){var p=z.key;z.isVisible&&p&&P1f(this,p)}}; g.V.bNp=function(z){this.api.AD("innertubeCommand",this.gJ[z.id])}; g.V.xr=function(){oK(this);var z=this.api.getCurrentTime();(zthis.clipEnd)&&this.Y1()}; g.V.Ko=function(z){if(!z.defaultPrevented){var p=!1;switch(z.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);p=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);p=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);p=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);p=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&kh(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);p=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&kh(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),p=!0}p&&z.preventDefault()}}; g.V.le=function(z,p){this.updateVideoData(p,z==="newdata")}; g.V.oAH=function(){this.le("newdata",this.api.getVideoData())}; g.V.updateVideoData=function(z,p){p=p===void 0?!1:p;var c=!!z&&z.NP();if(c&&(bg(z)||SzN(this)?this.dJ=!1:this.dJ=z.allowLiveDvr,g.Yf(this.api.getRootNode(),"ytp-enable-live-buffer",!(z==null||!bg(z))),this.api.Y("enable_custom_playhead_parsing"))){var B,H,T,b=g.I((B=z.getWatchNextResponse())==null?void 0:(H=B.playerOverlays)==null?void 0:(T=H.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,L8);if(b==null?0:b.progressColor)for(B=0;B0;)this.X.pop().dispose();this.heatMarkersDecorations=[];this.WM={};var E;(E=this.K)==null||E.reset();pK(this);g.Yf(this.api.getRootNode(),"ytp-fine-scrubbing-exp",lk(this))}else this.Y1();this.q_()}if(z){var q;E=((q=this.IR)==null?void 0:q.type)==="clips";if(q=!z.isLivePlayback){q=this.api.getVideoData();p=g.de(q);c=XBx(q);var J;q=p!=null||c!=null&&c.length>0||((J=q.EZ)== null?void 0:J.length)>0}if(q&&!E){J=this.api.getVideoData();E=g.de(J);q=!1;if(E==null?0:E.markersMap){q=this.api.getVideoData();var M;q.G1=((M=E.visibleOnLoad)==null?void 0:M.key)||q.G1;M=g.m(E.markersMap);for(E=M.next();!E.done;E=M.next())E=E.value,E.key&&E.value&&(this.WM[E.key]=E.value,E.value.onChapterRepeat&&(q.sK=E.value.onChapterRepeat));q.G1!=null&&P1f(this,q.G1);q=!0}var P;if(((P=J.EZ)==null?void 0:P.length)>0){P=g.VN.getState().entities;M=g.m(J.EZ);for(E=M.next();!E.done;E=M.next())if(E= E.value,c=void 0,p=(c=mZ(P,"macroMarkersListEntity",E))==null?void 0:c.markersList,D=c=void 0,((c=p)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((D=p)==null?void 0:D.markerType)==="MARKER_TYPE_HEATMAP")this.rA[E]=p;q=this.AB()||q}!q&&(P=XBx(J))&&(Eei(this,P),J.Rk=this.W,x1Q(this));$1E(this,null);z.C$&&this.X.length===0&&(z=z.C$,P=z.key,z.isVisible&&P&&P1f(this,P))}else brN(this),D1_(this)}oK(this)}; g.V.nA8=function(z){this.S&&!g.r(z.state,32)&&this.api.getPresentingPlayerType()!==3&&this.S.cancel();var p;((p=this.K)==null?0:p.isEnabled)&&g.r(z.state,8)&&this.api.pauseVideo();z=this.api.getPresentingPlayerType()===2||!this.api.iz()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Yf(this.vO,"ytp-hide-scrubber-button",z)}; g.V.Y_=function(z){var p=!!this.IR!==!!z,c=this.IR;this.IR=z;$1E(this,c);(z==null?void 0:z.type)!=="clips"&&z||(z?(this.updateValue("clipstarticon",u1u()),this.updateValue("clipendicon",u1u()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",PRY()),this.updateValue("clipendicon",hVE()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),p&&(this.updateVideoData(this.api.getVideoData(), !0),g.IK(this)),gs(this));rs(this,this.U,this.sH)}; g.V.c80=function(z,p,c){var B=g.$m(this.element),H=Fn(this).W,T=c?c.getAttribute("data-tooltip"):void 0,b=c?c.getAttribute("data-position"):void 0,D=c?c.getAttribute("data-offset-y"):void 0;D=D?Number(D):0;b&&(z=oG(this.D,Number(c.getAttribute("data-position")),0)*H+g.$m(this.progressBar).x);this.CH.x=z-B.x;this.CH.y=p-B.y;z=Fn(this);c=s8(this,z);p=0;var t;if((t=this.api.getVideoData())==null?0:bg(t))(t=this.api.getProgressState().seekableEnd)&&c>t&&(c=t,z.position=oG(this.D,t)*Fn(this).W),p=this.D.K; SzN(this)&&(p=this.D.K);t=T||g.dn(this.dJ?c-this.D.W:c-p);p=z.position+this.UF;c-=this.api.e_();var X;if((X=this.K)==null||!X.isEnabled)if(this.api.LD()){if(this.W.length>1){X=U8(this,this.CH.x,!0);if(!this.IR)for(B=0;B1)for(B=0;B0)for(X=this.CH.x,B=g.m(this.G),H=B.next();!H.done;H=B.next())H=H.value,b=jW(this,H.timeRangeStartMillis/ (this.D.W*1E3),Fn(this)),g.Yf(H.element,"ytp-timed-marker-hover",b<=X&&b+6>=X);B=this.tooltip.scale;D=(isNaN(D)?0:D)-45*B;this.api.Y("web_key_moments_markers")?this.A8?(X=s_B(this.G,c*1E3),X=X!=null?this.G[X].title:""):(X=D2(this.W,c*1E3),X=this.W[X].title):(X=D2(this.W,c*1E3),X=this.W[X].title);X||(D+=16*B);this.tooltip.scale===.6&&(g.cX(this.api.N())?(D=this.api.Hq().getPlayerSize().height-225,D=X?D+110:D+110+16):D=X?110:126);B=D2(this.W,c*1E3);this.tD=Kwx(this,c,B)?B:Kwx(this,c,B+1)?B+1:-1;g.Yf(this.api.getRootNode(), "ytp-progress-bar-snap",this.tD!==-1&&this.W.length>1);B=!1;H=g.m(this.heatMarkersDecorations);for(b=H.next();!b.done;b=H.next()){b=b.value;var x=c*1E3;x>=b.visibleTimeRangeStartMillis&&x<=b.visibleTimeRangeEndMillis&&(X=b.label,t=g.dn(b.decorationTimeMillis/1E3),B=!0)}this.t1!==B&&(this.t1=B,this.api.logVisibility(this.Lv,this.t1));g.Yf(this.api.getRootNode(),"ytp-progress-bar-decoration",B);B=160*this.tooltip.scale*2;H=X.length*(this.MZ?8.55:5.7);H=H<=B?H:B;b=H<160*this.tooltip.scale;B=3;!b&&H/ 2>z.position&&(B=1);!b&&H/2>this.V-z.position&&(B=2);this.api.N().S&&(D-=10);this.X.length&&this.X[0].NP&&(D-=14*(this.MZ?2:1),this.YA||(this.YA=!0,this.api.logVisibility(this.Dt,this.YA)));var E;if(lk(this)&&(((E=this.K)==null?0:E.isEnabled)||this.OH>0)){var q;D-=((q=this.K)==null?0:q.isEnabled)?N$(this):this.OH}E=void 0;lk(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(E="Pull up for precise seeking",this.Ra||(this.Ra=!0,this.api.logVisibility(this.wU,this.Ra)));this.tooltip.TK(p,c, t,!!T,D,X,B,E)}else this.tooltip.TK(p,c,t,!!T,D);g.Eo(this.api.getRootNode(),"ytp-progress-bar-hover");RBY(this)}; g.V.WMq=function(){this.q_();g.Jn(this.api.getRootNode(),"ytp-progress-bar-hover");this.YA&&(this.YA=!1,this.api.logVisibility(this.Dt,this.YA));this.Ra&&(this.Ra=!1,this.api.logVisibility(this.wU,this.Ra))}; g.V.EbA=function(z,p){lk(this)&&this.K&&(this.K.Ra?y1(this.K,this.api.getCurrentTime()):fES(this.K),this.K.show(),g.Yf(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.xl&&(this.xl.dispose(),this.xl=null);this.Ye=p;this.cO=this.api.getCurrentTime();this.W.length>1&&this.tD!==-1?this.api.seekTo(this.W[this.tD].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(s8(this,Fn(this)),!1,void 0,void 0,7);g.Eo(this.element,"ytp-drag");(this.wJ=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.V.KMH=function(){if(lk(this)&&this.K){var z=N$(this);this.OH>=z*.5?(this.K.enable(),y1(this.K,this.api.getCurrentTime()),lfB(this,z)):pK(this)}if(g.r(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var p;if((p=this.K)==null?0:p.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.W.length>1&&this.tD!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&kh(this,this.cO,this.W[this.tD].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.W[this.tD].startTime/1E3,void 0,void 0,void 0,7);else{z=s8(this,Fn(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&kh(this,this.cO,z,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(z,void 0,void 0,void 0,7);p=g.m(this.heatMarkersDecorations);for(var c=p.next();!c.done;c=p.next())c=c.value,z*1E3>=c.visibleTimeRangeStartMillis&&z*1E3<=c.visibleTimeRangeEndMillis&& this.api.logClick(this.Lv)}g.Jn(this.element,"ytp-drag");this.wJ&&!g.r(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.V.aSi=function(z,p){z=Fn(this);z=s8(this,z);this.api.seekTo(z,!1,void 0,void 0,7);var c;lk(this)&&((c=this.K)==null?0:c.Ra)&&(y1(this.K,z),this.K.isEnabled||(c=N$(this),this.OH=g.MQ(this.Ye-p-10,0,c),lfB(this,this.OH)))}; g.V.q_=function(){this.tooltip.r3()}; g.V.gN=function(){this.IR||(this.updateValue("clipstarticon",mGD()),this.updateValue("clipendicon",mGD()),g.Eo(this.element,"ytp-clip-hover"))}; g.V.O8=function(){this.IR||(this.updateValue("clipstarticon",PRY()),this.updateValue("clipendicon",hVE()),g.Jn(this.element,"ytp-clip-hover"))}; g.V.Y1=function(){this.clipStart=0;this.clipEnd=Infinity;gs(this);rs(this,this.U,this.sH)}; g.V.OD8=function(z){z=g.m(z);for(var p=z.next();!p.done;p=z.next())if(p=p.value,p.visible){var c=p.getId();if(!this.fH[c]){var B=g.i4("DIV");p.tooltip&&B.setAttribute("data-tooltip",p.tooltip);this.fH[c]=p;this.gt[c]=B;g.Xj(B,p.style);uS_(this,c);this.api.N().Y("disable_ad_markers_on_content_progress_bar")||this.W[0].X.appendChild(B)}}else eB_(this,p)}; g.V.HiH=function(z){z=g.m(z);for(var p=z.next();!p.done;p=z.next())eB_(this,p.value)}; g.V.hS=function(z){this.K&&(this.K.onExit(z!=null),pK(this))}; g.V.VY=function(z){this.K&&(this.K.play(z!=null),pK(this))}; g.V.gFt=function(){vev(this,this.api.iz())}; g.V.m0=function(){vev(this,!1);g.P_.prototype.m0.call(this)};g.Y(ck,g.Q);ck.prototype.isActive=function(){return!!this.T.getOption("remote","casting")}; ck.prototype.Bq=function(){var z=!1;this.T.getOptions().includes("remote")&&(z=this.T.getOption("remote","receivers").length>1);this.DP(z&&this.T.Hq().getPlayerSize().width>=400);this.T.logVisibility(this.element,this.EH);var p=1;z&&this.isActive()&&(p=2);if(this.W!==p){this.W=p;switch(p){case 1:this.updateValue("icon",{j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{j:"path",Fg:!0,C:{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",g.YmE())}g.Yf(this.element,"ytp-remote-button-active",this.isActive())}}; ck.prototype.K=function(){if(this.T.getOption("remote","quickCast"))this.T.setOption("remote","quickCast",!0);else{var z=this.QS,p=this.element;if(z.Cl())z.uQ();else{z.initialize();a:{var c=g.m(z.mM.items);for(var B=c.next();!B.done;B=c.next())if(B=B.value,B.priority===1){c=B;break a}c=null}c&&(c.open(),z.S_(p));z.S_(p)}}this.T.logClick(this.element)};g.Y(Bk,g.Q);Bk.prototype.W=function(z){var p=this.T.N(),c=400;this.T.Y("web_player_small_hbp_settings_menu")&&p.V?c=300:p.S&&(c=200);z=this.K&&z.width>=c;this.DP(z);this.T.Y("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,z&&this.L):this.T.logVisibility(this.element,z)}; Bk.prototype.D=function(){if(this.QS.EH)this.QS.uQ();else{var z=g.R0(this.T.mU());z&&!z.loaded&&(z.jh("tracklist",{includeAsr:!0}).length||z.load());this.T.logClick(this.element);this.QS.S_(this.element)}}; Bk.prototype.updateBadge=function(){var z=this.T.isHdr(),p=this.T.getPresentingPlayerType(),c=p!==2&&p!==3,B=g.jq(this.T),H=c&&!!g.Iv(this.T.mU());p=H&&B.displayMode===1;B=H&&B.displayMode===2;c=(H=p||B)||!c?null:this.T.getPlaybackQuality();g.Yf(this.element,"ytp-hdr-quality-badge",z);g.Yf(this.element,"ytp-hd-quality-badge",!z&&(c==="hd1080"||c==="hd1440"));g.Yf(this.element,"ytp-4k-quality-badge",!z&&c==="hd2160");g.Yf(this.element,"ytp-5k-quality-badge",!z&&c==="hd2880");g.Yf(this.element,"ytp-8k-quality-badge", !z&&c==="highres");g.Yf(this.element,"ytp-3d-badge-grey",!z&&H&&p);g.Yf(this.element,"ytp-3d-badge",!z&&H&&B)};g.Y(Hk,Xf);Hk.prototype.isLoaded=function(){var z=g.ZH(this.T.mU());return z!==void 0&&z.loaded}; Hk.prototype.Bq=function(){g.ZH(this.T.mU())!==void 0&&this.T.getPresentingPlayerType()!==3?this.W||(this.QS.nB(this),this.W=!0):this.W&&(this.QS.Jd(this),this.W=!1);xM(this,this.isLoaded())}; Hk.prototype.onSelect=function(z){this.isLoaded();z?this.T.loadModule("annotations_module"):this.T.unloadModule("annotations_module");this.T.publish("annotationvisibility",z)}; Hk.prototype.m0=function(){this.W&&this.QS.Jd(this);Xf.prototype.m0.call(this)};g.Y(i9,g.IH);i9.prototype.Bq=function(){var z=this.T.getAvailableAudioTracks();z.length>1?(this.rp(g.d7(z,this.W)),this.tracks=g.qC(z,this.W,this),this.countLabel.cU(z.length?" ("+z.length+")":""),this.publish("size-change"),this.Xt(this.W(this.T.getAudioTrack())),this.enable(!0)):this.enable(!1)}; i9.prototype.vn=function(z){g.IH.prototype.vn.call(this,z);this.T.setAudioTrack(this.tracks[z]);this.QS.QT()}; i9.prototype.W=function(z){return z.toString()};g.Y(TK,Xf); TK.prototype.K=function(){var z=this.T.getPresentingPlayerType();if(z!==2&&z!==3&&g.ov(this.T))this.W||(this.QS.nB(this),this.W=!0,this.D.push(this.Z(this.T,"videodatachange",this.K)),this.D.push(this.Z(this.T,"videoplayerreset",this.K)),this.D.push(this.Z(this.T,"onPlaylistUpdate",this.K)),this.D.push(this.Z(this.T,"autonavchange",this.X)),z=this.T.getVideoData(),this.X(z.autonavState),this.T.logVisibility(this.element,this.W));else if(this.W){this.QS.Jd(this);this.W=!1;z=g.m(this.D);for(var p=z.next();!p.done;p= z.next())this.vy(p.value)}}; TK.prototype.X=function(z){xM(this,z!==1)}; TK.prototype.onSelect=function(z){this.T.G_(z?2:1);this.W&&(this.T.logVisibility(this.element,this.W),this.T.logClick(this.element))}; TK.prototype.m0=function(){this.W&&this.QS.Jd(this);Xf.prototype.m0.call(this)};g.Y(jiQ,g.zn);jiQ.prototype.onClick=function(z){z.preventDefault();var p,c;(p=g.w$(this.T))==null||(c=p.UP())==null||c.uQ();var B,H;(B=g.w$(this.T))==null||(H=B.HX())==null||H.S_(z.target)};g.Y(FwQ,g.IH);g.V=FwQ.prototype; g.V.jY=function(){var z=this.T.getPresentingPlayerType();if(z!==2&&z!==3){this.tD=this.T.K4();z=this.T.getAvailableQualityLevels();if(this.W){this.X={};var p=g.YG(this.T,"getAvailableQualityData",[]);p=g.m(p);for(var c=p.next();!c.done;c=p.next())c=c.value,this.X[c.qualityLabel]=c;p=Object.keys(this.X);z[z.length-1]==="auto"&&p.push("auto");this.T$=new Set(z)}else if(this.V){c=g.YG(this.T,"getAvailableQualityData",[]);p=[];c=g.m(c);for(var B=c.next();!B.done;B=c.next())B=B.value,this.U[B.quality]= B,B.quality&&p.push(B.quality);z[z.length-1]==="auto"&&p.push("auto")}else p=z;g.sFN(this.T)&&this.T.x7()&&p.unshift("missing-qualities");kjN(this.T)&&p.unshift("inline-survey");this.rp(p);z=this.T.getVideoData().cotn?!0:!1;c=this.Dt.Bn();c=!g.cX(this.T.N())||!(z===void 0?0:z)||!(c===void 0||c);z=this.K;c=c===void 0?!1:c;z.Cd&&g.Yf(z.jp("ytp-panel-footer"),"ytp-panel-hide-footer",c===void 0?!1:c);if(p.length){this.u2();this.enable(!0);return}}this.enable(!1)}; g.V.u2=function(){if(this.W){var z=this.T.getPreferredQuality();this.T$.has(z)&&(this.G=this.T.getPlaybackQuality(),this.MZ=this.T.getPlaybackQualityLabel(),z==="auto"?(this.Xt(z),this.cU(this.ue(z))):this.Xt(this.MZ))}else z=this.T.getPreferredQuality(),this.options[z]&&(this.G=this.T.getPlaybackQuality(),this.Xt(z),z==="auto"&&this.cU(this.ue(z)))}; g.V.vn=function(z){if(z!=="missing-qualities"){g.IH.prototype.vn.call(this,z);var p=this.W?this.X[z]:this.U[z];var c=p==null?void 0:p.quality,B=p==null?void 0:p.formatId,H=p==null?void 0:p.paygatedQualityDetails;p=H==null?void 0:H.endpoint;if(H){var T;H=(T=this.options[z])==null?void 0:T.element;this.T.logClick(H)}if(this.W){var b,D;if((b=g.I(p,g.Lrm))==null?0:(D=b.popup)==null?0:D.notificationActionRenderer)this.T.AD("innertubeCommand",p);else if(p){this.T.AD("innertubeCommand",p);return}B?this.T.setPlaybackQuality(c, B):this.T.setPlaybackQuality(c)}else{if(this.V){var t,X;if((t=g.I(p,g.Lrm))==null?0:(X=t.popup)==null?0:X.notificationActionRenderer)this.T.AD("innertubeCommand",p);else if(p){this.T.AD("innertubeCommand",p);return}}this.T.setPlaybackQuality(z)}this.QS.uQ();this.jY()}}; g.V.open=function(){for(var z=g.m(Object.values(this.options)),p=z.next();!p.done;p=z.next()){p=p.value;var c=void 0;this.T.hasVe((c=p)==null?void 0:c.element)&&(c=void 0,this.T.logVisibility((c=p)==null?void 0:c.element,!0))}g.IH.prototype.open.call(this);this.T.logClick(this.element)}; g.V.t9=function(z,p,c){var B=this;if(z==="missing-qualities")return new g.zn({j:"a",LH:["ytp-menuitem"],C:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.T.N().U,tabindex:"0",role:"menuitemradio"},J:[{j:"div",LH:["ytp-menuitem-label"],F3:"{{label}}"}]},p,this.ue(z));if(z!=="inline-survey"){var H,T=(H=this.W?this.X[z]:this.U[z])==null?void 0:H.paygatedQualityDetails;H=T==null?void 0:T.veType;T=T==null?void 0:T.trackingParams;p=g.IH.prototype.t9.call(this,z,p,c);T?(this.T.createServerVe(p.element, this,!0),this.T.setTrackingParams(p.element,T)):H&&this.T.createClientVe(p.element,this,H,!0);return p}z=[{j:"span",F3:"Looks good?"}];c=g.m([!0,!1]);T=c.next();for(H={};!T.done;H={oS:void 0},T=c.next())H.oS=T.value,T=new g.Q({j:"span",B:"ytp-menuitem-inline-survey-response",J:[H.oS?KFu():Otv()],C:{tabindex:"0",role:"button"}}),T.listen("click",function(b){return function(){var D=B.T.app.dA();D&&(D.KH("iqsr",{tu:b.oS}),D.getVideoData().Xc=!0);B.QS.uQ();B.jY()}}(H)),z.push(T); return new g.zn({j:"div",B:"ytp-menuitem",C:{"aria-disabled":"true"},J:[{j:"div",LH:["ytp-menuitem-label"],J:z}]},p)}; g.V.ue=function(z,p){p=p===void 0?!1:p;if(z==="missing-qualities")return{j:"div",F3:"Missing options?"};if(z==="inline-survey")return"";var c=this.V||this.W?[QiB(this,z,p,!1)]:[neS(this,z)];var B=this.T.getPreferredQuality();p||B!=="auto"||z!=="auto"||(c.push(" "),this.W?c.push(QiB(this,this.MZ,p,!0,["ytp-menu-label-secondary"])):this.V?c.push(QiB(this,this.G,p,!0,["ytp-menu-label-secondary"])):c.push(neS(this,this.G,["ytp-menu-label-secondary"])));return{j:"div",J:c}};g.Y(b9,g.Q);b9.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.X);this.updateValue("stepvalue",this.G);this.updateValue("slidervalue",this.K);rkW(this,this.K)}; b9.prototype.S=function(){U1v(this,Number(this.W.value));this.W.focus()}; b9.prototype.V=function(z){if(!z.defaultPrevented){switch(z.code){case "ArrowDown":z=-this.G;break;case "ArrowUp":z=this.G;break;default:return}U1v(this,Math.min(this.X,Math.max(Number((this.K+z).toFixed(2)),this.D)))}};g.Y(VO,b9);VO.prototype.S=function(){b9.prototype.S.call(this);this.U&&siu(this)}; VO.prototype.tD=function(){this.MZ()}; VO.prototype.Dt=function(){this.T.setPlaybackRate(this.K,!0)}; VO.prototype.V=function(z){b9.prototype.V.call(this,z);this.MZ();siu(this);z.preventDefault()};g.Y(DK,g.Q);g.V=DK.prototype;g.V.init=function(){this.RT(this.W);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.D)}; g.V.e2=function(z){if(!z.defaultPrevented){switch(z.keyCode){case 37:case 40:var p=-this.S;break;case 39:case 38:p=this.S;break;default:return}this.RT(this.W+p);z.preventDefault()}}; g.V.aQ=function(z){var p=this.W;p+=(z.deltaX||-z.deltaY)<0?-this.U:this.U;this.RT(p);z.preventDefault()}; g.V.Md=function(z){z=(z-g.$m(this.X).x)/this.MZ*this.range+this.K;this.RT(z)}; g.V.RT=function(z,p){p=p===void 0?"":p;z=g.MQ(z,this.K,this.D);p===""&&(p=z.toString());this.updateValue("valuenow",z);this.updateValue("valuetext",p);this.Dt.style.left=(z-this.K)/this.range*(this.MZ-this.Ra)+"px";this.W=z}; g.V.focus=function(){this.YA.focus()};g.Y(t7,DK);t7.prototype.tD=function(){this.T.setPlaybackRate(this.W,!0)}; t7.prototype.RT=function(z){DK.prototype.RT.call(this,z,geY(this,z).toString());this.V&&(kJv(this),this.T$())}; t7.prototype.updateValues=function(){var z=this.T.getPlaybackRate();geY(this,this.W)!==z&&(this.RT(z),kJv(this))};g.Y(GJv,g.P_);GJv.prototype.focus=function(){this.W.focus()};g.Y(NiS,ul);g.Y(ffQ,g.IH);g.V=ffQ.prototype;g.V.ue=function(z){return z==="1"?"Normal":z.toLocaleString()}; g.V.Bq=function(){var z,p=(z=this.T.getVideoData())==null?void 0:z.yL();z=this.T.getPresentingPlayerType(p);this.enable(z!==2&&z!==3);cxN(this)}; g.V.rp=function(z){g.IH.prototype.rp.call(this,z);this.G&&this.G.W.focus()}; g.V.U9=function(z){g.IH.prototype.U9.call(this,z);z?(this.MZ=this.Z(this.T,"onPlaybackRateChange",this.onPlaybackRateChange),cxN(this),zbu(this,this.T.getPlaybackRate())):(this.vy(this.MZ),this.MZ=null)}; g.V.onPlaybackRateChange=function(z){var p=this.T.getPlaybackRate();!this.X&&this.U.includes(p)||pPW(this,p);zbu(this,z)}; g.V.t9=function(z,p,c){return z===this.W&&BF_(this.T)?g.IH.prototype.t9.call(this,z,p,c,{j:"div",B:"ytp-speed-slider-menu-footer",J:[this.G]}):g.IH.prototype.t9.call(this,z,p,c)}; g.V.vn=function(z){g.IH.prototype.vn.call(this,z);z===this.W?this.T.setPlaybackRate(this.V,!0):this.T.setPlaybackRate(Number(z),!0);BF_(this.T)&&z===this.W||this.QS.QT()}; g.V.Y5=function(z){var p=z===this.W;this.X=!1;p&&XP(this.T)&&!BF_(this.T)?(z=new NiS(this.T),g.dt(this.QS,z)):g.IH.prototype.Y5.call(this,z)};g.Y(i3D,g.IH);g.V=i3D.prototype;g.V.Xt=function(z){g.IH.prototype.Xt.call(this,z)}; g.V.rD=function(z){return z.option.toString()}; g.V.getOption=function(z){return this.settings[z]}; g.V.ue=function(z){return this.getOption(z).text||""}; g.V.vn=function(z){g.IH.prototype.vn.call(this,z);this.publish("settingChange",this.setting,this.settings[z].option)};g.Y(Ey,g.aH);Ey.prototype.O5=function(z){for(var p=g.m(Object.keys(z)),c=p.next();!c.done;c=p.next()){var B=c.value;if(c=this.lP[B]){var H=z[B].toString();B=!!z[B+"Override"];c.options[H]&&(c.Xt(H),c.X.element.setAttribute("aria-checked",String(!B)),c.W.element.setAttribute("aria-checked",String(B)))}}}; Ey.prototype.W0=function(z,p){this.publish("settingChange",z,p)};g.Y(qh,g.IH);qh.prototype.W=function(z){return z.languageCode}; qh.prototype.ue=function(z){return this.languages[z].languageName||""}; qh.prototype.vn=function(z){this.publish("select",z);this.T.logClick(this.element);g.W9(this.QS)};g.Y(VcV,g.IH);g.V=VcV.prototype;g.V.Ti=function(z){return g.y3(z)?"__off__":z.displayName}; g.V.ue=function(z){return z==="__off__"?"Off":z==="__translate__"?"Auto-translate":z==="__contribute__"?"Add subtitles/CC":z==="__correction__"?"Suggest caption corrections":(z==="__off__"?{}:this.tracks[z]).displayName}; g.V.vn=function(z){if(z==="__translate__")this.W.open();else if(z==="__contribute__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var p=g.on(this.T.N(),this.T.getVideoData());g.fJ(p)}else if(z==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var c=DcV(this);J7(this,c);g.IH.prototype.vn.call(this,this.Ti(c));var B,H;c=(p=this.T.getVideoData().getPlayerResponse())==null?void 0:(B=p.captions)==null?void 0:(H=B.playerCaptionsTracklistRenderer)== null?void 0:H.openTranscriptCommand;this.T.AD("innertubeCommand",c);this.QS.QT();this.X&&this.T.logClick(this.X)}else{if(z==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();p=DcV(this);J7(this,p);g.IH.prototype.vn.call(this,this.Ti(p));var T,b;p=(c=this.T.getVideoData().getPlayerResponse())==null?void 0:(T=c.captions)==null?void 0:(b=T.playerCaptionsTracklistRenderer)==null?void 0:b.openTranscriptCommand;this.T.AD("innertubeCommand",p)}else this.T.logClick(this.element), J7(this,z==="__off__"?{}:this.tracks[z]),g.IH.prototype.vn.call(this,z);this.QS.QT()}}; g.V.Bq=function(){var z=this.T.getOptions();z=z&&z.indexOf("captions")!==-1;var p=this.T.getVideoData(),c=p&&p.rd,B,H=!((B=this.T.getVideoData())==null||!g.ig(B));B={};if(z||c){var T;if(z){var b=this.T.getOption("captions","track");B=this.T.getOption("captions","tracklist",{includeAsr:!0});var D=H?[]:this.T.getOption("captions","translationLanguages");this.tracks=g.qC(B,this.Ti,this);H=g.d7(B,this.Ti);var t,X;DcV(this)&&((T=p.getPlayerResponse())==null?0:(t=T.captions)==null?0:(X=t.playerCaptionsTracklistRenderer)== null?0:X.openTranscriptCommand)&&H.push("__correction__");if(D.length&&!g.y3(b)){if((T=b.translationLanguage)&&T.languageName){var x=T.languageName;T=D.findIndex(function(E){return E.languageName===x}); i9f(D,T)}TFu(this.W,D);H.push("__translate__")}T=this.Ti(b)}else this.tracks={},H=[],T="__off__";H.unshift("__off__");this.tracks.__off__={};c&&H.unshift("__contribute__");this.tracks[T]||(this.tracks[T]=b,H.push(T));this.rp(H);this.Xt(T);b&&b.translationLanguage?this.W.Xt(this.W.W(b.translationLanguage)):ohY(this.W);z&&this.V.O5(this.T.getSubtitlesUserSettings());this.countLabel.cU(B&&B.length?" ("+B.length+")":"");this.publish("size-change");this.T.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.V.D5=function(z){var p=this.T.getOption("captions","track");p=g.lU(p);p.translationLanguage=this.W.languages[z];J7(this,p)}; g.V.W0=function(z,p){if(z==="reset")this.T.resetSubtitlesUserSettings();else{var c={};c[z]=p;this.T.updateSubtitlesUserSettings(c)}b3N(this,!0);this.G.start();this.V.O5(this.T.getSubtitlesUserSettings())}; g.V.iN8=function(z){z||g.TV(this.G)}; g.V.m0=function(){g.TV(this.G);g.IH.prototype.m0.call(this)}; g.V.open=function(){g.IH.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.T.createClientVe(this.X,this,167341),this.T.logVisibility(this.X,!0))};g.Y(tci,g.Lj);g.V=tci.prototype; g.V.initialize=function(){if(!this.isInitialized){var z=this.T.N();this.isInitialized=!0;try{this.FS=new FwQ(this.T,this)}catch(c){g.oc(Error("QualityMenuItem creation failed"))}g.l(this,this.FS);var p=new VcV(this.T,this);g.l(this,p);z.D||(p=new Hk(this.T,this),g.l(this,p));z.enableSpeedOptions&&(p=new ffQ(this.T,this),g.l(this,p));(g.yB(z)||z.V)&&(z.K||z.i8)&&(p=new jiQ(this.T,this),g.l(this,p));z.t1&&!z.Y("web_player_move_autonav_toggle")&&(z=new TK(this.T,this),g.l(this,z));z=new i9(this.T,this); g.l(this,z);this.T.publish("settingsMenuInitialized");IfQ(this.settingsButton,this.mM.o_())}}; g.V.nB=function(z){this.initialize();this.mM.nB(z);IfQ(this.settingsButton,this.mM.o_())}; g.V.Jd=function(z){this.EH&&this.mM.o_()<=1&&this.hide();this.mM.Jd(z);IfQ(this.settingsButton,this.mM.o_())}; g.V.S_=function(z){this.initialize();this.mM.o_()>0&&g.Lj.prototype.S_.call(this,z)}; g.V.uQ=function(){this.bT?this.bT=!1:g.Lj.prototype.uQ.call(this)}; g.V.show=function(){g.Lj.prototype.show.call(this);g.Eo(this.T.getRootNode(),"ytp-settings-shown")}; g.V.hide=function(){g.Lj.prototype.hide.call(this);g.Jn(this.T.getRootNode(),"ytp-settings-shown")}; g.V.mV=function(z){this.T.logVisibility(this.element,z);this.T.publish("settingsMenuVisibilityChanged",z)};g.Y(xcY,g.Q);g.V=xcY.prototype;g.V.onClick=function(){if(E$N(this)&&(this.T.toggleSubtitles(),this.T.logClick(this.element),!this.isEnabled())){var z=!1,p=g.k4(g.sA(),65);g.cX(this.T.N())&&p!=null&&(z=!p);z&&this.T.N().Y("web_player_nitrate_promo_tooltip")&&this.T.publish("showpromotooltip",this.element)}}; g.V.sj0=function(z){var p,c;(p=g.w$(this.T))==null||(c=p.UP())==null||c.S_(z)}; g.V.isEnabled=function(){return!!this.T.getOption("captions","track").displayName}; g.V.Bq=function(){var z=E$N(this),p=300;this.T.N().S&&(p=480);if(this.T.N().V){this.updateValue("title",g.d$(this.T,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=z}else{if(z)(c=this.jp("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.d$(this.T,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var B;(B=this.jp("ytp-subtitles-button-icon"))== null||B.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Tk();c=c&&this.T.Hq().getPlayerSize().width>=p;this.DP(c);this.T.Y("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,c&&this.L):this.T.logVisibility(this.element,c);z?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.V.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.T.N().Y("embeds_use_parent_visibility_in_ve_logging")&&this.T.logVisibility(this.element,this.EH&&z)};g.Y(g.Mh,g.Q);g.V=g.Mh.prototype; g.V.xr=function(){var z=this.api.Hq().getPlayerSize().width,p=this.U;this.api.N().S&&(p=400);p=z>=p&&(!Yd(this)||!g.r(this.api.getPlayerStateObject(),64));this.DP(p);g.Yf(this.element,"ytp-time-display-allow-autohide",p&&z<400);z=this.api.getProgressState();if(p){p=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(p,!1);this.K&&(c-=z.airingStart);mj(this)&&(c-=this.IR.startTimeMs/1E3);mj(this)||Yd(this)||!this.D||(c=this.api.getDuration(p,!1)-c);c=g.dn(c);this.X!==c&&(this.updateValue("currenttime", c),this.X=c);p=mj(this)?g.dn((this.IR.endTimeMs-this.IR.startTimeMs)/1E3):g.dn(this.api.getDuration(p,!1));this.V!==p&&(this.updateValue("duration",p),this.V=p)}qw_(this,z.isAtLiveHead);JxY(this,this.api.getLoopRange())}; g.V.onLoopRangeChange=function(z){var p=this.IR!==z;this.IR=z;p&&(this.xr(),McE(this))}; g.V.KVI=function(){this.api.setLoopRange(null)}; g.V.iB0=function(){this.D=!this.D;this.xr()}; g.V.onVideoDataChange=function(z,p,c){this.updateVideoData((this.api.N().Y("enable_topsoil_wta_for_halftime")||this.api.N().Y("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):p);this.xr();McE(this)}; g.V.updateVideoData=function(z){this.kI=z.isLivePlayback&&!z.sH;this.K=bg(z);this.isPremiere=z.isPremiere;g.Yf(this.element,"ytp-live",Yd(this))}; g.V.onClick=function(z){z.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.V.m0=function(){this.W&&this.W();g.Q.prototype.m0.call(this)};g.Y(mcu,g.Q);g.V=mcu.prototype;g.V.Za=function(){var z=this.api.lz();this.D!==z&&(this.D=z,Ywv(this,this.api.getVolume(),this.api.isMuted()))}; g.V.x_=function(z){this.DP(z.width>=350)}; g.V.X7=function(z){if(!z.defaultPrevented){var p=z.keyCode,c=null;p===37?c=this.volume-5:p===39?c=this.volume+5:p===36?c=0:p===35&&(c=100);c!==null&&(c=g.MQ(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),z.preventDefault())}}; g.V.zq=function(z){var p=z.deltaX||-z.deltaY;z.deltaMode?this.api.setVolume(this.volume+(p<0?-10:10)):this.api.setVolume(this.volume+g.MQ(p/10,-10,10));z.preventDefault()}; g.V.ZNp=function(){h7(this,this.W,!0,this.K,this.api.Me());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; g.V.F7=function(z){var p=this.D?78:52,c=this.D?18:12;z-=g.$m(this.S).x;this.api.setVolume(g.MQ((z-c/2)/(p-c),0,1)*100)}; g.V.wOq=function(){h7(this,this.W,!1,this.K,this.api.Me());this.volume===0&&(this.api.mute(),this.api.setVolume(this.U))}; g.V.onVolumeChange=function(z){Ywv(this,z.volume,z.muted)}; g.V.bM=function(){h7(this,this.W,this.isDragging,this.K,this.api.Me())}; g.V.m0=function(){g.Q.prototype.m0.call(this);g.Jn(this.G,"ytp-volume-slider-active")};g.Y(Pk,g.Q); Pk.prototype.onVideoDataChange=function(){var z=this.api.N();this.UW();this.visible=!!this.api.getVideoData().videoId&&!g.VP(this.api.getVideoData(1));this.DP(this.visible);this.api.logVisibility(this.element,this.visible&&this.L);if(this.visible){var p=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",p)}z.D&&(this.W&&(this.vy(this.W),this.W=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Eo(this.element,"no-link")); p=this.api.N();z=this.api.getVideoData();var c="";p.D||(p=g.Gx(p),p.indexOf("www.")===0&&(p=p.substring(4)),c=g.t1(z)?"Watch on YouTube Music":p==="youtube.com"?"Watch on YouTube":g.RD("Watch on $WEBSITE",{WEBSITE:p}));this.updateValue("title",c)}; Pk.prototype.onClick=function(z){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var p=this.api.N(),c=this.api.getVideoUrl(!g.W7(z),!1,!0,!0);if(g.yB(p)){var B={};g.yB(p)&&g.YG(this.api,"addEmbedsConversionTrackingParams",[B]);c=g.g6(c,B)}g.qa(c,this.api,z);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Pk.prototype.UW=function(){var z={j:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{j:"path",Fg:!0,B:"ytp-svg-fill",C:{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 "}}]}, p=28666,c=this.api.getVideoData();this.api.isEmbedsShortsMode()?z={j:"svg",C:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},J:[{j:"path",C:{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.t1(c)&&(z={j:"svg",C:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},J:[{j:"path",C:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{j:"path",C:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{j:"path",C:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{j:"path",C:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{j:"path",C:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{j:"path",C:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{j:"path",C:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{j:"path",C:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{j:"path",C:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{j:"path",C:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{j:"path",C:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{j:"path",C:{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"}}]},p=216163);g.t1(c)?g.Eo(this.element,"ytp-youtube-music-button"):g.Jn(this.element,"ytp-youtube-music-button");z.C=Object.assign({},z.C,{"aria-hidden":"true"});this.updateValue("logoSvg",z);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,p,!0)}; Pk.prototype.Ns=function(z){g.Q.prototype.Ns.call(this,z);this.api.logVisibility(this.element,this.visible&&z)};g.Y(PhW,g.or);g.V=PhW.prototype;g.V.Jv=function(){if(this.T.Y("web_player_max_seekable_on_ended")||!g.r(this.T.getPlayerStateObject(),2))this.progressBar.xr(),this.Ra.xr()}; g.V.Q5=function(){this.y$();this.l9.K?this.Jv():this.progressBar.q_()}; g.V.tJ=function(){this.Jv();this.S.start()}; g.V.y$=function(){var z;if(z=!this.T.N().K){z=this.progressBar;var p=2*g.p8()*z.V;z=z.D.getLength()*1E3/z.api.getPlaybackRate()/p<300}z=z&&this.T.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;p=!z;this.l9.K||(z=p=!1);p?this.Dt||(this.Dt=this.Z(this.T,"progresssync",this.Jv)):this.Dt&&(this.vy(this.Dt),this.Dt=null);z?this.S.isActive()||this.S.start():this.S.stop()}; g.V.UW=function(){var z=this.T.lz(),p=this.T.Hq().getPlayerSize(),c=O3N(this),B=Math.max(p.width-c*2,100);if(this.UH!==p.width||this.sH!==z){this.UH=p.width;this.sH=z;var H=wPV(this);this.X.element.style.width=H+"px";this.X.element.style.left=c+"px";g.C1D(this.progressBar,c,H,z);this.T.t8().oG=H}c=this.D;B=Math.min(570*(z?1.5:1),B);z=Math.min(413*(z?1.5:1),Math.round((p.height-Rbf(this))*.82));c.maxWidth=B;c.maxHeight=z;c.BN();this.y$();this.T.N().Y("html5_player_dynamic_bottom_gradient")&&ZAY(this.CH, p.height)}; g.V.onVideoDataChange=function(){var z=this.T.getVideoData();this.i8.style.background=z.Sd?z.qk:"";this.MZ&&eZ_(this.MZ,z.showSeekingControls);this.U&&eZ_(this.U,z.showSeekingControls)}; g.V.XQ=function(){return this.X.element};g.Y(SwY,Kj);g.V=SwY.prototype;g.V.dT=function(z){z.target!==this.dismissButton.element&&(this.onClickCommand&&this.T.AD("innertubeCommand",this.onClickCommand),this.a6())}; g.V.a6=function(){this.enabled=!1;this.U.hide()}; g.V.onVideoDataChange=function(z,p){z==="dataloaded"&&$cf(this);z=[];var c,B,H,T;if(p=(T=g.I((c=p.getWatchNextResponse())==null?void 0:(B=c.playerOverlays)==null?void 0:(H=B.playerOverlayRenderer)==null?void 0:H.suggestedActionsRenderer,b2J))==null?void 0:T.suggestedActions)for(c=g.m(p),B=c.next();!B.done;B=c.next())(B=g.I(B.value,Vxv))&&g.I(B.trigger,TLQ)&&z.push(B);if(z.length!==0){c=[];z=g.m(z);for(B=z.next();!B.done;B=z.next())if(B=B.value,H=g.I(B.trigger,TLQ))T=(T=B.title)?g.wJ(T):"View Chapters", p=H.timeRangeStartMillis,H=H.timeRangeEndMillis,p!=null&&H!=null&&B.tapCommand&&(c.push(new g.Xq(p,H,{priority:9,namespace:"suggested_action_button_visible",id:T})),this.suggestedActions[T]=B.tapCommand);this.T.KN(c)}}; g.V.VA=function(){return this.enabled}; g.V.mV=function(){this.enabled?this.rA.start():Ss(this);this.YH()}; g.V.m0=function(){$cf(this);Kj.prototype.m0.call(this)};var PB={},wT=(PB.CHANNEL_NAME="ytp-title-channel-name",PB.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",PB.LINK="ytp-title-link",PB.SESSIONLINK="yt-uix-sessionlink",PB.SUBTEXT="ytp-title-subtext",PB.TEXT="ytp-title-text",PB.TITLE="ytp-title",PB);g.Y(Rm,g.Q);Rm.prototype.onClick=function(z){this.api.logClick(this.element);var p=this.api.N(),c=this.api.getVideoUrl(!g.W7(z),!1,!0);g.yB(p)&&(p={},g.YG(this.api,"addEmbedsConversionTrackingParams",[p]),c=g.g6(c,p));g.qa(c,this.api,z)}; Rm.prototype.Bq=function(){var z=this.api.getVideoData(),p=this.api.N();this.updateValue("title",z.title);var c={j:"a",B:wT.CHANNEL_NAME,C:{href:"{{channelLink}}",target:"_blank"},F3:"{{channelName}}"};this.api.N().D&&(c={j:"span",B:wT.CHANNEL_NAME,F3:"{{channelName}}",C:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);KVW(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.FQ&&c.profilePicture?(this.updateValue("channelLink", c.FQ),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):KVW(this));c=p.externalFullscreen||!this.api.isFullscreen()&&p.e1;g.Yf(this.link,wT.FULLERSCREEN_LINK,c);p.Dt||!z.videoId||c||g.VP(z)||p.D?this.W&&(this.updateValue("url",null),this.vy(this.W),this.W=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.W||(this.W=this.Z(this.link,"click",this.onClick)));p.D&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.yB(p)?z.expandedTitle: z.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.Y(g.SA,g.Q);g.V=g.SA.prototype;g.V.setEnabled=function(z){if(this.type!=null)if(z)switch(this.type){case 3:case 2:awS(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=z}; g.V.TK=function(z,p,c,B,H,T,b,D){if(!this.T$||this.env.S){this.type===3&&this.q_();this.type!==1&&(g.Xj(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.LD())&&this.K.subscribe("l",this.P4,this));if(D){var t=g.Wx(this.bg).height||141;this.Ra.style.bottom=t+2+"px"}else this.Ra.style.display="none";this.update({text:c,title:T!=null?T:"",eduText:D!=null?D:""});g.Yf(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!T);this.api.isInline()&& g.Eo(this.bottomText,"ytp-modern-tooltip-text");g.Yf(this.element,"ytp-text-detail",!!B);c=-1;this.K&&(c=FD(this.K,243*this.scale),this.env.Y("web_l3_storyboard")&&this.K.levels.length===4&&(c=this.K.levels.length-1),c=PVx(this.K,c,p));LVY(this,c);if(b)switch(p=g.Wx(this.element).width,b){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=p+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=p/2+"px",this.title.style.textAlign= "center"}Z3i(this,!!B,z,H)}}; g.V.r3=function(){this.type===1&&this.q_()}; g.V.Ey=function(z,p){if(this.type)if(this.type===3)this.q_();else return;uTi(this,z,3,p)}; g.V.Tk=function(){this.W&&!this.S&&this.W.hasAttribute("title")&&(this.D=this.W.getAttribute("title")||"",this.W.removeAttribute("title"),this.G&&awS(this))}; g.V.P4=function(z,p){z<=this.X&&this.X<=p&&(z=this.X,this.X=NaN,LVY(this,z))}; g.V.LUA=function(){mWW(this.K,this.X,243*this.scale)}; g.V.q_=function(){switch(this.type){case 2:var z=this.W;z.removeEventListener("mouseout",this.U);z.addEventListener("mouseover",this.V);z.removeEventListener("blur",this.U);z.addEventListener("focus",this.V);dc_(this);break;case 3:dc_(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.P4,this),this.K=null),this.api.removeEventListener("videoready",this.MZ),this.Dt.stop()}this.type=null;this.G&&this.fade.hide()}; g.V.Se=function(){if(this.W)for(var z=0;z=0;p--)if(this.EJ[p]===z){this.EJ.splice(p,1);break}db(this.l9,64,this.EJ.length>0)}; g.V.jo=function(){this.api.Ll()&&this.api.Qd();return!!this.nw||v$Y(this)||g.o0.prototype.jo.call(this)}; g.V.cN=cD(3);g.V.j0=cD(7);g.V.QU=cD(10); g.V.Oo=function(){var z=!this.jo(),p=z&&this.api.Ll()&&!g.r(this.api.getPlayerStateObject(),2)&&!g.VP(this.api.getVideoData())&&!this.api.N().D&&!this.api.isEmbedsShortsMode(),c=this.YO&&g.lg(this.api)&&g.r(this.api.getPlayerStateObject(),128);z||c?(this.ph.show(),this.Y9.show()):(this.ph.hide(),this.Y9.hide(),this.api.Se(this.gL.element));p?this.rk.S_():this.rk.uQ();this.Av&&AxQ(this.Av,this.ZT||!z);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&Iwf(this);g.o0.prototype.Oo.call(this)}; g.V.ya=function(z,p,c,B,H){z.style.left="";z.style.top="";z.style.bottom="";var T=g.Wx(z),b=B||this.Av&&g.X4(this.Av.XQ(),p),D=B=null;c!=null&&b||(B=g.Wx(p),D=g.K4(p,this.api.getRootNode()),c==null&&(c=D.x+B.width/2));c-=T.width/2;b?(p=this.Av,B=O3N(p),D=wPV(p),b=this.api.Hq().getPlayerSize().height,c=g.MQ(c,B,B+D-T.width),T=b-Rbf(p)-T.height):g.X4(this.gL.element,p)?(p=this.api.Hq().getPlayerSize().width,c=g.MQ(c,12,p-T.width-12),T=this.lz()?this.uq:this.YZ,this.api.N().playerStyle==="gvn"&&(T+= 20),this.YO&&(T-=this.lz()?26:18)):(p=this.api.Hq().getPlayerSize(),c=g.MQ(c,12,p.width-T.width-12),T=D.y>(p.height-B.height)/2?D.y-T.height-12:D.y+B.height+12);z.style.top=T+(H||0)+"px";z.style.left=c+"px"}; g.V.Q5=function(z){z&&(this.api.Se(this.gL.element),this.Av&&this.api.Se(this.Av.XQ()));this.fP&&(g.Yf(this.contextMenu.element,"ytp-autohide",z),g.Yf(this.contextMenu.element,"ytp-autohide-active",!0));g.o0.prototype.Q5.call(this,z)}; g.V.P8=function(){g.o0.prototype.P8.call(this);this.fP&&(g.Yf(this.contextMenu.element,"ytp-autohide-active",!1),this.fP&&(this.contextMenu.hide(),this.xF&&this.xF.hide()))}; g.V.Ub=function(z,p){var c=this.api.Hq().getPlayerSize();c=new g.J_(0,0,c.width,c.height);if(z||this.l9.K&&!this.jo()){if(this.api.N().BW||p)z=this.lz()?this.uq:this.YZ,c.top+=z,c.height-=z;this.Av&&(c.height-=Rbf(this.Av))}return c}; g.V.Za=function(z){var p=this.api.getRootNode();z?p.parentElement?(p.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.N().externalFullscreen||(p.parentElement.insertBefore(this.zM.element,p),p.parentElement.insertBefore(this.Dn.element,p.nextSibling))):g.Fr(Error("Player not in DOM.")):(p.setAttribute("aria-label","YouTube Video Player"),this.zM.detach(),this.Dn.detach());this.UW();this.dX()}; g.V.lz=function(){var z=this.api.N();return this.api.isFullscreen()&&!z.S||!1}; g.V.showControls=function(z){this.SR=!z;this.Oo()}; g.V.UW=function(){var z=this.lz();this.tooltip.scale=z?1.5:1;this.contextMenu&&g.Yf(this.contextMenu.element,"ytp-big-mode",z);this.Oo();this.api.Y("web_player_hide_overflow_button_if_empty_menu")||Iwf(this);this.dX();var p=this.api.isEmbedsShortsMode();p&&z?(z=(this.api.Hq().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.mm(this.gL.element,"padding-left",z+"px"),g.mm(this.gL.element,"padding-right",z+"px")):p&&(g.mm(this.gL.element,"padding-left",""),g.mm(this.gL.element,"padding-right", ""));g.o0.prototype.UW.call(this)}; g.V.J_=function(){if(v$Y(this)&&!g.lg(this.api))return!1;var z=this.api.getVideoData();return!g.yB(this.api.N())||this.api.getPresentingPlayerType()===2||!this.Sh||((z=this.Sh||z.Sh)?(z=z.embedPreview)?(z=z.thumbnailPreviewRenderer,z=z.videoDetails&&g.I(z.videoDetails,Hc_)||null):z=null:z=null,z&&z.collapsedRenderer&&z.expandedRenderer)?g.o0.prototype.J_.call(this):!1}; g.V.dX=function(){g.o0.prototype.dX.call(this);this.api.logVisibility(this.title.element,!!this.Rf);this.rq&&this.rq.Ns(!!this.Rf);this.channelAvatar.Ns(!!this.Rf);this.overflowButton&&this.overflowButton.Ns(this.jm()&&!!this.Rf);this.shareButton&&this.shareButton.Ns(!this.jm()&&!!this.Rf);this.lx&&this.lx.Ns(!this.jm()&&!!this.Rf);this.searchButton&&this.searchButton.Ns(!this.jm()&&!!this.Rf);this.copyLinkButton&&this.copyLinkButton.Ns(!this.jm()&&!!this.Rf);if(!this.Rf){this.api.Se(this.gL.element); for(var z=0;z5&&p.KH("glrs",{cmt:c});p.seekTo(0,{seekSource:58});p.KH("glrre",{cmt:c})}}; am.prototype.m0=function(){this.W=null;g.e.prototype.m0.call(this)};g.Y(g.ZK,HS);g.V=g.ZK.prototype;g.V.isView=function(){return!0}; g.V.L0=function(){var z=this.mediaElement.getCurrentTime();if(z1;Jw(z.UR(),B-.01)&&!H&&(dT(this,4),c.isActive=!1,c.g4=c.g4||c.isActive,(this.L===1?this.W:this.K).KH("sbh",{}),p.isActive=!0,p.g4=p.g4||p.isActive,this.L!==0&&(this.W.getVideoData().gQ=!0));z=this.X.K;if(this.X.W.isActive&&z.isActive&&(dT(this,5),this.L!==0)){z=this.K.uU();c=this.W.uU(); this.W.KH("sbs",{citag:c==null?void 0:c.itag,nitag:z==null?void 0:z.itag});this.K.KH("gitags",{pitag:c==null?void 0:c.itag,citag:z==null?void 0:z.itag});var T;(T=this.K)==null||T.hQ()}}}; g.V.Ck=function(){this.us()&&this.R3("player-reload-after-handoff")}; g.V.R3=function(z,p){p=p===void 0?{}:p;if(!this.qZ()&&this.status.status!==6){var c=this.status.status>=4&&z!=="player-reload-after-handoff";this.status={status:Infinity,error:z};if(this.W&&this.K){var B=this.K.getVideoData().clientPlaybackNonce;this.W.ZP(new W2("dai.transitionfailure",Object.assign(p,{cpn:B,transitionTimeMs:this.Y8,msg:z})));this.W.uw(c)}this.oP.reject(z);this.dispose()}}; g.V.us=function(){return this.status.status>=4&&this.status.status<6}; g.V.m0=function(){fwW(this);this.W.unsubscribe("newelementrequired",this.Ck,this);if(this.D){var z=this.D.K;this.D.W.MP.unsubscribe("updateend",this.lK,this);z.MP.unsubscribe("updateend",this.lK,this)}g.e.prototype.m0.call(this)}; g.V.n$=function(z){g.wn(z,128)&&this.R3("player-error-event")};g.Y(Wk,g.e);Wk.prototype.clearQueue=function(z,p){z=z===void 0?!1:z;p=p===void 0?!1:p;this.X&&this.X.reject("Queue cleared");this.app.N().Y("html5_gapless_fallback_on_qoe_restart_v2")||p&&this.K&&this.K.uw(!1);yO(this,z)}; Wk.prototype.pD=function(){return!this.W}; Wk.prototype.us=function(){var z;return((z=this.D)==null?void 0:z.us())||!1}; Wk.prototype.m0=function(){yO(this);g.e.prototype.m0.call(this)};g.Y(Tx_,g.JQ);g.V=Tx_.prototype;g.V.getVisibilityState=function(z,p,c,B,H,T,b,D){return z?4:fZY()?3:p?2:c?1:B?5:H?7:T?8:b?9:D?10:0}; g.V.Re=function(z){this.fullscreen!==z&&(this.fullscreen=z,this.mV())}; g.V.setMinimized=function(z){this.K!==z&&(this.K=z,this.mV())}; g.V.setInline=function(z){this.inline!==z&&(this.inline=z,this.mV())}; g.V.o6=function(z){this.pictureInPicture!==z&&(this.pictureInPicture=z,this.mV())}; g.V.setSqueezeback=function(z){this.D!==z&&(this.D=z,this.mV())}; g.V.mR=function(z){this.X!==z&&(this.X=z,this.mV())}; g.V.td=function(){return this.W}; g.V.A5=function(){return this.fullscreen!==0}; g.V.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.V.Rb=function(){return this.fullscreen}; g.V.isMinimized=function(){return this.K}; g.V.isInline=function(){return this.inline}; g.V.isBackground=function(){return fZY()}; g.V.Pu=function(){return this.pictureInPicture}; g.V.rl=function(){return!1}; g.V.wl=function(){return this.D}; g.V.Aq=function(){return this.X}; g.V.mV=function(){this.publish("visibilitychange");var z=this.getVisibilityState(this.td(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Pu(),this.rl(),this.wl(),this.Aq());z!==this.V&&this.publish("visibilitystatechange");this.V=z}; g.V.m0=function(){cAQ(this.L);g.JQ.prototype.m0.call(this)};g.V=g.CK.prototype;g.V.addCueRange=function(){}; g.V.kp=function(){}; g.V.VV=function(){}; g.V.jw=function(){return!1}; g.V.Mx=function(){return!1}; g.V.MU=function(){return!1}; g.V.H$=function(){}; g.V.XU=function(){}; g.V.Mr=function(){}; g.V.l_=function(){}; g.V.XE=function(){return[]}; g.V.Z8=function(){}; g.V.LM=function(){return""}; g.V.getAudioTrack=function(){return this.getVideoData().SK}; g.V.getAvailableAudioTracks=function(){return[]}; g.V.K4=function(){return[]}; g.V.Fr=function(){return[]}; g.V.Vm=function(){return[]}; g.V.N9=function(){}; g.V.pN=function(){return 0}; g.V.sE=function(){return""}; g.V.getCurrentTime=function(){return 0}; g.V.Pb=function(){}; g.V.uU=function(){}; g.V.kt=function(){return{}}; g.V.getDuration=function(){return 0}; g.V.ww=function(){return 0}; g.V.S5=function(){return 0}; g.V.GQ=function(){return!1}; g.V.yy=function(){return 0}; g.V.n9=function(){return 0}; g.V.FO=cD(15);g.V.Gf=function(){return 0}; g.V.XO=function(){return!1}; g.V.tI=function(){return 0}; g.V.h1=function(){return null}; g.V.H0=function(){return null}; g.V.pB=function(){return 0}; g.V.fW=function(){return 0}; g.V.hv=function(){return g.L(function(z){g.Ai(z)})}; g.V.Bs=cD(21);g.V.getPlaybackQuality=function(){return"auto"}; g.V.getPlaybackRate=function(){return 1}; g.V.getPlayerState=function(){this.playerState||(this.playerState=new g.D0);return this.playerState}; g.V.getPlayerType=function(){return 0}; g.V.getPlaylistSequenceForTime=function(){return null}; g.V.xe=function(){return function(){}}; g.V.QQ=function(){return""}; g.V.getPreferredQuality=function(){return"unknown"}; g.V.hx=function(){}; g.V.getProximaLatencyPreference=function(){return 0}; g.V.yj=function(){return ge}; g.V.LD=function(){return null}; g.V.getStoryboardFormat=function(){return null}; g.V.getStreamTimeOffset=function(){return 0}; g.V.ZF=function(){return 0}; g.V.e_=function(){return 0}; g.V.Kz=function(){return{iM:[],XI:[],currentTime:0,NN:"",droppedVideoFrames:0,isGapless:!1,pD:!0,SZ:0,w8:0,Z4:0,Nu:0,Pa:0,A0:[],q$:[],fX:null,playerState:this.getPlayerState(),d_:null,rW:"",totalVideoFrames:0}}; g.V.getUserAudio51Preference=function(){return 0}; g.V.getUserPlaybackQualityPreference=function(){return""}; g.V.getVideoData=function(){this.videoData||(this.videoData=new g.GU(this.Wq));return this.videoData}; g.V.vI=function(){return null}; g.V.uA=function(){}; g.V.getVideoLoadedFraction=function(){return 0}; g.V.Lj=function(){}; g.V.handleError=function(){}; g.V.uw=function(){}; g.V.eT=function(){}; g.V.N1=function(){return!1}; g.V.wm=cD(46);g.V.PV=function(){return!1}; g.V.hasSupportedAudio51Tracks=function(){return!1}; g.V.If=function(){return!1}; g.V.td=function(){return!1}; g.V.isAtLiveHead=function(){return!1}; g.V.Pg=function(){return!0}; g.V.isGapless=function(){return!1}; g.V.isHdr=function(){return!1}; g.V.G5=function(){return!1}; g.V.WB=function(){return!1}; g.V.Ga=function(){return!1}; g.V.isProximaLatencyEligible=function(){return!1}; g.V.pD=function(){return!0}; g.V.Os=function(){return!1}; g.V.k7=function(){return!1}; g.V.ZD=function(){return!1}; g.V.Kk=function(){}; g.V.JF=function(){}; g.V.Ty=function(){}; g.V.oW=function(){}; g.V.hQ=function(){}; g.V.Wh=function(){}; g.V.im=function(){}; g.V.NK=function(){}; g.V.uT=function(){}; g.V.tC=cD(56);g.V.Xv=cD(27);g.V.Id=function(){}; g.V.tN=function(){}; g.V.pauseVideo=function(){}; g.V.playVideo=function(){return g.L(function(z){return z.return()})}; g.V.IP=function(){}; g.V.hd=cD(33);g.V.KD=cD(39);g.V.VN=function(){}; g.V.KH=function(){}; g.V.zx=function(){}; g.V.I6=function(){}; g.V.V0=function(){}; g.V.ZP=function(){}; g.V.fU=function(){}; g.V.LS=function(){}; g.V.fS=function(){}; g.V.fm=function(){}; g.V.kV=function(){}; g.V.qG=function(){}; g.V.XW=function(){}; g.V.Si=function(){}; g.V.removeCueRange=function(){}; g.V.q2=function(){}; g.V.gs=function(){return[]}; g.V.vH=function(){}; g.V.Gk=function(){}; g.V.N8=function(){}; g.V.zt=function(){}; g.V.Sf=function(){}; g.V.MC=function(){}; g.V.Oz=function(){}; g.V.seekTo=function(){}; g.V.sendAbandonmentPing=function(){}; g.V.sendVideoStatsEngageEvent=function(){}; g.V.nF=function(){}; g.V.xx=function(){}; g.V.setLoop=function(){}; g.V.Uz=function(){}; g.V.setMediaElement=function(){}; g.V.Ej=function(){}; g.V.setPlaybackRate=function(){}; g.V.OI=function(){}; g.V.nm=function(){}; g.V.tv=function(){}; g.V.setProximaLatencyPreference=function(){}; g.V.Mp=function(){}; g.V.DC=function(){}; g.V.GV=function(){}; g.V.F_=function(){}; g.V.Kh=function(){}; g.V.setUserAudio51Preference=function(){}; g.V.sy=function(){}; g.V.Rm=function(){return!1}; g.V.SP=function(){}; g.V.fn=function(){return!1}; g.V.VU=function(){}; g.V.Rl=function(){}; g.V.Vk=function(){}; g.V.stopVideo=function(){}; g.V.subscribe=function(){return NaN}; g.V.pn=function(){}; g.V.togglePictureInPicture=function(){}; g.V.G7=function(){return 0}; g.V.unsubscribe=function(){return!1}; g.V.Hh=function(){}; g.V.Bd=function(){return!1}; g.V.rh=function(){}; g.V.gX=function(){}; g.V.Sa=function(){}; g.V.xP=function(){};g.Y(g.eA,g.e);g.V=g.eA.prototype;g.V.cM=function(){return this.L}; g.V.H3=function(z){this.L=z}; g.V.dA=function(){return this.K}; g.V.Tj=function(z){this.K=z}; g.V.b1=cD(52);g.V.YS=cD(54);g.V.Mb=function(z){return z?z===1?this.L:this.K.getVideoData().enableServerStitchedDai&&z===2?this.K.getVideoData().Oc?this.D[2]||this.K:this.K:g.pT(this.K.getVideoData())&&z===2?this.D[2]||this.K:this.D[z]||null:this.K}; g.V.m0=function(){for(var z=g.m(Object.values(this.D)),p=z.next();!p.done;p=z.next())p.value.l_();g.e.prototype.m0.call(this)};g.Y(l9,g.e);g.V=l9.prototype;g.V.enqueue=function(z,p){if(z.X!==this)return!1;if(this.segments.length===0||(p===void 0?0:p))this.W=z;this.segments.push(z);return!0}; g.V.Yy=function(){return this.iQ||0}; g.V.PQ=function(){return this.X||0}; g.V.removeAll=function(){for(;this.segments.length;){var z=void 0;(z=this.segments.pop())==null||z.dispose()}this.K.clear();this.D=void 0}; g.V.m0=function(){this.removeAll();g.e.prototype.m0.call(this)}; g.Y(MmE,g.e);g.V=MmE.prototype;g.V.Yy=function(){return this.iQ}; g.V.PQ=function(){return this.D}; g.V.getType=function(){return this.type}; g.V.getVideoData=function(){return this.videoData}; g.V.MQ=function(z){LT(z);this.videoData=z}; g.V.m0=function(){Y1Q(this);g.e.prototype.m0.call(this)};g.FP.prototype.c5=function(z,p){if(p===1)return this.W.get(z);if(p===2)return this.D.get(z);if(p===3)return this.K.get(z)}; g.FP.prototype.s$=cD(64);g.FP.prototype.Fa=function(z,p,c,B){c={tS:B,K8:c};p?this.D.set(z,c):this.W.set(z,c)}; g.FP.prototype.clearAll=function(){this.W.clear();this.D.clear();this.K.clear()}; g.Y(g.om,g.e);g.V=g.om.prototype;g.V.xj=function(z,p,c){return new g.Xq(z,p,{id:c,namespace:"serverstitchedcuerange",priority:9})}; g.V.jz=function(z){var p=z.Ne?z.Ne*1E3:z.iQ,c=this.K.get(z.cpn);c&&this.playback.removeCueRange(c);this.K.delete(z.cpn);this.D.delete(z.cpn);c=this.L.indexOf(z);c>=0&&this.L.splice(c,1);c=[];for(var B=g.m(this.V),H=B.next();!H.done;H=B.next())H=H.value,H.end<=p?this.playback.removeCueRange(H):c.push(H);this.V=c;y4B(this,0,p+z.durationMs)}; g.V.onCueRangeEnter=function(z){this.i8.push(z);var p=z.getId();this.kA({oncueEnter:1,cpn:p,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.pN()||0).toFixed(3)});var c=p==="";this.Zt.add(z.K);var B=this.D.get(p);if(c){var H;if(this.playback.getVideoData().yL()&&((H=this.W)==null?0:H.yf)&&this.X){this.i6=0;this.W=void 0;this.tD&&(this.events.vy(this.tD),this.tD=null);this.X="";this.OH=!0;return}}else if(this.kA({enterAdCueRange:1}),this.playback.getVideoData().yL()&& (B==null?0:B.iB))return;if(this.OH&&!this.W)this.OH=!1,!c&&B&&(c=this.playback.getCurrentTime(),kd(this,{GZ:z,isAd:!0,bU:!0,Ad:c,adCpn:p},{isAd:!1,bU:!1,Ad:c}),this.zr=B.cpn,Uy(this,B),z=rT(this,"midab",B),this.kA(z),this.i6=1),this.U=!1;else if(this.W){if(this.W.bU)this.kA({a_pair_of_same_transition_occurs_enter:1,acpn:this.W.adCpn,transitionTime:this.W.Ad,cpn:p,currentTime:this.playback.getCurrentTime()}),B=this.playback.getCurrentTime(),z={GZ:z,isAd:!c,bU:!0,Ad:B,adCpn:p},p={GZ:this.W.GZ,isAd:this.W.isAd, bU:!1,Ad:B,adCpn:this.W.adCpn},this.W.GZ&&this.Zt.delete(this.W.GZ.K),kd(this,z,p);else{if(this.W.GZ===z){this.kA({same_cue_range_pair_enter:1,acpn:this.W.adCpn,transitionTime:this.W.Ad,cpn:p,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:z.start,cueRangeEndTime:z.end});this.W=void 0;return}if(this.W.adCpn===p){p&&this.kA({dchtsc:p});this.W=void 0;return}z={GZ:z,isAd:!c,bU:!0,Ad:this.playback.getCurrentTime(),adCpn:p};kd(this,z,this.W)}this.W=void 0;this.U=!1}else this.W={GZ:z,isAd:!c, bU:!0,Ad:this.playback.getCurrentTime(),adCpn:p}}; g.V.onCueRangeExit=function(z){var p=z.getId();this.kA({oncueExit:1,cpn:p,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.pN()||0).toFixed(3)});var c=p==="",B=this.D.get(p);if(this.playback.getVideoData().yL()&&!c&&B){if(B.iB)return;B.iB=!0;this.S.clear();if(this.Wq.Y("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.jw()){var H=B.iQ;this.playback.Si(H/1E3,(H+B.durationMs)/1E3)}else this.playback.KH("lifa",{remove:0})}if(this.Zt.has(z.K))if(this.Zt.delete(z.K), this.i8=this.i8.filter(function(T){return T!==z}),this.OH&&(this.U=this.OH=!1,this.kA({cref:1})),this.W){if(this.W.bU){if(this.W.GZ===z){this.kA({same_cue_range_pair_exit:1, acpn:this.W.adCpn,transitionTime:this.W.Ad,cpn:p,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:z.start,cueRangeEndTime:z.end});this.W=void 0;return}if(this.W.adCpn===p){p&&this.kA({dchtsc:p});this.W=void 0;return}p={GZ:z,isAd:!c,bU:!1,Ad:this.playback.getCurrentTime(),adCpn:p};kd(this,this.W,p)}else if(this.kA({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.W.adCpn,transitionTime:this.W.Ad,upcomingCpn:p,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.W.adCpn===p)return;this.W=void 0;this.U=!1}else this.W={GZ:z,isAd:!c,bU:!1,Ad:this.playback.getCurrentTime(),adCpn:p};else this.kA({ignore_single_exit:1})}; g.V.MR=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,iQ:0,playerType:1,zZ:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.V.Eb=function(){if(this.Cs)return!1;var z=void 0;this.zr&&(z=this.D.get(this.zr));return this.playback.getVideoData().yL()?!!z&&!z.iB:!!z}; g.V.seekTo=function(z,p,c,B){z=z===void 0?0:z;p=p===void 0?{}:p;c=c===void 0?!1:c;B=B===void 0?null:B;if(this.playback.getVideoData().yL()&&z<=this.T$/1E3)this.playback.pauseVideo(),this.T$=0,this.U=!0,this.playback.hv(),this.playback.seekTo(z),this.playback.playVideo();else if(this.U=!0,c)hrB(this,z,p);else{c=this.app.dA();var H=c===this.NZ?this.FQ:null;GK(this,!1);this.Ca=z;this.gt=p;B!=null&&this.Zw.start(B);c&&(this.FQ=H||c.getPlayerState(),c.Vk(p),this.NZ=c)}}; g.V.m0=function(){GK(this,!1);KDV(this);utB(this);g.e.prototype.m0.call(this)}; g.V.l0=function(z){this.LB=z;this.kA({swebm:z})}; g.V.NO=function(z,p,c){if(c&&p){var B=this.S.get(z);if(B){B.locations||(B.locations=new Map);var H=Number(p.split(";")[0]);c=new g.uF(c);this.kA({hdlredir:1,itag:p,seg:z,hostport:ZW(c)});B.locations.set(H,c)}}}; g.V.l$=function(z,p,c,B,H,T){var b=B===3,D=Zsu(this,z,p,B,c,T);if(!D){fK(this,p,b);var t=g.ahB(this,p)?"undec":"ncp";this.kA({gvprp:t,mt:z,seg:p,tt:B,itag:c,ce:T});return null}b||this.S.set(p,D);T=D.u6;var X;B=((X=this.c5(p-1,B,H))==null?void 0:X.tS)||"";B===""&&this.kA({eds:1});X=dXN(this,D.ssdaiAdsConfig);H=this.playback.getVideoData();var x;b=((x=H.K)==null?void 0:x.containerType)||0;x=H.Pj[b];D=D.uF&&p>=D.uF?D.uF:void 0;x={aZ:T?erV(this,T):[],hX:X,tS:B,X4:D,cJ:Tk(x.split(";")[0]),KT:x.split(";")[1]|| ""};D={IH:x};this.UH&&(z={gvprpro:"v",sq:p,mt:z.toFixed(3),itag:c,acpns:((t=x.aZ)==null?void 0:t.join("_"))||"none",abid:T},this.kA(z));return D}; g.V.ML=function(z){a:{if(!this.Cs){var p=LDD(this,z);if(!(this.playback.getVideoData().yL()&&(p==null?0:p.iB)))break a}p=void 0}var c=p;if(!c)return this.kA({gvprp:"ncp",mt:z}),null;p=c.u6;var B=dXN(this,c.ssdaiAdsConfig);c=c.uF&&c.Ir&&z>=c.Ir?c.uF:void 0;var H=this.playback.getVideoData(),T,b=((T=H.K)==null?void 0:T.containerType)||0;T=H.Pj[b];T={aZ:p?erV(this,p):[],hX:B,X4:c,cJ:Tk(T.split(";")[0]),KT:T.split(";")[1]||""};var D;z={gvprpro:"v",mt:z.toFixed(3),acpns:((D=T.aZ)==null?void 0:D.join("_"))|| "none",abid:p};this.kA(z);return T}; g.V.J9=function(z,p,c,B,H,T){var b=Number(c.split(";")[0]),D=B===3;z=Zsu(this,z,p,B,c,T);this.kA({gdu:1,seg:p,itag:b,pb:""+!!z});if(!z)return fK(this,p,D),null;z.locations||(z.locations=new Map);if(!z.locations.has(b)){var t,X;T=(t=z.videoData.getPlayerResponse())==null?void 0:(X=t.streamingData)==null?void 0:X.adaptiveFormats;if(!T)return this.kA({gdu:"noadpfmts",seg:p,itag:b}),fK(this,p,D),null;t=T.find(function(q){return q.itag===b}); if(!t||!t.url){var x=z.videoData.videoId;z=[];var E=g.m(T);for(B=E.next();!B.done;B=E.next())z.push(B.value.itag);this.kA({gdu:"nofmt",seg:p,vid:x,itag:b,fullitag:c,itags:z.join(",")});fK(this,p,D);return null}z.locations.set(b,new g.uF(t.url,!0))}T=z.locations.get(b);if(!T)return this.kA({gdu:"nourl",seg:p,itag:b}),fK(this,p,D),null;T=new AR(T);this.LB&&(T.get("dvc")?this.kA({dvc:T.get("dvc")||""}):T.set("dvc","webm"));(B=(E=this.c5(p-1,B,H))==null?void 0:E.tS)&&T.set("daistate",B);z.uF&&p>=z.uF&& T.set("skipsq",""+z.uF);(E=this.playback.getVideoData().clientPlaybackNonce)&&T.set("cpn",E);E=[];z.u6&&(E=erV(this,z.u6),E.length>0&&T.set("acpns",E.join(",")));D||this.S.set(p,z);D=null;D=T.get("aids");B=T.BU();(B==null?void 0:B.length)>2048&&this.kA({urltoolong:1,sq:p,itag:b,len:B.length});this.UH&&(B&&(T=z.cpn,H=z.u6,IhS(this,T,H),H&&!this.JH.has(H)&&(T=lhu(this,T,H),t=vsW(this,H),this.kA({iofa:T}),this.kA({noawnzd:t-T}),this.kA({acpns:E.join("."),aids:(x=D)==null?void 0:x.replace(/,/g,".")}), this.JH.add(H))),this.kA({gdu:"v",seg:p,itag:c,ast:z.iQ.toFixed(3),alen:z.durationMs.toFixed(3),acpn:z.cpn,avid:z.videoData.videoId}));return B}; g.V.Zk=function(z,p,c){var B=Nh(this,z,c);return(B=B?(B.iQ+B.durationMs)/1E3:0)&&p>B?(this.IY(z,c,!0),this.playback.seekTo(B),!0):!1}; g.V.IY=function(z,p,c){c=c===void 0?!1:c;var B=Nh(this,z,p);if(B){var H=void 0,T=B.u6;if(T){this.kA({skipadonsq:p,sts:c,abid:T,acpn:B.cpn,avid:B.videoData.videoId});c=this.G.get(T);if(!c)return;c=g.m(c);for(T=c.next();!T.done;T=c.next())T=T.value,T.uF=p,T.Ir=z,T.iQ>B.iQ&&(H=T)}this.X=B.cpn;WDE(this);z=this.playback.getCurrentTime();sy(this,B,H,z,z,!1,!0)}}; g.V.Y2=function(){for(var z=g.m(this.L),p=z.next();!p.done;p=z.next())p=p.value,p.uF=NaN,p.Ir=NaN;WDE(this);this.kA({rsac:"resetSkipAd",sac:this.X});this.X=""}; g.V.c5=function(z,p,c){return this.fH.c5(z,p,c)}; g.V.s$=cD(63); g.V.Fa=function(z,p,c,B,H,T,b,D,t){B.length>0&&this.kA({onssinfo:1,sq:z,start:p.toFixed(3),cpns:B.join(","),ds:H.join(","),isVideo:b?1:0});t&&this.fH.Fa(z,b,D,t);if(b){if(B.length&&H.length)for(this.X&&this.X===B[0]&&this.kA({skipfail:1,sq:z,acpn:this.X}),z=p+this.ZF(),b=0;b0&&(this.i6=0,this.zr="",this.api.publish("serverstitchedvideochange"));this.playback.Mr(c,B);return!0}; g.V.rG=function(){this.kA({rstdaist:1});this.fH.clearAll()}; g.V.zV=function(z){var p;if(z!==((p=this.Dt)==null?void 0:p.identifier))this.kA({ignorenoad:z});else{this.RR.add(z);(this.Wq.Y("html5_log_noad_response_received")||this.playback.getVideoData().yL())&&this.kA({noadrcv:z});var c;((c=this.Dt)==null?void 0:c.identifier)===z&&QO(this)}}; g.V.dV=function(){return this.i6}; g.V.AA=function(){return this.zr}; g.V.M2=function(z){if(this.Cs)return this.kA({dai_disabled:z.event}),!1;if(this.playback.getVideoData().yL()&&(this.Wq.Y("html5_lifa_no_gab_on_predict_start")&&z.event==="predictStart"||z.event==="continue"||z.event==="stop"))return this.kA({cuepoint_skipped:z.event}),!1;var p=Kn(this.api.mU());if(p=p?p.M2(z):!1)this.MZ={OG:z.identifier,RD:z.startSecs};else if(this.MZ&&this.MZ.OG===z.identifier&&z.startSecs>this.MZ.RD+1){this.kA({cueStChg:z.identifier,oldSt:this.MZ.RD.toFixed(3),newSt:z.startSecs.toFixed(3), abid:this.MZ.h$});if(this.MZ.h$){var c=z.startSecs-this.MZ.RD,B=this.G.get(this.MZ.h$);if(B){B=g.m(B);for(var H=B.next();!H.done;H=B.next())H=H.value,H.iQ>=0&&(H.iQ+=c*1E3,this.Wq.Y("html5_ssdai_update_timeline_on_start_time_change")&&(H.zZ+=c*1E3),this.kA({newApEt:H.iQ,newApPrt:H.zZ,acpn:H.cpn}))}}this.MZ.RD=z.startSecs}return p}; g.V.DM=function(z){return this.Cs?!1:!!LDD(this,z)}; g.V.Rr=function(z){var p=this;this.playback.pauseVideo();var c=this.playback.getCurrentTime(),B=this.Wq.Y("html5_lifa_reset_segment_index_on_skip"),H=B?c+this.playback.ZF():c,T=this.D.get(this.zr),b=this.K.get(this.zr);if(T){this.X=this.zr;this.U=!1;T.iB=!0;c=this.playback.getCurrentTime();this.W={GZ:b,isAd:!0,bU:!1,Ad:c,adCpn:this.zr,yf:T,qJA:z};this.playback.fm(T,this.MR(),c,this.playback.getCurrentTime(),!1,!0,z,(0,g.y2)());B&&this.playback.Id();if(b==null?0:b.start)this.T$=c*1E3-b.start;this.S.clear(); this.playback.hv();this.zr=this.MR().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(H,{seekSource:89,VL:"lifa_skip"});this.playback.playVideo();this.tD||(this.tD=this.events.Z(this.api,"progresssync",function(){p.jz(T)})); return!0}this.kA({skipFail:c},!0);return!1}; g.V.kA=function(z,p){((p===void 0?0:p)||this.UH||this.playback.getVideoData().yL())&&this.playback.KH("sdai",z)}; var wou=0;g.Y(joi,g.om);g.V=joi.prototype;g.V.onCueRangeEnter=function(z){var p=z.getId();this.playback.KH("sdai",{oncueEnter:1,cpn:p,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.pN()||0).toFixed(3)});z=this.D.get(p);this.playback.KH("sdai",{enterAdCueRange:1});p=this.zr||this.MR().cpn;var c;p=(c=this.D.get(p))!=null?c:this.MR();z&&(c={h_:p,t_:z,QY:this.playback.getCurrentTime()},this.Je(c))}; g.V.onCueRangeExit=function(z){var p=this.playback.getCurrentTime()*1E3;z=z.getId();for(var c=g.m(this.K.values()),B=c.next();!B.done;B=c.next())if(B=B.value,B.getId()!==z&&p>=B.start&&p<=B.end)return;if(p=this.D.get(z))p={h_:p,t_:this.MR(),QY:this.playback.getCurrentTime()},this.Je(p)}; g.V.Je=function(z){this.X||this.U||this.v6(this.zr);var p=z.h_,c=z.t_;if(c.cpn===this.zr)this.playback.KH("sdai",{igtranssame:1,enter:c.cpn,exit:p.cpn});else{var B=this.U,H=!!this.X;this.X="";var T=z.QY,b=p.playerType===2?p.iQ/1E3+p.videoData.NZ:this.MR().videoData.NZ;if(p.playerType===2&&c.playerType===2)H?this.playback.KH("sdai",{igtransskip:1,enter:c.cpn,exit:p.cpn,seek:B,skip:this.X}):sy(this,p,c,b,T,B,H);else{this.zr=c.cpn;z=z.Pz0;if(p.playerType===1&&c.playerType===2){this.T$=0;Uy(this,c);var D= rT(this,"c2a",c);this.playback.KH("sdai",D);this.i6++}else if(p.playerType===2&&c.playerType===1){D=p.videoData.NZ;this.api.publish("serverstitchedvideochange");var t=rT(this,"a2c");this.playback.KH("sdai",t);this.i6=0;this.T$=D*1E3;this.Q8=b;nsY(this,p.u6)}this.playback.fm(p,c,b,T,B,H,z)}this.X="";this.U=!1}}; g.V.seekTo=function(z,p,c,B){z=z===void 0?0:z;p=p===void 0?{}:p;c=c===void 0?!1:c;B=B===void 0?null:B;this.v6(this.zr);this.playback.getVideoData().yL()&&z<=this.Q8?(this.playback.pauseVideo(),this.Q8=this.T$=0,FDY(this,z)):g.om.prototype.seekTo.call(this,z,p,c,B)}; g.V.IY=function(z,p,c){c=c===void 0?!1:c;var B=Nh(this,z,p);if(B){var H=void 0,T=B.u6;if(T){this.playback.KH("sdai",{skipadonsq:p,sts:c,abid:T,acpn:B.cpn,avid:B.videoData.videoId});c=this.G.get(T);if(!c)return;c=g.m(c);for(T=c.next();!T.done;T=c.next())T=T.value,T.uF=p,T.Ir=z,T.iQ>B.iQ&&(H=T)}this.v6(this.zr);this.X=B.cpn;WDE(this);z=this.playback.getCurrentTime();sy(this,B,H,z,z,!1,!0)}}; g.V.Fa=function(z,p,c,B,H,T,b,D,t){B.length>0&&this.playback.KH("sdai",{onssinfo:1,sq:z,start:p.toFixed(3),cpns:B.join(","),ds:H.join(","),isVideo:b?1:0});t&&this.fH.Fa(z,b,D,t);if(b){if(B.length&&H.length)for(this.X&&this.X===B[0]&&this.playback.KH("sdai",{skipfail:1,sq:z,acpn:this.X}),z=p+this.ZF(),c=0;c=0&&this.L.splice(z,1)}; g.V.v6=function(z){var p=z||this.zr,c=this.D.get(p);if(c){z=c.videoData;var B,H;p=c.Ne||((H=(B=this.K.get(p))==null?void 0:B.start)!=null?H:0)/1E3;B=this.playback.getCurrentTime()-p;z.NZ=B>0?B:0}else this.MR().videoData.NZ=this.playback.getCurrentTime()};g.Y(soY,g.e);g.V=soY.prototype; g.V.UT=function(z,p){p=p===void 0?"":p;if(this.timeline.D===p)return!0;var c=this.timeline.W,B=c==null?void 0:c.getVideoData();if(!c||!B)return this.api.KH("ssap",{htsm:c?0:1}),!1;if(this.api.Y("html5_ssap_clear_timeline_before_update")){var H=this.timeline,T;(T=H.W)==null||Y1Q(T);H.K.clear()}H=vk(c);var b=!1;T=[];var D=new Map;c=[];var t=[],X=0,x=0,E=0,q=[];z=g.m(z);for(var J=z.next();!J.done;J=z.next())a:{var M=void 0,P=void 0,O=J.value,R=O.clipId;if(R){if(O.oY){E=O.oY.lW||0;J=O.oY.E3||1;var K= Number(((O.oY.OQ||0)/(O.oY.g_||1)*1E3).toFixed(0));E=J=K+Number((E/J*1E3).toFixed(0))}else J=K=E,this.W9.has(R)||this.EY.add(R);var Z=(P=D.get(R))!=null?P:0,W=this.timeline.D;P=!1;if(W&&this.api.Y("html5_ssap_clear_timeline_before_update")){if(W=this.xE.get(R))W.start=K,W.end=J,P=!0}else{if(W){var v=R;W=K;var zY=J,U=Z,HD=kn(this.timeline,v);if(HD!=null&&HD.length){U=D){this.uN.set(z,c);Nxf(this,z,p);this.x9.set(z,(0,g.y2)());if(c=this.xE.get(p))for(c=c.getId().split(","),c=g.m(c),b=c.next();!b.done;b=c.next())b=b.value,b!==p&&this.EY.has(b)&&(this.EY.delete(b),this.W9.add(b));this.v6();p=T.Yy()/1E3;T=void 0;c=(T=g.P3(this.api.N().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?T:0;this.api.Y("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(p+ c/1E3,{G9:!0}):this.playback.seekTo(p+c/1E3);this.Qk?(this.api.KH("ssap",{gpfreload:this.zr}),UXD(this)||(this.Qk=!1),this.playback.hv(!1,!1,this.api.Y("html5_ssap_keep_media_on_finish_segment"))):B&&this.playback.hv(!1,!1,this.api.Y("html5_ssap_keep_media_on_finish_segment"));H&&this.api.playVideo(1,this.api.Y("html5_ssap_keep_media_on_finish_segment"));return[z]}}}return[]}; g.V.A_=function(){var z=this.timeline.W;if(!z)return 0;var p=z.PQ();z=g.m(z.W.values());for(var c=z.next();!c.done;c=z.next()){c=g.m(c.value);for(var B=c.next();!B.done;B=c.next())B=B.value,B.PQ()>p&&(p=B.PQ())}return p/1E3}; g.V.pB=function(){var z=this.playback.getCurrentTime()*1E3;var p=cKN(this,z);if(!p){var c=kn(this.timeline,this.zr);if(c){c=g.m(c);for(var B=c.next();!B.done;B=c.next())B=B.value,B.Yy()>z&&(p=B)}}return p&&p.getType()===1?p.Yy()/1E3:0}; g.V.getVideoData=function(z){if(z===2&&!this.Eb()){if(this.Bo&&this.HW.has(this.Bo))return this.HW.get(this.Bo);this.api.KH("ssap",{lpanf:""+oa(this)});return null}return i1i(this)}; g.V.Eb=function(){var z=kn(this.timeline,this.zr);return(z==null?0:z.length)?z[0].getType()===2:!1}; g.V.oX=function(){var z=kn(this.timeline,this.zr);return(z==null?0:z.length)?z[0].K:!1}; g.V.seekTo=function(z,p){p=p===void 0?{}:p;var c=BZY(this,this.playback.getCurrentTime());this.playback.seekTo(z+c/1E3,p)}; g.V.xj=function(z,p,c){return new g.Xq(z,p,{id:c,namespace:"ssap",priority:9})}; g.V.onCueRangeEnter=function(z){if(!this.a$.has(z.getId())){this.api.KH("ssap",{oce:1,cpn:z.getId(),st:z.start,et:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.pN()||0).toFixed(3)});for(var p=z.getId().split(","),c=0;cc+1)for(B=c+1;B0?p:0}; g.V.cv3=function(z){var p=this.HW.get(this.zr);p&&this.playback.fU(z-p.Q8/1E3,p.lengthSeconds,this.zr)}; g.V.m0=function(){this.api.N().OW()&&this.api.KH("ssap",{di:""+this.zr,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.HW.clear();this.EY.clear();this.a$.clear();this.uN.clear();this.x9.clear();this.W9.clear();this.Dk=[];r4B(this);this.fZ="";g.CG(this.events);g.e.prototype.m0.call(this)};g.Y(DfS,g.e);g.V=DfS.prototype;g.V.onCueRangeEnter=function(z){if(this.W===this.app.dA()){var p=this.L.get(z);p?JKW(this,p.target,p.Y8,z):this.ZP("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:z.toString()})}else if(p=this.K.find(function(H){return H.WI.GZ===z})){var c=p.WI,B=c.target; c=c.Y8;B?JKW(this,B,c,z):qfS(this,p.zZ,c,z)}}; g.V.onQueuedVideoLoaded=function(){var z=this.G;iu(this);if(z){if(!Hz(this,z)){var p=this.app.dA();this.ZP("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:p==null?void 0:p.getVideoData().clientPlaybackNonce,ccpn:""+z.playerVars.cpn})}this.app.dA().addCueRange(z.WI.GZ)}}; g.V.seekTo=function(z,p,c,B){z=z===void 0?0:z;p=p===void 0?{}:p;B=B===void 0?null:B;if(c===void 0?0:c)V6u(this,z,p);else{c=this.app.dA()||null;var H=c===this.X?this.V:null;Tp(this,!1);this.MZ=z;this.U=p;B!=null&&this.S.start(B);c&&(this.V=H||c.getPlayerState(),c.Vk(),this.X=c)}}; g.V.rL=function(z){g.wn(z,128)&&P7x(this)}; g.V.isManifestless=function(){return ha(this.W.getVideoData())}; g.V.m0=function(){Tp(this,!1);O1i(this);g.e.prototype.m0.call(this)}; g.V.ZP=function(z,p){this.W.ZP(new W2(z,p))}; var t6E=0;var w0Y="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_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.Y(DT,g.e);g.V=DT.prototype;g.V.get=function(z){bu(this);var p=this.data.find(function(c){return c.key===z}); return p?p.value:null}; g.V.set=function(z,p,c){this.remove(z,!0);bu(this);z={key:z,value:p,expire:Infinity};c&&isFinite(c)&&(c*=1E3,z.expire=(0,g.y2)()+c);for(this.data.push(z);this.data.length>this.D;)(c=this.data.shift())&&t0(this,c,!0);V8(this)}; g.V.remove=function(z,p){p=p===void 0?!1:p;var c=this.data.find(function(B){return B.key===z}); c&&(t0(this,c,p),g.zo(this.data,function(B){return B.key===z}),V8(this))}; g.V.removeAll=function(z){if(z=z===void 0?!1:z)for(var p=g.m(this.data),c=p.next();!c.done;c=p.next())t0(this,c.value,z);this.data=[];V8(this)}; g.V.m0=function(){var z=this;g.e.prototype.m0.call(this);this.data.forEach(function(p){t0(z,p,!0)}); this.data=[]};g.Y(X5,g.e);X5.prototype.r7=function(z){if(z)return this.K.get(z)}; X5.prototype.m0=function(){this.W.removeAll();this.K.removeAll();g.e.prototype.m0.call(this)};g.pA9=hG(function(){var z=window.AudioContext||window.webkitAudioContext;try{return new z}catch(p){return p.name}});g.Y(uvN,g.Q);g.V=uvN.prototype;g.V.Ze=function(){g.q5(this.element,g.L_.apply(0,arguments))}; g.V.Gk=function(){this.zl&&(this.zl.removeEventListener("focus",this.Wz),g.t3(this.zl),this.zl=null)}; g.V.cC=function(){this.qZ();var z=this.app.N();z.gh||this.Ze("tag-pool-enabled");z.V&&this.Ze(g.Ga.HOUSE_BRAND);z.playerStyle==="gvn"&&(this.Ze("ytp-gvn"),this.element.style.backgroundColor="transparent");z.Wy&&(this.w2=g.xg("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.V.sz=function(z){g.I6(this.app.N());this.QG=!z;x1(this)}; g.V.resize=function(){if(this.zl){var z=this.fD();if(!z.isEmpty()){var p=!g.O2(z,this.nG.getSize()),c=W3D(this);p&&(this.nG.width=z.width,this.nG.height=z.height);z=this.app.N();(c||p||z.Wy)&&this.app.nH.publish("resize",this.getPlayerSize())}}}; g.V.le=function(z,p){this.updateVideoData(p)}; g.V.updateVideoData=function(z){if(this.zl){var p=this.app.N();zG&&(this.zl.setAttribute("x-webkit-airplay","allow"),z.title?this.zl.setAttribute("title",z.title):this.zl.removeAttribute("title"));this.zl.setAttribute("controlslist","nodownload");p.a_&&z.videoId&&(this.zl.poster=z.o3("default.jpg"))}p=g.ay(z,"yt:bgcolor");this.Yu.style.backgroundColor=p?p:"";this.fE=EA(g.ay(z,"yt:stretch"));this.qo=EA(g.ay(z,"yt:crop"),!0);g.Yf(this.element,"ytp-dni",z.Sd);this.resize()}; g.V.setGlobalCrop=function(z){this.Xl=EA(z,!0);this.resize()}; g.V.setCenterCrop=function(z){this.Cf=z;this.resize()}; g.V.Re=function(){}; g.V.getPlayerSize=function(){var z=this.app.N(),p=this.app.nH.isFullscreen(),c=z.externalFullscreen&&g.yB(z);if(p&&gS()&&!c)return new g.Ao(window.outerWidth,window.outerHeight);c=!isNaN(this.eW.width)&&!isNaN(this.eW.height);var B=this.app.N().Y("kevlar_player_enable_squeezeback_fullscreen_sizing");if(p&&!c&&B)return new g.Ao(this.element.clientWidth,this.element.clientHeight);if(p||z.U_){if(window.matchMedia){z="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.qK&&this.qK.media=== z||(this.qK=window.matchMedia(z));var H=this.qK&&this.qK.matches}if(H)return new g.Ao(window.innerWidth,window.innerHeight)}else if(c)return this.eW.clone();return new g.Ao(this.element.clientWidth,this.element.clientHeight)}; g.V.fD=function(){var z=this.app.N().Y("enable_desktop_player_underlay"),p=this.getPlayerSize(),c=g.P3(this.app.N().experiments,"player_underlay_min_player_width");return z&&this.K0&&p.width>c?(z=g.P3(this.app.N().experiments,"player_underlay_video_width_fraction"),new g.Ao(Math.min(p.height*this.getVideoAspectRatio(),p.width*z),Math.min(p.height,p.width*z/this.getVideoAspectRatio()))):p}; g.V.getVideoAspectRatio=function(){return isNaN(this.fE)?Z1W(this):this.fE}; g.V.getVideoContentRect=function(z){var p=this.fD();z=L3f(this,p,this.getVideoAspectRatio(),z);return new g.J_((p.width-z.width)/2,(p.height-z.height)/2,z.width,z.height)}; g.V.Yp=function(z){this.K0=z;this.resize()}; g.V.B5=function(){return this.z_}; g.V.onMutedAutoplayChange=function(){x1(this)}; g.V.setInternalSize=function(z){g.O2(this.eW,z)||(this.eW=z,this.resize())}; g.V.m0=function(){this.w2&&g.Ej(this.w2);this.Gk();g.Q.prototype.m0.call(this)};g.V=yKE.prototype;g.V.click=function(z,p){this.elements.has(z);this.W.has(z);var c=g.Wu();c&&z.visualElement&&g.xj(c,z.visualElement,p)}; g.V.createClientVe=function(z,p,c,B){var H=this;B=B===void 0?!1:B;this.elements.has(z);this.elements.add(z);c=RYx(c);z.visualElement=c;var T=g.Wu(),b=g.dH();T&&b&&(g.KN("combine_ve_grafts")?yg(dU(),c,b):g.iO(g.pB)(void 0,T,b,c));p.addOnDisposeCallback(function(){H.elements.has(z)&&H.destroyVe(z)}); B&&this.K.add(z)}; g.V.createServerVe=function(z,p,c){var B=this;c=c===void 0?!1:c;this.elements.has(z);this.elements.add(z);p.addOnDisposeCallback(function(){B.destroyVe(z)}); c&&this.K.add(z)}; g.V.destroyVe=function(z){this.elements.has(z);this.elements.delete(z);this.D.delete(z);this.W.delete(z);this.K.delete(z)}; g.V.m9=function(z,p){this.clientPlaybackNonce!==p&&(this.clientPlaybackNonce=p,Wt(dU(),z),C7N(this))}; g.V.setTrackingParams=function(z,p){this.elements.has(z);p&&(z.visualElement=g.ZU(p))}; g.V.DP=function(z,p,c){this.elements.has(z);p?this.W.add(z):this.W.delete(z);var B=g.Wu(),H=z.visualElement;this.K.has(z)?B&&H&&(p?g.tQ(B,[H]):g.X9(B,[H])):p&&!this.D.has(z)&&(B&&H&&g.Dy(B,H,void 0,c),this.D.add(z))}; g.V.hasVe=function(z){return this.elements.has(z)};g.Y(g.qz,g.e);g.qz.create=function(z,p,c,B){try{var H=typeof z==="string"?z:"player"+g.GY(z),T=Ak[H];if(T){try{T.dispose()}catch(D){g.Fr(D)}Ak[H]=null}var b=new g.qz(z,p,c,B);b.addOnDisposeCallback(function(){Ak[H]=null;b.ZH&&b.ZH()}); return Ak[H]=b}catch(D){throw g.Fr(D),(D&&D instanceof Error?D:Error(String(D))).stack;}}; g.V=g.qz.prototype;g.V.wC=function(){return this.visibility}; g.V.H3=function(z){var p=this.cM();if(z!==p){z.getVideoData().autonavState=p.getVideoData().autonavState;p.Hh(this.K7,this);var c=p.getPlaybackRate();p.l_();this.bk.H3(z);z.setPlaybackRate(c);z.pn(this.K7,this);ozN(this)}}; g.V.Jn=function(){this.d3||(this.d3=g.q2(r$(),hsx()));return this.d3}; g.V.Gk=function(z){if(this.mediaElement){this.g0&&(this.events.vy(this.g0),this.g0=null);g.CG(this.sJ);var p=this.dA();p&&p.Gk(!0,!1,z);this.template.Gk();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.ub()}catch(c){g.oc(c)}this.mediaElement=null}}; g.V.Tj=function(z,p,c){c=c===void 0?!1:c;if(z!==this.dA()){this.logger.debug(function(){return"start set presenting player, type "+z.getPlayerType()+", vid "+z.getVideoData().videoId}); var B=null,H=this.dA();c=this.Y("web_player_present_empty")?!c:!0;H&&c&&(B=H.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),$F(this.Mi,3),Cy(this,"cuerangesremoved",H.Vm()),this.Xo&&!z.isGapless()&&H.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),H=z.Rm()&&H.Rm(),this.VS.Ph("iv_s"),f4B(this,H));z.getPlayerType()===1&&this.H3(z);NZi(this,z);this.bk.Tj(z);this.mediaElement&&z.setMediaElement(this.mediaElement);z.pn(this.Ng,this);z.k7()?uEx(this,"setPresenting", !1):(this.le("newdata",z,z.getVideoData()),B&&!g.JO(B,z.getPlayerState())&&this.E8(new g.Ab(z.getPlayerState(),B)),p=p&&this.Y("html5_player_preload_ad_fix")&&z.getPlayerType()===1,z.WB()&&!p&&this.le("dataloaded",z,z.getVideoData()),(p=(p=z.getVideoData().K)&&p.video)&&this.nH.iA("onPlaybackQualityChange",p.quality),Cy(this,"cuerangesadded",z.Vm()),p=z.getPlayerState(),g.r(p,2)?GRE(this):g.r(p,8)?z.playVideo():z.G5()&&z.pauseVideo(),p=this.cM(),z.getPlayerType()===2&&(z.getVideoData().cA=p.getVideoData().clientPlaybackNonce), z.getPlayerType()!==2||this.Mn()||(B=z.getVideoData(),p.IP(B.clientPlaybackNonce,B.EW||"",B.breakType||0,B.e1,B.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.V.zb=function(){if(this.cM()!==this.dA()){var z=this.dA();this.logger.debug(function(){return"release presenting player, type "+(z==null?void 0:z.getPlayerType())+", vid "+(z==null?void 0:z.getVideoData().videoId)}); this.Tj(this.cM())}}; g.V.jD=function(){return this.bk}; g.V.Mb=function(z){return this.bk.Mb(z)}; g.V.cM=function(){return this.bk.cM()}; g.V.dA=function(){return this.bk.dA()}; g.V.o4=cD(50);g.V.TUp=function(){Pz(this)||(this.logger.debug("application playback ready"),this.qD(5))}; g.V.wUi=function(){if(!Pz(this)){this.logger.debug("playback ready");RqB(this);var z=this.dA(),p=z.getPlayerState();z.G5()?this.pauseVideo():p.isOrWillBePlaying()&&this.playVideo()}}; g.V.canPlayType=function(z){return lz(z)}; g.V.N=function(){return this.Wq}; g.V.getVideoData=function(){return this.dA().getVideoData()}; g.V.nW=cD(19);g.V.CB=function(){return this.cM().getVideoData()}; g.V.getVideoLoadedFraction=function(z){return(z=this.Mb(z))?z.getVideoLoadedFraction():this.bk.W.getVideoLoadedFraction()}; g.V.Hq=function(){return this.template}; g.V.mU=function(){return this.Mi}; g.V.Ik=function(){return this.VS}; g.V.al=function(z){var p=this.Mb(1);p&&p.xx(z)}; g.V.RJ=function(){var z=this.Mi.RJ();this.nH.publish("videoStatsPingCreated",z);return z}; g.V.getVolume=function(){return Math.round(this.nH.getVolume())}; g.V.isMuted=function(){return this.nH.isMuted()}; g.V.Sw=function(){if(this.cM()===this.dA()&&this.IR)return this.IR.postId}; g.V.Zi8=function(){var z=this;this.Y("use_rta_for_player")||(g.yi(this.Wq)?g.tj(this.Wq,g.se(this.getVideoData())).then(function(p){US(r$(),p);dpW(z.getVideoData(),z.Wq,z.Jn())}):dpW(this.getVideoData(),this.Wq,this.Jn()))}; g.V.Gz=function(z){this.nH.publish("poTokenVideoBindingChange",z)}; g.V.f1=function(z){this.nH.publish("d6de4videobindingchange",z)}; g.V.Ay=function(){this.w_&&this.w_.Ay()}; g.V.y_=function(z){this.w_=z}; g.V.hZ=function(z){if(z===1){this.VS.tick("vr");var p=this.dA();p.VV();lKu(this.VS,p.getVideoData(),wMS(this));Rzx(this.Mi)}p=this.Wq;if(bi(p)&&p.G||g.FB(p)){var c;(this.Y("html5_ssdai_always_publish_ad_state_change")&&((c=this.dA())==null?0:c.getVideoData().enableServerStitchedDai)||!this.Mn())&&this.nH.iA("onAdStateChange",z)}}; g.V.setLoopVideo=function(z){var p=this.dA();p===this.cM()&&p.XO()!==z&&(p.setLoop(z),this.nH.AD("onLoopChange",z))}; g.V.getLoopVideo=function(){return this.dA().XO()}; g.V.setLoopRange=function(z){var p=!1;!!this.IR!==!!z?p=!0:this.IR&&z&&(p=this.IR.startTimeMs!==z.startTimeMs||this.IR.endTimeMs!==z.endTimeMs||this.IR.postId!==z.postId||this.IR.type!==z.type);if(p){(p=this.dA())&&ta(p.getVideoData())&&p.KH("slr",{et:(z==null?void 0:z.endTimeMs)||-1});p=this.cM();p.gs("applooprange");if(z){var c=new g.Xq(z.startTimeMs,z.endTimeMs,{id:"looprange",namespace:"applooprange"});p.addCueRange(c)}else{this.CB().clipConfig=void 0;var B;((c=this.IR)==null?void 0:c.type)!== "repeatChapter"||isNaN(Number((B=this.IR)==null?void 0:B.loopCount))||(c={loopCount:String(this.IR.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.MG("repeatChapterLoopEvent",c))}this.IR=z;this.nH.AD("onLoopRangeChange",z||void 0);this.cM()===this.dA()&&(this.CS(),p.XU())}}; g.V.getLoopRange=function(){return this.IR}; g.V.CS=function(){var z="",p=this.cM();this.IR?p!==this.dA()?z="pnea":bX_(this,p.getCurrentTime())&&(this.IR.loopCount=0,z="ilr"):z="nlr";var c=this.dA();if(c&&ta(c.getVideoData()))if(this.Y("html5_gapless_log_loop_range_info")){var B,H;c.KH("slrre",{rej:z,ct:p.getCurrentTime(),lst:(B=this.IR)==null?void 0:B.startTimeMs,let:(H=this.IR)==null?void 0:H.endTimeMs})}else c.KH("slrre",{});z||XMi(this)}; g.V.setPlaybackRate=function(z,p){if(!isNaN(z)){z=UfD(this,z);var c=this.cM();c.getPlaybackRate()!==z&&(c.setPlaybackRate(z),p&&!this.Wq.X&&g.Iw("yt-player-playback-rate",z),this.nH.iA("onPlaybackRateChange",z))}}; g.V.getCurrentTime=function(z,p,c){p=p===void 0?!0:p;if(this.getPresentingPlayerType()===3)return this.bk.UY.getCurrentTime();var B=z===2&&this.getVideoData().enableServerStitchedDai,H=g.pT(this.getVideoData());z=B||H?this.dA():this.Mb(z);if(!z)return this.bk.W.getCurrentTime();if(H&&this.aR)return p=this.aR,z=z.getCurrentTime(),c?c=py(p,c):(c=BZY(p,z),c=z-c/1E3),c;if(p){if(B&&this.Cv&&(c=this.Cv.T$/1E3,c!==0))return c;c=h0(this,z);return uu(this,c.getCurrentTime(),c)}B&&this.Cv?(c=this.Cv,z=z.getCurrentTime(), c=(c=S1N(c,z*1E3))?z-c.start/1E3:z):c=z.getCurrentTime();return c}; g.V.n9=function(){var z=this.Mb();if(!z)return this.bk.W.n9();z=h0(this,z);return uu(this,z.n9(),z)}; g.V.getDuration=function(z,p){p=p===void 0?!0:p;var c=this.getVideoData(),B=z===2&&c.enableServerStitchedDai,H=g.pT(c);var T=B||H?this.dA():this.Mb(z);if(!T)return this.bk.W.getDuration();if(c.hasProgressBarBoundaries()&&!B&&!H){var b,D=Number((b=c.progressBarStartPosition)==null?void 0:b.utcTimeMillis),t;c=Number((t=c.progressBarEndPosition)==null?void 0:t.utcTimeMillis);if(!isNaN(D)&&!isNaN(c))return(c-D)/1E3}if(H&&this.aR)return p=H1E(this.aR,this.aR.AA()),z===1&&p===0?T.getDuration():p;if(p)return T= mA(this,T),uu(this,T.getDuration(),T);B&&this.Cv?(z=this.Cv,T=T.getCurrentTime(),T=(T=$XV(z,T*1E3))?T.durationMs/1E3:0):T=T.getDuration();return T}; g.V.S5=function(z){var p=this.Mb(z);return p?this.Mn(p)?(p=mA(this,p),p.S5()-p.getCurrentTime()+this.getCurrentTime(z)):p.S5():this.bk.W.S5()}; g.V.lX=function(){return this.Q7}; g.V.addPlayerResponseForAssociation=function(z){this.aR&&this.aR.addPlayerResponseForAssociation(z)}; g.V.finishSegmentByCpn=function(z,p,c){return this.aR?this.aR.finishSegmentByCpn(z,p,c):[]}; g.V.cC=function(){this.template.cC();var z=this.nH;z.state.element=this.template.element;var p=z.state.element,c;for(c in z.state.W)z.state.W.hasOwnProperty(c)&&(p[c]=z.state.W[c]);(z=FGf(this.template.element))&&this.events.Z(this.template,z,this.onFullscreenChange);this.Y("web_player_present_empty")||this.events.Z(window,"resize",this.Dh)}; g.V.getDebugText=function(z){var p=this.cM().kt(z),c=this.dA(),B=this.cM();if(c&&c!==B){c=c.kt(z);B=g.m(Object.keys(c));for(var H=B.next();!H.done;H=B.next())H=H.value,p["ad"+H]=c[H];if(z){c=p;B={};if(H=k0(document,"movie_player"))B.bounds=H.getBoundingClientRect(),B["class"]=H.className;H={};var T=g.fH("video-ads");T?(Ltx(T,H),H.html=T.outerHTML):H.missing=1;T={};var b=g.fH("videoAdUiSkipContainer"),D=g.fH("ytp-ad-skip-button-container"),t=g.fH("ytp-skip-ad-button"),X=b||D||t;X?(Ltx(X,T),T.ima=b? 1:0,T.bulleit=D?1:0,T.component=t?1:0):T.missing=1;B=JSON.stringify({player:B,videoAds:H,skipButton:T});c.ad_skipBtnDbgInfo=B}}z&&this.mediaElement&&(p["0sz"]=""+(+wC(this.mediaElement.getSize())===0),p.op=this.mediaElement.xI("opacity"),c=this.mediaElement.T5().y+this.mediaElement.getSize().height,p.yof=""+(+c<=0),p.dis=this.mediaElement.xI("display"));z&&((z=(0,g.RI)())&&(p.gpu=z),(z=this.Wq.playerStyle)&&(p.ps=z),this.Wq.i8&&(p.webview=1));p.debug_playbackQuality=this.nH.getPlaybackQuality(1); p.debug_date=(new Date).toString();p.origin=window.origin;p.timestamp=Date.now();delete p.uga;delete p.q;return JSON.stringify(p,null,2)}; g.V.getFeedbackProductData=function(){var z={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.N().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250318_01_RC00"},p=this.getPlayerStateObject().DN;p&&(z.player_error_code=p.errorCode,z.player_error_details=JSON.stringify(p.errorDetail));return z}; g.V.getPresentingPlayerType=function(z){if(this.appState===1)return 1;if(Pz(this))return 3;var p;if(z&&((p=this.Cv)==null?0:p.Eb(this.getCurrentTime())))return 2;var c;return g.pT(this.getVideoData())&&((c=this.aR)==null?0:c.Eb())?2:this.dA().getPlayerType()}; g.V.oX=function(){return g.pT(this.getVideoData())&&this.aR?this.aR.oX():!1}; g.V.getPlayerStateObject=function(z){return this.getPresentingPlayerType()===3?this.bk.UY.getPlayerState():this.Mb(z).getPlayerState()}; g.V.getAppState=function(){return this.appState}; g.V.s8A=function(z){switch(z.type){case "loadedmetadata":this.ZU.start();z=g.m(this.y5);for(var p=z.next();!p.done;p=z.next())p=p.value,ABY(this,p.id,p.PYp,p.NLH,void 0,!1);this.y5=[];break;case "loadstart":this.VS.Ph("gv");break;case "progress":case "timeupdate":YK(z.target.zO())>=2&&this.VS.Ph("l2s");break;case "playing":g.ii&&this.ZU.start();if(g.yi(this.Wq))z=!1;else{var c=this.dA();p=g.Iv(this.mU());z=this.mediaElement.xI("display")==="none"||wC(this.mediaElement.getSize())===0;var B=Ed(this.template), H=c.getVideoData();c=g.rn(this.Wq);H=Xl(H);p=!B||p||c||H||this.Wq.UH;z=z&&!p}z&&(z=this.dA(),z.JF(),this.getVideoData().Wy||(this.getVideoData().Wy=1,this.lL(),z.playVideo()))}}; g.V.ivt=function(z){this.nH.Kv("onLoadProgress",z)}; g.V.bvI=function(){this.nH.publish("playbackstalledatstart")}; g.V.PZ3=function(z,p){this.nH.publish("sabrCaptionsDataLoaded",z,p)}; g.V.uJA=function(z){var p;(p=this.dA())==null||p.DC(z)}; g.V.YIt=function(z){var p;(p=this.dA())==null||p.Mp(z)}; g.V.lz$=function(z){z=h0(this,this.dA());z=uu(this,z.getCurrentTime(),z);this.nH.iA("onVideoProgress",z);this.Wq.Gx&&Yv_(this,this.visibility.Pu())&&this.pauseVideo()}; g.V.umH=function(){this.nH.iA("onAutoplayBlocked");var z,p=(z=this.dA())==null?void 0:z.getVideoData();p&&(p.QO=!0);this.Y("embeds_enable_autoplay_and_visibility_signals")&&g.yB(this.Wq)&&(z={autoplayBrowserPolicy:NH(),autoplayIntended:fk(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.MG("embedsAutoplayStatusChanged",z))}; g.V.SRH=function(){this.nH.publish("progresssync")}; g.V.dP8=function(){this.nH.Kv("onPlaybackPauseAtStart")}; g.V.RM$=function(z){if(this.getPresentingPlayerType()===1){g.wn(z,1)&&!g.r(z.state,64)&&this.CB().isLivePlayback&&this.cM().isAtLiveHead()&&this.nH.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.wn(z,2)){if(this.IR&&this.IR.endTimeMs>=(this.getDuration()-1)*1E3){XMi(this);return}GRE(this)}if(g.r(z.state,128)){var p=z.state;this.cancelPlayback(5);p=p.DN;JSON.stringify({errorData:p,debugInfo:this.getDebugText(!0)});this.nH.iA("onError",QFx(p.errorCode));this.nH.Kv("onDetailedError",{errorCode:p.errorCode, errorDetail:p.errorDetail,message:p.errorMessage,messageKey:p.jx,cpn:p.cpn});(0,g.y2)()-this.Wq.dJ>6048E5&&this.nH.Kv("onReloadRequired")}p={};if(z.state.isPlaying()&&!z.state.isBuffering()&&!NZ("pbresume","ad_to_video")&&NZ("_start","ad_to_video")){var c=this.getVideoData();p.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(p.videoId=c.videoId);g.gO(p,"ad_to_video");kw("pbresume",void 0,"ad_to_video");Rzx(this.Mi)}this.nH.publish("applicationplayerstatechange",z)}}; g.V.E8=function(z){this.getPresentingPlayerType()!==3&&this.nH.publish("presentingplayerstatechange",z)}; g.V.rL=function(z){Y1(this,YN(z.state));g.r(z.state,1024)&&this.nH.isMutedByMutedAutoplay()&&($1(this,{muted:!1,volume:this.s5.volume},!1),Ky(this,!1))}; g.V.IPA=function(z,p){z==="newdata"&&ozN(this);this.nH.publish("applicationvideodatachange",z,p)}; g.V.YRH=function(z,p){this.nH.Kv("onPlaybackAudioChange",this.nH.getAudioTrack().bQ.name);this.nH.publish("internalaudioformatchange",this.nH.getAudioTrack().bQ.id,p)}; g.V.UPq=function(z){var p=this.dA().getVideoData();z===p&&this.nH.iA("onPlaybackQualityChange",z.K.video.quality)}; g.V.Tw=function(){var z=this.bk.D[2]||null;if(z){var p=z.getVideoData();z=z.LM();var c;(c=this.dA())==null||c.KH("ssdai",{cleanaply:1,acpn:p==null?void 0:p.clientPlaybackNonce,avid:p.videoId,ccpn:z,sccpn:this.CB().clientPlaybackNonce===z?1:0,isDai:this.CB().enableServerStitchedDai?1:0});delete this.bk.D[2]}}; g.V.Hvt=function(z,p){this.le(z,this.dA(),p)}; g.V.le=function(z,p,c){this.logger.debug(function(){return"on video data change "+z+", player type "+p.getPlayerType()+", vid "+c.videoId}); this.Wq.OW()&&p.KH("vdc",{type:z,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});p===this.cM()&&(this.Wq.SK=c.oauthToken);if(p===this.cM()){this.getVideoData().enableServerStitchedDai&&!this.Cv?(this.cM().KH("sdai",{initSstm:1}),this.Cv=this.Y("html5_enable_ssdai_transition_with_only_enter_cuerange")?new joi(this.nH,this.Wq,this.cM(),this):new g.om(this.nH,this.Wq,this.cM(),this)):!this.getVideoData().enableServerStitchedDai&&this.Cv&&(this.Cv.dispose(),this.Cv=null);var B,H;!g.pT(this.getVideoData())|| z!=="newdata"&&z!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((B=this.Q7.W)==null?void 0:(H=B.getVideoData())==null?void 0:H.clientPlaybackNonce)?!g.pT(this.getVideoData())&&this.aR&&(this.aR.dispose(),this.aR=null):(q1Q(this.Q7),this.Y("html5_ssap_cleanup_ad_player_on_new_data")&&this.Tw(),B=jA(this.Q7,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Q7.enqueue(B,!0),Im(this.Q7,0,this.getDuration(1)*1E3,[B]),J4u(this.Q7,this.getVideoData().clientPlaybackNonce,[B]),this.aR&&(this.aR.dispose(), this.aR=null),this.aR=new soY(this.nH,this.Q7,this.cM()),this.bk.cM().GV(this.aR))}if(z==="newdata")this.logger.debug("new video data, destroy modules"),$F(this.Mi,2),this.nH.publish("videoplayerreset",p);else{if(!this.mediaElement)return;z==="dataloaded"&&(this.cM()===this.dA()?(Uc(c.QI,c.EO),BPS(this)):pMf(this));p.getPlayerType()===1&&(this.Wq.rA&&ZXY(this),this.getVideoData().isLivePlayback&&!this.Wq.Ws&&this.R3("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((c$_(c)||this.getVideoData().fJ)&& this.nH.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&Ek_(this)));this.nH.publish("videodatachange",z,c,p.getPlayerType())}this.nH.iA("onVideoDataChange",{type:z,playertype:p.getPlayerType()});this.CS();(B=c.df)?this.pI.m9(B,c.clientPlaybackNonce):C7N(this.pI)}; g.V.n7=function(){Od(this,null);this.nH.Kv("onPlaylistUpdate")}; g.V.MdI=function(z){delete this.jf[z.getId()];this.cM().removeCueRange(z);a:{z=this.getVideoData();var p,c,B,H,T,b,D,t,X,x,E=((p=z.i8)==null?void 0:(c=p.contents)==null?void 0:(B=c.singleColumnWatchNextResults)==null?void 0:(H=B.autoplay)==null?void 0:(T=H.autoplay)==null?void 0:T.sets)||((b=z.i8)==null?void 0:(D=b.contents)==null?void 0:(t=D.twoColumnWatchNextResults)==null?void 0:(X=t.autoplay)==null?void 0:(x=X.autoplay)==null?void 0:x.sets);if(E)for(p=g.m(E),c=p.next();!c.done;c=p.next())if(c= c.value,H=B=void 0,c=c.autoplayVideo||((B=c.autoplayVideoRenderer)==null?void 0:(H=B.autoplayEndpointRenderer)==null?void 0:H.endpoint),B=g.I(c,g.ir),T=H=void 0,c!=null&&((H=B)==null?void 0:H.videoId)===z.videoId&&((T=B)==null?0:T.continuePlayback)){z=c;break a}z=null}(p=g.I(z,g.ir))&&this.nH.AD("onPlayVideo",{sessionData:{autonav:"1",itct:z==null?void 0:z.clickTrackingParams},videoId:p.videoId,watchEndpoint:p})}; g.V.qD=function(z){var p=this;z!==this.appState&&(this.logger.debug(function(){return"app state change "+p.appState+" -> "+z}),z===2&&this.getPresentingPlayerType()===1&&(Y1(this,-1),Y1(this,5)),this.appState=z,this.nH.publish("appstatechange",z))}; g.V.R3=function(z,p,c,B,H){this.cM().OI(z,p,c,B,H)}; g.V.h4=function(z,p){this.cM().handleError(new W2(z,p))}; g.V.isAtLiveHead=function(z,p){p=p===void 0?!1:p;var c=this.Mb(z);if(!c)return this.bk.W.isAtLiveHead();z=mA(this,c);c=h0(this,c);return z!==c?z.isAtLiveHead(uu(this,c.getCurrentTime(),c),!0):z.isAtLiveHead(void 0,p)}; g.V.yy=function(){var z=this.Mb();return z?mA(this,z).yy():this.bk.W.yy()}; g.V.seekTo=function(z,p,c,B,H){p=p!==!1;if(B=this.Mb(B))this.appState===2&&R7(this),this.Mn(B)?a7(this)?this.Cv.seekTo(z,{seekSource:H},p,c):this.gU.seekTo(z,{seekSource:H},p,c):g.pT(this.getVideoData())&&this.aR?this.aR.seekTo(z,{Gb:!p,i7:c,VL:"application",seekSource:H}):B.seekTo(z,{Gb:!p,i7:c,VL:"application",seekSource:H})}; g.V.seekBy=function(z,p,c,B){this.seekTo(this.getCurrentTime()+z,p,c,B)}; g.V.J1q=function(){this.nH.iA("SEEK_COMPLETE")}; g.V.fza=function(){this.nH.AD("onAbnormalityDetected")}; g.V.y13=function(z){this.nH.AD("onSnackbarMessage",z)}; g.V.CZ3=function(z){var p=this.dA(),c=p.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=z;this.appState===2?g.r(p.getPlayerState(),512)||R7(this):this.nH.iA("SEEK_TO",z)}; g.V.qRA=function(){this.nH.publish("airplayactivechange");this.Wq.Y("html5_external_airplay_events")&&this.nH.Kv("onAirPlayActiveChange",this.nH.td())}; g.V.pUI=function(){this.nH.publish("airplayavailabilitychange");this.Wq.Y("html5_external_airplay_events")&&this.nH.Kv("onAirPlayAvailabilityChange",this.nH.Uk())}; g.V.showAirplayPicker=function(){var z;(z=this.dA())==null||z.SP()}; g.V.r1A=function(){this.nH.publish("beginseeking")}; g.V.ob8=function(){this.nH.publish("endseeking")}; g.V.getStoryboardFormat=function(z){return(z=this.Mb(z))?mA(this,z).getStoryboardFormat():this.bk.W.getStoryboardFormat()}; g.V.LD=function(z){return(z=this.Mb(z))?mA(this,z).getVideoData().LD():this.bk.W.LD()}; g.V.Mn=function(z){z=z||this.dA();var p=!1;if(z){z=z.getVideoData();if(a7(this))z=z===this.Cv.playback.getVideoData();else a:if(p=this.gU,z===p.W.getVideoData()&&p.K.length)z=!0;else{p=g.m(p.K);for(var c=p.next();!c.done;c=p.next())if(z.WU===c.value.WU){z=!0;break a}z=!1}p=z}return p}; g.V.zd=function(z,p,c,B,H,T,b,D){this.logger.debug(function(){return"Adding video to timeline id="+z.video_id+"\n lengthMs="+B+" enterTimeMs="+H}); var t="",X=a7(this),x;(x=this.dA())==null||x.KH("appattl",{sstm:this.Cv?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:X});t=X?Rri(this.Cv,z,p,c,B,H,T,b,D):Ezi(this.gU,z,c,B,H,T);this.logger.debug(function(){return"Video added to timeline id="+z.video_id+" timelinePlaybackId="+t}); return t}; g.V.JP=function(z,p,c,B,H,T,b,D){if(a7(this)){var t=Rri(this.Cv,z,p,c,B,H,T,b,D);this.logger.debug(function(){return"Remaining video added to timeline id="+z.video_id+" timelinePlaybackId="+t})}return""}; g.V.zV=function(z){var p;(p=this.Cv)==null||p.zV(z)}; g.V.h9=function(z,p){z=z===void 0?-1:z;p=p===void 0?Infinity:p;a7(this)||O1i(this.gU,z,p)}; g.V.qf=function(z,p,c){if(a7(this)){var B=this.Cv,H=B.EW.get(z);H?(c===void 0&&(c=H.zZ),H.durationMs=p,H.zZ=c):B.zU("Invalid_timelinePlaybackId_"+z+"_specified")}else{B=this.gU;H=null;for(var T=g.m(B.K),b=T.next();!b.done;b=T.next())if(b=b.value,b.WU===z){H=b;break}H?(c===void 0&&(c=H.zZ),AKu(B,H,p,c)):cz(B,"InvalidTimelinePlaybackId timelinePlaybackId="+z)}}; g.V.enqueueVideoByPlayerVars=function(z,p,c,B){c=c===void 0?Infinity:c;B=B===void 0?"":B;this.Mn();z=new g.GU(this.Wq,z);B&&(z.WU=B);qvE(this,z,p,c)}; g.V.queueNextVideo=function(z,p,c,B,H){c=c===void 0?NaN:c;z=this.preloadVideoByPlayerVars(z,p===void 0?1:p,c,B===void 0?"":B,H===void 0?"":H);p=this.dA();z&&p&&(this.Y("html5_check_queue_on_data_loaded")?this.N().supportsGaplessShorts()&&p.getVideoData().S&&(c=this.ys,B=this.Xo.G,c.X!==z&&(c.K=p,c.X=z,c.D=1,c.W=z.getVideoData(),c.L=B,c.W.isLoaded()?c.V():c.W.subscribe("dataloaded",c.V,c))):(c=Qlx(p,z,this.Xo.G),c!=null?(p.KH("sgap",c),p.getVideoData().S&&p.uw(!1)):(z=z.getVideoData(),p=this.ys,p.W!== z&&(p.W=z,p.D=1,z.isLoaded()?p.G():p.W.subscribe("dataloaded",p.G,p)))))}; g.V.Xq=function(z,p,c,B){var H=this;c=c===void 0?0:c;B=B===void 0?0:B;var T=this.dA();T&&mA(this,T).Uz();BxQ(this.Xo,z,p,c,B).then(function(){H.nH.Kv("onQueuedVideoLoaded")},function(){})}; g.V.pD=function(){return this.Xo.pD()}; g.V.bJ=function(z){var p=this.Xo.W;return p?p.MU(z):!1}; g.V.clearQueue=function(z,p){z=z===void 0?!1:z;p=p===void 0?!1:p;this.logger.debug("Clearing queue");this.Xo.clearQueue(z,p)}; g.V.loadVideoByPlayerVars=function(z,p,c,B,H,T){p=p===void 0?1:p;var b=this.cM();if(p===2&&this.CB().enableServerStitchedDai&&b&&!b.If())return b.KH("lvonss",{vid:(z==null?void 0:z.videoId)||"",ptype:p}),!1;var D=!1;b=new g.GU(this.Wq,z);b.reloadPlaybackParams=T;g.HX(this.Wq)&&!b.bY&&xF(this.VS);var t;T=this.VS;var X=(t=b.OH)!=null?t:"";T.timerName=X;this.VS.u9("pl_i");this.Y("web_player_early_cpn")&&b.clientPlaybackNonce&&this.VS.infoGel({clientPlaybackNonce:b.clientPlaybackNonce});if(ucE(b).supportsVp9Encoding=== !1){var x;(x=this.dA())==null||x.KH("noVp9",{})}if(this.N().supportsGaplessShorts()){t=isD(this.Xo,b,p);if(t==null){Y1(this,-1);z=this.Xo;z.app.N().Y("html5_gapless_new_slr")?DYu(z.app,"gaplessshortslooprange"):z.app.setLoopRange(null);z.app.getVideoData().WK=!0;var E;(E=z.W)==null||E.Sf();var q;(q=z.W)==null||q.kV();c={VL:"gapless_to_next_video",seekSource:60};B=g.P3(z.app.N().experiments,"html5_gapless_seek_offset");var J;(J=z.app.dA())==null||J.seekTo(HsY(z)+B,c);if(!z.app.getPlayerStateObject(p).isPlaying()){var M; (M=z.app.dA())==null||M.playVideo(!0)}if(z.app.N().Y("html5_short_gapless_unlisten_after_seek")){var P;(P=z.app.dA())==null||P.N8()}z.V();return!0}J=this.Y("html5_shorts_gapless_preload_fallback");M=this.Xo.W;J&&M&&!M.ZD()&&(P=M.getVideoData(),P=this.Wq.Y("html5_autonav_autoplay_in_preload_key")?Ly(this,p,P):dq(this,p,P.videoId,P.WU),this.bk.X.set(P,M,3600));this.Xo.clearQueue(J);var O;(O=this.dA())==null||O.KH("sgap",{f:t})}if(H){for(;b.Dg.length&&b.Dg[0].isExpired();)b.Dg.shift();D=b.Dg.length- 1;D=D>0&&H.K(b.Dg[D])&&H.K(b.Dg[D-1]);b.Dg.push(H)}c||(z&&FjW(z)?(fm(this.Wq)&&!this.OB&&(z.fetch=0),Od(this,z)):this.playlist&&Od(this,null),z&&(this.OB=DA(!1,z.external_list)));this.nH.publish("loadvideo");p=this.Ax(b,p,B);D&&this.R3("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+b.Dg.join()).replace(/[;:,]/g,"_"));return p}; g.V.preloadVideoByPlayerVars=function(z,p,c,B,H){p=p===void 0?1:p;c=c===void 0?NaN:c;B=B===void 0?"":B;H=H===void 0?"":H;var T="";if(this.Wq.Y("html5_autonav_autoplay_in_preload_key"))T=MXS(this,p,z,H);else{var b=qD(z);T=dq(this,p,b,H)}if(this.bk.X.get(T))return this.logger.debug(function(){return"already preloaded "+T}),null; z=new g.GU(this.Wq,z);H&&(z.WU=H);return JB_(this,z,p,c,B)}; g.V.setMinimized=function(z){this.visibility.setMinimized(z);(z=KAv(this.Mi))&&(this.isMinimized()?z.load():z.unload());this.nH.publish("minimized")}; g.V.setInline=function(z){this.visibility.setInline(z)}; g.V.setInlinePreview=function(z){this.visibility.setInline(z)}; g.V.o6=function(z){mYx(this,z)||this.visibility.o6(z)}; g.V.setSqueezeback=function(z){this.visibility.setSqueezeback(z)}; g.V.SG=function(){var z,p=(z=this.mediaElement)==null?void 0:z.XQ();p&&(this.Wq.ND&&OZ(hh(function(){return document.exitFullscreen()}),function(){}),OZ(hh(function(){return Sa(p)}),function(){}))}; g.V.xii=function(){this.mediaElement.XQ();this.mediaElement.XQ().webkitPresentationMode==="picture-in-picture"?this.o6(!0):this.o6(!1)}; g.V.togglePictureInPicture=function(){var z=this.dA();z&&z.togglePictureInPicture()}; g.V.Ax=function(z,p,c){p=p===void 0?1:p;this.logger.debug(function(){return"start load video, id "+z.videoId+", type "+p}); NZ("_start",this.VS.timerName)||g.iO(FZ)(void 0,this.VS.timerName);var B=!1,H=TPQ(this,p,z,!1);H?(B=!0,z.dispose()):(H=J0(this,p,z,!0,c),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&H.Mx()&&H.VU(),this.ZU.stop(),p===1&&p!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,p),this.Tj(H));H===this.cM()&&(this.Wq.SK=z.oauthToken);if(!H.Mx())return!1;if(H===this.cM())return this.qD(1),c=R7(this),B&&this.Y("html5_player_preload_ad_fix")&&H.getPlayerType()===1&& H.WB()&&this.le("dataloaded",H,H.getVideoData()),c;H.Rl();return!0}; g.V.cueVideoByPlayerVars=function(z,p){var c=this;p=p===void 0?1:p;var B=this.cM();if(this.CB().enableServerStitchedDai&&B&&!B.If()&&z&&Object.keys(z).length>0)B.KH("qvonss",{vid:(z==null?void 0:z.videoId)||"",ptype:p});else if(z&&FjW(z))if(this.sZ=!0,Od(this,z),(z=g.Es(this.playlist))&&z.NP())y8(this,z,p);else this.playlist.onReady(function(){wq(c)}); else{p||(p=this.getPresentingPlayerType());p===1&&this.n7();B=new g.GU(this.Wq,z);var H=g.yB(this.Wq)&&!this.Wq.Dt&&p===1&&!B.isAd()&&!B.EW;this.nH.publish("cuevideo");H?(this.dA().getVideoData().loading=!0,kKf(B,z?z:{}).then(function(T){y8(c,T,p)}),B.dispose()):y8(this,B,p)}}; g.V.oH=function(z,p,c,B,H,T,b){if(!z&&!c)throw Error("Playback source is invalid");if(eF(this.Wq)||g.d9(this.Wq))return p=p||{},p.lact=y0(),p.vis=this.nH.getVisibilityState(),this.nH.AD("onPlayVideo",{videoId:z,watchEndpoint:T,sessionData:p,listId:c}),!1;IKB(this.VS);this.VS.reset();z={video_id:z};B&&(z.autoplay="1");B&&(z.autonav="1");T&&(z.player_params=T.playerParams);b&&(z.oauth_token=b);c?(z.list=c,this.loadPlaylist(z)):this.loadVideoByPlayerVars(z,1);return!0}; g.V.cuePlaylist=function(z,p,c,B){this.sZ=!0;hqY(this,z,p,c,B)}; g.V.loadPlaylist=function(z,p,c,B){this.sZ=!1;hqY(this,z,p,c,B)}; g.V.tP=function(){return this.nH.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.kG())}; g.V.D9=cD(13); g.V.nextVideo=function(z,p){var c=g.Tz(this.cM().getVideoData());g.ov(this.nH)&&c?this.oH(c.videoId,p?c.HK:c.sessionData,c.playlistId,p,void 0,c.x4||void 0):this.OB?this.nH.Kv("onPlaylistNext"):this.getPresentingPlayerType()===3?eq(this.Mi).nextVideo():!this.playlist||fm(this.Wq)&&!this.nH.isFullscreen()||(this.playlist.kG(z)&&QmN(this.playlist,odD(this.playlist)),this.playlist.loaded?(z=p&&this.Wq.Y("html5_player_autonav_logging"),p&&this.nH.publish("playlistautonextvideo"),this.Ax(g.Es(this.playlist,void 0, p,z),1)):this.sZ=!1)}; g.V.previousVideo=function(z){this.OB?this.nH.Kv("onPlaylistPrevious"):this.getPresentingPlayerType()===3?eq(this.Mi).Ff():!this.playlist||fm(this.Wq)&&!this.nH.isFullscreen()||(this.playlist.Zp(z)&&QmN(this.playlist,ndN(this.playlist)),this.playlist.loaded?this.Ax(g.Es(this.playlist),1):this.sZ=!1)}; g.V.playVideoAt=function(z){this.OB?this.nH.Kv("onPlaylistIndex",z):this.playlist&&(this.playlist.loaded?this.Ax(g.Es(this.playlist,z),1):this.sZ=!1,QmN(this.playlist,z))}; g.V.getPlaylist=function(){return this.playlist}; g.V.q6=cD(25);g.V.t_3=function(z){this.nH.iA("onCueRangeEnter",z.getId())}; g.V.QwZ=function(z){this.nH.iA("onCueRangeExit",z.getId())}; g.V.FV=function(){var z=g.R0(this.mU());z&&z.FV()}; g.V.kp=function(z,p,c){var B=this.Mb(p);if(B){var H=this.CB();if(g.pT(H)){if(this.aR)if(this.Y("html5_ssap_enable_cpn_triggered_media_end")&&B.getPlayerType()===2&&this.aR.Eb()&&(B=this.cM()),p===1)for(var T=jk(this.aR,H.clientPlaybackNonce),b=g.m(z),D=b.next();!D.done;D=b.next())D=D.value,D.start+=T,D.end+=T,D.Xe=T,D.D=H.clientPlaybackNonce;else if(this.Y("html5_ssap_enable_cpn_triggered_media_end")&&p===2)for(this.getPresentingPlayerType(),H=g.m(z),T=H.next();!T.done;T=H.next())T.value.D=this.aR.AA(); H=g.m(z);for(T=H.next();!T.done;T=H.next())b=void 0,T.value.playerType=(b=p)!=null?b:1}B.kp(z,c);p&&this.getPresentingPlayerType()!==p||Cy(this,"cuerangesadded",z)}}; g.V.q2=function(z,p){var c=this.Mb(p);c&&(c.q2(z),p&&this.getPresentingPlayerType()!==p||Cy(this,"cuerangesremoved",z))}; g.V.G7=function(z){var p=this.dA()||this.cM(),c=this.getPresentingPlayerType();return this.Y("html5_ssap_enable_cpn_triggered_media_end")?p.G7(c,z):p.G7(c)}; g.V.hMZ=function(){function z(){var B=p.screenLayer||(p.isMinimized()?3:0),H=g.Wu(B);if(H&&H!=="UNDEFINED_CSN"){var T=p.Wq.Y("web_player_attach_player_response_ve"),b=p.Wq.Y("web_playback_associated_ve");B={cpn:p.getVideoData().clientPlaybackNonce,csn:H};p.getVideoData().Ra&&(T||b)&&(T=g.ZU(p.getVideoData().Ra),g.Dy(H,T),b&&(B.playbackVe=T.getAsJson()));p.getVideoData().queueInfo&&(B.queueInfo=p.getVideoData().queueInfo);H={};p.Y("web_playback_associated_log_ctt")&&p.getVideoData().V&&(H.cttAuthInfo= {token:p.getVideoData().V,videoId:p.getVideoData().videoId});g.MG("playbackAssociated",B,H)}else g.oc(new g.z6("CSN Missing or undefined during playback association"))} var p=this,c=this.dA();this.getPresentingPlayerType();lKu(this.VS,c.getVideoData(),wMS(this));A0(this)&&this.Wq.X&&oy(this.CB())==="embedded"&&this.W4&&Math.random()<.01&&g.MG("autoplayTriggered",{intentional:this.intentionalPlayback});this.W4=!1;Rzx(this.Mi);this.Y("web_player_defer_ad")&&cBv(this);this.nH.Kv("onPlaybackStartExternal");(this.Wq.Y("mweb_client_log_screen_associated"),sc(this.Wq))||z();c={};this.getVideoData().V&&(c.cttAuthInfo={token:this.getVideoData().V,videoId:this.getVideoData().videoId}); c.sampleRate=20;Gl("player_att",c);if(this.getVideoData().botguardData||this.Y("fetch_att_independently"))g.cX(this.Wq)||BW(this.Wq)==="MWEB"?g.iR(g.bR(),function(){Si(p)}):Si(this); this.CS();tXQ(this);this.Y("embeds_enable_autoplay_and_visibility_signals")&&g.yB(this.Wq)&&(c={autoplayBrowserPolicy:NH(),autoplayIntended:fk(this.getVideoData()),autoplayStatus:j9E(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.MG("embedsAutoplayStatusChanged",c))}; g.V.GZ8=function(){this.nH.publish("internalAbandon");ZT(this)}; g.V.onApiChange=function(){var z=this.dA();this.Wq.G&&z?this.nH.iA("onApiChange",z.getPlayerType()):this.nH.iA("onApiChange")}; g.V.mPA=function(){var z=this.mediaElement;z={volume:g.MQ(Math.floor(z.getVolume()*100),0,100),muted:z.d7()};z.muted||Ky(this,!1);this.s5=g.lU(z);this.nH.iA("onVolumeChange",z)}; g.V.mutedAutoplay=function(z){var p=this.getVideoData().videoId;isNaN(this.B8)&&(this.B8=this.getVideoData().startSeconds);if((z==null?0:z.videoId)||p)this.loadVideoByPlayerVars({video_id:(z==null?0:z.videoId)?z==null?void 0:z.videoId:p,playmuted:!0,start:this.B8,muted_autoplay_duration_mode:z==null?void 0:z.durationMode}),this.nH.Kv("onMutedAutoplayStarts")}; g.V.onFullscreenChange=function(){var z=SvD(this);this.Re(z?1:0);Ktf(this,!!z)}; g.V.Re=function(z){var p=!!z,c=!!this.Rb()!==p;this.visibility.Re(z);this.template.Re(p);this.Y("html5_media_fullscreen")&&!p&&this.mediaElement&&SvD(this)===this.mediaElement.XQ()&&this.mediaElement.Ew();this.template.resize();c&&this.VS.tick("fsc");c&&(this.nH.publish("fullscreentoggled",p),z=this.CB(),p={fullscreen:p,videoId:z.cK||z.videoId,time:this.getCurrentTime()},this.nH.getPlaylistId()&&(p.listId=this.nH.getPlaylistId()),this.nH.iA("onFullscreenChange",p))}; g.V.A5=function(){return this.visibility.A5()}; g.V.isFullscreen=function(){return this.visibility.isFullscreen()}; g.V.Rb=function(){return this.visibility.Rb()}; g.V.Dh=function(){if(this.dA()){var z=this.Rb();z!==0&&z!==1||this.Re(SvD(this)?1:0);z=window.screen.width*window.screen.height;var p=window.outerHeight*window.outerWidth;this.Wq.Jl?(this.QJ=Math.max(this.QJ,z,p),z=p/this.QJ0&&(t=Math.floor(X/1E3))}t=p?p.UI:t;var x={AD_BLOCK:this.W++,AD_BREAK_LENGTH:t,AUTONAV_STATE:lu(this.player.N()),CA_TYPE:"image",CPN:D.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.yy()*1E3,LACT:y0(),LIVE_INDEX:p?this.D++:1,LIVE_TARGETING_CONTEXT:p&&p.context?p.context:"",MIDROLL_POS:T? Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Hq().fD().height,P_W:this.player.Hq().fD().width,YT_REMOTE:H?H.join(","):""},E=mI(Y5);Object.keys(E).forEach(function(J){E[J]!=null&&(x[J.toUpperCase()]=E[J].toString())}); c!==""&&(x.BISCOTTI_ID=c);c={};M_(z)&&(c.sts="20166",(p=this.player.N().forcedExperiments)&&(c.forced_experiments=p));var q=E0(g.l8(z,x),c);return q.split("?").length!==2?SB(Error("Invalid AdBreakInfo URL")):g.tj(this.player.N(),D==null?void 0:D.oauthToken).then(function(J){if(J&&J6()){var M=r$();US(M,J)}J=B.player.Jn(M);M=fFv(B,q,x,D.isMdxPlayback,b);return g.HY(J,M,"/youtubei/v1/player/ad_break").then(function(P){return P})})}; vz.prototype.reset=function(){this.D=this.W=1};g.Y(z0v,vz); z0v.prototype.K=function(z,p,c){p=p===void 0?{}:p;var B=p.mm;var H=p.GZ;var T=p.cueProcessedMs;c=c===void 0?"":c;p=this.W;this.W++;var b=this.player.N().Y("h5_disable_macro_substitution_in_get_ad_break")?z:ppS(this,z,{mm:B,GZ:H,cueProcessedMs:T},c,p);if(b.split("?").length!==2)return Math.random()<.1&&g.oc(Error("Invalid AdBreakInfo URL")),SB(Error("Invalid AdBreakInfo URL"));var D=this.player.getVideoData(1).isMdxPlayback,t=c;c=rBu.exec(b);c=c!=null&&c.length>=2?c[1]:"";z=UYY.test(b);var X=s4_.exec(b); X=X!=null&&X.length>=2?X[1]:"";var x=k0W.exec(b);x=x!=null&&x.length>=2&&!Number.isNaN(Number(x[1]))?Number(x[1]):1;var E=gkN.exec(b);E=E!=null&&E.length>=2?E[1]:"0";var q=rX(this.player.N().qa),J=g.Tl(this.player.getVideoData(1).Ra,!0);IFx(this,J,b,t===""?"":t,this.player.N(),this.player.getVideoData(1));t={splay:!1,lactMilliseconds:String(y0()),playerHeightPixels:Math.trunc(this.player.Hq().fD().height),playerWidthPixels:Math.trunc(this.player.Hq().fD().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20166,autonavState:lu(this.player.N())};if(D){D={};var M=this.player.N().C2;okB(D,M?M.join(","):"")&&(t.mdxContext=D)}if(D=G0W.includes(q)?void 0:g.nN("PREF")){M=D.split(RegExp("[:&]"));for(var P=0,O=M.length;P1&&R[1].toUpperCase()==="TRUE"){J.user.lockedSafetyMode=!0;break}}t.autoCaptionsDefaultOn=Q4u(D)}b=NPB.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&X&&(J.user.credentialTransferTokens= [{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:t};t=this.player.getVideoData(1).getGetAdBreakContext();D=this.player.getVideoData(1).clientPlaybackNonce;M=T!==void 0?Math.round(T).toString():void 0;P=(B==null?0:B.context)?B.context:void 0;O=0;T&&H&&!B&&(H=H.end-H.start,H>0&&(O=Math.floor(H/1E3)));B=(B=Math.trunc((B?B.UI:O)*1E3))?String(B):void 0;H=this.player.yy()*1E3;H=Number.isNaN(H)?0:Math.trunc(H);p={adBlock:p,params:c,breakIndex:x,breakPositionMs:E,clientPlaybackNonce:D,topLevelDomain:q, isProxyAdTagRequest:z,context:J,overridePlaybackContext:b,cueProcessedMs:M,videoId:X?X:void 0,liveTargetingParams:P,breakLengthMs:B,driftFromHeadMs:H?String(H):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:t?t:void 0};return c2Q(this,p)};var Bh3={HnA:"replaceUrlMacros",QH3:"onAboutThisAdPopupClosed",Dzt:"executeCommand"};Bav.prototype.Qo=function(){return"adPingingEndpoint"}; Bav.prototype.qc=function(z,p,c){CCN(this.u8.get(),z,p,c)};HLx.prototype.Qo=function(){return"changeEngagementPanelVisibilityAction"}; HLx.prototype.qc=function(z){this.T.AD("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:z})};iLf.prototype.Qo=function(){return"loggingUrls"}; iLf.prototype.qc=function(z,p,c){z=g.m(z);for(var B=z.next();!B.done;B=z.next())B=B.value,CCN(this.u8.get(),B.baseUrl,p,c,B.attributionSrcMode)};g.Y(bLS,g.e);g.Y(ji,g.e);g.V=ji.prototype;g.V.addListener=function(z){this.listeners.push(z)}; g.V.removeListener=function(z){this.listeners=this.listeners.filter(function(p){return p!==z})}; g.V.b6=function(z,p,c,B,H,T,b,D){if(z==="")P7("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(z!==this.W||c){this.W=z;this.VI.get().b6(z,p,c,B,H,T,b,D);this.oa.get().b6(z,p,c,B,H,T,b,D);var t;(t=this.HU)==null||t.get().b6(z,p,c,B,H,T,b,D);this.K.b6(z,p,c,B,H,T,b,D);t=g.m(this.listeners);for(var X=t.next();!X.done;X=t.next())X.value.b6(z,p,c,B,H,T,b,D)}else P7("Duplicate content video loaded signal")}; g.V.zE=function(){this.W&&this.zo(this.W)}; g.V.zo=function(z){this.W=void 0;for(var p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.zo(z)};F5.prototype.oD=function(z,p,c,B,H){VwN(this);this.L=!p&&c===0;var T=this.T.getVideoData(1),b=this.T.getVideoData(2);T&&(this.contentCpn=T.clientPlaybackNonce,this.videoId=T.videoId,this.W=T.V);b&&(this.adCpn=b.clientPlaybackNonce,this.adVideoId=b.videoId,this.adFormat=b.adFormat);this.X=z;B<=0?(VwN(this),this.L=!p&&c===0):(this.actionType=this.L?p?"unknown_type":"video_to_ad":p?"ad_to_video":"ad_to_ad",this.videoStreamType=H?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.D=!0,NZ("_start",this.actionType)&&XpY(this)))}; F5.prototype.reset=function(){return new F5(this.T)};g.Y(o7,g.e);o7.prototype.addCueRange=function(z,p,c,B,H,T,b){T=T===void 0?3:T;b=b===void 0?1:b;this.W.has(z)?P7("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:z}):(z=new x8W(z,p,c,B,T),this.W.set(z.id,{GZ:z,listener:H,H1:b}),this.T.KN([z],b))}; o7.prototype.removeCueRange=function(z){var p=this.W.get(z);p?(this.T.tA([p.GZ],p.H1),this.W.delete(p.GZ.id)):P7("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:z})}; o7.prototype.onCueRangeEnter=function(z){if(this.W.has(z.id))this.W.get(z.id).listener.onCueRangeEnter(z.id)}; o7.prototype.onCueRangeExit=function(z){if(this.W.has(z.id))this.W.get(z.id).listener.onCueRangeExit(z.id)}; g.Y(x8W,g.Xq);ny.prototype.hZ=function(z){this.T.hZ(z)}; ny.prototype.TV=function(z){var p=g.L_.apply(1,arguments);z==="onAdStart"||z==="onAdEnd"?this.T.iA.apply(this.T,[z].concat(g.A(p))):this.T.AD.apply(this.T,[z].concat(g.A(p)))};Q8.prototype.V4=function(z){return z&&rq(this)};var PCB=null;g.Y(h0D,g.JQ);h0D.prototype.NH=function(z){return this.W.hasOwnProperty(z)?this.W[z].NH():{}}; g.oE("ytads.bulleit.getVideoMetadata",function(z){return sd().NH(z)}); g.oE("ytads.bulleit.triggerExternalActivityEvent",function(z,p,c){var B=sd();c=m8_(c);c!==null&&B.publish(c,{queryId:z,viewabilityString:p})});g.V=k1.prototype;g.V.D_=function(z,p){if(!this.W.has(z))return{};if(p==="seek"){p=!1;p=p===void 0?!1:p;var c=CE(aA).Uu(z,{});c?aV(c):p&&(z=CE(aA).qF(null,zX(),!1,z),z.lf=3,U7S([z]));return{}}p=OL_(p);if(p===null)return{};var B=this.T.vI();if(!B)return{};var H=this.T.getPresentingPlayerType(!0);if((c=this.T.getVideoData(H))==null||!c.isAd())return{};c={opt_adElement:B,opt_fullscreen:this.VI.get().isFullscreen()};return Urx(p,z,c)}; g.V.U$=function(z,p,c,B,H){this.W.has(z)&&(B<=0||H<=0||CE(aA).U$(z,p,c,B,H))}; g.V.Op=function(z){var p;(p=this.W.get(z.queryId))==null||p.Op()}; g.V.BT=function(z){var p;(p=this.W.get(z.queryId))==null||p.BT()}; g.V.gx=function(z){var p;(p=this.W.get(z.queryId))==null||p.gx()}; g.V.xd=function(z){var p;(p=this.W.get(z.queryId))==null||p.xd()}; g.V.Gy=function(z){var p;(p=this.W.get(z.queryId))==null||p.Gy()};ZLu.prototype.send=function(z,p,c,B){try{LRB(this,z,p,c,B===void 0?!1:B)}catch(H){}};g.Y(d8i,ZLu);WRf.prototype.send=function(z,p,c,B){var H=!1;try{if(B==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||B==="ATTRIBUTION_SRC_MODE_XHR_OPTION")H=!0,z=q0Y(z);B=H;var T=z.match(F0);if(T[1]==="https")var b=z;else T[1]="https",b=IS("https",T[2],T[3],T[4],T[5],T[6],T[7]);var D=b4_(b);T=[];var t=fLN(b)&&this.X3.get().T.N().experiments.JD("add_auth_headers_to_remarketing_google_dot_com_ping");if(M_(b)||t)T.push({headerType:"USER_AUTH"}),T.push({headerType:"PLUS_PAGE_ID"}),T.push({headerType:"VISITOR_ID"}),T.push({headerType:"EOM_VISITOR_ID"}), T.push({headerType:"AUTH_USER"}),T.push({headerType:"DATASYNC_ID"});this.W.send({baseUrl:b,scrubReferrer:D,headers:T},p,c,B)}catch(X){}};zf.prototype.xe=function(){return this.T.xe(1)};g.Y(pY,g.e);g.V=pY.prototype;g.V.C3=function(){return this.T.getVideoData(1).clientPlaybackNonce}; g.V.addListener=function(z){this.listeners.push(z)}; g.V.removeListener=function(z){this.listeners=this.listeners.filter(function(p){return p!==z})}; g.V.b6=function(){this.sT.clear();this.Fk=null;this.Lx.get().clear()}; g.V.zo=function(){}; g.V.EyA=function(z,p,c,B,H){p.videoId==="nPpU29QrbiU"&&this.T.KH("ads_ssm_vdc_s",{pt:c,dvt:z});uq(this.X3.get())&&z!=="dataloaded"||o9W(this,p,c);if(rq(this.X3.get())&&z==="newdata"&&H!==void 0){z=this.C3();var T=p.clientPlaybackNonce,b={};uz(this,"rte",(b.ec=T,b.xc=B==null?void 0:B.clientPlaybackNonce,b.tr=H,b.pt=c,b.ia=T!==z,b.ctp=Kd(T),b));p=p.clientPlaybackNonce;B=B==null?void 0:B.clientPlaybackNonce;H=n9x(H);if(H!==1)if(B!==void 0)for(c=g.m(this.listeners),z=c.next();!z.done;z=c.next())z.value.Sl(B, p,H);else P7("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:p,transitionReason:String(H)});H=g.m(this.listeners);for(B=H.next();!B.done;B=H.next())B.value.Z3(p)}}; g.V.GeA=function(z,p){z!==void 0&&(this.Fk=z,p===void 0?P7("Expected ad video start time on SS video changed"):this.sT.set(z,p));var c=this.T.getPresentingPlayerType(!0),B=this.T.getVideoData(c);this.T.getVideoData(1).KH("ads_ssvc",{pt:c,cpn:B==null?void 0:B.clientPlaybackNonce,crtt:this.T.getCurrentTime(1,!1),atlh:this.T.isAtLiveHead(),adstt:p});B?o9W(this,B,c):P7("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.T.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:z})}; g.V.nu=function(z,p){var c=z.author,B=z.clientPlaybackNonce,H=z.isListed,T=z.WU,b=z.title,D=z.TU,t=z.cV,X=z.isMdxPlayback,x=z.x8,E=z.mdxEnvironment,q=z.isAutonav,J=z.Zl,M=z.bY,P=z.Tf,O=z.videoId||"",R=z.profilePicture||"",K=z.uD||"",Z=z.Jo()||!1,W=z.yL()||!1;z=z.DI||void 0;T=this.Lx.get().W.get(T)||{layoutId:null,slotId:null};var v=this.T.getVideoData(1),zY=v.La();v=v.getPlayerResponse();p=1E3*this.T.getDuration(p);var U=1E3*this.T.getDuration(1),HD,VW,f=(v==null?void 0:(HD=v.playerConfig)==null? void 0:(VW=HD.daiConfig)==null?void 0:VW.enableDai)||!1,F,N;HD=(v==null?void 0:(F=v.playerConfig)==null?void 0:(N=F.daiConfig)==null?void 0:N.enablePreroll)||!1;return Object.assign({},T,{videoId:O,author:c,clientPlaybackNonce:B,nX:p,Bu:U,daiEnabled:f,tG:HD,isListed:H,La:zY,profilePicture:R,title:b,uD:K,TU:D,cV:t,DI:z,isMdxPlayback:X,x8:x,mdxEnvironment:E,isAutonav:q,Zl:J,bY:M,Tf:P,Jo:Z,yL:W})}; g.V.m0=function(){this.listeners.length=0;this.FU=null;g.e.prototype.m0.call(this)};g.Y(cl,g.e);g.V=cl.prototype;g.V.b6=function(){var z=this;rq(this.X3.get())||(this.W=PN(function(){z.T.qZ()||z.T.tv("ad",1)}))}; g.V.zo=function(){}; g.V.addListener=function(z){this.listeners.push(z)}; g.V.removeListener=function(z){this.listeners=this.listeners.filter(function(p){return p!==z})}; g.V.Aw=function(){}; g.V.playVideo=function(){this.T.playVideo()}; g.V.pauseVideo=function(){this.T.pauseVideo()}; g.V.resumeVideo=function(z){this.L4(z)&&this.T.playVideo()}; g.V.L4=function(z){return this.T.getPlayerState(z)===2}; g.V.getCurrentTimeSec=function(z,p,c){var B=this.oa.get().Fk;if(z===2&&!p&&B!==null)return r2f(this,B);c$(this.X3.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.T.getCurrentTime(z,p,c):this.T.getCurrentTime(z,p)}; g.V.getVolume=function(){return this.T.getVolume()}; g.V.isMuted=function(){return this.T.isMuted()}; g.V.getPresentingPlayerType=function(){return this.T.getPresentingPlayerType(!0)}; g.V.getPlayerState=function(z){return this.T.getPlayerState(z)}; g.V.isFullscreen=function(){return this.T.isFullscreen()}; g.V.isAtLiveHead=function(){return this.T.isAtLiveHead()}; g.V.Yp=function(z){this.T.Yp(z)}; g.V.eUp=function(){var z=this.T.getPresentingPlayerType(!0),p=this.getCurrentTimeSec(z,!1);if(z===2){z=g.m(this.listeners);for(var c=z.next();!c.done;c=z.next())c.value.CD(p)}else if(z===1)for(z=g.m(this.uC),c=z.next();!c.done;c=z.next())c.value.Aw(p)}; g.V.Zv3=function(z){for(var p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.Pf(z,this.getPresentingPlayerType())}; g.V.onFullscreenToggled=function(z){for(var p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.onFullscreenToggled(z)}; g.V.onVolumeChange=function(){for(var z=g.m(this.listeners),p=z.next();!p.done;p=z.next())p.value.onVolumeChange()}; g.V.gk=function(){for(var z=this.T.isMinimized(),p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.gk(z)}; g.V.Hu=function(z){for(var p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.Hu(z)}; g.V.UW=function(){for(var z=this.T.Hq().fD(),p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.Fv(z)}; g.V.yT=function(z){for(var p=g.m(this.listeners),c=p.next();!c.done;c=p.next())c.value.yT(z)}; g.V.UB=function(){for(var z=g.m(this.listeners),p=z.next();!p.done;p=z.next())p.value.UB()};g.Y(kSW,g.e);g.Y(bK,g.e);bK.prototype.m0=function(){this.p4.qZ()||this.p4.get().removeListener(this);g.e.prototype.m0.call(this)};Vp.prototype.fetch=function(z){var p=z.kZ;return this.W.fetch(z.sL,{mm:z.mm===void 0?void 0:z.mm,GZ:p,cueProcessedMs:z.cueProcessedMs===void 0?0:z.cueProcessedMs}).then(function(c){return g9i(c,p)})};g.Y(D9,g.e);g.V=D9.prototype;g.V.addListener=function(z){this.listeners.push(z)}; g.V.removeListener=function(z){this.listeners=this.listeners.filter(function(p){return p!==z})}; g.V.Qs=function(z){GSx(this,z,1)}; g.V.onAdUxClicked=function(z,p){tC(this,function(c){c.RI(z,p)})}; g.V.No=function(z){tC(this,function(p){p.jn(z)})}; g.V.SN=function(z){tC(this,function(p){p.Qt(z)})}; g.V.mbi=function(z){tC(this,function(p){p.KP(z)})};Xx.prototype.reduce=function(z){switch(z.event){case "unknown":return}var p=z.identifier;var c=this.W[p];c?p=c:(c={Gd:null,SQ:-Infinity},p=this.W[p]=c);c=z.startSecs+z.W/1E3;if(!(c=this.W.startSecs&&c.startSecs<=this.W.startSecs+this.W.UI)){var B=void 0;if(Ud(this.X3.get())&&c.identifier!==((B=this.W)==null?void 0:B.identifier)){var H=B=void 0,T=void 0,b=void 0;Vw(this.u8.get(),"ocud","ccpi."+c.identifier+";ccpe."+c.event+";ccps."+c.startSecs+";\n ccpd."+c.UI+";pcpi."+((B=this.W)==null?void 0:B.identifier)+";pcpe."+ ((H=this.W)==null?void 0:H.event)+";\n pcps."+((T=this.W)==null?void 0:T.startSecs)+";pcpd."+((b=this.W)==null?void 0:b.UI)+";")}B=void 0;c.identifier!==((B=this.W)==null?void 0:B.identifier)&&P7("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.W=c,zGD(this,c)}}; g.V.m0=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.H8,this),this.K=null);this.listeners.length=0;this.r0.length=0;g.e.prototype.m0.call(this)};EK.prototype.addPlayerResponseForAssociation=function(z){this.T.addPlayerResponseForAssociation(z)};g.V=JC.prototype;g.V.zd=function(z,p,c,B,H,T,b){return this.T.zd(z,p,c,B,H,T,b)}; g.V.h9=function(z,p){this.T.h9(z,p)}; g.V.qf=function(z,p,c){this.T.qf(z,p,c)}; g.V.zV=function(z){this.T.zV(z)}; g.V.JP=function(z,p,c,B,H,T,b){this.T.JP(z,p,c,B,H,T,b)}; g.V.fn=function(z){return this.T.fn(z)}; g.V.finishSegmentByCpn=function(z,p,c){c=HM_(c);this.T.finishSegmentByCpn(z,p,c)};g.Y(TR_,g.e);g.Y(bMu,g.e);g.Y(Vd_,g.e);g.Y(DSv,g.e);g.Y(tdW,g.e);g.Y(xSQ,g.e);xSQ.prototype.D=function(){return this.K};g.Y(EJN,NK); EJN.prototype.X=function(z){var p=z.content;if(p.componentType==="shopping-companion")switch(z.actionType){case 1:case 2:z=this.W.getVideoData(1);this.W.AD("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId,shoppingCompanionCarouselRenderer:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.W,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:this.W.AD("updateKevlarOrC3Companion",{})}else if(p.componentType==="action-companion")switch(z.actionType){case 1:case 2:z=this.W.getVideoData(1); this.W.AD("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId,actionCompanionAdRenderer:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.W,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p.renderer&&(p=this.W.getVideoData(1),this.W.AD("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId})),this.W.AD("updateKevlarOrC3Companion",{})}else if(p.componentType==="image-companion")switch(z.actionType){case 1:case 2:z=this.W.getVideoData(1);this.W.AD("updateKevlarOrC3Companion", {contentVideoId:z&&z.videoId,imageCompanionAdRenderer:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.W,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p=this.W.getVideoData(1),this.W.AD("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId}),this.W.AD("updateKevlarOrC3Companion",{})}else if(p.componentType==="top-banner-image-text-icon-buttoned")switch(z.actionType){case 1:case 2:z=this.W.getVideoData(1);this.W.AD("updateKevlarOrC3Companion", {contentVideoId:z&&z.videoId,topBannerImageTextIconButtonedLayoutViewModel:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.W,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p.renderer&&(p=this.W.getVideoData(1),this.W.AD("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId})),this.W.AD("updateKevlarOrC3Companion",{})}else if(p.componentType==="banner-image")switch(z.actionType){case 1:case 2:z=this.W.getVideoData(1);this.W.AD("updateKevlarOrC3Companion", {contentVideoId:z&&z.videoId,bannerImageLayoutViewModel:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.W,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p=this.W.getVideoData(1),this.W.AD("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId}),this.W.AD("updateKevlarOrC3Companion",{})}else if(p.componentType==="ads-engagement-panel")switch(p=p.renderer,z.actionType){case 1:case 2:this.W.AD("updateEngagementPanelAction",p.addAction);this.W.AD("changeEngagementPanelVisibility", p.expandAction);break;case 3:this.W.AD("changeEngagementPanelVisibility",p.hideAction),this.W.AD("updateEngagementPanelAction",p.removeAction)}else if(p.componentType==="ads-engagement-panel-layout"){var c=p.renderer;switch(z.actionType){case 1:case 2:this.W.AD("updateEngagementPanelAction",{action:UF(c.addAction),layoutId:p.layoutId,onLayoutVisibleCallback:p.W,interactionLoggingClientData:p.interactionLoggingClientData});this.W.AD("changeEngagementPanelVisibility",UF(c.expandAction));break;case 3:this.W.AD("changeEngagementPanelVisibility", UF(c.hideAction)),this.W.AD("updateEngagementPanelAction",{action:UF(c.removeAction)})}}};g.Y(qbE,T3);g.V=qbE.prototype;g.V.init=function(z,p,c){T3.prototype.init.call(this,z,p,c);g.mm(this.D,"stroke-dasharray","0 "+this.K);this.D.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.V.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.X.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){VQ(this);T3.prototype.hide.call(this)}; g.V.show=function(){bT(this);T3.prototype.show.call(this)}; g.V.To=function(){this.hide()}; g.V.Tn=function(){if(this.W){var z=this.W.getProgressState();z!=null&&z.current!=null&&g.mm(this.D,"stroke-dasharray",z.current/z.seekableEnd*this.K+" "+this.K)}};g.Y(JlE,AQ);g.V=JlE.prototype; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);if(p.image&&p.image.thumbnail)if(p.headline)if(p.description)if(p.backgroundImage&&p.backgroundImage.thumbnail)if(p.actionButton&&g.I(p.actionButton,g.nl))if(z=p.durationMilliseconds||0,typeof z!=="number"||z<=0)g.Fr(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+z));else if(p.navigationEndpoint){var B=this.api.getVideoData(2);if(B!=null){var H=p.image.thumbnail.thumbnails;H!=null&& H.length>0&&g.wz(g.Hj(H[0].url))&&(H[0].url=B.profilePicture,g.wz(g.Hj(B.profilePicture))&&Xii("VideoPlayer",239976093,"Expected non-empty profile picture."));H=p.backgroundImage.thumbnail.thumbnails;H!=null&&H.length>0&&g.wz(g.Hj(H[0].url))&&(H[0].url=B.o3());H=p.headline;H!=null&&g.wz(g.Hj(H.text))&&(H.text=B.author)}this.U.init(EL("ad-image"),p.image,c);this.V.init(EL("ad-text"),p.headline,c);this.D.init(EL("ad-text"),p.description,c);this.OH.init(EL("ad-image"),p.backgroundImage,c);B=["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.V.element.classList.add("ytp-ad-action-interstitial-headline-light");this.D.element.classList.add("ytp-ad-action-interstitial-description-light");B.push("ytp-ad-action-interstitial-action-button-dark");this.api.N().K&&(B.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),B.push("ytp-ad-action-interstitial-action-button-dark"));this.api.N().Y("enable_unified_action_endcap_on_web")&& !this.api.N().K&&(B.push("ytp-ad-action-interstitial-action-button-unified"),this.Zt.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.CH.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.bA.classList.add("ytp-ad-action-interstitial-card-unified"),this.Dt.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Ra.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.fH.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.rA.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new j_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,B);g.l(this,this.actionButton);this.actionButton.Ia(this.Zt); this.actionButton.init(EL("button"),g.I(p.actionButton,g.nl),c);g4(this.actionButton.element);B=fo(this.actionButton.element);NV(this.actionButton.element,B+" This link opens in new tab");this.navigationEndpoint=p.navigationEndpoint;this.X.Z(this.fH,"click",this.TB,this);this.X.Z(this.Dt,"click",this.TB,this);!this.api.N().Y("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.N().K||this.X.Z(this.Ra,"click",this.TB,this);this.W=this.M4?new Za(this.api,z):new LJ(z);g.l(this,this.W);if(p.skipButton){(z= g.I(p.skipButton,Jyd))&&this.W&&(this.skipButton=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.W,this.mL),g.l(this,this.skipButton),this.skipButton.Ia(this.element),this.skipButton.init(EL("skip-button"),z,c));if(c=p.adBadgeRenderer)if(c=g.I(c,q_L))z=new uT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0,!0),z.Ia(this.rA),z.init(EL("simple-ad-badge"),c,this.macros),g.l(this,z);if(c=p.adInfoRenderer)if(c=g.I(c,FR))z=new B7(this.api,this.layoutId,this.interactionLoggingClientData, this.Sp,this.element,void 0,!0),z.Ia(this.rA),z.init(EL("ad-info-hover-text-button"),c,this.macros),g.l(this,z)}else p.nonskippableOverlayRenderer&&(z=g.I(p.nonskippableOverlayRenderer,oP))&&this.W&&(this.K=new XA(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.W,!1),g.l(this,this.K),this.K.Ia(this.element),this.K.init(EL("ad-preview"),z,c));p.countdownRenderer&&(p=p.countdownRenderer,g.I(p,MgK)&&this.W&&(c=new qbE(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp, this.W),g.l(this,c),c.Ia(this.element),c.init(EL("timed-pie-countdown"),g.I(p,MgK),this.macros)));this.show();this.element.focus()}else g.Fr(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Fr(Error("AdActionInterstitialRenderer has no button."));else g.Fr(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Fr(Error("AdActionInterstitialRenderer has no description AdText."));else g.Fr(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Fr(Error("AdActionInterstitialRenderer has no image."))}; g.V.clear=function(){g.CG(this.X);this.hide()}; g.V.show=function(){MdW(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();AQ.prototype.show.call(this)}; g.V.hide=function(){MdW(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();AQ.prototype.hide.call(this)}; g.V.TB=function(){this.navigationEndpoint&&(this.layoutId?this.Sp.executeCommand(this.navigationEndpoint,this.layoutId):g.Fr(Error("Missing layoutId for ad action interstitial.")))};var AlD={iconType:"CLOSE"},hC=new g.Ao(320,63);g.Y(PMW,AQ);g.V=PMW.prototype; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);this.X=p;this.U=g.ce(this.X.onClickCommands||[]);this.rA=this.X.onErrorCommand||null;if(z=this.X.contentSupportedRenderer)z=this.X.contentSupportedRenderer,p=this.X.adInfoRenderer||null,g.I(z,Xe$)?(this.V=g.fH("ytp-ad-overlay-ad-info-button-container",this.D.element),OMW(this,p),z=RGQ(this,g.I(z,Xe$))):g.I(z,xCE)?(this.V=g.fH("ytp-ad-overlay-ad-info-button-container",this.K.element),OMW(this,p),z=SbV(this,g.I(z,xCE))):g.I(z,Eu9)?(this.V= g.fH("ytp-ad-overlay-ad-info-button-container",this.W.element),OMW(this,p),z=$SE(this,g.I(z,Eu9))):(g.Fr(Error("InvideoOverlayAdRenderer content could not be initialized.")),z=!1);z&&(this.show(),KfN(this,!0))}; g.V.clear=function(){KfN(this,!1);this.fH.reset();this.Dt=0;this.D.hide();this.logVisibility(this.D.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.hide();this.dispose()}; g.V.A8p=function(){this.Zt&&(this.layoutId?this.Sp.executeCommand(this.Zt,this.layoutId):g.Fr(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.V.OT=function(){a:{if(this.X&&this.X.closeButton&&this.X.closeButton.buttonRenderer){var z=this.X.closeButton.buttonRenderer;if(z.serviceEndpoint){z=[z.serviceEndpoint];break a}}z=[]}z=g.m(z);for(var p=z.next();!p.done;p=z.next())p=p.value,this.layoutId?this.Sp.executeCommand(p,this.layoutId):g.Fr(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.V.DbI=function(){this.OH||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.V.Ig=function(){this.OH||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Ig("invideo-overlay")}; g.V.zMA=function(z){z.target===this.V&&g.fH("ytp-ad-button",this.CH.element).click()};g.Y(uUv,T3);g.V=uUv.prototype;g.V.init=function(z,p,c){T3.prototype.init.call(this,z,p,c);z=p.durationMs;this.D=z==null||z===0?0:z+this.W.getProgressState().current*1E3;if(p.text)var B=p.text.templatedAdText;else p.staticMessage&&(B=p.staticMessage);this.messageText.init(EL("ad-text"),B,c);this.messageText.Ia(this.K.element);this.X.show(100);this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){aPi(this,!1);T3.prototype.hide.call(this);this.K.hide();this.messageText.hide();VQ(this)}; g.V.show=function(){aPi(this,!0);T3.prototype.show.call(this);bT(this);this.K.show();this.messageText.show()}; g.V.To=function(){this.hide()}; g.V.Tn=function(){if(this.W!=null){var z=this.W.getProgressState();z!=null&&z.current!=null&&(z=1E3*z.current,!this.Dt&&z>=this.D?(this.X.hide(),this.Dt=!0):this.messageText&&this.messageText.isTemplated()&&(z=Math.max(0,Math.ceil((this.D-z)/1E3)),z!==this.V&&(iT(this.messageText,{TIME_REMAINING:String(z)}),this.V=z)))}};g.Y(ZMW,AQ);g.V=ZMW.prototype; g.V.init=function(z,p,c){AQ.prototype.init.call(this,z,p,{});p.image&&p.image.thumbnail?p.headline?p.description?p.actionButton&&g.I(p.actionButton,g.nl)?(this.D.init(EL("ad-image"),p.image,c),this.K.init(EL("ad-text"),p.headline,c),this.X.init(EL("ad-text"),p.description,c),z=["ytp-ad-underlay-action-button"],this.api.N().Y("use_blue_buttons_for_desktop_player_underlay")&&z.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new j_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp, z),p.backgroundColor&&g.mm(this.element,"background-color",g.kQ(p.backgroundColor)),g.l(this,this.actionButton),this.actionButton.Ia(this.V),this.actionButton.init(EL("button"),g.I(p.actionButton,g.nl),c),p=g.P3(this.api.N().experiments,"player_underlay_video_width_fraction"),this.api.N().Y("place_shrunken_video_on_left_of_player")?(c=this.W,g.Jn(c,"ytp-ad-underlay-left-container"),g.Eo(c,"ytp-ad-underlay-right-container"),g.mm(this.W,"margin-left",Math.round((p+.02)*100)+"%")):(c=this.W,g.Jn(c,"ytp-ad-underlay-right-container"), g.Eo(c,"ytp-ad-underlay-left-container")),g.mm(this.W,"width",Math.round((1-p-.04)*100)+"%"),this.api.B5()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Br.bind(this)),this.api.addEventListener("resize",this.G2.bind(this))):g.Fr(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Fr(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Fr(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Fr(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.V.show=function(){Lff(!0);this.actionButton&&this.actionButton.show();AQ.prototype.show.call(this)}; g.V.hide=function(){Lff(!1);this.actionButton&&this.actionButton.hide();AQ.prototype.hide.call(this)}; g.V.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Br.bind(this));this.api.removeEventListener("resize",this.G2.bind(this));this.hide()}; g.V.onClick=function(z){AQ.prototype.onClick.call(this,z);this.actionButton&&g.X4(this.actionButton.element,z.target)&&this.api.pauseVideo()}; g.V.Br=function(z){z==="transitioning"?(this.W.classList.remove("ytp-ad-underlay-clickable"),this.show()):z==="visible"?this.W.classList.add("ytp-ad-underlay-clickable"):z==="hidden"&&(this.hide(),this.W.classList.remove("ytp-ad-underlay-clickable"))}; g.V.G2=function(z){z.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):z.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.mm(this.K.element,"font-size",z.width/40+"px")};g.Y(Pl,AQ); Pl.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);p.toggledLoggingParams&&(this.toggledLoggingParams=p.toggledLoggingParams);p.answer&&g.I(p.answer,g.nl)?(z=new j_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),z.Ia(this.answer),z.init(EL("ytp-ad-survey-answer-button"),g.I(p.answer,g.nl),c),z.show()):p.answer&&g.I(p.answer,M4)&&(this.W=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp, ["ytp-ad-survey-answer-toggle-button"]),this.W.Ia(this.answer),g.l(this,this.W),this.W.init(EL("survey-answer-button"),g.I(p.answer,M4),c));this.show()}; Pl.prototype.wf=function(z){this.layoutId?fO(this.Sp,z,this.layoutId,this.macros):g.Fr(new g.z6("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Pl.prototype.onClick=function(z){AQ.prototype.onClick.call(this,z);if(this.api.N().Y("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Pl.prototype.clear=function(){this.hide()};g.Y(dS_,AQ);dS_.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);p.answer&&g.I(p.answer,M4)&&(this.button=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ia(this.W),this.button.init(EL("survey-none-of-the-above-button"),g.I(p.answer,M4),c));this.show()};g.Y(AC,j_);AC.prototype.init=function(z,p,c){j_.prototype.init.call(this,z,p,c);z=!1;p.text&&(p=g.wJ(p.text),z=!g.wz(p));z||g.oc(Error("No submit text was present in the renderer."))}; AC.prototype.onClick=function(z){this.publish("l");j_.prototype.onClick.call(this,z)};g.Y(OK,AQ); OK.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);if(z=p.skipOrPreviewRenderer)g.I(z,xb)?(z=g.I(z,xb),c=new $Q(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.X,!0),c.Ia(this.skipOrPreview),c.init(EL("skip-button"),z,this.macros),g.l(this,c),this.W=c):g.I(z,oP)&&(z=g.I(z,oP),c=new XA(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.X,!1),c.Ia(this.skipOrPreview),c.init(EL("ad-preview"),z,this.macros),c.Dt.show(100),c.show(),g.l(this,c), this.W=c);this.W==null&&g.Fr(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(p)));p.submitButton&&(z=p.submitButton,g.I(z,g.nl)&&(z=g.I(z,g.nl),c=new AC(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),c.Ia(this.submitButton),c.init(EL("survey-submit"),z,this.macros),g.l(this,c),this.K=c));if(z=p.adBadgeRenderer)z=g.I(z,q_L),c=new uT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0,!0,!0),c.Ia(this.D),c.init(EL("simple-ad-badge"), z,this.macros),this.adBadge=c.element,g.l(this,c);if(z=p.adDurationRemaining)z=g.I(z,Vgd),c=new yQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.X,void 0,!0),c.Ia(this.D),c.init(EL("ad-duration-remaining"),z,this.macros),g.l(this,c);(p=p.adInfoRenderer)&&g.I(p,FR)&&(z=new B7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,!0),g.l(this,z),this.adBadge!==void 0?this.D.insertBefore(z.element,this.adBadge.nextSibling):z.Ia(this.D),z.init(EL("ad-info-hover-text-button"), g.I(p,FR),this.macros));this.show()}; OK.prototype.clear=function(){this.hide()};g.Y(wp,AQ);wp.prototype.init=function(z,p,c){AQ.prototype.init.call(this,z,p,c);lPE(this)}; wp.prototype.show=function(){this.D=Date.now();AQ.prototype.show.call(this)}; wp.prototype.Wl=function(){};g.Y(vJE,wp);g.V=vJE.prototype;g.V.init=function(z,p,c){var B=this;wp.prototype.init.call(this,z,p,c);p.questionText&&WfS(this,p.questionText);p.answers&&p.answers.forEach(function(H,T){g.I(H,q4)&&yli(B,g.I(H,q4),c,T)}); this.V=new Set(this.K.map(function(H){return H.W.W})); (z=p.noneOfTheAbove)&&(z=g.I(z,tg3))&&IPB(this,z,c);p.surveyAdQuestionCommon&&eGf(this,p.surveyAdQuestionCommon);p.submitEndpoints&&(this.submitEndpoints=p.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.V.Wl=function(){jZW(this,!1);this.X.K.subscribe("l",this.J8I,this)}; g.V.onChange=function(z){z.target===this.noneOfTheAbove.button.W?FfE(this):this.V.has(z.target)&&(this.noneOfTheAbove.button.toggleButton(!1),jZW(this,!0))}; g.V.J8I=function(){var z=[],p=this.K.reduce(function(H,T,b){var D=T.toggledLoggingParams;T.W&&T.W.isToggled()&&D&&(H.push(D),z.push(b));return H},[]).join("&"),c=this.submitEndpoints.map(function(H){if(!H.loggingUrls)return H; H=g.vj(H);H.loggingUrls=H.loggingUrls.map(function(T){T.baseUrl&&(T.baseUrl=G1(T.baseUrl,p));return T}); return H}); if(c){c=g.m(c);for(var B=c.next();!B.done;B=c.next())B=B.value,this.layoutId?fO(this.Sp,B,this.layoutId,this.macros):g.Fr(Error("Missing layoutId for multi_select_question."))}this.api.N().Y("supports_multi_step_on_desktop")&&this.Dt(z)}; g.V.clear=function(){this.api.N().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.Y(R_,wp);R_.prototype.init=function(z,p,c){var B=this;wp.prototype.init.call(this,z,p,c);p.questionText&&WfS(this,p.questionText);p.answers&&p.answers.forEach(function(H,T){g.I(H,q4)&&yli(B,g.I(H,q4),c,T)}); p.surveyAdQuestionCommon?eGf(this,p.surveyAdQuestionCommon):g.Fr(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(p)));this.show()}; R_.prototype.clear=function(){this.api.N().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.Y(Sy,AQ);Sy.prototype.init=function(z,p,c){var B=this;AQ.prototype.init.call(this,z,p,c);if(this.api.N().Y("supports_multi_step_on_desktop")){var H;this.conditioningRules=(H=p.conditioningRules)!=null?H:[];var T;this.K=(T=p.questions)!=null?T:[];var b;((b=p.questions)==null?0:b.length)&&rlB(this,0)}else(p.questions||[]).forEach(function(D){g.I(D,IP)?nJi(B,g.I(D,IP),c):g.I(D,vr)&&QZY(B,g.I(D,vr),c)}); this.show()}; Sy.prototype.clear=function(){this.api.N().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Sy.prototype.X=function(z){var p=this;if(this.api.N().Y("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var B;if(z.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(H){return H.questionIndex===p.W})==null)g.Fr(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(H){if(H.questionIndex===p.W)switch(H.condition){case "CONDITION_ALL_OF":var T;if((T=H.answerIndices)==null?0:T.every(function(D){return z.includes(D)}))B=H.nextQuestionIndex; break;case "CONDITION_ANY_OF":var b;if((b=H.answerIndices)==null?0:b.some(function(D){return z.includes(D)}))B=H.nextQuestionIndex; break;default:g.Fr(Error("Expected specified condition in survey conditioning rules."))}}),B!=null)rlB(this,B); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Fr(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.Y($E,AQ); $E.prototype.init=function(z,p,c){var B=this;AQ.prototype.init.call(this,z,p,c);z=p.timeoutSeconds||0;if(typeof z!=="number"||z<0)g.Fr(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+z));else if(p.timeoutCommands)if(p.text)if(p.ctaButton&&g.I(p.ctaButton,g.nl))if(p.brandImage)if(p.backgroundImage&&g.I(p.backgroundImage,Qa)&&g.I(p.backgroundImage,Qa).landscape){this.layoutId||g.Fr(Error("Missing layoutId for survey interstitial."));USY(this.interstitial,g.I(p.backgroundImage, Qa).landscape);USY(this.logoImage,p.brandImage);g.xr(this.text,g.wJ(p.text));var H=["ytp-ad-survey-interstitial-action-button"];H.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new j_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,H);g.l(this,this.actionButton);this.actionButton.Ia(this.K);this.actionButton.init(EL("button"),g.I(p.ctaButton,g.nl),c);this.actionButton.show();this.W=new Za(this.api,z*1E3);this.W.subscribe("g",function(){B.transition.hide()}); g.l(this,this.W);this.Z(this.element,"click",function(T){var b=T.target===B.interstitial;T=B.actionButton.element.contains(T.target);if(b||T)if(B.transition.hide(),b)B.api.onAdUxClicked(B.componentType,B.layoutId)}); this.transition.show(100)}else g.Fr(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Fr(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Fr(Error("SurveyTextInterstitialRenderer has no button."));else g.Fr(Error("SurveyTextInterstitialRenderer has no text."));else g.Fr(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; $E.prototype.clear=function(){this.hide()}; $E.prototype.show=function(){sZf(!0);AQ.prototype.show.call(this)}; $E.prototype.hide=function(){sZf(!1);AQ.prototype.hide.call(this)};g.Y(KY,T3);g.V=KY.prototype; g.V.init=function(z,p){T3.prototype.init.call(this,z,p,{});if(p.durationMilliseconds){if(p.durationMilliseconds<0){g.Fr(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+p.durationMilliseconds));return}this.K=p.durationMilliseconds}else this.K=this.W.pM();var c;if((c=p.previewText)==null||!c.text||g.wz(p.previewText.text))g.Fr(Error("No text is returned for AdPreview."));else{this.V=p.previewText;p.previewText.isTemplated||g.xr(this.D,p.previewText.text);var B; if(((B=this.api.getVideoData(1))==null?0:B.xG)&&p.previewImage){var H,T;(z=((T=yV(((H=p.previewImage)==null?void 0:H.sources)||[],52,!1))==null?void 0:T.url)||"")&&z.length?(this.previewImage=new g.P_({j:"img",B:"ytp-preview-ad__image",C:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",z),g.l(this,this.previewImage),this.previewImage.Ia(this.element)):g.Fr(Error("Failed to get imageUrl in AdPreview."))}else this.D.classList.add("ytp-preview-ad__text--padding--wide")}}; g.V.clear=function(){this.hide()}; g.V.hide=function(){VQ(this);T3.prototype.hide.call(this)}; g.V.show=function(){bT(this);T3.prototype.show.call(this)}; g.V.To=function(){this.hide()}; g.V.Tn=function(){if(this.W){var z=this.W.getProgressState();if(z!=null&&z.current)if(z=1E3*z.current,z>=this.K)this.transition.hide();else{var p;if((p=this.V)==null?0:p.isTemplated)if(p=Math.max(0,Math.ceil((this.K-z)/1E3)),p!==this.X){var c,B;(z=(c=this.V)==null?void 0:(B=c.text)==null?void 0:B.replace("{TIME_REMAINING}",String(p)))&&g.xr(this.D,z);this.X=p}}}};g.Y(uK,AQ); uK.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});var c,B;if((z=((B=yV(((c=p.image)==null?void 0:c.sources)||[],kFx(p),!0))==null?void 0:B.url)||"")&&z.length){c=this.jp("ytp-ad-avatar");c.src=z;var H,T;if(B=(H=p.interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label)c.alt=B;switch(p.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(p.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.Fr(Error("Failed to get imageUrl in AdAvatar."))}; uK.prototype.clear=function(){this.hide()}; uK.prototype.onClick=function(z){AQ.prototype.onClick.call(this,z)};g.Y(a_,AQ); a_.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});var c;z=(c=p.label)==null?void 0:c.content;if((c=z!=null&&!g.wz(z))||p.iconImage){c&&(this.buttonText=new g.P_({j:"span",B:"ytp-ad-button-vm__text",F3:z}),g.l(this,this.buttonText),this.buttonText.Ia(this.element));var B,H,T=((B=p.interaction)==null?0:(H=B.accessibility)==null?0:H.label)||c?z:"";T&&NV(this.element,T+" This link opens in new tab");g4(this.element);if(p.iconImage){B=void 0;if(p.iconImage){a:{H=p.iconImage;if(H.sources)for(H= g.m(H.sources),z=H.next();!z.done;z=H.next())if(z=z.value,T=void 0,(T=z.clientResource)==null?0:T.imageName){H=z;break a}H=void 0}if(H){var b;B={iconType:(b=H.clientResource)==null?void 0:b.imageName}}}b=Ib(B,!1,this.K);b!=null&&(this.buttonIcon=new g.P_({j:"span",B:"ytp-ad-button-vm__icon",J:[b]}),g.l(this,this.buttonIcon),p.iconLeading?(DN(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):c?(this.buttonIcon.Ia(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Ia(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(p.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.element.classList.add(this.W?"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(p.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.oc(Error("AdButton does not have label or an icon."))}; a_.prototype.clear=function(){this.hide()}; a_.prototype.onClick=function(z){AQ.prototype.onClick.call(this,z)};g.Y(gJV,T3);g.V=gJV.prototype; g.V.init=function(z,p){T3.prototype.init.call(this,z,p,{});this.api.N().Y("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.jp("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),DN(this.jp("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(z=g.I(p.avatar,vl)){var c=p.headline;if(c){var B=p.description;if(B){var H=g.I(p.button,jy);H?(this.adAvatar.init(EL("ad-avatar"),z),this.headline.init(EL("ad-simple-attributed-string"),new eT(c)),this.description.init(EL("ad-simple-attributed-string"),new eT(B)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(EL("ad-button"),H),this.startMilliseconds=p.startMs||0,this.api.B5()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Qb.bind(this)),bT(this)):g.Fr(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Fr(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Fr(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Fr(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.V.Tn=function(){if(this.W){var z=this.W.getProgressState();z&&z.current&&1E3*z.current>=this.startMilliseconds&&(VQ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.V.To=function(){this.clear()}; g.V.onClick=function(z){this.api.pauseVideo();T3.prototype.onClick.call(this,z)}; g.V.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Qb.bind(this))}; g.V.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();T3.prototype.show.call(this)}; g.V.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();T3.prototype.hide.call(this)}; g.V.Qb=function(z){z==="hidden"?this.show():this.hide()};g.Y(Z9,AQ);g.V=Z9.prototype; g.V.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(!p.label||g.wz(p.label))g.Fr(Error("No label is returned for SkipAdButton."));else if(g.xr(this.X,p.label),z=Ib({iconType:"SKIP_NEXT_NEW"}),z==null)g.Fr(Error("Unable to retrieve icon for SkipAdButton"));else if(this.D=new g.P_({j:"span",B:"ytp-skip-ad-button__icon",J:[z]}),g.l(this,this.D),this.D.Ia(this.element),this.api.N().experiments.JD("enable_skip_to_next_messaging")&&(p=g.Hj(p.targetId)))this.K=!0,this.element.setAttribute("data-tooltip-target-id",p), this.element.setAttribute("data-tooltip-target-fixed","")}; g.V.onClick=function(z){z&&z.preventDefault();var p,c;pUW(z,{contentCpn:(c=(p=this.api.getVideoData(1))==null?void 0:p.clientPlaybackNonce)!=null?c:""})===0?this.api.AD("onAbnormalityDetected"):(AQ.prototype.onClick.call(this,z),this.api.AD("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.V.clear=function(){this.W.reset();this.hide()}; g.V.hide=function(){AQ.prototype.hide.call(this)}; g.V.show=function(){this.W.start();AQ.prototype.show.call(this);this.K&&this.api.N().experiments.JD("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.Y(GFE,T3);g.V=GFE.prototype; g.V.init=function(z,p){T3.prototype.init.call(this,z,p,{});z=g.I(p.preskipState,wel);var c;if((c=this.api.getVideoData())==null?0:c.isDaiEnabled()){if(!z){g.Fr(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new KY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.W);g.l(this,this.K);this.K.Ia(this.element);var B;(B=this.K)==null||B.init(EL("preview-ad"),z);(c=this.K)!=null&&(c.transition.show(100),c.show())}(c=g.I(p.skippableState,S_q))?(p.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=p.skipOffsetMilliseconds:(g.oc(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.D.init(EL("skip-button"),c),this.show()):g.Fr(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.V.show=function(){bT(this);T3.prototype.show.call(this)}; g.V.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.D&&this.D.hide();VQ(this);T3.prototype.hide.call(this)}; g.V.clear=function(){var z;(z=this.K)==null||z.clear();this.D&&this.D.clear();VQ(this);T3.prototype.hide.call(this)}; g.V.To=function(){this.hide()}; g.V.Tn=function(){if(1E3*this.W.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var z;(z=this.K)!=null&&z.transition.hide();(z=this.D)!=null&&(z.transition.show(),z.show())}};g.Y(LY,AQ); LY.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(p.label){var c;((c=p.label)==null?0:c.content)&&!g.wz(p.label.content)&&(this.linkText=new g.P_({j:"span",B:"ytp-visit-advertiser-link__text",F3:p.label.content}),g.l(this,this.linkText),this.linkText.Ia(this.element));var B,H;if((B=p.interaction)==null?0:(H=B.accessibility)==null?0:H.label)NV(this.element,p.interaction.accessibility.label+" This link opens in new tab");else{var T;((T=p.label)==null?0:T.content)&&!g.wz(p.label.content)&&NV(this.element, p.label.content+" This link opens in new tab")}g4(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Fr(Error("No label found in VisitAdvertiserLink."))}; LY.prototype.onClick=function(z){AQ.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; LY.prototype.clear=function(){this.hide()};g.Y(dp,AQ); dp.prototype.init=function(z,p,c,B){AQ.prototype.init.call(this,z,p,{});if(p.skipOrPreview){c=p.skipOrPreview;z=g.I(c,$CJ);c=g.I(c,wel);if(z)this.IY=new GFE(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K),g.l(this,this.IY),this.IY.Ia(this.Dt),this.IY.init(EL("skip-ad"),z);else{var H;c&&((H=this.api.getVideoData())==null?0:H.isDaiEnabled())&&(this.V=new KY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,1),g.l(this,this.V),this.V.Ia(this.Dt),this.V.init(EL("ad-preview"), c),H=this.V,H.transition.show(100),H.show())}if(H=g.I(p.skipOrPreview,$CJ))var T=H.skipOffsetMilliseconds}p.playerAdCard&&(H=g.I(p.playerAdCard,RUJ))&&(this.playerAdCard=new gJV(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K),g.l(this,this.playerAdCard),this.playerAdCard.Ia(this.fH),this.playerAdCard.init(EL("ad-avatar-lockup-card"),H));p.adBadgeRenderer&&((H=g.I(p.adBadgeRenderer,I_))?(this.W=new v7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0),g.l(this, this.W),this.api.N().Y("delhi_modern_web_player")?this.W.Ia(this.X):this.W.Ia(this.D),this.W.init(EL("ad-badge"),H)):g.Fr(Error("AdBadgeViewModel is not found in player overlay layout.")));p.adPodIndex&&(H=g.I(p.adPodIndex,hUd))&&(this.adPodIndex=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.adPodIndex),this.api.N().Y("delhi_modern_web_player")?this.adPodIndex.Ia(this.X):this.adPodIndex.Ia(this.D),this.adPodIndex.init(EL("ad-pod-index"),H));p.adInfoRenderer&& ((H=g.I(p.adInfoRenderer,FR))?(this.adInfoButton=new B7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,!0),g.l(this,this.adInfoButton),z=this.api.N().Y("delhi_modern_web_player")?this.X:this.D,this.W!==void 0?z.insertBefore(this.adInfoButton.element,this.W.element.nextSibling):this.adInfoButton.Ia(z),this.adInfoButton.init(EL("ad-info-hover-text-button"),H,this.macros)):g.oc(Error("AdInfoRenderer is not found in player overlay layout.")));var b;H=(b=this.api.getVideoData())== null?void 0:b.isDaiEnabled();p.adDurationRemaining&&H&&(b=g.I(p.adDurationRemaining,Vgd))&&(this.adDurationRemaining=new yQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,B.videoAdDurationSeconds,!0),g.l(this,this.adDurationRemaining),B=this.api.N().Y("delhi_modern_web_player")?this.X:this.D,this.adPodIndex!==void 0?B.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Ia(B),this.adDurationRemaining.init(EL("ad-duration-remaining"), b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));p.visitAdvertiserLink&&(B=g.I(p.visitAdvertiserLink,ueg))&&(this.visitAdvertiserLink=new LY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ia(this.D),this.visitAdvertiserLink.init(EL("visit-advertiser-link"),B));p.adDisclosureBanner&&(p=g.I(p.adDisclosureBanner,mCd))&&(this.adDisclosureBanner=new jT(this.api,this.layoutId, this.interactionLoggingClientData,this.Sp),g.l(this,this.adDisclosureBanner),this.adDisclosureBanner.Ia(this.Ra),this.adDisclosureBanner.init(EL("ad-disclosure-banner"),p));this.U=new nJ(this.api,this.K,T,!0);g.l(this,this.U);g.F7(this.api,this.U.element,4);this.show()}; dp.prototype.clear=function(){this.hide()};g.Y(NRV,AQ);g.V=NRV.prototype; g.V.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(p!=null&&p.title)if(z=p.title)if(this.headline.init(EL("ad-simple-attributed-string"),new eT(z)),z=g.I(p.moreInfoButton,jy)){if(this.moreInfoButton.init(EL("ad-button"),z),p.descriptions)p.descriptions.length>0&&(z=p.descriptions[0])&&(this.W=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.W),this.W.Ia(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.W.init(EL("ad-simple-attributed-string"), new eT(z))),p.descriptions.length>1&&(p=p.descriptions[1])&&(this.K=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.K),this.K.Ia(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(EL("ad-simple-attributed-string"),new eT(p)))}else g.Fr(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Fr(Error("No headline found in AdGridCardText."));else g.Fr(Error("No headline found in AdGridCardText."))}; g.V.onClick=function(z){AQ.prototype.onClick.call(this,z);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.V.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var z;(z=this.W)==null||z.clear();var p;(p=this.K)==null||p.clear()}; g.V.hide=function(){this.headline.hide();this.moreInfoButton.hide();var z;(z=this.W)==null||z.hide();var p;(p=this.K)==null||p.hide();AQ.prototype.hide.call(this)}; g.V.show=function(){AQ.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var z;(z=this.W)==null||z.show();var p;(p=this.K)==null||p.show()};g.Y(Wl,AQ);Wl.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(p!=null&&p.gridCards)if(p.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Fr(Error("Only single column style is currently supported in AdGridCardCollection."));else for(z=g.m(p.gridCards),p=z.next();!p.done;p=z.next()){if(p=g.I(p.value,O$d)){var c=new NRV(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,c);c.Ia(this.element);c.init(EL("ad-grid-card-text"),p);this.W.push(c)}}else g.Fr(Error("No grid cards found in AdGridCardCollection."))}; Wl.prototype.show=function(){for(var z=g.m(this.W),p=z.next();!p.done;p=z.next())p.value.show();AQ.prototype.show.call(this)}; Wl.prototype.clear=function(){this.hide();for(var z=g.m(this.W),p=z.next();!p.done;p=z.next())p.value.clear()}; Wl.prototype.hide=function(){for(var z=g.m(this.W),p=z.next();!p.done;p=z.next())p.value.hide();AQ.prototype.hide.call(this)};g.Y(yp,T3);g.V=yp.prototype;g.V.init=function(z,p,c,B,H){H=H===void 0?0:H;T3.prototype.init.call(this,z,p,c,B);this.playerProgressOffsetMs=H;bT(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.dR.bind(this));this.api.addEventListener("resize",this.jy.bind(this));this.api.B5()?(this.K=!0,this.api.Yp(!0),this.show()):this.hide()}; g.V.Tn=function(){if(this.W){var z=this.W.getProgressState();z&&z.current&&!this.K&&1E3*z.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.Yp(!0),this.show())}}; g.V.To=function(){this.K&&this.api.Yp(!1);this.hide()}; g.V.clear=function(){this.api.Yp(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.dR.bind(this));this.api.removeEventListener("resize",this.jy.bind(this));VQ(this);this.hide()}; g.V.hide=function(){fPN(!1);T3.prototype.hide.call(this)}; g.V.show=function(){fPN(!0);T3.prototype.show.call(this)};g.Y(zNv,yp);g.V=zNv.prototype; g.V.init=function(z,p,c,B){if(p!=null&&p.adGridCardCollection)if(p!=null&&p.adButton){var H=Number(p.playerProgressOffsetMs||"0");isNaN(H)?yp.prototype.init.call(this,z,p,c,B):yp.prototype.init.call(this,z,p,c,B,H);z=p.headline;c=g.I(p.adAvatar,vl);z&&c?(this.headline=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.headline),this.headline.Ia(this.jp("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(EL("ad-simple-attributed-string"),new eT(z)), this.adAvatar=new uK(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.adAvatar),this.adAvatar.Ia(this.jp("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(EL("ad-avatar"),c)):this.X.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");z=g.I(p.adGridCardCollection,Ayq);this.adGridCardCollection.init(EL("ad-grid-card-collection"),z);p=g.I(p.adButton,jy);this.adButton.init(EL("ad-button"),p); this.hide()}else g.Fr(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Fr(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.V.onClick=function(z){(this.adButton&&g.X4(this.adButton.element,z.target)||this.adAvatar&&g.X4(this.adAvatar.element,z.target))&&this.api.pauseVideo();yp.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.V.jy=function(){}; g.V.clear=function(){this.hide();var z;(z=this.headline)==null||z.clear();var p;(p=this.adAvatar)==null||p.clear();this.adGridCardCollection.clear();this.adButton.clear();yp.prototype.clear.call(this)}; g.V.show=function(){var z;(z=this.headline)==null||z.show();var p;(p=this.adAvatar)==null||p.show();this.adGridCardCollection.show();this.adButton.show();yp.prototype.show.call(this)}; g.V.hide=function(){var z;(z=this.headline)==null||z.hide();var p;(p=this.adAvatar)==null||p.hide();this.adGridCardCollection.hide();this.adButton.hide();yp.prototype.hide.call(this)}; g.V.dR=function(z){z==="transitioning"?(this.D.classList.remove("ytp-ad-underlay-clickable"),this.show()):z==="visible"?this.D.classList.add("ytp-ad-underlay-clickable"):z==="hidden"&&(this.hide(),this.D.classList.remove("ytp-ad-underlay-clickable"))};g.Y(CY,AQ); CY.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(p.attributes===void 0)g.Fr(Error("No attributes found in AdDetailsLineViewModel."));else if(p.style===void 0)g.Fr(Error("No style found in AdDetailsLineViewModel."));else{z=g.m(p.attributes);for(var c=z.next();!c.done;c=z.next())if(c=c.value,c.text!==void 0){c=c.text;var B=p.style,H=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,H);H.Ia(this.element);a:switch(B){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":B="ytp-ad-details-line__text--style-responsive"; break a;default:B="ytp-ad-details-line__text--style-standard"}H.element.classList.add(B);H.init(EL("ad-simple-attributed-string"),new eT(c));this.W.push(H)}this.show()}}; CY.prototype.show=function(){this.W.forEach(function(z){z.show()}); AQ.prototype.show.call(this)}; CY.prototype.clear=function(){this.hide()}; CY.prototype.hide=function(){this.W.forEach(function(z){z.hide()}); AQ.prototype.hide.call(this)};g.Y(ey,AQ);ey.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});var c,B;(z=((B=yV(((c=p.image)==null?void 0:c.sources)||[]))==null?void 0:B.url)||"")&&z.length?(c=this.jp("ytp-image-background-image"),g.mm(c,"backgroundImage","url("+z+")"),p.blurLevel!==void 0&&g.mm(c,"filter","blur("+p.blurLevel+"px)"),p.gradient!==void 0&&(p=new g.Q({j:"div",LH:["ytp-image-background--gradient-vertical"]}),g.l(this,p),p.Ia(this.element)),this.show()):g.Fr(Error("Failed to get imageUrl in ImageBackground."))}; ey.prototype.clear=function(){this.hide()};g.Y(pD$,T3);g.V=pD$.prototype;g.V.init=function(z,p){T3.prototype.init.call(this,z,p,{});g.mm(this.D,"stroke-dasharray","0 "+this.K);this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){VQ(this);T3.prototype.hide.call(this)}; g.V.show=function(){bT(this);T3.prototype.show.call(this)}; g.V.To=function(){this.hide()}; g.V.Tn=function(){if(this.W){var z=this.W.getProgressState();z!=null&&z.current!=null&&g.mm(this.D,"stroke-dasharray",z.current/z.seekableEnd*this.K+" "+this.K)}};g.Y(lK,AQ); lK.prototype.init=function(z,p){AQ.prototype.init.call(this,z,p,{});if(Bu$(p)){this.adAvatar=new uK(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.adAvatar);this.adAvatar.Ia(this.jp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(EL("ad-avatar"),g.I(p.adAvatar,vl));this.headline=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.l(this,this.headline);this.headline.Ia(this.jp("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(EL("ad-simple-attributed-string"),new eT(p.headline));if(z=g.I(p.adDetailsLine,Y_z))this.detailsLine=new CY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.detailsLine),this.detailsLine.Ia(this.jp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(EL("ad-details-line"),z);this.adButton=new a_(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0);g.l(this,this.adButton); this.adButton.Ia(this.jp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(EL("ad-button"),g.I(p.adButton,jy));this.adBadge=new v7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0);g.l(this,this.adBadge);this.adBadge.Ia(this.X);this.adBadge.init(EL("ad-badge"),g.I(p.adBadge,I_));this.adInfoButton=new B7(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,!0);g.l(this,this.adInfoButton);this.adInfoButton.Ia(this.X); this.adInfoButton.init(EL("ad-info-hover-text-button"),g.I(p.adInfoRenderer,FR),this.macros);if(z=g.I(p.skipAdButton,S_q))this.skipAdButton=new Z9(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.skipAdButton),this.skipAdButton.Ia(this.element),this.skipAdButton.init(EL("skip-button"),z);this.K=new LJ(p.durationMilliseconds);g.l(this,this.K);if(z=g.I(p.countdownViewModel,Krv))this.W=new pD$(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K),g.l(this, this.W),this.W.Ia(this.jp("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.W.init(EL("timed-pie-countdown"),z);if(p=g.I(p.imageBackground,P09))this.imageBackground=new ey(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.l(this,this.imageBackground),this.imageBackground.Ia(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(EL("image-background"), p);this.show();this.element.focus()}}; lK.prototype.clear=function(){g.CG(this.D);this.hide()}; lK.prototype.show=function(){cil(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();AQ.prototype.show.call(this)}; lK.prototype.hide=function(){cil(!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.W&&this.W.hide();this.imageBackground&&this.imageBackground.hide();AQ.prototype.hide.call(this)};g.Y(Fx,g.JQ);g.V=Fx.prototype;g.V.pM=function(){return 1E3*this.api.getDuration(this.H1,!1)}; g.V.stop=function(){this.W&&this.Dz.vy(this.W)}; g.V.xr=function(){var z=this.api.getProgressState(this.H1);this.K={seekableStart:z.seekableStart,seekableEnd:z.seekableEnd,current:this.api.getCurrentTime(this.H1,!1)};this.publish("h")}; g.V.getProgressState=function(){return this.K}; g.V.WS=function(z){g.wn(z,2)&&this.publish("g")};var Hwv="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.Y(o_,NK); o_.prototype.X=function(z){var p=z.id,c=z.content,B=c.componentType;if(!Hwv.includes(B))switch(z.actionType){case 1:z=this.api;var H=this.Sp,T=c.layoutId,b=c.interactionLoggingClientData,D=c instanceof c2?c.M4:!1,t=c instanceof c2||c instanceof aG?c.mL:!1;b=b===void 0?{}:b;D=D===void 0?!1:D;t=t===void 0?!1:t;switch(B){case "invideo-overlay":z=new PMW(z,T,b,H);break;case "player-overlay":z=new QQ(z,T,b,H,new Fx(z),t);break;case "player-overlay-layout":z=new dp(z,T,b,H,new Fx(z));break;case "survey":z= new Sy(z,T,b,H);break;case "ad-action-interstitial":z=new JlE(z,T,b,H,D,t);break;case "video-interstitial-buttoned-centered":z=new lK(z,T,b,H);break;case "survey-interstitial":z=new $E(z,T,b,H);break;case "ad-message":z=new uUv(z,T,b,H,new Fx(z,1));break;case "player-underlay":z=new ZMW(z,T,b,H);break;case "display-underlay-text-grid-cards":z=new zNv(z,T,b,H,new Fx(z));break;default:z=null}if(!z){g.oc(Error("No UI component returned from ComponentFactory for type: "+B));break}g.LH(this.K,p)?g.oc(Error("Ad UI component already registered: "+ p)):this.K[p]=z;z.bind(c);c instanceof ze?this.D?this.D.append(z.o0):g.oc(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(z.o0);break;case 2:p=H_l(this,z);if(p==null)break;p.bind(c);break;case 3:c=H_l(this,z),c!=null&&(g.Dm(c),g.LH(this.K,p)?(c=this.K,p in c&&delete c[p]):g.oc(Error("Ad UI component does not exist: "+p)))}}; o_.prototype.m0=function(){g.tJ(Object.values(this.K));this.K={};NK.prototype.m0.call(this)};g.Y(i_v,g.Ms);g.V=i_v.prototype;g.V.create=function(){try{Tum(this),this.load(),this.created=!0,Tum(this)}catch(z){P7(z instanceof Error?z:String(z))}}; g.V.load=function(){try{DvJ(this)}finally{rq(YE(this.W).P0)&&this.player.tv("ad",1)}}; g.V.destroy=function(){var z=this.player.getVideoData(1);this.W.W.wx.zo(z&&z.clientPlaybackNonce||"");this.unload();this.created=!1}; g.V.unload=function(){g.Ms.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(p){P7(p instanceof Error?p:String(p))}if(this.K!=null){var z=this.K;this.K=null;z.dispose()}this.D.reset()}; g.V.Ln=function(){return!1}; g.V.getAdState=function(){return-1}; g.V.getOptions=function(){return Object.values(Bh3)}; g.V.jh=function(z,p){p=p===void 0?{}:p;switch(z){case "replaceUrlMacros":return z=p,z.url?(p=$8f(this.player),Object.assign(p,z.K3p),z=g.l8(z.url,p)):z=null,z;case "onAboutThisAdPopupClosed":this.aP(p);break;case "executeCommand":z=p;z.command&&z.layoutId&&this.executeCommand(z);break;default:return null}}; g.V.M2=function(z){var p;return!((p=this.W.W.HU)==null||!p.get().M2(z))}; g.V.aP=function(z){z.isMuted&&MbQ(YE(this.W).MB,YE(this.W).rP,z.layoutId);this.d5&&this.d5.aP()}; g.V.executeCommand=function(z){YE(this.W).Sp.executeCommand(z.command,z.layoutId)};g.oE("yt.player.Application.create",g.qz.create);g.oE("yt.player.Application.createAlternate",g.qz.create);jwW(l$(),cuE);var iw1=g.n_("ytcsi.tick");iw1&&iw1("pe");g.JV("ad",i_v);g.Y(g.rp,g.e);g.rp.prototype.start=function(z,p,c){this.config={from:z,nQ:p,duration:c,startTime:(0,g.y2)()};this.next()}; g.rp.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.rp.prototype.next=function(){if(this.config){var z=this.config,p=z.from,c=z.nQ,B=z.duration;z=z.startTime;var H=(0,g.y2)()-z;z=this.W;B=sjS(z,H/B);if(B==0)z=z.G;else if(B==1)z=z.S;else{H=mH(z.G,z.L,B);var T=mH(z.L,z.V,B);z=mH(z.V,z.S,B);H=mH(H,T,B);T=mH(T,z,B);z=mH(H,T,B)}z=g.MQ(z,0,1);this.callback(p+(c-p)*z);z<1&&this.delay.start()}};g.Y(g.UK,g.Q);g.V=g.UK.prototype;g.V.hasSuggestions=function(){return this.suggestionData.length>0}; g.V.cS=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.V.show=function(){g.Q.prototype.show.call(this);Jiq(this)}; g.V.Kq=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.V.Za=function(){this.UW(this.api.Hq().getPlayerSize())}; g.V.UW=function(z){var p=this.api.isEmbedsShortsMode()?.5625:16/9,c=this.api.lz();z=z.width-(c?112:58);c=Math.ceil(z/(c?320:192));var B=(z-c*8)/c;p=Math.floor(B/p);for(var H=g.m(this.W),T=H.next();!T.done;T=H.next())T=T.value.jp("ytp-suggestion-image"),T.style.width=B+"px",T.style.height=p+"px";this.suggestions.element.style.height=p+"px";this.X=B;this.S=p;this.containerWidth=z;this.columns=c;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.sK(this)}; g.V.onVideoDataChange=function(){var z=this.api.N(),p=this.api.getVideoData();this.V=p.Sd?!1:z.X;this.suggestionData=p.suggestions?g.M3(p.suggestions,function(c){return c&&!c.playlistId}):[]; Yxz(this);p.Sd?this.title.update({title:g.RD("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:p.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.V.scrollTo=function(z){z=g.MQ(z,this.containerWidth-this.suggestionData.length*(this.X+8),0);this.G.start(this.scrollPosition,z,1E3);this.scrollPosition=z;g.sK(this);Jiq(this)};})(_yt_player);