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 a="}V}W}LM}split}length}forEach}unshift}path}1970-01-01T04:45:05.000+04:45}slice}set}push}join}130Td3FeaCE8J0Bj-L-_w8_}prototype}/}file}=}url}clone}://}rr?[1-9].*\\.c\\.youtube\\.com$}Gw}1970-01-01T02:31:40.000+02:15}rr},}signatureCipher}Z}n}Jh}reverse}mn}xG}1}s}pop}1969-12-31T14:15:25.000-09:45}\\.a1\\.googlevideo\\.com$}scheme}get}undefined}&}match}replace}1969-12-31T12:30:36.000-11:30}sp}indexOf}a1.googlevideo.com}//}youtube.player.web_20250429_10_RC00}/initplayback}splice}assign}/videoplayback}?}IP}N}fromCharCode}startsWith}\\.googlevideo\\.com$}local}cmo=}false}Untrusted URL}cmo=pf}catch}toString}/;'\"{}playerfallback}index.m3u8}1969-12-31T14:30:40.000-09:30}/api/manifest}redirector.googlevideo.com}fallback_count}1969-12-31T17:45:30.000-06:15}%3D}1970-01-01T08:30:36.000+08:30}www.youtube.com}1970-01-01T09:30:56.000+09:30}r}cmo=td}cmo}nI}:}1969-12-31T19:30:20.000-04:30}/file/index.m3u8}---}fvip}1970-01-01T08:14:57.000+08:15".split("}"), zu,zYb,vmb,LO,RY2,ZOu,l7,Y2u,WU,iOu,Gu,xm,eI,yf,jvY,auI,km,PU,Qvb,Vf,Luu,E2,HU,Kuf,ov,b7,tb,Iv,XK,luu,r_,w_,NP,GuU,xxf,aw,eYx,Jb7,Km,yb2,fum,dxx,svm,T_v,W$,nmK,mxf,$5,$xK,k5,Uxf,B_v,B$,Abu,gmm,pUf,ku7,ow,t8,P72,VIf,MP,S2u,ZR,Y_,ih,aP,Qg,LI,HO_,KI,lh,WZ,omY,bOv,x_,tIO,fI,sN,A0,gf,pI,PZ,OOO,Iuv,Vg,EN,Sz,XUu,rbx,uKb,cbU,MI7,HZ,oP,DR,bh,t0,IP,rf,v5x,cZ,M8,wf,Nu,z3,C9,ZB,R9O,iU,j8,Qp,ZmK,YZu,im_,L9,lU,Wr,xQ,e8,f9,dL,G1u,xPm,e9O,J8f,sC,y82,T3,FD,n9,flf,mf,dP7,TEm,Aj,p9,Vp,EC,hj,mPm,n5f,g5K,BEu,k1b,DB,bU, rL,SZ2,h9m,E5I,cr,Mu,Hmu,qu,Rz,oI,DPu,o52,jY,iK,Hr,bmK,az,Lt,QX,lK,tVY,GP,xS,eY,J9,yX,ft,Ilf,X$m,dS,r8O,urf,sL,TP,qZO,mR,UL,w$u,BV,A9,gS,Nfb,zq2,PV,v_u,VX,SY,ZIU,EL,h9,iIO,jPv,LU_,aRu,KUv,x8f,HV,GMO,lRv,oz,DQ,equ,bK,J0v,t9,fRm,y0K,d8b,sPm,rS,uK,Tfv,FUf,n_f,cV,qA,MA,m8O,A0f,wS,g_K,pZ2,E_I,R1,SN7,kMY,HIu,bII,Zs,iw,a1,jL,tzO,QF,r0m,LU,WJ,GV,xb,JD,qNU,yF,Mzb,dG,sW,Fv,vQv,$b,BJ,gG,Rfv,AD,CUm,Z9u,pU,UW,kb,PJ,YC2,VF,EW,jIf,hD,HJ,o1,Lf7,I1,KfY,lB_,Wfu,G3v,OW,tD,Ds,aBu,QIu,xux,Jjm,yjf,fBI,uw,cJ,qG,du7,Nb, vG,Rd,Cy,sIY,YR,TL2,ad,j9,$uK,lY,Ky,UuK,AjY,WG,G0,xR,e9,y2,JE,d4,fy,mg,gQ2,sk,FB,$R,prI,Uk,k3_,BG,AE,PG,V2,S9,g4,kR,py,hE,PUb,HG,V8u,od,EQY,bY,tE,ny,Ok,Id,XB,r4,H9v,uY,cG,qb,Mb,w4,NU,oQm,zN,DuK,vo,RL,b9m,Zg,C4,Yn,i8,jp,aL,QL,t8K,IBx,K4,Xrv,rjf,uD7,Wo,GN,JO,qC_,yL,M82,f4,NSY,si,vSO,TN,Fl,n4,RDf,mL,CKI,$n,ZtU,YLf,Ui,it7,Bo,AO,p4,kn,aQu,Sp,KRv,jzU,Ei,Ho,oL,GPY,lQK,b8,Oi,xAb,J9u,y9O,IL,co,qU,MU,wT,Nj,zp,dAK,szu,TS2,nS_,mAu,CT,Z8,$AO,Ys,UAK,BSu,gS2,VY7,im,SLf,ESf,hDu,HtI,oSK,QC,DAu,btu,tYb,eB,xs,Gp,Otx, IQu,XVu,JJ,yC,fT,udU,nT,mk,$s,UV,BH,qL2,MYY,wVU,pT,PH,VC,HH,oB,tJ,zyu,Ryb,vbb,CwI,ZU_,cH,YWv,iUO,qj,j1b,asU,Q12,LDU,zc,wv,vT,R6,Cc,KDu,lsO,Kg7,ZH,YK,lWO,i_,Wgm,G0f,xbf,jN,eO_,a6,Q8,JEu,yEm,fWY,dbu,sdb,T4m,l_,WT,Gc,eN,mbY,JF,y8,$bU,nRO,xK,Ubu,fc,dP,sJ,nc,FO,B4I,AEx,gRu,mA,k0f,$K,V9b,SkO,ERu,hOO,HyI,oRO,Dbf,byU,AF,gP,pc,OyU,t9K,IWu,XGI,PT,rEu,V8,uBb,cE_,SN,EJ,hF,qk_,HT,DH,M9u,b_,tF,OJ,I6,XO,rP,u_,cT,wGu,NTO,zpb,vnY,qW,RpI,Z47,C8u,wP,NH,i4I,Yif,QLb,lgu,KLU,zn,WL_,GNK,xUf,JO2,epU,yOU,vq,fgU,dU_,C5,sLu, TT_,FLI,nnu,Zx,Y3,mU2,i9,$UY,j6,a8,BTO,QR,AOY,L5,K5,gnU,pox,l9,Gn,P82,x3,kNf,Vpv,SiK,Enm,H4O,e6,on_,f5,dy,b4O,tpu,Xou,rOK,sp,Tn,F4,n5,m$,$3,Up,Bq,Av,gy,p5,k3,Pq,Mpv,qi7,wo_,z5m,Nvu,R5f,cO2,vsf,ulv,VR,S6,ZTI,YVu,iT7,o8,Dx,b9,Ep,a8m,ry,Cmx,Lkv,Kkb,QB_,u9,cq,qH,MH,l8O,jBb,WkO,wy,Gpu,xjf,e5v,JJu,yJu,sB7,Tv7,Fkf,nsu,N_,zo,vf,mjO,$jU,AJb,gsu,RK,ZJ,kpx,Yj,Ck,VBf,PmI,SVu,EsU,h5f,jS,aK,osb,Djm,bT2,tB_,OTu,I8f,XH2,rJu,uMU,cJU,Lk,Kk,lb,Wf,qVU,zVx,vKu,C_u,RVu,Zc_,eS,J_,YJu,ic_,j67,ys,fk,da,sA,To,Fm,nk,m3,aHI, UA,LAU,pk,KAx,lHK,kj,Pf,Vs,SS,WAu,Gcv,eVI,EA,vH,FRx,bb,JFU,yFU,t_,fHu,DJ,s6m,dWY,oK,OA,IK,TPI,FA2,nKx,mWf,Xm,$Wu,ra,wHv,MB2,ub,cf,M_,wa,AFU,Nn,z5,RZ,gKO,pTK,Cx,EKv,Q$,P_b,SJU,iX,Y7,G5,x7,hVv,y$,HcO,fx,dH,oKx,bcu,Ocu,gH,k7,uOm,cFU,qJm,Ps,zPI,nx,XTm,RPb,Nyu,MNx,wT7,C97,v3b,SG,Hs,Yp2,i5K,j8m,axf,Q87,DI,L$m,tL,K$f,Gn2,xHY,Ol,JvU,fxK,yvu,dHf,Xp,cs,Nm,vw,R9,C$,Zt,YC,F$7,n3m,i6,mHu,jU,a9,zB,QS,L$,K$,ib,l6,$HO,GB,Avf,xC,eU,pqO,g3I,kn_,P9I,V6_,Jh,Spf,yS,f$,hPf,DHO,b5O,d2,Xqm,Ixm,rvK,u4u,cvK,sP,qpv,t6v,TB, M6I,wq7,F9,zQu,vj2,RQI,CbO,Zku,m9,YAu,ikU,jKu,aJ2,K3I,QK7,$C,UP,Bw,Ah,g2,p$,kC,Pw,W3U,SU,VS,GoY,hh,J_m,EP,y__,fJI,nju,d_Y,sKb,Ta7,F3u,Hw,o9,Dt,m_b,b6,th,OP,I9,X9,r2,gju,$_Y,Mm,A__,w2,Bax,qm,u6,U_7,cw,zE,ko_,RH,vn,jj,aH,Lj,SAu,EjU,Q0,Wn,hQ7,GE,PbI,D_2,bkb,tSm,J4,y0,fj,OkI,ds,so,TE,$Z,IJI,Uo,Bn,A4,Xfu,r_f,gs,umO,MSY,H57,qAO,wfm,NHv,zkI,c_U,RkU,Yl2,kZ,V0,jZf,aIU,LGu,Eo,Sj,KGO,QZK,G5K,xnf,Hn,ekO,h4,DF,JL2,bk,XQ,rs,yLu,fIO,zb,dnu,RO,sZ7,THu,K6,FG7,mnK,lP,$nu,UnK,k5U,BHK,eW,J7,yY,dA,sb,hkm,Tb,FV,n6,o7K, Ub,DnY,bxu,Bl,Oxu,gA,p6,ke,Pl,Xsx,VY,Eb,h7,Hl,oO,rL2,upm,cLx,bP,t7,Ob,IO,XV,rA,qlK,MGu,wsb,N2u,zrK,vCu,uP,Rrb,v6,C6I,Z$b,YPY,Rh,Z3,YW,i1,QT,Li,Ki,j9v,GA,xW,e1,atO,Q9u,JB,L97,K9_,fi,ftU,dmK,s9v,db,T2_,F9I,$mu,TA,B2f,Um7,Ahf,pwv,kBK,m1,$W,P6u,UT,B6,AB,gb,pi,kW,P6,VT,S1,ET,hB,H6,b1,tB,VUu,SPY,EC7,Ih,rb,hrm,MV,wb,NL,zU,v9,CX,Zz,b$v,YA,iQ,j5,O$x,tUK,H$K,LX,Qj,u9I,KX,dm,Jr,sF,TU,qPx,nX,z3O,wwu,Nsu,R3u,jHb,Ck7,Yov,ijv,chb,$A,m4,QHK,B9,Ar,gm,Lqv,EF,Kq_,hr,H9,o0,bQ,lFf,OF,I0,Wq7,Xb,rm,xvI,qL,wm,N0,z6,ve,Rs, CH,Z_,Ya,iy,J4_,jc,LH,QJ,fFx,FqY,sHK,TsO,nZK,mvf,Uvm,BsO,$vu,gZ_,We,G6,JV,pn7,kEb,ec,yJ,VjO,Sou,oZK,Hjb,FS,nH,m6,$a,Uv,AV,bj_,tjI,Ojb,Ev,hV,IF2,Xnv,r4m,tV,Ov,Is,uQK,c4I,MjU,NAm,ce,z$u,wY,q0,vz,RX,Z4,vex,KJ,lR,Wz,GJ,et,J6,fJ,i6K,jOb,s5,adu,QO7,Fi,LNv,KNO,nJ,me,ldu,WNI,x4f,Bz,J7x,y7b,$p,fdu,d4K,TAu,sOY,kp,e$7,neu,m4U,Hz,E5,$4x,U47,oX,D4,BAI,A77,O5,geK,plx,kbO,PPu,cz,VW7,Sbu,Eeb,h$u,H6O,oeO,D4b,b6U,Mp,tW2,Nf,Idm,Xl2,r7K,uV_,c7_,zR,i$,MW2,zgm,jb,vWu,C1U,qbv,Zi7,YTI,ii7,wlY,Nbu,vd,Rq,YH,RgI,ZY,CG,jhY, a32,Qh2,L1u,K1I,l3m,JBO,W1b,KG,Jq,fG,dVu,F12,Tbx,yi,TR,nWm,mj,mVu,UVv,g5,$VY,EWU,BbK,ST_,Vi,hgu,DVx,Sb,Pd,Hi2,oWm,biI,hq,Oi7,I3_,X6Y,rB_,uIK,cBx,qTu,t1I,w6O,NmO,zXK,RX_,vAf,ZXK,b$,YFI,tq,O1,Iq,iXu,j07,u$,cd,Q0u,azv,qf,L4U,lzu,GUu,W4I,xLO,yrK,eXU,jD,GF,Wa,fzv,aA,xL,eD,Ji,yM,dLb,d3,Tm_,FX,TF,mB,$L,UD,Ba,F4u,Ai,p1,nA7,Pa,SD,ED,mLm,$Lv,ULm,Bmf,hi,oA,Aru,DK,bD,ti,p97,OD,IA,kUb,r3,qq,ca,uD,Mq,w3,SFu,bXO,OXm,DLu,oAO,t5x,vN,Zr,ubb,Izu,X9I,rrU,V5K,CyU,GZ,RtK,iHb,vam,zZ,xE,a_,lt,ZHu,it,hX2,EAv,HXm,Cz,zt7,fz, l_U,d0,G6m,x0v,etm,TZ,JV2,yVO,f_7,ssv,TYb,mK,naf,$E,m0Y,$0u,BYx,AVu,BN,gam,k62,AT,Pyv,g0,pz,jt,oaO,I_2,hT,rV2,qvv,o_,weI,N8U,z62,w0,Mz,vpf,cN,shU,r0,qz,ut,Dr,iG,Yt,a$,LK,CRb,KK,WS,Ga,ZJx,Y5U,Ju,jXv,a4f,QXu,LeI,Kev,l4f,Weu,GJx,xp2,e6x,sd,J6_,Ta,nK,y6U,f4m,dpf,sX2,mn,T8K,Fe7,npm,mpf,Au,gN,pK,$p7,kt,UpU,Vr,A6f,B8x,Ed,hu,HS,o$,gp2,D9,bG,pzK,kJx,tu,Od,EpY,PRu,S5m,Vtx,I$,Xo,rN,h67,HJU,opI,uG,bJf,I4u,OJm,cS,qg,Mg,wN,N2,vW,Rt,CZ,Z0,YJ,i4,XzK,r62,uif,j0,at,QW,LZ,l4,GX,Mtu,q5u,e0,wz_,JX,yW,fZ,dO,sI,nZ,m5,$J, UI,BW,AX,gO,pZ,kJ,PW,VW,vHu,EI,HW,Rau,ot,D0,Y1I,iGf,jqU,QqY,Kjx,rO,lYK,cW,u4,xfu,eaI,JqU,M2,wO,fYK,z4,lv,W_,G4,sqI,xr,eq,Jc,T5f,yZ,dfm,fh,dZ,nH7,Fjf,sm,T4,Fh,nh,$r,$fb,UfU,B_,Ac,ph,kr,B5u,gZ,pd2,kRu,P$v,VbK,S1Y,EHK,ha2,VZ,P_,gHO,Dfu,Sq,tbU,OG7,DT,IYb,hc,H_,Xdm,bv,uCu,q1I,tc,Om,MbI,Ic,N3v,Xh,YDU,CD_,zFb,RFY,vLu,uv,c_,q3,M3,wZ,NJ,zL,RN,jAu,LBI,Yl,pH_,iI,KBY,WBf,aN,lI,Qa,KA,LA,eFI,xqb,GFv,JiU,Wy,yiO,T3K,GL,eo,nLb,J2,ya,fA,dJ,mqm,sf,$qI,Uqb,Fs,Uf,By,A2,gJ,pA,kl,Py,Va,So,Ef,h2,Hy,oN,B37,Ai_,DX,bI,t2,Of, IN,Xs,gLU,paY,rJ,MJ,VDY,SDu,wJ,NT,xX,e4,hFf,fS,H1v,oLv,T9,Dqv,tDY,b1u,O1b,IKm,Xau,riu,uXu,ciI,MDf,qDu,wau,vEK,Ctf,zC2,Zzx,YnY,j_I,nS,mm,Q_u,ar7,$X,UU,Bj,KKO,AU,gC,pS,WK2,GZ7,kX,lrm,Pj,JT7,Vz,S4,EU,hU,Hj,o3,Dw,bq,tU,OU,I3,XJ,rC,uq,cj,qT,MT,wC,NK,zy,v2,Rj,C3,Zy,YP,iu,jT,aj,Q_,L3,K3,lu,W2,Gy,xP,eT,J1,y_,f3,dU,sx,Ty,FP,n3,mX,$P,Ux,B2,A1,gU,p3,kP,P2,V_,ST,Ex,h1,H2,oj,Dy,bu,t1,Ox,Ij,XP,rU,uu,c2,qK,MK,Nh,zW,frv,vL,q,RY,wU,CM,ZL,YV,s_m,jR,FKv,ic,nE2,Qd,mzu,KM,aY,lc,WL,GW,eR,Uz7,B0f,ATU,gE2,mF,$V,s8,U8,kZf, Ptu,Vsv,Snf,$zm,EEU,xV,hC7,Hzb,AY,Vd,gR,yd,oEb,JY,BL,pM,SR,bzO,fM,dR,PL,kV,tsY,E8,hY,HL,oY,Ozb,DL,bc,tY,O8,IY,Iru,XNb,u8u,cTm,uc,cL,Msv,qh,vtv,CGu,Yd2,iKI,wR,a9_,Q$m,ZA,Lnx,YU,ia,jZ,a2,Qu,L7,KnO,Wn2,GaI,l9x,xgU,eIO,Gt,xU,Jn,f7,dV,sj,Ju7,Tt,yub,Fg,n7,eZ,BA,An,gV,p7,f9b,Uj,s$m,kU,TNv,FnU,PA,ntm,Vu,SZ,mgK,$gv,Ej,Ugm,BNu,hn,Auu,gtf,pSu,kab,HA,o2,PG7,VJx,DA,ba,tn,Sd_,Oj,I2,Xg,rV,Etf,ua,cA,hI7,qt,HKb,Mt,otO,Dgv,bKU,tJu,OKO,I9m,wV,XSK,rux,uoU,Ni,cu7,z2,qdv,vP,MJx,RV,wSI,NOm,C_,aV,ziv,QV,L_,K_,li,vJv,WP, G2,xz,e3,Jx,RiI,C42,f_,dp,YIu,sH,iZ7,jtx,ZZ_,a02,Qtu,L5u,F1,K5I,n_,mT,$z,UH,l0K,BP,Ax,p_,W5u,kz,PP,GXI,S3,HP,EH,tx,OH,x22,IV,eiO,rp,ui,cP,JXu,Mi,yXY,Na,zS,vE,Di,Re,CN,Zj,f0Y,Yx,ir,jx,d2K,ae,Q4,LN,KN,lr,WE,oe,Dj,br,tC,st7,TO2,F5b,rK,O0,ur,cE,nJb,m2x,$2b,qa,Ma,wK,U2x,BO_,Xk,AX7,gJu,NQ,pWY,zY,vR,Cg,Zo,Yc,iE,ji,Qx,Lg,lE,WR,GY,xc,Kg,V0I,SIU,JN,yx,fg,EJY,TY,HZK,F7,ng,oJI,mW,$c,Uw,AN,D2U,BR,gr,pg,kc,bZ2,Si,OZf,I0I,XWf,hN,Ew,rXv,ufY,cXv,HR,M0u,dr,qI2,wWf,oo,NZb,Do,z2Y,bE,vru,R22,Cv7,ZhO,Ymv,tN,jcb,ihv,Ow, rr,aTm,uE,Qcu,cR,LcO,KcK,qQ,lTf,Wc_,G4u,x3u,MQ,e27,wr,ycm,vD,Rk,d3f,fTO,scf,TZf,Fcu,ZP,Y8,iJ,nrv,m32,$37,U3O,BZK,AcU,grv,p__,k4m,PvY,ak,Qn,VqY,SmY,LC,KC,Erb,lJ,WD,x8,h2u,eH,JQ,yn,Hh2,fC,or_,dl,D3u,sc,bhu,tqO,TQ,Oh_,ITO,X_u,F5,nC,mZ,$8,Uc,rcm,uhK,BD,AQ,gl,ccU,pC,k8,PD,Vn,SH,qmf,MqY,Ec,hQ,w_Y,HD,ok,DP,bJ,rTf,NJb,zhb,tQ,vl_,RhY,CIU,Oc,Ik,X5,rl,uJ,cD,qY,MY,wl,NI,z_,ZAK,Yfb,jk,ag,iA2,Qy,FY,yy,$u,lX_,J22,WCu,y2u,dJI,sNU,fXm,TJu,FCx,nlu,H4,BJO,pyO,glK,PIv,Vou,Sff,t5,O9,hhu,HAO,toU,Ig,OAf,ol2,XY,rx,u2,c4, XyI,c2I,r27,wyK,YUf,ZSu,NCO,iSb,MI,vXf,zu7,Q3u,lwU,Kmu,eum,Wmu,wx,Ns,s3O,Ra,TC_,AUm,BCu,UT2,$Tu,nXv,k9b,pjU,mTv,hu2,EXK,HSv,jC,bSu,oXK,DTm,Fmu,t4Y,OS2,Cv,Yk,V4x,PqK,SUv,Iw7,Z7,gXI,rU7,cUu,M4u,NUI,RGI,Cu2,Yx_,i3U,ayU,jj7,WXK,LX_,QjU,GyO,J1U,y1K,fyI,dKu,y6,DD,FXm,sju,T$,BU_,mo,gP7,p2f,A1u,$k,kyI,U3,Bk,K7,As,UJx,gQ,pv,kk,Pk,Puv,VTv,V6,Sxx,EPv,hG2,SC,E3,hs,Hk,oa,D7,b5,ts,O3,H3v,oPf,Ia,DKf,X3,X7,rQ,u5,tT2,b3Y,ck,O3Y,Iy2,X2_,qs,Ms,r1_,wQ,uP_,c1v,kLv,UK7,qxK,N$,la,rR,aa,MT7,w2m,vM,dT7,z$,NRu,fv,dQ,Lv,Q6, qI,l5,zGU,Z3b,Kv,JUY,xKu,zxu,j3_,RuO,RJ,nPI,b2,Rxf,vVm,IXu,vPf,CcK,eG7,eC,yUu,fwf,LmY,wjY,qU7,MoY,usu,bAv,DJ2,Elb,Xj7,CqK,KXU,G92,xT_,G$,xk,Wk,lym,uJ_,Y8m,ZMf,Cb,Zv,Y0,is,jv,aJ,iM7,Kb,ls,WM,x0,ev,jYu,Gz,JG,yP,aLu,fb,dq,s_,F$,LFx,KF_,nb,mJ,$0,U_,BM,AG,gq,pb,xhu,PM,ex7,k0,JYu,WFu,GWu,yYu,VP,Sv,fLY,dhU,E_,sYI,iR,FFx,TRO,mh2,Uhf,BRx,$hK,pLf,kWu,VRf,tG,O_,S8x,EVu,IJ,X$,hx2,HMO,oVm,Dh7,us,bM_,q$,M$,OMf,ILx,uuu,q8v,MRO,cYx,zT,RS,v7,wLI,NVu,wq,zdI,vUu,Rdu,CaI,Nc,j2U,aA2,Q2b,i7v,YjU,Z7I,Lb2,Kb2,XLu,lAO,rY_, WbY,Gtx,yn_,xtY,edu,Jnu,s22,fAO,dtu,TVK,Fbu,Zq,$tY,nU2,UtY,mt7,BVI,Anf,gU_,pAO,ktI,Pa7,VZb,SjI,EUu,hdu,H7f,oUf,Yw,b7x,tZY,O7u,Dtv,IAK,XAY,cnm,j$,Lf,lL,qjK,W7,GT,xw,zHb,RHb,vz7,Z_v,WTK,i_u,Fy,Jm,Ciu,Npf,wAx,MZu,TT,yN,sQ,B7,Am,eHK,gk,pf,UQ,diI,Jxu,yxK,sVU,kw,P7,FTO,S$,EQ,hm,H7,oS,Dq,bL,nzu,miu,tm,OQ,Xy,Ui2,BpO,IS,rk,pPf,k22,uL,Piu,Mc,V3f,wk,zg,SHx,Ny,vv,Ezb,Cw,H_I,ozY,Y4,iC,Kw,b_v,aG,lC,Gg,t3v,eA,Lw,Wv,O__,Ja,Iiu,yh,XPb,jA,Qh,Di7,x4,fw,rxm,u1_,cxY,dg,qHu,sE,Tg,FF,nw,M37,$4,mM,UE,Bv,wPu,NK7,Aa,gg,pw, k4,Pv,zl_,Vh,SA,vx7,Cru,EE,ha,Hv,Y0I,ZNI,oG,iN7,je7,ajY,DO,Qex,Lpf,Kpb,ljK,Wp7,bC,ta,OE,IG,GS2,xab,rg,elf,uC,cv,JCK,yCK,qy,fjK,daO,nxx,maI,seu,TK2,FpK,wg,NX,zK,vc,$a_,UaK,BKv,ACI,Cr,kSf,ZC,Vxu,Exb,S02,ay,j7,HNU,oxK,Da_,bNI,Q3,txf,Kr,lz,ONI,XEu,rCu,GK,y3,Mxu,KTx,ff,NrK,zTf,vcu,RTK,CEY,e$,xF,sg,TK,igO,job,aoI,Fn,lof,QoY,LWm,GYu,xQ2,nr,eTK,WW_,JN7,mr,$F,Ug,yNI,fob,Bc,AI,dQU,gB,sou,pr,fr,S7,Tr2,liU,YHx,Eg,hI,oy,DC,bz,tI,Og,Hc,rB,ncf,cc,$Q7,qX,BrK,ANv,UQx,mQu,gcO,pRO,kYf,zx,PEO,Viu,EcY,vi,xiY,RW,HgU,DQY, nf,bgx,tiu,dk,jVu,QVK,LTu,hTu,Zn,Ogm,Iou,Y1,XRu,jP,aW,Q1,Lu,Ku,rN7,lj,Wi,u7O,cNu,Gx,x1,eP,JR,y1,fu,Mix,qwO,dd,wRY,zAm,Tx,v8U,NlK,bj,oW,tR,IW,X2,RAu,Qku,Fu,Dn,q9,WZY,xYu,AR,zf,Bi,v3,ZM,Hi,YN,dYY,iT,jr,sk2,Tlb,FZu,n8m,am,mY2,$Yf,Q5,UYK,kQ2,pDf,Blu,g8I,AQb,LW,PJY,KW,VH7,ScO,hAx,HCm,o87,DY_,XDx,er,JK,cQK,y5,fW,qcI,Nx7,zUK,vuY,RUb,di,C2u,Y9u,i0u,P3,xIU,LIv,KIu,J5u,V5,y5O,dI7,fD2,sg2,Es,om,TxO,Sr,DM,bT,FIu,mIu,BxI,XH,MN,RD,Y6,b07,tku,QO,aD,Ke,lM,O0b,r57,X4U,uY7,Gh,W0,c5U,MkY,w4_,z0x,Jf,NQb,vk2,R0x,fe,dw, ZvK,Im,eM,P2O,nuu,hUx,$6,Le,q9u,G$f,P0,Ce,SM,EY,Jsf,ys7,dsf,f77,Zk,H0,oD,Dk,TQY,bM,tf,Fo7,iM,OY,IDK,Xe,Qa7,Mk,nk_,guv,A57,$IY,N1,$sv,Ru,S3u,VCm,h0U,Hvu,Yy,je,au,iH,L2,K2,okm,lH,bvf,WX,Ovf,JW,tCK,yI,f2,u37,d1,MCu,wkO,Fj,Nqv,R_Y,Se,hW,HX,bH,Csv,tW,Or,uH,cX,q1,M1,ZbK,w1,NO,avU,ze,vO,QJ2,LJY,Rp,KJ7,lv2,WJu,GzK,Cs,ZS,x$U,JG7,jd,ap,Ks,lp,yGv,fvb,WO,Ge,xY,ed,d$u,sJK,Jp,TqU,FJ2,yo,m$u,n07,$$m,fs,Bq_,U$I,AGK,dW,sz,g0K,kzb,PsY,Te,Fq,ns,VvO,E0K,mz,h_7,Uz,Hbu,o0b,$Y,BO,Ap,gW,Obu,XMb,D$_,IvK,rGm,bbU,tvb,u$_,cGY, ps,q_m,wMu,vwY,CLx,Rcb,op,HO,tp,YQf,Oz,Ip,Xq,jSU,rW,aqm,ifv,up,K_m,cO,qO,lqO,MO,ND,W_v,GTu,xcu,ecf,Jm7,z7,ymx,fq2,Qgx,G__,sS2,dcO,F_I,Tk2,nw_,R5,CY,Zm,Yd,mc_,Bk2,Qc,LY,KY,gwI,AmO,ix,p7m,kTu,PL_,SQY,lx,Iqf,J3,yc,w7_,PO,z7I,v47,R7I,CCY,Zwu,dD,YEf,s6,T7,Fc,iwu,$d,jGU,aOu,U6,BK,QGU,LM2,KM2,lOY,WMU,A3,ms,GgY,xyv,gD,Jab,yaf,fOm,pY,dyx,sGb,Tgb,FM2,n4O,myY,$yu,Uyu,Bg_,Aam,kd,pvx,PK,PCm,kgu,SE2,VAu,h7m,h3,g4f,Vc,HK,o5,Dm,bx,t3,O6,Hwu,I5,o4u,rD,IO2,uFm,caO,qE7,MAY,qD,wvK,raI,Ow_,NBK,ux,ze7,ReK,Xc,cK,bwv,tAv, MD,CzU,Zru,XvY,Dyb,Ygf,Ne,irI,zq,vt,jyu,RQ,Lru,aCf,QyI,Cl,Kru,Z$,Yg,j2,aQ,lCI,WrK,GKO,QQ,eev,JIu,Ll,yI_,Kl,lf,fC2,dXY,sy_,TB7,FrY,nFu,AIY,$Xu,Nku,Gq,pc_,kK7,UXU,BBO,mXu,JZ,hev,e2,xg,gFu,oFU,EFu,Sgm,V7u,Pzu,fl,DXm,kY,dj,sM,Tq,brY,FG,t7u,nl,Or7,bp,ICK,mi,Sd,hp,Mvu,Bt,gj,unI,cIf,pl,Pt,AZ,UM,VQ,$g,XcY,rIu,S2,qg2,M7O,E6,E4u,Vo,EM,wcv,kg,Ndu,z1O,v1u,R1U,hZ,Ht,Cjm,ZuO,YuK,iuu,jWu,vFY,ea,D$,bf,oQ,QWY,QS7,L_x,tZ,Ld7,Kdm,lnO,Wdb,OM,x9f,IQ,e1v,yRu,GxO,fnf,sWu,d9O,n1U,XG,ct,U9u,$9f,piU,ARY,kxK,PjI,BdO,g1u,m97, VPI,qe,Su7,h17,E1f,Me,e7u,Huu,o1f,D92,buf,tPI,wj,Ou_,NF,Inv,zs,v8,Xib,R4,rRb,u2U,CR,cRu,quf,MP2,wim,ZU,Ucb,YI,vNO,iB,zvm,RvU,CT2,$c7,a5,ZWu,jmK,YsY,a4,iWu,GfI,WOY,W8,xNO,lMI,yKv,Gs,fMu,dNK,FOO,nNm,$Nf,Tim,UNK,Bi_,AK_,gN_,p3Y,PT7,Vru,SsU,kf2,eh,jh,hv_,sm7,HWO,mN_,Jy,DNu,EN7,xI,bWU,trv,X3u,qsI,rK_,Mrx,cKY,Eq,OWO,yv,w3x,IMm,o4,v6u,CM7,RNu,Ze2,zNu,YY_,iex,hy,jDm,ak_,QDu,LwU,Wwu,lkm,Kw2,DU,Ghx,eNO,Jfu,yfO,fk2,dkO,Oq,Sa,sDb,Twx,n6K,FwI,mkK,Uk_,Bwv,$ku,H8,Tdf,g6I,p0u,khu,o62,SY2,E6b,hNO,DkU,tMK,Hrf,bB,VM7, PMf,be_,DS,HeI,Wt,Ez,uHY,uev,rf7,cfv,qYu,zBO,vyY,xkO,uf,rj,Ikm,RBu,X0O,CHK,Z22,JRu,Nwf,Oex,FdU,r$,uB,i2K,c8,juu,a2m,Quf,xe_,eZO,yZK,f$_,Fif,de7,Tjv,ngK,MF,BjI,$eI,Uef,ptm,kqY,Pfm,w$,V27,qF,SMu,ggu,meI,Nw,Egu,sQY,hZ_,zk,ogm,Hlv,blU,t2K,OlY,Deu,v1,rZK,XtI,qMY,cZu,uGu,M2u,wtu,Rl,N$2,zsu,Rs7,CBu,vIu,ZR7,Q4_,iRU,j4U,aUY,LVK,KVf,lU_,GsI,WV_,xF7,esf,CF,yy7,fUu,s4O,dFf,T$u,Jyx,FVI,mF_,$Fm,B$7,gIm,UFK,Y9,p82,ksx,nII,PBu,AyU,iN,VhI,SqY,EI2,hs2,HR_,oI7,DF7,thY,IU2,X8m,ryv,uTb,cyU,j_,qqU,al,w8v,Nov,lN,v9m,W1, CN7,ZFO,Yt_,iFI,aZ7,jlO,w0u,KP2,MM_,Gk,e_,Ql2,LPU,lZb,yE,Gkx,WPv,xwm,eKY,JS_,dwO,ySK,FPU,fF,fZu,n92,Tk,AS7,mw_,nF,mP,g9b,F6,p1x,$9,V_m,PNI,Uwu,BoO,StY,E9u,hK_,$wf,HFU,Ut,o9f,kk2,RK2,JS,AS,go,bFf,t_K,OFv,IZu,X1x,rSK,u6u,cSm,qtu,pF,M_2,NXK,zwY,v2v,w1u,Rwx,CeI,ZPf,YR2,iPu,j7f,P1,P4Y,a5_,Q7m,VE,LvY,Kv7,Et,GG7,xMI,hS,Jou,yoO,ewO,Wv_,H1,S_,l5I,bN,DZ,f57,tS,ol,Fv7,$Mu,BXO,AoO,phO,s7_,UM2,kGK,TXY,PeY,Vnx,uN,Ot,hw2,HPu,SRO,X6,DM_,bPu,mMb,n22,o2f,tn_,g2f,E2I,dMO,c1,qw,Mw,OPm,wo,qR_,ro_,MnK,uW_,Xhu,whI,I5m, vDu,Nem,NM,RSv,ZL_,iL7,jiI,afO,KEK,CP,lfm,Qim,ro,xrO,eSf,a7,oNx,zG,Jkv,yk_,drY,ffI,si_,GIv,Y2,Teu,FEU,nDf,$rY,mrf,Afu,Z5,Ur2,AkY,Beu,pbY,gD7,YGm,PFK,kIO,ie,vh,VK_,LP,SGu,EDf,hSu,HL2,oDu,QK,LE_,Yr_,Il,DrU,bLu,tKY,OLO,IfI,KP,le,rkf,utm,ckf,XbK,qGI,Wh,z8m,wbu,NcY,vMu,GG,R8v,CVU,Znx,x2,Y$v,jxu,aE2,QxY,en,in2,Jo,yK,L2Y,K2I,sR,fP,dX,lEu,TG,W22,GOu,xBK,Jeu,e82,Bh,fEu,dBK,yeb,sx_,Ao,Tcb,gX,F2U,pP,nM2,mBu,AeO,Bcu,kOx,$Bb,gM7,k2,UBu,p52,PV2,Vfb,S$K,EMY,VK,h8Y,ho,Sn,Hn_,Hh,o7,DBx,bnm,be,to,tfx,D5,OnO,OR,X5K, IEY,XW,rX,ue,ceu,reu,uE2,ch,q$m,zzb,w5u,Mfx,NMI,qM,Rz2,i8I,jf2,wX,abu,MM,Cnx,Z8u,Klb,Nr,zI,lbu,WlO,GdU,xZf,ez2,CL,fb2,dZu,sfm,Zf,yzu,Fl7,Ri,YD,iF,Jzv,jK,niO,mZu,ai,$ZY,UZv,BMU,QG,LL,Azu,giO,pB7,kdI,Pnu,Vuu,S4v,H8_,EiU,oi7,DZv,O8Y,XB2,rz2,IbO,cz7,q4_,Muv,de,N9v,zEu,iVm,Ft,QRY,lau,Kam,La7,ZVb,YBx,vof,REb,jRU,nL,mE,GiY,BX,I7m,xE2,UG,Ak,JH_,eEx,aa7,fab,dEm,sRI,ge,T92,hk,no_,mE2,$EO,B9u,UE2,AHu,Hb,oi,goK,POO,VyI,tk,ki2,SBm,Eox,pmK,Xt,hEu,HV7,Ii,oo7,DE7,bVx,tym,Iam,OV7,uaI,cHf,XmO,My7,wm_,rHb,cb,qr,NtY, R4x,Mr,vTU,z42,C3_,Yhx,Zqu,iqO,we,jFY,aVY,QF2,LhO,Khm,lV2,WhU,x7O,Gju,e42,Jtf,ytK,fVY,d77,Ttb,zO,NB,v5,Fhx,nT2,sFY,AtY,gTv,pIm,VO_,P3u,kjY,ShI,ETf,Rx,Cn,h4f,HqK,oTf,D7x,tOU,Oq7,YM,IV2,ZE,jf,bqI,XIU,rtI,uNu,ctU,qhu,Q9,MOx,wIu,vGI,Ln,RjI,zju,Kn,lV,W5,YXY,CZK,Zd_,jTu,idO,ap7,QTK,KSu,Gru,LSu,lpm,xM,xlY,JA2,yAu,dlU,sTu,ef,Je,TF_,ej2,mlx,nGu,FSm,y9,fn,Ulv,$lf,dc,s$,TO,BFO,FE,AAu,gG_,ppu,nn,krU,m2,PZK,$M,U$,B5,VwY,Ae,SX2,gc,pn,oG2,DlI,EGv,bdf,Odu,Ipv,XpK,twY,uZu,rAu,cAI,wpu,V9,zb_,Nz_,qXu,MwK,vhu,Rb7,Sf, E$,Cob,ZQO,Yeb,iQm,jn_,a62,Lyb,Ky_,f6K,GlO,xSI,l6v,snv,te,Ix,$Sv,USK,uV,c5,Bzb,Tz_,bV,wc,MB,XE,ghU,pxx,NZ,PoK,Seu,Vgx,zd,rc,DE,klu,qB,FyK,A$x,hbf,he,vB,HQ2,ohu,O$,nhI,Rf,C8,DSx,Zb,Yi,ju,bQx,tgK,I6U,XxO,OQv,af,r$7,QA,L8,uLm,c$O,qex,MgY,wxU,N62,vBm,zRm,ln,K8,RR_,ZDY,Cdf,WB,Gd,YO7,jCK,ahm,xi,iDu,QCx,Lxx,KxI,lh_,WxK,GCm,xdK,Jz,yA,Jdu,eRU,ydu,f8,dM,ddu,fhU,sCK,Fxu,T6u,nBv,Td,md2,$dm,n8,Udv,ml,B6K,AdI,gB_,pCu,kC7,VmO,SOm,EBv,PdU,hRf,HDK,oB_,Ddu,bDv,tmY,OD7,Ihu,gM,XCu,rd_,uz7,Mmv,vvb,N7u,qOx,PB,wCb,cd7, zoI,VA,C07,Rou,Su,ZoK,YaI,ioY,Yqf,of,v0u,hz,Db,HB,tz,jUI,aNU,W0u,GwI,xou,O4,eou,JPY,nvm,qZ,mov,F0Y,MZ,NE,zi,Uox,$oO,yPf,vm,B7u,APm,pFb,RR,kw2,P0O,VFu,wM,Evv,SaY,CV,Za,sUu,un,hou,Hou,ovO,Dom,fNm,dou,cB,boK,tF7,Oov,INu,Yo,rPK,MF7,jy,wFU,Nhu,cPu,Qt,zLU,vfO,XFO,RLO,qaI,CAu,LV,aR,ZpO,ip_,Yyx,iO,acv,KV,WEx,QrK,lc_,KY7,Gmf,xC7,WYK,Wm,lO,Jwx,ywu,fcO,dCv,AwI,mCx,$Cb,FYv,kmf,Thb,JH,Sy_,PAY,Ef2,hLU,ey,d9,sB,bpY,DCK,ofu,Fa,BhK,UB,Opx,$o,Ti,XgK,rwv,uxv,pgv,g9,ko,cwU,UCO,tQb,nV,qyf,fV,MQ2,wgY,Nuv,Sy,EB,Icb,zm_, v$K,hH,Hm,Rmf,ma,VQU,CgO,Za_,Y7x,pV,ia_,Bm,jMK,AH,ee,aGu,L8m,oR,Da,K82,lG2,W8_,Vt,Pm,GDu,LYm,xRu,Gi,emu,Jg2,yg2,fGu,bO,tH,Tuu,mR_,URU,sMm,S7f,E$Y,hmu,Ha7,o$I,DRU,bau,OaO,tlu,OB,IR,Xa,IG2,XQ7,rgI,Io,uAO,r9,cgK,uO,q7u,cm,qE,MlK,T2,wQ_,ME,mKY,Xu,Nnb,F3,TUI,mJu,zMm,vk,vOm,$Km,RMu,PR,Vx,Clu,zz,ZBf,YSu,nv,A2_,iBu,jEO,w9,QE2,Lt2,N7,vI,RF,Kt7,GHO,x5_,Cq,eM_,l1m,ylb,Wt_,Jlv,f1u,d52,sEU,Tnx,ZV,nOY,dg2,yu,NY,m5f,$5_,CC,FtK,$U,U5U,Bnm,AlU,i3,ei,zQ,puf,kH_,jO,aF,Plu,Qk,s3,VEm,zj,SSK,EOK,hMx,t0u,Lq,Kq,HB2,l3,WI, oO7,Gj,D5I,xT,eO,bB7,tE7,Jcu,Jt,OBY,I1b,rlm,Xuf,yk,fq,u0O,dt,clf,qS2,ME2,wu7,NIf,znO,Rnb,Tj,vqO,CSf,ZEu,YKf,iEv,LH_,jbm,aeK,Qb2,leu,GvI,x62,enb,WHu,FN,JMm,yMu,feu,d6_,sb_,mh,TIK,$T,Uh,BI,FH2,nqY,$6K,U6v,BIf,AM7,pYU,gqU,kvY,At,gt,SKv,PSm,VXm,pq,EqK,hnI,kT,PI,HEf,Vk,oqu,SO,D67,Eh,ht,bEu,HI,oF,tXI,OE_,DV,b3,Ie2,tt,XYK,rMu,rt,u3,uUx,cMu,qK2,N_r,wYU,cI,zY8,vm8,RYZ,$Jb,MXu,ZOl,Y27,jv9,N_K,Qf;zu=function(N){return function(){return N_K[N].apply(this,arguments)}}; g.Ym=function(N,z){return N_K[N]=z}; zYb=function(N){var z=0;return function(){return z=this.length))return this[N]}; XK=function(N){return N?N:Iv}; luu=function(N,z,v){N instanceof String&&(N=String(N));for(var R=N.length-1;R>=0;R--){var C=N[R];if(z.call(v,C,R,N))return{VG:R,qh:C}}return{VG:-1,qh:void 0}}; r_=function(N){return N?N:function(z,v){return luu(this,z,v).VG}}; g.cU=function(N,z,v){N=N.split(".");v=v||g.u7;for(var R;N.length&&(R=N.shift());)N.length||z===void 0?v[R]&&v[R]!==Object.prototype[R]?v=v[R]:v=v[R]={}:v[R]=z}; w_=function(N,z){var v=g.qx("CLOSURE_FLAGS");N=v&&v[N];return N!=null?N:z}; g.qx=function(N,z){N=N.split(".");z=z||g.u7;for(var v=0;v2){var R=Array.prototype.slice.call(arguments,2);return function(){var C=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(C,R);return N.apply(z,C)}}return function(){return N.apply(z,arguments)}}; g.Zl=function(N,z,v){g.Zl=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?GuU:xxf;return g.Zl.apply(null,arguments)}; g.iW=function(N,z){var v=Array.prototype.slice.call(arguments,1);return function(){var R=v.slice();R.push.apply(R,arguments);return N.apply(this,R)}}; g.jV=function(){return Date.now()}; aw=function(N){return N}; g.Lm=function(N,z){function v(){} v.prototype=z.prototype;N.gi=z.prototype;N.prototype=new v;N.prototype.constructor=N;N.LO=function(R,C,Z){for(var Y=Array(arguments.length-2),Q=2;Q=0;--v)v in R&&z.call(void 0,R[v],v,N)}; g.G1=function(N,z,v){z=W$(N,z,v);return z<0?null:typeof N==="string"?N.charAt(z):N[z]}; W$=function(N,z,v){for(var R=N.length,C=typeof N==="string"?N.split(""):N,Z=0;Z=0;R--)if(R in C&&z.call(v,C[R],R,N))return R;return-1}; g.J8=function(N,z){return FuY(N,z)>=0}; nmK=function(N){if(!Array.isArray(N))for(var z=N.length-1;z>=0;z--)delete N[z];N.length=0}; g.fm=function(N,z){z=FuY(N,z);var v;(v=z>=0)&&g.yU(N,z);return v}; g.yU=function(N,z){return Array.prototype.splice.call(N,z,1).length==1}; g.dE=function(N,z){z=W$(N,z);z>=0&&g.yU(N,z)}; mxf=function(N,z){var v=0;T_v(N,function(R,C){z.call(void 0,R,C,N)&&g.yU(N,C)&&v++})}; g.sZ=function(N){return Array.prototype.concat.apply([],arguments)}; g.T1=function(N){var z=N.length;if(z>0){for(var v=Array(z),R=0;R>>1),L=void 0;v?L=z.call(void 0,N[Q],Q,N):L=z(R,N[Q]);L>0?C=Q+1:(Z=Q,Y=!L)}return Y?C:-C-1}; g.P$=function(N,z){N.sort(z||B$)}; B_v=function(N,z){var v=B$;g.P$(N,function(R,C){return v(z(R),z(C))})}; g.VU=function(N,z,v){if(!g.z1(N)||!g.z1(z)||N.length!=z.length)return!1;var R=N.length;v=v||Abu;for(var C=0;Cz?1:N0&&(z[C]=R)},N); return z}; omY=function(N){N=WZ(N);var z=[];g.Dl(N,function(v,R){R in Object.prototype||typeof v!="undefined"&&z.push([R,":",v].join(""))}); return z}; bOv=function(N){LI(N,"od",Dxu);LI(N,"opac",GM).V=!0;LI(N,"sbeos",GM).V=!0;LI(N,"prf",GM).V=!0;LI(N,"mwt",GM).V=!0;LI(N,"iogeo",GM)}; x_=function(N,z){return N.lastIndexOf(z,0)==0}; tIO=function(N,z){var v=N.length-z.length;return v>=0&&N.indexOf(z,v)==v}; g.ez=function(N){return/^[\s\xa0]*$/.test(N)}; g.yg=function(N,z){return N.indexOf(z)!=-1}; fI=function(N,z){return g.yg(N.toLowerCase(),z.toLowerCase())}; g.nI=function(N,z){var v=0;N=df(String(N)).split(".");z=df(String(z)).split(".");for(var R=Math.max(N.length,z.length),C=0;v==0&&Cz?1:0}; g.mU=function(){var N=g.u7.navigator;return N&&(N=N.userAgent)?N:""}; A0=function(N){if(!$_&&!UN||!BZ)return!1;for(var z=0;z0:!1}; PZ=function(){return pI()?!1:gf("Opera")}; OOO=function(){return pI()?!1:gf("Trident")||gf("MSIE")}; Iuv=function(){return pI()?A0("Microsoft Edge"):gf("Edg/")}; Vg=function(){return gf("Firefox")||gf("FxiOS")}; EN=function(){return gf("Safari")&&!(Sz()||(pI()?0:gf("Coast"))||PZ()||(pI()?0:gf("Edge"))||Iuv()||(pI()?A0("Opera"):gf("OPR"))||Vg()||gf("Silk")||gf("Android"))}; Sz=function(){return pI()?A0("Chromium"):(gf("Chrome")||gf("CriOS"))&&!(pI()?0:gf("Edge"))||gf("Silk")}; XUu=function(){return gf("Android")&&!(Sz()||Vg()||PZ()||gf("Silk"))}; rbx=function(N){var z={};N.forEach(function(v){z[v[0]]=v[1]}); return function(v){return z[v.find(function(R){return R in z})]||""}}; uKb=function(N){var z=g.mU();if(N==="Internet Explorer"){if(OOO())if((N=/rv: *([\d\.]*)/.exec(z))&&N[1])z=N[1];else{N="";var v=/MSIE +([\d\.]+)/.exec(z);if(v&&v[1])if(z=/Trident\/(\d.\d)/.exec(z),v[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":N="8.0";break;case "5.0":N="9.0";break;case "6.0":N="10.0";break;case "7.0":N="11.0"}else N="7.0";else N=v[1];z=N}else z="";return z}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");v=[];for(var C;C=R.exec(z);)v.push([C[1],C[2],C[3]||void 0]); z=rbx(v);switch(N){case "Opera":if(PZ())return z(["Version","Opera"]);if(pI()?A0("Opera"):gf("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if(pI()?0:gf("Edge"))return z(["Edge"]);if(Iuv())return z(["Edg"]);break;case "Chromium":if(Sz())return z(["Chrome","CriOS","HeadlessChrome"])}return N==="Firefox"&&Vg()||N==="Safari"&&EN()||N==="Android Browser"&&XUu()||N==="Silk"&&gf("Silk")?(z=v[2])&&z[1]||"":""}; cbU=function(N){if(pI()&&N!=="Silk"){var z=BZ.brands.find(function(v){return v.brand===N}); if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=uKb(N);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])}; MI7=function(){var N=null;if(!q2v)return N;try{var z=function(v){return v}; N=q2v.createPolicy("goog#html",{createHTML:z,createScript:z,createScriptURL:z})}catch(v){}return N}; HZ=function(){h0===void 0&&(h0=MI7());return h0}; oP=function(N){this.V=N}; DR=function(N){var z=HZ();N=z?z.createScriptURL(N):N;return new oP(N)}; bh=function(N){if(N instanceof oP)return N.V;throw Error("");}; t0=function(N){this.V=N}; g.ON=function(N){if(N instanceof t0)return N.V;throw Error("");}; IP=function(N){this.Y8=N}; rf=function(N){return new IP(function(z){return z.substr(0,N.length+1).toLowerCase()===N+":"})}; g.uh=function(N,z){z=z===void 0?wUY:z;a:if(z=z===void 0?wUY:z,!(N instanceof t0)){for(var v=0;v4);C++)z[lU(N[C])]||(v+="\nInner error "+R++ +": ",N[C].stack&&N[C].stack.indexOf(N[C].toString())==0||(v+=typeof N[C]==="string"?N[C]:N[C].message+"\n"),v+=L9(N[C],z));C")!=-1&&(N=N.replace(L7b,">")),N.indexOf('"')!=-1&&(N=N.replace(K7x,""")),N.indexOf("'")!=-1&&(N=N.replace(ll_,"'")),N.indexOf("\x00")!=-1&&(N=N.replace(W7I,"�")));return N}; g.yp=function(N){return N==null?"":String(N)}; f9=function(N){for(var z=0,v=0;v>>0;return z}; dL=function(N){var z=Number(N);return z==0&&g.ez(N)?NaN:z}; G1u=function(N){return String(N).replace(/\-([a-z])/g,function(z,v){return v.toUpperCase()})}; xPm=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; e9O=function(N){return N.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,v,R){return v+R.toUpperCase()})}; J8f=function(N){var z=1;N=N.split(":");for(var v=[];z>0&&N.length;)v.push(N.shift()),z--;N.length&&v.push(N.join(":"));return v}; sC=function(){return $_||UN?!!BZ&&!!BZ.platform:!1}; y82=function(){return sC()?BZ.platform==="Android":gf("Android")}; T3=function(){return gf("iPhone")&&!gf("iPod")&&!gf("iPad")}; FD=function(){return T3()||gf("iPad")||gf("iPod")}; n9=function(){return sC()?BZ.platform==="macOS":gf("Macintosh")}; flf=function(){return sC()?BZ.platform==="Windows":gf("Windows")}; mf=function(N){mf[" "](N);return N}; dP7=function(N,z){try{return mf(N[z]),!0}catch(v){}return!1}; TEm=function(N,z){var v=swx;return Object.prototype.hasOwnProperty.call(v,N)?v[N]:v[N]=z(N)}; g.$Q=function(N){return TEm(N,function(){return g.nI(F7x,N)>=0})}; g.UC=function(N,z,v){return Math.min(Math.max(N,z),v)}; g.Br=function(N,z){N%=z;return N*z<0?N+z:N}; Aj=function(N,z,v){return N+v*(z-N)}; g.gL=function(N,z){this.x=N!==void 0?N:0;this.y=z!==void 0?z:0}; p9=function(N,z){return N==z?!0:N&&z?N.x==z.x&&N.y==z.y:!1}; g.kQ=function(N,z){this.width=N;this.height=z}; g.Pr=function(N,z){return N==z?!0:N&&z?N.width==z.width&&N.height==z.height:!1}; Vp=function(N){return N.width*N.height}; EC=function(N,z){this.V=N===S8&&z||""}; hj=function(N){if(N instanceof wf)return N;N=String(N).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Nu(N)}; mPm=function(N){return n5f(N)}; n5f=function(N){var z=hj("");return Nu(N.map(function(v){return z3(hj(v))}).join(z3(z).toString()))}; g5K=function(N){var z;if(!$P_.test("div"))throw Error("");if(UPU.indexOf("DIV")!==-1)throw Error("");var v="":(N=mPm(z.map(function(R){return R instanceof wf?R:hj(String(R))})),v+=">"+N.toString()+""); return Nu(v)}; BEu=function(N){for(var z="",v=Object.keys(N),R=0;R2&&Hmu(C,Y,R,2);return Y}; Hmu=function(N,z,v,R){function C(Q){Q&&z.appendChild(typeof Q==="string"?N.createTextNode(Q):Q)} for(;R0)C(Z);else{a:{if(Z&&typeof Z.length=="number"){if(g.v$(Z)){var Y=typeof Z.item=="function"||typeof Z.item=="string";break a}if(typeof Z==="function"){Y=typeof Z.item=="function";break a}}Y=!1}g.h8(Y?g.T1(Z):Z,C)}}}; g.wL=function(N){return qu(document,N)}; qu=function(N,z){z=String(z);N.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return N.createElement(z)}; g.NA=function(N){return document.createTextNode(String(N))}; g.zP=function(N,z){N.appendChild(z)}; g.vV=function(N){for(var z;z=N.firstChild;)N.removeChild(z)}; Rz=function(N,z,v){N.insertBefore(z,N.childNodes[v]||null)}; g.Ct=function(N){return N&&N.parentNode?N.parentNode.removeChild(N):null}; g.ZQ=function(N,z){if(!N||!z)return!1;if(N.contains&&z.nodeType==1)return N==z||N.contains(z);if(typeof N.compareDocumentPosition!="undefined")return N==z||!!(N.compareDocumentPosition(z)&16);for(;z&&N!=z;)z=z.parentNode;return z==N}; oI=function(N){return N.nodeType==9?N:N.ownerDocument||N.document}; g.YS=function(N,z){if("textContent"in N)N.textContent=z;else if(N.nodeType==3)N.data=String(z);else if(N.firstChild&&N.firstChild.nodeType==3){for(;N.lastChild!=N.firstChild;)N.removeChild(N.lastChild);N.firstChild.data=String(z)}else g.vV(N),N.appendChild(oI(N).createTextNode(String(z)))}; DPu=function(N){return N.tagName=="A"&&N.hasAttribute("href")||N.tagName=="INPUT"||N.tagName=="TEXTAREA"||N.tagName=="SELECT"||N.tagName=="BUTTON"?!N.disabled&&(!N.hasAttribute("tabindex")||o52(N)):N.hasAttribute("tabindex")&&o52(N)}; o52=function(N){N=N.tabIndex;return typeof N==="number"&&N>=0&&N<32768}; jY=function(N,z,v){if(!z&&!v)return null;var R=z?String(z).toUpperCase():null;return iK(N,function(C){return(!R||C.nodeName==R)&&(!v||typeof C.className==="string"&&g.J8(C.className.split(/\s+/),v))},!0)}; iK=function(N,z,v){N&&!v&&(N=N.parentNode);for(v=0;N;){if(z(N))return N;N=N.parentNode;v++}return null}; Hr=function(N){this.V=N||g.u7.document||document}; bmK=function(){this.V=this.R9=null}; az=function(){}; Lt=function(){if(!QX())throw Error();}; QX=function(){return!(!Kt||!Kt.performance)}; lK=function(N){return function(){return N}}; g.WV=function(){}; tVY=function(N){var z=z||0;return function(){return N.apply(this,Array.prototype.slice.call(arguments,0,z))}}; GP=function(N){var z=!1,v;return function(){z||(v=N(),z=!0);return v}}; xS=function(N){var z=N;return function(){if(z){var v=z;z=null;v()}}}; eY=function(N,z,v){var R=0;return function(C){g.u7.clearTimeout(R);var Z=arguments;R=g.u7.setTimeout(function(){N.apply(v,Z)},z)}}; J9=function(N){return N?N.passive&&Omm()?N:N.capture||!1:!1}; yX=function(N,z,v,R){return typeof N.addEventListener==="function"?(N.addEventListener(z,v,J9(R)),!0):!1}; ft=function(N){if(N.prerendering)return 3;var z;return(z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[N.visibilityState||N.webkitVisibilityState||N.mozVisibilityState||""])!=null?z:0}; Ilf=function(){}; X$m=function(N){return N}; dS=function(N){N.Dl8=!0;return N}; r8O=function(N){return g.uU?"webkit"+N:N.toLowerCase()}; urf=function(){return($_||UN)&&BZ?BZ.mobile:!sL()&&(gf("iPod")||gf("iPhone")||gf("Android")||gf("IEMobile"))}; sL=function(){return($_||UN)&&BZ?!BZ.mobile&&(gf("iPad")||gf("Android")||gf("Silk")):gf("iPad")||gf("Android")&&!gf("Mobile")||gf("Silk")}; TP=function(N,z,v,R,C,Z,Y){var Q="";N&&(Q+=N+":");v&&(Q+="//",z&&(Q+=z+"@"),Q+=v,R&&(Q+=":"+R));C&&(Q+=C);Z&&(Q+="?"+Z);Y&&(Q+="#"+Y);return Q}; g.Fd=function(N){return N.match(c8u)}; qZO=function(N){return N?decodeURI(N):N}; g.nt=function(N){return qZO(g.Fd(N)[3]||null)}; mR=function(N){return qZO(g.Fd(N)[5]||null)}; g.MVK=function(N){N=g.Fd(N);return TP(N[1],N[2],N[3],N[4])}; UL=function(N){N=g.Fd(N);return TP(null,null,null,null,N[5],N[6],N[7])}; w$u=function(N){var z=N.indexOf("#");return z<0?N:N.slice(0,z)}; BV=function(N,z){if(N){N=N.split("&");for(var v=0;v=0){var Z=N[v].substring(0,R);C=N[v].substring(R+1)}else Z=N[v];z(Z,C?xQ(C):"")}}}; A9=function(N,z){if(!z)return N;var v=N.indexOf("#");v<0&&(v=N.length);var R=N.indexOf("?");if(R<0||R>v){R=v;var C=""}else C=N.substring(R+1,v);N=[N.slice(0,R),C,N.slice(v)];v=N[1];N[1]=z?v?v+"&"+z:z:v;return N[0]+(N[1]?"?"+N[1]:"")+N[2]}; gS=function(N,z,v){if(Array.isArray(z))for(var R=0;R=0&&zv)C=v;R+=z.length+1;return xQ(N.slice(R,C!==-1?C:0))}; SY=function(N,z){for(var v=N.search(Rqm),R=0,C,Z=[];(C=v_u(N,R,z,v))>=0;)Z.push(N.substring(R,C)),R=Math.min(N.indexOf("&",C)+1||v,v);Z.push(N.slice(R));return Z.join("").replace(Chu,"$1")}; ZIU=function(N,z,v){return PV(SY(N,z),z,v)}; EL=function(N){try{return!!N&&N.location.href!=null&&dP7(N,"foo")}catch(z){return!1}}; h9=function(N,z){if(N)for(var v in N)Object.prototype.hasOwnProperty.call(N,v)&&z(N[v],v,N)}; iIO=function(){var N=[];h9(YNU,function(z){N.push(z)}); return N}; jPv=function(N){var z,v;return(v=(z=/https?:\/\/[^\/]+/.exec(N))==null?void 0:z[0])!=null?v:""}; LU_=function(){var N=aRu("IFRAME"),z={};g.h8(QPu(),function(v){N.sandbox&&N.sandbox.supports&&N.sandbox.supports(v)&&(z[v]=!0)}); return z}; aRu=function(N,z){z=z===void 0?document:z;return z.createElement(String(N).toLowerCase())}; KUv=function(N){for(var z=N;N&&N!=N.parent;)N=N.parent,EL(N)&&(z=N);return z}; x8f=function(N){N=N||HV();for(var z=new lRv(g.u7.location.href,!1),v=null,R=N.length-1,C=R;C>=0;--C){var Z=N[C];!v&&WUU.test(Z.url)&&(v=Z);if(Z.url&&!Z.V){z=Z;break}}C=null;Z=N.length&&N[R].url;z.depth!==0&&Z&&(C=N[R]);return new GMO(z,C,v)}; HV=function(){var N=g.u7,z=[],v=null;do{var R=N;if(EL(R)){var C=R.location.href;v=R.document&&R.document.referrer||null}else C=v,v=null;z.push(new lRv(C||""));try{N=R.parent}catch(Z){N=null}}while(N&&R!==N);R=0;for(N=z.length-1;R<=N;++R)z[R].depth=N-R;R=g.u7;if(R.location&&R.location.ancestorOrigins&&R.location.ancestorOrigins.length===z.length-1)for(N=1;Nz&&(z=v.length);return 3997-z-N.Z.length-1}; t9=function(N,z){this.V=N;this.depth=z}; fRm=function(){function N(Q,L){return Q==null?L:Q} var z=HV(),v=Math.max(z.length-1,0),R=x8f(z);z=R.V;var C=R.W,Z=R.Z,Y=[];Z&&Y.push(new t9([Z.url,Z.V?2:0],N(Z.depth,1)));C&&C!=Z&&Y.push(new t9([C.url,2],0));z.url&&z!=Z&&Y.push(new t9([z.url,0],N(z.depth,v)));R=g.OL(Y,function(Q,L){return Y.slice(0,Y.length-L)}); !z.url||(Z||C)&&z!=Z||(C=jPv(z.url))&&R.push([new t9([C,1],N(z.depth,v))]);R.push([]);return g.OL(R,function(Q){return y0K(v,Q)})}; y0K=function(N,z){g.Iz(z,function(C){return C.depth>=0}); var v=Xd(z,function(C,Z){return Math.max(C,Z.depth)},-1),R=gmm(v+2); R[0]=N;g.h8(z,function(C){return R[C.depth+1]=C.V}); return R}; d8b=function(){var N=N===void 0?fRm():N;return N.map(function(z){return bK(z)})}; sPm=function(N){var z=!1;z=z===void 0?!1:z;Kt.google_image_requests||(Kt.google_image_requests=[]);var v=aRu("IMG",Kt.document);z&&(v.attributionSrc="");v.src=N;Kt.google_image_requests.push(v)}; rS=function(N){var z="zl";if(N.zl&&N.hasOwnProperty(z))return N.zl;var v=new N;N.zl=v;N.hasOwnProperty(z);return v}; uK=function(){this.W=new Ilf;this.V=QX()?new Lt:new az}; Tfv=function(){cV();var N=Kt.document;return!!(N&&N.body&&N.body.getBoundingClientRect&&typeof Kt.setInterval==="function"&&typeof Kt.clearInterval==="function"&&typeof Kt.setTimeout==="function"&&typeof Kt.clearTimeout==="function")}; FUf=function(){cV();return d8b()}; n_f=function(){}; cV=function(){var N=rS(n_f);if(!N.V){if(!Kt)throw Error("Context has not been set and window is undefined.");N.V=rS(uK)}return N.V}; qA=function(N){return(N&192)!==128}; MA=function(){throw Error("Invalid UTF8");}; m8O=function(N,z){z=String.fromCharCode.apply(null,z);return N==null?z:N+z}; A0f=function(N){var z=!1;z=z===void 0?!1:z;if($87){if(z&&(U8U?!N.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(N)))throw Error("Found an unpaired surrogate");N=(Bfm||(Bfm=new TextEncoder)).encode(N)}else{for(var v=0,R=new Uint8Array(3*N.length),C=0;C>6|192;else{if(Z>=55296&&Z<=57343){if(Z<=56319&&C=56320&&Y<=57343){Z=(Z-55296)*1024+ Y-56320+65536;R[v++]=Z>>18|240;R[v++]=Z>>12&63|128;R[v++]=Z>>6&63|128;R[v++]=Z&63|128;continue}else C--}if(z)throw Error("Found an unpaired surrogate");Z=65533}R[v++]=Z>>12|224;R[v++]=Z>>6&63|128}R[v++]=Z&63|128}}N=v===R.length?R:R.subarray(0,v)}return N}; wS=function(N){g.u7.setTimeout(function(){throw N;},0)}; g_K=function(N){return Array.prototype.map.call(N,function(z){z=z.toString(16);return z.length>1?z:"0"+z}).join("")}; pZ2=function(N){for(var z=[],v=0;v>6|192:((C&64512)==55296&&R+1>18|240,z[v++]=C>>12&63|128):z[v++]=C>>12|224,z[v++]=C>>6&63|128),z[v++]=C&63|128)}return z}; g.zV=function(N,z){z===void 0&&(z=0);kMY();z=Phf[z];for(var v=Array(Math.floor(N.length/3)),R=z[64]||"",C=0,Z=0;C>2];Y=z[(Y&3)<<4|Q>>4];Q=z[(Q&15)<<2|L>>6];L=z[L&63];v[Z++]=""+K+Y+Q+L}K=0;L=R;switch(N.length-C){case 2:K=N[C+1],L=z[(K&15)<<2]||R;case 1:N=N[C],v[Z]=""+z[N>>2]+z[(N&3)<<4|K>>4]+L+R}return v.join("")}; g.vJ=function(N,z){if(Vzu&&!z)N=g.u7.btoa(N);else{for(var v=[],R=0,C=0;C255&&(v[R++]=Z&255,Z>>=8);v[R++]=Z}N=g.zV(v,z)}return N}; E_I=function(N){var z=[];SN7(N,function(v){z.push(v)}); return z}; R1=function(N){var z=N.length,v=z*3/4;v%3?v=Math.floor(v):g.yg("=.",N[z-1])&&(v=g.yg("=.",N[z-2])?v-2:v-1);var R=new Uint8Array(v),C=0;SN7(N,function(Z){R[C++]=Z}); return C!==v?R.subarray(0,C):R}; SN7=function(N,z){function v(L){for(;R>4);Y!=64&&(z(Z<<4&240|Y>>2),Q!=64&&z(Y<<6&192|Q))}}; kMY=function(){if(!CU){CU={};for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],v=0;v<5;v++){var R=N.concat(z[v].split(""));Phf[v]=R;for(var C=0;C=z||(R[N]=v+1,N=Error(),YZu(N,"incident"),wS(N))}}; LU=function(N,z,v){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(v===void 0?0:v)&&Symbol.for&&N?Symbol.for(N):N!=null?Symbol(N):Symbol():z}; WJ=function(N,z){KU||lw in N||u_O(N,c0u);N[lw]|=z}; GV=function(N,z){KU||lw in N||u_O(N,c0u);N[lw]=z}; xb=function(N){N[lw]&=-3}; JD=function(N,z){return z===void 0?N.V!==eL&&!!(2&(N.Wb[lw]|0)):!!(2&z)&&N.V!==eL}; qNU=function(N,z){if(N!=null)if(typeof N==="string")N=N?new Zs(N,Yb):iw();else if(N.constructor!==Zs)if(IRu&&N!=null&&N instanceof Uint8Array)N=N.length?new Zs(new Uint8Array(N),Yb):iw();else{if(!z)throw Error();N=void 0}return N}; yF=function(N,z){if(typeof z!=="number"||z<0||z>=N.length)throw Error();}; Mzb=function(N,z,v){z=z&128?0:-1;var R=N.length,C;if(C=!!R)C=N[R-1],C=C!=null&&typeof C==="object"&&C.constructor===Object;for(var Z=R+(C?-1:0),Y=0;Yz.length)return!1;if(N.lengthC)return!1;if(R>>0;nU=z;mD=(N-z)/4294967296>>>0}; BJ=function(N){if(N<0){$b(0-N);var z=g.f(UW(nU,mD));N=z.next().value;z=z.next().value;nU=N>>>0;mD=z>>>0}else $b(N)}; gG=function(N,z){var v=z*4294967296+(N>>>0);return Number.isSafeInteger(v)?v:AD(N,z)}; Rfv=function(N,z){var v=z&2147483648;v&&(N=~N+1>>>0,z=~z>>>0,N==0&&(z=z+1>>>0));N=gG(N,z);return typeof N==="number"?v?-N:N:v?"-"+N:N}; AD=function(N,z){z>>>=0;N>>>=0;if(z<=2097151)var v=""+(4294967296*z+N);else sW()?v=""+(BigInt(z)<>>24|z<<8)&16777215,z=z>>16&65535,N=(N&16777215)+v*6777216+z*6710656,v+=z*8147497,z*=2,N>=1E7&&(v+=N/1E7>>>0,N%=1E7),v>=1E7&&(z+=v/1E7>>>0,v%=1E7),v=z+CUm(v)+CUm(N));return v}; CUm=function(N){N=String(N);return"0000000".slice(N.length)+N}; Z9u=function(){var N=nU,z=mD;z&2147483648?sW()?N=""+(BigInt(z|0)<>>0)):(z=g.f(UW(N,z)),N=z.next().value,z=z.next().value,N="-"+AD(N,z)):N=AD(N,z);return N}; pU=function(N){if(N.length<16)BJ(Number(N));else if(sW())N=BigInt(N),nU=Number(N&BigInt(4294967295))>>>0,mD=Number(N>>BigInt(32)&BigInt(4294967295));else{var z=+(N[0]==="-");mD=nU=0;for(var v=N.length,R=0+z,C=(v-z)%6+z;C<=v;R=C,C+=6)R=Number(N.slice(R,C)),mD*=1E6,nU=nU*1E6+R,nU>=4294967296&&(mD+=Math.trunc(nU/4294967296),mD>>>=0,nU>>>=0);z&&(z=g.f(UW(nU,mD)),N=z.next().value,z=z.next().value,nU=N,mD=z)}}; UW=function(N,z){z=~z;N?N=~N+1:z+=1;return[N,z]}; kb=function(N){return Array.prototype.slice.call(N)}; PJ=function(N){if(N!=null&&typeof N!=="number")throw Error("Value of float/double field must be a number, found "+typeof N+": "+N);return N}; YC2=function(N){return N.displayName||N.name||"unknown type name"}; VF=function(N){if(N!=null&&typeof N!=="boolean")throw Error("Expected boolean but got "+NP(N)+": "+N);return N}; EW=function(N){switch(typeof N){case "bigint":return!0;case "number":return SL(N);case "string":return i97.test(N);default:return!1}}; jIf=function(N){if(typeof N!=="number")throw QF("int32");if(!SL(N))throw QF("int32");return N|0}; hD=function(N){return N==null?N:jIf(N)}; HJ=function(N){if(N==null)return N;if(typeof N==="string"&&N)N=+N;else if(typeof N!=="number")return;return SL(N)?N|0:void 0}; o1=function(N){if(N==null)return N;if(typeof N==="string"&&N)N=+N;else if(typeof N!=="number")return;return SL(N)?N>>>0:void 0}; Lf7=function(N){var z=0;z=z===void 0?0:z;if(!EW(N))throw QF("int64");var v=typeof N;switch(z){case 512:switch(v){case "string":return Ds(N);case "bigint":return String(bw(64,N));default:return tD(N)}case 1024:switch(v){case "string":return aBu(N);case "bigint":return Fv(bw(64,N));default:return QIu(N)}case 0:switch(v){case "string":return Ds(N);case "bigint":return Fv(bw(64,N));default:return OW(N)}default:return M8(z,"Unknown format requested type for int64")}}; I1=function(N){return N==null?N:Lf7(N)}; KfY=function(N){if(N[0]==="-")return!1;var z=N.length;return z<20?!0:z===20&&Number(N.substring(0,6))<184467}; lB_=function(N){var z=N.length;return N[0]==="-"?z<20?!0:z===20&&Number(N.substring(0,7))>-922337:z<19?!0:z===19&&Number(N.substring(0,6))<922337}; Wfu=function(N){if(N<0){BJ(N);var z=AD(nU,mD);N=Number(z);return Xv(N)?N:z}z=String(N);if(KfY(z))return z;BJ(N);return gG(nU,mD)}; G3v=function(N){if(lB_(N))return N;pU(N);return Z9u()}; OW=function(N){EW(N);N=rG(N);Xv(N)||(BJ(N),N=Rfv(nU,mD));return N}; tD=function(N){EW(N);N=rG(N);if(Xv(N))N=String(N);else{var z=String(N);lB_(z)?N=z:(BJ(N),N=Z9u())}return N}; Ds=function(N){EW(N);var z=rG(Number(N));if(Xv(z))return String(z);z=N.indexOf(".");z!==-1&&(N=N.substring(0,z));return G3v(N)}; aBu=function(N){var z=rG(Number(N));if(Xv(z))return Fv(z);z=N.indexOf(".");z!==-1&&(N=N.substring(0,z));return sW()?Fv(bw(64,BigInt(N))):Fv(G3v(N))}; QIu=function(N){return Xv(N)?Fv(OW(N)):Fv(tD(N))}; xux=function(N){if(N==null)return N;var z=typeof N;if(z==="bigint")return String(bw(64,N));if(EW(N)){if(z==="string")return Ds(N);if(z==="number")return OW(N)}}; Jjm=function(N){if(N==null)return N;var z=typeof N;if(z==="bigint")return String(efb(64,N));if(EW(N)){if(z==="string")return EW(N),z=rG(Number(N)),Xv(z)&&z>=0?N=String(z):(z=N.indexOf("."),z!==-1&&(N=N.substring(0,z)),KfY(N)||(pU(N),N=AD(nU,mD))),N;if(z==="number")return EW(N),N=rG(N),N>=0&&Xv(N)?N:Wfu(N)}}; yjf=function(N){if(N==null||typeof N=="string"||N instanceof Zs)return N}; fBI=function(N){if(typeof N!=="string")throw Error();return N}; uw=function(N){if(N!=null&&typeof N!=="string")throw Error();return N}; cJ=function(N){return N==null||typeof N==="string"?N:void 0}; qG=function(N,z){if(!(N instanceof z))throw Error("Expected instanceof "+YC2(z)+" but got "+(N&&YC2(N.constructor)));return N}; du7=function(N,z,v){if(N!=null&&typeof N==="object"&&N[MG]===wG)return N;if(Array.isArray(N)){var R=N[lw]|0;v=R|v&32|v&2;v!==R&&GV(N,v);return new z(N)}}; Nb=function(N){return N}; vG=function(N){var z=aw(z0);return z?N[z]:void 0}; Rd=function(){}; Cy=function(N,z){for(var v in N)!isNaN(v)&&z(N,+v,N[v])}; sIY=function(N){var z=new Rd;Cy(N,function(v,R,C){z[R]=kb(C)}); z.V=N.V;return z}; YR=function(N,z,v,R,C){R=R===void 0?!1:R;C=C===void 0?!1:C;var Z=[],Y=N.length,Q=4294967295,L=!1,K=!!(z&64),l=K?z&128?0:-1:void 0;if(!(z&1)){var W=Y&&N[Y-1];W!=null&&typeof W==="object"&&W.constructor===Object?(Y--,Q=Y):W=void 0;if(K&&!(z&128)&&!C){L=!0;var G;Q=((G=ZW)!=null?G:Nb)(Q-l,l,N,W)+l}}G=void 0;for(var x=0;x=Q){var d=x-l,T=void 0;((T=G)!=null?T:G={})[d]=e}else Z[x]=e}if(W)for(var m in W)Y=W[m],Y!=null&&(Y=v(Y,R))!=null&&(x=+m,e=void 0, K&&!Number.isNaN(x)&&(e=x+l)0?void 0:N===0?muv||(muv=[0,void 0]):[-N,void 0];case "string":return[0,N];case "object":return N}}; lY=function(N,z,v){N=Ky(N,z[0],z[1],v?1:2);z!==Q2&&v&&WJ(N,2048);return N}; Ky=function(N,z,v,R){R=R===void 0?0:R;if(N==null){var C=32;v?(N=[v],C|=128):N=[];z&&(C=C&-16760833|(z&1023)<<14)}else{if(!Array.isArray(N))throw Error("narr");C=N[lw]|0;4096&C&&!(2&C)&&UuK();if(C&256)throw Error("farr");if(C&64)return R!==0||C&4096||GV(N,C|4096),N;if(v&&(C|=128,v!==N[0]))throw Error("mid");a:{v=N;C|=64;var Z=v.length;if(Z){var Y=Z-1,Q=v[Y];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object){z=C&128?0:-1;Y-=z;if(Y>=1024)throw Error("pvtlmt");for(var L in Q)Z=+L,Z1024)throw Error("spvt");C=C&-16760833|(L&1023)<<14}}}C|=64;R===0&&(C|=4096);GV(N,C);return N}; UuK=function(){r0m(BLU,5)}; AjY=function(N,z){if(typeof N!=="object")return N;if(Array.isArray(N)){var v=N[lw]|0;N.length===0&&v&1?N=void 0:v&2||(!z||8192&v||16&v?N=WG(N,v,z&&!(v&16)):(WJ(N,34),v&4&&Object.freeze(N)));return N}if(N[MG]===wG)return z=N.Wb,v=z[lw]|0,JD(N,v)?N:WG(z,v);if(N instanceof Zs)return N}; WG=function(N,z,v){v!=null||(v=!!(34&z));return YR(N,z,AjY,v,!0)}; G0=function(N){var z=N.Wb,v=z[lw]|0;if(!JD(N,v))return N;N=new N.constructor(WG(z,v));xb(N.Wb);return N}; xR=function(N){if(N.V!==eL)return!1;var z=N.Wb;z=WG(z,z[lw]|0);xb(z);N.Wb=z;N.V=void 0;return!0}; e9=function(N){if(!xR(N)&&JD(N,N.Wb[lw]|0))throw Error();}; y2=function(N,z,v){Object.isExtensible(N);return JE(N.Wb,z,v)}; JE=function(N,z,v,R){if(z===-1)return null;var C=z+(v?0:-1),Z=N.length-1;if(!(Z<1+(v?0:-1))){if(C>=Z){var Y=N[Z];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){v=Y[z];var Q=!0}else if(C===Z)v=Y;else return}else v=N[C];if(R&&v!=null){R=R(v);if(R==null)return R;if(!Object.is(R,v))return Q?Y[z]=R:N[C]=R,R}return v}}; d4=function(N,z,v,R){e9(N);var C=N.Wb;fy(C,C[lw]|0,z,v,R);return N}; fy=function(N,z,v,R,C){var Z=v+(C?0:-1),Y=N.length-1;if(Y>=1+(C?0:-1)&&Z>=Y){var Q=N[Y];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object)return Q[v]=R,z}if(Z<=Y)return N[Z]=R,z;if(R!==void 0){var L;Y=((L=z)!=null?L:z=N[lw]|0)>>14&1023||536870912;v>=Y?R!=null&&(Z={},N[Y+(C?0:-1)]=(Z[v]=R,Z)):N[Z]=R}return z}; mg=function(N,z,v,R,C){var Z=N.Wb,Y=Z[lw]|0;R=JD(N,Y)?1:R;C=!!C||R===3;R===2&&xR(N)&&(Z=N.Wb,Y=Z[lw]|0);N=sk(Z,z);var Q=N===T0?7:N[lw]|0,L=FB(Q,Y);var K=4&L?!1:!0;if(K){4&L&&(N=kb(N),Q=0,L=ny(L,Y),Y=fy(Z,Y,z,N));for(var l=0,W=0;l "+N)}; vo=function(N,z,v){this.buffer=N;if(v&&!z)throw Error();this.V=z}; RL=function(N,z){if(typeof N==="string")return new vo(bII(N),z);if(Array.isArray(N))return new vo(new Uint8Array(N),z);if(N.constructor===Uint8Array)return new vo(N,!1);if(N.constructor===ArrayBuffer)return N=new Uint8Array(N),new vo(N,!1);if(N.constructor===Zs)return z=jL(N)||new Uint8Array(0),new vo(z,!0,N);if(N instanceof Uint8Array)return N=N.constructor===Uint8Array?N:new Uint8Array(N.buffer,N.byteOffset,N.byteLength),new vo(N,!1);throw Error();}; b9m=function(N,z,v,R){this.W=null;this.B=!1;this.V=this.Z=this.N=0;this.init(N,z,v,R)}; Zg=function(N){var z=0,v=0,R=0,C=N.W,Z=N.V;do{var Y=C[Z++];z|=(Y&127)<32&&(v|=(Y&127)>>4);for(R=3;R<32&&Y&128;R+=7)Y=C[Z++],v|=(Y&127)<>>0,v>>>0);throw zN();}; C4=function(N,z){N.V=z;if(z>N.Z)throw DuK(N.Z,z);}; Yn=function(N){var z=N.W,v=N.V,R=z[v++],C=R&127;if(R&128&&(R=z[v++],C|=(R&127)<<7,R&128&&(R=z[v++],C|=(R&127)<<14,R&128&&(R=z[v++],C|=(R&127)<<21,R&128&&(R=z[v++],C|=R<<28,R&128&&z[v++]&128&&z[v++]&128&&z[v++]&128&&z[v++]&128&&z[v++]&128)))))throw zN();C4(N,v);return C}; i8=function(N){var z=N.W,v=N.V,R=z[v+0],C=z[v+1],Z=z[v+2];z=z[v+3];C4(N,N.V+4);return(R<<0|C<<8|Z<<16|z<<24)>>>0}; jp=function(N){var z=i8(N);N=i8(N);return gG(z,N)}; aL=function(N){var z=i8(N),v=i8(N);N=(v>>31)*2+1;var R=v>>>20&2047;z=4294967296*(v&1048575)+z;return R==2047?z?NaN:N*Infinity:R==0?N*4.9E-324*z:N*Math.pow(2,R-1075)*(z+4503599627370496)}; QL=function(N){for(var z=0,v=N.V,R=v+10,C=N.W;vN.Z)throw DuK(z,N.Z-v);N.V=R;return v}; IBx=function(N,z){if(z==0)return iw();var v=t8K(N,z);N.Jj&&N.B?v=N.W.subarray(v,v+z):(N=N.W,z=v+z,v=v===z?new Uint8Array(0):O9f?N.slice(v,z):new Uint8Array(N.subarray(v,z)));return v.length==0?iw():new Zs(v,Yb)}; K4=function(N,z,v,R){if(L4.length){var C=L4.pop();C.init(N,z,v,R);N=C}else N=new b9m(N,z,v,R);this.V=N;this.Z=this.V.V;this.W=this.N=-1;Xrv(this,R)}; Xrv=function(N,z){z=z===void 0?{}:z;N.Gf=z.Gf===void 0?!1:z.Gf}; rjf=function(N,z,v,R){if(l8.length){var C=l8.pop();Xrv(C,R);C.V.init(N,z,v,R);return C}return new K4(N,z,v,R)}; uD7=function(N){var z=N.V;if(z.V==z.Z)return!1;N.Z=N.V.V;var v=Yn(N.V)>>>0;z=v>>>3;v&=7;if(!(v>=0&&v<=5))throw oQm(v,N.Z);if(z<1)throw Error("Invalid field number: "+z+" (at position "+N.Z+")");N.N=z;N.W=v;return!0}; Wo=function(N){switch(N.W){case 0:N.W!=0?Wo(N):QL(N.V);break;case 1:N=N.V;C4(N,N.V+8);break;case 2:if(N.W!=2)Wo(N);else{var z=Yn(N.V)>>>0;N=N.V;C4(N,N.V+z)}break;case 5:N=N.V;C4(N,N.V+4);break;case 3:z=N.N;do{if(!uD7(N))throw Error("Unmatched start-group tag: stream EOF");if(N.W==4){if(N.N!=z)throw Error("Unmatched end-group tag");break}Wo(N)}while(1);break;default:throw oQm(N.W,N.Z);}}; GN=function(N,z,v){var R=N.V.Z,C=Yn(N.V)>>>0,Z=N.V.V+C,Y=Z-R;Y<=0&&(N.V.Z=Z,v(z,N,void 0,void 0,void 0),Y=Z-N.V.V);if(Y)throw Error("Message parsing ended unexpectedly. Expected to read "+(C+" bytes, instead read "+(C-Y)+" bytes, either the data ended unexpectedly or the message misreported its own length"));N.V.V=Z;N.V.Z=R}; JO=function(N){var z=Yn(N.V)>>>0;N=N.V;var v=t8K(N,z);N=N.W;if(cj7){var R=N,C;(C=xn)||(C=xn=new TextDecoder("utf-8",{fatal:!0}));z=v+z;R=v===0&&z===R.length?R:R.subarray(v,z);try{var Z=C.decode(R)}catch(K){if(ep===void 0){try{C.decode(new Uint8Array([128]))}catch(l){}try{C.decode(new Uint8Array([97])),ep=!0}catch(l){ep=!1}}!ep&&(xn=void 0);throw K;}}else{Z=v;z=Z+z;v=[];for(var Y=null,Q,L;Z=z?MA():(L=N[Z++],Q<194||qA(L)?(Z--,MA()):v.push((Q&31)<<6|L&63)):Q<240? Z>=z-1?MA():(L=N[Z++],qA(L)||Q===224&&L<160||Q===237&&L>=160||qA(C=N[Z++])?(Z--,MA()):v.push((Q&15)<<12|(L&63)<<6|C&63)):Q<=244?Z>=z-2?MA():(L=N[Z++],qA(L)||(Q<<28)+(L-144)>>30!==0||qA(C=N[Z++])||qA(R=N[Z++])?(Z--,MA()):(Q=(Q&7)<<18|(L&63)<<12|(C&63)<<6|R&63,Q-=65536,v.push((Q>>10&1023)+55296,(Q&1023)+56320))):MA(),v.length>=8192&&(Y=m8O(Y,v),v.length=0);Z=m8O(Y,v)}return Z}; qC_=function(N){var z=Yn(N.V)>>>0;return IBx(N.V,z)}; yL=function(N,z,v){this.Wb=Ky(N,z,v)}; M82=function(N,z){if(z==null||z=="")return new N;z=JSON.parse(z);if(!Array.isArray(z))throw Error("dnarr");WJ(z,32);return new N(z)}; f4=function(N,z){this.W=N>>>0;this.V=z>>>0}; NSY=function(N){if(!N)return wru||(wru=new f4(0,0));if(!/^\d+$/.test(N))return null;pU(N);return new f4(nU,mD)}; si=function(N,z){this.W=N>>>0;this.V=z>>>0}; vSO=function(N){if(!N)return zDU||(zDU=new si(0,0));if(!/^-?\d+$/.test(N))return null;pU(N);return new si(nU,mD)}; TN=function(){this.V=[]}; Fl=function(N,z,v){for(;v>0||z>127;)N.V.push(z&127|128),z=(z>>>7|v<<25)>>>0,v>>>=7;N.V.push(z)}; n4=function(N,z){for(;z>127;)N.V.push(z&127|128),z>>>=7;N.V.push(z)}; RDf=function(N,z){if(z>=0)n4(N,z);else{for(var v=0;v<9;v++)N.V.push(z&127|128),z>>=7;N.V.push(1)}}; mL=function(N,z){N.V.push(z>>>0&255);N.V.push(z>>>8&255);N.V.push(z>>>16&255);N.V.push(z>>>24&255)}; CKI=function(){this.Z=[];this.W=0;this.V=new TN}; $n=function(N,z){z.length!==0&&(N.Z.push(z),N.W+=z.length)}; ZtU=function(N,z){Ui(N,z,2);z=N.V.end();$n(N,z);z.push(N.W);return z}; YLf=function(N,z){var v=z.pop();for(v=N.W+N.V.length()-v;v>127;)z.push(v&127|128),v>>>=7,N.W++;z.push(v);N.W++}; Ui=function(N,z,v){n4(N.V,z*8+v)}; it7=function(N,z,v){if(v!=null){switch(typeof v){case "string":NSY(v)}Ui(N,z,1);switch(typeof v){case "number":N=N.V;$b(v);mL(N,nU);mL(N,mD);break;case "bigint":v=BigInt.asUintN(64,v);v=new f4(Number(v&BigInt(4294967295)),Number(v>>BigInt(32)));N=N.V;z=v.V;mL(N,v.W);mL(N,z);break;default:v=NSY(v),N=N.V,z=v.V,mL(N,v.W),mL(N,z)}}}; Bo=function(N,z,v){Ui(N,z,2);n4(N.V,v.length);$n(N,N.V.end());$n(N,v)}; AO=function(){function N(){throw Error();} Object.setPrototypeOf(N,N.prototype);return N}; p4=function(N,z,v){this.Za=N;this.Nh=z;N=aw(gT);this.V=!!N&&v===N||!1}; kn=function(N,z){var v=v===void 0?gT:v;return new p4(N,z,v)}; aQu=function(N,z,v,R,C){z=jzU(z,R);z!=null&&(v=ZtU(N,v),C(z,N),YLf(N,v))}; Sp=function(N,z,v,R){var C=R[N];if(C)return C;C={};C.q_=R;C.kS=g.h($uK(R[0]));var Z=R[1],Y=1;Z&&Z.constructor===Object&&(C.extensions=Z,Z=R[++Y],typeof Z==="function"&&(C.Sp=!0,Po!=null||(Po=Z),VL!=null||(VL=R[Y+1]),Z=R[Y+=2]));for(var Q={};Z&&Array.isArray(Z)&&Z.length&&typeof Z[0]==="number"&&Z[0]>0;){for(var L=0;L>BigInt(32)));Fl(N.V,v.W,v.V);break;default:v=vSO(z),Fl(N.V,v.W,v.V)}}}; zp=function(N,z,v){z=HJ(z);z!=null&&z!=null&&(Ui(N,v,0),RDf(N.V,z))}; dAK=function(N,z,v){z=z==null||typeof z==="boolean"?z:typeof z==="number"?!!z:void 0;z!=null&&(Ui(N,v,0),N.V.V.push(z?1:0))}; szu=function(N,z,v){z=cJ(z);z!=null&&Bo(N,v,A0f(z))}; TS2=function(N,z,v,R,C){z=jzU(z,R);z!=null&&(v=ZtU(N,v),C(z,N),YLf(N,v))}; nS_=function(){var N=vH;this.V=FRx;this.isRepeated=0;this.W=HG;this.defaultValue=void 0;this.Z=N.messageId!=null?fU:void 0}; mAu=function(N){return function(){var z=new CKI;J9u(this.Wb,z,Sp(tO,b8,Oi,N));$n(z,z.V.end());for(var v=new Uint8Array(z.W),R=z.Z,C=R.length,Z=0,Y=0;Y-1)return z.apply(null,g.U(v));try{return N.V=N.Z.V.now(),z.apply(null,g.U(v))}finally{N.N+=N.Z.V.now()-N.V,N.V=-1,N.W+=1}}}; UAK=function(N,z){this.W=N;this.Z=z;this.V=new $AO(N)}; BSu=function(){this.V={}}; gS2=function(){var N=im().flags,z=A9u;N=N.V[z.key];if(z.valueType==="proto"){try{var v=JSON.parse(N);if(Array.isArray(v))return v}catch(R){}return z.defaultValue}return typeof N===typeof z.defaultValue?N:z.defaultValue}; VY7=function(){this.Z=void 0;this.W=this.G=0;this.B=-1;this.ZV=new Qg;LI(this.ZV,"mv",pVY).V=!0;LI(this.ZV,"omid",GM);LI(this.ZV,"epoh",GM).V=!0;LI(this.ZV,"epph",GM).V=!0;LI(this.ZV,"umt",GM).V=!0;LI(this.ZV,"phel",GM).V=!0;LI(this.ZV,"phell",GM).V=!0;LI(this.ZV,"oseid",kP_).V=!0;var N=this.ZV;N.V.sloi||(N.V.sloi=new ih);N.V.sloi.V=!0;LI(this.ZV,"mm",jB);LI(this.ZV,"ovms",PKm).V=!0;LI(this.ZV,"xdi",GM).V=!0;LI(this.ZV,"amp",GM).V=!0;LI(this.ZV,"prf",GM).V=!0;LI(this.ZV,"gtx",GM).V=!0;LI(this.ZV, "mvp_lv",GM).V=!0;LI(this.ZV,"ssmol",GM).V=!0;LI(this.ZV,"fmd",GM).V=!0;LI(this.ZV,"gen204simple",GM);this.V=new UAK(cV(),this.ZV);this.N=!1;this.flags=new BSu}; im=function(){return rS(VY7)}; SLf=function(N,z,v,R){if(Math.random()<(R||N.V))try{if(v instanceof oz)var C=v;else C=new oz,h9(v,function(Y,Q){var L=C,K=L.N++;Y=DQ(Q,Y);L.V.push(K);L.W[K]=Y}); var Z=C.IP(N.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+z+"&");Z&&(cV(),sPm(Z))}catch(Y){}}; ESf=function(N,z,v){v=v===void 0?{}:v;this.error=N;this.meta=v;this.context=z.context;this.msg=z.message||"";this.id=z.id||"jserror"}; hDu=function(){var N=N===void 0?g.u7:N;return(N=N.performance)&&N.now&&N.timing?Math.floor(N.now()+N.timing.navigationStart):g.jV()}; HtI=function(){var N=N===void 0?g.u7:N;return(N=N.performance)&&N.now?N.now():null}; oSK=function(N,z,v){this.label=N;this.type=z;this.value=v;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; QC=function(){var N=window;this.events=[];this.W=N||g.u7;var z=null;N&&(N.google_js_reporting_queue=N.google_js_reporting_queue||[],this.events=N.google_js_reporting_queue,z=N.google_measure_js_timing);this.V=aB()||(z!=null?z:Math.random()<1)}; DAu=function(N){N&<&&aB()&&(LT.clearMarks("goog_"+N.label+"_"+N.uniqueId+"_start"),LT.clearMarks("goog_"+N.label+"_"+N.uniqueId+"_end"))}; btu=function(){var N=KT;this.V=lm;this.Ec="jserror";this.sj=!0;this.bC=null;this.W=this.D5;this.SK=N===void 0?null:N}; tYb=function(N,z,v){var R=WH;return Ys(im().V.V,function(){try{if(R.SK&&R.SK.V){var C=R.SK.start(N.toString(),3);var Z=z();R.SK.end(C)}else Z=z()}catch(Q){var Y=R.sj;try{DAu(C),Y=R.W(N,new Gp(xs(Q)),void 0,v)}catch(L){R.D5(217,L)}if(!Y)throw Q;}return Z})()}; eB=function(N,z,v,R){return Ys(im().V.V,function(){var C=g.SI.apply(0,arguments);return tYb(N,function(){return z.apply(v,C)},R)})}; xs=function(N){var z=N.toString();N.name&&z.indexOf(N.name)==-1&&(z+=": "+N.name);N.message&&z.indexOf(N.message)==-1&&(z+=": "+N.message);if(N.stack)a:{N=N.stack;var v=z;try{N.indexOf(v)==-1&&(N=v+"\n"+N);for(var R;N!=R;)R=N,N=N.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");z=N.replace(/\n */g,"\n");break a}catch(C){z=v;break a}z=void 0}return z}; Gp=function(N){ESf.call(this,Error(N),{message:N})}; Otx=function(){Kt&&typeof Kt.google_measure_js_timing!="undefined"&&(Kt.google_measure_js_timing||KT.disable())}; IQu=function(N){WH.bC=function(z){g.h8(N,function(v){v(z)})}}; XVu=function(N,z){return tYb(N,z)}; JJ=function(N,z){return eB(N,z)}; yC=function(N,z,v,R){WH.D5(N,z,v,R)}; fT=function(){return Date.now()-r9u}; udU=function(){var N=im().Z,z=dv>=0?fT()-dv:-1,v=sV?fT()-Tp:-1,R=FM>=0?fT()-FM:-1;if(N==947190542)return 100;if(N==79463069)return 200;N=[2E3,4E3];var C=[250,500,1E3];yC(637,Error(),.001);var Z=z;v!=-1&&v1500&&R<4E3?500:Y}; nT=function(N,z,v,R){this.top=N;this.right=z;this.bottom=v;this.left=R}; mk=function(N){return N.right-N.left}; $s=function(N,z){return N==z?!0:N&&z?N.top==z.top&&N.right==z.right&&N.bottom==z.bottom&&N.left==z.left:!1}; UV=function(N,z,v){var R=new nT(0,0,0,0);this.time=N;this.volume=null;this.Z=z;this.V=R;this.W=v}; BH=function(N,z,v,R,C,Z,Y,Q){this.N=N;this.L=z;this.Z=v;this.G=R;this.V=C;this.B=Z;this.W=Y;this.Y=Q}; qL2=function(N){var z=N!==N.top,v=N.top===KUv(N),R=-1,C=0;if(z&&v&&N.top.mraid){R=3;var Z=N.top.mraid}else R=(Z=N.mraid)?z?v?2:1:0:-1;Z&&(Z.IS_GMA_SDK||(C=2),P72(c9Y,function(Y){return typeof Z[Y]==="function"})||(C=1)); return{kd:Z,compatibility:C,oA0:R}}; MYY=function(){var N=window.document;return N&&typeof N.elementFromPoint==="function"}; wVU=function(N,z,v){if(N&&z!==null&&z!=z.top){if(!z.top)return new g.kQ(-12245933,-12245933);z=z.top}try{return(v===void 0?0:v)?(new g.kQ(z.innerWidth,z.innerHeight)).round():SZ2(z||window).round()}catch(R){return new g.kQ(-12245933,-12245933)}}; pT=function(N,z,v){try{if(N){if(!z.top)return new nT(-12245933,-12245933,-12245933,-12245933);z=z.top}var R=wVU(N,z,v),C=R.height,Z=R.width;if(Z===-12245933)return new nT(Z,Z,Z,Z);var Y=DB(z.document);var Q=h9m(Y.V);var L=Q.x,K=Q.y;return new nT(K,L+Z,K+C,L)}catch(l){return new nT(-12245933,-12245933,-12245933,-12245933)}}; g.ks=function(N,z,v,R){this.left=N;this.top=z;this.width=v;this.height=R}; PH=function(N,z){return N==z?!0:N&&z?N.left==z.left&&N.width==z.width&&N.top==z.top&&N.height==z.height:!1}; g.SB=function(N,z,v){if(typeof z==="string")(z=VC(N,z))&&(N.style[z]=v);else for(var R in z){v=N;var C=z[R],Z=VC(v,R);Z&&(v.style[Z]=C)}}; VC=function(N,z){var v=NG2[z];if(!v){var R=G1u(z);v=R;N.style[R]===void 0&&(R=(g.uU?"Webkit":EV?"Moz":null)+e9O(R),N.style[R]!==void 0&&(v=R));NG2[z]=v}return v}; g.hJ=function(N,z){var v=N.style[G1u(z)];return typeof v!=="undefined"?v:N.style[VC(N,z)]||""}; HH=function(N,z){var v=oI(N);return v.defaultView&&v.defaultView.getComputedStyle&&(N=v.defaultView.getComputedStyle(N,null))?N[z]||N.getPropertyValue(z)||"":""}; oB=function(N,z){return HH(N,z)||(N.currentStyle?N.currentStyle[z]:null)||N.style&&N.style[z]}; g.bm=function(N,z,v){if(z instanceof g.gL){var R=z.x;z=z.y}else R=z,z=v;N.style.left=g.D8(R,!1);N.style.top=g.D8(z,!1)}; tJ=function(N){try{return N.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}}; zyu=function(N){var z=oI(N),v=oB(N,"position"),R=v=="fixed"||v=="absolute";for(N=N.parentNode;N&&N!=z;N=N.parentNode)if(N.nodeType==11&&N.host&&(N=N.host),v=oB(N,"position"),R=R&&v=="static"&&N!=z.documentElement&&N!=z.body,!R&&(N.scrollWidth>N.clientWidth||N.scrollHeight>N.clientHeight||v=="fixed"||v=="absolute"||v=="relative"))return N;return null}; g.OV=function(N){var z=oI(N),v=new g.gL(0,0);if(N==(z?oI(z):document).documentElement)return v;N=tJ(N);z=DB(z);z=h9m(z.V);v.x=N.left+z.x;v.y=N.top+z.y;return v}; Ryb=function(N,z){var v=new g.gL(0,0),R=cr(oI(N));if(!dP7(R,"parent"))return v;do{var C=R==z?g.OV(N):vbb(N);v.x+=C.x;v.y+=C.y}while(R&&R!=z&&R!=R.parent&&(N=R.frameElement)&&(R=R.parent));return v}; g.IB=function(N,z){N=CwI(N);z=CwI(z);return new g.gL(N.x-z.x,N.y-z.y)}; vbb=function(N){N=tJ(N);return new g.gL(N.left,N.top)}; CwI=function(N){if(N.nodeType==1)return vbb(N);N=N.changedTouches?N.changedTouches[0]:N;return new g.gL(N.clientX,N.clientY)}; g.XM=function(N,z,v){if(z instanceof g.kQ)v=z.height,z=z.width;else if(v==void 0)throw Error("missing height argument");N.style.width=g.D8(z,!0);N.style.height=g.D8(v,!0)}; g.D8=function(N,z){typeof N=="number"&&(N=(z?Math.round(N):N)+"px");return N}; g.rv=function(N){var z=ZU_;if(oB(N,"display")!="none")return z(N);var v=N.style,R=v.display,C=v.visibility,Z=v.position;v.visibility="hidden";v.position="absolute";v.display="inline";N=z(N);v.display=R;v.position=Z;v.visibility=C;return N}; ZU_=function(N){var z=N.offsetWidth,v=N.offsetHeight,R=g.uU&&!z&&!v;return(z===void 0||R)&&N.getBoundingClientRect?(N=tJ(N),new g.kQ(N.right-N.left,N.bottom-N.top)):new g.kQ(z,v)}; g.um=function(N,z){N.style.display=z?"":"none"}; cH=function(N,z){z=Math.pow(10,z);return Math.floor(N*z)/z}; YWv=function(N){return new nT(N.top,N.right,N.bottom,N.left)}; iUO=function(N){var z=N.top||0,v=N.left||0;return new nT(z,v+(N.width||0),z+(N.height||0),v)}; qj=function(N){return N!=null&&N>=0&&N<=1}; j1b=function(){var N=g.mU();return N?Mj("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(z){return fI(N,z)})||fI(N,"OMI/")&&!fI(N,"XiaoMi/")?!0:fI(N,"Presto")&&fI(N,"Linux")&&!fI(N,"X11")&&!fI(N,"Android")&&!fI(N,"Mobi"):!1}; asU=function(){this.Z=!EL(Kt.top);this.isMobileDevice=sL()||urf();var N=HV();this.domain=N.length>0&&N[N.length-1]!=null&&N[N.length-1].url!=null?g.nt(N[N.length-1].url)||"":"";this.V=new nT(0,0,0,0);this.N=new g.kQ(0,0);this.B=new g.kQ(0,0);this.L=new nT(0,0,0,0);this.frameOffset=new g.gL(0,0);this.G=0;this.Y=!1;this.W=!(!Kt||!qL2(Kt).kd);this.update(Kt)}; Q12=function(N,z){z&&z.screen&&(N.N=new g.kQ(z.screen.width,z.screen.height))}; LDU=function(N,z){a:{var v=N.V?new g.kQ(mk(N.V),N.V.getHeight()):new g.kQ(0,0);z=z===void 0?Kt:z;z!==null&&z!=z.top&&(z=z.top);var R=0,C=0;try{var Z=z.document,Y=Z.body,Q=Z.documentElement;if(Z.compatMode=="CSS1Compat"&&Q.scrollHeight)R=Q.scrollHeight!=v.height?Q.scrollHeight:Q.offsetHeight,C=Q.scrollWidth!=v.width?Q.scrollWidth:Q.offsetWidth;else{var L=Q.scrollHeight,K=Q.scrollWidth,l=Q.offsetHeight,W=Q.offsetWidth;Q.clientHeight!=l&&(L=Y.scrollHeight,K=Y.scrollWidth,l=Y.offsetHeight,W=Y.offsetWidth); L>v.height?L>l?(R=L,C=K):(R=l,C=W):L0||N.Y)return!0;N=cV().W.isVisible();var z=ft(NW)===0;return N||z}; wv=function(){return rS(asU)}; vT=function(N){this.Z=N;this.W=0;this.V=null}; R6=function(N,z,v){this.Z=N;this.BL=v===void 0?"na":v;this.B=[];this.isInitialized=!1;this.N=new UV(-1,!0,this);this.V=this;this.Y=z;this.qd=this.J=!1;this.Rd="uk";this.K0=!1;this.G=!0}; Cc=function(N,z){g.J8(N.B,z)||(N.B.push(z),z.iP(N.V),z.nE(N.N),z.j5()&&(N.J=!0))}; KDu=function(N){N=N.V;N.t8();N.dn();var z=wv();z.L=pT(!1,N.Z,z.isMobileDevice);LDU(wv(),N.Z);N.N.V=N.uN()}; lsO=function(N){N.J=N.B.length?Mj(N.B,function(z){return z.j5()}):!1}; Kg7=function(N){var z=g.T1(N.B);g.h8(z,function(v){v.nE(N.N)})}; ZH=function(N){var z=g.T1(N.B);g.h8(z,function(v){v.iP(N.V)}); N.V!=N||Kg7(N)}; YK=function(N,z,v,R){this.element=N;this.V=new nT(0,0,0,0);this.Z=null;this.G=new nT(0,0,0,0);this.W=z;this.ZV=v;this.K0=R;this.PL=!1;this.timestamp=-1;this.J=new BH(z.N,this.element,this.V,new nT(0,0,0,0),0,0,fT(),0);this.B=void 0}; lWO=function(N,z){return N.B?new nT(Math.max(z.top+N.B.top,z.top),Math.min(z.left+N.B.right,z.right),Math.min(z.top+N.B.bottom,z.bottom),Math.max(z.left+N.B.left,z.left)):z.clone()}; i_=function(N){this.B=!1;this.V=N;this.N=function(){}}; Wgm=function(N,z,v){this.Z=v===void 0?0:v;this.W=N;this.V=z==null?"":z}; G0f=function(N){switch(Math.trunc(N.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; xbf=function(N,z){return N.Zz.Z?!1:N.Wz.W?!1:typeof N.Vtypeof z.V?!1:N.V0?R[v]-R[v-1]:R[v]})}; fc=function(){this.W=new WT;this.BL=this.tO=0;this.S8=new l_;this.Vp=this.L=-1;this.ET=1E3;this.kJ=new WT([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Rd=this.PL=-1}; dP=function(N,z){return mbY(N.W,z===void 0?!0:z)}; sJ=function(N,z,v,R){var C=C===void 0?!1:C;v=eB(R,v);yX(N,z,v,{capture:C})}; nc=function(N,z){z=FO(z);return z===0?0:FO(N)/z}; FO=function(N){return Math.max(N.bottom-N.top,0)*Math.max(N.right-N.left,0)}; B4I=function(N,z){if(!N||!z)return!1;for(var v=0;N!==null&&v++<100;){if(N===z)return!0;try{if(N=N.parentElement||N){var R=oI(N),C=R&&cr(R),Z=C&&C.frameElement;Z&&(N=Z)}}catch(Y){break}}return!1}; AEx=function(N,z,v){if(!N||!z)return!1;z=N.clone().translate(-z.left,-z.top);N=(z.left+z.right)/2;z=(z.top+z.bottom)/2;EL(window.top)&&window.top&&window.top.document&&(window=window.top);if(!MYY())return!1;N=window.document.elementFromPoint(N,z);if(!N)return!1;z=(z=(z=oI(v))&&z.defaultView&&z.defaultView.frameElement)&&B4I(z,N);var R=N===v;N=!R&&N&&iK(N,function(C){return C===v}); return!(z||R||N)}; gRu=function(N,z,v,R){return wv().Z?!1:mk(N)<=0||N.getHeight()<=0?!0:v&&R?XVu(208,function(){return AEx(N,z,v)}):!1}; mA=function(N,z,v){g.H.call(this);this.position=pGu.clone();this.GT=this.KZ();this.xR=-2;this.timeCreated=Date.now();this.pQ=-1;this.GS=z;this.WN=null;this.GR=!1;this.Yx=null;this.opacity=-1;this.requestSource=v;this.FvS=!1;this.jT=function(){}; this.mL=function(){}; this.qE=new bmK;this.qE.R9=N;this.qE.V=N;this.qM=!1;this.I7={gf:null,kh:null};this.E0=!0;this.U4=null;this.r8=this.BA=!1;im().G++;this.a4=this.Ra();this.CQ=-1;this.uO=null;this.hasCompleted=this.IV=!1;this.ZV=new Qg;bOv(this.ZV);k0f(this);this.requestSource==1?KI(this.ZV,"od",1):KI(this.ZV,"od",0)}; k0f=function(N){N=N.qE.R9;var z;if(z=N&&N.getAttribute)z=/-[a-z]/.test("googleAvInapp")?!1:PYI&&N.dataset?"googleAvInapp"in N.dataset:N.hasAttribute?N.hasAttribute("data-"+xPm()):!!N.getAttribute("data-"+xPm());z&&(wv().W=!0)}; $K=function(N,z){z!=N.r8&&(N.r8=z,N=wv(),z?N.G++:N.G>0&&N.G--)}; V9b=function(N,z){if(N.uO){if(z.getName()===N.uO.getName())return;N.uO.dispose();N.uO=null}z=z.create(N.qE.V,N.ZV,N.j5());if(z=z!=null&&z.observe()?z:null)N.uO=z}; SkO=function(N,z,v){if(!N.WN||N.GS==-1||z.W===-1||N.WN.W===-1)return 0;N=z.W-N.WN.W;return N>v?0:N}; ERu=function(N,z,v){if(N.uO){N.uO.Gq();var R=N.uO.J,C=R.N,Z=C.V;if(R.G!=null){var Y=R.Z;N.Yx=new g.gL(Y.left-Z.left,Y.top-Z.top)}Z=N.MY()?Math.max(R.V,R.B):R.V;Y={};C.volume!==null&&(Y.volume=C.volume);C=N.c_(R);N.WN=R;N.FW(Z,z,v,!1,Y,C,R.Y)}}; hOO=function(N){if(N.GR&&N.U4){var z=lh(N.ZV,"od")==1,v=wv().V,R=N.U4,C=N.uO?N.uO.getName():"ns",Z=N.Yx,Y=new g.kQ(mk(v),v.getHeight());v=N.MY();N={ZUo:C,Yx:Z,qup:Y,MY:v,Xv:N.a4.Xv,iuU:z};if(z=R.W){z.Gq();C=z.J;Z=C.N.V;var Q=Y=null;C.G!=null&&Z&&(Y=C.Z,Y=new g.gL(Y.left-Z.left,Y.top-Z.top),Q=new g.kQ(Z.right-Z.left,Z.bottom-Z.top));C=v?Math.max(C.V,C.B):C.V;v={ZUo:z.getName(),Yx:Y,qup:Q,MY:v,iuU:!1,Xv:C}}else v=null;v&&T4m(R,N,v)}}; HyI=function(N,z,v){z&&(N.jT=z);v&&(N.mL=v)}; g.UJ=function(){}; g.BT=function(N){return{value:N,done:!1}}; oRO=function(){this.N=this.V=this.Z=this.W=this.B=0}; Dbf=function(N){var z={};var v=g.jV()-N.B;z=(z.ptlt=v,z);(v=N.W)&&(z.pnk=v);(v=N.Z)&&(z.pnc=v);(v=N.N)&&(z.pnmm=v);(N=N.V)&&(z.pns=N);return z}; byU=function(){ow.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; AF=function(N){return qj(N.volume)&&N.volume>0}; gP=function(N,z,v,R){v=v===void 0?!0:v;R=R===void 0?function(){return!0}:R; return function(C){var Z=C[N];if(Array.isArray(Z)&&R(C))return t9K(Z,z,v)}}; pc=function(N,z){return function(v){return z(v)?v[N]:void 0}}; OyU=function(N){return function(z){for(var v=0;v0?Z[C-1]+1:0,R+1).reduce(function(Y,Q){return Y+Q},0)})}; IWu=function(){this.W=this.V=""}; XGI=function(){}; PT=function(N,z){var v={};if(N!==void 0)if(z!=null)for(var R in z){var C=z[R];R in Object.prototype||C!=null&&(v[R]=typeof C==="function"?C(N):N[C])}else g.CI(v,N);return Q8(a6(new jN,v))}; rEu=function(){var N={};this.W=(N.vs=[1,0],N.vw=[0,1],N.am=[2,2],N.a=[4,4],N.f=[8,8],N.bm=[16,16],N.b=[32,32],N.avw=[0,64],N.avs=[64,0],N.pv=[256,256],N.gdr=[0,512],N.p=[0,1024],N.r=[0,2048],N.m=[0,4096],N.um=[0,8192],N.ef=[0,16384],N.s=[0,32768],N.pmx=[0,16777216],N.mut=[33554432,33554432],N.umutb=[67108864,67108864],N.tvoff=[134217728,134217728],N);this.V={};for(var z in this.W)this.W[z][1]>0&&(this.V[z]=0);this.Z=0}; V8=function(N,z){var v=N.W[z],R=v[1];N.Z+=v[0];R>0&&N.V[z]==0&&(N.V[z]=1)}; uBb=function(N){var z=g.uW(N.W),v=0,R;for(R in N.V)g.J8(z,R)&&N.V[R]==1&&(v+=N.W[R][1],N.V[R]=2);return v}; cE_=function(N){var z=0,v;for(v in N.V){var R=N.V[v];if(R==1||R==2)z+=N.W[v][1]}return z}; SN=function(){this.V=this.W=0}; EJ=function(){fc.call(this);this.Z=new l_;this.UT=this.J=this.K0=0;this.Y=-1;this.gW=new l_;this.B=new l_;this.V=new WT;this.G=this.N=-1;this.qd=new l_;this.ET=2E3;this.Id=new SN;this.xT=new SN;this.vL=new SN}; hF=function(N,z,v){var R=N.UT;sV||v||N.Y==-1||(R+=z-N.Y);return R}; qk_=function(){this.Z=!1}; HT=function(N,z){this.Z=!1;this.N=N;this.J=z;this.B=0}; DH=function(N,z){HT.call(this,N,z);this.L=[]}; M9u=function(){}; b_=function(){}; tF=function(N,z,v,R){YK.call(this,N,z,v,R)}; OJ=function(N,z,v){YK.call(this,null,N,z,v);this.Y=N.isActive();this.L=0}; I6=function(N){return[N.top,N.left,N.bottom,N.right]}; XO=function(N,z,v,R,C,Z){Z=Z===void 0?new b_:Z;mA.call(this,z,v,R);this.Pt=C;this.Ky=0;this.Ae={};this.SN=new rEu;this.O1={};this.TI="";this.vL=null;this.zE=!1;this.V=[];this.z3=Z.W();this.G=Z.Z();this.N=null;this.Z=-1;this.BL=this.J=void 0;this.Vp=this.qd=0;this.Rd=-1;this.ET=this.xT=!1;this.K0=this.Y=this.W=this.NJ=this.A0=0;new WT;this.Id=this.UT=0;this.S8=-1;this.H2=0;this.L=g.WV;this.PL=[this.KZ()];this.YJ=2;this.U3={};this.U3.pause="p";this.U3.resume="r";this.U3.skip="s";this.U3.mute="m";this.U3.unmute= "um";this.U3.exitfullscreen="ef";this.B=null;this.kJ=this.gW=!1;this.CV=Math.floor(Date.now()/1E3-1704067200);this.tO=0}; rP=function(N){N.hasCompleted=!0;N.H2!=0&&(N.H2=3)}; u_=function(N){return N===void 0?N:Number(N)?cH(N,3):0}; cT=function(N,z){return N.PL[z!=null&&zMath.max(1E4,N.Z/3)?0:z);var v=N.L(N)||{};v=v.currentTime!==void 0?v.currentTime:N.qd;var R=v-N.qd,C=0;R>=0?(N.Vp+=z,N.Id+=Math.max(z-R,0),C=Math.min(R,N.Vp)):N.UT+=Math.abs(R);R!=0&&(N.Vp=0);N.S8==-1&&R>0&&(N.S8=FM>=0?fT()-FM:-1);N.qd=v;return C}; zpb=function(N,z){Mj(N.G,function(v){return v.N==z.N})||N.G.push(z)}; vnY=function(N){var z=eN(N.Zt().V,1);return qW(N,z)}; qW=function(N,z,v){return z>=15E3?!0:N.xT?(v===void 0?0:v)?!0:N.Z>0?z>=N.Z/2:N.Rd>0?z>=N.Rd:!1:!1}; RpI=function(N){var z=cH(N.a4.Xv,2),v=N.SN.Z,R=N.a4,C=cT(N),Z=u_(C.N),Y=u_(C.G),Q=u_(R.volume),L=cH(C.L,2),K=cH(C.Vp,2),l=cH(R.Xv,2),W=cH(C.PL,2),G=cH(C.Rd,2);R=cH(R.Yz,2);var x=N.YZ().clone().round();N=N.uO&&N.uO.Z?(N.uO?N.uO.Z:null).clone().round():null;C=dP(C,!1);return{a9o:z,NA:v,ID:Z,NL:Y,DS:Q,HN:L,K3:K,Xv:l,BN:W,RD:G,Yz:R,position:x,Ve:N,L3:C}}; Z47=function(N,z){C8u(N.V,z,function(){return{a9o:0,NA:void 0,ID:-1,NL:-1,DS:-1,HN:-1,K3:-1,Xv:-1,BN:-1,RD:-1,Yz:-1,position:void 0,Ve:void 0,L3:[]}}); N.V[z]=RpI(N)}; C8u=function(N,z,v){for(var R=N.length;R0?1:0;W.atos= Gc(K.V);W.ssb=Gc(K.kJ,!1);W.amtos=mbY(K.V,!1);W.uac=N.A0;W.vpt=K.Z.V;l=="nio"&&(W.nio=1,W.avms="nio");W.gmm="4";W.gdr=qW(N,K.Z.V,!0)?1:0;W.efpf=N.YJ;if(l=="gsv"||l=="nis")l=N.uO,l.L>0&&(W.nnut=l.L);W.tcm=wGu(N);W.nmt=N.UT;W.bt=N.Id;W.pst=N.S8;W.vpaid=N.J;W.dur=N.Z;W.vmtime=N.qd;W.is=N.SN.Z;N.V.length>=1&&(W.i0=N.V[0].NA,W.a0=[N.V[0].DS],W.c0=[N.V[0].Xv],W.ss0=[N.V[0].Yz],l=N.V[0].position,Z=N.V[0].Ve,W.p0=l?I6(l):void 0,l&&Z&&!$s(Z,l)&&(W.cp0=I6(Z)));N.V.length>=2&&(W.i1=N.V[1].NA,W.a1=NH(N.V[1].ID, N.V[1].DS,N.V[1].NL),W.c1=NH(N.V[1].HN,N.V[1].Xv,N.V[1].K3),W.ss1=NH(N.V[1].BN,N.V[1].Yz,N.V[1].RD),l=N.V[1].position,Z=N.V[1].Ve,W.p1=l?I6(l):void 0,l&&Z&&!$s(Z,l)&&(W.cp1=I6(Z)),W.mtos1=N.V[1].L3);N.V.length>=3&&(W.i2=N.V[2].NA,W.a2=NH(N.V[2].ID,N.V[2].DS,N.V[2].NL),W.c2=NH(N.V[2].HN,N.V[2].Xv,N.V[2].K3),W.ss2=NH(N.V[2].BN,N.V[2].Yz,N.V[2].RD),l=N.V[2].position,Z=N.V[2].Ve,W.p2=l?I6(l):void 0,l&&Z&&!$s(Z,l)&&(W.cp2=I6(Z)),W.mtos2=N.V[2].L3);N.V.length>=4&&(W.i3=N.V[3].NA,W.a3=NH(N.V[3].ID,N.V[3].DS, N.V[3].NL),W.c3=NH(N.V[3].HN,N.V[3].Xv,N.V[3].K3),W.ss3=NH(N.V[3].BN,N.V[3].Yz,N.V[3].RD),l=N.V[3].position,Z=N.V[3].Ve,W.p3=l?I6(l):void 0,l&&Z&&!$s(Z,l)&&(W.cp3=I6(Z)),W.mtos3=N.V[3].L3);W.cs=cE_(N.SN);z&&(W.ic=uBb(N.SN),W.dvpt=K.Z.W,W.dvs=y8(K.W,.5),W.dfvs=y8(K.W,1),W.davs=y8(K.V,.5),W.dafvs=y8(K.V,1),v&&(K.Z.W=0,$bU(K.W),$bU(K.V)),N.Wv()&&(W.dtos=K.K0,W.dav=K.J,W.dtoss=N.Ky+1,v&&(K.K0=0,K.J=0,N.Ky++)),W.dat=K.B.W,W.dft=K.qd.W,v&&(K.B.W=0,K.qd.W=0));W.ps=[Q.B.width,Q.B.height];W.bs=[mk(Q.V),Q.V.getHeight()]; W.scs=[Q.N.width,Q.N.height];W.dom=Q.domain;N.NJ&&(W.vds=N.NJ);if(N.G.length>0||N.z3)z=g.T1(N.G),N.z3&&z.push(N.z3),W.pings=g.OL(z,function(G){return G.toString()}); z=g.OL(g.kK(N.G,function(G){return G.G()}),function(G){return G.getId()}); $xK(z);W.ces=z;N.W&&(W.vmer=N.W);N.Y&&(W.vmmk=N.Y);N.K0&&(W.vmiec=N.K0);W.avms=N.uO?N.uO.getName():"ns";N.uO&&g.CI(W,N.uO.xZ());R?(W.c=cH(N.a4.Xv,2),W.ss=cH(N.a4.Yz,2)):W.tth=fT()-agm;W.mc=cH(K.Vp,2);W.nc=cH(K.L,2);W.mv=u_(K.G);W.nv=u_(K.N);W.lte=cH(N.xR,2);R=cT(N,C);dP(K);W.qmtos=dP(R);W.qnc=cH(R.L,2);W.qmv=u_(R.G);W.qnv=u_(R.N);W.qas=R.N>0?1:0;W.qi=N.TI;W.avms||(W.avms="geo");W.psm=K.Id.V;W.psv=K.Id.getValue();W.psfv=K.xT.getValue();W.psa=K.vL.getValue();L=omY(L.ZV);L.length&&(W.veid=L);N.B&&g.CI(W, Dbf(N.B));W.avas=N.k_();W.vs=N.hh();W.co=QLb(N);W.tm=K.tO;W.tu=K.BL;return W}; Yif=function(N,z){if(g.J8(LLm,z))return!0;var v=N.Ae[z];return v!==void 0?(N.Ae[z]=!0,!v):!1}; QLb=function(N){var z=N.tO.toString(10).padStart(2,"0");z=""+N.CV+z;N.tO<99&&N.tO++;return z}; lgu=function(){this.V={};var N=cr();zn(this,N,document);var z=KLU();try{if("1"==z){for(var v=N.parent;v!=N.top;v=v.parent)zn(this,v,v.document);zn(this,N.top,N.top.document)}}catch(R){}}; KLU=function(){var N=document.documentElement;try{if(!EL(cr().top))return"2";var z=[],v=cr(N.ownerDocument);for(N=v;N!=v.top;N=N.parent)if(N.frameElement)z.push(N.frameElement);else break;return z&&z.length!=0?"1":"0"}catch(R){return"2"}}; zn=function(N,z,v){sJ(v,"mousedown",function(){return WL_(N)},301); sJ(z,"scroll",function(){return GNK(N)},302); sJ(v,"touchmove",function(){return xUf(N)},303); sJ(v,"mousemove",function(){return epU(N)},304); sJ(v,"keydown",function(){return JO2(N)},305)}; WL_=function(N){g.Dl(N.V,function(z){z.Z>1E5||++z.Z})}; GNK=function(N){g.Dl(N.V,function(z){z.V>1E5||++z.V})}; xUf=function(N){g.Dl(N.V,function(z){z.V>1E5||++z.V})}; JO2=function(N){g.Dl(N.V,function(z){z.W>1E5||++z.W})}; epU=function(N){g.Dl(N.V,function(z){z.N>1E5||++z.N})}; yOU=function(){this.V=[];this.W=[]}; vq=function(N,z){return g.G1(N.V,function(v){return v.TI==z})}; fgU=function(N,z){return z?g.G1(N.V,function(v){return v.qE.R9==z}):null}; dU_=function(N,z){return g.G1(N.W,function(v){return v.Vv()==2&&v.TI==z})}; C5=function(){var N=R8;return N.V.length==0?N.W:N.W.length==0?N.V:g.sZ(N.W,N.V)}; sLu=function(N,z){N=z.Vv()==1?N.V:N.W;var v=W$(N,function(R){return R==z}); return v!=-1?(N.splice(v,1),z.uO&&z.uO.unobserve(),z.dispose(),!0):!1}; TT_=function(N){var z=R8;if(sLu(z,N)){switch(N.Vv()){case 0:var v=function(){return null}; case 2:v=function(){return dU_(z,N.TI)}; break;case 1:v=function(){return vq(z,N.TI)}}for(var R=v();R;R=v())sLu(z,R)}}; FLI=function(N){var z=R8;N=g.kK(N,function(v){return!fgU(z,v.qE.R9)}); z.V.push.apply(z.V,g.U(N))}; nnu=function(N){var z=[];g.h8(N,function(v){Mj(R8.V,function(R){return R.qE.R9===v.qE.R9&&R.TI===v.TI})||(R8.V.push(v),z.push(v))})}; Zx=function(){this.V=this.W=null}; Y3=function(N){return N.V!=null}; mU2=function(N,z){function v(R,C){z(R,C)} if(N.W==null)return!1;N.V=g.G1(N.W,function(R){return R!=null&&R.IW()}); N.V&&(N.V.init(v)?KDu(N.V.V):z(N.V.V.fF(),N.V));return N.V!=null}; i9=function(N){N=$UY(N);i_.call(this,N.length?N[N.length-1]:new R6(Kt,0));this.Z=N;this.W=null}; $UY=function(N){if(!N.length)return[];N=(0,g.kK)(N,function(v){return v!=null&&v.aS()}); for(var z=1;zv.time?z:v},N[0])}; L5=function(N){N=N===void 0?Kt:N;i_.call(this,new R6(N,2))}; K5=function(){var N=gnU();R6.call(this,Kt.top,N,"geo")}; gnU=function(){im();var N=wv();return N.Z||N.W?0:2}; pox=function(){}; l9=function(){this.done=!1;this.V={St:0,ub:0,y90:0,YD:0,ge:-1,X5:0,M_:0,Lc:0,bU8:0};this.B=null;this.G=!1;this.Z=null;this.L=0;this.W=new vT(this)}; Gn=function(){var N=Wq;N.G||(N.G=!0,kNf(N,function(){return N.N.apply(N,g.U(g.SI.apply(0,arguments)))}),N.N())}; P82=function(){rS(pox);var N=rS(Zx);Y3(N)&&N.V.V?KDu(N.V.V):wv().update(Kt)}; x3=function(N,z,v){if(!N.done&&(N.W.cancel(),z.length!=0)){N.Z=null;try{P82();var R=fT();im().B=R;if(Y3(rS(Zx)))for(var C=0;C=0?fT()-dv:-1,Q=fT();C.V.ge==-1&&(Y=Q);var L=wv(),K=im(),l=WZ(K.ZV),W=C5();try{if(W.length>0){var G=L.V;G&&(l.bs=[mk(G),G.getHeight()]);var x=L.B;x&&(l.ps=[x.width,x.height]);Kt.screen&&(l.scs=[Kt.screen.width,Kt.screen.height])}else l.url=encodeURIComponent(Kt.location.href.substring(0,512)),Z.referrer&&(l.referrer=encodeURIComponent(Z.referrer.substring(0,512))); l.tt=Y;l.pt=dv;l.bin=K.W;Kt.google_osd_load_pub_page_exp!==void 0&&(l.olpp=Kt.google_osd_load_pub_page_exp);l.deb=[1,C.V.St,C.V.ub,C.V.YD,C.V.ge,0,C.W.W,C.V.X5,C.V.M_,C.V.Lc,C.V.bU8,-1].join(";");l.tvt=SiK(C,Q);L.W&&(l.inapp=1);if(Kt!==null&&Kt!=Kt.top){W.length>0&&(l.iframe_loc=encodeURIComponent(Kt.location.href.substring(0,512)));var e=L.L;l.is=[mk(e),e.getHeight()]}}catch(d){l.error=1}Wq.Z=l}G=g.vZ(Wq.Z);x=im().V;lh(x.Z,"prf")==1?(e=new Z8,C=x.V,Z=0,C.V>-1&&(Z=C.Z.V.now()-C.V),e=BG(e,1,PJ(C.N+ Z),0),C=x.V,e=BG(e,5,hD(C.V>-1?C.W+1:C.W),0),e=BG(e,2,I1(x.W.V.Z()),"0"),e=BG(e,3,I1(x.W.V.W()),"0"),x=BG(e,4,I1(x.W.V.V()),"0"),e={},x=(e.pf=g.zV(x.W()),e)):x={};g.CI(G,x);g.CI(z,R,v,G,N())}])}; H4O=function(){var N=hpu||Kt;if(!N)return"";var z=[];if(!N.location||!N.location.href)return"";z.push("url="+encodeURIComponent(N.location.href.substring(0,512)));N.document&&N.document.referrer&&z.push("referrer="+encodeURIComponent(N.document.referrer.substring(0,512)));return z.join("&")}; e6=function(){var N="youtube.player.web_20250429_10_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250429_10_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250429_10_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250429_10_RC00".match(/_(\d{8})_\d+_RC\d+$/),z;if(((z=N)==null?void 0:z.length)==2)return N[1];N="youtube.player.web_20250429_10_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var v;return((v=N)==null?void 0:v.length)==3?"20"+N[1]+N[2]:null}; on_=function(){return"av.default_js".includes("ima_html5_sdk")?{j1:"ima",QF:null}:"av.default_js".includes("ima_native_sdk")?{j1:"nima",QF:null}:"av.default_js".includes("admob-native-video-javascript")?{j1:"an",QF:null}:"youtube.player.web_20250429_10_RC00".includes("cast_js_sdk")?{j1:"cast",QF:e6()}:"youtube.player.web_20250429_10_RC00".includes("youtube.player.web")?{j1:"yw",QF:e6()}:"youtube.player.web_20250429_10_RC00".includes("outstream_web_client")?{j1:"out",QF:e6()}:"youtube.player.web_20250429_10_RC00".includes("drx_rewarded_web")? {j1:"r",QF:e6()}:"youtube.player.web_20250429_10_RC00".includes("gam_native_web_video")?{j1:"n",QF:e6()}:"youtube.player.web_20250429_10_RC00".includes("admob_interstitial_video")?{j1:"int",QF:e6()}:{j1:"j",QF:null}}; f5=function(N,z){var v={sv:"966"};Jv!==null&&(v.v=Jv);v.cb=DUb;v.nas=R8.V.length;v.msg=N;z!==void 0&&(N=b4O(z))&&(v.e=yR[N]);return v}; dy=function(N){return x_(N,"custom_metric_viewable")}; b4O=function(N){var z=dy(N)?"custom_metric_viewable":N.toLowerCase();return MP(MW,function(v){return v==z})}; tpu=function(){this.V=void 0;this.W=!1;this.Z=0;this.N=-1;this.B="tos"}; Xou=function(N){try{var z=N.split(",");return z.length>g.uW(O4v).length?null:Xd(z,function(v,R){R=R.toLowerCase().split("=");if(R.length!=2||Igu[R[0]]===void 0||!Igu[R[0]](R[1]))throw Error("Entry ("+R[0]+", "+R[1]+") is invalid.");v[R[0]]=R[1];return v},{})}catch(v){return null}}; rOK=function(N,z){if(N.V==void 0)return 0;switch(N.B){case "mtos":return N.W?JF(z.V,N.V):JF(z.W,N.V);case "tos":return N.W?eN(z.V,N.V):eN(z.W,N.V)}return 0}; sp=function(N,z,v,R){HT.call(this,z,R);this.L=N;this.Y=v}; Tn=function(){}; F4=function(N){HT.call(this,"fully_viewable_audible_half_duration_impression",N)}; n5=function(N){this.V=N}; m$=function(N,z){HT.call(this,N,z)}; $3=function(N){DH.call(this,"measurable_impression",N)}; Up=function(){n5.apply(this,arguments)}; Bq=function(N,z,v){OJ.call(this,N,z,v)}; Av=function(N){N=N===void 0?Kt:N;i_.call(this,new R6(N,2))}; gy=function(N,z,v){OJ.call(this,N,z,v)}; p5=function(N){N=N===void 0?Kt:N;i_.call(this,new R6(N,2))}; k3=function(){R6.call(this,Kt,2,"mraid");this.Id=0;this.Vp=this.PL=!1;this.L=null;this.W=qL2(this.Z);this.N.V=new nT(0,0,0,0);this.tO=!1}; Pq=function(N,z,v){N.Ja("addEventListener",z,v)}; Mpv=function(N){im().N=!!N.Ja("isViewable");Pq(N,"viewableChange",ulv);N.Ja("getState")==="loading"?Pq(N,"ready",cO2):qi7(N)}; qi7=function(N){typeof N.W.kd.AFMA_LIDAR==="string"?(N.PL=!0,wo_(N)):(N.W.compatibility=3,N.L="nc",N.So("w"))}; wo_=function(N){N.Vp=!1;var z=lh(im().ZV,"rmmt")==1,v=!!N.Ja("isViewable");(z?!v:1)&&cV().setTimeout(JJ(524,function(){N.Vp||(Nvu(N),yC(540,Error()),N.L="mt",N.So("w"))}),500); z5m(N);Pq(N,N.W.kd.AFMA_LIDAR,vsf)}; z5m=function(N){var z=lh(im().ZV,"sneio")==1,v=N.W.kd.AFMA_LIDAR_EXP_1!==void 0,R=N.W.kd.AFMA_LIDAR_EXP_2!==void 0;(z=z&&R)&&(N.W.kd.AFMA_LIDAR_EXP_2=!0);v&&(N.W.kd.AFMA_LIDAR_EXP_1=!z)}; Nvu=function(N){N.Ja("removeEventListener",N.W.kd.AFMA_LIDAR,vsf);N.PL=!1}; R5f=function(N,z){if(N.Ja("getState")==="loading")return new g.kQ(-1,-1);z=N.Ja(z);if(!z)return new g.kQ(-1,-1);N=parseInt(z.width,10);z=parseInt(z.height,10);return isNaN(N)||isNaN(z)?new g.kQ(-1,-1):new g.kQ(N,z)}; cO2=function(){try{var N=rS(k3);N.Ja("removeEventListener","ready",cO2);qi7(N)}catch(z){yC(541,z)}}; vsf=function(N,z){try{var v=rS(k3);v.Vp=!0;var R=N?new nT(N.y,N.x+N.width,N.y+N.height,N.x):new nT(0,0,0,0);var C=fT(),Z=zc();var Y=new UV(C,Z,v);Y.V=R;Y.volume=z;v.nE(Y)}catch(Q){yC(542,Q)}}; ulv=function(N){var z=im(),v=rS(k3);N&&!z.N&&(z.N=!0,v.tO=!0,v.L&&v.So("w",!0))}; VR=function(){this.isInitialized=!1;this.V=this.W=null;var N={};this.L=(N.start=this.WA,N.firstquartile=this.kX,N.midpoint=this.aV,N.thirdquartile=this.Or,N.complete=this.nY,N.error=this.iZ,N.pause=this.zw,N.resume=this.d1,N.skip=this.V_,N.viewable_impression=this.WS,N.mute=this.bu,N.unmute=this.bu,N.fullscreen=this.g4,N.exitfullscreen=this.oV,N.fully_viewable_audible_half_duration_impression=this.WS,N.measurable_impression=this.WS,N.abandon=this.zw,N.engagedview=this.WS,N.impression=this.WS,N.creativeview= this.WS,N.progress=this.bu,N.custom_metric_viewable=this.WS,N.bufferstart=this.zw,N.bufferfinish=this.d1,N.audio_measurable=this.WS,N.audio_audible=this.WS,N);N={};this.Y=(N.overlay_resize=this.qI,N.abandon=this.Dz,N.close=this.Dz,N.collapse=this.Dz,N.overlay_unmeasurable_impression=function(z){return wP(z,"overlay_unmeasurable_impression",zc())},N.overlay_viewable_immediate_impression=function(z){return wP(z,"overlay_viewable_immediate_impression",zc())},N.overlay_unviewable_impression=function(z){return wP(z, "overlay_unviewable_impression",zc())},N.overlay_viewable_end_of_session_impression=function(z){return wP(z,"overlay_viewable_end_of_session_impression",zc())},N); im().W=3;Cmx(this);this.Z=null}; S6=function(N,z,v,R){N=N.TV(null,R,!0,z);N.N=v;FLI([N]);return N}; ZTI=function(N,z,v){ku7(z);var R=N.V;g.h8(z,function(C){var Z=g.OL(C.criteria,function(Y){var Q=Xou(Y);if(Q==null)Y=null;else if(Y=new tpu,Q.visible!=null&&(Y.V=Q.visible/100),Q.audible!=null&&(Y.W=Q.audible==1),Q.time!=null){var L=Q.timetype=="mtos"?"mtos":"tos",K=tIO(Q.time,"%")?"%":"ms";Q=parseInt(Q.time,10);K=="%"&&(Q/=100);Y.setTime(Q,K,L)}return Y}); Mj(Z,function(Y){return Y==null})||zpb(v,new sp(C.id,C.event,Z,R))})}; YVu=function(){var N=[],z=im();N.push(rS(K5));lh(z.ZV,"mvp_lv")&&N.push(rS(k3));z=[new Av,new p5];z.push(new i9(N));z.push(new L5(Kt));return z}; iT7=function(N){if(!N.isInitialized){N.isInitialized=!0;try{var z=fT(),v=im(),R=wv();dv=z;v.Z=79463069;N.W!=="o"&&(hpu=KUv(Kt));if(Tfv()){Wq.V.ub=0;Wq.V.ge=fT()-z;var C=YVu(),Z=rS(Zx);Z.W=C;mU2(Z,function(){Ep()})?Wq.done||(Vpv(),Cc(Z.V.V,N),Gn()):R.Z?Ep():Gn()}else hv=!0}catch(Y){throw R8.reset(),Y; }}}; o8=function(N){Wq.W.cancel();Hq=N;Wq.done=!0}; Dx=function(N){if(N.W)return N.W;var z=rS(Zx).V;if(z)switch(z.getName()){case "nis":N.W="n";break;case "gsv":N.W="m"}N.W||(N.W="h");return N.W}; b9=function(N,z,v){if(N.V==null)return z.NJ|=4,!1;N=jBb(N.V,v,z);z.NJ|=N;return N==0}; Ep=function(){var N=[new L5(Kt)],z=rS(Zx);z.W=N;mU2(z,function(){o8("i")})?Wq.done||(Vpv(),Gn()):o8("i")}; a8m=function(N,z){if(!N.zE){var v=wP(N,"start",zc());v=N.Pt.V(v).V;var R={id:"lidarv"};R.r=z;R.sv="966";Jv!==null&&(R.v=Jv);BV(v,function(C,Z){return R[C]=C=="mtos"||C=="tos"?Z:encodeURIComponent(Z)}); z=H4O();BV(z,function(C,Z){return R[C]=encodeURIComponent(Z)}); z="//pagead2.googlesyndication.com/pagead/gen_204?"+Q8(a6(new jN,R));dbu(z);N.zE=!0}}; ry=function(N,z,v){x3(Wq,[N],!zc());Z47(N,v);v!=4&&C8u(N.PL,v,N.KZ);return wP(N,z,zc())}; Cmx=function(N){Enm(function(){var z=QB_();N.W!=null&&(z.sdk=N.W);var v=rS(Zx);Y3(v)&&(z.avms=v.V.getName());return z})}; Lkv=function(N,z,v,R){var C=fgU(R8,v);C!==null&&C.TI!==z&&(N.XG(C),C=null);C||(z=N.TV(v,fT(),!1,z),R8.W.length==0&&(im().Z=79463069),nnu([z]),C=z,C.N=Dx(N),R&&(C.vL=R));return C}; Kkb=function(N,z){var v=N[z];v!==void 0&&v>0&&(N[z]=Math.floor(v*1E3))}; QB_=function(){var N=wv(),z={},v={},R={};return Object.assign({},(z.sv="966",z),Jv!==null&&(v.v=Jv,v),(R["if"]=N.Z?"1":"0",R.nas=String(R8.V.length),R))}; u9=function(N){HT.call(this,"audio_audible",N)}; cq=function(N){DH.call(this,"audio_measurable",N)}; qH=function(){n5.apply(this,arguments)}; MH=function(){}; l8O=function(N){this.V=N}; jBb=function(N,z,v){N=N.W();if(typeof N==="function"){var R={};var C={};R=Object.assign({},Jv!==null&&(R.v=Jv,R),(C.sv="966",C.cb=DUb,C.e=WkO(z),C));C=wP(v,z,zc());g.CI(R,C);v.O1[z]=C;R=v.Vv()==2?fWY(R).join("&"):v.Pt.V(R).V;try{return N(v.TI,R,z),0}catch(Z){return 2}}else return 1}; WkO=function(N){var z=dy(N)?"custom_metric_viewable":N;N=MP(MW,function(v){return v==z}); return yR[N]}; wy=function(){VR.call(this);this.G=null;this.B=!1;this.N="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Gpu=function(N,z,v){v=v.opt_configurable_tracking_events;N.V!=null&&Array.isArray(v)&&ZTI(N,v,z)}; xjf=function(N,z,v){var R=vq(R8,z);R||(R=v.opt_nativeTime||-1,R=S6(N,z,Dx(N),R),v.opt_osdId&&(R.vL=v.opt_osdId));return R}; e5v=function(N,z,v){var R=vq(R8,z);R||(R=S6(N,z,"n",v.opt_nativeTime||-1));return R}; JJu=function(N,z){var v=vq(R8,z);v||(v=S6(N,z,"h",-1));return v}; yJu=function(N){im();switch(Dx(N)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; sB7=function(N,z,v,R){v=v===void 0?{}:v;var C={};g.CI(C,{opt_adElement:void 0,opt_fullscreen:void 0},v);var Z=N.Mq(z,v);v=Z?Z.Pt:N.Vz();if(C.opt_bounds)return v.V(f5("ol",R));if(R!==void 0)if(b4O(R)!==void 0)if(hv)N=f5("ue",R);else if(iT7(N),Hq=="i")N=f5("i",R),N["if"]=0;else if(z=N.Mq(z,C)){b:{Hq=="i"&&(z.qM=!0);Z=C.opt_fullscreen;Z!==void 0&&$K(z,!!Z);var Y;if(Z=!wv().W)(Z=fI(g.mU(),"CrKey")&&!(fI(g.mU(),"CrKey")&&fI(g.mU(),"SmartSpeaker"))||fI(g.mU(),"PlayStation")||fI(g.mU(),"Roku")||j1b()||fI(g.mU(), "Xbox"))||(Z=g.mU(),Z=fI(Z,"AppleTV")||fI(Z,"Apple TV")||fI(Z,"CFNetwork")||fI(Z,"tvOS")),Z||(Z=g.mU(),Z=fI(Z,"sdk_google_atv_x86")||fI(Z,"Android TV")),Z=!Z;Z&&(cV(),Z=ft(NW)===0);if(Y=Z){switch(z.Vv()){case 1:a8m(z,"pv");break;case 2:N.ul(z)}o8("pv")}Z=R.toLowerCase();if(Y=!Y)Y=lh(im().ZV,"ssmol")&&Z==="loaded"?!1:g.J8(f8v,Z);if(Y&&z.H2==0){Hq!="i"&&(Wq.done=!1);Y=C!==void 0?C.opt_nativeTime:void 0;FM=Y=typeof Y==="number"?Y:fT();z.GR=!0;var Q=zc();z.H2=1;z.Ae={};z.Ae.start=!1;z.Ae.firstquartile= !1;z.Ae.midpoint=!1;z.Ae.thirdquartile=!1;z.Ae.complete=!1;z.Ae.resume=!1;z.Ae.pause=!1;z.Ae.skip=!1;z.Ae.mute=!1;z.Ae.unmute=!1;z.Ae.viewable_impression=!1;z.Ae.measurable_impression=!1;z.Ae.fully_viewable_audible_half_duration_impression=!1;z.Ae.fullscreen=!1;z.Ae.exitfullscreen=!1;z.Ky=0;Q||(z.Zt().Y=Y);x3(Wq,[z],!Q)}(Y=z.U3[Z])&&V8(z.SN,Y);lh(im().ZV,"fmd")||g.J8(dj_,Z)&&z.z3&&z.z3.W(z,null);switch(z.Vv()){case 1:var L=dy(Z)?N.L.custom_metric_viewable:N.L[Z];break;case 2:L=N.Y[Z]}if(L&&(R=L.call(N, z,C,R),lh(im().ZV,"fmd")&&g.J8(dj_,Z)&&z.z3&&z.z3.W(z,null),R!==void 0)){C=f5(void 0,Z);g.CI(C,R);R=C;break b}R=void 0}z.H2==3&&N.XG(z);N=R}else N=f5("nf",R);else N=void 0;else hv?N=f5("ue"):Z?(N=f5(),g.CI(N,i4I(Z,!0,!1,!1))):N=f5("nf");return typeof N==="string"?v.V():v.V(N)}; Tv7=function(N,z){z&&(N.N=z)}; Fkf=function(N){var z={};return z.viewability=N.V,z.googleViewability=N.W,z}; nsu=function(N,z,v){v=v===void 0?{}:v;N=sB7(rS(wy),z,v,N);return Fkf(N)}; N_=function(N,z){return(N=(new RegExp("[^#]*[?&]"+z+"=([^&#]*)")).exec(N))?N[1]:null}; zo=function(N){var z=g.SI.apply(1,arguments).filter(Boolean).join("&");if(!z)return N;var v=N.match(/[?&]adurl=/);return v?N.slice(0,v.index+1)+z+"&"+N.slice(v.index+1):N+(N.indexOf("?")<0?"?":"&")+z}; vf=function(N,z){return z?"&"+N+"="+encodeURIComponent(z):""}; mjO=function(N){var z=N.url;N=N.CQd;this.V=z;this.Z=N;this.W=(new Date).getTime()-17040672E5}; $jU=function(N){N=N.Z;if(!N)return"";var z=vf("uap",N.platform)+vf("uapv",N.platformVersion)+vf("uafv",N.uaFullVersion)+vf("uaa",N.architecture)+vf("uam",N.model)+vf("uab",N.bitness);N.fullVersionList&&(z+="&uafvl="+encodeURIComponent(N.fullVersionList.map(function(v){return encodeURIComponent(v.brand)+";"+encodeURIComponent(v.version)}).join("|"))); N.wow64!=null&&(z+="&uaw="+Number(N.wow64));return z.slice(1)}; AJb=function(N,z,v,R,C){var Z=window;var Y=Y===void 0?!1:Y;var Q;v?Q=(Y===void 0?0:Y)?"//ep1.adtrafficquality.google/bg/"+e8(v)+".js":"//pagead2.googlesyndication.com/bg/"+e8(v)+".js":Q="";Y=Y===void 0?!1:Y;v=Z.document;var L={};z&&(L._scs_=z);L._bgu_=Q;L._bgp_=R;L._li_="v_h.3.0.0.0";C&&(L._upb_=C);(z=Z.GoogleTyFxhY)&&typeof z.push=="function"||(z=Z.GoogleTyFxhY=[]);z.push(L);z=DB(v).createElement("SCRIPT");z.type="text/javascript";z.async=!0;N=(Y===void 0?0:Y)?k1b(Uj2,e8(N)+".js"):k1b(BvO,e8(N)+ ".js");g.aI(z,N);(Z=(Z.GoogleTyFxhYEET||{})[z.src])?Z():v.getElementsByTagName("head")[0].appendChild(z)}; gsu=function(){try{var N,z;return!!((N=window)==null?0:(z=N.top)==null?0:z.location.href)&&!1}catch(v){return!0}}; RK=function(N,z,v){v=v===void 0?Error():v;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=N;z+=":";v instanceof Error?(this.message=z+v.message,this.stack=v.stack||""):(this.message=z+String(v),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; ZJ=function(){var N=pH_();N=N===void 0?"bevasrsg":N;return new Promise(function(z){var v=window===window.top?window:gsu()?window:window.top,R=v[N],C;((C=R)==null?0:C.bevasrs)?z(new Ck(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),v[N]=R),R.nqfbel.push(function(Z){z(new Ck(Z))}))})}; kpx=function(N){var z={c:N.GA,e:N.py,mc:N.XI,me:N.LP};N.CE&&(z.co={c:N.CE.HV,a:N.CE.m7,s:N.CE.Oh});return z}; Yj=function(N){g.H.call(this);this.wpc=N}; Ck=function(N){g.H.call(this);var z=this;this.mQ=N;this.Z="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.W=void 0;this.If=this.mQ.p;this.N=this.Co.bind(this);this.addOnDisposeCallback(function(){return void PmI(z)})}; VBf=function(N){var z;return g.S(function(v){if(v.W==1){if(!N.mQ.wpc)throw new RK(30,"NWA");return N.V?v.return(N.V):g.k(v,N.mQ.wpc(),2)}z=v.V;N.V=new Yj(z);return v.return(N.V)})}; PmI=function(N){N.W!==void 0&&(N.Z.forEach(function(z){var v;(v=N.W)==null||v.removeEventListener(z,N.N)}),N.W=void 0)}; SVu=function(N){var z=z===void 0?49:z;var v=[];od(N,ib,6).forEach(function(R){XB(R,2)<=z&&v.push(XB(R,1))}); return v}; EsU=function(N){var z=z===void 0?49:z;var v=[];od(N,ib,6).forEach(function(R){XB(R,2)>z&&v.push(XB(R,1))}); return v}; h5f=function(N){N.then(function(){},function(){})}; jS=function(){g.H.apply(this,arguments);this.N=1;this[HTU]=this.dispose}; aK=function(N){return{fieldType:2,fieldName:N}}; g.Qs=function(N){return{fieldType:3,fieldName:N}}; osb=function(N){this.V=N;N.rC("/client_streamz/bg/frs",g.Qs("mk"))}; Djm=function(N){this.V=N;N.rC("/client_streamz/bg/wrl",g.Qs("mn"),aK("ac"),aK("sc"),g.Qs("rk"),g.Qs("mk"))}; bT2=function(N){this.V=N;N.zF("/client_streamz/bg/ec",g.Qs("en"),g.Qs("mk"))}; tB_=function(N){this.V=N;N.rC("/client_streamz/bg/el",g.Qs("en"),g.Qs("mk"))}; OTu=function(N){this.V=N;N.zF("/client_streamz/bg/cec",aK("ec"),g.Qs("mk"))}; I8f=function(N){this.V=N;N.zF("/client_streamz/bg/po/csc",aK("cs"),g.Qs("mk"))}; XH2=function(N){this.V=N;N.zF("/client_streamz/bg/po/ctav",g.Qs("av"),g.Qs("mk"))}; rJu=function(N){this.V=N;N.zF("/client_streamz/bg/po/cwsc",g.Qs("su"),g.Qs("mk"))}; uMU=function(N){this.Wb=Ky(N)}; cJU=function(N,z){return k3_(N,z,jIf)}; Lk=function(N){this.Wb=Ky(N)}; Kk=function(N){this.Wb=Ky(N)}; lb=function(N){this.Wb=Ky(N)}; Wf=function(N){this.Wb=Ky(N)}; qVU=function(N){this.Wb=Ky(N)}; g.NPm=function(N){var z=new Wf;z=Mb(z,1,N.W);var v=MB2(N);z=k3_(z,v,fBI);v=[];for(var R=[],C=g.f(N.V.keys()),Z=C.next();!Z.done;Z=C.next())R.push(Z.value.split(","));for(C=0;C>>31)&4294967295;W=C[0];var e=C[1],d=C[2],T=C[3],m=C[4];for(x=0;x<80;x++){if(x<40)if(x<20){var n=T^e&(d^T);var P=1518500249}else n=e^d^T,P=1859775393;else x<60?(n=e&d|T&(e|d),P=2400959708):(n=e^d^T,P=3395469782);n=((W<<5|W>>>27)&4294967295)+n+m+P+G[x]&4294967295;m=T;T=d;d=(e<<30|e>>>2)&4294967295;e=W;W=n}C[0]=C[0]+W&4294967295;C[1]=C[1]+e&4294967295;C[2]= C[2]+d&4294967295;C[3]=C[3]+T&4294967295;C[4]=C[4]+m&4294967295} function v(W,G){if(typeof W==="string"){W=unescape(encodeURIComponent(W));for(var x=[],e=0,d=W.length;e=56;x--)Z[x]=G&255,G>>>=8;z(Z);for(x=G=0;x<5;x++)for(var e=24;e>=0;e-=8)W[G++]=C[x]>>e&255;return W} for(var C=[],Z=[],Y=[],Q=[128],L=1;L<64;++L)Q[L]=0;var K,l;N();return{reset:N,update:v,digest:R,EZ:function(){for(var W=R(),G="",x=0;x1)));Y=Y.next)C||(Z=Y);C&&(v.V==0&&R==1?qJm(v,z):(Z?(R=Z,R.next==v.N&&(v.N=R),R.next=R.next.next):MNx(v),wT7(v,C,3,z)))}N.Z=null}else nx(N,3,z)}; Ps=function(N,z){N.W||N.V!=2&&N.V!=3||Nyu(N);N.N?N.N.next=z:N.W=z;N.N=z}; zPI=function(N,z,v,R){var C=gH(null,null,null);C.V=new g.mG(function(Z,Y){C.hR=z?function(Q){try{var L=z.call(R,Q);Z(L)}catch(K){Y(K)}}:Z; C.ME=v?function(Q){try{var L=v.call(R,Q);L===void 0&&Q instanceof SG?Y(Q):Z(L)}catch(K){Y(K)}}:Y}); C.V.Z=N;Ps(N,C);return C.V}; nx=function(N,z,v){N.V==0&&(N===v&&(z=3,v=new TypeError("Promise cannot resolve to itself")),N.V=1,XTm(v,N.xH1,N.ff8,N)||(N.L=v,N.V=z,N.Z=null,Nyu(N),z!=3||v instanceof SG||v3b(N,v)))}; XTm=function(N,z,v,R){if(N instanceof g.mG)return cFU(N,z,v,R),!0;if(N)try{var C=!!N.$goog_Thenable}catch(Y){C=!1}else C=!1;if(C)return N.then(z,v,R),!0;if(g.v$(N))try{var Z=N.then;if(typeof Z==="function")return RPb(N,Z,z,v,R),!0}catch(Y){return v.call(R,Y),!0}return!1}; RPb=function(N,z,v,R,C){function Z(L){Q||(Q=!0,R.call(C,L))} function Y(L){Q||(Q=!0,v.call(C,L))} var Q=!1;try{z.call(N,Y,Z)}catch(L){Z(L)}}; Nyu=function(N){N.G||(N.G=!0,g.Fp(N.pK,N))}; MNx=function(N){var z=null;N.W&&(z=N.W,N.W=z.next,z.next=null);N.W||(N.N=null);return z}; wT7=function(N,z,v,R){if(v==3&&z.ME&&!z.W)for(;N&&N.B;N=N.Z)N.B=!1;if(z.V)z.V.Z=null,C97(z,v,R);else try{z.W?z.hR.call(z.context):C97(z,v,R)}catch(C){Z5v.call(null,C)}hVv(IHb,z)}; C97=function(N,z,v){z==2?N.hR.call(N.context,v):N.ME&&N.ME.call(N.context,v)}; v3b=function(N,z){N.B=!0;g.Fp(function(){N.B&&Z5v.call(null,z)})}; SG=function(N){Km.call(this,N)}; g.El=function(N,z){g.Ws.call(this);this.fO=N||1;this.Dl=z||g.u7;this.qc=(0,g.Zl)(this.HUO,this);this.Qd=g.jV()}; g.hL=function(N,z,v){if(typeof N==="function")v&&(N=(0,g.Zl)(N,v));else if(N&&typeof N.handleEvent=="function")N=(0,g.Zl)(N.handleEvent,N);else throw Error("Invalid listener argument");return Number(z)>2147483647?-1:g.u7.setTimeout(N,z||0)}; Hs=function(N,z){var v=null;return(new g.mG(function(R,C){v=g.hL(function(){R(z)},N); v==-1&&C(Error("Failed to schedule timer."))})).YK(function(R){g.u7.clearTimeout(v); throw R;})}; g.oZ=function(N){g.H.call(this);this.L=N;this.N=0;this.Z=100;this.B=!1;this.W=new Map;this.G=new Set;this.flushInterval=3E4;this.V=new g.El(this.flushInterval);this.V.listen("tick",this.Xg,!1,this);g.b(this,this.V)}; Yp2=function(N){N.V.enabled||N.V.start();N.N++;N.N>=N.Z&&N.Xg()}; i5K=function(N,z){return N.G.has(z)?void 0:N.W.get(z)}; j8m=function(N){for(var z=0;z2?N.V.statusText:""}catch(v){z=""}N.N=z+" ["+N.getStatus()+"]";yvu(N)}}finally{Xp(N)}}}; Xp=function(N,z){if(N.V){N.G&&(clearTimeout(N.G),N.G=null);var v=N.V;N.V=null;z||N.dispatchEvent("ready");try{v.onreadystatechange=null}catch(R){}}}; cs=function(N){var z=N.getStatus();a:switch(z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var v=!0;break a;default:v=!1}if(!v){if(z=z===0)N=g.Fd(String(N.Y))[1]||null,!N&&g.u7.self&&g.u7.self.location&&(N=g.u7.self.location.protocol.slice(0,-1)),z=!s8_.test(N?N.toLowerCase():"");v=z}return v}; g.uX=function(N){return N.V?N.V.readyState:0}; g.qn=function(N){try{return N.V?N.V.responseText:""}catch(z){return""}}; g.Mn=function(N){try{if(!N.V)return null;if("response"in N.V)return N.V.response;switch(N.K0){case "":case "text":return N.V.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in N.V)return N.V.mozResponseArrayBuffer}return null}catch(z){return null}}; g.Ty2=function(N){var z={};N=(N.V&&g.uX(N)>=2?N.V.getAllResponseHeaders()||"":"").split("\r\n");for(var v=0;v>1,z),F9(N,N.length>>1)]}; vj2=function(N){var z=g.f(zQu(N,n$));N=z.next().value;z=z.next().value;return N.toString(16)+z.toString(16)}; RQI=function(N,z){var v=zQu(z);N=new Uint32Array(N.buffer);z=N[0];var R=g.f(v);v=R.next().value;R=R.next().value;for(var C=1;C>>8|Y<<24,Y+=Z|0,Y^=Q+38293,Z=Z<<3|Z>>>29,Z^=Y,L=L>>>8|L<<24,L+=Q|0,L^=K+38293,Q=Q<<3|Q>>>29,Q^=L;Z=[Z,Y];N[C]^=Z[0];C+1=v?(globalThis.sessionStorage.removeItem(N),["e"]):["a",new Uint8Array(R.buffer,z+4)]}; m9=function(N,z,v){v=v===void 0?[]:v;this.maxItems=N;this.V=z===void 0?0:z;this.W=v}; YAu=function(N){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!z)return new m9(N);var v=z.split(",");if(v.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new m9(N);z=v.slice(1);z.length===1&&z[0]===""&&(z=[]);v=Number(v[0]);return isNaN(v)||v<0||v>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new m9(N)):new m9(N,v,z)}; ikU=function(N,z){this.logger=z;try{var v=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){v=!1}v&&(this.index=YAu(N))}; jKu=function(N,z,v,R,C){var Z=N.index?C$(N.logger,function(){return CbO(N.index,vj2(z),v,R,C)},"W"):"u"; N.logger.bD(Z)}; aJ2=function(N,z,v){var R=g.f(N.index?C$(N.logger,function(){return Zku(vj2(z),v)},"R"):["u"]),C=R.next().value; R=R.next().value;N.logger.zT(C);return R}; K3I=function(N){function z(){v-=R;v-=C;v^=C>>>13;R-=C;R-=v;R^=v<<8;C-=v;C-=R;C^=R>>>13;v-=R;v-=C;v^=C>>>12;R-=C;R-=v;R^=v<<16;C-=v;C-=R;C^=R>>>5;v-=R;v-=C;v^=C>>>3;R-=C;R-=v;R^=v<<10;C-=v;C-=R;C^=R>>>15} N=QK7(N);for(var v=2654435769,R=2654435769,C=314159265,Z=N.length,Y=Z,Q=0;Y>=12;Y-=12,Q+=12)v+=$C(N,Q),R+=$C(N,Q+4),C+=$C(N,Q+8),z();C+=Z;switch(Y){case 11:C+=N[Q+10]<<24;case 10:C+=N[Q+9]<<16;case 9:C+=N[Q+8]<<8;case 8:R+=N[Q+7]<<24;case 7:R+=N[Q+6]<<16;case 6:R+=N[Q+5]<<8;case 5:R+=N[Q+4];case 4:v+=N[Q+3]<<24;case 3:v+=N[Q+2]<<16;case 2:v+=N[Q+1]<<8;case 1:v+=N[Q+0]}z();return L37.toString(C)}; QK7=function(N){for(var z=[],v=0;v>7,N.error.code]);R.set(v,4);return R}; SU=function(N,z,v){UP.call(this,N);this.N=z;this.clientState=v;this.V="S";this.W="q"}; VS=function(N){return globalThis.TextEncoder?(new TextEncoder).encode(N):g.NG(N)}; GoY=function(N,z,v){return N instanceof f$?DHO(N,v,z,1):N.lr(v)}; hh=function(N){g.H.call(this);var z=this;this.Z=new g.Ww;this.N=0;this.W=void 0;this.state=2;this.mQ=N.mQ;this.LN=N.LN;this.ju=Object.assign({},x_v,N.ju||{});this.logger=N.mQ.pW();var v;this.onError=(v=N.onError)!=null?v:function(){}; this.eU=N.eU||!1;if(eQf(N)){var R=this.mQ;this.B=function(){return Xqm(R).catch(function(Y){Y=z.reportError(new RK(z.V?20:32,"TRG:Disposed",Y));z.W=Y;var Q;(Q=z.V)==null||Q.dispose();z.V=void 0;z.Z.reject(Y)})}; rvK(R,function(){return void EP(z)}); R.Y===2&&EP(this)}else this.B=N.CkS,EP(this);var C=this.logger.share();C.cS("o");var Z=new vw(C,"o");this.Z.promise.then(function(){Z.done();C.Mz();C.dispose()},function(){return void C.dispose()}); this.addOnDisposeCallback(function(){z.V?(z.V.dispose(),z.V=void 0):z.W?z.logger.Mz():(z.W=z.reportError(new RK(32,"TNP:Disposed")),z.logger.Mz(),z.Z.reject(z.W))}); g.b(this,this.logger)}; J_m=function(N,z){if(!(z instanceof RK))if(z instanceof DI){var v=Error(z.toString());v.stack=z.stack;z=new RK(11,"EBH:Error",v)}else z=new RK(12,"BSO:Unknown",z);return N.reportError(z)}; EP=function(N){var z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d;return g.S(function(T){switch(T.W){case 1:z=void 0;N.N++;v=new g.Ww;N.mQ instanceof d2&&N.mQ.N.push(v.promise);if(!N.eU){T.Zp(2);break}R=new g.Ww;setTimeout(function(){return void R.resolve()}); return g.k(T,R.promise,2);case 2:return C=N.logger.share(),g.d_(T,4,5),N.state=5,Z={},Y=[],g.k(T,TB(N.mQ.snapshot({GA:Z,zJ:Y}),N.ju.qDl,function(){return Promise.reject(new RK(15,"MDA:Timeout"))}),7); case 7:Q=T.V;if(N.HL())throw new RK(N.V?20:32,"MDA:Disposed");L=Y[0];N.state=6;return g.k(T,TB(GoY(N.LN,C,Q),N.ju.uc,function(){return Promise.reject(new RK(10,"BWB:Timeout"))}),8); case 8:K=T.V;if(N.HL())throw new RK(N.V?20:32,"BWB:Disposed");N.state=7;z=C$(C,function(){var n=y__(N,K,v,L);n.Z.promise.then(function(){return void N.B()}); return n},"i"); case 5:g.Ab(T);C.dispose();g.pO(T,6);break;case 4:l=g.U2(T);(W=z)==null||W.dispose();if(!N.W){G=J_m(N,l);v.resolve();var m;if(m=N.mQ instanceof d2&&N.N<2)a:if(l instanceof RK)m=l.code!==32&&l.code!==20&&l.code!==10;else{if(l instanceof DI)switch(l.code){case 2:case 13:case 14:case 4:break;default:m=!1;break a}m=!0}if(m)return x=(1+Math.random()*.25)*(N.V?6E4:1E3),e=setTimeout(function(){return void N.B()},x),N.addOnDisposeCallback(function(){return void clearTimeout(e)}),T.return(); N.W=G}C.IT(N.V?13:14);N.Z.reject(N.W);return T.return();case 6:N.state=8,N.N=0,(d=N.V)==null||d.dispose(),N.V=z,N.Z.resolve(),g.fO(T)}})}; y__=function(N,z,v,R){var C=r4(z,2)*1E3;if(C<=0)throw new RK(31,"TTM:Invalid");if(uY(z,4))return new kC(N.logger,uY(z,4),C);if(!r4(z,3))return new p$(N.logger,a1(Uk(z,1)),C);if(!R)throw new RK(4,"PMD:Undefined");R=R(a1(Uk(z,1)));if(!(R instanceof Function))throw new RK(16,"APF:Failed");N.G=Math.floor((Date.now()+C)/1E3);N=new g2(N.logger,R,r4(z,3),C);N.addOnDisposeCallback(function(){return void v.resolve()}); return N}; fJI=function(N,z){z=z instanceof RK?z:new RK(5,"TVD:error",z);return N.reportError(z)}; nju=function(N,z,v){try{if(N.HL())throw new RK(21,"BNT:disposed");if(!N.V&&N.W)throw N.W;var R,C;return(C=(R=d_Y(N,z,v))!=null?R:sKb(N,z,v))!=null?C:Ta7(N,z,v)}catch(Z){if(!z.LP)throw fJI(N,Z);return F3u(N,v,Z)}}; d_Y=function(N,z,v){var R;return(R=N.V)==null?void 0:Ah(R,function(){return Hw(N,z)},v,function(C){var Z; if(N.V instanceof g2&&((Z=z.CE)==null?0:Z.Oh))try{var Y;(Y=N.cache)==null||jKu(Y,Hw(N,z),C,z.CE.HV,N.G-120)}catch(Q){N.reportError(new RK(24,"ELX:write",Q))}})}; sKb=function(N,z,v){var R;if((R=z.CE)!=null&&R.m7)try{var C,Z=(C=N.cache)==null?void 0:aJ2(C,Hw(N,z),z.CE.HV);return Z?v?C$(N.logger,function(){return g.zV(Z,2)},"a"):Z:void 0}catch(Y){N.reportError(new RK(23,"RXO:read",Y))}}; Ta7=function(N,z,v){var R={stack:[],error:void 0,hasError:!1};try{if(!z.XI)throw new RK(29,"SDF:notready");return Ah(eYx(R,new SU(N.logger,0,N.state)),function(){return Hw(N,z)},v)}catch(C){R.error=C,R.hasError=!0}finally{Jb7(R)}}; F3u=function(N,z,v){var R={stack:[],error:void 0,hasError:!1};try{var C=fJI(N,v);return Ah(eYx(R,new Pw(N.logger,C)),function(){return[]},z)}catch(Z){R.error=Z,R.hasError=!0}finally{Jb7(R)}}; Hw=function(N,z){return z.py?z.py:z.GA?C$(N.logger,function(){return z.py=VS(z.GA)},"c"):[]}; o9=function(){var N=0,z;return function(v){z||(z=new Zt);var R=new SU(z,N,1),C=Ah(R,function(){return VS(v)},!0); R.dispose();N++;return C}}; Dt=function(N){this.Wb=Ky(N)}; m_b=function(N,z,v){this.KS=N;this.H6=z;this.metadata=v}; b6=function(N,z){z=z===void 0?{}:z;this.Ga8=N;this.metadata=z;this.status=null}; th=function(N,z,v,R,C){this.name=N;this.methodType="unary";this.requestType=z;this.responseType=v;this.V=R;this.W=C}; OP=function(N){this.Wb=Ky(N)}; I9=function(N){this.Wb=Ky(N)}; X9=function(N){this.Wb=Ky(N)}; r2=function(N,z){this.L=N.GUp;this.Y=z;this.V=N.xhr;this.Z=[];this.B=[];this.G=[];this.N=[];this.W=[];this.L&&$_Y(this)}; gju=function(N,z){var v=new U_7;g.ZI(N.V,"complete",function(){if(cs(N.V)){var R=g.qn(N.V);if(z&&N.V.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");R=atob(R)}try{var C=N.Y(R)}catch(Q){u6(N,cw(new DI(13,"Error when deserializing response data; error: "+Q+(", response: "+R)),v));return}R=axf(N.V.getStatus());qm(N,Mm(N));R==0?Bax(N,C):u6(N,cw(new DI(R,"Xhr succeeded but the status code is not 200"),v))}else{R=g.qn(N.V);C=Mm(N);if(R){var Z=A__(N, R);R=Z.code;var Y=Z.details;Z=Z.metadata}else R=2,Y="Rpc failed due to xhr error. uri: "+String(N.V.Y)+", error code: "+N.V.W+", error: "+N.V.getLastError(),Z=C;qm(N,C);u6(N,cw(new DI(R,Y,Z),v))}})}; $_Y=function(N){N.L.Nz("data",function(z){if("1"in z){var v=z["1"];try{var R=N.Y(v)}catch(C){u6(N,new DI(13,"Error when deserializing response data; error: "+C+(", response: "+v)))}R&&Bax(N,R)}if("2"in z)for(z=A__(N,z["2"]),v=0;v-1&&N.splice(z,1)}; Bax=function(N,z){for(var v=0;v>4&15).toString(16)+(N&15).toString(16)}; EjU=function(N){return N.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; Q0=function(N,z){this.W=this.V=null;this.Z=N||null;this.N=!!z}; Wn=function(N){N.V||(N.V=new Map,N.W=0,N.Z&&BV(N.Z,function(z,v){N.add(xQ(z),v)}))}; hQ7=function(N,z){Wn(N);z=GE(N,z);return N.V.has(z)}; g.Hkv=function(N,z,v){N.remove(z);v.length>0&&(N.Z=null,N.V.set(GE(N,z),g.T1(v)),N.W=N.W+v.length)}; GE=function(N,z){z=String(z);N.N&&(z=z.toLowerCase());return z}; PbI=function(N,z){z&&!N.N&&(Wn(N),N.Z=null,N.V.forEach(function(v,R){var C=R.toLowerCase();R!=C&&(this.remove(R),g.Hkv(this,C,v))},N)); N.N=z}; g.oj2=function(N){var z="";g.Dl(N,function(v,R){z+=R;z+=":";z+=v;z+="\r\n"}); return z}; g.xZ=function(N,z,v){if(g.wE(v))return N;v=g.oj2(v);if(typeof N==="string")return PV(N,g.G3(z),v);g.Kj(N,z,v);return N}; g.ej=function(N){g.H.call(this);this.W=N;this.V={}}; D_2=function(N,z,v,R,C,Z){if(Array.isArray(v))for(var Y=0;Y=0)return!0;try{var z=new g.Cj(N)}catch(v){return g.G1(CXK,function(R){return N.search(R)>0})!=null}return z.G.match(Zxf)?!0:g.G1(CXK,function(v){return N.match(v)!=null})!=null}; g.pj=function(N,z){return N.replace(ix_,function(v,R){try{var C=g.N8(z,R);if(C==null||C.toString()==null)return v;C=C.toString();if(C==""||!g.ez(g.yp(C)))return encodeURIComponent(C).replace(/%2C/g,",")}catch(Z){}return v})}; kZ=function(N,z){return Object.is(N,z)}; V0=function(N){var z=Pn;Pn=N;return z}; jZf=function(N){N&&(N.uD=0);return V0(N)}; aIU=function(N,z){V0(z);if(N&&N.WK!==void 0&&N.l6!==void 0&&N.yk!==void 0){if(Sj(N))for(z=N.uD;zN.uD;)N.WK.pop(),N.yk.pop(),N.l6.pop()}}; LGu=function(N,z,v){QZK(N);if(N.L4.length===0&&N.WK!==void 0)for(var R=0;R0}; KGO=function(N){N.WK!=null||(N.WK=[]);N.l6!=null||(N.l6=[]);N.yk!=null||(N.yk=[])}; QZK=function(N){N.L4!=null||(N.L4=[]);N.Rv!=null||(N.Rv=[])}; G5K=function(N){function z(){if(Pn!==null){var R=Pn.uD++;KGO(Pn);R0?" "+z:z))}}; g.iP=function(N,z){if(N.classList)Array.prototype.forEach.call(z,function(C){g.Ye(N,C)}); else{var v={};Array.prototype.forEach.call(RO(N),function(C){v[C]=!0}); Array.prototype.forEach.call(z,function(C){v[C]=!0}); z="";for(var R in v)z+=z.length>0?" "+R:R;g.C6(N,z)}}; g.jW=function(N,z){N.classList?N.classList.remove(z):g.Zd(N,z)&&g.C6(N,Array.prototype.filter.call(RO(N),function(v){return v!=z}).join(" "))}; g.aO=function(N,z){N.classList?Array.prototype.forEach.call(z,function(v){g.jW(N,v)}):g.C6(N,Array.prototype.filter.call(RO(N),function(v){return!g.J8(z,v)}).join(" "))}; g.QY=function(N,z,v){v?g.Ye(N,z):g.jW(N,z)}; sZ7=function(N,z){var v=!g.Zd(N,z);g.QY(N,z,v)}; g.L6=function(){g.Ws.call(this);this.V=0;this.endTime=this.startTime=null}; THu=function(N,z){Array.isArray(z)||(z=[z]);z=z.map(function(v){return typeof v==="string"?v:v.property+" "+v.duration+"s "+v.timing+" "+v.delay+"s"}); g.SB(N,"transition",z.join(","))}; K6=function(N,z,v,R,C){g.L6.call(this);this.W=N;this.B=z;this.G=v;this.N=R;this.L=Array.isArray(C)?C:[C]}; FG7=function(N,z,v,R){return new K6(N,z,{opacity:v},{opacity:R},{property:"opacity",duration:z,timing:"ease-in",delay:0})}; mnK=function(N){N=df(N);if(N=="")return null;var z=String(N.slice(0,4)).toLowerCase();if(("url("1||N&&N.split(")"),null;if(N.indexOf("(")>0){if(/"|'/.test(N))return null;z=/([\-\w]+)\(/g;for(var v;v=z.exec(N);)if(!(v[1].toLowerCase()in n7u))return null}return N}; lP=function(N,z){N=g.u7[N];return N&&N.prototype?(z=Object.getOwnPropertyDescriptor(N.prototype,z))&&z.get||null:null}; $nu=function(N){var z=g.u7.CSSStyleDeclaration;return z&&z.prototype&&z.prototype[N]||null}; UnK=function(N,z,v,R){if(N)return N.apply(z,R);if(g.Wl&&document.documentMode<10){if(!z[v].call)throw Error("IE Clobbering detected");}else if(typeof z[v]!="function")throw Error("Clobbering detected");return z[v].apply(z,R)}; k5U=function(N){if(!N)return"";var z=document.createElement("div").style;BHK(N).forEach(function(v){var R=g.uU&&v in ALv?v:v.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");x_(R,"--")||x_(R,"var")||(v=UnK(g77,N,N.getPropertyValue?"getPropertyValue":"getAttribute",[v])||"",v=mnK(v),v!=null&&UnK(ps_,z,z.setProperty?"setProperty":"setAttribute",[R,v]))}); return z.cssText||""}; BHK=function(N){g.z1(N)?N=g.T1(N):(N=g.uW(N),g.fm(N,"cssText"));return N}; g.xe=function(N){var z,v=z=0,R=!1;N=N.split(PX2);for(var C=0;C.4?-1:1;return(z==0?null:z)==-1?"rtl":"ltr"}; g.f6=function(N){if(N instanceof eW||N instanceof J7||N instanceof yY)return N;if(typeof N.next=="function")return new eW(function(){return N}); if(typeof N[Symbol.iterator]=="function")return new eW(function(){return N[Symbol.iterator]()}); if(typeof N.O5=="function")return new eW(function(){return N.O5()}); throw Error("Not an iterator or iterable.");}; eW=function(N){this.W=N}; J7=function(N){this.W=N}; yY=function(N){eW.call(this,function(){return N}); this.Z=N}; dA=function(N,z,v,R,C,Z,Y,Q){this.V=N;this.L=z;this.Z=v;this.B=R;this.N=C;this.G=Z;this.W=Y;this.Y=Q}; sb=function(N,z){if(z==0)return N.V;if(z==1)return N.W;var v=Aj(N.V,N.Z,z),R=Aj(N.Z,N.N,z);N=Aj(N.N,N.W,z);v=Aj(v,R,z);R=Aj(R,N,z);return Aj(v,R,z)}; hkm=function(N,z){var v=(z-N.V)/(N.W-N.V);if(v<=0)return 0;if(v>=1)return 1;for(var R=0,C=1,Z=0,Y=0;Y<8;Y++){Z=sb(N,v);var Q=(sb(N,v+1E-6)-Z)/1E-6;if(Math.abs(Z-z)<1E-6)return v;if(Math.abs(Q)<1E-6)break;else Z1E-6&&Y<8;Y++)Z=0}; g.mN=function(N){g.H.call(this);this.G=1;this.Z=[];this.N=0;this.V=[];this.W={};this.L=!!N}; o7K=function(N,z,v){g.Fp(function(){N.apply(z,v)})}; g.$e=function(N){this.V=N}; Ub=function(N){this.V=N}; DnY=function(N){this.data=N}; bxu=function(N){return N===void 0||N instanceof DnY?N:new DnY(N)}; Bl=function(N){this.V=N}; g.tGO=function(N){var z=N.creation;N=N.expiration;return!!N&&Ng.jV()}; g.A7=function(N){this.V=N}; Oxu=function(){}; gA=function(){}; p6=function(N){this.V=N;this.W=null}; ke=function(N){if(N.V==null)throw Error("Storage mechanism: Storage unavailable");var z;(IIu?N.isAvailable():(z=N.W)!=null?z:N.isAvailable())||wS(Error("Storage mechanism: Storage unavailable"))}; Pl=function(){var N=null;try{N=g.u7.localStorage||null}catch(z){}p6.call(this,N)}; Xsx=function(){var N=null;try{N=g.u7.sessionStorage||null}catch(z){}p6.call(this,N)}; VY=function(N,z){this.W=N;this.V=z+"::"}; g.SW=function(N){var z=new Pl;return z.isAvailable()?N?new VY(z,N):z:null}; Eb=function(N,z){this.V=N;this.W=z}; h7=function(N){this.V=[];if(N)a:{if(N instanceof h7){var z=N.S7();N=N.IU();if(this.V.length<=0){for(var v=this.V,R=0;R>>6:(Z<65536?Q[v++]=224|Z>>>12:(Q[v++]=240|Z>>>18,Q[v++]=128|Z>>>12&63),Q[v++]=128|Z>>> 6&63),Q[v++]=128|Z&63);return Q}; bP=function(N){for(var z=N.length;--z>=0;)N[z]=0}; t7=function(N,z,v,R,C){this.VD=N;this.XQ=z;this.Bz=v;this.Wz=R;this.apS=C;this.WR=N&&N.length}; Ob=function(N,z){this.jB=N;this.DY=0;this.AP=z}; IO=function(N,z){N.Zf[N.pending++]=z&255;N.Zf[N.pending++]=z>>>8&255}; XV=function(N,z,v){N.ZO>16-v?(N.r5|=z<>16-N.ZO,N.ZO+=v-16):(N.r5|=z<>>=1,v<<=1;while(--z>0);return v>>>1}; MGu=function(N,z,v){var R=Array(16),C=0,Z;for(Z=1;Z<=15;Z++)R[Z]=C=C+v[Z-1]<<1;for(v=0;v<=z;v++)C=N[v*2+1],C!==0&&(N[v*2]=qlK(R[C]++,C))}; wsb=function(N){var z;for(z=0;z<286;z++)N.Ob[z*2]=0;for(z=0;z<30;z++)N.My[z*2]=0;for(z=0;z<19;z++)N.UJ[z*2]=0;N.Ob[512]=1;N.dc=N.qJ=0;N.Xz=N.matches=0}; N2u=function(N){N.ZO>8?IO(N,N.r5):N.ZO>0&&(N.Zf[N.pending++]=N.r5);N.r5=0;N.ZO=0}; zrK=function(N,z,v){N2u(N);IO(N,v);IO(N,~v);Dd.k7(N.Zf,N.window,z,v,N.pending);N.pending+=v}; vCu=function(N,z,v,R){var C=z*2,Z=v*2;return N[C]>>7)];rA(N,Y,v);Q=NV[Y];Q!==0&&(C-=zA[Y],XV(N,C,Q))}}while(R>1;Y>=1;Y--)uP(N,v,Y);L=Z;do Y=N.Iy[1],N.Iy[1]=N.Iy[N.T8--],uP(N,v,1),R=N.Iy[1],N.Iy[--N.aQ]=Y,N.Iy[--N.aQ]=R,v[L*2]=v[Y*2]+v[R*2],N.depth[L]=(N.depth[Y]>=N.depth[R]?N.depth[Y]:N.depth[R])+1,v[Y*2+1]=v[R*2+1]=L,N.Iy[1]=L++,uP(N,v,1);while(N.T8>= 2);N.Iy[--N.aQ]=N.Iy[1];Y=z.jB;L=z.DY;R=z.AP.VD;C=z.AP.WR;Z=z.AP.XQ;var K=z.AP.Bz,l=z.AP.apS,W,G=0;for(W=0;W<=15;W++)N.Xr[W]=0;Y[N.Iy[N.aQ]*2+1]=0;for(z=N.aQ+1;z<573;z++){var x=N.Iy[z];W=Y[Y[x*2+1]*2+1]+1;W>l&&(W=l,G++);Y[x*2+1]=W;if(!(x>L)){N.Xr[W]++;var e=0;x>=K&&(e=Z[x-K]);var d=Y[x*2];N.dc+=d*(W+e);C&&(N.qJ+=d*(R[x*2+1]+e))}}if(G!==0){do{for(W=l-1;N.Xr[W]===0;)W--;N.Xr[W]--;N.Xr[W+1]+=2;N.Xr[l]--;G-=2}while(G>0);for(W=l;W!==0;W--)for(x=N.Xr[W];x!==0;)R=N.Iy[--z],R>L||(Y[R*2+1]!==W&&(N.dc+=(W- Y[R*2+1])*Y[R*2],Y[R*2+1]=W),x--)}MGu(v,Q,N.Xr)}; C6I=function(N,z,v){var R,C=-1,Z=z[1],Y=0,Q=7,L=4;Z===0&&(Q=138,L=3);z[(v+1)*2+1]=65535;for(R=0;R<=v;R++){var K=Z;Z=z[(R+1)*2+1];++Y>>=1)if(z&1&&N.Ob[v*2]!==0)return 0;if(N.Ob[18]!==0||N.Ob[20]!==0||N.Ob[26]!==0)return 1;for(v=32;v<256;v++)if(N.Ob[v*2]!==0)return 1;return 0}; Rh=function(N,z,v){N.Zf[N.bJ+N.Xz*2]=z>>>8&255;N.Zf[N.bJ+N.Xz*2+1]=z&255;N.Zf[N.M6+N.Xz]=v&255;N.Xz++;z===0?N.Ob[v*2]++:(N.matches++,z--,N.Ob[(cl[v]+256+1)*2]++,N.My[(z<256?wA[z]:wA[256+(z>>>7)])*2]++);return N.Xz===N.jd-1}; Z3=function(N,z){N.msg=Ci[z];return z}; YW=function(N){for(var z=N.length;--z>=0;)N[z]=0}; i1=function(N){var z=N.state,v=z.pending;v>N.wx&&(v=N.wx);v!==0&&(Dd.k7(N.output,z.Zf,z.u8,v,N.Tz),N.Tz+=v,z.u8+=v,N.QQ+=v,N.wx-=v,z.pending-=v,z.pending===0&&(z.u8=0))}; QT=function(N,z){var v=N.rg>=0?N.rg:-1,R=N.Rz-N.rg,C=0;if(N.level>0){N.lO.Zg===2&&(N.lO.Zg=YPY(N));v6(N,N.qL);v6(N,N.BG);C6I(N,N.Ob,N.qL.DY);C6I(N,N.My,N.BG.DY);v6(N,N.a6);for(C=18;C>=3&&N.UJ[i$u[C]*2+1]===0;C--);N.dc+=3*(C+1)+5+5+4;var Z=N.dc+3+7>>>3;var Y=N.qJ+3+7>>>3;Y<=Z&&(Z=Y)}else Z=Y=R+5;if(R+4<=Z&&v!==-1)XV(N,z?1:0,3),zrK(N,v,R);else if(N.strategy===4||Y===Z)XV(N,2+(z?1:0),3),Rrb(N,j1,ah);else{XV(N,4+(z?1:0),3);v=N.qL.DY+1;R=N.BG.DY+1;C+=1;XV(N,v-257,5);XV(N,R-1,5);XV(N,C-4,4);for(Z=0;Z>>8&255;N.Zf[N.pending++]=z&255}; j9v=function(N,z){var v=N.Rc,R=N.Rz,C=N.f8,Z=N.yr,Y=N.Rz>N.aq-262?N.Rz-(N.aq-262):0,Q=N.window,L=N.tP,K=N.S5,l=N.Rz+258,W=Q[R+C-1],G=Q[R+C];N.f8>=N.yY&&(v>>=2);Z>N.m9&&(Z=N.m9);do{var x=z;if(Q[x+C]===G&&Q[x+C-1]===W&&Q[x]===Q[R]&&Q[++x]===Q[R+1]){R+=2;for(x++;Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&Q[++R]===Q[++x]&&RC){N.fm=z;C=x;if(x>=Z)break;W=Q[R+C-1];G=Q[R+C]}}}while((z=K[z&L])>Y&&--v!== 0);return C<=N.m9?C:N.m9}; GA=function(N){var z=N.aq,v;do{var R=N.rb-N.m9-N.Rz;if(N.Rz>=z+(z-262)){Dd.k7(N.window,N.window,z,z,0);N.fm-=z;N.Rz-=z;N.rg-=z;var C=v=N.yb;do{var Z=N.head[--C];N.head[C]=Z>=z?Z-z:0}while(--v);C=v=z;do Z=N.S5[--C],N.S5[C]=Z>=z?Z-z:0;while(--v);R+=z}if(N.lO.P1===0)break;C=N.lO;v=N.window;Z=N.Rz+N.m9;var Y=C.P1;Y>R&&(Y=R);Y===0?v=0:(C.P1-=Y,Dd.k7(v,C.input,C.F3,Y,Z),C.state.wrap===1?C.eL=l1(C.eL,v,Y,Z):C.state.wrap===2&&(C.eL=W6(C.eL,v,Y,Z)),C.F3+=Y,C.s3+=Y,v=Y);N.m9+=v;if(N.m9+N.Lu>=3)for(R=N.Rz-N.Lu, N.fG=N.window[R],N.fG=(N.fG<=3&&(N.fG=(N.fG<=3)if(v=Rh(N,N.Rz-N.fm,N.VO-3),N.m9-=N.VO,N.VO<=N.YR&&N.m9>=3){N.VO--;do N.Rz++,N.fG=(N.fG<=3&&(N.fG=(N.fG<4096)&&(N.VO=2));if(N.f8>=3&&N.VO<=N.f8){R=N.Rz+N.m9-3;v=Rh(N,N.Rz-1-N.T2,N.f8-3);N.m9-=N.f8-1;N.f8-=2;do++N.Rz<=R&&(N.fG=(N.fG<=3&&N.Rz>0&&(R=N.Rz-1,v=Z[R],v===Z[++R]&&v===Z[++R]&&v===Z[++R])){for(C=N.Rz+258;v===Z[++R]&&v===Z[++R]&&v===Z[++R]&&v===Z[++R]&&v===Z[++R]&&v===Z[++R]&&v===Z[++R]&&v===Z[++R]&&RN.m9&&(N.VO=N.m9)}N.VO>=3?(v=Rh(N,1,N.VO-3),N.m9-=N.VO,N.Rz+=N.VO,N.VO=0):(v=Rh(N,0,N.window[N.Rz]),N.m9--,N.Rz++);if(v&&(QT(N,!1),N.lO.wx===0))return 1}N.Lu=0;return z=== 4?(QT(N,!0),N.lO.wx===0?3:4):N.Xz&&(QT(N,!1),N.lO.wx===0)?1:2}; Q9u=function(N,z){for(var v;;){if(N.m9===0&&(GA(N),N.m9===0)){if(z===0)return 1;break}N.VO=0;v=Rh(N,0,N.window[N.Rz]);N.m9--;N.Rz++;if(v&&(QT(N,!1),N.lO.wx===0))return 1}N.Lu=0;return z===4?(QT(N,!0),N.lO.wx===0?3:4):N.Xz&&(QT(N,!1),N.lO.wx===0)?1:2}; JB=function(N,z,v,R,C){this.LY=N;this.gTd=z;this.CSp=v;this.kUO=R;this.func=C}; L97=function(){this.lO=null;this.status=0;this.Zf=null;this.wrap=this.pending=this.u8=this.S3=0;this.AT=null;this.Yw=0;this.method=8;this.Lm=-1;this.tP=this.NU=this.aq=0;this.window=null;this.rb=0;this.head=this.S5=null;this.yr=this.yY=this.strategy=this.level=this.YR=this.Rc=this.f8=this.m9=this.fm=this.Rz=this.cQ=this.T2=this.VO=this.rg=this.EO=this.wd=this.wY=this.yb=this.fG=0;this.Ob=new Dd.C7(1146);this.My=new Dd.C7(122);this.UJ=new Dd.C7(78);YW(this.Ob);YW(this.My);YW(this.UJ);this.a6=this.BG= this.qL=null;this.Xr=new Dd.C7(16);this.Iy=new Dd.C7(573);YW(this.Iy);this.aQ=this.T8=0;this.depth=new Dd.C7(573);YW(this.depth);this.ZO=this.r5=this.Lu=this.matches=this.qJ=this.dc=this.bJ=this.Xz=this.jd=this.M6=0}; K9_=function(N,z){if(!N||!N.state||z>5||z<0)return N?Z3(N,-2):-2;var v=N.state;if(!N.output||!N.input&&N.P1!==0||v.status===666&&z!==4)return Z3(N,N.wx===0?-5:-2);v.lO=N;var R=v.Lm;v.Lm=z;if(v.status===42)if(v.wrap===2)N.eL=0,Li(v,31),Li(v,139),Li(v,8),v.AT?(Li(v,(v.AT.text?1:0)+(v.AT.kP?2:0)+(v.AT.extra?4:0)+(v.AT.name?8:0)+(v.AT.comment?16:0)),Li(v,v.AT.time&255),Li(v,v.AT.time>>8&255),Li(v,v.AT.time>>16&255),Li(v,v.AT.time>>24&255),Li(v,v.level===9?2:v.strategy>=2||v.level<2?4:0),Li(v,v.AT.os& 255),v.AT.extra&&v.AT.extra.length&&(Li(v,v.AT.extra.length&255),Li(v,v.AT.extra.length>>8&255)),v.AT.kP&&(N.eL=W6(N.eL,v.Zf,v.pending,0)),v.Yw=0,v.status=69):(Li(v,0),Li(v,0),Li(v,0),Li(v,0),Li(v,0),Li(v,v.level===9?2:v.strategy>=2||v.level<2?4:0),Li(v,3),v.status=113);else{var C=8+(v.NU-8<<4)<<8;C|=(v.strategy>=2||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6;v.Rz!==0&&(C|=32);v.status=113;Ki(v,C+(31-C%31));v.Rz!==0&&(Ki(v,N.eL>>>16),Ki(v,N.eL&65535));N.eL=1}if(v.status===69)if(v.AT.extra){for(C= v.pending;v.Yw<(v.AT.extra.length&65535)&&(v.pending!==v.S3||(v.AT.kP&&v.pending>C&&(N.eL=W6(N.eL,v.Zf,v.pending-C,C)),i1(N),C=v.pending,v.pending!==v.S3));)Li(v,v.AT.extra[v.Yw]&255),v.Yw++;v.AT.kP&&v.pending>C&&(N.eL=W6(N.eL,v.Zf,v.pending-C,C));v.Yw===v.AT.extra.length&&(v.Yw=0,v.status=73)}else v.status=73;if(v.status===73)if(v.AT.name){C=v.pending;do{if(v.pending===v.S3&&(v.AT.kP&&v.pending>C&&(N.eL=W6(N.eL,v.Zf,v.pending-C,C)),i1(N),C=v.pending,v.pending===v.S3)){var Z=1;break}Z=v.YwC&&(N.eL=W6(N.eL,v.Zf,v.pending-C,C));Z===0&&(v.Yw=0,v.status=91)}else v.status=91;if(v.status===91)if(v.AT.comment){C=v.pending;do{if(v.pending===v.S3&&(v.AT.kP&&v.pending>C&&(N.eL=W6(N.eL,v.Zf,v.pending-C,C)),i1(N),C=v.pending,v.pending===v.S3)){Z=1;break}Z=v.YwC&&(N.eL=W6(N.eL,v.Zf,v.pending-C,C));Z===0&&(v.status=103)}else v.status= 103;v.status===103&&(v.AT.kP?(v.pending+2>v.S3&&i1(N),v.pending+2<=v.S3&&(Li(v,N.eL&255),Li(v,N.eL>>8&255),N.eL=0,v.status=113)):v.status=113);if(v.pending!==0){if(i1(N),N.wx===0)return v.Lm=-1,0}else if(N.P1===0&&(z<<1)-(z>4?9:0)<=(R<<1)-(R>4?9:0)&&z!==4)return Z3(N,-5);if(v.status===666&&N.P1!==0)return Z3(N,-5);if(N.P1!==0||v.m9!==0||z!==0&&v.status!==666){R=v.strategy===2?Q9u(v,z):v.strategy===3?atO(v,z):yT[v.level].func(v,z);if(R===3||R===4)v.status=666;if(R===1||R===3)return N.wx===0&&(v.Lm= -1),0;if(R===2&&(z===1?(XV(v,2,3),rA(v,256,j1),v.ZO===16?(IO(v,v.r5),v.r5=0,v.ZO=0):v.ZO>=8&&(v.Zf[v.pending++]=v.r5&255,v.r5>>=8,v.ZO-=8)):z!==5&&(XV(v,0,3),zrK(v,0,0),z===3&&(YW(v.head),v.m9===0&&(v.Rz=0,v.rg=0,v.Lu=0))),i1(N),N.wx===0))return v.Lm=-1,0}if(z!==4)return 0;if(v.wrap<=0)return 1;v.wrap===2?(Li(v,N.eL&255),Li(v,N.eL>>8&255),Li(v,N.eL>>16&255),Li(v,N.eL>>24&255),Li(v,N.s3&255),Li(v,N.s3>>8&255),Li(v,N.s3>>16&255),Li(v,N.s3>>24&255)):(Ki(v,N.eL>>>16),Ki(v,N.eL&65535));i1(N);v.wrap>0&& (v.wrap=-v.wrap);return v.pending!==0?0:1}; fi=function(N){if(!(this instanceof fi))return new fi(N);N=this.options=Dd.assign({level:-1,method:8,chunkSize:16384,cw:15,AO1:8,strategy:0,to:""},N||{});N.raw&&N.cw>0?N.cw=-N.cw:N.UL&&N.cw>0&&N.cw<16&&(N.cw+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.lO=new ltu;this.lO.wx=0;var z=this.lO;var v=N.level,R=N.method,C=N.cw,Z=N.AO1,Y=N.strategy;if(z){var Q=1;v===-1&&(v=6);C<0?(Q=0,C=-C):C>15&&(Q=2,C-=16);if(Z<1||Z>9||R!==8||C<8||C>15||v<0||v>9||Y<0||Y>4)z=Z3(z,-2);else{C===8&&(C=9); var L=new L97;z.state=L;L.lO=z;L.wrap=Q;L.AT=null;L.NU=C;L.aq=1<>=7;Z<30;Z++)for(zA[Z]=Y<<7,C=0;C<1<=K.aq&&(z===0&&(YW(K.head),K.Rz=0,K.rg=0,K.Lu=0),v=new Dd.lW(K.aq),Dd.k7(v,Z,Y-K.aq,K.aq,0),Z=v,Y=K.aq);v=N.P1;R=N.F3;C=N.input;N.P1=Y;N.F3=0;N.input=Z;for(GA(K);K.m9>=3;){Z=K.Rz;Y=K.m9-2;do K.fG=(K.fG<-8&&((((0,v[4])(v[28], v[1]),v[13])(v[59],v[27]),v[new Date(a[75])/1E3])(v[14],v[44]),(0,v[35])((0,v[35])((0,v[68])(v[8],v[31]),v[6],v[33],v[25]),v[0],v[25],v[64])),v[24]<=-6&&(v[68]>new Date(a[89])/(new Date(a[24])/1E3)?((((0,v[9])(v[21],v[38]),(0,v[48])(v[20],v[34]),v[67])(v[34]),(0,v[54])((0,v[22])(v[new Date(a[79])/1E3],v[new Date(a[45])/1E3]),v[6],v[36],v[29]),v[6])(v[65],v[20]),v[1])(v[46],v[29]):(0,v[22])((((0,v[7])(v[73],v[17]),v[42])(v[73],(0,v[55])(),v[48]),v[60])(v[new Date(a[85])/1E3]),v[6],(0,v[47])((0,v[47])((0,v[58])(v[29]), v[42],v[3],(0,v[55])(),v[48]),v[74],v[29],v[44]),v[35],v[14])),v[40]==-6?(0,v[6])(v[54],v[20]):(0,v[58])(v[73])}finally{v[53]>10&&(v[69]<-8&&((0,v[47])((0,v[7])(v[73],v[21]),v[41],v[67],v[61]),1)||(0,v[47])((0,v[7])(v[61],v[52]),v[74],v[73],v[18])),v[33]===-10&&((0,v[32])((0,v[47])(((0,v[7])(v[73],v[53]),v[7])(v[61],v[45]),v[42],v[61],(0,v[56])(),v[48]),v[22],(0,v[47])((0,v[58])(v[20]),v[1],v[38],v[3]),v[7],(0,v[7])(v[61],v[72]),v[3],v[33]),a[63])||(((0,v[47])((0,v[22])((0,v[7])(v[73],v[69]),v[7], (0,v[1])(v[10],v[29]),v[61],v[39]),v[15],v[24],v[29]),(0,v[50])(v[46],v[49]),v[3])(v[57],v[73]),v[54])(v[57]),v[9]>5?(0,v[75])((0,v[56])(v[10]),v[3],v[78],v[15]):(0,v[75])((0,v[54])(v[78]),v[11],v[30],v[10]),v[72]!=6&&(v[46]!==-2?(0,v[49])(v[19],v[42]):(0,v[54])(v[37],v[77]))}try{v[23]<=-10&&(v[15]!==2?(0,v[1])((0,v[29])(v[62]),v[8],((0,v[23])(v[27],v[22]),v[29])(v[14],v[10]),v[29],(0,v[29])(v[new Date(a[37])/1E3],v[1]),v[72],v[16]):(0,v[77])(((0,v[30])((0,v[67])(v[new Date(a[77])/1E3],(0,v[54])(), v[61]),v[51],v[10]),v[29])(v[52],v[10]),v[30],(0,v[67])(v[36],(0,v[54])(),v[61]),v[23],v[16],v[4]))}catch(R){(0,v[67])(v[27],(0,v[34])(),v[61])}}catch(R){return a[14]+N}return z[a[13]](a[0])}; g.ni=function(N){this.name=N}; kBK=function(N){this.Wb=Ky(N)}; m1=function(N){this.Wb=Ky(N)}; $W=function(N){this.Wb=Ky(N)}; P6u=function(N){this.Wb=Ky(N)}; UT=function(N){this.Wb=Ky(N)}; B6=function(N){this.Wb=Ky(N)}; AB=function(N){this.Wb=Ky(N)}; gb=function(N){this.Wb=Ky(N)}; pi=function(N){this.Wb=Ky(N)}; kW=function(N){this.Wb=Ky(N)}; P6=function(N){this.Wb=Ky(N)}; VT=function(N){this.Wb=Ky(N)}; S1=function(N){this.Wb=Ky(N)}; ET=function(N){this.Wb=Ky(N)}; hB=function(N){this.Wb=Ky(N)}; H6=function(N){this.Wb=Ky(N,500)}; b1=function(N){this.Wb=Ky(N)}; tB=function(N){this.Wb=Ky(N)}; VUu=function(N){this.Wb=Ky(N)}; SPY=function(){return g.qx("yt.ads.biscotti.lastId_")||""}; EC7=function(N){g.cU("yt.ads.biscotti.lastId_",N)}; Ih=function(){var N=arguments,z=OT;N.length>1?z[N[0]]=N[1]:N.length===1&&Object.assign(z,N[0])}; g.XI=function(N,z){return N in OT?OT[N]:z}; rb=function(N){var z=OT.EXPERIMENT_FLAGS;return z?z[N]:void 0}; hrm=function(N){u1.forEach(function(z){return z(N)})}; g.qV=function(N){return N&&window.yterr?function(){try{return N.apply(this,arguments)}catch(z){g.c6(z)}}:N}; g.c6=function(N){var z=g.qx("yt.logging.errors.log");z?z(N,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=g.XI("ERRORS",[]),z.push([N,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ih("ERRORS",z));hrm(N)}; MV=function(N,z,v,R,C){var Z=g.qx("yt.logging.errors.log");Z?Z(N,"WARNING",z,v,R,void 0,C):(Z=g.XI("ERRORS",[]),Z.push([N,"WARNING",z,v,R,void 0,C]),Ih("ERRORS",Z))}; wb=function(N,z){z=N.split(z);for(var v={},R=0,C=z.length;R1?N[1]:N[0])):{}}; CX=function(N,z){return b$v(N,z||{},!0)}; Zz=function(N,z){return b$v(N,z||{},!1)}; b$v=function(N,z,v){var R=N.split("#",2);N=R[0];R=R.length>1?"#"+R[1]:"";var C=N.split("?",2);N=C[0];C=zU(C[1]||"");for(var Z in z)if(v||!g.c$(C,Z))C[Z]=z[Z];return g.kS(N,C)+R}; YA=function(N){if(!z)var z=window.location.href;var v=g.Fd(N)[1]||null,R=g.nt(N);v&&R?(N=g.Fd(N),z=g.Fd(z),N=N[3]==z[3]&&N[1]==z[1]&&N[4]==z[4]):N=R?g.nt(z)===R&&(Number(g.Fd(z)[4]||null)||null)===(Number(g.Fd(N)[4]||null)||null):!0;return N}; iQ=function(N){N||(N=document.location.href);N=g.Fd(N)[1]||null;return N!==null&&N==="https"}; j5=function(N){N=tUK(N);return N===null?!1:N[0]==="com"&&N[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; O$x=function(N){N=tUK(N);return N===null?!1:N[1]==="google"?!0:N[2]==="google"?N[0]==="au"&&N[1]==="com"?!0:N[0]==="uk"&&N[1]==="co"?!0:!1:!1}; tUK=function(N){N=g.nt(N);return N!==null?N.split(".").reverse():null}; H$K=function(N){return N&&N.match(Itx)?N:xQ(N)}; LX=function(N){var z=a0;N=N===void 0?SPY():N;var v=Object,R=v.assign,C=Qj(z);var Z=z.V;try{var Y=Z.screenX;var Q=Z.screenY}catch(m){}try{var L=Z.outerWidth;var K=Z.outerHeight}catch(m){}try{var l=Z.innerWidth;var W=Z.innerHeight}catch(m){}try{var G=Z.screenLeft;var x=Z.screenTop}catch(m){}try{l=Z.innerWidth,W=Z.innerHeight}catch(m){}try{var e=Z.screen.availWidth;var d=Z.screen.availTop}catch(m){}Z=[G,x,Y,Q,e,d,L,K,l,W];Y=wVU(!1,z.V.top);Q={};var T=T===void 0?g.u7:T;L=new DF;"SVGElement"in T&&"createElementNS"in T.document&&L.set(0);K=LU_();K["allow-top-navigation-by-user-activation"]&&L.set(1);K["allow-popups-to-escape-sandbox"]&&L.set(2);T.crypto&&T.crypto.subtle&&L.set(3);"TextDecoder"in T&&"TextEncoder"in T&&L.set(4);T=JL2(L);z=(Q.bc=T,Q.bih=Y.height,Q.biw=Y.width,Q.brdim=Z.join(),Q.vis=ft(z.W),Q.wgl=!!Kt.WebGLRenderingContext,Q);v=R.call(v,C,z);v.ca_type="image";N&&(v.bid=N);return v}; Qj=function(N){var z={};z.dt=XwI;z.flash="0";a:{try{var v=N.V.top.location.href}catch(l){N=2;break a}N=v?v===N.W.location.href?0:1:2}z=(z.frm=N,z);try{z.u_tz=-(new Date).getTimezoneOffset();var R=R===void 0?Kt:R;try{var C=R.history.length}catch(l){C=0}z.u_his=C;var Z;z.u_h=(Z=Kt.screen)==null?void 0:Z.height;var Y;z.u_w=(Y=Kt.screen)==null?void 0:Y.width;var Q;z.u_ah=(Q=Kt.screen)==null?void 0:Q.availHeight;var L;z.u_aw=(L=Kt.screen)==null?void 0:L.availWidth;var K;z.u_cd=(K=Kt.screen)==null?void 0: K.colorDepth}catch(l){}return z}; u9I=function(){if(!rhY)return null;var N=rhY();return"open"in N?N:null}; g.lQ=function(N){switch(KX(N)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; KX=function(N){return N&&"status"in N?N.status:-1}; g.W9=function(N,z){typeof N==="function"&&(N=g.qV(N));return window.setTimeout(N,z)}; g.GU=function(N,z){typeof N==="function"&&(N=g.qV(N));return window.setInterval(N,z)}; g.xA=function(N){window.clearTimeout(N)}; g.e5=function(N){window.clearInterval(N)}; g.yj=function(N){N=Jr(N);return typeof N==="string"&&N==="false"?!1:!!N}; g.fX=function(N,z){N=Jr(N);return N===void 0&&z!==void 0?z:Number(N||0)}; dm=function(){return g.XI("EXPERIMENTS_TOKEN","")}; Jr=function(N){return g.XI("EXPERIMENT_FLAGS",{})[N]}; sF=function(){for(var N=[],z=g.XI("EXPERIMENTS_FORCED_FLAGS",{}),v=g.f(Object.keys(z)),R=v.next();!R.done;R=v.next())R=R.value,N.push({key:R,value:String(z[R])});v=g.XI("EXPERIMENT_FLAGS",{});R=g.f(Object.keys(v));for(var C=R.next();!C.done;C=R.next())C=C.value,C.startsWith("force_")&&z[C]===void 0&&N.push({key:C,value:String(v[C])});return N}; TU=function(N,z,v,R,C,Z,Y,Q){function L(){(K&&"readyState"in K?K.readyState:0)===4&&z&&g.qV(z)(K)} v=v===void 0?"GET":v;R=R===void 0?"":R;Q=Q===void 0?!1:Q;var K=u9I();if(!K)return null;"onloadend"in K?K.addEventListener("loadend",L,!1):K.onreadystatechange=L;g.yj("debug_forward_web_query_parameters")&&(N=chb(N));K.open(v,N,!0);Z&&(K.responseType=Z);Y&&(K.withCredentials=!0);v=v==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(C=qPx(N,C))for(var l in C)K.setRequestHeader(l,C[l]),"content-type"===l.toLowerCase()&&(v=!1);v&&K.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(Q&&"setAttributionReporting"in XMLHttpRequest.prototype){N={eventSourceEligible:!0,triggerEligible:!1};try{K.setAttributionReporting(N)}catch(W){MV(W)}}K.send(R);return K}; qPx=function(N,z){z=z===void 0?{}:z;var v=YA(N),R=g.XI("INNERTUBE_CLIENT_NAME"),C=g.yj("web_ajax_ignore_global_headers_if_set"),Z;for(Z in MUx){var Y=g.XI(MUx[Z]),Q=Z==="X-Goog-AuthUser"||Z==="X-Goog-PageId";Z!=="X-Goog-Visitor-Id"||Y||(Y=g.XI("VISITOR_DATA"));var L;if(!(L=!Y)){if(!(L=v||(g.nt(N)?!1:!0))){L=N;var K;if(K=g.yj("add_auth_headers_to_remarketing_google_dot_com_ping")&&Z==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY")&&O$x(L))L=mR(L)||"",L=L.split("/"), L="/"+(L.length>1?L[1]:""),K=L==="/pagead";L=K?!0:!1}L=!L}L||C&&z[Z]!==void 0||R==="TVHTML5_UNPLUGGED"&&Q||(z[Z]=Y)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(v||!g.nt(N))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(v||!g.nt(N)){try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}l&&(z["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!v&&g.nt(N)||(z["X-YouTube-Ad-Signals"]= NL(LX()));return z}; nX=function(N,z){z.method="POST";z.postParams||(z.postParams={});return g.Fb(N,z)}; z3O=function(N,z){if(window.fetch&&z.format!=="XML"){var v={method:z.method||"GET",credentials:"same-origin"};z.headers&&(v.headers=z.headers);z.priority&&(v.priority=z.priority);N=wwu(N,z);var R=Nsu(N,z);R&&(v.body=R);z.withCredentials&&(v.credentials="include");var C=z.context||g.u7,Z=!1,Y;fetch(N,v).then(function(Q){if(!Z){Z=!0;Y&&g.xA(Y);var L=Q.ok,K=function(l){l=l||{};L?z.onSuccess&&z.onSuccess.call(C,l,Q):z.onError&&z.onError.call(C,l,Q);z.onFinish&&z.onFinish.call(C,l,Q)}; (z.format||"JSON")==="JSON"&&(L||Q.status>=400&&Q.status<500)?Q.json().then(K,function(){K(null)}):K(null)}}).catch(function(){z.onError&&z.onError.call(C,{},{})}); N=z.timeout||0;z.onFetchTimeout&&N>0&&(Y=g.W9(function(){Z||(Z=!0,g.xA(Y),z.onFetchTimeout.call(z.context||g.u7))},N))}else g.Fb(N,z)}; g.Fb=function(N,z){var v=z.format||"JSON";N=wwu(N,z);var R=Nsu(N,z),C=!1,Z=vZY(N,function(L){if(!C){C=!0;Q&&g.xA(Q);var K=g.lQ(L),l=null,W=400<=L.status&&L.status<500,G=500<=L.status&&L.status<600;if(K||W||G)l=R3u(N,v,L,z.convertToSafeHtml);K&&(K=Ck7(v,L,l));l=l||{};W=z.context||g.u7;K?z.onSuccess&&z.onSuccess.call(W,L,l):z.onError&&z.onError.call(W,L,l);z.onFinish&&z.onFinish.call(W,L,l)}},z.method,R,z.headers,z.responseType,z.withCredentials); R=z.timeout||0;if(z.onTimeout&&R>0){var Y=z.onTimeout;var Q=g.W9(function(){C||(C=!0,Z.abort(),g.xA(Q),Y.call(z.context||g.u7,Z))},R)}return Z}; wwu=function(N,z){z.includeDomain&&(N=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+N);var v=g.XI("XSRF_FIELD_NAME");if(z=z.urlParams)z[v]&&delete z[v],N=CX(N,z);return N}; Nsu=function(N,z){var v=g.XI("XSRF_FIELD_NAME"),R=g.XI("XSRF_TOKEN"),C=z.postBody||"",Z=z.postParams,Y=g.XI("XSRF_FIELD_NAME"),Q;z.headers&&(Q=z.headers["Content-Type"]);z.excludeXsrf||g.nt(N)&&!z.withCredentials&&g.nt(N)!==document.location.hostname||z.method!=="POST"||Q&&Q!=="application/x-www-form-urlencoded"||z.postParams&&z.postParams[Y]||(Z||(Z={}),Z[v]=R);(g.yj("ajax_parse_query_data_only_when_filled")&&Z&&Object.keys(Z).length>0||Z)&&typeof C==="string"&&(C=zU(C),g.CI(C,Z),C=z.postBodyFormat&& z.postBodyFormat==="JSON"?JSON.stringify(C):g.pt(C));Z=C||Z&&!g.wE(Z);!ZjK&&Z&&z.method!=="POST"&&(ZjK=!0,g.c6(Error("AJAX request with postData should use POST")));return C}; R3u=function(N,z,v,R){var C=null;switch(z){case "JSON":try{var Z=v.responseText}catch(Y){throw R=Error("Error reading responseText"),R.params=N,MV(R),Y;}N=v.getResponseHeader("Content-Type")||"";Z&&N.indexOf("json")>=0&&(Z.substring(0,5)===")]}'\n"&&(Z=Z.substring(5)),C=JSON.parse(Z));break;case "XML":if(N=(N=v.responseXML)?Yov(N):null)C={},g.h8(N.getElementsByTagName("*"),function(Y){C[Y.tagName]=ijv(Y)})}R&&jHb(C); return C}; jHb=function(N){if(g.v$(N))for(var z in N)z==="html_content"||tIO(z,"_html")?N[z]=Nu(N[z]):jHb(N[z])}; Ck7=function(N,z,v){if(z&&z.status===204)return!0;switch(N){case "JSON":return!!v;case "XML":return Number(v&&v.return_code)===0;case "RAW":return!0;default:return!!v}}; Yov=function(N){return N?(N=("responseXML"in N?N.responseXML:N).getElementsByTagName("root"))&&N.length>0?N[0]:null:null}; ijv=function(N){var z="";g.h8(N.childNodes,function(v){z+=v.nodeValue}); return z}; chb=function(N){var z=window.location.search,v=g.nt(N);g.yj("debug_handle_relative_url_for_query_forward_killswitch")||!v&&YA(N)&&(v=document.location.hostname);var R=mR(N);R=(v=v&&(v.endsWith("youtube.com")||v.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!v||R)return N;var C=zU(z),Z={};g.h8(aFu,function(Y){C[Y]&&(Z[Y]=C[Y])}); return Zz(N,Z)}; $A=function(N,z){var v=g.vZ(z),R;return(new g.mG(function(C,Z){v.onSuccess=function(Y){g.lQ(Y)?C(new QHK(Y)):Z(new m4("Request failed, status="+KX(Y),"net.badstatus",Y))}; v.onError=function(Y){Z(new m4("Unknown request error","net.unknown",Y))}; v.onTimeout=function(Y){Z(new m4("Request timed out","net.timeout",Y))}; R=g.Fb(N,v)})).YK(function(C){if(C instanceof SG){var Z; (Z=R)==null||Z.abort()}return k7(C)})}; g.UF=function(N,z,v,R){function C(Q,L,K){return Q.YK(function(l){if(L<=0||KX(l.xhr)===403)return k7(new m4("Request retried too many times","net.retryexhausted",l.xhr,l));l=Math.pow(2,v-L+1)*K;var W=Y>0?Math.min(Y,l):l;return Z(K).then(function(){return C($A(N,z),L-1,W)})})} function Z(Q){return new g.mG(function(L){setTimeout(L,Q)})} var Y=Y===void 0?-1:Y;return C($A(N,z),v-1,R)}; m4=function(N,z,v){Km.call(this,N+", errorCode="+z);this.errorCode=z;this.xhr=v;this.name="PromiseAjaxError"}; QHK=function(N){this.xhr=N}; B9=function(N){this.V=N===void 0?null:N;this.W=0;this.Z=null}; Ar=function(N){var z=new B9;N=N===void 0?null:N;z.W=2;z.Z=N===void 0?null:N;return z}; gm=function(N){var z=new B9;N=N===void 0?null:N;z.W=1;z.Z=N===void 0?null:N;return z}; g.P9=function(N,z,v,R,C){pX||kA.set(""+N,z,{vU:v,path:"/",domain:R===void 0?"youtube.com":R,secure:C===void 0?!1:C})}; g.Vj=function(N,z){if(!pX)return kA.get(""+N,z)}; g.S5=function(N,z,v){pX||kA.remove(""+N,z===void 0?"/":z,v===void 0?"youtube.com":v)}; Lqv=function(){if(g.yj("embeds_web_enable_cookie_detection_fix")){if(!g.u7.navigator.cookieEnabled)return!1}else if(!kA.isEnabled())return!1;if(!kA.isEmpty())return!0;g.yj("embeds_web_enable_cookie_detection_fix")?kA.set("TESTCOOKIESENABLED","1",{vU:60,sjl:"none",secure:!0}):kA.set("TESTCOOKIESENABLED","1",{vU:60});if(kA.get("TESTCOOKIESENABLED")!=="1")return!1;kA.remove("TESTCOOKIESENABLED");return!0}; g.t=function(N,z){if(N)return N[z.name]}; EF=function(N){var z=g.XI("INNERTUBE_HOST_OVERRIDE");z&&(N=String(z)+String(UL(N)));return N}; Kq_=function(N){var z={};g.yj("json_condensed_response")&&(z.prettyPrint="false");return N=Zz(N,z)}; hr=function(N,z){var v=v===void 0?{}:v;N={method:z===void 0?"POST":z,mode:YA(N)?"same-origin":"cors",credentials:YA(N)?"same-origin":"include"};z={};for(var R=g.f(Object.keys(v)),C=R.next();!C.done;C=R.next())C=C.value,v[C]&&(z[C]=v[C]);Object.keys(z).length>0&&(N.headers=z);return N}; H9=function(){var N=/Chrome\/(\d+)/.exec(g.mU());return N?parseFloat(N[1]):NaN}; o0=function(){var N=/\sCobalt\/(\S+)\s/.exec(g.mU());if(!N)return NaN;var z=[];N=g.f(N[1].split("."));for(var v=N.next();!v.done;v=N.next())v=parseInt(v.value,10),v>=0&&z.push(v);return parseFloat(z.join("."))}; bQ=function(){return g.Dz("android")&&g.Dz("chrome")&&!(g.Dz("trident/")||g.Dz("edge/"))&&!g.Dz("cobalt")}; lFf=function(){return g.Dz("armv7")||g.Dz("aarch64")||g.Dz("android")}; g.tr=function(){return g.Dz("cobalt")}; OF=function(){return g.Dz("cobalt")&&g.Dz("appletv")}; I0=function(){return g.Dz("(ps3; leanback shell)")||g.Dz("ps3")&&g.tr()}; Wq7=function(){return g.Dz("(ps4; leanback shell)")||g.Dz("ps4")&&g.tr()}; g.GEm=function(){return g.tr()&&(g.Dz("ps4 vr")||g.Dz("ps4 pro vr"))}; Xb=function(){var N=/WebKit\/([0-9]+)/.exec(g.mU());return!!(N&&parseInt(N[1],10)>=600)}; rm=function(){var N=/WebKit\/([0-9]+)/.exec(g.mU());return!!(N&&parseInt(N[1],10)>=602)}; xvI=function(){return g.Dz("iemobile")||g.Dz("windows phone")&&g.Dz("edge")}; qL=function(){return(uQ||c9)&&g.Dz("applewebkit")&&!g.Dz("version")&&(!g.Dz("safari")||g.Dz("gsa/"))}; wm=function(){return g.ML&&g.Dz("version/")}; N0=function(){return g.Dz("smart-tv")&&g.Dz("samsung")}; g.Dz=function(N){var z=g.mU();return z?z.toLowerCase().indexOf(N)>=0:!1}; z6=function(){return YJu()||qL()||wm()?!0:g.XI("EOM_VISITOR_DATA")?!1:!0}; ve=function(N,z){return z===void 0||z===null?N:z==="1"||z===!0||z===1||z==="True"?!0:!1}; Rs=function(N,z,v){for(var R in v)if(v[R]==z)return v[R];return N}; CH=function(N,z){return z===void 0||z===null?N:Number(z)}; Z_=function(N,z){return z===void 0||z===null?N:z.toString()}; Ya=function(N,z){if(z){if(N==="fullwidth")return Infinity;if(N==="fullheight")return 0}return N&&(z=N.match(e3_))&&(N=Number(z[2]),z=Number(z[1]),!isNaN(N)&&!isNaN(z)&&N>0)?z/N:NaN}; iy=function(N){var z=N.docid||N.video_id||N.videoId||N.id;if(z)return z;z=N.raw_player_response;z||(N=N.player_response)&&(z=JSON.parse(N));return z&&z.videoDetails&&z.videoDetails.videoId||null}; J4_=function(N){return jc(N,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.as=function(N){return N==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||N==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; jc=function(N,z){z=(z===void 0?0:z)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var v=N.raw_embedded_player_response;if(!v&&(N=N.embedded_player_response))try{v=JSON.parse(N)}catch(R){return z}return v?Rs(z,v.embeddedPlayerMode,y4m):z}; LH=function(N){Km.call(this,N.message||N.description||N.name);this.isMissing=N instanceof QJ;this.isTimeout=N instanceof m4&&N.errorCode=="net.timeout";this.isCanceled=N instanceof SG}; QJ=function(){Km.call(this,"Biscotti ID is missing from server")}; fFx=function(){if(g.yj("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!z6())return Error("User has not consented - not fetching biscotti id.");var N=g.XI("PLAYER_VARS",{});if(g.N8(N,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(J4_(N))return Error("Biscotti id fetching has been disabled for pfl.")}; FqY=function(){var N=fFx();if(N!==void 0)return k7(N);KH||(KH=$A("//googleads.g.doubleclick.net/pagead/id",dvx).then(sHK).YK(function(z){return TsO(2,z)})); return KH}; sHK=function(N){N=N.xhr.responseText;if(!x_(N,")]}'"))throw new QJ;N=JSON.parse(N.substr(4));if((N.type||1)>1)throw new QJ;N=N.id;EC7(N);KH=gm(N);nZK(18E5,2);return N}; TsO=function(N,z){z=new LH(z);EC7("");KH=Ar(z);N>0&&nZK(12E4,N-1);throw z;}; nZK=function(N,z){g.W9(function(){$A("//googleads.g.doubleclick.net/pagead/id",dvx).then(sHK,function(v){return TsO(z,v)}).YK(g.WV)},N)}; mvf=function(){try{var N=g.qx("yt.ads.biscotti.getId_");return N?N():FqY()}catch(z){return k7(z)}}; Uvm=function(N){N&&(N.dataset?N.dataset[$vu()]="true":ZmK(N))}; BsO=function(N){return N?N.dataset?N.dataset[$vu()]:N.getAttribute("data-loaded"):null}; $vu=function(){return A47.loaded||(A47.loaded="loaded".replace(/\-([a-z])/g,function(N,z){return z.toUpperCase()}))}; gZ_=function(){var N=document;if("visibilityState"in N)return N.visibilityState;var z=ly+"VisibilityState";if(z in N)return N[z]}; We=function(N,z){var v;Mj(N,function(R){v=z[R];return!!v}); return v}; G6=function(N){if(N.requestFullscreen)N=N.requestFullscreen(void 0);else if(N.webkitRequestFullscreen)N=N.webkitRequestFullscreen();else if(N.mozRequestFullScreen)N=N.mozRequestFullScreen();else if(N.msRequestFullscreen)N=N.msRequestFullscreen();else if(N.webkitEnterFullscreen)N=N.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return N instanceof Promise?N:Promise.resolve()}; JV=function(N){var z;g.xa()?ec()==N&&(z=document):z=N;return z&&(N=We(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))?(z=N.call(z),z instanceof Promise?z:Promise.resolve()):Promise.resolve()}; pn7=function(N){return g.G1(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in N})}; kEb=function(){var N=document;return g.G1(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(z){return"on"+z.toLowerCase()in N})}; g.xa=function(){return!!We(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; ec=function(N){N=N===void 0?!1:N;var z=We(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(N)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null}; yJ=function(N){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(N=N||window.event){this.event=N;for(var z in N)z in Pkv||(this[z]=N[z]);this.scale=N.scale;this.rotation=N.rotation;var v=N.target||N.srcElement;v&&v.nodeType==3&&(v=v.parentNode);this.target=v;var R=N.relatedTarget; if(R)try{R=R.nodeName?R:null}catch(C){R=null}else this.type=="mouseover"?R=N.fromElement:this.type=="mouseout"&&(R=N.toElement);this.relatedTarget=R;this.clientX=N.clientX!=void 0?N.clientX:N.pageX;this.clientY=N.clientY!=void 0?N.clientY:N.pageY;this.keyCode=N.keyCode?N.keyCode:N.which;this.charCode=N.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=N.altKey;this.ctrlKey=N.ctrlKey;this.shiftKey=N.shiftKey;this.metaKey=N.metaKey;this.V=N.pageX;this.W=N.pageY}}catch(C){}}; VjO=function(N){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;N.V=N.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);N.W=N.clientY+z}}; Sou=function(N,z,v,R){R=R===void 0?{}:R;N.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return MP(fH,function(C){var Z=typeof C[4]==="boolean"&&C[4]==!!R,Y=g.v$(C[4])&&g.v$(R)&&g.zM(C[4],R);return!!C.length&&C[0]==N&&C[1]==z&&C[2]==v&&(Z||Y)})}; g.dY=function(N,z,v,R){R=R===void 0?{}:R;if(!N||!N.addEventListener&&!N.attachEvent)return"";var C=Sou(N,z,v,R);if(C)return C;C=++EZf.count+"";var Z=!(z!="mouseenter"&&z!="mouseleave"||!N.addEventListener||"onmouseenter"in document);var Y=Z?function(Q){Q=new yJ(Q);if(!iK(Q.relatedTarget,function(L){return L==N},!0))return Q.currentTarget=N,Q.type=z,v.call(N,Q)}:function(Q){Q=new yJ(Q); Q.currentTarget=N;return v.call(N,Q)}; Y=g.qV(Y);N.addEventListener?(z=="mouseenter"&&Z?z="mouseover":z=="mouseleave"&&Z?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),h3f()||typeof R==="boolean"?N.addEventListener(z,Y,R):N.addEventListener(z,Y,!!R.capture)):N.attachEvent("on"+z,Y);fH[C]=[N,z,v,Y,R];return C}; oZK=function(N){return Hjb(N,function(z){return g.Zd(z,"ytp-ad-has-logging-urls")})}; Hjb=function(N,z){var v=document.body||document;return g.dY(v,"click",function(R){var C=iK(R.target,function(Z){return Z===v||z(Z)},!0); C&&C!==v&&!C.disabled&&(R.currentTarget=C,N.call(C,R))})}; g.T6=function(N){N&&(typeof N=="string"&&(N=[N]),g.h8(N,function(z){if(z in fH){var v=fH[z],R=v[0],C=v[1],Z=v[3];v=v[4];R.removeEventListener?h3f()||typeof v==="boolean"?R.removeEventListener(C,Z,v):R.removeEventListener(C,Z,!!v.capture):R.detachEvent&&R.detachEvent("on"+C,Z);delete fH[z]}}))}; FS=function(N){for(var z in fH)fH[z][0]==N&&g.T6(z)}; nH=function(N){N=N||window.event;var z;N.composedPath&&typeof N.composedPath==="function"?z=N.composedPath():z=N.path;z&&z.length?N=z[0]:(N=N||window.event,N=N.target||N.srcElement,N.nodeType==3&&(N=N.parentNode));return N}; m6=function(N){this.L=N;this.V=null;this.N=0;this.G=null;this.B=0;this.W=[];for(N=0;N<4;N++)this.W.push(0);this.Z=0;this.Vp=g.dY(window,"mousemove",(0,g.Zl)(this.J,this));this.Y=g.GU((0,g.Zl)(this.qd,this),25)}; $a=function(N){g.H.call(this);this.L=[];this.zE=N||this}; Uv=function(N,z,v,R){for(var C=0;C0?v:0;v=R?Date.now()+R*1E3:0;if((R=R?(0,g.gY)():pH())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{R.set(N,z,v)}catch(C){R.remove(N)}}}; g.Pe=function(N){var z=pH(),v=(0,g.gY)();if(!z&&!v||!window.JSON)return null;try{var R=z.get(N)}catch(C){}if(typeof R!=="string")try{R=v.get(N)}catch(C){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(C){}return R}; tjI=function(){var N=(0,g.gY)();if(N&&(N=N.W("yt-player-quality")))return N.creation}; g.VJ=function(N){try{var z=pH(),v=(0,g.gY)();z&&z.remove(N);v&&v.remove(N)}catch(R){}}; g.Sc=function(){return g.Pe("yt-remote-session-screen-id")}; Ojb=function(N){var z=this;this.W=void 0;this.V=!1;N.addEventListener("beforeinstallprompt",function(v){v.preventDefault();z.W=v}); N.addEventListener("appinstalled",function(){z.V=!0},{once:!0})}; Ev=function(){if(!g.u7.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.u7.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.u7.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.u7.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.u7.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(N){return"WEB_DISPLAY_MODE_UNKNOWN"}}; hV=function(){this.b_=!0}; IF2=function(){hV.instance||(hV.instance=new hV);return hV.instance}; Xnv=function(N){switch(N){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}}; r4m=function(){this.V=g.XI("ALT_PREF_COOKIE_NAME","PREF");this.W=g.XI("ALT_PREF_COOKIE_DOMAIN","youtube.com");var N=g.Vj(this.V);N&&this.parse(N)}; g.os=function(){He||(He=new r4m);return He}; g.D_=function(N,z){return!!((uQK("f"+(Math.floor(z/31)+1))||0)&1<0;)switch(N=Ql.shift(),N.type){case "ERROR":Yp.IT(N.payload);break;case "EVENT":Yp.logEvent(N.eventType,N.payload)}}; KJ=function(N){LJ||(Yp?Yp.IT(N):(Ql.push({type:"ERROR",payload:N}),Ql.length>10&&Ql.shift()))}; lR=function(N,z){LJ||(Yp?Yp.logEvent(N,z):(Ql.push({type:"EVENT",eventType:N,payload:z}),Ql.length>10&&Ql.shift()))}; Wz=function(N){if(N.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; GJ=function(N){return N.substr(0,N.indexOf(":"))||N}; g.xp=function(N,z,v,R,C){z=z===void 0?{}:z;v=v===void 0?R$v[N]:v;R=R===void 0?CP2[N]:R;C=C===void 0?Z6f[N]:C;g.XS.call(this,v,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:N},z));this.type=N;this.message=v;this.level=R;this.V=C;Object.setPrototypeOf(this,g.xp.prototype)}; et=function(N,z){g.xp.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:N},R$v.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,et.prototype)}; J6=function(N,z){var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.index=N;this.objectStore=z;Object.setPrototypeOf(this,J6.prototype)}; fJ=function(N,z,v,R){z=GJ(z);var C=N instanceof Error?N:Error("Unexpected error: "+N);if(C instanceof g.xp)return C;N={objectStoreNames:v,dbName:z,dbVersion:R};if(C.name==="QuotaExceededError")return new g.xp("QUOTA_EXCEEDED",N);if(g.yl&&C.name==="UnknownError")return new g.xp("QUOTA_MAYBE_EXCEEDED",N);if(C instanceof J6)return new g.xp("MISSING_INDEX",Object.assign({},N,{objectStore:C.objectStore,index:C.index}));if(C.name==="InvalidStateError"&&Ybm.some(function(Z){return C.message.includes(Z)}))return new g.xp("EXECUTE_TRANSACTION_ON_CLOSED_DB", N); if(C.name==="AbortError")return new g.xp("UNKNOWN_ABORT",N,C.message);C.args=[Object.assign({},N,{name:"IdbError",by:C.name})];C.level="WARNING";return C}; g.d8=function(N,z,v){var R=Z4();return new g.xp("IDB_NOT_SUPPORTED",{context:{caller:N,publicName:z,version:v,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})}; i6K=function(N){if(!N)throw Error();throw N;}; jOb=function(N){return N}; s5=function(N){this.V=N}; g.TJ=function(N){function z(C){if(R.state.status==="PENDING"){R.state={status:"REJECTED",reason:C};C=g.f(R.ME);for(var Z=C.next();!Z.done;Z=C.next())Z=Z.value,Z()}} function v(C){if(R.state.status==="PENDING"){R.state={status:"FULFILLED",value:C};C=g.f(R.hR);for(var Z=C.next();!Z.done;Z=C.next())Z=Z.value,Z()}} var R=this;this.state={status:"PENDING"};this.hR=[];this.ME=[];N=N.V;try{N(v,z)}catch(C){z(C)}}; adu=function(N,z,v,R,C){try{if(N.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var Z=v(N.state.value);Z instanceof g.TJ?Fi(N,z,Z,R,C):R(Z)}catch(Y){C(Y)}}; QO7=function(N,z,v,R,C){try{if(N.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var Z=v(N.state.reason);Z instanceof g.TJ?Fi(N,z,Z,R,C):R(Z)}catch(Y){C(Y)}}; Fi=function(N,z,v,R,C){z===v?C(new TypeError("Circular promise chain detected.")):v.then(function(Z){Z instanceof g.TJ?Fi(N,z,Z,R,C):R(Z)},function(Z){C(Z)})}; LNv=function(N,z,v){function R(){v(N.error);Z()} function C(){z(N.result);Z()} function Z(){try{N.removeEventListener("success",C),N.removeEventListener("error",R)}catch(Y){}} N.addEventListener("success",C);N.addEventListener("error",R)}; KNO=function(N){return new Promise(function(z,v){LNv(N,z,v)})}; nJ=function(N){return new g.TJ(new s5(function(z,v){LNv(N,z,v)}))}; me=function(N,z){return new g.TJ(new s5(function(v,R){function C(){var Z=N?z(N):null;Z?Z.then(function(Y){N=Y;C()},R):v()} C()}))}; ldu=function(N,z){this.request=N;this.cursor=z}; WNI=function(N){return nJ(N).then(function(z){return z?new ldu(N,z):null})}; g.Gbb=function(N){N.cursor.continue(void 0);return WNI(N.request)}; x4f=function(N,z){this.V=N;this.options=z;this.transactionCount=0;this.Z=Math.round((0,g.I)());this.W=!1}; g.U5=function(N,z,v){N=N.V.createObjectStore(z,v);return new $p(N)}; Bz=function(N,z){N.V.objectStoreNames.contains(z)&&N.V.deleteObjectStore(z)}; g.pJ=function(N,z,v){return g.A6(N,[z],{mode:"readwrite",sR:!0},function(R){return g.g8(R.objectStore(z),v)})}; g.A6=function(N,z,v,R){var C,Z,Y,Q,L,K,l,W,G,x,e,d;return g.S(function(T){switch(T.W){case 1:var m={mode:"readonly",sR:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof v==="string"?m.mode=v:Object.assign(m,v);C=m;N.transactionCount++;Z=C.sR?3:1;Y=0;case 2:if(Q){T.Zp(4);break}Y++;L=Math.round((0,g.I)());g.d_(T,5);K=N.V.transaction(z,C.mode);m=new kp(K);m=e$7(m,R);return g.k(T,m,7);case 7:return l=T.V,W=Math.round((0,g.I)()),J7x(N,L,W,Y,void 0,z.join(),C),T.return(l);case 5:G=g.U2(T);x=Math.round((0,g.I)()); e=fJ(G,N.V.name,z.join(),N.V.version);if((d=e instanceof g.xp&&!e.V)||Y>=Z)J7x(N,L,x,Y,e,z.join(),C),Q=e;T.Zp(2);break;case 4:return T.return(Promise.reject(Q))}})}; J7x=function(N,z,v,R,C,Z,Y){z=v-z;C?(C instanceof g.xp&&(C.type==="QUOTA_EXCEEDED"||C.type==="QUOTA_MAYBE_EXCEEDED")&&lR("QUOTA_EXCEEDED",{dbName:GJ(N.V.name),objectStoreNames:Z,transactionCount:N.transactionCount,transactionMode:Y.mode}),C instanceof g.xp&&C.type==="UNKNOWN_ABORT"&&(v-=N.Z,v<0&&v>=2147483648&&(v=0),lR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Z,transactionDuration:z,transactionCount:N.transactionCount,dbDuration:v}),N.W=!0),y7b(N,!1,R,Z,z,Y.tag),KJ(C)):y7b(N,!0,R,Z,z, Y.tag)}; y7b=function(N,z,v,R,C,Z){lR("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:N.W,duration:C,isSuccessful:z,tryCount:v,tag:Z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Z})}; $p=function(N){this.V=N}; g.Pz=function(N,z,v){N.V.createIndex(z,v,{unique:!1})}; fdu=function(N,z){return g.Vl(N,{query:z},function(v){return v.delete().then(function(){return g.St(v)})}).then(function(){})}; d4K=function(N,z,v){var R=[];return g.Vl(N,{query:z},function(C){if(!(v!==void 0&&R.length>=v))return R.push(C.getValue()),g.St(C)}).then(function(){return R})}; TAu=function(N){return"getAllKeys"in IDBObjectStore.prototype?nJ(N.V.getAllKeys(void 0,void 0)):sOY(N)}; sOY=function(N){var z=[];return g.FN7(N,{query:void 0},function(v){z.push(v.cursor.primaryKey);return g.Gbb(v)}).then(function(){return z})}; g.g8=function(N,z,v){return nJ(N.V.put(z,v))}; g.Vl=function(N,z,v){N=N.V.openCursor(z.query,z.direction);return E5(N).then(function(R){return me(R,v)})}; g.FN7=function(N,z,v){var R=z.query;z=z.direction;N="openKeyCursor"in IDBObjectStore.prototype?N.V.openKeyCursor(R,z):N.V.openCursor(R,z);return WNI(N).then(function(C){return me(C,v)})}; kp=function(N){var z=this;this.V=N;this.Z=new Map;this.W=!1;this.done=new Promise(function(v,R){z.V.addEventListener("complete",function(){v()}); z.V.addEventListener("error",function(C){C.currentTarget===C.target&&R(z.V.error)}); z.V.addEventListener("abort",function(){var C=z.V.error;if(C)R(C);else if(!z.W){C=g.xp;for(var Z=z.V.objectStoreNames,Y=[],Q=0;Q=v))return R.push(C.getValue()),g.St(C)}).then(function(){return R})}; g.h6=function(N,z,v){N=N.V.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return E5(N).then(function(R){return me(R,v)})}; Hz=function(N,z){this.request=N;this.cursor=z}; E5=function(N){return nJ(N).then(function(z){return z?new Hz(N,z):null})}; g.St=function(N){N.cursor.continue(void 0);return E5(N.request)}; $4x=function(N,z,v){return new Promise(function(R,C){function Z(){G||(G=new x4f(Y.result,{closed:W}));return G} var Y=z!==void 0?self.indexedDB.open(N,z):self.indexedDB.open(N);var Q=v.blocked,L=v.blocking,K=v.cyL,l=v.upgrade,W=v.closed,G;Y.addEventListener("upgradeneeded",function(x){try{if(x.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(Y.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");x.dataLoss&&x.dataLoss!=="none"&&lR("IDB_DATA_CORRUPTED",{reason:x.dataLossMessage||"unknown reason",dbName:GJ(N)});var e=Z(),d=new kp(Y.transaction); l&&l(e,function(T){return x.oldVersion=T},d); d.done.catch(function(T){C(T)})}catch(T){C(T)}}); Y.addEventListener("success",function(){var x=Y.result;L&&x.addEventListener("versionchange",function(){L(Z())}); x.addEventListener("close",function(){lR("IDB_UNEXPECTEDLY_CLOSED",{dbName:GJ(N),dbVersion:x.version});K&&K()}); R(Z())}); Y.addEventListener("error",function(){C(Y.error)}); Q&&Y.addEventListener("blocked",function(){Q()})})}; U47=function(N,z,v){v=v===void 0?{}:v;return $4x(N,z,v)}; oX=function(N,z){z=z===void 0?{}:z;var v,R,C,Z;return g.S(function(Y){if(Y.W==1)return g.d_(Y,2),v=self.indexedDB.deleteDatabase(N),R=z,(C=R.blocked)&&v.addEventListener("blocked",function(){C()}),g.k(Y,KNO(v),4); if(Y.W!=2)return g.nO(Y,0);Z=g.U2(Y);throw fJ(Z,N,"",-1);})}; D4=function(N,z){this.name=N;this.options=z;this.Z=!0;this.B=this.N=0}; BAI=function(N,z){return new g.xp("INCOMPATIBLE_DB_VERSION",{dbName:N.name,oldVersion:N.options.version,newVersion:z})}; g.bR=function(N,z){if(!z)throw g.d8("openWithToken",GJ(N.name));return N.open()}; A77=function(N,z){var v;return g.S(function(R){if(R.W==1)return g.k(R,g.bR(t6,z),2);v=R.V;return R.return(g.A6(v,["databases"],{sR:!0,mode:"readwrite"},function(C){var Z=C.objectStore("databases");return Z.get(N.actualName).then(function(Y){if(Y?N.actualName!==Y.actualName||N.publicName!==Y.publicName||N.userIdentifier!==Y.userIdentifier:1)return g.g8(Z,N).then(function(){})})}))})}; O5=function(N,z){var v;return g.S(function(R){if(R.W==1)return N?g.k(R,g.bR(t6,z),2):R.return();v=R.V;return R.return(v.delete("databases",N))})}; geK=function(N,z){var v,R;return g.S(function(C){return C.W==1?(v=[],g.k(C,g.bR(t6,z),2)):C.W!=3?(R=C.V,g.k(C,g.A6(R,["databases"],{sR:!0,mode:"readonly"},function(Z){v.length=0;return g.Vl(Z.objectStore("databases"),{},function(Y){N(Y.getValue())&&v.push(Y.getValue());return g.St(Y)})}),3)):C.return(v)})}; plx=function(N,z){return geK(function(v){return v.publicName===N&&v.userIdentifier!==void 0},z)}; kbO=function(){var N,z,v,R;return g.S(function(C){switch(C.W){case 1:N=Z4();if((z=N)==null?0:z.hasSucceededOnce)return C.return(!0);if(IX&&Xb()&&!rm()||g.Xi)return C.return(!1);try{if(v=self,!(v.indexedDB&&v.IDBIndex&&v.IDBKeyRange&&v.IDBObjectStore))return C.return(!1)}catch(Z){return C.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return C.return(!1);g.d_(C,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.k(C,A77(R,r8),4);case 4:return g.k(C,O5("yt-idb-test-do-not-use",r8),5);case 5:return C.return(!0);case 2:return g.U2(C),C.return(!1)}})}; PPu=function(){if(uR!==void 0)return uR;LJ=!0;return uR=kbO().then(function(N){LJ=!1;var z;if((z=CJ())!=null&&z.V){var v;z={hasSucceededOnce:((v=Z4())==null?void 0:v.hasSucceededOnce)||N};var R;(R=CJ())==null||R.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return N})}; cz=function(){return g.qx("ytglobal.idbToken_")||void 0}; g.qp=function(){var N=cz();return N?Promise.resolve(N):PPu().then(function(z){(z=z?r8:void 0)&&g.cU("ytglobal.idbToken_",z);return z})}; VW7=function(N){if(!g.uy())throw N=new g.xp("AUTH_INVALID",{dbName:N}),KJ(N),N;var z=g.rY();return{actualName:N+":"+z,publicName:N,userIdentifier:z}}; Sbu=function(N,z,v,R){var C,Z,Y,Q,L,K;return g.S(function(l){switch(l.W){case 1:return Z=(C=Error().stack)!=null?C:"",g.k(l,g.qp(),2);case 2:Y=l.V;if(!Y)throw Q=g.d8("openDbImpl",N,z),g.yj("ytidb_async_stack_killswitch")||(Q.stack=Q.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),KJ(Q),Q;Wz(N);L=v?{actualName:N,publicName:N,userIdentifier:void 0}:VW7(N);g.d_(l,3);return g.k(l,A77(L,Y),5);case 5:return g.k(l,U47(L.actualName,z,R),6);case 6:return l.return(l.V);case 3:return K=g.U2(l),g.d_(l,7),g.k(l,O5(L.actualName, Y),9);case 9:g.nO(l,8);break;case 7:g.U2(l);case 8:throw K;}})}; Eeb=function(N,z,v){v=v===void 0?{}:v;return Sbu(N,z,!1,v)}; h$u=function(N,z,v){v=v===void 0?{}:v;return Sbu(N,z,!0,v)}; H6O=function(N,z){z=z===void 0?{}:z;var v,R;return g.S(function(C){if(C.W==1)return g.k(C,g.qp(),2);if(C.W!=3){v=C.V;if(!v)return C.return();Wz(N);R=VW7(N);return g.k(C,oX(R.actualName,z),3)}return g.k(C,O5(R.actualName,v),0)})}; oeO=function(N,z,v){N=N.map(function(R){return g.S(function(C){return C.W==1?g.k(C,oX(R.actualName,z),2):g.k(C,O5(R.actualName,v),0)})}); return Promise.all(N).then(function(){})}; D4b=function(N){var z=z===void 0?{}:z;var v,R;return g.S(function(C){if(C.W==1)return g.k(C,g.qp(),2);if(C.W!=3){v=C.V;if(!v)return C.return();Wz(N);return g.k(C,plx(N,v),3)}R=C.V;return g.k(C,oeO(R,z,v),0)})}; b6U=function(N,z){z=z===void 0?{}:z;var v;return g.S(function(R){if(R.W==1)return g.k(R,g.qp(),2);if(R.W!=3){v=R.V;if(!v)return R.return();Wz(N);return g.k(R,oX(N,z),3)}return g.k(R,O5(N,v),0)})}; Mp=function(N,z){D4.call(this,N,z);this.options=z;Wz(N)}; tW2=function(N,z){var v;return function(){v||(v=new Mp(N,z));return v}}; g.w8=function(N,z){return tW2(N,z)}; Nf=function(N){return g.bR(O67(),N)}; Idm=function(N,z,v,R){var C,Z,Y;return g.S(function(Q){switch(Q.W){case 1:return C={config:N,hashData:z,timestamp:R!==void 0?R:(0,g.I)()},g.k(Q,Nf(v),2);case 2:return Z=Q.V,g.k(Q,Z.clear("hotConfigStore"),3);case 3:return g.k(Q,g.pJ(Z,"hotConfigStore",C),4);case 4:return Y=Q.V,Q.return(Y)}})}; Xl2=function(N,z,v,R,C){var Z,Y,Q;return g.S(function(L){switch(L.W){case 1:return Z={config:N,hashData:z,configData:v,timestamp:C!==void 0?C:(0,g.I)()},g.k(L,Nf(R),2);case 2:return Y=L.V,g.k(L,Y.clear("coldConfigStore"),3);case 3:return g.k(L,g.pJ(Y,"coldConfigStore",Z),4);case 4:return Q=L.V,L.return(Q)}})}; r7K=function(N){var z,v;return g.S(function(R){return R.W==1?g.k(R,Nf(N),2):R.W!=3?(z=R.V,v=void 0,g.k(R,g.A6(z,["coldConfigStore"],{mode:"readwrite",sR:!0},function(C){return g.h6(C.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Z){v=Z.getValue()})}),3)):R.return(v)})}; uV_=function(N){var z,v;return g.S(function(R){return R.W==1?g.k(R,Nf(N),2):R.W!=3?(z=R.V,v=void 0,g.k(R,g.A6(z,["hotConfigStore"],{mode:"readwrite",sR:!0},function(C){return g.h6(C.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Z){v=Z.getValue()})}),3)):R.return(v)})}; c7_=function(){return g.S(function(N){return g.k(N,D4b("ytGcfConfig"),0)})}; zR=function(){g.H.call(this);this.W=[];this.V=[];var N=g.qx("yt.gcf.config.hotUpdateCallbacks");N?(this.W=[].concat(g.U(N)),this.V=N):(this.V=[],g.cU("yt.gcf.config.hotUpdateCallbacks",this.V))}; i$=function(){var N=this;this.B=!1;this.Z=this.N=0;this.G=new zR;this.Oi={yZW:function(){N.B=!0}, U$8:function(){return N.V}, TcO:function(z){vd(N,z)}, lk:function(z){N.lk(z)}, jYp:function(z){Rq(N,z)}, vz:function(){return N.coldHashData}, V3:function(){return N.hotHashData}, TKT:function(){return N.W}, YNL:function(){return CG()}, jRL:function(){return ZY()}, D$o:function(){return g.qx("yt.gcf.config.coldHashData")}, m$l:function(){return g.qx("yt.gcf.config.hotHashData")}, Kzd:function(){qbv(N)}, SQ1:function(){N.lk(void 0);YH(N);delete i$.instance}, wvW:function(z){N.Z=z}, h9T:function(){return N.Z}}}; MW2=function(){if(!i$.instance){var N=new i$;i$.instance=N}return i$.instance}; zgm=function(N){var z;g.S(function(v){if(v.W==1)return g.yj("start_client_gcf")||g.yj("delete_gcf_config_db")?g.yj("start_client_gcf")?g.k(v,g.qp(),3):v.Zp(2):v.return();v.W!=2&&((z=v.V)&&g.uy()&&!g.yj("delete_gcf_config_db")?(N.B=!0,qbv(N)):(wlY(N),Nbu(N)));return g.yj("delete_gcf_config_db")?g.k(v,c7_(),0):v.Zp(0)})}; jb=function(){var N;return(N=ZY())!=null?N:g.XI("RAW_HOT_CONFIG_GROUP")}; vWu=function(N){var z,v,R,C,Z,Y;return g.S(function(Q){switch(Q.W){case 1:if(N.W)return Q.return(ZY());if(!N.B)return z=g.d8("getHotConfig IDB not initialized"),MV(z),Q.return(Promise.reject(z));v=cz();R=g.XI("TIME_CREATED_MS");if(!v){C=g.d8("getHotConfig token error");MV(C);Q.Zp(2);break}return g.k(Q,uV_(v),3);case 3:if((Z=Q.V)&&Z.timestamp>R)return vd(N,Z.config),N.lk(Z.hashData),Q.return(ZY());case 2:Nbu(N);if(!(v&&N.W&&N.hotHashData)){Q.Zp(4);break}return g.k(Q,Idm(N.W,N.hotHashData,v,R),4);case 4:return N.W? Q.return(ZY()):(Y=new g.XS("Config not available in ytConfig"),MV(Y),Q.return(Promise.reject(Y)))}})}; C1U=function(N){var z,v,R,C,Z,Y;return g.S(function(Q){switch(Q.W){case 1:if(N.V)return Q.return(CG());if(!N.B)return z=g.d8("getColdConfig IDB not initialized"),MV(z),Q.return(Promise.reject(z));v=cz();R=g.XI("TIME_CREATED_MS");if(!v){C=g.d8("getColdConfig");MV(C);Q.Zp(2);break}return g.k(Q,r7K(v),3);case 3:if((Z=Q.V)&&Z.timestamp>R)return Rq(N,Z.config),RgI(N,Z.configData),YH(N,Z.hashData),Q.return(CG());case 2:wlY(N);if(!(v&&N.V&&N.coldHashData&&N.configData)){Q.Zp(4);break}return g.k(Q,Xl2(N.V, N.coldHashData,N.configData,v,R),4);case 4:return N.V?Q.return(CG()):(Y=new g.XS("Config not available in ytConfig"),MV(Y),Q.return(Promise.reject(Y)))}})}; qbv=function(N){if(!N.W||!N.V){if(!cz()){var z=g.d8("scheduleGetConfigs");MV(z)}N.N||(N.N=g.oH.Mo(function(){return g.S(function(v){switch(v.W){case 1:return g.d_(v,2),g.k(v,vWu(N),4);case 4:g.nO(v,3);break;case 2:g.U2(v);case 3:return g.d_(v,5),g.k(v,C1U(N),7);case 7:g.nO(v,6);break;case 5:g.U2(v);case 6:N.N&&(N.N=0),g.fO(v)}})},100))}}; Zi7=function(N,z,v){var R,C,Z;return g.S(function(Y){switch(Y.W){case 1:if(!g.yj("start_client_gcf")){Y.Zp(0);break}v&&vd(N,v);N.lk(z);R=cz();if(!R){Y.Zp(3);break}if(v){Y.Zp(4);break}return g.k(Y,uV_(R),5);case 5:C=Y.V,v=(Z=C)==null?void 0:Z.config;case 4:return g.k(Y,Idm(v,z,R),3);case 3:if(v)for(var Q=v,L=g.f(N.G.V),K=L.next();!K.done;K=L.next())K=K.value,K(Q);g.fO(Y)}})}; YTI=function(N,z,v){var R,C,Z,Y;return g.S(function(Q){if(Q.W==1){if(!g.yj("start_client_gcf"))return Q.Zp(0);YH(N,z);return(R=cz())?v?Q.Zp(4):g.k(Q,r7K(R),5):Q.Zp(0)}Q.W!=4&&(C=Q.V,v=(Z=C)==null?void 0:Z.config);if(!v)return Q.Zp(0);Y=v.configData;return g.k(Q,Xl2(v,z,Y,R),0)})}; ii7=function(){var N=MW2(),z=(0,g.I)()-N.Z;if(!(N.Z!==0&&z0&&(z.request={internalExperimentFlags:v});a32(N,void 0,z);Qh2(void 0,z);L1u(void 0,z);K1I(N,void 0,z);l3m(void 0,z);g.yj("start_client_gcf")&&W1b(void 0,z);g.XI("DELEGATED_SESSION_ID")&& !g.yj("pageid_as_header_web")&&(z.user={onBehalfOfUser:g.XI("DELEGATED_SESSION_ID")});!g.yj("fill_delegate_context_in_gel_killswitch")&&(N=g.XI("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:N}));N=g.XI("INNERTUBE_CONTEXT");var R;if(g.yj("enable_persistent_device_token")&&(N==null?0:(R=N.client)==null?0:R.rolloutToken)){var C;z.client.rolloutToken=N==null?void 0:(C=N.client)==null?void 0:C.rolloutToken}R=Object;C=R.assign;N=z.client; v={};for(var Z=g.f(Object.entries(zU(g.XI("DEVICE","")))),Y=Z.next();!Y.done;Y=Z.next()){var Q=g.f(Y.value);Y=Q.next().value;Q=Q.next().value;Y==="cbrand"?v.deviceMake=Q:Y==="cmodel"?v.deviceModel=Q:Y==="cbr"?v.browserName=Q:Y==="cbrver"?v.browserVersion=Q:Y==="cos"?v.osName=Q:Y==="cosver"?v.osVersion=Q:Y==="cplatform"&&(v.platform=Q)}z.client=C.call(R,N,v);return z}; a32=function(N,z,v){N=N.aG;if(N==="WEB"||N==="MWEB"||N===1||N===2)if(z){v=HG(z,$W,96)||new $W;var R=Ev();R=Object.keys(GAu).indexOf(R);R=R===-1?null:R;R!==null&&NU(v,3,R);bY(z,$W,96,v)}else v&&(v.client.mainAppWebInfo=(R=v.client.mainAppWebInfo)!=null?R:{},v.client.mainAppWebInfo.webDisplayMode=Ev())}; Qh2=function(N,z){var v=g.qx("yt.embedded_player.embed_url");v&&(N?(z=HG(N,pi,7)||new pi,Mb(z,4,v),bY(N,pi,7,z)):z&&(z.thirdParty={embedUrl:v}))}; L1u=function(N,z){var v;if(g.yj("web_log_memory_total_kbytes")&&((v=g.u7.navigator)==null?0:v.deviceMemory)){var R;v=(R=g.u7.navigator)==null?void 0:R.deviceMemory;N?d4(N,95,I1(v*1E6)):z&&(z.client.memoryTotalKbytes=""+v*1E6)}}; K1I=function(N,z,v){if(N.appInstallData)if(z){var R;v=(R=HG(z,m1,62))!=null?R:new m1;Mb(v,6,N.appInstallData);bY(z,m1,62,v)}else v&&(v.client.configInfo=v.client.configInfo||{},v.client.configInfo.appInstallData=N.appInstallData)}; l3m=function(N,z){var v=MjU();v&&(N?NU(N,61,xVb[v]):z&&(z.client.connectionType=v));g.yj("web_log_effective_connection_type")&&(v=NAm())&&(N?NU(N,94,egu[v]):z&&(z.client.effectiveConnectionType=v))}; JBO=function(N,z,v){v=v===void 0?{}:v;var R={};g.XI("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":g.XI("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":v.visitorData||g.XI("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return R;z=v.w9||g.XI("AUTHORIZATION");z||(N?z="Bearer "+g.qx("gapi.auth.getToken")().access_token:(N=IF2().Sx(LG),g.yj("pageid_as_header_web")||delete N["X-Goog-PageId"],R=Object.assign({},R,N)));z&&(R.Authorization=z);return R}; W1b=function(N,z){var v=ii7();if(v){var R=v.coldConfigData,C=v.coldHashData;v=v.hotHashData;if(N){var Z;z=(Z=HG(N,m1,62))!=null?Z:new m1;R=Mb(z,1,R);Mb(R,3,C).lk(v);bY(N,m1,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},R&&(z.client.configInfo.coldConfigData=R),C&&(z.client.configInfo.coldHashData=C),v&&(z.client.configInfo.hotHashData=v))}}; KG=function(N,z){this.version=N;this.args=z}; Jq=function(N,z){this.topic=N;this.V=z}; fG=function(N,z){var v=yi();v&&v.publish.call(v,N.toString(),N,z)}; dVu=function(N){var z=yBf,v=yi();if(!v)return 0;var R=v.subscribe(z.toString(),function(C,Z){var Y=g.qx("ytPubsub2Pubsub2SkipSubKey");Y&&Y==R||(Y=function(){if(d5[R])try{if(Z&&z instanceof Jq&&z!=C)try{var Q=z.V,L=Z;if(!L.args||!L.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!Q.GX){var K=new Q;Q.GX=K.version}var l=Q.GX}catch(W){}if(!l||L.version!=l)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{Z=Reflect.construct(Q, g.T1(L.args))}catch(W){throw W.message="yt.pubsub2.Data.deserialize(): "+W.message,W;}}catch(W){throw W.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+z.toString()+": "+W.message,W;}N.call(window,Z)}catch(W){g.c6(W)}},f32[z.toString()]?g.zJ()?g.oH.Mo(Y):g.W9(Y,0):Y())}); d5[R]=!0;s1[z.toString()]||(s1[z.toString()]=[]);s1[z.toString()].push(R);return R}; F12=function(){var N=shU,z=dVu(function(v){N.apply(void 0,arguments);Tbx(z)}); return z}; Tbx=function(N){var z=yi();z&&(typeof N==="number"&&(N=[N]),g.h8(N,function(v){z.unsubscribeByKey(v);delete d5[v]}))}; yi=function(){return g.qx("ytPubsub2Pubsub2Instance")}; TR=function(N,z,v){v=v===void 0?{sampleRate:.1}:v;Math.random()ABu||Y=P17&&(kH++,g.yj("abandon_compression_after_N_slow_zips")?pG===g.fX("compression_disable_point")&&kH>V1I&&(Bd=!1):Bd=!1);ST_(z);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=N;R.postParams=void 0;C(v,R)}; EWU=function(N){var z=z===void 0?!1:z;var v=v===void 0?!1:v;var R=(0,g.I)(),C={startTime:R,ticks:{},infos:{}},Z=z?g.qx("yt.logging.gzipForFetch",!1):!0;if(Bd&&Z){if(!N.body)return N;try{var Y=v?N.body:typeof N.body==="string"?N.body:JSON.stringify(N.body);Z=Y;if(!v&&typeof Y==="string"){var Q=BbK(Y);if(Q!=null&&(Q>ABu||Q=P17)if(kH++,g.yj("abandon_compression_after_N_slow_zips")||g.yj("abandon_compression_after_N_slow_zips_lr")){z=kH/pG;var K=V1I/g.fX("compression_disable_point");pG>0&&pG%g.fX("compression_disable_point")===0&&z>=K&&(Bd=!1)}else Bd=!1;ST_(C)}}N.headers=Object.assign({},{"Content-Encoding":"gzip"},N.headers||{});N.body=Z;return N}catch(l){return MV(l),N}}else return N}; BbK=function(N){try{return(new Blob(N.split(""))).size}catch(z){return MV(z),null}}; ST_=function(N){g.yj("gel_compression_csi_killswitch")||!g.yj("log_gel_compression_latency")&&!g.yj("log_gel_compression_latency_lr")||TR("gel_compression",N,{sampleRate:.1})}; Vi=function(N){var z=this;this.Oo=this.V=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.oQ=function(){}; this.now=Date.now;this.Nj=!1;this.Oi={QY1:function(l){z.QO=l}, RbS:function(){z.A5()}, zm:function(){z.Ua()}, bd:function(l){return g.S(function(W){return g.k(W,z.bd(l),0)})}, o5:function(l,W){return z.o5(l,W)}, VJ:function(){z.VJ()}}; var v;this.KQ=(v=N.KQ)!=null?v:100;var R;this.I2=(R=N.I2)!=null?R:1;var C;this.ey=(C=N.ey)!=null?C:2592E6;var Z;this.qK=(Z=N.qK)!=null?Z:12E4;var Y;this.cF=(Y=N.cF)!=null?Y:5E3;var Q;this.QO=(Q=N.QO)!=null?Q:void 0;this.Sg=!!N.Sg;var L;this.RN=(L=N.RN)!=null?L:.1;var K;this.Xh=(K=N.Xh)!=null?K:10;N.handleError&&(this.handleError=N.handleError);N.oQ&&(this.oQ=N.oQ);N.Nj&&(this.Nj=N.Nj);N.Oo&&(this.Oo=N.Oo);this.j8=N.j8;this.nX=N.nX;this.Fk=N.Fk;this.bE=N.bE;this.sendFn=N.sendFn;this.o0=N.o0;this.AF= N.AF;Pd(this)&&(!this.j8||this.j8("networkless_logging"))&&hgu(this)}; hgu=function(N){Pd(N)&&!N.Nj&&(N.V=!0,N.Sg&&Math.random()<=N.RN&&N.Fk.ez(N.QO),N.VJ(),N.bE.r$()&&N.A5(),N.bE.listen(N.o0,N.A5.bind(N)),N.bE.listen(N.AF,N.Ua.bind(N)))}; DVx=function(N,z){if(!Pd(N))throw Error("IndexedDB is not supported: updateRequestHandlers");var v=z.options.onError?z.options.onError:function(){}; z.options.onError=function(C,Z){var Y,Q,L,K;return g.S(function(l){switch(l.W){case 1:Y=Hi2(Z);(Q=oWm(Z))&&N.j8&&N.j8("web_enable_error_204")&&N.handleError(Error("Request failed due to compression"),z.url,Z);if(!(N.j8&&N.j8("nwl_consider_error_code")&&Y||N.j8&&!N.j8("nwl_consider_error_code")&&N.potentialEsfErrorCounter<=N.Xh)){l.Zp(2);break}if(!N.bE.rM){l.Zp(3);break}return g.k(l,N.bE.rM(),3);case 3:if(N.bE.r$()){l.Zp(2);break}v(C,Z);if(!N.j8||!N.j8("nwl_consider_error_code")||((L=z)==null?void 0: L.id)===void 0){l.Zp(6);break}return g.k(l,N.Fk.mH(z.id,N.QO,!1),6);case 6:return l.return();case 2:if(N.j8&&N.j8("nwl_consider_error_code")&&!Y&&N.potentialEsfErrorCounter>N.Xh)return l.return();N.potentialEsfErrorCounter++;if(((K=z)==null?void 0:K.id)===void 0){l.Zp(8);break}return z.sendCount=400&&N<=599?!1:!0}; oWm=function(N){var z;N=N==null?void 0:(z=N.error)==null?void 0:z.code;return!(N!==400&&N!==415)}; biI=function(){if(E1)return E1();var N={};E1=g.w8("LogsDatabaseV2",{ZR:(N.LogsRequestsStore={e7:2},N),shared:!1,upgrade:function(z,v,R){v(2)&&g.U5(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});v(3);v(5)&&(R=R.objectStore("LogsRequestsStore"),R.V.indexNames.contains("newRequest")&&R.V.deleteIndex("newRequest"),g.Pz(R,"newRequestV2",["status","interface","timestamp"]));v(7)&&Bz(z,"sapisid");v(9)&&Bz(z,"SWHealthLog")}, version:9});return E1()}; hq=function(N){return g.bR(biI(),N)}; Oi7=function(N,z){var v,R,C,Z;return g.S(function(Y){if(Y.W==1)return v={startTime:(0,g.I)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.k(Y,hq(z),2);if(Y.W!=3)return R=Y.V,C=Object.assign({},N,{options:JSON.parse(JSON.stringify(N.options)),interface:g.XI("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.k(Y,g.pJ(R,"LogsRequestsStore",C),3);Z=Y.V;v.ticks.tc=(0,g.I)();t1I(v);return Y.return(Z)})}; I3_=function(N,z){var v,R,C,Z,Y,Q,L,K;return g.S(function(l){if(l.W==1)return v={startTime:(0,g.I)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.k(l,hq(z),2);if(l.W!=3)return R=l.V,C=g.XI("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[N,C,0],Y=[N,C,(0,g.I)()],Q=IDBKeyRange.bound(Z,Y),L="prev",g.yj("use_fifo_for_networkless")&&(L="next"),K=void 0,g.k(l,g.A6(R,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(W){return g.h6(W.objectStore("LogsRequestsStore").index("newRequestV2"), {query:Q,direction:L},function(G){G.getValue()&&(K=G.getValue(),N==="NEW"&&(K.status="QUEUED",G.update(K)))})}),3); v.ticks.tc=(0,g.I)();t1I(v);return l.return(K)})}; X6Y=function(N,z){var v;return g.S(function(R){if(R.W==1)return g.k(R,hq(z),2);v=R.V;return R.return(g.A6(v,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(C){var Z=C.objectStore("LogsRequestsStore");return Z.get(N).then(function(Y){if(Y)return Y.status="QUEUED",g.g8(Z,Y).then(function(){return Y})})}))})}; rB_=function(N,z,v,R){v=v===void 0?!0:v;var C;return g.S(function(Z){if(Z.W==1)return g.k(Z,hq(z),2);C=Z.V;return Z.return(g.A6(C,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(Y){var Q=Y.objectStore("LogsRequestsStore");return Q.get(N).then(function(L){return L?(L.status="NEW",v&&(L.sendCount+=1),R!==void 0&&(L.options.compress=R),g.g8(Q,L).then(function(){return L})):g.TJ.resolve(void 0)})}))})}; uIK=function(N,z){var v;return g.S(function(R){if(R.W==1)return g.k(R,hq(z),2);v=R.V;return R.return(v.delete("LogsRequestsStore",N))})}; cBx=function(N){var z,v;return g.S(function(R){if(R.W==1)return g.k(R,hq(N),2);z=R.V;v=(0,g.I)()-2592E6;return g.k(R,g.A6(z,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(C){return g.Vl(C.objectStore("LogsRequestsStore"),{},function(Z){if(Z.getValue().timestamp<=v)return Z.delete().then(function(){return g.St(Z)})})}),0)})}; qTu=function(){g.S(function(N){return g.k(N,D4b("LogsDatabaseV2"),0)})}; t1I=function(N){g.yj("nwl_csi_killswitch")||TR("networkless_performance",N,{sampleRate:1})}; w6O=function(N){return g.bR(M1u(),N)}; NmO=function(N){var z,v;g.S(function(R){if(R.W==1)return g.k(R,w6O(N),2);z=R.V;v=(0,g.I)()-2592E6;return g.k(R,g.A6(z,["SWHealthLog"],{mode:"readwrite",sR:!0},function(C){return g.Vl(C.objectStore("SWHealthLog"),{},function(Z){if(Z.getValue().timestamp<=v)return Z.delete().then(function(){return g.St(Z)})})}),0)})}; zXK=function(N){var z;return g.S(function(v){if(v.W==1)return g.k(v,w6O(N),2);z=v.V;return g.k(v,z.clear("SWHealthLog"),0)})}; g.Hd=function(N,z,v,R,C,Z,Y){C=C===void 0?"":C;Z=Z===void 0?!1:Z;Y=Y===void 0?!1:Y;if(N)if(v&&!g.tr())MV(new g.XS("Legacy referrer-scrubbed ping detected")),N&&vAf(N,void 0,{scrubReferrer:!0});else if(C)TU(N,z,"POST",C,R);else if(g.XI("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||Y)TU(N,z,"GET","",R,void 0,Z,Y);else{b:{try{c:{var Q=new mjO({url:N});if(N_(Q.V,"dsh")==="1")var L=null;else{var K=N_(Q.V,"ae");if(K==="1"){var l=N_(Q.V,"adurl");if(l)try{L={version:3,vx:decodeURIComponent(l),Tr:zo(Q.V,"act=1", "ri=1",$jU(Q))};break c}catch(x){}}L=K==="2"?{version:4,vx:zo(Q.V,"dct=1","suid="+Q.W,""),Tr:zo(Q.V,"act=1","ri=1","suid="+Q.W)}:null}}if(L){var W=mR(N);var G=!(!W||!W.endsWith("/aclk")||VX(N,"ri")!=="1");break b}}catch(x){}G=!1}G?RX_(N)?(z&&z(),v=!0):v=!1:v=!1;v||vAf(N,z)}}; RX_=function(N,z){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(N,z===void 0?"":z))return!0}catch(v){}return!1}; vAf=function(N,z,v){v=v===void 0?{}:v;var R=new Image,C=""+CQv++;oq[C]=R;R.onload=R.onerror=function(){z&&oq[C]&&z();delete oq[C]}; v.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=N}; ZXK=function(N){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?N+"&nis=6":N+"&nis=5"}; b$=function(){DY||(DY=new RX("yt.offline"));return DY}; YFI=function(N){if(g.yj("offline_error_handling")){var z=b$().get("errors",!0)||{};z[N.message]={name:N.name,stack:N.stack};N.level&&(z[N.message].level=N.level);b$().set("errors",z,2592E3,!0)}}; tq=function(){this.V=new Map;this.W=!1}; O1=function(){if(!tq.instance){var N=g.qx("yt.networkRequestMonitor.instance")||new tq;g.cU("yt.networkRequestMonitor.instance",N);tq.instance=N}return tq.instance}; Iq=function(){g.Ws.call(this);var N=this;this.W=!1;this.V=ekO();this.V.listen("networkstatus-online",function(){if(N.W&&g.yj("offline_error_handling")){var z=b$().get("errors",!0);if(z){for(var v in z)if(z[v]){var R=new g.XS(v,"sent via offline_errors");R.name=z[v].name;R.stack=z[v].stack;R.level=z[v].level;g.c6(R)}b$().set("errors",{},2592E3,!0)}}})}; iXu=function(){if(!Iq.instance){var N=g.qx("yt.networkStatusManager.instance")||new Iq;g.cU("yt.networkStatusManager.instance",N);Iq.instance=N}return Iq.instance}; g.XC=function(N){N=N===void 0?{}:N;g.Ws.call(this);var z=this;this.V=this.N=0;this.W=iXu();var v=g.qx("yt.networkStatusManager.instance.listen").bind(this.W);v&&(N.rateLimit?(this.rateLimit=N.rateLimit,v("networkstatus-online",function(){j07(z,"publicytnetworkstatus-online")}),v("networkstatus-offline",function(){j07(z,"publicytnetworkstatus-offline")})):(v("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),v("networkstatus-offline",function(){z.dispatchEvent("publicytnetworkstatus-offline")})))}; j07=function(N,z){N.rateLimit?N.V?(g.oH.gG(N.N),N.N=g.oH.Mo(function(){N.Z!==z&&(N.dispatchEvent(z),N.Z=z,N.V=(0,g.I)())},N.rateLimit-((0,g.I)()-N.V))):(N.dispatchEvent(z),N.Z=z,N.V=(0,g.I)()):N.dispatchEvent(z)}; u$=function(){var N=Vi.call;r5||(r5=new g.XC({gMS:!0,kSp:!0}));N.call(Vi,this,{Fk:{ez:cBx,dE:uIK,Ii:I3_,n6:X6Y,mH:rB_,set:Oi7},bE:r5,handleError:function(z,v,R){var C,Z=R==null?void 0:(C=R.error)==null?void 0:C.code;if(Z===400||Z===415){var Y;z=new g.XS(z.message,v,R==null?void 0:(Y=R.error)==null?void 0:Y.code);MV(z,void 0,void 0,void 0,!0)}else g.c6(z)}, oQ:MV,sendFn:azv,now:g.I,b5:YFI,nX:g.Np(),o0:"publicytnetworkstatus-online",AF:"publicytnetworkstatus-offline",Sg:!0,RN:.1,Xh:g.fX("potential_esf_error_limit",10),j8:g.yj,Nj:!(g.uy()&&g.nt(document.location.toString())!=="www.youtube-nocookie.com")});this.Z=new g.Ww;g.yj("networkless_immediately_drop_all_requests")&&qTu();b6U("LogsDatabaseV2")}; cd=function(){var N=g.qx("yt.networklessRequestController.instance");N||(N=new u$,g.cU("yt.networklessRequestController.instance",N),g.yj("networkless_logging")&&g.qp().then(function(z){N.QO=z;hgu(N);N.Z.resolve();N.Sg&&Math.random()<=N.RN&&N.QO&&NmO(N.QO);g.yj("networkless_immediately_drop_sw_health_store")&&Q0u(N)})); return N}; Q0u=function(N){var z;g.S(function(v){if(!N.QO)throw z=g.d8("clearSWHealthLogsDb"),z;return v.return(zXK(N.QO).catch(function(R){N.handleError(R)}))})}; azv=function(N,z,v,R){R=R===void 0?!1:R;z=g.yj("web_fp_via_jspb")?Object.assign({},z):z;g.yj("use_cfr_monitor")&&L4U(N,z);if(g.yj("use_request_time_ms_header"))z.headers&&YA(N)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.I)())));else{var C;if((C=z.postParams)==null?0:C.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,g.I)())}v&&Object.keys(z).length===0?g.Hd(N):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),g5(N,z.postBody, z,g.Fb,R)):g5(N,JSON.stringify(z.postParams),z,nX,R):g.Fb(N,z)}; qf=function(N,z){g.yj("use_event_time_ms_header")&&YA(N)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.I)())));return z}; L4U=function(N,z){var v=z.onError?z.onError:function(){}; z.onError=function(C,Z){O1().requestComplete(N,!1);v(C,Z)}; var R=z.onSuccess?z.onSuccess:function(){}; z.onSuccess=function(C,Z){O1().requestComplete(N,!0);R(C,Z)}}; g.Mf=function(N){this.config_=null;N?this.config_=N:jhY()&&(this.config_=g.aq())}; g.w5=function(N,z,v,R){function C(K){try{if((K===void 0?0:K)&&R.retry&&!R.networklessOptions.bypassNetworkless)Z.method="POST",R.networklessOptions.writeThenSend?cd().writeThenSend(L,Z):cd().sendAndWrite(L,Z);else if(R.compress){var l=!R.networklessOptions.writeThenSend;if(Z.postBody){var W=Z.postBody;typeof W!=="string"&&(W=JSON.stringify(Z.postBody));g5(L,W,Z,g.Fb,l)}else g5(L,JSON.stringify(Z.postParams),Z,nX,l)}else g.yj("web_all_payloads_via_jspb")?g.Fb(L,Z):nX(L,Z)}catch(G){if(G.name==="InvalidAccessError")MV(Error("An extension is blocking network request.")); else throw G;}} !g.XI("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&MV(new g.XS("Missing VISITOR_DATA when sending innertube request.",z,v,R));if(!N.isReady())throw N=new g.XS("innertube xhrclient not ready",z,v,R),g.c6(N),N;var Z={headers:R.headers||{},method:"POST",postParams:v,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()}, onFetchTimeout:R.onTimeout,onSuccess:function(K,l){if(R.onSuccess)R.onSuccess(l)}, onFetchSuccess:function(K){if(R.onSuccess)R.onSuccess(K)}, onError:function(K,l){if(R.onError)R.onError(l)}, onFetchError:function(K){if(R.onError)R.onError(K)}, timeout:R.timeout,withCredentials:!0,compress:R.compress};Z.headers["Content-Type"]||(Z.headers["Content-Type"]="application/json");v="";var Y=N.config_.sY;Y&&(v=Y);Y=N.config_.BR||!1;var Q=JBO(Y,v,R);Object.assign(Z.headers,Q);Z.headers.Authorization&&!v&&Y&&(Z.headers["x-origin"]=window.location.origin);var L=CX(""+v+("/youtubei/"+N.config_.innertubeApiVersion+"/"+z),{alt:"json"});g.qx("ytNetworklessLoggingInitializationOptions")&&K4b.isNwlInitialized?PPu().then(function(K){C(K)}):C(!1)}; g.C1=function(N,z,v){var R=g.Nq();if(R&&z){var C=R.subscribe(N,function(){function Z(){zF[C]&&z.apply&&typeof z.apply=="function"&&z.apply(v||window,Y)} var Y=arguments;try{g.va[N]?Z():g.W9(Z,0)}catch(Q){g.c6(Q)}},v); zF[C]=!0;RA[N]||(RA[N]=[]);RA[N].push(C);return C}return 0}; lzu=function(N){var z=g.C1("LOGGED_IN",function(v){N.apply(void 0,arguments);g.ZK(z)})}; g.ZK=function(N){var z=g.Nq();z&&(typeof N==="number"?N=[N]:typeof N==="string"&&(N=[parseInt(N,10)]),g.h8(N,function(v){z.unsubscribeByKey(v);delete zF[v]}))}; g.YL=function(N,z){var v=g.Nq();return v?v.publish.apply(v,arguments):!1}; GUu=function(N){var z=g.Nq();if(z)if(z.clear(N),N)W4I(N);else for(var v in RA)W4I(v)}; g.Nq=function(){return g.u7.ytPubsubPubsubInstance}; W4I=function(N){RA[N]&&(N=RA[N],g.h8(N,function(z){zF[z]&&delete zF[z]}),N.length=0)}; g.iD=function(N,z,v){xLO(N,z,v===void 0?null:v)}; xLO=function(N,z,v){v=v===void 0?null:v;var R=eXU(N),C=document.getElementById(R),Z=C&&BsO(C),Y=C&&!Z;Z?z&&z():(z&&(Z=g.C1(R,z),z=""+g.Cm(z),Jr2[z]=Z),Y||(C=yrK(N,R,function(){BsO(C)||(Uvm(C),g.YL(R),g.W9(function(){GUu(R)},0))},v)))}; yrK=function(N,z,v,R){R=R===void 0?null:R;var C=g.wL("SCRIPT");C.id=z;C.onload=function(){v&&setTimeout(v,0)}; C.onreadystatechange=function(){switch(C.readyState){case "loaded":case "complete":C.onload()}}; R&&C.setAttribute("nonce",R);g.aI(C,g.FI(N));N=document.getElementsByTagName("head")[0]||document.body;N.insertBefore(C,N.firstChild);return C}; eXU=function(N){var z=document.createElement("a");g.q8(z,N);N=z.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+f9(N)}; jD=function(N,z){if(N===z)N=!0;else if(Array.isArray(N)&&Array.isArray(z))N=g.VU(N,z,jD);else if(g.v$(N)&&g.v$(z))a:if(g.uW(N).length!=g.uW(z).length)N=!1;else{for(var v in N)if(!jD(N[v],z[v])){N=!1;break a}N=!0}else N=!1;return N}; GF=function(N){var z=g.SI.apply(1,arguments);if(!aA(N)||z.some(function(R){return!aA(R)}))throw Error("Only objects may be merged."); z=g.f(z);for(var v=z.next();!v.done;v=z.next())Wa(N,v.value)}; Wa=function(N,z){for(var v in z)if(aA(z[v])){if(v in N&&!aA(N[v]))throw Error("Cannot merge an object into a non-object.");v in N||(N[v]={});Wa(N[v],z[v])}else if(xL(z[v])){if(v in N&&!xL(N[v]))throw Error("Cannot merge an array into a non-array.");v in N||(N[v]=[]);fzv(N[v],z[v])}else N[v]=z[v];return N}; fzv=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next())v=v.value,aA(v)?N.push(Wa({},v)):xL(v)?N.push(fzv([],v)):N.push(v);return N}; aA=function(N){return typeof N==="object"&&!Array.isArray(N)}; xL=function(N){return typeof N==="object"&&Array.isArray(N)}; eD=function(N){g.H.call(this);this.W=N}; Ji=function(N){eD.call(this,!0);this.V=N}; yM=function(N,z){g.H.call(this);var v=this;this.Z=[];this.L=!1;this.W=0;this.B=this.G=this.N=!1;this.qd=null;var R=(0,g.Zl)(N,z);this.V=new g.cn(function(){return R(v.qd)},300); g.b(this,this.V);this.J=this.Y=Infinity}; dLb=function(N,z){if(!z)return!1;for(var v=0;v-1)throw Error("Deps cycle for: "+z);if(N.W.has(z))return N.W.get(z);if(!N.V.has(z)){if(R)return;throw Error("No provider for: "+z);}R=N.V.get(z);v.push(z);if(R.bx!==void 0)var C=R.bx;else if(R.nAS)C=R[g3]?nA7(N,R[g3],v):[],C=R.nAS.apply(R,g.U(C));else if(R.r3){C=R.r3;var Z=C[g3]?nA7(N,C[g3],v):[];C=new (Function.prototype.bind.apply(C,[null].concat(g.U(Z))))}else throw Error("Could not resolve providers for: "+z);v.pop();R.AGW||N.W.set(z,C); return C}; nA7=function(N,z,v){return z?z.map(function(R){return R instanceof UD?p1(N,R.key,v,!0):p1(N,R,v)}):[]}; Pa=function(){kL||(kL=new F4u);return kL}; SD=function(){var N,z;return"h5vcc"in VM&&((N=VM.h5vcc.traceEvent)==null?0:N.traceBegin)&&((z=VM.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in VM&&VM.performance.mark&&VM.performance.measure?2:0}; ED=function(N){var z=SD();switch(z){case 1:VM.h5vcc.traceEvent.traceBegin("YTLR",N);break;case 2:VM.performance.mark(N+"-start");break;case 0:break;default:M8(z,"unknown trace type")}}; mLm=function(N){var z=SD();switch(z){case 1:VM.h5vcc.traceEvent.traceEnd("YTLR",N);break;case 2:z=N+"-start";var v=N+"-end";VM.performance.mark(v);VM.performance.measure(N,z,v);break;case 0:break;default:M8(z,"unknown trace type")}}; $Lv=function(N){var z,v;(v=(z=window).onerror)==null||v.call(z,N.message,"",0,0,N)}; ULm=function(N){var z=this;var v=v===void 0?0:v;var R=R===void 0?g.Np():R;this.Z=v;this.scheduler=R;this.W=new g.Ww;this.V=N;for(N={wZ:0};N.wZ=1E3?C():R>=N?js||(js=a_(function(){C();js=void 0},0)):Z-Q>=10&&(Izu(z,v.tier),Y.N=Z)}; oAO=function(N,z){if(N.endpoint==="log_event"){g.yj("more_accurate_gel_parser")&&w3().storePayload({isJspb:!1},N.payload);zZ(N);var v=vN(N),R=new Map;R.set(v,[N.payload]);var C=EAv(N.payload)||"";z&&(YE=new z);return new g.mG(function(Z,Y){YE&&YE.isReady()?X9I(R,YE,Z,Y,{bypassNetworkless:!0},!0,Cz(C)):Z()})}}; t5x=function(N,z,v){if(z.endpoint==="log_event"){zZ(void 0,z);var R=vN(z,!0),C=new Map;C.set(R,[ad(z.payload)]);v&&(YE=new v);return new g.mG(function(Z){YE&&YE.isReady()?rrU(C,YE,Z,{bypassNetworkless:!0},!0,Cz(N)):Z()})}}; vN=function(N,z){var v="";if(N.dangerousLogToVisitorSession)v="visitorOnlyApprovedKey";else if(N.cttAuthInfo){if(z===void 0?0:z){z=N.cttAuthInfo.token;v=N.cttAuthInfo;var R=new tB;v.videoId?R.setVideoId(v.videoId):v.playlistId&&PG(R,2,Qm,uw(v.playlistId));Lz[z]=R}else z=N.cttAuthInfo,v={},z.videoId?v.videoId=z.videoId:z.playlistId&&(v.playlistId=z.playlistId),Kz[N.cttAuthInfo.token]=v;v=N.cttAuthInfo.token}return v}; Zr=function(N,z,v){N=N===void 0?{}:N;z=z===void 0?!1:z;new g.mG(function(R,C){var Z=it(z,v),Y=Z.Z;Z.Z=!1;lt(Z.W);lt(Z.V);Z.V=0;YE&&YE.isReady()?v===void 0&&g.yj("enable_web_tiered_gel")?ubb(R,C,N,z,300,Y):ubb(R,C,N,z,v,Y):(Izu(z,v),R())})}; ubb=function(N,z,v,R,C,Z){var Y=YE;v=v===void 0?{}:v;R=R===void 0?!1:R;C=C===void 0?200:C;Z=Z===void 0?!1:Z;var Q=new Map,L=new Map,K={isJspb:R,cttAuthInfo:void 0,tier:C},l={isJspb:R,cttAuthInfo:void 0};if(R){z=g.f(Object.keys(R_));for(C=z.next();!C.done;C=z.next())C=C.value,L=g.yj("enable_web_tiered_gel")?w3().smartExtractMatchingEntries({keys:[K,l],sizeLimit:1E3}):w3().extractMatchingEntries({isJspb:!0,cttAuthInfo:C}),L.length>0&&Q.set(C,L),(g.yj("web_fp_via_jspb_and_json")&&v.writeThenSend||!g.yj("web_fp_via_jspb_and_json"))&& delete R_[C];rrU(Q,Y,N,v,!1,Z)}else{Q=g.f(Object.keys(R_));for(K=Q.next();!K.done;K=Q.next())K=K.value,l=g.yj("enable_web_tiered_gel")?w3().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:K,tier:C},{isJspb:!1,cttAuthInfo:K}],sizeLimit:1E3}):w3().extractMatchingEntries({isJspb:!1,cttAuthInfo:K}),l.length>0&&L.set(K,l),(g.yj("web_fp_via_jspb_and_json")&&v.writeThenSend||!g.yj("web_fp_via_jspb_and_json"))&&delete R_[K];X9I(L,Y,N,z,v,!1,Z)}}; Izu=function(N,z){function v(){Zr({writeThenSend:!0},N,z)} N=N===void 0?!1:N;z=z===void 0?200:z;var R=it(N,z),C=R===crK||R===qFx?5E3:M5x;g.yj("web_gel_timeout_cap")&&!R.V&&(C=a_(function(){v()},C),R.V=C); lt(R.W);C=g.XI("LOGGING_BATCH_TIMEOUT",g.fX("web_gel_debounce_ms",1E4));g.yj("shorten_initial_gel_batch_timeout")&&WN&&(C=w9f);C=a_(function(){g.fX("gel_min_batch_size")>0?w3().getSequenceCount({cttAuthInfo:void 0,isJspb:N,tier:z})>=NYm&&v():v()},C); R.W=C}; X9I=function(N,z,v,R,C,Z,Y){C=C===void 0?{}:C;var Q=Math.round((0,g.I)()),L=N.size,K=zt7(Y);N=g.f(N);var l=N.next();for(Y={};!l.done;Y={V4:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,vl:void 0,CD:void 0},l=N.next()){var W=g.f(l.value);l=W.next().value;W=W.next().value;Y.batchRequest=g.RP({context:g.Qi(z.config_||g.aq())});if(!g.z1(W)&&!g.yj("throw_err_when_logevent_malformed_killswitch")){R();break}Y.batchRequest.events=W;(W=Kz[l])&&vam(Y.batchRequest,l,W);delete Kz[l];Y.dangerousLogToVisitorSession= l==="visitorOnlyApprovedKey";RtK(Y.batchRequest,Q,Y.dangerousLogToVisitorSession);CyU(C);Y.vl=function(G){g.yj("start_client_gcf")&&g.oH.Mo(function(){return g.S(function(x){return g.k(x,ZHu(G),0)})}); L--;L||v()}; Y.V4=0;Y.CD=function(G){return function(){G.V4++;if(C.bypassNetworkless&&G.V4===1)try{g.w5(z,K,G.batchRequest,GZ({writeThenSend:!0},G.dangerousLogToVisitorSession,G.vl,G.CD,Z)),WN=!1}catch(x){g.c6(x),R()}L--;L||v()}}(Y); try{g.w5(z,K,Y.batchRequest,GZ(C,Y.dangerousLogToVisitorSession,Y.vl,Y.CD,Z)),WN=!1}catch(G){g.c6(G),R()}}}; rrU=function(N,z,v,R,C,Z){R=R===void 0?{}:R;var Y=Math.round((0,g.I)()),Q={value:N.size},L=new Map([].concat(g.U(N)));L=g.f(L);for(var K=L.next();!K.done;K=L.next()){var l=g.f(K.value).next().value,W=N.get(l);K=new VUu;var G=z.config_||g.aq(),x=new VT,e=new UT;Mb(e,1,G.VV);Mb(e,2,G.q6);NU(e,16,G.HR);Mb(e,17,G.innertubeContextClientVersion);if(G.wF){var d=G.wF,T=new m1;d.coldConfigData&&Mb(T,1,d.coldConfigData);d.appInstallData&&Mb(T,6,d.appInstallData);d.coldHashData&&Mb(T,3,d.coldHashData);d.hotHashData&& T.lk(d.hotHashData);bY(e,m1,62,T)}(d=g.u7.devicePixelRatio)&&d!=1&&d4(e,65,PJ(d));d=dm();d!==""&&Mb(e,54,d);d=sF();if(d.length>0){T=new gb;for(var m=0;m65535&&(N=1);Ih("BATCH_CLIENT_COUNTER",N);return N}; vam=function(N,z,v){if(v.videoId)var R="VIDEO";else if(v.playlistId)R="PLAYLIST";else return;N.credentialTransferTokenTargetId=v;N.context=N.context||{};N.context.user=N.context.user||{};N.context.user.credentialTransferTokens=[{token:z,scope:R}]}; zZ=function(N,z){var v=g.qx("yt.logging.transport.enableScrapingForTest"),R=Jr("il_payload_scraping");R=(R!==void 0?String(R):"")==="enable_il_payload_scraping";if(!v)if(R)JT=[],g.cU("yt.logging.transport.enableScrapingForTest",!0),g.cU("yt.logging.transport.scrapedPayloadsForTesting",JT),g.cU("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.cU("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.cU("yt.logging.transport.scrapeClientEvent",!0);else return;v=g.qx("yt.logging.transport.scrapedPayloadsForTesting");R=g.qx("yt.logging.transport.payloadToScrape");z&&(z=z.payload,(z=g.qx("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z)())&&v.push(z));z=g.qx("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var C=0;C0&&m0Y(N,z,Z)}else m0Y(N,z)}; m0Y=function(N,z,v){N=$0u(N);z=z?g.pt(z):"";v=v||5;z6()&&g.P9(N,z,v)}; $0u=function(N){for(var z=g.f(U0U),v=z.next();!v.done;v=z.next())N=SY(N,v.value);return"ST-"+f9(N).toString(36)}; BYx=function(N){if(N.name==="JavaException")return!0;N=N.stack;return N.includes("chrome://")||N.includes("chrome-extension://")||N.includes("moz-extension://")}; AVu=function(){this.L7=[];this.bk=[]}; BN=function(){if(!Un){var N=Un=new AVu;N.bk.length=0;N.L7.length=0;gam(N,peI)}return Un}; gam=function(N,z){z.bk&&N.bk.push.apply(N.bk,z.bk);z.L7&&N.L7.push.apply(N.L7,z.L7)}; k62=function(N){function z(){return N.charCodeAt(R++)} var v=N.length,R=0;do{var C=AT(z);if(C===Infinity)break;var Z=C>>3;switch(C&7){case 0:C=AT(z);if(Z===2)return C;break;case 1:if(Z===2)return;R+=8;break;case 2:C=AT(z);if(Z===2)return N.substr(R,C);R+=C;break;case 5:if(Z===2)return;R+=4;break;default:return}}while(R500));R++);R=C}else if(typeof N==="object")for(C in N){if(N[C]){var Z=C;var Y=N[C],Q=z,L=v;Z=typeof Y!=="string"||Z!=="clickTrackingParams"&&Z!=="trackingParams"?0:(Y=k62(atob(Y.replace(/-/g,"+").replace(/_/g,"/"))))?g0(Z+".ve",Y,Q,L):0;R+=Z;R+=g0(C,N[C],z,v);if(R>500)break}}else v[z]=pz(N),R+=v[z].length;else v[z]=pz(N),R+=v[z].length;return R}; g0=function(N,z,v,R){v+="."+N;N=pz(z);R[v]=N;return v.length+N.length}; pz=function(N){try{return(typeof N==="string"?N:String(JSON.stringify(N))).substr(0,500)}catch(z){return"unable to serialize "+typeof N+" ("+z.message+")"}}; jt=function(N){g.kE(N)}; g.PN=function(N){g.kE(N,"WARNING")}; g.kE=function(N,z){var v=v===void 0?{}:v;v.name=g.XI("INNERTUBE_CONTEXT_CLIENT_NAME",1);v.version=g.XI("INNERTUBE_CONTEXT_CLIENT_VERSION");z=z===void 0?"ERROR":z;var R=!1;z=z===void 0?"ERROR":z;R=R===void 0?!1:R;if(N){N.hasOwnProperty("level")&&N.level&&(z=N.level);if(g.yj("console_log_js_exceptions")){var C=[];C.push("Name: "+N.name);C.push("Message: "+N.message);N.hasOwnProperty("params")&&C.push("Error Params: "+JSON.stringify(N.params));N.hasOwnProperty("args")&&C.push("Error args: "+JSON.stringify(N.args)); C.push("File name: "+N.fileName);C.push("Stacktrace: "+N.stack);window.console.log(C.join("\n"),N)}if(!(Vcu>=5)){C=[];for(var Z=g.f(SvU),Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;try{Y()&&C.push(Y())}catch(d){}}C=[].concat(g.U(EaO),g.U(C));var Q=im_(N);Z=Q.message||"Unknown Error";Y=Q.name||"UnknownError";var L=Q.stack||N.W||"Not available";if(L.startsWith(Y+": "+Z)){var K=L.split("\n");K.shift();L=K.join("\n")}K=Q.lineNumber||"Not available";Q=Q.fileName||"Not available";var l=0;if(N.hasOwnProperty("args")&& N.args&&N.args.length)for(var W=0;W=500);W++);else if(N.hasOwnProperty("params")&&N.params){var G=N.params;if(typeof N.params==="object")for(W in G){if(G[W]){var x="params."+W,e=pz(G[W]);v[x]=e;l+=x.length+e.length;if(l>500)break}}else v.params=pz(G)}if(C.length)for(W=0;W=500);W++);navigator.vendor&&!v.hasOwnProperty("vendor")&&(v["device.vendor"]=navigator.vendor);v={message:Z,name:Y,lineNumber:K, fileName:Q,stack:L,params:v,sampleWeight:1};W=Number(N.columnNumber);isNaN(W)||(v.lineNumber=v.lineNumber+":"+W);if(N.level==="IGNORED")N=0;else a:{N=BN();W=g.f(N.bk);for(C=W.next();!C.done;C=W.next())if(C=C.value,v.message&&v.message.match(C.Pv)){N=C.weight;break a}N=g.f(N.L7);for(W=N.next();!W.done;W=N.next())if(W=W.value,W.callback(v)){N=W.weight;break a}N=1}v.sampleWeight=N;N=g.f(htb);for(W=N.next();!W.done;W=N.next())if(W=W.value,W.GN[v.name])for(Z=g.f(W.GN[v.name]),C=Z.next();!C.done;C=Z.next())if(Y= C.value,C=v.message.match(Y.Fn)){v.params["params.error.original"]=C[0];Z=Y.groups;Y={};for(K=0;K1E3&&g.PN(new g.XS("IL Attach cache exceeded limit"))}Q= r0(v,z);bt.has(Q)?ut(v,z):On.set(Q,!0)}}R=R.filter(function(l){l.csn!==z?(l.csn=z,l=!0):l=!1;return l}); v={csn:z,parentVe:v.getAsJson(),childVes:g.OL(R,function(l){return l.getAsJson()})}; z==="UNDEFINED_CSN"?cN("visualElementAttached",Z,v):N?fz("visualElementAttached",v,N,Z):g.aX("visualElementAttached",v,Z)}; N8U=function(N,z,v,R,C){qz(v,z);R=Dr({cttAuthInfo:mK(z)||void 0},z);v={csn:z,ve:v.getAsJson(),eventType:1};C&&(v.clientData=C);z==="UNDEFINED_CSN"?cN("visualElementShown",R,v):N?fz("visualElementShown",v,N,R):g.aX("visualElementShown",v,R)}; z62=function(N,z,v,R){var C=(R=R===void 0?!1:R)?16:8;R=Dr({cttAuthInfo:mK(z)||void 0,endOfSequence:R},z);v={csn:z,ve:v.getAsJson(),eventType:C};z==="UNDEFINED_CSN"?cN("visualElementHidden",R,v):N?fz("visualElementHidden",v,N,R):g.aX("visualElementHidden",v,R)}; w0=function(N,z,v,R,C){Mz(N,z,v,void 0,R,C)}; Mz=function(N,z,v,R,C){qz(v,z);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Z=Dr({cttAuthInfo:mK(z)||void 0},z);v={csn:z,ve:v.getAsJson(),gestureType:R};C&&(v.clientData=C);z==="UNDEFINED_CSN"?cN("visualElementGestured",Z,v):N?fz("visualElementGestured",v,N,Z):g.aX("visualElementGestured",v,Z)}; vpf=function(){var N=d3(16);for(var z=[],v=0;v0&&v.push(g.wL("BR"));v.push(g.NA(Z))}):v.push(g.NA(R))}return v}; KK=function(N,z,v,R){if(v==="child"){g.vV(z);var C;R===void 0?C=void 0:C=!Array.isArray(R)||R&&typeof R.K==="string"?[R]:R;v=CRb(N,C);v=g.f(v);for(N=v.next();!N.done;N=v.next())z.appendChild(N.value)}else v==="style"?g.SB(z,"cssText",R?R:""):R===null||R===void 0?z.removeAttribute(v):(N=R.toString(),v==="href"&&(N=g.ON(g.uh(N))),z.setAttribute(v,N))}; g.X=function(N){g.Qr.call(this,N);this.Vh=!0;this.B=!1;this.listeners=[]}; g.lG=function(N){g.X.call(this,N);this.vL=new g.jJ;g.b(this,this.vL)}; WS=function(N,z,v,R,C,Z,Y){Y=Y===void 0?null:Y;g.lG.call(this,z);this.api=N;this.macros={};this.componentType=v;this.L=this.Y=null;this.gW=Y;this.layoutId=R;this.interactionLoggingClientData=C;this.yp=Z;this.S8=null;this.Tw=new Ji(this.element);g.b(this,this.Tw);this.kJ=this.S(this.element,"click",this.onClick);this.K0=[];this.PL=new yM(this.onClick,this);g.b(this,this.PL);this.A0=!1;this.Id=this.qd=null}; Ga=function(N,z){N=N===void 0?null:N;z=z===void 0?null:z;if(N==null)return g.PN(Error("Got null or undefined adText object")),"";var v=g.yp(N.text);if(!N.isTemplated)return v;if(z==null)return g.PN(Error("Missing required parameters for a templated message")),v;N=g.f(Object.entries(z));for(z=N.next();!z.done;z=N.next()){var R=g.f(z.value);z=R.next().value;R=R.next().value;v=v.replace("{"+z+"}",R)}return v}; ZJx=function(N){N=N===void 0?null:N;return N!=null&&(N=N.thumbnail,N!=null&&N.thumbnails!=null&&N.thumbnails.length!=0&&N.thumbnails[0].url!=null)?g.yp(N.thumbnails[0].url):""}; Y5U=function(N){N=N===void 0?null:N;return N!=null&&(N=N.thumbnail,N!=null&&N.thumbnails!=null&&N.thumbnails.length!=0&&N.thumbnails[0].width!=null&&N.thumbnails[0].height!=null)?new g.kQ(N.thumbnails[0].width||0,N.thumbnails[0].height||0):new g.kQ(0,0)}; g.xt=function(N){if(N.simpleText)return N.simpleText;if(N.runs){var z=[];N=g.f(N.runs);for(var v=N.next();!v.done;v=N.next())v=v.value,v.text&&z.push(v.text);return z.join("")}return""}; g.eJ=function(N){if(N.simpleText)return N=document.createTextNode(N.simpleText),N;var z=[];if(N.runs)for(var v=0;v1){for(var z=[N[0]],v=1;v0&&(this.V=new g.cn(this.Ez,z,this),g.b(this,this.V));this.B=new g.cn(this.Ez,v,this);g.b(this,this.B);this.Y=FG7(this.W,C,1,R);g.b(this,this.Y);this.L=FG7(this.W,0,R,1);g.b(this,this.L);this.N=new $a;g.b(this,this.N)}; i4=function(N,z,v){this.W=N;this.isAsync=z;this.V=v}; XzK=function(N){switch(N){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:M8(N,"unknown result type")}}; r62=function(N,z){var v=1;N.isTrusted===!1&&(v=0);Ih("ISDSTAT",v);j0(v,"i.s_",{triggerContext:"sk",metadata:z});return v}; uif=function(N,z){var v=[];z?z.isTrusted===!0?v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):z.isTrusted===!1?v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");j0(0,"a.s_",{metadata:N,states:v});Ih("ASDSTAT",0)}; j0=function(N,z,v){z=c6U[z];var R,C,Z={detected:N===0,source:""+z.W+((R=v.triggerContext)!=null?R:"")+((C=v.xW)!=null?C:""),detectionStates:v.states,durationMs:v.yC};v.metadata&&(Z.contentCpn=v.metadata.contentCpn,Z.adCpn=v.metadata.adCpn);g.aX("biscottiBasedDetection",Z);z.V!==void 0&&(v=Number(g.XI("CATSTAT",0)),z.V!==void 0?(z=z.V,N=XzK(N),N=v&~(3<0}; GX=function(N,z,v,R,C,Z){Mg.call(this,N,{K:"div",U:"ytp-ad-skip-button-slot"},"skip-button",z,v,R,C);var Y=this;this.Vp=null;this.Rd=!1;this.UT=Z;this.G=this.api.D().experiments.j8("enable_modern_skip_button_on_web");this.xT=!1;this.N=new g.lG({K:"span",GU:["ytp-ad-skip-button-container"]});this.G&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");g.b(this,this.N);this.N.Nd(this.element);this.W=this.Z=null;this.ET=new g.zX(this.N,500,!1,100,function(){return Y.hide()}); g.b(this,this.ET);this.tO=new YJ(this.N.element,15E3,5E3,.5,.5,this.G);g.b(this,this.tO);this.hide()}; Mtu=function(N){N=N.Vp&&N.Vp.adRendererCommands;return(N&&N.clickCommand&&g.t(N.clickCommand,g.xJ)&&g.t(N.clickCommand,g.xJ).commands||[]).some(function(z){return z.adLifecycleCommand?q5u(z.adLifecycleCommand):!1})}; q5u=function(N){return N.action==="END_LINEAR_AD"||N.action==="END_LINEAR_AD_PLACEMENT"}; e0=function(N,z,v,R,C,Z){Mg.call(this,N,{K:"div",U:"ytp-ad-skip-ad-slot"},"skip-ad",z,v,R,C);this.Vp=Z;this.N=!1;this.G=0;this.Z=this.W=null;this.hide()}; wz_=function(N,z){N.N||(N.N=!0,N.W&&(z?N.W.Vp.hide():N.W.hide()),z?(N=N.Z,N.ET.show(),N.show()):N.Z.show())}; JX=function(N,z,v,R){pK.call(this,N,z,v,R,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; yW=function(N,z,v,R,C,Z,Y){Z=Z===void 0?!1:Z;Y=Y===void 0?!1:Y;WS.call(this,N,{K:"span",U:"ytp-ad-simple-ad-badge"},"simple-ad-badge",z,v,R);this.Z=C;this.V=this.e8("ytp-ad-simple-ad-badge");(this.W=Z)&&this.V.classList.add("ytp-ad-simple-ad-badge--clean-player");Y&&this.V.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; fZ=function(N,z,v,R,C){C=C===void 0?!1:C;iG.call(this,"player-overlay",N,{},z,R);this.videoAdDurationSeconds=v;this.interactionLoggingClientData=R;this.Hy=C}; dO=function(N,z){g.jJ.call(this);this.api=N;this.durationMs=z;this.V=null;this.JI=new $a(this);g.b(this,this.JI);this.W=N5v;this.JI.S(this.api,"presentingplayerstatechange",this.Vt);this.V=this.JI.S(this.api,"onAdPlaybackProgress",this.G4)}; sI=function(N){g.jJ.call(this);this.V=!1;this.iY=0;this.JI=new $a(this);g.b(this,this.JI);this.durationMs=N;this.hT=new g.El(100);g.b(this,this.hT);this.JI.S(this.hT,"tick",this.G4);this.W={seekableStart:0,seekableEnd:N/1E3,current:0};this.start()}; g.TX=function(N,z){var v=Math.abs(Math.floor(N)),R=Math.floor(v/86400),C=Math.floor(v%86400/3600),Z=Math.floor(v%3600/60);v=Math.floor(v%60);if(z){z="";R>0&&(z+=" "+R+" D\u00edas");if(R>0||C>0)z+=" "+C+" Horas";z+=" "+Z+" Minutos";z+=" "+v+" Segundos";R=z.trim()}else{z="";R>0&&(z+=R+":",C<10&&(z+="0"));if(R>0||C>0)z+=C+":",Z<10&&(z+="0");z+=Z+":";v<10&&(z+="0");R=z+v}return N>=0?R:"-"+R}; g.Ff=function(N){return(!("button"in N)||typeof N.button!=="number"||N.button===0)&&!("shiftKey"in N&&N.shiftKey)&&!("altKey"in N&&N.altKey)&&!("metaKey"in N&&N.metaKey)&&!("ctrlKey"in N&&N.ctrlKey)}; nZ=function(N,z,v,R,C,Z,Y){Mg.call(this,N,{K:"span",U:Y?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",z,v,R,C);this.videoAdDurationSeconds=Z;this.W=null;Y&&this.api.D().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),IX&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; m5=function(N,z,v,R){cS.call(this,N,z,v,R,"ytp-video-ad-top-bar-title","ad-title")}; $J=function(N){this.content=N.content;if(N.commandRuns){N=g.f(N.commandRuns);for(var z=N.next();!z.done;z=N.next())z=z.value,this.loggingDirectives=g.t(z,zab),z.onTap&&(this.interaction={onTap:z.onTap})}}; UI=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ad-simple-attributed-string"},"ad-simple-attributed-string",z,v,R);this.hide()}; BW=function(N,z,v,R,C){WS.call(this,N,{K:"span",U:C?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",z,v,R);this.W=C;this.adBadgeText=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);this.adBadgeText.Nd(this.element);g.b(this,this.adBadgeText);C?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),IX&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; AX=function(N,z,v,R){WS.call(this,N,{K:"span",U:"ytp-ad-pod-index"},"ad-pod-index",z,v,R);this.api.D().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),IX&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; gO=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",z,v,R);this.hide()}; pZ=function(N,z){this.W=N;this.V=z}; kJ=function(N,z,v){if(!N.getLength())return v!=null?v:Infinity;N=(z-N.W)/N.getLength();return g.UC(N,0,1)}; PW=function(N,z,v,R){R=R===void 0?!1:R;g.lG.call(this,{K:"div",U:"ytp-ad-persistent-progress-bar-container",j:[{K:"div",U:"ytp-ad-persistent-progress-bar"}]});this.api=N;this.W=z;this.Z=v;R&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.b(this,this.W);this.progressBar=this.e8("ytp-ad-persistent-progress-bar");this.V=-1;this.S(N,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; VW=function(N,z,v,R,C,Z){WS.call(this,N,{K:"div",U:"ytp-ad-player-overlay",j:[{K:"div",U:"ytp-ad-player-overlay-flyout-cta"},{K:"div",U:"ytp-ad-player-overlay-instream-info"},{K:"div",U:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",U:"ytp-ad-player-overlay-progress-bar"},{K:"div",U:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",U:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",z,v,R);this.J=Z;this.G=this.e8("ytp-ad-player-overlay-flyout-cta");this.G.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.V=this.e8("ytp-ad-player-overlay-instream-info");this.N=null;vHu(this)&&(N=Mu("div"),g.Ye(N,"ytp-ad-player-overlay-top-bar-gradients"),z=this.V,z.parentNode&&z.parentNode.insertBefore(N,z),(z=this.api.getVideoData(2))&&z.isListed&&z.title&&(v=new m5(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),v.Nd(N),v.init(Yt("ad-title"),{text:z.title},this.macros),g.b(this,v)),this.N=N);this.Z=null;this.BL=this.e8("ytp-ad-player-overlay-skip-or-preview");this.tO=this.e8("ytp-ad-player-overlay-progress-bar"); this.Rd=this.e8("ytp-ad-player-overlay-instream-user-sentiment");this.Vp=this.e8("ytp-ad-player-overlay-ad-disclosure-banner");this.W=C;g.b(this,this.W);this.hide()}; vHu=function(N){N=N.api.D();var z=g.S0(N)&&N.W;return N.X("embeds_embc3ds_atb")&&N.disableOrganicUi&&!0||z}; EI=function(N,z,v){var R={};z&&(R.v=z);v&&(R.list=v);N={name:N,locale:void 0,feature:void 0};for(var C in R)N[C]=R[C];R=g.kS("/sharing_services",N);g.Hd(R)}; g.hX=function(N){N&=16777215;var z=[(N&16711680)>>16,(N&65280)>>8,N&255];N=z[0];var v=z[1];z=z[2];N=Number(N);v=Number(v);z=Number(z);if(N!=(N&255)||v!=(v&255)||z!=(z&255))throw Error('"('+N+","+v+","+z+'") is not a valid RGB color');v=N<<16|v<<8|z;return N<16?"#"+(16777216|v).toString(16).slice(1):"#"+v.toString(16)}; HW=function(N){this.V=new Bl(N)}; Rau=function(){var N=!1;try{N=!!window.sessionStorage.getItem("session_logininfo")}catch(z){N=!0}return(g.XI("INNERTUBE_CLIENT_NAME")==="WEB"||g.XI("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&N}; ot=function(){var N=N===void 0?!0:N;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Ih("LOGIN_INFO","");N&&window.sessionStorage.setItem("from_switch_account","1");N=!0;N=N===void 0?!1:N;var z,v=C$2;v||(v=document.querySelector("#persist_identity"));if(z=v){var R=z.src?(new URL(z.src)).origin:"*";if(N){var C;(C=z.contentWindow)==null||C.postMessage({action:"clear"},R)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var Z=window.sessionStorage.getItem("session_logininfo");if(Z){var Y;(Y=z.contentWindow)==null||Y.postMessage({loginInfo:Z},R)}}}}catch(Q){}}; D0=function(N){if(N)if(N.startsWith("https://accounts.google.com/AddSession"))ot();else if(N.startsWith("https://accounts.google.com/ServiceLogin"))ot();else{var z;if(z=N.startsWith("https://myaccount.google.com"))z=g.lk(N).W.endsWith("/youtubeoptions");z&&ot()}if(g.XI("LOGGED_IN",!0)&&Rau()){z=g.XI("VALID_SESSION_TEMPDATA_DOMAINS",[]);var v=g.nt(window.location.href);v&&z.push(v);v=g.nt(N);g.J8(z,v)||!v&&x_(N,"/")?(z=UL(N),(z=w$u(z))?(z=$0u(z),z=(z=g.Vj(z)||null)?zU(z):{}):z=null):z=null;z==null&& (z={});v=z;var R=void 0;Rau()?(R||(R=g.XI("LOGIN_INFO")),R?(v.session_logininfo=R,v=!0):v=!1):v=!1;v&&$E(N,z)}}; g.ZGU=function(N){var z=z===void 0?{}:z;var v=v===void 0?"":v;var R=R===void 0?window:R;N=g.kS(N,z);D0(N);v=g.uh(N+v);R=R.location;v=cZ(v);v!==void 0&&(R.href=v)}; g.b4=function(N,z,v){z=z===void 0?{}:z;v=v===void 0?!1:v;var R=g.XI("EVENT_ID");R&&(z.ei||(z.ei=R));z&&$E(N,z);v||(D0(N),g.ZGU(N))}; g.tX=function(N,z,v,R,C){C=C===void 0?!1:C;v&&$E(N,v);v=g.uh(N);var Z=g.ON(v);N!=Z&&MV(Error("Unsafe window.open URL: "+N));N=Z;z=z||f9(N).toString(36);try{if(C)return C=N,C=ZXK(C),D0(C),g.RI(window,C,z,"attributionsrc")}catch(Y){g.c6(Y)}D0(N);return g.RI(window,v,z,R)}; Y1I=function(N){OI=N}; iGf=function(N){It=N}; jqU=function(N){Xf=N}; QqY=function(){aY7=Xf=It=OI=null}; Kjx=function(){var N=N===void 0?window.location.href:N;if(g.yj("kevlar_disable_theme_param"))return null;var z=mR(N);if(g.yj("enable_dark_theme_only_on_shorts")&&z!=null&&z.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var v=g.R0(N).theme;return LjI.get(v)||null}catch(R){}return null}; rO=function(){this.V={};if(this.W=Lqv()){var N=g.Vj("CONSISTENCY");N&&lYK(this,{encryptedTokenJarContents:N})}}; lYK=function(N,z){if(z.encryptedTokenJarContents&&(N.V[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var v=Number(z.expirationSeconds);setTimeout(function(){delete N.V[z.encryptedTokenJarContents]},v*1E3); N.W&&g.P9("CONSISTENCY",z.encryptedTokenJarContents,v,void 0,!0)}}; cW=function(){this.W=-1;var N=g.XI("LOCATION_PLAYABILITY_TOKEN");g.XI("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=u4(this))&&(N=this.localStorage.get("yt-location-playability-token"));N&&(this.locationPlayabilityToken=N,this.V=void 0)}; u4=function(N){return N.localStorage===void 0?new RX("yt-client-location"):N.localStorage}; g.q2=function(N,z,v){z=z===void 0?!1:z;v=v===void 0?!1:v;var R=g.XI("INNERTUBE_CONTEXT");if(!R)return g.kE(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};R=g.RP(R);g.yj("web_no_tracking_params_in_shell_killswitch")||delete R.clickTracking;R.client||(R.client={});var C=R.client;C.clientName==="MWEB"&&C.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(C.clientFormFactor=g.XI("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");C.screenWidthPoints=window.innerWidth;C.screenHeightPoints= window.innerHeight;C.screenPixelDensity=Math.round(window.devicePixelRatio||1);C.screenDensityFloat=window.devicePixelRatio||1;C.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var Z=Z===void 0?!1:Z;g.os();var Y="USER_INTERFACE_THEME_LIGHT";g.D_(0,165)?Y="USER_INTERFACE_THEME_DARK":g.D_(0,174)?Y="USER_INTERFACE_THEME_LIGHT":!g.yj("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (Y="USER_INTERFACE_THEME_DARK");Z=Z?Y:Kjx()||Y;C.userInterfaceTheme=Z;if(!z){if(Z=MjU())C.connectionType=Z;g.yj("web_log_effective_connection_type")&&(Z=NAm())&&(R.client.effectiveConnectionType=Z)}var Q;if(g.yj("web_log_memory_total_kbytes")&&((Q=g.u7.navigator)==null?0:Q.deviceMemory)){var L;Q=(L=g.u7.navigator)==null?void 0:L.deviceMemory;R.client.memoryTotalKbytes=""+Q*1E6}g.yj("web_gcf_hashes_innertube")&&(Z=ii7())&&(L=Z.coldConfigData,Q=Z.coldHashData,Z=Z.hotHashData,R.client.configInfo=R.client.configInfo|| {},L&&(R.client.configInfo.coldConfigData=L),Q&&(R.client.configInfo.coldHashData=Q),Z&&(R.client.configInfo.hotHashData=Z));L=g.R0(g.u7.location.href);!g.yj("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(C.internalGeo=L.internalcountrycode);C.clientName==="MWEB"||C.clientName==="WEB"?(C.mainAppWebInfo={graftUrl:g.u7.location.href},g.yj("kevlar_woffle")&&Ojb.instance&&(L=Ojb.instance,C.mainAppWebInfo.pwaInstallabilityStatus=!L.V&&L.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),C.mainAppWebInfo.webDisplayMode=Ev(),C.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):C.clientName==="TVHTML5"&&(!g.yj("web_lr_app_quality_killswitch")&&(L=g.XI("LIVING_ROOM_APP_QUALITY"))&&(C.tvAppInfo=Object.assign(C.tvAppInfo||{},{appQuality:L})),L=g.XI("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(C.tvAppInfo=Object.assign(C.tvAppInfo||{},{certificationScope:L}));if(!g.yj("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var K=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(V){}K=void 0}K&&(C.timeZone=K)}(K=dm())?C.experimentsToken=K:delete C.experimentsToken;K=sF();rO.instance||(rO.instance=new rO);R.request=Object.assign({},R.request,{internalExperimentFlags:K,consistencyTokenJars:g.Xr(rO.instance.V)});!g.yj("web_prequest_context_killswitch")&&(K=g.XI("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(R.request.externalPrequestContext=K);C=g.os();K=g.D_(0,58);C=C.get("gsml","");R.user=Object.assign({}, R.user);K&&(R.user.enableSafetyMode=K);C&&(R.user.lockedSafetyMode=!0);g.yj("warm_op_csn_cleanup")?v&&(z=g.nz())&&(R.clientScreenNonce=z):!z&&(z=g.nz())&&(R.clientScreenNonce=z);N&&(R.clickTracking={clickTrackingParams:N});if(N=g.qx("yt.mdx.remote.remoteClient_"))R.remoteClient=N;cW.getInstance().setLocationOnInnerTubeContext(R);try{var l=LX(),W=l.bid;delete l.bid;R.adSignalsInfo={params:[],bid:W};for(var G=g.f(Object.entries(l)),x=G.next();!x.done;x=G.next()){var e=g.f(x.value),d=e.next().value, T=e.next().value;l=d;W=T;N=void 0;(N=R.adSignalsInfo.params)==null||N.push({key:l,value:""+W})}var m,n;if(((m=R.client)==null?void 0:m.clientName)==="TVHTML5"||((n=R.client)==null?void 0:n.clientName)==="TVHTML5_UNPLUGGED"){var P=g.XI("INNERTUBE_CONTEXT");P.adSignalsInfo&&(R.adSignalsInfo.advertisingId=P.adSignalsInfo.advertisingId,R.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",R.adSignalsInfo.limitAdTracking=P.adSignalsInfo.limitAdTracking)}}catch(V){g.kE(V)}return R}; xfu=function(N,z){if(!N)return!1;var v,R=(v=g.t(N,WjU))==null?void 0:v.signal;if(R&&z.G$)return!!z.G$[R];var C;if((v=(C=g.t(N,GRv))==null?void 0:C.request)&&z.Jr)return!!z.Jr[v];for(var Z in N)if(z.QP[Z])return!0;return!1}; eaI=function(N){var z={"Content-Type":"application/json"};g.XI("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=g.XI("EOM_VISITOR_DATA"):g.XI("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.XI("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=g.XI("LOGGED_IN",!1);g.XI("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=g.XI("DEBUG_SETTINGS_METADATA"));N!=="cors"&&((N=g.XI("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=N),(N=g.XI("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]= N),(N=g.XI("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=N),(N=g.XI("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=N),g.XI("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(N=g.XI("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=N));return z}; JqU=function(){this.V={}}; M2=function(){this.mappings=new JqU}; wO=function(N){return function(){return new N}}; fYK=function(N){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(N.length===1)return N[0];var v=yqu[z];if(v){v=new RegExp(v);for(var R=g.f(N),C=R.next();!C.done;C=R.next())if(C=C.value,v.exec(C))return C}var Z=[];Object.entries(yqu).forEach(function(Y){var Q=g.f(Y);Y=Q.next().value;Q=Q.next().value;z!==Y&&Z.push(Q)}); v=new RegExp(Z.join("|"));N.sort(function(Y,Q){return Y.length-Q.length}); R=g.f(N);for(C=R.next();!C.done;C=R.next())if(C=C.value,!v.exec(C))return C;return N[0]}; g.N3=function(N){return"/youtubei/v1/"+fYK(N)}; z4=function(){}; lv=function(){}; W_=function(){}; G4=function(N){return g.qx("ytcsi."+(N||"")+"data_")||dfm(N)}; sqI=function(){var N=G4();N.info||(N.info={});return N.info}; xr=function(N){N=G4(N);N.metadata||(N.metadata={});return N.metadata}; eq=function(N){N=G4(N);N.tick||(N.tick={});return N.tick}; Jc=function(N){N=G4(N);if(N.gel){var z=N.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else N.gel={gelTicks:{},gelInfos:{}};return N.gel}; T5f=function(N){N=Jc(N);N.gelInfos||(N.gelInfos={});return N.gelInfos}; yZ=function(N){var z=G4(N).nonce;z||(z=g.sD(16),G4(N).nonce=z);return z}; dfm=function(N){var z={tick:{},info:{}};g.cU("ytcsi."+(N||"")+"data_",z);return z}; fh=function(){var N=g.qx("ytcsi.debug");N||(N=[],g.cU("ytcsi.debug",N),g.cU("ytcsi.reference",{}));return N}; dZ=function(N){N=N||"";var z=Fjf();if(z[N])return z[N];var v=fh(),R={timerName:N,info:{},tick:{},span:{},jspbInfo:[]};v.push(R);return z[N]=R}; nH7=function(N){N=N||"";var z=Fjf();z[N]&&delete z[N];var v=fh(),R={timerName:N,info:{},tick:{},span:{},jspbInfo:[]};v.push(R);z[N]=R}; Fjf=function(){var N=g.qx("ytcsi.reference");if(N)return N;fh();return g.qx("ytcsi.reference")}; sm=function(N){return mfu[N]||"LATENCY_ACTION_UNKNOWN"}; T4=function(N,z){KG.call(this,1,arguments);this.hT=z}; Fh=function(){this.V=0}; nh=function(){Fh.instance||(Fh.instance=new Fh);return Fh.instance}; $r=function(N,z){mc[z]=mc[z]||{count:0};var v=mc[z];v.count++;v.time=(0,g.I)();N.V||(N.V=g.M0(0,function(){var R=(0,g.I)(),C;for(C in mc)mc[C]&&R-mc[C].time>6E4&&delete mc[C];N&&(N.V=0)},5E3)); return v.count>5?(v.count===6&&Math.random()*1E5<1&&(v=new g.XS("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||g.PN(v)),!0):!1}; $fb=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; UfU=function(){var N;if(g.yj("csi_use_performance_navigation_timing")||g.yj("csi_use_performance_navigation_timing_tvhtml5")){var z,v,R,C=Um==null?void 0:(N=Um.getEntriesByType)==null?void 0:(z=N.call(Um,"navigation"))==null?void 0:(v=z[0])==null?void 0:(R=v.toJSON)==null?void 0:R.call(v);C?(C.requestStart=B_(C.requestStart),C.responseEnd=B_(C.responseEnd),C.redirectStart=B_(C.redirectStart),C.redirectEnd=B_(C.redirectEnd),C.domainLookupEnd=B_(C.domainLookupEnd),C.connectStart=B_(C.connectStart), C.connectEnd=B_(C.connectEnd),C.responseStart=B_(C.responseStart),C.secureConnectionStart=B_(C.secureConnectionStart),C.domainLookupStart=B_(C.domainLookupStart),C.isPerformanceNavigationTiming=!0,N=C):N=Um.timing}else N=g.yj("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Um.timing)):Um.timing;return N}; B_=function(N){return Math.round(Ac()+N)}; Ac=function(){return(g.yj("csi_use_time_origin")||g.yj("csi_use_time_origin_tvhtml5"))&&Um.timeOrigin?Math.floor(Um.timeOrigin):Um.timing.navigationStart}; ph=function(N,z){gZ("_start",N,z)}; kr=function(N,z){if(!g.yj("web_csi_action_sampling_enabled")||!G4(z).actionDisabled){var v=dZ(z||"");GF(v.info,N);N.loadType&&(v=N.loadType,xr(z).loadType=v);GF(T5f(z),N);v=yZ(z);z=G4(z).cttAuthInfo;nh().info(N,v,z)}}; B5u=function(){var N,z,v,R;return((R=Pa().resolve(Ba(i$))==null?void 0:(N=jb())==null?void 0:(z=N.loggingHotConfig)==null?void 0:(v=z.csiConfig)==null?void 0:v.debugTicks)!=null?R:[]).map(function(C){return Object.values(C)[0]})}; gZ=function(N,z,v){if(!g.yj("web_csi_action_sampling_enabled")||!G4(v).actionDisabled){var R=yZ(v),C;if(C=g.yj("web_csi_debug_sample_enabled")&&R){(Pa().resolve(Ba(i$))==null?0:jb())&&!Aqu&&(Aqu=!0,gZ("gcfl",(0,g.I)(),v));var Z,Y,Q;C=(Pa().resolve(Ba(i$))==null?void 0:(Z=jb())==null?void 0:(Y=Z.loggingHotConfig)==null?void 0:(Q=Y.csiConfig)==null?void 0:Q.debugSampleWeight)||0;if(Z=C!==0)b:{Z=B5u();if(Z.length>0)for(Y=0;Yv.duration?R:v},{duration:0}))&&z.startTime>0&&z.responseEnd>0&&(gZ("wffs",B_(z.startTime)),gZ("wffe",B_(z.responseEnd)))}; EHK=function(N,z,v){Um&&Um.measure&&(N.startsWith("measure_")||(N="measure_"+N),v?Um.measure(N,z,v):z?Um.measure(N,z):Um.measure(N))}; ha2=function(N){var z=P_("aft",N);if(z)return z;z=g.XI((N||"")+"TIMING_AFT_KEYS",["ol"]);for(var v=z.length,R=0;R0&&kr(z);z={isNavigation:!0,actionType:sm(g.XI("TIMING_ACTION"))};var v=g.XI("PREVIOUS_ACTION");v&&(z.previousAction=sm(v));if(v=g.XI("CLIENT_PROTOCOL"))z.httpProtocol=v;if(v=g.XI("CLIENT_TRANSPORT"))z.transportProtocol=v;(v=g.nz())&&v!=="UNDEFINED_CSN"&&(z.clientScreenNonce=v);v=kRu();if(v===1||v===-1)z.isVisible= !0;v=xr().loadType==="cold";var R=sqI();v||(v=R.yt_lt==="cold");if(v){z.loadType="cold";v=sqI();R=UfU();var C=Ac(),Z=g.XI("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!g.yj("embeds_web_enable_csi_start_override_killswitch")&&(C=Z);C&&(gZ("srt",R.responseStart),v.prerender!==1&&ph(C));v=Dfu();v>0&&gZ("fpt",v);v=UfU();v.isPerformanceNavigationTiming&&kr({performanceNavigationTiming:!0},void 0);gZ("nreqs",v.requestStart,void 0);gZ("nress",v.responseStart,void 0);gZ("nrese",v.responseEnd,void 0);v.redirectEnd- v.redirectStart>0&&(gZ("nrs",v.redirectStart,void 0),gZ("nre",v.redirectEnd,void 0));v.domainLookupEnd-v.domainLookupStart>0&&(gZ("ndnss",v.domainLookupStart,void 0),gZ("ndnse",v.domainLookupEnd,void 0));v.connectEnd-v.connectStart>0&&(gZ("ntcps",v.connectStart,void 0),gZ("ntcpe",v.connectEnd,void 0));v.secureConnectionStart>=Ac()&&v.connectEnd-v.secureConnectionStart>0&&(gZ("nstcps",v.secureConnectionStart,void 0),gZ("ntcpe",v.connectEnd,void 0));Um&&"getEntriesByType"in Um&&S1Y();v=[];if(document.querySelector&& Um&&Um.getEntriesByName)for(var Y in Em)Em.hasOwnProperty(Y)&&(R=Em[Y],VbK(Y,R)&&v.push(R));if(v.length>0)for(z.resourceInfo=[],Y=g.f(v),v=Y.next();!v.done;v=Y.next())z.resourceInfo.push({resourceCache:v.value})}kr(z);z=Jc();z.preLoggedGelInfos||(z.preLoggedGelInfos=[]);Y=z.preLoggedGelInfos;z=T5f();v=void 0;for(R=0;R-1&&(delete s2["@type"],r=s2);d&&N.W.has(d)&&N.W.delete(d);((O2=z.config)==null?0:O2.dFp)&&H_(z.config.dFp);if(r||(m7=N.Z)==null||!m7.FsW(z.input,z.b6)){BU.Zp(15);break}return g.k(BU,N.Z.nCT(z.input,z.b6),16);case 16:r=BU.V;case 15:return YDU(N,r,z),((QU=z.config)==null?0:QU.i5W)&&H_(z.config.i5W),R(),BU.return(r|| void 0)}})}; zFb=function(N,z){a:{N=N.HC;var v,R=(v=g.t(z,WjU))==null?void 0:v.signal;if(R&&N.G$&&(v=N.G$[R])){var C=v();break a}var Z;if((v=(Z=g.t(z,GRv))==null?void 0:Z.request)&&N.Jr&&(Z=N.Jr[v])){C=Z();break a}for(C in z)if(N.QP[C]&&(z=N.QP[C])){C=z();break a}C=void 0}if(C!==void 0)return Promise.resolve(C)}; RFY=function(N,z,v){var R,C,Z,Y,Q,L,K;return g.S(function(l){if(l.W==1){Z=((R=z)==null?void 0:(C=R.zo)==null?void 0:C.identity)||LG;L=(Y=z)==null?void 0:(Q=Y.zo)==null?void 0:Q.sessionIndex;var W=g.px(N.V.Sx(Z,{sessionIndex:L}));return g.k(l,W,2)}K=l.V;return l.return(Promise.resolve(Object.assign({},eaI(v),K)))})}; vLu=function(N,z,v){var R,C=(z==null?void 0:(R=z.zo)==null?void 0:R.identity)||LG,Z;z=z==null?void 0:(Z=z.zo)==null?void 0:Z.sessionIndex;N=N.V.Sx(C,{sessionIndex:z});return Object.assign({},eaI(v),N)}; uv=function(){}; c_=function(){}; q3=function(N){this.G=N}; M3=function(){}; wZ=function(){}; NJ=function(){}; zL=function(){}; g.vy=function(N,z){var v=g.SI.apply(2,arguments);N=N===void 0?0:N;g.XS.call(this,z,v);this.errorType=N;Object.setPrototypeOf(this,this.constructor.prototype)}; RN=function(N,z,v,R){this.V=N;this.W=z;this.Z=v;this.N=R}; jAu=function(N,z,v){if(N.V){var R=mR(SY(z,"key"))||"/UNKNOWN_PATH";N.V.start(R)}R=v;g.yj("wug_networking_gzip_request")&&(R=EWU(v));var C;return new ((C=N.N)!=null?C:window.Request)(z,R)}; g.ZX=function(N,z){if(!CA){var v=Pa();Ai(v,{C_:aKI,r3:RN});var R={QP:{feedbackEndpoint:wO(M3),modifyChannelNotificationPreferenceEndpoint:wO(wZ),playlistEditEndpoint:wO(NJ),shareEntityEndpoint:wO(q3),subscribeEndpoint:wO(uv),unsubscribeEndpoint:wO(c_),webPlayerShareEntityServiceEndpoint:wO(zL)}},C=cW.getInstance(),Z={};C&&(Z.client_location=C);N===void 0&&(N=IF2());z===void 0&&(z=v.resolve(aKI));N3v(R,z,N,Z);Ai(v,{C_:QAI,bx:Ic.instance});CA=v.resolve(QAI)}return CA}; LBI=function(N){var z=new K$;if(N.interpreterJavascript){var v=$mu(N.interpreterJavascript);v=iU(v).toString();var R=new QS;Mb(R,6,v);bY(z,QS,1,R,fU)}else N.interpreterUrl&&(v=TA(N.interpreterUrl),v=bh(v).toString(),R=new L$,Mb(R,4,v),bY(z,L$,2,R,fU));N.interpreterHash&&w4(z,3,N.interpreterHash,fU);N.program&&w4(z,4,N.program,fU);N.globalName&&w4(z,5,N.globalName,fU);N.clientExperimentsStateBlob&&w4(z,7,N.clientExperimentsStateBlob,fU);return z}; Yl=function(N){var z={};N=N.split("&");N=g.f(N);for(var v=N.next();!v.done;v=N.next())v=v.value.split("="),v.length===2&&(z[v[0]]=v[1]);return z}; pH_=function(){if(g.yj("bg_st_hr"))return"havuokmhhs-0";var N,z=((N=performance)==null?void 0:N.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)}; iI=function(N){this.V=N}; KBY=function(){return new Promise(function(N){var z=window.top;z.ntpevasrs!==void 0?N(new iI(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(v){N(new iI(v))}))})}; WBf=function(){if(!g.yj("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.yj("disable_biscotti_fetch_entirely_for_all_web_clients")&&z6()){var N=g.XI("PLAYER_VARS",{});if(g.N8(N,"privembed",!1)!="1"&&!J4_(N)){var z=function(){jo=!0;"google_ad_status"in window?Ih("DCLKSTAT",1):Ih("DCLKSTAT",2)}; try{g.iD("//static.doubleclick.net/instream/ad_status.js",z)}catch(v){}lK_.push(g.oH.Mo(function(){if(!(jo||"google_ad_status"in window)){try{if(z){var v=""+g.Cm(z),R=Jr2[v];R&&g.ZK(R)}}catch(C){}jo=!0;Ih("DCLKSTAT",3)}},5E3))}}}; aN=function(){var N=Number(g.XI("DCLKSTAT",0));return isNaN(N)?0:N}; lI=function(N,z,v){var R=this;this.network=N;this.options=z;this.W=v;this.V=null;if(z.dX1){var C=new g.Ww;this.V=C.promise;g.u7.ytAtRC&&q0(function(){var Z,Y;return g.S(function(Q){if(Q.W==1){if(!g.u7.ytAtRC)return Q.return();Z=Qa(null);return g.k(Q,LA(R,Z),2)}Y=Q.V;g.u7.ytAtRC&&g.u7.ytAtRC(JSON.stringify(Y));g.fO(Q)})},2); KBY().then(function(Z){var Y,Q,L,K;return g.S(function(l){if(l.W==1)return Z.bindInnertubeChallengeFetcher(function(W){return LA(R,Qa(W))}),g.k(l,ZJ(),2); Y=l.V;Q=Z.getLatestChallengeResponse();L=Q.challenge;if(!L)throw Error("BGE_MACIL");K={challenge:L,Zo:Yl(L),mQ:Y,bgChallenge:new K$};C.resolve(K);Z.registerChallengeFetchedCallback(function(W){W=W.challenge;if(!W)throw Error("BGE_MACR");W={challenge:W,Zo:Yl(W),mQ:Y,bgChallenge:new K$};R.V=Promise.resolve(W)}); g.fO(l)})})}else z.preload&&GFv(this,new Promise(function(Z){g.M0(0,function(){Z(KA(R))},0)}))}; Qa=function(N){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};N&&(z.interpreterHash=N);return z}; KA=function(N,z){z=z===void 0?0:z;var v,R,C,Z,Y,Q,L,K,l,W,G,x;return g.S(function(e){switch(e.W){case 1:v=Qa(eU().V);if(g.yj("att_fet_ks"))return g.d_(e,7),g.k(e,LA(N,v),9);g.d_(e,4);return g.k(e,xqb(N,v),6);case 6:Y=e.V;C=Y.sPT;Z=Y.Bx8;R=Y;g.nO(e,3);break;case 4:return g.U2(e),g.PN(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),Wy(N,864E5),e.return({challenge:"",Zo:{},mQ:void 0,bgChallenge:void 0});case 9:R=e.V;if(!R)throw Error("Fetching Attestation challenge returned falsy"); if(!R.challenge)throw Error("Missing Attestation challenge");C=R.challenge;Z=Yl(C);if("c1a"in Z&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.nO(e,3);break;case 7:Q=g.U2(e);g.PN(Q);z++;if(z>=5)return g.PN(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),Wy(N,864E5),e.return({challenge:"",Zo:{},mQ:void 0,bgChallenge:void 0});L=1E3*Math.pow(2,z-1)+Math.random()*1E3;return e.return(new Promise(function(d){g.M0(0, function(){d(KA(N,z))},L)})); case 3:K=Number(Z.t)||7200;Wy(N,K*1E3);l=void 0;if(!("c1a"in Z&&R.bgChallenge)){e.Zp(10);break}W=LBI(R.bgChallenge);g.d_(e,11);return g.k(e,pqO(eU(),W),13);case 13:g.nO(e,12);break;case 11:return G=g.U2(e),g.PN(G),e.return({challenge:C,Zo:Z,mQ:l,bgChallenge:W});case 12:return g.d_(e,14),l=new GB({challenge:W,QG:{DO:"aGIf"}}),g.k(e,l.If,16);case 16:g.nO(e,10);break;case 14:x=g.U2(e),g.PN(x),l=void 0;case 10:return e.return({challenge:C,Zo:Z,mQ:l,bgChallenge:W})}})}; LA=function(N,z){var v;return g.S(function(R){v=N.W;if(!v||v.r$())return R.return(LA(N.network,z));Om("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(C){v.Dw("publicytnetworkstatus-online",function(){LA(N.network,z).then(C)})}))})}; eFI=function(N){if(!N)throw Error("Fetching Attestation challenge returned falsy");if(!N.challenge)throw Error("Missing Attestation challenge");var z=N.challenge,v=Yl(z);if("c1a"in v&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},N,{sPT:z,Bx8:v})}; xqb=function(N,z){var v,R,C,Z,Y;return g.S(function(Q){switch(Q.W){case 1:v=void 0,R=0,C={};case 2:if(!(R<5)){Q.Zp(4);break}if(!(R>0)){Q.Zp(5);break}C.kD=1E3*Math.pow(2,R-1)+Math.random()*1E3;return g.k(Q,new Promise(function(L){return function(K){g.M0(0,function(){K(void 0)},L.kD)}}(C)),5); case 5:return g.d_(Q,7),g.k(Q,LA(N,z),9);case 9:return Z=Q.V,Q.return(eFI(Z));case 7:v=Y=g.U2(Q),Y instanceof Error&&g.PN(Y);case 8:R++;C={kD:void 0};Q.Zp(2);break;case 4:throw v;}})}; GFv=function(N,z){N.V=z}; JiU=function(N){var z,v,R;return g.S(function(C){if(C.W==1)return g.k(C,Promise.race([N.V,null]),2);z=C.V;var Z=KA(N);N.V=Z;(v=z)==null||(R=v.mQ)==null||R.dispose();g.fO(C)})}; Wy=function(N,z){function v(){var C;return g.S(function(Z){C=R-Date.now();return C<1E3?g.k(Z,JiU(N),0):(q0(v,0,Math.min(C,6E4)),Z.Zp(0))})} var R=Date.now()+z;v()}; yiO=function(N,z){return new Promise(function(v){g.M0(0,function(){v(z())},N)})}; g.fKx=function(N,z){var v;return g.S(function(R){var C=g.qx("yt.aba.att");return(v=C?C:lI.instance!==void 0?lI.instance.Z.bind(lI.instance):null)?R.return(v("ENGAGEMENT_TYPE_PLAYBACK",N,z)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.dqO=function(){var N;return(N=(N=g.qx("yt.aba.att2"))?N:lI.instance!==void 0?lI.instance.N.bind(lI.instance):null)?N():Promise.resolve(!1)}; T3K=function(N,z){var v=g.qx("ytDebugData.callbacks");v||(v={},g.cU("ytDebugData.callbacks",v));if(g.yj("web_dd_iu")||sAu.includes(N))v[N]=z}; GL=function(){var N=FBI;var z=z===void 0?[]:z;var v=v===void 0?[]:v;z=dmK.apply(null,[s9v.apply(null,g.U(z))].concat(g.U(v)));this.store=F9I(N,void 0,z)}; g.xl=function(N,z,v){for(var R=Object.assign({},N),C=g.f(Object.keys(z)),Z=C.next();!Z.done;Z=C.next()){Z=Z.value;var Y=N[Z],Q=z[Z];if(Q===void 0)delete R[Z];else if(Y===void 0)R[Z]=Q;else if(Array.isArray(Q)&&Array.isArray(Y))R[Z]=v?[].concat(g.U(Y),g.U(Q)):Q;else if(!Array.isArray(Q)&&g.v$(Q)&&!Array.isArray(Y)&&g.v$(Y))R[Z]=g.xl(Y,Q,v);else if(typeof Q===typeof Y)R[Z]=Q;else return z=new g.XS("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Z,dzO:Y,updateValue:Q}),g.kE(z), N}return R}; eo=function(N){var z=this;N=N===void 0?[]:N;this.qH=[];this.oT=this.Ot=0;this.Mj=void 0;this.totalLength=0;N.forEach(function(v){z.append(v)})}; nLb=function(N,z){return N.qH.length===0?!1:(N=N.qH[N.qH.length-1])&&N.buffer===z.buffer&&N.byteOffset+N.length===z.byteOffset}; J2=function(N,z){z=g.f(z.qH);for(var v=z.next();!v.done;v=z.next())N.append(v.value)}; ya=function(N,z,v){return N.split(z).EA.split(v).x_}; fA=function(N){N.Mj=void 0;N.Ot=0;N.oT=0}; dJ=function(N,z,v){N.isFocused(z);return z-N.oT+v<=N.qH[N.Ot].length}; mqm=function(N){if(!N.Mj){var z=N.qH[N.Ot];N.Mj=new DataView(z.buffer,z.byteOffset,z.length)}return N.Mj}; sf=function(N,z,v){N=N.Na(z===void 0?0:z,v===void 0?-1:v);z=new Uint8Array(N.length);try{z.set(N)}catch(R){for(v=0;v>10;Z=56320|Z&1023}nA[C++]=Z}}Z=String.fromCharCode.apply(String,nA); C<1024&&(Z=Z.substring(0,C));v.push(Z)}return v.join("")}; Uf=function(N,z){var v;if((v=$l)==null?0:v.encodeInto)return z=$l.encodeInto(N,z),z.read>6|192:((C&64512)===55296&&R+1>18|240,z[v++]=C>>12&63|128):z[v++]=C>>12|224,z[v++]=C>>6&63|128),z[v++]=C&63|128)}return v}; By=function(N){if($l)return $l.encode(N);var z=new Uint8Array(Math.ceil(N.length*1.2)),v=Uf(N,z);z.lengthv&&(z=z.subarray(0,v));return z}; A2=function(N){this.V=N;this.pos=0;this.W=-1}; gJ=function(N){var z=N.V.getUint8(N.pos);++N.pos;if(z<128)return z;for(var v=z&127,R=1;z>=128;)z=N.V.getUint8(N.pos),++N.pos,R*=128,v+=(z&127)*R;return v}; pA=function(N,z){var v=N.W;for(N.W=-1;N.V.mK(N.pos,1);){v<0&&(v=gJ(N));var R=v>>3,C=v&7;if(R===z)return!0;if(R>z){N.W=v;break}v=-1;switch(C){case 0:gJ(N);break;case 1:N.pos+=8;break;case 2:R=gJ(N);N.pos+=R;break;case 5:N.pos+=4}}return!1}; kl=function(N,z){if(pA(N,z))return gJ(N)}; Py=function(N,z){if(pA(N,z))return!!gJ(N)}; Va=function(N,z){if(pA(N,z)){z=gJ(N);var v=N.V.Na(N.pos,z);N.pos+=z;return v}}; So=function(N,z){if(N=Va(N,z))return g.mC(N)}; Ef=function(N,z,v){if(N=Va(N,z))return v(new A2(new eo([N])))}; h2=function(N,z){for(var v=[];pA(N,z);)v.push(gJ(N));return v.length?v:void 0}; Hy=function(N,z,v){for(var R=[],C;C=Va(N,z);)R.push(v(new A2(new eo([C]))));return R.length?R:void 0}; oN=function(N,z){N=N instanceof Uint8Array?new eo([N]):N;return z(new A2(N))}; B37=function(N,z,v){if(z&&v&&v.buffer===z.exports.memory.buffer){var R=z.realloc(v.byteOffset,N);if(R)return new Uint8Array(z.exports.memory.buffer,R,N)}N=z?new Uint8Array(z.exports.memory.buffer,z.malloc(N),N):new Uint8Array(N);v&&N.set(v);return N}; Ai_=function(N,z){this.WH=z;this.pos=0;this.W=[];this.V=B37(N===void 0?4096:N,z);this.view=new DataView(this.V.buffer,this.V.byteOffset,this.V.byteLength)}; DX=function(N,z){z=N.pos+z;if(!(N.V.length>=z)){for(var v=N.V.length*2;v268435455){DX(N,4);for(var v=z&1073741823,R=0;R<4;R++)N.view.setUint8(N.pos,v&127|128),v>>=7,N.pos+=1;z=Math.floor(z/268435456)}for(DX(N,4);z>127;)N.view.setUint8(N.pos,z&127|128),z>>=7,N.pos+=1;N.view.setUint8(N.pos,z);N.pos+=1}; t2=function(N,z,v){v!==void 0&&(bI(N,z*8),bI(N,v))}; Of=function(N,z,v){v!==void 0&&t2(N,z,v?1:0)}; IN=function(N,z,v){v!==void 0&&(bI(N,z*8+2),z=v.length,bI(N,z),DX(N,z),N.V.set(v,N.pos),N.pos+=z)}; Xs=function(N,z,v){v!==void 0&&(gLU(N,z,Math.ceil(Math.log2(v.length*4+2)/7)),DX(N,v.length*1.2),z=Uf(v,N.V.subarray(N.pos)),N.pos+z>N.V.length&&(DX(N,z),z=Uf(v,N.V.subarray(N.pos))),N.pos+=z,paY(N))}; gLU=function(N,z,v){v=v===void 0?2:v;bI(N,z*8+2);N.W.push(N.pos);N.W.push(v);N.pos+=v}; paY=function(N){for(var z=N.W.pop(),v=N.W.pop(),R=N.pos-v-z;z--;){var C=z?128:0;N.view.setUint8(v++,R&127|C);R>>=7}}; rJ=function(N,z,v,R,C){v&&(gLU(N,z,C===void 0?3:C),R(N,v),paY(N))}; g.uI=function(N,z,v){v=new Ai_(4096,v);z(v,N);return new Uint8Array(v.V.buffer,v.V.byteOffset,v.pos)}; g.cy=function(N){var z=new A2(new eo([R1(decodeURIComponent(N))]));N=So(z,2);z=kl(z,4);var v=kF2[z];if(typeof v==="undefined")throw N=new g.XS("Failed to recognize field number",{name:"EntityKeyHelperError",KUd:z}),g.kE(N),N;return{RF:z,entityType:v,entityId:N}}; g.qJ=function(N,z){var v=v===void 0?0:v;var R=new Ai_;IN(R,2,By(N));N=PDx[z];if(typeof N==="undefined")throw v=new g.XS("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),g.kE(v),v;t2(R,4,N);t2(R,5,1);z=new Uint8Array(R.V.buffer,R.V.byteOffset,R.pos);return encodeURIComponent(g.zV(z,v))}; MJ=function(N,z,v,R){if(R===void 0)return R=Object.assign({},N[z]||{}),v=(delete R[v],R),R={},Object.assign({},N,(R[z]=v,R));var C={},Z={};return Object.assign({},N,(Z[z]=Object.assign({},N[z],(C[v]=R,C)),Z))}; VDY=function(N,z,v,R,C){var Z=N[z];if(Z==null||!Z[v])return N;R=g.xl(Z[v],R,C==="REPEATED_FIELDS_MERGE_OPTION_APPEND");C={};Z={};return Object.assign({},N,(Z[z]=Object.assign({},N[z],(C[v]=R,C)),Z))}; SDu=function(N,z){N=N===void 0?{}:N;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(R,C){var Z,Y=(Z=C.options)==null?void 0:Z.persistenceOption;if(Y&&Y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!C.entityKey)return g.kE(Error("Missing entity key")),R;if(C.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!C.payload)return C=new g.XS("REPLACE entity mutation is missing a payload",{entityKey:C.entityKey}),g.kE(C),R;var Q=g.Iw(C.payload); return MJ(R,Q,C.entityKey,C.payload[Q])}if(C.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{C=C.entityKey;try{var L=g.cy(C).entityType;Q=MJ(R,L,C);break a}catch(W){if(W instanceof Error){C=new g.XS("Failed to deserialize entity key",{entityKey:C,originalMessage:W.message});g.kE(C);Q=R;break a}throw W;}Q=void 0}return Q}if(C.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!C.payload)return C=new g.XS("UPDATE entity mutation is missing a payload",{entityKey:C.entityKey}),g.kE(C),R;Q=g.Iw(C.payload);var K,l;return VDY(R, Q,C.entityKey,C.payload[Q],(K=C.fieldMask)==null?void 0:(l=K.mergeOptions)==null?void 0:l.repeatedFieldsMergeOption)}return R},N); case "REPLACE_ENTITY":var v=z.payload;return MJ(N,v.entityType,v.key,v.KK);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(R,C){var Z=z.payload[C];return Object.keys(Z).reduce(function(Y,Q){return MJ(Y,C,Q,Z[Q])},R)},N); case "UPDATE_ENTITY":return v=z.payload,VDY(N,v.entityType,v.key,v.KK,v.Wwp);default:return N}}; wJ=function(N,z,v){return N[z]?N[z][v]||null:null}; NT=function(N){return window.Int32Array?new Int32Array(N):Array(N)}; xX=function(N){g.H.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.V=16;if(!ELK){var z,v=new Uint8Array(256),R=new Uint8Array(256);var C=1;for(z=0;z<256;z++)v[C]=z,R[z]=C,C^=C<<1^(C>>7&&283);LS=new Uint8Array(256);KS=NT(256);lq=NT(256);Wj=NT(256);G9=NT(256);for(var Z=0;Z<256;Z++){C=Z?R[255^v[Z]]:0;C^=C<<1^C<<2^C<<3^C<<4;C=C&255^C>>>8^99;LS[Z]=C;z=C<<1^(C>>7&&283);var Y=z^C;KS[Z]=z<<24|C<<16|C<<8|Y;lq[Z]=Y<<24|KS[Z]>>>8;Wj[Z]=C<<24|lq[Z]>>>8;G9[Z]=C<<24|Wj[Z]>>>8}ELK=!0}C=NT(44);for(v= 0;v<4;v++)C[v]=N[4*v]<<24|N[4*v+1]<<16|N[4*v+2]<<8|N[4*v+3];for(R=1;v<44;v++)N=C[v-1],v%4||(N=(LS[N>>16&255]^R)<<24|LS[N>>8&255]<<16|LS[N&255]<<8|LS[N>>>24],R=R<<1^(R>>7&&283)),C[v]=C[v-4]^N;this.key=C}; e4=function(N,z){for(var v=0;v<4;v++)N.counter[v]=z[v*4]<<24|z[v*4+1]<<16|z[v*4+2]<<8|z[v*4+3];N.V=16}; hFf=function(N){for(var z=N.key,v=N.counter[0]^z[0],R=N.counter[1]^z[1],C=N.counter[2]^z[2],Z=N.counter[3]^z[3],Y=3;Y>=0&&!(N.counter[Y]=-~N.counter[Y]);Y--);for(var Q,L,K=4;K<40;)Y=KS[v>>>24]^lq[R>>16&255]^Wj[C>>8&255]^G9[Z&255]^z[K++],Q=KS[R>>>24]^lq[C>>16&255]^Wj[Z>>8&255]^G9[v&255]^z[K++],L=KS[C>>>24]^lq[Z>>16&255]^Wj[v>>8&255]^G9[R&255]^z[K++],Z=KS[Z>>>24]^lq[v>>16&255]^Wj[R>>8&255]^G9[C&255]^z[K++],v=Y,R=Q,C=L;N=N.W;Y=z[40];N[0]=LS[v>>>24]^Y>>>24;N[1]=LS[R>>16&255]^Y>>16&255;N[2]=LS[C>>8&255]^ Y>>8&255;N[3]=LS[Z&255]^Y&255;Y=z[41];N[4]=LS[R>>>24]^Y>>>24;N[5]=LS[C>>16&255]^Y>>16&255;N[6]=LS[Z>>8&255]^Y>>8&255;N[7]=LS[v&255]^Y&255;Y=z[42];N[8]=LS[C>>>24]^Y>>>24;N[9]=LS[Z>>16&255]^Y>>16&255;N[10]=LS[v>>8&255]^Y>>8&255;N[11]=LS[R&255]^Y&255;Y=z[43];N[12]=LS[Z>>>24]^Y>>>24;N[13]=LS[v>>16&255]^Y>>16&255;N[14]=LS[R>>8&255]^Y>>8&255;N[15]=LS[C&255]^Y&255}; fS=function(){if(!JU&&!g.Xi){if(yz)return yz;var N;yz=(N=window.crypto)==null?void 0:N.subtle;var z,v,R;if(((z=yz)==null?0:z.importKey)&&((v=yz)==null?0:v.sign)&&((R=yz)==null?0:R.encrypt))return yz;yz=void 0}}; g.dC=function(N){this.W=N}; H1v=function(N,z,v,R){var C,Z;return g.S(function(Y){switch(Y.W){case 1:if(N.Z){Y.Zp(2);break}return g.k(Y,R.importKey("raw",N.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:N.Z=Y.V;case 2:return C={name:"AES-CTR",counter:v,length:128},g.k(Y,R.encrypt(C,N.Z,z),4);case 4:return Z=Y.V,Y.return(new Uint8Array(Z))}})}; oLv=function(N,z,v){N.V||(N.V=new xX(N.W));e4(N.V,v);return N.V.encrypt(z)}; g.sU=function(N){this.W=N}; T9=function(N){this.B=new Uint8Array(64);this.Z=new Uint8Array(64);this.N=0;this.G=new Uint8Array(64);this.W=0;this.B.set(N);this.Z.set(N);for(N=0;N<64;N++)this.B[N]^=92,this.Z[N]^=54;this.reset()}; Dqv=function(N,z,v){for(var R=N.L,C=N.V[0],Z=N.V[1],Y=N.V[2],Q=N.V[3],L=N.V[4],K=N.V[5],l=N.V[6],W=N.V[7],G,x,e,d=0;d<64;)d<16?(R[d]=e=z[v]<<24|z[v+1]<<16|z[v+2]<<8|z[v+3],v+=4):(G=R[d-2],x=R[d-15],e=R[d-7]+R[d-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3),R[d]=e),G=W+FJ[d]+e+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&K^~L&l),x=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&Z^C&Y^Z&Y),W=G+x,Q+=G,d++,d<16?(R[d]=e=z[v]<<24|z[v+1]<<16|z[v+2]<<8|z[v+3],v+=4):(G= R[d-2],x=R[d-15],e=R[d-7]+R[d-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3),R[d]=e),G=l+FJ[d]+e+((Q>>>6|Q<<26)^(Q>>>11|Q<<21)^(Q>>>25|Q<<7))+(Q&L^~Q&K),x=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&C^W&Z^C&Z),l=G+x,Y+=G,d++,d<16?(R[d]=e=z[v]<<24|z[v+1]<<16|z[v+2]<<8|z[v+3],v+=4):(G=R[d-2],x=R[d-15],e=R[d-7]+R[d-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3),R[d]=e),G=K+FJ[d]+e+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&Q^ ~Y&L),x=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&W^l&C^W&C),K=G+x,Z+=G,d++,d<16?(R[d]=e=z[v]<<24|z[v+1]<<16|z[v+2]<<8|z[v+3],v+=4):(G=R[d-2],x=R[d-15],e=R[d-7]+R[d-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3),R[d]=e),G=L+FJ[d]+e+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&Y^~Z&Q),x=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&l^K&W^l&W),e=W,W=Q,Q=e,e=l,l=Y,Y=e,e=K,K=Z,Z=e,L=C+G,C=G+x,d++;N.V[0]=C+N.V[0]|0;N.V[1]=Z+N.V[1]|0;N.V[2]=Y+N.V[2]|0;N.V[3]= Q+N.V[3]|0;N.V[4]=L+N.V[4]|0;N.V[5]=K+N.V[5]|0;N.V[6]=l+N.V[6]|0;N.V[7]=W+N.V[7]|0}; tDY=function(N){var z=new Uint8Array(32),v=64-N.W;N.W>55&&(v+=64);var R=new Uint8Array(v);R[0]=128;for(var C=N.N*8,Z=1;Z<9;Z++){var Y=C%256;R[v-Z]=Y;C=(C-Y)/256}N.update(R);for(v=0;v<8;v++)z[v*4]=N.V[v]>>>24,z[v*4+1]=N.V[v]>>>16&255,z[v*4+2]=N.V[v]>>>8&255,z[v*4+3]=N.V[v]&255;b1u(N);return z}; b1u=function(N){N.V=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];N.L=[];N.L.length=64;N.N=0;N.W=0}; O1b=function(N){this.V=N}; IKm=function(N,z,v){N=new T9(N.V);N.update(z);N.update(v);z=tDY(N);N.update(N.B);N.update(z);z=tDY(N);N.reset();return z}; Xau=function(N){this.W=N}; riu=function(N,z,v,R){var C,Z,Y;return g.S(function(Q){switch(Q.W){case 1:if(N.V){Q.Zp(2);break}return g.k(Q,R.importKey("raw",N.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:N.V=Q.V;case 2:return C=new Uint8Array(z.length+v.length),C.set(z),C.set(v,z.length),Z={name:"HMAC",hash:"SHA-256"},g.k(Q,R.sign(Z,N.V,C),4);case 4:return Y=Q.V,Q.return(new Uint8Array(Y))}})}; uXu=function(N,z,v){N.Z||(N.Z=new O1b(N.W));return IKm(N.Z,z,v)}; ciI=function(N,z,v){var R,C;return g.S(function(Z){if(Z.W==1){R=fS();if(!R)return Z.return(uXu(N,z,v));g.d_(Z,3);return g.k(Z,riu(N,z,v,R),5)}if(Z.W!=3)return Z.return(Z.V);C=g.U2(Z);g.PN(C);JU=!0;return Z.return(uXu(N,z,v))})}; MDf=function(N){for(var z="",v=0;v=1?N[N.length-1]:null;for(var R=g.f(N),C=R.next();!C.done;C=R.next())if(C=C.value,C.width&&C.height&&(v&&C.width>=z||!v&&C.height>=z))return C;for(z=N.length-1;z>=0;z--)if(v&&N[z].width||!v&&N[z].height)return N[z];return N[0]}; mm=function(){this.state=1;this.mQ=null;this.bL=void 0}; Q_u=function(N,z,v,R,C,Z){var Y=Y===void 0?"trayride":Y;v?(N.lF(2),g.iD(v,function(){if(window[Y])ar7(N,R,Y,C);else{N.lF(3);var Q=eXU(v),L=document.getElementById(Q);L&&(GUu(Q),L.parentNode.removeChild(L));g.PN(new g.XS("BL:ULB",""+v))}},Z)):z?(Z=g.wL("SCRIPT"),z instanceof ZB?(Z.textContent=iU(z),j8(Z)):Z.textContent=z,Z.nonce=C9(document),document.head.appendChild(Z),document.head.removeChild(Z),window[Y]?ar7(N,R,Y,C):(N.lF(4),g.PN(new g.XS("BL:ULBJ")))):g.PN(new g.XS("BL:ULV"))}; ar7=function(N,z,v,R){N.lF(5);var C=!!N.bL&&LKI.includes(g.nt(N.bL)||"");try{var Z=new GB({program:z,globalName:v,QG:{disable:!g.yj("att_web_record_metrics")||!g.yj("att_skip_metrics_for_cookieless_domains_ks")&&C,DO:"aGIf"}});Z.If.then(function(){N.lF(6);R&&R(z)}); N.Nb(Z)}catch(Y){N.lF(7),Y instanceof Error&&g.PN(Y)}}; $X=function(){var N=g.qx("yt.abuse.playerAttLoader");return N&&["bgvma","bgvmb","bgvmc"].every(function(z){return z in N})?N:null}; UU=function(){mm.apply(this,arguments)}; Bj=function(){}; KKO=function(N,z,v){for(var R=!1,C=g.f(N.Jb.entries()),Z=C.next();!Z.done;Z=C.next())Z=g.f(Z.value).next().value,Z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Z.hO==="core"&&(R=!0);if(R){a:if(!v){N=g.f(N.Jb.entries());for(v=N.next();!v.done;v=N.next())if(R=g.f(v.value),v=R.next().value,R=R.next().value,v.slotType==="SLOT_TYPE_IN_PLAYER"&&v.hO==="core"){v=R.layoutId;break a}v=void 0}v?z.yM(v):LZ("No triggering layout ID available when attempting to mute.")}}; AU=function(N,z){this.XB=N;this.gm=z}; gC=function(){}; pS=function(){}; WK2=function(N){g.H.call(this);var z=this;this.fb=N;this.V=new Map;kX(this,"commandExecutorCommand",function(v,R,C){lrm(z,v.commands,R,C)}); kX(this,"clickTrackingParams",function(){})}; GZ7=function(N,z){kX(N,z.YC(),function(v,R,C){z.JG(v,R,C)})}; kX=function(N,z,v){N.HL();N.V.get(z)&&g.kE(Error("Extension name "+z+" already registered"));N.V.set(z,v)}; lrm=function(N,z,v,R){z=z===void 0?[]:z;N.HL();var C=[],Z=[];z=g.f(z);for(var Y=z.next();!Y.done;Y=z.next())Y=Y.value,g.t(Y,xz_)||g.t(Y,eCI)?C.push(Y):Z.push(Y);C=g.f(C);for(z=C.next();!z.done;z=C.next())Pj(N,z.value,v,R);Z=g.f(Z);for(C=Z.next();!C.done;C=Z.next())Pj(N,C.value,v,R)}; Pj=function(N,z,v,R){N.HL();z.loggingUrls&&JT7(N,"loggingUrls",z.loggingUrls,v,R);z=g.f(Object.entries(z));for(var C=z.next();!C.done;C=z.next()){var Z=g.f(C.value);C=Z.next().value;Z=Z.next().value;C==="openPopupAction"?N.fb.get().D6("innertubeCommand",{openPopupAction:Z}):C==="confirmDialogEndpoint"?N.fb.get().D6("innertubeCommand",{confirmDialogEndpoint:Z}):yTm.hasOwnProperty(C)||JT7(N,C,Z,v,R)}}; JT7=function(N,z,v,R,C){if((N=N.V.get(z))&&typeof N==="function")try{N(v,R,C)}catch(Z){g.kE(Z)}else z=new g.XS("Unhandled field",z),g.PN(z)}; Vz=function(N,z,v){this.oy=N;this.V=z;this.sT=v;Ai(Pa(),{C_:izu,r3:YnY})}; S4=function(N){this.value=N}; EU=function(N){this.value=N}; hU=function(N){this.value=N}; Hj=function(N){this.value=N}; o3=function(N){this.value=N}; Dw=function(N){this.value=N}; bq=function(N){this.value=N}; tU=function(){S4.apply(this,arguments)}; OU=function(N){this.value=N}; I3=function(N){this.value=N}; XJ=function(N){this.value=N}; rC=function(N){this.value=N}; uq=function(N){this.value=N}; cj=function(N){this.value=N}; qT=function(N){this.value=N}; MT=function(N){this.value=N}; wC=function(N){this.value=N}; NK=function(N){this.value=N}; zy=function(){S4.apply(this,arguments)}; v2=function(N){this.value=N}; Rj=function(N){this.value=N}; C3=function(N){this.value=N}; Zy=function(N){this.value=N}; YP=function(N){this.value=N}; iu=function(N){this.value=N}; jT=function(N){this.value=N}; aj=function(N){this.value=N}; Q_=function(N){this.value=N}; L3=function(N){this.value=N}; K3=function(N){this.value=N}; lu=function(N){this.value=N}; W2=function(N){this.value=N}; Gy=function(N){this.value=N}; xP=function(N){this.value=N}; eT=function(N){this.value=N}; J1=function(N){this.value=N}; y_=function(N){this.value=N}; f3=function(N){this.value=N}; dU=function(N){this.value=N}; sx=function(N){this.value=N}; Ty=function(N){this.value=N}; FP=function(N){this.value=N}; n3=function(N){this.value=N}; mX=function(N){this.value=N}; $P=function(N){this.value=N}; Ux=function(N){this.value=N}; B2=function(N){this.value=N}; A1=function(N){this.value=N}; gU=function(N){this.value=N}; p3=function(N){this.value=N}; kP=function(N){this.value=N}; P2=function(N){this.value=N}; V_=function(N){this.value=N}; ST=function(N){this.value=N}; Ex=function(N){this.value=N}; h1=function(N){this.value=N}; H2=function(N){this.value=N}; oj=function(){S4.apply(this,arguments)}; Dy=function(N){this.value=N}; bu=function(){S4.apply(this,arguments)}; t1=function(){S4.apply(this,arguments)}; Ox=function(){S4.apply(this,arguments)}; Ij=function(){S4.apply(this,arguments)}; XP=function(){S4.apply(this,arguments)}; rU=function(N){this.value=N}; uu=function(N){this.value=N}; c2=function(N){this.value=N}; qK=function(N){this.value=N}; MK=function(N){this.value=N}; Nh=function(N,z,v){if(v&&!v.includes(N.layoutType))return!1;z=g.f(z);for(v=z.next();!v.done;v=z.next())if(!wU(N.clientMetadata,v.value))return!1;return!0}; zW=function(){return""}; frv=function(N,z){switch(N){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 z(N),8}}; vL=function(N,z,v,R){R=R===void 0?!1:R;Km.call(this,N);this.PW=v;this.Ao=R;this.args=[];z&&this.args.push(z)}; q=function(N,z,v,R){R=R===void 0?!1:R;Km.call(this,N);this.PW=v;this.Ao=R;this.args=[];z&&this.args.push(z)}; RY=function(N){var z=new Map;N.forEach(function(v){z.set(v.V(),v)}); this.V=z}; wU=function(N,z){return N.V.has(z)}; CM=function(N,z){N=N.V.get(z);if(N!==void 0)return N.get()}; ZL=function(N){return Array.from(N.V.keys())}; YV=function(N,z,v){if(v&&v!==N.slotType)return!1;z=g.f(z);for(v=z.next();!v.done;v=z.next())if(!wU(N.clientMetadata,v.value))return!1;return!0}; s_m=function(N){var z;return((z=dzb.get(N))==null?void 0:z.c9)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; jR=function(N,z){var v={type:z.slotType,controlFlowManagerLayer:T0I.get(z.hO)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(v.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(v.slotPhysicalPosition=z.slotPhysicalPosition);if(N){v.debugData={slotId:z.slotId};if(N=z.slotEntryTrigger)v.debugData.slotEntryTriggerData=ic(N);N=z.slotFulfillmentTriggers;v.debugData.fulfillmentTriggerData=[];N=g.f(N);for(var R=N.next();!R.done;R=N.next())v.debugData.fulfillmentTriggerData.push(ic(R.value)); z=z.slotExpirationTriggers;v.debugData.expirationTriggerData=[];z=g.f(z);for(N=z.next();!N.done;N=z.next())v.debugData.expirationTriggerData.push(ic(N.value))}return v}; FKv=function(N,z){var v={type:z.layoutType,controlFlowManagerLayer:T0I.get(z.hO)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N&&(v.debugData={layoutId:z.layoutId});return v}; ic=function(N,z){var v={type:N.triggerType};z!=null&&(v.category=z);N.triggeringSlotId!=null&&(v.triggerSourceData||(v.triggerSourceData={}),v.triggerSourceData.associatedSlotId=N.triggeringSlotId);N.triggeringLayoutId!=null&&(v.triggerSourceData||(v.triggerSourceData={}),v.triggerSourceData.associatedLayoutId=N.triggeringLayoutId);return v}; nE2=function(N,z,v,R){z={opportunityType:z};N&&(R||v)&&(R=g.OL(R||[],function(C){return jR(N,C)}),z.debugData=Object.assign({},v&&v.length>0?{associatedSlotId:v}:{},R.length>0?{slots:R}:{})); return z}; Qd=function(N,z){return function(v){return mzu(aY(N),z.slotId,z.slotType,z.slotPhysicalPosition,z.hO,z.slotEntryTrigger,z.slotFulfillmentTriggers,z.slotExpirationTriggers,v.layoutId,v.layoutType,v.hO)}}; mzu=function(N,z,v,R,C,Z,Y,Q,L,K,l){return{adClientDataEntry:{slotData:jR(N,{slotId:z,slotType:v,slotPhysicalPosition:R,hO:C,slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:Q,clientMetadata:new RY([])}),layoutData:FKv(N,{layoutId:L,layoutType:K,hO:l,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],OR:new Map,clientMetadata:new RY([]),Bb:{}})}}}; KM=function(N){this.zU=N;N=Math.random();var z=this.zU.get();z=g.LM(z.C.D().experiments,"html5_debug_data_log_probability");z=Number.isFinite(z)&&z>=0&&z<=1?z:0;this.V=N1){g.PN(new g.XS("Exit already started",{current:N.currentState}));var v=!1}else v=!0;if(!v)return!1;N.currentState=2;N.V=z;return!0}; Jx=function(N){if(N.currentState!==2)return!1;N.currentState=3;return!0}; RiI=function(N,z){var v=new Map;N=g.f(N);for(var R=N.next();!R.done;R=N.next()){R=R.value;if(R.layoutType==="LAYOUT_TYPE_MEDIA")var C="v";else R.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(C=CM(R.clientMetadata,"metadata_type_linked_in_player_layout_type"),C=C==="LAYOUT_TYPE_ENDCAP"||C==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":C==="LAYOUT_TYPE_SURVEY"?"s":C==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):C="u";v.set(R.layoutId,C);if(C==="u"){var Z={};C=z;R=(Z.c=R.layoutId,Z);C.C.WL("uct",R)}}N= z.K8();yV={contentCpn:N,oK:v};R={};v=(R.ct=v.size,R.c=N,R);z.C.WL("acc",v)}; C42=function(){yV={contentCpn:"",oK:new Map}}; f_=function(N){var z;return(z=yV.oK.get(N))!=null?z:"u"}; dp=function(N,z,v){N.C.WL(z,v);ZZ_(N)}; YIu=function(N){var z=N.layoutId,v=N.Vs;if(N.TA){var R={};dp(N.oy,"slso",(R.ec=z,R.is=v,R.ctp=f_(z),R))}}; sH=function(N){var z=N.layoutId,v=N.Vs;if(N.TA){var R={};dp(N.oy,"slse",(R.ec=z,R.is=v,R.ctp=f_(z),R))}}; iZ7=function(N){var z=N.layoutId,v=N.Vs,R=N.oy;N.TA&&(N={},dp(R,"sleo",(N.xc=z,N.is=v,N.ctp=f_(z),N)),ZZ_(R))}; jtx=function(N){var z=N.cpn,v=N.oy;N=N.Vs;var R=v.K8(),C={};dp(v,"ce",(C.ec=z,C.ia=z!==R,C.r=yV.oK.has(z),C.is=N,C.ctp=f_(z),C))}; ZZ_=function(N){if(N.K8()!==yV.contentCpn){var z={};z=(z.c=yV.contentCpn,z);N.C.WL("ccm",z)}}; a02=function(N){var z=N.cpn,v=N.oy;N=N.Vs;var R=v.K8(),C={};dp(v,"cx",(C.xc=z,C.ia=z!==R,C.r=yV.oK.has(z),C.is=N,C.ctp=f_(z),C))}; Qtu=function(N){this.params=N;this.V=new Set}; L5u=function(N,z,v){if(!N.V.has(z)){N.V.add(z);var R={};N.params.uL.oz(z,Object.assign({},v,(R.p_ac=N.params.adCpn,R.p_isv=N.params.MI&&N.params.yO,R)))}}; F1=function(N,z,v){if(T2(N.params.uL.zU.get(),!0)){var R=v.flush,C={};L5u(N,z,(C.cts=v.currentTimeSec,C.f=R,C))}}; K5I=function(N,z){this.oy=N;this.zU=z}; n_=function(N){var z=[];if(N){N=g.f(Object.entries(N));for(var v=N.next();!v.done;v=N.next()){var R=g.f(v.value);v=R.next().value;R=R.next().value;R!==void 0&&(R=typeof R==="boolean"?""+ +R:(""+R).replace(/[:,=]/g,"_"),z.push(v+"."+R))}}return z.join(";")}; mT=function(N,z,v){z=z===void 0?{}:z;this.errorCode=N;this.details=z;this.severity=v===void 0?0:v}; $z=function(N){return N===1||N===2}; UH=function(N,z){z=z===void 0?0:z;if(N instanceof mT)return N;N=N&&N instanceof Error?N:Error(""+N);$z(z)?g.kE(N):g.PN(N);return new mT(z===1?"player.fatalexception":"player.exception",{name:""+N.name,message:""+N.message},z)}; l0K=function(N,z){function v(){var R=g.SI.apply(0,arguments);N.removeEventListener("playing",v);z.apply(null,g.U(R))} N.addEventListener("playing",v)}; BP=function(){var N=g.qx("yt.player.utils.videoElement_");N||(N=g.wL("VIDEO"),g.cU("yt.player.utils.videoElement_",N));return N}; Ax=function(N){var z=BP();return!!(z&&z.canPlayType&&z.canPlayType(N))}; p_=function(N){if(/opus/.test(N)&&g.gp&&!n6("38")&&!g.tr())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(N);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(N);if(/webm/.test(N)&&!Wq7())return!1;N==='audio/mp4; codecs="mp4a.40.2"'&&(N='video/mp4; codecs="avc1.4d401f"');return!!Ax(N)}; W5u=function(N){try{var z=p_('video/mp4; codecs="avc1.42001E"')||p_('video/webm; codecs="vp9"');return(p_('audio/mp4; codecs="mp4a.40.2"')||p_('audio/webm; codecs="opus"'))&&(z||!N)||Ax('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(v){return"html5.missingapi"}}; kz=function(){var N=BP();return!(!N.webkitSupportsPresentationMode||typeof N.webkitSetPresentationMode!=="function")}; PP=function(){var N=BP();try{var z=N.muted;N.muted=!z;return N.muted!==z}catch(v){}return!1}; GXI=function(){var N;return((N=navigator.connection)==null?void 0:N.type)||""}; g.VV=function(){$a.apply(this,arguments)}; S3=function(N,z,v,R,C,Z,Y,Q){this.sampleRate=N===void 0?0:N;this.numChannels=z===void 0?0:z;this.spatialAudioType=v===void 0?"SPATIAL_AUDIO_TYPE_NONE":v;this.V=R===void 0?!1:R;this.N=C===void 0?0:C;this.Z=Z===void 0?0:Z;this.audioQuality=Y===void 0?"AUDIO_QUALITY_UNKNOWN":Y;this.W=Q===void 0?!1:Q}; HP=function(N,z,v,R,C,Z,Y,Q,L){this.width=N;this.height=z;this.quality=Z||EH(N,z);this.qualityOrdinal=g.hx[this.quality];this.fps=v||0;this.stereoLayout=!C||R!=null&&R!=="UNKNOWN"&&R!=="RECTANGULAR"?0:C;this.projectionType=R?R==="EQUIRECTANGULAR"&&C===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":R:"UNKNOWN";(N=Y)||(N=g.hx[this.quality],N===0?N="Autom\u00e1tica":(z=this.fps,v=this.projectionType,N=N.toString()+(v==="EQUIRECTANGULAR"||v==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||v==="MESH"?"s":"p")+(z>55?"60": z>49?"50":z>39?"48":"")));this.qualityLabel=N;this.V=Q||"";this.primaries=L||""}; EH=function(N,z){var v=Math.max(N,z);N=Math.min(N,z);z=oV[0];for(var R=0;R=Math.floor(Z*16/9)*1.3||N>=Z*1.3)return z;z=C}return"tiny"}; tx=function(N,z,v){v=v===void 0?{}:v;this.id=N;this.mimeType=z;v.i$>0||(v.i$=16E3);Object.assign(this,v);N=g.f(this.id.split(";"));this.itag=N.next().value;this.V=N.next().value;this.containerType=Di(z);this.JO=bi[this.itag]||""}; OH=function(N){return N.JO==="9"||N.JO==="("||N.JO==="9h"||N.JO==="(h"}; x22=function(N){return N.JO==="H"||N.JO==="h"}; IV=function(N){return N.JO==="9h"||N.JO==="(h"}; eiO=function(N){return!!N.CG&&!!N.CG.fairplay&&(N.JO==="("||N.JO==="(h"||N.JO==="A"||N.JO==="MEAC3")||X1&&!!N.CG&&N.JO==="1e"}; rp=function(N){return N.JO==="1"||N.JO==="1h"||X1&&N.JO==="1e"}; ui=function(N){return N.JO==="mac3"||N.JO==="meac3"||N.JO==="m"||N.JO==="i"}; cP=function(N){return N.JO==="MAC3"||N.JO==="MEAC3"||N.JO==="M"||N.JO==="I"}; g.qi=function(N){return N.containerType===1}; JXu=function(N){return N.JO==="("||N.JO==="(h"||N.JO==="H"||X1&&N.JO==="1e"}; Mi=function(N){return N.mimeType==="application/x-mpegURL"}; g.wp=function(N,z){return{itag:+N.itag,lmt:z?0:N.lastModified,xtags:N.V||""}}; yXY=function(N){var z=navigator.mediaCapabilities;if(z==null||!z.decodingInfo||N.JO==="f")return Promise.resolve();var v={type:N.audio&&N.video?"file":"media-source"};N.video&&(v.video={contentType:N.mimeType,width:N.video.width||640,height:N.video.height||360,bitrate:N.i$*8||1E6,framerate:N.video.fps||30});N.audio&&(v.audio={contentType:N.mimeType,channels:""+(N.audio.numChannels||2),bitrate:N.i$*8||128E3,samplerate:N.audio.sampleRate||44100});return z.decodingInfo(v).then(function(R){N.W=R})}; Na=function(N){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(N)}; zS=function(N){return/(vp9|vp09|vp8|avc1|av01)/.test(N)}; vE=function(N){return N.includes("vtt")||N.includes("text/mp4")}; Di=function(N){return N.indexOf("/mp4")>=0?1:N.indexOf("/webm")>=0?2:N.indexOf("/x-flv")>=0?3:N.indexOf("/vtt")>=0?4:0}; Re=function(N,z,v,R,C,Z){var Y=new S3;z in g.hx||(z="small");z==="light"&&(z="tiny");R&&C?(C=Number(C),R=Number(R)):(C=g.hx[z],R=Math.round(C*16/9));Z=new HP(R,C,0,null,void 0,z,Z);N=unescape(N.replace(/"/g,'"'));return new tx(v,N,{audio:Y,video:Z})}; CN=function(N){var z="id="+N.id;N.video&&(z+=", res="+N.video.qualityLabel);var v,R;return z+", byterate=("+((v=N.rZ)==null?void 0:v.toFixed(0))+", "+((R=N.i$)==null?void 0:R.toFixed(0))+")"}; Zj=function(N,z){return{start:function(v){return N[v]}, end:function(v){return z[v]}, length:N.length}}; f0Y=function(N,z,v){for(var R=[],C=[],Z=0;Z=z)return v}catch(R){}return-1}; jx=function(N,z){return ir(N,z)>=0}; d2K=function(N,z){if(!N)return NaN;z=ir(N,z);return z>=0?N.start(z):NaN}; ae=function(N,z){if(!N)return NaN;z=ir(N,z);return z>=0?N.end(z):NaN}; Q4=function(N){return N&&N.length?N.end(N.length-1):NaN}; LN=function(N){return Q4(N)>0}; KN=function(N,z){N=ae(N,z);return N>=0?N-z:0}; lr=function(N,z,v){for(var R=[],C=[],Z=0;Zv||(R.push(Math.max(z,N.start(Z))-z),C.push(Math.min(v,N.end(Z))-z));return Zj(R,C)}; WE=function(N,z,v,R){g.jJ.call(this);var C=this;this.v5=N;this.start=z;this.end=v;this.isActive=R;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.v_={error:function(){!C.HL()&&C.isActive&&C.publish("error",C)}, updateend:function(){!C.HL()&&C.isActive&&C.publish("updateend",C)}}; this.v5.wy(this.v_);this.Wr=this.isActive}; oe=function(N,z,v,R,C,Z){g.jJ.call(this);var Y=this;this.Mu=N;this.Cu=z;this.id=v;this.containerType=R;this.JO=C;this.yO=Z;this.Ue=this.Fl=this.Ta=null;this.Gu=!1;this.appendWindowStart=this.timestampOffset=0;this.BV=Zj([],[]);this.TY=!1;this.UW=[];this.Xo=GS?[]:void 0;this.JI=function(L){return Y.publish(L.type,Y)}; var Q;if((Q=this.Mu)==null?0:Q.addEventListener)this.Mu.addEventListener("updateend",this.JI),this.Mu.addEventListener("error",this.JI)}; Dj=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; br=function(N,z){this.KV=N;this.V=z===void 0?!1:z;this.W=!1}; tC=function(N,z,v){v=v===void 0?!1:v;g.H.call(this);this.mediaElement=N;this.uS=z;this.isView=v;this.G=0;this.N=!1;this.B=!0;this.J=0;this.callback=null;this.Y=!1;this.uS||(this.Cu=g.h(this.mediaElement.Nu()));this.events=new g.VV(this);g.b(this,this.events);this.Z=new br(this.uS?window.URL.createObjectURL(this.uS):this.Cu.webkitMediaSourceURL,!0);N=this.uS||this.Cu;Uv(this.events,N,["sourceopen","webkitsourceopen"],this.VL1);Uv(this.events,N,["sourceclose","webkitsourceclose"],this.q6S);this.L={updateend:this.WE}}; st7=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; TO2=function(N,z){O0(N)?g.Fp(function(){z(N)}):N.callback=z}; F5b=function(N,z,v){if(Ie){var R;Xk(N.mediaElement,{l:"mswssb",sr:(R=N.mediaElement.kT)==null?void 0:R.nO()},!1);z.wy(N.L,N);v.wy(N.L,N)}N.V=z;N.W=v;g.b(N,z);g.b(N,v)}; rK=function(N){return!!N.V||!!N.W}; O0=function(N){try{return ur(N)==="open"}catch(z){return!1}}; ur=function(N){if(N.uS)return N.uS.readyState;switch(N.Cu.webkitSourceState){case N.Cu.SOURCE_OPEN:return"open";case N.Cu.SOURCE_ENDED:return"ended";default:return"closed"}}; cE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; nJb=function(N){O0(N)&&(N.uS?N.uS.endOfStream():N.Cu.webkitSourceEndOfStream(N.Cu.EOS_NO_ERROR))}; m2x=function(N,z,v,R){if(!N.V||!N.W)return null;var C=N.V.isView()?N.V.v5:N.V,Z=N.W.isView()?N.W.v5:N.W,Y=new tC(N.mediaElement,N.uS,!0);Y.Z=N.Z;F5b(Y,new WE(C,z,v,R),new WE(Z,z,v,R));O0(N)||N.V.bK(N.V.fV());return Y}; $2b=function(N){var z;(z=N.V)==null||z.AE();var v;(v=N.W)==null||v.AE();N.B=!1}; qa=function(){var N=this;this.LB=this.eH=fum;this.promise=new g.mG(function(z,v){N.eH=z;N.LB=v})}; Ma=function(){g.H.call(this);this.jS=!1;this.KV=null;this.L=this.G=!1;this.N=new g.Ws;this.kT=null;g.b(this,this.N)}; wK=function(N){N=N.EG();return N.length<1?NaN:N.end(N.length-1)}; U2x=function(N){!N.W&&st7()&&(N.Z?N.Z.then(function(){return U2x(N)}):N.Tl()||(N.W=N.GD()))}; BO_=function(N){N.W&&(N.W.dispose(),N.W=void 0)}; Xk=function(N,z,v){var R;((R=N.kT)==null?0:R.LV())&&N.kT.WL("rms",z,v===void 0?!1:v)}; AX7=function(N,z,v){N.isPaused()||N.getCurrentTime()>z||v>10||(N.play(),g.W9(function(){AX7(N,N.getCurrentTime(),v+1)},500))}; gJu=function(N,z){N.KV&&N.KV.equals(z)||(N.KV&&N.KV.dispose(),N.KV=z)}; NQ=function(N){return KN(N.xA(),N.getCurrentTime())}; pWY=function(N,z){if(N.Vi()===0||N.hasError())return!1;var v=N.getCurrentTime()>0;return z>=0&&(N=N.EG(),N.length||!v)?jx(N,z):v}; zY=function(N){N.Tl()&&(N.kT&&N.kT.bH("rs_s"),IX&&N.getCurrentTime()>0&&N.seekTo(0),N.E2(),N.load(),gJu(N,null));delete N.Z}; vR=function(N){switch(N.Xk()){case 2:return"progressive.net.retryexhausted";case 3:return N=N.VX(),(N==null?0:N.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||kXU&&(N==null?0:N.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.Ro=function(N,z,v){this.BP=z===void 0?null:z;this.seekSource=v===void 0?null:v;this.state=N||64}; Cg=function(N,z,v){v=v===void 0?!1:v;return P4Y(N,z.getCurrentTime(),(0,g.I)(),NQ(z),v)}; Zo=function(N,z,v,R){if(!(z===N.state&&v===N.BP&&R===N.seekSource||z!==void 0&&(z&128&&!v||z&2&&z&16))){var C;if(C=z)C=z||N.state,C=!!(C&16||C&32);N=new g.Ro(z,v,C?R?R:N.seekSource:null)}return N}; Yc=function(N,z,v){return Zo(N,N.state|z,null,v===void 0?null:v)}; iE=function(N,z){return Zo(N,N.state&~z,null,null)}; ji=function(N,z,v,R){return Zo(N,(N.state|z)&~v,null,R===void 0?null:R)}; g.u=function(N,z){return!!(N.state&z)}; g.ao=function(N,z){return z.state===N.state&&z.BP===N.BP}; Qx=function(N){return N.isPlaying()&&!g.u(N,16)&&!g.u(N,32)}; Lg=function(N){return g.u(N,128)?-1:g.u(N,2)?0:g.u(N,2048)?3:g.u(N,64)?-1:g.u(N,1)&&!g.u(N,32)?3:g.u(N,8)?1:g.u(N,4)?2:-1}; lE=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T){g.H.call(this);var m=this;this.Kf=N;this.slot=z;this.layout=v;this.sT=R;this.rW=C;this.XW=Z;this.C0=Y;this.eK=Q;this.Iz=L;this.y6=K;this.position=W;this.G=G;this.zU=x;this.zC=e;this.uE=d;this.context=T;this.Df=!0;this.B=!1;this.ER="not_rendering";this.W=!1;this.Z=new WP;N=CM(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Dp=new Fg(v.OR,this.sT,N,v.layoutId);var n;N=((n=Kg(this))==null?void 0:n.progressCommands)||[];this.N=new kab(L, N,v.layoutId,function(){return m.jZ()}); this.V=new Qtu({adCpn:this.layout.layoutId,uL:T.uL,MI:this.zC,yO:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; WR=function(N){return{layoutId:N.mW(),Vs:N.zC,oy:N.XW.get(),TA:N.bv()}}; GY=function(N,z){return z.layoutId!==N.layout.layoutId?(N.Kf.n5(N.slot,z,new vL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+N.layout.layoutId+("and LayoutType: "+N.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; xc=function(N){N.ER="rendering_start_requested";N.y6(-1)}; Kg=function(N){return CM(N.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; V0I=function(N){LZ("Received layout exit signal when not in layout exit flow.",N.slot,N.layout)}; SIU=function(N){var z;return((z=ei(N.XW.get(),2))==null?void 0:z.clientPlaybackNonce)||""}; JN=function(N,z){switch(z){case "normal":N.h0("complete");break;case "skipped":N.h0("skip");break;case "abandoned":gV(N.Dp,"impression")&&N.h0("abandon")}}; yx=function(N,z){N.B||(z=new g.KZ(z.state,new g.Ro),N.B=!0);return z}; fg=function(N,z){QV(z)?N.y6(1):g.WW(z,4)&&!g.WW(z,2)&&N.u_();l4(z,4)<0&&!(l4(z,2)<0)&&N.Sc()}; EJY=function(N){N.position===0&&(N.eK.get(),N=CM(N.layout.clientMetadata,"metadata_type_ad_placement_config").kind,N={adBreakType:dr(N)},H_("ad_bl"),g.oc(N))}; TY=function(N,z){BA(N.Dp,z,!N.W)}; HZK=function(N){var z;return(((z=Kg(N))==null?void 0:z.progressCommands)||[]).findIndex(function(v){return!!g.t(v==null?void 0:v.command,hi_)})!==-1}; F7=function(N,z){var v=CM(N.clientMetadata,"metadata_type_eligible_for_ssap");return v===void 0?(LZ("Expected SSAP eligibility in PlayerBytes factory",N),!1):z.bv(v)}; ng=function(N,z){if(!Xu(z.get(),"html5_ssap_pass_transition_reason"))return 3;switch(N){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return LZ("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return LZ("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:N}),3;default:M8(N,"unknown layoutExitReason")}}; oJI=function(N){LZ("getExitReason: unexpected reason",void 0,void 0,{reason:N})}; mW=function(N,z){if(Xu(z.get(),"html5_ssap_pass_transition_reason"))switch(N){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return oJI(N),"abandoned";case 3:case 1:return oJI(N),"error";default:M8(N,"unexpected transition reason")}else switch(N){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return LZ("getExitReason: unexpected reason",void 0,void 0,{reason:N}),"error";default:M8(N,"unexpected transition reason")}}; $c=function(N,z,v){bv(N,v)||Om(N,z,v);bv(N,"video_to_ad")||Om(N,z,"video_to_ad");bv(N,"ad_to_video")||Om(N,z,"ad_to_video");bv(N,"ad_to_ad")||Om(N,z,"ad_to_ad")}; Uw=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m){lE.call(this,N,z,v,R,C,Z,Y,Q,K,l,W,G,x,e,d,T,m);var n=this;this.fb=L;this.rK=W;this.nZ=!0;this.hA=this.iY=0;this.IN=xS(function(){YIu(WR(n));n.Kf.Qh(n.slot,n.layout)}); this.qj=xS(function(){iZ7(WR(n));n.ER!=="rendering_stop_requested"&&n.rK(n);n.layoutExitReason?n.Kf.P5(n.slot,n.layout,n.layoutExitReason):V0I(n)}); this.hT=new g.El(200);this.hT.listen("tick",function(){n.G4()}); g.b(this,this.hT)}; AN=function(N){N.hA=Date.now();BR(N,N.iY);N.hT.start()}; D2U=function(N){N.iY=N.jZ();N.B9(N.iY/1E3,!0);BR(N,N.iY)}; BR=function(N,z){z={current:z/1E3,duration:N.jZ()/1E3};N.fb.get().D6("onAdPlaybackProgress",z)}; gr=function(N){Uw.call(this,N.Kf,N.slot,N.KU,N.sT,N.rW,N.XW,N.C0,N.eK,N.fb,N.Iz,N.y6,N.rK,N.m3,N.Qm,N.zU,N.zC,N.uE,N.context)}; pg=function(N){Uw.call(this,N.Kf,N.slot,N.KU,N.sT,N.rW,N.XW,N.C0,N.eK,N.fb,N.Iz,N.y6,N.rK,N.m3,N.Qm,N.zU,N.zC,N.uE,N.context)}; kc=function(){pg.apply(this,arguments)}; bZ2=function(N){return F7(N.slot,N.zU.get())?new kc(N):new gr(N)}; Si=function(N){lE.call(this,N.callback,N.slot,N.KU,N.sT,N.rW,N.XW,N.C0,N.eK,N.Iz,N.y6,N.rK,N.m3,N.Qm,N.zU,N.zC,N.uE,N.context);var z=this;this.adCpn="";this.fq=this.hX=0;this.IN=xS(function(){YIu(WR(z));z.Kf.Qh(z.slot,z.layout)}); this.qj=xS(function(){iZ7(WR(z));z.ER!=="rendering_stop_requested"&&z.rK(z);z.layoutExitReason?z.Kf.P5(z.slot,z.layout,z.layoutExitReason):V0I(z)}); this.DT=N.DT;this.AI=N.AI;this.H5=N.H5;this.fb=N.fb;this.HD=N.HD;this.rK=N.rK;if(!this.bv()){Xu(this.zU.get(),"html5_disable_media_load_timeout")||(this.tB=new g.cn(function(){z.yn("load_timeout",new vL("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); N=PR(this.zU.get());var v=Vx(this.zU.get());N&&v&&(this.m6=new g.cn(function(){var R=CM(z.layout.clientMetadata,"metadata_type_preload_player_vars");R&&z.AI.get().C.preloadVideoByPlayerVars(R,2,300)}))}}; OZf=function(N,z){var v=CM(z.clientMetadata,"metadata_type_ad_video_id"),R=CM(z.clientMetadata,"metadata_type_legacy_info_card_vast_extension");v&&R&&N.HD.get().C.D().tO.add(v,{Kg:R});(z=CM(z.clientMetadata,"metadata_type_sodar_extension_data"))&&Iru(N.DT.get(),z);t0u(N.C0.get(),!1)}; I0I=function(N){t0u(N.C0.get(),!0);var z;((z=N.shrunkenPlayerBytesConfig)==null?0:z.shouldRequestShrunkenPlayerBytes)&&N.C0.get().EN(!1)}; XWf=function(N){return new Ew(N)}; hN=function(){Si.apply(this,arguments)}; Ew=function(){hN.apply(this,arguments)}; rXv=function(N){return bZ2(Object.assign({},N,{Kf:N.callback,y6:function(){}}))}; ufY=function(N){return new Si(Object.assign({},N,{y6:function(z){N.fb.get().D6("onAdIntroStateChange",z)}}))}; cXv=function(N){function z(v){N.fb.get().DP(v)} return F7(N.slot,N.zU.get())?XWf(Object.assign({},N,{y6:z})):new Si(Object.assign({},N,{y6:z}))}; HR=function(N){for(var z=N.KU,v=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],R=g.f(n7()),C=R.next();!C.done;C=R.next())v.push(C.value);if(ua(z,{aP:v,DC:["LAYOUT_TYPE_MEDIA_BREAK"]}))return rXv(N);z=N.KU;v=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];R=g.f(n7());for(C=R.next();!C.done;C=R.next())v.push(C.value);if(ua(z,{aP:v,DC:["LAYOUT_TYPE_MEDIA"]}))return wU(N.KU.clientMetadata,"metadata_type_ad_intro")?ufY(N):cXv(N)}; M0u=function(N){var z=g.h(CM(N.clientMetadata,"metadata_type_ad_placement_config")).kind,v=CM(N.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:N.layoutId,adType:qI2(v),adBreakType:dr(z)}}; dr=function(N){switch(N){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"}}; qI2=function(N){switch(N){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; wWf=function(N){try{return new oo(N.mw,N.slot,N.layout,N.KG,N.r6,N.XW,N.Vy,N.AI,N.nV,N.C0,N.Nil,N)}catch(z){}}; oo=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){g.H.call(this);this.mw=N;this.slot=z;this.layout=v;this.KG=R;this.r6=C;this.XW=Z;this.Vy=Y;this.AI=Q;this.nV=L;this.C0=K;this.params=W;this.Df=!0;N=HR(l);if(!N)throw Error("Invalid params for sublayout");this.hI=N}; NZb=function(){this.V=1;this.W=new WP}; Do=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x){g.H.call(this);this.callback=N;this.XW=z;this.Vy=v;this.AI=R;this.C0=C;this.NH=Z;this.eK=Y;this.NQ=Q;this.slot=L;this.layout=K;this.KG=l;this.pO=W;this.nV=G;this.zU=x;this.Df=!0;this.nN=!1;this.hJ=[];this.yS=-1;this.AA=!1;this.tG=new NZb}; z2Y=function(N){var z;return(z=N.layout.Q6)!=null?z:CM(N.layout.clientMetadata,"metadata_type_sub_layouts")}; bE=function(N){return{oy:N.XW.get(),Vs:!1,TA:N.bv()}}; vru=function(N,z,v){if(N.N4()===N.hJ.length-1){var R,C;LZ("Unexpected skip requested during the last sublayout",(R=N.w6())==null?void 0:R.l$(),(C=N.w6())==null?void 0:C.lS(),{requestingSlot:z,requestingLayout:v})}}; R22=function(N,z,v){return v.layoutId!==tN(N,z,v)?(LZ("onSkipRequested for a PlayerBytes layout that is not currently active",N.l$(),N.lS()),!1):!0}; Cv7=function(N){N.N4()===N.hJ.length-1&&LZ("Unexpected skip with target requested during the last sublayout")}; ZhO=function(N,z,v){return v.renderingContent===void 0&&v.layoutId!==tN(N,z,v)?(LZ("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",N.l$(),N.lS(),{requestingSlot:z,requestingLayout:v}),!1):!0}; Ymv=function(N,z,v,R){var C=CM(z.lS().clientMetadata,"metadata_type_ad_pod_skip_target");if(C&&C>0&&C0)){LZ("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",N.slot,N.layout,{indexToPlay:z,layoutId:N.layout.layoutId});break a}N.yS=z;z=N.w6();if(N.N4()>0&&!N.bv()){var v=N.eK.get();v.W=!1;var R={};v.V&&v.videoId&&(R.cttAuthInfo={token:v.V,videoId:v.videoId});DT("ad_to_ad",R)}N.F7(z)}}; rr=function(N){Do.call(this,N.mw,N.XW,N.Vy,N.AI,N.C0,N.NH,N.eK,N.NQ,N.slot,N.layout,N.KG,N.pO,N.nV,N.zU)}; aTm=function(N){(N=N.w6())&&N.nF()}; uE=function(N){Do.call(this,N.mw,N.XW,N.Vy,N.AI,N.C0,N.NH,N.eK,N.NQ,N.slot,N.layout,N.KG,N.pO,N.nV,N.zU);this.NF=void 0}; Qcu=function(N,z){N.kO()&&!Jx(N.tG.W)||N.callback.P5(N.slot,N.layout,z)}; cR=function(N){return Xu(N.zU.get(),"html5_ssap_pass_transition_reason")}; LcO=function(N,z,v){G2(z.FM())<2&&(v=mW(v,N.zU),z.T4(z.lS(),v));v=xz(z.FM());N.vV(N.slot,z.lS(),v)}; KcK=function(N,z){if(N.tG.W.currentState<2){var v=mW(z,N.zU);v==="error"?N.callback.n5(N.slot,N.layout,new vL("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):X7(N.pO,N.layout,v)}}; qQ=function(N,z,v){G2(z.FM())>=2||(z.T4(z.lS(),v),Jx(z.FM())&&($V(N.NQ,N.slot,z.lS(),v),N.NF=void 0))}; lTf=function(N,z){N.tG.V===2&&z!==N.K8()&&LZ("onClipEntered: unknown cpn",N.slot,N.layout,{cpn:z})}; Wc_=function(N,z){var v=N.w6();if(v){var R=v.lS().layoutId,C=N.N4()+1;N.kO()?qQ(N,v,z):v.T4(v.lS(),z);C>=0&&CC&&Y.vn(l,C-R);return l}; TZf=function(N,z,v){var R=CM(z.clientMetadata,"metadata_type_sodar_extension_data");if(R)try{Iru(v,R)}catch(C){LZ("Unexpected error when loading Sodar",N,z,{error:C})}}; Fcu=function(N,z,v,R,C,Z,Y){ZP(N,z,new g.KZ(v,new g.Ro),R,C,Y,!1,Z)}; ZP=function(N,z,v,R,C,Z,Y,Q){Y=Y===void 0?!0:Y;QV(v)&&L_(C,0,null)&&(!gV(N,"impression")&&Q&&Q(),N.h0("impression"));gV(N,"impression")&&(g.WW(v,4)&&!g.WW(v,2)&&N.yl("pause"),l4(v,4)<0&&!(l4(v,2)<0)&&N.yl("resume"),g.WW(v,16)&&C>=.5&&N.yl("seek"),Y&&g.WW(v,2)&&Y8(N,v.state,z,R,C,Z))}; Y8=function(N,z,v,R,C,Z,Y,Q){gV(N,"impression")&&(Z?(Z=C-R,Z=Z>=-1&&Z<=2):Z=Math.abs(R-C)<=1,iJ(N,z,Z?R:C,v,R,Y,Q&&Z),Z&&N.h0("complete"))}; iJ=function(N,z,v,R,C,Z,Y){An(N,v*1E3,Y);C<=0||v<=0||(z==null?0:g.u(z,16))||(z==null?0:g.u(z,32))||(L_(v,C*.25,R)&&(Z&&!gV(N,"first_quartile")&&Z("first"),N.h0("first_quartile")),L_(v,C*.5,R)&&(Z&&!gV(N,"midpoint")&&Z("second"),N.h0("midpoint")),L_(v,C*.75,R)&&(Z&&!gV(N,"third_quartile")&&Z("third"),N.h0("third_quartile")))}; nrv=function(N,z){gV(N,"impression")&&N.yl(z?"fullscreen":"end_fullscreen")}; m32=function(N){gV(N,"impression")&&N.yl("clickthrough")}; $37=function(N){N.yl("active_view_measurable")}; U3O=function(N){gV(N,"impression")&&!gV(N,"seek")&&N.yl("active_view_fully_viewable_audible_half_duration")}; BZK=function(N){gV(N,"impression")&&!gV(N,"seek")&&N.yl("active_view_viewable")}; AcU=function(N){gV(N,"impression")&&!gV(N,"seek")&&N.yl("audio_audible")}; grv=function(N){gV(N,"impression")&&!gV(N,"seek")&&N.yl("audio_measurable")}; p__=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){this.callback=N;this.slot=z;this.layout=v;this.Vy=R;this.Dp=C;this.C0=Z;this.a8=Y;this.rW=Q;this.DT=L;this.zU=K;this.sT=l;this.XW=W;this.nZ=!0;this.m4=this.ER=null;this.adCpn=void 0;this.V=!1}; k4m=function(N,z,v){var R;CC(N.sT.get(),"ads_qua","cpn."+CM(N.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((R=ei(N.XW.get(),2))==null?void 0:R.clientPlaybackNonce)+";qt."+z+";clr."+v)}; PvY=function(N,z){var v,R;CC(N.sT.get(),"ads_imp","cpn."+CM(N.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((v=ei(N.XW.get(),2))==null?void 0:v.clientPlaybackNonce)+";clr."+z+";skp."+!!g.t((R=CM(N.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:R.skipOrPreviewRenderer,jH))}; ak=function(N){return{enterMs:CM(N.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:CM(N.clientMetadata,"metadata_type_layout_exit_ms")}}; Qn=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x){wr.call(this,N,z,v,R,C,Y,Q,L,K,W);this.a8=Z;this.DT=l;this.rW=G;this.zU=x;this.m4=this.ER=null}; VqY=function(N,z){var v;CC(N.sT.get(),"ads_imp","acpn."+((v=ei(N.XW.get(),2))==null?void 0:v.clientPlaybackNonce)+";clr."+z)}; SmY=function(N,z,v){var R;CC(N.sT.get(),"ads_qua","cpn."+CM(N.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((R=ei(N.XW.get(),2))==null?void 0:R.clientPlaybackNonce)+";qt."+z+";clr."+v)}; LC=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D){this.nV=N;this.KG=z;this.pO=v;this.XW=R;this.Vy=C;this.C0=Z;this.NH=Y;this.sT=Q;this.a8=L;this.x8=K;this.rW=l;this.DT=W;this.AI=G;this.H5=x;this.eK=e;this.fb=d;this.Iz=T;this.HD=m;this.zU=n;this.V=P;this.context=V;this.uE=D}; KC=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m,n){this.nV=N;this.KG=z;this.pO=v;this.sT=R;this.rW=C;this.DT=Z;this.AI=Y;this.XW=Q;this.C0=L;this.NH=K;this.H5=l;this.eK=W;this.fb=G;this.Iz=x;this.HD=e;this.zU=d;this.Vy=T;this.context=m;this.uE=n}; Erb=function(N,z,v,R){iG.call(this,"survey-interstitial",N,z,v,R)}; lJ=function(N,z,v,R,C){xU.call(this,v,N,z,R);this.sT=C;N=CM(z.clientMetadata,"metadata_type_ad_placement_config");this.Dp=new Fg(z.OR,C,N,z.layoutId)}; WD=function(N){return Math.round(N.width)+"x"+Math.round(N.height)}; x8=function(N,z,v){v=v===void 0?GQ:v;v.widthN.width*N.height*.2)return{eQ:3,oO:501,errorMessage:"ad("+WD(v)+") to container("+WD(N)+") ratio exceeds limit."};if(v.height>N.height/3-z)return{eQ:3,oO:501,errorMessage:"ad("+WD(v)+") covers container("+WD(N)+") center."}}; h2u=function(N,z){var v=g.h(CM(N.clientMetadata,"metadata_type_ad_placement_config"));return new Fg(N.OR,z,v,N.layoutId)}; eH=function(N){return g.h(CM(N.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; JQ=function(N,z,v,R){iG.call(this,"invideo-overlay",N,z,v,R);this.interactionLoggingClientData=R}; yn=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){xU.call(this,Z,N,z,C);this.sT=v;this.N=Y;this.C0=Q;this.Iz=L;this.zU=K;this.G=l;this.B=W;this.Dp=h2u(z,v)}; Hh2=function(){var N=["metadata_type_invideo_overlay_ad_renderer"];n7().forEach(function(z){N.push(z)}); return{aP:N,DC:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; fC=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G){xU.call(this,Z,N,z,C);this.sT=v;this.N=Y;this.Y=Q;this.C0=L;this.Iz=K;this.zU=l;this.G=W;this.B=G;this.Dp=h2u(z,v)}; or_=function(){for(var N=["metadata_type_invideo_overlay_ad_renderer"],z=g.f(n7()),v=z.next();!v.done;v=z.next())N.push(v.value);return{aP:N,DC:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; dl=function(N){this.C0=N;this.V=!1}; D3u=function(N,z,v){iG.call(this,"survey",N,{},z,v)}; sc=function(N,z,v,R,C,Z,Y){xU.call(this,v,N,z,R);this.N=C;this.C0=Z;this.zU=Y}; bhu=function(N,z,v,R,C,Z,Y,Q,L,K){this.au=N;this.C0=z;this.sT=v;this.N=R;this.rW=C;this.W=Z;this.Z=Y;this.Iz=Q;this.zU=L;this.V=K}; tqO=function(N,z,v,R,C,Z,Y,Q,L,K){this.au=N;this.C0=z;this.sT=v;this.N=R;this.rW=C;this.W=Z;this.Z=Y;this.Iz=Q;this.zU=L;this.V=K}; TQ=function(N,z,v,R,C,Z,Y,Q,L,K){z2.call(this,N,z,v,R,C,Z,Y,L);this.Pp=Q;this.XW=K}; Oh_=function(){var N=qdv();N.aP.push("metadata_type_ad_info_ad_metadata");return N}; ITO=function(N,z,v,R,C,Z,Y){this.au=N;this.C0=z;this.sT=v;this.W=R;this.Pp=C;this.V=Z;this.XW=Y}; X_u=function(N,z,v,R,C,Z,Y,Q){this.au=N;this.C0=z;this.sT=v;this.W=R;this.Pp=C;this.V=Z;this.zU=Y;this.XW=Q}; F5=function(N,z){this.slotId=z;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=N(this.triggerType)}; nC=function(N,z){this.adPodIndex=N;this.V=z.length;this.adBreakLengthSeconds=z.reduce(function(R,C){return R+C},0); var v=0;for(N+=1;N0}; jk=function(N){return!!(N.Gs&&N.slot&&N.layout)}; ag=function(N){var z,v=(z=N.config)==null?void 0:z.adPlacementConfig;N=N.renderer;return!(!v||v.kind==null||!N)}; iA2=function(N){if(!z_(N.adLayoutMetadata))return!1;N=N.renderingContent;return g.t(N,ii)||g.t(N,j3)||g.t(N,Zi)||g.t(N,Yz)?!0:!1}; Qy=function(N){return N.playerVars!==void 0&&N.pings!==void 0&&N.externalVideoId!==void 0}; FY=function(N){if(!z_(N.adLayoutMetadata))return!1;N=N.renderingContent;var z=g.t(N,L0);return z?yy(z):(z=g.t(N,f0))?Qy(z):(z=g.t(N,dx))?z.playerVars!==void 0:(z=g.t(N,ii))?z.durationMilliseconds!==void 0:g.t(N,s9)||g.t(N,T_)?!0:!1}; yy=function(N){N=(N.sequentialLayouts||[]).map(function(z){return g.t(z,n0)}); return N.length>0&&N.every(FY)}; $u=function(N){return z_(N.adLayoutMetadata)?(N=g.t(N.renderingContent,mI))&&N.pings?!0:!1:!1}; lX_=function(N){if(!z_(N.adLayoutMetadata))return!1;if(g.t(N.renderingContent,jNf)||g.t(N.renderingContent,aXv))return!0;var z=g.t(N.renderingContent,U9);return g.t(N.renderingContent,B4)||g.t(z==null?void 0:z.sidePanel,QNv)||g.t(z==null?void 0:z.sidePanel,LC2)||g.t(z==null?void 0:z.sidePanel,KCu)?!0:!1}; J22=function(N){var z;(z=!N)||(z=N.adSlotMetadata,z=!((z==null?void 0:z.slotId)!==void 0&&(z==null?void 0:z.slotType)!==void 0));if(z||!(WCu(N)||N.slotEntryTrigger&&N.slotFulfillmentTriggers&&N.slotExpirationTriggers))return!1;var v;N=(v=N.fulfillmentContent)==null?void 0:v.fulfilledLayout;return(v=g.t(N,n0))?FY(v):(v=g.t(N,A5))?lX_(v):(v=g.t(N,GLO))?iA2(v):(v=g.t(N,xJu))?ZAK(v):(v=g.t(N,ehx))?z_(v.adLayoutMetadata)?g.t(v.renderingContent,v4)?!0:!1:!1:(N=g.t(N,gx))?$u(N):!1}; WCu=function(N){var z;N=g.t((z=N.fulfillmentContent)==null?void 0:z.fulfilledLayout,A5);var v;return N&&((v=N.adLayoutMetadata)==null?void 0:v.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&N.layoutExitNormalTriggers===void 0}; y2u=function(N){var z;return(N==null?void 0:(z=N.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_IN_PLAYER"}; dJI=function(N,z){var v;if((v=N.questions)==null||!v.length||!N.playbackCommands||(z===void 0||!z)&&N.questions.length!==1)return!1;N=g.f(N.questions);for(z=N.next();!z.done;z=N.next()){z=z.value;var R=v=void 0,C=((v=g.t(z,p0))==null?void 0:v.surveyAdQuestionCommon)||((R=g.t(z,ku))==null?void 0:R.surveyAdQuestionCommon);if(!fXm(C))return!1}return!0}; sNU=function(N){N=((N==null?void 0:N.playerOverlay)||{}).instreamSurveyAdRenderer;var z;if(N)if(N.playbackCommands&&N.questions&&N.questions.length===1){var v,R=((z=g.t(N.questions[0],p0))==null?void 0:z.surveyAdQuestionCommon)||((v=g.t(N.questions[0],ku))==null?void 0:v.surveyAdQuestionCommon);z=fXm(R)}else z=!1;else z=!1;return z}; fXm=function(N){if(!N)return!1;N=g.t(N.instreamAdPlayerOverlay,P4);var z=g.t(N==null?void 0:N.skipOrPreviewRenderer,jH),v=g.t(N==null?void 0:N.adInfoRenderer,Vy);return(g.t(N==null?void 0:N.skipOrPreviewRenderer,Sk)||z)&&v?!0:!1}; TJu=function(N){return N.linearAds!=null&&z_(N.adLayoutMetadata)}; FCx=function(N){return N.linearAd!=null&&N.adVideoStart!=null}; nlu=function(N){if(isNaN(Number(N.timeoutSeconds))||!N.text||!N.ctaButton||!g.t(N.ctaButton,g.E9)||!N.brandImage)return!1;var z;return N.backgroundImage&&g.t(N.backgroundImage,h5)&&((z=g.t(N.backgroundImage,h5))==null?0:z.landscape)?!0:!1}; H4=function(N,z,v,R,C,Z,Y,Q){g.H.call(this);this.zU=N;this.V=z;this.W=R;this.XW=C;this.N=Z;this.Z=Y;this.AI=Q}; BJO=function(N,z,v){var R,C=((R=v.adSlots)!=null?R:[]).map(function(Q){return g.t(Q,og)}); if(v.Oq)if(CM(z.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))K7(N.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); else{if(mJu(N.zU.get())){var Z=v.OI.filter(function(Q){var L;return((L=Q.renderer)==null?void 0:L.clientForecastingAdRenderer)!=null}); Z.length!==0?$Jb(N.Z,Z,C,z.slotId,v.ssdaiAdsConfig):K7(N.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId)}else K7(N.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); UJx(N.N,z)}else{var Y;R={sQ:Math.round(((Z=CM(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Z.sQ)||0),Hv:(Y=CM(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Y.Hv};$Jb(N.Z,v.OI,C,z.slotId,v.ssdaiAdsConfig,R)}}; pyO=function(N,z,v,R,C,Z,Y){var Q=ei(N.XW.get(),1);if(A2_(N.zU.get())){var L=DD(N.W.get(),v,R,C,Q.clientPlaybackNonce,Q.Fp,Q.daiEnabled,Q,Z,Y);glK(N,L);K7(N.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return L},z)}else K7(N.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return DD(N.W.get(),v,R,C,Q.clientPlaybackNonce,Q.Fp,Q.daiEnabled,Q,Z,Y)},z)}; glK=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next()){var R=v.value;if(R.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R.fulfilledLayout)if(v=void 0,R.fulfilledLayout.renderingContent)v=CM(R.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(R.fulfilledLayout.Q6){R=g.f(R.fulfilledLayout.Q6);for(var C=R.next();!C.done&&(C=C.value,!C.renderingContent||!(v=CM(C.clientMetadata,"metadata_type_player_vars")));C=R.next());}}else v=void 0;if(v){N.AI.get().C.preloadVideoByPlayerVars(v, 2,300);break}}}; PIv=function(N,z,v,R,C,Z,Y){z=kLv(z,Z,Number(R.prefetchMilliseconds)||0,Y);N=z instanceof q?z:b2(N,R,C,z,v);return N instanceof q?N:[N]}; Vou=function(N,z,v,R,C){var Z=la(N.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");R=[new V_({getAdBreakUrl:R.getAdBreakUrl,sQ:0,Hv:0}),new c2(!0)];N=z.pauseDurationMs?z.lactThresholdMs?{slotId:Z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new cD(N.V,Z),slotFulfillmentTriggers:[new uhK(N.V)],slotExpirationTriggers:[new bJ(N.V,C),new X5(N.V,Z)],hO:"core",clientMetadata:new RY(R),adSlotLoggingData:v}:new q("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new q("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return N instanceof q?N:[N]}; Sff=function(N){var z,v;return((z=N.renderer)==null?void 0:(v=z.adBreakServiceRenderer)==null?void 0:v.getAdBreakUrl)!==void 0}; t5=function(N,z,v){if(N.beforeContentVideoIdStartedTrigger)N=N.beforeContentVideoIdStartedTrigger?new mZ(zW,z,N.id):new q("Not able to create BeforeContentVideoIdStartedTrigger");else{if(N.layoutIdExitedTrigger){var R;z=(R=N.layoutIdExitedTrigger)!=null&&R.triggeringLayoutId?new pC(zW,N.layoutIdExitedTrigger.triggeringLayoutId,N.id):new q("Not able to create LayoutIdExitedTrigger")}else{if(N.layoutExitedForReasonTrigger){var C,Z;((C=N.layoutExitedForReasonTrigger)==null?0:C.triggeringLayoutId)&&((Z= N.layoutExitedForReasonTrigger)==null?0:Z.layoutExitReason)?(z=ccU(N.layoutExitedForReasonTrigger.layoutExitReason),N=z instanceof q?z:new gl(zW,N.layoutExitedForReasonTrigger.triggeringLayoutId,[z],N.id)):N=new q("Not able to create LayoutIdExitedForReasonTrigger")}else{if(N.onLayoutSelfExitRequestedTrigger){var Y;z=(Y=N.onLayoutSelfExitRequestedTrigger)!=null&&Y.triggeringLayoutId?new DP(zW,N.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,N.id):new q("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(N.onNewPlaybackAfterContentVideoIdTrigger)N= N.onNewPlaybackAfterContentVideoIdTrigger?new bJ(zW,z,N.id):new q("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(N.skipRequestedTrigger){var Q;z=(Q=N.skipRequestedTrigger)!=null&&Q.triggeringLayoutId?new Oc(zW,N.skipRequestedTrigger.triggeringLayoutId,N.id):new q("Not able to create SkipRequestedTrigger")}else if(N.slotIdEnteredTrigger){var L;z=(L=N.slotIdEnteredTrigger)!=null&&L.triggeringSlotId?new Ik(zW,N.slotIdEnteredTrigger.triggeringSlotId,N.id):new q("Not able to create SlotIdEnteredTrigger")}else if(N.slotIdExitedTrigger){var K; z=(K=N.slotIdExitedTrigger)!=null&&K.triggeringSlotId?new X5(zW,N.slotIdExitedTrigger.triggeringSlotId,N.id):new q("Not able to create SkipRequestedTrigger")}else if(N.surveySubmittedTrigger){var l;z=(l=N.surveySubmittedTrigger)!=null&&l.triggeringLayoutId?new MY(zW,N.surveySubmittedTrigger.triggeringLayoutId,N.id):new q("Not able to create SurveySubmittedTrigger")}else{if(N.mediaResumedTrigger)N=N.mediaResumedTrigger&&N.id?new qmf(N.id):new q("Not able to create MediaResumedTrigger");else{if(N.closeRequestedTrigger){var W; z=(W=N.closeRequestedTrigger)!=null&&W.triggeringLayoutId?new $8(zW,N.closeRequestedTrigger.triggeringLayoutId,N.id):new q("Not able to create CloseRequestedTrigger")}else if(N.slotIdScheduledTrigger){var G;z=(G=N.slotIdScheduledTrigger)!=null&&G.triggeringSlotId?new cD(zW,N.slotIdScheduledTrigger.triggeringSlotId,N.id):new q("Not able to create SlotIdScheduledTrigger")}else{if(N.mediaTimeRangeTrigger){var x;R=Number((x=N.mediaTimeRangeTrigger)==null?void 0:x.offsetStartMilliseconds);var e;Y=Number((e= N.mediaTimeRangeTrigger)==null?void 0:e.offsetEndMilliseconds);isFinite(R)&&isFinite(Y)?(e=Y,e===-1&&(e=v),v=R>e?new q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:R,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===v&&R-500<=e):new Tb(R,e),N=v instanceof q?v:new Ec(zW,z,v,!1,N.id)):N=new q("Not able to create MediaTimeRangeTrigger")}else if(N.contentVideoIdEndedTrigger)N=N.contentVideoIdEndedTrigger?new Uc(zW,z,!1,N.id):new q("Not able to create ContentVideoIdEndedTrigger"); else{if(N.layoutIdEnteredTrigger){var d;z=(d=N.layoutIdEnteredTrigger)!=null&&d.triggeringLayoutId?new AQ(zW,N.layoutIdEnteredTrigger.triggeringLayoutId,N.id):new q("Not able to create LayoutIdEnteredTrigger")}else if(N.timeRelativeToLayoutEnterTrigger){var T;z=(T=N.timeRelativeToLayoutEnterTrigger)!=null&&T.triggeringLayoutId?new wl(zW,Number(N.timeRelativeToLayoutEnterTrigger.durationMs),N.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,N.id):new q("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(N.onDifferentLayoutIdEnteredTrigger){var m; z=(m=N.onDifferentLayoutIdEnteredTrigger)!=null&&m.triggeringLayoutId&&N.onDifferentLayoutIdEnteredTrigger.slotType&&N.onDifferentLayoutIdEnteredTrigger.layoutType?new HD(zW,N.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,N.onDifferentLayoutIdEnteredTrigger.slotType,N.onDifferentLayoutIdEnteredTrigger.layoutType,N.id):new q("Not able to create CloseRequestedTrigger")}else{if(N.liveStreamBreakStartedTrigger)N=N.liveStreamBreakStartedTrigger&&N.id?new SH(zW,N.id):new q("Not able to create LiveStreamBreakStartedTrigger"); else if(N.liveStreamBreakEndedTrigger)N=N.liveStreamBreakEndedTrigger&&N.id?new k8(zW,N.id):new q("Not able to create LiveStreamBreakEndedTrigger");else{if(N.liveStreamBreakScheduledDurationMatchedTrigger){var n;z=(n=N.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&n.breakDurationMs?new PD(Number(N.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,N.id):new q("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(N.liveStreamBreakScheduledDurationNotMatchedTrigger){var P; z=(P=N.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&P.breakDurationMs?new Vn(Number(N.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,N.id):new q("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(N.newSlotScheduledWithBreakDurationTrigger){var V;z=(V=N.newSlotScheduledWithBreakDurationTrigger)!=null&&V.breakDurationMs?new hQ(Number(N.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,N.id):new q("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else z= N.prefetchCacheExpiredTrigger?new tQ(zW,N.id):new q("Not able to convert an AdsControlflowTrigger.");N=z}z=N}N=z}z=N}N=z}z=N}N=z}z=N}N=z}z=N}N=z}return N}; O9=function(N,z){z.V>=2&&(N.slot_pos=z.adPodIndex);N.autoplay="1"}; hhu=function(N,z,v,R,C,Z,Y,Q){return z===null?new q("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:z,ActionCompanionAdRenderer:R}):[Elb(N,z,Y,Z,function(L){var K=L.slotId;L=Q(L);var l=R.adLayoutLoggingData,W=new RY([new EU(R),new cj(C)]);K=rR(v.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",K);var G={layoutId:K,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hO:"core"};return{layoutId:K,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",OR:new Map, layoutExitNormalTriggers:[new bJ(v.V,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:W,Bb:L(G),adLayoutLoggingData:l}})]}; HAO=function(N,z,v,R,C,Z,Y,Q){return z===null?new q("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:z,TopBannerImageTextIconButtonedLayoutViewModel:R}):[Elb(N,z,Y,Z,function(L){var K=L.slotId;L=Q(L);var l=R.adLayoutLoggingData,W=new RY([new hU(R),new cj(C)]);K=rR(v.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",K);var G={layoutId:K,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hO:"core"};return{layoutId:K,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", OR:new Map,layoutExitNormalTriggers:[new bJ(v.V,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:W,Bb:L(G),adLayoutLoggingData:l}})]}; toU=function(N,z,v,R,C,Z){if(!Z)for(z=g.f(z),Z=z.next();!Z.done;Z=z.next())Z=Z.value,Ig(N,Z.renderer,Z.config.adPlacementConfig.kind);N=Array.from(N.values()).filter(function(l){return ol2(l)}); z=[];Z=g.f(N);for(var Y=Z.next(),Q={};!Y.done;Q={CN:void 0},Y=Z.next()){Q.CN=Y.value;Y=g.f(Q.CN.Ar);for(var L=Y.next(),K={};!L.done;K={rQ:void 0},L=Y.next())K.rQ=L.value,L=function(l,W){return function(G){return l.rQ.qr(G,W.CN.instreamVideoAdRenderer.elementId,l.rQ.Oa)}}(K,Q),K.rQ.isContentVideoCompanion?z.push(DJ2(v,R,C,Q.CN.instreamVideoAdRenderer.elementId,K.rQ.associatedCompositePlayerBytesLayoutId,K.rQ.adSlotLoggingData,L)):N.length>1?z.push(bAv(v,R,C,Q.CN.instreamVideoAdRenderer.elementId,K.rQ.adSlotLoggingData, function(l,W){return function(G){return l.rQ.qr(G,W.CN.instreamVideoAdRenderer.elementId,l.rQ.Oa,l.rQ.associatedCompositePlayerBytesLayoutId)}}(K,Q))):z.push(bAv(v,R,C,Q.CN.instreamVideoAdRenderer.elementId,K.rQ.adSlotLoggingData,L))}return z}; Ig=function(N,z,v){if(z=OAf(z)){z=g.f(z);for(var R=z.next();!R.done;R=z.next())if((R=R.value)&&R.externalVideoId){var C=XY(N,R.externalVideoId);C.instreamVideoAdRenderer||(C.instreamVideoAdRenderer=R,C.Ki=v)}else LZ("InstreamVideoAdRenderer without externalVideoId")}}; OAf=function(N){var z=[],v=N.sandwichedLinearAdRenderer&&N.sandwichedLinearAdRenderer.linearAd&&g.t(N.sandwichedLinearAdRenderer.linearAd,f0);if(v)return z.push(v),z;if(N.instreamVideoAdRenderer)return z.push(N.instreamVideoAdRenderer),z;if(N.linearAdSequenceRenderer&&N.linearAdSequenceRenderer.linearAds){N=g.f(N.linearAdSequenceRenderer.linearAds);for(v=N.next();!v.done;v=N.next())v=v.value,g.t(v,f0)&&z.push(g.t(v,f0));return z}return null}; ol2=function(N){if(N.instreamVideoAdRenderer===void 0)return LZ("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var z=g.f(N.Ar),v=z.next();!v.done;v=z.next()){v=v.value;if(v.qr===void 0)return!1;if(v.Oa===void 0)return LZ("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(N.Ki===void 0||v.vr===void 0||N.Ki!==v.vr&&v.vr!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(N.instreamVideoAdRenderer.elementId===void 0)return LZ("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:N.Ki,"matching APSR kind":v.vr}),!1}return!0}; XY=function(N,z){N.has(z)||N.set(z,{instreamVideoAdRenderer:void 0,Ki:void 0,adVideoId:z,Ar:[]});return g.h(N.get(z))}; rx=function(N,z,v,R,C,Z,Y,Q,L){C?XY(N,C).Ar.push({IXp:z,vr:v,isContentVideoCompanion:R,Oa:Y,associatedCompositePlayerBytesLayoutId:Z,adSlotLoggingData:Q,qr:L}):LZ("Companion AdPlacementSupportedRenderer without adVideoId")}; u2=function(N){var z=0;N=g.f(N.questions);for(var v=N.next();!v.done;v=N.next())if(v=v.value,v=g.t(v,p0)||g.t(v,ku)){var R=void 0;z+=((R=v.surveyAdQuestionCommon)==null?void 0:R.durationMilliseconds)||0}return z}; c4=function(N){var z,v,R,C,Z=((v=g.t((z=N.questions)==null?void 0:z[0],p0))==null?void 0:v.surveyAdQuestionCommon)||((C=g.t((R=N.questions)==null?void 0:R[0],ku))==null?void 0:C.surveyAdQuestionCommon),Y;z=[].concat(g.U(((Y=N.playbackCommands)==null?void 0:Y.instreamAdCompleteCommands)||[]),g.U((Z==null?void 0:Z.timeoutCommands)||[]));var Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D,c,r,Rv,Zu,Nx;return{impressionCommands:(Q=N.playbackCommands)==null?void 0:Q.impressionCommands,errorCommands:(L=N.playbackCommands)== null?void 0:L.errorCommands,muteCommands:(K=N.playbackCommands)==null?void 0:K.muteCommands,unmuteCommands:(l=N.playbackCommands)==null?void 0:l.unmuteCommands,pauseCommands:(W=N.playbackCommands)==null?void 0:W.pauseCommands,rewindCommands:(G=N.playbackCommands)==null?void 0:G.rewindCommands,resumeCommands:(x=N.playbackCommands)==null?void 0:x.resumeCommands,skipCommands:(e=N.playbackCommands)==null?void 0:e.skipCommands,progressCommands:(d=N.playbackCommands)==null?void 0:d.progressCommands,hZo:(T= N.playbackCommands)==null?void 0:T.clickthroughCommands,fullscreenCommands:(m=N.playbackCommands)==null?void 0:m.fullscreenCommands,activeViewViewableCommands:(n=N.playbackCommands)==null?void 0:n.activeViewViewableCommands,activeViewMeasurableCommands:(P=N.playbackCommands)==null?void 0:P.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(V=N.playbackCommands)==null?void 0:V.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(D=N.playbackCommands)== null?void 0:(c=D.activeViewTracking)==null?void 0:c.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(r=N.playbackCommands)==null?void 0:(Rv=r.activeViewTracking)==null?void 0:Rv.activeViewAudioMeasurableCommands,endFullscreenCommands:(Zu=N.playbackCommands)==null?void 0:Zu.endFullscreenCommands,abandonCommands:(Nx=N.playbackCommands)==null?void 0:Nx.abandonCommands,completeCommands:z}}; XyI=function(N,z,v,R,C,Z,Y){return function(Q,L){return IXu(N,L.slotId,Q,Z,function(K,l){var W=L.layoutId;K=Y(K);return qI(z,W,l,C,K,"LAYOUT_TYPE_SURVEY",[new K3(v),R],v.adLayoutLoggingData)})}}; c2I=function(N,z,v,R,C,Z,Y){if(!r27(N))return new q("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:N});var Q=N.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[usu(Z,z,v,R,function(L){var K=L.slotId;L=Y(L);K=rR(C.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",K);var l={layoutId:K,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hO:"core"},W=new pC(C.V,R);return{layoutId:K,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",OR:new Map,layoutExitNormalTriggers:[W], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([new lu(Q)]),Bb:L(l)}})]}; r27=function(N){N=g.t(N==null?void 0:N.additionalPlayerOverlay,qfu);if(!N)return!1;var z=N.slidingMessages;return N.title&&z&&z.length!==0?!0:!1}; wyK=function(N,z,v,R,C){var Z;if((Z=N.playerOverlay)==null||!Z.instreamSurveyAdRenderer)return function(){return[]}; if(!sNU(N))return function(){return new q("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:N})}; var Y=N.playerOverlay.instreamSurveyAdRenderer,Q=u2(Y);return Q<=0?function(){return new q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Y})}:function(L,K){var l=MoY(L,v,R,function(W){var G=W.slotId; W=K(W);var x=c4(Y);G=rR(C.W.get(),"LAYOUT_TYPE_SURVEY",G);var e={layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",hO:"core"},d=new pC(C.V,R),T=new Oc(C.V,G),m=new MY(C.V,G),n=new zhb(C.V);return{layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",OR:new Map,layoutExitNormalTriggers:[d,n],layoutExitSkipTriggers:[T],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[m],B5:[],hO:"core",clientMetadata:new RY([new L3(Y),new cj(z),new h1(Q/1E3),new bu(x)]),Bb:W(e),adLayoutLoggingData:Y.adLayoutLoggingData}}); L=c2I(N,v,l.slotId,R,C,L,K);return L instanceof q?L:[l].concat(g.U(L))}}; YUf=function(N,z,v,R,C,Z,Y){Y=Y===void 0?!1:Y;var Q=[];try{var L=[];if(v.renderer.linearAdSequenceRenderer)var K=function(d){d=NCO(d.slotId,v,z,C(d),R,Z,Y);L=d.GdL;return d.jz}; else if(v.renderer.instreamVideoAdRenderer)K=function(d){var T=d.slotId;d=C(d);var m=Y,n=v.config.adPlacementConfig,P=zu7(n),V=P.wS,D=P.J3;P=v.renderer.instreamVideoAdRenderer;var c;if(P==null?0:(c=P.playerOverlay)==null?0:c.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var r=MI(P,m);c=Math.min(V+r.videoLengthSeconds*1E3,D);m=new nC(0,[r.videoLengthSeconds]);D=r.videoLengthSeconds;var Rv=r.playerVars,Zu=r.instreamAdPlayerOverlayRenderer,Nx=r.playerOverlayLayoutRenderer, av=r.adVideoId,M=vXf(v),s2=r.OR;r=r.bQ;var $m=P==null?void 0:P.adLayoutLoggingData;P=P==null?void 0:P.sodarExtensionData;T=rR(z.W.get(),"LAYOUT_TYPE_MEDIA",T);var O2={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",hO:"core"};return{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",OR:s2,layoutExitNormalTriggers:[new k8(z.V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([new v2(R),new Ty(D),new FP(Rv),new $P(V),new Ux(c),Zu&&new Rj(Zu), Nx&&new C3(Nx),new cj(n),new zy(av),new qT(m),new kP(M),P&&new mX(P),new y_({current:null}),new A1({}),new Ij(r)].filter(RuO)),Bb:d(O2),adLayoutLoggingData:$m}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var l=CqK(N,R,v.adSlotLoggingData,K);Q.push(l);for(var W=g.f(L),G=W.next();!G.done;G=W.next()){var x=G.value,e=x(N,C);if(e instanceof q)return e;Q.push.apply(Q,g.U(e))}}catch(d){return new q(d,{errorMessage:d.message,AdPlacementRenderer:v,numberOfSurveyRenderers:ZSu(v)})}return Q}; ZSu=function(N){N=(N.renderer.linearAdSequenceRenderer||{}).linearAds;return N!=null&&N.length?N.filter(function(z){var v,R;return((v=g.t(z,f0))==null?void 0:(R=v.playerOverlay)==null?void 0:R.instreamSurveyAdRenderer)!=null}).length:0}; NCO=function(N,z,v,R,C,Z,Y){var Q=z.config.adPlacementConfig,L=zu7(Q),K=L.wS,l=L.J3;L=(z.renderer.linearAdSequenceRenderer||{}).linearAds;if(L==null||!L.length)throw new TypeError("Expected linear ads");var W=[],G={uq:K,m3:0,KvS:W};L=L.map(function(e){return iSb(N,e,G,v,R,Q,C,l,Y)}).map(function(e,d){d=new nC(d,W); return e(d)}); var x=L.map(function(e){return e.m$}); return{jz:j3_(v,N,K,x,Q,vXf(z),R,l,Z),GdL:L.map(function(e){return e.CIL})}}; iSb=function(N,z,v,R,C,Z,Y,Q,L){var K=MI(g.t(z,f0),L),l=v.uq,W=v.m3,G=Math.min(l+K.videoLengthSeconds*1E3,Q);v.uq=G;v.m3++;v.KvS.push(K.videoLengthSeconds);var x,e,d=(x=g.t(z,f0))==null?void 0:(e=x.playerOverlay)==null?void 0:e.instreamSurveyAdRenderer;if(K.adVideoId==="nPpU29QrbiU"&&d==null)throw new TypeError("Survey slate media has no survey overlay");return function(T){O9(K.playerVars,T);var m,n,P=K.videoLengthSeconds,V=K.playerVars,D=K.OR,c=K.bQ,r=K.instreamAdPlayerOverlayRenderer,Rv=K.playerOverlayLayoutRenderer, Zu=K.adVideoId,Nx=(m=g.t(z,f0))==null?void 0:m.adLayoutLoggingData;m=(n=g.t(z,f0))==null?void 0:n.sodarExtensionData;n=rR(R.W.get(),"LAYOUT_TYPE_MEDIA",N);var av={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",hO:"adapter"};T={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",OR:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"adapter",clientMetadata:new RY([new v2(Y),new Ty(P),new FP(V),new $P(l),new Ux(G),new B2(W),new y_({current:null}), r&&new Rj(r),Rv&&new C3(Rv),new cj(Z),new zy(Zu),new qT(T),m&&new mX(m),d&&new Ox(d),new A1({}),new Ij(c)].filter(RuO)),Bb:C(av),adLayoutLoggingData:Nx};P=wyK(g.t(z,f0),Z,Y,T.layoutId,R);return{m$:T,CIL:P}}}; MI=function(N,z){if(!N)throw new TypeError("Expected instream video ad renderer");if(!N.playerVars)throw new TypeError("Expected player vars in url encoded string");var v=zU(N.playerVars),R=Number(v.length_seconds);if(isNaN(R))throw new TypeError("Expected valid length seconds in player vars");var C=Number(N.trimmedMaxNonSkippableAdDurationMs);R=isNaN(C)?R:Math.min(R,C/1E3);C=N.playerOverlay||{};C=C.instreamAdPlayerOverlayRenderer===void 0?null:C.instreamAdPlayerOverlayRenderer;var Z=N.playerOverlay|| {};Z=Z.playerOverlayLayoutRenderer===void 0?null:Z.playerOverlayLayoutRenderer;var Y=v.video_id;Y||(Y=(Y=N.externalVideoId)?Y:void 0);if(!Y)throw new TypeError("Expected valid video id in IVAR");if(z&&R===0){var Q;z=(Q=awu[Y])!=null?Q:R}else z=R;return{playerVars:v,videoLengthSeconds:z,instreamAdPlayerOverlayRenderer:C,playerOverlayLayoutRenderer:Z,adVideoId:Y,OR:N.pings?Tt(N.pings):new Map,bQ:sj(N.pings)}}; vXf=function(N){N=Number(N.driftRecoveryMs);return isNaN(N)||N<=0?null:N}; zu7=function(N){var z=N.adTimeOffset||{};N=z.offsetEndMilliseconds;z=Number(z.offsetStartMilliseconds);if(isNaN(z))throw new TypeError("Expected valid start offset");N=Number(N);if(isNaN(N))throw new TypeError("Expected valid end offset");return{wS:z,J3:N}}; Q3u=function(N){var z,v=(z=CM(N.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!v)return null;z=CM(N.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var R=N.layoutId,C=CM(N.clientMetadata,"metadata_type_content_cpn"),Z=CM(N.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Y=CM(N.clientMetadata,"metadata_type_player_underlay_renderer"),Q=CM(N.clientMetadata,"metadata_type_ad_placement_config"),L=CM(N.clientMetadata,"metadata_type_video_length_seconds"); var K=wU(N.clientMetadata,"metadata_type_layout_enter_ms")&&wU(N.clientMetadata,"metadata_type_layout_exit_ms")?(CM(N.clientMetadata,"metadata_type_layout_exit_ms")-CM(N.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{ql:R,contentCpn:C,Ng:v,z7:z,instreamAdPlayerOverlayRenderer:Z,instreamAdPlayerUnderlayRenderer:Y,adPlacementConfig:Q,videoLengthSeconds:L,dT:K,inPlayerLayoutId:CM(N.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:CM(N.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; lwU=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e){R=la(R,"SLOT_TYPE_PLAYER_BYTES");N=LmY(C,N,Y,v,R,L,K);if(N instanceof q)return N;var d;K=(d=CM(N.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:d.layoutId;if(!K)return new q("Invalid adNotify layout");z=Kmu(K,C,Z,v,Q,z,L,l,W,G,x,e,Y);return z instanceof q?z:[N].concat(g.U(z))}; Kmu=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G){v=Wmu(z,v,R,Z,Y,Q,L,K,l,W,G);if(v instanceof q)return v;N=G92(z,N,Y,C,v);return N instanceof q?N:[].concat(g.U(N.td),[N.vQ])}; eum=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x){z=Wmu(N,z,v,C,Z,Q,L,K,l,W,G,x);if(z instanceof q)return z;N=xT_(N,v,Z,Y,R,Q.Hb,z);return N instanceof q?N:N.td.concat(N.vQ)}; Wmu=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){var G=wx(R,v,K);return G instanceof vL?new q(G):K.C.D().experiments.j8("html5_refactor_in_player_slot_generation")?function(x){var e=new nC(0,[G.S1]);x=JUY(z,G.layoutId,G.cg,v,Ns(G.playerVars,G.dj,Z,L,e),G.S1,C,e,Y(x),Q.get(G.cg.externalVideoId),W);e=[];if(G.cg.playerOverlay.instreamAdPlayerOverlayRenderer){var d=Q3u(x);if(!d)return LZ("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,x),{layout:x,td:[]}; e=[yUu(N,d.contentCpn,d.ql,function(m){return z$(z,m.slotId,"core",d,Qd(l,m))},d.inPlayerSlotId)].concat(g.U(e)); if(d.instreamAdPlayerUnderlayRenderer&&vk(K)){var T=d.instreamAdPlayerUnderlayRenderer;e=[fwf(N,d.contentCpn,d.ql,function(m){return dT7(z,m.slotId,T,d.adPlacementConfig,d.ql,Qd(l,m))})].concat(g.U(e))}}return{layout:x, td:e}}:function(x){var e=new nC(0,[G.S1]); return{layout:JUY(z,G.layoutId,G.cg,v,Ns(G.playerVars,G.dj,Z,L,e),G.S1,C,e,Y(x),Q.get(G.cg.externalVideoId),W),td:[]}}}; wx=function(N,z,v){if(!N.playerVars)return new vL("No playerVars available in InstreamVideoAdRenderer.");var R,C;if(N.elementId==null||N.playerVars==null||N.playerOverlay==null||((R=N.playerOverlay)==null?void 0:R.instreamAdPlayerOverlayRenderer)==null&&((C=N.playerOverlay)==null?void 0:C.playerOverlayLayoutRenderer)==null||N.pings==null||N.externalVideoId==null)return new vL("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:N});R=zU(N.playerVars);C=Number(R.length_seconds); isNaN(C)&&(C=0,LZ("Expected valid length seconds in player vars but got NaN"));if(v.bv(z.kind==="AD_PLACEMENT_KIND_START")){if(N.layoutId===void 0)return new vL("Expected server generated layout ID in instreamVideoAdRenderer");z=N.layoutId}else z=N.elementId;return{layoutId:z,cg:N,playerVars:R,dj:N.playerVars,S1:C}}; Ns=function(N,z,v,R,C){N.iv_load_policy=R;z=zU(z);if(z.cta_conversion_urls)try{N.cta_conversion_urls=JSON.parse(z.cta_conversion_urls)}catch(Z){LZ(Z)}v.Je&&(N.ctrl=v.Je);v.yj&&(N.ytr=v.yj);v.aK&&(N.ytrcc=v.aK);v.isMdxPlayback&&(N.mdx="1");N.vvt&&(N.vss_credentials_token=N.vvt,v.Jk&&(N.vss_credentials_token_type=v.Jk),v.mdxEnvironment&&(N.mdx_environment=v.mdxEnvironment));O9(N,C);return N}; s3O=function(N){var z=new Map;N=g.f(N);for(var v=N.next();!v.done;v=N.next())(v=v.value.renderer.remoteSlotsRenderer)&&v.hostElementId&&z.set(v.hostElementId,v);return z}; Ra=function(N){return N.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; TC_=function(N){return N!=null}; AUm=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x){for(var e=[],d=g.f(N),T=d.next();!T.done;T=d.next())if(T=T.value,!WCu(T)&&!y2u(T)){var m=Ra(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger,n=L.bv(m),P=Fmu(T,K,R,v.Fp,n);if(P instanceof q)return P;var V=void 0,D={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(V=T.adSlotMetadata.slotPhysicalPosition)!=null?V:1,hO:"core",slotEntryTrigger:P.slotEntryTrigger,slotFulfillmentTriggers:P.slotFulfillmentTriggers, slotExpirationTriggers:P.slotExpirationTriggers},c=g.t(T.fulfillmentContent.fulfilledLayout,n0);if(c){if(!FY(c))return new q("Invalid PlayerBytesAdLayoutRenderer");V=W&&!(Ra(T)&&T.slotEntryTrigger.beforeContentVideoIdStartedTrigger);P=P.slotFulfillmentTriggers.some(function(r){return r instanceof PD}); n=V?nXv(D,T.adSlotMetadata.triggerEvent,c,v,R,Z,K,N,n,G,P,x):mTv(D,T.adSlotMetadata.triggerEvent,c,z,v,R,C,Z,Y,Q,L,K,N,l,n,T.adSlotMetadata.triggeringSourceLayoutId);if(n instanceof q)return n;P=[];Ra(T)&&P.push(new qK({O7:Ra(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));V&&P.push(new A1({}));v.Hb&&P.push(new t1({}));P.push(new uu(m));T=Object.assign({},D,{clientMetadata:new RY(P),fulfilledLayout:n.layout,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});e.push.apply(e,g.U(n.td)); e.push(T)}else if(m=g.t(T.fulfillmentContent.fulfilledLayout,A5)){if(!lX_(m))return new q("Invalid PlayerUnderlayAdLayoutRenderer");m=$Tu(m,R,v.Fp,Z,D,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof q)return m;T=Object.assign({},D,{clientMetadata:new RY([]),fulfilledLayout:m,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});e.push(T)}else if(m=g.t(T.fulfillmentContent.fulfilledLayout,xJu)){if(!ZAK(m))return new q("Invalid AboveFeedAdLayoutRenderer");m= UT2(m,R,v.Fp,Z,D,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof q)return m;T=Object.assign({},D,{clientMetadata:new RY([]),fulfilledLayout:m,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});e.push(T)}else if(m=g.t(T.fulfillmentContent.fulfilledLayout,ehx)){if(!z_(m.adLayoutMetadata)||!g.t(m.renderingContent,v4))return new q("Invalid BelowPlayerAdLayoutRenderer");m=UT2(m,R,v.Fp,Z,D,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId); if(m instanceof q)return m;T=Object.assign({},D,{clientMetadata:new RY([]),fulfilledLayout:m,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});e.push(T)}else if(m=g.t(T.fulfillmentContent.fulfilledLayout,gx)){if(!$u(m))return new q("Invalid PlayerBytesSequenceItemAdLayoutRenderer");m=BCu(m,R,v.Fp,Z,D,T.adSlotMetadata.triggerEvent);if(m instanceof q)return m;T=Object.assign({},D,{clientMetadata:new RY([]),fulfilledLayout:m,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});e.push(T)}else return new q("Unable to retrieve a client slot ["+ D.slotType+"] from a given AdSlotRenderer")}return e}; BCu=function(N,z,v,R,C,Z){var Y={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,hO:"core"};z=Cv(N,z,v);return z instanceof q?z:(v=g.t(N.renderingContent,mI))&&v.pings?Object.assign({},Y,{renderingContent:N.renderingContent,OR:Tt(v.pings)},z,{Bb:Qd(R,C)(Y),clientMetadata:new RY([new cj(Z7(Z))]),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData}):new q("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; UT2=function(N,z,v,R,C,Z,Y){var Q={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,hO:"core"};z=Cv(N,z,v);if(z instanceof q)return z;v=[];v.push(new cj(Z7(Z)));Z==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&Y!==void 0&&v.push(new W2(Y));return Object.assign({},Q,{renderingContent:N.renderingContent,OR:new Map([["impression",gXI(N)]])},z,{Bb:Qd(R,C)(Q),clientMetadata:new RY(v),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData})}; $Tu=function(N,z,v,R,C,Z,Y){if(N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(Y=g.t(N.renderingContent,U9))if(Y=g.t(Y.sidePanel,LC2)){var Q={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,hO:"core"};z=Cv(N,z,v);N=z instanceof q?z:Object.assign({},Q,{renderingContent:N.renderingContent,OR:new Map([["impression",Y.impressionPings||[]],["resume",Y.resumePings||[]]])},z,{Bb:Qd(R,C)(Q),clientMetadata:new RY([new cj(Z7(Z))]),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData})}else N= new q("DismissablePanelTextPortraitImageRenderer is missing");else N=new q("SqueezebackPlayerSidePanelRenderer is missing");else N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.t(N.renderingContent,jNf)?(Y={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,hO:"core"},z=Cv(N,z,v),N=z instanceof q?z:Object.assign({},Y,{renderingContent:N.renderingContent,OR:new Map},z,{Bb:Qd(R,C)(Y),clientMetadata:new RY([new cj(Z7(Z))]),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData})): N=new q("CounterfactualRenderer is missing"):N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?N=new q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?N=new q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.t(N.renderingContent,B4)?(Z={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType, hO:"core"},z=Cv(N,z,v),N=z instanceof q?z:Y?Object.assign({},Z,{renderingContent:N.renderingContent,OR:new Map},z,{Bb:Qd(R,C)(Z),clientMetadata:new RY([new W2(Y)]),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData}):new q("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):N=new q("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.t(N.renderingContent,aXv)? (Z={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,hO:"core"},z=Cv(N,z,v),N=z instanceof q?z:Object.assign({},Z,{renderingContent:N.renderingContent,OR:new Map([])},z,{Bb:Qd(R,C)(Z),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new RY([])})):N=new q("AdsEngagementPanelSectionListViewModel is missing"):N=new q("LayoutType ["+N.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return N}; nXv=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){if((W==null?void 0:W.sQ)===void 0||(W==null?void 0:W.Hv)===void 0)return new q("Cached ad break range from cue point is missing");var G=Cv(v,C,R.Fp);if(G instanceof q)return G;G={layoutExitMuteTriggers:[],layoutExitNormalTriggers:G.layoutExitNormalTriggers,layoutExitSkipTriggers:[],B5:[],layoutExitUserInputSubmittedTriggers:[]};if(g.t(v.renderingContent,f0))return N=pjU(N,z,v,G,C,Z,Q,L,R.Fp,Y,W.sQ,W.Hv),N instanceof q?N:N.SL===void 0?new q("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:N.layout,td:[N.SL]};var x=g.t(v.renderingContent,L0);if(x){if(!z_(v.adLayoutMetadata))return new q("Invalid ad layout metadata");if(!yy(x))return new q("Invalid sequential layout");x=x.sequentialLayouts.map(function(e){return e.playerBytesAdLayoutRenderer}); N=k9b(N,z,v,G,x,C,R,Z,Y,L,Q,K,W.sQ,W.Hv,l);return N instanceof q?N:{layout:N.wC,td:N.td}}return new q("Not able to convert a sequential layout")}; k9b=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e){var d=PqK(C,G,x);if(d instanceof q)return d;var T=[],m=[];d=g.f(d);for(var n=d.next();!n.done;n=d.next()){var P=n.value;n=N;var V=C[P.m3],D=P,c=z;P=Z;var r=Y,Rv=Q,Zu=L,Nx=K,av=l,M=Yk(V);if(M instanceof q)n=M;else{var s2={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,hO:"adapter"};D=V4x(c,V,D,P);D instanceof q?n=D:(n=Object.assign({},s2,i5,{OR:M,renderingContent:V.renderingContent,clientMetadata:new RY(D),Bb:Qd(Rv,n)(s2),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData}), n=(V=jC(av,n,P,r.Fp,Rv,Zu,Nx,void 0,!0))?V instanceof q?V:{layout:n,SL:V}:new q("Expecting associatedInPlayerSlot"))}if(n instanceof q)return n;T.push(n.layout);m.push(n.SL)}C={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,hO:"core"};z=[new kP(Number(v.driftRecoveryMs)),new $P(G),new Ux(x),new cj(Z7(z)),new rU(W),new A1({})];e&&z.push(new MK({}));return{wC:Object.assign({},C,R,{Q6:T,OR:new Map,clientMetadata:new RY(z),Bb:Qd(Q,N)(C)}),td:m}}; pjU=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){if(!FY(v))return new q("Invalid PlayerBytesAdLayoutRenderer");var G=Yk(v);if(G instanceof q)return G;var x={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,hO:"core"},e=g.t(v.renderingContent,f0);if(!e)return new q("Invalid rendering content for DAI media layout");e=MI(e,!1);l={MB:e,m3:0,uq:l,P$:Math.min(l+e.videoLengthSeconds*1E3,W),uK:new nC(0,[e.videoLengthSeconds])};var d;W=(d=Number(v.driftRecoveryMs))!=null?d:void 0;z=V4x(z, v,l,C,W);if(z instanceof q)return z;N=Object.assign({},x,R,{OR:G,renderingContent:v.renderingContent,clientMetadata:new RY(z),Bb:Qd(Z,N)(x),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData});return(C=jC(Y,N,C,L,Z,K,Q,void 0,!0))?C instanceof q?C:{layout:N,SL:C}:new q("Expecting associatedInPlayerSlot")}; mTv=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d){var T=Cv(v,Z,C.Fp);if(T instanceof q)return T;if(g.t(v.renderingContent,f0)){L=SUv([v],C,L);if(L instanceof q)return L;if(L.length!==1)return new q("Only expected one media layout.");N=EXK(N,z,v,T,L[0],void 0,"core",R,Z,Y,Q,K,G,x,e,C.Fp,W,void 0,d);return N instanceof q?N:{layout:N.layout,td:N.SL?[N.SL]:[]}}var m=g.t(v.renderingContent,L0);if(m){if(!z_(v.adLayoutMetadata))return new q("Invalid ad layout metadata");if(!yy(m))return new q("Invalid sequential layout"); m=m.sequentialLayouts.map(function(n){return n.playerBytesAdLayoutRenderer}); N=hu2(N,z,v.adLayoutMetadata,T,m,R,Z,C,L,Y,Q,K,l,W,e,G,x,d);return N instanceof q?N:{layout:N.wC,td:N.td}}return new q("Not able to convert a sequential layout")}; hu2=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m){var n=new NK({current:null}),P=SUv(C,Q,L);if(P instanceof q)return P;L=[];for(var V=[],D=void 0,c=0;c0&&(c.push(m),c.push(new wC(D.adPodSkipTarget)));(Z=K.get(D.externalVideoId))&&c.push(new Ex(Z));Z=c}else Z=new q("Invalid vod media renderer")}if(Z instanceof q)return Z;N=Object.assign({},Y,R,{OR:P,renderingContent:v.renderingContent,clientMetadata:new RY(Z),Bb:Qd(l,N)(Y),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData});v=g.t(v.renderingContent,f0);if(!v||!Qy(v))return new q("Invalid meida renderer");W=XY(W,v.externalVideoId);W.instreamVideoAdRenderer=v;W.Ki="AD_PLACEMENT_KIND_START";return x?(L=jC(G,N,L,d,l,T,e,m,!1),L instanceof q?L:DTm(N.layoutId,G)&&L?{layout:Object.assign({},N,{clientMetadata:new RY(Z.concat(new iu(L)))})}:{layout:N,SL:L}): {layout:N}}; HSv=function(N,z,v,R,C){if(!FY(z))return new q("Invalid PlayerBytesAdLayoutRenderer");var Z=g.t(z.renderingContent,ii);if(!Z||Z.durationMilliseconds===void 0)return new q("Invalid endcap renderer");var Y={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,hO:"adapter"};R=[new H2(Z.durationMilliseconds),new bu({impressionCommands:void 0,abandonCommands:Z.abandonCommands?[{commandExecutorCommand:Z.abandonCommands}]:void 0,completeCommands:Z.completionCommands}),new cj(R), new xP("LAYOUT_TYPE_ENDCAP")];if(C){R.push(new MT(C.uK.adPodIndex-1));R.push(new B2(C.uK.adPodIndex));var Q;R.push(new wC((Q=C.adPodSkipTarget)!=null?Q:-1))}return Object.assign({},Y,i5,{renderingContent:z.renderingContent,clientMetadata:new RY(R),OR:Z.skipPings?new Map([["skip",Z.skipPings]]):new Map,Bb:Qd(v,N)(Y),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; jC=function(N,z,v,R,C,Z,Y,Q,L){N=N.filter(function(l){return l.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&l.adSlotMetadata.triggeringSourceLayoutId===z.layoutId}); if(N.length!==0){if(N.length!==1)return new q("Invalid InPlayer slot association for the given PlayerBytes layout");N=N[0];Y=Fmu(N,Z,v,R,Y);if(Y instanceof q)return Y;var K;Z={slotId:N.adSlotMetadata.slotId,slotType:N.adSlotMetadata.slotType,slotPhysicalPosition:(K=N.adSlotMetadata.slotPhysicalPosition)!=null?K:1,hO:"core",slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers,slotExpirationTriggers:Y.slotExpirationTriggers};K=g.t(N.fulfillmentContent.fulfilledLayout, GLO);if(!K||!iA2(K))return new q("Invalid InPlayerAdLayoutRenderer");Y={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,hO:"core"};v=Cv(K,v,R);if(v instanceof q)return v;R=[];L&&R.push(new A1({}));if(K.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")R.push.apply(R,g.U(bSu(N.adSlotMetadata.triggerEvent,z)));else if(K.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")R.push(new cj(Z7(N.adSlotMetadata.triggerEvent))),Q&&R.push(Q);else return new q("Not able to parse an SDF InPlayer layout"); C=Object.assign({},Y,v,{renderingContent:K.renderingContent,OR:new Map,Bb:Qd(C,Z)(Y),clientMetadata:new RY(R),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},Z,{fulfilledLayout:C,clientMetadata:new RY([])})}}; bSu=function(N,z){var v=[];v.push(new cj(Z7(N)));v.push(new W2(z.layoutId));(N=CM(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&v.push(new y_(N));(N=CM(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&v.push(new NK(N));(N=CM(z.clientMetadata,"metadata_type_remote_slots_data"))&&v.push(new Ex(N));(N=CM(z.clientMetadata,"metadata_type_ad_next_params"))&&v.push(new Dw(N));(N=CM(z.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&v.push(new bq(N));(N= CM(z.clientMetadata,"metadata_type_ad_pod_info"))&&v.push(new qT(N));(z=CM(z.clientMetadata,"metadata_type_ad_video_id"))&&v.push(new zy(z));return v}; oXK=function(N,z,v,R,C,Z){function Y(K){return aa(z,K)} var Q=R.xm.inPlayerSlotId,L={layoutId:R.xm.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",hO:"core"};v={slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:new AQ(Y,N),slotFulfillmentTriggers:[new Ik(Y,Q)],slotExpirationTriggers:[new X5(Y,Q),new bJ(Y,v)]};N=Object.assign({},L,{layoutExitNormalTriggers:[new pC(Y,N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],OR:new Map,clientMetadata:new RY([new aj(R.xm), new cj(R.adPlacementConfig),C]),Bb:Qd(Z,v)(L),adLayoutLoggingData:R.xm.adLayoutLoggingData});return Object.assign({},v,{clientMetadata:new RY([new P2(N)])})}; DTm=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next())if(v=v.value,v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var R=g.t(v.fulfillmentContent.fulfilledLayout,A5);if(R&&(R=g.t(R.renderingContent,U9))&&R.associatedPlayerBytesLayoutId===N)return v}}; Fmu=function(N,z,v,R,C){var Z=t4Y(t5(N.slotEntryTrigger,v,R),C,N,z);if(Z instanceof q)return Z;for(var Y=[],Q=g.f(N.slotFulfillmentTriggers),L=Q.next();!L.done;L=Q.next()){L=t5(L.value,v,R);if(L instanceof q)return L;Y.push(L)}Y=OS2(Y,C,N,z);z=[];N=g.f(N.slotExpirationTriggers);for(C=N.next();!C.done;C=N.next()){C=t5(C.value,v,R);if(C instanceof q)return C;z.push(C)}return{slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:z}}; t4Y=function(N,z,v,R){return z&&v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&N instanceof mZ?new F5(function(C){return aa(R,C)},v.adSlotMetadata.slotId):N}; OS2=function(N,z,v,R){return z&&v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?N.map(function(C){return C instanceof Ik?new cD(function(Z){return aa(R,Z)},v.adSlotMetadata.slotId):C}):N}; Cv=function(N,z,v){for(var R=[],C=g.f(N.layoutExitNormalTriggers||[]),Z=C.next();!Z.done;Z=C.next()){Z=t5(Z.value,z,v);if(Z instanceof q)return Z;R.push(Z)}C=[];Z=g.f(N.layoutExitSkipTriggers||[]);for(var Y=Z.next();!Y.done;Y=Z.next()){Y=t5(Y.value,z,v);if(Y instanceof q)return Y;C.push(Y)}Z=[];Y=g.f(N.layoutExitMuteTriggers||[]);for(var Q=Y.next();!Q.done;Q=Y.next()){Q=t5(Q.value,z,v);if(Q instanceof q)return Q;Z.push(Q)}Y=[];N=g.f(N.layoutExitUserInputSubmittedTriggers||[]);for(Q=N.next();!Q.done;Q= N.next()){Q=t5(Q.value,z,v);if(Q instanceof q)return Q;Y.push(Q)}return{layoutExitNormalTriggers:R,layoutExitSkipTriggers:C,layoutExitMuteTriggers:Z,layoutExitUserInputSubmittedTriggers:Y,B5:[]}}; Yk=function(N){var z=g.t(N.renderingContent,f0);if(z==null?0:z.pings)return Tt(z.pings);N=g.t(N.renderingContent,ii);return(N==null?0:N.skipPings)?new Map([["skip",N.skipPings]]):new Map}; V4x=function(N,z,v,R,C){z=g.t(z.renderingContent,f0);if(!z)return new q("Invalid rendering content for DAI media layout");N=[new v2(R),new Ty(v.MB.videoLengthSeconds),new FP(v.MB.playerVars),new $P(v.uq),new Ux(v.P$),new B2(v.m3),new cj(Z7(N)),new zy(v.MB.adVideoId),new qT(v.uK),z.sodarExtensionData&&new mX(z.sodarExtensionData),new y_({current:null}),new A1({}),new Ij(sj(z.pings))].filter(TC_);C!==void 0&&N.push(new kP(C));return N}; PqK=function(N,z,v){N=N.map(function(L){return MI(g.t(L.renderingContent,f0),!1)}); var R=N.map(function(L){return L.videoLengthSeconds}),C=R.map(function(L,K){return new nC(K,R)}),Z=z,Y=v,Q=[]; N.forEach(function(L,K){Y=Math.min(Z+L.videoLengthSeconds*1E3,v);O9(L.playerVars,C[K]);Q.push({MB:L,uq:Z,P$:Y,m3:K,uK:C[K]});Z=Y}); return Q}; SUv=function(N,z,v){for(var R=[],C=g.f(N),Z=C.next();!Z.done;Z=C.next())if(Z=g.t(Z.value.renderingContent,f0)){if(!Qy(Z))return new q("Invalid vod media renderer");R.push(Iw7(Z))}C=R.map(function(W){return W.S1}); Z=[];for(var Y=0,Q=0;Q0?Nx:-1;else if(s2=g.t(M,ii)){M=RGI(N,z,v, s2,Z,d,Q,r,Nx);if(M instanceof q){x=M;break a}M=M(G);T.push(M.KU);m=[].concat(g.U(M.K4),g.U(m));n=[].concat(g.U(M.aT),g.U(n));M.SL&&(Zu=[M.SL].concat(g.U(Zu)))}else if(s2=g.t(M,s9)){if(x===void 0){x=new q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:s2});break a}M=Yx_(N,z,v,Z,s2,c,Q,x,d,Xu(l,"supports_multi_step_on_desktop"));if(M instanceof q){x=M;break a}M=M(G);T.push(M.KU);M.SL&&Zu.push(M.SL);m=[].concat(g.U(M.K4),g.U(m));n=[].concat(g.U(M.aT), g.U(n));P=[].concat(g.U(M.Zu),g.U(P));V=[].concat(g.U(M.eZ),g.U(V));D=[c].concat(g.U(D))}else if(M=g.t(M,T_)){M=i3U(N,z,v,Z,M,c,Q,d);if(M instanceof q){x=M;break a}M=M(G);T.push(M.KU);M.SL&&Zu.push(M.SL);n=[].concat(g.U(M.aT),g.U(n))}else{x=new q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}x={Q6:T,layoutExitSkipTriggers:m,layoutExitUserInputSubmittedTriggers:P,B5:V,layoutExitMuteTriggers:n,Ph:D,td:Zu}}}else a:if(d=GyO(R,v,l),d instanceof q)x=d;else{T=0;m=[];n=[];P=[];V=[];D= [];c=[];r=new f3({current:null});Rv=new NK({current:null});Zu=!1;av=[];Nx=-1;e=g.f(R);for(M=e.next();!M.done;M=e.next())if(M=M.value,g.t(M,dx)){M=Cu2(z,v,g.t(M,dx),Q);if(M instanceof q){x=M;break a}M=M(G);m.push(M.KU);n=[].concat(g.U(M.K4),g.U(n));P=[].concat(g.U(M.aT),g.U(P));M.SL&&(av=[M.SL].concat(g.U(av)))}else if(g.t(M,f0)){Nx=wx(g.t(M,f0),v,l);if(Nx instanceof vL){x=new q(Nx);break a}M=new nC(T,d);M=xKu(z,Nx.layoutId,Nx.cg,v,Ns(Nx.playerVars,Nx.dj,Y,K,M),Nx.S1,Z,M,Q(G),Rv,L.get(Nx.cg.externalVideoId), void 0,W);T++;m.push(M.KU);n=[].concat(g.U(M.K4),g.U(n));P=[].concat(g.U(M.aT),g.U(P));Zu||(c.push(Rv),Zu=!0);Nx=(Nx=Nx.cg.adPodSkipTarget)&&Nx>0?Nx:-1}else if(g.t(M,ii)){M=RGI(N,z,v,g.t(M,ii),Z,T,Q,Rv,Nx);if(M instanceof q){x=M;break a}M=M(G);m.push(M.KU);n=[].concat(g.U(M.K4),g.U(n));P=[].concat(g.U(M.aT),g.U(P));M.SL&&(av=[M.SL].concat(g.U(av)))}else if(g.t(M,s9)){if(x===void 0){x=new q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.t(M, s9)});break a}M=Yx_(N,z,v,Z,g.t(M,s9),r,Q,x,T,Xu(l,"supports_multi_step_on_desktop"));if(M instanceof q){x=M;break a}M=M(G);m.push(M.KU);M.SL&&av.push(M.SL);n=[].concat(g.U(M.K4),g.U(n));P=[].concat(g.U(M.aT),g.U(P));V=[].concat(g.U(M.Zu),g.U(V));D=[].concat(g.U(M.eZ),g.U(D));c=[r].concat(g.U(c))}else if(g.t(M,T_)){M=i3U(N,z,v,Z,g.t(M,T_),r,Q,T);if(M instanceof q){x=M;break a}M=M(G);m.push(M.KU);M.SL&&av.push(M.SL);P=[].concat(g.U(M.aT),g.U(P))}else{x=new q("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}x={Q6:m,layoutExitSkipTriggers:n,layoutExitUserInputSubmittedTriggers:V,B5:D,layoutExitMuteTriggers:P,Ph:c,td:av}}x instanceof q?G=x:(D=G.slotId,d=x.Q6,T=x.layoutExitSkipTriggers,m=x.layoutExitMuteTriggers,n=x.layoutExitUserInputSubmittedTriggers,P=x.Ph,G=Q(G),V=C?C.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D=C?C.layoutId:rR(z.W.get(),V,D),c={layoutId:D,layoutType:V,hO:"core"},G={layout:{layoutId:D,layoutType:V,OR:new Map,layoutExitNormalTriggers:[new DP(z.V,D)],layoutExitSkipTriggers:T, layoutExitMuteTriggers:m,layoutExitUserInputSubmittedTriggers:n,B5:[],hO:"core",clientMetadata:new RY([new dU(d)].concat(g.U(P))),Bb:G(c)},td:x.td});return G}}; GyO=function(N,z,v){var R=[];N=g.f(N);for(var C=N.next();!C.done;C=N.next())if(C=C.value,g.t(C,f0)){C=wx(g.t(C,f0),z,v);if(C instanceof vL)return new q(C);R.push(C.S1)}return R}; J1U=function(N,z,v,R,C,Z,Y,Q){if(!dJI(v,Q===void 0?!1:Q))return new q("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:v});var L=u2(v);if(L<=0)return new q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:v});var K=new f3({current:null}),l=XyI(N,z,v,K,R,Z,Y);return eG7(N,R,Z,L,C,function(W,G){var x=W.slotId,e=c4(v);W=Y(W);var d,T=(d=l5(z,R,v.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?d: rR(z.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",x);x={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hO:"core"};d=l(T,G);var m=CM(d.clientMetadata,"metadata_type_fulfilled_layout");m||LZ("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");e=[new cj(R),new H2(L),new bu(e),K];m&&e.push(new xP(m.layoutType));return{Wl0:{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",OR:new Map,layoutExitNormalTriggers:[new DP(z.V,T)],layoutExitSkipTriggers:[new Oc(z.V, G.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new MY(z.V,G.layoutId)],B5:[],hO:"core",clientMetadata:new RY(e),Bb:W(x)},e9:d}})}; y1K=function(N){if(!FCx(N))return!1;var z=g.t(N.adVideoStart,Js);return z?g.t(N.linearAd,f0)&&jk(z)?!0:(LZ("Invalid Sandwich with notify"),!1):!1}; fyI=function(N){if(N.linearAds==null)return!1;N=g.t(N.adStart,Js);return N?jk(N)?!0:(LZ("Invalid LASR with notify"),!1):!1}; dKu=function(N){if(!TJu(N))return!1;N=g.t(N.adStart,Js);return N?jk(N)?!0:(LZ("Invalid LASR with notify"),!1):!1}; y6=function(N,z,v,R,C,Z,Y,Q,L,K){this.N=N;this.W=z;this.V=v;this.zU=R;this.nG=C;this.Z=Z;this.C0=Y;this.Vj=Q;this.f5=L;this.loadPolicy=K===void 0?1:K}; DD=function(N,z,v,R,C,Z,Y,Q,L,K){var l=[];if(z.length===0&&R.length===0&&v.length===0)return l;z=z.filter(ag);var W=v.filter(J22),G=R.filter(ag),x=new Map,e=s3O(z),d=v.some(function($m){var O2;return($m==null?void 0:(O2=$m.adSlotMetadata)==null?void 0:O2.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),T=v.some(function($m){var O2; return($m==null?void 0:(O2=$m.adSlotMetadata)==null?void 0:O2.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),m=v.some(function($m){var O2; return($m==null?void 0:(O2=$m.adSlotMetadata)==null?void 0:O2.slotType)==="SLOT_TYPE_IN_PLAYER"}),n=v.some(function($m){var O2,m7; return($m==null?void 0:(O2=$m.adSlotMetadata)==null?void 0:O2.slotType)==="SLOT_TYPE_BELOW_PLAYER"||($m==null?void 0:(m7=$m.adSlotMetadata)==null?void 0:m7.slotType)==="SLOT_TYPE_ABOVE_FEED"}); v=v.some(function($m){var O2;return($m==null?void 0:(O2=$m.adSlotMetadata)==null?void 0:O2.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(d||T||m||n||v)K=AUm(W,z,Q,C,e,N.nG.get(),N.loadPolicy,x,N.zU.get(),N.N.get(),m,Y,L,K),K instanceof q?LZ(K,void 0,void 0,{contentCpn:C}):l.push.apply(l,g.U(K));K=g.f(z);for(v=K.next();!v.done;v=K.next())v=v.value,T=sju(N,x,v,C,Z,Y,d,Q,e,L,W),T instanceof q?LZ(T,void 0,void 0,{renderer:v.renderer,config:v.config.adPlacementConfig,kind:v.config.adPlacementConfig.kind,contentCpn:C,daiEnabled:Y}):l.push.apply(l,g.U(T));TUI(N.zU.get())||(Z=FXm(N,G,C,Q,e,x),l.push.apply(l,g.U(Z)));if(N.Z===null||Y&&!Q.u0){var P, V,D;N=Q.Hb&&z.length===1&&((P=z[0].config)==null?void 0:(V=P.adPlacementConfig)==null?void 0:V.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=z[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!l.length&&!N){var c,r,Rv,Zu;LZ("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:C,"first APR kind":(c=z[0])==null?void 0:(r=c.config)==null?void 0:(Rv=r.adPlacementConfig)==null?void 0:Rv.kind,renderer:(Zu=z[0])==null?void 0: Zu.renderer})}return l}P=R.filter(ag);l.push.apply(l,g.U(toU(x,P,N.W.get(),N.Z,C,d)));if(!l.length){var Nx,av,M,s2;LZ("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:C,daiEnabled:Y.toString(),"first APR kind":(Nx=z[0])==null?void 0:(av=Nx.config)==null?void 0:(M=av.adPlacementConfig)==null?void 0:M.kind,renderer:(s2=z[0])==null?void 0:s2.renderer})}return l}; FXm=function(N,z,v,R,C,Z){function Y(G){return Qd(N.nG.get(),G)} var Q=[];z=g.f(z);for(var L=z.next();!L.done;L=z.next()){L=L.value;var K=L.renderer,l=K.sandwichedLinearAdRenderer,W=K.linearAdSequenceRenderer;l&&y1K(l)?(LZ("Found AdNotify with SandwichedLinearAdRenderer"),W=g.t(l.adVideoStart,Js),l=g.t(l.linearAd,f0),Ig(Z,K,L.config.adPlacementConfig.kind),K=void 0,W=Kmu((K=W)==null?void 0:K.layout.layoutId,N.W.get(),N.V.get(),L.config.adPlacementConfig,L.adSlotLoggingData,l,v,R,Y,C,N.loadPolicy,N.zU.get(),N.nG.get()),W instanceof q?LZ(W):Q.push.apply(Q,g.U(W))): W&&(!W.adLayoutMetadata&&fyI(W)||W.adLayoutMetadata&&dKu(W))&&(LZ("Found AdNotify with LinearAdSequenceRenderer"),Ig(Z,K,L.config.adPlacementConfig.kind),K=void 0,l=jj7((K=g.t(W.adStart,Js))==null?void 0:K.layout.layoutId,N.W.get(),N.V.get(),L.config.adPlacementConfig,L.adSlotLoggingData,W.linearAds,z_(W.adLayoutMetadata)?W.adLayoutMetadata:void 0,v,R,Y,C,N.loadPolicy,N.zU.get()),l instanceof q?LZ(l):Q.push.apply(Q,g.U(l)))}return Q}; sju=function(N,z,v,R,C,Z,Y,Q,L,K,l){function W(m){return Qd(N.nG.get(),m)} var G=v.renderer,x=v.config.adPlacementConfig,e=x.kind,d=v.adSlotLoggingData,T=Q.u0&&e==="AD_PLACEMENT_KIND_START";T=Z&&!T;if(G.adsEngagementPanelRenderer!=null)return rx(z,v.elementId,e,G.adsEngagementPanelRenderer.isContentVideoEngagementPanel,G.adsEngagementPanelRenderer.adVideoId,G.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.adsEngagementPanelRenderer;m=Qd(N.nG.get(),m);return fv(D,c,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Hj(r),n,P,r.impressionPings,m,G.adsEngagementPanelRenderer.adLayoutLoggingData,V)}),[]; if(G.adsEngagementPanelLayoutViewModel)return rx(z,v.elementId,e,G.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,G.adsEngagementPanelLayoutViewModel.adVideoId,G.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.adsEngagementPanelLayoutViewModel;m=Qd(N.nG.get(),m);return dQ(D,c,"LAYOUT_TYPE_PANEL",new o3(r),n,P,m,G.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,V)}),[]; if(G.actionCompanionAdRenderer!=null){if(G.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return hhu(N.W.get(),N.Z,N.V.get(),G.actionCompanionAdRenderer,x,d,R,W);rx(z,v.elementId,e,G.actionCompanionAdRenderer.isContentVideoCompanion,G.actionCompanionAdRenderer.adVideoId,G.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.actionCompanionAdRenderer;m=Qd(N.nG.get(),m);return fv(D,c,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new EU(r),n,P,r.impressionPings,m,G.actionCompanionAdRenderer.adLayoutLoggingData,V)})}else if(G.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(G.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return HAO(N.W.get(),N.Z,N.V.get(),G.topBannerImageTextIconButtonedLayoutViewModel,x,d,R,W); rx(z,v.elementId,e,G.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,G.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,G.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.topBannerImageTextIconButtonedLayoutViewModel;m=Qd(N.nG.get(),m);return dQ(D,c,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new hU(r),n,P,m,G.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,V)})}else if(G.imageCompanionAdRenderer)rx(z, v.elementId,e,G.imageCompanionAdRenderer.isContentVideoCompanion,G.imageCompanionAdRenderer.adVideoId,G.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.imageCompanionAdRenderer; m=Qd(N.nG.get(),m);return fv(D,c,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new OU(r),n,P,r.impressionPings,m,G.imageCompanionAdRenderer.adLayoutLoggingData,V)}); else if(G.bannerImageLayoutViewModel)rx(z,v.elementId,e,G.bannerImageLayoutViewModel.isContentVideoCompanion,G.bannerImageLayoutViewModel.adVideoId,G.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.bannerImageLayoutViewModel;m=Qd(N.nG.get(),m);return dQ(D,c,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new I3(r),n,P,m,G.bannerImageLayoutViewModel.adLayoutLoggingData,V)}); else if(G.shoppingCompanionCarouselRenderer)rx(z,v.elementId,e,G.shoppingCompanionCarouselRenderer.isContentVideoCompanion,G.shoppingCompanionCarouselRenderer.adVideoId,G.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,x,d,function(m,n,P,V){var D=N.V.get(),c=m.slotId,r=G.shoppingCompanionCarouselRenderer;m=Qd(N.nG.get(),m);return fv(D,c,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new XJ(r),n,P,r.impressionPings,m,G.shoppingCompanionCarouselRenderer.adLayoutLoggingData,V)}); else if(G.adBreakServiceRenderer){if(!Sff(v))return[];if(e==="AD_PLACEMENT_KIND_PAUSE")return Vou(N.W.get(),x,d,v.renderer.adBreakServiceRenderer,R);if(e!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&e!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return PIv(N.W.get(),x,d,v.renderer.adBreakServiceRenderer,R,C,Z);Q.Hb||LZ("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:e,adPlacementConfig:x,daiEnabledForContentVideo:String(Z),isServedFromLiveInfra:String(Q.Hb),clientPlaybackNonce:Q.clientPlaybackNonce}); if(e==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!N.C0)return new q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!N.f5)return new q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");N.f5.df({adPlacementRenderer:v,contentCpn:R,Fp:C});C=s3(N.C0.get());return nPI(N.W.get(),v.renderer.adBreakServiceRenderer,x,C,R,d,Z)}if(!N.Vj)return new q("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); N.Vj.df({adPlacementRenderer:v,contentCpn:R,Fp:C})}else{if(G.clientForecastingAdRenderer)return cUu(N.W.get(),N.V.get(),x,d,G.clientForecastingAdRenderer,R,C,W);if(G.invideoOverlayAdRenderer)return NUI(N.W.get(),N.V.get(),x,d,G.invideoOverlayAdRenderer,R,C,W);if(G.instreamAdPlayerOverlayRenderer)return M4u(N.W.get(),N.V.get(),x,d,G.instreamAdPlayerOverlayRenderer,R,W);if((G.linearAdSequenceRenderer||G.instreamVideoAdRenderer)&&T)return YUf(N.W.get(),N.V.get(),v,R,W,K,mKY(N.zU.get()));if(G.linearAdSequenceRenderer&& !T){if(Y)return[];Ig(z,G,e);if(G.linearAdSequenceRenderer.adLayoutMetadata){if(!TJu(G.linearAdSequenceRenderer))return new q("Received invalid LinearAdSequenceRenderer.")}else if(G.linearAdSequenceRenderer.linearAds==null)return new q("Received invalid LinearAdSequenceRenderer.");if(g.t(G.linearAdSequenceRenderer.adStart,Js)){LZ("Found AdNotify in LinearAdSequenceRenderer");v=g.t(G.linearAdSequenceRenderer.adStart,Js);if(!Yfb(v))return new q("Invalid AdMessageRenderer.");Z=G.linearAdSequenceRenderer.linearAds; return ayU(N.N.get(),N.W.get(),N.V.get(),N.nG.get(),x,d,v,z_(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,Z,R,C,Q,W,L,N.loadPolicy,N.zU.get())}return WXK(N.W.get(),N.V.get(),x,d,G.linearAdSequenceRenderer.linearAds,z_(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,R,C,Q,W,L,N.loadPolicy,N.zU.get(),l)}if(!G.remoteSlotsRenderer||Z){if(G.instreamVideoAdRenderer&&!T){if(Y)return[];Ig(z,G,e);return eum(N.W.get(), N.V.get(),x,d,G.instreamVideoAdRenderer,R,C,Q,W,L,N.loadPolicy,N.zU.get(),N.nG.get(),l)}if(G.instreamSurveyAdRenderer)return J1U(N.W.get(),N.V.get(),G.instreamSurveyAdRenderer,x,d,R,W,Xu(N.zU.get(),"supports_multi_step_on_desktop"));if(G.sandwichedLinearAdRenderer!=null)return FCx(G.sandwichedLinearAdRenderer)?g.t(G.sandwichedLinearAdRenderer.adVideoStart,Js)?(LZ("Found AdNotify in SandwichedLinearAdRenderer"),v=g.t(G.sandwichedLinearAdRenderer.adVideoStart,Js),Yfb(v)?(Z=g.t(G.sandwichedLinearAdRenderer.linearAd, f0))?lwU(v,Z,x,N.N.get(),N.W.get(),N.V.get(),N.nG.get(),d,R,C,Q,W,L,N.loadPolicy,N.zU.get()):new q("Missing IVAR from Sandwich"):new q("Invalid AdMessageRenderer.")):WXK(N.W.get(),N.V.get(),x,d,[G.sandwichedLinearAdRenderer.adVideoStart,G.sandwichedLinearAdRenderer.linearAd],void 0,R,C,Q,W,L,N.loadPolicy,N.zU.get()):new q("Received invalid SandwichedLinearAdRenderer.");if(G.videoAdTrackingRenderer!=null)return rU7(N.W.get(),N.V.get(),G.videoAdTrackingRenderer,x,d,R,C,Q.YG,W)}}return[]}; T$=function(N,z,v,R,C,Z,Y,Q){g.H.call(this);var L=this;this.W=N;this.Z=z;this.x8=R;this.C0=C;this.zU=Z;this.sT=Y;this.Vy=Q;this.V=null;v.get().addListener(this);this.addOnDisposeCallback(function(){v.HL()||v.get().removeListener(L)}); R.get().addListener(this);this.addOnDisposeCallback(function(){R.HL()||R.get().removeListener(L)})}; BU_=function(N,z,v){var R=s3(N.C0.get());$Km(N.zU.get())&&CC(N.sT.get(),"sdai","onopp.1;evt."+v.event+";start."+v.startSecs.toFixed(3)+";d."+v.K5.toFixed(3));K7(N.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var C=N.Z.get(),Z=z.adPlacementRenderer.renderer.adBreakServiceRenderer,Y=z.contentCpn,Q=z.adPlacementRenderer.adSlotLoggingData,L=F3(N.zU.get()),K=N.sT;if(C.zU.get().C.D().experiments.j8("enable_smearing_expansion_dai")){var l=C.zU.get();l=g.LM(l.C.D().experiments,"max_prefetch_window_sec_for_livestream_optimization"); L=C.zU.get();var W=g.LM(L.C.D().experiments,"min_prefetch_offset_sec_for_livestream_optimization");L={xv:UK7(v),G6:!1,cueProcessedMs:R*1E3};var G=v.startSecs+v.K5;if(R===0)L.s_=new Tb(0,G*1E3);else{W=v.startSecs-W;var x=W-R;L.s_=x<=0?new Tb(W*1E3,G*1E3):new Tb(Math.floor(R+Math.random()*Math.min(x,l))*1E3,G*1E3)}l=L}else l={xv:UK7(v),G6:!1},G=v.startSecs+v.K5,v.startSecs<=R?L=new Tb((v.startSecs-4)*1E3,G*1E3):(W=Math.max(0,v.startSecs-R-10),L=new Tb(Math.floor(R+Math.random()*(L?R===0?0:Math.min(W, 5):W))*1E3,G*1E3)),l.s_=L;Z=b2(C,Z,Y,l,Q,[new sx(v)]);nv(C.zU.get())&&CC(K.get(),"abrsm","cpi."+v.identifier+";cps."+v.startSecs+";cpd."+v.K5+";cts."+R+";rbf."+l.s_.start);K.get().C.Q1(l.s_.start/1E3-R,v.startSecs-R);return[Z]})}; mo=function(N){var z,v=(z=CM(N.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!v)return null;z=CM(N.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var R=N.layoutId,C=CM(N.clientMetadata,"metadata_type_content_cpn"),Z=CM(N.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Y=CM(N.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Q=CM(N.clientMetadata,"metadata_type_player_underlay_renderer"),L=CM(N.clientMetadata, "metadata_type_ad_placement_config"),K=CM(N.clientMetadata,"metadata_type_video_length_seconds");var l=wU(N.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?CM(N.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):wU(N.clientMetadata,"metadata_type_layout_enter_ms")&&wU(N.clientMetadata,"metadata_type_layout_exit_ms")?(CM(N.clientMetadata,"metadata_type_layout_exit_ms")-CM(N.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{ql:R,contentCpn:C,Ng:v,z7:z,instreamAdPlayerOverlayRenderer:Z, playerOverlayLayoutRenderer:Y,instreamAdPlayerUnderlayRenderer:Q,adPlacementConfig:L,videoLengthSeconds:K,dT:l,inPlayerLayoutId:CM(N.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:CM(N.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; gP7=function(N,z){return A1u(N,z)}; p2f=function(N,z){z=A1u(N,z);if(!z)return null;var v;z.dT=(v=CM(N.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:v.adBreakRemainingLengthSeconds;return z}; A1u=function(N,z){var v,R=(v=CM(N.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:v.current;if(!R)return null;v=rux(N,z);return{l7:XSK(N,z),adPlacementConfig:CM(N.clientMetadata,"metadata_type_ad_placement_config"),fl:v,contentCpn:CM(N.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:CM(N.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:CM(N.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:CM(N.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,dT:void 0,Ng:R,ql:N.layoutId,videoLengthSeconds:CM(N.clientMetadata,"metadata_type_video_length_seconds")}}; $k=function(N,z,v,R,C,Z,Y,Q,L){g.H.call(this);this.N=N;this.G=z;this.B=v;this.Z=R;this.V=C;this.W=Z;this.nG=Y;this.zU=Q;this.XW=L;this.Df=!0}; kyI=function(N,z,v){return fwf(N.V.get(),z.contentCpn,z.ql,function(R){return dT7(N.W.get(),R.slotId,v,z.adPlacementConfig,z.ql,Qd(N.nG.get(),R))})}; U3=function(N,z,v,R,C,Z,Y,Q){g.H.call(this);this.W=N;this.V=z;this.Z=v;this.zU=R;this.N=C;this.XW=Z;this.C0=Y;this.eK=Q}; Bk=function(N){g.H.call(this);this.V=N}; K7=function(N,z,v,R){N.V().sD(z,R);v=v();N=N.V();N.Xm.Br("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",z,R,v);z=g.f(v);for(v=z.next();!v.done;v=z.next())a:{R=N;v=v.value;R.Xm.v1("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",v);R.Xm.v1("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",v);try{var C=R.V;if(g.ez(v.slotId))throw new q("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(yd(C,v))throw new q("Duplicate registration for slot.",{slotId:v.slotId,slotEntryTriggerType:v.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!C.Gl.uQ.has(v.slotType))throw new q("No fulfillment adapter factory registered for slot of type: "+v.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!C.Gl.Vo.has(v.slotType))throw new q("No SlotAdapterFactory registered for slot of type: "+v.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");SR(C,"TRIGGER_CATEGORY_SLOT_ENTRY",v.slotEntryTrigger?[v.slotEntryTrigger]:[]);SR(C,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", v.slotFulfillmentTriggers);SR(C,"TRIGGER_CATEGORY_SLOT_EXPIRATION",v.slotExpirationTriggers);var Z=R.V,Y=v.slotType+"_"+v.slotPhysicalPosition,Q=gR(Z,Y);if(yd(Z,v))throw new q("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");Q.set(v.slotId,new Hzb(v));Z.V.set(Y,Q)}catch(Rv){Rv instanceof q&&Rv.PW?(R.Xm.qC("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Rv.PW,v),LZ(Rv,v,void 0,void 0,Rv.Ao)):(R.Xm.qC("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", v),LZ(Rv,v));break a}g.h(yd(R.V,v)).G=!0;try{var L=R.V,K=g.h(yd(L,v)),l=v.slotEntryTrigger,W=L.Gl.vZ.get(l.triggerType);W&&(W.lG("TRIGGER_CATEGORY_SLOT_ENTRY",l,v,null),K.PL.set(l.triggerId,W));for(var G=g.f(v.slotFulfillmentTriggers),x=G.next();!x.done;x=G.next()){var e=x.value,d=L.Gl.vZ.get(e.triggerType);d&&(d.lG("TRIGGER_CATEGORY_SLOT_FULFILLMENT",e,v,null),K.qd.set(e.triggerId,d))}for(var T=g.f(v.slotExpirationTriggers),m=T.next();!m.done;m=T.next()){var n=m.value,P=L.Gl.vZ.get(n.triggerType); P&&(P.lG("TRIGGER_CATEGORY_SLOT_EXPIRATION",n,v,null),K.J.set(n.triggerId,P))}var V=L.Gl.uQ.get(v.slotType).get().build(L.Z,v);K.L=V;var D=L.Gl.Vo.get(v.slotType).get().build(L.B,v);D.init();K.W=D}catch(Rv){Rv instanceof q&&Rv.PW?(R.Xm.qC("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Rv.PW,v),LZ(Rv,v,void 0,void 0,Rv.Ao)):(R.Xm.qC("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",v),LZ(Rv,v));xV(R,v,!0);break a}R.Xm.v1("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",v); R.V.XZ(v);for(var c=g.f(R.W),r=c.next();!r.done;r=c.next())r.value.XZ(v);s8(R,v)}}; As=function(N,z,v,R,C){g.H.call(this);var Z=this;this.W=N;this.Z=z;this.H5=v;this.context=C;this.V=new Map;R.get().addListener(this);this.addOnDisposeCallback(function(){R.HL()||R.get().removeListener(Z)})}; UJx=function(N,z){var v=0x8000000000000;var R=0;for(var C=g.f(z.slotFulfillmentTriggers),Z=C.next();!Z.done;Z=C.next())Z=Z.value,Z instanceof Ec?(v=Math.min(v,Z.V.start),R=Math.max(R,Z.V.end)):LZ("Found unexpected fulfillment trigger for throttled slot.",z,null,{fulfillmentTrigger:Z});R=new Tb(v,R);v="throttledadcuerange:"+z.slotId;N.V.set(v,z);N.H5.get().addCueRange(v,R.start,R.end,!1,N);T2(N.context.zU.get())&&(z=R.start,R=R.end,C={},N.context.uL.oz("tcrr",(C.cid=v,C.sm=z,C.em=R,C)))}; gQ=function(){g.H.apply(this,arguments);this.Df=!0;this.Jb=new Map;this.V=new Map}; pv=function(N){return N.Jb}; kk=function(N,z){N=g.f(N.Jb.values());for(var v=N.next();!v.done;v=N.next())if(v.value.layoutId===z)return!0;return!1}; Pk=function(N,z){N=g.f(N.V.values());for(var v=N.next();!v.done;v=N.next()){v=g.f(v.value);for(var R=v.next();!R.done;R=v.next())if(R=R.value,R.layoutId===z)return R}LZ("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ez(z)),layoutId:z})}; Puv=function(){this.V=new Map}; VTv=function(N,z){this.callback=N;this.slot=z}; V6=function(){}; Sxx=function(N,z,v){this.callback=N;this.slot=z;this.C0=v}; EPv=function(N,z,v){this.callback=N;this.slot=z;this.C0=v;this.W=!1;this.V=0}; hG2=function(N,z,v){this.callback=N;this.slot=z;this.C0=v}; SC=function(N){this.C0=N}; E3=function(N){g.H.call(this);this.y5=N;this.t0=new Map}; hs=function(N,z){for(var v=[],R=g.f(N.t0.values()),C=R.next();!C.done;C=R.next()){C=C.value;var Z=C.trigger;Z instanceof MY&&Z.triggeringLayoutId===z&&v.push(C)}v.length?U8(N.y5(),v):LZ("Survey is submitted but no registered triggers can be activated.")}; Hk=function(N,z,v){E3.call(this,N);var R=this;this.zU=v;z.get().addListener(this);this.addOnDisposeCallback(function(){z.HL()||z.get().removeListener(R)})}; oa=function(N){g.H.call(this);this.V=N;this.Df=!0;this.t0=new Map;this.B=new Set;this.Z=new Set;this.N=new Set;this.G=new Set;this.W=new Set}; D7=function(N){g.H.call(this);this.V=N;this.t0=new Map}; b5=function(N,z){for(var v=[],R=g.f(N.t0.values()),C=R.next();!C.done;C=R.next())C=C.value,C.trigger.V===z.layoutId&&v.push(C);v.length&&U8(N.V(),v)}; ts=function(N,z,v){g.H.call(this);var R=this;this.V=N;this.context=v;this.t0=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.HL()||z.get().removeListener(R)})}; O3=function(N,z,v,R,C){g.H.call(this);var Z=this;this.W=N;this.H5=z;this.C0=v;this.XW=R;this.context=C;this.Df=!0;this.t0=new Map;this.V=new Set;v.get().addListener(this);this.addOnDisposeCallback(function(){v.HL()||v.get().removeListener(Z)})}; H3v=function(N,z,v,R,C,Z,Y,Q,L,K){if(ei(N.XW.get(),1).clientPlaybackNonce!==L)throw new q("Cannot register CueRange-based trigger for different content CPN",{trigger:v});N.t0.set(v.triggerId,{wR:new NI(z,v,R,C),cueRangeId:Z});N.H5.get().addCueRange(Z,Y,Q,K,N);T2(N.context.zU.get())&&(L={},N.context.uL.oz("crr",(L.ca=z,L.tt=v.triggerType,L.st=R.slotType,L.lt=C==null?void 0:C.layoutType,L.cid=Z,L.sm=Y,L.em=Q,L)))}; oPf=function(N,z){N=g.f(N.t0.entries());for(var v=N.next();!v.done;v=N.next()){var R=g.f(v.value);v=R.next().value;R=R.next().value;if(z===R.cueRangeId)return v}return""}; Ia=function(N,z){g.H.call(this);var v=this;this.N=N;this.W=new Map;this.Z=new Map;this.V=null;z.get().addListener(this);this.addOnDisposeCallback(function(){z.HL()||z.get().removeListener(v)}); var R;this.V=((R=zQ(z.get()))==null?void 0:R.slotId)||null}; DKf=function(N,z){var v=[];N=g.f(N.values());for(var R=N.next();!R.done;R=N.next())R=R.value,R.slot.slotId===z&&v.push(R);return v}; X3=function(N){g.H.call(this);this.V=N;this.Df=!0;this.t0=new Map}; X7=function(N,z,v){z=z.layoutId;for(var R=[],C=g.f(N.t0.values()),Z=C.next();!Z.done;Z=C.next())if(Z=Z.value,Z.trigger instanceof DP){var Y;if(Y=Z.trigger.layoutId===z){Y=v;var Q=pNO.get(Z.category);Y=Q?Q===Y:!1}Y&&R.push(Z)}R.length&&U8(N.V(),R)}; rQ=function(N){g.H.call(this);this.V=N;this.Df=!0;this.t0=new Map}; u5=function(N,z,v,R,C){g.H.call(this);var Z=this;this.B=N;this.x8=z;this.C0=v;this.sT=R;this.V=null;this.Df=!0;this.t0=new Map;this.Z=new Set;z.get().addListener(this);this.addOnDisposeCallback(function(){z.HL()||z.get().removeListener(Z)}); C.get().addListener(this);this.addOnDisposeCallback(function(){C.HL()||C.get().removeListener(Z)})}; tT2=function(N){N.V&&(N.W&&(N.W.stop(),N.W.start()),b3Y(N,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; b3Y=function(N,z){for(var v=[],R=g.f(N.t0.values()),C=R.next();!C.done;C=R.next())C=C.value,C.trigger.triggerType===z&&v.push(C);v.length>0&&U8(N.B(),v)}; ck=function(N,z,v,R,C){for(var Z=[],Y=g.f(N.t0.values()),Q=Y.next();!Q.done;Q=Y.next()){var L=Q=Q.value,K=L.trigger;L=L.slot;if(K.triggerType===z){if(K instanceof PD||K instanceof Vn||K instanceof hQ){if(C&&K.breakDurationMs!==v)continue;if(!C&&K.breakDurationMs===v)continue;if(R.has(L.slotId))continue;if(N.Z.has(L.slotId))continue}Z.push(Q)}}Z.length>0&&U8(N.B(),Z)}; O3Y=function(N,z){z=(z.K5+1)*1E3;var v=void 0;N=g.f(N.t0.values());for(var R=N.next();!R.done;R=N.next()){var C=R.value;R=C.trigger;C=C.slot;R instanceof PD&&R.breakDurationMs<=z&&(!v||R.breakDurationMs>v.trigger.breakDurationMs)&&(v={slot:C,trigger:R})}return v}; Iy2=function(N){N=N.adPlacementRenderer.config.adPlacementConfig;if(!N.prefetchModeConfig||!N.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;N=Number(N.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(N)||N<=0?0:Math.floor(Math.random()*N)}; X2_=function(N){N=N.adPlacementRenderer.config.adPlacementConfig;if(N.prefetchModeConfig&&N.prefetchModeConfig.cacheFetchRefreshDurationMs&&(N=Number(N.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(N)||N<=0)))return N}; qs=function(N){N.V=null;N.t0.clear();N.Z.clear();N.W&&N.W.stop();N.N&&N.N.stop()}; Ms=function(N){g.H.call(this);this.Z=N;this.Df=!0;this.t0=new Map;this.V=new Map;this.W=new Map}; r1_=function(N,z){var v=[];if(z=N.V.get(z.layoutId)){z=g.f(z);for(var R=z.next();!R.done;R=z.next())(R=N.W.get(R.value.triggerId))&&v.push(R)}return v}; wQ=function(N){g.H.call(this);this.V=N;this.t0=new Map}; uP_=function(N,z){for(var v=[],R=g.f(N.t0.values()),C=R.next();!C.done;C=R.next())C=C.value,C.trigger instanceof F5&&C.trigger.slotId===z&&v.push(C);v.length>=1&&U8(N.V(),v)}; c1v=function(N,z){var v={slotId:la(z,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],hO:"surface",clientMetadata:new RY([])},R=Object,C=R.assign;z=rR(z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",v.slotId);z={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",OR:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"surface", clientMetadata:new RY([]),Bb:mzu(!1,v.slotId,v.slotType,v.slotPhysicalPosition,v.hO,v.slotEntryTrigger,v.slotFulfillmentTriggers,v.slotExpirationTriggers,z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return C.call(R,{},N,{Gs:!0,slot:v,layout:z})}; kLv=function(N,z,v,R){var C=N.kind;R=R?!1:!N.hideCueRangeMarker;switch(C){case "AD_PLACEMENT_KIND_START":return R={xv:new Tb(-0x8000000000000,-0x8000000000000),G6:R},v!=null&&(R.s_=new Tb(-0x8000000000000,-0x8000000000000)),R;case "AD_PLACEMENT_KIND_END":return R={xv:new Tb(0x7ffffffffffff,0x8000000000000),G6:R},v!=null&&(R.s_=new Tb(Math.max(0,z-v),0x8000000000000)),R;case "AD_PLACEMENT_KIND_MILLISECONDS":C=N.adTimeOffset;C.offsetStartMilliseconds||LZ("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); C.offsetEndMilliseconds||LZ("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");N=Number(C.offsetStartMilliseconds);C=Number(C.offsetEndMilliseconds);C===-1&&(C=z);if(Number.isNaN(N)||Number.isNaN(C)||N>C)return new q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:N,offsetEndMs:C},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",C===z&&N-500<=C);R={xv:new Tb(N,C),G6:R};if(v!=null){N=Math.max(0,N-v);if(N===C)return R;R.s_=new Tb(N,C)}return R; default:return new q("AdPlacementKind not supported in convertToRange.",{kind:C,adPlacementConfig:N})}}; UK7=function(N){var z=N.startSecs*1E3;return new Tb(z,z+N.K5*1E3)}; qxK=function(N){if(!N||!N.adPlacements&&!N.adSlots)return!1;for(var z=g.f(N.adPlacements||[]),v=z.next();!v.done;v=z.next())if(v=v.value)if(v=v.adPlacementRenderer,v!=null&&(v.config&&v.config.adPlacementConfig&&v.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;N=g.f(N.adSlots||[]);for(z=N.next();!z.done;z=N.next()){var R=v=void 0;if(((v=g.t(z.value,og))==null?void 0:(R=v.adSlotMetadata)==null?void 0:R.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; N$=function(N){this.zU=N;this.W=new Map;this.V=new Map;this.Z=new Map}; la=function(N,z){if(zz(N.zU.get())){var v=N.W.get(z)||0;v++;N.W.set(z,v);return z+"_"+v}return g.sD(16)}; rR=function(N,z,v){if(zz(N.zU.get())){var R=N.V.get(z)||0;R++;N.V.set(z,R);return v+"_"+z+"_"+R}return g.sD(16)}; aa=function(N,z){if(zz(N.zU.get())){var v=N.Z.get(z)||0;v++;N.Z.set(z,v);return z+"_"+v}return g.sD(16)}; MT7=function(N){var z=[new W2(N.ql),new J1(N.Ng),new cj(N.adPlacementConfig),new Ty(N.videoLengthSeconds),new h1(N.dT)];N.instreamAdPlayerOverlayRenderer&&z.push(new Rj(N.instreamAdPlayerOverlayRenderer));N.playerOverlayLayoutRenderer&&z.push(new C3(N.playerOverlayLayoutRenderer));N.z7&&z.push(new NK(N.z7));return z}; w2m=function(N,z,v,R,C,Z){N=v.inPlayerLayoutId?v.inPlayerLayoutId:rR(Z,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",N);var Y,Q,L=v.instreamAdPlayerOverlayRenderer?(Y=v.instreamAdPlayerOverlayRenderer)==null?void 0:Y.adLayoutLoggingData:(Q=v.playerOverlayLayoutRenderer)==null?void 0:Q.adLayoutLoggingData;Y={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hO:z};return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",OR:new Map,layoutExitNormalTriggers:[new pC(function(K){return aa(Z, K)},v.ql)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:z,clientMetadata:R,Bb:C(Y),adLayoutLoggingData:L}}; vM=function(N,z){var v=this;this.W=N;this.zU=z;this.V=function(R){return aa(v.W.get(),R)}}; dT7=function(N,z,v,R,C,Z){v=new RY([new Zy(v),new cj(R)]);z=rR(N.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",z);R={layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hO:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",OR:new Map,layoutExitNormalTriggers:[new pC(function(Y){return aa(N.W.get(),Y)},C)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:v,Bb:Z(R),adLayoutLoggingData:void 0}}; z$=function(N,z,v,R,C){var Z=MT7(R);return w2m(z,v,R,new RY(Z),C,N.W.get())}; NRu=function(N,z,v,R,C){var Z=MT7(R);Z.push(new rC(R.l7));Z.push(new uq(R.fl));return w2m(z,v,R,new RY(Z),C,N.W.get())}; fv=function(N,z,v,R,C,Z,Y,Q,L,K){z=rR(N.W.get(),v,z);var l={layoutId:z,layoutType:v,hO:"core"},W=new Map;Y&&W.set("impression",Y);Y=[new HD(N.V,C,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];K&&Y.push(new gl(N.V,K,["normal"]));return{layoutId:z,layoutType:v,OR:W,layoutExitNormalTriggers:Y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([R,new cj(Z),new W2(C)]),Bb:Q(l),adLayoutLoggingData:L}}; dQ=function(N,z,v,R,C,Z,Y,Q,L){z=rR(N.W.get(),v,z);var K={layoutId:z,layoutType:v,hO:"core"},l=[new HD(N.V,C,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];L&&l.push(new gl(N.V,L,["normal"]));return{layoutId:z,layoutType:v,OR:new Map,layoutExitNormalTriggers:l,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([R,new cj(Z),new W2(C)]),Bb:Y(K),adLayoutLoggingData:Q}}; Lv=function(N,z,v){var R=[];R.push(new ok(N.V,v));z&&R.push(z);return R}; Q6=function(N,z,v,R,C,Z,Y){var Q={layoutId:z,layoutType:v,hO:"core"};return{layoutId:z,layoutType:v,OR:new Map,layoutExitNormalTriggers:Y,layoutExitSkipTriggers:[new $8(N.V,z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([new tU(R),new cj(C)]),Bb:Z(Q),adLayoutLoggingData:R.adLayoutLoggingData}}; qI=function(N,z,v,R,C,Z,Y,Q){var L={layoutId:z,layoutType:Z,hO:"core"};return{layoutId:z,layoutType:Z,OR:new Map,layoutExitNormalTriggers:[new pC(N.V,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([new cj(R)].concat(g.U(Y))),Bb:C(L),adLayoutLoggingData:Q}}; l5=function(N,z,v,R){if(N.zU.get().bv(z.kind==="AD_PLACEMENT_KIND_START"))if(v===void 0)LZ("Expected SSAP layout ID in renderer",void 0,void 0,{caller:R});else return v}; zGU=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G){N=Kv(N,z,v,C,Z,Y,Q,L,W,l5(N,v,R.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),G);z=N.Ph;v=new Gy(N.ZF);R=N.layoutExitSkipTriggers;K>0&&(z.push(v),z.push(new wC(K)),R=[]);z.push(new MT(l));return{KU:{layoutId:N.layoutId,layoutType:N.layoutType,OR:N.OR,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:N.hO,clientMetadata:new RY(z),Bb:N.Bb,adLayoutLoggingData:N.adLayoutLoggingData}, K4:R,aT:N.layoutExitMuteTriggers,Zu:N.layoutExitUserInputSubmittedTriggers,eZ:N.B5,SL:N.SL}}; Z3b=function(N,z,v,R,C,Z,Y,Q,L,K){z=Kv(N,z,v,R,Z,new Map,Y,function(l){return Q(l,L)},void 0,l5(N,v,C.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); N=new MY(N.V,z.ZF);v=new Gy(z.ZF);K=new MT(K);return{KU:{layoutId:z.layoutId,layoutType:z.layoutType,OR:z.OR,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:z.hO,clientMetadata:new RY([].concat(g.U(z.Ph),[v,K])),Bb:z.Bb,adLayoutLoggingData:z.adLayoutLoggingData},K4:z.layoutExitSkipTriggers,aT:z.layoutExitMuteTriggers,Zu:[].concat(g.U(z.layoutExitUserInputSubmittedTriggers),[N]),eZ:z.B5,SL:z.SL}}; Kv=function(N,z,v,R,C,Z,Y,Q,L,K,l){z=K!=null?K:rR(N.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",z);K={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hO:"adapter"};Q=Q(z);var W=CM(Q.clientMetadata,"metadata_type_fulfilled_layout");W||LZ("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var G=W?W.layoutId:"";v=[new cj(v),new H2(R),new bu(C)];W&&v.push(new xP(W.layoutType));l&&v.push(new B2(l));return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", OR:Z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Oc(N.V,G)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"adapter",Ph:v,Bb:Y(K),adLayoutLoggingData:L,SL:Q,ZF:G}}; JUY=function(N,z,v,R,C,Z,Y,Q,L,K,l){N=zxu(N,z,"core",v,R,C,Z,Y,Q,L,K,void 0,l);return{layoutId:N.layoutId,layoutType:N.layoutType,OR:N.OR,layoutExitNormalTriggers:N.layoutExitNormalTriggers,layoutExitSkipTriggers:N.layoutExitSkipTriggers,layoutExitMuteTriggers:N.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:N.layoutExitUserInputSubmittedTriggers,B5:N.B5,hO:N.hO,clientMetadata:new RY(N.Kw),Bb:N.Bb,adLayoutLoggingData:N.adLayoutLoggingData}}; xKu=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G){z=zxu(N,z,"adapter",v,R,C,Z,Y,Q,L,l,W,G);R=z.layoutExitSkipTriggers;C=z.Kw;v.adPodSkipTarget&&v.adPodSkipTarget>0&&(C.push(K),C.push(new wC(v.adPodSkipTarget)),R=[]);C.push(new MT(Q.adPodIndex));v.isCritical&&(R=[new gl(N.V,z.layoutId,["error"])].concat(g.U(R)));return{KU:{layoutId:z.layoutId,layoutType:z.layoutType,OR:z.OR,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:z.hO,clientMetadata:new RY(C), Bb:z.Bb,adLayoutLoggingData:z.adLayoutLoggingData},K4:R,aT:z.layoutExitMuteTriggers,Zu:z.layoutExitUserInputSubmittedTriggers,eZ:z.B5}}; zxu=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G){var x={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",hO:v};C=[new cj(C),new qT(L),new zy(R.externalVideoId),new v2(Q),new bu({impressionCommands:R.impressionCommands,abandonCommands:R.onAbandonCommands,completeCommands:R.completeCommands,progressCommands:R.adVideoProgressCommands}),new FP(Z),new y_({current:null}),new Ty(Y)];(Z=R.playerOverlay.instreamAdPlayerOverlayRenderer)&&C.push(new Rj(Z));(Y=R.playerOverlay.playerOverlayLayoutRenderer)&&C.push(new C3(Y)); W&&C.push(new n3(W));(W=R.playerUnderlay)&&C.push(new Zy(W));Q=la(N.W.get(),"SLOT_TYPE_IN_PLAYER");W=(W=Z?Z.elementId:Y==null?void 0:Y.layoutId)?W:rR(N.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Q);C.push(new Gy(W));C.push(new eT(Q));C.push(new B2(L.adPodIndex));R.adNextParams&&C.push(new Dw(R.adNextParams));R.shrunkenPlayerBytesConfig&&C.push(new jT(R.shrunkenPlayerBytesConfig));R.clickthroughEndpoint&&C.push(new bq(R.clickthroughEndpoint));R.legacyInfoCardVastExtension&&C.push(new oj(R.legacyInfoCardVastExtension)); R.sodarExtensionData&&C.push(new mX(R.sodarExtensionData));l&&C.push(new Ex(l));C.push(new Ij(sj(R.pings)));L=Tt(R.pings);if(G){a:{G=g.f(G);for(l=G.next();!l.done;l=G.next())if(l=l.value,l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(Z=g.t(l.fulfillmentContent.fulfilledLayout,A5))&&(Z=g.t(Z.renderingContent,U9))&&Z.associatedPlayerBytesLayoutId===z){G=l;break a}G=void 0}G&&C.push(new YP(G))}return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",OR:L,layoutExitNormalTriggers:[new DP(N.V,z)],layoutExitSkipTriggers:R.skipOffsetMilliseconds? [new Oc(N.V,W)]:[],layoutExitMuteTriggers:[new Oc(N.V,W)],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:v,Kw:C,Bb:K(x),adLayoutLoggingData:R.adLayoutLoggingData}}; j3_=function(N,z,v,R,C,Z,Y,Q,L){R.every(function(l){return Nh(l,[],["LAYOUT_TYPE_MEDIA"])})||LZ("Unexpect subLayout type for DAI composite layout"); z=rR(N.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z);var K={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hO:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",OR:new Map,layoutExitNormalTriggers:[new k8(N.V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],B5:[],hO:"core",clientMetadata:new RY([new $P(v),new Ux(Q),new dU(R),new cj(C),new kP(Z),new A1({}),new rU(L)]),Bb:Y(K)}}; RuO=function(N){return N!=null}; RJ=function(N,z,v){var R=this;this.W=N;this.Z=z;this.zU=v;this.V=function(C){return aa(R.W.get(),C)}}; nPI=function(N,z,v,R,C,Z,Y){if(!v.prefetchModeConfig)return new q("AdPlacementConfig for Live Prefetch is missing prefetch_config");v=v.prefetchModeConfig;R*=1E3;var Q=[];if(!v.breakLengthMs)return new q("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var L=g.f(v.breakLengthMs),K=L.next();!K.done;K=L.next())if(K=K.value,Number(K)>0){var l=R+Number(v.startTimeOffsetMs),W=l+Number(v.cacheFetchSmearingDurationMs);K={xv:new Tb(W,W+Number(K)),G6:!1,s_:new Tb(Math.floor(l+Math.random()* Number(v.cacheFetchSmearingDurationMs)),W),cueProcessedMs:R?R:l};l=[];l.push(new MK({}));W=[];W.push(new tQ(N.V));W.push(new rcm(N.V));Y&&l.push(new A1({}));Q.push(b2(N,z,C,K,Z,l,W))}return Q}; b2=function(N,z,v,R,C,Z,Y){Z=Z===void 0?[]:Z;var Q=la(N.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Y||(Y=[],R.s_&&R.s_.start!==R.xv.start&&Y.push(new Ec(N.V,v,new Tb(R.s_.start,R.xv.start),!1)),Y.push(new Ec(N.V,v,new Tb(R.xv.start,R.xv.end),R.G6)));R={getAdBreakUrl:z.getAdBreakUrl,sQ:R.xv.start,Hv:R.xv.end,cueProcessedMs:R.cueProcessedMs};z=new uJ(N.V,Q);Z=[new V_(R)].concat(g.U(Z));return{slotId:Q,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:Y, slotExpirationTriggers:[new bJ(N.V,v),new X5(N.V,Q),new rl(N.V,Q)],hO:"core",clientMetadata:new RY(Z),adSlotLoggingData:C}}; Rxf=function(N,z,v){var R=[];v=g.f(v);for(var C=v.next();!C.done;C=v.next())R.push(vVm(N,z,C.value));return R}; vVm=function(N,z,v){return v.triggeringSlotId!=null&&v.triggeringSlotId===N?v.clone(z):v}; IXu=function(N,z,v,R,C){return CcK(N,z,v,R,C)}; vPf=function(N,z,v,R){var C=la(N.W.get(),"SLOT_TYPE_IN_PLAYER");return CcK(N,C,z,v,R)}; CcK=function(N,z,v,R,C){var Z=new AQ(N.V,v),Y=[new Ik(N.V,z)];N=[new X5(N.V,z),new bJ(N.V,R)];return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(C({slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N},v))]),adSlotLoggingData:void 0}}; eG7=function(N,z,v,R,C,Z){var Y=la(N.W.get(),"SLOT_TYPE_PLAYER_BYTES"),Q=la(N.W.get(),"SLOT_TYPE_IN_PLAYER"),L=rR(N.W.get(),"LAYOUT_TYPE_SURVEY",Q);R=Cb(N,z,v,R);var K=[new Ik(N.V,Y)];v=[new X5(N.V,Y),new bJ(N.V,v),new $8(N.V,L)];if(R instanceof q)return R;Q=Z({slotId:Y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:R,slotFulfillmentTriggers:K,slotExpirationTriggers:v},{slotId:Q,layoutId:L});Z=Q.Wl0;Q=Q.e9;return[{slotId:Y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:G$(N,z,Y,R),slotFulfillmentTriggers:xk(N,z,Y,K),slotExpirationTriggers:v,hO:"core",clientMetadata:new RY([new P2(Z),new uu(eC(z)),new qK({O7:N.O7(z)})]),adSlotLoggingData:C},Q]}; eC=function(N){return N.kind==="AD_PLACEMENT_KIND_START"}; yUu=function(N,z,v,R,C){C=C?C:la(N.W.get(),"SLOT_TYPE_IN_PLAYER");v=new AQ(N.V,v);var Z=[new Ik(N.V,C)];N=[new bJ(N.V,z),new X5(N.V,C)];return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:Z,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(R({slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:v,slotFulfillmentTriggers:Z,slotExpirationTriggers:N}))])}}; fwf=function(N,z,v,R){var C=la(N.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");v=new AQ(N.V,v);var Z=[new Ik(N.V,C)];N=[new bJ(N.V,z),new X5(N.V,C)];return{slotId:C,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:Z,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(R({slotId:C,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:v,slotFulfillmentTriggers:Z,slotExpirationTriggers:N}))])}}; LmY=function(N,z,v,R,C,Z,Y){var Q=la(N.W.get(),"SLOT_TYPE_IN_PLAYER"),L=rR(N.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Q);R=ZMf(N,R,Z,Y,L);if(R instanceof q)return R;Y=[new Ik(N.V,Q)];C=[new bJ(N.V,Z),new Ik(N.V,C),new qY(N.V,C)];v=Qd(v,{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:R,slotFulfillmentTriggers:Y,slotExpirationTriggers:C});N=N.Z.get();Z={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hO:"core"};z={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", OR:new Map,layoutExitNormalTriggers:[new vl_(N.V,L,z.durationMs)],layoutExitSkipTriggers:[new CIU(N.V,L,z.durationMs)],B5:[new RhY(N.V,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hO:"core",clientMetadata:new RY([new Dy(z)]),Bb:v(Z)};return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:R,slotFulfillmentTriggers:Y,slotExpirationTriggers:C,clientMetadata:new RY([new P2(z)])}}; wjY=function(N,z,v,R,C,Z){z=Cb(N,z,v,R);if(z instanceof q)return z;var Y=z instanceof Ec?new w_Y(N.V,v,z.V):null;R=la(N.W.get(),"SLOT_TYPE_IN_PLAYER");var Q=[new Ik(N.V,R)];N=[new bJ(N.V,v),new X5(N.V,R)];Z=Z({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:z,slotFulfillmentTriggers:Q,slotExpirationTriggers:N},Y);return Z instanceof vL?new q(Z):{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:Q,slotExpirationTriggers:N, hO:"core",clientMetadata:new RY([new P2(Z)]),adSlotLoggingData:C}}; qU7=function(N,z,v,R){var C=la(N.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=new mZ(N.V,z),Y=[new cD(N.V,C)];N=[new bJ(N.V,z),new X5(N.V,C)];return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(R({slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N}))]),adSlotLoggingData:v}}; MoY=function(N,z,v,R){var C=la(N.W.get(),"SLOT_TYPE_IN_PLAYER");v=new AQ(N.V,v);var Z=[new Ik(N.V,C)],Y=[new X5(N.V,C),new bJ(N.V,z)];Z={slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:v,slotFulfillmentTriggers:Z,slotExpirationTriggers:Y};return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:[new Ik(N.V,C)],slotExpirationTriggers:[new bJ(N.V,z),new X5(N.V,C)],hO:"core",clientMetadata:new RY([new P2(R(Z))])}}; usu=function(N,z,v,R,C){var Z=la(N.W.get(),"SLOT_TYPE_IN_PLAYER");v=new BD(N.V,R,v);R=[new Ik(N.V,Z)];N=[new bJ(N.V,z)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:R,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(C({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:v,slotFulfillmentTriggers:R,slotExpirationTriggers:N}))])}}; bAv=function(N,z,v,R,C,Z){var Y=la(N.W.get(),z);return Zv(N,Y,z,new AQ(N.V,R),[new bJ(N.V,v),new X5(N.V,Y),new gl(N.V,R,["error"])],C,Z)}; DJ2=function(N,z,v,R,C,Z,Y){var Q=la(N.W.get(),z);return Zv(N,Q,z,new gl(N.V,C,["normal"]),[new bJ(N.V,v),new X5(N.V,Q),new gl(N.V,R,["error"])],Z,Y)}; Elb=function(N,z,v,R,C){var Z=la(N.W.get(),z);return Zv(N,Z,z,new mZ(N.V,v),[new bJ(N.V,v),new X5(N.V,Z)],R,C)}; Xj7=function(N,z,v,R,C){v=v?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var Z=la(N.W.get(),v);z=new mZ(N.V,z);var Y=[new Ik(N.V,Z)];N=[new X5(N.V,Z)];return{slotId:Z,slotType:v,slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(C({slotId:Z,slotType:v,slotPhysicalPosition:1,hO:"core",slotEntryTrigger:z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N}))]),adSlotLoggingData:R}}; CqK=function(N,z,v,R){var C=la(N.W.get(),"SLOT_TYPE_PLAYER_BYTES"),Z=new SH(N.V),Y=[new cD(N.V,C)];N=[new bJ(N.V,z)];return{slotId:C,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(R({slotId:C,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:Y,slotExpirationTriggers:N})),new A1({})]),adSlotLoggingData:v}}; KXU=function(N,z){return TUI(N.zU.get())?new gl(N.V,z,["normal","error","skipped"]):new gl(N.V,z,["normal"])}; G92=function(N,z,v,R,C){z=KXU(N,z);N=Wk(N,z,v);C=C({slotId:N.slotId,slotType:N.slotType,slotPhysicalPosition:N.slotPhysicalPosition,slotEntryTrigger:N.slotEntryTrigger,slotFulfillmentTriggers:N.slotFulfillmentTriggers,slotExpirationTriggers:N.slotExpirationTriggers,hO:N.hO});return C instanceof q?C:{vQ:Object.assign({},N,{clientMetadata:new RY([new P2(C.layout)]),adSlotLoggingData:R}),td:C.td}}; xT_=function(N,z,v,R,C,Z,Y){v=lym(N,z,v,R);if(v instanceof q)return v;Y=Y({slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:v.slotExpirationTriggers,hO:v.hO});if(Y instanceof q)return Y;R=[new uu(eC(z)),new P2(Y.layout),new qK({O7:N.O7(z)})];Z&&R.push(new t1({}));return{vQ:{slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:G$(N, z,v.slotId,v.slotEntryTrigger),slotFulfillmentTriggers:xk(N,z,v.slotId,v.slotFulfillmentTriggers),slotExpirationTriggers:v.slotExpirationTriggers,hO:v.hO,clientMetadata:new RY(R),adSlotLoggingData:C},td:Y.td}}; G$=function(N,z,v,R){return N.zU.get().bv(eC(z))?new F5(N.V,v):R}; xk=function(N,z,v,R){return N.zU.get().bv(eC(z))?[new cD(N.V,v)]:R}; Wk=function(N,z,v){var R=la(N.W.get(),"SLOT_TYPE_PLAYER_BYTES"),C=[new Ik(N.V,R)];N=[new X5(N.V,R),new bJ(N.V,v)];return{slotId:R,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:C,slotExpirationTriggers:N,hO:"core"}}; lym=function(N,z,v,R){z=Cb(N,z,v,R);return z instanceof q?z:Wk(N,z,v)}; uJ_=function(N,z,v,R,C,Z){var Y=la(N.W.get(),"SLOT_TYPE_FORECASTING");z=Cb(N,z,v,R);if(z instanceof q)return z;R=[new Ik(N.V,Y)];N=[new X5(N.V,Y),new bJ(N.V,v)];return{slotId:Y,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:R,slotExpirationTriggers:N,hO:"core",clientMetadata:new RY([new P2(Z({slotId:Y,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,hO:"core",slotEntryTrigger:z,slotFulfillmentTriggers:R,slotExpirationTriggers:N}))]),adSlotLoggingData:C}}; Y8m=function(N,z,v,R,C){var Z=!z.hideCueRangeMarker;switch(z.kind){case "AD_PLACEMENT_KIND_START":return new mZ(N.V,v);case "AD_PLACEMENT_KIND_MILLISECONDS":return N=kLv(z,R),N instanceof q?N:C(N.xv,Z);case "AD_PLACEMENT_KIND_END":return new Uc(N.V,v,Z);default:return new q("Cannot construct entry trigger",{kind:z.kind})}}; ZMf=function(N,z,v,R,C){return Y8m(N,z,v,R,function(Z,Y){return new MqY(N.V,v,Z,Y,C)})}; Cb=function(N,z,v,R){return Y8m(N,z,v,R,function(C,Z){return new Ec(N.V,v,C,Z)})}; Zv=function(N,z,v,R,C,Z,Y){N=[new cD(N.V,z)];return{slotId:z,slotType:v,slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:N,slotExpirationTriggers:C,hO:"core",clientMetadata:new RY([new P2(Y({slotId:z,slotType:v,slotPhysicalPosition:1,hO:"core",slotEntryTrigger:R,slotFulfillmentTriggers:N,slotExpirationTriggers:C}))]),adSlotLoggingData:Z}}; Y0=function(N,z){g.H.call(this);this.zU=N;this.V=z;this.eventCount=0}; is=function(N,z,v,R){Y0.call(this,N,z);this.zU=N;this.XW=v;this.context=R}; jv=function(){this.V=new Map}; aJ=function(N){this.currentState="pending";this.hR=[];this.ME=[];try{N(this.Od.bind(this),this.reject.bind(this))}catch(z){this.reject(z)}}; iM7=function(){var N,z;return{JY:new aJ(function(v,R){N=v;z=R}), resolve:N,reject:z}}; Kb=function(N){return QP(N)?N:Lb(N)?new aJ(function(z,v){N.then(z,v)}):new aJ(function(z){z(N)})}; ls=function(N){return new aJ(function(z,v){v(N)})}; WM=function(N){try{return Kb(N())}catch(z){return ls(z)}}; x0=function(N,z,v){var R=iM7(),C=R.JY,Z=R.resolve,Y=R.reject;N.hR.push(function(Q){if(z)try{var L=z(Q);Z(L)}catch(K){Y(K)}else Z(Q)}); N.ME.push(function(Q){if(v)try{var L=v(Q);Z(L)}catch(K){Y(K)}else Y(Q)}); Gz(N);return C}; ev=function(N,z){return x0(N,void 0,z)}; jYu=function(N,z){x0(N,function(v){return x0(Kb(z()),function(){return v})},function(v){return x0(Kb(z()),function(){return ls(v)})})}; Gz=function(N){if(N.currentState==="fulfilled"){var z=N.hR;N.hR=[];N.ME=[];z=g.f(z);for(var v=z.next();!v.done;v=z.next())v=v.value,v(N.result)}else if(N.currentState==="rejected")for(z=N.ME,N.hR=[],N.ME=[],z=g.f(z),v=z.next();!v.done;v=z.next())v=v.value,v(N.error)}; JG=function(N){return function(){return aLu(N.apply(this,g.SI.apply(0,arguments)))}}; yP=function(N){return Kb(N).wait()}; aLu=function(N){return WM(function(){return fb(N,N.next())})}; fb=function(N,z){return z.done?Kb(z.value):ev(x0(z.value.JY,function(v){return fb(N,N.next(v))}),function(v){return fb(N,N.throw(v))})}; dq=function(N,z){if(N.length===0)return Kb(NaN);var v=iM7(),R=v.JY,C=v.resolve,Z=N.length;N=g.f(N.entries());var Y=N.next();for(v={};!Y.done;v={oG:void 0},Y=N.next()){var Q=g.f(Y.value);Y=Q.next().value;Q=Q.next().value;v.oG=Y;jYu(Q,function(L){return function(){R.currentState==="pending"&&(QYY(z)&&z(L.oG)&&R.currentState==="pending"?C(L.oG):(--Z,Z===0&&C(NaN)))}}(v))}return R}; s_=function(N){return N.map(function(z){return Kb(z)})}; F$=function(N){var z=N.hours||0;var v=N.minutes||0,R=N.seconds||0;z=R+v*60+z*3600+(N.days||0)*86400+(N.weeks||0)*604800+(N.months||0)*2629800+(N.years||0)*31557600;z<=0?z={hours:0,minutes:0,seconds:0}:(N=z,z=Math.floor(N/3600),N%=3600,v=Math.floor(N/60),R=Math.floor(N%60),z={hours:z,minutes:v,seconds:R});var C=z.hours===void 0?0:z.hours;v=z.minutes===void 0?0:z.minutes;N=z.seconds===void 0?0:z.seconds;R=C>0;z=[];if(R){C=(new Intl.NumberFormat("en-u-nu-latn")).format(C);var Z=["fr"],Y="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(" "); C="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(Tz)?C.replace(",","\u00a0"):Z.includes(Tz)?C.replace(",","\u202f"):Y.includes(Tz)?C.replace(",","."):C;z.push(C)}R=R===void 0?!1:R;v=(["af","be","lt"].includes(Tz)||R)&&v<10?LFx().format(v):(new Intl.NumberFormat("en-u-nu-latn")).format(v);z.push(v);v=LFx().format(N);z.push(v);v=":";"da fi id si sr sr-Latn".split(" ").includes(Tz)&&(v=".");return z.join(v)}; LFx=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; KF_=function(N,z){var v,R;N=((v=N.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=v.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(v=0;vz;N=v}else N=!1;return N}; g.oJ=function(N,z){return N.bL+"timedtext_video?ref=player&v="+z.videoId}; g.AY7=function(N){var z=this;this.videoData=N;N={};this.V=(N.c1a=function(){var v=[];if(g.hG.isInitialized()){var R="";z.videoData&&z.videoData.Ml&&(R=z.videoData.Ml+("&r1b="+z.videoData.clientPlaybackNonce));var C={};R=(C.atr_challenge=R,C);Om("bg_v",void 0,"player_att");(R=BRx(R))?(Om("bg_s",void 0,"player_att"),v.push("r1a="+R)):(Om("bg_e",void 0,"player_att"),v.push("r1c=2"))}else Om("bg_e",void 0,"player_att"),window.trayride||window.botguard?v.push("r1c=1"):v.push("r1c=4");v.push("r1d="+g.hG.getState()); return v.join("&")},N.c6a=function(v){return"r6a="+(Number(v.c)^aN())},N.c6b=function(v){return"r6b="+(Number(v.c)^Number(g.XI("CATSTAT",0)))},N); this.videoData&&this.videoData.Ml?this.Zo=zU(this.videoData.Ml):this.Zo={}}; g.gVK=function(N){if(N.videoData&&N.videoData.Ml){for(var z=[N.videoData.Ml],v=g.f(Object.keys(N.V)),R=v.next();!R.done;R=v.next())R=R.value,N.Zo[R]&&N.V[R]&&(R=N.V[R](N.Zo))&&z.push(R);return z.join("&")}return null}; g.Dv=function(N,z){Uhf(N,{WSd:g.LM(z.experiments,"bg_vm_reinit_threshold"),cspNonce:z.cspNonce,bL:z.bL||""})}; pLf=function(){var N=XMLHttpRequest.prototype.fetch;return!!N&&N.length===3}; kWu=function(N){N=N[a[4]](a[0]);bs[a[33]](N,68);bs[a[23]](N,2);bs[a[33]](N,34);bs[a[33]](N,63);bs[a[33]](N,53);bs[a[23]](N,1);return N[a[13]](a[0])}; VRf=function(N){Pc_=2592E3*(N||1)}; tG=function(N){N=N===void 0?Pc_:N;if(N>0&&!(tjI()>(0,g.I)()-N*1E3))return 0;N=g.Pe("yt-player-quality");if(typeof N==="string"){if(N=g.hx[N],N>0)return N}else if(N instanceof Object)return N.quality;return 0}; O_=function(){var N=g.Pe("yt-player-proxima-pref");return N==null?null:N}; S8x=function(){var N=g.Pe("yt-player-quality");if(N instanceof Object&&N.quality&&N.previousQuality){if(N.quality>N.previousQuality)return 1;if(N.quality0&&z[0]?N.getAutoplayPolicy(z[0]):N.getAutoplayPolicy("mediaelement");if(tRu[v])return tRu[v]}}catch(R){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; M$=function(N){return N.g$||N.SI||N.mutedAutoplay}; OMf=function(N,z){return M$(N)?z!==1&&z!==2&&z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":N.yq?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; ILx=function(N,z,v){var R=z.D();N.thirdParty||(N.thirdParty={});R.ancestorOrigins&&(N.thirdParty.embeddedPlayerContext=Object.assign({},N.thirdParty.embeddedPlayerContext,{ancestorOrigins:R.ancestorOrigins}));R.X("embeds_enable_autoplay_and_visibility_signals")&&(R.Jx!=null&&(N.thirdParty.embeddedPlayerContext=Object.assign({},N.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(R.Jx)})),R.ip&&(N.thirdParty.embeddedPlayerContext=Object.assign({},N.thirdParty.embeddedPlayerContext,{visibilityFractionSource:R.ip})), N.thirdParty.embeddedPlayerContext=Object.assign({},N.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:q$(),autoplayIntended:M$(z),autoplayStatus:OMf(z,v)}))}; uuu=function(N,z){rJ(N,2,z.UO,wq,3);rJ(N,3,z.WJ,XLu,3);IN(N,4,z.onesieUstreamerConfig);IN(N,9,z.Hg);rJ(N,10,z.Vf,Nc,3);rJ(N,15,z.reloadPlaybackParams,rY_,3)}; q8v=function(N,z){rJ(N,1,z.formatId,zT,3);t2(N,2,z.startTimeMs);t2(N,3,z.durationMs);t2(N,4,z.DJ);t2(N,5,z.yX);rJ(N,9,z.Bmp,cYx,3);rJ(N,11,z.pvd,v7,1);rJ(N,12,z.Of,v7,1)}; MRO=function(N,z){Xs(N,1,z.videoId);t2(N,2,z.lmt)}; cYx=function(N,z){if(z.Sh)for(var v=0;v>31));t2(N,16,z.S9);t2(N,17,z.detailedNetworkType);t2(N,18,z.Rw);t2(N,19,z.Kc);t2(N,21,z.PId);t2(N,23,z.ow);t2(N,28,z.R0);t2(N,29,z.Bio);t2(N,34,z.visibility);v=z.playbackRate;if(v!==void 0){var R=new ArrayBuffer(4);(new Float32Array(R))[0]=v;v=(new Uint32Array(R))[0];if(v!==void 0)for(bI(N,285),DX(N,4),R=0;R<4;)N.view.setUint8(N.pos,v&255),v>>=8,N.pos+=1,R+=1}t2(N,36,z.VA); rJ(N,38,z.mediaCapabilities,zdI,3);t2(N,39,z.syo);t2(N,40,z.c8);t2(N,44,z.playerState);Of(N,46,z.oF);t2(N,48,z.NG);t2(N,50,z.KN);t2(N,51,z.pC);t2(N,54,z.Di);if(z.kz)for(v=0;v>31));Xs(N,2,z.message)}; Q2b=function(N,z){t2(N,1,z.clientState);rJ(N,2,z.Pkd,j2U,1)}; i7v=function(N,z){IN(N,1,z.S68);rJ(N,2,z.uv1,aA2,3);rJ(N,3,z.coldStartInfo,Q2b,3)}; YjU=function(N,z){t2(N,1,z.type);IN(N,2,z.value)}; Z7I=function(N,z){Xs(N,1,z.hl);Xs(N,12,z.deviceMake);Xs(N,13,z.deviceModel);t2(N,16,z.clientName);Xs(N,17,z.clientVersion);Xs(N,18,z.osName);Xs(N,19,z.osVersion)}; Lb2=function(N,z){Xs(N,1,z.name);Xs(N,2,z.value)}; Kb2=function(N,z){Xs(N,1,z.url);if(z.JN)for(var v=0;v1&&(this.B=N[1]==="2")}; j$=function(N,z,v,R,C){this.W=N;this.V=z;this.Z=v;this.reason=R;this.i$=C===void 0?0:C}; g.aS=function(N,z,v,R){return new j$(g.hx[N]||0,g.hx[z]||0,v,R)}; Lf=function(N){if(QN&&N.i$)return!1;var z=g.hx.auto;return N.W===z&&N.V===z}; lL=function(N){return Kf[N.V||N.W]||"auto"}; qjK=function(N,z){z=g.hx[z];return N.W<=z&&(!N.V||N.V>=z)}; W7=function(N){return"["+N.W+"-"+N.V+", override: "+(N.Z+", reason: "+N.reason+"]")}; GT=function(N,z,v){this.videoInfos=N;this.V=z;this.audioTracks=[];if(this.V){N=new Set;v==null||v({ainfolen:this.V.length});z=g.f(this.V);for(var R=z.next();!R.done;R=z.next())if(R=R.value,!R.u$||N.has(R.u$.id)){var C=void 0,Z=void 0,Y=void 0;(Y=v)==null||Y({atkerr:!!R.u$,itag:R.itag,xtag:R.V,lang:((C=R.u$)==null?void 0:C.name)||"",langid:((Z=R.u$)==null?void 0:Z.id)||""})}else C=new g.iL(R.id,R.u$),N.add(R.u$.id),this.audioTracks.push(C);v==null||v({atklen:this.audioTracks.length})}}; xw=function(){g.H.apply(this,arguments);this.V=null}; zHb=function(N,z,v,R,C,Z,Y){if(N.V)return N.V;var Q={},L=new Set,K={};if(e$(R)){for(var l in R.V)R.V.hasOwnProperty(l)&&(N=R.V[l],K[N.info.JO]=[N.info]);return K}l=MZu(z,R,Q);Z&&C({aftsrt:Jm(l)});for(var W={},G=g.f(Object.keys(l)),x=G.next();!x.done;x=G.next()){x=x.value;for(var e=g.f(l[x]),d=e.next();!d.done;d=e.next()){d=d.value;var T=d.itag,m=void 0,n=x+"_"+(((m=d.video)==null?void 0:m.fps)||0);W.hasOwnProperty(n)?W[n]===!0?K[x].push(d):Q[T]=W[n]:(m=yN(z,d,v,R.isLive,L),m!==!0?(Y.add(x),Q[T]=m, m==="disablevp9hfr"&&(W[n]="disablevp9hfr")):(K[x]=K[x]||[],K[x].push(d),W[n]=!0))}}Z&&C({bfflt:Jm(K)});for(var P in K)K.hasOwnProperty(P)&&(R=P,K[R]&&K[R][0].yO()&&(K[R]=K[R],K[R]=wAx(z,K[R],Q),K[R]=Npf(K[R],Q)));Z&&Object.keys(Q).length>0&&C({rjr:n_(Q)});z=g.f(L.values());for(R=z.next();!R.done;R=z.next())(R=v.N.get(R.value))&&--R.tM;Z&&C({aftflt:Jm(K)});N.V=g.bW(K,function(V){return!!V.length}); return N.V}; RHb=function(N,z,v,R,C,Z,Y,Q){Q=Q===void 0?!1:Q;if(z.c5&&Y&&Y.length>1&&!(z.Ai>0||z.Y)){for(var L=z.W||!!C,K=L&&z.YJ?Z:void 0,l=MZu(z,R),W=[],G=[],x={},e=0;e0&&G&&C&&(l=[Y,v],T=C.concat(G).filter(function(m){return m})); if(T.length&&!z.OV){sQ(T,l);if(L){L=[];z=g.f(T);for(R=z.next();!R.done;R=z.next())L.push(R.value.itag);Z({hbdfmt:L.join(".")})}return gm(new GT(T,N,K))}T=liU(z);T=g.G1(T,Q);if(!T){if(W[Y])return Z=W[Y],sQ(Z),gm(new GT(Z,N,K));L&&Z({novideo:1});return Ar()}z.J0&&(T==="1"||T==="1h")&&W[v]&&(Y=TT(W[T]),l=TT(W[v]),l>Y?T=v:l===Y&&WTK(W[v])&&(T=v));T==="9"&&W.h&&TT(W.h)>TT(W["9"])&&(T="h");z.gW&&R.isLive&&T==="("&&W.H&&TT(W["("])<1440&&(T="H");L&&Z({vfmly:Fy(T)});z=W[T];if(!z.length)return L&&Z({novfmly:Fy(T)}), Ar();sQ(z);return gm(new GT(z,N,K))}; Z_v=function(N,z){var v=!(!N.m&&!N.M),R=!(!N.mac3&&!N.MAC3),C=!(!N.meac3&&!N.MEAC3);N=!(!N.i&&!N.I);z.xH=N;return v||R||C||N}; WTK=function(N){N=g.f(N);for(var z=N.next();!z.done;z=N.next())if(z=z.value,z.itag&&G2u.has(z.itag))return!0;return!1}; i_u=function(N){N=g.f(N);for(var z=N.next();!z.done;z=N.next())if(z.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Fy=function(N){switch(N){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return N}}; Jm=function(N){var z=[],v;for(v in N)if(N.hasOwnProperty(v)){var R=v;z.push(Fy(R));R=g.f(N[R]);for(var C=R.next();!C.done;C=R.next())z.push(C.value.itag)}return z.join(".")}; Ciu=function(N,z,v,R,C,Z){var Y={},Q={};g.Dl(z,function(L,K){L=L.filter(function(l){var W=l.itag;if(!l.CG)return Q[W]="noenc",!1;if(Z.zE&&l.JO==="(h"&&Z.kJ)return Q[W]="lichdr",!1;if(!N.B&&l.JO==="1e")return Q[W]="noav1enc",!1;if(l.JO==="("||l.JO==="(h"){if(N.Z&&v&&v.flavor==="widevine"){var G=l.mimeType+"; experimental=allowed";(G=!!l.CG[v.flavor]&&!!v.V[G])||(Q[W]=l.CG[v.flavor]?"unspt":"noflv");return G}if(!nf(N,m_.CRYPTOBLOCKFORMAT)&&!N.Rd||N.PL)return Q[W]=N.PL?"disvp":"vpsub",!1}return v&&l.CG[v.flavor]&& v.V[l.mimeType]?!0:(Q[W]=v?l.CG[v.flavor]?"unspt":"noflv":"nosys",!1)}); L.length&&(Y[K]=L)}); R&&Object.entries(Q).length&&C({rjr:n_(Q)});return Y}; Npf=function(N,z){var v=Xd(N,function(R,C){return C.video.fps>32?Math.min(R,C.video.width):R},Infinity); v32||R.video.widthN.G)return"max"+N.G;if(N.xT&&z.JO==="h"&&z.video&&z.video.qualityOrdinal>1080)return"blkhigh264";if(z.JO==="(h"&&!v.L)return"enchdr";if((R===void 0?0:R)&&cP(z)&&!N.Id)return"blk51live";if((z.JO==="MAC3"||z.JO==="mac3")&&!N.N)return"blkac3";if((z.JO==="MEAC3"||z.JO==="meac3")&&!N.B)return"blkeac3";if(z.JO==="M"||z.JO==="m")return"blkaac51"; if((z.JO==="so"||z.JO==="sa")&&!N.qd)return"blkamb";if(!N.zE&&eiO(z)&&(!v.B||z.JO!=="1e"))return"cbc";if(!v.B&&eiO(z)&&z.JO==="1e")return"cbcav1";if((z.JO==="i"||z.JO==="I")&&!N.CV)return"blkiamf";var Z;if(N.A0&&((Z=z.audio)==null?void 0:Z.W)===!0)return"blkvbcabr";var Y,Q;if(N.UT&&(z.JO==="1"||z.JO==="1h"||v.B&&z.JO==="1e")&&((Y=z.video)==null?0:Y.qualityOrdinal)&&((Q=z.video)==null?void 0:Q.qualityOrdinal)>N.UT)return"av1cap";if((R=v.N.get(z.JO))&&R.tM>0)return C.add(z.JO),"byerr";var L;if((L=z.video)== null?0:L.fps>32){if(!v.K0&&!nf(v,m_.FRAMERATE))return"capHfr";if(N.S8&&z.video.qualityOrdinal>=4320)return"blk8khfr";if(OH(z)&&N.gx&&z.CG&&z.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(N.i$&&z.i$>N.i$)return"ratecap";N=xiY(v,z);return N!==!0?N:!0}; sQ=function(N,z){z=z===void 0?[]:z;g.P$(N,function(v,R){var C=R.i$-v.i$;if(!v.yO()||!R.yO())return C;var Z=R.video.height*R.video.width-v.video.height*v.video.width;!Z&&z&&z.length>0&&(v=z.indexOf(v.JO)+1,R=z.indexOf(R.JO)+1,Z=v===0||R===0?R||-1:v-R);Z||(Z=C);return Z})}; g.$w=function(N,z){this[a[2]]=N;this[a[57]]=z===void 0?!1:z;this[a[28]]=this[a[8]]=this[a[39]]=a[0];this[a[1]]={};this[a[19]]=a[0]}; B7=function(N){UQ(N);return N[a[28]]}; Am=function(N){return N[a[2]]?N[a[2]][a[59]](a[61]):N[a[39]]===a[61]}; eHK=function(N){UQ(N);return g.OZ(N[a[1]],function(z){return z!==null})}; gk=function(N){UQ(N);var z=decodeURIComponent(N[a[40]](a[32])||a[0])[a[4]](a[26]);return N[a[8]]===a[54]&&z[a[5]]>1&&!!z[1]}; pf=function(N,z){z=z===void 0?!1:z;UQ(N);if(N[a[8]]!==a[54]){var v=N[a[20]]();v[a[11]](a[69],a[34]);return v}var R=N[a[56]]();v=new g.Cj(R);var C=N[a[40]](a[88]),Z=decodeURIComponent(N[a[40]](a[32])||a[0])[a[4]](a[26]);if(C&&Z&&Z[a[5]]>1&&Z[1])return R=v.V,N=R[a[44]](/^[^.]*/,a[0]),g.YZ(v,(R[a[47]](a[25])===0?a[25]:a[80])+C+a[87]+Z[1]+N),v=new g.$w(v[a[67]]()),v[a[11]](a[74],a[34]),v;if(z)return v=N[a[20]](),v[a[11]](a[74],a[34]),v;C=v.V[a[43]](a[38]);v.V[a[43]](a[60])?(g.YZ(v,a[73]),R=v[a[67]]()): v.V[a[43]](a[22])?(g.YZ(v,a[78]),R=v[a[67]]()):(v=iKI(R),qh(v)&&(R=v));v=new g.$w(R);v[a[11]](a[65],a[34]);C&&v[a[11]](a[81],a[48]);return v}; UQ=function(N){if(N[a[2]]){if(!qh(N[a[2]])&&!N[a[2]][a[59]](a[61]))throw new g.XS(a[64],N[a[2]]);var z=g.lk(N[a[2]]);N[a[39]]=z.B;N[a[28]]=z.V+(z.Z!=null?a[84]+z.Z:a[0]);var v=z.W;if(v[a[59]](a[54]))N[a[8]]=a[54],v=v[a[10]](14);else if(v[a[59]](a[51]))N[a[8]]=a[51],v=v[a[10]](13);else if(v[a[59]](a[72])){var R=v[a[47]](a[16],12),C=v[a[47]](a[16],R+1);R>0&&C>0?(N[a[8]]=v[a[10]](0,C),v=v[a[10]](C+1)):(N[a[8]]=v,v=a[0])}else N[a[8]]=v,v=a[0];R=N[a[1]];N[a[1]]=Jxu(v);Object[a[53]](N[a[1]],yxK(z.N.toString())); Object[a[53]](N[a[1]],R);N[a[1]][a[17]]===a[70]&&(delete N[a[1]][a[17]],N[a[8]]+=a[86]);N[a[2]]=a[0];N[a[19]]=a[0];N[a[57]]&&(UQ(N),z=N[a[1]][a[29]]||null)&&(z=fi7[0](z),N[a[11]](a[29],z))}}; diI=function(N){UQ(N);var z=N[a[39]]+(N[a[39]]?a[21]:a[49])+N[a[28]]+N[a[8]];if(eHK(N)){var v=[];g.Dl(N[a[1]],function(R,C){R!==null&&v[a[12]](C+a[18]+R)}); z+=a[55]+v[a[13]](a[42])}return z}; Jxu=function(N){N=N[a[4]](a[16]);var z=0;N[0]||z++;for(var v={};z0?sVU(z,R[a[10]](0,C),R[a[10]](C+1)):R&&(z[R]=a[0])}return z}; sVU=function(N,z,v){if(z===a[82]){var R;(R=v[a[47]](a[18]))>=0?(z=a[62]+v[a[10]](0,R),v=v[a[10]](R+1)):(R=v[a[47]](a[76]))>=0&&(z=a[62]+v[a[10]](0,R),v=v[a[10]](R+3))}N[z]=v}; kw=function(N){var z=g.t(N,Tpu)||N[a[27]];N={Jh:!1,nI:a[0],LM:a[0],s:a[0]};if(!z)return N;z=zU(z);N[a[30]]=!0;N[a[83]]=z[a[19]];N[a[3]]=z[a[46]];N[a[35]]=z[a[35]];return N}; P7=function(N,z,v,R,C,Z,Y,Q,L){this.cL=N;this.startTime=z;this.duration=v;this.ingestionTime=R;this.sourceURL=C;this.U9=L;this.endTime=z+v;this.V=Y||0;this.range=Z||null;this.pending=Q||!1;this.U9=L||null}; g.VN=function(){this.segments=[];this.V=null;this.W=!0;this.Z=""}; FTO=function(N,z){if(z>N.YH())N.segments=[];else{var v=W$(N.segments,function(R){return R.cL>=z},N); v>0&&N.segments.splice(0,v)}}; S$=function(N,z,v,R,C){C=C===void 0?!1:C;this.data=N;this.offset=z;this.size=v;this.type=R;this.V=(this.W=C)?0:8;this.dataOffset=this.offset+this.V}; EQ=function(N){var z=N.data.getUint8(N.offset+N.V);N.V+=1;return z}; hm=function(N){var z=N.data.getUint16(N.offset+N.V);N.V+=2;return z}; H7=function(N){var z=N.data.getInt32(N.offset+N.V);N.V+=4;return z}; oS=function(N){var z=N.data.getUint32(N.offset+N.V);N.V+=4;return z}; Dq=function(N){var z=N.data;var v=N.offset+N.V;z=z.getUint32(v)*4294967296+z.getUint32(v+4);N.V+=8;return z}; bL=function(N,z){z=z===void 0?NaN:z;if(isNaN(z))var v=N.size;else for(v=N.V;v1?Math.ceil(C*z):Math.floor(C*z))}N.skip(1);v=EQ(N)<<16|hm(N);if(v&256){R=v&1;C=v&4;var Z=v&512,Y=v&1024,Q=v&2048;v=oS(N);R&&N.skip(4);C&&N.skip(4);R=(Z?4:0)+(Y?4:0)+(Q?4:0);for(C=0;C1?Math.ceil(Y*z):Math.floor(Y*z)),N.skip(R)}}}; Mc=function(N){N=new DataView(N.buffer,N.byteOffset,N.byteLength);return(N=g.c7(N,0,1836476516))?g.qc(N):NaN}; V3f=function(N){var z=g.c7(N,0,1937011556);if(!z)return null;z=wk(N,z.dataOffset+8,1635148593)||wk(N,z.dataOffset+8,1635135537);if(!z)return null;var v=wk(N,z.dataOffset+78,1936995172),R=wk(N,z.dataOffset+78,1937126244);if(!R)return null;z=null;if(v)switch(v.skip(4),EQ(v)){default:z=0;break;case 1:z=2;break;case 2:z=1;break;case 3:z=255}var C=v=null,Z=null;if(R=wk(N,R.dataOffset,1886547818)){var Y=wk(N,R.dataOffset,1886546020),Q=wk(N,R.dataOffset,2037673328);if(!Q&&(Q=wk(N,R.dataOffset,1836279920), !Q))return null;Y&&(Y.skip(4),v=H7(Y)/65536,Z=H7(Y)/65536,C=H7(Y)/65536);N=nzu(Q);N=new DataView(N.buffer,N.byteOffset+8,N.byteLength-8);return new k22(z,v,Z,C,N)}return null}; wk=function(N,z,v){for(;Ny(N,z);){var R=zg(N,z);if(R.type===v)return R;z+=R.size}return null}; g.c7=function(N,z,v){for(;Ny(N,z);){var R=zg(N,z);if(R.type===v)return R;z=vv(R.type)?z+8:z+R.size}return null}; g.RG=function(N){if(N.data.getUint8(N.dataOffset)){var z=N.data;N=N.dataOffset+4;z=z.getUint32(N)*4294967296+z.getUint32(N+4)}else z=N.data.getUint32(N.dataOffset+4);return z}; zg=function(N,z){var v=N.getUint32(z),R=N.getUint32(z+4);return new S$(N,z,v,R)}; g.qc=function(N){var z=N.data.getUint8(N.dataOffset)?20:12;return N.data.getUint32(N.dataOffset+z)}; SHx=function(N){N=new S$(N.data,N.offset,N.size,N.type,N.W);var z=EQ(N);N.skip(7);var v=oS(N);if(z===0){z=oS(N);var R=oS(N)}else z=Dq(N),R=Dq(N);N.skip(2);for(var C=hm(N),Z=[],Y=[],Q=0;Q122)return!1}return!0}; vv=function(N){return N===1701082227||N===1836019558||N===1836019574||N===1835297121||N===1835626086||N===1937007212||N===1953653094||N===1953653099||N===1836475768}; Ezb=function(N){N.skip(4);return{B6W:bL(N,0),value:bL(N,0),timescale:oS(N),UzS:oS(N),V5W:oS(N),id:oS(N),Ic:bL(N),offset:N.offset}}; g.hHu=function(N){var z=wk(N,0,1701671783);if(!z)return null;var v=Ezb(z),R=v.B6W;v=uL(v.Ic);if(N=wk(N,z.offset+z.size,1701671783))if(N=Ezb(N),N=uL(N.Ic),v&&N){z=g.f(Object.keys(N));for(var C=z.next();!C.done;C=z.next())C=C.value,v[C]=N[C]}return v?new Xy(v,R):null}; Cw=function(N,z){for(var v=wk(N,0,z);v;){var R=v;R.type=1936419184;R.data.setUint32(R.offset+4,1936419184);v=wk(N,v.offset+v.size,z)}}; g.ZO=function(N,z){for(var v=0,R=[];Ny(N,v);){var C=zg(N,v);C.type===z&&R.push(C);v=vv(C.type)?v+8:v+C.size}return R}; H_I=function(N,z){var v=g.c7(N,0,1937011556),R=g.c7(N,0,1953654136);if(!v||!R||N.getUint32(v.offset+12)>=2)return null;var C=new DataView(z.buffer,z.byteOffset,z.length),Z=g.c7(C,0,1937011556);if(!Z)return null;z=C.getUint32(Z.dataOffset+8);R=C.getUint32(Z.dataOffset+12);if(R!==1701733217&&R!==1701733238)return null;R=new miu(N.byteLength+z);tm(R,N,0,v.offset+12);R.data.setInt32(R.offset,2);R.offset+=4;tm(R,N,v.offset+16,v.size-16);tm(R,C,C.byteOffset+Z.dataOffset+8,z);tm(R,N,v.offset+v.size,N.byteLength- (v.offset+v.size));v=g.f([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(C=v.next();!C.done;C=v.next())C=g.h(g.c7(N,0,C.value)),R.data.setUint32(C.offset,C.size+z);N=g.c7(R.data,0,1953654136);R.data.setUint32(N.offset+16,2);return R.data}; ozY=function(N){var z=g.c7(N,0,1937011556);if(!z)return null;var v=N.getUint32(z.dataOffset+12);if(v!==1701733217&&v!==1701733238)return null;z=wk(N,z.offset+24+(v===1701733217?28:78),1936289382);if(!z)return null;v=wk(N,z.offset+8,1935894637);if(!v||N.getUint32(v.offset+12)!==1667392371)return null;z=wk(N,z.offset+8,1935894633);if(!z)return null;z=wk(N,z.offset+8,1952804451);if(!z)return null;v=new Uint8Array(16);for(var R=0;R<16;R++)v[R]=N.getInt8(z.offset+16+R);return v}; Y4=function(N,z){this.V=N;this.pos=0;this.start=z||0}; iC=function(N){return N.pos>=N.V.byteLength}; Kw=function(N,z,v){var R=new Y4(v);if(!jA(R,N))return!1;R=aG(R);if(!Qh(R,z))return!1;for(N=0;z;)z>>>=8,N++;z=R.start+R.pos;var C=Lw(R,!0);R=N+(R.start+R.pos-z)+C;R=R>9?Di7(R-9,8):Di7(R-2,1);N=z-N;v.setUint8(N++,236);for(z=0;zv;C++)v=v*256+eA(N),R*=128;return z?v-R:v}; Wv=function(N){var z=Lw(N,!0);N.pos+=z}; O__=function(N){if(!Qh(N,440786851,!0))return null;var z=N.pos;Lw(N,!1);var v=Lw(N,!0)+N.pos-z;N.pos=z+v;if(!Qh(N,408125543,!1))return null;Lw(N,!0);if(!Qh(N,357149030,!0))return null;var R=N.pos;Lw(N,!1);var C=Lw(N,!0)+N.pos-R;N.pos=R+C;if(!Qh(N,374648427,!0))return null;var Z=N.pos;Lw(N,!1);var Y=Lw(N,!0)+N.pos-Z,Q=new Uint8Array(v+12+C+Y),L=new DataView(Q.buffer);Q.set(new Uint8Array(N.V.buffer,N.V.byteOffset+z,v));L.setUint32(v,408125543);L.setUint32(v+4,33554431);L.setUint32(v+8,4294967295); Q.set(new Uint8Array(N.V.buffer,N.V.byteOffset+R,C),v+12);Q.set(new Uint8Array(N.V.buffer,N.V.byteOffset+Z,Y),v+12+C);return Q}; Ja=function(N){var z=N.pos;N.pos=0;var v=1E6;jA(N,[408125543,357149030,2807729])&&(v=lC(N));N.pos=z;return v}; Iiu=function(N,z){var v=N.pos;N.pos=0;if(N.V.getUint8(N.pos)!==160&&!yh(N)||!Qh(N,160))return N.pos=v,NaN;Lw(N,!0);var R=N.pos;if(!Qh(N,161))return N.pos=v,NaN;Lw(N,!0);eA(N);var C=eA(N)<<8|eA(N);N.pos=R;if(!Qh(N,155))return N.pos=v,NaN;R=lC(N);N.pos=v;return(C+R)*z/1E9}; yh=function(N){if(!XPb(N)||!Qh(N,524531317))return!1;Lw(N,!0);return!0}; XPb=function(N){if(N.vp()){if(!Qh(N,408125543))return!1;Lw(N,!0)}return!0}; jA=function(N,z){for(var v=0;v0){var R=yxK(z.substring(v+1));g.Dl(R,function(C,Z){this.set(Z,C)},N); z=z.substring(0,v)}z=Jxu(z);g.Dl(z,function(C,Z){this.set(Z,C)},N)}; u1_=function(N){return N.LO}; cxY=function(N){var z=N.LO.IP(),v=[];g.Dl(N.V,function(C,Z){v.push(Z+"="+C)}); if(!v.length)return z;var R=v.join("&");N=eHK(N.LO)?"&":"?";return z+N+R}; dg=function(N,z){var v=new g.$w(z);(z=v.get("req_id"))&&N.set("req_id",z);g.Dl(N.V,function(R,C){v["set"](C,null)}); return v}; qHu=function(){this.N=this.Z=this.V=this.timedOut=this.started=this.B=this.W=0}; sE=function(N){N.B=(0,g.I)();N.started=0;N.timedOut=0;N.V=0}; Tg=function(N,z){var v=N.started+N.V*4;z&&(v+=N.Z);v=Math.max(0,v-3);return Math.pow(1.6,v)}; FF=function(N,z){N[z]||(N[z]=new qHu);return N[z]}; nw=function(N){this.J=this.L=this.B=this.Z=0;this.Y=this.G=!1;this.V=N;this.W=N.clone()}; M37=function(N,z,v){if(Am(N.V))return!1;var R=FF(v,B7(N.V));if(R.timedOut<1&&R.V<1)return!1;R=R.timedOut+R.V;N=mM(N,z);v=FF(v,B7(N));return v.timedOut+v.V+01?z=z.oB:(v=FF(v,UE(N,N.jM(z,v),z)),z=Math.max(N.B,v.timedOut)+z.aN*(N.Z-N.B)+.25*N.L,z=z>3?1E3*Math.pow(1.6,z-3):0);return z===0?!0:N.J+z<(0,g.I)()}; wPu=function(N,z,v){N.V.set(z,v);N.W.set(z,v);N.N&&N.N.set(z,v)}; NK7=function(N,z,v,R,C){++N.Z;z&&++N.B;B7(v.LO).startsWith("redirector.")&&(N.V=N.W.clone(),delete N.N,R.md&&delete C[B7(N.V)])}; Aa=function(N){return N?(N.itag||"")+";"+(N.lmt||0)+";"+(N.xtags||""):""}; gg=function(N,z,v,R){this.initRange=v;this.indexRange=R;this.V=null;this.Z=!1;this.G=0;this.N=this.RK=this.W=null;this.info=z;this.KV=new nw(N)}; pw=function(N,z){this.start=N;this.end=z;this.length=z-N+1}; k4=function(N){N=N.split("-");var z=Number(N[0]),v=Number(N[1]);if(!isNaN(z)&&!isNaN(v)&&N.length===2&&(N=new pw(z,v),!isNaN(N.start)&&!isNaN(N.end)&&!isNaN(N.length)&&N.length>0))return N}; Pv=function(N,z){return new pw(N,N+z-1)}; zl_=function(N){return N.end==null?{start:String(N.start)}:{start:String(N.start),end:String(N.end)}}; Vh=function(N){if(!N)return new pw(0,0);var z=Number(N.start);N=Number(N.end);if(!isNaN(z)&&!isNaN(N)&&(z=new pw(z,N),z.length>0))return z}; SA=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){R=R===void 0?"":R;this.type=N;this.V=z;this.range=v;this.source=R;this.SM=l;this.clipId=W===void 0?"":W;this.J=[];this.Y="";this.cL=-1;this.qd=this.Vp=0;this.Y=R;this.cL=C>=0?C:-1;this.startTime=Z||0;this.duration=Y||0;this.W=Q||0;this.Z=L>=0?L:this.range?this.range.length:NaN;this.B=this.range?this.W+this.Z===this.range.length:K===void 0?!!this.Z:K;this.range?(this.N=this.startTime+this.duration*this.W/this.range.length,this.L=this.duration*this.Z/this.range.length, this.G=this.N+this.L):vx7(this)}; vx7=function(N){Rlb?(N.N=N.startTime+Math.min(N.duration*N.W/N.V.info.i$,N.duration),N.L=Math.min(N.duration,N.duration*N.Z/N.V.info.i$),N.G=Math.min(N.N+N.L,N.startTime+N.duration)):(N.N=N.startTime,N.L=N.duration,N.G=N.N+N.L)}; Cru=function(N,z,v){var R=!(!z||z.V!==N.V||z.type!==N.type||z.cL!==N.cL);return v?R&&!!z&&(N.range&&z.range?z.range.end===N.range.end:z.range===N.range)&&z.W+z.Z===N.W+N.Z:R}; EE=function(N){return N.type===1||N.type===2}; ha=function(N){return N.type===3||N.type===6}; Hv=function(N,z){return N.V===z.V?N.range&&z.range?N.range.start+N.W+N.Z===z.range.start+z.W:N.cL===z.cL?N.W+N.Z===z.W:N.cL+1===z.cL&&z.W===0&&N.B:!1}; Y0I=function(N,z){return N.cL!==z.cL&&z.cL!==N.cL+1||N.type!==z.type?!1:Hv(N,z)?!0:Math.abs(N.N-z.N)<=1E-6&&N.cL===z.cL?!1:ZNI(N,z)}; ZNI=function(N,z){return Hv(N,z)||Math.abs(N.G-z.N)<=1E-6||N.cL+1===z.cL&&z.W===0&&N.B?!0:!1}; oG=function(N){return N.cL+(N.B?1:0)}; iN7=function(N){N.length===1||g.Iz(N,function(v){return!!v.range}); for(var z=1;z=z.range.start+z.W&&N.range.start+N.W+N.Z<=z.range.start+z.W+z.Z:N.cL===z.cL&&N.W>=z.W&&(N.W+N.Z<=z.W+z.Z||z.B)}; Wp7=function(N,z){return N.V!==z.V?!1:N.type===4&&z.type===3&&N.V.eN()?(N=N.V.MV(N),Mj(N,function(v){return Wp7(v,z)})):N.cL===z.cL&&!!z.Z&&z.W+z.Z>N.W&&z.W+z.Z<=N.W+N.Z}; bC=function(N,z){var v=z.cL;N.Y="updateWithSegmentInfo";N.cL=v;if(N.startTime!==z.startTime||N.duration!==z.duration)N.startTime=z.startTime+N.Vp,N.duration=z.duration,vx7(N)}; ta=function(N,z){var v=this;this.TU=N;this.N=this.V=null;this.B=this.AJ=NaN;this.jM=this.requestId=null;this.Oi={Z78:function(){return v.range}}; this.KV=N[0].V.KV;this.W=z||"";this.TU[0].range&&this.TU[0].Z>0&&(je7(N)?(this.range=iN7(N),this.Z=this.range.length):(this.range=this.TU[this.TU.length-1].range,this.Z=ajY(N)))}; OE=function(N){return!EE(N.TU[N.TU.length-1])}; IG=function(N){return N.TU[N.TU.length-1].type===4}; g.XF=function(N,z,v){v=N.jM===null?N.KV.jM(z,v,N.TU[0].type):N.jM;if(N.V){z=v?pf(N.V,z.Wp):N.V;var R=new fw(z);R.get("alr")||R.set("alr","yes");N.W&&rxm(R,N.W)}else/http[s]?:\/\//.test(N.W)?R=new fw(new g.$w(N.W)):(R=$4(N.KV,v,z),N.W&&rxm(R,N.W));(z=N.range)?R.set("range",z.toString()):N.TU[0].V.VR()&&N.TU.length===1&&N.TU[0].W&&R.set("range",N.TU[0].W+"-");N.requestId&&R.set("req_id",N.requestId);isNaN(N.AJ)||R.set("headm",N.AJ.toString());isNaN(N.B)||R.set("mffa",N.B+"ms");N.urlParams&&g.Dl(N.urlParams, function(C,Z){R.set(Z,C)}); return R}; GS2=function(N){if(N.range)return N.Z;N=N.TU[0];return Math.round(N.L*N.V.info.i$)}; xab=function(N,z){return Math.max(0,N.TU[0].N-z)}; rg=function(N,z,v,R,C,Z){Z=Z===void 0?0:Z;gg.call(this,N,z,R,void 0);this.B=v;this.lY=Z;this.index=C||new g.VN}; elf=function(N,z,v,R,C){this.cL=N;this.startSecs=z;this.K5=v;this.V=R||NaN;this.W=C||NaN}; uC=function(N,z,v){for(;N;N=N.parentNode)if(N.attributes&&(!v||N.nodeName===v)){var R=N.getAttribute(z);if(R)return R}return""}; cv=function(N,z){for(;N;N=N.parentNode){var v=N.getElementsByTagName(z);if(v.length>0)return v[0]}return null}; JCK=function(N){if(!N)return 0;var z=N.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return z?(Number(z[2])|0)*3600+(Number(z[4])|0)*60+(Number(z[6])|0):Number(N)|0}; yCK=function(N){return N.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?N+"Z":N}; qy=function(){this.V=[];this.W=null;this.G=0;this.Z=[];this.B=!1;this.L="";this.N=-1}; fjK=function(N){var z=N.Z;N.Z=[];return z}; daO=function(){this.N=[];this.V=null;this.W={};this.Z={}}; nxx=function(N,z){var v=[];z=Array.from(z.getElementsByTagName("SegmentTimeline"));z=g.f(z);for(var R=z.next();!R.done;R=z.next()){R=R.value;var C=R.parentNode.parentNode,Z=null;C.nodeName==="Period"?Z=seu(N):C.nodeName==="AdaptationSet"?(C=C.getAttribute("id")||C.getAttribute("mimetype")||"",Z=TK2(N,C)):C.nodeName==="Representation"&&(C=C.getAttribute("id")||"",Z=FpK(N,C));if(Z==null)return;Z.update(R);g.nm(v,fjK(Z))}g.nm(N.N,v);B_v(N.N,function(Y){return Y.startSecs*1E3+Y.V})}; maI=function(N){N.V&&(N.V.V=[]);g.Dl(N.W,function(z){z.V=[]}); g.Dl(N.Z,function(z){z.V=[]})}; seu=function(N){N.V||(N.V=new qy);return N.V}; TK2=function(N,z){N.W[z]||(N.W[z]=new qy);return N.W[z]}; FpK=function(N,z){N.Z[z]||(N.Z[z]=new qy);return N.Z[z]}; wg=function(N){var z=N===void 0?{}:N;N=z.lY===void 0?0:z.lY;var v=z.ZW===void 0?!1:z.ZW;var R=z.S_===void 0?0:z.S_;var C=z.PH===void 0?0:z.PH;var Z=z.qo===void 0?Infinity:z.qo;var Y=z.Ys===void 0?0:z.Ys;var Q=z.pG===void 0?!1:z.pG;z=z.Jt===void 0?!1:z.Jt;g.VN.call(this);this.s5=this.PS=-1;this.Ry=N;this.S_=R;this.ZW=v;this.PH=C;this.qo=Z;this.Ys=Y;((this.pG=Q)||isFinite(Z)&&this.qo>0)&&v&&My&&(this.W=!1,this.Z="postLive");this.Jt=z}; NX=function(N,z){return k5(N.segments,function(v){return z-v.cL})}; zK=function(N,z,v){v=v===void 0?{}:v;rg.call(this,N,z,"",void 0,void 0,v.lY||0);this.index=new wg(v)}; vc=function(N,z,v){gg.call(this,N,z);this.B=v;N=this.index=new g.VN;N.W=!1;N.Z="d"}; $a_=function(N,z,v){var R=N.index.dF(z),C=N.index.getStartTime(z),Z=N.index.getDuration(z);v?Z=v=0:v=N.info.i$*Z;return new ta([new SA(3,N,void 0,"otfCreateRequestInfoForSegment",z,C,Z,0,v)],R)}; UaK=function(N,z){if(!N.index.isLoaded()){var v=[],R=z.N;z=z.B.split(",").filter(function(l){return l.length>0}); for(var C=0,Z=0,Y=0,Q=/^(\d+)/,L=/r=(\d+)/,K=0;K0&&(C.V=Math.min(C.V+Y,10),C.W=Z);C.V>0?(C.V--,C=!0):C=!1;if(C)typeof R==="function"&&(R=R()),console.log("plyr."+z,R);else{var Q;R=((Q=Prb.get(z))!=null?Q:0)+1;Prb.set(z,R);R%100===1&&console.warn("plyr","plyr."+z+" is chatty, dropping logs.")}}}; kSf=function(){this.V=10;this.W=Date.now()}; ZC=function(N,z){this.info=N;this.V=z;this.W=null;this.N=this.Z=-1;this.timestampOffset=0;this.isLocked=this.G=!1;this.B=this.info.V.Bu()&&!this.info.W}; Vxu=function(N,z){N.V.getLength();z=Math.min(z,N.info.Z);var v=N.V.split(z),R=v.EA;v=new ZC(new SA(N.info.type,N.info.V,N.info.range,N.info.Y,N.info.cL,N.info.startTime,N.info.duration,N.info.W,z,!1,N.info.SM,N.info.clipId),v.x_);v.N=N.N;v.Z=N.Z;z=new ZC(new SA(N.info.type,N.info.V,N.info.range,N.info.Y,N.info.cL,N.info.startTime,N.info.duration,N.info.W+z,N.info.Z-z,N.info.B,N.info.SM,N.info.clipId),R);z.N=N.N;z.Z=N.Z;return[v,z]}; g.YF=function(N,z,v,R){v=v===void 0?!1:v;R=R===void 0?0:R;if(N.isLocked||z.isLocked||!Hv(N.info,z.info)||N.info.B)return null;if(R){if(N.V.getLength()+z.V.getLength()>R)return null}else if(v&&(v=N.V,R=z.V,v=!(R.qH.length?nLb(v,R.qH[0]):1)),v)return null;v=new SA(N.info.type,N.info.V,N.info.range,N.info.Y,N.info.cL,N.info.startTime,N.info.duration,N.info.W,N.info.Z,N.info.B,N.info.SM,N.info.clipId);R=z.info;v.Z+=R.Z;v.range&&(v.L+=R.L);v.G=R.G;v.B=R.B;R=new eo;J2(R,N.V);J2(R,z.V);v=new ZC(v,R);v.W!= null&&z.W!=null&&(new g.Ry("dash")).V(414627957,"merged slice emsg overridden; prev: "+v.W.o9()+" next: "+z.W.o9());v.W=z.W||N.W;v.Z=N.Z!==-1?N.Z:z.Z;v.N=N.N!==-1?N.N:z.N;return v}; g.iz=function(N){g.qi(N.info.V.info)||N.info.V.info.qF();if(N.Z!==-1)return N.Z;if(N.W&&BpO(N.W))return N.Z=BpO(N.W),N.Z;if(g.qi(N.info.V.info)){var z=N.VT();for(var v=N.info.V.V,R=NaN,C=NaN,Z=0;Ny(z,Z);){var Y=zg(z,Z);Y.type===1936286840?C=Y.data.getUint32(Y.dataOffset+8):Y.type===1836476516?C=g.qc(Y):Y.type===1952867444&&isNaN(R)&&(R=g.RG(Y));Z=vv(Y.type)?Z+8:Z+Y.size}!C&&v&&(C=Mc(v));z=R/C}else z=new Y4(N.VT()),v=N.B?z:new Y4(new DataView(N.info.V.V.buffer)),R=Ja(v),v=z.pos,z.pos=0,yh(z)?Qh(z, 231)?(R=lC(z)*R/1E9,z.pos=v,z=R):(z.pos=v,z=NaN):(z.pos=v,z=NaN);N.Z=z||N.info.N;return N.Z}; Exb=function(N,z){N.timestampOffset>0&&(z-=N.timestampOffset);var v=g.iz(N)+z;S02(N,v);N.timestampOffset=z}; S02=function(N,z){g.qi(N.info.V.info)||N.info.V.info.qF();N.Z=z;if(g.qi(N.info.V.info)){var v=N.VT();N=N.info.V.V;for(var R=NaN,C=NaN,Z=0;Ny(v,Z);){var Y=zg(v,Z);isNaN(R)&&(Y.type===1936286840?R=Y.data.getUint32(Y.dataOffset+8):Y.type===1836476516&&(R=g.qc(Y)));if(Y.type===1952867444){!R&&N&&(R=Mc(N));var Q=g.RG(Y);isNaN(C)&&(C=Math.round(z*R)-Q);var L=Y;Q+=C;if(L.data.getUint8(L.dataOffset)){var K=L.data;L=L.dataOffset+4;K.setUint32(L,Math.floor(Q/4294967296));K.setUint32(L+4,Q&4294967295)}else L.data.setUint32(L.dataOffset+ 4,Q)}Z=vv(Y.type)?Z+8:Z+Y.size}return!0}v=new Y4(N.VT());N=N.B?v:new Y4(new DataView(N.info.V.V.buffer));R=Ja(N);N=v.pos;v.pos=0;if(yh(v)&&Qh(v,231))if(C=Lw(v,!0),z=Math.floor(z*1E9/R),Math.ceil(Math.log(z)/Math.log(2)/8)>C)z=!1;else{for(R=C-1;R>=0;R--)v.V.setUint8(v.pos+R,z&255),z>>>=8;v.pos=N;z=!0}else z=!1;return z}; ay=function(N,z){z=z===void 0?!1:z;var v=j7(N);N=z?0:N.info.L;return v||N}; j7=function(N){g.qi(N.info.V.info)||N.info.V.info.qF();if(N.W&&N.info.type===6)return N.W.lY;if(g.qi(N.info.V.info)){var z=N.VT();var v=0;z=g.ZO(z,1936286840);z=g.f(z);for(var R=z.next();!R.done;R=z.next())R=SHx(R.value),v+=R.lT[0]/R.timescale;v=v||NaN;if(!(v>=0))a:{v=N.VT();z=N.info.V.V;for(var C=R=0,Z=0;Ny(v,R);){var Y=zg(v,R);if(Y.type===1836476516)C=g.qc(Y);else if(Y.type===1836019558){!C&&z&&(C=Mc(z));if(!C){v=NaN;break a}var Q=g.h(wk(Y.data,Y.dataOffset,1953653094)),L=Q;Q=C;var K=g.h(wk(L.data, L.dataOffset,1952868452));L=g.h(wk(L.data,L.dataOffset,1953658222));var l=H7(K);H7(K);l&2&&H7(K);K=l&8?H7(K):0;var W=H7(L),G=W&1;l=W&4;var x=W&256,e=W&512,d=W&1024;W&=2048;var T=oS(L);G&&H7(L);l&&H7(L);for(var m=G=0;m2048?"":z.indexOf("https://")===0?z:""}; GK=function(N,z,v){z.match(cCu);return N(z,v).then(function(R){var C=g.ukK(R.xhr);return C?GK(N,C,v):R.xhr})}; y3=function(N,z,v){N=N===void 0?"":N;z=z===void 0?null:z;v=v===void 0?!1:v;g.jJ.call(this);var R=this;this.sourceUrl=N;this.isLivePlayback=v;this.UT=this.duration=0;this.isPremiere=this.pG=this.N=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.qo=this.PH=0;this.isOtf=this.Hb=!1;this.tO=(0,g.I)();this.qd=Infinity;this.V={};this.Z=new Map;this.state=this.pU=0;this.timeline=null;this.isManifestless=!1;this.PL=[];this.G=null;this.Rd=0;this.B="";this.Id=NaN;this.K0=this.CV=this.timestampOffset=this.L= 0;this.ip=this.Lf=NaN;this.UR=0;this.BL=this.J=!1;this.S8=[];this.vL={};this.Vp=NaN;this.Oi={HfS:function(Q){xF(R,Q)}}; var C;this.xT=(C=z)==null?void 0:C.j8("html5_use_network_error_code_enums");q0u=!!z&&z.j8("html5_modern_vp9_mime_type");var Z;e7=!((Z=z)==null||!Z.j8("html5_enable_flush_during_seek"))&&g.tr();var Y;JI=!((Y=z)==null||!Y.j8("html5_enable_reset_audio_decoder"))&&g.tr()}; Mxu=function(N){return g.OZ(N.V,function(z){return!!z.info.video&&z.info.video.qualityOrdinal>=2160})}; KTx=function(N){return g.OZ(N.V,function(z){return!!z.info.video&&z.info.video.isHdr()})}; ff=function(N){return g.OZ(N.V,function(z){return!!z.info.CG})}; g.wEY=function(N){return g.OZ(N.V,function(z){return vE(z.info.mimeType)})}; NrK=function(N){return g.OZ(N.V,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR":!1})}; zTf=function(N){return g.OZ(N.V,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; vcu=function(N){return g.OZ(N.V,function(z){return z.info.video?z.info.video.projectionType==="MESH":!1})}; RTK=function(N){return g.OZ(N.V,function(z){return z.info.video?z.info.video.stereoLayout===1:!1})}; CEY=function(N){return P72(N.V,function(z){return z.info.video?z.r_():!0})}; e$=function(N){return g.OZ(N.V,function(z){return Am(z.KV.V)})}; xF=function(N,z){N.V[z.info.id]=z;N.Z.set(Aa(g.wp(z.info,N.Hb)),z)}; sg=function(N,z,v){v=v===void 0?0:v;var R=N.mimeType||"",C=N.itag;var Z=N.xtags;C=C?C.toString():"";Z&&(C+=";"+Z);Z=C;if(zS(R)){var Y=N.width||640;C=N.height||360;var Q=N.fps,L=N.qualityLabel,K=N.colorInfo,l=N.projectionType,W;N.stereoLayout&&(W=ZgY[N.stereoLayout]);var G=XEu(N)||void 0;if(K==null?0:K.primaries)var x=Ywx[K.primaries]||void 0;Y=new HP(Y,C,Q,l,W,void 0,L,G,x);R=fr(R,Y,bi[N.itag||""]);e7&&(R+="; enableflushduringseek=true");JI&&(R+="; enableresetaudiodecoder=true")}var e;if(Na(R)){var d= N.audioSampleRate;W=N.audioTrack;d=new S3(d?+d:void 0,N.audioChannels,N.spatialAudioType,N.isDrc,N.loudnessDb,N.trackAbsoluteLoudnessLkfs,N.audioQuality||"AUDIO_QUALITY_UNKNOWN",N.isVb);W&&(x=W.displayName,C=W.id,W=W.audioIsDefault,x&&(e=new g.Wc(x,C||"",!!W)))}var T;N.captionTrack&&(L=N.captionTrack,W=L.displayName,x=L.vssId,C=L.languageCode,Q=L.kind,L=L.id,W&&x&&C&&(T=new ONI(W,x,C,Q,N.xtags,L)));W=Number(N.bitrate)/8;x=Number(N.contentLength);C=Number(N.lastModified);L=N.drmFamilies;Q=N.type;v= v&&x?x/v:0;N=Number(N.approxDurationMs);if(z&&L){var m={};L=g.f(L);for(K=L.next();!K.done;K=L.next())(K=dB[K.value])&&(m[K]=z[K])}return new tx(Z,R,{audio:d,video:Y,u$:e,CG:m,i$:W,rZ:v,contentLength:x,lastModified:C,captionTrack:T,streamType:Q,approxDurationMs:N})}; TK=function(N,z,v){v=v===void 0?0:v;var R=N.type;var C=N.itag;var Z=N.xtags;Z&&(C=N.itag+";"+Z);if(zS(R)){var Y=(N.size||"640x360").split("x");Y=new HP(+Y[0],+Y[1],+N.fps,N.projection_type,+N.stereo_layout,void 0,N.quality_label,N.eotf,N.primaries);R=fr(R,Y,bi[N.itag]);e7&&(R+="; enableflushduringseek=true");JI&&(R+="; enableresetaudiodecoder=true")}var Q;if(Na(R)){var L=new S3(+N.audio_sample_rate||void 0,+N.audio_channels||0,N.spatial_audio_type,!!N.drc);N.name&&(Q=new g.Wc(N.name,N.audio_track_id, N.isDefault==="1"))}var K;N.caption_display_name&&N.caption_vss_id&&N.caption_language_code&&(K=new ONI(N.caption_display_name,N.caption_vss_id,N.caption_language_code,N.caption_kind,N.xtags,N.caption_id));Z=Number(N.bitrate)/8;var l=Number(N.clen),W=Number(N.lmt);v=v&&l?l/v:0;if(z&&N.drm_families){var G={};for(var x=g.f(N.drm_families.split(",")),e=x.next();!e.done;e=x.next())e=e.value,G[e]=z[e]}return new tx(C,R,{audio:L,video:Y,u$:Q,CG:G,i$:Z,rZ:v,contentLength:l,lastModified:W,captionTrack:K, streamType:N.stream_type,approxDurationMs:Number(N.approx_duration_ms)})}; igO=function(N){return Mj(N,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; job=function(N){return Mj(N,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; aoI=function(N,z){return N.timeline?$5(N.timeline.N,z):N.PL.length?$5(N.PL,z):[]}; Fn=function(N,z,v){z=z===void 0?"":z;v=v===void 0?"":v;N=new g.$w(N,!0);N.set("alr","yes");v&&(v=kWu(decodeURIComponent(v)),N[a[11]](z,encodeURIComponent(v)));return N}; lof=function(N,z){var v=uC(z,"id");v=v.replace(":",";");var R=uC(z,"mimeType"),C=uC(z,"codecs");R=C?R+'; codecs="'+C+'"':R;C=Number(uC(z,"bandwidth"))/8;var Z=Number(cv(z,"BaseURL").getAttribute(N.B+":contentLength")),Y=N.duration&&Z?Z/N.duration:0;if(zS(R)){var Q=Number(uC(z,"width"));var L=Number(uC(z,"height")),K=Number(uC(z,"frameRate")),l=QoY(uC(z,N.B+":projectionType"));a:switch(uC(z,N.B+":stereoLayout")){case "layout_left_right":var W=1;break a;case "layout_top_bottom":W=2;break a;default:W= 0}Q=new HP(Q,L,K,l,W)}if(Na(R)){var G=Number(uC(z,"audioSamplingRate"));var x=Number(uC(z.getElementsByTagName("AudioChannelConfiguration")[0],"value"));L=LWm(uC(z,N.B+":spatialAudioType"));G=new S3(G,x,L);a:{x=uC(z,"lang")||"und";if(L=cv(z,"Role"))if(l=uC(L,"value")||"",g.c$(KWI,l)){L=x+"."+KWI[l];K=l==="main";N=uC(z,N.B+":langName")||x+" - "+l;x=new g.Wc(N,L,K);break a}x=void 0}}if(z=cv(z,"ContentProtection"))if(z.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var e={};for(z= z.firstChild;z!=null;z=z.nextSibling)z instanceof Element&&/SystemURL/.test(z.nodeName)&&(N=z.getAttribute("type"),L=z.textContent,N&&L&&(e[N]=L.trim()))}else e=void 0;return new tx(v,R,{audio:G,video:Q,u$:x,CG:e,i$:C,rZ:Y,contentLength:Z})}; QoY=function(N){switch(N){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"}}; LWm=function(N){switch(N){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"}}; GYu=function(N,z){z=z===void 0?"":z;N.state=1;N.tO=(0,g.I)();return rCu(z||N.sourceUrl).then(function(v){if(!N.HL()){N.pU=v.status;v=v.responseText;var R=new DOMParser;v=Wr(R,B2f(v),"text/xml").getElementsByTagName("MPD")[0];N.qd=JCK(uC(v,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(v.attributes){R=g.f(v.attributes);for(var C=R.next();!C.done;C=R.next())if(C=C.value,C.value==="http://youtube.com/yt/2012/10/10"){R=C.name.split(":")[1];break b}}R=""}N.B=R;N.isLive=N.qd=N.qd}; eTK=function(N){N.G&&N.G.stop()}; WW_=function(N){var z=N.qd;isFinite(z)&&(nr(N)?N.refresh():(z=Math.max(0,N.tO+z-(0,g.I)()),N.G||(N.G=new g.cn(N.refresh,z,N),g.b(N,N.G)),N.G.start(z)))}; JN7=function(N){N=N.V;for(var z in N){var v=N[z].index;if(v.isLoaded())return v.YH()+1}return 0}; mr=function(N){return N.CV?N.CV-(N.L||N.timestampOffset):0}; $F=function(N){return N.K0?N.K0-(N.L||N.timestampOffset):0}; Ug=function(N){if(!isNaN(N.Id))return N.Id;var z=N.V,v;for(v in z){var R=z[v].index;if(R.isLoaded()&&!vE(z[v].info.mimeType)){z=0;for(v=R.uf();v<=R.YH();v++)z+=R.getDuration(v);z/=R.QH();z=Math.round(z/.5)*.5;R.QH()>10&&(N.Id=z);return z}if(N.isLive&&(R=z[v],R.lY))return R.lY}return NaN}; yNI=function(N,z){N=S2u(N.V,function(R){return R.index.isLoaded()}); if(!N)return NaN;N=N.index;var v=N.vP(z);return N.getStartTime(v)===z?z:v=0&&C.segments.splice(Z,1)}}}; dQU=function(N){for(var z in N.V)vE(N.V[z].info.mimeType)||FTO(N.V[z].index,Infinity)}; gB=function(N,z,v){for(var R in N.V){var C=N.V[R].index,Z=z,Y=v;C.ZW&&(Z&&(C.PS=Math.max(C.PS,Z)),Y&&(C.s5=Math.max(C.s5||0,Y)))}v&&(N.Vp=v/1E3)}; sou=function(N){N.K0=0;N.CV=0;N.UR=0}; pr=function(N){return N.BL&&N.isManifestless?N.isLiveHeadPlayable:N.isLive}; fr=function(N,z,v){kF===null&&(kF=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(q0u&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return kF||v!=="9"&&v!=="("?kF||v!=="9h"&&v!=="(h"||(N='video/webm; codecs="vp9.2"'):N='video/webm; codecs="vp9"',N;if(!kF&&!Pc||N!=='video/webm; codecs="vp9"'&&N!=='video/webm; codecs="vp9.2"')return N; v="00";var R="08",C="01",Z="01",Y="01";N==='video/webm; codecs="vp9.2"'&&(v="02",R="10",z.primaries==="bt2020"&&(Y=C="09"),z.V==="smpte2084"&&(Z="16"),z.V==="arib-std-b67"&&(Z="18"));return'video/webm; codecs="'+["vp09",v,"51",R,"01",C,Z,Y,"00"].join(".")+'"'}; S7=function(N,z,v){N=""+N+(z>49?"p60":z>32?"p48":"");z=IJ()[N];if(z!=null&&z>0)return z;z=V3.get(N);if(z!=null&&z>0)return z;v=v==null?void 0:v.get(N);return v!=null&&v>0?v:8192}; Tr2=function(N){this.bS=N;this.Dx=this.OV=this.Rd=this.B=this.N=this.vL=this.BL=this.qd=!1;this.L=this.G=0;this.xT=!1;this.Vp=!0;this.S8=!1;this.Ai=0;this.nA=this.PL=!1;this.J0=!0;this.tO=this.Id=!1;this.V={};this.A0=this.yh=this.disableAv1=this.kJ=this.xH=this.ET=this.gW=this.W=this.Y=!1;this.RP=this.bS.X("html5_disable_aac_preference");this.UR=Infinity;this.K0=0;this.YJ=this.bS.LV();this.zE=this.bS.experiments.j8("html5_enable_vp9_fairplay");this.Bc=this.bS.X("html5_force_av1_for_testing");this.UT= g.LM(this.bS.experiments,"html5_av1_ordinal_cap");this.gx=this.bS.X("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.c5=this.bS.X("html5_account_onesie_format_selection_during_format_filter");this.i$=g.LM(this.bS.experiments,"html5_max_byterate");this.CV=this.bS.X("html5_enable_iamf_audio");this.Fy=this.bS.experiments.j8("html5_allow_capability_merge");this.Ui=this.bS.X("html5_enable_encrypted_av1")}; liU=function(N){if(N.BL)return["f"];if(g.Dz("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var z=["9h","9","h","8"];N.Ui&&z.push("1e");z=z.concat(["(h","(","H","*"]);N.PL&&(z.unshift("1"),z.unshift("1h"));N.OV&&z.unshift("h");N.J&&(z=(FWU[N.J]||[N.J]).concat(z));return z}; YHx=function(N){var z=["o","a","A"];N.K0===1&&(N.N&&(z=["mac3","MAC3"].concat(z)),N.B&&(z=["meac3","MEAC3"].concat(z)),N.CV&&(z=["i","I"].concat(z)));N.qd&&(z=["so","sa"].concat(z));!N.Dx||N.Rd||N.Z||N.RP||z.unshift("a");N.Z&&(z=(FWU[N.Z]||[N.Z]).concat(z));return z}; Eg=function(N,z,v,R){z=z===void 0?{}:z;if(R===void 0?0:R)return z.disabled=1,0;if(nf(N.B,m_.AV1_CODECS)&&nf(N.B,m_.HEIGHT)&&nf(N.B,m_.BITRATE))return z.isCapabilityUsable=1,8192;try{var C=Dh7();if(C)return z.localPref=C}catch(Q){}R=1080;C=navigator.hardwareConcurrency;C<=2&&(R=480);z.coreCount=C;if(C=g.LM(N.experiments,"html5_default_av1_threshold"))R=z["default"]=C;!N.X("html5_disable_av1_arm_check")&&lFf()&&(z.isArm=1,R=240);if(N=N.B.Vp)z.mcap=N,R=Math.max(R,N);if(v){var Z,Y;if(N=(Z=v.videoInfos.find(function(Q){return rp(Q)}))== null?void 0:(Y=Z.W)==null?void 0:Y.powerEfficient)R=8192,z.isEfficient=1; v=v.videoInfos[0].video;Z=Math.min(S7("1",v.fps),S7("1",30));z.perfCap=Z;R=Math.min(R,Z);v.isHdr()&&!N&&(z.hdr=1,R*=.75)}else v=S7("1",30),z.perfCap30=v,R=Math.min(R,v),v=S7("1",60),z.perfCap60=v,R=Math.min(R,v);return z.av1Threshold=R}; hI=function(N,z,v,R){this.flavor=N;this.keySystem=z;this.W=v;this.experiments=R;this.V={};this.S8=this.keySystemAccess=null;this.Ev=this.TX=-1;this.zD=null;this.Z=!!R&&R.j8("edge_nonprefixed_eme");R&&R.j8("html5_enable_vp9_fairplay")}; oy=function(N){return N.Z?!1:!N.keySystemAccess&&!!Hc()&&N.keySystem==="com.microsoft.playready"}; DC=function(N){return N.keySystem==="com.microsoft.playready"}; bz=function(N){return!N.keySystemAccess&&!!Hc()&&N.keySystem==="com.apple.fps.1_0"}; tI=function(N){return N.keySystem==="com.youtube.fairplay"}; Og=function(N){return N.keySystem==="com.youtube.fairplay.sbdl"}; g.Iy=function(N){return N.flavor==="fairplay"}; Hc=function(){var N=window,z=N.MSMediaKeys;Xb()&&!z&&(z=N.WebKitMediaKeys);return z&&z.isTypeSupported?z:null}; rB=function(N){return navigator.requestMediaKeySystemAccess?g.gp&&!g.tr()?n6("45"):g.Xi||g.Wl?N.j8("edge_nonprefixed_eme"):g.Xn?n6("47"):g.yl&&N.j8("html5_enable_safari_fairplay")?!1:!0:!1}; ncf=function(N,z,v,R){var C=OF(),Z=(v=C||v&&Xb())?["com.youtube.fairplay"]:["com.widevine.alpha"];z&&Z.unshift("com.youtube.widevine.l3");C&&R&&Z.unshift("com.youtube.fairplay.sbdl");return v?Z:N?[].concat(g.U(Z),g.U(uz.playready)):[].concat(g.U(uz.playready),g.U(Z))}; cc=function(N,z,v,R,C){R=R===void 0?!1:R;g.H.call(this);this.bS=z;this.useCobaltWidevine=R;this.WL=C;this.W=[];this.Z={};this.V={};this.callback=null;this.B=!1;this.N=[];this.initialize(N,!v)}; $Q7=function(N,z){N.callback=z;N.N=[];rB(N.bS.experiments)?qX(N):mQu(N)}; qX=function(N){if(!N.HL())if(N.W.length===0)N.callback(N.N);else{var z=N.W[0],v=N.Z[z],R=UQx(N,v);if(MX&&MX.keySystem===z&&MX.RVl===JSON.stringify(R))N.WL("remksa",{re:!0}),BrK(N,v,MX.keySystemAccess);else{var C,Z;N.WL("remksa",{re:!1,ok:(Z=(C=MX)==null?void 0:C.keySystem)!=null?Z:""});MX=void 0;navigator.requestMediaKeySystemAccess(z,R).then(mJ(function(Y){BrK(N,v,Y,R)}),mJ(function(){N.B=!N.B&&N.Z[N.W[0]].flavor==="widevine"; N.B||N.W.shift();qX(N)}))}}}; BrK=function(N,z,v,R){if(!N.HL()){R&&(MX={keySystem:z.keySystem,keySystemAccess:v,RVl:JSON.stringify(R)});z.keySystemAccess=v;if(DC(z)){v=BP();R=g.f(Object.keys(N.V[z.flavor]));for(var C=R.next();!C.done;C=R.next())C=C.value,z.V[C]=!!v.canPlayType(C)}else{v=z.keySystemAccess.getConfiguration();if(v.audioCapabilities)for(R=g.f(v.audioCapabilities),C=R.next();!C.done;C=R.next())ANv(N,z,C.value);if(v.videoCapabilities)for(v=g.f(v.videoCapabilities),R=v.next();!R.done;R=v.next())ANv(N,z,R.value)}N.N.push(z); N.useCobaltWidevine||N.X("html5_enable_vp9_fairplay")&&Og(z)?(N.W.shift(),qX(N)):N.callback(N.N)}}; ANv=function(N,z,v){N.X("log_robustness_for_drm")?z.V[v.contentType]=v.robustness||!0:z.V[v.contentType]=!0}; UQx=function(N,z){var v={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(N.X("html5_enable_vp9_fairplay")&&tI(z))return v.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),v.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[v];DC(z)&&(v.initDataTypes=["keyids","cenc"]);for(var R=g.f(Object.keys(N.V[z.flavor])),C=R.next();!C.done;C=R.next()){C=C.value;var Z=C.indexOf("audio/")===0,Y=Z?v.audioCapabilities:v.videoCapabilities;z.flavor!== "widevine"||N.B?Y.push({contentType:C}):Z?Y.push({contentType:C,robustness:"SW_SECURE_CRYPTO"}):(g.gp&&g.Dz("windows nt")&&!N.X("html5_drm_enable_moho")||Y.push({contentType:C,robustness:"HW_SECURE_ALL"}),Z=C,N.bS.B.Z&&C.includes("vp09")&&(Z=C+"; experimental=allowed"),Y.push({contentType:Z,robustness:"SW_SECURE_DECODE"}),g.wB(N.bS)==="MWEB"&&(wm()||bQ())&&(N.WL("swcrypto",{}),Y.push({contentType:C,robustness:"SW_SECURE_CRYPTO"})))}return[v]}; mQu=function(N){if(Hc()&&(g.yl||uQ))N.N.push(new hI("fairplay","com.apple.fps.1_0","",N.bS.experiments));else{var z=gcO(),v=g.G1(N.W,function(R){var C=N.Z[R],Z=!1,Y=!1,Q;for(Q in N.V[C.flavor])z(Q,R)&&(C.V[Q]=!0,Z=Z||Q.indexOf("audio/")===0,Y=Y||Q.indexOf("video/")===0);return Z&&Y}); v&&N.N.push(N.Z[v]);N.W=[]}N.callback(N.N)}; gcO=function(){var N=Hc();if(N){var z=N.isTypeSupported;return function(R,C){return z(C,R)}}var v=BP(); return v&&(v.addKey||v.webkitAddKey)?function(R,C){return!!v.canPlayType(R,C)}:function(){return!1}}; pRO=function(N){this.experiments=N;this.V=2048;this.N=0;this.Vp=(this.L=this.X("html5_streaming_resilience"))?.5:.25;var z=z===void 0?0:z;this.Z=g.LM(this.experiments,"html5_media_time_weight_prop")||z;this.qd=g.LM(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.J=(this.B=this.experiments.j8("html5_consider_end_stall"))&&N9;this.W=this.experiments.j8("html5_measure_max_progress_handling");this.Y=this.X("html5_treat_requests_pre_elbow_as_metadata");this.G=this.X("html5_media_time_weight")|| !!this.Z;this.X("html5_sabr_live_audio_early_return_fix")&&N9&&(this.V=65536)}; kYf=function(N,z){this.V=void 0;this.experimentIds=N?N.split(","):[];this.flags=wb(z||"","&");N={};z=g.f(this.experimentIds);for(var v=z.next();!v.done;v=z.next())N[v.value]=!0;this.experiments=N}; g.LM=function(N,z){N=N.flags[z];JSON.stringify(N);return Number(N)||0}; zx=function(N,z){return(N=N.flags[z])?N.toString():""}; PEO=function(N){if(N=N.flags.html5_web_po_experiment_ids)if(N=N.replace(/\[ *(.*?) *\]/,"$1"))return N.split(",").map(Number);return[]}; Viu=function(N){if(N.V)return N.V;if(N.experimentIds.length<=1)return N.V=N.experimentIds,N.V;var z=[].concat(g.U(N.experimentIds)).map(function(R){return Number(R)}); z.sort();for(var v=z.length-1;v>0;--v)z[v]-=z[v-1];N.V=z.map(function(R){return R.toString()}); N.V.unshift("v1");return N.V}; EcY=function(N){return SwK.then(N)}; vi=function(N,z,v){this.experiments=N;this.K0=z;this.Rd=v===void 0?!1:v;this.J=!!g.qx("cast.receiver.platform.canDisplayType");this.Y={};this.qd=!1;this.N=new Map;this.L=!0;this.W=this.Z=!1;this.V=new Map;this.Vp=0;this.PL=this.experiments.j8("html5_disable_vp9_encrypted");this.B=this.experiments.j8("html5_enable_encrypted_av1");N=g.qx("cast.receiver.platform.getValue");if(z=!this.J&&N)z=N("max-video-resolution-vpx");this.G=z||null;hTu(this);this.Z=!!(OF()&&o0()>=21)}; xiY=function(N,z,v){v=v===void 0?1:v;var R=z.itag;if(R==="0")return!0;var C=z.mimeType;if(z.JO==="1e"&&!N.B)return"dav1enc";if(rp(z)&&N.qd)return"dav1";if(z.video&&(z.video.isHdr()||z.video.primaries==="bt2020")&&!(nf(N,m_.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(R==="338"&&!(g.gp?n6(53):g.Xn&&n6(64)))return"dopus";var Z=v;Z=Z===void 0?1: Z;v={};z.video&&(z.video.width&&(v[m_.WIDTH.name]=z.video.width),z.video.height&&(v[m_.HEIGHT.name]=z.video.height),z.video.fps&&(v[m_.FRAMERATE.name]=z.video.fps*Z),z.video.V&&(v[m_.EOTF.name]=z.video.V),z.i$&&(v[m_.BITRATE.name]=z.i$*8*Z),z.JO==="("&&(v[m_.CRYPTOBLOCKFORMAT.name]="subsample"),z.video.projectionType==="EQUIRECTANGULAR"||z.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z.video.projectionType==="MESH")&&(v[m_.DECODETOTEXTURE.name]="true");z.audio&&z.audio.numChannels&& (v[m_.CHANNELS.name]=z.audio.numChannels);N.Z&&OH(z)&&(v[m_.EXPERIMENTAL.name]="allowed");Z=g.f(Object.keys(m_));for(var Y=Z.next();!Y.done;Y=Z.next()){Y=m_[Y.value];var Q;if(Q=v[Y.name])if(Q=!(Y===m_.EOTF&&z.mimeType.indexOf("vp09.02")>0)){Q=Y;var L=z;Q=!(N.experiments.j8("html5_ignore_h264_framerate_cap")&&Q===m_.FRAMERATE&&x22(L))}if(Q)if(nf(N,Y))if(N.G){if(N.G[Y.name] 1080&&z.CG&&(C+="; hdcp=2.2");return R==="227"?"hqcenc":R!=="585"&&R!=="588"&&R!=="583"&&R!=="586"&&R!=="584"&&R!=="587"&&R!=="591"&&R!=="592"||N.experiments.j8("html5_enable_new_hvc_enc")?OF()&&o0()>=21&&g.Dz("appletv5")&&(R==="410"||R==="845")?!0:N.isTypeSupported(C)?!0:"tpus":"newhvc"}; RW=function(){var N=bQ()&&!n6(29),z=g.Dz("google tv")&&g.Dz("chrome")&&!n6(30);return N||z?!1:st7()}; HgU=function(N,z,v){var R=480;z=g.f(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var Z=C.video.qualityOrdinal;Z<=1080&&Z>R&&xiY(N,C,v)===!0&&(R=Z)}return R}; g.Cu=function(N,z){z=z===void 0?!1:z;return RW()&&N.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!z&&N.canPlayType(BP(),"application/x-mpegURL")?!0:!1}; DQY=function(N){ocI(function(){for(var z=g.f(Object.keys(m_)),v=z.next();!v.done;v=z.next())nf(N,m_[v.value])})}; nf=function(N,z){z.name in N.Y||(N.Y[z.name]=bgx(N,z));return N.Y[z.name]}; bgx=function(N,z){if(N.G)return!!N.G[z.name];if(z===m_.BITRATE&&N.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!N.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(z===m_.AV1_CODECS)return N.isTypeSupported("video/mp4; codecs="+z.valid)&&!N.isTypeSupported("video/mp4; codecs="+z.Qg);if(z.video){var v='video/webm; codecs="vp9"';N.isTypeSupported(v)||(v='video/mp4; codecs="avc1.4d401e"')}else v='audio/webm; codecs="opus"', N.isTypeSupported(v)||(v='audio/mp4; codecs="mp4a.40.2"');return N.isTypeSupported(v+"; "+z.name+"="+z.valid)&&!N.isTypeSupported(v+"; "+z.name+"="+z.Qg)}; tiu=function(N,z){var v=0;N.N.has(z)&&(v=g.h(N.N.get(z)).LK);N.N.set(z,{LK:v+1,tM:Math.pow(2,v+1)});N.W=!0}; dk=function(N){for(var z=[],v=g.f(N.V.keys()),R=v.next();!R.done;R=v.next()){R=R.value;var C=N.V.get(R);z.push(R+"_"+C.maxWidth+"_"+C.maxHeight)}return z.join(".")}; jVu=function(N,z){for(var v=new Map,R=g.f(N.V.keys()),C=R.next();!C.done;C=R.next()){C=C.value;var Z=C.split("_")[0];z.has(Z)||v.set(C,N.V.get(C))}N.V=v}; QVK=function(N,z,v){var R,C=((R=v.video)==null?void 0:R.fps)||0;R=z+"_"+C;var Z=!!v.audio,Y={itag:v.itag,JO:z,bI:Z};if(Z)Y.numChannels=v.audio.numChannels;else{var Q=v.video;Y.maxWidth=Q==null?void 0:Q.width;Y.maxHeight=Q==null?void 0:Q.height;Y.maxFramerate=C;nf(N,m_.BITRATE)&&(Y.maxBitrateBps=v.i$*8);Y.GQ=Q==null?void 0:Q.isHdr()}Q=N.V.get(R);Q?Z||(v=Math.max(Q.maxWidth||0,Q.maxHeight||0)>Math.max(Y.maxWidth||0,Y.maxHeight||0)?Q:Y,z={itag:v.itag,JO:z,bI:Z,maxWidth:Math.max(Q.maxWidth||0,Y.maxWidth|| 0),maxHeight:Math.max(Q.maxHeight||0,Y.maxHeight||0),maxFramerate:C,GQ:v.GQ},nf(N,m_.BITRATE)&&(z.maxBitrateBps=v.maxBitrateBps),N.V.set(R,z)):N.V.set(R,Y)}; LTu=function(N,z,v){var R,C=((R=v.video)==null?void 0:R.fps)||0;R=z+"_"+C;var Z=!!v.audio,Y=N.V.get(R);a:{var Q=N.V.get(R),L=!!v.audio;if(Q){if(L){var K=!1;break a}var l;if(!L&&((K=v.video)==null?0:K.height)&&Q.maxHeight&&Q.maxHeight>=((l=v.video)==null?void 0:l.height)){K=!1;break a}}K=!0}K&&(K=v.itag,z=Y?Y:{itag:K,JO:z,bI:Z},Z?z.numChannels=v.audio.numChannels:(Z=v.video,z.maxWidth=Z==null?void 0:Z.width,z.maxHeight=Z==null?void 0:Z.height,z.maxFramerate=C,nf(N,m_.BITRATE)&&(z.maxBitrateBps=v.i$* 8),z.GQ=Z==null?void 0:Z.isHdr()),N.V.set(R,z))}; hTu=function(N){var z;(z=navigator.mediaCapabilities)!=null&&z.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(v){v.smooth&&v.powerEfficient&&(N.Vp=2160)})}; Zn=function(){g.jJ.call(this);this.items={}}; Ogm=function(N,z,v){this.encryptedClientKey=z;this.B=v;this.V=new Uint8Array(N.buffer,0,16);this.Z=new Uint8Array(N.buffer,16)}; Iou=function(N){N.W||(N.W=new g.dC(N.V));return N.W}; Y1=function(N){try{return R1(N)}catch(z){return null}}; XRu=function(N,z){if(!z&&N)try{z=JSON.parse(N)}catch(C){}if(z){N=z.clientKey?Y1(z.clientKey):null;var v=z.encryptedClientKey?Y1(z.encryptedClientKey):null,R=z.keyExpiresInSeconds?Number(z.keyExpiresInSeconds)*1E3+(0,g.I)():null;N&&v&&R&&(this.V=new Ogm(N,v,R));z.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Y1(z.onesieUstreamerConfig)||void 0);this.baseUrl=z.baseUrl}}; jP=function(){this.data=new Uint8Array(2048);this.pos=0;ij||(ij=By("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; aW=function(N,z){N.add(z==null||isNaN(z)?0:z+1)}; Q1=function(N){this.V=this.W=0;this.alpha=Math.exp(Math.log(.5)/N)}; Lu=function(N){this.W=N===void 0?15:N;this.values=new Float64Array(176);this.V=new Float64Array(11);this.Z=new Float64Array(16)}; Ku=function(N,z,v,R){v=v===void 0?.5:v;R=R===void 0?0:R;this.resolution=z;this.W=0;this.Z=!1;this.BB=!0;this.V=Math.round(N*this.resolution);this.values=Array(this.V);for(N=0;N0)z=N.byterate,this.qd=!0;else{var R; v=(((R=navigator.connection)==null?void 0:R.downlink)||0)*64*1024;v>0&&(z=v,this.qd=!0)}this.Z.Xp(this.policy.G,z);N.delay>0&&this.Y.Xp(1,Math.min(N.delay,2));N.stall>0&&this.L.Xp(1,N.stall);N.init>0&&(this.tO=Math.min(N.init,this.tO));N.interruptions&&(this.N=this.N.concat(N.interruptions),this.N.length>16&&this.N.pop());this.Vp=(0,g.I)();this.policy.L>0&&(this.BL=new g.cn(this.S8,this.policy.L,this),g.b(this,this.BL),this.BL.start())}; Wi=function(N,z,v,R){N.Z.Xp(R===void 0?z:R,v/z);N.G=(0,g.I)()}; u7O=function(N){N.B||(N.B=(0,g.I)());N.policy.J&&(N.G=(0,g.I)())}; cNu=function(N,z){if(N.B){var v=z-N.B;if(v<6E4){if(v>1E3){var R=N.interruptions;R.push(Math.ceil(v));R.sort(function(C,Z){return Z-C}); R.length>16&&R.pop()}N.K0+=v}}N.B=z}; Gx=function(N,z,v,R,C,Z){Z=Z===void 0?!1:Z;N.Id.Xp(z,v/z);N.G=(0,g.I)();C||N.J.Xp(1,z-R);Z||(N.B=0);N.Vp>-1&&(0,g.I)()-N.Vp>3E4&&qwO(N)}; x1=function(N,z,v){z=Math.max(z,N.W.V);N.L.Xp(1,v/z)}; eP=function(N){N=N.Y.fU()+N.Rd.fU()||0;N=isNaN(N)?.5:N;return N=Math.min(N,5)}; JR=function(N,z,v){isNaN(v)||(N.PL+=v);isNaN(z)||(N.UT+=z)}; y1=function(N){N=N.Z.fU();return N>0?N:1}; fu=function(N,z,v){z=z===void 0?!1:z;v=v===void 0?1048576:v;var R=y1(N);R=1/((N.L.fU()||0)*N.policy.qd+1/R);var C=N.Id.fU();C=C>0?C:1;var Z=Math.max(R,C);N.policy.B>0&&C=4E3}; wRY=function(N){this.experiments=N;this.V=17;this.Z=13E4;this.G=.5;this.W=!1;this.Vp=this.X("html5_use_histogram_for_bandwidth");this.N=!1;this.B=g.LM(this.experiments,"html5_auxiliary_estimate_weight");this.qd=g.LM(this.experiments,"html5_stall_factor")||1;this.L=g.LM(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.j8("html5_trigger_loader_when_idle_network");this.J=this.experiments.j8("html5_sabr_fetch_on_idle_network_preloaded_players")}; zAm=function(N,z){N=N===void 0?{}:N;z=z===void 0?{}:z;g.H.call(this);var v=this;this.values=N;this.Q8=z;this.W={};this.Z=this.V=0;this.N=new g.cn(function(){NlK(v)},1E4); g.b(this,this.N)}; Tx=function(N,z){v8U(N,z);return N.values[z]&&N.Q8[z]?N.values[z]/Math.pow(2,N.V/N.Q8[z]):0}; v8U=function(N,z){N.values[z]||(z=EVu(),N.values=z.values||{},N.Q8=z.halfLives||{},N.W=z.values?Object.assign({},z.values):{})}; NlK=function(N){var z=EVu();if(z.values){z=z.values;for(var v={},R=g.f(Object.keys(N.values)),C=R.next();!C.done;C=R.next())C=C.value,z[C]&&N.W[C]&&(N.values[C]+=z[C]-N.W[C]),v[C]=Tx(N,C);N.W=v}z=N.Q8;v={};v.values=N.W;v.halfLives=z;g.ka("yt-player-memory",v,2592E3)}; bj=function(N,z,v,R,C){g.H.call(this);this.webPlayerContextConfig=z;this.gg=R;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.o4=this.A0=this.er=this.w$=this.userDisplayName=this.userDisplayImage=this.I_="";this.V={};this.CV={};this.controlsType="0";this.Ui=NaN;this.xT=!1;this.MF=(0,g.I)();this.zE=0;this.aB=this.MQ=!1;this.Vg=!0;this.preferGapless=this.oB=this.BH=this.Z=this.s9=!1;this.B2=[];this.X6=!1;this.zA=0;N=N?g.vZ(N):{};z&&z.csiPageType&&(this.csiPageType=z.csiPageType);z&&z.csiServiceName&& (this.csiServiceName=z.csiServiceName);z&&z.preferGapless&&(this.preferGapless=z.preferGapless);this.experiments=new kYf(z?z.serializedExperimentIds:N.fexp,z?z.serializedExperimentFlags:N.fflags);this.forcedExperiments=z?z.serializedForcedExperimentIds:Z_("",N.forced_experiments)||void 0;this.cspNonce=(z==null?0:z.cspNonce)?z.cspNonce:Z_("",N.csp_nonce);this.X("web_player_deprecated_uvr_killswitch");try{var Z=document.location.toString()}catch(Rv){Z=""}this.p5=Z;this.ancestorOrigins=(R=window.location.ancestorOrigins)? Array.from(R):[];this.N=ve(!1,z?z.isEmbed:N.is_embed);if(z&&z.device){if(R=z.device,R.androidOsExperience&&(this.V.caoe=""+R.androidOsExperience),R.androidPlayServicesVersion&&(this.V.capsv=""+R.androidPlayServicesVersion),R.brand&&(this.V.cbrand=R.brand),R.browser&&(this.V.cbr=R.browser),R.browserVersion&&(this.V.cbrver=R.browserVersion),R.cobaltReleaseVehicle&&(this.V.ccrv=""+R.cobaltReleaseVehicle),this.V.c=R.interfaceName||"WEB",this.V.cver=R.interfaceVersion||"html5",R.interfaceTheme&&(this.V.ctheme= R.interfaceTheme),this.V.cplayer=R.interfacePlayerType||"UNIPLAYER",R.model&&(this.V.cmodel=R.model),R.network&&(this.V.cnetwork=R.network),R.os&&(this.V.cos=R.os),R.osVersion&&(this.V.cosver=R.osVersion),R.platform&&(this.V.cplatform=R.platform),Z=zx(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),Z==="all"||Z==="once")R.chipset&&(this.CV.cchip=R.chipset),R.cobaltAppVersion&&(this.CV.ccappver=R.cobaltAppVersion),R.firmwareVersion&&(this.CV.cfrmver=R.firmwareVersion),R.deviceYear&&(this.CV.crqyear= R.deviceYear)}else this.V.c=N.c||"web",this.V.cver=N.cver||"html5",this.V.cplayer="UNIPLAYER";this.loaderUrl=z?this.N||RAu(this)&&z.loaderUrl?z.loaderUrl||"":this.p5:this.N||RAu(this)&&N.loaderUrl?Z_("",N.loaderUrl):this.p5;this.N&&g.cU("yt.embedded_player.embed_url",this.loaderUrl);this.Y=cL(this.loaderUrl,CJb);R=this.loaderUrl;var Y=Y===void 0?!1:Y;this.UN=uc(cL(R,ZC2),R,Y,"Trusted Ad Domain URL");this.yh=ve(!1,N.privembed);this.protocol=this.p5.indexOf("http:")===0?"http":"https";this.bL=Msv((z? z.customBaseYoutubeUrl:N.BASE_YT_URL)||"")||Msv(this.p5)||this.protocol+"://www.youtube.com/";Y=z?z.eventLabel:N.el;R="detailpage";Y==="adunit"?R=this.N?"embedded":"detailpage":Y==="embedded"||this.Y?R=Rs(R,Y,Ycu):Y&&(R="embedded");this.Rd=R;Tm_();Y=null;R=z?z.playerStyle:N.ps;Z=g.J8(iC_,R);!R||Z&&!this.Y||(Y=R);this.playerStyle=Y;this.G=g.J8(iC_,this.playerStyle);this.houseBrandUserStatus=z==null?void 0:z.houseBrandUserStatus;this.Vp=this.G&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.dK=!this.Vp;this.BL=ve(!1,N.disableplaybackui);this.disablePaidContentOverlay=ve(!1,z==null?void 0:z.disablePaidContentOverlay);this.disableSeek=ve(!1,z==null?void 0:z.disableSeek);this.enableSpeedOptions=(z==null?void 0:z.enableSpeedOptions)||(BP().defaultPlaybackRate?F2||g.ML||nu?g.Xn&&n6("20")||g.gp&&n6("4")||g.md&&n6("11")||rm():!(g.md&&!g.Dz("chrome")||F2||g.Dz("android")||g.Dz("silk")):!1);this.Lf=ve(!1,N.enable_faster_speeds);var Q;this.supportsVarispeedExtendedFeatures=(Q=z==null?void 0: z.supportsVarispeedExtendedFeatures)!=null?Q:!1;this.W=ve(this.playerStyle==="blazer",N.is_html5_mobile_device||z&&z.isMobileDevice);this.UT=qL()||wm();this.RR=this.X("mweb_allow_background_playback")?!1:this.W&&!this.G;this.Id=PP();this.Nl=g.$1;var L;this.AR=!!(z==null?0:(L=z.embedsHostFlags)==null?0:L.optOutApiDeprecation);var K;this.FH=!!(z==null?0:(K=z.embedsHostFlags)==null?0:K.allowPfpImaIntegration);this.zS=this.X("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var l;z?z.hideInfo!== void 0&&(l=!z.hideInfo):l=N.showinfo;this.aM=g.Uu(this)&&!this.AR||ve(!Bi(this)&&!AR(this)&&!this.G,l);this.oM=z?!!z.mobileIphoneSupportsInlinePlayback:ve(!1,N.playsinline);Q=this.W&&gd&&pu!=null&&pu>0&&pu<=2.3;L=z?z.useNativeControls:N.use_native_controls;this.L=g.Uu(this)&&this.W;K=this.W&&!this.L;L=g.k1(this)||!Q&&ve(K,L)?"3":"1";this.disableOrganicUi=!(z==null||!z.disableOrganicUi);K=z?z.controlsType:N.controls;this.controlsType=this.disableOrganicUi||K==="0"||K===0?"0":L;this.Et=this.W;this.color= Rs("red",z?z.progressBarColor:N.color,jkK);this.Wm=this.controlsType==="3";this.UR=!this.N;this.q3=(L=!this.UR&&!AR(this)&&!this.Vp&&!this.G&&!Bi(this))&&!this.Wm&&this.controlsType==="1";this.Fy=g.Pi(this)&&L&&this.controlsType==="0"&&!this.q3&&!(z==null?0:z.embedsEnableEmc3ds);this.cm=this.kZ=Q;this.J0=(this.controlsType==="3"||this.W||ve(!1,N.use_media_volume))&&!this.L;this.Wp=uQ&&!g.$Q(601)?!1:!0;this.Ka=this.N||!1;this.Dx=AR(this)?"":(this.loaderUrl||N.post_message_origin||"").substring(0,128); this.widgetReferrer=Z_("",z?z.widgetReferrer:N.widget_referrer);var W;z?z.disableCastApi&&(W=!1):W=N.enablecastapi;W=!this.Y||ve(!0,W);Q=!0;z&&z.disableMdxCast&&(Q=!1);this.Lr=this.X("enable_cast_for_web_unplugged")&&g.V1(this)&&Q||g.S0(this)&&Q||W&&Q&&this.controlsType==="1"&&!this.W&&(AR(this)||g.Pi(this)||g.SP(this));this.tZ=!!window.document.pictureInPictureEnabled||kz();W=z?!!z.supportsAutoplayOverride:ve(!1,N.autoplayoverride);this.a_=!(this.W&&!g.Uu(this))&&!g.Dz("nintendo wiiu")||W;this.cP= (z?!!z.enableMutedAutoplay:ve(!1,N.mutedautoplay))&&!1;W=(AR(this)||Bi(this))&&this.playerStyle==="blazer";this.Ut=z?!!z.disableFullscreen:!ve(!0,N.fs);Q=g.as(g.Eu(this))&&g.Uu(this);this.gW=!this.Ut&&(W||g.xa())&&!Q;this.n9=this.X("html5_picture_in_picture_logging_onresize");var G;this.iQ=(G=g.LM(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?G:.33;this.zD=this.X("html5_picture_in_picture_blocking_onresize");this.V6=this.X("html5_picture_in_picture_blocking_ontimeupdate"); this.e_=this.X("html5_picture_in_picture_blocking_document_fullscreen");this.WZ=this.X("html5_picture_in_picture_blocking_standard_api");G=bQ()&&n6(58)&&!wm();W=IX||typeof MediaSource==="undefined";this.T0=this.X("uniplayer_block_pip")&&(G||W)||this.zD||this.V6||this.WZ;G=g.Uu(this)&&!this.AR;var x;z?z.disableRelatedVideos!==void 0&&(x=!z.disableRelatedVideos):x=N.rel;this.c5=G||ve(!this.G,x);this.G8=ve(!1,z?z.enableContentOwnerRelatedVideos:N.co_rel);this.J=wm()&&pu>0&&pu<=4.4?"_top":"_blank";this.g$= g.SP(this);this.w5=ve(this.playerStyle==="blazer",z?z.enableCsiLogging:N.enablecsi);switch(this.playerStyle){case "blogger":x="bl";break;case "gmail":x="gm";break;case "gac":x="ga";break;case "ads-preview":x="ap";break;case "books":x="gb";break;case "docs":case "flix":x="gd";break;case "duo":x="gu";break;case "google-live":x="gl";break;case "google-one":x="go";break;case "play":x="gp";break;case "chat":x="hc";break;case "hangouts-meet":x="hm";break;case "photos-edu":case "picasaweb":x="pw";break; default:x="yt"}this.qd=x;this.PL=Z_("",z?z.authorizedUserIndex:N.authuser);this.YJ=g.Uu(this)&&(this.yh||!Lqv()||this.UT);var e;z?z.disableWatchLater!==void 0&&(e=!z.disableWatchLater):e=N.showwatchlater;this.RP=((x=!this.YJ)||!!this.PL&&x)&&ve(!this.Vp,this.Y?e:void 0);this.ZT=z?z.isMobileDevice||!!z.disableKeyboardControls:ve(!1,N.disablekb);this.loop=ve(!1,N.loop);this.pageId=Z_("",z?z.initialDelegatedSessionId:N.pageid);this.K7=ve(!0,N.canplaylive);this.kJ=ve(!1,N.livemonitor);this.disableSharing= ve(this.G,z?z.disableSharing:N.ss);(e=z&&this.X("fill_video_container_size_override_from_wpcc")?z.videoContainerOverride:N.video_container_override)?(x=e.split("x"),x.length!==2?e=null:(e=Number(x[0]),x=Number(x[1]),e=isNaN(e)||isNaN(x)||e*x<=0?null:new g.kQ(e,x))):e=null;this.O_=e;this.mute=z?!!z.startMuted:ve(!1,N.mute);this.storeUserVolume=!this.mute&&ve(this.controlsType!=="0",z?z.storeUserVolume:N.store_user_volume);e=z?z.annotationsLoadPolicy:N.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:Rs(void 0,e,hR);this.captionsLanguagePreference=z?z.captionsLanguagePreference||"":Z_("",N.cc_lang_pref);e=Rs(2,z?z.captionsLanguageLoadPolicy:N.cc_load_policy,hR);this.controlsType==="3"&&e===2&&(e=3);this.v2=e;this.gx=z?z.hl||"en_US":Z_("en_US",N.hl);this.region=z?z.contentRegion||"US":Z_("US",N.cr);this.hostLanguage=z?z.hostLanguage||"en":Z_("en",N.host_language);this.XH=!this.yh&&Math.random()=480;this.schedule=new lj(W,new pRO(this.experiments),C);g.b(this,this.schedule);var d;this.enableSafetyMode=(d=z==null?void 0:z.initialEnableSafetyMode)!=null? d:ve(!1,N.enable_safety_mode);C=this.BL?!1:AR(this)&&this.playerStyle!=="blazer";var T;z?z.disableAutonav!=null&&(T=!z.disableAutonav):T=N.allow_autonav;this.Bc=ve(C,!this.Vp&&T);this.sendVisitorIdHeader=z?!!z.sendVisitorIdHeader:ve(!1,N.send_visitor_id_header);var m;this.playerStyle==="docs"&&(z?m=z.disableNativeContextMenu:m=N.disable_native_context_menu);this.disableNativeContextMenu=ve(!1,m);this.wm=Fu(this)&&this.X("enable_skip_intro_button");this.embedConfig=Z_("",z?z.serializedEmbedConfig: N.embed_config);this.K0=jc(N,g.Uu(this));this.Z=this.K0==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(z==null||!z.embedsErrorLinks);this.uY=ve(!1,N.full_window);var n;this.vL=!((n=this.webPlayerContextConfig)==null?0:n.chromeless);var P;this.livingRoomAppMode=Rs("LIVING_ROOM_APP_MODE_UNSPECIFIED",N.living_room_app_mode||(z==null?void 0:(P=z.device)==null?void 0:P.livingRoomAppMode),LZu);var V;T=CH(NaN,z==null?void 0:(V=z.device)==null?void 0:V.deviceYear);isNaN(T)||(this.deviceYear=T);this.transparentBackground= z?!!z.transparentBackground:ve(!1,N.transparent_background);this.showMiniplayerButton=z?!!z.showMiniplayerButton:ve(!1,N.show_miniplayer_button);var D;g.Uu(this)&&!(z==null?0:(D=z.embedsHostFlags)==null?0:D.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=z?!!z.externalFullscreen:ve(!1,N.external_fullscreen);this.showMiniplayerUiWhenMinimized=z?!!z.showMiniplayerUiWhenMinimized:ve(!1,N.use_miniplayer_ui);var c;this.Vg=(c=N.show_loop_video_toggle)!=null?c:!0;this.yv=Math.random()< 1E-4;this.Qj=N.onesie_hot_config||(z==null?0:z.onesieHotConfig)?new XRu(N.onesie_hot_config,z==null?void 0:z.onesieHotConfig):void 0;this.isTectonic=z?!!z.isTectonic:!!N.isTectonic;this.playerCanaryState=v;this.playerCanaryStage=z==null?void 0:z.canaryStage;this.HH=new zAm;g.b(this,this.HH);this.datasyncId=(z==null?void 0:z.datasyncId)||g.XI("DATASYNC_ID");this.m1=g.XI("LOGGED_IN",!1);this.Eu=(z==null?void 0:z.allowWoffleManagement)||!1;this.wG=Infinity;this.Eb=NaN;this.livingRoomPoTokenId=z==null? void 0:z.livingRoomPoTokenId;this.X("html5_high_res_logging_always")?this.BH=!0:this.BH=Math.random()*100=0&&N0&&N.yv&&(R.sort(),g.PN(new g.XS("Player client parameters changed after startup",R)));N.userAge=CH(N.userAge,z.user_age);N.I_=Z_(N.I_,z.user_display_email);N.userDisplayImage=Z_(N.userDisplayImage,z.user_display_image);g.Mh(N.userDisplayImage)||(N.userDisplayImage= "");N.userDisplayName=Z_(N.userDisplayName,z.user_display_name);N.w$=Z_(N.w$,z.user_gender);N.csiPageType=Z_(N.csiPageType,z.csi_page_type);N.csiServiceName=Z_(N.csiServiceName,z.csi_service_name);N.w5=ve(N.w5,z.enablecsi);N.pageId=Z_(N.pageId,z.pageid);if(v=z.enabled_engage_types)N.enabledEngageTypes=new Set(v.split(","));z.living_room_session_po_token&&(N.L5=z.living_room_session_po_token.toString())}; tR=function(N,z){return!N.G&&bQ()&&n6(55)&&N.controlsType==="3"&&!z}; g.Ou=function(N){N=Hi(N.bL);return N==="www.youtube-nocookie.com"?"www.youtube.com":N}; IW=function(N,z,v){return N.protocol+"://i1.ytimg.com/vi/"+z+"/"+(v||"hqdefault.jpg")}; X2=function(N){return AR(N)&&!g.V1(N)}; g.k1=function(N){return N.X("html5_local_playsinline")?uQ&&!g.$Q(602)&&!("playsInline"in BP()):uQ&&!N.oM||g.Dz("nintendo wiiu")?!0:!1}; g.wB=function(N){return N.V.c}; g.nM=function(N){return/^TVHTML5/.test(g.wB(N))}; g.rd=function(N){return g.wB(N)==="TVHTML5"}; RAu=function(N){return g.wB(N)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Qku=function(N){return N.V.cmodel==="CHROMECAST ULTRA/STEAK"||N.V.cmodel==="CHROMECAST/STEAK"}; g.uj=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Fu=function(N){return/web/i.test(g.wB(N))}; g.ci=function(N){return g.wB(N).toUpperCase()==="WEB"}; Dn=function(N){return g.wB(N)==="WEB_KIDS"}; g.V1=function(N){return g.wB(N)==="WEB_UNPLUGGED"}; q9=function(N){return g.wB(N)==="TVHTML5_UNPLUGGED"}; g.TW=function(N){return g.V1(N)||g.wB(N)==="TV_UNPLUGGED_CAST"||q9(N)}; g.S0=function(N){return g.wB(N)==="WEB_REMIX"}; g.M9=function(N){return g.wB(N)==="WEB_EMBEDDED_PLAYER"}; g.NN=function(N){return(N.deviceIsAudioOnly||!g.gp||IX||N.controlsType==="3"?!1:g.ML?N.N&&g.$Q(51):!0)||(N.deviceIsAudioOnly||!g.Xn||IX||N.controlsType==="3"?!1:g.ML?N.N&&g.$Q(48):g.$Q(38))||(N.deviceIsAudioOnly||!g.md||IX||N.controlsType==="3"?!1:g.ML?N.N&&g.$Q(37):g.$Q(27))||!N.deviceIsAudioOnly&&g.wd&&!xvI()&&g.$Q(11)||!N.deviceIsAudioOnly&&g.yl&&g.$Q("604.4")}; WZY=function(N){if(g.Pi(N)&&gd)return!1;if(g.Xn){if(!g.$Q(47)||!g.$Q(52)&&g.$Q(51))return!1}else if(g.yl)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; xYu=function(N,z){return N.enabledEngageTypes.has(z.toString())||GQu.includes(z)}; AR=function(N){return N.Rd==="detailpage"}; g.Pi=function(N){return N.Rd==="embedded"}; zf=function(N){return N.Rd==="leanback"}; Bi=function(N){return N.Rd==="adunit"||N.playerStyle==="gvn"}; g.SP=function(N){return N.Rd==="profilepage"}; g.Uu=function(N){return N.N&&g.Pi(N)&&!Bi(N)&&!N.G}; v3=function(N){if(!N.userDisplayImage)return"";var z=N.userDisplayImage.split("/");if(z.length===5)return N=z[z.length-1].split("="),N[1]="s20-c",z[z.length-1]=N.join("="),z.join("/");if(z.length===8)return z.splice(7,0,"s20-c"),z.join("/");if(z.length===9)return z[7]+="-s20-c",z.join("/");g.PN(new g.XS("Profile image not a FIFE URL.",N.userDisplayImage));return N.userDisplayImage}; g.Rm=function(N){var z=g.Ou(N);eAU.includes(z)&&(z="www.youtube.com");return N.protocol+"://"+z}; g.CW=function(N,z){z=z===void 0?"":z;if(N.gg){var v=new qa,R,C=N.gg();C.signedOut?R="":C.token?R=C.token:C.pendingResult.then(function(Z){C.signedOut?v.resolve(""):v.resolve(Z.token)},function(Z){g.PN(new g.XS("b189348328_oauth_callback_failed",{error:Z})); v.resolve(z)}); return R!==void 0?gm(R):new B9(v)}return gm(z)}; ZM=function(N,z){z=z===void 0?"":z;return N.m1?Kb(!0):ev(x0(Kb(g.CW(N,z)),function(v){return Kb(!!v)}),function(){return Kb(!1)})}; Hi=function(N){var z=g.h(g.nt(N));return(N=Number(g.Fd(N)[4]||null)||null)?z+":"+N:z}; YN=function(N,z){z=z===void 0?!1:z;var v=bi[N],R=JQu[v],C=yQu[N];if(!C||!R)return null;z=new HP(z?C.height:C.width,z?C.width:C.height,C.fps);R=fr(R,z,v);return new tx(N,R,{video:z,i$:C.bitrate/8})}; dYY=function(N){var z=JQu[bi[N]],v=fPY[N];return v&&z?new tx(N,z,{audio:new S3(v.audioSampleRate,v.numChannels)}):null}; iT=function(N){this.V=N}; jr=function(N,z,v,R){if(v)return Ar();v={};var C=BP();z=g.f(z);for(var Z=z.next();!Z.done;Z=z.next())if(Z=Z.value,N.canPlayType(C,Z.getInfo().mimeType)||R){var Y=Z.V.video.quality;if(!v[Y]||v[Y].getInfo().qF())v[Y]=Z}N=[];v.auto&&N.push(v.auto);R=g.f(oV);for(C=R.next();!C.done;C=R.next())(C=v[C.value])&&N.push(C);return N.length?gm(N):Ar()}; sk2=function(N){this.itag=N.itag;this.url=N.url;this.codecs=N.codecs;this.width=N.width;this.height=N.height;this.fps=N.fps;this.bitrate=N.bitrate;var z;this.W=((z=N.audioItag)==null?void 0:z.split(","))||[];this.KJ=N.KJ;this.CG=N.CG||"";this.u$=N.u$;this.audioChannels=N.audioChannels;this.V=""}; Tlb=function(N,z,v,R){z=z===void 0?!1:z;v=v===void 0?!0:v;R=R===void 0?{}:R;var C={};N=g.f(N);for(var Z=N.next();!Z.done;Z=N.next()){Z=Z.value;if(z&&MediaSource&&MediaSource.isTypeSupported){var Y=Z.type;Z.audio_channels&&(Y=Y+"; channels="+Z.audio_channels);if(!MediaSource.isTypeSupported(Y)){R[Z.itag]="tpus";continue}}if(v||!Z.drm_families||Z.eotf!=="smpte2084"&&Z.eotf!=="arib-std-b67"){Y=void 0;var Q={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},L=Z.type.match(/codecs="([^"]*)"/); L=L?L[1]:"";Z.audio_track_id&&(Y=new g.Wc(Z.name,Z.audio_track_id,!!Z.is_default));var K=Z.eotf;Z=new sk2({itag:Z.itag,url:Z.url,codecs:L,width:Number(Z.width),height:Number(Z.height),fps:Number(Z.fps),bitrate:Number(Z.bitrate),audioItag:Z.audio_itag,KJ:K?Q[K]:void 0,CG:Z.drm_families,u$:Y,audioChannels:Number(Z.audio_channels)});C[Z.itag]=C[Z.itag]||[];C[Z.itag].push(Z)}else R[Z.itag]="enchdr"}return C}; FZu=function(N,z,v,R,C){this.Z=N;this.W=z;this.B=v;this.cpn=R;this.G=C;this.N=0;this.V=""}; n8m=function(N,z){N.Z.some(function(v){var R;return((R=v.u$)==null?void 0:R.getId())===z}); N.V=z}; am=function(N,z,v){N.cpn&&(z=g.kS(z,{cpn:N.cpn}));v&&(z=g.kS(z,{paired:v}));return z}; mY2=function(N,z){N=N.itag.toString();z!==null&&(N+=z.itag.toString());return N}; $Yf=function(N){for(var z=[],v=[],R=g.f(N.W),C=R.next();!C.done;C=R.next())C=C.value,C.bitrate<=N.N?z.push(C):v.push(C);z.sort(function(Z,Y){return Y.bitrate-Z.bitrate}); v.sort(function(Z,Y){return Z.bitrate-Y.bitrate}); N.W=z.concat(v)}; Q5=function(N,z,v){this.V=N;this.W=z;this.expiration=v;this.KV=null}; UYK=function(N,z){if(!(IX||Xb()||OF()))return null;N=Tlb(z,N.X("html5_filter_fmp4_in_hls"));if(!N)return null;z=[];for(var v={},R=g.f(Object.keys(N)),C=R.next();!C.done;C=R.next()){C=g.f(N[C.value]);for(var Z=C.next();!Z.done;Z=C.next()){var Y=Z.value;Y.u$&&(Z=Y.u$.getId(),v[Z]||(Y=new g.iL(Z,Y.u$),v[Z]=Y,z.push(Y)))}}return z.length>0?z:null}; kQ2=function(N,z,v,R,C,Z,Y){if(!(IX||Xb()||OF()))return Ar();var Q={},L=Blu(v),K=Tlb(v,N.X("html5_filter_fmp4_in_hls"),N.B.L,Q);if(!K)return Y({noplst:1}),Ar();AQb(K);v={};var l=(v.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",v),W;v=[];var G=[],x=[],e=null,d="";R=R&&R.match(/hls_timedtext_playlist/)?new sk2({itag:"0",url:R,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,u$:new g.Wc("English","en",!1)}):null;for(var T=g.f(Object.keys(K)),m=T.next();!m.done;m=T.next())if(m=m.value,!N.X("html5_disable_drm_hfr_1080")|| m!=="383"&&m!=="373"){m=g.f(K[m]);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.width){for(var P=g.f(n.W),V=P.next();!V.done;V=P.next())if(V=V.value,K[V]){n.V=V;break}n.V||(n.V=g8I(K,n));if(P=K[n.V])if(v.push(n),n.CG==="fairplay"&&(W=l),V="",n.KJ==="PQ"?V="smpte2084":n.KJ==="HLG"&&(V="arib-std-b67"),V&&(d=V),x.push(pDf(P,[n],R,Z,n.itag,n.width,n.height,n.fps,L,void 0,void 0,W,V)),!e||n.width*n.height*n.fps>e.width*e.height*e.fps)e=n}else G.push(n)}else Q[m]="disdrmhfr";x.reduce(function(D, c){return c.getInfo().isEncrypted()&&D},!0)&&(W=l); C=Math.max(C,0);l=e||{};K=l.fps===void 0?0:l.fps;e=l.width===void 0?0:l.width;l=l.height===void 0?0:l.height;T=N.X("html5_native_audio_track_switching");x.push(pDf(G,v,R,Z,"93",e,l,K,L,"auto",C,W,d,T));Object.entries(Q).length&&Y(Q);return jr(N.B,x,tR(N,z),!1)}; pDf=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x){for(var e=0,d="",T=g.f(N),m=T.next();!m.done;m=T.next())m=m.value,d||(d=m.itag),m.audioChannels&&m.audioChannels>e&&(e=m.audioChannels,d=m.itag);C=new tx(C,"application/x-mpegURL",{audio:new S3(0,e),video:new HP(Z,Y,Q,null,void 0,K,void 0,G),CG:W,FA:d});N=new FZu(N,z,v?[v]:[],R,!!x);N.N=l?l:1369843;return new Q5(C,N,L)}; Blu=function(N){N=g.f(N);for(var z=N.next();!z.done;z=N.next())if(z=z.value,z.url&&(z=z.url.split("expire/"),!(z.length<=1)))return+z[1].split("/")[0];return NaN}; g8I=function(N,z){for(var v=g.f(Object.keys(N)),R=v.next();!R.done;R=v.next()){R=R.value;var C=N[R][0];if(!C.width&&C.CG===z.CG&&!C.audioChannels)return R}return""}; AQb=function(N){for(var z=new Set,v=g.f(Object.values(N)),R=v.next();!R.done;R=v.next())R=R.value,R.length&&(R=R[0],R.height&&R.codecs.startsWith("vp09")&&z.add(R.height));v=[];if(z.size){R=g.f(Object.keys(N));for(var C=R.next();!C.done;C=R.next())if(C=C.value,N[C].length){var Z=N[C][0];Z.height&&z.has(Z.height)&&!Z.codecs.startsWith("vp09")&&v.push(C)}}z=g.f(v);for(v=z.next();!v.done;v=z.next())delete N[v.value]}; LW=function(N,z){this.V=N;this.W=z}; PJY=function(N,z,v,R){var C=[];v=g.f(v);for(var Z=v.next();!Z.done;Z=v.next()){var Y=Z.value;if(Y.url){Z=new g.$w(Y.url,!0);if(Y.s){var Q=Z,L=Y.sp,K=kWu(decodeURIComponent(Y.s));Q[a[11]](L,encodeURIComponent(K))}Q=g.f(Object.keys(R));for(L=Q.next();!L.done;L=Q.next())L=L.value,Z.set(L,R[L]);Y=Re(Y.type,Y.quality,Y.itag,Y.width,Y.height);C.push(new LW(Y,Z))}}return jr(N.B,C,tR(N,z),!1)}; KW=function(N,z){this.V=N;this.W=z}; VH7=function(N,z,v){var R=[];v=g.f(v);for(var C=v.next();!C.done;C=v.next())if((C=C.value)&&C.url){var Z=Re(C.type,"medium","0");R.push(new KW(Z,C.url))}return jr(N.B,R,tR(N,z),!1)}; ScO=function(N,z){var v=[],R=Re(z.type,"auto",z.itag);v.push(new KW(R,z.url));return jr(N.B,v,!1,!0)}; hAx=function(N){return N&&E8u[N]?E8u[N]:null}; HCm=function(N){switch(N){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return N;default:return"sabr.config"}}; o87=function(N){if(N=N.commonConfig)this.url=N.url,this.urlQueryOverride=N.urlQueryOverride,N.ustreamerConfig&&(this.Hg=Y1(N.ustreamerConfig)||void 0)}; DY_=function(N,z){var v;if(z=z==null?void 0:(v=z.watchEndpointSupportedOnesieConfig)==null?void 0:v.html5PlaybackOnesieConfig)N.nD=new o87(z)}; g.lT=function(N){N=N===void 0?{}:N;this.languageCode=N.languageCode||"";this.languageName=N.languageName||null;this.kind=N.kind||"";this.name=N.name===void 0?null:N.name;this.displayName=N.displayName||null;this.id=N.id||null;this.V=N.is_servable||!1;this.isTranslateable=N.is_translateable||!1;this.url=N.url||null;this.vssId=N.vss_id||"";this.isDefault=N.is_default||!1;this.translationLanguage=N.translationLanguage||null;this.xtags=N.xtags||"";this.captionId=N.captionId||""}; g.Gf=function(N){var z={languageCode:N.languageCode,languageName:N.languageName,displayName:g.W3(N),kind:N.kind,name:N.name,id:N.id,is_servable:N.V,is_default:N.isDefault,is_translateable:N.isTranslateable,vss_id:N.vssId};N.xtags&&(z.xtags=N.xtags);N.captionId&&(z.captionId=N.captionId);N.translationLanguage&&(z.translationLanguage=N.translationLanguage);return z}; g.xN=function(N){return N.translationLanguage?N.translationLanguage.languageCode:N.languageCode}; g.bCx=function(N){var z=N.vssId;N.translationLanguage&&z&&(z="t"+z+"."+g.xN(N));return z}; g.W3=function(N){var z=[];if(N.displayName)z.push(N.displayName);else{var v=N.languageName||"";z.push(v);N.kind==="asr"&&v.indexOf("(")===-1&&z.push(" (Subt\u00edtulos autom\u00e1ticos)");N.name&&z.push(" - "+N.name)}N.translationLanguage&&z.push(" >> "+N.translationLanguage.languageName);return z.join("")}; XDx=function(N,z,v,R){N||(N=z&&tHK.hasOwnProperty(z)&&OCY.hasOwnProperty(z)?OCY[z]+"_"+tHK[z]:void 0);z=N;if(!z)return null;N=z.match(IPm);if(!N||N.length!==5)return null;if(N=z.match(IPm)){var C=Number(N[3]),Z=[7,8,10,5,6];N=!(Number(N[1])===1&&C===8)&&Z.indexOf(C)>=0}else N=!1;return v||R||N?z:null}; er=function(N,z){for(var v={},R=g.f(Object.keys(rQI)),C=R.next();!C.done;C=R.next()){C=C.value;var Z=z?z+C:C;Z=N[Z+"_webp"]||N[Z];g.Mh(Z)&&(v[rQI[C]]=Z)}return v}; JK=function(N){var z={};if(!N||!N.thumbnails)return z;N=N.thumbnails.filter(function(Q){return!!Q.url}); N.sort(function(Q,L){return Q.width-L.width||Q.height-L.height}); for(var v=g.f(Object.keys(u5O)),R=v.next();!R.done;R=v.next()){var C=Number(R.value);R=u5O[C];for(var Z=g.f(N),Y=Z.next();!Y.done;Y=Z.next())if(Y=Y.value,Y.width>=C){C=cQK(Y.url);g.Mh(C)&&(z[R]=C);break}}(N=N.pop())&&N.width>=1280&&(N=cQK(N.url),g.Mh(N)&&(z["maxresdefault.jpg"]=N));return z}; cQK=function(N){return N.startsWith("//")?"https:"+N:N}; y5=function(N){return N&&N.baseUrl||""}; fW=function(N){N=g.R0(N);for(var z=g.f(Object.keys(N)),v=z.next();!v.done;v=z.next()){v=v.value;var R=N[v];N[v]=Array.isArray(R)?R[0]:R}return N}; qcI=function(N,z){N.botguardData=z.playerAttestationRenderer.botguardData;z=z.playerAttestationRenderer.challenge;z!=null&&(N.Ml=z)}; Nx7=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next()){v=v.value;var R=v.interstitials.map(function(Y){var Q=g.t(Y,MHU);if(Q)return{is_yto_interstitial:!0,raw_player_response:Q};if(Y=g.t(Y,wDx))return Object.assign({is_yto_interstitial:!0},zU(Y))}); R=g.f(R);for(var C=R.next();!C.done;C=R.next())switch(C=C.value,v.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":N.interstitials=N.interstitials.concat({time:0,playerVars:C,Ix:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":N.interstitials=N.interstitials.concat({time:0x7ffffffffffff,playerVars:C,Ix:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var Z=Number(v.podConfig.timeToInsertAtMillis);N.interstitials=N.interstitials.concat({time:Z,playerVars:C, Ix:Z===0?5:7})}}}; zUK=function(N,z){if(z=z.find(function(v){return!(!v||!v.tooltipRenderer)}))N.tooltipRenderer=z.tooltipRenderer}; vuY=function(N,z){z.subscribeCommand&&(N.subscribeCommand=z.subscribeCommand);z.unsubscribeCommand&&(N.unsubscribeCommand=z.unsubscribeCommand);z.addToWatchLaterCommand&&(N.addToWatchLaterCommand=z.addToWatchLaterCommand);z.removeFromWatchLaterCommand&&(N.removeFromWatchLaterCommand=z.removeFromWatchLaterCommand);z.getSharePanelCommand&&(N.getSharePanelCommand=z.getSharePanelCommand)}; RUb=function(N,z){z!=null?(N.vg=z,N.hd=!0):(N.vg="",N.hd=!1)}; di=function(N,z){this.type=N||"";this.id=z||""}; g.Tf=function(N){return new di(N.substring(0,2),N.substring(2))}; g.FH=function(N,z){this.bS=N;this.author="";this.IK=null;this.playlistLength=0;this.V=this.sessionData=null;this.J={};this.title="";if(z){this.author=z.author||z.playlist_author||"";this.title=z.playlist_title||"";if(N=z.session_data)this.sessionData=wb(N,"&");var v;this.V=((v=z.thumbnail_ids)==null?void 0:v.split(",")[0])||null;this.J=er(z,"playlist_");this.videoId=z.video_id||void 0;if(v=z.list)switch(z.listType){case "user_uploads":this.playlistId=(new di("UU","PLAYER_"+v)).toString();break;default:if(N= z.playlist_length)this.playlistLength=Number(N)||0;this.playlistId=g.Tf(v).toString();if(z=z.video)this.videoId=(z[0]||null).video_id||void 0}else z.playlist&&(this.playlistLength=z.playlist.toString().split(",").length)}}; g.nW=function(N,z){this.bS=N;this.KE=this.author="";this.IK=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.NZ=this.lengthText="";this.sessionData=null;this.J={};this.title="";if(z){this.ariaLabel=z.aria_label||void 0;this.author=z.author||"";this.KE=z.KE||"";if(N=z.endscreen_autoplay_session_data)this.IK=wb(N,"&");this.sG=z.sG;this.isLivePlayback=z.live_playback==="1";this.isUpcoming=!!z.isUpcoming;if(N=z.length_seconds)this.lengthSeconds=typeof N==="string"?Number(N):N;this.lengthText= z.lengthText||"";this.NZ=z.NZ||"";this.publishedTimeText=z.publishedTimeText||void 0;if(N=z.session_data)this.sessionData=wb(N,"&");this.shortViewCount=z.short_view_count_text||void 0;this.J=er(z);this.title=z.title||"";this.videoId=z.docid||z.video_id||z.videoId||z.id||void 0;this.watchUrl=z.watchUrl||void 0}}; C2u=function(N){var z,v,R=(z=N.getWatchNextResponse())==null?void 0:(v=z.contents)==null?void 0:v.twoColumnWatchNextResults,C,Z,Y,Q,L;N=(C=N.getWatchNextResponse())==null?void 0:(Z=C.playerOverlays)==null?void 0:(Y=Z.playerOverlayRenderer)==null?void 0:(Q=Y.endScreen)==null?void 0:(L=Q.watchNextEndScreenRenderer)==null?void 0:L.results;if(!N){var K,l;N=R==null?void 0:(K=R.endScreen)==null?void 0:(l=K.endScreen)==null?void 0:l.results}return N}; g.$N=function(N){var z,v,R;N=g.t((z=N.getWatchNextResponse())==null?void 0:(v=z.playerOverlays)==null?void 0:(R=v.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,mO);return g.t(N==null?void 0:N.playerBar,Z02)}; Y9u=function(N){this.V=N.playback_progress_0s_url;this.Z=N.playback_progress_2s_url;this.W=N.playback_progress_10s_url}; i0u=function(){if(Us===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(z){}a:{try{var N=!!self.localStorage}catch(z){N=!1}if(N&&(N=g.SW(g.rY()+"::yt-player"))){Us=new HW(N);break a}Us=void 0}}return Us}; g.B3=function(){var N=i0u();if(!N)return{};try{var z=N.get("yt-player-lv");return JSON.parse(z||"{}")}catch(v){return{}}}; g.jgK=function(N){var z=i0u();z&&(N=JSON.stringify(N),z.set("yt-player-lv",N))}; g.AK=function(N){return g.B3()[N]||0}; g.gi=function(N,z){var v=g.B3();z!==v[N]&&(z!==0?v[N]=z:delete v[N],g.jgK(v))}; g.pW=function(N){return g.S(function(z){return z.return(g.bR(aDI(),N))})}; P3=function(N,z,v,R,C,Z,Y,Q){var L,K,l,W,G,x;return g.S(function(e){switch(e.W){case 1:return L=g.AK(N),L===4?e.return(4):g.k(e,g.qp(),2);case 2:K=e.V;if(!K)throw g.d8("wiac");if(!Q||Y===void 0){e.Zp(3);break}return g.k(e,Qgx(Q,Y),4);case 4:Y=e.V;case 3:return l=v.lastModified||"0",g.k(e,g.pW(K),5);case 5:return W=e.V,g.d_(e,6),kN++,g.k(e,g.A6(W,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",sR:!0},function(d){if(Z!==void 0&&Y!==void 0){var T=""+N+"|"+z.id+"|"+l+"|"+String(Z).padStart(10, "0");T=g.g8(d.objectStore("media"),Y,T)}else T=g.TJ.resolve(void 0);var m=LIv(N,z.yO()),n=LIv(N,!z.yO()),P={fmts:KIu(R),format:v||{}};m=g.g8(d.objectStore("index"),P,m);var V=R.downloadedEndTime===-1;P=V?d.objectStore("index").get(n):g.TJ.resolve(void 0);var D={fmts:"music",format:{}};d=V&&C&&!z.yO()?g.g8(d.objectStore("index"),D,n):g.TJ.resolve(void 0);return g.TJ.all([d,P,T,m]).then(function(c){c=g.f(c);c.next();c=c.next().value;kN--;var r=g.AK(N);if(r!==4&&V&&C||c!==void 0&&g.lD7(c.fmts))r=1,g.gi(N, r);return r})}),8); case 8:return e.return(e.V);case 6:G=g.U2(e);kN--;x=g.AK(N);if(x===4)return e.return(x);g.gi(N,4);throw G;}})}; g.WIY=function(N){var z,v;return g.S(function(R){if(R.W==1)return g.k(R,g.qp(),2);if(R.W!=3){z=R.V;if(!z)throw g.d8("ri");return g.k(R,g.pW(z),3)}v=R.V;return R.return(g.A6(v,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(C){var Z=IDBKeyRange.bound(N+"|",N+"~");return C.objectStore("index").getAll(Z).then(function(Y){return Y.map(function(Q){return Q?Q.format:{}})})}))})}; xIU=function(N,z,v,R,C){var Z,Y,Q;return g.S(function(L){if(L.W==1)return g.k(L,g.qp(),2);if(L.W!=3){Z=L.V;if(!Z)throw g.d8("rc");return g.k(L,g.pW(Z),3)}Y=L.V;Q=g.A6(Y,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(K){var l=""+N+"|"+z+"|"+v+"|"+String(R).padStart(10,"0");return K.objectStore("media").get(l)}); return C?L.return(Q.then(function(K){if(K===void 0)throw Error("No data from indexDb");return G__(C,K)}).catch(function(K){throw new g.XS("Error while reading chunk: "+K.name+", "+K.message); })):L.return(Q)})}; g.lD7=function(N){return N?N==="music"?!0:N.includes("dlt=-1")||!N.includes("dlt="):!1}; LIv=function(N,z){return""+N+"|"+(z?"v":"a")}; KIu=function(N){var z={};return NL((z.dlt=N.downloadedEndTime.toString(),z.mket=N.maxKnownEndTime.toString(),z.avbr=N.averageByteRate.toString(),z))}; J5u=function(N){var z={},v={};N=g.f(N);for(var R=N.next();!R.done;R=N.next()){var C=R.value,Z=C.split("|");C.match(g.eUI)?(R=Number(Z.pop()),isNaN(R)?v[C]="?":(Z=Z.join("|"),(C=z[Z])?(Z=C[C.length-1],R===Z.end+1?Z.end=R:C.push({start:R,end:R})):z[Z]=[{start:R,end:R}])):v[C]="?"}N=g.f(Object.keys(z));for(R=N.next();!R.done;R=N.next())R=R.value,v[R]=z[R].map(function(Y){return Y.start+"-"+Y.end}).join(","); return v}; V5=function(N){g.jJ.call(this);this.V=null;this.Z=new Hl;this.V=null;this.G=new Set;this.crossOrigin=N||""}; y5O=function(N,z,v){for(v=Sr(N,v);v>=0;){var R=N.levels[v];if(R.isLoaded(Es(R,z))&&(R=g.hK(R,z)))return R;v--}return g.hK(N.levels[0],z)}; dI7=function(N,z,v){v=Sr(N,v);for(var R,C;v>=0;v--)if(R=N.levels[v],C=Es(R,z),!R.isLoaded(C)){R=N;var Z=v,Y=Z+"-"+C;R.G.has(Y)||(R.G.add(Y),R.Z.enqueue(Z,{gU:Z,UF:C}))}fD2(N)}; fD2=function(N){if(!N.V&&!N.Z.isEmpty()){var z=g.h(N.Z.remove());N.V=sg2(N,z)}}; sg2=function(N,z){var v=document.createElement("img");N.crossOrigin&&(v.crossOrigin=N.crossOrigin);v.src=N.levels[z.gU].IP(z.UF);v.onload=function(){var R=z.gU,C=z.UF;N.V!==null&&(N.V.onload=null,N.V=null);R=N.levels[R];R.loaded.add(C);fD2(N);var Z=R.columns*R.rows;C*=Z;R=Math.min(C+Z-1,R.OH()-1);C=[C,R];N.publish("l",C[0],C[1])}; return v}; g.H3=function(N,z,v,R){this.level=N;this.N=z;this.loaded=new Set;this.level=N;this.N=z;N=v.split("#");this.width=Math.floor(Number(N[0]));this.height=Math.floor(Number(N[1]));this.frameCount=Math.floor(Number(N[2]));this.columns=Math.floor(Number(N[3]));this.rows=Math.floor(Number(N[4]));this.V=Math.floor(Number(N[5]));this.Z=N[6];this.signature=N[7];this.videoLength=R}; Es=function(N,z){return Math.floor(z/(N.columns*N.rows))}; g.hK=function(N,z){z>=N.fR()&&N.mm();var v=Es(N,z),R=N.columns*N.rows,C=z%R;z=C%N.columns;C=Math.floor(C/N.columns);var Z=N.mm()+1-R*v;if(Z1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; TxO=function(N,z,v){return(N=N.levels[z])?N.Xs(v):-1}; Sr=function(N,z){var v=N.N.get(z);if(v)return v;v=N.levels.length;for(var R=0;R=z)return N.N.set(z,R),R;N.N.set(z,v-1);return v-1}; DM=function(N,z,v,R){v=v.split("#");v=[v[1],v[2],0,v[3],v[4],-1,v[0],""].join("#");g.H3.call(this,N,z,v,0);this.W=null;this.B=R?2:0}; bT=function(N,z,v,R){om.call(this,N,0,void 0,z,!(R===void 0||!R));for(N=0;N(v!=null?v:50)&&(v=p4b.shift())&&c3.delete(v),v=C),C!==v&&N.W9("ssei","dcpn_"+C+"_"+v+"_"+N.clientPlaybackNonce),v)}; XH=function(N,z){var v=z.raw_watch_next_response;if(!v){var R=z.watch_next_response;R&&(v=JSON.parse(R))}if(v){N.Id=v;var C=N.Id.playerCueRangeSet;C&&g.qN(N,C);var Z=N.Id.playerOverlays;if(Z){var Y=Z.playerOverlayRenderer;if(Y){var Q=Y.autonavToggle;Q&&(N.autoplaySwitchButtonRenderer=g.t(Q,k_b),N.X("web_player_autonav_use_server_provided_state")&&MN(N)&&(N.autonavState=N.autoplaySwitchButtonRenderer.enabled?2:1));var L=Y.videoDetails;if(L){var K=L.embeddedPlayerOverlayVideoDetailsRenderer;var l=L.playerOverlayVideoDetailsRenderer; l&&(l.title&&(z.title=g.xt(l.title)),l.subtitle&&(z.subtitle=g.xt(l.subtitle)))}g.Pi(N.bS)&&(N.RP=!!Y.addToMenu);P2O(N,Y.shareButton);Y.startPosition&&Y.endPosition&&(N.progressBarStartPosition=Y.startPosition,N.progressBarEndPosition=Y.endPosition);var W=Y.gatedActionsOverlayRenderer;W&&(N.Se=g.t(W,Vk2));var G,x,e,d=g.t((G=N.getWatchNextResponse())==null?void 0:(x=G.playerOverlays)==null?void 0:(e=x.playerOverlayRenderer)==null?void 0:e.infoPanel,S9u);if(d){N.Bd=Number(d==null?void 0:d.durationMs)|| NaN;if(d==null?0:d.infoPanelOverviewViewModel)N.p5=d==null?void 0:d.infoPanelOverviewViewModel;if(d==null?0:d.infoPanelDetailsViewModel)N.Et=d==null?void 0:d.infoPanelDetailsViewModel}N.showSeekingControls=!!Y.showSeekingControls}}var T,m,n=(T=N.getWatchNextResponse())==null?void 0:(m=T.contents)==null?void 0:m.twoColumnWatchNextResults;if(n){var P=n.desktopOverlay&&g.t(n.desktopOverlay,EuO);P&&(P.suppressShareButton&&(N.showShareButton=!1),P.suppressWatchLaterButton&&(N.RP=!1))}K&&hUx(N,z,K);var V= CH(0,z.autoplay_count),D=g.h(N.getWatchNextResponse()),c,r=(c=D.contents)==null?void 0:c.twoColumnWatchNextResults,Rv,Zu,Nx,av=(Rv=D.playerOverlays)==null?void 0:(Zu=Rv.playerOverlayRenderer)==null?void 0:(Nx=Zu.autoplay)==null?void 0:Nx.playerOverlayAutoplayRenderer,M=C2u(N),s2,$m=(s2=D.contents)==null?void 0:s2.singleColumnWatchNextResults;if($m){var O2;if(((O2=$m.autoplay)==null?0:O2.autoplay)&&!$m.playlist){var m7=$m.autoplay.autoplay.sets,QU={},BU=new g.nW(N.D()),mu=null,Y5;if(m7){for(var F= g.f(m7),jI=F.next();!jI.done;jI=F.next()){var rE=jI.value.autoplayVideoRenderer;if(rE&&rE.compactVideoRenderer){mu=rE.compactVideoRenderer;break}}if(Y5=m7[0].autoplayVideo){var TM=Y5.clickTrackingParams;TM&&(QU.itct=TM);QU.autonav="1";QU.playnext=String(V)}}else QU.feature="related-auto";var gE=g.t(Y5,g.wi);if(mu){BU.videoId=mu.videoId;var x5=mu.shortBylineText;x5&&(BU.author=g.xt(x5));var Du=mu.title;Du&&(BU.title=g.xt(Du))}else gE!=null&&gE.videoId&&(BU.videoId=gE.videoId);BU.IK=QU;N.suggestions= [];N.II=BU}}if(M){for(var SV=[],pm=g.f(M),B=pm.next();!B.done;B=pm.next()){var A=B.value,p=void 0,E=null;if(A.endScreenVideoRenderer){var O=A.endScreenVideoRenderer,FK=O.title;E=new g.nW(N.D());E.videoId=O.videoId;E.lengthSeconds=O.lengthInSeconds||0;var vU=O.publishedTimeText;vU&&(E.publishedTimeText=g.xt(vU));var Jb=O.shortBylineText;Jb&&(E.author=g.xt(Jb));var CO=O.shortViewCountText;CO&&(E.shortViewCount=g.xt(CO));if(FK){E.title=g.xt(FK);var g_=FK.accessibility;if(g_){var Mx=g_.accessibilityData; Mx&&Mx.label&&(E.ariaLabel=Mx.label)}}var Fr=O.navigationEndpoint;if(Fr){p=Fr.clickTrackingParams;var F_=g.t(Fr,g.wi),k_=g.t(Fr,g.SJ);F_?E.sG=F_:k_!=null&&(E.watchUrl=k_.url)}var Xl=O.thumbnailOverlays;if(Xl)for(var X_=g.f(Xl),rT=X_.next();!rT.done;rT=X_.next()){var dT=rT.value.thumbnailOverlayTimeStatusRenderer;if(dT)if(dT.style==="LIVE"){E.isLivePlayback=!0;break}else if(dT.style==="UPCOMING"){E.isUpcoming=!0;break}}E.J=JK(O.thumbnail)}else if(A.endScreenPlaylistRenderer){var Ly=A.endScreenPlaylistRenderer, AJ=Ly.navigationEndpoint;if(!AJ)continue;var Jj=g.t(AJ,g.wi);if(!Jj)continue;var gv=Jj.videoId;E=new g.FH(N.D());E.playlistId=Ly.playlistId;E.playlistLength=Number(Ly.videoCount)||0;E.V=gv||null;E.videoId=gv;var tv=Ly.title;tv&&(E.title=g.xt(tv));var Op=Ly.shortBylineText;Op&&(E.author=g.xt(Op));p=AJ.clickTrackingParams;E.J=JK(Ly.thumbnail)}E&&(p&&(E.sessionData={itct:p}),SV.push(E))}N.suggestions=SV}if(av){N.L$=!!av.preferImmediateRedirect;N.xH=N.xH||!!av.webShowNewAutonavCountdown;N.gg=N.gg||!!av.webShowBigThumbnailEndscreen; if(N.xH||N.gg){var Tc=r||null,YQ=new g.nW(N.D());YQ.videoId=av.videoId;var u8=av.videoTitle;if(u8){YQ.title=g.xt(u8);var jz=u8.accessibility;if(jz){var FQ=jz.accessibilityData;FQ&&FQ.label&&(YQ.ariaLabel=FQ.label)}}var oh=av.byline;oh&&(YQ.author=g.xt(oh));var J0=av.publishedTimeText;J0&&(YQ.publishedTimeText=g.xt(J0));var xx=av.shortViewCountText;xx&&(YQ.shortViewCount=g.xt(xx));var ex=av.thumbnailOverlays;if(ex)for(var JC=g.f(ex),v_=JC.next();!v_.done;v_=JC.next()){var aZ=v_.value.thumbnailOverlayTimeStatusRenderer; if(aZ)if(aZ.style==="LIVE"){YQ.isLivePlayback=!0;break}else if(aZ.style==="UPCOMING"){YQ.isUpcoming=!0;break}else if(aZ.style==="DEFAULT"&&aZ.text){YQ.lengthText=g.xt(aZ.text);var Rc=aZ.text.accessibility;if(Rc){var Ch=Rc.accessibilityData;Ch&&Ch.label&&(YQ.NZ=Ch.label||"")}break}}YQ.J=JK(av.background);var y4=av.nextButton;if(y4){var fN=y4.buttonRenderer;if(fN){var dK=fN.navigationEndpoint;if(dK){var s0=g.t(dK,g.wi);s0&&(YQ.sG=s0)}}}if(av.topBadges){var TS=av.topBadges[0];if(TS){var Fk=g.t(TS,H0b); Fk&&Fk.style==="BADGE_STYLE_TYPE_PREMIUM"&&(YQ.JdU=!0)}}var rw=av.alternativeTitle;rw&&(YQ.KE=g.xt(rw));var nj={autonav:"1",playnext:String(V)};YQ.playlistId&&(nj.autoplay="1");if(Tc){var uM,DW,ZT,nN,Yr=(uM=Tc.autoplay)==null?void 0:(DW=uM.autoplay)==null?void 0:(ZT=DW.sets)==null?void 0:(nN=ZT[0])==null?void 0:nN.autoplayVideo;if(Yr){var mp=Yr.clickTrackingParams;mp&&(nj.itct=mp);var iv=g.t(Yr,g.wi);iv&&(YQ.Te=iv)}}else if(av){var $x,U0,BE,AC=($x=av.nextButton)==null?void 0:(U0=$x.buttonRenderer)== null?void 0:(BE=U0.navigationEndpoint)==null?void 0:BE.clickTrackingParams;AC&&(nj.itct=AC)}nj.itct||(nj.feature="related-auto");YQ.IK=nj;N.suggestions||(N.suggestions=[]);N.II=YQ}av.countDownSecs!=null&&(N.xU=av.countDownSecs*1E3);av.countDownSecsForFullscreen!=null&&(N.SD=av.countDownSecsForFullscreen>=0?av.countDownSecsForFullscreen*1E3:-1);N.X("web_autonav_color_transition")&&av.watchToWatchTransitionRenderer&&(N.watchToWatchTransitionRenderer=g.t(av.watchToWatchTransitionRenderer,oum))}var jq= C2u(N);if(jq){var l$,gK,ac,QZ=jq==null?void 0:(l$=jq[0])==null?void 0:(gK=l$.endScreenVideoRenderer)==null?void 0:(ac=gK.navigationEndpoint)==null?void 0:ac.clickTrackingParams,pN=g.Nk(N);QZ&&pN&&(pN.sessionData={itct:QZ})}N.Id.currentVideoThumbnail&&(N.J=JK(N.Id.currentVideoThumbnail));var c0,kx,PE,qk,V4,Wd=(c0=N.Id)==null?void 0:(kx=c0.contents)==null?void 0:(PE=kx.twoColumnWatchNextResults)==null?void 0:(qk=PE.results)==null?void 0:(V4=qk.results)==null?void 0:V4.contents;if(Wd&&Wd[1]){var Sx, E0,mq,$S,I8=(Sx=Wd[1].videoSecondaryInfoRenderer)==null?void 0:(E0=Sx.owner)==null?void 0:(mq=E0.videoOwnerRenderer)==null?void 0:($S=mq.thumbnail)==null?void 0:$S.thumbnails;I8&&I8.length&&(N.profilePicture=I8[I8.length-1].url)}var hC=iy(z),Lh,GR=(Lh=N.getWatchNextResponse())==null?void 0:Lh.onResponseReceivedEndpoints;if(GR)for(var xH=g.f(GR),Kh=xH.next();!Kh.done;Kh=xH.next()){var X4=Kh.value;g.t(X4,zh)&&(N.C$=g.t(X4,zh));var eb=g.t(X4,DIu),HE=void 0;if((HE=eb)==null?0:HE.entityKeys)N.kF=eb.entityKeys|| [],eb.visibleOnLoadKeys&&(N.visibleOnLoadKeys=eb.visibleOnLoadKeys)}if(N.X("web_key_moments_markers")){var ww=g.v0.getState().entities,Lx=g.qJ("visibility_override","markersVisibilityOverrideEntity");var D3=wJ(ww,"markersVisibilityOverrideEntity",Lx);N.ET=(D3==null?void 0:D3.videoId)===(N.videoId||hC)&&(D3==null?0:D3.visibilityOverrideMarkersKey)?D3.visibilityOverrideMarkersKey:N.visibleOnLoadKeys;N.visibleOnLoadKeys=[].concat(g.U(N.ET))}}}; MN=function(N){var z;return((z=N.autoplaySwitchButtonRenderer)==null?void 0:z.enabled)!==void 0}; RD=function(N){return!!(N.Z&&N.Z.videoInfos&&N.Z.videoInfos.length)}; g.jM=function(N){var z=N.Y;N.X("html5_gapless_unlimit_format_selection")&&Ce(N)&&(z=!1);var v=!!N.V&&N.V.Hb,R=N.bS,C=N.eT(),Z=Zk(N),Y=N.vL,Q=z,L=N.isOtf();z=N.nA();var K=N.kJ,l=N.getUserAudio51Preference(),W=Y6(N),G=new Tr2(R);if(R.LV()||R.X("html5_logging_format_selection"))G.W=!0;G.BL=Z;G.vL=Y&&R.Y;G.K0=l;g.Dz("windows nt 5.1")&&!g.Xn&&(G.OV=!0);if(Z=C)Z=g.NN(R)?WZY(R):!1;Z&&(G.qd=!0);Q&&(G.OV=!0,G.Dx=!0);L&&!R.X("html5_otf_prefer_vp9")&&(G.OV=!0);R.playerStyle==="picasaweb"&&(L&&(G.OV=!1),G.Vp= !1);K&&(G.OV=!0);nf(R.B,m_.CHANNELS)&&(R.X("html5_enable_ac3")&&(G.N=!0),R.X("html5_enable_eac3")&&(G.B=!0),R.X("html5_enable_ac3_gapless")&&(G.Rd=!0));R.X("html5_block_8k_hfr")&&(G.S8=!0);G.G=g.LM(R.experiments,"html5_max_selectable_quality_ordinal");G.L=g.LM(R.experiments,"html5_min_selectable_quality_ordinal");nu&&(G.UR=480);if(v||C)G.Vp=!1;G.xT=!1;G.disableAv1=W;v=Eg(R,G.V,void 0,G.disableAv1);v>0&&v<2160&&(Dj()||R.X("html5_format_hybridization"))&&(G.V.supportsChangeType=+Dj(),G.Ai=v);v>=2160&& (G.PL=!0);Dh7()&&(G.V.serveVp9OverAv1IfHigherRes=0,G.J0=!1);G.nA=z;G.tO=g.Xi||N0()&&!z?!1:!0;G.Y=R.X("html5_format_hybridization");G.gW=R.X("html5_disable_encrypted_vp9_live_non_2k_4k");iM(N)&&(G.yh=N.X("html5_prefer_language_over_codec"));OF()&&N.playerResponse&&N.playerResponse.playerConfig&&N.playerResponse.playerConfig.webPlayerConfig&&N.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(G.N=!0,G.B=!0);N.Y&&N.isAd()&&(N.Nl&&(G.J=N.Nl),N.kZ&&(G.Z=N.kZ));G.Id=N.isLivePlayback&& N.Uu()&&N.bS.X("html5_drm_live_audio_51");G.kJ=N.CI;G.A0=!iM(N)&&N.X("html5_disable_voice_boost_for_cabr");return N.ZT=G}; Y6=function(N){return N.bS.X("html5_disable_av1")||N.X("html5_gapless_shorts_disable_av1")&&Ce(N)?!0:!1}; b07=function(N){H_("drm_pb_s",void 0,N.qd);N.S8||N.V&&ff(N.V);var z={};N.V&&(z=zHb(N.YO,g.jM(N),N.bS.B,N.V,function(v){return N.publish("ctmp","fmtflt",v)},!0,new Set)); z=new cc(z,N.bS,N.M8,N.useCobaltWidevine?OF()?aD(N):!1:!1,function(v,R){N.WL(v,R)}); g.b(N,z);N.Vg=!1;N.loading=!0;$Q7(z,function(v){H_("drm_pb_f",void 0,N.qd);for(var R=g.f(v),C=R.next();!C.done;C=R.next())switch(C=C.value,C.flavor){case "fairplay":C.S8=N.S8;C.TX=N.TX;C.Ev=N.Ev;break;case "widevine":C.zD=N.zD}N.zA=v;if(N.zA.length>0&&(N.B=N.zA[0],N.bS.LV())){v={};R=g.f(Object.entries(N.B.V));for(C=R.next();!C.done;C=R.next()){var Z=g.f(C.value);C=Z.next().value;Z=Z.next().value;var Y="unk";(C=C.match(/(.*)codecs="(.*)"/))&&(Y=C[2]);v[Y]=Z}N.WL("drmProbe",v)}N.oL()})}; tku=function(N,z){if(z.length===0||QO(N))return null;N.bS.B.Z&&(Pc=!0);var v=N.CG;var R=N.lengthSeconds,C=N.isLivePlayback,Z=N.pG,Y=N.bS,Q=job(z);if(C||Z){Y=Y.experiments;R=new y3("",Y,!0);R.W=!Z;R.Hb=!0;R.isManifestless=!0;R.isLive=!Z;R.pG=Z;z=g.f(z);for(C=z.next();!C.done;C=z.next()){var L=C.value;C=sg(L,v);Q=kw(L);Q=Fn(Q.nI||L.url||"",Q.LM,Q.s);var K=Q.get("id");K&&K.includes("%7E")&&(R.J=!0);var l=void 0;K=(l=Y)==null?void 0:l.j8("html5_max_known_end_time_rebase");l=Number(L.targetDurationSec|| 5);L=Number(L.maxDvrDurationSec||14400);var W=Number(Q.get("mindsq")||Q.get("min_sq")||"0"),G=Number(Q.get("maxdsq")||Q.get("max_sq")||"0")||Infinity;R.PH=R.PH||W;R.qo=R.qo||G;var x=!vE(C.mimeType);Q&&xF(R,new zK(Q,C,{lY:l,ZW:x,S_:L,PH:W,qo:G,Ys:300,pG:Z,Jt:K}))}v=R}else if(Q==="FORMAT_STREAM_TYPE_OTF"){R=R===void 0?0:R;Z=new y3("",Y.experiments,!1);Z.duration=R||0;Y=g.f(z);for(R=Y.next();!R.done;R=Y.next())R=R.value,z=sg(R,v,Z.duration),C=kw(R),(C=Fn(C.nI||R.url||"",C.LM,C.s))&&(z.streamType==="FORMAT_STREAM_TYPE_OTF"? xF(Z,new vc(C,z,"sq/0")):xF(Z,new lz(C,z,Vh(R.initRange),Vh(R.indexRange))));Z.isOtf=!0;v=Z}else{R=R===void 0?0:R;Z=new y3("",Y.experiments,!1);Z.duration=R||0;Y=g.f(z);for(R=Y.next();!R.done;R=Y.next())Q=R.value,R=sg(Q,v,Z.duration),z=Vh(Q.initRange),C=Vh(Q.indexRange),K=kw(Q),(Q=Fn(K.nI||Q.url||"",K.LM,K.s))&&xF(Z,new lz(Q,R,z,C));v=Z}Z=N.isLivePlayback&&!N.pG&&!N.Vp&&!N.isPremiere;N.X("html5_live_head_playable")&&(!Le(N)&&Z&&N.WL("missingLiveHeadPlayable",{}),N.bS.qd==="yt"&&(v.BL=!0));return v}; QO=function(N){return OF()?!aD(N):Xb()?!(!N.S8||!N.X("html5_enable_safari_fairplay")&&RW()):!1}; aD=function(N){return N.X("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.qN=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next())if(v=v.value,v.cueRangeSetIdentifier){var R=void 0;N.Hq.set(v.cueRangeSetIdentifier,(R=v.playerCueRanges)!=null?R:[])}}; Ke=function(N){return!(!N.V||!N.V.isManifestless)}; lM=function(N){return N.yh?N.isLowLatencyLiveStream&&N.V!=null&&Ug(N.V)>=5:N.isLowLatencyLiveStream&&N.V!=void 0&&Ug(N.V)>=5}; O0b=function(N){return OF()&&aD(N)?!1:QO(N)&&(g.TW(N.bS)?!N.isLivePlayback:N.hlsvp)||!RW()||N.KI?!0:!1}; r57=function(N){N.loading=!0;N.I_=!1;if(IDK(N))g.WIY(N.videoId).then(function(R){X4U(N,R)}).then(function(){N.oL()}); else{qh(N.J0)||g.PN(new g.XS("DASH MPD Origin invalid: ",N.J0));var z=N.J0,v=g.LM(N.bS.experiments,"dash_manifest_version")||4;z=g.kS(z,{mpd_version:v});N.isLowLatencyLiveStream&&N.latencyClass!=="NORMAL"||(z=g.kS(z,{pacing:0}));xQ2(z,N.bS.experiments,N.isLivePlayback).then(function(R){N.HL()||(W0(N,R,!0),H_("mrc",void 0,N.qd),N.oL())},function(R){N.HL()||(N.loading=!1,N.publish("dataloaderror",new mT("manifest.net.retryexhausted",{backend:"manifest", rc:R.status},1)))}); H_("mrs",void 0,N.qd)}}; X4U=function(N,z){var v=z.map(function(L){return L.itag}),R; if((R=N.playerResponse)!=null&&R.streamingData){R=[];if(N.X("html5_offline_always_use_local_formats")){v=0;for(var C=g.f(z),Z=C.next();!Z.done;Z=C.next()){Z=Z.value;var Y=Object.assign({},Z);Y.signatureCipher="";R.push(Y);Y=g.f(N.playerResponse.streamingData.adaptiveFormats);for(var Q=Y.next();!Q.done;Q=Y.next())if(Q=Q.value,Z.itag===Q.itag&&Z.xtags===Q.xtags){v+=1;break}}vl&&(l=x.getInfo().audio.numChannels)}l>2&&N.WL("hlschl",{mn:l});var T;((T=N.ZT)==null?0:T.W)&&N.WL("hlsfmtaf",{itags:W.join(".")});var m;if(N.X("html5_enable_vp9_fairplay")&&((m=N.B)==null?0:Og(m)))for(N.WL("drm",{sbdlfbk:1}),l=g.f(N.zA),W=l.next();!W.done;W=l.next())if(W=W.value,tI(W)){N.B=W;break}Jf(N,K)})}return Ar()}; w4_=function(N){if(N.isExternallyHostedPodcast&&N.BH){var z=eM(N.BH);if(!z[0])return Ar();N.eTW=z[0];return ScO(N.bS,z[0]).then(function(v){Jf(N,v)})}return N.AR&&N.Zj?VH7(N.bS,N.isAd(),N.AR).then(function(v){Jf(N,v)}):Ar()}; z0x=function(N){if(N.isExternallyHostedPodcast)return Ar();var z=eM(N.BH,N.Hd);if(N.hlsvp){var v=FIu(N.hlsvp,N.clientPlaybackNonce,N.Ui);z.push(v)}return PJY(N.bS,N.isAd(),z,NQb(N)).then(function(R){Jf(N,R)})}; Jf=function(N,z){N.Fy=z;N.KW(new GT(g.OL(N.Fy,function(v){return v.getInfo()})))}; NQb=function(N){var z={cpn:N.clientPlaybackNonce,c:N.bS.V.c,cver:N.bS.V.cver};N.gZ&&(z.ptk=N.gZ,z.oid=N.tL,z.ptchn=N.d3,z.pltype=N.BI,N.Qo&&(z.m=N.Qo));return z}; g.yO=function(N){return QO(N)&&N.S8?(N={},N.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",N):N.W&&N.W.CG||null}; vk2=function(N){var z=fe(N);return z&&z.text?g.xt(z.text):N.paidContentOverlayText}; R0x=function(N){var z=fe(N);return z&&z.durationMs?dL(z.durationMs):N.paidContentOverlayDurationMs}; fe=function(N){var z,v,R;return N.playerResponse&&N.playerResponse.paidContentOverlay&&N.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.t((z=N.Id)==null?void 0:(v=z.playerOverlays)==null?void 0:(R=v.playerOverlayRenderer)==null?void 0:R.playerDisclosure,C5_)||null}; dw=function(N){var z="";if(N.FC)return N.FC;N.isLivePlayback&&(z=N.allowLiveDvr?"dvr":N.isPremiere?"lp":N.Vp?"window":"live");N.pG&&(z="post");return z}; g.sY=function(N,z){return typeof N.keywords[z]!=="string"?null:N.keywords[z]}; ZvK=function(N){return!!N.T0||!!N.jf||!!N.qy||!!N.VU||N.cN||N.L.focEnabled||N.L.rmktEnabled}; g.Th=function(N){return!!(N.J0||N.BH||N.AR||N.hlsvp||N.jn())}; Im=function(N){if(N.X("html5_onesie")&&N.errorCode)return!1;var z=g.J8(N.PL,"ypc");N.ypcPreview&&(z=!1);return N.Y8()&&!N.loading&&(g.Th(N)||g.J8(N.PL,"heartbeat")||z)}; eM=function(N,z){N=v9(N);var v={};if(z){z=g.f(z.split(","));for(var R=z.next();!R.done;R=z.next())(R=R.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(v[R[1]]={width:R[2],height:R[3]})}z=g.f(N);for(R=z.next();!R.done;R=z.next()){R=R.value;var C=v[R.itag];C&&(R.width=C.width,R.height=C.height)}return N}; P2O=function(N,z){N.showShareButton=!!z;var v,R,C=((v=g.t(z,g.E9))==null?void 0:v.navigationEndpoint)||((R=g.t(z,g.E9))==null?void 0:R.command);C&&(N.wm=!!g.t(C,Y3v))}; nuu=function(N,z){var v=z.raw_embedded_player_response;if(!v){var R=z.embedded_player_response;R&&(v=JSON.parse(R))}v&&(N.HP=v);if(N.HP){N.embeddedPlayerConfig=N.HP.embeddedPlayerConfig||null;if(v=N.HP.videoFlags)v.playableInEmbed&&(N.allowEmbed=!0),v.isPrivate&&(N.isPrivate=!0),v.userDisplayName&&(z.user_display_name=v.userDisplayName),v.userDisplayImage&&(z.user_display_image=v.userDisplayImage);if(v=N.HP.embedPreview){v=v.thumbnailPreviewRenderer;RUb(N,v.controlBgHtml);if(R=v.defaultThumbnail)N.J= JK(R);N.X("embeds_web_enable_search_button")&&v.searchButton&&(R=g.t(v.searchButton,g.E9))&&(N.gBo=g.t(R.navigationEndpoint,g.Fe));(R=g.t(v==null?void 0:v.videoDetails,ivu))&&hUx(N,z,R);R=g.t(v==null?void 0:v.videoDetails,jau);N.RP=!!v.addToWatchLaterButton;P2O(N,v.shareButton);if(R==null?0:R.musicVideoType)N.musicVideoType=R.musicVideoType;var C,Z,Y,Q,L;if(R=g.t((C=N.getEmbeddedPlayerResponse())==null?void 0:(Z=C.embedPreview)==null?void 0:(Y=Z.thumbnailPreviewRenderer)==null?void 0:(Q=Y.playButton)== null?void 0:(L=Q.buttonRenderer)==null?void 0:L.navigationEndpoint,g.wi))DY_(N,R),N.videoId=R.videoId||N.videoId;v.videoDurationSeconds&&(N.lengthSeconds=dL(v.videoDurationSeconds));v.webPlayerActionsPorting&&vuY(N,v.webPlayerActionsPorting);if(C=g.t(v==null?void 0:v.playlist,a7O)){N.oM=!0;Z=[];Y=Number(C.currentIndex);if(C.contents)for(Q=0,L=C.contents.length;Q0:N.X6?!1:N.bS.a_||N.bS.cP||!g.Uu(N.bS)?!0:!1:(N.X6?0:N.g$)&&g.Uu(N.bS)?!0:!1;N.X("html5_log_detailpage_autoplay")&&P0(N)==="detailpage"&&N.WL("autoplay_info",{autoplay:N.SI,autonav:N.isAutonav,wasDompaused:N.X6,result:z});return z}; g.hf=function(N){return N.oauthToken||N.bS.o4}; ys7=function(N){return iM(N)&&!g.uT(N)}; dsf=function(N){if(N.X("html5_stateful_audio_normalization")){var z=1,v=g.LM(N.bS.experiments,"html5_default_ad_gain");v&&N.isAd()&&(z=v);var R;if(v=((R=N.N)==null?void 0:R.audio.Z)||N.aD){R=(0,g.I)();N.Wp=2;var C=R-N.bS.Eb<=N.maxStatefulTimeThresholdSec*1E3;N.applyStatefulNormalization&&C?N.Wp=4:C||(N.bS.wG=Infinity,N.bS.Eb=NaN);C=(N.Wp===4?g.UC(N.bS.wG,N.minimumLoudnessTargetLkfs,N.loudnessTargetLkfs):N.loudnessTargetLkfs)-v;if(N.Wp!==4){var Z,Y,Q,L,K=((Z=N.playerResponse)==null?void 0:(Y=Z.playerConfig)== null?void 0:(Q=Y.audioConfig)==null?void 0:(L=Q.loudnessNormalizationConfig)==null?void 0:L.statelessLoudnessAdjustmentGain)||0;C+=K}C=Math.min(C,0);N.preserveStatefulLoudnessTarget&&(N.bS.wG=v+C,N.bS.Eb=R);N=Math.min(1,Math.pow(10,C/20))||z}else N=f77(N)}else N=f77(N);return N}; f77=function(N){var z=1,v=g.LM(N.bS.experiments,"html5_default_ad_gain");v&&N.isAd()&&(z=v);var R;if(v=((R=N.N)==null?void 0:R.audio.N)||N.Lr)N.Wp=1;return Math.min(1,Math.pow(10,-v/20))||z}; Zk=function(N){var z=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],v=g.wB(N.bS)==="TVHTML5_SIMPLY"&&N.bS.V.ctheme==="MUSIC";N.MF||!g.S0(N.bS)&&!v||!z.includes(N.musicVideoType)&&!N.isExternallyHostedPodcast||(N.MF=!0);if(z=g.tr())z=/Starboard\/([0-9]+)/.exec(g.mU()),z=(z?parseInt(z[1],10):NaN)<10;v=N.bS;v=(g.wB(v)==="TVHTML5_CAST"||g.wB(v)==="TVHTML5"&&(v.V.cver.startsWith("6.20130725")||v.V.cver.startsWith("6.20130726")))&&N.bS.V.ctheme==="MUSIC";var R;if(R=!N.MF)v||(v=N.bS,v= g.wB(v)==="TVHTML5"&&v.V.cver.startsWith("7")),R=v;R&&!z&&(z=N.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",v=(N.X("cast_prefer_audio_only_for_atv_and_uploads")||N.X("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&N.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",z||v||N.isExternallyHostedPodcast)&&(N.MF=!0);return N.bS.deviceIsAudioOnly||N.MF&&N.bS.Y}; H0=function(N){var z,v,R;return((z=N.playerResponse)==null?void 0:(v=z.playerConfig)==null?void 0:(R=v.compositeVideoConfig)==null?void 0:R.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.sab=function(N){return N.X("html5_enable_sabr_live_captions")&&N.Hb()&&iM(N)||H0(N)}; oD=function(N){var z,v,R;return!!((z=N.playerResponse)==null?0:(v=z.playerConfig)==null?0:(R=v.mediaCommonConfig)==null?0:R.splitScreenEligible)}; Dk=function(N){var z;return!((z=N.playerResponse)==null||!z.compositePlayabilityStatus)}; TQY=function(N){return isNaN(N)?0:Math.max((Date.now()-N)/1E3-30,0)}; bM=function(N){return!(!N.DZ||!N.bS.Y)&&N.jn()}; tf=function(N){return N.jq&&N.enableServerStitchedDai}; Fo7=function(N){return N.uY&&!N.Ut}; iM=function(N){var z=N.X("html5_enable_sabr_on_drive")&&N.bS.qd==="gd";if(N.O$)return N.uY&&N.WL("fds",{fds:!0},!0),!1;if(N.bS.qd!=="yt"&&!z)return N.uY&&N.WL("dsvn",{ns:N.bS.qd},!0),!1;if(N.cotn||!N.V||N.V.isOtf||N.OB&&!N.X("html5_enable_sabr_csdai"))return!1;if(N.X("html5_use_sabr_requests_for_debugging"))return!0;N.uY&&N.WL("esfw",{usbc:N.uY,hsu:!!N.Ut},!0);if(N.uY&&N.Ut)return!0;if(N.X("html5_remove_client_sabr_determination"))return!1;var v=!N.V.Hb&&!N.Uu();z=v&&N9&&N.X("html5_enable_sabr_vod_streaming_xhr"); v=v&&!N9&&N.X("html5_enable_sabr_vod_non_streaming_xhr");var R=OY(N),C=N.X("html5_enable_sabr_drm_vod_streaming_xhr")&&N9&&N.Uu()&&!N.V.Hb&&(N.drmProduct==="1"?!1:!0);(z=z||v||R||C)&&!N.Ut&&N.WL("sabr",{loc:"m"},!0);return z&&!!N.Ut}; OY=function(N){var z;if(!(z=N9&&N.Hb()&&N.Uu()&&(N.drmProduct==="1"?!1:!0)&&N.X("html5_sabr_live_drm_streaming_xhr"))){z=N.Hb()&&!N.Uu()&&N9;var v=N.Hb()&&N.latencyClass!=="ULTRALOW"&&!N.isLowLatencyLiveStream&&N.X("html5_sabr_live_normal_latency_streaming_xhr"),R=N.isLowLatencyLiveStream&&N.X("html5_sabr_live_low_latency_streaming_xhr"),C=N.latencyClass==="ULTRALOW"&&N.X("html5_sabr_live_ultra_low_latency_streaming_xhr");z=z&&(v||R||C)}v=z;z=N.enableServerStitchedDai&&v&&N.X("html5_enable_sabr_ssdai_streaming_xhr"); v=!N.enableServerStitchedDai&&v;R=N.Hb()&&!N9&&N.X("html5_enable_sabr_live_non_streaming_xhr");N=N9&&(N.Lb()||oD(N)&&N.X("html5_enable_sabr_for_lifa_eligible_streams"));return z||v||R||N}; g.uT=function(N){return N.fZ&&iM(N)}; IDK=function(N){var z;if(z=!!N.cotn)z=N.videoId,z=!!z&&g.AK(z)===1;return z&&!N.DZ}; g.ID=function(N){if(!N.V||!N.W||!N.N)return!1;var z=N.V.V,v=!!z[N.W.id]&&Am(z[N.W.id].KV.V);z=!!z[N.N.id]&&Am(z[N.N.id].KV.V);return(N.W.itag==="0"||v)&&z}; Xe=function(N){return N.a7?["OK","LIVE_STREAM_OFFLINE"].includes(N.a7.status):!0}; Qa7=function(N){return(N=N.aM)&&N.showError?N.showError:!1}; Mk=function(N,z){return N.X(z)?!0:(N.fflags||"").includes(z+"=true")}; nk_=function(N){return N.X("html5_heartbeat_iff_heartbeat_params_filled")}; guv=function(N,z){z.inlineMetricEnabled&&(N.inlineMetricEnabled=!0);z.playback_progress_0s_url&&(N.VU=new Y9u(z));if(z=z.video_masthead_ad_quartile_urls)N.jf=z.quartile_0_url,N.AX=z.quartile_25_url,N.ze=z.quartile_50_url,N.PX=z.quartile_75_url,N.WX=z.quartile_100_url,N.qy=z.quartile_0_urls,N.Aj=z.quartile_25_urls,N.zc=z.quartile_50_urls,N.Pr=z.quartile_75_urls,N.wN=z.quartile_100_urls}; A57=function(N){var z={};N=g.f(N);for(var v=N.next();!v.done;v=N.next()){v=v.value;var R=v.split("=");R.length===2?z[R[0]]=R[1]:z[v]=!0}return z}; $IY=function(N){if(N){if(Yd2(N))return N;N=iKI(N);if(Yd2(N,!0))return N}return""}; g.msU=function(N){return N.captionsLanguagePreference||N.bS.captionsLanguagePreference||g.sY(N,"yt:cc_default_lang")||N.bS.gx}; N1=function(N){return!(!N.isLivePlayback||!N.hasProgressBarBoundaries())}; g.Nk=function(N){var z;return N.II||((z=N.suggestions)==null?void 0:z[0])||null}; g.z8=function(N){return N.hd&&(N.X("embeds_enable_pfp_always_unbranded")||N.bS.FH)}; g.vX=function(N){var z,v;return!!((z=N.embeddedPlayerConfig)==null?0:(v=z.embeddedPlayerFlags)==null?0:v.enableMusicUx)}; $sv=function(N){return N.Y||N.X("web_player_media_session_infinity")&&N.isLivePlayback}; Ru=function(N){return N.bS.N&&N.isPrivate}; g.Z2=function(N){var z=N.D(),v=g.C2(z),R=z.Dx;(z.X("embeds_web_enable_iframe_api_send_full_embed_url")||z.X("embeds_web_enable_rcat_validation_in_havs")||z.X("embeds_enable_autoplay_and_visibility_signals"))&&g.Pi(z)&&(R&&(v.thirdParty=Object.assign({},v.thirdParty,{embedUrl:R})),ILx(v,N));if(R=N.BL)v.clickTracking={clickTrackingParams:R};else if(z.X("html5_log_missing_itct")){var C;R=new g.XS("Missing ITCT in InnerTubeContext",{isAd:N.isAd(),DQ1:(C=z.getWebPlayerContextConfig())==null?void 0:C.contextId}); g.kE(R)}C=v.client||{};R="EMBED";var Z=P0(N);Z==="leanback"?R="WATCH":z.X("gvi_channel_client_screen")&&Z==="profilepage"?R="CHANNEL":N.kJ?R="LIVE_MONITOR":Z==="detailpage"?R="WATCH_FULL_SCREEN":Z==="adunit"?R="ADUNIT":Z==="sponsorshipsoffer"&&(R="UNKNOWN");C.clientScreen=R;if(z=N.kidsAppInfo)C.kidsAppInfo=JSON.parse(z);(R=N.u1)&&!z&&(C.kidsAppInfo={contentSettings:{ageUpMode:Usu[R]}});if(z=N.e4)C.unpluggedAppInfo={enableFilterMode:!0};(R=N.unpluggedFilterModeType)&&!z&&(C.unpluggedAppInfo={filterModeType:BQ2[R]}); if(z=N.Bc)C.unpluggedLocationInfo=z;v.client=C;C=v.request||{};N.o4&&(C.isPrefetch=!0);if(z=N.mdxEnvironment)C.mdxEnvironment=z;if(z=N.mdxControlMode)C.mdxControlMode=AsI[z];v.request=C;C=v.user||{};if(z=N.Rd)C.credentialTransferTokens=[{token:z,scope:"VIDEO"}];if(z=N.c5)C.delegatePurchases={oauthToken:z},C.kidsParent={oauthToken:z};v.user=C;if(C=N.contextParams)v.activePlayers=[{playerContextParams:C}];if(N=N.clientScreenNonce)v.clientScreenNonce=N;return v}; g.C2=function(N){var z=g.q2(),v=z.client||{};if(N.forcedExperiments){var R=N.forcedExperiments.split(","),C=[];R=g.f(R);for(var Z=R.next();!Z.done;Z=R.next())C.push(Number(Z.value));v.experimentIds=C}if(C=N.homeGroupInfo)v.homeGroupInfo=JSON.parse(C);if(C=N.getPlayerType())v.playerType=C;if(C=N.V.ctheme)v.theme=C;if(C=N.livingRoomAppMode)v.tvAppInfo=Object.assign({},v.tvAppInfo,{livingRoomAppMode:C});C=N.deviceYear;N.X("html5_propagate_device_year")&&C&&(v.tvAppInfo=Object.assign({},v.tvAppInfo,{deviceYear:C})); if(C=N.livingRoomPoTokenId)v.tvAppInfo=Object.assign({},v.tvAppInfo,{livingRoomPoTokenId:C});z.client=v;v=z.user||{};N.enableSafetyMode&&(v=Object.assign({},v,{enableSafetyMode:!0}));N.pageId&&(v=Object.assign({},v,{onBehalfOfUser:N.pageId}));z.user=v;v=N.Dx;N.X("embeds_web_enable_iframe_api_send_full_embed_url")||N.X("embeds_web_enable_rcat_validation_in_havs")||N.X("embeds_enable_autoplay_and_visibility_signals")||!v||(z.thirdParty={embedUrl:v});return z}; S3u=function(N,z,v){var R=N.videoId,C=g.Z2(N),Z=N.D(),Y={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(mB()),referer:document.location.toString(),signatureTimestamp:20208};g.os();N.isAutonav&&(Y.autonav=!0);g.D_(0,141)&&(Y.autonavState=g.D_(0,140)?"STATE_OFF":"STATE_ON");Y.autoCaptionsDefaultOn=g.D_(0,66);Jsf(N)&&(Y.autoplay=!0);Z.Y&&N.cycToken&&(Y.cycToken=N.cycToken);Z.enablePrivacyFilter&&(Y.enablePrivacyFilter=!0);N.isFling&&(Y.fling=!0);var Q=N.forceAdsUrl;if(Q){var L={},K=[];Q= Q.split(",");Q=g.f(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var W=l.split("|");W.length!==3||l.includes("=")||(W[0]="breaktype="+W[0],W[1]="offset="+W[1],W[2]="url="+W[2]);l={adtype:"video_ad"};W=g.f(W);for(var G=W.next();!G.done;G=W.next()){var x=g.f(G.value.split("="));G=x.next().value;x=ZOu(x);l[G]=x.join("=")}W=l.url;G=l.presetad;x=l.viralresponseurl;var e=Number(l.campaignid);if(l.adtype==="in_display_ad")W&&(L.url=W),G&&(L.presetAd=G),x&&(L.viralAdResponseUrl=x),e&&(L.viralCampaignId= String(e));else if(l.adtype==="video_ad"){var d={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(l.offset)||0)}};if(l=gkY[l.breaktype])d.breakType=l;W&&(d.url=W);G&&(d.presetAd=G);x&&(d.viralAdResponseUrl=x);e&&(d.viralCampaignId=String(e));K.push(d)}}Y.forceAdParameters={videoAds:K,inDisplayAd:L}}N.isInlinePlaybackNoAd&&(Y.isInlinePlaybackNoAd=!0);N.isLivingRoomDeeplink&&(Y.isLivingRoomDeeplink=!0);L=N.XT;if(L!=null){L={startWalltime:String(L)};if(K=N.ij)L.manifestDuration=String(K||14400); Y.liveContext=L}if(N.mutedAutoplay){Y.mutedAutoplay=!0;L=Z.getWebPlayerContextConfig();var T,m;(L==null?0:(T=L.embedsHostFlags)==null?0:T.allowMutedAutoplayDurationMode)&&(L==null?0:(m=L.embedsHostFlags)==null?0:m.allowMutedAutoplayDurationMode.includes(pkK[N.mutedAutoplayDurationMode]))&&(Y.mutedAutoplayDurationMode=pkK[N.mutedAutoplayDurationMode])}if(N.X6?0:N.g$)Y.splay=!0;T=N.vnd;T===5&&(Y.vnd=T);T={};if(m=N.isMdxPlayback)T.triggeredByMdx=m;if(m=N.aK)T.skippableAdsSupported=m.split(",").includes("ska"); if(K=N.yj){m=N.IC;L=[];K=g.f(XAY(K));for(Q=K.next();!Q.done;Q=K.next()){Q=Q.value;l=Q.platform;Q={applicationState:Q.Zq?"INACTIVE":"ACTIVE",clientFormFactor:k$u[l]||"UNKNOWN_FORM_FACTOR",clientName:ugY[Q.nS]||"UNKNOWN_INTERFACE",clientVersion:Q.deviceVersion||"",platform:P57[l]||"UNKNOWN_PLATFORM"};l={};if(m){W=void 0;try{W=JSON.parse(m)}catch(n){g.PN(n)}W&&(l={params:[{key:"ms",value:W.ms}]},W.advertising_id&&(l.advertisingId=W.advertising_id),W.limit_ad_tracking!==void 0&&W.limit_ad_tracking!== null&&(l.limitAdTracking=W.limit_ad_tracking),Q.osName=W.os_name,Q.userAgent=W.user_agent,Q.windowHeightPoints=W.window_height_points,Q.windowWidthPoints=W.window_width_points)}L.push({adSignalsInfo:l,remoteClient:Q})}T.remoteContexts=L}m=N.sourceContainerPlaylistId;L=N.serializedMdxMetadata;if(m||L)K={},m&&(K.mdxPlaybackContainerInfo={sourceContainerPlaylistId:m}),L&&(K.serializedMdxMetadata=L),T.mdxPlaybackSourceContext=K;Y.mdxContext=T;T=z.width;T>0&&(Y.playerWidthPixels=Math.round(T));if(z=z.height)Y.playerHeightPixels= Math.round(z);v!==0&&(Y.vis=v);if(v=Z.widgetReferrer)Y.widgetReferrer=v.substring(0,128);g.Uu(Z)&&Y&&(Y.ancestorOrigins=Z.ancestorOrigins);N.defaultActiveSourceVideoId&&(Y.compositeVideoContext={defaultActiveSourceVideoId:N.defaultActiveSourceVideoId});if(Z=Z.getWebPlayerContextConfig())Y.encryptedHostFlags=Z.encryptedHostFlags;R={videoId:R,context:C,playbackContext:{contentPlaybackContext:Y}};N.reloadPlaybackParams&&(R.playbackContext.reloadPlaybackContext={reloadPlaybackParams:N.reloadPlaybackParams}); N.contentCheckOk&&(R.contentCheckOk=!0);if(C=N.clientPlaybackNonce)R.cpn=C;if(C=N.playerParams)R.params=C;if(C=N.playlistId)R.playlistId=C;N.racyCheckOk&&(R.racyCheckOk=!0);C=N.D();if(Y=C.embedConfig)R.serializedThirdPartyEmbedConfig=Y;R.captionParams={};Y=g.D_(g.os(),65);N.deviceCaptionsOn!=null?R.captionParams.deviceCaptionsOn=N.deviceCaptionsOn:g.ci(C)&&(R.captionParams.deviceCaptionsOn=Y!=null?!Y:!1);N.aN&&(R.captionParams.deviceCaptionsLangPref=N.aN);N.Nk.length?R.captionParams.viewerSelectedCaptionLangs= N.Nk:g.ci(C)&&(Y=g.rq(),Y==null?0:Y.length)&&(R.captionParams.viewerSelectedCaptionLangs=Y);Y=N.fetchType==="onesie"&&N.X("html5_onesie_attach_po_token");Z=N.fetchType!=="onesie"&&N.X("html5_non_onesie_attach_po_token");if(Y||Z)Y=N.D(),Y.L5&&(R.serviceIntegrityDimensions={},R.serviceIntegrityDimensions.poToken=Y.L5);C.X("fetch_att_independently")&&(R.attestationRequest={omitBotguardData:!0});R.playbackContext||(R.playbackContext={});R.playbackContext.devicePlaybackCapabilities=VCm(N);R.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&N.WL("noVp9",{});return R}; VCm=function(N){var z=!(N==null?0:N.nA())&&(N==null?void 0:N.Hb())&&N0(),v;if(!(v=N==null)){v=g.jM(N);N=N.D().B;var R=YN("243");v=!(R&&yN(v,R,N,!0)===!0)}return{supportsVp9Encoding:!(v||z),supportXhr:N9}}; h0U=function(N,z){var v,R,C;return g.S(function(Z){if(Z.W==1)return v={context:g.C2(N.D()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:N.videoId,cpn:N.clientPlaybackNonce}}]},R=g.N3(EkO),g.k(Z,g.rZ(z,v,R),2);C=Z.V;return Z.return(C)})}; Hvu=function(N,z,v){var R=g.LM(z.experiments,"bg_vm_reinit_threshold");(!HM||(0,g.I)()-HM>R)&&h0U(N,v).then(function(C){C&&(C=C.botguardData)&&g.Dv(C,z)},function(C){N.HL()||(C=UH(C),N.WL("attf",C.details))})}; Yy=function(N,z){g.H.call(this);this.app=N;this.state=z}; je=function(N,z,v){N.state.V.hasOwnProperty(z)||iH(N,z,v);N.state.L[z]=function(){return v.apply(N,g.SI.apply(0,arguments))}; N.state.G.add(z)}; au=function(N,z,v){N.state.V.hasOwnProperty(z)||iH(N,z,v);N.app.D().Y&&(N.state.Y[z]=function(){return v.apply(N,g.SI.apply(0,arguments))},N.state.G.add(z))}; iH=function(N,z,v){N.state.V[z]=function(){return v.apply(N,g.SI.apply(0,arguments))}}; g.QI=function(N,z,v){return N.state.V[z].apply(N.state.V,g.U(v))}; L2=function(){g.mN.call(this);this.B=new Map}; K2=function(){g.H.apply(this,arguments);this.element=null;this.G=new Set;this.L={};this.Y={};this.V={};this.J=new Set;this.Z=new L2;this.W=new L2;this.N=new L2;this.B=new L2}; okm=function(N,z,v){typeof N==="string"&&(N={mediaContentUrl:N,startSeconds:z,suggestedQuality:v});a:{if((z=N.mediaContentUrl)&&(z=/\/([ve]|embed)\/([^#?]+)/.exec(z))&&z[2]){z=z[2];break a}z=null}N.videoId=z;return lH(N)}; lH=function(N,z,v){if(typeof N==="string")return{videoId:N,startSeconds:z,suggestedQuality:v};z={};v=g.f(Dsf);for(var R=v.next();!R.done;R=v.next())R=R.value,N[R]&&(z[R]=N[R]);return z}; bvf=function(N,z,v,R){if(g.v$(N)&&!Array.isArray(N)){z="playlist list listType index startSeconds suggestedQuality".split(" ");v={};for(R=0;R32&&R.push("hfr");z.isHdr()&&R.push("hdr");z.primaries==="bt2020"&&R.push("wcg");v.video_quality_features=R}}if(N=N.getPlaylistId())v.list=N;return v}; yI=function(){WX.apply(this,arguments)}; f2=function(N,z){var v={};if(N.app.D().Vp){N=g.f(Xku);for(var R=N.next();!R.done;R=N.next())R=R.value,z.hasOwnProperty(R)&&(v[R]=z[R]);if(z=v.qoe_cat)N="",typeof z==="string"&&z.length>0&&(N=z.split(",").filter(function(C){return rs2.includes(C)}).join(",")),v.qoe_cat=N; u37(v)}else for(N=g.f(cs_),R=N.next();!R.done;R=N.next())R=R.value,z.hasOwnProperty(R)&&(v[R]=z[R]);return v}; u37=function(N){var z=N.raw_player_response;if(!z){var v=N.player_response;v&&(z=JSON.parse(v))}delete N.player_response;delete N.raw_player_response;if(z){N.raw_player_response={streamingData:z.streamingData,playerConfig:z.playerConfig};var R;if((R=z.playbackTracking)==null?0:R.qoeUrl)N.raw_player_response=Object.assign({},N.raw_player_response,{playbackTracking:{qoeUrl:z.playbackTracking.qoeUrl}});var C;if((C=z.videoDetails)==null?0:C.videoId)N.raw_player_response=Object.assign({},N.raw_player_response, {videoDetails:{videoId:z.videoDetails.videoId}})}}; d1=function(N,z,v){var R=N.app.LG(v);if(!R)return 0;N=R-N.app.getCurrentTime(v);return z-N}; MCu=function(N){var z=z===void 0?5:z;return N?q3U[N]||z:z}; g.sr=function(){yI.apply(this,arguments)}; wkO=function(N){iH(N,"getInternalApiInterface",N.getInternalApiInterface);iH(N,"addEventListener",N.jt);iH(N,"removeEventListener",N.zVd);iH(N,"cueVideoByPlayerVars",N.yW);iH(N,"loadVideoByPlayerVars",N.j9);iH(N,"preloadVideoByPlayerVars",N.QPl);iH(N,"getAdState",N.getAdState);iH(N,"sendAbandonmentPing",N.sendAbandonmentPing);iH(N,"setLoopRange",N.setLoopRange);iH(N,"getLoopRange",N.getLoopRange);iH(N,"setAutonavState",N.setAutonavState);iH(N,"seekTo",N.LSp);iH(N,"seekBy",N.Mrd);iH(N,"seekToLiveHead", N.seekToLiveHead);iH(N,"requestSeekToWallTimeSeconds",N.requestSeekToWallTimeSeconds);iH(N,"seekToStreamTime",N.seekToStreamTime);iH(N,"startSeekCsiAction",N.startSeekCsiAction);iH(N,"getStreamTimeOffset",N.getStreamTimeOffset);iH(N,"getVideoData",N.dL);iH(N,"setInlinePreview",N.setInlinePreview);iH(N,"getAppState",N.getAppState);iH(N,"updateLastActiveTime",N.updateLastActiveTime);iH(N,"setBlackout",N.setBlackout);iH(N,"setUserEngagement",N.setUserEngagement);iH(N,"updateSubtitlesUserSettings",N.updateSubtitlesUserSettings); iH(N,"getPresentingPlayerType",N.dY);iH(N,"canPlayType",N.canPlayType);iH(N,"updatePlaylist",N.updatePlaylist);iH(N,"updateVideoData",N.updateVideoData);iH(N,"updateEnvironmentData",N.updateEnvironmentData);iH(N,"sendVideoStatsEngageEvent",N.S9U);iH(N,"productsInVideoVisibilityUpdated",N.productsInVideoVisibilityUpdated);iH(N,"setSafetyMode",N.setSafetyMode);iH(N,"isAtLiveHead",function(z){return N.isAtLiveHead(void 0,z)}); iH(N,"getVideoAspectRatio",N.getVideoAspectRatio);iH(N,"getPreferredQuality",N.getPreferredQuality);iH(N,"getPlaybackQualityLabel",N.getPlaybackQualityLabel);iH(N,"setPlaybackQualityRange",N.jjS);iH(N,"onAdUxClicked",N.onAdUxClicked);iH(N,"getFeedbackProductData",N.getFeedbackProductData);iH(N,"getStoryboardFrame",N.getStoryboardFrame);iH(N,"getStoryboardFrameIndex",N.getStoryboardFrameIndex);iH(N,"getStoryboardLevel",N.getStoryboardLevel);iH(N,"getNumberOfStoryboardLevels",N.getNumberOfStoryboardLevels); iH(N,"getCaptionWindowContainerId",N.getCaptionWindowContainerId);iH(N,"getAvailableQualityLabels",N.getAvailableQualityLabels);iH(N,"addCueRange",N.addCueRange);iH(N,"addUtcCueRange",N.addUtcCueRange);iH(N,"showAirplayPicker",N.showAirplayPicker);iH(N,"dispatchReduxAction",N.dispatchReduxAction);iH(N,"getPlayerResponse",N.P3);iH(N,"getWatchNextResponse",N.B3);iH(N,"getHeartbeatResponse",N.qP);iH(N,"getCurrentTime",N.TL);iH(N,"getDuration",N.rq);iH(N,"getPlayerState",N.getPlayerState);iH(N,"getPlayerStateObject", N.rL);iH(N,"getVideoLoadedFraction",N.getVideoLoadedFraction);iH(N,"getProgressState",N.getProgressState);iH(N,"getVolume",N.getVolume);iH(N,"setVolume",N.t$);iH(N,"isMuted",N.isMuted);iH(N,"mute",N.U$);iH(N,"unMute",N.Tx);iH(N,"loadModule",N.loadModule);iH(N,"unloadModule",N.unloadModule);iH(N,"getOption",N.H_);iH(N,"getOptions",N.getOptions);iH(N,"setOption",N.setOption);iH(N,"loadVideoById",N.OF);iH(N,"loadVideoByUrl",N.A6);iH(N,"playVideo",N.bl);iH(N,"loadPlaylist",N.loadPlaylist);iH(N,"nextVideo", N.nextVideo);iH(N,"previousVideo",N.previousVideo);iH(N,"playVideoAt",N.playVideoAt);iH(N,"getDebugText",N.getDebugText);iH(N,"getWebPlayerContextConfig",N.getWebPlayerContextConfig);iH(N,"notifyShortsAdSwipeEvent",N.notifyShortsAdSwipeEvent);iH(N,"getVideoContentRect",N.getVideoContentRect);iH(N,"setSqueezeback",N.setSqueezeback);iH(N,"toggleSubtitlesOn",N.toggleSubtitlesOn);iH(N,"isSubtitlesOn",N.isSubtitlesOn);iH(N,"reportPlaybackIssue",N.reportPlaybackIssue);iH(N,"setAutonav",N.setAutonav);iH(N, "isNotServable",N.isNotServable);iH(N,"channelSubscribed",N.channelSubscribed);iH(N,"channelUnsubscribed",N.channelUnsubscribed);iH(N,"togglePictureInPicture",N.togglePictureInPicture);iH(N,"supportsGaplessAudio",N.supportsGaplessAudio);iH(N,"supportsGaplessShorts",N.supportsGaplessShorts);iH(N,"enqueueVideoByPlayerVars",function(z){return void N.enqueueVideoByPlayerVars(z)}); iH(N,"clearQueue",N.clearQueue);iH(N,"getAudioTrack",N.Yr);iH(N,"setAudioTrack",N.lTp);iH(N,"getAvailableAudioTracks",N.mY);iH(N,"getMaxPlaybackQuality",N.getMaxPlaybackQuality);iH(N,"getUserPlaybackQualityPreference",N.getUserPlaybackQualityPreference);iH(N,"getSubtitlesUserSettings",N.getSubtitlesUserSettings);iH(N,"resetSubtitlesUserSettings",N.resetSubtitlesUserSettings);iH(N,"setMinimized",N.setMinimized);iH(N,"setOverlayVisibility",N.setOverlayVisibility);iH(N,"confirmYpcRental",N.confirmYpcRental); iH(N,"queueNextVideo",N.queueNextVideo);iH(N,"handleExternalCall",N.handleExternalCall);iH(N,"logApiCall",N.logApiCall);iH(N,"isExternalMethodAvailable",N.isExternalMethodAvailable);iH(N,"setScreenLayer",N.setScreenLayer);iH(N,"getCurrentPlaylistSequence",N.getCurrentPlaylistSequence);iH(N,"getPlaylistSequenceForTime",N.getPlaylistSequenceForTime);iH(N,"shouldSendVisibilityState",N.shouldSendVisibilityState);iH(N,"syncVolume",N.syncVolume);iH(N,"highlightSettingsMenuItem",N.highlightSettingsMenuItem); iH(N,"openSettingsMenuItem",N.openSettingsMenuItem);iH(N,"getEmbeddedPlayerResponse",N.getEmbeddedPlayerResponse);iH(N,"getVisibilityState",N.getVisibilityState);iH(N,"isMutedByMutedAutoplay",N.isMutedByMutedAutoplay);iH(N,"isMutedByEmbedsMutedAutoplay",N.isMutedByEmbedsMutedAutoplay);iH(N,"setGlobalCrop",N.setGlobalCrop);iH(N,"setInternalSize",N.setInternalSize);iH(N,"setFauxFullscreen",N.setFauxFullscreen);iH(N,"setAppFullscreen",N.setAppFullscreen)}; Fj=function(N,z,v){N=g.T8(N.Fv(),z);return v?(v.addOnDisposeCallback(N),null):N}; g.n2=function(N,z,v){return N.app.D().ZT?z:g.WA("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:z,SHORTCUT:v})}; Nqv=function(N){N.Fv().element.setAttribute("aria-live","polite")}; g.mQ=function(N,z){g.sr.call(this,N,z);wkO(this);au(this,"addEventListener",this.wX);au(this,"removeEventListener",this.rdo);au(this,"cueVideoByPlayerVars",this.xu);au(this,"loadVideoByPlayerVars",this.Q_);au(this,"preloadVideoByPlayerVars",this.wcd);au(this,"loadVideoById",this.OF);au(this,"loadVideoByUrl",this.A6);au(this,"playVideo",this.bl);au(this,"loadPlaylist",this.loadPlaylist);au(this,"nextVideo",this.nextVideo);au(this,"previousVideo",this.previousVideo);au(this,"playVideoAt",this.playVideoAt); au(this,"getVideoData",this.SF);au(this,"seekBy",this.XHT);au(this,"seekTo",this.FST);au(this,"showControls",this.showControls);au(this,"hideControls",this.hideControls);au(this,"cancelPlayback",this.cancelPlayback);au(this,"getProgressState",this.getProgressState);au(this,"isInline",this.isInline);au(this,"setInline",this.setInline);au(this,"setLoopVideo",this.setLoopVideo);au(this,"getLoopVideo",this.getLoopVideo);au(this,"getVideoContentRect",this.getVideoContentRect);au(this,"getVideoStats",this.H3); au(this,"getCurrentTime",this.nK);au(this,"getDuration",this.rq);au(this,"getPlayerState",this.Z2);au(this,"getVideoLoadedFraction",this.Ir);au(this,"mute",this.U$);au(this,"unMute",this.Tx);au(this,"setVolume",this.t$);au(this,"loadModule",this.loadModule);au(this,"unloadModule",this.unloadModule);au(this,"getOption",this.H_);au(this,"getOptions",this.getOptions);au(this,"setOption",this.setOption);au(this,"addCueRange",this.addCueRange);au(this,"getDebugText",this.getDebugText);au(this,"getStoryboardFormat", this.getStoryboardFormat);au(this,"toggleFullscreen",this.toggleFullscreen);au(this,"isFullscreen",this.isFullscreen);au(this,"getPlayerSize",this.getPlayerSize);au(this,"toggleSubtitles",this.toggleSubtitles);this.app.D().X("embeds_enable_move_set_center_crop_to_public")||au(this,"setCenterCrop",this.setCenterCrop);au(this,"setFauxFullscreen",this.setFauxFullscreen);au(this,"setSizeStyle",this.setSizeStyle);au(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);au(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); Ovf(this)}; g.$y=function(N){N=N.eV();var z=N.JT.get("endscreen");return z&&z.gt()?!0:N.Hn()}; g.Ur=function(N,z){N.getPresentingPlayerType()===3?N.publish("mdxautoplaycancel"):N.Qp("onAutonavCancelled",z)}; g.AW=function(N){var z=BX(N.eV());return N.app.bY&&!N.isFullscreen()||N.getPresentingPlayerType()===3&&z&&z.sA()&&z.Ab()||!!N.getPlaylist()}; g.g1=function(N,z){g.QI(N,"addEmbedsConversionTrackingParams",[z])}; g.ky=function(N){return(N=g.p2(N.eV()))?N.pZ():{}}; g.z_O=function(N){N=(N=N.getVideoData())&&N.W;return!!N&&!(!N.audio||!N.video)&&N.mimeType!=="application/x-mpegURL"}; g.PX=function(N,z,v){N=N.n0().element;var R=k5(N.children,function(C){C=Number(C.getAttribute("data-layer"));return v-C||1}); R<0&&(R=-(R+1));Rz(N,z,R);z.setAttribute("data-layer",String(v))}; g.VI=function(N){var z=N.D();if(!z.Bc)return!1;var v=N.getVideoData();if(!v||N.getPresentingPlayerType()===3)return!1;var R=(!v.isLiveDefaultBroadcast||z.X("allow_poltergust_autoplay"))&&!N1(v);R=v.isLivePlayback&&(!z.X("allow_live_autoplay")||!R);var C=v.isLivePlayback&&z.X("allow_live_autoplay_on_mweb");N=N.getPlaylist();N=!!N&&N.sA();var Z=v.Id&&v.Id.playerOverlays||null;Z=!!(Z&&Z.playerOverlayRenderer&&Z.playerOverlayRenderer.autoplay);Z=v.hd&&Z;return!v.ypcPreview&&(!R||C)&&!g.J8(v.PL,"ypc")&& !N&&(!g.Uu(z)||Z)}; R_Y=function(N,z){N=v0u(N.app.dg().N);N=g.f(N);for(var v=N.next();!v.done;v=N.next()){v=v.value;var R=v.getAvailableAudioTracks(),C=null;R=g.f(R);for(var Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.getLanguageInfo().getId()===z){C=Z;break}C&&v.XX(C,!0)}}; Se=function(){hV.apply(this,arguments);this.requestHeaders={}}; hW=function(){Er||(Er=new Se);return Er}; HX=function(N,z){z?N.requestHeaders.Authorization="Bearer "+z:delete N.requestHeaders.Authorization}; g.ou=function(N){g.H.call(this);var z=this;this.kT=N;this.Oi={LL:function(){return z.kT}}}; g.D2=function(N,z,v,R){R=R===void 0?!1:R;g.lG.call(this,z);var C=this;this.C=N;this.PL=R;this.Y=new g.VV(this);this.fade=new g.zX(this,v,!0,void 0,void 0,function(){C.q7()}); g.b(this,this.Y);g.b(this,this.fade)}; bH=function(N){var z=N.C.getRootNode();return N.C.X("web_watch_pip")||N.C.X("web_shorts_pip")?oI(z):document}; Csv=function(N){N.W&&(document.activeElement&&g.ZQ(N.element,document.activeElement)&&N.W.focus(),N.W.setAttribute("aria-expanded","false"),N.W=void 0);g.Be(N.Y);N.J=void 0}; tW=function(N,z,v){N.NE()?N.pV():N.uF(z,v)}; Or=function(N,z,v,R){R=new g.X({K:"div",GU:["ytp-linked-account-popup-button"],OT:R,T:{role:"button",tabindex:"0"}});z=new g.X({K:"div",U:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{K:"div",U:"ytp-linked-account-popup-title",OT:z},{K:"div",U:"ytp-linked-account-popup-description",OT:v},{K:"div",U:"ytp-linked-account-popup-buttons",j:[R]}]});g.D2.call(this,N,{K:"div",U:"ytp-linked-account-popup-container",j:[z]},100);var C=this;this.dialog=z;g.b(this,this.dialog); R.listen("click",function(){C.pV()}); g.b(this,R);g.PX(this.C,this.element,4);this.hide()}; g.Xj=function(N,z,v,R){g.lG.call(this,N);this.priority=z;v&&g.Iu(this,v);R&&this.Qy(R)}; g.r1=function(N,z,v,R){N=N===void 0?{}:N;z=z===void 0?[]:z;v=v===void 0?!1:v;R=R===void 0?!1:R;z.push("ytp-menuitem");var C=N;"role"in C||(C.role="menuitem");v||(C=N,"tabindex"in C||(C.tabindex="0"));N={K:v?"a":"div",GU:z,T:N,j:[{K:"div",U:"ytp-menuitem-icon",OT:"{{icon}}"},{K:"div",U:"ytp-menuitem-label",OT:"{{label}}"},{K:"div",U:"ytp-menuitem-content",OT:"{{content}}"}]};R&&N.j.push({K:"div",U:"ytp-menuitem-secondary-icon",OT:"{{secondaryIcon}}"});return N}; g.Iu=function(N,z){N.updateValue("label",z)}; uH=function(N){g.Xj.call(this,g.r1({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var z=this;this.C=N;this.W=this.V=!1;this.b$=N.cW();N.createServerVe(this.element,this,!0);this.S(this.C,"settingsMenuVisibilityChanged",function(v){z.Fm(v)}); this.S(this.C,"videodatachange",this.N);this.listen("click",this.onClick);this.N()}; cX=function(N){return N?g.xt(N):""}; q1=function(N){g.H.call(this);this.api=N}; M1=function(N){q1.call(this,N);var z=this;iH(N,"setAccountLinkState",function(v){z.setAccountLinkState(v)}); iH(N,"updateAccountLinkingConfig",function(v){z.updateAccountLinkingConfig(v)}); N.addEventListener("videodatachange",function(v,R){z.onVideoDataChange(R)}); N.addEventListener("settingsMenuInitialized",function(){z.menuItem=new uH(z.api);g.b(z,z.menuItem)})}; ZbK=function(N){this.api=N;this.V={}}; w1=function(N,z,v,R){z in N.V||(v=new g.zt(v,R,{id:z,priority:2,namespace:"appad"}),N.api.QT([v],1),N.V[z]=v)}; NO=function(N){q1.call(this,N);var z=this;this.events=new g.VV(this);g.b(this,this.events);this.V=new ZbK(this.api);this.events.S(this.api,"legacyadtrackingpingreset",function(){z.V.V={}}); this.events.S(this.api,"legacyadtrackingpingchange",function(v){var R=z.V;w1(R,"part2viewed",1,0x8000000000000);w1(R,"engagedview",Math.max(1,v.A0*1E3),0x8000000000000);if(!v.isLivePlayback){var C=v.lengthSeconds*1E3;Ce(v)&&R.api.X("html5_shorts_gapless_ads_duration_fix")&&(C=R.api.getProgressState().seekableEnd*1E3-v.sz);w1(R,"videoplaytime25",C*.25,C);w1(R,"videoplaytime50",C*.5,C);w1(R,"videoplaytime75",C*.75,C);w1(R,"videoplaytime100",C,0x8000000000000);w1(R,"conversionview",C,0x8000000000000); w1(R,"videoplaybackstart",1,C);w1(R,"videoplayback2s",2E3,C);w1(R,"videoplayback10s",1E4,C)}}); this.events.S(this.api,g.R2("appad"),this.W);this.events.S(this.api,g.C7("appad"),this.W)}; avU=function(N,z,v){if(!(v in z))return!1;z=z[v];Array.isArray(z)||(z=[z]);z=g.f(z);for(v=z.next();!v.done;v=z.next()){v=v.value;var R={CPN:N.api.getVideoData().clientPlaybackNonce};v=g.pj(v,R);R=void 0;R=R===void 0?!1:R;(R=uc(cL(v,Y__),v,R,"Active View 3rd Party Integration URL"))||(R=void 0,R=R===void 0?!1:R,R=uc(cL(v,ibI),v,R,"Google/YouTube Brand Lift URL"));R||(R=void 0,R=R===void 0?!1:R,R=uc(cL(v,jJU),v,R,"Nielsen OCR URL"));g.Hd(v,void 0,R)}return!0}; ze=function(N,z){QJ2(N,z).then(function(v){g.Hd(z,void 0,void 0,v)})}; vO=function(N,z){z.forEach(function(v){ze(N,v)})}; QJ2=function(N,z){return g.nM(N.api.D())&&j5(z)&&iQ(z)?g.CW(N.api.D(),g.hf(N.api.getVideoData())).then(function(v){var R;v&&(R={Authorization:"Bearer "+v});return R},void 0):gm()}; LJY=function(N){q1.call(this,N);this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"videoready",function(z){if(N.getPresentingPlayerType()===1){var v,R,C={playerDebugData:{pmlSignal:!!((v=z.getPlayerResponse())==null?0:(R=v.adPlacements)==null?0:R.some(function(Z){var Y;return Z==null?void 0:(Y=Z.adPlacementRenderer)==null?void 0:Y.renderer})), contentCpn:z.clientPlaybackNonce}};g.aX("adsClientStateChange",C)}})}; Rp=function(N){g.X.call(this,{K:"button",GU:["ytp-button","ytp-autonav-toggle"],T:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{K:"div",U:"ytp-autonav-toggle-button-container",j:[{K:"div",U:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.C=N;this.W=[];this.V=!1;this.isChecked=!0;N.createClientVe(this.element,this,113681);this.S(N,"presentingplayerstatechange",this.AV);this.listen("click",this.onClick);this.C.D().X("web_player_autonav_toggle_always_listen")&& KJ7(this);Fj(N,this.element,this);this.AV()}; KJ7=function(N){N.W.push(N.S(N.C,"videodatachange",N.AV));N.W.push(N.S(N.C,"videoplayerreset",N.AV));N.W.push(N.S(N.C,"onPlaylistUpdate",N.AV));N.W.push(N.S(N.C,"autonavchange",N.lX))}; lv2=function(N){N.isChecked=N.isChecked;N.e8("ytp-autonav-toggle-button").setAttribute("aria-checked",String(N.isChecked));var z=N.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";N.updateValue("title",z);N.updateValue("label",z);N.C.Ql()}; WJu=function(N){return N.C.D().X("web_player_autonav_use_server_provided_state")&&MN(g.h(N.qv()))}; GzK=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"standardControlsInitialized",function(){var v=new Rp(N);g.b(z,v);N.oo(v,"RIGHT_CONTROLS_LEFT")})}; Cs=function(N,z){g.Xj.call(this,g.r1({role:"menuitemcheckbox","aria-checked":"false"}),z,N,{K:"div",U:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; ZS=function(N,z){N.checked=z;N.element.setAttribute("aria-checked",String(N.checked))}; x$U=function(N){var z=!N.D().Ut&&N.getPresentingPlayerType()!==3;return N.isFullscreen()||z}; g.YY=function(N,z,v,R){var C=N.currentTarget;if((v===void 0||!v)&&g.Ff(N))return N.preventDefault(),!0;z.pauseVideo();N=g.h(C.getAttribute("href"));g.b4(N,R,!0);return!1}; g.ip=function(N,z,v){if(X2(z.D())&&z.getPresentingPlayerType()!==2){if(g.Ff(v))return z.isFullscreen()&&!z.D().externalFullscreen&&z.toggleFullscreen(),v.preventDefault(),!0}else{var R=g.Ff(v);R&&z.pauseVideo();g.b4(N,void 0,!0);R&&(g.tX(N),v.preventDefault())}return!1}; JG7=function(){var N=e_2.includes("es")?{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,T:{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"}}]}:{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,T:{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"}}]};N.U="ytp-subtitles-button-icon";return N}; jd=function(){return{K:"div",U:"ytp-spinner-container",j:[{K:"div",U:"ytp-spinner-rotator",j:[{K:"div",U:"ytp-spinner-left",j:[{K:"div",U:"ytp-spinner-circle"}]},{K:"div",U:"ytp-spinner-right",j:[{K:"div",U:"ytp-spinner-circle"}]}]}]}}; ap=function(N){if(document.createRange){var z=document.createRange();z&&(z.selectNodeContents(N),N=window.getSelection())&&(N.removeAllRanges(),N.addRange(z))}}; Ks=function(N){var z=N.X("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica";Cs.call(this,z,g.Qo.M0);var v=this;this.C=N;this.V=!1;this.W=new g.cn(function(){g.jW(v.element,"ytp-menuitem-highlighted")},0); this.b$=N.cW();this.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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.Z,this);this.listen(Ls,this.N);g.b(this,this.W)}; lp=function(N){q1.call(this,N);var z=this;this.V=!1;N.addEventListener("settingsMenuInitialized",function(){yGv(z)}); N.addEventListener("highlightSettingsMenu",function(v){yGv(z);var R=z.menuItem;v==="menu_item_cinematic_lighting"&&(g.Ye(R.element,"ytp-menuitem-highlighted"),g.Ye(R.element,"ytp-menuitem-highlight-transition-enabled"),R.W.start())}); iH(N,"updateCinematicSettings",function(v){z.updateCinematicSettings(v)})}; yGv=function(N){N.menuItem||(N.menuItem=new Ks(N.api),g.b(N,N.menuItem),N.menuItem.FW(N.V))}; fvb=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"applicationvideodatachange",function(v,R){R=R.clipConfig;v==="dataloaded"&&R&&R.startTimeMs!=null&&R.endTimeMs!=null&&z.api.setLoopRange({startTimeMs:Math.floor(Number(R.startTimeMs)),endTimeMs:Math.floor(Number(R.endTimeMs)),postId:R.postId,type:"clips"})})}; WO=function(N){q1.call(this,N);this.events=new g.VV(N);g.b(this,this.events);iH(N,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));iH(N,"setCreatorEndscreenHideButton",this.V.bind(this))}; Ge=function(N,z,v,R){Cs.call(this,"Volumen estable",g.Qo.Gr);g.Ye(this.element,"ytp-drc-menu-item");this.b$=N.cW();this.Z=z;this.V=v;this.hasDrcAudioTrack=R;N.addEventListener("videodatachange",this.W.bind(this));N.X("mta_drc_mutual_exclusion_removal")&&this.S(N,"onPlaybackAudioChange",this.W);N=this.V()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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.N,this);ZS(this,N);this.b$.dH(this)}; xY=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);N.X("html5_show_drc_toggle")&&N.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new Ge(z.api,z.setDrcUserPreference.bind(z),z.getDrcUserPreference.bind(z),z.W.bind(z)),g.b(z,z.menuItem))}); iH(this.api,"setDrcUserPreference",function(R){z.setDrcUserPreference(R)}); iH(this.api,"getDrcUserPreference",function(){return z.getDrcUserPreference()}); iH(this.api,"hasDrcAudioTrack",function(){return z.W()}); var v;this.V=(v=g.Pe("yt-player-drc-pref"))!=null?v:1;this.updateEnvironmentData()}; ed=function(N){q1.call(this,N);var z=this;this.V={};this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"videodatachange",function(){z.onVideoDataChange()}); this.events.S(N,g.R2("embargo"),function(v){z.api.Sl(!0);var R,C=(R=z.V[v.id])!=null?R:[];R=g.f(C);for(C=R.next();!C.done;C=R.next()){var Z=C.value;z.api.hideControls();z.api.Ij("auth",2,"This video isn't available in your current playback area",n_({embargoed:1,id:v.id,idx:v.W,start:v.start}));C=void 0;(Z=(C=Z.embargo)==null?void 0:C.onTrigger)&&z.api.Qp("innertubeCommand",Z)}})}; d$u=function(N,z){var v;return(v=z.onEnter)==null?void 0:v.some(N.W)}; sJK=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next()){v=v.value;var R=void 0,C=Number((R=v.playbackPosition)==null?void 0:R.utcTimeMillis)/1E3,Z=void 0;R=C+Number((Z=v.duration)==null?void 0:Z.seconds);Z="embargo_"+C;N.api.addUtcCueRange(Z,C,R,"embargo",!1);v.onEnter&&(N.V[Z]=v.onEnter.filter(N.W))}}; Jp=function(N){q1.call(this,N);var z=this;this.V=[];this.events=new g.VV(N);g.b(this,this.events);iH(N,"addEmbedsConversionTrackingParams",function(v){z.api.D().zS&&z.addEmbedsConversionTrackingParams(v)}); this.events.S(N,"veClickLogged",function(v){z.api.hasVe(v)&&(v=v.visualElement.getAsJspb(),v=XB(v,2),z.V.push(v))})}; TqU=function(N){q1.call(this,N);iH(N,"isEmbedsShortsMode",function(){return N.isEmbedsShortsMode()})}; FJ2=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"initialvideodatacreated",function(v){pb(gq(),16623);z.V=g.nz();var R=N.D().a_&&!v.X6;if(EY(v)&&R){pb(gq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(v.getWatchNextResponse()){var C,Z=(C=v.getWatchNextResponse())==null?void 0:C.trackingParams;Z&&PM(Z)}if(v.getPlayerResponse()){var Y;(v=(Y=v.getPlayerResponse())==null?void 0:Y.trackingParams)&&PM(v)}}else pb(gq(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),v.getEmbeddedPlayerResponse()&&(Y=(Z=v.getEmbeddedPlayerResponse())==null?void 0:Z.trackingParams)&&PM(Y)}); this.events.S(N,"loadvideo",function(){pb(gq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.V})}); this.events.S(N,"cuevideo",function(){pb(gq(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.V})}); this.events.S(N,"largeplaybuttonclicked",function(v){pb(gq(),27240,v.visualElement)}); this.events.S(N,"playlistnextbuttonclicked",function(v){pb(gq(),27240,v.visualElement)}); this.events.S(N,"playlistprevbuttonclicked",function(v){pb(gq(),27240,v.visualElement)}); this.events.S(N,"playlistautonextvideo",function(){pb(gq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; yo=function(N,z){g.H.call(this);var v=this;this.V=null;this.Z=z;z=[];for(var R=0;R<=100;R++)z.push(R/100);z={threshold:z,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(C){C=C[C.length-1];typeof C.isVisible==="undefined"?document.visibilityState==="visible"&&C.isIntersecting&&C.intersectionRatio>0?v.V=C.intersectionRatio:document.visibilityState==="hidden"?v.V=0:v.V=null:v.V=C.isVisible?C.intersectionRatio:0;typeof v.Z==="function"&&v.Z(v.V)},z): null)&&this.W.observe(N)}; m$u=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"applicationInitialized",function(){n07(z)})}; n07=function(N){var z=N.api.getRootNode(),v,R=N.api.getWebPlayerContextConfig().embedsEnableEmc3ds?yb2((v=z.parentElement)==null?void 0:v.parentElement)||z:z;N.V=new yo(R,function(C){C!=null&&(N.api.D().Jx=C,N.api.D().ip="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.b(N,N.V);N.events.S(N.api,"videoStatsPingCreated",function(C){var Z=N.V;Z=Z.V==null?null:Math.round(Z.V*100)/100;C.inview=Z!=null?Z:void 0;Z=N.api.getPlayerSize();if(Z.height>0&&Z.width>0){Z=[Math.round(Z.width),Math.round(Z.height)];var Y=g.uj();Y>1&&Z.push(Y);Z=Z.join(":")}else Z=void 0;C.size=Z})}; $$m=function(N){var z;return((z=((N==null?void 0:N.messageRenderers)||[]).find(function(v){return!!v.timeCounterRenderer}))==null?void 0:z.timeCounterRenderer)||null}; fs=function(N){g.X.call(this,{K:"div",GU:["ytp-player-content","ytp-iv-player-content"],j:[{K:"div",U:"ytp-free-preview-countdown-timer",j:[{K:"span",OT:"{{label}}"},{K:"span",U:"ytp-free-preview-countdown-timer-separator",OT:"\u2022"},{K:"span",OT:"{{duration}}"}]}]});this.api=N;this.V=null;this.Z=this.W=0;this.S(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Bq_=function(N,z){N.V||(N.W=z,N.Z=(0,g.I)(),N.V=new g.uk(function(){U$I(N)},null),U$I(N))}; U$I=function(N){var z=Math,v=z.round,R=Math.min((0,g.I)()-N.Z,N.W);z=v.call(z,(N.W-R)/1E3);N.updateValue("duration",F$({seconds:z}));z<=0&&N.V?N.stopTimer():N.V&&N.V.start()}; AGK=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"basechromeinitialized",function(){z.V=new fs(N);g.b(z,z.V);g.PX(N,z.V.element,4);z.V.hide()})}; dW=function(N){g.X.call(this,{K:"button",GU:["ytp-fullerscreen-edu-button","ytp-button"],j:[{K:"div",GU:["ytp-fullerscreen-edu-text"],OT:"Desliza hacia abajo para ver m\u00e1s detalles"},{K:"div",GU:["ytp-fullerscreen-edu-chevron"],j:[{K:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{K:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],T:{"data-priority":"2"}});this.L0=N;this.fade=new g.zX(this,250,void 0,100);this.W=this.V=!1;N.createClientVe(this.element, this,61214);g.b(this,this.fade);this.S(N,"fullscreentoggled",this.FW);this.S(N,"presentingplayerstatechange",this.FW);this.listen("click",this.onClick);this.FW()}; sz=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);iH(this.api,"updateFullerscreenEduButtonSubtleModeState",function(R){z.updateFullerscreenEduButtonSubtleModeState(R)}); iH(this.api,"updateFullerscreenEduButtonVisibility",function(R){z.updateFullerscreenEduButtonVisibility(R)}); var v=N.D();N.X("external_fullscreen_with_edu")&&v.externalFullscreen&&X2(v)&&v.controlsType==="1"&&this.events.S(N,"standardControlsInitialized",function(){z.V=new dW(N);g.b(z,z.V);N.oo(z.V)})}; g0K=function(N){g.X.call(this,{K:"div",U:"ytp-gated-actions-overlay",j:[{K:"div",U:"ytp-gated-actions-overlay-background",j:[{K:"div",U:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",GU:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Cerrar"},j:[g.dN()]},{K:"div",U:"ytp-gated-actions-overlay-bar",j:[{K:"div",U:"ytp-gated-actions-overlay-text-container",j:[{K:"div",U:"ytp-gated-actions-overlay-title",OT:"{{title}}"},{K:"div",U:"ytp-gated-actions-overlay-subtitle", OT:"{{subtitle}}"}]},{K:"div",U:"ytp-gated-actions-overlay-button-container"}]}]});var z=this;this.api=N;this.background=this.e8("ytp-gated-actions-overlay-background");this.W=this.e8("ytp-gated-actions-overlay-button-container");this.V=[];this.S(this.e8("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){z.api.Qp("onCloseMiniplayer")}); this.hide()}; kzb=function(N,z){var v=0;v=0;for(var R={};v C&&(C=Q.width,Z="url("+Q.url+")")}v.background.style.backgroundImage=Z;kzb(v,R.actionButtons||[]);v.show()}else v.hide()}); g.PX(this.api,this.V.element,4)}; Te=function(N){q1.call(this,N);var z=this;au(this.api,"getSphericalProperties",function(){return z.getSphericalProperties()}); au(this.api,"setSphericalProperties",function(){z.setSphericalProperties.apply(z,g.U(g.SI.apply(0,arguments)))}); je(this.api,"getSphericalProperties",function(){return z.api.getPresentingPlayerType()===2?{}:z.getSphericalProperties()}); je(this.api,"setSphericalProperties",function(){var v=g.SI.apply(0,arguments);z.api.getPresentingPlayerType()!==2&&z.setSphericalProperties.apply(z,g.U(v))})}; Fq=function(N){q1.call(this,N);iH(N,"createClientVe",this.createClientVe.bind(this));iH(N,"createServerVe",this.createServerVe.bind(this));iH(N,"destroyVe",this.destroyVe.bind(this));iH(N,"hasVe",this.hasVe.bind(this));iH(N,"logClick",this.logClick.bind(this));iH(N,"logVisibility",this.logVisibility.bind(this));iH(N,"setTrackingParams",this.setTrackingParams.bind(this))}; ns=function(N,z,v,R){function C(Y){var Q=!(Y.status!==204&&Y.status!==200&&!Y.response),L;Y={succ:""+ +Q,rc:Y.status,lb:((L=Y.response)==null?void 0:L.byteLength)||0,rt:((0,g.I)()-Z).toFixed(),shost:g.nt(N),trigger:z};VvO(Y,N);v&&v(Y);R&&!Q&&R(new mT("pathprobe.net",Y))} var Z=(0,g.I)();g.Fb(N,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:C,onTimeout:C})}; VvO=function(N,z){var v;((v=window.performance)==null?0:v.getEntriesByName)&&(z=performance.getEntriesByName(z))&&z.length&&(z=z[0],N.pedns=(z.domainLookupEnd-z.startTime).toFixed(),N.pecon=(z.connectEnd-z.domainLookupEnd).toFixed(),N.perqs=(z.requestStart-z.connectEnd).toFixed(),S_U&&(N.perqsa=z.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; E0K=function(N){S_U=N}; mz=function(N,z){this.bF=N;this.policy=z;this.playbackRate=1}; h_7=function(N,z){var v=Math.min(2.5,eP(N.bF));N=$Y(N);return z-v*N}; Uz=function(N,z,v,R,C){C=C===void 0?!1:C;if(N.policy.yv)return Math.ceil(N.policy.yv*z);N.policy.WZ&&(R=Math.abs(R));R/=N.playbackRate;var Z=1/fu(N.bF);v=Math.max(.9*(R-3),eP(N.bF)+N.bF.W.V*Z)/Z*.8/(z+v);v=Math.min(v,R);N.policy.uY>0&&C&&(v=Math.max(v,N.policy.uY));return Hbu(N,v,z)}; Hbu=function(N,z,v){return Math.ceil(Math.max(Math.max(N.policy.w5,N.policy.VU*v),Math.min(Math.min(N.policy.BL,31*v),Math.ceil(z*v))))||N.policy.w5}; o0b=function(N,z,v){v=Uz(N,z.V.info.i$,v.V.info.i$,0);var R=eP(N.bF)+v/fu(N.bF);return Math.max(R,R+N.policy.Nk-v/z.V.info.i$)}; $Y=function(N){return fu(N.bF,!N.policy.yE,N.policy.qy)}; BO=function(N){return $Y(N)/N.playbackRate}; Ap=function(N,z,v){var R=N.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],C=N.policy.playbackStartPolicy.startMinReadaheadPolicy||[];N=Infinity;z=g.f(z&&R.length>0?R:C);for(R=z.next();!R.done;R=z.next())R=R.value,C=R.minReadaheadMs||0,v<(R.minBandwidthBytesPerSec||0)||N>C&&(N=C);return N0&&(this.W=v.Bw)}; Obu=function(N,z,v,R,C){if(!R.info.B){if(v.length===0)v.push(R);else{var Z;(N=(Z=v.pop())==null?void 0:g.YF(Z,R))?v.push(N):v.push(R)}return C}var Y;(v=(Y=v.pop())==null?void 0:g.YF(Y,R))||(v=R);if(N.policy.J0&&v.info.W)return N.logger&&N.logger({incompleteSegment:v.info.z4()}),C;R=N.wl(v);C=R.cL;R={clipId:R.clipId,formatId:R.formatId,startTimeMs:R.startTimeMs,durationMs:R.gJ,DJ:C,yX:C};C=D$_(z,R.startTimeMs);(v=C>=0?z[C]:null)&&bbU(N,v,R)?R=v:(C+=1,z.splice(C,0,R));v=0;for(Z=C+1;Z=K+Y.W?Y=!0:l+Y.W=0?N:-N-2}; IvK=function(N,z){if(N.Mu){var v=N.Mu.vc();if(v.length!==0){if(N.Z&&z){var R=N.Z,C=R.info.N;!jx(v,C)&&R.info.L>0&&(0,g.I)()-N.G<5E3&&(N.logger&&N.logger({dend:R.info.z4()}),v=f0Y(v,C,C+.01))}N.policy.AR&&N.logger&&N.logger({cbri:""+N.V});R=[];for(var Z=C=0;C=Y){var l=Object.assign({},N.gH[Z]),W=N.Md.Z.get(Aa(N.gH[Z].formatId)),G=Math.max(L,Y);Y=W.index.vP(G+N.W/ 1E3);L=W.index.getStartTime(Y);var x=Y+ +(Math.abs(L-G)>N.W/1E3);G=x+N.N;x=W.index.getStartTime(x)*1E3;Z!==N.V||z?(l.DJ=G,l.startTimeMs=x):(N.logger&&N.logger({pEvict:"1",og:l.startTimeMs,adj:L*1E3}),l.DJ=Y+N.N,l.startTimeMs=L*1E3);Y=void 0;L=((Y=N.Z)==null?void 0:Y.info.duration)||11;Z===N.V&&QN.W/1E3);Y=L+N.N;W=W.index.zn(L)*1E3;l.yX=Y;l.durationMs=W-l.startTimeMs;l.DJ<=l.yX&&R.push(l)}KN.W)return!1;if(tvb(N,z.formatId,v.formatId))return z.durationMs=Math.max(R,C)-z.startTimeMs,z.yX=Math.max(z.yX,v.yX),!0;if(Math.abs(z.startTimeMs-v.startTimeMs)<=N.W){if(z.durationMs>v.durationMs+N.W){N=z.formatId;var Z=z.DJ,Y=z.yX;z.formatId=v.formatId;z.durationMs=v.durationMs;z.DJ=v.DJ;z.yX=v.yX;v.formatId=N;v.startTimeMs=C;v.durationMs=R-C;v.DJ=Z;v.yX=Y;return!1}z.formatId=v.formatId;return!0}R> v.startTimeMs&&(z.durationMs=v.startTimeMs-z.startTimeMs,z.clipId===v.clipId&&(z.yX=v.DJ-1));return!1}; tvb=function(N,z,v){return z.itag!==v.itag||z.xtags!==v.xtags?!1:N.Md.Hb||z.lmt===v.lmt}; u$_=function(N,z,v){if(N.logger){for(var R=[],C=0;C=0&&Sd(N.audioTrack,N.V)>=0&&Z?((N.videoTrack.B||N.audioTrack.B)&&N.loader.WL("iterativeSeeking",{status:"done",count:N.seekCount}),N.videoTrack.B=!1,N.audioTrack.B=!1):R&&g.Fp(function(){if(N.W||!N.policy.gW)HO(N);else{var Y=z.startTime,Q=z.duration;if(!N.policy.B){var L=v?N.videoTrack.B:N.audioTrack.B,K=N.videoTrack.G!==-1&&N.audioTrack.G!==-1,l=N.V>=Y&&N.V432E3&&sou(N.Md);N.Z&&(C=N.Z,N.Z=0);g.Fp(function(){N.policy.B||op(N,C,102)}); N.loader.WL("initManifestlessSync",{st:C,ost:C+N.loader.fV(),a:N.audioTrack.G,v:N.videoTrack.G});N.N&&(N.N.resolve(C+.1),N.N=null);N.policy.B&&op(N,C,102)}}}; tp=function(N,z){var v=this;this.Zx=N;this.requestNumber=++Zf2;this.V=this.now();this.Y=this.J=NaN;this.L=this.V;this.Z=this.UR=this.B=0;this.G=this.V;this.ET=this.Vp=this.Id=this.J0=this.Dx=this.K0=this.W=this.N=0;this.qd=this.isActive=!1;this.CV=this.kJ=0;this.Oi={wmo:function(){return v.CX}}; this.bF=z.bF;this.snapshot=Mix(this.bF);this.policy=this.bF.W;this.EV=!!z.EV;this.E7=z.E7;this.FB=z.FB||0;this.Ry=z.Ry||0;z.lV&&(this.Rd=new jP);var R;this.CX=(R=z.CX)!=null?R:!1;this.EV||u7O(this.bF)}; YQf=function(N){N.Id=Math.max(N.Id,N.B-N.Dx);N.Vp=Math.max(N.Vp,N.L-N.J0);N.K0=0}; Oz=function(N,z,v){cNu(N.bF,z);N.Rd&&(N.Rd.add(Math.ceil(z)-Math.ceil(N.L)),N.Rd.add(Math.max(0,Math.ceil(v/1024)-Math.ceil(N.B/1024))));var R=z-N.L,C=v-N.B;N.UR=C;N.ET=Math.max(N.ET,C/(R+.01)*1E3);N.L=z;N.B=v;N.K0&&v>N.K0&&YQf(N)}; Ip=function(N,z){N.url=z;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Xq=function(N,z){tp.call(this,N,z);this.A0=this.YJ=!1;this.tO=this.PL=Infinity;this.BL=NaN;this.zE=!1;this.xT=NaN;this.yh=this.UT=this.S8=0;this.Bh=z.Bh||1;this.g_=z.g_||this.Bh;this.UA=z.UA;this.cL=z.cL;this.AJ=z.AJ;ifv(this);this.SY(this.V);this.gW=(this.xT-this.V)/1E3}; jSU=function(N){var z=N.UT||N.S8;return z?N.snapshot.delay+Math.min(N.Ry,(N.Y-N.J)/1E3)+z:N.gW}; rW=function(N,z,v){if(!N.EV){z=Math.max(z,.01);var R=N.FB?Math.max(z,v/N.FB):z,C=N.bF.W.Z;C&&(R=z,N.FB&&(R=Math.max(z,v/N.FB*C)));Wi(N.bF,z,v,R)}}; aqm=function(N){return(N.G-N.V)/1E3}; ifv=function(N){N.BL=N.V+N.snapshot.delay*1E3;N.zE=!1}; up=function(N,z){if(N.UA&&N.cL!==void 0&&N.AJ!==void 0){var v=Math,R=v.min,C=N.PL;var Z=N.UA;var Y=N.V;if(QS7(Z,N.cL))Z=z;else{var Q=0;Z.g5&&(Q=.2);Z=Y+(Z.Ry+Q)*1E3}N.PL=R.call(v,C,Z);v=Math;R=v.min;C=N.tO;Z=N.UA;Y=N.V;Q=L_x(Z,N.cL,N.AJ);Q!==2&&(z=Q?z:Y+Z.Ry*1E3,Z.g5&&(z+=Z.Ry*1E3));N.tO=R.call(v,C,z);N.PL<=N.V?ifv(N):(N.BL=N.PL,N.zE=!0)}}; K_m=function(N,z){if(N.mK(z,1)){var v=N.getUint8(z);v=v<128?1:v<192?2:v<224?3:v<240?4:5}else v=0;if(v<1||!N.mK(z,v))return[-1,z];if(v===1)N=N.getUint8(z++);else if(v===2)v=N.getUint8(z++),N=N.getUint8(z++),N=(v&63)+64*N;else if(v===3){v=N.getUint8(z++);var R=N.getUint8(z++);N=N.getUint8(z++);N=(v&31)+32*(R+256*N)}else if(v===4){v=N.getUint8(z++);R=N.getUint8(z++);var C=N.getUint8(z++);N=N.getUint8(z++);N=(v&15)+16*(R+256*(C+256*N))}else v=z+1,N.focus(v),dJ(N,v,4)?N=mqm(N).getUint32(v-N.oT,!0):(R= N.getUint8(v+2)+256*N.getUint8(v+3),N=N.getUint8(v)+256*(N.getUint8(v+1)+256*R)),z+=5;return[N,z]}; cO=function(N){this.Zx=N;this.V=new eo}; qO=function(N,z){this.info=N;this.callback=z;this.state=1;this.A1=this.QM=!1;this.zd=null}; lqO=function(N){return g.Iz(N.info.TU,function(z){return z.type===3})}; MO=function(N,z,v,R){var C=this;R=R===void 0?{}:R;this.policy=z;this.Zx=v;this.status=0;this.V=new eo;this.W=0;this.HL=this.N=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(R.method||"GET",N);if(R.headers)for(N=R.headers,z=g.f(Object.keys(N)),v=z.next();!v.done;v=z.next())v=v.value,this.xhr.setRequestHeader(v,N[v]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return C.gj()}; this.xhr.onload=function(){return C.onDone()}; this.xhr.onerror=function(){return C.onError()}; this.xhr.fetch(function(Z){C.V.append(Z);C.W+=Z.length;Z=(0,g.I)();C.Zx.G3(Z,C.W)},function(){},R.body||null)}; ND=function(){this.W=this.RM=0;this.V=Array.from({length:wW.length}).fill(0)}; W_v=function(){}; GTu=function(){this.startTimeMs=(0,g.I)();this.V=!1}; xcu=function(){this.V=new W_v}; ecf=function(N,z,v,R){R=R===void 0?1:R;v>=0&&(z in N.V||(N.V[z]=new ND),N.V[z].DG(v,R))}; Jm7=function(N,z,v,R,C){var Z=(0,g.I)(),Y=C?C(z):void 0,Q;C=(Q=Y==null?void 0:Y.RM)!=null?Q:1;if(C!==0){var L;Q=(L=Y==null?void 0:Y.profile)!=null?L:v;ecf(N,Q,Z-R,C)}return z}; z7=function(N,z,v,R,C){if(z&&typeof z==="object"){var Z=function(Y){return Jm7(N,Y,v,R,C)}; if(Lb(z))return z.then(Z);if(QP(z))return x0(z,Z)}return Jm7(N,z,v,R,C)}; ymx=function(){}; fq2=function(N,z){this.W=(new TextEncoder).encode(N);this.V=(new TextEncoder).encode(z)}; Qgx=function(N,z){var v,R,C;return g.S(function(Z){if(Z.W==1){if(!z)return Z.return(z);v=vK.kY();R=new g.dC(N.W);return g.k(Z,R.encrypt(z,N.V),2)}C=Z.V;vK.Xw("woe",v,Math.ceil(z.byteLength/16));return Z.return(C)})}; G__=function(N,z){var v,R,C;return g.S(function(Z){if(Z.W==1){if(!z)return Z.return(z);v=vK.kY();R=new g.dC(N.W);return g.k(Z,R.decrypt(z,N.V),2)}C=Z.V;vK.Xw("wod",v,Math.ceil(z.byteLength/16));return Z.return(C)})}; sS2=function(N,z){var v=this;this.V=N;this.Zx=z;this.loaded=this.status=0;this.error="";N=k4(this.V.get("range")||"");if(!N)throw Error("bad range");this.range=N;this.W=new eo;dcO(this).then(function(){v.Zx.qQ()},function(R){v.error=""+R||"unknown_err"; v.Zx.qQ()})}; dcO=function(N){var z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d;return g.S(function(T){if(T.W==1){N.status=200;z=N.V.get("docid");v=xQ(N.V.get("fmtid")||"");R=N.V.get("lmt")||"0";C=+(N.V.get("csz")||0);if(!z||!v||!C)throw Error("Invalid local URL");N.V.get("ck")&&N.V.get("civ")&&(Z=new fq2(N.V.get("ck"),N.V.get("civ")));Y=N.range;Q=Math.floor(Y.start/C);L=Math.floor(Y.end/C);K=Q}if(T.W!=5)return K<=L?g.k(T,xIU(z,v,R,K,Z),5):T.Zp(0);l=T.V;if(l===void 0)throw Error("invariant: data is undefined");W=K*C;G=(K+1)*C; x=Math.max(0,Y.start-W);e=Math.min(Y.end+1,G)-(x+W);d=new Uint8Array(l.buffer,x,e);N.W.append(d);N.loaded+=e;N.loaded=400?(N.lastError="net.badstatus",!0):(C===void 0?0:C)?(N.lastError="ump.spsrejectfailure",!0):v||R!==void 0&&R?!1:(N.lastError=z===204?"net.nocontent":"net.connect",!0)}; KY=function(N,z){if(N.policy.ZS)return!1;var v=z.getResponseHeader("content-type"),R=z.hp();N=!R||R<=N.policy.G8;return(!z.zX()||!v||v.indexOf("text/plain")!==-1)&&N}; gwI=function(N,z){var v="";z=z.Ih();z.getLength()<=N.policy.G8&&(v=AmO(N,z.Na()));return v}; AmO=function(N,z){var v=Fs(z);return qh(v)?(N.logger.debug(function(){return"Redirecting to "+v}),v):""}; ix=function(N){return FF(N.Z,B7(N.Pc.LO))}; p7m=function(N){var z=N.timing.Bm();z.shost=B7(N.Pc.LO);return z}; kTu=function(N,z){return(N==null?void 0:N.maxWidth)>(z==null?void 0:z.maxWidth)||(N==null?void 0:N.maxHeight)>(z==null?void 0:z.maxHeight)}; PL_=function(N,z){for(var v=g.f(z.keys()),R=v.next();!R.done;R=v.next())if(R=z.get(R.value),R.length!==0){g.P$(R,function(Q,L){return L.maxFramerate-Q.maxFramerate}); for(var C=[R[0]],Z=0,Y=1;YN.V||v.push(R)}return v}; lx=function(N,z,v){var R=Ewu[N]||[];v.X("html5_shorts_onesie_mismatched_fix")&&(R=hcu[N]||[]);z.push.apply(z,g.U(R));v.X("html5_early_media_for_drm")&&z.push.apply(z,g.U(Hf7[N]||[]))}; Iqf=function(N,z){var v=g.jM(N),R=N.D(),C=R.B;R=R.X("html5_shorts_onesie_mismatched_fix");var Z=N.YG();if(R){if(!C.W){if(Z&&WK)return WK;if(G7)return G7}}else if(G7&&!C.W)return G7;var Y=[],Q=[],L={},K=xd.concat(owf);R&&(K=xd.concat(Dcu));N.X("html5_early_media_for_drm")&&(K=K.concat(bf7),N.X("allow_vp9_1080p_mq_enc")&&K.push(t$u));var l=[].concat(g.U(OfO));N.X("html5_iamf_audio_onesie_fmt")&&l.push(["773"]);K=g.f(K);for(var W=K.next();!W.done;W=K.next()){var G=!1;W=g.f(W.value);for(var x=W.next();!x.done;x= W.next()){x=x.value;var e=YN(x,Z&&R);if(e&&e.video&&!(rp(e)&&!v.PL&&e.video.qualityOrdinal>v.Ai)){var d=g.LM(N.D().experiments,"html5_drm_byterate_soft_cap");d>0&&JXu(e)&&e.i$>d||(G?(Y.push(x),lx(x,Y,N)):(e=yN(v,e,C),e===!0?(G=!0,Y.push(x),lx(x,Y,N)):L[x]=e))}}}l=g.f(l);for(K=l.next();!K.done;K=l.next())for(K=g.f(K.value),G=K.next();!G.done;G=K.next())if(G=G.value,(W=dYY(G))&&W.audio&&(N.X("html5_onesie_51_audio")||!ui(W)&&!cP(W)))if(W=yN(v,W,C),W===!0){Q.push(G);lx(G,Q,N);break}else L[G]=W;v.W&& z("orfmts",L);if(R)return C.W&&(C.W=!1,WK=G7=void 0),Z?WK={video:Y,audio:Q}:G7={video:Y,audio:Q};G7={video:Y,audio:Q};C.W=!1;return G7}; g.uyx=function(N,z,v){var R=v.B,C=[],Z=[],Y=v.X("html5_shorts_onesie_mismatched_fix");N=N.YG();var Q=xd.concat(owf);Y&&(Q=xd.concat(Dcu));v.X("html5_early_media_for_drm")&&(Q=Q.concat(bf7),v.X("allow_vp9_1080p_mq_enc")&&Q.push(t$u));var L=[].concat(g.U(OfO));v.X("html5_iamf_audio_onesie_fmt")&&L.push(["773"]);Q=g.f(Q);for(var K=Q.next();!K.done;K=Q.next()){K=g.f(K.value);for(var l=K.next();!l.done;l=K.next()){l=l.value;var W=YN(l,N&&Y);if(W&&W.video){var G=g.LM(v.experiments,"html5_drm_byterate_soft_cap"); if(!(G>0&&JXu(W)&&W.i$>G)&&yN(z,W,R)===!0){C.push({videoCodec:X7u[bi[l]],maxWidth:W.video.width,maxHeight:W.video.height,maxFramerate:W.video.fps});break}}}}Y=g.f(L);for(N=Y.next();!N.done;N=Y.next())for(N=g.f(N.value),L=N.next();!L.done;L=N.next())if(L=L.value,(Q=dYY(L))&&Q.audio&&(v.X("html5_onesie_51_audio")||!ui(Q)&&!cP(Q))&&yN(z,Q,R)===!0){Z.push({audioCodec:rmY[bi[L]],numChannels:Q.audio.numChannels});break}return{videoFormatCapabilities:C,audioFormatCapabilities:Z}}; J3=function(N){var z={},v=N.kT,R=N.bS,C=v.getVideoData(),Z=tG(0),Y=v.getPlayerSize(),Q=v.getVisibilityState();if(R.X("html5_enable_audio_quality_setting")){var L=g.LM(R.experiments,"html5_default_audio_quality_setting_lr"),K;z.Jv=(K=cmu[L])!=null?K:0}Z&&(z.S9=Z,z.lastManualDirection=S8x(),Z=tjI()||0,Z>0&&(Z=(R.X("html5_use_date_now_for_local_storage")?Date.now():(0,g.I)())-Z,R.X("html5_use_date_now_for_local_storage")?Z>0&&(z.timeSinceLastManualFormatSelectionMs=Z):z.timeSinceLastManualFormatSelectionMs= Z));Z=R.X("html5_use_streamer_bandwidth_for_low_latency_live")&&C.isLowLatencyLiveStream;if(R.schedule.qd&&!Z){var l;Z=R.X("html5_disable_bandwidth_cofactors_for_sabr_live")?!((l=N.Wc)==null||!l.yE):!1;z.ow=fu(R.schedule,!Z)}Z=g.uj();L=g.hx.medium;K=Math.floor(L*16/9);l=C.YG()?L:K;L=C.YG()?K:L;K=Y.width*Z;Y=Y.height*Z;R.X("html5_sabr_use_container_size")&&(Y=v.gF(),K=Y.width,Y=Y.height);z.Rw=Math.max(K,l);z.Kc=Math.max(Y,L);z.visibility=Q;z.syo=mB();z.VA=v.C8()*1E3;Q=N.kT.EU(!0);var W,G,x,e,d,T;z.g$l= {defaultPolicy:(Q==null?void 0:(W=Q.QW)==null?void 0:W.V)||0,smooth:(Q==null?void 0:(G=Q.gAd)==null?void 0:G.V)||0,visibility:(Q==null?void 0:(x=Q.VIp)==null?void 0:x.V)||0,Ze:(Q==null?void 0:(e=Q.NT)==null?void 0:e.V)||0,performance:(Q==null?void 0:(d=Q.hq)==null?void 0:d.V)||0,speed:(Q==null?void 0:(T=Q.Wvo)==null?void 0:T.V)||0};var m;z.PId=(Q==null?void 0:(m=Q.zuS)==null?void 0:m.V)||0;z.kz=N.kz&&N.kz.length>0?N.kz:[1,2];N.sabrLicenseConstraint&&(z.sabrLicenseConstraint=N.sabrLicenseConstraint); if(R.X("html5_onesie_media_capabilities")||R.X("html5_enable_server_format_filter"))z.c8=3;R.X("html5_onesie_audio_only_playback")&&Zk(C)&&(z.c8=1);var n;((n=N.Wc)==null?0:n.kJ)&&N.t2&&(z.c8=z.c8===void 0?7:z.c8|4);W=C.ZT?C.ZT:g.jM(C);R.X("html5_onesie_media_capabilities")&&(z.mediaCapabilities=g.uyx(C,W,R));var P;if((P=N.Wc)==null?0:ea(P)){x=R.B;P=[];G=[];e=new Map;d=Array.from(x.V.values());d=g.f(d);for(T=d.next();!T.done;T=d.next())m=T.value,m.bI?G.push({audioCodec:rmY[m.JO],numChannels:m.numChannels, spatialCapabilityBitmask:qQf[m.JO]}):(n=X7u[m.JO],T={videoCodec:n,maxWidth:m.maxWidth||0,maxHeight:m.maxHeight||0,maxFramerate:m.maxFramerate||0,is10BitSupported:m.GQ||!1},m.maxBitrateBps&&(T.maxBitrateBps=m.maxBitrateBps,Q=YN(m.itag),Y=void 0,((Y=Q)==null?0:Y.video)&&yN(W,Q,x)===!0&&(Q=Q.i$*8,Q>T.maxBitrateBps&&(T.maxBitrateBps=Q))),m=n+"_"+m.GQ,n=e.get(m)||[],n.push(T),e.set(m,n));P=PL_(P,e);x={};R.X("html5_ssff_denylist_opus_low")&&(x={itagDenylist:[249,350]});z.mediaCapabilities={videoFormatCapabilities:P, audioFormatCapabilities:G,hdrModeBitmask:3,perPlaybackAttributes:x}}var V;if((V=N.Wc)==null?0:V.V){z.OV=W.OV;var D;z.Ai=(D=N.Wc)==null?void 0:D.Ai}R.X6&&(z.oF=R.X6);z.R0=N.rl;z.TQ=N.TQ;z.Jc=N.Jc;z.NG=N.NG;if(R.X("html5_fix_time_since_last_seek_reporting")?N.Ca!==void 0:N.Ca)z.Bio=(0,g.I)()-N.Ca;N.isPrefetch&&R.X("html5_report_prefetch_requests")&&(z.isPrefetch=!0);N9||(z.b0S=!0);V=eP(R.schedule)*1E3;V>0&&(z.pc=V);var c;((c=N.Wc)==null?0:c.a7)&&N.Ug&&N.Ug0?r:R.schedule.interruptions[0]||0);var Rv;if((Rv=N.Wc)==null?0:Rv.zE)z.R7=N.R7;R.X("html5_sabr_enable_server_xtag_selection")&&(C.Qj||R.ET)&&(z.audioTrackId=C.Qj||R.ET);if(Dk(C)&&!z.audioTrackId){var Zu;a:{var Nx,av,M;Rv=(Nx= C.playerResponse)==null?void 0:(av=Nx.playerConfig)==null?void 0:(M=av.compositeVideoConfig)==null?void 0:M.sourceConfigs;var s2,$m;Nx=(Zu=C.playerResponse)==null?void 0:(s2=Zu.playerConfig)==null?void 0:($m=s2.compositeVideoConfig)==null?void 0:$m.defaultActiveSourceVideoId;if(Rv&&Nx)for(Zu=g.f(Rv),s2=Zu.next();!s2.done;s2=Zu.next())if(s2=s2.value,s2.videoId===Nx&&s2.audioTracks)for(s2=g.f(s2.audioTracks),$m=s2.next();!$m.done;$m=s2.next())if($m=$m.value,$m.isDefaultForSource){Zu=$m.id||"";break a}Zu= ""}z.audioTrackId=Zu;C==null||C.WL("misstrkchg",{"default":z.audioTrackId})}var O2;if((O2=N.Wc)==null?0:O2.fZ)if(N=GXI())z.detailedNetworkType=M$U[N]||M$U.other;R.X("html5_enable_voice_boost")&&(z.WAU=R.zA);return z}; yc=function(N,z,v,R,C,Z,Y){var Q={};z&&(Q.Pi=z);if(!N)return Q;Q.playbackCookie=v==null?void 0:v.playbackCookie;C&&(Q.YS=C);Q.Pq=[];Q.Zv=[];if(Y==null?0:Y.size)for(z=g.f(Y.values()),v=z.next();!v.done;v=z.next())Q.Zv.push(v.value);if(N.sabrContextUpdates.size>0)for(z=g.f(N.sabrContextUpdates.values()),v=z.next();!v.done;v=z.next())w7_(Q,v.value,R);ys7(N)&&Z&&w7_(Q,Z,R);N.LJ&&(Q.iU0=N.LJ);R=N.D().V;Q.clientInfo={clientName:Ng2[R.c.toUpperCase()]||0};R.cbrand&&(Q.clientInfo.deviceMake=R.cbrand);R.cmodel&& (Q.clientInfo.deviceModel=R.cmodel);R.cver&&(Q.clientInfo.clientVersion=R.cver);R.cos&&(Q.clientInfo.osName=R.cos);R.cosver&&(Q.clientInfo.osVersion=R.cosver);R=N.D();R.X("html5_sabr_enable_server_xtag_selection")&&R.gx&&(Q.clientInfo.hl=R.gx);N.Hg&&(Q.Hg=N.Hg);return Q}; w7_=function(N,z,v){var R=z.type||0;(v==null?0:v.has(R))?N.Zv.push(z):N.Pq.push(R)}; PO=function(N,z,v,R,C,Z){var Y=Z===void 0?{}:Z;var Q=Y.Sf===void 0?[]:Y.Sf;var L=Y.Fg===void 0?!1:Y.Fg;var K=Y.Ny===void 0?0:Y.Ny;var l=Y.poToken===void 0?"":Y.poToken;var W=Y.Eg===void 0?void 0:Y.Eg;var G=Y.Qk===void 0?"":Y.Qk;var x=Y.d$===void 0?0:Y.d$;var e=Y.rD===void 0?new Uint8Array(0):Y.rD;var d=Y.SC===void 0?!1:Y.SC;Z=Y.IR===void 0?0:Y.IR;Y=Y.Pi===void 0?void 0:Y.Pi;qO.call(this,z,C);var T=this;this.policy=N;this.logger=new g.Ry("dash/request");this.rE=this.pU=0;this.U0=!1;this.s5=this.PS= null;this.aA=!1;this.rD=this.d$=null;this.vy=this.fQ=!1;this.PG=null;this.IR=this.MX=0;this.AS=!1;this.Oi={lF:function(n){T.lF(n)}, REO:function(){return T.zd}, iEd:function(n){T.zd=n}, nMT:function(n){T.pU=n}, J9U:function(n){T.Cb.lastError=n}, Uy:function(){return T.xhr}}; this.timing=new Xq(this,v);this.Fg=L;this.d$=x;this.rD=e;this.Pc=g.XF(this.info,this.policy,R);this.Pc.set("rn",this.aR().toString());this.Pc.set("rbuf",(K*1E3).toFixed().toString());this.Fg&&this.Pc.set("smb","1");this.policy.gQ&&l&&this.Pc.set("pot",l);G&&this.Pc.set("bbs",G);this.policy.useUmp&&!Am(this.Pc.LO)&&(this.TD=new cO(this),this.Pc.set("ump","1"),this.Pc.set("srfvp","1"));if(N=this.policy.rd?this.policy.Lg&&!isNaN(this.info.AJ)&&this.info.AJ>this.policy.h5?!1:!0:!1)z=null,this.policy.Aj&& this.policy.W2?z=[1]:d&&(z=[]),z!=null&&(this.policy.YU&&z.push(2),this.Pc.set("defsel",z.join(",")));this.Cb=new Yd(this,this.policy,this.Pc,this.info.KV,this.timing,this.logger,R,W);this.Sf=Q||null;this.A1=z7I(this);mc_(this.Cb);R=void 0;if(this.policy.zP||this.TD||this.policy.Id)R={method:"POST"},Q=(0,g.fY)([120,0]),W={},this.policy.LI&&Y&&(Y=yc(void 0,Y),W.Vf=Y),this.policy.QU&&this.rD&&(W.videoPlaybackUstreamerConfig=this.rD),this.policy.Id&&(Y=this.info.N)&&Object.assign(W,Y),Object.keys(W).length> 0?R.body=g.uI(W,g.Cf):R.body=Q;if(this.d$&&this.rD){this.Pc.set("iwts","1");R={method:"POST"};Y={NG:this.d$*1E3};var m;Q=(m=this.info.N)==null?void 0:m.f4;m=g.uI({UO:Y,f4:Q||void 0,videoPlaybackUstreamerConfig:this.rD},g.Cf);R.body=m}try{this.xhr=R5(this.Pc,this.policy.L,this.timing,N,R),this.Cb.W.start(),Z&&(this.HM=new g.cn(this.G_,Z,this),this.HM.start(Z+(this.timing.bF.Y.fU()||0)*1E3)),this.policy.JP&&Ip(this.timing,this.IP()),this.logger.debug(function(){return"Sent, itag="+T.Pc.get("itag")+ " seg="+T.info.TU[0].cL+" range="+T.Pc.get("range")+" time="+Math.round(T.info.TU[0].N)+"-"+Math.round(g.lW(T.info.TU).G)+" rtp="+(T.timing.G5()-Date.now()).toFixed(0)}),g.Fp(function(){})}catch(n){v47(this,n,!0)}}; z7I=function(N){if(!(IG(N.info)&&N.info.CX()&&N.policy.HH&&N.Sf)||N.info.KV.Z>=2||tG()>0||!oVm())return!1;var z=N.Pc.get("aitags");if(!z)return!1;z=xQ(z).split(",");for(var v=[],R=g.f(N.Sf),C=R.next();!C.done;C=R.next())C=C.value,g.J8(z,C)&&v.push(C);if(!v.length)return!1;N.Pc.set("altitags",g.G3(v.join(",")));return!0}; v47=function(N,z,v){v=v===void 0?!1:v;g.kE(z);N.Cb.lastError="player.exception";N.errorMessage=z.name+"_"+z.message;v?g.Fp(function(){Qc(N.Cb)}):Qc(N.Cb)}; R7I=function(N,z){N.timing.qd=!0;N.xhr.zX()&&N.timing.mu();if(N.policy.c5){var v;(v=N.HM)==null||v.stop()}Zm(N.zd,z,!1)}; CCY=function(N,z){N.info=z;if(N.zd){var v=N.zd;z=z.TU;(z.length!==v.TU.length||z.length0){z=g.f(z.TU);for(var v=z.next();!v.done;v=z.next()){var R=void 0;N+=((R=v.value.range)==null?void 0:R.length)||0}return N}if(z.i8.length>0)for(v=g.f(z.i8),R=v.next();!R.done;R=v.next())N+=R.value.SW||0;return N+z.t4}; U6=function(N,z){if(nY){var v=0;N=N.Xy.get(z);if(N==null||!N.Gh)return 0;N=g.f(N.Gh.values());for(z=N.next();!z.done;z=N.next())v+=z.value.data.getLength();return v}return((v=N.Xy.get(z))==null?void 0:v.Y$.getLength())||0}; BK=function(N,z){N=N.Xy.get(z);if(nY){if(N==null||!N.hV)return!1;z=N.Gh.size>0;return N.BQ.length>0||z}return!(N==null||!N.hV)&&!(N==null||!N.Y$.getLength())}; QGU=function(N,z){var v=N.Xy.get(z),R=aOu(N,z),C=!R&&!!v.bytesReceived;if(nY){var Z;if((Z=N.Md)==null?0:Z.Hb){N=g.f(v.Gh.values());for(z=N.next();!z.done;z=N.next())if(!z.value.qZ)return!1;return C}}else if(Z=N.iz(z),C&&N.V&&Z!==void 0)return Z;return(C||v.bytesReceived===R)&&v.VH+U6(N,z)===v.bytesReceived}; LM2=function(N,z,v){N.Xy.set(z,{Y$:new eo,VH:0,bytesReceived:0,t4:0,pB:!1,QX:!1,iz:!1,bI:v,gA:[],TU:[],i8:[],hV:!1,Gh:new Map,MS:new Map,BQ:[]});N.logger.debug(function(){return"[initStream] formatId: "+z})}; KM2=function(N,z,v,R){v.TU.push.apply(v.TU,g.U(R));if(nY){v.MS.has(z)||v.MS.set(z,[]);var C;(C=v.MS.get(z)).push.apply(C,g.U(R))}else if(v.zd)for(N=g.f(R),z=N.next();!z.done;z=N.next())v.zd.TU.push(z.value);else{v.zd=new CY(N.Wc,[].concat(g.U(v.TU)));var Z;((Z=N.Wc)==null?0:Z.v2)&&g.b(N,v.zd)}}; lOY=function(N,z,v){var R,C=(R=N.Md)==null?void 0:R.Z.get(z);if(!C)return[];if(v.vp){var Z;return((Z=C.yU(0,v.clipId))==null?void 0:Z.TU)||[]}if(C.MC()){var Y=v.startMs,Q=v.durationMs,L=1E3,K;if(((K=N.Wc)==null?0:K.V)&&v.timeRange){var l;Y=(l=v.timeRange.startTicks)!=null?l:-1;var W;Q=(W=v.timeRange.Ct)!=null?W:-1;var G;L=(G=v.timeRange.timescale)!=null?G:-1}if(v.Fo<0||v.Pg<0||Q<0||Y<0||v.SW<0||L<0)return $d(N,z),[];N=Pv(v.Fo,v.SW);z=v.f3||0;return[new SA(3,C,N,"makeSliceInfosMediaBytes",v.Pg-1,Y/ L,Q/L,z,N.length-z,void 0,v.SM,v.clipId)]}if(v.Pg<0)return $d(N,z),[];var x;return((x=N.Md)==null?0:x.Hb)?(z=C.lY,K=z*C.info.i$,l=((Y=N.Wc)==null?0:Y.J0)?v.f3:void 0,((L=N.Wc)==null?0:L.FX)&&v.timeRange&&!l&&(Q=v.timeRange.startTicks/v.timeRange.timescale),[new SA(3,C,void 0,"makeSliceInfosMediaBytes",v.Pg,Q,z,l,K,!0,v.SM,v.clipId)]):[]}; WMU=function(N,z,v){N.Md=z;N.Wc=v;z=g.f(N.Xy);for(v=z.next();!v.done;v=z.next()){var R=g.f(v.value);v=R.next().value;R=R.next().value;for(var C=g.f(R.gA),Z=C.next();!Z.done;Z=C.next()){Z=Z.value;var Y=lOY(N,v,Z);KM2(N,Z.mx,R,Y)}}}; A3=function(N,z,v,R){N.logger.debug(function(){return"[addStreamData] formatId: "+v+",headerId: "+z+" bytes: "+R.getLength()}); (N=N.Xy.get(v))&&!N.QX&&(nY?(N.Gh.has(z)||N.Gh.set(z,{data:new eo,AY:0,qZ:!1}),J2(N.Gh.get(z).data,R)):J2(N.Y$,R),N.bytesReceived+=R.getLength(),N.pB=!0)}; ms=function(N,z){N.logger.debug(function(){return"[closeStream] formatId: "+z}); var v=N.Xy.get(z);v&&!v.QX&&(v.QX=!0,v.MH&&v.MH(),GgY(N)&&N.N.fP())}; GgY=function(N){N=g.f(N.Xy.values());for(var z=N.next();!z.done;z=N.next())if(!z.value.QX)return!1;return!0}; xyv=function(N){nY=N}; gD=function(N,z,v,R,C,Z,Y){g.H.call(this);this.policy=N;this.info=z;this.Md=v;this.Zx=C;this.logger=new g.Ry("sabr");this.TD=new cO(this);this.s0=new T7(this);this.Jd=new Fc(this);this.state=1;this.HF=!1;this.yw=0;this.clipId="";this.j$=-1;this.Zr=0;this.PC=-1;this.AS=this.jh=!1;this.iA=0;this.Q9=!1;this.policy.FP?this.k8=new dD(this,Z):this.k8=new Xq(this,Z);this.Pc=this.policy.zE?z.zx:g.h(e7u(z,this.policy,R));this.Pc.set("rn",""+this.aR());this.Pc.set("alr","yes");WMU(this.Jd,v,N);this.Cb=new Yd(this, this.policy,this.Pc,z.KV,this.k8,this.logger,R,Y,this.policy.enableServerDrivenRequestCancellation);mc_(this.Cb);var Q;if((Q=this.policy)==null?0:Q.v2)g.b(this,this.Jd),g.b(this,this.Cb);N=z.W;z={method:"POST",body:N};N&&(this.Zr=N.length);try{this.xhr=R5(this.Pc,this.policy.L,this.k8,N9,z),this.policy.JP&&Ip(this.k8,this.IP()),this.Cb.W.start()}catch(L){g.PN(L)}}; Jab=function(N){N.policy.Xe&&N.Op&&!N.Q9?N.Q9=!0:N.k8.mu()}; yaf=function(N,z){var v=-1,R=-1,C=-1,Z;if((Z=N.ll)==null?0:Z.items)for(N=g.f(N.ll.items),Z=N.next();!Z.done;Z=N.next())Z=Z.value,z=Q,L=N.Md.isManifestless&&N.policy.TX,Y){var K;if(((K=N.V)==null?void 0:K.U9.event)==="predictStart"&&N.V.cLN.G&&(N.G=NaN,N.L=NaN);N.V&&N.V.cL===z?VAu(N,z,v,N.V,C):N.W===1&&Vc(N,5,"noad")}; SE2=function(N,z,v,R,C){R.o9?Vc(N,4,"cue"):(N.G=z,N.L=v,N.WL("sdai",{joinad:N.W,sg:N.G,st:N.L.toFixed(3)}),N.J=Date.now(),Vc(N,2,N.W===3?"staftpred":"join"),C.FY(R.U9))}; VAu=function(N,z,v,R,C){if(C&&R){var Z=R.U9,Y=C.L1(Z);Z.event==="predictStart"&&(N.Vp=z);N.WL("sdai",{onqevt:Z.event,sq:z,mt:v,gab:Y,cst:Z.startSecs,cueid:N.policy.D8&&(Y||Z.event==="start")?Z.identifier:void 0},!0);if(Y)if(Z.event!=="predictStart")Z.event==="start"&&N.Vp===z-1&&N.WL("sdai",{gabonstart:z}),SE2(N,z,v,R,C);else if(N.policy.MF)Vc(N,3,"predict");else{var Q=z+Math.max(Math.ceil(-Z.V/5E3),1);Y=Math.floor(v-Z.V/1E3);N.policy.Z?N.B=Y:N.N=Q;N.WL("sdai",{onpred:v,estsq:Q,estmt:Y.toFixed(3)}); Sa(N.loader,Y,Y,Q);N.J=Date.now();Vc(N,3,"predict");C.FY(R.U9)}else N.W===1?((Q=N.Z)==null?0:Q.dP(v))?(Sa(N.loader,v,v,z),Vc(N,4,"sk2head")):Vc(N,5,"nogab"):Z.event==="predictStart"?N.policy.Z&&N.B>0?(v=Math.floor(v-Z.V/1E3),N.B!==v&&N.WL("sdai",{updateSt:v,old:N.B}),N.B=v):N.N>0&&(v=z+Math.max(Math.ceil(-Z.V/5E3),1),N.N!==v&&(N.WL("sdai",{updateSt:v,old:N.N}),N.N=v)):N.policy.MF&&N.W===3&&SE2(N,z,v,R,C);var L,K;if(N.Lb&&Z.event==="start"&&((L=N.V)==null?void 0:L.U9.event)!=="predictStart"&&((K=N.V)== null?void 0:K.cL)===z-1){var l;N.WL("sdai",{ovlpst:(l=N.V)==null?void 0:l.U9.event,sq:z})}}else N.WL("sdai",{nulldec:1,sq:z,mt:v.toFixed(3),evt:(R==null?void 0:(Z=R.U9)==null?void 0:Z.event)||"none"})}; h7m=function(N,z,v){if(N.policy.zS&&N.policy.Z)return!(N.W===1||N.W===2||!N.policy.MF&&N.W===3&&v>=N.N);if(N.W===1||N.W===2)return!1;if(N.W!==0&&z===N.audioTrack){if(N.policy.Z)return E4u(N.videoTrack,v)||E4u(N.videoTrack,v+1);N=E6(N.videoTrack);if(v>(N?N.cL:-1))return!1}return!0}; h3=function(N,z,v){return(v<0||v===N.G)&&!isNaN(N.L)?N.L:z}; g4f=function(N,z){if(N.V){var v=N.V.U9.K5-(z.startTime+N.Y-N.V.U9.startSecs);v<=0||(v=new OQ(N.V.U9.startSecs-(isNaN(N.Y)?0:N.Y),v,N.V.U9.context,N.V.U9.identifier,"stop",N.V.U9.V+z.duration*1E3),N.WL("cuepointdiscontinuity",{segNum:z.cL}),PK(N,v,z.cL))}}; Vc=function(N,z,v){N.W!==z&&(N.WL("sdai",{setsst:z,old:N.W,r:v}),N.W=z)}; HK=function(N,z,v,R){(R===void 0?0:R)?Vc(N,1,"seek"):z>0&&Math.abs(z-v)>=5&&N.W===4&&Vc(N,5,"sk2t")}; o5=function(N,z,v){this.audio=N;this.video=z;this.reason=v}; Dm=function(N,z,v){this.V=N;this.reason=z;this.token=v;this.videoId=void 0}; bx=function(N,z,v){g.H.call(this);this.policy=N;this.N=z;this.WL=v;this.Z=new Map;this.B=0;this.G=!1;this.V="";this.W=!1}; t3=function(N,z,v){if(v===void 0?0:v)N.G=!0;++N.B;v=6E4*Math.pow(2,N.B);v=(0,g.I)()+v;N.Z.set(z.info.id,v)}; O6=function(N){for(var z=g.f(N.Z.entries()),v=z.next();!v.done;v=z.next()){var R=g.f(v.value);v=R.next().value;R=R.next().value;R<(0,g.I)()&&N.Z.delete(v)}return N.Z}; Hwu=function(N){return N.G&&O6(N).size>0}; I5=function(N,z){N.V!==z&&(N.V=z,N.W=!0)}; o4u=function(N,z){var v;z&&(v=g.G1(N.N.V,function(C){return C.id===z})); if(!v&&(v=g.G1(N.N.V,function(C){var Z;return!((Z=C.u$)==null||!Z.isDefault)}),z)){var R; N.WL("iaf",{id:z,sid:(R=v)==null?void 0:R.id})}return v}; rD=function(N,z,v,R,C,Z){var Y=this;Z=Z===void 0?[]:Z;this.loader=N;this.PL=z;this.policy=v;this.Md=R;this.G=C;this.ET=Z;this.logger=new g.Ry("dash/abr");this.V=tK;this.Z=this.L=null;this.J=-1;this.tO=!1;this.nextVideo=this.W=null;this.N=[];this.UT=new Set;this.Id={};this.xT=new Q1(1);this.Y=0;this.S8=this.Vp=this.qd=!1;this.K0=0;this.vL=!1;this.Rd=new Set;this.BL=!1;this.Oi={MK:function(){Xc(Y)}}; this.B=new bx(this.policy,C,function(Q,L){Y.loader.WL(Q,L)})}; IO2=function(N,z,v){ux(N,z);z=o4u(N.B,v);v||z||(z=Dyb(N));z=z||N.G.V[0];N.W=N.Md.V[z.id];Xc(N);N.L=N.W;bwv(N);tAv(N);N.Z=N.nextVideo;N.L=N.W;return Ow_(N)}; uFm=function(N,z){if(XvY(N,z))return null;if(z.reason==="m"&&z.isLocked())return N.logger.debug(function(){return"User sets constraint to: "+W7(z)}),ux(N,z),N.Y=N.N.length-1,Xc(N),cK(N),N.Vp=N.Vp||N.Z!==N.nextVideo,N.Z=N.nextVideo,new o5(N.W,N.Z,z.reason); z.reason==="r"&&(N.J=-1);ux(N,z);cK(N);if(z.reason==="r"&&N.nextVideo===N.Z)return new o5(N.W,N.nextVideo,z.reason);raI(N);return null}; caO=function(N,z,v){N.W=N.Md.V[z];N.L=N.W;return new o5(N.L,N.Z,v?"t":"m")}; qE7=function(N,z){if(z.info.video){if(N.Z!==z)return N.Z=z,Ow_(N)}else N.S8=N.L!==z,N.L=z;return null}; MAY=function(N,z){if(z.V.info.video&&z.B){var v=(z.W+z.Z)/z.duration,R=z.V.info.i$;v&&R&&(N.xT.Xp(1,v/R),N.policy.W&&v/R>1.5&&N.loader.WL("overshoot",{sq:z.cL,br:v,max:R}))}}; qD=function(N,z,v){t3(N.B,z,v===void 0?!1:v);N.J=-1;ux(N,N.V)}; wvK=function(N,z){return new o5(N.L,N.Z,z||N.V.reason)}; raI=function(N){if(N.Z&&N.nextVideo&&MD(N,N.Z.info)N.policy.Ai,Q=C<=N.policy.Ai?rp(R):OH(R);if(!Z||Y||Q)v[C]=R}return v}; ux=function(N,z){N.V=z;var v=N.G.videoInfos;if(!N.V.isLocked()){var R=(0,g.I)();v=g.kK(v,function(Q){if(Q.i$>this.policy.i$)return!1;var L=this.Md.V[Q.id];return O6(this.B).get(Q.id)>R?!1:L.KV.Z>4||L.G>4?(this.logger.debug(function(){return"Remove "+CN(Q)+"; 4 load failures"}),!1):this.Rd.has(+Q.itag)?!1:!0},N); Hwu(N.B)&&(v=g.kK(v,function(Q){return Q.video.width<=854&&Q.video.height<=480}))}v.length||(v=N.G.videoInfos); var C=v;N.policy.Wm&&(C=ze7(N,C,z));C=g.kK(C,z.N,z);if(N.V.isLocked()&&N.B.V){var Z=g.G1(v,function(Q){return Q.id===N.B.V}); Z?C=[Z]:I5(N.B,"")}N.policy.Wm||(C=ze7(N,C,z));C.length||(C=[v[0]]);C.sort(function(Q,L){return MD(N,Q)-MD(N,L)}); z={};for(v=1;vz.dC.video.width?(g.yU(C,v),v--):MD(N,z.gC)*N.policy.Y>MD(N,z.dC)&&(g.yU(C,v-1),v--);var Y=C[C.length-1];N.vL=!!N.Z&&!!N.Z.info&&N.Z.info.JO!==Y.JO;N.logger.debug(function(){return"Constraint: "+W7(N.V)+", "+C.length+" fmts selectable, max selectable fmt: "+CN(Y)}); N.N=C;N.UT.clear();z=!1;for(v=0;v=1080&&(z=!0);vFY(N.policy,Y,N.Md.Hb)}; ze7=function(N,z,v){var R=v.reason==="m"||v.reason==="s";N.policy.FC&&wD&&g.yl&&(!R||v.V<1080)&&(z=z.filter(function(K){return K.video&&(!K.W||K.W.powerEfficient)})); if(z.length>0)if(Dj()){var C=NBK(N,z);z=z.filter(function(K){return!!K&&!!K.video&&K.JO===C[K.video.qualityOrdinal].JO})}else{var Z,Y,Q=(Z=z[0])==null?void 0:(Y=Z.video)==null?void 0:Y.qualityOrdinal; if(Q){v=z.filter(function(K){return!!K&&!!K.video&&K.video.qualityOrdinal===Q}); var L=NBK(N,v)[Q].JO;z=z.filter(function(K){return!!K&&!!K.video&&K.JO===L})}}return z}; ReK=function(N,z){for(var v=0;v+1R}; Xc=function(N){if(!N.W||!N.policy.N&&!N.W.info.u$){var z=N.G.V;N.W&&(z=z.filter(function(R){return R.audio.V===N.W.info.audio.V}),z.length||(z=N.G.V)); N.W=N.Md.V[z[0].id];if(z.length>1&&!N.policy.vL){if(!N.policy.FH){var v=g.G1(z,function(R){return R.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); v&&(N.W=N.Md.V[v.id])}v=!1;if(v=N.policy.Fy?!0:N.V.isLocked()?N.V.V<240:ReK(N,N.W))N.W=N.Md.V[g.lW(z).id]}}}; cK=function(N){if(!N.nextVideo||!N.policy.N)if(N.V.isLocked())N.nextVideo=N.V.V<=360?N.Md.V[N.N[0].id]:N.Md.V[g.lW(N.N).id],N.logger.debug(function(){return"Select max fmt: "+CN(N.nextVideo.info)}); else{for(var z=Math.min(N.Y,N.N.length-1),v=BO(N.PL),R=MD(N,N.W.info),C=v/N.policy.qd-R;z>0&&!(MD(N,N.N[z])<=C);z--);for(var Z=v/N.policy.Y-R;z=Z);z++);N.nextVideo=N.Md.V[N.N[z].id];N.Y!==z&&N.logger.info(function(){return"Adapt to: "+CN(N.nextVideo.info)+", bandwidth: "+v.toFixed(0)+", bandwidth to downgrade: "+C.toFixed(0)+", bandwidth to upgrade: "+Z.toFixed(0)+", constraint: "+W7(N.V)}); N.Y=z}}; bwv=function(N){var z=N.policy.qd,v=BO(N.PL),R=v/z-MD(N,N.W.info);z=g.eV(N.N,function(C){return MD(this,C)Z?C=0:R[Y]>N.buffered[Y]&&(Y===Z-1?C=2:Y===Z-2&&R[Y+1]>N.buffered[Y+1]&&(C=3))}N.V.add(z<<3|(v&&4)|C);z=Math.ceil(N.track.C8()*1E3);N.V.add(z-N.B);N.B=z;if(C===1)for(N.V.add(Z),Y=z=0;Y=2&&N.V.add(R[Z- 1]-N.buffered[Z-1]);v&&N.V.add(v);N.buffered=R}; vt=function(N,z,v){var R=this;this.policy=N;this.V=z;this.K0=v;this.N=this.W=0;this.Ta=null;this.qd=new Set;this.J=[];this.indexRange=this.initRange=null;this.Y=new qa;this.Vp=this.PL=!1;this.Oi={rZW:function(){return R.Z}, LUo:function(){return R.chunkSize}, IiU:function(){return R.L}, cbL:function(){return R.G}}; (z=jyu(this))?(this.chunkSize=z.csz,this.Z=Math.floor(z.clen/z.csz),this.L=z.ck,this.G=z.civ):(this.chunkSize=N.IS,this.Z=0,this.L=g.sD(16),this.G=g.sD(16));this.B=new Uint8Array(this.chunkSize);this.L&&this.G&&(this.crypto=new fq2(this.L,this.G))}; jyu=function(N){if(N.policy.g$&&N.policy.Bd)for(var z=g.f(N.policy.g$),v=z.next(),R={};!v.done;R={j2:void 0,OU:void 0},v=z.next())if(v=g.R0(v.value),R.j2=+v.clen,R.OU=+v.csz,R.j2>0&&R.OU>0&&N.policy.N===v.docid&&N.V.info.id===v.fmtid&&N.V.info.lastModified===+v.lmt)return N={},N.clen=R.j2,N.csz=R.OU,N.ck=v.ck,N.civ=v.civ,N}; RQ=function(N){return!!N.Ta&&N.Ta.Rq()}; Lru=function(N,z){if(!RQ(N)&&!N.HL()){if(!(N.PL||(N.PL=!0,N.Z>0))){var v=Cl(N);v=P3(N.policy.N,N.V.info,Z$(N),v,N.policy.xT);Yg(N,v)}if(z.info.type===1){if(N.Ta){j2(N,Error("Woffle: Expect INIT slices to always start us off"));return}N.initRange=Pv(0,z.V.getLength())}else if(z.info.type===2)N.Ta&&N.Ta.type===1||j2(N,Error("Woffle: Index before init")),N.indexRange=Pv(N.initRange.end+1,z.V.getLength());else if(z.info.type===3){if(!N.Ta){j2(N,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(N.Ta.type===3&&!Hv(N.Ta,z.info)&&(N.J=[],z.info.cL!==oG(N.Ta)||z.info.W!==0))return;if(z.info.B){v=g.f(N.J);for(var R=v.next();!R.done;R=v.next())aCf(N,R.value);N.J=[]}else{N.J.push(z);N.Ta=z.info;return}}else{j2(N,Error("Woffle: Unexpected slice type"));return}N.Ta=z.info;aCf(N,z);QyI(N)}}; aCf=function(N,z){var v=0,R=z.V.Na();if(N.N=R.length)return;if(v<0)throw Error("Missing data");N.N=N.Z;N.W=0}for(C={};v0){var Y=R.getUint32(v+28);Z+=Y*16+4}var Q=R.getUint32(v+Z-4);try{var L=xXv(z.subarray(v+Z,v+Z+Q));if(L!==null){var K=L;break a}}catch(l){}}v+=C}K=null;break a}catch(l){K=null;break a}K=void 0}if(K!=null)for(z=o1(y2(K,7)),z==null||N.qF||(N.cryptoPeriodIndex=z),z=o1(y2(K,10)),z!=null&&z>0&&!N.qF&&(N.V=z),K=mg(K, 2,prI,void 0===SCI?2:4),K=g.f(K),R=K.next();!R.done;R=K.next())z=N.Z,v=z.push,R=a1(R.value),R=g.zV(R,4),v.call(z,R)}; JIu=function(N){return isNaN(N.cryptoPeriodIndex)?g.zV(N.initData):""+N.cryptoPeriodIndex}; Ll=function(N,z,v){var R=v===void 0?{}:v;v=R.videoDuration===void 0?0:R.videoDuration;var C=R.xS===void 0?void 0:R.xS;R=R.Dh===void 0?!1:R.Dh;this.videoId=N;this.status=z;this.videoDuration=v;this.xS=C;this.Dh=R}; yI_=function(N,z,v,R,C){this.videoId=N;this.ji=z;this.W=v;this.bytesDownloaded=R;this.V=C}; Kl=function(N){this.V=N;this.offset=0}; lf=function(N){if(N.offset>=N.V.getLength())throw Error();return N.V.getUint8(N.offset++)}; fC2=function(N,z){z=z===void 0?!1:z;var v=lf(N);if(v===1){z=-1;for(v=0;v<7;v++){var R=lf(N);z===-1&&R!==255&&(z=0);z>-1&&(z=z*256+R)}return z}R=128;for(var C=0;C<6&&R>v;C++)v=v*256+lf(N),R*=128;return z?v:v-R}; dXY=function(N){try{var z=fC2(N,!0),v=fC2(N,!1);return{id:z,size:v}}catch(R){return{id:-1,size:-1}}}; sy_=function(N){for(var z=new Kl(N),v=-1,R=0,C=0;!R||!C;){var Z=dXY(z),Y=Z.id;Z=Z.size;if(Y<0)return;if(Y===176){if(Z!==2)return;R=z.cZ()}else if(Y===186){if(Z!==2)return;C=z.cZ()}Y===374648427?v=z.cZ()+Z:Y!==408125543&&Y!==174&&Y!==224&&z.skip(Z)}z=sf(N,0,v);v=new DataView(z.buffer);v.setUint16(R,3840);v.setUint16(C,2160);R=new eo([z]);J2(R,N);return R}; TB7=function(N,z,v){var R=this;this.loader=N;this.policy=z;this.G=v;this.logger=new g.Ry("dash");this.W=[];this.V=null;this.PL=-1;this.J=0;this.Rd=NaN;this.qd=0;this.Z=NaN;this.Y=this.tO=0;this.vL=-1;this.Id=this.B=this.N=this.K0=null;this.xT=this.S8=NaN;this.L=this.Vp=this.UT=this.ET=null;this.kJ=!1;this.BL=this.timestampOffset=0;this.Oi={M7:function(){return R.W}}; if(this.policy.N){var C=this.G,Z=this.policy.N;this.policy.xT&&N.WL("atv",{ap:this.policy.xT});this.L=new vt(this.policy,C,function(Y,Q,L){Wt(N,new Ll(R.policy.N,2,{xS:new yI_(Z,Y,C.info,Q,L)}))}); this.L.Y.promise.then(function(Y){R.L=null;Y===1?Wt(N,new Ll(R.policy.N,Y)):R.loader.WL("offlineerr",{status:Y.toString()})},function(Y){var Q=(Y.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); Y instanceof aQ&&!Y.V?(R.logger.info(function(){return"Assertion failed: "+Q}),R.loader.WL("offlinenwerr",{em:Q}),Gq(R),Wt(N,new Ll(R.policy.N,4))):(R.logger.info(function(){return"Failed to write to disk: "+Q}),R.loader.WL("dldbwerr",{em:Q}),Gq(R),Wt(N,new Ll(R.policy.N,4,{Dh:!0})))})}}; FrY=function(N){return N.W.length?N.W[0]:null}; nFu=function(N,z){return N.W.some(function(v){return v.info.cL===z})}; AIY=function(N,z,v,R){R=R===void 0?0:R;if(N.B){var C=N.B.W+N.B.Z;if(v.info.W>0)if(v.info.cL===N.B.cL&&v.info.W=0&&N.B.cL>=0&&!Hv(N.B,v.info))throw new g.XS("improper_continuation",N.B.z4(),v.info.z4());Y0I(N.B,v.info)||xg(N,"d")}else if(v.info.W>0)throw new g.XS("continuation_of_null",v.info.z4());N.B=v.info;N.G=v.info.V;if(v.info.W===0){if(N.V)if(!N.loader.isOffline()||N.policy.wG)N.loader.WL("slice_not_fully_processed", {buffered:N.V.info.z4(),push:v.info.z4()});else throw new g.XS("slice_not_fully_processed",N.V.info.z4(),v.info.z4());e2(N);N.tO=R}else{if(N.tO&&R&&N.tO!==R)throw N=new g.XS("lmt_mismatch",v.info.cL,N.tO,R),N.level="WARNING",N;!v.info.V.MC()&&N.N&&(R=v.info,C=N.N.j$,R.Y="updateWithEmsg",R.cL=C)}if(N.V){R=g.YF(N.V,v);if(!R)throw new g.XS("failed_to_merge",N.V.info.z4(),v.info.z4());N.V=R}else N.V=v;a:{v=g.qi(N.V.info.V.info);if(N.V.info.type!==3){if(!N.V.info.B)break a;N.V.info.type===6?mXu(N,z,N.V): $Xu(N,N.V);N.V=null}for(;N.V;){R=N.V.V.getLength();if(N.PL<=0&&N.J===0){var Z=N.V.V,Y=-1;C=-1;if(v){for(var Q=0;Q+80))break;if(W!==408125543)if(W===524531317)Q=!0,l>=0&&(C=Z.cZ()+l,L=!0);else{if(Q&&(W===160||W===163)&&(Y<0&&(Y=K),L))break;W===163&&(Y=Math.max(0,Y),C=Z.cZ()+l);if(W===160){Y<0&&(C=Y=Z.cZ()+ l);break}Z.skip(l)}}Y<0&&(C=-1)}if(Y<0)break;N.PL=Y;N.J=C-Y}if(N.PL>R)break;N.PL?(R=UXU(N,N.PL),R.B&&BBO(N,R),mXu(N,z,R),JZ(N,R),N.PL=0):N.J&&(R=UXU(N,N.J<0?Infinity:N.J),N.J-=R.V.getLength(),JZ(N,R))}}N.V&&N.V.info.B&&(JZ(N,N.V),N.V=null)}; $Xu=function(N,z){!z.info.V.MC()&&z.info.W===0&&(g.qi(z.info.V.info)||z.info.V.info.qF())&&Da_(z);if(z.info.type===1)try{BBO(N,z),gFu(N,z)}catch(C){g.kE(C);var v=DO(z.info);v.hms="1";N.loader.handleError("fmt.unparseable",v||{},1)}v=z.info.V;v.hN(z);N.L&&Lru(N.L,z);if(v.eN()&&N.policy.V)a:{N=N.loader.Md;z=z.info.clipId;v=g.wp(v.info,N.Hb);if(z){var R=Aa({itag:v.itag,lmt:N.Hb?0:v.lmt||0,xtags:v.xtags});if(N.vL[R])break a;N.vL[R]=z}N.S8.push(v)}}; Nku=function(N,z,v){if(N.W.length!==0&&(v||N.W.some(function(Z){return Z.info.N=fl(Y)+Q):z=N.getDuration()>=Y.getDuration(),z=!z;z&&Pzu(v)&&(z=N.K0,yQ?(Q=HNU(v),Y=1/Q,Q=fl(N,Q),z=fl(z)+Y-Q):z=z.getDuration()- N.getDuration(),z=1+z/v.info.duration,Piu(v.VT(),z))}else{Y=!1;N.N||(Da_(v),v.W&&(N.N=v.W,Y=!0,Z=v.info,R=v.W.j$,Z.Y="updateWithEmsg",Z.cL=R,Z=v.W,Z.Rq&&(R=N.G.index,R.W=!Z.Rq,R.Z="emsg"),Z=v.info.V.info,R=v.VT(),g.qi(Z)?Cw(R,1701671783):Z.qF()&&Kw([408125543],307544935,R)));a:if((Z=ay(v,N.policy.YJ))&&oxK(v))Q=V7u(N,v),N.Y+=Q,Z-=Q,N.qd+=Z,N.Z=N.policy.Et?N.Z+Z:NaN;else{if(N.policy.bz){if(R=L=N.loader.KX(g.iz(v),1),N.Z>=0&&v.info.type!==6){if(N.policy.Et&&isNaN(N.S8)){g.PN(new g.XS("Missing duration while processing previous chunk", v.info.z4()));N.loader.isOffline()&&!N.policy.wG||Sgm(N,v,R);xg(N,"m");break a}var K=L-N.Z,l=K-N.Y,W=v.info.cL,G=N.Id?N.Id.cL:-1,x=N.xT,e=N.S8,d=N.policy.Nl&&K>N.policy.Nl,T=Math.abs(l)>10,m=Math.abs(N.Z-R)<1E-7;if(Math.abs(l)>1E-4){N.BL+=1;var n=(C=N.N)==null?void 0:rk(C);C={audio:""+ +N.bI(),sq:W.toFixed(),sliceStart:L,lastSq:G.toFixed(),lastSliceStart:x,lastSliceDuration:e,totalDrift:(K*1E3).toFixed(),segDrift:(l*1E3).toFixed(),skipRewrite:""+ +(d||T)};if(n==null?0:n.length)C.adCpn=n[0];N.loader.handleError("qoe.avsync", C);N.vL=W}d||T||m||(R=N.Z);C=V7u(N,v,L);Z-=C;N.Y=K+C;N.policy.W&&(l&&!m||C)&&(K=(Q=N.N)==null?void 0:rk(Q),N.loader.WL("discontinuityRewrite",{adCpn:(K==null?0:K.length)?K.join("."):"",itag:v.info.V.info.itag,sq:v.info.cL,originalStartTime:L,rewrittenStartTime:R,startTimeAdjustment:R-L,segDrift:(l*1E3).toFixed(),originalDuration:Z+C,rewrittenDuration:Z,durationAdjustment:C}))}}else R=isNaN(N.Z)?v.info.startTime:N.Z;Sgm(N,v,R)&&(N.qd+=Z,N.Z=R+Z,N.policy.kZ&&N.BL>=N.policy.kZ&&(N.BL=0,N.loader.Au({resetForRewrites:"count"})))}N.Id= v.info;N.S8=j7(v);v.Z>=0&&(N.xT=v.Z);if(Y&&N.N){Y=EFu(N,!0);bC(v.info,Y);N.V&&bC(N.V.info,Y);z=g.f(z);for(Q=z.next();!Q.done;Q=z.next())Q=Q.value,C=void 0,N.policy.B&&Q.cL!==((C=N.N)==null?void 0:C.j$)||bC(Q,Y);(v.info.B||N.V&&N.V.info.B)&&v.info.type!==6||(N.Vp=Y,N.policy.Z?(z=hev(N.N),N.loader.iy(N.G,Y,z)):(z=N.loader,z.Md.isManifestless&&Hrf(z,Y,null,!!N.G.info.video)),N.policy.L5||oFU(N))}}gFu(N,v);N.timestampOffset&&Exb(v,N.timestampOffset)}; JZ=function(N,z){if(z.info.B){N.ET=z.info;if(N.N){var v=N.N,R=EFu(N,!1);v=hev(v);N.loader.iy(N.G,R,v);N.Vp||N.policy.L5||oFU(N);N.Vp=null}e2(N)}N.L&&Lru(N.L,z);if(R=N.Wg())if(R=g.YF(R,z,N.policy.Xu,N.policy.p5)){N.W.pop();N.W.push(R);return}N.W.push(z)}; hev=function(N){if(N.o9()){var z=N.data["Stitched-Video-Id"]?N.data["Stitched-Video-Id"].split(",").slice(0,-1):[],v=rk(N),R=[];if(N.data["Stitched-Video-Duration-Us"])for(var C=g.f(N.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),Z=C.next();!Z.done;Z=C.next())R.push((Number(Z.value)||0)/1E6);C=[];if(N.data["Stitched-Video-Start-Frame-Index"]){Z=g.f(N.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var Y=Z.next();!Y.done;Y=Z.next())C.push(Number(Y.value)||0)}C=[]; if(N.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(Z=g.f(N.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),Y=Z.next();!Y.done;Y=Z.next())C.push((Number(Y.value)||0)/1E6);N=new GKO(z,v,R,C,g.AxI(N),g.gzY(N))}else N=null;return N}; e2=function(N){N.V=null;N.PL=-1;N.J=0;N.N=null;N.Rd=NaN;N.qd=0;N.Vp=null}; xg=function(N,z){z={rst4disc:z,cd:N.Y.toFixed(3),sq:N.Id?N.Id.cL:-1};N.Z=NaN;N.Y=0;N.vL=-1;N.Id=null;N.xT=NaN;N.S8=NaN;N.UT=null;N.loader.WL("mdstm",z)}; gFu=function(N,z){if(N.isDrm()){if(z.info.V.info.qF()){var v=new Y4(z.VT());if(jA(v,[408125543,374648427,174,28032,25152,20533,18402])){var R=Lw(v,!0);v=R!==16?null:x4(v,R)}else v=null;R="webm"}else z.info.J=lCI(z.VT()),v=WrK(z.info.J),R="cenc";v&&v.length&&(v=new QQ(v,R),N.policy.UM&&g.qi(z.info.V.info)&&(R=ozY(z.VT()))&&(v.W=R),v.qF=z.info.V.info.qF(),z.W&&z.W.cryptoPeriodIndex&&(v.cryptoPeriodIndex=z.W.cryptoPeriodIndex),z.W&&z.W.W&&(v.V=z.W.W),N.loader.jj(v))}}; oFU=function(N){var z=N.N,v=Ui2(z);v&&(v.startSecs+=N.Rd,N.loader.uh(N.G,v,z.j$,z.o9()))}; EFu=function(N,z){var v,R=N.N;if(v=Ui2(R))v.startSecs+=N.Rd;return new P7(R.j$,N.Rd,z?R.lY:N.qd,R.ingestionTime,"sq/"+R.j$,void 0,void 0,z,v)}; Sgm=function(N,z,v){if(!S02(z,v))return z=DO(z.info),z.smst="1",N.loader.handleError("fmt.unparseable",z||{},1),!1;isNaN(N.Rd)&&(N.Rd=v);return!0}; V7u=function(N,z,v){var R=0;if(z.info.V.info.qF()&&!oxK(z))return 0;if(N.K0&&!N.bI()){var C=0;v&&g.qi(z.info.V.info)?C=v-N.Z:z.info.V.info.qF()&&(C=N.Y);var Z=z.info.cL;v=ay(z,N.policy.YJ);var Y=N.K0;var Q=Y.vL;Y=Y.Y;var L=Math.abs(Y-C)>.02;if((Z===Q||Z>Q&&Z>N.vL)&&L){R=Math.max(.95,Math.min(1.05,(v-(Y-C))/v));if(g.qi(z.info.V.info))Piu(z.VT(),R);else if(z.info.V.info.qF()&&(Z=C-Y,!g.qi(z.info.V.info)&&(z.info.V.info.qF(),R=new Y4(z.VT()),Q=z.B?R:new Y4(new DataView(z.info.V.V.buffer)),ay(z,!0)))){var K= Z*1E3,l=Ja(Q);Q=R.pos;R.pos=0;if(R.V.getUint8(R.pos)===160||yh(R))if(Qh(R,160))if(Lw(R,!0),Qh(R,155)){if(Z=R.pos,L=Lw(R,!0),R.pos=Z,K=K*1E9/l,l=lC(R),K=l+Math.max(-l*.7,Math.min(l,K)),K=Math.sign(K)*Math.floor(Math.abs(K)),!(Math.ceil(Math.log(K)/Math.log(2)/8)>L)){R.pos=Z+1;for(Z=L-1;Z>=0;Z--)R.V.setUint8(R.pos+Z,K&255),K>>>=8;R.pos=Q}}else R.pos=Q;else R.pos=Q;else R.pos=Q}R=ay(z,N.policy.YJ);R=v-R}R&&z.info.V.info.qF()&&N.loader.WL("webmDurationAdjustment",{durationAdjustment:R,videoDrift:C+R, audioDrift:Y})}return R}; Pzu=function(N){return N.info.V.MC()&&N.info.cL===N.info.V.index.YH()}; fl=function(N,z){z=(z=z===void 0?0:z)?Math.round(N.timestampOffset*z)/z:N.timestampOffset;N.G.N&&z&&(z+=N.G.N.V);return z+N.getDuration()}; DXm=function(N,z){z<0||(N.W.forEach(function(v){Exb(v,z)}),N.timestampOffset=z)}; kY=function(N,z,v,R,C){qO.call(this,v,C);var Z=this;this.policy=N;this.formatId=z;this.Jd=R;this.lastError=null;this.MH=function(){Z.HL()||(Z.Jd.Xy.has(Z.formatId)?(Z.isComplete()||Z.V.start(),BK(Z.Jd,Z.formatId)&&Z.JD(2),Z.Jd.QX(Z.formatId)&&(QGU(Z.Jd,Z.formatId)?Z.lF(4):(Z.lastError="net.closed",Z.lF(5)))):(Z.lastError="player.exception",Z.lF(5)))}; this.V=new g.cn(function(){Z.isComplete()||(Z.lastError="net.timeout",Z.lF(5))},1E3); this.V.start();iwu(this.Jd,this.formatId,this.MH);g.Fp(this.MH)}; dj=function(N,z,v,R){g.H.call(this);var C=this;this.loader=N;this.policy=z;this.V=v;this.timing=R;this.logger=new g.Ry("dash");this.Z=[];this.K0=[];this.W=this.Mu=null;this.UT=!1;this.tO=this.BL=0;this.G=-1;this.PL=!1;this.Rd=-1;this.Id=null;this.Vp=NaN;this.qd=[];this.Oi={Ni:function(){return C.N}, zEU:function(){return C.Z}, BKd:function(){return C.Y}}; this.N=new TB7(N,z,v);this.policy.V&&(this.Y=new gW(this.N,this.loader.getManifest(),this.policy,function(Z){C.policy.n9&&C.WL("buftl",Z)})); this.policy.CV&&(this.J=new Ne(this));this.i$=v.info.i$;this.L=this.policy.Vp?!1:v.Gz();this.isManifestless=v.Gz();this.B=this.L;g.b(this,this.Id)}; sM=function(N,z,v){v=v===void 0?!1:v;z&&yQ&&DXm(N.N,z.Mi());if(!v){var R;(R=N.Y)==null||cGY(R)}N.Mu=z;(z=N.Y)!=null&&(z.Mu=N.Mu)}; Tq=function(N){var z=N.Mu&&N.Mu.b9();if(N.policy.zD){if((N=N.Y)==null)N=void 0;else{var v;N=(v=N.Z)==null?void 0:v.info}return N||null}return z}; brY=function(N){for(var z={},v=0;v4&&N.K0.shift()}; t7u=function(N,z){if(z.l3()){var v=z.Qi();v=g.f(v);for(var R=v.next();!R.done;R=v.next())R=R.value,N.policy.W&&z instanceof kY&&N.WL("omblss",{s:R.info.z4()}),nl(N,z.info.TU,R,z.sy())}}; nl=function(N,z,v,R){R=R===void 0?0:R;isNaN(N.Vp)||(N.WL("aswm",{sq:z[0].cL,id:z[0].V.info.itag,xtag:z[0].V.info.V,ep:Date.now()-N.Vp}),N.Vp=NaN);switch(v.info.type){case 1:case 2:Or7(N,v);break;case 4:var C=v.info.V,Z=C.uX(v),Y;((Y=N.W)==null?0:Y.type===4)&&ljK(v.info,N.W)&&(N.W=C.MV(N.W).pop());v=g.f(Z);for(C=v.next();!C.done;C=v.next())nl(N,z,C.value,R);break;case 3:v.info.V.info.video?(C=N.timing,C.K0||(C.K0=(0,g.I)(),$c("fvb_r",C.K0,C.V))):(C=N.timing,C.G||(C.G=(0,g.I)(),$c("fab_r",C.G,C.V))); AIY(N.N,z,v,R);N.policy.V&&ICK(N);break;case 6:AIY(N.N,z,v,R),N.W=v.info}}; Or7=function(N,z){if(z.info.type===1)if(z.info.V.info.video){var v=N.timing;v.Id||(v.Id=(0,g.I)(),$c("vis_r",v.Id,v.V))}else v=N.timing,v.Y||(v.Y=(0,g.I)(),$c("ais_r",v.Y,v.V));$Xu(N.N,z);N=N.loader;N.videoTrack.V.eN()&&N.audioTrack.V.eN()&&N.policy.V&&!N.Md.Hb&&(z=N.audioTrack.getDuration(),v=N.videoTrack.getDuration(),Math.abs(z-v)>1&&N.WL("trBug",{af:""+g.wp(N.audioTrack.V.info,!1),vf:""+g.wp(N.videoTrack.V.info,!1),a:""+z,v:""+v}))}; bp=function(N){return FrY(N.N)}; ICK=function(N){N.Z.length?N.W=g.lW(g.lW(N.Z).info.TU):N.N.W.length?N.W=N.N.Wg().info:N.W=Tq(N)}; mi=function(N,z){var v={gH:[],x3:[]},R;if((N=N.Y)==null)N=void 0;else{u$_(N,N.gH,"og");IvK(N,z);u$_(N,N.gH,"trim");var C=rGm(N);z=C.gH;C=C.u3;for(var Z=[],Y=0;Y0){var G=ir(W,L);G>=0&&(l=(W.end(G)-L+.1)*1E3)}Z.push({formatId:g.wp(Q.info.V.info,N.Md.Hb), SM:Q.info.SM,sequenceNumber:Q.info.cL+N.N,Tu:K,im:Q.info.Z,va:l})}N={gH:z,x3:Z}}return(R=N)!=null?R:v}; Sd=function(N,z,v){v=v===void 0?!1:v;if(N.Mu){var R=N.Mu.vc(),C=ae(R,z),Z=NaN,Y=Tq(N);Y&&(Z=ae(R,Y.V.index.getStartTime(Y.cL)));if(C===Z&&N.W&&N.W.Z&&XcY($g(N),0))return z}N=rIu(N,z,v);return N>=0?N:NaN}; hp=function(N,z,v){N.V.eN();var R=rIu(N,z);if(R>=0)return R;var C;(C=N.Y)==null||XMb(C,z,v);v=Math;R=v.min;C=N.N;if(C.L)if(C=C.L,C.Ta&&C.Ta.type===3)C=C.Ta.startTime;else if(C.Z>0){var Z=C.V.index;Z=g.A8(Z.offsets.subarray(0,Z.count),C.Z*C.chunkSize);C=C.V.index.getStartTime(Z>=0?Z:Math.max(0,-Z-2))}else C=0;else C=Infinity;z=R.call(v,z,C);N.W=N.policy.Vp?null:N.V.mz(z).TU[0];UM(N)&&(N.Mu&&N.Mu.abort(),N.policy.ZU&&(v=N.Y)!=null&&(v.Z=void 0));N.tO=0;return N.W?N.W.startTime:z}; Mvu=function(N){N.L=!0;N.B=!0;N.G=-1;hp(N,Infinity)}; Bt=function(N){for(var z=0,v=g.f(N.Z),R=v.next();!R.done;R=v.next())z+=GS2(R.value.info);return z+=pc_(N.N)}; gj=function(N,z){z=z===void 0?!1:z;var v=N.loader.getCurrentTime(),R=N.N.Wg(),C=(R==null?void 0:R.info.G)||0;N.policy.V8&&(R==null?0:R.info.V.Gz())&&!R.info.B&&(C=R.info.N);if(!N.Mu)return N.policy.V&&z&&!isNaN(v)&&R?C-v:0;var Z=Tq(N);if(Z&&AZ(Z))return Z.G;var Y=N.Mu.vc(!0);if(z&&R)return Z=0,N.policy.V&&(Z=KN(Y,C+.02)),Z+C-v;C=KN(Y,v);N.policy.fJ&&Z&&(z=ir(Y,v),Y=ir(Y,Z.N-.02),z===Y&&(v=Z.G-v,N.policy.W&&v>C+.02&&N.WL("abh",{bh:C,bhtls:v}),C=Math.max(C,v)));return C}; unI=function(N){var z=Tq(N);return z?z.G-N.loader.getCurrentTime():0}; cIf=function(N,z){if(N.Z.length){if(N.Z[0].info.TU[0].startTime<=z)return;Vo(N)}for(var v=N.N,R=v.W.length-1;R>=0;R--)v.W[R].info.startTime>z&&v.W.pop();ICK(N);N.W&&z=0;Y--){var Q=C.W[Y];Q.info.cL>=z&&(C.W.pop(),C.Z-=ay(Q,C.policy.YJ),Z=Q.info)}Z&&(C.B=C.W.length>0?C.W[C.W.length-1].info:C.UT,C.W.length!==0||C.B||xg(C,"r"));C.loader.WL("mdstm",{rollbk:1,itag:Z?Z.V.info.itag:"",popped:Z?Z.cL:-1,sq:z,lastslc:C.B?C.B.cL:-1,lastfraget:C.Z.toFixed(3)});if(N.policy.V)return N.W=null,!0;R>v?hp(N,R):N.W=N.V.zq(z-1,!1).TU[0]}catch(L){return z=UH(L),z.details.reason="rollbkerr", N.loader.handleError(z.errorCode,z.details,z.severity),!1}return!0}; Pt=function(N,z){var v;for(v=0;v0?v||z.cL>=N.Rd:v}; VQ=function(N){var z;return UM(N)||AZ((z=N.N.Wg())==null?void 0:z.info)}; $g=function(N){var z=[],v=Tq(N);v&&z.push(v);z=g.sZ(z,N.N.q$());v=g.f(N.Z);for(var R=v.next();!R.done;R=v.next()){R=R.value;for(var C=g.f(R.info.TU),Z=C.next(),Y={};!Z.done;Y={Vm:void 0},Z=C.next())Y.Vm=Z.value,R.QM&&(z=g.kK(z,function(Q){return function(L){return!ljK(L,Q.Vm)}}(Y))),(ha(Y.Vm)||Y.Vm.type===4)&&z.push(Y.Vm)}N.W&&!Cru(N.W,g.lW(z),N.W.V.MC())&&z.push(N.W); return z}; XcY=function(N,z){if(!N.length)return!1;for(z+=1;z=z){z=Z;break a}}z=C}return z<0?NaN:XcY(N,v?z:0)?N[z].startTime:NaN}; S2=function(N){return!(!N.W||N.W.V===N.V)}; qg2=function(N){return S2(N)&&N.V.eN()&&N.W.V.info.i$z&&N.G1080&&!N.YO&&(N.tO=36700160,N.ET=5242880,N.BL=Math.max(4194304,N.BL),N.YO=!0);z.video.qualityOrdinal>2160&&!N.DZ&&(N.tO=104857600,N.i$=13107200,N.DZ=!0);g.LM(N.bS.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?z.isEncrypted()&&g.tr()&&g.Dz("samsung")&&(g.Dz("kant")||g.Dz("muse"))&&(N.i$=g.LM(N.bS.experiments,"html5_samsung_kant_limit_max_bitrate")):z.isEncrypted()&&g.tr()&&g.Dz("kant")&&(N.i$=1310720);N.Lf!==0&&z.isEncrypted()&& (N.i$=N.Lf);N.UV!==0&&z.isEncrypted()&&v&&(N.i$=N.UV);z.i$&&(N.qy=Math.max(N.w5,Math.min(N.BL,5*z.i$)))}; ea=function(N){return N.V&&N.RR}; D$=function(N){return N.V&&N.o4&&N.playbackStartPolicy}; bf=function(N,z,v,R){N.o4&&(N.playbackStartPolicy=z,N.l2=v,N.Sv=R)}; oQ=function(N,z,v){v=v===void 0?0:v;return g.LM(N.bS.experiments,z)||v}; QWY=function(N){var z=N===void 0?{}:N;N=z.W2;var v=z.g5;var R=z.Ry;var C=z.YH;z=z.uj;this.W2=N;this.g5=v;this.Ry=R;this.YH=C;this.uj=z}; QS7=function(N,z){if(z<0)return!0;var v=N.YH();return z0)return 2;if(z<0)return 1;v=N.YH();return z(0,g.I)()?0:1}; OM=function(N,z,v,R,C,Z,Y,Q,L,K,l,W,G,x){x=x===void 0?null:x;g.H.call(this);var e=this;this.loader=N;this.policy=z;this.videoTrack=v;this.audioTrack=R;this.N=C;this.V=Z;this.timing=Y;this.B=Q;this.schedule=L;this.Md=K;this.Z=l;this.qd=W;this.SC=G;this.rD=x;this.Vp=!1;this.Qk="";this.UA=null;this.AJ=NaN;this.PL=!1;this.W=null;this.d$=this.J=NaN;this.IR=this.G=0;this.logger=new g.Ry("dash");this.Oi={Ch:function(d,T){return e.Ch(d,T)}}; this.policy.Hw>0&&(this.Qk=g.sD(this.policy.Hw));this.policy.Eu&&(this.Y=new tZ(this.loader,this.policy,this.schedule),g.b(this,this.Y))}; x9f=function(N,z,v){var R=z.W?z.W.V.KV:z.V.KV;var C=N.N,Z;(Z=!N.policy.xU)||(Z=B7(R.V)===B7(R.W));Z?R=!1:(C=FF(C,B7(R.W)),Z=6E4*Math.pow(C.N,1.6),(0,g.I)()=C.N?(C.WL("sdai",{haltrq:Z+1,est:C.N}),R=!1):R=C.W!==2;if(!R||!Bv(z.W?z.W.V.KV:z.V.KV,N.policy,N.N,N.loader.Q7())||N.loader.isSuspended&&(!dd(N.schedule)||N.loader.Uo))return!1;if(N.policy.N&&kN>=5)return g.qv(N.loader.yG),!1;if(N.Md.isManifestless){if(z.Z.length>0&&z.W&&z.W.cL===-1||z.Z.length>=N.policy.iQ||!N.policy.Fs&&z.Z.length>0&&!N.policy.L.g5)return!1;if(z.L)return!N.Md.isLive|| !isNaN(N.AJ)}if(v1u(z))return N.logger.debug("Pending request with server-selectable format found"),!1;if(!z.W){if(!z.V.eN())return!1;hp(z,N.loader.getCurrentTime())}if(bp(z)&&(z.Wg()!==bp(z)||N.loader.isSuspended))return!1;C=(R=N.policy.Fu)&&!z.Z.length&&gj(z,!0)=N.policy.K7)return!1;R=z.W;if(!R)return!0;R.type===4&&R.V.eN()&&(z.W=g.lW(R.V.MV(R)),R= z.W);if(!R.Rq()&&!R.V.AG(R))return!1;Z=N.Md.pG||N.Md.N;if(N.Md.isManifestless&&Z){Z=z.V.index.YH();var Y=v.V.index.YH();Z=Math.min(Z,Y);if(z.V.index.An()>0&&Z>0&&R.cL>=Z)return z.Rd=Z,v.Rd=Z,!1}if(R.V.info.audio&&R.type===4||R.Rq())return!1;Z=!z.B&&!v.B;if(C=!C)C=R.G,C=!!(v.W&&!AZ(v.W)&&v.W.Ge1v(N,z)?(e1v(N,z),!1):(N=z.Mu)&&N.isLocked()?!1:!0}; e1v=function(N,z){var v=N.V;v=v.V?v.V.U9:null;if(N.policy.K0&&v)return v.startSecs+v.K5+15;z=Ez(N.loader,z);N.policy.A0>0&&(v=((0,g.I)()-N.loader.Ca)/1E3,z=Math.min(z,N.policy.A0+N.policy.M3*v));v=N.loader.getCurrentTime()+z;return N.policy.jq&&(z=JRu(N.loader)+N.policy.jq,z=0||z.KV.Rt("defrag")==="1"||z.KV.Rt("otf")==="1"){z=null;break a}C=Pv(0,4096)}C=new ta([new SA(5,R.V,C,"createProbeRequestInfo"+R.Y,R.cL)],z.W);C.jM=v;C.V=z.V;z=C}z&&GxO(N,z)}}; GxO=function(N,z){N.loader.Yy(z);var v=GS2(z),R=N.loader.CZ();v={bF:N.schedule,Bh:v,g_:h_7(N.B,v),CX:EE(z.TU[0]),EV:Am(z.KV.V),lV:N.policy.W,E7:function(Y,Q){N.loader.vk(Y,Q)}}; if(N.schedule.W.G){var C,Z;v.FB=(((C=N.videoTrack.V)==null?void 0:C.info.i$)||0)+(((Z=N.audioTrack.V)==null?void 0:Z.info.i$)||0)}N.UA&&(v.cL=z.TU[0].cL,v.AJ=z.AJ,v.UA=N.UA);R={Ny:xab(z,N.loader.getCurrentTime()),Sf:N.policy.HH&&IG(z)&&z.TU[0].V.info.video?Zru(N.Z):void 0,Fg:N.policy.K0,poToken:N.loader.xw(),Eg:N.loader.wE(),Qk:N.Qk,d$:isNaN(N.d$)?null:N.d$,rD:N.rD,SC:N.SC,IR:N.IR,Pi:R};return new PO(N.policy,z,v,N.N,function(Y,Q){try{a:{var L=Y.info.TU[0].V,K=L.info.video?N.videoTrack:N.audioTrack; if(!(Y.state>=2)||Y.isComplete()||Y.Dn()||!(!N.loader.uS||N.loader.isSuspended||gj(K)>3)){var l=lnO(Y,N.policy,N.N);l===1&&(N.PL=!0);yRu(N,Y,l);if(Y.isComplete()||Y.HL()&&Q<3){if(N.policy.W){var W=Y.timing.Bm();W.rst=Y.state;W.strm=Y.xhr.zX();W.cncl=Y.xhr&&Y.Cb.N?1:0;N.loader.WL("rqs",W)}Y.U0&&N.loader.WL("sbwe3",{},!0)}if(!N.HL()&&Y.state>=2){Bg_(N.timing,Y,L);var G=N.loader;N.d$&&Y.PG&&G&&(N.d$=NaN,N.loader.Zk(Y.PG),N.loader.iJ(),N.loader.WL("cabrUtcSeek",{mediaTimeSeconds:Y.PG}));Y.Um&&N.d$&&Y.Um&& !Y.Um.action&&(N.loader.C1(N.d$),N.d$=NaN,N.loader.WL("cabrUtcSeekFallback",{targetUtcTimeSeconds:N.d$}));Y.o8&&N.loader.l4(Y.o8);N.policy.c5&&(N.IR=Y.IR);if(Y.state===3){Pt(K,Y);IG(Y.info)&&XG(N,K,L,!0);if(N.W){var x=Y.info.yH();x&&N.W.rG(Y.info.TU[0].cL,L.info.id,x)}N.loader.Nv()}else if(Y.isComplete()&&Y.info.TU[0].type===5){if(Y.state!==4)Y.M4()&&N.loader.handleError(Y.Xk(),Y.nf());else{var e=(Y.info.TU[0].V.info.video?N.videoTrack:N.audioTrack).Z[0]||null;e&&e instanceof PO&&e.Dn()&&e.ZZ()}Y.dispose()}else{Y.M4()|| fnf(N,Y);var d;((d=Y.FE)==null?0:d.itagDenylist)&&N.loader.vN(Y.FE.itagDenylist);if(Y.state===4)d9O(N,Y),N.V&&PCm(N.V,Y.info,N.W);else if(N.policy.rd&&Y.l3()&&!Y.isComplete()&&!d9O(N,Y)&&!Y.M4())break a;Y.M4()&&(sWu(N,Y),isNaN(N.d$)||(N.loader.C1(N.d$),N.d$=NaN));N.policy.UR&&!Y.isComplete()?Tdf(N.loader):N.loader.Nv();var T=Wdb(Y,N.policy,N.N);yRu(N,Y,T)}}}}}catch(m){Q=N.Vp?1:0,N.Vp=!0,Y=$z(Q),Q=UH(m,Q),N.loader.handleError(Q.errorCode,Q.details,Q.severity),Y||N.loader.No()}},R)}; fnf=function(N,z){if(z.A1&&z.state>=2&&z.state!==3){var v=z.xhr.getResponseHeader("X-Response-Itag");if(v){N.logger.debug(function(){return"Applying streamer-selected format "+v}); var R=CzU(N.Z,v),C=z.info.Z;C&&(C-=R.KL(),R.Z=!0,z.info.TU[0].V.Z=!1,CCY(z,R.yU(C)),rj(N.loader,N.videoTrack,R),R1U(N.videoTrack,R),N.loader.JF(R.info.video.quality),(C=z.sy())&&R.info.lastModified&&R.info.lastModified!==+C&&Pt(N.videoTrack,z))}else z.A1=!1}}; sWu=function(N,z){var v=z.info.TU[0].V,R=z.Xk();if(Am(v.KV.V)){var C=g.vJ(z.VX(),3);N.loader.WL("dldbrerr",{em:C||"none"})}C=z.info.TU[0].cL;var Z=h3(N.V,z.info.TU[0].N,C);R==="net.badstatus"&&(N.G+=1);if(z.canRetry()&&FdU(N.loader)){if(!(z.info.KV.Z>=N.policy.k6&&N.W&&z.info.isDecorated()&&R==="net.badstatus"&&N.W.Io(Z,C))){C=(v.info.video&&v.KV.Z>1||z.pU===410||z.pU===500||z.pU===503)&&!(O6(N.Z.B).size>0)&&!Am(v.KV.V);Z=z.nf();var Y=v.info.video?N.videoTrack:N.audioTrack;C&&(Z.stun="1");N.loader.handleError(R, Z);N.HL()||(C&&(N.logger.debug(function(){return"Stunning format "+v.info.id}),qD(N.Z,v)),Pt(Y,z),N.loader.Nv())}}else Y=1,N.W&&z.info.isDecorated()&&R==="net.badstatus"&&N.W.Io(Z,C)&&(Y=0),N.Md.isLive&&z.Xk()==="net.badstatus"&&N.G<=N.policy.Lr*2?(dQU(N.Md),N.Md.pG||N.Md.isPremiere?DS(N.loader,0,{Np:"badStatusWorkaround"}):N.Md.N?DS(N.loader,N.Md.K0,{Np:"badStatusWorkaround", KX:!0}):uf(N.loader)):N.loader.handleError(R,z.nf(),Y)}; d9O=function(N,z){if(N.policy.useUmp&&z.HL())return!1;try{var v=z.info.TU[0].V,R=v.info.video?N.videoTrack:N.audioTrack;if(N.Md.isManifestless&&R){N.G=0;R.L&&(z.HL(),z.isComplete()||z.l3(),R.L=!1);z.iR()&&N.loader.kc.Xp(1,z.iR());var C=z.An(),Z=z.N7();gB(N.Md,C,Z)}if(z.info.CX()&&!OE(z.info))for(var Y=g.f(z.Qi()),Q=Y.next();!Q.done;Q=Y.next())Or7(R,Q.value);for(N.loader.getCurrentTime();R.Z.length&&R.Z[0].state===4;){var L=R.Z.shift();t7u(R,L);R.BL=L.zH()}R.Z.length&&t7u(R,R.Z[0]);var K=!!bp(R);K&& z instanceof kY&&(v.info.bI()?sGb(N.timing):dyx(N.timing));return K}catch(l){z=z.nf();z.origin="hrhs";a:{N=N.loader;v=l;if(v instanceof Error){z.msg||(z.msg=""+v.message);z.name||(z.name=""+v.name);if(v instanceof g.XS&&v.args)for(R=g.f(Object.entries(v.args)),C=R.next();!C.done;C=R.next())Z=g.f(C.value),C=Z.next().value,Z=Z.next().value,z["arg"+C]=""+Z;g.PN(v);if(v.level==="WARNING"){N.kT.Au(z);break a}}N.handleError("fmt.unplayable",z,1)}return!1}}; n1U=function(N){var z=N.videoTrack.V.index;N.UA=new QWY({W2:N.policy.W2,g5:N.policy.L.g5,Ry:z.gB(),YH:function(){return z.YH()}, uj:function(){return z.uj()}})}; XG=function(N,z,v,R){if(!(v.eN()||v.Bu()||v.Z||!Bv(v.KV,N.policy,N.N,N.loader.Q7())||v.info.JO==="f"||N.policy.V)){if(R){R=N.B;var C=v.info;R=Hbu(R,C.video?R.policy.SH:R.policy.aM,C.i$)}else R=0;R=v.yU(R);N=GxO(N,R);OE(R)&&FG(z,N);v.Z=!0}}; ct=function(N,z,v,R,C,Z,Y,Q){g.H.call(this);var L=this;this.loader=N;this.Wc=z;this.videoTrack=v;this.audioTrack=R;this.Md=C;this.J=Z;this.isAudioOnly=Y;this.G=Q;this.W=tK;this.PL=!1;this.logger=new g.Ry("sabr");this.Y=this.Vp=this.qd=!1;this.videoInfos=this.L=this.J.videoInfos;this.Z=this.K0=this.J.V;this.V=new bx(z,Z,function(K,l){L.loader.WL(K,l)}); this.Wc.ip||m97(this);this.isAudioOnly&&$9f(this,this.Md.V["0"])}; U9u=function(N,z){var v=[];z=g.f(z);for(var R=z.next();!R.done;R=z.next())v.push(g.wp(R.value,N.Md.Hb));return v}; $9f=function(N,z,v){z!==N.N&&(N.N&&(N.PL=!0),N.N=z,N.E$(z,N.videoTrack,v))}; piU=function(N,z){N.logger.debug("setConstraint: "+W7(z));ea(N.Wc)&&(N.Vp=z.reason==="m"||z.reason==="l"?!0:!1);z.reason==="m"?z.isLocked()&&BdO(N,z.V):ARY(N,z)?g1u(N,z.W,z.V):N.videoInfos=N.L;N.W=z}; ARY=function(N,z){return N.Wc.UX&&z.reason==="b"||N.Wc.cN&&z.reason==="l"||N.Wc.fA?!1:N.Wc.Bq?!0:z.reason==="l"||z.reason==="b"||z.reason==="o"}; kxK=function(N,z){return z.isLocked()&&N.V.W||N.W===void 0?!1:z.equals(N.W)}; PjI=function(N,z){var v,R=(v=N.N)==null?void 0:v.info.video.qualityOrdinal;return N.PL?!0:N.N?z!==R?!0:!N.V.W||N.Wc.Ut&&N.V.V===N.N.info.itag?!1:!0:!1}; BdO=function(N,z){var v=N.V.V;if(v){N.videoInfos=N.L;var R=g.G1(N.videoInfos,function(C){return C.id===v}); R&&R.video.qualityOrdinal===z?N.videoInfos=[R]:(R=N.videoInfos.map(function(C){return C.id}),N.loader.WL("sabrpf",{pfid:""+v, vfids:""+R.join(".")}),g1u(N,z,z),I5(N.V,""))}else g1u(N,z,z)}; g1u=function(N,z,v){N.videoInfos=N.L;N.videoInfos=g.kK(N.videoInfos,function(R){return R.video.qualityOrdinal>=z&&R.video.qualityOrdinal<=v})}; m97=function(N){var z=o4u(N.V,N.G);z&&(N.Z=[z])}; VPI=function(N,z,v){if(N.Wc.ip){if(N.G){var R=g.kK(N.Z,function(C){return C.id===N.G}); return qe(R,v).includes(z)}R=g.kK(N.Z,function(C){var Z;return!((Z=C.u$)==null||!Z.isDefault)}); if(R.length>0)return qe(R,v).includes(z)}return qe(N.Z,v).includes(z)}; qe=function(N,z){return N.map(function(v){return Aa(g.wp(v,z))})}; Su7=function(N){var z;if((z=N.W)==null?0:z.isLocked())return N.videoInfos;var v=O6(N.V);z=g.kK(N.videoInfos,function(R){return R.i$>N.Wc.i$?!1:!v.has(R.id)}); Hwu(N.V)&&(z=g.kK(z,function(R){return R.video.width<=854&&R.video.height<=480})); return z}; h17=function(N,z,v){var R=N.Md,C=N.kT.getVideoData(),Z=N.Zl,Y=J3({bS:C.D(),kT:N.kT,rl:N.rl,Wc:N.Wc,Ca:N.Ca,Ug:N.Ug,KN:N.KN,pC:N.pC,Di:N.Di,isPrefetch:N.isPrefetch,R6:N.R6,sabrLicenseConstraint:C.sabrLicenseConstraint,NG:N.NG,R7:N.R7,TQ:N.TQ,Jc:N.Jc,t2:!!Z,kz:C.kz}),Q=yc(C,N.Pi,N.nextRequestPolicy,N.ZJ,N.YS,N.fB,N.UZ);v&&z&&(v=Q.Zv?Q.Zv.map(function(W){return W.type}):[],z("sabr",{stmctxt:v.join("_"), unsntctxt:Q.Pq?Q.Pq.join("_"):""}));z=N.bq;v=N.NS;if(v===void 0&&z===void 0){var L;v=E1f(R.Hb,(L=N.Wx)==null?void 0:L.video);var K;z=E1f(R.Hb,(K=N.Wx)==null?void 0:K.audio)}if(C.rD)var l=C.rD;C={UO:Y,x3:N.x3,bq:z,NS:v,Zl:Z,videoPlaybackUstreamerConfig:l,Vf:Q};N.f4&&(C.f4=N.f4);C.gH=N.gH;C.ZY=R.S8;return C}; E1f=function(N,z){return z?[g.wp(z.info,N)]:[]}; Me=function(N,z,v){var R=this;this.requestType=N;this.KV=z;this.Zx=v;this.W=null;this.Oi={Q8S:function(){var C;return(C=R.data)==null?void 0:C.isPrefetch}, YS:function(){var C;return(C=R.data)==null?void 0:C.YS}}}; e7u=function(N,z,v){z=$4(N.KV,Huu(N,z,v),z);N.kM()&&z.set("probe","1");return z}; Huu=function(N,z,v){N.jM===void 0&&(N.jM=N.KV.jM(z,v));return N.jM}; o1f=function(N){var z,v;return((z=N.V)==null?void 0:(v=z.UO)==null?void 0:v.R0)||0}; D92=function(N){var z,v;return!!((z=N.V)==null?0:(v=z.UO)==null?0:v.NG)}; buf=function(N){var z={},v=[],R=[];if(!N.data)return z;for(var C=0;C0;L--)v.push(Q)}v.length!==Y?z.error=!0:(Z=v.slice(-Z),v.length=C,GfI(z,v,Z));break;case 1:GfI(z,Qv,aMI);break;case 0:xNO(z, z.V&7);v=W8(z,16);C=W8(z,16);(v^C)!==65535&&(z.error=!0);z.output.set(z.data.subarray(z.W,z.W+v),z.Z);z.W+=v;z.Z+=v;break;default:z.error=!0}N.Z>N.output.length&&(N.output=new Uint8Array(N.Z*2),N.Z=0,N.W=0,N.N=!1,N.V=0,N.register=0)}N.output.length!==N.Z&&(N.output=N.output.subarray(0,N.Z));return N.error?new Uint8Array(0):N.output}; GfI=function(N,z,v){z=lMI(z);v=lMI(v);for(var R=N.data,C=N.output,Z=N.Z,Y=N.register,Q=N.V,L=N.W;;){if(Q<15){if(L>R.length){N.error=!0;break}Y|=(R[L+1]<<8)+R[L]<>=7;K<0;)K=z[(Y&1)-K],Y>>=1;else Y>>=K&15;Q-=K&15;K>>=4;if(K<256)C[Z++]=K;else if(N.register=Y,N.V=Q,N.W=L,K>256){Y=KR[K];Y+=W8(N,LR[K]);L=WOY(N,v);Q=lB[L];Q+=W8(N,QmY[L]);if(JKf&&Yv.length&&(N.error=!0);N.register|=(v[R+1]<<8)+v[R]<=0)return xNO(N,v&15),v>>4;for(xNO(N,7);v<0;)v=z[W8(N,1)-v];return v>>4}; W8=function(N,z){for(;N.V=N.data.length)return N.error=!0,0;N.register|=N.data[N.W++]<>=z;N.V-=z;return v}; xNO=function(N,z){N.V-=z;N.register>>=z}; lMI=function(N){for(var z=[],v=g.f(N),R=v.next();!R.done;R=v.next())R=R.value,z[R]||(z[R]=0),z[R]++;var C=z[0]=0;v=[];var Z=0;R=0;for(var Y=1;Y7&&(Z+=z[Y]);for(C=1;C>L&1;Q=Z<<4|Y;if(Y<=7)for(L=1<<7-Y;L--;)R[L<>=7;Y--;){R[L]||(R[L]=-z,z+=2);var K=C&1;C>>=1;L=K-R[L]}R[L]=Q}}return R}; yKv=function(N){var z,v,R,C,Z,Y,Q;return g.S(function(L){switch(L.W){case 1:if(!("DecompressionStream"in window))return L.return(g.evO(new g.LOI(N)));z=new DecompressionStream("gzip");v=z.writable.getWriter();v.write(N);v.close();R=z.readable.getReader();C=new eo([]);case 2:return g.k(L,R.read(),5);case 5:Z=L.V;Y=Z.value;if(Q=Z.done){L.Zp(4);break}C.append(Y);L.Zp(2);break;case 4:return L.return(C.Na())}})}; Gs=function(N,z){this.V=N;this.WH=z}; fMu=function(N){return ev(ev(WM(function(){return x0(N.WH,function(z){return N.G1(N.V,z)})}),function(){return N.Cq(N.V)}),function(){return N.RA(N.V)})}; dNK=function(N,z){return fMu(new Gs(N,z))}; FOO=function(N){s6.call(this,"onesie");this.kH=N;this.V={};this.Z=!0;this.N=null;this.queue=new jmK(this);this.B={};this.G=JG(function(z,v){var R=this;return function Z(){var Y,Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D,c,r,Rv,Zu;return Vf(Z,function(Nx){switch(Nx.W){case 1:g.Tu(Nx,2);R.kH.oh();Y=function(av){return function(M){throw{name:av,message:M};}}; Q=z.Na();g.d_(Nx,4,5);if(!v){Nx.Zp(7);break}return yf(Nx,E2(ev(sm7(R.kH,Q,R.iv),Y("DecryptError")).wait()),8);case 8:L=Nx.V;case 7:if(!R.kH.enableCompression){Nx.Zp(9);break}return yf(Nx,E2(ev(dNK((W=L)!=null?W:Q,R.kH.D().xH),Y("DecompressError")).wait()),10);case 10:K=Nx.V;case 9:l=oN((x=(G=K)!=null?G:L)!=null?x:Q,lAO);case 5:g.Ab(Nx,0,2);if(d=(e=R.kH.D())==null?void 0:e.WH)((T=L)==null?void 0:T.buffer)===d.exports.memory.buffer&&d.free(L.byteOffset),((m=K)==null?void 0:m.buffer)===d.exports.memory.buffer&& d.free(K.byteOffset);g.pO(Nx,6);break;case 4:throw P=n=g.U2(Nx),new mT("onesie.response.parse",{name:(r=P.name)!=null?r:"unknown",message:(Rv=P.message)!=null?Rv:"unknown",wasm:((V=R.kH.D())==null?0:V.WH)?((D=R.kH.D())==null?0:(c=D.WH)==null?0:c.V)?"1js":"1":"0",enc:R.Z,gz:R.kH.enableCompression,webcrypto:!!fS()});case 6:return Tim(l),Zu=g.mC(l.body),Nx.return(Zu);case 2:g.Ab(Nx),g.pO(Nx,0)}})}()})}; nNm=function(N){var z=N.queue;z.V.length&&z.V[0].isEncrypted&&!z.W&&(z.V.length=0);z=g.f(Object.keys(N.V));for(var v=z.next();!v.done;v=z.next()){v=v.value;var R=N.V[v];if(!R.nk){var C=N.queue;C.V.push({videoId:R.videoId,formatId:v,isEncrypted:!1});C.W||a4(C)}}}; $Nf=function(N,z){var v=z.getLength(),R=!1;switch(N.N){case 0:N.kH.X("html5_future_onesie_ump_handler_on_player_response")?ev(x0(N.G(z,N.Z),function(C){mN_(N.kH,C)}),function(C){N.kH.So(C)}):N.oh(z,N.Z).then(function(C){mN_(N.kH,C)},function(C){N.kH.So(C)}); break;case 2:N.jK("ormk");z=z.Na();N.kH.X("html5_future_onesie_ump_handler_on_media_decryption_key")?N.queue.Z(z,N.kH.D().xH):N.queue.decrypt(z);break;default:R=!0}N.kH.HZ&&N.kH.WL("ombup","id.11;pt."+N.N+";len."+v+(R?";ignored.1":""));N.N=null}; Tim=function(N){if(N.Mf!==1)throw new mT("onesie.response.badproxystatus",{st:N.Mf,webcrypto:!!fS(),textencoder:!!g.u7.TextEncoder});if(N.httpStatus!==200)throw new mT("onesie.response.badstatus",{st:N.httpStatus});}; UNK=function(N){return new Promise(function(z){setTimeout(z,N)})}; Bi_=function(N,z){var v=N.D();v=N.o4&&v.X("html5_onesie_preload_use_content_owner");var R=N.nD,C=zx(z.iS.experiments,"debug_bandaid_hostname");if(C)z=YI(z,C);else if((v===void 0?0:v)&&(R==null?0:R.url)&&!z.W){var Z=B7(new g.$w(R.url));z=YI(z,Z)}else z=(Z=z.V.get(0))==null?void 0:Z.location.clone();if(z&&N.videoId){Z=Y1(N.videoId);N=[];if(Z)for(Z=g.f(Z),v=Z.next();!v.done;v=Z.next())N.push(v.value.toString(16).padStart(2,"0"));z.set("id",N.join(""));return z}}; AK_=function(N,z,v){v=v===void 0?0:v;var R,C;return g.S(function(Z){if(Z.W==1)return R=[],R.push(z.load()),v>0&&R.push(UNK(v)),g.k(Z,Promise.race(R),2);C=Bi_(N,z);return Z.return(C)})}; gN_=function(N,z,v,R){R=R===void 0?!1:R;N.set("cpn",z.clientPlaybackNonce);N.set("opr","1");var C=z.D();N.set("por","1");fS()||N.set("onem","1");z.startSeconds>0&&N.set("osts",""+z.startSeconds);R||(C.X("html5_onesie_disable_partial_segments")&&N.set("oses","1"),z=C.X("html5_gapless_onesie_no_media_bytes")&&Ce(z)&&z.o4,v&&!z?(z=v.audio,N.set("pvi",v.video.join(",")),C.X("html5_onesie_disable_audio_bytes")||N.set("pai",z.join(",")),N9||N.set("osh","1")):(N.set("oad","0"),N.set("ovd","0"),N.set("oaad", "0"),N.set("oavd","0")))}; p3Y=function(N,z,v,R,C){C=C===void 0?!1:C;var Z="https://youtubei.googleapis.com/youtubei/"+z.yE.innertubeApiVersion+"/player",Y=[{name:"Content-Type",value:"application/json"}];R&&Y.push({name:"Authorization",value:"Bearer "+R});Y.push({name:"User-Agent",value:g.mU()});g.XI("EOM_VISITOR_DATA")?Y.push({name:"X-Goog-EOM-Visitor-Id",value:g.XI("EOM_VISITOR_DATA")}):(v=v.visitorData||g.XI("VISITOR_DATA"))&&Y.push({name:"X-Goog-Visitor-Id",value:v});(v=g.XI("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&Y.push({name:"X-YouTube-Lava-Device-Context", value:v});(z=zx(z.experiments,"debug_sherlog_username"))&&Y.push({name:"X-Youtube-Sherlog-Username",value:z});N=By(JSON.stringify(N));return{url:Z,JN:Y,postBody:N,o$8:C,n_:C}}; PT7=function(N,z,v,R,C,Z){var Y=g.uI(N,Kb2,N.n_?void 0:v.WH),Q={encryptedClientKey:z.V.encryptedClientKey,LS:!0,mT:!0,I$:kf2(v,!!N.n_),o3:v.experiments.j8("html5_use_jsonformatter_to_parse_player_response")};if(N.n_)Q.YDL=Y;else{if(v.WH){N=cRu(z).W(Y,z.iv);var L;Q.yI=(L=v.WH.XA(N))!=null?L:N}else Q.yI=z.encrypt(Y);L=Q.yI;(0,g.I)();L=IKm(new O1b(z.V.Z),L,z.iv);Q.OY=L;Q.iv=z.iv}z=R.getVideoData();v=J3({bS:v,kT:R,rl:z.startSeconds*1E3});C={WJ:Q,UO:v,onesieUstreamerConfig:C,Hg:Z,Vf:yc(z)};z.reloadPlaybackParams&& (C.reloadPlaybackParams=z.reloadPlaybackParams);return C}; Vru=function(N,z,v){var R,C,Z;return g.S(function(Y){if(Y.W==1)return R=g.uI(z,Kb2),g.k(Y,quf(v,R),2);if(Y.W!=3)return C=Y.V,g.k(Y,MP2(v,C),3);Z=Y.V;return Y.return({yI:C,encryptedClientKey:v.V.encryptedClientKey,iv:v.iv,OY:Z,LS:!0,mT:!0,I$:kf2(N,!!z.n_),o3:N.experiments.j8("html5_use_jsonformatter_to_parse_player_response")})})}; SsU=function(N,z,v,R,C,Z){var Y,Q,L,K;return g.S(function(l){if(l.W==1)return g.k(l,Vru(v,N,z),2);Y=l.V;Q=R.getVideoData();L=J3({bS:v,kT:R,rl:Q.startSeconds*1E3});K={WJ:Y,UO:L,onesieUstreamerConfig:C,Hg:Z,Vf:yc(Q)};Q.reloadPlaybackParams&&(K.reloadPlaybackParams=Q.reloadPlaybackParams);return l.return(K)})}; kf2=function(N,z){N=fu(N.schedule,!0);z=z||!!fS()&&N>1572864;return"DecompressionStream"in window||!z}; eh=function(N,z){g.H.call(this);var v=this;this.kT=N;this.playerRequest=z;this.logger=new g.Ry("onesie");this.xhr=null;this.state=1;this.kC=new qa;this.gs=!1;this.playerResponse="";this.TD=new cO(this);this.EJ=new FOO(this);this.YP="";this.Jn=this.Lq=!1;this.il="";this.enableCompression=this.QV=this.RQ=!1;this.Su=[];this.j$=-1;this.iS=this.kT.D();this.videoData=this.kT.getVideoData();this.HZ=this.iS.LV();this.Az=this.iS.Qj;this.Wi=new CR(this.Az.V,this.iS.xH,tPI(this.iS));this.Ty=this.iS.X("html5_onesie_check_timeout"); this.lC=new g.cn(this.bB,500,this);this.X1=new g.cn(this.Yk,1E4,this);this.Pf=new g.cn(function(){if(!v.isComplete()){var R=xI(v);v.So(new mT("net.timeout",R))}},1E3); this.B7=new g.cn(this.qTl,2E3,this);this.qO=this.kT.wE();this.O4=this.X("html5_onesie_wait_for_media_availability");g.b(this.videoData,this);g.b(this,this.lC);g.b(this,this.X1);g.b(this,this.B7);g.b(this,this.Wi);N=RW();N9&&N&&(this.OD=new Map);this.W_=new Map;this.lm=new Map;this.NK=new Map;this.Dg=new Map}; jh=function(N,z){var v;return(v=N.OD)==null?void 0:v.get(z)}; hv_=function(N,z,v){var R;return g.S(function(C){if(C.W==1)return N.jK("oprd_s"),EN7(N)?g.k(C,wim(N.Wi,z,v),3):(R=N.Wi.decrypt(z,v),C.Zp(2));C.W!=2&&(R=C.V);N.jK("oprd_c");return C.return(R)})}; sm7=function(N,z,v){N.jK("oprd_s");z=cRu(N.Wi).encrypt(z,v);x0(z,function(){N.jK("oprd_c")}); return z}; HWO=function(N){return N.X("html5_onesie_host_probing")||N.HZ?N9:!1}; mN_=function(N,z){N.jK("oprr");N.playerResponse=z;N.QV||(N.O4=!1);Jy(N)}; Jy=function(N){if(!N.playerResponse)return!1;if(N.RQ)return!0;var z=N.videoData.X("html5_onesie_audio_only_playback")&&Zk(N.videoData);if(N.OD&&N.O4){if(!N.OD.has(N.YP))return!1;var v=N.OD.get(N.YP),R;if(R=v){R=!1;for(var C=g.f(v.Xy.keys()),Z=C.next();!Z.done;Z=C.next())if(Z=v.Xy.get(Z.value))for(var Y=g.f(Z.i8),Q=Y.next();!Q.done;Q=Y.next())Q.value.SW>0&&(Z.bI?R=!0:z=!0);R=!(z&&R)}if(R)return!1}N.jK("ofr");N.kC.resolve(N.playerResponse);if(!N.Ty){var L;(L=N.Pf)==null||L.start();N.X1.start()}return N.RQ= !0}; DNu=function(N){if(N.OD&&!N.X("html5_onesie_media_capabilities")){N.jK("ogsf_s");var z=Iqf(N.kT.getVideoData(),function(R,C){N.WL(R,C)}),v=oNx(N.kT); z.video=SQY(v,z.video);N.jK("ogsf_c");if(z.video.length)return z;N.WL("ombspf","l."+v.W+";u."+v.V+";o."+v.Z+";r."+v.reason)}}; EN7=function(N,z){return N.X("html5_onesie_sync_request_encryption")||(z==null?0:z.n_)||g.M9(N.iS)&&N.X("html5_embed_onesie_use_sync_encryption")?!1:!!fS()}; xI=function(N){if(!N.k8)return{};var z=N.k8.Bm(),v;z.d=(v=N.k8.Rd)==null?void 0:v.Jy();z.shost=N.zx;z.ty="o";return z}; bWU=function(N,z){var v,R;(R=(N=(v=N.OD)==null?void 0:v.get(z))==null)||(z=N.Z?!1:N.Z=!0,R=!z);return!R}; trv=function(N,z,v,R,C,Z,Y,Q,L,K,l){g.H.call(this);var W=this;this.kT=N;this.loader=z;this.policy=v;this.audioTrack=R;this.videoTrack=C;this.Md=Z;this.bF=Y;this.S8=Q;this.Z=L;this.timing=K;this.J=l;this.V=[];this.G={};this.BL=this.UT=!1;this.ZJ=new Set;this.N=this.tO=this.Y=this.Di=0;this.L=null;this.Vp={gH:[],x3:[]};this.PL={gH:[],x3:[]};this.B=null;this.Id=[];this.Oi={KFo:function(){return W.V}, SNS:function(){return W.G}, lXo:function(){W.V.length=0}, JbS:function(){return W.ZJ}, wS8:function(){return W.Y}, vMl:function(G){W.Y=G}, oZW:function(G){W.N=G}, Yo:function(G){W.B=G}}; this.videoData=this.kT.getVideoData();this.policy.Eu&&(this.Rd=new tZ(this.loader,this.policy,this.bF),g.b(this,this.Rd))}; X3u=function(N,z){z=z===void 0?!1:z;if(OWO(N)){N.policy.G&&N.loader.WL("sabrcrq",{create:1});var v=new Me(0,N.Md.Y,N);N.policy.BH>0&&N.N++;z=IMm(N,v,z);N.V.push(z);var R;(R=N.Rd)==null||Ld7(R,N.Md.Y)}}; qsI=function(N,z){var v=rK_(N);if(N.policy.X6){var R=N.Vp;var C=N.PL}else R=yv(N,N.audioTrack),C=yv(N,N.videoTrack);var Z=[].concat(g.U(R.gH),g.U(C.gH));N.policy.kJ&&N.B&&Z.push.apply(Z,g.U(N.Id));var Y=[].concat(g.U(R.x3),g.U(C.x3)),Q=N.loader.CZ(),L,K,l=N.kT,W=N.Md,G=N.W,x=N.ZJ,e=N.policy,d=N.loader.Ca,T=JRu(N.loader)*1E3,m=(L=N.K0)==null?void 0:L.KN;L=(K=N.K0)==null?void 0:K.pC;var n;K=Number((n=N.Z.N)==null?void 0:n.info.itag)||0;var P;n=Number((P=N.Z.B)==null?void 0:P.info.itag)||0;z={kT:l,Md:W, gH:Z,x3:Y,rl:v,nextRequestPolicy:G,ZJ:x,Wc:e,Ca:d,Ug:T,KN:m,pC:L,Di:N.Di,isPrefetch:z||N.loader.isSuspended,lZ:K,uZ:n,Pi:Q,UZ:N.kT.gY()};v=N.loader.xw();Z=Y1(v);v&&(z.YS=Z);if(v=N.kT.xF())z.NG=v*1E3;var V;v=N.Z;Z=v.qd;if(((V=v.Wc)==null?0:ea(V))&&!Z)for(V=g.f(v.Z),Y=V.next();!Y.done;Y=V.next())if(Y.value.u$){Z=!0;break}V=ea(v.Wc)&&!Z?[]:U9u(v,v.Z);z.bq=V;V=N.Z;ea(V.Wc)&&!V.Vp?V=[]:(v=Su7(V),v.length===0&&(v=V.L),V=U9u(V,v));z.NS=V;z.Zl=N.policy.kJ&&N.B?[N.B]:void 0;N.policy.DK&&(z.TQ=uHY(N.loader, N.audioTrack),z.Jc=uHY(N.loader,N.videoTrack));if(N.policy.Z){if(N.policy.CJ){V=N.loader.getCurrentTime();var D=Eq(N,R.gH,V);R=Eq(N,C.gH,V);var c;C=(c=N.L)==null?void 0:c.It(Math.min(D,R))}else c=cKY(N,R.gH,C.gH),C=(D=N.L)==null?void 0:D.It(c);C&&(z.f4=C)}N.policy.J&&N.V.length>0&&N.V[0].X0()&&(z.fB=N.V[0].pL());return z}; rK_=function(N){var z,v=N.policy.B&&((z=N.loader)==null?void 0:z.HU());z=N.loader.getCurrentTime()||0;z=Mrx(N,z);var R=N.loader.fV()||0;z+=R;R=$6(N.videoData)||g.mw(N.videoData);var C=0;v?(R&&(C=Number.MAX_SAFE_INTEGER),N.videoData.Vp&&(C=Math.ceil(N.videoData.K0*1E3))):C=Math.ceil(z*1E3);return Math.min(Number.MAX_SAFE_INTEGER,C)}; Mrx=function(N,z){if(N.loader.isSeeking())return z;var v=N.kT.O6();if(!v)return z;v=v.xA();if(v.length===0||jx(v,z))return z;if(!hZ(N.videoTrack,z)&&!hZ(N.audioTrack,z))return N.loader.WL("sundrn",{b:0,lt:z}),z;for(var R=z,C=Infinity,Z=0;Zz)){var Y=z-v.end(Z);Y=20)?(N.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),z):R}; cKY=function(N,z,v){var R=N.loader.getCurrentTime()||0;z=Eq(N,z,R);N=Eq(N,v,R);return Math.min(z,N)}; Eq=function(N,z,v){var R=N.loader.fV()||0;if(N.policy.CJ)return w3x(z,(v+R)*1E3)/1E3+v;N=g.f(z);for(z=N.next();!z.done;z=N.next()){var C=z.value;z=C.startTimeMs?C.startTimeMs/1E3-R:0;C=z+(C.durationMs?C.durationMs/1E3:0);if(z<=v&&v<=C)return C}return v}; OWO=function(N){if(N.policy.BH>0){var z=Math.floor((0,g.I)()/1E4);if(z===N.tO){if(N.N>=N.policy.BH){if(N.N===N.policy.BH){var v={reason:"toomanyrequests"};v.limit=N.N;N.loader.handleError("player.exception",v);N.N+=1}return!1}}else N.tO=z,N.N=0}if(N.loader.isSuspended&&N.loader.Uo)return!1;if(N.qd&&(0,g.I)()0&&(!N.policy.J||N.V.length!==1||!N.V[0].X0()))return!1;var R;if((R=N.Md.Y)==null||!Bv(R,N.policy,N.G,N.loader.Q7())||VQ(N.audioTrack)&&VQ(N.videoTrack))return!1; if(hy(N,N.audioTrack)&&hy(N,N.videoTrack))return N.policy.W&&N.loader.WL("sabrHeap",{a:""+Bt(N.audioTrack),v:""+Bt(N.videoTrack)}),!1;if(z=N.policy.Z){z=!1;if(N.J.W===2)z=!0;else if(N.J.W===3){rK_(N);N.loader.fV();R=cKY(N,mi(N.audioTrack,N.loader.isSeeking()).gH,mi(N.videoTrack,N.loader.isSeeking()).gH);var C=N.J;R>=C.B?(C.WL("sdai",{haltrq:R,est:C.B}),R=!0):R=!1;R&&(z=!0)}z&&N.policy.G&&N.loader.WL("sabrcrq",{waitad:1})}if(z)return!1;N.policy.X6&&(N.Vp=yv(N,N.audioTrack),N.PL=yv(N,N.videoTrack)); if(!N.W)return N.policy.G&&N.loader.WL("sabrcrq",{nopolicy:1}),!0;if(N.kT.xF())return N.policy.G&&N.loader.WL("sabrcrq",{utc:1}),!0;if(N.Z.Y)return N.policy.G&&N.loader.WL("sabrcrq",{audio:1}),!0;if(!N.W.targetAudioReadaheadMs||!N.W.targetVideoReadaheadMs)return N.policy.G&&N.loader.WL("sabrcrq",{noreadahead:1}),!0;if(N.policy.B&&N.loader.HU())return N.policy.G&&N.loader.WL("sabrcrq",{seekToHead:1}),!0;z=Math.min(Ez(N.loader,N.audioTrack)*1E3,N.W.targetAudioReadaheadMs);R=Math.min(Ez(N.loader,N.videoTrack)* 1E3,N.W.targetVideoReadaheadMs);var Z=Math.min(z,R);C=gj(N.audioTrack,!0)*1E3;var Y=gj(N.videoTrack,!0)*1E3;if(N.policy.X6){var Q=N.kT.getCurrentTime()*1E3;var L=w3x(N.Vp.gH,Q);Q=w3x(N.PL.gH,Q)}else L=C,Q=Y;var K=Lz||R>=0&&C.DJ>R+1)break;v=Math.max(v,C.startTimeMs+C.durationMs);R=Math.max(R,C.yX)}return Math.max(0,v-z)}; IMm=function(N,z,v){var R={bF:N.bF,E7:function(L,K){N.kT.vk(L,K)}, CX:N.policy.XH,lV:N.policy.W};N.bF.W.G&&(R.FB=(N.videoTrack.V.info.i$||0)+(N.audioTrack.V.info.i$||0));N.policy.T0&&(R.Ry=N.audioTrack.V.index.gB(),R.CX=!1);var C=Huu(z,N.policy,N.G)?2:1;C!==N.Y&&(N.Y=C,zNu(N));v=qsI(N,v);if(N.policy.J&&N.policy.W&&v.ZJ){for(var Z=C="",Y=g.f(v.ZJ),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,N.videoData.sabrContextUpdates.has(Q)||N.policy.J&&v.fB&&v.fB.type===Q?C+="_"+Q:Z+="_"+Q;N.loader.WL("sabrbldrqs",{ctxts:C,misctxts:Z})}!z.setData(v,N.policy,N.G)&&N.policy.J&&N.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);R=new gD(N.policy,z,N.Md,N.G,N,R,N.loader.wE());pY(N.timing);N.policy.G&&N.loader.WL("sabrcrq",{rn:R.aR(),probe:z.kM()});return R}; o4=function(N,z){if(z.HL()||N.HL())N.policy.zA||(N.policy.B?H8(N.loader):N.loader.Nv());else{if(N.policy.W&&z.isComplete()&&z instanceof gD){var v=N.loader,R=v.WL,C,Z,Y=Object.assign(z.k8.Bm(),{rst:z.state,strm:z.xhr.zX(),d:(C=z.k8.Rd)==null?void 0:C.Jy(),cncl:z.xhr&&z.Cb.N?1:0,rqb:z.Zr,cwt:z.iA,swt:(Z=z.Op)==null?void 0:Z.K$});C=Object.assign(buf(z.info),Y);R.call(v,"rqs",C)}if(z.isComplete()&&z.kM()&&z instanceof gD)N.policy.yh?z.yd()?(z.dispose(),N.V.length===0?N.loader.Nv():(N=N.V[0],N instanceof gD&&N.Dn()&&N.ZZ())):z.M4()&&N.loader.handleError(z.Xk(),z.nf()):(z.dispose(),N.loader.Nv());else{if(z.h4())z instanceof gD&&Bg_(N.timing,z),zNu(N),v6u(N);else if(z.M4())v=N.kT.xF(),z instanceof gD&&D92(z.info)&&v&&N.loader.C1(v),z instanceof eh?N.V.pop():(v=1,z.canRetry()&&FdU(N.loader)&&(RNu(N,z),v=0),N.loader.handleError(z.Xk(),z.nf(),v));else{if(N.loader.isSuspended&&!z.isComplete())return;v6u(N)}z.HL()||z instanceof eh||(z.isComplete()?v=Wdb(z,N.policy,N.G):(v=lnO(z,N.policy,N.G),v===1&&(N.UT= !0)),v!==0&&(R=new Me(1,z.info.KV),R.jM=v===2,IMm(N,R)));N.policy.UR&&!z.isComplete()?Tdf(N.loader):N.loader.Nv()}}}; v6u=function(N){for(;N.V.length&&N.V[0].Vd(N.uv());){var z=N.V.shift();CM7(N,z)}N.V.length&&CM7(N,N.V[0])}; CM7=function(N,z){var v=new Set(z.lQ(N.uv()));v=g.f(v);for(var R=v.next();!R.done;R=v.next()){var C=R.value;if(!(R=!(z instanceof eh))){R=N.Z;var Z=R.Md.Hb,Y=qe(R.videoInfos,Z);Z=VPI(R,C,Z);var Q=Y.includes(C);!R.Wc.Hq||Z||Q||R.loader.WL("sabrcpf",{fid:""+C,vfids:""+Y.join("."),said:R.G||""});R=Z||Y.includes(C)}if(R&&(R=z.q$(C,N.uv()),Y=N.policy.kJ&&vE(R[0].V.info.mimeType),(!(!Y&&N.policy.b1&&R.length>0&&(R[0].V.info.bI()?gj(N.audioTrack):gj(N.videoTrack))>3)||z.isComplete())&&z.l3(C,N.uv())))for(C= z.Qi(C,N.uv()),C=g.f(C),Z=C.next();!Z.done;Z=C.next())if(Z=Z.value,N.policy.W&&z instanceof eh&&N.loader.WL("omblss",{s:Z.info.z4()}),Y)Q=N,Q.videoData.Hb()&&Q.B&&Aa(Q.B)===Aa(g.wp(Z.info.V.info,Q.Md.Hb))&&Q.kT.publish("sabrCaptionsDataLoaded",Z,Q.Sy.bind(Q));else{Q=Z.info.V.info.bI();var L=Z.info.V;if(Q){var K=void 0;var l=N.Z,W=(K=z.cY(N.uv()))==null?void 0:K.token;l.Y&&L!==l.B?K=!0:(l.Y=!1,L!==l.B&&(l.B=L,l.E$(L,l.audioTrack,W)),K=!1);if(K)continue}else K=void 0,$9f(N.Z,L,(K=z.cY(N.uv()))==null? void 0:K.token);K=Q?N.audioTrack:N.videoTrack;z instanceof eh&&(K.L=!1,z instanceof eh&&(Q?sGb(N.timing):dyx(N.timing)));try{nl(K,R,Z)}catch(G){Z=UH(G),N.loader.handleError(Z.errorCode,Z.details,Z.severity),K.No(),N.L9(!1,"pushSlice"),H8(N.loader)}}}}; RNu=function(N,z){N.policy.J?N.V.splice(N.V.indexOf(z)).forEach(function(v){v.dispose()}):(N.V.pop(),z==null||z.dispose())}; Ze2=function(N,z,v){for(var R=[],C=0;C0)for(var z=g.f(N.videoData.sabrContextUpdates.keys()),v=z.next();!v.done;v=z.next()){v=v.value;var R=void 0;((R=N.videoData.sabrContextUpdates.get(v))==null?0:R.sendByDefault)&&N.ZJ.add(v)}if(N.policy.J&&N.V.length)for(z=g.f(N.V),v=z.next();!v.done;v=z.next())(v=v.value.pL())&&v.type&&v.sendByDefault&&N.ZJ.add(v.type)}; YY_=function(N){N.policy.Dx&&(N.K0=void 0,N.Di=0)}; iex=function(N,z){if(z.M4()||z.HL()){var v=N.loader,R=v.WL,C=z.state;N=N.uv();var Z,Y;if((z=(Z=z.OD)==null?void 0:Z.get(N))==null)z=void 0;else{Z=0;N=z.lQ();for(var Q=0;Q=N.policy.Im,Y=!1;if(Z){var Q=0;!isNaN(z)&&z>N.B&&(Q=z-N.B,N.B=z);Q/C=N.policy.aB&&!N.Z;if(!Z&&!v&&Kw2(N,z))return NaN;v&&(N.Z=!0);a:{R=Y;v=(0,g.I)()/1E3-(N.rE.fU()||0)-N.L.V-N.policy.Ui;Z=N.W.startTime;v=Z+v;if(R){if(isNaN(z)){DU(N,NaN,"n",z);Z=NaN;break a}R=z-N.policy.gg;R=Z.N&&R<=Z.G){R=!0;break a}R=!1}R=!R}if(R)return N.WL("ostmf",{ct:N.getCurrentTime(),a:z.V.info.bI()}),!1;(N=N.Vp)!=null&&(N.Xy.get(v).hV=!0);return!0}; yfO=function(N){if(!N.Md.Hb)return!0;var z=N.kT.getVideoData();if(N.kT.E_())return N.WL("ombpa",{}),!1;var v,R;if(N.policy.pI&&!!((v=N.J)==null?0:(R=v.qN)==null?0:R.DvO)!==N.Md.pG)return N.WL("ombplmm",{}),!1;v=z.zE||z.liveUtcStartSeconds||z.gx;if(N.Md.pG&&v)return N.WL("ombplst",{}),!1;if(N.Md.J)return N.WL("ombab",{}),!1;v=Date.now();return pr(N.Md)&&!isNaN(N.PL)&&v-N.PL>N.policy.GY*1E3?(N.WL("ombttl",{}),!1):N.Md.PH&&N.Md.N||!N.policy.Ep&&N.Md.isPremiere||!(Gh(z)===0||N.policy.V&&z.X("html5_enable_onesie_media_for_sabr_proxima_optin"))|| z.X("html5_disable_onesie_media_for_mosaic")&&Dk(z)||z.Lb()&&!z.X("html5_enable_onesie_media_for_lifa")&&z.isDaiEnabled()&&z.enableServerStitchedDai||z.X("html5_disable_onesie_media_for_lifa_eligible")&&oD(z)?!1:!0}; fk2=function(N,z){var v=z.V,R=N.Md.Hb;if(yfO(N))if(N.Vp&&N.Vp.Xy.has(Aa(g.wp(v.info,R)))){if(R=Aa(g.wp(v.info,R)),Jfu(N,z)){var C=new ta(N.Vp.q$(R)),Z=function(Y){try{if(Y.M4())N.handleError(Y.Xk(),Y.nf()),Pt(z,Y),IG(Y.info)&&XG(N.B,z,v,!0),N.Nv();else if(d9O(N.B,Y)){var Q;(Q=N.W)==null||PCm(Q,Y.info,N.qd);N.Nv()}}catch(L){Y=UH(L),N.handleError(Y.errorCode,Y.details,Y.severity),N.No()}}; v.Z=!0;OE(C)&&(FG(z,new kY(N.policy,R,C,N.Vp,Z)),pY(N.timing))}}else N.WL("ombfmt",{})}; dkO=function(N,z){z=z||N.videoTrack&&N.videoTrack.W&&N.videoTrack.W.startTime||N.getCurrentTime();var v=rj,R=N.videoTrack,C=N.V;z=C.nextVideo&&C.nextVideo.index.vP(z)||0;C.K0!==z&&(C.Id={},C.K0=z,ux(C,C.V));z=!C.V.isLocked()&&C.J>-1&&(0,g.I)()-C.Jz.V&&z.reason==="b";R||C||v?(N.kT.Au({reattachOnConstraint:R?"u":C?"drm":"perf",lo:z.W,up:z.V}),N.policy.Ut||(N.Z.V.W=!1)):(N.policy.Ut&&(N.Z.V.W=!1),H8(N))}}else if(!XvY(N.V,z)&&N.videoTrack){N.logger.debug(function(){return"Setting constraint: r="+z.reason+" u="+z.V}); v=N.V.V;$ku(N,uFm(N.V,z));dkO(N);R=z.isLocked()&&z.reason==="m"&&N.V.Vp;C=N.policy.I_&&z.reason==="l"&&S2(N.videoTrack);v=v.V>z.V&&z.reason==="b";var Z=N.V.vL&&!Dj();R||C||v||Z?N.kT.Au({reattachOnConstraint:R?"u":C?"drm":Z?"codec":"perf"}):H8(N)}}; Bwv=function(N,z,v){if((!N.uS||O0(N.uS)&&!N.policy.O_)&&!N.lI.isSeeking()&&(N.policy.V||S2(z)&&z.V.eN()&&N.V.qd)){var R=N.getCurrentTime()+o0b(N.Y,z,v);N.logger.debug(function(){return"Clearing back to "+R.toFixed(3)}); cIf(z,R)}}; $ku=function(N,z){z&&(N.logger.debug(function(){return"Logging new format: "+CN(z.video.info)}),Afu(N.kT,new Dm(z.video,z.reason))); if(N.V.S8){var v=wvK(N.V,"a");N.kT.Ds(new Dm(v.audio,v.reason))}}; H8=function(N){g.qv(N.zE)}; Tdf=function(N){N.policy.UR&&N.policy.rd&&Math.min(unI(N.videoTrack),unI(N.audioTrack))*1E3>N.policy.LA?g.qv(N.A0):N.Nv()}; g6I=function(N,z){var v=(0,g.I)()-z,R=gj(N.audioTrack,!0)*1E3,C=gj(N.videoTrack,!0)*1E3;N.logger.debug(function(){return"Appends paused for "+v}); if(N.policy.W&&(N.WL("apdpe",{dur:v.toFixed(),abuf:R.toFixed(),vbuf:C.toFixed()}),D$(N.policy))){var Z=BO(N.Y);N.WL("sdps",{ct:z,ah:R.toFixed(),vh:C.toFixed(),mr:Ap(N.Y,N.aY,Z),bw:Z.toFixed(),js:N.isSeeking(),re:+N.aY,ps:(N.policy.l2||"").toString(),rn:(N.policy.Sv||"").toString()})}}; p0u=function(N){if(v1u(N.videoTrack))return N.logger.debug("Pausing appends for server-selectable format"),"ssf";if(N.policy.UT&&Ht(N.videoTrack)&&Ht(N.audioTrack))return"updateEnd";if(VQ(N.audioTrack)||VQ(N.videoTrack)&&N.videoTrack.V.info.JO!=="f")return"";if(N.lI.isSeeking()){var z=N.Y;var v=N.videoTrack;var R=N.audioTrack;if(z.policy.V){var C=z.policy.Qj;D$(z.policy)&&(C=Ap(z,!1,BO(z)));z=C;v=gj(R,!0)>=z&&gj(v,!0)>=z}else v.Z.length||R.Z.length?(C=v.V.info.i$+R.V.info.i$,C=10*(1-BO(z)/C),z=Math.max(C, z.policy.Qj),v=gj(R,!0)>=z&&gj(v,!0)>=z):v=!0;if(!v)return"abr";v=N.videoTrack;if(v.Z.length>0&&v.N.W.length===1&&FrY(v.N).info.L360);R=D$(N.policy)&&N.policy.MQ;if(!N.aY||!R&&v)return"";v=N.policy.m1;D$(N.policy)&&(v=Ap(N.Y,N.aY,BO(N.Y)));v=M7O(N.videoTrack,N.getCurrentTime(),v)||M7O(N.audioTrack,N.getCurrentTime(), v);return D$(N.policy)?v?"mbnm":"":(N.videoTrack.Z.length>0||N.audioTrack.Z.length>0||IQ(N.B,N.videoTrack,N.audioTrack)||IQ(N.B,N.audioTrack,N.videoTrack))&&v?"nord":""}; khu=function(N){if(N.L){var z=N.L.Nv(N.audioTrack,Q4(N.uS.W.vc()));z&&N.kT.seekTo(z,{Jo:!0,Np:"pollSubsegmentReadahead",KX:!0})}}; o62=function(N,z,v){if(N.policy.UT&&Ht(z))return!1;if(v.zB())return!0;if(!v.ZL())return!1;var R=bp(z);if(!R||R.info.type===6)return!1;var C;if(N.policy.ij||((C=N.W)==null?0:h7m(C,z,R.info.cL)))N.Id=0;else return N.lI.isSeeking()&&H8(N),N.Id=N.Id||(0,g.I)(),!1;if(!bB(N,z,v,R.info))return!1;if(N.Md.W&&R.info.W===0){if(C=PMf(z,v,R)){var Z=Tq(z);N.WL("initchg",{it:R.info.V.info.id,sr:!!Z&&Z.V===R.info.V,ty:R.info.type,seg:R.info.cL})}Z=g.qi(R.info.V.info);N.policy.gx&&Z&&!C&&bNI(R)}Z=N.L&&!!N.L.N&&z.V.info.audio; C=N.Md.isManifestless||R.B;if(!(N.Md.W&&R.info.W!==0||C&&!Z)&&VM7(N,z,v,R))return!0;if(Z)return!1;Z=Ez(N,z);Z=N.getCurrentTime()+Z;if(R.info.N>Z)return N.policy.V&&SY2(N,z),N.policy.kF&&Nku(z.N,Z,!1),!1;E6b(N,z);var Y;N.policy.er&&v===((Y=N.uS)==null?void 0:Y.V)&&N.xT&&(v.LZ()===0?(N.xT=!1,N.policy.er=!1):N.ET=v.LZ());if(!hNO(N,v,R,z))return!1;N.policy.UT&&R.info.Rq()?(N.kT.D().LV()&&N.WL("eosl",{ls:R.info.z4()}),R.isLocked=!0):(z.DR(R),MAY(N.V,R.info),N.logger.debug(function(){return"Appended "+ R.info.z4()+", buffered: "+Yx(v.vc())})); C&&HeI(N,R.info.V.RK);return!0}; SY2=function(N,z){z===N.videoTrack?N.tO=N.tO||(0,g.I)():N.Rd=N.Rd||(0,g.I)()}; E6b=function(N,z){z===N.videoTrack?N.tO=0:N.Rd=0}; hNO=function(N,z,v,R){var C=N.policy.CV?(0,g.I)():0,Z=v.B&&v.info.V.V||void 0,Y=v.V;v.B&&(Y=DkU(N,v,Y)||Y);var Q=Y.Na();Y=N.policy.CV?(0,g.I)():0;z=be_(N,z,Q,v.info,Z);(R=R.J)!=null&&(Z=v.info,C=Y-C,Y=(0,g.I)()-Y,!R.W||Y0I(R.W,Z)&&R.W.cL===Z.cL||R.flush(),R.N+=C,R.Z+=Y,C=1,!R.W&&Z.W&&(C=2),zq(R,C,z),Y=Math.ceil(Z.W/1024),C===2&&R.V.add(Y),R.V.add(Math.ceil((Z.W+Z.Z)/1024)-Y),R.W=Z);N.K0=0;if(z===0)return N.BL&&(N.logger.debug("Retry succeed, back to normal append logic."),N.BL=!1,N.gW=!1),N.kJ=0, !0;if(z===2||z===5)return tMK(N,"checked",z,v.info),!1;if(z===1){if(!N.BL)return N.logger.debug("QuotaExceeded, retrying."),N.BL=!0,!1;if(!N.gW)return N.gW=!0,N.kT.seekTo(N.getCurrentTime(),{Np:"quotaExceeded",KX:!0}),!1;v.info.yO()?(C=N.policy,C.tO=Math.floor(C.tO*.8),C.PL=Math.floor(C.PL*.8)):(C=N.policy,C.ET=Math.floor(C.ET*.8),C.PL=Math.floor(C.PL*.8));N.policy.V?t3(N.Z.V,v.info.V,!1):qD(N.V,v.info.V)}N.kT.Au({reattachOnAppend:z});return!1}; DkU=function(N,z,v){var R;if(R=N.policy.HQ&&N.uS&&!N.uS.Y&&!N.kT.hY())z=z.info.V.info,R=z.qF()&&OH(z)&&z.video&&z.video.width<3840&&z.video.width>z.video.height;if(R&&(N.uS.Y=!0,p_('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return v=sy_(v),N.policy.W&&N.WL("sp4k",{s:!!v}),v}; tMK=function(N,z,v,R){var C="fmt.unplayable",Z=1;v===5||v===3?(C="fmt.unparseable",N.policy.V?!R.V.info.video||O6(N.Z.V).size>0||t3(N.Z.V,R.V,!1):!R.V.info.video||O6(N.V.B).size>0||qD(N.V,R.V)):v===2&&(N.kJ<15?(N.kJ++,C="html5.invalidstate",Z=0):C="fmt.unplayable");R=DO(R);var Y;R.mrs=(Y=N.uS)==null?void 0:ur(Y);R.origin=z;R.reason=v;N.handleError(C,R,Z)}; Hrf=function(N,z,v,R,C){var Z=N.Md;var Y=N.policy.V,Q=!1,L=-1,K;for(K in Z.V){var l=vE(Z.V[K].info.mimeType)||Z.V[K].info.yO();if(R===l)if(l=Z.V[K].index,l.j7(z.cL)){Q=l;var W=z,G=Q.Bp(W.cL);G&&G.startTime!==W.startTime?(Q.segments=[],Q.Ms(W),Q=!0):Q=!1;Q?L=z.cL:!z.pending&&Y&&(W=l.getDuration(z.cL),W!==z.duration&&(Z.publish("clienttemp","mfldurUpdate",{itag:Z.V[K].info.itag,seg:z.cL,od:W,nd:z.duration},!1),l.Ms(z),Q=!0))}else l.Ms(z),Q=!0}L>=0&&(Y={},Z.publish("clienttemp","resetMflIndex",(Y[R? "v":"a"]=L,Y),!1));Z=Q;CLx(N.lI,z,R,Z);N.W.iy(z,v,R,C);if(N.policy.ZT&&v){var x;(x=N.Dx)!=null&&x.Z.set(z.cL,v)}z.cL===N.Md.PH&&Z&&$F(N.Md)&&z.startTime>$F(N.Md)&&(N.Md.K0=z.startTime+(isNaN(N.timestampOffset)?0:N.timestampOffset),N.lI.isSeeking()&&N.lI.V 5)return N.K0=0,N.kT.Au({initSegStuck:1,as:R.info.z4()}),!0}else N.K0=0,N.YJ=R;N.policy.pJ&&(v.abort(),(Y=z.J)!=null&&(zq(Y,4),Y.flush()));C=be_(N,v,Z,L,C);var K;(K=z.J)==null||irI(K,C,L);if(C!==0)return Oex(N,C,R),!0;R.info.yO()?n4O(N.timing):myY(N.timing);N.logger.debug(function(){return"Appended init for "+R.info.V.info.id}); HeI(N,R.info.V.RK);return v.G0()}; PMf=function(N,z,v){if(z.Fe()==null){N=Tq(N);if(!(z=!N||N.V!==v.info.V)){a:if(N=N.J,v=v.info.J,N.length!==v.length)v=!1;else{for(z=0;z1)return 6;Y.Id=new g.cn(function(){var Q=bp(Y);N.HL()||Q==null||!Q.isLocked?N.kT.D().LV()&&N.WL("eosl",{delayA:Q==null?void 0:Q.info.z4()}):Ikm(Y)?(N.kT.D().LV()&&N.WL("eosl",{dunlock:Q==null?void 0:Q.info.z4()}),X0O(N,Y===N.audioTrack)):(N.WL("nue",{ls:Q.info.z4()}),Q.info.qd+=1,N.uS&&N.eb())},1E4,N); N.kT.D().LV()&&N.WL("eosl",{delayS:R.z4()});Y.Id.start()}N.policy.GO&&(R==null?void 0:R.V)instanceof rg&&R.Rq()&&N.WL("poseos",{itag:R.V.info.itag,seg:R.cL,lseg:R.V.index.YH(),es:R.V.index.Z});z.appendBuffer(v,R,C)}catch(Q){if(Q instanceof DOMException){if(Q.code===11)return 2;if(Q.code===12)return 5;if(Q.code===22||Q.message.indexOf("Not enough storage")===0)return z=Object.assign({name:"QuotaExceededError",buffered:Yx(z.vc()).replace(/,/g,"_"),vheap:Bt(N.videoTrack),aheap:Bt(N.audioTrack),message:g.vJ(Q.message, 3),track:N.uS?z===N.uS.W?"v":"a":"u"},Ghx(N.policy.Hd)),N.handleError("player.exception",z),1;g.kE(Q)}return 4}return N.uS.QX()?3:0}; DS=function(N,z,v){N.kT.seekTo(z,v)}; HeI=function(N,z){z&&N.kT.jj(new QQ(z.key,z.type))}; Wt=function(N,z){N.kT.JB(z)}; Ez=function(N,z){if(N.BL&&!N.aY)return 3;if(N.isSuspended)return 1;var v;if((v=N.uS)==null?0:v.uS&&v.uS.streaming===!1)return 4;v=(z.V.info.audio?N.policy.ET:N.policy.tO)/(z.i$*N.policy.q3);if(N.policy.cm>0&&N.uS&&O0(N.uS)&&(z=z.V.info.video?N.uS.W:N.uS.V)&&!z.G0()){z=z.vc();var R=ir(z,N.getCurrentTime());R>=0&&(z=N.getCurrentTime()-z.start(R),v+=Math.max(0,Math.min(z-N.policy.cm,N.policy.jD)))}N.policy.PL>0&&(v=Math.min(v,N.policy.PL));return v}; uHY=function(N,z){return(Ez(N,z)+N.policy.u2)*z.i$}; uev=function(N){N.vL&&!N.isSuspended&&dd(N.schedule)&&(rf7(N,N.vL),N.vL="")}; rf7=function(N,z){ns(z,"cms",function(v){N.policy.W&&N.WL("pathprobe",v)},function(v){N.kT.handleError(v)})}; cfv=function(N,z){if(N.uS&&N.uS.N&&!N.uS.QX()&&(z.Ny=gj(N.videoTrack),z.W=gj(N.audioTrack),N.policy.W)){var v=Bt(N.videoTrack),R=Bt(N.audioTrack),C=Yx(N.uS.W.vc(),"_",5),Z=Yx(N.uS.V.vc(),"_",5);Object.assign(z.V,{lvq:v,laq:R,lvb:C,lab:Z})}z.bandwidthEstimate=$Y(N.Y);var Y;(Y=N.audioTrack.J)==null||Y.flush();var Q;(Q=N.videoTrack.J)==null||Q.flush();N.logger.debug(function(){return n_(z.V)})}; qYu=function(N,z){N.qd=z;N.W&&(N.W.Z=z);N.qd.Kd(N.videoTrack.V.info.qF());N.B.W=N.qd;N.policy.Z&&(N.N.L=N.qd)}; zBO=function(N,z){if(N.uS&&N.uS.W){if(N.policy.Xl){var v=ZuO(N.audioTrack);if(v&&v.bI()){var R=N.kT;if(R.YL&&(R.YL.V=v,v=R.SV(R.YL.videoId),v.qoe)){v=v.qoe;R=R.YL;var C=g.I4(v.provider);MM_(v,C,R)}}}N.policy.ya&&(v=ZuO(N.videoTrack))&&v.yO()&&(R=N.kT,R.gV&&(R.gV.V=v,v=R.SV(R.gV.videoId),v.qoe&&w0u(v.qoe,R.gV)));z-=isNaN(N.timestampOffset)?0:N.timestampOffset;N.getCurrentTime()!==z&&N.resume();N.lI.isSeeking()&&N.uS&&!N.uS.QX()&&(R=N.getCurrentTime()<=z&&z=0&&Z1?Q.W[0]=z&&xkO(N,R.startTime,!1)}); return v&&v.startTimeN.getCurrentTime())return v.start/1E3;return Infinity}; Nwf=function(N){if(N.kT.getVideoData().isLivePlayback)return!1;var z=N.kT.O6();if(!z)return!1;z=z.getDuration();if(N.uS&&N.uS.V&&N.uS.W){var v=N.getCurrentTime(),R=N.uS.V.vc();N=N.uS.W.vc();R=R?ae(R,v):v;v=N?ae(N,v):v;v=Math.min(R,v);z=isNaN(v)?!1:v>=z-.01}else z=!1;return z}; Oex=function(N,z,v){N.policy.BU&&Ce(N.kT.getVideoData())?(N.kT.Kh()||tMK(N,"sepInit",z,v.info),Yr_(N.kT,"sie")):tMK(N,"sepInit",z,v.info)}; FdU=function(N){return N.kT.Q7()0){var C=R.V.shift();juu(R,C.info)}R.V.length>0&&(C=R.V[0].time-(0,g.I)(),R.W.start(Math.max(0,C)))}},0); g.b(this,this.W);z.subscribe("widevine_set_need_key_info",this.B,this)}; juu=function(N,z){a:{var v=z.cryptoPeriodIndex;if(isNaN(v)&&N.Z.size>0)v=!0;else{for(var R=g.f(N.Z.values()),C=R.next();!C.done;C=R.next())if(C.value.cryptoPeriodIndex===v){v=!0;break a}v=!1}}N.publish("log_qoe",{wvagt:"reqnews",canskip:v});v||N.publish("rotated_need_key_info_ready",z)}; a2m=function(){var N={};var z=N.url;var v=N.interval;N=N.retries;this.url=z;this.interval=v;this.retries=N}; Quf=function(N,z){this.statusCode=N;this.message=z;this.W=this.heartbeatParams=this.errorMessage=null;this.V={};this.nextFairplayKeyId=null}; xe_=function(N,z,v){v=v===void 0?"":v;g.H.call(this);this.message=N;this.requestNumber=z;this.hT=v;this.onError=this.onSuccess=null;this.V=new g.h_(5E3,2E4,.2)}; eZO=function(N,z,v){N.onSuccess=z;N.onError=v}; yZK=function(N,z,v,R){var C={timeout:3E4,onSuccess:function(Z){if(!N.HL()){H_("drm_net_r",void 0,N.hT);var Y=Z.status==="LICENSE_STATUS_OK"?0:9999,Q=null;if(Z.license)try{Q=R1(Z.license)}catch(e){g.kE(e)}if(Y!==0||Q){Q=new Quf(Y,Q);Y!==0&&Z.reason&&(Q.errorMessage=Z.reason);if(Z.authorizedFormats){Y={};for(var L=[],K={},l=g.f(Z.authorizedFormats),W=l.next();!W.done;W=l.next())if(W=W.value,W.trackType&&W.keyId){var G=JZ_[W.trackType];if(G){G==="HD"&&Z.isHd720&&(G="HD720");W.isHdr&&(G+="HDR");Y[G]|| (L.push(G),Y[G]=!0);var x=null;try{x=R1(W.keyId)}catch(e){g.kE(e)}x&&(K[g.zV(x,4)]=G)}}Q.W=L;Q.V=K}Z.nextFairplayKeyId&&(Q.nextFairplayKeyId=Z.nextFairplayKeyId);Z.sabrLicenseConstraint&&(Q.sabrLicenseConstraint=R1(Z.sabrLicenseConstraint));Z=Q}else Z=null;if(Z)N.onSuccess(Z,N.requestNumber);else N.onError(N,"drm.net","t.p;p.i")}}, onError:function(Z){if(!N.HL())if(Z&&Z.error)Z=Z.error,N.onError(N,"drm.net.badstatus","t.r;p.i;c."+Z.code+";s."+Z.status,Z.code);else N.onError(N,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){N.onError(N,"drm.net","rt.req."+N.requestNumber)}}; R&&(C.w9="Bearer "+R);g.w5(v,"player/get_drm_license",z,C)}; f$_=function(N,z,v,R){g.jJ.call(this);this.videoData=N;this.iS=z;this.Y=v;this.sessionId=R;this.B={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.qd=this.Vp=!1;this.Z=null;this.PL=[];this.N=[];this.kz=[];this.L=!1;this.V={};this.status="";this.G=NaN;this.W=N.B;this.cryptoPeriodIndex=v.cryptoPeriodIndex;N={};Object.assign(N,this.iS.V);N.cpn=this.videoData.clientPlaybackNonce;this.videoData.Rd&&(N.vvt=this.videoData.Rd,this.videoData.mdxEnvironment&&(N.mdx_environment=this.videoData.mdxEnvironment)); this.iS.PL&&(N.authuser=this.iS.PL);this.iS.pageId&&(N.pageid=this.iS.pageId);isNaN(this.cryptoPeriodIndex)||(N.cpi=this.cryptoPeriodIndex.toString());var C=(C=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.mU()))?C[1]:"";C==="ATV"&&(N.cdt=C);this.B=N;this.B.session_id=R;this.J=!0;this.W.flavor==="widevine"&&(this.B.hdr="1");this.W.flavor==="playready"&&(z=Number(zx(z.experiments,"playready_first_play_expiration")),!isNaN(z)&&z>=0&&(this.B.mfpe=""+z),this.J=!1);z="";g.Iy(this.W)?Og(this.W)?(R=v.W)&&(z="https://www.youtube.com/api/drm/fps?ek="+ g_K(R)):(z=v.initData.subarray(4),z=new Uint16Array(z.buffer,z.byteOffset,z.byteLength/2),z=String.fromCharCode.apply(null,z).replace("skd://","https://")):z=this.W.W;this.baseUrl=z;this.fairplayKeyId=VX(this.baseUrl,"ek")||"";if(z=VX(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(z);this.PL=v.qF?[g.zV(v.initData,4)]:v.Z;qF(this,{sessioninit:v.cryptoPeriodIndex});this.status="in"}; Fif=function(N,z){qF(N,{createkeysession:1});N.status="gr";H_("drm_gk_s",void 0,N.videoData.qd);N.url=de7(N);try{N.Z=z.createSession(N.Y,function(v){qF(N,{m:v})})}catch(v){z="t.g"; v instanceof DOMException&&(z+=";c."+v.code);N.publish("licenseerror","drm.unavailable",1,z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}N.Z&&(sQY(N.Z,function(v,R){Tjv(N,v,R)},function(v,R,C){if(!N.HL()){R=void 0; var Z=1;g.Iy(N.W)&&g.V1(N.iS)&&N.iS.X("html5_enable_safari_fairplay")&&C===1212433232&&(R="ERROR_HDCP",Z=N.iS.X("html5_safari_fairplay_ignore_hdcp")?0:Z);N.error("drm.keyerror",Z,v,R)}},function(){N.HL()||(qF(N,{onkyadd:1}),N.qd||(N.publish("sessionready"),N.qd=!0))},function(v){N.sN(v)}),g.b(N,N.Z))}; de7=function(N){var z=N.baseUrl;CGu(z)||N.error("drm.net",2,"t.x");if(!VX(z,"fexp")){var v=["23898307","23914062","23916106","23883098"].filter(function(C){return N.iS.experiments.experiments[C]}); v.length>0&&(N.B.fexp=v.join())}v=g.f(Object.keys(N.B));for(var R=v.next();!R.done;R=v.next())R=R.value,z=ZIU(z,R,N.B[R]);return z}; Tjv=function(N,z,v){if(!N.HL())if(z){qF(N,{onkmtyp:v});N.status="km";switch(v){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":ngK(N,z);return;default:N.publish("ctmp","message_type",{t:v,l:z.byteLength})}N.Vp||(H_("drm_gk_f",void 0,N.videoData.qd),N.Vp=!0,N.publish("newsession",N));if(DC(N.W)&&(z=meI(z),!z))return;z=new xe_(z,++N.requestNumber,N.videoData.qd);eZO(z,function(R){$eI(N,R)},function(R,C,Z){if(!N.HL()){var Y=0; R.V.W>=3&&(Y=1,C="drm.net.retryexhausted");qF(N,{onlcsrqerr:C,info:Z});N.error(C,Y,Z);N.shouldRetry($z(Y),R)&&Uef(N,R)}}); g.b(N,z);BjI(N,z)}else N.error("drm.unavailable",1,"km.empty")}; ngK=function(N,z){qF(N,{sdpvrq:1});N.G=Date.now();if(N.W.flavor!=="widevine")N.error("drm.provision",1,"e.flavor;f."+N.W.flavor+";l."+z.byteLength);else{var v={cpn:N.videoData.clientPlaybackNonce};Object.assign(v,N.iS.V);v=g.kS("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",v);z={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, z)}),responseType:"arraybuffer"};g.UF(v,z,3,500).then(mJ(function(R){R=R.xhr;if(!N.HL()){R=new Uint8Array(R.response);var C=String.fromCharCode.apply(null,R);try{var Z=JSON.parse(C)}catch(Y){}Z&&Z.signedResponse?(N.publish("ctmp","drminfo",{provisioning:1}),Z=(Date.now()-N.G)/1E3,N.G=NaN,N.publish("ctmp","provs",{et:Z.toFixed(3)}),N.Z&&N.Z.update(R)):(Z=Z&&Z.error&&Z.error.message,R="e.parse",Z&&(R+=";m."+Z),N.error("drm.provision",1,R))}}),mJ(function(R){N.HL()||N.error("drm.provision",1,"e."+R.errorCode+ ";c."+(R.xhr&&R.xhr.status))}))}}; MF=function(N){var z;if(z=N.J&&N.Z!=null)N=N.Z,z=!(!N.V||!N.V.keyStatuses);return z}; BjI=function(N,z){N.status="km";H_("drm_net_s",void 0,N.videoData.qd);var v=new g.Mf(N.iS.yE),R={context:g.Qi(v.config_||g.aq())};R.drmSystem=AZU[N.W.flavor];R.videoId=N.videoData.videoId;R.cpn=N.videoData.clientPlaybackNonce;R.sessionId=N.sessionId;R.licenseRequest=g.zV(z.message);R.drmParams=N.videoData.drmParams;isNaN(N.cryptoPeriodIndex)||(R.isKeyRotated=!0,R.cryptoPeriodIndex=N.cryptoPeriodIndex);var C,Z,Y=!!((C=N.videoData.W)==null?0:(Z=C.video)==null?0:Z.isHdr());R.drmVideoFeature=Y?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(R.context&&R.context.client){if(C=N.iS.V)R.context.client.deviceMake=C.cbrand,R.context.client.deviceModel=C.cmodel,R.context.client.browserName=C.cbr,R.context.client.browserVersion=C.cbrver,R.context.client.osName=C.cos,R.context.client.osVersion=C.cosver;R.context.user=R.context.user||{};R.context.request=R.context.request||{};N.videoData.Rd&&(R.context.user.credentialTransferTokens=[{token:N.videoData.Rd,scope:"VIDEO"}]);R.context.request.mdxEnvironment=N.videoData.mdxEnvironment|| R.context.request.mdxEnvironment;N.videoData.c5&&(R.context.user.kidsParent={oauthToken:N.videoData.c5});g.Iy(N.W)&&(R.fairplayKeyId=g.zV(pZ2(N.fairplayKeyId)));g.CW(N.iS,g.hf(N.videoData)).then(function(Q){yZK(z,R,v,Q);N.status="rs"})}else N.error("drm.net",2,"t.r;ic.0")}; $eI=function(N,z){if(!N.HL())if(qF(N,{onlcsrsp:1}),N.status="rr",z.statusCode!==0)N.error("drm.auth",1,"t.f;c."+z.statusCode,z.errorMessage||void 0);else{H_("drm_kr_s",void 0,N.videoData.qd);if(z.heartbeatParams&&z.heartbeatParams.url&&N.videoData.X("outertube_streaming_data_always_use_staging_license_service")){var v=N.W.W.match(/(.*)youtube.com/g);v&&(z.heartbeatParams.url=v[0]+z.heartbeatParams.url)}z.heartbeatParams&&N.publish("newlicense",z.heartbeatParams);z.W&&(N.N=z.W,N.videoData.pI||N.publish("newlicense", new a2m),N.videoData.pI=!0,N.L=Mj(N.N,function(R){return R.includes("HDR")})); z.V&&(N.iS.X("html5_enable_vp9_fairplay")&&Og(N.W)?(v=g.zV(pZ2(N.fairplayKeyId),4),N.V[v]={type:z.V[v],status:"unknown"}):N.V=t8(z.V,function(R){return{type:R,status:"unknown"}})); tI(N.W)&&(z.message=Uqb(g.zV(z.message)));N.Z&&(qF(N,{updtks:1}),N.status="ku",N.Z.update(z.message).then(function(){H_("drm_kr_f",void 0,N.videoData.qd);MF(N)||(qF(N,{ksApiUnsup:1}),N.publish("keystatuseschange",N))},function(R){R="msuf.req."+N.requestNumber+";msg."+g.vJ(R.message,3); N.error("drm.keyerror",1,R)})); g.Iy(N.W)&&N.publish("fairplay_next_need_key_info",N.baseUrl,z.nextFairplayKeyId);N.iS.X("html5_enable_vp9_fairplay")&&Og(N.W)&&N.publish("qualitychange",ggu(N.N));z.sabrLicenseConstraint&&N.publish("sabrlicenseconstraint",z.sabrLicenseConstraint)}}; Uef=function(N,z){var v=z.V.getValue();v=new g.cn(function(){BjI(N,z)},v); g.b(N,v);v.start();g.Hf(z.V);qF(N,{rtyrq:1})}; ptm=function(N,z){for(var v=[],R=g.f(Object.keys(N.V)),C=R.next();!C.done;C=R.next())C=C.value,v.push(C+"_"+N.V[C].type+"_"+N.V[C].status);return v.join(z)}; kqY=function(N){var z={};z[N.status]=MF(N)?ptm(N,"."):N.N.join(".");return z}; Pfm=function(N){switch(N.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; w$=function(N,z){for(var v in N.V)if(N.V[v].status==="usable"&&N.V[v].type===z)return!0;return!1}; V27=function(N,z){for(var v in N.V)if(N.V[v].type===z)return N.V[v].status}; qF=function(N,z){var v=v===void 0?!1:v;n_(z);(v||N.iS.LV())&&N.publish("ctmp","drmlog",z)}; SMu=function(N){var z=N[0];N[0]=N[3];N[3]=z;z=N[1];N[1]=N[2];N[2]=z;z=N[4];N[4]=N[5];N[5]=z;z=N[6];N[6]=N[7];N[7]=z}; ggu=function(N){return g.J8(N,"UHD2")||g.J8(N,"UHD2HDR")?"highres":g.J8(N,"UHD1")||g.J8(N,"UHD1HDR")?"hd2160":g.J8(N,"HD")||g.J8(N,"HDHDR")?"hd1080":g.J8(N,"HD720")||g.J8(N,"HD720HDR")?"hd720":"large"}; meI=function(N){for(var z="",v=0;v'.charCodeAt(R);N=N.Z.createSession("video/mp4",z,v);return new Nw(null,null,null,null,N)}; OlY=function(N,z){var v=N.G[z.sessionId];!v&&N.N&&(v=N.N,N.N=null,v.sessionId=z.sessionId,N.G[z.sessionId]=v);return v}; Deu=function(N,z){var v=N.subarray(4);v=new Uint16Array(v.buffer,v.byteOffset,v.byteLength/2);v=g.h(String.fromCharCode.apply(null,v).match(/ek=([0-9a-f]+)/))[1];for(var R="",C=0;C19.2999?(N=v.TX,v=v.Ev,v>=N&&(v=N* .75),z=(N-v)*.5,v=new uB(z,N,N-z-v,this)):v=null;break a;case "widevine":v=new c8(z,this,N);break a;default:v=null}if(this.B=v)g.b(this,this.B),this.B.subscribe("rotated_need_key_info_ready",this.x9,this),this.B.subscribe("log_qoe",this.VE,this);rB(this.iS.experiments);this.VE({cks:this.V.getInfo()})}; XtI=function(N){var z=ogm(N.N);z?z.then(mJ(function(){uGu(N)}),mJ(function(v){if(!N.HL()){g.kE(v); var R="t.a";v instanceof DOMException&&(R+=";n."+v.name+";m."+v.message);N.publish("licenseerror","drm.unavailable",1,R,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(N.VE({mdkrdy:1}),N.J=!0); N.qd&&(z=ogm(N.qd))}; qMY=function(N,z,v){N.BL=!0;v=new QQ(z,v);N.iS.X("html5_eme_loader_sync")&&(N.G.get(z)||N.G.set(z,v));cZu(N,v)}; cZu=function(N,z){if(!N.HL()){N.VE({onInitData:1});if(N.iS.X("html5_eme_loader_sync")&&N.videoData.Z&&N.videoData.Z.V){var v=N.L.get(z.initData);z=N.G.get(z.initData);if(!v||!z)return;z=v;v=z.initData;N.G.remove(v);N.L.remove(v)}N.VE({initd:z.initData.length,ct:z.contentType});if(N.V.flavor==="widevine")if(N.Rd&&!N.videoData.isLivePlayback)Rl(N);else{if(!(N.iS.X("vp9_drm_live")&&N.videoData.isLivePlayback&&z.qF)){N.Rd=!0;v=z.cryptoPeriodIndex;var R=z.V;eev(z);z.qF||(R&&z.V!==R?N.publish("ctmp","cpsmm", {emsg:R,pssh:z.V}):v&&z.cryptoPeriodIndex!==v&&N.publish("ctmp","cpimm",{emsg:v,pssh:z.cryptoPeriodIndex}));N.publish("widevine_set_need_key_info",z)}}else N.x9(z)}}; uGu=function(N){if(!N.HL())if(N.iS.X("html5_drm_set_server_cert")||Og(N.V)){var z=N.N.setServerCertificate();z?z.then(mJ(function(v){N.iS.LV()&&N.publish("ctmp","ssc",{success:v})}),mJ(function(v){N.publish("ctmp","ssce",{n:v.name, m:v.message})})).then(mJ(function(){M2u(N)})):M2u(N)}else M2u(N)}; M2u=function(N){N.HL()||(N.J=!0,N.VE({onmdkrdy:1}),Rl(N))}; wtu=function(N){return N.V.flavor==="widevine"&&N.videoData.X("html5_drm_cpi_license_key")}; Rl=function(N){if(N.BL&&N.J&&!N.K0){for(;N.Z.length;){var z=N.Z[0],v=wtu(N)?JIu(z):g.zV(z.initData);if(Og(N.V)&&!z.W)N.Z.shift();else{if(N.W.get(v))if(N.V.flavor!=="fairplay"||Og(N.V)){N.Z.shift();continue}else N.W.delete(v);eev(z);break}}N.Z.length&&N.createSession(N.Z[0])}}; N$2=function(N){var z;if(z=g.tr()){var v;z=!((v=N.N.W)==null||!v.getMetrics)}z&&(z=N.N.getMetrics())&&(z=g.mC(z),N.publish("ctmp","drm",{metrics:z}))}; zsu=function(){var N=gZ_();return!(!N||N==="visible")}; Rs7=function(N){var z=vIu();z&&document.addEventListener(z,N,!1)}; CBu=function(N){var z=vIu();z&&document.removeEventListener(z,N,!1)}; vIu=function(){if(document.visibilityState)var N="visibilitychange";else{if(!document[ly+"VisibilityState"])return"";N=ly+"visibilitychange"}return N}; ZR7=function(N){g.H.call(this);var z=this;this.kT=N;this.Sd=0;this.G=this.W=this.B=!1;this.N=0;this.bS=this.kT.D();this.videoData=this.kT.getVideoData();this.Z=g.LM(this.bS.experiments,"html5_delayed_retry_count");this.V=new g.cn(function(){z.kT.YA()},g.LM(this.bS.experiments,"html5_delayed_retry_delay_ms")); g.b(this,this.V)}; Q4_=function(N,z,v){var R=N.videoData.W,C=N.videoData.N;Ce(N.kT.getVideoData())&&N.bS.X("html5_gapless_fallback_on_qoe_restart")&&Yr_(N.kT,"pe");if((z==="progressive.net.retryexhausted"||z==="fmt.unplayable"||z==="fmt.decode")&&!N.kT.Xn.B&&R&&R.itag==="22")return N.kT.Xn.B=!0,N.oP("qoe.restart",{reason:"fmt.unplayable.22"}),N.kT.AZ(),!0;var Z=!1;if(N.videoData.isExternallyHostedPodcast){if(Z=N.videoData.eTW)v.mimeType=Z.type,N.WL("3pp",{url:Z.url});v.ns="3pp";N.kT.Ij(z,1,"VIDEO_UNAVAILABLE",n_((new mT(z, v,1)).details));return!0}var Y=N.Sd+3E4<(0,g.I)()||N.V.isActive();if(N.bS.X("html5_empty_src")&&N.videoData.isAd()&&z==="fmt.unplayable"&&/Empty src/.test(""+v.msg))return v.origin="emptysrc",N.oP("auth",v),!0;Y||Yqf(N.kT.p8())||(v.nonfg="paused",Y=!0,N.kT.pauseVideo());(z==="fmt.decode"||z==="fmt.unplayable")&&(C==null?0:ui(C)||cP(C))&&(tiu(N.bS.B,C.JO),v.acfallexp=C.JO,Z=Y=!0);!Y&&N.Z>0&&(N.V.start(),Y=!0,v.delayed="1",--N.Z);C=N.kT.loader;!Y&&((R==null?0:rp(R))||(R==null?0:OH(R)))&&(tiu(N.bS.B, R.JO),Z=Y=!0,v.cfallexp=R.JO);if(!Y)return iRU(N,v);Y=!1;N.B?N.Sd=(0,g.I)():Y=N.B=!0;var Q=N.videoData;if(Q.xT){Q=Q.xT.bN();var L=Date.now()/1E3+1800;Q=Q6048E5&&WV_(N,"signature");return!1}; WV_=function(N,z){try{window.location.reload(),N.oP("qoe.restart",{detail:"pr."+z})}catch(v){}}; xF7=function(N,z){var v=N.bS.B;v.L=!1;v.W=!0;N.oP("qoe.restart",{e:z===void 0?"fmt.noneavailable":z,detail:"hdr"});N.kT.YA(!0)}; esf=function(N,z,v,R,C,Z){this.videoData=N;this.V=z;this.reason=v;this.W=R;this.token=C;this.videoId=Z}; CF=function(N,z,v){this.iS=N;this.J1=z;this.kT=v;this.Y=this.G=this.V=this.N=this.L=this.W=0;this.B=!1;this.J=g.LM(this.iS.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; yy7=function(N,z,v){!N.iS.X("html5_tv_ignore_capable_constraint")&&g.nM(N.iS)&&(v=v.compose(Jyx(N,z)));return v}; fUu=function(N){if(N.kT.p8().isInline())return tK;var z;N.X("html5_exponential_memory_for_sticky")?z=Tx(N.iS.HH,"sticky-lifetime")<.5?"auto":Kf[tG()]:z=Kf[tG()];return g.aS("auto",z,!1,"s")}; s4O=function(N,z){var v,R=dFf(N,(v=z.V)==null?void 0:v.videoInfos);v=N.kT.getPlaybackRate();return v>1&&R?(N=HgU(N.iS.B,z.V.videoInfos,v),new j$(0,N,!0,"o")):new j$(0,0,!1,"o")}; dFf=function(N,z){return z&&g.nM(N.iS)?z.some(function(v){return v.video.fps>32}):!1}; T$u=function(N,z){if(N.X("html5_disable_ustreamer_constraint_for_sabr")&&iM(z.videoData))return tK;var v=N.kT.W4();N.X("html5_use_video_quality_cap_for_ustreamer_constraint")&&v&&v.eO>0&&Lf(z.videoData.bz)&&(N=v.eO,z.videoData.bz=new j$(0,N,!1,"u"));return z.videoData.bz}; Jyx=function(N,z){if(g.nM(N.iS)&&nf(N.iS.B,m_.HEIGHT))var v=z.V.videoInfos[0].video.qualityOrdinal;else{var R=N.gF(!!z.V.V);Zk(z.videoData)||bM(z.videoData);z=z.V.videoInfos;if(z.length){var C=g.LM(N.iS.experiments,"html5_override_oversend_fraction")||.85,Z=z[0].video;Z.projectionType!=="MESH"&&Z.projectionType!=="EQUIRECTANGULAR"&&Z.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||gd||(C=.45);N=g.LM(N.iS.experiments,"html5_viewport_undersend_maximum");for(Z=0;Z0&&(v=Math.min(v,R));if(R=g.LM(N.iS.experiments,"html5_max_vertical_resolution")){N=4320;for(C=0;CR&&(N=Math.min(N,Z.video.qualityOrdinal));if(N<4320){for(C=R=0;C32){C=!0;break a}}C=!1}C&&(v=Math.min(v,R));(R=g.LM(N.iS.experiments,"html5_live_quality_cap"))&&z.videoData.isLivePlayback&&(v=Math.min(v,R));v=nII(N,z,v);N=g.LM(N.iS.experiments,"html5_byterate_soft_cap");return new j$(0,v===4320?0:v,!1,"d",N)}; $Fm=function(N){var z,v,R,C;return g.S(function(Z){switch(Z.W){case 1:return N.V.V&&typeof((z=navigator.mediaCapabilities)==null?void 0:z.decodingInfo)==="function"?g.k(Z,Promise.resolve(),2):Z.return(Promise.resolve());case 2:v=g.f(N.V.videoInfos),R=v.next();case 3:if(R.done){Z.Zp(0);break}C=R.value;return g.k(Z,yXY(C),4);case 4:R=v.next(),Z.Zp(3)}})}; B$7=function(N,z){if(!z.videoData.W||N.X("html5_disable_performance_downgrade"))return!1;Date.now()-N.L>6E4&&(N.W=0);N.W++;N.L=Date.now();if(N.W!==4)return!1;UFK(N,z.videoData.W);return!0}; gIm=function(N,z,v,R){if(!z||!v||!z.videoData.W)return!1;var C=g.LM(N.iS.experiments,"html5_df_downgrade_thresh"),Z=N.X("html5_log_media_perf_info");if(!((0,g.I)()-N.N<5E3?0:Z||C>0))return!1;var Y=((0,g.I)()-N.N)/1E3;N.N=(0,g.I)();v=v.getVideoPlaybackQuality();if(!v)return!1;var Q=v.droppedVideoFrames-N.G,L=v.totalVideoFrames-N.Y;N.G=v.droppedVideoFrames;N.Y=v.totalVideoFrames;var K=v.displayCompositedVideoFrames===0?0:v.displayCompositedVideoFrames||-1;Z&&N.iS.LV()&&N.kT.WL("ddf",{dr:v.droppedVideoFrames, de:v.totalVideoFrames,comp:K});if(R)return N.V=0,!1;if((L-Q)/Y>N.J||!C||g.nM(N.iS))return!1;N.V=(L>60?Q/L:0)>C?N.V+1:0;if(N.V!==3)return!1;UFK(N,z.videoData.W);N.kT.WL("dfd",Object.assign({dr:v.droppedVideoFrames,de:v.totalVideoFrames},AyU()));return!0}; UFK=function(N,z){var v=z.JO,R=z.video.fps,C=z.video.qualityOrdinal-1,Z=N.Z;z=""+v+(R>49?"p60":R>32?"p48":"");v=S7(v,R,Z);C>0&&(v=Math.min(v,C));if(!ZZ.has(z)&&X$().includes(z)){var Y=v;v=IJ();+v[z]>0&&(Y=Math.min(+v[z],Y));v[z]!==Y&&(v[z]=Y,g.ka("yt-player-performance-cap",v,2592E3))}else if(ZZ.has(z)||Z==null){a:{Y=Y===void 0?!0:Y;R=X$().slice();if(Y){if(R.includes(z))break a;R.push(z)}else{if(!R.includes(z))break a;R.splice(R.indexOf(z),1)}g.ka("yt-player-performance-cap-active-set",R,2592E3)}V3.set(z, v)}else ZZ.add(z),Z==null||Z.set(z,v);N.kT.Gb()}; Y9=function(N,z){if(!z.V.V)return N.B?new j$(0,360,!1,"b"):tK;for(var v=!1,R=!1,C=g.f(z.V.videoInfos),Z=C.next();!Z.done;Z=C.next())rp(Z.value)?v=!0:R=!0;v=v&&R;R=0;C=g.LM(N.iS.experiments,"html5_performance_cap_floor");C=N.iS.W?240:C;z=g.f(z.V.videoInfos);for(Z=z.next();!Z.done;Z=z.next()){var Y=Z.value;if(!v||!rp(Y))if(Z=S7(Y.JO,Y.video.fps,N.Z),Y=Y.video.qualityOrdinal,Math.max(Z,C)>=Y){R=Y;break}}return new j$(0,R,!1,"b")}; p82=function(N,z){var v=N.kT.p8();return v.isInline()&&!z.jD?new j$(0,480,!1,"v"):iM(z)?tK:v.isBackground()&&mB()/1E3>60&&!g.nM(N.iS)?new j$(0,360,!1,"v"):tK}; ksx=function(N,z,v){if(N.iS.experiments.j8("html5_disable_client_autonav_cap_for_onesie")&&z.fetchType==="onesie"||g.nM(N.iS)&&(tG(-1)>=1080||z.osid))return tK;var R=g.LM(N.iS.experiments,"html5_autonav_quality_cap"),C=g.LM(N.iS.experiments,"html5_autonav_cap_idle_secs");return R&&z.isAutonav&&mB()/1E3>C?(v&&(R=nII(N,v,R)),new j$(0,R,!1,"e")):tK}; nII=function(N,z,v){if(N.X("html5_optimality_defaults_chooses_next_higher")&&v)for(N=z.V.videoInfos,z=1;z=0||(N.provider.kT.getVisibilityState()===3?N.B=!0:(N.V=g.I4(N.provider),N.delay.start()))}; SqY=function(N){if(!(N.W<0)){var z=g.I4(N.provider),v=z-N.N;N.N=z;N.playerState.state===8?N.playTimeSecs+=v:N.playerState.isBuffering()&&!g.u(N.playerState,16)&&(N.rebufferTimeSecs+=v)}}; EI2=function(N){var z;switch((z=N.iS.playerCanaryStage)==null?void 0:z.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"}}; hs2=function(N){return window.PressureObserver&&new window.PressureObserver(N)}; HR_=function(N){N=N===void 0?hs2:N;g.H.call(this);var z=this;try{this.Z=N(function(R){z.W=R.at(-1)}); var v;this.N=(v=this.Z)==null?void 0:v.observe("cpu",{sampleInterval:2E3}).catch(function(R){R instanceof DOMException&&(z.V=R)})}catch(R){R instanceof DOMException&&(this.V=R)}}; oI7=function(N){var z={},v=window.h5vcc;z.hwConcurrency=navigator.hardwareConcurrency;N.V&&(z.cpe=N.V.message);N.W&&(z.cpt=N.W.time,z.cps=N.W.state);if(v==null?0:v.cVal)z.cb2s=v.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),z.cb5s=v.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),z.cb30s=v.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return z}; DF7=function(N){var z;g.S(function(v){switch(v.W){case 1:return g.d_(v,2),g.k(v,N.N,4);case 4:g.nO(v,3);break;case 2:g.U2(v);case 3:(z=N.Z)==null||z.disconnect(),g.fO(v)}})}; thY=function(N,z){z?bR2.test(N):(N=g.R0(N),Object.keys(N).includes("cpn"))}; IU2=function(N,z,v,R,C,Z,Y){var Q={format:"RAW"},L={};if(YA(N)&&iQ()){if(Y){var K;((K=ORI.uaChPolyfill)==null?void 0:K.state.type)!==2?Y=null:(Y=ORI.uaChPolyfill.state.data.values,Y={"Synth-Sec-CH-UA-Arch":Y.architecture,"Synth-Sec-CH-UA-Model":Y.model,"Synth-Sec-CH-UA-Platform":Y.platform,"Synth-Sec-CH-UA-Platform-Version":Y.platformVersion,"Synth-Sec-CH-UA-Full-Version":Y.uaFullVersion});L=Object.assign(L,Y);Q.withCredentials=!0}(Y=g.XI("EOM_VISITOR_DATA"))?L["X-Goog-EOM-Visitor-Id"]=Y:R?L["X-Goog-Visitor-Id"]= R:g.XI("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=g.XI("VISITOR_DATA"));v&&(L["X-Goog-PageId"]=v);(R=z.PL)&&!q9(z)&&(L["X-Goog-AuthUser"]=R);C&&(L.Authorization="Bearer "+C);z.X("enable_datasync_id_header_in_web_vss_pings")&&z.m1&&z.datasyncId&&(L["X-YouTube-DataSync-Id"]=z.datasyncId);Y||L["X-Goog-Visitor-Id"]||C||v||R?Q.withCredentials=!0:z.X("html5_send_cpn_with_options")&&bR2.test(N)&&(Q.withCredentials=!0)}Object.keys(L).length>0&&(Q.headers=L);Z&&(Q.onFinish=Z);return Object.keys(Q).length>1? Q:null}; X8m=function(N,z,v,R,C,Z,Y,Q){iQ()&&v.token&&(N=CX(N,{ctt:v.token,cttype:v.jw,mdx_environment:v.mdxEnvironment}));R.X("net_pings_low_priority")&&(z||(z={}),z.priority="low");Z||Q&&R.X("nwl_skip_retry")?(z==null?z={}:thY(N,R.X("html5_assert_cpn_with_regex")),Y?cd().sendAndWrite(N,z):cd().sendThenWrite(N,z,Q)):z?(thY(N,R.X("html5_assert_cpn_with_regex")),z3O(N,z)):g.Hd(N,C)}; ryv=function(N){for(var z=[],v=0;v0&&v>0&&!N.W&&N.Z<1E7)try{N.N=N.B({sampleInterval:z,maxBufferSize:v});var R;(R=N.N)==null||R.addEventListener("samplebufferfull",function(){return g.S(function(C){if(C.W==1)return g.k(C,N.stop(),2);qqU(N);g.fO(C)})})}catch(C){N.W=cyU(C.message)}}; al=function(N,z){var v,R;return!!((v=window.h5vcc)==null?0:(R=v.settings)==null?0:R.set(N,z))}; w8v=function(){var N,z,v,R=(N=window.h5vcc)==null?void 0:(z=N.settings)==null?void 0:(v=z.getPersistentSettingAsString)==null?void 0:v.call(z,"cpu_usage_tracker_intervals");if(R!=null){var C;N=(C=JSON.parse(R))!=null?C:[];C=N.filter(function(K){return K.type==="total"}).map(function(K){return K.seconds}); z=g.f(Mhv);for(v=z.next();!v.done;v=z.next())v=v.value,C.indexOf(v)===-1&&N.push({type:"total",seconds:v});var Z,Y;(Z=window.h5vcc)==null||(Y=Z.settings)==null||Y.set("cpu_usage_tracker_intervals_enabled",1);var Q,L;(Q=window.h5vcc)==null||(L=Q.settings)==null||L.set("cpu_usage_tracker_intervals",JSON.stringify(N))}}; Nov=function(){var N=window.H5vccPlatformService,z="";if(N&&N.has("dev.cobalt.coat.clientloginfo")&&(N=N.open("dev.cobalt.coat.clientloginfo",function(){}))){var v=N.send(new ArrayBuffer(0)); v&&(z=String.fromCharCode.apply(String,g.U(new Uint8Array(v))));N.close()}return z}; g.KF=function(N,z){g.H.call(this);var v=this;this.provider=N;this.logger=new g.Ry("qoe");this.V=new Map;this.sequenceNumber=1;this.PL=NaN;this.Hc="N";this.Y=this.K_=this.NV=this.Vp=this.W=0;this.Dx=this.BL=this.G=this.S8="";this.Ui=this.UT=NaN;this.J0=0;this.Fy=-1;this.c5=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.zE=this.isEmbargoed=this.Id=this.isOffline=this.isBuffering=!1;this.RP=[];this.J=null;this.A0=this.N=this.gW=this.L=!1;this.Z=-1;this.xT=!1;this.xH=new g.cn(this.Q3,750,this);this.nC= this.adCpn=this.qd=this.contentCpn="";this.adFormat=void 0;this.Bc=0;this.kJ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.gx=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.CV=!1;this.yh=NaN;this.tO=0;this.YJ=!1;this.Rd=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.UR=!1;this.Oi={xf:function(C){v.xf(C)}, oCT:function(){return v.B}, K8:function(){return v.contentCpn}, uKO:function(){return v.qd}, reportStats:function(){v.reportStats()}, M5d:function(){return v.V.get("cat")||[]}, Rt:function(C){return v.V.get(C)||[]}, s8o:function(){return v.V}, LFd:function(){return v.Rd}, GST:function(){return{adCpn:v.adCpn,nC:v.nC,adFormat:v.adFormat}}}; this.K0=this.provider.iS.X("html5_qoe_relaxed_reporting");var R=g.LM(this.provider.iS.experiments,"html5_qoe_proto_mock_length");R&&!QE.length&&(QE=ryv(R));g.b(this,this.xH);try{navigator.getBattery().then(function(C){v.J=C})}catch(C){}g.LF(this,0,"vps",["N"]); N.iS.LV()&&(this.tO=(0,g.I)(),this.yh=g.GU(function(){var C=(0,g.I)(),Z=C-v.tO;Z>500&&v.WL("vmlock",{diff:Z.toFixed()});v.tO=C},250)); N.kT.wu()&&z&&(this.Rd=z-Math.round(g.I4(N)*1E3));this.provider.videoData.Je&&(this.remoteControlMode=zKu[this.provider.videoData.Je]||0);this.provider.videoData.yj&&(z=cnm(this.provider.videoData.yj),z==null?0:z.length)&&(this.remoteConnectedDevices=z);if(N.iS.LV()||N.X("html5_log_cpu_info"))this.ET=new HR_,g.b(this,this.ET);z=g.LM(N.iS.experiments,"html5_js_self_profiler_sample_interval_ms");N=g.LM(N.iS.experiments,"html5_js_self_profiler_max_samples");z>0&&N>0&&(this.vL=new j_(z,N),g.b(this,this.vL))}; lN=function(N,z,v){var R=N.V.get(z);R?R.push(v):N.V.set(z,[v])}; g.LF=function(N,z,v,R){lN(N,v,z.toFixed(3)+":"+R.join(":"))}; v9m=function(N,z){var v=N.adCpn||N.provider.videoData.clientPlaybackNonce,R=N.provider.getCurrentTime(v);g.LF(N,z,"cmt",[R.toFixed(3)]);R=N.provider.F6(v);if(N.B&&R*1E3>N.B.h6+100&&N.B){var C=N.B;v=C.isAd;R=R*1E3-C.h6;N.XE=z*1E3-C.pHo-R-C.Ad8;C=(0,g.I)()-R;z=N.XE;R=N.provider.videoData;var Z=R.isAd();if(v||Z){Z=(v?"ad":"video")+"_to_"+(Z?"ad":"video");var Y={};R.G&&(Y.cttAuthInfo={token:R.G,videoId:R.videoId});Y.startTime=C-z;DT(Z,Y);g.oc({targetVideoId:R.videoId,targetCpn:R.clientPlaybackNonce}, Z);H_("pbs",C,Z)}else C=N.provider.kT.M2(),C.G!==R.clientPlaybackNonce?(C.B=R.clientPlaybackNonce,C.W=z):R.YG()||g.PN(new g.XS("CSI timing logged before gllat",{cpn:R.clientPlaybackNonce}));N.WL("gllat",{l:N.XE.toFixed(),prev_ad:+v});delete N.B}}; W1=function(N,z){z=z===void 0?NaN:z;z=z>=0?z:g.I4(N.provider);var v=N.provider.kT.oe(),R=v.wc-(N.UT||0);R>0&&g.LF(N,z,"bwm",[R,(v.eq-(N.Ui||0)).toFixed(3)]);isNaN(N.UT)&&v.wc&&N.isOffline&&N.xf(!1);N.UT=v.wc;N.Ui=v.eq;isNaN(v.bandwidthEstimate)||g.LF(N,z,"bwe",[v.bandwidthEstimate.toFixed(0)]);N.provider.iS.LV()&&Object.keys(v.V).length!==0&&N.WL("bwinfo",v.V);if(N.provider.iS.LV()||N.provider.iS.X("html5_log_meminfo"))R=Ghx(N.provider.iS.X("html5_enable_chrobalt_memory_apis")),Object.values(R).some(function(Z){return Z!== void 0})&&N.WL("meminfo",R); if(N.provider.iS.LV()||N.provider.iS.X("html5_log_cpu_info")){var C;(R=(C=N.ET)==null?void 0:oI7(C))&&Object.values(R).some(function(Z){return Z!=null})&&N.WL("cpuinfo",R)}N.vL&&N.WL("jsprof",N.vL.flush()); N.J&&g.LF(N,z,"bat",[N.J.level,N.J.charging?"1":"0"]);C=N.provider.kT.getVisibilityState();N.Fy!==C&&(g.LF(N,z,"vis",[C]),N.Fy=C);v9m(N,z);(C=RK2(N.provider))&&C!==N.J0&&(g.LF(N,z,"conn",[C]),N.J0=C);CN7(N,z,v)}; CN7=function(N,z,v){if(!isNaN(v.Ny)){var R=v.Ny;v.W96E3&&(new g.cn(N.reportStats,0,N)).start()}}; iFI=function(N){N.provider.videoData.o4&&Gk(N,"prefetch");N.provider.videoData.YJ&&N.WL("reload",{r:N.provider.videoData.reloadReason,ct:N.provider.videoData.YJ});N.provider.videoData.kJ&&Gk(N,"monitor");N.provider.videoData.isLivePlayback&&Gk(N,"live");N9&&Gk(N,"streaming");N.provider.videoData.Je&&N.WL("ctrl",{mode:N.provider.videoData.Je},!0);if(N.provider.videoData.yj){var z=N.provider.videoData.yj.replace(/,/g,"_");N.WL("ytp",{type:z},!0)}N.provider.videoData.pH&&(z=N.provider.videoData.pH.replace(/,/g, "."),N.WL("ytrexp",{ids:z},!0));var v=N.provider.videoData;z=N.provider.iS.X("enable_white_noise")||N.provider.iS.X("enable_webgl_noop");v=g.x6(v)||g.UY(v)||g.B0(v)||g.Af(v);(z||v)&&(z=(0,g.x9)())&&N.V.set("gpu",[z]);bM(N.provider.videoData)&&g.LF(N,g.I4(N.provider),"dt",["1"]);N.provider.iS.LV()&&(z=(0,g.I)()-N.provider.iS.MF,N.WL("playerage",{secs:Math.pow(1.6,Math.round(Math.log(z/1E3)/Math.log(1.6))).toFixed()}));N.N=!0;N.PL=g.GU(function(){N.reportStats()},1E4)}; aZ7=function(N,z,v){var R=g.I4(N.provider);jlO(N,R,z,0,v);W1(N,R);Yt_(N)}; jlO=function(N,z,v,R,C){var Z=N.provider.iS.V.cbrver;N.provider.iS.V.cbr==="Chrome"&&/^96[.]/.test(Z)&&v==="net.badstatus"&&/rc\.500/.test(C)&&Ql2(N,3);N.provider.iS.X("html5_use_ump")&&/b248180278/.test(C)&&Ql2(N,4);Z=N.provider.getCurrentTime(N.adCpn||N.provider.videoData.clientPlaybackNonce);R=R===1?"fatal":"";v=[v,R,Z.toFixed(3)];R&&(C+=";a6s."+aN());C&&v.push(LPU(C));g.LF(N,z,"error",v);N.N=!0}; w0u=function(N,z){var v=g.I4(N.provider);if(!N.provider.iS.experiments.j8("html5_refactor_sabr_video_format_selection_logging")||z.V.id!==N.S8){var R=[z.V.id,z.W,N.S8,z.reason];z.token&&R.push(z.token);g.LF(N,v,"vfs",R);N.S8=z.V.id;R=N.provider.kT.getPlayerSize();if(R.width>0&&R.height>0){R=[Math.round(R.width),Math.round(R.height)];var C=g.uj();C>1&&R.push(C);g.LF(N,v,"view",R)}N.gW||(N.provider.iS.LV()&&Gk(N,"rqs2"),N.provider.videoData.V&&e$(N.provider.videoData.V)&&N.V.set("preload",["1"]));N.gW= !0;N.N=!0}z.reason==="m"&&++N.Bc===100&&Ql2(N,2);g.LF(N,v,"vps",[N.Hc]);N.K0||N.reportStats(v)}; KP2=function(N){N.Z>=0||(N.provider.iS.s9||N.provider.kT.getVisibilityState()!==3?N.Z=g.I4(N.provider):N.xT=!0)}; MM_=function(N,z,v){if(N.provider.iS.experiments.j8("html5_refactor_sabr_audio_format_selection_logging")){z=v.V;var R=[z.audio&&z.video?z.FA?z.FA:"":z.id];z.u$&&z.u$.id&&R.push(z.u$.id);z=R.join(";");z!==N.G&&(R=[z,N.G,v.reason],v.token&&R.push(v.token),g.LF(N,g.I4(N.provider),"afs",R),N.G=z)}else v.V.id!==N.G&&(R=[v.V.id,N.G,v.reason],v.token&&R.push(v.token),g.LF(N,z,"afs",R),N.G=v.V.id)}; Gk=function(N,z){lN(N,"cat",z)}; e_=function(N,z,v,R,C,Z){var Y=g.I4(N.provider);v!==1&&v!==3&&v!==5||g.LF(N,Y,"vps",[N.Hc]);lN(N,"xvt","t."+Y.toFixed(3)+";m."+Z.toFixed(3)+";g."+z+";tt."+v+";np.0;c."+R+";d."+C)}; Ql2=function(N,z){N.A0||(lN(N,"fcnz",""+z),N.A0=!0)}; LPU=function(N){/[^a-zA-Z0-9;.!_-]/.test(N)&&(N=N.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return N}; lZb=function(N){this.provider=N;this.L=!1;this.V=0;this.N=-1;this.GS=NaN;this.Z=0;this.segments=[];this.G=this.B=0;this.previouslyEnded=!1;this.J=this.provider.kT.getVolume();this.Y=this.provider.kT.isMuted()?1:0;this.W=JS(this.provider)}; yE=function(N){N.W.startTime=N.Z;N.W.endTime=N.V;var z=!1;N.segments.length&&g.lW(N.segments).isEmpty()?(N.segments[N.segments.length-1].previouslyEnded&&(N.W.previouslyEnded=!0),N.segments[N.segments.length-1]=N.W,z=!0):N.segments.length&&N.W.isEmpty()||(N.segments.push(N.W),z=!0);z?N.W.endTime===0&&(N.previouslyEnded=!1):N.W.previouslyEnded&&(N.previouslyEnded=!0);N.B+=N.V-N.Z;N.W=JS(N.provider);N.W.previouslyEnded=N.previouslyEnded;N.previouslyEnded=!1;N.Z=N.V}; Gkx=function(N){WPv(N);N.G=g.GU(function(){N.update()},100); N.GS=g.I4(N.provider);N.W=JS(N.provider)}; WPv=function(N){g.e5(N.G);N.G=NaN}; xwm=function(N,z,v){v-=N.GS;return z===N.V&&v>.5}; eKY=function(N,z,v,R){this.iS=z;this.yh=v;this.segments=[];this.experimentIds=[];this.vL=this.UR=this.isFinal=this.delayThresholdMet=this.CV=this.c5=this.autoplay=this.autonav=!1;this.Dx="yt";this.G=[];this.L=this.J=null;this.sendVisitorIdHeader=this.xT=!1;this.Y=this.pageId="";this.B=v==="watchtime";this.Z=v==="playback";this.K0=v==="atr";this.HH=v==="engage";this.sendVisitorIdHeader=!1;this.uri=this.K0?"/api/stats/"+v:"//"+z.As+"/api/stats/"+v;R&&(this.UR=R.fs,R.rtn&&(this.L=R.rtn),this.B?(this.playerState= R.state,R.rti>0&&(this.J=R.rti)):(this.s9=R.mos,this.L5=R.volume,R.at&&(this.adType=R.at)),R.autonav&&(this.autonav=R.autonav),R.inview!=null&&(this.Ui=R.inview),R.size&&(this.J0=R.size),R.playerwidth&&(this.playerWidth=R.playerwidth),R.playerheight&&(this.playerHeight=R.playerheight));this.gx=g.vZ(z.V);this.Y=zx(z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.YJ=g.vZ(z.CV);this.p5=z.Dx;this.experimentIds=Viu(z.experiments);this.S8=z.gx;this.Dx=z.qd;this.region= z.region;this.userAge=z.userAge;this.kJ=z.w$;this.xH=mB();this.sendVisitorIdHeader=z.sendVisitorIdHeader;this.Rd=z.X("vss_pings_using_networkless")||z.X("kevlar_woffle");this.BH=z.X("vss_final_ping_send_and_write");this.Id=z.X("vss_use_send_and_write");this.pageId=z.pageId;this.MF=z.X("vss_playback_use_send_and_write");z.livingRoomAppMode&&(this.livingRoomAppMode=z.livingRoomAppMode);this.ZT=z.N&&z.X("embeds_append_synth_ch_headers");g.Uu(z)&&(this.BL=z.K0);g.as(g.Eu(z))&&this.G.push(1);this.accessToken= g.hf(N);N.O_[this.yh]?this.N=N.O_[this.yh]:N.O_.playback&&(this.N=N.O_.playback);this.adFormat=N.adFormat;this.adQueryId=N.adQueryId;this.autoplay=Jsf(N);this.Z&&(this.c5=N.mU&&P0(N)==="adunit"?!0:!1);this.autonav=N.isAutonav||this.autonav;this.contentVideoId=SM(N);this.clientPlaybackNonce=N.clientPlaybackNonce;this.CV=N.hd;N.G&&(this.Vp=N.G,this.zE=N.Jk);N.mdxEnvironment&&(this.mdxEnvironment=N.mdxEnvironment);this.V=N.Dx;this.A0=N.A0;N.W&&(this.RP=N.W.itag,N.N&&N.N.itag!==this.RP&&(this.gW=N.N.itag)); N.V&&e$(N.V)&&(this.offlineDownloadUserChoice="1");this.eventLabel=P0(N);this.vL=N.X6?!1:N.g$;this.Bc=N.GO;if(z=dw(N))this.X6=z;this.er=N.SH;this.partnerId=N.partnerId;this.eventId=N.eventId;this.playlistId=N.Y9||N.playlistId;this.WB=N.WB;this.Je=N.Je;this.yj=N.yj;this.FH=N.FH;this.subscribed=N.subscribed;this.videoId=N.videoId;this.videoMetadata=N.videoMetadata;this.visitorData=N.visitorData;this.osid=N.osid;this.zV=N.zV;this.referrer=N.referrer;this.XH=N.Ig||N.XH;this.ET=N.Bq;this.QU=N.QU;this.userGenderAge= N.userGenderAge;this.K7=N.K7;this.embedsRct=N.embedsRct;this.embedsRctn=N.embedsRctn;g.Uu(this.iS)&&N.mutedAutoplay&&(N.mutedAutoplayDurationMode===2&&N.limitedPlaybackDurationInSeconds===0&&N.endSeconds===0?this.G.push(7):this.G.push(2));N.isEmbedsShortsMode(new g.kQ(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.G.push(3);g.vX(N)&&this.G.push(4);this.UT=N.UM;N.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=N.compositeLiveIngestionOffsetToken)}; JS_=function(N,z){var v=N.sendVisitorIdHeader?N.visitorData:void 0;return g.CW(N.iS,N.accessToken).then(function(R){return IU2(N.uri,N.iS,N.pageId,v,R,z,N.ZT)})}; dwO=function(N,z){return function(){N.iS.X("html5_simplify_pings")?(N.V=N.tO,N.Fy=z(),N.xH=0,N.send()):JS_(N).then(function(v){var R=ySK(N);R.cmt=R.len;R.lact="0";var C=z().toFixed(3);R.rt=Number(C).toString();R=g.kS(N.uri,R);N.iS.X("vss_through_gel_double")&&fZu(R);N.Rd?(v==null&&(v={}),N.Id?cd().sendAndWrite(R,v):cd().sendThenWrite(R,v)):v?g.Fb(R,v):g.Hd(R)})}}; ySK=function(N){var z={ns:N.Dx,el:N.eventLabel,cpn:N.clientPlaybackNonce,ver:2,cmt:N.W(N.V),fmt:N.RP,fs:N.UR?"1":"0",rt:N.W(N.Fy),adformat:N.adFormat,content_v:N.contentVideoId,euri:N.p5,lact:N.xH,live:N.X6,cl:(752956574).toString(),mos:N.s9,state:N.playerState,volume:N.L5};N.subscribed&&(z.subscribed="1");Object.assign(z,N.gx);N.Y==="all"?Object.assign(z,N.YJ):N.Y==="once"&&N.Z&&Object.assign(z,N.YJ);N.autoplay&&(z.autoplay="1");N.c5&&(z.sautoplay="1");N.CV&&(z.dni="1");!N.B&&N.BL&&(z.epm=slm[N.BL]); N.isFinal&&(z["final"]="1");N.vL&&(z.splay="1");N.A0&&(z.delay=N.A0);N.S8&&(z.hl=N.S8);N.region&&(z.cr=N.region);N.userGenderAge&&(z.uga=N.userGenderAge);N.userAge!==void 0&&N.kJ&&(z.uga=N.kJ+N.userAge);N.tO!==void 0&&(z.len=N.W(N.tO));!N.B&&N.experimentIds.length>0&&(z.fexp=N.experimentIds.toString());N.L!==null&&(z.rtn=N.W(N.L));N.XH&&(z.feature=N.XH);N.Je&&(z.ctrl=N.Je);N.yj&&(z.ytr=N.yj);N.gW&&(z.afmt=N.gW);N.offlineDownloadUserChoice&&(z.ODUC=N.offlineDownloadUserChoice);N.qd&&(z.lio=N.W(N.qd)); N.B?(z.idpj=N.Bc,z.ldpj=N.er,N.delayThresholdMet&&(z.dtm="1"),N.J!=null&&(z.rti=N.W(N.J)),N.K7&&(z.ald=N.K7),N.compositeLiveIngestionOffsetToken&&(z.clio=N.compositeLiveIngestionOffsetToken)):N.adType!==void 0&&(z.at=N.adType);N.J0&&(N.Z||N.B)&&(z.size=N.J0);N.Z&&N.G.length&&(z.pbstyle=N.G.join(","));N.Ui!=null&&(N.Z||N.B)&&(z.inview=N.W(N.Ui));N.B&&(z.volume=fF(N,g.OL(N.segments,function(R){return R.volume})),z.st=fF(N,g.OL(N.segments,function(R){return R.startTime})),z.et=fF(N,g.OL(N.segments,function(R){return R.endTime})), Mj(N.segments,function(R){return R.playbackRate!==1})&&(z.rate=fF(N,g.OL(N.segments,function(R){return R.playbackRate}))),Mj(N.segments,function(R){return R.V!=="-"})&&(z.als=g.OL(N.segments,function(R){return R.V}).join(",")),Mj(N.segments,function(R){return R.previouslyEnded})&&(z.pe=g.OL(N.segments,function(R){return""+ +R.previouslyEnded}).join(","))); z.muted=fF(N,g.OL(N.segments,function(R){return R.muted?1:0})); Mj(N.segments,function(R){return R.visibilityState!==0})&&(z.vis=fF(N,g.OL(N.segments,function(R){return R.visibilityState}))); Mj(N.segments,function(R){return R.connectionType!==0})&&(z.conn=fF(N,g.OL(N.segments,function(R){return R.connectionType}))); Mj(N.segments,function(R){return R.W!==0})&&(z.blo=fF(N,g.OL(N.segments,function(R){return R.W}))); Mj(N.segments,function(R){return!!R.Z})&&(z.blo=g.OL(N.segments,function(R){return R.Z}).join(",")); Mj(N.segments,function(R){return!!R.compositeLiveStatusToken})&&(z.cbs=g.OL(N.segments,function(R){return R.compositeLiveStatusToken}).join(",")); Mj(N.segments,function(R){return R.N!=="-"})&&(z.cc=g.OL(N.segments,function(R){return R.N}).join(",")); Mj(N.segments,function(R){return R.clipId!=="-"})&&(z.clipid=g.OL(N.segments,function(R){return R.clipId}).join(",")); if(Mj(N.segments,function(R){return!!R.audioId})){var v="au"; N.Z&&(v="au_d");z[v]=g.OL(N.segments,function(R){return R.audioId}).join(",")}iQ()&&N.Vp&&(z.ctt=N.Vp,z.cttype=N.zE,z.mdx_environment=N.mdxEnvironment); N.HH&&(z.etype=N.PL!==void 0?N.PL:0);N.ET&&(z.uoo=N.ET);N.livingRoomAppMode&&N.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(z.clram=Tob[N.livingRoomAppMode]||N.livingRoomAppMode);N.N?FPU(N,z):(z.docid=N.videoId,z.referrer=N.referrer,z.ei=N.eventId,z.of=N.zV,z.osid=N.osid,z.vm=N.videoMetadata,N.adQueryId&&(z.aqi=N.adQueryId),N.autonav&&(z.autonav="1"),N.playlistId&&(z.list=N.playlistId),N.FH&&(z.ssrt="1"),N.QU&&(z.upt=N.QU));N.Z&&(N.embedsRct&&(z.rct=N.embedsRct),N.embedsRctn&&(z.rctn= N.embedsRctn),N.compositeLiveIngestionOffsetToken&&(z.clio=N.compositeLiveIngestionOffsetToken));N.UT&&(z.host_cpn=N.UT);return z}; FPU=function(N,z){if(z&&N.N){var v=new Set(["q","feature","mos"]),R=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),C=new Set(["aqi","autonav","list","ssrt","upt"]);N.N.ns==="3pp"&&(z.ns="3pp");for(var Z=g.f(Object.keys(N.N)),Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,R.has(Y)||v.has(Y)||C.has(Y)&&!N.N[Y]||(z[Y]=N.N[Y])}}; fF=function(N,z){return g.OL(z,N.W).join(",")}; fZu=function(N){N.indexOf("watchtime")!==-1&&g.aX("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:N}})}; n92=function(N,z){N.attestationResponse&&JS_(N).then(function(v){v=v||{};v.method="POST";v.postParams={atr:N.attestationResponse};N.Rd?N.Id?cd().sendAndWrite(z,v):cd().sendThenWrite(z,v):g.Fb(z,v)})}; Tk=function(N){g.H.call(this);this.provider=N;this.G="paused";this.B=NaN;this.L=[10,10,10,40];this.J=this.Y=0;this.Vp=this.K0=this.PL=this.qd=this.Z=!1;this.W=this.N=NaN;this.logger=new g.Ry("vss");this.V=new lZb(N)}; AS7=function(N){if(!N.Z){N.provider.videoData.zy===16623&&g.PN(Error("Playback for EmbedPage"));var z=F6(N,"playback");N.L=mw_(N);Gkx(N.V);z.L=nF(N);N.W>0&&(z.V-=N.W);z.send();if(N.provider.videoData.gZ){z=N.provider.iS;var v=N.provider.videoData,R={html5:"1",video_id:v.videoId,cpn:v.clientPlaybackNonce,ei:v.eventId,ptk:v.gZ,oid:v.tL,ptchn:v.d3,pltype:v.BI,content_v:SM(v)};v.Qo&&Object.assign(R,{m:v.Qo});z=g.kS(z.bL+"ptracking",R);$wf(N,z)}N.provider.videoData.A0||(Uwu(N),BoO(N),N.TF());N.Z=!0;N= N.V;N.V=N.F6();N.GS=g.I4(N.provider);!(N.Z===0&&N.V<5)&&N.V-N.Z>2&&(N.Z=N.V);N.L=!0}}; mw_=function(N){var z=N.provider.videoData.GO,v=N.provider.videoData.SH,R=[10+z,10,10,40+v-z,40],C,Z=(C=N.provider.videoData.getPlayerResponse())==null?void 0:C.playbackTracking,Y=Z==null?void 0:Z.videostatsScheduledFlushWalltimeSeconds;C=Z==null?void 0:Z.videostatsDefaultFlushIntervalSeconds;if(!(Y&&Y.length>0&&C))return N.logger.info("Missing valid scheduled pings config "+Y+" "+C),R;z=[Y[0]+z].concat(g.U(Y.slice(1).map(function(Q,L){return Q-Y[L]})),[C+v-z, C]);return z.some(function(Q){return Q<0})?(N.logger.V(347111855,"Neg vss scheduled pings "+Y+" "+C),R):z}; nF=function(N,z){z=z===void 0?NaN:z;var v=g.I4(N.provider);z=isNaN(z)?v:z;z=Math.ceil(z);var R=N.L[N.Y];N.Y+11E3;!(Z.length>1)&&Z[0].isEmpty()||Q||(Y.L=nF(N,C));Y.send();N.J++}},(C-v)*1E3); return N.N=C}; mP=function(N){g.xA(N.B);N.B=NaN}; g9b=function(N){N.V.update();N=N.V;N.segments.length&&N.V===N.Z||yE(N);var z=N.segments;N.segments=[];return z}; F6=function(N,z){var v=kk2(N.provider);Object.assign(v,{state:N.G});z=new eKY(N.provider.videoData,N.provider.iS,z,v);z.V=N.provider.kT.F6();v=N.provider.videoData.clientPlaybackNonce;z.V=N.provider.kT.WY(v);N.provider.videoData.isLivePlayback||(z.tO=N.provider.kT.getDuration(v));N.provider.videoData.V&&(v=N.provider.videoData.V.LG(z.V))&&(z.qd=v-z.V,N.provider.iS.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&H0(N.provider.videoData)&&(z.V+=N.provider.kT.fV(),z.qd-=N.provider.kT.fV()));z.Fy=g.I4(N.provider); z.segments=[JS(N.provider)];return z}; p1x=function(N,z){var v=F6(N,"watchtime");PNI(N)&&(v.delayThresholdMet=!0,N.PL=!0);if(N.W>0){for(var R=g.f(z),C=R.next();!C.done;C=R.next())C=C.value,C.startTime-=N.W,C.endTime-=N.W;v.V-=N.W}else v.V=N.V.V;v.segments=z;return v}; $9=function(N,z){var v=V_m(N,!isNaN(N.N));z&&(N.N=NaN);return v}; V_m=function(N,z){var v=p1x(N,g9b(N));!isNaN(N.N)&&z&&(v.J=N.N);return v}; PNI=function(N){var z;if(z=N.provider.videoData.isLoaded()&&N.provider.videoData.A0&&N.Z&&!N.PL)z=N.V,z=z.B+z.F6()-z.Z>=N.provider.videoData.A0;return!!z}; Uwu=function(N){N.provider.videoData.youtubeRemarketingUrl&&!N.K0&&($wf(N,N.provider.videoData.youtubeRemarketingUrl),N.K0=!0)}; BoO=function(N){N.provider.videoData.googleRemarketingUrl&&!N.Vp&&($wf(N,N.provider.videoData.googleRemarketingUrl),N.Vp=!0)}; StY=function(N){if(!N.HL()&&N.Z){N.G="paused";var z=$9(N);z.isFinal=!0;z.send();N.dispose()}}; E9u=function(N,z){if(!N.HL())if(g.u(z.state,2)||g.u(z.state,512)){if(N.G="paused",g.WW(z,2)||g.WW(z,512))g.WW(z,2)&&(N.V.previouslyEnded=!0),N.Z&&(mP(N),$9(N).send(),N.N=NaN)}else if(g.u(z.state,8)){N.G="playing";var v=N.Z&&isNaN(N.B)?nF(N):NaN;if(!isNaN(v)&&(l4(z,64)<0||l4(z,512)<0)){var R=V_m(N,!1);R.L=v;R.send()}g.WW(z,16)&&z.state.seekSource===58&&(N.V.previouslyEnded=!0)}else N.G="paused"}; hK_=function(N,z,v){if(!N.qd){v||(v=F6(N,"atr"));v.attestationResponse=z;try{v.send()}catch(R){if(R.message!=="Unknown Error")throw R;}N.qd=!0}}; $wf=function(N,z){var v=N.provider.iS;g.CW(N.provider.iS,g.hf(N.provider.videoData)).then(function(R){var C=N.provider.iS.pageId,Z=N.provider.iS.sendVisitorIdHeader?N.provider.videoData.visitorData:void 0,Y=N.provider.iS.X("vss_pings_using_networkless")||N.provider.iS.X("kevlar_woffle"),Q=N.provider.iS.X("allow_skip_networkless");R=IU2(z,v,C,Z,R);X8m(z,R,{token:N.provider.videoData.G,jw:N.provider.videoData.Jk,mdxEnvironment:N.provider.videoData.mdxEnvironment},v,void 0,Y&&!Q,!1,!0)})}; HFU=function(){this.endTime=this.startTime=-1;this.N="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.W=0;this.compositeLiveStatusToken=this.Z=void 0;this.volume=this.connectionType=0;this.muted=!1;this.V=this.clipId="-";this.previouslyEnded=!1}; Ut=function(N,z,v){this.videoData=N;this.iS=z;this.kT=v;this.V=void 0}; g.I4=function(N){return o9f(N)()}; o9f=function(N){if(!N.V){var z=g.iW(function(R){var C=(0,g.I)();R&&C<=631152E6&&(N.kT.WL("ytnerror",{issue:28799967,value:""+C}),C=(new Date).getTime()+2);return C},N.iS.X("html5_validate_yt_now")),v=z(); N.V=function(){return Math.round(z()-v)/1E3}; N.kT.DA()}return N.V}; kk2=function(N){var z=N.kT.j_()||{};z.fs=N.kT.e5();z.volume=N.kT.getVolume();z.muted=N.kT.isMuted()?1:0;z.mos=z.muted;z.clipid=N.kT.us();var v;z.playerheight=((v=N.kT.getPlayerSize())==null?void 0:v.height)||0;var R;z.playerwidth=((R=N.kT.getPlayerSize())==null?void 0:R.width)||0;N=N.videoData;v={};N.W&&(v.fmt=N.W.itag,N.N&&(N.yh?N.N.itag!==N.W.itag:N.N.itag!=N.W.itag)&&(v.afmt=N.N.itag));v.ei=N.eventId;v.list=N.playlistId;v.cpn=N.clientPlaybackNonce;N.videoId&&(v.v=N.videoId);N.wG&&(v.infringe=1); (N.X6?0:N.g$)&&(v.splay=1);(R=dw(N))&&(v.live=R);N.mU&&(v.sautoplay=1);N.SI&&(v.autoplay=1);N.WB&&(v.sdetail=N.WB);N.partnerId&&(v.partnerid=N.partnerId);N.osid&&(v.osid=N.osid);N.ZS&&(v.cc=g.bCx(N.ZS));return Object.assign(z,v)}; RK2=function(N){var z=GXI();if(z)return DwI[z]||DwI.other;if(g.nM(N.iS)){N=navigator.userAgent;if(/[Ww]ireless[)]/.test(N))return 3;if(/[Ww]ired[)]/.test(N))return 30}return 0}; JS=function(N){var z=new HFU,v;z.N=((v=kk2(N).cc)==null?void 0:v.toString())||"-";z.playbackRate=N.kT.getPlaybackRate();v=N.kT.getVisibilityState();v!==0&&(z.visibilityState=v);N.iS.xT&&(z.W=1);z.Z=N.videoData.n9;z.compositeLiveStatusToken=N.videoData.compositeLiveStatusToken;v=N.kT.getAudioTrack();v.u$&&v.u$.id&&v.u$.id!=="und"&&(z.audioId=v.u$.id);z.connectionType=RK2(N);z.volume=N.kT.getVolume();z.muted=N.kT.isMuted();z.clipId=N.kT.us()||"-";z.V=N.videoData.LA||"-";return z}; g.B1=function(N,z){g.H.call(this);var v=this;this.provider=N;this.N=!1;this.Z=new Map;this.Hc=new g.Ro;this.Oi={b7d:function(){return v.qoe}, Xm0:function(){return v.V}, QR1:function(){return v.W}}; this.provider.videoData.Y8()&&!this.provider.videoData.AR&&(this.V=new Tk(this.provider),this.V.W=this.provider.videoData.ZU/1E3,g.b(this,this.V),this.qoe=new g.KF(this.provider,z),g.b(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.R4=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.R4,this.V));if(N.iS.playerCanaryState==="canary"||N.iS.playerCanaryState==="holdback")this.W=new iN(this.provider),g.b(this,this.W)}; AS=function(N){return g.I4(N.provider)}; go=function(N){N.W&&VhI(N.W);N.qoe&&KP2(N.qoe)}; bFf=function(N){if(N.qoe){N=N.qoe;for(var z=N.provider.videoData,v=N.provider.iS,R=g.f(v.B2),C=R.next();!C.done;C=R.next())Gk(N,C.value);if(N.provider.X("html5_enable_qoe_cat_list"))for(R=g.f(z.MQ),C=R.next();!C.done;C=R.next())Gk(N,C.value);else z.B2&&Gk(N,N.provider.videoData.B2);z.Hb()&&(R=z.V,Ke(z)&&Gk(N,"manifestless"),R&&Ug(R)&&Gk(N,"live-segment-"+Ug(R).toFixed(1)));iM(z)?Gk(N,"sabr"):N.O3(Gh(z));if(oD(z)||z.Lb())z.Lb()&&Gk(N,"ssa"),Gk(N,"lifa");H0(z)&&Gk(N,"cdm");z.gatewayExperimentGroup&& (R=z.gatewayExperimentGroup,R==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?R="spkadtrt":R==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(R="spkadctrl"),Gk(N,R));v.qd!=="yt"&&N.V.set("len",[z.lengthSeconds.toFixed(2)]);z.cotn&&!bM(z)&&N.xf(!0);v.LV()&&(z=Nov())&&N.WL("cblt",{m:z});if(v.X("html5_log_screen_diagonal")){v=N.WL;var Z;z=((Z=window.H5vccScreen)==null?0:Z.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;v.call(N,"cbltdiag",{v:z})}}}; t_K=function(N){if(N.provider.kT.wu()){if(N.N)return;N.N=!0}N.V&&AS7(N.V);if(N.W){N=N.W;var z=g.I4(N.provider);N.V<0&&(N.V=z,N.delay.start());N.W=z;N.N=z}}; OFv=function(N,z){N.V&&(N=N.V,z===58?N.V.update():N.Z&&(mP(N),$9(N).send(),N.N=NaN))}; IZu=function(N,z){if(g.WW(z,1024)||g.WW(z,512)||g.WW(z,4)){if(N.W){var v=N.W;v.W>=0||(v.V=-1,v.delay.stop())}N.qoe&&(v=N.qoe,v.L||(v.Z=-1))}if(N.provider.videoData.enableServerStitchedDai&&N.R4){var R;(R=N.Z.get(N.R4))==null||E9u(R,z)}else N.V&&E9u(N.V,z);if(N.qoe){R=N.qoe;v=z.state;var C=g.I4(R.provider),Z=R.getPlayerState(v),Y=v.seekSource||void 0;if(Z!==R.Hc){R.K0||C= 10&&R.playTimeSecs<=180&&(R.V.set("qoealert",["1"]),R.zE=!0)),Z!=="B"||R.Hc!=="PL"&&R.Hc!=="PB"||(R.isBuffering=!0),R.W=C);R.Hc==="PL"&&(Z==="B"||Z==="S")||R.provider.iS.LV()?W1(R,C):(R.CV||Z!=="PL"||(R.CV=!0,CN7(R,C,R.provider.kT.oe())),v9m(R,C));Z==="PL"&&g.qv(R.xH);var Q=[Z];Z==="S"&&Y&&Q.push("ss."+Y);g.LF(R,C,"vps",Q);R.Hc=Z;R.Vp=C;R.W=C;R.N=!0}Z=v.BP;g.u(v,128)&&Z&&(Z.ly=Z.ly||"",jlO(R,C,Z.errorCode,Z.mO,Z.ly));(g.u(v,2)||g.u(v,128))&&R.reportStats(C);v.isPlaying()&&!R.L&&(R.Z>=0&&R.V.set("user_intent", [R.Z.toString()]),R.L=!0);Yt_(R)}N.W&&(R=N.W,SqY(R),R.playerState=z.state,R.W>=0&&g.WW(z,16)&&R.seekCount++,z.state.isError()&&R.send());N.provider.kT.wu()&&(N.Hc=z.state)}; X1x=function(N){N.W&&N.W.send();if(N.qoe){var z=N.qoe;if(z.N){z.Hc==="PL"&&(z.Hc="N");var v=g.I4(z.provider);g.LF(z,v,"vps",[z.Hc]);z.L||(z.Z>=0&&z.V.set("user_intent",[z.Z.toString()]),z.L=!0);z.provider.iS.LV()&&z.WL("finalized",{});z.Id=!0;z.reportStats(v)}}if(N.provider.videoData.enableServerStitchedDai)for(z=g.f(N.Z.values()),v=z.next();!v.done;v=z.next())StY(v.value);else N.V&&StY(N.V);N.dispose()}; rSK=function(N,z){N.V&&hK_(N.V,z)}; u6u=function(N){if(!N.V)return null;var z=F6(N.V,"atr");return function(v){N.V&&hK_(N.V,v,z)}}; cSm=function(N,z,v,R){v.adFormat=v.s9;var C=z.kT;z=new Tk(new Ut(v,z.iS,{getDuration:function(){return v.lengthSeconds}, getCurrentTime:function(){return C.getCurrentTime()}, F6:function(){return C.F6()}, WY:function(){return C.WY()}, wu:function(){return C.wu()}, oe:function(){return C.oe()}, getPlayerSize:function(){return C.getPlayerSize()}, getAudioTrack:function(){return v.getAudioTrack()}, getPlaybackRate:function(){return C.getPlaybackRate()}, WU:function(){return C.WU()}, getVisibilityState:function(){return C.getVisibilityState()}, M2:function(){return C.M2()}, j_:function(){return C.j_()}, getVolume:function(){return C.getVolume()}, isMuted:function(){return C.isMuted()}, e5:function(){return C.e5()}, us:function(){return C.us()}, getProximaLatencyPreference:function(){return C.getProximaLatencyPreference()}, DA:function(){C.DA()}, WL:function(Z,Y){C.WL(Z,Y)}, vC:function(){return C.vC()}, fV:function(){return C.fV()}})); z.W=R;g.b(N,z);return z}; qtu=function(){this.Ny=0;this.Z=this.eq=this.wc=this.W=NaN;this.V={};this.bandwidthEstimate=NaN}; pF=function(N,z,v){g.H.call(this);var R=this;this.iS=N;this.kT=z;this.W=v;this.V=new Map;this.R4="";this.Oi={S7:function(){return Array.from(R.V.keys())}}}; M_2=function(){this.V=g.vA;this.array=[]}; NXK=function(N,z,v){var R=[];for(z=w1u(N,z);zv)break}return R}; zwY=function(N,z){var v=[];N=g.f(N.array);for(var R=N.next();!R.done&&!(R=R.value,R.contains(z)&&v.push(R),R.start>z);R=N.next());return v}; v2v=function(N){return N.array.slice(w1u(N,0x7ffffffffffff),N.array.length)}; w1u=function(N,z){N=k5(N.array,function(v){return z-v.start||1}); return N<0?-(N+1):N}; Rwx=function(N,z){var v=NaN;N=g.f(N.array);for(var R=N.next();!R.done;R=N.next())if(R=R.value,R.contains(z)&&(isNaN(v)||R.endz&&(isNaN(v)||R.startN.mediaTime+N.B&&z1)N.N=!0;if((C===void 0?0:C)||isNaN(N.W))N.W=z;if(N.V)z!==N.mediaTime&&(N.V=!1);else if(z>0&&N.mediaTime===z){C=1500;if(N.iS.X("html5_buffer_underrun_transition_fix")){C=g.LM(N.iS.experiments,"html5_min_playback_advance_for_steady_state_secs");var Z=g.LM(N.iS.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");C=C>0&&Z>0&&Math.abs(z-N.W)(R||!N.N?C:400)}N.mediaTime=z;N.Z=v;return!1}; a5_=function(N,z){this.videoData=N;this.V=z}; Q7m=function(N,z,v){return z.VI(v).then(function(){return gm(new a5_(z,z.Z))},function(R){R instanceof Error&&g.PN(R); var C=Ax('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Z=p_('audio/mp4; codecs="mp4a.40.2"'),Y=C||Z,Q=z.isLivePlayback&&!g.Cu(N.B,!0);R="fmt.noneavailable";Q?R="html5.unsupportedlive":Y||(R="html5.missingapi");Y=Q||!Y?2:1;C={buildRej:"1",a:z.jn(),d:!!z.J0,drm:z.Uu(),f18:z.BH.indexOf("itag=18")>=0,c18:C};z.V&&(z.Uu()?(C.f142=!!z.V.V["142"],C.f149=!!z.V.V["149"],C.f279=!!z.V.V["279"]):(C.f133=!!z.V.V["133"],C.f140=!!z.V.V["140"],C.f242=!!z.V.V["242"]),C.cAAC=Z,C.cAVC=p_('video/mp4; codecs="avc1.42001E"'), C.cVP9=p_('video/webm; codecs="vp9"'));z.B&&(C.drmsys=z.B.keySystem,Z=0,z.B.V&&(Z=Object.keys(z.B.V).length),C.drmst=Z);return new mT(R,C,Y)})}; VE=function(N){this.data=window.Float32Array?new Float32Array(N):Array(N);this.W=this.V=N-1}; LvY=function(N){return N.data[N.V]||0}; Kv7=function(N){this.B=N;this.Z=this.W=0;this.N=new VE(50)}; Et=function(N,z,v){g.jJ.call(this);this.videoData=N;this.experiments=z;this.B=v;this.W=[];this.ao=0;this.Z=!0;this.N=!1;this.G=0;v=new l5I;N.latencyClass==="ULTRALOW"&&(v.G=!1);N.kJ?v.Z=3:g.mw(N)&&(v.Z=2);N.latencyClass==="NORMAL"&&(v.B=!0);v.qd=z.j8("html5_refactor_decouple_liveness");g.LM(z,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.LM(z,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||N.latencyClass!=="LOW"&&N.latencyClass!=="ULTRALOW"||(v.B=!0);var R=g.LM(z, "html5_liveness_drift_proxima_override");if(Gh(N)!==0&&R){v.V=R;var C;((C=N.V)==null?0:Mxu(C))&&v.V--}iM(N)&&z.j8("html5_sabr_parse_live_metadata_playback_boundaries")&&(v.Vp=!0);if(g.Dz("trident/")||g.Dz("edge/"))C=g.LM(z,"html5_platform_minimum_readahead_seconds")||3,v.N=Math.max(v.N,C);g.LM(z,"html5_minimum_readahead_seconds")&&(v.N=g.LM(z,"html5_minimum_readahead_seconds"));g.LM(z,"html5_maximum_readahead_seconds")&&(v.J=g.LM(z,"html5_maximum_readahead_seconds"));z.j8("html5_force_adaptive_readahead")&& (v.G=!0);if(C=g.LM(z,"html5_liveness_drift_chunk_override"))v.V=C;lM(N)&&(v.V=(v.V+1)/5,N.latencyClass==="LOW"&&(v.V*=2));if(N.latencyClass==="ULTRALOW"||N.latencyClass==="LOW")v.Y=g.LM(z,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,v.L=g.LM(z,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=v;this.L=this.policy.Z!==1;this.V=S_(this,Wv_(this,isNaN(N.liveChunkReadahead)?3:N.liveChunkReadahead,N))}; GG7=function(N,z){if(z)return z=N.videoData,z=Wv_(N,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z),S_(N,z);if(N.W.length){if(Math.min.apply(null,N.W)>1)return S_(N,N.V-1);if(N.policy.G)return S_(N,N.V+1)}return N.V}; xMI=function(N,z){if(!N.W.length)return!1;var v=N.V;N.V=GG7(N,z===void 0?!1:z);if(z=v!==N.V)N.W=[],N.ao=0;return z}; hS=function(N,z){return z>=N.eM()-ewO(N)}; Jou=function(N,z,v){z=hS(N,z);v||z?z&&(N.Z=!0):N.Z=!1;N.L=N.policy.Z===2||N.policy.Z===3&&N.Z}; yoO=function(N,z){z=hS(N,z);N.N!==z&&N.publish("livestatusshift",z);N.N=z}; ewO=function(N){var z=N.policy.V;N.N||(z=Math.max(z-1,0));return z*H1(N)}; Wv_=function(N,z,v){v.kJ&&z--;lM(v)&&(z=1);if(Gh(v)!==0&&(N=g.LM(N.experiments,"html5_live_chunk_readahead_proxima_override"))){z=N;var R;((R=v.V)==null?0:Mxu(R))&&z++}return z}; H1=function(N){return N.videoData.V?Ug(N.videoData.V)||5:5}; S_=function(N,z){z=Math.max(Math.max(1,Math.ceil(N.policy.N/H1(N))),z);return Math.min(Math.min(8,Math.floor(N.policy.J/H1(N))),z)}; l5I=function(){this.N=0;this.J=Infinity;this.G=!0;this.W=this.V=2;this.Z=1;this.B=!1;this.L=10;this.Vp=!1;this.Y=1;this.qd=!1}; bN=function(N){g.H.call(this);this.kT=N;this.V=0;this.W=null;this.G=this.N=0;this.Z={};this.iS=this.kT.D();this.B=new g.cn(this.Nv,1E3,this);this.xT=new ol({delayMs:g.LM(this.iS.experiments,"html5_seek_timeout_delay_ms")});this.K0=new ol({delayMs:g.LM(this.iS.experiments,"html5_long_rebuffer_threshold_ms")});this.ET=DZ(this,"html5_seek_set_cmt");this.tO=DZ(this,"html5_seek_jiggle_cmt");this.UT=DZ(this,"html5_seek_new_elem");this.zE=DZ(this,"html5_unreported_seek_reseek");this.Vp=DZ(this,"html5_long_rebuffer_jiggle_cmt"); this.PL=new ol({delayMs:2E4});this.BL=DZ(this,"html5_seek_new_elem_shorts");this.vL=DZ(this,"html5_seek_new_media_source_shorts_reuse");this.S8=DZ(this,"html5_seek_new_media_element_shorts_reuse");this.Id=DZ(this,"html5_reseek_after_time_jump");this.Y=DZ(this,"html5_gapless_handoff_close_end_long_rebuffer");this.J=DZ(this,"html5_gapless_slow_seek");this.qd=DZ(this,"html5_gapless_slow_start");this.L=DZ(this,"html5_ads_preroll_lock_timeout");this.kJ=new ol({delayMs:g.LM(this.iS.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,CF:!this.iS.X("html5_report_slow_ads_as_error")});this.gW=new ol({delayMs:g.LM(this.iS.experiments,"html5_skip_slow_ad_delay_ms")||5E3,CF:!this.iS.X("html5_skip_slow_buffering_ad")});this.A0=new ol({delayMs:g.LM(this.iS.experiments,"html5_slow_start_timeout_delay_ms")});this.Rd=DZ(this,"html5_slow_start_no_media_source");g.b(this,this.B)}; DZ=function(N,z){var v=g.LM(N.iS.experiments,z+"_delay_ms");N=N.iS.X(z+"_cfl");return new ol({delayMs:v,CF:N})}; f57=function(N,z){N.V=z}; tS=function(N,z,v,R,C,Z,Y,Q){z.test(v)?(N.oP(C,z,Y),z.CF||Z()):(z.JQ&&z.W&&!z.N?(v=(0,g.I)(),R?z.V||(z.V=v):z.V=0,Z=!R&&v-z.W>z.JQ,v=z.V&&v-z.V>z.F4||Z?z.N=!0:!1):v=!1,v&&(Q=Object.assign({},N.TE(z),Q),Q.wn=Y,Q.we=C,Q.wsuc=R,N.kT.WL("workaroundReport",Q),R&&(z.reset(),N.Z[C]=!1)))}; ol=function(N){var z=N===void 0?{}:N;N=z.delayMs===void 0?0:z.delayMs;var v=z.F4===void 0?1E3:z.F4;var R=z.JQ===void 0?3E4:z.JQ;z=z.CF===void 0?!1:z.CF;this.V=this.W=this.Z=this.startTimestamp=0;this.N=!1;this.B=Math.ceil(N/1E3);this.F4=v;this.JQ=R;this.CF=z}; Fv7=function(N){g.H.call(this);var z=this;this.kT=N;this.L=this.V=this.loader=this.mediaElement=this.playbackData=null;this.Z=0;this.B=this.qd=this.N=null;this.Vp=!1;this.A0=0;this.J=!1;this.timestampOffset=0;this.PL=!0;this.UT=0;this.vL=this.CV=!1;this.G=0;this.ET=!1;this.K0=0;this.iS=this.kT.D();this.videoData=this.kT.getVideoData();this.policy=new dMO;this.Y=new bN(this.kT);this.kJ=this.BL=this.tO=this.W=NaN;this.Id=new g.cn(function(){s7_(z,!1)},2E3); this.zE=new g.cn(function(){Ot(z)}); this.S8=new g.cn(function(){z.Vp=!0;TXY(z,{})}); this.gW=NaN;this.Rd=new g.cn(function(){var v=z.iS.HH;v.V+=1E4/36E5;v.V-v.Z>1/6&&(NlK(v),v.Z=v.V);z.Rd.start()},1E4); g.b(this,this.Y);g.b(this,this.Id);g.b(this,this.S8);g.b(this,this.zE);g.b(this,this.Rd)}; $Mu=function(N,z){N.playbackData=z;N.videoData.isLivePlayback&&(N.L=new Kv7(function(){a:{if(N.playbackData&&N.playbackData.V.V){if(Ke(N.videoData)&&N.loader){var v=N.loader.kc.fU()||0;break a}if(N.videoData.V){v=N.videoData.V.Rd;break a}}v=0}return v}),N.V=new Et(N.videoData,N.iS.experiments,function(){return N.ZC(!0)})); Il(N.kT)?(z=n22(N),z.aJ?(iM(N.videoData)&&N.X$(z.aJ,z.startSeconds),N.Z=z.startSeconds):z.startSeconds>0&&N.seekTo(z.startSeconds,{Np:"seektimeline_startPlayback",seekSource:15}),N.PL=!1):mMb(N)||(N.Z=N.Z||(g.uT(N.videoData)?0:N.videoData.startSeconds)||0)}; BXO=function(N,z){(N.loader=z)?UM2(N,!0):X6(N)}; AoO=function(N,z){g.qv(N.Y.B);N.X("html5_exponential_memory_for_sticky")&&(z.state.isPlaying()?g.qv(N.Rd):N.Rd.stop());if(N.mediaElement)if(z.oldState.state===8&&Qx(z.state)&&z.state.isBuffering()){z=N.mediaElement.getCurrentTime();var v=N.mediaElement.xA();var R=N.X("manifestless_post_live_ufph")||N.X("manifestless_post_live")?ir(v,Math.max(z-3.5,0)):ir(v,z-3.5);R>=0&&z>v.end(R)-1.1&&R+10?(ro(N.kT,N.getCurrentTime()+N.videoData.limitedPlaybackDurationInSeconds),N.vL=!0):N.videoData.isLivePlayback&&N.videoData.endSeconds>0&&(ro(N.kT,N.getCurrentTime()+N.videoData.endSeconds),N.vL=!0))}; phO=function(N,z){var v=N.getCurrentTime(),R=N.isAtLiveHead(v);if(N.L&&R){var C=N.L;if(C.V&&!(v>=C.W&&v50&&C.W.shift())),C=N.V,Jou(C,v,z===void 0?!0:z),yoO(C,v),z&&s7_(N,!0));R!==N.CV&&(z=N.getCurrentTime()-N.kJ<=500,v=N.A0>=1E3,z||v||(z=N.kT.SV(),z.qoe&&(z=z.qoe,v=g.I4(z.provider), g.LF(z,v,"lh",[R?"1":"0"])),N.CV=R,N.A0++,N.kJ=N.getCurrentTime()))}; s7_=function(N,z){if(N.V){var v=N.V;var R=N.getCurrentTime(),C=v.eM();var Z=v.policy.W;v.N||(Z=Math.max(Z-1,0));Z*=H1(v);R>=C-Z||!v.N$()?v=R0&&wK(N.mediaElement)>0&&(N.W=uN(N,N.W,!1)),!N.mediaElement||!hw2(N))N.zE.start(750);else if(!isNaN(N.W)&&isFinite(N.W)){var z=N.BL-(N.W-N.timestampOffset);if(!(z===0||Math.abs(z)<.005))if(z=N.mediaElement.getCurrentTime()-N.W,Math.abs(z)<=N.UT||Math.abs(z)<.005)HPu(N);else{if(N.videoData.dR)N.videoData.dR=!1;else if(!Le(N.videoData)&&N.W>=N.ZC()-.1){N.W=N.ZC();N.N.resolve(N.ZC()); N.kT.n1();return}try{var v=N.W-N.timestampOffset;N.mediaElement.seekTo(v);N.Y.V=v;N.BL=v;N.Z=N.W;N.J=!1}catch(R){}}}}; hw2=function(N){if(!N.mediaElement||N.mediaElement.Vi()===0||N.mediaElement.hasError())return!1;var z=N.mediaElement.getCurrentTime()>0;if(!(N.videoData.Z&&N.videoData.Z.V||N.videoData.isLivePlayback)&&N.videoData.Uu())return z;if(N.W>=0){var v=N.mediaElement.EG();if(v.length||!z)return jx(v,N.W-N.timestampOffset)}return z}; HPu=function(N){N.N&&(N.N.resolve(N.mediaElement.getCurrentTime()),N.Y.W=null)}; SRO=function(N,z){N.B&&(N.B.resolve(z),N.kT.Q4(),N.iS.LV()||E2I(N))&&(z=N.TE(),z["native"]=""+ +N.J,z.otgt=""+(N.W+N.timestampOffset),N.kT.WL("seekEnd",z));X6(N)}; X6=function(N){N.W=NaN;N.BL=NaN;N.N=null;N.qd=null;N.B=null;N.Vp=!1;N.J=!1;N.UT=0;N.Id.stop();N.S8.stop()}; DM_=function(N,z){var v=N.mediaElement,R=z.type;switch(R){case "seeking":var C=v.getCurrentTime()+N.timestampOffset;if(!N.N||N.J&&C!==N.W){N.N=new qa;N.N.then(function(Y){SRO(N,Y)},function(){X6(N)}); if(N.videoData.isAd()){var Z;uif({adCpn:N.videoData.clientPlaybackNonce,contentCpn:(Z=N.videoData.UM)!=null?Z:""},z.V)}N.BL=C;f57(N.Y,v.getCurrentTime());N.seekTo(C,{seekSource:104,Np:"seektimeline_mediaElementEvent"});N.J=!0}break;case "seeked":HPu(N);break;case "loadedmetadata":Il(N.kT)||o2f(N);Ot(N);break;case "progress":Ot(N);break;case "pause":N.G=N.getCurrentTime()}N.G&&((R==="play"||R==="playing"||R==="timeupdate"||R==="progress")&&N.getCurrentTime()-N.G>10&&(N.X("html5_enable_new_media_element_puase_jump")? (N.kT.oP(new mT("qoe.restart",{reason:"pauseJump"})),N.kT.YA(),N.seekTo(N.G,{Np:"pauseJumpNewElement"})):N.seekTo(N.G,{Np:"pauseJump"})),R!=="pause"&&R!=="play"&&R!=="playing"&&R!=="progress"&&(N.G=0))}; bPu=function(N){return($6(N.videoData)||!!N.videoData.liveUtcStartSeconds)&&(!!N.videoData.liveUtcStartSeconds||mMb(N))&&!!N.videoData.V}; mMb=function(N){return!!N.videoData.startSeconds&&isFinite(N.videoData.startSeconds)&&N.videoData.startSeconds>1E9}; n22=function(N){var z=0,v=NaN,R="";if(!N.PL)return{startSeconds:z,aJ:v,source:R};N.videoData.Vp?z=N.videoData.K0:Le(N.videoData)&&(z=Infinity);if(g.mw(N.videoData))return{startSeconds:z,aJ:v,source:R};N.videoData.startSeconds?(R="ss",z=N.videoData.startSeconds):N.videoData.gx&&(R="stss",z=N.videoData.gx);N.videoData.liveUtcStartSeconds&&(v=N.videoData.liveUtcStartSeconds);if(isFinite(z)&&(z>N.ZC()||z N.ZC()||v0?(R.onesie="0",N.handleError(new mT("html5.missingapi",R)),!1):!0}; MnK=function(N){var z=hW();HX(z,N);return g.ZX(z,fLY())}; uW_=function(N,z){var v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D,c,r,Rv,Zu,Nx,av;return g.S(function(M){if(M.W==1)return z.fetchType="onesie",v=S3u(z,N.getPlayerSize(),N.getVisibilityState()),R=new eh(N,v),g.k(M,R.fetch(),2);C=M.V;Z={player_response:C};z.loading=!1;Y=N.Iu.dO;if(R.OD){Q=g.f(R.OD.entries());for(L=Q.next();!L.done;L=Q.next())K=L.value,l=g.f(K),W=l.next().value,G=l.next().value,x=W,e=G,Y.V.set(x,e,180),x===z.videoId&&(d=e.lQ(),z.Xl=d);Y.LN=R}T=g.f(R.W_.entries());for(m=T.next();!m.done;m= T.next())n=m.value,P=g.f(n),V=P.next().value,D=P.next().value,c=V,r=D,Y.W.set(c,r,180);g.ri(z,Z,!0);if(z.loading||Im(z))return M.return(Promise.resolve());Y.V.removeAll();Y.W.removeAll();z.Xl=[];Rv={};Zu="onesie.response";Nx=0;z.errorCode?(Zu="auth",Rv.ec=z.errorCode,Rv.ed=z.errorDetail,Rv.es=z.Hp||"",Nx=2):(Rv.successButUnplayable="1",Rv.disposed=""+ +z.HL(),Rv.afmts=""+ +/adaptiveFormats/.test(C),Rv.cpn=z.clientPlaybackNonce);av=new mT(Zu,Rv,Nx);return M.return(Promise.reject(av))})}; Xhu=function(N,z){var v,R,C,Z,Y,Q,L,K,l,W,G;return g.S(function(x){switch(x.W){case 1:v=z.isAd(),R=!v,C=v?1:3,Z=0;case 2:if(!(Z0)){x.Zp(5);break}return g.k(x,Hs(5E3),6);case 6:Y=new g.XS("Retrying OnePlatform request",{attempt:Z}),g.PN(Y);case 5:return g.d_(x,7),g.k(x,whI(N,z),9);case 9:return x.return();case 7:Q=g.U2(x);L=UH(Q);K=L.errorCode;l=N.D();W=l.X("html5_use_network_error_code_enums")?401:"401";R&&K==="manifest.net.badstatus"&&L.details.rc===W&&(R=!1,Z===C-1&&(C+= 1));if(Z===C-1)return G=Nem(v,L.details),G.details.backend="op",G.details.originec=K,x.return(Promise.reject(G));if(K==="auth"||K==="manifest.net.retryexhausted")return x.return(Promise.reject(L));N.handleError(L);if($z(L.severity)){x.Zp(4);break}case 3:Z++;x.Zp(2);break;case 4:return x.return(Promise.reject(Nem(v,{backend:"op"})))}})}; whI=function(N,z){function v(Zu){Zu.readyState===2&&N.jK("ps_c")} var R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D,c,r,Rv;return g.S(function(Zu){switch(Zu.W){case 1:z.fetchType="gp";R=N.D();C=g.CW(R,g.hf(z));if(!C.V){Z=C.getValue();Zu.Zp(2);break}return g.k(Zu,C.V,3);case 3:Z=Zu.V;case 2:return Y=Z,Q=MnK(Y),L=S3u(z,N.getPlayerSize(),N.getVisibilityState()),K=g.N3(zSm),l=g.hf(z),W=(0,g.I)(),G=!1,x="empty",e=0,N.jK("psns"),d={gj:v},g.k(Zu,g.rZ(Q,L,K,void 0,d),4);case 4:T=Zu.V;N.jK("psnr");if(z.HL())return Zu.return();T?"error"in T&&T.error?(G=!0,x="esf:"+T.error.message, e=T.error.code):T.errorMetadata&&(G=!0,x="its",e=T.errorMetadata.status):G=!0;if(G)return m=0,n=((0,g.I)()-W).toFixed(),P={},P=R.X("html5_use_network_error_code_enums")?{backend:"op",rc:e,rt:n,reason:x,has_kpt:z.c5?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.XI("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:R.pageId?"1":"0",has_token:l?"1":"0",has_vvt:z.Rd?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Je||"",token_eq:l===g.hf(z)?"1":"0"}:{backend:"op", rc:""+e,rt:n,reason:x,has_kpt:z.c5?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.XI("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:R.pageId?"1":"0",has_token:l?"1":"0",has_vvt:z.Rd?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Je||"",token_eq:l===g.hf(z)?"1":"0"},V="manifest.net.connect",e===429?(V="auth",m=2):e>200&&(V="manifest.net.badstatus",e===400&&(m=2)),Zu.return(Promise.reject(new mT(V,P,m)));z.loading=!1;g.ri(z,{raw_player_response:T},!0); D=T;g.Pi(z.D())&&D&&D.trackingParams&&PM(D.trackingParams);if(z.errorCode)return c={ec:z.errorCode,ed:z.errorDetail,es:z.Hp||""},Zu.return(Promise.reject(new mT("auth",c,2)));if(!z.loading&&!Im(z))return r=z.isAd()?"auth":"manifest.net.retryexhausted",Rv=z.isAd()?2:1,Zu.return(Promise.reject(new mT(r,{successButUnplayable:"1",hasMedia:g.Th(z)?"1":"0"},Rv)));g.fO(Zu)}})}; I5m=function(N,z,v){function R(e){e=UH(e);if($z(e.severity))return Promise.reject(e);N.handleError(e);return!1} function C(){return!0} var Z,Y,Q,L,K,l,W,G,x;return g.S(function(e){switch(e.W){case 1:var d=N.D();N.getPlayerSize();N.getVisibilityState();N.isFullscreen();if(z.partnerId===38&&d.playerStyle==="books")d=z.videoId.indexOf(":"),d=g.kS("//play.google.com/books/volumes/"+z.videoId.slice(0,d)+"/content/media",{aid:z.videoId.slice(d+1),sig:z.FQU});else if(z.partnerId===30&&d.playerStyle==="docs")d=g.kS("https://docs.google.com/get_video_info",{docid:z.videoId,authuser:z.qT,authkey:z.A2,eurl:d.Dx});else if(z.partnerId===33&& d.playerStyle==="google-live")d=g.kS("//google-liveplayer.appspot.com/get_video_info",{key:z.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+d.qd);Z=d;Q=(Y=z.isAd())?1:3;L=0;case 2:if(!(L0)){e.Zp(5);break}return g.k(e,Hs(5E3),6);case 6:l={playerretry:L,playerretrysrc:v},Y||(l.recover="embedded"),K=Zz(Z,l);case 5:return g.k(e,vDu(z,K).then(C,R),7);case 7:if(W=e.V)return e.return();L++;e.Zp(2);break;case 4:G=Y?"auth":"manifest.net.retryexhausted";x= Y?2:1;if(!Y&&Math.random()<1E-4)try{g.PN(new g.XS("b/152131571",btoa(Z)))}catch(T){}return e.return(Promise.reject(new mT(G,{backend:"gvi"},x)))}})}; vDu=function(N,z){function v(T){return R(T.xhr)} function R(T){if(!N.HL()){T=T?T.status:-1;var m=0,n=((0,g.I)()-l).toFixed();n=C.X("html5_use_network_error_code_enums")?{backend:"gvi",rc:T,rt:n}:{backend:"gvi",rc:""+T,rt:n};var P="manifest.net.connect";T===429?(P="auth",m=2):T>200&&(P="manifest.net.badstatus",T===400&&(m=2));return Promise.reject(new mT(P,n,m))}} var C,Z,Y,Q,L,K,l,W,G,x,e,d;return g.S(function(T){if(T.W==1){N.fetchType="gvi";C=N.D();var m={};N.IC&&(m.ytrext=N.IC);(Q=g.wE(m)?void 0:m)?(Z={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:Q},Y=Zz(z,{action_display_post:1})):(Z={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},Y=z);L={};C.sendVisitorIdHeader&&N.visitorData&&(L["X-Goog-Visitor-Id"]=N.visitorData);(K=zx(C.experiments,"debug_sherlog_username"))&&(L["X-Youtube-Sherlog-Username"]=K);Object.keys(L).length> 0&&(Z.headers=L);l=(0,g.I)();return g.k(T,GK($A,Y,Z).then(void 0,v),2)}W=T.V;if(!W||!W.responseText)return T.return(R(W));N.loading=!1;G=zU(W.responseText);g.ri(N,G,!0);if(N.errorCode)return x={ec:N.errorCode,ed:N.errorDetail,es:N.Hp||""},T.return(Promise.reject(new mT("auth",x,2)));if(!N.loading&&!Im(N))return e=N.isAd()?"auth":"manifest.net.retryexhausted",d=N.isAd()?2:1,T.return(Promise.reject(new mT(e,{successButUnplayable:"1"},d)));g.fO(T)})}; Nem=function(N,z){return new mT(N?"auth":"manifest.net.retryexhausted",z,N?2:1)}; NM=function(N,z,v){v=v===void 0?!1:v;var R,C,Z,Y;g.S(function(Q){if(Q.W==1){R=N.D();if(v&&(!g.M9(R)||P0(z)!=="embedded")||z.tV||P0(z)!=="adunit"&&(g.nM(R)||Dn(R)||g.S0(R)||g.V1(R)||g.wB(R)==="WEB_CREATOR"))return Q.return();C=g.CW(R,g.hf(z));return C.V?g.k(Q,C.V,3):(Z=C.getValue(),Q.Zp(2))}Q.W!=2&&(Z=Q.V);Y=Z;return Q.return(RSv(N,z,Y))})}; RSv=function(N,z,v){var R,C,Z,Y,Q;return g.S(function(L){if(L.W==1){g.d_(L,2);R=MnK(v);var K=z.D();g.os();var l={context:g.Z2(z),videoId:z.videoId,racyCheckOk:z.racyCheckOk,contentCheckOk:z.contentCheckOk,autonavState:"STATE_NONE"};P0(z)==="adunit"&&(l.isAdPlayback=!0);K.embedConfig&&(l.serializedThirdPartyEmbedConfig=K.embedConfig);K.G8&&(l.showContentOwnerOnly=!0);z.BX&&(l.showShortsOnly=!0);g.D_(0,141)&&(l.autonavState=g.D_(0,140)?"STATE_OFF":"STATE_ON");if(g.ci(K)){var W=g.D_(0,65);W=W!=null? !W:!1;var G=!!g.Pe("yt-player-sticky-caption");l.captionsRequested=W&&G}var x;if(K=(x=K.getWebPlayerContextConfig())==null?void 0:x.encryptedHostFlags)l.playbackContext={encryptedHostFlags:K};C=l;Z=g.N3(CFU);N.jK("wn_s");return g.k(L,g.rZ(R,C,Z),4)}if(L.W!=2)return Y=L.V,N.jK("wn_r"),!Y||"error"in Y&&Y.error||(Q=Y,g.Pi(z.D())&&Q.trackingParams&&PM(Q.trackingParams),g.ri(z,{raw_watch_next_response:Y},!1)),g.nO(L,0);g.U2(L);g.fO(L)})}; ZL_=function(N){N.jK("vir");N.jK("ps_s");Om("vir",void 0,"video_to_ad");var z=qR_(N);z.then(function(){N.jK("virc");Om("virc",void 0,"video_to_ad");N.jK("ps_r");Om("ps_r",void 0,"video_to_ad")},function(){N.jK("virc"); Om("virc",void 0,"video_to_ad")}); return z}; g.R7=function(N,z,v,R,C,Z,Y,Q,L,K){L=L===void 0?new g.Os(N):L;K=K===void 0?!0:K;g.jJ.call(this);var l=this;this.iS=N;this.playerType=z;this.dW=v;this.J1=R;this.getVisibilityState=Z;this.visibility=Y;this.Iu=Q;this.videoData=L;this.AK=K;this.logger=new g.Ry("VideoPlayer");this.E6=null;this.z6=new v1;this.hZ=null;this.TH=!0;this.uS=this.loader=null;this.FK=[];this.IY=new wo;this.x$=this.Uk=null;this.p9=new wo;this.po=null;this.qm=this.WM=!1;this.Hf=NaN;this.xq=!1;this.playerState=new g.Ro;this.Bf=[]; this.kU=new g.VV;this.e$=new ZR7(this);this.mediaElement=null;this.Gp=new g.cn(this.RYT,15E3,this);this.kI=this.lD=!1;this.iW=NaN;this.gr=!1;this.Kv=0;this.Ci=!1;this.Vn=NaN;this.uT=new c1(new Map([["bufferhealth",function(){return g2f(l.tI)}], ["bandwidth",function(){return l.Tf()}], ["networkactivity",function(){return l.iS.schedule.PL}], ["livelatency",function(){return l.isAtLiveHead()&&l.isPlaying()?YGm(l):NaN}], ["rawlivelatency",function(){return YGm(l)}]])); this.Sd=0;this.loop=!1;this.playbackRate=1;this.YE=0;this.tI=new Fv7(this);this.JX=!1;this.s2=[];this.Lh=this.Yq=0;this.vt=this.v$=!1;this.eq=this.wc=0;this.VP=new g.cn(this.FL,0,this);this.yy=null;this.ddl=[this.kU,this.VP,this.Gp,this.uT];this.gV=this.YL=null;this.iI=function(){var W=l.SV();W.provider.iS.s9||W.provider.kT.getVisibilityState()===3||(W.provider.iS.s9=!0);W.HB();if(W.W){var G=W.W;G.B&&G.V<0&&G.provider.kT.getVisibilityState()!==3&&VhI(G)}W.qoe&&(W=W.qoe,W.xT&&W.Z<0&&W.provider.iS.s9&& KP2(W),W.N&&W1(W));l.loader&&zG(l);l.iS.RR&&!l.videoData.backgroundable&&l.mediaElement&&!l.jN()&&(l.isBackground()&&l.mediaElement.Hr()?(l.WL("bgmobile",{suspend:1}),l.hx(!0,!0)):l.isBackground()||vh(l)&&l.WL("bgmobile",{resume:1}))}; this.Oi={sN:function(W){l.sN(W)}, EM1:function(W){l.E6=W}, gCO:function(){return l.lP}, W3:function(){return l.hD}, GD:function(){return l.uS}, pSl:function(){return l.Rl}, HaS:function(){return l.Cv}, KwT:function(){}, D:function(){return l.iS}, O6:function(){return l.mediaElement}, RJd:function(W){l.sC(W)}, Ind:function(){return l.J1}}; this.logger.debug(function(){return"creating, type "+z}); this.QS=new j7f(this.iS);this.Xn=new CF(this.iS,this.J1,this);this.KO=new g.k9(this,function(W,G){W!==g.R2("endcr")||g.u(l.playerState,32)||l.n1();C(W,G,l.playerType)},function(W,G){g.uT(l.videoData)&&l.WL(W,G)}); g.b(this,this.KO);g.b(this,this.tI);iL7(this,L);this.videoData.subscribe("dataupdated",this.COp,this);this.videoData.subscribe("dataloaded",this.yP,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.WL,this);this.videoData.subscribe("ctmpstr",this.W9,this);this.Ba();Rs7(this.iI);this.visibility.subscribe("visibilitystatechange",this.iI);this.Rl=new g.cn(this.Py,g.LM(this.iS.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Cv= new g.cn(this.Py,g.LM(this.iS.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.bA=new g.N4(this.r0,g.LM(this.iS.experiments,"html5_progress_event_throttle_ms")||350,this);g.b(this,this.bA)}; iL7=function(N,z){if(N.playerType===2||N.iS.UN)z.Zj=!0;var v=XDx(z.s9,z.HQ,N.iS.N,N.iS.Y);v&&(z.adFormat=v);N.playerType===2&&(z.SI=!0);if(N.isFullscreen()||N.iS.N)v=g.Pe("yt-player-autonavstate"),z.autonavState=v||(N.iS.N?2:N.videoData.autonavState);z.endSeconds&&z.endSeconds>z.startSeconds&&ro(N,z.endSeconds)}; jiI=function(N){X1x(N.lP);g.Lc(N.lP);for(var z=N.hD,v=g.f(z.V.values()),R=v.next();!R.done;R=v.next())X1x(R.value);z.V.clear();g.Lc(N.hD)}; afO=function(N){var z=N.videoData;ZL_(N).then(void 0,function(v){N.videoData!==z||z.HL()||(v=UH(v),v.errorCode==="auth"&&N.videoData.errorDetail?N.Ij(v.errorCode,2,unescape(N.videoData.errorReason),n_(v.details),N.videoData.errorDetail,N.videoData.Hp||void 0):N.handleError(v))})}; KEK=function(N){if(!g.u(N.playerState,128))if(N.videoData.isLoaded(),N.logger.debug("finished loading playback data"),N.FK=g.T1(N.videoData.PL),g.Th(N.videoData)){N.dW.tick("bpd_s");CP(N).then(function(){N.dW.tick("bpd_c");if(!N.HL()){N.WM&&(N.W5(Yc(Yc(N.playerState,512),1)),vh(N));var R=N.videoData;R.endSeconds&&R.endSeconds>R.startSeconds&&ro(N,R.endSeconds);N.IY.finished=!0;Z5(N,"dataloaded");N.p9.Aa()&&Qim(N);PBu(N.Xn,N.x$)}}); N.X("html5_log_media_perf_info")&&N.WL("loudness",{v:N.videoData.Lr.toFixed(3)},!0);var z,v=(z=N.mediaElement)==null?void 0:z.Nu();if(v&&"disablePictureInPicture"in v&&N.iS.WZ)try{v.disablePictureInPicture=N.iS.T0&&!N.videoData.backgroundable}catch(R){g.PN(R)}LE_(N)}else Z5(N,"dataloaded")}; CP=function(N){Y2(N);N.x$=null;var z=Q7m(N.iS,N.videoData,N.jN());N.Uk=z;N.Uk.then(function(v){lfm(N,v)},function(v){N.HL()||(v=UH(v),N.visibility.isBackground()?(ie(N,"vp_none_avail"),N.Uk=null,N.IY.reset()):(N.IY.finished=!0,N.Ij(v.errorCode,v.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",n_(v.details))))}); return z}; lfm=function(N,z){if(!N.HL()&&!z.videoData.HL()){N.logger.debug("finished building playback data");N.x$=z;$Mu(N.tI,N.x$);if(N.videoData.isLivePlayback){var v=WEx(N.Iu.dO,N.videoData.videoId)||N.loader&&!isNaN(N.loader.PL);v=N.X("html5_onesie_live")&&v;Il(N)||N.videoData.zE>0&&!Ke(N.videoData)||v||N.seekTo(N.ZC(),{Np:"videoplayer_playbackData",seekSource:18})}if(N.videoData.Z.V){if(Fo7(N.videoData)){N.X("html5_sabr_report_missing_url_as_error_terminal")?N.Ij("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", n_({missabrurl:1})):N.handleError(new mT("fmt.missing",{missabrurl:"1"},2));return}N.loader?g.PN(Error("Duplicated Loader")):(v=g.LM(N.iS.experiments,"html5_onesie_defer_content_loader_ms"))&&N.E_()&&WEx(N.Iu.dO,N.videoData.kaO)?g.W9(function(){N.HL()||N.loader||GIv(N)},v):GIv(N)}else!N.videoData.Z.V&&bM(N.videoData)&&N.JB(new Ll(N.videoData.videoId||"",4)); N.z8();$Fm(z).then(function(){var R={};N.Gb(R);N.iS.LV()&&N.X("html5_log_media_perf_info")&&N.WL("av1Info",R);zG(N)})}}; Qim=function(N){N.HL();N.logger.debug("try finish readying playback");if(N.p9.finished)N.logger.debug("already finished readying");else if(N.IY.finished)if(g.u(N.playerState,128))N.logger.debug("cannot finish readying because of error");else if(N.FK.length)N.logger.debug(function(){return"cannot finish readying because of pending preroll: "+N.FK}); else if(N.KO.started||ZPf(N.KO),N.bG())N.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{N.loader&&(N.qm=Aam(N.loader.timing));N.p9.finished||(N.p9.finished=!0);var z=N.X("html5_onesie_live")&&N.loader&&!isNaN(N.loader.PL);!N.videoData.isLivePlayback||N.videoData.zE>0&&!Ke(N.videoData)||z||Il(N)||(N.logger.debug("seek to head for live"),N.seekTo(Infinity,{Np:"videoplayer_readying",seekSource:18}),N.isBackground()&&(N.kI=!0));bFf(N.SV());N.logger.debug("finished readying playback"); N.publish("playbackready");bv("pl_c",N.dW.timerName)||(N.dW.tick("pl_c"),Om("pl_c",void 0,"video_to_ad"));bv("pbr",N.dW.timerName)||(N.dW.tick("pbr"),Om("pbr",void 0,"video_to_ad"))}else N.logger.debug("playback data not loaded")}; ro=function(N,z){N.hZ&&xrO(N);N.hZ=new g.zt(z*1E3,0x7ffffffffffff);N.hZ.namespace="endcr";N.addCueRange(N.hZ)}; xrO=function(N){N.removeCueRange(N.hZ);N.hZ=null}; eSf=function(N,z,v,R,C){var Z=N.SV(C),Y=g.uT(N.videoData)?Z.getVideoData():N.videoData;Y.W=v;var Q=g.jn(N);v=new esf(Y,v,z,Q?Q.itag:"",R);N.iS.experiments.j8("html5_refactor_sabr_video_format_selection_logging")?(v.videoId=C,N.gV=v):Z.qoe&&w0u(Z.qoe,v);C=N.Xn;C.W=0;C.V=0;N.publish("internalvideoformatchange",Y,z==="m")}; g.jn=function(N){var z=a7(N);return Lf(z)||!N.x$?null:g.G1(N.x$.V.videoInfos,function(v){return z.N(v)})}; a7=function(N){if(N.x$){var z=N.Xn;var v=N.x$;N=N.Sn();var R=fUu(z);if(Lf(R)){if(R=Jyx(z,v).compose(FVI(z,v)).compose(mF_(z,v)).compose(p82(z,v.videoData)).compose(ksx(z,v.videoData,v)).compose(Y9(z,v)).compose(s4O(z,v)),Lf(N)||z.X("html5_apply_pbr_cap_for_drm"))R=R.compose(T$u(z,v))}else z.X("html5_perf_cap_override_sticky")&&(R=R.compose(Y9(z,v))),z.X("html5_ustreamer_cap_override_sticky")&&(R=R.compose(T$u(z,v)));R=R.compose(s4O(z,v));z=v.videoData.rk.compose(R).compose(v.videoData.YU).compose(N)}else z= tK;return z}; oNx=function(N){var z=N.Xn;N=N.videoData;var v=p82(z,N);z.X("html5_disable_client_autonav_cap_for_onesie")||v.compose(ksx(z,N));return v}; zG=function(N){if(N.videoData.Z&&N.videoData.Z.V){var z=a7(N);N.loader&&Uk_(N.loader,z)}}; Jkv=function(N){var z;return!!(N.X("html5_native_audio_track_switching")&&g.yl&&((z=N.videoData.W)==null?0:Mi(z)))}; yk_=function(N){if(!Jkv(N))return!1;var z;N=(z=N.mediaElement)==null?void 0:z.audioTracks();return!!(N&&N.length>1)}; drY=function(N){var z=ffI(N);if(z)return X$m(N.videoData.getAvailableAudioTracks().find(function(v){return v.u$.getName()===z}))}; ffI=function(N){var z;if(N=(z=N.mediaElement)==null?void 0:z.audioTracks())for(z=0;z0&&(z.g$=R.iQ));z.I_=R.Eb;z.Ai=Eg(v,{},R.Z||void 0,Y6(R));z.xT=Zk(R)&&g.S0(v);iM(R)&&(z.RP=!0,v.X("html5_sabr_report_partial_segment_estimated_duration")&& (z.gZ=!0),z.V=!0,z.Ka=v.X("html5_sabr_enable_live_clock_offset"),z.MQ=v.X("html5_disable_client_resume_policy_for_sabr"),z.gh=v.X("html5_trigger_loader_when_idle_network"),z.MD=v.X("html5_sabr_parse_live_metadata_playback_boundaries"),z.xO=v.X("html5_enable_platform_backpressure_with_sabr"),z.As=v.X("html5_consume_onesie_next_request_policy_for_sabr"),z.a7=v.X("html5_sabr_report_next_ad_break_time"),z.n9=v.X("html5_log_high_res_buffer_timeline")&&v.LV(),z.kF=v.X("html5_remove_stuck_slices_beyond_max_buffer_limits"), z.zD=v.X("html5_gapless_sabr_btl_last_slice")&&Ce(R),z.ZU=v.X("html5_reset_last_appended_slice_on_seek")&&Ce(R),Ke(R)?(z.o7=!0,z.S4=v.X("html5_estimate_partial_segment_duration"),z.XH=v.X("html5_disable_variability_tracker_for_live"),z.S8=v.X("html5_sabr_use_accurate_slice_info_params"),v.X("html5_simplified_backup_timeout_sabr_live")&&(z.Jx=!0,z.s9=z.e_)):z.yh=v.X("html5_probe_request_on_sabr_request_progress"),z.Qo=v.X("html5_serve_start_seconds_seek_for_post_live_sabr"),z.Bc=v.X("html5_flush_index_on_updated_timestamp_offset"), z.J=ys7(R),z.V8=v.X("html5_ignore_partial_segment_from_live_readahead"),z.uW=v.X("html5_use_buffer_health_for_readahead"),z.GO=v.X("html5_use_non_active_broadcast_for_post_live"),z.Rd=v.X("html5_use_centralized_player_time"),z.w$=v.X("html5_consume_onesie_sabr_seek"),z.Vp=v.X("html5_enable_sabr_seek_loader_refactor"),z.FX=v.X("html5_update_segment_start_time_from_media_header"),R.enableServerStitchedDai&&(z.Z=!0,z.rk=v.X("html5_reset_server_stitch_state_for_non_sabr_seek"),z.ij=v.X("html5_remove_ssdai_append_pause")&& !R.Lb(),z.ZT=v.X("html5_ssdai_log_ssevt_in_loader")),z.dK=v.LV()||R.Lb());z.B=z.V&&v.X("html5_sabr_live");z.kJ=g.sab(R);nf(v.B,m_.BITRATE)&&(z.i$=NaN);if(Q=g.LM(v.experiments,"html5_request_size_max_kb"))z.BL=Q*1024;v.B.Z?z.B2="; "+m_.EXPERIMENTAL.name+"=allowed":v.X("html5_enable_cobalt_tunnel_mode")&&(z.B2="; tunnelmode=true");Q=R.serverPlaybackStartConfig;(Q==null?0:Q.enable)&&(Q==null?0:Q.playbackStartPolicy)&&(z.o4=!0,bf(z,Q.playbackStartPolicy,2));Q=si_(N);N.z6.removeAll();a:{v=N.Iu.dO;if(R= N.videoData.videoId)if(C=v.V.get(R)){v.V.remove(R);v=C;break a}v=void 0}N.loader=new g.ty(N,N.iS.schedule,z,N.videoData.V,N.videoData.Z,a7(N),Q,N.videoData.enableServerStitchedDai,v,N.videoData.qd);z=N.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&N.videoData.isLivePlayback&&N.E_()?!0:N.WM&&g.nM(N.iS)&&N.videoData.isLivePlayback;N.loader.initialize(N.getCurrentTime(),a7(N),z);N.videoData.probeUrl&&(N.loader.vL=N.videoData.probeUrl);if(N.FK.length||N.WM)N.videoData.cotn||QK(N,!1);BXO(N.tI, N.loader);N.yy&&(qYu(N.loader,new g.XT(N.yy)),N.WL("sdai",{sdl:1}));g.ID(N.videoData)&&(N=N.loader,N.policy.Lr=N.policy.RS)}; Y2=function(N){N.loader&&(N.loader.dispose(),N.loader=null,BXO(N.tI,null));N.nO()?Teu(N):N.xa()}; Teu=function(N){if(N.uS)if(N.logger.debug("release media source"),N.tE(),N.uS.B)try{N.iS.LV()&&N.WL("rms",{l:"vprms",sr:N.nO(),rs:ur(N.uS)});N.uS.clear();var z;(z=N.mediaElement)!=null&&(z.W=N.uS);N.uS=null}catch(v){z=new g.XS("Error while clearing Media Source in VideoPlayer: "+v.name+", "+v.message),z=UH(z),N.handleError(z),N.xa()}else N.xa()}; FEU=function(N,z){z=z===void 0?!1:z;if(N.uS)return N.uS.Z;N.logger.debug("update media source");a:{z=z===void 0?!1:z;try{g.tr()&&N.videoData.eT()&&BO_(N.mediaElement);var v=N.mediaElement.GD(N.Ju(),N.VM())}catch(C){if(Q4_(N.e$,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",C);N.Ij("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}N.lU(v,!1,!1,z)}var R;return((R=N.GD())==null?void 0:R.Z)||null}; nDf=function(N,z){z=z===void 0?!1:z;if(N.loader){N.videoData.enableServerStitchedDai&&Z22(N.loader);var v=N.getCurrentTime()-N.fV();N.loader.seek(v,{PM:z}).YK(function(){})}else GIv(N)}; $rY=function(N,z,v,R){v=v===void 0?!1:v;R=R===void 0?!1:R;if(N.uS&&(!z||N.uS===z)){N.logger.debug("media source opened");var C=N.getDuration();!C&&Ke(N.videoData)&&(C=25200);if(N.uS.isView){var Z=C;N.logger.debug(function(){return"Set media source duration to "+Z+", video duration "+C}); Z>N.uS.getDuration()&&mrf(N,Z)}else mrf(N,C);n6K(N.loader,N.uS,v,R);N.publish("mediasourceattached")}}; mrf=function(N,z){if(N.uS){N.uS.wK(z);var v;(v=N.loader)!=null&&v.policy.Rd&&(v.G=z)}}; Afu=function(N,z){eSf(N,z.reason,z.V.info,z.token,z.videoId)}; Z5=function(N,z){N.publish("internalvideodatachange",z===void 0?"dataupdated":z,N.videoData)}; Ur2=function(N){var z="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");N.X("html5_remove_progress_event_listener")||(z.push("progress"),z.push("suspend"));z=g.f(z);for(var v=z.next();!v.done;v=z.next())N.kU.S(N.mediaElement,v.value,N.sC,N);N.iS.gQ&&N.mediaElement.lH()&&(N.kU.S(N.mediaElement,"webkitplaybacktargetavailabilitychanged",N.H0O,N),N.kU.S(N.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",N.sdO, N))}; AkY=function(N){g.e5(N.Hf);Beu(N)||(N.Hf=g.GU(function(){return Beu(N)},100))}; Beu=function(N){var z=N.mediaElement;z&&N.lD&&!N.videoData.tO&&!bv("vfp",N.dW.timerName)&&z.Vi()>=2&&!z.isEnded()&&LN(z.xA())&&N.dW.tick("vfp");return(z=N.mediaElement)&&!N.videoData.tO&&z.getDuration()>0&&(z.isPaused()&&z.Vi()>=2&&LN(z.xA())&&(bv("pbp",N.dW.timerName)||N.dW.tick("pbp"),!N.videoData.v2||N.xq||z.isSeeking()||(N.xq=!0,N.publish("onPlaybackPauseAtStart"))),z=z.getCurrentTime(),P1(N.QS,z))?(N.Ok(),!0):!1}; pbY=function(N){N.SV().MH();if(Le(N.videoData)&&Date.now()>N.YE+6283){if(!(!N.isAtLiveHead()||N.videoData.V&&nr(N.videoData.V))){var z=N.SV();if(z.qoe){z=z.qoe;var v=z.provider.kT.oe(),R=g.I4(z.provider);CN7(z,R,v);v=v.Z;isNaN(v)||g.LF(z,R,"e2el",[v.toFixed(3)])}}N.X("html5_alc_live_log_rawlat")?(z=N.videoData,z=g.TW(z.D())?!0:g.rd(z.D())?z.drmProduct==="6":!1):z=g.TW(N.iS);z&&N.WL("rawlat",{l:Mw(N.uT,"rawlivelatency").toFixed(3)});N.YE=Date.now()}N.videoData.W&&Mi(N.videoData.W)&&(z=N.vT())&&z.videoHeight!== N.Lh&&(N.Lh=z.videoHeight,eSf(N,"a",gD7(N,N.videoData.xT)))}; gD7=function(N,z){if(z.V.video.quality==="auto"&&Mi(z.getInfo())&&N.videoData.Fy)for(var v=g.f(N.videoData.Fy),R=v.next();!R.done;R=v.next())if(R=R.value,R.getHeight()===N.Lh&&R.V.video.quality!=="auto")return R.getInfo();return z.getInfo()}; YGm=function(N){if(!Le(N.videoData))return NaN;var z=0;N.loader&&N.videoData.V&&(z=Ke(N.videoData)?N.loader.kc.fU()||0:N.videoData.V.Rd);return(0,g.I)()/1E3-N.LG()-z}; PFK=function(N){N.mediaElement&&N.mediaElement.jN()&&(N.Vn=(0,g.I)());N.iS.Nl?g.W9(function(){kIO(N)},0):kIO(N)}; kIO=function(N){var z;if((z=N.uS)==null||!z.BZ()){if(N.mediaElement)try{N.po=N.mediaElement.playVideo()}catch(R){ie(N,"err."+R)}if(N.po){var v=N.po;v.then(void 0,function(R){N.logger.debug(function(){return"playMediaElement failed: "+R}); if(!g.u(N.playerState,4)&&!g.u(N.playerState,256)&&N.po===v)if(R&&R.name==="AbortError"&&R.message&&R.message.includes("load"))N.logger.debug(function(){return"ignore play media element failure: "+R.message}); else{var C="promise";R&&R.name&&(C+=";m."+R.name);ie(N,C);N.JX=!0;N.videoData.X6=!0}})}}}; ie=function(N,z){g.u(N.playerState,128)||(N.W5(ji(N.playerState,1028,9)),N.WL("dompaused",{r:z}),N.publish("onAutoplayBlocked"))}; vh=function(N,z){z=z===void 0?!1:z;if(!N.mediaElement||!N.videoData.Z)return!1;var v=z;v=v===void 0?!1:v;var R=null;var C;if((C=N.videoData.Z)==null?0:C.V){R=FEU(N,v);var Z;(Z=N.loader)==null||Z.resume()}else Y2(N),N.videoData.xT&&(R=N.videoData.xT.OX());C=N.mediaElement.Hr();v=!1;C&&C.equals(R)||(VK_(N,R),v=!0);g.u(N.playerState,2)||(R=N.tI,z=z===void 0?!1:z,R.B||!(R.Z>0)||R.mediaElement&&R.mediaElement.getCurrentTime()>0||(z={Np:"seektimeline_resumeTime",PM:z},R.videoData.tO||(z.seekSource=15), R.seekTo(R.Z,z)));a:{z=v;if(iM(N.videoData)){if(!N.videoData.Uu())break a}else if(!g.yO(N.videoData))break a;if(N.mediaElement)if((R=N.videoData.B)&&N.mediaElement.lH()){C=g.h(N.mediaElement.Nu());if(N.E6)if(C!==N.E6.element)LP(N);else if(z&&R.flavor==="fairplay"&&!OF())LP(N);else break a;if(N.X("html5_report_error_for_unsupported_tvos_widevine")&&OF()&&R.flavor==="widevine")N.Ij("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{N.E6=new rZK(C,N.videoData,N.iS); N.E6.subscribe("licenseerror",N.TT,N);N.E6.subscribe("qualitychange",N.K9o,N);N.E6.subscribe("heartbeatparams",N.sS,N);N.E6.subscribe("keystatuseschange",N.sN,N);N.E6.subscribe("ctmp",N.WL,N);z=g.f(N.z6.keys);for(R=z.next();!R.done;R=z.next())R=N.z6.get(R.value),N.E6.jj(R);N.X("html5_eme_loader_sync")||N.z6.removeAll()}}else N.Ij("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return v}; VK_=function(N,z){N.dW.tick("vta");Om("vta",void 0,"video_to_ad");N.getCurrentTime()>0&&kGK(N.tI,N.getCurrentTime());N.mediaElement.activate(z);N.uS&&vz(4);!N.videoData.tO&&N.playerState.isOrWillBePlaying()&&N.Gp.start();if(Jkv(N)){var v;if(z=(v=N.mediaElement)==null?void 0:v.audioTracks())z.onchange=function(){N.publish("internalaudioformatchange",N.videoData,!0)}}}; LP=function(N){N.E6&&(N.E6.dispose(),N.E6=null)}; SGu=function(N){var z=z===void 0?!1:z;N.logger.debug("reattachVideoSource");N.mediaElement&&(N.uS?(LP(N),N.xa(),FEU(N,z)):(N.videoData.xT&&N.videoData.xT.qb(),N.mediaElement.stopVideo()),N.playVideo())}; EDf=function(N,z){N.iS.X("html5_log_rebuffer_reason")&&(z={r:z,lact:mB()},N.mediaElement&&(z.bh=NQ(N.mediaElement)),N.WL("bufreason",z))}; hSu=function(N,z){if(N.iS.LV()&&N.mediaElement){var v=N.mediaElement.TE();v.omt=(N.mediaElement.getCurrentTime()+N.fV()).toFixed(3);v.ps=N.playerState.state.toString(16);v.rt=(AS(N.SV())*1E3).toFixed();v.e=z;N.s2[N.Yq++%5]=v}try{if(z==="timeupdate"||z==="progress")return}catch(R){}N.logger.debug(function(){return"video element event "+z})}; HL2=function(N){if(N.iS.LV()){N.s2.sort(function(R,C){return+R.rt-+C.rt}); for(var z=g.f(N.s2),v=z.next();!v.done;v=z.next())v=v.value,N.WL("vpe",Object.assign({t:v.rt},v));N.s2=[];N.Yq=0}}; oDu=function(N){if(g.Dz("cobalt")&&g.Dz("nintendo switch")){var z=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;N.WL("nxdock",{d:z})}}; QK=function(N,z){var v;(v=N.loader)==null||Oq(v,z)}; LE_=function(N){Mk(N.videoData,"html5_set_debugging_opt_in")&&(N=g.os(),g.D_(0,183)||(tV(183,!0),N.save()))}; Yr_=function(N,z){N.Iu.kG()||(N.WL("sgap",{f:z}),N.Iu.clearQueue(!1,z==="pe"))}; Il=function(N){return N.X("html5_disable_video_player_initiated_seeks")&&iM(N.videoData)}; DrU=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);iH(this.api,"isLifaAdPlaying",function(){return z.api.isLifaAdPlaying()}); this.events.S(N,"serverstitchedvideochange",function(){var v;(v=z.api.getVideoData())!=null&&v.Lb()&&(z.api.isLifaAdPlaying()?(z.playbackRate=z.api.getPlaybackRate(),z.api.setPlaybackRate(1)):z.api.setPlaybackRate(z.playbackRate))}); this.playbackRate=1}; bLu=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);iH(this.api,"seekToChapterWithAnimation",function(v){z.seekToChapterWithAnimation(v)}); iH(this.api,"seekToTimeWithAnimation",function(v,R){z.seekToTimeWithAnimation(v,R)}); iH(this.api,"renderChapterSeekingAnimation",function(v,R,C){z.api.renderChapterSeekingAnimation(v,R,C)}); iH(this.api,"setMacroMarkers",function(v){z.setMacroMarkers(N,v)}); iH(this.api,"changeMarkerVisibility",function(v,R,C){z.changeMarkerVisibility(v,R,C)}); iH(this.api,"isSameMarkerTypeVisible",function(v){return z.isSameMarkerTypeVisible(v)})}; tKY=function(N,z,v){var R=N.api.getCurrentTime()*1E30&&C>0&&(v.width+=C,g.SB(z.element,"width",v.width+"px")));N.size=v}}; g.$2=function(N,z){var v=N.V[N.V.length-1];v!==z&&(N.V.push(z),xBK(N,v,z))}; g.UR=function(N){if(!(N.V.length<=1)){var z=N.V.pop(),v=N.V[0];N.V=[v];xBK(N,z,v,!0)}}; xBK=function(N,z,v,R){e82(N);z&&(z.unsubscribe("size-change",N.Z8,N),z.unsubscribe("back",N.vK,N));v.subscribe("size-change",N.Z8,N);v.subscribe("back",N.vK,N);if(N.Vh){g.Ye(v.element,R?"ytp-panel-animate-back":"ytp-panel-animate-forward");v.Nd(N.element);v.focus();N.element.scrollLeft=0;N.element.scrollTop=0;var C=N.size;GOu(N);g.XM(N.element,C);N.G=new g.cn(function(){Jeu(N,z,v,R)},20,N); N.G.start()}else v.Nd(N.element),z&&z.detach()}; Jeu=function(N,z,v,R){N.G.dispose();N.G=null;g.Ye(N.element,"ytp-popup-animating");R?(g.Ye(z.element,"ytp-panel-animate-forward"),g.jW(v.element,"ytp-panel-animate-back")):(g.Ye(z.element,"ytp-panel-animate-back"),g.jW(v.element,"ytp-panel-animate-forward"));g.XM(N.element,N.size);N.L=new g.cn(function(){g.jW(N.element,"ytp-popup-animating");z.detach();g.aO(z.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);N.L.dispose();N.L=null},250,N); N.L.start()}; e82=function(N){N.G&&g.Mv(N.G);N.L&&g.Mv(N.L)}; Bh=function(N){g.mv.call(this,N,"ytp-shopping-product-menu");this.k$=new g.FW(this.C);g.b(this,this.k$);this.hide();g.$2(this,this.k$);g.PX(this.C,this.element,4)}; fEu=function(N,z,v){var R,C=z==null?void 0:(R=z.text)==null?void 0:R.simpleText;C&&(v=yeb(N,v,C,z==null?void 0:z.icon,z==null?void 0:z.secondaryIcon),z.navigationEndpoint&&v.listen("click",function(){N.C.Qp("innertubeCommand",z.navigationEndpoint);N.hide()},N))}; dBK=function(N,z,v){var R,C=z==null?void 0:(R=z.text)==null?void 0:R.simpleText;C&&yeb(N,v,C,z==null?void 0:z.icon).listen("click",function(){var Z;(z==null?void 0:(Z=z.icon)==null?void 0:Z.iconType)==="HIDE"?N.C.publish("featuredproductdismissed"):z.serviceEndpoint&&N.C.Qp("innertubeCommand",z.serviceEndpoint);N.hide()},N)}; yeb=function(N,z,v,R,C){z=new g.Xj(g.r1({},[],!1,!!C),z,v);C&&z.updateValue("secondaryIcon",sx_(C));z.setIcon(sx_(R));g.b(N,z);N.k$.dH(z,!0);return z}; sx_=function(N){if(!N)return null;switch(N.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{K:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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 Weu();case "HIDE":return{K:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"g",j:[{K:"path",T:{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 nK()}}; Ao=function(N){sR.call(this,N,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.X({K:"button",GU:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.X({K:"img",U:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); this.thumbnailImage.hide();g.b(this,this.thumbnailImage);this.thumbnailIcon=new g.X({K:"div",U:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.b(this,this.thumbnailIcon);this.banner=new g.X({K:"a",U:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{K:"div",U:"ytp-suggested-action-details",j:[{K:"text",U:"ytp-suggested-action-title",OT:"{{title}}"},{K:"text",U:"ytp-suggested-action-subtitle",OT:"{{subtitle}}"},{K:"text",U:"ytp-suggested-action-metadata-text", OT:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.b(this,this.banner);this.banner.Nd(this.Z.element);this.S(this.C,"videodatachange",this.onVideoDataChange);this.S(this.C,g.R2("suggested_action_view_model"),this.W9L);this.S(this.C,g.C7("suggested_action_view_model"),this.A0p);this.S(this.overflowButton.element,"click",this.Kj);this.S(N,"featuredproductdismissed",this.Xd);this.C.createServerVe(this.banner.element,this.banner,!0)}; Tcb=function(N){N.isInitialized&&(N.enabled=N.isVisible,N.Vp=N.isVisible,dX(N),N.Dt(),N.thumbnailImage.iF(N.isVisible),N.shouldHideDismissButton||N.dismissButton.iF(N.isVisible),N.shouldShowOverflowButton&&N.overflowButton.iF(N.isVisible))}; gX=function(){Ao.apply(this,arguments)}; F2U=function(N){q1.call(this,N);this.V=new gX(this.api);g.b(this,this.V);g.PX(this.api,this.V.element,4)}; pP=function(N){q1.call(this,N);var z=this;this.V="";this.Z=!0;this.W=this.api.X("html5_enable_audio_track_stickiness_phase_two");var v=new g.VV(N);g.b(this,v);v.S(N,"internalaudioformatchange",function(R,C){nM2(z,R,C)}); v.S(N,"videoplayerreset",function(){mBu(z)}); v.S(N,"videodatachange",function(R,C){z.onVideoDataChange(R,C)})}; nM2=function(N,z,v){if(v){var R="";if($Bb(N,z)&&(R=z,N.W||(N.V=z),N.api.X("html5_sabr_enable_server_xtag_selection"))){if(v=N.api.getVideoData(void 0,!0))v.Qj=z;N.api.D().ET=z}if(N.W&&R&&UBu(N,R)){R_Y(N.api,N.V||R);var C;x0(ZM(N.api.D(),(C=N.api.getVideoData())==null?void 0:g.hf(C)),function(Z){Bcu(N,R,Z)})}}}; mBu=function(N){if(N.V)AeO(N);else{var z;if(N.W&&((z=us())==null?0:z.size)){var v;x0(ZM(N.api.D(),(v=N.api.getVideoData())==null?void 0:g.hf(v)),function(R){if((R=gM7(R))&&UBu(N,R)){var C=N.api.getVideoData(void 0,!0);C&&(C.Qj=R);N.api.D().ET=R}})}}}; AeO=function(N){var z=N.api.getVideoData(void 0,!0);z&&(z.Qj=N.V)}; Bcu=function(N,z,v){gM7(v)!==z&&(p52([{settingItemId:k2(v),settingOptionValue:{stringValue:z}}]),x0(N.dD(),function(R){Ctf(R,k2(v),{stringValue:z})}))}; kOx=function(N,z){ev(x0(x0(N.dD(),function(v){return vEK(v,[k2(z)])}),function(v){if(v){v=g.f(v); for(var R=v.next();!R.done;R=v.next()){var C=R.value;R=C.key;C=C.value;R&&C&&(p52([{settingItemId:R,settingOptionValue:C}]),mBu(N))}}}),function(){N.Z=!0})}; $Bb=function(N,z){N=N.api.getAvailableAudioTracks();N=g.f(N);for(var v=N.next();!v.done;v=N.next())if(v=v.value,v.getLanguageInfo().getId()===z)return v;return null}; gM7=function(N){N=k2(N);var z=us();N=z?z.get(N):void 0;return N&&N.stringValue?N.stringValue:""}; k2=function(N){var z=(484).toString();N&&(z=(483).toString());return z}; UBu=function(N,z){var v;return z.split(".")[0]!==""&&((v=N.api.getVideoData())==null?void 0:!Dk(v))}; p52=function(N){var z=us();z||(z=new Map);N=g.f(N);for(var v=N.next();!v.done;v=N.next())v=v.value,z.set(v.settingItemId,v.settingOptionValue);z=JSON.stringify(Object.fromEntries(z));g.ka("yt-player-user-settings",z,2592E3)}; g.Ph=function(N,z,v,R,C,Z,Y){g.Xj.call(this,g.r1({"aria-haspopup":"true"}),z,N);this.b$=R;this.Y=!1;this.Z=null;this.options={};this.W=new g.FW(v,void 0,N,C,Z,Y);g.b(this,this.W);this.listen("keydown",this.RZ);this.listen("click",this.open)}; PV2=function(N){if(N.Z){var z=N.options[N.Z];z.element.getAttribute("aria-checked");z.element.setAttribute("aria-checked","false");N.Z=null}}; Vfb=function(N,z){g.Ph.call(this,"Temporizador de suspensi\u00f3n",g.Qo.SLEEP_TIMER,N,z);this.C=N;this.J={};this.G=this.Y7("Off");this.L=this.V="";N.X("web_settings_menu_icons")&&this.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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.N=new g.X({K:"div",GU:["ytp-menuitem-label-wrapper"],j:[{K:"div",OT:"Final del v\u00eddeo"},{K:"div",GU:["ytp-menuitem-sublabel"],OT:"{{content}}"}]});g.b(this,this.N);this.listen("click",this.onClick);this.S(N,"videodatachange",this.onVideoDataChange);this.S(N,"presentingplayerstatechange",this.FW);this.S(N,"settingsMenuVisibilityChanged",this.iGp);N.createClientVe(this.element,this,218889);this.FW();this.C.Qp("onSleepTimerFeatureAvailable")}; S$K=function(N){var z="Off 10 15 20 30 45 60".split(" "),v;((v=N.C.getVideoData())==null?0:v.isLivePlayback)||z.push("End of video");v=N.C.getPlaylist();var R;v&&((R=v.listId)==null?void 0:R.type)!=="RD"&&z.push("End of playlist");N.OA(g.OL(z,N.Y7));N.J=g.H$(z,N.Y7,N);z=N.Y7("End of video");N.options[z]&&g.Iu(N.options[z],N.N)}; EMY=function(N,z){var v=N.J[z],R=v==="End of video"||v==="End of playlist";v==="Off"&&(N.V="");N.C.getPlayerState()!==0&&N.C.getPlayerState()!==5||!R?(N.G=z,g.Ph.prototype.kB.call(N,z),N.jI(z),N.C.Qp("onSleepTimerSettingsChanged",v)):N.C.Qp("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}; VK=function(N){q1.call(this,N);var z=this;N.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new Vfb(z.api,z.api.cW()),g.b(z,z.menuItem))}); N.addEventListener("openSettingsMenuItem",function(v){if(v==="menu_item_sleep_timer"){if(!z.menuItem){var R;(R=z.api.cW())==null||R.uF()}z.menuItem.open()}}); iH(N,"resetSleepTimerMenuSettings",function(){z.resetSleepTimerMenuSettings()}); iH(N,"setSleepTimerTimeLeft",function(v){z.setSleepTimerTimeLeft(v)}); iH(N,"setVideoTimeLeft",function(v){z.setVideoTimeLeft(v)})}; h8Y=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"onSnackbarMessage",function(v){switch(v){case 1:v=z.api.getPlayerStateObject(),v.isBuffering()&&g.u(v,8)&&g.u(v,16)&&z.api.Qp("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Saber por qu\u00e9"}]},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.ER=function(N,z,v,R,C){z=z===void 0?!1:z;R=R===void 0?!1:R;C=C===void 0?!1:C;g.jJ.call(this);this.J=C;this.L=!1;this.N=new $a(this);this.B=this.G=null;this.Z=this.W=!1;g.b(this,this.N);this.target=N;this.V=z;this.Y=v||N;this.L=R;z&&(g.uU&&this.target.setAttribute("draggable","true"),C||(this.target.style.touchAction="none"));Sn(this)}; ho=function(N){g.Be(N.N,!N.V)}; Sn=function(N){N.B=null;N.G=null;N.S(Hh("over"),N.X3);N.S("touchstart",N.jQ);N.V&&N.S(Hh("down"),N.Z0T)}; Hn_=function(N,z){for(var v=0;vC.start&&v>=5;d+=m}G=d.substr(0,4)+" "+d.substr(4,4)+" "+d.substr(8,4)+" "+(d.substr(12,4)+" "+d.substr(16,4))}else G="";Y={video_id_and_cpn:String(z.videoId)+" / "+G,codecs:"", dims_and_frames:"",bandwidth_kbps:Y.toFixed(0)+" Kbps",buffer_health_seconds:L.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:K?"":"display:none",drm:K,debug_info:v,extra_debug_info:"",bandwidth_style:W,network_activity_style:W,network_activity_bytes:Q.toFixed(0)+" KB",shader_info:l,shader_info_style:l?"":"display:none",playback_categories:""};Q=R.clientWidth+"x"+R.clientHeight+(C>1?"*"+C.toFixed(2):"");L="-";Z.totalVideoFrames&&(L=(Z.droppedVideoFrames||0)+" dropped of "+Z.totalVideoFrames); Y.dims_and_frames=Q+" / "+L;N=N.getVolume();Q=dsf(z);var P;if((P=z.N)==null?0:P.audio.W)P="VB";else{var V;P=((V=z.N)==null?0:V.audio.V)?"DRC":Math.round(N*Q)+"%"}V=Math.round(N)+"% / "+P;P=z.Lr.toFixed(1);isFinite(Number(P))&&(V+=" (content loudness "+P+"dB)");Y.volume=V;Y.resolution=R.videoWidth+"x"+R.videoHeight;if(R=z.W){if(V=R.video)P=V.fps,P>1&&(Y.resolution+="@"+P),(P=Z.Lx)&&P.video&&(Y.resolution+=" / "+P.video.width+"x"+P.video.height,P.video.fps>1&&(Y.resolution+="@"+P.video.fps)),Y.codecs= IEY(R),!z.N||R.audio&&R.video?R.FA&&(Y.codecs+=" / "+R.FA+"A"):Y.codecs+=" / "+IEY(z.N),V.V||V.primaries?(P=V.V||"unknown",P==="smpte2084"?P+=" (PQ)":P==="arib-std-b67"&&(P+=" (HLG)"),Y.color=P+" / "+(V.primaries||"unknown"),Y.color_style=""):Y.color_style="display:none";if(R.debugInfo)for(Y.fmt_debug_info="",R=g.f(R.debugInfo),V=R.next();!V.done;V=R.next())V=V.value,Y.fmt_debug_info+=V.label+":"+V.text+" ";Y.fmt_debug_info_style=Y.fmt_debug_info&&Y.fmt_debug_info.length>0?"":"display:none"}R=z.isLivePlayback; V=z.pG;Y.live_mode_style=R||V?"":"display:none";Y.live_latency_style=R?"":"display:none";if(V)Y.live_mode="Post-Live"+(Ke(z)?" Manifestless":"");else if(R){V=Z.T1;Y.live_latency_secs=V.toFixed(2)+"s";R=Ke(z)?"Manifestless, ":"";z.Vp&&(R+="Windowed, ");P="Uncertain";if(V>=0&&V<120)if(z.latencyClass&&z.latencyClass!=="UNKNOWN")switch(z.latencyClass){case "NORMAL":P="Optimized for Normal Latency";break;case "LOW":P="Optimized for Low Latency";break;case "ULTRALOW":P="Optimized for Ultra Low Latency"; break;default:P="Unknown Latency Setting"}else P=z.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";R+=P;(V=Z.jk)&&(R+=", seq "+V.sequence);Y.live_mode=R}!Z.isGapless||Ce(z)&&Z.kG||(Y.playback_categories+="Gapless ");Y.playback_categories_style=Y.playback_categories?"":"display:none";Y.bandwidth_samples=Z.gS;Y.network_activity_samples=Z.FI;Y.live_latency_samples=Z.ac;Y.buffer_health_samples=Z.ao;Z=g.ID(z);if(z.cotn||Z)Y.cotn_and_local_media=(z.cotn?z.cotn:"null")+ " / "+Z;Y.cotn_and_local_media_style=Y.cotn_and_local_media?"":"display:none";Mk(z,"web_player_release_debug")?(Y.release_name=a[50],Y.release_style=""):Y.release_style="display:none";Y.debug_info&&x.length>0&&Y.debug_info.length+x.length<=60?Y.debug_info+=" "+x:Y.extra_debug_info=x;Y.extra_debug_info_style=Y.extra_debug_info&&Y.extra_debug_info.length>0?"":"display:none";return Y}; IEY=function(N){var z=/codecs="([^"]*)"/.exec(N.mimeType);return z&&z[1]?z[1]+" ("+N.itag+")":N.itag}; XW=function(N,z,v,R,C){g.X.call(this,{K:"div",U:"ytp-horizonchart"});this.L=z;this.sampleCount=v;this.N=R;this.G=C;this.index=0;this.heightPx=-1;this.Z=this.W=null;this.V=Math.round(N/v);this.element.style.width=this.V*this.sampleCount+"px";this.element.style.height=this.L+"em"}; rX=function(N,z){if(N.heightPx===-1){var v=null;try{v=g.h(g.wL("CANVAS")),N.W=v.getContext("2d")}catch(Q){}if(N.W){var R=N.V*N.sampleCount;N.Z=v;N.Z.width=R;N.Z.style.width=R+"px";N.element.appendChild(N.Z)}else for(N.sampleCount=Math.floor(N.sampleCount/4),N.V*=4,v=0;v1?2:1,N.Z.height=N.heightPx*v, N.Z.style.height=N.heightPx+"px",N.W.scale(1,v)));z=g.f(z);for(R=z.next();!R.done;R=z.next()){v=N;var C=N.index,Z=R.value;for(R=0;R+20&&g.vV(z.Z.element);R.classList.add("ytp-timely-actions-overlay");z.Z.element.appendChild(R)}); g.b(this,this.Z);g.PX(this.api,this.Z.element,4)}; jf2=function(N){N.timelyActions&&(N.N=N.timelyActions.reduce(function(z,v){if(v.cueRangeId===void 0)return z;z[v.cueRangeId]=0;return z},{}))}; wX=function(N,z){if(N.timelyActions){N=g.f(N.timelyActions);for(var v=N.next();!v.done;v=N.next())if(v=v.value,v.cueRangeId===z)return v}}; abu=function(N,z){if((N=wX(N,z))&&N.onCueRangeExit)return hT(N.onCueRangeExit)}; MM=function(N){if(N.V!==void 0){var z=(z=wX(N,N.V))&&z.onCueRangeEnter?hT(z.onCueRangeEnter):void 0;var v=wX(N,N.V);a:if(v&&v.additionalTrigger){var R=g.f(v.additionalTrigger);for(var C=R.next();!C.done;C=R.next())if(C=C.value,C.type){var Z=void 0,Y=void 0;if((Z=N.J[C.type])==null?0:Z((Y=C.args)!=null?Y:{})){R=!0;break a}}R=!1}else R=!0;z&&R&&(N.api.Qp("innertubeCommand",z),N.setTimeout(v),N.N[N.V]!==void 0&&N.N[N.V]++,N.G=!0)}}; Cnx=function(N,z){return N.W===void 0?!1:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===5E3?N.W===72:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===1E4?N.W===74:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===5E3?N.W===71:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===1E4?N.W===73:!1}; Z8u=function(N){if(N=N.getWatchNextResponse()){var z,v;N=(z=N.playerOverlays)==null?void 0:(v=z.playerOverlayRenderer)==null?void 0:v.timelyActionsOverlayViewModel;z=g.t(N,Qfu);if(z!=null&&z.timelyActions)return z==null?void 0:z.timelyActions.map(function(R){return g.t(R,Llm)}).filter(function(R){return!!R})}}; Klb=function(N){q1.call(this,N);var z=this;je(this.api,"getPlaybackRate",function(){return z.api.getPlaybackRate()}); je(this.api,"setPlaybackRate",function(v){typeof v==="number"&&z.api.setPlaybackRate(v)})}; Nr=function(N,z,v,R){Cs.call(this,"VOICE_BOOST",g.Qo.XR);this.V=!1;this.C=N;this.b$=N.cW();this.N=z;this.Z=v;this.hasVoiceBoostAudioTrack=R;this.S(N,"videodatachange",this.W);this.setIcon(dpf());this.subscribe("select",this.G,this);this.W()}; zI=function(N){q1.call(this,N);var z=this;this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"settingsMenuInitialized",function(){lbu(z)}); iH(this.api,"getVoiceBoostUserPreference",function(){return z.getVoiceBoostUserPreference()}); iH(this.api,"setVoiceBoostUserPreference",function(R){z.setVoiceBoostUserPreference(R)}); iH(this.api,"hasVoiceBoostAudioTrack",function(){return z.hasVoiceBoostAudioTrack()}); var v;this.V=(v=bM_())!=null?v:0;this.updateEnvironmentData()}; lbu=function(N){N.menuItem||(N.menuItem=new Nr(N.api,function(z){N.setVoiceBoostUserPreference(z)},function(){return N.getVoiceBoostUserPreference()},function(){return N.hasVoiceBoostAudioTrack()}),g.b(N,N.menuItem))}; WlO=function(N){N=N.IP();if(!N)return!1;N=g.R0(N).exp||"";return N.includes("xpv")||N.includes("xpe")}; GdU=function(N){N=g.f(g.vb(N,!0));for(var z=N.next();!z.done;z=N.next())if(WlO(z.value))return!0;return!1}; xZf=function(N,z){N=g.f(g.vb(N,!0));for(var v=N.next();!v.done;v=N.next())if(v=v.value,WlO(v)){var R={potc:"1",pot:z};v.url&&(v.url=CX(v.url,R))}}; ez2=function(N){return g.S(function(z){if(z.W==1)return g.d_(z,2),g.k(z,N,4);if(z.W!=2)return g.nO(z,0);g.U2(z);g.fO(z)})}; CL=function(N){q1.call(this,N);var z=this;this.useLivingRoomPoToken=!1;this.B=new g.Ww;this.V=!1;this.dW=null;this.Y=!1;this.N=null;this.G=!1;var v=N.D().getWebPlayerContextConfig();this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"spsumpreject",function(R,C,Z){z.G=C;R&&z.Y&&!z.N&&(z.X("html5_generate_content_po_token")&&Z?z.eD(Z):z.X("html5_generate_session_po_token")&&Jzv(z));z.N||z.api.WL("stp",{s:+z.Y,b:+z.G})}); this.events.S(N,"poTokenVideoBindingChange",function(R){z.eD(R)}); this.useLivingRoomPoToken=!(v==null||!v.useLivingRoomPoToken);N.addEventListener("csiinitialized",function(){z.dW=N.M2();var R=(z.X("html5_generate_session_po_token")||z.X("html5_generate_content_po_token"))&&!z.useLivingRoomPoToken;try{if(z.X("html5_use_shared_owl_instance"))yzu(z);else if(R){z.dW.CU("pot_isc");var C=g.LM(z.api.D().experiments,"html5_webpo_kaios_defer_timeout_ms");C?(z.Z=o9(),g.W9(function(){Ri(z)},C)):z.X("html5_webpo_idle_priority_job")?(z.Z=o9(),g.M0(g.Np(),function(){Ri(z)})): Ri(z)}}catch(Z){Z instanceof Error&&g.PN(Z)}}); N.addEventListener("trackListLoaded",this.HK.bind(this));N.bT(this)}; fb2=function(N){var z=zx(N.experiments,"html5_web_po_request_key");return z?z:g.nM(N)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; dZu=function(N){var z=new RkU,v={},R=(v["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",v);return new f$(z,N,function(){return R})}; sfm=function(N){return new d2(N)}; Zf=function(N,z){N.X("html5_webpo_bge_ctmp")&&N.api.WL(z,{hwpo:!!N.W,hwpor:N.V})}; yzu=function(N){var z,v;g.S(function(R){if(R.W==1)return Zf(N,"swpo_i"),N.Z=o9(),YD(N),g.k(R,ZJ(),2);if(R.W!=3)return z=R.V,Zf(N,"swpo_co"),g.k(R,VBf(z),3);v=R.V;N.X("html5_web_po_token_disable_caching")||v.a$(150);N.W=v;Zf(N,"swpo_cc");ez2(v.xb()).then(function(){N.V=!0;N.B.resolve();Zf(N,"swpo_re")}); g.W9(function(){Ri(N);Zf(N,"swpo_si")},0); g.fO(R)})}; Fl7=function(N){var z=N.api.D(),v=dZu(fb2(z)),R=v.lr.bind(v);v.lr=function(Q){var L;return g.S(function(K){if(K.W==1)return g.k(K,R(Q),2);L=K.V;N.api.WL("itr",{});return K.return(L)})}; try{var C=sfm({LN:v,ju:{maxAttempts:5},QG:{DO:"CLEn",disable:z.experiments.j8("html5_web_po_disable_remote_logging")||TMv.includes(g.nt(z.bL)||""),Hz:PEO(z.experiments),rOW:N.X("wpo_dis_lfdms")?0:1E3},OVS:g.PN});var Z=new hh({mQ:C,LN:v,onError:g.PN});ez2(Z.xb()).then(function(){N.V=!0;N.B.resolve()}); N.X("html5_web_po_token_disable_caching")||Z.a$(150);g.b(N,C);g.b(N,Z);N.W=Z}catch(Q){g.PN(Q);var Y;(Y=C)==null||Y.dispose()}}; Ri=function(N){var z=N.api.D();N.dW.CU("pot_ist");N.W||Fl7(N);N.X("html5_bandaid_attach_content_po_token")||(N.X("html5_generate_session_po_token")&&(YD(N),Jzv(N)),z=g.LM(z.experiments,"html5_session_po_token_interval_time_ms")||0,z>0&&(N.L=g.GU(function(){YD(N)},z)),N.Y=!0)}; YD=function(N){var z,v,R,C;g.S(function(Z){if(!N.X("html5_generate_session_po_token")||N.useLivingRoomPoToken)return Z.return();z=N.api.D();v=g.XI("EOM_VISITOR_DATA")||g.XI("VISITOR_DATA");R=z.m1?z.datasyncId:v;C=zx(z.experiments,"html5_mock_content_binding_for_session_token")||z.livingRoomPoTokenId||R;z.L5=iF(N,C);g.fO(Z)})}; iF=function(N,z){if(!N.W){if(N.Z)try{return N.Z(z)}catch(Z){g.PN(Z)}return""}try{N.dW.CU(N.V?"pot_cms":"pot_csms");var v={XI:!0,LP:!0,GA:z};N.X("html5_web_po_token_disable_caching")||(v.CE={HV:z,m7:!0,Oh:!0});var R=N.W.gI(v);N.dW.CU(N.V?"pot_cmf":"pot_csmf");if(N.V){var C;(C=N.N)==null||C.resolve();N.N=null;N.G&&(N.G=!1,N.api.app.f0().Iv(!1))}return R}catch(Z){return g.PN(Z),""}}; Jzv=function(N){N.W&&(N.N=new qa,N.B.promise.then(function(){N.dW.CU("pot_if");YD(N)}))}; jK=function(N){q1.call(this,N);var z=this,v=new g.VV(N);g.b(this,v);v.S(N,"fullscreentoggled",function(R){niO(z,R)}); iH(this.api,"setFullscreenQuickActions",function(R){z.setFullscreenQuickActions(R)}); iH(this.api,"setPlayerOverlayVideoDetailsRenderer",function(R){z.setPlayerOverlayVideoDetailsRenderer(R)})}; niO=function(N,z){N.V&&g.um(N.V,z);N.playerOverlayVideoDetailsRenderer&&g.um(N.playerOverlayVideoDetailsRenderer,z)}; mZu=function(N){q1.call(this,N);var z=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.VV(N);g.b(this,this.events);this.events.S(N,"heartbeatRequest",function(v){if(z.freePreviewUsageDetails.length||z.freePreviewWatchedDuration!==null)v.heartbeatRequestParams||(v.heartbeatRequestParams={}),v.heartbeatRequestParams.unpluggedParams||(v.heartbeatRequestParams.unpluggedParams={}),z.freePreviewUsageDetails.length>0?v.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= z.freePreviewUsageDetails:v.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+z.freePreviewWatchedDuration}}); iH(N,"setFreePreviewWatchedDuration",function(v){z.freePreviewWatchedDuration=v}); iH(N,"setFreePreviewUsageDetails",function(v){z.freePreviewUsageDetails=v})}; ai=function(N){g.H.call(this);this.features=[];var z=this.V,v=new Fq(N),R=new M1(N),C=new GG(N),Z=new CL(N);var Y=g.TW(N.D())?void 0:new ed(N);var Q=new Wh(N),L=new ceu(N),K=new Klb(N),l=new Te(N);var W=g.TW(N.D())?new mZu(N):void 0;var G=N.X("html5_enable_ssap")?new OnO(N):void 0;var x=N.X("web_cinematic_watch_settings")&&(x=N.D().getWebPlayerContextConfig())!=null&&x.cinematicSettingsAvailable?new lp(N):void 0;var e=new sz(N);var d=N.X("enable_courses_player_overlay_purchase")?new PsY(N):void 0; var T=g.ci(N.D())?new AGK(N):void 0;var m=new Jp(N);var n=N.D().N?new FJ2(N):void 0;var P=g.Uu(N.D())?new TqU(N):void 0;var V=N.X("web_player_move_autonav_toggle")&&N.D().Bc?new GzK(N):void 0;var D=g.ci(N.D())?new bLu(N):void 0;var c=N.X("web_enable_speedmaster")&&g.ci(N.D())?new be(N):void 0;var r=N.D().uY?void 0:new Rz2(N);var Rv=N.X("report_pml_debug_signal")?new LJY(N):void 0;var Zu=new vMu(N),Nx=new yK(N);var av=g.S0(N.D())?new K2I(N):void 0;var M=navigator.mediaSession&&window.MediaMetadata&& N.D().UV?new KP(N):void 0;var s2=N.X("html5_enable_drc")&&!N.D().G?new xY(N):void 0;var $m=new NO(N);var O2=g.ci(N.D())?new F2U(N):void 0;var m7=N.X("html5_enable_d6de4")?new x2(N):void 0;var QU=g.ci(N.D())&&N.X("web_sleep_timer")?new VK(N):void 0;var BU=g.Uu(N.D())?new m$u(N):void 0;var mu=new pP(N),Y5=new fvb(N),F=new DrU(N);var jI=N.X("enable_sabr_snackbar_message")?new h8Y(N):void 0;var rE=N.X("web_enable_timely_actions")?new i8I(N):void 0;var TM=new WO(N);var gE=g.ci(N.D())?new jK(N):void 0; N=N.X("html5_enable_voice_boost")?new zI(N):void 0;z.call(this,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D,c,r,Rv,Zu,Nx,av,void 0,M,s2,$m,void 0,O2,m7,QU,BU,void 0,mu,Y5,F,void 0,jI,rE,TM,gE,N)}; $ZY=function(){this.W=this.V=NaN}; UZv=function(N,z){this.iS=N;this.timerName="";this.Z=!1;this.W=NaN;this.N=new $ZY;this.V=z||null;this.Z=!1}; BMU=function(N,z,v){var R=g.Pi(z.bS)&&!z.bS.G;if(z.bS.w5&&(AR(z.bS)||z.bS.Rd==="shortspage"||zf(z.bS)||R)&&!N.Z){N.Z=!0;N.G=z.clientPlaybackNonce;g.XI("TIMING_ACTION")||Ih("TIMING_ACTION",N.iS.csiPageType);N.iS.csiServiceName&&Ih("CSI_SERVICE_NAME",N.iS.csiServiceName);if(N.V){R=N.V.M2();for(var C=g.f(Object.keys(R)),Z=C.next();!Z.done;Z=C.next())Z=Z.value,H_(Z,R[Z],N.timerName);R=g.qV(P$v)(N.V.HG);g.oc(R,N.timerName);R=N.V;R.W={};R.HG={}}g.oc({playerInfo:{visibilityState:g.qV(kRu)()},playerType:"LATENCY_PLAYER_HTML5"}, N.timerName);N.B!==z.clientPlaybackNonce||Number.isNaN(N.W)||(bv("_start",N.timerName)?v=g.qV(P_)("_start",N.timerName)+N.W:g.PN(new g.XS("attempted to log gapless pbs before CSI timeline started",{cpn:z.clientPlaybackNonce})));v&&!bv("pbs",N.timerName)&&QG(N,v)}}; QG=function(N,z,v){H_("pbs",z!=null?z:(0,g.I)(),v!=null?v:N.timerName)}; LL=function(N){OG7();tbU();N.timerName=""}; Azu=function(N){if(N.V){var z=N.V;z.W={};z.HG={}}N.Z=!1;N.B=void 0;N.W=NaN}; giO=function(N,z){g.jJ.call(this);this.bS=N;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.V=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.J={};this.W=0;if(N=z.session_data)this.sessionData=wb(N,"&");this.index=Math.max(0,Number(z.index)||0);this.loop=!!z.loop;this.startSeconds=Number(z.startSeconds)||0;this.title=z.playlist_title||"";this.description=z.playlist_description||"";this.author= z.author||z.playlist_author||"";z.video_id&&(this.items[this.index]=z);if(N=z.api)typeof N==="string"&&N.length===16?z.list="PL"+N:z.playlist=N;if(N=z.list)switch(z.listType){case "user_uploads":this.listId=new di("UU","PLAYER_"+N);break;default:var v=z.playlist_length;v&&(this.length=Number(v)||0);this.listId=g.Tf(N);if(N=z.video)this.items=N.slice(0),this.loaded=!0}else if(z.playlist){N=z.playlist.toString().split(",");this.index>0&&(this.items=[]);N=g.f(N);for(v=N.next();!v.done;v=N.next())(v= v.value)&&this.items.push({video_id:v});this.length=this.items.length;if(N=z.video)this.items=N.slice(0),this.loaded=!0}this.setShuffle(!!z.shuffle);if(N=z.suggestedQuality)this.quality=N;this.J=er(z,"playlist_");this.Z=(z=z.thumbnail_ids)?z.split(","):[]}; pB7=function(N){return!!(N.playlist||N.list||N.api)}; kdI=function(N){var z=N.index+1;return z>=N.length?0:z}; Pnu=function(N){var z=N.index-1;return z<0?N.length-1:z}; g.KL=function(N,z,v,R){z=z!==void 0?z:N.index;z=N.items&&z in N.items?N.items[N.order[z]]:null;var C=null;z&&(v&&(z.autoplay="1"),R&&(z.autonav="1"),C=new g.Os(N.bS,z),g.b(N,C),C.oM=!0,C.startSeconds=N.startSeconds||C.clipStart||0,N.listId&&(C.playlistId=N.listId.toString()));return C}; Vuu=function(N,z){N.index=g.UC(z,0,N.length-1);N.startSeconds=0}; S4v=function(N,z){if(z.video&&z.video.length){N.title=z.title||"";N.description=z.description;N.views=z.views;N.likes=z.likes;N.dislikes=z.dislikes;N.author=z.author||"";var v=z.loop;v&&(N.loop=v);v=g.KL(N);N.items=[];for(var R=g.f(z.video),C=R.next();!C.done;C=R.next())if(C=C.value)C.video_id=C.encrypted_id,N.items.push(C);N.length=N.items.length;(z=z.index)?N.index=z:N.findIndex(v);N.setShuffle(!1);N.loaded=!0;N.W++;N.V&&N.V()}}; H8_=function(N,z){var v,R,C,Z,Y,Q,L;return g.S(function(K){if(K.W==1){v=g.ZX();var l=N.D(),W={context:g.Z2(N),playbackContext:{contentPlaybackContext:{ancestorOrigins:l.ancestorOrigins}}},G=l.getWebPlayerContextConfig();if(G==null?0:G.encryptedHostFlags)W.playbackContext.contentPlaybackContext.encryptedHostFlags=G.encryptedHostFlags;if(G==null?0:G.hideInfo)W.playerParams={showinfo:!1};l=l.embedConfig;G=z.docid||z.video_id||z.videoId||z.id;if(!G){G=z.raw_embedded_player_response;if(!G){var x=z.embedded_player_response; x&&(G=JSON.parse(x))}if(G){var e,d,T,m,n,P;G=((P=g.t((e=G)==null?void 0:(d=e.embedPreview)==null?void 0:(T=d.thumbnailPreviewRenderer)==null?void 0:(m=T.playButton)==null?void 0:(n=m.buttonRenderer)==null?void 0:n.navigationEndpoint,g.wi))==null?void 0:P.videoId)||null}else G=null}e=(e=G)?e:void 0;d=N.playlistId?N.playlistId:z.list;T=z.listType;if(d){var V;T==="user_uploads"?V={username:d}:V={playlistId:d};EiU(l,e,z,V);W.playlistRequest=V}else z.playlist?(V={templistVideoIds:z.playlist.toString().split(",")}, EiU(l,e,z,V),W.playlistRequest=V):e&&(V={videoId:e},l&&(V.serializedThirdPartyEmbedConfig=l),W.singleVideoRequest=V);R=W;C=g.N3(hzf);g.d_(K,2);return g.k(K,g.rZ(v,R,C),4)}if(K.W!=2)return Z=K.V,Y=N.D(),z.raw_embedded_player_response=Z,Y.K0=jc(z,g.Uu(Y)),Y.Z=Y.K0==="EMBEDDED_PLAYER_MODE_PFL",Z&&(Q=Z,Q.trackingParams&&PM(Q.trackingParams)),K.return(new g.Os(Y,z));L=g.U2(K);L instanceof Error||(L=Error("b259802748"));g.kE(L);return K.return(N)})}; EiU=function(N,z,v,R){v.index&&(R.playlistIndex=String(Number(v.index)+1));R.videoId=z?z:"";N&&(R.serializedThirdPartyEmbedConfig=N)}; g.Wb=function(N,z){lF.get(N);lF.set(N,z)}; g.GI=function(N){g.jJ.call(this);this.loaded=!1;this.player=N}; oi7=function(){this.W=[];this.V=[]}; g.vb=function(N,z){return z?N.V.concat(N.W):N.V}; g.xD=function(N,z){switch(z.kind){case "asr":DZv(z,N.W);break;default:DZv(z,N.V)}}; DZv=function(N,z){g.G1(z,function(v){return N.equals(v)})||z.push(N)}; g.eK=function(N){g.H.call(this);this.L0=N;this.W=new oi7;this.N=null;this.B=[];this.Y=[]}; g.Jk=function(N,z,v){g.eK.call(this,N);this.videoData=z;this.audioTrack=v;this.V=null;this.Z=!1;this.B=z.MD;this.Y=z.fJ;this.Z=g.VO(z)}; g.b8u=function(N,z){var v;return N.D().X("safari_live_drm_captions_fix")&&((v=N.getVideoData())==null?0:v.Uu())?!1:g.TW(N.D())&&!z.isManifestless}; g.yG=function(N,z){return vE(N.info.mimeType)?z?N.info.itag===z:!0:!1}; g.tuu=function(N,z){if(N.V!=null&&g.b8u(z,N.V)&&N.V.V.rawcc!=null)return!0;if(!N.Hb())return!1;z=!!N.V&&N.V.isManifestless&&Object.values(N.V.V).some(function(v){return g.yG(v,"386")}); N=!!N.V&&!N.V.isManifestless&&g.wEY(N.V);return z||N}; g.fL=function(N,z,v,R,C,Z){g.eK.call(this,N);this.videoId=v;this.Nm=C;this.eventId=Z;this.G={};this.V=null;N=R||g.R0(z).hl||"";N=N.split("_").join("-");this.Z=CX(z,{hl:N})}; O8Y=function(N,z){return z?{WH:N.WH&&z.WH,sync:N.sync&&z.sync,streaming:N.streaming&&z.streaming}:N}; XB2=function(N,z,v){return x0(IbO(z,v),JG(function(R){return function Z(){return Vf(Z,function(Y){if(Y.W==1){g.Tu(Y,2);try{return Y.return(new WebAssembly.Instance(R,N))}catch(Q){g.PN(Q)}return yf(Y,yP(WebAssembly.instantiate(R,N)),4)}if(Y.W!=2)return Y.return(Y.V);g.Ab(Y);return g.pO(Y,0)})}()}))}; rz2=function(N,z){if(!N.V)return z=fetch(z),N.V=x0(Kb(z),function(v){return v.arrayBuffer()}),ev(N.V,function(v){N.V=void 0; v="wasm module fetch failure: "+v;g.PN(Error(v));throw v;}),z}; IbO=function(N,z){var v=uR_;if(v.W)return v.W;var R=O8Y(v.capabilities,z);v.W=WM(function(){return v.Z(N,R)}); return v.W}; cz7=function(){}; q4_=function(){var N=this;this.proc_exit=function(){}; this.fd_write=function(z,v,R){if(!N.exports)return 1;z=new Uint32Array(N.exports.memory.buffer,v,R*2);v=[];for(var C=0;C=11;N=N.api.D().L&&pL;return!(!z&&!N)}; tk=function(N,z){return!N.api.isInline()&&!POO(N,nH(z))&&g.Ff(z)}; ki2=function(N){N.Gd.EQ();if(N.jC&&N.o$)N.o$=!1;else if(!N.api.D().BL&&!N.y8()){var z=N.api.getPlayerStateObject();g.u(z,2)&&g.$y(N.api)||N.s4(z);!N.api.D().gW||z.isCued()||g.u(z,1024)?N.Qs():N.fW.isActive()?(N.vY(),N.fW.stop()):N.fW.start()}}; SBm=function(N,z){var v;if((v=N.api.getVideoData())==null?0:v.mutedAutoplay){var R,C;if((R=z.target)==null?0:(C=R.className)==null?0:C.includes("ytp-info-panel"))return!1}return g.Ff(z)&&N.api.isMutedByMutedAutoplay()?(N.api.unMute(),N.api.getPresentingPlayerType()===2&&N.api.playVideo(),z=N.api.getPlayerStateObject(),!g.u(z,4)||g.u(z,8)||g.u(z,2)||N.Qs(),!0):!1}; Eox=function(N,z,v){N.api.isFullscreen()?v<1-z&&N.api.toggleFullscreen():v>1+z&&N.api.toggleFullscreen()}; pmK=function(N){var z=bQ()&&H9()>=67&&!N.api.D().L;N=N.api.D().disableOrganicUi;return!g.Dz("tizen")&&!nu&&!z&&!N}; g.OG=function(N){g.X.call(this,{K:"div",j:[{K:"div",U:"ytp-bezel-text-wrapper",j:[{K:"div",U:"ytp-bezel-text",OT:"{{title}}"}]},{K:"div",U:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},j:[{K:"div",U:"ytp-bezel-icon",OT:"{{icon}}"}]}]});this.C=N;this.W=new g.cn(this.show,10,this);N=this.C.X("delhi_modern_web_player")?1E3:500;this.V=new g.cn(this.hide,N,this);g.b(this,this.W);g.b(this,this.V);this.hide()}; Xt=function(N,z,v){if(z<=0){v=Au();z="silenciado";var R=0}else v=v?{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,T:{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"}}]},R=Math.floor(z),z=R+"volumen";Ii(N,v,z,R+"%")}; hEu=function(N,z){z=z?{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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"}}]}:l4f();var v=N.C.getPlaybackRate(),R=g.WA("Velocidad: $RATE",{RATE:String(v)});Ii(N,z,R,v+"x")}; HV7=function(N,z){z=z?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";Ii(N,JG7(),z)}; Ii=function(N,z,v,R){R=R===void 0?"":R;N.updateValue("label",v===void 0?"":v);N.updateValue("icon",z);g.ws(N.V);N.W.start();N.updateValue("title",R);g.QY(N.element,"ytp-bezel-text-hide",!R)}; oo7=function(N,z){g.X.call(this,{K:"button",GU:["ytp-button","ytp-cards-button"],T:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Uu(N.D()))},j:[{K:"span",U:"ytp-cards-button-icon-default",j:[{K:"div",U:"ytp-cards-button-icon",j:[N.D().X("player_new_info_card_format")?xp2():{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {K:"div",U:"ytp-cards-button-title",OT:"Informaci\u00f3n"}]},{K:"span",U:"ytp-cards-button-icon-shopping",j:[{K:"div",U:"ytp-cards-button-icon",j:[{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",U:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{K:"path",U:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{K:"path",U:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{K:"div", U:"ytp-cards-button-title",OT:"Shopping"}]}]});this.C=N;this.W=z;this.V=null;this.fade=new g.zX(this,250,!0,100);g.b(this,this.fade);g.QY(this.W,"ytp-show-cards-title",g.Uu(N.D()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.dN(!0)}; DE7=function(N,z){g.X.call(this,{K:"div",U:"ytp-cards-teaser",j:[{K:"div",U:"ytp-cards-teaser-box"},{K:"div",U:"ytp-cards-teaser-text",j:N.D().X("player_new_info_card_format")?[{K:"button",U:"ytp-cards-teaser-info-icon",T:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},j:[xp2()]},{K:"span",U:"ytp-cards-teaser-label",OT:"{{text}}"},{K:"button",U:"ytp-cards-teaser-close-button",T:{"aria-label":"Cerrar"},j:[g.dN()]}]:[{K:"span",U:"ytp-cards-teaser-label",OT:"{{text}}"}]}]});var v=this;this.C= N;this.Vl=z;this.fade=new g.zX(this,250,!1,250);this.V=null;this.L=new g.cn(this.MVW,300,this);this.G=new g.cn(this.BWp,2E3,this);this.N=[];this.W=null;this.Y=new g.cn(function(){v.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.b(this,this.fade);g.b(this,this.L);g.b(this,this.G);g.b(this,this.Y);N.D().X("player_new_info_card_format")?(g.Ye(N.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.e8("ytp-cards-teaser-close-button"),"click",this.pj),this.S(this.e8("ytp-cards-teaser-info-icon"),"click",this.h7),this.S(this.e8("ytp-cards-teaser-label"),"click",this.h7)):this.listen("click",this.h7);this.S(z.element,"mouseover",this.Qx);this.S(z.element,"mouseout",this.jX);this.S(N,"cardsteasershow", this.ATL);this.S(N,"cardsteaserhide",this.pV);this.S(N,"cardstatechange",this.QD);this.S(N,"presentingplayerstatechange",this.QD);this.S(N,"appresize",this.Q5);this.S(N,"onShowControls",this.Q5);this.S(N,"onHideControls",this.N_);this.listen("mouseenter",this.HE)}; bVx=function(N){g.X.call(this,{K:"button",GU:[re.BUTTON,re.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{K:"div",U:re.TITLE_NOTIFICATIONS_ON,T:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},j:[g.Fo()]},{K:"div",U:re.TITLE_NOTIFICATIONS_OFF,T:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"}, j:[{K:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{K:"path",T:{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=N;this.V=!1;N.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}; tym=function(N,z){N.V=z;N.element.classList.toggle(re.NOTIFICATIONS_ENABLED,N.V);var v=N.api.getVideoData();v?(z=z?v.YY:v.xY)?(N=N.api.dD())?Xh(N,z):g.kE(Error("No innertube service available when updating notification preferences.")):g.kE(Error("No update preferences command available.")):g.kE(Error("No video data when updating notification preferences."))}; Iam=function(N,z,v){var R=R===void 0?800:R;var C=C===void 0?600:C;var Z=document.location.protocol;N=zq2(Z+"//"+N+"/signin?context=popup","feature",z,"next",Z+"//"+location.hostname+"/post_login");OV7(N,v,R,C)}; OV7=function(N,z,v,R){v=v===void 0?800:v;R=R===void 0?600:R;if(N=g.RI(window,N,"loginPopup","width="+v+",height="+R+",resizable=yes,scrollbars=yes"))lzu(function(){z()}),N.moveTo((screen.width-v)/2,(screen.height-R)/2)}; g.uF=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){N=N.charAt(0)+N.substring(1).toLowerCase();v=v.charAt(0)+v.substring(1).toLowerCase();if(z==="0"||z==="-1")z=null;if(R==="0"||R==="-1")R=null;var G=l.D(),x=G.userDisplayName&&g.Pi(G);g.X.call(this,{K:"div",GU:["ytp-button","ytp-sb"],j:[{K:"div",U:"ytp-sb-subscribe",T:x?{title:g.WA("Suscribirse como $USER_NAME",{USER_NAME:G.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":v3(G),"data-tooltip-opaque":String(g.Uu(G)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},j:[{K:"div",U:"ytp-sb-text",j:[{K:"div",U:"ytp-sb-icon"},N]},z?{K:"div",U:"ytp-sb-count",OT:z}:""]},{K:"div",U:"ytp-sb-unsubscribe",T:x?{title:g.WA("Te has suscrito como $USER_NAME",{USER_NAME:G.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":v3(G),"data-tooltip-opaque":String(g.Uu(G)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},j:[{K:"div",U:"ytp-sb-text",j:[{K:"div",U:"ytp-sb-icon"},v]}, R?{K:"div",U:"ytp-sb-count",OT:R}:""]}],T:{"aria-live":"polite"}});var e=this;this.channelId=Y;this.C=l;this.Z=W;var d=this.e8("ytp-sb-subscribe"),T=this.e8("ytp-sb-unsubscribe");Z&&g.Ye(this.element,"ytp-sb-classic");if(C){Q?this.V():this.W();var m=function(){if(G.PL){var P=e.channelId;if(L||K){var V={c:P};var D;g.hG.isInitialized()&&(D=BRx(V));V=D||"";if(D=l.getVideoData())if(D=D.subscribeCommand){var c=l.dD();c?(Xh(c,D,{botguardResponse:V,feature:L}),l.Qp("SUBSCRIBE",P)):g.kE(Error("No innertube service available when updating subscriptions."))}else g.kE(Error("No subscribe command in videoData.")); else g.kE(Error("No video data available when updating subscription."))}T.focus();T.removeAttribute("aria-hidden");d.setAttribute("aria-hidden","true")}else Iam(g.Ou(e.C.D()),"sb_button",e.N)},n=function(){var P=e.channelId; if(L||K){var V=g.h(l.getVideoData());Xh(g.h(l.dD()),V.unsubscribeCommand,{feature:L});l.Qp("UNSUBSCRIBE",P)}d.focus();d.removeAttribute("aria-hidden");T.setAttribute("aria-hidden","true")}; this.S(d,"click",m);this.S(T,"click",n);this.S(d,"keypress",function(P){P.keyCode===13&&m(P)}); this.S(T,"keypress",function(P){P.keyCode===13&&n(P)}); this.S(l,"SUBSCRIBE",this.V);this.S(l,"UNSUBSCRIBE",this.W);this.Z&&x&&(Nqv(l),Fj(l,d,this),Fj(l,T,this))}else g.Ye(d,"ytp-sb-disabled"),g.Ye(T,"ytp-sb-disabled")}; uaI=function(N){g.X.call(this,{K:"div",U:"ytp-title-channel",j:[{K:"div",U:"ytp-title-beacon"},{K:"a",U:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:N.D().J,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",U:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{K:"div",U:"ytp-title-expanded-heading",j:[{K:"div",U:"ytp-title-expanded-title",j:[{K:"a",OT:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:N.D().J,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",U:"ytp-title-expanded-subtitle",OT:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var z=this;this.api=N;this.channel=this.e8("ytp-title-channel");this.W=this.e8("ytp-title-channel-logo");this.channelName=this.e8("ytp-title-expanded-title");this.G=this.e8("ytp-title-expanded-overlay");this.Z=this.V=this.subscribeButton=null;this.N=!1;N.createClientVe(this.W,this,36925);N.createClientVe(this.channelName,this, 37220);g.Uu(this.api.D())&&XmO(this);this.S(N,"videodatachange",this.FW);this.S(N,"videoplayerreset",this.FW);this.S(this.channelName,"click",function(v){z.api.logClick(z.channelName);g.RI(window,rHb(z));v.preventDefault()}); this.S(this.W,"click",this.jdS);this.FW()}; cHf=function(N){if(!N.api.D().YJ){var z=g.h(N.api.getVideoData()),v=new g.uF("Suscribirme",null,"Suscrito",null,!0,!1,z.JR,z.subscribed,"channel_avatar",null,N.api,!0);N.api.createServerVe(v.element,N);var R;N.api.setTrackingParams(v.element,((R=z.subscribeButtonRenderer)==null?void 0:R.trackingParams)||null);N.S(v.element,"click",function(){N.api.logClick(v.element)}); N.subscribeButton=v;g.b(N,N.subscribeButton);N.subscribeButton.Nd(N.G);N.subscribeButton.hide();var C=new bVx(N.api);N.V=C;g.b(N,C);C.Nd(N.G);C.hide();N.S(N.api,"SUBSCRIBE",function(){z.aB&&(C.show(),N.api.logVisibility(C.element,!0))}); N.S(N.api,"UNSUBSCRIBE",function(){z.aB&&(C.hide(),N.api.logVisibility(C.element,!1),tym(C,!1))})}}; XmO=function(N){var z=N.api.D();cHf(N);N.updateValue("flyoutUnfocusable","true");N.updateValue("channelTitleFocusable","-1");N.updateValue("shouldHideExpandedTitleForA11y","true");N.updateValue("shouldHideExpandedSubtitleForA11y","true");z.W||z.UT||(N.S(N.channel,"mouseenter",N.FJ),N.S(N.channel,"mouseleave",N.m_),N.S(N.channel,"focusin",N.FJ),N.S(N.channel,"focusout",function(v){N.channel.contains(v.relatedTarget)||N.m_()})); N.Z=new g.cn(function(){N.isExpanded()&&(N.api.logVisibility(N.channelName,!1),N.subscribeButton&&(N.subscribeButton.hide(),N.api.logVisibility(N.subscribeButton.element,!1)),N.V&&(N.V.hide(),N.api.logVisibility(N.V.element,!1)),N.channel.classList.remove("ytp-title-expanded"),N.channel.classList.add("ytp-title-show-collapsed"))},500); g.b(N,N.Z);N.S(N.channel,qBb,function(){My7(N)}); N.S(N.api,"onHideControls",N.jY);N.S(N.api,"appresize",N.jY);N.S(N.api,"fullscreentoggled",N.jY)}; My7=function(N){N.channel.classList.remove("ytp-title-show-collapsed");N.channel.classList.remove("ytp-title-show-expanded")}; wm_=function(N){var z=N.api.getPlayerSize();return g.Uu(N.api.D())&&z.width>=524}; rHb=function(N){var z=N.api.D(),v=g.h(N.api.getVideoData()),R=g.Rm(z)+v.gW;g.vX(v)&&(R="https://music.youtube.com"+v.gW);if(!g.Uu(z))return R;z={};g.QI(N.api,"addEmbedsConversionTrackingParams",[z]);return g.kS(R,z)}; cb=function(N){var z=g.r1({"aria-haspopup":"true"});g.Xj.call(this,z,N);this.listen("keydown",this.V)}; qr=function(N,z){N.element.setAttribute("aria-haspopup",String(z))}; NtY=function(N,z){g.X.call(this,{K:"div",U:"ytp-user-info-panel",T:{"aria-label":"Informaci\u00f3n del usuario"},j:N.D().PL&&!N.X("embeds_web_always_enable_signed_out_state")?[{K:"div",U:"ytp-user-info-panel-icon",OT:"{{icon}}"},{K:"div",U:"ytp-user-info-panel-content",j:[{K:"div",U:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},OT:"{{watchingAsUsername}}"},{K:"div",U:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},OT:"{{watchingAsEmail}}"}]}]: [{K:"div",U:"ytp-user-info-panel-icon",OT:"{{icon}}"},{K:"div",U:"ytp-user-info-panel-content",j:[{K:"div",j:[{K:"text",T:{tabIndex:"{{userInfoFocusable}}"},OT:"Sesi\u00f3n cerrada"}]},{K:"div",U:"ytp-user-info-panel-login",j:[{K:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},OT:N.D().YJ?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.L0=N;this.V=z;N.D().PL||N.D().YJ||this.S(this.e8("ytp-user-info-panel-login"),"click",this.BE);this.closeButton=new g.X({K:"button",GU:["ytp-collapse","ytp-button"], T:{title:"Cerrar"},j:[g.BS()]});this.closeButton.Nd(this.element);g.b(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.sK);this.FW()}; R4x=function(N,z,v){g.FW.call(this,N);this.b$=z;this.Mv=v;this.getVideoUrl=new cb(6);this.fX=new cb(5);this.U_=new cb(4);this.TE=new cb(3);this.kQ=new g.Xj(g.r1({href:"{{href}}",target:this.C.D().J},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.Xj(g.r1(),1,"Estad\u00edsticas para nerds");this.Ro=new g.lG({K:"div",GU:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},OT:"{{text}}"});this.pw=new TG(this.C,this.Ro);this.nM=this.gO=null;g.Uu(this.C.D())&& (this.closeButton=new g.X({K:"button",GU:["ytp-collapse","ytp-button"],T:{title:"Cerrar"},j:[g.BS()]}),g.b(this,this.closeButton),this.closeButton.Nd(this.element),this.closeButton.listen("click",this.Cc,this));g.Uu(this.C.D())&&(this.wg=new g.Xj(g.r1(),8,"Cuenta"),g.b(this,this.wg),this.dH(this.wg,!0),this.wg.listen("click",this.o8S,this),N.createClientVe(this.wg.element,this.wg,137682));this.C.D().Vg&&(this.L8=new Cs("Bucle",7),g.b(this,this.L8),this.dH(this.L8,!0),this.L8.listen("click",this.duS, this),N.createClientVe(this.L8.element,this.L8,28661));g.b(this,this.getVideoUrl);this.dH(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.bVd,this);N.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.b(this,this.fX);this.dH(this.fX,!0);this.fX.listen("click",this.eYd,this);N.createClientVe(this.fX.element,this.fX,28660);g.b(this,this.U_);this.dH(this.U_,!0);this.U_.listen("click",this.r0T,this);N.createClientVe(this.U_.element,this.U_,28658);g.b(this,this.TE);this.dH(this.TE, !0);this.TE.listen("click",this.P$d,this);g.b(this,this.kQ);this.dH(this.kQ,!0);this.kQ.listen("click",this.F4U,this);g.b(this,this.showVideoInfo);this.dH(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.kWp,this);g.b(this,this.Ro);this.Ro.listen("click",this.vTL,this);g.b(this,this.pw);z=document.queryCommandSupported&&document.queryCommandSupported("copy");cbU("Chromium")>=43&&(z=!0);cbU("Firefox")<=40&&(z=!1);z&&(this.gO=new g.X({K:"textarea",U:"ytp-html5-clipboard",T:{readonly:"", tabindex:"-1"}}),g.b(this,this.gO),this.gO.Nd(this.element));var R;(R=this.wg)==null||R.setIcon(f4m());var C;(C=this.L8)==null||C.setIcon({K:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.TE.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{"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.kQ.setIcon(Weu());this.showVideoInfo.setIcon(GJx());this.S(N,"onLoopChange",this.onLoopChange);this.S(N,"videodatachange",this.onVideoDataChange);z42(this);vTU(this,g.h(this.C.getVideoData()))}; Mr=function(N,z){var v=!1;if(N.gO){var R=N.gO.element;R.value=z;R.select();try{v=document.execCommand("copy")}catch(C){}}v?N.b$.pV():(N.Ro.Qy(z,"text"),g.$2(N.b$,N.pw),ap(N.Ro.element),N.gO&&(N.gO=null,z42(N)));return v}; vTU=function(N,z){var v=N.C.D(),R=N.C.getPresentingPlayerType()===2,C=!R||z.isListed;C=!v.Vp&&!!z.videoId&&C;v.playerStyle!=="play"?v="https://support.google.com/youtube/?p=report_playback":(v={contact_type:"playbackissue",html5:1,ei:z.eventId,v:z.videoId,p:"movies_playback"},z.W&&(v.fmt=z.W.itag),z.clientPlaybackNonce&&(v.cpn=z.clientPlaybackNonce),z.partnerId&&(v.partnerid=z.partnerId),v=g.kS("//support.google.com/googleplay/",v));N.U_.iF(C&&z.allowEmbed);N.getVideoUrl.iF(C);N.fX.iF(C&&!z.isLivePlayback); N.kQ.Qy(v,"href");var Z;(Z=N.L8)==null||Z.iF(!z.isLivePlayback&&!R);var Y;(Y=N.wg)==null||Y.iF(!R)}; z42=function(N){var z=!!N.gO;g.Iu(N.TE,z?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");qr(N.TE,!z);g.Iu(N.U_,z?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");qr(N.U_,!z);g.Iu(N.getVideoUrl,z?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");qr(N.getVideoUrl,!z);g.Iu(N.fX,z?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");qr(N.fX,!z);N.U_.setIcon(z?LeI():null); N.getVideoUrl.setIcon(z?sd():null);N.fX.setIcon(z?sd():null)}; C3_=function(N){return g.Uu(N.C.D())?N.wg:N.L8}; Yhx=function(N,z){g.mv.call(this,N);this.Mv=z;this.N=new g.VV(this);this.qd=new g.cn(this.ZGL,1E3,this);this.Vp=this.Z=null;g.b(this,this.N);g.b(this,this.qd);z=this.C.D();N.createClientVe(this.element,this,28656);g.Ye(this.element,"ytp-contextmenu");this.C.D().experiments.j8("delhi_modern_web_player")&&g.ci(z)&&g.Ye(this.element,"ytp-delhi-modern-contextmenu");Zqu(this);this.hide()}; Zqu=function(N){g.Be(N.N);var z=N.C.D();z.playerStyle==="gvn"||z.W||z.UT||(z=N.C.n0(),N.N.S(z,"contextmenu",N.wL8),N.N.S(z,"touchstart",N.onTouchStart,null,!0),N.N.S(z,"touchmove",N.Ib,null,!0),N.N.S(z,"touchend",N.Ib,null,!0))}; iqO=function(N){N.C.isFullscreen()?g.PX(N.C,N.element,10):N.Nd(bH(N).body)}; we=function(N,z,v){v=v===void 0?240:v;g.X.call(this,{K:"button",GU:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Uu(N.D()))},j:[{K:"div",U:"ytp-copylink-icon",OT:"{{icon}}"},{K:"div",U:"ytp-copylink-title",OT:"Copiar enlace",T:{"aria-hidden":"true"}}]});this.api=N;this.V=z;this.W=v;this.visible=!1;this.tooltip=this.V.Fv();z=N.D();this.tooltip.element.setAttribute("aria-live","polite");g.QY(this.element,"ytp-show-copylink-title",g.Uu(z));N.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.S(N,"videodatachange",this.FW);this.S(N,"videoplayerreset",this.FW);this.S(N,"appresize",this.FW);this.FW();this.addOnDisposeCallback(g.T8(this.tooltip,this.element))}; jFY=function(N){var z=N.api.D(),v=g.h(N.api.getVideoData()),R=N.api.n0().getPlayerSize().width;z=z.Z;return!!v.videoId&&R>=N.W&&v.wm&&!g.z8(v)&&!N.api.isEmbedsShortsMode()&&!z}; aVY=function(N){N.updateValue("icon",Ju());if(N.api.D().W)N.tooltip.Bn(N.element,"Se ha copiado el enlace en el portapapeles.");else{N.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");N.tooltip.Ql();N.tooltip.Bn(N.element);var z=N.listen("mouseleave",function(){N.Kb(z);N.FW();N.tooltip.e3()})}}; QF2=function(N,z){return g.S(function(v){if(v.W==1)return g.d_(v,2),g.k(v,navigator.clipboard.writeText(z),4);if(v.W!=2)return v.return(!0);g.U2(v);var R=v.return,C=!1,Z=g.wL("TEXTAREA");Z.value=z;Z.setAttribute("readonly","");var Y=N.api.getRootNode();Y.appendChild(Z);if(IX){var Q=window.getSelection();Q.removeAllRanges();var L=g.h(document.createRange());L.selectNodeContents(Z);Q.addRange(L);Z.setSelectionRange(0,z.length)}else Z.select();try{C=document.execCommand("copy")}catch(K){}Y.removeChild(Z); return R.call(v,C)})}; LhO=function(N){g.X.call(this,{K:"div",U:"ytp-doubletap-ui-legacy",j:[{K:"div",U:"ytp-doubletap-fast-forward-ve"},{K:"div",U:"ytp-doubletap-rewind-ve"},{K:"div",U:"ytp-doubletap-static-circle",j:[{K:"div",U:"ytp-doubletap-ripple"}]},{K:"div",U:"ytp-doubletap-overlay-a11y"},{K:"div",U:"ytp-doubletap-seek-info-container",j:[{K:"div",U:"ytp-doubletap-arrows-container",j:[{K:"span",U:"ytp-doubletap-base-arrow"},{K:"span",U:"ytp-doubletap-base-arrow"},{K:"span",U:"ytp-doubletap-base-arrow"}]},{K:"div", U:"ytp-doubletap-tooltip",j:[{K:"div",U:"ytp-seek-icon-text-container",j:[{K:"div",U:"ytp-seek-icon",OT:"{{seekIcon}}"},{K:"div",U:"ytp-chapter-seek-text-legacy",OT:"{{seekText}}"}]},{K:"div",U:"ytp-doubletap-tooltip-label",OT:"{{seekTime}}"}]}]}]});this.C=N;this.N=new g.cn(this.show,10,this);this.W=new g.cn(this.hide,700,this);this.L=this.Z=0;this.qd=this.G=!1;this.V=this.e8("ytp-doubletap-static-circle");g.b(this,this.N);g.b(this,this.W);this.hide();this.Y=this.e8("ytp-doubletap-fast-forward-ve"); this.J=this.e8("ytp-doubletap-rewind-ve");this.C.createClientVe(this.Y,this,28240);this.C.createClientVe(this.J,this,28239);this.C.logVisibility(this.Y,!0);this.C.logVisibility(this.J,!0);this.G=N.X("web_show_cumulative_seek_time");this.qd=N.X("web_center_static_circles")}; Khm=function(N,z){z=g.WA("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:z.toString()});N.updateValue("seekTime",z)}; lV2=function(N){sR.call(this,N,!1,!0);this.K0=[];this.UR=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Rd=new g.X({K:"div",U:"ytp-featured-product-open-in-new"});g.b(this,this.Rd);this.countdownTimer=new g.X({K:"text",U:"ytp-featured-product-countdown",OT:"{{content}}"});this.countdownTimer.hide();g.b(this,this.countdownTimer);this.W=new g.X({K:"div",U:"ytp-featured-product-trending",j:[{K:"div",U:"ytp-featured-product-trending-icon"},{K:"text",U:"ytp-featured-product-trending-text", OT:"{{trendingOffer}}"}]});this.W.hide();g.b(this,this.W);this.overflowButton=new g.X({K:"button",GU:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.L=new g.X({K:"text",U:"ytp-featured-product-exclusive-countdown",OT:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.b(this,this.L);this.G=new g.X({K:"div",U:"ytp-featured-product-exclusive-container",T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, j:[{K:"div",U:"ytp-featured-product-exclusive-badge-container",j:[{K:"div",U:"ytp-featured-product-exclusive-badge",j:[{K:"text",U:"ytp-featured-product-exclusive-badge-text",OT:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.G.hide();g.b(this,this.G);this.banner=new g.X({K:"a",U:"ytp-featured-product-container",j:[{K:"div",U:"ytp-featured-product-thumbnail",j:[{K:"img",T:{src:"{{thumbnail}}"}},this.Rd]},{K:"div",U:"ytp-featured-product-details",j:[{K:"text",U:"ytp-featured-product-title", OT:"{{title}}"},this.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",U:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},j:[{K:"text",U:"ytp-featured-product-price-when-promotion-text-enabled",OT:"{{price}}",T:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-promotion-text",OT:"{{promotionText}}",T:{"aria-hidden":"true"}}]}:{K:"div",T:{"aria-label":"{{priceA11yText}}"},j:[{K:"text",U:"ytp-featured-product-price",OT:"{{price}}", T:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-sales-original-price",OT:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-price-drop-reference-price",OT:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",U:"ytp-featured-product-when-promotion-text-enabled",j:[{K:"text",U:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",OT:"{{affiliateDisclaimer}}"}, this.W,{K:"text",U:"ytp-featured-product-vendor-when-promotion-text-enabled",OT:"{{vendor}}"}]}:{K:"div",j:[{K:"text",U:"ytp-featured-product-affiliate-disclaimer",OT:"{{affiliateDisclaimer}}"},this.C.X("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.G:null,this.W,{K:"text",U:"ytp-featured-product-vendor",OT:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.b(this,this.banner);this.banner.Nd(this.Z.element);this.S(this.C,g.R2("featured_product"),this.xFS);this.S(this.C, g.C7("featured_product"),this.J_);this.S(this.C,"videodatachange",this.onVideoDataChange);this.S(this.overflowButton.element,"click",this.Xb);this.S(N,"featuredproductdismissed",this.Xd)}; WhU=function(N){var z,v;N=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:v.itemData;var R,C,Z;return(N==null||!N.affiliateDisclaimer)&&(N==null?0:(R=N.exclusivesData)==null?0:R.exclusiveOfferLabelText)&&(N==null?0:(C=N.exclusivesData)==null?0:C.expirationTimestampMs)&&(N==null?0:(Z=N.exclusivesData)==null?0:Z.exclusiveOfferCountdownText)?!0:!1}; x7O=function(N){var z,v,R,C,Z=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:(R=v.itemData)==null?void 0:(C=R.exclusivesData)==null?void 0:C.expirationTimestampMs;z=(Number(Z)-Date.now())/1E3;if(z>0){if(z<604800){var Y,Q,L,K;v=(Y=N.V)==null?void 0:(Q=Y.bannerData)==null?void 0:(L=Q.itemData)==null?void 0:(K=L.exclusivesData)==null?void 0:K.exclusiveOfferCountdownText;if(v!==void 0)for(Y=Date.now(),Q=g.f(v),L=Q.next();!L.done;L=Q.next())if(L=L.value,L!==void 0&&L.text!==void 0&&(K=Number(L.textDisplayStartTimestampMs), !isNaN(K)&&Y>=K)){L.insertCountdown?(z=L.text.replace(/\$0/,String(F$({seconds:z}))),N.L.Qy(z)):N.L.Qy(L.text);N.L.show();break}}var l,W,G,x;N.G.update({exclusive:(l=N.V)==null?void 0:(W=l.bannerData)==null?void 0:(G=W.itemData)==null?void 0:(x=G.exclusivesData)==null?void 0:x.exclusiveOfferLabelText});N.G.show();NB(N);var e;(e=N.yh)==null||e.start()}else Gju(N)}; Gju=function(N){var z;(z=N.yh)==null||z.stop();N.L.hide();N.G.hide();zO(N)}; e42=function(N){var z,v,R=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:v.itemData;return N.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(R==null||!R.priceReplacementText)&&(R==null?0:R.promotionText)?R==null?void 0:R.promotionText.content:null}; Jtf=function(N){var z,v,R=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:v.itemData,C,Z;if(!(R!=null&&R.priceReplacementText||N.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(R==null?0:(C=R.dealsData)==null?0:(Z=C.sales)==null?0:Z.originalPrice)){var Y,Q;return R==null?void 0:(Y=R.dealsData)==null?void 0:(Q=Y.sales)==null?void 0:Q.originalPrice}return null}; ytK=function(N){var z,v,R=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:v.itemData,C,Z,Y,Q;if(!((R==null?0:R.priceReplacementText)||N.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(R==null?0:(C=R.dealsData)==null?0:(Z=C.sales)==null?0:Z.originalPrice))&&(R==null?0:(Y=R.dealsData)==null?0:(Q=Y.priceDrop)==null?0:Q.referencePrice)){var L,K;return R==null?void 0:(L=R.dealsData)==null?void 0:(K=L.priceDrop)==null?void 0:K.referencePrice}return null}; fVY=function(N){var z,v,R=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:v.itemData;if(R==null?0:R.priceReplacementText)return R==null?void 0:R.priceReplacementText;if((R==null?0:R.promotionText)&&N.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var C;return(R==null?void 0:R.price)+" "+(R==null?void 0:(C=R.promotionText)==null?void 0:C.content)}var Z,Y;if(R==null?0:(Z=R.dealsData)==null?0:(Y=Z.sales)==null?0:Y.originalPrice){var Q,L;return R==null?void 0:(Q=R.dealsData)== null?void 0:(L=Q.sales)==null?void 0:L.salesPriceAccessibilityLabel}var K,l;if(R==null?0:(K=R.dealsData)==null?0:(l=K.priceDrop)==null?0:l.referencePrice){var W,G;return(R==null?void 0:R.price)+" "+(R==null?void 0:(W=R.dealsData)==null?void 0:(G=W.priceDrop)==null?void 0:G.referencePrice)}return R==null?void 0:R.price}; d77=function(N){if(N.C.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var z,v,R;return N.W.Vh?null:(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:(R=v.itemData)==null?void 0:R.vendorName}var C,Z,Y,Q,L,K;return N.W.Vh||N.G.Vh||((C=N.V)==null?0:(Z=C.bannerData)==null?0:(Y=Z.itemData)==null?0:Y.affiliateDisclaimer)?null:(Q=N.V)==null?void 0:(L=Q.bannerData)==null?void 0:(K=L.itemData)==null?void 0:K.vendorName}; Ttb=function(N,z){v5(N);if(z){var v=g.v0.getState().entities;v=wJ(v,"featuredProductsEntity",z);if(v!=null&&v.productsData){z=[];v=g.f(v.productsData);for(var R=v.next();!R.done;R=v.next()){R=R.value;var C=void 0;if((C=R)!=null&&C.identifier&&R.featuredSegments){N.K0.push(R);var Z=void 0;C=g.f((Z=R)==null?void 0:Z.featuredSegments);for(Z=C.next();!Z.done;Z=C.next()){var Y=Z.value;Z=sFY(Y.startTimeSec);Z!==void 0&&(Y=sFY(Y.endTimeSec),z.push(new g.zt(Z*1E3,Y===void 0?0x7ffffffffffff:Y*1E3,{id:R.identifier, namespace:"featured_product"})))}}}N.C.QT(z)}}}; zO=function(N){if(N.trendingOfferEntityKey){var z=g.v0.getState().entities;if(z=wJ(z,"trendingOfferEntity",N.trendingOfferEntityKey)){var v,R,C;z.encodedSkuId!==((v=N.V)==null?void 0:(R=v.bannerData)==null?void 0:(C=R.itemData)==null?void 0:C.encodedOfferSkuId)?NB(N):(N.W.update({trendingOffer:z.shortLabel+" \u2022 "+z.countLabel}),N.W.show(),N.banner.update({vendor:d77(N)}))}else NB(N)}else NB(N)}; NB=function(N){N.W.hide();N.banner.update({vendor:d77(N)})}; v5=function(N){N.K0=[];N.J_();N.C.s6("featured_product")}; Fhx=function(N){var z,v,R,C,Z=(z=N.V)==null?void 0:(v=z.bannerData)==null?void 0:(R=v.itemData)==null?void 0:(C=R.hiddenProductOptions)==null?void 0:C.dropTimestampMs;z=(Number(Z)-Date.now())/1E3;N.countdownTimer.Qy(F$({seconds:z}));if(z>0){var Y;(Y=N.CV)==null||Y.start()}}; nT2=function(N){var z;(z=N.CV)==null||z.stop();N.countdownTimer.hide()}; sFY=function(N){if(N!==void 0&&N.trim()!==""&&(N=Math.trunc(Number(N.trim())),!(isNaN(N)||N<0)))return N}; AtY=function(N,z,v){g.X.call(this,{K:"div",GU:["ytp-info-panel-action-item"],j:[{K:"div",U:"ytp-info-panel-action-item-disclaimer",OT:"{{disclaimer}}"},{K:"a",GU:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{K:"div",U:"ytp-info-panel-action-item-icon",OT:"{{icon}}"},{K:"div",U:"ytp-info-panel-action-item-label",OT:"{{label}}"}]}]});this.C=N;this.V=v;this.disclaimer=this.e8("ytp-info-panel-action-item-disclaimer");this.button= this.e8("ytp-info-panel-action-item-button");this.Y8=!1;this.C.createServerVe(this.element,this,!0);this.listen("click",this.onClick);N="";v=g.t(z==null?void 0:z.onTap,Ss);var R=g.t(v,g.SJ);this.Y8=!1;R?(N=R.url||"",N.startsWith("//")&&(N="https:"+N),this.Y8=!0,g.q8(this.button,g.uh(N))):(R=g.t(v,m7v))&&!this.V?((N=R.phoneNumbers)&&N.length>0?(N="sms:"+N[0],R.messageText&&(N+="?&body="+encodeURI(R.messageText))):N="",this.Y8=!0,g.q8(this.button,g.uh(N,[$7x]))):(v=g.t(v,U7u))&&!this.V&&(N=v.phoneNumber? "tel:"+v.phoneNumber:"",this.Y8=!0,g.q8(this.button,g.uh(N,[Btx])));var C;if(v=(C=z.disclaimerText)==null?void 0:C.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var Z;this.update({label:(Z=z.bodyText)==null?void 0:Z.content,icon:nK(),disclaimer:v})}else{this.disclaimer.style.display="none";var Y;this.update({label:(Y=z.bodyText)==null?void 0:Y.content,icon:nK()})}this.C.setTrackingParams(this.element,z.trackingParams||null);this.Y8&&(this.W={externalLinkData:{url:N}})}; gTv=function(N,z){var v=a$();g.D2.call(this,N,{K:"div",U:"ytp-info-panel-detail-skrim",j:[{K:"div",U:"ytp-info-panel-detail",T:{role:"dialog",id:v},j:[{K:"div",U:"ytp-info-panel-detail-header",j:[{K:"div",U:"ytp-info-panel-detail-title",OT:"{{title}}"},{K:"button",GU:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Cerrar"},j:[g.dN()]}]},{K:"div",U:"ytp-info-panel-detail-body",OT:"{{body}}"},{K:"div",U:"ytp-info-panel-detail-items"}]}]},250);this.V=z;this.items=this.e8("ytp-info-panel-detail-items"); this.Z=new g.VV(this);this.itemData=[];this.N=v;this.S(this.e8("ytp-info-panel-detail-close"),"click",this.pV);this.S(this.e8("ytp-info-panel-detail-skrim"),"click",this.pV);this.S(this.e8("ytp-info-panel-detail"),"click",function(R){R.stopPropagation()}); g.b(this,this.Z);this.C.createServerVe(this.element,this,!0);this.S(N,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",N.getVideoData());this.hide()}; pIm=function(N,z){N=g.f(N.itemData);for(var v=N.next();!v.done;v=N.next())v=v.value,v.C.logVisibility(v.element,z)}; VO_=function(N,z){g.X.call(this,{K:"div",U:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":z.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Uu(N.D()))},j:[{K:"div",U:"ytp-info-panel-preview-text",OT:"{{text}}"},{K:"div",U:"ytp-info-panel-preview-chevron",OT:"{{chevron}}"}]});var v=this;this.C=N;this.Hc=this.V=this.videoId=null;this.Z=this.showControls=this.W=!1;this.S(this.element,"click",function(){N.logClick(v.element);N.y8();tW(z)}); this.fade=new g.zX(this,250,!1,100);g.b(this,this.fade);this.C.createServerVe(this.element,this,!0);this.S(N,"videodatachange",this.onVideoDataChange);this.S(N,"presentingplayerstatechange",this.Fb);this.S(this.C,"paidcontentoverlayvisibilitychange",this.v6);this.S(this.C,"infopaneldetailvisibilitychange",this.v6);var R=N.getVideoData()||{};kjY(R)&&P3u(this,R);this.S(N,"onShowControls",this.UK);this.S(N,"onHideControls",this.Lj)}; P3u=function(N,z){if(!z.L5||!N.C.bG()){var v=z.Bd||1E4,R=kjY(z);N.V?z.videoId&&z.videoId!==N.videoId&&(g.ws(N.V),N.videoId=z.videoId,R?(ShI(N,v,z),N.uF()):(N.pV(),N.V.dispose(),N.V=null)):R&&(z.videoId&&(N.videoId=z.videoId),ShI(N,v,z),N.uF())}}; kjY=function(N){var z,v,R,C;return!!((z=N.p5)==null?0:(v=z.title)==null?0:v.content)||!!((R=N.p5)==null?0:(C=R.bodyText)==null?0:C.content)}; ShI=function(N,z,v){N.V&&N.V.dispose();N.V=new g.cn(N.QjL,z,N);g.b(N,N.V);var R;z=((R=v.p5)==null?void 0:R.trackingParams)||null;N.C.setTrackingParams(N.element,z);var C;var Z,Y;if(v==null?0:(Z=v.p5)==null?0:(Y=Z.title)==null?0:Y.content){var Q;R=(C=v.p5)==null?void 0:(Q=C.title)==null?void 0:Q.content;var L,K;if((L=v.p5)==null?0:(K=L.bodyText)==null?0:K.content)R+=" \u2022 ";C=R}else C="";var l,W;v=((l=v.p5)==null?void 0:(W=l.bodyText)==null?void 0:W.content)||"";N.update({text:C+v,chevron:g.fK()})}; ETf=function(N,z){N.V&&(g.u(z,8)?(N.W=!0,N.uF(),N.V.start()):(g.u(z,2)||g.u(z,64))&&N.videoId&&(N.videoId=null))}; Rx=function(N){var z=null;try{z=N.toLocaleString("es",{style:"percent"})}catch(v){z=N.toLocaleString(void 0,{style:"percent"})}return z}; Cn=function(N,z){var v=0;N=g.f(N);for(var R=N.next();!(R.done||R.value.startTime>z);R=N.next())v++;return v===0?v:v-1}; h4f=function(N,z){for(var v=0,R=g.f(N),C=R.next();!C.done;C=R.next()){C=C.value;if(z=C.timeRangeStartMillis&&z0?z[0]:null;var v=g.XD("ytp-chrome-bottom"),R=g.XD("ytp-ad-module");N.N=!(v==null||!v.contains(z));N.Y=!(R==null||!R.contains(z));N.J=!(z==null||!z.hasAttribute("data-tooltip-target-fixed"));return z}; vGI=function(N,z,v){if(!N.G){if(z){N.tooltipRenderer=z;z=N.tooltipRenderer.text;var R=!1,C;(z==null?0:(C=z.runs)==null?0:C.length)&&z.runs[0].text&&(N.update({title:z.runs[0].text.toString()}),R=!0);g.um(N.title,R);z=N.tooltipRenderer.detailsText;C=!1;var Z;if((z==null?0:(Z=z.runs)==null?0:Z.length)&&z.runs[0].text){R=z.runs[0].text.toString();Z=R.indexOf("$TARGET_ICON");if(Z>-1)if(N.tooltipRenderer.targetId){z=[];R=R.split("$TARGET_ICON");var Y=new g.Qr({K:"span",U:"ytp-promotooltip-details-icon", j:[NFI[N.tooltipRenderer.targetId]]});g.b(N,Y);for(var Q=[],L=g.f(R),K=L.next();!K.done;K=L.next())K=new g.Qr({K:"span",U:"ytp-promotooltip-details-component",OT:K.value}),g.b(N,K),Q.push(K);R.length===2?(z.push(Q[0].element),z.push(Y.element),z.push(Q[1].element)):R.length===1&&(Z===0?(z.push(Y.element),z.push(Q[0].element)):(z.push(Q[0].element),z.push(Y.element)));Z=z.length?z:null}else Z=null;else Z=R;if(Z){if(typeof Z!=="string")for(g.vV(N.details),C=g.f(Z),Z=C.next();!Z.done;Z=C.next())N.details.appendChild(Z.value); else N.update({details:Z});C=!0}}g.um(N.details,C);C=N.tooltipRenderer.acceptButton;Z=!1;var l,W,G;((l=g.t(C,g.E9))==null?0:(W=l.text)==null?0:(G=W.runs)==null?0:G.length)&&g.t(C,g.E9).text.runs[0].text&&(N.update({acceptButtonText:g.t(C,g.E9).text.runs[0].text.toString()}),Z=!0);g.um(N.acceptButton,Z);l=N.tooltipRenderer.dismissButton;W=!1;var x,e,d;((x=g.t(l,g.E9))==null?0:(e=x.text)==null?0:(d=e.runs)==null?0:d.length)&&g.t(l,g.E9).text.runs[0].text&&(N.update({dismissButtonText:g.t(l,g.E9).text.runs[0].text.toString()}), W=!0);g.um(N.dismissButton,W)}v&&(N.Z=v);N.V=wIu(N);N.L=!1;N.C.D().X("web_player_hide_nitrate_promo_tooltip")||N.iF(!0);zju(N);N.Vh&&!N.qd&&(N.qd=!0,N.Oi.KM(0));N.W&&N.C.logVisibility(N.element,N.Vh)}}; Ln=function(N){N.iF(!1);N.W&&N.C.logVisibility(N.element,N.Vh)}; RjI=function(N){var z,v,R,C=((z=g.t(N.acceptButton,g.E9))==null?void 0:(v=z.text)==null?void 0:(R=v.runs)==null?void 0:R.length)&&!!g.t(N.acceptButton,g.E9).text.runs[0].text,Z,Y,Q;z=((Z=g.t(N.dismissButton,g.E9))==null?void 0:(Y=Z.text)==null?void 0:(Q=Y.runs)==null?void 0:Q.length)&&!!g.t(N.dismissButton,g.E9).text.runs[0].text;return C||z}; zju=function(N){var z;if(!(z=!N.V)){z=N.V;var v=window.getComputedStyle(z);z=v.display==="none"||v.visibility==="hidden"||z.getAttribute("aria-hidden")==="true"}if(z||N.C.isMinimized())N.iF(!1);else if(z=g.rv(N.V),z.width&&z.height){N.C.Tp(N.element,N.V);var R=N.C.n0().getPlayerSize().height;v=g.rv(N.e8("ytp-promotooltip-container")).height;N.N?N.element.style.top=R-v-z.height-12+"px":N.J||(R=N.C.IB().height-v-z.height-12,N.element.style.top=R+"px");R=N.e8("ytp-promotooltip-pointer");var C=g.IB(N.V, N.C.getRootNode()),Z=Number(N.element.style.left.replace(/[^\d\.]/g,""));N=N.C.isFullscreen()?18:12;R.style.left=C.x-Z+z.width/2-N+"px";R.style.top=v+"px"}else N.iF(!1)}; Kn=function(N){g.X.call(this,{K:"button",GU:["ytp-replay-button","ytp-button"],T:{title:"Ver de nuevo"},j:[g.$t()]});this.C=N;this.S(N,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.lF(N.getPlayerStateObject());Fj(this.C,this.element,this)}; lV=function(N,z){z=z===void 0?240:z;g.X.call(this,{K:"button",GU:["ytp-button","ytp-search-button"],T:{title:"Buscar","data-tooltip-opaque":String(g.Uu(N.D()))},j:[{K:"div",U:"ytp-search-icon",OT:"{{icon}}"},{K:"div",U:"ytp-search-title",OT:"Buscar"}]});this.api=N;this.W=z;this.visible=!1;this.updateValue("icon",{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{K:"path",U:"ytp-svg-fill",T:{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"}}]}); N.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.V();this.S(N,"appresize",this.V);this.S(N,"videodatachange",this.V);Fj(N,this.element,this)}; W5=function(N){g.X.call(this,{K:"div",U:"ytp-seek-overlay",j:[{K:"div",GU:["ytp-seek-overlay-side-container","ytp-seek-overlay-back"],j:[{K:"div",GU:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-back"]}]},{K:"div",GU:["ytp-seek-overlay-side-container","ytp-seek-overlay-forward"],j:[{K:"div",GU:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-forward"]}]},{K:"div",U:"ytp-seek-overlay-message",j:[{K:"div",U:"ytp-seek-overlay-message-icon",OT:"{{icon}}"}, {K:"div",U:"ytp-seek-overlay-message-text",OT:"{{text}}"}]}]});this.C=N;this.W=0;this.G=!1;this.V=this.e8("ytp-seek-overlay-arrow-container-back");this.Z=this.e8("ytp-seek-overlay-arrow-container-forward");this.Y=this.e8("ytp-seek-overlay-message");this.C.createClientVe(this.Z,this,28240);this.C.createClientVe(this.V,this,28239);this.C.logVisibility(this.Z,!0);this.C.logVisibility(this.V,!0);this.hide()}; YXY=function(N,z,v){N.show();CZK(N,z);v!==void 0&&Zd_(N,z,v)}; CZK=function(N,z){var v=new g.Qr({K:"svg",U:"ytp-seek-overlay-arrow",T:{viewBox:"0 0 100 100"},j:[{K:"path",U:"ytp-seek-overlay-arrow-path",T:{d:z===-1?"M 80 20 L 50 50 L 80 80":"M 20 20 L 50 50 L 20 80",fill:"none",stroke:"white","stroke-width":"10"}}]});g.b(N,v);z===-1?v.Nd(N.V):v.Nd(N.Z);var R=v.element;R.animate([{translate:z===-1?"30px":"-30px",scale:"1.4 0.4",opacity:0,easing:"ease"},{offset:.15,opacity:"1",easing:"ease"},{offset:.5,translate:"0",scale:"1 1",easing:"ease"}],{duration:800}).addEventListener("finish", function(){R.remove();idO(N)}); v.e8("ytp-seek-overlay-arrow-path").animate([{strokeWidth:"0"},{offset:.5,strokeWidth:"10"},{offset:.7,strokeWidth:"10"},{offset:1,strokeWidth:"0"}],{duration:800,easing:"ease"})}; Zd_=function(N,z,v){N.L!==z&&(N.W=0,N.L=z);N.W+=v;v=new g.Qr({K:"div",U:"ytp-seek-overlay-duration",OT:z===-1?"\u2212"+g.TX(N.W):"+"+g.TX(N.W)});g.b(N,v);z===-1?v.Nd(N.V):v.Nd(N.Z);N.N&&N.N.animate([{offset:0},{offset:1,opacity:0}],{duration:300,easing:"ease",fill:"forwards"});var R=v.element;N.N=R;R.animate([{offset:0,scale:.5,opacity:0,easing:"ease-out"},{offset:.5,scale:1,opacity:1},{offset:.8,scale:1,opacity:1},{offset:1,opacity:0}],{duration:800,easing:"ease"}).addEventListener("finish",function(){R.remove(); N.N===R&&(N.N=void 0);idO(N)})}; jTu=function(N,z,v){N.updateValue("text",z);if(v){a:{switch(v){case "PREMIUM_STANDALONE":z=T8K();break a;case "PREMIUM_STANDALONE_CAIRO":z=Fe7();break a}z=void 0}N.updateValue("icon",z)}z=g.f(N.Y.getAnimations());for(v=z.next();!v.done;v=z.next())v.value.cancel();N.G=!0;N.Y.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:800}).addEventListener("finish",function(){N.G=!1;idO(N);N.updateValue("text","");N.updateValue("icon","")})}; idO=function(N){N.V.children.length!==0||N.Z.children.length!==0||N.G||N.hide()}; g.GO=function(N,z,v,R){R=R===void 0?240:R;g.X.call(this,{K:"button",GU:["ytp-button","ytp-share-button"],T:{title:"Compartir","aria-haspopup":"true","aria-owns":v.element.id,"data-tooltip-opaque":String(g.Uu(N.D()))},j:[{K:"div",U:"ytp-share-icon",OT:"{{icon}}"},{K:"div",U:"ytp-share-title",OT:"Compartir"}]});this.api=N;this.V=z;this.Z=v;this.N=R;this.W=this.visible=!1;this.tooltip=this.V.Fv();N.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.S(N,"videodatachange",this.FW); this.S(N,"videoplayerreset",this.FW);this.S(N,"appresize",this.FW);this.S(N,"presentingplayerstatechange",this.FW);this.FW();this.addOnDisposeCallback(g.T8(this.tooltip,this.element))}; ap7=function(N){var z=N.api.D(),v=g.h(N.api.getVideoData()),R=g.Uu(z)&&g.AW(N.api)&&g.u(N.api.getPlayerStateObject(),128);z=z.Z||z.disableSharing&&N.api.getPresentingPlayerType()!==2||!v.showShareButton||v.wm||R||g.z8(v)||N.W;R=N.api.n0().getPlayerSize().width;return!!v.videoId&&R>=N.N&&!z}; QTK=function(N,z){z.name!=="InvalidStateError"&&z.name!=="AbortError"&&(z.name==="NotAllowedError"?(N.V.y8(),tW(N.Z,N.element,!1)):g.kE(z))}; KSu=function(N,z){var v=a$(),R=N.D();v={K:"div",U:"ytp-share-panel",T:{id:a$(),role:"dialog","aria-labelledby":v},j:[{K:"div",U:"ytp-share-panel-inner-content",j:[{K:"div",U:"ytp-share-panel-title",T:{id:v},OT:"Compartir"},{K:"a",GU:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:R.J,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},OT:"{{linkText}}"},{K:"label",U:"ytp-share-panel-include-playlist",j:[{K:"input",U:"ytp-share-panel-include-playlist-checkbox", T:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{K:"div",U:"ytp-share-panel-loading-spinner",j:[jd()]},{K:"div",U:"ytp-share-panel-service-buttons",OT:"{{buttons}}"},{K:"div",U:"ytp-share-panel-error",OT:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{K:"button",GU:["ytp-share-panel-close","ytp-button"],T:{title:"Cerrar"},j:[g.dN()]}]};g.D2.call(this,N,v,250);var C=this;this.moreButton=null;this.api= N;this.tooltip=z.Fv();this.Z=[];this.G=this.e8("ytp-share-panel-inner-content");this.closeButton=this.e8("ytp-share-panel-close");this.S(this.closeButton,"click",this.pV);this.addOnDisposeCallback(g.T8(this.tooltip,this.closeButton));this.N=this.e8("ytp-share-panel-include-playlist-checkbox");this.S(this.N,"click",this.FW);this.V=this.e8("ytp-share-panel-link");this.addOnDisposeCallback(g.T8(this.tooltip,this.V));this.api.createClientVe(this.V,this,164503);this.S(this.V,"click",function(Z){Z.preventDefault(); C.api.logClick(C.V);var Y=C.api.getVideoUrl(!0,!0,!1,!1);Y=LSu(C,Y);g.ip(Y,C.api,Z)&&C.api.Qp("SHARE_CLICKED")}); this.listen("click",this.YN);this.S(N,"videoplayerreset",this.hide);this.S(N,"fullscreentoggled",this.onFullscreenToggled);this.S(N,"onLoopRangeChange",this.J2);this.hide()}; Gru=function(N,z){lpm(N);for(var v=z.links||z.shareTargets,R=0,C={},Z=0;Z0&&!c&&!V?(P.length===2&&(P=["noreferrer"]),g.RI(x,d,G,P[0]),x=upm()):(T=n.join(","),FD()&&x.navigator&&x.navigator.standalone&&G&&G!="_self"?(T=g.wL("A"),g.q8(T,d),T.target=G,m&&(T.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&T.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"), e.initMouseEvent("click",!0,!0,x,1),T.dispatchEvent(e),x=upm()):m?(x=g.RI(x,"",G,T),e=g.ON(d),x&&(x.opener=null,e===""&&(e="javascript:''"),e='',e=Nu(e),(d=x.document)&&d.write&&(d.write(z3(e)),d.close()))):((x=g.RI(x,d,G,T))&&e.noopener&&(x.opener=null),x&&e.noreferrer&&(x.opener=null)));x&&(x.opener||(x.opener=window),x.focus());W.preventDefault()}}}(C)); C.Yv.addOnDisposeCallback(g.T8(N.tooltip,C.Yv.element));Q==="Facebook"?N.api.createClientVe(C.Yv.element,C.Yv,164504):Q==="Twitter"&&N.api.createClientVe(C.Yv.element,C.Yv,164505);N.S(C.Yv.element,"click",function(l){return function(){N.api.logClick(l.Yv.element)}}(C)); N.api.logVisibility(C.Yv.element,!0);N.Z.push(C.Yv);R++}}var L=z.more||z.moreLink,K=new g.X({K:"a",GU:["ytp-share-panel-service-button","ytp-button"],j:[{K:"span",U:"ytp-share-panel-service-button-more",j:[{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{K:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",T:{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"}}]}]}],T:{href:L,target:"_blank",title:"M\u00e1s"}});K.listen("click",function(l){var W=L;N.api.logClick(N.moreButton.element);W=LSu(N,W);g.ip(W,N.api,l)&&N.api.Qp("SHARE_CLICKED")}); K.addOnDisposeCallback(g.T8(N.tooltip,K.element));N.api.createClientVe(K.element,K,164506);N.S(K.element,"click",function(){N.api.logClick(K.element)}); N.api.logVisibility(K.element,!0);N.Z.push(K);N.moreButton=K;N.updateValue("buttons",N.Z)}; LSu=function(N,z){var v={};g.Uu(N.api.D())&&(g.QI(N.api,"addEmbedsConversionTrackingParams",[v]),z=g.kS(z,v));return z}; lpm=function(N){for(var z=g.f(N.Z),v=z.next();!v.done;v=z.next())v=v.value,v.detach(),g.Lc(v);N.Z=[]}; xM=function(N){return N===void 0||N.startSec===void 0||N.endSec===void 0?!1:!0}; xlY=function(N,z){N.startSec+=z;N.endSec+=z}; JA2=function(N){sR.call(this,N);this.W=this.V=this.isContentForward=this.L=!1;ej2(this);this.S(this.C,"changeProductsInVideoVisibility",this.NHd);this.S(this.C,"videodatachange",this.onVideoDataChange)}; yAu=function(N){N.G&&N.Id.element.removeChild(N.G.element);N.G=void 0}; dlU=function(N,z){return z.map(function(v){var R,C;if((v=(R=g.t(v,fpb))==null?void 0:(C=R.thumbnail)==null?void 0:C.thumbnails)&&v.length!==0)return v[0].url}).filter(function(v){return v!==void 0}).map(function(v){v=new g.X({K:"img", U:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:v}});g.b(N,v);return v})}; sTu=function(N,z){N.isContentForward=z;g.QY(N.badge.element,"ytp-suggested-action-badge-content-forward",z)}; ef=function(N){var z=N.isContentForward&&!N.By();g.QY(N.badge.element,"ytp-suggested-action-badge-preview-collapsed",z&&N.V);g.QY(N.badge.element,"ytp-suggested-action-badge-preview-expanded",z&&N.W)}; Je=function(N,z,v){return new g.zt(N*1E3,z*1E3,{priority:9,namespace:v})}; TF_=function(N){N.C.s6("shopping_overlay_visible");N.C.s6("shopping_overlay_preview_collapsed");N.C.s6("shopping_overlay_preview_expanded");N.C.s6("shopping_overlay_expanded")}; ej2=function(N){N.S(N.C,g.R2("shopping_overlay_visible"),function(){N.iI(!0)}); N.S(N.C,g.C7("shopping_overlay_visible"),function(){N.iI(!1)}); N.S(N.C,g.R2("shopping_overlay_expanded"),function(){N.Vp=!0;dX(N)}); N.S(N.C,g.C7("shopping_overlay_expanded"),function(){N.Vp=!1;dX(N)}); N.S(N.C,g.R2("shopping_overlay_preview_collapsed"),function(){N.V=!0;ef(N)}); N.S(N.C,g.C7("shopping_overlay_preview_collapsed"),function(){N.V=!1;ef(N)}); N.S(N.C,g.R2("shopping_overlay_preview_expanded"),function(){N.W=!0;ef(N)}); N.S(N.C,g.C7("shopping_overlay_preview_expanded"),function(){N.W=!1;ef(N)})}; mlx=function(N){g.X.call(this,{K:"div",U:"ytp-shorts-title-channel",j:[{K:"a",U:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:N.D().J,"aria-label":"{{channelLogoLabel}}"}},{K:"div",U:"ytp-shorts-title-expanded-heading",j:[{K:"div",U:"ytp-shorts-title-expanded-title",j:[{K:"a",OT:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:N.D().J,tabIndex:"0"}}]}]}]});var z=this;this.api=N;this.V=this.e8("ytp-shorts-title-channel-logo");this.channelName=this.e8("ytp-shorts-title-expanded-title"); this.subscribeButton=null;N.createClientVe(this.V,this,36925);this.S(this.V,"click",function(v){z.api.logClick(z.V);g.RI(window,FSm(z));v.preventDefault()}); N.createClientVe(this.channelName,this,37220);this.S(this.channelName,"click",function(v){z.api.logClick(z.channelName);g.RI(window,FSm(z));v.preventDefault()}); nGu(this);this.S(N,"videodatachange",this.FW);this.S(N,"videoplayerreset",this.FW);this.FW()}; nGu=function(N){if(!N.api.D().YJ){var z=g.h(N.api.getVideoData()),v=new g.uF("Suscribirme",null,"Suscrito",null,!0,!1,z.JR,z.subscribed,"channel_avatar",null,N.api,!0);N.api.createServerVe(v.element,N);var R;N.api.setTrackingParams(v.element,((R=z.subscribeButtonRenderer)==null?void 0:R.trackingParams)||null);N.S(v.element,"click",function(){N.api.logClick(v.element)}); N.subscribeButton=v;g.b(N,N.subscribeButton);N.subscribeButton.Nd(N.element)}}; FSm=function(N){var z=N.api.D(),v=g.h(N.api.getVideoData());v=g.Rm(z)+v.gW;if(!g.Uu(z))return v;z={};g.QI(N.api,"addEmbedsConversionTrackingParams",[z]);return g.kS(v,z)}; y9=function(N){g.D2.call(this,N,{K:"button",GU:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{K:"div",U:"ytp-skip-intro-button-text",OT:"Saltar introducci\u00f3n"}]},100);var z=this;this.Z=!1;this.V=new g.cn(function(){z.hide()},5E3); this.HH=this.Eu=NaN;g.b(this,this.V);this.L=function(){z.show()}; this.G=function(){z.hide()}; this.N=function(){var v=z.C.getCurrentTime();v>z.Eu/1E3&&v0?{K:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{K:"path",GU:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {K:"text",GU:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{K:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{K:"path",GU:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {K:"text",GU:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var v=this;this.C=N;this.V=z;this.W=new g.cn(function(){v.Z?(v.Z=!1,v.W.start()):v.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(z=z>0)?this.C.createClientVe(this.element,this,36843):this.C.createClientVe(this.element,this,36844);var R=g.WA(z?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.V).toString()});this.update({title:R,"data-title-no-tooltip":R,"aria-keyshortcuts":z?"\u2192":"\u2190"});this.N=this.element.querySelector(".ytp-jump-button-text");this.N.textContent=Math.abs(this.V).toString();this.listen("click",this.onClick,this);Fj(N,this.element,this)}; krU=function(N,z){z?N.element.classList.add("ytp-jump-button-enabled"):N.element.classList.remove("ytp-jump-button-enabled");N.C.logVisibility(N.element,z);N.C.Ql()}; m2=function(N,z){dc.call(this,N,z,"timedMarkerCueRange","Ver momentos clave");this.S(N,g.C7("timedMarkerCueRange"),this.G4);this.S(N,"updatemarkervisibility",this.updateVideoData)}; PZK=function(N){var z,v=(z=N.C.getVideoData())==null?void 0:z.ET;if(v)for(N=N.N.S8,v=g.f(v),z=v.next();!z.done;z=v.next())if(z=N[z.value]){var R=void 0,C=void 0,Z=void 0;if(((R=z.onTap)==null?void 0:(C=R.innertubeCommand)==null?void 0:(Z=C.changeEngagementPanelVisibilityAction)==null?void 0:Z.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return z}}; $M=function(N){var z=N.X("web_enable_pip_on_miniplayer");g.X.call(this,{K:"button",GU:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:[z?{K:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},j:[{K:"g",T:{transform:"translate(96, -96) scale(0.8)"},j:[{K:"path",qp:!0,T:{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"}}]}]}: sX2()]});this.C=N;this.visible=!1;this.listen("click",this.onClick);this.S(N,"fullscreentoggled",this.FW);this.updateValue("title",g.n2(N,"Minirreproductor","i"));this.update({"data-title-no-tooltip":"Minirreproductor"});Fj(N,this.element,this);N.createClientVe(this.element,this,62946);this.FW()}; U$=function(N,z,v,R,C,Z){Z=Z===void 0?!1:Z;var Y={K:"div",GU:["ytp-input-slider-section"],j:[{K:"input",U:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};C&&Y.j.unshift(C);Z&&Y.GU.push("ytp-vertical-slider");g.X.call(this,Y);this.G=N;this.L=z;this.Y=v;this.initialValue=R;this.header=C;this.W=this.e8("ytp-input-slider");this.V=R?R:N;this.init();this.S(this.W,"input",this.N);this.S(this.W,"keydown", this.Z)}; B5=function(N,z){N.V=z;N.updateValue("slidervalue",N.V);N.W.valueAsNumber=N.V;VwY(N,z)}; VwY=function(N,z){N.W.style.setProperty("--yt-slider-shape-gradient-percent",(z-N.G)/(N.L-N.G)*100+"%")}; Ae=function(N){var z=N.isMuted()?0:N.getVolume();U$.call(this,0,100,1,z,void 0,!0);this.C=N;this.qd=eY(this.Vp,10,this);this.J=!1;this.S(N,"onVolumeChange",this.onVolumeChange);this.S(this.element,"keydown",this.Z)}; SX2=function(N,z){g.X.call(this,{K:"div",T:{tabindex:"0",title:"Volumen"},GU:["ytp-volume-popover"]});var v=this;this.isVisible=!1;this.tooltip=z.Fv();this.W=new Ae(N);g.b(this,this.W);this.W.Nd(this.element);this.V=new g.cn(function(){gc(v,!1)},300); this.listen("mouseenter",function(){v.V.stop()}); this.listen("mouseleave",function(){v.V.start()}); this.listen("focus",function(){v.V.stop()}); this.S(this.W.element,"focus",function(){v.V.stop()}); this.listen("blur",function(){v.V.start()}); this.addOnDisposeCallback(g.T8(z.Fv(),this.element,-120));g.b(this,this.V)}; gc=function(N,z){N.element.classList.toggle("ytp-volume-popover-hovering",z);N.isVisible=z}; pn=function(N,z,v){v=v===void 0?!1:v;g.X.call(this,{K:"button",GU:["ytp-mute-button","ytp-button"],T:N.D().Id?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},j:[{K:"div",U:"ytp-volume-icon",OT:"{{icon}}"}]});var R=this;this.C=N;this.tO=v;this.W=null;this.L=this.Vp=this.Y=this.K0=NaN;this.Rd=this.J=null;this.G=[];this.N=[];this.visible=!1;this.Z=this.V=this.qd=null;N.X("delhi_modern_web_player")&& this.update({"data-priority":4});v=this.C.D();this.updateValue("icon",Au());this.tooltip=z.Fv();this.Z=g.XD("ytp-volume-icon",this.element);this.W=new g.Qr({K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"defs",j:[{K:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},j:[{K:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",U:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {K:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"},j:[{K:"path",U:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",qp:!0,GU:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{K:"path",qp:!0,GU:["ytp-svg-fill","ytp-svg-volume-animation-hider"], T:{"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.b(this,this.W);this.J=this.W.e8("ytp-svg-volume-animation-speaker");this.Rd=g.h(this.J.getAttribute("d"));this.G=g.OC("ytp-svg-volume-animation-mover",this.W.element);this.N=g.OC("ytp-svg-volume-animation-hider",this.W.element);this.Id=new ch;g.b(this,this.Id);this.PL=new ch;g.b(this,this.PL);this.S(N,"appresize",this.E8);this.S(N,"onVolumeChange",this.onVolumeChange);N.X("delhi_modern_web_player")? this.listen("click",this.GWU):this.listen("click",this.hF);v.Id?N.X("delhi_modern_web_player")?(this.V=new SX2(N,z),this.V.Nd(this.element),g.b(this,this.V),this.S(this.Z,"mouseover",function(){if(!R.C.Ce()){var C;(C=R.V)!=null&&gc(C,!0);var Z;(Z=R.V)!=null&&Z.V.stop()}}),this.S(this.Z,"mouseout",function(){var C; (C=R.V)!=null&&C.V.start()}),this.addOnDisposeCallback(g.T8(z.Fv(),this.element,-120))):this.addOnDisposeCallback(g.T8(z.Fv(),this.element)):EGv(this); this.message=null;N.createClientVe(this.element,this,28662);this.E8(N.n0().getPlayerSize());this.setVolume(N.getVolume(),N.isMuted())}; oG2=function(N,z){N.K0=z;var v=N.Rd;z&&(v+=NMI(hjO,Hd7,z));N.J.setAttribute("d",v)}; DlI=function(N,z){N.Vp=z;for(var v=20*z,R=0;R=3&&N.C.getPresentingPlayerType()!==2}; XpK=function(N){var z=BX(N.C.eV());return z?N.V?z.sA():z.Ab():!1}; twY=function(N){var z={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},v=N.playlist!=null&&N.playlist.sA();v=g.AW(N.C)&&(!N.V||v);var R=N.V&&g.VI(N.C),C=XpK(N),Z=N.V&&N.C.getPresentingPlayerType()===5,Y=g.n2(N.C,"Siguiente","SHIFT+n"),Q=g.n2(N.C,"Anterior","SHIFT+p");if(Z)z.title="Iniciar v\u00eddeo";else if(N.Z)z.title="Ver de nuevo";else if(v){var L=null;N.playlist&&(L=g.KL(N.playlist,N.V?kdI(N.playlist):Pnu(N.playlist)));if(L){if(L.videoId){var K= N.playlist.listId;z.url=N.C.D().getVideoUrl(L.videoId,K?K.toString():void 0)}z.text=L.title;z.duration=L.lengthText?L.lengthText:L.lengthSeconds?g.TX(L.lengthSeconds):null;z.preview=L.Ou("mqdefault.jpg")}N.V?(z.title=Y,z["data-title-no-tooltip"]="Siguiente",z["aria-keyshortcuts"]="SHIFT+n"):(z.title=Q,z["data-title-no-tooltip"]="Anterior",z["aria-keyshortcuts"]="SHIFT+p")}else if(R){if(Q=(L=N.videoData)==null?void 0:g.Nk(L))z.url=Q.Kr(),z.text=Q.title,z.duration=Q.lengthText?Q.lengthText:Q.lengthSeconds? g.TX(Q.lengthSeconds):null,z.preview=Q.Ou("mqdefault.jpg");z.title=Y;z["data-title-no-tooltip"]="Siguiente";z["aria-keyshortcuts"]="SHIFT+n"}z.disabled=!R&&!v&&!C&&!Z;N.update(z);N.L=!!z.url;R||v||N.Z||C||Z?N.W||(N.W=g.T8(N.tooltip,N.element),N.G=N.listen("click",N.onClick,N)):N.W&&(N.W(),N.W=null,N.Kb(N.G),N.G=null);N.tooltip.Ql();g.QY(N.element,"ytp-playlist-ui",N.V&&v)}; uZu=function(N,z){g.X.call(this,{K:"div",U:"ytp-fine-scrubbing",j:[{K:"div",U:"ytp-fine-scrubbing-draggable",j:[{K:"div",U:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",T:{"aria-hidden":"true"},U:"ytp-fine-scrubbing-cursor"},{K:"div",U:"ytp-fine-scrubbing-seek-time", T:{"aria-hidden":"true"},OT:"{{seekTime}}"},{K:"div",U:"ytp-fine-scrubbing-play",j:[mn()],T:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{K:"div",U:"ytp-fine-scrubbing-dismiss",j:[g.dN()],T:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var v=this;this.api=N;this.G=this.e8("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.e8("ytp-fine-scrubbing-dismiss");this.PL=this.e8("ytp-fine-scrubbing-draggable");this.playButton=this.e8("ytp-fine-scrubbing-play");this.thumbnails= [];this.W=[];this.tO=this.V=0;this.Id=void 0;this.qd=NaN;this.BL=this.J=this.Z=this.Y=0;this.N=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.UT=0;this.isEnabled=this.Rd=!1;rAu(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.T8(z,this.dismissButton));this.addOnDisposeCallback(g.T8(z,this.playButton));this.K0=new g.ER(this.PL,!0);this.K0.subscribe("dragstart",this.JU,this);this.K0.subscribe("dragmove",this.TP,this);this.K0.subscribe("dragend",this.jG,this);this.S(N,"SEEK_COMPLETE", this.Qt);N.X("web_fix_fine_scrubbing_false_play")&&this.S(N,"rootnodemousedown",function(R){v.Vp=R}); this.G.addEventListener("keydown",function(){}); g.b(this,this.K0);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; rAu=function(N,z){var v=g.TX(z),R=g.WA("Ir al momento $PROGRESS",{PROGRESS:g.TX(z,!0)});N.update({ariamin:0,ariamax:Math.floor(N.api.getDuration()),arianow:Math.floor(z),arianowtext:R,seekTime:v})}; cAI=function(N){N.qd=NaN;N.J=0;N.Y=N.Z}; wpu=function(N){var z=N.api.JJ();if(z){var v=90*N.scale,R=Sr(z,160*N.scale);if(z=z.levels[R]){N.L=z.width;if(!N.N.length){R=[];for(var C=Es(z,z.mm()),Z=z.columns*z.rows,Y=z.frameCount,Q=0;Q<=C;Q++)for(var L=YN.N.length;)R= void 0,(R=N.thumbnails.pop())==null||R.dispose();for(;N.thumbnails.lengthv.length;)R=void 0,(R=N.W.pop())==null||R.dispose(); for(;N.W.length-v?-z/v*N.interval*.5:-(z+v/2)/v*N.interval}; Nz_=function(N){return-((N.G.offsetWidth||(N.frameCount-1)*N.L*N.scale)-N.V/2)}; qXu=function(){g.X.call(this,{K:"div",U:"ytp-fine-scrubbing-thumbnail"})}; MwK=function(){g.X.call(this,{K:"div",U:"ytp-fine-scrubbing-chapter-title",j:[{K:"div",U:"ytp-fine-scrubbing-chapter-title-content",OT:"{{chapterTitle}}"}]})}; vhu=function(N){g.X.call(this,{K:"div",U:"ytp-heat-map-chapter",j:[{K:"svg",U:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{K:"defs",j:[{K:"clipPath",T:{id:"{{id}}"},j:[{K:"path",U:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{K:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},j:[{K:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",T:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",U:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",U:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",U:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",U:"ytp-modern-heat-map",T:{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=N;this.Y=this.e8("ytp-heat-map-svg");this.G=this.e8("ytp-heat-map-path");this.N=this.e8("ytp-heat-map-graph");this.L=this.e8("ytp-heat-map-play");this.V=this.e8("ytp-heat-map-hover");this.Z=this.e8("ytp-modern-heat-map");this.Y8=!1;this.W=60;N=""+g.Cm(this);this.update({id:N});N="url(#"+N+")";this.N.setAttribute("clip-path",N);this.L.setAttribute("clip-path",N);this.V.setAttribute("clip-path", N)}; Rb7=function(N,z){z>0&&(N.W=z,N.Y.style.height=N.W+"px")}; Sf=function(){g.X.call(this,{K:"div",U:"ytp-chapter-hover-container",j:[{K:"div",U:"ytp-progress-bar-padding"},{K:"div",U:"ytp-progress-list",j:[{K:"div",GU:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",U:"ytp-progress-linear-live-buffer"},{K:"div",U:"ytp-load-progress"},{K:"div",U:"ytp-hover-progress"},{K:"div",U:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.e8("ytp-progress-list");this.G=this.e8("ytp-progress-linear-live-buffer"); this.N=this.e8("ytp-ad-progress-list");this.L=this.e8("ytp-load-progress");this.Y=this.e8("ytp-play-progress");this.Z=this.e8("ytp-hover-progress");this.V=this.e8("ytp-chapter-hover-container")}; E$=function(N,z){g.SB(N.V,"width",z)}; Cob=function(N,z){g.SB(N.V,"margin-right",z+"px")}; ZQO=function(){this.W=this.position=this.Z=this.V=this.N=this.width=NaN}; Yeb=function(){g.X.call(this,{K:"div",U:"ytp-timed-marker"});this.V=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.H5=function(N,z){g.lG.call(this,{K:"div",U:"ytp-progress-bar-container",T:{"aria-disabled":"true"},j:[{K:"div",GU:["ytp-heat-map-container"],j:[{K:"div",U:"ytp-heat-map-edu"}]},{K:"div",GU:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{K:"div",U:"ytp-chapters-container"},{K:"div",U:"ytp-timed-markers-container"},{K:"div",U:"ytp-clip-start-exclude"}, {K:"div",U:"ytp-clip-end-exclude"},{K:"div",U:"ytp-scrubber-container",j:[{K:"div",GU:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{K:"div",U:"ytp-scrubber-pull-indicator"},{K:"img",GU:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",GU:["ytp-fine-scrubbing-container"],j:[{K:"div",U:"ytp-fine-scrubbing-edu"}]},{K:"div",U:"ytp-bound-time-left",OT:"{{boundTimeLeft}}"},{K:"div",U:"ytp-bound-time-right",OT:"{{boundTimeRight}}"},{K:"div",U:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},OT:"{{clipstarticon}}"}, {K:"div",U:"ytp-clip-end",T:{title:"{{clipendtitle}}"},OT:"{{clipendicon}}"}]});this.api=N;this.a_=!1;this.s9=this.gD=this.xT=this.G=this.o4=0;this.BH=null;this.HH=!1;this.UT={};this.Dx={};this.clipEnd=Infinity;this.UR=this.e8("ytp-clip-end");this.xH=new g.ER(this.UR,!0);this.Fy=this.e8("ytp-clip-end-exclude");this.RP=this.e8("ytp-clip-start-exclude");this.clipStart=0;this.yh=this.e8("ytp-clip-start");this.gx=new g.ER(this.yh,!0);this.qd=this.A0=0;this.progressBar=this.e8("ytp-progress-bar");this.CV= {};this.S8={};this.ET=this.e8("ytp-chapters-container");this.Eu=this.e8("ytp-timed-markers-container");this.V=[];this.L=[];this.L5={};this.cP=null;this.Rd=-1;this.zE=this.Id=0;this.ZT=this.Y=null;this.MF=this.e8("ytp-scrubber-button");this.PL=this.e8("ytp-decorated-scrubber-button");this.B2=this.e8("ytp-scrubber-container");this.gW=new g.gL;this.c5=0;this.I_=new ZQO;this.Z=new pZ(0,0);this.GE=null;this.J=this.g$=!1;this.w$=null;this.Vp=this.e8("ytp-heat-map-container");this.er=this.e8("ytp-heat-map-edu"); this.N=[];this.heatMarkersDecorations=[];this.kJ=this.e8("ytp-fine-scrubbing-container");this.Bc=this.e8("ytp-fine-scrubbing-edu");this.W=void 0;this.tO=this.p5=this.BL=!1;this.tooltip=z.Fv();this.addOnDisposeCallback(g.T8(this.tooltip,this.UR));g.b(this,this.xH);this.xH.subscribe("hoverstart",this.Qr,this);this.xH.subscribe("hoverend",this.mN,this);this.S(this.UR,"click",this.QN);this.addOnDisposeCallback(g.T8(this.tooltip,this.yh));g.b(this,this.gx);this.gx.subscribe("hoverstart",this.Qr,this); this.gx.subscribe("hoverend",this.mN,this);this.S(this.yh,"click",this.QN);iQm(this);this.S(N,"resize",this.wW);this.S(N,"presentingplayerstatechange",this.jP);this.S(N,"videodatachange",this.HW);this.S(N,"videoplayerreset",this.D2);this.S(N,"cuerangesadded",this.EAd);this.S(N,"cuerangesremoved",this.b50);this.S(N,"onLoopRangeChange",this.Tj);this.S(N,"innertubeCommand",this.onClickCommand);this.S(N,g.R2("timedMarkerCueRange"),this.rTp);this.S(N,"updatemarkervisibility",this.Eh);this.S(N,"serverstitchedvideochange", this.vAp);this.updateVideoData(N.getVideoData(),!0);this.Tj(N.getLoopRange());he(this)&&!this.W&&(this.W=new uZu(this.api,this.tooltip),N=g.OV(this.element).x||0,this.W.wW(N,this.G),this.W.Nd(this.kJ),g.b(this,this.W),this.S(this.W.dismissButton,"click",this.UI),this.S(this.W.playButton,"click",this.yz),this.S(this.W.element,"dblclick",this.yz));this.api.createClientVe(this.Vp,this,139609,!0);this.api.createClientVe(this.er,this,140127,!0);this.api.createClientVe(this.Bc,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; iQm=function(N){if(N.V.length===0){var z=new Sf;N.V.push(z);g.b(N,z);z.Nd(N.ET,0)}for(;N.V.length>1;)N.V.pop().dispose();E$(N.V[0],"100%");N.V[0].startTime=0;N.V[0].title=""}; jn_=function(N){var z=z===void 0?NaN:z;var v=new vhu(N.api);N.N.push(v);g.b(N,v);v.Nd(N.Vp);z>=0&&(v.element.style.width=z+"px")}; a62=function(N){for(;N.L.length;)N.L.pop().dispose()}; Lyb=function(N){var z,v,R,C,Z;return(Z=g.t((C=g.t((z=N.getWatchNextResponse())==null?void 0:(v=z.playerOverlays)==null?void 0:(R=v.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,mO))==null?void 0:C.playerBar,QnK))==null?void 0:Z.chapters}; Ky_=function(N){for(var z=N.V,v=[],R=0;R=Y&&d<=l&&Z.push(G)}L>0&&(N.Vp.style.height=L+"px");Y=N.N[R];l=Z;G=C;e=L;d=R===0;d=d===void 0?!1:d;Rb7(Y,e);W=l;x=Y.W;d=d===void 0?!1:d;var T=1E3/W.length,m=[];m.push({x:0,y:100});for(var n=0;n0&&(v=Z[Z.length-1])}g.ox(N);Q=[];z=g.f(z.heatMarkersDecorations||[]);for(C=z.next();!C.done;C=z.next())if(C=g.t(C.value,y$f))L=C.label,R=v=K=void 0,Q.push({visibleTimeRangeStartMillis:(K=C.visibleTimeRangeStartMillis)!=null?K:-1,visibleTimeRangeEndMillis:(v=C.visibleTimeRangeEndMillis)!=null?v:-1,decorationTimeMillis:(R=C.decorationTimeMillis)!=null?R:NaN,label:L?g.xt(L):""});N.heatMarkersDecorations=Q}}; GlO=function(N,z){N.L.push(z);g.b(N,z);z.Nd(N.Eu,N.Eu.children.length)}; xSI=function(N,z){z=g.f(z);for(var v=z.next();!v.done;v=z.next()){v=v.value;var R=DE(N,v.timeRangeStartMillis/(N.Z.V*1E3),bV(N));g.SB(v.element,"transform","translateX("+R+"px) scaleX(0.6)")}}; l6v=function(N,z){var v=0,R=!1;z=g.f(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;if(g.t(C,dSO)){C=g.t(C,dSO);var Z={startTime:NaN,title:null,onActiveCommand:void 0},Y=C.title;Z.title=Y?g.xt(Y):"";Y=C.timeRangeStartMillis;Y!=null&&(Z.startTime=Y);Z.onActiveCommand=C.onActiveCommand;C=Z;v===0&&C.startTime!==0&&(N.V[v].startTime=0,N.V[v].title="",N.V[v].onActiveCommand=C.onActiveCommand,v++,R=!0);N.V.length<=v&&(Z=new Sf,N.V.push(Z),g.b(N,Z),Z.Nd(N.ET,N.ET.children.length));N.V[v].startTime= C.startTime;N.V[v].title=C.title?C.title:"";N.V[v].onActiveCommand=C.onActiveCommand;N.V[v].index=R?v-1:v}v++}for(;v=0;R--)if(N.V[R].width>0){Cob(N.V[R],0);var C=Math.floor(N.V[R].width);N.V[R].width=C;E$(N.V[R],C+"px");break}N.V[v].width=0;E$(N.V[v],"0")}else v===N.V.length-1?(R=Math.floor(N.V[v].width+z),N.V[v].width=R,E$(N.V[v],R+"px")):(z=N.V[v].width+z,R=Math.round(z),z-=R,N.V[v].width=R,E$(N.V[v],R+"px"));v=0;if(N.N.length===N.V.length)for(z=0;z< N.N.length;z++)R=N.V[z].width,N.N[z].element.style.width=R+"px",N.N[z].element.style.left=v+"px",v+=R+O$(N);N.api.X("delhi_modern_web_player")&&(N.V.length===1?N.V[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(N.V[0].W.classList.remove("ytp-progress-bar-end"),N.V[0].W.classList.add("ytp-progress-bar-start"),N.V[N.V.length-1].W.classList.add("ytp-progress-bar-end")))}; snv=function(N,z){var v=0,R=!1,C=N.V.length,Z=N.Z.V*1E3;Z===0&&(Z=N.api.getProgressState().seekableEnd*1E3);if(Z>0&&N.G>0){for(var Y=N.G-O$(N)*N.Id,Q=N.zE===0?3:Y*N.zE,L=g.f(N.V),K=L.next();!K.done;K=L.next())K.value.width=0;for(;v1);K=(Z===0?0:L/Z*Y)+N.V[v].width;if(K>Q)N.V[v].width=K;else{N.V[v].width=0;var l=N,W=v,G=l.V[W-1];G!==void 0&&G.width>0? G.width+=K:WN.zE&&(N.zE=L/Z),R=!0)}v++}}return R}; te=function(N){if(N.G){var z=N.api.getProgressState(),v=N.api.getVideoData();if(!(v&&v.enableServerStitchedDai&&v.jq)||isFinite(z.current)){var R;if(((R=N.api.getVideoData())==null?0:N1(R))&&z.airingStart&&z.airingEnd)var C=Ix(N,z.airingStart,z.airingEnd);else if(N.api.getPresentingPlayerType()===2){var Z,Y,Q;C=(v=(C=N.api.getVideoData())==null?void 0:(Z=C.getPlayerResponse())==null?void 0:(Y=Z.playerConfig)==null?void 0:(Q=Y.webPlayerConfig)==null?void 0:Q.skippableAdProgressBarDuration)?Ix(N,z.seekableStart, v/1E3):Ix(N,z.seekableStart,z.seekableEnd)}else C=Ix(N,z.seekableStart,z.seekableEnd);Z=kJ(C,z.loaded,0);z=kJ(C,z.current,0);Y=N.Z.W!==C.W||N.Z.V!==C.V;N.Z=C;XE(N,z,Z);Y&&Tz_(N);FyK(N)}}}; Ix=function(N,z,v){return nhI(N)?new pZ(Math.max(z,N.GE.startTimeMs/1E3),Math.min(v,N.GE.endTimeMs/1E3)):new pZ(z,v)}; $Sv=function(N,z){var v,R,C;z=g.t((v=z.getWatchNextResponse())==null?void 0:(R=v.playerOverlays)==null?void 0:(C=R.playerOverlayRenderer)==null?void 0:C.decoratedPlayerBarRenderer,mO);if(z==null?0:z.progressColor)for(v=0;v1){v=rc(N,z.Z,!0);for(var R=0,C=0;C0&&(R+=N.V[C].width,R+=O$(N));v=(N.V[v].startTime+(z.Z-R)/N.V[v].width*((v===N.V.length-1?N.Z.V*1E3:N.V[v+1].startTime)-N.V[v].startTime))/1E3||0}return v}; c5=function(N,z,v,R,C){z=z<0?0:Math.floor(Math.min(z,N.api.getDuration())*1E3);v=v<0?0:Math.floor(Math.min(v,N.api.getDuration())*1E3);N=N.progressBar.visualElement;R={seekData:{startMediaTimeMs:z,endMediaTimeMs:v,seekSource:R}};(z=g.nz())&&g.qV(Mz)(void 0,z,N,C,R,void 0)}; Bzb=function(N,z,v){if(v>=N.V.length)return!1;var R=N.G-O$(N)*N.Id;return Math.abs(z-N.V[v].startTime/1E3)/N.Z.V*R<4}; Tz_=function(N){N.MF.style.removeProperty("height");for(var z=g.f(Object.keys(N.UT)),v=z.next();!v.done;v=z.next())A$x(N,v.value);qB(N);XE(N,N.qd,N.A0)}; bV=function(N){var z=N.gW.x;z=g.UC(z,0,N.G);N.I_.update(z,N.G);return N.I_}; wc=function(N){return(N.J?135:90)-MB(N)}; MB=function(N){var z=48,v=N.api.D();N.api.X("delhi_modern_web_player")?z=N.J?96:68:N.J?z=54:g.Uu(v)&&!v.W&&(z=40);return z}; XE=function(N,z,v){N.qd=z;N.A0=v;var R=bV(N),C=N.Z.V;var Z=N.Z;Z=Z.W+N.qd*Z.getLength();var Y=g.WA("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.TX(Z,!0),DURATION:g.TX(C,!0)}),Q=Cn(N.V,Z*1E3);Q=N.V[Q].title;N.update({ariamin:Math.floor(N.Z.W),ariamax:Math.floor(C),arianow:Math.floor(Z),arianowtext:Q?Q+" "+Y:Y});C=N.clipStart;Z=N.clipEnd;N.GE&&N.api.getPresentingPlayerType()!==2&&(C=N.GE.startTimeMs/1E3,Z=N.GE.endTimeMs/1E3);C=kJ(N.Z,C,0);Q=kJ(N.Z,Z,1);Y=N.api.getVideoData();Z=g.UC(z,C,Q);v=(Y==null? 0:g.ID(Y))?1:g.UC(v,C,Q);z=DE(N,z,R);g.SB(N.B2,"transform","translateX("+z+"px)");N.api.X("delhi_modern_web_player")&&ghU(N,z);NZ(N,R,C,Z,"PLAY_PROGRESS");(Y==null?0:N1(Y))?(z=N.api.getProgressState().seekableEnd)&&NZ(N,R,Z,kJ(N.Z,z),"LIVE_BUFFER"):NZ(N,R,C,v,"LOAD_PROGRESS");if(N.api.X("web_player_heat_map_played_bar")){var L;(L=N.N[0])!=null&&L.L.setAttribute("width",(Z*100).toFixed(2)+"%")}}; ghU=function(N,z){N.api.getPresentingPlayerType()!==1?N.ET.style.removeProperty("clip-path"):(z||(z=DE(N,N.qd,bV(N))),N.ET.style.clipPath='path("'+(N.HH?pxx(N,8,z,N.J?50:36,0,6):pxx(N,4,z,N.J?34:24,2,3))+'")')}; pxx=function(N,z,v,R,C,Z){var Y=v-R/2;v+=R/2;z+=C;return"M 0 "+C+" L 0 "+(z+" L ")+(Y+" "+z+" C ")+(Y+Z+" "+z+" "+(Y+Z)+" "+C+" "+Y+" "+C+" L 0 ")+(C+" M ")+(v+" "+C+" L ")+(N.G+" "+C+" L ")+(N.G+" "+z+" L ")+(v+" "+z+" C ")+(v-Z+" "+z+" "+(v-Z)+" "+C+" "+v+" "+C)}; NZ=function(N,z,v,R,C){var Z=N.V.length,Y=z.V-N.Id*O$(N),Q=v*Y;v=rc(N,Q);var L=R*Y;Y=rc(N,L);C==="HOVER_PROGRESS"&&(Y=rc(N,z.V*R,!0),L=z.V*R-klu(N,z.V*R)*O$(N));R=Math.max(Q-PoK(N,v),0);for(Q=v;Q=N.V.length)return N.G;for(var v=0,R=0;R0||N.Fy.clientWidth>0?(Z=z.clientWidth/v,N=-1*N.RP.clientWidth/v):(Z/=v,N=-1*N.V[C].element.offsetLeft/v),g.SB(z,"background-size",Z+"px"),g.SB(z,"background-position-x",N+"px"))}; zd=function(N,z,v,R,C){C||N.api.D().W?z.style.width=v+"px":g.SB(z,"transform","scalex("+(R?v/R:0)+")")}; rc=function(N,z,v){var R=0;(v===void 0?0:v)&&(z-=klu(N,z)*O$(N));v=g.f(N.V);for(var C=v.next();!C.done;C=v.next()){C=C.value;if(z>C.width)z-=C.width;else break;R++}return R===N.V.length?R-1:R}; DE=function(N,z,v){var R=z*N.Z.V*1E3;for(var C=-1,Z=g.f(N.V),Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,R>Y.startTime&&Y.width>0&&C++;R=C<0?0:C;C=v.V-O$(N)*N.Id;return z*C+O$(N)*R+v.N}; klu=function(N,z){for(var v=N.V.length,R=0,C=g.f(N.V),Z=C.next();!Z.done;Z=C.next())if(Z=Z.value,Z.width!==0)if(z>Z.width)z-=Z.width,z-=O$(N),R++;else break;return R===v?v-1:R}; g.EhY=function(N,z,v,R){var C=N.G!==v,Z=N.J!==R;N.o4=z;N.G=v;N.J=R;he(N)&&(z=N.W)!=null&&(z.scale=R?1.5:1);Tz_(N);N.V.length===1&&(N.V[0].width=v||0);C&&g.ox(N);N.W&&Z&&he(N)&&(N.W.isEnabled&&(v=N.J?135:90,R=v-MB(N),N.kJ.style.height=v+"px",g.SB(N.Vp,"transform","translateY("+-R+"px)"),g.SB(N.progressBar,"transform","translateY("+-R+"px)")),wpu(N.W))}; qB=function(N){var z=!!N.GE&&N.api.getPresentingPlayerType()!==2,v=N.clipStart,R=N.clipEnd,C=!0,Z=!0;z&&N.GE?(v=N.GE.startTimeMs/1E3,R=N.GE.endTimeMs/1E3):(C=v>N.Z.W,Z=N.Z.V>0&&RN.qd);g.QY(N.MF,"ytp-scrubber-button-hover",v===R&&N.V.length>1);if(N.api.X("web_player_heat_map_played_bar")){var Z;(Z=N.N[0])!=null&&Z.V.setAttribute("width",(z.W*100).toFixed(2)+"%")}}}; A$x=function(N,z){var v=N.UT[z];z=N.Dx[z];var R=bV(N),C=kJ(N.Z,v.start/1E3,0),Z=Q$m(v,N.J)/R.width;var Y=kJ(N.Z,v.end/1E3,1);Z!==Number.POSITIVE_INFINITY&&(C=g.UC(C,0,Y-Z));Y=Math.min(Y,C+Z);v.color&&(z.style.background=v.color);v=C;z.style.left=Math.max(v*R.V+R.N,0)+"px";zd(N,z,g.UC((Y-v)*R.V+R.N,0,R.width),R.width,!0)}; hbf=function(N,z){var v=z.getId();N.UT[v]===z&&(g.Ct(N.Dx[v]),delete N.UT[v],delete N.Dx[v])}; he=function(N){var z=g.ci(N.api.D())&&(N.api.X("web_shorts_pip")||N.api.X("web_watch_pip")),v;return!((v=N.api.getVideoData())==null?0:v.isLivePlayback)&&!N.api.isMinimized()&&!N.api.isInline()&&(!N.api.Cr()||!z)}; vB=function(N){N.W&&(N.W.disable(),N.xT=0,N.Vp.style.removeProperty("transform"),N.progressBar.style.removeProperty("transform"),N.kJ.style.removeProperty("height"),N.element.parentElement&&N.element.parentElement.style.removeProperty("height"))}; HQ2=function(N,z){var v=z/wc(N)*MB(N);g.SB(N.progressBar,"transform","translateY("+-z+"px)");g.SB(N.Vp,"transform","translateY("+-z+"px)");g.SB(N.kJ,"transform","translateY("+v+"px)");N.kJ.style.height=z+v+"px";N.element.parentElement&&(N.element.parentElement.style.height=MB(N)-v+"px")}; ohu=function(N,z){z?N.Y||(N.element.removeAttribute("aria-disabled"),N.Y=new g.ER(N.progressBar,!0),N.Y.subscribe("hovermove",N.CFL,N),N.Y.subscribe("hoverend",N.RC8,N),N.Y.subscribe("dragstart",N.K4O,N),N.Y.subscribe("dragmove",N.dpp,N),N.Y.subscribe("dragend",N.G4l,N),N.api&&N.api.X("delhi_modern_web_player")&&(N.ZT=new g.ER(N.progressBar,!0),N.ZT.subscribe("hoverstart",function(){N.HH=!0;ghU(N)},N),N.ZT.subscribe("hoverend",function(){N.HH=!1; ghU(N)},N)),N.w$=N.listen("keydown",N.w7)):N.Y&&(N.element.setAttribute("aria-disabled","true"),N.Kb(N.w$),N.Y.cancel(),N.Y.dispose(),N.Y=null)}; O$=function(N){return N.api.X("delhi_modern_web_player")?4:N.J?3:2}; nhI=function(N){var z;return!((z=N.GE)==null||!z.postId)&&N.api.getPresentingPlayerType()!==2}; Rf=function(N,z){g.X.call(this,{K:"button",GU:["ytp-remote-button","ytp-button"],T:{title:"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},OT:"{{icon}}"});this.C=N;this.b$=z;this.V=null;this.S(N,"onMdxReceiversChange",this.FW);this.S(N,"presentingplayerstatechange",this.FW);this.S(N,"appresize",this.FW);N.createClientVe(this.element,this,139118);this.FW();this.listen("click",this.W,this);Fj(N,this.element,this)}; C8=function(N,z){g.X.call(this,{K:"button",GU:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":a$(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},j:[g.Ud()]});this.C=N;this.b$=z;this.W=!0;this.listen("click",this.Z);this.S(N,"onPlaybackQualityChange",this.updateBadge);this.S(N,"videodatachange",this.updateBadge);this.S(N,"webglsettingschanged",this.updateBadge);this.S(N,"appresize",this.V);Fj(N,this.element,this);this.C.createClientVe(this.element, this,28663);this.updateBadge();this.V(N.n0().getPlayerSize())}; DSx=function(N,z){N.W=!!z;N.V(N.C.n0().getPlayerSize())}; Zb=function(N,z){Cs.call(this,"Anotaciones",g.Qo.R3);this.C=N;this.b$=z;this.V=!1;N.X("web_settings_menu_icons")&&this.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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.S(N,"videodatachange",this.FW);this.S(N,"onApiChange",this.FW);this.subscribe("select",this.onSelect,this);this.FW()}; Yi=function(N,z){g.Ph.call(this,"Pista de audio",g.Qo.AUDIO,N,z);this.C=N;this.tracks={};g.Ye(this.element,"ytp-audio-menu-item");this.countLabel=new g.X({K:"div",j:[{K:"span",OT:"Pista de audio"},{K:"span",U:"ytp-menuitem-label-count",OT:"{{content}}"}]});N.X("web_settings_menu_icons")&&this.setIcon(dpf());g.b(this,this.countLabel);g.Iu(this,this.countLabel);this.S(N,"videodatachange",this.FW);this.S(N,"onPlaybackAudioChange",this.FW);this.FW()}; ju=function(N,z){Cs.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Qo.I3);this.C=N;this.b$=z;this.V=!1;this.Z=[];this.S(N,"presentingplayerstatechange",this.W);this.subscribe("select",this.onSelect,this);N.createClientVe(this.element,this,113682);this.W()}; bQx=function(N,z){g.Xj.call(this,g.r1({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.C=N;this.b$=z;this.S(this.element,"click",this.onClick);this.b$.dH(this)}; tgK=function(N,z){var v;g.ci(N.D())&&(v={K:"div",U:"ytp-panel-footer-content",j:[{K:"span",OT:"Ajusta la calidad de descarga desde tu "},{K:"a",U:"ytp-panel-footer-content-link",OT:"Configuraci\u00f3n",T:{href:"/account_downloads"}}]});g.Ph.call(this,"Calidad",g.Qo.NW,N,z,void 0,void 0,v);this.C=N;this.PL={};this.J={};this.N={};this.K0=new Set;this.V=this.G=!1;this.L="unknown";this.qd="";this.Vp=new g.XC;g.b(this,this.Vp);this.G=this.C.X("web_player_use_new_api_for_quality_pullback");this.V=this.C.X("web_player_enable_premium_hbr_playback_cap"); N.X("web_settings_menu_icons")&&this.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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.Ye(this.W.element,"ytp-quality-menu");this.S(N,"videodatachange",this.zY);this.S(N,"videoplayerreset",this.zY);this.S(N,"onPlaybackQualityChange",this.J8);this.zY();N.createClientVe(this.element,this,137721)}; I6U=function(N,z,v){var R=N.PL[z],C=g.hx[z];return OQv(N,R?R.qualityLabel:C?C+"p":"Autom\u00e1tica",z,v)}; XxO=function(N,z,v,R,C){var Z=(z=N.V?N.N[z]:N.J[z])&&z.quality,Y=z&&z.qualityLabel;Y=Y?Y:"Autom\u00e1tica";R&&(Y="("+Y);N=OQv(N,Y,Z||"",C);R&&N.j.push(")");(R=(R=z&&z.paygatedQualityDetails)&&R.paygatedIndicatorText)&&v&&N.j.push({K:"div",U:"ytp-premium-label",OT:R});return N}; OQv=function(N,z,v,R){z={K:"span",GU:R,j:[z]};var C;R="ytp-swatch-color";if(N.G||N.V)R="ytp-swatch-color-white";v==="highres"?C="8K":v==="hd2880"?C="5K":v==="hd2160"?C="4K":v.indexOf("hd")===0&&v!=="hd720"&&(C="HD");C&&(z.j.push(" "),z.j.push({K:"sup",U:R,OT:C}));return z}; af=function(N){U$.call(this,N.getAvailablePlaybackRates()[0],N.getAvailablePlaybackRates()[N.getAvailablePlaybackRates().length-1],.05,N.getPlaybackRate(),{K:"div",U:"ytp-speedslider-indicator-container",j:[{K:"div",U:"ytp-speedslider-badge"},{K:"p",U:"ytp-speedslider-text"}]});this.C=N;this.qd=eY(this.Vp,50,this);g.Ye(this.W,"ytp-speedslider");this.J=this.e8("ytp-speedslider-text");this.K0=this.e8("ytp-speedslider-badge");r$7(this);this.S(this.W,"change",this.PL)}; r$7=function(N){N.J.textContent=N.V+"x";N.K0.classList.toggle("ytp-speedslider-premium-badge",N.V>2&&N.C.X("enable_web_premium_varispeed"))}; QA=function(N,z,v,R,C,Z,Y){g.X.call(this,{K:"div",U:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{K:"div",U:"ytp-slider",j:[{K:"div",U:"ytp-slider-handle"}]}]});this.Y=N;this.J=z;this.W=v;this.Z=R;this.qd=C;this.Rd=Z;this.range=this.Z-this.W;this.Id=this.e8("ytp-slider-section");this.N=this.e8("ytp-slider");this.Vp=this.e8("ytp-slider-handle");this.L=new g.ER(this.N, !0);this.V=Y?Y:v;g.b(this,this.L);this.L.subscribe("dragmove",this.vE,this);this.S(this.element,"keydown",this.Tg);this.S(this.element,"wheel",this.EK);this.init()}; L8=function(N){QA.call(this,.05,.05,N.getAvailablePlaybackRates()[0],N.getAvailablePlaybackRates()[N.getAvailablePlaybackRates().length-1],150,20,N.getPlaybackRate());this.C=N;this.G=g.wL("P");this.K0=eY(this.PL,50,this);g.Ye(this.N,"ytp-speedslider");g.Ye(this.G,"ytp-speedslider-text");N=this.G;var z=this.N;z.parentNode&&z.parentNode.insertBefore(N,z.nextSibling);uLm(this);this.S(this.C,"onPlaybackRateChange",this.updateValues)}; uLm=function(N){N.G.textContent=c$O(N,N.V)+"x"}; c$O=function(N,z){N=Number(g.UC(z,N.W,N.Z).toFixed(2));z=Math.floor((N+.001)*100%5+2E-15);var v=N;z!==0&&(v=N-z*.01);return Number(v.toFixed(2))}; qex=function(N){g.lG.call(this,{K:"div",U:"ytp-speedslider-component"});N.X("web_settings_use_input_slider")?this.V=new af(N):this.V=new L8(N);g.b(this,this.V);this.element.appendChild(this.V.element)}; MgY=function(N){var z=new qex(N);TG.call(this,N,z,"Personalizada");g.b(this,z)}; wxU=function(N,z){var v=new MgY(N);g.Ph.call(this,"Velocidad de reproducci\u00f3n",g.Qo.Cl,N,z,K8(N)?void 0:"Personalizada",K8(N)?void 0:function(){g.$2(z,v)}); var R=this;this.N=!1;g.b(this,v);this.L=new af(N);g.b(this,this.L);N.X("web_settings_menu_icons")&&this.setIcon({K:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{K:"path",T:{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.C=N;this.N=!1;this.qd=null;K8(N)?(this.V=g.WA("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.C.getPlaybackRate().toString()}),this.G=this.C.getPlaybackRate()):this.G=this.V=null;this.J=this.C.getAvailablePlaybackRates();this.S(N,"presentingplayerstatechange",this.FW);var C;((C=this.C.getVideoData())==null?0:C.Lb())&&this.S(N,"serverstitchedvideochange",this.FW);this.S(this.L.W,"change",function(){R.N=!0;R.FW()}); this.FW()}; N62=function(N,z){var v=ln(z);N.V&&(N.N||z===N.G)?(N.jI(N.V),N.Qy(z.toString())):N.jI(v)}; vBm=function(N){N.OA(N.J.map(ln));N.V=null;N.G=null;var z=N.C.getPlaybackRate();K8(N.C)&&zRm(N,z);!N.J.includes(z)||N.N?N.jI(N.V):N.jI(ln(z))}; zRm=function(N,z){N.G=z;N.V=g.WA("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:z.toString()});z=N.J.map(ln);z.unshift(N.V);N.OA(z)}; ln=function(N){return N.toString()}; K8=function(N){return N.X("web_settings_menu_surface_custom_playback")}; RR_=function(N){return N.X("web_settings_menu_surface_custom_playback")&&N.X("web_settings_use_input_slider")}; ZDY=function(N,z,v,R){var C=new g.FW(z,void 0,"Anulaci\u00f3n de v\u00eddeo");g.Ph.call(this,R.text||"",N,z,v,"Anulaci\u00f3n de v\u00eddeo",function(){g.$2(v,C)}); var Z=this;g.Ye(this.element,"ytp-subtitles-options-menu-item");this.setting=R.option.toString();N=R.options;this.settings=g.H$(N,this.ib,this);this.G=C;g.b(this,this.G);z=new g.Xj({K:"div",U:"ytp-menuitemtitle",OT:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.b(this,z);this.G.dH(z,!0);this.N=new g.Xj({K:"div",U:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},j:[{K:"div",U:"ytp-menuitem-label",OT:"Activado"}]},-1);g.b(this,this.N);this.G.dH(this.N, !0);this.S(this.N.element,"click",function(){Cdf(Z,!0)}); this.V=new g.Xj({K:"div",U:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},j:[{K:"div",U:"ytp-menuitem-label",OT:"No"}]},-2);g.b(this,this.V);this.G.dH(this.V,!0);this.S(this.V.element,"click",function(){Cdf(Z,!1)}); this.OA(g.OL(N,this.ib))}; Cdf=function(N,z){N.publish("settingChange",N.setting+"Override",!z);N.b$.vK()}; WB=function(N,z){g.FW.call(this,N,void 0,"Opciones");var v=this;this.cM={};for(var R=0;R=0);if(!(z<0||z===N.N)){N.N=z;z=243*N.scale;var v=141*N.scale,R=y5O(N.W,N.N,z);BFO(N.bg,R,z,v,!0);N.qd.start()}}; kC7=function(N){var z=N.V;N.type===3&&N.Vp.stop();N.api.removeEventListener("appresize",N.J);N.L||z.setAttribute("title",N.Z);N.Z="";N.V=null;N.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});N.wrapper.style.width=""}; VmO=function(N){g.X.call(this,{K:"button",GU:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Uu(N.D()))},j:[{K:"div",U:"ytp-watch-later-icon",OT:"{{icon}}"},{K:"div",U:"ytp-watch-later-title",OT:"Ver m\u00e1s tarde"}]});this.C=N;this.icon=null;this.visible=this.isRequestPending=this.V=!1;Nqv(N);N.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.S(N,"videoplayerreset",this.onReset);this.S(N, "appresize",this.rR);this.S(N,"videodatachange",this.rR);this.S(N,"presentingplayerstatechange",this.rR);this.rR();N=this.C.D();var z=g.Pe("yt-player-watch-later-pending");N.N&&z?(HMO(),PdU(this)):this.FW(2);g.QY(this.element,"ytp-show-watch-later-title",g.Uu(N));Fj(this.C,this.element,this)}; SOm=function(N){var z=N.C.getPlayerSize(),v=N.C.D(),R=g.h(N.C.getVideoData()),C=g.Uu(v)&&g.AW(N.C)&&g.u(N.C.getPlayerStateObject(),128),Z=v.Z;return v.RP&&z.width>=240&&!R.isAd()&&R.RP&&!C&&!g.z8(R)&&!N.C.isEmbedsShortsMode()&&!Z}; EBv=function(N,z){Iam(g.Ou(N.C.D()),"wl_button",function(){HMO({videoId:z});window.location.reload()})}; PdU=function(N){if(!N.isRequestPending){N.isRequestPending=!0;N.FW(3);var z=g.h(N.C.getVideoData());z=N.V?z.removeFromWatchLaterCommand:z.addToWatchLaterCommand;var v=g.h(N.C.dD()),R=N.V?function(){N.V=!1;N.isRequestPending=!1;N.FW(2);N.C.D().Y&&N.C.Qp("WATCH_LATER_VIDEO_REMOVED")}:function(){N.V=!0; N.isRequestPending=!1;N.FW(1);N.C.D().W&&N.C.Bn(N.element);N.C.D().Y&&N.C.Qp("WATCH_LATER_VIDEO_ADDED")}; Xh(v,z).then(R,function(){N.isRequestPending=!1;N.FW(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");N.C.D().Y&&N.C.Qp("WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; hRf=function(N,z){if(z!==N.icon){switch(z){case 3:var v=jd();break;case 1:v=Ju();break;case 2:v={K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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:v={K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path", qp:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}N.updateValue("icon",v);N.icon=z}}; g.U4=function(){g.Df.apply(this,arguments);this.T5=(this.n7=g.Uu(this.api.D()))&&(this.api.D().W||wm()||qL());this.x0=48;this.fv=69;this.zR=this.HP=null;this.s7=[];this.Y2=this.PK=this.DH=this.sP=this.Mv=null;this.mV=[];this.contextMenu=this.UD=this.overflowButton=this.V2=this.Vl=this.searchButton=this.copyLinkButton=this.shareButton=this.sV=this.iE=this.title=this.channelAvatar=this.bU=this.tooltip=null;this.G7=!1;this.f2=this.ej=this.Lt=this.Ux=null;this.qg=this.Ee=this.ir=!1}; HDK=function(N){var z=N.api.D(),v=g.u(N.api.getPlayerStateObject(),128);return z.N&&v&&!N.api.isFullscreen()}; oB_=function(N){if(N.ED()&&!N.api.isEmbedsShortsMode()&&N.V2){var z=N.api.X("web_player_hide_overflow_button_if_empty_menu");!N.sV||z&&!SOm(N.sV)||rtI(N.V2,N.sV);!N.shareButton||z&&!ap7(N.shareButton)||rtI(N.V2,N.shareButton);!N.copyLinkButton||z&&!jFY(N.copyLinkButton)||rtI(N.V2,N.copyLinkButton)}else{z=N.api.D().getWebPlayerContextConfig();if(N.V2){for(var v=N.V2,R=g.f(v.actionButtons),C=R.next();!C.done;C=R.next())C.value.detach();v.actionButtons=[]}N.searchButton&&!g.ZQ(N.iE.element,N.searchButton.element)&& N.searchButton.Nd(N.iE.element);!N.sV||(z==null?0:z.hideTopWatchNextButton)||g.ZQ(N.iE.element,N.sV.element)||N.sV.Nd(N.iE.element);!N.shareButton||(z==null?0:z.hideTopShareButton)||g.ZQ(N.iE.element,N.shareButton.element)||N.shareButton.Nd(N.iE.element);N.copyLinkButton&&!g.ZQ(N.iE.element,N.copyLinkButton.element)&&N.copyLinkButton.Nd(N.iE.element)}}; Ddu=function(N,z,v){z=v?z.lastElementChild:z.firstElementChild;for(var R=null;z;){if(HH(z,"display")!=="none"&&z.getAttribute("aria-hidden")!=="true"){var C=void 0;z.tabIndex>=0?C=z:C=Ddu(N,z,v);C&&(R?v?C.tabIndex>R.tabIndex&&(R=C):C.tabIndexR/1E3+1)return{msg:"in-the-past"};if(Z.isLivePlayback&&!isFinite(R))return{msg:"live-infinite"};(R=z.O6())&&R.isView()&&(R=R.mediaElement);if(R&&R.fN().length>12&&g.yO(C))return{msg:"played-ranges"};if(!C.Z)return null;if(!Y)return{msg:"no-pvd-formats"};if(!C.Z.V||!Y.V)return{msg:"non-dash"};R=Y.videoInfos[0];var Q=C.Z.videoInfos[0];N.J&&Ce(Z)&&(R=z.Ju(),Q= v.Ju());if(!R||!Q)return{msg:"no-video-info"};if(N.N&&(rp(R)||rp(Q)))return{msg:"av1"};z=N.W&&Z.YG()&&Dj();if(Q.containerType!==R.containerType)if(z)Z.WL("sgap",{ierr:"container"});else return{msg:"container"};if(N.Z&&!z&&(Q.JO!==R.JO||Q.JO===""||R.JO===""))return{msg:"codec"};if(N.B&&Q.video&&R.video&&Math.abs(Q.video.width/Q.video.height-R.video.width/R.video.height)>.01)return{msg:"ratio"};if(g.yO(Z)&&g.yO(C))return{msg:"content-protection"};Y=Y.V[0];C=C.Z.V[0];v=Y.audio;var L=C.audio;if(v.sampleRate!== L.sampleRate&&!g.gp)if(z)Z.WL("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:Y.itag,cr:v.sampleRate,ni:C.itag,nr:L.sampleRate};return(v.numChannels||2)!==(L.numChannels||2)?{msg:"channel-count"}:N.L&&Z.YG()&&R.video.fps!==Q.video.fps?{msg:"fps"}:null}; Ihu=function(N,z,v){var R=N.getVideoData(),C=z.getVideoData();if(!R.D().supportsGaplessShorts())return{nq:"env"};if(v.Y?R.SI&&!R.isAd()||C.SI&&!C.isAd():v.V?R.SI&&!R.isAd()||C.SI:R.SI||C.SI)return{nq:"autoplay"};if(v.G&&R.endSeconds>0)return{nq:"endcr"};if(!R.Y)return{nq:"client"};if(!N.kG())return{nq:"no-empty"};N=OD7(v,N,z,Infinity);return N!=null?{nq:N.msg}:null}; gM=function(N){g.H.call(this);this.app=N;this.B=this.N=this.W=this.V=null;this.Z=1;this.events=new g.VV(this);this.events.S(this.app.L0,g.C7("gaplessshortslooprange"),this.Y);g.b(this,this.events)}; XCu=function(){this.G=this.B=this.V=this.Y=this.N=this.J=this.L=this.Z=this.W=!1}; rd_=function(N){var z=new XCu;z.W=N.X("h5_gapless_support_types_diff");z.L=N.X("h5_gapless_error_on_fps_diff");z.J=N.X("html5_gapless_use_format_info_fix");z.N=N.X("html5_gapless_disable_on_av1")&&!N.X("html5_gapless_enable_on_av1");z.Z=N.X("html5_gapless_check_codec_diff_strictly");z.Y=N.X("html5_gapless_on_ad_autoplay");z.B=N.X("html5_gapless_disable_diff_aspect_radio");z.G=N.X("html5_gapless_disable_on_end_cue_range");z.V=N.X("html5_gapless_ad_autoplay_on_ad_to_video_only");return z}; g.p8=function(N,z,v,R){R=R===void 0?!1:R;Ma.call(this);this.mediaElement=N;this.start=z;this.end=v;this.V=R}; uz7=function(N,z,v,R,C,Z){Z=Z===void 0?0:Z;g.H.call(this);var Y=this;this.policy=N;this.V=z;this.W=v;this.Iu=C;this.B=Z;this.N=this.Z=null;this.currentVideoDuration=this.G=-1;this.L=!1;this.kC=new qa;this.E5=R-z.fV()*1E3;this.kC.then(void 0,function(){}); this.timeout=new g.cn(function(){Y.nU("timeout")},1E4); g.b(this,this.timeout);this.Y=isFinite(R)||this.Iu.D().experiments.j8("html5_pseudogapless_shorts")&&Ce(z.getVideoData());this.status={status:0,error:null}}; Mmv=function(N){var z,v,R,C,Z,Y,Q,L,K,l;return g.S(function(W){if(W.W==1){if(N.HL())return W.return(Promise.reject(Error(N.status.error||"disposed")));N.timeout.start();z=g.ki.kY();return g.k(W,N.kC,2)}g.ki.Xw("gtfta",z);v=N.V.O6();if(v.isEnded())return N.nU("ended_in_finishTransition"),W.return(Promise.reject(Error(N.status.error||"")));if(!N.N||!O0(N.N))return N.nU("next_mse_closed"),W.return(Promise.reject(Error(N.status.error||"")));if(N.W.GD()!==N.N)return N.nU("next_mse_mismatch"),W.return(Promise.reject(Error(N.status.error|| "")));R=cd7(N);C=R.Wl;Z=R.F8;Y=R.SR;N.V.OJ(!1,!0);Q=qOx(v,C,Y,!N.W.getVideoData().isAd());N.W.setMediaElement(Q);(L=N.V.D_())&&N.W.oI(L.NV,L.K_);N.Y&&(N.W.seekTo(N.W.getCurrentTime()+.001,{Jo:!0,mZ:3,Np:"gapless_pseudo"}),Q.play(),gm());K=v.TE();K.cpn=N.V.getVideoData().clientPlaybackNonce;K.st=""+C;K.et=""+Y;N.W.WL("gapless",K);N.V.WL("gaplessTo",{cpn:N.W.getVideoData().clientPlaybackNonce});l=N.V.getPlayerType()===N.W.getPlayerType();N.V.wI(Z,!0,!1,l,N.W.getVideoData().clientPlaybackNonce);N.W.wI(N.W.getCurrentTime(), !0,!0,l,N.V.getVideoData().clientPlaybackNonce);g.Fp(function(){!N.W.getVideoData().tO&&N.W.getPlayerState().isOrWillBePlaying()&&N.W.Ok()}); PB(N,6);N.dispose();return W.return(Promise.resolve())})}; vvb=function(N){if(N.W.getVideoData().Z){var z=N.Iu.D().X("html5_gapless_suspend_next_loader")&&N.B===1;N.W.lU(N.N,z,wCb(N));PB(N,3);N7u(N);var v=zoI(N);z=v.RH;v=v.mp;z.subscribe("updateend",N.wh,N);v.subscribe("updateend",N.wh,N);N.wh(z);N.wh(v)}}; N7u=function(N){N.V.unsubscribe("internalvideodatachange",N.N3,N);N.W.unsubscribe("internalvideodatachange",N.N3,N);N.Iu.D().X("html5_gapless_use_format_info_fix")&&(N.V.unsubscribe("internalvideoformatchange",N.N3,N),N.W.unsubscribe("internalvideoformatchange",N.N3,N));N.V.unsubscribe("mediasourceattached",N.N3,N);N.W.unsubscribe("statechange",N.ag,N)}; qOx=function(N,z,v,R){N=N.isView()?N.mediaElement:N;return new g.p8(N,z,v,R)}; PB=function(N,z){z<=N.status.status||(N.status={status:z,error:null},z===5&&N.kC.resolve())}; wCb=function(N){return N.Iu.D().X("html5_gapless_no_clear_buffer_timeline")&&N.B===1&&iM(N.V.getVideoData())}; cd7=function(N){var z=N.V.O6();z=z.isView()?z.start:0;var v=N.V.getVideoData().isLivePlayback?Infinity:N.V.yg(!0);v=Math.min(N.E5/1E3,v)+z;var R=N.Y?100:0;N=v-N.W.F6()+R;return{D4:z,Wl:N,F8:v,SR:Infinity}}; zoI=function(N){return{RH:N.Z.V.v5,mp:N.Z.W.v5}}; VA=function(N){g.H.call(this);var z=this;this.app=N;this.B=this.W=this.V=null;this.Y=!1;this.Z=this.N=null;this.L=rd_(this.app.D());this.G=function(){g.Fp(function(){Rou(z)})}}; C07=function(N,z,v,R,C){R=R===void 0?0:R;C=C===void 0?0:C;N.kG()||Su(N);N.N=new qa;N.V=z;var Z=v,Y=C===0;Y=Y===void 0?!0:Y;var Q=N.app.f0(),L=Q.getVideoData().isLivePlayback?Infinity:Q.yg(!0)*1E3;Z>L&&(Z=L-200,N.Y=!0);Y&&Q.getCurrentTime()>=Z/1E3?N.G():(N.W=Q,Y&&(Y=Z,Z=N.W,N.app.L0.addEventListener(g.R2("vqueued"),N.G),Y=isFinite(Y)||Y/1E3>Z.getDuration()?Y:0x8000000000000,N.B=new g.zt(Y,0x8000000000000,{namespace:"vqueued"}),Z.addCueRange(N.B)));Y=R/=1E3;Z=z.getVideoData().V;R&&Z&&N.W&&(Q=R,L=0, z.getVideoData().isLivePlayback&&(Y=Math.min(v/1E3,N.W.yg(!0)),L=Math.max(0,Y-N.W.getCurrentTime()),Q=Math.min(R,z.yg()+L)),Y=yNI(Z,Q)||R,Y!==R&&N.V.WL("qvaln",{st:R,at:Y,rm:L,ct:Q}));z=Y;R=N.V;R.getVideoData().o4=!0;R.getVideoData().Y=!0;R.jW(!0);Z={};N.W&&(Z=N.W.C8(),Y=N.W.getVideoData().clientPlaybackNonce,Z={crt:(Z*1E3).toFixed(),cpn:Y});R.WL("queued",Z);z!==0&&R.seekTo(z+.01,{Jo:!0,mZ:3,Np:"videoqueuer_queued"});N.Z=new uz7(N.L,N.app.f0(),N.V,v,N.app,C);v=N.Z;v.status.status!==Infinity&&(PB(v, 1),v.V.subscribe("internalvideodatachange",v.N3,v),v.W.subscribe("internalvideodatachange",v.N3,v),v.Iu.D().X("html5_gapless_use_format_info_fix")&&(v.V.subscribe("internalvideoformatchange",v.N3,v),v.W.subscribe("internalvideoformatchange",v.N3,v)),v.V.subscribe("mediasourceattached",v.N3,v),v.W.subscribe("statechange",v.ag,v),v.V.subscribe("newelementrequired",v.ob,v),v.N3());return N.N}; Rou=function(N){var z,v,R,C,Z,Y,Q,L,K;g.S(function(l){switch(l.W){case 1:if(N.HL()||!N.N||!N.V)return l.return();N.Y&&N.app.f0().n1(!0,!1);v=N.app.D().X("html5_force_csdai_gapful_transition")&&((z=N.app.f0())==null?void 0:z.getVideoData().isDaiEnabled());R=null;if(!N.Z||v){l.Zp(2);break}g.d_(l,3);return g.k(l,Mmv(N.Z),5);case 5:g.nO(l,2);break;case 3:R=C=g.U2(l);case 2:if(!N.V)return l.return();g.ki.Mg("vqsp",function(){N.app.f9(N.V)}); if(!N.V)return l.return();Z=N.V.O6();N.app.D().X("html5_gapless_seek_on_negative_time")&&Z&&Z.getCurrentTime()<-.01&&N.V.seekTo(0);g.ki.Mg("vqpv",function(){N.app.playVideo()}); if(R||v)N.V?(Y=R?R.message:"forced",(Q=N.W)==null||Q.WL("gapfulfbk",{r:Y}),N.V.l9(Y)):(L=N.W)==null||L.WL("gapsp",{});K=N.N;Su(N);K&&K.resolve();return l.return(Promise.resolve())}})}; Su=function(N,z){z=z===void 0?!1:z;if(N.W){if(N.B){var v=N.W;N.app.L0.removeEventListener(g.R2("vqueued"),N.G);v.removeCueRange(N.B)}N.W=null;N.B=null}N.Z&&(N.Z.status.status!==6&&(v=N.Z,v.status.status!==Infinity&&v.B!==1&&v.nU("Canceled")),N.Z=null);N.N=null;N.V&&!z&&N.V!==N.app.Pb()&&N.V!==N.app.f0()&&N.V.dispose();N.V&&z&&N.V.xa();N.V=null;N.Y=!1}; ZoK=function(N){var z;return((z=N.Z)==null?void 0:z.currentVideoDuration)||-1}; YaI=function(N,z,v){if(N.kG())return"qie";if(N.V==null||N.V.HL()||N.V.getVideoData()==null)return"qpd";if(z.videoId!==N.V.uv())return"vinm";if(ZoK(N)<=0)return"ivd";if(v!==1)return"upt";if((v=N.Z)==null)N=void 0;else if(v.getStatus().status!==5)N="niss";else if(OD7(v.policy,v.V,v.W,v.E5)!=null)N="pge";else{z=zoI(v);N=z.RH;var R=z.mp;z=g.LM(v.Iu.D().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var C=v.G+z;v.Iu.D().experiments.j8("html5_pseudogapless_shorts")&&(C=cd7(v).Wl+z);v=jx(R.vc(), C);N=jx(N.vc(),C);N=!(z>0)||v&&N?null:"neb"}return N!=null?N:null}; ioY=function(){g.jJ.call(this);var N=this;this.fullscreen=0;this.N=this.Z=this.pictureInPicture=this.V=this.W=this.inline=!1;this.B=function(){N.iI()}; Rs7(this.B);this.G=this.getVisibilityState(this.jN(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Cr(),this.Cm(),this.MO(),this.Ke())}; Yqf=function(N){return!(N.isMinimized()||N.isInline()||N.isBackground()||N.Cr()||N.Cm()||N.MO()||N.Ke())}; g.E4=function(N){g.H.call(this);this.iS=N;this.videoData=this.playerState=null}; of=function(N,z){g.H.call(this);var v=this;this.data=[];this.Z=N||NaN;this.W=z||null;this.V=new g.cn(function(){hz(v);HB(v)}); g.b(this,this.V)}; v0u=function(N){hz(N);return N.data.map(function(z){return z.value})}; hz=function(N){var z=(0,g.I)();N.data.forEach(function(v){v.expire0));(R=g.LM(z, "html5_cobalt_audio_write_ahead_ms"))&&al("Media.AudioWriteDurationLocal",R);(R=v("html5_cobalt_enable_decode_to_texture"))&&al("Media.PlayerConfiguration.DecodeToTexturePreferred",R?1:0);(N.LV()||v("html5_log_cpu_info"))&&w8v();Error.stackTraceLimit=50;var C=g.LM(z,"html5_idle_rate_limit_ms");C&&Object.defineProperty(window,"requestIdleCallback",{value:function(Z){return window.setTimeout(Z,C)}}); DQY(N.B);xyv(v("html5_use_ump_request_slicer"));E0K(v("html5_record_now"));v("html5_disable_streaming_xhr")&&(N9=!1);v("html5_byterate_constraints")&&(QN=!0);v("html5_use_non_active_broadcast_for_post_live")&&(My=!0);v("html5_enable_encrypted_av1")&&(X1=!0);VRf(g.LM(N.experiments,"html5_sticky_duration_mos"));N.X("html5_estimate_live_partial_slice_duration")&&(Rlb=!0)}; GwI=function(N,z){return N.slice(z.length).replace(/_[a-z]/g,function(v){return v.toUpperCase().replace("_","")}).replace("Dot",".")}; xou=function(N){for(var z={},v=g.f(Object.keys(N.experiments.flags)),R=v.next();!R.done;R=v.next())if(R=R.value,R.startsWith("cobalt_h5vcc"))if(R.startsWith("cobalt_h5vcc_string")){var C=GwI(R,"cobalt_h5vcc_string");R=zx(N.experiments,R);C&&R&&(z[C]=al(C,R))}else R.startsWith("cobalt_h5vcc")&&(C=GwI(R,"cobalt_h5vcc"),R=g.LM(N.experiments,R),C&&R&&(z[C]=al(C,R)));return z}; O4=function(N,z,v,R,C){C=C===void 0?[]:C;g.H.call(this);this.iS=N;this.jV=z;this.segments=C;this.V=new Map}; eou=function(N,z,v){g.ou.call(this,v.LL());this.yy=N;this.videoData=z}; JPY=function(N){this.end=this.start=N}; g.If=function(){this.V=new Map;this.Z=new Map;this.W=new Map}; g.rM=function(N,z,v,R){g.H.call(this);var C=this;this.api=N;this.iS=z;this.playback=v;this.app=R;this.Id=new g.If;this.W=new Map;this.G=[];this.B=[];this.Z=new Map;this.yh=new Map;this.L=new Map;this.S8=null;this.UR=NaN;this.zE=this.YJ=null;this.CV=new g.cn(function(){yPf(C,C.UR,C.YJ||void 0)}); this.events=new g.VV(this);this.gW=15E3;this.K0=new g.cn(function(){C.Rd=!0;C.playback.Yf(C.gW);fNm(C);if(C.playback.getVideoData().Lb()){var Z;C.oz({togab:(Z=C.PL)==null?void 0:Z.identifier})}C.Tq(!1)},this.gW); this.Rd=!1;this.J=new Map;this.ET=[];this.PL=null;this.A0=new Set;this.tO=[];this.Dx=[];this.Fy=[];this.c5=[];this.V=void 0;this.u6=0;this.UT=!0;this.Y=!1;this.BL=[];this.xT=new Set;this.RP=new Set;this.xH=new Set;this.IM=0;this.vL=new Set;this.Ui=0;this.RU=this.J0=!1;this.tT=this.N="";this.Vp=null;this.logger=new g.Ry("dai");this.Oi={C68:function(){return C.W}, FUp:function(){return C.G}, t5d:function(){return C.Z}, H7p:function(){return C.N}, qNL:function(Z){C.onCueRangeEnter(C.W.get(Z))}, rbd:function(Z){C.onCueRangeExit(C.W.get(Z))}, Dzp:function(Z,Y){C.W.set(Z,Y)}, mzU:function(Z){C.tT=Z}, LX:function(){return C.LX()}, d$l:function(Z){return C.L.get(Z)}, pmW:function(){return C.Vp}}; this.playback.getPlayerType();this.playback.dM(this);this.kJ=this.iS.LV();g.b(this,this.CV);g.b(this,this.events);g.b(this,this.K0);this.events.S(this.api,g.R2("serverstitchedcuerange"),this.onCueRangeEnter);this.events.S(this.api,g.C7("serverstitchedcuerange"),this.onCueRangeExit);aNU(this.app.dg(),this.playback,!1)}; nvm=function(N,z,v,R,C,Z,Y,Q,L){if(N.iS.X("html5_ignore_ads_after_noadresponse")&&L&&N.A0.has(L))return un(N,{reason:"addafternoad",cueid:L}),"";L=dou(N,Z,Z+C);N.Rd&&N.oz({adaftto:1});v||N.oz({missadcon:1,enter:Z,len:C,aid:Q});N.qd&&!N.qd.wV&&(N.qd.wV=Q);N.RU&&N.oz({adfbk:1,enter:Z,len:C,aid:Q});var K=N.playback;Y=Y===void 0?Z+C:Y;Z===Y&&!C&&N.iS.X("html5_allow_zero_duration_ads_on_timeline")&&N.oz({attl0d:1});Z>Y&&un(N,{reason:"enterTime_greater_than_return",jV:Z,iO:Y});var l=K.Mp()*1E3;ZK&&un(N,{reason:"parent_return_greater_than_content_duration",iO:Y,tWT:K});K=null;l=g.A8(N.B,{iO:Z},function(W,G){return W.iO-G.iO}); l>=0&&(K=N.B[l],K.iO>Z&&sUu(N,z.video_id||"",Z,Y,K));if(L&&K)for(l=0;l.5&&N.oz({ttdtb:1,delta:Y,cpn:C.cpn,enter:z.adCpn,exit:v.adCpn,seek:R,skip:Z});N.api.X("html5_ssdai_enable_media_end_cue_range")&&(!R&&!Z&&v.isAd&&v.adCpn?N.api.T3(v.adCpn):(R||Z)&&N.oz({mecr:0,seek:R,skip:Z}));if(z.isAd&&v.isAd){C=!!Z;if(z.adCpn&&v.adCpn){var Q=N.Z.get(z.adCpn);var L=N.Z.get(v.adCpn)}C?N.oz({igtransskip:1,enter:z.adCpn,exit:v.adCpn,seek:R,skip:Z}):wM(N,L,Q,v.tJ,z.tJ,R,C)}else if(!z.isAd&&v.isAd){N.tT= C.cpn;N.DW(C.cpn);N.api.publish("serverstitchedvideochange");Q=qZ(N,"a2c");N.oz(Q);N.IM=0;if(Q=v.GW)N.u6=Q.end;var K;v.adCpn&&(K=N.Z.get(v.adCpn));K&&N.playback.vM(K,C,v.tJ,z.tJ,R,!!Z)}else if(z.isAd&&!v.isAd){var l;z.adCpn&&(l=N.Z.get(z.adCpn));l&&(N.u6=0,N.tT=l.cpn,N.DW(l.cpn),MZ(N,l),K=qZ(N,"c2a",l),N.oz(K),N.IM=1,N.playback.vM(C,l,v.tJ,z.tJ,R,!!Z))}}; zi=function(N,z,v){v=v===void 0?0:v;var R=g.A8(N.B,{jV:(z+v)*1E3},function(Q,L){return Q.jV-L.jV}); R=R<0?(R+2)*-1:R;if(R>=0)for(var C=z*1E3,Z=R;Z<=R+1&&Z=Y.jV-v*1E3&&C<=Y.iO+v*1E3)return{NC:Y,MM:z}}return{NC:void 0,MM:z}}; Uox=function(N,z){var v="";(z=$oO(N,z))&&(v=z.getId());return v?N.Z.get(v):void 0}; $oO=function(N,z){if(N.tT){var v=N.W.get(N.tT);if(v&&v.start-200<=z&&v.end+200>=z)return v}N=g.f(N.W.values());for(v=N.next();!v.done;v=N.next())if(v=v.value,v.start<=z&&v.end>=z)return v}; yPf=function(N,z,v){var R=N.zE||N.app.f0().getPlayerState();vm(N,!0);N.playback.seekTo(z,v);N=N.app.f0();z=N.getPlayerState();R.isOrWillBePlaying()&&!z.isOrWillBePlaying()?N.playVideo():R.isPaused()&&!z.isPaused()&&N.pauseVideo()}; vm=function(N,z){N.UR=NaN;N.YJ=null;N.CV.stop();N.S8&&z&&N.S8.LF();N.zE=null;N.S8=null}; B7u=function(N){var z=z===void 0?-1:z;var v=v===void 0?Infinity:v;for(var R=[],C=g.f(N.B),Z=C.next();!Z.done;Z=C.next())Z=Z.value,(Z.jVv)&&R.push(Z);N.B=R;R=g.f(N.W.values());for(C=R.next();!C.done;C=R.next())C=C.value,C.start>=z&&C.end<=v&&(N.playback.removeCueRange(C),N.W.delete(C.getId()),N.oz({rmAdCR:1}));R=zi(N,z/1E3);z=R.NC;R=R.MM;if(z&&(R=R*1E3-z.jV,C=z.jV+R,z.durationMs=R,z.iO=C,R=N.W.get(z.cpn))){C=g.f(N.G);for(Z=C.next();!Z.done;Z=C.next())Z=Z.value,Z.start===R.end?Z.start=z.jV+ z.durationMs:Z.end===R.start&&(Z.end=z.jV);R.start=z.jV;R.end=z.jV+z.durationMs}if(z=zi(N,v/1E3).NC){var Y;R="playback_timelinePlaybackId_"+z.m4+"_video_id_"+((Y=z.videoData)==null?void 0:Y.videoId)+"_durationMs_"+z.durationMs+"_enterTimeMs_"+z.jV+"_parentReturnTimeMs_"+z.iO;N.IT("Invalid_clearEndTimeMs_"+v+"_that_falls_during_"+R+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; APm=function(N){N.Id.clearAll();N.W.clear();N.G=[];N.B=[];N.Z.clear();N.yh.clear();N.L.clear();N.J.clear();N.ET=[];N.PL=null;N.A0.clear();N.tO=[];N.Dx=[];N.Fy=[];N.c5=[];N.BL=[];N.xT.clear();N.RP.clear();N.xH.clear();N.vL.clear();N.Rd=!1;N.V=void 0;N.u6=0;N.UT=!0;N.Y=!1;N.IM=0;N.Ui=0;N.J0=!1;N.RU=!1;N.N="";N.K0.isActive()&&cB(N)}; pFb=function(N,z,v,R,C,Z){if(!N.RU)if(g.gv2(N,v))N.oz({gdu:"undec",seg:v,itag:C});else if(z=RR(N,z,v,R,Z),!(N.playback.getVideoData().Lb()&&(z==null?0:z.pm)))return z}; RR=function(N,z,v,R,C){var Z=N.J.get(v);if(!Z){if(Z=kw2(N,z))return Z;z=N.Tt(v-1,R!=null?R:2);if(C)return N.oz({misscue:C,sq:v,type:R,prevsstate:z==null?void 0:z.T$,prevrecord:N.J.has(v-1)}),N.J.get(v-1);if((z==null?void 0:z.T$)===2)return N.oz({adnf:1,sq:v,type:R,prevrecord:N.J.has(v-1)}),N.J.get(v-1)}return Z}; kw2=function(N,z){z+=N.P2();if(N.playback.getVideoData().Lb())a:{var v=1;v=v===void 0?0:v;var R=z*1E3;N=g.f(N.B);for(var C=N.next();!C.done;C=N.next()){C=C.value;var Z=C.bf?C.bf*1E3:C.jV;if(R>=C.jV-v*1E3&&R<=Z+C.durationMs+v*1E3){R={NC:C,MM:z};break a}}R={NC:void 0,MM:z}}else R=zi(N,z),((v=R)==null?0:v.NC)||(R=zi(N,z,1));var Y;return(Y=R)==null?void 0:Y.NC}; P0O=function(N,z){z=z===void 0?"":z;var v=Y1(z)||void 0;if(!z||!v){var R;N.oz({adcfg:(R=z)==null?void 0:R.length,dcfg:v==null?void 0:v.length})}return v}; VFu=function(N){if(N.BL.length)for(var z=g.f(N.BL),v=z.next();!v.done;v=z.next())N.onCueRangeExit(v.value);z=g.f(N.W.values());for(v=z.next();!v.done;v=z.next())N.playback.removeCueRange(v.value);z=g.f(N.G);for(v=z.next();!v.done;v=z.next())N.playback.removeCueRange(v.value);N.W.clear();N.G=[];N.Id.clearAll();N.V||(N.UT=!0)}; wM=function(N,z,v,R,C,Z,Y){if(z&&v){N.tT=v.cpn;N.DW(v.cpn);MZ(N,v);var Q=qZ(N,"a2a",v);N.oz(Q);N.IM++;N.playback.vM(z,v,R||0,C||0,!!Z,!!Y)}else N.oz({misspbkonadtrans:1,enter:(v==null?void 0:v.cpn)||"",exit:(z==null?void 0:z.cpn)||"",seek:Z,skip:Y})}; Evv=function(N,z,v,R){if(R)for(R=0;Rv){var Z=C.end;C.end=z;SaY(N,v,Z)}else if(C.start>=z&&C.startv)C.start=v;else if(C.end>z&&C.end<=v&&C.start=z&&C.end<=v){N.playback.removeCueRange(C);if(N.BL.includes(C))N.onCueRangeExit(C);N.G.splice(R,1);continue}R++}else SaY(N,z,v)}; SaY=function(N,z,v){z=mov(z,v);v=!0;g.EZ(N.G,z,function(Y,Q){return Y.start-Q.start}); for(var R=0;R0){var C=N.G[R],Z=N.G[R-1];if(Math.round(Z.end/1E3)>=Math.round(C.start/1E3)){Z.end=C.end;C!==z?N.playback.removeCueRange(C):v=!1;N.G.splice(R,1);continue}}R++}if(v)for(N.playback.addCueRange(z),z=N.playback.f7("serverstitchedcuerange",36E5),z=g.f(z),v=z.next();!v.done;v=z.next())N.W.delete(v.value.getId())}; CV=function(N,z,v){if(v===void 0||!v){v=g.f(N.ET);for(var R=v.next();!R.done;R=v.next()){R=R.value;if(z>=R.start&&z<=R.end)return;if(z===R.end+1){R.end+=1;return}}N.ET.push(new JPY(z))}}; g.gv2=function(N,z){N=g.f(N.ET);for(var v=N.next();!v.done;v=N.next())if(v=v.value,z>=v.start&&z<=v.end)return!0;return!1}; Za=function(N,z,v){var R;if(R=N.playback.getVideoData().Lb()||N.iS.X("html5_ssdai_extent_last_unfinished_ad_cue_range"))R=(R=N.Z.get(z))&&R.W1?(N=N.L.get(R==null?void 0:R.W1))&&N.slice(-1)[0].cpn===z:!1;return R&&v===2?1E3:0}; sUu=function(N,z,v,R,C){var Z;z={reason:"overlapping_playbacks",Z9l:z,jV:v,iO:R,z9W:C.m4,P6l:((Z=C.videoData)==null?void 0:Z.videoId)||"",WUL:C.durationMs,Oa0:C.jV,Abl:C.iO};un(N,z)}; un=function(N,z,v){N.playback.DF(z,v)}; hou=function(N,z){var v=[];N=N.L.get(z);if(!N)return[];N=g.f(N);for(z=N.next();!z.done;z=N.next())z=z.value,z.cpn&&v.push(z.cpn);return v}; Hou=function(N,z,v){var R=0;N=N.L.get(v);if(!N)return-1;N=g.f(N);for(v=N.next();!v.done;v=N.next()){if(v.value.cpn===z)return R;R++}return-1}; ovO=function(N,z){var v=0;N=N.L.get(z);if(!N)return 0;N=g.f(N);for(z=N.next();!z.done;z=N.next())z=z.value,z.durationMs!==0&&z.iO!==z.jV&&v++;return v}; Dom=function(N,z,v){var R=!1;if(v&&(v=N.L.get(v))){v=g.f(v);for(var C=v.next();!C.done;C=v.next())C=C.value,C.durationMs!==0&&C.iO!==C.jV&&(C=C.cpn,z===C&&(R=!0),R&&!N.RP.has(C)&&(N.oz({decoratedAd:C}),N.RP.add(C)))}}; fNm=function(N){N.kJ&&N.oz({adf:"0_"+((new Date).getTime()/1E3-N.Ui)+"_isTimeout_"+N.Rd})}; dou=function(N,z,v){if(N.tO.length)for(var R=g.f(N.tO),C=R.next(),Z={};!C.done;Z={Gt:void 0},C=R.next()){Z.Gt=C.value;C=Z.Gt.startSecs*1E3;var Y=Z.Gt.K5*1E3+C;if(z>C&&zC&&v0?N:0}else N.LX().videoData.Dx=N.playback.getCurrentTime()}; rPK=function(N,z,v,R){g.H.call(this);var C=this;this.api=N;this.iS=z;this.V=v;this.app=R;this.B=new Map;this.W=[];this.Z=this.L=null;this.qd=NaN;this.G=this.N=this.J=null;this.Y=new g.cn(function(){XFO(C,C.qd,C.J||void 0)}); this.Vp=[];this.PL=new g.cn(function(){var Z=C.Vp.pop();if(Z){var Y=Z.m4,Q=Z.playerVars;Z=Z.playerType;Q&&(Q.prefer_gapless=!0,C.api.preloadVideoByPlayerVars(Q,Z,NaN,"",Y),C.Vp.length&&g.qv(C.PL,4500))}}); this.events=new g.VV(this);this.Oi={XSW:function(){return C.W}}; this.V.getPlayerType();g.b(this,this.Y);g.b(this,this.PL);g.b(this,this.events);this.events.S(this.api,g.R2("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.wD)}; MF7=function(N,z,v,R,C,Z){var Y=z.cpn,Q=z.docid||z.video_id||z.videoId||z.id,L=N.V;Z=Z===void 0?C+R:Z;if(C>Z)return iO(N,"enterAfterReturn enterTimeMs="+C+" is greater than parentReturnTimeMs="+Z.toFixed(3),Y,Q),"";var K=L.Mp()*1E3;if(CK)return L="returnAfterDuration parentReturnTimeMs="+Z.toFixed(3)+" is greater than parentDurationMs="+K+". And timestampOffset in seconds is "+ L.fV(),iO(N,L,Y,Q),"";K=null;for(var l=g.f(N.W),W=l.next();!W.done;W=l.next()){W=W.value;if(C>=W.jV&&CW.jV)return iO(N,"overlappingReturn",Y,Q),"";if(Z===W.jV)return iO(N,"outOfOrder",Y,Q),"";C===W.iO&&(K=W)}Y="cs_childplayback_"+uwY++;Q={GW:jy(R,!0),E5:Infinity,target:null};var G={m4:Y,playerVars:z,playerType:v,durationMs:R,jV:C,iO:Z,Xq:Q};N.W=N.W.concat(G).sort(function(d,T){return d.jV-T.jV}); K?cPu(N,K,{GW:jy(K.durationMs,!0),E5:K.Xq.E5,target:G}):(z={GW:jy(C,!1),E5:C,target:G},N.B.set(z.GW,z),L.addCueRange(z.GW));z=!0;if(N.V===N.app.f0()&&(L=L.getCurrentTime()*1E3,L>=G.jV&&Lz)break;if(Z>z)return{NC:R,MM:z-C};v=Z-R.iO/1E3}return{NC:null,MM:z-v}}; XFO=function(N,z,v){v=v===void 0?{}:v;var R=N.G||N.app.f0().getPlayerState();LV(N,!0);z=isFinite(z)?z:N.V.eM();var C=vfO(N,z);z=C.MM;var Z=(C=C.NC)&&!aR(N,C)||!C&&N.V!==N.app.f0(),Y=z*1E3;Y=N.Z&&N.Z.start<=Y&&Y<=N.Z.end;!Z&&Y||Qt(N);C?qaI(N,C,z,v,R):RLO(N,z,v,R)}; RLO=function(N,z,v,R){var C=N.V;C!==N.app.f0()&&N.app.t1();C.seekTo(z,Object.assign({},{Np:"application_timelinemanager"},v));CAu(N,R)}; qaI=function(N,z,v,R,C){var Z=aR(N,z);if(!Z){z.playerVars.prefer_gapless=!0;N.iS.X("html5_enable_ssap_entity_id")&&(z.playerVars.cached_load=!0);var Y=new g.Os(N.iS,z.playerVars);Y.m4=z.m4;N.api.K1(Y,z.playerType)}Y=N.app.f0();Z||Y.addCueRange(z.Xq.GW);Y.seekTo(v,Object.assign({},{Np:"application_timelinemanager"},R));CAu(N,C)}; CAu=function(N,z){N=N.app.f0();var v=N.getPlayerState();z.isOrWillBePlaying()&&!v.isOrWillBePlaying()?N.playVideo():z.isPaused()&&!v.isPaused()&&N.pauseVideo()}; LV=function(N,z){N.qd=NaN;N.J=null;N.Y.stop();N.N&&z&&N.N.LF();N.G=null;N.N=null}; aR=function(N,z){N=N.app.f0();return!!N&&N.getVideoData().m4===z.m4}; ZpO=function(N){var z=N.W.find(function(C){return aR(N,C)}); if(z){var v=N.app.f0();Qt(N);var R=new g.Ro(8);z=zLU(N,z)/1E3;RLO(N,z,{},R);v.WL("forceParentTransition",{childPlayback:1});N.V.WL("forceParentTransition",{parentPlayback:1})}}; ip_=function(N,z,v){z=z===void 0?-1:z;v=v===void 0?Infinity:v;for(var R=z,C=v,Z=g.f(N.B),Y=Z.next();!Y.done;Y=Z.next()){var Q=g.f(Y.value);Y=Q.next().value;Q=Q.next().value;Q.E5>=R&&Q.target&&Q.target.iO<=C&&(N.V.removeCueRange(Y),N.B.delete(Y))}R=z;C=v;Z=[];Y=g.f(N.W);for(Q=Y.next();!Q.done;Q=Y.next())if(Q=Q.value,Q.jV>=R&&Q.iO<=C){var L=N;L.L===Q&&Qt(L);aR(L,Q)&&L.app.t1()}else Z.push(Q);N.W=Z;R=vfO(N,z/1E3);z=R.NC;R=R.MM;z&&(R*=1E3,Yyx(N,z,R,z.iO===z.jV+z.durationMs?z.jV+R:z.iO));(z=vfO(N,v/1E3).NC)&& iO(N,"Invalid clearEndTimeMs="+v+" that falls during playback={timelinePlaybackId="+(z.m4+" video_id="+z.playerVars.video_id+" durationMs="+z.durationMs+" enterTimeMs="+z.jV+" parentReturnTimeMs="+z.iO+"}.Child playbacks can only have duration updated not their start."))}; Yyx=function(N,z,v,R){z.durationMs=v;z.iO=R;R={GW:jy(v,!0),E5:v,target:null};cPu(N,z,R);aR(N,z)&&N.app.f0().getCurrentTime()*1E3>v&&(z=zLU(N,z)/1E3,v=N.app.f0().getPlayerState(),RLO(N,z,{},v))}; iO=function(N,z,v,R){N.V.WL("timelineerror",{e:z,cpn:v?v:void 0,videoId:R?R:void 0})}; acv=function(N){N&&N!=="web"&&jrm.includes(N)}; KV=function(){g.H.call(this);this.V=new of(5,null);g.b(this,this.V);this.W=new of(15,null);g.b(this,this.W)}; WEx=function(N,z){return z?!!N.V.get(z):!1}; QrK=function(N,z){N.dataset.version=z}; lc_=function(N){g.X.call(this,{K:"div",GU:["html5-video-player"],T:{tabindex:N.D().disableOrganicUi?"":"-1",id:N.webPlayerContextConfig?N.webPlayerContextConfig.rootElementId:N.config.attrs.id},j:[{K:"div",U:g.cM.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var z=this;this.app=N;this.KF=this.e8(g.cM.VIDEO_CONTAINER);this.ZQ=new g.ks(0,0,0,0);this.ou=null;this.U2=new g.ks(0,0,0,0);this.FU=this.JA=this.TB=NaN;this.Y_=this.M1=this.CB=this.rS=!1;this.T7=NaN;this.HJ=!1;this.EW=null;this.In=function(){z.element.focus({preventScroll:!0})}; this.AQ=function(){z.app.L0.publish("playerUnderlayVisibilityChange","visible");z.ou.classList.remove(g.cM.VIDEO_CONTAINER_TRANSITIONING);z.ou.removeEventListener(Ls,z.AQ);z.ou.removeEventListener("transitioncancel",z.AQ)}; this.w_=this.zb=!1;var v=this.element.addEventListener,R=this.element.removeEventListener;this.addEventListener=function(Z,Y,Q){v.apply(z.element,[Z,Y,Q])}; this.removeEventListener=function(Z,Y,Q){R.apply(z.element,[Z,Y,Q])}; var C=N.D();C.transparentBackground&&this.e0("ytp-transparent");C.controlsType==="0"&&this.e0("ytp-hide-controls");g.Ye(this.element,"ytp-exp-bottom-control-flexbox");g.Ye(this.element,"ytp-modern-caption");C.X("enable_new_paid_product_placement")&&!g.M9(C)&&g.Ye(this.element,"ytp-exp-ppp-update");C.X("html5_enable_ssap")&&g.Ye(this.element,"ytp-ssap");g.Ye(this.element,"ytp-livebadge-color");if(C.X("delhi_modern_web_player"))switch(g.Ye(this.element,"ytp-delhi-modern"),zx(C.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.Ye(this.element, "ytp-delhi-modern-with-luminosity");break;case "difference":g.Ye(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.Ye(this.element,"ytp-delhi-modern-with-exclusion")}QrK(this.element,LYm(N));this.w1=!1;this.XC=new g.kQ(NaN,NaN);KY7(this);this.S(N.L0,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; KY7=function(N){function z(){N.ou&&lO(N);Wm(N)!==N.HJ&&N.resize()} function v(Y,Q){N.HW(Y,Q)} function R(Y){Y.getVideoData()&&N.updateVideoData(Y.getVideoData())} function C(){N.U2=new g.ks(0,0,0,0);N.ZQ=new g.ks(0,0,0,0)} var Z=N.app.L0;Z.addEventListener("initializingmode",C);Z.addEventListener("videoplayerreset",R);Z.addEventListener("videodatachange",v);Z.addEventListener("presentingplayerstatechange",z);N.addOnDisposeCallback(function(){Z.removeEventListener("initializingmode",C);Z.removeEventListener("videoplayerreset",R);Z.removeEventListener("videodatachange",v);Z.removeEventListener("presentingplayerstatechange",z)})}; Gmf=function(N){var z=N.app.f0(),v=z=z?z.getVideoData():null;if(z==null?0:g.uT(z))v=N.app.L0.getVideoData();if(v){if(g.UY(v)||g.B0(v)||g.Af(v))return 16/9;if(RD(v)&&v.Z.V)return N=v.Z.videoInfos[0].video,WYK(N.width,N.height)}return(N=N.ou)?WYK(N.videoWidth,N.videoHeight):16/9}; xC7=function(N,z,v,R){var C=v,Z=WYK(z.width,z.height);N.rS?C=vZ?{width:z.width,height:z.width/C,aspectRatio:C}:CC?N.width=N.height*v:vL;if(Wm(N)){var K=Gmf(N);var l=isNaN(K)||g.Xi||wD&&g.yl||L;IX&&!g.$Q(601)?K=C.aspectRatio:l=l||Z.controlsType==="3";l?L?(l=Z.X("place_shrunken_video_on_left_of_player")?16:N.getPlayerSize().width-z.width-16,K=Math.max((N.getPlayerSize().height-z.height)/2,0),l=new g.ks(l,K,z.width, z.height),N.ou.style.setProperty("border-radius","12px")):l=new g.ks(0,0,z.width,z.height):(v=C.aspectRatio/K,l=new g.ks((z.width-C.width/v)/2,(z.height-C.height)/2,C.width/v,C.height),v===1&&g.yl&&(K=l.width-z.height*K,K>0&&(l.width+=K,l.height+=K)));g.QY(N.element,"ytp-fit-cover-video",Math.max(l.width-C.width,l.height-C.height)<1);if(Q||N.w1)N.ou.style.display="";N.HJ=!0}else{l=-z.height;IX?l*=window.devicePixelRatio:g.wd&&(l-=window.screen.height);l=new g.ks(0,l,z.width,z.height);if(Q||N.w1)N.ou.style.display= "none";N.HJ=!1}PH(N.U2,l)||(N.U2=l,g.V1(Z)?(N.ou.style.setProperty("width",l.width+"px","important"),N.ou.style.setProperty("height",l.height+"px","important")):g.XM(N.ou,l.getSize()),R=new g.gL(l.left,l.top),g.bm(N.ou,Math.round(R.x),Math.round(R.y)),R=!0);z=new g.ks((z.width-C.width)/2,(z.height-C.height)/2,C.width,C.height);PH(N.ZQ,z)||(N.ZQ=z,R=!0);g.SB(N.ou,"transform",v===1?"":"scaleX("+v+")");Y&&L!==N.M1&&(L&&(N.ou.addEventListener(Ls,N.AQ),N.ou.addEventListener("transitioncancel",N.AQ),N.ou.classList.add(g.cM.VIDEO_CONTAINER_TRANSITIONING)), N.M1=L,N.app.L0.publish("playerUnderlayVisibilityChange",N.M1?"transitioning":"hidden"));return R}; ywu=function(N){N.zb=!N.zb;N.w_=!0;N.element.classList.toggle("ytp-retro-player",N.zb);N.resize();N.w_=!1;N.app.L0.Qp("onRetroModeChanged",N.zb)}; fcO=function(){this.csn=g.nz();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.V=new Set;this.W=new Set}; dCv=function(N){if(N.csn!==g.nz())if(N.csn==="UNDEFINED_CSN")N.csn=g.nz();else{var z=g.nz(),v=g.F8();if(z&&v){N.csn=z;for(var R=g.f(N.elements),C=R.next();!C.done;C=R.next())(C=C.value.visualElement)&&C.isClientVe()&&z&&v&&(g.yj("combine_ve_grafts")?k0(gq(),C,v):g.qV(g.X8)(void 0,z,v,C))}if(z)for(N=g.f(N.V),v=N.next();!v.done;v=N.next())(v=v.value.visualElement)&&v.isClientVe()&&g.vS(z,v)}}; g.xo=function(N,z,v,R){g.H.call(this);var C=this;this.logger=new g.Ry("App");this.vu=this.bY=!1;this.uy={};this.L_=[];this.IA=!1;this.Oe=null;this.intentionalPlayback=!1;this.Og=!0;this.dA=!1;this.hc=this.mC=this.Ft=null;this.z_=!0;this.mediaElement=this.GE=null;this.qR=NaN;this.L2=!1;this.yT=this.RC=this.jL=this.screenLayer=this.playlist=null;this.VQ=[];this.fh=0;this.Oi={dg:function(){return C.Ru}, cZl:function(){return C.jL}, pgd:function(){}}; this.logger.debug("constructor begin");this.config=bj_(z||{});this.webPlayerContextConfig=v;vex();z=this.config.args||{};this.iS=new bj(z,v,v?v.canaryState:this.config.assets.player_canary_state,R,this);g.b(this,this.iS);W0u(this.iS);R=xou(this.iS);this.iS.LV()&&Gi(this,"h5vcc",R);this.iS.experiments.j8("jspb_serialize_with_worker")&&SFu();this.iS.experiments.j8("gzip_gel_with_worker")&&UVv();this.iS.W&&!srm&&(window.addEventListener(F2?"touchstart":"click",tmY,{capture:!0,passive:!0}),srm=!0);this.X("html5_onesie")&& (this.Eg=new ZU(this.iS),g.b(this,this.Eg));this.vF=ve(AR(this.iS)&&!0,z.enablesizebutton);this.IG=ve(!1,z.player_wide);this.visibility=new ioY;g.b(this,this.visibility);this.X("web_log_theater_mode_visibility")&&this.wj(ve(!1,z.player_wide));this.bY=ve(!1,z.external_list);this.events=new g.VV(this);g.b(this,this.events);this.X("start_client_gcf")&&(Ai(Pa(),{C_:i$,bx:MW2()}),this.Iw=Pa().resolve(i$),zgm(this.Iw));this.n8T=new L2;g.b(this,this.n8T);this.JZ=new fcO;R=new K2;this.L0=new g.mQ(this,R); g.b(this,this.L0);this.template=new lc_(this);g.b(this,this.template);this.appState=1;this.BK=Thb(this);g.b(this,R);R={};this.Nx=(R.internalvideodatachange=this.uWo,R.playbackready=this.LlT,R.playbackstarted=this.Udd,R.statechange=this.FlS,R);this.Uw=new ai(this.L0);this.TW=FYv(this);R=this.X("html5_load_wasm");z=this.X("html5_allow_asmjs");R&&nf7||z?(this.iS.xH=JH_(this.TW,z),ev(x0(this.iS.xH,function(Z){C.iS.WH=Z;Gi(C,"wasm",{a:Z.V})}),function(Z){g.PN(Z); Gi(C,"wasm",{e:"message"in Z&&Z.message||Z.toString()||""})})):R&&!nf7&&Gi(this,"wasm",{e:"unavailable"}); this.dW=new UZv(this.iS,this.TW);this.L0.publish("csiinitialized");R=10;g.nM(this.iS)&&(R=3);q9(this.iS)&&(R=g.LM(this.iS.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ru=new g.bn(this.L0,R);R=mCx(this);this.Ru.bM(R);$Cb(this);R={};this.EC=(R.airplayactivechange=this.fxW,R.airplayavailabilitychange=this.YRT,R.beginseeking=this.mud,R.sabrCaptionsDataLoaded=this.VKo,R.endseeking=this.wbl,R.internalAbandon=this.vJd,R.internalaudioformatchange=this.DuW,R.internalvideodatachange=this.rIp,R.internalvideoformatchange= this.eC8,R.liveviewshift=this.TWT,R.playbackstalledatstart=this.PFW,R.progresssync=this.aV1,R.onAbnormalityDetected=this.xud,R.onSnackbarMessage=this.zCT,R.onLoadProgress=this.J0d,R.SEEK_COMPLETE=this.W48,R.SEEK_TO=this.Obp,R.onVideoProgress=this.ZbW,R.onLoadedMetadata=this.nJO,R.onAutoplayBlocked=this.jzL,R.onPlaybackPauseAtStart=this.oHL,R.playbackready=this.k4T,R.statechange=this.z2,R.newelementrequired=this.Aq,R.heartbeatparams=this.EJ1,R.videoelementevent=this.bbL,R.drmoutputrestricted=this.Qzp, R.signatureexpired=this.AI1,R.nonfatalerror=this.ib8,R.reloadplayer=this.qiS,R);this.GC=new g.VV(this);g.b(this,this.GC);this.dO=new KV;g.b(this,this.dO);this.Si=this.vG=-1;this.a5=new g.cn(this.template.resize,16,this.template);g.b(this,this.a5);this.yy=new rPK(this.L0,this.iS,this.Pb(),this);this.eY=new O4(this.iS);this.QE=new VA(this);g.b(this,this.QE);this.We=new gM(this);g.b(this,this.We);acv(this.iS.V.c);this.events.S(this.L0,g.R2("appapi"),this.Bo0);this.events.S(this.L0,g.C7("appapi"),this.M8T); this.events.S(this.L0,g.R2("appprogressboundary"),this.tK1);this.events.S(this.L0,g.C7("applooprange"),this.A$);this.events.S(this.L0,"presentingplayerstatechange",this.wD);this.events.S(this.L0,"resize",this.uyd);this.template.Nd(g.h(bU(document,N)));this.events.S(this.L0,"offlineslatestatechange",this.F98);this.events.S(this.L0,"sabrCaptionsTrackChanged",this.mpp);this.events.S(this.L0,"sabrCaptionsBufferedRangesUpdated",this.jul);this.TW.C.D().Eu&&Ft(this.TW,"offline");this.iS.vL&&g.Wb("ux",g.BB); N=g.LM(this.iS.experiments,"html5_defer_fetch_att_ms");this.Q$=new g.cn(this.q9p,N,this);g.b(this,this.Q$);this.qv().Y8()&&(g.Sc()&&this.qv().PL.push("remote"),UCO(this));this.dW.tick("fs");BhK(this);this.iS.vL&&Ft(this.TW,"ux",!0);g.Uu(this.TW.C.D())&&Ft(this.TW,"embed");this.X("web_player_sentinel_is_uniplayer")||g.PN(new g.XS("Player experiment flags missing","web_player_sentinel_is_uniplayer"));N=this.X("web_player_sentinel_yt_experiments_sync");R=g.yj("web_player_sentinel_yt_experiments_sync"); N!==R&&g.PN(new g.XS("b/195699950",{yt:N,player:R}));v||g.PN(new g.XS("b/179532961"));this.Y5=AwI(this);if(v=g.LM(this.iS.experiments,"html5_block_pip_safari_delay"))this.Qz=new g.cn(this.Oc,v,this),g.b(this,this.Qz);pX=this.iS.yh;v=g.LM(this.iS.experiments,"html5_performance_impact_profiling_timer_ms");v>0&&(this.Sk=new g.El(v),g.b(this,this.Sk),this.events.S(this.Sk,"tick",function(){C.lA&&gfU.Xw("apit",C.lA);C.lA=gfU.kY()})); this.L0.publish("applicationInitialized");this.logger.debug("constructor end")}; AwI=function(N){function z(v){v.stack&&v.stack.indexOf("player")!==-1&&N.f0().Qn(v)} Vm.subscribe("handleError",z);u1.push(z);return function(){Vm.unsubscribe("handleError",z);var v=u1.indexOf(z);v!==-1&&u1.splice(v,1)}}; mCx=function(N){var z=new g.Os(N.iS,N.config.args);N.L0.publish("initialvideodatacreated",z);return ey(N,1,z,!1)}; $Cb=function(N){var z=N.Pb(),v=z.setPlaybackRate;if(N.iS.N)var R=1;else R=Number(g.Pe("yt-player-playback-rate"))||1,R=pgv(N,R);v.call(z,R);z.wy(N.Nx,N);z.Em()}; FYv=function(N){var z="",v=LYm(N);v.indexOf("//")===0&&(v=N.iS.protocol+":"+v);var R=v.lastIndexOf("/base.js");R!==-1&&(z=v.substring(0,R+1));if(v=Error().stack)if(v=v.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))v=v[1],v.includes(z)||g.PN(Error("Player module URL mismatch: "+(v+" vs "+z+".")));z=new zEu(N.L0,z);kmf(N,z);return z}; kmf=function(N,z){var v={};v=(v.destroyed=function(){N.onApiChange()},v); z.Z=v}; Thb=function(N){if(N.iS.storeUserVolume){N=g.Pe("yt-player-volume")||{};var z=N.volume;N={volume:isNaN(z)?100:g.UC(Math.floor(z),0,100),muted:!!N.muted}}else N={volume:100,muted:N.iS.mute};return N}; JH=function(N){N.mediaElement=N.iS.deviceIsAudioOnly?new g.I7(g.wL("AUDIO")):Az.pop()||new g.I7(g.wL("VIDEO"));g.b(N,N.mediaElement);N.f0().setMediaElement(N.mediaElement);try{N.iS.J0?(N.RC&&N.events.Kb(N.RC),N.RC=N.events.S(N.mediaElement,"volumechange",N.HVS)):(N.mediaElement.h1(N.BK.muted),N.mediaElement.setVolume(N.BK.volume/100))}catch(C){N.nU("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(C&&typeof C==="object"&&"message"in C&&typeof C.message==="string"&&C.message.replace(/[;:,]/g, "_")));return}g.Be(N.GC);PAY(N);var z=N.template,v=N.mediaElement.Nu();z.ou=v;z.Y_=!1;z.ou.parentNode||Rz(z.KF,z.ou,0);z.U2=new g.ks(0,0,0,0);Jwx(z);lO(z);v=z.ou;g.Ye(v,"video-stream");g.Ye(v,g.cM.MAIN_VIDEO);var R=z.app.D();R.Ut&&v.setAttribute("data-no-fullscreen","true");R.X("html5_local_playsinline")?"playsInline"in BP()&&(v.playsInline=!0):R.oM&&(v.setAttribute("webkit-playsinline",""),v.setAttribute("playsinline",""));R.kZ&&z.ou&&z.S(v,"click",v.play,v);try{N.mediaElement.activate()}catch(C){N.nU("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(C&&typeof C==="object"&&"message"in C&&typeof C.message==="string"&&C.message.replace(/[;:,]/g,"_")))}}; Sy_=function(N){if(!VQU(N)){var z=N.Pb().O6();z&&(z=z.H8(),z instanceof Promise&&z.catch(function(){})); fV(N,Lg(N.getPlayerStateObject()))}}; PAY=function(N){var z=N.mediaElement;kz()?N.GC.S(z,"webkitpresentationmodechanged",N.w5l):window.document.pictureInPictureEnabled&&(N.GC.S(z,"enterpictureinpicture",function(){N.iH(!0)}),N.GC.S(z,"leavepictureinpicture",function(){N.iH(!1)})); uQ&&(N.GC.S(z,"webkitbeginfullscreen",function(){N.m5(3)}),N.GC.S(z,"webkitendfullscreen",function(){N.m5(0)}))}; Ef2=function(N,z){var v=z.getPlayerType(),R=N.Ru.Z[v]||null;z!==N.Pb()&&z!==R&&(R==null||R.dispose(),N.Ru.Z[v]=z)}; hLU=function(N,z){z=z===void 0?!0:z;N.logger.debug("start clear presenting player");var v;if(v=N.yT){v=N.yT;var R=N.mediaElement;v=!!R&&R===v.mediaElement}v&&(N.OJ(),JH(N));v=N.f0();v.OJ(!z);v.Ks(N.EC,N);v.getPlayerType()!==1&&v.dispose();z=N.Ru;z.W=z.V;tz(z);N.logger.debug("finish clear presenting player")}; g.Hpb=function(N,z,v,R){var C=N.dW;z===2&&(C=new UZv(N.iS));return new g.R7(N.iS,z,C,N.template,function(Z,Y,Q){N.L0.publish(Z,Y,Q)},function(){return N.L0.getVisibilityState()},N.visibility,N,v,R)}; ey=function(N,z,v,R,C){N=g.Hpb(N,z,v,C);N=new g.ou(N);R&&N.Em();return N}; d9=function(N,z){return N.vH(z)?N.Pb():z}; sB=function(N,z){var v=N.f0();return z===N.Pb()&&N.vH(z)&&N.vH(v)?v:z}; bpY=function(N){N.logger.debug("start application playback");if(N.Pb().getPlayerState().isError())N.logger.debug("start application playback done, player in error state");else{var z=Ti(N);N.qv().isLoaded();z&&N.Qv(6);ofu(N);La7(N.TW)||DCK(N)}}; DCK=function(N){if(!Ti(N)){var z=mE(N.TW);z&&!z.created&&vof(N.TW)&&(N.logger.debug("reload ad module"),z.create())}}; ofu=function(N){N.logger.debug("start presenter playback");var z=N.getVideoData(),v=N.TW;La7(v)||v.gP();!nf7&&v.C.X("html5_allow_asmjs")&&eEx(v);Ft(v,"embed");Ft(v,"kids");Ft(v,"remote");Ft(v,"miniplayer");Ft(v,"offline");Ft(v,"unplugged");Ft(v,"ypc",!1,!0);Ft(v,"ypc_clickwrap",!1,!0);Ft(v,"yto",!1,!0);Ft(v,"webgl",!1,!0);Kam(v)||(Ft(v,"captions",!0),Ft(v,"endscreen"),v.GG()||v.pg(),Ft(v,"creatorendscreen",!0));v.Ha();N.L0.publish("videoready",z)}; Fa=function(N){N=N.qv();N.Y8();return EY(N)}; BhK=function(N){N.logger.debug("start prepare initial playback");N.Nr();var z=N.config.args;JH(N);N.events.S(window,"resize",N.SiW);var v=N.qv();N.L0.cH("onVolumeChange",N.BK);if(z&&pB7(z)){var R=X2(N.iS);R&&!N.bY&&(z.fetch=0);var C=g.Uu(N.iS);C&&!N.bY&&(z.fetch=0);nV(N,z);g.Uu(N.iS)&&N.dW.tick("ep_pr_s");if(!R||N.bY)if(C&&!N.bY)tQb(N);else if(!v.Y8())N.playlist.onReady(function(){ma(N)})}N.f9(N.Pb(),!1,!0); g.u(N.Pb().getPlayerState(),128)||(z=W5u(!N.iS.deviceIsAudioOnly),z==="fmt.noneavailable"?N.nU("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):z==="html5.missingapi"?N.nU(z,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):v&&v.Y8()&&Fa(N)&&(N.iS.a_||N.iS.cP)?$o(N):v.uu?N.L0.mutedAutoplay({durationMode:v.mutedAutoplayDurationMode}):g.Pe("yt-player-playback-on-reload")?(g.aX("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!N.iS.PL}),g.ka("yt-player-playback-on-reload",!1), $o(N)):zf(N.iS)||Opx(N),g.ci(N.iS)||g.wB(N.iS)==="MWEB"?(g.M0(g.Np(),function(){UB(N)}),g.M0(g.Np(),function(){WBf()})):(UB(N),WBf()),N.logger.debug("finish prepare initial playback"))}; UB=function(N){if(!N.X("use_rta_for_player"))if(N.X("fetch_att_independently"))g.qv(N.Q$);else{var z=N.getVideoData().botguardData;z&&g.Dv(z,N.iS,N.getVideoData().Ml||"")}}; Opx=function(N){N.logger.debug("start initialize to CUED mode");N.L0.publish("initializingmode");N.Qv(2);N.X("embeds_web_enable_defer_loading_remote_js")&&g.M9(N.iS)?g.M0(g.Np(),function(){Ft(N.TW,"remote")}):Ft(N.TW,"remote"); Ft(N.TW,"miniplayer");N.logger.debug("initialized to CUED mode")}; $o=function(N){N.logger.debug("start initialize application playback");var z=N.Pb();if(g.u(z.getPlayerState(),128))return!1;var v=z.getVideoData();Fa(N)&&N.iS.cP&&(Az.length&&N.vu?(Bm(N,{muted:!1,volume:N.BK.volume},!1),AH(N,!1)):Az.length||N.BK.muted||(Bm(N,{muted:!0,volume:N.BK.volume},!1),AH(N,!0)));Fa(N)&&g.Uu(N.iS)&&v.mutedAutoplay&&(Bm(N,{muted:!0,volume:N.BK.volume},!1),AH(N,!0));v.hj&&Bm(N,{muted:!0,volume:N.BK.volume},!1);Icb(N,1,v,!1);N.L0.publish("initializingmode");N.f9(N.Pb());N.Qv(3); var R;if(!(R=!N.iS.Wp)){if(R=N.yT){R=N.yT;var C=N.mediaElement;R=!!C&&C===R.mediaElement}R=R&&N.IA}R&&(N.OJ(),JH(N),z.setMediaElement(N.mediaElement));z.oC();if(g.u(z.getPlayerState(),128))return!1;v.v2||fV(N,3);return N.IA=!0}; Ti=function(N){N=BX(N.TW);return!!N&&N.loaded}; XgK=function(N,z){if(!N.GE)return!1;var v=N.GE.startTimeMs*.001-1,R=N.GE.endTimeMs*.001;N.GE.type==="repeatChapter"&&R--;return Math.abs(z-v)<=1E-6||Math.abs(z-R)<=1E-6||z>=v&&z<=R}; rwv=function(N){var z=N.f0();Ce(z.getVideoData())&&!z.kV()&&(z=g9(N)*1E3-N.getVideoData().sz,N.X("html5_gapless_new_slr")?(N=N.We,pV(N.app,"gaplessshortslooprange"),z=new g.zt(0,z,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(N=N.app.f0())&&N.addCueRange(z)):N.setLoopRange({startTimeMs:0,endTimeMs:z,type:"shortsLoop"}))}; uxv=function(N){var z=N.Pb();if(!(g.u(z.getPlayerState(),64)&&N.qv().isLivePlayback&&N.GE.startTimeMs<5E3)){if(N.GE.type==="repeatChapter"){var v,R=(v=I7m(N.eV()))==null?void 0:v.CO(),C;v=(C=N.getVideoData())==null?void 0:C.cP;R instanceof g.Df&&v&&(C=v[Cn(v,N.GE.startTimeMs)],R.renderChapterSeekingAnimation(0,C.title));isNaN(Number(N.GE.loopCount))?N.GE.loopCount=0:N.GE.loopCount++;N.GE.loopCount===1&&N.L0.Qp("innertubeCommand",N.getVideoData().trd)}R={Np:"application_loopRangeStart"};if(N.GE.type=== "clips"||N.GE.type==="shortsLoop")R.seekSource=58;z.seekTo(N.GE.startTimeMs*.001,R)}}; pgv=function(N,z){var v=N.L0.getAvailablePlaybackRates();z=Number(z.toFixed(2));N=v[0];v=v[v.length-1];z<=N?z=N:z>=v?z=v:(N=Math.floor(z*100+.001)%5,z=N===0?z:Math.floor((z-N*.01)*100+.001)/100);return z}; g9=function(N,z){z=N.U6({playerType:z});if(!z)return N.Ru.V.yg();z=d9(N,z);return ko(N,z.yg(),z)}; ko=function(N,z,v){if(N.vH(v)&&(v=v.getVideoData(),!Pm(N))){N=N.yy;for(var R=g.f(N.W),C=R.next();!C.done;C=R.next())if(C=C.value,v.m4===C.m4){z+=C.jV/1E3;break}R=z;N=g.f(N.W);for(C=N.next();!C.done;C=N.next()){C=C.value;if(v.m4===C.m4)break;var Z=C.jV/1E3;if(Z1&&(C=!1);if(!N.L2||C!==z){v=v.lock(C?"portrait":"landscape");if(v!=null)v["catch"](function(){}); N.L2=!0}}else N.L2&&(N.L2=!1,v.unlock())}; oR=function(N,z,v){N.L0.publish(z,v);var R=g.nM(N.iS)||g.V1(N.iS)||g.S0(N.iS);if(v&&R){switch(z){case "cuerangemarkersupdated":var C="onCueRangeMarkersUpdated";break;case "cuerangesadded":C="onCueRangesAdded";break;case "cuerangesremoved":C="onCueRangesRemoved"}C&&N.L0.Qp(C,v.map(function(Z){return{getId:function(){return this.id}, end:Z.end,id:Z.getId(),namespace:Z.namespace==="ad"?"ad":"",start:Z.start,style:Z.style,visible:Z.visible}}))}}; Da=function(N,z,v,R,C,Z){v=v===void 0?!0:v;var Y=N.U6({playerType:C});if(!Y||(Y.getPlayerType()!==2||N.vH(Y))&&!g.mw(Y.getVideoData())){var Q=N.Ru.cK;Q?Q.seekTo(z,{zO:!v,J7:R,Np:"application",seekSource:Z}):(Y&&Y===N.Pb()&&N.GE&&!XgK(N,z)&&N.setLoopRange(null),N.seekTo(z,v,R,C,Z))}}; K82=function(N,z,v,R){v&&(N.OJ(),JH(N));v=N.f0();v.jm(z);var C=N.getVideoData(),Z={};Z.video_id=C.videoId;Z.adformat=C.adFormat;C.isLivePlayback||(Z.start=v.getCurrentTime(),Z.resume="1");C.isLivePlayback&&Ke(C)&&g.TW(N.iS)&&(Z.live_utc_start=v.LG(),Z.resume="1");C.Rd&&(Z.vvt=C.Rd);C.G&&(Z.vss_credentials_token=C.G,Z.vss_credentials_token_type=C.Jk);C.oauthToken&&(Z.oauth_token=C.oauthToken);Z.autoplay=1;Z.reload_count=C.YJ+1;Z.reload_reason=z;C.Bq&&(Z.unplugged_partner_opt_out=C.Bq);C.a_&&(Z.ypc_is_premiere_trailer= C.a_);C.playerParams&&(Z.player_params=C.playerParams);N.loadVideoByPlayerVars(Z,void 0,!0,void 0,void 0,R);z==="signature"&&N.jL&&DCK(N)}; lG2=function(N,z){N.qv().autonavState=z;g.ka("yt-player-autonavstate",z);N.L0.publish("autonavchange",z)}; W8_=function(N){var z=N.getVideoData().wG,v=N.iS.xT,R=N.isInline()&&!N.getVideoData().UH,C=N.mediaElement;z||v||R?C.R$():(C.cC(),Bm(N,N.BK))}; Vt=function(N){var z=mE(N.eV());z&&z.created&&(N.logger.debug("reset ad module"),z.destroy())}; Pm=function(N){return N.getVideoData().enableServerStitchedDai&&!!N.jL}; GDu=function(N,z){z.bounds=N.getBoundingClientRect();for(var v=g.f(["display","opacity","visibility","zIndex"]),R=v.next();!R.done;R=v.next())R=R.value,z[R]=HH(N,R);z.hidden=!!N.hidden}; LYm=function(N){if(N.webPlayerContextConfig){var z=N.webPlayerContextConfig.trustedJsUrl;return z?TA(z).toString():N.webPlayerContextConfig.jsUrl}return N.config.assets&&N.config.assets.js?N.config.assets.js:""}; xRu=function(N,z){var v=N.U6({playerType:1});if(v){if(v.getVideoData().clientPlaybackNonce===z)return v;if((N=N.QE.V)&&N.getVideoData().clientPlaybackNonce===z)return N}return null}; Gi=function(N,z,v){N.VQ.push({key:z,value:v})}; emu=function(N){return N.name==="TypeError"&&N.stack.includes("/s/player/")&&H9()<=105}; Jg2=function(N){return N.isTimeout?"NO_BID":"ERR_BID"}; yg2=function(){var N=null;mvf().then(function(z){return N=z},function(z){return N=Jg2(z)}); return N}; fGu=function(){var N=Hs(1E3,"NO_BID");return g.V$(uOm([mvf(),N]).YK(Jg2),function(){N.cancel()})}; bO=function(N){return N.Bc?g.D_(g.os(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; tH=function(N){this.player=N;this.Z=this.V=1}; Tuu=function(N,z,v,R,C,Z){z.client||(z.client={});N.player.D().X("h5_remove_url_for_get_ad_break")||(z.client.originalUrl=v);var Y=YA(v),Q=g.nt(v)?!1:!0;(Y||Q)&&typeof Intl!=="undefined"&&(z.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);Q=g.nt(v)?!1:!0;if(Y||Q||R!==""){var L={};v=NL(LX(R)).split("&");var K=new Map;v.forEach(function(l){l=l.split("=");l.length>1&&K.set(l[0].toString(),decodeURIComponent(l[1].toString()))}); K.has("bid")&&(L.bid=K.get("bid"));L.params=[];dRf.forEach(function(l){K.has(l)&&(l={key:l,value:K.get(l)},L.params.push(l))}); sMm(N,L);z.adSignalsInfo=L}z.client.unpluggedAppInfo||(z.client.unpluggedAppInfo={});z.client.unpluggedAppInfo.enableFilterMode=!1;v=C.V.cosver;v!=null&&v!=="cosver"&&(z.client.osVersion=v);v=C.V.cplatform;v!=null&&v!=="cplatform"&&v!==""&&(z.client.platform=v);v=C.V.cmodel;v!=null&&v!=="cmodel"&&(z.client.deviceModel=v);v=C.V.cplayer;v!=null&&v!=="cplayer"&&(z.client.playerType=v);v=C.V.cbrand;v!=null&&v!=="cbrand"&&(z.client.deviceMake=v);z.user||(z.user={});z.user.lockedSafetyMode=!1;(C.X("embeds_web_enable_iframe_api_send_full_embed_url")|| C.X("embeds_enable_autoplay_and_visibility_signals"))&&g.Pi(C)&&ILx(z,Z,N.player.getPlayerState(1))}; mR_=function(N,z){var v=!1;if(z==="")return v;z.split(",").forEach(function(R){var C={},Z={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},Y="ACTIVE";R[0]==="!"&&(R=R.substring(1),Y="INACTIVE");R=R.split("-");R.length<3||(R[0]in F8I&&(Z.clientName=F8I[R[0]]),R[1]in n$Y&&(Z.platform=n$Y[R[1]]),Z.applicationState=Y,Z.clientVersion=R.length>2?R[2]:"",C.remoteClient=Z,N.remoteContexts?N.remoteContexts.push(C):N.remoteContexts=[C],v=!0)}); return v}; URU=function(N){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in $Rb))return!1;N=N.split(RegExp("[:&]"));var z=$Rb.FLAG_AUTO_CAPTIONS_DEFAULT_ON,v="f"+(1+Math.floor(z/31)).toString();z=1<=2?Y[1]:"";var Q=Agv.test(z),L=g$u.exec(z);L=L!=null&&L.length>=2?L[1]:"";var K=pQf.exec(z);K=K!=null&&K.length>=2&&!Number.isNaN(Number(K[1]))?Number(K[1]):1;var l=kDx.exec(z);l=l!=null&&l.length>=2?l[1]:"0";var W=Hi(N.player.D().bL),G=N.player.getVideoData(1),x=g.q2(G.BL,!0),e="BISCOTTI_ID"in v?v.BISCOTTI_ID:"";Tuu(N,x,z,e.toString(),N.player.D(), G);G={splay:!1,lactMilliseconds:v.LACT.toString(),playerHeightPixels:Math.trunc(v.P_H),playerWidthPixels:Math.trunc(v.P_W),vis:Math.trunc(v.VIS),signatureTimestamp:20208,autonavState:bO(N.player.D())};R&&(R={},mR_(R,v.YT_REMOTE)&&(G.mdxContext=R));if(R=Pg7.includes(W)?void 0:g.Vj("PREF")){for(var d=R.split(RegExp("[:&]")),T=0,m=d.length;T1&&n[1].toUpperCase()==="TRUE"){x.user.lockedSafetyMode=!0;break}}G.autoCaptionsDefaultOn= URU(R)}z=VlI.exec(z);(z=z!=null&&z.length>=2?z[1]:"")&&L&&(x.user.credentialTransferTokens=[{token:z,scope:"VIDEO"}]);z={contentPlaybackContext:G};Y={adBlock:Math.trunc(v.AD_BLOCK),params:Y,breakIndex:K,breakPositionMs:l,clientPlaybackNonce:v.CPN,topLevelDomain:W,isProxyAdTagRequest:Q,context:x,adSignalsInfoString:NL(LX(e.toString())),overridePlaybackContext:z};C!==void 0&&(Y.cueProcessedMs=Math.round(C).toString());L&&(Y.videoId=L);v.LIVE_TARGETING_CONTEXT&&(Y.liveTargetingParams=v.LIVE_TARGETING_CONTEXT); v.AD_BREAK_LENGTH&&(Y.breakLengthMs=Math.trunc(v.AD_BREAK_LENGTH*1E3).toString());Z&&(Y.driftFromHeadMs=Z.toString());Y.currentMediaTimeMs=Math.round(N.player.getCurrentTime(1)*1E3);(N=N.player.getGetAdBreakContext())&&(Y.getAdBreakContext=N);return Y}; E$Y=function(){tH.apply(this,arguments)}; hmu=function(N,z,v,R,C){var Z=v.pN;var Y=v.GW;var Q=N.player.D().gD,L=0;v.cueProcessedMs&&Y&&!Z&&(v=Y.end-Y.start,v>0&&(L=Math.floor(v/1E3)));var K={AD_BLOCK:C,AD_BREAK_LENGTH:Z?Z.K5:L,AUTONAV_STATE:bO(N.player.D()),CA_TYPE:"image",CPN:N.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:N.player.RB()*1E3,LACT:mB(),LIVE_INDEX:Z?N.Z++:1,LIVE_TARGETING_CONTEXT:Z&&Z.context?Z.context:"",MIDROLL_POS:Y?Math.round(Y.start/1E3):0,MIDROLL_POS_MS:Y?Math.round(Y.start):0,VIS:N.player.getVisibilityState(), P_H:N.player.n0().nu().height,P_W:N.player.n0().nu().width,YT_REMOTE:Q?Q.join(","):""},l=Qj(a0);Object.keys(l).forEach(function(W){l[W]!=null&&(K[W.toUpperCase()]=l[W].toString())}); R!==""&&(K.BISCOTTI_ID=R);R={};j5(z)&&(R.sts="20208",(N=N.player.D().forcedExperiments)&&(R.forced_experiments=N));return Zz(g.pj(z,K),R)}; Ha7=function(N,z){var v=N.player.D(),R,C=(R=N.player.getVideoData(1))==null?void 0:R.oauthToken;return g.CW(v,C).then(function(Z){if(Z&&iQ()){var Y=hW();HX(Y,Z)}return g.rZ(g.h(N.player.dD(Y)),z,"/youtubei/v1/player/ad_break").then(function(Q){return Q})})}; o$I=function(N){this.sT=N}; DRU=function(N){this.C=N}; bau=function(N){this.sT=N}; OaO=function(N){g.H.call(this);this.V=N;this.gX=tlu(this)}; tlu=function(N){var z=new WK2(N.V.fb);g.b(N,z);N=[new o$I(N.V.sT),new DRU(N.V.C),new bau(N.V.sT),new AU(N.V.XB,N.V.gm),new pS,new Vz(N.V.oy,N.V.ZG,N.V.sT),new gC,new Bj];N=g.f(N);for(var v=N.next();!v.done;v=N.next())GZ7(z,v.value);N=g.f(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(v=N.next();!v.done;v=N.next())kX(z,v.value,function(){}); return z}; OB=function(N){var z=N.XW,v=N.zU;N=N.nG;var R=new Puv,C={uL:new K5I(z.get(),v),zU:v};return{Xm:new is(v,N,z,C),context:C,uE:R}}; IR=function(N,z,v,R,C){g.H.call(this);this.W=z;this.C0=v;this.XW=R;this.x8=C;this.listeners=[];var Z=new $a(this);g.b(this,Z);Z.S(N,"internalAbandon",this.ZVO);this.addOnDisposeCallback(function(){g.Be(Z)})}; Xa=function(N){this.C=N;this.adVideoId=this.V=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.W=this.Z=!1;this.adFormat=null;this.N="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; IG2=function(N){N.contentCpn=null;N.adCpn=null;N.videoId=null;N.adVideoId=null;N.adFormat=null;N.N="AD_PLACEMENT_KIND_UNKNOWN";N.actionType="unknown_type";N.Z=!1;N.W=!1}; XQ7=function(N,z){N=g.f(z);for(z=N.next();!z.done;z=N.next())if((z=z.value.renderer)&&(z.instreamVideoAdRenderer||z.linearAdSequenceRenderer||z.sandwichedLinearAdRenderer||z.instreamSurveyAdRenderer)){H_("ad_i");g.oc({isMonetized:!0});break}}; rgI=function(N){var z;(z=N.C.getVideoData(1))!=null&&z.tO&&(N.W=!1,z={},N.V&&N.videoId&&(z.cttAuthInfo={token:N.V,videoId:N.videoId}),DT("video_to_ad",z))}; Io=function(N){N.W=!1;var z={};N.V&&N.videoId&&(z.cttAuthInfo={token:N.V,videoId:N.videoId});DT("ad_to_video",z);uAO(N)}; uAO=function(N){if(N.Z)if(N.N==="AD_PLACEMENT_KIND_START"&&N.actionType==="video_to_ad")Sq("video_to_ad");else{var z={adBreakType:dr(N.N),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:N.videoStreamType};N.actionType==="ad_to_video"?(N.contentCpn&&(z.targetCpn=N.contentCpn),N.videoId&&(z.targetVideoId=N.videoId)):(N.adCpn&&(z.targetCpn=N.adCpn),N.adVideoId&&(z.targetVideoId=N.adVideoId));N.adFormat&&(z.adType=N.adFormat);N.contentCpn&& (z.clientPlaybackNonce=N.contentCpn);N.videoId&&(z.videoId=N.videoId);N.adCpn&&(z.adClientPlaybackNonce=N.adCpn);N.adVideoId&&(z.adVideoId=N.adVideoId);g.oc(z,N.actionType);N.C.D().experiments.j8("html5_ads_csi_qoes")&&(z=N.C.C8(N.actionType==="ad_to_video"?1:2),z=(0,g.I)()-1E3*z,tc("qoes",z,N.actionType))}}; r9=function(N){g.H.call(this);this.C=N;this.V=new Map;this.W=new $a(this);g.b(this,this.W);this.W.S(this.C,g.R2("ad"),this.onCueRangeEnter,this);this.W.S(this.C,g.C7("ad"),this.onCueRangeExit,this)}; cgK=function(N,z,v,R,C){g.zt.call(this,z,v,{id:N,namespace:"ad",priority:C,visible:R})}; uO=function(N){this.C=N}; q7u=function(N,z){N.C.cueVideoByPlayerVars(z,2)}; cm=function(N){this.C=N}; qE=function(N){this.C=N;g.LM(this.C.D().experiments,"tv_pacf_logging_sample_rate")}; MlK=function(N){return Xu(N,"html5_ssap_play_cached_preroll")}; T2=function(N,z){z=z===void 0?!1:z;return N.C.D().X("html5_ssap_force_ads_ctmp")?!0:(z||N.C.D().LV())&&N.C.D().X("html5_ssap_pacf_qoe_ctmp")}; wQ_=function(N){return N.C.D().X("dai_layout_log_skip_exit_reason")}; ME=function(N){var z,v;return(v=(z=N.C.getVideoData(1))==null?void 0:g.uT(z))!=null?v:!1}; mKY=function(N){return!N.C.D().X("html5_override_ad_video_length_killswitch")}; Xu=function(N,z){return N.C.D().X(z)}; Nnb=function(N){return N.C.D().X("substitute_ad_cpn_macro_in_ssdai")}; F3=function(N){var z,v,R;return((z=N.C.getVideoData(1).getPlayerResponse())==null?void 0:(v=z.playerConfig)==null?void 0:(R=v.daiConfig)==null?void 0:R.enableServerStitchedDai)||!1}; TUI=function(N){return N.C.D().X("html5_enable_vod_slar_with_notify_pacf")}; mJu=function(N){return N.C.D().X("h5_check_forecasting_renderer_for_throttled_midroll")}; zMm=function(N){return N.C.D().X("html5_recognize_predict_start_cue_point")}; vk=function(N){return N.C.D().experiments.j8("enable_desktop_player_underlay")}; vOm=function(N){return N.C.D().experiments.j8("html5_disable_sodar_for_tvhtml5")}; $Km=function(N){return N.C.D().LV()}; RMu=function(N){return N.C.D().experiments.j8("html5_load_empty_player_in_media_break_sub_lra")}; PR=function(N){return N.C.D().experiments.j8("html5_load_ads_instead_of_cue")}; Vx=function(N){return N.C.D().experiments.j8("html5_preload_ads")}; Clu=function(N){return N.C.D().experiments.j8("should_ignore_cuepoints_during_lifa_preroll")}; zz=function(N){return N.C.D().experiments.j8("enable_ads_control_flow_deterministic_id_generation")}; ZBf=function(N){return N.C.D().experiments.j8("enable_desktop_discovery_video_abandon_pings")||g.rd(N.C.D())}; YSu=function(N){return N.C.D().experiments.j8("enable_progres_commands_lr_feeds")}; nv=function(N){return N.C.D().experiments.j8("html5_cuepoint_identifier_logging")}; A2_=function(N){N=N.C.getVideoData(1);return!!N&&N.X("html5_preload_first_vod_video_ad")&&!N.isDaiEnabled()}; iBu=function(N){switch(N){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}}; jEO=function(){g.jJ.call(this);var N=this;this.V={};this.addOnDisposeCallback(function(){for(var z=g.f(Object.keys(N.V)),v=z.next();!v.done;v=z.next())delete N.V[v.value]})}; w9=function(){if(a1I===null){a1I=new jEO;rS(wy).W="b";var N=rS(wy),z=Dx(N)=="h"||Dx(N)=="b",v=!(im(),!1);z&&v&&(N.B=!0,N.G=new lgu)}return a1I}; QE2=function(N,z,v){N.V[z]=v}; Lt2=function(N){switch(N){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}}; N7=function(N,z,v){this.C0=N;this.C=z;this.zU=v;this.W=new Set;this.V=new Map;w9().subscribe("adactiveviewmeasurable",this.yR,this);w9().subscribe("adfullyviewableaudiblehalfdurationimpression",this.hS,this);w9().subscribe("adviewableimpression",this.xV,this);w9().subscribe("adaudioaudible",this.Sj,this);w9().subscribe("adaudiomeasurable",this.lz,this)}; vI=function(N,z,v){var R=v.bQ,C=v.aO,Z=v.listener,Y=v.FR;v=v.TA===void 0?!1:v.TA;if(N.V.has(z))LZ("Unexpected registration of layout in LidarApi");else{if(Y){if(N.W.has(Y))return;N.W.add(Y)}N.V.set(z,Z);KI(im().ZV,"fmd",1);Tv7(rS(wy),R);var Q=v?z:void 0;QE2(w9(),z,{PY:function(){if(!C)return{};var L=N.C.getPresentingPlayerType(!0),K;return(K=N.C.getVideoData(L))!=null&&K.isAd()?{currentTime:N.C0.get().getCurrentTimeSec(L,!1,Q),duration:C,isPlaying:zj(N.C0.get(),L).isPlaying(),isVpaid:!1,isYouTube:!0, volume:N.C0.get().isMuted()?0:N.C0.get().getVolume()/100}:{}}})}}; RF=function(N,z){N.V.has(z)?(N.V.delete(z),delete w9().V[z]):LZ("Unexpected unregistration of layout in LidarApi")}; Kt7=function(N,z){if(N.C.isLifaAdPlaying()){var v=N.C.IB(!0,!0);N.Cs(z,v.width*.5*1.1,v.height*.25*1.1,v.width*.5*.9,v.height*.5*.9)}}; GHO=function(N,z,v){var R={};l1m(N,R,z,v);Wt_(R);R.LACT=Cq(function(){return mB().toString()}); R.VIS=Cq(function(){return N.getVisibilityState().toString()}); R.SDKV="h.3.0";R.VOL=Cq(function(){return N.isMuted()?"0":Math.round(N.getVolume()).toString()}); R.VED="";return R}; x5_=function(N,z){var v={};if(z)return v;if(!N.kind)return g.kE(Error("AdPlacementConfig without kind")),v;if(N.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||N.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!N.adTimeOffset||!N.adTimeOffset.offsetStartMilliseconds)return g.kE(Error("malformed AdPlacementConfig")),v;v.MIDROLL_POS=Cq(lK(Math.round(dL(N.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else v.MIDROLL_POS=Cq(lK("0"));return v}; Cq=function(N){return{toString:function(){return N()}}}; eM_=function(N,z,v){function R(Q,L){(L=v[L])&&(Z[Q]=L)} function C(Q,L){(L=v[L])&&(Z[Q]=Y(L))} if(!v||g.wE(v))return N;var Z=Object.assign({},N),Y=z?encodeURIComponent:function(Q){return Q}; C("DV_VIEWABILITY","doubleVerifyViewability");C("IAS_VIEWABILITY","integralAdsViewability");C("MOAT_INIT","moatInit");C("MOAT_VIEWABILITY","moatViewability");R("GOOGLE_VIEWABILITY","googleViewability");R("VIEWABILITY","viewability");return Z}; l1m=function(N,z,v,R){z.CPN=Cq(function(){var C;(C=N.getVideoData(1))?C=C.clientPlaybackNonce:(g.PN(Error("Video data is null.")),C=null);return C}); z.AD_MT=Cq(function(){if(R!=null)var C=R;else{var Z=v;N.D().X("html5_ssap_use_cpn_to_get_time")||(Z=void 0);if(N.D().X("enable_h5_shorts_ad_fill_ad_mt_macro")||N.D().X("enable_desktop_discovery_pings_ad_mt_macro")||g.rd(N.D())){var Y=N.getPresentingPlayerType(!0),Q;C=((Q=N.getVideoData(Y))==null?0:Q.isAd())?Jlv(N,Y,Z):0}else C=Jlv(N,2,Z)}return ylb(C)}); z.MT=Cq(function(){return ylb(N.getCurrentTime(1,!1))}); z.P_H=Cq(function(){return N.n0().nu().height.toString()}); z.P_W=Cq(function(){return N.n0().nu().width.toString()}); z.PV_H=Cq(function(){return N.n0().getVideoContentRect().height.toString()}); z.PV_W=Cq(function(){return N.n0().getVideoContentRect().width.toString()})}; ylb=function(N){return Math.round(Math.max(0,N*1E3)).toString()}; Wt_=function(N){N.CONN=Cq(lK("0"));N.WT=Cq(function(){return Date.now().toString()})}; Jlv=function(N,z,v){return v!==void 0?N.getCurrentTime(z,!1,v):N.getCurrentTime(z,!1)}; f1u=function(){}; d52=function(N,z,v,R,C){var Z,Y,Q,L,K,l,W,G,x,e,d,T,m;g.S(function(n){switch(n.W){case 1:Z=!!z.scrubReferrer;Y=g.pj(z.baseUrl,eM_(v,Z,R));Q={};if(!z.headers){n.Zp(2);break}L=N.N();if(!L.V){K=L.getValue();n.Zp(3);break}return g.k(n,L.V,4);case 4:K=n.V;case 3:l=K;W=g.f(z.headers);for(G=W.next();!G.done;G=W.next())switch(x=G.value,x.headerType){case "VISITOR_ID":g.XI("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=g.XI("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.XI("EOM_VISITOR_DATA")&&(Q["X-Goog-EOM-Visitor-Id"]= g.XI("EOM_VISITOR_DATA"));break;case "USER_AUTH":l&&(Q.Authorization="Bearer "+l);break;case "PLUS_PAGE_ID":(e=N.B())&&(Q["X-Goog-PageId"]=e);break;case "AUTH_USER":d=N.V();!l&&d&&(Q["X-Goog-AuthUser"]=d);break;case "DATASYNC_ID":if(T=void 0,(T=N.Z())==null?0:T.j8("enable_datasync_id_header_in_web_vss_pings"))m=N.W(),YA(Y)&&g.XI("LOGGED_IN")&&m&&(Q["X-YouTube-DataSync-Id"]=m)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];case 2:g.Hd(Y,void 0,Z,Object.keys(Q).length!== 0?Q:void 0,"",!0,C),g.fO(n)}})}; sEU=function(N,z,v,R,C){this.N=N;this.B=z;this.V=v;this.W=R;this.Z=C}; Tnx=function(N,z){this.V=N;this.zU=z}; ZV=function(N,z,v,R,C,Z,Y){var Q=Q===void 0?new sEU(function(){var L=N.D(),K=N.getVideoData(1);return g.CW(L,K?g.hf(K):"")},function(){return N.D().pageId},function(){return N.D().PL},function(){var L; return(L=N.D().datasyncId)!=null?L:""},function(){return N.D().experiments}):Q; this.C=N;this.W=z;this.rW=v;this.XW=R;this.Xm=C;this.zU=Z;this.uE=Y;this.N=Q;this.xQ=null;this.V=new Map;this.Z=new Tnx(Q,this.zU)}; nOY=function(N,z,v,R,C){var Z=Pk(N.W.get(),v);Z?(v=$U(N,FtK(Z),Z,void 0,void 0,R),z.hasOwnProperty("baseUrl")?N.N.send(z,v):N.Z.send(z,v,{},C)):LZ("Trying to ping from an unknown layout",void 0,void 0,{layoutId:v})}; dg2=function(N,z,v,R,C,Z){R=R===void 0?[]:R;var Y=Pk(N.W.get(),z);if(Y){var Q=N.rW.get().yl(z,v),L=$U(N,FtK(Y),Y,C,Z);R.forEach(function(K,l){K.baseUrl&&(N.Z.send(K.baseUrl,L,Q,K.attributionSrcMode),K.serializedAdPingMetadata&&N.Xm.A9("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,Y,new NJb(K,l),void 0,void 0,Y.adLayoutLoggingData))})}else LZ("Trying to track from an unknown layout.",void 0,void 0,{layoutId:z, trackingType:v})}; yu=function(N,z){N.C.sendVideoStatsEngageEvent(z,void 0,2)}; NY=function(N,z){g.aX("adsClientStateChange",z)}; m5f=function(N,z){N.V.has(z.mW())?LZ("Trying to register an existing AdErrorInfoSupplier."):N.V.set(z.mW(),z)}; $5_=function(N,z){N.V.delete(z.mW())||LZ("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; CC=function(N,z,v){typeof v==="string"?N.C.getVideoData(1).W9(z,v):N.C.getVideoData(1).WL(z,v)}; FtK=function(N){var z=g.h(CM(N.clientMetadata,"metadata_type_ad_placement_config"));N=CM(N.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:z,dU:N}}; $U=function(N,z,v,R,C,Z){var Y=v?U5U(N):{},Q=v?Bnm(N,v.layoutId):{},L=AlU(N),K,l=C!=null?C:(K=ei(N.XW.get(),2))==null?void 0:K.clientPlaybackNonce;C=void 0;if(v){var W;if((W=N.uE.V.get(v.layoutId))==null?0:W.TA)C=v.layoutId}W={};N=Object.assign({},GHO(N.C,C,R),x5_(z.adPlacementConfig,(v==null?void 0:v.renderingContent)!==void 0),Q,Y,L,(W.FINAL=Cq(function(){return"1"}),W.AD_CPN=Cq(function(){return l||""}),W)); (v==null?void 0:v.renderingContent)!==void 0||(N.SLOT_POS=Cq(function(){return(z.dU||0).toString()})); v={};Z=Object.assign({},N,Z);N=g.f(Object.values(gOv));for(R=N.next();!R.done;R=N.next())R=R.value,Y=Z[R],Y!=null&&Y.toString()!=null&&(v[R]=Y.toString());return v}; U5U=function(N){var z={},v,R=(v=N.xQ)==null?void 0:v.iY/1E3;R!=null&&(z.SURVEY_ELAPSED_MS=Cq(function(){return Math.round(R*1E3).toString()})); z.SURVEY_LOCAL_TIME_EPOCH_S=Cq(function(){return Math.round(Date.now()/1E3).toString()}); return z}; Bnm=function(N,z){N=N.V.get(z);if(!N)return{};N=N.wP();if(!N)return{};z={};return z.YT_ERROR_CODE=N.eQ.toString(),z.ERRORCODE=N.oO.toString(),z.ERROR_MSG=N.errorMessage,z}; AlU=function(N){var z={},v=N.C.getVideoData(1);z.ASR=Cq(function(){var R;return(R=v==null?void 0:v.tZ)!=null?R:null}); z.EI=Cq(function(){var R;return(R=v==null?void 0:v.eventId)!=null?R:null}); return z}; i3=function(N,z,v){g.H.call(this);this.C=N;this.a8=z;this.zU=v;this.listeners=[];this.yV=null;this.PV=new Map;z=new g.VV(this);g.b(this,z);z.S(N,"videodatachange",this.RdU);z.S(N,"serverstitchedvideochange",this.THp);this.rP=ei(this)}; ei=function(N,z){var v=N.C.getVideoData(z);return v?N.VI(v,z||N.C.getPresentingPlayerType(!0)):null}; zQ=function(N){return N.rP}; puf=function(N,z,v){var R=N.VI(z,v);N.rP=R;N.listeners.forEach(function(C){C.kf(R)})}; kH_=function(N){switch(N){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}}; jO=function(N,z,v){g.H.call(this);this.C=N;this.XW=z;this.zU=v;this.listeners=[];this.W8=[];this.V=function(){LZ("Called 'doUnlockPreroll' before it's initialized.")}; z=new $a(this);v=new g.VV(this);g.b(this,v);g.b(this,z);z.S(N,"progresssync",this.cIp);z.S(N,"presentingplayerstatechange",this.gH0);z.S(N,"fullscreentoggled",this.onFullscreenToggled);z.S(N,"onVolumeChange",this.onVolumeChange);z.S(N,"minimized",this.eI);z.S(N,"overlayvisibilitychange",this.H1);z.S(N,"shortsadswipe",this.Ma);z.S(N,"resize",this.wW);v.S(N,g.R2("appad"),this.d5)}; aF=function(N){ME(N.zU.get())||N.V()}; Plu=function(N,z){N.W8=N.W8.filter(function(v){return v!==z})}; Qk=function(N,z,v){return N.getCurrentTimeSec(z,v)}; s3=function(N){return N.getCurrentTimeSec(1,!1)}; VEm=function(N,z){var v;z=(v=N.XW.get().PV.get(z))!=null?v:null;if(z===null)return LZ("Expected ad video start time on playback timeline"),0;N=N.C.getCurrentTime(2,!0);return N0){var Z=z.end.toString();C.forEach(function(Y){(Y=Y.config&&Y.config.adPlacementConfig)&&Y.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&Y.adTimeOffset&&Y.adTimeOffset.offsetEndMilliseconds==="-1"&&Y.adTimeOffset.offsetEndMilliseconds!==Z&&(Y.adTimeOffset.offsetEndMilliseconds=Z)}); R.map(function(Y){return g.t(Y,og)}).forEach(function(Y){var Q; (Y=Y==null?void 0:(Q=Y.slotEntryTrigger)==null?void 0:Q.mediaTimeRangeTrigger)&&Y.offsetEndMilliseconds==="-1"&&(Y.offsetEndMilliseconds=Z)})}return{OI:C, adSlots:R,Oq:!1,ssdaiAdsConfig:N.ssdaiAdsConfig}}; Gj=function(N){g.H.call(this);this.C=N;this.listeners=[];this.V=new $a(this);g.b(this,this.V);this.V.S(this.C,"aduxclicked",this.onAdUxClicked);this.V.S(this.C,"aduxmouseover",this.Pl);this.V.S(this.C,"aduxmouseout",this.zK);this.V.S(this.C,"muteadaccepted",this.pLp)}; D5I=function(N,z,v){z=g.OL(z,function(R){return new kJx(R,v,R.id)}); N.C.Qp("onAdUxUpdate",z)}; xT=function(N,z){N=g.f(N.listeners);for(var v=N.next();!v.done;v=N.next())z(v.value)}; eO=function(N,z){this.W=N;this.Z=z===void 0?!1:z;this.V={}}; bB7=function(N,z){var v=N.startSecs+N.K5;v=v<=0?null:v;if(v===null)return null;switch(N.event){case "start":case "continue":case "stop":break;case "predictStart":if(z)break;return null;default:return null}z=Math.max(N.startSecs,0);return{Sz:new Tb(z,v),C6:new OQ(z,v-z,N.context,N.identifier,N.event,N.V)}}; tE7=function(){this.V=[]}; Jcu=function(N,z,v){var R=g.A8(N.V,z);if(R>=0)return z;z=-R-1;return z>=N.V.length||N.V[z]>v?null:N.V[z]}; Jt=function(N,z,v){g.H.call(this);this.C=N;this.zU=z;this.sT=v;this.listeners=[];this.B=!1;this.N=[];this.V=null;this.G=new eO(this,zMm(z.get()));this.Z=new tE7;this.W=null}; OBY=function(N){return N.N}; I1b=function(N,z){N.N.push(z);for(var v=!1,R=g.f(N.listeners),C=R.next();!C.done;C=R.next())v=C.value.y4(z)||v;N.B=v;nv(N.zU.get())&&CC(N.sT.get(),"onci","cpi."+z.identifier+";cpe."+z.event+";cps."+z.startSecs+";cbi."+v)}; rlm=function(N,z){NY(N.sT.get(),{cuepointTrigger:{event:Xuf(z.event),cuepointId:z.identifier,totalCueDurationMs:z.K5*1E3,playheadTimeMs:z.V,cueStartTimeMs:z.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:N.C.getVideoData(1).clientPlaybackNonce}})}; Xuf=function(N){switch(N){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 M8(N,"Unexpected cuepoint event")}}; yk=function(N){this.C=N}; fq=function(N){this.C=N}; u0O=function(N){switch(N){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:M8(N,"unknown transitionReason")}}; dt=function(){g.H.apply(this,arguments)}; clf=function(N){this.C=N}; qS2=function(N,z,v,R,C){g.H.call(this);var Z=this,Y=HL(function(){return new N$(Z.zU)}); g.b(this,Y);var Q=HL(function(){return new vM(Y,Z.zU)}); g.b(this,Q);var L=HL(function(){return new gQ}); g.b(this,L);var K=HL(function(){return new Bk(N)}); g.b(this,K);var l=HL(function(){return new RJ(Y,Q,Z.zU)}); g.b(this,l);var W=HL(function(){return new jv}); g.b(this,W);this.au=HL(function(){return new Gj(z)}); g.b(this,this.au);this.Iz=HL(function(){return new DL(C)}); g.b(this,this.Iz);this.eK=HL(function(){return new Xa(z)}); g.b(this,this.eK);this.H5=HL(function(){return new r9(z)}); g.b(this,this.H5);this.AI=HL(function(){return new uO(z)}); g.b(this,this.AI);this.fb=HL(function(){return new cm(z)}); g.b(this,this.fb);this.zU=HL(function(){return new qE(z)}); g.b(this,this.zU);var G=HL(function(){return new WI(R)}); g.b(this,G);var x=HL(function(){return new KM(Z.zU)}); g.b(this,x);this.HD=HL(function(){return new yk(z)}); g.b(this,this.HD);this.ox=HL(function(){return new O8}); g.b(this,this.ox);this.XW=HL(function(){return new i3(z,W,Z.zU)}); g.b(this,this.XW);var e=OB({XW:this.XW,zU:this.zU,nG:x}),d=e.context,T=e.uE;this.Xm=e.Xm;this.x8=HL(function(){return new Jt(z,Z.zU,Z.sT)}); g.b(this,this.x8);this.Vy=HL(function(){return new fq(z)}); g.b(this,this.Vy);this.C0=HL(function(){return new jO(z,Z.XW,Z.zU)}); g.b(this,this.C0);this.NH=HL(function(){return new dt}); g.b(this,this.NH);e=HL(function(){return new y6(Y,l,Q,Z.zU,x,"SLOT_TYPE_ABOVE_FEED",Z.C0,Z.Vj,Z.f5)}); g.b(this,e);this.DT=HL(function(){return new IY(Z.zU)}); this.rW=HL(function(){return new N7(Z.C0,z,Z.zU)}); g.b(this,this.rW);this.sT=HL(function(){return new ZV(z,L,Z.rW,Z.XW,Z.Xm,Z.zU,T)}); g.b(this,this.sT);this.Fa=new $k(mo,sh,function(n,P,V,D){return z$(Q.get(),n,P,V,D)},K,l,Q,x,this.zU,this.XW); g.b(this,this.Fa);this.zW=new U3(K,e,v,this.zU,N,this.XW,this.C0,this.eK);g.b(this,this.zW);var m=new IR(z,this.zW,this.C0,this.XW,this.x8);this.di=HL(function(){return m}); this.fp=m;this.Vj=new T$(K,l,this.di,this.x8,this.C0,this.zU,this.sT,this.Vy);g.b(this,this.Vj);this.FZ=new As(K,l,this.H5,this.di,d);g.b(this,this.FZ);this.bO=new H4(this.zU,K,l,e,this.XW,this.FZ,v,this.AI);g.b(this,this.bO);this.Ji=HL(function(){return new Qu(G,Q,x,Z.zU,Z.sT,Z.C0,Z.Vy)}); g.b(this,this.Ji);this.O9=HL(function(){return new L7}); g.b(this,this.O9);this.q2=new Hk(N,this.au,this.zU);g.b(this,this.q2);this.xJ=new oa(N);g.b(this,this.xJ);this.cB=new D7(N);g.b(this,this.cB);this.pu=new ts(N,this.di,d);g.b(this,this.pu);this.mS=new O3(N,this.H5,this.C0,this.XW,d);g.b(this,this.mS);this.Cp=new Ia(N,this.XW);g.b(this,this.Cp);this.f5=new u5(N,this.x8,this.C0,this.sT,this.di);g.b(this,this.f5);this.r6=new X3(N);g.b(this,this.r6);this.KG=new wQ(N);g.b(this,this.KG);this.Le=new rQ(N);g.b(this,this.Le);this.H9=new Ms(N);g.b(this,this.H9); this.KG=new wQ(N);g.b(this,this.KG);this.aj=HL(function(){return new V6}); g.b(this,this.aj);this.uG=HL(function(){return new SC(Z.C0)}); g.b(this,this.uG);this.Fi=HL(function(){return new Dgv(Z.au,Z.sT,N,L,Z.rW)}); g.b(this,this.Fi);this.Th=HL(function(){return new cA(Z.bO,K,Y)}); g.b(this,this.Th);this.Ax=HL(function(){return new wV(Z.zU,Z.sT,Z.r6,Z.rW)}); g.b(this,this.Ax);this.Ub=HL(function(){return new LC(N,Z.KG,Z.r6,Z.XW,Z.Vy,Z.C0,Z.NH,Z.sT,W,Z.x8,Z.rW,Z.DT,Z.AI,Z.H5,Z.eK,Z.fb,Z.Iz,Z.HD,Z.zU,L,d,T)}); g.b(this,this.Ub);this.ZE=HL(function(){return new vJv(Z.C0,Z.sT,Z.Iz,Z.zU,Z.rW,Z.XW)}); g.b(this,this.ZE);this.a9=HL(function(){return new bhu(Z.au,Z.C0,Z.sT,L,Z.rW,Z.cB,Z.H9,Z.Iz,Z.zU,v)}); g.b(this,this.a9);this.Dd=HL(function(){return new bKU(Z.au,Z.sT,L)}); g.b(this,this.Dd);this.WV=new l3(N,this.ox,Y);g.b(this,this.WV);this.Gl={Om:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bO],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Vj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fa],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.FZ]]),uQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ji],["SLOT_TYPE_ABOVE_FEED",this.O9],["SLOT_TYPE_FORECASTING",this.O9], ["SLOT_TYPE_IN_PLAYER",this.O9],["SLOT_TYPE_PLAYER_BYTES",this.O9],["SLOT_TYPE_PLAYER_UNDERLAY",this.O9],["SLOT_TYPE_PLAYBACK_TRACKING",this.O9],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.O9]]),vZ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.q2],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.q2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xJ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xJ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.xJ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xJ],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.xJ],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.xJ],["TRIGGER_TYPE_CLOSE_REQUESTED",this.cB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pu],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.mS],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.mS],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.mS],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.mS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.mS],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.mS],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.mS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Cp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Cp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.r6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.pu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Le],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.H9],["TRIGGER_TYPE_AD_BREAK_STARTED",this.KG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.f5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.f5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.f5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.f5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.f5]]),Vo:new Map([["SLOT_TYPE_ABOVE_FEED",this.aj], ["SLOT_TYPE_AD_BREAK_REQUEST",this.aj],["SLOT_TYPE_FORECASTING",this.aj],["SLOT_TYPE_IN_PLAYER",this.aj],["SLOT_TYPE_PLAYER_BYTES",this.uG],["SLOT_TYPE_PLAYER_UNDERLAY",this.aj],["SLOT_TYPE_PLAYBACK_TRACKING",this.aj],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.aj]]),eE:new Map([["SLOT_TYPE_ABOVE_FEED",this.Fi],["SLOT_TYPE_AD_BREAK_REQUEST",this.Th],["SLOT_TYPE_FORECASTING",this.Ax],["SLOT_TYPE_PLAYER_BYTES",this.Ub],["SLOT_TYPE_PLAYBACK_TRACKING",this.ZE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.ZE],["SLOT_TYPE_IN_PLAYER",this.a9],["SLOT_TYPE_PLAYER_UNDERLAY",this.Dd]])};this.listeners=[L.get()];this.uP={bO:this.bO,ZG:this.zU.get(),yp:this.Iz.get(),rj:this.C0.get(),zW:this.zW,To:Y.get(),xp:this.ox.get(),gm:this.q2,XB:L.get(),oy:this.XW.get()}}; ME2=function(N,z,v,R,C){g.H.call(this);var Z=this,Y=HL(function(){return new N$(Z.zU)}); g.b(this,Y);var Q=HL(function(){return new vM(Y,Z.zU)}); g.b(this,Q);var L=HL(function(){return new gQ}); g.b(this,L);var K=HL(function(){return new Bk(N)}); g.b(this,K);var l=HL(function(){return new RJ(Y,Q,Z.zU)}); g.b(this,l);var W=HL(function(){return new jv}); g.b(this,W);this.au=HL(function(){return new Gj(z)}); g.b(this,this.au);this.Iz=HL(function(){return new DL(C)}); g.b(this,this.Iz);this.eK=HL(function(){return new Xa(z)}); g.b(this,this.eK);this.H5=HL(function(){return new r9(z)}); g.b(this,this.H5);this.AI=HL(function(){return new uO(z)}); g.b(this,this.AI);this.fb=HL(function(){return new cm(z)}); g.b(this,this.fb);this.zU=HL(function(){return new qE(z)}); g.b(this,this.zU);var G=HL(function(){return new WI(R)}); g.b(this,G);var x=HL(function(){return new KM(Z.zU)}); g.b(this,x);var e=HL(function(){return new y6(Y,l,Q,Z.zU,x,null,null,Z.Vj,Z.f5)}); g.b(this,e);this.HD=HL(function(){return new yk(z)}); g.b(this,this.HD);this.ox=HL(function(){return new O8}); g.b(this,this.ox);this.XW=HL(function(){return new i3(z,W,Z.zU)}); g.b(this,this.XW);var d=OB({XW:this.XW,zU:this.zU,nG:x}),T=d.context,m=d.uE;this.Xm=d.Xm;this.x8=HL(function(){return new Jt(z,Z.zU,Z.sT)}); this.C0=HL(function(){return new jO(z,Z.XW,Z.zU)}); g.b(this,this.C0);this.NH=HL(function(){return new dt}); g.b(this,this.NH);this.rW=HL(function(){return new N7(Z.C0,z,Z.zU)}); g.b(this,this.rW);this.sT=HL(function(){return new ZV(z,L,Z.rW,Z.XW,Z.Xm,Z.zU,m)}); g.b(this,this.sT);this.DT=HL(function(){return new IY(Z.zU)}); g.b(this,this.DT);this.Fa=new $k(mo,sh,function(P,V,D,c){return z$(Q.get(),P,V,D,c)},K,l,Q,x,this.zU,this.XW); g.b(this,this.Fa);this.zW=new U3(K,e,v,this.zU,N,this.XW,this.C0,this.eK);g.b(this,this.zW);var n=new IR(z,this.zW,this.C0,this.XW,this.x8);this.di=HL(function(){return n}); this.fp=n;this.Vj=new T$(K,l,this.di,this.x8,this.C0,this.zU,this.sT);g.b(this,this.Vj);this.FZ=new As(K,l,this.H5,this.di,T);g.b(this,this.FZ);this.bO=new H4(this.zU,K,l,e,this.XW,this.FZ,v,this.AI);g.b(this,this.bO);this.Ji=HL(function(){return new Qu(G,Q,x,Z.zU,Z.sT,Z.C0)}); g.b(this,this.Ji);this.O9=HL(function(){return new L7}); g.b(this,this.O9);this.q2=new Hk(N,this.au,this.zU);g.b(this,this.q2);this.xJ=new oa(N);g.b(this,this.xJ);this.cB=new D7(N);g.b(this,this.cB);this.pu=new ts(N,this.di,T);g.b(this,this.pu);this.mS=new O3(N,this.H5,this.C0,this.XW,T);g.b(this,this.mS);this.r6=new X3(N);g.b(this,this.r6);this.Le=new rQ(N);g.b(this,this.Le);this.H9=new Ms(N);g.b(this,this.H9);this.Vy=HL(function(){return new fq(z)}); g.b(this,this.Vy);this.KG=new wQ(N);g.b(this,this.KG);this.f5=new u5(N,this.x8,this.C0,this.sT,this.di);g.b(this,this.f5);this.aj=HL(function(){return new V6}); g.b(this,this.aj);this.uG=HL(function(){return new SC(Z.C0)}); g.b(this,this.uG);this.Th=HL(function(){return new cA(Z.bO,K,Y)}); g.b(this,this.Th);this.Ax=HL(function(){return new wV(Z.zU,Z.sT,Z.r6,Z.rW)}); g.b(this,this.Ax);this.a9=HL(function(){return new tqO(Z.au,Z.C0,Z.sT,L,Z.rW,Z.cB,Z.H9,Z.Iz,Z.zU,v)}); g.b(this,this.a9);this.Ub=HL(function(){return new KC(N,Z.KG,Z.r6,Z.sT,Z.rW,Z.DT,Z.AI,Z.XW,Z.C0,Z.NH,Z.H5,Z.eK,Z.fb,Z.Iz,Z.HD,Z.zU,Z.Vy,T,m)}); g.b(this,this.Ub);this.WV=new l3(N,this.ox,Y);g.b(this,this.WV);this.Gl={Om:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bO],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Vj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fa],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.FZ]]),uQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ji],["SLOT_TYPE_FORECASTING",this.O9],["SLOT_TYPE_IN_PLAYER",this.O9], ["SLOT_TYPE_PLAYER_BYTES",this.O9]]),vZ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.q2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xJ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xJ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xJ], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.xJ],["TRIGGER_TYPE_CLOSE_REQUESTED",this.cB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.mS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.mS],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.mS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.r6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Le],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.H9],["TRIGGER_TYPE_AD_BREAK_STARTED",this.KG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.f5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.f5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.f5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.f5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.f5]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aj],["SLOT_TYPE_FORECASTING",this.aj],["SLOT_TYPE_IN_PLAYER",this.aj],["SLOT_TYPE_PLAYER_BYTES",this.uG]]), eE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Th],["SLOT_TYPE_FORECASTING",this.Ax],["SLOT_TYPE_IN_PLAYER",this.a9],["SLOT_TYPE_PLAYER_BYTES",this.Ub]])};this.listeners=[L.get()];this.uP={bO:this.bO,ZG:this.zU.get(),yp:this.Iz.get(),rj:this.C0.get(),zW:this.zW,To:Y.get(),xp:this.ox.get(),gm:this.q2,XB:L.get(),oy:this.XW.get()}}; wu7=function(N,z,v,R,C){g.H.call(this);var Z=this,Y=HL(function(){return new N$(Z.zU)}); g.b(this,Y);var Q=HL(function(){return new vM(Y,Z.zU)}); g.b(this,Q);var L=HL(function(){return new gQ}); g.b(this,L);var K=HL(function(){return new Bk(N)}); g.b(this,K);var l=HL(function(){return new RJ(Y,Q,Z.zU)}); g.b(this,l);var W=HL(function(){return new jv}); g.b(this,W);this.au=HL(function(){return new Gj(z)}); g.b(this,this.au);this.Iz=HL(function(){return new DL(C)}); g.b(this,this.Iz);this.eK=HL(function(){return new Xa(z)}); g.b(this,this.eK);this.H5=HL(function(){return new r9(z)}); g.b(this,this.H5);this.AI=HL(function(){return new uO(z)}); g.b(this,this.AI);this.fb=HL(function(){return new cm(z)}); g.b(this,this.fb);this.zU=HL(function(){return new qE(z)}); g.b(this,this.zU);var G=HL(function(){return new WI(R)}); g.b(this,G);var x=HL(function(){return new KM(Z.zU)}); g.b(this,x);var e=HL(function(){return new y6(Y,l,Q,Z.zU,x,null,null,null,null)}); g.b(this,e);this.HD=HL(function(){return new yk(z)}); g.b(this,this.HD);this.XW=HL(function(){return new i3(z,W,Z.zU)}); g.b(this,this.XW);var d=OB({XW:this.XW,zU:this.zU,nG:x}),T=d.context,m=d.uE;this.Xm=d.Xm;this.C0=HL(function(){return new jO(z,Z.XW,Z.zU)}); g.b(this,this.C0);this.NH=HL(function(){return new dt}); g.b(this,this.NH);this.rW=HL(function(){return new N7(Z.C0,z,Z.zU)}); g.b(this,this.rW);this.sT=HL(function(){return new ZV(z,L,Z.rW,Z.XW,Z.Xm,Z.zU,m)}); g.b(this,this.sT);this.DT=HL(function(){return new IY(Z.zU)}); g.b(this,this.DT);this.Fa=new $k(mo,sh,function(P,V,D,c){return z$(Q.get(),P,V,D,c)},K,l,Q,x,this.zU,this.XW); g.b(this,this.Fa);this.zW=new U3(K,e,v,this.zU,N,this.XW,this.C0,this.eK);g.b(this,this.zW);var n=new IR(z,this.zW,this.C0,this.XW);this.di=HL(function(){return n}); this.fp=n;this.FZ=new As(K,l,this.H5,this.di,T);g.b(this,this.FZ);this.bO=new H4(this.zU,K,l,e,this.XW,this.FZ,v,this.AI);g.b(this,this.bO);this.Ji=HL(function(){return new Qu(G,Q,x,Z.zU,Z.sT,Z.C0)}); g.b(this,this.Ji);this.O9=HL(function(){return new L7}); g.b(this,this.O9);this.q2=new Hk(N,this.au,this.zU);g.b(this,this.q2);this.xJ=new oa(N);g.b(this,this.xJ);this.pu=new ts(N,this.di,T);g.b(this,this.pu);this.mS=new O3(N,this.H5,this.C0,this.XW,T);g.b(this,this.mS);this.r6=new X3(N);g.b(this,this.r6);this.Le=new rQ(N);g.b(this,this.Le);this.Vy=HL(function(){return new fq(z)}); g.b(this,this.Vy);this.KG=new wQ(N);g.b(this,this.KG);this.aj=HL(function(){return new V6}); g.b(this,this.aj);this.uG=HL(function(){return new SC(Z.C0)}); g.b(this,this.uG);this.Th=HL(function(){return new cA(Z.bO,K,Y)}); g.b(this,this.Th);this.Ax=HL(function(){return new wV(Z.zU,Z.sT,Z.r6,Z.rW)}); g.b(this,this.Ax);this.uA=HL(function(){return new ziv(Z.au,Z.C0,Z.sT,L,v,Z.zU)}); g.b(this,this.uA);this.Ub=HL(function(){return new KC(N,Z.KG,Z.r6,Z.sT,Z.rW,Z.DT,Z.AI,Z.XW,Z.C0,Z.NH,Z.H5,Z.eK,Z.fb,Z.Iz,Z.HD,Z.zU,Z.Vy,T,m)}); g.b(this,this.Ub);this.Gl={Om:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bO],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fa],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.FZ]]),uQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ji],["SLOT_TYPE_FORECASTING",this.O9],["SLOT_TYPE_IN_PLAYER",this.O9],["SLOT_TYPE_PLAYER_BYTES",this.O9]]),vZ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.q2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.xJ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xJ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xJ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xJ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.mS],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.mS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.r6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Le],["TRIGGER_TYPE_AD_BREAK_STARTED",this.KG]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aj],["SLOT_TYPE_ABOVE_FEED",this.aj],["SLOT_TYPE_FORECASTING",this.aj],["SLOT_TYPE_IN_PLAYER",this.aj],["SLOT_TYPE_PLAYER_BYTES",this.uG]]),eE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Th],["SLOT_TYPE_FORECASTING",this.Ax],["SLOT_TYPE_IN_PLAYER", this.uA],["SLOT_TYPE_PLAYER_BYTES",this.Ub]])};this.listeners=[L.get()];this.uP={bO:this.bO,ZG:this.zU.get(),yp:this.Iz.get(),rj:this.C0.get(),zW:this.zW,To:Y.get(),xp:null,gm:this.q2,XB:L.get(),oy:this.XW.get()}}; NIf=function(N,z,v,R,C){g.H.call(this);var Z=this,Y=HL(function(){return new N$(Z.zU)}); g.b(this,Y);var Q=HL(function(){return new vM(Y,Z.zU)}); g.b(this,Q);var L=HL(function(){return new gQ}); g.b(this,L);var K=HL(function(){return new Bk(N)}); g.b(this,K);var l=HL(function(){return new RJ(Y,Q,Z.zU)}); g.b(this,l);var W=HL(function(){return new jv}); g.b(this,W);this.Pp=HL(function(){return new clf(z)}); g.b(this,this.Pp);this.au=HL(function(){return new Gj(z)}); g.b(this,this.au);this.Iz=HL(function(){return new DL(C)}); g.b(this,this.Iz);this.eK=HL(function(){return new Xa(z)}); g.b(this,this.eK);this.H5=HL(function(){return new r9(z)}); g.b(this,this.H5);this.AI=HL(function(){return new uO(z)}); g.b(this,this.AI);this.fb=HL(function(){return new cm(z)}); g.b(this,this.fb);this.zU=HL(function(){return new qE(z)}); g.b(this,this.zU);var G=HL(function(){return new WI(R)}); g.b(this,G);var x=HL(function(){return new KM(Z.zU)}); g.b(this,x);var e=HL(function(){return new y6(Y,l,Q,Z.zU,x,null,null,null,null)}); g.b(this,e);this.HD=HL(function(){return new yk(z)}); g.b(this,this.HD);this.XW=HL(function(){return new i3(z,W,Z.zU)}); g.b(this,this.XW);var d=OB({XW:this.XW,zU:this.zU,nG:x}),T=d.context,m=d.uE;this.Xm=d.Xm;this.C0=HL(function(){return new jO(z,Z.XW,Z.zU)}); g.b(this,this.C0);this.NH=HL(function(){return new dt}); g.b(this,this.NH);this.rW=HL(function(){return new N7(Z.C0,z,Z.zU)}); g.b(this,this.rW);this.sT=HL(function(){return new ZV(z,L,Z.rW,Z.XW,Z.Xm,Z.zU,m)}); g.b(this,this.sT);this.DT=HL(function(){return new IY(Z.zU)}); g.b(this,this.DT);this.Fa=new $k(gP7,sh,function(P,V,D,c){return NRu(Q.get(),P,V,D,c)},K,l,Q,x,this.zU,this.XW); g.b(this,this.Fa);this.zW=new U3(K,e,v,this.zU,N,this.XW,this.C0,this.eK);g.b(this,this.zW);var n=new IR(z,this.zW,this.C0,this.XW);this.di=HL(function(){return n}); this.fp=n;this.FZ=new As(K,l,this.H5,this.di,T);g.b(this,this.FZ);this.bO=new H4(this.zU,K,l,e,this.XW,this.FZ,v,this.AI);g.b(this,this.bO);this.Ji=HL(function(){return new Qu(G,Q,x,Z.zU,Z.sT,Z.C0)}); g.b(this,this.Ji);this.O9=HL(function(){return new L7}); g.b(this,this.O9);this.q2=new Hk(N,this.au,this.zU);g.b(this,this.q2);this.xJ=new oa(N);g.b(this,this.xJ);this.pu=new ts(N,this.di,T);g.b(this,this.pu);this.mS=new O3(N,this.H5,this.C0,this.XW,T);g.b(this,this.mS);this.r6=new X3(N);g.b(this,this.r6);this.Le=new rQ(N);g.b(this,this.Le);this.Vy=HL(function(){return new fq(z)}); g.b(this,this.Vy);this.KG=new wQ(N);g.b(this,this.KG);this.aj=HL(function(){return new V6}); g.b(this,this.aj);this.uG=HL(function(){return new SC(Z.C0)}); g.b(this,this.uG);this.Th=HL(function(){return new cA(Z.bO,K,Y)}); g.b(this,this.Th);this.Ax=HL(function(){return new wV(Z.zU,Z.sT,Z.r6,Z.rW)}); g.b(this,this.Ax);this.Ub=HL(function(){return new KC(N,Z.KG,Z.r6,Z.sT,Z.rW,Z.DT,Z.AI,Z.XW,Z.C0,Z.NH,Z.H5,Z.eK,Z.fb,Z.Iz,Z.HD,Z.zU,Z.Vy,T,m)}); g.b(this,this.Ub);this.Pj=HL(function(){return new ITO(Z.au,Z.C0,Z.sT,L,Z.Pp,v,Z.XW)}); g.b(this,this.Pj);this.Gl={Om:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bO],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fa],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.FZ]]),uQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ji],["SLOT_TYPE_FORECASTING",this.O9],["SLOT_TYPE_IN_PLAYER",this.O9],["SLOT_TYPE_PLAYER_BYTES",this.O9]]),vZ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.q2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.xJ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xJ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xJ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xJ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.mS],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.mS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.r6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Le],["TRIGGER_TYPE_AD_BREAK_STARTED",this.KG]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aj],["SLOT_TYPE_FORECASTING",this.aj],["SLOT_TYPE_IN_PLAYER",this.aj],["SLOT_TYPE_PLAYER_BYTES",this.uG]]),eE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Th],["SLOT_TYPE_FORECASTING",this.Ax],["SLOT_TYPE_IN_PLAYER",this.Pj],["SLOT_TYPE_PLAYER_BYTES", this.Ub]])};this.listeners=[L.get()];this.uP={bO:this.bO,ZG:this.zU.get(),yp:this.Iz.get(),rj:this.C0.get(),zW:this.zW,To:Y.get(),xp:null,gm:this.q2,XB:L.get(),oy:this.XW.get()}}; znO=function(N,z,v,R,C){g.H.call(this);var Z=this,Y=HL(function(){return new N$(Z.zU)}); g.b(this,Y);var Q=HL(function(){return new vM(Y,Z.zU)}); g.b(this,Q);var L=HL(function(){return new gQ}); g.b(this,L);var K=HL(function(){return new Bk(N)}); g.b(this,K);var l=HL(function(){return new RJ(Y,Q,Z.zU)}); g.b(this,l);var W=HL(function(){return new jv}); g.b(this,W);this.Pp=HL(function(){return new clf(z)}); g.b(this,this.Pp);this.au=HL(function(){return new Gj(z)}); g.b(this,this.au);this.Iz=HL(function(){return new DL(C)}); g.b(this,this.Iz);this.eK=HL(function(){return new Xa(z)}); g.b(this,this.eK);this.H5=HL(function(){return new r9(z)}); g.b(this,this.H5);this.AI=HL(function(){return new uO(z)}); g.b(this,this.AI);this.fb=HL(function(){return new cm(z)}); g.b(this,this.fb);this.zU=HL(function(){return new qE(z)}); g.b(this,this.zU);var G=HL(function(){return new WI(R)}); g.b(this,G);var x=HL(function(){return new KM(Z.zU)}); g.b(this,x);this.HD=HL(function(){return new yk(z)}); g.b(this,this.HD);this.XW=HL(function(){return new i3(z,W,Z.zU)}); g.b(this,this.XW);var e=OB({XW:this.XW,zU:this.zU,nG:x}),d=e.context,T=e.uE;this.Xm=e.Xm;this.x8=HL(function(){return new Jt(z,Z.zU,Z.sT)}); g.b(this,this.x8);this.Vy=HL(function(){return new fq(z)}); g.b(this,this.Vy);this.C0=HL(function(){return new jO(z,Z.XW,Z.zU)}); g.b(this,this.C0);this.NH=HL(function(){return new dt}); g.b(this,this.NH);e=HL(function(){return new y6(Y,l,Q,Z.zU,x,null,Z.C0,Z.Vj,Z.f5,3)}); g.b(this,e);this.DT=HL(function(){return new IY(Z.zU)}); this.rW=HL(function(){return new N7(Z.C0,z,Z.zU)}); g.b(this,this.rW);this.sT=HL(function(){return new ZV(z,L,Z.rW,Z.XW,Z.Xm,Z.zU,T)}); g.b(this,this.sT);this.zW=new U3(K,e,v,this.zU,N,this.XW,this.C0,this.eK);g.b(this,this.zW);var m=new IR(z,this.zW,this.C0,this.XW,this.x8);this.di=HL(function(){return m}); this.fp=m;this.Fa=new $k(p2f,sh,function(n,P,V,D){return NRu(Q.get(),n,P,V,D)},K,l,Q,x,this.zU,this.XW); g.b(this,this.Fa);this.Vj=new T$(K,l,this.di,this.x8,this.C0,this.zU,this.sT,this.Vy);g.b(this,this.Vj);this.FZ=new As(K,l,this.H5,this.di,d);g.b(this,this.FZ);this.bO=new H4(this.zU,K,l,e,this.XW,this.FZ,v,this.AI);g.b(this,this.bO);this.Ji=HL(function(){return new Qu(G,Q,x,Z.zU,Z.sT,Z.C0,Z.Vy)}); g.b(this,this.Ji);this.O9=HL(function(){return new L7}); g.b(this,this.O9);this.q2=new Hk(N,this.au,this.zU);g.b(this,this.q2);this.xJ=new oa(N);g.b(this,this.xJ);this.pu=new ts(N,this.di,d);g.b(this,this.pu);this.mS=new O3(N,this.H5,this.C0,this.XW,d);g.b(this,this.mS);this.Cp=new Ia(N,this.XW);g.b(this,this.Cp);this.f5=new u5(N,this.x8,this.C0,this.sT,this.di);g.b(this,this.f5);this.r6=new X3(N);g.b(this,this.r6);this.Le=new rQ(N);g.b(this,this.Le);this.KG=new wQ(N);g.b(this,this.KG);this.aj=HL(function(){return new V6}); g.b(this,this.aj);this.uG=HL(function(){return new SC(Z.C0)}); g.b(this,this.uG);this.Th=HL(function(){return new cA(Z.bO,K,Y)}); g.b(this,this.Th);this.Ax=HL(function(){return new wV(Z.zU,Z.sT,Z.r6,Z.rW)}); g.b(this,this.Ax);this.Ub=HL(function(){return new LC(N,Z.KG,Z.r6,Z.XW,Z.Vy,Z.C0,Z.NH,Z.sT,W,Z.x8,Z.rW,Z.DT,Z.AI,Z.H5,Z.eK,Z.fb,Z.Iz,Z.HD,Z.zU,L,d,T)}); g.b(this,this.Ub);this.a9=HL(function(){return new X_u(Z.au,Z.C0,Z.sT,L,Z.Pp,v,Z.zU,Z.XW)}); g.b(this,this.a9);this.Gl={Om:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bO],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Vj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fa],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.FZ]]),uQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ji],["SLOT_TYPE_FORECASTING",this.O9],["SLOT_TYPE_IN_PLAYER",this.O9],["SLOT_TYPE_PLAYER_BYTES",this.O9]]),vZ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.q2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xJ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xJ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xJ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xJ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xJ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.mS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.mS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Cp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Cp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.r6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Le],["TRIGGER_TYPE_AD_BREAK_STARTED",this.KG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.f5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.f5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.f5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.f5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.f5]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aj],["SLOT_TYPE_FORECASTING",this.aj],["SLOT_TYPE_IN_PLAYER",this.aj],["SLOT_TYPE_PLAYER_BYTES",this.uG]]),eE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Th],["SLOT_TYPE_FORECASTING",this.Ax],["SLOT_TYPE_PLAYER_BYTES",this.Ub],["SLOT_TYPE_IN_PLAYER",this.a9]])};this.listeners=[L.get()]; this.uP={bO:this.bO,ZG:this.zU.get(),yp:this.Iz.get(),rj:this.C0.get(),zW:this.zW,To:Y.get(),xp:null,gm:this.q2,XB:L.get(),oy:this.XW.get()}}; Rnb=function(N,z,v,R){function C(){return Z.W} g.H.call(this);var Z=this;N.D().experiments.j8("html5_dispose_of_manager_before_dependency")?(this.V=vqO(C,N,z,v,R),this.W=(new oY(this.V)).Z(),g.b(this,this.W),g.b(this,this.V)):(this.V=vqO(C,N,z,v,R),g.b(this,this.V),this.W=(new oY(this.V)).Z(),g.b(this,this.W))}; Tj=function(N){return N.V.uP}; vqO=function(N,z,v,R,C){try{var Z=z.D();if(g.ci(Z))var Y=new qS2(N,z,v,R,C);else if(g.M9(Z))Y=new ME2(N,z,v,R,C);else if(Dn(Z))Y=new wu7(N,z,v,R,C);else if(g.S0(Z))Y=new NIf(N,z,v,R,C);else if(g.V1(Z))Y=new znO(N,z,v,R,C);else throw new TypeError("Unknown web interface");return Y}catch(Q){return Y=z.D(),LZ("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:Y.V.cplatform,interface:Y.V.c,YOS:Y.V.cver,fnp:Y.V.ctheme,xl1:Y.V.cplayer,MWT:Y.playerStyle}),new HB2(N,z,v,R,C)}}; CSf=function(N){tu.call(this,N)}; ZEu=function(N,z,v,R,C){Mg.call(this,N,{K:"div",U:"ytp-ad-timed-pie-countdown-container",j:[{K:"svg",U:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},j:[{K:"circle",U:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{K:"circle",U:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{K:"circle",U:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",z,v,R,C);this.N=this.e8("ytp-ad-timed-pie-countdown-container");this.Z=this.e8("ytp-ad-timed-pie-countdown-inner"); this.G=this.e8("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; YKf=function(N,z,v,R,C,Z){WS.call(this,N,{K:"div",U:"ytp-ad-action-interstitial",T:{tabindex:"0"},j:[{K:"div",U:"ytp-ad-action-interstitial-background-container"},{K:"div",U:"ytp-ad-action-interstitial-slot",j:[{K:"div",U:"ytp-ad-action-interstitial-instream-info"},{K:"div",U:"ytp-ad-action-interstitial-card",j:[{K:"div",U:"ytp-ad-action-interstitial-image-container"},{K:"div",U:"ytp-ad-action-interstitial-headline-container"},{K:"div",U:"ytp-ad-action-interstitial-description-container"},{K:"div", U:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",z,v,R);this.cO=C;this.Hy=Z;this.navigationEndpoint=this.V=this.skipButton=this.W=this.actionButton=null;this.BL=this.e8("ytp-ad-action-interstitial-instream-info");this.tO=this.e8("ytp-ad-action-interstitial-image-container");this.J=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,"ytp-ad-action-interstitial-image");g.b(this,this.J);this.J.Nd(this.tO);this.Rd=this.e8("ytp-ad-action-interstitial-headline-container"); this.G=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,"ytp-ad-action-interstitial-headline");g.b(this,this.G);this.G.Nd(this.Rd);this.Vp=this.e8("ytp-ad-action-interstitial-description-container");this.Z=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,"ytp-ad-action-interstitial-description");g.b(this,this.Z);this.Z.Nd(this.Vp);this.ET=this.e8("ytp-ad-action-interstitial-background-container");this.UT=new HS(this.api,this.layoutId,this.interactionLoggingClientData, this.yp,"ytp-ad-action-interstitial-background",!0);g.b(this,this.UT);this.UT.Nd(this.ET);this.xT=this.e8("ytp-ad-action-interstitial-action-button-container");this.slot=this.e8("ytp-ad-action-interstitial-slot");this.jr=this.e8("ytp-ad-action-interstitial-card");this.N=new $a;g.b(this,this.N);this.hide()}; iEv=function(N){var z=g.XD("html5-video-player");z&&g.QY(z,"ytp-ad-display-override",N)}; LH_=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-overlay-slot",j:[{K:"div",U:"ytp-ad-overlay-container"}]},"invideo-overlay",z,v,R);this.J=[];this.ET=this.Rd=this.N=this.xT=this.BL=null;this.UT=!1;this.G=null;this.Vp=0;N=this.e8("ytp-ad-overlay-container");this.tO=new YJ(N,45E3,6E3,.3,.4);g.b(this,this.tO);this.Z=jbm(this);g.b(this,this.Z);this.Z.Nd(N);this.W=aeK(this);g.b(this,this.W);this.W.Nd(N);this.V=Qb2(this);g.b(this,this.V);this.V.Nd(N);this.hide()}; jbm=function(N){var z=new g.lG({K:"div",U:"ytp-ad-text-overlay",j:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",j:[{K:"button",U:"ytp-ad-overlay-close-button",j:[gN(KHu)]}]},{K:"div",U:"ytp-ad-overlay-title",OT:"{{title}}"},{K:"div",U:"ytp-ad-overlay-desc",OT:"{{description}}"},{K:"div",GU:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],OT:"{{displayUrl}}"}]});N.S(z.e8("ytp-ad-overlay-title"),"click",function(v){FN(N,z.element,v)}); N.S(z.e8("ytp-ad-overlay-link"),"click",function(v){FN(N,z.element,v)}); N.S(z.e8("ytp-ad-overlay-close-container"),"click",N.nR);z.hide();return z}; aeK=function(N){var z=new g.lG({K:"div",GU:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",j:[{K:"button",U:"ytp-ad-overlay-close-button",j:[gN(KHu)]}]},{K:"div",U:"ytp-ad-overlay-text-image",j:[{K:"img",T:{src:"{{imageUrl}}"}}]},{K:"div",U:"ytp-ad-overlay-title",OT:"{{title}}"},{K:"div",U:"ytp-ad-overlay-desc",OT:"{{description}}"},{K:"div",GU:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], OT:"{{displayUrl}}"}]});N.S(z.e8("ytp-ad-overlay-title"),"click",function(v){FN(N,z.element,v)}); N.S(z.e8("ytp-ad-overlay-link"),"click",function(v){FN(N,z.element,v)}); N.S(z.e8("ytp-ad-overlay-close-container"),"click",N.nR);N.S(z.e8("ytp-ad-overlay-text-image"),"click",N.zd8);z.hide();return z}; Qb2=function(N){var z=new g.lG({K:"div",U:"ytp-ad-image-overlay",j:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",j:[{K:"button",U:"ytp-ad-overlay-close-button",j:[gN(KHu)]}]},{K:"div",U:"ytp-ad-overlay-image",j:[{K:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});N.S(z.e8("ytp-ad-overlay-image"),"click",function(v){FN(N,z.element,v)}); N.S(z.e8("ytp-ad-overlay-close-container"),"click",N.nR);z.hide();return z}; leu=function(N,z){if(z){var v=g.t(z,Vy)||null;v==null?g.kE(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(z=g.XD("video-ads ytp-ad-module")||null,z==null?g.kE(Error("Could not locate the root ads container element to attach the ad info dialog.")):(N.Rd=new g.lG({K:"div",U:"ytp-ad-overlay-ad-info-dialog-container"}),g.b(N,N.Rd),N.Rd.Nd(z),z=new uG(N.api,N.layoutId,N.interactionLoggingClientData,N.yp,N.Rd.element,!1),g.b(N,z),z.init(Yt("ad-info-hover-text-button"),v,N.macros), N.G?(z.Nd(N.G,0),z.subscribe("f",N.cOT,N),z.subscribe("e",N.lh,N),N.S(N.G,"click",N.Ipd),N.S(g.XD("ytp-ad-button",z.element),"click",function(){var R;if(g.t((R=g.t(v.button,g.E9))==null?void 0:R.serviceEndpoint,tt2))N.UT=N.api.getPlayerState(1)===2,N.api.pauseVideo();else N.api.onAdUxClicked("ad-info-hover-text-button",N.layoutId)}),N.ET=z):g.kE(Error("Ad info button container within overlay ad was not present."))))}else g.PN(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; GvI=function(N,z){if(WHu(N,nq)||N.api.isMinimized())return!1;var v=Ga(z.title),R=Ga(z.description);if(g.ez(v)||g.ez(R))return!1;N.createServerVe(N.Z.element,z.trackingParams||null);N.Z.updateValue("title",Ga(z.title));N.Z.updateValue("description",Ga(z.description));N.Z.updateValue("displayUrl",Ga(z.displayUrl));z.navigationEndpoint&&g.nm(N.J,z.navigationEndpoint);N.Z.show();N.tO.start();N.logVisibility(N.Z.element,!0);N.S(N.Z.element,"mouseover",function(){N.Vp++}); return!0}; x62=function(N,z){if(WHu(N,nq)||N.api.isMinimized())return!1;var v=Ga(z.title),R=Ga(z.description);if(g.ez(v)||g.ez(R))return!1;N.createServerVe(N.W.element,z.trackingParams||null);N.W.updateValue("title",Ga(z.title));N.W.updateValue("description",Ga(z.description));N.W.updateValue("displayUrl",Ga(z.displayUrl));N.W.updateValue("imageUrl",ZJx(z.image));z.navigationEndpoint&&g.nm(N.J,z.navigationEndpoint);N.xT=z.imageNavigationEndpoint||null;N.W.show();N.tO.start();N.logVisibility(N.W.element,!0); N.S(N.W.element,"mouseover",function(){N.Vp++}); return!0}; enb=function(N,z){if(N.api.isMinimized())return!1;var v=Y5U(z.image),R=v;v.width0?(z=new PW(N.api,N.V), z.Nd(N.playerOverlay),g.b(N,z)):(N=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(z)),g.kE(N))}}else g.kE(Error("addCommonComponents() needs to be called before starting countdown."))}; U6v=function(N){function z(v){return{toString:function(){return v()}}} N.macros.SURVEY_LOCAL_TIME_EPOCH_S=z(function(){var v=new Date;return(Math.round(v.valueOf()/1E3)+-1*v.getTimezoneOffset()*60).toString()}); N.macros.SURVEY_ELAPSED_MS=z(function(){return(Date.now()-N.Z).toString()})}; BIf=function(N,z,v,R,C){BI.call(this,N,z,v,R,"survey-question-multi-select");this.Vp=C;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()}; AM7=function(N,z,v){N.noneOfTheAbove=new TIK(N.api,N.layoutId,N.interactionLoggingClientData,N.yp);N.noneOfTheAbove.Nd(N.answers);N.noneOfTheAbove.init(Yt("survey-none-of-the-above"),z,v)}; pYU=function(N){N.W.forEach(function(z){z.V.toggleButton(!1)}); gqU(N,!0)}; gqU=function(N,z){var v=N.N;N=kvY(N);z=z===void 0?!1:z;v.V&&(N?v.V.hide():v.V.show(),z&&v.V instanceof e0&&!v.V.N&&wz_(v.V,!1));v.W&&(N?v.W.show():v.W.hide())}; kvY=function(N){return N.W.some(function(z){return z.V.isToggled()})||N.noneOfTheAbove.button.isToggled()}; At=function(N,z,v,R,C){BI.call(this,N,z,v,R,"survey-question-single-select",function(Y){Z.api.D().X("supports_multi_step_on_desktop")&&C([Y])}); var Z=this;this.hide()}; gt=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-survey",j:[{K:"div",U:"ytp-ad-survey-questions"}]},"survey",z,v,R);this.questions=[];this.W=[];this.conditioningRules=[];this.V=0;this.G=this.e8("ytp-ad-survey-questions");this.api.D().X("fix_survey_color_contrast_on_destop")&&this.e8("ytp-ad-survey").classList.add("color-contrast-fix");this.api.D().X("web_enable_speedmaster")&&this.e8("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; SKv=function(N,z){var v=N.W[z],R;(R=N.Z)==null||R.dispose();g.t(v,ku)?PSm(N,g.t(v,ku),N.macros):g.t(v,p0)&&VXm(N,g.t(v,p0),N.macros);N.V=z}; PSm=function(N,z,v){var R=new At(N.api,N.layoutId,N.interactionLoggingClientData,N.yp,N.N.bind(N));R.Nd(N.G);R.init(Yt("survey-question-single-select"),z,v);N.api.D().X("supports_multi_step_on_desktop")?N.Z=R:N.questions.push(R);g.b(N,R)}; VXm=function(N,z,v){var R=new BIf(N.api,N.layoutId,N.interactionLoggingClientData,N.yp,N.N.bind(N));R.Nd(N.G);R.init(Yt("survey-question-multi-select"),z,v);N.api.D().X("supports_multi_step_on_desktop")?N.Z=R:N.questions.push(R);g.b(N,R)}; pq=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-survey-interstitial",j:[{K:"div",U:"ytp-ad-survey-interstitial-contents",j:[{K:"div",U:"ytp-ad-survey-interstitial-logo",j:[{K:"div",U:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",U:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",z,v,R);this.V=this.actionButton=null;this.interstitial=this.e8("ytp-ad-survey-interstitial");this.W=this.e8("ytp-ad-survey-interstitial-contents");this.text=this.e8("ytp-ad-survey-interstitial-text"); this.logoImage=this.e8("ytp-ad-survey-interstitial-logo-image");this.transition=new g.zX(this,500,!1,300);g.b(this,this.transition)}; EqK=function(N,z){z=z&&hu(z)||"";if(g.ez(z))g.PN(Error("Found ThumbnailDetails without valid image URL"));else{var v=N.style;N=N.style.cssText;var R=document.implementation.createHTMLDocument("").createElement("DIV");R.style.cssText=N;N=k5U(R.style);v.cssText=[N,'background-image:url("'+z+'");'].join("")}}; hnI=function(N){var z=g.XD("html5-video-player");z&&g.QY(z,"ytp-ad-display-override",N)}; kT=function(N,z,v,R,C,Z){Z=Z===void 0?0:Z;Mg.call(this,N,{K:"div",U:"ytp-preview-ad",j:[{K:"div",U:"ytp-preview-ad__text"}]},"preview-ad",z,v,R,C);var Y=this;this.Vp=Z;this.W=0;this.N=-1;this.Z=this.e8("ytp-preview-ad__text");switch(this.Vp){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.zX(this,400,!1,100,function(){Y.hide()}); g.b(this,this.transition);this.hide()}; PI=function(N,z,v,R){WS.call(this,N,{K:"img",U:"ytp-ad-avatar"},"ad-avatar",z,v,R);this.hide()}; HEf=function(N){switch(N.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}}; Vk=function(N,z,v,R,C,Z){C=C===void 0?!1:C;Z=Z===void 0?!1:Z;WS.call(this,N,{K:"button",U:"ytp-ad-button-vm"},"ad-button",z,v,R);this.buttonText=this.buttonIcon=null;this.hide();this.V=C;this.W=Z}; oqu=function(N,z,v,R,C){Mg.call(this,N,{K:"div",GU:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{K:"div",U:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{K:"div",U:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",z,v,R,C);this.startMilliseconds=0;this.adAvatar=new PI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.adAvatar);Rz(this.element,this.adAvatar.element,0);this.headline=new UI(this.api,this.layoutId, this.interactionLoggingClientData,this.yp);g.b(this,this.headline);this.headline.Nd(this.e8("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.description);this.description.Nd(this.e8("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Vk(this.api, this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.adButton);this.adButton.Nd(this.element);this.hide()}; SO=function(N,z,v,R){WS.call(this,N,{K:"button",U:"ytp-skip-ad-button",j:[{K:"div",U:"ytp-skip-ad-button__text"}]},"skip-button",z,v,R);var C=this;this.W=!1;this.N=this.e8("ytp-skip-ad-button__text");this.transition=new g.zX(this,500,!1,100,function(){C.hide()}); g.b(this,this.transition);this.V=new YJ(this.element,15E3,5E3,.5,.5,!0);g.b(this,this.V);this.hide()}; D67=function(N,z,v,R,C){Mg.call(this,N,{K:"div",U:"ytp-skip-ad"},"skip-ad",z,v,R,C);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new SO(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.Z);this.Z.Nd(this.element);this.hide()}; Eh=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-visit-advertiser-link"},"visit-advertiser-link",z,v,R);this.hide()}; ht=function(N,z,v,R,C){WS.call(this,N,{K:"div",U:"ytp-ad-player-overlay-layout",j:[{K:"div",U:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",U:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",U:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",U:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",z,v,R);this.W=C;this.Rd=this.e8("ytp-ad-player-overlay-layout__player-card-container");this.V=this.e8("ytp-ad-player-overlay-layout__ad-info-container"); this.J=this.e8("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Vp=this.e8("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; bEu=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-grid-card-text",j:[{K:"div",U:"ytp-ad-grid-card-text__metadata",j:[{K:"div",U:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",U:"ytp-ad-grid-card-text__metadata__description",j:[{K:"div",U:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",U:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",U:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",z,v,R);this.headline=new UI(this.api,this.layoutId,this.interactionLoggingClientData, this.yp);g.b(this,this.headline);this.headline.Nd(this.e8("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Vk(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0);g.b(this,this.moreInfoButton);this.moreInfoButton.Nd(this.e8("ytp-ad-grid-card-text__button"))}; HI=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",z,v,R);this.V=[]}; oF=function(N,z,v,R,C,Z,Y){Mg.call(this,N,Z,Y,z,v,R,C);this.playerProgressOffsetMs=0;this.W=!1}; tXI=function(N){var z=g.XD("html5-video-player");z&&g.QY(z,"ytp-ad-display-override",N)}; OE_=function(N,z,v,R,C){oF.call(this,N,z,v,R,C,{K:"div",U:"ytp-display-underlay-text-grid-cards",j:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container",j:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header",j:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new HI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.adGridCardCollection);this.adGridCardCollection.Nd(this.e8("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Vk(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.adButton);this.adButton.Nd(this.e8("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Z=this.e8("ytp-display-underlay-text-grid-cards__content_container");this.N=this.e8("ytp-display-underlay-text-grid-cards__content_container__header")}; DV=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-ad-details-line"},"ad-details-line",z,v,R);this.V=[];this.hide()}; b3=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-image-background",j:[{K:"img",U:"ytp-image-background-image"}]},"image-background",z,v,R);this.hide()}; Ie2=function(N,z,v,R,C){Mg.call(this,N,{K:"svg",U:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},j:[{K:"circle",U:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{K:"circle",U:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{K:"circle",U:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",z,v,R,C);this.Z=this.e8("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; tt=function(N,z,v,R){WS.call(this,N,{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},j:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",z,v,R);this.W=null;this.N=this.e8("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new $a;g.b(this,this.Z);this.hide()}; XYK=function(N){var z=g.XD("html5-video-player");z&&g.QY(z,"ytp-ad-display-override",N)}; rMu=function(N){if(!N.adAvatar||!g.t(N.adAvatar,Oh))return g.kE(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!N.headline)return g.kE(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!N.adBadge||!g.t(N.adBadge,IF))return g.kE(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!N.adButton||!g.t(N.adButton,XN))return g.kE(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!N.adInfoRenderer|| !g.t(N.adInfoRenderer,Vy))return g.kE(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;N=N.durationMilliseconds||0;return typeof N!=="number"||N<=0?(g.kE(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+N)),!1):!0}; rt=function(N,z){z=z===void 0?2:z;g.jJ.call(this);this.api=N;this.V=null;this.JI=new $a(this);g.b(this,this.JI);this.W=N5v;this.JI.S(this.api,"presentingplayerstatechange",this.xj);this.V=this.JI.S(this.api,"progresssync",this.G4);this.Ix=z;this.Ix===1&&this.G4()}; u3=function(N,z,v){tu.call(this,N);this.api=N;this.yp=z;this.W={};N=new g.X({K:"div",GU:["video-ads","ytp-ad-module"]});g.b(this,N);nu&&g.Ye(N.element,"ytp-ads-tiny-mode");this.B=new Ji(N.element);g.b(this,this.B);g.PX(this.api,N.element,4);vk(v)&&(v=new g.X({K:"div",GU:["ytp-ad-underlay"]}),g.b(this,v),this.Z=new Ji(v.element),g.b(this,this.Z),g.PX(this.api,v.element,0));g.b(this,UpU())}; uUx=function(N,z){N=g.N8(N.W,z.id,null);N==null&&g.PN(Error("Component not found for element id: "+z.id));return N||null}; cMu=function(N){g.GI.call(this,N);var z=this;this.W=null;this.created=!1;this.Z=N.D().X("h5_use_refactored_get_ad_break")?new E$Y(this.player):new tH(this.player);this.N=function(){if(z.W!=null)return z.W;var R=new OaO({gm:Tj(z.V).gm,oy:Tj(z.V).oy,C:z.player,ZG:Tj(z.V).ZG,sT:z.V.V.sT,XB:Tj(z.V).XB,fb:z.V.V.fb});z.W=R.gX;return z.W}; this.V=new Rnb(this.player,this,this.Z,this.N);g.b(this,this.V);var v=N.D();!Fu(v)||g.V1(v)||Dn(v)||(g.b(this,new u3(N,Tj(this.V).yp,Tj(this.V).ZG)),g.b(this,new CSf(N)))}; qK2=function(N){N.created!==N.loaded&&LZ("Created and loaded are out of sync")}; N_r=function(N){g.GI.prototype.load.call(N);var z=Tj(N.V).ZG;try{N.player.getRootNode().classList.add("ad-created")}catch(L){LZ(L instanceof Error?L:String(L))}var v=N.player.getVideoData(1),R=v&&v.videoId||"",C=v&&v.getPlayerResponse()||{},Z=(!N.player.D().experiments.j8("debug_ignore_ad_placements")&&C&&C.adPlacements||[]).map(function(L){return L.adPlacementRenderer}),Y=((C==null?void 0:C.adSlots)||[]).map(function(L){return g.t(L,og)}); C=C.playerConfig&&C.playerConfig.daiConfig&&C.playerConfig.daiConfig.enableDai||!1;v&&v.Hb();Z=MXu(Z,Y,z,Tj(N.V).To);Y=v&&v.clientPlaybackNonce||"";v=v&&v.xd||!1;if(T2(z,!0)&&v){var Q;z={};(Q=N.player.getVideoData())==null||Q.WL("p_cpb",(z.cc=Y,z))}Q=1E3*N.player.getDuration(1);wYU(N);N.V.V.fp.Iq(Y,Q,v,Z.Rh,Z.y$,Z.Rh,C,R)}; wYU=function(N){var z,v;if(v=(z=N.player.getVideoData(1))==null||!z.xd)z=N.player.D(),v=Fu(z)&&!g.TW(z)&&z.playerStyle==="desktop-polymer";v&&(N=N.player.getInternalApi(),N.addEventListener("updateKevlarOrC3Companion",Y1I),N.addEventListener("updateEngagementPanelAction",iGf),N.addEventListener("changeEngagementPanelVisibility",jqU),window.addEventListener("yt-navigate-start",QqY))}; cI=function(N,z){z===N.PT&&(N.PT=void 0)}; zY8=function(N){var z=Tj(N.V).zW,v=z.N().HY("SLOT_TYPE_PLAYER_BYTES",1);z=ei(z.XW.get(),1).clientPlaybackNonce;var R=!1;v=g.f(v);for(var C=v.next();!C.done;C=v.next()){C=C.value;var Z=C.slotType==="SLOT_TYPE_PLAYER_BYTES"&&C.slotEntryTrigger instanceof mZ?C.slotEntryTrigger.ND:void 0;Z&&Z===z&&(R&&LZ("More than 1 preroll playerBytes slot detected",C),R=!0)}R||aF(Tj(N.V).rj)}; vm8=function(N){if(ME(Tj(N.V).ZG))return!0;var z="";N=g.f(Tj(N.V).XB.Jb.keys());for(var v=N.next();!v.done;v=N.next()){v=v.value;if(v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.hO==="core")return!0;z+=v.slotType+" "}Math.random()<.01&&LZ("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:z});return!1}; RYZ=function(N){N=g.f(Tj(N.V).XB.Jb.values());for(var z=N.next();!z.done;z=N.next())if(z.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; $Jb=function(N,z,v,R,C,Z){v=v===void 0?[]:v;R=R===void 0?"":R;C=C===void 0?"":C;var Y=Tj(N.V).ZG,Q=N.player.getVideoData(1);Q&&Q.getPlayerResponse();Q&&Q.Hb();v=MXu(z,v,Y,Tj(N.V).To);pyO(Tj(N.V).bO,R,v.Rh,v.y$,z,C,Z)}; MXu=function(N,z,v,R){z={Rh:[],y$:z};N=g.f(N);for(var C=N.next();!C.done;C=N.next())if((C=C.value)&&C.renderer!=null){var Z=C.renderer;if(!v.C.D().X("html5_enable_vod_lasr_with_notify_pacf")){var Y=void 0,Q=void 0,L=void 0,K=void 0,l=R;g.t((K=Z.sandwichedLinearAdRenderer)==null?void 0:K.adVideoStart,Js)?(Y=g.t((L=Z.sandwichedLinearAdRenderer)==null?void 0:L.adVideoStart,Js),Y=c1v(Y,l),g.HN(Z.sandwichedLinearAdRenderer.adVideoStart,Js,Y)):g.t((Q=Z.linearAdSequenceRenderer)==null?void 0:Q.adStart,Js)&& (L=g.t((Y=Z.linearAdSequenceRenderer)==null?void 0:Y.adStart,Js),Y=c1v(L,l),g.HN(Z.linearAdSequenceRenderer.adStart,Js,Y))}z.Rh.push(C)}return z}; g.q7=function(N){if(typeof DOMParser!="undefined")return Wr(new DOMParser,B2f(N),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.M7=function(N){g.H.call(this);this.callback=N;this.V=new dA(0,0,.4,0,.2,1,1,1);this.delay=new g.uk(this.next,window,this);g.b(this,this.delay)}; g.C79=function(N){var z=N.D();return z.c5&&!z.Z&&g.Uu(z)?N.isEmbedsShortsMode()?(N=N.IB(),Math.min(N.width,N.height)>=315):!N.ED():!1}; g.wt=function(N){g.X.call(this,{K:"div",U:"ytp-more-videos-view",T:{tabIndex:"-1"}});var z=this;this.api=N;this.W=!0;this.Z=new g.VV(this);this.V=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.N=this.scrollPosition=0;this.title=new g.X({K:"h2",U:"ytp-related-title",OT:"{{title}}"});this.previous=new g.X({K:"button",GU:["ytp-button","ytp-previous"],T:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},j:[g.yr()]});this.L=new g.M7(function(v){z.suggestions.element.scrollLeft= -v}); this.next=new g.X({K:"button",GU:["ytp-button","ytp-next"],T:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},j:[g.fK()]});g.b(this,this.Z);this.G=N.D().N;g.b(this,this.title);this.title.Nd(this.element);this.suggestions=new g.X({K:"div",U:"ytp-suggestions"});g.b(this,this.suggestions);this.suggestions.Nd(this.element);g.b(this,this.previous);this.previous.Nd(this.element);this.previous.listen("click",this.Yj,this);g.b(this,this.L);ZOl(this);g.b(this,this.next);this.next.Nd(this.element);this.next.listen("click", this.fz,this);this.Z.S(this.api,"appresize",this.wW);this.Z.S(this.api,"fullscreentoggled",this.YV);this.Z.S(this.api,"videodatachange",this.onVideoDataChange);this.wW(this.api.n0().getPlayerSize());this.onVideoDataChange()}; ZOl=function(N){for(var z={Os:0};z.Os<16;z={Os:z.Os},++z.Os){var v=new g.X({K:"a",U:"ytp-suggestion-link",T:{href:"{{link}}",target:N.api.D().J,"aria-label":"{{aria_label}}"},j:[{K:"div",U:"ytp-suggestion-image"},{K:"div",U:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{K:"div",U:"ytp-suggestion-title",OT:"{{title}}"},{K:"div",U:"ytp-suggestion-author",OT:"{{author_and_views}}"},{K:"div",T:{"data-is-live":"{{is_live}}"},U:"ytp-suggestion-duration", OT:"{{duration}}"}]}]});g.b(N,v);var R=v.e8("ytp-suggestion-link");g.SB(R,"transitionDelay",z.Os/20+"s");N.Z.S(R,"click",function(C){return function(Z){var Y=C.Os;if(N.W){var Q=N.suggestionData[Y],L=Q.sessionData;N.G&&N.api.X("web_player_log_click_before_generating_ve_conversion_params")?(N.api.logClick(N.V[Y].element),Y=Q.Kr(),Q={},g.g1(N.api,Q),Y=g.kS(Y,Q),g.ip(Y,N.api,Z)):g.YY(Z,N.api,N.G,L||void 0)&&N.api.n4(Q.videoId,L,Q.playlistId)}else Z.preventDefault(),document.activeElement.blur()}}(z)); v.Nd(N.suggestions.element);N.V.push(v);N.api.createServerVe(v.element,v)}}; Y27=function(N){if(N.api.D().X("web_player_log_click_before_generating_ve_conversion_params"))for(var z=Math.floor(-N.scrollPosition/(N.N+8)),v=Math.min(z+N.columns,N.suggestionData.length)-1;z<=v;z++)N.api.logVisibility(N.V[z].element,!0)}; g.Nl=function(N){var z=N.api.PP()?32:16;z=N.Y/2+z;N.next.element.style.bottom=z+"px";N.previous.element.style.bottom=z+"px";z=N.scrollPosition;var v=N.containerWidth-N.suggestionData.length*(N.N+8);g.QY(N.element,"ytp-scroll-min",z>=0);g.QY(N.element,"ytp-scroll-max",z<=v)}; jv9=function(N){for(var z=N.suggestionData.length,v=0;v>>0)+"_",C=0;return z}); LO("Symbol.iterator",function(N){if(N)return N;N=Symbol("Symbol.iterator");for(var z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),v=0;v0&&v>0;)if(R[--v]!=z[--C])return!1;return C<=0}}); LO("Array.prototype.find",function(N){return N?N:function(z,v){return Kuf(this,z,v).qh}}); LO("Array.prototype.entries",function(N){return N?N:function(){return ov(this,function(z,v){return[z,v]})}}); LO("Array.prototype.keys",function(N){return N?N:function(){return ov(this,function(z){return z})}}); LO("String.prototype.startsWith",function(N){return N?N:function(z,v){var R=HU(this,z,"startsWith");z+="";var C=R.length,Z=z.length;v=Math.max(0,Math.min(v|0,R.length));for(var Y=0;Y=Z}}); LO("Number.isFinite",function(N){return N?N:function(z){return typeof z!=="number"?!1:!isNaN(z)&&z!==Infinity&&z!==-Infinity}}); LO("String.prototype.repeat",function(N){return N?N:function(z){var v=HU(this,null,"repeat");if(z<0||z>1342177279)throw new RangeError("Invalid count value");z|=0;for(var R="";z;)if(z&1&&(R+=v),z>>>=1)v+=v;return R}}); LO("Object.entries",function(N){return N?N:function(z){var v=[],R;for(R in z)WU(z,R)&&v.push([R,z[R]]);return v}}); LO("Array.from",function(N){return N?N:function(z,v,R){v=v!=null?v:function(Q){return Q}; var C=[],Z=typeof Symbol!="undefined"&&Symbol.iterator&&z[Symbol.iterator];if(typeof Z=="function"){z=Z.call(z);for(var Y=0;!(Z=z.next()).done;)C.push(v.call(R,Z.value,Y++))}else for(Z=z.length,Y=0;Y>>16&65535)*C+R*(v>>>16&65535)<<16>>>0)|0}}); LO("Math.trunc",function(N){return N?N:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var v=Math.floor(Math.abs(z));return z<0?-v:v}}); LO("Math.clz32",function(N){return N?N:function(z){z=Number(z)>>>0;if(z===0)return 32;var v=0;(z&4294901760)===0&&(z<<=16,v+=16);(z&4278190080)===0&&(z<<=8,v+=8);(z&4026531840)===0&&(z<<=4,v+=4);(z&3221225472)===0&&(z<<=2,v+=2);(z&2147483648)===0&&v++;return v}}); LO("Number.isNaN",function(N){return N?N:function(z){return typeof z==="number"&&isNaN(z)}}); LO("Array.prototype.values",function(N){return N?N:function(){return ov(this,function(z,v){return v})}}); LO("Array.prototype.fill",function(N){return N?N:function(z,v,R){var C=this.length||0;v<0&&(v=Math.max(0,C+v));if(R==null||R>C)R=C;R=Number(R);R<0&&(R=Math.max(0,C+R));for(v=Number(v||0);v0&&v?v.repeat(Math.ceil(z/v.length)).substring(0,z):"")+R}}); LO("Array.prototype.findIndex",function(N){return N?N:function(z,v){return Kuf(this,z,v).VG}}); LO("Promise.prototype.finally",function(N){return N?N:function(z){return this.then(function(v){return Promise.resolve(z()).then(function(){return v})},function(v){return Promise.resolve(z()).then(function(){throw v; })})}}); LO("Math.sign",function(N){return N?N:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}}); LO("WeakSet",function(N){function z(v){this.V=new WeakMap;if(v){v=g.f(v);for(var R;!(R=v.next()).done;)this.add(R.value)}} if(function(){if(!N||!Object.seal)return!1;try{var v=Object.seal({}),R=Object.seal({}),C=new N([v]);if(!C.has(v)||C.has(R))return!1;C.delete(v);C.add(R);return!C.has(v)&&C.has(R)}catch(Z){return!1}}())return N; z.prototype.add=function(v){this.V.set(v,!0);return this}; z.prototype.has=function(v){return this.V.has(v)}; z.prototype.delete=function(v){return this.V.delete(v)}; return z}); LO("AggregateError",function(N){function z(v,R){R=Error(R);"stack"in R&&(this.stack=R.stack);this.errors=v;this.message=R.message} if(N)return N;g.y(z,Error);z.prototype.name="AggregateError";return z}); LO("Array.prototype.copyWithin",function(N){function z(v){v=Number(v);return v===Infinity||v===-Infinity?v:v|0} return N?N:function(v,R,C){var Z=this.length;v=z(v);R=z(R);C=C===void 0?Z:z(C);v=v<0?Math.max(Z+v,0):Math.min(v,Z);R=R<0?Math.max(Z+R,0):Math.min(R,Z);C=C<0?Math.max(Z+C,0):Math.min(C,Z);if(vR;)--C in this?this[--v]=this[C]:delete this[--v];return this}}); LO("Int8Array.prototype.copyWithin",tb);LO("Uint8Array.prototype.copyWithin",tb);LO("Uint8ClampedArray.prototype.copyWithin",tb);LO("Int16Array.prototype.copyWithin",tb);LO("Uint16Array.prototype.copyWithin",tb);LO("Int32Array.prototype.copyWithin",tb);LO("Uint32Array.prototype.copyWithin",tb);LO("Float32Array.prototype.copyWithin",tb);LO("Float64Array.prototype.copyWithin",tb);LO("Array.prototype.at",function(N){return N?N:Iv}); LO("Int8Array.prototype.at",XK);LO("Uint8Array.prototype.at",XK);LO("Uint8ClampedArray.prototype.at",XK);LO("Int16Array.prototype.at",XK);LO("Uint16Array.prototype.at",XK);LO("Int32Array.prototype.at",XK);LO("Uint32Array.prototype.at",XK);LO("Float32Array.prototype.at",XK);LO("Float64Array.prototype.at",XK);LO("String.prototype.at",function(N){return N?N:Iv}); LO("Array.prototype.findLastIndex",function(N){return N?N:function(z,v){return luu(this,z,v).VG}}); LO("Int8Array.prototype.findLastIndex",r_);LO("Uint8Array.prototype.findLastIndex",r_);LO("Uint8ClampedArray.prototype.findLastIndex",r_);LO("Int16Array.prototype.findLastIndex",r_);LO("Uint16Array.prototype.findLastIndex",r_);LO("Int32Array.prototype.findLastIndex",r_);LO("Uint32Array.prototype.findLastIndex",r_);LO("Float32Array.prototype.findLastIndex",r_);LO("Float64Array.prototype.findLastIndex",r_);LO("Number.parseInt",function(N){return N||parseInt});var rH,Rw,WuU;rH=rH||{};g.u7=this||self;Rw="closure_uid_"+(Math.random()*1E9>>>0);WuU=0;g.Lm(Km,Error);Km.prototype.name="CustomError";var PWu;var FuY,Xd,Mj;FuY=Array.prototype.indexOf?function(N,z){return Array.prototype.indexOf.call(N,z,void 0)}:function(N,z){if(typeof N==="string")return typeof z!=="string"||z.length!=1?-1:N.indexOf(z,0); for(var v=0;v=0;v--)if(v in N&&N[v]===z)return v;return-1}; g.h8=Array.prototype.forEach?function(N,z,v){Array.prototype.forEach.call(N,z,v)}:function(N,z,v){for(var R=N.length,C=typeof N==="string"?N.split(""):N,Z=0;Z=.3:this.Xv>=.5};var GM={wKp:0,FyW:1},pVY={NONE:0,G0p:1,ftL:2};var hYU="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ZR.prototype.getValue=function(){return this.W}; g.y(Y_,ZR);Y_.prototype.Z=function(N){this.W===null&&g.qP(this.N,N)&&(this.W=N)}; g.y(ih,ZR);ih.prototype.Z=function(N){this.W===null&&typeof N==="number"&&(this.W=N)}; g.y(aP,ZR);aP.prototype.Z=function(N){this.W===null&&typeof N==="string"&&(this.W=N)};Qg.prototype.disable=function(){this.W=!1}; Qg.prototype.enable=function(){this.W=!0}; Qg.prototype.isEnabled=function(){return this.W}; Qg.prototype.reset=function(){this.V={};this.W=!0;this.Z={}};var NW=document,Kt=window;var xxU=w_(1,!0),$_=w_(610401301,!1);w_(899588437,!1);w_(725719775,!1);var eYP=w_(513659523,!1),JbW=w_(568333945,!1),WSv=w_(1331761403,!1);w_(651175828,!1);w_(722764542,!1);w_(748402145,!1);var IIu=w_(1981196515,!1);w_(2147483644,!1);w_(2147483645,!1);w_(2147483646,xxU);w_(2147483647,!0);var UN=!!g.qx("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var df=String.prototype.trim?function(N){return N.trim()}:function(N){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(N)[1]},al7=/&/g,Qwx=//g,K7x=/"/g,ll_=/'/g,W7I=/\x00/g,jwf=/[\x00&<>"']/;var BZ,ybZ=g.u7.navigator;BZ=ybZ?ybZ.userAgentData||null:null;var q2v=globalThis.trustedTypes,h0;oP.prototype.toString=function(){return this.V+""};t0.prototype.toString=function(){return this.V}; var NE_=new t0("about:invalid#zClosurez");var Btx=rf("tel"),$7x=rf("sms"),wUY=[rf("data"),rf("http"),rf("https"),rf("mailto"),rf("ftp"),new IP(function(N){return/^[^:]*([/?#]|$)/.test(N)})],z9K=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;wf.prototype.toString=function(){return this.V+""};ZB.prototype.toString=function(){return this.V+""};Qp.prototype.toString=function(){return this.V};var K9={};g.fu5=String.prototype.repeat?function(N,z){return N.repeat(z)}:function(N,z){return Array(z+1).join(N)};mf[" "]=function(){};var EV,wD,QMI,dxP,sv5,T_w,F2,nu,Fu9;g.md=PZ();g.Wl=OOO();g.Xi=gf("Edge");g.wd=g.Xi||g.Wl;EV=gf("Gecko")&&!(fI(g.mU(),"WebKit")&&!gf("Edge"))&&!(gf("Trident")||gf("MSIE"))&&!gf("Edge");g.uU=fI(g.mU(),"WebKit")&&!gf("Edge");wD=n9();QMI=flf();g.ML=y82();dxP=T3();sv5=gf("iPad");T_w=gf("iPod");F2=FD();nu=fI(g.mU(),"KaiOS"); a:{var nmr="",mxU=function(){var N=g.mU();if(EV)return/rv:([^\);]+)(\)|;)/.exec(N);if(g.Xi)return/Edge\/([\d\.]+)/.exec(N);if(g.Wl)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(N);if(g.uU)return/WebKit\/(\S+)/.exec(N);if(g.md)return/(?:Version)[ \/]?(\S+)/.exec(N)}(); mxU&&(nmr=mxU?mxU[1]:"");if(g.Wl){var zr,$xr=g.u7.document;zr=$xr?$xr.documentMode:void 0;if(zr!=null&&zr>parseFloat(nmr)){Fu9=String(zr);break a}}Fu9=nmr}var F7x=Fu9,swx={};var uQ,c9;g.Xn=Vg();uQ=T3()||gf("iPod");c9=gf("iPad");g.$1=XUu();g.gp=Sz();g.yl=EN()&&!FD();var PYI=!g.Wl&&!EN();g.J=g.gL.prototype;g.J.clone=function(){return new g.gL(this.x,this.y)}; g.J.equals=function(N){return N instanceof g.gL&&p9(this,N)}; g.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.J.translate=function(N,z){N instanceof g.gL?(this.x+=N.x,this.y+=N.y):(this.x+=Number(N),typeof z==="number"&&(this.y+=z));return this}; g.J.scale=function(N,z){this.x*=N;this.y*=typeof z==="number"?z:N;return this};g.J=g.kQ.prototype;g.J.clone=function(){return new g.kQ(this.width,this.height)}; g.J.aspectRatio=function(){return this.width/this.height}; g.J.isEmpty=function(){return!Vp(this)}; g.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.J.scale=function(N,z){this.width*=N;this.height*=typeof z==="number"?z:N;return this};EC.prototype.toString=function(){return this.V}; var S8={};new EC(S8,"");var $P_=/^[a-z][a-z\d-]*$/i,UPU="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),A8I="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),p$I=["action","formaction","href"];var VVK={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.J=Hr.prototype;g.J.Nu=function(N){return bU(this.V,N)}; g.J.getElementsByTagName=function(N,z){return(z||this.V).getElementsByTagName(String(N))}; g.J.e8=function(N){return g.XD(N,this.V)}; g.J.setProperties=rL;g.J.createElement=function(N){return qu(this.V,N)}; g.J.appendChild=g.zP;g.J.append=function(N,z){Hmu(oI(N),N,arguments,1)}; g.J.canHaveChildren=function(N){if(N.nodeType!=1)return!1;switch(N.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.J.removeNode=g.Ct;g.J.getChildren=function(N){return N.children!=void 0?N.children:Array.prototype.filter.call(N.childNodes,function(z){return z.nodeType==1})}; g.J.contains=g.ZQ;az.prototype.now=function(){return 0}; az.prototype.W=function(){return 0}; az.prototype.Z=function(){return 0}; az.prototype.V=function(){return 0};g.y(Lt,az);Lt.prototype.now=function(){return QX()&&Kt.performance.now?Kt.performance.now():az.prototype.now.call(this)}; Lt.prototype.W=function(){return QX()&&Kt.performance.memory?Kt.performance.memory.totalJSHeapSize||0:az.prototype.W.call(this)}; Lt.prototype.Z=function(){return QX()&&Kt.performance.memory?Kt.performance.memory.usedJSHeapSize||0:az.prototype.Z.call(this)}; Lt.prototype.V=function(){return QX()&&Kt.performance.memory?Kt.performance.memory.jsHeapSizeLimit||0:az.prototype.V.call(this)};var Omm=GP(function(){var N=!1;try{var z=Object.defineProperty({},"passive",{get:function(){N=!0}}); g.u7.addEventListener("test",null,z)}catch(v){}return N});Ilf.prototype.isVisible=function(){return ft(NW)===1};var NLO=dS(function(N){return typeof N==="number"}),wZv=dS(function(N){return typeof N==="string"}),zfb=dS(function(N){return typeof N==="boolean"}),Lb=dS(function(N){return N!=null&&typeof N==="object"&&typeof N.then==="function"}),QYY=dS(function(N){return typeof N==="function"}),UxU=dS(function(N){return!!N&&(typeof N==="object"||typeof N==="function")});var kcK=function(){if(!g.u7.addEventListener||!Object.defineProperty)return!1;var N=!1,z=Object.defineProperty({},"passive",{get:function(){N=!0}}); try{var v=function(){}; g.u7.addEventListener("test",v,z);g.u7.removeEventListener("test",v,z)}catch(R){}return N}();var qBb=r8O("AnimationEnd"),Ls=r8O("TransitionEnd");var c8u=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Rqm=/#|$/,Chu=/[?&]($|#)/;var YNU={B$S:"allow-forms",MIS:"allow-modals",XPO:"allow-orientation-lock",LAL:"allow-pointer-lock",U2d:"allow-popups",FAT:"allow-popups-to-escape-sandbox",ukW:"allow-presentation",SuS:"allow-same-origin",l9d:"allow-scripts",hTl:"allow-top-navigation",yJl:"allow-top-navigation-by-user-activation"},QPu=GP(function(){return iIO()});var WUU=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");oz.prototype.IP=function(N,z,v){N=N+"//"+z+v;var R=J0v(this)-v.length;if(R<0)return"";this.V.sort(function(K,l){return K-l}); v=null;z="";for(var C=0;C=L.length){R-=L.length;N+=L;z=this.Z;break}v=v==null?Z:v}}R="";v!=null&&(R=""+z+"trn="+v);return N+R};uK.prototype.setInterval=function(N,z){return Kt.setInterval(N,z)}; uK.prototype.clearInterval=function(N){Kt.clearInterval(N)}; uK.prototype.setTimeout=function(N,z){return Kt.setTimeout(N,z)}; uK.prototype.clearTimeout=function(N){Kt.clearTimeout(N)};var ep=void 0,xn,cj7=typeof TextDecoder!=="undefined",Bfm,U8U=typeof String.prototype.isWellFormed==="function",$87=typeof TextEncoder!=="undefined";var Phf={},CU=null,Vzu=EV||g.uU||typeof g.u7.btoa=="function";var IRu=typeof Uint8Array!=="undefined",o_K=!g.Wl&&typeof btoa==="function",D8m=/[-_.]/g,hqK={"-":"+",_:"/",".":"="},Yb={};Zs.prototype.isEmpty=function(){return this.V==null}; Zs.prototype.sizeBytes=function(){var N=jL(this);return N?N.length:0}; var OIf;var XZ7=void 0;var KU=typeof Symbol==="function"&&typeof Symbol()==="symbol",B_w=LU("jas",void 0,!0),Ek=LU(void 0,"1oa"),z0=LU(void 0,Symbol()),Ab7=LU(void 0,"0ub"),BLU=LU(void 0,"0actk"),MG=LU("m_m","O9p",!0),Ffv=LU(void 0,"vps");Math.max.apply(Math,g.U(Object.values({fJ8:1,xET:2,yxW:4,F5O:8,ppl:16,pW1:32,DoT:64,ied:128,hWU:256,iXl:512,xaO:1024,khl:2048,oz1:4096,H8o:8192})));var c0u={K6:{value:0,configurable:!0,writable:!0,enumerable:!1}},u_O=Object.defineProperties,lw=KU?B_w:"K6",T0,gm5=[];GV(gm5,7);T0=Object.freeze(gm5);var wG={},eL={},SCI=Object.freeze({}),fU={};var TV=typeof g.u7.BigInt==="function"&&typeof g.u7.BigInt(0)==="bigint";var iY=dS(function(N){return TV?N>=pUU&&N<=kuW:N[0]==="-"?vQv(N,P7Z):vQv(N,VIU)}),P7Z=Number.MIN_SAFE_INTEGER.toString(),pUU=TV?BigInt(Number.MIN_SAFE_INTEGER):void 0,VIU=Number.MAX_SAFE_INTEGER.toString(),kuW=TV?BigInt(Number.MAX_SAFE_INTEGER):void 0;var O9f=typeof Uint8Array.prototype.slice==="function",nU=0,mD=0,fQK;var bw=typeof BigInt==="function"?BigInt.asIntN:void 0,efb=typeof BigInt==="function"?BigInt.asUintN:void 0,Xv=Number.isSafeInteger,SL=Number.isFinite,rG=Math.trunc,i97=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nQ2={};var ZW;var Q2,muv;var hfv=Fv(0);g.J=b9m.prototype;g.J.init=function(N,z,v,R){var C=R===void 0?{}:R;R=C.Jj===void 0?!1:C.Jj;C=C.mI===void 0?!1:C.mI;this.Jj=R;this.mI=C;N&&(N=RL(N,this.mI),this.W=N.buffer,this.B=N.V,this.N=z||0,this.Z=v!==void 0?this.N+v:this.W.length,this.V=this.N)}; g.J.free=function(){this.clear();L4.length<100&&L4.push(this)}; g.J.clear=function(){this.W=null;this.B=!1;this.V=this.Z=this.N=0;this.Jj=!1}; g.J.reset=function(){this.V=this.N}; g.J.VT=function(){var N=this.G;N||(N=this.W,N=this.G=new DataView(N.buffer,N.byteOffset,N.byteLength));return N}; var L4=[];K4.prototype.free=function(){this.V.clear();this.W=this.N=-1;l8.length<100&&l8.push(this)}; K4.prototype.reset=function(){this.V.reset();this.Z=this.V.V;this.W=this.N=-1}; var l8=[];yL.prototype.toJSON=function(){return ad(this)}; yL.prototype.Jy=function(N){return JSON.stringify(ad(this,N))}; yL.prototype.clone=function(){var N=this,z=N.Wb;N=new N.constructor(WG(z,z[lw]|0));xb(N.Wb);return N}; yL.prototype[MG]=wG;yL.prototype.toString=function(){return this.Wb.toString()};var wru,zDU;TN.prototype.length=function(){return this.V.length}; TN.prototype.end=function(){var N=this.V;this.V=[];return N};var gT=AO(),S21=AO(),EmW=AO(),hY$=AO(),HOE=AO(),om9=AO(),Dx7=AO(),bOw=AO();var Qzu=kn(function(N,z,v,R,C){if(N.W!==2)return!1;GN(N,hE(z,R,v),C);return!0},aQu),LRm=kn(function(N,z,v,R,C){if(N.W!==2)return!1; GN(N,hE(z,R,v),C);return!0},aQu),tO=Symbol(),hO=Symbol(),Dg=Symbol(),eDu=Symbol(),WR7=Symbol(),Po,VL;var tIm=co(function(N,z,v){if(N.W!==1)return!1;MU(z,v,aL(N.V));return!0},wT,Dx7),OOm=co(function(N,z,v){if(N.W!==1)return!1; N=aL(N.V);MU(z,v,N===0?void 0:N);return!0},wT,Dx7),Iuw=co(function(N,z,v,R){if(N.W!==1)return!1; V2(z,v,R,aL(N.V));return!0},wT,Dx7),XU7=co(function(N,z,v){if(N.W!==0)return!1; MU(z,v,Zg(N.V));return!0},Nj,HOE),rbP=co(function(N,z,v){if(N.W!==0)return!1; N=Zg(N.V);MU(z,v,N===0?void 0:N);return!0},Nj,HOE),uK8=co(function(N,z,v,R){if(N.W!==0)return!1; V2(z,v,R,Zg(N.V));return!0},Nj,HOE),cb$=co(function(N,z,v){if(N.W!==0)return!1; MU(z,v,Yn(N.V));return!0},zp,hY$),q2w=co(function(N,z,v){if(N.W!==0)return!1; N=Yn(N.V);MU(z,v,N===0?void 0:N);return!0},zp,hY$),MIW=co(function(N,z,v,R){if(N.W!==0)return!1; V2(z,v,R,Yn(N.V));return!0},zp,hY$),wU9=co(function(N,z,v){if(N.W!==1)return!1; MU(z,v,jp(N.V));return!0},function(N,z,v){it7(N,v,Jjm(z))},om9),NEE=qU(function(N,z,v){if(N.W!==1&&N.W!==2)return!1; z=AE(z,z[lw]|0,v);if(N.W==2)for(v=Yn(N.V)>>>0,v=N.V.V+v;N.V.V>>0);return!0},function(N,z,v){z=o1(z); z!=null&&z!=null&&(Ui(N,v,0),n4(N.V,z))},AO()),imE=co(function(N,z,v){if(N.W!==0)return!1; MU(z,v,Yn(N.V));return!0},function(N,z,v){z=HJ(z); z!=null&&(z=parseInt(z,10),Ui(N,v,0),RDf(N.V,z))},AO());nS_.prototype.register=function(){mf(this)};g.y(Z8,yL);Z8.prototype.W=mAu([0,OOm,rbP,-2,q2w]);var kP_={ov0:1,MW:2,ROp:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};VY7.prototype.I0=function(N){if(typeof N==="string"&&N.length!=0){var z=this.ZV;if(z.W){N=N.split("&");for(var v=N.length-1;v>=0;v--){var R=N[v].split("="),C=decodeURIComponent(R[0]);R.length>1?(R=decodeURIComponent(R[1]),R=/^[0-9]+$/g.exec(R)?parseInt(R,10):R):R=1;(C=z.V[C])&&C.Z(R)}}}};var iZ=null;var LT=g.u7.performance,jwU=!!(LT&<.mark&<.measure&<.clearMarks),aB=GP(function(){var N;if(N=jwU){var z=z===void 0?window:z;if(iZ===null){iZ="";try{N="";try{N=z.top.location.hash}catch(R){N=z.location.hash}if(N){var v=N.match(/\bdeid=([\d,]+)/);iZ=v?v[1]:""}}catch(R){}}z=iZ;N=!!z.indexOf&&z.indexOf("1337")>=0}return N}); QC.prototype.disable=function(){this.V=!1;this.events!==this.W.google_js_reporting_queue&&(aB()&&g.h8(this.events,DAu),this.events.length=0)}; QC.prototype.start=function(N,z){if(!this.V)return null;var v=HtI()||hDu();N=new oSK(N,z,v);z="goog_"+N.label+"_"+N.uniqueId+"_start";LT&&aB()&<.mark(z);return N}; QC.prototype.end=function(N){if(this.V&&typeof N.value==="number"){var z=HtI()||hDu();N.duration=z-N.value;z="goog_"+N.label+"_"+N.uniqueId+"_end";LT&&aB()&<.mark(z);!this.V||this.events.length>2048||this.events.push(N)}};btu.prototype.D5=function(N,z,v,R,C){C=C||this.Ec;try{var Z=new oz;Z.V.push(1);Z.W[1]=DQ("context",N);z.error&&z.meta&&z.id||(z=new Gp(xs(z)));if(z.msg){var Y=z.msg.substring(0,512);Z.V.push(2);Z.W[2]=DQ("msg",Y)}var Q=z.meta||{};if(this.bC)try{this.bC(Q)}catch(x){}if(R)try{R(Q)}catch(x){}R=[Q];Z.V.push(3);Z.W[3]=R;var L=x8f();if(L.W){var K=L.W.url||"";Z.V.push(4);Z.W[4]=DQ("top",K)}var l={url:L.V.url||""};if(L.V.url){var W=g.Fd(L.V.url);var G=TP(W[1],null,W[3],W[4])}else G="";K=[l,{url:G}];Z.V.push(5); Z.W[5]=K;SLf(this.V,C,Z,v)}catch(x){try{SLf(this.V,C,{context:"ecmserr",rctx:N,msg:xs(x),url:L&&L.V.url},v)}catch(e){}}return this.sj}; g.y(Gp,ESf);var lm,WH,KT=new QC;lm=new function(){var N="https:";Kt&&Kt.location&&Kt.location.protocol==="http:"&&(N="http:");this.W=N;this.V=.01}; WH=new btu;Kt&&Kt.document&&(Kt.document.readyState=="complete"?Otx():KT.V&&yX(Kt,"load",function(){Otx()}));var r9u=Date.now(),Tp=-1,dv=-1,agm,FM=-1,sV=!1;g.J=nT.prototype;g.J.getHeight=function(){return this.bottom-this.top}; g.J.clone=function(){return new nT(this.top,this.right,this.bottom,this.left)}; g.J.contains=function(N){return this&&N?N instanceof nT?N.left>=this.left&&N.right<=this.right&&N.top>=this.top&&N.bottom<=this.bottom:N.x>=this.left&&N.x<=this.right&&N.y>=this.top&&N.y<=this.bottom:!1}; g.J.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.J.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.J.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.J.translate=function(N,z){N instanceof g.gL?(this.left+=N.x,this.right+=N.x,this.top+=N.y,this.bottom+=N.y):(this.left+=N,this.right+=N,typeof z==="number"&&(this.top+=z,this.bottom+=z));return this}; g.J.scale=function(N,z){z=typeof z==="number"?z:N;this.left*=N;this.right*=N;this.top*=z;this.bottom*=z;return this};UV.prototype.equals=function(N,z){return!!N&&(!(z===void 0?0:z)||this.volume==N.volume)&&this.Z==N.Z&&$s(this.V,N.V)&&!0};BH.prototype.Nu=function(){return this.L}; BH.prototype.equals=function(N,z){return this.N.equals(N.N,z===void 0?!1:z)&&this.L==N.L&&$s(this.Z,N.Z)&&$s(this.G,N.G)&&this.V==N.V&&this.B==N.B&&this.W==N.W&&this.Y==N.Y};var alW={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},MW={dX:"start",SU:"firstquartile",W0:"midpoint",tv:"thirdquartile",COMPLETE:"complete",ERROR:"error",VC:"metric",PAUSE:"pause",Kl:"resume",RX:"skip",B0:"viewable_impression",Av:"mute",H0:"unmute",l5:"fullscreen",u5:"exitfullscreen",s1:"bufferstart",Hj:"bufferfinish",hf:"fully_viewable_audible_half_duration_impression",qW:"measurable_impression",N0:"abandon",FO:"engagedview",yK:"impression",XO:"creativeview",aX:"loaded", q5p:"progress",CLOSE:"close",fOT:"collapse",x4p:"overlay_resize",fGl:"overlay_unmeasurable_impression",YAp:"overlay_unviewable_impression",jBO:"overlay_viewable_immediate_impression",D4O:"overlay_viewable_end_of_session_impression",Lz:"custom_metric_viewable",GJ:"audio_audible",cj:"audio_measurable",tf:"audio_impression"},f8v="start firstquartile midpoint thirdquartile resume loaded".split(" "),dj_=["start","firstquartile","midpoint","thirdquartile"],LLm=["abandon"],yR={UNKNOWN:-1,dX:0,SU:1,W0:2, tv:3,COMPLETE:4,VC:5,PAUSE:6,Kl:7,RX:8,B0:9,Av:10,H0:11,l5:12,u5:13,hf:14,qW:15,N0:16,FO:17,yK:18,XO:19,aX:20,Lz:21,s1:22,Hj:23,tf:27,cj:28,GJ:29};var c9Y={CE1:"addEventListener",Dao:"getMaxSize",jqL:"getScreenSize",ma8:"getState",Qq1:"getVersion",eop:"removeEventListener",YbT:"isViewable"};g.J=g.ks.prototype;g.J.clone=function(){return new g.ks(this.left,this.top,this.width,this.height)}; g.J.contains=function(N){return N instanceof g.gL?N.x>=this.left&&N.x<=this.left+this.width&&N.y>=this.top&&N.y<=this.top+this.height:this.left<=N.left&&this.left+this.width>=N.left+N.width&&this.top<=N.top&&this.top+this.height>=N.top+N.height}; g.J.getSize=function(){return new g.kQ(this.width,this.height)}; g.J.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.J.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.J.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.J.translate=function(N,z){N instanceof g.gL?(this.left+=N.x,this.top+=N.y):(this.left+=N,typeof z==="number"&&(this.top+=z));return this}; g.J.scale=function(N,z){z=typeof z==="number"?z:N;this.left*=N;this.width*=N;this.top*=z;this.height*=z;return this};var NG2={};asU.prototype.update=function(N){N&&N.document&&(this.L=pT(!1,N,this.isMobileDevice),this.V=pT(!0,N,this.isMobileDevice),LDU(this,N),Q12(this,N))};vT.prototype.cancel=function(){cV().clearTimeout(this.V);this.V=null}; vT.prototype.schedule=function(){var N=this,z=cV(),v=im().V.V;this.V=z.setTimeout(Ys(v,JJ(143,function(){N.W++;N.Z.sample()})),udU())};g.J=R6.prototype;g.J.aS=function(){return!1}; g.J.initialize=function(){return this.isInitialized=!0}; g.J.fF=function(){return this.V.Rd}; g.J.Ac=function(){return this.V.qd}; g.J.So=function(N,z){if(!this.qd||(z===void 0?0:z))this.qd=!0,this.Rd=N,this.Y=0,this.V!=this||ZH(this)}; g.J.getName=function(){return this.V.BL}; g.J.xZ=function(){return this.V.Kk()}; g.J.Kk=function(){return{}}; g.J.mF=function(){return this.V.Y}; g.J.dn=function(){var N=wv();N.V=pT(!0,this.Z,N.isMobileDevice)}; g.J.t8=function(){Q12(wv(),this.Z)}; g.J.uN=function(){return this.N.V}; g.J.sample=function(){}; g.J.isActive=function(){return this.V.G}; g.J.iP=function(N){var z=this.V;this.V=N.mF()>=this.Y?N:this;z!==this.V?(this.G=this.V.G,ZH(this)):this.G!==this.V.G&&(this.G=this.V.G,ZH(this))}; g.J.nE=function(N){if(N.W===this.V){var z=!this.N.equals(N,this.J);this.N=N;z&&Kg7(this)}}; g.J.j5=function(){return this.J}; g.J.dispose=function(){this.K0=!0}; g.J.HL=function(){return this.K0};g.J=YK.prototype;g.J.observe=function(){return!0}; g.J.unobserve=function(){}; g.J.Cs=function(N){this.B=N}; g.J.dispose=function(){if(!this.HL()){var N=this.W;g.fm(N.B,this);N.J&&this.j5()&&lsO(N);this.unobserve();this.PL=!0}}; g.J.HL=function(){return this.PL}; g.J.xZ=function(){return this.W.xZ()}; g.J.mF=function(){return this.W.mF()}; g.J.fF=function(){return this.W.fF()}; g.J.Ac=function(){return this.W.Ac()}; g.J.iP=function(){}; g.J.nE=function(){this.Gq()}; g.J.j5=function(){return this.K0};g.J=i_.prototype;g.J.mF=function(){return this.V.mF()}; g.J.fF=function(){return this.V.fF()}; g.J.Ac=function(){return this.V.Ac()}; g.J.create=function(N,z,v){var R=null;this.V&&(R=this.dV(N,z,v),Cc(this.V,R));return R}; g.J.IW=function(){return this.qk()}; g.J.qk=function(){return!1}; g.J.init=function(N){return this.V.initialize()?(Cc(this.V,this),this.N=N,!0):!1}; g.J.iP=function(N){N.mF()==0&&this.N(N.fF(),this)}; g.J.nE=function(){}; g.J.j5=function(){return!1}; g.J.dispose=function(){this.B=!0}; g.J.HL=function(){return this.B}; g.J.xZ=function(){return{}};jN.prototype.add=function(N,z,v){++this.Z;N=new Wgm(N,z,v);this.V.push(new Wgm(N.W,N.V,N.Z+this.Z/4096));this.W=!0;return this};yEm.prototype.toString=function(){var N="//pagead2.googlesyndication.com//pagead/gen_204",z=Q8(this.V);z.length>0&&(N+="?"+z);return N};g.H.prototype.V8=!1;g.H.prototype.HL=function(){return this.V8}; g.H.prototype.dispose=function(){this.V8||(this.V8=!0,this.AO())}; g.H.prototype[Symbol.dispose]=function(){this.dispose()}; g.H.prototype.addOnDisposeCallback=function(N,z){this.V8?z!==void 0?N.call(z):N():(this.M3||(this.M3=[]),z&&(N=N.bind(z)),this.M3.push(N))}; g.H.prototype.AO=function(){if(this.M3)for(;this.M3.length;)this.M3.shift()()};l_.prototype.update=function(N,z,v){N&&(this.V+=z,this.W+=z,this.N+=z,this.Z=Math.max(this.Z,this.N));if(v===void 0?!N:v)this.N=0};var Fgu=[1,.75,.5,.3,0];WT.prototype.update=function(N,z,v,R,C,Z){Z=Z===void 0?!0:Z;z=C?Math.min(N,z):z;for(C=0;C0&&z>=Y;Y=!(N>0&&N>=Y)||v;this.V[C].update(Z&&Q,R,!Z||Y)}};fc.prototype.update=function(N,z,v,R){this.L=this.L!=-1?Math.min(this.L,z.Xv):z.Xv;this.Vp=Math.max(this.Vp,z.Xv);this.PL=this.PL!=-1?Math.min(this.PL,z.Yz):z.Yz;this.Rd=Math.max(this.Rd,z.Yz);this.kJ.update(z.Yz,v.Yz,z.V,N,R);this.tO+=N;z.Xv===0&&(this.BL+=N);this.W.update(z.Xv,v.Xv,z.V,N,R);v=R||v.gk!=z.gk?v.isVisible()&&z.isVisible():v.isVisible();z=!z.isVisible()||z.V;this.S8.update(v,N,z)}; fc.prototype.Wv=function(){return this.S8.Z>=this.ET};if(NW&&NW.URL){var QwP=NW.URL,L78;if(L78=!!QwP){var K7P;a:{if(QwP){var llE=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var jw=llE.exec(decodeURIComponent(QwP));if(jw){K7P=jw[1]&&jw[1].length>1?jw[1].substring(1):"true";break a}}catch(N){}}K7P=""}L78=K7P.length>0}WH.sj=!L78};var W7V=new nT(0,0,0,0);var pGu=new nT(0,0,0,0);g.y(mA,g.H);g.J=mA.prototype; g.J.AO=function(){if(this.qE.V){if(this.I7.gf){var N=this.qE.V;typeof N.removeEventListener==="function"&&N.removeEventListener("mouseover",this.I7.gf,J9());this.I7.gf=null}this.I7.kh&&(N=this.qE.V,typeof N.removeEventListener==="function"&&N.removeEventListener("mouseout",this.I7.kh,J9()),this.I7.kh=null)}this.U4&&this.U4.dispose();this.uO&&this.uO.dispose();delete this.GT;delete this.jT;delete this.mL;delete this.qE.R9;delete this.qE.V;delete this.I7;delete this.U4;delete this.uO;delete this.ZV; g.H.prototype.AO.call(this)}; g.J.YZ=function(){return this.uO?this.uO.V:this.position}; g.J.I0=function(N){im().I0(N)}; g.J.j5=function(){return!1}; g.J.KZ=function(){return new fc}; g.J.Zt=function(){return this.GT}; g.J.c_=function(N){return SkO(this,N,1E4)}; g.J.FW=function(N,z,v,R,C,Z,Y){this.qM||(this.GR&&(N=this.Il(N,v,C,Y),R=R&&this.a4.Xv>=(this.gk()?.3:.5),this.VZ(Z,N,R),this.GS=z,N.Xv>0&&-1===this.CQ&&(this.CQ=z),this.pQ==-1&&this.Wv()&&(this.pQ=z),this.xR==-2&&(this.xR=FO(this.YZ())?N.Xv:-1),this.a4=N),this.jT(this))}; g.J.VZ=function(N,z,v){this.Zt().update(N,z,this.a4,v)}; g.J.Ra=function(){return new ow}; g.J.Il=function(N,z,v,R){v=this.Ra();v.V=z;z=cV().W;z=ft(NW)===0?-1:z.isVisible()?0:1;v.W=z;v.Xv=this.Ea(N);v.gk=this.gk();v.Yz=R;return v}; g.J.Ea=function(N){return this.opacity===0&&lh(this.ZV,"opac")===1?0:N}; g.J.gk=function(){return!1}; g.J.MY=function(){return this.IV||this.BA}; g.J.X3=function(){fT()}; g.J.Es=function(){fT()}; g.J.Vv=function(){return 0}; g.J.Wv=function(){return this.GT.Wv()}; g.J.hh=function(){var N=this.GR;N=(this.hasCompleted||this.HL())&&!N;var z=im().W!==2||this.FvS;return this.qM||z&&N?2:this.Wv()?4:3}; g.J.k_=function(){return 0};g.UJ.prototype.next=function(){return g.aT}; g.aT={done:!0,value:void 0};g.UJ.prototype.O5=function(){return this};g.y(byU,ow);var Qw=OyU([void 0,1,2,3,4,8,16]),Ld=OyU([void 0,4,8,16]),G17={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pc("p0",Ld),p1:pc("p1",Ld),p2:pc("p2",Ld),p3:pc("p3",Ld),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:gP("mtos1",[0,2,4],!1,Ld),mtos2:gP("mtos2",[0,2,4],!1,Ld),mtos3:gP("mtos3",[0,2,4],!1,Ld),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pc("a0",Ld),a1:pc("a1",Ld),a2:pc("a2",Ld),a3:pc("a3",Ld),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:pc("c0",Ld),c1:pc("c1",Ld),c2:pc("c2",Ld),c3:pc("c3",Ld),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pc("qmtos",Qw),qnc:pc("qnc",Qw),qmv:pc("qmv",Qw),qnv:pc("qnv",Qw), 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:pc("ss0",Ld),ss1:pc("ss1",Ld),ss2:pc("ss2",Ld),ss3:pc("ss3",Ld),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"},xP5=Object.assign({},G17,{avid:lK("audio"),avas:"avas",vs:"vs"}),e9m={atos:"atos",avt:gP("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(N,z){return function(v){return v[N]===void 0&&z!==void 0?z:v[N]}}("ss",0), t:"t"};SN.prototype.getValue=function(){return this.W}; SN.prototype.update=function(N,z){N>=32||(this.V&1<=.5;qj(z.volume)&&(this.N=this.N!=-1?Math.min(this.N,z.volume):z.volume,this.G=Math.max(this.G,z.volume));Z&&(this.K0+=N,this.J+=C?N:0);this.V.update(z.Xv,v.Xv,z.V,N,R,C);this.Z.update(!0,N);this.B.update(C,N);this.qd.update(v.fullscreen,N);this.gW.update(C&&!Z,N);N=Math.floor(z.mediaTime/1E3);this.Id.update(N,z.isVisible());this.xT.update(N,z.Xv>=1);this.vL.update(N, AF(z))}};qk_.prototype.W=function(N){this.Z||(this.V(N)?(N=jBb(this.J,this.N,N),this.B|=N,N=N==0):N=!1,this.Z=N)};g.y(HT,qk_);HT.prototype.V=function(){return!0}; HT.prototype.G=function(){return!1}; HT.prototype.getId=function(){var N=this,z=MP(MW,function(v){return v==N.N}); return yR[z].toString()}; HT.prototype.toString=function(){var N="";this.G()&&(N+="c");this.Z&&(N+="s");this.B>0&&(N+=":"+this.B);return this.getId()+N};g.y(DH,HT);DH.prototype.W=function(N,z){z=z===void 0?null:z;z!=null&&this.L.push(z);HT.prototype.W.call(this,N)};g.y(b_,M9u);b_.prototype.W=function(){return null}; b_.prototype.Z=function(){return[]};g.y(tF,YK);g.J=tF.prototype;g.J.Mx=function(){if(this.element){var N=this.element,z=this.W.V.Z;try{try{var v=YWv(N.getBoundingClientRect())}catch(K){v=new nT(0,0,0,0)}var R=v.right-v.left,C=v.bottom-v.top,Z=Ryb(N,z),Y=Z.x,Q=Z.y;var L=new nT(Math.round(Q),Math.round(Y+R),Math.round(Q+C),Math.round(Y))}catch(K){L=W7V.clone()}this.Z=L;this.V=lWO(this,this.Z)}}; g.J.V9=function(){this.G=this.W.N.V}; g.J.F2=function(N){var z=lh(this.ZV,"od")==1;return gRu(N,this.G,this.element,z)}; g.J.Wa=function(){this.timestamp=fT()}; g.J.Gq=function(){this.Wa();this.Mx();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var N=this.element;var z=new g.kQ(N.videoWidth,N.videoHeight);N=this.V;var v=mk(N),R=N.getHeight(),C=z.width;z=z.height;C<=0||z<=0||v<=0||R<=0||(C/=z,z=v/R,N=N.clone(),C>z?(v/=C,R=(R-v)/2,R>0&&(R=N.top+R,N.top=Math.round(R),N.bottom=Math.round(R+v))):(R*=C,v=Math.round((v-R)/2),v>0&&(v=N.left+v,N.left=Math.round(v),N.right=Math.round(v+R))));this.V=N}this.V9(); N=this.V;v=this.G;N=N.left<=v.right&&v.left<=N.right&&N.top<=v.bottom&&v.top<=N.bottom?new nT(Math.max(N.top,v.top),Math.min(N.right,v.right),Math.min(N.bottom,v.bottom),Math.max(N.left,v.left)):new nT(0,0,0,0);v=N.top>=N.bottom||N.left>=N.right?new nT(0,0,0,0):N;N=this.W.N;z=C=R=0;if((this.V.bottom-this.V.top)*(this.V.right-this.V.left)>0)if(this.F2(v))v=new nT(0,0,0,0);else{R=wv().N;z=new nT(0,R.height,R.width,0);var Z;R=nc(v,(Z=this.B)!=null?Z:this.V);C=nc(v,wv().V);z=nc(v,z)}Z=v.top>=v.bottom|| v.left>=v.right?new nT(0,0,0,0):v.translate(-this.V.left,-this.V.top);zc()||(C=R=0);this.J=new BH(N,this.element,this.V,Z,R,C,this.timestamp,z)}; g.J.getName=function(){return this.W.getName()};var J8U=new nT(0,0,0,0);g.y(OJ,tF);g.J=OJ.prototype;g.J.observe=function(){this.N();return!0}; g.J.nE=function(){tF.prototype.Gq.call(this)}; g.J.Wa=function(){}; g.J.Mx=function(){}; g.J.Gq=function(){this.N();tF.prototype.Gq.call(this)}; g.J.iP=function(N){N=N.isActive();N!==this.Y&&(N?this.N():(wv().V=new nT(0,0,0,0),this.V=new nT(0,0,0,0),this.G=new nT(0,0,0,0),this.timestamp=-1));this.Y=N};var Kd={},jLf=(Kd.firstquartile=0,Kd.midpoint=1,Kd.thirdquartile=2,Kd.complete=3,Kd);g.y(XO,mA);g.J=XO.prototype;g.J.j5=function(){return!0}; g.J.Js=function(){return this.H2==2}; g.J.c_=function(N){return SkO(this,N,Math.max(1E4,this.Z/3))}; g.J.FW=function(N,z,v,R,C,Z,Y){var Q=this,L=this.L(this)||{};g.CI(L,C);this.Z=L.duration||this.Z;this.J=L.isVpaid||this.J;this.BL=L.isYouTube||this.BL;cV();this.kJ=!1;C=NTO(this,z);wGu(this)===1&&(Z=C);mA.prototype.FW.call(this,N,z,v,R,L,Z,Y);this.z3&&this.z3.Z&&g.h8(this.G,function(K){K.W(Q)})}; g.J.VZ=function(N,z,v){mA.prototype.VZ.call(this,N,z,v);cT(this).update(N,z,this.a4,v);this.ET=AF(this.a4)&&AF(z);this.Rd==-1&&this.xT&&(this.Rd=this.Zt().Z.V);this.SN.Z=0;N=this.Wv();z.isVisible()&&V8(this.SN,"vs");N&&V8(this.SN,"vw");qj(z.volume)&&V8(this.SN,"am");AF(z)?V8(this.SN,"a"):V8(this.SN,"mut");this.r8&&V8(this.SN,"f");z.W!=-1&&(V8(this.SN,"bm"),z.W==1&&(V8(this.SN,"b"),AF(z)&&V8(this.SN,"umutb")));AF(z)&&z.isVisible()&&V8(this.SN,"avs");this.ET&&N&&V8(this.SN,"avw");z.Xv>0&&V8(this.SN, "pv");qW(this,this.Zt().Z.V,!0)&&V8(this.SN,"gdr");JF(this.Zt().W,1)>=2E3&&V8(this.SN,"pmx");this.kJ&&V8(this.SN,"tvoff")}; g.J.KZ=function(){return new EJ}; g.J.Zt=function(){return this.GT}; g.J.Ra=function(){return new byU}; g.J.Il=function(N,z,v,R){N=mA.prototype.Il.call(this,N,z,v,R===void 0?-1:R);N.fullscreen=this.r8;N.paused=this.Js();N.volume=v.volume;qj(N.volume)||(this.A0++,z=this.a4,qj(z.volume)&&(N.volume=z.volume));v=v.currentTime;N.mediaTime=v!==void 0&&v>=0?v:-1;return N}; g.J.Ea=function(N){return wv(),this.r8?1:mA.prototype.Ea.call(this,N)}; g.J.Vv=function(){return 1}; g.J.getDuration=function(){return this.Z}; g.J.hh=function(){return this.qM?2:vnY(this)?5:this.Wv()?4:3}; g.J.k_=function(){return this.gW?this.Zt().B.Z>=2E3?4:3:2}; g.J.Cs=function(N){this.uO&&this.uO.Cs(N)};var y8Z=g.jV();yOU.prototype.reset=function(){this.V=[];this.W=[]}; var R8=rS(yOU);g.y(i9,i_);g.J=i9.prototype;g.J.getName=function(){return(this.W?this.W:this.V).getName()}; g.J.xZ=function(){return(this.W?this.W:this.V).xZ()}; g.J.mF=function(){return(this.W?this.W:this.V).mF()}; g.J.init=function(N){var z=!1;(0,g.h8)(this.Z,function(v){v.initialize()&&(z=!0)}); z&&(this.N=N,Cc(this.V,this));return z}; g.J.dispose=function(){(0,g.h8)(this.Z,function(N){N.dispose()}); i_.prototype.dispose.call(this)}; g.J.IW=function(){return Mj(this.Z,function(N){return N.aS()})}; g.J.qk=function(){return Mj(this.Z,function(N){return N.aS()})}; g.J.dV=function(N,z,v){return new tF(N,this.V,z,v)}; g.J.nE=function(N){this.W=N.W};var UUu={threshold:[0,.3,.5,.75,1]};g.y(j6,tF);g.J=j6.prototype;g.J.observe=function(){var N=this;this.Vp||(this.Vp=fT());if(XVu(298,function(){return BTO(N)}))return!0; this.W.So("msf");return!1}; g.J.unobserve=function(){if(this.N&&this.element)try{this.N.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.L&&(this.L.disconnect(),this.L=null)}catch(N){}}; g.J.Gq=function(){var N=a8(this);N.length>0&&QR(this,N);tF.prototype.Gq.call(this)}; g.J.Mx=function(){}; g.J.F2=function(){return!1}; g.J.V9=function(){}; g.J.xZ=function(){var N={};return Object.assign(this.W.xZ(),(N.niot_obs=this.Vp,N.niot_cbk=this.qd,N))}; g.J.getName=function(){return"nio"};g.y(L5,i_);L5.prototype.getName=function(){return"nio"}; L5.prototype.qk=function(){return!wv().W&&this.V.V.Z.IntersectionObserver!=null}; L5.prototype.dV=function(N,z,v){return new j6(N,this.V,z,v)};g.y(K5,R6);K5.prototype.uN=function(){return wv().V}; K5.prototype.aS=function(){var N=gnU();this.Y!==N&&(this.V!=this&&N>this.V.Y&&(this.V=this,ZH(this)),this.Y=N);return N==2};l9.prototype.sample=function(){x3(this,C5(),!1)}; l9.prototype.N=function(){var N=zc(),z=fT();N?(sV||(Tp=z,g.h8(R8.V,function(v){var R=v.Zt();R.UT=hF(R,z,v.H2!=1)})),sV=!0):(this.L=SiK(this,z),sV=!1,agm=z,g.h8(R8.V,function(v){v.GR&&(v.Zt().Y=z)})); x3(this,C5(),!N)}; var Wq=rS(l9);var hpu=null,Hq="",hv=!1;var DUb=on_().j1,Jv=on_().QF;var O4v={un8:"visible",OO0:"audible",gw8:"time",aWo:"timetype"},Igu={visible:function(N){return/^(100|[0-9]{1,2})$/.test(N)}, audible:function(N){return N=="0"||N=="1"}, timetype:function(N){return N=="mtos"||N=="tos"}, time:function(N){return/^(100|[0-9]{1,2})%$/.test(N)||/^([0-9])+ms$/.test(N)}}; tpu.prototype.setTime=function(N,z,v){z=="ms"?(this.Z=N,this.N=-1):(this.Z=-1,this.N=N);this.B=v===void 0?"tos":v;return this};g.y(sp,HT);sp.prototype.getId=function(){return this.L}; sp.prototype.G=function(){return!0}; sp.prototype.V=function(N){var z=N.Zt(),v=N.getDuration();return Mj(this.Y,function(R){if(R.V!=void 0)var C=rOK(R,z);else b:{switch(R.B){case "mtos":C=R.W?z.B.Z:z.Z.V;break b;case "tos":C=R.W?z.B.V:z.Z.V;break b}C=0}C==0?R=!1:(R=R.Z!=-1?R.Z:v!==void 0&&v>0?R.N*v:-1,R=R!=-1&&C>=R);return R})};g.y(Tn,XGI);Tn.prototype.V=function(N){var z=new IWu;z.V=PT(N,G17);z.W=PT(N,e9m);return z};g.y(F4,HT);F4.prototype.V=function(N){return vnY(N)};g.y(n5,M9u);g.y(m$,HT);m$.prototype.V=function(N){return N.Zt().Wv()};g.y($3,DH);$3.prototype.V=function(N){var z=g.J8(this.L,lh(im().ZV,"ovms"));return!N.qM&&(N.H2!=0||z)};g.y(Up,n5);Up.prototype.W=function(){return new $3(this.V)}; Up.prototype.Z=function(){return[new m$("viewable_impression",this.V),new F4(this.V)]};g.y(Bq,OJ);Bq.prototype.N=function(){var N=g.qx("ima.admob.getViewability"),z=lh(this.ZV,"queryid");typeof N==="function"&&z&&N(z)}; Bq.prototype.getName=function(){return"gsv"};g.y(Av,i_);Av.prototype.getName=function(){return"gsv"}; Av.prototype.qk=function(){var N=wv();im();return N.W&&!1}; Av.prototype.dV=function(N,z,v){return new Bq(this.V,z,v)};g.y(gy,OJ);gy.prototype.N=function(){var N=this,z=g.qx("ima.bridge.getNativeViewability"),v=lh(this.ZV,"queryid");typeof z==="function"&&v&&z(v,function(R){g.wE(R)&&N.L++;var C=R.opt_nativeViewVisibleBounds||{},Z=R.opt_nativeViewHidden;N.V=iUO(R.opt_nativeViewBounds||{});var Y=N.W.N;Y.V=Z?J8U.clone():iUO(C);N.timestamp=R.opt_nativeTime||-1;wv().V=Y.V;R=R.opt_nativeVolume;R!==void 0&&(Y.volume=R)})}; gy.prototype.getName=function(){return"nis"};g.y(p5,i_);p5.prototype.getName=function(){return"nis"}; p5.prototype.qk=function(){var N=wv();im();return N.W&&!1}; p5.prototype.dV=function(N,z,v){return new gy(this.V,z,v)};g.y(k3,R6);g.J=k3.prototype;g.J.aS=function(){return this.W.kd!=null}; g.J.Kk=function(){var N={};this.Id&&(N.mraid=this.Id);this.PL&&(N.mlc=1);N.mtop=this.W.oA0;this.L&&(N.mse=this.L);this.tO&&(N.msc=1);N.mcp=this.W.compatibility;return N}; g.J.Ja=function(N){var z=g.SI.apply(1,arguments);try{return this.W.kd[N].apply(this.W.kd,z)}catch(v){yC(538,v,.01,function(R){R.method=N})}}; g.J.initialize=function(){var N=this;if(this.isInitialized)return!this.Ac();this.isInitialized=!0;if(this.W.compatibility===2)return this.L="ng",this.So("w"),!1;if(this.W.compatibility===1)return this.L="mm",this.So("w"),!1;wv().Y=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?Mpv(this):sJ(this.Z,"load",function(){cV().setTimeout(JJ(292,function(){return Mpv(N)}),100)},292); return!0}; g.J.dn=function(){var N=wv(),z=R5f(this,"getMaxSize");N.V=new nT(0,z.width,z.height,0)}; g.J.t8=function(){wv().N=R5f(this,"getScreenSize")}; g.J.dispose=function(){Nvu(this);R6.prototype.dispose.call(this)};var A9u=new function(N,z){this.key=N;this.defaultValue=z===void 0?!1:z;this.valueType="boolean"}("45378663");g.J=VR.prototype;g.J.XG=function(N){$K(N,!1);TT_(N)}; g.J.Mq=function(){}; g.J.TV=function(N,z,v,R){var C=this;N=new XO(Kt,N,v?z:-1,7,this.Vz(),this.Mc());N.TI=R;HO_(N.ZV);KI(N.ZV,"queryid",N.TI);N.I0("");HyI(N,function(){return C.mq.apply(C,g.U(g.SI.apply(0,arguments)))},function(){return C.Jm.apply(C,g.U(g.SI.apply(0,arguments)))}); (R=rS(Zx).V)&&V9b(N,R);this.Z&&(N.Cs(this.Z),this.Z=null);N.qE.R9&&rS(pox);return N}; g.J.iP=function(N){switch(N.mF()){case 0:if(N=rS(Zx).V)N=N.V,g.fm(N.B,this),N.J&&this.j5()&&lsO(N);Ep();break;case 2:Gn()}}; g.J.nE=function(){}; g.J.j5=function(){return!1}; g.J.Jm=function(N,z){N.qM=!0;switch(N.Vv()){case 1:a8m(N,z);break;case 2:this.ul(N)}}; g.J.WA=function(N){var z=N.L(N);z&&(z=z.volume,N.gW=qj(z)&&z>0);Z47(N,0);return wP(N,"start",zc())}; g.J.bu=function(N,z,v){x3(Wq,[N],!zc());return this.WS(N,z,v)}; g.J.WS=function(N,z,v){return wP(N,v,zc())}; g.J.kX=function(N){return ry(N,"firstquartile",1)}; g.J.aV=function(N){N.xT=!0;return ry(N,"midpoint",2)}; g.J.Or=function(N){return ry(N,"thirdquartile",3)}; g.J.nY=function(N){var z=ry(N,"complete",4);rP(N);return z}; g.J.iZ=function(N){N.H2=3;return wP(N,"error",zc())}; g.J.d1=function(N,z,v){z=zc();if(N.Js()&&!z){var R=N.Zt(),C=fT();R.Y=C}x3(Wq,[N],!z);N.Js()&&(N.H2=1);return wP(N,v,z)}; g.J.V_=function(N,z){z=this.bu(N,z||{},"skip");rP(N);return z}; g.J.g4=function(N,z){$K(N,!0);return this.bu(N,z||{},"fullscreen")}; g.J.oV=function(N,z){$K(N,!1);return this.bu(N,z||{},"exitfullscreen")}; g.J.zw=function(N,z,v){z=N.Zt();var R=fT();z.UT=hF(z,R,N.H2!=1);x3(Wq,[N],!zc());N.H2==1&&(N.H2=2);return wP(N,v,zc())}; g.J.qI=function(N){x3(Wq,[N],!zc());return N.W()}; g.J.Dz=function(N){x3(Wq,[N],!zc());this.PF(N);rP(N);return N.W()}; g.J.mq=function(){}; g.J.ul=function(){}; g.J.PF=function(){}; g.J.pn=function(){}; g.J.WC=function(){}; g.J.Mc=function(){this.V||(this.V=this.WC());return this.V==null?new b_:new Up(this.V)}; g.J.Vz=function(){return new Tn};g.y(u9,HT);u9.prototype.V=function(N){return N.k_()==4};g.y(cq,DH);cq.prototype.V=function(N){N=N.k_();return N==3||N==4};g.y(qH,n5);qH.prototype.W=function(){return new cq(this.V)}; qH.prototype.Z=function(){return[new u9(this.V)]};g.y(MH,XGI);MH.prototype.V=function(N){N&&(N.e===28&&(N=Object.assign({},N,{avas:3})),N.vs===4||N.vs===5)&&(N=Object.assign({},N,{vs:3}));var z=new IWu;z.V=PT(N,xP5);z.W=PT(N,e9m);return z};l8O.prototype.W=function(){return g.qx(this.V)};g.y(wy,VR);g.J=wy.prototype;g.J.Mq=function(N,z){var v=this,R=rS(Zx);if(Y3(R))switch(R.V.getName()){case "nis":var C=e5v(this,N,z);break;case "gsv":C=xjf(this,N,z);break;case "exc":C=JJu(this,N)}C||(z.opt_overlayAdElement?C=void 0:z.opt_adElement&&(C=Lkv(this,N,z.opt_adElement,z.opt_osdId)));C&&C.Vv()==1&&(C.L==g.WV&&(C.L=function(Z){return v.pn(Z)}),Gpu(this,C,z)); return C}; g.J.pn=function(N){N.W=0;N.K0=0;if(N.N=="h"||N.N=="n"){im();N.vL&&(im(),Dx(this)!="h"&&Dx(this));var z=g.qx("ima.common.getVideoMetadata");if(typeof z==="function")try{var v=z(N.TI)}catch(C){N.W|=4}else N.W|=2}else if(N.N=="b")if(z=g.qx("ytads.bulleit.getVideoMetadata"),typeof z==="function")try{v=z(N.TI)}catch(C){N.W|=4}else N.W|=2;else if(N.N=="ml")if(z=g.qx("ima.common.getVideoMetadata"),typeof z==="function")try{v=z(N.TI)}catch(C){N.W|=4}else N.W|=2;else N.W|=1;N.W||(v===void 0?N.W|=8:v===null? N.W|=16:g.wE(v)?N.W|=32:v.errorCode!=null&&(N.K0=v.errorCode,N.W|=64));v==null&&(v={});z=v;N.Y=0;for(var R in alW)z[R]==null&&(N.Y|=alW[R]);Kkb(z,"currentTime");Kkb(z,"duration");qj(v.volume)&&qj()&&(v.volume*=NaN);return v}; g.J.WC=function(){im();Dx(this)!="h"&&Dx(this);var N=yJu(this);return N!=null?new l8O(N):null}; g.J.ul=function(N){!N.V&&N.qM&&b9(this,N,"overlay_unmeasurable_impression")&&(N.V=!0)}; g.J.PF=function(N){N.E0&&(N.Wv()?b9(this,N,"overlay_viewable_end_of_session_impression"):b9(this,N,"overlay_unviewable_impression"),N.E0=!1)}; g.J.mq=function(){}; g.J.TV=function(N,z,v,R){if(gS2()){var C=lh(im().ZV,"mm"),Z={};(C=(Z[jB.Cz]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",Z[jB.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",Z)[C])&&Tv7(this,C);this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&yC(1044,Error())}N=VR.prototype.TV.call(this,N,z,v,R);this.B&&(z=this.G,N.B==null&&(N.B=new oRO),z.V[N.TI]=N.B,N.B.B=y8Z);return N}; g.J.XG=function(N){N&&N.Vv()==1&&this.B&&delete this.G.V[N.TI];return VR.prototype.XG.call(this,N)}; g.J.Mc=function(){this.V||(this.V=this.WC());return this.V==null?new b_:this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new qH(this.V):new Up(this.V)}; g.J.Vz=function(){return this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new MH:new Tn}; g.J.Cs=function(N,z,v,R,C){z=new nT(v,z+R,v+C,z);(N=vq(R8,N))?N.Cs(z):this.Z=z}; var flU=eB(193,nsu,void 0,QB_);g.cU("Goog_AdSense_Lidar_sendVastEvent",flU);var dPW=JJ(194,function(N,z){z=z===void 0?{}:z;N=sB7(rS(wy),N,z);return Fkf(N)}); g.cU("Goog_AdSense_Lidar_getViewability",dPW);var swP=eB(195,function(){return FUf()}); g.cU("Goog_AdSense_Lidar_getUrlSignalsArray",swP);var TE5=JJ(196,function(){return JSON.stringify(FUf())}); g.cU("Goog_AdSense_Lidar_getUrlSignalsList",TE5);var Uj2=l7(["//ep2.adtrafficquality.google/sodar/",""]),BvO=l7(["//tpc.googlesyndication.com/sodar/",""]);g.y(RK,Error);g.y(Yj,g.H);Yj.prototype.xb=function(){return this.wpc.f()}; Yj.prototype.a$=function(N){this.wpc.c(N)}; Yj.prototype.I9=function(N){return this.wpc.m(kpx(N))}; Yj.prototype.gI=function(N){return this.wpc.mws(kpx(N))}; g.y(Ck,g.H);Ck.prototype.snapshot=function(N){return this.mQ.s(Object.assign({},N.GA&&{c:N.GA},N.HO&&{s:N.HO},N.BO!==void 0&&{p:N.BO}))}; Ck.prototype.Co=function(N){this.mQ.e(N)}; Ck.prototype.pW=function(){return this.mQ.l()};var HTU;g.y(jS,g.H);jS.prototype.share=function(){if(this.HL())throw Error("E:AD");this.N++;return this}; jS.prototype.dispose=function(){--this.N||g.H.prototype.dispose.call(this)}; HTU=Symbol.dispose;osb.prototype.DG=function(N,z){this.V.DG("/client_streamz/bg/frs",N,z)}; Djm.prototype.DG=function(N,z,v,R,C,Z){this.V.DG("/client_streamz/bg/wrl",N,z,v,R,C,Z)}; bT2.prototype.Sr=function(N,z){this.V.aU("/client_streamz/bg/ec",N,z)}; tB_.prototype.DG=function(N,z,v){this.V.DG("/client_streamz/bg/el",N,z,v)}; OTu.prototype.Sr=function(N,z){this.V.aU("/client_streamz/bg/cec",N,z)}; I8f.prototype.Sr=function(N,z){this.V.aU("/client_streamz/bg/po/csc",N,z)}; XH2.prototype.Sr=function(N,z){this.V.aU("/client_streamz/bg/po/ctav",N,z)}; rJu.prototype.Sr=function(N,z){this.V.aU("/client_streamz/bg/po/cwsc",N,z)};g.y(uMU,yL);g.y(Lk,yL);var xj=[1,2,3];var F7P=[0,xj,CW8,MIW,v5P];var n5U=[0,RT,[0,tIm,XU7]];g.y(Kk,yL);var Go=[1,2,3];var mP5=[0,Go,uK8,Iuw,Zp,n5U];g.y(lb,yL);var $PE=[0,RT,F7P,mP5];var UP$=[0,[1,2,3],Zp,[0,vp,-1,z9r],Zp,[0,vp,-1,cb$,z9r],Zp,[0,vp]];g.y(Wf,yL);Wf.prototype.YC=function(){var N=mg(this,3,cJ,3,!0);yF(N);return N[void 0]};Wf.prototype.W=mAu([0,vp,UP$,R9m,RT,$PE,wU9,NEE]);g.y(qVU,yL);g.J=eS.prototype;g.J.isEnabled=function(){if(!g.u7.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{vU:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.J.set=function(N,z,v){var R=!1;if(typeof v==="object"){var C=v.sjl;R=v.secure||!1;var Z=v.domain||void 0;var Y=v.path||void 0;var Q=v.vU}if(/[;=\s]/.test(N))throw Error('Invalid cookie name "'+N+'"');if(/[;\r\n]/.test(z))throw Error('Invalid cookie value "'+z+'"');Q===void 0&&(Q=-1);v=Z?";domain="+Z:"";Y=Y?";path="+Y:"";R=R?";secure":"";Q=Q<0?"":Q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Q*1E3)).toUTCString();this.V.cookie=N+"="+z+v+Y+Q+R+(C!=null?";samesite="+ C:"")}; g.J.get=function(N,z){for(var v=N+"=",R=(this.V.cookie||"").split(";"),C=0,Z;C=0;z--)this.remove(N[z])}; var kA=new eS(typeof document=="undefined"?null:document);ys.prototype.compress=function(N){var z,v,R,C;return g.S(function(Z){switch(Z.W){case 1:return z=new CompressionStream("gzip"),v=(new Response(z.readable)).arrayBuffer(),R=z.writable.getWriter(),g.k(Z,R.write((new TextEncoder).encode(N)),2);case 2:return g.k(Z,R.close(),3);case 3:return C=Uint8Array,g.k(Z,v,4);case 4:return Z.return(new C(Z.V))}})}; ys.prototype.isSupported=function(N){return N<1024?!1:typeof CompressionStream!=="undefined"};g.y(fk,yL);da.prototype.setInterval=function(N){this.intervalMs=N;this.hT&&this.enabled?(this.stop(),this.start()):this.hT&&this.stop()}; da.prototype.start=function(){var N=this;this.enabled=!0;this.hT||(this.hT=setTimeout(function(){N.tick()},this.intervalMs),this.W=this.V())}; da.prototype.stop=function(){this.enabled=!1;this.hT&&(clearTimeout(this.hT),this.hT=void 0)}; da.prototype.tick=function(){var N=this;if(this.enabled){var z=Math.max(this.V()-this.W,0);z0?v:void 0));v=d4(v,4,hD(C>0?C:void 0));v=d4(v,5,hD(Z>0?Z:void 0));C=v.Wb;Z=C[lw]|0;v=JD(v,Z)?v:new v.constructor(WG(C,Z));bY(Y,Fm,10,v)}Y=this.V.clone();v=Date.now().toString();Y=d4(Y,4,I1(v));N=tE(Y,Pf,3,N.slice());R&&(Y=new sA,R=d4(Y,13,hD(R)),Y=new To,R=bY(Y,sA,2,R),Y= new kj,R=bY(Y,To,1,R),R=NU(R,2,9),bY(N,kj,18,R));z&&qb(N,14,z);return N};g.h_.prototype.W=0;g.h_.prototype.reset=function(){this.V=this.Z=this.N;this.W=0}; g.h_.prototype.getValue=function(){return this.Z};g.y(vH,yL);var BE1=CT(vH);g.y(FRx,yL);var lZ=new nS_;g.y(bb,g.H);g.J=bb.prototype;g.J.AO=function(){DJ(this);this.W.stop();this.Id.stop();g.H.prototype.AO.call(this)}; g.J.dispatch=function(N){if(N instanceof Pf)this.log(N);else try{var z=new Pf,v=N.Jy();var R=Mb(z,8,v);this.log(R)}catch(C){t_(this,4,1)}}; g.J.log=function(N){t_(this,2,1);if(this.tO){N=N.clone();var z=this.S8++;N=qb(N,21,z);this.componentId&&Mb(N,26,this.componentId);z=N;var v=y2(z,1);var R=R===void 0?!1:R;var C=typeof v;R=v==null?v:C==="bigint"?String(bw(64,v)):EW(v)?C==="string"?Ds(v):R?tD(v):OW(v):void 0;R==null&&(R=Date.now(),R=Number.isFinite(R)?R.toString():"0",d4(z,1,I1(R)));R=y2(z,15);R!=null&&(typeof R==="bigint"?iY(R)?R=Number(R):(R=bw(64,R),R=iY(R)?Number(R):String(R)):R=EW(R)?typeof R==="number"?OW(R):Ds(R):void 0);R!=null|| qb(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(R=this.experimentIds.clone(),bY(z,fk,16,R));t_(this,1,1);z=this.V.length-1E3+1;z>0&&(this.V.splice(0,z),this.N+=z,t_(this,3,z));this.V.push(N);this.ZN||this.W.enabled||this.W.start()}}; g.J.flush=function(N,z){var v=this;if(this.V.length===0)N&&N();else if(this.Rd&&this.qd)this.Z.W=3,s6m(this);else{var R=Date.now();if(this.UT>R&&this.K00&&(v.K0=Date.now(),v.UT=v.K0+G);var d;G=aw(z0);KU&&G&&((d=x.Wb[G])==null?void 0:d[175237375])!=null&&r0m(Ab7,3);d=lZ.V?lZ.W(x,lZ.V,175237375,lZ.Z):lZ.W(x,175237375,null,lZ.Z);if(d=d===null?void 0:d)d=XB(d,1,-1),d!==-1&&(v.B=new g.h_(d<1?1:d,3E5,.1),v.W.setInterval(v.B.getValue()))}}N&& N();v.G=0},l=function(G,x){var e=od(Z,Pf,3); var d=Number(H9v(Z,14));g.Hf(v.B);v.W.setInterval(v.B.getValue());G===401&&Y&&(v.BL=Y);d&&(v.N+=d);x===void 0&&(x=v.isRetryable(G));x&&(v.V=e.concat(v.V),v.ZN||v.W.enabled||v.W.start());t_(v,7,1);z&&z("net-send-failed",G);++v.G},W=function(){v.network&&v.network.send(L,K,l)}; Q?Q.then(function(G){t_(v,5,C);L.requestHeaders["Content-Encoding"]="gzip";L.requestHeaders["Content-Type"]="application/binary";L.body=G;L.VW=2;W()},function(){t_(v,6,C); W()}):W()}}}}; g.J.isRetryable=function(N){return 500<=N&&N<600||N===401||N===0};OA.prototype.send=function(N,z,v){var R=this,C,Z,Y,Q,L,K,l,W,G,x;return g.S(function(e){switch(e.W){case 1:return Z=(C=R.Ll?new AbortController:void 0)?setTimeout(function(){C.abort()},N.timeoutMillis):void 0,g.d_(e,2,3),Y=Object.assign({},{method:N.requestType, headers:Object.assign({},N.requestHeaders)},N.body&&{body:N.body},N.withCredentials&&{credentials:"include"},{signal:N.timeoutMillis&&C?C.signal:null}),g.k(e,fetch(N.url,Y),5);case 5:Q=e.V;if(Q.status!==200){(L=v)==null||L(Q.status);e.Zp(3);break}if((K=z)==null){e.Zp(7);break}return g.k(e,Q.text(),8);case 8:K(e.V);case 7:case 3:g.Ab(e);clearTimeout(Z);g.pO(e,0);break;case 2:l=g.U2(e);switch((W=l)==null?void 0:W.name){case "AbortError":(G=v)==null||G(408);break;default:(x=v)==null||x(400)}e.Zp(3)}})}; OA.prototype.B4=function(){return 4};g.y(IK,g.H);IK.prototype.h3=function(){this.B=!0;return this}; IK.prototype.build=function(){this.network||(this.network=new OA);var N=new bb({logSource:this.logSource,Fw:this.Fw?this.Fw:j67,sessionIndex:this.sessionIndex,Jyd:this.HT,qz:this.N,ZN:!1,h3:this.B,o6:this.o6,network:this.network});g.b(this,N);if(this.W){var z=this.W,v=EA(N.Z);Mb(v,7,z)}N.L=new ys;this.componentId&&(N.componentId=this.componentId);this.JS&&(N.JS=this.JS);this.pageId&&(N.pageId=this.pageId);this.V&&((v=this.V)?(N.experimentIds||(N.experimentIds=new fk),z=N.experimentIds,v=v.Jy(),Mb(z, 4,v)):N.experimentIds&&d4(N.experimentIds,4));this.Z&&(N.Rd=N.qd);eVI(N.Z);this.network.CM&&this.network.CM(this.logSource);this.network.wHd&&this.network.wHd(N);return N};g.y(Xm,g.H);Xm.prototype.flush=function(N){N=N||[];if(N.length){for(var z=new qVU,v=[],R=0;R-1?(z=N[Y],v||(z.bV=!1)):(z=new AFU(z,this.src,Z,!!R,C),z.bV=v,N.push(z));return z}; g.J.remove=function(N,z,v,R){N=N.toString();if(!(N in this.listeners))return!1;var C=this.listeners[N];z=RZ(C,z,v,R);return z>-1?(Nn(C[z]),g.yU(C,z),C.length==0&&(delete this.listeners[N],this.V--),!0):!1}; g.J.removeAll=function(N){N=N&&N.toString();var z=0,v;for(v in this.listeners)if(!N||v==N){for(var R=this.listeners[v],C=0;C-1?N[C]:null}; g.J.hasListener=function(N,z){var v=N!==void 0,R=v?N.toString():"",C=z!==void 0;return g.OZ(this.listeners,function(Z){for(var Y=0;Y>>0);g.Lm(g.Ws,g.H);g.Ws.prototype[UWK]=!0;g.J=g.Ws.prototype;g.J.addEventListener=function(N,z,v,R){g.ZI(this,N,z,v,R)}; g.J.removeEventListener=function(N,z,v,R){EKv(this,N,z,v,R)}; g.J.dispatchEvent=function(N){var z=this.Wt;if(z){var v=[];for(var R=1;z;z=z.Wt)v.push(z),++R}z=this.u7;R=N.type||N;if(typeof N==="string")N=new g.q_(N,z);else if(N instanceof g.q_)N.target=N.target||z;else{var C=N;N=new g.q_(R,z);g.CI(N,C)}C=!0;var Z;if(v)for(Z=v.length-1;!N.W&&Z>=0;Z--){var Y=N.currentTarget=v[Z];C=G5(Y,R,!0,N)&&C}N.W||(Y=N.currentTarget=z,C=G5(Y,R,!0,N)&&C,N.W||(C=G5(Y,R,!1,N)&&C));if(v)for(Z=0;!N.W&&Z0){this.W--;var N=this.V;this.V=N.next;N.next=null}else N=this.Z();return N};var JL;fx.prototype.add=function(N,z){var v=tNf.get();v.set(N,z);this.W?this.W.next=v:this.V=v;this.W=v}; fx.prototype.remove=function(){var N=null;this.V&&(N=this.V,this.V=this.V.next,this.V||(this.W=null),N.next=null);return N}; var tNf=new x7(function(){return new dH},function(N){return N.reset()}); dH.prototype.set=function(N,z){this.V=N;this.scope=z;this.next=null}; dH.prototype.reset=function(){this.next=this.scope=this.V=null};var sl,T5=!1,DWu=new fx;Ocu.prototype.reset=function(){this.context=this.ME=this.hR=this.V=null;this.W=!1}; var IHb=new x7(function(){return new Ocu},function(N){N.reset()}); g.mG.prototype.then=function(N,z,v){return zPI(this,eG(typeof N==="function"?N:null),eG(typeof z==="function"?z:null),v)}; g.mG.prototype.$goog_Thenable=!0;g.J=g.mG.prototype;g.J.finally=function(N){var z=this;N=eG(N);return new Promise(function(v,R){cFU(z,function(C){N();v(C)},function(C){N(); R(C)})})}; g.J.YK=function(N,z){return zPI(this,null,eG(N),z)}; g.J.catch=g.mG.prototype.YK;g.J.cancel=function(N){if(this.V==0){var z=new SG(N);g.Fp(function(){qJm(this,z)},this)}}; g.J.xH1=function(N){this.V=0;nx(this,2,N)}; g.J.ff8=function(N){this.V=0;nx(this,3,N)}; g.J.pK=function(){for(var N;N=MNx(this);)wT7(this,N,this.V,this.L);this.G=!1}; var Z5v=wS;g.Lm(SG,Km);SG.prototype.name="cancel";g.Lm(g.El,g.Ws);g.J=g.El.prototype;g.J.enabled=!1;g.J.SK=null;g.J.setInterval=function(N){this.fO=N;this.SK&&this.enabled?(this.stop(),this.start()):this.SK&&this.stop()}; g.J.HUO=function(){if(this.enabled){var N=g.jV()-this.Qd;N>0&&N0&&(this.getStatus(),this.G=setTimeout(this.aZ.bind(this), this.qd)),this.getStatus(),this.J=!0,this.V.send(N),this.J=!1}catch(Y){this.getStatus(),fxK(this,Y)}}; g.J.aZ=function(){typeof rH!="undefined"&&this.V&&(this.N="Timed out after "+this.qd+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.J.abort=function(N){this.V&&this.Z&&(this.getStatus(),this.Z=!1,this.B=!0,this.V.abort(),this.B=!1,this.W=N||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Xp(this))}; g.J.AO=function(){this.V&&(this.Z&&(this.Z=!1,this.B=!0,this.V.abort(),this.B=!1),Xp(this,!0));g.IZ.gi.AO.call(this)}; g.J.ek=function(){this.HL()||(this.PL||this.J||this.B?dHf(this):this.Hbl())}; g.J.Hbl=function(){dHf(this)}; g.J.isActive=function(){return!!this.V}; g.J.isComplete=function(){return g.uX(this)==4}; g.J.getStatus=function(){try{return g.uX(this)>2?this.V.status:-1}catch(N){return-1}}; g.J.getResponseHeader=function(N){if(this.V&&this.isComplete())return N=this.V.getResponseHeader(N),N===null?void 0:N}; g.J.getLastError=function(){return typeof this.N==="string"?this.N:String(this.N)};Nm.prototype.send=function(N,z,v){z=z===void 0?function(){}:z; v=v===void 0?function(){}:v; JvU(N.url,function(R){R=R.target;cs(R)?z(g.qn(R)):v(R.getStatus())},N.requestType,N.body,N.requestHeaders,N.timeoutMillis,N.withCredentials)}; Nm.prototype.B4=function(){return 1};vw.prototype.done=function(){this.logger.tS(this.event,zB()-this.startTime)}; g.y(R9,jS);g.y(Zt,R9);g.J=Zt.prototype;g.J.mX=function(){}; g.J.cS=function(){}; g.J.tS=function(){}; g.J.IT=function(){}; g.J.Mz=function(){}; g.J.Qa=function(N,z,v,R){return R}; g.J.e6=function(){}; g.J.zT=function(){}; g.J.bD=function(){}; g.J.nW=function(){}; g.y(YC,R9);g.J=YC.prototype;g.J.update=function(N){this.logger.dispose();this.logger=N}; g.J.cS=function(N){this.logger.cS(N)}; g.J.tS=function(N,z){this.logger.tS(N,z)}; g.J.IT=function(N){this.logger.IT(N)}; g.J.Mz=function(){this.logger.Mz()}; g.J.Qa=function(N,z,v,R){return this.logger.Qa(N,z,v,R)}; g.J.e6=function(N){this.logger.e6(N)}; g.J.zT=function(N){this.logger.zT(N)}; g.J.bD=function(N){this.logger.bD(N)}; g.J.nW=function(N){this.logger.nW(N)}; g.J.mX=function(N){this.logger.mX(N)}; g.y(i6,g.H);g.y(jU,R9);g.J=jU.prototype;g.J.mX=function(N){this.metrics.af0.DG(N,this.DO)}; g.J.cS=function(N){this.metrics.eventCount.Sr(N,this.DO)}; g.J.tS=function(N,z){this.metrics.IF.DG(z,N,this.DO)}; g.J.IT=function(N){this.metrics.errorCount.Sr(N,this.DO)}; g.J.Qa=function(N,z,v,R){function C(Q){if(!Z.HL()){var L=zB()-Y;Z.metrics.Ouo.DG(L,N,v,Q,z,Z.DO)}} var Z=this,Y=zB();R.then(function(){return void C(0)},function(Q){return void C(Q instanceof DI?Q.code:-1)}); return R}; g.J.e6=function(N){this.metrics.zTp.Sr(N,this.DO)}; g.J.zT=function(N){this.metrics.OZ.Sr(N,this.DO)}; g.J.bD=function(N){this.metrics.AJO.Sr(N,this.DO)}; g.y(a9,jU);a9.prototype.nW=function(N){var z=this;this.V.dispose();this.W&&this.service.dispose();this.service=this.options.Wq("49",this.options.sx.concat(N));this.V=new i6(function(){return void z.service.Xg()},this.options.PN); this.metrics=F$7(this.service);this.Z=N}; a9.prototype.Mz=function(){mHu(this.V)};g.y(QS,yL);g.y(L$,yL);g.y(K$,yL);var E3O=CT(K$),UHY=function(N){return dS(function(z){return z instanceof N&&!JD(z)})}(K$); K$.messageId="bfkj";g.y(ib,yL);g.y(l6,yL);var Byb=CT(l6);g.y(GB,g.H);GB.prototype.snapshot=function(N){if(this.HL())throw Error("Already disposed");this.logger.cS("n");var z=this.logger.share();return this.Z.then(function(v){var R=v.v0;return new Promise(function(C){var Z=new vw(z,"n");R(function(Y){Z.done();z.mX(Y.length);z.Mz();z.dispose();C(Y)},[N.GA, N.HO,N.zJ,N.BO])})})}; GB.prototype.X7=function(N){var z=this;if(this.HL())throw Error("Already disposed");this.logger.cS("n");var v=C$(this.logger,function(){return z.N([N.GA,N.HO,N.zJ,N.BO])},"n"); this.logger.mX(v.length);this.logger.Mz();return v}; GB.prototype.Co=function(N){this.Z.then(function(z){var v;(v=z.Xc1)==null||v(N)})}; GB.prototype.pW=function(){return this.logger.share()};g.y(Jh,yL);g.y(yS,yL);f$.prototype.lr=function(N){return DHO(this,N,new Zt,0)};g.y(d2,g.H);d2.prototype.snapshot=function(N){var z=this;return g.S(function(v){switch(v.W){case 1:if(z.HL())throw Error("Already disposed");if(z.W||z.L){v.Zp(2);break}return g.k(v,z.B.promise,2);case 2:if(!z.W){v.Zp(4);break}return g.k(v,z.W.snapshot(N),5);case 5:return v.return(v.V);case 4:throw z.L;}})}; d2.prototype.Co=function(N){var z,v;(z=this.W)==null||(v=z.Co)==null||v.call(z,N)}; d2.prototype.handleError=function(N){if(!this.HL()){this.L=N;this.B.resolve();var z,v;(v=(z=this.options).OVS)==null||v.call(z,N)}}; d2.prototype.pW=function(){return this.logger.share()}; var O5O={Vrl:432E5,Rs:3E5,Is:10,Bx:1E4,FQ:3E4,YX:3E4,T6p:6E4,dJ:1E3,GL:6E4,tH:6E5,cz:.25,CK:2,maxAttempts:10};var p$V,Nau=(p$V=Math.imul)!=null?p$V:function(N,z){return N*z|0},n$=[196, 200,224,18];m9.prototype.Jy=function(){return String(this.V)+","+this.W.join()}; m9.prototype.Lu=function(N,z){var v=void 0;if(this.W[this.V]!==N){var R=this.W.indexOf(N);R!==-1?(this.W.splice(R,1),R0;)z[v++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(N%62),N=Math.floor(N/62);return z.join("")}};var lJm;g.y(UP,g.H);UP.prototype.gI=function(N,z){var v=this.I9(N);z==null||z(v);return C$(this.logger,function(){return g.zV(v,2)},this.W)}; lJm=Symbol.dispose;g.y(g2,UP);g2.prototype.I9=function(N,z){var v=this;this.logger.cS(this.V);++this.B>=this.G&&this.Z.resolve();var R=N();N=C$(this.logger,function(){return v.N(R)},"C"); if(N===void 0)throw new RK(17,"YNJ:Undefined");if(!(N instanceof Uint8Array))throw new RK(18,"ODM:Invalid");z==null||z(N);return N}; g.y(p$,UP);p$.prototype.I9=function(){return this.N}; g.y(kC,UP);kC.prototype.I9=function(){var N=this;return C$(this.logger,function(){return R1(N.N)},"d")}; kC.prototype.gI=function(){return this.N}; g.y(Pw,UP);Pw.prototype.I9=function(){if(this.N)return this.N;this.N=W3U(this,function(N){return"_"+K3I(N)}); return W3U(this,function(N){return N})}; g.y(SU,UP);SU.prototype.I9=function(){var N=Math.floor(Date.now()/1E3),z=[Math.random()*255,Math.random()*255],v=z.concat([this.N&255,this.clientState],[N>>24&255,N>>16&255,N>>8&255,N&255]);N=new Uint8Array(2+v.length);N[0]=34;N[1]=v.length;N.set(v,2);v=N.subarray(2);for(var R=z=z.length;R150))try{this.cache=new ikU(N,this.logger)}catch(z){this.reportError(new RK(22,"GBJ:init",z))}}; g.J.reportError=function(N){this.logger.IT(N.code);this.onError(N);return N}; var eQf=function(N){return dS(function(z){if(!UxU(z))return!1;for(var v=g.f(Object.entries(N)),R=v.next();!R.done;R=v.next()){var C=g.f(R.value);R=C.next().value;C=C.next().value;if(!(R in z)){if(C.mld===!0)continue;return!1}if(!C(z[R]))return!1}return!0})}({mQ:function(N){return dS(function(z){return z instanceof N})}(d2)},"");var XwI=(new Date).getTime();g.y(Dt,yL);var k18=CT(Dt);m_b.prototype.getMetadata=function(){return this.metadata};b6.prototype.getMetadata=function(){return this.metadata}; b6.prototype.getStatus=function(){return this.status};th.prototype.L=function(N,z){z=z===void 0?{}:z;return new m_b(N,this,z)}; th.prototype.getName=function(){return this.name};var PWl=new th("/google.internal.waa.v1.Waa/Create",Jh,Dt,function(N){return N.Jy()},k18);g.y(OP,yL);var o3u=new th("/google.internal.waa.v1.Waa/GenerateIT",yS,OP,function(N){return N.Jy()},CT(OP));var v7I=new Set(["SAPISIDHASH","APISIDHASH"]);g.y(I9,yL);I9.prototype.getValue=function(){var N=y2(this,2);if(Array.isArray(N)||N instanceof yL)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Uk(this,2)};g.y(X9,yL);X9.prototype.getMessage=function(){return uY(this,2)}; var pfv=CT(X9);r2.prototype.Nz=function(N,z){N=="data"?this.Z.push(z):N=="metadata"?this.B.push(z):N=="status"?this.G.push(z):N=="end"?this.N.push(z):N=="error"&&this.W.push(z);return this}; r2.prototype.removeListener=function(N,z){N=="data"?w2(this.Z,z):N=="metadata"?w2(this.B,z):N=="status"?w2(this.G,z):N=="end"?w2(this.N,z):N=="error"&&w2(this.W,z);return this}; r2.prototype.cancel=function(){this.V.abort()}; r2.prototype.cancel=r2.prototype.cancel;r2.prototype.removeListener=r2.prototype.removeListener;r2.prototype.on=r2.prototype.Nz;g.y(U_7,Error);g.Lm(g.Nv,xHY);g.Nv.prototype.V=function(){var N=new zE(this.N,this.Z);this.W&&N.setCredentialsMode(this.W);return N}; g.Nv.prototype.setCredentialsMode=function(N){this.W=N}; g.Lm(zE,g.Ws);g.J=zE.prototype;g.J.open=function(N,z){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qd=N;this.J=z;this.readyState=1;vn(this)}; g.J.send=function(N){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.V=!0;var z={headers:this.Y,method:this.qd,credentials:this.B,cache:void 0};N&&(z.body=N);(this.Vp||g.u7).fetch(new Request(this.J,z)).then(this.v3.bind(this),this.hn.bind(this))}; g.J.abort=function(){this.response=this.responseText="";this.Y=new Headers;this.status=0;this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.V&&this.readyState!=4&&(this.V=!1,RH(this));this.readyState=0}; g.J.v3=function(N){if(this.V&&(this.N=N,this.W||(this.status=this.N.status,this.statusText=this.N.statusText,this.W=N.headers,this.readyState=2,vn(this)),this.V&&(this.readyState=3,vn(this),this.V)))if(this.responseType==="arraybuffer")N.arrayBuffer().then(this.wL.bind(this),this.hn.bind(this));else if(typeof g.u7.ReadableStream!=="undefined"&&"body"in N){this.Z=N.body.getReader();if(this.G){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.L=new TextDecoder;ko_(this)}else N.text().then(this.EL.bind(this),this.hn.bind(this))}; g.J.hm=function(N){if(this.V){if(this.G&&N.value)this.response.push(N.value);else if(!this.G){var z=N.value?N.value:new Uint8Array(0);if(z=this.L.decode(z,{stream:!N.done}))this.response=this.responseText+=z}N.done?RH(this):vn(this);this.readyState==3&&ko_(this)}}; g.J.EL=function(N){this.V&&(this.response=this.responseText=N,RH(this))}; g.J.wL=function(N){this.V&&(this.response=N,RH(this))}; g.J.hn=function(){this.V&&RH(this)}; g.J.setRequestHeader=function(N,z){this.Y.append(N,z)}; g.J.getResponseHeader=function(N){return this.W?this.W.get(N.toLowerCase())||"":""}; g.J.getAllResponseHeaders=function(){if(!this.W)return"";for(var N=[],z=this.W.entries(),v=z.next();!v.done;)v=v.value,N.push(v[0]+": "+v[1]),v=z.next();return N.join("\r\n")}; g.J.setCredentialsMode=function(N){this.B=N}; Object.defineProperty(zE.prototype,"withCredentials",{get:function(){return this.B==="include"}, set:function(N){this.setCredentialsMode(N?"include":"same-origin")}});g.Cj.prototype.toString=function(){var N=[],z=this.B;z&&N.push(Lj(z,VVr,!0),":");var v=this.V;if(v||z=="file")N.push("//"),(z=this.Y)&&N.push(Lj(z,VVr,!0),"@"),N.push(EjU(g.G3(v))),v=this.Z,v!=null&&N.push(":",String(v));if(v=this.W)this.V&&v.charAt(0)!="/"&&N.push("/"),N.push(Lj(v,v.charAt(0)=="/"?SZZ:E5V,!0));(v=this.N.toString())&&N.push("?",v);(v=this.G)&&N.push("#",Lj(v,h95));return N.join("")}; g.Cj.prototype.resolve=function(N){var z=this.clone(),v=!!N.B;v?g.ZF(z,N.B):v=!!N.Y;v?z.Y=N.Y:v=!!N.V;v?g.YZ(z,N.V):v=N.Z!=null;var R=N.W;if(v)g.ik(z,N.Z);else if(v=!!N.W){if(R.charAt(0)!="/")if(this.V&&!this.W)R="/"+R;else{var C=z.W.lastIndexOf("/");C!=-1&&(R=z.W.slice(0,C+1)+R)}C=R;if(C==".."||C==".")R="";else if(g.yg(C,"./")||g.yg(C,"/.")){R=x_(C,"/");C=C.split("/");for(var Z=[],Y=0;Y1||Z.length==1&&Z[0]!="")&&Z.pop(), R&&Y==C.length&&Z.push("")):(Z.push(Q),R=!0)}R=Z.join("/")}else R=C}v?z.W=R:v=N.N.toString()!=="";v?jj(z,N.N.clone()):v=!!N.G;v&&(z.G=N.G);return z}; g.Cj.prototype.clone=function(){return new g.Cj(this)}; var VVr=/[#\/\?@]/g,E5V=/[#\?:]/g,SZZ=/[#\?]/g,VSK=/[#\?@]/g,h95=/#/g;g.J=Q0.prototype;g.J.add=function(N,z){Wn(this);this.Z=null;N=GE(this,N);var v=this.V.get(N);v||this.V.set(N,v=[]);v.push(z);this.W=this.W+1;return this}; g.J.remove=function(N){Wn(this);N=GE(this,N);return this.V.has(N)?(this.Z=null,this.W=this.W-this.V.get(N).length,this.V.delete(N)):!1}; g.J.clear=function(){this.V=this.Z=null;this.W=0}; g.J.isEmpty=function(){Wn(this);return this.W==0}; g.J.forEach=function(N,z){Wn(this);this.V.forEach(function(v,R){v.forEach(function(C){N.call(z,C,R,this)},this)},this)}; g.J.S7=function(){Wn(this);for(var N=Array.from(this.V.values()),z=Array.from(this.V.keys()),v=[],R=0;R0?String(N[0]):z}; g.J.toString=function(){if(this.Z)return this.Z;if(!this.V)return"";for(var N=[],z=Array.from(this.V.keys()),v=0;v>>3;Z.Z!=1&&Z.Z!=2&&Z.Z!=15&&y0(Z,Y,Q,"unexpected tag");Z.V=1;Z.W=0;Z.N=0} function v(L){Z.N++;Z.N==5&&L&240&&y0(Z,Y,Q,"message length too long");Z.W|=(L&127)<<(Z.N-1)*7;L&128||(Z.V=2,Z.Y=0,typeof Uint8Array!=="undefined"?Z.B=new Uint8Array(Z.W):Z.B=Array(Z.W),Z.W==0&&C())} function R(L){Z.B[Z.Y++]=L;Z.Y==Z.W&&C()} function C(){if(Z.Z<15){var L={};L[Z.Z]=Z.B;Z.L.push(L)}Z.V=0} for(var Z=this,Y=N instanceof Array?N:new Uint8Array(N),Q=0;Q0?N:null};fj.prototype.isInputValid=function(){return this.V===null}; fj.prototype.VX=function(){return this.V}; fj.prototype.Qq=function(){return!1}; fj.prototype.parse=function(N){this.V!==null&&OkI(this,N,"stream already broken");var z=null;try{var v=this.Z;v.Z||tSm(v,N,"stream already broken");v.V+=N;var R=Math.floor(v.V.length/4);if(R==0)var C=null;else{try{var Z=E_I(v.V.slice(0,R*4))}catch(Y){tSm(v,v.V,Y.message)}v.W+=R*4;v.V=v.V.slice(R*4);C=Z}z=C===null?null:this.N.parse(C)}catch(Y){OkI(this,N,Y.message)}this.W+=N.length;return z};var o5Z={INIT:0,XP:1,k0:2,E3:3,cq:4,t5:5,STRING:6,iC:7,Oz:8,d9:9,tX:10,cX:11,cI:12,IE:13,p$:14,HI:15,r9:16,bb:17,eh:18,rX:19,ol:20};g.J=so.prototype;g.J.isInputValid=function(){return this.B!=3}; g.J.VX=function(){return this.J}; g.J.done=function(){return this.B===2}; g.J.Qq=function(){return!1}; g.J.parse=function(N){function z(){for(;G0;)if(e=N[G++], Z.Y===4?Z.Y=0:Z.Y++,!e)break a;if(e==='"'&&!Z.L){Z.V=R();break}if(e==="\\"&&!Z.L&&(Z.L=!0,e=N[G++],!e))break;if(Z.L)if(Z.L=!1,e==="u"&&(Z.Y=1),e=N[G++])continue;else break;Q.lastIndex=G;e=Q.exec(N);if(!e){G=N.length+1;break}G=e.index+1;e=N[e.index];if(!e)break}Z.Z+=G-d;continue;case L.d9:if(!e)continue;e==="r"?Z.V=L.tX:TE(Z,N,G);continue;case L.tX:if(!e)continue;e==="u"?Z.V=L.cX:TE(Z,N,G);continue;case L.cX:if(!e)continue;e==="e"?Z.V=R():TE(Z,N,G);continue;case L.cI:if(!e)continue;e==="a"?Z.V=L.IE: TE(Z,N,G);continue;case L.IE:if(!e)continue;e==="l"?Z.V=L.p$:TE(Z,N,G);continue;case L.p$:if(!e)continue;e==="s"?Z.V=L.HI:TE(Z,N,G);continue;case L.HI:if(!e)continue;e==="e"?Z.V=R():TE(Z,N,G);continue;case L.r9:if(!e)continue;e==="u"?Z.V=L.bb:TE(Z,N,G);continue;case L.bb:if(!e)continue;e==="l"?Z.V=L.eh:TE(Z,N,G);continue;case L.eh:if(!e)continue;e==="l"?Z.V=R():TE(Z,N,G);continue;case L.rX:e==="."?Z.V=L.ol:TE(Z,N,G);continue;case L.ol:if("0123456789.eE+-".indexOf(e)!==-1)continue;else G--,Z.Z--,Z.V= R();continue;default:TE(Z,N,G)}}} function R(){var e=Y.pop();return e!=null?e:L.XP} function C(e){if(!(Z.W>1)){e||(e=W===-1?Z.N+N.substring(l,G):N.substring(W,G));if(Z.qd)Z.G.push(e);else{var d=Z.G,T=d.push;e=JSON.parse(e);T.call(d,e)}W=G}} for(var Z=this,Y=Z.Vp,Q=Z.PL,L=o5Z,K=N.length,l=0,W=-1,G=0;G0?(x=Z.G,Z.G=[],x):null}return null};$Z.prototype.isInputValid=function(){return this.B===null}; $Z.prototype.VX=function(){return this.B}; $Z.prototype.Qq=function(){return!1}; $Z.prototype.parse=function(N){function z(L){Z.W=6;Z.B="The stream is broken @"+Z.V+"/"+Y+". Error: "+L+". With input:\n";throw Error(Z.B);} function v(){Z.Z=new so({M1U:!0,wz:!0})} function R(L){if(L)for(var K=0;K1)&&z("extra status: "+L);Z.G=!0;var K={};K[2]=L[0];Z.N.push(K)}} for(var Z=this,Y=0;Y0?(N=Z.N,Z.N=[],N):null};Uo.prototype.Uy=function(){return this.V}; Uo.prototype.getStatus=function(){return this.B}; Uo.prototype.qd=function(N){N=N.target;try{if(N==this.V)a:{var z=g.uX(this.V),v=this.V.W,R=this.V.getStatus(),C=g.qn(this.V);N=[];if(g.Mn(this.V)instanceof Array){var Z=g.Mn(this.V);Z.length>0&&Z[0]instanceof Uint8Array&&(this.J=!0,N=Z)}if(!(z<3||z==3&&!C&&N.length==0))if(R=R==200||R==206,z==4&&(v==8?Bn(this,7):v==7?Bn(this,8):R||Bn(this,3)),this.W||(this.W=IJI(this.V),this.W==null&&Bn(this,5)),this.B>2)A4(this);else{if(N.length>this.Z){var Y=N.length;v=[];try{if(this.W.Qq())for(var Q=0;Qthis.Z){Q=C.slice(this.Z);this.Z=C.length;try{var K=this.W.parse(Q);K!=null&&this.N&&this.N(K)}catch(l){Bn(this,5);A4(this);break a}}z==4?(C.length!= 0||this.J?Bn(this,2):Bn(this,4),A4(this)):Bn(this,1)}}}catch(l){Bn(this,6),A4(this)}};g.J=Xfu.prototype;g.J.Nz=function(N,z){var v=this.W[N];v||(v=[],this.W[N]=v);v.push(z);return this}; g.J.addListener=function(N,z){this.Nz(N,z);return this}; g.J.removeListener=function(N,z){var v=this.W[N];v&&g.fm(v,z);(N=this.V[N])&&g.fm(N,z);return this}; g.J.once=function(N,z){var v=this.V[N];v||(v=[],this.V[N]=v);v.push(z);return this}; g.J.JOT=function(N){var z=this.W.data;z&&r_f(N,z);(z=this.V.data)&&r_f(N,z);this.V.data=[]}; g.J.WQp=function(){switch(this.Z.getStatus()){case 1:gs(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gs(this,"error");break;case 8:gs(this,"close");break;case 2:gs(this,"end")}};umO.prototype.serverStreaming=function(N,z,v,R){var C=this,Z=N.substring(0,N.length-R.name.length);return c_U(function(Y){var Q=Y.H6,L=Y.getMetadata(),K=wfm(C,!1);L=NHv(C,L,K,Z+Q.getName());var l=zkI(K,Q.W,!0);Y=Q.V(Y.KS);K.send(L,"POST",Y);return l},this.N).call(this,R.L(z,v))};RkU.prototype.create=function(N,z){return H57(this.V,this.W+"/$rpc/google.internal.waa.v1.Waa/Create",N,z||{},PWl)};var CXK="://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(" "),Zxf=/\bocr\b/;var ix_=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(N){throw N;}},{vdU:!0, JuS:!0,nd1:eYP,iao:JbW,oa0:!1,XgW:!1,Tmo:!0,EdO:!1});var Pn=null,WGb=Symbol("SIGNAL"),Wp={version:0,vCl:0,BB:!1,WK:void 0,yk:void 0,l6:void 0,uD:0,L4:void 0,Rv:void 0,Hx:!1,t3:!1,kind:"unknown",Jq:function(){return!1}, nx:function(){}, sZ:function(){}, YVl:function(){}};var Gr=Symbol("UNSET"),xG=Symbol("COMPUTING"),ew=Symbol("ERRORED");Object.assign({},Wp,{value:Gr,BB:!0,error:null,jg:kZ,kind:"computed",Jq:function(N){return N.value===Gr||N.value===xG}, nx:function(N){if(N.value===xG)throw Error("Detected cycle in computations.");var z=N.value;N.value=xG;var v=jZf(N),R=!1;try{var C=N.tK();V0(null);R=z!==Gr&&z!==ew&&C!==ew&&N.jg(z,C)}catch(Z){C=ew,N.error=Z}finally{aIU(N,v)}R?N.value=z:(N.value=C,N.version++)}});var lIu=Object.assign({},Wp,{jg:kZ,value:void 0,kind:"signal"});Object.assign({},Wp,{value:Gr,BB:!0,error:null,jg:kZ,kind:"linkedSignal",Jq:function(N){return N.value===Gr||N.value===xG}, nx:function(N){if(N.value===xG)throw Error("Detected cycle in computations.");var z=N.value;N.value=xG;var v=jZf(N);try{var R=N.source();var C=N.tK(R,z===Gr||z===ew?void 0:{source:N.VNL,value:z});N.VNL=R}catch(Z){C=ew,N.error=Z}finally{aIU(N,v)}z!==Gr&&C!==ew&&N.jg(z,C)?N.value=z:(N.value=C,N.version++)}});Object.assign({},Wp,{t3:!0,Hx:!1,sZ:function(N){N.schedule!==null&&N.schedule(N.u$o)}, FFd:!1,SVp:function(){}});g.y(Hn,g.Ws);Hn.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.nX.gG(this.B);delete Hn.instance}; Hn.prototype.r$=function(){return this.V}; Hn.prototype.Nv=function(){var N=this;this.B=this.nX.Mo(function(){var z;return g.S(function(v){if(v.W==1)return N.V?((z=window.navigator)==null?0:z.onLine)?v.Zp(3):g.k(v,h4(N),3):g.k(v,h4(N),3);N.Nv();g.fO(v)})},3E4)};DF.prototype.set=function(N,z){z=z===void 0?!0:z;0<=N&&N<52&&Number.isInteger(N)&&this.data[N]!==z&&(this.data[N]=z,this.V=-1)}; DF.prototype.get=function(N){return!!this.data[N]};var t4;g.Lm(g.uk,g.H);g.J=g.uk.prototype;g.J.start=function(){this.stop();this.N=!1;var N=yLu(this),z=fIO(this);N&&!z&&this.W.mozRequestAnimationFrame?(this.V=g.ZI(this.W,"MozBeforePaint",this.Z),this.W.mozRequestAnimationFrame(null),this.N=!0):this.V=N&&z?N.call(this.W,this.Z):this.W.setTimeout(tVY(this.Z),20)}; g.J.stop=function(){if(this.isActive()){var N=yLu(this),z=fIO(this);N&&!z&&this.W.mozRequestAnimationFrame?Q$(this.V):N&&z?z.call(this.W,this.V):this.W.clearTimeout(this.V)}this.V=null}; g.J.isActive=function(){return this.V!=null}; g.J.qe=function(){this.N&&this.V&&Q$(this.V);this.V=null;this.G.call(this.B,g.jV())}; g.J.AO=function(){this.stop();g.uk.gi.AO.call(this)};g.Lm(g.cn,g.H);g.J=g.cn.prototype;g.J.VS=0;g.J.AO=function(){g.cn.gi.AO.call(this);this.stop();delete this.V;delete this.W}; g.J.start=function(N){this.stop();this.VS=g.hL(this.Z,N!==void 0?N:this.fO)}; g.J.stop=function(){this.isActive()&&g.u7.clearTimeout(this.VS);this.VS=0}; g.J.isActive=function(){return this.VS!=0}; g.J.s8=function(){this.VS=0;this.V&&this.V.call(this.W)};g.y(g.N4,g.H);g.J=g.N4.prototype;g.J.tj=function(N){this.Z=arguments;this.SK||this.W?this.V=!0:zb(this)}; g.J.stop=function(){this.SK&&(g.u7.clearTimeout(this.SK),this.SK=null,this.V=!1,this.Z=null)}; g.J.pause=function(){this.W++}; g.J.resume=function(){this.W--;this.W||!this.V||this.SK||(this.V=!1,zb(this))}; g.J.AO=function(){g.H.prototype.AO.call(this);this.stop()};g.vl.prototype[Symbol.iterator]=function(){return this}; g.vl.prototype.next=function(){var N=this.V.next();return{value:N.done?void 0:this.W.call(void 0,N.value),done:N.done}};g.Lm(g.L6,g.Ws);g.J=g.L6.prototype;g.J.isPlaying=function(){return this.V==1}; g.J.isPaused=function(){return this.V==-1}; g.J.D$=function(){this.pX("begin")}; g.J.K9=function(){this.pX("end")}; g.J.onFinish=function(){this.pX("finish")}; g.J.onStop=function(){this.pX("stop")}; g.J.pX=function(N){this.dispatchEvent(N)};var DPl=GP(function(){var N=g.wL("DIV"),z=g.uU?"-webkit":EV?"-moz":null,v="transition:opacity 1s linear;";z&&(v+=z+"-transition:opacity 1s linear;");z=g5K({style:v});if(N.nodeType===1&&/^(script|style)$/i.test(N.tagName))throw Error("");N.innerHTML=z3(z);return g.hJ(N.firstChild,"transition")!=""});g.Lm(K6,g.L6);g.J=K6.prototype;g.J.play=function(){if(this.isPlaying())return!1;this.D$();this.pX("play");this.startTime=g.jV();this.V=1;if(DPl())return g.SB(this.W,this.G),this.Z=g.hL(this.yTT,void 0,this),!0;this.lw(!1);return!1}; g.J.yTT=function(){g.rv(this.W);THu(this.W,this.L);g.SB(this.W,this.N);this.Z=g.hL((0,g.Zl)(this.lw,this,!1),this.B*1E3)}; g.J.stop=function(){this.isPlaying()&&this.lw(!0)}; g.J.lw=function(N){g.SB(this.W,"transition","");g.u7.clearTimeout(this.Z);g.SB(this.W,this.N);this.endTime=g.jV();this.V=0;if(N)this.onStop();else this.onFinish();this.K9()}; g.J.AO=function(){this.stop();K6.gi.AO.call(this)}; g.J.pause=function(){};var n7u={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};lP("Element","attributes")||lP("Node","attributes");lP("Element","innerHTML")||lP("HTMLElement","innerHTML");lP("Node","nodeName");lP("Node","nodeType");lP("Node","parentNode");lP("Node","childNodes");lP("HTMLElement","style")||lP("Element","style");lP("HTMLStyleElement","sheet");var g77=$nu("getPropertyValue"),ps_=$nu("setProperty");lP("Element","namespaceURI")||lP("Node","namespaceURI");var ALv={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var SlY,iOl,VGK,PX2,E7v;SlY=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]");iOl=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.bmr=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.Gb=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]");VGK=/^http:\/\/.*/;g.tV9=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");PX2=/\s+/;E7v=/[\d\u06f0-\u06f9]/;eW.prototype.O5=function(){return new J7(this.W())}; eW.prototype[Symbol.iterator]=function(){return new yY(this.W())}; eW.prototype.V=function(){return new yY(this.W())}; g.y(J7,g.UJ);J7.prototype.next=function(){return this.W.next()}; J7.prototype[Symbol.iterator]=function(){return new yY(this.W)}; J7.prototype.V=function(){return new yY(this.W)}; g.y(yY,eW);yY.prototype.next=function(){return this.Z.next()};dA.prototype.clone=function(){return new dA(this.V,this.L,this.Z,this.B,this.N,this.G,this.W,this.Y)}; dA.prototype.equals=function(N){return this.V==N.V&&this.L==N.L&&this.Z==N.Z&&this.B==N.B&&this.N==N.N&&this.G==N.G&&this.W==N.W&&this.Y==N.Y};Tb.prototype.clone=function(){return new Tb(this.start,this.end)}; Tb.prototype.getLength=function(){return this.end-this.start};(function(){if(QMI){var N=/Windows NT ([0-9.]+)/;return(N=N.exec(g.mU()))?N[1]:"0"}return wD?(N=/1[0|1][_.][0-9_.]+/,(N=N.exec(g.mU()))?N[0].replace(/_/g,"."):"10"):g.ML?(N=/Android\s+([^\);]+)(\)|;)/,(N=N.exec(g.mU()))?N[1]:""):dxP||sv5||T_w?(N=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(N=N.exec(g.mU()))?N[1].replace(/_/g,"."):""):""})();var Hx_=function(){if(g.Xn)return FV(/Firefox\/([0-9.]+)/);if(g.Wl||g.Xi||g.md)return F7x;if(g.gp){if(FD()||n9()){var N=FV(/CriOS\/([0-9.]+)/);if(N)return N}return FV(/Chrome\/([0-9.]+)/)}if(g.yl&&!FD())return FV(/Version\/([0-9.]+)/);if(uQ||c9){if(N=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.mU()))return N[1]+"."+N[2]}else if(g.$1)return(N=FV(/Android\s+([0-9.]+)/))?N:FV(/Version\/([0-9.]+)/);return""}();g.Lm(g.mN,g.H);g.J=g.mN.prototype;g.J.subscribe=function(N,z,v){var R=this.W[N];R||(R=this.W[N]=[]);var C=this.G;this.V[C]=N;this.V[C+1]=z;this.V[C+2]=v;this.G=C+3;R.push(C);return C}; g.J.unsubscribe=function(N,z,v){if(N=this.W[N]){var R=this.V;if(N=N.find(function(C){return R[C+1]==z&&R[C+2]==v}))return this.xB(N)}return!1}; g.J.xB=function(N){var z=this.V[N];if(z){var v=this.W[z];this.N!=0?(this.Z.push(N),this.V[N+1]=function(){}):(v&&g.fm(v,N),delete this.V[N],delete this.V[N+1],delete this.V[N+2])}return!!z}; g.J.publish=function(N,z){var v=this.W[N];if(v){var R=Array(arguments.length-1),C=arguments.length,Z;for(Z=1;Z0&&this.N==0)for(;v=this.Z.pop();)this.xB(v)}}return Z!=0}return!1}; g.J.clear=function(N){if(N){var z=this.W[N];z&&(z.forEach(this.xB,this),delete this.W[N])}else this.V.length=0,this.W={}}; g.J.AO=function(){g.mN.gi.AO.call(this);this.clear();this.Z.length=0};g.$e.prototype.set=function(N,z){z===void 0?this.V.remove(N):this.V.set(N,g.bX(z))}; g.$e.prototype.get=function(N){try{var z=this.V.get(N)}catch(v){return}if(z!==null)try{return JSON.parse(z)}catch(v){throw"Storage: Invalid value was encountered";}}; g.$e.prototype.remove=function(N){this.V.remove(N)};g.Lm(Ub,g.$e);Ub.prototype.set=function(N,z){Ub.gi.set.call(this,N,bxu(z))}; Ub.prototype.W=function(N){N=Ub.gi.get.call(this,N);if(N===void 0||N instanceof Object)return N;throw"Storage: Invalid value was encountered";}; Ub.prototype.get=function(N){if(N=this.W(N)){if(N=N.data,N===void 0)throw"Storage: Invalid value was encountered";}else N=void 0;return N};g.Lm(Bl,Ub);Bl.prototype.set=function(N,z,v){if(z=bxu(z)){if(v){if(v=v.length)return g.aT;var C=v.key(z++);if(N)return g.BT(C);C=v.getItem(C);if(typeof C!=="string")throw"Storage mechanism: Invalid value was encountered";return g.BT(C)}; return R}; g.J.clear=function(){ke(this);this.V.clear()}; g.J.key=function(N){ke(this);return this.V.key(N)};g.Lm(Pl,p6);g.Lm(Xsx,p6);g.Lm(VY,gA);VY.prototype.set=function(N,z){this.W.set(this.V+N,z)}; VY.prototype.get=function(N){return this.W.get(this.V+N)}; VY.prototype.remove=function(N){this.W.remove(this.V+N)}; VY.prototype.O5=function(N){var z=this.W[Symbol.iterator](),v=this,R=new g.UJ;R.next=function(){var C=z.next();if(C.done)return C;for(C=C.value;C.slice(0,v.V.length)!=v.V;){C=z.next();if(C.done)return C;C=C.value}return g.BT(N?C.slice(v.V.length):v.W.get(C))}; return R};Eb.prototype.getValue=function(){return this.W}; Eb.prototype.clone=function(){return new Eb(this.V,this.W)};g.J=h7.prototype;g.J.Lu=function(N,z){var v=this.V;v.push(new Eb(N,z));N=v.length-1;z=this.V;for(v=z[N];N>0;){var R=N-1>>1;if(z[R].V>v.V)z[N]=z[R],N=R;else break}z[N]=v}; g.J.remove=function(){var N=this.V,z=N.length,v=N[0];if(!(z<=0)){if(z==1)N.length=0;else{N[0]=N.pop();N=0;z=this.V;for(var R=z.length,C=z[N];N>1;){var Z=N*2+1,Y=N*2+2;Z=YC.V)break;z[N]=z[Z];N=Z}z[N]=C}return v.getValue()}}; g.J.IU=function(){for(var N=this.V,z=[],v=N.length,R=0;R>>16&65535|0;for(var Z;v!==0;){Z=v>2E3?2E3:v;v-=Z;do C=C+z[R++]|0,N=N+C|0;while(--Z);C%=65521;N%=65521}return C|N<<16|0};for(var W6={},JA,urU=[],yw=0;yw<256;yw++){JA=yw;for(var c87=0;c87<8;c87++)JA=JA&1?3988292384^JA>>>1:JA>>>1;urU[yw]=JA}W6=function(N,z,v,R){v=R+v;for(N^=-1;R>>8^urU[(N^z[R])&255];return N^-1};var Ci={};Ci={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 q4=[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],NV=[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],Jh_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],i$u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j1=Array(576);bP(j1);var ah=Array(60);bP(ah);var wA=Array(512);bP(wA);var cl=Array(256);bP(cl);var M4=Array(29);bP(M4);var zA=Array(30);bP(zA);var GBu,xmm,eru,W9U=!1;var yT;yT=[new JB(0,0,0,0,function(N,z){var v=65535;for(v>N.S3-5&&(v=N.S3-5);;){if(N.m9<=1){GA(N);if(N.m9===0&&z===0)return 1;if(N.m9===0)break}N.Rz+=N.m9;N.m9=0;var R=N.rg+v;if(N.Rz===0||N.Rz>=R)if(N.m9=N.Rz-R,N.Rz=R,QT(N,!1),N.lO.wx===0)return 1;if(N.Rz-N.rg>=N.aq-262&&(QT(N,!1),N.lO.wx===0))return 1}N.Lu=0;if(z===4)return QT(N,!0),N.lO.wx===0?3:4;N.Rz>N.rg&&QT(N,!1);return 1}), new JB(4,4,8,4,xW),new JB(4,5,16,8,xW),new JB(4,6,32,32,xW),new JB(4,4,16,16,e1),new JB(8,16,32,32,e1),new JB(8,16,128,128,e1),new JB(8,32,128,256,e1),new JB(32,128,258,1024,e1),new JB(32,258,258,4096,e1)];var ltu={};ltu=function(){this.input=null;this.s3=this.P1=this.F3=0;this.output=null;this.QQ=this.wx=this.Tz=0;this.msg="";this.state=null;this.Zg=2;this.eL=0};var yhb=Object.prototype.toString; fi.prototype.push=function(N,z){var v=this.lO,R=this.options.chunkSize;if(this.ended)return!1;var C=z===~~z?z:z===!0?4:0;typeof N==="string"?v.input=cLx(N):yhb.call(N)==="[object ArrayBuffer]"?v.input=new Uint8Array(N):v.input=N;v.F3=0;v.P1=v.input.length;do{v.wx===0&&(v.output=new Dd.lW(R),v.Tz=0,v.wx=R);N=K9_(v,C);if(N!==1&&N!==0)return this.K9(N),this.ended=!0,!1;if(v.wx===0||v.P1===0&&(C===4||C===2))if(this.options.to==="string"){var Z=Dd.IH(v.output,v.Tz);z=Z;Z=Z.length;if(Z<65537&&(z.subarray&& r8m||!z.subarray))z=String.fromCharCode.apply(null,Dd.IH(z,Z));else{for(var Y="",Q=0;Q0||v.wx===0)&&N!==1);if(C===4)return(v=this.lO)&&v.state?(R=v.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?N=Z3(v,-2):(v.state=null,N=R===113?Z3(v,-3):0)):N=-2,this.K9(N),this.ended=!0,N===0;C===2&&(this.K9(0),v.wx=0);return!0}; fi.prototype.K9=function(N){N===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Dd.gq(this.chunks));this.chunks=[];this.err=N;this.msg=this.lO.msg};var sT="@@redux/INIT"+db(),nC2="@@redux/REPLACE"+db();var mmI=typeof Symbol==="function"&&Symbol.observable||"@@observable";var qZm=[0,Zmr,-3,YG];g.y(Ahf,yL);var xXv=function(){var N=[0,imE,YZl,vp,Zmr,vp,-1,YG,Zmr,YG,-1,imE,YG,YZl,RT,qZm,vp,-1,YG];return function(z,v){var R={mI:!0};v&&Object.assign(R,v);z=rjf(z,void 0,void 0,R);try{var C=new Ahf,Z=C.Wb;oL(N)(Z,z);var Y=C}finally{z.free()}return Y}}();var gCb=-1969897140;var tt2=new g.ni("adInfoDialogEndpoint");var eCI=new g.ni("adPingingEndpoint");var hi_=new g.ni("crossDeviceProgressCommand");var v4=new g.ni("actionCompanionAdRenderer");var ii=new g.ni("adActionInterstitialRenderer");var MVr=new g.ni("adDurationRemainingRenderer");var Vy=new g.ni("adHoverTextButtonRenderer");var Dpu=new g.ni("adInfoDialogRenderer");var Js=new g.ni("adMessageRenderer");var Sk=new g.ni("adPreviewRenderer");var C0=new g.ni("adsEngagementPanelRenderer");var LC2=new g.ni("dismissablePanelTextPortraitImageRenderer");var aXv=new g.ni("adsEngagementPanelSectionListViewModel");var w$1=new g.ni("flyoutCtaRenderer");var Rg=new g.ni("imageCompanionAdRenderer");var Zi=new g.ni("instreamAdPlayerOverlayRenderer");var m62=new g.ni("instreamSurveyAdBackgroundImageRenderer");var P4=new g.ni("instreamSurveyAdPlayerOverlayRenderer");var s9=new g.ni("instreamSurveyAdRenderer"),ku=new g.ni("instreamSurveyAdSingleSelectQuestionRenderer"),p0=new g.ni("instreamSurveyAdMultiSelectQuestionRenderer"),fd=new g.ni("instreamSurveyAdAnswerRenderer"),Nf8=new g.ni("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var f0=new g.ni("instreamVideoAdRenderer");var zqZ=new g.ni("textOverlayAdContentRenderer"),v_l=new g.ni("enhancedTextOverlayAdContentRenderer"),Rq5=new g.ni("imageOverlayAdContentRenderer");var Yz=new g.ni("playerOverlayLayoutRenderer");var j3=new g.ni("videoInterstitialButtonedCenteredLayoutRenderer");var xJu=new g.ni("aboveFeedAdLayoutRenderer");var ehx=new g.ni("belowPlayerAdLayoutRenderer");var GLO=new g.ni("inPlayerAdLayoutRenderer");var n0=new g.ni("playerBytesAdLayoutRenderer");var gx=new g.ni("playerBytesSequenceItemAdLayoutRenderer");var A5=new g.ni("playerUnderlayAdLayoutRenderer");var dx=new g.ni("adIntroRenderer");var L0=new g.ni("playerBytesSequentialLayoutRenderer");var qfu=new g.ni("slidingTextPlayerOverlayRenderer");var T_=new g.ni("surveyTextInterstitialRenderer");var mI=new g.ni("videoAdTrackingRenderer");var Chl=new g.ni("simpleAdBadgeRenderer");var jH=new g.ni("skipAdRenderer"),ZI$=new g.ni("skipButtonRenderer");var og=new g.ni("adSlotRenderer");var U9=new g.ni("squeezebackPlayerSidePanelRenderer");var YN$=new g.ni("timedPieCountdownRenderer");var Oh=new g.ni("adAvatarViewModel");var IF=new g.ni("adBadgeViewModel");var XN=new g.ni("adButtonViewModel");var iIm=new g.ni("adDetailsLineViewModel");var jPw=new g.ni("adDisclosureBannerViewModel");var aR7=new g.ni("adPodIndexViewModel");var QP7=new g.ni("imageBackgroundViewModel");var LUE=new g.ni("adGridCardCollectionViewModel");var KUw=new g.ni("adGridCardTextViewModel");var lRw=new g.ni("adPreviewViewModel");var WU$=new g.ni("playerAdAvatarLockupCardButtonedViewModel");var GMm=new g.ni("skipAdButtonViewModel");var x8U=new g.ni("skipAdViewModel");var eql=new g.ni("timedPieCountdownViewModel");var J0w=new g.ni("visitAdvertiserLinkViewModel");var ZD=new g.ni("bannerImageLayoutViewModel");var Yu=new g.ni("topBannerImageTextIconButtonedLayoutViewModel");var i2=new g.ni("adsEngagementPanelLayoutViewModel");var B4=new g.ni("displayUnderlayTextGridCardsLayoutViewModel");g.Fe=new g.ni("browseEndpoint");var y0r=new g.ni("confirmDialogEndpoint");var Y4v=new g.ni("commandContext");var a_f=new g.ni("rawColdConfigGroup");var jsU=new g.ni("rawHotConfigGroup");g.xJ=new g.ni("commandExecutorCommand");g.y(kBK,yL);var aPb={HXT:0,x3U:1,Jsp:32,aXd:61,PKT:67,Wsl:103,V18:86,TQ1:42,nwo:60,Y_o:62,gd0:73,odL:76,Of0:88,Aul:90,rud:99,EwU:98,zZp:100,kb0:102,bfS:41,eZ0:69,ZfT:70,Nm0:71,sBS:2,Bgo:27,ANDROID:3,YuW:54,D2L:14,iOp:91,j_8:55,m2d:24,Q_p:20,wPp:18,vBT:21,T$U:104,kI0:30,qJT:29,Vol:28,uML:101,Wco:34,oGT:36,EBd:38,IOS:5,tlp:15,UET:92,cx1:40,p2p:25,He8:17,sTU:19,BG1:64,MlW:66,X2o:26,ua8:22,Sbp:33,lJT:68,hLL:35,L1U:53,F1T:37,IJ8:39,rsT:7,bX0:57,eHW:43,NQO:59,ZXW:93,aOp:74,Kx8:75,RHO:85,Cfp:65,d3p:80,t7l:8,zHO:10, IWp:58,cso:63,GAl:72,gGo:23,CK8:11,GbO:13,hFp:12,PfT:16,vw1:56,qVL:31,cRU:77,w1l:84,ifd:87,vKU:89,EKd:94,zOT:95};g.y(m1,yL);m1.prototype.vz=function(){return uY(this,3)}; m1.prototype.V3=function(){return uY(this,5)}; m1.prototype.lk=function(N){return Mb(this,5,N)};g.y($W,yL);g.y(P6u,yL);g.y(UT,yL);g.J=UT.prototype;g.J.getDeviceId=function(){return uY(this,6)}; g.J.x7=function(N){var z=mg(this,9,HJ,3,!0);yF(z,N);return z[N]}; g.J.getPlayerType=function(){return cG(this,36)}; g.J.setHomeGroupInfo=function(N){return bY(this,P6u,81,N)}; g.J.clearLocationPlayabilityToken=function(){return d4(this,89)};g.y(B6,yL);B6.prototype.getValue=function(){return uY(this,S9(this,YvO,2))}; var YvO=[2,3,4,5,6];g.y(AB,yL);AB.prototype.setTrackingParams=function(N){return d4(this,1,qNU(N,!1))};g.y(gb,yL);g.y(pi,yL);pi.prototype.x7=function(N){var z=mg(this,5,o1,3,!0);yF(z,N);return z[N]};g.y(kW,yL);kW.prototype.getToken=function(){return Id(this,2)}; kW.prototype.setToken=function(N){return Mb(this,2,N)};g.y(P6,yL);P6.prototype.setSafetyMode=function(N){return NU(this,5,N)};g.y(VT,yL);VT.prototype.Rf=function(N){return bY(this,UT,1,N)};var h5=new g.ni("thumbnailLandscapePortraitRenderer");g.fR5=new g.ni("changeEngagementPanelVisibilityAction");var GRv=new g.ni("continuationCommand");g.d88=new g.ni("openPopupAction");g.dF=new g.ni("webCommandMetadata");var H0b=new g.ni("metadataBadgeRenderer");var WjU=new g.ni("signalServiceEndpoint");var Ss=new g.ni("innertubeCommand");var zab=new g.ni("loggingDirectives");var y4m={da0:"EMBEDDED_PLAYER_MODE_UNKNOWN",RWo:"EMBEDDED_PLAYER_MODE_DEFAULT",Ghd:"EMBEDDED_PLAYER_MODE_PFP",CYO:"EMBEDDED_PLAYER_MODE_PFL"};var KoI=new g.ni("channelThumbnailEndpoint");var Lou=new g.ni("embeddedPlayerErrorMessageRenderer");var ivu=new g.ni("embeddedPlayerOverlayVideoDetailsRenderer"),l7_=new g.ni("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),WoK=new g.ni("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var S9u=new g.ni("embedsInfoPanelRenderer");var sP5=new g.ni("feedbackEndpoint");var Tfw=new g.ni("callToActionButtonViewModel");var FUU=new g.ni("interactionLoggingCommandMetadata");var GAu={wpp:"WEB_DISPLAY_MODE_UNKNOWN",D3p:"WEB_DISPLAY_MODE_BROWSER",m3T:"WEB_DISPLAY_MODE_MINIMAL_UI",QM8:"WEB_DISPLAY_MODE_STANDALONE",jMW:"WEB_DISPLAY_MODE_FULLSCREEN"};g.y(S1,yL);S1.prototype.getPlayerType=function(){return cG(this,7)}; S1.prototype.uv=function(){return uY(this,19)}; S1.prototype.setVideoId=function(N){return Mb(this,19,N)};g.y(ET,yL);g.y(hB,yL);g.y(H6,yL); var n_U=[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 m8m=new g.ni("loggingContext");g.y(b1,yL);g.y(tB,yL);tB.prototype.uv=function(){return Id(this,S9(this,Qm,1))}; tB.prototype.setVideoId=function(N){return PG(this,1,Qm,uw(N))}; tB.prototype.getPlaylistId=function(){return Id(this,S9(this,Qm,2))}; var Qm=[1,2];g.y(VUu,yL);var zh=new g.ni("changeKeyedMarkersVisibilityCommand");var $8W=new g.ni("changeMarkersVisibilityCommand");var DIu=new g.ni("loadMarkersCommand");var U8$=new g.ni("suggestedActionDataViewModel");var Llm=new g.ni("timelyActionViewModel");var Qfu=new g.ni("timelyActionsOverlayViewModel");var fpb=new g.ni("productListItemRenderer");var Bf5=new g.ni("shoppingOverlayRenderer");var jau=new g.ni("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var A0U=new g.ni("adFeedbackEndpoint");var g_r=new g.ni("menuEndpoint");var U7u=new g.ni("phoneDialerEndpoint");var m7v=new g.ni("sendSmsEndpoint");var Y3v=new g.ni("copyTextEndpoint");var pZZ=new g.ni("shareEndpoint"),kM9=new g.ni("shareEntityEndpoint"),PhU=new g.ni("shareEntityServiceEndpoint"),Vz7=new g.ni("webPlayerShareEntityServiceEndpoint");g.SJ=new g.ni("urlEndpoint");g.wi=new g.ni("watchEndpoint");var SNW=new g.ni("watchPlaylistEndpoint");g.E_V=new g.ni("offlineOrchestrationActionCommand");var MKf=new g.ni("compositeVideoOverlayRenderer");var hqr=new g.ni("miniplayerRenderer");var C5_=new g.ni("paidContentOverlayRenderer");var HI7=new g.ni("playerMutedAutoplayOverlayRenderer"),o_r=new g.ni("playerMutedAutoplayEndScreenRenderer");var MHU=new g.ni("unserializedPlayerResponse"),D85=new g.ni("unserializedPlayerResponse");var bIV=new g.ni("playlistEditEndpoint");var sX;g.E9=new g.ni("buttonRenderer");sX=new g.ni("toggleButtonRenderer");var jNf=new g.ni("counterfactualRenderer");var tzm=new g.ni("resolveUrlCommandMetadata");var OIU=new g.ni("modifyChannelNotificationPreferenceEndpoint");var xz_=new g.ni("pingingEndpoint");var IRl=new g.ni("unsubscribeEndpoint");g.ne=new g.ni("subscribeButtonRenderer");var XZW=new g.ni("subscribeEndpoint");var pM7=new g.ni("buttonViewModel");var QNv=new g.ni("qrCodeRenderer");var LZu={o3U:"LIVING_ROOM_APP_MODE_UNSPECIFIED",JxU:"LIVING_ROOM_APP_MODE_MAIN",TGW:"LIVING_ROOM_APP_MODE_KIDS",nzU:"LIVING_ROOM_APP_MODE_MUSIC",i88:"LIVING_ROOM_APP_MODE_UNPLUGGED",vzS:"LIVING_ROOM_APP_MODE_GAMING"};var k_b=new g.ni("autoplaySwitchButtonRenderer");var mO,QnK,Z02,dSO;mO=new g.ni("decoratedPlayerBarRenderer");QnK=new g.ni("chapteredPlayerBarRenderer");Z02=new g.ni("multiMarkersPlayerBarRenderer");dSO=new g.ni("chapterRenderer");g.Wyf=new g.ni("markerRenderer");var mSx=new g.ni("decoratedPlayheadRenderer");var EuO=new g.ni("desktopOverlayConfigRenderer");var KCu=new g.ni("engagementPanelSectionListRenderer");var Vk2=new g.ni("gatedActionsOverlayViewModel");var J$I=new g.ni("heatMarkerRenderer");var eb_=new g.ni("heatmapRenderer");var oum=new g.ni("watchToWatchTransitionRenderer");var a7O=new g.ni("playlistPanelRenderer");var r05=new g.ni("productUpsellSuggestedActionViewModel");var u_m=new g.ni("suggestedActionTimeRangeTrigger"),c01=new g.ni("suggestedActionsRenderer"),qN$=new g.ni("suggestedActionRenderer");var y$f=new g.ni("timedMarkerDecorationRenderer");var Tpu=new g.ni("cipher");var wDx=new g.ni("playerVars");var Mz8=new g.ni("playerVars");var Tr=g.u7.window,wZw,NLm,OT=(Tr==null?void 0:(wZw=Tr.yt)==null?void 0:wZw.config_)||(Tr==null?void 0:(NLm=Tr.ytcfg)==null?void 0:NLm.data_)||{};g.cU("yt.config_",OT);var u1=[];var Itx=/^[\w.]*$/,Dmv={q:!0,search_query:!0},oCm=String(wb);var a0=new function(){var N=window.document;this.V=window;this.W=N}; g.cU("yt.ads_.signals_.getAdSignalsString",function(N){return NL(LX(N))});g.jV();var rhY="XMLHttpRequest"in g.u7?function(){return new XMLHttpRequest}:null;var zf8="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.U(zf8);var MUx={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"},aFu="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.U(zf8)),ZjK=!1,vZY=TU;g.y(m4,Km);B9.prototype.then=function(N,z,v){return this.V?this.V.then(N,z,v):this.W===1&&N?(N=N.call(v,this.Z))&&typeof N.then==="function"?N:gm(N):this.W===2&&z?(N=z.call(v,this.Z))&&typeof N.then==="function"?N:Ar(N):this}; B9.prototype.getValue=function(){return this.Z}; B9.prototype.GB=function(){return this.W==2}; B9.prototype.$goog_Thenable=!0;var pX=!1;var IX=uQ||c9;var e3_=/^([0-9\.]+):([0-9\.]+)$/;g.y(LH,Km);LH.prototype.name="BiscottiError";g.y(QJ,Km);QJ.prototype.name="BiscottiMissingError";var dvx={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},KH=null;var CWb=l7(["data-"]),A47={};var vQw=0,ly=g.uU?"webkit":EV?"moz":g.Wl?"ms":g.md?"o":"",Rfw=g.qx("ytDomDomGetNextId")||function(){return++vQw}; g.cU("ytDomDomGetNextId",Rfw);var Pkv={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};yJ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; yJ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; yJ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var fH=g.u7.ytEventsEventsListeners||{};g.cU("ytEventsEventsListeners",fH);var EZf=g.u7.ytEventsEventsCounter||{count:0};g.cU("ytEventsEventsCounter",EZf);var Dvb=GP(function(){var N=!1;try{var z=Object.defineProperty({},"passive",{get:function(){N=!0}}); window.addEventListener("test",null,z)}catch(v){}return N}),h3f=GP(function(){var N=!1; try{var z=Object.defineProperty({},"capture",{get:function(){N=!0}}); window.addEventListener("test",null,z)}catch(v){}return N});var FZ;FZ=window;g.I=FZ.ytcsi&&FZ.ytcsi.now?FZ.ytcsi.now:FZ.performance&&FZ.performance.timing&&FZ.performance.now&&FZ.performance.timing.navigationStart?function(){return FZ.performance.timing.navigationStart+FZ.performance.now()}:function(){return(new Date).getTime()};g.Lm(m6,g.H);m6.prototype.J=function(N){N.V===void 0&&VjO(N);var z=N.V;N.W===void 0&&VjO(N);this.V=new g.gL(z,N.W)}; m6.prototype.YZ=function(){return this.V||new g.gL}; m6.prototype.qd=function(){if(this.V){var N=(0,g.I)();if(this.N!=0){var z=this.G,v=this.V,R=z.x-v.x;z=z.y-v.y;R=Math.sqrt(R*R+z*z)/(N-this.N);this.W[this.Z]=Math.abs((R-this.B)/this.B)>.5?1:0;for(v=z=0;v<4;v++)z+=this.W[v]||0;z>=3&&this.L();this.B=R}this.N=N;this.G=this.V;this.Z=(this.Z+1)%4}}; m6.prototype.AO=function(){g.e5(this.Y);g.T6(this.Vp)};g.y($a,g.H);$a.prototype.S=function(N,z,v,R,C){v=g.h(g.qV((0,g.Zl)(v,R||this.zE)));v={target:N,name:z,callback:v};var Z;C&&Dvb()&&(Z={passive:!0});N.addEventListener(z,v.callback,Z);this.L.push(v);return v}; $a.prototype.Kb=function(N){for(var z=0;z=D.e7)||T.V.version>=c||T.V.objectStoreNames.contains(V)||n.push(V)}L=n;if(L.length===0){d.Zp(5);break}K=Object.keys(v.options.ZR); l=Q.objectStoreNames();if(v.Bv.options.version+1)throw G.close(),v.Z=!1,BAI(v,x);return d.return(G);case 8:throw z(), W instanceof Error&&!g.yj("ytidb_async_stack_killswitch")&&(W.stack=W.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),fJ(W,v.name,"",(e=v.options.version)!=null?e:-1);}})} function z(){v.V===R&&(v.V=void 0)} var v=this;if(!this.Z)throw BAI(this);if(this.V)return this.V;var R,C={blocking:function(Z){Z.close()}, closed:z,cyL:z,upgrade:this.options.upgrade};return this.V=R=N()};var t6=new D4("YtIdbMeta",{ZR:{databases:{e7:1}},upgrade:function(N,z){z(1)&&g.U5(N,"databases",{keyPath:"actualName"})}});var uR,r8=new function(){}(new function(){});new g.Ww;g.y(Mp,D4);Mp.prototype.W=function(N,z,v){v=v===void 0?{}:v;return(this.options.shared?h$u:Eeb)(N,z,Object.assign({},v))}; Mp.prototype.delete=function(N){N=N===void 0?{}:N;return(this.options.shared?b6U:H6O)(this.name,N)};var Kf9={},O67=g.w8("ytGcfConfig",{ZR:(Kf9.coldConfigStore={e7:1},Kf9.hotConfigStore={e7:1},Kf9),shared:!1,upgrade:function(N,z){z(1)&&(g.Pz(g.U5(N,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Pz(g.U5(N,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.y(zR,g.H);zR.prototype.AO=function(){for(var N=g.f(this.W),z=N.next();!z.done;z=N.next()){var v=this.V;z=v.indexOf(z.value);z>=0&&v.splice(z,1)}this.W.length=0;g.H.prototype.AO.call(this)};i$.prototype.lk=function(N){this.hotHashData=N;g.cU("yt.gcf.config.hotHashData",this.hotHashData||null)};var lBE=typeof TextEncoder!=="undefined"?new TextEncoder:null,kA_=lBE?function(N){return lBE.encode(N)}:function(N){N=g.NG(N); for(var z=new Uint8Array(N.length),v=0;v=z?!1:!0}; g.J.VJ=function(){var N=this;if(!Pd(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Fk.Ii("QUEUED",this.QO).then(function(z){z&&!N.o5(z,N.qK)?N.nX.Mo(function(){return g.S(function(v){if(v.W==1)return z.id===void 0?v.Zp(2):g.k(v,N.Fk.mH(z.id,N.QO),2);N.VJ();g.fO(v)})}):N.bE.r$()&&N.A5()})};var E1;var K6K={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 G3w={},M1u=g.w8("ServiceWorkerLogsDatabase",{ZR:(G3w.SWHealthLog={e7:1},G3w),shared:!0,upgrade:function(N,z){z(1)&&g.Pz(g.U5(N,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var oq={},CQv=0;var DY;tq.prototype.requestComplete=function(N,z){z&&(this.W=!0);N=this.removeParams(N);this.V.get(N)||this.V.set(N,z)}; tq.prototype.isEndpointCFR=function(N){N=this.removeParams(N);return(N=this.V.get(N))?!1:N===!1&&this.W?!0:null}; tq.prototype.removeParams=function(N){return N.split("?")[0]}; tq.prototype.removeParams=tq.prototype.removeParams;tq.prototype.isEndpointCFR=tq.prototype.isEndpointCFR;tq.prototype.requestComplete=tq.prototype.requestComplete;tq.getInstance=O1;g.y(Iq,g.Ws);g.J=Iq.prototype;g.J.r$=function(){return this.V.r$()}; g.J.Lp=function(N){this.V.V=N}; g.J.MP=function(){var N=window.navigator.onLine;return N===void 0?!0:N}; g.J.Ow=function(){this.W=!0}; g.J.listen=function(N,z){return this.V.listen(N,z)}; g.J.rM=function(N){N=h4(this.V,N);N.then(function(z){g.yj("use_cfr_monitor")&&O1().requestComplete("generate_204",z)}); return N}; Iq.prototype.sendNetworkCheckRequest=Iq.prototype.rM;Iq.prototype.listen=Iq.prototype.listen;Iq.prototype.enableErrorFlushing=Iq.prototype.Ow;Iq.prototype.getWindowStatus=Iq.prototype.MP;Iq.prototype.networkStatusHint=Iq.prototype.Lp;Iq.prototype.isNetworkAvailable=Iq.prototype.r$;Iq.getInstance=iXu;g.y(g.XC,g.Ws);g.XC.prototype.r$=function(){var N=g.qx("yt.networkStatusManager.instance.isNetworkAvailable");return N?N.bind(this.W)():!0}; g.XC.prototype.Lp=function(N){var z=g.qx("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);z&&z(N)}; g.XC.prototype.rM=function(N){var z=this,v;return g.S(function(R){v=g.qx("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.W);return g.yj("skip_network_check_if_cfr")&&O1().isEndpointCFR("generate_204")?R.return(new Promise(function(C){var Z;z.Lp(((Z=window.navigator)==null?void 0:Z.onLine)||!0);C(z.r$())})):v?R.return(v(N)):R.return(!0)})};var r5;g.y(u$,Vi);u$.prototype.writeThenSend=function(N,z){z||(z={});z=qf(N,z);g.uy()||(this.V=!1);Vi.prototype.writeThenSend.call(this,N,z)}; u$.prototype.sendThenWrite=function(N,z,v){z||(z={});z=qf(N,z);g.uy()||(this.V=!1);Vi.prototype.sendThenWrite.call(this,N,z,v)}; u$.prototype.sendAndWrite=function(N,z){z||(z={});z=qf(N,z);g.uy()||(this.V=!1);Vi.prototype.sendAndWrite.call(this,N,z)}; u$.prototype.awaitInitialization=function(){return this.Z.promise};var K4b=g.u7.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.cU("ytNetworklessLoggingInitializationOptions",K4b);g.Mf.prototype.isReady=function(){!this.config_&&jhY()&&(this.config_=g.aq());return!!this.config_};var xuP,zF,RA;xuP=g.u7.ytPubsubPubsubInstance||new g.mN;zF=g.u7.ytPubsubPubsubSubscribedKeys||{};RA=g.u7.ytPubsubPubsubTopicToKeys||{};g.va=g.u7.ytPubsubPubsubIsSynchronous||{};g.mN.prototype.subscribe=g.mN.prototype.subscribe;g.mN.prototype.unsubscribeByKey=g.mN.prototype.xB;g.mN.prototype.publish=g.mN.prototype.publish;g.mN.prototype.clear=g.mN.prototype.clear;g.cU("ytPubsubPubsubInstance",xuP);g.cU("ytPubsubPubsubTopicToKeys",RA);g.cU("ytPubsubPubsubIsSynchronous",g.va); g.cU("ytPubsubPubsubSubscribedKeys",zF);var Jr2={};g.y(eD,g.H);eD.prototype.append=function(N){if(!this.W)throw Error("This does not support the append operation");N=N.Nu();this.Nu().appendChild(N)}; g.y(Ji,eD);Ji.prototype.Nu=function(){return this.V};g.y(yM,g.H);yM.prototype.onTouchStart=function(N){this.L=!0;this.W=N.touches.length;this.V.isActive()&&(this.V.stop(),this.B=!0);N=N.touches;this.G=dLb(this,N)||N.length!=1;var z=N.item(0);this.G||!z?this.J=this.Y=Infinity:(this.Y=z.clientX,this.J=z.clientY);for(z=this.Z.length=0;z=0)}if(z||N&&Math.pow(N.clientX-this.Y,2)+Math.pow(N.clientY-this.J,2)>25)this.N=!0}; yM.prototype.onTouchEnd=function(N){var z=N.changedTouches;z&&this.L&&this.W==1&&!this.N&&!this.B&&!this.G&&dLb(this,z)&&(this.qd=N,this.V.start());this.W=N.touches.length;this.W===0&&(this.N=this.L=!1,this.Z.length=0);this.B=!1};var f1=Date.now().toString();var n1={};var g3=Symbol("injectionDeps");$L.prototype.toString=function(){return"InjectionToken("+this.name+")"}; F4u.prototype.resolve=function(N){return N instanceof UD?p1(this,N.key,[],!0):p1(this,N,[])};var kL;var VM=window;var Ha=g.yj("web_enable_lifecycle_monitoring")&&SD()!==0,gAx=g.yj("web_enable_lifecycle_monitoring");ULm.prototype.cancel=function(){for(var N=g.f(this.V),z=N.next();!z.done;z=N.next())z=z.value,z.jobId===void 0||z.Fh||this.scheduler.gG(z.jobId),z.Fh=!0;this.W.resolve()};g.J=oA.prototype;g.J.install=function(N){this.plugins.push(N);return this}; g.J.uninstall=function(){var N=this;g.SI.apply(0,arguments).forEach(function(z){z=N.plugins.indexOf(z);z>-1&&N.plugins.splice(z,1)})}; g.J.transition=function(N,z){var v=this;Ha&&mLm(this.state);var R=this.transitions.find(function(Z){return Array.isArray(Z.from)?Z.from.find(function(Y){return Y===v.state&&Z.to===N}):Z.from===v.state&&Z.to===N}); if(R){this.W&&(Bmf(this.W),this.W=void 0);p97(this,N,z);this.state=N;Ha&&ED(this.state);R=R.action.bind(this);var C=this.plugins.filter(function(Z){return Z[N]}).map(function(Z){return Z[N]}); R(Aru(this,C),z)}else throw Error("no transition specified from "+this.state+" to "+N);}; g.J.IT0=function(N){var z=g.SI.apply(1,arguments);g.Np();for(var v=g.f(N),R=v.next(),C={};!R.done;C={Yp:void 0},R=v.next())C.Yp=R.value,z$u(function(Z){return function(){bD(Z.Yp.name);OD(function(){return Z.Yp.callback.apply(Z.Yp,g.U(z))}); ti(Z.Yp.name)}}(C))}; g.J.cdS=function(N){var z=g.SI.apply(1,arguments),v,R,C,Z;return g.S(function(Y){Y.W==1&&(g.Np(),v=g.f(N),R=v.next(),C={});if(Y.W!=3){if(R.done)return Y.Zp(0);C.Z6=R.value;C.oN=void 0;Z=function(Q){return function(){bD(Q.Z6.name);var L=OD(function(){return Q.Z6.callback.apply(Q.Z6,g.U(z))}); Lb(L)?Q.oN=g.yj("web_lifecycle_error_handling_killswitch")?L.then(function(){ti(Q.Z6.name)}):L.then(function(){ti(Q.Z6.name)},function(K){$Lv(K); ti(Q.Z6.name)}):ti(Q.Z6.name)}}(C); z$u(Z);return C.oN?g.k(Y,C.oN,3):Y.Zp(3)}C={Z6:void 0,oN:void 0};R=v.next();return Y.Zp(2)})}; g.J.fS=function(N){var z=g.SI.apply(1,arguments),v=this,R=N.map(function(C){return{BJ:function(){bD(C.name);OD(function(){return C.callback.apply(C,g.U(z))}); ti(C.name)}, priority:DK(v,C)}}); R.length&&(this.W=new ULm(R))}; g.i7.Object.defineProperties(oA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var XX;g.y(IA,oA);IA.prototype.B=function(N,z){var v=this;this.V=g.M0(0,function(){v.currentState==="application_navigating"&&v.transition("none")},5E3); N(z==null?void 0:z.event)}; IA.prototype.G=function(N,z){this.V&&(g.oH.gG(this.V),this.V=null);N(z==null?void 0:z.event)};var JT=[];g.cU("yt.logging.transport.getScrapedGelPayloads",function(){return JT});r3.prototype.storePayload=function(N,z){N=uD(N);this.store[N]?this.store[N].push(z):(this.W={},this.store[N]=[z]);this.V++;g.yj("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return N}; r3.prototype.smartExtractMatchingEntries=function(N){if(!N.keys.length)return[];for(var z=qq(this,N.keys.splice(0,1)[0]),v=[],R=0;R=0){R=!1;break a}}R=!0}R&&(z=hT(z))&&this.Pn(z)}}; g.J.o2=function(N){return N}; g.J.onTouchStart=function(N){this.PL.onTouchStart(N)}; g.J.onTouchMove=function(N){this.PL.onTouchMove(N)}; g.J.onTouchEnd=function(N){if(this.PL)this.PL.onTouchEnd(N)}; g.J.Pn=function(N){this.layoutId?this.yp.executeCommand(N,this.layoutId):(N=new g.XS("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kE(N))}; g.J.createServerVe=function(N,z){this.api.createServerVe(N,this);this.api.setTrackingParams(N,z)}; g.J.logVisibility=function(N,z){this.api.hasVe(N)&&this.api.logVisibility(N,z,this.interactionLoggingClientData)}; g.J.AO=function(){this.clear(null);this.Kb(this.kJ);for(var N=g.f(this.K0),z=N.next();!z.done;z=N.next())this.Kb(z.value);g.lG.prototype.AO.call(this)};g.y(pK,WS); pK.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);this.V=z;if(z.text==null&&z.icon==null)g.PN(Error("ButtonRenderer did not have text or an icon set."));else{switch(z.style||null){case "STYLE_UNKNOWN":N="ytp-ad-button-link";break;default:N=null}N!=null&&g.Ye(this.element,N);z.text!=null&&(N=g.xt(z.text),g.ez(N)||(this.element.setAttribute("aria-label",N),this.Z=new g.lG({K:"span",U:"ytp-ad-button-text",OT:N}),g.b(this,this.Z),this.Z.Nd(this.element)));z.accessibilityData&&z.accessibilityData.accessibilityData&& z.accessibilityData.accessibilityData.label&&!g.ez(z.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",z.accessibilityData.accessibilityData.label);z.icon!=null&&(z=gN(z.icon,this.N),z!=null&&(this.W=new g.lG({K:"span",U:"ytp-ad-button-icon",j:[z]}),g.b(this,this.W)),this.G?Rz(this.element,this.W.element,0):this.W.Nd(this.element))}}; pK.prototype.clear=function(){this.hide()}; pK.prototype.onClick=function(N){WS.prototype.onClick.call(this,N);N=g.f($p7(this));for(var z=N.next();!z.done;z=N.next())z=z.value,this.layoutId?this.yp.executeCommand(z,this.layoutId):g.kE(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.y(kt,g.H);kt.prototype.AO=function(){this.W&&g.T6(this.W);this.V.clear();PS=null;g.H.prototype.AO.call(this)}; kt.prototype.register=function(N,z){z&&this.V.set(N,z)}; var PS=null;g.y(Ed,WS); Ed.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);N=z.hoverText||null;z=z.button&&g.t(z.button,g.E9)||null;z==null?g.kE(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new pK(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,void 0,void 0,void 0,void 0,this.Z),g.b(this,this.button),this.button.init(Yt("button"),z,this.macros),N&&this.button.element.setAttribute("aria-label",g.xt(N)),this.button.Nd(this.element),this.J&&!g.Zd(this.button.element, "ytp-ad-clickable")&&g.Ye(this.button.element,"ytp-ad-clickable"),this.Z&&g.Ye(this.button.element,"ytp-ad-hover-text-button--clean-player"),N&&(this.W=new g.lG({K:"div",U:"ytp-ad-hover-text-container"}),this.G&&(z=new g.lG({K:"div",U:"ytp-ad-hover-text-callout"}),z.Nd(this.W.element),g.b(this,z)),g.b(this,this.W),this.W.Nd(this.element),z=Vr(N),Rz(this.W.element,z,0)),this.show())}; Ed.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();WS.prototype.hide.call(this)}; Ed.prototype.show=function(){this.button&&this.button.show();WS.prototype.show.call(this)};g.y(HS,WS); HS.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);v=(N=z.thumbnail)&&hu(N)||"";g.ez(v)?Math.random()<.01&&g.PN(Error("Found AdImage without valid image URL")):(this.V?g.SB(this.element,"backgroundImage","url("+v+")"):rL(this.element,{src:v}),rL(this.element,{alt:N&&N.accessibility&&N.accessibility.label||""}),z&&z.adRendererCommands&&z.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; HS.prototype.clear=function(){this.hide()};g.y(o$,WS);g.J=o$.prototype;g.J.hide=function(){WS.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.J.show=function(){this.Z=document.activeElement;WS.prototype.show.call(this);this.N.focus()}; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);this.W=z;z.dialogMessages||z.title!=null?z.confirmLabel==null?g.kE(Error("ConfirmDialogRenderer.confirmLabel was not set.")):z.cancelLabel==null?g.kE(Error("ConfirmDialogRenderer.cancelLabel was not set.")):gp2(this,z):g.kE(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.J.clear=function(){g.Be(this.V);this.hide()}; g.J.eA=function(){this.hide()}; g.J.hU=function(){var N=this.W.cancelEndpoint;N&&(this.layoutId?this.yp.executeCommand(N,this.layoutId):g.kE(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.J.ZA=function(){var N=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;N&&(this.layoutId?this.yp.executeCommand(N,this.layoutId):g.kE(Error("Missing layoutId for confirm dialog.")));this.hide()};g.y(D9,WS);g.J=D9.prototype; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);this.Z=z;if(z.defaultText==null&&z.defaultIcon==null)g.kE(Error("ToggleButtonRenderer must have either text or icon set."));else if(z.defaultIcon==null&&z.toggledIcon!=null)g.kE(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(z.style){switch(z.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":N="ytp-ad-toggle-button-default-style";break;default:N=null}N!=null&&g.Ye(this.N,N)}N={};z.defaultText? (v=g.xt(z.defaultText),g.ez(v)||(N.buttonText=v,this.api.D().experiments.j8("a11y_h5_associate_survey_question")||this.V.setAttribute("aria-label",v),this.api.D().experiments.j8("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",v))):g.um(this.Rd,!1);z.defaultTooltip&&(N.tooltipText=z.defaultTooltip,this.V.hasAttribute("aria-label")||this.W.setAttribute("aria-label",z.defaultTooltip));z.defaultIcon?(v=gN(z.defaultIcon),this.updateValue("untoggledIconTemplateSpec",v),z.toggledIcon?(this.Vp= !0,v=gN(z.toggledIcon),this.updateValue("toggledIconTemplateSpec",v)):(g.um(this.J,!0),g.um(this.G,!1)),g.um(this.V,!1)):g.um(this.W,!1);g.wE(N)||this.update(N);z.isToggled&&(g.Ye(this.N,"ytp-ad-toggle-button-toggled"),this.toggleButton(z.isToggled));bG(this);this.S(this.element,"change",this.Bs);this.show()}}; g.J.onClick=function(N){this.K0.length>0&&(this.toggleButton(!this.isToggled()),this.Bs());WS.prototype.onClick.call(this,N)}; g.J.Bs=function(){g.QY(this.N,"ytp-ad-toggle-button-toggled",this.isToggled());for(var N=g.f(pzK(this,this.isToggled())),z=N.next();!z.done;z=N.next())z=z.value,this.layoutId?this.yp.executeCommand(z,this.layoutId):g.kE(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);bG(this)}; g.J.clear=function(){this.hide()}; g.J.toggleButton=function(N){g.QY(this.N,"ytp-ad-toggle-button-toggled",N);this.V.checked=N;bG(this)}; g.J.isToggled=function(){return this.V.checked};g.y(tu,$a);tu.prototype.G=function(N){if(Array.isArray(N)){N=g.f(N);for(var z=N.next();!z.done;z=N.next())z=z.value,z instanceof kJx&&this.N(z)}};g.y(Od,WS);g.J=Od.prototype;g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);z.reasons?z.confirmLabel==null?g.kE(Error("AdFeedbackRenderer.confirmLabel was not set.")):(z.cancelLabel==null&&g.PN(Error("AdFeedbackRenderer.cancelLabel was not set.")),z.title==null&&g.PN(Error("AdFeedbackRenderer.title was not set.")),EpY(this,z)):g.kE(Error("AdFeedbackRenderer.reasons were not set."))}; g.J.clear=function(){FS(this.G);FS(this.J);this.N.length=0;this.hide()}; g.J.hide=function(){this.V&&this.V.hide();this.W&&this.W.hide();WS.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.J.show=function(){this.V&&this.V.show();this.W&&this.W.show();this.Z=document.activeElement;WS.prototype.show.call(this);this.G.focus()}; g.J.wU=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.J.KQT=function(){this.hide()}; I$.prototype.Nu=function(){return this.V.element}; I$.prototype.getCommand=function(){return this.W}; I$.prototype.isChecked=function(){return this.Z.checked};g.y(Xo,o$);Xo.prototype.eA=function(N){o$.prototype.eA.call(this,N);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Xo.prototype.hU=function(N){o$.prototype.hU.call(this,N);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Xo.prototype.ZA=function(N){o$.prototype.ZA.call(this,N);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.y(rN,WS);g.J=rN.prototype; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);this.G=z;if(z.dialogMessage==null&&z.title==null)g.kE(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{z.confirmLabel==null&&g.PN(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(N=z.closeOverlayRenderer&&g.t(z.closeOverlayRenderer,g.E9)||null)this.V=new pK(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.b(this,this.V),this.V.init(Yt("button"),N,this.macros),this.V.Nd(this.element);z.title&&(N=g.xt(z.title),this.updateValue("title",N));if(z.adReasons)for(N=z.adReasons,v=0;v=this.tO?(this.Vp.hide(),this.UT=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(N=Math.max(0,Math.ceil((this.tO-N)/1E3)),N!=this.xT&&(qg(this.Z,{TIME_REMAINING:String(N)}),this.xT=N)))}};g.y(CZ,Mg);g.J=CZ.prototype; g.J.init=function(N,z,v){Mg.prototype.init.call(this,N,z,v);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if((N=z.actionButton&&g.t(z.actionButton,g.E9))&&N.navigationEndpoint){var R=this.api.getVideoData(2);if(R!=null)if(z.image&&z.image.thumbnail){var C=z.image.thumbnail.thumbnails;C!=null&&C.length>0&&g.ez(g.yp(C[0].url))&&(C[0].url=R.profilePicture)}else g.PN(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(Yt("ad-image"),z.image,v);this.G.init(Yt("ad-text"), z.headline,v);this.N.init(Yt("ad-text"),z.description,v);this.W.init(Yt("button"),N,v);v=rs(this.W.element);XQ(this.W.element,v+" This link opens in new tab");this.Vp=N.navigationEndpoint;this.api.IQ()||this.show();this.api.D().X("enable_larger_flyout_cta_on_desktop")&&(this.e8("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.e8("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.e8("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.e8("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.e8("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.e8("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.W.element.classList.add("ytp-flyout-cta-action-button-large"),this.W.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.e8("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Xj.bind(this));this.Rd=z.startMs||0;wN(this)}else g.kE(Error("FlyoutCtaRenderer has no valid action button."));else g.kE(Error("FlyoutCtaRenderer has no description AdText."));else g.kE(Error("FlyoutCtaRenderer has no headline AdText."));else g.PN(Error("FlyoutCtaRenderer has no image."))}; g.J.onClick=function(N){Mg.prototype.onClick.call(this,N);this.api.pauseVideo();!g.ZQ(this.W.element,N.target)&&this.Vp&&(this.layoutId?this.yp.executeCommand(this.Vp,this.layoutId):g.kE(Error("Missing layoutId for flyout cta.")))}; g.J.Y3=function(){if(this.V){var N=this.V.getProgressState();(N&&N.current||this.tO)&&1E3*N.current>=this.Rd&&(N2(this),g.jW(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.J.hk=function(){this.clear()}; g.J.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Xj.bind(this))}; g.J.show=function(){this.W&&this.W.show();Mg.prototype.show.call(this)}; g.J.hide=function(){this.W&&this.W.hide();Mg.prototype.hide.call(this)}; g.J.Xj=function(N){N=="hidden"?this.show():this.hide()};g.y(Z0,WS);g.J=Z0.prototype; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);this.V=z;if(this.V.rectangle)for(N=this.V.likeButton&&g.t(this.V.likeButton,sX),z=this.V.dislikeButton&&g.t(this.V.dislikeButton,sX),this.Z.init(Yt("toggle-button"),N,v),this.W.init(Yt("toggle-button"),z,v),this.S(this.element,"change",this.Ln),this.N.show(100),this.show(),v=g.f(this.V&&this.V.impressionCommands||[]),N=v.next();!N.done;N=v.next())N=N.value,this.layoutId?this.yp.executeCommand(N,this.layoutId):g.kE(Error("Missing layoutId for instream user sentiment."))}; g.J.clear=function(){this.hide()}; g.J.hide=function(){this.Z.hide();this.W.hide();WS.prototype.hide.call(this)}; g.J.show=function(){this.Z.show();this.W.show();WS.prototype.show.call(this)}; g.J.Ln=function(){sZ7(this.element,"ytp-ad-instream-user-sentiment-selected");this.V.postMessageAction&&this.api.Qp("onYtShowToast",this.V.postMessageAction);this.N.hide()}; g.J.onClick=function(N){this.K0.length>0&&this.Ln();WS.prototype.onClick.call(this,N)};g.y(YJ,g.H);g.J=YJ.prototype;g.J.AO=function(){this.reset();g.H.prototype.AO.call(this)}; g.J.reset=function(){g.Be(this.N);this.G=!1;this.V&&this.V.stop();this.B.stop();this.Z&&(this.Z=!1,this.L.play())}; g.J.start=function(){this.reset();this.N.S(this.W,"mouseover",this.Fj,this);this.N.S(this.W,"mouseout",this.U8,this);this.qd&&(this.N.S(this.W,"focusin",this.Fj,this),this.N.S(this.W,"focusout",this.U8,this));this.V?this.V.start():(this.G=this.Z=!0,g.SB(this.W,{opacity:this.J}))}; g.J.Fj=function(){this.Z&&(this.Z=!1,this.L.play());this.B.stop();this.V&&this.V.stop()}; g.J.U8=function(){this.G?this.B.start():this.V&&this.V.start()}; g.J.Ez=function(){this.Z||(this.Z=!0,this.Y.play(),this.G=!0)};var c6U=[new i4("b.f_",!1,0),new i4("j.s_",!1,2),new i4("r.s_",!1,4),new i4("e.h_",!1,6),new i4("i.s_",!0,8),new i4("s.t_",!1,10),new i4("p.h_",!1,12),new i4("s.i_",!1,14),new i4("f.i_",!1,16),new i4("a.b_",!1,18),new i4("a.o_",!1),new i4("g.o_",!1,22),new i4("p.i_",!1,24),new i4("p.m_",!1),new i4("n.k_",!0,20),new i4("i.f_",!1),new i4("a.s_",!0),new i4("m.c_",!1),new i4("n.h_",!1,26),new i4("o.p_",!1),new i4("m.p_",!0,28),new i4("o.a_",!1)].reduce(function(N,z){N[z.W]=z;return N},{});g.y(GX,Mg);g.J=GX.prototype; g.J.init=function(N,z,v){Mg.prototype.init.call(this,N,z,v);this.Vp=z;(this.Rd=Mtu(this))&&g.PN(Error("hasAdControlInClickCommands_ is true."));if(!z||g.wE(z))g.kE(Error("SkipButtonRenderer was not specified or empty."));else if(!z.message||g.wE(z.message))g.kE(Error("SkipButtonRenderer.message was not specified or empty."));else{N=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};z=gN(N);z==null?g.kE(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+N.iconType+".")): (this.Z=new g.lG({K:"button",GU:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{K:"span",U:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[z]}]}),g.b(this,this.Z),this.Z.Nd(this.N.element),this.W=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,"ytp-ad-skip-button-text"),this.G&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"),this.W.init(Yt("ad-text"),this.Vp.message,v),g.b(this,this.W),Rz(this.Z.element,this.W.element, 0));var R=R===void 0?null:R;v=this.api.D();!(this.K0.length>0)&&v.W&&(nu?0:"ontouchstart"in document.documentElement&&(urf()||sL()))&&(this.Kb(this.kJ),R&&this.Kb(R),this.K0=[this.S(this.element,"touchstart",this.onTouchStart,this),this.S(this.element,"touchmove",this.onTouchMove,this),this.S(this.element,"touchend",this.onTouchEnd,this)])}}; g.J.clear=function(){this.tO.reset();this.hide()}; g.J.hide=function(){this.N.hide();this.W&&this.W.hide();N2(this);Mg.prototype.hide.call(this)}; g.J.onClick=function(N){if(this.Z!=null){if(N){var z=N||window.event;z.returnValue=!1;z.preventDefault&&z.preventDefault()}var v;if(r62(N,{contentCpn:((v=this.api.getVideoData(1))==null?void 0:v.clientPlaybackNonce)||""})===0)this.api.Qp("onAbnormalityDetected");else if(Mg.prototype.onClick.call(this,N),this.publish("j"),this.api.Qp("onAdSkip"),this.UT||!this.Rd)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.J.o2=function(N){if(!this.UT)return this.Rd&&LZ("SkipButton click commands not pruned while ALC exist"),N;var z,v=(z=g.t(N,g.xJ))==null?void 0:z.commands;if(!v)return N;N=[];for(z=0;z=this.G&&wz_(this,!0)};g.y(JX,pK);JX.prototype.init=function(N,z,v){pK.prototype.init.call(this,N,z,v);N=!1;z.text!=null&&(N=g.xt(z.text),N=!g.ez(N));N?z.navigationEndpoint==null?g.PN(Error("No visit advertiser clickthrough provided in renderer,")):z.style!=="STYLE_UNKNOWN"?g.PN(Error("Button style was not a link-style type in renderer,")):this.show():g.PN(Error("No visit advertiser text was present in the renderer."))};g.y(yW,WS); yW.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);N=z.text;g.ez(Ga(N))?g.PN(Error("SimpleAdBadgeRenderer has invalid or empty text")):(N&&N.text&&(z=N.text,this.Z&&!this.W&&(z=this.api.D(),z=N.text+" "+(z&&z.W?"\u2022":"\u00b7")),z={text:z,isTemplated:N.isTemplated},N.style&&(z.style=N.style),N.targetId&&(z.targetId=N.targetId),N=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),N.init(Yt("simple-ad-badge"),z,v),N.Nd(this.element),g.b(this,N)),this.show())}; yW.prototype.clear=function(){this.hide()};g.y(fZ,iG);g.y(dO,g.jJ);g.J=dO.prototype;g.J.qq=function(){return this.durationMs}; g.J.stop=function(){this.V&&this.JI.Kb(this.V)}; g.J.G4=function(N){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:N.current};this.publish("h")}; g.J.getProgressState=function(){return this.W}; g.J.Vt=function(N){g.WW(N,2)&&this.publish("g")};g.y(sI,g.jJ);g.J=sI.prototype;g.J.qq=function(){return this.durationMs}; g.J.start=function(){this.V||(this.V=!0,this.hT.start())}; g.J.stop=function(){this.V&&(this.V=!1,this.hT.stop())}; g.J.G4=function(){this.iY+=100;var N=!1;this.iY>this.durationMs&&(this.iY=this.durationMs,this.hT.stop(),N=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.iY/1E3};this.publish("h");N&&this.publish("g")}; g.J.getProgressState=function(){return this.W};g.y(nZ,Mg);g.J=nZ.prototype;g.J.init=function(N,z,v){Mg.prototype.init.call(this,N,z,v);var R;if(z==null?0:(R=z.templatedCountdown)==null?0:R.templatedAdText){N=z.templatedCountdown.templatedAdText;if(!N.isTemplated){g.PN(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new cS(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);this.W.init(Yt("ad-text"),N,{});this.W.Nd(this.element);g.b(this,this.W)}this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){N2(this);Mg.prototype.hide.call(this)}; g.J.hk=function(){this.hide()}; g.J.Y3=function(){if(this.V!=null){var N=this.V.getProgressState();if(N!=null&&N.current!=null&&this.W){var z=this.V instanceof dO?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:N.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.V instanceof sI?N.seekableEnd:this.api.getDuration(2,!1);N=N.current;var v,R,C=((v=this.api.getVideoData())==null?0:(R=v.Lb)==null?0:R.call(v))?Math.max(z-N,0):z-N;qg(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.TX(C)), TIME_REMAINING:String(Math.ceil(C))})}}}; g.J.show=function(){wN(this);Mg.prototype.show.call(this)};g.y(m5,cS);m5.prototype.onClick=function(N){cS.prototype.onClick.call(this,N);this.api.onAdUxClicked(this.componentType)};g.y(UI,WS);UI.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(N=z.content){g.YS(this.element,N);var v,R;z=((v=z.interaction)==null?void 0:(R=v.accessibility)==null?void 0:R.label)||N;this.element.setAttribute("aria-label",z)}else g.kE(Error("AdSimpleAttributedString does not have text content"))}; UI.prototype.clear=function(){this.hide()}; UI.prototype.onClick=function(N){WS.prototype.onClick.call(this,N)};g.y(BW,WS); BW.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});(N=z.label)&&N.content&&!g.ez(N.content)?(this.adBadgeText.init(Yt("ad-simple-attributed-string"),new $J(N)),(z=z.adPodIndex)&&z.content&&!g.ez(z.content)&&(this.V=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),this.V.Nd(this.element),g.b(this,this.V),this.V.element.classList.add("ytp-ad-badge__pod-index"),this.V.init(Yt("ad-simple-attributed-string"),new $J(z))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.kE(Error("No label is returned in AdBadgeViewModel."))}; BW.prototype.show=function(){this.adBadgeText.show();var N;(N=this.V)==null||N.show();WS.prototype.show.call(this)}; BW.prototype.hide=function(){this.adBadgeText.hide();var N;(N=this.V)==null||N.hide();WS.prototype.hide.call(this)};g.y(AX,WS);AX.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});(N=z.adPodIndex)&&N.content&&!g.ez(N.content)&&(this.V=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),this.V.Nd(this.element),g.b(this,this.V),this.V.init(Yt("ad-simple-attributed-string"),new $J(N)),z.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()}; AX.prototype.show=function(){var N;(N=this.V)==null||N.show();WS.prototype.show.call(this)}; AX.prototype.hide=function(){var N;(N=this.V)==null||N.hide();WS.prototype.hide.call(this)};g.y(gO,WS); gO.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(z!=null&&z.text){var v;if(((v=z.text)==null?0:v.content)&&!g.ez(z.text.content)){this.V=new g.lG({K:"div",U:"ytp-ad-disclosure-banner__text",OT:z.text.content});g.b(this,this.V);this.V.Nd(this.element);var R,C;N=((R=z.interaction)==null?void 0:(C=R.accessibility)==null?void 0:C.label)||z.text.content;this.element.setAttribute("aria-label",N);var Z;if((Z=z.interaction)==null?0:Z.onTap)this.W=new g.lG({K:"div",U:"ytp-ad-disclosure-banner__chevron",j:[g.fK()]}), g.b(this,this.W),this.W.Nd(this.element);this.show()}}else g.kE(Error("No banner text found in AdDisclosureBanner."))}; gO.prototype.clear=function(){this.hide()};pZ.prototype.getLength=function(){return this.V-this.W};g.y(PW,g.lG);PW.prototype.G4=function(){var N=this.W.getProgressState(),z=N.seekableEnd;this.api.getPresentingPlayerType()===2&&(z=this.Z?this.Z/1E3:N.seekableEnd);N=kJ(new pZ(N.seekableStart,z),N.current,0);this.progressBar.style.width=N*100+"%"}; PW.prototype.onStateChange=function(){g.V1(this.api.D())||(this.api.getPresentingPlayerType()===2?this.V===-1&&(this.show(),this.V=this.W.subscribe("h",this.G4,this),this.G4()):this.V!==-1&&(this.hide(),this.W.xB(this.V),this.V=-1))};g.y(VW,WS); VW.prototype.init=function(N,z,v,R){WS.prototype.init.call(this,N,z,v);if(z.skipOrPreviewRenderer){if(N=g.t(z.skipOrPreviewRenderer,jH))v=new e0(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W,this.J),v.Nd(this.BL),v.init(Yt("skip-button"),N,this.macros),g.b(this,v);if(N=g.t(z.skipOrPreviewRenderer,jH))var C=N.skipOffsetMilliseconds}z.brandInteractionRenderer&&(N=z.brandInteractionRenderer.brandInteractionRenderer,v=new Z0(this.api,this.layoutId,this.interactionLoggingClientData,this.yp), v.Nd(this.Rd),v.init(Yt("instream-user-sentiment"),N,this.macros),g.b(this,v));if(N=g.t(z,w$1))if(N=g.t(N,w$1))v=new CZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W,!!z.showWithoutLinkedMediaLayout),g.b(this,v),v.Nd(this.G),v.init(Yt("flyout-cta"),N,this.macros);R=R&&R.videoAdDurationSeconds;z.adBadgeRenderer&&(v=z.adBadgeRenderer,N=g.t(v,IF),N!=null?(v=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!1),g.b(this,v),v.Nd(this.V),v.init(Yt("ad-badge"), N,this.macros),this.Z=v.element):(N=v.simpleAdBadgeRenderer,N==null&&(N={text:{text:"Anuncio",isTemplated:!1}}),v=new yW(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0),g.b(this,v),v.Nd(this.V),v.init(Yt("simple-ad-badge"),N,this.macros)));z.adPodIndex&&(N=g.t(z.adPodIndex,aR7),N!=null&&(v=new AX(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,v),v.Nd(this.V),v.init(Yt("ad-pod-index"),N)));z.adDurationRemaining&&!z.showWithoutLinkedMediaLayout&&(N=z.adDurationRemaining.adDurationRemainingRenderer, N==null&&(N={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),R=new nZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W,R,!1),g.b(this,R),R.Nd(this.V),R.init(Yt("ad-duration-remaining"),N,this.macros));z.adInfoRenderer&&(R=g.t(z.adInfoRenderer,Vy))&&(N=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.element,void 0,!1),g.b(this,N),this.Z!==null?this.V.insertBefore(N.element,this.Z.nextSibling):N.Nd(this.V), N.init(Yt("ad-info-hover-text-button"),R,this.macros));z.visitAdvertiserRenderer&&(R=g.t(z.visitAdvertiserRenderer,g.E9))&&(N=this.api.D(),N=g.Uu(N)&&N.X("embeds_embc3ds_atb")&&N.X("embeds_embc3ds_atb_no_visinfo"),v=vHu(this)&&this.N&&!N?this.N:this.V)&&(N=new JX(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,N),N.Nd(v),N.init(Yt("visit-advertiser"),R,this.macros),bk(N.element),R=rs(N.element),XQ(N.element,R+" This link opens in new tab"));!(R=this.api.D())||g.k1(R)||g.Uu(R)|| R.controlsType!="3"&&!R.disableOrganicUi||(C=new PW(this.api,this.W,C,!1),C.Nd(this.tO),g.b(this,C));z.adDisclosureBannerRenderer&&(z=g.t(z.adDisclosureBannerRenderer,jPw))&&(C=new gO(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),C.Nd(this.Vp),C.init(Yt("ad-disclosure-banner"),z),g.b(this,C));this.api.D().X("enable_updated_html5_player_focus_style")&&g.Ye(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; VW.prototype.clear=function(){this.hide()};HW.prototype.set=function(N,z,v){v=v!==void 0?Date.now()+v:void 0;this.V.set(N,z,v)}; HW.prototype.get=function(N){return this.V.get(N)}; HW.prototype.remove=function(N){this.V.remove(N)};var C$2=null;var OI=null,It=null,Xf=null,aY7=null;g.cU("yt.www.ads.eventcache.getLastCompanionData",function(){return OI}); g.cU("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.cU("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return It}); g.cU("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Xf}); g.cU("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return aY7});var LjI=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);rO.prototype.handleResponse=function(N,z){if(!z)throw Error("request needs to be passed into ConsistencyService");var v,R;z=((v=z.b6.context)==null?void 0:(R=v.request)==null?void 0:R.consistencyTokenJars)||[];var C;(N=(C=N.responseContext)==null?void 0:C.consistencyTokenJar)&&this.replace(z,N)}; rO.prototype.replace=function(N,z){N=g.f(N);for(var v=N.next();!v.done;v=N.next())delete this.V[v.value.encryptedTokenJarContents];lYK(this,z)};var duW=window.location.hostname.split(".").slice(-2).join("."),AA;cW.getInstance=function(){AA=g.qx("yt.clientLocationService.instance");AA||(AA=new cW,g.cU("yt.clientLocationService.instance",AA));return AA}; g.J=cW.prototype; g.J.setLocationOnInnerTubeContext=function(N){N.client||(N.client={});if(this.V)N.client.locationInfo||(N.client.locationInfo={}),N.client.locationInfo.latitudeE7=Math.floor(this.V.coords.latitude*1E7),N.client.locationInfo.longitudeE7=Math.floor(this.V.coords.longitude*1E7),N.client.locationInfo.horizontalAccuracyMeters=Math.round(this.V.coords.accuracy),N.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)N.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.J.handleResponse=function(N){var z;N=(z=N.responseContext)==null?void 0:z.locationPlayabilityToken;N!==void 0&&(this.locationPlayabilityToken=N,this.V=void 0,g.XI("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=u4(this))&&this.localStorage.set("yt-location-playability-token",N,15552E3):g.P9("YT_CL",JSON.stringify({loctok:N}),15552E3,duW,!0))}; g.J.clearLocationPlayabilityToken=function(N){N==="TVHTML5"?(this.localStorage=u4(this))&&this.localStorage.remove("yt-location-playability-token"):g.S5("YT_CL");this.Z=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.J.getCurrentPositionFromGeolocation=function(){var N=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var z=!1,v=1E4;g.XI("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,v=15E3);return new Promise(function(R,C){navigator.geolocation.getCurrentPosition(function(Z){N.V=Z;R(Z)},function(Z){C(Z)},{enableHighAccuracy:z, maximumAge:0,timeout:v})})}; g.J.createUnpluggedLocationInfo=function(N){var z={};N=N.coords;if(N==null?0:N.latitude)z.latitudeE7=Math.floor(N.latitude*1E7);if(N==null?0:N.longitude)z.longitudeE7=Math.floor(N.longitude*1E7);if(N==null?0:N.accuracy)z.locationRadiusMeters=Math.round(N.accuracy);return z}; g.J.createLocationInfo=function(N){var z={};N=N.coords;if(N==null?0:N.latitude)z.latitudeE7=Math.floor(N.latitude*1E7);if(N==null?0:N.longitude)z.longitudeE7=Math.floor(N.longitude*1E7);return z};g.J=JqU.prototype;g.J.contains=function(N){return Object.prototype.hasOwnProperty.call(this.V,N)}; g.J.get=function(N){if(this.contains(N))return this.V[N]}; g.J.set=function(N,z){this.V[N]=z}; g.J.S7=function(){return Object.keys(this.V)}; g.J.remove=function(N){delete this.V[N]};M2.prototype.getModuleId=function(N){return g.h(N.serviceId.getModuleId())}; M2.prototype.get=function(N){a:{var z=g.h(this.mappings.get(N.toString()));switch(z.type){case "mapping":N=z.value;break a;case "factory":z=z.value();this.mappings.set(N.toString(),{type:"mapping",value:z});N=z;break a;default:N=M8(z)}}return N}; M2.prototype.registerService=function(N,z){this.mappings.set(N.toString(),{type:"mapping",value:z});return N}; new M2;var gF={},yqu=(gF.WEB_UNPLUGGED="^unplugged/",gF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",gF.WEB_UNPLUGGED_OPS="^unplugged/",gF.WEB_UNPLUGGED_PUBLIC="^unplugged/",gF.WEB_CREATOR="^creator/",gF.WEB_KIDS="^kids/",gF.WEB_EXPERIMENTS="^experiments/",gF.WEB_MUSIC="^music/",gF.WEB_REMIX="^music/",gF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",gF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",gF);z4.prototype.B=function(N,z,v){z=z===void 0?{}:z;v=v===void 0?LG:v;var R={context:g.q2(N.clickTrackingParams,!1,this.N)};var C=this.W(N);if(C){this.V(R,C,z);var Z;z=g.N3(this.Z());(C=(Z=g.t(N.commandMetadata,g.dF))==null?void 0:Z.apiUrl)&&(z=C);Z=Kq_(EF(z));N=Object.assign({},{command:N},void 0);R={input:Z,TC:hr(Z),b6:R,config:N};R.config.zo?R.config.zo.identity=v:R.config.zo={identity:v};return R}v=new g.XS("Error: Failed to create Request from Command.",N);g.kE(v)}; g.i7.Object.defineProperties(z4.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.y(lv,z4);g.y(W_,lv);W_.prototype.B=function(){return{input:"/getDatasyncIdsEndpoint",TC:hr("/getDatasyncIdsEndpoint","GET"),b6:{}}}; W_.prototype.Z=function(){return[]}; W_.prototype.W=function(){}; W_.prototype.V=function(){};var sI9={},wdu=(sI9.GET_DATASYNC_IDS=wO(W_),sI9);var pd={},TLZ=(pd["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",pd["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",pd["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",pd["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",pd["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",pd["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",pd["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", pd["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",pd["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",pd["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",pd["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",pd["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",pd["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",pd["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",pd["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", pd["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",pd["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",pd["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",pd["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",pd["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",pd["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",pd["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", pd["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",pd.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",pd["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",pd["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",pd["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",pd["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",pd["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",pd["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", pd["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",pd["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",pd["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",pd["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",pd["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",pd["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",pd["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",pd["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",pd["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",pd["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",pd.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",pd["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",pd["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",pd["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",pd["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",pd["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",pd["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",pd["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",pd["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",pd["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",pd["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",pd["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pd["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pd["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",pd["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",pd["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",pd["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",pd["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",pd["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",pd["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",pd["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",pd["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", pd["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",pd["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",pd["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",pd["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",pd["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",pd["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",pd["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",pd["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",pd["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", pd["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",pd["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",pd["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",pd["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",pd["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",pd["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",pd["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",pd["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", pd),kG={},mfu=(kG.auto_search="LATENCY_ACTION_AUTO_SEARCH",kG.ad_to_ad="LATENCY_ACTION_AD_TO_AD",kG.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",kG.app_startup="LATENCY_ACTION_APP_STARTUP",kG.browse="LATENCY_ACTION_BROWSE",kG.cast_splash="LATENCY_ACTION_CAST_SPLASH",kG.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",kG.channels="LATENCY_ACTION_CHANNELS",kG.chips="LATENCY_ACTION_CHIPS",kG.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",kG.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", kG.editor="LATENCY_ACTION_EDITOR",kG.embed="LATENCY_ACTION_EMBED",kG.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",kG.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",kG.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",kG.explore="LATENCY_ACTION_EXPLORE",kG.favorites="LATENCY_ACTION_FAVORITES",kG.home="LATENCY_ACTION_HOME",kG.inboarding="LATENCY_ACTION_INBOARDING",kG.landing="LATENCY_ACTION_LANDING",kG.library="LATENCY_ACTION_LIBRARY",kG.live= "LATENCY_ACTION_LIVE",kG.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",kG.management="LATENCY_ACTION_MANAGEMENT",kG.mini_app="LATENCY_ACTION_MINI_APP_PLAY",kG.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",kG.onboarding="LATENCY_ACTION_ONBOARDING",kG.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",kG.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",kG.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",kG.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", kG.prebuffer="LATENCY_ACTION_PREBUFFER",kG.prefetch="LATENCY_ACTION_PREFETCH",kG.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",kG.profile_switcher="LATENCY_ACTION_LOGIN",kG.projects="LATENCY_ACTION_PROJECTS",kG.reel_watch="LATENCY_ACTION_REEL_WATCH",kG.results="LATENCY_ACTION_RESULTS",kG.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",kG.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",kG.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",kG.review="LATENCY_ACTION_REVIEW",kG.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",kG.search_ui="LATENCY_ACTION_SEARCH_UI",kG.search_suggest="LATENCY_ACTION_SUGGEST",kG.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",kG.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",kG.seek="LATENCY_ACTION_PLAYER_SEEK",kG.settings="LATENCY_ACTION_SETTINGS",kG.store="LATENCY_ACTION_STORE",kG.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",kG.tenx="LATENCY_ACTION_TENX",kG.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",kG.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", kG.watch="LATENCY_ACTION_WATCH",kG.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",kG["watch,watch7"]="LATENCY_ACTION_WATCH",kG["watch,watch7_html5"]="LATENCY_ACTION_WATCH",kG["watch,watch7ad"]="LATENCY_ACTION_WATCH",kG["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",kG.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",kG.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",kG.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",kG.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",kG.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",kG.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",kG.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",kG.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",kG);Object.assign(mfu,TLZ);g.y(T4,KG);var oHU=new Jq("aft-recorded",T4);var Ffw=g.u7.ytLoggingGelSequenceIdObj_||{};g.cU("ytLoggingGelSequenceIdObj_",Ffw);var mc=g.u7.ytLoggingLatencyUsageStats_||{};g.cU("ytLoggingLatencyUsageStats_",mc);Fh.prototype.tick=function(N,z,v,R){$r(this,"tick_"+N+"_"+z)||g.aX("latencyActionTicked",{tickName:N,clientActionNonce:z},{timestamp:v,cttAuthInfo:R})}; Fh.prototype.info=function(N,z,v){var R=Object.keys(N).join("");$r(this,"info_"+R+"_"+z)||(N=Object.assign({},N),N.clientActionNonce=z,g.aX("latencyActionInfo",N,{cttAuthInfo:v}))}; Fh.prototype.jspbInfo=function(N,z,v){for(var R="",C=0;C=C.length?(z.append(C),N-=C.length):N?(z.append(new Uint8Array(C.buffer,C.byteOffset,N)),v.append(new Uint8Array(C.buffer,C.byteOffset+N,C.length-N)),N=0):v.append(C);return{x_:z,EA:v}}; g.J.isFocused=function(N){return N>=this.oT&&N=64&&(this.G.set(N.subarray(0,64-this.W),this.W),z=64-this.W,this.W=0,Dqv(this,this.G,0));for(;z+64<=v;z+=64)Dqv(this,N,z);z=this.start&&(N=2&&v.ssdaiAdsConfig&&LZ("Unexpected ad placement renderers length",N.slot,null,{length:R.length});var C;((C=v.adSlots)==null?0:C.some(function(Z){var Y,Q;return((Y=g.t(Z,og))==null?void 0:(Q=Y.adSlotMetadata)==null?void 0:Q.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||R.some(function(Z){var Y,Q,L,K; return!!((Y=Z.renderer)==null?0:(Q=Y.linearAdSequenceRenderer)==null?0:(L=Q.linearAds)==null?0:L.length)||!((K=Z.renderer)==null||!K.instreamVideoAdRenderer)})||Lnx(N)})}; ZA.prototype.Lv=function(){cTm(this.V)};YU.prototype.B8=function(){var N=this;u8u(this.W,function(){var z=CM(N.slot.clientMetadata,"metadata_type_ad_break_request_data");return z.cueProcessedMs?N.V.get().fetch({zk:z.getAdBreakUrl,zf:new g.zt(z.sQ,z.Hv),cueProcessedMs:z.cueProcessedMs}):N.V.get().fetch({zk:z.getAdBreakUrl,zf:new g.zt(z.sQ,z.Hv)})})}; YU.prototype.Lv=function(){cTm(this.W)};ia.prototype.B8=function(){var N=this.slot.clientMetadata,z,v=(z=this.slot.fulfilledLayout)!=null?z:CM(N,"metadata_type_fulfilled_layout");Uz7(this.callback,this.slot,v)}; ia.prototype.Lv=function(){eR(this.callback,this.slot,new q("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")};a2.prototype.build=function(N,z){return z.fulfilledLayout||jZ(z,{aP:["metadata_type_fulfilled_layout"]})?new ia(N,z):this.Z(N,z)};g.y(Qu,a2); Qu.prototype.Z=function(N,z){if(jZ(z,{aP:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ZA(N,z,this.V,this.W,this.nG,this.zU,this.sT,this.C0,this.Vy);if(jZ(z,{aP:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new YU(N,z,this.V,this.W,this.nG,this.zU);throw new q("Unsupported slot with type: "+z.slotType+" and client metadata: "+ZL(z.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.y(L7,a2);L7.prototype.Z=function(N,z){throw new q("Unsupported slot with type: "+z.slotType+" and client metadata: "+ZL(z.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.J=KnO.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){}; g.J.release=function(){}; g.J.startRendering=function(N){if(N.layoutId!==this.layout.layoutId)this.callback.n5(this.slot,N,new vL("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 z=CM(N.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Qh(this.slot,N),BJO(this.Z, this.slot,z)):LZ("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,N)}}; g.J.T4=function(N,z){N.layoutId!==this.layout.layoutId?this.callback.n5(this.slot,N,new vL("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.P5(this.slot,N,z),Wn2(this),GaI(this))};g.y(xU,g.jJ);g.J=xU.prototype;g.J.l$=function(){return this.W.slot}; g.J.lS=function(){return this.W.layout}; g.J.init=function(){this.Z.get().addListener(this)}; g.J.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.J.yM=function(){}; g.J.lR=function(){}; g.J.Ss=function(){}; g.J.u9=function(){}; g.J.startRendering=function(N){var z=this;Gt(this.W,N,function(){return void z.Xx()})}; g.J.Xx=function(){this.Z.get().Xx(this.V)}; g.J.T4=function(N,z){var v=this;Gt(this.W,N,function(){var R=v.Z.get();D5I(R,v.V,3);v.V=[];v.callback.P5(v.slot,N,z)})}; g.J.AO=function(){this.Z.HL()||this.Z.get().removeListener(this);g.jJ.prototype.AO.call(this)}; g.i7.Object.defineProperties(xU.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});Fg.prototype.yl=function(N,z){z=z===void 0?!1:z;var v=(this.Z.get(N)||[]).concat();if(z=z&&yub(N)){var R=this.Z.get(z);R&&v.push.apply(v,g.U(R))}Uj(this,N,v);this.V.add(N);z&&this.V.add(z)}; Fg.prototype.h0=function(N,z){z=z===void 0?!1:z;if(!this.V.has(N)){var v=z&&yub(N);v&&(z=!this.V.has(v));this.yl(N,z)}};g.y(s$m,iG);g.y(kU,xU);g.J=kU.prototype;g.J.WD=function(N,z){f7("ads-engagement-panel-layout",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),g.t(this.lS().renderingContent,i2),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(z,v,R,C,Z){return new s$m(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};g.y(FnU,iG);g.y(PA,xU);g.J=PA.prototype;g.J.WD=function(N,z){f7("banner-image",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),g.t(this.lS().renderingContent,ZD),this.callback,"metadata_type_banner_image_layout_view_model",function(z,v,R,C,Z){return new FnU(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};g.y(Vu,iG);g.y(SZ,xU);g.J=SZ.prototype;g.J.WD=function(N,z){f7("action-companion",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),g.t(this.lS().renderingContent,v4),this.callback,"metadata_type_action_companion_ad_renderer",function(z,v,R,C,Z){return new Vu(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){z.layoutId===this.layout.layoutId?this.Dp.h0("impression"):this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};g.y($gv,iG);g.y(Ej,xU);g.J=Ej.prototype;g.J.WD=function(N,z){f7("image-companion",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),g.t(this.lS().renderingContent,Rg),this.callback,"metadata_type_image_companion_ad_renderer",function(z,v,R,C,Z){return new $gv(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){z.layoutId===this.layout.layoutId?this.Dp.h0("impression"):this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};g.y(BNu,iG);g.y(hn,xU);g.J=hn.prototype;g.J.WD=function(N,z){f7("shopping-companion",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(z,v,R,C,Z){return new BNu(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){z.layoutId===this.layout.layoutId?this.Dp.h0("impression"):this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};g.y(o2,xU);g.J=o2.prototype;g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(z,v,R,C,Z){return new Vu(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(){}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)}; g.J.WD=function(){};g.J=VJx.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){this.C0.get().addListener(this);this.C0.get().W8.push(this);var N=CM(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=CM(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");dV(this.layout.OR)&&vI(this.rW.get(),this.layout.layoutId,{bQ:z,aO:N,listener:this})}; g.J.release=function(){this.C0.get().removeListener(this);Plu(this.C0.get(),this);dV(this.layout.OR)&&RF(this.rW.get(),this.layout.layoutId)}; g.J.startRendering=function(N){this.callback.Qh(this.slot,N)}; g.J.T4=function(N,z){ZBf(this.zU.get())&&!this.V&&(this.Dp.h0("abandon"),this.V=!0);this.callback.P5(this.slot,N,z)}; g.J.d5=function(N){switch(N.id){case "part2viewed":this.Dp.h0("start");this.Dp.h0("impression");break;case "videoplaytime25":this.Dp.h0("first_quartile");break;case "videoplaytime50":this.Dp.h0("midpoint");break;case "videoplaytime75":this.Dp.h0("third_quartile");break;case "videoplaytime100":ZBf(this.zU.get())?this.V||(this.Dp.h0("complete"),this.V=!0):this.Dp.h0("complete");p7(this.Dp)&&An(this.Dp,Infinity,!0);YSu(this.zU.get())&&HA(this.W,Infinity,!0);break;case "engagedview":p7(this.Dp)||this.Dp.h0("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:LZ("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.J.onVolumeChange=function(){}; g.J.jo=function(){}; g.J.eI=function(){}; g.J.H1=function(){}; g.J.onFullscreenToggled=function(){}; g.J.BD=function(){}; g.J.I4=function(){}; g.J.NR=function(N){YSu(this.zU.get())&&HA(this.W,N*1E3,!1);p7(this.Dp)&&An(this.Dp,N*1E3,!1)}; g.J.Ma=function(){}; g.J.yR=function(){this.Dp.h0("active_view_measurable")}; g.J.xV=function(){this.Dp.h0("active_view_viewable")}; g.J.hS=function(){this.Dp.h0("active_view_fully_viewable_audible_half_duration")}; g.J.lz=function(){this.Dp.h0("audio_measurable")}; g.J.Sj=function(){this.Dp.h0("audio_audible")};g.y(DA,xU);g.J=DA.prototype;g.J.init=function(){xU.prototype.init.call(this);var N=g.h(CM(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),z={adsClientData:this.layout.Bb};this.V.push(new fZ(N,this.layout.layoutId,CM(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,!0))}; g.J.HS=function(){this.N||this.C0.get().resumeVideo(1)}; g.J.startRendering=function(N){xU.prototype.startRendering.call(this,N);Lq(this.C0.get(),"ad-showing");this.callback.Qh(this.slot,N);this.B.PT=this}; g.J.T4=function(N,z){xU.prototype.T4.call(this,N,z);Kq(this.C0.get(),"ad-showing");cI(this.B,this)}; g.J.WD=function(N){switch(N){case "ad-info-icon-button":(this.N=this.C0.get().Js(1))||this.C0.get().pauseVideo();break;case "visit-advertiser":this.C0.get().pauseVideo()}}; g.J.AO=function(){xU.prototype.AO.call(this)};g.y(ba,iG);g.y(tn,xU);g.J=tn.prototype;g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,v,R,C,Z){return new ba(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(){}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)}; g.J.WD=function(){};g.y(Oj,iG);g.y(I2,xU);I2.prototype.init=function(){xU.prototype.init.call(this);this.V.push(new Oj(g.t(this.layout.renderingContent,B4),this.layout.layoutId,{adsClientData:this.layout.Bb}))}; I2.prototype.WD=function(){kk(this.N.get(),this.B)&&yu(this.sT.get(),3)}; I2.prototype.startRendering=function(N){xU.prototype.startRendering.call(this,N);this.callback.Qh(this.slot,N)}; I2.prototype.AO=function(){xU.prototype.AO.call(this)};g.y(Xg,iG);g.y(rV,xU);rV.prototype.init=function(){xU.prototype.init.call(this);var N=g.t(this.layout.renderingContent,ii)||CM(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),z=eZ(this.Dp);this.V.push(new Xg(N,z,this.layout.layoutId,{adsClientData:this.layout.Bb},!0,!0))}; rV.prototype.startRendering=function(N){xU.prototype.startRendering.call(this,N);this.callback.Qh(this.slot,N)}; rV.prototype.WD=function(N,z){if(z===this.layout.layoutId)switch(N){case "skip-button":var v;(N=(v=CM(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&N.Bk(this.l$(),this.layout)}}; rV.prototype.AO=function(){xU.prototype.AO.call(this)};cA.prototype.build=function(N,z,v,R){if(ua(R,{aP:["metadata_type_ad_break_response_data"],DC:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new KnO(N,v,R,this.W,this.Z,this.V);throw new vL("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ZL(R.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.y(hI7,iG);g.y(qt,xU);g.J=qt.prototype;g.J.WD=function(N,z){f7("ads-engagement-panel",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),g.t(this.lS().renderingContent,C0),this.callback,"metadata_type_ads_engagement_panel_renderer",function(z,v,R,C,Z){return new hI7(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){z.layoutId===this.layout.layoutId?this.Dp.h0("impression"):this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};g.y(Mt,xU);g.J=Mt.prototype;g.J.WD=function(N,z){f7("top-banner-image-text-icon-buttoned",N,pv(this.G.get()),this.sT.get(),this.N,this.B,this.l$(),this.lS(),z)}; g.J.startRendering=function(N){Jn(this.Dp,this.l$(),this.lS(),g.t(this.lS().renderingContent,Yu),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,v,R,C,Z){return new ba(z,v,R,C,Z)},this.V); xU.prototype.startRendering.call(this,N)}; g.J.Qh=function(N,z){this.B===z.layoutId&&(this.N===null?this.N=this.sT.get().WP():LZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.AO=function(){GW(this.nV(),this);xU.prototype.AO.call(this)};Dgv.prototype.build=function(N,z,v,R){if(ua(R,HKb())||g.t(R.renderingContent,C0)!==void 0)return new qt(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,mgK())||g.t(R.renderingContent,v4)!==void 0)return new SZ(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,Ugm())||g.t(R.renderingContent,Rg)!==void 0)return new Ej(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,Auu()))return new hn(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,PG7()))return new o2(N,v,R,this.au,this.sT,this.nV, this.rW,this.V);if(ua(R,ntm())||g.t(R.renderingContent,ZD)!==void 0)return new PA(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,otO())||g.t(R.renderingContent,Yu)!==void 0)return new Mt(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,Sd_()))return new tn(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);if(ua(R,TNv())||g.t(R.renderingContent,i2)!==void 0)return new kU(N,v,R,this.au,this.sT,this.nV,this.rW,this.V);throw new vL("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ ZL(R.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};bKU.prototype.build=function(N,z,v,R){if(ua(R,{aP:["metadata_type_linked_player_bytes_layout_id"],DC:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new I2(N,v,R,this.au,this.sT,this.V);throw new vL("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ZL(R.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.J=tJu.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){}; g.J.release=function(){}; g.J.startRendering=function(N){N.layoutId!==this.layout.layoutId?this.callback.n5(this.slot,N,new vL("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.Qh(this.slot,N),this.Dp.h0("impression"),X7(this.pO,N,"normal"))}; g.J.T4=function(N,z){N.layoutId!==this.layout.layoutId?this.callback.n5(this.slot,N,new vL("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.P5(this.slot,N,z)};g.J=I9m.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){}; g.J.release=function(){}; g.J.startRendering=function(N){N.layoutId!==this.layout.layoutId?this.callback.n5(this.slot,N,new vL("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.Qh(this.slot,N),this.Dp.h0("impression"),X7(this.pO,N,"normal"))}; g.J.T4=function(N,z){N.layoutId!==this.layout.layoutId?this.callback.n5(this.slot,N,new vL("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.P5(this.slot,N,z)};wV.prototype.build=function(N,z,v,R){if(!this.zU.get().C.D().X("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ua(R,OKO()))return new tJu(N,v,R,this.sT,this.pO)}else if(ua(R,{aP:[],DC:["LAYOUT_TYPE_FORECASTING"]}))return new I9m(N,v,R,this.sT,this.pO);throw new vL("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ZL(R.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.y(uoU,iG);g.y(Ni,xU);g.J=Ni.prototype;g.J.init=function(){xU.prototype.init.call(this);var N=g.t(this.layout.renderingContent,Yz)||g.h(CM(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),z={adsClientData:this.layout.Bb};this.V.push(new uoU(N,CM(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,z))}; g.J.HS=function(){this.N||this.C0.get().resumeVideo(2)}; g.J.startRendering=function(N){xU.prototype.startRendering.call(this,N);this.callback.Qh(this.slot,N);this.B.PT=this}; g.J.T4=function(N,z){xU.prototype.T4.call(this,N,z);cI(this.B,this)}; g.J.WD=function(N,z){if(!Xu(this.zU.get(),"stop_handling_click_for_non_rendering_overlay_layout")||z===this.layout.layoutId){if(kk(this.G.get(),this.L))switch(N){case "visit-advertiser-link":yu(this.sT.get(),3)}switch(N){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.C0.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.C0.get().Js(2))||this.C0.get().pauseVideo();break; case "visit-advertiser-link":this.C0.get().pauseVideo();g.h(cu7(this)).TN();break;case "skip-button":if(N=cu7(this),this.layout.renderingContent&&!wU(this.layout.clientMetadata,"metadata_type_dai")||!N.nZ){var v;(N=(v=CM(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&N.Bk(this.l$(),this.layout)}else LZ("Requesting to skip by LegacyPlayerBytes when components enabled"),N.QR(this.l$(),this.layout)}}}; g.J.AO=function(){xU.prototype.AO.call(this)};g.y(z2,xU);g.J=z2.prototype;g.J.init=function(){xU.prototype.init.call(this);var N=g.t(this.layout.renderingContent,Zi)||g.h(CM(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),z={adsClientData:this.layout.Bb},v;(v=!!this.layout.renderingContent)||(v=!vP(this).nZ);this.V.push(new fZ(N,this.layout.layoutId,CM(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,v))}; g.J.HS=function(){this.N||this.C0.get().resumeVideo(2)}; g.J.startRendering=function(N){xU.prototype.startRendering.call(this,N);this.callback.Qh(this.slot,N);this.B.PT=this}; g.J.T4=function(N,z){xU.prototype.T4.call(this,N,z);cI(this.B,this)}; g.J.WD=function(N,z){if(!this.zU||!Xu(this.zU.get(),"stop_handling_click_for_non_rendering_overlay_layout")||z===this.layout.layoutId){if(kk(this.G.get(),this.L))switch(N){case "visit-advertiser":yu(this.sT.get(),3)}switch(N){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.C0.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.C0.get().Js(2))||this.C0.get().pauseVideo();break; case "visit-advertiser":this.C0.get().pauseVideo();g.h(vP(this)).TN();break;case "skip-button":if(N=vP(this),this.layout.renderingContent&&!wU(this.layout.clientMetadata,"metadata_type_dai")||!N.nZ){var v;(N=(v=CM(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&N.Bk(this.l$(),this.layout)}else LZ("Requesting to skip by LegacyPlayerBytes"),N.QR(this.l$(),this.layout)}}}; g.J.AO=function(){xU.prototype.AO.call(this)};g.y(MJx,iG);g.y(RV,xU);g.J=RV.prototype;g.J.startRendering=function(N){var z=this;Gt(this.W,N,function(){z.V.push(new MJx(CM(z.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),N.layoutId,N.Bb));z.Xx();z.callback.Qh(z.slot,N);g.u(zj(z.C0.get(),1),512)&&z.callback.n5(z.l$(),z.lS(),new vL("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.J.I4=function(){}; g.J.BD=function(N){if(N.state.isError()){var z;this.callback.n5(this.l$(),this.lS(),new vL("A player error happened during adNotify",{playerErrorCode:(z=N.state.BP)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.J.onFullscreenToggled=function(){}; g.J.eI=function(){}; g.J.H1=function(){}; g.J.jo=function(){}; g.J.onVolumeChange=function(){}; g.J.d5=function(){}; g.J.Ma=function(){}; g.J.WD=function(){};g.y(NOm,iG);g.y(C_,xU);C_.prototype.init=function(){xU.prototype.init.call(this);var N=g.t(this.layout.renderingContent,j3),z=eZ(this.Dp);this.V.push(new NOm(N,z,this.layout.layoutId,{adsClientData:this.layout.Bb}))}; C_.prototype.startRendering=function(N){xU.prototype.startRendering.call(this,N);this.callback.Qh(this.slot,N)}; C_.prototype.WD=function(N,z){if(z===this.layout.layoutId)switch(N){case "skip-button":var v;(N=(v=CM(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&N.Bk(this.l$(),this.layout)}}; C_.prototype.AO=function(){xU.prototype.AO.call(this)};ziv.prototype.build=function(N,z,v,R){if(N=aV(N,v,R,this.au,this.C0,this.sT,this.W,this.V,this.zU))return N;throw new vL("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ZL(R.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.J=K_.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){this.C0.get().addListener(this);this.C0.get().W8.push(this);if(this.layout.renderingContent){var N=this.XW.get();N=ei(N,1).yB/1E3}else N=CM(this.layout.clientMetadata,"metadata_type_video_length_seconds");var z=g.t(this.layout.renderingContent,mI),v=z?sj(z.pings):CM(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");z=z?Ju7(z.pings):CM(this.layout.clientMetadata,"metadata_type_active_view_identifier");dV(this.layout.OR)&&vI(this.rW.get(),this.layout.layoutId, {bQ:v,aO:N,listener:this,FR:z})}; g.J.release=function(){this.C0.get().removeListener(this);Plu(this.C0.get(),this);dV(this.layout.OR)&&RF(this.rW.get(),this.layout.layoutId)}; g.J.startRendering=function(N){this.callback.Qh(this.slot,N)}; g.J.T4=function(N,z){li(this,"abandon");this.callback.P5(this.slot,N,z)}; g.J.d5=function(N){switch(N.id){case "part2viewed":this.Dp.h0("start");this.Dp.h0("impression");break;case "videoplaytime25":this.Dp.h0("first_quartile");break;case "videoplaytime50":this.Dp.h0("midpoint");break;case "videoplaytime75":this.Dp.h0("third_quartile");break;case "videoplaytime100":li(this,"complete");p7(this.Dp)&&An(this.Dp,Infinity,!0);break;case "engagedview":p7(this.Dp)||this.Dp.h0("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:LZ("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.J.onVolumeChange=function(){}; g.J.jo=function(){}; g.J.eI=function(){}; g.J.H1=function(){}; g.J.onFullscreenToggled=function(){}; g.J.BD=function(N){this.V||(g.WW(N,4)&&!g.WW(N,2)?BA(this.Dp,"pause"):l4(N,4)<0&&!(l4(N,2)<0)&&BA(this.Dp,"resume"))}; g.J.I4=function(){}; g.J.NR=function(N){p7(this.Dp)&&An(this.Dp,N*1E3,!1)}; g.J.Ma=function(){li(this,"swipe")}; g.J.yR=function(){this.Dp.h0("active_view_measurable")}; g.J.xV=function(){this.Dp.h0("active_view_viewable")}; g.J.hS=function(){this.Dp.h0("active_view_fully_viewable_audible_half_duration")}; g.J.lz=function(){this.Dp.h0("audio_measurable")}; g.J.Sj=function(){this.Dp.h0("audio_audible")};vJv.prototype.build=function(N,z,v,R){if(v.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.t(R.renderingContent,mI)!==void 0)return new K_(N,v,R,this.C0,this.sT,this.zU,this.rW,this.XW);z=["metadata_type_ad_placement_config"];for(var C=g.f(n7()),Z=C.next();!Z.done;Z=C.next())z.push(Z.value);if(ua(R,{aP:z,DC:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return v.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new K_(N,v,R,this.C0,this.sT,this.zU,this.rW,this.XW):new VJx(N,v,R,this.C0,this.sT, this.Iz,this.zU,this.rW);throw new vL("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ZL(R.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var yV={contentCpn:"",oK:new Map};K5I.prototype.oz=function(N,z){var v={};z=Object.assign({},z,(v.cc=this.oy.K8(),v));this.oy.C.WL(N,z)};var b95,hA; b95={x2T:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Ae0:"AUTHENTICATION_MALFORMED",zFO:"AUTHENTICATION_MISSING",eF8:"BAD_REQUEST",ceU:"CAST_SESSION_DEVICE_MISMATCHED",IOT:"CAST_SESSION_VIDEO_MISMATCHED",pKo:"CAST_TOKEN_EXPIRED",HOo:"CAST_TOKEN_FAILED",s40:"CAST_TOKEN_MALFORMED",BDp:"CGI_PARAMS_MALFORMED",Mo1:"CGI_PARAMS_MISSING",at0:"DEVICE_FALLBACK",Hrp:"GENERIC_WITH_LINK_AND_CPN",sq8:"ERROR_HDCP",B5l:"LICENSE",X1d:"VIDEO_UNAVAILABLE",ltU:"FORMAT_UNAVAILABLE",Yto:"GEO_FAILURE", Vl8:"HTML5_AUDIO_RENDERER_ERROR",W1O:"GENERIC_WITHOUT_LINK",Oed:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ax8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",zLL:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",PGS:"HTML5_SPS_UMP_STATUS_REJECTED",dET:"INVALID_DRM_MESSAGE",W3L:"PURCHASE_NOT_FOUND",O4d:"PURCHASE_REFUNDED",Z4S:"RENTAL_EXPIRED",t3d:"RETRYABLE_ERROR",XZS:"SERVER_ERROR",foO:"SIGNATURE_EXPIRED",Evd:"STOPPED_BY_ANOTHER_PLAYBACK",vvO:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",TyT:"STREAMING_NOT_ALLOWED", Jkd:"STREAM_LICENSE_NOT_FOUND",V7l:"TOO_MANY_REQUESTS",WxW:"TOO_MANY_REQUESTS_WITH_LINK",OXT:"TOO_MANY_STREAMS_PER_ENTITLEMENT",As8:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Lxd:"VIDEO_FORBIDDEN",U30:"VIDEO_NOT_FOUND",CLd:"BROWSER_OR_EXTENSION_ERROR"};hA={}; g.EG=(hA.ALREADY_PINNED_ON_A_DEVICE="Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",hA.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",hA.GENERIC_WITH_LINK_AND_CPN="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",hA.LICENSE= "Se ha producido un error de licencia con este v\u00eddeo.",hA.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",hA.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",hA.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",hA.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",hA.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",hA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de v\u00eddeo.",hA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.",hA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",hA.HTML5_SPS_UMP_STATUS_REJECTED="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", hA.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",hA.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",hA.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",hA.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",hA.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",hA.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",hA.CAST_TOKEN_FAILED= "La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",hA.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",hA.CAST_TOKEN_MALFORMED="La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",hA.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",hA.STOPPED_BY_ANOTHER_PLAYBACK="Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.", hA.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",hA.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",hA.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",hA.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",hA.TOO_MANY_REQUESTS="Inicia sesi\u00f3n para ver este v\u00eddeo.", hA.TOO_MANY_REQUESTS_WITH_LINK="Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",hA.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",hA.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",hA.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",hA.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.", hA.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",hA.BROWSER_OR_EXTENSION_ERROR="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",hA);var t8r;var O9U=g.mU(),IBP=O9U.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!IBP||IBP.length<2)t8r=void 0;else{var Xrw=O9U.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);t8r=Xrw&&Xrw.length===6?Number(Xrw[5].replace("_",".")):0}var bF=t8r,pL=bF>=0;g.y(g.VV,$a);g.VV.prototype.S=function(N,z,v,R,C){return $a.prototype.S.call(this,N,z,v,R,C)};var Hp={},dB=(Hp.FAIRPLAY="fairplay",Hp.PLAYREADY="playready",Hp.WIDEVINE="widevine",Hp.CLEARKEY=null,Hp.FLASHACCESS=null,Hp.UNKNOWN=null,Hp.WIDEVINE_CLASSIC=null,Hp);S3.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var oT={},m_=(oT.WIDTH={name:"width",video:!0,valid:640,Qg:99999},oT.HEIGHT={name:"height",video:!0,valid:360,Qg:99999},oT.FRAMERATE={name:"framerate",video:!0,valid:30,Qg:9999},oT.BITRATE={name:"bitrate",video:!0,valid:3E5,Qg:2E9},oT.EOTF={name:"eotf",video:!0,valid:"bt709",Qg:"catavision"},oT.CHANNELS={name:"channels",video:!1,valid:2,Qg:99},oT.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Qg:"invalidformat"},oT.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Qg:"nope"},oT.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Qg:"av99.0.05M.08"},oT.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Qg:"invalid"},oT);var rjU=["h","H"],uDW=["9","("],cjW=["9h","(h"],qCE=["8","*"],M8Z=["a","A"],wr7=["o","O"],NS9=["m","M"],zD$=["mac3","MAC3"],vSm=["meac3","MEAC3"],Dp={},FWU=(Dp.h=rjU,Dp.H=rjU,Dp["9"]=uDW,Dp["("]=uDW,Dp["9h"]=cjW,Dp["(h"]=cjW,Dp["8"]=qCE,Dp["*"]=qCE,Dp.a=M8Z,Dp.A=M8Z,Dp.o=wr7,Dp.O=wr7,Dp.m=NS9,Dp.M=NS9,Dp.mac3=zD$,Dp.MAC3=zD$,Dp.meac3=vSm,Dp.MEAC3=vSm,Dp),RDU=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),aiY=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var w={},bi=(w["0"]="f",w["160"]="h",w["133"]="h",w["134"]="h",w["135"]="h",w["136"]="h",w["137"]="h",w["264"]="h",w["266"]="h",w["138"]="h",w["298"]="h",w["299"]="h",w["304"]="h",w["305"]="h",w["214"]="h",w["216"]="h",w["374"]="h",w["375"]="h",w["140"]="a",w["141"]="a",w["327"]="sa",w["258"]="m",w["380"]="mac3",w["328"]="meac3",w["161"]="H",w["142"]="H",w["143"]="H",w["144"]="H",w["222"]="H",w["223"]="H",w["145"]="H",w["224"]="H",w["225"]="H",w["146"]="H",w["226"]="H",w["227"]="H",w["147"]="H",w["384"]= "H",w["376"]="H",w["385"]="H",w["377"]="H",w["149"]="A",w["261"]="M",w["381"]="MAC3",w["329"]="MEAC3",w["598"]="9",w["278"]="9",w["242"]="9",w["243"]="9",w["244"]="9",w["775"]="9",w["776"]="9",w["777"]="9",w["778"]="9",w["779"]="9",w["780"]="9",w["781"]="9",w["782"]="9",w["783"]="9",w["247"]="9",w["248"]="9",w["353"]="9",w["355"]="9",w["356"]="9",w["271"]="9",w["577"]="9",w["313"]="9",w["579"]="9",w["272"]="9",w["302"]="9",w["303"]="9",w["407"]="9",w["408"]="9",w["308"]="9",w["315"]="9",w["330"]= "9h",w["331"]="9h",w["332"]="9h",w["333"]="9h",w["334"]="9h",w["335"]="9h",w["336"]="9h",w["337"]="9h",w["338"]="so",w["600"]="o",w["250"]="o",w["251"]="o",w["774"]="o",w["194"]="*",w["195"]="*",w["220"]="*",w["221"]="*",w["196"]="*",w["197"]="*",w["279"]="(",w["280"]="(",w["317"]="(",w["318"]="(",w["273"]="(",w["274"]="(",w["357"]="(",w["358"]="(",w["275"]="(",w["359"]="(",w["360"]="(",w["276"]="(",w["583"]="(",w["584"]="(",w["314"]="(",w["585"]="(",w["561"]="(",w["277"]="(",w["361"]="(h",w["362"]= "(h",w["363"]="(h",w["364"]="(h",w["365"]="(h",w["366"]="(h",w["591"]="(h",w["592"]="(h",w["367"]="(h",w["586"]="(h",w["587"]="(h",w["368"]="(h",w["588"]="(h",w["562"]="(h",w["409"]="(",w["410"]="(",w["411"]="(",w["412"]="(",w["557"]="(",w["558"]="(",w["394"]="1",w["395"]="1",w["396"]="1",w["397"]="1",w["398"]="1",w["399"]="1",w["720"]="1",w["721"]="1",w["400"]="1",w["401"]="1",w["571"]="1",w["402"]="1",w["694"]="1h",w["695"]="1h",w["696"]="1h",w["697"]="1h",w["698"]="1h",w["699"]="1h",w["700"]="1h", w["701"]="1h",w["702"]="1h",w["703"]="1h",w["386"]="3",w["387"]="w",w["406"]="6",w["787"]="1",w["788"]="1",w["548"]="1e",w["549"]="1e",w["550"]="1e",w["551"]="1e",w["809"]="1e",w["810"]="1e",w["552"]="1e",w["811"]="1e",w["812"]="1e",w["553"]="1e",w["813"]="1e",w["814"]="1e",w["554"]="1e",w["815"]="1e",w["816"]="1e",w["555"]="1e",w["817"]="1e",w["818"]="1e",w["572"]="1e",w["556"]="1e",w["645"]="(",w["646"]="(",w["647"]="(",w["648"]="(",w["649"]="(",w["650"]="(",w["651"]="(",w["652"]="(",w["653"]="(", w["654"]="(",w["655"]="(",w["656"]="(",w["657"]="(",w["658"]="(",w["659"]="(",w["660"]="(",w["661"]="(",w["662"]="(",w["663"]="(",w["664"]="(",w["665"]="(",w["666"]="(",w["667"]="(",w["668"]="(",w["669"]="(",w["670"]="(",w["671"]="(",w["672"]="(",w["673"]="(",w["674"]="(h",w["675"]="(h",w["676"]="(h",w["677"]="(h",w["678"]="(h",w["679"]="(h",w["680"]="(h",w["681"]="(h",w["682"]="(h",w["683"]="(h",w["684"]="(h",w["685"]="(h",w["686"]="(h",w["687"]="(h",w["688"]="A",w["689"]="A",w["690"]="A",w["691"]= "MEAC3",w["773"]="i",w["806"]="I",w["805"]="I",w["829"]="9",w["830"]="9",w["831"]="9",w["832"]="9",w["833"]="9",w["834"]="9",w["835"]="9",w["836"]="9",w["837"]="9",w["838"]="9",w["839"]="9",w["840"]="9",w["841"]="(",w["842"]="(",w["843"]="(",w["844"]="(",w["845"]="(",w["846"]="(",w["847"]="(",w["848"]="(",w["849"]="(",w["850"]="(",w["851"]="(",w["852"]="(",w["865"]="9",w["866"]="9",w["867"]="9",w["868"]="9",w["869"]="9",w["870"]="9",w["871"]="9",w["872"]="9",w["873"]="9",w["874"]="9",w["875"]="9", w["876"]="9",w["877"]="(",w["878"]="(",w["879"]="(",w["880"]="(",w["881"]="(",w["882"]="(",w["883"]="(",w["884"]="(",w["885"]="(",w["886"]="(",w["887"]="(",w["888"]="(",w);var bZ={},ZgY=(bZ.STEREO_LAYOUT_UNKNOWN=0,bZ.STEREO_LAYOUT_LEFT_RIGHT=1,bZ.STEREO_LAYOUT_TOP_BOTTOM=2,bZ);var tA,Kf;tA={};g.hx=(tA.auto=0,tA.tiny=144,tA.light=144,tA.small=240,tA.medium=360,tA.large=480,tA.hd720=720,tA.hd1080=1080,tA.hd1440=1440,tA.hd2160=2160,tA.hd2880=2880,tA.highres=4320,tA);Kf={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var oV="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");HP.prototype.isHdr=function(){return this.V==="smpte2084"||this.V==="arib-std-b67"};tx.prototype.qF=function(){return this.containerType===2}; tx.prototype.isEncrypted=function(){return!!this.CG}; tx.prototype.bI=function(){return!!this.audio}; tx.prototype.yO=function(){return!!this.video}; var X1=!1;g.y(WE,g.jJ);g.J=WE.prototype;g.J.appendBuffer=function(N,z,v){if(this.v5.uJ()!==this.appendWindowStart+this.start||this.v5.i9()!==this.appendWindowEnd+this.start||this.v5.fV()!==this.timestampOffset+this.start)this.v5.supports(1),this.v5.WO(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.v5.bK(this.timestampOffset+this.start);this.v5.appendBuffer(N,z,v)}; g.J.abort=function(){this.v5.abort()}; g.J.remove=function(N,z){this.v5.remove(N+this.start,z+this.start)}; g.J.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.J.clear=function(){this.v5.clear()}; g.J.WO=function(N,z){this.appendWindowStart=N;this.appendWindowEnd=z}; g.J.Mi=function(){return this.timestampOffset+this.start}; g.J.uJ=function(){return this.appendWindowStart}; g.J.i9=function(){return this.appendWindowEnd}; g.J.bK=function(N){this.timestampOffset=N}; g.J.fV=function(){return this.timestampOffset}; g.J.vc=function(N){N=this.v5.vc(N===void 0?!1:N);return lr(N,this.start,this.end)}; g.J.G0=function(){return this.v5.G0()}; g.J.LZ=function(){return this.v5.LZ()}; g.J.BZ=function(){return this.v5.BZ()}; g.J.zB=function(){return this.v5.zB()}; g.J.AE=function(){this.v5.AE()}; g.J.zp=function(N){return this.v5.zp(N)}; g.J.Fe=function(){return this.v5.Fe()}; g.J.P4=function(){return this.v5.P4()}; g.J.oa=function(){return this.v5.oa()}; g.J.g3=function(N,z,v){this.v5.g3(N,z,v)}; g.J.aE=function(N,z,v){this.v5.aE(N,z,v)}; g.J.Wn=function(N,z){return this.v5.Wn(N,z)}; g.J.supports=function(N){return this.v5.supports(N)}; g.J.b9=function(){return this.v5.b9()}; g.J.isView=function(){return!0}; g.J.ZL=function(){return this.v5.ZL()?this.isActive:!1}; g.J.isLocked=function(){return this.Wr&&!this.isActive}; g.J.TE=function(N){N=this.v5.TE(N);N.vw=this.start+"-"+this.end;return N}; g.J.rF=function(){return this.v5.rF()}; g.J.Du=function(){return this.v5.Du()}; g.J.Ia=function(){return this.v5.Ia()}; g.J.AO=function(){this.v5.Ks(this.v_);g.jJ.prototype.AO.call(this)};var yQ=!1;g.y(oe,g.jJ);g.J=oe.prototype;g.J.appendBuffer=function(N,z,v){this.TY=!1;v&&(this.Fl=v);if(N.length){var R;((R=this.Mu)==null?0:R.appendBuffer)?this.Mu.appendBuffer(N):this.Mu?this.Mu.append(N):this.Cu&&this.Cu.webkitSourceAppend(this.id,N)}z&&(z.isEncrypted()&&(this.Ue=this.Fl),z.type===3&&(this.Ta=z),this.UW.push(z.z4()),this.UW.length>4&&this.UW.shift());this.Xo&&(this.Xo.length>=2||N.length>1048576?delete this.Xo:this.Xo.push(N))}; g.J.abort=function(){try{this.Mu?this.Mu.abort():this.Cu&&this.Cu.webkitSourceAbort(this.id)}catch(z){if(lN7){var N=new g.XS("Error while abort the source buffer: "+z.name+", "+z.message);g.kE(N)}}this.Fl=this.Ta=null}; g.J.remove=function(N,z,v){this.TY=!1;var R;if((R=this.Mu)==null?0:R.remove)v&&v({b:Yx(this.vc()),s:N,e:z}),this.Mu.remove(N,z)}; g.J.removeAll=function(){this.remove(this.uJ(),this.i9())}; g.J.clear=function(){this.BZ()||(this.abort(),this.removeAll(),this.Ue=this.Fl=this.Ta=null,this.appendWindowStart=this.timestampOffset=0,this.BV=Zj([],[]),this.TY=!1,this.Xo=GS?[]:void 0,this.Gu=!0)}; g.J.uJ=function(){if(yQ&&this.yO)return this.appendWindowStart;var N;return((N=this.Mu)==null?void 0:N.appendWindowStart)||0}; g.J.i9=function(){var N;return((N=this.Mu)==null?void 0:N.appendWindowEnd)||0}; g.J.WO=function(N,z){this.Mu&&(yQ&&this.yO?(this.appendWindowStart=N,this.Mu.appendWindowEnd=z):N>this.uJ()?(this.Mu.appendWindowEnd=z,this.Mu.appendWindowStart=N):(this.Mu.appendWindowStart=N,this.Mu.appendWindowEnd=z))}; g.J.Mi=function(){return this.timestampOffset}; g.J.bK=function(N){yQ?this.timestampOffset=N:this.supports(1)&&(this.Mu.timestampOffset=N)}; g.J.fV=function(){return yQ?this.timestampOffset:this.supports(1)?this.Mu.timestampOffset:0}; g.J.vc=function(N){if(N===void 0?0:N)return this.TY||this.G0()||(this.BV=this.vc(!1),this.TY=!0),this.BV;try{return this.Mu?this.Mu.buffered:this.Cu?this.Cu.webkitSourceBuffered(this.id):Zj([0],[Infinity])}catch(z){return Zj([],[])}}; g.J.G0=function(){var N;return((N=this.Mu)==null?void 0:N.updating)||!1}; g.J.BZ=function(){return this.Gu}; g.J.zB=function(){return!this.Gu&&this.G0()}; g.J.AE=function(){this.Gu=!1}; g.J.zp=function(N){var z=N==null?void 0:N.JO;N=N==null?void 0:N.containerType;return!z&&!N||z===this.JO&&N===this.containerType}; g.J.Fe=function(){return this.Fl}; g.J.P4=function(){return this.Ue}; g.J.Wn=function(N,z){return this.containerType!==N||this.JO!==z}; g.J.g3=function(N,z,v){if(this.containerType!==N||v&&this.Wn(N,v))this.supports(4),Dj()&&this.Mu.changeType(z),v&&(this.JO=v);this.containerType=N}; g.J.aE=function(N,z,v){this.containerType&&this.Wn(N,z)&&Dj()&&this.Mu.changeType(v);this.containerType=N;this.JO=z}; g.J.b9=function(){return this.Ta}; g.J.isView=function(){return!1}; g.J.supports=function(N){switch(N){case 1:var z;return((z=this.Mu)==null?void 0:z.timestampOffset)!==void 0;case 0:var v;return!((v=this.Mu)==null||!v.appendBuffer);case 2:var R;return!((R=this.Mu)==null||!R.remove);case 3:var C,Z;return!!(((C=this.Mu)==null?0:C.addEventListener)&&((Z=this.Mu)==null?0:Z.removeEventListener));case 4:return!(!this.Mu||!this.Mu.changeType);default:return!1}}; g.J.ZL=function(){return!this.G0()}; g.J.isLocked=function(){return!1}; g.J.TE=function(N){N.to=this.fV();N.up=this.G0();var z,v=((z=this.Mu)==null?void 0:z.appendWindowStart)||0,R;z=((R=this.Mu)==null?void 0:R.appendWindowEnd)||Infinity;N.aw=v.toFixed(3)+"-"+z.toFixed(3);return N}; g.J.LZ=function(){var N;return((N=this.Mu)==null?void 0:N.writeHead)||0}; g.J.rF=function(){for(var N={},z=0;z=7&&l0K(this,function(){g.W9(function(){AX7(N,N.getCurrentTime(),0)},500)}); return z}; g.J.seekTo=function(N){this.Vi()>0&&(pL&&bF<4&&(N=Math.max(.1,N)),this.setCurrentTime(N))}; g.J.hx=function(){if(!this.W&&this.uS)if(this.uS.B)try{var N;Xk(this,{l:"mer",sr:(N=this.kT)==null?void 0:N.nO(),rs:ur(this.uS)});this.uS.clear();this.W=this.uS;this.uS=void 0}catch(z){N=new g.XS("Error while clearing Media Source in MediaElement: "+z.name+", "+z.message),g.kE(N),this.stopVideo()}else this.stopVideo()}; g.J.stopVideo=function(){var N=this;if(!this.W){var z;(z=this.uS)==null||$2b(z);if(QUU){if(!this.Z){var v=new qa;v.then(void 0,function(){}); this.Z=v;L0b&&this.pause();g.W9(function(){N.Z===v&&(zY(N),v.resolve())},200)}}else zY(this)}}; g.J.oR=function(){var N=this.xA();return LN(N)&&this.getDuration()?ae(N,this.getCurrentTime()):0}; g.J.lj=function(){var N=this.getDuration();return N===Infinity?1:N?this.oR()/N:0}; g.J.TE=function(){try{var N=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Yx(this.fN(),",",3),vbu:Yx(this.xA()),vbs:Yx(this.EG()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Vi(),vns:""+this.Nq(),vec:""+this.Xk(),vemsg:this.VX(),vvol:""+this.getVolume(),vdom:""+ +this.PJ(),vsrc:""+ +!!this.Tl(),vw:""+N.width,vh:""+N.height}}catch(z){return{}}}; g.J.hasError=function(){return this.Xk()>0}; g.J.addEventListener=function(N,z){this.N.listen(N,z,!1,this);this.sU(N)}; g.J.removeEventListener=function(N,z){this.N.Kb(N,z,!1,this)}; g.J.dispatchEvent=function(N){if(this.Z&&N.type==="pause")return!1;if(K0_){var z,v=((z=N.V)==null?void 0:z.timeStamp)||Infinity;z=v>performance.now()?v-Date.now()+performance.now():v;v=this.W||this.uS;if((v==null?0:v.BZ())||z<=((v==null?void 0:v.G)||0)){var R;Xk(this,{l:"mede",sr:(R=this.kT)==null?void 0:R.nO(),et:N.type});return!1}if(this.jS)return Xk(this,{l:"medes",et:N.type}),v&&N.type==="seeking"&&(v.G=performance.now(),this.jS=!1),!1}return this.N.dispatchEvent(N)}; g.J.cC=function(){this.G=!1}; g.J.R$=function(){this.G=!0;this.h1(!0)}; g.J.Nc=function(){this.G&&!this.Zh()&&this.h1(!0)}; g.J.equals=function(N){return!!N&&N.Nu()===this.Nu()}; g.J.AO=function(){this.L&&this.removeEventListener("volumechange",this.Nc);QUU&&zY(this);g.H.prototype.AO.call(this)}; var QUU=!1,L0b=!1,K0_=!1,kXU=!1;g.J=g.Ro.prototype;g.J.isPaused=function(){return g.u(this,4)}; g.J.isPlaying=function(){return g.u(this,8)&&!g.u(this,512)&&!g.u(this,64)&&!g.u(this,2)}; g.J.isOrWillBePlaying=function(){return g.u(this,8)&&!g.u(this,2)&&!g.u(this,1024)}; g.J.isCued=function(){return g.u(this,64)&&!g.u(this,8)&&!g.u(this,4)}; g.J.isBuffering=function(){return g.u(this,1)&&!g.u(this,2)}; g.J.isError=function(){return g.u(this,128)}; g.J.isSuspended=function(){return g.u(this,512)}; g.J.V1=function(){return g.u(this,64)&&g.u(this,4)}; g.J.toString=function(){return"PSt."+this.state.toString(16)}; var OX={},IT=(OX.BUFFERING="buffering-mode",OX.CUED="cued-mode",OX.ENDED="ended-mode",OX.PAUSED="paused-mode",OX.PLAYING="playing-mode",OX.SEEKING="seeking-mode",OX.UNSTARTED="unstarted-mode",OX);g.y(lE,g.H);g.J=lE.prototype;g.J.FM=function(){return this.Z}; g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){var N=CM(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=CM(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");dV(this.layout.OR)&&vI(this.rW.get(),this.layout.layoutId,{bQ:z,aO:N,listener:this,TA:this.bv()});m5f(this.sT.get(),this);N=this.uE;z=this.layout.layoutId;var v={TA:this.bv()};N.V.set(z,v);this.mj()}; g.J.ea=function(){}; g.J.release=function(){dV(this.layout.OR)&&RF(this.rW.get(),this.layout.layoutId);$5_(this.sT.get(),this);this.uE.V.delete(this.layout.layoutId);this.Ag()}; g.J.t9=function(){}; g.J.UQ=function(){}; g.J.startRendering=function(N){sH(WR(this));if(GY(this,N)){var z=this.V;T2(z.params.uL.zU.get(),!0)&&L5u(z,"p_sr",{});xc(this);this.dh(N);this.bv()||this.qB(!1)}}; g.J.Qh=function(N,z){if(z.layoutId===this.layout.layoutId){this.ER="rendering";this.W=this.C0.get().isMuted()||this.C0.get().getVolume()===0;this.h0("impression");this.h0("start");if(this.C0.get().isMuted()){TY(this,"mute");var v;N=((v=Kg(this))==null?void 0:v.muteCommands)||[];bc(this.Iz.get(),N,this.layout.layoutId)}if(this.C0.get().isFullscreen()){this.yl("fullscreen");var R;v=((R=Kg(this))==null?void 0:R.fullscreenCommands)||[];bc(this.Iz.get(),v,this.layout.layoutId)}this.bv()||(R=this.eK.get(), R.Z&&!R.W&&(R.B=!1,R.W=!0,R.actionType!=="ad_to_video"&&(Om("pbs",void 0,R.actionType),g.yj("finalize_all_timelines")&&IYb(R.actionType))));this.y6(1);this.XV(z);var C;z=((C=Kg(this))==null?void 0:C.impressionCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.yn=function(N,z,v){this.L={eQ:3,oO:N==="load_timeout"?402:400,errorMessage:z.message};this.h0("error");var R;N=((R=Kg(this))==null?void 0:R.errorCommands)||[];bc(this.Iz.get(),N,this.layout.layoutId);this.bv()||this.Kf.n5(this.slot,this.layout,z,v)}; g.J.u_=function(){if(this.ER==="rendering"){TY(this,"pause");var N,z=((N=Kg(this))==null?void 0:N.pauseCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId);this.y6(2)}}; g.J.Sc=function(){if(this.ER==="rendering"){TY(this,"resume");var N,z=((N=Kg(this))==null?void 0:N.resumeCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.B9=function(N,z){z=z===void 0?!1:z;if(this.ER==="rendering"){var v={currentTimeSec:N,flush:z};F1(this.V,"p_ip",v);An(this.Dp,N*1E3,z);this.W||An(this.Dp,N*1E3,z===void 0?!1:z);var R=this.jZ();if(R){R/=1E3;if(N>=R*.25||z)this.h0("first_quartile"),F1(this.V,"p_fq",v);if(N>=R*.5||z)this.h0("midpoint"),F1(this.V,"p_sq",v);if(N>=R*.75||z)this.h0("third_quartile"),F1(this.V,"p_tq",v);this.zU.get().C.D().experiments.j8("enable_progress_command_flush_on_kabuki")?HA(this.N,N*1E3,z):HA(this.N,N*1E3,HZK(this)? z:!1)}}}; g.J.K8=function(){var N;return((N=ei(this.XW.get(),1))==null?void 0:N.clientPlaybackNonce)||""}; g.J.LC=function(N,z){N.layoutId!==this.layout.layoutId?this.Kf.n5(this.slot,N,new vL("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"):z()}; g.J.P5=function(N,z,v){if(z.layoutId===this.layout.layoutId)switch(this.ER="not_rendering",this.layoutExitReason=void 0,this.bv()||(N=v!=="normal"||this.position+1===this.G)&&this.qB(N),this.Fc(v),this.y6(0),v){case "abandoned":if(gV(this.Dp,"impression")){var R,C=((R=Kg(this))==null?void 0:R.abandonCommands)||[];bc(this.Iz.get(),C,this.layout.layoutId)}break;case "normal":R=((C=Kg(this))==null?void 0:C.completeCommands)||[];bc(this.Iz.get(),R,this.layout.layoutId);break;case "skipped":var Z;R=((Z= Kg(this))==null?void 0:Z.skipCommands)||[];bc(this.Iz.get(),R,this.layout.layoutId)}}; g.J.mW=function(){return this.layout.layoutId}; g.J.wP=function(){return this.L}; g.J.yR=function(){if(this.ER==="rendering"){this.Dp.h0("active_view_measurable");var N,z=((N=Kg(this))==null?void 0:N.activeViewMeasurableCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.hS=function(){if(this.ER==="rendering"){this.Dp.h0("active_view_fully_viewable_audible_half_duration");var N,z=((N=Kg(this))==null?void 0:N.activeViewFullyViewableAudibleHalfDurationCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.xV=function(){if(this.ER==="rendering"){this.Dp.h0("active_view_viewable");var N,z=((N=Kg(this))==null?void 0:N.activeViewViewableCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.Sj=function(){if(this.ER==="rendering"){this.Dp.h0("audio_audible");var N,z=((N=Kg(this))==null?void 0:N.activeViewAudioAudibleCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.lz=function(){if(this.ER==="rendering"){this.Dp.h0("audio_measurable");var N,z=((N=Kg(this))==null?void 0:N.activeViewAudioMeasurableCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}}; g.J.qB=function(N){this.eK.get().qB(CM(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,N,this.position,this.G,!1)}; g.J.onFullscreenToggled=function(N){if(this.ER==="rendering")if(N){this.yl("fullscreen");var z,v=((z=Kg(this))==null?void 0:z.fullscreenCommands)||[];bc(this.Iz.get(),v,this.layout.layoutId)}else this.yl("end_fullscreen"),z=((v=Kg(this))==null?void 0:v.endFullscreenCommands)||[],bc(this.Iz.get(),z,this.layout.layoutId)}; g.J.onVolumeChange=function(){if(this.ER==="rendering")if(this.C0.get().isMuted()){TY(this,"mute");var N,z=((N=Kg(this))==null?void 0:N.muteCommands)||[];bc(this.Iz.get(),z,this.layout.layoutId)}else TY(this,"unmute"),N=((z=Kg(this))==null?void 0:z.unmuteCommands)||[],bc(this.Iz.get(),N,this.layout.layoutId)}; g.J.eI=function(){}; g.J.H1=function(){}; g.J.jo=function(){}; g.J.d5=function(){}; g.J.Ma=function(){}; g.J.yl=function(N){this.Dp.yl(N,!this.W)}; g.J.h0=function(N){this.Dp.h0(N,!this.W)}; g.J.bv=function(){var N=CM(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return N===void 0?(LZ("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.zU.get().bv(N)};g.y(Uw,lE);g.J=Uw.prototype;g.J.mj=function(){}; g.J.Ag=function(){var N=this.sT.get();N.xQ===this&&(N.xQ=null);this.hT.stop()}; g.J.t9=function(){this.hT.stop();lE.prototype.u_.call(this)}; g.J.UQ=function(){AN(this);lE.prototype.Sc.call(this)}; g.J.jZ=function(){return CM(this.lS().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.J.T4=function(N,z){var v=this;this.LC(N,function(){v.ER!=="rendering_stop_requested"&&(v.ER="rendering_stop_requested",v.layoutExitReason=z,JN(v,z),v.hT.stop())})}; g.J.G4=function(){var N=Date.now(),z=N-this.hA;this.hA=N;this.iY+=z;this.iY>=this.jZ()?this.fk():(this.B9(this.iY/1E3),BR(this,this.iY))}; g.J.Fc=function(){}; g.J.I4=function(){}; g.y(gr,Uw);g.J=gr.prototype;g.J.BD=function(N){if(this.ER!=="not_rendering"){N=yx(this,N);var z=this.C0.get().getPresentingPlayerType()===2;this.ER==="rendering_start_requested"?z&&QV(N)&&this.IN():z?g.WW(N,2)?LZ("Receive player ended event during MediaBreak",this.l$(),this.lS()):fg(this,N):this.nF()}}; g.J.dh=function(){EJY(this);EOK(this.C0.get());this.sT.get().xQ=this;bv("pbp")||bv("pbs")||Om("pbp");bv("pbp","watch")||bv("pbs","watch")||Om("pbp",void 0,"watch");this.IN()}; g.J.XV=function(N){this.eK.get();var z=CM(N.clientMetadata,"metadata_type_ad_placement_config").kind,v=this.position===0;N=CM(N.clientMetadata,"metadata_type_linked_in_player_layout_type");N={adBreakType:dr(z),adType:qI2(N)};var R=void 0;v?z!=="AD_PLACEMENT_KIND_START"&&(R="video_to_ad"):R="ad_to_ad";H_("ad_mbs",void 0,R);g.oc(N,R);AN(this)}; g.J.nF=function(){this.qj()}; g.J.fk=function(){D2U(this);this.qj()}; g.y(pg,Uw);g.J=pg.prototype;g.J.BD=function(N){this.ER!=="not_rendering"&&(N=yx(this,N),fg(this,N))}; g.J.dh=function(){LZ("Not used in SSAP")}; g.J.XV=function(){AN(this)}; g.J.nF=function(){LZ("Not used in SSAP")}; g.J.fk=function(){D2U(this);this.Kf.Bi(this.l$(),this.lS(),"normal")}; g.y(kc,pg);kc.prototype.T4=function(N,z){var v=this;this.LC(N,function(){e3(v.Z,z)&&(v.ER="rendering_stop_requested",v.layoutExitReason=z,JN(v,z),v.hT.stop())})}; kc.prototype.startRendering=function(N){sH(WR(this));GY(this,N)&&(xc(this),this.sT.get().xQ=this)};g.y(Si,lE);g.J=Si.prototype;g.J.nF=function(){this.qj()}; g.J.BD=function(N){if(this.ER!=="not_rendering"){N=yx(this,N);var z=this.C0.get().getPresentingPlayerType()===2;this.ER==="rendering_start_requested"?z&&QV(N)&&this.IN():!z||g.WW(N,2)?this.qj():fg(this,N)}}; g.J.mj=function(){CM(this.lS().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=CM(this.lS().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.J.Ag=function(){CM(this.lS().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Fr){var N=this.context.uL,z=this.Fr,v=this.lS().layoutId;if(T2(N.zU.get(),!0)){var R={};N.oz("mccru",(R.cid=z,R.p_ac=v,R))}this.H5.get().removeCueRange(this.Fr)}this.Fr=void 0;var C;(C=this.tB)==null||C.dispose();this.m6&&this.m6.dispose()}; g.J.dh=function(N){var z=PR(this.zU.get()),v=Vx(this.zU.get());if(z&&v&&!this.bv()){v=CM(N.clientMetadata,"metadata_type_preload_player_vars");var R=this.zU.get();R=g.LM(R.C.D().experiments,"html5_preload_wait_time_secs");v&&this.m6&&this.m6.start(R*1E3)}OZf(this,N);EJY(this);z?(v=this.AI.get(),N=CM(N.clientMetadata,"metadata_type_player_vars"),v.C.loadVideoByPlayerVars(N,!1,2)):q7u(this.AI.get(),CM(N.clientMetadata,"metadata_type_player_vars"));var C;(C=this.tB)==null||C.start();z||this.AI.get().C.playVideo(2)}; g.J.XV=function(){var N;(N=this.tB)==null||N.stop();this.Fr="adcompletioncuerange:"+this.lS().layoutId;this.H5.get().addCueRange(this.Fr,0x7ffffffffffff,0x8000000000000,!1,this,2,2);N=this.context.uL;var z=this.Fr,v=this.lS().layoutId;if(T2(N.zU.get(),!0)){var R={};N.oz("mccr",(R.cid=z,R.p_ac=v,R))}(this.adCpn=SIU(this))||LZ("Media layout confirmed started, but ad CPN not set.");this.fb.get().D6("onAdStart",this.adCpn);this.hX=Date.now()}; g.J.jZ=function(){var N;return(N=ei(this.XW.get(),2))==null?void 0:N.yB}; g.J.TN=function(){this.Dp.yl("clickthrough")}; g.J.T4=function(N,z){var v=this;this.LC(N,function(){if(v.ER!=="rendering_stop_requested"){v.ER="rendering_stop_requested";v.layoutExitReason=z;JN(v,z);var R;(R=v.tB)==null||R.stop();v.m6&&v.m6.stop();I0I(v)}})}; g.J.onCueRangeEnter=function(N){if(N!==this.Fr)LZ("Received CueRangeEnter signal for unknown layout.",this.l$(),this.lS(),{cueRangeId:N});else{var z=this.context.uL,v=this.lS().layoutId;if(T2(z.zU.get(),!0)){var R={};z.oz("mccre",(R.cid=N,R.p_ac=v,R))}this.H5.get().removeCueRange(this.Fr);this.Fr=void 0;Xu(this.context.zU.get(),"html5_ssap_flush_at_stop_rendering")&&this.bv()||(N=CM(this.lS().clientMetadata,"metadata_type_video_length_seconds"),this.B9(N,!0),this.h0("complete"))}}; g.J.Fc=function(N){N!=="abandoned"&&this.fb.get().D6("onAdComplete");this.fb.get().D6("onAdEnd",this.adCpn)}; g.J.onCueRangeExit=function(){}; g.J.I4=function(N){this.ER==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&N>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.C0.get().EN(!0),this.B9(N))}; g.J.B9=function(N,z){lE.prototype.B9.call(this,N,z===void 0?!1:z);z=Date.now()-this.hX;var v=N*1E3,R={contentCpn:this.K8(),adCpn:SIU(this)};if(N-this.fq>=5){var C=z=2||(this.hI.T4(this.layout,z),N=Xu(this.params.context.zU.get(),"html5_ssap_pass_transition_reason")&&z==="abandoned",this.v4()&&!N&&(Xu(this.params.context.zU.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(z)||LZ("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:z})),this.Vy.get().finishSegmentByCpn(this.layout.layoutId, ei(this.XW.get(),1).clientPlaybackNonce,ng(z,this.params.context.zU))),this.C0.get().removeListener(this),this.kO()&&Jx(this.hI.FM())&&this.mw.P5(this.slot,this.layout,xz(this.hI.FM())))}; g.J.ZP=function(N,z,v){a02({cpn:N,oy:this.XW.get(),Vs:!0});this.lS().layoutId!==N||Xu(this.params.context.zU.get(),"html5_ssap_pass_transition_reason")&&v===5||(G2(this.hI.FM())<2&&(N=mW(v,this.params.context.zU),N==="error"?this.mw.n5(this.slot,this.layout,new vL("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:v},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):X7(this.r6,this.layout, N)),Xu(this.params.context.zU.get(),"html5_ssap_exit_without_waiting_for_transition")||this.mw.P5(this.slot,this.layout,xz(this.hI.FM())))};g.y(Do,g.H);g.J=Do.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.kf=function(){}; g.J.w6=function(){return this.hJ[this.yS]}; g.J.N4=function(){return this.yS}; g.J.t9=function(N,z){var v=this.w6();z.layoutId!==tN(v,N,z)?LZ("pauseLayout for a PlayerBytes layout that is not currently active",N,z):v.t9()}; g.J.UQ=function(N,z){var v=this.w6();z.layoutId!==tN(v,N,z)?LZ("resumeLayout for a PlayerBytes layout that is not currently active",N,z):v.UQ()}; g.J.QR=function(N,z){var v=this.w6();vru(this,N,z);R22(v,N,z)&&this.Eo(v.l$(),v.lS(),"skipped")}; g.J.Bk=function(N,z){var v=this.w6();Cv7(this);ZhO(v,N,z)&&(N=Ymv(this,v,N,z),N!==void 0&&(this.bv()?LZ("Should not happen. Should delete"):jcb(this,v.l$(),v.lS(),N)))}; g.J.d0=function(N,z){var v=Object.assign({},bE(this),{layoutId:z.layoutId}),R=v.layoutId,C=v.Vs;if(v.TA){var Z={};dp(v.oy,"wrse",(Z.ec=R,Z.is=C,Z.ctp=f_(R),Z))}mF(this.NQ,N,z)}; g.J.Qh=function(N,z){var v;(v=this.w6())==null||v.Qh(N,z)}; g.J.P5=function(N,z,v){z.layoutId===this.lS().layoutId&&(this.nN=!1,GW(this.nV(),this));var R;(R=this.w6())==null||R.P5(N,z,v)}; g.J.I4=function(N){var z;(z=this.w6())==null||z.I4(N)}; g.J.SS=function(N,z,v){this.N4()===-1&&(this.callback.Qh(this.slot,this.layout),this.yS++);var R=this.w6();R?(R.yn(N,z,v),this.bv()&&this.callback.n5(this.slot,this.layout,z,v)):LZ("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.N4()),layoutId:this.lS().layoutId})}; g.J.onFullscreenToggled=function(N){var z;(z=this.w6())==null||z.onFullscreenToggled(N)}; g.J.eI=function(N){var z;(z=this.w6())==null||z.eI(N)}; g.J.jo=function(N){var z;(z=this.w6())==null||z.jo(N)}; g.J.onVolumeChange=function(){var N;(N=this.w6())==null||N.onVolumeChange()}; g.J.vV=function(N,z,v){$V(this.NQ,N,z,v)}; g.J.F7=function(N){N.startRendering(N.lS())}; g.J.init=function(){var N=CM(this.lS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");N&&(N.current=this);if(this.hJ.length<1)throw new q("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.hJ.length)});if(N=CM(this.lS().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))N.current=this;N=g.f(this.hJ);for(var z=N.next();!z.done;z=N.next())z=z.value,z.init(),B0f(this.NQ,this.slot,z.lS()),ATU(this.NQ,this.slot,z.lS()); if(this.bv())for(this.XW.get().addListener(this),RiI(z2Y(this),this.XW.get()),N=z2Y(this),N=g.f(N),z=N.next();!z.done;z=N.next())this.e2(z.value)}; g.J.e2=function(N){var z=CM(N.clientMetadata,"metadata_type_player_vars");z?(N.layoutType!=="LAYOUT_TYPE_MEDIA"&&LZ("Non-video ad contains playerVars",this.slot,N),this.AI.get().addPlayerResponseForAssociation({playerVars:z})):(N=M0u(N),this.AI.get().addPlayerResponseForAssociation({Lw:N}))}; g.J.release=function(){var N=CM(this.lS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");N&&(N.current=null);if(N=CM(this.lS().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))N.current=null;N=g.f(this.hJ);for(var z=N.next();!z.done;z=N.next())z=z.value,gE2(this.NQ,this.slot,z.lS()),z.release();this.bv()&&(this.XW.get().removeListener(this),C42())}; g.J.LC=function(N){return N.layoutId!==this.lS().layoutId?(this.callback.n5(this.l$(),N,new vL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.lS().layoutId+("and LayoutType: "+this.lS().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.J.Tc=function(){this.C0.get().addListener(this);WL(this.nV(),this)}; g.J.BD=function(N){if(N.state.isError()){var z,v;this.SS((z=N.state.BP)==null?void 0:z.errorCode,new vL("There was a player error during this media layout.",{playerErrorCode:(v=N.state.BP)==null?void 0:v.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(z=this.w6())&&z.BD(N)}; g.J.bv=function(){var N=CM(this.l$().clientMetadata,"metadata_type_eligible_for_ssap");return N===void 0?(LZ("Expected SSAP eligibility in PlayerBytes slots",this.l$(),this.lS()),!1):this.zU.get().bv(N)}; g.J.H1=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.d5=function(){}; g.J.Ma=function(){}; g.y(rr,Do);g.J=rr.prototype;g.J.c7=function(N,z,v){this.Eo(N,z,v)}; g.J.tq=function(N,z){this.Eo(N,z,"error")}; g.J.Eo=function(N,z,v){var R=this;ihv(this,N,z,v,function(){Ow(R,R.N4()+1)})}; g.J.startRendering=function(N){this.LC(N)&&(this.Tc(),rgI(this.eK.get()),RMu(this.zU.get())||EOK(this.C0.get()),this.N4()===-1&&Ow(this,this.N4()+1))}; g.J.T4=function(N,z){var v=this;this.nN=!0;this.N4()===this.hJ.length?this.callback.P5(this.slot,this.layout,z):(N=this.w6(),N.T4(N.lS(),z),this.PR=function(){v.callback.P5(v.slot,v.layout,z)}); hMx(this.C0.get());q7u(this.AI.get(),{});N=zj(this.C0.get(),1);N.isPaused()&&!g.u(N,2)&&this.C0.get().playVideo();this.C0.get().removeListener(this);this.nN&&aTm(this)}; g.J.ZP=function(){}; g.J.b8=function(){}; g.J.Bi=function(){}; g.y(uE,Do);g.J=uE.prototype;g.J.c7=function(N,z,v){N=Object.assign({},bE(this),{layoutId:z.layoutId,layoutExitReason:v});z=N.layoutId;v=N.layoutExitReason;var R={};dp(N.oy,"prse",(R.xc=z,R.ler=v,R.ctp=f_(z),R))}; g.J.tq=function(){LZ("onSubLayoutError in SSAP")}; g.J.Eo=function(){LZ("exitSubLayoutAndPlayNext in SSAP")}; g.J.w6=function(){return this.NF}; g.J.N4=function(){var N=this;return this.hJ.findIndex(function(z){var v;return z.lS().layoutId===((v=N.NF)==null?void 0:v.lS().layoutId)})}; g.J.F7=function(N){QW(this.NF===void 0,"replacing another adapter");this.NF=N;N.startRendering(N.lS())}; g.J.vV=function(N,z,v){$V(this.NQ,N,z,v);var R;QW(z.layoutId===((R=this.NF)==null?void 0:R.lS().layoutId),"currentAdapter does not match exiting layout",{slot:N?"slot: "+N.slotType:"",subLayout:at(z)})&&(this.NF=void 0)}; g.J.release=function(){Do.prototype.release.call(this);QW(this.NF===void 0,"currentAdapter is still active during release");this.NF=void 0}; g.J.v4=function(){return this.C0.get().getPresentingPlayerType()===2}; g.J.T4=function(N,z){function v(){cR(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(z)||LZ("Composite stopRendering: Unexpected layout exit reason",this.slot,N,{layoutExitReason:z}))} function R(){this.NF&&qQ(this,this.NF,z);if(this.v4()&&(!cR(this)||z!=="abandoned")){v.call(this);var Z;var Y=((Z=this.XW.get().C.getVideoData())==null?void 0:Z.clientPlaybackNonce)||"";Z=ei(this.XW.get(),1).clientPlaybackNonce;this.Vy.get().finishSegmentByCpn(Y,Z,ng(z,this.zU))}Qcu(this,z)} function C(){if(this.NF){var Z=this.NF;G2(Z.FM())<2&&Z.T4(Z.lS(),z);Z=cR(this)&&z==="abandoned";this.v4()&&!Z&&(v.call(this),this.Vy.get().finishSegmentByCpn(this.NF.lS().layoutId,ei(this.XW.get(),1).clientPlaybackNonce,ng(z,this.zU)))}} QW(N.layoutId===this.lS().layoutId,"StopRendering for wrong layout")&&e3(this.tG.W,z)&&(this.kO()?R.call(this):C.call(this))}; g.J.P5=function(N,z,v){Do.prototype.P5.call(this,N,z,v);z.layoutId===this.lS().layoutId&&this.C0.get().removeListener(this)}; g.J.K8=function(){return ei(this.XW.get(),1).clientPlaybackNonce}; g.J.ZP=function(N,z,v){a02(Object.assign({},bE(this),{cpn:N}));if(!cR(this)||v!==5)if(this.kO()){if(this.NF&&this.NF.lS().layoutId!==z){var R=this.NF.lS().layoutId;R!==N&&LZ("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:R,exitingCpn:N,enteringCpn:z});N=mW(v,this.zU);qQ(this,this.NF,N)}else this.NF&&LZ("onClipExited: active layout is entering again");z===this.K8()&&KcK(this,v)}else{if(this.NF&&this.NF.lS().layoutId===N)LcO(this,this.NF,v);else{var C;LZ("Exiting cpn does not match active cpn", this.slot,(R=this.NF)==null?void 0:R.lS(),{exitingCpn:N,transitionReason:v,activeCpn:(C=this.NF)==null?void 0:C.lS().layoutId})}z===this.K8()&&(this.NF!==void 0&&(LZ("active adapter is not properly exited",this.slot,this.layout,{activeLayout:at(this.NF.lS())}),LcO(this,this.NF,v)),KcK(this,v),Qcu(this,this.tG.W.V))}}; g.J.kO=function(){return Xu(this.zU.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.J.startRendering=function(N){this.LC(N)&&(N=this.tG,QW(N.V===1,"tickStartRendering: state is not initial"),N.V=2,this.Tc())}; g.J.b8=function(N){jtx(Object.assign({},bE(this),{cpn:N}));var z=this.hJ.find(function(v){return v.lS().layoutId===N}); z?(this.tG.V!==2&&(uP_(this.KG,this.slot.slotId),QW(this.tG.V===2,"Expect started"),this.callback.Qh(this.slot,this.layout)),this.F7(z),mF(this.NQ,this.slot,z.lS())):lTf(this,N)}; g.J.QR=function(N,z){vru(this,N,z);var v=this.w6();v?R22(v,N,z)&&Wc_(this,"skipped"):G4u(this,"onSkipRequested")}; g.J.Bk=function(N,z){var v;a:{if(v=this.w6()){if(Cv7(this),ZhO(v,N,z)&&(N=Ymv(this,v,N,z),N!==void 0)){v={UE:v,dHp:this.hJ[N]};break a}}else G4u(this,"SkipWithAdPodSkip");v=void 0}if(N=v)v=N.UE,z=N.dHp,N=v.lS().layoutId,this.kO()?qQ(this,v,"skipped"):v.T4(v.lS(),"skipped"),v=z.lS().layoutId,this.Vy.get().finishSegmentByCpn(N,v,ng("skipped",this.zU))}; g.J.d0=function(){LZ("Not used in html5_ssap_fix_layout_exit")}; g.J.BD=function(N){var z;(z=this.w6())==null||z.BD(N)}; g.J.SS=function(){LZ("Not used in html5_ssap_fix_layout_exit")}; g.J.Bi=function(N,z,v){var R;if(((R=this.w6())==null?void 0:R.lS().layoutId)!==z.layoutId)return void LZ("requestToExitSubLayout: wrong layout");Wc_(this,v)};g.y(MQ,g.H);g.J=MQ.prototype;g.J.l$=function(){return this.hI.l$()}; g.J.lS=function(){return this.hI.lS()}; g.J.init=function(){var N=CM(this.lS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");N&&(N.current=this);this.mj()}; g.J.mj=function(){this.hI.init()}; g.J.release=function(){var N=CM(this.lS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");N&&(N.current=null);this.Ag()}; g.J.Ag=function(){this.hI.release()}; g.J.t9=function(){this.hI.t9()}; g.J.UQ=function(){this.hI.UQ()}; g.J.QR=function(N,z){LZ("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.l$(),this.lS(),{requestingSlot:N,requestingLayout:z})}; g.J.startRendering=function(N){N.layoutId!==this.lS().layoutId?this.callback.n5(this.l$(),N,new vL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.lS().layoutId+("and LayoutType: "+this.lS().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.C0.get().addListener(this),WL(this.nV(),this),rgI(this.eK.get()),RMu(this.zU.get())||EOK(this.C0.get()),this.hI.startRendering(N))}; g.J.T4=function(N,z){this.nN=!0;this.hI.T4(N,z);hMx(this.C0.get());q7u(this.AI.get(),{});N=zj(this.C0.get(),1);N.isPaused()&&!g.u(N,2)&&this.C0.get().playVideo();this.C0.get().removeListener(this);this.nN&&this.hI.nF()}; g.J.Qh=function(N,z){this.hI.Qh(N,z)}; g.J.P5=function(N,z,v){z.layoutId===this.lS().layoutId&&(this.nN=!1,GW(this.nV(),this));this.hI.P5(N,z,v);z.layoutId===this.lS().layoutId&&Io(this.eK.get())}; g.J.I4=function(N){this.hI.I4(N)}; g.J.BD=function(N){if(N.state.isError()){var z,v;this.SS((z=N.state.BP)==null?void 0:z.errorCode,new vL("There was a player error during this media layout.",{playerErrorCode:(v=N.state.BP)==null?void 0:v.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.hI.BD(N)}; g.J.SS=function(N,z,v){this.hI.yn(N,z,v)}; g.J.onFullscreenToggled=function(N){this.hI.onFullscreenToggled(N)}; g.J.eI=function(N){this.hI.eI(N)}; g.J.jo=function(N){this.hI.jo(N)}; g.J.onVolumeChange=function(){this.hI.onVolumeChange()}; g.J.H1=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.d5=function(){}; g.J.Ma=function(){};g.J=wr.prototype;g.J.l$=function(){return this.slot}; g.J.lS=function(){return this.layout}; g.J.init=function(){this.x8.get().addListener(this);this.C0.get().addListener(this);var N=CM(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var z=CM(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.N){var v=OBY(this.x8.get()).slice(-1)[0];v!==void 0&&(N=v.startSecs*1E3,z=(v.startSecs+v.K5)*1E3)}this.ea(N,z);var R;v=(R=zQ(this.XW.get()))==null?void 0:R.clientPlaybackNonce;R=this.layout.Bb.adClientDataEntry;NY(this.sT.get(),{daiStateTrigger:{filledAdsDurationMs:z-N,contentCpn:v, adClientData:R}});var C=this.x8.get();C=Jcu(C.Z,N,z);C!==null&&(NY(this.sT.get(),{daiStateTrigger:{filledAdsDurationMs:C-N,contentCpn:v,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:R}}),this.Vy.get().OG(C,z))}; g.J.release=function(){this.Ag();this.x8.get().removeListener(this);this.C0.get().removeListener(this)}; g.J.startRendering=function(){this.dh();this.callback.Qh(this.slot,this.layout)}; g.J.T4=function(N,z){this.W$(z);if(this.driftRecoveryMs!==null){N=this.driftRecoveryMs.toString();var v=Math.round(ycm(this)-CM(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),R=Math,C=R.round;var Z=this.C0.get().C.RB();vD(this,{driftRecoveryMs:N,breakDurationMs:v,driftFromHeadMs:C.call(R,Z*1E3).toString()});this.driftRecoveryMs=null}this.callback.P5(this.slot,this.layout,z)}; g.J.y4=function(){return!1}; g.J.KD=function(N){var z=CM(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),v=CM(this.layout.clientMetadata,"metadata_type_layout_exit_ms");N*=1E3;if(z<=N&&N0&&U8(this.V(),z)}; g.J.R_=function(N){this.B.delete(N.slotId);for(var z=[],v=g.f(this.t0.values()),R=v.next();!R.done;R=v.next()){R=R.value;var C=R.trigger;C instanceof qY&&C.triggeringSlotId===N.slotId&&z.push(R)}z.length>0&&U8(this.V(),z)}; g.J.Z9=function(N){for(var z=[],v=g.f(this.t0.values()),R=v.next();!R.done;R=v.next()){R=R.value;var C=R.trigger;C instanceof ok&&C.slotType===N.slotType&&C.V!==N.slotId&&z.push(R)}z.length>0&&U8(this.V(),z)}; g.J.Ga=function(N){this.Z.add(N.slotId);for(var z=[],v=g.f(this.t0.values()),R=v.next();!R.done;R=v.next())R=R.value,R.trigger instanceof Ik&&N.slotId===R.trigger.triggeringSlotId&&z.push(R);z.length>0&&U8(this.V(),z)}; g.J.d6=function(N){this.Z.delete(N.slotId);this.N.add(N.slotId);for(var z=[],v=g.f(this.t0.values()),R=v.next();!R.done;R=v.next())if(R=R.value,R.trigger instanceof X5)N.slotId===R.trigger.triggeringSlotId&&z.push(R);else if(R.trigger instanceof BD){var C=R.trigger;N.slotId===C.slotId&&this.W.has(C.triggeringLayoutId)&&z.push(R)}z.length>0&&U8(this.V(),z)}; g.J.N2=function(N){for(var z=[],v=g.f(this.t0.values()),R=v.next();!R.done;R=v.next())R=R.value,R.trigger instanceof rl&&N.slotId===R.trigger.triggeringSlotId&&z.push(R);z.length>0&&U8(this.V(),z)}; g.J.Ku=function(N){for(var z=[],v=g.f(this.t0.values()),R=v.next();!R.done;R=v.next())R=R.value,R.trigger instanceof uJ&&N.slotId===R.trigger.triggeringSlotId&&z.push(R);z.length>0&&U8(this.V(),z)}; g.J.vD=function(N,z){this.G.add(z.layoutId)}; g.J.Ay=function(N,z){this.G.delete(z.layoutId)}; g.J.Qh=function(N,z){this.W.add(z.layoutId);for(var v=[],R=g.f(this.t0.values()),C=R.next();!C.done;C=R.next())if(C=C.value,C.trigger instanceof AQ)z.layoutId===C.trigger.triggeringLayoutId&&v.push(C);else if(C.trigger instanceof HD){var Z=C.trigger;N.slotType===Z.slotType&&z.layoutType===Z.layoutType&&z.layoutId!==Z.V&&v.push(C)}else C.trigger instanceof BD&&(Z=C.trigger,z.layoutId===Z.triggeringLayoutId&&this.N.has(Z.slotId)&&v.push(C));v.length>0&&U8(this.V(),v)}; g.J.P5=function(N,z,v){this.W.delete(z.layoutId);N=[];for(var R=g.f(this.t0.values()),C=R.next();!C.done;C=R.next())if(C=C.value,C.trigger instanceof pC&&z.layoutId===C.trigger.triggeringLayoutId&&N.push(C),C.trigger instanceof gl){var Z=C.trigger;z.layoutId===Z.triggeringLayoutId&&Z.V.includes(v)&&N.push(C)}N.length>0&&U8(this.V(),N)}; g.J.sD=function(){}; g.J.Iq=function(){this.N.clear()}; g.J.Fz=function(){};g.y(D7,g.H);D7.prototype.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(z instanceof $8))throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CloseRequestedTriggerAdapter");this.t0.set(z.triggerId,new NI(N,z,v,R))}; D7.prototype.jl=function(N){this.t0.delete(N.triggerId)};g.y(ts,g.H);ts.prototype.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(z instanceof mZ||z instanceof bJ))throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.t0.set(z.triggerId,new NI(N,z,v,R))}; ts.prototype.jl=function(N){this.t0.delete(N.triggerId)}; ts.prototype.Iq=function(N){for(var z=[],v=z.push,R=v.apply,C=[],Z=g.f(this.t0.values()),Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,Y.trigger instanceof mZ&&Y.trigger.ND===N&&C.push(Y);R.call(v,z,g.U(C));v=z.push;R=v.apply;C=[];Z=g.f(this.t0.values());for(Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,Y.trigger instanceof bJ&&Y.trigger.V!==N&&C.push(Y);R.call(v,z,g.U(C));z.length&&U8(this.V(),z)}; ts.prototype.Fz=function(N){for(var z=[],v=z.push,R=v.apply,C=[],Z=g.f(this.t0.values()),Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;var Q=Y.trigger;Q instanceof bJ&&Q.V===N&&C.push(Y)}R.call(v,z,g.U(C));z.length&&U8(this.V(),z)};g.y(O3,g.H);g.J=O3.prototype;g.J.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");var C="adtriggercuerange:"+z.triggerId;if(z instanceof Ec)H3v(this,N,z,v,R,C,z.V.start,z.V.end,z.ND,z.visible);else if(z instanceof Uc)H3v(this,N,z,v,R,C,0x7ffffffffffff,0x8000000000000,z.ND,z.visible);else throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CueRangeTriggerAdapter");}; g.J.jl=function(N){var z=this.t0.get(N.triggerId);z&&this.H5.get().removeCueRange(z.cueRangeId);this.t0.delete(N.triggerId)}; g.J.onCueRangeEnter=function(N){var z=oPf(this,N);if(z&&(z=this.t0.get(z)))if(g.u(zj(this.C0.get()),32))this.V.add(z.cueRangeId);else{var v=z==null?void 0:z.wR.trigger;if(v instanceof Ec||v instanceof Uc){if(T2(this.context.zU.get())){var R=z.wR.slot,C=z.wR.layout,Z={};this.context.uL.oz("cre",(Z.ca=z.wR.category,Z.tt=v.triggerType,Z.st=R.slotType,Z.lt=C==null?void 0:C.layoutType,Z.cid=N,Z))}U8(this.W(),[z.wR])}}}; g.J.onCueRangeExit=function(N){(N=oPf(this,N))&&(N=this.t0.get(N))&&this.V.delete(N.cueRangeId)}; g.J.BD=function(N){if(l4(N,16)<0){N=g.f(this.V);for(var z=N.next();!z.done;z=N.next())this.onCueRangeEnter(z.value,!0);this.V.clear()}}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.Qh=function(){}; g.J.P5=function(){}; g.J.sD=function(){}; g.J.I4=function(){}; g.J.onFullscreenToggled=function(){}; g.J.eI=function(){}; g.J.H1=function(){}; g.J.jo=function(){}; g.J.onVolumeChange=function(){}; g.J.d5=function(){}; g.J.Ma=function(){};g.y(Ia,g.H);g.J=Ia.prototype; g.J.lG=function(N,z,v,R){if(this.W.has(z.triggerId)||this.Z.has(z.triggerId))throw new q("Tried to re-register the trigger.");N=new NI(N,z,v,R);if(N.trigger instanceof SH)this.W.set(N.trigger.triggerId,N);else if(N.trigger instanceof k8)this.Z.set(N.trigger.triggerId,N);else throw new q("Incorrect TriggerType: Tried to register trigger of type "+N.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(N.trigger.triggerId)&&N.slot.slotId===this.V&&U8(this.N(),[N])}; g.J.jl=function(N){this.W.delete(N.triggerId);this.Z.delete(N.triggerId)}; g.J.kf=function(N){N=N.slotId;if(this.V!==N){var z=[];this.V!=null&&z.push.apply(z,g.U(DKf(this.Z,this.V)));N!=null&&z.push.apply(z,g.U(DKf(this.W,N)));this.V=N;z.length&&U8(this.N(),z)}}; g.J.ZP=function(){}; g.J.b8=function(){};g.y(X3,g.H);g.J=X3.prototype;g.J.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(z instanceof DP))throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.t0.set(z.triggerId,new NI(N,z,v,R))}; g.J.jl=function(N){this.t0.delete(N.triggerId)}; g.J.Qh=function(){}; g.J.P5=function(){}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){};g.y(rQ,g.H);g.J=rQ.prototype;g.J.sD=function(N,z){for(var v=[],R=g.f(this.t0.values()),C=R.next();!C.done;C=R.next()){C=C.value;var Z=C.trigger;Z.opportunityType===N&&(Z.associatedSlotId&&Z.associatedSlotId!==z||v.push(C))}v.length&&U8(this.V(),v)}; g.J.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(z instanceof rTf))throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OpportunityEventTriggerAdapter");this.t0.set(z.triggerId,new NI(N,z,v,R))}; g.J.jl=function(N){this.t0.delete(N.triggerId)}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.Qh=function(){}; g.J.P5=function(){};g.y(u5,g.H);g.J=u5.prototype;g.J.lG=function(N,z,v,R){N=new NI(N,z,v,R);if(z instanceof PD||z instanceof hQ||z instanceof Vn||z instanceof tQ||z instanceof rcm){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");this.t0.set(z.triggerId,N)}else throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in PrefetchTriggerAdapter");}; g.J.jl=function(N){this.t0.delete(N.triggerId)}; g.J.XZ=function(N){var z=N.slotFulfillmentTriggers.find(function(v){return v instanceof PD}); z&&(ck(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",z.breakDurationMs,new Set([N.slotId]),!0),CC(this.sT.get(),"ads_css","sid."+N.slotId+";bd."+z.breakDurationMs+";fs."+this.Z.size))}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.Qh=function(){}; g.J.P5=function(){}; g.J.sD=function(){}; g.J.y4=function(N){var z=this;if(!this.V)return LZ("Unexpected cue break before fetch instructions are available"),!1;this.W&&this.W.stop();this.N&&g.qv(this.N);var v=O3Y(this,N);if(!v){for(var R=[],C=g.f(this.t0.values()),Z=C.next();!Z.done;Z=C.next())Z=Z.value.trigger,Z instanceof PD&&R.push(Z.breakDurationMs);CC(this.sT.get(),"ads_ncfs","cid."+N.identifier+";cd."+N.K5.toFixed(3)+R.slice(0,6).map(function(Y){return";bd."+Y}).join("")); return!1}(new g.cn(function(){var Y=v.trigger,Q=v.slot;ck(z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Y.breakDurationMs,new Set,!0);ck(z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Y.breakDurationMs,new Set,!1);z.Z.add(Q.slotId);CC(z.sT.get(),"ads_csf","sid."+Q.slotId+";bd."+Y.breakDurationMs+";fs."+z.Z.size)},10)).start(); return!0}; g.J.KD=function(){}; g.J.Iq=function(N){this.V&&this.V.contentCpn!==N?(LZ("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:N,fetchInstructionsCpn:this.V.contentCpn}),CC(this.sT.get(),"ads_ccvl","fs."+this.Z.size),qs(this)):tT2(this)}; g.J.Fz=function(N){this.V&&this.V.contentCpn!==N&&LZ("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:N,fetchInstructionsCpn:this.V.contentCpn},!0);CC(this.sT.get(),"ads_ccve","fs."+this.Z.size);qs(this)}; g.J.df=function(N){var z=this;if(this.V)LZ("Unexpected multiple fetch instructions for the current content");else{this.V=N;N=X2_(N);this.W=new g.cn(function(){tT2(z)},N?N:6E5); this.W.start();this.N=new g.cn(function(){z.V&&(z.W&&(z.W.stop(),z.W.start()),b3Y(z,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Iy2(this.V)); N=s3(this.C0.get());for(var v=g.f(OBY(this.x8.get())),R=v.next();!R.done;R=v.next())R=R.value,CC(this.sT.get(),"nocache","ct."+Date.now()+";cmt."+N+";d."+R.K5.toFixed(3)+";tw."+(R.startSecs-N)+";cid."+R.identifier+";")}}; g.J.AO=function(){g.H.prototype.AO.call(this);qs(this)};g.y(Ms,g.H);g.J=Ms.prototype;g.J.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(z instanceof wl))throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.t0.set(z.triggerId,new NI(N,z,v,R));N=this.V.has(z.triggeringLayoutId)?g.h(this.V.get(z.triggeringLayoutId)):new Set;N.add(z);this.V.set(z.triggeringLayoutId,N)}; g.J.jl=function(N){this.t0.delete(N.triggerId);if(!(N instanceof wl))throw new q("Incorrect TriggerType: Tried to unregister trigger of type "+N.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var z=this.W.get(N.triggerId);z&&(z.dispose(),this.W.delete(N.triggerId));if(z=this.V.get(N.triggeringLayoutId))z.delete(N),z.size===0&&this.V.delete(N.triggeringLayoutId)}; g.J.XZ=function(){}; g.J.R_=function(){}; g.J.Z9=function(){}; g.J.Ga=function(){}; g.J.d6=function(){}; g.J.N2=function(){}; g.J.Ku=function(){}; g.J.vD=function(){}; g.J.Ay=function(){}; g.J.sD=function(){}; g.J.Qh=function(N,z){var v=this;if(this.V.has(z.layoutId)){N=g.h(this.V.get(z.layoutId));N=g.f(N);var R=N.next();for(z={};!R.done;z={QJ:void 0},R=N.next())z.QJ=R.value,R=new g.cn(function(C){return function(){var Z=g.h(v.t0.get(C.QJ.triggerId));U8(v.Z(),[Z])}}(z),z.QJ.durationMs),R.start(),this.W.set(z.QJ.triggerId,R)}}; g.J.P5=function(){};g.y(wQ,g.H);wQ.prototype.lG=function(N,z,v,R){if(this.t0.has(z.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(z instanceof F5))throw new q("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in VideoTransitionTriggerAdapter.");this.t0.set(z.triggerId,new NI(N,z,v,R))}; wQ.prototype.jl=function(N){this.t0.delete(N.triggerId)};RJ.prototype.O7=function(N){return N.kind==="AD_PLACEMENT_KIND_START"};g.y(Y0,g.H);g.J=Y0.prototype;g.J.logEvent=function(N){this.A9(N)}; g.J.v1=function(N,z,v){this.A9(N,void 0,void 0,void 0,z,void 0,void 0,void 0,z.adSlotLoggingData,void 0,void 0,v)}; g.J.D9=function(N,z,v,R){this.A9(N,void 0,void 0,void 0,z,v?v:void 0,void 0,void 0,z.adSlotLoggingData,v?v.adLayoutLoggingData:void 0,void 0,R)}; g.J.xe=function(N,z,v,R){Xu(this.zU.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+N,"trigger:",v,"slot:",z,"layout:",R);aY(this.V.get())&&this.A9(N,void 0,void 0,void 0,z,R?R:void 0,void 0,v,z.adSlotLoggingData,R?R.adLayoutLoggingData:void 0)}; g.J.Br=function(N,z,v,R,C){this.A9(N,z,v,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,C)}; g.J.qC=function(N,z,v,R){this.A9("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,v,R,void 0,void 0,v.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,{errorType:N,errorMessage:z})}; g.J.A9=function(N,z,v,R,C,Z,Y,Q,L,K,l,W){var G=this;W=W===void 0?0:W;Xu(this.zU.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+N,"slot:",C,"layout:",Z,"ping:",Y,"Opportunity:",{opportunityType:z,associatedSlotId:v,PQo:R,Nud:Q,adSlotLoggingData:L,adLayoutLoggingData:K});try{var x=function(){if(!G.zU.get().C.D().X("html5_disable_client_tmp_logs")&&N!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){N||LZ("Empty PACF event type",C,Z);var e=aY(G.V.get()),d={eventType:N,eventOrder:++G.eventCount},T={}; C&&(T.slotData=jR(e,C));Z&&(T.layoutData=FKv(e,Z));Y&&(T.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:Y.V.serializedAdPingMetadata,pingIndex:Y.index});Q&&(T.triggerData=ic(Q.trigger,Q.category));z&&(T.opportunityData=nE2(e,z,v,R));e={organicPlaybackContext:{contentCpn:ei(G.XW.get(),1).clientPlaybackNonce}};e.organicPlaybackContext.isLivePlayback=ei(G.XW.get(),1).Hb;var m;e.organicPlaybackContext.isMdxPlayback=(m=ei(G.XW.get(),1))==null?void 0:m.isMdxPlayback; var n;if((n=ei(G.XW.get(),1))==null?0:n.daiEnabled)e.organicPlaybackContext.isDaiContent=!0;var P;if(m=(P=ei(G.XW.get(),2))==null?void 0:P.clientPlaybackNonce)e.adVideoPlaybackContext={adVideoCpn:m};e&&(T.externalContext=e);d.adClientData=T;L&&(d.serializedSlotAdServingData=L.serializedSlotAdServingDataEntry);K&&(d.serializedAdServingData=K.serializedAdServingDataEntry);l&&(d.errorInfo=l);g.aX("adsClientStateChange",{adsClientEvent:d})}}; W&&W>0?g.M0(g.Np(),function(){return x()},W):x()}catch(e){Xu(this.zU.get(),"html5_log_pacf_logging_errors")&&g.M0(g.Np(),function(){LZ(e instanceof Error?e:String(e),C,Z,{pacf_message:"exception during pacf logging"})})}};var Zt$=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(is,Y0);g.J=is.prototype; g.J.v1=function(N,z,v){Y0.prototype.v1.call(this,N,z,v);T2(this.zU.get())&&(v={},this.context.uL.oz("pacf",(v.et=N,v.st=z.slotType,v.si=z.slotId,v)))}; g.J.D9=function(N,z,v,R){var C=Zt$.has(N);Y0.prototype.D9.call(this,N,z,v,R);T2(this.zU.get(),C)&&(R={},this.context.uL.oz("pacf",(R.et=N,R.st=z.slotType,R.si=z.slotId,R.lt=v==null?void 0:v.layoutType,R.li=v==null?void 0:v.layoutId,R.p_ac=v==null?void 0:v.layoutId,R)))}; g.J.Br=function(N,z,v,R,C){Y0.prototype.Br.call(this,N,z,v,R,C);T2(this.zU.get())&&(v={},this.context.uL.oz("pacf",(v.et=N,v.ot=z,v.ss=R==null?void 0:R.length,v)))}; g.J.xe=function(N,z,v,R){Y0.prototype.xe.call(this,N,z,v,R);if(T2(this.zU.get())){var C={};this.context.uL.oz("pacf",(C.et=N,C.tt=v.trigger.triggerType,C.tc=v.category,C.st=z.slotType,C.si=z.slotId,C.lt=R==null?void 0:R.layoutType,C.li=R==null?void 0:R.layoutId,C.p_ac=R==null?void 0:R.layoutId,C))}}; g.J.qC=function(N,z,v,R){Y0.prototype.qC.call(this,N,z,v,R);if(T2(this.zU.get(),!0)){var C={};this.context.uL.oz("perror",(C.ert=N,C.erm=z,C.st=v.slotType,C.si=v.slotId,C.lt=R==null?void 0:R.layoutType,C.li=R==null?void 0:R.layoutId,C.p_ac=R==null?void 0:R.layoutId,C))}}; g.J.A9=function(N,z,v,R,C,Z,Y,Q,L,K,l){var W=this.zU.get();g.nM(W.C.D())?(W=this.zU.get(),W=g.LM(W.C.D().experiments,"H5_async_logging_delay_ms")):W=void 0;Y0.prototype.A9.call(this,N,z,v,R,C,Z,Y,Q,L,K,l,W)};jv.prototype.clear=function(){this.V.clear()};g.J=aJ.prototype;g.J.state=function(){return this.currentState==="fulfilled"?{state:"fulfilled",value:this.result}:this.GB()?{state:"rejected",reason:this.error}:{state:"pending"}}; g.J.GB=function(){return this.currentState==="rejected"}; g.J.wait=function(){var N=this;return function v(){return Vf(v,function(R){if(R.W==1)return g.Tu(R,2),g.k(R,{JY:N},4);if(R.W!=2)return R.return(R.V);g.Ab(R);return g.pO(R,0)})}()}; g.J.Od=function(N){Lb(N)||QP(N)?x0(Kb(N),this.Od.bind(this),this.reject.bind(this)):(this.currentState="fulfilled",this.result=N,Gz(this))}; g.J.reject=function(N){this.currentState="rejected";this.error=N;Gz(this)}; var QP=dS(function(N){return UxU(N)?N instanceof aJ:!1});Object.freeze({pTW:function(N){var z=s_(N);return x0(dq(z,function(v){return z[v].GB()}),function(v){return Number.isNaN(v)?z.map(function(R){return R.state().value}):z[v]})}, HEp:function(N){var z=s_(N);return x0(dq(z),function(){return z.map(function(v){return v.state()})})}, sp8:function(N){var z=s_(N);return x0(dq(z,function(v){return z[v].currentState==="fulfilled"}),function(v){return Number.isNaN(v)?ls(new AggregateError(z.map(function(R){return R.state().reason}))):z[v].state().value})}, Bup:function(N){var z=s_(N);return x0(dq(z,function(){return!0}),function(v){return z[v]})}});var Tz=window.t18||"es";$0.prototype.Rf=function(N){this.client=N}; $0.prototype.V=function(){this.clear();this.csn=g.nz()}; $0.prototype.clear=function(){this.Z.clear();this.W.clear();this.N.clear();this.csn=null};BM.prototype.Rf=function(N){g.qV(U_().Rf).bind(U_())(N)}; BM.prototype.clear=function(){g.qV(U_().clear).bind(U_())()};g.J=AG.prototype;g.J.Rf=function(N){this.client=N}; g.J.X8=function(N,z){var v=this;z=z===void 0?{}:z;g.qV(function(){var R,C,Z,Y=((R=g.t(N==null?void 0:N.commandMetadata,g.dF))==null?void 0:R.rootVe)||((C=g.t(N==null?void 0:N.commandMetadata,FUU))==null?void 0:(Z=C.screenVisualElement)==null?void 0:Z.uiType);if(Y){R=g.t(N==null?void 0:N.commandMetadata,tzm);if(R==null?0:R.parentTrackingParams){var Q=g.sn(R.parentTrackingParams);if(R.parentCsn)var L=R.parentCsn}else z.clickedVisualElement?Q=z.clickedVisualElement:N.clickTrackingParams&&(Q=g.sn(N.clickTrackingParams)); a:{R=g.t(N,g.wi);C=g.t(N,SNW);if(R){if(C=KF_(R,"VIDEO")){R={token:C,videoId:R.videoId};break a}}else if(C&&(R=KF_(C,"PLAYLIST"))){R={token:R,playlistId:C.playlistId};break a}R=void 0}z=Object.assign({},{cttAuthInfo:R,parentCsn:L},z);if(g.yj("expectation_logging")){var K;z.loggingExpectations=((K=g.t(N==null?void 0:N.commandMetadata,FUU))==null?void 0:K.loggingExpectations)||void 0}pb(v,Y,Q,z)}else g.PN(new g.XS("Error: Trying to create a new screen without a rootVeType",N))})()}; g.J.clickCommand=function(N,z,v){N=N.clickTrackingParams;v=v===void 0?0:v;N?(v=g.nz(v===void 0?0:v))?(w0(this.client,v,g.sn(N),z),z=!0):z=!1:z=!1;return z}; g.J.stateChanged=function(N,z,v){this.visualElementStateChanged(g.sn(N),z,v===void 0?0:v)}; g.J.visualElementStateChanged=function(N,z,v){v=v===void 0?0:v;v===0&&this.W.has(v)?this.Y.push([N,z]):JYu(this,N,z,v)};Sv.prototype.fetch=function(N,z,v){var R=this,C=dhU(N,z,v);return new Promise(function(Z,Y){function Q(){if(v==null?0:v.xC)try{var K=R.handleResponse(N,C.status,C.response,v);Z(K)}catch(l){Y(l)}else Z(R.handleResponse(N,C.status,C.response,v))} C.onerror=Q;C.onload=Q;var L;C.send((L=z.body)!=null?L:null)})}; Sv.prototype.handleResponse=function(N,z,v,R){v=v.replace(")]}'","");try{var C=JSON.parse(v)}catch(Z){g.PN(new g.XS("JSON parsing failed after XHR fetch",N,z,v));if((R==null?0:R.xC)&&v)throw new g.vy(1,"JSON parsing failed after XHR fetch");C={}}z!==200&&(g.PN(new g.XS("XHR API fetch failed",N,z,v)),C=Object.assign({},C,{errorMetadata:{status:z}}));return C};E_.getInstance=function(){var N=g.qx("ytglobal.storage_");N||(N=new E_,g.cU("ytglobal.storage_",N));return N}; E_.prototype.estimate=function(){var N,z,v;return g.S(function(R){N=navigator;return((z=N.storage)==null?0:z.estimate)?R.return(N.storage.estimate()):((v=N.webkitTemporaryStorage)==null?0:v.queryUsageAndQuota)?R.return(sYI()):R.return()})}; g.cU("ytglobal.storageClass_",E_);iR.prototype.IT=function(N){this.handleError(N)}; iR.prototype.logEvent=function(N,z){switch(N){case "IDB_DATA_CORRUPTED":g.yj("idb_data_corrupted_killswitch")||this.V("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.V("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":g.yj("idb_is_supported_completed_killswitch")||this.V("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":FFx(this,z);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.V("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":N= Object.assign({},z,{hasWindowUnloaded:this.W}),this.V("idbTransactionAborted",N)}};var XZ={},aDI=g.w8("yt-player-local-media",{ZR:(XZ.index={e7:2},XZ.media={e7:2},XZ.captions={e7:5},XZ),shared:!1,upgrade:function(N,z){z(2)&&(g.U5(N,"index"),g.U5(N,"media"));z(5)&&g.U5(N,"captions");z(6)&&(Bz(N,"metadata"),Bz(N,"playerdata"))}, version:5});var YLU={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},rF;a:{var uZ=g.mU();uZ=uZ.toLowerCase();if(g.yg(uZ,"android")){var itW=uZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(itW){var jz$=parseFloat(itW[1]);if(jz$<100){rF=jz$;break a}}var aQ7=uZ.match("("+Object.keys(YLU).join("|")+")");rF=aQ7?YLU[aQ7[0]]:0}else rF=void 0}var pu=rF,gd=pu>=0;var ORI=window;var nV_=GP(function(){var N,z;return(z=(N=window).matchMedia)==null?void 0:z.call(N,"(prefers-reduced-motion: reduce)").matches});var HM;g.hG=new UU;HM=0;var N9=pLf()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Xi?!0:!1;var bs={xG:function(N,z){var v=N[0];N[0]=N[z%N[a[5]]];N[z%N[a[5]]]=v}, Gw:function(N,z){N[a[52]](0,z)}, Qc:function(N){N[a[31]]()}};var Ycu={HuU:"adunit",gK0:"detailpage",Zrl:"editpage",Kyo:"embedded",QTW:"leanback",kFT:"previewpage",ao8:"profilepage",sE:"unplugged",n3T:"playlistoverview",wZd:"sponsorshipsoffer",lop:"shortspage",JiL:"handlesclaiming",beo:"immersivelivepage",Jep:"creatormusic",eLW:"immersivelivepreviewpage",Gl0:"admintoolyurt",S5T:"shortsaudiopivot",j4L:"consumption"};var Pc_=2592E3;var cp,Qzl,s4;cp={};g.cM=(cp.STOP_EVENT_PROPAGATION="html5-stop-propagation",cp.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",cp.IV_DRAWER_OPEN="ytp-iv-drawer-open",cp.MAIN_VIDEO="html5-main-video",cp.VIDEO_CONTAINER="html5-video-container",cp.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",cp.HOUSE_BRAND="house-brand",cp);Qzl={};s4=(Qzl.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Qzl.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Qzl);var tRu={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var rn2={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},ugY={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"},zKu={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var UIU={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.iL.prototype.getLanguageInfo=function(){return this.u$}; g.iL.prototype.getXtags=function(){if(!this.xtags){var N=this.id.split(";");N.length>1&&(this.xtags=N[1])}return this.xtags}; g.iL.prototype.toString=function(){return this.u$.name}; g.iL.prototype.getLanguageInfo=g.iL.prototype.getLanguageInfo;j$.prototype.equals=function(N){return this.W===N.W&&this.V===N.V&&this.Z===N.Z&&this.reason===N.reason&&(!QN||this.i$===N.i$)}; j$.prototype.isLocked=function(){return this.Z&&!!this.W&&this.W===this.V}; j$.prototype.compose=function(N){if(N.Z&&Lf(N))return tK;if(N.Z||Lf(this))return N;if(this.Z||Lf(N))return this;var z=this.W&&N.W?Math.max(this.W,N.W):this.W||N.W,v=this.V&&N.V?Math.min(this.V,N.V):this.V||N.V;z=Math.min(z,v);var R=0;QN&&(R=this.i$!==0&&N.i$!==0?Math.min(this.i$,N.i$):this.i$===0?N.i$:this.i$);return QN&&z===this.W&&v===this.V&&R===this.i$||!QN&&z===this.W&&v===this.V?this:QN?new j$(z,v,!1,v===this.V&&R===this.i$?this.reason:N.reason,R):new j$(z,v,!1,v===this.V?this.reason:N.reason)}; j$.prototype.N=function(N){return!N.video||QN&&this.i$!==0&&this.i$=0}; g.J.fE=function(){var N=this.segments[this.segments.length-1];return N?N.endTime:NaN}; g.J.Mp=function(){return this.segments[0].startTime}; g.J.QH=function(){return this.segments.length}; g.J.cZ=function(){return 0}; g.J.vP=function(N){return(N=this.M9(N))?N.cL:-1}; g.J.dF=function(N){return(N=this.Bp(N))?N.sourceURL:""}; g.J.getStartTime=function(N){return(N=this.Bp(N))?N.startTime:0}; g.J.zn=function(N){return this.getStartTime(N)+this.getDuration(N)}; g.J.sH=zu(1);g.J.isLoaded=function(){return this.segments.length>0}; g.J.Bp=function(N){if(this.V&&this.V.cL===N)return this.V;N=g.A8(this.segments,new P7(N,0,0,0,""),function(z,v){return z.cL-v.cL}); return this.V=N>=0?this.segments[N]:null}; g.J.M9=function(N){if(this.V&&this.V.startTime<=N&&N=0?this.segments[N]:this.segments[Math.max(0,-N-2)]}; g.J.append=function(N){if(N.length)if(N=g.T1(N),this.segments.length){var z=this.segments.length?g.lW(this.segments).endTime:0,v=N[0].cL-this.YH();v>1&&nmK(this.segments);for(v=v>0?0:-v+1;vN.cL&&this.index.uf()<=N.cL+1}; g.J.update=function(N,z,v){this.index.append(N);FTO(this.index,v);N=this.index;N.W=z;N.Z="update"}; g.J.eN=function(){return this.Bu()?!0:gg.prototype.eN.call(this)}; g.J.zq=function(N,z){var v=this.index.dF(N),R=this.index.getStartTime(N),C=this.index.getDuration(N),Z;z?C=Z=0:Z=this.info.i$>0?this.info.i$*C:1E3;return new ta([new SA(3,this,void 0,"liveCreateRequestInfoForSegment",N,R,C,0,Z,!z)],v)}; g.J.KL=function(){return this.Bu()?0:this.initRange.length}; g.J.r_=function(){return!1};qy.prototype.update=function(N){var z=void 0;this.W&&(z=this.W);var v=new qy,R=Array.from(N.getElementsByTagName("S"));if(R.length){var C=+uC(N,"timescale")||1,Z=(+R[0].getAttribute("t")||0)/C,Y=+uC(N,"startNumber")||0;v.N=Z;var Q=z?z.startSecs+z.K5:0,L=Date.parse(yCK(uC(N,"yt:segmentIngestTime")))/1E3;v.B=N.parentElement.tagName==="SegmentTemplate";v.B&&(v.L=uC(N,"media"));N=z?Y-z.cL:1;v.G=N>0?0:-N+1;N=g.f(R);for(R=N.next();!R.done;R=N.next()){R=R.value;for(var K=+R.getAttribute("d")/C,l=(+R.getAttribute("yt:sid")|| 0)/C,W=+R.getAttribute("r")||0,G=0;G<=W;G++)if(z&&Y<=z.cL)Y++;else{var x=new elf(Y,Q,K,L+l,Z);v.V.push(x);var e=R;var d=C,T=x.startSecs;x=e.getAttribute("yt:cuepointTimeOffset");var m=e.getAttribute("yt:cuepointDuration");if(x&&m){x=Number(x);T=-x/d+T;d=Number(m)/d;m=e.getAttribute("yt:cuepointContext")||null;var n=e.getAttribute("yt:cuepointIdentifier")||"";e=e.getAttribute("yt:cuepointEvent")||"";e=new OQ(T,d,m,n,KRw[e]||"unknown",x)}else e=null;e&&v.Z.push(e);Y++;Q+=K;Z+=K;L+=K+l}}v.V.length&& (v.W=g.lW(v.V))}this.G=v.G;this.W=v.W||this.W;g.nm(this.V,v.V);g.nm(this.Z,v.Z);this.B=v.B;this.L=v.L;this.N===-1&&(this.N=v.getStreamTimeOffset())}; qy.prototype.getStreamTimeOffset=function(){return this.N===-1?0:this.N};g.y(wg,g.VN);g.J=wg.prototype;g.J.gB=function(){return this.Ry}; g.J.j7=function(N,z){N=NX(this,N);return N>=0&&(z||!this.segments[N].pending)}; g.J.uf=function(){return this.ZW?this.segments.length?this.M9(this.Mp()).cL:-1:g.VN.prototype.uf.call(this)}; g.J.Mp=function(){if(this.pG)return 0;if(!this.ZW)return g.VN.prototype.Mp.call(this);if(!this.segments.length)return 0;var N=Math.max(g.lW(this.segments).endTime-this.S_,0);return this.PH>0&&g.h(this.M9(N)).cL0)return this.s5/1E3;if(!this.segments.length)return g.VN.prototype.fE.call(this);var N=this.YH();if(!this.ZW||N<=this.segments[this.segments.length-1].cL)N=this.segments[this.segments.length-1];else{var z=this.segments[this.segments.length-1];N=new P7(N,Math.max(0,z.startTime-(z.cL-N)*this.Ry),this.Ry,0,"sq/"+N,void 0,void 0,!0)}return this.pG?Math.min(this.S_,N.endTime):N.endTime}; g.J.QH=function(){return this.ZW?this.segments.length?this.YH()-this.uf()+1:0:g.VN.prototype.QH.call(this)}; g.J.YH=function(){var N=Math.min(this.qo,Math.max(g.VN.prototype.YH.call(this),this.PS)),z=this.S_*1E3;z=this.s5>0&&this.s50&&this.PS>0&&!z&&(z=this.M9(this.S_))&&(N=Math.min(z.cL-1,N));return N}; g.J.uj=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.J.Ms=function(N){var z=NX(this,N.cL);if(z>=0)this.segments[z]=N;else if(this.segments.splice(-(z+1),0,N),this.Ys&&N.cL%(300/this.Ry)===0){var v=this.segments[0].cL,R=Math.floor(this.Ys/this.Ry);N=N.cL-R;z=-(z+1)-R;z>0&&N>v&&(this.segments=this.segments.slice(z))}}; g.J.An=function(){return this.PS}; g.J.sW=function(N){return My?!this.W&&N>=0&&this.YH()<=N:g.VN.prototype.sW.call(this,N)}; g.J.M9=function(N){if(!this.ZW)return g.VN.prototype.M9.call(this,N);if(!this.segments.length)return null;var z=this.segments[this.segments.length-1];if(N=z.endTime)z=z.cL+Math.floor((N-z.endTime)/this.Ry+1);else{z=k5(this.segments,function(R){return N=R.endTime?1:0}); if(z>=0)return this.segments[z];var v=-(z+1);z=this.segments[v-1];v=this.segments[v];z=Math.floor((N-z.endTime)/((v.startTime-z.endTime)/(v.cL-z.cL-1))+1)+z.cL}return this.Bp(z)}; g.J.Bp=function(N){if(!this.ZW)return g.VN.prototype.Bp.call(this,N);if(!this.segments.length)return null;var z=NX(this,N);if(z>=0)return this.segments[z];var v=-(z+1);z=this.Ry;if(v===0)var R=Math.max(0,this.segments[0].startTime-(this.segments[0].cL-N)*z);else v===this.segments.length?(R=this.segments[this.segments.length-1],R=R.endTime+(N-R.cL-1)*z):(R=this.segments[v-1],z=this.segments[v],z=(z.startTime-R.endTime)/(z.cL-R.cL-1),R=R.endTime+(N-R.cL-1)*z);return new P7(N,R,z,0,"sq/"+N,void 0,void 0, !0)}; var My=!1;g.y(zK,rg);g.J=zK.prototype;g.J.Gz=function(){return!0}; g.J.eN=function(){return!0}; g.J.AG=function(N){return this.VR()&&N.Z&&!N.B||!N.V.index.sW(N.cL)}; g.J.yU=function(){}; g.J.mz=function(N,z){return typeof N!=="number"||isFinite(N)?rg.prototype.mz.call(this,N,z===void 0?!1:z):new ta([new SA(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.lY,void 0,this.lY*this.info.i$)],"")}; g.J.zq=function(N,z){var v=v===void 0?!1:v;if(this.index.j7(N))return rg.prototype.zq.call(this,N,z);var R=this.index.getStartTime(N),C=Math.round(this.lY*this.info.i$),Z=this.lY;z&&(Z=C=0);return new ta([new SA(v?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",N,R,Z,void 0,C,!z)],N>=0?"sq/"+N:"")};g.y(vc,gg);g.J=vc.prototype;g.J.MC=function(){return!1}; g.J.VR=function(){return!1}; g.J.Gz=function(){return!1}; g.J.yU=function(){return new ta([new SA(1,this,void 0,"otfInit")],this.B)}; g.J.jH=function(){return null}; g.J.Wd=function(N){this.AG(N);return $a_(this,oG(N),!1)}; g.J.mz=function(N,z){z=z===void 0?!1:z;N=this.index.vP(N);z&&(N=Math.min(this.index.YH(),N+1));return $a_(this,N,!0)}; g.J.hN=function(N){N.info.type===1&&(this.V||(this.V=sf(N.V)),N.W&&N.W.uri==="http://youtube.com/streaming/otf/durations/112015"&&UaK(this,N.W))}; g.J.AG=function(N){return N.Z===0?!0:this.index.YH()>N.cL&&this.index.uf()<=N.cL+1}; g.J.KL=function(){return 0}; g.J.r_=function(){return!1};g.Ry.prototype.info=function(){}; g.Ry.prototype.debug=function(){}; g.Ry.prototype.V=function(N){Cr.apply(null,[5,this.tag,N].concat(g.U(g.SI.apply(1,arguments))))}; var gxO=new Map,Prb=new Map,pEv=new function(){var N=this;this.V=new Map;this.Oi={sR8:function(){return N.V}}};ZC.prototype.VT=function(){return this.V.VT()};g.J=g.Lr.prototype;g.J.j7=function(N){return N<=this.YH()}; g.J.cZ=function(N){return this.offsets[N]}; g.J.getStartTime=function(N){return this.startTicks[N]/this.V}; g.J.zn=function(N){return this.getStartTime(N)+this.getDuration(N)}; g.J.sH=zu(0);g.J.LG=function(){return NaN}; g.J.getDuration=function(N){N=this.P_(N);return N>=0?N/this.V:-1}; g.J.P_=function(N){return N+1=0}; g.J.fE=function(){return this.W?this.startTicks[this.count]/this.V:NaN}; g.J.Mp=function(){return 0}; g.J.QH=function(){return this.count}; g.J.dF=function(){return""}; g.J.vP=function(N){N=g.A8(this.startTicks.subarray(0,this.count),N*this.V);return N>=0?N:Math.max(0,-N-2)}; g.J.isLoaded=function(){return this.YH()>=0}; g.J.Ck=function(N,z){if(N>=this.YH())return 0;var v=0;for(z=this.getStartTime(N)+z;Nthis.getStartTime(N);N++)v=Math.max(v,txf(this,N)/this.getDuration(N));return v}; g.J.resize=function(N){N+=2;var z=this.offsets;this.offsets=new Float64Array(N+1);var v=this.startTicks;this.startTicks=new Float64Array(N+1);for(N=0;N0&&N&&(v=v.range.end+1,N=Math.min(N,this.info.contentLength-v),N>0&&R.push(new SA(4,this,Pv(v,N),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z)));return new ta(R)}; g.J.hN=function(N){if(N.info.type===1){if(this.V)return;this.V=sf(N.V)}else if(N.info.type===2){if(this.B||this.index.YH()>=0)return;if(g.qi(this.info)){var z=this.index,v=N.VT();N=N.info.range.start;var R=g.c7(v,0,1936286840);v=SHx(R);z.V=v.timescale;var C=v.aF;z.offsets[0]=v.lc+N+R.size;z.startTicks[0]=C;z.W=!0;N=v.lT.length;for(R=0;R0&&N===Z[0].cG)for(N=0;N=z+v)break}C.length||(N=new g.XS("b189619593",""+N,""+z,""+v),g.kE(N));return new ta(C)}; g.J.uX=function(N){for(var z=this.MV(N.info),v=N.info.range.start+N.info.W,R=[],C=0;C=this.index.cZ(v+1);)v++;return this.nt(v,z,N.Z).TU}; g.J.AG=function(N){N.Rq();return this.eN()?!0:N.range.end+1this.info.contentLength&&(z=new pw(z.start,this.info.contentLength-1)),new ta([new SA(4,N.V,z,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,N.clipId)]);N.type===4&&(N=this.MV(N),N=N[N.length-1]);var v=0,R=N.range.start+N.W+N.Z;N.type===3&&(N.Rq(),v=N.cL,R===N.range.end+1&&(v+=1));return this.nt(v,R,z)}; g.J.Wd=function(){return null}; g.J.mz=function(N,z){z=z===void 0?!1:z;N=this.index.vP(N);z&&(N=Math.min(this.index.YH(),N+1));return this.nt(N,this.index.cZ(N),0,void 0)}; g.J.MC=function(){return!0}; g.J.VR=function(){return!0}; g.J.Gz=function(){return!1}; g.J.KL=function(){return this.indexRange.length+this.initRange.length}; g.J.r_=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Ml={},Ywx=(Ml.COLOR_PRIMARIES_BT709="bt709",Ml.COLOR_PRIMARIES_BT2020="bt2020",Ml.COLOR_PRIMARIES_UNKNOWN=null,Ml.COLOR_PRIMARIES_UNSPECIFIED=null,Ml),wF={},Ijb=(wF.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",wF.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",wF.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",wF.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",wF.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,wF.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,wF);g.Wc.prototype.getName=function(){return this.name}; g.Wc.prototype.getId=function(){return this.id}; g.Wc.prototype.getIsDefault=function(){return this.isDefault}; g.Wc.prototype.toString=function(){return this.name}; g.Wc.prototype.getName=g.Wc.prototype.getName;g.Wc.prototype.getId=g.Wc.prototype.getId;g.Wc.prototype.getIsDefault=g.Wc.prototype.getIsDefault;var cCu=/action_display_post/;var q0u,e7,JI;g.y(y3,g.jJ);g.J=y3.prototype;g.J.isLoading=function(){return this.state===1}; g.J.M4=function(){return this.state===3}; g.J.HG0=function(N){var z=N.getElementsByTagName("Representation");if(N.getElementsByTagName("SegmentList").length>0||N.getElementsByTagName("SegmentTemplate").length>0){this.Hb=this.W=!0;this.timeline||(this.timeline=new daO);nxx(this.timeline,N);this.publish("refresh");for(N=0;N=0?l=k4(G):W=W+"?range="+G}L.call(Q,new P7(K.cL,K.startSecs,K.K5,K.V,W,l,K.W))}R=C}v.update(R,this.isLive,this.UT)}maI(this.timeline);return!0}this.duration=JCK(uC(N,"mediaPresentationDuration")); a:{for(N=0;N0))return this.ZC()-N}}N=this.V;for(var z in N){var v=N[z].index;if(v.isLoaded()&&!vE(N[z].info.mimeType))return v.Mp()}return 0}; g.J.getStreamTimeOffset=function(){return this.L}; g.J.LG=function(N){for(var z in this.V){var v=this.V[z].index;if(v.isLoaded()){var R=v.vP(N),C=v.LG(R);if(C)return C+N-v.getStartTime(R)}}return NaN}; var kF=null,lQr,Pc=!((lQr=navigator.mediaCapabilities)==null||!lQr.decodingInfo),KWI={commentary:1,alternate:2,dub:3,main:4};var ZZ=new Set,V3=new Map;hI.prototype.clone=function(N){return new hI(this.flavor,N,this.W,this.experiments)}; hI.prototype.TE=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; hI.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 WRW={},uz=(WRW.playready=["com.youtube.playready","com.microsoft.playready"],WRW.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],WRW),NS={},AZU=(NS.widevine="DRM_SYSTEM_WIDEVINE",NS.fairplay="DRM_SYSTEM_FAIRPLAY",NS.playready="DRM_SYSTEM_PLAYREADY",NS),zl={},GP9=(zl.widevine=1,zl.fairplay=2,zl.playready=3,zl);var MX;g.y(cc,g.H); cc.prototype.initialize=function(N,z){for(var v=this,R=g.f(Object.keys(N)),C=R.next();!C.done;C=R.next()){C=g.f(N[C.value]);for(var Z=C.next();!Z.done;Z=C.next())if(Z=Z.value,Z.CG)for(var Y=g.f(Object.keys(Z.CG)),Q=Y.next();!Q.done;Q=Y.next()){var L=Q.value;Q=L;L=uz[L];!L&&this.X("html5_enable_vp9_fairplay")&&Q==="fairplay"&&(L=["com.youtube.fairplay.sbdl"]);if(L){L=g.f(L);for(var K=L.next();!K.done;K=L.next())K=K.value,this.Z[K]=this.Z[K]||new hI(Q,K,Z.CG[Q],this.bS.experiments),this.V[Q]=this.V[Q]|| {},this.V[Q][Z.mimeType]=!0}}}OF()&&(this.Z["com.youtube.fairplay"]=new hI("fairplay","com.youtube.fairplay","",this.bS.experiments),this.X("html5_enable_vp9_fairplay")||(this.V.fairplay=this.V.fairplay||{},this.V.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.V.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=ncf(z,this.useCobaltWidevine,this.X("html5_enable_safari_fairplay")&&!0,this.X("html5_enable_vp9_fairplay")).filter(function(l){return!!v.Z[l]})}; cc.prototype.X=function(N){return this.bS.experiments.j8(N)};var xA8={"":"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"};pRO.prototype.X=function(N){return this.experiments.j8(N)};var jkK={RED:"red",KsU:"white"};kYf.prototype.j8=function(N){N=this.flags[N];JSON.stringify(N);return N==="true"};var SwK=Promise.resolve(),ocI=window.queueMicrotask?window.queueMicrotask.bind(window):EcY;vi.prototype.canPlayType=function(N,z){N=N.canPlayType?N.canPlayType(z):!1;IX?N=N||eD1[z]:pu===2.2?N=N||J91[z]:bQ()&&(N=N||y9m[z]);return!!N}; vi.prototype.isTypeSupported=function(N){return this.J?window.cast.receiver.platform.canDisplayType(N):p_(N)}; var J91={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},y9m={"application/x-mpegURL":"maybe"},eD1={"application/x-mpegURL":"maybe"};g.y(Zn,g.jJ);Zn.prototype.add=function(N,z){if(!this.items[N]&&(z.Kg||z.uC||z.LQ)){var v=this.items,R=z;Object.isFrozen&&!Object.isFrozen(z)&&(R=Object.create(z),Object.freeze(R));v[N]=R;this.publish("vast_info_card_add",N)}}; Zn.prototype.remove=function(N){var z=this.get(N);delete this.items[N];return z}; Zn.prototype.get=function(N){return this.items[N]||null}; Zn.prototype.isEmpty=function(){return g.wE(this.items)};var ij;jP.prototype.add=function(N){if(this.pos+20>this.data.length){var z=new Uint8Array(this.data.length*2);z.set(this.data);this.data=z}for(;N>31;)this.data[this.pos++]=ij[(N&31)+32],N>>=5;this.data[this.pos++]=ij[N|0]}; jP.prototype.Jy=function(){return g.mC(this.data.subarray(0,this.pos))}; jP.prototype.reset=function(){this.pos=0};Q1.prototype.Xp=function(N,z){var v=Math.pow(this.alpha,N);this.V=z*(1-v)+v*this.V;this.W+=N}; Q1.prototype.fU=function(){return this.V/(1-Math.pow(this.alpha,this.W))};Lu.prototype.Xp=function(N,z){for(var v=0;v<10;v++){var R=this.V[v],C=R+(v===0?N:0),Z=1*Math.pow(2,v);if(C<=Z)break;R=Math.min(1,(C-Z*.5)/R);for(C=0;C<16;C++)Z=this.values[v*16+C]*R,this.values[(v+1)*16+C]+=Z,this.V[v+1]+=Z,this.values[v*16+C]-=Z,this.V[v]-=Z}R=v=0;C=8192;z>8192&&(v=Math.ceil(Math.log(z/8192)/Math.log(2)),R=8192*Math.pow(2,v-1),C=R*2);v+2>16?this.values[15]+=N:(z=(z-R)/(C-R),this.values[v]+=N*(1-z),this.values[v+1]+=N*z);this.V[0]+=N}; Lu.prototype.fU=function(){var N=N===void 0?this.W:N;var z=z===void 0?.02:z;var v=v===void 0?.98:v;for(var R=this.Z,C=0;C<16;C++)R[C]=this.values[C];C=this.V[0];for(var Z=1;Z<11;Z++){var Y=this.V[Z];if(Y===0)break;for(var Q=Math.min(1,(N-C)/Y),L=0;L<16;L++)R[L]+=this.values[Z*16+L]*Q;C+=Y*Q;if(Q<1)break}for(Z=N=Y=0;Z<16;Z++){Q=Y+R[Z]/C;N+=Math.max(0,Math.min(Q,v)-Math.max(Y,z))*(Z>0?8192*Math.pow(2,Z-1):0);if(Q>v)break;Y=Q}return N/(v-z)};Ku.prototype.Xp=function(N,z){N=Math.min(this.V,Math.max(1,Math.round(N*this.resolution)));N+this.W>=this.V&&(this.Z=!0);for(;N--;)this.values[this.W]=z,this.W=(this.W+1)%this.V;this.BB=!0}; Ku.prototype.percentile=function(N){var z=this;if(!this.Z&&this.W===0)return 0;this.BB&&(g.P$(this.B,function(v,R){return z.values[v]-z.values[R]}),this.BB=!1); return this.values[this.B[Math.round(N*((this.Z?this.V:this.W)-1))]]||0}; Ku.prototype.fU=function(){return this.G?(this.percentile(this.N-this.G)+this.percentile(this.N)+this.percentile(this.N+this.G))/3:this.percentile(this.N)};g.y(lj,g.H);lj.prototype.S8=function(){var N;(N=this.BL)==null||N.start();if(dd(this)&&this.policy.Y){var z;(z=this.Iu)==null||z.BM()}};wRY.prototype.X=function(N){return this.experiments.j8(N)};g.y(zAm,g.H);var iC_="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),lPv={JJp:"caoe",nBd:"capsv",KcW:"cbrand",RF1:"cbr",GId:"cbrver",Lc0:"cchip",yeO:"ccappver",xol:"ccrv",St1:"cfrmver",NGT:"c",CGU:"cver",RL0:"ctheme",K18:"cplayer",K58:"cmodel",zr:"cnetwork",yRp:"cos",OS_VERSION:"cosver",wWp:"cplatform",Rol:"crqyear"};g.y(bj,g.H);g.J=bj.prototype;g.J.X=function(N){return this.experiments.j8(N)}; g.J.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.J.getVideoUrl=function(N,z,v,R,C,Z,Y){z={list:z};v&&(C?z.time_continue=v:z.t=v);v=Y?"music.youtube.com":g.Ou(this);C=v==="www.youtube.com";!Z&&R&&C?Z="https://youtu.be/"+N:g.V1(this)?(Z="https://"+v+"/fire",z.v=N):(Z&&C?(Z=this.protocol+"://"+v+"/shorts/"+N,R&&(z.feature="share")):(Z=this.protocol+"://"+v+"/watch",z.v=N),IX&&(N=SPY())&&(z.ebc=N));return g.kS(Z,z)}; g.J.getVideoEmbedCode=function(N,z,v,R){z="https://"+g.Ou(this)+"/embed/"+z;R&&(z=g.kS(z,{list:R}));R=v.width;v=v.height;z=e8(z);N=e8(N!=null?N:"YouTube video player");return'')}; g.J.supportsGaplessAudio=function(){return g.gp&&!IX&&H9()>=74||g.Xn&&g.$Q(68)?!0:!1}; g.J.supportsGaplessShorts=function(){return!this.X("html5_enable_short_gapless")||this.UT||g.yl?!1:!0}; g.J.getPlayerType=function(){return this.V.cplayer}; g.J.LV=function(){return this.BH}; var eAU=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],KZ2=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],GQu=[19];var vx={},fPY=(vx["140"]={numChannels:2},vx["141"]={numChannels:2},vx["251"]={audioSampleRate:48E3,numChannels:2},vx["774"]={audioSampleRate:48E3,numChannels:2},vx["380"]={numChannels:6},vx["328"]={numChannels:6},vx["773"]={},vx),Rn={},JQu=(Rn["1"]='video/mp4; codecs="av01.0.08M.08"',Rn["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Rn["1e"]='video/mp4; codecs="av01.0.08M.08"',Rn["9"]='video/webm; codecs="vp9"',Rn["("]='video/webm; codecs="vp9"',Rn["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Rn.h='video/mp4; codecs="avc1.64001e"',Rn.H='video/mp4; codecs="avc1.64001e"',Rn.o='audio/webm; codecs="opus"',Rn.a='audio/mp4; codecs="mp4a.40.2"',Rn.ah='audio/mp4; codecs="mp4a.40.2"',Rn.mac3='audio/mp4; codecs="ac-3"; channels=6',Rn.meac3='audio/mp4; codecs="ec-3"; channels=6',Rn.i='audio/mp4; codecs="iamf.001.001.Opus"',Rn),CQ={},yQu=(CQ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},CQ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},CQ["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, CQ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},CQ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},CQ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},CQ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},CQ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},CQ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},CQ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, CQ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},CQ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},CQ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},CQ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},CQ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},CQ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},CQ["308"]={width:2560, height:1440,bitrate:1E7,fps:60},CQ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},CQ["302"]={width:1280,height:720,bitrate:25E5,fps:60},CQ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},CQ["298"]={width:1280,height:720,bitrate:35E5,fps:60},CQ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},CQ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},CQ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},CQ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},CQ["398"]={width:1280,height:720,bitrate:1E6, fps:60},CQ["397"]={width:854,height:480,bitrate:4E5,fps:30},CQ["396"]={width:640,height:360,bitrate:25E4,fps:30},CQ["787"]={width:1080,height:608,bitrate:2E5,fps:30},CQ["788"]={width:1080,height:608,bitrate:4E5,fps:30},CQ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},CQ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},CQ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},CQ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},CQ["552"]={width:1280,height:720,bitrate:1E6,fps:60},CQ["551"]={width:854, height:480,bitrate:4E5,fps:30},CQ["550"]={width:640,height:360,bitrate:25E4,fps:30},CQ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},CQ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},CQ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},CQ["247"]={width:1280,height:720,bitrate:15E5,fps:30},CQ["244"]={width:854,height:480,bitrate:52E4,fps:30},CQ["243"]={width:640,height:360,bitrate:28E4,fps:30},CQ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},CQ["136"]={width:1280,height:720,bitrate:3E6, fps:30},CQ["135"]={width:854,height:480,bitrate:1E6,fps:30},CQ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},CQ["376"]={width:1280,height:720,bitrate:5706960,fps:60},CQ["384"]={width:1280,height:720,bitrate:3660979,fps:60},CQ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},CQ["224"]={width:1280,height:720,bitrate:453E4,fps:30},CQ["145"]={width:1280,height:720,bitrate:2682052,fps:30},CQ);g.J=iT.prototype;g.J.getInfo=function(){return this.V}; g.J.OX=function(){return null}; g.J.bN=function(){var N=this.OX();return N?(N=g.R0(N.KV),Number(N.expire)):NaN}; g.J.qb=function(){}; g.J.getHeight=function(){return this.V.video.height};FZu.prototype.build=function(){$Yf(this);var N=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],z={};a:if(this.V)var v=this.V;else{v="";for(var R=g.f(this.Z),C=R.next();!C.done;C=R.next())if(C=C.value,C.u$){if(C.u$.getIsDefault()){v=C.u$.getId();break a}v||(v=C.u$.getId())}}R=g.f(this.Z);for(C=R.next();!C.done;C=R.next())if(C=C.value,this.G||!C.u$||C.u$.getId()===v)z[C.itag]||(z[C.itag]=[]),z[C.itag].push(C);v=g.f(this.W);for(R=v.next();!R.done;R=v.next())if(R=R.value,C=z[R.V]){C=g.f(C);for(var Z=C.next();!Z.done;Z= C.next()){var Y=N,Q=Y.push;Z=Z.value;var L="#EXT-X-MEDIA:TYPE=AUDIO,",K="YES",l="audio";if(Z.u$){l=Z.u$;var W=l.getId().split(".")[0];W&&(L+='LANGUAGE="'+W+'",');(this.V?this.V===l.getId():l.getIsDefault())||(K="NO");l=l.getName()}W="";R!==null&&(W=R.itag.toString());W=am(this,Z.url,W);L=L+('NAME="'+l+'",DEFAULT='+(K+',AUTOSELECT=YES,GROUP-ID="'))+(mY2(Z,R)+'",URI="'+(W+'"'));Q.call(Y,L)}}v=g.f(this.B);for(R=v.next();!R.done;R=v.next())R=R.value,C=fQr,R=(Y=R.u$)?'#EXT-X-MEDIA:URI="'+am(this,R.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+C+'",LANGUAGE="'+Y.getId()+'",NAME="'+Y.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,R&&N.push(R);v=this.B.length>0?fQr:void 0;R=g.f(this.W);for(C=R.next();!C.done;C=R.next())C=C.value,Q=z[C.V],Y=void 0,((Y=Q)==null?void 0:Y.length)>0&&(Y=C,Q=Q[0],Q="#EXT-X-STREAM-INF:BANDWIDTH="+(Y.bitrate+Q.bitrate)+',CODECS="'+(Y.codecs+","+Q.codecs+'",RESOLUTION=')+(Y.width+"x"+Y.height+',AUDIO="')+(mY2(Q,Y)+'",')+(v?'SUBTITLES="'+v+'",':"")+"CLOSED-CAPTIONS=NONE",Y.fps>1&&(Q+= ",FRAME-RATE="+Y.fps),Y.KJ&&(Q+=",VIDEO-RANGE="+Y.KJ),N.push(Q),N.push(am(this,C.url,"")));return N.join("\n")}; var fQr="text";g.y(Q5,iT);Q5.prototype.bN=function(){return this.expiration}; Q5.prototype.OX=function(){if(!this.KV||this.KV.HL()){var N=this.W.build();N="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(N);this.KV=new br(N)}return this.KV};g.y(LW,iT);LW.prototype.OX=function(){return new br(this.W.IP())}; LW.prototype.qb=function(){this.W=pf(this.W)};g.y(KW,iT);KW.prototype.OX=function(){return new br(this.W)};var Z6={},E8u=(Z6.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Z6.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Z6.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Z6);g.J=g.lT.prototype;g.J.getId=function(){return this.id}; g.J.getName=function(){return this.name}; g.J.isServable=function(){return this.V}; g.J.IP=function(){return this.url}; g.J.getXtags=function(){return this.xtags}; g.J.toString=function(){return this.languageCode+": "+g.W3(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.J.equals=function(N){return N?this.toString()===N.toString():!1}; g.J.Y8=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var tHK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},OCY={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},IPm=/^(\d*)_((\d*)_?(\d*))$/;var rQI={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},u5O={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Yh={},dAr=(Yh.ALWAYS=1,Yh.BY_REQUEST=3,Yh.UNKNOWN=void 0,Yh),io={},sz7=(io.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",io.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",io.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",io.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",io);var FBI; FBI=function(N){for(var z=Object.keys(N),v={},R=0;RR-z?-1:N}; g.J.mm=function(){return this.W.YH()}; g.J.fR=function(){return this.W.uf()}; g.J.SX=function(N){this.W=N};g.y(bT,om);bT.prototype.W=function(N,z){return om.prototype.W.call(this,"$N|"+N,z)}; bT.prototype.B=function(N,z,v){return new DM(N,z,v,this.isLive)};var p4b=[],c3=new Set;g.y(g.Os,g.jJ);g.J=g.Os.prototype; g.J.setData=function(N){N=N||{};var z=N.errordetail;z!=null&&(this.errorDetail=z);var v=N.errorcode;v!=null?this.errorCode=v:N.status==="fail"&&(this.errorCode="auth");var R=N.reason;R!=null&&(this.errorReason=R);var C=N.subreason;C!=null&&(this.Hp=C);this.X("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=N.cpn||(this.bS.LV()?"r"+g.sD(15):g.sD(16)));this.kJ=ve(this.bS.kJ,N.livemonitor);nuu(this,N);var Z=N.raw_player_response;if(Z)this.BU=Z;else{var Y=N.player_response; Y&&(Z=JSON.parse(Y))}if(this.X("html5_enable_ssap_entity_id")){var Q=N.cached_load;Q&&(this.xd=ve(this.xd,Q));if(!this.clientPlaybackNonce){var L=N.cpn;L?(this.W9("ssei","shdc"),this.clientPlaybackNonce=L):this.clientPlaybackNonce=this.bS.LV()?"r"+g.sD(15):g.sD(16)}}Z&&(this.playerResponse=Z);if(this.playerResponse){var K=this.playerResponse.annotations;if(K)for(var l=g.f(K),W=l.next();!W.done;W=l.next()){var G=W.value.playerAnnotationsUrlsRenderer;if(G){G.adsOnly&&(this.cm=!0);var x=G.loadPolicy; x&&(this.annotationsLoadPolicy=dAr[x]);var e=G.invideoUrl;e&&(this.UT=wR(e));break}}var d=this.playerResponse.attestation;d&&qcI(this,d);var T=this.playerResponse.cotn;T&&(this.cotn=T);var m=this.playerResponse.heartbeatParams;if(m){nk_(this)&&(this.S6=!0);var n=m.heartbeatToken;n&&(this.drmSessionId=m.drmSessionId||"",this.heartbeatToken=n,this.Sm=Number(m.intervalMilliseconds),this.Wy=Number(m.maxRetries),this.I5=!!m.softFailOnError,this.Ep=!!m.useInnertubeHeartbeatsForDrm,this.UN=!0);this.heartbeatServerData= m.heartbeatServerData;var P;this.Jx=!((P=m.heartbeatAttestationConfig)==null||!P.requiresAttestation)}var V=this.playerResponse.messages;V&&zUK(this,V);var D=this.playerResponse.overlay;if(D){var c=D.playerControlsOverlayRenderer;if(c)if(RUb(this,c.controlBgHtml),c.mutedAutoplay){var r=g.t(c.mutedAutoplay,HI7);if(r&&r.endScreen){var Rv=g.t(r.endScreen,o_r);Rv&&Rv.text&&(this.Gk=g.xt(Rv.text))}}else this.mutedAutoplay=!1}var Zu=this.playerResponse.playabilityStatus;if(Zu){var Nx=Zu.backgroundability; Nx&&Nx.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var av,M;if((av=Zu.offlineability)==null?0:(M=av.offlineabilityRenderer)==null?0:M.offlineable)this.offlineable=!0;var s2=Zu.contextParams;s2&&(this.contextParams=s2);var $m=Zu.pictureInPicture;$m&&$m.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Zu.playableInEmbed&&(this.allowEmbed=!0);var O2=Zu.ypcClickwrap;if(O2){var m7=O2.playerLegacyDesktopYpcClickwrapRenderer,QU=O2.ypcRentalActivationRenderer;if(m7)this.Ka= m7.durationMessage||"",this.L5=!0;else if(QU){var BU=QU.durationMessage;this.Ka=BU?g.xt(BU):"";this.L5=!0}}var mu=Zu.errorScreen;if(mu){if(mu.playerLegacyDesktopYpcTrailerRenderer){var Y5=mu.playerLegacyDesktopYpcTrailerRenderer;this.e_=Y5.trailerVideoId||"";var F=mu.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var jI=F&&F.ypcTrailerRenderer}else if(mu.playerLegacyDesktopYpcOfferRenderer)Y5=mu.playerLegacyDesktopYpcOfferRenderer;else if(mu.ypcTrailerRenderer){jI=mu.ypcTrailerRenderer;var rE=jI.fullVideoMessage; this.RR=rE?g.xt(rE):"";var TM,gE;this.e_=((TM=g.t(jI,D85))==null?void 0:(gE=TM.videoDetails)==null?void 0:gE.videoId)||""}Y5&&(this.dK=Y5.itemTitle||"",Y5.itemUrl&&(this.MG=Y5.itemUrl),Y5.itemBuyUrl&&(this.gh=Y5.itemBuyUrl),this.Im=Y5.itemThumbnail||"",this.uW=Y5.offerHeadline||"",this.yv=Y5.offerDescription||"",this.V6=Y5.offerId||"",this.FX=Y5.offerButtonText||"",this.RS=Y5.offerButtonFormattedText||null,this.Wm=Y5.overlayDurationMsec||NaN,this.RR=Y5.fullVideoMessage||"",this.yE=!0);if(jI){var x5= g.t(jI,D85);if(x5)this.WZ={raw_player_response:x5};else{var Du=g.t(jI,Mz8);this.WZ=Du?zU(Du):null}this.yE=!0}}}var SV=this.playerResponse.playbackTracking;if(SV){var pm=N,B=y5(SV.googleRemarketingUrl);B&&(this.googleRemarketingUrl=B);var A=y5(SV.youtubeRemarketingUrl);A&&(this.youtubeRemarketingUrl=A);var p={},E=y5(SV.ptrackingUrl);if(E){var O=fW(E),FK=O.oid;FK&&(this.tL=FK);var vU=O.pltype;vU&&(this.BI=vU);var Jb=O.ptchn;Jb&&(this.d3=Jb);var CO=O.ptk;CO&&(this.gZ=encodeURIComponent(CO));var g_=O.m; g_&&(this.Qo=g_)}var Mx=y5(SV.qoeUrl);if(Mx){for(var Fr=g.R0(Mx),F_=g.f(Object.keys(Fr)),k_=F_.next();!k_.done;k_=F_.next()){var Xl=k_.value,X_=Fr[Xl];Fr[Xl]=Array.isArray(X_)?X_.join(","):X_}this.fA=Fr;var rT=Fr.cat;rT&&(this.X("html5_enable_qoe_cat_list")?this.MQ=this.MQ.concat(rT.split(",")):this.B2=rT);var dT=Fr.live;dT&&(this.FC=dT);var Ly=Fr.drm_product;Ly&&(this.drmProduct=Ly)}var AJ=y5(SV.videostatsPlaybackUrl);if(AJ){var Jj=fW(AJ),gv=Jj.adformat;if(gv){pm.adformat=gv;var tv=this.D(),Op=XDx(gv, this.HQ,tv.N,tv.Y);Op&&(this.adFormat=Op)}var Tc=Jj.aqi;Tc&&(pm.ad_query_id=Tc);var YQ=Jj.autoplay;YQ&&(this.SI=YQ=="1",this.mU=YQ=="1");var u8=Jj.autonav;u8&&(this.isAutonav=u8=="1");var jz=Jj.delay;jz&&(this.A0=dL(jz));var FQ=Jj.ei;FQ&&(this.eventId=FQ);if(Jj.adcontext||gv)this.SI=!0;var oh=Jj.feature;oh&&(this.XH=oh);var J0=Jj.list;J0&&(this.playlistId=J0);var xx=Jj.of;xx&&(this.zV=xx);var ex=Jj.osid;ex&&(this.osid=ex);var JC=Jj.referrer;JC&&(this.referrer=JC);var v_=Jj.sdetail;v_&&(this.WB=v_); var aZ=Jj.ssrt;aZ&&(this.FH=aZ=="1");var Rc=Jj.subscribed;Rc&&(this.subscribed=Rc=="1",this.L.subscribed=Rc);var Ch=Jj.uga;Ch&&(this.userGenderAge=Ch);var y4=Jj.upt;y4&&(this.QU=y4);var fN=Jj.vm;fN&&(this.videoMetadata=fN);p.playback=Jj}var dK=y5(SV.videostatsWatchtimeUrl);if(dK){var s0=fW(dK),TS=s0.ald;TS&&(this.K7=TS);p.watchtime=s0}var Fk=y5(SV.atrUrl);if(Fk){var rw=fW(Fk);p.atr=rw}var nj=y5(SV.engageUrl);if(nj){var uM=fW(nj);p.engage=uM}this.O_=p;if(SV.promotedPlaybackTracking){var DW=SV.promotedPlaybackTracking; DW.startUrls&&(this.qy=DW.startUrls);DW.firstQuartileUrls&&(this.Aj=DW.firstQuartileUrls);DW.secondQuartileUrls&&(this.zc=DW.secondQuartileUrls);DW.thirdQuartileUrls&&(this.Pr=DW.thirdQuartileUrls);DW.completeUrls&&(this.wN=DW.completeUrls);DW.engagedViewUrls&&(DW.engagedViewUrls.length>1&&g.PN(new g.XS("There are more than one engaged_view_urls.")),this.T0=DW.engagedViewUrls[0])}}var ZT=this.playerResponse.playerCueRanges;ZT&&ZT.length>0&&(this.cueRanges=ZT);var nN=this.playerResponse.playerCueRangeSet; nN&&g.qN(this,nN);a:{var Yr=this.playerResponse.adPlacements;if(Yr)for(var mp=g.f(Yr),iv=mp.next();!iv.done;iv=mp.next()){var $x=void 0,U0=void 0,BE=($x=iv.value.adPlacementRenderer)==null?void 0:(U0=$x.renderer)==null?void 0:U0.videoAdTrackingRenderer;if(BE){var AC=BE;break a}}AC=null}var jq=AC;SV&&SV.promotedPlaybackTracking&&jq&&g.PN(new g.XS("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var l$;if(!(l$=jq))a:{for(var gK=g.f(this.playerResponse.adSlots||[]), ac=gK.next();!ac.done;ac=gK.next()){var QZ=g.t(ac.value,og);if(QZ===void 0||!J22(QZ))break;var pN=void 0,c0=(pN=QZ.fulfillmentContent)==null?void 0:pN.fulfilledLayout,kx=g.t(c0,gx);if(kx&&$u(kx)){l$=!0;break a}}l$=!1}l$&&(this.cN=!0);var PE=this.playerResponse.playerAds;if(PE)for(var qk=N,V4=g.f(PE),Wd=V4.next();!Wd.done;Wd=V4.next()){var Sx=Wd.value;if(Sx){var E0=Sx.playerLegacyDesktopWatchAdsRenderer;if(E0){var mq=E0.playerAdParams;if(mq){mq.autoplay=="1"&&(this.mU=this.SI=!0);this.tZ=mq.encodedAdSafetyReason|| null;mq.showContentThumbnail!==void 0&&(this.oB=!!mq.showContentThumbnail);qk.enabled_engage_types=mq.enabledEngageTypes;break}}}}var $S=this.playerResponse.playerConfig;if($S){var I8=$S.manifestlessWindowedLiveConfig;if(I8){var hC=Number(I8.minDvrSequence),Lh=Number(I8.maxDvrSequence),GR=Number(I8.minDvrMediaTimeMs),xH=Number(I8.maxDvrMediaTimeMs),Kh=Number(I8.startWalltimeMs);hC&&(this.PH=hC);GR&&(this.K0=GR/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&iM(this)&&(this.Lf=GR/ 1E3));Lh&&(this.qo=Lh);xH&&(this.CV=xH/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&iM(this)&&(this.ip=xH/1E3));Kh&&(this.UR=Kh/1E3);(hC||GR)&&(Lh||xH)&&(this.allowLiveDvr=this.isLivePlayback=this.Vp=!0,this.pG=!1)}var X4=$S.daiConfig;if(X4){if(X4.enableDai){this.vH=!0;var eb=X4.enableServerStitchedDai;eb&&(this.enableServerStitchedDai=eb);var HE=X4.enablePreroll;HE&&(this.jq=HE)}var ww;if(X4.daiType==="DAI_TYPE_SS_DISABLED"||((ww=X4.debugInfo)==null?0:ww.isDisabledUnpluggedChannel))this.LI= !0;X4.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.OB=!0)}var Lx=$S.audioConfig;if(Lx){var D3=Lx.loudnessDb;D3!=null&&(this.Lr=D3);var LQm=Lx.trackAbsoluteLoudnessLkfs;LQm!=null&&(this.aD=LQm);var KQm=Lx.loudnessTargetLkfs;KQm!=null&&(this.loudnessTargetLkfs=KQm);Lx.audioMuted&&(this.wG=!0);Lx.muteOnStart&&(this.hj=!0);var K0=Lx.loudnessNormalizationConfig;if(K0){K0.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);K0.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var l2f=K0.minimumLoudnessTargetLkfs;l2f!=null&&(this.minimumLoudnessTargetLkfs=l2f);var WQu=K0.maxStatefulTimeThresholdSec;WQu!=null&&(this.maxStatefulTimeThresholdSec=WQu)}Lx.playAudioOnly&&(this.MF=!0)}var WDv=$S.playbackEndConfig;if(WDv){var G8K=WDv.endSeconds,x1I=WDv.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(G8K&&(this.endSeconds=G8K),x1I&&(this.limitedPlaybackDurationInSeconds=x1I))}var fR=$S.fairPlayConfig;if(fR){var eBO=fR.certificate;eBO&&(this.S8=Y1(eBO));var JWx=Number(fR.keyRotationPeriodMs); JWx>0&&(this.TX=JWx);var yWY=Number(fR.keyPrefetchMarginMs);yWY>0&&(this.Ev=yWY)}var z9=$S.playbackStartConfig;if(z9){this.As=Number(z9.startSeconds);var f2f=z9.liveUtcStartSeconds,d1m=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;f2f&&!d1m&&(this.liveUtcStartSeconds=Number(f2f));var GVx=z9.startPosition;if(GVx){var suv=GVx.utcTimeMillis;suv&&!d1m&&(this.liveUtcStartSeconds=Number(suv)*.001);var T1U=GVx.streamTimeMillis;T1U&&(this.gx=Number(T1U)*.001)}this.progressBarStartPosition=z9.progressBarStartPosition; this.progressBarEndPosition=z9.progressBarEndPosition}else{var xGf=$S.skippableSegmentsConfig;if(xGf){var FQu=xGf.introSkipDurationMs;FQu&&(this.q3=Number(FQu)/1E3);var ny2=xGf.outroSkipDurationMs;ny2&&(this.ya=Number(ny2)/1E3)}}var eyf=$S.skippableIntroConfig;if(eyf){var m1I=Number(eyf.startMs),$1v=Number(eyf.endMs);isNaN(m1I)||isNaN($1v)||(this.Eu=m1I,this.HH=$1v)}var U1x=$S.streamSelectionConfig;U1x&&(this.Ui=Number(U1x.maxBitrate));var B1m=$S.vrConfig;B1m&&(this.d8=B1m.partialSpherical=="1"); var l2=$S.webDrmConfig;if(l2){l2.skipWidevine&&(this.M8=!0);var AWK=l2.widevineServiceCert;AWK&&(this.zD=Y1(AWK));l2.useCobaltWidevine&&(this.useCobaltWidevine=!0);l2.startWithNoQualityConstraint&&(this.Eb=!0)}var Oo=$S.mediaCommonConfig;if(Oo){var d$=Oo.dynamicReadaheadConfig;if(d$){this.maxReadAheadMediaTimeMs=d$.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=d$.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=d$.readAheadGrowthRateMs||NaN;var gyu,pX_=Oo==null?void 0:(gyu=Oo.mediaUstreamerRequestConfig)== null?void 0:gyu.videoPlaybackUstreamerConfig;pX_&&(this.rD=Y1(pX_));var JDI=Oo==null?void 0:Oo.sabrContextUpdates;if(JDI&&JDI.length>0)for(var k8x=g.f(JDI),yDO=k8x.next();!yDO.done;yDO=k8x.next()){var QM=yDO.value;if(QM.type&&QM.value){var cBP={type:QM.type,scope:QM.scope,value:Y1(QM.value)||void 0,sendByDefault:QM.sendByDefault};this.sabrContextUpdates.set(QM.type,cBP)}}}var PHf=Oo.serverPlaybackStartConfig;PHf&&(this.serverPlaybackStartConfig=PHf);Oo.useServerDrivenAbr&&(this.uY=!0);var Ve2=Oo.requestPipeliningConfig; Ve2&&(this.requestPipeliningConfig=Ve2)}var Sru=$S.inlinePlaybackConfig;Sru&&(this.UH=!!Sru.showAudioControls);var sq=$S.embeddedPlayerConfig;if(sq){this.embeddedPlayerConfig=sq;var fs2=sq.embeddedPlayerMode;if(fs2){var Eym=this.D();Eym.K0=fs2;Eym.Z=fs2==="EMBEDDED_PLAYER_MODE_PFL"}var hBu=sq.permissions;hBu&&(this.allowImaMonetization=!!hBu.allowImaMonetization)}var H2_=$S.ssapConfig;H2_&&(this.fZ=H2_.ssapPrerollEnabled||!1);var Ts=$S.webPlayerConfig;Ts&&(Ts.gatewayExperimentGroup&&(this.gatewayExperimentGroup= Ts.gatewayExperimentGroup),Ts.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var IH=this.playerResponse.streamingData;if(IH){var dGO=IH.formats;if(dGO){for(var W4=[],oyK=g.f(dGO),s1_=oyK.next();!s1_.done;s1_=oyK.next()){var TGK=s1_.value;W4.push(TGK.itag+"/"+TGK.width+"x"+TGK.height)}this.Hd=W4.join(",");W4=[];for(var D1O=g.f(dGO),FDu=D1O.next();!FDu.done;FDu=D1O.next()){var G_=FDu.value,xu={itag:G_.itag,type:G_.mimeType,quality:G_.quality},b2b=G_.url;b2b&&(xu.url=b2b);var FT=kw(G_),qT7=FT.nI, M11=FT.LM,w6m=FT.s;FT.Jh&&(xu.url=qT7,xu.sp=M11,xu.s=w6m);W4.push(g.pt(xu))}this.BH=W4.join(",")}var nb7=IH.hlsFormats;if(nb7&&!this.X("safari_live_drm_captions_fix")){var teU=$S||null,nR={};if(teU){var mGU=teU.audioPairingConfig;if(mGU&&mGU.pairs)for(var O2O=g.f(mGU.pairs),$Gu=O2O.next();!$Gu.done;$Gu=O2O.next()){var I2U=$Gu.value,UGv=I2U.videoItag;nR[UGv]||(nR[UGv]=[]);nR[UGv].push(I2U.audioItag)}}for(var XXK={},rWu=g.f(nb7),BGY=rWu.next();!BGY.done;BGY=rWu.next()){var uj7=BGY.value;XXK[uj7.itag]= uj7.bitrate}for(var cWf=[],qr2=g.f(nb7),ADv=qr2.next();!ADv.done;ADv=qr2.next()){var RB=ADv.value,$7={itag:RB.itag,type:RB.mimeType,url:RB.url,bitrate:RB.bitrate,width:RB.width,height:RB.height,fps:RB.fps},mV=RB.audioTrack;if(mV){var MeI=mV.displayName;MeI&&($7.name=MeI,$7.audio_track_id=mV.id,mV.audioIsDefault&&($7.is_default="1"))}if(RB.drmFamilies){for(var wXY=[],NWK=g.f(RB.drmFamilies),gbI=NWK.next();!gbI.done;gbI=NWK.next())wXY.push(dB[gbI.value]);$7.drm_families=wXY.join(",")}var $I=nR[RB.itag]; if($I&&$I.length){$7.audio_itag=$I.join(",");var zJu=XXK[$I[0]];zJu&&($7.bitrate+=zJu)}var vYf=XEu(RB);vYf&&($7.eotf=vYf);RB.audioChannels&&($7.audio_channels=RB.audioChannels);cWf.push(g.pt($7))}this.hlsFormats=cWf.join(",")}var pJu=IH.licenseInfos;if(pJu&&pJu.length>0){for(var RJv={},CpY=g.f(pJu),kVK=CpY.next();!kVK.done;kVK=CpY.next()){var Zs_=kVK.value,Yzx=Zs_.drmFamily,isU=Zs_.url;Yzx&&isU&&(RJv[dB[Yzx]]=isU)}this.CG=RJv}var jpb=IH.drmParams;jpb&&(this.drmParams=jpb);var aSY=IH.dashManifestUrl; aSY&&(this.J0=g.kS(aSY,{cpn:this.clientPlaybackNonce}));var QpI=IH.hlsManifestUrl;QpI&&(this.hlsvp=QpI);var Lzx=IH.probeUrl;Lzx&&(this.probeUrl=wR(g.kS(Lzx,{cpn:this.clientPlaybackNonce})));var Kzv=IH.serverAbrStreamingUrl;Kzv&&(this.Ut=new g.$w(Kzv,!0))}var lSb=this.playerResponse.trackingParams;lSb&&(this.BL=lSb);var vr=this.playerResponse.videoDetails;if(vr){var Ul=N,Pw7=vr.videoId;Pw7&&(this.videoId=Pw7,Ul.video_id||(Ul.video_id=Pw7));var Wzu=vr.channelId;Wzu&&(this.L.uid=Wzu.substring(2));var VLY= vr.title;VLY&&(this.title=VLY,Ul.title||(Ul.title=VLY));var SWK=vr.lengthSeconds;SWK&&(this.lengthSeconds=Number(SWK),Ul.length_seconds||(Ul.length_seconds=SWK));var Gem=vr.keywords;Gem&&(this.keywords=A57(Gem));var Ebm=vr.channelId;Ebm&&(this.JR=Ebm,Ul.ucid||(Ul.ucid=Ebm));var xOb=vr.viewCount;xOb&&(this.rawViewCount=Number(xOb));var hyb=vr.author;hyb&&(this.author=hyb,Ul.author||(Ul.author=hyb));var eJK=vr.shortDescription;eJK&&(this.shortDescription=eJK);var JpI=vr.isCrawlable;JpI&&(this.isListed= JpI);var ypu=vr.musicVideoType;ypu&&(this.musicVideoType=ypu);var HUb=vr.isLive;HUb!=null&&(this.isLivePlayback=HUb);if(HUb||vr.isUpcoming)this.isPremiere=!vr.isLiveContent;var fSu=vr.thumbnail;fSu&&(this.J=JK(fSu));var dOf=vr.isExternallyHostedPodcast;dOf&&(this.isExternallyHostedPodcast=dOf);var ob7=vr.viewerLivestreamJoinPosition;if(ob7==null?0:ob7.utcTimeMillis)this.k6=dL(ob7.utcTimeMillis);var spI=$S||null,DGu=N;vr.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);vr.isUpcoming&&(this.isUpcoming= !0);if(vr.isPostLiveDvr){this.pG=!0;var TWm=vr.latencyClass;TWm&&(this.latencyClass=sz7[TWm]||"UNKNOWN");vr.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var bUI=!1;this.kJ?(this.allowLiveDvr=RW()?!0:c9&&bF<5?!1:!0,this.isLivePlayback=!0):vr.isLive?(DGu.livestream="1",this.allowLiveDvr=vr.isLiveDvrEnabled?RW()?!0:c9&&bF<5?!1:!0:!1,this.partnerId=27,bUI=!0):vr.isUpcoming&&(bUI=!0);if(vr.isLive||this.kJ){vr.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var Fz_=vr.latencyClass; Fz_&&(this.latencyClass=sz7[Fz_]||"UNKNOWN");var nYv=vr.liveChunkReadahead;nYv&&(this.liveChunkReadahead=nYv);var vj=spI&&spI.livePlayerConfig;if(vj){vj.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);vj.hasSubfragmentedWebm&&(this.zQ=!0);vj.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var mOO=vj.liveExperimentalContentId;mOO&&(this.liveExperimentalContentId=Number(mOO));var $OU=vj.isLiveHeadPlayable;this.X("html5_live_head_playable")&&$OU!=null&&(this.isLiveHeadPlayable=$OU)}}bUI&& (this.isLivePlayback=!0,DGu.adformat&&DGu.adformat.split("_")[1]!=="8"||this.PL.push("heartbeat"),this.UN=!0)}var UOb=vr.isPrivate;UOb!==void 0&&(this.isPrivate=ve(this.isPrivate,UOb))}if(Zu){var BWf=vr||null,Apf=!1,R3=Zu.errorScreen;Apf=R3&&(R3.playerLegacyDesktopYpcOfferRenderer||R3.playerLegacyDesktopYpcTrailerRenderer||R3.ypcTrailerRenderer)?!0:BWf&&BWf.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Zu.status);if(!Apf){this.errorCode=hAx(Zu.errorCode)||"auth";var Uq=R3&& R3.playerErrorMessageRenderer;if(Uq){this.playerErrorMessageRenderer=Uq;var gYU=Uq.reason;gYU&&(this.errorReason=g.xt(gYU));var tL7=Uq.subreason;tL7&&(this.Hp=g.xt(tL7),this.JP=tL7)}else this.errorReason=Zu.reason||null;var OUK=Zu.status;if(OUK==="LOGIN_REQUIRED")this.errorDetail="1";else if(OUK==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(OUK==="AGE_CHECK_REQUIRED"){var pOx=Zu.errorScreen,ke7=pOx&&pOx.playerKavRenderer;this.errorDetail=ke7&&ke7.kavUrl?"4":"3"}else this.errorDetail=Zu.isBlockedInRestrictedMode? "5":"0"}}var Ppu=this.playerResponse.interstitialPods;Ppu&&Nx7(this,Ppu);this.UT&&this.eventId&&(this.UT=Zz(this.UT,{ei:this.eventId}));var Is_=this.playerResponse.captions;if(Is_&&Is_.playerCaptionsTracklistRenderer)a:{var Bs=Is_.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Bs.captionTracks)for(var VdO=g.f(Bs.captionTracks),XJb=VdO.next();!XJb.done;XJb=VdO.next()){var AL=XJb.value,SzY=$IY(AL.baseUrl);if(!SzY)break a;var rDU={is_translateable:!!AL.isTranslatable,languageCode:AL.languageCode, languageName:AL.name&&g.xt(AL.name),url:SzY,vss_id:AL.vssId,kind:AL.kind};rDU.name=AL.trackName;rDU.displayName=AL.name&&g.xt(AL.name);this.captionTracks.push(new g.lT(rDU))}this.yf=Bs.audioTracks||[];this.DK=Bs.defaultAudioTrackIndex||0;this.MD=[];if(Bs.translationLanguages)for(var EYu=g.f(Bs.translationLanguages),uvY=EYu.next();!uvY.done;uvY=EYu.next()){var CS=uvY.value,L1={};L1.languageCode=CS.languageCode;L1.languageName=g.xt(CS.languageName);if(CS.translationSourceTrackIndices){L1.translationSourceTrackIndices= [];for(var hJO=g.f(CS.translationSourceTrackIndices),cD2=hJO.next();!cD2.done;cD2=hJO.next())L1.translationSourceTrackIndices.push(cD2.value)}if(CS.excludeAudioTrackIndices){L1.excludeAudioTrackIndices=[];for(var HsK=g.f(CS.excludeAudioTrackIndices),qWI=HsK.next();!qWI.done;qWI=HsK.next())L1.excludeAudioTrackIndices.push(qWI.value)}this.MD.push(L1)}this.fJ=[];if(Bs.defaultTranslationSourceTrackIndices)for(var oYY=g.f(Bs.defaultTranslationSourceTrackIndices),MLu=oYY.next();!MLu.done;MLu=oYY.next())this.fJ.push(MLu.value); this.Bw=!!Bs.contribute&&!!Bs.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.As=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&vuY(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var DOx;this.compositeLiveIngestionOffsetToken= (DOx=this.playerResponse.playbackTracking)==null?void 0:DOx.compositeLiveIngestionOffsetToken;var bsO;this.compositeLiveStatusToken=(bsO=this.playerResponse.playbackTracking)==null?void 0:bsO.compositeLiveStatusToken}XH(this,N);N.queue_info&&(this.queueInfo=N.queue_info);var tdf=N.hlsdvr;tdf!=null&&(this.allowLiveDvr=Number(tdf)===1?RW()?!0:c9&&bF<5?!1:!0:!1);this.adQueryId=N.ad_query_id||null;this.tZ||(this.tZ=N.encoded_ad_safety_reason||null);this.wG=ve(this.wG,N.infringe||N.muted);this.A2=N.authkey; this.qT=N.authuser;this.mutedAutoplay=ve(this.mutedAutoplay,N&&N.playmuted);this.mutedAutoplayDurationMode=CH(this.mutedAutoplayDurationMode,N&&N.muted_autoplay_duration_mode);this.uu=ve(this.uu,N&&N.mutedautoplay);var B8=N.length_seconds;B8&&(this.lengthSeconds=typeof B8==="string"?dL(B8):B8);if(this.isAd()||this.oM||!g.as(g.Eu(this.bS)))this.endSeconds=CH(this.endSeconds,this.ya||N.end||N.endSeconds);else{var Nmm=g.Eu(this.bS),Ay=this.lengthSeconds;switch(Nmm){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Ay> 30?this.limitedPlaybackDurationInSeconds=30:Ay<30&&Ay>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Ay*.2}}this.BL=Z_(this.BL,N.itct);this.FP=ve(this.FP,N.is_live_destination);this.isLivePlayback=ve(this.isLivePlayback,N.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Hb();N.isUpcoming&&(this.isUpcoming=ve(this.isUpcoming,N.isUpcoming));this.pG=ve(this.pG,N.post_live_playback); this.Vp&&(this.pG=!1);this.isMdxPlayback=ve(this.isMdxPlayback,N.mdx);var g$$=N.mdx_control_mode;g$$&&(this.mdxControlMode=typeof g$$==="number"?g$$:dL(g$$));this.isInlinePlaybackNoAd=ve(this.isInlinePlaybackNoAd,N.is_inline_playback_no_ad);this.YJ=CH(this.YJ,N.reload_count);this.reloadReason=Z_(this.reloadReason,N.reload_reason);this.oB=ve(this.oB,N.show_content_thumbnail);this.cycToken=N.cyc||null;var Osb=er(N);Object.keys(Osb).length>0&&(this.J=Osb);this.Rd=Z_(this.Rd,N.vvt);this.mdxEnvironment= Z_(this.mdxEnvironment,N.mdx_environment);N.source_container_playlist_id&&(this.sourceContainerPlaylistId=N.source_container_playlist_id);N.serialized_mdx_metadata&&(this.serializedMdxMetadata=N.serialized_mdx_metadata);this.FQU=N.osig;this.eventId||(this.eventId=N.eventid);this.osid||(this.osid=N.osid);this.playlistId=Z_(this.playlistId,N.list);N.index&&(this.playlistIndex=this.playlistIndex===void 0?CH(0,N.index):CH(this.playlistIndex,N.index));this.ZB=N.pyv_view_beacon_url;this.Rg=N.pyv_quartile25_beacon_url; this.CH=N.pyv_quartile50_beacon_url;this.Ge=N.pyv_quartile75_beacon_url;this.KH=N.pyv_quartile100_beacon_url;var ISm=N.session_data;!this.Ig&&ISm&&(this.Ig=wb(ISm,"&").feature);this.isFling=CH(this.isFling?1:0,N.is_fling)===1;this.vnd=CH(this.vnd,N.vnd);this.forceAdsUrl=Z_(this.forceAdsUrl,N.force_ads_url);this.Je=Z_(this.Je,N.ctrl);this.yj=Z_(this.yj,N.ytr);this.aK=N.ytrcc;this.pH=N.ytrexp;this.IC=N.ytrext;this.s9=Z_(this.s9,N.adformat);this.HQ=Z_(this.HQ,N.attrib);this.slotPosition=CH(this.slotPosition, N.slot_pos);this.breakType=N.break_type;this.FH=ve(this.FH,N.ssrt);this.videoId=iy(N)||this.videoId;this.G=Z_(this.G,N.vss_credentials_token);this.Jk=Z_(this.Jk,N.vss_credentials_token_type);this.MF=ve(this.MF,N.audio_only);this.vL=ve(this.vL,N.aac_high);this.pJ=ve(this.pJ,N.prefer_low_quality_audio);this.jD=ve(this.jD,N.uncap_inline_quality);this.X("html5_enable_qoe_cat_list")?N.qoe_cat&&(this.MQ=this.MQ.concat(N.qoe_cat.split(","))):this.B2=Z_(this.B2,N.qoe_cat);this.DZ=ve(this.DZ,N.download_media); var XOu=N.prefer_gapless;this.Y=XOu!=null?ve(this.Y,XOu):this.Y?this.Y:this.bS.preferGapless&&this.bS.supportsGaplessShorts();qxK(this.playerResponse)&&this.PL.push("ad");var rpO=N.adaptive_fmts;rpO&&(this.adaptiveFormats=rpO,this.WL("adpfmts",{},!0));var uqO=N.allow_embed;uqO&&(this.allowEmbed=Number(uqO)===1);var cpO=N.backgroundable;cpO&&(this.backgroundable=Number(cpO)===1);var qzK=N.autonav;qzK&&(this.isAutonav=Number(qzK)===1);var Mdf=N.autoplay;Mdf&&(this.SI=this.mU=Number(Mdf)===1);var wOU= N.iv_load_policy;wOU&&(this.annotationsLoadPolicy=Rs(this.annotationsLoadPolicy,wOU,hR));var NDu=N.cc_lang_pref;NDu&&(this.captionsLanguagePreference=Z_(NDu,this.captionsLanguagePreference));var zWu=N.cc_load_policy;zWu&&(this.CJ=Rs(this.CJ,zWu,hR));var vdu;this.deviceCaptionsOn=(vdu=N.device_captions_on)!=null?vdu:void 0;var RW_;this.aN=(RW_=N.device_captions_lang_pref)!=null?RW_:"";var CxY;this.Nk=(CxY=N.viewer_selected_caption_langs)!=null?CxY:[];if(!this.X("html5_enable_ssap_entity_id")){var ZYv= N.cached_load;ZYv&&(this.xd=ve(this.xd,ZYv))}if(N.dash==="0"||N.dash===0||N.dash===!1)this.KI=!0;var Y6m=N.dashmpd;Y6m&&(this.J0=g.kS(Y6m,{cpn:this.clientPlaybackNonce}));var iYU=N.delay;iYU&&(this.A0=dL(iYU));var wJ7=this.ya||N.end;if(this.yh?wJ7!=null:wJ7!=void 0)this.clipEnd=CH(this.clipEnd,wJ7);var j5x=N.fmt_list;j5x&&(this.Hd=j5x);N.heartbeat_preroll&&this.PL.push("heartbeat");this.GO=-Math.floor(Math.random()*10);this.SH=-Math.floor(Math.random()*40);var am_=N.is_listed;am_&&(this.isListed= ve(this.isListed,am_));var Q5_=N.is_private;Q5_&&(this.isPrivate=ve(this.isPrivate,Q5_));var LsK=N.is_dni;LsK&&(this.hd=ve(this.hd,LsK));var Ksu=N.dni_color;Ksu&&(this.vg=Z_(this.vg,Ksu));var lmI=N.pipable;lmI&&(this.pipable=ve(this.pipable,lmI));this.Xi=(this.Sv=this.pipable&&this.bS.tZ)&&!this.bS.showMiniplayerButton;var Wsu=N.paid_content_overlay_duration_ms;Wsu&&(this.paidContentOverlayDurationMs=dL(Wsu));var G7I=N.paid_content_overlay_text;G7I&&(this.paidContentOverlayText=G7I);var xDU=N.url_encoded_fmt_stream_map; xDU&&(this.BH=xDU);var eW2=N.hls_formats;eW2&&(this.hlsFormats=eW2);var J3b=N.hlsvp;J3b&&(this.hlsvp=J3b);var pR=N.live_start_walltime;pR&&(this.XT=typeof pR==="number"?pR:dL(pR));var kI=N.live_manifest_duration;kI&&(this.ij=typeof kI==="number"?kI:dL(kI));var y3_=N.player_params;y3_&&(this.playerParams=y3_);var fm7=N.partnerid;fm7&&(this.partnerId=CH(this.partnerId,fm7));var dDu=N.probe_url;dDu&&(this.probeUrl=wR(g.kS(dDu,{cpn:this.clientPlaybackNonce})));var N4K=N.pyv_billable_url;N4K&&vtv(N4K)&& (this.T0=N4K);var zO2=N.pyv_conv_url;zO2&&vtv(zO2)&&(this.N8=zO2);guv(this,N);this.startSeconds>0?this.X("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.As||this.q3||N.start||N.startSeconds)&&this.WL("lss",{css:this.startSeconds,pcss:this.As,iss:this.q3,ps:N.start||void 0,pss:N.startSeconds||void 0}):this.zE=this.startSeconds=CH(this.startSeconds,this.As||this.q3||N.start||N.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var s5I=N.live_utc_start;if(s5I!= null)this.liveUtcStartSeconds=Number(s5I);else{var vR2=this.startSeconds;vR2&&isFinite(vR2)&&vR2>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var TDu=N.utc_start_millis;TDu&&(this.liveUtcStartSeconds=Number(TDu)*.001)}var FsK=N.stream_time_start_millis;FsK&&(this.gx=Number(FsK)*.001);var ROu=this.q3||N.start;(this.yh?ROu==null||Number(N.resume)===1:ROu==void 0||N.resume=="1")||this.isLivePlayback||(this.clipStart=CH(this.clipStart, ROu));var ndY=N.url_encoded_third_party_media;ndY&&(this.AR=v9(ndY));var CYb=N.ypc_offer_button_formatted_text;if(CYb){var mDK=JSON.parse(CYb);this.RS=mDK!=null?mDK:null;this.l0=CYb}var $Du=N.ypc_offer_button_text;$Du&&(this.FX=$Du);var UDm=N.ypc_offer_description;UDm&&(this.yv=UDm);var BDf=N.ypc_offer_headline;BDf&&(this.uW=BDf);var A3f=N.ypc_full_video_message;A3f&&(this.RR=A3f);var gdO=N.ypc_offer_id;gdO&&(this.V6=gdO);var pK_=N.ypc_buy_url;pK_&&(this.gh=pK_);var k7_=N.ypc_item_thumbnail;k7_&& (this.Im=k7_);var Pxu=N.ypc_item_title;Pxu&&(this.dK=Pxu);var Va7=N.ypc_item_url;Va7&&(this.MG=Va7);var S6I=N.ypc_vid;S6I&&(this.e_=S6I);N.ypc_overlay_timeout&&(this.Wm=Number(N.ypc_overlay_timeout));var Edb=N.ypc_trailer_player_vars;Edb&&(this.WZ=zU(Edb));var hWu=N.ypc_original_itct;hWu&&(this.Zu0=hWu);this.JR=Z_(this.JR,N.ucid);N.baseUrl&&(this.L.baseUrl=N.baseUrl);N.uid&&(this.L.uid=N.uid);N.oeid&&(this.L.oeid=N.oeid);N.ieid&&(this.L.ieid=N.ieid);N.ppe&&(this.L.ppe=N.ppe);N.engaged&&(this.L.engaged= N.engaged);N.subscribed&&(this.L.subscribed=N.subscribed);this.L.focEnabled=ve(this.L.focEnabled,N.focEnabled);this.L.rmktEnabled=ve(this.L.rmktEnabled,N.rmktEnabled);this.Xe=N.storyboard_spec||null;this.o7=N.live_storyboard_spec||null;this.RE=N.iv_endscreen_url||null;this.UN=ve(this.UN,N.ypc_license_checker_module);this.yE=ve(this.yE,N.ypc_module);this.L5=ve(this.L5,N.ypc_clickwrap_module);this.yE&&this.PL.push("ypc");this.L5&&this.PL.push("ypc_clickwrap");this.X9={video_id:N.video_id,eventid:N.eventid, cbrand:N.cbrand,cbr:N.cbr,cbrver:N.cbrver,c:N.c,cver:N.cver,ctheme:N.ctheme,cplayer:N.cplayer,cmodel:N.cmodel,cnetwork:N.cnetwork,cos:N.cos,cosver:N.cosver,cplatform:N.cplatform,user_age:N.user_age,user_display_image:N.user_display_image,user_display_name:N.user_display_name,user_gender:N.user_gender,csi_page_type:N.csi_page_type,csi_service_name:N.csi_service_name,enablecsi:N.enablecsi,enabled_engage_types:N.enabled_engage_types};mIu(this,N);var HY7=N.cotn;HY7&&(this.cotn=HY7);if(O0b(this))QO(this)&& (this.isLivePlayback&&this.J0&&(this.I_=!0),this.S8&&(this.Vg=!0));else if(IDK(this))this.I_=!0;else{var odU,DDU,bY_=((odU=this.playerResponse)==null?void 0:(DDU=odU.streamingData)==null?void 0:DDU.adaptiveFormats)||[];if(bY_.length>0)var ek=tku(this,bY_);else{var tav=this.adaptiveFormats;if(tav&&!QO(this)){this.bS.B.Z&&(Pc=!0);var Zw=eM(tav),Zyu=this.CG,OYf=this.lengthSeconds,zXr=this.isLivePlayback,J5=this.pG,YX=this.bS,vAU=igO(Zw);if(zXr||J5){var Imx=YX==null?void 0:YX.experiments,o6=new y3("", Imx,!0);o6.Hb=!0;o6.isManifestless=!0;o6.W=!J5;o6.isLive=!J5;o6.pG=J5;for(var XKm=g.f(Zw),Yku=XKm.next();!Yku.done;Yku=XKm.next()){var iq=Yku.value,r3U=TK(iq,Zyu),K1=Fn(iq.url,iq.sp,iq.s),ucv=K1.get("id");ucv&&ucv.includes("%7E")&&(o6.J=!0);var c3K=void 0,RXE=(c3K=Imx)==null?void 0:c3K.j8("html5_max_known_end_time_rebase"),CQw=Number(iq.target_duration_sec)||5,ZXr=Number(iq.max_dvr_duration_sec)||14400,q67=Number(K1.get("mindsq")||K1.get("min_sq")||"0"),Ma2=Number(K1.get("maxdsq")||K1.get("max_sq")|| "0")||Infinity;o6.PH=o6.PH||q67;o6.qo=o6.qo||Ma2;var YFV=!vE(r3U.mimeType);K1&&xF(o6,new zK(K1,r3U,{lY:CQw,ZW:YFV,S_:ZXr,PH:q67,qo:Ma2,Ys:300,pG:J5,Jt:RXE}))}var wKf=o6}else{if(vAU==="FORMAT_STREAM_TYPE_OTF"){var P8=OYf;P8=P8===void 0?0:P8;var j4=new y3("",YX==null?void 0:YX.experiments,!1);j4.duration=P8||0;for(var NjO=g.f(Zw),iyx=NjO.next();!iyx.done;iyx=NjO.next()){var a3=iyx.value,jd7=TK(a3,Zyu,j4.duration),aW_=Fn(a3.url,a3.sp,a3.s);if(aW_)if(jd7.streamType==="FORMAT_STREAM_TYPE_OTF")xF(j4,new vc(aW_, jd7,"sq/0"));else{var iX7=k4(a3.init),j0W=k4(a3.index);xF(j4,new lz(aW_,jd7,iX7,j0W))}}j4.isOtf=!0;var zZf=j4}else{var Vv=OYf;Vv=Vv===void 0?0:Vv;var Sh=new y3("",YX==null?void 0:YX.experiments,!1);Sh.duration=Vv||0;for(var vg2=g.f(Zw),Qdu=vg2.next();!Qdu.done;Qdu=vg2.next()){var Qz=Qdu.value,azw=TK(Qz,Zyu,Sh.duration),Q07=g.h(k4(Qz.init)),L4$=g.h(k4(Qz.index)),RZK=Fn(Qz.url,Qz.sp,Qz.s);RZK&&xF(Sh,new lz(RZK,azw,Q07,L4$))}zZf=Sh}wKf=zZf}var Cfu=wKf;if(Zw.length>0){var Zlb=Zw[0];if(this.D().playerStyle=== "hangouts-meet"&&Zlb.url){var K48=g.R0(Zlb.url);this.zS=this.zS||Number(K48.expire)}}var lz1=this.isLivePlayback&&!this.pG&&!this.Vp&&!this.isPremiere;this.X("html5_live_head_playable")&&(!Le(this)&&lz1&&this.WL("missingLiveHeadPlayable",{}),this.bS.qd==="yt"&&(Cfu.BL=!0));ek=Cfu}else ek=null;this.WL("pafmts",{isManifestFilled:!!ek})}if(ek){W0(this,ek);var YM7=!0}else YM7=!1;YM7?this.enableServerStitchedDai=this.enableServerStitchedDai&&Ke(this):this.J0&&(this.bS.qd==="yt"&&this.Hb()&&this.X("drm_manifestless_unplugged")&& this.X("html5_deprecate_manifestful_fallback")?this.WL("deprecateMflFallback",{}):this.I_=!0)}var Lg2=N.adpings;Lg2&&(this.G8=Lg2?zU(Lg2):null);var ilb=N.feature;ilb&&(this.XH=ilb);var jQu=N.referrer;jQu&&(this.referrer=jQu);this.clientScreenNonce=Z_(this.clientScreenNonce,N.csn);this.zy=CH(this.zy,N.root_ve_type);this.u1=CH(this.u1,N.kids_age_up_mode);this.yh||N.kids_app_info==void 0||(this.kidsAppInfo=N.kids_app_info);this.yh&&N.kids_app_info!=null&&(this.kidsAppInfo=N.kids_app_info);this.e4=ve(this.e4, N.upg_content_filter_mode);this.unpluggedFilterModeType=CH(this.unpluggedFilterModeType,N.unplugged_filter_mode_type);var a$x=N.unplugged_location_info;a$x&&(this.Bc=a$x);var QQb=N.unplugged_partner_opt_out;QQb&&(this.Bq=Z_("",QQb));this.tV=ve(this.tV,N.disable_watch_next);this.Mk=Z_(this.Mk,N.internal_ip_override);this.UX=!!N.is_yto_interstitial;(this.interstitials.length||this.UX)&&this.PL.push("yto");var LiI=N.U5;LiI&&(this.U5=LiI);if(this.X("html5_persist_csi_timer"))this.qd=Z_(this.qd,N.csi_timer); else{var Kif;this.qd=(Kif=N.csi_timer)!=null?Kif:""}N.watchUrl&&(this.watchUrl=N.watchUrl);var lD=N.watch_endpoint;this.X("html5_attach_watch_endpoint_ustreamer_config")&&lD&&DY_(this,lD);if(lD==null?0:lD.ustreamerConfig)this.Hg=Y1(lD.ustreamerConfig);var l$I,WiU,GqY=lD==null?void 0:(l$I=lD.loggingContext)==null?void 0:(WiU=l$I.qoeLoggingContext)==null?void 0:WiU.serializedContextData;GqY&&(this.PE0=GqY);g.Uu(this.bS)&&this.bS.oB&&(this.embedsRct=Z_(this.embedsRct,N.rct),this.embedsRctn=Z_(this.embedsRctn, N.rctn));this.v2=this.v2||!!N.pause_at_start;N.default_active_source_video_id&&(this.defaultActiveSourceVideoId=N.default_active_source_video_id)}; g.J.D=function(){return this.bS}; g.J.X=function(N){return this.bS.X(N)}; g.J.wi=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.J.hasSupportedAudio51Tracks=function(){var N;return!((N=this.ZT)==null||!N.ET)}; g.J.getUserAudio51Preference=function(){var N=1;q9(this.bS)&&this.X("html5_ytv_surround_toggle_default_off")?N=0:g.rd(this.bS)&&this.isLivePlayback&&this.Uu()&&(N=0);var z;return(z=g.Pe("yt-player-audio51"))!=null?z:N}; g.J.T_=function(){this.HL()||(this.V.W||this.V.unsubscribe("refresh",this.T_,this),this.eB(-1))}; g.J.eB=function(N){if(!this.isLivePlayback||!this.B||this.B.flavor!=="fairplay"){var z=aoI(this.V,this.S4);if(z.length>0){for(var v=g.f(z),R=v.next();!R.done;R=v.next())R=R.value,R.startSecs=Math.max(R.startSecs,this.Mp()),this.X("html5_cuepoint_identifier_logging")&&R.event==="start"&&this.WL("cuepoint",{pubCue:R.identifier,segNum:N});this.publish("cuepointupdated",z,N);this.S4+=z.length;if(Ke(this)&&this.bS.LV())for(z=g.f(z),v=z.next();!v.done;v=z.next())v=v.value,this.WL("cuepoint",{segNum:N,event:v.event, startSecs:v.startSecs,id:v.identifier.slice(-16)}),v.event==="start"&&(v=v.startSecs,this.Xu.start=this.Dx,this.Xu.end=v+3)}}}; g.J.oL=function(){this.HL()||(this.loading=!1,this.publish("dataloaded"))}; g.J.Uu=function(){return this.Hw!==void 0?this.Hw:this.Hw=!!this.CG||!!this.V&&ff(this.V)}; g.J.VI=function(N){var z=this;if(this.HL())return Ar();this.Fy=this.xT=this.Z=null;Mk(this,"html5_high_res_logging_always")&&(this.bS.BH=!0);return c5U(this,N).then(void 0,function(){return MkY(z,N)}).then(void 0,function(){return w4_(z)}).then(void 0,function(){return z0x(z)})}; g.J.KW=function(N){this.Z=N;q9u(this,this.Z.getAvailableAudioTracks());if(this.Z){N=g.f(this.Z.videoInfos);for(var z=N.next();!z.done;z=N.next()){z=z.value;var v=z.containerType;v!==0&&(this.D8[v]=z.id)}}N=this.getAvailableAudioTracks();N=N.concat(this.w$);for(z=0;z0?this.Z.getAvailableAudioTracks():this.w5||[]:[]}; g.J.getAudioTrack=function(){var N=this;if(this.N&&!Mi(this.N)){var z=g.G1(this.getAvailableAudioTracks(),function(C){return C.id===N.N.id}),v; if(this.X("html5_sabr_skip_client_audio_init_selection")&&!z&&((v=this.N.u$)==null?0:v.id)){var R=this.N.u$.id;z=g.G1(this.getAvailableAudioTracks(),function(C){return C.u$.id===R}); this.WL("nat",{id:this.N.id,track:!!z})}return z||this.w$}if(this.w5){if(!this.UV)for(z=g.f(this.w5),v=z.next();!v.done;v=z.next())if(v=v.value,v.u$.getIsDefault()){this.UV=v;break}return this.UV||this.w$}return this.w$}; g.J.getPlayerResponse=function(){return this.playerResponse}; g.J.getWatchNextResponse=function(){return this.Id}; g.J.getHeartbeatResponse=function(){return this.sX}; g.J.Kr=function(){return this.watchUrl?this.watchUrl:this.bS.getVideoUrl(this.videoId)}; g.J.eT=function(){return!!this.V&&(NrK(this.V)||zTf(this.V)||vcu(this.V))}; g.J.getEmbeddedPlayerResponse=function(){return this.HP}; g.J.YG=function(){return(this.eventLabel||this.bS.Rd)==="shortspage"}; g.J.isAd=function(){return!!this.adFormat}; g.J.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.J.Lb=function(){var N,z,v;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((N=this.playerResponse)==null?0:(z=N.playerConfig)==null?0:(v=z.daiConfig)==null?0:v.ssaEnabledPlayback)}; g.J.Cd=function(){return nk_(this)?this.S6:this.UN||this.a_}; g.J.Hn=function(){return this.yE||this.a_}; g.J.nA=function(){return Mk(this,"html5_samsung_vp9_live")}; g.J.WL=function(N,z,v){this.publish("ctmp",N,z,v)}; g.J.W9=function(N,z,v){this.publish("ctmpstr",N,z,v)}; g.J.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.J.getGetAdBreakContext=function(N,z){N=N===void 0?NaN:N;z=z===void 0?NaN:z;var v={isSabr:iM(this)},R,C=(R=this.getHeartbeatResponse())==null?void 0:R.adBreakHeartbeatParams;C&&(v.adBreakHeartbeatParams=C);if(this.X("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.V&&!isNaN(N)&&!isNaN(z)){z=N-z;for(var Z in this.V.V)if(R=this.V.V[Z],R.info.yO()||R.info.bI())if(R=R.index,R.isLoaded()){Z=R.vP(z);R=R.LG(Z)+z-R.getStartTime(Z);this.WL("gabc",{t:N.toFixed(3),mt:z.toFixed(3),sg:Z,igt:R.toFixed(3)}); v.livePlaybackPosition={utcTimeMillis:""+(R*1E3).toFixed(0)};break}}return v}; g.J.isEmbedsShortsMode=function(N,z){if(!g.Uu(this.bS)||(this.bS.K0||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||z)return!1;var v,R;return!!(((v=this.embeddedPlayerConfig)==null?0:(R=v.embeddedPlayerFlags)==null?0:R.isShortsExperienceEligible)&&N.width<=N.height)}; g.J.AO=function(){g.jJ.prototype.AO.call(this);this.G8=null;delete this.XL;delete this.accountLinkingConfig;delete this.V;this.Z=this.sX=this.playerResponse=this.Id=null;this.BH=this.adaptiveFormats="";delete this.botguardData;this.ET=this.suggestions=this.II=null;this.sabrContextUpdates.clear()};var k$u={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},P57={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},gkY={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Usu={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"},AsI={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},BQ2={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"},pkK={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(Yy,g.H);g.J=Yy.prototype;g.J.handleExternalCall=function(N,z,v){var R=this.state.L[N],C=this.state.Y[N],Z=R;if(C)if(v&&cL(v,Dur))Z=C;else if(!R)throw Error('API call from an untrusted origin: "'+v+'"');this.logApiCall(N,v);if(Z){v=!1;R=g.f(z);for(C=R.next();!C.done;C=R.next())if(String(C.value).includes("javascript:")){v=!0;break}v&&g.PN(Error('Dangerous call to "'+N+'" with ['+z+"]."));return Z.apply(this,z)}throw Error('Unknown API method: "'+N+'".');}; g.J.logApiCall=function(N,z,v){var R=this.app.D();R.XH&&!this.state.J.has(N)&&(this.state.J.add(N),g.aX("webPlayerApiCalled",{callerUrl:R.loaderUrl,methodName:N,origin:z||void 0,playerStyle:R.playerStyle||void 0,embeddedPlayerMode:R.K0,errorCode:v}))}; g.J.publish=function(N){var z=g.SI.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[N].concat(g.U(z)));if(N==="videodatachange"||N==="resize"||N==="cardstatechange")this.state.W.publish.apply(this.state.W,[N].concat(g.U(z))),this.state.N.publish.apply(this.state.N,[N].concat(g.U(z)))}; g.J.Qp=function(N){var z=g.SI.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[N].concat(g.U(z)));this.state.W.publish.apply(this.state.W,[N].concat(g.U(z)))}; g.J.wH=function(N){var z=g.SI.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[N].concat(g.U(z)));this.state.W.publish.apply(this.state.W,[N].concat(g.U(z)));this.state.N.publish.apply(this.state.N,[N].concat(g.U(z)))}; g.J.cH=function(N){var z=g.SI.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[N].concat(g.U(z)));this.state.W.publish.apply(this.state.W,[N].concat(g.U(z)));this.state.N.publish.apply(this.state.N,[N].concat(g.U(z)));this.state.B.publish.apply(this.state.B,[N].concat(g.U(z)))}; g.J.X=function(N){return this.app.D().X(N)}; g.J.AO=function(){if(this.state.element){var N=this.state.element,z;for(z in this.state.V)this.state.V.hasOwnProperty(z)&&(N[z]=null);this.state.element=null}g.H.prototype.AO.call(this)};g.y(L2,g.mN);L2.prototype.publish=function(N){var z=g.SI.apply(1,arguments);if(this.B.has(N))return this.B.get(N).push(z),!0;var v=!1;try{for(z=[z],this.B.set(N,z);z.length;)v=g.mN.prototype.publish.call.apply(g.mN.prototype.publish,[this,N].concat(g.U(z.shift())))}finally{this.B.delete(N)}return v};g.y(K2,g.H);K2.prototype.AO=function(){this.B.dispose();this.N.dispose();this.W.dispose();this.Z.dispose();this.J=this.V=this.Y=this.L=this.G=void 0};var Dsf=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.y(WX,Yy);g.J=WX.prototype;g.J.getApiInterface=function(){return Array.from(this.state.G)}; g.J.QC=function(N,z){this.state.B.subscribe(N,z)}; g.J.Pv1=function(N,z){this.state.B.unsubscribe(N,z)}; g.J.getPlayerState=function(N){return cwU(this.app,N)}; g.J.eP=function(){return cwU(this.app)}; g.J.UFW=function(N,z,v){JW(this)&&(hH(this.app,!0,1),Da(this.app,N,z,v,1))}; g.J.getCurrentTime=function(N,z,v){var R=this.getPlayerState(N);if(this.app.getAppState()===2&&R===5){var C;return((C=this.app.getVideoData())==null?void 0:C.startSeconds)||0}return this.X("web_player_max_seekable_on_ended")&&R===0?g9(this.app,N):N?this.app.getCurrentTime(N,z,v):this.app.getCurrentTime(N)}; g.J.JH=function(){return this.app.getCurrentTime(1)}; g.J.OL=function(){var N=this.app.LG(1);return isNaN(N)?this.getCurrentTime(1):N}; g.J.gL=function(){return this.app.getDuration(1)}; g.J.t$=function(N,z){N=g.UC(Math.floor(N),0,100);isFinite(N)&&Bm(this.app,{volume:N,muted:this.isMuted()},z)}; g.J.v$W=function(N){this.t$(N,!1)}; g.J.U$=function(N){Bm(this.app,{muted:!0,volume:this.getVolume()},N)}; g.J.KlO=function(){this.U$(!1)}; g.J.Tx=function(N){ee(this.app)&&!this.X("embeds_enable_emc3ds_muted_autoplay")||Bm(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},N)}; g.J.yyS=function(){ee(this.app)&&this.X("embeds_enable_emc3ds_muted_autoplay")||this.Tx(!1)}; g.J.getPlayerMode=function(){var N={};this.app.getVideoData().hd&&(N.pfp={enableIma:g.z8(this.app.getVideoData())&&this.app.qv().allowImaMonetization,autoplay:EY(this.app.qv()),mutedAutoplay:this.app.qv().mutedAutoplay});return N}; g.J.bl=function(){var N=this.app.getPresentingPlayerType();if(N===2&&!this.app.vH()){var z=mE(this.app.eV());if(!vm8(z)||RYZ(z))return}(z=this.app.dg().cK)?z.playVideo():this.app.playVideo(N)}; g.J.hdp=function(){hH(this.app,!0,1);this.bl()}; g.J.pauseVideo=function(N){var z=this.app.getPresentingPlayerType();if(z!==2||this.app.vH()||vm8(mE(this.app.eV()))){var v=this.app.dg().cK;v?v.pauseVideo():this.app.pauseVideo(z,N)}}; g.J.euT=function(){var N=this.app,z=!1;N.iS.UR&&(N.L0.publish("pageTransition"),z=!0);N.stopVideo(z)}; g.J.clearVideo=function(){}; g.J.getAvailablePlaybackRates=function(){var N=this.app.D();return N.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(N.N?N.ancestorOrigins[0]:window.location.origin)||N.Lf?ef8:N.supportsVarispeedExtendedFeatures?Jj5:N.X("web_remix_allow_up_to_3x_playback_rate")&&g.S0(N)?yjU:Bp:[1]}; g.J.getPlaybackQuality=function(N){return(N=this.app.Rj(N))?N.getPlaybackQuality():"unknown"}; g.J.DFS=function(){}; g.J.getAvailableQualityLevels=function(N){return(N=this.app.Rj(N))?(N=g.OL(N.XM(),function(z){return z.quality}),N.length&&(N[0]==="auto"&&N.shift(),N=N.concat(["auto"])),N):[]}; g.J.QA=function(){return this.getAvailableQualityLevels(1)}; g.J.CY=function(){return this.lN()}; g.J.GZ=function(){return 1}; g.J.getVideoLoadedFraction=function(N){return this.app.getVideoLoadedFraction(N)}; g.J.lN=function(){return this.getVideoLoadedFraction()}; g.J.pY=function(){return 0}; g.J.getSize=function(){var N=this.app.n0().getPlayerSize();return{width:N.width,height:N.height}}; g.J.setSize=function(){this.app.n0().resize()}; g.J.loadVideoById=function(N,z,v,R){if(!N)return!1;N=lH(N,z,v);return this.app.loadVideoByPlayerVars(N,R)}; g.J.Dy=function(N,z,v){N=this.loadVideoById(N,z,v,1);hH(this.app,N,1)}; g.J.cueVideoById=function(N,z,v,R){N=lH(N,z,v);this.app.cueVideoByPlayerVars(N,R)}; g.J.hK=function(N,z,v){this.cueVideoById(N,z,v,1)}; g.J.loadVideoByUrl=function(N,z,v,R){N=okm(N,z,v);return this.app.loadVideoByPlayerVars(N,R)}; g.J.w4=function(N,z,v){N=this.loadVideoByUrl(N,z,v,1);hH(this.app,N,1)}; g.J.cueVideoByUrl=function(N,z,v,R){N=okm(N,z,v);this.app.cueVideoByPlayerVars(N,R)}; g.J.Yu=function(N,z,v){this.cueVideoByUrl(N,z,v,1)}; g.J.sL=function(){var N=this.app.D();if(N.Vp)return"";var z=this.app.qv(),v=void 0;z.isLivePlayback||(v=Math.floor(this.app.getCurrentTime(1)));return N.getVideoUrl(z.videoId,this.getPlaylistId()||void 0,v)}; g.J.kt=function(){return this.app.getDebugText()}; g.J.getVideoEmbedCode=function(){var N=this.app.D();if(N.Vp)return"";var z=this.app.qv(),v=N.getVideoEmbedCode;z=z.isPrivate?"":z.title;var R=this.app.qv().videoId;return v.call(N,z,R,this.app.n0().getPlayerSize(),this.getPlaylistId()||void 0)}; g.J.Dm=function(N,z,v){return CgO(this.app,N,z,v)}; g.J.removeCueRange=function(N){return Y7x(this.app,N)}; g.J.loadPlaylist=function(N,z,v,R){this.app.loadPlaylist(N,z,v,R)}; g.J.f6=function(N,z,v,R){this.loadPlaylist(N,z,v,R);hH(this.app,!0,1)}; g.J.cuePlaylist=function(N,z,v,R){this.app.cuePlaylist(N,z,v,R)}; g.J.nextVideo=function(N,z){this.app.nextVideo(N,z)}; g.J.R1L=function(){this.nextVideo();hH(this.app,!0,1)}; g.J.previousVideo=function(N){this.app.previousVideo(N)}; g.J.v8L=function(){this.previousVideo();hH(this.app,!0,1)}; g.J.playVideoAt=function(N){this.app.playVideoAt(N)}; g.J.lC8=function(N){this.playVideoAt(N);hH(this.app,!0,1)}; g.J.setShuffle=function(N){var z=this.app.getPlaylist();z&&z.setShuffle(N)}; g.J.setLoop=function(N){var z=this.app.getPlaylist();z&&(z.loop=N)}; g.J.NP=function(){var N=this.app.getPlaylist();if(!N)return null;for(var z=[],v=0;v=400)if(N=g.h(this.qv()),this.C.D().X("client_respect_autoplay_switch_button_renderer"))N=!!N.autoplaySwitchButtonRenderer;else{var z,v,R,C;N=!!((z=N.getWatchNextResponse())==null?0:(v=z.contents)==null?0:(R=v.twoColumnWatchNextResults)==null?0:(C=R.autoplay)==null?0:C.autoplay)!==!1}if(N)this.V||(this.V=!0,this.iF(this.V),this.C.D().X("web_player_autonav_toggle_always_listen")||KJ7(this), z=g.h(this.qv()),this.lX(z.autonavState),this.C.logVisibility(this.element,this.V));else if(this.V=!1,this.iF(this.V),!this.C.D().X("web_player_autonav_toggle_always_listen"))for(this.C.D().X("web_player_autonav_toggle_always_listen"),z=g.f(this.W),v=z.next();!v.done;v=z.next())this.Kb(v.value)}; g.J.lX=function(N){WJu(this)?this.isChecked=N!==1:((N=N!==1)||(g.os(),N=g.yj("web_autonav_allow_off_by_default")&&!g.D_(0,141)&&g.XI("AUTONAV_OFF_BY_DEFAULT")?!1:!g.D_(0,140)),this.isChecked=N);lv2(this)}; g.J.onClick=function(){this.isChecked=!this.isChecked;this.C.iM(this.isChecked?2:1);lv2(this);if(WJu(this)){var N=g.h(this.qv()).autoplaySwitchButtonRenderer;this.isChecked&&(N==null?0:N.onEnabledCommand)?this.C.Qp("innertubeCommand",N.onEnabledCommand):!this.isChecked&&(N==null?0:N.onDisabledCommand)&&this.C.Qp("innertubeCommand",N.onDisabledCommand)}this.C.logClick(this.element)}; g.J.getValue=function(){return this.isChecked}; g.J.qv=function(){return this.C.getVideoData(1)};g.y(GzK,q1);g.y(Cs,g.Xj);Cs.prototype.onClick=function(){this.enabled&&(ZS(this,!this.checked),this.publish("select",this.checked))}; Cs.prototype.getValue=function(){return this.checked}; Cs.prototype.setEnabled=function(N){(this.enabled=N)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var e_2=["en-CA","en","es-MX","fr-CA"];g.y(Ks,Cs);Ks.prototype.FW=function(N){N?this.V||(this.b$.dH(this),this.V=!0):this.V&&(this.b$.LU(this),this.V=!1);this.V&&ZS(this,mh2())}; Ks.prototype.N=function(){g.jW(this.element,"ytp-menuitem-highlight-transition-enabled")}; Ks.prototype.Z=function(N){var z=mh2();N!==z&&(z=g.os(),tV(190,N),tV(192,!0),z.save(),this.C.Qp("cinematicSettingsToggleChange",N))}; Ks.prototype.AO=function(){this.V&&this.b$.LU(this);Cs.prototype.AO.call(this)};g.y(lp,q1);lp.prototype.updateCinematicSettings=function(N){this.V=N;var z;(z=this.menuItem)==null||z.FW(N);this.api.publish("onCinematicSettingsVisibilityChange",N)};g.y(fvb,q1);g.y(WO,q1);WO.prototype.setCreatorEndscreenVisibility=function(N){var z;(z=Ak(this.api.eV()))==null||z.iF(N)}; WO.prototype.V=function(N){function z(R){R==="creatorendscreen"&&(R=Ak(v.api.eV()))&&R.fT0(v.hideButton)} var v=this;this.hideButton=N;this.events.S(this.api,"modulecreated",z);z("creatorendscreen")};g.y(Ge,Cs);Ge.prototype.N=function(N){this.Z(N?1:0)}; Ge.prototype.W=function(){var N=this.hasDrcAudioTrack(),z=this.V()===1&&N;ZS(this,z);this.setEnabled(N)}; Ge.prototype.AO=function(){this.b$.LU(this);Cs.prototype.AO.call(this)};g.y(xY,q1);xY.prototype.getDrcUserPreference=function(){return this.V}; xY.prototype.setDrcUserPreference=function(N){g.ka("yt-player-drc-pref",N,31536E3);N!==this.V&&(this.V=N,this.updateEnvironmentData(),this.W()&&this.api.AZ())}; xY.prototype.updateEnvironmentData=function(){this.api.D().X6=this.V===1}; xY.prototype.W=function(){var N,z,v=(N=this.api.getVideoData())==null?void 0:(z=N.Z)==null?void 0:z.V;if(!v)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.X("mta_drc_mutual_exclusion_removal")){var R,C,Z=(R=this.api.UG())==null?void 0:(C=R.u$)==null?void 0:C.id;return Mj(v,function(Y){var Q;return Y.audio.V&&((Q=Y.u$)==null?void 0:Q.id)===Z})}return Mj(v,function(Y){var Q; return((Q=Y.audio)==null?void 0:Q.V)===!0})};g.y(ed,q1);ed.prototype.onVideoDataChange=function(){var N=this,z=this.api.getVideoData();this.api.s6("embargo",1);var v=z==null?void 0:z.Hq.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(v==null?0:v.length)?sJK(this,v.filter(function(R){return d$u(N,R)})):(z==null?0:z.cueRanges)&&sJK(this,z.cueRanges.filter(function(R){return d$u(N,R)}))}; ed.prototype.W=function(N){return N.embargo!==void 0}; ed.prototype.AO=function(){q1.prototype.AO.call(this);this.V={}};g.y(Jp,q1); Jp.prototype.addEmbedsConversionTrackingParams=function(N){var z=this.api.D(),v=z.widgetReferrer,R=z.Dx,C=this.V,Z="",Y=z.getWebPlayerContextConfig();Y&&(Z=Y.embedsIframeOriginParam||"");v.length>0&&(N.embeds_widget_referrer=v);R.length>0&&(N.embeds_referring_euri=R);z.N&&Z.length>0&&(N.embeds_referring_origin=Z);Y&&Y.embedsFeature&&(N.feature=Y.embedsFeature);C.length>0&&(z.X("embeds_web_enable_lite_experiment_control_arm_logging")?C.unshift(28572):g.as(g.Eu(z))&&C.unshift(159628),z=C.join(","),z= g.tr()?z:g.vJ(z,4),N.source_ve_path=z);this.V.length=0};g.y(TqU,q1);g.y(FJ2,q1);g.y(yo,g.H);yo.prototype.AO=function(){g.H.prototype.AO.call(this);this.V=null;this.W&&this.W.disconnect()};g.y(m$u,q1);g.y(fs,g.X);fs.prototype.show=function(){g.X.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; fs.prototype.stopTimer=function(){this.V&&(this.V.dispose(),this.V=null)}; fs.prototype.onVideoDataChange=function(N){var z,v,R=(z=this.api.getVideoData())==null?void 0:(v=z.getPlayerResponse())==null?void 0:v.playabilityStatus;R&&(z=$$m(R),g.u(this.api.getPlayerStateObject(),128)||N==="dataloaderror"||!z?(this.W=0,this.stopTimer(),this.hide()):(N=(z.remainingTimeSecs||0)*1E3,N>0&&(this.show(),this.updateValue("label",nb(z.label)),Bq_(this,N))))}; fs.prototype.AO=function(){this.stopTimer();g.X.prototype.AO.call(this)};g.y(AGK,q1);g.y(dW,g.X);dW.prototype.onClick=function(){this.L0.logClick(this.element);this.L0.Qp("onFullerscreenEduClicked")}; dW.prototype.FW=function(){this.L0.isFullscreen()?this.V?this.fade.hide():this.fade.show():this.hide();this.L0.logVisibility(this.element,this.L0.isFullscreen()&&!this.V)};g.y(sz,q1);sz.prototype.updateFullerscreenEduButtonSubtleModeState=function(N){var z;(z=this.V)!=null&&(g.QY(z.element,"ytp-fullerscreen-edu-button-subtle",N),N&&!z.W&&(z.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"),Fj(z.L0,z.element,z),z.W=!0))}; sz.prototype.updateFullerscreenEduButtonVisibility=function(N){var z;(z=this.V)!=null&&(z.V=N,z.FW())};g.y(g0K,g.X);g.y(PsY,q1);g.y(Te,q1);Te.prototype.getSphericalProperties=function(){var N=g.p2(this.api.eV());return N?N.getSphericalProperties():{}}; Te.prototype.setSphericalProperties=function(N){if(N){var z=g.p2(this.api.eV());z&&z.setSphericalProperties(N,!0)}};g.y(Fq,q1);g.J=Fq.prototype;g.J.createClientVe=function(N,z,v,R){this.api.createClientVe(N,z,v,R===void 0?!1:R)}; g.J.createServerVe=function(N,z,v){this.api.createServerVe(N,z,v===void 0?!1:v)}; g.J.setTrackingParams=function(N,z){this.api.setTrackingParams(N,z)}; g.J.logClick=function(N,z){this.api.logClick(N,z)}; g.J.logVisibility=function(N,z,v){this.api.logVisibility(N,z,v)}; g.J.hasVe=function(N){return this.api.hasVe(N)}; g.J.destroyVe=function(N){this.api.destroyVe(N)};var S_U=!1;mz.prototype.setPlaybackRate=function(N){this.playbackRate=Math.max(1,N)}; mz.prototype.getPlaybackRate=function(){return this.playbackRate};gW.prototype.wl=function(N){var z=g.wp(N.info.V.info,this.Md.Hb),v=N.info.cL+this.N,R=N.info.startTime*1E3;if(this.policy.S8)try{R=this.policy.S8?g.iz(N)*1E3:N.info.startTime*1E3}catch(Y){Math.random()>.99&&this.logger&&(R=sf(N.V).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:N.info.z4(),encodedDataView:g.zV(R,4)})),R=N.info.startTime*1E3}var C=N.info.clipId,Z=this.policy.S8?g.hlb(N)*1E3:N.info.duration*1E3;this.policy.S8&&(R<0||Z<0)&&(this.logger&&(this.logger({missingSegInfo:N.info.z4(), startTimeMs:R,durationMs:Z}),this.policy.oM||(R<0&&(R=N.info.startTime*1E3),Z<0&&(Z=N.info.duration*1E3))),this.policy.oM&&(R<0&&(R=N.info.startTime*1E3),Z<0&&(Z=N.info.duration*1E3)));return{formatId:z,cL:v,startTimeMs:R,clipId:C,gJ:Z}}; gW.prototype.bK=function(N){this.timestampOffset=N};ps.prototype.seek=function(N,z){N!==this.V&&(this.seekCount=0);this.V=N;var v=this.videoTrack.W,R=this.audioTrack.W,C=this.audioTrack.Mu,Z=vwY(this,this.videoTrack,N,this.videoTrack.Mu,z);z=vwY(this,this.audioTrack,this.policy.RP?N:Z,C,z);N=Math.max(N,Z,z);this.B=!0;this.Md.isManifestless&&(q_m(this,this.videoTrack,v),q_m(this,this.audioTrack,R));return N}; ps.prototype.isSeeking=function(){return this.B}; ps.prototype.Zk=function(N){this.Z=N}; var zcY=2/24;var Zf2=0;g.J=tp.prototype;g.J.f1=function(){this.J=this.now();cNu(this.bF,this.J);this.Zx.f1()}; g.J.G3=function(N,z){var v=this.policy.W?(0,g.I)():0;Oz(this,N,z);N-this.G<10&&this.W>0||this.hP(N,z);this.Zx.G3(N,z);this.policy.W&&(N=(0,g.I)()-v,this.CV+=N,this.kJ=Math.max(N,this.kJ))}; g.J.hP=function(N,z){var v=(N-this.G)/1E3,R=z-this.Z;this.EV||(JR(this.bF,v,R),this.E7(v,R));this.G=N;this.Z=z}; g.J.qQ=function(){this.K0&&YQf(this);this.Zx.qQ()}; g.J.RY=function(N){this.K0||(this.K0=this.B-this.UR+N,this.Dx=this.B,this.J0=this.L)}; g.J.mu=function(N,z){N=N===void 0?this.L:N;z=z===void 0?this.B:z;this.W>0||(this.Y=N,this.W=z,this.qd=this.isActive=!0)}; g.J.eS=function(){return this.Ry||2}; g.J.WF=function(){}; g.J.Bm=function(){var N,z={rn:this.requestNumber,rt:(this.L-this.V).toFixed(),lb:this.B,stall:(1E3*this.N).toFixed(),ht:(this.J-this.V).toFixed(),elt:(this.Y-this.V).toFixed(),elb:this.W,d:(N=this.Rd)==null?void 0:N.Jy()};this.url&&VvO(z,this.url);this.policy.W&&(z.mph=this.kJ.toFixed(),z.tph=this.CV.toFixed());z.ulb=this.Id;z.ult=this.Vp;return z}; g.J.now=function(){return(0,g.I)()}; g.J.deactivate=function(){this.isActive&&(this.isActive=!1)};g.y(Xq,tp);g.J=Xq.prototype;g.J.Bm=function(){var N=tp.prototype.Bm.call(this);N.pb=this.Bh;N.pt=(1E3*this.gW).toFixed();N.se=this.yh;return N}; g.J.Tb=function(){var N=this.Zx;this.vL||(this.vL=N.Tb?N.Tb():1);return this.vL}; g.J.cJ=function(){return this.UA?this.Tb()!==1:!1}; g.J.OS=function(N,z,v){if(!this.YJ){this.YJ=!0;if(!this.EV){Oz(this,N,z);this.hP(N,z);var R=this.Tb();this.yh=v;if(!this.EV)if(R===2){R=N-this.Y0)||rW(this,R,z),this.W>0&&x1(this.bF,z,this.N));N=(N-this.V)/ 1E3||.01;this.policy.Y&&!(this.W>0)||Gx(this.bF,N,this.Z,jSU(this),this.CX)}this.deactivate()}}; g.J.u4=function(N,z,v){v&&(this.vL=2);N<0&&this.Ry&&(N=this.Ry);z?this.S8+=N:this.UT+=N}; g.J.eS=function(){return this.UT||this.S8||tp.prototype.eS.call(this)}; g.J.hP=function(N,z){var v=(N-this.G)/1E3,R=z-this.Z,C=this.Tb();this.isActive?C===1&&((R>0||this.policy.B)&&(v>.2||R<1024)?(this.N+=v,R>0&&v>.2&&rW(this,this.FB?v:.05,R),this.A0=!0):R>0&&(rW(this,v,R),this.A0=!0)):z&&z>=this.policy.V&&this.mu(N,z);tp.prototype.hP.call(this,N,z)}; g.J.xx=function(N){if(!this.EV){Oz(this,N,this.B);var z=(N-this.V)/1E3;this.Tb()!==2&&this.W>0&&(this.N+=(N-this.G)/1E3,x1(this.bF,this.Z,this.N));Gx(this.bF,z,this.Z,jSU(this),this.CX,!0);N=(N-this.G)/1E3;JR(this.bF,N,0);this.E7(N,0)}}; g.J.mu=function(N,z){N=N===void 0?this.L:N;z=z===void 0?this.B:z;if(!(this.W>0)&&(tp.prototype.mu.call(this,N,z),this.Tb()===1)){z=(this.J-this.V)/1E3;var v=(N-this.J)/1E3;this.UA&&up(this,this.now());this.zE||this.EV||(this.Ry&&(v=Math.max(0,v-this.Ry)),N=this.bF,N.Y.Xp(1,z),N.Rd.Xp(1,v))}}; g.J.XD=function(){this.UA&&up(this,this.now());return this.BL}; g.J.WQ=function(){var N;if(N=this.Z>this.g_)N=(N=this.Z)?N>=this.policy.V:!1;return N}; g.J.G5=function(){return this.xT}; g.J.SY=function(N){N=N===void 0?this.now():N;if(this.UA){up(this,N);if(this.vL?this.cJ():this.PL!==this.tO){var z=this.tO;if(N0?v+N:v+Math.max(N,z)}; g.J.Vb=function(){return this.now()-this.Y}; g.J.tN=function(){return(this.Z-this.W)*1E3/this.Vb()||0}; g.J.Lk=function(){return this.Y};cO.prototype.feed=function(N){J2(this.V,N);this.Nv()}; cO.prototype.Nv=function(){if(this.N){if(!this.V.getLength())return;var N=this.V.split(this.Z-this.W),z=N.x_;N=N.EA;if(!this.Zx.RY(this.N,z,this.W,this.Z))return;this.W+=z.getLength();this.V=N;this.W===this.Z&&(this.N=this.Z=this.W=void 0)}for(;;){var v=0;N=g.f(K_m(this.V,v));z=N.next().value;v=N.next().value;v=g.f(K_m(this.V,v));N=v.next().value;v=v.next().value;if(z<0||N<0)break;if(!this.V.mK(v,N)){if(!this.Zx.RY||!this.V.mK(v,1))break;v=this.V.split(v).EA;this.Zx.RY(z,v,0,N)&&(this.N=z,this.W= v.getLength(),this.Z=N,this.V=new eo([]));break}N=this.V.split(v).EA.split(N);v=N.EA;this.Zx.Vc(z,N.x_);this.V=v}}; cO.prototype.dispose=function(){this.V=new eo};g.J=qO.prototype;g.J.iR=function(){return 0}; g.J.An=function(){return null}; g.J.N7=function(){return null}; g.J.Aa=function(){return this.state>=1}; g.J.isComplete=function(){return this.state>=3}; g.J.M4=function(){return this.state===5}; g.J.onStateChange=function(){}; g.J.lF=function(N){var z=this.state;this.state=N;this.onStateChange(z);this.callback&&this.callback(this,z)}; g.J.JD=function(N){N&&this.state=this.xhr.HEADERS_RECEIVED}; g.J.getResponseHeader=function(N){try{return this.xhr.getResponseHeader(N)}catch(z){return""}}; g.J.hp=function(){return+this.getResponseHeader("content-length")}; g.J.GF=function(){return this.W}; g.J.qG=function(){return this.status>=200&&this.status<300&&!!this.W}; g.J.BW=function(){return this.V.getLength()>0}; g.J.CC=function(){var N=this.V;this.V=new eo;return N}; g.J.Ih=function(){return this.V}; g.J.abort=function(){this.HL=!0;this.xhr.abort()}; g.J.zX=function(){return!0}; g.J.hQ=function(){return this.Z}; g.J.VX=function(){return""};ND.prototype.DG=function(N,z){z=z===void 0?1:z;this.RM+=z;this.W+=N;N/=z;for(var v=0;v0)R+="."+wW[C].toFixed(0)+"_"+v.V[C].toFixed(0);else break;v=R}v&&(N[z]=v)}this.V=new W_v;return N}; g.J.toString=function(){return""};g.J=ymx.prototype;g.J.isActive=function(){return!1}; g.J.EH=function(){}; g.J.NO=function(){}; g.J.kY=function(){}; g.J.Xw=function(){}; g.J.Mg=function(N,z){z()}; g.J.ai=function(){return{}}; g.J.toString=function(){return""};var an,TSZ,FRP,nSE,mA7,Qe,sG,vK,gfU;an=new ymx;TSZ=!!+rb("html5_enable_profiler");FRP=!!+rb("html5_onesie_enable_profiler");nSE=!!+rb("html5_offline_encryption_enable_profiler");mA7=!!+rb("html5_performance_impact_profiling_timer_ms");Qe=TSZ||FRP||nSE||mA7?new xcu:an;g.ki=TSZ?Qe:an;sG=FRP?Qe:an;vK=nSE?Qe:an;gfU=mA7?Qe:an;g.J=sS2.prototype;g.J.getResponseHeader=function(N){return N==="content-type"?this.V.get("type"):""}; g.J.abort=function(){}; g.J.i4=function(){return!0}; g.J.hp=function(){return this.range.length}; g.J.GF=function(){return this.loaded}; g.J.qG=function(){return!!this.loaded}; g.J.BW=function(){return!!this.W.getLength()}; g.J.CC=function(){var N=this.W;this.W=new eo;return N}; g.J.Ih=function(){return this.W}; g.J.zX=function(){return!0}; g.J.hQ=function(){return!!this.error}; g.J.VX=function(){return this.error};g.J=F_I.prototype;g.J.start=function(N){var z={credentials:"include",cache:"no-store"};Object.assign(z,this.L);this.N&&(z.signal=this.N.signal);N=new Request(N,z);fetch(N).then(this.J,this.onError).then(void 0,jt)}; g.J.onDone=function(){this.HL()||this.Zx.qQ()}; g.J.getResponseHeader=function(N){return this.responseHeaders?this.responseHeaders.get(N):null}; g.J.i4=function(){return!!this.responseHeaders}; g.J.GF=function(){return this.W}; g.J.hp=function(){return+this.getResponseHeader("content-length")}; g.J.qG=function(){return this.status>=200&&this.status<300&&!!this.W}; g.J.BW=function(){return!!this.V.getLength()}; g.J.CC=function(){this.BW();var N=this.V;this.V=new eo;return N}; g.J.Ih=function(){this.BW();return this.V}; g.J.HL=function(){return this.B}; g.J.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.N&&this.N.abort();this.B=!0}; g.J.zX=function(){return!0}; g.J.hQ=function(){return this.G}; g.J.VX=function(){return this.errorMessage};g.J=nw_.prototype;g.J.onDone=function(){if(!this.HL){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(N){}this.V=!0;this.Zx.qQ()}}; g.J.gj=function(){this.xhr.readyState===2&&this.Zx.f1()}; g.J.MH=function(N){this.HL||(this.status=this.xhr.status,this.V||(this.W=N.loaded),this.Zx.G3((0,g.I)(),N.loaded))}; g.J.i4=function(){return this.xhr.readyState>=2}; g.J.getResponseHeader=function(N){try{return this.xhr.getResponseHeader(N)}catch(z){return g.PN(Error("Could not read XHR header "+N)),""}}; g.J.hp=function(){return+this.getResponseHeader("content-length")}; g.J.GF=function(){return this.W}; g.J.qG=function(){return this.status>=200&&this.status<300&&this.V&&!!this.W}; g.J.BW=function(){return this.V&&!!this.response&&!!this.response.byteLength}; g.J.CC=function(){this.BW();var N=this.response;this.response=void 0;return new eo([new Uint8Array(N)])}; g.J.Ih=function(){this.BW();return new eo([new Uint8Array(this.response)])}; g.J.abort=function(){this.HL=!0;this.xhr.abort()}; g.J.zX=function(){return!1}; g.J.hQ=function(){return!1}; g.J.VX=function(){return""};g.y(CY,g.H);CY.prototype.Qi=function(){if(!this.Y$.length)return[];var N=this.Y$;this.Y$=[];this.Z=g.lW(N).info;return N}; CY.prototype.F1=function(){return this.Y$}; CY.prototype.AO=function(){g.H.prototype.AO.call(this);this.V=null;this.Y$.length=0;this.TU.length=0;this.Z=null};g.y(Yd,g.H);g.J=Yd.prototype; g.J.N6T=function(){if(!this.HL()){var N=(0,g.I)(),z=!1;if(this.policy.Jx){N=N-(this.timing.W>0?this.timing.Y:this.timing.V)-this.timing.eS()*1E3;var v=Tg(ix(this),!1);N>=2E3*v?z=!0:N>=this.policy.e_*v&&(this.V=this.policy.Eb)}else if(this.timing.W>0){if(this.B){this.policy.yh&&(this.V=0);return}var R=this.timing.G5();this.timing.SY();var C=this.timing.G5();C-R>=this.policy.s9*.8?(this.V++,this.logger.debug(function(){return"Mispredicted by "+(C-R).toFixed(0)}),z=this.V>=5):this.V=0}else{var Z=N-this.timing.XD(); this.policy.Eb&&Z>0&&(this.V+=1);z=Tg(ix(this),!1)*this.policy.uu;(z=Z>z*1E3)&&this.logger.debug(function(){return"Elbow late by "+Z.toFixed(3)})}this.V>0&&this.Zx.xk(); z?this.ZZ():this.W.start()}}; g.J.ZZ=function(){this.N=!0;this.Zx.v9();this.lastError="net.timeout";Qc(this)}; g.J.canRetry=function(N){var z=ix(this);N=N?this.policy.k6:this.policy.Lr;return z.timedOut0&&(z=z.V.getUint8(0),N.ubyte=z,v===1&&z===0&&(N.b248180278=!0))}this.pU&&(N.rc=this.policy.V6?this.pU:this.pU.toString());this.policy.c5&&this.c$&&(N.tr=this.c$);N.itag=this.info.TU[0].V.info.itag;N.ml=""+ +this.info.TU[0].V.eN();N.sq=""+this.info.TU[0].cL;this.Pc&&(N.ifi=""+ +gk(this.info.KV.W));this.pU!==410&&this.pU!==500&&this.pU!==503||(N.fmt_unav="true");var R;(v=this.errorMessage||((R=this.xhr)==null? void 0:R.VX()))&&(N.msg=v);this.Fg&&(N.smb="1");this.info.isDecorated()&&(N.sdai="1");return N}; g.J.zH=function(){return aqm(this.timing)}; g.J.VX=function(){return this.xhr.VX()||""}; g.J.WQ=function(){return this.isComplete()||this.timing.WQ()}; g.J.G3=function(){!this.HL()&&this.xhr&&(this.pU=this.xhr.status,this.policy.tZ&&this.zd&&this.p4(!1),this.l3()?this.JD(2):!this.aA&&this.WQ()&&(this.JD(),this.aA=!0))}; g.J.f1=function(){if(!this.HL()&&this.xhr){if(!this.rE&&this.xhr.i4()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var N=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.rE=((0,g.I)()-N)/1E3}this.xhr.i4()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.S6&&!oVm()&&g.ka("yt-player-headers-readable",!0,2592E3);N=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var z=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),v;(v=this.HM)==null||v.stop();this.PS=N||this.PS; this.s5=z||this.s5}}; g.J.qQ=function(){var N=this.xhr;if(!this.HL()&&N){this.pU=N.status;N=this.mG(N);if(this.policy.c5){var z;(z=this.HM)==null||z.stop()}N===5?Qc(this.Cb):this.lF(N);this.Cb.W.stop()}}; g.J.mG=function(N){var z=this;Zwu(this);if(LY(this.Cb,this.xhr.status,this.MX?this.timing.qd||this.vy:this.xhr.qG(),!1,this.AS))return 5;var v="";KY(this.Cb,this.xhr)&&(v=gwI(this.Cb,this.xhr));if(v)return sE(ix(this.Cb)),this.info.rG(this.Pc,v),3;v=N.GF();if(this.TD){this.p4(!0);Zwu(this);if(LY(this.Cb,this.xhr.status,this.timing.qd||this.vy,!1,this.AS))return 5;if(!this.fQ){if(this.vy)return sE(ix(this.Cb)),3;this.Cb.lastError="net.closed";return 5}}else{if(LY(this.Cb,this.xhr.status,this.xhr.qG(), !1,this.AS))return 5;var R=this.info.Z;if(R&&R!==v||N.hQ())return this.Cb.lastError="net.closed",5;this.p4(!0)}R=lqO(this)?N.getResponseHeader("X-Bandwidth-Est"):0;if(N=lqO(this)?N.getResponseHeader("X-Bandwidth-Est3"):0)this.U0=!0,this.policy.yq&&(R=N);Bk2(this.Cb,v,R?Number(R):0,this.info.TU[0].type===5);this.logger.debug(function(){var C=z.timing;return"Succeeded, rtpd="+(C.gW*1E3+C.V-Date.now()).toFixed(0)}); return 4}; g.J.canRetry=function(){this.HL();var N=this.info.isDecorated();return this.Cb.canRetry(N)}; g.J.onStateChange=function(){this.isComplete()&&(this.policy.UN?this.v9():this.timing.deactivate())}; g.J.ZZ=function(){this.Cb.ZZ()}; g.J.xk=function(){this.callback&&this.callback(this,this.state)}; g.J.Dn=function(){return this.Cb.Dn()}; g.J.dispose=function(){qO.prototype.dispose.call(this);this.Cb.dispose();var N;(N=this.HM)==null||N.dispose();this.policy.UN||this.v9()}; g.J.v9=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.J.Qi=function(){if(!this.F1().length)return[];this.QM=!0;return this.zd.Qi()}; g.J.l3=function(){if(this.state<1)return!1;if(this.zd&&this.zd.Y$.length)return!0;var N;return((N=this.xhr)==null?0:N.BW())?!0:!1}; g.J.F1=function(){this.p4(!1);return this.zd?this.zd.F1():[]}; g.J.p4=function(N){try{if(N||this.xhr.i4()&&this.xhr.BW()&&!KY(this.Cb,this.xhr)&&!this.A1)this.zd||(this.zd=new CY(this.policy,this.info.TU)),this.xhr.BW()&&(this.TD?this.TD.feed(this.xhr.CC()):Zm(this.zd,this.xhr.CC(),N&&!this.xhr.BW()))}catch(z){this.TD?v47(this,z):g.PN(z)}}; g.J.Vc=function(N,z){switch(N){case 21:N=z.split(1).EA;R7I(this,N);break;case 22:this.fQ=!0;Zm(this.zd,new eo([]),!0);break;case 43:if(N=So(new A2(z),1))this.info.rG(this.Pc,N),this.vy=!0;break;case 45:z=Yw(new A2(z));N=z.iT;z=z.oH;N&&z&&(this.PG=N/z);break;case 44:this.Um=oUf(new A2(z));var v,R,C;!this.timing.qd&&((v=this.Um)==null?void 0:v.action)===4&&((R=this.Um)==null?0:(C=R.pS)==null?0:C.MX)&&(this.MX=this.Um.pS.MX);break;case 53:this.policy.c5&&(N=EUu(new A2(z)).IR)&&(this.HM||(this.IR=N,this.HM= new g.cn(this.G_,N,this)),this.HM.start());break;case 60:this.FE=Zq(new A2(z));break;case 58:if(N=Gtx(new A2(z)))this.o8=N,N.o8===3&&(this.AS=!0)}}; g.J.RY=function(N,z,v,R){v||this.timing.RY(R);if(N!==21)return!1;if(N=this.policy.tZ)if(R=z.getLength()+v===R,N*=this.info.TU[0].V.info.i$,!R&&z.getLength()0)return!1;if(!this.xhr.i4())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.TD)var N=!this.info.Z;else this.xhr.hp()?N=!1:(N=this.xhr.getResponseHeader("content-type"),N=N==="audio/mp4"||N==="video/mp4"||N==="video/webm");if(!N)return!1;if(isNaN(this.info.AJ)){N=this.xhr.getResponseHeader("x-head-seqnum");var z=this.timing.policy.L?1:0;if(!N)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(N)>this.info.TU[0].cL+z)return!1}return!0}; g.J.sy=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.J.An=function(){this.xhr&&(this.PS=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.PS}; g.J.N7=function(){this.xhr&&(this.s5=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.s5}; g.J.Xk=function(){return this.Cb.Xk()}; g.J.G_=function(){if(!this.HL()&&this.xhr){this.c$="heartbeat";var N=this.Cb;N.V+=2;this.xk()}};g.y(dD,tp);g.J=dD.prototype;g.J.hP=function(N,z){var v=(N-this.G)/1E3,R=z-this.Z;this.W>0?R>0&&(this.PL&&(v>.2||R<1024?(this.N+=v,v>.2&&YEf(this,.05,R)):YEf(this,v,R)),this.tO&&(this.BL+=R,this.UT+=v)):z>this.policy.V&&this.mu(N,z);tp.prototype.hP.call(this,N,z)}; g.J.OS=function(N,z){Oz(this,N,z);this.hP(N,z);this.PL&&(z=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.W>0&&x1(this.bF,this.BL,this.N),N=(N-this.V)/1E3||.01,this.policy.Y&&!(this.W>0)||Gx(this.bF,N,this.Z,z,!1))}; g.J.xx=function(N){Oz(this,N,this.B);var z=(N-this.G)/1E3;JR(this.bF,z,0);this.E7(z,0);!this.PL&&this.W>0||(z=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.W>0&&(this.N+=(N-this.G)/1E3,x1(this.bF,this.BL,this.N)),Gx(this.bF,((N-this.V)/1E3||.01)*this.policy.qd,this.Z,z,!1,!0))}; g.J.Mw=function(N){N=N.cV||2147483647;(N&2)!==2&&(this.tO=!1);(N&1)===1&&(this.PL=!0)}; g.J.K2=function(N){N=N.cV||2147483647;(N&2)===2&&(this.tO=!1);(N&1)===1&&(this.PL=!1)}; g.J.Lk=function(){return this.Y}; g.J.Vb=function(){var N=this.tO?this.now()-this.G:0;return Math.max(this.UT*1E3+N,1)}; g.J.tN=function(){return this.BL*1E3/this.Vb()}; g.J.mu=function(N,z){N=N===void 0?this.L:N;z=z===void 0?this.B:z;this.W>0||(tp.prototype.mu.call(this,N,z),z=this.bF,N=(N-this.J)/1E3,z.Y.Xp(1,(this.J-this.V)/1E3),z.Rd.Xp(1,N))}; g.J.WF=function(N){this.S8=N}; g.J.Bm=function(){var N=tp.prototype.Bm.call(this);N.rbw=this.tN();N.rbe=+this.tO;N.gbe=+this.PL;N.ackt=(this.S8-this.V).toFixed();return N}; g.J.SY=function(){}; g.J.G5=function(){return NaN}; g.J.XD=function(){return this.V+this.snapshot.delay*1E3};s6.prototype.Vc=function(N,z){z.getLength();switch(N){case 20:N=new A2(z);N={mx:kl(N,1),videoId:So(N,2),itag:kl(N,3),lmt:kl(N,4),xtags:So(N,5),Fo:kl(N,6),vp:Py(N,8),Pg:kl(N,9),mQl:kl(N,10),startMs:kl(N,11),durationMs:kl(N,12),SW:kl(N,14),timeRange:Ef(N,15,wLI),SM:kl(N,16),f3:kl(N,17),clipId:So(N,1E3)};this.FV(N);break;case 21:this.US(z,!1);break;case 22:this.BS(z);break;case 31:N=oN(z,BVI);this.U7(N);break;case 52:N=oN(z,hdu);this.aL(N);break;default:this.GK(N,z)}}; s6.prototype.FV=function(){}; s6.prototype.GK=function(){};g.y(T7,s6);g.J=T7.prototype; g.J.GK=function(N,z){z.getLength();switch(N){case 35:this.M$(z);break;case 44:this.t_(z);break;case 43:this.jA(z);break;case 53:this.fD(z);break;case 55:N=new A2(z);Ef(N,1,b7x);Ef(N,2,IAK);break;case 56:this.GV();break;case 57:this.mR(z);break;case 42:this.pD(z);break;case 45:this.XK(z);break;case 59:this.dI(z);break;case 51:this.Hk(z);break;case 49:this.Mw(z);break;case 50:this.K2(z);break;case 47:this.Ik(z);break;case 58:this.l4(z);break;case 61:this.Zx.k8.WF((0,g.I)());break;case 66:this.C9(z); break;case 46:this.Rk(z);break;case 67:this.onSnackbarMessage(z)}}; g.J.Hk=function(N){N=new A2(N);N={fRT:Hy(N,1,RS),xzo:Hy(N,2,RS)};this.Zx.Hk(N)}; g.J.dI=function(N){var z=new A2(N);N=h2(z,1);var v=h2(z,2);z=h2(z,3);this.Zx.dI(N,v,z)}; g.J.XK=function(N){N=Yw(new A2(N));this.Zx.XK(N)}; g.J.Ik=function(N){N=oN(N,pAO);this.Zx.Ik(N)}; g.J.pD=function(N){N=new A2(N);N={videoId:So(N,1),formatId:Ef(N,2,RS),endTimeMs:kl(N,3),ai1:kl(N,4),mimeType:So(N,5),cR:Ef(N,6,TVK),indexRange:Ef(N,7,TVK),ji:Ef(N,8,Fbu)};this.Zx.pD(N)}; g.J.mR=function(N){N=IAK(new A2(N));this.Zx.mR(N)}; g.J.GV=function(){this.Zx.GV()}; g.J.M$=function(N){N=Anf(new A2(N));this.Zx.M$(N)}; g.J.fD=function(N){N=EUu(new A2(N));this.Zx.fD(N)}; g.J.t_=function(N){N=oUf(new A2(N));this.Zx.t_(N)}; g.J.jA=function(N){N={redirectUrl:So(new A2(N),1)};this.Zx.jA(N)}; g.J.US=function(N){var z=N.getUint8(0);if(N.getLength()!==1){N=N.split(1).EA;var v=this.W[z]||null;v&&A3(this.Zx.Jd,z,v,N)}}; g.J.BS=function(N){N=N.getUint8(0);var z=this.W[N]||null;z&&this.Zx.BS(N,z)}; g.J.aL=function(N){this.Zx.aL(N)}; g.J.FV=function(N){var z=N.mx,v=N.vp,R=N.Fo,C=N.f3,Z=N.SM,Y=N.Pg,Q=N.startMs,L=N.durationMs,K=N.timeRange,l=N.SW,W=N.clipId,G=Aa(N);N=RDU.has(bi[""+N.itag]);this.W[z]=G;this.Zx.u4(G,N,{mx:z,vp:!!v,Fo:R!=null?R:-1,Pg:Y!=null?Y:-1,startMs:Q!=null?Q:-1,durationMs:L!=null?L:-1,SW:l,f3:C,SM:Z,clipId:W,timeRange:K})}; g.J.Mw=function(N){N={cV:kl(new A2(N),1)};this.Zx.Mw(N)}; g.J.K2=function(N){N={cV:kl(new A2(N),1)};this.Zx.K2(N)}; g.J.U7=function(N){this.Zx.U7(N)}; g.J.l4=function(N){N=Gtx(new A2(N));this.Zx.l4(N)}; g.J.C9=function(N){N={Re:Ef(new A2(N),1,VZb)};this.Zx.C9(N)}; g.J.onSnackbarMessage=function(N){N=kl(new A2(N),1);this.Zx.onSnackbarMessage(N)}; g.J.Rk=function(N){N={reloadPlaybackParams:Ef(new A2(N),1,WbY)};this.Zx.Rk(N)};g.y(Fc,g.H);g.J=Fc.prototype;g.J.lQ=function(){return Array.from(this.Xy.keys())}; g.J.DR=function(N){N=this.Xy.get(N);var z=N.Y$;N.VH+=z.getLength();N.Y$=new eo;return z}; g.J.QX=function(N){return this.Xy.get(N).QX}; g.J.iz=function(N){return this.Xy.get(N).iz}; g.J.u4=function(N,z,v,R){this.Xy.get(N)||LM2(this,N,z);z=this.Xy.get(N);if(this.Md){N=lOY(this,N,v);if(R)for(var C=g.f(N),Z=C.next();!Z.done;Z=C.next()){Z=Z.value;var Y=R;Z.Vp=Y;Z.startTime+=Y;Z.N+=Y;Z.G+=Y}KM2(this,v.mx,z,N)}else v.vp?z.t4=v.SW:z.i8.push(v),z.gA.push(v)}; g.J.q$=function(N){var z;return((z=this.Xy.get(N))==null?void 0:z.TU)||[]}; g.J.JD=function(){for(var N=g.f(this.Xy.values()),z=N.next();!z.done;z=N.next())z=z.value,z.pB&&(z.MH&&z.MH(),z.pB=!1)}; g.J.BS=function(N,z){this.logger.debug(function(){return"[onMediaEnd] formatId: "+z}); var v=this.Xy.get(z);if(nY){if(v&&!v.QX){if(v.Gh.get(N))v.Gh.get(N).qZ=!0;else{var R;((R=this.Wc)==null?0:R.J0)&&v.Gh.set(N,{data:new eo,AY:0,qZ:!0})}v.iz=!0}}else v&&!v.iz&&(v.iz=!0)}; g.J.Qi=function(N){if(nY){var z=this.Xy.get(N);if(z)for(var v=g.f(z.Gh),R=v.next();!R.done;R=v.next()){var C=g.f(R.value);R=C.next().value;C=C.next().value;var Z=z.MS.get(R);if(EE(Z[0])){if(!C.qZ)continue;var Y=Z,Q=C.data;Q.getLength();Z=0;var L=[];Y=g.f(Y);for(var K=Y.next();!K.done;K=Y.next()){K=K.value;var l=K.Z,W=ya(Q,Z,l);Z+=l;L.push(new ZC(K,W))}z.BQ.push.apply(z.BQ,g.U(L))}else if(C.data.getLength()>0||!Z[0].range&&C.qZ)Q=void 0,Z=Z[0],L=C.AY,Y=C.data,Z.range||(Q=C.qZ),K=Y.getLength(),Q=new ZC(Kpb(Z, Z.W+L,K,Q),Y),C.AY+=Q.info.Z,z.BQ.push(Q);z.Gh.get(R).data=new eo;C.qZ&&z.Gh.delete(R)}N=this.Xy.get(N);if(!N)return[];z=N.BQ;N.BQ=[];v=g.f(z);for(R=v.next();!R.done;R=v.next())N.VH+=R.value.info.Z;return z||[]}v=(z=this.Xy.get(N))==null?void 0:z.zd;if(!v)return[];this.p4(N,v);return v.Qi()}; g.J.l3=function(N){if(nY)return BK(this,N);var z,v,R;return!!((v=(z=this.Xy.get(N))==null?void 0:z.zd)==null?0:(R=v.F1())==null?0:R.length)||BK(this,N)}; g.J.p4=function(N,z){for(;BK(this,N);){var v=this.DR(N);var R=N;R=this.Xy.get(R).QX&&!U6(this,R);Zm(z,v,R&&QGU(this,N))}}; g.J.AO=function(){g.H.prototype.AO.call(this);for(var N=g.f(this.Xy.keys()),z=N.next();!z.done;z=N.next())ms(this,z.value);var v;if((v=this.Wc)==null?0:v.v2)for(N=g.f(this.Xy.values()),z=N.next();!z.done;z=N.next())z=z.value,z.Gh.clear(),z.MS.clear(),z.BQ.length=0,z.TU.length=0,z.gA.length=0,z.i8.length=0;this.Xy.clear()}; var nY=!1;g.y(gD,g.H);g.J=gD.prototype;g.J.G3=function(){!this.HL()&&this.xhr&&(this.p4(!1),o4(this.Zx,this))}; g.J.f1=function(){}; g.J.qQ=function(){if(!this.HL()&&this.xhr){var N=this.mG();N===5?Qc(this.Cb):this.lF(N);this.Cb.W.stop();var z;(z=this.gN)==null||z.stop()}}; g.J.mG=function(){var N="";KY(this.Cb,this.xhr)&&(N=gwI(this.Cb,this.xhr));if(N)return this.info.KV.rG(this.Pc,N),3;this.p4(!0);if(LY(this.Cb,this.xhr.status,this.xhr.qG(),this.info.kM(),this.AS))return 5;if(this.HF)return 3;Bk2(this.Cb,this.xhr.GF(),0,this.kM());this.policy.Dx&&YY_(this.Zx);return 4}; g.J.p4=function(N){var z=this.xhr;if((N||!KY(this.Cb,this.xhr))&&z.BW()){N=z.CC();var v=N.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+v}); this.TD.feed(N)}}; g.J.Vc=function(N,z){this.xhr.zX()&&N===21&&Jab(this);this.s0.Vc(N,z)}; g.J.RY=function(N,z,v,R){v||(this.k8.RY(R),this.policy.Xe&&N===21&&Jab(this));if(N!==21)return!1;this.k8.qd=!0;N=z.getLength();v||(this.PC=z.getUint8(0),z=z.split(1).EA);var C=this.policy.YY,Z=this.s0.W[this.PC],Y=this.Md.Z.get(Z);if(C&&Y&&(C*=Y.info.i$,N+v!==R&&N0){this.policy.Jx&&this.Cb.W.stop();N=this.k8.Vb();z=this.k8.tN();var v=yaf(this,N);if(!(z>v.s$||v.ih>0&&this.info.Oy()>v.ih)){this.yw=(0,g.I)();var R;(R=this.gN)==null||R.stop();this.policy.Dx&&(R=this.Zx,N={KN:Math.round(z*N/1E3),pC:N},R.policy.Dx&&(R.K0=N,R.Di++));this.ZZ()}}}}; g.J.ZZ=function(){this.Cb.ZZ()}; g.J.t_=function(N){this.Zx.t_(N,this.aR())}; g.J.jA=function(N){this.HF=!0;this.info.KV.rG(this.Pc,N.redirectUrl)}; g.J.Mw=function(N){this.k8 instanceof dD&&this.k8.Mw(N)}; g.J.K2=function(N){this.k8 instanceof dD&&this.k8.K2(N)}; g.J.pD=function(N){var z=N.formatId,v=Aa({itag:z.itag,lmt:z.lmt,xtags:z.xtags}),R,C,Z=new pw(((R=N.cR)==null?void 0:R.first)||0,((C=N.cR)==null?void 0:C.xE)||0),Y,Q;R=new pw(((Y=N.indexRange)==null?void 0:Y.first)||0,((Q=N.indexRange)==null?void 0:Q.xE)||0);if(!this.Md.Z.get(v)){v=N.ji||{};if(this.policy.sX){var L,K;N=(L=N.mimeType)!=null?L:"";L=(K=z.itag)!=null?K:0;K=bi[""+L];v.mimeType=K!=="9"&&K!=="9h"?N:'video/webm; codecs="'+["vp09",K==="9h"?"02":"00","51",K==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else v.mimeType=N.mimeType;v.itag=z.itag;v.lastModified=""+(z.lmt||0);v.xtags=z.xtags;z=this.Md;K=Fn("");L=sg(v,null);xF(z,new lz(K,L,Z,R))}}; g.J.XK=function(N){this.Zx.XK(N)}; g.J.onSnackbarMessage=function(N){if(this.policy.u1)this.Zx.onSnackbarMessage(N)}; g.J.U7=function(N){this.Op=N;this.iA=(0,g.I)();this.Zx.U7(N)}; g.J.dI=function(N,z,v){this.Zx.dI(N,z,v)}; g.J.mR=function(N){N.scope===2&&(this.nB=N);this.Zx.mR(N)}; g.J.GV=function(){this.jh=!0;this.Zx.GV()}; g.J.Hk=function(N){this.policy.RR&&this.Zx.Hk(N)}; g.J.Ik=function(N){this.Zx.Ik(N,this.aR())}; g.J.l4=function(N){N.o8===3&&(this.AS=!0);this.Zx.l4(N)}; g.J.C9=function(N){this.Zx.C9(N)}; g.J.Rk=function(N){this.Zx.Rk(N)}; g.J.canRetry=function(){this.HL();return this.Cb.canRetry(!1)}; g.J.dispose=function(){if(!this.HL()){g.H.prototype.dispose.call(this);this.Cb.dispose();var N;(N=this.gN)==null||N.dispose();this.lF(-1);this.v9()}}; g.J.lF=function(N){this.state=N;o4(this.Zx,this)}; g.J.kM=function(){return this.info.kM()}; g.J.X0=function(){return this.jh}; g.J.pL=function(){return this.nB}; g.J.u4=function(N,z,v){v.clipId&&(this.clipId=v.clipId);this.policy.Z&&!z&&(this.j$=v.Pg);this.Jd.u4(N,z,v,0);if(this.policy.T0&&this.Op&&this.k8 instanceof Xq){var R=this.Op.PU;this.k8.u4(v.durationMs/1E3,z,R>0&&v.Pg+1>=R)}this.Jd.Xy.get(N).hV=!0}; g.J.BS=function(N,z){this.Jd.BS(N,z)}; g.J.aL=function(N){this.requestIdentifier=N}; g.J.Qi=function(N){return this.Jd.Qi(N)}; g.J.q$=function(N){return this.Jd.q$(N)}; g.J.l3=function(N){return this.Jd.l3(N)}; g.J.lQ=function(){return this.Jd.lQ()}; g.J.Tb=function(){return 1}; g.J.aR=function(){return this.k8.requestNumber}; g.J.cY=function(){return this.requestIdentifier}; g.J.IP=function(){return this.Pc.IP()}; g.J.fP=function(){this.v9()}; g.J.v9=function(){this.k8.deactivate();var N;(N=this.xhr)==null||N.abort()}; g.J.isComplete=function(){return this.state>=3}; g.J.h4=function(){return this.state===3}; g.J.M4=function(){return this.state===5}; g.J.yd=function(){return this.state===4}; g.J.Vd=function(){return this.isComplete()}; g.J.Aa=function(){return this.state>=1}; g.J.Dn=function(){return this.policy.yh?this.Cb.Dn():0}; g.J.xk=function(){this.policy.yh&&o4(this.Zx,this)}; g.J.Ud=function(){return o1f(this.info)}; g.J.Xk=function(){return this.Cb.Xk()}; g.J.nf=function(){var N=p7m(this.Cb);Object.assign(N,buf(this.info));N.req="sabr";N.rn=this.aR();var z;if((z=this.xhr)==null?0:z.status)N.rc=this.policy.V6?this.xhr.status:this.xhr.status.toString();var v;(z=(v=this.xhr)==null?void 0:v.VX())&&(N.msg=z);this.yw&&(v=yaf(this,this.yw-this.k8.Lk()),N.letm=v.FT,N.mrbps=v.s$,N.mram=v.ih);return N};fOm.prototype.tick=function(N,z){this.ticks[N]=z?window.performance.timing.navigationStart+z:(0,g.I)()};g.y(kd,g.jJ);g.J=kd.prototype; g.J.iy=function(N,z,v,R){if(this.policy.zS&&this.policy.Z){var C=N.U9||null;C?(VAu(this,N.cL,h3(this,N.startTime,N.cL),{U9:C,cL:N.cL,o9:!!z,yO:v},this.Z),R&&this.Z&&this.Z.SE(N.cL,N.startTime,this.W,(z==null?void 0:z.V)||[],(z==null?void 0:z.W)||[],(z==null?void 0:z.Z)||[],v,(z==null?void 0:z.T$)||0,(z==null?void 0:z.N)||void 0)):this.W===1&&Vc(this,5,"noad")}else{var Z=!1;this.policy.Z&&(Z=v?this.K0===N.cL:this.PL===N.cL);if(this.Z&&R&&!Z){R=[];Z=[];var Y=[],Q=void 0,L=0;z&&(R=z.V,Z=z.W,Y=z.Z,Q= z.N,L=z.T$,this.WL("sdai",{sq:N.cL,ssvicpns:R.join("."),ssvid:Z.join(".")}));this.policy.Z&&(v?this.K0=N.cL:this.PL=N.cL);this.Z.SE(N.cL,N.startTime,this.W,R,Z,Y,v,L,Q)}this.policy.Z?v&&(this.W===1&&Vc(this,5,"noad"),N.cL!==((C=this.V)==null?void 0:C.cL)&&(pvx(this,N,z,v),isNaN(N.startTime)||kgu(this,N.cL,h3(this,N.startTime,N.cL),!!z,this.Z))):v&&pvx(this,N,z)}}; g.J.uh=function(N,z,v){var R=this.videoTrack.V.index.YH()<=z;this.V={U9:N,cL:z,o9:v};R&&PK(this,N,z)}; g.J.DU=function(){this.Z&&this.Z.DU()}; g.J.WL=function(N,z,v){(N!=="sdai"||this.policy.dK||(v===void 0?0:v))&&this.loader.WL(N,z)}; g.J.j3=function(N,z){var v=this.videoTrack.V.index.vP(N);if(v>=0){var R;var C=((R=z.yy.Tt(v,2))==null?void 0:R.sI)||"";if(this.policy.Z||C)return z.qD(N,v),Sa(this.loader,N,N,v),this.WL("sdai",{cmskpad:1,t:N.toFixed(3),sq:v}),!0}this.WL("sdai",{cmskpad:0,t:N.toFixed(3),sq:v});return!1};g.y(bx,g.H);bx.prototype.Gb=function(N,z,v){v=v===void 0?{}:v;this.policy.Ai=Eg(N,v,this.N,z===void 0?!1:z)};rD.prototype.vN=function(N){var z=this;if(this.policy.Mk){var v=new Set(N);v.size===this.Rd.size&&[].concat(g.U(v)).every(function(R){return z.Rd.has(R)})||(this.loader.WL("lwnmow",{itagDenylist:[].concat(g.U(N)).join(",")}),this.loader.rh(!!v.size),this.J=-1,this.Rd=v,ux(this,this.V),this.BL=!0)}}; rD.prototype.Gb=function(N,z,v){v=v===void 0?{}:v;var R=this.policy.Ai;this.B.Gb(N,z===void 0?!1:z,v);if(R!==this.policy.Ai){ux(this,this.V);cK(this);var C,Z;R>this.policy.Ai&&((C=this.Z)==null?0:rp(C.info))&&((Z=this.nextVideo)==null||!rp(Z.info))&&(this.qd=!0)}};Ne.prototype.bK=function(N){this.timestampOffset=N;this.flush()}; Ne.prototype.flush=function(){if(this.V.pos>0){var N={a:this.track.bI(),u:this.V.Jy(),pd:Math.round(this.N),ad:Math.round(this.Z)},z=this.W;if(z){var v=z.V.info;N.itag=v.itag;v.V&&(N.xtags=v.V);N.sq=z.cL;N.st=z.startTime;N.sd=z.duration;this.track.policy.MJ&&(N.si=z.z4());z.B&&(N.esl=z.W+z.Z);z.Rq()&&(N.eos=1)}isNaN(this.timestampOffset)||(N.to=this.timestampOffset);var R;if(z=(R=this.track.Mu)==null?void 0:R.TE({})){for(var C in z)this.G[C]!==z[C]&&(N["sb_"+C]=z[C]);this.G=z}this.track.WL("sbu", N);this.V.reset();this.buffered=[];this.B=this.Z=this.N=0;this.timestampOffset=this.W=void 0}};vt.prototype.dispose=function(){this.Vp=!0}; vt.prototype.HL=function(){return this.Vp}; g.y(aQ,Error);Kl.prototype.skip=function(N){this.offset+=N}; Kl.prototype.cZ=function(){return this.offset};g.J=TB7.prototype;g.J.M7=function(){return this.W}; g.J.Wg=function(){return this.W.length?this.W[this.W.length-1]:null}; g.J.No=function(){this.W=[];e2(this);Gq(this)}; g.J.DR=function(N){this.UT=this.W.shift().info;N.info.equals(this.UT)}; g.J.q$=function(){return g.OL(this.W,function(N){return N.info})}; g.J.bI=function(){return!!this.G.info.audio}; g.J.isDrm=function(){return!!this.G.info.CG}; g.J.getDuration=function(){return this.G.index.fE()};g.y(kY,qO);g.J=kY.prototype;g.J.onStateChange=function(){this.HL()&&($d(this.Jd,this.formatId),this.V.dispose())}; g.J.nf=function(){var N=aOu(this.Jd,this.formatId),z;var v=((z=this.Jd.Xy.get(this.formatId))==null?void 0:z.bytesReceived)||0;var R;z=((R=this.Jd.Xy.get(this.formatId))==null?void 0:R.VH)||0;return{expected:N,received:v,bytesShifted:z,sliceLength:U6(this.Jd,this.formatId),isAnyMediaEndReceived:this.Jd.iz(this.formatId)}}; g.J.zH=function(){return 0}; g.J.WQ=function(){return!0}; g.J.Qi=function(){return this.Jd.Qi(this.formatId)}; g.J.F1=function(){return[]}; g.J.l3=function(){return this.Jd.l3(this.formatId)}; g.J.Xk=function(){return this.lastError}; g.J.Dn=function(){return 0};g.y(dj,g.H);g.J=dj.prototype;g.J.bI=function(){return!!this.V.info.audio}; g.J.Wg=function(){return this.N.Wg()}; g.J.DR=function(N){this.N.DR(N);var z;(z=this.Y)!=null&&(z.B.add(N.info.cL),z.V=Obu(z,z.gH,z.u3,N,z.V),z.Z=N,z.G=(0,g.I)());this.i$=Math.max(this.i$,N.info.V.info.i$||0)}; g.J.getDuration=function(){return this.V.index.fE()}; g.J.No=function(){Vo(this);this.N.No()}; g.J.Ni=function(){return this.N}; g.J.isRequestPending=function(N){return this.Z.length?N===this.Z[this.Z.length-1].info.TU[0].cL:!1}; g.J.bK=function(N){var z;(z=this.Y)==null||z.bK(N);var v;(v=this.J)==null||v.bK(N)}; g.J.WL=function(N,z){this.loader.WL(N,z)}; g.J.C8=function(){return this.loader.C8()}; g.J.dispose=function(){var N;(N=this.J)==null||N.flush();g.H.prototype.dispose.call(this)};g.y(tZ,g.H);tZ.prototype.Z=function(){this.W++>15||(this.V=!this.V,new Kdm(this.loader,this.policy,this.bF,this.KV,this.V),this.delay.start())}; g.J=Kdm.prototype;g.J.f1=function(){}; g.J.G3=function(){}; g.J.qQ=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.GF()===this.size)this.loader.WL("rqs",this.getInfo());else{var N="net.connect";this.xhr.status>200?N="net.badstatus":this.xhr.i4()&&(N="net.closed");this.onError(N)}}; g.J.onError=function(N){var z=this;this.loader.handleError(N,this.getInfo());ns("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(v){z.loader.WL("pathprobe",v)},function(v){z.loader.handleError(v.errorCode,v.details)})}; g.J.getInfo=function(){var N=this.timing.Bm();N.shost=B7(this.location.LO);N.pb=this.size;return N};g.y(OM,g.H); OM.prototype.L=function(N,z){if(N.L){this.Md.isLive?(N=this.Md.PH&&this.Md.N?N.V.zq(this.Md.PH,!1):N.V.mz(Infinity),N.AJ=this.AJ):N=N.V.zq(0,!1);if(this.qd){var v=this.qd;N.AJ===0&&(N.B=v.Y)}else N.B=this.J;return N}v=N.W;if(!v.V.eN())return v.V.MC()?(N=Uz(this.B,N.V.info.i$,z.V.info.i$,0),N=g.h(v.V.jH(v,N))):N=g.h(v.V.Wd(v)),N;var R=v.G-this.loader.getCurrentTime(),C=!v.range||v.Z===0&&v.W===0?0:v.range.length-(v.W+v.Z),Z=v.V;this.Ch(N,R)&&C===0&&(this.Md.isManifestless?Z=N.V:(Z=v.startTime+N1u, v.Z&&(Z+=v.duration),hp(N,Z),v=N.W,Z=v.V));Z.MC()?(C=this.Z,z=Uz(this.B,Z.info.i$,z.V.info.i$,R,C.N.length>0&&C.Y===0&&this.loader.aY),R=S2(N),N=g.h(v.V.jH(v,z)),(z=N.Z)&&N.TU.length>1&&(R||N.KV.Z||N.TU[0].V!==v.V?N=g.h(v.V.jH(v,N.TU[0].Z)):(R=N.TU[N.TU.length-1],Z=R.Z/z,!R.B&&Z<.4&&(N=g.h(v.V.jH(v,z-R.Z)))))):(v.cL<0&&(z=DO(v),z.pr=""+N.Z.length,this.loader.isSeeking()&&(z.sk="1"),z.snss=v.Y,this.loader.WL("nosq",z)),N=g.h(Z.Wd(v)));if(this.policy.K0)for(v=g.f(N.TU),z=v.next();!z.done;z=v.next())z.value.type= 6;return N}; OM.prototype.Ch=function(N,z){if(!S2(N)||!N.V.eN())return!1;var v=this.Z.BL||qg2(N)||z<=this.policy.LJ||this.Z.qd;this.logger.debug(function(){return"ready to adapt: "+v+", upgrade pending: "+qg2(N)+", health: "+z}); return v}; OM.prototype.AO=function(){g.H.prototype.AO.call(this)}; var N1u=2/24;g.y(ct,g.H);ct.prototype.E$=function(N,z,v){var R;var C=((R=this.W)==null?void 0:R.reason)==="m"?"m":this.W&&ARY(this,this.W)?this.W.reason:"a";this.loader.E$(new Dm(N,C,v));rj(this.loader,z,N,!0)}; ct.prototype.MK=function(N,z){for(var v=g.f(this.K0),R=v.next();!R.done;R=v.next())if(R=R.value,R.id===N)return this.Wc.ip||(this.Z=[R]),this.B=this.Md.V[N],ea(this.Wc)&&(this.qd=!0),N=new Dm(this.B,z?"t":"m"),z&&(this.Y=!0),N;this.Z=[];return null}; ct.prototype.Gb=function(N,z,v){v=v===void 0?{}:v;this.V.Gb(N,z===void 0?!1:z,v)};Me.prototype.setData=function(N,z,v){var R=this;v=v===void 0?{}:v;if(z==null?0:z.zE)this.zx=e7u(this,z,v),N.R7=this.KV.R7();if(this.kM())return!0;this.data=N;this.V=h17(N,function(C,Z){var Y;(Y=R.Zx)==null||Y.oz(C,Z)},z==null?void 0:z.W); if(!this.V)return!1;this.W=g.uI(this.V,yn_);return!0}; Me.prototype.kM=function(){return this.requestType===1}; Me.prototype.Oy=function(){var N;return((N=this.Zx)==null?void 0:N.Oy())||0}; Me.prototype.isDecorated=function(){var N;return!((N=this.data)==null||!N.f4)};wj.prototype.encrypt=function(N){this.WH.exports.AES128CTRCipher_encrypt(this.cipher,N.byteOffset,N.byteLength);return N}; wj.prototype.HL=function(){return this.cipher===0}; wj.prototype.dispose=function(){this.WH.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};NF.prototype.encrypt=function(N,z){return Kb(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:z},this.key,N).catch(function(v){return Promise.reject(v.name+": "+v.message)}).then(function(v){return new Uint8Array(v)}))}; NF.prototype.HL=function(){return this.V}; NF.prototype.dispose=function(){this.V=!0}; zs.prototype.encrypt=function(N,z){return Kb(this.W(N,z))}; zs.prototype.W=function(N,z){e4(this.Z,z);return this.Z.encrypt(N)}; zs.prototype.HL=function(){return this.V}; zs.prototype.dispose=function(){this.V=!0}; v8.prototype.encrypt=function(N,z){return Kb(this.W(N,z))}; v8.prototype.W=function(N,z){z=this.WH.Ox(z);var v=this.V;v.WH.exports.AES128CTRCipher_setCounter(v.cipher,z.byteOffset);this.WH.free(z.byteOffset);z=this.WH.Ox(N);this.V.encrypt(z!=null?z:N);return z?this.WH.XA(z):N}; v8.prototype.HL=function(){return this.V.HL()}; v8.prototype.dispose=function(){this.V.dispose()}; sG.NO(NF,{encrypt:Ou_("oan2")});sG.NO(zs,{encrypt:Ou_("oap")});sG.NO(v8,{encrypt:Ou_("oalw")});R4.prototype.encrypt=function(N,z){var v=this,R=ls("");N.length<=this.OM&&this.V&&!this.B&&(R=ev(R,function(){return v.V?v.V.encrypt(N,z):ls("wasm unavailable")})); N.length<=this.MA&&(this.V&&this.B&&(R=ev(R,function(){return v.V?v.V.encrypt(N,z):ls("wasm unavailable")})),R=ev(R,function(){return rRb(v,N,z)})); return ev(ev(R,function(){return u2U(v,N,z)}),function(){return rRb(v,N,z)})}; R4.prototype.W=function(N,z){if(this.V)return this.V.W(N,z);this.Z||(this.Z=new zs(this.key));return this.Z.W(N,z)}; R4.prototype.HL=function(){return this.G}; R4.prototype.dispose=function(){this.G=!0;var N;(N=this.N)==null||x0(N,g.Lc);g.Lc(this.V);g.Lc(this.Z)};CR.prototype.encrypt=function(N){(0,g.I)();return(new g.sU(this.V.V)).encrypt(N,this.iv)}; CR.prototype.decrypt=function(N,z){(0,g.I)();return(new g.sU(this.V.V)).decrypt(N,z)}; CR.prototype.HL=function(){return this.Z}; CR.prototype.dispose=function(){this.Z=!0;g.Lc(this.W)};g.y(ZU,g.H);ZU.prototype.Z=function(N,z){if(z){z=z instanceof g.$w?z:YI(this,z);var v;((v=this.V.get(N))==null?void 0:B7(v.location))!==B7(z)&&this.V.set(N,new ZWu(z,N))}else this.V.delete(N)}; ZU.prototype.load=function(){var N=this,z,v,R,C,Z,Y,Q,L,K,l;return g.S(function(W){switch(W.W){case 1:z=N.V.get(0);g.d_(W,2);var G;if(G=z&&!N.W)G=B7(z.location),G=N.W===a5(G);if(G){W.Zp(4);break}return g.k(W,RvU(N,N.W?2:0),5);case 5:if(v=W.V)N.Z(0,v),gk(v)&&N.Z(1,pf(v));case 4:g.nO(W,3);break;case 2:R=g.U2(W);g.PN(R);if(!N.W){W.Zp(3);break}N.W=!1;return g.k(W,N.load(),7);case 7:return W.return();case 3:if(!N.iS.experiments.j8("html5_onesie_probe_ec_hosts")){W.Zp(0);break}g.d_(W,9);C=N;Z=C.Z;Y=3;return g.k(W, RvU(N,1),11);case 11:return Z.call(C,Y,W.V),Q=N,L=Q.Z,K=4,g.k(W,RvU(N,2),12);case 12:L.call(Q,K,W.V);g.nO(W,0);break;case 9:l=g.U2(W),g.PN(l),g.fO(W)}})}; ZU.prototype.L=function(){var N=this,z,v;return g.S(function(R){g.qv(N.Y);z=g.LM(N.iS.experiments,"html5_onesie_prewarm_max_lact_ms");if(mB()>=z)return R.return();(v=N.V.get(0))&&vNO(N,v);g.fO(R)})}; var Niu={gvT:0,ByO:1,P3p:2,M3S:3,oKd:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};jmK.prototype.decrypt=function(N){var z=this,v,R,C,Z,Y,Q;return g.S(function(L){switch(L.W){case 1:if(YsY(z))return L.return();z.W=!0;z.EJ.jK("omd_s");v=new Uint8Array(16);fS()?R=new g.dC(N):C=new g.sU(N);case 2:if(!z.V.length||!z.V[0].isEncrypted){L.Zp(4);break}Z=z.V.shift();if(!R){Y=C.decrypt(Z.buffer.Na(),v);L.Zp(5);break}return g.k(L,R.decrypt(Z.buffer.Na(),v),6);case 6:Y=L.V;case 5:Q=Y;iWu(v);var K=z.EJ,l=Z.videoId,W=Z.mx,G=Z.formatId,x=new eo([Q]),e;(e=jh(K.kH,l))==null||A3(e,W,G,x);L.Zp(2); break;case 4:z.EJ.jK("omd_c"),a4(z),z.W=!1,z.EJ.n3(),g.fO(L)}})}; jmK.prototype.enqueue=function(N,z,v,R,C){this.V.push({videoId:N,mx:z,formatId:v,buffer:R,isEncrypted:C});this.W||a4(this)};var JKf=!!Uint8Array.prototype.copyWithin,Qv=[],aMI=[],KOU=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],KR=[],LR=[],lB=[],QmY=[];Gs.prototype.RA=function(N){return g.evO(new g.LOI(N))}; Gs.prototype.Cq=function(N){function z(Y){if(!Y.done)return Z.append(Y.value),C.read().then(function(Q){return z(Q)})} if(!("DecompressionStream"in window))return ls("native decompression unavailable");var v=new DecompressionStream("gzip"),R=v.writable.getWriter();R.write(N).then(function(){return R.close()}); var C=v.readable.getReader(),Z=new eo([]);return ev(x0(x0(Kb(C.read()),z),function(){return Z.Na()}),function(Y){return ls(Y.message)})}; Gs.prototype.G1=function(N,z){var v=void 0,R=z.Ox(N);R&&(v=R.byteOffset,N=R);R=z.exports.getInflatedSize(N.byteOffset,N.length);if(R===0)return ls("bad compressed input");var C=z.malloc(R);if(z.exports.inflateGzip(N.byteOffset,N.length,C))return z.free(C),ls("inflateGzip failed");v&&z.free(v);return Kb(new Uint8Array(z.exports.memory.buffer,C,R))}; sG.NO(Gs,{RA:function(N){return{profile:"gzjb",RM:Math.ceil(N.byteLength/16)}}, Cq:function(N){return{profile:"gznb",RM:Math.ceil(N.byteLength/16)}}, G1:function(N){return{profile:"gzwb",RM:Math.ceil(N.byteLength/16)}}});g.y(FOO,s6);g.J=FOO.prototype;g.J.n3=function(){this.kH.n3()}; g.J.GK=function(N,z){switch(N){case 10:var v=oN(z,$tY);N=v.MLU;var R=!1;switch(N){case 0:this.Z=!v.DM.cA;this.iv=v.DM.iv;break;case 2:break;case 23:var C=this.kH;v=v.O0O;C.jK("omp_r");v.videoId&&(C.YP=v.videoId);C.YP!==C.videoData.videoId&&(C.videoData.kaO=C.YP,C.WL("ompp","vid."+C.YP));C.QV=!0;break;case 24:v=this.kH;v.jK("omp_c");v.QV=!1;v.O4=!1;var Z=(C=v.OD)==null?void 0:C.get(v.YP);v.notifySubscribers(v.YP);Z!=null&&(Z.V=!0);Jy(v);break;default:R=!0}this.kH.HZ&&this.kH.WL("ombup","id.10;pt."+ N+";len."+z.getLength()+(R?";ignored.1":""));this.N=N;break;case 11:$Nf(this,z);break;case 12:this.US(z,!0);break;case 37:z=oN(z,UtY);(z.iB||z.eO)&&z.videoId&&this.kH.W_.set(z.videoId,z);break;case 60:this.MR(z);break;case 47:this.X("html5_server_playback_start_policy")&&(z=oN(z,pAO),this.kH.playbackStartPolicy=z);break;case 35:this.M$(z);break;case 45:this.XK(z);break;case 66:this.C9(z);break;default:this.kH.HZ&&this.kH.WL("ombup","id."+N+";len."+z.getLength()+";ignored.1")}}; g.J.U7=function(N){this.kH.U7(N)}; g.J.MR=function(N){N=oN(N,Zq);this.kH.MR(N)}; g.J.XK=function(N){N=oN(N,Yw);this.kH.XK(N)}; g.J.FV=function(N){var z=N.mx,v=N.vp,R=N.Fo,C=N.SM,Z=N.Pg,Y=N.startMs,Q=N.durationMs,L=N.timeRange,K=N.SW,l=Aa(N),W=RDU.has(bi[""+N.itag]);v&&this.jK(W?"oais_r":"ovis_r");var G=this.V[l]!==void 0;this.kH.HZ&&this.kH.WL("ombup","id.20;hid."+z+";fid."+l);var x=N.videoId||"";this.W[z]=l;this.B[z]=x;G||(this.V[l]={videoId:x,nk:!1,bI:W,headers:[]});this.V[l].headers.push(N);this.kH.u4(x,l,W,{mx:z,vp:!!v,Fo:R!=null?R:-1,Pg:Z!=null?Z:-1,startMs:Y!=null?Y:-1,durationMs:Q!=null?Q:-1,SW:K!=null?K:0,SM:C,timeRange:L})}; g.J.US=function(N,z){var v=N.getUint8(0);this.kH.HZ&&this.kH.WL("ombup","id."+(z?12:21)+";len."+N.getLength()+";hid."+v);if(N.getLength()!==1){N=N.split(1).EA;var R=this.W[v]||null,C=this.B[v]||"";R&&(this.CU(this.V[R].bI?"oafs_r":"ovfs_r"),this.queue.enqueue(C,v,R,N,z))}}; g.J.BS=function(N){var z=N.getUint8(0);this.kH.HZ&&this.kH.WL("ombup","id.22;len."+N.getLength()+";hid."+z);N=this.W[z]||null;var v=this.B[z]||"";if(N)if(this.X("html5_use_ump_request_slicer")){var R=this.queue;R.V.push({videoId:v,mx:z,formatId:N,isEncrypted:!1,fK:!0});R.W||a4(R)}else this.kH.BS(v,z,N)}; g.J.aL=function(N){this.kH.aL(N)}; g.J.oh=function(N,z){var v=this,R,C,Z,Y,Q,L,K,l,W,G;return g.S(function(x){switch(x.W){case 1:v.kH.oh();R=N.Na();if(!z){Z=R;x.Zp(2);break}return g.k(x,hv_(v.kH,R,v.iv),3);case 3:Z=x.V;case 2:C=Z;if(!v.kH.enableCompression){x.Zp(4);break}Q=(Y=performance)==null?void 0:Y.now();return g.k(x,yKv(C),5);case 5:C=x.V,v.kH.WL("decompression",{ds:"DecompressionStream"in window,rt:((L=performance)==null?NaN:L.now())-Q});case 4:try{K=oN(C,lAO)}catch(e){return l=e instanceof Error?{name:e.name,message:e.message}: {},l.webcrypto=""+ +!!fS(),l.enc=""+ +v.Z,W=new mT("onesie.response.parse",l),x.return(Promise.reject(W))}Tim(K);G=g.mC(K.body);return x.return(G)}})}; g.J.M$=function(N){this.X("html5_consume_onesie_next_request_policy_for_sabr")&&(N=oN(N,Anf),this.kH.M$(N))}; g.J.C9=function(N){N={Re:Ef(new A2(N),1,VZb)};this.kH.C9(N)}; g.J.jK=function(N){this.kH.jK(N)}; g.J.CU=function(N){return this.kH.CU(N)}; g.J.X=function(N){return this.kH.X(N)};g.y(eh,g.H);g.J=eh.prototype;g.J.lQ=function(N){var z,v;return((v=(z=this.OD)==null?void 0:z.get(N))==null?void 0:v.lQ())||[]}; g.J.l3=function(N,z){var v;return!((v=jh(this,z))==null||!v.l3(N))}; g.J.Qi=function(N,z){var v;return((v=jh(this,z))==null?void 0:v.Qi(N))||[]}; g.J.q$=function(N,z){var v;return((v=jh(this,z))==null?void 0:v.q$(N))||[]}; g.J.lF=function(N){this.state=N;this.notifySubscribers()}; g.J.kM=function(){return!1}; g.J.X0=function(){return!1}; g.J.pL=function(){}; g.J.jK=function(N){this.kT.jK(N)}; g.J.CU=function(N){return this.kT.CU(N)}; g.J.RY=function(N,z,v,R){v||this.k8.RY(R);return!1}; g.J.Vc=function(N,z){this.EJ.Vc(N,z)}; g.J.tF=function(){this.jK("orfb");this.Jn=!0;if(HWO(this)&&this.xhr){var N={rc:this.xhr.status,lb:this.xhr.GF(),rt:(1E3*aqm(this.k8)).toFixed(),shost:g.nt(this.il),trigger:"o1"};this.WL("pathprobe",n_(N))}}; g.J.oh=function(){this.jK("opr_r");this.gs=!0}; g.J.u4=function(N,z,v,R){if(this.OD){if(!this.OD.has(N)){var C=new Fc(this);this.OD.set(N,C);g.b(this,C)}var Z;(Z=this.OD.get(N))==null||Z.u4(z,v,R);Jy(this);v||(this.j$=R.Pg)}else Jy(this)}; g.J.U7=function(N){this.qN=N;N.AB!=null&&this.kT.O3(N.AB)}; g.J.MR=function(N){this.FE=N}; g.J.M$=function(N){N.videoId&&this.lm.set(N.videoId,N)}; g.J.n3=function(){if(this.OD)for(var N=g.f(this.OD.keys()),z=N.next();!z.done;z=N.next()){var v=void 0;(v=this.OD.get(z.value))==null||v.JD()}}; g.J.XK=function(N){this.XS=N}; g.J.C9=function(N){if(N==null?0:N.Re)if(N=N.Re.VY){N=g.f(N);for(var z=N.next();!z.done;z=N.next())z=z.value,z.videoId&&this.Dg.set(z.videoId,z)}}; g.J.WL=function(N,z,v){this.kT.WL(N,z,v===void 0?!1:v)}; g.J.BS=function(N,z,v){var R;(R=jh(this,N))==null||R.BS(z,v)}; g.J.aL=function(N){this.NK.set(N.videoId,N)}; g.J.fetch=function(){var N=this,z,v,R,C,Z,Y,Q,L,K,l,W,G,x,e,d,T,m,n,P,V,D;return g.S(function(c){switch(c.W){case 1:N.logger.debug("Onesie fetch started.");N.Ty?N.lC.start():N.X1.start();N.jK("or_i");z=N.iS.experiments.j8("html5_onesie_verbose_timing");v={};R=(0,g.I)();C=function(r){z&&(v[r]=(0,g.I)()-R)}; C("loc_s");if(Z=Bi_(N.videoData,N.qO)){c.Zp(2);break}C("loc_async");Y=g.LM(N.iS.experiments,"html5_onesie_redirector_timeout_ms");return g.k(c,AK_(N.videoData,N.qO,Y),3);case 3:Z=c.V;case 2:if(!Z)return N.logger.info("Onesie URL creation failed."),Q={url:"0"},L=new mT("onesie.unavailable.hotconfig",Q),N.So(L),c.return(N.kC);N.zx=B7(Z);C("loc_e");K=g.CW(N.iS,g.hf(N.videoData));l=!!K.V;if(!l){W=K.getValue();c.Zp(4);break}return g.k(c,K.V,5);case 5:W=c.V;case 4:G=W;N.X("html5_log_onesie_empty_oauth")&& !G&&N.WL("no_token",{async:l});C("oauth");x=p3Y(N.playerRequest,N.iS,N.videoData,G,a5(N.zx));g.d_(c,6);if(!EN7(N,x)){C("or_s_sync");N.ra=PT7(x,N.Wi,N.iS,N.kT,N.Az.onesieUstreamerConfig,(e=N.videoData.nD)==null?void 0:e.Hg);c.Zp(8);break}C("or_s_async");return g.k(c,SsU(x,N.Wi,N.iS,N.kT,N.Az.onesieUstreamerConfig,(d=N.videoData.nD)==null?void 0:d.Hg),9);case 9:N.ra=c.V;case 8:g.nO(c,7);break;case 6:return T=g.U2(c),N.logger.info("Failed to create OnesieRequestProto."),N.So(T),c.return(N.kC);case 7:return C("or_e"), z&&N.WL("oreqvt",v),N.enableCompression=N.ra.WJ.I$,N.jK("osor"),m=jWu(),n=g.uI(N.ra,uuu),P={method:"POST",body:n,headers:{"Content-Type":"text/plain",Referer:location.origin}},V=N.X("html5_onesie_media_capabilities"),gN_(Z,N.videoData,DNu(N),V),N.logger.debug("Starting Onesie network request."),N.HZ&&N.WL("ombrs","1"),D=N.kT.D().schedule,N.k8=new Xq(N,{bF:D,lV:N.HZ,E7:function(r,Rv){N.kT.vk(r,Rv)}, CX:!0}),Z.set("rn",""+N.k8.requestNumber),N.il=Z.IP(),Ip(N.k8,N.il),N.jK("or_p"),N.xhr=R5(new fw(Z),m,N.k8,N9,P),N.B7.start(),c.return(N.kC)}})}; g.J.Tb=function(){return 2}; g.J.f1=function(){this.jK("orh_r")}; g.J.G3=function(){!this.Jn&&this.xhr.GF()&&this.tF();if(this.RQ&&!this.Ty){var N;(N=this.Pf)==null||N.start()}this.p4()}; g.J.qQ=function(N){N=N===void 0?!1:N;this.logger.debug("onXhrDone");this.p4();if(!(this.HL()||this.state>=4)){var z=xI(this),v=this.xhr;z.rc=v.status;N&&(z.ab=!0);if(v.VX()){var R="onesie.net";z.msg=v.VX()}else v.status>=400?R="onesie.net.badstatus":v.qG()?this.gs||(R="onesie.response.noplayerresponse"):R=v.status===204?"onesie.net.nocontent":"onesie.net.connect";R?this.So(new mT(R,z)):(this.jK("or_fs"),this.k8.OS((0,g.I)(),v.GF(),0),this.lF(4),this.HZ&&this.WL("rqs",z));this.HZ&&this.WL("ombre", "ok."+ +!R);this.O4=!1;Jy(this);nNm(this.EJ);if(!this.Ty){this.X1.stop();var C;(C=this.Pf)==null||C.stop()}var Z;if(N=(Z=this.qO)==null?void 0:CT2(Z))for(Z=0;Z1E3){var N;(N=this.k8)==null||N.xx((0,g.I)());N=xI(this);if(this.iS.LV()&&this.xhr instanceof MO){var z=this.xhr;N.xrs=z.xhr.readyState;N.xpb=z.V.getLength();N.xdc=z.N}this.So(new mT("net.timeout",N))}}else(0,g.I)()-this.k8.V>1E4&&((z=this.k8)==null||z.xx((0,g.I)()),this.Yk());this.isComplete()||this.lC.start()}}; g.J.Yk=function(){this.logger.info("Onesie request timed out");this.O4=!1;if(!Jy(this)){var N=xI(this);N.timeout="1";this.So(new mT("onesie.request",N))}}; g.J.So=function(N){var z=this;N=UH(N);this.RQ?this.kT.oP(N):(this.kC.reject(N),this.RQ=!0);nNm(this.EJ);this.Ty||this.X1.stop();this.jK("or_fe");var v,R;(v=this.qO)==null||(R=CT2(v))==null||R.forEach(function(C){z.WL("pathprobe",C)}); this.lF(5);this.dispose()}; g.J.isComplete=function(){return this.state>=3}; g.J.yd=function(){return this.state===4}; g.J.Vd=function(N){var z,v;return this.isComplete()||!!((z=this.OD)==null?0:(v=z.get(N))==null?0:v.V)}; g.J.h4=function(){return!1}; g.J.M4=function(){return this.state===5}; g.J.notifySubscribers=function(N){for(var z=0;z102400&&!this.Lq&&(this.jK("or100k"),this.Lq=!0);if(N.BW()){var z=N.CC(),v=z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+v}); this.HZ&&this.WL("ombrss","len."+v);this.TD.feed(z)}if(this.OD)for(var R=g.f(this.OD.keys()),C=R.next();!C.done;C=R.next()){var Z=C.value;N=void 0;(N=this.OD.get(Z))==null||N.JD();this.notifySubscribers(Z)}}catch(Y){this.So(Y)}}; g.J.aR=function(){return this.k8.requestNumber}; g.J.cY=function(N){return this.NK.get(N)};g.y(trv,g.H);g.J=trv.prototype;g.J.L9=function(N,z){this.qd=void 0;YY_(this);Ze2(this,N,z)}; g.J.N6=function(N){if(this.V.length===0)return!1;var z=this.V[0];return z instanceof eh?N===this.loader.getCurrentTime()*1E3:!(z instanceof gD&&D92(z.info))&&Math.abs(z.Ud()-N)<50}; g.J.M$=function(N){this.W=N;this.qd=(0,g.I)()+(N.backoffTimeMs||0)}; g.J.t_=function(N,z){if(N.action===void 0){var v=this.kT.xF();v!==void 0&&this.loader.C1(v)}else if(N.action!==0||!this.BL)switch(N.action===0&&this.policy.CI&&(N.action=2),v={},v.reason=N.sf,v.action=N.action,v.rn=z,N.action){case 1:this.policy.Z&&this.L&&this.L.Io(void 0,void 0,v);break;case 0:this.BL=!0;this.videoData.Lb()&&this.policy.Z&&this.L&&this.L.Io(void 0,void 0,v,!1);this.loader.Cy(v);break;case 2:this.policy.IC?(HCm(N.sf)!=="sabr.config"&&delete v.reason,this.loader.handleError(HCm(N.sf), v,1)):this.loader.handleError("sabr.config",v,1);break;case 3:this.policy.zE&&((N=this.Md.Y)!=null&&(N.Y=!0),this.loader.handleError("sabr.hostfallback",v))}}; g.J.mR=function(N){N&&(this.loader.WL("sabrctxt",{onsbrctxt:N.type,scp:N.scope,dflt:N.sendByDefault}),N.type&&N.sendByDefault&&this.ZJ.add(N.type),N.scope!==2&&(N.type&&this.videoData.sabrContextUpdates.set(N.type,N),this.kT.mR(N)))}; g.J.GV=function(){}; g.J.XK=function(N){if(N.iT!==void 0&&N.oH){var z=N.iT/N.oH;this.audioTrack.L=!1;this.videoTrack.L=!1;if(this.policy.Vp||this.policy.w$||this.policy.zA)this.loader.lI.W=!1;this.loader.KX(z,1);if(this.kT.getCurrentTime()!==z){var v={Np:"sabr_seek",PM:!0,TM:!0};N.seekSource&&(v.seekSource=N.seekSource);DS(this.loader,z+.1,v)}}}; g.J.onSnackbarMessage=function(N){this.kT.publish("onSnackbarMessage",N)}; g.J.U7=function(N){N.PU&&N.g8&&gB(this.Md,N.PU,N.g8);this.policy.MD&&(N.B6&&N.MN&&(this.Md.Lf=N.B6/N.MN),N.NN&&N.KP&&(this.Md.ip=N.NN/N.KP));this.policy.aD&&$6(this.videoData)&&!this.videoData.Vp&&N.g8&&this.loader.KX(N.g8,1E3);N.AB!=null&&this.kT.O3(N.AB);this.policy.Ka&&N.K$&&(N=((0,g.I)()-N.K$)/1E3,this.loader.kc.Xp(1,N))}; g.J.l4=function(N){this.loader.l4(N)}; g.J.Hu=function(N){return this.ZJ.has(N)}; g.J.dI=function(N,z,v){this.policy.W&&this.loader.WL("sabrctxtplc",{start:N?N.join("_"):"",stop:z?z.join("_"):"",discard:v?v.join("_"):""});if(N){N=g.f(N);for(var R=N.next();!R.done;R=N.next())this.ZJ.add(R.value)}if(z)for(z=g.f(z),N=z.next();!N.done;N=z.next())N=N.value,this.ZJ.has(N)&&this.ZJ.delete(N);if(v)for(v=g.f(v),z=v.next();!z.done;z=v.next())if(z=z.value,this.videoData.sabrContextUpdates.has(z)&&(this.videoData.sabrContextUpdates.delete(z),z===3&&(this.videoData.LJ="")),this.policy.J&&this.V.length)for(N= g.f(this.V),R=N.next();!R.done;R=N.next())if(R=R.value,!(R instanceof eh)){var C=void 0;((C=R.nB)==null?void 0:C.type)===z&&(R.nB=void 0)}}; g.J.Hk=function(){}; g.J.Yo=function(N){this.B=N}; g.J.Sy=function(N){this.Id=N}; g.J.Ik=function(N,z){bf(this.policy,N,4,z)}; g.J.C9=function(N){if(N==null?0:N.Re)if(N=N.Re.VY){N=g.f(N);for(var z=N.next();!z.done;z=N.next())if(z=z.value,z.formatId){var v=this.Md.Z.get(Aa(z.formatId));v&&v.info&&(v.info.debugInfo=z.debugInfo)}}}; g.J.Rk=function(N){(N=N==null?void 0:N.reloadPlaybackParams)&&this.kT.publish("reloadplayer",N)}; g.J.uv=function(){return this.kT.uv()||""}; g.J.Oy=function(){var N=gj(this.audioTrack,!0)*1E3,z=gj(this.videoTrack,!0)*1E3;return Math.min(N,z)}; g.J.oz=function(N,z){this.loader.WL(N,z)}; g.J.Yy=function(N){$ku(this.loader,qE7(this.S8,N))}; g.J.AO=function(){g.H.prototype.AO.call(this);this.W=void 0;Ze2(this,!0,"i");this.V=[]};ak_.prototype.Nv=function(N,z){if(this.N)return Wwu(this,z);if(z=bp(N)){var v=z.W;v&&v.Z&&v.V&&(N=N.Z.length?N.Z[0]:null)&&N.state>=2&&!N.M4()&&N.info.AJ===0&&(this.N=N,this.L=v,this.W=z.info,this.G=this.startTimeSecs=Date.now()/1E3,this.B=this.W.startTime)}return NaN}; ak_.prototype.clear=function(){this.W=this.L=this.N=null;this.V=this.B=this.G=this.startTimeSecs=NaN;this.Z=!1};g.y(g.ty,g.H);g.J=g.ty.prototype;g.J.initialize=function(N,z,v){this.logger.debug(function(){return"Initialized, t="+N}); N=N||0;this.policy.V||(z=wvK(this.V),Afu(this.kT,new Dm(z.video,z.reason)),this.kT.Ds(new Dm(z.audio,z.reason)));this.Md.isManifestless&&n1U(this.B);this.L&&LwU(this.L,this.videoTrack.V);z=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var R=!this.Md.isManifestless;this.policy.Qo&&(R=R||this.Md.pG);this.policy.Rd||(this.currentTime=R?N:z);this.policy.Vp&&this.seek(this.getCurrentTime(),{}).YK(function(){}); if(this.policy.V){var C;((C=this.J)==null?0:bWU(C,this.uv()||""))&&yfO(this)&&Jfu(this,this.videoTrack)&&Jfu(this,this.audioTrack)&&(iex(this.N,this.J),this.policy.B&&eNO(this))}else this.Vp&&(fk2(this,this.videoTrack),fk2(this,this.audioTrack),jGU(this.Vp),delete this.Vp);v?(this.policy.a_?(this.CV=v,Oq(this,v)):Oq(this,!1),g.qv(this.yG)):(v=this.getCurrentTime()===0,XG(this.B,this.videoTrack,this.videoTrack.V,v),XG(this.B,this.audioTrack,this.audioTrack.V,v),this.policy.V&&X3u(this.N,!0),this.policy.Vp|| this.seek(this.getCurrentTime(),{}).YK(function(){}),this.timing.tick("gv")); (this.Md.PH||this.Md.qo||this.Md.K0||this.Md.CV||this.Md.UR)&&this.kT.Ek(this.Md)}; g.J.resume=function(){if(this.isSuspended||this.aY){this.logger.debug("Resumed.");this.Uo=this.aY=this.isSuspended=!1;try{this.Nv()}catch(N){g.kE(N)}}}; g.J.kV=function(){return!this.policy.xH}; g.J.tE=function(N,z){N=N===void 0?!1:N;z=z===void 0?!1:z;this.logger.debug("detaching media source");FwI(this);this.kT.nO()&&(this.G=NaN);N?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Id&&this.WL("loader",{setsmb:1}),this.policy.K0=!0,this.No()):(this.policy.a_?Oq(this,this.CV):Oq(this,!1),z||this.No())}; g.J.setAudioTrack=function(N,z,v){v=v===void 0?!1:v;if(!this.HL()){var R=!isNaN(z);v&&R&&(this.audioTrack.Vp=Date.now(),this.policy.er&&(this.xT=!0));if(this.policy.V){var C=this.Z.MK(N.id,R);this.logger.debug(function(){return"Logging new audio format: "+C.V.info.id}); this.kT.Ds(C)}else{var Z=caO(this.V,N.id,R);this.logger.debug(function(){return"Logging new audio format: "+Z.audio.info.id}); this.kT.Ds(new Dm(Z.audio,Z.reason))}if(R&&(v=this.audioTrack.V.index.vP(z),this.WL("setAudio",{id:N.id,cmt:z,sq:v}),v>=0)){this.policy.V&&this.L9(!0,"mosaic");pl(this.audioTrack,v,NaN,NaN);!this.policy.Bc&&this.Md.isLive&&AI(this.Md,v,!1);return}this.kT.Au()}}; g.J.setPlaybackRate=function(N){N!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(N)}; g.J.DQ=function(N){var z=this.N.B;this.N.Yo(N);this.WL("scfidc",{curr:Aa(z),"new":Aa(N)});N&&Aa(N)!==Aa(z)&&(this.L9(!0,"caption change"),this.Nv())}; g.J.Y4=function(N){this.N.Sy(N)}; g.J.E$=function(N){var z=N.V.info.bI();this.logger.debug(function(){return"New "+(z?"audio":"video")+" format from SABR: "+CN(N.V.info)}); z?this.kT.Ds(N):Afu(this.kT,N)}; g.J.Yy=function(N){ha(N.TU[N.TU.length-1])&&$ku(this,qE7(this.V,N.TU[0].V))}; g.J.xw=function(){return this.kT.xw()}; g.J.CZ=function(){return this.kT.CZ()}; g.J.l4=function(N){this.kT.D().LV()&&this.WL("sps",{status:N.o8||""});if(N.o8===1)this.kT.videoData.MJ=0;else if(N.o8===2||N.o8===3){var z=!1;if(N.o8===3){z=this.kT.Q7();var v;this.J0=(v=N.O50)!=null?v:Infinity;this.kT.videoData.MJ=z+1;(z=FdU(this))&&this.Iv(!0)}this.kT.ES(!0,z)}}; g.J.wE=function(){return this.kT.wE()}; g.J.GI=function(){return this.kT.GI()}; g.J.JF=function(N){this.kT.JF(N)}; g.J.Y6T=function(){var N,z=(N=this.kT.O6())==null?void 0:N.getCurrentTime();z?this.kT.WL("rms",{cta:z}):g.qv(this.yh)}; g.J.Nv=function(){mkK(this);if(this.uS&&O0(this.uS)&&!this.uS.G0()&&(!this.policy.Rd||isFinite(this.getCurrentTime()))){var N=Tq(this.videoTrack);N=this.policy.wN&&N&&N.Rq();this.Md.isManifestless&&this.Md.N&&mr(this.Md)?(this.G=mr(this.Md),this.uS.wK(this.G)):pr(this.Md)&&!N?isNaN(this.G)?(this.G=this.getCurrentTime()+3600,this.uS.wK(this.G)):this.G<=this.getCurrentTime()+1800&&(this.G=Math.max(this.G+1800,this.getCurrentTime()+3600),this.uS.wK(this.G)):this.uS.isView||(N=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.G)||this.G!==N)&&N>0&&(this.uS.wK(N),this.G=N))}if(!this.HL())if(nr(this.Md)&&this.Md.M4()){var z=this.Md;this.handleError("manifest.net.retryexhausted",z.xT?{rc:z.pU}:{rc:z.pU.toString()},1)}else if(this.policy.V)a:{try{v6u(this.N);this.Md.isManifestless&&this.policy.B&&HO(this.lI);var v;((v=this.uS)==null?0:rK(v))&&this.eb();X3u(this.N)}catch(Y){g.PN(Y);z=Y;if(z.message.includes("changeType")){this.WL("ssap",{exp:z.name,msg:z.message,s:z.stack});break a}this.handleError("fmt.unplayable", {exp:z.name,msg:z.message,s:z.stack},1)}uev(this);g.qv(this.S8)}else if(!this.Md.W||!Ndu(this.videoTrack)&&!Ndu(this.audioTrack)||(this.videoTrack.B||this.audioTrack.B)&&this.policy.gW?v=!1:(this.No(),this.kT.seekTo(Infinity,{Np:"checkLoaderTracksSync",KX:!0}),v=!0),!v){mkK(this);this.Md.isManifestless&&(z1O(this.videoTrack),z1O(this.audioTrack),HO(this.lI),(v=bp(this.videoTrack))&&v.W&&(v=v.W.Z&&!this.policy.W2,this.WL(v===this.policy.L.g5?"strm":"strmbug",{strm:v,sfmp4:this.policy.L.g5,dfs:this.policy.W2}, !0)));if(this.uS)this.eb();else if(this.policy.N){var R;v=!1;if(this.policy.yf){var C;N=g.f([this.videoTrack,this.audioTrack]);for(C=N.next();!C.done;C=N.next()){var Z=C.value;for(C=bp(Z);C&&Z.Wg()!==Tq(Z);C=bp(Z))Z.DR(C);v=v||!!C}}else(z=bp(this.videoTrack))&&this.videoTrack.DR(z),(R=bp(this.audioTrack))&&this.audioTrack.DR(R);UM(this.videoTrack)&&UM(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(z||R||v)&&H8(this)}dkO(this);XG(this.B,this.videoTrack,this.videoTrack.V, !1);XG(this.B,this.audioTrack,this.audioTrack.V,!1);this.policy.dR||Bwv(this,this.videoTrack,this.audioTrack);x9f(this.B,this.videoTrack,this.audioTrack);x9f(this.B,this.audioTrack,this.videoTrack);uev(this);this.L&&(z=this.L,z.N?(R=z.G+z.policy.Im,z.Z||(R=Math.min(R,z.startTimeSecs+z.policy.aB)),z=Math.max(0,R*1E3-Date.now())):z=NaN,isNaN(z)||g.qv(this.Ui,z));g.qv(this.S8)}}; g.J.Cy=function(N){this.kT.Cy(N)}; g.J.eb=function(){var N=this;if(this.uS){var z=this.uS.V,v=this.uS.W;RBu(this,this.audioTrack);RBu(this,this.videoTrack);var R=p0u(this);if(R){if(this.policy.rd){if(!z.Fe()){var C=bp(this.audioTrack);if(C){if(!bB(this,this.audioTrack,z,C.info))return;VM7(this,this.audioTrack,z,C)}}if(!v.Fe()&&(C=bp(this.videoTrack))){if(!bB(this,this.videoTrack,v,C.info))return;VM7(this,this.videoTrack,v,C)}}this.lK||(this.lK=(0,g.I)(),this.logger.debug(function(){return"Appends pause start "+N.lK+" reason "+R}), this.policy.W&&this.WL("apdps",{r:R}))}else if(this.lK&&(g6I(this,this.lK),this.lK=0),khu(this),C=!1,o62(this,this.videoTrack,v)&&(C=!0,Tgb(this.timing),$yu(this.timing)),this.uS&&!this.uS.QX()&&(o62(this,this.audioTrack,z)&&(C=!0,FM2(this.timing),Uyu(this.timing)),!this.HL()&&this.uS))!this.policy.xH&&UM(this.videoTrack)&&UM(this.audioTrack)&&O0(this.uS)&&!this.uS.G0()&&(v=!1,v=Tq(this.audioTrack).V,v=v===this.Md.V[v.info.id])&&(this.logger.debug("Setting EOS"),nJb(this.uS),qwO(this.schedule)),C&& !this.uS.isAsync()&&H8(this)}}; g.J.zg=function(N){var z,v=N===((z=this.uS)==null?void 0:z.V)?this.audioTrack:this.videoTrack,R;if((R=bp(v))==null?0:R.isLocked){if(this.kT.D().LV()){var C;this.WL("eosl",{ounlock:(C=bp(v))==null?void 0:C.info.z4()})}var Z;X0O(this,N===((Z=this.uS)==null?void 0:Z.V))}var Y;if(this.policy.er&&N===((Y=this.uS)==null?void 0:Y.V)&&this.ET){z=this.ET-this.getCurrentTime();var Q;this.kT.WL("asl",{l:z,xtag:(Q=Tq(this.audioTrack))==null?void 0:Q.V.info.V});this.xT=!1;this.ET=0}N.BZ()&&N.vc().length===0&& (N.AE(),this.uS&&!this.uS.BZ()&&(this.kT.D().LV()&&this.kT.WL("rms",{ld:"seek"}),this.uS.G=performance.now(),this.kT.Yb(),this.kT.D().LV()&&g.qv(this.yh)));var L;(L=v.J)!=null&&zq(L,0);this.policy.UR?Tdf(this):this.Nv()}; g.J.XLl=function(N){if(this.uS){var z=Tq(N===this.uS.V?this.audioTrack:this.videoTrack);if(N=N.Ia())for(var v=0;v5&&N.qd.shift();z=z.cL;var R;if((R=this.kT.getVideoData())==null?0:R.enableServerStitchedDai)R=YuK(this.audioTrack,z),v=YuK(this.videoTrack,z),R!==0&&v!==0&&R!==v&&this.handleError("ssdai.avsync",{sq:z,a:R,v:v},0)}}; g.J.uh=function(N,z,v,R){N.info.video&&this.W.uh(z,v,R)}; g.J.vN=function(N){this.V.vN(N)}; g.J.qA=zu(20);g.J.HU=function(){return this.videoTrack.L||this.audioTrack.L}; g.J.seek=function(N,z){if(this.HL())return k7();if(this.HU())return k7("seeking to head");if(this.policy.Vp&&!isFinite(N))return wMu(this.lI),g.px(Infinity);mkK(this);this.Ca=(0,g.I)();this.policy.V||dkO(this,N);this.uS&&this.uS.V&&this.uS.W&&!this.kT.getVideoData().l2&&(this.uS.V.isLocked()||this.uS.W.isLocked())&&this.kT.Au({reattachOnLockedBuffer:1,vsb:""+this.uS.W.isLocked(),asb:""+this.uS.V.isLocked()});var v=this.getCurrentTime(),R=this.lI.seek(N,z);this.policy.Rd||(this.currentTime=R);HK(this.W, N,v,this.policy.rk&&!z.PM);H8(this);return g.px(R)}; g.J.N6=function(N){return this.policy.V&&this.N.N6(N)}; g.J.Hu=function(N){return this.N.Hu(N)}; g.J.L9=function(N,z){this.N.L9(N,z)}; g.J.getCurrentTime=function(){if(this.policy.Rd){var N=this.fV()||0;return this.kT.getCurrentTime()-N}return this.currentTime}; g.J.VM=function(){return this.audioTrack.V.info}; g.J.Ju=function(){return this.videoTrack.V.info}; g.J.SZ=function(){return this.audioTrack.V.info.JO}; g.J.hE=function(){return this.videoTrack.V.info.JO}; g.J.AO=function(){try{this.tE(),Vo(this.audioTrack),Vo(this.videoTrack),EM(this.audioTrack),EM(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.H.prototype.AO.call(this)}catch(N){g.kE(N)}}; g.J.handleError=function(N,z,v){v=v===void 0?0:v;var R=$z(v);N==="fmt.unplayable"&&this.Md.isLive&&(this.policy.rd=!1,Bc(this.Md));z=new mT(N,z,v);g.Cm(this);n_(z.details);this.kT.handleError(z);N!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&N!=="fmt.unparseable"&&R&&this.dispose()}; g.J.TE=function(){var N=Tq(this.audioTrack),z=Tq(this.videoTrack);N={lct:this.getCurrentTime().toFixed(3),lsk:this.lI.isSeeking(),lmf:this.V.V.isLocked(),lbw:y1(this.schedule).toFixed(3),lhd:eP(this.schedule).toFixed(3),lst:((this.schedule.L.fU()||0)*1E9).toFixed(3),laa:N?N.z4():"",lva:z?z.z4():"",lar:this.audioTrack.W?this.audioTrack.W.z4():"",lvr:this.videoTrack.W?this.videoTrack.W.z4():"",laq:""+Bt(this.audioTrack),lvq:""+Bt(this.videoTrack)};this.uS&&!this.uS.QX()&&this.uS.V&&this.uS.W&&(N.lab= Yx(this.uS.V.vc()),N.lvb=Yx(this.uS.W.vc()));this.lK&&(N.lapt=((0,g.I)()-this.lK).toFixed(0),N.lapr=p0u(this));this.Rd&&(N.lapmabht=((0,g.I)()-this.Rd).toFixed(0),N.lapmabh=Ez(this,this.audioTrack).toFixed(0));this.tO&&(N.lapmvbht=((0,g.I)()-this.tO).toFixed(0),N.lapmvbh=Ez(this,this.videoTrack).toFixed(0));this.Id&&(N.lapsdai=((0,g.I)()-this.Id).toFixed(0));return N}; g.J.No=function(){try{this.policy.V&&this.N.L9(!1,"pending"),this.audioTrack.No(),this.videoTrack.No()}catch(N){g.kE(N)}this.policy.N=""}; g.J.Tf=function(){return $Y(this.Y)}; g.J.WL=function(N,z,v){this.kT.WL(N,z,v===void 0?!1:v)}; g.J.uv=function(){return this.kT.uv()}; g.J.KX=function(N,z){N/=z;isNaN(this.timestampOffset)&&CHK(this,N-Math.min(N,this.policy.xY));return(N-this.timestampOffset)*z}; g.J.fV=function(){return this.timestampOffset}; g.J.isSeeking=function(){return this.lI.isSeeking()}; g.J.DU=function(){this.W.DU()}; g.J.Gb=function(N,z,v){z=z===void 0?!1:z;v=v===void 0?{}:v;this.policy.V?this.Z.Gb(N,z,v):this.V.Gb(N,z,v)}; g.J.j3=function(N,z){if(this.qd&&this.W.j3(N,this.qd))return CHK(this,this.timestampOffset-z),H8(this),this.policy.Z&&(Bc(this.Md),EM(this.audioTrack),EM(this.videoTrack),this.No()),!0;z=this.videoTrack.V.index.vP(N);this.handleError("ad.skipfailed",{dec:!!this.qd,t:N.toFixed(3),sq:z});return!1}; g.J.getManifest=function(){return this.Md}; g.J.isOffline=function(){return!!this.kT.getVideoData().cotn}; g.J.vk=function(N,z){this.kT.vk(N,z)}; g.J.X$=function(N){if(this.policy.V)this.N.L9(!0,"utc"),this.Nv();else{var z=this.kT.getVideoData().rD;if(z){var v=this.B;v.d$=N;v.rD=z;uf(this)}}}; g.J.C1=function(N){this.videoTrack.L=!1;this.audioTrack.L=!1;this.lI.W=!1;this.kT.C1(N)}; g.J.Zk=function(N){this.lI.Zk(N-this.fV())}; g.J.iJ=function(){this.kT.iJ()}; g.J.Iv=function(N){N!==this.policy.cP&&((this.policy.cP=N)||this.Nv())}; g.J.IL=function(N,z){var v=this.audioTrack.Mu,R=this.videoTrack.Mu;v&&R&&(v.remove(N,z),R.remove(N,z))}; g.J.Au=function(N){this.kT.Au(N)}; g.J.rh=function(N){this.kT.rh(N)}; g.J.Q7=function(){return this.kT.Q7()}; g.J.qV=function(){Bc(this.Md);this.No()};g.J=g.XT.prototype;g.J.yH=function(N,z,v,R,C,Z){return this.yy.yH(N,z,v,R,C,Z)}; g.J.XY=function(N,z,v,R,C,Z){return this.yy.XY(N,z,v,R,C,Z)}; g.J.It=function(N){return this.yy.It(N)}; g.J.FY=function(N){this.yy.FY(N)}; g.J.Io=function(N,z,v,R){return this.yy.Io(N,z,v,R)}; g.J.DU=function(){this.yy.DU()}; g.J.qD=function(N,z){this.yy.qD(N,z)}; g.J.Qw=function(){this.yy.Qw()}; g.J.ye=zu(62);g.J.rG=function(N,z,v){this.yy.rG(N,z,v)}; g.J.RI=zu(65);g.J.SE=function(N,z,v,R,C,Z,Y,Q,L){this.yy.SE(N,z,v,R,C,Z,Y,Q,L)}; g.J.Kd=function(N){this.yy.Kd(N)}; g.J.L1=function(N){return this.yy.L1(N)}; g.J.dP=function(N){return this.yy.dP(N)};g.y(r$,g.jJ);g.y(uB,r$);uB.prototype.G=function(N,z){if(N&&z){var v=Number(VX(N,"cpi"))*1+1;isNaN(v)||v<=0||vthis.Z&&(this.Z=v,g.wE(this.V)||(this.V={},this.N.stop(),this.W.stop())),this.V[z]=N,g.qv(this.W))}}; uB.prototype.B=function(){for(var N=g.f(Object.keys(this.V)),z=N.next();!z.done;z=N.next()){var v=z.value;z=this.publish;for(var R=this.Z,C=g.Fd(this.V[v]),Z=[],Y=g.f(C[6].split("&")),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,Q.indexOf("cpi=")===0?Z.push("cpi="+R.toString()):Q.indexOf("ek=")===0?Z.push("ek="+g.G3(v)):Z.push(Q);C[6]="?"+Z.join("&");v="skd://"+C.slice(2).join("");C=v.length*2;R=new Uint8Array(C+4);R[0]=C%256;R[1]=(C-R[0])/256;for(C=0;C0)for(var v=g.f(this.V),R=v.next();!R.done;R=v.next())if(z===R.value.info.cryptoPeriodIndex){z=!0;break a}z=!1}if(!z){z=(0,g.I)();a:{v=N.cryptoPeriodIndex;if(!isNaN(v)){R=g.f(this.Z.values());for(var C=R.next();!C.done;C=R.next())if(Math.abs(C.value.cryptoPeriodIndex-v)<=1){v=!0;break a}}v=!1}v?(v=N.V,v=Math.max(0,Math.random()*((isNaN(v)?120:v)-30))*1E3):v=0;this.publish("log_qoe",{wvagt:"delay."+v,cpi:N.cryptoPeriodIndex,reqlen:this.V.length, ignore:this.N});v<=0?juu(this,N):this.N||(this.V.push({time:z+v,info:N}),g.qv(this.W,v))}}; c8.prototype.AO=function(){this.V=[];r$.prototype.AO.call(this)};var J$={},JZ_=(J$.DRM_TRACK_TYPE_AUDIO="AUDIO",J$.DRM_TRACK_TYPE_SD="SD",J$.DRM_TRACK_TYPE_HD="HD",J$.DRM_TRACK_TYPE_UHD1="UHD1",J$);g.y(xe_,g.H);g.y(f$_,g.jJ);g.J=f$_.prototype;g.J.sN=function(N){var z=this;if(!(this.HL()||N.size<=0)){var v={};N.forEach(function(R,C){var Z=DC(z.W)?C:R;C=new Uint8Array(DC(z.W)?R:C);DC(z.W)&&SMu(C);R=g.zV(C,4);SMu(C);C=g.zV(C,4);z.V[R]?z.V[R].status=Z:z.V[C]?z.V[C].status=Z:z.V[R]={type:"",status:Z};z.iS.X("html5_authorized_drm_track_types")?(Z=z.V[R].type,R=Pfm(Z),w$(z,Z)&&!v[R]&&(z.kz.push(R),v[R]=!0)):(z.N=[],w$(z,z.V[R].type)&&z.kz.push(Pfm(z.V[R].type)))}); ptm(this,",");qF(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.J.error=function(N,z,v,R){this.HL()||(this.publish("licenseerror",N,z,v,R),N==="drm.provision"&&(N=(Date.now()-this.G)/1E3,this.G=NaN,this.publish("ctmp","provf",{et:N.toFixed(3)})));$z(z)&&this.dispose()}; g.J.shouldRetry=function(N,z){return!N&&this.requestNumber===z.requestNumber}; g.J.AO=function(){this.V={};g.jJ.prototype.AO.call(this)}; g.J.TE=function(){var N={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.PL,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(N.keyStatuses=this.V);return N}; g.J.getInfo=function(){var N=this.N.join();if(MF(this)){var z=new Set,v;for(v in this.V)this.V[v].status!=="usable"&&z.add(this.V[v].type);N+="/UKS."+Array.from(z)}return N+="/"+this.cryptoPeriodIndex}; g.J.IP=function(){return this.url};g.y(Nw,g.H);g.J=Nw.prototype;g.J.PE=function(N){if(this.B){var z=N.messageType||"license-request";this.B(new Uint8Array(N.message),z)}}; g.J.sN=function(){this.L&&this.L(this.V.keyStatuses)}; g.J.onClosed=function(){this.HL()||g.Dz("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.J.OC=function(N){this.B&&this.B(N.message,"license-request")}; g.J.W7=function(N){if(this.Z){if(this.W){var z=this.W.error.code;N=this.W.error.systemCode}else z=N.errorCode,N=N.systemCode;this.Z("t.prefixedKeyError;c."+z+";sc."+N,z,N)}}; g.J.VB=function(){this.G&&this.G()}; g.J.update=function(N){var z=this;if(this.V)return this.V.update(N).then(null,mJ(function(v){hZ_(z,"t.update",v)})); this.W?this.W.update(N):this.element.addKey?this.element.addKey(this.Y.keySystem,N,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,N,this.initData,this.sessionId);return gm()}; g.J.AO=function(){this.V&&(this.J?this.V.close().catch(g.PN):this.V.close());this.element=null;g.H.prototype.AO.call(this)};g.y(zk,g.H);g.J=zk.prototype;g.J.setServerCertificate=function(){return this.W.setServerCertificate?this.V.flavor==="widevine"&&this.V.zD?this.W.setServerCertificate(this.V.zD):Og(this.V)&&this.V.S8?this.W.setServerCertificate(this.V.S8):null:null}; g.J.createSession=function(N,z){var v=N.initData;if(this.V.keySystemAccess){z&&z("createsession");var R=this.W.createSession();tI(this.V)?v=Deu(v,this.V.S8):Og(this.V)&&(v=i2K(v)||new Uint8Array(0));z&&z("genreq");N=R.generateRequest(N.contentType,v);var C=new Nw(null,null,null,R,null,this.L);N.then(function(){z&&z("genreqsuccess")},mJ(function(Y){hZ_(C,"t.generateRequest",Y)})); return C}if(oy(this.V))return t2K(this,v);if(bz(this.V))return blU(this,v);if((R=this.element)==null?0:R.generateKeyRequest)this.element.generateKeyRequest(this.V.keySystem,v);else{var Z;(Z=this.element)==null||Z.webkitGenerateKeyRequest(this.V.keySystem,v)}return this.N=new Nw(this.element,this.V,v,null,null,this.L)}; g.J.Zb=function(N){var z=OlY(this,N);z&&z.OC(N)}; g.J.eG=function(N){var z=OlY(this,N);z&&z.W7(N)}; g.J.r7=function(N){var z=OlY(this,N);z&&z.VB(N)}; g.J.getMetrics=function(){if(this.W&&this.W.getMetrics)try{var N=this.W.getMetrics()}catch(z){}return N}; g.J.AO=function(){this.Z=this.W=null;var N;(N=this.N)==null||N.dispose();N=g.f(Object.values(this.G));for(var z=N.next();!z.done;z=N.next())z.value.dispose();this.G={};g.H.prototype.AO.call(this);delete this.element};g.J=v1.prototype;g.J.get=function(N){N=this.findIndex(N);return N!==-1?this.values[N]:null}; g.J.remove=function(N){N=this.findIndex(N);N!==-1&&(this.keys.splice(N,1),this.values.splice(N,1))}; g.J.removeAll=function(){this.keys=[];this.values=[]}; g.J.set=function(N,z){var v=this.findIndex(N);v!==-1?this.values[v]=z:(this.keys.push(N),this.values.push(z))}; g.J.findIndex=function(N){return g.eV(this.keys,function(z){return g.VU(N,z)})};g.y(rZK,g.jJ);g.J=rZK.prototype;g.J.VVW=function(N){this.VE({onecpt:1});N.initData&&qMY(this,new Uint8Array(N.initData),N.initDataType)}; g.J.L9S=function(N){this.VE({onndky:1});qMY(this,N.initData,N.contentType)}; g.J.jj=function(N){this.VE({onneedkeyinfo:1});this.iS.X("html5_eme_loader_sync")&&(this.L.get(N.initData)||this.L.set(N.initData,N));cZu(this,N)}; g.J.x9=function(N){this.Z.push(N);Rl(this)}; g.J.createSession=function(N){var z=wtu(this)?JIu(N):g.zV(N.initData);this.W.get(z);this.K0=!0;N=new f$_(this.videoData,this.iS,N,this.drmSessionId);this.W.set(z,N);N.subscribe("ctmp",this.jR,this);N.subscribe("keystatuseschange",this.sN,this);N.subscribe("licenseerror",this.TT,this);N.subscribe("newlicense",this.kq,this);N.subscribe("newsession",this.g0,this);N.subscribe("sessionready",this.Cx,this);N.subscribe("fairplay_next_need_key_info",this.J6,this);this.iS.X("html5_enable_vp9_fairplay")&&N.subscribe("qualitychange", this.AL,this);N.subscribe("sabrlicenseconstraint",this.Qup,this);Fif(N,this.N)}; g.J.kq=function(N){this.HL()||(this.VE({onnelcswhb:1}),N&&!this.heartbeatParams&&(this.heartbeatParams=N,this.publish("heartbeatparams",N)))}; g.J.g0=function(){this.HL()||(this.VE({newlcssn:1}),this.Z.shift(),this.K0=!1,Rl(this))}; g.J.Cx=function(){if(oy(this.V)&&(this.VE({onsnrdy:1}),this.tO--,this.tO===0)){var N=this.qd,z,v;(z=N.element)==null||(v=z.msSetMediaKeys)==null||v.call(z,N.Z)}}; g.J.sN=function(N){if(!this.HL()){!this.Id&&this.videoData.X("html5_log_drm_metrics_on_key_statuses")&&(N$2(this),this.Id=!0);this.VE({onksch:1});var z=this.AL;if(!MF(N)&&g.Xi&&N.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var v="large";else{v=[];var R=!0;if(MF(N))for(var C=g.f(Object.keys(N.V)),Z=C.next();!Z.done;Z=C.next())Z=Z.value,N.V[Z].status==="usable"&&v.push(N.V[Z].type),N.V[Z].status!=="unknown"&&(R=!1);if(!MF(N)||R)v=N.N;v=ggu(v)}z.call(this,v);this.publish("keystatuseschange", N)}}; g.J.jR=function(N,z){this.HL()||this.publish("ctmp",N,z)}; g.J.J6=function(N,z){this.HL()||this.publish("fairplay_next_need_key_info",N,z)}; g.J.TT=function(N,z,v,R){this.HL()||(this.videoData.X("html5_log_drm_metrics_on_error")&&N$2(this),this.publish("licenseerror",N,z,v,R))}; g.J.Sn=function(){return this.Y}; g.J.AL=function(N){var z=g.aS("auto",N,!1,"l");if(this.videoData.Eb){if(this.Y.equals(z))return}else if(qjK(this.Y,N))return;this.Y=z;this.publish("qualitychange");this.VE({updtlq:N})}; g.J.Qup=function(N){this.videoData.sabrLicenseConstraint=N}; g.J.AO=function(){this.V.keySystemAccess&&this.element&&(this.PL?this.element.setMediaKeys(null).catch(g.PN):this.element.setMediaKeys(null));this.element=null;this.Z=[];for(var N=g.f(this.W.values()),z=N.next();!z.done;z=N.next())z=z.value,z.unsubscribe("ctmp",this.jR,this),z.unsubscribe("keystatuseschange",this.sN,this),z.unsubscribe("licenseerror",this.TT,this),z.unsubscribe("newlicense",this.kq,this),z.unsubscribe("newsession",this.g0,this),z.unsubscribe("sessionready",this.Cx,this),z.unsubscribe("fairplay_next_need_key_info", this.J6,this),this.iS.X("html5_enable_vp9_fairplay")&&z.unsubscribe("qualitychange",this.AL,this),z.dispose();this.W.clear();this.G.removeAll();this.L.removeAll();this.heartbeatParams=null;g.jJ.prototype.AO.call(this)}; g.J.TE=function(){for(var N={systemInfo:this.V.TE(),sessions:[]},z=g.f(this.W.values()),v=z.next();!v.done;v=z.next())N.sessions.push(v.value.TE());return N}; g.J.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.B?"/KR":"")}; g.J.VE=function(N,z){z=z===void 0?!1:z;this.HL()||(n_(N),(this.iS.LV()||z)&&this.publish("ctmp","drmlog",N))};g.y(ZR7,g.H);g.J=ZR7.prototype;g.J.hY=function(){return!!this.Sd}; g.J.PQ=function(){return this.W}; g.J.handleError=function(N){var z=this;LVK(this,N);if((N.errorCode!=="html5.invalidstate"&&N.errorCode!=="fmt.unplayable"&&N.errorCode!=="fmt.unparseable"||!Q4_(this,N.errorCode,N.details))&&!GsI(this,N)){if(this.bS.qd!=="yt"&&lU_(this,N)&&this.videoData.zS&&(0,g.I)()/1E3>this.videoData.zS&&this.bS.qd==="hm"){var v=Object.assign({e:N.errorCode},N.details);v.stalesigexp="1";v.expire=this.videoData.zS;v.init=this.videoData.MU/1E3;v.now=(0,g.I)()/1E3;v.systelapsed=((0,g.I)()-this.videoData.MU)/1E3;N= new mT(N.errorCode,v,2);this.kT.Ij(N.errorCode,2,"SIGNATURE_EXPIRED",n_(N.details))}if($z(N.severity)){var R;v=(R=this.kT.loader)==null?void 0:R.V.V;if(this.bS.X("html5_use_network_error_code_enums"))if(KVf(N)&&v&&v.isLocked())var C="FORMAT_UNAVAILABLE";else if(this.bS.G||N.errorCode!=="auth"||N.details.rc!==429)N.errorCode==="ump.spsrejectfailure"&&(C="HTML5_SPS_UMP_STATUS_REJECTED");else{C="TOO_MANY_REQUESTS";var Z="6"}else KVf(N)&&v&&v.isLocked()?C="FORMAT_UNAVAILABLE":this.bS.G||N.errorCode!== "auth"||N.details.rc!=="429"?N.errorCode==="ump.spsrejectfailure"&&(C="HTML5_SPS_UMP_STATUS_REJECTED"):(C="TOO_MANY_REQUESTS",Z="6");this.kT.Ij(N.errorCode,N.severity,C,n_(N.details),Z)}else this.kT.publish("nonfatalerror",N),R=/^pp/.test(this.videoData.clientPlaybackNonce),this.oP(N.errorCode,N.details),R&&N.errorCode==="manifest.net.connect"&&(N="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.I)(),ns(N,"manifest",function(Y){z.G=!0;z.WL("pathprobe",Y)}, function(Y){z.oP(Y.errorCode,Y.details)}))}}; g.J.WL=function(N,z){this.kT.SV().WL(N,z)}; g.J.oP=function(N,z){z=n_(z);this.kT.SV().oP(N,z)};CF.prototype.EU=function(N,z){return(z===void 0?0:z)?{hq:N?Y9(this,N):tK,QW:N?mF_(this,N):tK,gAd:N?FVI(this,N):tK,VIp:N?p82(this,N.videoData):tK,NT:N?ksx(this,N.videoData,N):tK,Wvo:N?s4O(this,N):tK,zuS:fUu(this)}:{hq:N?Y9(this,N):tK}}; CF.prototype.gF=function(N){var z;g.k1(this.iS)&&(z=window.screen&&window.screen.width?new g.kQ(window.screen.width,window.screen.height):null);z||(z=this.iS.O_?this.iS.O_.clone():this.J1.nu());(uQ||wD||N)&&z.scale(g.uj());return z}; CF.prototype.X=function(N){return this.iS.X(N)};g.y(iN,g.H);iN.prototype.onError=function(N){if(N!=="player.fatalexception"||this.provider.X("html5_exception_to_health"))N==="sabr.fallback"&&(this.encounteredSabrFallback=!0),N.match($Am)?this.networkErrorCount++:this.nonNetworkErrorCount++}; iN.prototype.send=function(){if(!(this.Z||this.V<0)){SqY(this);var N=g.I4(this.provider)-this.V,z="PLAYER_PLAYBACK_STATE_UNKNOWN",v=this.playerState.BP;this.playerState.isError()?z=v&&v.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.u(this.playerState,2)?z="PLAYER_PLAYBACK_STATE_ENDED":g.u(this.playerState,64)?z="PLAYER_PLAYBACK_STATE_UNSTARTED":g.u(this.playerState,16)||g.u(this.playerState,32)?z="PLAYER_PLAYBACK_STATE_SEEKING":g.u(this.playerState,1)&&g.u(this.playerState, 4)?z="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.u(this.playerState,1)?z="PLAYER_PLAYBACK_STATE_BUFFERING":g.u(this.playerState,4)?z="PLAYER_PLAYBACK_STATE_PAUSED":g.u(this.playerState,8)&&(z="PLAYER_PLAYBACK_STATE_PLAYING");v=xA8[dw(this.provider.videoData)];a:switch(this.provider.iS.playerCanaryState){case "canary":var R="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":R="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:R="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var C=EI2(this.provider), Z=this.W<0?N:this.W-this.V;N=this.provider.iS.MF+36E5<(0,g.I)();z={started:this.W>=0,stateAtSend:z,joinLatencySecs:Z,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:R,playerCanaryStage:C,isAd:this.provider.videoData.isAd(),liveMode:v,hasDrm:!!g.yO(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:iM(this.provider.videoData)};N||g.aX("html5PlayerHealthEvent",z);this.Z=!0;this.dispose()}}; iN.prototype.AO=function(){this.Z||this.send();window.removeEventListener("error",this.iU);window.removeEventListener("unhandledrejection",this.iU);g.H.prototype.AO.call(this)}; var $Am=/\bnet\b/;g.y(HR_,g.H);HR_.prototype.AO=function(){DF7(this);g.H.prototype.AO.call(this)};var bR2=/[?&]cpn=/;g.y(j_,g.H);j_.prototype.flush=function(){var N={};this.W&&(N.pe=this.W);this.V.length>0&&(N.pt=this.V.join("."));this.V=[];return N}; j_.prototype.stop=function(){var N=this,z,v,R;return g.S(function(C){if(C.W==1)return g.d_(C,2),g.k(C,(z=N.N)==null?void 0:z.stop(),4);if(C.W!=2)return(v=C.V)&&N.logTrace(v),g.nO(C,0);R=g.U2(C);N.W=cyU(R.message);g.fO(C)})}; j_.prototype.logTrace=function(N){this.encoder.reset();this.encoder.add(1);this.encoder.add(N.resources.length);for(var z=g.f(N.resources),v=z.next();!v.done;v=z.next()){v=v.value.replace("https://www.youtube.com/s/","");this.encoder.add(v.length);for(var R=0;R=0?N:g.I4(this.provider),this.K0?UAr.has(this.Hc)&&(this.V.size||(this.Hc==="PL"?N>=this.W+30:N<=this.Vp+30||N>=this.W+1200&&N<=this.Vp+86400))&&(g.LF(this,N,"vps",[this.Hc]),this.W=N):["PL","B","S"].indexOf(this.Hc)>-1&&(this.V.size||N>=this.W+30)&&(g.LF(this,N,"vps",[this.Hc]),this.W=N),this.V.size)){this.sequenceNumber===7E3&&g.PN(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){W1(this,N);var z=this.provider.kT.vC(); z=g.f(z);for(var v=z.next();!v.done;v=z.next())v=v.value,this.WL(v.key,v.value);z=N;v=this.provider.kT.WU();var R=v.droppedVideoFrames||0,C=v.totalVideoFrames||0,Z=R-this.NV,Y=C&&!this.K_;R>v.totalVideoFrames||Z>5E3?aZ7(this,"html5.badframedropcount","df."+R+";tf."+v.totalVideoFrames):(Z>0||Y)&&g.LF(this,z,"df",[Z]);this.NV=R;this.K_=C;this.Y>0&&(g.LF(this,N,"glf",[this.Y]),this.Y=0);Qe.isActive()&&(N=Qe.ai(),Object.keys(N).length>0&&this.WL("profile",N));this.YJ&&Gk(this,"lwnmow");this.provider.iS.LV()&& this.provider.X("html5_record_now")&&this.WL("now",{wt:(0,g.I)()});N={};this.provider.videoData.W&&(N.fmt=this.provider.videoData.W.itag,(z=this.provider.videoData.N)&&z.itag!==N.fmt&&(N.afmt=z.itag));N.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(N.adcpn=this.adCpn);this.nC&&(N.addocid=this.nC);this.contentCpn&&(N.ccpn=this.contentCpn);this.qd&&(N.cdocid=this.qd);this.provider.videoData.cotn&&(N.cotn=this.provider.videoData.cotn);N.el=P0(this.provider.videoData);N.content_v=SM(this.provider.videoData); N.ns=this.provider.iS.qd;N.fexp=Viu(this.provider.iS.experiments).toString();N.cl=(752956574).toString();(z=this.provider.videoData.adFormat||this.adFormat)&&(N.adformat=z);(z=dw(this.provider.videoData))&&(N.live=z);this.provider.videoData.Uu()&&(N.drm=1,this.provider.videoData.B&&(N.drm_system=GP9[this.provider.videoData.B.flavor]||0),this.provider.videoData.drmProduct&&(N.drm_product=this.provider.videoData.drmProduct));iQ()&&this.provider.videoData.G&&(N.ctt=this.provider.videoData.G,N.cttype= this.provider.videoData.Jk,this.provider.videoData.mdxEnvironment&&(N.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(N.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.zP&&(N.dai_fallback="1")):this.provider.videoData.m4?N.dai="cs":this.provider.videoData.LI&&(N.dai="disabled");N.seq=this.sequenceNumber++;if(this.provider.videoData.fA){if(z=this.provider.videoData.fA,N&&z)for(z.ns==="3pp"&&(N.ns="3pp"),this.gx.has(z.ns)&& Gk(this,"hbps"),z.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=z.shbpslc),this.provider.iS.experiments.j8("html5_use_server_qoe_el_value")&&this.kJ.delete("el"),v=g.f(Object.keys(z)),R=v.next();!R.done;R=v.next())R=R.value,this.kJ.has(R)||(N[R]=z[R])}else N.event="streamingstats",N.docid=this.provider.videoData.videoId,N.ei=this.provider.videoData.eventId;this.isEmbargoed&&(N.embargoed="1");Object.assign(N,this.provider.iS.V);if(z=N.seq)z={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+z,serializedWatchEndpointLoggingContext:this.provider.videoData.PE0},this.serializedHouseBrandPlayerServiceLoggingContext&&(z.serializedHouseBrandPlayerServiceLoggingContext=R1(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(z.playerResponseCpn=this.provider.videoData.playerResponseCpn),QE.length&&(z.decoderInfo=QE),this.provider.kT.wu()&&(z.transitionStitchType=4,this.Rd&&(z.timestampOffsetMsecs=this.Rd)),this.remoteControlMode&& (z.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(z.remoteConnectedDevices=this.remoteConnectedDevices),z=g.uI(z,s22),z=g.zV(z,4),this.V.set("qclc",[z]);N=g.kS("//"+this.provider.iS.As+"/api/stats/qoe",N);v=z="";R=g.f(this.V.entries());for(C=R.next();!C.done;C=R.next())Z=g.f(C.value),C=Z.next().value,Z=Z.next().value,Y=void 0,(Y=Z)!=null&&Y.join&&(C="&"+C+"="+Z.join(","),C.length>100?v+=C:z+=C);ZFO(this,N+z,v.replace(/ /g,"%20"))}this.V.clear()}}; g.J.rh=function(N){this.YJ=N}; g.J.xo=function(){if(this.provider.videoData.B){var N=this.provider.videoData.B;Gk(this,"eme-"+(N.keySystemAccess?"final":oy(N)?"ms":tI(N)?"ytfp":bz(N)?"safarifp":"nonfinal"))}}; g.J.S$=zu(59);g.J.Sl=function(N){this.isEmbargoed=N}; g.J.Td=zu(36);g.J.lE=zu(42);g.J.onPlaybackRateChange=function(N){var z=g.I4(this.provider);N&&N!==this.c5&&(g.LF(this,z,"rate",[N]),this.c5=N);this.K0||this.reportStats(z)}; g.J.Q2=zu(30);g.J.getPlayerState=function(N){if(g.u(N,128))return"ER";if(g.u(N,2048))return"B";if(g.u(N,512))return"SU";if(g.u(N,16)||g.u(N,32))return"S";if(N.isOrWillBePlaying()&&g.u(N,64))return"B";var z=BSl[Lg(N)];g.nM(this.provider.iS)&&z==="B"&&this.provider.kT.getVisibilityState()===3&&(z="SU");z==="B"&&g.u(N,4)&&(z="PB");return z}; g.J.AO=function(){g.H.prototype.AO.call(this);g.e5(this.PL);g.e5(this.yh)}; g.J.xf=function(N){this.isOffline=N;g.LF(this,g.I4(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.J.WL=function(N,z,v){var R=this.RP.indexOf(N)!==-1;R||this.RP.push(N);if(!v||!R){var C=typeof z!=="string"?n_(z):z;C=LPU(C);if(!v&&!/^t[.]/.test(C)){var Z=g.I4(this.provider)*1E3;C="t."+Z.toFixed()+";"+C}lN(this,"ctmp",N+":"+C);this.logger.debug(function(){return"ctmp "+N+" "+C}); Yt_(this);return Z}}; g.J.wO=function(N,z,v){this.B={pHo:Number(this.WL("glrem",{nst:N.toFixed(),rem:z.toFixed(),ca:+v})),h6:N,Ad8:z,isAd:v}}; g.J.Bv=function(N,z,v){g.LF(this,g.I4(this.provider),"ad_playback",[N,z,v])}; g.J.Q1=function(N,z){var v=g.I4(this.provider)*1E3;lN(this,"daism","t."+v.toFixed(0)+";smw."+(N*1E3).toFixed(0)+";smo."+(z*1E3).toFixed(0))}; g.J.resume=function(){var N=this;this.provider.iS.LV()&&this.WL("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.PL)?iFI(this):this.PL=g.GU(function(){N.reportStats()},1E4)}; var ye={},BSl=(ye[5]="N",ye[-1]="N",ye[3]="B",ye[0]="EN",ye[2]="PA",ye[1]="PL",ye[-1E3]="ER",ye[1E3]="N",ye),UAr=new Set(["PL","B","S"]),QE=[];lZb.prototype.update=function(){if(this.L){var N=this.F6()||0,z=g.I4(this.provider);N>=this.provider.kT.getDuration()-.1&&(this.previouslyEnded=!0);if(N!==this.V||xwm(this,N,z)){var v;if(!(v=Nz-this.GS+2||xwm(this,N,z))){v=this.provider.kT.getVolume();var R=v!==this.J,C=this.provider.kT.isMuted()?1:0;C!==this.Y?(this.Y=C,v=!0):(!R||this.N>=0||(this.J=v,this.N=z),v=z-this.N,this.N>=0&&v>2?(this.N=-1,v=!0):v=!1)}v&&(yE(this),this.Z=N);this.GS=z;this.V=N}}}; lZb.prototype.F6=function(){var N=this.provider.kT.F6();return this.provider.iS.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&H0(this.provider.videoData)?N+this.provider.kT.fV():N};eKY.prototype.send=function(N){var z=this;if(!this.xT){var v=ySK(this),R=g.kS(this.uri,v);this.iS.X("vss_through_gel_double")&&fZu(R);this.K0&&!this.iS.X("html5_simplify_pings")?n92(this,R):JS_(this,N).then(function(C){z.K0&&(C=C||{},C.method="POST",C.postParams={atr:z.attestationResponse});X8m(R,C,{token:z.Vp,jw:z.zE,mdxEnvironment:z.mdxEnvironment},z.iS,N,z.Rd,z.isFinal&&z.BH||z.Id||z.Z&&z.MF)}); this.xT=!0}}; eKY.prototype.W=function(N){N===void 0&&(N=NaN);return Number(N.toFixed(3)).toString()}; var fQ={},Tob=(fQ.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,fQ.LIVING_ROOM_APP_MODE_MAIN=1,fQ.LIVING_ROOM_APP_MODE_KIDS=2,fQ.LIVING_ROOM_APP_MODE_MUSIC=3,fQ.LIVING_ROOM_APP_MODE_UNPLUGGED=4,fQ.LIVING_ROOM_APP_MODE_GAMING=5,fQ),dz={},slm=(dz.EMBEDDED_PLAYER_MODE_UNKNOWN=0,dz.EMBEDDED_PLAYER_MODE_DEFAULT=1,dz.EMBEDDED_PLAYER_MODE_PFP=2,dz.EMBEDDED_PLAYER_MODE_PFL=3,dz);g.y(Tk,g.H);g.J=Tk.prototype;g.J.MH=function(){this.V.update();PNI(this)&&(Uwu(this),BoO(this),this.TF())}; g.J.AO=function(){g.H.prototype.AO.call(this);mP(this);WPv(this.V)}; g.J.TE=function(){return ySK(F6(this,"playback"))}; g.J.TF=function(){this.provider.videoData.L.eventLabel=P0(this.provider.videoData);this.provider.videoData.L.playerStyle=this.provider.iS.playerStyle;this.provider.videoData.T0&&(this.provider.videoData.L.feature="pyv");this.provider.videoData.L.vid=this.provider.videoData.videoId;var N=this.provider.videoData.L;var z=this.provider.videoData;z=z.isAd()||!!z.T0;N.isAd=z}; g.J.WP=function(N){var z=F6(this,"engage");z.PL=N;return dwO(z,o9f(this.provider))};HFU.prototype.isEmpty=function(){return this.endTime===this.startTime};Ut.prototype.X=function(N){return this.iS.X(N)}; Ut.prototype.getCurrentTime=function(){if(g.uT(this.videoData)){var N=this.kT.wu();if(N){var z=this.kT.getCurrentTime(),v;N=(((v=N.Ew(z*1E3))==null?void 0:v.m2)||0)/1E3;return z-N}}return this.kT.getCurrentTime()}; Ut.prototype.F6=function(){if(g.uT(this.videoData)){var N=this.kT.wu();if(N){var z=this.kT.F6(),v;N=(((v=N.Ew(z*1E3))==null?void 0:v.m2)||0)/1E3;return z-N}}return this.kT.F6()}; var DwI={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.y(g.B1,g.H);g.J=g.B1.prototype;g.J.MH=function(){if(this.provider.videoData.enableServerStitchedDai&&this.R4){var N;(N=this.Z.get(this.R4))==null||N.MH()}else this.V&&this.V.MH()}; g.J.Sl=function(N){this.qoe&&this.qoe.Sl(N)}; g.J.Td=zu(35);g.J.lE=zu(41);g.J.Q1=function(N,z){this.qoe&&this.qoe.Q1(N,z)}; g.J.HB=function(){if(this.provider.videoData.enableServerStitchedDai&&this.R4){var N;(N=this.Z.get(this.R4))!=null&&yE(N.V)}else this.V&&yE(this.V.V)}; g.J.oP=function(N,z){this.qoe&&aZ7(this.qoe,N,z);if(this.W)this.W.onError(N)}; g.J.onPlaybackRateChange=function(N){if(this.qoe)this.qoe.onPlaybackRateChange(N);this.V&&yE(this.V.V)}; g.J.S$=zu(58);g.J.WL=function(N,z,v){this.qoe&&this.qoe.WL(N,z,v)}; g.J.wO=function(N,z,v){this.qoe&&this.qoe.wO(N,z,v)}; g.J.O3=function(N){var z;(z=this.qoe)==null||z.O3(N)}; g.J.Ek=function(N){var z;(z=this.qoe)==null||z.Ek(N)}; g.J.rh=function(N){this.qoe&&this.qoe.rh(N)}; g.J.Bv=function(N,z,v){this.qoe&&this.qoe.Bv(N,z,v)}; g.J.Q2=zu(29);g.J.ma=function(){if(this.qoe)return this.qoe.ma()}; g.J.TE=function(){if(this.provider.videoData.enableServerStitchedDai&&this.R4){var N,z;return(z=(N=this.Z.get(this.R4))==null?void 0:N.TE())!=null?z:{}}return this.V?this.V.TE():{}}; g.J.D_=function(){var N;return(N=this.qoe)==null?void 0:N.D_()}; g.J.oI=function(N,z){var v;(v=this.qoe)==null||v.oI(N,z)}; g.J.WP=function(N){return this.V?this.V.WP(N):function(){}}; g.J.TF=function(){this.V&&this.V.TF()}; g.J.getVideoData=function(){return this.provider.videoData}; g.J.resume=function(){this.qoe&&this.qoe.resume()};g.y(pF,g.H); pF.prototype.Ba=function(){if(this.V.has(void 0)){var N=this.V.get(void 0);if(!(void 0).videoId||N.V&&N.qoe)return;this.W.WL("ssap",{rlc:void 0});this.V.has(void 0)&&(X1x(this.V.get(void 0)),this.V.delete(void 0))}if(!this.V.has(void 0)){N=new Ut(void 0,this.iS,this.kT);var z=Math.round(AS(this.W)*1E3);N=new g.B1(N,z);N.V&&N.qoe||this.W.WL("nqv",{vv:(void 0).videoId});z=this.W.getVideoData();this.V.set(void 0,N);if(N.qoe){var v=N.qoe,R=z.videoId||"";v.contentCpn=z.clientPlaybackNonce;v.qd=R}bFf(N)}}; pF.prototype.q1=function(N){if(N!==void 0){var z=this.SV(N),v=this.SV(),R,C=N===((R=z.getVideoData())==null?void 0:R.clientPlaybackNonce),Z;R=void 0===((Z=v.getVideoData())==null?void 0:Z.clientPlaybackNonce);var Y;Z=C?((Y=z.getVideoData())==null?void 0:Y.videoId)||"":"nvd";var Q;Y=R?((Q=v.getVideoData())==null?void 0:Q.videoId)||"":"nvd";C&&(z=z.qoe)!=null&&(e_(z,4,0,void 0,Y),z.reportStats());R&&(go(v),(z=v.qoe)!=null&&(e_(z,4,1,N,Z),z.reportStats()),IZu(v,new g.KZ(void 0,v.Hc)),t_K(v))}}; pF.prototype.SV=function(N){N=N||this.R4;return this.V.get(N)||this.W};g.y(g.k9,g.H);g.J=g.k9.prototype; g.J.QT=function(N,z){this.sync();z&&this.V.array.length>=2E3&&this.f7("captions",1E4);z=this.V;if(N.length>1&&N.length>z.array.length)z.array=z.array.concat(N),z.array.sort(z.V);else for(var v=g.f(N),R=v.next();!R.done;R=v.next())R=R.value,!z.array.length||z.V(R,z.array[z.array.length-1])>0?z.array.push(R):g.EZ(z.array,R,z.V);N=g.f(N);for(z=N.next();!z.done;z=N.next())z=z.value,z.namespace==="ad"&&this.B("ssap",{acrsid:z.getId(),acrsst:z.start,acrset:z.end,acrscpt:z.playerType});this.Z=NaN;this.sync()}; g.J.xz=function(N){N.length>1E4&&g.PN(new g.XS("Over 10k cueRanges removal occurs with a sample: ",N[0]));if(!this.HL()){for(var z=g.f(N),v=z.next();!v.done;v=z.next())(v=v.value)&&v.namespace==="ad"&&this.B("ssap",{rcrid:v.getId(),rcst:v.start,rcet:v.end,rcpt:v.playerType});var R=new Set(N);this.W=this.W.filter(function(C){return!R.has(C)}); CeI(this.V,R);this.sync()}}; g.J.f7=function(N,z){var v=(isNaN(this.Z)?g.u(this.kT.getPlayerState(),2)?0x8000000000000:this.kT.getCurrentTime()*1E3:this.Z)-z;z=this.GI().filter(function(R){return R.namespace===N&&R.endthis.V,Z=g.u(v,8)&&g.u(v,16),Y=this.kT.p8().isBackground()||v.isSuspended();tS(this,this.xT,Z&&!Y,C,"qoe.slowseek",function(){},"timeout"); var Q=isFinite(this.V);Q=Z&&Q&&pWY(z,this.V);var L=!R||Math.abs(R-this.V)>10,K=this.iS.X("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),l=R===0&&this.W&&[11,10].includes(this.W);tS(this,this.ET,Q&&L&&!Y&&(!K||!l),C,"qoe.slowseek",function(){z.seekTo(N.V)},"set_cmt"); L=Q&&jx(z.xA(),this.V);var W=this.kT.loader;Q=!W||W.kV();var G=function(){z.seekTo(N.V+.001)}; tS(this,this.tO,L&&Q&&!Y,C,"qoe.slowseek",G,"jiggle_cmt");Q=function(){return N.kT.YA()}; tS(this,this.UT,L&&!Y,C,"qoe.slowseek",Q,"new_elem");L=Qx(v);K=v.isBuffering();var x=z.xA(),e=ir(x,R),d=e>=0&&x.end(e)>R+5,T=L&&K&&d;l=this.kT.getVideoData();tS(this,this.BL,R<.002&&this.V<.002&&Z&&g.nM(this.iS)&&g.VO(l)&&!Y,C,"qoe.slowseek",Q,"slow_seek_shorts");tS(this,this.J,l.YG()&&Z&&!Y&&!l.tO,C,"qoe.slowseek",Q,"slow_seek_gapless_shorts");tS(this,this.Vp,T&&!Y,L&&!K,"qoe.longrebuffer",G,"jiggle_cmt");tS(this,this.PL,T&&!Y,L&&!K,"qoe.longrebuffer",Q,"new_elem_nnr");if(W){var m=W.getCurrentTime(); Z=z.fN();Z=d2K(Z,m);Z=!W.isSeeking()&&R===Z;tS(this,this.zE,L&&K&&Z&&!Y,L&&!K&&!Z,"qoe.longrebuffer",function(){z.seekTo(m)},"seek_to_loader")}Z={}; G=ir(x,Math.max(R-3.5,0));T=G>=0&&R>x.end(G)-1.1;var n=G>=0&&G+1=0&&T&&n<11;Z.close2edge=T;Z.gapsize=n;Z.buflen=x.length;this.W&&(Z.seekSour=this.W);tS(this,this.K0,L&&K&&!Y,L&&!K,"qoe.longrebuffer",function(){},"timeout",Z); Z=v.isSuspended();Z=this.kT.E_()&&!Z;tS(this,this.L,Z,!Z,"qoe.start15s",function(){N.kT.kA("ad")},"ads_preroll_timeout"); Z=this.iS.experiments.j8("html5_use_playback_rate_in_skip_slow_ad")?this.kT.getPlaybackRate()*1E3:1E3;e=R-this.N5;tS(this,this.vL,g.VO(l)&&W,L&&!K,"qoe.longrebuffer",function(){N.kT.Au()},"reset_media_source"); tS(this,this.S8,g.VO(l)&&W,L&&!K,"qoe.longrebuffer",Q,"reset_media_element");this.N===0&&(this.G=R);W=K&&this.V===0&&R>1&&R===this.G;tS(this,this.Id,g.VO(l)&&W,L&&!K,"qoe.slowseek",function(){z.seekTo(0)},"reseek_after_time_jump"); Y=v.isOrWillBePlaying()&&!Y;d=this.kT.yg()-R<6&&!d&&this.kT.oY();tS(this,this.Y,l.YG()&&Y&&K&&d,L&&!K,"qoe.longrebuffer",function(){N.kT.YA(!1,!0)},"handoff_end_long_buffer_reload"); v=Ce(l)&&this.W===104&&Y&&(K||g.u(v,8)&&g.u(v,16));tS(this,this.qd,v,C,"qoe.start15s",Q,"gapless_slow_start");this.N=R;this.B.start()}}; bN.prototype.oP=function(N,z,v){z=this.TE(z);z.wn=v;z.wdup=this.Z[N]?"1":"0";this.kT.oP(new mT(N,z));this.Z[N]=!0}; bN.prototype.TE=function(N){N=Object.assign(this.kT.TE(!0),N.TE());this.V&&(N.stt=this.V.toFixed(3));this.kT.getVideoData().isLivePlayback&&(N.ct=this.kT.getCurrentTime().toFixed(3),N.to=this.kT.fV().toFixed(3));delete N.uga;delete N.euri;delete N.referrer;delete N.fexp;delete N.vm;return N}; ol.prototype.reset=function(){this.V=this.W=this.Z=this.startTimestamp=0;this.N=!1}; ol.prototype.test=function(N){if(!this.B||this.W)return!1;if(!N)return this.reset(),!1;N=(0,g.I)();if(!this.startTimestamp)this.startTimestamp=N,this.Z=0;else if(this.Z>=this.B)return this.W=N,!0;this.Z+=1;return!1}; ol.prototype.TE=function(){var N={},z=(0,g.I)();this.startTimestamp&&(N.wsd=(z-this.startTimestamp).toFixed());this.W&&(N.wtd=(z-this.W).toFixed());this.V&&(N.wssd=(z-this.V).toFixed());return N};g.y(Fv7,g.H);g.J=Fv7.prototype;g.J.setMediaElement=function(N){(this.mediaElement=N)?(this.mediaElement&&(this.B||this.Z||!this.mediaElement.DE()||this.seekTo(.01,{Np:"seektimeline_setupMediaElement"})),Ot(this)):X6(this)}; g.J.getCurrentTime=function(){if(Il(this.kT)){if(!isNaN(this.W))return this.W}else if(!isNaN(this.W)&&isFinite(this.W))return this.W;return this.mediaElement&&hw2(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.J.xF=function(){return this.xT}; g.J.F6=function(){return this.getCurrentTime()-this.fV()}; g.J.eM=function(){return this.V?this.V.eM():Infinity}; g.J.isAtLiveHead=function(N){if(!this.V)return!1;N===void 0&&(N=this.getCurrentTime());return hS(this.V,N)}; g.J.N$=function(){return!!this.V&&this.V.N$()}; g.J.seekTo=function(N,z){var v=z===void 0?{}:z;z=v.zO===void 0?!1:v.zO;var R=v.J7===void 0?0:v.J7;var C=v.Jo===void 0?!1:v.Jo;var Z=v.mZ===void 0?0:v.mZ;var Y=v.Np===void 0?"":v.Np;var Q=v.seekSource===void 0?void 0:v.seekSource;var L=v.KX===void 0?!1:v.KX;var K=v.PM===void 0?!1:v.PM;v=v.TM===void 0?!1:v.TM;L&&(N+=this.fV());iM(this.videoData)&&Q===29&&(this.xT=void 0);L=N=this.ZC())||!g.mw(this.videoData),l||(d={st:d,mst:this.ZC()},this.V&&this.X("html5_high_res_seek_logging")&&(d.ht=this.V.eM(),d.adft=ewO(this.V)),this.kT.WL("seeknotallowed",d)),d=l));if(!d)return this.N&&(this.N=null,Vnx(this)),g.px(this.getCurrentTime());d=.005;K&&this.X("html5_sabr_seek_no_shift_tolerance")&&(d=0);if(Math.abs(N-this.W)<=d&&this.Vp)return this.B;Y&&(d=N,(this.iS.LV()||this.X("html5_log_seek_reasons"))&&this.kT.WL("seekreason",{reason:Y, tgt:d}));Q&&(this.Y.W=Q);this.Vp&&X6(this);this.B||(this.B=new qa);N&&!isFinite(N)&&UM2(this,!1);(Y=v||L)||(Y=N,Y=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.V&&!(this.mediaElement&&this.mediaElement.Vi()>0&&wK(this.mediaElement)>0)||Ke(this.videoData)&&this.Mp()===this.ZC(!1)?0:isFinite(Y)||!Ke(this.videoData)));Y||(N=uN(this,N,C));N&&!isFinite(N)&&UM2(this,!1);this.Z=N;this.UT=Z;this.W=N;this.G=0;this.V&&(C=this.V,Z=N,Jou(C,Z,!1),yoO(C,Z));C=this.kT;Z=N;Y={zO:z,seekSource:Q}; C.tI.Z=Z;v=C.QS;v.mediaTime=Z;v.V=!0;Y.zO&&C.aC(Y);Y=Z>C.videoData.endSeconds&&Z>C.videoData.limitedPlaybackDurationInSeconds;C.hZ&&Y&&isFinite(Z)&&xrO(C);Zz.start&&xrO(this.kT);return this.B}; g.J.ZC=function(N){if(!this.videoData.isLivePlayback)return this.kT.videoData.ZC();var z;return N1(this.videoData)&&((z=this.mediaElement)==null?0:z.isPaused())&&this.videoData.V?(N=this.getCurrentTime(),TQY(this.LG(N)*1E3)+N):this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&iM(this.videoData)&&this.videoData.V?N?this.videoData.V.Vp||0:this.videoData.V.ip||0:Ke(this.videoData)&&this.videoData.Vp&&this.videoData.V?this.videoData.V.ZC()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.V? !N&&this.V?this.V.eM():this.kT.videoData.ZC()+this.timestampOffset:this.mediaElement?OF()?TQY(g.h(this.mediaElement.sM()).getTime()):wK(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.J.Mp=function(){if(g.uT(this.videoData))return 0;if(this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&iM(this.videoData)){var N;return((N=this.videoData.V)==null?void 0:N.Lf)||0}N=this.videoData?this.videoData.Mp()+this.timestampOffset:this.timestampOffset;if(N1(this.videoData)&&this.videoData.V){var z,v=Number((z=this.videoData.progressBarStartPosition)==null?void 0:z.utcTimeMillis)/1E3;z=this.getCurrentTime();z=this.LG(z)-z;if(!isNaN(v)&&!isNaN(z))return Math.max(N,v-z)}return N}; g.J.Yb=function(){this.B||this.seekTo(this.Z,{Np:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.J.HU=function(){return this.Vp&&!isFinite(this.W)}; g.J.AO=function(){BXO(this,null);this.Y.dispose();g.H.prototype.AO.call(this)}; g.J.TE=function(){var N={};this.loader&&Object.assign(N,this.loader.TE());this.mediaElement&&Object.assign(N,this.mediaElement.TE());return N}; g.J.TK=function(N){this.timestampOffset=N}; g.J.getStreamTimeOffset=function(){return Ke(this.videoData)?0:this.videoData.V?this.videoData.V.getStreamTimeOffset():0}; g.J.fV=function(){return this.timestampOffset}; g.J.LG=function(N){return this.videoData&&this.videoData.V?this.videoData.V.LG(N-this.timestampOffset):NaN}; g.J.lj=function(){if(!this.mediaElement)return 0;if($6(this.videoData)){var N=this.mediaElement,z=N.xA();N=(LN(z)&&N.getDuration()?z.end(z.length-1):0)+this.timestampOffset-this.Mp();z=this.ZC()-this.Mp();return Math.max(0,Math.min(1,N/z))}return this.mediaElement.lj()}; g.J.Ds=function(N){this.L&&(this.L.V=N)}; g.J.X$=function(N,z){this.kT.WL("requestUtcSeek",{time:N});iM(this.videoData)&&(this.xT=N);var v;(v=this.loader)==null||v.X$(N);z&&(this.K0=z)}; g.J.C1=function(N){iM(this.videoData)&&(this.xT=void 0);if(this.K0)this.kT.WL("utcSeekingFallback",{source:"streamTime",timeSeconds:this.K0}),this.kT.seekTo(this.K0,{Np:"utcSeekingFallback_streamTime"}),this.K0=0;else{var z=this.getCurrentTime();isNaN(z)||(N=this.LG(z)-N,z-=N,this.kT.WL("utcSeekingFallback",{source:"estimate",timeSeconds:z}),this.kT.seekTo(z,{Np:"utcSeekingFallback_estimate"}))}}; g.J.iJ=function(){this.K0=0}; g.J.X=function(N){return this.iS&&this.iS.X(N)};g.y(c1,g.H);c1.prototype.start=function(){this.W.start()}; c1.prototype.stop=function(){this.W.stop()}; c1.prototype.clear=function(){for(var N=g.f(this.V.values()),z=N.next();!z.done;z=N.next())z.value.clear()}; c1.prototype.sample=function(){for(var N=g.f(this.Z),z=N.next();!z.done;z=N.next()){var v=g.f(z.value);z=v.next().value;v=v.next().value;this.V.has(z)||this.V.set(z,new OPm(A97.has(z)));this.V.get(z).update(v())}this.W.start()}; var A97=new Set(["networkactivity"]);OPm.prototype.update=function(N){this.W?(this.buffer.add(N-this.V||0),this.V=N):this.buffer.add(N)}; OPm.prototype.clear=function(){this.buffer.clear();this.V=0};wo.prototype.Aa=function(){return this.started}; wo.prototype.start=function(){this.started=!0}; wo.prototype.reset=function(){this.finished=this.started=!1};var coU=!1;g.y(g.R7,g.jJ);g.J=g.R7.prototype;g.J.AO=function(){this.logger.debug("dispose");g.e5(this.Hf);CBu(this.iI);this.visibility.unsubscribe("visibilitystatechange",this.iI);jiI(this);Y2(this);g.oH.gG(this.iW);this.OJ();this.x$=null;g.Lc(this.videoData);g.Lc(this.e$);g.Lc(this.Rl);g.Lc(this.Cv);g.Kc(this.ddl);this.hZ=null;g.jJ.prototype.AO.call(this)}; g.J.Bv=function(N,z,v,R,C){if(this.iS.X("html5_log_ad_playback_docid")){var Z=this.SV();if(Z.qoe){Z=Z.qoe;var Y=this.iS.qd||"yt";g.LF(Z,g.I4(Z.provider),"ad_playback",[N,z,v,C,Y])}}else this.SV().Bv(N,z,v);this.X("html5_log_media_perf_info")&&this.WL("adloudness",{ld:R.toFixed(3),cpn:N})}; g.J.SZ=function(){var N;return(N=this.loader)==null?void 0:N.SZ()}; g.J.hE=function(){var N;return(N=this.loader)==null?void 0:N.hE()}; g.J.Ju=function(){var N;return(N=this.loader)==null?void 0:N.Ju()}; g.J.VM=function(){var N;return(N=this.loader)==null?void 0:N.VM()}; g.J.Uu=function(){return this.videoData.Uu()}; g.J.nO=function(){return this.X("html5_not_reset_media_source")&&!this.Uu()&&!this.videoData.isLivePlayback&&g.VO(this.videoData)&&!this.iS.supportsGaplessShorts()}; g.J.Em=function(){this.videoData.Y&&(this.videoData.kZ=this.videoData.kZ||this.Iu.f0().SZ(),this.videoData.Nl=this.videoData.Nl||this.Iu.f0().hE());if(Qa7(this.videoData)||!Xe(this.videoData)){var N=this.videoData.errorDetail;this.Ij(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),N,N,this.videoData.Hp||void 0)}this.X("html5_generate_content_po_token")&&this.eD();this.X("html5_enable_d6de4")&&this.E4()}; g.J.W3=function(){return this.hD}; g.J.Ba=function(){!this.lP||this.lP.HL();this.lP=new g.B1(new Ut(this.videoData,this.iS,this));this.hD=new pF(this.iS,this,this.lP)}; g.J.getVideoData=function(){return this.videoData}; g.J.D=function(){return this.iS}; g.J.EU=function(N){return this.Xn.EU(this.x$,N===void 0?!1:N)}; g.J.SV=function(N){if(N)a:{for(var z=this.hD,v=g.f(z.V.values()),R=v.next();!R.done;R=v.next())if(R=R.value,R.getVideoData().videoId===N){N=R;break a}N=z.W}else N=this.hD.SV();return N}; g.J.p8=function(){return this.visibility}; g.J.vT=function(){return this.mediaElement&&this.mediaElement.lH()?this.mediaElement.Nu():null}; g.J.O6=function(){return this.mediaElement}; g.J.dZ=function(){if(this.X("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.D().G&&this.D().houseBrandUserStatus&&this.WL("hbut",{status:this.D().houseBrandUserStatus});if(this.videoData.Y8())return!0;this.Ij("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.J.jW=function(N){(N=N===void 0?!1:N)||g.uT(this.videoData)||go(this.SV());this.WM=N;!this.dZ()||this.IY.Aa()?g.nM(this.iS)&&this.videoData.isLivePlayback&&this.IY.Aa()&&!this.IY.finished&&!this.WM&&this.yP():(this.IY.start(),N=this.SV(),AS(N),N.qoe&&iFI(N.qoe),this.yP())}; g.J.yP=function(){if(this.videoData.isLoaded()){var N=this.e$;g.LM(N.bS.experiments,"html5_player_min_build_cl")>0&&g.LM(N.bS.experiments,"html5_player_min_build_cl")>752956574&&WV_(N,"oldplayer");KEK(this)}else this.videoData.I_||this.videoData.Vg?this.WM&&g.nM(this.iS)&&this.videoData.isLivePlayback||(this.videoData.I_?r57(this.videoData):(N=this.SV(),N.qoe&&(N=N.qoe,Gk(N,"protected"),N.provider.videoData.B?N.xo():N.provider.videoData.subscribe("dataloaded",N.xo,N)),b07(this.videoData))):!this.videoData.loading&& this.AK&&afO(this)}; g.J.dM=function(N){this.yy=N;this.loader&&(qYu(this.loader,new g.XT(N)),this.WL("sdai",{sdsstm:1}))}; g.J.wu=function(){return null}; g.J.lf=zu(16);g.J.isFullscreen=function(){return this.visibility.isFullscreen()}; g.J.isBackground=function(){return this.visibility.isBackground()}; g.J.AZ=function(){var N=this;this.logger.debug("Updating for format change");CP(this).then(function(){return vh(N)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.J.oC=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.jW();this.dZ()&&!g.u(this.playerState,128)&&(this.p9.Aa()||(this.p9.start(),this.videoData.v2?this.W5(Yc(this.playerState,4)):this.W5(Yc(Yc(this.playerState,8),1))),Qim(this))}; g.J.Ie=function(){return this.IY.finished}; g.J.sendAbandonmentPing=function(){g.u(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Py(!0),jiI(this),g.oH.gG(this.iW))}; g.J.n1=function(N,z){N=N===void 0?!0:N;(z===void 0||z)&&this.mediaElement&&this.mediaElement.pause();this.W5(N?new g.Ro(14):new g.Ro)}; g.J.J9=function(){this.SV().HB()}; g.J.Ij=function(N,z,v,R,C,Z){this.logger.debug(function(){return"set player error: ec="+N+", detail="+C}); var Y,Q;g.qP(b95,v)?Y=v:v?Q=v:Y="GENERIC_WITHOUT_LINK";R=(R||"")+(";a6s."+aN());if(N==="auth"||N==="drm.auth"||N==="heartbeat.stop")v&&(R+=";r."+v.replaceAll(" ","_")),Z&&(R+="sr."+Z.replaceAll(" ","_"));z={errorCode:N,errorDetail:C,errorMessage:Q||g.EG[Y]||"",XJ:Y,Hp:Z||"",ly:R,mO:z,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=N;Z5(this,"dataloaderror");this.W5(Zo(this.playerState,128,z));g.oH.gG(this.iW);Y2(this);this.hx()}; g.J.kA=function(N){this.FK=this.FK.filter(function(z){return N!==z}); this.logger.debug(function(){return"set preroll ready for "+N}); g.uT(this.videoData)&&!this.bG()&&this.dW.CU("pl_pr");this.p9.Aa()&&Qim(this)}; g.J.bG=function(){var N;(N=!!this.FK.length)||(N=this.KO.V.array[0],N=!!N&&N.start<=-0x8000000000000);return N}; g.J.N$=function(){return this.tI.N$()}; g.J.isPlaying=function(){return this.playerState.isPlaying()}; g.J.V1=function(){return this.playerState.V1()&&this.videoData.v2}; g.J.getPlayerState=function(){return this.playerState}; g.J.DQ=function(N){var z;(z=this.loader)==null||z.DQ(N)}; g.J.Y4=function(N){var z;(z=this.loader)==null||z.Y4(N)}; g.J.getPlayerType=function(){return this.playerType}; g.J.getPreferredQuality=function(){if(this.x$){var N=this.x$;N=N.videoData.rk.compose(N.videoData.YU);N=lL(N)}else N="auto";return N}; g.J.gK=zu(22);g.J.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.J.setMediaElement=function(N){this.logger.debug("set media element");if(this.mediaElement&&N.Nu()===this.mediaElement.Nu()&&(N.isView()||this.mediaElement.isView())){if(N.isView()||!this.mediaElement.isView())this.p_(),this.mediaElement=N,this.mediaElement.kT=this,Ur2(this),this.tI.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.OJ();if(!this.playerState.isError()){var z=iE(this.playerState,512);g.u(z,8)&&!g.u(z,2)&&(z=Yc(z,1));N.isView()&&(z=iE(z,64));this.W5(z)}this.mediaElement= N;this.mediaElement.kT=this;!g.nM(this.iS)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Ur2(this);this.tI.setMediaElement(this.mediaElement);this.X("html5_prewarm_media_source")&&!this.e$.hY()&&U2x(this.mediaElement)}}; g.J.OJ=function(N,z,v){N=N===void 0?!1:N;z=z===void 0?!1:z;v=v===void 0?!1:v;this.logger.debug("remove media element");if(this.mediaElement){var R=this.getCurrentTime();R>0&&(this.tI.Z=R);this.tI.setMediaElement(null);!N&&this.nO()?Teu(this):this.xa(v);this.loader&&(H8(this.loader),QK(this,z));this.Gp.stop();if(this.mediaElement&&(!this.p9.Aa()&&!this.E_()||this.playerState.isError()||g.u(this.playerState,2)||this.W5(Yc(this.playerState,512)),this.mediaElement)){this.p_();if(N||!this.mediaElement.isView())this.dW.bH("mesv_s"), this.mediaElement.stopVideo(),LP(this);this.mediaElement=this.mediaElement.kT=null}}}; g.J.playVideo=function(N,z){N=N===void 0?!1:N;z=z===void 0?!1:z;var v=this,R,C,Z,Y,Q,L;return g.S(function(K){if(K.W==1){v.logger.debug("start play video");var l=window.google_image_requests;l&&l.length>10&&(window.google_image_requests=l.slice(-10));if(g.u(v.playerState,128))return K.return();if(v.e$.PQ())return v.publish("signatureexpired"),K.return();v.mediaElement&&go(v.SV());v.oC();(g.u(v.playerState,64)||N)&&v.W5(Yc(v.playerState,8));return v.p9.finished&&v.mediaElement?v.x$||!v.Uk?K.Zp(2): g.k(K,v.Uk,3):K.return()}if(K.W!=2&&g.u(v.playerState,128))return K.return();if(!v.videoData.Z)return v.videoData.isLivePlayback&&!g.Cu(v.iS.B,!0)?(R="html5.unsupportedlive",C=2):(R=v.videoData.Uu()?"fmt.unplayable":"fmt.noneavailable",C=1),g.PN(Error("selectableFormats")),v.Ij(R,C,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),K.return();if(v.jN()&&v.videoData.Z.V)return v.logger.debug("rebuild playbackData for airplay"),K.return(CP(v));if(Il(v))l=v.tI,Le(l.videoData)?!l.isAtLiveHead(l.getCurrentTime())&& l.N$()&&l.kT.seekTo(Infinity,{Np:"seektimeline_peggedToLive",seekSource:34}):g.uT(l.videoData)&&l.getCurrentTime()Y;if(!Q||!Y){Z&&Q&&(R=Math.max(R,Z));var L;Z=dFf(z,(L=C.V)==null?void 0:L.videoInfos);L=z.kT.getPlaybackRate();L>1&&Z&&(L=HgU(z.iS.B,C.V.videoInfos,L),N.V!==0&& L=480;if(z.X("html5_exponential_memory_for_sticky")){K=z.iS.HH;l=1;var W=W===void 0?!1:W;v8U(K,"sticky-lifetime");K.values["sticky-lifetime"]&&K.Q8["sticky-lifetime"]||(K.values["sticky-lifetime"]=0,K.Q8["sticky-lifetime"]=0);W&&Tx(K,"sticky-lifetime")>.0625&&(l=K.Q8["sticky-lifetime"]*2); K.values["sticky-lifetime"]+=1*Math.pow(2,K.V/l);K.Q8["sticky-lifetime"]=l;K.N.start()}if(z.X("html5_perf_cap_override_sticky")){W=z.Z;K=z.X("html5_perserve_av1_perf_cap");K=K===void 0?!1:K;if(K===void 0?0:K){l=IJ();N=g.f(Object.keys(l));for(z=N.next();!z.done;z=N.next())z=z.value,z.indexOf("1")!==0&&delete l[z];g.ka("yt-player-performance-cap",l,2592E3)}else g.VJ("yt-player-performance-cap");hx2(K);if(K){K=g.f(V3.keys());for(l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("1")||V3.delete(l); K=g.f(ZZ.values());for(l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("1")||ZZ.delete(l);K=g.f(W.keys());for(l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("1")||W.delete(l)}else V3.clear(),ZZ.clear(),W.clear()}}}this.loader&&(W=this.loader,v=v||"",W.policy.V?I5(W.Z.V,v):I5(W.V.B,v));this.z8()}; g.J.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.V?lL(this.videoData.rk):Kf[tG()]}; g.J.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.J.setUserAudio51Preference=function(N,z){this.getUserAudio51Preference()!==N&&(this.WL("toggle51",{pref:N}),g.ka("yt-player-audio51",N,z?31536E3:2592E3),this.AZ())}; g.J.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.J.setProximaLatencyPreference=function(N){var z=this.getProximaLatencyPreference();this.WL("proxima",{pref:N});g.ka("yt-player-proxima-pref",N,31536E3);z!==N&&(N=this.tI,N.ET=!0,N.kT.seekTo(Infinity,{Np:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.J.getProximaLatencyPreference=function(){var N;return(N=O_())!=null?N:0}; g.J.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.J.eD=function(){this.videoData.videoId?this.Iu.eD(this.videoData):this.WL("povid",{})}; g.J.E4=function(){this.videoData.videoId?this.Iu.E4(this.videoData):this.WL("piavid",{})}; g.J.z8=function(){if(!this.HL()&&!g.u(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.V)zG(this);else{var N=a7(this),z=this.videoData;a:{var v=this.videoData.Fy;if(N.V){for(var R=g.f(v),C=R.next();!C.done;C=R.next()){C=C.value;var Z=C.getInfo(),Y=g.hx[Z.video.quality];if((!N.Z||Z.video.quality!=="auto")&&Y<=N.V){v=C;break a}}v=v[v.length-1]}else v=v[0]}z.xT=v;eSf(this,N.reason,gD7(this,this.videoData.xT))}if(this.X("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.tI.PL= !1,this.playVideo()}}; g.J.XX=function(N,z){if(this.HL()||g.u(this.playerState,128))return!1;var v,R=!((v=this.videoData.Z)==null||!v.V);v=R&&z?this.getCurrentTime()-this.fV():NaN;if(this.iS.experiments.j8("html5_record_audio_format_intent")){var C=this.SV();if(C.qoe){C=C.qoe;var Z=[N.u$.id,isNaN(v)?"m":"t"];g.LF(C,g.I4(C.provider),"afi",Z)}}if(R)return z&&(R=g2f(this.tI),this.WL("aswh",{id:N.id,xtags:N.xtags,bh:R.toFixed(3)})),this.loader.setAudioTrack(N,v,z),!0;if(yk_(this)){a:{z=this.mediaElement.audioTracks();for(R= 0;R=0?N:this.getCurrentTime()}; g.J.LG=function(){var N;return((N=this.videoData.V)==null?0:N.LG)?this.videoData.V.LG(this.getCurrentTime()-this.fV()):this.mediaElement&&(N=this.mediaElement.sM())&&(N=N.getTime(),!isNaN(N))?N/1E3+this.getCurrentTime():NaN}; g.J.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.fV():this.ZC()?this.ZC():0}; g.J.oe=function(){var N=new qtu;if(this.loader){var z=this.iS.schedule,v=this.iS.LV();v=v===void 0?!1:v;N.wc=z.PL;N.eq=z.UT;N.bandwidthEstimate=fu(z);if(v){v=(z.Y.fU()*1E3).toFixed();var R=(z.Rd.fU()*1E3).toFixed(),C=eP(z).toFixed(2),Z=((z.L.fU()||0)*1E9).toFixed(2),Y=z.Z.fU().toFixed(0),Q=z.Id.fU().toFixed(0),L=z.J.percentile(.5).toFixed(2),K=z.J.percentile(.92).toFixed(2),l=z.J.percentile(.96).toFixed(2),W=z.J.percentile(.98).toFixed(2);z.V?z.V.reset():z.V=new jP;z.V.add(z.K0);z.V.add(z.interruptions.length); for(var G=0,x=z.interruptions.length-1;x>=0;x--){var e=z.interruptions[x];z.V.add(e-G);G=e}G=0;for(x=z.N.length-1;x>=0;x--){e=z.N[x];var d=e.stamp/36E5;z.V.add(d-G);G=d;z.V.add(e.net/1E3);z.V.add(e.max)}z=z.V.Jy();N.V={ttr:v,ttm:R,d:C,st:Z,bw:Y,abw:Q,v50:L,v92:K,v96:l,v98:W,"int":z}}cfv(this.loader,N)}else this.mediaElement&&(N.Ny=NQ(this.mediaElement));N.wc=this.wc;N.eq=this.eq;N.Z=this.isAtLiveHead()&&this.isPlaying()?YGm(this):NaN;return N}; g.J.vk=function(N,z){this.eq+=N;this.wc+=z}; g.J.lj=function(){return this.mediaElement?g.mw(this.videoData)?1:$6(this.videoData)?this.isAtLiveHead()||this.N$()?1:this.tI.lj():this.mediaElement.lj():0}; g.J.JE=function(){var N=this.uT,z=Mw(N,"bandwidth"),v=Mw(N,"bufferhealth"),R=Mw(N,"livelatency"),C=Mw(N,"networkactivity"),Z=qw(N,"bandwidth"),Y=qw(N,"bufferhealth"),Q=qw(N,"livelatency");N=qw(N,"networkactivity");var L=this.WU(),K=L.droppedVideoFrames;L=L.totalVideoFrames;var l=this.getCurrentTime();if(this.E6){var W="IT/"+(this.E6.V.getInfo()+"/"+lL(this.Sn()));W+="/"+this.E6.getInfo()}else W="";var G=this.isGapless(),x=this.kG(),e=this.ma(),d=g.jn(this),T=this.getPlayerState(),m=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var n=0;var P="";if(this.yy){if(this.yy.RU){P="D,";break a}n=this.yy.IM;P=this.yy.tT.substring(0,4)}n>0?(n="AD"+n+", ",P&&(n+=P+", "),P=n):P=""}return{gS:Z,ao:Y,currentTime:l,RK:W,droppedVideoFrames:K,isGapless:G,kG:x,XE:e,ws:z,EY:v,T1:R,J4:C,ac:Q,FI:N,Lx:d,playerState:T,jk:m,fd:P,totalVideoFrames:L}}; g.J.TE=function(N){var z={};if(N===void 0?0:N){Object.assign(z,this.SV().TE());this.mediaElement&&(Object.assign(z,this.mediaElement.TE()),N=this.WU(),z.dvf=N.droppedVideoFrames,z.tvf=N.totalVideoFrames);this.loader&&Object.assign(z,this.loader.TE());this.E6&&(z.drm=JSON.stringify(this.E6.TE()));z.state=this.playerState.state.toString(16);g.u(this.playerState,128)&&(z.debug_error=JSON.stringify(this.playerState.BP));this.bG()&&(z.prerolls=this.FK.join(","));this.videoData.Ui&&(z.ismb=this.videoData.Ui); this.videoData.latencyClass!=="UNKNOWN"&&(z.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(z.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)z.is_mosaic=1;this.videoData.cotn&&(z.is_offline=1,z.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(z.playerResponseCpn=this.videoData.playerResponseCpn);this.Iu.isOrchestrationLeader()&&(z.leader=1);this.videoData.isLivePlayback&& (this.videoData.V&&Ug(this.videoData.V)&&(z.segduration=Ug(this.videoData.V)),N=this.tI,z.lat=N.L?LvY(N.L.N):0,z.liveutcstart=this.videoData.liveUtcStartSeconds);z.relative_loudness=this.videoData.Lr.toFixed(3);if(N=g.jn(this))z.optimal_format=N.video.qualityLabel;z.user_qual=tG();z.release_version=a[50]}z.debug_videoId=this.videoData.videoId;return z}; g.J.addCueRange=function(N){this.Z_([N])}; g.J.removeCueRange=function(N){this.KO.xz([N])}; g.J.Nw=function(){this.KO.sync()}; g.J.f7=function(N,z){return this.KO.f7(N,z)}; g.J.Z_=function(N,z){this.KO.QT(N,z)}; g.J.P9=function(N){this.KO.xz(N)}; g.J.GI=function(){return this.KO.GI()||[]}; g.J.z5=function(){return this.Ci}; g.J.jN=function(){return this.visibility.jN()}; g.J.e1=function(){this.mediaElement&&this.mediaElement.e1()}; g.J.COp=function(){Z5(this)}; g.J.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.J.p_=function(){g.Be(this.kU)}; g.J.r0=function(){this.G4();this.publish("onLoadProgress",this.lj())}; g.J.sC=function(N){var z=N.target.Tl();if(this.mediaElement&&this.mediaElement.Tl()&&this.mediaElement.Tl()===z){hSu(this,N.type);switch(N.type){case "error":var v=vR(this.mediaElement)||"",R=this.mediaElement.VX();if(v==="capability.changed"){this.X("html5_restart_on_capability_change")?(this.WL("capchg",{msg:R}),this.YA(!0)):CP(this);return}if(this.mediaElement.hasError()&&Q4_(this.e$,v,{msg:R}))return;if(this.isBackground()&&this.mediaElement.Xk()===4){this.hx();ie(this,"unplayable");return}break; case "durationchange":v=this.mediaElement.getDuration();isFinite(v)&&(!this.uS||v>0)&&v!==1&&this.wK(v);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());ZPf(this.KO);this.SV().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":oDu(this);this.publish("onLoadedMetadata");AkY(this);v=this.LG();this.videoData.k6&&(this.videoData.k6=v);break;case "loadstart":AkY(this);break;case "progress":case "suspend":g.LM(this.iS.experiments, "html5_progress_event_throttle_ms")>0?this.bA.tj():this.r0();break;case "playing":this.dW.bH("plev");this.kI&&!Il(this)&&(this.kI=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Np:"videoplayer_onPlaying"})));break;case "timeupdate":v=this.mediaElement&&!this.mediaElement.getCurrentTime();R=this.mediaElement&&this.mediaElement.Vi()===0;if(v&&(!this.lD||R))return;this.lD=this.lD||!!this.mediaElement.getCurrentTime();Beu(this);this.G4();if(!this.mediaElement|| this.mediaElement.Tl()!==z)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.fN().length>0&&this.mediaElement.xA().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.X("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Vi()>2||!this.mediaElement.isSeeking()&&jx(this.mediaElement.xA(),this.mediaElement.getCurrentTime()))&&(v=this.mediaElement.TE(), v.bh=NQ(this.mediaElement).toFixed(3),this.WL("uwe",v));break;case "resize":oDu(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.JX&&g.u(this.playerState,8)&&!g.u(this.playerState,1024)&&this.getCurrentTime()===0&&g.yl){ie(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Tl()===z){DM_(this.tI,N);this.publish("videoelementevent",N);z=this.playerState;R=this.QS;var C= this.mediaElement,Z=this.iS.experiments;v=this.videoData.clientPlaybackNonce;if(!g.u(z,128)){var Y=z.state;C=C?C:N.target;var Q=C.getCurrentTime();if(!g.u(z,64)||N.type!=="ended"&&N.type!=="pause"){var L=C.getDuration();L=C.isEnded()||Q>1&&Math.abs(Q-L)<1.1;var K=N.type==="pause"&&C.isEnded();Q=N.type==="ended"||N.type==="waiting"||N.type==="timeupdate"&&!g.u(z,4)&&!P1(R,Q);if(K||L&&Q)C.Nq()>0&&C.Tl()&&(Y=14);else switch(N.type){case "error":vR(C)&&(Y|=128);break;case "pause":g.u(z,256)?(Y^=256)|| (Y=64):g.u(z,32)||g.u(z,2)||g.u(z,4)||(Y=4,g.u(z,1)&&g.u(z,8)&&(Y|=1));break;case "playing":Z=Y;Y=(Y|8)&-1093;Z&4?(Y|=1,Cg(R,C,!0)):P1(R,C.getCurrentTime())&&(Y&=-2);g.u(z,1)&&Cg(R,C)&&(Y|=1);break;case "seeking":Y|=16;g.u(z,8)&&(Y|=1);Y&=-3;break;case "seeked":Y&=-17;Cg(R,C,!0);break;case "waiting":g.u(z,2)||(Y|=1);Cg(R,C);break;case "timeupdate":Z=g.u(z,16);Q=g.u(z,4);(g.u(z,8)||Z)&&!Q&&P1(R,C.getCurrentTime())&&(Y=8);Cg(R,C)&&(Y|=1);break;case "progress":case "suspend":Z.j8("html5_track_underruns_on_progress")&& Cg(R,C)}}R=Y;Y=null;R&128&&(Y=N.target,C=vR(Y),Z=1,C?(C==="capability.changed"&&(Z=2),Q="GENERIC_WITHOUT_LINK",L=Y.TE(),L.mediaElem="1",/AUDIO_RENDERER/.test(Y.VX())&&(Q="HTML5_AUDIO_RENDERER_ERROR"),Y={errorCode:C,errorMessage:g.EG[Q]||"",XJ:Q,ly:n_(L),mO:Z,cpn:z.BP?z.BP.cpn:""}):Y=null,Y&&(Y.cpn=v));z=Zo(z,R,Y)}!g.u(this.playerState,1)&&g.u(z,1)&&EDf(this,"evt"+N.type);this.W5(z)}}}; g.J.H0O=function(N){N=N.V.availability==="available";N!==this.Ci&&(this.Ci=N,this.publish("airplayavailabilitychange"))}; g.J.sdO=function(){var N=(0,g.I)(),z=this.mediaElement.jN();this.WL("airplay",{ia:z});!z&&!isNaN(this.Vn)&&N-this.Vn<2E3||(this.Vn=N,z!==this.jN()&&(N=this.visibility,N.V!==z&&(N.V=z,N.iI()),this.WL("airplay",{rbld:z}),this.AZ()),this.publish("airplayactivechange"))}; g.J.Tq=function(N){if(this.loader){var z=this.loader,v=z.W,R=z.getCurrentTime(),C=Date.now()-v.J;v.J=NaN;v.WL("sdai",{adfetchdone:N,d:C});N&&!isNaN(v.L)&&v.W!==3&&Sa(v.loader,R,v.L,v.G);v.policy.Z?v.B=NaN:v.N=NaN;Vc(v,4,v.W===3?"adfps":"adf");H8(z)}}; g.J.Ok=function(){g.e5(this.Hf);this.Gp.stop();this.videoData.tO=!0;this.iS.MQ=!0;this.iS.zE=0;var N=this.e$;if(N.videoData.W){var z=N.bS.B,v=N.videoData.W.JO;z.N.has(v)&&(z.N.delete(v),z.W=!0)}N.V.stop();this.JV();g.u(this.playerState,8)&&this.W5(iE(this.playerState,65));this.WM=!1;t_K(this.SV());g.qv(this.Rl);this.publish("playbackstarted");(N=g.qx("yt.scheduler.instance.clearPriorityThreshold"))?N():vz(0)}; g.J.JV=function(){var N=this.Iu.qv(),z={},v={};!bv("pbs",this.dW.timerName)&&Um.measure&&Um.getEntriesByName&&(Um.getEntriesByName("mark_nr")[0]?Xdm("mark_nr"):Xdm());N.videoId&&(z.videoId=N.videoId);N.clientPlaybackNonce&&!this.X("web_player_early_cpn")&&(z.clientPlaybackNonce=N.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(v.isPausedOnLoad=!0);v.itag=N.W?Number(N.W.itag):-1;N.o4&&(v.preloadType=String(this.qm?2:1));z.liveStreamMode=xA8[dw(N)];z.playerInfo=v;this.dW.infoGel(z); if(this.loader){N=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(N.Z&&(z=window.performance.getEntriesByName(N.Z),z.length&&(z=z[0],N.tick("vri",z.fetchStart),N.tick("vdns",z.domainLookupEnd),N.tick("vreq",z.requestStart),N.tick("vrc",z.responseEnd))),N.W&&(z=window.performance.getEntriesByName(N.W),z.length&&(z=z[0],N.tick("ari",z.fetchStart),N.tick("adns",z.domainLookupEnd),N.tick("areq",z.requestStart),N.tick("arc",z.responseEnd))));N=N.ticks;for(var R in N)N.hasOwnProperty(R)&& this.dW.tick(R,N[R])}}; g.J.G4=function(N){var z=this;N=N===void 0?!1:N;if(this.mediaElement&&this.videoData){phO(this.tI,this.isPlaying());var v=this.getCurrentTime();!this.loader||g.u(this.playerState,4)&&g.mw(this.videoData)||g.u(this.playerState,32)&&iM(this.videoData)||zBO(this.loader,v);v>5&&(this.tI.Z=v);var R=g.zJ();R?g.oH.gG(this.iW):g.xA(this.iW);var C=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!C||N1(this.videoData))&&!g.u(this.playerState,128)){var Z=function(){if(z.mediaElement&&!g.u(z.playerState, 128)){z.iS.LV()&&hSu(z,"pfx");var Y=z.getCurrentTime();z.X("html5_buffer_underrun_transition_fix")&&(Y-=z.fV());var Q=NQ(z.mediaElement),L=g.u(z.playerState,8),K=P1(z.QS,Y),l=P4Y(z.QS,Y,(0,g.I)(),Q);L&&K?z.W5(iE(z.playerState,1)):L&&l?(L=z.getDuration(),K=Le(z.videoData),L&&Math.abs(L-Y)<1.1?(z.WL("setended",{ct:Y,bh:Q,dur:L,live:K}),z.mediaElement.hs()?(z.logger.debug("seek to 0 because of looping"),z.seekTo(0,{Np:"videoplayer_loop",seekSource:37})):z.n1()):(z.playerState.isBuffering()||EDf(z,"progress_fix"), z.W5(Yc(z.playerState,1)))):(L&&!K&&!l&&Y>0&&(L=(Date.now()-z.Sd)/1E3,K=z.getDuration(),Y>K-1&&z.WL("misspg",{t:Y.toFixed(2),d:K.toFixed(2),r:L.toFixed(2),bh:Q.toFixed(2)})),z.playerState.isPaused()&&z.playerState.isBuffering()&&NQ(z.mediaElement)>5&&z.W5(iE(z.playerState,1)));z.G4()}}; this.mediaElement.fN().length===0?this.iW=R?g.oH.Mo(Z,100):g.W9(Z,100):this.iW=R?g.oH.Mo(Z,500):g.W9(Z,500)}this.videoData.Dx=v;!N&&this.isPlaying()&&pbY(this);gIm(this.Xn,this.x$,this.O6(),this.isBackground())&&zG(this);this.publish("progresssync",N);C&&N1(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.J.FL=function(){this.Ij("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.J.ma=function(){return this.SV().ma()}; g.J.Tf=function(){return this.loader?this.loader.Tf():fu(this.iS.schedule,!0)}; g.J.W5=function(N){if(!g.ao(this.playerState,N)){this.logger.debug(function(){return"Setting state "+N.toString()}); var z=new g.KZ(N,this.playerState);this.playerState=N;HL2(this);var v=!this.Bf.length;this.Bf.push(z);var R=this.mediaElement&&this.mediaElement.isSeeking();R=z.oldState.state===8&&!R;g.WW(z,1)&&R&&g.u(this.playerState,8)&&!g.u(this.playerState,64)&&this.loader&&(sDb(this.loader),this.mediaElement&&NQ(this.mediaElement)>=5&&B$7(this.Xn,this.x$)&&zG(this));(R=g.LM(this.iS.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.u(N,1)&&(g.u(N,8)||g.u(N,16))?this.VP.start(R):this.VP.stop();(l4(z, 8)<0||g.WW(z,1024))&&this.Gp.stop();!g.WW(z,8)||this.videoData.tO||g.u(z.state,1024)||this.Gp.start();g.u(z.state,8)&&l4(z,16)<0&&!g.u(z.state,32)&&!g.u(z.state,2)&&this.playVideo();g.u(z.state,2)&&$6(this.videoData)&&(this.wK(this.getCurrentTime()),this.G4(!0));g.WW(z,2)&&(this.Py(!0),this.iS.LV()&&this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&iM(this.videoData)&&this.videoData.V&&(R={minst:""+this.videoData.V.Lf,cminst:""+(this.videoData.V.Mp()+this.fV()),maxst:""+this.videoData.V.ip, hts:""+this.videoData.V.Vp,cmaxst:""+(this.videoData.V.ZC()+this.fV())},this.WL("sabrSeekableBoundaries",R)));g.WW(z,128)&&this.hx();this.videoData.V&&this.videoData.isLivePlayback&&!this.v$&&(l4(z,8)<0?eTK(this.videoData.V):g.WW(z,8)&&this.videoData.V.resume());AoO(this.tI,z);IZu(this.SV(),z);if(v&&!this.HL())try{for(var C=g.f(this.Bf),Z=C.next();!Z.done;Z=C.next()){var Y=Z.value;YR2(this.KO,Y);this.publish("statechange",Y)}}finally{this.Bf.length=0}}}; g.J.DA=function(){this.dW.tick("qoes")}; g.J.Yb=function(){this.tI.Yb()}; g.J.TT=function(N,z,v,R){a:{var C=this.e$;R=R===void 0?"LICENSE":R;v=v.substring(0,256);var Z=$z(z);N==="drm.keyerror"&&this.E6&&this.E6.W.keys.length>1&&C.N<96&&(N="drm.sessionlimitexhausted",Z=!1);var Y=C.bS.experiments.j8("html5_retry_on_drm_unavailable"),Q=C.bS.experiments.j8("html5_retry_on_drm_key_error"),L=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(Y&&N==="drm.unavailable"||Q&&N==="drm.keyerror"&&!v.match(L))C.oP("qoe.restart",{retryOnDrmError:1,e:N,detail:v}),C.kT.YA(!0);else{if(Z)if(C.videoData.W&& C.videoData.W.video.isHdr())xF7(C,N);else{if(C.kT.Ij(N,z,R,v),iRU(C,{detail:v}))break a}else C.oP(N,{detail:v});N==="drm.sessionlimitexhausted"&&(C.WL("retrydrm",{sessionLimitExhausted:1}),C.N++,SGu(C.kT))}}}; g.J.K9o=function(){var N=this,z=g.LM(this.iS.experiments,"html5_license_constraint_delay"),v=N0();z&&v?(z=new g.cn(function(){N.z8();Z5(N)},z),g.b(this,z),z.start()):(this.z8(),Z5(this))}; g.J.sS=function(N){this.publish("heartbeatparams",N)}; g.J.sN=function(N){this.WL("keystatuses",kqY(N));var z="auto",v=!1;this.videoData.W&&(z=this.videoData.W.video.quality,v=this.videoData.W.video.isHdr());a:{switch(z){case "highres":case "hd2880":z="UHD2";break;case "hd2160":case "hd1440":z="UHD1";break;case "hd1080":case "hd720":z="HD";break;case "large":case "medium":case "small":case "light":case "tiny":z="SD";break;default:z="";break a}v&&(z+="HDR")}z=MF(N)?w$(N,z):N.N.includes(z);this.videoData.kz=N.kz;if(this.X("html5_enable_vp9_fairplay")){if(v)if(N.L){var R; if((R=this.E6)==null?0:Og(R.V))if((v=this.E6)==null)v=0;else{for(var C=R=void 0,Z=g.f(v.W.values()),Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,R||(R=V27(Y,"SD")),C||(C=V27(Y,"AUDIO"));v.VE({sd:R,audio:C});v=R==="output-restricted"||C==="output-restricted"}else v=!z;if(v){this.WL("drm",{dshdr:1});xF7(this.e$);return}}else{this.videoData.CI||(this.videoData.CI=!0,this.WL("drm",{dphdr:1}),this.YA(!0));return}var Q;if((Q=this.E6)==null?0:Og(Q.V))return}else if(Q=N.L&&z,v&&!Q){xF7(this.e$);return}z||w$(N, "AUDIO")&&w$(N,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),N=kqY(N),this.vt?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.X("html5_report_fatal_drm_restricted_error_killswitch")||this.Ij("drm.keyerror",2,void 0,"info."+N)):(this.vt=!0,this.oP(new mT("qoe.restart",Object.assign({},{retrydrm:1},N))),zG(this),SGu(this)))}; g.J.RYT=function(){if(!this.videoData.tO&&this.mediaElement&&!this.isBackground()){var N="0";this.mediaElement.Vi()>0&&NQ(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.V&&(this.W5(Yc(this.playerState,1)),EDf(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),N="1");HL2(this);var z=this.videoData.Z;N={restartmsg:N,mfmt:!RD(this.videoData),mdrm:!(!(z&&z.videoInfos&&z.videoInfos.length&&z.videoInfos[0].CG)||this.E6),mfmtinfo:!this.videoData.W,prerolls:this.bG()?this.FK.join(","): "0"};if(this.E6){z=this.E6;if(z.W.size<=0){var v="ns;";z.J||(v+="nr;");z=v+="ql."+z.Z.length}else z=kqY(z.W.values().next().value),z=n_(z);N.drmp=z}var R;Object.assign(N,((R=this.loader)==null?void 0:R.TE())||{});var C;Object.assign(N,((C=this.mediaElement)==null?void 0:C.TE())||{});this.SV().oP("qoe.start15s",n_(N));this.publish("loadsofttimeout")}}; g.J.wK=function(N){this.videoData.lengthSeconds!==N&&(this.videoData.lengthSeconds=N,Z5(this))}; g.J.Py=function(N,z){var v=this;N=N===void 0?!1:N;if(!this.gr)if(bv("att_s","player_att")||Om("att_s",void 0,"player_att"),this.X("use_rta_for_player"))(function(){var C,Z,Y,Q;return g.S(function(L){switch(L.W){case 1:if(!(C=N)){L.Zp(2);break}return g.k(L,g.dqO(),3);case 3:C=!L.V;case 2:if(C)return L.return();g.d_(L,4);Z=u6u(v.SV());if(!Z)throw Error();Y={};return g.k(L,g.fKx((Y.cpn=v.videoData.clientPlaybackNonce,Y.encryptedVideoId=v.videoData.videoId||"",Y),3E4),6);case 6:Q=L.V;if(v.gr)throw Error(); if(!Q.challenge)throw g.PN(Error("Not sending attestation ping; no attestation challenge string")),Error();v.gr=!0;var K=[Q.challenge];Q.error?K.push("r1c="+Q.error):Q.webResponse&&K.push("r1a="+Q.webResponse);var l;((l=Q.adblockReporting)==null?void 0:l.reportingStatus)!==void 0&&K.push("r6a="+Q.adblockReporting.reportingStatus);var W;((W=Q.adblockReporting)==null?void 0:W.broadSpectrumDetectionResult)!==void 0&&K.push("r6b="+Q.adblockReporting.broadSpectrumDetectionResult);Z(K.join("&"));Om("att_f", void 0,"player_att");g.nO(L,0);break;case 4:g.U2(L),Om("att_e",void 0,"player_att"),g.fO(L)}})})().then(function(){z==null||z()}); else{var R=new g.AY7(this.videoData);if("c1a"in R.Zo&&!g.hG.isInitialized()){Om("att_wb",void 0,"player_att");this.Kv===2&&Math.random()<.01&&g.PN(Error("Botguard not available after 2 attempts"));if(N)return;if(this.Kv<5){g.qv(this.Cv);this.Kv++;return}}(R=g.gVK(R))?(Om("att_f",void 0,"player_att"),rSK(this.SV(),R),this.gr=!0):Om("att_e",void 0,"player_att")}}; g.J.yg=function(N){N=N===void 0?!1:N;return Le(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.N$()||g.mw(this.videoData))?this.getCurrentTime():this.ZC(N)}; g.J.Ex=function(){return g.uT(this.videoData)?this.videoData.Mp():this.Mp()}; g.J.ZC=function(N){return this.tI.ZC(N===void 0?!1:N)}; g.J.Mp=function(){return this.tI.Mp()}; g.J.fV=function(){return this.tI?this.tI.fV():0}; g.J.getStreamTimeOffset=function(){return this.tI?this.tI.getStreamTimeOffset():0}; g.J.P2=function(){var N=0;this.iS.X("web_player_ss_media_time_offset")&&(N=this.getStreamTimeOffset()===0?this.fV():this.getStreamTimeOffset());return N}; g.J.setPlaybackRate=function(N){var z;this.playbackRate!==N&&dFf(this.Xn,(z=this.videoData.Z)==null?void 0:z.videoInfos)&&(this.playbackRate=N,zG(this));this.playbackRate=N;this.mediaElement&&this.mediaElement.setPlaybackRate(N)}; g.J.getPlaybackRate=function(){return this.playbackRate}; g.J.getPlaybackQuality=function(){var N="unknown";if(this.videoData.W&&(N=this.videoData.W.video.quality,N==="auto"&&this.mediaElement)){var z=this.vT();z&&z.videoHeight>0&&(N=EH(z.videoWidth,z.videoHeight))}return N}; g.J.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.J.TF=function(){this.SV().TF()}; g.J.sendVideoStatsEngageEvent=function(N,z){var v=this.SV();v.V?(v=F6(v.V,"engage"),v.PL=N,v.send(z)):z&&z()}; g.J.WP=function(N){return this.SV().WP(N)}; g.J.isAtLiveHead=function(N,z){z=z===void 0?!1:z;return Le(this.videoData)&&(this.TH||z)?this.tI.isAtLiveHead(N):!1}; g.J.RB=function(){var N=this.ZC(),z=this.getCurrentTime(),v;(v=!Le(this.videoData))||(v=this.tI,v=!(v.V&&v.V.Z));return v||this.N$()||isNaN(N)||isNaN(z)?0:Math.max(0,N-z)}; g.J.ke=function(N){(this.TH=N)||this.Gp.stop();this.videoData.V&&(N?this.videoData.V.resume():eTK(this.videoData.V));if(this.loader){var z=this.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&this.E_()&&this.videoData.isLivePlayback;N&&!z?this.loader.resume():QK(this,!0)}g.u(this.playerState,2)||N?g.u(this.playerState,512)&&N&&this.W5(iE(this.playerState,512)):this.W5(Yc(this.playerState,512));z=this.SV();z.qoe&&(z=z.qoe,g.LF(z,g.I4(z.provider),"stream",[N?"A":"I"]))}; g.J.Qn=function(N){N={n:N.name,m:N.message};this.SV().oP("player.exception",n_(N))}; g.J.Q2=zu(28);g.J.S$=zu(57);g.J.Sl=function(N){this.SV().Sl(N)}; g.J.O3=function(N){this.SV().O3(N)}; g.J.rh=function(N){this.SV().rh(N)}; g.J.Td=zu(34);g.J.lE=zu(40);g.J.Ek=function(N){this.SV().Ek(N)}; g.J.Z$=function(){this.WL("hidden",{},!0)}; g.J.WU=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.J.kV=function(){return this.loader?this.loader.kV():!0}; g.J.setLoop=function(N){this.loop=N;this.mediaElement&&!g.nM(this.iS)&&this.mediaElement.setLoop(N)}; g.J.hs=function(){return this.mediaElement&&!g.nM(this.iS)?this.mediaElement.hs():this.loop}; g.J.TK=function(N){this.WL("timestamp",{o:N.toString()});this.tI.TK(N)}; g.J.jK=function(N){this.dW.tick(N)}; g.J.CU=function(N){return this.dW.CU(N)}; g.J.bH=function(N){this.dW.bH(N)}; g.J.WL=function(N,z,v){v=v===void 0?!1:v;this.SV().WL(N,z,v)}; g.J.W9=function(N,z,v){v=v===void 0?!1:v;this.SV().WL(N,z,v)}; g.J.oP=function(N){this.SV().oP(N.errorCode,n_(N.details));N=N.errorCode;if(this.videoData.isLivePlayback&&(N==="qoe.longrebuffer"||N==="qoe.slowseek")||N==="qoe.restart"){N=this.loader?brY(this.loader.videoTrack):{};var z,v;this.WL("lasoe",Object.assign(this.loader?brY(this.loader.audioTrack):{},(z=this.uS)==null?void 0:(v=z.V)==null?void 0:v.rF()));var R,C;this.WL("lvsoe",Object.assign(N,(R=this.uS)==null?void 0:(C=R.W)==null?void 0:C.rF()))}}; g.J.wO=function(N,z,v){this.SV().wO(N,z,v)}; g.J.vM=function(N,z,v,R,C,Z,Y,Q){var L;if((L=this.videoData.V)!=null&&L.isLive){var K=z.playerType===2?z:N,l=N.videoData.videoId,W=z.videoData.videoId;if(l&&W){L=this.SV();if(L.qoe){var G=L.qoe,x=N.cpn,e=z.cpn,d=K.videoData.s9,T=G.provider.videoData.clientPlaybackNonce,m=G.provider.videoData.videoId,n=e!==T&&W!==m;T=x!==T&&l!==m;G.reportStats();G.adCpn&&G.adCpn!==x||(G.adCpn=T?x:"",G.nC=T?l:"",G.adFormat=T?d:void 0,e_(G,2,Z?4:C?2:0,e,W,R),G.reportStats(),G.adCpn=n?e:"",G.nC=n?W:"",G.adFormat=n?d: void 0,e_(G,2,Z?5:C?3:1,x,l,v),G.reportStats())}v=N.cpn;if(L.Z.has(v)){if(C=g.h(L.Z.get(v)),$9(C,!0).send(),mP(C),v!==L.provider.videoData.clientPlaybackNonce){StY(C);var P;(P=L.V)==null||g9b(P);L.Z.delete(v)}}else L.R4=L.provider.videoData.clientPlaybackNonce,L.R4&&L.V&&(L.Z.set(L.R4,L.V),$9(L.V).send(),mP(L.V));P=z.cpn;K=K.videoData;R-=this.P2();if(L.Z.has(P)){R=g.h(L.Z.get(P));var V=R.Z&&isNaN(R.B)?nF(R):NaN;R=V_m(R,!1);isNaN(V)||(R.L=V);R.send()}else R=cSm(L,L.provider,K,R),L.Z.set(P,R),E9u(R, new g.KZ(Yc(new g.Ro,8),new g.Ro)),AS7(R),(V=L.V)==null||mP(V);L.R4=P;if(this.X("html5_unify_csi_server_stitched_transition_logging")){if(L=this.dW,V=z.cpn,R=this.videoData.clientPlaybackNonce,z=z.videoData,N=(N.cpn===R?"video":"ad")+"_to_"+(V===R?"video":"ad"),N!=="video_to_ad"){R=N==="ad_to_video"?void 0:z;K=R==null?void 0:R.Lw;P={};if(z==null?0:z.G)P.cttAuthInfo={token:z.G,videoId:z.videoId};Y&&(P.startTime=Y);DT(N,P);var D,c,r;Y={targetVideoId:(D=z==null?void 0:z.videoId)!=null?D:"empty_video", targetCpn:V,adVideoId:(c=R==null?void 0:R.videoId)!=null?c:"empty_video",adClientPlaybackNonce:(r=K==null?void 0:K.cpn)!=null?r:R==null?void 0:R.clientPlaybackNonce};K&&(Y.adBreakType=K.adBreakType,Y.adType=K.adType);g.oc(Y,N);QG(L,Q,N)}}else D=this.dW,r=this.videoData.clientPlaybackNonce,c=z.videoData,r=(N.cpn===r?"video":"ad")+"_to_"+(z.cpn===r?"video":"ad"),N={},c.G&&(N.cttAuthInfo={token:c.G,videoId:c.videoId}),Y&&(N.startTime=Y),DT(r,N),g.oc({targetVideoId:c.videoId,targetCpn:z.cpn,isSsdai:!0}, r),D.iS.X("html5_enable_ssdai_transition_with_only_enter_cuerange")?Y||QG(D,Q,r):QG(D,Q,r)}}else this.logger.V(360717806,"SSTEvent for nonSS")}; g.J.vC=function(){var N=this.Iu,z=N.VQ;N.VQ=[];return z}; g.J.Cy=function(N){this.videoData.O$=!0;this.oP(new mT("sabr.fallback",N));this.YA(!0)}; g.J.FG=function(N,z){this.videoData.zP=!0;if(z===void 0||z)this.oP(new mT("qoe.restart",N)),this.YA(!0);this.videoData.Lb()&&this.X("html5_reload_caption_on_ssdai_fallback")&&this.Iu.z$()}; g.J.Yf=function(N){this.WL("sdai",{aftimeout:N});this.oP(new mT("ad.fetchtimeout",{timeout:N}))}; g.J.DF=function(N,z){this.WL("timelineerror",N);N=new mT("dai.timelineerror",N);z?this.Ij("dai.timelineerror",1,"RETRYABLE_ERROR",n_(N.details)):this.oP(N)}; g.J.C8=function(){return AS(this.SV())}; g.J.getPlayerSize=function(){return this.J1.getPlayerSize()}; g.J.nu=function(){return this.J1.nu()}; g.J.M2=function(){return this.dW}; g.J.j_=function(){return this.Iu.j_()}; g.J.getVolume=function(){return this.Iu.getVolume()}; g.J.e5=function(){return this.Iu.e5()}; g.J.isMuted=function(){return this.Iu.isMuted()}; g.J.us=function(){return this.Iu.us()}; g.J.ZH=function(){this.v$=!0}; g.J.X=function(N){return this.iS.X(N)}; g.J.wI=function(N,z,v,R,C){this.WL("xvt",{m:N,g:z?1:0,tt:v?1:0,np:R?1:0,c:C})}; g.J.qY=function(){var N;(N=this.loader)==null||N.resume()}; g.J.E_=function(){return g.J8(this.FK,"ad")}; g.J.j3=function(){var N=this.getCurrentTime(),z=N-this.fV();var v=this.mediaElement?Q4(this.mediaElement.xA()):0;v=Math.floor(Math.max(v-z,0))+100;var R;return((R=this.loader)==null?0:R.j3(z,v))?(this.WL("sdai",{skipad:1,ct:z.toFixed(3),adj:v.toFixed(3)}),iM(this.videoData)&&this.loader.seek(z+v,{seekSource:89,Np:"videoplayer_skipServerStitchedAd"}),tn_(this.tI,N),!0):!1}; g.J.LV=function(){return this.iS.LV()}; g.J.xw=function(){if(this.X("html5_generate_content_po_token"))return this.videoData.md||"";this.Iu.WI();return this.iS.L5||""}; g.J.CZ=function(){if(this.videoData.videoId)return this.videoData.b1}; g.J.uv=function(){return this.videoData.videoId}; g.J.wE=function(){return this.Iu.Eg}; g.J.tD=function(){return this.WM}; g.J.oY=function(){return this.Iu.oY()}; g.J.X$=function(N,z){this.tI.X$(N,z)}; g.J.iJ=function(){this.tI.iJ()}; g.J.ES=function(N,z){var v=this.X("html5_generate_content_po_token")?this.videoData:void 0;this.Iu.ES(N,z,v)}; g.J.IL=function(N,z){var v;(v=this.loader)==null||v.IL(N,z)}; g.J.Wh=function(){var N=this.GD();return!!N&&N.Wh()}; g.J.oI=function(N,z){this.SV().oI(N,z)}; g.J.D_=function(){return this.SV().D_()}; g.J.Q7=function(){return this.videoData.MJ}; g.J.kG=function(){return this.Iu.kG()}; g.J.Kh=function(){return this.Iu.Kh(this)}; g.J.Iv=function(N){var z;(z=this.loader)==null||z.Iv(N)}; g.J.qV=function(){var N;(N=this.loader)==null||N.qV()};g.y(DrU,q1);g.y(bLu,q1);g.J=bLu.prototype;g.J.seekToChapterWithAnimation=function(N){var z=this;if(g.G8(this.api)&&!(N<0)){var v=this.api.getVideoData(),R=v.cP;if(R&&N=0)return;z=~z;g.UZ(this.items,z,0,N);Rz(this.menuItems.element,N.element,z)}N.subscribe("size-change",this.SA,this);this.menuItems.publish("size-change")}; g.J.LU=function(N){N.unsubscribe("size-change",this.SA,this);this.HL()||(g.fm(this.items,N),this.menuItems.element.removeChild(N.element),this.menuItems.publish("size-change"))}; g.J.SA=function(){this.menuItems.publish("size-change")}; g.J.focus=function(){for(var N=0,z=0;z1&&g.UR(this)}; g.J.Z8=function(){e82(this);this.Vh&&(GOu(this),g.XM(this.element,this.size))}; g.J.vK=function(){var N=this.V.pop();xBK(this,N,this.V[this.V.length-1],!0)}; g.J.Ne=function(N){if(!N.defaultPrevented)switch(N.keyCode){case 27:this.pV();N.preventDefault();break;case 37:this.V.length>1&&this.vK();N.preventDefault();break;case 39:N.preventDefault()}}; g.J.focus=function(){this.V.length&&this.V[this.V.length-1].focus()}; g.J.AO=function(){g.D2.prototype.AO.call(this);this.G&&this.G.dispose();this.L&&this.L.dispose()};g.y(Bh,g.mv);Bh.prototype.open=function(N,z){this.initialize(N.items)&&this.uF(z,!!z)}; Bh.prototype.initialize=function(N){g.nP(this.k$);if(N===void 0||N.length===0)return!1;var z=N.length;N=g.f(N);for(var v=N.next();!v.done;v=N.next())this.dH(v.value,z--);return!0}; Bh.prototype.dH=function(N,z){N.menuNavigationItemRenderer?fEu(this,N.menuNavigationItemRenderer,z):N.menuServiceItemRenderer&&dBK(this,N.menuServiceItemRenderer,z)};g.y(Ao,sR);g.J=Ao.prototype;g.J.Pk=function(N){N.target!==this.dismissButton.element&&N.target!==this.overflowButton.element&&(this.pp(),this.onClickCommand&&this.C.Qp("innertubeCommand",this.onClickCommand))}; g.J.Xd=function(){this.enabled=!1;this.J.hide()}; g.J.aI=function(){return!!this.V&&this.enabled}; g.J.onVideoDataChange=function(N,z){this.FN(z);if(this.V){this.y0();a:if(!this.isCounterfactual){var v,R,C;this.banner.update({title:(v=this.V)==null?void 0:v.title,subtitle:(R=this.V)==null?void 0:R.subtitle,metadata:(C=this.V)==null?void 0:C.metadataText});var Z;this.onClickCommand=g.t((Z=this.V)==null?void 0:Z.onTap,Ss);var Y;if(N=g.t((Y=this.V)==null?void 0:Y.onOverflow,Ss))this.L=g.t(N,g_r);var Q;if((Q=this.V)==null?0:Q.thumbnailImage){var L,K;Y=((L=this.V)==null?void 0:(K=L.thumbnailImage)== null?void 0:K.sources)||[];if(Y.length===0)break a;this.thumbnailImage.update({url:Y[0].url})}else{var l;if((l=this.V)==null?0:l.thumbnailIconName){var W;this.thumbnailIcon.update({icon:(W=this.V)==null?void 0:W.thumbnailIconName})}}var G;this.shouldShowOverflowButton=!((G=this.V)==null||!G.shouldShowOverflowButton);var x;this.shouldHideDismissButton=!((x=this.V)==null||!x.shouldHideDismissButton)}var e;this.banner.element.setAttribute("aria-label",((e=this.V)==null?void 0:e.a11yLabel)||"");var d; this.S8=(d=this.V)==null?void 0:d.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Tcb(this)}}; g.J.W9L=function(){this.isVisible=!0;Tcb(this)}; g.J.A0p=function(){this.isVisible=!1;Tcb(this)}; g.J.C3=function(){sR.prototype.C3.call(this);this.W&&this.C.logVisibility(this.banner.element,this.isVisible)}; g.J.pp=function(){sR.prototype.pp.call(this,!1);this.W&&this.C.logClick(this.banner.element)}; g.J.Kj=function(N){this.G||(this.G=new Bh(this.C),g.b(this,this.G));var z,v;if((z=this.L)==null?0:(v=z.menu)==null?0:v.menuRenderer)this.G.open(this.L.menu.menuRenderer,N.target),N.preventDefault()}; g.J.FN=function(){}; g.J.y0=function(){}; g.J.AO=function(){this.C.s6("suggested_action_view_model");sR.prototype.AO.call(this)};g.y(gX,Ao); gX.prototype.FN=function(N){var z,v,R;this.productUpsellSuggestedActionViewModel=g.t((z=N.getWatchNextResponse())==null?void 0:(v=z.playerOverlays)==null?void 0:(R=v.playerOverlayRenderer)==null?void 0:R.suggestedActionViewModel,r05);var C;if((C=this.productUpsellSuggestedActionViewModel)==null?0:C.content){var Z;this.V=g.t((Z=this.productUpsellSuggestedActionViewModel)==null?void 0:Z.content,U8$)}var Y,Q;if(this.W=!!((Y=this.productUpsellSuggestedActionViewModel)==null?0:(Q=Y.loggingDirectives)==null? 0:Q.trackingParams)){var L,K;this.C.setTrackingParams(this.banner.element,((L=this.productUpsellSuggestedActionViewModel)==null?void 0:(K=L.loggingDirectives)==null?void 0:K.trackingParams)||null)}var l;this.isCounterfactual=!((l=this.productUpsellSuggestedActionViewModel)==null||!l.isCounterfactualServing)}; gX.prototype.y0=function(){var N=[],z,v=g.f(((z=this.productUpsellSuggestedActionViewModel)==null?void 0:z.ranges)||[]);for(z=v.next();!z.done;z=v.next()){var R=z.value;R&&(z=Number(R.startTimeMilliseconds),R=Number(R.endTimeMilliseconds),isNaN(z)||isNaN(R)||N.push(new g.zt(z,R,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.C.QT(N)};g.y(F2U,q1);g.y(pP,q1);pP.prototype.onVideoDataChange=function(N,z){var v=this;if(!Dk(z)&&(N==="newdata"&&mBu(this),this.W&&this.Z&&N==="dataloaded")){var R;x0(ZM(this.api.D(),(R=this.api.getVideoData())==null?void 0:g.hf(R)),function(C){v.Z=!1;kOx(v,C)})}}; pP.prototype.dD=function(){var N=this;if(g.nM(this.api.D())){var z,v=g.CW(this.api.D(),(z=this.api.getVideoData())==null?void 0:g.hf(z));return x0(Kb(v),function(R){var C=hW();HX(C,R);return N.api.dD(C)})}return Kb(this.api.dD())};g.y(g.Ph,g.Xj);g.J=g.Ph.prototype;g.J.open=function(){g.$2(this.b$,this.W)}; g.J.jI=function(N){PV2(this);var z=this.options[N];z&&(z.element.setAttribute("aria-checked","true"),this.Qy(this.WW(N)),this.Z=N)}; g.J.OA=function(N){g.nP(this.W);for(var z={},v=!1,R=0;R=0?this.V.playbackRate:1}catch(N){return 1}}; g.J.setPlaybackRate=function(N){this.getPlaybackRate()!==N&&(this.V.playbackRate=N);return N}; g.J.hs=function(){return this.V.loop}; g.J.setLoop=function(N){this.V.loop=N}; g.J.canPlayType=function(N,z){return this.V.canPlayType(N,z)}; g.J.isPaused=function(){return this.V.paused}; g.J.isSeeking=function(){return this.V.seeking}; g.J.isEnded=function(){return this.V.ended}; g.J.Zh=function(){return this.V.muted}; g.J.h1=function(N){PP();this.V.muted=N}; g.J.fN=function(){return this.V.played||Zj([],[])}; g.J.xA=function(){try{var N=this.V.buffered}catch(z){}return N||Zj([],[])}; g.J.EG=function(){return this.V.seekable||Zj([],[])}; g.J.sM=function(){var N=this.V;return N.getStartDate?N.getStartDate():null}; g.J.getCurrentTime=function(){return this.V.currentTime}; g.J.setCurrentTime=function(N){this.V.currentTime=N}; g.J.getDuration=function(){return this.V.duration}; g.J.load=function(){var N=this.V.playbackRate;try{this.V.load()}catch(z){}this.V.playbackRate=N}; g.J.pause=function(){this.V.pause()}; g.J.play=function(){var N=this.V.play();if(!N||!N.then)return null;N.then(void 0,function(){}); return N}; g.J.Vi=function(){return this.V.readyState}; g.J.Nq=function(){return this.V.networkState}; g.J.Xk=function(){return this.V.error?this.V.error.code:null}; g.J.VX=function(){return this.V.error?this.V.error.message:""}; g.J.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.V instanceof window.HTMLVideoElement&&this.V.getVideoPlaybackQuality)return this.V.getVideoPlaybackQuality();if(this.V){var N=this.V,z=N.webkitDroppedFrameCount;if(N=N.webkitDecodedFrameCount)return{droppedVideoFrames:z||0,totalVideoFrames:N}}return{}}; g.J.jN=function(){return!!this.V.webkitCurrentPlaybackTargetIsWireless}; g.J.e1=function(){return!!this.V.webkitShowPlaybackTargetPicker()}; g.J.togglePictureInPicture=function(){var N=this.V,z=window.document;window.document.pictureInPictureEnabled?this.V!==z.pictureInPictureElement?N.requestPictureInPicture():z.exitPictureInPicture():kz()&&N.webkitSetPresentationMode(N.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.J.YZ=function(){var N=this.V;return new g.gL(N.offsetLeft,N.offsetTop)}; g.J.getSize=function(){return g.rv(this.V)}; g.J.setSize=function(N){g.XM(this.V,N)}; g.J.getVolume=function(){return this.V.volume}; g.J.setVolume=function(N){PP();this.V.volume=N}; g.J.sU=function(N){this.B[N]||(this.V.addEventListener(N,this.listener),this.B[N]=this.listener)}; g.J.setAttribute=function(N,z){this.V.setAttribute(N,z)}; g.J.removeAttribute=function(N){this.V.removeAttribute(N)}; g.J.hasAttribute=function(N){return this.V.hasAttribute(N)}; g.J.fI=zu(67);g.J.lq=zu(69);g.J.ym=zu(71);g.J.zt=zu(73);g.J.H8=function(){return JV(this.V)}; g.J.e0=function(N){g.Ye(this.V,N)}; g.J.kp=function(N){return g.hJ(this.V,N)}; g.J.PJ=function(){return g.ZQ(document.body,this.V)}; g.J.audioTracks=function(){var N=this.V;if("audioTracks"in N)return N.audioTracks}; g.J.AO=function(){for(var N=g.f(Object.keys(this.B)),z=N.next();!z.done;z=N.next())z=z.value,this.V.removeEventListener(z,this.B[z]);Ma.prototype.AO.call(this)}; g.J.A7=function(N){this.V.disableRemotePlayback=N};g.y(XW,g.X);g.y(ue,g.X);ue.prototype.show=function(){g.X.prototype.show.call(this);this.FW();this.L0.X("html5_enable_moving_s4n_window")&&g.nM(this.L0.D())&&this.Y()}; ue.prototype.hide=function(){g.X.prototype.hide.call(this);this.delay.stop();this.N.stop()}; ue.prototype.FW=function(){var N=(0,g.I)(),z=X5K(this.L0);rX(this.V,z.bandwidth_samples);rX(this.L,z.network_activity_samples);rX(this.Z,z.live_latency_samples);rX(this.W,z.buffer_health_samples);var v={};z=g.f(Object.entries(z));for(var R=z.next();!R.done;R=z.next()){var C=g.f(R.value);R=C.next().value;C=C.next().value;this.J[R]!==C&&(v[R]=" "+String(C));this.J[R]=C}this.update(v);N=(0,g.I)()-N>25?5E3:500;this.delay.start(N)}; ue.prototype.Y=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.N.start(2E4)};g.y(ceu,q1);g.y(ch,g.H);ch.prototype.V=function(){var N=(0,g.I)()-this.startTime;N=Nthis.N[N])&&(this.V=N,MM(this))}; g.J.onCueRangeExit=function(N){var z=abu(this,N);z&&this.V===N&&this.api.Qp("innertubeCommand",z);this.clearTimeout();this.V=void 0}; g.J.onTimeout=function(N){this.V!==void 0&&(N==null?void 0:N.cueRangeId)===this.V&&(this.G=!1,(N=abu(this,this.V))&&this.api.Qp("innertubeCommand",N))}; g.J.wf=function(N){this.W=N}; g.J.Q4=function(){MM(this);this.W=void 0}; g.J.setTimeout=function(N){var z=this,v=Number(N==null?void 0:N.maxVisibleDurationMilliseconds);v&&(this.clearTimeout(),this.L=setTimeout(function(){z.onTimeout(N)},v))}; g.J.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0;this.G=!1}; g.J.AO=function(){this.timelyActions=this.W=this.V=this.videoId=void 0;this.N={};this.xz();this.clearTimeout();q1.prototype.AO.call(this)};g.y(Klb,q1);g.y(Nr,Cs);Nr.prototype.G=function(N){this.N(N?2:1)}; Nr.prototype.W=function(){var N=this.C.getPresentingPlayerType();N===2||N===3?(this.V=!1,this.b$.LU(this)):this.V||(N=this.hasVoiceBoostAudioTrack(),this.setEnabled(N),N=this.Z()===2&&N,ZS(this,N),this.b$.dH(this),this.V=!0)}; Nr.prototype.AO=function(){this.b$.LU(this);Cs.prototype.AO.call(this)};g.y(zI,q1);zI.prototype.getVoiceBoostUserPreference=function(){return this.V}; zI.prototype.setVoiceBoostUserPreference=function(N){this.api.WL("vb_set",{pref:N});g.ka("yt-player-voice-boost",N);N!==this.V&&(this.V=N,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.AZ())}; zI.prototype.hasVoiceBoostAudioTrack=function(){var N,z,v=(N=this.api.getVideoData())==null?void 0:(z=N.Z)==null?void 0:z.V;return v?Mj(v,function(R){var C;return((C=R.audio)==null?void 0:C.W)===!0}):!1}; zI.prototype.updateEnvironmentData=function(){this.api.D().zA=this.V};var TMv=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.y(CL,q1);CL.prototype.AO=function(){this.L&&(g.e5(this.L),this.L=void 0);q1.prototype.AO.call(this)}; CL.prototype.WI=function(){(this.W?!this.V:this.Z)&&YD(this)}; CL.prototype.HK=function(N,z,v){var R=this;if(GdU(N)){var C=v||"";if(this.V)z=iF(this,C),xZf(N,z);else{var Z=new g.Ww;z.push(Z.promise);this.B.promise.then(function(){var Y=iF(R,C);xZf(N,Y);Z.resolve()})}}}; CL.prototype.eD=function(N){var z=this;if(this.W||this.Z)N.md=iF(this,N.videoId),this.V||(this.N=new qa,this.B.promise.then(function(){z.dW.CU("pot_if");N.md=iF(z,N.videoId)}))};g.y(jK,q1);jK.prototype.setFullscreenQuickActions=function(N){this.V&&this.api.getRootNode().removeChild(this.V);N?(g.Ye(N,"ytp-fullscreen-quick-actions"),g.Ye(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.PX(this.api,N,4)):g.jW(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.V=N;niO(this,this.api.isFullscreen())}; jK.prototype.setPlayerOverlayVideoDetailsRenderer=function(N){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);N?(g.Ye(N,"ytp-fullscreen-metadata"),this.api.X("delhi_modern_web_player_fullscreen_metadata_bottom")?g.Ye(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.Ye(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.PX(this.api,N,4)):(g.jW(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.jW(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=N;niO(this,this.api.isFullscreen())};g.y(mZu,q1);g.y(ai,g.H);ai.prototype.V=function(){for(var N=g.f(g.SI.apply(0,arguments)),z=N.next();!z.done;z=N.next())(z=z.value)&&this.features.push(z)}; ai.prototype.AO=function(){for(var N=this.features.length-1;N>=0;N--)this.features[N].dispose();this.features.length=0;g.H.prototype.AO.call(this)};$ZY.prototype.reset=function(){this.V=this.W=NaN};g.J=UZv.prototype;g.J.reset=function(){Sq(this.timerName)}; g.J.tick=function(N,z){H_(N,z,this.timerName)}; g.J.CU=function(N){return tc(N,void 0,this.timerName)}; g.J.bH=function(N){$c(N,void 0,this.timerName)}; g.J.infoGel=function(N){g.oc(N,this.timerName)};g.y(giO,g.jJ);g.J=giO.prototype;g.J.sA=function(N){return this.loop||!!N||this.index+1=0}; g.J.setShuffle=function(N){this.shuffle=N;N=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var z=0;z0)||ge(this,1,!0)}; g.J.Yi=function(){this.G=!0;this.V.Kb(this.B);this.B=this.V.S(document,"mouseup",this.d7)}; g.J.d7=function(){this.G=!1;ge(this,8,!1);this.V.Kb(this.B);this.B=this.V.S(this.target,"mousedown",this.Yi)}; g.J.DD=function(N){if(N=(N=N.changedTouches)&&N[0])this.PL=N.identifier,this.V.Kb(this.Y),this.Y=this.V.S(this.target,"touchend",this.cE,void 0,!0),ge(this,1024,!0)}; g.J.cE=function(N){if(N=N.changedTouches)for(var z=0;z1280||Z>720)if(C=v.Ou("maxresdefault.jpg"))break;if(R>640||Z>480)if(C=v.Ou("maxresdefault.jpg"))break; if(R>320||Z>180)if(C=v.Ou("sddefault.jpg")||v.Ou("hqdefault.jpg")||v.Ou("mqdefault.jpg"))break;if(C=v.Ou("default.jpg"))break}g.M9(z)&&(z=new Image,z.addEventListener("load",function(){MbI()}),z.src=C?C:"",this.api.M2().tick("ftr")); this.N.style.backgroundImage=C?"url("+C+")":""};g.y(g.VG,g.X);g.VG.prototype.resize=function(){}; g.VG.prototype.W=function(N){var z=this;this.Z=!1;mE2(this);var v=N.XJ,R=this.api.D();v!=="GENERIC_WITHOUT_LINK"||R.G?v==="TOO_MANY_REQUESTS"?(R=g.h(this.api.getVideoData()),this.Qy(hk(this,"TOO_MANY_REQUESTS_WITH_LINK",R.Kr(),void 0,void 0,void 0,!1))):v!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||R.G?this.api.D().X("html5_enable_bandaid_error_screen")&&v==="HTML5_SPS_UMP_STATUS_REJECTED"&&!R.G?(R=R.hostLanguage,N="//support.google.com/youtube?p=videoError",R&&(N=g.kS(N,{hl:R})),this.Qy(hk(this,"HTML5_SPS_UMP_STATUS_REJECTED", N))):this.api.D().X("enable_adb_handling_in_sabr")&&v==="BROWSER_OR_EXTENSION_ERROR"&&!R.G?(R=R.hostLanguage,N="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",R&&(N=g.kS(N,{hl:R})),this.Qy(hk(this,"BROWSER_OR_EXTENSION_ERROR",N))):this.Qy(g.SK(N.errorMessage)):this.Qy(hk(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(N=R.hostLanguage,v="//support.google.com/youtube/?p=player_error1",N&&(v=g.kS(v, {hl:N})),this.Qy(hk(this,"GENERIC_WITH_LINK_AND_CPN",v,!0)),R.UR&&!R.N&&no_(this,function(Z){if(g.YY(Z,z.api,!X2(z.api.D()))){Z={as3:!1,html5:!0,player:!0,cpn:g.h(z.api.getVideoData()).clientPlaybackNonce};var Y=z.api;Y.wH("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:Z});Y.isFullscreen()&&Y.toggleFullscreen()}})); if(this.Z){var C=this.e8("ytp-error-link");C&&(this.api.createClientVe(C,this,216104),this.api.logVisibility(C,!0),no_(this,function(){z.api.logClick(C)}))}}; var FaY=/([^<>]+)<\/a>/;g.y($EO,g.X);g.J=$EO.prototype;g.J.onClick=function(N){this.innertubeCommand?(this.C.Qp("innertubeCommand",this.innertubeCommand),N.preventDefault()):g.YY(N,this.C,!0);this.C.logClick(this.element)}; g.J.onVideoDataChange=function(N,z){B9u(this,z);this.Hc&&AHu(this,this.Hc)}; g.J.IZ=function(N){var z=g.h(this.C.getVideoData());this.videoId!==z.videoId&&B9u(this,z);this.V&&AHu(this,N.state);this.Hc=N.state}; g.J.uF=function(){this.fade.show();this.C.publish("paidcontentoverlayvisibilitychange",!0);this.C.logVisibility(this.element,!0)}; g.J.pV=function(){this.fade.hide();this.C.publish("paidcontentoverlayvisibilitychange",!1);this.C.logVisibility(this.element,!1)};g.y(Hb,g.X);Hb.prototype.hide=function(){this.V.stop();this.message.style.display="none";g.X.prototype.hide.call(this)}; Hb.prototype.onStateChange=function(N){this.lF(N.state)}; Hb.prototype.lF=function(N){if(g.u(N,128)||this.api.tD())var z=!1;else{var v;z=this.api.X("web_watch_enable_multiview_manager")&&((v=this.api.getVideoData())==null?0:Dk(v))?!1:g.u(N,16)||g.u(N,1)?!0:!1}z?this.V.start():this.hide()}; Hb.prototype.W=function(){this.message.style.display="block"};g.y(oi,g.D2);oi.prototype.onMutedAutoplayChange=function(N){this.Z&&(N?(goK(this),this.uF()):(this.V&&this.logClick(),this.pV()))}; oi.prototype.wD=function(N){this.api.isMutedByMutedAutoplay()&&g.WW(N,2)&&this.pV()}; oi.prototype.onClick=function(){this.api.unMute();this.logClick()}; oi.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.y(g.Df,g.VV);g.J=g.Df.prototype;g.J.init=function(){var N=this.api,z=N.getPlayerStateObject();this.Qb=N.getPlayerSize();this.W5(z);this.Pm();this.wW();this.api.publish("basechromeinitialized",this);this.BY()&&this.api.publish("standardControlsInitialized")}; g.J.onVideoDataChange=function(N,z){var v=this.ud!==z.videoId;if(v||N==="newdata"){N=this.api;N.isFullscreen()||(this.Qb=N.getPlayerSize());var R;((R=this.api.getVideoData(1))==null?0:g.uT(R))&&this.OO()}v&&(this.ud=z.videoId,v=this.Gd,v.K0=3E3,ge(v,512,!0),this.Pm());this.api.X("web_render_jump_buttons")&&z.showSeekingControls&&(this.JM=572)}; g.J.y0W=function(){this.onVideoDataChange("newdata",g.h(this.api.getVideoData()))}; g.J.T6=function(){var N=this.api.iG()&&this.api.yF(),z=this.api.iD();return this.ir||N||this.Ey||z}; g.J.OO=function(){var N=!this.T6();g.QY(this.api.getRootNode(),"ytp-menu-shown",!N);var z;((z=this.api.getVideoData(1))==null?0:g.uT(z))&&g.QY(this.api.getRootNode(),"ytp-hide-controls",!N)}; g.J.NB=function(N){try{if(!g.ZQ(this.api.getRootNode(),N))return!1}catch(z){return!1}for(;N&&!DPu(N);)N=N===this.api.getRootNode()?null:N.parentElement||null;return!!N}; g.J.nm=function(N){var z=this.api.getRootNode();g.QY(z,"ytp-autohide",N);g.QY(z,"ytp-autohide-active",!0);this.vX.start(N?250:100);N&&(this.jC=!1,g.jW(z,"ytp-touch-mode"));this.o$=!N;this.api.eC(!N)}; g.J.rf=function(){var N=this.api.getRootNode();g.QY(N,"ytp-autohide-active",!1)}; g.J.DpU=function(){this.wA=!0}; g.J.Yip=function(N){if(this.api.D().X("player_doubletap_to_seek")||this.api.D().L)this.wA=!1,this.Ej&&this.Kb(this.Ej),this.A_===0&&tk(this,N)?(this.vY(),this.uV.start(),this.Ej=this.S(this.api.n0(),"touchmove",this.DpU,void 0,!0)):this.uV.stop();VyI(this)&&tk(this,N)&&!this.api.D().L&&ki2(this);var z=this.ix.NE();if(!g.Uu(this.api.D())&&F2&&SBm(this,N))z&&N.preventDefault();else if(this.jC=!0,g.Ye(this.api.getRootNode(),"ytp-touch-mode"),this.Gd.EQ(),this.api.D().X("player_doubletap_to_seek")||this.api.D().L)if(z= this.api.getPlayerStateObject(),!(!this.api.wi()||g.u(z,2)&&g.$y(this.api)||g.u(z,64))){z=Date.now()-this.jp;this.A_+=1;if(z<=350){this.Kt=!0;z=this.api.getPlayerSize().width/3;var v=this.api.getRootNode().getBoundingClientRect(),R=N.targetTouches[0].clientX-v.left;v=N.targetTouches[0].clientY-v.top;var C=(this.A_-1)*10;R>0&&Rz*2&&R=650,R=N.width<528;this.Gd.resize();g.QY(z,"ytp-fullscreen",this.api.isFullscreen());g.QY(z,"ytp-large-width-mode",v);g.QY(z,"ytp-xsmall-width-mode",R);g.QY(z,"ytp-small-mode",this.ED());g.QY(z,"ytp-tiny-mode",this.oD());g.QY(z,"ytp-big-mode",this.PP());this.cD&&this.cD.resize(N)}; g.J.wD=function(N){this.W5(N.state);this.Pm()}; g.J.x4=zu(5);g.J.bR=function(){var N=!!this.ud&&!this.api.C5()&&!this.Vw,z=this.api.getPresentingPlayerType()===2,v=this.api.D();if(z){if(sv5&&v.X("enable_visit_advertiser_support_on_ipad_mweb"))return!1;z=mE(this.api.eV());N&&(z&&z.player?N=(N=z.player.getVideoData(2))?N.isListed&&!g.TW(z.player.D()):!1:(LZ("showInfoBarDuringAd: this is null"),N=!1));return N}return N&&(v.aM||this.api.isFullscreen()||v.uY)}; g.J.Pm=function(){var N=this.bR();this.wQ!==N&&(this.wQ=N,g.QY(this.api.getRootNode(),"ytp-hide-info-bar",!N))}; g.J.W5=function(N){var z=N.isCued()||this.api.bG()&&this.api.getPresentingPlayerType()!==3;z!==this.isCued&&(this.isCued=z,this.vO&&this.Kb(this.vO),this.vO=this.S(this.api.n0(),"touchstart",this.Yip,void 0,z));var v=this.Gd,R=N.isPlaying()&&!g.u(N,32)||this.api.cU();ge(v,128,!R);v=this.Gd;R=this.api.getPresentingPlayerType()===3;ge(v,256,R);v=this.api.getRootNode();g.u(N,2)?R=[IT.ENDED]:(R=[],g.u(N,8)?R.push(IT.PLAYING):g.u(N,4)&&R.push(IT.PAUSED),g.u(N,1)&&!g.u(N,32)&&R.push(IT.BUFFERING),g.u(N, 32)&&R.push(IT.SEEKING),g.u(N,64)&&R.push(IT.UNSTARTED));g.VU(this.qx,R)||(g.aO(v,this.qx),this.qx=R,g.iP(v,R));R=this.api.D();var C=g.u(N,2);a:{var Z=this.api.D();var Y=Z.controlsType;switch(Y){case "2":case "0":Z=!1;break a}Z=Y==="3"&&!g.u(N,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:RYZ(mE(this.api.eV())))||this.api.iD()||g.Uu(Z)&&this.api.getPresentingPlayerType()===2?!1:!0}g.QY(v,"ytp-hide-controls",!Z);g.QY(v,"ytp-native-controls",R.controlsType==="3"&&!z&&!C&&!this.Ey);g.u(N, 128)&&!g.Uu(R)?(this.cD||(this.cD=new g.VG(this.api),g.b(this,this.cD),g.PX(this.api,this.cD.element,4)),this.cD.W(N.BP),this.cD.show()):this.cD&&(this.cD.dispose(),this.cD=null)}; g.J.y8=function(){return this.api.iG()&&this.api.yF()?(this.api.Sb(!1,!1),!0):this.api.C5()?(g.Ur(this.api,!0),!0):!1}; g.J.onMutedAutoplayChange=function(N){this.Ey=N;this.OO()}; g.J.PP=function(){return!1}; g.J.ED=function(){return!this.PP()&&(this.api.getPlayerSize().width=0&&z.left>=0&&z.bottom>z.top&&z.right>z.left?z:null;z=this.size;N=N.clone();z=z.clone();R&&(Y=z,C=5,(C&65)==65&&(N.x=R.right)&&(C&=-2),(C&132)==132&&(N.y=R.bottom)&&(C&=-5),N.xR.right&&(Y.width=Math.min(R.right-N.x,Z+Y.width-R.left),Y.width=Math.max(Y.width,0))),N.x+Y.width>R.right&&C&1&&(N.x=Math.max(R.right-Y.width,R.left)),N.yR.bottom&&(Y.height=Math.min(R.bottom-N.y,Z+Y.height-R.top),Y.height=Math.max(Y.height,0))),N.y+Y.height>R.bottom&&C&4&&(N.y=Math.max(R.bottom-Y.height,R.top)));R=new g.ks(0,0,0,0);R.left=N.x;R.top=N.y;R.width= z.width;R.height=z.height;g.bm(this.element,new g.gL(R.left,R.top));g.Be(this.N);this.N.S(bH(this),"contextmenu",this.kEO);this.N.S(this.C,"fullscreentoggled",this.onFullscreenToggled);this.N.S(this.C,"pageTransition",this.Me)}; g.J.kEO=function(N){if(!N.defaultPrevented){var z=nH(N);g.ZQ(this.element,z)||this.pV();this.C.D().disableNativeContextMenu&&N.preventDefault()}}; g.J.onFullscreenToggled=function(){this.pV();iqO(this)}; g.J.Me=function(){this.pV()};g.y(we,g.X);we.prototype.onClick=function(){var N=this,z,v,R,C;return g.S(function(Z){if(Z.W==1)return z=N.api.D(),v=g.h(N.api.getVideoData()),R=N.api.getPlaylistId(),C=z.getVideoUrl(v.videoId,R,void 0,!0),g.k(Z,QF2(N,C),2);Z.V&&aVY(N);N.api.logClick(N.element);g.fO(Z)})}; we.prototype.FW=function(){this.updateValue("icon",{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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","Copiar enlace");this.visible=jFY(this);g.QY(this.element,"ytp-copylink-button-visible", this.visible);this.iF(this.visible);this.tooltip.Ql();this.api.logVisibility(this.element,this.visible&&this.B)}; we.prototype.Fm=function(N){g.X.prototype.Fm.call(this,N);this.api.logVisibility(this.element,this.visible&&N)}; we.prototype.AO=function(){g.X.prototype.AO.call(this);g.jW(this.element,"ytp-copylink-button-visible")};g.y(LhO,g.X);g.J=LhO.prototype;g.J.show=function(){g.X.prototype.show.call(this);g.qv(this.W)}; g.J.hide=function(){this.N.stop();this.Z=0;this.e8("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.jW(this.element,"ytp-chapter-seek");g.jW(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)}; g.J.Hi=function(N,z,v,R){this.Z=N===this.L?this.Z+R:R;this.L=N;var C=N===-1?this.J:this.Y;C&&this.C.logClick(C);this.G?this.W.stop():g.ws(this.W);this.N.start();this.element.setAttribute("data-side",N===-1?"back":"forward");var Z=3*this.C.n0().getPlayerSize().height;C=this.C.n0().getPlayerSize();C=C.width/3-3*C.height;this.V.style.width=Z+"px";this.V.style.height=Z+"px";N===1?(this.V.style.left="",this.V.style.right=C+"px"):N===-1&&(this.V.style.right="",this.V.style.left=C+"px");var Y=Z*2.5;Z=Y/ 2;var Q=this.e8("ytp-doubletap-ripple");Q.style.width=Y+"px";Q.style.height=Y+"px";N===1?(N=this.C.n0().getPlayerSize().width-z+Math.abs(C),Q.style.left="",Q.style.right=N-Z+"px"):N===-1&&(N=Math.abs(C)+z,Q.style.right="",Q.style.left=N-Z+"px");Q.style.top="calc((33% + "+Math.round(v)+"px) - "+Z+"px)";if(v=this.e8("ytp-doubletap-ripple"))v.classList.remove("ytp-doubletap-ripple"),v.classList.add("ytp-doubletap-ripple");Khm(this,this.G?this.Z:R)}; g.J.Ya=function(N,z,v){if(v=v===void 0?null:v){var R=N===-1?this.J.visualElement:this.Y.visualElement;v={seekData:v};var C=g.nz();C&&g.qV(Mz)(void 0,C,R,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",v,void 0)}this.Z=N===this.L?this.Z+z:z;this.L=N;R=this.C.n0().getPlayerSize();this.G?this.W.stop():g.ws(this.W);this.N.start();this.element.setAttribute("data-side",N===-1?"back":"forward");g.Ye(this.element,"ytp-time-seeking");this.V.style.width="110px";this.V.style.height="110px";v=R.width*.1-15;N=== 1?this.qd?(this.V.style.right=v+"px",this.V.style.left=""):(this.V.style.right="",this.V.style.left=R.width*.8-30+"px"):N===-1&&(this.qd?(this.V.style.right="",this.V.style.left=v+"px"):(this.V.style.right="",this.V.style.left=R.width*.1-15+"px"));this.V.style.top=R.height*.5+15+"px";Khm(this,this.G?this.Z:z)}; g.J.iq=function(N,z,v){v=v===void 0?null:v;g.ws(this.W);this.N.start();switch(N){case -1:N="back";break;case 1:N="forward";break;default:N=""}this.element.setAttribute("data-side",N);this.V.style.width="0";this.V.style.height="0";g.Ye(this.element,"ytp-chapter-seek");this.updateValue("seekText",z);this.updateValue("seekTime","");z=this.e8("ytp-seek-icon");if(v){a:if(v){switch(v){case "PREMIUM_STANDALONE":v=T8K();break a;case "PREMIUM_STANDALONE_CAIRO":v=Fe7();break a}v=void 0}else v=null;this.updateValue("seekIcon", v);z.style.display="inline-block"}else z.style.display="none"};g.y(lV2,sR);g.J=lV2.prototype;g.J.Xb=function(N){this.tO||(this.tO=new Bh(this.C),g.b(this,this.tO));var z,v;if((z=this.A0)==null?0:(v=z.menu)==null?0:v.menuRenderer)this.tO.open(this.A0.menu.menuRenderer,N.target),N.preventDefault()}; g.J.aI=function(){return!!this.V}; g.J.By=function(){return!!this.V}; g.J.Pk=function(N){N.target===this.overflowButton.element?N.preventDefault():(this.J0&&this.C.Qp("innertubeCommand",this.J0),this.pp(!1))}; g.J.Xd=function(){this.pp(!0);var N,z;((N=this.V)==null?0:(z=N.bannerData)==null?0:z.dismissedStatusKey)&&this.UR.push(this.V.bannerData.dismissedStatusKey);this.J_()}; g.J.h8=function(){this.J_();v5(this)}; g.J.xFS=function(N){var z=this,v;if(N.id!==((v=this.V)==null?void 0:v.identifier)){this.J_();v=g.f(this.K0);for(var R=v.next();!R.done;R=v.next()){var C=R.value,Z=void 0,Y=void 0;if((R=(Z=C)==null?void 0:(Y=Z.bannerData)==null?void 0:Y.itemData)&&C.identifier===N.id){Y=Z=void 0;var Q=((Z=C)==null?void 0:(Y=Z.bannerData)==null?void 0:Y.dismissedStatusKey)||"";if(this.UR.includes(Q))return;this.V=C;this.banner.element.setAttribute("aria-label",R.accessibilityLabel||"");R.trackingParams&&(this.N=!0, this.C.setTrackingParams(this.badge.element,R.trackingParams));this.J.show();dX(this);this.Rd.iF(!R.stayInApp);nT2(this);Gju(this);zO(this);this.J0=g.t(R.onTapCommand,Ss);if(C=g.t(R.menuOnTap,Ss))this.A0=g.t(C,g_r);C=void 0;this.banner.update({thumbnail:(C=(R.thumbnailSources||[])[0])==null?void 0:C.url,title:R.productTitle,price:R.priceReplacementText?R.priceReplacementText:R.price,salesOriginalPrice:Jtf(this),priceDropReferencePrice:ytK(this),promotionText:e42(this),priceA11yText:fVY(this),affiliateDisclaimer:R.affiliateDisclaimer, vendor:d77(this)});Q=Y=Z=C=void 0;((C=R)==null?0:(Z=C.hiddenProductOptions)==null?0:Z.showDropCountdown)&&((Y=R)==null?0:(Q=Y.hiddenProductOptions)==null?0:Q.dropTimestampMs)&&(this.CV=new g.cn(function(){Fhx(z)},1E3),this.Rd.hide(),this.countdownTimer.show(),Fhx(this)); this.C.X("web_player_enable_featured_product_banner_exclusives_on_desktop")&&WhU(this)&&(this.yh=new g.cn(function(){x7O(z)},1E3),x7O(this))}}this.C.getRootNode()&&g.Ye(this.C.getRootNode(),"ytp-featured-product-shown")}}; g.J.J_=function(){this.V&&(this.V=void 0,this.Dt(),this.C.getRootNode()&&g.jW(this.C.getRootNode(),"ytp-featured-product-shown"))}; g.J.onVideoDataChange=function(N,z){var v=this;N==="dataloaded"&&v5(this);var R,C,Z;N=g.t((R=z.getWatchNextResponse())==null?void 0:(C=R.playerOverlays)==null?void 0:(Z=C.playerOverlayRenderer)==null?void 0:Z.productsInVideoOverlayRenderer,Bf5);this.overflowButton.show();this.dismissButton.hide();var Y=N==null?void 0:N.featuredProductsEntityKey;this.trendingOfferEntityKey=N==null?void 0:N.trendingOfferEntityKey;this.K0.length||(Ttb(this,Y),zO(this));var Q;(Q=this.Ui)==null||Q.call(this);this.Ui=g.v0.subscribe(function(){Ttb(v, Y);zO(v)})}; g.J.AO=function(){v5(this);nT2(this);Gju(this);sR.prototype.AO.call(this)};g.y(AtY,g.X);AtY.prototype.onClick=function(){this.C.logClick(this.element,this.W)};g.y(gTv,g.D2);g.J=gTv.prototype;g.J.show=function(){g.D2.prototype.show.call(this);this.C.publish("infopaneldetailvisibilitychange",!0);this.C.logVisibility(this.element,!0);pIm(this,!0)}; g.J.hide=function(){g.D2.prototype.hide.call(this);this.C.publish("infopaneldetailvisibilitychange",!1);this.C.logVisibility(this.element,!1);pIm(this,!1)}; g.J.getId=function(){return this.N}; g.J.i6=function(){return this.itemData.length}; g.J.onVideoDataChange=function(N,z){if(z){var v,R,C,Z;this.update({title:((v=z.Et)==null?void 0:(R=v.title)==null?void 0:R.content)||"",body:((C=z.Et)==null?void 0:(Z=C.bodyText)==null?void 0:Z.content)||""});var Y;N=((Y=z.Et)==null?void 0:Y.trackingParams)||null;this.C.setTrackingParams(this.element,N);Y=g.f(this.itemData);for(N=Y.next();!N.done;N=Y.next())N.value.dispose();this.itemData=[];var Q;if((Q=z.Et)==null?0:Q.ctaButtons)for(z=g.f(z.Et.ctaButtons),Q=z.next();!Q.done;Q=z.next())if(Q=g.t(Q.value, Tfw))Q=new AtY(this.C,Q,this.V),Q.Y8&&(this.itemData.push(Q),Q.Nd(this.items))}}; g.J.AO=function(){this.hide();g.D2.prototype.AO.call(this)};g.y(VO_,g.X);g.J=VO_.prototype;g.J.onVideoDataChange=function(N,z){P3u(this,z);this.Hc&&ETf(this,this.Hc)}; g.J.Fb=function(N){var z=g.h(this.C.getVideoData());this.videoId!==z.videoId&&P3u(this,z);ETf(this,N.state);this.Hc=N.state}; g.J.v6=function(N){(this.Z=N)?this.hide():this.V&&this.show()}; g.J.UK=function(){this.W||this.uF();this.showControls=!0}; g.J.Lj=function(){this.W||this.pV();this.showControls=!1}; g.J.uF=function(){var N,z=(N=this.C)==null?void 0:N.getPlayerSize();N=z.width<380;var v;z=z.height<(((v=this.C)==null?0:v.isEmbedsShortsMode())?400:280);var R,C;(((R=this.C)==null?0:R.getPlayerStateObject().isCued())||((C=this.C)==null?0:g.u(C.getPlayerStateObject(),1024)))&&N&&z||!this.V||this.Z||(this.fade.show(),this.C.publish("infopanelpreviewvisibilitychange",!0),this.C.logVisibility(this.element,!0))}; g.J.pV=function(){this.V&&!this.Z&&(this.fade.hide(),this.C.publish("infopanelpreviewvisibilitychange",!1),this.C.logVisibility(this.element,!1))}; g.J.QjL=function(){this.W=!1;this.showControls||this.pV()};var PK5={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(PK5).reduce(function(N,z){N[PK5[z]]=z;return N},{}); var VYW={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(VYW).reduce(function(N,z){N[VYW[z]]=z;return N},{}); var SLU={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(SLU).reduce(function(N,z){N[SLU[z]]=z;return N},{});var ESU,hDl;ESU=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];hDl=[{option:0,text:Rx(0)},{option:.25,text:Rx(.25)},{option:.5,text:Rx(.5)},{option:.75,text:Rx(.75)},{option:1,text:Rx(1)}]; g.iV=[{option:"fontFamily",text:"Conjunto de fuentes",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:ESU},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:Rx(.5)},{option:-1,text:Rx(.75)},{option:0,text:Rx(1)},{option:1, text:Rx(1.5)},{option:2,text:Rx(2)},{option:3,text:Rx(3)},{option:4,text:Rx(4)}]},{option:"background",text:"Color de fondo",options:ESU},{option:"backgroundOpacity",text:"Opacidad del fondo",options:hDl},{option:"windowColor",text:"Color de la ventana",options:ESU},{option:"windowOpacity",text:"Opacidad de la ventana",options:hDl},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:Rx(.25)},{option:.5,text:Rx(.5)},{option:.75,text:Rx(.75)},{option:1,text:Rx(1)}]}];var HtV=[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(tOU,g.VV);g.J=tOU.prototype; g.J.QY=function(N){N.repeat||(this.Z.rB=!1);var z=!1,v=N.keyCode,R=nH(N),C=!N.altKey&&!N.ctrlKey&&!N.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||HtV.includes(v)),Z=!1,Y=!1,Q=this.api.D();N.defaultPrevented?(C=!1,Y=!0):Q.ZT&&!this.api.isMutedByEmbedsMutedAutoplay()&&(C=!1);if(v===9)z=!0;else{if(R)switch(v){case 32:case 13:if(R.tagName==="BUTTON"||R.tagName==="A"||R.tagName==="INPUT")z=!0,C=!1;else if(C){var L=R.getAttribute("role");!L||L!=="option"&&L!=="button"&&L.indexOf("menuitem")!==0|| (z=!0,R.click(),Z=!0)}break;case 37:case 39:case 36:case 35:z=R.getAttribute("role")==="slider";break;case 38:case 40:L=R.getAttribute("role"),R=v===38?R.previousSibling:R.nextSibling,L==="slider"?z=!0:C&&(L==="option"?(R&&R.getAttribute("role")==="option"&&R.focus(),Z=z=!0):L&&L.indexOf("menuitem")===0&&(R&&R.hasAttribute("role")&&R.getAttribute("role").indexOf("menuitem")===0&&R.focus(),Z=z=!0))}if(C&&!Z)switch(v){case 38:Z=Math.min(this.api.getVolume()+5,100);Xt(this.Mv,Z,!1);this.api.setVolume(Z); Y=Z=!0;break;case 40:Z=Math.max(this.api.getVolume()-5,0);Xt(this.Mv,Z,!0);this.api.setVolume(Z);Y=Z=!0;break;case 36:this.api.wi()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),Y=Z=!0);break;case 35:this.api.wi()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),Y=Z=!0)}}z&&ZE(this,!0);(z||Y)&&this.Gd.EQ();(Z||C&&this.handleGlobalKeyDown(v,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,N.key,N.code,N.repeat))&&N.preventDefault();Q.Y&&(N={keyCode:N.keyCode, altKey:N.altKey,ctrlKey:N.ctrlKey,metaKey:N.metaKey,shiftKey:N.shiftKey,handled:N.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.cH("onKeyPress",N))}; g.J.wq=function(N){var z=N.keyCode;(!this.api.X("web_player_spacebar_control_bugfix")||this.api.X("web_player_spacebar_control_bugfix")&&!this.Z.gT)&&this.handleGlobalKeyUp(z,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,N.key,N.code)&&N.preventDefault()}; g.J.handleGlobalKeyUp=function(N,z,v,R,C,Z,Y){this.api.publish("keyboardserviceglobalkeyup",{keyCode:N,shiftKey:z,ctrlKey:v,altKey:R,metaKey:C,key:Z,code:Y});z=!1;if(this.Z.rB)return z;(Z=g.p2(this.api.eV()))&&(Z=Z.Ww)&&Z.Vh&&(Z.jF(N),z=!0);switch(N){case 9:ZE(this,!0);z=!0;break;case 32:if(this.api.X("web_speedmaster_spacebar_control")&&(!this.api.X("web_player_spacebar_control_bugfix")&&!this.Z.gT||this.api.X("web_player_spacebar_control_bugfix"))&&!this.api.D().ZT){var Q,L;N=(Q=this.progressBar)== null?void 0:(L=Q.W)==null?void 0:L.isEnabled;z=this.Qs(N)}break;case 39:(wD?R:v)&&!C&&this.api.wi()&&this.api.X("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),Q=(Q=this.api.getVideoData())?Q.cP:[],L=HqK(Q,this.api.getCurrentTime()*1E3),L!==-1&&this.V!=null&&(this.V.iq(1,Q[L].title),this.api.seekTo(Q[L].startTime/1E3,void 0,void 0,void 0,52),z=!0))}return z}; g.J.handleGlobalKeyDown=function(N,z,v,R,C,Z,Y,Q){Q||(this.Z.rB=!1);var L=!1,K=this.api.D();if(K.ZT&&!this.api.isMutedByEmbedsMutedAutoplay())return L;var l=g.p2(this.api.eV());if(l&&(l=l.Ww)&&l.Vh)switch(N){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:L=l.D7(N)}K.G||L||(L=Z||String.fromCharCode(N).toLowerCase(),this.W+=L,"awesome".indexOf(this.W)===0||this.api.X("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(L=!0,4===this.W.length&&this.W==="bday"&&this.api.X("web_player_rtr_ctrls")&& (ywu(this.B),this.Gd.EQ()),7===this.W.length&&this.W==="awesome"&&sZ7(this.api.getRootNode(),"ytp-color-party")):(this.W=L,L="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!L&&(!this.api.isMutedByEmbedsMutedAutoplay()||HtV.includes(N))){var W=this.api.getVideoData(),G,x;l=(G=this.progressBar)==null?void 0:(x=G.W)==null?void 0:x.isEnabled;G=W?W.cP:[];x=wD?R:v;switch(N){case 80:z&&!K.BL&&(Ii(this.Mv,npm(),"Anterior"),this.api.previousVideo(),L=!0);break;case 78:z&&!K.BL&&(Ii(this.Mv, Ta(),"Siguiente"),this.api.nextVideo(),L=!0);break;case 74:this.api.wi()&&(this.api.startSeekCsiAction(),this.V?this.api.X("enable_key_press_seek_logging")?(L=YM(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.V.Ya(-1,10,L)):this.V.Ya(-1,10):Ii(this.Mv,{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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),L=!0);break;case 76:this.api.wi()&&(this.api.startSeekCsiAction(),this.V?this.api.X("enable_key_press_seek_logging")?(L=YM(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.V.Ya(1,10,L)):this.V.Ya(1,10):Ii(this.Mv,{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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),L=!0);break;case 37:this.api.wi()&&(this.api.startSeekCsiAction(),x?(x=oTf(G,this.api.getCurrentTime()*1E3),x!==-1&&this.V!=null&&(this.V.iq(-1,G[x].title),this.api.seekTo(G[x].startTime/1E3,void 0,void 0,void 0,53),L=!0)):(this.V?this.api.X("enable_key_press_seek_logging")?(L=YM(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.V.Ya(-1,5,L)):this.V.Ya(-1,5):Ii(this.Mv,{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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),L=!0));break;case 39:this.api.wi()&&(this.api.startSeekCsiAction(),x?this.api.X("web_enable_keyboard_shortcut_for_timely_actions")||(x=HqK(G,this.api.getCurrentTime()*1E3),x!==-1&&this.V!=null&&(this.V.iq(1,G[x].title),this.api.seekTo(G[x].startTime/1E3,void 0,void 0,void 0,52),L=!0)):(this.V!=null?this.api.X("enable_key_press_seek_logging")?(L=YM(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.V.Ya(1,5,L)):this.V.Ya(1, 5):Ii(this.Mv,{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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),L=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Xt(this.Mv,this.api.getVolume(),!1)):(this.api.mute(),Xt(this.Mv,0,!0));L=!0;break;case 32:L=this.api.X("web_speedmaster_spacebar_control")?!this.api.D().BL:this.Qs(l);break;case 75:L=this.Qs(l);break;case 190:z?K.enableSpeedOptions&&IV2(this)&&(L=this.api.getPlaybackRate(),this.api.setPlaybackRate(L+.25,!0),hEu(this.Mv,!1),L=!0):this.api.wi()&&(this.step(1),L=!0);break;case 188:z? K.enableSpeedOptions&&IV2(this)&&(L=this.api.getPlaybackRate(),this.api.setPlaybackRate(L-.25,!0),hEu(this.Mv,!0),L=!0):this.api.wi()&&(this.step(-1),L=!0);break;case 70:x$U(this.api)&&(this.api.toggleFullscreen().catch(function(){}),L=!0); break;case 27:l?(this.progressBar.UI(),L=!0):this.G()&&(L=!0)}if(K.controlsType!=="3")switch(N){case 67:g.TI(this.api.eV())&&(K=this.api.getOption("captions","track"),this.api.toggleSubtitles(),HV7(this.Mv,!K||K&&!K.displayName),L=!0);break;case 79:jf(this,"textOpacity");break;case 87:jf(this,"windowOpacity");break;case 187:case 61:jf(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jf(this,"fontSizeIncrement",!0,!0)}var e;z||v||R||(N>=48&&N<=57?e=N-48:N>=96&&N<=105&&(e=N-96));e!=null&&this.api.wi()&& (this.api.startSeekCsiAction(),K=this.api.getProgressState(),this.api.seekTo(e/10*(K.seekableEnd-K.seekableStart)+K.seekableStart,void 0,void 0,void 0,81),L=!0);L&&this.Gd.EQ()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:N,shiftKey:z,ctrlKey:v,altKey:R,metaKey:C,key:Z,code:Y,repeat:Q},this.Z);return L}; g.J.step=function(N){this.api.wi();if(this.api.getPlayerStateObject().isPaused()){var z=g.h(this.api.getVideoData()).W;z&&(z=z.video)&&this.api.seekBy(N/(z.fps||30),void 0,void 0,N>0?77:78)}}; g.J.Qs=function(N){if(!this.api.D().BL){var z;var v,R=(z=this.api.getVideoData())==null?void 0:(v=z.getPlayerResponse())==null?void 0:v.playabilityStatus;if(R){var C;z=((C=g.t(R.miniplayer,hqr))==null?void 0:C.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else z=!1;z&&this.api.Qp("onExpandMiniplayer");N?this.progressBar.yz():(N=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Mv.s4(N),N?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.J.AO=function(){g.ws(this.N);g.VV.prototype.AO.call(this)};g.y(g.ax,g.X);g.ax.prototype.ys=zu(11); g.ax.prototype.FW=function(){var N=this.C.D(),z=N.Z||this.C.X("web_player_hide_overflow_button_if_empty_menu")&&this.V2.isEmpty();N=g.Uu(N)&&g.AW(this.C)&&g.u(this.C.getPlayerStateObject(),128);var v=this.C.getPlayerSize();this.visible=this.C.ED()&&!N&&v.width>=240&&!g.z8(g.h(this.C.getVideoData()))&&!z&&!this.V&&!this.C.isEmbedsShortsMode();g.QY(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.C.Ql();this.C.logVisibility(this.element,this.visible&&this.B)}; g.ax.prototype.Fm=function(N){g.X.prototype.Fm.call(this,N);this.C.logVisibility(this.element,this.visible&&N)}; g.ax.prototype.AO=function(){g.X.prototype.AO.call(this);g.jW(this.element,"ytp-overflow-button-visible")};g.y(XIU,g.D2);g.J=XIU.prototype;g.J.ut=function(N){N=nH(N);g.ZQ(this.element,N)&&(g.ZQ(this.V,N)||g.ZQ(this.closeButton,N)||tW(this))}; g.J.pV=function(){g.D2.prototype.pV.call(this);this.C.e3(this.element)}; g.J.show=function(){this.Vh&&this.C.publish("OVERFLOW_PANEL_OPENED");g.D2.prototype.show.call(this);this.element.setAttribute("aria-modal","true");uNu(this,!0)}; g.J.hide=function(){g.D2.prototype.hide.call(this);this.element.removeAttribute("aria-modal");uNu(this,!1)}; g.J.onFullscreenToggled=function(N){!N&&this.NE()&&tW(this)}; g.J.isEmpty=function(){return this.actionButtons.length===0}; g.J.focus=function(){for(var N=g.f(this.actionButtons),z=N.next();!z.done;z=N.next())if(z=z.value,z.Vh){z.focus();break}};g.y(ctU,g.X);ctU.prototype.onClick=function(N){g.YY(N,this.api)&&this.api.playVideoAt(this.index)};g.y(qhu,g.D2);g.J=qhu.prototype;g.J.show=function(){g.D2.prototype.show.call(this);this.V.S(this.api,"videodatachange",this.ww);this.V.S(this.api,"onPlaylistUpdate",this.ww);this.ww()}; g.J.hide=function(){g.D2.prototype.hide.call(this);g.Be(this.V);this.updatePlaylist(null)}; g.J.ww=function(){this.updatePlaylist(this.api.getPlaylist());this.api.D().Z&&(this.e8("ytp-playlist-menu-title-name").removeAttribute("href"),this.Z&&(this.Kb(this.Z),this.Z=null))}; g.J.gM=function(){var N=this.playlist,z=N.author,v=z?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",R={CURRENT_POSITION:String(N.index+1),PLAYLIST_LENGTH:String(N.getLength())};z&&(R.AUTHOR=z);this.update({title:N.title,subtitle:g.WA(v,R),playlisturl:this.api.getVideoUrl(!0)});z=N.W;if(z===this.N)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[N.index];else{v=g.f(this.playlistData);for(R=v.next();!R.done;R=v.next())R.value.dispose(); v=N.getLength();this.playlistData=[];for(R=0;R=this.W&&!N.Z&&!z.isAd()&&!this.api.isEmbedsShortsMode()}else N=!1;this.visible=N;this.iF(this.visible);g.QY(this.element,"ytp-search-button-visible",this.visible);g.QY(this.element,"ytp-show-search-title",!this.api.ED());this.api.logVisibility(this.element,this.visible&&this.B)}; lV.prototype.Fm=function(N){g.X.prototype.Fm.call(this,N);this.api.logVisibility(this.element,this.visible&&N)};g.y(W5,g.X);W5.prototype.Hi=function(N,z,v,R){YXY(this,N,R)}; W5.prototype.Ya=function(N,z,v){YXY(this,N,z);v&&(N=N===-1?this.Z.visualElement:this.V.visualElement,v={seekData:v},(z=g.nz())&&g.qV(Mz)(void 0,z,N,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",v,void 0))}; W5.prototype.iq=function(N,z,v){YXY(this,N);z&&jTu(this,z,v)}; W5.prototype.hide=function(){g.X.prototype.hide.call(this);this.W=0;this.L=void 0};g.y(g.GO,g.X);g.J=g.GO.prototype;g.J.xM=zu(8); g.J.onClick=function(){var N=this,z=this.api.D(),v=g.h(this.api.getVideoData(this.api.getPresentingPlayerType())),R=this.api.getPlaylistId();z=this.api.X("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):z.getVideoUrl(v.videoId,R,void 0,!0);if(navigator.share)try{var C=navigator.share({title:v.title,url:z});C instanceof Promise&&C.catch(function(Z){QTK(N,Z)})}catch(Z){Z instanceof Error&&QTK(this,Z)}else this.V.y8(),tW(this.Z,this.element,!1); this.api.logClick(this.element)}; g.J.FW=function(){var N=this.api.D(),z=this.api.isEmbedsShortsMode();g.QY(this.element,"ytp-show-share-title",g.Uu(N)&&!z);this.V.PP()&&z?(N=(this.api.n0().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.SB(this.element,"right",N+"px")):z&&g.SB(this.element,"right","0px");this.updateValue("icon",{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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=ap7(this);g.QY(this.element,"ytp-share-button-visible",this.visible);this.iF(this.visible);this.tooltip.Ql();this.api.logVisibility(this.element,ap7(this)&&this.B)}; g.J.Fm=function(N){g.X.prototype.Fm.call(this,N);this.api.logVisibility(this.element,this.visible&&N)}; g.J.AO=function(){g.X.prototype.AO.call(this);g.jW(this.element,"ytp-share-button-visible")};g.y(KSu,g.D2);g.J=KSu.prototype;g.J.YN=function(N){N=nH(N);g.ZQ(this.G,N)||g.ZQ(this.closeButton,N)||tW(this)}; g.J.pV=function(){g.D2.prototype.pV.call(this);this.tooltip.e3(this.element);this.api.logVisibility(this.V,!1);for(var N=g.f(this.Z),z=N.next();!z.done;z=N.next())z=z.value,this.api.hasVe(z.element)&&this.api.logVisibility(z.element,!1)}; g.J.show=function(){var N=this.Vh;g.D2.prototype.show.call(this);this.FW();N||this.api.Qp("onSharePanelOpened")}; g.J.J2=function(){this.Vh&&this.FW()}; g.J.FW=function(){var N=this;g.Ye(this.element,"ytp-share-panel-loading");g.jW(this.element,"ytp-share-panel-fail");var z=g.h(this.api.getVideoData()),v=this.api.getPlaylistId()&&this.N.checked;z.getSharePanelCommand&&Xh(g.h(this.api.dD()),z.getSharePanelCommand,{includeListId:v}).then(function(R){N.HL()||(g.jW(N.element,"ytp-share-panel-loading"),Gru(N,R))}); z=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",z);this.updateValue("linkText",z);this.updateValue("shareLinkWithUrl",g.WA("Compartir enlace: $URL",{URL:z}));ap(this.V);this.api.logVisibility(this.V,!0)}; g.J.onFullscreenToggled=function(N){!N&&this.NE()&&tW(this)}; g.J.focus=function(){this.V.focus()}; g.J.AO=function(){g.D2.prototype.AO.call(this);lpm(this)};g.y(JA2,sR);g.J=JA2.prototype;g.J.AO=function(){TF_(this);sR.prototype.AO.call(this)}; g.J.Pk=function(N){N.target!==this.dismissButton.element&&(this.pp(!1),this.C.Qp("innertubeCommand",this.onClickCommand))}; g.J.Xd=function(){this.vL=!0;this.pp(!0);this.Dt()}; g.J.NHd=function(N){this.L=N;this.Dt()}; g.J.onVideoDataChange=function(N,z){if(N=!!z.videoId&&this.videoId!==z.videoId)this.videoId=z.videoId,this.vL=!1,this.PL=!0,this.Y=this.Vp=!1,TF_(this),sTu(this,!1),this.W=this.V=!1,ef(this),yAu(this);if(N||!z.videoId)this.qd=this.N=!1;var v,R;if(z==null?0:(v=z.getPlayerResponse())==null?0:(R=v.videoDetails)==null?0:R.isLiveContent)this.iI(!1);else{var C,Z,Y;z=g.t((C=z.getWatchNextResponse())==null?void 0:(Z=C.playerOverlays)==null?void 0:(Y=Z.playerOverlayRenderer)==null?void 0:Y.productsInVideoOverlayRenderer, Bf5);this.L=this.enabled=!1;if(z){if(C=z==null?void 0:z.featuredProductsEntityKey){Z=g.v0.getState().entities;var Q;if((Q=wJ(Z,"featuredProductsEntity",C))==null?0:Q.productsData){this.iI(!1);return}}this.enabled=!0;if(!this.N){var L;Q=(L=z.badgeInteractionLogging)==null?void 0:L.trackingParams;(this.N=!!Q)&&this.C.setTrackingParams(this.badge.element,Q||null)}if(!this.qd){var K;if(this.qd=!((K=z.dismissButton)==null||!K.trackingParams)){var l;this.C.setTrackingParams(this.dismissButton.element,((l= z.dismissButton)==null?void 0:l.trackingParams)||null)}}z.isContentForward&&(L=z.productsData,sTu(this,!0),yAu(this),L=dlU(this,L),K=[],L.length>0&&K.push(L[0]),L.length>1&&(l=new g.X({K:"div",U:"ytp-suggested-action-more-products-icon"}),g.b(this,l),K.push(l),K.push.apply(K,g.U(L.slice(1)))),this.G=new g.X({K:"div",j:K,U:"ytp-suggested-action-content-forward-container"}),g.b(this,this.G),this.Id.element.append(this.G.element));this.text=g.xt(z.text);var W;if(L=(W=z.dismissButton)==null?void 0:W.a11yLabel)this.S8= g.xt(L);this.onClickCommand=z.onClickCommand;this.timing=z.timing;this.QT()}lEu(this);dX(this);this.Dt()}}; g.J.aI=function(){return!this.L&&this.enabled&&!this.vL&&!this.C.ED()&&!this.zE&&(this.Y||this.PL)}; g.J.mP=function(N){sR.prototype.mP.call(this,N);if(this.V||this.W)this.timing&&xM(this.timing.preview)&&(this.V=!1,ef(this),this.W=!1,ef(this),this.C.s6("shopping_overlay_preview_collapsed"),this.C.s6("shopping_overlay_preview_expanded"),N=Je(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),xM(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.C.s6("shopping_overlay_expanded"),N.end=this.timing.expanded.endSec*1E3),this.C.QT([N])), this.Vp=!0,dX(this);ef(this)}; g.J.iI=function(N){(this.Y=N)?(fP(this),dX(this,!1)):(TF_(this),this.BL.start());this.Dt()}; g.J.QT=function(N){var z=this.timing;N=(N===void 0?0:N)+this.C.getCurrentTime();var v=[],R=z.visible,C=z.preview;z=z.expanded;xM(R)&&(xlY(R,N),v.push(Je(R.startSec,R.endSec,"shopping_overlay_visible")));xM(C)&&(xlY(C,N),R=C.startSec+1,v.push(Je(C.startSec,R,"shopping_overlay_preview_collapsed")),v.push(Je(R,C.endSec,"shopping_overlay_preview_expanded")));xM(z)&&(xlY(z,N),v.push(Je(z.startSec,z.endSec,"shopping_overlay_expanded")));this.C.QT(v)}; g.J.Dt=function(){sR.prototype.Dt.call(this);this.C.getRootNode()&&g.QY(this.C.getRootNode(),"ytp-shopping-pill-shown",this.aI())};g.y(mlx,g.X); mlx.prototype.FW=function(){var N=this.api.D();this.iF(g.Uu(N)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Vh);var z=g.h(this.api.getVideoData()),v=!1;this.api.getPresentingPlayerType()===2?v=!!z.videoId&&!!z.isListed&&!!z.author&&!!z.gW&&!!z.profilePicture:g.Uu(N)&&(v=!!z.videoId&&!!z.gW&&!!z.profilePicture&&!g.z8(z)&&!N.Z&&!(N.L&&this.api.getPlayerSize().width<200));var R=z.profilePicture;N=g.Uu(N)?z.expandedTitle:z.author;R=R=== void 0?"":R;N=N===void 0?"":N;v?(this.W!==R&&(this.V.style.backgroundImage="url("+R+")",this.W=R),this.updateValue("channelLogoLabel",g.WA("Foto de $CHANNEL_NAME",{CHANNEL_NAME:N})),g.Ye(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.jW(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.V,v&&this.B);this.api.logVisibility(this.channelName,v&&this.B);this.subscribeButton&&(this.subscribeButton.channelId=z.JR);this.updateValue("expandedTitle",z.expandedTitle)};g.y(y9,g.D2);y9.prototype.show=function(){g.D2.prototype.show.call(this);this.V.start()}; y9.prototype.hide=function(){g.D2.prototype.hide.call(this);this.V.stop()}; y9.prototype.HW=function(N,z){N==="dataloaded"&&((this.Eu=z.Eu,this.HH=z.HH,isNaN(this.Eu)||isNaN(this.HH))?this.Z&&(this.C.s6("intro"),this.C.removeEventListener(g.R2("intro"),this.L),this.C.removeEventListener(g.C7("intro"),this.G),this.C.removeEventListener("onShowControls",this.N),this.hide(),this.Z=!1):(this.C.addEventListener(g.R2("intro"),this.L),this.C.addEventListener(g.C7("intro"),this.G),this.C.addEventListener("onShowControls",this.N),N=new g.zt(this.Eu,this.HH,{priority:9,namespace:"intro"}), this.C.QT([N]),this.Z=!0))};g.y(fn,g.X);fn.prototype.onClick=function(){this.C.e1()}; fn.prototype.FW=function(){var N=!0;g.Uu(this.C.D())&&(N=N&&this.C.n0().getPlayerSize().width>=480);this.iF(N);this.updateValue("icon",this.C.jN()?{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,T:{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"}}]}: {K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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(Ulv,g.X);Ulv.prototype.AO=function(){this.V=null;g.X.prototype.AO.call(this)};g.y(dc,g.X);dc.prototype.onClick=function(){this.C.Qp("innertubeCommand",this.W)}; dc.prototype.J=function(N){N!==this.G&&(this.update({title:N,ariaLabel:N}),this.G=N);N?this.show():this.hide()}; dc.prototype.Y=function(){this.V.disabled=this.W==null;g.QY(this.V,"ytp-chapter-container-disabled",this.V.disabled);this.G4()};g.y(s$,dc);s$.prototype.onClickCommand=function(N){g.t(N,zh)&&this.G4()}; s$.prototype.updateVideoData=function(N,z){var v,R,C;N=g.t((v=z.getWatchNextResponse())==null?void 0:(R=v.playerOverlays)==null?void 0:(C=R.playerOverlayRenderer)==null?void 0:C.decoratedPlayerBarRenderer,mO);v=g.t(N==null?void 0:N.playerBarActionButton,g.E9);this.C.X("web_player_updated_entrypoint")&&(this.L=nb(v==null?void 0:v.text));this.W=v==null?void 0:v.command;dc.prototype.Y.call(this)}; s$.prototype.G4=function(){var N=this.C.X("web_player_updated_entrypoint")?this.L:"",z=this.N.V,v,R=((v=this.C.getLoopRange())==null?void 0:v.type)==="clips";if(z.length>1&&!R){N=this.C.getProgressState().current*1E3;v=Cn(z,N);N=z[v].title||"Cap\u00edtulos";if(v!==this.currentIndex||this.Z)this.C.Qp("innertubeCommand",z[v].onActiveCommand),this.currentIndex=v;this.Z=!1}else this.Z=!0;dc.prototype.J.call(this,N)};g.y(TO,g.lG);TO.prototype.W=function(){var N;(N=this.element.parentElement)==null||N.classList.contains("ytp-right-controls-left");(this.V=!this.V)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; TO.prototype.isExpanded=function(){return this.V};g.y(FE,g.X);FE.prototype.Z=function(N){g.u(N.state,32)?AAu(this,this.api.JJ()):this.Vh&&(g.u(N.state,16)||g.u(N.state,1))||this.fade.hide()}; FE.prototype.MH=function(){var N=this.api.getPlayerStateObject();(g.u(N,32)||g.u(N,16))&&gG_(this)}; FE.prototype.N=function(){this.frameIndex=NaN;gG_(this)}; FE.prototype.hide=function(){this.V&&AAu(this,null);g.X.prototype.hide.call(this)};g.y(ppu,g.X);g.J=ppu.prototype;g.J.onClick=function(){var N=this;if(this.C.D().gW||this.C.D().L){this.C.logClick(this.element);try{this.C.toggleFullscreen().catch(function(z){N.OW(z)})}catch(z){this.OW(z)}}else tW(this.message,this.element,!0)}; g.J.OW=function(N){String(N).includes("fullscreen error")?g.PN(N):g.kE(N);this.Hl()}; g.J.Hl=function(){this.disable();this.message.uF(this.element,!0)}; g.J.YV=function(){ec()===this.C.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.J.rz=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var N=window.screen.width*.9,z=window.screen.height*.9,v=Math.max(window.outerWidth,window.innerWidth),R=Math.max(window.outerHeight,window.innerHeight);if(v>R!==N>z){var C=v;v=R;R=C}N>v&&z>R&&this.Hl()}}; g.J.disable=function(){var N=this;if(!this.message){var z=(We(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.D2(this.C,{K:"div",GU:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"}, j:[z[0],{K:"a",T:{href:"https://support.google.com/youtube/answer/6276924",target:this.C.D().J},OT:z[2]},z[4]]},100,!0);this.message.hide();g.b(this,this.message);this.message.subscribe("show",function(v){N.W.tp(N.message,v)}); g.PX(this.C,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.V)();this.V=null}}; g.J.FW=function(){var N=x$U(this.C),z=this.C.D().L&&this.C.getPlayerSize().width<250;this.iF(N&&!z);var v;((v=this.C.D())==null?0:v.X("embeds_use_parent_visibility_in_ve_logging"))?this.C.logVisibility(this.element,this.Vh&&this.B):this.C.logVisibility(this.element,this.Vh)}; g.J.m5=function(N){if(N){var z={K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"g",U:"ytp-fullscreen-button-corner-2",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-3",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-0",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g", U:"ytp-fullscreen-button-corner-1",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};N=g.n2(this.C,"Salir del modo de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"});document.activeElement===this.element&&this.C.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(v){g.PN(v)})}else z={K:"svg", T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"g",U:"ytp-fullscreen-button-corner-0",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-1",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-2",j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-3", j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},N=g.n2(this.C,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});N=this.message?null:N;this.update({title:N,icon:z});this.W.Fv().Ql()}; g.J.AO=function(){this.message||((0,this.V)(),this.V=null);g.X.prototype.AO.call(this)}; g.J.Fm=function(N){g.X.prototype.Fm.call(this,N);var z;((z=this.C.D())==null?0:z.X("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Vh&&N)};g.y(nn,g.X);nn.prototype.onClick=function(){this.C.logClick(this.element);this.C.seekBy(this.V,!0);var N=this.V>0?1:-1,z=Math.abs(this.V),v;(v=this.C.CO().sP)&&v.Ya(N,z);this.W.isActive()?this.Z=!0:(N=["ytp-jump-spin"],this.V<0&&N.push("backwards"),this.element.classList.add.apply(this.element.classList,g.U(N)),g.qv(this.W))};g.y(m2,dc);m2.prototype.onClickCommand=function(N){g.t(N,$8W)&&this.G4()}; m2.prototype.updateVideoData=function(){var N,z;this.W=(N=PZK(this))==null?void 0:(z=N.onTap)==null?void 0:z.innertubeCommand;dc.prototype.Y.call(this)}; m2.prototype.G4=function(){var N="",z=this.N.L,v,R=(v=PZK(this))==null?void 0:v.headerTitle;v=R?g.xt(R):"";var C;R=((C=this.C.getLoopRange())==null?void 0:C.type)==="clips";z.length>1&&!R&&(N=this.C.getProgressState().current*1E3,C=h4f(z,N),N=C!=null?z[C].title:v,C!=null&&C!==this.currentIndex&&(this.C.Qp("innertubeCommand",z[C].onActiveCommand),this.currentIndex=C));dc.prototype.J.call(this,N)};g.y($M,g.X);$M.prototype.onClick=function(){this.C.Qp("onCollapseMiniplayer");this.C.logClick(this.element)}; $M.prototype.FW=function(){this.visible=!this.C.isFullscreen();this.iF(this.visible);this.C.logVisibility(this.element,this.visible&&this.B)}; $M.prototype.Fm=function(N){g.X.prototype.Fm.call(this,N);this.C.logVisibility(this.element,this.visible&&N)};g.y(U$,g.X);U$.prototype.init=function(){this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.L);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.V);VwY(this,this.V)}; U$.prototype.N=function(){B5(this,Number(this.W.value));this.W.focus()}; U$.prototype.Z=function(N){if(!N.defaultPrevented){switch(N.code){case "ArrowDown":N=-this.Y;break;case "ArrowUp":N=this.Y;break;default:return}B5(this,Math.min(this.L,Math.max(Number((this.V+N).toFixed(2)),this.G)))}};g.y(Ae,U$);Ae.prototype.onVolumeChange=function(N){if(this.J)this.J=!1;else{var z=N.volume;z===0||N.muted?B5(this,0):B5(this,z)}}; Ae.prototype.N=function(){U$.prototype.N.call(this);this.qd(this.V)}; Ae.prototype.Z=function(N){U$.prototype.Z.call(this,N);this.qd(this.V)}; Ae.prototype.Vp=function(N,z){this.J=!0;N===0||z?this.C.mute():(this.C.isMuted()&&this.C.unMute(),this.C.setVolume(N))};g.y(SX2,g.X);g.y(pn,g.X);g.J=pn.prototype;g.J.E8=function(N){this.visible=N.width>=300||this.tO;this.iF(this.visible);this.C.logVisibility(this.element,this.visible&&this.B)}; g.J.hF=function(){this.C.D().Id?this.C.isMuted()?this.C.unMute():this.C.mute():tW(this.message,this.element,!0);this.C.logClick(this.element)}; g.J.GWU=function(N){if(this.C.D().Id&&this.V)if(N.target===this.Z){var z;if(!this.C.Ce()||((z=this.V)==null?0:z.isVisible))this.hF();else{var v;(v=this.V)!=null&&gc(v,!0)}}else{var R;(R=this.V)!=null&&gc(R,!0)}else this.hF()}; g.J.onVolumeChange=function(N){this.setVolume(N.volume,N.muted)}; g.J.setVolume=function(N,z){var v=this,R=z?0:N/100,C=this.C.D();N=R===0?1:N>50?1:0;if(this.Y!==N){var Z=this.K0;isNaN(Z)?oG2(this,N):w5u(this.Id,function(Q){oG2(v,Z+(v.Y-Z)*Q)},250); this.Y=N}R=R===0?1:0;if(this.L!==R){var Y=this.Vp;isNaN(Y)?DlI(this,R):w5u(this.PL,function(Q){DlI(v,Y+(v.L-Y)*Q)},250); this.L=R}C.Id&&(C=g.n2(this.C,"Silenciar","m"),R=g.n2(this.C,"Activar sonido","m"),this.updateValue("title",z?R:C),this.update({"data-title-no-tooltip":z?"Activar sonido":"Silenciar"}),this.tooltip.Ql())}; g.J.Fm=function(N){g.X.prototype.Fm.call(this,N);this.C.logVisibility(this.element,this.visible&&N)}; var hjO=["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"],Hd7=["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.kM,g.X);g.J=g.kM.prototype;g.J.onStateChange=function(N){this.lF(N.state);var z;((z=this.C.D())==null?0:z.X("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Vh&&this.B)}; g.J.lF=function(N){var z=g.mw(g.h(this.C.getVideoData())),v=!1;N.isOrWillBePlaying()?N=z?4:2:g.u(N,2)?(N=3,v=z):N=1;this.element.disabled=v;if(this.V!==N){z=null;switch(N){case 2:z=g.n2(this.C,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:z="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:z=g.n2(this.C,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:z="Detener reproducci\u00f3n en directo", this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n en directo"})}N===3?this.update({title:z,icon:bdf(N)}):(this.update({title:z}),(z=bdf(N))&&this.V&&this.V!==3?zzb(this.transition,this.element,z):this.updateValue("icon",z));this.tooltip.Ql();this.V=N}}; g.J.onVideoDataChange=function(){g.QY(this.element,"ytp-play-button-playlist",g.AW(this.C))}; g.J.Qs=function(N){this.C.logClick(this.element);if(this.C.getPlayerStateObject().isOrWillBePlaying())this.C.pauseVideo();else{if(this.C.isMinimized()&&this.C.getPlayerStateObject().isCued()){var z={},v;if((v=this.C.getVideoData())==null?0:v.G)z.cttAuthInfo={token:this.C.getVideoData().G,videoId:this.C.getVideoData().videoId};DT("direct_playback",z);this.C.M2().timerName="direct_playback"}this.C.playVideo()}this.C.isMinimized()&&(N==null?void 0:N.type)==="click"&&this.element.blur()}; g.J.Fm=function(N){g.X.prototype.Fm.call(this,N);var z;((z=this.C.D())==null?0:z.X("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Vh&&N)};g.y(g.P5,g.X);g.J=g.P5.prototype;g.J.onVideoDataChange=function(){Odu(this);this.N&&(this.Kb(this.N),this.N=null);this.videoData=this.C.getVideoData(1);if(this.playlist=this.C.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.N=this.S(this.C,"progresssync",this.Db);this.Z=Ipv(this);twY(this);this.EB(this.C.n0().getPlayerSize())}; g.J.EB=function(N){N=N===void 0?this.C.n0().getPlayerSize():N;var z,v=((z=this.C.getLoopRange())==null?void 0:z.type)==="clips";N=(g.AW(this.C)||this.V&&g.VI(this.C)&&!this.C.X("web_hide_next_button")||XpK(this))&&!v&&(this.V||N.width>=400);this.iF(N);this.C.logVisibility(this.element,N)}; g.J.onClick=function(N){this.C.logClick(this.element);var z=!0;this.L?z=g.YY(N,this.C):N.preventDefault();z&&(this.V&&this.C.getPresentingPlayerType()===5?this.C.publish("ytoprerollinternstitialnext"):this.V?(LL(this.C.M2()),this.C.publish("playlistnextbuttonclicked",this.element),this.C.nextVideo(!0)):this.Z?this.C.seekTo(0):(LL(this.C.M2()),this.C.publish("playlistprevbuttonclicked",this.element),this.C.previousVideo(!0)))}; g.J.Db=function(){var N=Ipv(this);N!==this.Z&&(this.Z=N,twY(this))}; g.J.AO=function(){this.W&&(this.W(),this.W=null);Odu(this);g.X.prototype.AO.call(this)};g.y(uZu,g.X);g.J=uZu.prototype;g.J.mD=function(N){this.JU(N.pageX);this.TP(N.pageX+N.deltaX);cAI(this)}; g.J.JU=function(N){this.qd=N-this.tO}; g.J.TP=function(N){N-=this.tO;!isNaN(this.qd)&&this.thumbnails.length>0&&(this.J=N-this.qd,this.thumbnails.length>0&&this.J!==0&&(this.Z=this.Y+this.J,N=zb_(this,this.Z),this.Z<=this.V/2&&this.Z>=Nz_(this)?(this.api.seekTo(N,!1,void 0,void 0,25),g.SB(this.PL,"transform","translateX("+(this.Z-this.V/2)+"px)"),rAu(this,N)):this.Z=this.Y))}; g.J.jG=function(){this.Vp&&(this.Vp.Pu=!0);var N=(0,g.I)()-this.UT<300;if(Math.abs(this.J)<5&&!N){this.UT=(0,g.I)();N=this.qd+this.J;var z=this.V/2-N;this.JU(N);this.TP(N+z);cAI(this);this.api.logClick(this.G)}cAI(this)}; g.J.Qt=function(){V9(this,this.api.getCurrentTime())}; g.J.play=function(N){this.api.seekTo(zb_(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();N&&this.api.logClick(this.playButton)}; g.J.onExit=function(N){this.api.seekTo(this.BL,void 0,void 0,void 0,63);this.api.playVideo();N&&this.api.logClick(this.dismissButton)}; g.J.wW=function(N,z){this.tO=N;this.V=z;V9(this,this.api.getCurrentTime())}; g.J.enable=function(){this.isEnabled||(this.isEnabled=!0,this.BL=this.api.getCurrentTime(),rAu(this,this.BL),g.QY(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Id=this.S(this.element,"wheel",this.mD),this.logVisibility(this.isEnabled))}; g.J.disable=function(){this.isEnabled=!1;this.hide();g.QY(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Id&&this.Kb(this.Id);this.logVisibility(this.isEnabled)}; g.J.reset=function(){this.disable();this.N=[];this.Rd=!1}; g.J.logVisibility=function(N){this.api.logVisibility(this.element,N);this.api.logVisibility(this.G,N);this.api.logVisibility(this.dismissButton,N);this.api.logVisibility(this.playButton,N)}; g.J.AO=function(){for(;this.W.length;){var N=void 0;(N=this.W.pop())==null||N.dispose()}g.X.prototype.AO.call(this)}; g.y(qXu,g.X);g.y(MwK,g.X);g.y(vhu,g.X);g.y(Sf,g.X);Sf.prototype.Nu=function(N){return N==="PLAY_PROGRESS"?this.Y:N==="LOAD_PROGRESS"?this.L:N==="LIVE_BUFFER"?this.G:this.Z};ZQO.prototype.update=function(N,z,v,R){v=v===void 0?0:v;this.width=z;this.N=v;this.V=z-v-(R===void 0?0:R);this.position=g.UC(N,v,v+this.V);this.Z=this.position-v;this.W=this.Z/this.V};g.y(Yeb,g.X);g.y(g.H5,g.lG);g.J=g.H5.prototype; g.J.Eh=function(){var N=!1,z=this.api.getVideoData();if(!z)return N;this.api.s6("timedMarkerCueRange");a62(this);for(var v=g.f(z.ET),R=v.next();!R.done;R=v.next()){R=R.value;var C=void 0,Z=(C=this.S8[R])==null?void 0:C.markerType;C=void 0;var Y=(C=this.S8[R])==null?void 0:C.markers;if(!Y)break;if(Z==="MARKER_TYPE_TIMESTAMPS"){N=g.f(Y);for(Z=N.next();!Z.done;Z=N.next()){C=Z.value;Z=new Yeb;Y=void 0;Z.title=((Y=C.title)==null?void 0:Y.simpleText)||"";Z.timeRangeStartMillis=Number(C.startMillis);Z.V= Number(C.durationMillis);var Q=Y=void 0;Z.onActiveCommand=(Q=(Y=C.onActive)==null?void 0:Y.innertubeCommand)!=null?Q:void 0;GlO(this,Z)}xSI(this,this.L);N=this.L;Z=this.L5;C=[];Y=null;for(Q=0;QL&&(Y.end=L);L=D7x(L,L+l);C.push(L);Y=L;Z[L.id]=N[Q].onActiveCommand}}this.api.QT(C);this.cP=this.S8[R];N=!0}else if(Z==="MARKER_TYPE_HEATMAP"){R=this.S8[R];l=K=C=L=Q=Y=void 0;if(R&& R.markers){Z=(C=(l=R.markersMetadata)==null?void 0:(K=l.heatmapMetadata)==null?void 0:K.minHeightDp)!=null?C:0;C=(Y=(L=R.markersMetadata)==null?void 0:(Q=L.heatmapMetadata)==null?void 0:Q.maxHeightDp)!=null?Y:60;Y=this.V.length;Q=null;for(L=0;L=l&&e<=W&&K.push(x)}C>0&&(this.Vp.style.height= C+"px");l=this.N[L];W=K;x=Z;var d=C,T=L===0;T=T===void 0?!1:T;Rb7(l,d);G=W;e=l.W;T=T===void 0?!1:T;var m=1E3/G.length,n=[];n.push({x:0,y:100});for(var P=0;P0&&(Q=K[K.length-1])}g.ox(this)}C=void 0;Z=[];if(R=(C=R.markersDecoration)==null?void 0:C.timedMarkerDecorations)for(R=g.f(R),C=R.next();!C.done;C=R.next())C=C.value,L=Q=Y=void 0,Z.push({visibleTimeRangeStartMillis:(Y=C.visibleTimeRangeStartMillis)!=null?Y:-1,visibleTimeRangeEndMillis:(Q=C.visibleTimeRangeEndMillis)!=null?Q:-1,decorationTimeMillis:(L=C.decorationTimeMillis)!= null?L:NaN,label:C.label?g.xt(C.label):""});R=Z;this.heatMarkersDecorations=R}}z.u2=this.L;g.QY(this.element,"ytp-timed-markers-enabled",N);return N}; g.J.wW=function(){g.ox(this);te(this);xSI(this,this.L);if(this.W){var N=g.OV(this.element).x||0;this.W.wW(N,this.G)}(N=this.api.getVideoData())&&!this.api.X("themed_progress_bar_refresh_on_resize_killswitch")&&$Sv(this,N)}; g.J.onClickCommand=function(N){if(N=g.t(N,zh)){var z=N.key;N.isVisible&&z&&f6K(this,z)}}; g.J.rTp=function(N){this.api.Qp("innertubeCommand",this.L5[N.id])}; g.J.G4=function(){te(this);var N=this.api.getCurrentTime();(Nthis.clipEnd)&&this.QN()}; g.J.w7=function(N){if(!N.defaultPrevented){var z=!1;switch(N.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);z=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);z=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);z=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);z=!0;break;case 38:this.api.X("enable_key_press_seek_logging")&&c5(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);z=!0;break;case 40:this.api.X("enable_key_press_seek_logging")&&c5(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),z=!0}z&&N.preventDefault()}}; g.J.HW=function(N,z){this.updateVideoData(z,N==="newdata")}; g.J.D2=function(){this.HW("newdata",g.h(this.api.getVideoData()))}; g.J.updateVideoData=function(N,z){z=z===void 0?!1:z;var v=!!N&&N.Y8();v&&(N1(N)||nhI(this)?this.g$=!1:this.g$=N.allowLiveDvr,g.QY(this.api.getRootNode(),"ytp-enable-live-buffer",!(N==null||!N1(N))),this.api.X("enable_custom_playhead_parsing")&&$Sv(this,N));ohu(this,this.api.wi());if(z){if(v){z=N.clipEnd;this.clipStart=N.clipStart;this.clipEnd=z;qB(this);for(XE(this,this.qd,this.A0);this.N.length>0;)this.N.pop().dispose();this.heatMarkersDecorations=[];this.CV={};var R;(R=this.W)==null||R.reset(); vB(this);g.QY(this.api.getRootNode(),"ytp-fine-scrubbing-exp",he(this))}else this.QN();this.iL()}if(N){var C;R=((C=this.GE)==null?void 0:C.type)==="clips";if(C=!N.isLivePlayback){C=g.h(this.api.getVideoData());z=g.$N(C);v=Lyb(C);var Z;C=z!=null||v!=null&&v.length>0||((Z=C.kF)==null?void 0:Z.length)>0}if(C&&!R){Z=g.h(this.api.getVideoData());R=g.$N(Z);C=!1;if(R==null?0:R.markersMap){C=g.h(this.api.getVideoData());var Y;C.xO=((Y=R.visibleOnLoad)==null?void 0:Y.key)||C.xO;Y=g.f(R.markersMap);for(R=Y.next();!R.done;R= Y.next())R=R.value,R.key&&R.value&&(this.CV[R.key]=R.value,R.value.onChapterRepeat&&(C.trd=R.value.onChapterRepeat));C.xO!=null&&f6K(this,C.xO);C=!0}var Q;if(((Q=Z.kF)==null?void 0:Q.length)>0){Q=g.v0.getState().entities;Y=g.f(Z.kF);for(R=Y.next();!R.done;R=Y.next()){R=R.value;v=void 0;z=(v=wJ(Q,"macroMarkersListEntity",R))==null?void 0:v.markersList;var L=v=void 0;if(((v=z)==null?void 0:v.markerType)==="MARKER_TYPE_TIMESTAMPS"||((L=z)==null?void 0:L.markerType)==="MARKER_TYPE_HEATMAP")this.S8[R]= z}C=this.Eh()||C}!C&&(Q=Lyb(Z))&&(l6v(this,Q),Z.cP=this.V,Ky_(this));USK(this,null);N.C$&&this.N.length===0&&(N=N.C$,Q=N.key,N.isVisible&&Q&&f6K(this,Q))}else iQm(this),a62(this)}te(this)}; g.J.jP=function(N){this.Y&&!g.u(N.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var z;((z=this.W)==null?0:z.isEnabled)&&g.u(N.state,8)&&this.api.pauseVideo();N=this.api.getPresentingPlayerType()===2||!this.api.wi()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.QY(this.MF,"ytp-hide-scrubber-button",N)}; g.J.Tj=function(N){var z=!!this.GE!==!!N,v=this.GE;this.GE=N;USK(this,v);(N==null?void 0:N.type)!=="clips"&&N||(N?(this.updateValue("clipstarticon",J6_()),this.updateValue("clipendicon",J6_()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",QXu()),this.updateValue("clipendicon",a4f()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),z&&(this.updateVideoData(this.api.getVideoData(), !0),g.ox(this)),qB(this));XE(this,this.qd,this.A0)}; g.J.CFL=function(N,z,v){var R=g.OV(this.element),C=bV(this).V,Z=v?v.getAttribute("data-tooltip"):void 0,Y=v?v.getAttribute("data-position"):void 0,Q=v?v.getAttribute("data-offset-y"):void 0;Q=Q?Number(Q):0;Y&&(N=kJ(this.Z,Number(v.getAttribute("data-position")),0)*C+g.OV(this.progressBar).x);this.gW.x=N-R.x;this.gW.y=z-R.y;N=bV(this);v=uV(this,N);z=0;var L;if((L=this.api.getVideoData())==null?0:N1(L))(L=this.api.getProgressState().seekableEnd)&&v>L&&(v=L,N.position=kJ(this.Z,L)*bV(this).V),z=this.Z.W; nhI(this)&&(z=this.Z.W);L=Z||g.TX(this.g$?v-this.Z.V:v-z);z=N.position+this.o4;v-=this.api.fV();var K;if((K=this.W)==null||!K.isEnabled)if(this.api.JJ()){if(this.V.length>1){K=rc(this,this.gW.x,!0);if(!this.GE)for(R=0;R1)for(R=0;R0)for(K=this.gW.x,R=g.f(this.L),C=R.next();!C.done;C=R.next())C=C.value,Y=DE(this,C.timeRangeStartMillis/ (this.Z.V*1E3),bV(this)),g.QY(C.element,"ytp-timed-marker-hover",Y<=K&&Y+6>=K);R=this.tooltip.scale;K=this.api.X("delhi_modern_web_player")?67:45;Q=(isNaN(Q)?0:Q)-K*R;this.api.X("web_key_moments_markers")?this.cP?(K=h4f(this.L,v*1E3),K=K!=null?this.L[K].title:""):(K=Cn(this.V,v*1E3),K=this.V[K].title):(K=Cn(this.V,v*1E3),K=this.V[K].title);K||(Q+=16*R);this.tooltip.scale===.6&&(g.ci(this.api.D())?(Q=this.api.n0().getPlayerSize().height-225,Q=K?Q+110:Q+110+16):Q=K?110:126);R=Cn(this.V,v*1E3);this.Rd= Bzb(this,v,R)?R:Bzb(this,v,R+1)?R+1:-1;g.QY(this.api.getRootNode(),"ytp-progress-bar-snap",this.Rd!==-1&&this.V.length>1);R=!1;C=g.f(this.heatMarkersDecorations);for(Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var l=v*1E3;l>=Y.visibleTimeRangeStartMillis&&l<=Y.visibleTimeRangeEndMillis&&(K=Y.label,L=g.TX(Y.decorationTimeMillis/1E3),R=!0)}this.p5!==R&&(this.p5=R,this.api.logVisibility(this.er,this.p5));g.QY(this.api.getRootNode(),"ytp-progress-bar-decoration",R);R=160*this.tooltip.scale*2;C=K.length* (this.J?8.55:5.7);C=C<=R?C:R;Y=C<160*this.tooltip.scale;R=3;!Y&&C/2>N.position&&(R=1);!Y&&C/2>this.G-N.position&&(R=2);this.api.D().L&&(Q-=10);this.N.length&&this.N[0].Y8&&(Q-=14*(this.J?2:1),this.BL||(this.BL=!0,this.api.logVisibility(this.Vp,this.BL)));var W;if(he(this)&&(((W=this.W)==null?0:W.isEnabled)||this.xT>0)){var G;Q-=((G=this.W)==null?0:G.isEnabled)?wc(this):this.xT}W=void 0;he(this)&&!this.api.X("web_player_hide_fine_scrubbing_edu")&&(W="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas", this.tO||(this.tO=!0,this.api.logVisibility(this.Bc,this.tO)));this.tooltip.LW(z,v,L,!!Z,Q,K,R,W)}else this.tooltip.LW(z,v,L,!!Z,Q);g.Ye(this.api.getRootNode(),"ytp-progress-bar-hover");FyK(this)}; g.J.RC8=function(){this.iL();g.jW(this.api.getRootNode(),"ytp-progress-bar-hover");this.BL&&(this.BL=!1,this.api.logVisibility(this.Vp,this.BL));this.tO&&(this.tO=!1,this.api.logVisibility(this.Bc,this.tO))}; g.J.K4O=function(N,z){var v=g.OV(this.element);this.c5=N-v.x;he(this)&&this.W&&(this.W.Rd?V9(this.W,this.api.getCurrentTime()):wpu(this.W),this.W.show(),g.QY(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.BH&&(this.BH.dispose(),this.BH=null);this.gD=z;this.s9=this.api.getCurrentTime();this.V.length>1&&this.Rd!==-1?this.api.seekTo(this.V[this.Rd].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(uV(this,bV(this)),!1,void 0,void 0,7);g.Ye(this.element,"ytp-drag");(this.a_= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.J.G4l=function(){if(he(this)&&this.W){var N=wc(this);this.xT>=N*.5?(this.W.enable(),V9(this.W,this.api.getCurrentTime()),HQ2(this,N)):vB(this)}if(g.u(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var z;if((z=this.W)==null?0:z.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.V.length>1&&this.Rd!==-1)this.api.X("html5_enable_progress_bar_slide_seek_logging")&&c5(this,this.s9,this.V[this.Rd].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.V[this.Rd].startTime/1E3,void 0,void 0,void 0,7);else{N=uV(this,bV(this));this.api.X("html5_enable_progress_bar_slide_seek_logging")&&c5(this,this.s9,N,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(N,void 0,void 0,void 0,7);z=g.f(this.heatMarkersDecorations);for(var v=z.next();!v.done;v=z.next())v=v.value,N*1E3>=v.visibleTimeRangeStartMillis&&N*1E3<=v.visibleTimeRangeEndMillis&& this.api.logClick(this.er)}g.jW(this.element,"ytp-drag");this.K0&&(this.PL.src=this.K0);this.a_&&!g.u(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.J.dpp=function(N,z){var v=this,R=bV(this),C=uV(this,R);this.api.X("enable_custom_playhead_parsing")&&!this.api.n0().zb&&(R.position>this.c5+2?this.J0&&(this.PL.src=this.J0):R.position1);this.iF(N&&this.C.n0().getPlayerSize().width>=400);this.C.logVisibility(this.element,this.Vh);var z=1;N&&this.isActive()&&(z=2);if(this.V!==z){this.V=z;switch(z){case 1:this.updateValue("icon",{K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{K:"path",qp:!0,T:{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.iJv())}g.QY(this.element,"ytp-remote-button-active",this.isActive())}}; Rf.prototype.W=function(){if(this.C.getOption("remote","quickCast"))this.C.setOption("remote","quickCast",!0);else{var N=this.b$,z=this.element;if(N.NE())N.pV();else{N.initialize();a:{var v=g.f(N.k$.items);for(var R=v.next();!R.done;R=v.next())if(R=R.value,R.priority===1){v=R;break a}v=null}v&&(v.open(),N.uF(z));N.uF(z)}}this.C.logClick(this.element)};g.y(C8,g.X);C8.prototype.V=function(N){var z=this.C.D(),v=400;this.C.X("web_player_small_hbp_settings_menu")&&z.G?v=300:z.L&&(v=200);N=this.W&&N.width>=v;this.iF(N);this.C.X("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,N&&this.B):this.C.logVisibility(this.element,N)}; C8.prototype.Z=function(){if(this.b$.Vh)this.b$.pV();else{var N=g.TI(this.C.eV());N&&!N.loaded&&(N.mA("tracklist",{includeAsr:!0}).length||N.load());this.C.logClick(this.element);this.b$.uF(this.element)}}; C8.prototype.updateBadge=function(){var N=this.C.isHdr(),z=this.C.getPresentingPlayerType(),v=z!==2&&z!==3,R=g.ky(this.C),C=v&&!!g.p2(this.C.eV());z=C&&R.displayMode===1;R=C&&R.displayMode===2;v=(C=z||R)||!v?null:this.C.getPlaybackQuality();g.QY(this.element,"ytp-hdr-quality-badge",N);g.QY(this.element,"ytp-hd-quality-badge",!N&&(v==="hd1080"||v==="hd1440"));g.QY(this.element,"ytp-4k-quality-badge",!N&&v==="hd2160");g.QY(this.element,"ytp-5k-quality-badge",!N&&v==="hd2880");g.QY(this.element,"ytp-8k-quality-badge", !N&&v==="highres");g.QY(this.element,"ytp-3d-badge-grey",!N&&C&&z);g.QY(this.element,"ytp-3d-badge",!N&&C&&R)};g.y(Zb,Cs);Zb.prototype.isLoaded=function(){var N=g.Bb(this.C.eV());return N!==void 0&&N.loaded}; Zb.prototype.FW=function(){g.Bb(this.C.eV())!==void 0&&this.C.getPresentingPlayerType()!==3?this.V||(this.b$.dH(this),this.V=!0):this.V&&(this.b$.LU(this),this.V=!1);ZS(this,this.isLoaded())}; Zb.prototype.onSelect=function(N){this.isLoaded();N?this.C.loadModule("annotations_module"):this.C.unloadModule("annotations_module");this.C.publish("annotationvisibility",N)}; Zb.prototype.AO=function(){this.V&&this.b$.LU(this);Cs.prototype.AO.call(this)};g.y(Yi,g.Ph);Yi.prototype.FW=function(){var N=this.C.getAvailableAudioTracks();N.length>1?(this.OA(g.OL(N,this.V)),this.tracks=g.H$(N,this.V,this),this.countLabel.Qy(N.length?" ("+N.length+")":""),this.publish("size-change"),this.jI(this.V(this.C.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Yi.prototype.kB=function(N){g.Ph.prototype.kB.call(this,N);this.C.setAudioTrack(this.tracks[N]);this.b$.vK()}; Yi.prototype.V=function(N){return N.toString()};g.y(ju,Cs); ju.prototype.W=function(){var N=this.C.getPresentingPlayerType();if(N!==2&&N!==3&&g.VI(this.C))this.V||(this.b$.dH(this),this.V=!0,this.Z.push(this.S(this.C,"videodatachange",this.W)),this.Z.push(this.S(this.C,"videoplayerreset",this.W)),this.Z.push(this.S(this.C,"onPlaylistUpdate",this.W)),this.Z.push(this.S(this.C,"autonavchange",this.N)),N=g.h(this.C.getVideoData()),this.N(N.autonavState),this.C.logVisibility(this.element,this.V));else if(this.V){this.b$.LU(this);this.V=!1;N=g.f(this.Z);for(var z= N.next();!z.done;z=N.next())this.Kb(z.value)}}; ju.prototype.N=function(N){ZS(this,N!==1)}; ju.prototype.onSelect=function(N){this.C.iM(N?2:1);this.V&&(this.C.logVisibility(this.element,this.V),this.C.logClick(this.element))}; ju.prototype.AO=function(){this.V&&this.b$.LU(this);Cs.prototype.AO.call(this)};g.y(bQx,g.Xj);bQx.prototype.onClick=function(N){N.preventDefault();var z,v;(z=g.G8(this.C))==null||(v=z.cW())==null||v.pV();var R,C;(R=g.G8(this.C))==null||(C=R.Ah())==null||C.uF(N.target)};g.y(tgK,g.Ph);g.J=tgK.prototype; g.J.zY=function(){var N=this.C.getPresentingPlayerType();if(N!==2&&N!==3){this.PL=this.C.XM();var z=this.C.getAvailableQualityLevels();if(this.V){this.N={};N=g.QI(this.C,"getAvailableQualityData",[]);N=g.f(N);for(var v=N.next();!v.done;v=N.next())v=v.value,this.N[v.qualityLabel]=v;N=Object.keys(this.N);z[z.length-1]==="auto"&&N.push("auto");this.K0=new Set(z)}else if(this.G){v=g.QI(this.C,"getAvailableQualityData",[]);N=[];v=g.f(v);for(var R=v.next();!R.done;R=v.next())R=R.value,this.J[R.quality]= R,R.quality&&N.push(R.quality);z[z.length-1]==="auto"&&N.push("auto")}else N=z;g.z_O(this.C)&&this.C.jn()&&N.unshift("missing-qualities");z=this.C.app.f0();v=z.getVideoData();if(!v.W||!v.W.video||v.W.video.qualityOrdinal<1080||v.yJ)z=!1;else{R=/^qsa/.test(v.clientPlaybackNonce);var C="r";v.W.id.indexOf(";")>=0&&(R=/^[a-p]/.test(v.clientPlaybackNonce),C="x");R?(z.WL("iqss",{trigger:C},!0),z=!0):z=!1}z&&N.unshift("inline-survey");this.OA(N);z=g.h(this.C.getVideoData()).cotn?!0:!1;v=this.Vp.r$();v=!g.ci(this.C.D())|| !(z===void 0?0:z)||!(v===void 0||v);z=this.W;v=v===void 0?!1:v;z.oA&&g.QY(z.e8("ytp-panel-footer"),"ytp-panel-hide-footer",v===void 0?!1:v);if(N.length){this.J8();this.enable(!0);return}}this.enable(!1)}; g.J.J8=function(){if(this.V){var N=this.C.getPreferredQuality();this.K0.has(N)&&(this.L=this.C.getPlaybackQuality(),this.qd=this.C.getPlaybackQualityLabel(),N==="auto"?(this.jI(N),this.Qy(this.WW(N))):this.jI(this.qd))}else N=this.C.getPreferredQuality(),this.options[N]&&(this.L=this.C.getPlaybackQuality(),this.jI(N),N==="auto"&&this.Qy(this.WW(N)))}; g.J.kB=function(N){if(N!=="missing-qualities"){g.Ph.prototype.kB.call(this,N);var z=this.V?this.N[N]:this.J[N];var v=z==null?void 0:z.quality,R=z==null?void 0:z.formatId,C=z==null?void 0:z.paygatedQualityDetails;z=C==null?void 0:C.endpoint;if(C){var Z;C=(Z=this.options[N])==null?void 0:Z.element;this.C.logClick(C)}if(this.V){var Y,Q;if((Y=g.t(z,g.d88))==null?0:(Q=Y.popup)==null?0:Q.notificationActionRenderer)this.C.Qp("innertubeCommand",z);else if(z){this.C.Qp("innertubeCommand",z);return}R?this.C.setPlaybackQuality(v, R):this.C.setPlaybackQuality(v)}else{if(this.G){var L,K;if((L=g.t(z,g.d88))==null?0:(K=L.popup)==null?0:K.notificationActionRenderer)this.C.Qp("innertubeCommand",z);else if(z){this.C.Qp("innertubeCommand",z);return}}this.C.setPlaybackQuality(N)}this.b$.pV();this.zY()}}; g.J.open=function(){for(var N=g.f(Object.values(this.options)),z=N.next();!z.done;z=N.next()){z=z.value;var v=void 0;this.C.hasVe((v=z)==null?void 0:v.element)&&(v=void 0,this.C.logVisibility((v=z)==null?void 0:v.element,!0))}g.Ph.prototype.open.call(this);this.C.logClick(this.element)}; g.J.q9=function(N,z,v){var R=this;if(N==="missing-qualities")return new g.Xj({K:"a",GU:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.C.D().J,tabindex:"0",role:"menuitemradio"},j:[{K:"div",GU:["ytp-menuitem-label"],OT:"{{label}}"}]},z,this.WW(N));if(N!=="inline-survey"){var C,Z=(C=this.V?this.N[N]:this.J[N])==null?void 0:C.paygatedQualityDetails;C=Z==null?void 0:Z.veType;Z=Z==null?void 0:Z.trackingParams;z=g.Ph.prototype.q9.call(this,N,z,v);Z?(this.C.createServerVe(z.element, this,!0),this.C.setTrackingParams(z.element,Z)):C&&this.C.createClientVe(z.element,this,C,!0);return z}N=[{K:"span",OT:"\u00bfSe ve bien?"}];v=g.f([!0,!1]);Z=v.next();for(C={};!Z.done;C={nL:void 0},Z=v.next())C.nL=Z.value,Z=new g.X({K:"span",U:"ytp-menuitem-inline-survey-response",j:[C.nL?e6x():Kev()],T:{tabindex:"0",role:"button"}}),Z.listen("click",function(Y){return function(){var Q=R.C.app.f0();Q.WL("iqsr",{tu:Y.nL});Q.getVideoData().yJ=!0;R.b$.pV();R.zY()}}(C)),N.push(Z); return new g.Xj({K:"div",U:"ytp-menuitem",T:{"aria-disabled":"true"},j:[{K:"div",GU:["ytp-menuitem-label"],j:N}]},z)}; g.J.WW=function(N,z){z=z===void 0?!1:z;if(N==="missing-qualities")return{K:"div",OT:"\u00bfFalta alguna opci\u00f3n?"};if(N==="inline-survey")return"";var v=this.G||this.V?[XxO(this,N,z,!1)]:[I6U(this,N)];var R=this.C.getPreferredQuality();z||R!=="auto"||N!=="auto"||(v.push(" "),this.V?v.push(XxO(this,this.qd,z,!0,["ytp-menu-label-secondary"])):this.G?v.push(XxO(this,this.L,z,!0,["ytp-menu-label-secondary"])):v.push(I6U(this,this.L,["ytp-menu-label-secondary"])));return{K:"div",j:v}};g.y(af,U$);af.prototype.N=function(){U$.prototype.N.call(this);this.J&&r$7(this)}; af.prototype.PL=function(){this.qd()}; af.prototype.Vp=function(){this.C.setPlaybackRate(this.V,!0)}; af.prototype.Z=function(N){U$.prototype.Z.call(this,N);this.qd();r$7(this);N.preventDefault()};g.y(QA,g.X);g.J=QA.prototype;g.J.init=function(){this.Rm(this.V);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.Z)}; g.J.Tg=function(N){if(!N.defaultPrevented){switch(N.keyCode){case 37:case 40:var z=-this.Y;break;case 39:case 38:z=this.Y;break;default:return}this.Rm(this.V+z);N.preventDefault()}}; g.J.EK=function(N){var z=this.V;z+=(N.deltaX||-N.deltaY)<0?-this.J:this.J;this.Rm(z);N.preventDefault()}; g.J.vE=function(N){N=(N-g.OV(this.N).x)/this.qd*this.range+this.W;this.Rm(N)}; g.J.Rm=function(N,z){z=z===void 0?"":z;N=g.UC(N,this.W,this.Z);z===""&&(z=N.toString());this.updateValue("valuenow",N);this.updateValue("valuetext",z);this.Vp.style.left=(N-this.W)/this.range*(this.qd-this.Rd)+"px";this.V=N}; g.J.focus=function(){this.Id.focus()};g.y(L8,QA);L8.prototype.PL=function(){this.C.setPlaybackRate(this.V,!0)}; L8.prototype.Rm=function(N){QA.prototype.Rm.call(this,N,c$O(this,N).toString());this.G&&(uLm(this),this.K0())}; L8.prototype.updateValues=function(){var N=this.C.getPlaybackRate();c$O(this,this.V)!==N&&(this.Rm(N),uLm(this))};g.y(qex,g.lG);qex.prototype.focus=function(){this.V.focus()};g.y(MgY,TG);g.y(wxU,g.Ph);g.J=wxU.prototype;g.J.WW=function(N){return N==="1"?"Normal":N.toLocaleString()}; g.J.FW=function(){var N,z=(N=this.C.getVideoData())==null?void 0:N.Lb();N=this.C.getPresentingPlayerType(z);this.enable(N!==2&&N!==3);vBm(this)}; g.J.OA=function(N){g.Ph.prototype.OA.call(this,N);this.L&&this.L.W.focus()}; g.J.QL=function(N){g.Ph.prototype.QL.call(this,N);N?(this.qd=this.S(this.C,"onPlaybackRateChange",this.onPlaybackRateChange),vBm(this),N62(this,this.C.getPlaybackRate())):(this.Kb(this.qd),this.qd=null)}; g.J.onPlaybackRateChange=function(N){var z=this.C.getPlaybackRate();!this.N&&this.J.includes(z)||zRm(this,z);N62(this,N)}; g.J.q9=function(N,z,v){return N===this.V&&RR_(this.C)?g.Ph.prototype.q9.call(this,N,z,v,{K:"div",U:"ytp-speed-slider-menu-footer",j:[this.L]}):g.Ph.prototype.q9.call(this,N,z,v)}; g.J.kB=function(N){g.Ph.prototype.kB.call(this,N);N===this.V?this.C.setPlaybackRate(this.G,!0):this.C.setPlaybackRate(Number(N),!0);RR_(this.C)&&N===this.V||this.b$.vK()}; g.J.Ye=function(N){var z=N===this.V;this.N=!1;z&&K8(this.C)&&!RR_(this.C)?(N=new MgY(this.C),g.$2(this.b$,N)):g.Ph.prototype.Ye.call(this,N)};g.y(ZDY,g.Ph);g.J=ZDY.prototype;g.J.jI=function(N){g.Ph.prototype.jI.call(this,N)}; g.J.ib=function(N){return N.option.toString()}; g.J.getOption=function(N){return this.settings[N]}; g.J.WW=function(N){return this.getOption(N).text||""}; g.J.kB=function(N){g.Ph.prototype.kB.call(this,N);this.publish("settingChange",this.setting,this.settings[N].option)};g.y(WB,g.FW);WB.prototype.zI=function(N){for(var z=g.f(Object.keys(N)),v=z.next();!v.done;v=z.next()){var R=v.value;if(v=this.cM[R]){var C=N[R].toString();R=!!N[R+"Override"];v.options[C]&&(v.jI(C),v.N.element.setAttribute("aria-checked",String(!R)),v.V.element.setAttribute("aria-checked",String(R)))}}}; WB.prototype.Xa=function(N,z){this.publish("settingChange",N,z)};g.y(Gd,g.Ph);Gd.prototype.V=function(N){return N.languageCode}; Gd.prototype.WW=function(N){return this.languages[N].languageName||""}; Gd.prototype.kB=function(N){this.publish("select",N);this.C.logClick(this.element);g.UR(this.b$)};g.y(jCK,g.Ph);g.J=jCK.prototype;g.J.Pd=function(N){return g.wE(N)?"__off__":N.displayName}; g.J.WW=function(N){return N==="__off__"?"Desactivados":N==="__translate__"?"Traducir autom\u00e1ticamente":N==="__contribute__"?"A\u00f1adir subt\u00edtulos":N==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(N==="__off__"?{}:this.tracks[N]).displayName}; g.J.kB=function(N){if(N==="__translate__")this.V.open();else if(N==="__contribute__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var z=g.oJ(this.C.D(),g.h(this.C.getVideoData()));g.tX(z)}else if(N==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var v=ahm(this);xi(this,v);g.Ph.prototype.kB.call(this,this.Pd(v));var R,C;v=(z=this.C.getVideoData().getPlayerResponse())==null?void 0:(R=z.captions)==null?void 0:(C=R.playerCaptionsTracklistRenderer)== null?void 0:C.openTranscriptCommand;this.C.Qp("innertubeCommand",v);this.b$.vK();this.N&&this.C.logClick(this.N)}else{if(N==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();z=ahm(this);xi(this,z);g.Ph.prototype.kB.call(this,this.Pd(z));var Z,Y;z=(v=this.C.getVideoData().getPlayerResponse())==null?void 0:(Z=v.captions)==null?void 0:(Y=Z.playerCaptionsTracklistRenderer)==null?void 0:Y.openTranscriptCommand;this.C.Qp("innertubeCommand",z)}else this.C.logClick(this.element), xi(this,N==="__off__"?{}:this.tracks[N]),g.Ph.prototype.kB.call(this,N);this.b$.vK()}}; g.J.FW=function(){var N=this.C.getOptions();N=N&&N.indexOf("captions")!==-1;var z=this.C.getVideoData(),v=z&&z.Bw,R,C=!((R=this.C.getVideoData())==null||!g.ID(R));R={};if(N||v){var Z;if(N){var Y=g.h(this.C.getOption("captions","track"));R=dxx(this.C.getOption("captions","tracklist",{includeAsr:!0}));var Q=C?[]:dxx(this.C.getOption("captions","translationLanguages"));this.tracks=g.H$(R,this.Pd,this);C=g.OL(R,this.Pd);var L,K;ahm(this)&&((Z=z.getPlayerResponse())==null?0:(L=Z.captions)==null?0:(K=L.playerCaptionsTracklistRenderer)== null?0:K.openTranscriptCommand)&&C.push("__correction__");if(Q.length&&!g.wE(Y)){if((Z=Y.translationLanguage)&&Z.languageName){var l=Z.languageName;Z=Q.findIndex(function(W){return W.languageName===l}); pUf(Q,Z)}YO7(this.V,Q);C.push("__translate__")}Z=this.Pd(Y)}else this.tracks={},C=[],Z="__off__";C.unshift("__off__");this.tracks.__off__={};v&&C.unshift("__contribute__");this.tracks[Z]||(this.tracks[Z]=Y,C.push(Z));this.OA(C);this.jI(Z);Y&&Y.translationLanguage?this.V.jI(this.V.V(Y.translationLanguage)):PV2(this.V);N&&this.G.zI(g.h(this.C.getSubtitlesUserSettings()));this.countLabel.Qy(R&&R.length?" ("+R.length+")":"");this.publish("size-change");this.C.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.J.Jw=function(N){var z=g.h(this.C.getOption("captions","track"));z=g.vZ(z);z.translationLanguage=this.V.languages[N];xi(this,z)}; g.J.Xa=function(N,z){if(N==="reset")this.C.resetSubtitlesUserSettings();else{var v={};v[N]=z;this.C.updateSubtitlesUserSettings(v)}iDu(this,!0);this.L.start();this.G.zI(g.h(this.C.getSubtitlesUserSettings()))}; g.J.nHS=function(N){N||g.ws(this.L)}; g.J.AO=function(){g.ws(this.L);g.Ph.prototype.AO.call(this)}; g.J.open=function(){g.Ph.prototype.open.call(this);this.options.__correction__&&!this.N&&(this.N=this.options.__correction__.element,this.C.createClientVe(this.N,this,167341),this.C.logVisibility(this.N,!0))};g.y(QCx,g.mv);g.J=QCx.prototype; g.J.initialize=function(){if(!this.isInitialized){var N=this.C.D();this.isInitialized=!0;try{this.Bt=new tgK(this.C,this)}catch(v){g.PN(Error("QualityMenuItem creation failed"))}g.b(this,this.Bt);var z=new jCK(this.C,this);g.b(this,z);N.Z||(z=new Zb(this.C,this),g.b(this,z));N.enableSpeedOptions&&(z=new wxU(this.C,this),g.b(this,z));(g.Uu(N)||N.G)&&(N.W||N.UT)&&(z=new bQx(this.C,this),g.b(this,z));N.Bc&&!N.X("web_player_move_autonav_toggle")&&(N=new ju(this.C,this),g.b(this,N));N=new Yi(this.C,this); g.b(this,N);this.C.publish("settingsMenuInitialized");DSx(this.settingsButton,this.k$.i6())}}; g.J.dH=function(N){this.initialize();this.k$.dH(N);DSx(this.settingsButton,this.k$.i6())}; g.J.LU=function(N){this.Vh&&this.k$.i6()<=1&&this.hide();this.k$.LU(N);DSx(this.settingsButton,this.k$.i6())}; g.J.uF=function(N){this.initialize();this.k$.i6()>0&&g.mv.prototype.uF.call(this,N)}; g.J.pV=function(){this.Ko?this.Ko=!1:g.mv.prototype.pV.call(this)}; g.J.show=function(){g.mv.prototype.show.call(this);g.Ye(this.C.getRootNode(),"ytp-settings-shown")}; g.J.hide=function(){g.mv.prototype.hide.call(this);g.jW(this.C.getRootNode(),"ytp-settings-shown")}; g.J.iI=function(N){this.C.logVisibility(this.element,N);this.C.publish("settingsMenuVisibilityChanged",N)};g.y(KxI,g.X);g.J=KxI.prototype;g.J.onClick=function(){if(lh_(this)&&(this.C.toggleSubtitles(),this.C.logClick(this.element),!this.isEnabled())){var N=!1,z=g.D_(g.os(),65);g.ci(this.C.D())&&z!=null&&(N=!z);N&&this.C.D().X("web_player_nitrate_promo_tooltip")&&this.C.publish("showpromotooltip",this.element)}}; g.J.edl=function(N){var z,v;(z=g.G8(this.C))==null||(v=z.cW())==null||v.uF(N)}; g.J.isEnabled=function(){return!!this.C.getOption("captions","track").displayName}; g.J.FW=function(){var N=lh_(this),z=300;this.C.D().L&&(z=480);if(this.C.D().G){this.updateValue("title",g.n2(this.C,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var v=N}else{if(N)(v=this.e8("ytp-subtitles-button-icon"))==null||v.setAttribute("fill-opacity","1"),this.updateValue("title",g.n2(this.C,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var R;(R=this.e8("ytp-subtitles-button-icon"))==null||R.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}v=!0}this.tooltip.Ql();v=v&&this.C.n0().getPlayerSize().width>=z;this.iF(v);this.C.X("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,v&&this.B):this.C.logVisibility(this.element,v);N?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.J.Fm=function(N){g.X.prototype.Fm.call(this,N);this.C.D().X("embeds_use_parent_visibility_in_ve_logging")&&this.C.logVisibility(this.element,this.Vh&&N)};g.y(g.eu,g.X);g.J=g.eu.prototype; g.J.G4=function(){var N=this.api.n0().getPlayerSize().width,z=this.J;this.api.D().L&&(z=400);z=N>=z&&(!Jz(this)||!g.u(this.api.getPlayerStateObject(),64));this.iF(z);g.QY(this.element,"ytp-time-display-allow-autohide",z&&N<400);N=this.api.getProgressState();if(z){var v=this.api.getPresentingPlayerType();z=this.api.getCurrentTime(v,!1);this.W&&(z-=N.airingStart);yA(this)&&(z-=this.GE.startTimeMs/1E3);yA(this)||Jz(this)||!this.Z||(z-=this.api.getDuration(v,!1));var R=g.TX(z);this.N!==R&&(this.updateValue("currenttime", R),this.N=R);v=yA(this)?(this.GE.endTimeMs-this.GE.startTimeMs)/1E3:this.api.getDuration(v,!1);R=g.TX(v);this.G!==R&&(this.updateValue("duration",R),this.G=R,z&&(z=g.WA("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.TX(z,!0),DURATION:g.TX(v,!0)}),this.updateValue("timeDisplayAriaLabel",z)))}WxK(this,N.isAtLiveHead);GCm(this,this.api.getLoopRange())}; g.J.onLoopRangeChange=function(N){var z=this.GE!==N;this.GE=N;z&&(this.G4(),xdK(this))}; g.J.dvd=function(){this.api.setLoopRange(null)}; g.J.ToO=function(){this.Z=!this.Z;this.G4()}; g.J.onVideoDataChange=function(N,z,v){this.updateVideoData((this.api.D().X("enable_topsoil_wta_for_halftime")||this.api.D().X("enable_topsoil_wta_for_halftime_live_infra"))&&v===2?this.api.getVideoData(1):z);this.G4();xdK(this)}; g.J.updateVideoData=function(N){this.dB=N.isLivePlayback&&!N.kJ;this.W=N1(N);this.isPremiere=N.isPremiere;g.QY(this.element,"ytp-live",Jz(this))}; g.J.onClick=function(N){N.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.J.AO=function(){this.V&&this.V();g.X.prototype.AO.call(this)};g.y(Jdu,g.X);g.J=Jdu.prototype;g.J.YV=function(){var N=this.api.PP();this.Z!==N&&(this.Z=N,eRU(this,this.api.getVolume(),this.api.isMuted()))}; g.J.k9=function(N){this.iF(N.width>=350)}; g.J.oX=function(N){if(!N.defaultPrevented){var z=N.keyCode,v=null;z===37?v=this.volume-5:z===39?v=this.volume+5:z===36?v=0:z===35&&(v=100);v!==null&&(v=g.UC(v,0,100),v===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(v)),N.preventDefault())}}; g.J.nj=function(N){var z=N.deltaX||-N.deltaY;N.deltaMode?this.api.setVolume(this.volume+(z<0?-10:10)):this.api.setVolume(this.volume+g.UC(z/10,-10,10));N.preventDefault()}; g.J.aCp=function(){f8(this,this.V,!0,this.W,this.api.Ce());this.J=this.volume;this.api.isMuted()&&this.api.unMute()}; g.J.i7=function(N){var z=this.Z?78:52,v=this.Z?18:12;N-=g.OV(this.Y).x;this.api.setVolume(g.UC((N-v/2)/(z-v),0,1)*100)}; g.J.g88=function(){f8(this,this.V,!1,this.W,this.api.Ce());this.volume===0&&(this.api.mute(),this.api.setVolume(this.J))}; g.J.onVolumeChange=function(N){eRU(this,N.volume,N.muted)}; g.J.Zc=function(){f8(this,this.V,this.isDragging,this.W,this.api.Ce())}; g.J.AO=function(){g.X.prototype.AO.call(this);g.jW(this.L,"ytp-volume-slider-active")};g.y(dM,g.X); dM.prototype.onVideoDataChange=function(){var N=this.api.D();this.wW();this.visible=!!g.h(this.api.getVideoData()).videoId&&!g.z8(g.h(this.api.getVideoData(1)));this.iF(this.visible);this.api.logVisibility(this.element,this.visible&&this.B);if(this.visible){var z=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",z)}N.Z&&(this.V&&(this.Kb(this.V),this.V=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Ye(this.element,"no-link")); z=this.api.D();N=g.h(this.api.getVideoData());var v="";z.Z||(z=g.Ou(z),z.indexOf("www.")===0&&(z=z.substring(4)),v=g.vX(N)?"Ver en YouTube Music":z==="youtube.com"?"Ver en YouTube":g.WA("Ver en $WEBSITE",{WEBSITE:z}));this.updateValue("title",v)}; dM.prototype.onClick=function(N){this.api.X("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var z=this.api.D(),v=this.api.getVideoUrl(!g.Ff(N),!1,!0,!0);if(g.Uu(z)){var R={};g.Uu(z)&&g.QI(this.api,"addEmbedsConversionTrackingParams",[R]);v=g.kS(v,R)}g.ip(v,this.api,N);this.api.X("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; dM.prototype.wW=function(){var N={K:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{K:"path",qp:!0,U:"ytp-svg-fill",T:{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 "}}]}, z=28666,v=g.h(this.api.getVideoData());this.api.isEmbedsShortsMode()?N={K:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{K:"path",T:{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.vX(v)&&(N={K:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{K:"path",T:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{K:"path",T:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{K:"path",T:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{K:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",T:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{K:"path",T:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{K:"path",T:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{K:"path",T:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{K:"path",T:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{K:"path",T:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{K:"path",T:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{K:"path",T:{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"}}]},z=216163);g.vX(v)?g.Ye(this.element,"ytp-youtube-music-button"):g.jW(this.element,"ytp-youtube-music-button");N.T=Object.assign({},N.T,{"aria-hidden":"true"});this.updateValue("logoSvg",N);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,z,!0)}; dM.prototype.Fm=function(N){g.X.prototype.Fm.call(this,N);this.api.logVisibility(this.element,this.visible&&N)};g.y(ddu,g.VV);g.J=ddu.prototype;g.J.MH=function(){if(this.C.X("web_player_max_seekable_on_ended")||!g.u(this.C.getPlayerStateObject(),2))this.progressBar.G4(),this.Id.G4()}; g.J.nm=function(){this.On();this.Gd.W?this.MH():this.progressBar.iL()}; g.J.kW=function(){this.MH();this.J.start()}; g.J.On=function(){var N;if(N=!this.C.D().W){N=this.progressBar;var z=2*g.uj()*N.G;N=N.Z.getLength()*1E3/N.api.getPlaybackRate()/z<300}N=N&&this.C.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;z=!N;this.Gd.W||(N=z=!1);z?this.PL||(this.PL=this.S(this.C,"progresssync",this.MH)):this.PL&&(this.Kb(this.PL),this.PL=null);N?this.J.isActive()||this.J.start():this.J.stop()}; g.J.wW=function(){var N=this.C.PP(),z=this.C.n0().getPlayerSize(),v=this.C.n0().zb,R=T6u(this),C=Fxu(this),Z=Math.max(z.width-R*2,100);if(this.A0!==z.width||this.gW!==N||this.C.X("web_player_rtr_ctrls")&&this.hc!==v)this.A0=z.width,this.gW=N,this.hc=v,this.N.element.style.width=C+"px",this.N.element.style.left=R+"px",g.EhY(this.progressBar,R,C,N),this.C.Fv().g9=C;v=this.Z;Z=Math.min(570*(N?1.5:1),Z);N=Math.min(413*(N?1.5:1),Math.round((z.height-nBv(this))*.82));v.maxWidth=Z;v.maxHeight=N;v.Z8();this.On(); this.C.D().X("html5_player_dynamic_bottom_gradient")&&$lf(this.kJ,z.height)}; g.J.onVideoDataChange=function(){var N=g.h(this.C.getVideoData());this.S8.style.background=N.hd?N.vg:"";this.Vp&&krU(this.Vp,N.showSeekingControls);this.qd&&krU(this.qd,N.showSeekingControls)}; g.J.Nu=function(){return this.N.element};g.y(md2,sR);g.J=md2.prototype;g.J.Pk=function(N){N.target!==this.dismissButton.element&&(this.onClickCommand&&this.C.Qp("innertubeCommand",this.onClickCommand),this.Xd())}; g.J.Xd=function(){this.enabled=!1;this.J.hide()}; g.J.onVideoDataChange=function(N,z){N==="dataloaded"&&$dm(this);N=[];var v,R,C,Z;if(z=(Z=g.t((v=z.getWatchNextResponse())==null?void 0:(R=v.playerOverlays)==null?void 0:(C=R.playerOverlayRenderer)==null?void 0:C.suggestedActionsRenderer,c01))==null?void 0:Z.suggestedActions)for(v=g.f(z),R=v.next();!R.done;R=v.next())(R=g.t(R.value,qN$))&&g.t(R.trigger,u_m)&&N.push(R);if(N.length!==0){v=[];N=g.f(N);for(R=N.next();!R.done;R=N.next())if(R=R.value,C=g.t(R.trigger,u_m))Z=(Z=R.title)?g.xt(Z):"View Chapters", z=C.timeRangeStartMillis,C=C.timeRangeEndMillis,z!=null&&C!=null&&R.tapCommand&&(v.push(new g.zt(z,C,{priority:9,namespace:"suggested_action_button_visible",id:Z})),this.suggestedActions[Z]=R.tapCommand);this.C.QT(v)}}; g.J.aI=function(){return this.enabled}; g.J.iI=function(){this.enabled?this.BL.start():fP(this);this.Dt()}; g.J.AO=function(){$dm(this);sR.prototype.AO.call(this)};var nQ={},FR=(nQ.CHANNEL_NAME="ytp-title-channel-name",nQ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",nQ.LINK="ytp-title-link",nQ.SESSIONLINK="yt-uix-sessionlink",nQ.SUBTEXT="ytp-title-subtext",nQ.TEXT="ytp-title-text",nQ.TITLE="ytp-title",nQ);g.y(n8,g.X);n8.prototype.onClick=function(N){this.api.logClick(this.element);var z=this.api.D(),v=this.api.getVideoUrl(!g.Ff(N),!1,!0);g.Uu(z)&&(z={},g.QI(this.api,"addEmbedsConversionTrackingParams",[z]),v=g.kS(v,z));g.ip(v,this.api,N)}; n8.prototype.FW=function(){var N=g.h(this.api.getVideoData()),z=this.api.D();this.updateValue("title",N.title);var v={K:"a",U:FR.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},OT:"{{channelName}}"};this.api.D().Z&&(v={K:"span",U:FR.CHANNEL_NAME,OT:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",v);Udv(this);this.api.getPresentingPlayerType()===2&&(v=g.h(this.api.getVideoData()),v.videoId&&v.isListed&&v.author&&v.gW&&v.profilePicture?(this.updateValue("channelLink", v.gW),this.updateValue("channelName",v.author),this.updateValue("channelTitleFocusable","0")):Udv(this));v=z.externalFullscreen||!this.api.isFullscreen()&&z.uY;g.QY(this.link,FR.FULLERSCREEN_LINK,v);z.Vp||!N.videoId||v||g.z8(N)||z.Z?this.V&&(this.updateValue("url",null),this.Kb(this.V),this.V=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.V||(this.V=this.S(this.link,"click",this.onClick)));z.Z&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Uu(z)?N.expandedTitle: N.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.y(g.$i,g.X);g.J=g.$i.prototype;g.J.setEnabled=function(N){if(this.type!=null)if(N)switch(this.type){case 3:case 2:AdI(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=N}; g.J.LW=function(N,z,v,R,C,Z,Y,Q){if(!this.PL||this.env.L){this.type===3&&this.iL();this.type!==1&&(g.C6(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.JJ())&&this.W.subscribe("l",this.nP,this));if(Q){var L=g.rv(this.bg).height||141;this.K0.style.bottom=L+2+"px"}else this.K0.style.display="none";this.env.X("delhi_modern_web_player")?this.update({pillTimeStamp:v,pillTitle:Z!=null?Z:"",eduText:Q!=null?Q:""}):(this.update({text:v, title:Z!=null?Z:"",eduText:Q!=null?Q:""}),g.QY(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!Z));this.api.isInline()&&g.Ye(this.bottomText,"ytp-modern-tooltip-text");g.QY(this.element,"ytp-text-detail",!!R);v=-1;this.W&&(v=Sr(this.W,243*this.scale),this.env.X("web_l3_storyboard")&&this.W.levels.length===4&&(v=this.W.levels.length-1),v=TxO(this.W,v,z));pCu(this,v);if(Y)switch(z=g.rv(this.element).width,Y){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= z+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=z/2+"px",this.title.style.textAlign="center"}gB_(this,!!R,N,C)}}; g.J.Tn=function(){this.type===1&&this.iL()}; g.J.Bn=function(N,z){if(this.type)if(this.type===3)this.iL();else return;B6K(this,N,3,z)}; g.J.Ql=function(){this.V&&!this.L&&this.V.hasAttribute("title")&&(this.Z=this.V.getAttribute("title")||"",this.V.removeAttribute("title"),this.G&&AdI(this))}; g.J.nP=function(N,z){N<=this.N&&this.N<=z&&(N=this.N,this.N=NaN,pCu(this,N))}; g.J.xX=function(){dI7(this.W,this.N,243*this.scale)}; g.J.iL=function(){switch(this.type){case 2:var N=this.V;N.removeEventListener("mouseout",this.Y);N.addEventListener("mouseover",this.Rd);N.removeEventListener("blur",this.Y);N.addEventListener("focus",this.Rd);kC7(this);break;case 3:kC7(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.nP,this),this.W=null),this.api.removeEventListener("videoready",this.J),this.qd.stop()}this.type=null;this.G&&this.fade.hide()}; g.J.e3=function(){if(this.V)for(var N=0;N=0;z--)if(this.s7[z]===N){this.s7.splice(z,1);break}ge(this.Gd,64,this.s7.length>0)}; g.J.T6=function(){this.api.iG()&&this.api.yF();return!!this.zR||HDK(this)||g.Df.prototype.T6.call(this)}; g.J.yc=zu(3);g.J.xM=zu(7);g.J.ys=zu(10); g.J.OO=function(){var N=!this.T6(),z=N&&this.api.iG()&&!g.u(this.api.getPlayerStateObject(),2)&&!g.z8(g.h(this.api.getVideoData()))&&!this.api.D().Z&&!this.api.isEmbedsShortsMode(),v=this.n7&&g.AW(this.api)&&g.u(this.api.getPlayerStateObject(),128);N||v?(this.Y2.show(),this.DH.show()):(this.Y2.hide(),this.DH.hide(),this.api.e3(this.PK.element));z?this.Vl.uF():this.Vl.pV();this.UD&&sCK(this.UD,this.qg||!N);this.api.X("web_player_hide_overflow_button_if_empty_menu")&&oB_(this);g.Df.prototype.OO.call(this)}; g.J.Tp=function(N,z,v,R,C){N.style.left="";N.style.top="";N.style.bottom="";var Z=g.rv(N),Y=R||this.UD&&g.ZQ(this.UD.Nu(),z),Q=R=null;v!=null&&Y||(R=g.rv(z),Q=g.IB(z,this.api.getRootNode()),v==null&&(v=Q.x+R.width/2));v-=Z.width/2;Y?(z=this.UD,R=T6u(z),Q=Fxu(z),Y=this.api.n0().getPlayerSize().height,v=g.UC(v,R,R+Q-Z.width),Z=Y-nBv(z)-Z.height):g.ZQ(this.PK.element,z)?(z=this.api.n0().getPlayerSize().width,v=g.UC(v,12,z-Z.width-12),Z=this.PP()?this.fv:this.x0,this.api.D().playerStyle==="gvn"&&(Z+= 20),this.n7&&(Z-=this.PP()?26:18)):(z=this.api.n0().getPlayerSize(),v=g.UC(v,12,z.width-Z.width-12),Z=Q.y>(z.height-R.height)/2?Q.y-Z.height-12:Q.y+R.height+12);N.style.top=Z+(C||0)+"px";N.style.left=v+"px"}; g.J.nm=function(N){N&&(this.api.e3(this.PK.element),this.UD&&this.api.e3(this.UD.Nu()));this.T5&&(g.QY(this.contextMenu.element,"ytp-autohide",N),g.QY(this.contextMenu.element,"ytp-autohide-active",!0));g.Df.prototype.nm.call(this,N)}; g.J.rf=function(){g.Df.prototype.rf.call(this);this.T5&&(g.QY(this.contextMenu.element,"ytp-autohide-active",!1),this.T5&&(this.contextMenu.hide(),this.V2&&this.V2.hide()))}; g.J.IB=function(N,z){var v=this.api.n0().getPlayerSize();v=new g.ks(0,0,v.width,v.height);if(N||this.Gd.W&&!this.T6()){if(this.api.D().aM||z)N=this.PP()?this.fv:this.x0,v.top+=N,v.height-=N;this.UD&&(v.height-=nBv(this.UD))}return v}; g.J.YV=function(N){var z=this.api.getRootNode();N?z.parentElement?(z.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.D().externalFullscreen||(z.parentElement.insertBefore(this.Ux.element,z),z.parentElement.insertBefore(this.Lt.element,z.nextSibling))):g.kE(Error("Player not in DOM.")):(z.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.Ux.detach(),this.Lt.detach());this.wW();this.Pm()}; g.J.PP=function(){var N=this.api.D();return this.api.isFullscreen()&&!N.L||!1}; g.J.showControls=function(N){this.ir=!N;this.OO()}; g.J.wW=function(){var N=this.PP();this.tooltip.scale=N?1.5:1;this.contextMenu&&g.QY(this.contextMenu.element,"ytp-big-mode",N);this.OO();this.api.X("web_player_hide_overflow_button_if_empty_menu")||oB_(this);this.Pm();var z=this.api.isEmbedsShortsMode();z&&N?(N=(this.api.n0().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.SB(this.PK.element,"padding-left",N+"px"),g.SB(this.PK.element,"padding-right",N+"px")):z&&(g.SB(this.PK.element,"padding-left",""),g.SB(this.PK.element,"padding-right", ""));g.Df.prototype.wW.call(this)}; g.J.bR=function(){if(HDK(this)&&!g.AW(this.api))return!1;var N=g.h(this.api.getVideoData());return!g.Uu(this.api.D())||this.api.getPresentingPlayerType()===2||!this.HP||((N=this.HP||N.HP)?(N=N.embedPreview)?(N=N.thumbnailPreviewRenderer,N=N.videoDetails&&g.t(N.videoDetails,ivu)||null):N=null:N=null,N&&N.collapsedRenderer&&N.expandedRenderer)?g.Df.prototype.bR.call(this):!1}; g.J.Pm=function(){g.Df.prototype.Pm.call(this);this.api.logVisibility(this.title.element,!!this.wQ);this.bU&&this.bU.Fm(!!this.wQ);this.channelAvatar.Fm(!!this.wQ);this.overflowButton&&this.overflowButton.Fm(this.ED()&&!!this.wQ);this.shareButton&&this.shareButton.Fm(!this.ED()&&!!this.wQ);this.sV&&this.sV.Fm(!this.ED()&&!!this.wQ);this.searchButton&&this.searchButton.Fm(!this.ED()&&!!this.wQ);this.copyLinkButton&&this.copyLinkButton.Fm(!this.ED()&&!!this.wQ);if(!this.wQ){this.api.e3(this.PK.element); for(var N=0;N5&&z.WL("glrs",{cmt:v});z.seekTo(0,{seekSource:58});z.WL("glrre",{cmt:v})}}; gM.prototype.AO=function(){this.V=null;g.H.prototype.AO.call(this)};g.y(g.p8,Ma);g.J=g.p8.prototype;g.J.isView=function(){return!0}; g.J.DE=function(){var N=this.mediaElement.getCurrentTime();if(N1;jx(N.vc(),R-.01)&&!C&&(PB(this,4),v.isActive=!1,v.Wr=v.Wr||v.isActive,(this.B===1?this.V:this.W).WL("sbh",{}),z.isActive=!0,z.Wr=z.Wr||z.isActive,this.B!==0&&(this.V.getVideoData().l2=!0));N=this.N.W;if(this.N.V.isActive&&N.isActive&&(PB(this,5),this.B!==0)){N=this.W.Ju();v=this.V.Ju(); this.V.WL("sbs",{citag:v==null?void 0:v.itag,nitag:N==null?void 0:N.itag});this.W.WL("gitags",{pitag:v==null?void 0:v.itag,citag:N==null?void 0:N.itag});var Z;(Z=this.W)==null||Z.hB()}}}; g.J.ob=function(){this.oY()&&this.nU("player-reload-after-handoff")}; g.J.nU=function(N,z){z=z===void 0?{}:z;if(!this.HL()&&this.status.status!==6){var v=this.status.status>=4&&N!=="player-reload-after-handoff";this.status={status:Infinity,error:N};if(this.V&&this.W){var R=this.W.getVideoData().clientPlaybackNonce;this.V.oP(new mT("dai.transitionfailure",Object.assign(z,{cpn:R,transitionTimeMs:this.E5,msg:N})));this.V.YF(v)}this.kC.reject(N);this.dispose()}}; g.J.oY=function(){return this.status.status>=4&&this.status.status<6}; g.J.AO=function(){N7u(this);this.V.unsubscribe("newelementrequired",this.ob,this);if(this.Z){var N=this.Z.W;this.Z.V.v5.unsubscribe("updateend",this.wh,this);N.v5.unsubscribe("updateend",this.wh,this)}g.H.prototype.AO.call(this)}; g.J.ag=function(N){g.WW(N,128)&&this.nU("player-error-event")};g.y(VA,g.H);VA.prototype.clearQueue=function(N,z){N=N===void 0?!1:N;z=z===void 0?!1:z;this.N&&this.N.reject("Queue cleared");this.app.D().X("html5_gapless_fallback_on_qoe_restart_v2")||z&&this.W&&this.W.YF(!1);Su(this,N)}; VA.prototype.kG=function(){return!this.V}; VA.prototype.oY=function(){var N;return((N=this.Z)==null?void 0:N.oY())||!1}; VA.prototype.AO=function(){Su(this);g.H.prototype.AO.call(this)};g.y(ioY,g.jJ);g.J=ioY.prototype;g.J.getVisibilityState=function(N,z,v,R,C,Z,Y,Q){return N?4:zsu()?3:z?2:v?1:R?5:C?7:Z?8:Y?9:Q?10:0}; g.J.m5=function(N){this.fullscreen!==N&&(this.fullscreen=N,this.iI())}; g.J.setMinimized=function(N){this.W!==N&&(this.W=N,this.iI())}; g.J.setInline=function(N){this.inline!==N&&(this.inline=N,this.iI())}; g.J.iH=function(N){this.pictureInPicture!==N&&(this.pictureInPicture=N,this.iI())}; g.J.setSqueezeback=function(N){this.Z!==N&&(this.Z=N,this.iI())}; g.J.wj=function(N){this.N!==N&&(this.N=N,this.iI())}; g.J.jN=function(){return this.V}; g.J.e5=function(){return this.fullscreen!==0}; g.J.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.J.jx=function(){return this.fullscreen}; g.J.isMinimized=function(){return this.W}; g.J.isInline=function(){return this.inline}; g.J.isBackground=function(){return zsu()}; g.J.Cr=function(){return this.pictureInPicture}; g.J.Cm=function(){return!1}; g.J.MO=function(){return this.Z}; g.J.Ke=function(){return this.N}; g.J.iI=function(){this.publish("visibilitychange");var N=this.getVisibilityState(this.jN(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Cr(),this.Cm(),this.MO(),this.Ke());N!==this.G&&this.publish("visibilitystatechange");this.G=N}; g.J.AO=function(){CBu(this.B);g.jJ.prototype.AO.call(this)};g.y(g.E4,g.H);g.J=g.E4.prototype;g.J.AO=function(){this.videoData=this.playerState=null;g.H.prototype.AO.call(this)}; g.J.addCueRange=function(){}; g.J.Z_=function(){}; g.J.JV=function(){}; g.J.Wh=function(){return!1}; g.J.dZ=function(){return!1}; g.J.I6=function(){return!1}; g.J.HB=function(){}; g.J.FG=function(){}; g.J.f7=function(){return[]}; g.J.LF=function(){}; g.J.getAudioTrack=function(){return this.getVideoData().w$}; g.J.UG=function(){return null}; g.J.getAvailableAudioTracks=function(){return[]}; g.J.XM=function(){return[]}; g.J.hG=function(){return[]}; g.J.y7=function(){return""}; g.J.GI=function(){return[]}; g.J.SZ=function(){}; g.J.F6=function(){return 0}; g.J.getCurrentTime=function(){return 0}; g.J.hE=function(){}; g.J.Ju=function(){}; g.J.TE=function(){return{}}; g.J.getDuration=function(){return 0}; g.J.eM=function(){return 0}; g.J.LG=function(){return 0}; g.J.z5=function(){return!1}; g.J.RB=function(){return 0}; g.J.oR=function(){return 0}; g.J.lf=zu(15);g.J.C8=function(){return 0}; g.J.hs=function(){return!1}; g.J.yg=function(){return 0}; g.J.O6=function(){return null}; g.J.GD=function(){return null}; g.J.Mp=function(){return 0}; g.J.Ex=function(){return 0}; g.J.YA=function(){return g.S(function(N){g.fO(N)})}; g.J.gK=zu(21);g.J.getPlaybackQuality=function(){return"auto"}; g.J.getPlaybackRate=function(){return 1}; g.J.getPlayerState=function(){this.playerState||(this.playerState=new g.Ro);return this.playerState}; g.J.getPlayerType=function(){return 0}; g.J.getPlaylistSequenceForTime=function(){return null}; g.J.WP=function(){return function(){}}; g.J.xw=function(){return""}; g.J.getPreferredQuality=function(){return"unknown"}; g.J.D_=function(){}; g.J.getProximaLatencyPreference=function(){return 0}; g.J.H4=function(){return tK}; g.J.JJ=function(){return null}; g.J.getStoryboardFormat=function(){return null}; g.J.getStreamTimeOffset=function(){return 0}; g.J.P2=function(){return 0}; g.J.fV=function(){return 0}; g.J.JE=function(){return{gS:[],ao:[],currentTime:0,RK:"",droppedVideoFrames:0,isGapless:!1,kG:!0,XE:0,ws:0,EY:0,T1:0,J4:0,ac:[],FI:[],Lx:null,playerState:this.getPlayerState(),jk:null,fd:"",totalVideoFrames:0}}; g.J.getUserAudio51Preference=function(){return 0}; g.J.getUserPlaybackQualityPreference=function(){return""}; g.J.getVideoData=function(){this.videoData||(this.videoData=new g.Os(this.iS),g.b(this,this.videoData));return this.videoData}; g.J.LL=function(){return null}; g.J.vT=function(){return null}; g.J.uv=function(){}; g.J.getVideoLoadedFraction=function(){return 0}; g.J.Tq=function(){}; g.J.handleError=function(){}; g.J.YF=function(){}; g.J.l9=function(){}; g.J.ON=zu(46);g.J.bG=function(){return!1}; g.J.hasSupportedAudio51Tracks=function(){return!1}; g.J.E_=function(){return!1}; g.J.jN=function(){return!1}; g.J.isAtLiveHead=function(){return!1}; g.J.kV=function(){return!0}; g.J.isGapless=function(){return!1}; g.J.isHdr=function(){return!1}; g.J.V1=function(){return!1}; g.J.Ie=function(){return!1}; g.J.tD=function(){return!1}; g.J.isProximaLatencyEligible=function(){return!1}; g.J.kG=function(){return!0}; g.J.Hu=function(){return!1}; g.J.PQ=function(){return!1}; g.J.Z$=function(){}; g.J.Iv=function(){}; g.J.hB=function(){}; g.J.BM=function(){}; g.J.Ok=function(){}; g.J.Nw=function(){}; g.J.Qn=function(){}; g.J.S$=zu(56);g.J.Q2=zu(27);g.J.qV=function(){}; g.J.pauseVideo=function(){}; g.J.playVideo=function(){return g.S(function(N){return N.return()})}; g.J.Bv=function(){}; g.J.Td=zu(33);g.J.lE=zu(39);g.J.wI=function(){}; g.J.WL=function(){}; g.J.Sl=function(){}; g.J.Q1=function(){}; g.J.wO=function(){}; g.J.oP=function(){}; g.J.Yf=function(){}; g.J.DF=function(){}; g.J.vM=function(){}; g.J.O0=function(){}; g.J.jm=function(){}; g.J.hx=function(){}; g.J.IL=function(){}; g.J.removeCueRange=function(){}; g.J.P9=function(){}; g.J.s6=function(){return[]}; g.J.xa=function(){}; g.J.OJ=function(){}; g.J.p_=function(){}; g.J.R2=function(){}; g.J.qY=function(){}; g.J.X$=function(){}; g.J.seekTo=function(){}; g.J.sendAbandonmentPing=function(){}; g.J.sendVideoStatsEngageEvent=function(){}; g.J.n1=function(){}; g.J.setLoop=function(){}; g.J.ZH=function(){}; g.J.setMediaElement=function(){}; g.J.lU=function(){}; g.J.setPlaybackRate=function(){}; g.J.Ij=function(){}; g.J.oI=function(){}; g.J.kA=function(){}; g.J.setProximaLatencyPreference=function(){}; g.J.Y4=function(){}; g.J.DQ=function(){}; g.J.Em=function(){}; g.J.dM=function(){}; g.J.setUserAudio51Preference=function(){}; g.J.cn=function(){}; g.J.nO=function(){return!1}; g.J.e1=function(){}; g.J.j3=function(){return!1}; g.J.jW=function(){}; g.J.oC=function(){}; g.J.aC=function(){}; g.J.stopVideo=function(){}; g.J.subscribe=function(){return NaN}; g.J.wy=function(){}; g.J.togglePictureInPicture=function(){}; g.J.T3=function(){return 0}; g.J.unsubscribe=function(){return!1}; g.J.Ks=function(){}; g.J.XX=function(){return!1}; g.J.TF=function(){}; g.J.z8=function(){}; g.J.ke=function(){}; g.J.AZ=function(){};g.y(of,g.H);g.J=of.prototype;g.J.get=function(N){hz(this);var z=this.data.find(function(v){return v.key===N}); return z?z.value:null}; g.J.set=function(N,z,v){this.remove(N,!0);hz(this);N={key:N,value:z,expire:Infinity};v&&isFinite(v)&&(v*=1E3,N.expire=(0,g.I)()+v);for(this.data.push(N);this.data.length>this.Z;)(v=this.data.shift())&&Db(this,v,!0);HB(this)}; g.J.remove=function(N,z){z=z===void 0?!1:z;var v=this.data.find(function(R){return R.key===N}); v&&(Db(this,v,z),g.dE(this.data,function(R){return R.key===N}),HB(this))}; g.J.removeAll=function(N){if(N=N===void 0?!1:N)for(var z=g.f(this.data),v=z.next();!v.done;v=z.next())Db(this,v.value,N);this.data=[];HB(this)}; g.J.AO=function(){var N=this;g.H.prototype.AO.call(this);this.data.forEach(function(z){Db(N,z,!0)}); this.data=[]};g.y(g.bn,g.H);g.J=g.bn.prototype;g.J.AO=function(){for(var N=g.f(Object.values(this.Z)),z=N.next();!z.done;z=N.next())z.value.dispose();jUI(this);this.V.dispose();g.H.prototype.AO.call(this)}; g.J.Rj=function(N){return N?N===1?this.Y:this.W.getVideoData().enableServerStitchedDai&&N===2?this.W.getVideoData().jq?this.Z[2]||this.W:this.W:g.uT(this.W.getVideoData())&&N===2?this.Z[2]||this.W:this.Z[N]||null:this.W}; g.J.U6=function(N){var z=N.cpn;N=N.playerType;if(z)a:{N=g.f(Object.values(this.Z));for(var v=N.next();!v.done;v=N.next())if(v=v.value,v.y7()===z){z=v;break a}z=this.B[z]||null}else z=N?this.Rj(N):this.W;return z}; g.J.Pb=function(){return this.Y}; g.J.bM=function(N){this.Y=N}; g.J.f0=function(){return this.W}; g.J.f9=function(N){this.W=N;tz(this)}; g.J.Gy=zu(52);g.J.n2=zu(54);g.y(O4,g.H);O4.prototype.enqueue=function(N){if(N.V()!==this)return!1;this.segments.push(N);return!0}; O4.prototype.removeAll=function(){for(;this.segments.length;){var N=void 0;(N=this.segments.pop())==null||N.dispose()}this.V.clear();this.W=void 0}; O4.prototype.AO=function(){this.removeAll();g.H.prototype.AO.call(this)};g.y(eou,g.ou);g.J=eou.prototype;g.J.Dc=function(){}; g.J.y7=function(){return this.videoData.clientPlaybackNonce}; g.J.getVideoData=function(){var N=this.yy;var z=g.ou.prototype.getCurrentTime.call(this);if(N.RU)N=void 0;else{var v=void 0;N.tT&&(v=N.Z.get(N.tT));if(!v){v=Uox(N,z*1E3);var R,C=(R=v)==null?void 0:R.cpn;N.tT?C&&N.tT!==C&&N.oz({cpcnm:C+"_"+N.tT,cmt:z.toFixed(3)}):N.oz({cpcna:C,cmt:z.toFixed(3)})}var Z;N=(Z=v)==null?void 0:Z.videoData}return N||g.ou.prototype.getVideoData.call(this)}; g.J.getCurrentTime=function(N){if(N)N=this.yy.u6/1E3||g.ou.prototype.getCurrentTime.call(this);else{var z=this.yy;N=g.ou.prototype.getCurrentTime.call(this);N=(z=$oO(z,N*1E3))?N-z.start/1E3:N}return N}; g.J.getDuration=function(){var N=this.yy,z=g.ou.prototype.getCurrentTime.call(this);return(N=Uox(N,z*1E3))?N.durationMs/1E3:0};g.If.prototype.Tt=function(N,z){if(z===1)return this.V.get(N);if(z===2)return this.Z.get(N);if(z===3)return this.W.get(N)}; g.If.prototype.RI=zu(64);g.If.prototype.SE=function(N,z,v,R){v={sI:R,T$:v};z?this.Z.set(N,v):this.V.set(N,v)}; g.If.prototype.clearAll=function(){this.V.clear();this.Z.clear();this.W.clear()}; g.y(g.rM,g.H);g.J=g.rM.prototype;g.J.Uf=function(N){var z=N.bf?N.bf*1E3:N.jV,v=this.W.get(N.cpn);v&&this.playback.removeCueRange(v);this.W.delete(N.cpn);this.Z.delete(N.cpn);v=this.B.indexOf(N);v>=0&&this.B.splice(v,1);v=[];for(var R=g.f(this.G),C=R.next();!C.done;C=R.next())C=C.value,C.end<=z?this.playback.removeCueRange(C):v.push(C);this.G=v;SaY(this,0,z+N.durationMs)}; g.J.onCueRangeEnter=function(N){this.BL.push(N);var z=N.getId();this.oz({oncueEnter:1,cpn:z,start:N.start,end:N.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.F6()||0).toFixed(3)});var v=z==="";this.vL.add(N.W);var R=this.Z.get(z);if(v){var C;if(this.playback.getVideoData().Lb()&&((C=this.V)==null?0:C.hv)&&this.N){this.IM=0;this.V=void 0;this.Vp&&(this.events.Kb(this.Vp),this.Vp=null);this.N="";this.UT=!0;return}}else if(this.oz({enterAdCueRange:1}),this.playback.getVideoData().Lb()&& (R==null?0:R.pm))return;if(this.UT&&!this.V)this.UT=!1,!v&&R&&(v=this.playback.getCurrentTime(),NE(this,{GW:N,isAd:!0,Zi:!0,tJ:v,adCpn:z},{isAd:!1,Zi:!1,tJ:v}),this.tT=R.cpn,this.DW(R.cpn),MZ(this,R),N=qZ(this,"midab",R),this.oz(N),this.IM=1),this.Y=!1;else if(this.V){if(this.V.Zi)this.oz({a_pair_of_same_transition_occurs_enter:1,acpn:this.V.adCpn,transitionTime:this.V.tJ,cpn:z,currentTime:this.playback.getCurrentTime()}),R=this.playback.getCurrentTime(),N={GW:N,isAd:!v,Zi:!0,tJ:R,adCpn:z},z={GW:this.V.GW, isAd:this.V.isAd,Zi:!1,tJ:R,adCpn:this.V.adCpn},this.V.GW&&this.vL.delete(this.V.GW.W),NE(this,N,z);else{if(this.V.GW===N){this.oz({same_cue_range_pair_enter:1,acpn:this.V.adCpn,transitionTime:this.V.tJ,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:N.start,cueRangeEndTime:N.end});this.V=void 0;return}if(this.V.adCpn===z){z&&this.oz({dchtsc:z});this.V=void 0;return}N={GW:N,isAd:!v,Zi:!0,tJ:this.playback.getCurrentTime(),adCpn:z};NE(this,N,this.V)}this.V=void 0;this.Y=!1}else this.V= {GW:N,isAd:!v,Zi:!0,tJ:this.playback.getCurrentTime(),adCpn:z}}; g.J.DW=function(N){var z=this.app.dg().B[N]||null;z?(N=this.Z.has(N),aNU(this.app.dg(),z,N)):this.oz({no_sscp_for_cpn:N})}; g.J.onCueRangeExit=function(N){var z=N.getId();this.oz({oncueExit:1,cpn:z,start:N.start,end:N.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.F6()||0).toFixed(3)});var v=z==="",R=this.Z.get(z);if(this.playback.getVideoData().Lb()&&!v&&R){if(R.pm)return;R.pm=!0;this.J.clear();if(this.iS.X("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Wh()){var C=R.jV;this.playback.IL(C/1E3,(C+R.durationMs)/1E3)}else this.playback.WL("lifa",{remove:0})}if(this.vL.has(N.W))if(this.vL.delete(N.W), this.BL=this.BL.filter(function(Z){return Z!==N}),this.UT&&(this.Y=this.UT=!1,this.oz({cref:1})),this.V){if(this.V.Zi){if(this.V.GW===N){this.oz({same_cue_range_pair_exit:1, acpn:this.V.adCpn,transitionTime:this.V.tJ,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:N.start,cueRangeEndTime:N.end});this.V=void 0;return}if(this.V.adCpn===z){z&&this.oz({dchtsc:z});this.V=void 0;return}z={GW:N,isAd:!v,Zi:!1,tJ:this.playback.getCurrentTime(),adCpn:z};NE(this,this.V,z)}else if(this.oz({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.V.adCpn,transitionTime:this.V.tJ,upcomingCpn:z,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.V.adCpn===z)return;this.V=void 0;this.Y=!1}else this.V={GW:N,isAd:!v,Zi:!1,tJ:this.playback.getCurrentTime(),adCpn:z};else this.oz({ignore_single_exit:1})}; g.J.LX=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,jV:0,playerType:1,iO:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.J.Km=function(){if(this.RU)return!1;var N=void 0;this.tT&&(N=this.Z.get(this.tT));return this.playback.getVideoData().Lb()?!!N&&!N.pm:!!N}; g.J.seekTo=function(N,z,v,R){N=N===void 0?0:N;z=z===void 0?{}:z;v=v===void 0?!1:v;R=R===void 0?null:R;if(this.playback.getVideoData().Lb()&&N<=this.u6/1E3)this.playback.pauseVideo(),this.u6=0,this.Y=!0,this.playback.YA(),this.playback.seekTo(N),this.playback.playVideo();else if(this.Y=!0,v)yPf(this,N,z);else{v=this.app.f0();var C=v===this.S8?this.zE:null;vm(this,!1);this.UR=N;this.YJ=z;R!=null&&this.CV.start(R);v&&(this.zE=C||v.getPlayerState(),v.aC(z),this.S8=v)}}; g.J.AO=function(){vm(this,!1);B7u(this);APm(this);g.H.prototype.AO.call(this)}; g.J.Kd=function(N){this.J0=N;this.oz({swebm:N})}; g.J.rG=function(N,z,v){if(v&&z){var R=this.J.get(N);if(R){R.locations||(R.locations=new Map);var C=Number(z.split(";")[0]);v=new g.$w(v);this.oz({hdlredir:1,itag:z,seg:N,hostport:B7(v)});R.locations.set(C,v)}}}; g.J.XY=function(N,z,v,R,C,Z){var Y=R===3,Q=pFb(this,N,z,R,v,Z);if(!Q){CV(this,z,Y);var L=g.gv2(this,z)?"undec":"ncp";this.oz({gvprp:L,mt:N,seg:z,tt:R,itag:v,ce:Z});return null}Y||this.J.set(z,Q);Z=Q.W1;var K;R=((K=this.Tt(z-1,R,C))==null?void 0:K.sI)||"";R===""&&this.oz({eds:1});K=P0O(this,Q.ssdaiAdsConfig);C=this.playback.getVideoData();var l;Y=((l=C.W)==null?void 0:l.containerType)||0;l=C.D8[Y];Q=Q.vS&&z>=Q.vS?Q.vS:void 0;l={Jg:Z?hou(this,Z):[],fH:K,sI:R,Mb:Q,VK:dL(l.split(";")[0]),Wj:l.split(";")[1]|| ""};Q={f4:l};this.kJ&&(N={gvprpro:"v",sq:z,mt:N.toFixed(3),itag:v,acpns:((L=l.Jg)==null?void 0:L.join("_"))||"none",abid:Z},this.oz(N));return Q}; g.J.It=function(N){a:{if(!this.RU){var z=kw2(this,N);if(!(this.playback.getVideoData().Lb()&&(z==null?0:z.pm)))break a}z=void 0}var v=z;if(!v)return this.oz({gvprp:"ncp",mt:N}),null;z=v.W1;var R=P0O(this,v.ssdaiAdsConfig);v=v.vS&&v.Fx&&N>=v.Fx?v.vS:void 0;var C=this.playback.getVideoData(),Z,Y=((Z=C.W)==null?void 0:Z.containerType)||0;Z=C.D8[Y];Z={Jg:z?hou(this,z):[],fH:R,Mb:v,VK:dL(Z.split(";")[0]),Wj:Z.split(";")[1]||""};var Q;N={gvprpro:"v",mt:N.toFixed(3),acpns:((Q=Z.Jg)==null?void 0:Q.join("_"))|| "none",abid:z};this.oz(N);return Z}; g.J.yH=function(N,z,v,R,C,Z){var Y=Number(v.split(";")[0]),Q=R===3;N=pFb(this,N,z,R,v,Z);this.oz({gdu:1,seg:z,itag:Y,pb:""+!!N});if(!N)return CV(this,z,Q),null;N.locations||(N.locations=new Map);if(!N.locations.has(Y)){var L,K;Z=(L=N.videoData.getPlayerResponse())==null?void 0:(K=L.streamingData)==null?void 0:K.adaptiveFormats;if(!Z)return this.oz({gdu:"noadpfmts",seg:z,itag:Y}),CV(this,z,Q),null;L=Z.find(function(G){return G.itag===Y}); if(!L||!L.url){var l=N.videoData.videoId;N=[];var W=g.f(Z);for(R=W.next();!R.done;R=W.next())N.push(R.value.itag);this.oz({gdu:"nofmt",seg:z,vid:l,itag:Y,fullitag:v,itags:N.join(",")});CV(this,z,Q);return null}N.locations.set(Y,new g.$w(L.url,!0))}Z=N.locations.get(Y);if(!Z)return this.oz({gdu:"nourl",seg:z,itag:Y}),CV(this,z,Q),null;Z=new fw(Z);this.J0&&(Z.get("dvc")?this.oz({dvc:Z.get("dvc")||""}):Z.set("dvc","webm"));(R=(W=this.Tt(z-1,R,C))==null?void 0:W.sI)&&Z.set("daistate",R);N.vS&&z>=N.vS&& Z.set("skipsq",""+N.vS);(W=this.playback.getVideoData().clientPlaybackNonce)&&Z.set("cpn",W);W=[];N.W1&&(W=hou(this,N.W1),W.length>0&&Z.set("acpns",W.join(",")));Q||this.J.set(z,N);Q=null;Q=Z.get("aids");R=Z.IP();(R==null?void 0:R.length)>2048&&this.oz({urltoolong:1,sq:z,itag:Y,len:R.length});this.kJ&&(R&&(Z=N.cpn,C=N.W1,Dom(this,Z,C),C&&!this.xH.has(C)&&(Z=Hou(this,Z,C),L=ovO(this,C),this.oz({iofa:Z}),this.oz({noawnzd:L-Z}),this.oz({acpns:W.join("."),aids:(l=Q)==null?void 0:l.replace(/,/g,".")}), this.xH.add(C))),this.oz({gdu:"v",seg:z,itag:v,ast:N.jV.toFixed(3),alen:N.durationMs.toFixed(3),acpn:N.cpn,avid:N.videoData.videoId}));return R}; g.J.qD=function(N,z,v){v=v===void 0?!1:v;var R=RR(this,N,z);if(R){var C=void 0,Z=R.W1;if(Z){this.oz({skipadonsq:z,sts:v,abid:Z,acpn:R.cpn,avid:R.videoData.videoId});v=this.L.get(Z);if(!v)return;v=g.f(v);for(Z=v.next();!Z.done;Z=v.next())Z=Z.value,Z.vS=z,Z.Fx=N,Z.jV>R.jV&&(C=Z)}this.N=R.cpn;VFu(this);N=this.playback.getCurrentTime();wM(this,R,C,N,N,!1,!0)}}; g.J.Qw=function(){for(var N=g.f(this.B),z=N.next();!z.done;z=N.next())z=z.value,z.vS=NaN,z.Fx=NaN;VFu(this);this.oz({rsac:"resetSkipAd",sac:this.N});this.N=""}; g.J.Tt=function(N,z,v){return this.Id.Tt(N,z,v)}; g.J.RI=zu(63); g.J.SE=function(N,z,v,R,C,Z,Y,Q,L){R.length>0&&this.oz({onssinfo:1,sq:N,start:z.toFixed(3),cpns:R.join(","),ds:C.join(","),isVideo:Y?1:0});L&&this.Id.SE(N,Y,Q,L);if(Y){if(R.length&&C.length)for(this.N&&this.N===R[0]&&this.oz({skipfail:1,sq:N,acpn:this.N}),N=z+this.P2(),Y=0;Y0&&(this.IM=0,this.tT="",this.api.publish("serverstitchedvideochange"));this.playback.FG(v,R);return!0}; g.J.DU=function(){this.oz({rstdaist:1});this.Id.clearAll()}; g.J.Fd=function(N){var z;if(N!==((z=this.PL)==null?void 0:z.identifier))this.oz({ignorenoad:N});else{this.A0.add(N);this.oz({noadrcv:N});var v;((v=this.PL)==null?void 0:v.identifier)===N&&cB(this)}}; g.J.L1=function(N){if(this.RU)return this.oz({dai_disabled:N.event}),!1;if(this.playback.getVideoData().Lb()&&(this.iS.X("html5_lifa_no_gab_on_predict_start")&&N.event==="predictStart"||N.event==="continue"||N.event==="stop"))return this.oz({cuepoint_skipped:N.event}),!1;var z=mE(this.api.eV());if(z=z?z.L1(N):!1)this.qd={uB:N.identifier,EM:N.startSecs};else if(this.qd&&this.qd.uB===N.identifier&&N.startSecs>this.qd.EM+1){this.oz({cueStChg:N.identifier,oldSt:this.qd.EM.toFixed(3),newSt:N.startSecs.toFixed(3), abid:this.qd.wV});if(this.qd.wV){var v=N.startSecs-this.qd.EM,R=this.L.get(this.qd.wV);if(R){R=g.f(R);for(var C=R.next();!C.done;C=R.next())C=C.value,C.jV>=0&&(C.jV+=v*1E3,this.iS.X("html5_ssdai_update_timeline_on_start_time_change")&&(C.iO+=v*1E3),this.oz({newApEt:C.jV,newApPrt:C.iO,acpn:C.cpn}))}}this.qd.EM=N.startSecs}return z}; g.J.dP=function(N){return this.RU?!1:!!kw2(this,N)}; g.J.Up=function(N){var z=this;if(this.iS.X("html5_lifa_ignore_multiple_skips")&&this.Vp)return this.oz({unfinished_skip:this.tT}),!1;this.playback.pauseVideo();var v=this.playback.getCurrentTime(),R=this.iS.X("html5_lifa_reset_segment_index_on_skip"),C=R?v+this.playback.P2():v,Z=this.Z.get(this.tT),Y=this.W.get(this.tT);if(Z){this.N=this.tT;this.Y=!1;Z.pm=!0;v=this.playback.getCurrentTime();this.V={GW:Y,isAd:!0,Zi:!1,tJ:v,adCpn:this.tT,hv:Z,zbo:N};this.playback.vM(Z,this.LX(),v,this.playback.getCurrentTime(), !1,!0,N,(0,g.I)());R&&this.playback.qV();if(Y==null?0:Y.start)this.u6=v*1E3-Y.start;this.J.clear();this.playback.YA();N=this.LX();this.tT=N.cpn;this.DW(N.cpn);this.api.publish("serverstitchedvideochange");this.playback.seekTo(C,{seekSource:89,Np:"lifa_skip"});this.playback.playVideo();this.Vp||(this.Vp=this.events.S(this.api,"progresssync",function(){z.Uf(Z)})); return!0}this.oz({skipFail:v},!0);return!1}; g.J.oz=function(N,z){((z===void 0?0:z)||this.kJ||this.playback.getVideoData().Lb())&&this.playback.WL("sdai",N)}; var T7u=0;g.y(boK,g.rM);g.J=boK.prototype;g.J.onCueRangeEnter=function(N){var z=N.getId();this.playback.WL("sdai",{oncueEnter:1,cpn:z,start:N.start,end:N.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.F6()||0).toFixed(3)});N=this.Z.get(z);this.playback.WL("sdai",{enterAdCueRange:1});z=this.tT||this.LX().cpn;var v;z=(v=this.Z.get(z))!=null?v:this.LX();N&&(v={UU:z,BC:N,Mr:this.playback.getCurrentTime()},this.q1(v))}; g.J.onCueRangeExit=function(N){var z=this.playback.getCurrentTime()*1E3;N=N.getId();for(var v=g.f(this.W.values()),R=v.next();!R.done;R=v.next())if(R=R.value,R.getId()!==N&&z>=R.start&&z<=R.end)return;if(z=this.Z.get(N))z={UU:z,BC:this.LX(),Mr:this.playback.getCurrentTime()},this.q1(z)}; g.J.q1=function(N){this.N||this.Y||Yo(this,this.tT);var z=N.UU,v=N.BC;if(v.cpn===this.tT)this.playback.WL("sdai",{igtranssame:1,enter:v.cpn,exit:z.cpn});else{var R=this.Y,C=!!this.N;this.N="";var Z=N.Mr,Y=z.playerType===2?z.jV/1E3+z.videoData.Dx:this.LX().videoData.Dx;this.api.X("html5_ssdai_enable_media_end_cue_range")&&(C||R||z.playerType!==2?(R||C)&&this.oz({mecr:0,seek:R,skip:C}):this.api.T3(z.cpn));if(z.playerType===2&&v.playerType===2)C?this.playback.WL("sdai",{igtransskip:1,enter:v.cpn,exit:z.cpn, seek:R,skip:this.N}):wM(this,z,v,Y,Z,R,C);else{this.tT=v.cpn;this.DW(v.cpn);N=N.kd8;if(z.playerType===1&&v.playerType===2){this.u6=0;MZ(this,v);var Q=qZ(this,"c2a",v);this.playback.WL("sdai",Q);this.IM++}else if(z.playerType===2&&v.playerType===1){Q=z.videoData.Dx;this.api.publish("serverstitchedvideochange");var L=qZ(this,"a2c");this.playback.WL("sdai",L);this.IM=0;this.u6=Q*1E3;this.gx=Y;INu(this,z.W1)}this.playback.vM(z,v,Y,Z,R,C,N)}this.N="";this.Y=!1}}; g.J.seekTo=function(N,z,v,R){N=N===void 0?0:N;z=z===void 0?{}:z;v=v===void 0?!1:v;R=R===void 0?null:R;Yo(this,this.tT);this.playback.getVideoData().Lb()&&N<=this.gx?(this.playback.pauseVideo(),this.gx=this.u6=0,tF7(this,N)):g.rM.prototype.seekTo.call(this,N,z,v,R)}; g.J.qD=function(N,z,v){v=v===void 0?!1:v;var R=RR(this,N,z);if(R){var C=void 0,Z=R.W1;if(Z){this.playback.WL("sdai",{skipadonsq:z,sts:v,abid:Z,acpn:R.cpn,avid:R.videoData.videoId});v=this.L.get(Z);if(!v)return;v=g.f(v);for(Z=v.next();!Z.done;Z=v.next())Z=Z.value,Z.vS=z,Z.Fx=N,Z.jV>R.jV&&(C=Z)}Yo(this,this.tT);this.N=R.cpn;VFu(this);N=this.playback.getCurrentTime();wM(this,R,C,N,N,!1,!0);this.N="";this.Y=!1}}; g.J.SE=function(N,z,v,R,C,Z,Y,Q,L){R.length>0&&this.playback.WL("sdai",{onssinfo:1,sq:N,start:z.toFixed(3),cpns:R.join(","),ds:C.join(","),isVideo:Y?1:0});L&&this.Id.SE(N,Y,Q,L);if(Y){if(R.length&&C.length)for(this.N&&this.N===R[0]&&this.playback.WL("sdai",{skipfail:1,sq:N,acpn:this.N}),N=z+this.P2(),v=0;v=0&&this.B.splice(N,1)};g.y(rPK,g.H);g.J=rPK.prototype;g.J.onCueRangeEnter=function(N){if(this.V===this.app.f0()){var z=this.B.get(N);z?Nhu(this,z.target,z.E5,N):this.oP("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:N.toString()})}else if(z=this.W.find(function(C){return C.Xq.GW===N})){var v=z.Xq,R=v.target; v=v.E5;R?Nhu(this,R,v,N):wFU(this,z.iO,v,N)}}; g.J.onQueuedVideoLoaded=function(){var N=this.L;Qt(this);if(N){if(!aR(this,N)){var z=this.app.f0();this.oP("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:z==null?void 0:z.getVideoData().clientPlaybackNonce,ccpn:""+N.playerVars.cpn})}this.app.f0().addCueRange(N.Xq.GW)}}; g.J.seekTo=function(N,z,v,R){N=N===void 0?0:N;z=z===void 0?{}:z;R=R===void 0?null:R;if(v===void 0?0:v)XFO(this,N,z);else{v=this.app.f0()||null;var C=v===this.N?this.G:null;LV(this,!1);this.qd=N;this.J=z;R!=null&&this.Y.start(R);v&&(this.G=C||v.getPlayerState(),v.aC(),this.N=v)}}; g.J.wD=function(N){g.WW(N,128)&&ZpO(this)}; g.J.isManifestless=function(){return Ke(this.V.getVideoData())}; g.J.AO=function(){LV(this,!1);ip_(this);g.H.prototype.AO.call(this)}; g.J.oP=function(N,z){this.V.oP(new mT(N,z))}; var uwY=0;var jrm="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(KV,g.H);KV.prototype.W4=function(N){if(N)return this.W.get(N)}; KV.prototype.AO=function(){this.V.removeAll();this.W.removeAll();g.H.prototype.AO.call(this)};g.oSr=GP(function(){var N=window.AudioContext||window.webkitAudioContext;try{return new N}catch(z){return z.name}});g.y(lc_,g.X);g.J=lc_.prototype;g.J.e0=function(){g.iP(this.element,g.SI.apply(0,arguments))}; g.J.OJ=function(){this.ou&&(this.ou.removeEventListener("focus",this.In),g.Ct(this.ou),this.ou=null)}; g.J.Nr=function(){this.HL();var N=this.app.D();N.Wp||this.e0("tag-pool-enabled");N.G&&this.e0(g.cM.HOUSE_BRAND);N.playerStyle==="gvn"&&(this.e0("ytp-gvn"),this.element.style.backgroundColor="transparent");N.UR&&(this.T7=g.C1("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)}; g.J.eC=function(N){g.k1(this.app.D());this.Y_=!N;lO(this)}; g.J.resize=function(){if(this.ou){var N=this.nu();if(!N.isEmpty()){var z=!g.Pr(N,this.ZQ.getSize()),v=Jwx(this);z&&(this.ZQ.width=N.width,this.ZQ.height=N.height);N=this.app.D();(v||z||this.w_||N.UR)&&this.app.L0.publish("resize",this.getPlayerSize())}}}; g.J.HW=function(N,z){this.updateVideoData(z)}; g.J.updateVideoData=function(N){if(this.ou){var z=this.app.D();IX&&(this.ou.setAttribute("x-webkit-airplay","allow"),N.title?this.ou.setAttribute("title",N.title):this.ou.removeAttribute("title"));this.ou.setAttribute("controlslist","nodownload");z.cm&&N.videoId&&(this.ou.poster=N.Ou("default.jpg"))}z=g.sY(N,"yt:bgcolor");this.KF.style.backgroundColor=z?z:"";this.TB=Ya(g.sY(N,"yt:stretch"));this.JA=Ya(g.sY(N,"yt:crop"),!0);g.QY(this.element,"ytp-dni",N.hd);this.resize()}; g.J.setGlobalCrop=function(N){this.FU=Ya(N,!0);this.resize()}; g.J.setCenterCrop=function(N){this.rS=N;this.resize()}; g.J.m5=function(){}; g.J.getPlayerSize=function(){var N=this.app.D(),z=this.app.L0.isFullscreen(),v=N.externalFullscreen&&g.Uu(N);if(z&&bQ()&&!v)return new g.kQ(window.outerWidth,window.outerHeight);v=!isNaN(this.XC.width)&&!isNaN(this.XC.height);var R=this.app.D().X("kevlar_player_enable_squeezeback_fullscreen_sizing");if(z&&!v&&R)return new g.kQ(this.element.clientWidth,this.element.clientHeight);if(z||N.Ka){if(window.matchMedia){N="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.EW&&this.EW.media=== N||(this.EW=window.matchMedia(N));var C=this.EW&&this.EW.matches}if(C)return new g.kQ(window.innerWidth,window.innerHeight)}else if(v)return this.XC.clone();return new g.kQ(this.element.clientWidth,this.element.clientHeight)}; g.J.nu=function(){var N=this.app.D().X("enable_desktop_player_underlay"),z=this.getPlayerSize(),v=g.LM(this.app.D().experiments,"player_underlay_min_player_width");return N&&this.CB&&z.width>v?(N=g.LM(this.app.D().experiments,"player_underlay_video_width_fraction"),new g.kQ(Math.min(z.height*this.getVideoAspectRatio(),z.width*N),Math.min(z.height,z.width*N/this.getVideoAspectRatio()))):z}; g.J.getVideoAspectRatio=function(){return isNaN(this.TB)?Gmf(this):this.TB}; g.J.getVideoContentRect=function(N){var z=this.nu();N=xC7(this,z,this.getVideoAspectRatio(),N);return new g.ks((z.width-N.width)/2,(z.height-N.height)/2,N.width,N.height)}; g.J.EN=function(N){this.CB=N;this.resize()}; g.J.IQ=function(){return this.M1}; g.J.onMutedAutoplayChange=function(){lO(this)}; g.J.setInternalSize=function(N){g.Pr(this.XC,N)||(this.XC=N,this.resize())}; g.J.AO=function(){this.T7&&g.ZK(this.T7);this.OJ();g.X.prototype.AO.call(this)};g.J=fcO.prototype;g.J.click=function(N,z){this.elements.has(N);this.V.has(N);var v=g.nz();v&&N.visualElement&&g.Z9(v,N.visualElement,z)}; g.J.createClientVe=function(N,z,v,R){var C=this;R=R===void 0?!1:R;this.elements.has(N);this.elements.add(N);v=G6m(v);N.visualElement=v;var Z=g.nz(),Y=g.F8();Z&&Y&&(g.yj("combine_ve_grafts")?k0(gq(),v,Y):g.qV(g.X8)(void 0,Z,Y,v));z.addOnDisposeCallback(function(){C.elements.has(N)&&C.destroyVe(N)}); R&&this.W.add(N)}; g.J.createServerVe=function(N,z,v){var R=this;v=v===void 0?!1:v;this.elements.has(N);this.elements.add(N);z.addOnDisposeCallback(function(){R.destroyVe(N)}); v&&this.W.add(N)}; g.J.destroyVe=function(N){this.elements.has(N);this.elements.delete(N);this.Z.delete(N);this.V.delete(N);this.W.delete(N)}; g.J.X8=function(N,z){this.clientPlaybackNonce!==z&&(this.clientPlaybackNonce=z,pb(gq(),N),dCv(this))}; g.J.setTrackingParams=function(N,z){this.elements.has(N);z&&(N.visualElement=g.sn(z))}; g.J.iF=function(N,z,v){this.elements.has(N);z?this.V.add(N):this.V.delete(N);var R=g.nz(),C=N.visualElement;this.W.has(N)?R&&C&&(z?g.R$(R,[C]):g.CK(R,[C])):z&&!this.Z.has(N)&&(R&&C&&g.vS(R,C,void 0,v),this.Z.add(N))}; g.J.hasVe=function(N){return this.elements.has(N)};g.y(g.xo,g.H);g.xo.create=function(N,z,v,R){try{var C=typeof N==="string"?N:"player"+g.Cm(N),Z=my[C];if(Z){try{Z.dispose()}catch(Q){g.kE(Q)}my[C]=null}var Y=new g.xo(N,z,v,R);Y.addOnDisposeCallback(function(){my[C]=null;Y.Y5&&Y.Y5()}); return my[C]=Y}catch(Q){throw g.kE(Q),(Q&&Q instanceof Error?Q:Error(String(Q))).stack;}}; g.J=g.xo.prototype;g.J.p8=function(){return this.visibility}; g.J.bM=function(N){var z=this.Pb();if(N!==z){N.getVideoData().autonavState=z.getVideoData().autonavState;z.Ks(this.Nx,this);var v=z.getPlaybackRate();z.dispose();this.Ru.bM(N);N.setPlaybackRate(v);N.wy(this.Nx,this);UCO(this)}}; g.J.dD=function(){this.Oe||(this.Oe=g.ZX(hW(),fLY()));return this.Oe}; g.J.OJ=function(N){if(this.mediaElement){this.RC&&(this.events.Kb(this.RC),this.RC=null);g.Be(this.GC);this.f0().OJ(!0,!1,N);this.template.OJ();try{this.X("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.E2()}catch(z){g.PN(z)}this.mediaElement=null}}; g.J.f9=function(N,z,v){v=v===void 0?!1:v;if(N!==this.f0()){this.logger.debug(function(){return"start set presenting player, type "+N.getPlayerType()+", vid "+N.getVideoData().videoId}); var R=null;v||(v=this.f0(),R=v.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),nL(this.TW,3),oR(this,"cuerangesremoved",v.GI()),this.QE&&!N.isGapless()&&v.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),v=N.nO()&&v.nO(),this.dW.bH("iv_s"),hLU(this,v));N.getPlayerType()===1&&this.bM(N);Ef2(this,N);this.Ru.f9(N);this.mediaElement&&N.setMediaElement(this.mediaElement);N.wy(this.EC,this);N.PQ()?K82(this,"setPresenting",!1):(this.HW("newdata",N,N.getVideoData()), R&&!g.ao(R,N.getPlayerState())&&this.z2(new g.KZ(N.getPlayerState(),R)),z=z&&this.X("html5_player_preload_ad_fix")&&N.getPlayerType()===1,N.Ie()&&!z&&this.HW("dataloaded",N,N.getVideoData()),(z=(z=N.getVideoData().W)&&z.video)&&this.L0.cH("onPlaybackQualityChange",z.quality),oR(this,"cuerangesadded",N.GI()),z=N.getPlayerState(),g.u(z,2)?Sy_(this):g.u(z,8)?N.playVideo():N.V1()&&N.pauseVideo(),z=this.Pb(),N.getPlayerType()===2&&(N.getVideoData().UM=z.getVideoData().clientPlaybackNonce),N.getPlayerType()!== 2||this.vH()||(R=N.getVideoData(),z.Bv(R.clientPlaybackNonce,R.s9||"",R.breakType||0,R.Lr,R.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.J.t1=function(){if(this.Pb()!==this.f0()){var N=this.f0();this.logger.debug(function(){return"release presenting player, type "+N.getPlayerType()+", vid "+N.getVideoData().videoId}); this.f9(this.Pb())}}; g.J.dg=function(){return this.Ru}; g.J.U6=function(N){return this.Ru.U6(N)}; g.J.Rj=function(N){return this.Ru.Rj(N)}; g.J.Pb=function(){return this.Ru.Pb()}; g.J.f0=function(){return this.Ru.f0()}; g.J.Ap=zu(50);g.J.LlT=function(){Ti(this)||(this.logger.debug("application playback ready"),this.Qv(5))}; g.J.k4T=function(){if(!Ti(this)){this.logger.debug("playback ready");jMK(this);var N=this.f0(),z=N.getPlayerState();N.V1()?this.pauseVideo():z.isOrWillBePlaying()&&this.playVideo()}}; g.J.canPlayType=function(N){return Ax(N)}; g.J.D=function(){return this.iS}; g.J.getVideoData=function(){return this.f0().getVideoData()}; g.J.qA=zu(19);g.J.qv=function(){return this.Pb().getVideoData()}; g.J.getVideoLoadedFraction=function(N){return(N=this.U6({playerType:N}))?N.getVideoLoadedFraction():this.Ru.V.getVideoLoadedFraction()}; g.J.n0=function(){return this.template}; g.J.eV=function(){return this.TW}; g.J.M2=function(){return this.dW}; g.J.f_=function(N){var z=this.U6({playerType:1});z&&z.n1(N)}; g.J.j_=function(){var N=this.TW.j_();this.L0.publish("videoStatsPingCreated",N);return N}; g.J.getVolume=function(){return Math.round(this.L0.getVolume())}; g.J.isMuted=function(){return this.L0.isMuted()}; g.J.us=function(){if(this.Pb()===this.f0()&&this.GE)return this.GE.postId}; g.J.q9p=function(){var N=this;this.X("use_rta_for_player")||(g.nM(this.iS)?g.CW(this.iS,g.hf(this.getVideoData())).then(function(z){HX(hW(),z);Hvu(N.getVideoData(),N.iS,N.dD())}):Hvu(this.getVideoData(),this.iS,this.dD()))}; g.J.eD=function(N){this.L0.publish("poTokenVideoBindingChange",N)}; g.J.E4=function(N){this.L0.publish("d6de4videobindingchange",N)}; g.J.WI=function(){this.m8&&this.m8.WI()}; g.J.bT=function(N){this.m8=N}; g.J.DP=function(N){if(N===1){this.dW.tick("vr");var z=this.f0();z.JV();BMU(this.dW,z.getVideoData(),ia_(this));lau(this.TW)}z=this.iS;if(zf(z)&&z.Y||g.V1(z)){var v;(((v=this.f0().getVideoData())==null?0:v.enableServerStitchedDai)||!this.vH())&&this.L0.cH("onAdStateChange",N)}}; g.J.setLoopVideo=function(N){var z=this.f0();z===this.Pb()&&z.hs()!==N&&(z.setLoop(N),this.L0.Qp("onLoopChange",N))}; g.J.getLoopVideo=function(){return this.f0().hs()}; g.J.setLoopRange=function(N){var z=!1;!!this.GE!==!!N?z=!0:this.GE&&N&&(z=this.GE.startTimeMs!==N.startTimeMs||this.GE.endTimeMs!==N.endTimeMs||this.GE.postId!==N.postId||this.GE.type!==N.type);if(z){z=this.f0();Ce(z.getVideoData())&&z.WL("slr",{et:(N==null?void 0:N.endTimeMs)||-1});z=this.Pb();z.s6("applooprange");if(N){var v=new g.zt(N.startTimeMs,N.endTimeMs,{id:"looprange",namespace:"applooprange"});z.addCueRange(v)}else{this.qv().clipConfig=void 0;var R;((v=this.GE)==null?void 0:v.type)!=="repeatChapter"|| isNaN(Number((R=this.GE)==null?void 0:R.loopCount))||(v={loopCount:String(this.GE.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.aX("repeatChapterLoopEvent",v))}this.GE=N;this.L0.Qp("onLoopRangeChange",N||void 0);this.Pb()===this.f0()&&(this.A$(),z.HB())}}; g.J.getLoopRange=function(){return this.GE}; g.J.A$=function(){var N="",z=this.Pb();this.GE?z!==this.f0()?N="pnea":XgK(this,z.getCurrentTime())&&(this.GE.loopCount=0,N="ilr"):N="nlr";var v=this.f0();if(Ce(v.getVideoData()))if(this.X("html5_gapless_log_loop_range_info")){var R,C;v.WL("slrre",{rej:N,ct:z.getCurrentTime(),lst:(R=this.GE)==null?void 0:R.startTimeMs,let:(C=this.GE)==null?void 0:C.endTimeMs})}else v.WL("slrre",{});N||uxv(this)}; g.J.setPlaybackRate=function(N,z){if(!isNaN(N)){N=pgv(this,N);var v=this.Pb();v.getPlaybackRate()!==N&&(v.setPlaybackRate(N),z&&!this.iS.N&&g.ka("yt-player-playback-rate",N),this.L0.cH("onPlaybackRateChange",N))}}; g.J.getCurrentTime=function(N,z){z=z===void 0?!0:z;var v=this.Ru.cK;if(v)return v.getCurrentTime();var R=N===2&&this.getVideoData().enableServerStitchedDai;v=null;R?v=this.f0():v=this.U6({playerType:N});return v?R&&this.jL?(N=this.Ru.G)?N.getCurrentTime(z):v.getCurrentTime():z?(z=sB(this,v),ko(this,z.getCurrentTime(),z)):v.getCurrentTime():this.Ru.V.getCurrentTime()}; g.J.oR=function(){var N=this.U6({playerType:void 0});if(!N)return this.Ru.V.oR();N=sB(this,N);return ko(this,N.oR(),N)}; g.J.getDuration=function(N,z){z=z===void 0?!0:z;var v=this.getVideoData(),R=N===2&&v.enableServerStitchedDai,C=null;R?C=this.f0():C=this.U6({playerType:N});if(!C)return this.Ru.V.getDuration();if(v.hasProgressBarBoundaries()&&!R){var Z,Y=Number((Z=v.progressBarStartPosition)==null?void 0:Z.utcTimeMillis),Q;Z=Number((Q=v.progressBarEndPosition)==null?void 0:Q.utcTimeMillis);if(!isNaN(Y)&&!isNaN(Z))return(Z-Y)/1E3}if(this.X("html5_gapless_duration_use_max_seekable_time")&&Ce(v)&&!v.isLivePlayback)return g9(this, N);if(z)return N=d9(this,C),ko(this,N.getDuration(),N);if(R&&this.jL){var L;return((L=this.Ru.G)==null?void 0:L.getDuration())||0}return C.getDuration()}; g.J.LG=function(N){var z=this.U6({playerType:N});return z?this.vH(z)?(z=d9(this,z),z.LG()-z.getCurrentTime()+this.getCurrentTime(N)):z.LG():this.Ru.V.LG()}; g.J.Gn=function(){return this.eY}; g.J.addPlayerResponseForAssociation=function(){}; g.J.finishSegmentByCpn=function(){return[]}; g.J.Nr=function(){this.template.Nr();var N=this.L0;N.state.element=this.template.element;var z=N.state.element,v;for(v in N.state.V)N.state.V.hasOwnProperty(v)&&(z[v]=N.state.V[v]);(N=pn7(this.template.element))&&this.events.S(this.template,N,this.onFullscreenChange)}; g.J.getDebugText=function(N){var z=this.Pb().TE(N),v=this.f0();if(v!==this.Pb()){v=v.TE(N);for(var R=g.f(Object.keys(v)),C=R.next();!C.done;C=R.next())C=C.value,z["ad"+C]=v[C];if(N){v=z;R={};if(C=bU(document,"movie_player"))R.bounds=C.getBoundingClientRect(),R["class"]=C.className;C={};var Z=g.XD("video-ads");Z?(GDu(Z,C),C.html=Z.outerHTML):C.missing=1;Z={};var Y=g.XD("videoAdUiSkipContainer"),Q=g.XD("ytp-ad-skip-button-container"),L=g.XD("ytp-skip-ad-button"),K=Y||Q||L;K?(GDu(K,Z),Z.ima=Y?1:0,Z.bulleit= Q?1:0,Z.component=L?1:0):Z.missing=1;R=JSON.stringify({player:R,videoAds:C,skipButton:Z});v.ad_skipBtnDbgInfo=R}}N&&this.mediaElement&&(z["0sz"]=""+(+Vp(this.mediaElement.getSize())===0),z.op=this.mediaElement.kp("opacity"),v=this.mediaElement.YZ().y+this.mediaElement.getSize().height,z.yof=""+(+v<=0),z.dis=this.mediaElement.kp("display"));N&&((N=(0,g.x9)())&&(z.gpu=N),(N=this.iS.playerStyle)&&(z.ps=N),this.iS.UT&&(z.webview=1));z.debug_playbackQuality=this.L0.getPlaybackQuality(1);z.debug_date=(new Date).toString(); z.origin=window.origin;z.timestamp=Date.now();delete z.uga;delete z.q;return JSON.stringify(z,null,2)}; g.J.getFeedbackProductData=function(){var N={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.D().experiments.experimentIds.join(", "),player_release:a[50]},z;if(z=this.getPlayerStateObject().BP)N.player_error_code=z.errorCode,N.player_error_details=JSON.stringify(z.errorDetail);return N}; g.J.getPresentingPlayerType=function(N){if(this.appState===1)return 1;if(Ti(this))return 3;var z;return N&&((z=this.jL)==null?0:z.Km(this.getCurrentTime()))?2:this.f0().getPlayerType()}; g.J.iD=function(){return!1}; g.J.getPlayerStateObject=function(N){var z=this.Ru.cK;return z?z.getPlayerState():this.U6({playerType:N}).getPlayerState()}; g.J.getAppState=function(){return this.appState}; g.J.bbL=function(N){switch(N.type){case "loadedmetadata":this.a5.start();N=g.f(this.L_);for(var z=N.next();!z.done;z=N.next())z=z.value,Za_(this,z.id,z.klU,z.oBo,void 0,!1);this.L_=[];break;case "loadstart":this.dW.bH("gv");break;case "progress":case "timeupdate":Q4(N.target.xA())>=2&&this.dW.bH("l2s");break;case "playing":g.wd&&this.a5.start();if(g.nM(this.iS))N=!1;else{z=g.p2(this.eV());N=this.mediaElement.kp("display")==="none"||Vp(this.mediaElement.getSize())===0;var v=Wm(this.template),R=this.f0().getVideoData(), C=g.S0(this.iS);R=Zk(R);z=!v||z||C||R||this.iS.xT;N=N&&!z}N&&(N=this.f0(),N.Z$(),this.getVideoData().YJ||(this.getVideoData().YJ=1,this.Aq(),N.playVideo()))}}; g.J.J0d=function(N){this.L0.wH("onLoadProgress",N)}; g.J.PFW=function(){this.L0.publish("playbackstalledatstart")}; g.J.VKo=function(N,z){this.L0.publish("sabrCaptionsDataLoaded",N,z)}; g.J.mpp=function(N){this.f0().DQ(N)}; g.J.jul=function(N){this.f0().Y4(N)}; g.J.ZbW=function(N){N=sB(this,this.f0());N=ko(this,N.getCurrentTime(),N);this.L0.cH("onVideoProgress",N);this.iS.V6&&zm_(this,this.visibility.Cr())&&this.pauseVideo()}; g.J.jzL=function(){this.L0.cH("onAutoplayBlocked");var N=this.f0().getVideoData();N&&(N.yq=!0);this.X("embeds_enable_autoplay_and_visibility_signals")&&g.Uu(this.iS)&&(N={autoplayBrowserPolicy:q$(),autoplayIntended:M$(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.aX("embedsAutoplayStatusChanged",N))}; g.J.aV1=function(){this.L0.publish("progresssync")}; g.J.oHL=function(){this.L0.wH("onPlaybackPauseAtStart")}; g.J.FlS=function(N){if(this.getPresentingPlayerType()===1){g.WW(N,1)&&!g.u(N.state,64)&&this.qv().isLivePlayback&&this.Pb().isAtLiveHead()&&this.L0.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.WW(N,2)){if(this.GE&&this.GE.endTimeMs>=(this.getDuration()-1)*1E3){uxv(this);return}Sy_(this)}if(g.u(N.state,128)){var z=N.state;this.cancelPlayback(5);z=z.BP;JSON.stringify({errorData:z,debugInfo:this.getDebugText(!0)});this.L0.cH("onError",MCu(z.errorCode));this.L0.wH("onDetailedError",{errorCode:z.errorCode, errorDetail:z.errorDetail,message:z.errorMessage,messageKey:z.XJ,cpn:z.cpn});(0,g.I)()-this.iS.MF>6048E5&&this.L0.wH("onReloadRequired")}z={};if(N.state.isPlaying()&&!N.state.isBuffering()&&!bv("pbresume","ad_to_video")&&bv("_start","ad_to_video")){var v=this.getVideoData();z.clientPlaybackNonce=v.clientPlaybackNonce;v.videoId&&(z.videoId=v.videoId);g.oc(z,"ad_to_video");H_("pbresume",void 0,"ad_to_video");lau(this.TW)}this.L0.publish("applicationplayerstatechange",N)}}; g.J.z2=function(N){this.Ru.cK||this.L0.publish("presentingplayerstatechange",N)}; g.J.wD=function(N){fV(this,Lg(N.state));g.u(N.state,1024)&&this.L0.isMutedByMutedAutoplay()&&(Bm(this,{muted:!1,volume:this.BK.volume},!1),AH(this,!1))}; g.J.uWo=function(N,z){N==="newdata"&&UCO(this);this.L0.publish("applicationvideodatachange",N,z)}; g.J.DuW=function(N,z){this.L0.wH("onPlaybackAudioChange",this.L0.getAudioTrack().u$.name);this.L0.publish("internalaudioformatchange",this.L0.getAudioTrack().u$.id,z)}; g.J.eC8=function(N){var z=this.f0().getVideoData();N===z&&this.L0.cH("onPlaybackQualityChange",N.W.video.quality)}; g.J.Cg=function(){var N=this.Ru.Z[2]||null;N&&(N=N.getVideoData(),this.f0().WL("ssdai",{cleanaply:1,acpn:N==null?void 0:N.clientPlaybackNonce,avid:N.videoId,isDai:this.qv().enableServerStitchedDai?1:0}),delete this.Ru.Z[2])}; g.J.rIp=function(N,z){this.HW(N,this.f0(),z)}; g.J.HW=function(N,z,v){this.logger.debug(function(){return"on video data change "+N+", player type "+z.getPlayerType()+", vid "+v.videoId}); this.iS.LV()&&z.WL("vdc",{type:N,vid:v.videoId||"",cpn:v.clientPlaybackNonce||""});z===this.Pb()&&(this.iS.o4=v.oauthToken);z===this.Pb()&&(this.getVideoData().enableServerStitchedDai&&!this.jL?(this.Pb().WL("sdai",{initSstm:1}),this.jL=this.X("html5_enable_ssdai_transition_with_only_enter_cuerange")?new boK(this.L0,this.iS,this.Pb(),this):new g.rM(this.L0,this.iS,this.Pb(),this)):!this.getVideoData().enableServerStitchedDai&&this.jL&&(this.jL.dispose(),this.jL=null,jUI(this.Ru)));if(N==="newdata")this.logger.debug("new video data, destroy modules"), nL(this.TW,2),this.L0.publish("videoplayerreset",z);else{if(!this.mediaElement)return;N==="dataloaded"&&(this.Pb()===this.f0()?(oW(v.bS,v.X9),bpY(this)):ofu(this));z.getPlayerType()===1&&(this.iS.Id&&W8_(this),this.getVideoData().isLivePlayback&&!this.iS.K7&&this.nU("html5.unsupportedlive",2,"DEVICE_FALLBACK"),v.isLoaded()&&((ZvK(v)||this.getVideoData().G8)&&this.L0.publish("legacyadtrackingpingchange",this.getVideoData()),v.hasProgressBarBoundaries()&&qyf(this)));this.L0.publish("videodatachange", N,v,z.getPlayerType())}this.L0.cH("onVideoDataChange",{type:N,playertype:z.getPlayerType()});this.A$();var R=v.zy;R?this.JZ.X8(R,v.clientPlaybackNonce):dCv(this.JZ)}; g.J.D0=function(){nV(this,null);this.L0.wH("onPlaylistUpdate")}; g.J.tK1=function(N){delete this.uy[N.getId()];this.Pb().removeCueRange(N);a:{N=this.getVideoData();var z,v,R,C,Z,Y,Q,L,K,l,W=((z=N.Id)==null?void 0:(v=z.contents)==null?void 0:(R=v.singleColumnWatchNextResults)==null?void 0:(C=R.autoplay)==null?void 0:(Z=C.autoplay)==null?void 0:Z.sets)||((Y=N.Id)==null?void 0:(Q=Y.contents)==null?void 0:(L=Q.twoColumnWatchNextResults)==null?void 0:(K=L.autoplay)==null?void 0:(l=K.autoplay)==null?void 0:l.sets);if(W)for(z=g.f(W),v=z.next();!v.done;v=z.next())if(v= v.value,C=R=void 0,v=v.autoplayVideo||((R=v.autoplayVideoRenderer)==null?void 0:(C=R.autoplayEndpointRenderer)==null?void 0:C.endpoint),R=g.t(v,g.wi),Z=C=void 0,v!=null&&((C=R)==null?void 0:C.videoId)===N.videoId&&((Z=R)==null?0:Z.continuePlayback)){N=v;break a}N=null}(z=g.t(N,g.wi))&&this.L0.Qp("onPlayVideo",{sessionData:{autonav:"1",itct:N==null?void 0:N.clickTrackingParams},videoId:z.videoId,watchEndpoint:z})}; g.J.Qv=function(N){var z=this;N!==this.appState&&(this.logger.debug(function(){return"app state change "+z.appState+" -> "+N}),N===2&&this.getPresentingPlayerType()===1&&(fV(this,-1),fV(this,5)),this.appState=N,this.L0.publish("appstatechange",N))}; g.J.nU=function(N,z,v,R,C){this.Pb().Ij(N,z,v,R,C)}; g.J.YM=function(N,z){this.Pb().handleError(new mT(N,z))}; g.J.isAtLiveHead=function(N,z){z=z===void 0?!1:z;var v=this.U6({playerType:N});if(!v)return this.Ru.V.isAtLiveHead();N=d9(this,v);v=sB(this,v);return N!==v?N.isAtLiveHead(ko(this,v.getCurrentTime(),v),!0):N.isAtLiveHead(void 0,z)}; g.J.RB=function(){var N=this.U6({playerType:void 0});return N?d9(this,N).RB():this.Ru.V.RB()}; g.J.seekTo=function(N,z,v,R,C){z=z!==!1;if(R=this.U6({playerType:R}))this.appState===2&&$o(this),this.vH(R)?Pm(this)?this.jL.seekTo(N,{seekSource:C},z,v):this.yy.seekTo(N,{seekSource:C},z,v):R.seekTo(N,{zO:!z,J7:v,Np:"application",seekSource:C})}; g.J.seekBy=function(N,z,v,R){this.seekTo(this.getCurrentTime()+N,z,v,R)}; g.J.W48=function(){this.L0.cH("SEEK_COMPLETE")}; g.J.xud=function(){this.L0.Qp("onAbnormalityDetected")}; g.J.zCT=function(N){this.L0.Qp("onSnackbarMessage",N)}; g.J.Obp=function(N){var z=this.f0(),v=z.getVideoData();if(this.appState===1||this.appState===2)v.startSeconds=N;this.appState===2?g.u(z.getPlayerState(),512)||$o(this):this.L0.cH("SEEK_TO",N)}; g.J.fxW=function(){this.L0.publish("airplayactivechange");this.iS.X("html5_external_airplay_events")&&this.L0.wH("onAirPlayActiveChange",this.L0.jN())}; g.J.YRT=function(){this.L0.publish("airplayavailabilitychange");this.iS.X("html5_external_airplay_events")&&this.L0.wH("onAirPlayAvailabilityChange",this.L0.Ci())}; g.J.showAirplayPicker=function(){this.f0().e1()}; g.J.mud=function(){this.L0.publish("beginseeking")}; g.J.wbl=function(){this.L0.publish("endseeking")}; g.J.getStoryboardFormat=function(N){return(N=this.U6({playerType:N}))?d9(this,N).getStoryboardFormat():this.Ru.V.getStoryboardFormat()}; g.J.JJ=function(N){return(N=this.U6({playerType:N}))?d9(this,N).getVideoData().JJ():this.Ru.V.JJ()}; g.J.vH=function(N){N=(N||this.f0()).getVideoData();if(Pm(this))N=N===this.jL.playback.getVideoData();else a:{var z=this.yy;if(N===z.V.getVideoData()&&z.W.length)N=!0;else{z=g.f(z.W);for(var v=z.next();!v.done;v=z.next())if(N.m4===v.value.m4){N=!0;break a}N=!1}}return N}; g.J.xL=function(N,z,v,R,C,Z,Y,Q){this.logger.debug(function(){return"Adding video to timeline id="+N.video_id+"\n lengthMs="+R+" enterTimeMs="+C}); var L="",K=Pm(this);this.f0().WL("appattl",{sstm:this.jL?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:K});L=K?nvm(this.jL,N,z,v,R,C,Z,Y,Q):MF7(this.yy,N,v,R,C,Z);this.logger.debug(function(){return"Video added to timeline id="+N.video_id+" timelinePlaybackId="+L}); return L}; g.J.Zw=function(N,z,v,R,C,Z,Y,Q){if(Pm(this)){var L=nvm(this.jL,N,z,v,R,C,Z,Y,Q);this.logger.debug(function(){return"Remaining video added to timeline id="+N.video_id+" timelinePlaybackId="+L})}return""}; g.J.Fd=function(N){var z;(z=this.jL)==null||z.Fd(N)}; g.J.OG=function(N,z){N=N===void 0?-1:N;z=z===void 0?Infinity:z;Pm(this)||ip_(this.yy,N,z)}; g.J.vn=function(N,z,v){if(Pm(this)){var R=this.jL,C=R.yh.get(N);C?(v===void 0&&(v=C.iO),C.durationMs=z,C.iO=v):R.IT("Invalid_timelinePlaybackId_"+N+"_specified")}else{R=this.yy;C=null;for(var Z=g.f(R.W),Y=Z.next();!Y.done;Y=Z.next())if(Y=Y.value,Y.m4===N){C=Y;break}C?(v===void 0&&(v=C.iO),Yyx(R,C,z,v)):iO(R,"InvalidTimelinePlaybackId timelinePlaybackId="+N)}}; g.J.enqueueVideoByPlayerVars=function(N,z,v,R){v=v===void 0?Infinity:v;R=R===void 0?"":R;this.vH();N=new g.Os(this.iS,N);R&&(N.m4=R);MQ2(this,N,z,v)}; g.J.queueNextVideo=function(N,z,v,R,C){v=v===void 0?NaN:v;N=this.preloadVideoByPlayerVars(N,z===void 0?1:z,v,R===void 0?"":R,C===void 0?"":C);z=this.f0();N&&(this.X("html5_check_queue_on_data_loaded")?this.D().supportsGaplessShorts()&&z.getVideoData().Y&&(v=this.We,R=this.QE.L,v.N!==N&&(v.W=z,v.N=N,v.Z=1,v.V=N.getVideoData(),v.B=R,v.V.isLoaded()?v.G():v.V.subscribe("dataloaded",v.G,v))):(v=Ihu(z,N,this.QE.L),v!=null?(z.WL("sgap",v),z.getVideoData().Y&&z.YF(!1)):(N=N.getVideoData(),z=this.We,z.V!== N&&(z.V=N,z.Z=1,N.isLoaded()?z.L():z.V.subscribe("dataloaded",z.L,z)))))}; g.J.fg=function(N,z,v,R){var C=this;v=v===void 0?0:v;R=R===void 0?0:R;d9(this,this.f0()).ZH();C07(this.QE,N,z,v,R).then(function(){C.L0.wH("onQueuedVideoLoaded")},function(){})}; g.J.kG=function(){return this.QE.kG()}; g.J.Kh=function(N){var z=this.QE.V;return z?z.I6(N):!1}; g.J.clearQueue=function(N,z){N=N===void 0?!1:N;z=z===void 0?!1:z;this.logger.debug("Clearing queue");this.QE.clearQueue(N,z)}; g.J.loadVideoByPlayerVars=function(N,z,v,R,C,Z){z=z===void 0?1:z;var Y=this.Pb();if(z===2&&this.qv().enableServerStitchedDai&&Y&&!Y.E_())return Y.WL("lvonss",{vid:(N==null?void 0:N.videoId)||"",ptype:z}),!1;var Q=!1;Y=new g.Os(this.iS,N);Y.reloadPlaybackParams=Z;g.M9(this.iS)&&!Y.SI&&LL(this.dW);var L;Z=this.dW;var K=(L=Y.qd)!=null?L:"";Z.timerName=K;this.dW.CU("pl_i");this.X("web_player_early_cpn")&&Y.clientPlaybackNonce&&this.dW.infoGel({clientPlaybackNonce:Y.clientPlaybackNonce});VCm(Y).supportsVp9Encoding=== !1&&this.f0().WL("noVp9enc",{});if(this.D().supportsGaplessShorts()){L=YaI(this.QE,Y,z);if(L==null){fV(this,-1);N=this.QE;N.app.D().X("html5_gapless_new_slr")?pV(N.app,"gaplessshortslooprange"):N.app.setLoopRange(null);N.app.getVideoData().dR=!0;var l;(l=N.V)==null||l.qY();var W;(W=N.V)==null||W.O0();v={Np:"gapless_to_next_video",seekSource:60};R=g.LM(N.app.D().experiments,"html5_gapless_seek_offset");var G;(G=N.app.f0())==null||G.seekTo(ZoK(N)+R,v);if(!N.app.getPlayerStateObject(z).isPlaying()){var x; (x=N.app.f0())==null||x.playVideo(!0)}if(N.app.D().X("html5_short_gapless_unlisten_after_seek")){var e;(e=N.app.f0())==null||e.p_()}N.G();return!0}G=this.X("html5_shorts_gapless_preload_fallback");x=this.QE.V;G&&x&&!x.HL()&&(e=x.getVideoData(),e=this.iS.X("html5_autonav_autoplay_in_preload_key")?Sy(this,z,e):EB(this,z,e.videoId,e.m4),this.Ru.N.set(e,x,3600));this.QE.clearQueue(G);this.f0().WL("sgap",{f:L})}if(C){for(;Y.U5.length&&Y.U5[0].isExpired();)Y.U5.shift();Q=Y.U5.length-1;Q=Q>0&&C.W(Y.U5[Q])&& C.W(Y.U5[Q-1]);Y.U5.push(C)}v||(N&&pB7(N)?(X2(this.iS)&&!this.bY&&(N.fetch=0),nV(this,N)):this.playlist&&nV(this,null),N&&(this.bY=ve(!1,N.external_list)));this.L0.publish("loadvideo");z=this.K1(Y,z,R);Q&&this.nU("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+Y.U5.join()).replace(/[;:,]/g,"_"));return z}; g.J.preloadVideoByPlayerVars=function(N,z,v,R,C){z=z===void 0?1:z;v=v===void 0?NaN:v;R=R===void 0?"":R;C=C===void 0?"":C;var Z="";if(this.iS.X("html5_autonav_autoplay_in_preload_key"))Z=Nuv(this,z,N,C);else{var Y=iy(N);Z=EB(this,z,Y,C)}if(this.Ru.N.get(Z))return this.logger.debug(function(){return"already preloaded "+Z}),null; N=new g.Os(this.iS,N);C&&(N.m4=C);return wgY(this,N,z,v,R)}; g.J.setMinimized=function(N){this.visibility.setMinimized(N);(N=xE2(this.TW))&&(this.isMinimized()?N.load():N.unload());this.L0.publish("minimized")}; g.J.setInline=function(N){this.visibility.setInline(N)}; g.J.setInlinePreview=function(N){this.visibility.setInline(N)}; g.J.iH=function(N){v$K(this,N)||this.visibility.iH(N)}; g.J.setSqueezeback=function(N){this.visibility.setSqueezeback(N)}; g.J.Oc=function(){var N,z=(N=this.mediaElement)==null?void 0:N.Nu();z&&(this.iS.e_&&ev(WM(function(){return document.exitFullscreen()}),function(){}),ev(WM(function(){return JV(z)}),function(){}))}; g.J.w5l=function(){this.mediaElement.Nu();this.mediaElement.Nu().webkitPresentationMode==="picture-in-picture"?this.iH(!0):this.iH(!1)}; g.J.togglePictureInPicture=function(){this.f0().togglePictureInPicture()}; g.J.K1=function(N,z,v){z=z===void 0?1:z;this.logger.debug(function(){return"start load video, id "+N.videoId+", type "+z}); bv("_start",this.dW.timerName)||g.qV(ph)(void 0,this.dW.timerName);var R=!1,C=Icb(this,z,N,!1);C?(R=!0,N.dispose()):(C=ey(this,z,N,!0,v),(this.X("html5_onesie")||this.X("html5_load_before_stop"))&&C.dZ()&&C.jW(),this.a5.stop(),z===1&&z!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,z),this.f9(C));C===this.Pb()&&(this.iS.o4=N.oauthToken);if(!C.dZ())return!1;if(C===this.Pb())return this.Qv(1),v=$o(this),R&&this.X("html5_player_preload_ad_fix")&&C.getPlayerType()===1&& C.Ie()&&this.HW("dataloaded",C,C.getVideoData()),v;C.oC();return!0}; g.J.cueVideoByPlayerVars=function(N,z){var v=this;z=z===void 0?1:z;var R=this.Pb();if(this.qv().enableServerStitchedDai&&R&&!R.E_()&&N&&Object.keys(N).length>0)R.WL("qvonss",{vid:(N==null?void 0:N.videoId)||"",ptype:z});else if(N&&pB7(N))if(this.Og=!0,nV(this,N),(N=g.KL(this.playlist))&&N.Y8())Hm(this,N,z);else this.playlist.onReady(function(){ma(v)}); else{z||(z=this.getPresentingPlayerType());z===1&&this.D0();R=new g.Os(this.iS,N);var C=g.Uu(this.iS)&&!this.iS.Vp&&z===1&&!R.isAd()&&!R.s9;this.L0.publish("cuevideo");C?(this.f0().getVideoData().loading=!0,H8_(R,N?N:{}).then(function(Z){Hm(v,Z,z)}),R.dispose()):Hm(this,R,z)}}; g.J.n4=function(N,z,v,R,C,Z,Y){if(!N&&!v)throw Error("Playback source is invalid");if(AR(this.iS)||g.TW(this.iS))return z=z||{},z.lact=mB(),z.vis=this.L0.getVisibilityState(),this.L0.Qp("onPlayVideo",{videoId:N,watchEndpoint:Z,sessionData:z,listId:v}),!1;Azu(this.dW);this.dW.reset();N={video_id:N};R&&(N.autoplay="1");R&&(N.autonav="1");Z&&(N.player_params=Z.playerParams);Y&&(N.oauth_token=Y);v?(N.list=v,this.loadPlaylist(N)):this.loadVideoByPlayerVars(N,1);return!0}; g.J.cuePlaylist=function(N,z,v,R){this.Og=!0;Rmf(this,N,z,v,R)}; g.J.loadPlaylist=function(N,z,v,R){this.Og=!1;Rmf(this,N,z,v,R)}; g.J.lJ=function(){return this.L0.isMutedByMutedAutoplay()?!1:this.Ru.cK?!0:!(!this.playlist||!this.playlist.sA())}; g.J.S0=zu(13); g.J.nextVideo=function(N,z){var v=g.Nk(this.Pb().getVideoData());g.VI(this.L0)&&v?this.n4(v.videoId,z?v.IK:v.sessionData,v.playlistId,z,void 0,v.Te||void 0):this.bY?this.L0.wH("onPlaylistNext"):this.getPresentingPlayerType()===3?g.h(BX(this.TW)).nextVideo():!this.playlist||X2(this.iS)&&!this.L0.isFullscreen()||(this.playlist.sA(N)&&Vuu(this.playlist,kdI(this.playlist)),this.playlist.loaded?(N=z&&this.iS.X("html5_player_autonav_logging"),z&&this.L0.publish("playlistautonextvideo"),this.K1(g.h(g.KL(this.playlist,void 0, z,N)),1)):this.Og=!1)}; g.J.previousVideo=function(N){this.bY?this.L0.wH("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.h(BX(this.TW)).Lo():!this.playlist||X2(this.iS)&&!this.L0.isFullscreen()||(this.playlist.Ab(N)&&Vuu(this.playlist,Pnu(this.playlist)),this.playlist.loaded?this.K1(g.h(g.KL(this.playlist)),1):this.Og=!1)}; g.J.playVideoAt=function(N){this.bY?this.L0.wH("onPlaylistIndex",N):this.playlist&&(this.playlist.loaded?this.K1(g.h(g.KL(this.playlist,N)),1):this.Og=!1,Vuu(this.playlist,N))}; g.J.getPlaylist=function(){return this.playlist}; g.J.v8=zu(25);g.J.Bo0=function(N){this.L0.cH("onCueRangeEnter",N.getId())}; g.J.M8T=function(N){this.L0.cH("onCueRangeExit",N.getId())}; g.J.z$=function(){var N=g.TI(this.eV());N&&N.z$()}; g.J.Z_=function(N,z,v){var R=this.U6({playerType:z});if(R){if(this.X("html5_ssdai_enable_media_end_cue_range")&&this.jL){R.getPlayerType()===2&&this.jL.Km(this.getCurrentTime())&&(R=this.Pb());for(var C=g.f(N),Z=C.next();!Z.done;Z=C.next())Z.value.Z=this.jL.tT}R.Z_(N,v);z&&this.getPresentingPlayerType()!==z||oR(this,"cuerangesadded",N)}}; g.J.P9=function(N,z){var v=this.U6({playerType:z});v&&(v.P9(N),z&&this.getPresentingPlayerType()!==z||oR(this,"cuerangesremoved",N))}; g.J.T3=function(N){return this.f0().T3(N)}; g.J.Udd=function(){function N(){var R=z.screenLayer||(z.isMinimized()?3:0),C=g.nz(R);if(C&&C!=="UNDEFINED_CSN"){var Z=z.iS.X("web_player_attach_player_response_ve"),Y=z.iS.X("web_playback_associated_ve");R={cpn:z.getVideoData().clientPlaybackNonce,csn:C};z.getVideoData().BL&&(Z||Y)&&(Z=g.sn(z.getVideoData().BL),g.vS(C,Z),Y&&(R.playbackVe=Z.getAsJson()));z.getVideoData().queueInfo&&(R.queueInfo=z.getVideoData().queueInfo);C={};z.X("web_playback_associated_log_ctt")&&z.getVideoData().G&&(C.cttAuthInfo= {token:z.getVideoData().G,videoId:z.getVideoData().videoId});g.aX("playbackAssociated",R,C)}else g.PN(new g.XS("CSN Missing or undefined during playback association"))} var z=this,v=this.f0();this.getPresentingPlayerType();BMU(this.dW,v.getVideoData(),ia_(this));Fa(this)&&this.iS.N&&P0(this.qv())==="embedded"&&this.z_&&Math.random()<.01&&g.aX("autoplayTriggered",{intentional:this.intentionalPlayback});this.z_=!1;lau(this.TW);this.X("web_player_defer_ad")&&DCK(this);this.L0.wH("onPlaybackStartExternal");(this.iS.X("mweb_client_log_screen_associated"),Dn(this.iS))||N();v={};this.getVideoData().G&&(v.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId}); v.sampleRate=20;DT("player_att",v);if(this.getVideoData().botguardData||this.X("fetch_att_independently"))g.ci(this.iS)||g.wB(this.iS)==="MWEB"?g.M0(g.Np(),function(){UB(z)}):UB(this); this.A$();rwv(this);this.X("embeds_enable_autoplay_and_visibility_signals")&&g.Uu(this.iS)&&(v={autoplayBrowserPolicy:q$(),autoplayIntended:M$(this.getVideoData()),autoplayStatus:OMf(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.aX("embedsAutoplayStatusChanged",v))}; g.J.vJd=function(){this.L0.publish("internalAbandon");Vt(this)}; g.J.onApiChange=function(){var N=this.f0();this.iS.Y?this.L0.cH("onApiChange",N.getPlayerType()):this.L0.cH("onApiChange")}; g.J.HVS=function(){var N=this.mediaElement;N={volume:g.UC(Math.floor(N.getVolume()*100),0,100),muted:N.Zh()};N.muted||AH(this,!1);this.BK=g.vZ(N);this.L0.cH("onVolumeChange",N)}; g.J.mutedAutoplay=function(N){var z=this.getVideoData().videoId;isNaN(this.qR)&&(this.qR=this.getVideoData().startSeconds);if((N==null?0:N.videoId)||z)this.loadVideoByPlayerVars({video_id:(N==null?0:N.videoId)?N==null?void 0:N.videoId:z,playmuted:!0,start:this.qR,muted_autoplay_duration_mode:N==null?void 0:N.durationMode}),this.L0.wH("onMutedAutoplayStarts")}; g.J.onFullscreenChange=function(){var N=aGu(this);this.m5(N?1:0);L8m(this,!!N)}; g.J.m5=function(N){var z=!!N,v=!!this.jx()!==z;this.visibility.m5(N);this.template.m5(z);this.X("html5_media_fullscreen")&&!z&&this.mediaElement&&aGu(this)===this.mediaElement.Nu()&&this.mediaElement.H8();this.template.resize();v&&this.dW.tick("fsc");v&&(this.L0.publish("fullscreentoggled",z),N=this.qv(),z={fullscreen:z,videoId:N.GY||N.videoId,time:this.getCurrentTime()},this.L0.getPlaylistId()&&(z.listId=this.L0.getPlaylistId()),this.L0.cH("onFullscreenChange",z))}; g.J.e5=function(){return this.visibility.e5()}; g.J.isFullscreen=function(){return this.visibility.isFullscreen()}; g.J.jx=function(){return this.visibility.jx()}; g.J.SiW=function(){var N=this.jx();N!==0&&N!==1||this.m5(aGu(this)?1:0);N=window.screen.width*window.screen.height;var z=window.outerHeight*window.outerWidth;this.iS.n9?(this.fh=Math.max(this.fh,N,z),N=z/this.fh0&&(L=Math.floor(K/1E3))}L=z?z.K5:L;var l={AD_BLOCK:this.V++,AD_BREAK_LENGTH:L,AUTONAV_STATE:bO(this.player.D()),CA_TYPE:"image",CPN:Q.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.RB()*1E3,LACT:mB(),LIVE_INDEX:z?this.Z++:1,LIVE_TARGETING_CONTEXT:z&&z.context?z.context:"",MIDROLL_POS:Z? Math.round(Z.start/1E3):0,MIDROLL_POS_MS:Z?Math.round(Z.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.n0().nu().height,P_W:this.player.n0().nu().width,YT_REMOTE:C?C.join(","):""},W=Qj(a0);Object.keys(W).forEach(function(x){W[x]!=null&&(l[x.toUpperCase()]=W[x].toString())}); v!==""&&(l.BISCOTTI_ID=v);v={};j5(N)&&(v.sts="20208",(z=this.player.D().forcedExperiments)&&(v.forced_experiments=z));var G=Zz(g.pj(N,l),v);return G.split("?").length!==2?k7(Error("Invalid AdBreakInfo URL")):g.CW(this.player.D(),Q==null?void 0:Q.oauthToken).then(function(x){if(x&&iQ()){var e=hW();HX(e,x)}x=g.h(R.player.dD(e));e=S7f(R,G,l,Q.isMdxPlayback,Y);return g.rZ(x,e,"/youtubei/v1/player/ad_break").then(function(d){return d})})}; tH.prototype.reset=function(){this.Z=this.V=1};g.y(E$Y,tH); E$Y.prototype.W=function(N,z,v){z=z===void 0?{}:z;var R=z.pN;var C=z.GW;var Z=z.cueProcessedMs;v=v===void 0?"":v;z=this.V;this.V++;var Y=this.player.D().X("h5_disable_macro_substitution_in_get_ad_break")?N:hmu(this,N,{pN:R,GW:C,cueProcessedMs:Z},v,z);if(Y.split("?").length!==2)return Math.random()<.1&&g.PN(Error("Invalid AdBreakInfo URL")),k7(Error("Invalid AdBreakInfo URL"));var Q=this.player.getVideoData(1).isMdxPlayback,L=v;v=Buf.exec(Y);v=v!=null&&v.length>=2?v[1]:"";N=Agv.test(Y);var K=g$u.exec(Y); K=K!=null&&K.length>=2?K[1]:"";var l=pQf.exec(Y);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var W=kDx.exec(Y);W=W!=null&&W.length>=2?W[1]:"0";var G=Hi(this.player.D().bL),x=g.q2(this.player.getVideoData(1).BL,!0);Tuu(this,x,Y,L===""?"":L,this.player.D(),this.player.getVideoData(1));L={splay:!1,lactMilliseconds:String(mB()),playerHeightPixels:Math.trunc(this.player.n0().nu().height),playerWidthPixels:Math.trunc(this.player.n0().nu().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20208,autonavState:bO(this.player.D())};if(Q){Q={};var e=this.player.D().gD;mR_(Q,e?e.join(","):"")&&(L.mdxContext=Q)}if(Q=Pg7.includes(G)?void 0:g.Vj("PREF")){e=Q.split(RegExp("[:&]"));for(var d=0,T=e.length;d1&&m[1].toUpperCase()==="TRUE"){x.user.lockedSafetyMode=!0;break}}L.autoCaptionsDefaultOn=URU(Q)}Y=VlI.exec(Y);(Y=Y!=null&&Y.length>=2?Y[1]:"")&&K&&(x.user.credentialTransferTokens= [{token:Y,scope:"VIDEO"}]);Y={contentPlaybackContext:L};L=this.player.getVideoData(1).getGetAdBreakContext();Q=this.player.getVideoData(1).clientPlaybackNonce;e=Z!==void 0?Math.round(Z).toString():void 0;d=(R==null?0:R.context)?R.context:void 0;T=0;Z&&C&&!R&&(C=C.end-C.start,C>0&&(T=Math.floor(C/1E3)));R=(R=Math.trunc((R?R.K5:T)*1E3))?String(R):void 0;C=this.player.RB()*1E3;C=Number.isNaN(C)?0:Math.trunc(C);z={adBlock:z,params:v,breakIndex:l,breakPositionMs:W,clientPlaybackNonce:Q,topLevelDomain:G, isProxyAdTagRequest:N,context:x,overridePlaybackContext:Y,cueProcessedMs:e,videoId:K?K:void 0,liveTargetingParams:d,breakLengthMs:R,driftFromHeadMs:C?String(C):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:L?L:void 0};return Ha7(this,z)};var bt7={Nyp:"replaceUrlMacros",SAp:"onAboutThisAdPopupClosed",UaW:"executeCommand"};o$I.prototype.YC=function(){return"adPingingEndpoint"}; o$I.prototype.JG=function(N,z,v){nOY(this.sT.get(),N,z,v)};DRU.prototype.YC=function(){return"changeEngagementPanelVisibilityAction"}; DRU.prototype.JG=function(N){this.C.Qp("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:N})};bau.prototype.YC=function(){return"loggingUrls"}; bau.prototype.JG=function(N,z,v){N=g.f(N);for(var R=N.next();!R.done;R=N.next())R=R.value,nOY(this.sT.get(),R.baseUrl,z,v,R.attributionSrcMode)};g.y(OaO,g.H);g.y(IR,g.H);g.J=IR.prototype;g.J.addListener=function(N){this.listeners.push(N)}; g.J.removeListener=function(N){this.listeners=this.listeners.filter(function(z){return z!==N})}; g.J.Iq=function(N,z,v,R,C,Z,Y,Q){if(N==="")LZ("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(N!==this.V||v){this.V=N;this.C0.get().Iq(N,z,v,R,C,Z,Y,Q);this.XW.get().Iq(N,z,v,R,C,Z,Y,Q);var L;(L=this.x8)==null||L.get().Iq(N,z,v,R,C,Z,Y,Q);this.W.Iq(N,z,v,R,C,Z,Y,Q);L=g.f(this.listeners);for(var K=L.next();!K.done;K=L.next())K.value.Iq(N,z,v,R,C,Z,Y,Q)}else LZ("Duplicate content video loaded signal")}; g.J.ZVO=function(){this.V&&this.Fz(this.V)}; g.J.Fz=function(N){this.V=void 0;for(var z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.Fz(N)};Xa.prototype.qB=function(N,z,v,R,C){IG2(this);this.B=!z&&v===0;var Z=this.C.getVideoData(1),Y=this.C.getVideoData(2);Z&&(this.contentCpn=Z.clientPlaybackNonce,this.videoId=Z.videoId,this.V=Z.G);Y&&(this.adCpn=Y.clientPlaybackNonce,this.adVideoId=Y.videoId,this.adFormat=Y.adFormat);this.N=N;R<=0?(IG2(this),this.B=!z&&v===0):(this.actionType=this.B?z?"unknown_type":"video_to_ad":z?"ad_to_video":"ad_to_ad",this.videoStreamType=C?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,bv("_start",this.actionType)&&uAO(this)))}; Xa.prototype.reset=function(){return new Xa(this.C)};g.y(r9,g.H);r9.prototype.addCueRange=function(N,z,v,R,C,Z,Y){Z=Z===void 0?3:Z;Y=Y===void 0?1:Y;this.V.has(N)?LZ("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:N}):(N=new cgK(N,z,v,R,Z),this.V.set(N.id,{GW:N,listener:C,Ix:Y}),this.C.QT([N],Y))}; r9.prototype.removeCueRange=function(N){var z=this.V.get(N);z?(this.C.xz([z.GW],z.Ix),this.V.delete(z.GW.id)):LZ("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:N})}; r9.prototype.onCueRangeEnter=function(N){if(this.V.has(N.id))g.h(this.V.get(N.id)).listener.onCueRangeEnter(N.id)}; r9.prototype.onCueRangeExit=function(N){if(this.V.has(N.id))g.h(this.V.get(N.id)).listener.onCueRangeExit(N.id)}; g.y(cgK,g.zt);uO.prototype.addPlayerResponseForAssociation=function(N){this.C.addPlayerResponseForAssociation(N)};cm.prototype.DP=function(N){this.C.DP(N)}; cm.prototype.D6=function(N){var z=g.SI.apply(1,arguments);N==="onAdStart"||N==="onAdEnd"?this.C.cH.apply(this.C,[N].concat(g.U(z))):this.C.Qp.apply(this.C,[N].concat(g.U(z)))};qE.prototype.bv=function(N){return N&&ME(this)};var a1I=null;g.y(jEO,g.jJ);jEO.prototype.PY=function(N){return this.V.hasOwnProperty(N)?this.V[N].PY():{}}; g.cU("ytads.bulleit.getVideoMetadata",function(N){return w9().PY(N)}); g.cU("ytads.bulleit.triggerExternalActivityEvent",function(N,z,v){var R=w9();v=iBu(v);v!==null&&R.publish(v,{queryId:N,viewabilityString:z})});g.J=N7.prototype;g.J.yl=function(N,z){if(!this.V.has(N))return{};if(z==="seek"){z=!1;z=z===void 0?!1:z;var v=rS(wy).Mq(N,{});v?rP(v):z&&(N=rS(wy).TV(null,fT(),!1,N),N.H2=3,nnu([N]));return{}}z=Lt2(z);if(z===null)return{};var R=this.C.vT();if(!R)return{};var C=this.C.getPresentingPlayerType(!0);if((v=this.C.getVideoData(C))==null||!v.isAd())return{};v={opt_adElement:R,opt_fullscreen:this.C0.get().isFullscreen()};return nsu(z,N,v)}; g.J.Cs=function(N,z,v,R,C){this.V.has(N)&&(R<=0||C<=0||rS(wy).Cs(N,z,v,R,C))}; g.J.yR=function(N){var z;(z=this.V.get(N.queryId))==null||z.yR()}; g.J.hS=function(N){var z;(z=this.V.get(N.queryId))==null||z.hS()}; g.J.xV=function(N){var z;(z=this.V.get(N.queryId))==null||z.xV()}; g.J.Sj=function(N){var z;(z=this.V.get(N.queryId))==null||z.Sj()}; g.J.lz=function(N){var z;(z=this.V.get(N.queryId))==null||z.lz()};f1u.prototype.send=function(N,z,v,R){try{d52(this,N,z,v,R===void 0?!1:R)}catch(C){}};g.y(sEU,f1u);Tnx.prototype.send=function(N,z,v,R){var C=!1;try{if(R==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||R==="ATTRIBUTION_SRC_MODE_XHR_OPTION")C=!0,N=ZXK(N);R=C;var Z=g.Fd(N);if(Z[1]==="https")var Y=N;else Z[1]="https",Y=TP("https",Z[2],Z[3],Z[4],Z[5],Z[6],Z[7]);var Q=Yl2(Y);Z=[];var L;if(L=O$x(Y))L=this.zU.get().C.D().experiments.j8("add_auth_headers_to_remarketing_google_dot_com_ping");if(j5(Y)||L)Z.push({headerType:"USER_AUTH"}),Z.push({headerType:"PLUS_PAGE_ID"}),Z.push({headerType:"VISITOR_ID"}),Z.push({headerType:"EOM_VISITOR_ID"}), Z.push({headerType:"AUTH_USER"}),Z.push({headerType:"DATASYNC_ID"});this.V.send({baseUrl:Y,scrubReferrer:Q,headers:Z},z,v,R)}catch(K){}};ZV.prototype.WP=function(){return this.C.WP(1)};g.y(i3,g.H);g.J=i3.prototype;g.J.K8=function(){return this.C.getVideoData(1).clientPlaybackNonce}; g.J.addListener=function(N){this.listeners.push(N)}; g.J.removeListener=function(N){this.listeners=this.listeners.filter(function(z){return z!==N})}; g.J.Iq=function(){this.PV.clear();this.yV=null;this.a8.get().clear()}; g.J.Fz=function(){}; g.J.RdU=function(N,z,v,R,C){z.videoId==="nPpU29QrbiU"&&this.C.WL("ads_ssm_vdc_s",{pt:v,dvt:N});F3(this.zU.get())&&N!=="dataloaded"||puf(this,z,v);if(ME(this.zU.get())&&N==="newdata"&&C!==void 0){N=this.K8();var Z=z.clientPlaybackNonce,Y={};dp(this,"rte",(Y.ec=Z,Y.xc=R==null?void 0:R.clientPlaybackNonce,Y.tr=C,Y.pt=v,Y.ia=Z!==N,Y.ctp=f_(Z),Y));z=z.clientPlaybackNonce;R=R==null?void 0:R.clientPlaybackNonce;C=kH_(C);if(C!==1)if(R!==void 0)for(v=g.f(this.listeners),N=v.next();!N.done;N=v.next())N.value.ZP(R, z,C);else LZ("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:z,transitionReason:String(C)});C=g.f(this.listeners);for(R=C.next();!R.done;R=C.next())R.value.b8(z)}}; g.J.THp=function(N,z){N!==void 0&&(this.yV=N,z===void 0?LZ("Expected ad video start time on SS video changed"):this.PV.set(N,z));var v=this.C.getPresentingPlayerType(!0),R=this.C.getVideoData(v),C;N===void 0?C=null:C=this.a8.get().V.get(N)||null;this.C.getVideoData(1).WL("ads_ssvc",{pt:v,cpn:R==null?void 0:R.clientPlaybackNonce,crtt:this.C.getCurrentTime(1,!1),atlh:this.C.isAtLiveHead(),adstt:z,pid:N,slid:C==null?void 0:C.layoutId});R?puf(this,R,v):LZ("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.C.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:N})}; g.J.VI=function(N,z){var v=N.author,R=N.clientPlaybackNonce,C=N.isListed,Z=N.m4,Y=N.title,Q=N.Je,L=N.yj,K=N.isMdxPlayback,l=N.Jk,W=N.mdxEnvironment,G=N.isAutonav,x=N.mU,e=N.SI,d=N.xd,T=N.videoId||"",m=N.profilePicture||"",n=N.JR||"",P=N.YG()||!1,V=N.Lb()||!1;N=N.aK||void 0;Z=this.a8.get().V.get(Z)||{layoutId:null,slotId:null};var D=this.C.getVideoData(1),c=D.Hb();D=D.getPlayerResponse();z=1E3*this.C.getDuration(z);var r=1E3*this.C.getDuration(1),Rv,Zu,Nx=(D==null?void 0:(Rv=D.playerConfig)==null? void 0:(Zu=Rv.daiConfig)==null?void 0:Zu.enableDai)||!1,av,M;Rv=(D==null?void 0:(av=D.playerConfig)==null?void 0:(M=av.daiConfig)==null?void 0:M.enablePreroll)||!1;return Object.assign({},Z,{videoId:T,author:v,clientPlaybackNonce:R,yB:z,Fp:r,daiEnabled:Nx,u0:Rv,isListed:C,Hb:c,profilePicture:m,title:Y,JR:n,Je:Q,yj:L,aK:N,isMdxPlayback:K,Jk:l,mdxEnvironment:W,isAutonav:G,mU:x,SI:e,xd:d,YG:P,Lb:V})}; g.J.AO=function(){this.listeners.length=0;this.rP=null;g.H.prototype.AO.call(this)};g.y(jO,g.H);g.J=jO.prototype;g.J.Iq=function(){var N=this;ME(this.zU.get())||(this.V=xS(function(){N.C.HL()||N.C.kA("ad",1)}))}; g.J.Fz=function(){}; g.J.addListener=function(N){this.listeners.push(N)}; g.J.removeListener=function(N){this.listeners=this.listeners.filter(function(z){return z!==N})}; g.J.NR=function(){}; g.J.playVideo=function(){this.C.playVideo()}; g.J.pauseVideo=function(){this.C.pauseVideo()}; g.J.resumeVideo=function(N){this.Js(N)&&this.C.playVideo()}; g.J.Js=function(N){return this.C.getPlayerState(N)===2}; g.J.getCurrentTimeSec=function(N,z,v){var R=this.XW.get().yV;if(N===2&&!z&&R!==null)return VEm(this,R);Xu(this.zU.get(),"html5_ssap_use_cpn_to_get_time")||(v=void 0);return v!==void 0?this.C.getCurrentTime(N,z,v):this.C.getCurrentTime(N,z)}; g.J.getVolume=function(){return this.C.getVolume()}; g.J.isMuted=function(){return this.C.isMuted()}; g.J.getPresentingPlayerType=function(){return this.C.getPresentingPlayerType(!0)}; g.J.getPlayerState=function(N){return this.C.getPlayerState(N)}; g.J.isFullscreen=function(){return this.C.isFullscreen()}; g.J.isAtLiveHead=function(){return this.C.isAtLiveHead()}; g.J.EN=function(N){this.C.EN(N)}; g.J.cIp=function(){var N=this.C.getPresentingPlayerType(!0),z=this.getCurrentTimeSec(N,!1);if(N===2){N=g.f(this.listeners);for(var v=N.next();!v.done;v=N.next())v.value.I4(z)}else if(N===1)for(N=g.f(this.W8),v=N.next();!v.done;v=N.next())v.value.NR(z)}; g.J.gH0=function(N){for(var z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.BD(N,this.getPresentingPlayerType())}; g.J.onFullscreenToggled=function(N){for(var z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.onFullscreenToggled(N)}; g.J.onVolumeChange=function(){for(var N=g.f(this.listeners),z=N.next();!z.done;z=N.next())z.value.onVolumeChange()}; g.J.eI=function(){for(var N=this.C.isMinimized(),z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.eI(N)}; g.J.H1=function(N){for(var z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.H1(N)}; g.J.wW=function(){for(var N=this.C.n0().nu(),z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.jo(N)}; g.J.d5=function(N){for(var z=g.f(this.listeners),v=z.next();!v.done;v=z.next())v.value.d5(N)}; g.J.Ma=function(){for(var N=g.f(this.listeners),z=N.next();!z.done;z=N.next())z.value.Ma()};g.y(HB2,g.H);g.y(l3,g.H);l3.prototype.AO=function(){this.ox.HL()||this.ox.get().removeListener(this);g.H.prototype.AO.call(this)};WI.prototype.fetch=function(N){var z=N.zf;return this.V.fetch(N.zk,{pN:N.pN===void 0?void 0:N.pN,GW:z,cueProcessedMs:N.cueProcessedMs===void 0?0:N.cueProcessedMs}).then(function(v){return oO7(v,z)})};g.y(Gj,g.H);g.J=Gj.prototype;g.J.addListener=function(N){this.listeners.push(N)}; g.J.removeListener=function(N){this.listeners=this.listeners.filter(function(z){return z!==N})}; g.J.Xx=function(N){D5I(this,N,1)}; g.J.onAdUxClicked=function(N,z){xT(this,function(v){v.WD(N,z)})}; g.J.Pl=function(N){xT(this,function(z){z.lR(N)})}; g.J.zK=function(N){xT(this,function(z){z.Ss(N)})}; g.J.pLp=function(N){xT(this,function(z){z.u9(N)})};eO.prototype.reduce=function(N){switch(N.event){case "unknown":return}var z=N.identifier;var v=this.V[z];v?z=v:(v={P8:null,vR:-Infinity},z=this.V[z]=v);v=N.startSecs+N.V/1E3;if(!(v=this.V.startSecs&&v.startSecs<=this.V.startSecs+this.V.K5;if(R){R=void 0;if(nv(this.zU.get())&&v.identifier!==((R=this.V)==null?void 0:R.identifier)){var C=R=void 0,Z=void 0,Y=void 0;CC(this.sT.get(),"ocud","ccpi."+v.identifier+";ccpe."+v.event+";ccps."+v.startSecs+";\n ccpd."+v.K5+";pcpi."+((R=this.V)==null?void 0: R.identifier)+";pcpe."+((C=this.V)==null?void 0:C.event)+";\n pcps."+((Z=this.V)==null?void 0:Z.startSecs)+";pcpd."+((Y=this.V)==null?void 0:Y.K5)+";")}R=void 0;v.identifier!==((R=this.V)==null?void 0:R.identifier)&&LZ("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.V=v,I1b(this,v)}}}; g.J.AO=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.Rn,this),this.W=null);this.listeners.length=0;this.N.length=0;g.H.prototype.AO.call(this)};g.J=fq.prototype;g.J.xL=function(N,z,v,R,C,Z,Y){return this.C.xL(N,z,v,R,C,Z,Y)}; g.J.OG=function(N,z){this.C.OG(N,z)}; g.J.vn=function(N,z,v){this.C.vn(N,z,v)}; g.J.Fd=function(N){this.C.Fd(N)}; g.J.Zw=function(N,z,v,R,C,Z,Y){return this.C.Zw(N,z,v,R,C,Z,Y)}; g.J.j3=function(N){return this.C.j3(N)}; g.J.finishSegmentByCpn=function(N,z,v){v=u0O(v);this.C.finishSegmentByCpn(N,z,v)};g.y(dt,g.H);g.y(qS2,g.H);g.y(ME2,g.H);g.y(wu7,g.H);g.y(NIf,g.H);g.y(znO,g.H);g.y(Rnb,g.H);Rnb.prototype.Z=function(){return this.W};g.y(CSf,tu); CSf.prototype.N=function(N){var z=N.content;if(z.componentType==="shopping-companion")switch(N.actionType){case 1:case 2:N=this.V.getVideoData(1);this.V.Qp("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId,shoppingCompanionCarouselRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.V,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:this.V.Qp("updateKevlarOrC3Companion",{})}else if(z.componentType==="action-companion")switch(N.actionType){case 1:case 2:N=this.V.getVideoData(1); this.V.Qp("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId,actionCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.V,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.V.getVideoData(1),this.V.Qp("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.V.Qp("updateKevlarOrC3Companion",{})}else if(z.componentType==="image-companion")switch(N.actionType){case 1:case 2:N=this.V.getVideoData(1);this.V.Qp("updateKevlarOrC3Companion", {contentVideoId:N&&N.videoId,imageCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.V,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.V.getVideoData(1),this.V.Qp("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.V.Qp("updateKevlarOrC3Companion",{})}else if(z.componentType==="top-banner-image-text-icon-buttoned")switch(N.actionType){case 1:case 2:N=this.V.getVideoData(1);this.V.Qp("updateKevlarOrC3Companion", {contentVideoId:N&&N.videoId,topBannerImageTextIconButtonedLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.V,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.V.getVideoData(1),this.V.Qp("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.V.Qp("updateKevlarOrC3Companion",{})}else if(z.componentType==="banner-image")switch(N.actionType){case 1:case 2:N=this.V.getVideoData(1);this.V.Qp("updateKevlarOrC3Companion", {contentVideoId:N&&N.videoId,bannerImageLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.V,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.V.getVideoData(1),this.V.Qp("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.V.Qp("updateKevlarOrC3Companion",{})}else if(z.componentType==="ads-engagement-panel")switch(z=z.renderer,N.actionType){case 1:case 2:this.V.Qp("updateEngagementPanelAction",z.addAction);this.V.Qp("changeEngagementPanelVisibility", z.expandAction);break;case 3:this.V.Qp("changeEngagementPanelVisibility",z.hideAction),this.V.Qp("updateEngagementPanelAction",z.removeAction)}else if(z.componentType==="ads-engagement-panel-layout"){var v=z.renderer;switch(N.actionType){case 1:case 2:this.V.Qp("updateEngagementPanelAction",{action:hT(v.addAction),layoutId:z.layoutId,onLayoutVisibleCallback:z.V,interactionLoggingClientData:z.interactionLoggingClientData});this.V.Qp("changeEngagementPanelVisibility",hT(v.expandAction));break;case 3:this.V.Qp("changeEngagementPanelVisibility", hT(v.hideAction)),this.V.Qp("updateEngagementPanelAction",{action:hT(v.removeAction)})}}};g.y(ZEu,Mg);g.J=ZEu.prototype;g.J.init=function(N,z,v){Mg.prototype.init.call(this,N,z,v);g.SB(this.Z,"stroke-dasharray","0 "+this.W);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.N.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){N2(this);Mg.prototype.hide.call(this)}; g.J.show=function(){wN(this);Mg.prototype.show.call(this)}; g.J.hk=function(){this.hide()}; g.J.Y3=function(){if(this.V){var N=this.V.getProgressState();N!=null&&N.current!=null&&g.SB(this.Z,"stroke-dasharray",N.current/N.seekableEnd*this.W+" "+this.W)}};g.y(YKf,WS);g.J=YKf.prototype; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if(z.backgroundImage&&z.backgroundImage.thumbnail)if(z.actionButton&&g.t(z.actionButton,g.E9))if(N=z.durationMilliseconds||0,typeof N!=="number"||N<=0)g.kE(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+N));else if(z.navigationEndpoint){var R=this.api.getVideoData(2);if(R!=null){var C=z.image.thumbnail.thumbnails;C!=null&& C.length>0&&g.ez(g.yp(C[0].url))&&(C[0].url=R.profilePicture,g.ez(g.yp(R.profilePicture))&&BKv("VideoPlayer",239976093,"Expected non-empty profile picture."));C=z.backgroundImage.thumbnail.thumbnails;C!=null&&C.length>0&&g.ez(g.yp(C[0].url))&&(C[0].url=R.Ou());C=z.headline;C!=null&&g.ez(g.yp(C.text))&&(C.text=R.author)}this.J.init(Yt("ad-image"),z.image,v);this.G.init(Yt("ad-text"),z.headline,v);this.Z.init(Yt("ad-text"),z.description,v);this.UT.init(Yt("ad-image"),z.backgroundImage,v);R=["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.G.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Z.element.classList.add("ytp-ad-action-interstitial-description-light");R.push("ytp-ad-action-interstitial-action-button-dark");this.api.D().W&&(R.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),R.push("ytp-ad-action-interstitial-action-button-dark"));this.api.D().X("enable_unified_action_endcap_on_web")&& !this.api.D().W&&(R.push("ytp-ad-action-interstitial-action-button-unified"),this.xT.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.ET.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.jr.classList.add("ytp-ad-action-interstitial-card-unified"),this.Vp.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Rd.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.tO.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.BL.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new pK(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,R);g.b(this,this.actionButton);this.actionButton.Nd(this.xT); this.actionButton.init(Yt("button"),g.t(z.actionButton,g.E9),v);bk(this.actionButton.element);R=rs(this.actionButton.element);XQ(this.actionButton.element,R+" This link opens in new tab");this.navigationEndpoint=z.navigationEndpoint;this.N.S(this.tO,"click",this.Ly,this);this.N.S(this.Vp,"click",this.Ly,this);!this.api.D().X("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.D().W||this.N.S(this.Rd,"click",this.Ly,this);this.V=this.cO?new dO(this.api,N):new sI(N);g.b(this,this.V);if(z.skipButton){(N= g.t(z.skipButton,ZI$))&&this.V&&(this.skipButton=new GX(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.V,this.Hy),g.b(this,this.skipButton),this.skipButton.Nd(this.element),this.skipButton.init(Yt("skip-button"),N,v));if(v=z.adBadgeRenderer)if(v=g.t(v,Chl))N=new yW(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0,!0),N.Nd(this.BL),N.init(Yt("simple-ad-badge"),v,this.macros),g.b(this,N);if(v=z.adInfoRenderer)if(v=g.t(v,Vy))N=new uG(this.api,this.layoutId,this.interactionLoggingClientData, this.yp,this.element,void 0,!0),N.Nd(this.BL),N.init(Yt("ad-info-hover-text-button"),v,this.macros),g.b(this,N)}else z.nonskippableOverlayRenderer&&(N=g.t(z.nonskippableOverlayRenderer,Sk))&&this.V&&(this.W=new Rt(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.V,!1),g.b(this,this.W),this.W.Nd(this.element),this.W.init(Yt("ad-preview"),N,v));z.countdownRenderer&&(z=z.countdownRenderer,g.t(z,YN$)&&this.V&&(v=new ZEu(this.api,this.layoutId,this.interactionLoggingClientData,this.yp, this.V),g.b(this,v),v.Nd(this.element),v.init(Yt("timed-pie-countdown"),g.t(z,YN$),this.macros)));this.show();this.element.focus()}else g.kE(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.kE(Error("AdActionInterstitialRenderer has no button."));else g.kE(Error("AdActionInterstitialRenderer has no background AdImage."));else g.kE(Error("AdActionInterstitialRenderer has no description AdText."));else g.kE(Error("AdActionInterstitialRenderer has no headline AdText."));else g.kE(Error("AdActionInterstitialRenderer has no image."))}; g.J.clear=function(){g.Be(this.N);this.hide()}; g.J.show=function(){iEv(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();WS.prototype.show.call(this)}; g.J.hide=function(){iEv(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();WS.prototype.hide.call(this)}; g.J.Ly=function(){this.navigationEndpoint&&(this.layoutId?this.yp.executeCommand(this.navigationEndpoint,this.layoutId):g.kE(Error("Missing layoutId for ad action interstitial.")))};var KHu={iconType:"CLOSE"},nq=new g.kQ(320,63);g.y(LH_,WS);g.J=LH_.prototype; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);this.N=z;this.J=g.T1(this.N.onClickCommands||[]);this.BL=this.N.onErrorCommand||null;if(N=this.N.contentSupportedRenderer)N=this.N.contentSupportedRenderer,z=this.N.adInfoRenderer||null,g.t(N,zqZ)?(this.G=g.XD("ytp-ad-overlay-ad-info-button-container",this.Z.element),leu(this,z),N=GvI(this,g.t(N,zqZ))):g.t(N,v_l)?(this.G=g.XD("ytp-ad-overlay-ad-info-button-container",this.W.element),leu(this,z),N=x62(this,g.t(N,v_l))):g.t(N,Rq5)?(this.G= g.XD("ytp-ad-overlay-ad-info-button-container",this.V.element),leu(this,z),N=enb(this,g.t(N,Rq5))):(g.kE(Error("InvideoOverlayAdRenderer content could not be initialized.")),N=!1);N&&(this.show(),JMm(this,!0))}; g.J.clear=function(){JMm(this,!1);this.tO.reset();this.Vp=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.V.hide();this.logVisibility(this.V.element,!1);this.hide();this.dispose()}; g.J.zd8=function(){this.xT&&(this.layoutId?this.yp.executeCommand(this.xT,this.layoutId):g.kE(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.J.nR=function(){a:{if(this.N&&this.N.closeButton&&this.N.closeButton.buttonRenderer){var N=this.N.closeButton.buttonRenderer;if(N.serviceEndpoint){N=[N.serviceEndpoint];break a}}N=[]}N=g.f(N);for(var z=N.next();!z.done;z=N.next())z=z.value,this.layoutId?this.yp.executeCommand(z,this.layoutId):g.kE(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.J.cOT=function(){this.UT||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.J.lh=function(){this.UT||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.lh("invideo-overlay")}; g.J.Ipd=function(N){N.target===this.G&&g.XD("ytp-ad-button",this.ET.element).click()};g.y(yMu,Mg);g.J=yMu.prototype;g.J.init=function(N,z,v){Mg.prototype.init.call(this,N,z,v);N=z.durationMs;this.Z=N==null||N===0?0:N+this.V.getProgressState().current*1E3;if(z.text)var R=z.text.templatedAdText;else z.staticMessage&&(R=z.staticMessage);this.messageText.init(Yt("ad-text"),R,v);this.messageText.Nd(this.W.element);this.N.show(100);this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){feu(this,!1);Mg.prototype.hide.call(this);this.W.hide();this.messageText.hide();N2(this)}; g.J.show=function(){feu(this,!0);Mg.prototype.show.call(this);wN(this);this.W.show();this.messageText.show()}; g.J.hk=function(){this.hide()}; g.J.Y3=function(){if(this.V!=null){var N=this.V.getProgressState();N!=null&&N.current!=null&&(N=1E3*N.current,!this.Vp&&N>=this.Z?(this.N.hide(),this.Vp=!0):this.messageText&&this.messageText.isTemplated()&&(N=Math.max(0,Math.ceil((this.Z-N)/1E3)),N!==this.G&&(qg(this.messageText,{TIME_REMAINING:String(N)}),this.G=N)))}};g.y(d6_,WS);g.J=d6_.prototype; g.J.init=function(N,z,v){WS.prototype.init.call(this,N,z,{});z.image&&z.image.thumbnail?z.headline?z.description?z.actionButton&&g.t(z.actionButton,g.E9)?(this.Z.init(Yt("ad-image"),z.image,v),this.W.init(Yt("ad-text"),z.headline,v),this.N.init(Yt("ad-text"),z.description,v),N=["ytp-ad-underlay-action-button"],this.api.D().X("use_blue_buttons_for_desktop_player_underlay")&&N.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new pK(this.api,this.layoutId,this.interactionLoggingClientData,this.yp, N),z.backgroundColor&&g.SB(this.element,"background-color",g.hX(z.backgroundColor)),g.b(this,this.actionButton),this.actionButton.Nd(this.G),this.actionButton.init(Yt("button"),g.t(z.actionButton,g.E9),v),z=g.LM(this.api.D().experiments,"player_underlay_video_width_fraction"),this.api.D().X("place_shrunken_video_on_left_of_player")?(v=this.V,g.jW(v,"ytp-ad-underlay-left-container"),g.Ye(v,"ytp-ad-underlay-right-container"),g.SB(this.V,"margin-left",Math.round((z+.02)*100)+"%")):(v=this.V,g.jW(v,"ytp-ad-underlay-right-container"), g.Ye(v,"ytp-ad-underlay-left-container")),g.SB(this.V,"width",Math.round((1-z-.04)*100)+"%"),this.api.IQ()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.V$.bind(this)),this.api.addEventListener("resize",this.q8.bind(this))):g.kE(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.kE(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.kE(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.kE(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.J.show=function(){sb_(!0);this.actionButton&&this.actionButton.show();WS.prototype.show.call(this)}; g.J.hide=function(){sb_(!1);this.actionButton&&this.actionButton.hide();WS.prototype.hide.call(this)}; g.J.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.V$.bind(this));this.api.removeEventListener("resize",this.q8.bind(this));this.hide()}; g.J.onClick=function(N){WS.prototype.onClick.call(this,N);this.actionButton&&g.ZQ(this.actionButton.element,N.target)&&this.api.pauseVideo()}; g.J.V$=function(N){N==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):N==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):N==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))}; g.J.q8=function(N){N.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):N.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.SB(this.W.element,"font-size",N.width/40+"px")};g.y(mh,WS); mh.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);z.toggledLoggingParams&&(this.toggledLoggingParams=z.toggledLoggingParams);z.answer&&g.t(z.answer,g.E9)?(N=new pK(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),N.Nd(this.answer),N.init(Yt("ytp-ad-survey-answer-button"),g.t(z.answer,g.E9),v),N.show()):z.answer&&g.t(z.answer,sX)&&(this.V=new D9(this.api,this.layoutId,this.interactionLoggingClientData,this.yp, ["ytp-ad-survey-answer-toggle-button"]),this.V.Nd(this.answer),g.b(this,this.V),this.V.init(Yt("survey-answer-button"),g.t(z.answer,sX),v));this.show()}; mh.prototype.Pn=function(N){this.layoutId?tY(this.yp,N,this.layoutId,this.macros):(N=new g.XS("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kE(N))}; mh.prototype.onClick=function(N){WS.prototype.onClick.call(this,N);if(this.api.D().X("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; mh.prototype.clear=function(){this.hide()};g.y(TIK,WS);TIK.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);z.answer&&g.t(z.answer,sX)&&(this.button=new D9(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Nd(this.V),this.button.init(Yt("survey-none-of-the-above-button"),g.t(z.answer,sX),v));this.show()};g.y($T,pK);$T.prototype.init=function(N,z,v){pK.prototype.init.call(this,N,z,v);N=!1;z.text&&(z=g.xt(z.text),N=!g.ez(z));N||g.PN(Error("No submit text was present in the renderer."))}; $T.prototype.onClick=function(N){this.publish("l");pK.prototype.onClick.call(this,N)};g.y(Uh,WS); Uh.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);if(N=z.skipOrPreviewRenderer)g.t(N,jH)?(N=g.t(N,jH),v=new e0(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.N,!0),v.Nd(this.skipOrPreview),v.init(Yt("skip-button"),N,this.macros),g.b(this,v),this.V=v):g.t(N,Sk)&&(N=g.t(N,Sk),v=new Rt(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.N,!1),v.Nd(this.skipOrPreview),v.init(Yt("ad-preview"),N,this.macros),v.Vp.show(100),v.show(),g.b(this,v), this.V=v);this.V==null&&(N=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(z)),g.kE(N));z.submitButton&&(N=z.submitButton,g.t(N,g.E9)&&(N=g.t(N,g.E9),v=new $T(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),v.Nd(this.submitButton),v.init(Yt("survey-submit"),N,this.macros),g.b(this,v),this.W=v));if(N=z.adBadgeRenderer)N=g.t(N,Chl),v=new yW(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0,!0,!0),v.Nd(this.Z),v.init(Yt("simple-ad-badge"), N,this.macros),this.adBadge=v.element,g.b(this,v);if(N=z.adDurationRemaining)N=g.t(N,MVr),v=new nZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.N,void 0,!0),v.Nd(this.Z),v.init(Yt("ad-duration-remaining"),N,this.macros),g.b(this,v);(z=z.adInfoRenderer)&&g.t(z,Vy)&&(N=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.element,void 0,!0),g.b(this,N),this.adBadge!==void 0?this.Z.insertBefore(N.element,this.adBadge.nextSibling):N.Nd(this.Z),N.init(Yt("ad-info-hover-text-button"), g.t(z,Vy),this.macros));this.show()}; Uh.prototype.clear=function(){this.hide()};g.y(BI,WS);BI.prototype.init=function(N,z,v){WS.prototype.init.call(this,N,z,v);U6v(this)}; BI.prototype.show=function(){this.Z=Date.now();WS.prototype.show.call(this)}; BI.prototype.zM=function(){};g.y(BIf,BI);g.J=BIf.prototype;g.J.init=function(N,z,v){var R=this;BI.prototype.init.call(this,N,z,v);z.questionText&&FH2(this,z.questionText);z.answers&&z.answers.forEach(function(C,Z){g.t(C,fd)&&nqY(R,g.t(C,fd),v,Z)}); this.G=new Set(this.W.map(function(C){return C.V.V})); (N=z.noneOfTheAbove)&&(N=g.t(N,Nf8))&&AM7(this,N,v);z.surveyAdQuestionCommon&&$6K(this,z.surveyAdQuestionCommon);z.submitEndpoints&&(this.submitEndpoints=z.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()}; g.J.zM=function(){gqU(this,!1);this.N.W.subscribe("l",this.OGS,this)}; g.J.onChange=function(N){N.target===this.noneOfTheAbove.button.V?pYU(this):this.G.has(N.target)&&(this.noneOfTheAbove.button.toggleButton(!1),gqU(this,!0))}; g.J.OGS=function(){var N=[],z=this.W.reduce(function(C,Z,Y){var Q=Z.toggledLoggingParams;Z.V&&Z.V.isToggled()&&Q&&(C.push(Q),N.push(Y));return C},[]).join("&"),v=this.submitEndpoints.map(function(C){if(!C.loggingUrls)return C; C=g.RP(C);C.loggingUrls=C.loggingUrls.map(function(Z){Z.baseUrl&&(Z.baseUrl=PV(Z.baseUrl,z));return Z}); return C}); if(v){v=g.f(v);for(var R=v.next();!R.done;R=v.next())R=R.value,this.layoutId?tY(this.yp,R,this.layoutId,this.macros):g.kE(Error("Missing layoutId for multi_select_question."))}this.api.D().X("supports_multi_step_on_desktop")&&this.Vp(N)}; g.J.clear=function(){this.api.D().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(At,BI);At.prototype.init=function(N,z,v){var R=this;BI.prototype.init.call(this,N,z,v);z.questionText&&FH2(this,z.questionText);z.answers&&z.answers.forEach(function(C,Z){g.t(C,fd)&&nqY(R,g.t(C,fd),v,Z)}); z.surveyAdQuestionCommon?$6K(this,z.surveyAdQuestionCommon):jt(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(z)));this.show()}; At.prototype.clear=function(){this.api.D().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(gt,WS);gt.prototype.init=function(N,z,v){var R=this;WS.prototype.init.call(this,N,z,v);if(this.api.D().X("supports_multi_step_on_desktop")){var C;this.conditioningRules=(C=z.conditioningRules)!=null?C:[];var Z;this.W=(Z=z.questions)!=null?Z:[];var Y;((Y=z.questions)==null?0:Y.length)&&SKv(this,0)}else(z.questions||[]).forEach(function(Q){g.t(Q,ku)?PSm(R,g.t(Q,ku),v):g.t(Q,p0)&&VXm(R,g.t(Q,p0),v)}); this.show()}; gt.prototype.clear=function(){this.api.D().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; gt.prototype.N=function(N){var z=this;if(this.api.D().X("supports_multi_step_on_desktop")){var v;if((v=this.conditioningRules)==null?0:v.length){var R;if(N.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(C){return C.questionIndex===z.V})==null)g.kE(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(C){if(C.questionIndex===z.V)switch(C.condition){case "CONDITION_ALL_OF":var Z;if((Z=C.answerIndices)==null?0:Z.every(function(Q){return N.includes(Q)}))R=C.nextQuestionIndex; break;case "CONDITION_ANY_OF":var Y;if((Y=C.answerIndices)==null?0:Y.some(function(Q){return N.includes(Q)}))R=C.nextQuestionIndex; break;default:g.kE(Error("Expected specified condition in survey conditioning rules."))}}),R!=null)SKv(this,R); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.kE(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(pq,WS); pq.prototype.init=function(N,z,v){var R=this;WS.prototype.init.call(this,N,z,v);N=z.timeoutSeconds||0;if(typeof N!=="number"||N<0)g.kE(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+N));else if(z.timeoutCommands)if(z.text)if(z.ctaButton&&g.t(z.ctaButton,g.E9))if(z.brandImage)if(z.backgroundImage&&g.t(z.backgroundImage,h5)&&g.t(z.backgroundImage,h5).landscape){this.layoutId||g.kE(Error("Missing layoutId for survey interstitial."));EqK(this.interstitial,g.t(z.backgroundImage, h5).landscape);EqK(this.logoImage,z.brandImage);g.YS(this.text,g.xt(z.text));var C=["ytp-ad-survey-interstitial-action-button"];C.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new pK(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,C);g.b(this,this.actionButton);this.actionButton.Nd(this.W);this.actionButton.init(Yt("button"),g.t(z.ctaButton,g.E9),v);this.actionButton.show();this.V=new dO(this.api,N*1E3);this.V.subscribe("g",function(){R.transition.hide()}); g.b(this,this.V);this.S(this.element,"click",function(Z){var Y=Z.target===R.interstitial;Z=R.actionButton.element.contains(Z.target);if(Y||Z)if(R.transition.hide(),Y)R.api.onAdUxClicked(R.componentType,R.layoutId)}); this.transition.show(100)}else g.kE(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.kE(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.kE(Error("SurveyTextInterstitialRenderer has no button."));else g.kE(Error("SurveyTextInterstitialRenderer has no text."));else g.kE(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; pq.prototype.clear=function(){this.hide()}; pq.prototype.show=function(){hnI(!0);WS.prototype.show.call(this)}; pq.prototype.hide=function(){hnI(!1);WS.prototype.hide.call(this)};g.y(kT,Mg);g.J=kT.prototype; g.J.init=function(N,z){Mg.prototype.init.call(this,N,z,{});if(z.durationMilliseconds){if(z.durationMilliseconds<0){g.kE(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+z.durationMilliseconds));return}this.W=z.durationMilliseconds}else this.W=this.V.qq();var v;if((v=z.previewText)==null||!v.text||g.ez(z.previewText.text))g.kE(Error("No text is returned for AdPreview."));else{this.G=z.previewText;z.previewText.isTemplated||g.YS(this.Z,z.previewText.text);var R; if(((R=this.api.getVideoData(1))==null?0:R.oB)&&z.previewImage){var C,Z;(N=((Z=nS(((C=z.previewImage)==null?void 0:C.sources)||[],52,!1))==null?void 0:Z.url)||"")&&N.length?(this.previewImage=new g.lG({K:"img",U:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",N),g.b(this,this.previewImage),this.previewImage.Nd(this.element)):g.kE(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.J.clear=function(){this.hide()}; g.J.hide=function(){N2(this);Mg.prototype.hide.call(this)}; g.J.show=function(){wN(this);Mg.prototype.show.call(this)}; g.J.hk=function(){this.hide()}; g.J.Y3=function(){if(this.V){var N=this.V.getProgressState();if(N!=null&&N.current)if(N=1E3*N.current,N>=this.W)this.transition.hide();else{var z;if((z=this.G)==null?0:z.isTemplated)if(z=Math.max(0,Math.ceil((this.W-N)/1E3)),z!==this.N){var v,R;(N=(v=this.G)==null?void 0:(R=v.text)==null?void 0:R.replace("{TIME_REMAINING}",String(z)))&&g.YS(this.Z,N);this.N=z}}}};g.y(PI,WS); PI.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});var v,R;if((N=((R=nS(((v=z.image)==null?void 0:v.sources)||[],HEf(z),!0))==null?void 0:R.url)||"")&&N.length){v=this.e8("ytp-ad-avatar");v.src=N;var C,Z;if(R=(C=z.interaction)==null?void 0:(Z=C.accessibility)==null?void 0:Z.label)v.alt=R;switch(z.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(z.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.kE(Error("Failed to get imageUrl in AdAvatar."))}; PI.prototype.clear=function(){this.hide()}; PI.prototype.onClick=function(N){WS.prototype.onClick.call(this,N)};g.y(Vk,WS); Vk.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});var v;N=(v=z.label)==null?void 0:v.content;if((v=N!=null&&!g.ez(N))||z.iconImage){v&&(this.buttonText=new g.lG({K:"span",U:"ytp-ad-button-vm__text",OT:N}),g.b(this,this.buttonText),this.buttonText.Nd(this.element));var R,C,Z=((R=z.interaction)==null?0:(C=R.accessibility)==null?0:C.label)||v?N:"";Z&&XQ(this.element,Z+" This link opens in new tab");bk(this.element);if(z.iconImage){R=void 0;if(z.iconImage){a:{C=z.iconImage;if(C.sources)for(C= g.f(C.sources),N=C.next();!N.done;N=C.next())if(N=N.value,Z=void 0,(Z=N.clientResource)==null?0:Z.imageName){C=N;break a}C=void 0}if(C){var Y;R={iconType:(Y=C.clientResource)==null?void 0:Y.imageName}}}Y=gN(R,!1,this.W);Y!=null&&(this.buttonIcon=new g.lG({K:"span",U:"ytp-ad-button-vm__icon",j:[Y]}),g.b(this,this.buttonIcon),z.iconLeading?(Rz(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):v?(this.buttonIcon.Nd(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Nd(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(z.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.V?"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(z.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.PN(Error("AdButton does not have label or an icon."))}; Vk.prototype.clear=function(){this.hide()}; Vk.prototype.onClick=function(N){WS.prototype.onClick.call(this,N)};g.y(oqu,Mg);g.J=oqu.prototype; g.J.init=function(N,z){Mg.prototype.init.call(this,N,z,{});this.api.D().X("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.e8("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"),Rz(this.e8("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(N=g.t(z.avatar,Oh)){var v=z.headline;if(v){var R=z.description;if(R){var C=g.t(z.button,XN);C?(this.adAvatar.init(Yt("ad-avatar"),N),this.headline.init(Yt("ad-simple-attributed-string"),new $J(v)),this.description.init(Yt("ad-simple-attributed-string"),new $J(R)),v.content&&v.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(Yt("ad-button"),C),this.startMilliseconds=z.startMs||0,this.api.IQ()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Un.bind(this)),wN(this)):g.kE(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kE(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kE(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kE(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.J.Y3=function(){if(this.V){var N=this.V.getProgressState();N&&N.current&&1E3*N.current>=this.startMilliseconds&&(N2(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.J.hk=function(){this.clear()}; g.J.onClick=function(N){this.api.pauseVideo();Mg.prototype.onClick.call(this,N)}; g.J.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Un.bind(this))}; g.J.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Mg.prototype.show.call(this)}; g.J.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Mg.prototype.hide.call(this)}; g.J.Un=function(N){N==="hidden"?this.show():this.hide()};g.y(SO,WS);g.J=SO.prototype; g.J.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(!z.label||g.ez(z.label))g.kE(Error("No label is returned for SkipAdButton."));else if(g.YS(this.N,z.label),N=gN({iconType:"SKIP_NEXT_NEW"}),N==null)g.kE(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.lG({K:"span",U:"ytp-skip-ad-button__icon",j:[N]}),g.b(this,this.Z),this.Z.Nd(this.element),this.api.D().experiments.j8("enable_skip_to_next_messaging")&&(z=g.yp(z.targetId)))this.W=!0,this.element.setAttribute("data-tooltip-target-id",z), this.element.setAttribute("data-tooltip-target-fixed","")}; g.J.onClick=function(N){N&&N.preventDefault();var z,v;r62(N,{contentCpn:(v=(z=this.api.getVideoData(1))==null?void 0:z.clientPlaybackNonce)!=null?v:""})===0?this.api.Qp("onAbnormalityDetected"):(WS.prototype.onClick.call(this,N),this.api.Qp("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.J.clear=function(){this.V.reset();this.hide()}; g.J.hide=function(){WS.prototype.hide.call(this)}; g.J.show=function(){this.V.start();WS.prototype.show.call(this);this.W&&this.api.D().experiments.j8("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.y(D67,Mg);g.J=D67.prototype; g.J.init=function(N,z){Mg.prototype.init.call(this,N,z,{});N=g.t(z.preskipState,lRw);var v;if((v=this.api.getVideoData())==null?0:v.isDaiEnabled()){if(!N){g.kE(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new kT(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.V);g.b(this,this.W);this.W.Nd(this.element);var R;(R=this.W)==null||R.init(Yt("preview-ad"),N);(v=this.W)!=null&&(v.transition.show(100),v.show())}(v=g.t(z.skippableState,GMm))?(z.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=z.skipOffsetMilliseconds:(g.PN(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(Yt("skip-button"),v),this.show()):g.kE(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.J.show=function(){wN(this);Mg.prototype.show.call(this)}; g.J.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.Z&&this.Z.hide();N2(this);Mg.prototype.hide.call(this)}; g.J.clear=function(){var N;(N=this.W)==null||N.clear();this.Z&&this.Z.clear();N2(this);Mg.prototype.hide.call(this)}; g.J.hk=function(){this.hide()}; g.J.Y3=function(){if(1E3*this.V.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var N;(N=this.W)!=null&&N.transition.hide();(N=this.Z)!=null&&(N.transition.show(),N.show())}};g.y(Eh,WS); Eh.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(z.label){var v;((v=z.label)==null?0:v.content)&&!g.ez(z.label.content)&&(this.linkText=new g.lG({K:"span",U:"ytp-visit-advertiser-link__text",OT:z.label.content}),g.b(this,this.linkText),this.linkText.Nd(this.element));var R,C;if((R=z.interaction)==null?0:(C=R.accessibility)==null?0:C.label)XQ(this.element,z.interaction.accessibility.label+" This link opens in new tab");else{var Z;((Z=z.label)==null?0:Z.content)&&!g.ez(z.label.content)&&XQ(this.element, z.label.content+" This link opens in new tab")}bk(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.kE(Error("No label found in VisitAdvertiserLink."))}; Eh.prototype.onClick=function(N){WS.prototype.onClick.call(this,N);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Eh.prototype.clear=function(){this.hide()};g.y(ht,WS); ht.prototype.init=function(N,z,v,R){WS.prototype.init.call(this,N,z,{});if(z.skipOrPreview){v=z.skipOrPreview;N=g.t(v,x8U);v=g.t(v,lRw);if(N)this.qD=new D67(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W),g.b(this,this.qD),this.qD.Nd(this.J),this.qD.init(Yt("skip-ad"),N);else{var C;v&&((C=this.api.getVideoData())==null?0:C.isDaiEnabled())&&(this.N=new kT(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W,1),g.b(this,this.N),this.N.Nd(this.J),this.N.init(Yt("ad-preview"), v),C=this.N,C.transition.show(100),C.show())}if(C=g.t(z.skipOrPreview,x8U))var Z=C.skipOffsetMilliseconds}z.playerAdCard&&(C=g.t(z.playerAdCard,WU$))&&(this.playerAdCard=new oqu(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W),g.b(this,this.playerAdCard),this.playerAdCard.Nd(this.Rd),this.playerAdCard.init(Yt("ad-avatar-lockup-card"),C));z.adBadgeRenderer&&((C=g.t(z.adBadgeRenderer,IF))?(this.Z=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0),g.b(this, this.Z),this.Z.Nd(this.V),this.Z.init(Yt("ad-badge"),C)):g.kE(Error("AdBadgeViewModel is not found in player overlay layout.")));z.adPodIndex&&(C=g.t(z.adPodIndex,aR7))&&(this.adPodIndex=new AX(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.adPodIndex),this.adPodIndex.Nd(this.V),this.adPodIndex.init(Yt("ad-pod-index"),C));z.adInfoRenderer&&((C=g.t(z.adInfoRenderer,Vy))?(this.adInfoButton=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.element, void 0,!0),g.b(this,this.adInfoButton),this.Z!==void 0?this.V.insertBefore(this.adInfoButton.element,this.Z.element.nextSibling):this.adInfoButton.Nd(this.V),this.adInfoButton.init(Yt("ad-info-hover-text-button"),C,this.macros)):g.PN(Error("AdInfoRenderer is not found in player overlay layout.")));var Y;C=(Y=this.api.getVideoData())==null?void 0:Y.isDaiEnabled();z.adDurationRemaining&&C&&(Y=g.t(z.adDurationRemaining,MVr))&&(this.adDurationRemaining=new nZ(this.api,this.layoutId,this.interactionLoggingClientData, this.yp,this.W,R.videoAdDurationSeconds,!0),g.b(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.V.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Nd(this.V),this.adDurationRemaining.init(Yt("ad-duration-remaining"),Y,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));z.visitAdvertiserLink&&(R=g.t(z.visitAdvertiserLink,J0w))&&(this.visitAdvertiserLink=new Eh(this.api,this.layoutId, this.interactionLoggingClientData,this.yp),g.b(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Nd(this.V),this.visitAdvertiserLink.init(Yt("visit-advertiser-link"),R));z.adDisclosureBanner&&(z=g.t(z.adDisclosureBanner,jPw))&&(this.adDisclosureBanner=new gO(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.adDisclosureBanner),this.adDisclosureBanner.Nd(this.Vp),this.adDisclosureBanner.init(Yt("ad-disclosure-banner"),z));this.G=new PW(this.api,this.W,Z,!0);g.b(this, this.G);g.PX(this.api,this.G.element,4);this.show()}; ht.prototype.clear=function(){this.hide()};g.y(bEu,WS);g.J=bEu.prototype; g.J.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(z!=null&&z.title)if(N=z.title)if(this.headline.init(Yt("ad-simple-attributed-string"),new $J(N)),N=g.t(z.moreInfoButton,XN)){if(this.moreInfoButton.init(Yt("ad-button"),N),z.descriptions)z.descriptions.length>0&&(N=z.descriptions[0])&&(this.V=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.V),this.V.Nd(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.V.init(Yt("ad-simple-attributed-string"), new $J(N))),z.descriptions.length>1&&(z=z.descriptions[1])&&(this.W=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.W),this.W.Nd(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(Yt("ad-simple-attributed-string"),new $J(z)))}else g.kE(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.kE(Error("No headline found in AdGridCardText."));else g.kE(Error("No headline found in AdGridCardText."))}; g.J.onClick=function(N){WS.prototype.onClick.call(this,N);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.J.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var N;(N=this.V)==null||N.clear();var z;(z=this.W)==null||z.clear()}; g.J.hide=function(){this.headline.hide();this.moreInfoButton.hide();var N;(N=this.V)==null||N.hide();var z;(z=this.W)==null||z.hide();WS.prototype.hide.call(this)}; g.J.show=function(){WS.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var N;(N=this.V)==null||N.show();var z;(z=this.W)==null||z.show()};g.y(HI,WS);HI.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(z!=null&&z.gridCards)if(z.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.kE(Error("Only single column style is currently supported in AdGridCardCollection."));else for(N=g.f(z.gridCards),z=N.next();!z.done;z=N.next()){if(z=g.t(z.value,KUw)){var v=new bEu(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,v);v.Nd(this.element);v.init(Yt("ad-grid-card-text"),z);this.V.push(v)}}else g.kE(Error("No grid cards found in AdGridCardCollection."))}; HI.prototype.show=function(){for(var N=g.f(this.V),z=N.next();!z.done;z=N.next())z.value.show();WS.prototype.show.call(this)}; HI.prototype.clear=function(){this.hide();for(var N=g.f(this.V),z=N.next();!z.done;z=N.next())z.value.clear()}; HI.prototype.hide=function(){for(var N=g.f(this.V),z=N.next();!z.done;z=N.next())z.value.hide();WS.prototype.hide.call(this)};g.y(oF,Mg);g.J=oF.prototype;g.J.init=function(N,z,v,R,C){C=C===void 0?0:C;Mg.prototype.init.call(this,N,z,v,R);this.playerProgressOffsetMs=C;wN(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Ed.bind(this));this.api.addEventListener("resize",this.F9.bind(this));this.api.IQ()?(this.W=!0,this.api.EN(!0),this.show()):this.hide()}; g.J.Y3=function(){if(this.V){var N=this.V.getProgressState();N&&N.current&&!this.W&&1E3*N.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.EN(!0),this.show())}}; g.J.hk=function(){this.W&&this.api.EN(!1);this.hide()}; g.J.clear=function(){this.api.EN(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ed.bind(this));this.api.removeEventListener("resize",this.F9.bind(this));N2(this);this.hide()}; g.J.hide=function(){tXI(!1);Mg.prototype.hide.call(this)}; g.J.show=function(){tXI(!0);Mg.prototype.show.call(this)};g.y(OE_,oF);g.J=OE_.prototype; g.J.init=function(N,z,v,R){if(z!=null&&z.adGridCardCollection)if(z!=null&&z.adButton){var C=Number(z.playerProgressOffsetMs||"0");isNaN(C)?oF.prototype.init.call(this,N,z,v,R):oF.prototype.init.call(this,N,z,v,R,C);N=z.headline;v=g.t(z.adAvatar,Oh);N&&v?(this.headline=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.headline),this.headline.Nd(this.e8("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Yt("ad-simple-attributed-string"),new $J(N)), this.adAvatar=new PI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.adAvatar),this.adAvatar.Nd(this.e8("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Yt("ad-avatar"),v)):this.N.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");N=g.t(z.adGridCardCollection,LUE);this.adGridCardCollection.init(Yt("ad-grid-card-collection"),N);z=g.t(z.adButton,XN);this.adButton.init(Yt("ad-button"),z); this.hide()}else g.kE(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.kE(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.J.onClick=function(N){(this.adButton&&g.ZQ(this.adButton.element,N.target)||this.adAvatar&&g.ZQ(this.adAvatar.element,N.target))&&this.api.pauseVideo();oF.prototype.onClick.call(this,N);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.J.F9=function(){}; g.J.clear=function(){this.hide();var N;(N=this.headline)==null||N.clear();var z;(z=this.adAvatar)==null||z.clear();this.adGridCardCollection.clear();this.adButton.clear();oF.prototype.clear.call(this)}; g.J.show=function(){var N;(N=this.headline)==null||N.show();var z;(z=this.adAvatar)==null||z.show();this.adGridCardCollection.show();this.adButton.show();oF.prototype.show.call(this)}; g.J.hide=function(){var N;(N=this.headline)==null||N.hide();var z;(z=this.adAvatar)==null||z.hide();this.adGridCardCollection.hide();this.adButton.hide();oF.prototype.hide.call(this)}; g.J.Ed=function(N){N==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):N==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):N==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.y(DV,WS); DV.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(z.attributes===void 0)g.kE(Error("No attributes found in AdDetailsLineViewModel."));else if(z.style===void 0)g.kE(Error("No style found in AdDetailsLineViewModel."));else{N=g.f(z.attributes);for(var v=N.next();!v.done;v=N.next())if(v=v.value,v.text!==void 0){v=v.text;var R=z.style,C=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,C);C.Nd(this.element);a:switch(R){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":R="ytp-ad-details-line__text--style-responsive"; break a;default:R="ytp-ad-details-line__text--style-standard"}C.element.classList.add(R);C.init(Yt("ad-simple-attributed-string"),new $J(v));this.V.push(C)}this.show()}}; DV.prototype.show=function(){this.V.forEach(function(N){N.show()}); WS.prototype.show.call(this)}; DV.prototype.clear=function(){this.hide()}; DV.prototype.hide=function(){this.V.forEach(function(N){N.hide()}); WS.prototype.hide.call(this)};g.y(b3,WS);b3.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});var v,R;(N=((R=nS(((v=z.image)==null?void 0:v.sources)||[]))==null?void 0:R.url)||"")&&N.length?(v=this.e8("ytp-image-background-image"),g.SB(v,"backgroundImage","url("+N+")"),z.blurLevel!==void 0&&g.SB(v,"filter","blur("+z.blurLevel+"px)"),z.gradient!==void 0&&(z=new g.X({K:"div",GU:["ytp-image-background--gradient-vertical"]}),g.b(this,z),z.Nd(this.element)),this.show()):g.kE(Error("Failed to get imageUrl in ImageBackground."))}; b3.prototype.clear=function(){this.hide()};g.y(Ie2,Mg);g.J=Ie2.prototype;g.J.init=function(N,z){Mg.prototype.init.call(this,N,z,{});g.SB(this.Z,"stroke-dasharray","0 "+this.W);this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){N2(this);Mg.prototype.hide.call(this)}; g.J.show=function(){wN(this);Mg.prototype.show.call(this)}; g.J.hk=function(){this.hide()}; g.J.Y3=function(){if(this.V){var N=this.V.getProgressState();N!=null&&N.current!=null&&g.SB(this.Z,"stroke-dasharray",N.current/N.seekableEnd*this.W+" "+this.W)}};g.y(tt,WS); tt.prototype.init=function(N,z){WS.prototype.init.call(this,N,z,{});if(rMu(z)){this.adAvatar=new PI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.adAvatar);this.adAvatar.Nd(this.e8("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Yt("ad-avatar"),g.t(z.adAvatar,Oh));this.headline=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.yp);g.b(this,this.headline);this.headline.Nd(this.e8("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(Yt("ad-simple-attributed-string"),new $J(z.headline));if(N=g.t(z.adDetailsLine,iIm))this.detailsLine=new DV(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.detailsLine),this.detailsLine.Nd(this.e8("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Yt("ad-details-line"),N);this.adButton=new Vk(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0);g.b(this,this.adButton); this.adButton.Nd(this.e8("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Yt("ad-button"),g.t(z.adButton,XN));this.adBadge=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,!0);g.b(this,this.adBadge);this.adBadge.Nd(this.N);this.adBadge.init(Yt("ad-badge"),g.t(z.adBadge,IF));this.adInfoButton=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.element,void 0,!0);g.b(this,this.adInfoButton);this.adInfoButton.Nd(this.N); this.adInfoButton.init(Yt("ad-info-hover-text-button"),g.t(z.adInfoRenderer,Vy),this.macros);if(N=g.t(z.skipAdButton,GMm))this.skipAdButton=new SO(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.skipAdButton),this.skipAdButton.Nd(this.element),this.skipAdButton.init(Yt("skip-button"),N);this.W=new sI(z.durationMilliseconds);g.b(this,this.W);if(N=g.t(z.countdownViewModel,eql))this.V=new Ie2(this.api,this.layoutId,this.interactionLoggingClientData,this.yp,this.W),g.b(this, this.V),this.V.Nd(this.e8("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.V.init(Yt("timed-pie-countdown"),N);if(z=g.t(z.imageBackground,QP7))this.imageBackground=new b3(this.api,this.layoutId,this.interactionLoggingClientData,this.yp),g.b(this,this.imageBackground),this.imageBackground.Nd(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Yt("image-background"), z);this.show();this.element.focus()}}; tt.prototype.clear=function(){g.Be(this.Z);this.hide()}; tt.prototype.show=function(){XYK(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();WS.prototype.show.call(this)}; tt.prototype.hide=function(){XYK(!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.V&&this.V.hide();this.imageBackground&&this.imageBackground.hide();WS.prototype.hide.call(this)};g.y(rt,g.jJ);g.J=rt.prototype;g.J.qq=function(){return 1E3*this.api.getDuration(this.Ix,!1)}; g.J.stop=function(){this.V&&this.JI.Kb(this.V)}; g.J.G4=function(){var N=this.api.getProgressState(this.Ix);this.W={seekableStart:N.seekableStart,seekableEnd:N.seekableEnd,current:this.api.getCurrentTime(this.Ix,!1)};this.publish("h")}; g.J.getProgressState=function(){return this.W}; g.J.xj=function(N){g.WW(N,2)&&this.publish("g")};var tY8="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(u3,tu); u3.prototype.N=function(N){var z=N.id,v=N.content,R=v.componentType;if(!tY8.includes(R))switch(N.actionType){case 1:N=this.api;var C=this.yp,Z=v.layoutId,Y=v.interactionLoggingClientData,Q=v instanceof Xg?v.cO:!1,L=v instanceof Xg||v instanceof fZ?v.Hy:!1;Y=Y===void 0?{}:Y;Q=Q===void 0?!1:Q;L=L===void 0?!1:L;switch(R){case "invideo-overlay":N=new LH_(N,Z,Y,C);break;case "player-overlay":N=new VW(N,Z,Y,C,new rt(N),L);break;case "player-overlay-layout":N=new ht(N,Z,Y,C,new rt(N));break;case "survey":N= new gt(N,Z,Y,C);break;case "ad-action-interstitial":N=new YKf(N,Z,Y,C,Q,L);break;case "video-interstitial-buttoned-centered":N=new tt(N,Z,Y,C);break;case "survey-interstitial":N=new pq(N,Z,Y,C);break;case "ad-message":N=new yMu(N,Z,Y,C,new rt(N,1));break;case "player-underlay":N=new d6_(N,Z,Y,C);break;case "display-underlay-text-grid-cards":N=new OE_(N,Z,Y,C,new rt(N));break;default:N=null}if(!N){g.PN(Error("No UI component returned from ComponentFactory for type: "+R));break}g.c$(this.W,z)?g.PN(Error("Ad UI component already registered: "+ z)):this.W[z]=N;N.bind(v);v instanceof Oj?this.Z?this.Z.append(N.Tw):g.PN(Error("Underlay view was not created but UnderlayRenderer was created")):this.B.append(N.Tw);break;case 2:z=uUx(this,N);if(z==null)break;z.bind(v);break;case 3:v=uUx(this,N),v!=null&&(g.Lc(v),g.c$(this.W,z)?(v=this.W,z in v&&delete v[z]):g.PN(Error("Ad UI component does not exist: "+z)))}}; u3.prototype.AO=function(){g.Kc(Object.values(this.W));this.W={};tu.prototype.AO.call(this)};g.y(cMu,g.GI);g.J=cMu.prototype;g.J.create=function(){try{qK2(this),this.load(),this.created=!0,qK2(this)}catch(N){LZ(N instanceof Error?N:String(N))}}; g.J.load=function(){try{N_r(this)}finally{ME(Tj(this.V).ZG)&&this.player.kA("ad",1)}}; g.J.destroy=function(){var N=this.player.getVideoData(1);this.V.V.fp.Fz(N&&N.clientPlaybackNonce||"");this.unload();this.created=!1}; g.J.unload=function(){g.GI.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(z){LZ(z instanceof Error?z:String(z))}if(this.W!=null){var N=this.W;this.W=null;N.dispose()}this.Z.reset()}; g.J.Do=function(){return!1}; g.J.getAdState=function(){return-1}; g.J.getOptions=function(){return Object.values(bt7)}; g.J.mA=function(N,z){z=z===void 0?{}:z;switch(N){case "replaceUrlMacros":return N=z,N.url?(z=GHO(this.player),Object.assign(z,N.sxo),N=g.pj(N.url,z)):N=null,N;case "onAboutThisAdPopupClosed":this.HS(z);break;case "executeCommand":N=z;N.command&&N.layoutId&&this.executeCommand(N);break;default:return null}}; g.J.L1=function(N){var z;return!((z=this.V.V.x8)==null||!z.get().L1(N))}; g.J.HS=function(N){N.isMuted&&KKO(Tj(this.V).XB,Tj(this.V).gm,N.layoutId);this.PT&&this.PT.HS()}; g.J.executeCommand=function(N){Tj(this.V).yp.executeCommand(N.command,N.layoutId)};g.cU("yt.player.Application.create",g.xo.create);g.cU("yt.player.Application.createAlternate",g.xo.create);gam(BN(),DAl);var OtP=g.qx("ytcsi.tick");OtP&&OtP("pe");g.Wb("ad",cMu);g.y(g.M7,g.H);g.M7.prototype.start=function(N,z,v){this.config={from:N,to:z,duration:v,startTime:(0,g.I)()};this.next()}; g.M7.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.M7.prototype.next=function(){if(this.config){var N=this.config,z=N.from,v=N.to,R=N.duration;N=N.startTime;var C=(0,g.I)()-N;N=this.V;R=hkm(N,C/R);if(R==0)N=N.L;else if(R==1)N=N.Y;else{C=Aj(N.L,N.B,R);var Z=Aj(N.B,N.G,R);N=Aj(N.G,N.Y,R);C=Aj(C,Z,R);Z=Aj(Z,N,R);N=Aj(C,Z,R)}N=g.UC(N,0,1);this.callback(z+(v-z)*N);N<1&&this.delay.start()}};g.y(g.wt,g.X);g.J=g.wt.prototype;g.J.hasSuggestions=function(){return this.suggestionData.length>0}; g.J.fz=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.J.show=function(){g.X.prototype.show.call(this);Y27(this)}; g.J.Yj=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.J.YV=function(){this.wW(this.api.n0().getPlayerSize())}; g.J.wW=function(N){var z=this.api.isEmbedsShortsMode()?.5625:16/9,v=this.api.PP();N=N.width-(v?112:58);v=Math.ceil(N/(v?320:192));var R=(N-v*8)/v;z=Math.floor(R/z);for(var C=g.f(this.V),Z=C.next();!Z.done;Z=C.next())Z=Z.value.e8("ytp-suggestion-image"),Z.style.width=R+"px",Z.style.height=z+"px";this.suggestions.element.style.height=z+"px";this.N=R;this.Y=z;this.containerWidth=N;this.columns=v;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Nl(this)}; g.J.onVideoDataChange=function(){var N=this.api.D(),z=g.h(this.api.getVideoData());this.G=z.hd?!1:N.N;this.suggestionData=z.suggestions?g.kK(z.suggestions,function(v){return v&&!v.playlistId}):[]; jv9(this);z.hd?this.title.update({title:g.WA("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:z.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}; g.J.scrollTo=function(N){N=g.UC(N,this.containerWidth-this.suggestionData.length*(this.N+8),0);this.L.start(this.scrollPosition,N,1E3);this.scrollPosition=N;g.Nl(this);Y27(this)};})(_yt_player);