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 K=["U","1969-12-31T19:00:57.000-05:00","length","set","Untrusted URL","url","startsWith","indexOf","toString","split","/initplayback","path","match","/api/manifest","/","","j","cmo=","n","prototype","clone","mn","---","slice","forEach","assign","Z","splice","cF","NN","pv","scheme","r","Wh","?","s",',;,"]\\}',"reverse","1969-12-31T22:16:13.000-01:45","Gz","1","youtube.player.web_20250728_22_RC00","/videoplayback","rr?[1-9].*\\.c\\.youtube\\.com$","fallback_count","\\.googlevideo\\.com$", "rr","join","push","\\.a1\\.googlevideo\\.com$","%3D","playerfallback","1970-01-01T06:16:21.000+06:15","&","1970-01-01T06:31:17.000+06:30","1970-01-01T11:45:29.000+11:45","/;{,","B","ZA","https://local","sp","undefined","cmo","fromCharCode","a1.googlevideo.com","get","//","local","cmo=pf",",","redirector.googlevideo.com","http://local","GT","www.youtube.com","3ZrG","pop","://","1969-12-31T09:23:12.000-01:15",":","=","fvip","unshift","index.m3u8","1970-01-01T07:30:16.000+07:30","replace","cmo=td", "file","/file/index.m3u8","signatureCipher","1970-01-01T07:15:55.000+07:15","ItKv4g8PzpEyp4BteH-_w8_","1969-12-31T22:03:09.000+03:15"],pU,xz_,$z1,bf,aJQ,v1x,cT1,hT,JTf,jI,I8,Mz,Wo,RN1,KxI,w_,EQ,dzT,yb,bUI,ZJ,G1,rTb,Nz,AT,Po,nU,uf,B_8,Vb,sV,lJ1,YQb,hNU,lZ,j81,IJI,Yt,MIf,Wxg,Iv,DzJ,Uzf,zy,HUT,OV,T_8,Q8f,gR,mz1,SQN,fJI,CfJ,VX,xr,Xo1,iUU,vD,BD,o1b,M3,WD,kr,DM,Uz,HD,wo_,Ti,QM,mU,E1b,g1J,fZ,ZU_,oJ,zi,N3,Ap,PD,q3,G1x,OUg,nZ,uu,eg,N_g,ATo,Pf1,qQb,eNU,Fs,p9,xY,a0,sW,cs,J4,pQb,du,ru,Bs,lO,L9,h4,jc,xEQ,I0,Mg, DL,aX8,sv1,vt8,UW,Td,QE,f9,C9,iO,o0,BRz,lX_,L$1,YVx,t4,hwQ,zd,wu,EW,jvN,yE,IXJ,W$b,OW,A4,n9,uO,VE,UEQ,DEf,SVJ,QvT,$k,vY,dI,iGb,tjI,otU,rI,lP,zwN,BY,MW,xk,Etb,wQ_,mB,Ua,pw,yOo,Sv,Cw,fw,gtb,iP,ZGo,tb,zL,wI,Ea,yU,gI,Zp,Oa,NW,nw,ev,FU,OGf,AON,NRJ,PZg,qVo,vq,cq,JI,ewU,RT,uO1,bN,rF,Bq,F$f,pDb,aMI,x31,sJg,Reg,lN,JpI,vrx,L$,YG,KU8,hI,d3b,jV,rpU,bZQ,BoU,lMI,kG,DS,LU_,Yzz,he8,UO,Hq,jJo,kiQ,T6,D3J,U3U,SzN,f$,m3Q,HZg,CuQ,or_,Xt,oT,z6,tI,tgg,wF,EO,yR,G6,OO,Nv,Pq,ZZ_,qv,GiN,eV,xg,Apb,sC,c3,Rp,Pu8,J7,qzg,nr8,K4, v3,d4,b3,ee8,r4,l3,Vgz,L4,Yg,h7,xgo,UC,$g8,aLx,s0_,vYb,DY,kg,Mx,FUb,ps_,c4I,RYQ,KnU,dgQ,QZ,me,Sr,b91,X$,op,t7,ze,r41,lLg,g4,Lnz,OC,Ge,Mc8,A7,Nx,kdI,Ug1,n4,P3,H98,er,u3,VZ,qx,pE,F$,$D,xD,Jj,TuJ,a4,vM,R4,Q0x,KE,mgg,dm,bw,LE,YD,hj,rm,lw,BM,I4,SWg,Ub,fLN,HM,Xsz,TM,i9f,QQ,cM,mO,ST,fE,tcT,CE,Xu,o4,tj,zM,wm,Eb,yQ,gm,Zi,Ob,GM,NC,Aj,PM,qC,nE,zYT,EYJ,uw,y41,gYo,Z9x,RV,KM,rp,O9b,BJ,A4f,ln,qWI,LM,Y2,hV,nY8,jP,eYz,IV,uwN,VcJ,Mi,Fno,WJ,k2,DT,pYo,HJ,TA,$WJ,SP,vkQ,xWz,fM,X9,oV,RlT,cbo,GA,Ni,KBN,bw8,rbz,AV,qi,nM, eP,un,VP,F9,LBI,YaI,hlT,Ip8,Mvx,WBb,xx,$x,kL8,aP,DW1,UWg,TIg,fpT,sT,CPQ,XYg,iwx,ok1,tvT,J1,zl_,KN,EkU,r3,BB,gkN,l$,LN,Yx,Zw1,GLU,IP,WB,Dz,UT,NIb,Abx,PPJ,fN,SL,mw,qaI,nk_,elb,CN,Xp,i$,VvU,ET,yV,pqU,xvI,$vJ,g3,Zz,aSN,sT1,GJ,vGI,cIb,JI1,RhN,PB,Nc,qc,nN,eL,K2I,dvz,b$8,u$,VV,rIJ,Fp,BFU,lST,L2N,p2,YOf,x6,$6,hh1,jTx,IS1,MVg,W2Q,k6Q,vS,cS,Jg,K2,Dxx,de,bY,Uxb,kef,RZ,H4U,re,BS,lY,M7,L2,T41,QpI,mxb,WS,fYg,k6,X3x,i4I,og1,tr8,zLo,w3z,Eg1,y7T,HS,Tv,Q7,Z4f,ggJ,Ge1,O48,SU,N4g,f2,A7f,P3J,C2,XB,oZ,qC_,tg,zv,ngg,we, EM,y7,ge,ZB,Gv,OM,N7,eLg,u$_,Vrx,Fef,Ag,pMf,$CT,xCf,q7,n2,s4U,aiN,Jj1,dC8,KOo,eU,bEJ,rjb,Bmb,LOI,lio,Yb1,uY,h_f,j4o,FB,Ii1,MTf,WON,kMN,p8,DCg,xX,UCU,$X,ai,Tm_,vV,Q4_,cV,JF,mCz,SbJ,Ri,dc,CwI,b_,fif,XMT,iE8,oD1,z_U,rc,wMx,L8,YX,yjb,gDf,OE_,NmU,hF,js,Ii,M$,WV,kX,Df,Ut,HV,TB,Qa,mY,Ss,nDb,qb8,e_Q,VT8,uu1,pJ1,Pwf,FOU,AjN,f8,C8,$if,aT1,sVo,ya,Zf,GB,XH,cV_,Ot,xiN,RZg,Kub,JVQ,N$,AF,PV,q$,diI,v28,bM_,n8,rVQ,BpU,lTb,LuJ,YpQ,ITU,MPQ,Wuo,kA_,es,u_,Dif,UiQ,QVg,miJ,Va,pv,fTU,xH,FH,XJT,Cnz,iMf,o2b,tPI,a2,sf,wJf, E2I,yVU,g2b,ZMb,GAx,OMb,Npb,AV1,PnJ,cL,JB,R2,Kv,d8,bR,qp8,u9I,VPI,FuN,xc1,pBf,$cf,lR,Lv,az8,sP1,vxf,YH,hB,ju,I2,Mw,WL,kH,Ds,c18,HL,RcT,QN,KwQ,dcU,ml,Su,fv,XC,Cv,bNI,B3f,iR,pN,jtz,Ef,lz1,Lwo,yN,YTI,w8,jP8,hc1,zh,g8,Zs,Iz1,ML1,WwJ,kJz,Gh,DcJ,Of,eZU,n2Q,Nw,AB,qw,nv,T3g,eu,uR,FC,QPx,mc_,pp,iNf,vm,fz8,XBQ,a6,$J,lJ,Lp,oxg,jl,tLf,I6,M0,zcN,ExT,gxU,fp,XW,N38,A1J,P$8,iJ,up1,mt,GJz,FwI,ecb,qTx,nxz,pSx,VLN,tY,Ey,$7z,aBx,sZf,v6x,cgg,gA,JgQ,GD,RKQ,b2T,rgI,Oy,lB_,YMf,LCQ,hK_,AY,np,FW,x5,$5,aA,s3,vg,MUz,WCJ,kvN, cg,Jh,pL,RA,KL,dw,D7z,$H,bE,U7x,Bg,QZg,lE,LL,SMx,m78,fBI,CYT,XSg,Y5,i2g,o6Q,tUg,hh,jK,wSI,g6I,Z2Q,IA,Ag8,Ne1,PYI,qMN,n6g,Mj,eKN,GvI,Wg,uBT,VUx,k5,pVN,x$o,$$1,afU,si_,U3,vXb,cFo,JFo,RGI,b81,KYf,Hg,Tj,QI,mk,SK,fL,CL,X4,BcJ,oA,iE,lf1,zj,hGQ,th,jiI,IfI,U$I,Ms8,WYg,kBg,D$_,ww,E3,yI,H8_,gw,ZO,Gj,O3,Nj,Ah,ffI,TcT,eK,StN,uE,m$x,nL,Pg,Qi1,qj,F4,XVJ,xf,pO,i8I,oXg,tsN,ck,JW,KO,EXg,RH,rg,yFo,Bk,zGo,GB1,O8N,NcN,Yf,hW,jR,AFo,IH,MF,Wk,kf,P_T,DC,Un,Hk,qt1,nX8,Tp,eGf,ygQ,Vs8,FY8,pLb,xw1,aso,uHN,s2Q,JBU,m1,fO,KlT, dwU,bvb,B8z,lsU,rB_,X3,j2o,hXQ,id,tW,Mu8,oH,WlU,wg,khx,En,gg,ZC,DwI,Uw1,ud,HvJ,F3,T8g,Q2T,RR,mw_,fsQ,Kt,CRT,XLx,wLI,ivJ,BG,ly,Lt,hu,jn,Ghz,IR,ML,WG,N8o,Um,AB1,PR1,HG,nHf,Q3,mm,Sn,ft,eXo,Ct,iy,oR,tu,z5,uCx,Vu1,Flf,Em,y3,gj,Zm,G5,Om,pmg,x08,$01,a9_,s61,vJ8,NL,cYz,V3,JY1,RjI,Ktf,FE,xL,$L,ak,cr,Ja,Rk,bpN,bU,rx,Br,rY_,BAI,lU,l9z,LtQ,YL,D0_,U0o,HpT,ha,TAJ,Q6x,f9T,Ik,XmU,CJT,ip_,tlJ,zjJ,kL,D8,wm_,U8,Hr,T0,QT,md,Si,f6,C6,Xj,iU,ok,ta,z0,wx,EJN,yYJ,gJJ,yT,O8,ZpU,qY,n6,ei,uU,VT,py,xE,AYf,$E,ay,si,qyb,PJN,GD1, Js,cZ,VlI,Ry,hs,lF,j$,Iy,pg8,WZ,sAJ,$jo,aOJ,chT,bLx,Jh_,KkT,dj_,Ftg,Dg,kE,Bw8,HZ,TS,Ql,lON,iF,Lk8,oy,ts,zS,Ei,Y38,gT,Zg,hW1,GS,Oi,IOQ,PZ,ny,e$,uF,Vl,Fr,pP,xz,$z,aQ,WkU,sU,JX,cb,Dj1,QAI,HLQ,Twz,mjU,S3J,CEN,Xgg,fO1,o5Q,dr,bo,lo,tKN,zWJ,Bb,LP,E5I,yhT,OLU,GjJ,IQ,Ml,Wb,kz,Dv,Ahb,PEU,CP,XK,q3o,n5b,eWQ,wr,EU,ye,u41,VK_,pkg,$F1,OU,aCb,Pb,Nl,eh,uo,FK,sHg,cR,Jx,Rb,KF,bM,rd,lM,K1I,dFb,Yl,bO8,rWx,jk,Bg_,lCI,Ib,MM,L11,YnN,jHT,Uj,MRU,W1T,kl,kpz,DFf,HO_,UFg,mA,ICg,QHg,mF_,ob,Xd,Snb,fCQ,tx,zb,Cdb,Xk1,y2,iOJ,ofx, tR1,zIz,NM,wkU,EfQ,yWN,gfo,ZOJ,Gp1,OOU,NgQ,PR,AWg,nF,qnT,nff,eIU,u3f,VRb,ek,$w,pGJ,am_,aF,sRI,cuf,F1Q,Juf,Rd1,KmJ,xLU,$L8,uM,V2,xw,vWJ,ph,Fd,dLT,btx,ruz,BjI,lmI,LmN,Mng,Ym8,RF,Kh,bV,DL1,Tj8,HtI,dU,lV,QRN,hQ,mL1,fmf,kw,SmN,yuT,Cyo,EWo,TI,gWU,Otz,Qo,HA,Zto,G5g,NjU,S6,Py8,qmb,nW1,edx,uEQ,Vnz,Fmx,Aux,xY1,$Yb,a81,vLx,skQ,JaT,iV,RET,oF,tQ,zI,Kd1,dYN,yo,gU,raI,b6o,Z2,BxI,Ldf,hEx,Y81,jkg,WdT,I8b,aj,c1,v1,k0b,s0,JJ,Rj,KX,dS,DY_,rS,H6U,LX,lC,hJ,j4,Ij,MQ,TxU,W1,DZ,Qk1,H1,QC,mQ,mYQ,S8z,f88,CU1,S4,CX,Xr8,XJ,iC, oj,oL8,tJ,zK,tix,E0,ZZ,gS,yC,GK,O0,ELg,Nxf,PUT,O6f,G0b,Aa1,P1,e4,ujf,q88,nLT,eEz,wrx,cs_,cp,vEg,K4T,sy_,AJ,Jq,pr,sq,Jsb,VC,gLo,yab,Z6b,nX,ag1,bA,L4o,r6,hmx,jy1,IgJ,lA,M$o,W4I,kSb,Uk_,HyI,hq,QyI,jJ,mkg,Sig,CFo,XZf,iyz,MS,oET,zm_,Wp,wZ8,ki,Dq,$l,Oyo,nEQ,SJ,urb,pbN,Cr,$lb,avo,sQN,G4,vzf,cX8,g6,UL1,Eq,Zq,yj,Xx,eJ,Vj,uA,pV,$$,RyT,aX,vF,cF,KDJ,dlo,KV,rX8,Brg,lvQ,BF,LDo,YUb,hyT,jQ1,Ivg,Mh8,WD8,lx,kWJ,LV,hv,DlI,Ul8,HP1,TrQ,QQT,je,IX,mlz,SU8,fvT,CoT,Xbg,iPx,ozN,thN,DE,U6,HF,zyJ,Tn,wbx,mh,yXN,EzT,fV,CV,XT, ix,gzN,oX,tv,ZPb,GW1,zn,wN,Pog,OP1,AXf,Nrg,E6,yk,gN,qUf,nz1,eyb,ZE,VhI,xMI,pRU,Gn,O6,Np,Av,PF,nV,ee,ux,Vk,FT,p5,$M1,aHI,sb_,xI,$I,ar,sE,cC,Rr,Jx1,cxN,dB,Rsf,b8,rB,BC,l8,L5,jG,Ir,Me,WC,kI,D5,UE,HC,bFb,TN,Q4,mP,rx1,lHg,XA,LAo,i8,or,jb1,IHT,MkN,kbU,UMQ,gB,HFo,GN,Z5,mMT,SjI,fH1,Ne,Az,XRx,qe,n5,eG,u8,olQ,V4,FA,pb,tkJ,x8,iFI,$8,ae,wRN,zsJ,s_,va,ca,JZ,Kb,yxg,glg,bs,rG,ls,Lb,ZFU,Ba,Ndx,AxI,PMb,qjg,nlJ,esb,udo,hZ,Y8,OF8,pAU,jb,$HU,a21,Dy,sFN,Mq,Wa,vwN,U_,JQJ,K8Q,Ha,T3,dHb,Qd,rQI,mZ,jFN,YLb,BU_,L81,l2b,fb, Cb,X_,is,oe,tZ,z3,E_,M6I,DHU,Zy,Spb,G3,UHN,QFQ,Nq,nb,AZ,qq,Pa,f2b,SLb,mHJ,CVo,eb,XAN,zBU,us,F_,Ew1,pu,x3,$3,ax,yQJ,gwI,s4,v$,c$,ZhU,GI8,Rx,rh,B$,lI,Lu,Y3,ht,Oh_,jQ,Ix,Mm,W$,k3,Da,U4,NUI,AQT,H$,TY,Q$,E4,y$,gh,PVQ,qLQ,Za,At,uvN,V6_,P$,qm,pq,p1z,aD,sk,xQQ,Jo,$Qf,sjx,aZf,vZN,cJo,JJJ,R1o,KQ1,dQo,rJ1,bXU,BSJ,Y0I,jjf,LQ1,IZ1,M4x,kKf,Kq,db,UQz,DQN,bW,rb,BT,TSQ,lW,Lq,Yn,mQx,S0Q,ho,Qjo,j1,X1z,ID,Ms,WT,kn,DD,Uk,HT,TE,QJ,mJ,S1,fq,Cq,XI,iW,oD,to,zE,wb,Ek,yJ,gb,ZD,GE,Ok,Ns,Ao,PT,qs,nq,e1,uW,VJ,FI,pm,xM,$M,ao,s7, v8,c8,J6,Ro,Km,dy,b1,ry,B8,l1,Lm,YM,h6,j_,Io,MV,W8,kM,Dx,U7,H8,Tr,Q6,mT,S_,fm,Cm,XP,i1,oo,t6,zr,E7,y6,oZg,gy,e,Zx,wy,Gr,O7,NV,z1U,P8,EZb,A6,yJx,nm,gZ_,u1,qV,V6,FP,pj,$e,GKU,OX1,NSN,AJT,br,rZ,Jw,BE,q01,nZg,e18,uJ_,ZXg,V4z,xe,FQ1,ppx,Lj,MI,Ye,so,xSI,aU,lr,hw,WE,aq1,vE,cE,IU,j0,s1_,ke,Dt,Uo,HE,vi_,TF,Qw,mj,S0,fj,cqf,Jqo,K_1,dSU,oU,tw,rqo,zF,Yqb,j1T,MJz,W_8,Eo,DSz,USg,NI,Hrb,Aw,PE,qI,nj,e0,ur,T6J,mSz,SqN,Q1Q,fqQ,CA1,x0,$0,sc,cn,JE,RC,Xpg,Kx,irI,dK,bc,aC,lc,Lx,Y0,hE,oif,Bn,zDo,IC,wpJ,Eio,M6,yqJ,Wn,k0, giU,Zrx,Dk,G4x,Orf,Uc,N6Q,AqJ,PAN,qqo,Hn,Tw,niU,eD1,Q9,mK,Sa,ux8,fx,Cx,Xc,ic,VJz,oC,tE,F_I,zw,pFT,wK,xpQ,$pf,aEQ,sXQ,v$g,cvg,Ec,Jvo,Rax,Kh1,y9,dpb,gK,bVz,Zk,rvg,Gw,BN1,lE1,Oc,nx,LhU,ea,uc,V9,Fc,Y61,pi,xc,$c,haQ,jX8,sB,vh,MeI,ch,Who,kn_,IEN,Dp1,Upo,HVf,RI,TN8,Ki,bh,rD,QXx,Bh,lh,Yc,mpb,hD,jw,S6I,MK,Dc,Wh,QB,m3,fEx,Sw,CxN,Ci,XN,ih,XFU,tD,iV1,wD,EB,yB,Hh,gD,Gl,OB,o$I,NK,AD,Ph,teo,qK,ni,ew,uh,VB,FN,x_,$_,aL,se,zaT,wFo,E$N,RL,vN,Ka,dM,yvx,g$x,ZVT,bl,rM,BN,GnQ,OVf,JL,NNQ,Avb,ll,Pxx,La,Y_,jA,IL,Mf,WN,k_, Ue,HN,Qm,m0,SA,fa,Tk,eaI,uTT,Xl,il,oL,VeQ,zk,pC1,wM,Ee,xe_,ym,ZA,Oe,$eI,Gk,Nf,AL,PN,a5_,eA,vI1,czf,Jz8,Vm,ul,Rvo,KPQ,def,Fl,rzQ,tL,b5U,BBU,pK,l5I,xb,LPo,$b,YEb,hv_,jr1,I51,MGx,a_,kNb,WP8,sR,JK,De1,R_,Ueb,KK,H5f,TBf,dP,Qrg,meI,SEQ,f5f,b6,C81,rP,i5g,l6,LK,tGU,oIf,zv1,wCT,EIQ,hK,jH,I_,yz1,gI1,Z58,GNg,O5U,NBg,Azx,P8Q,qEf,nII,WK,kb,evU,uAU,DP,UR,VGg,HK,T$,m5,FPo,SH,fK,CK,paN,Xe,xqT,i6,$qI,o_,ayo,seJ,tK,v8o,cZx,JZ_,z$,wP,ER,yh,gP,RR_,KZQ,ZP,G$,OR,dqU,N5,AK,PK,q5,nK,bbo,rZg,eH,u6,BGN,Vh,Fe,pn,xv,RDb,ly1, LZ1,$v,Y__,hRb,jef,aG,sP,vP,cP,JR,RG,Kn,dn,bb,rn,BP,IyQ,MbI,Q8,mE,k3_,St,zZ,Cn,y8,mq1,ibI,S_o,o8f,zR1,wax,tbo,E81,yZg,g8I,V8,ObJ,PsN,AZo,n81,eRo,u_U,$C,aK,FZJ,p$I,sx_,s5,v3T,xm1,vd,cd,Jm,RK,Jtb,dmg,RVx,Bhg,MQQ,Ia1,lax,WNI,dL,Y48,LN8,Umf,QxN,ThT,CIo,mmI,bL,rL,zVz,LQ,w$1,NhJ,Ou_,GYJ,ZuU,ytg,q4_,PI8,g3I,FNf,VQo,pTg,Mu,aDI,xsg,$s8,E3U,sDT,vnN,YC,jy,eVI,n31,uX1,coo,hm,AtN,RS8,dsb,ro_,lDf,hSJ,jD1,M11,WJx,Dsb,kET,mso,Hqg,Usx,SkU,XT1,iqU,on_,t1I,CQ,pQ,En1,zS1,oK,wL,E5,Zqx,GE1,gno,yH,Oqf,gL,Z3,Vw,GH,G38,O5, Nu,Am,Nb1,AoU,Pd,PWJ,qk_,nnJ,qu,nQ,ey,uL,VH,FL,pz,xQ,$Q,eSb,uIg,as,V1I,vc,cK,cc,J2,xVT,FJQ,Rs,$VN,axb,so1,Kz,p8Q,dq,vMx,bp,c6o,J6_,q_1,RFN,rq,FR,ir,Wd,KTz,dVx,lp,tQT,Bd,bmg,XL,iL,D3,kC,KQ,Hd,LJN,IDg,U5,X$1,fDQ,r6Q,kYb,hV8,Lz,yoU,xC,lxb,ByT,cto,Ykx,LT1,CWT,Sy,iu1,o31,Hu1,Bbg,bqI,rtI,KNU,aaf,$mJ,Vbg,JoJ,jxx,Tbz,S48,faT,QH,mc,TH,QDx,KJf,hFb,Y7z,YQ,h2,jx,Is,M8,Wc,joT,Uw,Hc,Ta,mo,Sx,Ix1,Qx,fz,Cz,M_Q,Xk,ip,os,za,kro,DVz,wq,Ew,yx,gq,Zn,Ga,Ow,N8,QoN,Pc,mVx,A2,S7b,Hmx,TyQ,fxg,q8,nz,C1o,X81,ex,im_,xl,t_g,oMg, w88,y6o,gMf,EMN,Om1,NyJ,q71,eFI,uP_,nMQ,sY,cX,vX,V_1,FTU,xIo,pE8,$9,$IN,atU,sUx,vez,aB,Kjz,dIf,bj_,RCI,Jwz,cwo,rw8,JS,A6b,BZg,P1f,lt1,LjI,jUI,Yo8,RB,hCf,Wjo,Itz,M0J,DIJ,kFQ,UIo,HjT,d9,mI1,TZb,Sox,QUo,fto,Cr1,XE1,ij8,oeU,t0x,zCQ,wEN,EeT,ywx,geg,Zjg,bH,OjT,NZT,AwI,GF8,PrT,nex,r9,BX,eCI,uR_,lH,L1,V0I,Fjb,pnf,x6Q,hS,$6g,ak_,IB,Mt,v0J,cE_,JE1,d6_,k9,HX,QK,bxx,m7,S3,f1,LKI,hQf,YcJ,Ik1,m6Q,WKQ,EY,XS,jCg,lk1,BK8,rEx,w9,iH,zT,OY,Nt,Ccg,AS,PX,GT,ta8,Xn8,ix_,zQx,qt,n1,E0g,uH,VK,FS,p0,xo,$o,a7,yE1,g0g,s$,vf, J$,GwI,Ox1,cf,NKf,qcI,n0f,R7,eQb,b5,uc8,r0,l5,Vaf,Bf,L0,FK8,h$,xKJ,$K1,I7,MN,Hf,sIN,ko,TX,mS,vcx,f0,U$,QL,cDQ,C0,JDI,X7,Rox,Wf,Do,ac8,Sz,i5,K3I,dK1,o7,biI,t$,zX,w0,E$,rDo,g0,yL,Zo,GX,BDb,lc_,O$,NN,A$,Pf,qN,L3f,n0,ez,YBz,ho1,u5,VL,F7,IcT,jIb,pA,Mwg,W3o,kl1,xU,DKb,UKf,HiQ,TDJ,QIx,$U,aE,sl,vz,mKN,SB1,Jk,fcU,RE,KA,ChJ,Xhx,dC,iif,ocI,EcN,yDU,twN,zoI,whI,rC,Bz,l4,LA,gcU,Zif,GlU,Oif,hk,Phb,jB,ncb,uN1,eoJ,D4,kU,F31,pNU,xfx,$fT,Ul,aAQ,TR,Qi,sL1,cLz,JLQ,SB,i4,bax,TKQ,oB,BMo,lAU,L0T,YeT,h2x,C1,fA,zR,wC,MAN, W0J,kkQ,El,TM8,Dfx,Ufo,mfx,SeJ,yi,fAU,QLT,ClJ,gC,Z4,GR,XNT,ia_,Ol,NG,o_g,Ak,tA8,Pz,oE,u4,z2N,QCz,MaQ,Vi,F0,xA,$A,aa,sd,v0,pH,Ra,E_I,d5,g_g,bT,Gkz,Za_,yLJ,OaU,NMI,AL8,LH,Pl1,qez,e2f,YA,fkQ,hc,VAx,pK_,yK,x5_,$5_,tS,kwQ,U68,Hx_,ul8,Ia,MD,kA,aPT,s_1,vbT,cKN,JKb,RUT,K5I,rK_,BPx,bKo,lP8,L5x,YRQ,hUz,DG,j_I,T8,IP1,MHo,W5J,Q_,k$1,SF,fH,CH,Xn,iT,D5I,oa,tc,U5o,HKT,z8,w5,Ed,y_,g5,ZG,Q_J,TPI,G8,m5b,fPN,Od,C6I,SRU,Kk,JC,dX,rX,Bx,B0,XK1,gbI,Kj,Rf,hC,NP1,P6x,uT,kO,eF,Dw,TG,nbf,cx,Qp,F5T,mV,SM,pPb,x2Q,$2T,aUN,fk, sGT,vvT,Ck,cR1,bn1,d2g,JRJ,KEg,R$8,XG,rRT,im,Bn1,lU_,YPN,h$x,jGo,IUQ,U2z,EF,yp,QGo,gX,Zw,m2z,CbU,XPT,inQ,ovU,GG,OF,N_,AC,ttQ,wPJ,Ev8,xh,qPz,GZf,OnU,e$f,$h,uZ1,FEo,Vtz,pdQ,sg,JM,xuz,ah,Rh,KT,$ug,sKT,B_,Yh,W_,Ug,jKJ,I3_,SY,mr,CT,Xz,Myf,kH_,Dug,oh,iq,Uug,TLQ,QKf,S51,wY,mu8,f3Q,CLz,yF,gY,iQ1,rY,zV,duf,a3Q,l31,P_,fT,HQQ,p_,kh,$u,aN,AmU,q5J,PL_,Db,H_,nCQ,cw,Je,uL1,VyI,K_,dz,Fc1,TV,bX,Wc_,Bw,ECf,lX,Rxb,Jmf,vCx,L_,x8b,he,d8T,KoI,r2f,Bq_,Mh,ku,DF,Ww,Hw,TQ,lnU,Qy,Ywz,mH,jso,C_,hHx,X6,iX,kaT,oN,HzT,Tqo,wz,Qsx, fnb,e9,Vy,F6,$K,CpN,aW,sN,RW,KI,d1,ba,XcN,r1,By,zHT,la,LI,wc8,EQN,YK,hU,y21,gQQ,Zzz,GaI,jZ,IW,OzT,Nq8,A2_,D6,UN,Qv,mz,PpJ,qwU,SZ,fI,CI,Xa,nQQ,eHg,ia,ukg,Vx1,oW,pX_,Fof,xtN,tU,aW_,$tN,sBf,zm,w1,v91,JS_,R88,EN,yv,g1,K7z,b11,Z6,rSg,ON,B91,lWU,Gm,Na,AU,Py,h8N,IWJ,L7T,jBT,M3f,YY_,W7I,kT1,qa,Dt8,H18,mtf,fWN,SYQ,a5,xj,c4,XXg,JP,R5,Ks,o9b,dv,t38,i1T,bz,E91,rv,B4,ySg,lz,g9T,Znz,PbI,GTx,Z1b,N98,O1T,ASf,Ls,Yj,hP,jf,PHb,e8Q,W4,kj,DV,V3b,uSU,I5,F7z,pf8,xNU,aoI,Ux,r$f,j7b,Sf,Io1,eZ,WS8,kXo,DNJ,UNg,H0T,Cs,T0I,XY, iz,o5,Q71,wv,mN_,S$g,Ex,y5,foT,C5_,Xfx,i01,oof,gv,zP,tzU,zTb,ZV,Eoz,y$b,gog,GP,Z0Q,GXI,O0T,N0x,A$z,P5f,q$1,no_,eTg,u7U,Ox,FS1,No,xGb,pzg,a4b,$GJ,vUJ,ns,Vzx,AP,ef,ckb,Jk8,uz,RrT,V5,FY,pR,$y,a$,KMQ,sH,dGU,c2,LMQ,jEU,I4x,MBQ,WMo,KR,kRx,hr1,l4b,DGx,Jl,UG8,TC_,v2,R$,rkb,BCJ,dV,QEQ,mGo,YlQ,bA8,SlN,rV,f41,B2,lQ,C4Q,LR,oUb,Xzg,iAQ,Yy,tB_,hl,jC,I$,M9,zrg,wz_,EUx,W2,gU_,ZAg,ky,GR8,D_,UH,OAb,NCU,AkN,P4N,qlg,nUQ,p01,u0U,T9Q,Tz,$DJ,aGJ,VBb,FMQ,erJ,SC,Rko,mR,QO,xDo,dD1,Jc1,cco,vAb,saT,CR,bHT,nI,Xh,iQ,o$,rc1,tl, B5x,zz,lGQ,v4,LgQ,wV,Vv,ps,UtN,gV,Gz,jaJ,IGQ,OH,Al,Z_,yO,P2,EH,YdQ,hk1,q9,MFf,Wg1,qo,sEo,ua,nR,k8z,N9,DDo,UD1,HH1,T5b,eC,uQ,Qaf,mDg,Sd_,fGx,CTQ,HAU,mI,Fh,pl,VO,iHT,z81,wXN,xm,oAU,tFf,zkI,w01,$m,EA8,am,yc1,ZH1,sr,G8g,OHQ,Jy,N58,cW,rl,PTf,Aco,unI,nAf,VFx,Fg1,qd8,ekU,pxz,BW,x_8,awx,$_N,lG,wf1,sf1,vO1,cCx,JCg,Rbf,d_N,bkT,rCx,BXU,lwo,KVb,Ll,n9Q,Ym,hbb,hy,YFI,jfQ,Iwf,qYx,Mo,MM_,WV_,zu,m_T,QfJ,Z7,SFJ,TXN,iko,oOf,tMg,zb_,wxo,EOg,yCg,gO8,Zk1,GGf,OkI,NXg,ACI,PmI,Ny,ty,nON,eb_,Gu,VMf,qFz,Or,FVI,p__,abx,cMJ, sho,PW,JM1,qy,xnb,Ay,nl,$n1,uG,dnx,rMJ,bTQ,BYz,Kr1,lbx,LrJ,Ygb,hi_,jhN,MYN,Wrg,IbU,DnN,HTo,Ung,Sg1,QhQ,kVg,TYT,fbQ,mng,Cqg,X_x,iTf,zi8,tYT,oh1,VS,w_N,EhN,yMx,gho,ZTI,OT1,AMf,Pqg,qgQ,nhI,eiU,Fi,uzf,VYf,pw8,xh1,au,aF1,vv,vuN,ce1,JeJ,RPT,dho,KHx,BzT,lFb,LH_,cv,YsN,b_8,rex,jNb,IFQ,M91,WHx,kQQ,Dhf,P4,Uhb,H_I,Tz_,mhQ,QN8,Sso,CXg,XwI,fFz,e7,Rm,ou1,t9g,zPI,O__,yeT,gu8,Z_8,Nz_,PXQ,Kgf,Ru,EuU,wwx,AeU,sx,GQ1,H2,Fa,vh1,V9T,u6x,FHQ,pyU,$a_,a6Q,hPb,bG,Kl,nuJ,sW1,ePz,vK1,vW,cU1,gAz,RiI,qsI,dl,bS,r7,Yr_,Bv,hJU,jmg, I71,M7U,Wfx,DyT,Uy1,myN,Hl8,QmN,Srx,Le,ilT,CG1,XWb,zJ1,wWb,Emf,hG,yyf,lS,gm1,t7x,f7f,jW,ZlT,TlT,Guo,Iu,Nlg,OlN,PGf,qrQ,nmg,Ayo,Mr,V7x,uib,xrU,pvz,Ff8,$rN,aIo,Wv,su8,vTo,JGf,R0z,cGN,KGU,lI1,be_,rG1,B71,LGJ,YZJ,h0o,II1,jux,MWQ,WGT,kT,kxg,Dro,HeI,UrQ,T71,Qub,SZQ,fIU,XvN,oTb,CSb,tWQ,z0z,wvg,mrb,ETb,iez,UZ,yG8,gT8,ZeQ,GxU,Tx,N7x,Oez,AGg,PS1,qZU,ubT,nTQ,plz,QW,e08,xAT,mG,c8x,$AU,fe,Ce,J8b,SW,Rtg,Xb,bff,dAg,sn8,vsb,r8U,B$f,lh_,ah1,LiI,iS,YJ1,Kib,sNo,Hv,jn_,Ihx,Mdb,Wio,k2Q,DAJ,UAg,Hff,T$1,Qng,SJo,fho,C9f, mAx,XlQ,if8,osT,tdb,ztf,wlN,gsx,y8Q,Eso,ZfQ,zx,n$N,G2J,OfU,w7,N$Q,A8I,yW,ns1,et1,g7,VdU,Fib,uqU,qJ1,ZI,EZ,P9I,Nr,Gx,peI,AG,OZ,sSQ,JAQ,K6g,dTf,rA1,$T1,RAx,BHg,aQx,lQg,L6N,Yug,uS,Pv,IQJ,MDb,hAz,ne,kfQ,DT1,cAI,vNU,W6U,UTQ,b3N,jSo,xT_,VW,Fb,pf,H38,xs,CeI,mT8,Xeb,Suf,QSf,i3o,THJ,zA1,oNz,$s,weI,yAJ,Z3T,GfI,AAx,cl,PeN,O3N,eW,eAo,uF1,b9,uG1,an,VDN,F6g,xBg,pOz,$BT,nN1,Rn,ajN,sON,vPb,JrQ,crg,i_1,J8,RzQ,dBg,KWI,rro,bSx,gN_,ljg,BkQ,Kf,sJ,LW1,Bl,Y9x,hzb,jOT,IjT,MoN,r$,NH8,JUN,qr,WW_,l9,ktI,DBz,UB1,HS8,TkQ,QOf, Lf,Ys,fjg,C0f,XO1,mB1,S91,h8,zzT,oPb,too,wOo,EP8,jd,yrg,gPf,ZS1,In,Gtz,Nkx,Ar1,P0U,MA,OSQ,Wl,ks,q9J,nPI,ezQ,u1_,Vox,FWo,p9f,Hl,Dh,UJ,xZb,T2,$ZN,a1I,szx,cdf,vqU,Xq,RgI,Kvf,Jd1,dZJ,i9,bWo,on,rd_,t8,Bi_,l11,hgx,MXx,LvN,jzo,z2,YDo,I1T,Wv_,kg1,DZ8,UZ8,EJ,HWU,Zh,yr,Ti1,G2,OJ,mZ1,SDx,A8,Pl,f1x,NA,qA,X9I,Ckf,ed,u9,Vr,tXI,iWx,oqJ,Fq,zg1,gqo,Eqg,w9b,yd1,p3,GgN,Pk8,qDx,xN,nqN,OWU,egJ,$N,Nix,Fvf,aS,ve,p5Q,xbb,$bo,a0Q,swz,RS,J3T,RuU,Ky_,K3,c3g,r3o,JA,dH,be,vd1,LyT,l0g,YN,YS1,jwb,MSN,huQ,hA,le,IS,L3,I0I,jD,Wyb, MT,kcg,Dbb,Ubx,We,kN,HYf,TtT,Qwz,mbN,SSg,f0N,C7N,odo,X5g,tS1,zuf,y3_,gdU,qSQ,ie,u5U,pH_,Fyg,VSg,A3b,P7Q,ZY8,OYb,ndN,oS,tA,$d1,GQ,In8,a$z,wH,y1,sdT,vpb,Gc8,eu1,J08,R5b,Kq_,gH,qT,bJb,r01,B2b,n3,l$I,YXN,Lq8,h5b,eD,ue,jdf,Wqf,ksz,pS,Mp8,Ddx,Ud8,I$Q,aO,HJo,T2_,$P,Qdx,mdQ,SXQ,f$_,XHQ,C2J,tp1,z51,iJ8,EpN,y0g,opI,cO,Jr,gpQ,OJ1,RO,GsI,ZJz,N2x,P2U,A0b,qXx,KS,np1,e58,uoo,Vp8,FqN,p71,xP1,adJ,$P_,s3U,vSU,cf8,Jf1,RM1,dPf,b0,dk,rk,rff,BWb,KF_,j3_,Id1,MOz,DPJ,kUT,WFx,UPo,Hgo,BO,l0,TW1,Q3J,mP1,SGJ,CKI,X7x,YP,igU, LS,jo,fd1,IO,oSg,tOo,zM1,w7_,ESb,MB,yfU,gSQ,Og1,WO,NWg,GUJ,kP,Dj,U9,PK1,qGI,nS_,Afx,uV_,eM_,VO_,HO,FFz,pio,$RT,va1,xRx,aRx,Tt,cHb,R9U,KXo,b7z,rHT,QA,mW,BE1,JH_,Y2x,LX_,lR8,So,fS,jlU,h91,CS,X1,i0,IRJ,oO,MEQ,WXg,ko_,DRo,tr,URo,zt,H7b,wk,TE1,E9,yA,QlQ,gk,mR_,Zj,Gt,fR1,i78,oaU,S21,tEf,EaU,yH_,ga1,wi1,z9g,GoN,Z7I,O7J,PjI,Ar,nab,q28,NE_,AHx,e9U,ufN,PO,qB,VE1,FX1,pUb,xJ1,$JT,aNo,vFN,cn1,lNf,KLo,dJI,Jnx,Y1I,pW,$q,WL_,k9T,v9,DJQ,c9,UJz,hnI,F1,KW,Rz,az,TOQ,Q91,di,S1N,CD_,fN1,bk,sD,VA,mJ1,Jd,j98,HDg,iDx,nS, ri,oFo,tmN,xq,INx,B9,lk,znU,LW,Yq,hd,wUN,EF1,gFJ,ZDN,yn_,jX,G9Q,Iz,MZ,ODf,NO1,Anb,PDz,nFx,enT,VmU,uyz,FLI,kq,W9,q1I,pub,$4z,x4b,D1,UD,auI,vB1,cN1,H9,scb,JNf,Rq1,d4g,Tg,K9_,bBf,rNf,BsU,mv,SX,L9f,luJ,YAJ,fW,CW,jcT,hqg,Iu8,W9o,MqN,kCf,ik,D4T,U4f,td,HBQ,Qc1,TsU,wi,m4o,SAJ,fu1,Xub,iBx,oB_,CgU,tqU,zqQ,wuf,EB8,yNI,gB_,ZBb,GC1,OBN,gi,Ns1,AN8,Pgf,nB8,F9I,uDf,qAU,OD,eqJ,Gg,VqN,NZ,xOT,pt1,Ad,alf,sM1,v4f,drN,eX,Swg,qZ,uk,nW,F2,c5o,pY,bCz,r5f,Bf1,Lsg,ll_,Yhz,hf8,jMg,M5z,Wsx,k7_,DOz,Ilb,flb,Ctb,ShI,XtI,o4x,zfT, wt1,E41,v5,t5z,iC_,UOT,c5,ZCQ,G7I,g4b,y5U,A5f,NfT,Ptx,qhx,n4U,efT,J3,umU,QMI,aw,V5g,Fsg,pI1,xUb,HC1,Tf8,sS,sgQ,v7I,c9N,J91,$UN,Rw,arf,Ka1,BQQ,dt,lr1,Laf,bcx,rt,YIJ,hpx,RpI,jgg,r9x,Ir1,B5,b7,M8Q,kqN,WaQ,KY,UU1,l7,qub,HcU,mUQ,Qgz,fr8,Cvf,SIo,Yd,LY,ic_,o7g,t8g,zpT,A9x,Zc_,GqN,y9U,E78,Iw,epo,qIQ,uQg,V8x,jS,W5,kd,$18,x1I,pjo,US,NQT,my,sYI,QY,D0,ciI,Jio,R7I,PvN,CY,i7,KpT,Oc1,aKI,H5,d11,Mb,bdb,ri1,BJU,zc,vRQ,lK_,Lpb,wt,ES,YKb,Tc,n7x,h71,jYJ,X5,IK1,SS,MNz,fY,f_,Wpf,D1U,yY,gt,U1z,Hdf,TJ1,t3,ow,QYN,TQN,m1I, g7f,SK8,fKz,CBx,Xjf,Z0,Gc,tNb,ERx,gR1,oRU,nRU,e71,u81,VNo,Fpg,p6N,xX8,aeg,$XJ,OS,Nb,A3,sqI,vV1,c_o,vK,J_1,P5,R31,qb,KbQ,nY,eS,dXN,JD,u7,Cj,bog,tm,wTf,r_b,lL,Baz,qf,na,lex,Bc,LbQ,YvU,zH,NGQ,h3b,jqo,IeQ,VY,WbN,k_T,F5,xp,$p,DX1,Taf,QqN,ad,mX1,UXo,fe1,Hox,Svo,Ci1,X6N,ioN,oV1,sX,z3U,tJx,vn,BK,w6U,EV1,Yb,t2g,rK,y__,gVg,Zog,vH,Ca,Oo8,Na1,cH,J0,A__,Rd,KJ,pJ,PiJ,qv8,sr1,d2,b2,nV_,r2,BH,e3_,l2,uMo,LJ,Yp,V2f,Fb1,XCx,h0,poE,$zt,xzR,jp,Id,aJV,Md,s8R,v1$,cTt,JTZ,RNy,Kxj,bUj,kp,dzO,rTX,B_v,lJt,LxE,IJj,YQX,hNG,j8t, WxO,DzX,UzZ,HUO,k1O,D$,T_v,Q8Z,mzy,SQw,fJj,HH,CfX,Ts,Qs,mq,Xoy,iUG,tIG,zNy,woR,E1X,g1X,yTt,ZUR,Sp,fJ,N_O,G1$,OUO,CJ,ATQ,Pft,Xo,i2,qQX,od,n1Q,t0,eNG,zs,w2,ugw,EX,ys,VIX,FxX,g2,Z$,pQX,Gs,xEV,$EG,PH,qd,aXv,svt,vtv,RwE,JOV,nJ,K$X,dEt,bGv,Zbg,cOV,BRE,lXR,YV$,poz,d_;pU=function(p){return function(){return poz[p].apply(this,arguments)}}; g.sQ=function(p,x){return poz[p]=x}; xz_=function(p){var x=0;return function(){return x=this.length))return this[p]}; uf=function(p){return p?p:nU}; B_8=function(p,x,a){p instanceof String&&(p=String(p));for(var v=p.length-1;v>=0;v--){var c=p[v];if(x.call(a,c,v,p))return{Rd:v,Ce:c}}return{Rd:-1,Ce:void 0}}; Vb=function(p){return p?p:function(x,a){return B_8(this,x,a).Rd}}; g.pG=function(p,x,a){p=p.split(".");a=a||g.Fg;for(var v;p.length&&(v=p.shift());)p.length||x===void 0?a[v]&&a[v]!==Object.prototype[v]?a=a[v]:a=a[v]={}:a[v]=x}; sV=function(p,x){var a=g.$t("CLOSURE_FLAGS");p=a&&a[p];return p!=null?p:x}; g.$t=function(p,x){p=p.split(".");x=x||g.Fg;for(var a=0;a2){var v=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,v);return p.apply(x,c)}}return function(){return p.apply(x,arguments)}}; g.dR=function(p,x,a){g.dR=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?YQb:hNU;return g.dR.apply(null,arguments)}; g.bZ=function(p,x){var a=Array.prototype.slice.call(arguments,1);return function(){var v=a.slice();v.push.apply(v,arguments);return p.apply(this,v)}}; g.BQ=function(){return Date.now()}; lZ=function(p){return p}; g.LG=function(p,x){function a(){} a.prototype=x.prototype;p.dk=x.prototype;p.prototype=new a;p.prototype.constructor=p;p.gM=function(v,c,J){for(var R=Array(arguments.length-2),d=2;d=0;--a)a in v&&x.call(void 0,v[a],a,p)}; g.ME=function(p,x,a){x=Iv(p,x,a);return x<0?null:typeof p==="string"?p.charAt(x):p[x]}; Iv=function(p,x,a){for(var v=p.length,c=typeof p==="string"?p.split(""):p,J=0;J=0;v--)if(v in c&&x.call(a,c[v],v,p))return v;return-1}; g.kt=function(p,x){return k1T(p,x)>=0}; DzJ=function(p){if(!Array.isArray(p))for(var x=p.length-1;x>=0;x--)delete p[x];p.length=0}; g.UV=function(p,x){x=k1T(p,x);var a;(a=x>=0)&&g.DX(p,x);return a}; g.DX=function(p,x){return Array.prototype.splice.call(p,x,1).length==1}; g.Sj=function(p,x){x=Iv(p,x);x>=0&&g.DX(p,x)}; Uzf=function(p,x){var a=0;Wxg(p,function(v,c){x.call(void 0,v,c,p)&&g.DX(p,c)&&a++})}; g.fG=function(p){return Array.prototype.concat.apply([],arguments)}; g.CG=function(p){var x=p.length;if(x>0){for(var a=Array(x),v=0;v>>1),b=void 0;a?b=x.call(void 0,p[d],d,p):b=x(v,p[d]);b>0?c=d+1:(J=d,R=!b)}return R?c:-c-1}; g.PQ=function(p,x){p.sort(x||gR)}; Q8f=function(p,x){var a=gR;g.PQ(p,function(v,c){return a(x(v),x(c))})}; g.qE=function(p,x,a){if(!g.vQ(p)||!g.vQ(x)||p.length!=x.length)return!1;var v=p.length;a=a||mz1;for(var c=0;cx?1:p0&&(x[c]=v)},p); return x}; E1b=function(p){p=mU(p);var x=[];g.FO(p,function(a,v){v in Object.prototype||typeof a!="undefined"&&x.push([v,":",a].join(""))}); return x}; g1J=function(p){HD(p,"od",yT1);HD(p,"opac",Sg).U=!0;HD(p,"sbeos",Sg).U=!0;HD(p,"prf",Sg).U=!0;HD(p,"mwt",Sg).U=!0;HD(p,"iogeo",Sg)}; fZ=function(p,x){return p.lastIndexOf(x,0)==0}; ZU_=function(p,x){var a=p.length-x.length;return a>=0&&p.indexOf(x,a)==a}; g.CZ=function(p){return/^[\s\xa0]*$/.test(p)}; g.Xs=function(p,x){return p.indexOf(x)!=-1}; oJ=function(p,x){return g.Xs(p.toLowerCase(),x.toLowerCase())}; g.wo=function(p,x){var a=0;p=tp(String(p)).split(".");x=tp(String(x)).split(".");for(var v=Math.max(p.length,x.length),c=0;a==0&&cx?1:0}; g.Ez=function(){var p=g.Fg.navigator;return p&&(p=p.userAgent)?p:""}; N3=function(p){if(!yM&&!go||!Oz)return!1;for(var x=0;x0:!1}; q3=function(){return PD()?!1:Ap("Opera")}; G1x=function(){return PD()?!1:Ap("Trident")||Ap("MSIE")}; OUg=function(){return PD()?N3("Microsoft Edge"):Ap("Edg/")}; nZ=function(){return Ap("Firefox")||Ap("FxiOS")}; uu=function(){return Ap("Safari")&&!(eg()||(PD()?0:Ap("Coast"))||q3()||(PD()?0:Ap("Edge"))||OUg()||(PD()?N3("Opera"):Ap("OPR"))||nZ()||Ap("Silk")||Ap("Android"))}; eg=function(){return PD()?N3("Chromium"):(Ap("Chrome")||Ap("CriOS"))&&!(PD()?0:Ap("Edge"))||Ap("Silk")}; N_g=function(){return Ap("Android")&&!(eg()||nZ()||q3()||Ap("Silk"))}; ATo=function(p){var x={};p.forEach(function(a){x[a[0]]=a[1]}); return function(a){return x[a.find(function(v){return v in x})]||""}}; Pf1=function(p){var x=g.Ez();if(p==="Internet Explorer"){if(G1x())if((p=/rv: *([\d\.]*)/.exec(x))&&p[1])x=p[1];else{p="";var a=/MSIE +([\d\.]+)/.exec(x);if(a&&a[1])if(x=/Trident\/(\d.\d)/.exec(x),a[1]=="7.0")if(x&&x[1])switch(x[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=a[1];x=p}else x="";return x}var v=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");a=[];for(var c;c=v.exec(x);)a.push([c[1],c[2],c[3]||void 0]); x=ATo(a);switch(p){case "Opera":if(q3())return x(["Version","Opera"]);if(PD()?N3("Opera"):Ap("OPR"))return x(["OPR"]);break;case "Microsoft Edge":if(PD()?0:Ap("Edge"))return x(["Edge"]);if(OUg())return x(["Edg"]);break;case "Chromium":if(eg())return x(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&nZ()||p==="Safari"&&uu()||p==="Android Browser"&&N_g()||p==="Silk"&&Ap("Silk")?(x=a[2])&&x[1]||"":""}; qQb=function(p){if(PD()&&p!=="Silk"){var x=Oz.brands.find(function(a){return a.brand===p}); if(!x||!x.version)return NaN;x=x.version.split(".")}else{x=Pf1(p);if(x==="")return NaN;x=x.split(".")}return x.length===0?NaN:Number(x[0])}; eNU=function(){var p=null;if(!n1o)return p;try{var x=function(a){return a}; p=n1o.createPolicy("goog#html",{createHTML:x,createScript:x,createScriptURL:x})}catch(a){}return p}; Fs=function(){VM===void 0&&(VM=eNU());return VM}; p9=function(p){this.U=p}; xY=function(p){var x=Fs();p=x?x.createScriptURL(p):p;return new p9(p)}; a0=function(p){if(p instanceof p9)return p.U;throw Error("");}; sW=function(p){this.U=p}; g.vs=function(p){if(p instanceof sW)return p.U;throw Error("");}; cs=function(p){this.mU=p}; J4=function(p){return new cs(function(x){return x.substr(0,p.length+1).toLowerCase()===p+":"})}; g.R0=function(p,x){x=x===void 0?ugN:x;a:if(x=x===void 0?ugN:x,!(p instanceof sW)){for(var a=0;a4);c++)x[Td(p[c])]||(a+="\nInner error "+v++ +": ",p[c].stack&&p[c].stack.indexOf(p[c].toString())==0||(a+=typeof p[c]==="string"?p[c]:p[c].message+"\n"),a+=UW(p[c],x));c")!=-1&&(p=p.replace(K$b,">")),p.indexOf('"')!=-1&&(p=p.replace(dE1,""")),p.indexOf("'")!=-1&&(p=p.replace(bG8,"'")),p.indexOf("\x00")!=-1&&(p=p.replace(rOg,"�")));return p}; g.Xw=function(p){return p==null?"":String(p)}; iO=function(p){for(var x=0,a=0;a>>0;return x}; o0=function(p){var x=Number(p);return x==0&&g.CZ(p)?NaN:x}; BRz=function(p){return String(p).replace(/\-([a-z])/g,function(x,a){return a.toUpperCase()})}; lX_=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; L$1=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(x,a,v){return a+v.toUpperCase()})}; YVx=function(p){var x=1;p=p.split(":");for(var a=[];x>0&&p.length;)a.push(p.shift()),x--;p.length&&a.push(p.join(":"));return a}; t4=function(){return yM||go?!!Oz&&!!Oz.platform:!1}; hwQ=function(){return t4()?Oz.platform==="Android":Ap("Android")}; zd=function(){return Ap("iPhone")&&!Ap("iPod")&&!Ap("iPad")}; wu=function(){return zd()||Ap("iPad")||Ap("iPod")}; EW=function(){return t4()?Oz.platform==="macOS":Ap("Macintosh")}; jvN=function(){return t4()?Oz.platform==="Windows":Ap("Windows")}; yE=function(p){yE[" "](p);return p}; IXJ=function(p,x){try{return yE(p[x]),!0}catch(a){}return!1}; W$b=function(p,x){var a=Mjo;return Object.prototype.hasOwnProperty.call(a,p)?a[p]:a[p]=x(p)}; g.gu=function(p){return W$b(p,function(){return g.wo(kyI,p)>=0})}; g.ZL=function(p,x,a){return Math.min(Math.max(p,x),a)}; g.Gd=function(p,x){p%=x;return p*x<0?p+x:p}; OW=function(p,x,a){return p+a*(x-p)}; g.Ng=function(p,x){this.x=p!==void 0?p:0;this.y=x!==void 0?x:0}; A4=function(p,x){return p==x?!0:p&&x?p.x==x.x&&p.y==x.y:!1}; g.Ps=function(p,x){this.width=p;this.height=x}; g.qg=function(p,x){return p==x?!0:p&&x?p.width==x.width&&p.height==x.height:!1}; n9=function(p){return p.width*p.height}; uO=function(p,x){this.U=p===ec&&x||""}; VE=function(p){if(p instanceof Bs)return p;p=String(p).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return lO(p)}; UEQ=function(p){return DEf(p)}; DEf=function(p){var x=VE("");return lO(p.map(function(a){return L9(VE(a))}).join(L9(x).toString()))}; SVJ=function(p){var x;if(!HGU.test("div"))throw Error("");if(TRU.indexOf("DIV")!==-1)throw Error("");var a="":(p=UEQ(x.map(function(v){return v instanceof Bs?v:VE(String(v))})),a+=">"+p.toString()+""); return lO(a)}; QvT=function(p){for(var x="",a=Object.keys(p),v=0;v2&&zwN(c,R,v,2);return R}; zwN=function(p,x,a,v){function c(d){d&&x.appendChild(typeof d==="string"?p.createTextNode(d):d)} for(;v0)c(J);else{a:{if(J&&typeof J.length=="number"){if(g.cQ(J)){var R=typeof J.item=="function"||typeof J.item=="string";break a}if(typeof J==="function"){R=typeof J.item=="function";break a}}R=!1}g.ej(R?g.CG(J):J,c)}}}; g.Lw=function(p){return BY(document,p)}; BY=function(p,x){x=String(x);p.contentType==="application/xhtml+xml"&&(x=x.toLowerCase());return p.createElement(x)}; g.Yk=function(p){return document.createTextNode(String(p))}; g.jv=function(p,x){p.appendChild(x)}; g.It=function(p){for(var x;x=p.firstChild;)p.removeChild(x)}; MW=function(p,x,a){p.insertBefore(x,p.childNodes[a]||null)}; g.WY=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null}; g.kk=function(p,x){if(!p||!x)return!1;if(p.contains&&x.nodeType==1)return p==x||p.contains(x);if(typeof p.compareDocumentPosition!="undefined")return p==x||!!(p.compareDocumentPosition(x)&16);for(;x&&p!=x;)x=x.parentNode;return x==p}; xk=function(p){return p.nodeType==9?p:p.ownerDocument||p.document}; g.Dp=function(p,x){if("textContent"in p)p.textContent=x;else if(p.nodeType==3)p.data=String(x);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(x)}else g.It(p),p.appendChild(xk(p).createTextNode(String(x)))}; Etb=function(p){return p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?!p.disabled&&(!p.hasAttribute("tabindex")||wQ_(p)):p.hasAttribute("tabindex")&&wQ_(p)}; wQ_=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768}; mB=function(p,x,a){if(!x&&!a)return null;var v=x?String(x).toUpperCase():null;return Ua(p,function(c){return(!v||c.nodeName==v)&&(!a||typeof c.className==="string"&&g.kt(c.className.split(/\s+/),a))},!0)}; Ua=function(p,x,a){p&&!a&&(p=p.parentNode);for(a=0;p;){if(x(p))return p;p=p.parentNode;a++}return null}; pw=function(p){this.U=p||g.Fg.document||document}; yOo=function(){this.U=this.m9=null}; Sv=function(){}; Cw=function(){if(!fw())throw Error();}; fw=function(){return!(!XU||!XU.performance)}; gtb=function(p){return g.bP?"webkit"+p:p.toLowerCase()}; iP=function(p){return function(){return p}}; g.ot=function(){}; ZGo=function(p){var x=x||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,x))}}; tb=function(p){var x=!1,a;return function(){x||(a=p(),x=!0);return a}}; zL=function(p){var x=p;return function(){if(x){var a=x;x=null;a()}}}; wI=function(p,x,a){var v=0;return function(c){g.Fg.clearTimeout(v);var J=arguments;v=g.Fg.setTimeout(function(){p.apply(a,J)},x)}}; Ea=function(p,x,a,v){this.top=p;this.right=x;this.bottom=a;this.left=v}; yU=function(p){return p.right-p.left}; gI=function(p,x){return p==x?!0:p&&x?p.top==x.top&&p.right==x.right&&p.bottom==x.bottom&&p.left==x.left:!1}; Zp=function(p,x,a){x instanceof g.Ng?(p.left+=x.x,p.right+=x.x,p.top+=x.y,p.bottom+=x.y):(p.left+=x,p.right+=x,typeof a==="number"&&(p.top+=a,p.bottom+=a));return p}; g.GL=function(p,x,a,v){this.left=p;this.top=x;this.width=a;this.height=v}; Oa=function(p,x){return p==x?!0:p&&x?p.left==x.left&&p.width==x.width&&p.top==x.top&&p.height==x.height:!1}; g.Ab=function(p,x,a){if(typeof x==="string")(x=NW(p,x))&&(p.style[x]=a);else for(var v in x){a=p;var c=x[v],J=NW(a,v);J&&(a.style[J]=c)}}; NW=function(p,x){var a=GyU[x];if(!a){var v=BRz(x);a=v;p.style[v]===void 0&&(v=(g.bP?"Webkit":PY?"Moz":null)+L$1(v),p.style[v]!==void 0&&(a=v));GyU[x]=a}return a}; g.qW=function(p,x){var a=p.style[BRz(x)];return typeof a!=="undefined"?a:p.style[NW(p,x)]||""}; nw=function(p,x){var a=xk(p);return a.defaultView&&a.defaultView.getComputedStyle&&(p=a.defaultView.getComputedStyle(p,null))?p[x]||p.getPropertyValue(x)||"":""}; ev=function(p,x){return nw(p,x)||(p.currentStyle?p.currentStyle[x]:null)||p.style&&p.style[x]}; g.VU=function(p,x,a){if(x instanceof g.Ng){var v=x.x;x=x.y}else v=x,x=a;p.style.left=g.uP(v,!1);p.style.top=g.uP(x,!1)}; FU=function(p){try{return p.getBoundingClientRect()}catch(x){return{left:0,top:0,right:0,bottom:0}}}; OGf=function(p){var x=xk(p),a=ev(p,"position"),v=a=="fixed"||a=="absolute";for(p=p.parentNode;p&&p!=x;p=p.parentNode)if(p.nodeType==11&&p.host&&(p=p.host),a=ev(p,"position"),v=v&&a=="static"&&p!=x.documentElement&&p!=x.body,!v&&(p.scrollWidth>p.clientWidth||p.scrollHeight>p.clientHeight||a=="fixed"||a=="absolute"||a=="relative"))return p;return null}; g.p$=function(p){var x=xk(p),a=new g.Ng(0,0);if(p==(x?xk(x):document).documentElement)return a;p=FU(p);x=$k(x);x=tjI(x.U);a.x=p.left+x.x;a.y=p.top+x.y;return a}; AON=function(p,x){var a=new g.Ng(0,0),v=rI(xk(p));if(!IXJ(v,"parent"))return a;do{var c=v==x?g.p$(p):NRJ(p);a.x+=c.x;a.y+=c.y}while(v&&v!=x&&v!=v.parent&&(p=v.frameElement)&&(v=v.parent));return a}; g.xG=function(p,x){p=PZg(p);x=PZg(x);return new g.Ng(p.x-x.x,p.y-x.y)}; NRJ=function(p){p=FU(p);return new g.Ng(p.left,p.top)}; PZg=function(p){if(p.nodeType==1)return NRJ(p);p=p.changedTouches?p.changedTouches[0]:p;return new g.Ng(p.clientX,p.clientY)}; g.$G=function(p,x,a){if(x instanceof g.Ps)a=x.height,x=x.width;else if(a==void 0)throw Error("missing height argument");p.style.width=g.uP(x,!0);p.style.height=g.uP(a,!0)}; g.uP=function(p,x){typeof p=="number"&&(p=(x?Math.round(p):p)+"px");return p}; g.aT=function(p){var x=qVo;if(ev(p,"display")!="none")return x(p);var a=p.style,v=a.display,c=a.visibility,J=a.position;a.visibility="hidden";a.position="absolute";a.display="inline";p=x(p);a.display=v;a.position=J;a.visibility=c;return p}; qVo=function(p){var x=p.offsetWidth,a=p.offsetHeight,v=g.bP&&!x&&!a;return(x===void 0||v)&&p.getBoundingClientRect?(p=FU(p),new g.Ps(p.right-p.left,p.bottom-p.top)):new g.Ps(x,a)}; g.sO=function(p,x){p.style.display=x?"":"none"}; vq=function(p){return p?p.passive&&nt1()?p:p.capture||!1:!1}; cq=function(p,x,a,v){return typeof p.addEventListener==="function"?(p.addEventListener(x,a,vq(v)),!0):!1}; JI=function(p){if(p.prerendering)return 3;var x;return(x={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""])!=null?x:0}; ewU=function(){}; RT=function(p){p.fD7=!0;return p}; uO1=function(){return(yM||go)&&Oz?Oz.mobile:!bN()&&(Ap("iPod")||Ap("iPhone")||Ap("Android")||Ap("IEMobile"))}; bN=function(){return(yM||go)&&Oz?!Oz.mobile&&(Ap("iPad")||Ap("Android")||Ap("Silk")):Ap("iPad")||Ap("Android")&&!Ap("Mobile")||Ap("Silk")}; rF=function(p){try{return!!p&&p.location.href!=null&&IXJ(p,"foo")}catch(x){return!1}}; Bq=function(p,x){if(p)for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&x(p[a],a,p)}; F$f=function(){var p=[];Bq(VjU,function(x){p.push(x)}); return p}; pDb=function(p){var x,a;return(a=(x=/https?:\/\/[^\/]+/.exec(p))==null?void 0:x[0])!=null?a:""}; aMI=function(){var p=x31("IFRAME"),x={};g.ej($3f(),function(a){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(a)&&(x[a]=!0)}); return x}; x31=function(p,x){x=x===void 0?document:x;return x.createElement(String(p).toLowerCase())}; sJg=function(p){for(var x=p;p&&p!=p.parent;)p=p.parent,rF(p)&&(x=p);return x}; Reg=function(p){p=p||lN();for(var x=new vrx(g.Fg.location.href,!1),a=null,v=p.length-1,c=v;c>=0;--c){var J=p[c];!a&&cpU.test(J.url)&&(a=J);if(J.url&&!J.U){x=J;break}}c=null;J=p.length&&p[v].url;x.depth!==0&&J&&(c=p[v]);return new JpI(x,c,a)}; lN=function(){var p=g.Fg,x=[],a=null;do{var v=p;if(rF(v)){var c=v.location.href;a=v.document&&v.document.referrer||null}else c=a,a=null;x.push(new vrx(c||""));try{p=v.parent}catch(J){p=null}}while(p&&v!==p);v=0;for(p=x.length-1;v<=p;++v)x[v].depth=p-v;v=g.Fg;if(v.location&&v.location.ancestorOrigins&&v.location.ancestorOrigins.length===x.length-1)for(p=1;px&&(x=a.length);return 3997-x-p.j.length-1}; jV=function(p,x){this.U=p;this.depth=x}; rpU=function(){function p(d,b){return d==null?b:d} var x=lN(),a=Math.max(x.length-1,0),v=Reg(x);x=v.U;var c=v.Z,J=v.j,R=[];J&&R.push(new jV([J.url,J.U?2:0],p(J.depth,1)));c&&c!=J&&R.push(new jV([c.url,2],0));x.url&&x!=J&&R.push(new jV([x.url,0],p(x.depth,a)));v=g.IT(R,function(d,b){return R.slice(0,R.length-b)}); !x.url||(J||c)&&x!=J||(c=pDb(x.url))&&v.push([new jV([c,1],p(x.depth,a))]);v.push([]);return g.IT(v,function(d){return bZQ(a,d)})}; bZQ=function(p,x){g.Mv(x,function(c){return c.depth>=0}); var a=Wq(x,function(c,J){return Math.max(c,J.depth)},-1),v=SQN(a+2); v[0]=p;g.ej(x,function(c){return v[c.depth+1]=c.U}); return v}; BoU=function(){var p=p===void 0?rpU():p;return p.map(function(x){return hI(x)})}; lMI=function(p){var x=!1;x=x===void 0?!1:x;XU.google_image_requests||(XU.google_image_requests=[]);var a=x31("IMG",XU.document);x&&(a.attributionSrc="");a.src=p;XU.google_image_requests.push(a)}; kG=function(p){var x="IB";if(p.IB&&p.hasOwnProperty(x))return p.IB;var a=new p;p.IB=a;p.hasOwnProperty(x);return a}; DS=function(){this.Z=new ewU;this.U=fw()?new Cw:new Sv}; LU_=function(){UO();var p=XU.document;return!!(p&&p.body&&p.body.getBoundingClientRect&&typeof XU.setInterval==="function"&&typeof XU.clearInterval==="function"&&typeof XU.setTimeout==="function"&&typeof XU.clearTimeout==="function")}; Yzz=function(){UO();return BoU()}; he8=function(){}; UO=function(){var p=kG(he8);if(!p.U){if(!XU)throw Error("Context has not been set and window is undefined.");p.U=kG(DS)}return p.U}; Hq=function(){throw Error("Invalid UTF8");}; jJo=function(p,x){x=String.fromCharCode.apply(null,x);return p==null?x:p+x}; kiQ=function(p){var x=!1;x=x===void 0?!1:x;if(IM1){if(x&&(MgN?!p.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(p)))throw Error("Found an unpaired surrogate");p=(WUo||(WUo=new TextEncoder)).encode(p)}else{for(var a=0,v=new Uint8Array(3*p.length),c=0;c>6|192;else{if(J>=55296&&J<=57343){if(J<=56319&&c=56320&&R<=57343){J=(J-55296)*1024+ R-56320+65536;v[a++]=J>>18|240;v[a++]=J>>12&63|128;v[a++]=J>>6&63|128;v[a++]=J&63|128;continue}else c--}if(x)throw Error("Found an unpaired surrogate");J=65533}v[a++]=J>>12|224;v[a++]=J>>6&63|128}v[a++]=J&63|128}}p=a===v.length?v:v.subarray(0,a)}return p}; T6=function(p){g.Fg.setTimeout(function(){throw p;},0)}; D3J=function(p){return Array.prototype.map.call(p,function(x){x=x.toString(16);return x.length>1?x:"0"+x}).join("")}; U3U=function(p){for(var x=[],a=0;a>6|192:((c&64512)==55296&&v+1>18|240,x[a++]=c>>12&63|128):x[a++]=c>>12|224,x[a++]=c>>6&63|128),x[a++]=c&63|128)}return x}; g.m2=function(p,x){x===void 0&&(x=0);HZg();x=ToT[x];for(var a=Array(Math.floor(p.length/3)),v=x[64]||"",c=0,J=0;c>2];R=x[(R&3)<<4|d>>4];d=x[(d&15)<<2|b>>6];b=x[b&63];a[J++]=""+r+R+d+b}r=0;b=v;switch(p.length-c){case 2:r=p[c+1],b=x[(r&15)<<2]||v;case 1:p=p[c],a[J]=""+x[p>>2]+x[(p&3)<<4|r>>4]+b+v}return a.join("")}; g.SV=function(p,x,a){if(QJQ&&!x)p=g.Fg.btoa(p);else{for(var v=[],c=0,J=0;J255){var d=Error("go/unicode-to-byte-error");if(a)throw d;v[c++]=R&255;R>>=8}v[c++]=R}p=g.m2(v,x)}return p}; SzN=function(p){var x=[];m3Q(p,function(a){x.push(a)}); return x}; f$=function(p){var x=p.length,a=x*3/4;a%3?a=Math.floor(a):g.Xs("=.",p[x-1])&&(a=g.Xs("=.",p[x-2])?a-2:a-1);var v=new Uint8Array(a),c=0;m3Q(p,function(J){v[c++]=J}); return c!==a?v.subarray(0,c):v}; m3Q=function(p,x){function a(b){for(;v>4);R!=64&&(x(J<<4&240|R>>2),d!=64&&x(R<<6&192|d))}}; HZg=function(){if(!C$){C$={};for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),x=["+/=","+/","-_=","-_.","-_"],a=0;a<5;a++){var v=p.concat(x[a].split(""));ToT[a]=v;for(var c=0;c=x||(v[p]=a+1,p=Error(),sv1(p,"incident"),T6(p))}}; yR=function(p,x,a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(a===void 0?0:a)&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol():x}; G6=function(p,x){gF||ZS in p||yp1(p,gr8);p[ZS]|=x}; OO=function(p,x){gF||ZS in p||yp1(p,gr8);p[ZS]=x}; Nv=function(){return typeof BigInt==="function"}; Pq=function(p,x){return x===void 0?p.U!==AI&&!!(2&(p.l$[ZS]|0)):!!(2&x)&&p.U!==AI}; ZZ_=function(p,x){if(p!=null)if(typeof p==="string")p=p?new Xt(p,iN):oT();else if(p.constructor!==Xt)if(wDz&&p!=null&&p instanceof Uint8Array)p=p.length?new Xt(new Uint8Array(p),iN):oT();else{if(!x)throw Error();p=void 0}return p}; qv=function(p,x){if(typeof x!=="number"||x<0||x>=p.length)throw Error();}; GiN=function(p,x,a){var v=x&128?0:-1,c=p.length,J;if(J=!!c)J=p[c-1],J=J!=null&&typeof J==="object"&&J.constructor===Object;var R=c+(J?-1:0);for(x=x&128?1:0;xx.length)return!1;if(p.lengthc)return!1;if(v>>0;$g=x;ap=(p-x)/4294967296>>>0}; c3=function(p){if(p<0){sC(0-p);var x=g.k(v3($g,ap));p=x.next().value;x=x.next().value;$g=p>>>0;ap=x>>>0}else sC(p)}; Rp=function(p,x){var a=x*4294967296+(p>>>0);return Number.isSafeInteger(a)?a:J7(p,x)}; Pu8=function(p,x){var a=x&2147483648;a&&(p=~p+1>>>0,x=~x>>>0,p==0&&(x=x+1>>>0));p=Rp(p,x);return typeof p==="number"?a?-p:p:a?"-"+p:p}; J7=function(p,x){x>>>=0;p>>>=0;if(x<=2097151)var a=""+(4294967296*x+p);else Nv()?a=""+(BigInt(x)<>>24|x<<8)&16777215,x=x>>16&65535,p=(p&16777215)+a*6777216+x*6710656,a+=x*8147497,x*=2,p>=1E7&&(a+=p/1E7>>>0,p%=1E7),a>=1E7&&(x+=a/1E7>>>0,a%=1E7),a=x+qzg(a)+qzg(p));return a}; qzg=function(p){p=String(p);return"0000000".slice(p.length)+p}; nr8=function(){var p=$g,x=ap;x&2147483648?Nv()?p=""+(BigInt(x|0)<>>0)):(x=g.k(v3(p,x)),p=x.next().value,x=x.next().value,p="-"+J7(p,x)):p=J7(p,x);return p}; K4=function(p){if(p.length<16)c3(Number(p));else if(Nv())p=BigInt(p),$g=Number(p&BigInt(4294967295))>>>0,ap=Number(p>>BigInt(32)&BigInt(4294967295));else{var x=+(p[0]==="-");ap=$g=0;for(var a=p.length,v=0+x,c=(a-x)%6+x;c<=a;v=c,c+=6)v=Number(p.slice(v,c)),ap*=1E6,$g=$g*1E6+v,$g>=4294967296&&(ap+=Math.trunc($g/4294967296),ap>>>=0,$g>>>=0);x&&(x=g.k(v3($g,ap)),p=x.next().value,x=x.next().value,$g=p,ap=x)}}; v3=function(p,x){x=~x;p?p=~p+1:x+=1;return[p,x]}; d4=function(p){return Array.prototype.slice.call(p)}; b3=function(p){if(p!=null&&typeof p!=="number")throw Error("Value of float/double field must be a number, found "+typeof p+": "+p);return p}; ee8=function(p){return p.displayName||p.name||"unknown type name"}; r4=function(p){if(p!=null&&typeof p!=="boolean")throw Error("Expected boolean but got "+lJ1(p)+": "+p);return p}; l3=function(p){switch(typeof p){case "bigint":return!0;case "number":return B3(p);case "string":return usx.test(p);default:return!1}}; Vgz=function(p){if(typeof p!=="number")throw wF("int32");if(!B3(p))throw wF("int32");return p|0}; L4=function(p){return p==null?p:Vgz(p)}; Yg=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return B3(p)?p|0:void 0}; h7=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return B3(p)?p>>>0:void 0}; xgo=function(p){var x=0;x=x===void 0?0:x;if(!l3(p))throw wF("int64");var a=typeof p;switch(x){case 512:switch(a){case "string":return Mx(p);case "bigint":return String(W3(64,p));default:return kg(p)}case 1024:switch(a){case "string":return FUb(p);case "bigint":return xg(W3(64,p));default:return ps_(p)}case 0:switch(a){case "string":return Mx(p);case "bigint":return xg(W3(64,p));default:return DY(p)}default:return ru(x,"Unknown format requested type for int64")}}; UC=function(p){return p==null?p:xgo(p)}; $g8=function(p){if(p[0]==="-")return!1;var x=p.length;return x<20?!0:x===20&&Number(p.substring(0,6))<184467}; aLx=function(p){var x=p.length;return p[0]==="-"?x<20?!0:x===20&&Number(p.substring(0,7))>-922337:x<19?!0:x===19&&Number(p.substring(0,6))<922337}; s0_=function(p){if(p<0){c3(p);var x=J7($g,ap);p=Number(x);return H3(p)?p:x}x=String(p);if($g8(x))return x;c3(p);return Rp($g,ap)}; vYb=function(p){if(aLx(p))return p;K4(p);return nr8()}; DY=function(p){l3(p);p=Te(p);H3(p)||(c3(p),p=Pu8($g,ap));return p}; kg=function(p){l3(p);p=Te(p);if(H3(p))p=String(p);else{var x=String(p);aLx(x)?p=x:(c3(p),p=nr8())}return p}; Mx=function(p){l3(p);var x=Te(Number(p));if(H3(x))return String(x);x=p.indexOf(".");x!==-1&&(p=p.substring(0,x));return vYb(p)}; FUb=function(p){var x=Te(Number(p));if(H3(x))return xg(x);x=p.indexOf(".");x!==-1&&(p=p.substring(0,x));return Nv()?xg(W3(64,BigInt(p))):xg(vYb(p))}; ps_=function(p){return H3(p)?xg(DY(p)):xg(kg(p))}; c4I=function(p){if(p==null)return p;var x=typeof p;if(x==="bigint")return String(W3(64,p));if(l3(p)){if(x==="string")return Mx(p);if(x==="number")return DY(p)}}; RYQ=function(p){if(p==null)return p;var x=typeof p;if(x==="bigint")return String(J4_(64,p));if(l3(p)){if(x==="string")return l3(p),x=Te(Number(p)),H3(x)&&x>=0?p=String(x):(x=p.indexOf("."),x!==-1&&(p=p.substring(0,x)),$g8(p)||(K4(p),p=J7($g,ap))),p;if(x==="number")return l3(p),p=Te(p),p>=0&&H3(p)?p:s0_(p)}}; KnU=function(p){if(p==null||typeof p=="string"||p instanceof Xt)return p}; dgQ=function(p){if(typeof p!=="string")throw Error();return p}; QZ=function(p){if(p!=null&&typeof p!=="string")throw Error();return p}; me=function(p){return p==null||typeof p==="string"?p:void 0}; Sr=function(p,x){if(!(p instanceof x))throw Error("Expected instanceof "+ee8(x)+" but got "+(p&&ee8(p.constructor)));return p}; b91=function(p,x,a){if(p!=null&&p[f4]===C4)return p;if(Array.isArray(p)){var v=p[ZS]|0;a=v|a&32|a&2;a!==v&&OO(p,a);return new x(p)}}; X$=function(p){return p}; op=function(p){var x=lZ(i3);return x?p[x]:void 0}; t7=function(){}; ze=function(p,x){for(var a in p)!isNaN(a)&&x(p,+a,p[a])}; r41=function(p){var x=new t7;ze(p,function(a,v,c){x[v]=d4(c)}); x.z5=p.z5;return x}; lLg=function(p,x){x<100||EO(Bub,1)}; g4=function(p,x,a,v){var c=v!==void 0;v=!!v;var J=lZ(i3),R;!c&&gF&&J&&(R=p[J])&&ze(R,lLg);J=[];var d=p.length;R=4294967295;var b=!1,r=!!(x&64),B=r?x&128?0:-1:void 0;if(!(x&1)){var l=d&&p[d-1];l!=null&&typeof l==="object"&&l.constructor===Object?(d--,R=d):l=void 0;if(r&&!(x&128)&&!c){b=!0;var L;R=((L=yZ)!=null?L:X$)(R-B,B,p,l,void 0)+B}}x=void 0;for(L=0;L=R){var h=L-B,D=void 0;((D=x)!=null?D:x={})[h]=Y}else J[L]=Y}if(l)for(var H in l)d=l[H],d!= null&&(d=a(d,v))!=null&&(L=+H,Y=void 0,r&&!Number.isNaN(L)&&(Y=L+B)0?void 0:p===0?ILz||(ILz=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}}; A7=function(p,x,a){return p=Nx(p,x[0],x[1],a?1:2)}; Nx=function(p,x,a,v){v=v===void 0?0:v;if(p==null){var c=32;a?(p=[a],c|=128):p=[];x&&(c=c&-8380417|(x&1023)<<13)}else{if(!Array.isArray(p))throw Error("narr");c=p[ZS]|0;if(WnQ&&1&c)throw Error("rfarr");2048&c&&!(2&c)&&kdI();if(c&256)throw Error("farr");if(c&64)return v!==0||c&2048||OO(p,c|2048),p;if(a&&(c|=128,a!==p[0]))throw Error("mid");a:{a=p;c|=64;var J=a.length;if(J){var R=J-1,d=a[R];if(d!=null&&typeof d==="object"&&d.constructor===Object){x=c&128?0:-1;R-=x;if(R>=1024)throw Error("pvtlmt");for(var b in d)J= +b,J1024)throw Error("spvt");c=c&-8380417|(b&1023)<<13}}}c|=64;v===0&&(c|=2048);OO(p,c);return p}; kdI=function(){if(WnQ)throw Error("carr");EO(Dg8,5)}; Ug1=function(p,x){if(typeof p!=="object")return p;if(Array.isArray(p)){var a=p[ZS]|0;p.length===0&&a&1?p=void 0:a&2||(!x||4096&a||16&a?p=P3(p,a,!1,x&&!(a&16)):(G6(p,34),a&4&&Object.freeze(p)));return p}if(p!=null&&p[f4]===C4)return x=p.l$,a=x[ZS]|0,Pq(p,a)?p:qx(p,x,a)?n4(p,x):P3(x,a);if(p instanceof Xt)return p}; n4=function(p,x,a){p=new p.constructor(x);a&&(p.U=AI);p.Z=AI;return p}; P3=function(p,x,a,v){v!=null||(v=!!(34&x));p=g4(p,x,Ug1,v);v=32;a&&(v|=2);x=x&8380609|v;OO(p,x);return p}; H98=function(p){var x=p.l$,a=x[ZS]|0;return Pq(p,a)?qx(p,x,a)?n4(p,x,!0):new p.constructor(P3(x,a,!1)):p}; er=function(p){if(p.U!==AI)return!1;var x=p.l$;x=P3(x,x[ZS]|0);G6(x,2048);p.l$=x;p.U=void 0;p.Z=void 0;return!0}; u3=function(p){if(!er(p)&&Pq(p,p.l$[ZS]|0))throw Error();}; VZ=function(p,x){x===void 0&&(x=p[ZS]|0);x&32&&!(x&4096)&&OO(p,x|4096)}; qx=function(p,x,a){return a&2?!0:a&32&&!(a&4096)?(OO(x,a|2),p.U=AI,!0):!1}; pE=function(p,x,a,v,c){Object.isExtensible(p);x=F$(p.l$,x,a,c);if(x!==null||v&&p.Z!==AI)return x}; F$=function(p,x,a,v){if(x===-1)return null;var c=x+(a?0:-1),J=p.length-1;if(!(J<1+(a?0:-1))){if(c>=J){var R=p[J];if(R!=null&&typeof R==="object"&&R.constructor===Object){a=R[x];var d=!0}else if(c===J)a=R;else return}else a=p[c];if(v&&a!=null){v=v(a);if(v==null)return v;if(!Object.is(v,a))return d?R[x]=v:p[c]=v,v}return a}}; $D=function(p,x,a,v){u3(p);var c=p.l$;xD(c,c[ZS]|0,x,a,v);return p}; xD=function(p,x,a,v,c){var J=a+(c?0:-1),R=p.length-1;if(R>=1+(c?0:-1)&&J>=R){var d=p[R];if(d!=null&&typeof d==="object"&&d.constructor===Object)return d[a]=v,x}if(J<=R)return p[J]=v,x;if(v!==void 0){var b;R=((b=x)!=null?b:x=p[ZS]|0)>>13&1023||536870912;a>=R?v!=null&&(J={},p[R+(c?0:-1)]=(J[a]=v,J)):p[J]=v}return x}; Jj=function(p,x,a,v,c){var J=p.l$,R=J[ZS]|0;v=Pq(p,R)?1:v;c=!!c||v===3;v===2&&er(p)&&(J=p.l$,R=J[ZS]|0);p=a4(J,x);var d=p===sb?7:p[ZS]|0,b=vM(d,R);var r=4&b?!1:!0;if(r){4&b&&(p=d4(p),d=0,b=cM(b,R),R=xD(J,R,x,p));for(var B=0,l=0;B32)for(a|=(R&127)>>4,v=3;v<32&&R&128;v+=7)R=c[J++],a|=(R&127)<>>0,a>>>0);throw Error();}; GM=function(p,x){p.U=x;if(x>p.j)throw Error();}; NC=function(p){var x=p.Z,a=p.U,v=x[a++],c=v&127;if(v&128&&(v=x[a++],c|=(v&127)<<7,v&128&&(v=x[a++],c|=(v&127)<<14,v&128&&(v=x[a++],c|=(v&127)<<21,v&128&&(v=x[a++],c|=v<<28,v&128&&x[a++]&128&&x[a++]&128&&x[a++]&128&&x[a++]&128&&x[a++]&128)))))throw Error();GM(p,a);return c}; Aj=function(p){var x=p.Z,a=p.U,v=x[a+0],c=x[a+1],J=x[a+2];x=x[a+3];GM(p,p.U+4);return(v<<0|c<<8|J<<16|x<<24)>>>0}; PM=function(p){var x=Aj(p);p=Aj(p);return Rp(x,p)}; qC=function(p){var x=Aj(p),a=Aj(p);p=(a>>31)*2+1;var v=a>>>20&2047;x=4294967296*(a&1048575)+x;return v==2047?x?NaN:p*Infinity:v==0?p*4.9E-324*x:p*Math.pow(2,v-1075)*(x+4503599627370496)}; nE=function(p){for(var x=0,a=p.U,v=a+10,c=p.Z;ap.j)throw Error();p.U=x;return a}; EYJ=function(p,x){if(x==0)return oT();var a=zYT(p,x);p.OU&&p.C?a=p.Z.subarray(a,a+x):(p=p.Z,x=a+x,a=a===x?new Uint8Array(0):wsT?p.slice(a,x):new Uint8Array(p.subarray(a,x)));return a.length==0?oT():new Xt(a,iN)}; uw=function(p,x,a,v){if(eT.length){var c=eT.pop();c.init(p,x,a,v);p=c}else p=new Zi(p,x,a,v);this.U=p;this.B=this.U.U;this.Z=this.j=-1;y41(this,v)}; y41=function(p,x){x=x===void 0?{}:x;p.Ak=x.Ak===void 0?!1:x.Ak}; gYo=function(p,x,a,v){if(VQ.length){var c=VQ.pop();y41(c,v);c.U.init(p,x,a,v);return c}return new uw(p,x,a,v)}; Z9x=function(p){var x=p.U;if(x.U==x.j)return!1;p.B=p.U.U;var a=NC(p.U)>>>0;x=a>>>3;a&=7;if(!(a>=0&&a<=5))throw Error();if(x<1)throw Error();p.j=x;p.Z=a;return!0}; RV=function(p){switch(p.Z){case 0:p.Z!=0?RV(p):nE(p.U);break;case 1:p=p.U;GM(p,p.U+8);break;case 2:if(p.Z!=2)RV(p);else{var x=NC(p.U)>>>0;p=p.U;GM(p,p.U+x)}break;case 5:p=p.U;GM(p,p.U+4);break;case 3:x=p.j;do{if(!Z9x(p))throw Error();if(p.Z==4){if(p.j!=x)throw Error();break}RV(p)}while(1);break;default:throw Error();}}; KM=function(p,x,a){var v=p.U.j,c=NC(p.U)>>>0;c=p.U.U+c;var J=c-v;J<=0&&(p.U.j=c,a(x,p,void 0,void 0,void 0),J=c-p.U.U);if(J)throw Error();p.U.U=c;p.U.j=v}; rp=function(p){var x=NC(p.U)>>>0;p=p.U;var a=zYT(p,x);p=p.Z;if(Gdo){var v=p,c;(c=dp)||(c=dp=new TextDecoder("utf-8",{fatal:!0}));x=a+x;v=a===0&&x===v.length?v:v.subarray(a,x);try{var J=c.decode(v)}catch(r){if(bn===void 0){try{c.decode(new Uint8Array([128]))}catch(B){}try{c.decode(new Uint8Array([97])),bn=!0}catch(B){bn=!1}}!bn&&(dp=void 0);throw r;}}else{J=a;x=J+x;a=[];for(var R=null,d,b;J=x?Hq():(b=p[J++],d<194||(b&192)!==128?(J--,Hq()):a.push((d&31)<<6|b&63)): d<240?J>=x-1?Hq():(b=p[J++],(b&192)!==128||d===224&&b<160||d===237&&b>=160||((c=p[J++])&192)!==128?(J--,Hq()):a.push((d&15)<<12|(b&63)<<6|c&63)):d<=244?J>=x-2?Hq():(b=p[J++],(b&192)!==128||(d<<28)+(b-144)>>30!==0||((c=p[J++])&192)!==128||((v=p[J++])&192)!==128?(J--,Hq()):(d=(d&7)<<18|(b&63)<<12|(c&63)<<6|v&63,d-=65536,a.push((d>>10&1023)+55296,(d&1023)+56320))):Hq(),a.length>=8192&&(R=jJo(R,a),a.length=0);J=jJo(R,a)}return J}; O9b=function(p){var x=NC(p.U)>>>0;return EYJ(p.U,x)}; BJ=function(p,x){this.Z=p>>>0;this.U=x>>>0}; A4f=function(p){if(!p)return Nu8||(Nu8=new BJ(0,0));if(!/^\d+$/.test(p))return null;K4(p);return new BJ($g,ap)}; ln=function(p,x){this.Z=p>>>0;this.U=x>>>0}; qWI=function(p){if(!p)return POU||(POU=new ln(0,0));if(!/^-?\d+$/.test(p))return null;K4(p);return new ln($g,ap)}; LM=function(){this.U=[]}; Y2=function(p,x,a){for(;a>0||x>127;)p.U.push(x&127|128),x=(x>>>7|a<<25)>>>0,a>>>=7;p.U.push(x)}; hV=function(p,x){for(;x>127;)p.U.push(x&127|128),x>>>=7;p.U.push(x)}; nY8=function(p,x){if(x>=0)hV(p,x);else{for(var a=0;a<9;a++)p.U.push(x&127|128),x>>=7;p.U.push(1)}}; jP=function(p,x){p.U.push(x>>>0&255);p.U.push(x>>>8&255);p.U.push(x>>>16&255);p.U.push(x>>>24&255)}; eYz=function(){this.j=[];this.Z=0;this.U=new LM}; IV=function(p,x){x.length!==0&&(p.j.push(x),p.Z+=x.length)}; uwN=function(p,x){Mi(p,x,2);x=p.U.end();IV(p,x);x.push(p.Z);return x}; VcJ=function(p,x){var a=x.pop();for(a=p.Z+p.U.length()-a;a>127;)x.push(a&127|128),a>>>=7,p.Z++;x.push(a);p.Z++}; Mi=function(p,x,a){hV(p.U,x*8+a)}; Fno=function(p,x,a){if(a!=null){switch(typeof a){case "string":A4f(a)}Mi(p,x,1);switch(typeof a){case "number":p=p.U;sC(a);jP(p,$g);jP(p,ap);break;case "bigint":a=BigInt.asUintN(64,a);a=new BJ(Number(a&BigInt(4294967295)),Number(a>>BigInt(32)));p=p.U;x=a.U;jP(p,a.Z);jP(p,x);break;default:a=A4f(a),p=p.U,x=a.U,jP(p,a.Z),jP(p,x)}}}; WJ=function(p,x,a){Mi(p,x,2);hV(p.U,a.length);IV(p,p.U.end());IV(p,a)}; k2=function(){function p(){throw Error();} Object.setPrototypeOf(p,p.prototype);return p}; DT=function(p,x,a){this.l$=Nx(p,x,a)}; pYo=function(p,x){if(x==null||x=="")return new p;x=JSON.parse(x);if(!Array.isArray(x))throw Error("dnarr");G6(x,32);return new p(x)}; HJ=function(p,x,a){this.Mf=p;this.Ke=x;p=lZ(Up);this.U=!!p&&a===p||!1}; TA=function(p,x){var a=a===void 0?Up:a;return new HJ(p,x,a)}; $WJ=function(p,x,a,v,c){x=xWz(x,v);x!=null&&(a=uwN(p,a),c(x,p),VcJ(p,a))}; SP=function(p,x,a,v){var c=v[p];if(c)return c;c={};c.wm=v;c.Ua=Mc8(v[0]);var J=v[1],R=1;J&&J.constructor===Object&&(c.extensions=J,J=v[++R],typeof J==="function"&&(c.FD=!0,QP!=null||(QP=J),mu!=null||(mu=v[R+1]),J=v[R+=2]));for(var d={};J&&Array.isArray(J)&&J.length&&typeof J[0]==="number"&&J[0]>0;){for(var b=0;b>BigInt(32)));Y2(p.U,a.Z,a.U);break;default:a=qWI(x),Y2(p.U,a.Z,a.U)}}}; F9=function(p,x,a){x=Yg(x);x!=null&&x!=null&&(Mi(p,a,0),nY8(p.U,x))}; LBI=function(p,x,a){x=x==null||typeof x==="boolean"?x:typeof x==="number"?!!x:void 0;x!=null&&(Mi(p,a,0),p.U.U.push(x?1:0))}; YaI=function(p,x,a){x=me(x);x!=null&&WJ(p,a,kiQ(x))}; hlT=function(p,x,a,v,c){x=xWz(x,v);x!=null&&(a=uwN(p,a),c(x,p),VcJ(p,a))}; Ip8=function(){var p=pN;this.U=jtz;this.isRepeated=0;this.Z=Ub;this.defaultValue=void 0;this.j=p.messageId!=null?n$:void 0}; Mvx=function(p,x){return function(a,v){var c={PS:!0};v&&Object.assign(c,v);a=gYo(a,void 0,void 0,c);try{var J=new p,R=J.l$;oV(x)(R,a);var d=J}finally{a.free()}return d}}; WBb=function(p){return function(){var x=new eYz;bw8(this.l$,x,SP(Op,GA,Ni,p));IV(x,x.U.end());for(var a=new Uint8Array(x.Z),v=x.j,c=v.length,J=0,R=0;R-1)return x.apply(null,g.lf(a));try{return p.U=p.j.U.now(),x.apply(null,g.lf(a))}finally{p.B+=p.j.U.now()-p.U,p.U=-1,p.Z+=1}}}; DW1=function(p,x){this.Z=p;this.j=x;this.U=new kL8(p)}; UWg=function(){this.U={}}; TIg=function(){var p=sT().flags,x=Hw1;p=p.U[x.key];if(x.valueType==="proto"){try{var a=JSON.parse(p);if(Array.isArray(a))return a}catch(v){}return x.defaultValue}return typeof p===typeof x.defaultValue?p:x.defaultValue}; fpT=function(){this.j=void 0;this.Z=this.S=0;this.C=-1;this.Oz=new Uz;HD(this.Oz,"mv",Qt1).U=!0;HD(this.Oz,"omid",Sg);HD(this.Oz,"epoh",Sg).U=!0;HD(this.Oz,"epph",Sg).U=!0;HD(this.Oz,"umt",Sg).U=!0;HD(this.Oz,"phel",Sg).U=!0;HD(this.Oz,"phell",Sg).U=!0;HD(this.Oz,"oseid",mWb).U=!0;var p=this.Oz;p.U.sloi||(p.U.sloi=new kr);p.U.sloi.U=!0;HD(this.Oz,"mm",vB);HD(this.Oz,"ovms",SaN).U=!0;HD(this.Oz,"xdi",Sg).U=!0;HD(this.Oz,"amp",Sg).U=!0;HD(this.Oz,"prf",Sg).U=!0;HD(this.Oz,"gtx",Sg).U=!0;HD(this.Oz, "mvp_lv",Sg).U=!0;HD(this.Oz,"ssmol",Sg).U=!0;HD(this.Oz,"fmd",Sg).U=!0;HD(this.Oz,"gen204simple",Sg);this.U=new DW1(UO(),this.Oz);this.B=!1;this.flags=new UWg}; sT=function(){return kG(fpT)}; CPQ=function(p,x,a,v){if(Math.random()<(v||p.U))try{if(a instanceof L$)var c=a;else c=new L$,Bq(a,function(R,d){var b=c,r=b.B++;R=YG(d,R);b.U.push(r);b.Z[r]=R}); var J=c.Wh(p.Z,"pagead2.googlesyndication.com","/pagead/gen_204?id="+x+"&");J&&(UO(),lMI(J))}catch(R){}}; XYg=function(p,x,a){a=a===void 0?{}:a;this.error=p;this.meta=a;this.context=x.context;this.msg=x.message||"";this.id=x.id||"jserror"}; iwx=function(){var p=p===void 0?g.Fg:p;return(p=p.performance)&&p.now&&p.timing?Math.floor(p.now()+p.timing.navigationStart):g.BQ()}; ok1=function(){var p=p===void 0?g.Fg:p;return(p=p.performance)&&p.now?p.now():null}; tvT=function(p,x,a){this.label=p;this.type=x;this.value=a;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; J1=function(){var p=window;this.events=[];this.Z=p||g.Fg;var x=null;p&&(p.google_js_reporting_queue=p.google_js_reporting_queue||[],this.events=p.google_js_reporting_queue,x=p.google_measure_js_timing);this.U=cB()||(x!=null?x:Math.random()<1)}; zl_=function(p){p&&RP&&cB()&&(RP.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_start"),RP.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_end"))}; KN=function(p,x,a,v,c,J,R){var d="";p&&(d+=p+":");a&&(d+="//",x&&(d+=x+"@"),d+=a,v&&(d+=":"+v));c&&(d+=c);J&&(d+="?"+J);R&&(d+="#"+R);return d}; g.d3=function(p){return p.match(wYo)}; EkU=function(p){return p?decodeURI(p):p}; g.b$=function(p){return EkU(g.d3(p)[3]||null)}; r3=function(p){return EkU(g.d3(p)[5]||null)}; g.ybQ=function(p){p=g.d3(p);return KN(p[1],p[2],p[3],p[4])}; BB=function(p){p=g.d3(p);return KN(null,null,null,null,p[5],p[6],p[7])}; gkN=function(p){var x=p.indexOf("#");return x<0?p:p.slice(0,x)}; l$=function(p,x){if(p){p=p.split("&");for(var a=0;a=0){var J=p[a].substring(0,v);c=p[a].substring(v+1)}else J=p[a];x(J,c?f9(c):"")}}}; LN=function(p,x){if(!x)return p;var a=p.indexOf("#");a<0&&(a=p.length);var v=p.indexOf("?");if(v<0||v>a){v=a;var c=""}else c=p.substring(v+1,a);p=[p.slice(0,v),c,p.slice(a)];a=p[1];p[1]=x?a?a+"&"+x:x:a;return p[0]+(p[1]?"?"+p[1]:"")+p[2]}; Yx=function(p,x,a){if(Array.isArray(x))for(var v=0;v=0&&xa)c=a;v+=x.length+1;return f9(p.slice(v,c!==-1?c:0))}; UT=function(p,x){for(var a=p.search(kx),v=0,c,J=[];(c=WB(p,v,x,a))>=0;)J.push(p.substring(v,c)),v=Math.min(p.indexOf("&",c)+1||a,a);J.push(p.slice(v));return J.join("").replace(Ow_,"$1")}; NIb=function(p,x,a){return IP(UT(p,x),x,a)}; Abx=function(){var p=HB;this.U=TJ;this.tT="jserror";this.gt=!0;this.X3=null;this.Z=this.p6;this.x$=p===void 0?null:p}; PPJ=function(p,x,a){var v=QV;return aP(sT().U.U,function(){try{if(v.x$&&v.x$.U){var c=v.x$.start(p.toString(),3);var J=x();v.x$.end(c)}else J=x()}catch(d){var R=v.gt;try{zl_(c),R=v.Z(p,new mw(SL(d)),void 0,a)}catch(b){v.p6(217,b)}if(!R)throw d;}return J})()}; fN=function(p,x,a,v){return aP(sT().U.U,function(){var c=g.g_.apply(0,arguments);return PPJ(p,function(){return x.apply(a,c)},v)})}; SL=function(p){var x=p.toString();p.name&&x.indexOf(p.name)==-1&&(x+=": "+p.name);p.message&&x.indexOf(p.message)==-1&&(x+=": "+p.message);if(p.stack)a:{p=p.stack;var a=x;try{p.indexOf(a)==-1&&(p=a+"\n"+p);for(var v;p!=v;)v=p,p=p.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");x=p.replace(/\n */g,"\n");break a}catch(c){x=a;break a}x=void 0}return x}; mw=function(p){XYg.call(this,Error(p),{message:p})}; qaI=function(){XU&&typeof XU.google_measure_js_timing!="undefined"&&(XU.google_measure_js_timing||HB.disable())}; nk_=function(p){QV.X3=function(x){g.ej(p,function(a){a(x)})}}; elb=function(p,x){return PPJ(p,x)}; CN=function(p,x){return fN(p,x)}; Xp=function(p,x,a,v){QV.p6(p,x,a,v)}; i$=function(){return Date.now()-uUz}; VvU=function(){var p=sT().j,x=oP>=0?i$()-oP:-1,a=t1?i$()-zJ:-1,v=w3>=0?i$()-w3:-1;if(p==947190542)return 100;if(p==79463069)return 200;p=[2E3,4E3];var c=[250,500,1E3];Xp(637,Error(),.001);var J=x;a!=-1&&a1500&&v<4E3?500:R}; ET=function(p,x,a){var v=new Ea(0,0,0,0);this.time=p;this.volume=null;this.j=x;this.U=v;this.Z=a}; yV=function(p,x,a,v,c,J,R,d){this.B=p;this.V=x;this.j=a;this.S=v;this.U=c;this.C=J;this.Z=R;this.Y=d}; pqU=function(p){var x=p!==p.top,a=p.top===sJg(p),v=-1,c=0;if(x&&a&&p.top.mraid){v=3;var J=p.top.mraid}else v=(J=p.mraid)?x?a?2:1:0:-1;J&&(J.IS_GMA_SDK||(c=2),Xo1(FBI,function(R){return typeof J[R]==="function"})||(c=1)); return{mY:J,compatibility:c,p57:v}}; xvI=function(){var p=window.document;return p&&typeof p.elementFromPoint==="function"}; $vJ=function(p,x,a){if(p&&x!==null&&x!=x.top){if(!x.top)return new g.Ps(-12245933,-12245933);x=x.top}try{return(a===void 0?0:a)?(new g.Ps(x.innerWidth,x.innerHeight)).round():iGb(x||window).round()}catch(v){return new g.Ps(-12245933,-12245933)}}; g3=function(p,x,a){try{if(p){if(!x.top)return new Ea(-12245933,-12245933,-12245933,-12245933);x=x.top}var v=$vJ(p,x,a),c=v.height,J=v.width;if(J===-12245933)return new Ea(J,J,J,J);var R=$k(x.document);var d=tjI(R.U);var b=d.x,r=d.y;return new Ea(r,b+J,r+c,b)}catch(B){return new Ea(-12245933,-12245933,-12245933,-12245933)}}; Zz=function(p,x){x=Math.pow(10,x);return Math.floor(p*x)/x}; aSN=function(p){return new Ea(p.top,p.right,p.bottom,p.left)}; sT1=function(p){var x=p.top||0,a=p.left||0;return new Ea(x,a+(p.width||0),x+(p.height||0),a)}; GJ=function(p){return p!=null&&p>=0&&p<=1}; vGI=function(){var p=g.Ez();return p?OT("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(x){return oJ(p,x)})||oJ(p,"OMI/")&&!oJ(p,"XiaoMi/")?!0:oJ(p,"Presto")&&oJ(p,"Linux")&&!oJ(p,"X11")&&!oJ(p,"Android")&&!oJ(p,"Mobi"):!1}; cIb=function(){this.j=!rF(XU.top);this.isMobileDevice=bN()||uO1();var p=lN();this.domain=p.length>0&&p[p.length-1]!=null&&p[p.length-1].url!=null?g.b$(p[p.length-1].url)||"":"";this.U=new Ea(0,0,0,0);this.B=new g.Ps(0,0);this.C=new g.Ps(0,0);this.V=new Ea(0,0,0,0);this.frameOffset=new g.Ng(0,0);this.S=0;this.Y=!1;this.Z=!(!XU||!pqU(XU).mY);this.update(XU)}; JI1=function(p,x){x&&x.screen&&(p.B=new g.Ps(x.screen.width,x.screen.height))}; RhN=function(p,x){a:{var a=p.U?new g.Ps(yU(p.U),p.U.getHeight()):new g.Ps(0,0);x=x===void 0?XU:x;x!==null&&x!=x.top&&(x=x.top);var v=0,c=0;try{var J=x.document,R=J.body,d=J.documentElement;if(J.compatMode=="CSS1Compat"&&d.scrollHeight)v=d.scrollHeight!=a.height?d.scrollHeight:d.offsetHeight,c=d.scrollWidth!=a.width?d.scrollWidth:d.offsetWidth;else{var b=d.scrollHeight,r=d.scrollWidth,B=d.offsetHeight,l=d.offsetWidth;d.clientHeight!=B&&(b=R.scrollHeight,r=R.scrollWidth,B=R.offsetHeight,l=R.offsetWidth); b>a.height?b>B?(v=b,c=r):(v=B,c=l):b0||p.Y)return!0;p=UO().Z.isVisible();var x=JI(A1)===0;return p||x}; Nc=function(){return kG(cIb)}; qc=function(p){this.j=p;this.Z=0;this.U=null}; nN=function(p,x,a){this.j=p;this.V6=a===void 0?"na":a;this.C=[];this.isInitialized=!1;this.B=new ET(-1,!0,this);this.U=this;this.Y=x;this.Zt=this.T=!1;this.F5="uk";this.u$=!1;this.S=!0}; eL=function(p,x){g.kt(p.C,x)||(p.C.push(x),x.XJ(p.U),x.uI(p.B),x.S6()&&(p.T=!0))}; K2I=function(p){p=p.U;p.rJ();p.HP();var x=Nc();x.V=g3(!1,p.j,x.isMobileDevice);RhN(Nc(),p.j);p.B.U=p.So()}; dvz=function(p){p.T=p.C.length?OT(p.C,function(x){return x.S6()}):!1}; b$8=function(p){var x=g.CG(p.C);g.ej(x,function(a){a.uI(p.B)})}; u$=function(p){var x=g.CG(p.C);g.ej(x,function(a){a.XJ(p.U)}); p.U!=p||b$8(p)}; VV=function(p,x,a,v){this.element=p;this.U=new Ea(0,0,0,0);this.j=null;this.S=new Ea(0,0,0,0);this.Z=x;this.Oz=a;this.u$=v;this.O7=!1;this.timestamp=-1;this.T=new yV(x.B,this.element,this.U,new Ea(0,0,0,0),0,0,i$(),0);this.C=void 0}; rIJ=function(p,x){return p.C?new Ea(Math.max(x.top+p.C.top,x.top),Math.min(x.left+p.C.right,x.right),Math.min(x.top+p.C.bottom,x.bottom),Math.max(x.left+p.C.left,x.left)):x.clone()}; Fp=function(p){this.C=!1;this.U=p;this.B=function(){}}; BFU=function(p,x,a){this.j=a===void 0?0:a;this.Z=p;this.U=x==null?"":x}; lST=function(p){switch(Math.trunc(p.j)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; L2N=function(p,x){return p.jx.j?!1:p.Zx.Z?!1:typeof p.Utypeof x.U?!1:p.U0?v[a]-v[a-1]:v[a]})}; re=function(){this.Z=new cS;this.V6=this.hG=0;this.gr=new vS;this.pI=this.V=-1;this.HO=1E3;this.T4=new cS([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.F5=this.O7=-1}; BS=function(p,x){return Dxx(p.Z,x===void 0?!0:x)}; lY=function(p,x,a,v){var c=c===void 0?!1:c;a=fN(v,a);cq(p,x,a,{capture:c})}; M7=function(p,x){x=L2(x);return x===0?0:L2(p)/x}; L2=function(p){return Math.max(p.bottom-p.top,0)*Math.max(p.right-p.left,0)}; T41=function(p,x){if(!p||!x)return!1;for(var a=0;p!==null&&a++<100;){if(p===x)return!0;try{if(p=p.parentElement||p){var v=xk(p),c=v&&rI(v),J=c&&c.frameElement;J&&(p=J)}}catch(R){break}}return!1}; QpI=function(p,x,a){if(!p||!x)return!1;x=Zp(p.clone(),-x.left,-x.top);p=(x.left+x.right)/2;x=(x.top+x.bottom)/2;rF(window.top)&&window.top&&window.top.document&&(window=window.top);if(!xvI())return!1;p=window.document.elementFromPoint(p,x);if(!p)return!1;x=(x=(x=xk(a))&&x.defaultView&&x.defaultView.frameElement)&&T41(x,p);var v=p===a;p=!v&&p&&Ua(p,function(c){return c===a}); return!(x||v||p)}; mxb=function(p,x,a,v){return Nc().j?!1:yU(p)<=0||p.getHeight()<=0?!0:a&&v?elb(208,function(){return QpI(p,x,a)}):!1}; WS=function(p,x,a){g.y.call(this);this.position=SCI.clone();this.mL=this.YY();this.dc=-2;this.timeCreated=Date.now();this.IS=-1;this.TX=x;this.qH=null;this.My=!1;this.wx=null;this.opacity=-1;this.requestSource=a;this.vLd=!1;this.jb=function(){}; this.m7=function(){}; this.ZM=new yOo;this.ZM.m9=p;this.ZM.U=p;this.bI=!1;this.f$={uw:null,Fb:null};this.Xf=!0;this.v_=null;this.N0=this.Ml=!1;sT().S++;this.I5=this.Qt();this.jP=-1;this.qg=null;this.hasCompleted=this.ql=!1;this.Oz=new Uz;g1J(this.Oz);fYg(this);this.requestSource==1?Ti(this.Oz,"od",1):Ti(this.Oz,"od",0)}; fYg=function(p){p=p.ZM.m9;var x;if(x=p&&p.getAttribute)x=/-[a-z]/.test("googleAvInapp")?!1:C3_&&p.dataset?"googleAvInapp"in p.dataset:p.hasAttribute?p.hasAttribute("data-"+lX_()):!!p.getAttribute("data-"+lX_());x&&(Nc().Z=!0)}; k6=function(p,x){x!=p.N0&&(p.N0=x,p=Nc(),x?p.S++:p.S>0&&p.S--)}; X3x=function(p,x){if(p.qg){if(x.getName()===p.qg.getName())return;p.qg.dispose();p.qg=null}x=x.create(p.ZM.U,p.Oz,p.S6());if(x=x!=null&&x.observe()?x:null)p.qg=x}; i4I=function(p,x,a){if(!p.qH||p.TX==-1||x.Z===-1||p.qH.Z===-1)return 0;p=x.Z-p.qH.Z;return p>a?0:p}; og1=function(p,x,a){if(p.qg){p.qg.Rh();var v=p.qg.T,c=v.B,J=c.U;if(v.S!=null){var R=v.j;p.wx=new g.Ng(R.left-J.left,R.top-J.top)}J=p.H1()?Math.max(v.U,v.C):v.U;R={};c.volume!==null&&(R.volume=c.volume);c=p.UW(v);p.qH=v;p.Yg(J,x,a,!1,R,c,v.Y)}}; tr8=function(p){if(p.My&&p.v_){var x=QM(p.Oz,"od")==1,a=Nc().U,v=p.v_,c=p.qg?p.qg.getName():"ns",J=p.wx,R=new g.Ps(yU(a),a.getHeight());a=p.H1();p={WhO:c,wx:J,sB$:R,H1:a,D3:p.I5.D3,ZGO:x};if(x=v.Z){x.Rh();c=x.T;J=c.B.U;var d=R=null;c.S!=null&&J&&(R=c.j,R=new g.Ng(R.left-J.left,R.top-J.top),d=new g.Ps(J.right-J.left,J.bottom-J.top));c=a?Math.max(c.U,c.C):c.U;a={WhO:x.getName(),wx:R,sB$:d,H1:a,ZGO:!1,D3:c}}else a=null;a&&k6Q(v,p,a)}}; zLo=function(p,x,a){x&&(p.jb=x);a&&(p.m7=a)}; g.DB=function(){}; g.UM=function(p){return{value:p,done:!1}}; w3z=function(){this.B=this.U=this.j=this.Z=this.C=0}; Eg1=function(p){var x={};var a=g.BQ()-p.C;x=(x.ptlt=a,x);(a=p.Z)&&(x.pnk=a);(a=p.j)&&(x.pnc=a);(a=p.B)&&(x.pnmm=a);(p=p.U)&&(x.pns=p);return x}; y7T=function(){VX.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; HS=function(p){return GJ(p.volume)&&p.volume>0}; Tv=function(p,x,a,v){a=a===void 0?!0:a;v=v===void 0?function(){return!0}:v; return function(c){var J=c[p];if(Array.isArray(J)&&v(c))return ggJ(J,x,a)}}; Q7=function(p,x){return function(a){return x(a)?a[p]:void 0}}; Z4f=function(p){return function(x){for(var a=0;a0?J[c-1]+1:0,v+1).reduce(function(R,d){return R+d},0)})}; Ge1=function(){this.Z=this.U=""}; O48=function(){}; SU=function(p,x){var a={};if(p!==void 0)if(x!=null)for(var v in x){var c=x[v];v in Object.prototype||c!=null&&(a[v]=typeof c==="function"?c(p):p[c])}else g.IJ(a,p);return $6(x6(new p2,a))}; N4g=function(){var p={};this.Z=(p.vs=[1,0],p.vw=[0,1],p.am=[2,2],p.a=[4,4],p.f=[8,8],p.bm=[16,16],p.b=[32,32],p.avw=[0,64],p.avs=[64,0],p.pv=[256,256],p.gdr=[0,512],p.p=[0,1024],p.r=[0,2048],p.m=[0,4096],p.um=[0,8192],p.ef=[0,16384],p.s=[0,32768],p.pmx=[0,16777216],p.mut=[33554432,33554432],p.umutb=[67108864,67108864],p.tvoff=[134217728,134217728],p);this.U={};for(var x in this.Z)this.Z[x][1]>0&&(this.U[x]=0);this.j=0}; f2=function(p,x){var a=p.Z[x],v=a[1];p.j+=a[0];v>0&&p.U[x]==0&&(p.U[x]=1)}; A7f=function(p){var x=g.KZ(p.Z),a=0,v;for(v in p.U)g.kt(x,v)&&p.U[v]==1&&(a+=p.Z[v][1],p.U[v]=2);return a}; P3J=function(p){var x=0,a;for(a in p.U){var v=p.U[a];if(v==1||v==2)x+=p.Z[a][1]}return x}; C2=function(){this.U=this.Z=0}; XB=function(){re.call(this);this.j=new vS;this.tG=this.T=this.u$=0;this.Y=-1;this.oa=new vS;this.C=new vS;this.U=new cS;this.S=this.B=-1;this.Zt=new vS;this.HO=2E3;this.qT=new C2;this.Ra=new C2;this.LI=new C2}; oZ=function(p,x,a){var v=p.tG;t1||a||p.Y==-1||(v+=x-p.Y);return v}; qC_=function(){this.j=!1}; tg=function(p,x){this.j=!1;this.B=p;this.T=x;this.C=0}; zv=function(p,x){tg.call(this,p,x);this.V=[]}; ngg=function(){}; we=function(){}; EM=function(p,x,a,v){VV.call(this,p,x,a,v)}; y7=function(p,x,a){VV.call(this,null,p,x,a);this.Y=p.isActive();this.V=0}; ge=function(p){return[p.top,p.left,p.bottom,p.right]}; ZB=function(p,x,a,v,c,J){J=J===void 0?new we:J;WS.call(this,x,a,v);this.b0=c;this.G6=0;this.hR={};this.NG=new N4g;this.kQ={};this.ET="";this.LI=null;this.Zp=!1;this.U=[];this.Xn=J.Z();this.S=J.j();this.B=null;this.j=-1;this.V6=this.T=void 0;this.pI=this.Zt=0;this.F5=-1;this.HO=this.Ra=!1;this.u$=this.Y=this.Z=this.nC=this.US=0;new cS;this.qT=this.tG=0;this.gr=-1;this.DM=0;this.V=g.ot;this.O7=[this.YY()];this.XV=2;this.PA={};this.PA.pause="p";this.PA.resume="r";this.PA.skip="s";this.PA.mute="m";this.PA.unmute= "um";this.PA.exitfullscreen="ef";this.C=null;this.T4=this.oa=!1;this.OS=Math.floor(Date.now()/1E3-1704067200);this.hG=0}; Gv=function(p){p.hasCompleted=!0;p.DM!=0&&(p.DM=3)}; OM=function(p){return p===void 0?p:Number(p)?Zz(p,3):0}; N7=function(p,x){return p.O7[x!=null&&xMath.max(1E4,p.j/3)?0:x);var a=p.V(p)||{};a=a.currentTime!==void 0?a.currentTime:p.Zt;var v=a-p.Zt,c=0;v>=0?(p.pI+=x,p.qT+=Math.max(x-v,0),c=Math.min(v,p.pI)):p.tG+=Math.abs(v);v!=0&&(p.pI=0);p.gr==-1&&v>0&&(p.gr=w3>=0?i$()-w3:-1);p.Zt=a;return c}; Vrx=function(p,x){OT(p.S,function(a){return a.B==x.B})||p.S.push(x)}; Fef=function(p){var x=K2(p.DI().U,1);return Ag(p,x)}; Ag=function(p,x,a){return x>=15E3?!0:p.Ra?(a===void 0?0:a)?!0:p.j>0?x>=p.j/2:p.F5>0?x>=p.F5:!1:!1}; pMf=function(p){var x=Zz(p.I5.D3,2),a=p.NG.j,v=p.I5,c=N7(p),J=OM(c.B),R=OM(c.S),d=OM(v.volume),b=Zz(c.V,2),r=Zz(c.pI,2),B=Zz(v.D3,2),l=Zz(c.O7,2),L=Zz(c.F5,2);v=Zz(v.vU,2);var Y=p.pn().clone().round();p=p.qg&&p.qg.j?(p.qg?p.qg.j:null).clone().round():null;c=BS(c,!1);return{Pg$:x,Vv:a,cZ:J,QC:R,TP:d,HZ:b,Gm:r,D3:B,ra:l,R0:L,vU:v,position:Y,J9:p,yC:c}}; $CT=function(p,x){xCf(p.U,x,function(){return{Pg$:0,Vv:void 0,cZ:-1,QC:-1,TP:-1,HZ:-1,Gm:-1,D3:-1,ra:-1,R0:-1,vU:-1,position:void 0,J9:void 0,yC:[]}}); p.U[x]=pMf(p)}; xCf=function(p,x,a){for(var v=p.length;v0?1:0;l.atos= Jg(r.U);l.ssb=Jg(r.T4,!1);l.amtos=Dxx(r.U,!1);l.uac=p.US;l.vpt=r.j.U;B=="nio"&&(l.nio=1,l.avms="nio");l.gmm="4";l.gdr=Ag(p,r.j.U,!0)?1:0;l.efpf=p.XV;if(B=="gsv"||B=="nis")B=p.qg,B.V>0&&(l.nnut=B.V);l.tcm=eLg(p);l.nmt=p.tG;l.bt=p.qT;l.pst=p.gr;l.vpaid=p.T;l.dur=p.j;l.vmtime=p.Zt;l.is=p.NG.j;p.U.length>=1&&(l.i0=p.U[0].Vv,l.a0=[p.U[0].TP],l.c0=[p.U[0].D3],l.ss0=[p.U[0].vU],B=p.U[0].position,J=p.U[0].J9,l.p0=B?ge(B):void 0,B&&J&&!gI(J,B)&&(l.cp0=ge(J)));p.U.length>=2&&(l.i1=p.U[1].Vv,l.a1=n2(p.U[1].cZ, p.U[1].TP,p.U[1].QC),l.c1=n2(p.U[1].HZ,p.U[1].D3,p.U[1].Gm),l.ss1=n2(p.U[1].ra,p.U[1].vU,p.U[1].R0),B=p.U[1].position,J=p.U[1].J9,l.p1=B?ge(B):void 0,B&&J&&!gI(J,B)&&(l.cp1=ge(J)),l.mtos1=p.U[1].yC);p.U.length>=3&&(l.i2=p.U[2].Vv,l.a2=n2(p.U[2].cZ,p.U[2].TP,p.U[2].QC),l.c2=n2(p.U[2].HZ,p.U[2].D3,p.U[2].Gm),l.ss2=n2(p.U[2].ra,p.U[2].vU,p.U[2].R0),B=p.U[2].position,J=p.U[2].J9,l.p2=B?ge(B):void 0,B&&J&&!gI(J,B)&&(l.cp2=ge(J)),l.mtos2=p.U[2].yC);p.U.length>=4&&(l.i3=p.U[3].Vv,l.a3=n2(p.U[3].cZ,p.U[3].TP, p.U[3].QC),l.c3=n2(p.U[3].HZ,p.U[3].D3,p.U[3].Gm),l.ss3=n2(p.U[3].ra,p.U[3].vU,p.U[3].R0),B=p.U[3].position,J=p.U[3].J9,l.p3=B?ge(B):void 0,B&&J&&!gI(J,B)&&(l.cp3=ge(J)),l.mtos3=p.U[3].yC);l.cs=P3J(p.NG);x&&(l.ic=A7f(p.NG),l.dvpt=r.j.Z,l.dvs=bY(r.Z,.5),l.dfvs=bY(r.Z,1),l.davs=bY(r.U,.5),l.dafvs=bY(r.U,1),a&&(r.j.Z=0,Uxb(r.Z),Uxb(r.U)),p.nZ()&&(l.dtos=r.u$,l.dav=r.T,l.dtoss=p.G6+1,a&&(r.u$=0,r.T=0,p.G6++)),l.dat=r.C.Z,l.dft=r.Zt.Z,a&&(r.C.Z=0,r.Zt.Z=0));l.ps=[d.C.width,d.C.height];l.bs=[yU(d.U),d.U.getHeight()]; l.scs=[d.B.width,d.B.height];l.dom=d.domain;p.nC&&(l.vds=p.nC);if(p.S.length>0||p.Xn)x=g.CG(p.S),p.Xn&&x.push(p.Xn),l.pings=g.IT(x,function(L){return L.toString()}); x=g.IT(g.mC(p.S,function(L){return L.S()}),function(L){return L.getId()}); HUT(x);l.ces=x;p.Z&&(l.vmer=p.Z);p.Y&&(l.vmmk=p.Y);p.u$&&(l.vmiec=p.u$);l.avms=p.qg?p.qg.getName():"ns";p.qg&&g.IJ(l,p.qg.ZV());v?(l.c=Zz(p.I5.D3,2),l.ss=Zz(p.I5.vU,2)):l.tth=i$()-cjf;l.mc=Zz(r.pI,2);l.nc=Zz(r.V,2);l.mv=OM(r.S);l.nv=OM(r.B);l.lte=Zz(p.dc,2);v=N7(p,c);BS(r);l.qmtos=BS(v);l.qnc=Zz(v.V,2);l.qmv=OM(v.S);l.qnv=OM(v.B);l.qas=v.B>0?1:0;l.qi=p.ET;l.avms||(l.avms="geo");l.psm=r.qT.U;l.psv=r.qT.getValue();l.psfv=r.Ra.getValue();l.psa=r.LI.getValue();b=E1b(b.Oz);b.length&&(l.veid=b);p.C&&g.IJ(l, Eg1(p.C));l.avas=p.SN();l.vs=p.iz();l.co=Jj1(p);l.tm=r.hG;l.tu=r.V6;return l}; aiN=function(p,x){if(g.kt(R_N,x))return!0;var a=p.hR[x];return a!==void 0?(p.hR[x]=!0,!a):!1}; Jj1=function(p){var x=p.hG.toString(10).padStart(2,"0");x=""+p.OS+x;p.hG<99&&p.hG++;return x}; dC8=function(){this.U={};var p=rI();eU(this,p,document);var x=KOo();try{if("1"==x){for(var a=p.parent;a!=p.top;a=a.parent)eU(this,a,a.document);eU(this,p.top,p.top.document)}}catch(v){}}; KOo=function(){var p=document.documentElement;try{if(!rF(rI().top))return"2";var x=[],a=rI(p.ownerDocument);for(p=a;p!=a.top;p=p.parent)if(p.frameElement)x.push(p.frameElement);else break;return x&&x.length!=0?"1":"0"}catch(v){return"2"}}; eU=function(p,x,a){lY(a,"mousedown",function(){return bEJ(p)},301); lY(x,"scroll",function(){return rjb(p)},302); lY(a,"touchmove",function(){return Bmb(p)},303); lY(a,"mousemove",function(){return lio(p)},304); lY(a,"keydown",function(){return LOI(p)},305)}; bEJ=function(p){g.FO(p.U,function(x){x.j>1E5||++x.j})}; rjb=function(p){g.FO(p.U,function(x){x.U>1E5||++x.U})}; Bmb=function(p){g.FO(p.U,function(x){x.U>1E5||++x.U})}; LOI=function(p){g.FO(p.U,function(x){x.Z>1E5||++x.Z})}; lio=function(p){g.FO(p.U,function(x){x.B>1E5||++x.B})}; Yb1=function(){this.U=[];this.Z=[]}; uY=function(p,x){return g.ME(p.U,function(a){return a.ET==x})}; h_f=function(p,x){return x?g.ME(p.U,function(a){return a.ZM.m9==x}):null}; j4o=function(p,x){return g.ME(p.Z,function(a){return a.Qe()==2&&a.ET==x})}; FB=function(){var p=V7;return p.U.length==0?p.Z:p.Z.length==0?p.U:g.fG(p.Z,p.U)}; Ii1=function(p,x){p=x.Qe()==1?p.U:p.Z;var a=Iv(p,function(v){return v==x}); return a!=-1?(p.splice(a,1),x.qg&&x.qg.unobserve(),x.dispose(),!0):!1}; MTf=function(p){var x=V7;if(Ii1(x,p)){switch(p.Qe()){case 0:var a=function(){return null}; case 2:a=function(){return j4o(x,p.ET)}; break;case 1:a=function(){return uY(x,p.ET)}}for(var v=a();v;v=a())Ii1(x,v)}}; WON=function(p){var x=V7;p=g.mC(p,function(a){return!h_f(x,a.ZM.m9)}); x.U.push.apply(x.U,g.lf(p))}; kMN=function(p){var x=[];g.ej(p,function(a){OT(V7.U,function(v){return v.ZM.m9===a.ZM.m9&&v.ET===a.ET})||(V7.U.push(a),x.push(a))})}; p8=function(){this.U=this.Z=null}; DCg=function(p,x){function a(v,c){x(v,c)} if(p.Z==null)return!1;p.U=g.ME(p.Z,function(v){return v!=null&&v.TK()}); p.U&&(p.U.init(a)?K2I(p.U.U):x(p.U.U.Sz(),p.U));return p.U!=null}; xX=function(p){p=UCU(p);Fp.call(this,p.length?p[p.length-1]:new nN(XU,0));this.j=p;this.Z=null}; UCU=function(p){if(!p.length)return[];p=(0,g.mC)(p,function(a){return a!=null&&a.P6()}); for(var x=1;xa.time?x:a},p[0])}; cV=function(p){p=p===void 0?XU:p;Fp.call(this,new nN(p,2))}; JF=function(){var p=mCz();nN.call(this,XU.top,p,"geo")}; mCz=function(){sT();var p=Nc();return p.j||p.Z?0:2}; SbJ=function(){}; Ri=function(){this.done=!1;this.U={g6:0,kJ:0,HAI:0,Cc:0,iJ:-1,xR:0,YR:0,Q$:0,FhT:0};this.C=null;this.S=!1;this.j=null;this.V=0;this.Z=new qc(this)}; dc=function(){var p=K8;p.S||(p.S=!0,fif(p,function(){return p.B.apply(p,g.lf(g.g_.apply(0,arguments)))}),p.B())}; CwI=function(){kG(SbJ);var p=kG(p8);p.U!=null&&p.U.U?K2I(p.U.U):Nc().update(XU)}; b_=function(p,x,a){if(!p.done&&(p.Z.cancel(),x.length!=0)){p.j=null;try{CwI();var v=i$();sT().C=v;if(kG(p8).U!=null)for(var c=0;c=0?i$()-oP:-1,d=i$();c.U.iJ==-1&&(R=d);var b=Nc(),r=sT(),B=mU(r.Oz),l=FB();try{if(l.length>0){var L=b.U;L&&(B.bs=[yU(L),L.getHeight()]);var Y=b.C;Y&&(B.ps=[Y.width,Y.height]);XU.screen&&(B.scs=[XU.screen.width,XU.screen.height])}else B.url=encodeURIComponent(XU.location.href.substring(0,512)),J.referrer&&(B.referrer=encodeURIComponent(J.referrer.substring(0,512))); B.tt=R;B.pt=oP;B.bin=r.Z;XU.google_osd_load_pub_page_exp!==void 0&&(B.olpp=XU.google_osd_load_pub_page_exp);B.deb=[1,c.U.g6,c.U.kJ,c.U.Cc,c.U.iJ,0,c.Z.Z,c.U.xR,c.U.YR,c.U.Q$,c.U.FhT,-1].join(";");B.tvt=iE8(c,d);b.Z&&(B.inapp=1);if(XU!==null&&XU!=XU.top){l.length>0&&(B.iframe_loc=encodeURIComponent(XU.location.href.substring(0,512)));var h=b.V;B.is=[yU(h),h.getHeight()]}}catch(D){B.error=1}K8.j=B}L=g.hp(K8.j);Y=sT().U;QM(Y.j,"prf")==1?(h=new $x,c=Y.U,J=0,c.U>-1&&(J=c.j.U.now()-c.U),h=dm(h,1,b3(c.B+ J),0),c=Y.U,h=dm(h,5,L4(c.U>-1?c.Z+1:c.Z),0),h=dm(h,2,UC(Y.Z.U.j()),"0"),h=dm(h,3,UC(Y.Z.U.Z()),"0"),Y=dm(h,4,UC(Y.Z.U.U()),"0"),h={},Y=(h.pf=g.m2(Y.j()),h)):Y={};g.IJ(L,Y);g.IJ(x,v,a,L,p())}])}; z_U=function(){var p=tTQ||XU;if(!p)return"";var x=[];if(!p.location||!p.location.href)return"";x.push("url="+encodeURIComponent(p.location.href.substring(0,512)));p.document&&p.document.referrer&&x.push("referrer="+encodeURIComponent(p.document.referrer.substring(0,512)));return x.join("&")}; rc=function(){var p="youtube.player.web_20250728_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250728_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250728_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250728_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),x;if(((x=p)==null?void 0:x.length)==2)return p[1];p="youtube.player.web_20250728_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var a;return((a=p)==null?void 0:a.length)==3?"20"+p[1]+p[2]:null}; wMx=function(){return"av.default_js".includes("ima_html5_sdk")?{uY:"ima",Sy:null}:"av.default_js".includes("ima_native_sdk")?{uY:"nima",Sy:null}:"av.default_js".includes("admob-native-video-javascript")?{uY:"an",Sy:null}:"youtube.player.web_20250728_22_RC00".includes("cast_js_sdk")?{uY:"cast",Sy:rc()}:"youtube.player.web_20250728_22_RC00".includes("youtube.player.web")?{uY:"yw",Sy:rc()}:"youtube.player.web_20250728_22_RC00".includes("outstream_web_client")?{uY:"out",Sy:rc()}:"youtube.player.web_20250728_22_RC00".includes("drx_rewarded_web")? {uY:"r",Sy:rc()}:"youtube.player.web_20250728_22_RC00".includes("gam_native_web_video")?{uY:"n",Sy:rc()}:"youtube.player.web_20250728_22_RC00".includes("admob_interstitial_video")?{uY:"int",Sy:rc()}:{uY:"j",Sy:null}}; L8=function(p,x){var a={sv:"967"};BV!==null&&(a.v=BV);a.cb=EDb;a.nas=V7.U.length;a.msg=p;x!==void 0&&(p=yjb(x))&&(a.e=l_[p]);return a}; YX=function(p){return fZ(p,"custom_metric_viewable")}; yjb=function(p){var x=YX(p)?"custom_metric_viewable":p.toLowerCase();return BD(PS,function(a){return a==x})}; gDf=function(){this.U=void 0;this.Z=!1;this.j=0;this.B=-1;this.C="tos"}; OE_=function(p){try{var x=p.split(",");return x.length>g.KZ(ZEJ).length?null:Wq(x,function(a,v){v=v.toLowerCase().split("=");if(v.length!=2||GMU[v[0]]===void 0||!GMU[v[0]](v[1]))throw Error("Entry ("+v[0]+", "+v[1]+") is invalid.");a[v[0]]=v[1];return a},{})}catch(a){return null}}; NmU=function(p,x){if(p.U==void 0)return 0;switch(p.C){case "mtos":return p.Z?de(x.U,p.U):de(x.Z,p.U);case "tos":return p.Z?K2(x.U,p.U):K2(x.Z,p.U)}return 0}; hF=function(p,x,a,v){tg.call(this,x,v);this.V=p;this.Y=a}; js=function(){}; Ii=function(p){tg.call(this,"fully_viewable_audible_half_duration_impression",p)}; M$=function(p){this.U=p}; WV=function(p,x){tg.call(this,p,x)}; kX=function(p){zv.call(this,"measurable_impression",p)}; Df=function(){M$.apply(this,arguments)}; Ut=function(p,x,a){y7.call(this,p,x,a)}; HV=function(p){p=p===void 0?XU:p;Fp.call(this,new nN(p,2))}; TB=function(p,x,a){y7.call(this,p,x,a)}; Qa=function(p){p=p===void 0?XU:p;Fp.call(this,new nN(p,2))}; mY=function(){nN.call(this,XU,2,"mraid");this.qT=0;this.pI=this.O7=!1;this.V=null;this.Z=pqU(this.j);this.B.U=new Ea(0,0,0,0);this.hG=!1}; Ss=function(p,x,a){p.Cj("addEventListener",x,a)}; nDb=function(p){sT().B=!!p.Cj("isViewable");Ss(p,"viewableChange",AjN);p.Cj("getState")==="loading"?Ss(p,"ready",Pwf):qb8(p)}; qb8=function(p){typeof p.Z.mY.AFMA_LIDAR==="string"?(p.O7=!0,e_Q(p)):(p.Z.compatibility=3,p.V="nc",p.fail("w"))}; e_Q=function(p){p.pI=!1;var x=QM(sT().Oz,"rmmt")==1,a=!!p.Cj("isViewable");(x?!a:1)&&UO().setTimeout(CN(524,function(){p.pI||(uu1(p),Xp(540,Error()),p.V="mt",p.fail("w"))}),500); VT8(p);Ss(p,p.Z.mY.AFMA_LIDAR,FOU)}; VT8=function(p){var x=QM(sT().Oz,"sneio")==1,a=p.Z.mY.AFMA_LIDAR_EXP_1!==void 0,v=p.Z.mY.AFMA_LIDAR_EXP_2!==void 0;(x=x&&v)&&(p.Z.mY.AFMA_LIDAR_EXP_2=!0);a&&(p.Z.mY.AFMA_LIDAR_EXP_1=!x)}; uu1=function(p){p.Cj("removeEventListener",p.Z.mY.AFMA_LIDAR,FOU);p.O7=!1}; pJ1=function(p,x){if(p.Cj("getState")==="loading")return new g.Ps(-1,-1);x=p.Cj(x);if(!x)return new g.Ps(-1,-1);p=parseInt(x.width,10);x=parseInt(x.height,10);return isNaN(p)||isNaN(x)?new g.Ps(-1,-1):new g.Ps(p,x)}; Pwf=function(){try{var p=kG(mY);p.Cj("removeEventListener","ready",Pwf);qb8(p)}catch(x){Xp(541,x)}}; FOU=function(p,x){try{var a=kG(mY);a.pI=!0;var v=p?new Ea(p.y,p.x+p.width,p.y+p.height,p.x):new Ea(0,0,0,0);var c=i$(),J=PB();var R=new ET(c,J,a);R.U=v;R.volume=x;a.uI(R)}catch(d){Xp(542,d)}}; AjN=function(p){var x=sT(),a=kG(mY);p&&!x.B&&(x.B=!0,a.hG=!0,a.V&&a.fail("w",!0))}; f8=function(){this.isInitialized=!1;this.U=this.Z=null;var p={};this.V=(p.start=this.ZE,p.firstquartile=this.o6,p.midpoint=this.kx,p.thirdquartile=this.pS,p.complete=this.TE,p.error=this.yL,p.pause=this.DJ,p.resume=this.jn,p.skip=this.Uc,p.viewable_impression=this.GX,p.mute=this.qx,p.unmute=this.qx,p.fullscreen=this.EA,p.exitfullscreen=this.l8,p.fully_viewable_audible_half_duration_impression=this.GX,p.measurable_impression=this.GX,p.abandon=this.DJ,p.engagedview=this.GX,p.impression=this.GX,p.creativeview= this.GX,p.progress=this.qx,p.custom_metric_viewable=this.GX,p.bufferstart=this.DJ,p.bufferfinish=this.jn,p.audio_measurable=this.GX,p.audio_audible=this.GX,p);p={};this.Y=(p.overlay_resize=this.zL,p.abandon=this.PD,p.close=this.PD,p.collapse=this.PD,p.overlay_unmeasurable_impression=function(x){return q7(x,"overlay_unmeasurable_impression",PB())},p.overlay_viewable_immediate_impression=function(x){return q7(x,"overlay_viewable_immediate_impression",PB())},p.overlay_unviewable_impression=function(x){return q7(x, "overlay_unviewable_impression",PB())},p.overlay_viewable_end_of_session_impression=function(x){return q7(x,"overlay_viewable_end_of_session_impression",PB())},p); sT().Z=3;xiN(this);this.j=null}; C8=function(p,x,a,v){p=p.UQ(null,v,!0,x);p.B=a;WON([p]);return p}; $if=function(p,x,a){CfJ(x);var v=p.U;g.ej(x,function(c){var J=g.IT(c.criteria,function(R){var d=OE_(R);if(d==null)R=null;else if(R=new gDf,d.visible!=null&&(R.U=d.visible/100),d.audible!=null&&(R.Z=d.audible==1),d.time!=null){var b=d.timetype=="mtos"?"mtos":"tos",r=ZU_(d.time,"%")?"%":"ms";d=parseInt(d.time,10);r=="%"&&(d/=100);R.setTime(d,r,b)}return R}); OT(J,function(R){return R==null})||Vrx(a,new hF(c.id,c.event,J,v))})}; aT1=function(){var p=[],x=sT();p.push(kG(JF));QM(x.Oz,"mvp_lv")&&p.push(kG(mY));x=[new HV,new Qa];x.push(new xX(p));x.push(new cV(XU));return x}; sVo=function(p){if(!p.isInitialized){p.isInitialized=!0;try{var x=i$(),a=sT(),v=Nc();oP=x;a.j=79463069;p.Z!=="o"&&(tTQ=sJg(XU));if(LU_()){K8.U.kJ=0;K8.U.iJ=i$()-x;var c=aT1(),J=kG(p8);J.Z=c;DCg(J,function(){XH()})?K8.done||(XMT(),eL(J.U.U,p),dc()):v.j?XH():dc()}else wc=!0}catch(R){throw V7.reset(),R; }}}; ya=function(p){K8.Z.cancel();Et=p;K8.done=!0}; Zf=function(p){if(p.Z)return p.Z;var x=kG(p8).U;if(x)switch(x.getName()){case "nis":p.Z="n";break;case "gsv":p.Z="m"}p.Z||(p.Z="h");return p.Z}; GB=function(p,x,a){if(p.U==null)return x.nC|=4,!1;p=v28(p.U,a,x);x.nC|=p;return p==0}; XH=function(){var p=[new cV(XU)],x=kG(p8);x.Z=p;DCg(x,function(){ya("i")})?K8.done||(XMT(),dc()):ya("i")}; cV_=function(p,x){if(!p.Zp){var a=q7(p,"start",PB());a=p.b0.U(a).U;var v={id:"lidarv"};v.r=x;v.sv="967";BV!==null&&(v.v=BV);l$(a,function(c,J){return v[c]=c=="mtos"||c=="tos"?J:encodeURIComponent(J)}); x=z_U();l$(x,function(c,J){return v[c]=encodeURIComponent(J)}); x="//pagead2.googlesyndication.com/pagead/gen_204?"+$6(x6(new p2,v));MVg(x);p.Zp=!0}}; Ot=function(p,x,a){b_(K8,[p],!PB());$CT(p,a);a!=4&&xCf(p.O7,a,p.YY);return q7(p,x,PB())}; xiN=function(p){oD1(function(){var x=JVQ();p.Z!=null&&(x.sdk=p.Z);var a=kG(p8);a.U!=null&&(x.avms=a.U.getName());return x})}; RZg=function(p,x,a,v){var c=h_f(V7,a);c!==null&&c.ET!==x&&(p.T0(c),c=null);c||(x=p.UQ(a,i$(),!1,x),V7.Z.length==0&&(sT().j=79463069),kMN([x]),c=x,c.B=Zf(p),v&&(c.LI=v));return c}; Kub=function(p,x){var a=p[x];a!==void 0&&a>0&&(p[x]=Math.floor(a*1E3))}; JVQ=function(){var p=Nc(),x={},a={},v={};return Object.assign({},(x.sv="967",x),BV!==null&&(a.v=BV,a),(v["if"]=p.j?"1":"0",v.nas=String(V7.U.length),v))}; N$=function(p){tg.call(this,"audio_audible",p)}; AF=function(p){zv.call(this,"audio_measurable",p)}; PV=function(){M$.apply(this,arguments)}; q$=function(){}; diI=function(p){this.U=p}; v28=function(p,x,a){p=p.Z();if(typeof p==="function"){var v={};var c={};v=Object.assign({},BV!==null&&(v.v=BV,v),(c.sv="967",c.cb=EDb,c.e=bM_(x),c));c=q7(a,x,PB());g.IJ(v,c);a.kQ[x]=c;v=a.Qe()==2?IS1(v).join("&"):a.b0.U(v).U;try{return p(a.ET,v,x),0}catch(J){return 2}}else return 1}; bM_=function(p){var x=YX(p)?"custom_metric_viewable":p;p=BD(PS,function(a){return a==x}); return l_[p]}; n8=function(){f8.call(this);this.S=null;this.C=!1;this.B="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; rVQ=function(p,x,a){a=a.opt_configurable_tracking_events;p.U!=null&&Array.isArray(a)&&$if(p,a,x)}; BpU=function(p,x,a){var v=uY(V7,x);v||(v=a.opt_nativeTime||-1,v=C8(p,x,Zf(p),v),a.opt_osdId&&(v.LI=a.opt_osdId));return v}; lTb=function(p,x,a){var v=uY(V7,x);v||(v=C8(p,x,"n",a.opt_nativeTime||-1));return v}; LuJ=function(p,x){var a=uY(V7,x);a||(a=C8(p,x,"h",-1));return a}; YpQ=function(p){sT();switch(Zf(p)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; ITU=function(p,x,a,v){a=a===void 0?{}:a;var c={};g.IJ(c,{opt_adElement:void 0,opt_fullscreen:void 0},a);var J=p.Lk(x,a);a=J?J.b0:p.bx();if(c.opt_bounds)return a.U(L8("ol",v));if(v!==void 0)if(yjb(v)!==void 0)if(wc)p=L8("ue",v);else if(sVo(p),Et=="i")p=L8("i",v),p["if"]=0;else if(x=p.Lk(x,c)){b:{Et=="i"&&(x.bI=!0);J=c.opt_fullscreen;J!==void 0&&k6(x,!!J);var R;if(J=!Nc().Z)(J=oJ(g.Ez(),"CrKey")&&!(oJ(g.Ez(),"CrKey")&&oJ(g.Ez(),"SmartSpeaker"))||oJ(g.Ez(),"PlayStation")||oJ(g.Ez(),"Roku")||vGI()||oJ(g.Ez(), "Xbox"))||(J=g.Ez(),J=oJ(J,"AppleTV")||oJ(J,"Apple TV")||oJ(J,"CFNetwork")||oJ(J,"tvOS")),J||(J=g.Ez(),J=oJ(J,"sdk_google_atv_x86")||oJ(J,"Android TV")),J=!J;J&&(UO(),J=JI(A1)===0);if(R=J){switch(x.Qe()){case 1:cV_(x,"pv");break;case 2:p.N2(x)}ya("pv")}J=v.toLowerCase();if(R=!R)R=QM(sT().Oz,"ssmol")&&J==="loaded"?!1:g.kt(hZ_,J);if(R&&x.DM==0){Et!="i"&&(K8.done=!1);R=c!==void 0?c.opt_nativeTime:void 0;w3=R=typeof R==="number"?R:i$();x.My=!0;var d=PB();x.DM=1;x.hR={};x.hR.start=!1;x.hR.firstquartile= !1;x.hR.midpoint=!1;x.hR.thirdquartile=!1;x.hR.complete=!1;x.hR.resume=!1;x.hR.pause=!1;x.hR.skip=!1;x.hR.mute=!1;x.hR.unmute=!1;x.hR.viewable_impression=!1;x.hR.measurable_impression=!1;x.hR.fully_viewable_audible_half_duration_impression=!1;x.hR.fullscreen=!1;x.hR.exitfullscreen=!1;x.G6=0;d||(x.DI().Y=R);b_(K8,[x],!d)}(R=x.PA[J])&&f2(x.NG,R);QM(sT().Oz,"fmd")||g.kt(jVJ,J)&&x.Xn&&x.Xn.Z(x,null);switch(x.Qe()){case 1:var b=YX(J)?p.V.custom_metric_viewable:p.V[J];break;case 2:b=p.Y[J]}if(b&&(v=b.call(p, x,c,v),QM(sT().Oz,"fmd")&&g.kt(jVJ,J)&&x.Xn&&x.Xn.Z(x,null),v!==void 0)){c=L8(void 0,J);g.IJ(c,v);v=c;break b}v=void 0}x.DM==3&&p.T0(x);p=v}else p=L8("nf",v);else p=void 0;else wc?p=L8("ue"):J?(p=L8(),g.IJ(p,s4U(J,!0,!1,!1))):p=L8("nf");return typeof p==="string"?a.U():a.U(p)}; MPQ=function(p,x){x&&(p.B=x)}; Wuo=function(p){var x={};return x.viewability=p.U,x.googleViewability=p.Z,x}; kA_=function(p,x,a){a=a===void 0?{}:a;p=ITU(kG(n8),x,a,p);return Wuo(p)}; es=function(p){var x=g.g_.apply(1,arguments).filter(Boolean).join("&");if(!x)return p;var a=p.match(/[?&]adurl=/);return a?p.slice(0,a.index+1)+x+"&"+p.slice(a.index+1):p+(p.indexOf("?")<0?"?":"&")+x}; u_=function(p,x){return x?"&"+p+"="+encodeURIComponent(x):""}; Dif=function(p){var x=p.url;p=p.bng;this.Z=x;this.B=p;this.j=(new Date).getTime()-17040672E5;this.U={};for(var a=/[?&]([^&=]+)=([^&]*)/g;p=a.exec(x);)this.U[p[1]]=p[2]}; UiQ=function(p){p=p.B;if(!p)return"";var x=u_("uap",p.platform)+u_("uapv",p.platformVersion)+u_("uafv",p.uaFullVersion)+u_("uaa",p.architecture)+u_("uam",p.model)+u_("uab",p.bitness);p.fullVersionList&&(x+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(a){return encodeURIComponent(a.brand)+";"+encodeURIComponent(a.version)}).join("|"))); p.wow64!=null&&(x+="&uaw="+Number(p.wow64));return x.slice(1)}; QVg=function(p,x,a,v,c){var J=window;var R=R===void 0?!1:R;var d;a?d=(R===void 0?0:R)?"//ep1.adtrafficquality.google/bg/"+C9(a)+".js":"//pagead2.googlesyndication.com/bg/"+C9(a)+".js":d="";R=R===void 0?!1:R;a=J.document;var b={};x&&(b._scs_=x);b._bgu_=d;b._bgp_=v;b._li_="v_h.3.0.0.0";c&&(b._upb_=c);(x=J.GoogleTyFxhY)&&typeof x.push=="function"||(x=J.GoogleTyFxhY=[]);x.push(b);x=$k(a).createElement("SCRIPT");x.type="text/javascript";x.async=!0;p=(R===void 0?0:R)?g.Fw(HMU,C9(p)+".js"):g.Fw(Tp1,C9(p)+ ".js");g.Ws(x,p);(J=(J.GoogleTyFxhYEET||{})[x.src])?J():a.getElementsByTagName("head")[0].appendChild(x)}; miJ=function(){try{var p,x;return!!((p=window)==null?0:(x=p.top)==null?0:x.location.href)&&!1}catch(a){return!0}}; Va=function(p,x,a){a=a===void 0?Error():a;var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=p;x+=":";a instanceof Error?(this.message=x+a.message,this.stack=a.stack||""):(this.message=x+String(a),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; pv=function(){var p=Spb();p=p===void 0?"bevasrsg":p;return new Promise(function(x){var a=window===window.top?window:miJ()?window:window.top,v=a[p],c;((c=v)==null?0:c.bevasrs)?x(new FH(v.bevasrs)):(v||(v={},v=(v.nqfbel=[],v),a[p]=v),v.nqfbel.push(function(J){x(new FH(J))}))})}; fTU=function(p){var x={c:p.WG,e:p.NJ,mc:p.Io,me:p.FL};p.GV&&(x.co={c:p.GV.eZ,a:p.GV.O_,s:p.GV.r5});return x}; xH=function(p){g.y.call(this);this.wpc=p}; FH=function(p){g.y.call(this);var x=this;this.yV=p;this.j="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.Z=void 0;this.KB=this.yV.p;this.B=this.R3.bind(this);this.addOnDisposeCallback(function(){return void Cnz(x)})}; XJT=function(p){var x;return g.t(function(a){if(a.Z==1){if(!p.yV.wpc)throw new Va(30,"NWA");return p.U?a.return(p.U):g.C(a,p.yV.wpc(),2)}x=a.U;p.U=new xH(x);return a.return(p.U)})}; Cnz=function(p){p.Z!==void 0&&(p.j.forEach(function(x){var a;(a=p.Z)==null||a.removeEventListener(x,p.B)}),p.Z=void 0)}; iMf=function(p){var x=x===void 0?50:x;var a=[];HM(p,$H,6).forEach(function(v){ST(v,2)<=x&&a.push(ST(v,1))}); return a}; o2b=function(p){var x=x===void 0?50:x;var a=[];HM(p,$H,6).forEach(function(v){ST(v,2)>x&&a.push(ST(v,1))}); return a}; tPI=function(p){p.then(function(){},function(){})}; a2=function(){g.y.apply(this,arguments);this.Z=1;this[zZb]=this.dispose}; sf=function(p){return{fieldType:2,fieldName:p}}; g.vL=function(p){return{fieldType:3,fieldName:p}}; wJf=function(p){this.U=p;p.KE("/client_streamz/bg/frs",g.vL("mk"))}; E2I=function(p){this.U=p;p.KE("/client_streamz/bg/wrl",g.vL("mn"),sf("ac"),sf("sc"),g.vL("rk"),g.vL("mk"))}; yVU=function(p){this.U=p;p.y0("/client_streamz/bg/ec",g.vL("en"),g.vL("mk"))}; g2b=function(p){this.U=p;p.KE("/client_streamz/bg/el",g.vL("en"),g.vL("mk"))}; ZMb=function(p){this.U=p;p.y0("/client_streamz/bg/cec",sf("ec"),g.vL("mk"))}; GAx=function(p){this.U=p;p.y0("/client_streamz/bg/po/csc",sf("cs"),g.vL("mk"))}; OMb=function(p){this.U=p;p.y0("/client_streamz/bg/po/ctav",g.vL("av"),g.vL("mk"))}; Npb=function(p){this.U=p;p.y0("/client_streamz/bg/po/cwsc",g.vL("su"),g.vL("mk"))}; AV1=function(p){this.l$=Nx(p)}; PnJ=function(p,x){return mgg(p,x,Vgz)}; cL=function(p){this.l$=Nx(p)}; JB=function(p){this.l$=Nx(p)}; R2=function(p){this.l$=Nx(p)}; Kv=function(p){this.l$=Nx(p)}; d8=function(p){this.l$=Nx(p)}; bR=function(p){this.l$=Nx(p)}; qp8=function(p){this.l$=Nx(p)}; u9I=function(p){var x=new bR;x=zM(x,1,p.Z);var a=n2Q(p);x=mgg(x,a,dgQ);a=[];for(var v=[],c=g.k(p.U.keys()),J=c.next();!J.done;J=c.next())v.push(J.value.split(","));for(c=0;c>>31)&4294967295;l=c[0];var h=c[1],D=c[2],H=c[3],f=c[4];for(Y=0;Y<80;Y++){if(Y<40)if(Y<20){var m=H^h&(D^H);var X=1518500249}else m=h^D^H,X=1859775393;else Y<60?(m=h&D|H&(h|D),X=2400959708):(m=h^D^H,X=3395469782);m=((l<<5|l>>>27)&4294967295)+m+f+X+L[Y]&4294967295;f=H;H=D;D=(h<<30|h>>>2)&4294967295;h=l;l=m}c[0]=c[0]+l&4294967295;c[1]=c[1]+h&4294967295;c[2]= c[2]+D&4294967295;c[3]=c[3]+H&4294967295;c[4]=c[4]+f&4294967295} function a(l,L){if(typeof l==="string"){l=unescape(encodeURIComponent(l));for(var Y=[],h=0,D=l.length;h=56;Y--)J[Y]=L&255,L>>>=8;x(J);for(Y=L=0;Y<5;Y++)for(var h=24;h>=0;h-=8)l[L++]=c[Y]>>h&255;return l} for(var c=[],J=[],R=[],d=[128],b=1;b<64;++b)d[b]=0;var r,B;p();return{reset:p,update:a,digest:v,fb:function(){for(var l=v(),L="",Y=0;Y1)));R=R.next)c||(J=R);c&&(a.U==0&&v==1?P$8(a,x):(J?(v=J,v.next==a.B&&(a.B=v),v.next=v.next.next):qTx(a),nxz(a,c,3,x)))}p.j=null}else mt(p,3,x)}; iJ=function(p,x){p.Z||p.U!=2&&p.U!=3||ecb(p);p.B?p.B.next=x:p.Z=x;p.B=x}; up1=function(p,x,a,v){var c=fp(null,null,null);c.U=new g.Sl(function(J,R){c.j=x?function(d){try{var b=x.call(v,d);J(b)}catch(r){R(r)}}:J; c.Z=a?function(d){try{var b=a.call(v,d);b===void 0&&d instanceof tY?R(d):J(b)}catch(r){R(r)}}:R}); c.U.j=p;iJ(p,c);return c.U}; mt=function(p,x,a){p.U==0&&(p===a&&(x=3,a=new TypeError("Promise cannot resolve to itself")),p.U=1,GJz(a,p.NI6,p.caI,p)||(p.V=a,p.U=x,p.j=null,ecb(p),x!=3||a instanceof tY||VLN(p,a)))}; GJz=function(p,x,a,v){if(p instanceof g.Sl)return A1J(p,x,a,v),!0;if(p)try{var c=!!p.$goog_Thenable}catch(R){c=!1}else c=!1;if(c)return p.then(x,a,v),!0;if(g.cQ(p))try{var J=p.then;if(typeof J==="function")return FwI(p,J,x,a,v),!0}catch(R){return a.call(v,R),!0}return!1}; FwI=function(p,x,a,v,c){function J(b){d||(d=!0,v.call(c,b))} function R(b){d||(d=!0,a.call(c,b))} var d=!1;try{x.call(p,R,J)}catch(b){J(b)}}; ecb=function(p){p.S||(p.S=!0,g.D9(p.qI,p))}; qTx=function(p){var x=null;p.Z&&(x=p.Z,p.Z=x.next,x.next=null);p.Z||(p.B=null);return x}; nxz=function(p,x,a,v){if(a==3&&x.Z&&!x.B)for(;p&&p.C;p=p.j)p.C=!1;if(x.U)x.U.j=null,pSx(x,a,v);else try{x.B?x.j.call(x.context):pSx(x,a,v)}catch(c){x7U.call(null,c)}oxg(ZNI,x)}; pSx=function(p,x,a){x==2?p.j.call(p.context,a):p.Z&&p.Z.call(p.context,a)}; VLN=function(p,x){p.C=!0;g.D9(function(){p.C&&x7U.call(null,x)})}; tY=function(p){Yt.call(this,p)}; g.zD=function(p,x){g.Bm.call(this);this.eU=p||1;this.TT=x||g.Fg;this.qB=(0,g.dR)(this.Khg,this);this.VP=g.BQ()}; g.wA=function(p,x,a){if(typeof p==="function")a&&(p=(0,g.dR)(p,a));else if(p&&typeof p.handleEvent=="function")p=(0,g.dR)(p.handleEvent,p);else throw Error("Invalid listener argument");return Number(x)>2147483647?-1:g.Fg.setTimeout(p,x||0)}; Ey=function(p,x){var a=null;return(new g.Sl(function(v,c){a=g.wA(function(){v(x)},p); a==-1&&c(Error("Failed to schedule timer."))})).LT(function(v){g.Fg.clearTimeout(a); throw v;})}; g.yD=function(p){g.y.call(this);this.V=p;this.B=0;this.j=100;this.C=!1;this.Z=new Map;this.S=new Set;this.flushInterval=3E4;this.U=new g.zD(this.flushInterval);this.U.listen("tick",this.yW,!1,this);g.Z(this,this.U)}; $7z=function(p){p.U.enabled||p.U.start();p.B++;p.B>=p.j&&p.yW()}; aBx=function(p,x){return p.S.has(x)?void 0:p.Z.get(x)}; sZf=function(p){for(var x=0;x2?p.U.statusText:""}catch(a){x=""}p.B=x+" ["+p.getStatus()+"]";LCQ(p)}}finally{AY(p)}}}; AY=function(p,x){if(p.U){p.S&&(clearTimeout(p.S),p.S=null);var a=p.U;p.U=null;x||p.dispatchEvent("ready");try{a.onreadystatechange=null}catch(v){}}}; np=function(p){var x=p.getStatus();a:switch(x){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var a=!0;break a;default:a=!1}if(!a){if(x=x===0)p=g.d3(String(p.Y))[1]||null,!p&&g.Fg.self&&g.Fg.self.location&&(p=g.Fg.self.location.protocol.slice(0,-1)),x=!jZb.test(p?p.toLowerCase():"");a=x}return a}; g.q0=function(p){return p.U?p.U.readyState:0}; g.el=function(p){try{return p.U?p.U.responseText:""}catch(x){return""}}; g.uJ=function(p){try{if(!p.U)return null;if("response"in p.U)return p.U.response;switch(p.u$){case "":case "text":return p.U.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in p.U)return p.U.mozResponseArrayBuffer}return null}catch(x){return null}}; g.IBz=function(p){var x={};p=(p.U&&g.q0(p)>=2?p.U.getAllResponseHeaders()||"":"").split("\r\n");for(var a=0;a0&&b>=x};a=a===void 0?[]:a;return new Jh(v,a)}; Bg=function(p){function x(h,D,H,f){Promise.resolve().then(function(){b.done();d.ob();d.dispose();R.resolve({z8:h,UGa:D,xgO:H,LjA:f})})} function a(h,D,H,f){if(!v.logger.b$()){var m="k";D?m="h":H&&(m="u");m!=="k"?f!==0&&(v.logger.E$(m),v.logger.rT(m,h)):v.Z<=0?(v.logger.E$(m),v.logger.rT(m,h),v.Z=Math.floor(Math.random()*200)):v.Z--}} g.y.call(this);var v=this;this.Z=Math.floor(Math.random()*200);this.U=new bE;if("challenge"in p&&H2_(p.challenge)){var c=CE(p.challenge,4,void 0,n$);var J=CE(p.challenge,5,void 0,n$);CE(p.challenge,7,void 0,n$)&&(this.U=Te1(CE(p.challenge,7,void 0,n$)))}else c=p.program,J=p.globalName;this.addOnDisposeCallback(function(){var h,D,H;return g.t(function(f){if(f.Z==1)return g.C(f,v.j,2);h=f.U;D=h.UGa;(H=D)==null||H();g.k1(f)})}); this.logger=U7x(p.uM||{},this.U);g.Z(this,this.logger);var R=new g.rw;this.j=R.promise;this.logger.E$("t");var d=this.logger.share(),b=new x5(d,"t");if(!g.Fg[J])throw this.logger.i9(25),Error("EGOU");if(!g.Fg[J].a)throw this.logger.i9(26),Error("ELIU");try{var r=g.Fg[J].a;J=[];for(var B=[],l=iMf(this.U),L=0;L>1,x),k5(p,p.length>>1)]}; x$o=function(p){var x=g.k(pVN(p,DO));p=x.next().value;x=x.next().value;return p.toString(16)+x.toString(16)}; $$1=function(p,x){var a=pVN(x);p=new Uint32Array(p.buffer);x=p[0];var v=g.k(a);a=v.next().value;v=v.next().value;for(var c=1;c>>8|R<<24,R+=J|0,R^=d+38293,J=J<<3|J>>>29,J^=R,b=b>>>8|b<<24,b+=d|0,b^=r+38293,d=d<<3|d>>>29,d^=b;J=[J,R];p[c]^=J[0];c+1=a?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(v.buffer,x+4)]}; U3=function(p,x,a){a=a===void 0?[]:a;this.maxItems=p;this.U=x===void 0?0:x;this.Z=a}; vXb=function(p){var x=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!x)return new U3(p);var a=x.split(",");if(a.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new U3(p);x=a.slice(1);x.length===1&&x[0]===""&&(x=[]);a=Number(a[0]);return isNaN(a)||a<0||a>x.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new U3(p)):new U3(p,a,x)}; cFo=function(p,x){this.logger=x;try{var a=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(v){a=!1}a&&(this.index=vXb(p))}; JFo=function(p,x,a,v,c){var J=p.index?aA(p.logger,function(){return afU(p.index,x$o(x),a,v,c)},"W"):"u"; p.logger.XZ(J)}; RGI=function(p,x,a){var v=g.k(p.index?aA(p.logger,function(){return si_(x$o(x),a)},"R"):["u"]),c=v.next().value; v=v.next().value;p.logger.KF(c);return v}; b81=function(p){function x(){a-=v;a-=c;a^=c>>>13;v-=c;v-=a;v^=a<<8;c-=a;c-=v;c^=v>>>13;a-=v;a-=c;a^=c>>>12;v-=c;v-=a;v^=a<<16;c-=a;c-=v;c^=v>>>5;a-=v;a-=c;a^=c>>>3;v-=c;v-=a;v^=a<<10;c-=a;c-=v;c^=v>>>15} p=KYf(p);for(var a=2654435769,v=2654435769,c=314159265,J=p.length,R=J,d=0;R>=12;R-=12,d+=12)a+=Hg(p,d),v+=Hg(p,d+4),c+=Hg(p,d+8),x();c+=J;switch(R){case 11:c+=p[d+10]<<24;case 10:c+=p[d+9]<<16;case 9:c+=p[d+8]<<8;case 8:v+=p[d+7]<<24;case 7:v+=p[d+6]<<16;case 6:v+=p[d+5]<<8;case 5:v+=p[d+4];case 4:a+=p[d+3]<<24;case 3:a+=p[d+2]<<16;case 2:a+=p[d+1]<<8;case 1:a+=p[d+0]}x();return d$x.toString(c)}; KYf=function(p){for(var x=[],a=0;a>7,p.error.code]);v.set(a,4);return v}; oA=function(p,x,a){Tj.call(this,p);this.B=x;this.clientState=a;this.U="S";this.Z="q"}; iE=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):g.QR(p)}; lf1=function(p,x,a){return p instanceof jK?g6I(p,a,x,1):p.ZR(a)}; zj=function(p){g.y.call(this);var x=this;this.j=new g.rw;this.B=0;this.Z=void 0;this.state=2;this.yV=p.yV;this.p_=p.p_;this.yM=Object.assign({},LY1,p.yM||{});this.logger=p.yV.g0();var a;this.onError=(a=p.onError)!=null?a:function(){}; this.Jl=p.Jl||!1;if(Yt_(p)){var v=this.yV;this.C=function(){return Ag8(v).catch(function(R){R=x.reportError(new Va(x.U?20:32,"TRG:Disposed",R));x.Z=R;var d;(d=x.U)==null||d.dispose();x.U=void 0;x.j.reject(R)})}; PYI(v,function(){return void th(x)}); v.Y===2&&th(this)}else this.C=p.V_g,th(this);var c=this.logger.share();c.E$("o");var J=new x5(c,"o");this.j.promise.then(function(){J.done();c.ob();c.dispose()},function(){return void c.dispose()}); this.addOnDisposeCallback(function(){x.U?(x.U.dispose(),x.U=void 0):x.Z?x.logger.ob():(x.Z=x.reportError(new Va(32,"TNP:Disposed")),x.logger.ob(),x.j.reject(x.Z))}); g.Z(this,this.logger)}; hGQ=function(p,x){if(!(x instanceof Va))if(x instanceof gA){var a=Error(x.toString());a.stack=x.stack;x=new Va(11,"EBH:Error",a)}else x=new Va(12,"BSO:Unknown",x);return p.reportError(x)}; th=function(p){var x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D;return g.t(function(H){switch(H.Z){case 1:x=void 0;p.B++;a=new g.rw;p.yV instanceof IA&&p.yV.B.push(a.promise);if(!p.Jl){H.Ia(2);break}v=new g.rw;setTimeout(function(){return void v.resolve()}); return g.C(H,v.promise,2);case 2:return c=p.logger.share(),g.DJ(H,4,5),p.state=5,J={},R=[],g.C(H,Wg(p.yV.snapshot({WG:J,Zo:R}),p.yM.PLr,function(){return Promise.reject(new Va(15,"MDA:Timeout"))}),7); case 7:d=H.U;if(p.b$())throw new Va(p.U?20:32,"MDA:Disposed");b=R[0];p.state=6;return g.C(H,Wg(lf1(p.p_,c,d),p.yM.xm,function(){return Promise.reject(new Va(10,"BWB:Timeout"))}),8); case 8:r=H.U;if(p.b$())throw new Va(p.U?20:32,"BWB:Disposed");p.state=7;x=aA(c,function(){var m=jiI(p,r,a,b);m.j.promise.then(function(){return void p.C()}); return m},"i"); case 5:g.o8(H);c.dispose();g.z1(H,6);break;case 4:B=g.SI(H);(l=x)==null||l.dispose();if(!p.Z){L=hGQ(p,B);a.resolve();var f;if(f=p.yV instanceof IA&&p.B<2)a:if(B instanceof Va)f=B.code!==32&&B.code!==20&&B.code!==10;else{if(B instanceof gA)switch(B.code){case 2:case 13:case 14:case 4:break;default:f=!1;break a}f=!0}if(f)return Y=(1+Math.random()*.25)*(p.U?6E4:1E3),h=setTimeout(function(){return void p.C()},Y),p.addOnDisposeCallback(function(){return void clearTimeout(h)}),H.return(); p.Z=L}c.i9(p.U?13:14);p.j.reject(p.Z);return H.return();case 6:p.state=8,p.B=0,(D=p.U)==null||D.dispose(),p.U=x,p.j.resolve(),g.k1(H)}})}; jiI=function(p,x,a,v){var c=fE(x,2)*1E3;if(c<=0)throw new Va(31,"TTM:Invalid");if(CE(x,4))return new CL(p.logger,CE(x,4),c);if(!fE(x,3))return new fL(p.logger,z6(KE(x,1)),c);if(!v)throw new Va(4,"PMD:Undefined");v=v(z6(KE(x,1)));if(!(v instanceof Function))throw new Va(16,"APF:Failed");p.S=Math.floor((Date.now()+c)/1E3);p=new SK(p.logger,v,fE(x,3),c);p.addOnDisposeCallback(function(){return void a.resolve()}); return p}; IfI=function(p,x){x=x instanceof Va?x:new Va(5,"TVD:error",x);return p.reportError(x)}; U$I=function(p,x,a){try{if(p.b$())throw new Va(21,"BNT:disposed");if(!p.U&&p.Z)throw p.Z;var v,c;return(c=(v=Ms8(p,x,a))!=null?v:WYg(p,x,a))!=null?c:kBg(p,x,a)}catch(J){if(!x.FL)throw IfI(p,J);return D$_(p,a,J)}}; Ms8=function(p,x,a){var v;return(v=p.U)==null?void 0:mk(v,function(){return ww(p,x)},a,function(c){var J; if(p.U instanceof SK&&((J=x.GV)==null?0:J.r5))try{var R;(R=p.cache)==null||JFo(R,ww(p,x),c,x.GV.eZ,p.S-120)}catch(d){p.reportError(new Va(24,"ELX:write",d))}})}; WYg=function(p,x,a){var v;if((v=x.GV)!=null&&v.O_)try{var c,J=(c=p.cache)==null?void 0:RGI(c,ww(p,x),x.GV.eZ);return J?a?aA(p.logger,function(){return g.m2(J,2)},"a"):J:void 0}catch(R){p.reportError(new Va(23,"RXO:read",R))}}; kBg=function(p,x,a){var v={stack:[],error:void 0,hasError:!1};try{if(!x.Io)throw new Va(29,"SDF:notready");return mk(j81(v,new oA(p.logger,0,p.state)),function(){return ww(p,x)},a)}catch(c){v.error=c,v.hasError=!0}finally{IJI(v)}}; D$_=function(p,x,a){var v={stack:[],error:void 0,hasError:!1};try{var c=IfI(p,a);return mk(j81(v,new X4(p.logger,c)),function(){return[]},x)}catch(J){v.error=J,v.hasError=!0}finally{IJI(v)}}; ww=function(p,x){return x.NJ?x.NJ:x.WG?aA(p.logger,function(){return x.NJ=iE(x.WG)},"c"):[]}; E3=function(){var p=0,x;return function(a){x||(x=new s3);var v=new oA(x,p,1),c=mk(v,function(){return iE(a)},!0); v.dispose();p++;return c}}; yI=function(p){this.l$=Nx(p)}; H8_=function(p,x,a){this.dO=p;this.PV=x;this.metadata=a}; gw=function(p,x){x=x===void 0?{}:x;this.b14=p;this.metadata=x;this.status=null}; ZO=function(p,x,a,v,c){this.name=p;this.methodType="unary";this.requestType=x;this.responseType=a;this.U=v;this.Z=c}; Gj=function(p){this.l$=Nx(p)}; O3=function(p){this.l$=Nx(p)}; Nj=function(p){this.l$=Nx(p)}; Ah=function(p,x){this.V=p.iII;this.Y=x;this.U=p.xhr;this.j=[];this.C=[];this.S=[];this.B=[];this.Z=[];this.V&&TcT(this)}; ffI=function(p,x){var a=new Qi1;g.xJ(p.U,"complete",function(){if(np(p.U)){var v=g.el(p.U);if(x&&p.U.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");v=atob(v)}try{var c=p.Y(v)}catch(d){Pg(p,qj(new gA(13,"Error when deserializing response data; error: "+d+(", response: "+v)),a));return}v=v6x(p.U.getStatus());nL(p,eK(p));v==0?m$x(p,c):Pg(p,qj(new gA(v,"Xhr succeeded but the status code is not 200"),a))}else{v=g.el(p.U);c=eK(p);if(v){var J=StN(p, v);v=J.code;var R=J.details;J=J.metadata}else v=2,R="Rpc failed due to xhr error. uri: "+String(p.U.Y)+", error code: "+p.U.Z+", error: "+p.U.getLastError(),J=c;nL(p,c);Pg(p,qj(new gA(v,R,J),a))}})}; TcT=function(p){p.V.Rb("data",function(x){if("1"in x){var a=x["1"];try{var v=p.Y(a)}catch(c){Pg(p,new gA(13,"Error when deserializing response data; error: "+c+(", response: "+a)))}v&&m$x(p,v)}if("2"in x)for(x=StN(p,x["2"]),a=0;a-1&&p.splice(x,1)}; m$x=function(p,x){for(var a=0;a>4&15).toString(16)+(p&15).toString(16)}; RH=function(p,x){this.Z=this.U=null;this.j=p||null;this.B=!!x}; rg=function(p){p.U||(p.U=new Map,p.Z=0,p.j&&l$(p.j,function(x,a){p.add(f9(x),a)}))}; yFo=function(p,x){rg(p);x=Bk(p,x);return p.U.has(x)}; g.gXI=function(p,x,a){p.remove(x);a.length>0&&(p.j=null,p.U.set(Bk(p,x),g.CG(a)),p.Z=p.Z+a.length)}; Bk=function(p,x){x=String(x);p.B&&(x=x.toLowerCase());return x}; zGo=function(p,x){x&&!p.B&&(rg(p),p.j=null,p.U.forEach(function(a,v){var c=v.toLowerCase();v!=c&&(this.remove(v),g.gXI(this,c,a))},p)); p.B=x}; g.Z8J=function(p){var x="";g.FO(p,function(a,v){x+=v;x+=":";x+=a;x+="\r\n"}); return x}; g.ld=function(p,x,a){if(g.lu(a))return p;a=g.Z8J(a);if(typeof p==="string")return IP(p,g.mn(x),a);g.dg(p,x,a);return p}; g.LO=function(p){g.y.call(this);this.Z=p;this.U={}}; GB1=function(p,x,a,v,c,J){if(Array.isArray(a))for(var R=0;R=0)return!0;try{var x=new g.$f(p)}catch(a){return g.ME(vH1,function(v){return p.search(v)>0})!=null}return x.S.match(cBz)?!0:g.ME(vH1,function(a){return p.match(a)!=null})!=null}; g.Qz=function(p,x){return p.replace(RX_,function(a,v){try{var c=g.LZ(x,v);if(c==null||c.toString()==null)return a;c=c.toString();if(c==""||!g.CZ(g.Xw(c)))return encodeURIComponent(c).replace(/%2C/g,",")}catch(J){}return a})}; m1=function(p,x){return Object.is(p,x)}; fO=function(p){var x=SR;SR=p;return x}; KlT=function(p){if(p.BI!==void 0){var x=CO;CO=!0;try{for(var a=p.BI;a!==void 0;a=a.HF){var v=a.TR;v.Ev||(p=void 0,v.Ev=!0,KlT(v),(p=v.oP)==null||p.call(v,v))}}finally{CO=x}}}; dwU=function(){var p;return((p=SR)==null?void 0:p.yS)!==!1}; bvb=function(p){p&&(p.g8=void 0,p.v3=!0);return fO(p)}; B8z=function(p,x){fO(x);if(p){p.v3=!1;x=p.g8;var a=x!==void 0?x.po:p.producers;if(a!==void 0){if(X3(p)){do a=rB_(a);while(a!==void 0)}x!==void 0?x.po=void 0:p.producers=void 0}}}; lsU=function(p,x){var a=p.gA,v=X3(p);a!==void 0?(x.HF=a.HF,a.HF=x):(x.HF=void 0,p.BI=x);x.y_=a;p.gA=x;if(!v)for(p=p.producers;p!==void 0;p=p.po)lsU(p.kG,p)}; rB_=function(p){var x=p.kG,a=p.po,v=p.HF,c=p.y_;p.HF=void 0;p.y_=void 0;v!==void 0?v.y_=c:x.gA=c;if(c!==void 0)c.HF=v;else if(x.BI=v,!X3(x))for(p=x.producers;p!==void 0;)p=rB_(p);return a}; X3=function(p){return p.ll||p.BI!==void 0}; j2o=function(p){function x(){a:{if(CO)throw Error("");if(SR!==null){var v=SR.g8;if(v===void 0||v.kG!==a){var c=void 0,J=SR.v3;if(J&&(c=v!==void 0?v.po:SR.producers,c!==void 0&&c.kG===a)){SR.g8=c;c.RU=a.version;break a}var R=a.gA,d;if(!(d=R===void 0||R.TR!==SR)){if(J){b:{d=SR;J=d.g8;if(J!==void 0){d=d.producers;do{if(d===R){J=!0;break b}if(d===J)break;d=d.po}while(d!==void 0)}J=!1}J=!J}d=J}d&&(J=X3(SR),c={kG:a,TR:SR,po:c,y_:R,RU:a.version,HF:void 0},SR.g8=c,v!==void 0?v.po=c:SR.producers=c,J&&lsU(a, c))}}}return a.value} var a=Object.create(Ll1);a.value=p;x[YfT]=a;return[x,function(v){return hXQ(a,v)}, function(v){if(!dwU())throw Error();hXQ(a,v(a.value))}]}; hXQ=function(p,x){if(!dwU())throw Error();p.Qh(p.value,x)||(p.value=x,p.version++,Is_++,KlT(p))}; id=function(p,x){x=x===void 0?"":x;p=j2o(p)[0][YfT];var a;x=(a=x)!=null?a:"[signal]";p.debugName=x}; tW=function(p){g.Bm.call(this);var x=this;this.C=this.Z=0;this.Gq=p!=null?p:{vN:function(c,J){return setTimeout(c,J)}, zg:function(c){clearTimeout(c)}}; var a,v;this.U=(v=(a=window.navigator)==null?void 0:a.onLine)!=null?v:!0;this.j=function(){return g.t(function(c){return g.C(c,oH(x),0)})}; window.addEventListener("offline",this.j);window.addEventListener("online",this.j);this.C||this.Bh()}; Mu8=function(){var p=g.zp;tW.instance||(tW.instance=new tW(p));return tW.instance}; oH=function(p,x){return p.B?p.B:p.B=new Promise(function(a){var v,c,J,R;return g.t(function(d){switch(d.Z){case 1:return v=window.AbortController?new window.AbortController:void 0,J=(c=v)==null?void 0:c.signal,R=!1,g.DJ(d,2,3),v&&(p.Z=p.Gq.vN(function(){v.abort()},x||2E4)),g.C(d,fetch("/generate_204",{method:"HEAD", signal:J}),5);case 5:R=!0;case 3:g.o8(d);p.B=void 0;p.Z&&(p.Gq.zg(p.Z),p.Z=0);R!==p.U&&(p.U=R,p.U?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline"));a(R);g.z1(d,0);break;case 2:g.SI(d),R=!1,d.Ia(3)}})})}; WlU=function(p){this.l$=Nx(p)}; wg=function(){this.data=[];this.U=-1}; khx=function(p){p.U===-1&&(p.U=p.data.reduce(function(x,a,v){return x+(a?Math.pow(2,v):0)},0)); return p.U}; En=function(p){p.setAttribute("role","link")}; gg=function(p,x){Array.isArray(x)&&(x=x.join(" "));x===""||x==void 0?(yz||(x={},yz=(x.atomic=!1,x.autocomplete="none",x.dropeffect="none",x.haspopup=!1,x.live="off",x.multiline=!1,x.multiselectable=!1,x.orientation="vertical",x.readonly=!1,x.relevant="additions text",x.required=!1,x.sort="none",x.busy=!1,x.disabled=!1,x.hidden=!1,x.invalid="false",x)),x=yz,"label"in x?p.setAttribute("aria-label",x.label):p.removeAttribute("aria-label")):p.setAttribute("aria-label",x)}; ZC=function(p){p=p.getAttribute("aria-label");return p==null||p==void 0?"":String(p)}; g.Gp=function(p,x,a){g.y.call(this);this.U=null;this.B=!1;this.S=p;this.C=a;this.Z=x||window;this.j=(0,g.dR)(this.Pc,this)}; DwI=function(p){p=p.Z;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null}; Uw1=function(p){p=p.Z;return p.cancelAnimationFrame||p.cancelRequestAnimationFrame||p.webkitCancelRequestAnimationFrame||p.mozCancelRequestAnimationFrame||p.oCancelRequestAnimationFrame||p.msCancelRequestAnimationFrame||null}; g.AW=function(p,x,a){g.y.call(this);this.U=p;this.eU=x||0;this.Z=a;this.j=(0,g.dR)(this.EL,this)}; g.Pk=function(p,x){p.isActive()||p.start(x)}; g.qF=function(p){p.stop();p.EL()}; g.nO=function(p){p.isActive()&&g.qF(p)}; g.eR=function(p,x,a){g.y.call(this);this.B=a!=null?p.bind(a):p;this.eU=x;this.j=null;this.U=!1;this.Z=0;this.x$=null}; ud=function(p){p.x$=g.wA(function(){p.x$=null;p.U&&!p.Z&&(p.U=!1,ud(p))},p.eU); var x=p.j;p.j=null;p.B.apply(null,x)}; g.Vz=function(p,x){this.U=p[g.Fg.Symbol.iterator]();this.Z=x}; HvJ=function(p){return typeof p.className=="string"?p.className:p.getAttribute&&p.getAttribute("class")||""}; F3=function(p){return p.classList?p.classList:HvJ(p).match(/\S+/g)||[]}; g.pt=function(p,x){typeof p.className=="string"?p.className=x:p.setAttribute&&p.setAttribute("class",x)}; g.xW=function(p,x){return p.classList?p.classList.contains(x):g.kt(F3(p),x)}; g.$W=function(p,x){if(p.classList)p.classList.add(x);else if(!g.xW(p,x)){var a=HvJ(p);g.pt(p,a+(a.length>0?" "+x:x))}}; g.aR=function(p,x){if(p.classList)Array.prototype.forEach.call(x,function(c){g.$W(p,c)}); else{var a={};Array.prototype.forEach.call(F3(p),function(c){a[c]=!0}); Array.prototype.forEach.call(x,function(c){a[c]=!0}); x="";for(var v in a)x+=x.length>0?" "+v:v;g.pt(p,x)}}; g.sm=function(p,x){p.classList?p.classList.remove(x):g.xW(p,x)&&g.pt(p,Array.prototype.filter.call(F3(p),function(a){return a!=x}).join(" "))}; g.vG=function(p,x){p.classList?Array.prototype.forEach.call(x,function(a){g.sm(p,a)}):g.pt(p,Array.prototype.filter.call(F3(p),function(a){return!g.kt(x,a)}).join(" "))}; g.cG=function(p,x,a){a?g.$W(p,x):g.sm(p,x)}; T8g=function(p,x){var a=!g.xW(p,x);g.cG(p,x,a)}; g.Ju=function(){g.Bm.call(this);this.U=0;this.endTime=this.startTime=null}; Q2T=function(p,x){Array.isArray(x)||(x=[x]);x=x.map(function(a){return typeof a==="string"?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"}); g.Ab(p,"transition",x.join(","))}; RR=function(p,x,a,v,c){g.Ju.call(this);this.Z=p;this.C=x;this.S=a;this.B=v;this.V=Array.isArray(c)?c:[c]}; mw_=function(p,x,a,v){return new RR(p,x,{opacity:a},{opacity:v},{property:"opacity",duration:x,timing:"ease-in",delay:0})}; fsQ=function(p){p=tp(p);if(p=="")return null;var x=String(p.slice(0,4)).toLowerCase();if(("url("1||p&&p.split(")"),null;if(p.indexOf("(")>0){if(/"|'/.test(p))return null;x=/([\-\w]+)\(/g;for(var a;a=x.exec(p);)if(!(a[1].toLowerCase()in Sfb))return null}return p}; Kt=function(p,x){p=g.Fg[p];return p&&p.prototype?(x=Object.getOwnPropertyDescriptor(p.prototype,x))&&x.get||null:null}; CRT=function(p){var x=g.Fg.CSSStyleDeclaration;return x&&x.prototype&&x.prototype[p]||null}; XLx=function(p,x,a,v){if(p)return p.apply(x,v);if(g.dj&&document.documentMode<10){if(!x[a].call)throw Error("IE Clobbering detected");}else if(typeof x[a]!="function")throw Error("Clobbering detected");return x[a].apply(x,v)}; wLI=function(p){if(!p)return"";var x=document.createElement("div").style;ivJ(p).forEach(function(a){var v=g.bP&&a in oHo?a:a.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");fZ(v,"--")||fZ(v,"var")||(a=XLx(tuJ,p,p.getPropertyValue?"getPropertyValue":"getAttribute",[a])||"",a=fsQ(a),a!=null&&XLx(zXg,x,x.setProperty?"setProperty":"setAttribute",[v,a]))}); return x.cssText||""}; ivJ=function(p){g.vQ(p)?p=g.CG(p):(p=g.KZ(p),g.UV(p,"cssText"));return p}; g.rj=function(p){var x,a=x=0,v=!1;p=p.split(EHg);for(var c=0;c.4?-1:1;return(x==0?null:x)==-1?"rtl":"ltr"}; g.YW=function(p){if(p instanceof BG||p instanceof ly||p instanceof Lt)return p;if(typeof p.next=="function")return new BG(function(){return p}); if(typeof p[Symbol.iterator]=="function")return new BG(function(){return p[Symbol.iterator]()}); if(typeof p.rU=="function")return new BG(function(){return p.rU()}); throw Error("Not an iterator or iterable.");}; BG=function(p){this.Z=p}; ly=function(p){this.Z=p}; Lt=function(p){BG.call(this,function(){return p}); this.j=p}; hu=function(p,x,a,v,c,J,R,d){this.U=p;this.V=x;this.j=a;this.C=v;this.B=c;this.S=J;this.Z=R;this.Y=d}; jn=function(p,x){if(x==0)return p.U;if(x==1)return p.Z;var a=OW(p.U,p.j,x),v=OW(p.j,p.B,x);p=OW(p.B,p.Z,x);a=OW(a,v,x);v=OW(v,p,x);return OW(a,v,x)}; Ghz=function(p,x){var a=(x-p.U)/(p.Z-p.U);if(a<=0)return 0;if(a>=1)return 1;for(var v=0,c=1,J=0,R=0;R<8;R++){J=jn(p,a);var d=(jn(p,a+1E-6)-J)/1E-6;if(Math.abs(J-x)<1E-6)return a;if(Math.abs(d)<1E-6)break;else J1E-6&&R<8;R++)J=0}; g.kW=function(p){g.y.call(this);this.S=1;this.j=[];this.B=0;this.U=[];this.Z={};this.V=!!p}; N8o=function(p,x,a){g.D9(function(){p.apply(x,a)})}; g.Dm=function(p){this.U=p}; Um=function(p){this.U=p}; AB1=function(p){this.data=p}; PR1=function(p){return p===void 0||p instanceof AB1?p:new AB1(p)}; HG=function(p){this.U=p}; g.qfx=function(p){var x=p.creation;p=p.expiration;return!!p&&pg.BQ()}; g.T5=function(p){this.U=p}; nHf=function(){}; Q3=function(){}; mm=function(p){this.U=p;this.Z=null}; Sn=function(p){if(p.U==null)throw Error("Storage mechanism: Storage unavailable");p.isAvailable()||T6(Error("Storage mechanism: Storage unavailable"))}; ft=function(){var p=null;try{p=g.Fg.localStorage||null}catch(x){}mm.call(this,p)}; eXo=function(){var p=null;try{p=g.Fg.sessionStorage||null}catch(x){}mm.call(this,p)}; Ct=function(p,x){this.Z=p;this.U=x+"::"}; g.XE=function(p){var x=new ft;return x.isAvailable()?p?new Ct(x,p):x:null}; iy=function(p,x){this.U=p;this.Z=x}; oR=function(p){this.U=[];if(p)a:{if(p instanceof oR){var x=p.KD();p=p.sR();if(this.U.length<=0){for(var a=this.U,v=0;v>>6:(J<65536?d[a++]=224|J>>>12:(d[a++]=240|J>>>18,d[a++]=128|J>>>12&63),d[a++]=128|J>>> 6&63),d[a++]=128|J&63);return d}; Em=function(p){for(var x=p.length;--x>=0;)p[x]=0}; y3=function(p,x,a,v,c){this.cR=p;this.MI=x;this.nt=a;this.ZY=v;this.ZIO=c;this.cT=p&&p.length}; gj=function(p,x){this.ir=p;this.I8=0;this.Mz=x}; Zm=function(p,x){p.iL[p.pending++]=x&255;p.iL[p.pending++]=x>>>8&255}; G5=function(p,x,a){p.Mr>16-a?(p.uH|=x<>16-p.Mr,p.Mr+=a-16):(p.uH|=x<>>=1,a<<=1;while(--x>0);return a>>>1}; x08=function(p,x,a){var v=Array(16),c=0,J;for(J=1;J<=15;J++)v[J]=c=c+a[J-1]<<1;for(a=0;a<=x;a++)c=p[a*2+1],c!==0&&(p[a*2]=pmg(v[c]++,c))}; $01=function(p){var x;for(x=0;x<286;x++)p.ww[x*2]=0;for(x=0;x<30;x++)p.zl[x*2]=0;for(x=0;x<19;x++)p.Ld[x*2]=0;p.ww[512]=1;p.Ha=p.u1=0;p.Wy=p.matches=0}; a9_=function(p){p.Mr>8?Zm(p,p.uH):p.Mr>0&&(p.iL[p.pending++]=p.uH);p.uH=0;p.Mr=0}; s61=function(p,x,a){a9_(p);Zm(p,a);Zm(p,~a);wj.vA(p.iL,p.window,x,a,p.pending);p.pending+=a}; vJ8=function(p,x,a,v){var c=x*2,J=a*2;return p[c]>>7)];Om(p,R,a);d=en[R];d!==0&&(c-=uy[R],G5(p,c,d))}}while(v>1;R>=1;R--)NL(p,a,R);b=J;do R=p.MG[1],p.MG[1]=p.MG[p.Wa--],NL(p,a,1),v=p.MG[1],p.MG[--p.Qr]=R,p.MG[--p.Qr]=v,a[b*2]=a[R*2]+a[v*2],p.depth[b]=(p.depth[R]>=p.depth[v]?p.depth[R]:p.depth[v])+1,a[R*2+1]=a[v*2+1]=b,p.MG[1]=b++,NL(p,a,1);while(p.Wa>= 2);p.MG[--p.Qr]=p.MG[1];R=x.ir;b=x.I8;v=x.Mz.cR;c=x.Mz.cT;J=x.Mz.MI;var r=x.Mz.nt,B=x.Mz.ZIO,l,L=0;for(l=0;l<=15;l++)p.l3[l]=0;R[p.MG[p.Qr]*2+1]=0;for(x=p.Qr+1;x<573;x++){var Y=p.MG[x];l=R[R[Y*2+1]*2+1]+1;l>B&&(l=B,L++);R[Y*2+1]=l;if(!(Y>b)){p.l3[l]++;var h=0;Y>=r&&(h=J[Y-r]);var D=R[Y*2];p.Ha+=D*(l+h);c&&(p.u1+=D*(v[Y*2+1]+h))}}if(L!==0){do{for(l=B-1;p.l3[l]===0;)l--;p.l3[l]--;p.l3[l+1]+=2;p.l3[B]--;L-=2}while(L>0);for(l=B;l!==0;l--)for(Y=p.l3[l];Y!==0;)v=p.MG[--x],v>b||(R[v*2+1]!==l&&(p.Ha+=(l- R[v*2+1])*R[v*2],R[v*2+1]=l),Y--)}x08(a,d,p.l3)}; JY1=function(p,x,a){var v,c=-1,J=x[1],R=0,d=7,b=4;J===0&&(d=138,b=3);x[(a+1)*2+1]=65535;for(v=0;v<=a;v++){var r=J;J=x[(v+1)*2+1];++R>>=1)if(x&1&&p.ww[a*2]!==0)return 0;if(p.ww[18]!==0||p.ww[20]!==0||p.ww[26]!==0)return 1;for(a=32;a<256;a++)if(p.ww[a*2]!==0)return 1;return 0}; FE=function(p,x,a){p.iL[p.Cz+p.Wy*2]=x>>>8&255;p.iL[p.Cz+p.Wy*2+1]=x&255;p.iL[p.N_+p.Wy]=a&255;p.Wy++;x===0?p.ww[a*2]++:(p.matches++,x--,p.ww[(Au[a]+256+1)*2]++,p.zl[(x<256?nt[x]:nt[256+(x>>>7)])*2]++);return p.Wy===p.fU-1}; xL=function(p,x){p.msg=p6[x];return x}; $L=function(p){for(var x=p.length;--x>=0;)p[x]=0}; ak=function(p){var x=p.state,a=x.pending;a>p.e3&&(a=p.e3);a!==0&&(wj.vA(p.output,x.iL,x.Gj,a,p.hI),p.hI+=a,x.Gj+=a,p.IQ+=a,p.e3-=a,x.pending-=a,x.pending===0&&(x.Gj=0))}; cr=function(p,x){var a=p.PM>=0?p.PM:-1,v=p.Il-p.PM,c=0;if(p.level>0){p.Kv.Yh===2&&(p.Kv.Yh=Ktf(p));V3(p,p.Dk);V3(p,p.f2);JY1(p,p.ww,p.Dk.I8);JY1(p,p.zl,p.f2.I8);V3(p,p.bl);for(c=18;c>=3&&p.Ld[d01[c]*2+1]===0;c--);p.Ha+=3*(c+1)+5+5+4;var J=p.Ha+3+7>>>3;var R=p.u1+3+7>>>3;R<=J&&(J=R)}else J=R=v+5;if(v+4<=J&&a!==-1)G5(p,x?1:0,3),s61(p,a,v);else if(p.strategy===4||R===J)G5(p,2+(x?1:0),3),cYz(p,s8,vr);else{G5(p,4+(x?1:0),3);a=p.Dk.I8+1;v=p.f2.I8+1;c+=1;G5(p,a-257,5);G5(p,v-1,5);G5(p,c-4,4);for(J=0;J>>8&255;p.iL[p.pending++]=x&255}; bpN=function(p,x){var a=p.Em,v=p.Il,c=p.t3,J=p.Dx,R=p.Il>p.Ox-262?p.Il-(p.Ox-262):0,d=p.window,b=p.Lj,r=p.J2,B=p.Il+258,l=d[v+c-1],L=d[v+c];p.t3>=p.D1&&(a>>=2);J>p.al&&(J=p.al);do{var Y=x;if(d[Y+c]===L&&d[Y+c-1]===l&&d[Y]===d[v]&&d[++Y]===d[v+1]){v+=2;for(Y++;d[++v]===d[++Y]&&d[++v]===d[++Y]&&d[++v]===d[++Y]&&d[++v]===d[++Y]&&d[++v]===d[++Y]&&d[++v]===d[++Y]&&d[++v]===d[++Y]&&d[++v]===d[++Y]&&vc){p.BJ=x;c=Y;if(Y>=J)break;l=d[v+c-1];L=d[v+c]}}}while((x=r[x&b])>R&&--a!== 0);return c<=p.al?c:p.al}; bU=function(p){var x=p.Ox,a;do{var v=p.wf-p.al-p.Il;if(p.Il>=x+(x-262)){wj.vA(p.window,p.window,x,x,0);p.BJ-=x;p.Il-=x;p.PM-=x;var c=a=p.oD;do{var J=p.head[--c];p.head[c]=J>=x?J-x:0}while(--a);c=a=x;do J=p.J2[--c],p.J2[c]=J>=x?J-x:0;while(--a);v+=x}if(p.Kv.Fl===0)break;c=p.Kv;a=p.window;J=p.Il+p.al;var R=c.Fl;R>v&&(R=v);R===0?a=0:(c.Fl-=R,wj.vA(a,c.input,c.jL,R,J),c.state.wrap===1?c.s8=K6(c.s8,a,R,J):c.state.wrap===2&&(c.s8=dx(c.s8,a,R,J)),c.jL+=R,c.zZ+=R,a=R);p.al+=a;if(p.al+p.aB>=3)for(v=p.Il-p.aB, p.Rw=p.window[v],p.Rw=(p.Rw<=3&&(p.Rw=(p.Rw<=3)if(a=FE(p,p.Il-p.BJ,p.ZK-3),p.al-=p.ZK,p.ZK<=p.Zw&&p.al>=3){p.ZK--;do p.Il++,p.Rw=(p.Rw<=3&&(p.Rw=(p.Rw<4096)&&(p.ZK=2));if(p.t3>=3&&p.ZK<=p.t3){v=p.Il+p.al-3;a=FE(p,p.Il-1-p.Rg,p.t3-3);p.al-=p.t3-1;p.t3-=2;do++p.Il<=v&&(p.Rw=(p.Rw<=3&&p.Il>0&&(v=p.Il-1,a=J[v],a===J[++v]&&a===J[++v]&&a===J[++v])){for(c=p.Il+258;a===J[++v]&&a===J[++v]&&a===J[++v]&&a===J[++v]&&a===J[++v]&&a===J[++v]&&a===J[++v]&&a===J[++v]&&vp.al&&(p.ZK=p.al)}p.ZK>=3?(a=FE(p,1,p.ZK-3),p.al-=p.ZK,p.Il+=p.ZK,p.ZK=0):(a=FE(p,0,p.window[p.Il]),p.al--,p.Il++);if(a&&(cr(p,!1),p.Kv.e3===0))return 1}p.aB=0;return x=== 4?(cr(p,!0),p.Kv.e3===0?3:4):p.Wy&&(cr(p,!1),p.Kv.e3===0)?1:2}; BAI=function(p,x){for(var a;;){if(p.al===0&&(bU(p),p.al===0)){if(x===0)return 1;break}p.ZK=0;a=FE(p,0,p.window[p.Il]);p.al--;p.Il++;if(a&&(cr(p,!1),p.Kv.e3===0))return 1}p.aB=0;return x===4?(cr(p,!0),p.Kv.e3===0?3:4):p.Wy&&(cr(p,!1),p.Kv.e3===0)?1:2}; lU=function(p,x,a,v,c){this.VL=p;this.UT7=x;this.hrg=a;this.zr5=v;this.func=c}; l9z=function(){this.Kv=null;this.status=0;this.iL=null;this.wrap=this.pending=this.Gj=this.qh=0;this.Z3=null;this.n7=0;this.method=8;this.Ze=-1;this.Lj=this.RQ=this.Ox=0;this.window=null;this.wf=0;this.head=this.J2=null;this.Dx=this.D1=this.strategy=this.level=this.Zw=this.Em=this.t3=this.al=this.BJ=this.Il=this.Tl=this.Rg=this.ZK=this.PM=this.uG=this.Fn=this.BD=this.oD=this.Rw=0;this.ww=new wj.ai(1146);this.zl=new wj.ai(122);this.Ld=new wj.ai(78);$L(this.ww);$L(this.zl);$L(this.Ld);this.bl=this.f2= this.Dk=null;this.l3=new wj.ai(16);this.MG=new wj.ai(573);$L(this.MG);this.Qr=this.Wa=0;this.depth=new wj.ai(573);$L(this.depth);this.Mr=this.uH=this.aB=this.matches=this.u1=this.Ha=this.Cz=this.Wy=this.fU=this.N_=0}; LtQ=function(p,x){if(!p||!p.state||x>5||x<0)return p?xL(p,-2):-2;var a=p.state;if(!p.output||!p.input&&p.Fl!==0||a.status===666&&x!==4)return xL(p,p.e3===0?-5:-2);a.Kv=p;var v=a.Ze;a.Ze=x;if(a.status===42)if(a.wrap===2)p.s8=0,Ja(a,31),Ja(a,139),Ja(a,8),a.Z3?(Ja(a,(a.Z3.text?1:0)+(a.Z3.Cn?2:0)+(a.Z3.extra?4:0)+(a.Z3.name?8:0)+(a.Z3.comment?16:0)),Ja(a,a.Z3.time&255),Ja(a,a.Z3.time>>8&255),Ja(a,a.Z3.time>>16&255),Ja(a,a.Z3.time>>24&255),Ja(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),Ja(a,a.Z3.os& 255),a.Z3.extra&&a.Z3.extra.length&&(Ja(a,a.Z3.extra.length&255),Ja(a,a.Z3.extra.length>>8&255)),a.Z3.Cn&&(p.s8=dx(p.s8,a.iL,a.pending,0)),a.n7=0,a.status=69):(Ja(a,0),Ja(a,0),Ja(a,0),Ja(a,0),Ja(a,0),Ja(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),Ja(a,3),a.status=113);else{var c=8+(a.RQ-8<<4)<<8;c|=(a.strategy>=2||a.level<2?0:a.level<6?1:a.level===6?2:3)<<6;a.Il!==0&&(c|=32);a.status=113;Rk(a,c+(31-c%31));a.Il!==0&&(Rk(a,p.s8>>>16),Rk(a,p.s8&65535));p.s8=1}if(a.status===69)if(a.Z3.extra){for(c= a.pending;a.n7<(a.Z3.extra.length&65535)&&(a.pending!==a.qh||(a.Z3.Cn&&a.pending>c&&(p.s8=dx(p.s8,a.iL,a.pending-c,c)),ak(p),c=a.pending,a.pending!==a.qh));)Ja(a,a.Z3.extra[a.n7]&255),a.n7++;a.Z3.Cn&&a.pending>c&&(p.s8=dx(p.s8,a.iL,a.pending-c,c));a.n7===a.Z3.extra.length&&(a.n7=0,a.status=73)}else a.status=73;if(a.status===73)if(a.Z3.name){c=a.pending;do{if(a.pending===a.qh&&(a.Z3.Cn&&a.pending>c&&(p.s8=dx(p.s8,a.iL,a.pending-c,c)),ak(p),c=a.pending,a.pending===a.qh)){var J=1;break}J=a.n7c&&(p.s8=dx(p.s8,a.iL,a.pending-c,c));J===0&&(a.n7=0,a.status=91)}else a.status=91;if(a.status===91)if(a.Z3.comment){c=a.pending;do{if(a.pending===a.qh&&(a.Z3.Cn&&a.pending>c&&(p.s8=dx(p.s8,a.iL,a.pending-c,c)),ak(p),c=a.pending,a.pending===a.qh)){J=1;break}J=a.n7c&&(p.s8=dx(p.s8,a.iL,a.pending-c,c));J===0&&(a.status=103)}else a.status= 103;a.status===103&&(a.Z3.Cn?(a.pending+2>a.qh&&ak(p),a.pending+2<=a.qh&&(Ja(a,p.s8&255),Ja(a,p.s8>>8&255),p.s8=0,a.status=113)):a.status=113);if(a.pending!==0){if(ak(p),p.e3===0)return a.Ze=-1,0}else if(p.Fl===0&&(x<<1)-(x>4?9:0)<=(v<<1)-(v>4?9:0)&&x!==4)return xL(p,-5);if(a.status===666&&p.Fl!==0)return xL(p,-5);if(p.Fl!==0||a.al!==0||x!==0&&a.status!==666){v=a.strategy===2?BAI(a,x):a.strategy===3?rY_(a,x):L6[a.level].func(a,x);if(v===3||v===4)a.status=666;if(v===1||v===3)return p.e3===0&&(a.Ze= -1),0;if(v===2&&(x===1?(G5(a,2,3),Om(a,256,s8),a.Mr===16?(Zm(a,a.uH),a.uH=0,a.Mr=0):a.Mr>=8&&(a.iL[a.pending++]=a.uH&255,a.uH>>=8,a.Mr-=8)):x!==5&&(G5(a,0,3),s61(a,0,0),x===3&&($L(a.head),a.al===0&&(a.Il=0,a.PM=0,a.aB=0))),ak(p),p.e3===0))return a.Ze=-1,0}if(x!==4)return 0;if(a.wrap<=0)return 1;a.wrap===2?(Ja(a,p.s8&255),Ja(a,p.s8>>8&255),Ja(a,p.s8>>16&255),Ja(a,p.s8>>24&255),Ja(a,p.zZ&255),Ja(a,p.zZ>>8&255),Ja(a,p.zZ>>16&255),Ja(a,p.zZ>>24&255)):(Rk(a,p.s8>>>16),Rk(a,p.s8&65535));ak(p);a.wrap>0&& (a.wrap=-a.wrap);return a.pending!==0?0:1}; YL=function(p){if(!(this instanceof YL))return new YL(p);p=this.options=wj.assign({level:-1,method:8,chunkSize:16384,Nz:15,saG:8,strategy:0,to:""},p||{});p.raw&&p.Nz>0?p.Nz=-p.Nz:p.nV&&p.Nz>0&&p.Nz<16&&(p.Nz+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Kv=new Yyz;this.Kv.e3=0;var x=this.Kv;var a=p.level,v=p.method,c=p.Nz,J=p.saG,R=p.strategy;if(x){var d=1;a===-1&&(a=6);c<0?(d=0,c=-c):c>15&&(d=2,c-=16);if(J<1||J>9||v!==8||c<8||c>15||a<0||a>9||R<0||R>4)x=xL(x,-2);else{c===8&&(c=9); var b=new l9z;x.state=b;b.Kv=x;b.wrap=d;b.Z3=null;b.RQ=c;b.Ox=1<>=7;J<30;J++)for(uy[J]=R<<7,c=0;c<1<=r.Ox&&(x===0&&($L(r.head),r.Il=0,r.PM=0,r.aB=0),a=new wj.Fd(r.Ox),wj.vA(a,J,R-r.Ox,r.Ox,0),J=a,R=r.Ox);a=p.Fl;v=p.jL;c=p.input;p.Fl=R;p.jL=0;p.input=J;for(bU(r);r.al>=3;){J=r.Il;R=r.al-2;do r.Rw=(r.Rw<=0&&(a[80]<10&&((0,a[74])((0,a[17])((0,a[43])((0,a[34])(a[4]),a[33],a[24],a[78]),a[3],(0,a[72])(a[0],a[23]),a[80],a[7],a[42]),(((0,a[74])(a[31],a[50]),a[22])((0,a[16])(a[new Date(K[38])/1E3],a[67]),a[77],a[34],a[21]),(0,a[41])(a[62],a[8]),a[52])((0,a[70])(a[14],a[64]),a[54],(0,a[18])(),a[22],a[14]),a[34],(((0,a[23])(a[83],a[31]),a[46])(a[60],a[8])===(0,a[15])(a[74],a[50]))%(0,a[15])(a[5],a[54]),(0,a[15])(a[0], a[31]),(0,a[43])((0,a[32])(a[2],a[20]),a[15],a[new Date(K[89])/1E3],a[56]),a[45],(0,a[48])(a[26],a[15]),a[9],a[15]),1)||(((((0,a[53])(a[2],a[15]),a[45])(a[75],a[16]),(0,a[30])(a[21],a[24]),a[61])((0,a[25])(),a[29],a[21]),a[7])((((0,a[41])((0,a[45])(a[42],a[79]),a[31],(0,a[41])((0,a[61])((0,a[83])(),a[new Date(K[55])/1E3],a[0]),a[48],(0,a[81])(a[36]),a[56],a[16]),a[15],a[74]),a[30])(a[21],a[37]),a[81])(a[15]),(0,a[30])(a[16],a[65]),a[23],a[68],(0,a[81])(a[15]),(0,a[61])((0,a[25])(),a[29],a[21]),(((0,a[68])(a[36]), a[30])(a[16],a[49]),a[61])((0,a[25])(),a[29],a[36]),a[79]),a[40])(a[15],a[52]))}catch(v){(0,a[40])(a[16],a[20])}finally{a[2]>=-10&&(a[3]===-8||(((0,a[31])(a[0],a[54]),a[53])(a[22],a[0]),K[15]))&&(0,a[59])((0,a[30])(a[16],a[new Date(K[1])/1E3]),a[new Date(K[52])/1E3],a[16]),a[62]!=6&&(a[32]>=5?(0,a[53])(a[76],a[new Date(K[91])/1E3- -18711]):(0,a[61])((0,a[51])(),a[29],a[36])),a[46]!==-2&&(a[18]==-10&&((0,a[1])(((((0,a[68])(a[15]),a[61])((0,a[83])(),a[29],a[16]),a[30])(a[36],a[62]),a[48])(a[43],a[79]), a[59],((0,a[53])(a[64],a[15]),a[61])((0,a[new Date(K[77])/1E3+48125])(),a[29],a[0]),a[40],a[16],a[5]),1)||(0,a[1])((0,a[41])((0,a[59])((0,a[31])(a[21],a[35]),a[40],a[21],a[10]),a[68],(0,a[45])(a[39],a[79]),a[6]),a[41],(0,a[45])(a[73],a[15]),a[48],(0,a[45])(a[12],a[15]),a[33],a[71])),a[56]<=5&&(a[3]<=-10||((0,a[53])(a[55],a[36]),K[15]))&&(0,a[31])(a[21],a[78])}try{(a[49]!==-4||(((0,a[59])(((0,a[61])((0,a[17])(),a[29],a[21]),a[61])((0,a[17])(),a[29],a[new Date(K[83])/1E3]),a[31],a[16],a[19]),a[53])(a[11], a[21]),0))&&(0,a[41])((0,a[59])((0,a[48])(a[18],a[6]),a[68],a[71]),a[30],(0,a[30])(a[69],a[77]),a[79],a[77]),a[73]!==-2&&(a[36]!==10||((0,a[24])((0,a[24])((0,a[22])((0,a[83])(),a[54],a[77]),a[22],(0,a[58])(),a[54],a[new Date(K[54])/1E3]),a[15],a[62]),null))&&((0,a[15])(a[68]),a[59])((0,a[48])(a[60],a[79]),a[81],a[21]),a[19]>=-7&&(((0,a[53])(a[32],a[79]),a[66])(a[24],a[36]),a[69])(a[55],a[37])}catch(v){(0,a[80])((0,a[82])((0,a[38])(),a[50],a[27]),a[82],(0,a[20])(),a[50],a[27]),(0,a[82])((0,a[38])(), a[50],a[37])}}catch(v){return K[90]+p}return x[K[47]](K[15])}; g.Wr=function(p){this.name=p}; zjJ=function(p){this.l$=Nx(p)}; kL=function(p){this.l$=Nx(p)}; D8=function(p){this.l$=Nx(p)}; wm_=function(p){this.l$=Nx(p)}; U8=function(p){this.l$=Nx(p)}; Hr=function(p){this.l$=Nx(p)}; T0=function(p){this.l$=Nx(p)}; QT=function(p){this.l$=Nx(p)}; md=function(p){this.l$=Nx(p)}; Si=function(p){this.l$=Nx(p)}; f6=function(p){this.l$=Nx(p)}; C6=function(p){this.l$=Nx(p)}; Xj=function(p){this.l$=Nx(p)}; iU=function(p){this.l$=Nx(p)}; ok=function(p){this.l$=Nx(p)}; ta=function(p){this.l$=Nx(p,500)}; z0=function(p){this.l$=Nx(p)}; wx=function(p){this.l$=Nx(p)}; EJN=function(p){this.l$=Nx(p)}; yYJ=function(){return g.$t("yt.ads.biscotti.lastId_")||""}; gJJ=function(p){g.pG("yt.ads.biscotti.lastId_",p)}; yT=function(){var p=arguments,x=E8;p.length>1?x[p[0]]=p[1]:p.length===1&&Object.assign(x,p[0])}; g.gx=function(p,x){return p in E8?E8[p]:x}; O8=function(p){var x=E8.EXPERIMENT_FLAGS;return x?x[p]:void 0}; ZpU=function(p){NY.forEach(function(x){return x(p)})}; g.Pr=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(x){g.Aa(x)}}:p}; g.Aa=function(p){var x=g.$t("yt.logging.errors.log");x?x(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(x=g.gx("ERRORS",[]),x.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),yT("ERRORS",x));ZpU(p)}; qY=function(p,x,a,v,c){var J=g.$t("yt.logging.errors.log");J?J(p,"WARNING",x,a,v,void 0,c):(J=g.gx("ERRORS",[]),J.push([p,"WARNING",x,a,v,void 0,c]),yT("ERRORS",J))}; n6=function(p,x){x=p.split(x);for(var a={},v=0,c=x.length;v1?p[1]:p[0])):{}}; py=function(p,x){return AYf(p,x||{},!0)}; xE=function(p,x){return AYf(p,x||{},!1)}; AYf=function(p,x,a){var v=p.split("#",2);p=v[0];v=v.length>1?"#"+v[1]:"";var c=p.split("?",2);p=c[0];c=uU(c[1]||"");for(var J in x)if(a||!g.bu(c,J))c[J]=x[J];return g.jL(p,c)+v}; $E=function(p){if(!x)var x=window.location.href;var a=g.d3(p)[1]||null,v=g.b$(p);a&&v?(p=g.d3(p),x=g.d3(x),p=p[3]==x[3]&&p[1]==x[1]&&p[4]==x[4]):p=v?g.b$(x)===v&&(Number(g.d3(x)[4]||null)||null)===(Number(g.d3(p)[4]||null)||null):!0;return p}; ay=function(p){p||(p=document.location.href);p=g.d3(p)[1]||null;return p!==null&&p==="https"}; si=function(p){p=PJN(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; qyb=function(p){p=PJN(p);return p===null?!1:p[1]==="google"?!0:p[2]==="google"?p[0]==="au"&&p[1]==="com"?!0:p[0]==="uk"&&p[1]==="co"?!0:!1:!1}; PJN=function(p){p=g.b$(p);return p!==null?p.split(".").reverse():null}; GD1=function(p){return p&&p.match(nJT)?p:f9(p)}; Js=function(p){var x=vZ;p=p===void 0?yYJ():p;var a=Object,v=a.assign,c=cZ(x);var J=x.U;try{var R=J.screenX;var d=J.screenY}catch(f){}try{var b=J.outerWidth;var r=J.outerHeight}catch(f){}try{var B=J.innerWidth;var l=J.innerHeight}catch(f){}try{var L=J.screenLeft;var Y=J.screenTop}catch(f){}try{B=J.innerWidth,l=J.innerHeight}catch(f){}try{var h=J.screen.availWidth;var D=J.screen.availTop}catch(f){}J=[L,Y,R,d,h,D,b,r,B,l];R=$vJ(!1,x.U.top);d={};var H=H===void 0?g.Fg:H;b=new wg;"SVGElement"in H&&"createElementNS"in H.document&&b.set(0);r=aMI();r["allow-top-navigation-by-user-activation"]&&b.set(1);r["allow-popups-to-escape-sandbox"]&&b.set(2);H.crypto&&H.crypto.subtle&&b.set(3);"TextDecoder"in H&&"TextEncoder"in H&&b.set(4);H=khx(b);x=(d.bc=H,d.bih=R.height,d.biw=R.width,d.brdim=J.join(),d.vis=JI(x.Z),d.wgl=!!XU.WebGLRenderingContext,d);a=v.call(a,c,x);a.ca_type="image";p&&(a.bid=p);return a}; cZ=function(p){var x={};x.dt=ejQ;x.flash="0";a:{try{var a=p.U.top.location.href}catch(r){p=2;break a}p=a?a===p.Z.location.href?0:1:2}x=(x.frm=p,x);try{x.u_tz=-(new Date).getTimezoneOffset();try{var v=XU.history.length}catch(r){v=0}x.u_his=v;var c;x.u_h=(c=XU.screen)==null?void 0:c.height;var J;x.u_w=(J=XU.screen)==null?void 0:J.width;var R;x.u_ah=(R=XU.screen)==null?void 0:R.availHeight;var d;x.u_aw=(d=XU.screen)==null?void 0:d.availWidth;var b;x.u_cd=(b=XU.screen)==null?void 0:b.colorDepth}catch(r){}return x}; VlI=function(){if(!uW_)return null;var p=uW_();return"open"in p?p:null}; g.Ky=function(p){switch(Ry(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Ry=function(p){return p&&"status"in p?p.status:-1}; g.dT=function(p,x){typeof p==="function"&&(p=g.Pr(p));return window.setTimeout(p,x)}; g.bF=function(p,x){typeof p==="function"&&(p=g.Pr(p));return window.setInterval(p,x)}; g.rT=function(p){window.clearTimeout(p)}; g.BZ=function(p){window.clearInterval(p)}; g.Ly=function(p){p=lF(p);return typeof p==="string"&&p==="false"?!1:!!p}; g.YE=function(p,x){p=lF(p);return p===void 0&&x!==void 0?x:Number(p||0)}; hs=function(){return g.gx("EXPERIMENTS_TOKEN","")}; lF=function(p){return g.gx("EXPERIMENT_FLAGS",{})[p]}; j$=function(){for(var p=[],x=g.gx("EXPERIMENTS_FORCED_FLAGS",{}),a=g.k(Object.keys(x)),v=a.next();!v.done;v=a.next())v=v.value,p.push({key:v,value:String(x[v])});a=g.gx("EXPERIMENT_FLAGS",{});v=g.k(Object.keys(a));for(var c=v.next();!c.done;c=v.next())c=c.value,c.startsWith("force_")&&x[c]===void 0&&p.push({key:c,value:String(a[c])});return p}; Iy=function(p,x,a,v,c,J,R,d,b){function r(){(B&&"readyState"in B?B.readyState:0)===4&&x&&g.Pr(x)(B)} a=a===void 0?"GET":a;v=v===void 0?"":v;d=d===void 0?!1:d;var B=VlI();if(!B)return null;"onloadend"in B?B.addEventListener("loadend",r,!1):B.onreadystatechange=r;g.Ly("debug_forward_web_query_parameters")&&(p=Ftg(p));B.open(a,p,!0);J&&(B.responseType=J);R&&(B.withCredentials=!0);a=a==="POST"&&(window.FormData===void 0||!(v instanceof FormData));if(c=pg8(p,c))for(var l in c)B.setRequestHeader(l,c[l]),"content-type"===l.toLowerCase()&&(a=!1);a&&B.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); b&&"onprogress"in B&&(B.onprogress=function(){b(B.responseText)}); if(d&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{B.setAttributionReporting(p)}catch(L){qY(L)}}B.send(v);return B}; pg8=function(p,x){x=x===void 0?{}:x;var a=$E(p),v=g.gx("INNERTUBE_CLIENT_NAME"),c=g.Ly("web_ajax_ignore_global_headers_if_set"),J;for(J in xjb){var R=g.gx(xjb[J]),d=J==="X-Goog-AuthUser"||J==="X-Goog-PageId";J!=="X-Goog-Visitor-Id"||R||(R=g.gx("VISITOR_DATA"));var b;if(!(b=!R)){if(!(b=a||(g.b$(p)?!1:!0))){b=p;var r;if(r=g.Ly("add_auth_headers_to_remarketing_google_dot_com_ping")&&J==="Authorization"&&(v==="TVHTML5"||v==="TVHTML5_UNPLUGGED"||v==="TVHTML5_SIMPLY")&&qyb(b))b=r3(b)||"",b=b.split("/"), b="/"+(b.length>1?b[1]:""),r=b==="/pagead";b=r?!0:!1}b=!b}b||c&&x[J]!==void 0||v==="TVHTML5_UNPLUGGED"&&d||(x[J]=R)}"X-Goog-EOM-Visitor-Id"in x&&"X-Goog-Visitor-Id"in x&&delete x["X-Goog-Visitor-Id"];if(a||!g.b$(p))x["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(a||!g.b$(p)){try{var B=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}B&&(x["X-YouTube-Time-Zone"]=B)}document.location.hostname.endsWith("youtubeeducation.com")||!a&&g.b$(p)||(x["X-YouTube-Ad-Signals"]= ei(Js()));return x}; WZ=function(p,x){x.method="POST";x.postParams||(x.postParams={});return g.Mk(p,x)}; sAJ=function(p,x){if(window.fetch&&x.format!=="XML"){var a={method:x.method||"GET",credentials:"same-origin"};x.headers&&(a.headers=x.headers);x.priority&&(a.priority=x.priority);p=$jo(p,x);var v=aOJ(p,x);v&&(a.body=v);x.withCredentials&&(a.credentials="include");var c=x.context||g.Fg,J=!1,R;fetch(p,a).then(function(d){if(!J){J=!0;R&&g.rT(R);var b=d.ok,r=function(B){B=B||{};b?x.onSuccess&&x.onSuccess.call(c,B,d):x.onError&&x.onError.call(c,B,d);x.onFinish&&x.onFinish.call(c,B,d)}; (x.format||"JSON")==="JSON"&&(b||d.status>=400&&d.status<500)?d.json().then(r,function(){r(null)}):r(null)}}).catch(function(){x.onError&&x.onError.call(c,{},{})}); p=x.timeout||0;x.onFetchTimeout&&p>0&&(R=g.dT(function(){J||(J=!0,g.rT(R),x.onFetchTimeout.call(x.context||g.Fg))},p))}else g.Mk(p,x)}; g.Mk=function(p,x){var a=x.format||"JSON";p=$jo(p,x);var v=aOJ(p,x),c=!1,J=v5z(p,function(b){if(!c){c=!0;d&&g.rT(d);var r=g.Ky(b),B=null,l=400<=b.status&&b.status<500,L=500<=b.status&&b.status<600;if(r||l||L)B=chT(p,a,b,x.convertToSafeHtml);r&&(r=Jh_(a,b,B));B=B||{};l=x.context||g.Fg;r?x.onSuccess&&x.onSuccess.call(l,b,B):x.onError&&x.onError.call(l,b,B);x.onFinish&&x.onFinish.call(l,b,B)}},x.method,v,x.headers,x.responseType,x.withCredentials,!1,x.onProgress); v=x.timeout||0;if(x.onTimeout&&v>0){var R=x.onTimeout;var d=g.dT(function(){c||(c=!0,J.abort(),g.rT(d),R.call(x.context||g.Fg,J))},v)}return J}; $jo=function(p,x){x.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var a=g.gx("XSRF_FIELD_NAME");if(x=x.urlParams)x[a]&&delete x[a],p=py(p,x);return p}; aOJ=function(p,x){var a=g.gx("XSRF_FIELD_NAME"),v=g.gx("XSRF_TOKEN"),c=x.postBody||"",J=x.postParams,R=g.gx("XSRF_FIELD_NAME"),d;x.headers&&(d=x.headers["Content-Type"]);x.excludeXsrf||g.b$(p)&&!x.withCredentials&&g.b$(p)!==document.location.hostname||x.method!=="POST"||d&&d!=="application/x-www-form-urlencoded"||x.postParams&&x.postParams[R]||(J||(J={}),J[a]=v);(g.Ly("ajax_parse_query_data_only_when_filled")&&J&&Object.keys(J).length>0||J)&&typeof c==="string"&&(c=uU(c),g.IJ(c,J),c=x.postBodyFormat&& x.postBodyFormat==="JSON"?JSON.stringify(c):g.h1(c));J=c||J&&!g.lu(J);!RW_&&J&&x.method!=="POST"&&(RW_=!0,g.Aa(Error("AJAX request with postData should use POST")));return c}; chT=function(p,x,a,v){var c=null;switch(x){case "JSON":try{var J=a.responseText}catch(R){throw v=Error("Error reading responseText"),v.params=p,qY(v),R;}p=a.getResponseHeader("Content-Type")||"";J&&p.indexOf("json")>=0&&(J.substring(0,5)===")]}'\n"&&(J=J.substring(5)),c=JSON.parse(J));break;case "XML":if(p=(p=a.responseXML)?KkT(p):null)c={},g.ej(p.getElementsByTagName("*"),function(R){c[R.tagName]=dj_(R)})}v&&bLx(c); return c}; bLx=function(p){if(g.cQ(p))for(var x in p)x==="html_content"||ZU_(x,"_html")?p[x]=lO(p[x]):bLx(p[x])}; Jh_=function(p,x,a){if(x&&x.status===204)return!0;switch(p){case "JSON":return!!a;case "XML":return Number(a&&a.return_code)===0;case "RAW":return!0;default:return!!a}}; KkT=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null}; dj_=function(p){var x="";g.ej(p.childNodes,function(a){x+=a.nodeValue}); return x}; Ftg=function(p){var x=window.location.search,a=g.b$(p);g.Ly("debug_handle_relative_url_for_query_forward_killswitch")||!a&&$E(p)&&(a=document.location.hostname);var v=r3(p);v=(a=a&&(a.endsWith("youtube.com")||a.endsWith("youtube-nocookie.com")))&&v&&v.startsWith("/api/");if(!a||v)return p;var c=uU(x),J={};g.ej(rhN,function(R){c[R]&&(J[R]=c[R])}); return xE(p,J)}; Dg=function(p,x){var a=g.hp(x),v;return(new g.Sl(function(c,J){a.onSuccess=function(R){g.Ky(R)?c(new Bw8(R)):J(new kE("Request failed, status="+Ry(R),"net.badstatus",R))}; a.onError=function(R){J(new kE("Unknown request error","net.unknown",R))}; a.onTimeout=function(R){J(new kE("Request timed out","net.timeout",R))}; v=g.Mk(p,a)})).LT(function(c){if(c instanceof tY){var J; (J=v)==null||J.abort()}return XW(c)})}; g.Ui=function(p,x,a,v,c,J){function R(b,r,B){return b.LT(function(l){if(r<=0||Ry(l.xhr)===403)return XW(new kE("Request retried too many times","net.retryexhausted",l.xhr,l));var L=Math.pow(2,a-r+1)*B,Y=c>0?Math.min(c,L):L;return d(B).then(function(){J&&J(l,r-1);return R(Dg(p,x),r-1,Y)})})} function d(b){return new g.Sl(function(r){setTimeout(r,b)})} c=c===void 0?-1:c;return R(Dg(p,x),a-1,v)}; kE=function(p,x,a){Yt.call(this,p+", errorCode="+x);this.errorCode=x;this.xhr=a;this.name="PromiseAjaxError"}; Bw8=function(p){this.xhr=p}; HZ=function(p){this.U=p===void 0?null:p;this.j=0;this.Z=null}; TS=function(p){var x=new HZ;p=p===void 0?null:p;x.j=2;x.Z=p===void 0?null:p;return x}; Ql=function(p){var x=new HZ;p=p===void 0?null:p;x.j=1;x.Z=p===void 0?null:p;return x}; g.fy=function(p,x,a,v,c){m4||S$.set(""+p,x,{oC:a,path:"/",domain:v===void 0?"youtube.com":v,secure:c===void 0?!1:c})}; g.Cy=function(p,x){if(!m4)return S$.get(""+p,x)}; g.Xr=function(p,x,a){m4||S$.remove(""+p,x===void 0?"/":x,a===void 0?"youtube.com":a)}; lON=function(){if(g.Ly("embeds_web_enable_cookie_detection_fix")){if(!g.Fg.navigator.cookieEnabled)return!1}else if(!S$.isEnabled())return!1;if(!S$.isEmpty())return!0;g.Ly("embeds_web_enable_cookie_detection_fix")?S$.set("TESTCOOKIESENABLED","1",{oC:60,Yl7:"none",secure:!0}):S$.set("TESTCOOKIESENABLED","1",{oC:60});if(S$.get("TESTCOOKIESENABLED")!=="1")return!1;S$.remove("TESTCOOKIESENABLED");return!0}; g.O=function(p,x){if(p)return p[x.name]}; iF=function(p){var x=g.gx("INNERTUBE_HOST_OVERRIDE");x&&(p=String(x)+String(BB(p)));return p}; Lk8=function(p){var x={};g.Ly("json_condensed_response")&&(x.prettyPrint="false");return p=xE(p,x)}; oy=function(p,x){var a=a===void 0?{}:a;p={method:x===void 0?"POST":x,mode:$E(p)?"same-origin":"cors",credentials:$E(p)?"same-origin":"include"};x={};for(var v=g.k(Object.keys(a)),c=v.next();!c.done;c=v.next())c=c.value,a[c]&&(x[c]=a[c]);Object.keys(x).length>0&&(p.headers=x);return p}; ts=function(){var p=/Chrome\/(\d+)/.exec(g.Ez());return p?parseFloat(p[1]):NaN}; zS=function(){var p=/\sCobalt\/(\S+)\s/.exec(g.Ez());if(!p)return NaN;var x=[];p=g.k(p[1].split("."));for(var a=p.next();!a.done;a=p.next())a=parseInt(a.value,10),a>=0&&x.push(a);return parseFloat(x.join("."))}; Ei=function(){return g.wT("android")&&g.wT("chrome")&&!(g.wT("trident/")||g.wT("edge/"))&&!g.wT("cobalt")}; Y38=function(){return g.wT("armv7")||g.wT("aarch64")||g.wT("android")}; g.yl=function(){return g.wT("cobalt")}; gT=function(){return g.wT("cobalt")&&g.wT("appletv")}; Zg=function(){return g.wT("(ps3; leanback shell)")||g.wT("ps3")&&g.yl()}; hW1=function(){return g.wT("(ps4; leanback shell)")||g.wT("ps4")&&g.yl()}; g.jAx=function(){return g.yl()&&(g.wT("ps4 vr")||g.wT("ps4 pro vr"))}; GS=function(){var p=/WebKit\/([0-9]+)/.exec(g.Ez());return!!(p&&parseInt(p[1],10)>=600)}; Oi=function(){var p=/WebKit\/([0-9]+)/.exec(g.Ez());return!!(p&&parseInt(p[1],10)>=602)}; IOQ=function(){return g.wT("iemobile")||g.wT("windows phone")&&g.wT("edge")}; PZ=function(){return(Nk||As)&&g.wT("applewebkit")&&!g.wT("version")&&(!g.wT("safari")||g.wT("gsa/"))}; ny=function(){return g.qk&&g.wT("version/")}; e$=function(){return g.wT("smart-tv")&&g.wT("samsung")}; g.wT=function(p){var x=g.Ez();return x?x.toLowerCase().indexOf(p)>=0:!1}; uF=function(){return az8()||PZ()||ny()?!0:g.gx("EOM_VISITOR_DATA")?!1:!0}; Vl=function(p,x){return x===void 0||x===null?p:x==="1"||x===!0||x===1||x==="True"?!0:!1}; Fr=function(p,x,a){for(var v in a)if(a[v]==x)return a[v];return p}; pP=function(p,x){return x===void 0||x===null?p:Number(x)}; xz=function(p,x){return x===void 0||x===null?p:x.toString()}; $z=function(p,x){if(x){if(p==="fullwidth")return Infinity;if(p==="fullheight")return 0}return p&&(x=p.match(MKb))&&(p=Number(x[2]),x=Number(x[1]),!isNaN(p)&&!isNaN(x)&&p>0)?x/p:NaN}; aQ=function(p){var x=p.docid||p.video_id||p.videoId||p.id;if(x)return x;x=p.raw_player_response;x||(p=p.player_response)&&(x=JSON.parse(p));return x&&x.videoDetails&&x.videoDetails.videoId||null}; WkU=function(p){return sU(p,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.vb=function(p){return p==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||p==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; sU=function(p,x){x=(x===void 0?0:x)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(x="EMBEDDED_PLAYER_MODE_PFL");var a=p.raw_embedded_player_response;if(!a&&(p=p.embedded_player_response))try{a=JSON.parse(p)}catch(v){return x}return a?Fr(x,a.embeddedPlayerMode,kjN):x}; JX=function(p){Yt.call(this,p.message||p.description||p.name);this.isMissing=p instanceof cb;this.isTimeout=p instanceof kE&&p.errorCode=="net.timeout";this.isCanceled=p instanceof tY}; cb=function(){Yt.call(this,"Biscotti ID is missing from server")}; Dj1=function(){if(g.Ly("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!uF())return Error("User has not consented - not fetching biscotti id.");var p=g.gx("PLAYER_VARS",{});if(g.LZ(p,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(WkU(p))return Error("Biscotti id fetching has been disabled for pfl.")}; QAI=function(){var p=Dj1();if(p!==void 0)return XW(p);RQ||(RQ=Dg("//googleads.g.doubleclick.net/pagead/id",UjQ).then(HLQ).LT(function(x){return Twz(2,x)})); return RQ}; HLQ=function(p){p=p.xhr.responseText;if(!fZ(p,")]}'"))throw new cb;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new cb;p=p.id;gJJ(p);RQ=Ql(p);mjU(18E5,2);return p}; Twz=function(p,x){x=new JX(x);gJJ("");RQ=TS(x);p>0&&mjU(12E4,p-1);throw x;}; mjU=function(p,x){g.dT(function(){Dg("//googleads.g.doubleclick.net/pagead/id",UjQ).then(HLQ,function(a){return Twz(x,a)}).LT(g.ot)},p)}; S3J=function(){try{var p=g.$t("yt.ads.biscotti.getId_");return p?p():QAI()}catch(x){return XW(x)}}; CEN=function(p){p&&(p.dataset?p.dataset[fO1()]="true":aX8(p))}; Xgg=function(p){return p?p.dataset?p.dataset[fO1()]:p.getAttribute("data-loaded"):null}; fO1=function(){return iLf.loaded||(iLf.loaded="loaded".replace(/\-([a-z])/g,function(p,x){return x.toUpperCase()}))}; o5Q=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var x=KP+"VisibilityState";if(x in p)return p[x]}; dr=function(p,x){var a;OT(p,function(v){a=x[v];return!!a}); return a}; bo=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return p instanceof Promise?p:Promise.resolve()}; lo=function(p){var x;g.rr()?Bb()==p&&(x=document):x=p;return x&&(p=dr(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],x))?(x=p.call(x),x instanceof Promise?x:Promise.resolve()):Promise.resolve()}; tKN=function(p){return g.ME(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(x){return"on"+x.toLowerCase()in p})}; zWJ=function(){var p=document;return g.ME(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(x){return"on"+x.toLowerCase()in p})}; g.rr=function(){return!!dr(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Bb=function(p){p=p===void 0?!1:p;var x=dr(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;x&&x.shadowRoot;)x=x.shadowRoot.fullscreenElement;return x?x:null}; LP=function(p){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(p=p||window.event){this.event=p;for(var x in p)x in wgN||(this[x]=p[x]);this.scale=p.scale;this.rotation=p.rotation;var a=p.target||p.srcElement;a&&a.nodeType==3&&(a=a.parentNode);this.target=a;var v=p.relatedTarget; if(v)try{v=v.nodeName?v:null}catch(c){v=null}else this.type=="mouseover"?v=p.fromElement:this.type=="mouseout"&&(v=p.toElement);this.relatedTarget=v;this.clientX=p.clientX!=void 0?p.clientX:p.pageX;this.clientY=p.clientY!=void 0?p.clientY:p.pageY;this.keyCode=p.keyCode?p.keyCode:p.which;this.charCode=p.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=p.altKey;this.ctrlKey=p.ctrlKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.U=p.pageX;this.Z=p.pageY}}catch(c){}}; E5I=function(p){if(document.body&&document.documentElement){var x=document.body.scrollTop+document.documentElement.scrollTop;p.U=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.Z=p.clientY+x}}; yhT=function(p,x,a,v){v=v===void 0?{}:v;p.addEventListener&&(x!="mouseenter"||"onmouseenter"in document?x!="mouseleave"||"onmouseenter"in document?x=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(x="MozMousePixelScroll"):x="mouseout":x="mouseover");return BD(Yz,function(c){var J=typeof c[4]==="boolean"&&c[4]==!!v,R=g.cQ(c[4])&&g.cQ(v)&&g.Yr(c[4],v);return!!c.length&&c[0]==p&&c[1]==x&&c[2]==a&&(J||R)})}; g.hX=function(p,x,a,v){v=v===void 0?{}:v;if(!p||!p.addEventListener&&!p.attachEvent)return"";var c=yhT(p,x,a,v);if(c)return c;c=++g5g.count+"";var J=!(x!="mouseenter"&&x!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var R=J?function(d){d=new LP(d);if(!Ua(d.relatedTarget,function(b){return b==p},!0))return d.currentTarget=p,d.type=x,a.call(p,d)}:function(d){d=new LP(d); d.currentTarget=p;return a.call(p,d)}; R=g.Pr(R);p.addEventListener?(x=="mouseenter"&&J?x="mouseover":x=="mouseleave"&&J?x="mouseout":x=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(x="MozMousePixelScroll"),ZL_()||typeof v==="boolean"?p.addEventListener(x,R,v):p.addEventListener(x,R,!!v.capture)):p.attachEvent("on"+x,R);Yz[c]=[p,x,a,R,v];return c}; OLU=function(p){return GjJ(p,function(x){return g.xW(x,"ytp-ad-has-logging-urls")})}; GjJ=function(p,x){var a=document.body||document;return g.hX(a,"click",function(v){var c=Ua(v.target,function(J){return J===a||x(J)},!0); c&&c!==a&&!c.disabled&&(v.currentTarget=c,p.call(c,v))})}; g.jh=function(p){p&&(typeof p=="string"&&(p=[p]),g.ej(p,function(x){if(x in Yz){var a=Yz[x],v=a[0],c=a[1],J=a[3];a=a[4];v.removeEventListener?ZL_()||typeof a==="boolean"?v.removeEventListener(c,J,a):v.removeEventListener(c,J,!!a.capture):v.detachEvent&&v.detachEvent("on"+c,J);delete Yz[x]}}))}; IQ=function(p){for(var x in Yz)Yz[x][0]==p&&g.jh(x)}; Ml=function(p){p=p||window.event;var x;p.composedPath&&typeof p.composedPath==="function"?x=p.composedPath():x=p.path;x&&x.length?p=x[0]:(p=p||window.event,p=p.target||p.srcElement,p.nodeType==3&&(p=p.parentNode));return p}; Wb=function(p){this.V=p;this.U=null;this.B=0;this.S=null;this.C=0;this.Z=[];for(p=0;p<4;p++)this.Z.push(0);this.j=0;this.pI=g.hX(window,"mousemove",(0,g.dR)(this.T,this));this.Y=g.bF((0,g.dR)(this.Zt,this),25)}; kz=function(p){g.y.call(this);this.V=[];this.OS=p||this}; Dv=function(p,x,a,v){for(var c=0;c0?a:0;a=v?Date.now()+v*1E3:0;if((v=v?(0,g.Hb)():TW())&&window.JSON){typeof x!=="string"&&(x=JSON.stringify(x,void 0));try{v.set(p,x,a)}catch(c){v.remove(p)}}}; g.mD=function(p){var x=TW(),a=(0,g.Hb)();if(!x&&!a||!window.JSON)return null;try{var v=x.get(p)}catch(c){}if(typeof v!=="string")try{v=a.get(p)}catch(c){}if(typeof v!=="string")return null;try{v=JSON.parse(v,void 0)}catch(c){}return v}; Ahb=function(){var p=(0,g.Hb)();if(p&&(p=p.Z("yt-player-quality")))return p.creation}; g.Sh=function(p){try{var x=TW(),a=(0,g.Hb)();x&&x.remove(p);a&&a.remove(p)}catch(v){}}; g.fP=function(){return g.mD("yt-remote-session-screen-id")}; PEU=function(p){var x=this;this.Z=void 0;this.U=!1;p.addEventListener("beforeinstallprompt",function(a){a.preventDefault();x.Z=a}); p.addEventListener("appinstalled",function(){x.U=!0},{once:!0})}; CP=function(){if(!g.Fg.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Fg.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Fg.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Fg.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Fg.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}}; XK=function(){this.Er=!0}; q3o=function(){XK.instance||(XK.instance=new XK);return XK.instance}; n5b=function(p){switch(p){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}}; eWQ=function(){this.U=g.gx("ALT_PREF_COOKIE_NAME","PREF");this.Z=g.gx("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=g.Cy(this.U);p&&this.parse(p)}; g.oQ=function(){io||(io=new eWQ);return io}; g.tX=function(p,x){return!!((u41("f"+(Math.floor(x/31)+1))||0)&1<0;)switch(p=sj.shift(),p.type){case "ERROR":pF.i9(p.payload);break;case "EVENT":pF.logEvent(p.eventType,p.payload)}}; cR=function(p){vR||(pF?pF.i9(p):(sj.push({type:"ERROR",payload:p}),sj.length>10&&sj.shift()))}; Jx=function(p,x){vR||(pF?pF.logEvent(p,x):(sj.push({type:"EVENT",eventType:p,payload:x}),sj.length>10&&sj.shift()))}; Rb=function(p){if(p.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; KF=function(p){return p.substr(0,p.indexOf(":"))||p}; g.dd=function(p,x,a,v,c){x=x===void 0?{}:x;a=a===void 0?vfU[p]:a;v=v===void 0?cWb[p]:v;c=c===void 0?JWz[p]:c;g.gr.call(this,a,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},x));this.type=p;this.message=a;this.level=v;this.U=c;Object.setPrototypeOf(this,g.dd.prototype)}; bM=function(p,x){g.dd.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:x,foundObjectStores:p},vfU.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,bM.prototype)}; rd=function(p,x){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.index=p;this.objectStore=x;Object.setPrototypeOf(this,rd.prototype)}; lM=function(p,x,a,v){x=KF(x);var c=p instanceof Error?p:Error("Unexpected error: "+p);if(c instanceof g.dd)return c;p={objectStoreNames:a,dbName:x,dbVersion:v};if(c.name==="QuotaExceededError")return new g.dd("QUOTA_EXCEEDED",p);if(g.BR&&c.name==="UnknownError")return new g.dd("QUOTA_MAYBE_EXCEEDED",p);if(c instanceof rd)return new g.dd("MISSING_INDEX",Object.assign({},p,{objectStore:c.objectStore,index:c.index}));if(c.name==="InvalidStateError"&&RIN.some(function(J){return c.message.includes(J)}))return new g.dd("EXECUTE_TRANSACTION_ON_CLOSED_DB", p); if(c.name==="AbortError")return new g.dd("UNKNOWN_ABORT",p,c.message);c.args=[Object.assign({},p,{name:"IdbError",Xt:c.name})];c.level="WARNING";return c}; g.LF=function(p,x,a){var v=FK();return new g.dd("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:x,version:a,hasSucceededOnce:v==null?void 0:v.hasSucceededOnce}})}; K1I=function(p){if(!p)throw Error();throw p;}; dFb=function(p){return p}; Yl=function(p){this.U=p}; g.hx=function(p){function x(c){if(v.state.status==="PENDING"){v.state={status:"REJECTED",reason:c};c=g.k(v.Z);for(var J=c.next();!J.done;J=c.next())J=J.value,J()}} function a(c){if(v.state.status==="PENDING"){v.state={status:"FULFILLED",value:c};c=g.k(v.U);for(var J=c.next();!J.done;J=c.next())J=J.value,J()}} var v=this;this.state={status:"PENDING"};this.U=[];this.Z=[];p=p.U;try{p(a,x)}catch(c){x(c)}}; bO8=function(p,x,a,v,c){try{if(p.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var J=a(p.state.value);J instanceof g.hx?jk(p,x,J,v,c):v(J)}catch(R){c(R)}}; rWx=function(p,x,a,v,c){try{if(p.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var J=a(p.state.reason);J instanceof g.hx?jk(p,x,J,v,c):v(J)}catch(R){c(R)}}; jk=function(p,x,a,v,c){x===a?c(new TypeError("Circular promise chain detected.")):a.then(function(J){J instanceof g.hx?jk(p,x,J,v,c):v(J)},function(J){c(J)})}; Bg_=function(p,x,a){function v(){a(p.error);J()} function c(){x(p.result);J()} function J(){try{p.removeEventListener("success",c),p.removeEventListener("error",v)}catch(R){}} p.addEventListener("success",c);p.addEventListener("error",v)}; lCI=function(p){return new Promise(function(x,a){Bg_(p,x,a)})}; Ib=function(p){return new g.hx(new Yl(function(x,a){Bg_(p,x,a)}))}; MM=function(p,x){return new g.hx(new Yl(function(a,v){function c(){var J=p?x(p):null;J?J.then(function(R){p=R;c()},v):a()} c()}))}; L11=function(p,x){this.request=p;this.cursor=x}; YnN=function(p){return Ib(p).then(function(x){return x?new L11(p,x):null})}; g.hIf=function(p){p.cursor.continue(void 0);return YnN(p.request)}; jHT=function(p,x){this.U=p;this.options=x;this.transactionCount=0;this.j=Math.round((0,g.WR)());this.Z=!1}; g.DH=function(p,x,a){p=p.U.createObjectStore(x,a);return new kl(p)}; Uj=function(p,x){p.U.objectStoreNames.contains(x)&&p.U.deleteObjectStore(x)}; g.Q2=function(p,x,a){return g.HR(p,[x],{mode:"readwrite",bV:!0},function(v){return g.Tb(v.objectStore(x),a)})}; g.HR=function(p,x,a,v){var c,J,R,d,b,r,B,l,L,Y,h,D;return g.t(function(H){switch(H.Z){case 1:var f={mode:"readonly",bV:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof a==="string"?f.mode=a:Object.assign(f,a);c=f;p.transactionCount++;J=c.bV?3:1;R=0;case 2:if(d){H.Ia(4);break}R++;b=Math.round((0,g.WR)());g.DJ(H,5);r=p.U.transaction(x,c.mode);f=new mA(r);f=ICg(f,v);return g.C(H,f,7);case 7:return B=H.U,l=Math.round((0,g.WR)()),MRU(p,b,l,R,void 0,x.join(),c),H.return(B);case 5:L=g.SI(H);Y=Math.round((0,g.WR)()); h=lM(L,p.U.name,x.join(),p.U.version);if((D=h instanceof g.dd&&!h.U)||R>=J)MRU(p,b,Y,R,h,x.join(),c),d=h;H.Ia(2);break;case 4:return H.return(Promise.reject(d))}})}; MRU=function(p,x,a,v,c,J,R){x=a-x;c?(c instanceof g.dd&&(c.type==="QUOTA_EXCEEDED"||c.type==="QUOTA_MAYBE_EXCEEDED")&&Jx("QUOTA_EXCEEDED",{dbName:KF(p.U.name),objectStoreNames:J,transactionCount:p.transactionCount,transactionMode:R.mode}),c instanceof g.dd&&c.type==="UNKNOWN_ABORT"&&(a-=p.j,a<0&&a>=2147483648&&(a=0),Jx("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:J,transactionDuration:x,transactionCount:p.transactionCount,dbDuration:a}),p.Z=!0),W1T(p,!1,v,J,x,R.tag),cR(c)):W1T(p,!0,v,J,x, R.tag)}; W1T=function(p,x,a,v,c,J){Jx("TRANSACTION_ENDED",{objectStoreNames:v,connectionHasUnknownAbortedTransaction:p.Z,duration:c,isSuccessful:x,tryCount:a,tag:J===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":J})}; kl=function(p){this.U=p}; g.Sk=function(p,x,a){p.U.createIndex(x,a,{unique:!1})}; kpz=function(p,x){return g.fF(p,{query:x},function(a){return a.delete().then(function(){return g.CF(a)})}).then(function(){})}; DFf=function(p,x,a){var v=[];return g.fF(p,{query:x},function(c){if(!(a!==void 0&&v.length>=a))return v.push(c.getValue()),g.CF(c)}).then(function(){return v})}; HO_=function(p){return"getAllKeys"in IDBObjectStore.prototype?Ib(p.U.getAllKeys(void 0,void 0)):UFg(p)}; UFg=function(p){var x=[];return g.TgT(p,{query:void 0},function(a){x.push(a.cursor.primaryKey);return g.hIf(a)}).then(function(){return x})}; g.Tb=function(p,x,a){return Ib(p.U.put(x,a))}; g.fF=function(p,x,a){p=p.U.openCursor(x.query,x.direction);return Xd(p).then(function(v){return MM(v,a)})}; g.TgT=function(p,x,a){var v=x.query;x=x.direction;p="openKeyCursor"in IDBObjectStore.prototype?p.U.openKeyCursor(v,x):p.U.openCursor(v,x);return YnN(p).then(function(c){return MM(c,a)})}; mA=function(p){var x=this;this.U=p;this.j=new Map;this.Z=!1;this.done=new Promise(function(a,v){x.U.addEventListener("complete",function(){a()}); x.U.addEventListener("error",function(c){c.currentTarget===c.target&&v(x.U.error)}); x.U.addEventListener("abort",function(){var c=x.U.error;if(c)v(c);else if(!x.Z){c=g.dd;for(var J=x.U.objectStoreNames,R=[],d=0;d=a))return v.push(c.getValue()),g.CF(c)}).then(function(){return v})}; g.iM=function(p,x,a){p=p.U.openCursor(x.query===void 0?null:x.query,x.direction===void 0?"next":x.direction);return Xd(p).then(function(v){return MM(v,a)})}; ob=function(p,x){this.request=p;this.cursor=x}; Xd=function(p){return Ib(p).then(function(x){return x?new ob(p,x):null})}; g.CF=function(p){p.cursor.continue(void 0);return Xd(p.request)}; Snb=function(p,x,a){return new Promise(function(v,c){function J(){L||(L=new jHT(R.result,{closed:l}));return L} var R=x!==void 0?self.indexedDB.open(p,x):self.indexedDB.open(p);var d=a.blocked,b=a.blocking,r=a.VhA,B=a.upgrade,l=a.closed,L;R.addEventListener("upgradeneeded",function(Y){try{if(Y.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(R.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");Y.dataLoss&&Y.dataLoss!=="none"&&Jx("IDB_DATA_CORRUPTED",{reason:Y.dataLossMessage||"unknown reason",dbName:KF(p)});var h=J(),D=new mA(R.transaction); B&&B(h,function(H){return Y.oldVersion=H},D); D.done.catch(function(H){c(H)})}catch(H){c(H)}}); R.addEventListener("success",function(){var Y=R.result;b&&Y.addEventListener("versionchange",function(){b(J())}); Y.addEventListener("close",function(){Jx("IDB_UNEXPECTEDLY_CLOSED",{dbName:KF(p),dbVersion:Y.version});r&&r()}); v(J())}); R.addEventListener("error",function(){c(R.error)}); d&&R.addEventListener("blocked",function(){d()})})}; fCQ=function(p,x,a){a=a===void 0?{}:a;return Snb(p,x,a)}; tx=function(p,x){x=x===void 0?{}:x;var a,v,c,J;return g.t(function(R){if(R.Z==1)return g.DJ(R,2),a=self.indexedDB.deleteDatabase(p),v=x,(c=v.blocked)&&a.addEventListener("blocked",function(){c()}),g.C(R,lCI(a),4); if(R.Z!=2)return g.T1(R,0);J=g.SI(R);throw lM(J,p,"",-1);})}; zb=function(p,x){this.name=p;this.options=x;this.j=!0;this.C=this.B=0}; Cdb=function(p,x){return new g.dd("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:x})}; g.wd=function(p,x){if(!x)throw g.LF("openWithToken",KF(p.name));return p.open()}; Xk1=function(p,x){var a;return g.t(function(v){if(v.Z==1)return g.C(v,g.wd(Ej,x),2);a=v.U;return v.return(g.HR(a,["databases"],{bV:!0,mode:"readwrite"},function(c){var J=c.objectStore("databases");return J.get(p.actualName).then(function(R){if(R?p.actualName!==R.actualName||p.publicName!==R.publicName||p.userIdentifier!==R.userIdentifier:1)return g.Tb(J,p).then(function(){})})}))})}; y2=function(p,x){var a;return g.t(function(v){if(v.Z==1)return p?g.C(v,g.wd(Ej,x),2):v.return();a=v.U;return v.return(a.delete("databases",p))})}; iOJ=function(p,x){var a,v;return g.t(function(c){return c.Z==1?(a=[],g.C(c,g.wd(Ej,x),2)):c.Z!=3?(v=c.U,g.C(c,g.HR(v,["databases"],{bV:!0,mode:"readonly"},function(J){a.length=0;return g.fF(J.objectStore("databases"),{},function(R){p(R.getValue())&&a.push(R.getValue());return g.CF(R)})}),3)):c.return(a)})}; ofx=function(p,x){return iOJ(function(a){return a.publicName===p&&a.userIdentifier!==void 0},x)}; tR1=function(){var p,x,a,v;return g.t(function(c){switch(c.Z){case 1:p=FK();if((x=p)==null?0:x.hasSucceededOnce)return c.return(!0);if(gd&&GS()&&!Oi()||g.ZH)return c.return(!1);try{if(a=self,!(a.indexedDB&&a.IDBIndex&&a.IDBKeyRange&&a.IDBObjectStore))return c.return(!1)}catch(J){return c.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return c.return(!1);g.DJ(c,2);v={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.C(c,Xk1(v,Gb),4);case 4:return g.C(c,y2("yt-idb-test-do-not-use",Gb),5);case 5:return c.return(!0);case 2:return g.SI(c),c.return(!1)}})}; zIz=function(){if(Oj!==void 0)return Oj;vR=!0;return Oj=tR1().then(function(p){vR=!1;var x;if((x=Ve())!=null&&x.U){var a;x={hasSucceededOnce:((a=FK())==null?void 0:a.hasSucceededOnce)||p};var v;(v=Ve())==null||v.set("LAST_RESULT_ENTRY_KEY",x,2592E3,!0)}return p})}; NM=function(){return g.$t("ytglobal.idbToken_")||void 0}; g.Ax=function(){var p=NM();return p?Promise.resolve(p):zIz().then(function(x){(x=x?Gb:void 0)&&g.pG("ytglobal.idbToken_",x);return x})}; wkU=function(p){if(!g.GW())throw p=new g.dd("AUTH_INVALID",{dbName:p}),cR(p),p;var x=g.Zv();return{actualName:p+":"+x,publicName:p,userIdentifier:x}}; EfQ=function(p,x,a,v){var c,J,R,d,b,r;return g.t(function(B){switch(B.Z){case 1:return J=(c=Error().stack)!=null?c:"",g.C(B,g.Ax(),2);case 2:R=B.U;if(!R)throw d=g.LF("openDbImpl",p,x),g.Ly("ytidb_async_stack_killswitch")||(d.stack=d.stack+"\n"+J.substring(J.indexOf("\n")+1)),cR(d),d;Rb(p);b=a?{actualName:p,publicName:p,userIdentifier:void 0}:wkU(p);g.DJ(B,3);return g.C(B,Xk1(b,R),5);case 5:return g.C(B,fCQ(b.actualName,x,v),6);case 6:return B.return(B.U);case 3:return r=g.SI(B),g.DJ(B,7),g.C(B,y2(b.actualName, R),9);case 9:g.T1(B,8);break;case 7:g.SI(B);case 8:throw r;}})}; yWN=function(p,x,a){a=a===void 0?{}:a;return EfQ(p,x,!1,a)}; gfo=function(p,x,a){a=a===void 0?{}:a;return EfQ(p,x,!0,a)}; ZOJ=function(p,x){x=x===void 0?{}:x;var a,v;return g.t(function(c){if(c.Z==1)return g.C(c,g.Ax(),2);if(c.Z!=3){a=c.U;if(!a)return c.return();Rb(p);v=wkU(p);return g.C(c,tx(v.actualName,x),3)}return g.C(c,y2(v.actualName,a),0)})}; Gp1=function(p,x,a){p=p.map(function(v){return g.t(function(c){return c.Z==1?g.C(c,tx(v.actualName,x),2):g.C(c,y2(v.actualName,a),0)})}); return Promise.all(p).then(function(){})}; OOU=function(p){var x=x===void 0?{}:x;var a,v;return g.t(function(c){if(c.Z==1)return g.C(c,g.Ax(),2);if(c.Z!=3){a=c.U;if(!a)return c.return();Rb(p);return g.C(c,ofx(p,a),3)}v=c.U;return g.C(c,Gp1(v,x,a),0)})}; NgQ=function(p,x){x=x===void 0?{}:x;var a;return g.t(function(v){if(v.Z==1)return g.C(v,g.Ax(),2);if(v.Z!=3){a=v.U;if(!a)return v.return();Rb(p);return g.C(v,tx(p,x),3)}return g.C(v,y2(p,a),0)})}; PR=function(p,x){zb.call(this,p,x);this.options=x;Rb(p)}; AWg=function(p,x){var a;return function(){a||(a=new PR(p,x));return a}}; g.qM=function(p,x){return AWg(p,x)}; nF=function(p){return g.wd(Pdo(),p)}; qnT=function(p,x,a,v){var c,J,R;return g.t(function(d){switch(d.Z){case 1:return c={config:p,hashData:x,timestamp:v!==void 0?v:(0,g.WR)()},g.C(d,nF(a),2);case 2:return J=d.U,g.C(d,J.clear("hotConfigStore"),3);case 3:return g.C(d,g.Q2(J,"hotConfigStore",c),4);case 4:return R=d.U,d.return(R)}})}; nff=function(p,x,a,v,c){var J,R,d;return g.t(function(b){switch(b.Z){case 1:return J={config:p,hashData:x,configData:a,timestamp:c!==void 0?c:(0,g.WR)()},g.C(b,nF(v),2);case 2:return R=b.U,g.C(b,R.clear("coldConfigStore"),3);case 3:return g.C(b,g.Q2(R,"coldConfigStore",J),4);case 4:return d=b.U,b.return(d)}})}; eIU=function(p){var x,a;return g.t(function(v){return v.Z==1?g.C(v,nF(p),2):v.Z!=3?(x=v.U,a=void 0,g.C(v,g.HR(x,["coldConfigStore"],{mode:"readwrite",bV:!0},function(c){return g.iM(c.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(J){a=J.getValue()})}),3)):v.return(a)})}; u3f=function(p){var x,a;return g.t(function(v){return v.Z==1?g.C(v,nF(p),2):v.Z!=3?(x=v.U,a=void 0,g.C(v,g.HR(x,["hotConfigStore"],{mode:"readwrite",bV:!0},function(c){return g.iM(c.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(J){a=J.getValue()})}),3)):v.return(a)})}; VRb=function(){return g.t(function(p){return g.C(p,OOU("ytGcfConfig"),0)})}; ek=function(){g.y.call(this);this.Z=[];this.U=[];var p=g.$t("yt.gcf.config.hotUpdateCallbacks");p?(this.Z=[].concat(g.lf(p)),this.U=p):(this.U=[],g.pG("yt.gcf.config.hotUpdateCallbacks",this.U))}; $w=function(){var p=this;this.C=!1;this.j=this.B=0;this.S=new ek;this.d3={N$7:function(){p.C=!0}, gag:function(){return p.U}, Utr:function(x){uM(p,x)}, pA:function(x){p.pA(x)}, y7G:function(x){V2(p,x)}, eC:function(){return p.coldHashData}, zE:function(){return p.hotHashData}, z$d:function(){return p.Z}, r2$:function(){return Fd()}, y24:function(){return ph()}, Tzr:function(){return g.$t("yt.gcf.config.coldHashData")}, lBr:function(){return g.$t("yt.gcf.config.hotHashData")}, in7:function(){F1Q(p)}, L2r:function(){p.pA(void 0);xw(p);delete $w.instance}, kV5:function(x){p.j=x}, Hq5:function(){return p.j}}}; pGJ=function(){if(!$w.instance){var p=new $w;$w.instance=p}return $w.instance}; am_=function(p){var x;g.t(function(a){if(a.Z==1)return g.Ly("start_client_gcf")||g.Ly("delete_gcf_config_db")?g.Ly("start_client_gcf")?g.C(a,g.Ax(),3):a.Ia(2):a.return();a.Z!=2&&((x=a.U)&&g.GW()&&!g.Ly("delete_gcf_config_db")?(p.C=!0,F1Q(p)):(xLU(p),$L8(p)));return g.Ly("delete_gcf_config_db")?g.C(a,VRb(),0):a.Ia(0)})}; aF=function(){var p;return(p=ph())!=null?p:g.gx("RAW_HOT_CONFIG_GROUP")}; sRI=function(p){var x,a,v,c,J,R;return g.t(function(d){switch(d.Z){case 1:if(p.Z)return d.return(ph());if(!p.C)return x=g.LF("getHotConfig IDB not initialized"),qY(x),d.return(Promise.reject(x));a=NM();v=g.gx("TIME_CREATED_MS");if(!a){c=g.LF("getHotConfig token error");qY(c);d.Ia(2);break}return g.C(d,u3f(a),3);case 3:if((J=d.U)&&J.timestamp>v)return uM(p,J.config),p.pA(J.hashData),d.return(ph());case 2:$L8(p);if(!(a&&p.Z&&p.hotHashData)){d.Ia(4);break}return g.C(d,qnT(p.Z,p.hotHashData,a,v),4);case 4:return p.Z? d.return(ph()):(R=new g.gr("Config not available in ytConfig"),qY(R),d.return(Promise.reject(R)))}})}; cuf=function(p){var x,a,v,c,J,R;return g.t(function(d){switch(d.Z){case 1:if(p.U)return d.return(Fd());if(!p.C)return x=g.LF("getColdConfig IDB not initialized"),qY(x),d.return(Promise.reject(x));a=NM();v=g.gx("TIME_CREATED_MS");if(!a){c=g.LF("getColdConfig");qY(c);d.Ia(2);break}return g.C(d,eIU(a),3);case 3:if((J=d.U)&&J.timestamp>v)return V2(p,J.config),vWJ(p,J.configData),xw(p,J.hashData),d.return(Fd());case 2:xLU(p);if(!(a&&p.U&&p.coldHashData&&p.configData)){d.Ia(4);break}return g.C(d,nff(p.U, p.coldHashData,p.configData,a,v),4);case 4:return p.U?d.return(Fd()):(R=new g.gr("Config not available in ytConfig"),qY(R),d.return(Promise.reject(R)))}})}; F1Q=function(p){if(!p.Z||!p.U){if(!NM()){var x=g.LF("scheduleGetConfigs");qY(x)}p.B||(p.B=g.zp.vN(function(){return g.t(function(a){switch(a.Z){case 1:return g.DJ(a,2),g.C(a,sRI(p),4);case 4:g.T1(a,3);break;case 2:g.SI(a);case 3:return g.DJ(a,5),g.C(a,cuf(p),7);case 7:g.T1(a,6);break;case 5:g.SI(a);case 6:p.B&&(p.B=0),g.k1(a)}})},100))}}; Juf=function(p,x,a){var v,c,J;return g.t(function(R){switch(R.Z){case 1:if(!g.Ly("start_client_gcf")){R.Ia(0);break}a&&uM(p,a);p.pA(x);v=NM();if(!v){R.Ia(3);break}if(a){R.Ia(4);break}return g.C(R,u3f(v),5);case 5:c=R.U,a=(J=c)==null?void 0:J.config;case 4:return g.C(R,qnT(a,x,v),3);case 3:if(a)for(var d=a,b=g.k(p.S.U),r=b.next();!r.done;r=b.next())r=r.value,r(d);g.k1(R)}})}; Rd1=function(p,x,a){var v,c,J,R;return g.t(function(d){if(d.Z==1){if(!g.Ly("start_client_gcf"))return d.Ia(0);xw(p,x);return(v=NM())?a?d.Ia(4):g.C(d,eIU(v),5):d.Ia(0)}d.Z!=4&&(c=d.U,a=(J=c)==null?void 0:J.config);if(!a)return d.Ia(0);R=a.configData;return g.C(d,nff(a,x,R,v),0)})}; KmJ=function(){var p=pGJ(),x=(0,g.WR)()-p.j;if(!(p.j!==0&&x0&&(x.request={internalExperimentFlags:a});btx(p,void 0,x);ruz(void 0,x);BjI(void 0,x);lmI(p,void 0,x);LmN(void 0,x);g.Ly("start_client_gcf")&&Ym8(void 0,x);g.gx("DELEGATED_SESSION_ID")&& !g.Ly("pageid_as_header_web")&&(x.user={onBehalfOfUser:g.gx("DELEGATED_SESSION_ID")});!g.Ly("fill_delegate_context_in_gel_killswitch")&&(p=g.gx("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(x.user=Object.assign({},x.user,{serializedDelegationContext:p}));p=g.gx("INNERTUBE_CONTEXT");var v;if(g.Ly("enable_persistent_device_token")&&(p==null?0:(v=p.client)==null?0:v.rolloutToken)){var c;x.client.rolloutToken=p==null?void 0:(c=p.client)==null?void 0:c.rolloutToken}v=Object;c=v.assign;p=x.client; a={};for(var J=g.k(Object.entries(uU(g.gx("DEVICE","")))),R=J.next();!R.done;R=J.next()){var d=g.k(R.value);R=d.next().value;d=d.next().value;R==="cbrand"?a.deviceMake=d:R==="cmodel"?a.deviceModel=d:R==="cbr"?a.browserName=d:R==="cbrver"?a.browserVersion=d:R==="cos"?a.osName=d:R==="cosver"?a.osVersion=d:R==="cplatform"&&(a.platform=d)}x.client=c.call(v,p,a);return x}; btx=function(p,x,a){p=p.Dz;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(x){a=Ub(x,D8,96)||new D8;var v=CP();v=Object.keys(hdJ).indexOf(v);v=v===-1?null:v;v!==null&&Eb(a,3,v);TM(x,D8,96,a)}else a&&(a.client.mainAppWebInfo=(v=a.client.mainAppWebInfo)!=null?v:{},a.client.mainAppWebInfo.webDisplayMode=CP())}; ruz=function(p,x){var a=g.$t("yt.embedded_player.embed_url");a&&(p?(x=Ub(p,md,7)||new md,zM(x,4,a),TM(p,md,7,x)):x&&(x.thirdParty={embedUrl:a}))}; BjI=function(p,x){var a;if(g.Ly("web_log_memory_total_kbytes")&&((a=g.Fg.navigator)==null?0:a.deviceMemory)){var v;a=(v=g.Fg.navigator)==null?void 0:v.deviceMemory;p?$D(p,95,UC(a*1E6)):x&&(x.client.memoryTotalKbytes=""+a*1E6)}}; lmI=function(p,x,a){if(p.appInstallData)if(x){var v;a=(v=Ub(x,kL,62))!=null?v:new kL;zM(a,6,p.appInstallData);TM(x,kL,62,a)}else a&&(a.client.configInfo=a.client.configInfo||{},a.client.configInfo.appInstallData=p.appInstallData)}; LmN=function(p,x){var a=pkg();a&&(p?Eb(p,61,jRo[a]):x&&(x.client.connectionType=a));g.Ly("web_log_effective_connection_type")&&(a=$F1())&&(p?Eb(p,94,Imz[a]):x&&(x.client.effectiveConnectionType=a))}; Mng=function(p,x,a){a=a===void 0?{}:a;var v={};g.gx("EOM_VISITOR_DATA")?v={"X-Goog-EOM-Visitor-Id":g.gx("EOM_VISITOR_DATA")}:v={"X-Goog-Visitor-Id":a.visitorData||g.gx("VISITOR_DATA","")};if(x&&x.includes("www.youtube-nocookie.com"))return v;x=a.J1||g.gx("AUTHORIZATION");x||(p?x="Bearer "+g.$t("gapi.auth.getToken")().access_token:(p=q3o().Ny(JQ),g.Ly("pageid_as_header_web")||delete p["X-Goog-PageId"],v=Object.assign({},v,p)));x&&(v.Authorization=x);return v}; Ym8=function(p,x){var a=KmJ();if(a){var v=a.coldConfigData,c=a.coldHashData;a=a.hotHashData;if(p){var J;x=(J=Ub(p,kL,62))!=null?J:new kL;v=zM(x,1,v);zM(v,3,c).pA(a);TM(p,kL,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},v&&(x.client.configInfo.coldConfigData=v),c&&(x.client.configInfo.coldHashData=c),a&&(x.client.configInfo.hotHashData=a))}}; RF=function(p,x){this.version=p;this.args=x}; Kh=function(p,x){this.topic=p;this.U=x}; bV=function(p,x){var a=dU();a&&a.publish.call(a,p.toString(),p,x)}; DL1=function(p){var x=Wmx,a=dU();if(!a)return 0;var v=a.subscribe(x.toString(),function(c,J){var R=g.$t("ytPubsub2Pubsub2SkipSubKey");R&&R==v||(R=function(){if(rU[v])try{if(J&&x instanceof Kh&&x!=c)try{var d=x.U,b=J;if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!d.g4){var r=new d;d.g4=r.version}var B=d.g4}catch(l){}if(!B||b.version!=B)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{J=Reflect.construct(d, g.CG(b.args))}catch(l){throw l.message="yt.pubsub2.Data.deserialize(): "+l.message,l;}}catch(l){throw l.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+x.toString()+": "+l.message,l;}p.call(window,J)}catch(l){g.Aa(l)}},k5o[x.toString()]?g.nP()?g.zp.vN(R):g.dT(R,0):R())}); rU[v]=!0;BA[x.toString()]||(BA[x.toString()]=[]);BA[x.toString()].push(v);return v}; Tj8=function(){var p=UL1,x=DL1(function(a){p.apply(void 0,arguments);HtI(x)}); return x}; HtI=function(p){var x=dU();x&&(typeof p==="number"&&(p=[p]),g.ej(p,function(a){x.unsubscribeByKey(a);delete rU[a]}))}; dU=function(){return g.$t("ytPubsub2Pubsub2Instance")}; lV=function(p,x,a){a=a===void 0?{sampleRate:.1}:a;Math.random()XGI||R=zdI&&(UL++,g.Ly("abandon_compression_after_N_slow_zips")?D2===g.YE("compression_disable_point")&&UL>wGJ&&(MH=!1):MH=!1);EWo(x);v.headers||(v.headers={});v.headers["Content-Encoding"]="gzip";v.postBody=p;v.postParams=void 0;c(a,v)}; yuT=function(p){var x=x===void 0?!1:x;var a=a===void 0?!1:a;var v=(0,g.WR)(),c={startTime:v,ticks:{},infos:{}},J=x?g.$t("yt.logging.gzipForFetch",!1):!0;if(MH&&J){if(!p.body)return p;try{var R=a?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);J=R;if(!a&&typeof R==="string"){var d=Cyo(R);if(d!=null&&(d>XGI||d=zdI)if(UL++,g.Ly("abandon_compression_after_N_slow_zips")||g.Ly("abandon_compression_after_N_slow_zips_lr")){x=UL/D2;var r=wGJ/g.YE("compression_disable_point");D2>0&&D2%g.YE("compression_disable_point")===0&&x>=r&&(MH=!1)}else MH=!1;EWo(c)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=J;return p}catch(B){return qY(B),p}}else return p}; Cyo=function(p){try{return(new Blob(p.split(""))).size}catch(x){return qY(x),null}}; EWo=function(p){g.Ly("gel_compression_csi_killswitch")||!g.Ly("log_gel_compression_latency")&&!g.Ly("log_gel_compression_latency_lr")||lV("gel_compression",p,{sampleRate:.1})}; TI=function(p){var x=this;this.Dm=this.U=!1;this.potentialEsfErrorCounter=this.Z=0;this.handleError=function(){}; this.Yt=function(){}; this.now=Date.now;this.DA=!1;this.d3={ErG:function(B){x.f1=B}, Dta:function(){x.CC()}, IF:function(){x.oJ()}, b_:function(B){return g.t(function(l){return g.C(l,x.b_(B),0)})}, W1:function(B,l){return x.W1(B,l)}, Dn:function(){x.Dn()}}; var a;this.Uk=(a=p.Uk)!=null?a:100;var v;this.Or=(v=p.Or)!=null?v:1;var c;this.lP=(c=p.lP)!=null?c:2592E6;var J;this.Lf=(J=p.Lf)!=null?J:12E4;var R;this.PR=(R=p.PR)!=null?R:5E3;var d;this.f1=(d=p.f1)!=null?d:void 0;this.dA=!!p.dA;var b;this.QN=(b=p.QN)!=null?b:.1;var r;this.T3=(r=p.T3)!=null?r:10;p.handleError&&(this.handleError=p.handleError);p.Yt&&(this.Yt=p.Yt);p.DA&&(this.DA=p.DA);p.Dm&&(this.Dm=p.Dm);this.cO=p.cO;this.Gq=p.Gq;this.gh=p.gh;this.hS=p.hS;this.sendFn=p.sendFn;this.FO=p.FO;this.Dw= p.Dw;HA(this)&&(!this.cO||this.cO("networkless_logging"))&&gWU(this)}; gWU=function(p){HA(p)&&!p.DA&&(p.U=!0,p.dA&&Math.random()<=p.QN&&p.gh.Cb(p.f1),p.Dn(),p.hS.CG()&&p.CC(),p.hS.listen(p.FO,p.CC.bind(p)),p.hS.listen(p.Dw,p.oJ.bind(p)))}; Otz=function(p,x){if(!HA(p))throw Error("IndexedDB is not supported: updateRequestHandlers");var a=x.options.onError?x.options.onError:function(){}; x.options.onError=function(c,J){var R,d,b,r;return g.t(function(B){switch(B.Z){case 1:R=Zto(J);(d=G5g(J))&&p.cO&&p.cO("web_enable_error_204")&&p.handleError(Error("Request failed due to compression"),x.url,J);if(!(p.cO&&p.cO("nwl_consider_error_code")&&R||p.cO&&!p.cO("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.T3)){B.Ia(2);break}if(!p.hS.tW){B.Ia(3);break}return g.C(B,p.hS.tW(),3);case 3:if(p.hS.CG()){B.Ia(2);break}a(c,J);if(!p.cO||!p.cO("nwl_consider_error_code")||((b=x)==null?void 0: b.id)===void 0){B.Ia(6);break}return g.C(B,p.gh.oZ(x.id,p.f1,!1),6);case 6:return B.return();case 2:if(p.cO&&p.cO("nwl_consider_error_code")&&!R&&p.potentialEsfErrorCounter>p.T3)return B.return();p.potentialEsfErrorCounter++;if(((r=x)==null?void 0:r.id)===void 0){B.Ia(8);break}return x.sendCount=400&&p<=599?!1:!0}; G5g=function(p){var x;p=p==null?void 0:(x=p.error)==null?void 0:x.code;return!(p!==400&&p!==415)}; NjU=function(){if(m8)return m8();var p={};m8=g.qM("LogsDatabaseV2",{G7:(p.LogsRequestsStore={ZG:2},p),shared:!1,upgrade:function(x,a,v){a(2)&&g.DH(x,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});a(3);a(5)&&(v=v.objectStore("LogsRequestsStore"),v.U.indexNames.contains("newRequest")&&v.U.deleteIndex("newRequest"),g.Sk(v,"newRequestV2",["status","interface","timestamp"]));a(7)&&Uj(x,"sapisid");a(9)&&Uj(x,"SWHealthLog")}, version:9});return m8()}; S6=function(p){return g.wd(NjU(),p)}; Py8=function(p,x){var a,v,c,J;return g.t(function(R){if(R.Z==1)return a={startTime:(0,g.WR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.C(R,S6(x),2);if(R.Z!=3)return v=R.U,c=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:g.gx("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.C(R,g.Q2(v,"LogsRequestsStore",c),3);J=R.U;a.ticks.tc=(0,g.WR)();Aux(a);return R.return(J)})}; qmb=function(p,x){var a,v,c,J,R,d,b,r,B;return g.t(function(l){if(l.Z==1)return a={startTime:(0,g.WR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.C(l,S6(x),2);if(l.Z!=3)return v=l.U,c=g.gx("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[p,c,0],R=[p,c,(0,g.WR)()],d=IDBKeyRange.bound(J,R),b="prev",g.Ly("use_fifo_for_networkless")&&(b="next"),r=void 0,B=p==="NEW"?"readwrite":"readonly",g.Ly("use_readonly_for_get_most_recent_by_status_killswitch")&&(B="readwrite"),g.C(l,g.HR(v,["LogsRequestsStore"], {mode:B,bV:!0},function(L){return g.iM(L.objectStore("LogsRequestsStore").index("newRequestV2"),{query:d,direction:b},function(Y){Y.getValue()&&(r=Y.getValue(),p==="NEW"&&(r.status="QUEUED",Y.update(r)))})}),3); a.ticks.tc=(0,g.WR)();Aux(a);return l.return(r)})}; nW1=function(p,x){var a;return g.t(function(v){if(v.Z==1)return g.C(v,S6(x),2);a=v.U;return v.return(g.HR(a,["LogsRequestsStore"],{mode:"readwrite",bV:!0},function(c){var J=c.objectStore("LogsRequestsStore");return J.get(p).then(function(R){if(R)return R.status="QUEUED",g.Tb(J,R).then(function(){return R})})}))})}; edx=function(p,x,a,v){a=a===void 0?!0:a;var c;return g.t(function(J){if(J.Z==1)return g.C(J,S6(x),2);c=J.U;return J.return(g.HR(c,["LogsRequestsStore"],{mode:"readwrite",bV:!0},function(R){var d=R.objectStore("LogsRequestsStore");return d.get(p).then(function(b){return b?(b.status="NEW",a&&(b.sendCount+=1),v!==void 0&&(b.options.compress=v),g.Tb(d,b).then(function(){return b})):g.hx.resolve(void 0)})}))})}; uEQ=function(p,x){var a;return g.t(function(v){if(v.Z==1)return g.C(v,S6(x),2);a=v.U;return v.return(a.delete("LogsRequestsStore",p))})}; Vnz=function(p){var x,a;return g.t(function(v){if(v.Z==1)return g.C(v,S6(p),2);x=v.U;a=(0,g.WR)()-2592E6;return g.C(v,g.HR(x,["LogsRequestsStore"],{mode:"readwrite",bV:!0},function(c){return g.fF(c.objectStore("LogsRequestsStore"),{},function(J){if(J.getValue().timestamp<=a)return J.delete().then(function(){return g.CF(J)})})}),0)})}; Fmx=function(){g.t(function(p){return g.C(p,OOU("LogsDatabaseV2"),0)})}; Aux=function(p){g.Ly("nwl_csi_killswitch")||lV("networkless_performance",p,{sampleRate:1})}; xY1=function(p){return g.wd(prI(),p)}; $Yb=function(p){var x,a;g.t(function(v){if(v.Z==1)return g.C(v,xY1(p),2);x=v.U;a=(0,g.WR)()-2592E6;return g.C(v,g.HR(x,["SWHealthLog"],{mode:"readwrite",bV:!0},function(c){return g.fF(c.objectStore("SWHealthLog"),{},function(J){if(J.getValue().timestamp<=a)return J.delete().then(function(){return g.CF(J)})})}),0)})}; a81=function(p){var x;return g.t(function(a){if(a.Z==1)return g.C(a,xY1(p),2);x=a.U;return g.C(a,x.clear("SWHealthLog"),0)})}; g.fh=function(p,x,a,v,c,J,R){c=c===void 0?"":c;J=J===void 0?!1:J;R=R===void 0?!1:R;if(p)if(a&&!g.yl())qY(new g.gr("Legacy referrer-scrubbed ping detected")),p&&skQ(p,void 0,{scrubReferrer:!0});else if(c)Iy(p,x,"POST",c,v);else if(g.gx("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||v||R)Iy(p,x,"GET","",v,void 0,J,R);else{b:{try{c:{var d=new Dif({url:p});if(d.U.dsh==="1")var b=null;else{var r=d.U.ae;if(r==="1"){var B=d.U.adurl;if(B)try{b={version:3,T8:decodeURIComponent(B),Up:es(d.Z,"act=1","ri=1",UiQ(d))}; break c}catch(Y){}}b=r==="2"?{version:4,T8:es(d.Z,"dct=1","suid="+d.j,""),Up:es(d.Z,"act=1","ri=1","suid="+d.j)}:null}}if(b){var l=r3(p);var L=!(!l||!l.endsWith("/aclk")||Dz(p,"ri")!=="1");break b}}catch(Y){}L=!1}L?vLx(p)?(x&&x(),a=!0):a=!1:a=!1;a||skQ(p,x)}}; vLx=function(p,x){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,x===void 0?"":x))return!0}catch(a){}return!1}; skQ=function(p,x,a){a=a===void 0?{}:a;var v=new Image,c=""+caU++;Ch[c]=v;v.onload=v.onerror=function(){x&&Ch[c]&&x();delete Ch[c]}; a.scrubReferrer&&(v.referrerPolicy="no-referrer");v.src=p}; JaT=function(p){var x;return((x=document.featurePolicy)==null?0:x.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"}; iV=function(){Xv||(Xv=new uo("yt.offline"));return Xv}; RET=function(p){if(g.Ly("offline_error_handling")){var x=iV().get("errors",!0)||{};x[p.message]={name:p.name,stack:p.stack};p.level&&(x[p.message].level=p.level);iV().set("errors",x,2592E3,!0)}}; oF=function(){this.U=new Map;this.Z=!1}; tQ=function(){if(!oF.instance){var p=g.$t("yt.networkRequestMonitor.instance")||new oF;g.pG("yt.networkRequestMonitor.instance",p);oF.instance=p}return oF.instance}; zI=function(){g.Bm.call(this);var p=this;this.Z=!1;this.U=Mu8();this.U.listen("networkstatus-online",function(){if(p.Z&&g.Ly("offline_error_handling")){var x=iV().get("errors",!0);if(x){for(var a in x)if(x[a]){var v=new g.gr(a,"sent via offline_errors");v.name=x[a].name;v.stack=x[a].stack;v.level=x[a].level;g.Aa(v)}iV().set("errors",{},2592E3,!0)}}})}; Kd1=function(){if(!zI.instance){var p=g.$t("yt.networkStatusManager.instance")||new zI;g.pG("yt.networkStatusManager.instance",p);zI.instance=p}return zI.instance}; g.wU=function(p){p=p===void 0?{}:p;g.Bm.call(this);var x=this;this.U=this.B=0;this.Z=Kd1();var a=g.$t("yt.networkStatusManager.instance.listen").bind(this.Z);a&&(p.rateLimit?(this.rateLimit=p.rateLimit,a("networkstatus-online",function(){dYN(x,"publicytnetworkstatus-online")}),a("networkstatus-offline",function(){dYN(x,"publicytnetworkstatus-offline")})):(a("networkstatus-online",function(){x.dispatchEvent("publicytnetworkstatus-online")}),a("networkstatus-offline",function(){x.dispatchEvent("publicytnetworkstatus-offline")})))}; dYN=function(p,x){p.rateLimit?p.U?(g.zp.zg(p.B),p.B=g.zp.vN(function(){p.j!==x&&(p.dispatchEvent(x),p.j=x,p.U=(0,g.WR)())},p.rateLimit-((0,g.WR)()-p.U))):(p.dispatchEvent(x),p.j=x,p.U=(0,g.WR)()):p.dispatchEvent(x)}; yo=function(){var p=TI.call;EL||(EL=new g.wU({P77:!0,wjr:!0}));p.call(TI,this,{gh:{Cb:Vnz,ED:uEQ,Z1:qmb,oU:nW1,oZ:edx,set:Py8},hS:EL,handleError:function(x,a,v){var c,J=v==null?void 0:(c=v.error)==null?void 0:c.code;if(J===400||J===415){var R;x=new g.gr(x.message,a,v==null?void 0:(R=v.error)==null?void 0:R.code);qY(x,void 0,void 0,void 0,!0)}else g.Aa(x)}, Yt:qY,sendFn:b6o,now:g.WR,P4:RET,Gq:g.ql(),FO:"publicytnetworkstatus-online",Dw:"publicytnetworkstatus-offline",dA:!0,QN:.1,T3:g.YE("potential_esf_error_limit",10),cO:g.Ly,DA:!(g.GW()&&g.b$(document.location.toString())!=="www.youtube-nocookie.com")});this.j=new g.rw;g.Ly("networkless_immediately_drop_all_requests")&&Fmx();NgQ("LogsDatabaseV2")}; gU=function(){var p=g.$t("yt.networklessRequestController.instance");p||(p=new yo,g.pG("yt.networklessRequestController.instance",p),g.Ly("networkless_logging")&&g.Ax().then(function(x){p.f1=x;gWU(p);p.j.resolve();p.dA&&Math.random()<=p.QN&&p.f1&&$Yb(p.f1);g.Ly("networkless_immediately_drop_sw_health_store")&&raI(p)})); return p}; raI=function(p){var x;g.t(function(a){if(!p.f1)throw x=g.LF("clearSWHealthLogsDb"),x;return a.return(a81(p.f1).catch(function(v){p.handleError(v)}))})}; b6o=function(p,x,a,v){v=v===void 0?!1:v;x=g.Ly("web_fp_via_jspb")?Object.assign({},x):x;g.Ly("use_cfr_monitor")&&BxI(p,x);if(g.Ly("use_request_time_ms_header"))x.headers&&$E(p)&&(x.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.WR)())));else{var c;if((c=x.postParams)==null?0:c.requestTimeMs)x.postParams.requestTimeMs=Math.round((0,g.WR)())}a&&Object.keys(x).length===0?g.fh(p):x.compress?x.postBody?(typeof x.postBody!=="string"&&(x.postBody=JSON.stringify(x.postBody)),kw(p,x.postBody, x,g.Mk,v)):kw(p,JSON.stringify(x.postParams),x,WZ,v):g.Mk(p,x)}; Z2=function(p,x){g.Ly("use_event_time_ms_header")&&$E(p)&&(x.headers||(x.headers={}),x.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.WR)())));return x}; BxI=function(p,x){var a=x.onError?x.onError:function(){}; x.onError=function(c,J){tQ().requestComplete(p,!1);a(c,J)}; var v=x.onSuccess?x.onSuccess:function(){}; x.onSuccess=function(c,J){tQ().requestComplete(p,!0);v(c,J)}}; g.GI=function(p){this.config_=null;p?this.config_=p:dLT()&&(this.config_=g.sL())}; g.OL=function(p,x,a,v){function c(r){try{if((r===void 0?0:r)&&v.retry&&!v.networklessOptions.bypassNetworkless)J.method="POST",v.networklessOptions.writeThenSend?gU().writeThenSend(b,J):gU().sendAndWrite(b,J);else if(v.compress){var B=!v.networklessOptions.writeThenSend;if(J.postBody){var l=J.postBody;typeof l!=="string"&&(l=JSON.stringify(J.postBody));kw(b,l,J,g.Mk,B)}else kw(b,JSON.stringify(J.postParams),J,WZ,B)}else g.Ly("web_all_payloads_via_jspb")?g.Mk(b,J):WZ(b,J)}catch(L){if(L.name==="InvalidAccessError")qY(Error("An extension is blocking network request.")); else throw L;}} !g.gx("VISITOR_DATA")&&x!=="visitor_id"&&Math.random()<.01&&qY(new g.gr("Missing VISITOR_DATA when sending innertube request.",x,a,v));if(!p.isReady())throw p=new g.gr("innertube xhrclient not ready",x,a,v),g.Aa(p),p;var J={headers:v.headers||{},method:"POST",postParams:a,postBody:v.postBody,postBodyFormat:v.postBodyFormat||"JSON",onTimeout:function(){v.onTimeout()}, onFetchTimeout:v.onTimeout,onSuccess:function(r,B){if(v.onSuccess)v.onSuccess(B)}, onFetchSuccess:function(r){if(v.onSuccess)v.onSuccess(r)}, onProgress:function(r){if(v.onProgress)v.onProgress(r)}, onError:function(r,B){if(v.onError)v.onError(B)}, onFetchError:function(r){if(v.onError)v.onError(r)}, timeout:v.timeout,withCredentials:!0,compress:v.compress};J.headers["Content-Type"]||(J.headers["Content-Type"]="application/json");a="";var R=p.config_.pM;R&&(a=R);R=p.config_.jF||!1;var d=Mng(R,a,v);Object.assign(J.headers,d);J.headers.Authorization&&!a&&R&&(J.headers["x-origin"]=window.location.origin);var b=py(""+a+("/youtubei/"+p.config_.innertubeApiVersion+"/"+x),{alt:"json"});g.$t("ytNetworklessLoggingInitializationOptions")&&l8U.isNwlInitialized?zIz().then(function(r){c(r)}):c(!1)}; g.nh=function(p,x,a){var v=g.NH();if(v&&x){var c=v.subscribe(p,function(){function J(){AQ[c]&&x.apply&&typeof x.apply=="function"&&x.apply(a||window,R)} var R=arguments;try{g.PA[p]?J():g.dT(J,0)}catch(d){g.Aa(d)}},a); AQ[c]=!0;qH[p]||(qH[p]=[]);qH[p].push(c);return c}return 0}; Ldf=function(p){var x=g.nh("LOGGED_IN",function(a){p.apply(void 0,arguments);g.e6(x)})}; g.e6=function(p){var x=g.NH();x&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),g.ej(p,function(a){x.unsubscribeByKey(a);delete AQ[a]}))}; g.uV=function(p,x){var a=g.NH();return a?a.publish.apply(a,arguments):!1}; hEx=function(p){var x=g.NH();if(x)if(x.clear(p),p)Y81(p);else for(var a in qH)Y81(a)}; g.NH=function(){return g.Fg.ytPubsubPubsubInstance}; Y81=function(p){qH[p]&&(p=qH[p],g.ej(p,function(x){AQ[x]&&delete AQ[x]}),p.length=0)}; g.Vo=function(p,x,a){jkg(p,x,a===void 0?null:a)}; jkg=function(p,x,a){a=a===void 0?null:a;var v=I8b(typeof p==="string"?p:p.toString()),c=document.getElementById(v),J=c&&Xgg(c),R=c&&!J;J?x&&x():(x&&(J=g.nh(v,x),x=""+g.Rv(x),Miz[x]=J),R||(c=WdT(p,v,function(){Xgg(c)||(CEN(c),g.uV(v),g.dT(function(){hEx(v)},0))},a)))}; WdT=function(p,x,a,v){v=v===void 0?null:v;var c=g.Lw("SCRIPT");c.id=x;c.onload=function(){a&&setTimeout(a,0)}; c.onreadystatechange=function(){switch(c.readyState){case "loaded":case "complete":c.onload()}}; v&&c.setAttribute("nonce",v);g.Ws(c,typeof p==="string"?g.MY(p):p);p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(c,p.firstChild);return c}; I8b=function(p){var x=document.createElement("a");g.bO(x,p);p=x.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+iO(p)}; aj=function(p,x){if(p===x)p=!0;else if(Array.isArray(p)&&Array.isArray(x))p=g.qE(p,x,aj);else if(g.cQ(p)&&g.cQ(x))a:if(g.KZ(p).length!=g.KZ(x).length)p=!1;else{for(var a in p)if(!aj(p[a],x[a])){p=!1;break a}p=!0}else p=!1;return p}; c1=function(p){var x=g.g_.apply(1,arguments);if(!s0(p)||x.some(function(v){return!s0(v)}))throw Error("Only objects may be merged."); x=g.k(x);for(var a=x.next();!a.done;a=x.next())v1(p,a.value)}; v1=function(p,x){for(var a in x)if(s0(x[a])){if(a in p&&!s0(p[a]))throw Error("Cannot merge an object into a non-object.");a in p||(p[a]={});v1(p[a],x[a])}else if(JJ(x[a])){if(a in p&&!JJ(p[a]))throw Error("Cannot merge an array into a non-array.");a in p||(p[a]=[]);k0b(p[a],x[a])}else p[a]=x[a];return p}; k0b=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next())a=a.value,s0(a)?p.push(v1({},a)):JJ(a)?p.push(k0b([],a)):p.push(a);return p}; s0=function(p){return typeof p==="object"&&!Array.isArray(p)}; JJ=function(p){return typeof p==="object"&&Array.isArray(p)}; Rj=function(p){g.y.call(this);this.Z=p}; KX=function(p){Rj.call(this,!0);this.U=p}; dS=function(p,x){g.y.call(this);var a=this;this.j=[];this.V=!1;this.Z=0;this.C=this.S=this.B=!1;this.Zt=null;var v=(0,g.dR)(p,x);this.U=new g.AW(function(){return v(a.Zt)},300); g.Z(this,this.U);this.T=this.Y=Infinity}; DY_=function(p,x){if(!x)return!1;for(var a=0;a-1)throw Error("Deps cycle for: "+x);if(p.Z.has(x))return p.Z.get(x);if(!p.U.has(x)){if(v)return;throw Error("No provider for: "+x);}v=p.U.get(x);a.push(x);if(v.Xk!==void 0)var c=v.Xk;else if(v.z7A)c=v[kZ]?Qk1(p,v[kZ],a):[],c=v.z7A.apply(v,g.lf(c));else if(v.tF){c=v.tF;var J=c[kZ]?Qk1(p,c[kZ],a):[];c=new (Function.prototype.bind.apply(c,[null].concat(g.lf(J))))}else throw Error("Could not resolve providers for: "+x);a.pop();v.uAI||p.Z.set(x,c); return c}; Qk1=function(p,x,a){return x?x.map(function(v){return v instanceof Ij?DZ(p,v.key,a,!0):DZ(p,v,a)}):[]}; H1=function(){U0||(U0=new TxU);return U0}; QC=function(){var p,x;return"h5vcc"in TK&&((p=TK.h5vcc.traceEvent)==null?0:p.traceBegin)&&((x=TK.h5vcc.traceEvent)==null?0:x.traceEnd)?1:"performance"in TK&&TK.performance.mark&&TK.performance.measure?2:0}; mQ=function(p){var x=QC();switch(x){case 1:TK.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:TK.performance.mark(p+"-start");break;case 0:break;default:ru(x,"unknown trace type")}}; mYQ=function(p){var x=QC();switch(x){case 1:TK.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:x=p+"-start";var a=p+"-end";TK.performance.mark(a);TK.performance.measure(p,x,a);break;case 0:break;default:ru(x,"unknown trace type")}}; S8z=function(p){var x,a;(a=(x=window).onerror)==null||a.call(x,p.message,"",0,0,p)}; f88=function(p){var x=this;var a=a===void 0?0:a;var v=v===void 0?g.ql():v;this.j=a;this.scheduler=v;this.Z=new g.rw;this.U=p;for(p={C_:0};p.C_=1E3?c():v>=p?FJ||(FJ=pr(function(){c();FJ=void 0},0)):J-d>=10&&(q88(x,a.tier),R.B=J)}; G0b=function(p,x){if(p.endpoint==="log_event"){g.Ly("more_accurate_gel_parser")&&O0().storePayload({isJspb:!1},p.payload);AJ(p);var a=P1(p),v=new Map;v.set(a,[p.payload]);var c=yab(p.payload)||"";x&&(uC=new x);return new g.Sl(function(J,R){uC&&uC.isReady()?nLT(v,uC,J,R,{bypassNetworkless:!0},!0,nX(c)):J()})}}; Aa1=function(p,x,a){if(x.endpoint==="log_event"){AJ(void 0,x);var v=P1(x,!0),c=new Map;c.set(v,[OC(x.payload)]);a&&(uC=new a);return new g.Sl(function(J){uC&&uC.isReady()?eEz(c,uC,J,{bypassNetworkless:!0},!0,nX(p)):J()})}}; P1=function(p,x){var a="";if(p.dangerousLogToVisitorSession)a="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(x===void 0?0:x){x=p.cttAuthInfo.token;a=p.cttAuthInfo;var v=new wx;a.videoId?v.setVideoId(a.videoId):a.playlistId&&LE(v,2,xi,QZ(a.playlistId));$i[x]=v}else x=p.cttAuthInfo,a={},x.videoId?a.videoId=x.videoId:x.playlistId&&(a.playlistId=x.playlistId),a1[p.cttAuthInfo.token]=a;a=p.cttAuthInfo.token}return a}; e4=function(p,x,a){p=p===void 0?{}:p;x=x===void 0?!1:x;new g.Sl(function(v,c){var J=VC(x,a),R=J.j;J.j=!1;sq(J.Z);sq(J.U);J.U=0;uC&&uC.isReady()?a===void 0&&g.Ly("enable_web_tiered_gel")?ujf(v,c,p,x,300,R):ujf(v,c,p,x,a,R):(q88(x,a),v())})}; ujf=function(p,x,a,v,c,J){var R=uC;a=a===void 0?{}:a;v=v===void 0?!1:v;c=c===void 0?200:c;J=J===void 0?!1:J;var d=new Map,b=new Map,r={isJspb:v,cttAuthInfo:void 0,tier:c},B={isJspb:v,cttAuthInfo:void 0};if(v){x=g.k(Object.keys(qQ));for(c=x.next();!c.done;c=x.next())c=c.value,b=g.Ly("enable_web_tiered_gel")?O0().smartExtractMatchingEntries({keys:[r,B],sizeLimit:1E3}):O0().extractMatchingEntries({isJspb:!0,cttAuthInfo:c}),b.length>0&&d.set(c,b),(g.Ly("web_fp_via_jspb_and_json")&&a.writeThenSend||!g.Ly("web_fp_via_jspb_and_json"))&& delete qQ[c];eEz(d,R,p,a,!1,J)}else{d=g.k(Object.keys(qQ));for(r=d.next();!r.done;r=d.next())r=r.value,B=g.Ly("enable_web_tiered_gel")?O0().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:r,tier:c},{isJspb:!1,cttAuthInfo:r}],sizeLimit:1E3}):O0().extractMatchingEntries({isJspb:!1,cttAuthInfo:r}),B.length>0&&b.set(r,B),(g.Ly("web_fp_via_jspb_and_json")&&a.writeThenSend||!g.Ly("web_fp_via_jspb_and_json"))&&delete qQ[r];nLT(b,R,p,x,a,!1,J)}}; q88=function(p,x){function a(){e4({writeThenSend:!0},p,x)} p=p===void 0?!1:p;x=x===void 0?200:x;var v=VC(p,x),c=v===Vi1||v===Fdo?5E3:pZQ;g.Ly("web_gel_timeout_cap")&&!v.U&&(c=pr(function(){a()},c),v.U=c); sq(v.Z);c=g.gx("LOGGING_BATCH_TIMEOUT",g.YE("web_gel_debounce_ms",1E4));g.Ly("shorten_initial_gel_batch_timeout")&&vp&&(c=xkU);c=pr(function(){g.YE("gel_min_batch_size")>0?O0().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:x})>=$k1&&a():a()},c); v.Z=c}; nLT=function(p,x,a,v,c,J,R){c=c===void 0?{}:c;var d=Math.round((0,g.WR)()),b=p.size,r=ag1(R);p=g.k(p);var B=p.next();for(R={};!B.done;R={Sb:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,OM:void 0,GH:void 0},B=p.next()){var l=g.k(B.value);B=l.next().value;l=l.next().value;R.batchRequest=g.jg({context:g.cA(x.config_||g.sL())});if(!g.vQ(l)&&!g.Ly("throw_err_when_logevent_malformed_killswitch")){v();break}R.batchRequest.events=l;(l=a1[B])&&sy_(R.batchRequest,B,l);delete a1[B];R.dangerousLogToVisitorSession= B==="visitorOnlyApprovedKey";vEg(R.batchRequest,d,R.dangerousLogToVisitorSession);cs_(c);R.OM=function(L){g.Ly("start_client_gcf")&&g.zp.vN(function(){return g.t(function(Y){return g.C(Y,Jsb(L),0)})}); b--;b||a()}; R.Sb=0;R.GH=function(L){return function(){L.Sb++;if(c.bypassNetworkless&&L.Sb===1)try{g.OL(x,r,L.batchRequest,cp({writeThenSend:!0},L.dangerousLogToVisitorSession,L.OM,L.GH,J)),vp=!1}catch(Y){g.Aa(Y),v()}b--;b||a()}}(R); try{g.OL(x,r,R.batchRequest,cp(c,R.dangerousLogToVisitorSession,R.OM,R.GH,J)),vp=!1}catch(L){g.Aa(L),v()}}}; eEz=function(p,x,a,v,c,J){v=v===void 0?{}:v;var R=Math.round((0,g.WR)()),d={value:p.size},b=new Map([].concat(g.lf(p)));b=g.k(b);for(var r=b.next();!r.done;r=b.next()){var B=g.k(r.value).next().value,l=p.get(B);r=new EJN;var L=x.config_||g.sL(),Y=new C6,h=new U8;zM(h,1,L.q_);zM(h,2,L.bJ);Eb(h,16,L.Zb);zM(h,17,L.innertubeContextClientVersion);if(L.s2){var D=L.s2,H=new kL;D.coldConfigData&&zM(H,1,D.coldConfigData);D.appInstallData&&zM(H,6,D.appInstallData);D.coldHashData&&zM(H,3,D.coldHashData);D.hotHashData&& H.pA(D.hotHashData);TM(h,kL,62,H)}(D=g.Fg.devicePixelRatio)&&D!=1&&$D(h,65,b3(D));D=hs();D!==""&&zM(h,54,D);D=j$();if(D.length>0){H=new QT;for(var f=0;f65535&&(p=1);yT("BATCH_CLIENT_COUNTER",p);return p}; sy_=function(p,x,a){if(a.videoId)var v="VIDEO";else if(a.playlistId)v="PLAYLIST";else return;p.credentialTransferTokenTargetId=a;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:x,scope:v}]}; AJ=function(p,x){var a=g.$t("yt.logging.transport.enableScrapingForTest"),v=lF("il_payload_scraping");v=(v!==void 0?String(v):"")==="enable_il_payload_scraping";if(!a)if(v)Kr=[],g.pG("yt.logging.transport.enableScrapingForTest",!0),g.pG("yt.logging.transport.scrapedPayloadsForTesting",Kr),g.pG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.pG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.pG("yt.logging.transport.scrapeClientEvent",!0);else return;a=g.$t("yt.logging.transport.scrapedPayloadsForTesting");v=g.$t("yt.logging.transport.payloadToScrape");x&&(x=x.payload,(x=g.$t("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(x)())&&a.push(x));x=g.$t("yt.logging.transport.scrapeClientEvent");if(v&&v.length>=1)for(var c=0;c0&&mkg(p,x,J)}else mkg(p,x)}; mkg=function(p,x,a){p=Sig(p);x=x?g.h1(x):"";a=a||5;uF()&&g.fy(p,x,a)}; Sig=function(p){for(var x=g.k(fgo),a=x.next();!a.done;a=x.next())p=UT(p,a.value);return"ST-"+iO(p).toString(36)}; CFo=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("-extension://")||p.includes("webkit-masked-url://")}; XZf=function(p){if(!p.stack)return!0;var x=!p.stack.includes("\n");return x&&p.stack.includes("ErrorType: ")||x&&p.stack.includes("Anonymous function (Unknown script")||p.stack.toLowerCase()==="not available"||p.fileName==="user-script"||p.fileName.startsWith("user-script:")?!0:!1}; iyz=function(){this.oi=[];this.xw=[]}; MS=function(){if(!I1){var p=I1=new iyz;p.xw.length=0;p.oi.length=0;oET(p,t$1)}return I1}; oET=function(p,x){x.xw&&p.xw.push.apply(p.xw,x.xw);x.oi&&p.oi.push.apply(p.oi,x.oi)}; zm_=function(p){function x(){return p.charCodeAt(v++)} var a=p.length,v=0;do{var c=Wp(x);if(c===Infinity)break;var J=c>>3;switch(c&7){case 0:c=Wp(x);if(J===2)return c;break;case 1:if(J===2)return;v+=8;break;case 2:c=Wp(x);if(J===2)return p.substr(v,c);v+=c;break;case 5:if(J===2)return;v+=4;break;default:return}}while(v500));v++);v=c}else if(typeof p==="object")for(c in p){if(p[c]){var J=c;var R=p[c],d=x,b=a;J=typeof R!=="string"||J!=="clickTrackingParams"&&J!=="trackingParams"?0:(R=zm_(atob(R.replace(/-/g,"+").replace(/_/g,"/"))))?ki(J+".ve",R,d,b):0;v+=J;v+=ki(c,p[c],x,a);if(v>500)break}}else a[x]=Dq(p),v+=a[x].length;else a[x]=Dq(p),v+=a[x].length;return v}; ki=function(p,x,a,v){a+="."+p;p=Dq(x);v[a]=p;return a.length+p.length}; Dq=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(x){return"unable to serialize "+typeof p+" ("+x.message+")"}}; $l=function(p){g.Uq(p)}; g.Hp=function(p){g.Uq(p,"WARNING")}; g.Uq=function(p,x){var a=a===void 0?{}:a;a.name=g.gx("INNERTUBE_CONTEXT_CLIENT_NAME",1);a.version=g.gx("INNERTUBE_CONTEXT_CLIENT_VERSION");x=x===void 0?"ERROR":x;var v=!1;x=x===void 0?"ERROR":x;v=v===void 0?!1:v;if(p){p.hasOwnProperty("level")&&p.level&&(x=p.level);if(g.Ly("console_log_js_exceptions")){var c=[];c.push("Name: "+p.name);c.push("Message: "+p.message);p.hasOwnProperty("params")&&c.push("Error Params: "+JSON.stringify(p.params));p.hasOwnProperty("args")&&c.push("Error args: "+JSON.stringify(p.args)); c.push("File name: "+p.fileName);c.push("Stacktrace: "+p.stack);window.console.log(c.join("\n"),p)}if(!(EEo>=5)){c=[];for(var J=g.k(ysf),R=J.next();!R.done;R=J.next()){R=R.value;try{R()&&c.push(R())}catch(D){}}c=[].concat(g.lf(gEQ),g.lf(c));var d=vt8(p);J=d.message||"Unknown Error";R=d.name||"UnknownError";var b=d.stack||p.Z||"Not available";if(b.startsWith(R+": "+J)){var r=b.split("\n");r.shift();b=r.join("\n")}r=d.lineNumber||"Not available";d=d.fileName||"Not available";var B=0;if(p.hasOwnProperty("args")&& p.args&&p.args.length)for(var l=0;l=500);l++);else if(p.hasOwnProperty("params")&&p.params){var L=p.params;if(typeof p.params==="object")for(l in L){if(L[l]){var Y="params."+l,h=Dq(L[l]);a[Y]=h;B+=Y.length+h.length;if(B>500)break}}else a.params=Dq(L)}if(c.length)for(l=0;l=500);l++);navigator.vendor&&!a.hasOwnProperty("vendor")&&(a["device.vendor"]=navigator.vendor);a={message:J,name:R,lineNumber:r, fileName:d,stack:b,params:a,sampleWeight:1};l=Number(p.columnNumber);isNaN(l)||(a.lineNumber=a.lineNumber+":"+l);if(p.level==="IGNORED")p=0;else a:{p=MS();l=g.k(p.xw);for(c=l.next();!c.done;c=l.next())if(c=c.value,a.message&&a.message.match(c.Yw)){p=c.weight;break a}p=g.k(p.oi);for(l=p.next();!l.done;l=p.next())if(l=l.value,l.callback(a)){p=l.weight;break a}p=1}a.sampleWeight=p;p=g.k(Zyx);for(l=p.next();!l.done;l=p.next())if(l=l.value,l.vu[a.name])for(J=g.k(l.vu[a.name]),c=J.next();!c.done;c=J.next())if(R= c.value,c=a.message.match(R.v$)){a.params["params.error.original"]=c[0];J=R.groups;R={};for(r=0;r1E3&&g.Hp(new g.gr("IL Attach cache exceeded limit"))}d= Eq(a,x);iA.has(d)?yj(a,x):tq.set(d,!0)}}v=v.filter(function(B){B.csn!==x?(B.csn=x,B=!0):B=!1;return B}); a={csn:x,parentVe:a.getAsJson(),childVes:g.IT(v,function(B){return B.getAsJson()})}; x==="UNDEFINED_CSN"?g6("visualElementAttached",J,a):p?bA("visualElementAttached",a,p,J):g.ab("visualElementAttached",a,J)}; avo=function(p,x,a,v,c){Zq(a,x);v=Xx({cttAuthInfo:hq(x)||void 0},x);a={csn:x,ve:a.getAsJson(),eventType:1};c&&(a.clientData=c);x==="UNDEFINED_CSN"?g6("visualElementShown",v,a):p?bA("visualElementShown",a,p,v):g.ab("visualElementShown",a,v)}; sQN=function(p,x,a,v){var c=(v=v===void 0?!1:v)?16:8;v=Xx({cttAuthInfo:hq(x)||void 0,endOfSequence:v},x);a={csn:x,ve:a.getAsJson(),eventType:c};x==="UNDEFINED_CSN"?g6("visualElementHidden",v,a):p?bA("visualElementHidden",a,p,v):g.ab("visualElementHidden",a,v)}; G4=function(p,x,a,v,c){vzf(p,x,a,void 0,v,c)}; vzf=function(p,x,a,v,c){Zq(a,x);v=v||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var J=Xx({cttAuthInfo:hq(x)||void 0},x);a={csn:x,ve:a.getAsJson(),gestureType:v};c&&(a.clientData=c);x==="UNDEFINED_CSN"?g6("visualElementGestured",J,a):p?bA("visualElementGestured",a,p,J):g.ab("visualElementGestured",a,J)}; cX8=function(){var p=rS(16);for(var x=[],a=0;a0&&a.push(g.Lw("BR"));a.push(g.Yk(J))}):a.push(g.Yk(v))}return a}; aX=function(p,x,a,v){if(a==="child"){g.It(x);var c;v===void 0?c=void 0:c=!Array.isArray(v)||v&&typeof v.J==="string"?[v]:v;a=RyT(p,c);a=g.k(a);for(p=a.next();!p.done;p=a.next())x.appendChild(p.value)}else a==="style"?g.Ab(x,"cssText",v?v:""):v===null||v===void 0?x.removeAttribute(a):(p=v.toString(),a==="href"&&(p=g.vs(g.R0(p))),x.setAttribute(a,p))}; g.N=function(p){g.x$.call(this,p);this.E7=!0;this.C=!1;this.listeners=[]}; g.s6=function(p){g.N.call(this,p);this.LI=new g.Fx;g.Z(this,this.LI)}; vF=function(p,x,a,v,c,J,R){R=R===void 0?null:R;g.s6.call(this,x);this.api=p;this.macros={};this.componentType=a;this.V=this.Y=null;this.oa=R;this.layoutId=v;this.interactionLoggingClientData=c;this.vO=J;this.gr=null;this.UY=new KX(this.element);g.Z(this,this.UY);this.T4=this.X(this.element,"click",this.onClick);this.u$=[];this.O7=new dS(this.onClick,this);g.Z(this,this.O7);this.US=!1;this.qT=this.Zt=null}; cF=function(p,x){p=p===void 0?null:p;x=x===void 0?null:x;if(p==null)return g.Hp(Error("Got null or undefined adText object")),"";var a=g.Xw(p.text);if(!p.isTemplated)return a;if(x==null)return g.Hp(Error("Missing required parameters for a templated message")),a;p=g.k(Object.entries(x));for(x=p.next();!x.done;x=p.next()){var v=g.k(x.value);x=v.next().value;v=v.next().value;a=a.replace("{"+x+"}",v)}return a}; KDJ=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].url!=null)?g.Xw(p.thumbnails[0].url):""}; dlo=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].width!=null&&p.thumbnails[0].height!=null)?new g.Ps(p.thumbnails[0].width||0,p.thumbnails[0].height||0):new g.Ps(0,0)}; g.Jv=function(p){if(p.simpleText)return p.simpleText;if(p.runs){var x=[];p=g.k(p.runs);for(var a=p.next();!a.done;a=p.next())a=a.value,a.text&&x.push(a.text);return x.join("")}return""}; g.RX=function(p){if(p.simpleText)return p=document.createTextNode(p.simpleText),p;var x=[];if(p.runs)for(var a=0;a1){for(var x=[p[0]],a=1;a0&&(this.U=new g.AW(this.Fs,x,this),g.Z(this,this.U));this.C=new g.AW(this.Fs,a,this);g.Z(this,this.C);this.Y=mw_(this.Z,c,1,v);g.Z(this,this.Y);this.V=mw_(this.Z,0,v,1);g.Z(this,this.V);this.B=new kz;g.Z(this,this.B)}; p5=function(p,x,a){this.Z=p;this.isAsync=x;this.U=a}; $M1=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:ru(p,"unknown result type")}}; aHI=function(p,x){var a=1;p.isTrusted===!1&&(a=0);yT("ISDSTAT",a);xI(a,"i.s_",{triggerContext:"sk",metadata:x});return a}; sb_=function(p,x){var a=[];x?x.isTrusted===!0?a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):x.isTrusted===!1?a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");xI(0,"a.s_",{metadata:p,states:a});yT("ASDSTAT",0)}; xI=function(p,x,a){x=vl_[x];var v,c,J={detected:p===0,source:""+x.Z+((v=a.triggerContext)!=null?v:"")+((c=a.Hr)!=null?c:""),detectionStates:a.states,durationMs:a.NL};a.metadata&&(J.contentCpn=a.metadata.contentCpn,J.adCpn=a.metadata.adCpn);g.ab("biscottiBasedDetection",J);x.U!==void 0&&(a=Number(g.gx("CATSTAT",0)),x.U!==void 0?(x=x.U,p=$M1(p),p=a&~(3<0}; Rr=function(p,x,a,v,c,J){Np.call(this,p,{J:"div",K:"ytp-ad-skip-button-slot"},"skip-button",x,a,v,c);var R=this;this.pI=null;this.F5=!1;this.tG=J;this.S=this.api.L().experiments.cO("enable_modern_skip_button_on_web");this.Ra=!1;this.B=new g.s6({J:"span",CI:["ytp-ad-skip-button-container"]});this.S&&this.B.element.classList.add("ytp-ad-skip-button-container-detached");g.Z(this,this.B);this.B.WO(this.element);this.Z=this.j=null;this.HO=new g.qp(this.B,500,!1,100,function(){return R.hide()}); g.Z(this,this.HO);this.hG=new FT(this.B.element,15E3,5E3,.5,.5,this.S);g.Z(this,this.hG);this.hide()}; Jx1=function(p){p=p.pI&&p.pI.adRendererCommands;return(p&&p.clickCommand&&g.O(p.clickCommand,g.K5)&&g.O(p.clickCommand,g.K5).commands||[]).some(function(x){return x.adLifecycleCommand?cxN(x.adLifecycleCommand):!1})}; cxN=function(p){return p.action==="END_LINEAR_AD"||p.action==="END_LINEAR_AD_PLACEMENT"}; dB=function(p,x,a,v,c,J){Np.call(this,p,{J:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",x,a,v,c);this.pI=J;this.B=!1;this.S=0;this.j=this.Z=null;this.hide()}; Rsf=function(p,x){p.B||(p.B=!0,p.Z&&(x?p.Z.pI.hide():p.Z.hide()),x?(p=p.j,p.HO.show(),p.show()):p.j.show())}; b8=function(p,x,a,v){HF.call(this,p,x,a,v,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; rB=function(p,x,a,v,c,J,R){J=J===void 0?!1:J;R=R===void 0?!1:R;vF.call(this,p,{J:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",x,a,v);this.j=c;this.U=this.BO("ytp-ad-simple-ad-badge");(this.Z=J)&&this.U.classList.add("ytp-ad-simple-ad-badge--clean-player");R&&this.U.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; BC=function(p,x,a,v,c){c=c===void 0?!1:c;Vj.call(this,"player-overlay",p,{},x,v);this.videoAdDurationSeconds=a;this.interactionLoggingClientData=v;this.LL=c}; l8=function(p,x){g.Fx.call(this);this.api=p;this.durationMs=x;this.U=null;this.eV=new kz(this);g.Z(this,this.eV);this.Z=KAz;this.eV.X(this.api,"presentingplayerstatechange",this.sZ);this.U=this.eV.X(this.api,"onAdPlaybackProgress",this.SV)}; L5=function(p){g.Fx.call(this);this.U=!1;this.pT=0;this.eV=new kz(this);g.Z(this,this.eV);this.durationMs=p;this.timer=new g.zD(100);g.Z(this,this.timer);this.eV.X(this.timer,"tick",this.SV);this.Z={seekableStart:0,seekableEnd:p/1E3,current:0};this.start()}; g.YI=function(p,x){var a=Math.abs(Math.floor(p)),v=Math.floor(a/86400),c=Math.floor(a%86400/3600),J=Math.floor(a%3600/60);a=Math.floor(a%60);if(x){x="";v>0&&(x+=" "+v+" Dias");if(v>0||c>0)x+=" "+c+" Horas";x+=" "+J+" Minutos";x+=" "+a+" Segundos";v=x.trim()}else{x="";v>0&&(x+=v+":",c<10&&(x+="0"));if(v>0||c>0)x+=c+":",J<10&&(x+="0");x+=J+":";a<10&&(x+="0");v=x+a}return p>=0?v:"-"+v}; g.hz=function(p){return(!("button"in p)||typeof p.button!=="number"||p.button===0)&&!("shiftKey"in p&&p.shiftKey)&&!("altKey"in p&&p.altKey)&&!("metaKey"in p&&p.metaKey)&&!("ctrlKey"in p&&p.ctrlKey)}; jG=function(p,x,a,v,c,J,R){Np.call(this,p,{J:"span",K:R?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",x,a,v,c);this.videoAdDurationSeconds=J;this.Z=null;R&&this.api.L().Z&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),gd&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Ir=function(p,x,a,v){Gn.call(this,p,x,a,v,"ytp-video-ad-top-bar-title","ad-title")}; Me=function(p){this.content=p.content;if(p.commandRuns){p=g.k(p.commandRuns);for(var x=p.next();!x.done;x=p.next())x=x.value,this.loggingDirectives=g.O(x,dMU),x.onTap&&(this.interaction={onTap:x.onTap})}}; WC=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ad-simple-attributed-string"},"ad-simple-attributed-string",x,a,v);this.hide()}; kI=function(p,x,a,v,c){vF.call(this,p,{J:"span",K:c?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",x,a,v);this.Z=c;this.adBadgeText=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);this.adBadgeText.WO(this.element);g.Z(this,this.adBadgeText);c?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),gd&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; D5=function(p,x,a,v){vF.call(this,p,{J:"span",K:"ytp-ad-pod-index"},"ad-pod-index",x,a,v);this.api.L().Z&&(this.element.classList.add("ytp-ad-pod-index--mweb"),gd&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; UE=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",x,a,v);this.hide()}; HC=function(p,x){this.Z=p;this.U=x}; bFb=function(p,x){return p.Z+x*(p.U-p.Z)}; TN=function(p,x,a){return p.U-p.Z?g.ZL((x-p.Z)/(p.U-p.Z),0,1):a!=null?a:Infinity}; Q4=function(p,x,a,v){v=v===void 0?!1:v;g.s6.call(this,{J:"div",K:"ytp-ad-persistent-progress-bar-container",N:[{J:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=p;this.Z=x;this.j=a;v&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Z(this,this.Z);this.progressBar=this.BO("ytp-ad-persistent-progress-bar");this.U=-1;this.X(p,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; mP=function(p,x,a,v,c,J){vF.call(this,p,{J:"div",K:"ytp-ad-player-overlay",N:[{J:"div",K:"ytp-ad-player-overlay-flyout-cta"},{J:"div",K:"ytp-ad-player-overlay-instream-info"},{J:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{J:"div",K:"ytp-ad-player-overlay-progress-bar"},{J:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"},{J:"div",K:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",x,a,v);this.T=J;this.S=this.BO("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.U=this.BO("ytp-ad-player-overlay-instream-info");this.B=null;rx1(this)&&(p=lP("div"),g.$W(p,"ytp-ad-player-overlay-top-bar-gradients"),x=this.U,x.parentNode&&x.parentNode.insertBefore(p,x),(x=this.api.getVideoData(2))&&x.isListed&&x.title&&(a=new Ir(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),a.WO(p),a.init(uA("ad-title"),{text:x.title},this.macros),g.Z(this,a)),this.B=p);this.j=null;this.V6=this.BO("ytp-ad-player-overlay-skip-or-preview");this.hG=this.BO("ytp-ad-player-overlay-progress-bar"); this.F5=this.BO("ytp-ad-player-overlay-instream-user-sentiment");this.pI=this.BO("ytp-ad-player-overlay-ad-disclosure-banner");this.Z=c;g.Z(this,this.Z);this.hide()}; rx1=function(p){p=p.api.L();return g.SG(p)&&p.Z}; g.f5=function(p){p&=16777215;var x=[(p&16711680)>>16,(p&65280)>>8,p&255];p=x[0];var a=x[1];x=x[2];p=Number(p);a=Number(a);x=Number(x);if(p!=(p&255)||a!=(a&255)||x!=(x&255))throw Error('"('+p+","+a+","+x+'") is not a valid RGB color');a=p<<16|a<<8|x;return p<16?"#"+(16777216|a).toString(16).slice(1):"#"+a.toString(16)}; g.C5=function(){}; lHg=function(p){var x=new d8;var a=new Kv;a=zM(a,1,"botguard");p=zM(a,2,p);this.U=i9f(x,Kv,1,BdU,p)}; XA=function(p){this.U=new HG(p)}; LAo=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(x){p=!0}return(g.gx("INNERTUBE_CLIENT_NAME")==="WEB"||g.gx("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p}; i8=function(){var p=p===void 0?!0:p;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");yT("LOGIN_INFO","");p&&window.sessionStorage.setItem("from_switch_account","1");p=!0;p=p===void 0?!1:p;var x,a=Yjo;a||(a=document.querySelector("#persist_identity"));if(x=a){var v=x.src?(new URL(x.src)).origin:"*";if(p){var c;(c=x.contentWindow)==null||c.postMessage({action:"clear"},v)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var J=window.sessionStorage.getItem("session_logininfo");if(J){var R;(R=x.contentWindow)==null||R.postMessage({loginInfo:J},v)}}}}catch(d){}}; or=function(p){p&&(p.startsWith("https://accounts.google.com/AddSession")?i8():p.startsWith("https://accounts.google.com/ServiceLogin")?i8():p.startsWith("https://myaccount.google.com")&&g.bd(p).Z.endsWith("/youtubeoptions")&&i8());if(g.gx("LOGGED_IN",!0)&&LAo()){var x=g.gx("VALID_SESSION_TEMPDATA_DOMAINS",[]);var a=g.b$(window.location.href);a&&x.push(a);a=g.b$(p);g.kt(x,a)||!a&&fZ(p,"/")?(x=BB(p),(x=gkN(x))?(x=Sig(x),x=(x=g.Cy(x)||null)?uU(x):{}):x=null):x=null;x==null&&(x={});a=x;var v=void 0; LAo()?(v||(v=g.gx("LOGIN_INFO")),v?(a.session_logininfo=v,a=!0):a=!1):a=!1;a&&jJ(p,x)}}; g.hsQ=function(p){var x=x===void 0?{}:x;var a=a===void 0?"":a;var v=v===void 0?window:v;p=g.jL(p,x);or(p);a=g.R0(p+a);v=v.location;a=du(a);a!==void 0&&(v.href=a)}; g.tz=function(p,x,a){x=x===void 0?{}:x;a=a===void 0?!1:a;var v=g.gx("EVENT_ID");v&&(x.ei||(x.ei=v));x&&jJ(p,x);a||(or(p),g.hsQ(p))}; g.zN=function(p,x,a,v,c){c=c===void 0?!1:c;a&&jJ(p,a);a=g.R0(p);var J=g.vs(a);p!=J&&qY(Error("Unsafe window.open URL: "+p));p=J;x=x||iO(p).toString(36);try{if(c)return c=p,c=JaT(c),or(c),g.YY(window,c,x,"attributionsrc")}catch(R){g.Aa(R)}or(p);return g.YY(window,a,x,v)}; jb1=function(p){wB=p}; IHT=function(p){EE=p}; MkN=function(p){y4=p}; kbU=function(){WA1=y4=EE=wB=null}; UMQ=function(){var p=p===void 0?window.location.href:p;if(g.Ly("kevlar_disable_theme_param"))return null;var x=r3(p);if(g.Ly("enable_dark_theme_only_on_shorts")&&x!=null&&x.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var a=g.Fj(p).theme;return DM_.get(a)||null}catch(v){}return null}; gB=function(){this.U={};if(this.Z=lON()){var p=g.Cy("CONSISTENCY");p&&HFo(this,{encryptedTokenJarContents:p})}}; HFo=function(p,x){if(x.encryptedTokenJarContents&&(p.U[x.encryptedTokenJarContents]=x,typeof x.expirationSeconds==="string")){var a=Number(x.expirationSeconds);setTimeout(function(){delete p.U[x.encryptedTokenJarContents]},a*1E3); p.Z&&g.fy("CONSISTENCY",x.encryptedTokenJarContents,a,void 0,!0)}}; GN=function(){this.Z=-1;var p=g.gx("LOCATION_PLAYABILITY_TOKEN");g.gx("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Z5(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.U=void 0)}; Z5=function(p){return p.localStorage===void 0?new uo("yt-client-location"):p.localStorage}; g.OE=function(p,x,a){x=x===void 0?!1:x;a=a===void 0?!1:a;var v=g.gx("INNERTUBE_CONTEXT");if(!v)return g.Uq(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};v=g.jg(v);g.Ly("web_no_tracking_params_in_shell_killswitch")||delete v.clickTracking;v.client||(v.client={});var c=v.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=g.gx("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 J=J===void 0?!1:J;g.oQ();var R="USER_INTERFACE_THEME_LIGHT";g.tX(0,165)?R="USER_INTERFACE_THEME_DARK":g.tX(0,174)?R="USER_INTERFACE_THEME_LIGHT":!g.Ly("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (R="USER_INTERFACE_THEME_DARK");J=J?R:UMQ()||R;c.userInterfaceTheme=J;if(!x){if(J=pkg())c.connectionType=J;g.Ly("web_log_effective_connection_type")&&(J=$F1())&&(v.client.effectiveConnectionType=J)}var d;if(g.Ly("web_log_memory_total_kbytes")&&((d=g.Fg.navigator)==null?0:d.deviceMemory)){var b;d=(b=g.Fg.navigator)==null?void 0:b.deviceMemory;v.client.memoryTotalKbytes=""+d*1E6}g.Ly("web_gcf_hashes_innertube")&&(J=KmJ())&&(b=J.coldConfigData,d=J.coldHashData,J=J.hotHashData,v.client.configInfo=v.client.configInfo|| {},b&&(v.client.configInfo.coldConfigData=b),d&&(v.client.configInfo.coldHashData=d),J&&(v.client.configInfo.hotHashData=J));b=g.Fj(g.Fg.location.href);!g.Ly("web_populate_internal_geo_killswitch")&&b.internalcountrycode&&(c.internalGeo=b.internalcountrycode);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo||(c.mainAppWebInfo={}),c.mainAppWebInfo.graftUrl=g.Fg.location.href,g.Ly("kevlar_woffle")&&PEU.instance&&(b=PEU.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!b.U&&b.Z?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=CP(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&(!g.Ly("web_lr_app_quality_killswitch")&&(b=g.gx("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:b})),b=g.gx("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:b}));if(!g.Ly("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(E){}r=void 0}r&&(c.timeZone=r)}(r=hs())?c.experimentsToken=r:delete c.experimentsToken;r=j$();gB.instance||(gB.instance=new gB);v.request=Object.assign({},v.request,{internalExperimentFlags:r,consistencyTokenJars:vD(gB.instance.U)});!g.Ly("web_prequest_context_killswitch")&&(r=g.gx("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(v.request.externalPrequestContext=r);c=g.oQ();r=g.tX(0,58);c=c.get("gsml","");v.user=Object.assign({}, v.user);r&&(v.user.enableSafetyMode=r);c&&(v.user.lockedSafetyMode=!0);g.Ly("warm_op_csn_cleanup")?a&&(x=g.Yi())&&(v.clientScreenNonce=x):!x&&(x=g.Yi())&&(v.clientScreenNonce=x);p&&(v.clickTracking={clickTrackingParams:p});if(p=g.$t("yt.mdx.remote.remoteClient_"))v.remoteClient=p;GN.getInstance().setLocationOnInnerTubeContext(v);try{var B=Js(),l=B.bid;delete B.bid;v.adSignalsInfo={params:[],bid:l};for(var L=g.k(Object.entries(B)),Y=L.next();!Y.done;Y=L.next()){var h=g.k(Y.value),D=h.next().value, H=h.next().value;B=D;l=H;p=void 0;(p=v.adSignalsInfo.params)==null||p.push({key:B,value:""+l})}var f,m;if(((f=v.client)==null?void 0:f.clientName)==="TVHTML5"||((m=v.client)==null?void 0:m.clientName)==="TVHTML5_UNPLUGGED"){var X=g.gx("INNERTUBE_CONTEXT");X.adSignalsInfo&&(v.adSignalsInfo.advertisingId=X.adSignalsInfo.advertisingId,v.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",v.adSignalsInfo.limitAdTracking=X.adSignalsInfo.limitAdTracking)}}catch(E){g.Uq(E)}return v}; mMT=function(p,x){if(!p)return!1;var a,v=(a=g.O(p,Tdb))==null?void 0:a.signal;if(v&&x.eL)return!!x.eL[v];var c;if((a=(c=g.O(p,QbQ))==null?void 0:c.request)&&x.W2)return!!x.W2[a];for(var J in p)if(x.OF[J])return!0;return!1}; SjI=function(p){var x={"Content-Type":"application/json"};g.gx("EOM_VISITOR_DATA")?x["X-Goog-EOM-Visitor-Id"]=g.gx("EOM_VISITOR_DATA"):g.gx("VISITOR_DATA")&&(x["X-Goog-Visitor-Id"]=g.gx("VISITOR_DATA"));x["X-Youtube-Bootstrap-Logged-In"]=g.gx("LOGGED_IN",!1);g.gx("DEBUG_SETTINGS_METADATA")&&(x["X-Debug-Settings-Metadata"]=g.gx("DEBUG_SETTINGS_METADATA"));p!=="cors"&&((p=g.gx("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(x["X-Youtube-Client-Name"]=p),(p=g.gx("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(x["X-Youtube-Client-Version"]= p),(p=g.gx("CHROME_CONNECTED_HEADER"))&&(x["X-Youtube-Chrome-Connected"]=p),(p=g.gx("DOMAIN_ADMIN_STATE"))&&(x["X-Youtube-Domain-Admin-State"]=p),g.gx("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=g.gx("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(x["X-YouTube-Lava-Device-Context"]=p));return x}; fH1=function(){this.U={}}; Ne=function(){this.mappings=new fH1}; Az=function(p){return function(){return new p}}; XRx=function(p){var x=x===void 0?"UNKNOWN_INTERFACE":x;if(p.length===1)return p[0];var a=CMf[x];if(a){a=new RegExp(a);for(var v=g.k(p),c=v.next();!c.done;c=v.next())if(c=c.value,a.exec(c))return c}var J=[];Object.entries(CMf).forEach(function(R){var d=g.k(R);R=d.next().value;d=d.next().value;x!==R&&J.push(d)}); a=new RegExp(J.join("|"));p.sort(function(R,d){return R.length-d.length}); v=g.k(p);for(c=v.next();!c.done;c=v.next())if(c=c.value,!a.exec(c))return c;return p[0]}; g.PC=function(p){return"/youtubei/v1/"+XRx(p)}; qe=function(){}; n5=function(){}; eG=function(){}; u8=function(p){return g.$t("ytcsi."+(p||"")+"data_")||iFI(p)}; olQ=function(){var p=u8();p.info||(p.info={});return p.info}; V4=function(p){p=u8(p);p.metadata||(p.metadata={});return p.metadata}; FA=function(p){p=u8(p);p.tick||(p.tick={});return p.tick}; pb=function(p){p=u8(p);if(p.gel){var x=p.gel;x.gelInfos||(x.gelInfos={});x.gelTicks||(x.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel}; tkJ=function(p){p=pb(p);p.gelInfos||(p.gelInfos={});return p.gelInfos}; x8=function(p){var x=u8(p).nonce;x||(x=g.B1(16),u8(p).nonce=x);return x}; iFI=function(p){var x={tick:{},info:{}};g.pG("ytcsi."+(p||"")+"data_",x);return x}; $8=function(){var p=g.$t("ytcsi.debug");p||(p=[],g.pG("ytcsi.debug",p),g.pG("ytcsi.reference",{}));return p}; ae=function(p){p=p||"";var x=zsJ();if(x[p])return x[p];var a=$8(),v={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};a.push(v);return x[p]=v}; wRN=function(p){p=p||"";var x=zsJ();x[p]&&delete x[p];var a=$8(),v={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};a.push(v);x[p]=v}; zsJ=function(){var p=g.$t("ytcsi.reference");if(p)return p;$8();return g.$t("ytcsi.reference")}; s_=function(p){return ElT[p]||"LATENCY_ACTION_UNKNOWN"}; va=function(p,x){RF.call(this,1,arguments);this.timer=x}; ca=function(){this.U=0}; JZ=function(){ca.instance||(ca.instance=new ca);return ca.instance}; Kb=function(p,x){Re[x]=Re[x]||{count:0};var a=Re[x];a.count++;a.time=(0,g.WR)();p.U||(p.U=g.AX(0,function(){var v=(0,g.WR)(),c;for(c in Re)Re[c]&&v-Re[c].time>6E4&&delete Re[c];p&&(p.U=0)},5E3)); return a.count>5?(a.count===6&&Math.random()*1E5<1&&(a=new g.gr("CSI data exceeded logging limit with key",x.split("_")),x.indexOf("plev")>=0||g.Hp(a)),!0):!1}; yxg=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; glg=function(){var p;if(g.Ly("csi_use_performance_navigation_timing")){var x,a,v,c=dG==null?void 0:(p=dG.getEntriesByType)==null?void 0:(x=p.call(dG,"navigation"))==null?void 0:(a=x[0])==null?void 0:(v=a.toJSON)==null?void 0:v.call(a);c?(c.requestStart=bs(c.requestStart),c.responseEnd=bs(c.responseEnd),c.redirectStart=bs(c.redirectStart),c.redirectEnd=bs(c.redirectEnd),c.domainLookupEnd=bs(c.domainLookupEnd),c.connectStart=bs(c.connectStart),c.connectEnd=bs(c.connectEnd),c.responseStart=bs(c.responseStart), c.secureConnectionStart=bs(c.secureConnectionStart),c.domainLookupStart=bs(c.domainLookupStart),c.isPerformanceNavigationTiming=!0,p=c):p=dG.timing}else p=g.Ly("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(dG.timing)):dG.timing;return p}; bs=function(p){return Math.round(rG()+p)}; rG=function(){return(g.Ly("csi_use_time_origin")||g.Ly("csi_use_time_origin_tvhtml5"))&&dG.timeOrigin?Math.floor(dG.timeOrigin):dG.timing.navigationStart}; ls=function(p,x){Ba("_start",p,x)}; Lb=function(p,x){if(!g.Ly("web_csi_action_sampling_enabled")||!u8(x).actionDisabled){var a=ae(x||"");c1(a.info,p);p.loadType&&(a=p.loadType,V4(x).loadType=a);c1(tkJ(x),p);a=x8(x);x=u8(x).cttAuthInfo;JZ().info(p,a,x)}}; ZFU=function(){var p,x,a,v;return((v=H1().resolve(MQ($w))==null?void 0:(p=aF())==null?void 0:(x=p.loggingHotConfig)==null?void 0:(a=x.csiConfig)==null?void 0:a.debugTicks)!=null?v:[]).map(function(c){return Object.values(c)[0]})}; Ba=function(p,x,a){if(!g.Ly("web_csi_action_sampling_enabled")||!u8(a).actionDisabled){var v=x8(a),c;if(c=g.Ly("web_csi_debug_sample_enabled")&&v){(H1().resolve(MQ($w))==null?0:aF())&&!GbT&&(GbT=!0,Ba("gcfl",(0,g.WR)(),a));var J,R,d;c=(H1().resolve(MQ($w))==null?void 0:(J=aF())==null?void 0:(R=J.loggingHotConfig)==null?void 0:(d=R.csiConfig)==null?void 0:d.debugSampleWeight)||0;if(J=c!==0)b:{J=ZFU();if(J.length>0)for(R=0;Ra.duration?v:a},{duration:0}))&&x.startTime>0&&x.responseEnd>0&&(Ba("wffs",bs(x.startTime)),Ba("wffe",bs(x.responseEnd)))}; esb=function(p,x,a){dG&&dG.measure&&(p.startsWith("measure_")||(p="measure_"+p),a?dG.measure(p,x,a):x?dG.measure(p,x):dG.measure(p))}; udo=function(p){var x=Y8("aft",p);if(x)return x;x=g.gx((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var a=x.length,v=0;v0&&Lb(x);x={isNavigation:!0,actionType:s_(g.gx("TIMING_ACTION"))};var a=g.gx("PREVIOUS_ACTION");a&&(x.previousAction=s_(a));if(a=g.gx("CLIENT_PROTOCOL"))x.httpProtocol=a;if(a=g.gx("CLIENT_TRANSPORT"))x.transportProtocol=a;(a=g.Yi())&&a!=="UNDEFINED_CSN"&&(x.clientScreenNonce=a);a=AxI();if(a===1||a===-1)x.isVisible= !0;a=V4().loadType==="cold";var v=olQ();a||(a=v.yt_lt==="cold");if(a){x.loadType="cold";a=olQ();v=glg();var c=rG(),J=g.gx("CSI_START_TIMESTAMP_MILLIS",0);J>0&&!g.Ly("embeds_web_enable_csi_start_override_killswitch")&&(c=J);c&&(Ba("srt",v.responseStart),a.prerender!==1&&ls(c));a=pAU();a>0&&Ba("fpt",a);a=glg();a.isPerformanceNavigationTiming&&Lb({performanceNavigationTiming:!0},void 0);Ba("nreqs",a.requestStart,void 0);Ba("nress",a.responseStart,void 0);Ba("nrese",a.responseEnd,void 0);a.redirectEnd- a.redirectStart>0&&(Ba("nrs",a.redirectStart,void 0),Ba("nre",a.redirectEnd,void 0));a.domainLookupEnd-a.domainLookupStart>0&&(Ba("ndnss",a.domainLookupStart,void 0),Ba("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(Ba("ntcps",a.connectStart,void 0),Ba("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=rG()&&a.connectEnd-a.secureConnectionStart>0&&(Ba("nstcps",a.secureConnectionStart,void 0),Ba("ntcpe",a.connectEnd,void 0));dG&&"getEntriesByType"in dG&&nlJ();a=[];if(document.querySelector&& dG&&dG.getEntriesByName)for(var R in Ie)Ie.hasOwnProperty(R)&&(v=Ie[R],qjg(R,v)&&a.push(v));if(a.length>0)for(x.resourceInfo=[],R=g.k(a),a=R.next();!a.done;a=R.next())x.resourceInfo.push({resourceCache:a.value})}Lb(x);x=pb();x.preLoggedGelInfos||(x.preLoggedGelInfos=[]);R=x.preLoggedGelInfos;x=tkJ();a=void 0;for(v=0;v-1&&(delete mx["@type"],n=mx);D&&p.Z.has(D)&&p.Z.delete(D);((xt=x.config)==null?0:xt.ql5)&&Wa(x.config.ql5);if(n||(jj=p.j)==null||!jj.gdI(x.input,x.NA)){CU.Ia(15);break}return g.C(CU,p.j.ZA5(x.input,x.NA),16);case 16:n=CU.U;case 15:return jFN(p, n,x),((KG=x.config)==null?0:KG.zC7)&&Wa(x.config.zC7),v(),CU.return(n||void 0)}})}; BU_=function(p,x){a:{p=p.rD;var a,v=(a=g.O(x,Tdb))==null?void 0:a.signal;if(v&&p.eL&&(a=p.eL[v])){var c=a();break a}var J;if((a=(J=g.O(x,QbQ))==null?void 0:J.request)&&p.W2&&(J=p.W2[a])){c=J();break a}for(c in x)if(p.OF[c]&&(x=p.OF[c])){c=x();break a}c=void 0}if(c!==void 0)return Promise.resolve(c)}; L81=function(p,x,a){var v,c,J,R,d,b,r;return g.t(function(B){if(B.Z==1){J=((v=x)==null?void 0:(c=v.K$)==null?void 0:c.identity)||JQ;b=(R=x)==null?void 0:(d=R.K$)==null?void 0:d.sessionIndex;var l=g.Cp(p.U.Ny(J,{sessionIndex:b}));return g.C(B,l,2)}r=B.U;return B.return(Promise.resolve(Object.assign({},SjI(a),r)))})}; l2b=function(p,x,a){var v,c=(x==null?void 0:(v=x.K$)==null?void 0:v.identity)||JQ,J;x=x==null?void 0:(J=x.K$)==null?void 0:J.sessionIndex;p=p.U.Ny(c,{sessionIndex:x});return Object.assign({},SjI(a),p)}; fb=function(){}; Cb=function(){}; X_=function(p){this.S=p}; is=function(){}; oe=function(){}; tZ=function(){}; z3=function(){}; g.wG=function(p,x){var a=g.g_.apply(2,arguments);p=p===void 0?0:p;g.gr.call(this,x,a);this.errorType=p;Object.setPrototypeOf(this,this.constructor.prototype)}; E_=function(p,x,a,v){this.U=p;this.Z=x;this.j=a;this.B=v}; M6I=function(p,x,a){if(p.U){var v=r3(UT(x,"key"))||"/UNKNOWN_PATH";p.U.start(v)}v=a;g.Ly("wug_networking_gzip_request")&&(v=yuT(a));var c;return new ((c=p.B)!=null?c:window.Request)(x,v)}; g.gG=function(p,x){if(!yd){var a=H1();W1(a,{Lu:W8_,tF:E_});var v={OF:{feedbackEndpoint:Az(is),modifyChannelNotificationPreferenceEndpoint:Az(oe),playlistEditEndpoint:Az(tZ),shareEntityEndpoint:Az(X_),subscribeEndpoint:Az(fb),unsubscribeEndpoint:Az(Cb),webPlayerShareEntityServiceEndpoint:Az(z3)}},c=GN.getInstance(),J={};c&&(J.client_location=c);p===void 0&&(p=q3o());x===void 0&&(x=a.resolve(W8_));rQI(v,x,p,J);W1(a,{Lu:kIU,Xk:Qd.instance});yd=a.resolve(kIU)}return yd}; DHU=function(p){var x=new dw;if(p.interpreterJavascript){var a=f9T(p.interpreterJavascript);a=I0(a).toString();var v=new RA;zM(v,6,a);TM(x,RA,1,v,n$)}else p.interpreterUrl&&(a=Ik(p.interpreterUrl),a=a0(a).toString(),v=new KL,zM(v,4,a),TM(x,KL,2,v,n$));p.interpreterHash&&wm(x,3,p.interpreterHash,n$);p.program&&wm(x,4,p.program,n$);p.globalName&&wm(x,5,p.globalName,n$);p.clientExperimentsStateBlob&&wm(x,7,p.clientExperimentsStateBlob,n$);return x}; Zy=function(p){var x={};p=p.split("&");p=g.k(p);for(var a=p.next();!a.done;a=p.next())a=a.value.split("="),a.length===2&&(x[a[0]]=a[1]);return x}; Spb=function(){if(g.Ly("bg_st_hr"))return"havuokmhhs-0";var p,x=((p=performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(x)}; G3=function(p){this.U=p}; UHN=function(){return new Promise(function(p){var x=window.top;x.ntpevasrs!==void 0?p(new G3(x.ntpevasrs)):(x.ntpqfbel===void 0&&(x.ntpqfbel=[]),x.ntpqfbel.push(function(a){p(new G3(a))}))})}; QFQ=function(){if(uF()){var p=g.gx("PLAYER_VARS",{});if(g.LZ(p,"privembed",!1)!="1"&&!WkU(p)){var x=function(){O_=!0;"google_ad_status"in window?yT("DCLKSTAT",1):yT("DCLKSTAT",2)}; try{g.Vo(HhQ,x)}catch(a){}TUI.push(g.zp.vN(function(){if(!(O_||"google_ad_status"in window)){try{if(HhQ.toString()&&x){var a=""+g.Rv(x),v=Miz[a];v&&g.e6(v)}}catch(c){}O_=!0;yT("DCLKSTAT",3)}},5E3))}}}; Nq=function(){var p=Number(g.gx("DCLKSTAT",0));return isNaN(p)?0:p}; nb=function(p,x,a){var v=this;this.network=p;this.options=x;this.Z=a;this.U=null;if(x.qGA){var c=new g.rw;this.U=c.promise;g.Fg.ytAtRC&&Nl(function(){var J,R;return g.t(function(d){if(d.Z==1){if(!g.Fg.ytAtRC)return d.return();J=AZ(null);return g.C(d,Pa(v,J),2)}R=d.U;g.Fg.ytAtRC&&g.Fg.ytAtRC(JSON.stringify(R));g.k1(d)})},2); UHN().then(function(J){var R,d,b,r;return g.t(function(B){if(B.Z==1)return J.bindInnertubeChallengeFetcher(function(l){return Pa(v,AZ(l))}),g.C(B,pv(),2); R=B.U;d=J.getLatestChallengeResponse();b=d.challenge;if(!b)throw Error("BGE_MACIL");r={challenge:b,dU:Zy(b),yV:R,bgChallenge:new dw};c.resolve(r);J.registerChallengeFetchedCallback(function(l){l=l.challenge;if(!l)throw Error("BGE_MACR");l={challenge:l,dU:Zy(l),yV:R,bgChallenge:new dw};v.U=Promise.resolve(l)}); g.k1(B)})})}else x.preload&&mHJ(this,new Promise(function(J){g.AX(0,function(){J(qq(v))},0)}))}; AZ=function(p){var x={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(x.interpreterHash=p);return x}; qq=function(p,x){x=x===void 0?0:x;var a,v,c,J,R,d,b,r,B,l,L,Y;return g.t(function(h){switch(h.Z){case 1:a=AZ(LL().U);if(g.Ly("att_fet_ks"))return g.DJ(h,7),g.C(h,Pa(p,a),9);g.DJ(h,4);return g.C(h,SLb(p,a),6);case 6:R=h.U;c=R.t3a;J=R.Xhd;v=R;g.T1(h,3);break;case 4:return g.SI(h),g.Hp(Error("Failed to fetch attestation challenge after "+(x+" attempts; not retrying for 24h."))),eb(p,864E5),h.return({challenge:"",dU:{},yV:void 0,bgChallenge:void 0});case 9:v=h.U;if(!v)throw Error("Fetching Attestation challenge returned falsy"); if(!v.challenge)throw Error("Missing Attestation challenge");c=v.challenge;J=Zy(c);if("c1a"in J&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.T1(h,3);break;case 7:d=g.SI(h);g.Hp(d);x++;if(x>=5)return g.Hp(Error("Failed to fetch attestation challenge after "+(x+" attempts; not retrying for 24h."))),eb(p,864E5),h.return({challenge:"",dU:{},yV:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,x-1)+Math.random()*1E3;return h.return(new Promise(function(D){g.AX(0, function(){D(qq(p,x))},b)})); case 3:r=Number(J.t)||7200;eb(p,r*1E3);B=void 0;if(!("c1a"in J&&v.bgChallenge)){h.Ia(10);break}l=DHU(v.bgChallenge);g.DJ(h,11);return g.C(h,SMx(LL(),l),13);case 13:g.T1(h,12);break;case 11:return L=g.SI(h),g.Hp(L),h.return({challenge:c,dU:J,yV:B,bgChallenge:l});case 12:return g.DJ(h,14),B=new Bg({challenge:l,uM:{rM:"aGIf"}}),g.C(h,B.KB,16);case 16:g.T1(h,10);break;case 14:Y=g.SI(h),g.Hp(Y),B=void 0;case 10:return h.return({challenge:c,dU:J,yV:B,bgChallenge:l})}})}; Pa=function(p,x){var a;return g.t(function(v){a=p.Z;if(!a||a.CG())return v.return(Pa(p.network,x));T3("att_pna",void 0,"attestation_challenge_fetch");return v.return(new Promise(function(c){a.eG("publicytnetworkstatus-online",function(){Pa(p.network,x).then(c)})}))})}; f2b=function(p){if(!p)throw Error("Fetching Attestation challenge returned falsy");if(!p.challenge)throw Error("Missing Attestation challenge");var x=p.challenge,a=Zy(x);if("c1a"in a&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},p,{t3a:x,Xhd:a})}; SLb=function(p,x){var a,v,c,J,R;return g.t(function(d){switch(d.Z){case 1:a=void 0,v=0,c={};case 2:if(!(v<5)){d.Ia(4);break}if(!(v>0)){d.Ia(5);break}c.il=1E3*Math.pow(2,v-1)+Math.random()*1E3;return g.C(d,new Promise(function(b){return function(r){g.AX(0,function(){r(void 0)},b.il)}}(c)),5); case 5:return g.DJ(d,7),g.C(d,Pa(p,x),9);case 9:return J=d.U,d.return(f2b(J));case 7:a=R=g.SI(d),R instanceof Error&&g.Hp(R);case 8:v++;c={il:void 0};d.Ia(2);break;case 4:throw a;}})}; mHJ=function(p,x){p.U=x}; CVo=function(p){var x,a,v;return g.t(function(c){if(c.Z==1)return g.C(c,Promise.race([p.U,null]),2);x=c.U;var J=qq(p);p.U=J;(a=x)==null||(v=a.yV)==null||v.dispose();g.k1(c)})}; eb=function(p,x){function a(){var c;return g.t(function(J){c=v-Date.now();return c<1E3?g.C(J,CVo(p),0):(Nl(a,0,Math.min(c,6E4)),J.Ia(0))})} var v=Date.now()+x;a()}; XAN=function(p,x){return new Promise(function(a){g.AX(0,function(){a(x())},p)})}; g.ih8=function(p,x){var a;return g.t(function(v){var c=g.$t("yt.aba.att");return(a=c?c:nb.instance!==void 0?nb.instance.j.bind(nb.instance):null)?v.return(a("ENGAGEMENT_TYPE_PLAYBACK",p,x)):v.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.owb=function(){var p;return(p=(p=g.$t("yt.aba.att2"))?p:nb.instance!==void 0?nb.instance.B.bind(nb.instance):null)?p():Promise.resolve(!1)}; zBU=function(p,x){var a=g.$t("ytDebugData.callbacks");a||(a={},g.pG("ytDebugData.callbacks",a));if(g.Ly("web_dd_iu")||t68.includes(p))a[p]=x}; us=function(){var p=wAz;var x=x===void 0?[]:x;var a=a===void 0?[]:a;x=U0o.apply(null,[HpT.apply(null,g.lf(x))].concat(g.lf(a)));this.store=Q6x(p,void 0,x)}; g.Vd=function(p,x,a){for(var v=Object.assign({},p),c=g.k(Object.keys(x)),J=c.next();!J.done;J=c.next()){J=J.value;var R=p[J],d=x[J];if(d===void 0)delete v[J];else if(R===void 0)v[J]=d;else if(Array.isArray(d)&&Array.isArray(R))v[J]=a?[].concat(g.lf(R),g.lf(d)):d;else if(!Array.isArray(d)&&g.cQ(d)&&!Array.isArray(R)&&g.cQ(R))v[J]=g.Vd(R,d,a);else if(typeof d===typeof R)v[J]=d;else return x=new g.gr("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:J,M_7:R,updateValue:d}),g.Uq(x), p}return v}; F_=function(p){var x=this;p=p===void 0?[]:p;this.U=[];this.j=this.Z=0;this.B=void 0;this.totalLength=0;p.forEach(function(a){x.append(a)})}; Ew1=function(p,x){return p.U.length===0?!1:(p=p.U[p.U.length-1])&&p.buffer===x.buffer&&p.byteOffset+p.length===x.byteOffset}; pu=function(p,x){x=g.k(x.U);for(var a=x.next();!a.done;a=x.next())p.append(a.value)}; x3=function(p,x,a){return p.split(x).vM.split(a).Et}; $3=function(p){p.B=void 0;p.Z=0;p.j=0}; ax=function(p,x,a){p.isFocused(x);return x-p.j+a<=p.U[p.Z].length}; yQJ=function(p){if(!p.B){var x=p.U[p.Z];p.B=new DataView(x.buffer,x.byteOffset,x.length)}return p.B}; gwI=function(p,x,a){x=x===void 0?0:x;a=a===void 0?-1:a;if(!p.totalLength||!a)return new DataView(new ArrayBuffer(0));a<0&&(a=p.totalLength-x);p.focus(x);if(!ax(p,x,a)){var v=p.Z,c=p.j;p.focus(x+a-1);c=new Uint8Array(p.j+p.U[p.Z].length-c);for(var J=0,R=v;R<=p.Z;R++)c.set(p.U[R],J),J+=p.U[R].length;p.U.splice(v,p.Z-v+1,c);$3(p);p.focus(x)}v=p.U[p.Z];return new DataView(v.buffer,v.byteOffset+x-p.j,a)}; s4=function(p,x,a){p=gwI(p,x===void 0?0:x,a===void 0?-1:a);return new Uint8Array(p.buffer,p.byteOffset,p.byteLength)}; v$=function(p,x,a){p=s4(p,x===void 0?0:x,a===void 0?-1:a);x=new Uint8Array(p.length);try{x.set(p)}catch(v){for(a=0;a>10;J=56320|J&1023}Ku[c++]=J}}J=String.fromCharCode.apply(String,Ku); c<1024&&(J=J.substring(0,c));a.push(J)}return a.join("")}; rh=function(p,x){var a;if((a=bI)==null?0:a.encodeInto)return x=bI.encodeInto(p,x),x.read>6|192:((c&64512)===55296&&v+1>18|240,x[a++]=c>>12&63|128):x[a++]=c>>12|224,x[a++]=c>>6&63|128),x[a++]=c&63|128)}return a}; B$=function(p){if(bI)return bI.encode(p);var x=new Uint8Array(Math.ceil(p.length*1.2)),a=rh(p,x);x.lengtha&&(x=x.subarray(0,a));return x}; lI=function(p){this.U=p;this.pos=0;this.Z=-1}; Lu=function(p){var x=c$(p.U,p.pos);++p.pos;if(x<128)return x;for(var a=x&127,v=1;x>=128;)x=c$(p.U,p.pos),++p.pos,v*=128,a+=(x&127)*v;return a}; Y3=function(p,x){var a=p.Z;for(p.Z=-1;p.pos+1<=p.U.totalLength;){a<0&&(a=Lu(p));var v=a>>3,c=a&7;if(v===x)return!0;if(v>x){p.Z=a;break}a=-1;switch(c){case 0:Lu(p);break;case 1:p.pos+=8;break;case 2:v=Lu(p);p.pos+=v;break;case 5:p.pos+=4}}return!1}; ht=function(p,x){if(Y3(p,x))return Lu(p)}; Oh_=function(p,x){if(Y3(p,x))return x=s4(p.U,p.pos,8),p.pos+=8,(new DataView(x.buffer,x.byteOffset,x.byteLength)).getFloat64(0,!0)}; jQ=function(p,x){if(Y3(p,x))return!!Lu(p)}; Ix=function(p,x){if(Y3(p,x)){x=Lu(p);var a=s4(p.U,p.pos,x);p.pos+=x;return a}}; Mm=function(p,x){if(p=Ix(p,x))return g.dh(p)}; W$=function(p,x,a){if(p=Ix(p,x))return a(new lI(new F_([p])))}; k3=function(p,x){for(var a=[];Y3(p,x);)a.push(Lu(p));return a.length?a:void 0}; Da=function(p,x,a){for(var v=[],c;c=Ix(p,x);)v.push(a(new lI(new F_([c]))));return v.length?v:void 0}; U4=function(p,x){p=p instanceof Uint8Array?new F_([p]):p;return x(new lI(p))}; NUI=function(p,x){p=new Uint8Array(p);x&&p.set(x);return p}; AQT=function(p){this.pos=0;this.Z=[];this.U=NUI(p===void 0?4096:p);this.view=new DataView(this.U.buffer,this.U.byteOffset,this.U.byteLength)}; H$=function(p,x){x=p.pos+x;if(!(p.U.length>=x)){for(var a=p.U.length*2;a268435455){H$(p,4);for(var a=x&1073741823,v=0;v<4;v++)p.view.setUint8(p.pos,a&127|128),a>>=7,p.pos+=1;x=Math.floor(x/268435456)}for(H$(p,4);x>127;)p.view.setUint8(p.pos,x&127|128),x>>=7,p.pos+=1;p.view.setUint8(p.pos,x);p.pos+=1}; Q$=function(p,x,a){a!==void 0&&(TY(p,x*8),TY(p,a))}; E4=function(p,x,a){a!==void 0&&Q$(p,x,a?1:0)}; y$=function(p,x,a){a!==void 0&&(TY(p,x*8+2),x=a.length,TY(p,x),H$(p,x),p.U.set(a,p.pos),p.pos+=x)}; gh=function(p,x,a){a!==void 0&&(PVQ(p,x,Math.ceil(Math.log2(a.length*4+2)/7)),H$(p,a.length*1.2),x=rh(a,p.U.subarray(p.pos)),p.pos+x>p.U.length&&(H$(p,x),x=rh(a,p.U.subarray(p.pos))),p.pos+=x,qLQ(p))}; PVQ=function(p,x,a){a=a===void 0?2:a;TY(p,x*8+2);p.Z.push(p.pos);p.Z.push(a);p.pos+=a}; qLQ=function(p){for(var x=p.Z.pop(),a=p.Z.pop(),v=p.pos-a-x;x--;){var c=x?128:0;p.view.setUint8(a++,v&127|c);v>>=7}}; Za=function(p,x,a,v,c){a&&(PVQ(p,x,c===void 0?3:c),v(p,a),qLQ(p))}; g.GY=function(p,x){var a=new AQT(4096);x(a,p);return new Uint8Array(a.U.buffer,a.U.byteOffset,a.pos)}; g.O4=function(p){var x=new lI(new F_([f$(decodeURIComponent(p))]));p=Mm(x,2);x=ht(x,4);var a=nw_[x];if(typeof a==="undefined")throw p=new g.gr("Failed to recognize field number",{name:"EntityKeyHelperError",DC5:x}),g.Uq(p),p;return{uR:x,entityType:a,entityId:p}}; g.Nm=function(p,x){var a=a===void 0?0:a;var v=new AQT;y$(v,2,B$(p));p=eBU[x];if(typeof p==="undefined")throw a=new g.gr("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:x}),g.Uq(a),a;Q$(v,4,p);Q$(v,5,1);x=new Uint8Array(v.U.buffer,v.U.byteOffset,v.pos);return encodeURIComponent(g.m2(x,a))}; At=function(p,x,a,v){if(v===void 0)return v=Object.assign({},p[x]||{}),a=(delete v[a],v),v={},Object.assign({},p,(v[x]=a,v));var c={},J={};return Object.assign({},p,(J[x]=Object.assign({},p[x],(c[a]=v,c)),J))}; uvN=function(p,x,a,v,c){var J=p[x];if(J==null||!J[a])return p;v=g.Vd(J[a],v,c==="REPEATED_FIELDS_MERGE_OPTION_APPEND");c={};J={};return Object.assign({},p,(J[x]=Object.assign({},p[x],(c[a]=v,c)),J))}; V6_=function(p,x){p=p===void 0?{}:p;switch(x.type){case "ENTITY_LOADED":return x.payload.reduce(function(v,c){var J,R=(J=c.options)==null?void 0:J.persistenceOption;if(R&&R!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&R!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return v;if(!c.entityKey)return g.Uq(Error("Missing entity key")),v;if(c.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!c.payload)return c=new g.gr("REPLACE entity mutation is missing a payload",{entityKey:c.entityKey}),g.Uq(c),v;var d=g.aJ(c.payload); return At(v,d,c.entityKey,c.payload[d])}if(c.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{c=c.entityKey;try{var b=g.O4(c).entityType;d=At(v,b,c);break a}catch(l){if(l instanceof Error){c=new g.gr("Failed to deserialize entity key",{entityKey:c,originalMessage:l.message});g.Uq(c);d=v;break a}throw l;}d=void 0}return d}if(c.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!c.payload)return c=new g.gr("UPDATE entity mutation is missing a payload",{entityKey:c.entityKey}),g.Uq(c),v;d=g.aJ(c.payload);var r,B;return uvN(v, d,c.entityKey,c.payload[d],(r=c.fieldMask)==null?void 0:(B=r.mergeOptions)==null?void 0:B.repeatedFieldsMergeOption)}return v},p); case "REPLACE_ENTITY":var a=x.payload;return At(p,a.entityType,a.key,a.Fr);case "REPLACE_ENTITIES":return Object.keys(x.payload).reduce(function(v,c){var J=x.payload[c];return Object.keys(J).reduce(function(R,d){return At(R,c,d,J[d])},v)},p); case "UPDATE_ENTITY":return a=x.payload,uvN(p,a.entityType,a.key,a.Fr,a.J7T);default:return p}}; P$=function(p,x,a){return p[x]?p[x][a]||null:null}; qm=function(p){return window.Int32Array?new Int32Array(p):Array(p)}; pq=function(p){g.y.call(this);this.counter=[0,0,0,0];this.Z=new Uint8Array(16);this.U=16;if(!F8I){var x,a=new Uint8Array(256),v=new Uint8Array(256);var c=1;for(x=0;x<256;x++)a[c]=x,v[x]=c,c^=c<<1^(c>>7&&283);nu=new Uint8Array(256);eQ=qm(256);uI=qm(256);V$=qm(256);FX=qm(256);for(var J=0;J<256;J++){c=J?v[255^a[J]]:0;c^=c<<1^c<<2^c<<3^c<<4;c=c&255^c>>>8^99;nu[J]=c;x=c<<1^(c>>7&&283);var R=x^c;eQ[J]=x<<24|c<<16|c<<8|R;uI[J]=R<<24|eQ[J]>>>8;V$[J]=c<<24|uI[J]>>>8;FX[J]=c<<24|V$[J]>>>8}F8I=!0}c=qm(44);for(a= 0;a<4;a++)c[a]=p[4*a]<<24|p[4*a+1]<<16|p[4*a+2]<<8|p[4*a+3];for(v=1;a<44;a++)p=c[a-1],a%4||(p=(nu[p>>16&255]^v)<<24|nu[p>>8&255]<<16|nu[p&255]<<8|nu[p>>>24],v=v<<1^(v>>7&&283)),c[a]=c[a-4]^p;this.key=c}; p1z=function(p){for(var x=p.key,a=p.counter[0]^x[0],v=p.counter[1]^x[1],c=p.counter[2]^x[2],J=p.counter[3]^x[3],R=3;R>=0&&!(p.counter[R]=-~p.counter[R]);R--);for(var d,b,r=4;r<40;)R=eQ[a>>>24]^uI[v>>16&255]^V$[c>>8&255]^FX[J&255]^x[r++],d=eQ[v>>>24]^uI[c>>16&255]^V$[J>>8&255]^FX[a&255]^x[r++],b=eQ[c>>>24]^uI[J>>16&255]^V$[a>>8&255]^FX[v&255]^x[r++],J=eQ[J>>>24]^uI[a>>16&255]^V$[v>>8&255]^FX[c&255]^x[r++],a=R,v=d,c=b;p=p.Z;R=x[40];p[0]=nu[a>>>24]^R>>>24;p[1]=nu[v>>16&255]^R>>16&255;p[2]=nu[c>>8&255]^ R>>8&255;p[3]=nu[J&255]^R&255;R=x[41];p[4]=nu[v>>>24]^R>>>24;p[5]=nu[c>>16&255]^R>>16&255;p[6]=nu[J>>8&255]^R>>8&255;p[7]=nu[a&255]^R&255;R=x[42];p[8]=nu[c>>>24]^R>>>24;p[9]=nu[J>>16&255]^R>>16&255;p[10]=nu[a>>8&255]^R>>8&255;p[11]=nu[v&255]^R&255;R=x[43];p[12]=nu[J>>>24]^R>>>24;p[13]=nu[a>>16&255]^R>>16&255;p[14]=nu[v>>8&255]^R>>8&255;p[15]=nu[c&255]^R&255}; aD=function(){if(!xn&&!g.ZH){if($n)return $n;var p;$n=(p=window.crypto)==null?void 0:p.subtle;var x,a,v;if(((x=$n)==null?0:x.importKey)&&((a=$n)==null?0:a.sign)&&((v=$n)==null?0:v.encrypt))return $n;$n=void 0}}; g.cT=function(p){var x=aD();x&&(this.U=new sk(p,x));this.Z=new g.vT(p)}; sk=function(p,x){this.Z=p;this.subtleCrypto=x}; xQQ=function(p,x,a){var v,c;return g.t(function(J){switch(J.Z){case 1:if(p.U){J.Ia(2);break}return g.C(J,p.subtleCrypto.importKey("raw",p.Z,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:p.U=J.U;case 2:return v={name:"AES-CTR",counter:a,length:128},g.C(J,p.subtleCrypto.encrypt(v,p.U,x),4);case 4:return c=J.U,J.return(new Uint8Array(c))}})}; g.vT=function(p){this.Z=p}; Jo=function(p){this.C=new Uint8Array(64);this.j=new Uint8Array(64);this.B=0;this.S=new Uint8Array(64);this.Z=0;this.C.set(p);this.j.set(p);for(p=0;p<64;p++)this.C[p]^=92,this.j[p]^=54;this.reset()}; $Qf=function(p,x,a){for(var v=p.V,c=p.U[0],J=p.U[1],R=p.U[2],d=p.U[3],b=p.U[4],r=p.U[5],B=p.U[6],l=p.U[7],L,Y,h,D=0;D<64;)D<16?(v[D]=h=x[a]<<24|x[a+1]<<16|x[a+2]<<8|x[a+3],a+=4):(L=v[D-2],Y=v[D-15],h=v[D-7]+v[D-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),v[D]=h),L=l+RD[D]+h+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&r^~b&B),Y=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&J^c&R^J&R),l=L+Y,d+=L,D++,D<16?(v[D]=h=x[a]<<24|x[a+1]<<16|x[a+2]<<8|x[a+3],a+=4):(L= v[D-2],Y=v[D-15],h=v[D-7]+v[D-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),v[D]=h),L=B+RD[D]+h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&b^~d&r),Y=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&c^l&J^c&J),B=L+Y,R+=L,D++,D<16?(v[D]=h=x[a]<<24|x[a+1]<<16|x[a+2]<<8|x[a+3],a+=4):(L=v[D-2],Y=v[D-15],h=v[D-7]+v[D-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),v[D]=h),L=r+RD[D]+h+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&d^ ~R&b),Y=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&l^B&c^l&c),r=L+Y,J+=L,D++,D<16?(v[D]=h=x[a]<<24|x[a+1]<<16|x[a+2]<<8|x[a+3],a+=4):(L=v[D-2],Y=v[D-15],h=v[D-7]+v[D-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),v[D]=h),L=b+RD[D]+h+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&R^~J&d),Y=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&B^r&l^B&l),h=l,l=d,d=h,h=B,B=R,R=h,h=r,r=J,J=h,b=c+L,c=L+Y,D++;p.U[0]=c+p.U[0]|0;p.U[1]=J+p.U[1]|0;p.U[2]=R+p.U[2]|0;p.U[3]= d+p.U[3]|0;p.U[4]=b+p.U[4]|0;p.U[5]=r+p.U[5]|0;p.U[6]=B+p.U[6]|0;p.U[7]=l+p.U[7]|0}; sjx=function(p){var x=new Uint8Array(32),a=64-p.Z;p.Z>55&&(a+=64);var v=new Uint8Array(a);v[0]=128;for(var c=p.B*8,J=1;J<9;J++){var R=c%256;v[a-J]=R;c=(c-R)/256}p.update(v);for(a=0;a<8;a++)x[a*4]=p.U[a]>>>24,x[a*4+1]=p.U[a]>>>16&255,x[a*4+2]=p.U[a]>>>8&255,x[a*4+3]=p.U[a]&255;aZf(p);return x}; aZf=function(p){p.U=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];p.V=[];p.V.length=64;p.B=0;p.Z=0}; vZN=function(p){this.U=p}; cJo=function(p,x,a){p=new Jo(p.U);p.update(x);p.update(a);x=sjx(p);p.update(p.C);p.update(x);x=sjx(p);p.reset();return x}; JJJ=function(p){this.Z=p}; R1o=function(p,x,a,v){var c,J,R;return g.t(function(d){switch(d.Z){case 1:if(p.U){d.Ia(2);break}return g.C(d,v.importKey("raw",p.Z,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:p.U=d.U;case 2:return c=new Uint8Array(x.length+a.length),c.set(x),c.set(a,x.length),J={name:"HMAC",hash:"SHA-256"},g.C(d,v.sign(J,p.U,c),4);case 4:return R=d.U,d.return(new Uint8Array(R))}})}; KQ1=function(p,x,a){p.j||(p.j=new vZN(p.Z));return cJo(p.j,x,a)}; dQo=function(p,x,a){var v,c;return g.t(function(J){if(J.Z==1){v=aD();if(!v)return J.return(KQ1(p,x,a));g.DJ(J,3);return g.C(J,R1o(p,x,a,v),5)}if(J.Z!=3)return J.return(J.U);c=g.SI(J);g.Hp(c);xn=!0;return J.return(KQ1(p,x,a))})}; rJ1=function(p){for(var x="",a=0;a=0||WB(p,0,"gad_source",p.search(kx))>=0}; M4x=function(){this.U=new Map}; kKf=function(p,x){var a=H1().resolve(WQJ);if(IZ1(x)){var v=Dz(x,"gclid");x={handleEvent:function(d){p&&!p.closed&&typeof p.postMessage==="function"&&d&&d.origin&&d.source===p&&d.data&&d.data.action==="gcl_setup"&&p.postMessage(Object.assign({},{action:"gcl_transfer"},v&&{gclid:v},{gadSource:2}),d.origin)}}; for(var c=g.k(a.U),J=c.next();!J.done;J=c.next()){var R=g.k(J.value);J=R.next().value;R=R.next().value;if(J.closed)try{window.removeEventListener("message",R),a.U.delete(J)}catch(d){g.Uq(d)}}p&&a.U.size<15&&(a.U.set(p,x),window.addEventListener("message",x))}}; Kq=function(p,x,a){if(!x)return p.length>=1?p[p.length-1]:null;for(var v=g.k(p),c=v.next();!c.done;c=v.next())if(c=c.value,c.width&&c.height&&(a&&c.width>=x||!a&&c.height>=x))return c;for(x=p.length-1;x>=0;x--)if(a&&p[x].width||!a&&p[x].height)return p[x];return p[0]}; db=function(){this.state=1;this.yV=null;this.Va=void 0}; UQz=function(p,x,a,v,c,J){var R=R===void 0?"trayride":R;a?(p.XX(2),g.Vo(g.MY(a),function(){if(window[R])DQN(p,v,R,c);else{p.XX(3);var d=I8b(a),b=document.getElementById(d);b&&(hEx(d),b.parentNode.removeChild(b));g.Hp(new g.gr("BL:ULB",""+a))}},J)):x?(J=g.Lw("SCRIPT"),x instanceof jc?(J.textContent=I0(x),Mg(J)):J.textContent=x,J.nonce=h4(document),document.head.appendChild(J),document.head.removeChild(J),window[R]?DQN(p,v,R,c):(p.XX(4),g.Hp(new g.gr("BL:ULBJ")))):g.Hp(new g.gr("BL:ULV"))}; DQN=function(p,x,a,v){p.XX(5);var c=!!p.Va&&HX1.includes(g.b$(p.Va)||"");try{var J=new Bg({program:x,globalName:a,uM:{disable:!g.Ly("att_web_record_metrics")||!g.Ly("att_skip_metrics_for_cookieless_domains_ks")&&c,rM:"aGIf"}});J.KB.then(function(){p.XX(6);v&&v(x)}); p.Ki(J)}catch(R){p.XX(7),R instanceof Error&&g.Hp(R)}}; bW=function(){var p=g.$t("yt.abuse.playerAttLoader");return p&&["bgvma","bgvmb","bgvmc"].every(function(x){return x in p})?p:null}; rb=function(){db.apply(this,arguments)}; BT=function(){}; TSQ=function(p,x,a){for(var v=!1,c=g.k(p.Ux.entries()),J=c.next();!J.done;J=c.next())J=g.k(J.value).next().value,J.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J.G4==="core"&&(v=!0);if(v){a:if(!a){p=g.k(p.Ux.entries());for(a=p.next();!a.done;a=p.next())if(v=g.k(a.value),a=v.next().value,v=v.next().value,a.slotType==="SLOT_TYPE_IN_PLAYER"&&a.G4==="core"){a=v.layoutId;break a}a=void 0}a?x.Ub(a):sE("No triggering layout ID available when attempting to mute.")}}; lW=function(p,x){this.DW=p;this.An=x}; Lq=function(){}; Yn=function(){}; mQx=function(p){g.y.call(this);var x=this;this.vE=p;this.U=new Map;ho(this,"commandExecutorCommand",function(a,v,c){Qjo(x,a.commands,v,c)}); ho(this,"clickTrackingParams",function(){})}; S0Q=function(p,x){ho(p,x.w$(),function(a,v,c){x.IG(a,v,c)})}; ho=function(p,x,a){p.b$();p.U.get(x)&&g.Uq(Error("Extension name "+x+" already registered"));p.U.set(x,a)}; Qjo=function(p,x,a,v){x=x===void 0?[]:x;p.b$();var c=[],J=[];x=g.k(x);for(var R=x.next();!R.done;R=x.next())R=R.value,g.O(R,fZ1)||g.O(R,CCN)?c.push(R):J.push(R);c=g.k(c);for(x=c.next();!x.done;x=c.next())j1(p,x.value,a,v);J=g.k(J);for(c=J.next();!c.done;c=J.next())j1(p,c.value,a,v)}; j1=function(p,x,a,v){p.b$();x.loggingUrls&&X1z(p,"loggingUrls",x.loggingUrls,a,v);x=g.k(Object.entries(x));for(var c=x.next();!c.done;c=x.next()){var J=g.k(c.value);c=J.next().value;J=J.next().value;c==="openPopupAction"?p.vE.get().PL("innertubeCommand",{openPopupAction:J}):c==="confirmDialogEndpoint"?p.vE.get().PL("innertubeCommand",{confirmDialogEndpoint:J}):iXx.hasOwnProperty(c)||X1z(p,c,J,a,v)}}; X1z=function(p,x,a,v,c){if((p=p.U.get(x))&&typeof p==="function")try{p(a,v,c)}catch(J){g.Uq(J)}else x=new g.gr("Unhandled field",x),g.Hp(x)}; ID=function(p,x,a){this.k_=p;this.U=x;this.Dt=a;W1(H1(),{Lu:WQJ,tF:M4x})}; Ms=function(p){this.value=p}; WT=function(p){this.value=p}; kn=function(p){this.value=p}; DD=function(p){this.value=p}; Uk=function(p){this.value=p}; HT=function(p){this.value=p}; TE=function(p){this.value=p}; QJ=function(){Ms.apply(this,arguments)}; mJ=function(p){this.value=p}; S1=function(p){this.value=p}; fq=function(p){this.value=p}; Cq=function(p){this.value=p}; XI=function(p){this.value=p}; iW=function(p){this.value=p}; oD=function(p){this.value=p}; to=function(p){this.value=p}; zE=function(p){this.value=p}; wb=function(p){this.value=p}; Ek=function(){Ms.apply(this,arguments)}; yJ=function(p){this.value=p}; gb=function(p){this.value=p}; ZD=function(p){this.value=p}; GE=function(p){this.value=p}; Ok=function(p){this.value=p}; Ns=function(p){this.value=p}; Ao=function(p){this.value=p}; PT=function(p){this.value=p}; qs=function(p){this.value=p}; nq=function(p){this.value=p}; e1=function(p){this.value=p}; uW=function(p){this.value=p}; VJ=function(p){this.value=p}; FI=function(p){this.value=p}; pm=function(p){this.value=p}; xM=function(p){this.value=p}; $M=function(p){this.value=p}; ao=function(p){this.value=p}; s7=function(p){this.value=p}; v8=function(p){this.value=p}; c8=function(p){this.value=p}; J6=function(p){this.value=p}; Ro=function(p){this.value=p}; Km=function(p){this.value=p}; dy=function(p){this.value=p}; b1=function(p){this.value=p}; ry=function(p){this.value=p}; B8=function(p){this.value=p}; l1=function(p){this.value=p}; Lm=function(p){this.value=p}; YM=function(p){this.value=p}; h6=function(p){this.value=p}; j_=function(p){this.value=p}; Io=function(p){this.value=p}; MV=function(p){this.value=p}; W8=function(p){this.value=p}; kM=function(p){this.value=p}; Dx=function(p){this.value=p}; U7=function(p){this.value=p}; H8=function(){Ms.apply(this,arguments)}; Tr=function(p){this.value=p}; Q6=function(){Ms.apply(this,arguments)}; mT=function(){Ms.apply(this,arguments)}; S_=function(){Ms.apply(this,arguments)}; fm=function(){Ms.apply(this,arguments)}; Cm=function(){Ms.apply(this,arguments)}; XP=function(p){this.value=p}; i1=function(p){this.value=p}; oo=function(p){this.value=p}; t6=function(p){this.value=p}; zr=function(p){this.value=p}; E7=function(p,x,a){if(a&&!a.includes(p.layoutType))return!1;x=g.k(x);for(a=x.next();!a.done;a=x.next())if(!wy(p.clientMetadata,a.value))return!1;return!0}; y6=function(){return""}; oZg=function(p,x){switch(p){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 x(p),8}}; gy=function(p,x,a,v){v=v===void 0?!1:v;Yt.call(this,p);this.wU=a;this.Mq=v;this.args=[];x&&this.args.push(x)}; e=function(p,x,a,v){v=v===void 0?!1:v;Yt.call(this,p);this.wU=a;this.Mq=v;this.args=[];x&&this.args.push(x)}; Zx=function(p){var x=new Map;p.forEach(function(a){x.set(a.U(),a)}); this.U=x}; wy=function(p,x){return p.U.has(x)}; Gr=function(p,x){p=p.U.get(x);if(p!==void 0)return p.get()}; O7=function(p){return Array.from(p.U.keys())}; NV=function(p,x,a){if(a&&a!==p.slotType)return!1;x=g.k(x);for(a=x.next();!a.done;a=x.next())if(!wy(p.clientMetadata,a.value))return!1;return!0}; z1U=function(p){var x;return((x=t4N.get(p))==null?void 0:x.yA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; P8=function(p,x){var a={type:x.slotType,controlFlowManagerLayer:w1x.get(x.G4)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};x.slotEntryTrigger&&(a.entryTriggerType=x.slotEntryTrigger.triggerType);x.slotPhysicalPosition!==1&&(a.slotPhysicalPosition=x.slotPhysicalPosition);if(p){a.debugData={slotId:x.slotId};if(p=x.slotEntryTrigger)a.debugData.slotEntryTriggerData=A6(p);p=x.slotFulfillmentTriggers;a.debugData.fulfillmentTriggerData=[];p=g.k(p);for(var v=p.next();!v.done;v=p.next())a.debugData.fulfillmentTriggerData.push(A6(v.value)); x=x.slotExpirationTriggers;a.debugData.expirationTriggerData=[];x=g.k(x);for(p=x.next();!p.done;p=x.next())a.debugData.expirationTriggerData.push(A6(p.value))}return a}; EZb=function(p,x){var a={type:x.layoutType,controlFlowManagerLayer:w1x.get(x.G4)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(a.debugData={layoutId:x.layoutId});return a}; A6=function(p,x){var a={type:p.triggerType};x!=null&&(a.category=x);p.triggeringSlotId!=null&&(a.triggerSourceData||(a.triggerSourceData={}),a.triggerSourceData.associatedSlotId=p.triggeringSlotId);p.triggeringLayoutId!=null&&(a.triggerSourceData||(a.triggerSourceData={}),a.triggerSourceData.associatedLayoutId=p.triggeringLayoutId);return a}; yJx=function(p,x,a,v){x={opportunityType:x};p&&(v||a)&&(v=g.IT(v||[],function(c){return P8(p,c)}),x.debugData=Object.assign({},a&&a.length>0?{associatedSlotId:a}:{},v.length>0?{slots:v}:{})); return x}; nm=function(p,x){return function(a){return gZ_(qV(p),x.slotId,x.slotType,x.slotPhysicalPosition,x.G4,x.slotEntryTrigger,x.slotFulfillmentTriggers,x.slotExpirationTriggers,a.layoutId,a.layoutType,a.G4)}}; gZ_=function(p,x,a,v,c,J,R,d,b,r,B){return{adClientDataEntry:{slotData:P8(p,{slotId:x,slotType:a,slotPhysicalPosition:v,G4:c,slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:d,clientMetadata:new Zx([])}),layoutData:EZb(p,{layoutId:b,layoutType:r,G4:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],z$:new Map,clientMetadata:new Zx([]),Vp:{}})}}}; u1=function(p){this.s7=p;p=Math.random();var x=this.s7.get();x=g.e_(x.W.L().experiments,"html5_debug_data_log_probability");x=Number.isFinite(x)&&x>=0&&x<=1?x:0;this.U=p1){g.Hp(new g.gr("Exit already started",{current:p.currentState}));var a=!1}else a=!0;if(!a)return!1;p.currentState=2;p.U=x;return!0}; $c=function(p){if(p.currentState!==2)return!1;p.currentState=3;return!0}; haQ=function(p,x){var a=new Map;p=g.k(p);for(var v=p.next();!v.done;v=p.next()){v=v.value;if(v.layoutType==="LAYOUT_TYPE_MEDIA")var c="v";else v.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(c=Gr(v.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";a.set(v.layoutId,c);if(c==="u"){var J={};c=x;v=(J.c=v.layoutId,J);c.W.jA("uct",v)}}p= x.BM();aI={contentCpn:p,j$:a};v={};a=(v.ct=a.size,v.c=p,v);x.W.jA("acc",a)}; jX8=function(){aI={contentCpn:"",j$:new Map}}; sB=function(p){var x;return(x=aI.j$.get(p))!=null?x:"u"}; vh=function(p,x,a){p.W.jA(x,a);IEN(p)}; MeI=function(p){var x=p.layoutId,a=p.VE;if(p.x9){var v={};vh(p.k_,"slso",(v.ec=x,v.is=a,v.ctp=sB(x),v))}}; ch=function(p){var x=p.layoutId,a=p.VE;if(p.x9){var v={};vh(p.k_,"slse",(v.ec=x,v.is=a,v.ctp=sB(x),v))}}; Who=function(p){var x=p.layoutId,a=p.VE,v=p.k_;p.x9&&(p={},vh(v,"sleo",(p.xc=x,p.is=a,p.ctp=sB(x),p)),IEN(v))}; kn_=function(p){var x=p.cpn,a=p.k_;p=p.VE;var v=a.BM(),c={};vh(a,"ce",(c.ec=x,c.ia=x!==v,c.r=aI.j$.has(x),c.is=p,c.ctp=sB(x),c))}; IEN=function(p){if(p.BM()!==aI.contentCpn){var x={};x=(x.c=aI.contentCpn,x);p.W.jA("ccm",x)}}; Dp1=function(p){var x=p.cpn,a=p.k_;p=p.VE;var v=a.BM(),c={};vh(a,"cx",(c.xc=x,c.ia=x!==v,c.r=aI.j$.has(x),c.is=p,c.ctp=sB(x),c))}; Upo=function(p){this.params=p;this.U=new Set}; HVf=function(p,x,a){if(!p.U.has(x)){p.U.add(x);var v={};p.params.HN.w3(x,Object.assign({},a,(v.p_ac=p.params.adCpn,v.p_isv=p.params.KS&&p.params.hU,v)))}}; RI=function(p,x,a){if(JD(p.params.HN.s7.get(),!0)){var v=a.flush,c={};HVf(p,x,(c.cts=a.currentTimeSec,c.f=v,c))}}; TN8=function(p,x){this.k_=p;this.s7=x}; Ki=function(p){var x=[];if(p){p=g.k(Object.entries(p));for(var a=p.next();!a.done;a=p.next()){var v=g.k(a.value);a=v.next().value;v=v.next().value;v!==void 0&&(v=typeof v==="boolean"?""+ +v:(""+v).replace(/[:,=]/g,"_"),x.push(a+"."+v))}}return x.join(";")}; g.dD=function(p,x,a){x=x===void 0?{}:x;this.errorCode=p;this.details=x;this.severity=a===void 0?0:a}; bh=function(p){return p===1||p===2}; rD=function(p,x){x=x===void 0?0:x;if(p instanceof g.dD)return p;p=p&&p instanceof Error?p:Error(""+p);bh(x)?g.Uq(p):g.Hp(p);return new g.dD(x===1?"player.fatalexception":"player.exception",{name:""+p.name,message:""+p.message},x)}; QXx=function(p,x){function a(){var v=g.g_.apply(0,arguments);p.removeEventListener("playing",a);x.apply(null,g.lf(v))} p.addEventListener("playing",a)}; Bh=function(){var p=g.$t("yt.player.utils.videoElement_");p||(p=g.Lw("VIDEO"),g.pG("yt.player.utils.videoElement_",p));return p}; lh=function(p){var x=Bh();return!!(x&&x.canPlayType&&x.canPlayType(p))}; Yc=function(p){if(/opus/.test(p)&&g.Li&&!WG("38")&&!g.yl())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(p);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(p);if(/webm/.test(p)&&!hW1())return!1;p==='audio/mp4; codecs="mp4a.40.2"'&&(p='video/mp4; codecs="avc1.4d401f"');return!!lh(p)}; mpb=function(p){try{var x=Yc('video/mp4; codecs="avc1.42001E"')||Yc('video/webm; codecs="vp9"');return(Yc('audio/mp4; codecs="mp4a.40.2"')||Yc('audio/webm; codecs="opus"'))&&(x||!p)||lh('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(a){return"html5.missingapi"}}; hD=function(){var p=Bh();return!(!p.webkitSupportsPresentationMode||typeof p.webkitSetPresentationMode!=="function")}; jw=function(){var p=Bh();try{var x=p.muted;p.muted=!x;return p.muted!==x}catch(a){}return!1}; S6I=function(){var p;return((p=navigator.connection)==null?void 0:p.type)||""}; g.II=function(){kz.apply(this,arguments)}; MK=function(p,x,a,v,c,J,R,d){this.sampleRate=p===void 0?0:p;this.numChannels=x===void 0?0:x;this.spatialAudioType=a===void 0?"SPATIAL_AUDIO_TYPE_NONE":a;this.U=v===void 0?!1:v;this.j=c;this.B=J;this.audioQuality=R===void 0?"AUDIO_QUALITY_UNKNOWN":R;this.Z=d===void 0?!1:d}; Dc=function(p,x,a,v,c,J,R,d,b){this.width=p;this.height=x;this.quality=J||Wh(p,x);this.qualityOrdinal=g.kc[this.quality];this.fps=a||0;this.stereoLayout=!c||v!=null&&v!=="UNKNOWN"&&v!=="RECTANGULAR"?0:c;this.projectionType=v?v==="EQUIRECTANGULAR"&&c===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":v:"UNKNOWN";(p=R)||(p=g.kc[this.quality],p===0?p="Autom\u00e1tico":(x=this.fps,a=this.projectionType,p=p.toString()+(a==="EQUIRECTANGULAR"||a==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||a==="MESH"?"s":"p")+(x>55?"60": x>49?"50":x>39?"48":"")));this.qualityLabel=p;this.U=d||"";this.primaries=b||""}; Wh=function(p,x){var a=Math.max(p,x);p=Math.min(p,x);x=UB[0];for(var v=0;v=Math.floor(J*16/9)*1.3||p>=J*1.3)return x;x=c}return"tiny"}; QB=function(p,x,a){a=a===void 0?{}:a;this.id=p;this.mimeType=x;a.y6>0||(a.y6=16E3);Object.assign(this,a);p=g.k(this.id.split(";"));this.itag=p.next().value;this.U=p.next().value;this.containerType=Hh(x);this.rr=Tl[this.itag]||""}; m3=function(p){return p.rr==="9"||p.rr==="("||p.rr==="9h"||p.rr==="(h"}; fEx=function(p){return p.rr==="H"||p.rr==="h"}; Sw=function(p){return p.rr==="9h"||p.rr==="(h"}; CxN=function(p){return!!p.F1&&!!p.F1.fairplay&&(p.rr==="("||p.rr==="(h"||p.rr==="A"||p.rr==="MEAC3")||fi&&!!p.F1&&p.rr==="1e"}; Ci=function(p){return p.rr==="1"||p.rr==="1h"||fi&&p.rr==="1e"}; XN=function(p){return p.rr==="mac3"||p.rr==="meac3"||p.rr==="m"||p.rr==="i"}; ih=function(p){return p.rr==="MAC3"||p.rr==="MEAC3"||p.rr==="M"||p.rr==="I"}; g.oI=function(p){return p.containerType===1}; XFU=function(p){return p.rr==="("||p.rr==="(h"||p.rr==="H"||fi&&p.rr==="1e"}; tD=function(p){return p.mimeType==="application/x-mpegURL"}; g.zl=function(p,x){return{itag:+p.itag,lmt:x?0:p.lastModified,xtags:p.U||""}}; iV1=function(p){var x=navigator.mediaCapabilities;if(x==null||!x.decodingInfo||p.rr==="f")return Promise.resolve();var a={type:p.audio&&p.video?"file":"media-source"};p.video&&(a.video={contentType:p.mimeType,width:p.video.width||640,height:p.video.height||360,bitrate:p.y6*8||1E6,framerate:p.video.fps||30});p.audio&&(a.audio={contentType:p.mimeType,channels:""+(p.audio.numChannels||2),bitrate:p.y6*8||128E3,samplerate:p.audio.sampleRate||44100});return x.decodingInfo(a).then(function(v){p.Z=v})}; wD=function(p){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(p)}; EB=function(p){return/(vp9|vp09|vp8|avc1|av01)/.test(p)}; yB=function(p){return p.includes("vtt")||p.includes("text/mp4")}; Hh=function(p){return p.indexOf("/mp4")>=0?1:p.indexOf("/webm")>=0?2:p.indexOf("/x-flv")>=0?3:p.indexOf("/vtt")>=0?4:0}; gD=function(p,x,a,v,c,J){var R=new MK;x in g.kc||(x="small");x==="light"&&(x="tiny");v&&c?(c=Number(c),v=Number(v)):(c=g.kc[x],v=Math.round(c*16/9));J=new Dc(v,c,0,null,void 0,x,J);p=unescape(p.replace(/"/g,'"'));return new QB(a,p,{audio:R,video:J})}; Gl=function(p){var x="id="+p.id;p.video&&(x+=", res="+p.video.qualityLabel);var a,v;return x+", byterate=("+((a=p.XQ)==null?void 0:a.toFixed(0))+", "+((v=p.y6)==null?void 0:v.toFixed(0))+")"}; OB=function(p,x){return{start:function(a){return p[a]}, end:function(a){return x[a]}, length:p.length}}; o$I=function(p,x,a){for(var v=[],c=[],J=0;J=x)return a}catch(v){}return-1}; Ph=function(p,x){return AD(p,x)>=0}; teo=function(p,x){if(!p)return NaN;x=AD(p,x);return x>=0?p.start(x):NaN}; qK=function(p,x){if(!p)return NaN;x=AD(p,x);return x>=0?p.end(x):NaN}; ni=function(p){return p&&p.length?p.end(p.length-1):NaN}; ew=function(p){return ni(p)>0}; uh=function(p,x){p=qK(p,x);return p>=0?p-x:0}; VB=function(p,x,a){for(var v=[],c=[],J=0;Ja||(v.push(Math.max(x,p.start(J))-x),c.push(Math.min(a,p.end(J))-x));return OB(v,c)}; FN=function(p,x,a,v){g.Fx.call(this);var c=this;this.Tw=p;this.start=x;this.end=a;this.isActive=v;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Y1={error:function(){!c.b$()&&c.isActive&&c.publish("error",c)}, updateend:function(){!c.b$()&&c.isActive&&c.publish("updateend",c)}}; this.Tw.Am(this.Y1);this.In=this.isActive}; x_=function(p,x,a,v,c,J){g.Fx.call(this);var R=this;this.MZ=p;this.KG=x;this.id=a;this.containerType=v;this.rr=c;this.hU=J;this.eq=this.A5=this.yb=null;this.Rq=!1;this.appendWindowStart=this.timestampOffset=0;this.fE=OB([],[]);this.zv=!1;this.m$=[];this.Ti=pa?[]:void 0;this.eV=function(b){return R.publish(b.type,R)}; var d;if((d=this.MZ)==null?0:d.addEventListener)this.MZ.addEventListener("updateend",this.eV),this.MZ.addEventListener("error",this.eV)}; $_=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; aL=function(p,x){this.JX=p;this.U=x===void 0?!1:x;this.Z=!1}; se=function(p,x,a){a=a===void 0?!1:a;g.y.call(this);this.mediaElement=p;this.xg=x;this.isView=a;this.S=0;this.B=!1;this.C=!0;this.T=0;this.callback=null;this.Y=!1;this.xg||(this.KG=this.mediaElement.BX());this.events=new g.II(this);g.Z(this,this.events);this.j=new aL(this.xg?window.URL.createObjectURL(this.xg):this.KG.webkitMediaSourceURL,!0);p=this.xg||this.KG;Dv(this.events,p,["sourceopen","webkitsourceopen"],this.jw6);Dv(this.events,p,["sourceclose","webkitsourceclose"],this.phI);this.V={updateend:this.OZ}}; zaT=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; wFo=function(p,x){vN(p)?g.D9(function(){x(p)}):p.callback=x}; E$N=function(p,x,a){if(cN){var v;JL(p.mediaElement,{l:"mswssb",sr:(v=p.mediaElement.U7)==null?void 0:v.zG()},!1);x.Am(p.V,p);a.Am(p.V,p)}p.U=x;p.Z=a;g.Z(p,x);g.Z(p,a)}; RL=function(p){return!!p.U||!!p.Z}; vN=function(p){try{return Ka(p)==="open"}catch(x){return!1}}; Ka=function(p){if(p.xg)return p.xg.readyState;switch(p.KG.webkitSourceState){case p.KG.SOURCE_OPEN:return"open";case p.KG.SOURCE_ENDED:return"ended";default:return"closed"}}; dM=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; yvx=function(p){vN(p)&&(p.xg?p.xg.endOfStream():p.KG.webkitSourceEndOfStream(p.KG.EOS_NO_ERROR))}; g$x=function(p,x,a,v){if(!p.U||!p.Z)return null;var c=p.U.isView()?p.U.Tw:p.U,J=p.Z.isView()?p.Z.Tw:p.Z,R=new se(p.mediaElement,p.xg,!0);R.j=p.j;E$N(R,new FN(c,x,a,v),new FN(J,x,a,v));vN(p)||p.U.f7(p.U.Y0());return R}; ZVT=function(p){var x;(x=p.U)==null||x.Nj();var a;(a=p.Z)==null||a.Nj();p.C=!1}; bl=function(){var p=this;this.LQ=this.mO=MIf;this.promise=new g.Sl(function(x,a){p.mO=x;p.LQ=a})}; rM=function(){g.y.call(this);this.Zk=!1;this.JX=null;this.V=this.S=!1;this.B=new g.Bm;this.U7=null;g.Z(this,this.B)}; BN=function(p){p=p.Vr();return p.length<1?NaN:p.end(p.length-1)}; GnQ=function(p){!p.Z&&zaT()&&(p.j?p.j.then(function(){return GnQ(p)}):p.jU()||(p.Z=p.jQ()))}; OVf=function(p){p.Z&&(p.Z.dispose(),p.Z=void 0)}; JL=function(p,x,a){var v;((v=p.U7)==null?0:v.qZ())&&p.U7.jA("rms",x,a===void 0?!1:a)}; NNQ=function(p,x,a){p.isPaused()||p.getCurrentTime()>x||a>10||(p.play(),g.dT(function(){NNQ(p,p.getCurrentTime(),a+1)},500))}; Avb=function(p,x){p.JX&&p.JX.equals(x)||(p.JX&&p.JX.dispose(),p.JX=x)}; ll=function(p){return uh(p.eh(),p.getCurrentTime())}; Pxx=function(p,x){if(p.zF()===0||p.hasError())return!1;var a=p.getCurrentTime()>0;return x>=0&&(p=p.Vr(),p.length||!a)?Ph(p,x):a}; La=function(p){p.jU()&&(p.U7&&p.U7.X9("rs_s"),gd&&p.getCurrentTime()>0&&p.seekTo(0),p.IR(),p.load(),Avb(p,null));delete p.j}; Y_=function(p){switch(p.AS()){case 2:return"progressive.net.retryexhausted";case 3:return p=p.Z9(),(p==null?0:p.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||q6f&&(p==null?0:p.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.hL=function(p,x,a){this.RB=x===void 0?null:x;this.seekSource=a===void 0?null:a;this.state=p||64}; jA=function(p,x,a){a=a===void 0?!1:a;return n$N(p,x.getCurrentTime(),(0,g.WR)(),ll(x),a)}; IL=function(p,x,a,v){if(!(x===p.state&&a===p.RB&&v===p.seekSource||x!==void 0&&(x&128&&!a||x&2&&x&16))){var c;if(c=x)c=x||p.state,c=!!(c&16||c&32);p=new g.hL(x,a,c?v?v:p.seekSource:null)}return p}; Mf=function(p,x,a){return IL(p,p.state|x,null,a===void 0?null:a)}; WN=function(p,x){return IL(p,p.state&~x,null,null)}; k_=function(p,x,a,v){return IL(p,(p.state|x)&~a,null,v===void 0?null:v)}; g.q=function(p,x){return!!(p.state&x)}; g.DA=function(p,x){return x.state===p.state&&x.RB===p.RB}; Ue=function(p){return p.isPlaying()&&!g.q(p,16)&&!g.q(p,32)}; HN=function(p){return g.q(p,128)?-1:g.q(p,2)?0:g.q(p,2048)?3:g.q(p,64)?-1:g.q(p,1)&&!g.q(p,32)?3:g.q(p,8)?1:g.q(p,4)?2:-1}; Qm=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D,H){g.y.call(this);var f=this;this.oO=p;this.slot=x;this.layout=a;this.Dt=v;this.jD=c;this.KI=J;this.SA=R;this.sz=d;this.hX=b;this.Mh=r;this.position=l;this.S=L;this.s7=Y;this.tY=h;this.LG=D;this.context=H;this.rI=!0;this.C=!1;this.NZ="not_rendering";this.Z=!1;this.j=new pi;p=Gr(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.AG=new dK(a.z$,this.Dt,p,a.layoutId);var m;p=((m=Tk(this))==null?void 0:m.progressCommands)||[];this.B=new qqo(b, p,a.layoutId,function(){return f.h$()}); this.U=new Upo({adCpn:this.layout.layoutId,HN:H.HN,KS:this.tY,hU:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; m0=function(p){return{layoutId:p.Dr(),VE:p.tY,k_:p.KI.get(),x9:p.Wm()}}; SA=function(p,x){return x.layoutId!==p.layout.layoutId?(p.oO.El(p.slot,x,new gy("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+p.layout.layoutId+("and LayoutType: "+p.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; fa=function(p){p.NZ="rendering_start_requested";p.Mh(-1)}; Tk=function(p){return Gr(p.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; eaI=function(p){sE("Received layout exit signal when not in layout exit flow.",p.slot,p.layout)}; uTT=function(p){var x;return((x=Ca(p.KI.get(),2))==null?void 0:x.clientPlaybackNonce)||""}; Xl=function(p,x){switch(x){case "normal":p.Qp("complete");break;case "skipped":p.Qp("skip");break;case "abandoned":Y0(p.AG,"impression")&&p.Qp("abandon")}}; il=function(p,x){p.C||(x=new g.vC(x.state,new g.hL),p.C=!0);return x}; oL=function(p,x){ea(x)?p.Mh(1):g.Jz(x,4)&&!g.Jz(x,2)&&p.D6();cC(x,4)<0&&!(cC(x,2)<0)&&p.bQ()}; VeQ=function(p){p.position===0&&(p.sz.get(),p=Gr(p.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p={adBreakType:tL(p)},Wa("ad_bl"),g.k8(p))}; zk=function(p,x){lc(p.AG,x,!p.Z)}; pC1=function(p){var x;return(((x=Tk(p))==null?void 0:x.progressCommands)||[]).findIndex(function(a){return!!g.O(a==null?void 0:a.command,Fhz)})!==-1}; wM=function(p,x){var a=Gr(p.clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(sE("Expected SSAP eligibility in PlayerBytes factory",p),!1):x.Wm(a)}; Ee=function(p,x){if(!Cj(x.get(),"html5_ssap_pass_transition_reason"))return 3;switch(p){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return sE("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return sE("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:p}),3;default:ru(p,"unknown layoutExitReason")}}; xe_=function(p){sE("getExitReason: unexpected reason",void 0,void 0,{reason:p})}; ym=function(p,x){if(Cj(x.get(),"html5_ssap_pass_transition_reason"))switch(p){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return xe_(p),"abandoned";case 3:case 1:return xe_(p),"error";default:ru(p,"unexpected transition reason")}else switch(p){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return sE("getExitReason: unexpected reason",void 0,void 0,{reason:p}),"error";default:ru(p,"unexpected transition reason")}}; g.gM=function(p,x,a){U_(p,a)||T3(p,x,a);U_(p,"video_to_ad")||T3(p,x,"video_to_ad");U_(p,"ad_to_video")||T3(p,x,"ad_to_video");U_(p,"ad_to_ad")||T3(p,x,"ad_to_ad")}; ZA=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D,H,f){Qm.call(this,p,x,a,v,c,J,R,d,r,B,l,L,Y,h,D,H,f);var m=this;this.vE=b;this.LD=l;this.FZ=!0;this.o$=this.pT=0;this.aq=zL(function(){MeI(m0(m));m.oO.g3(m.slot,m.layout)}); this.O4=zL(function(){Who(m0(m));m.NZ!=="rendering_stop_requested"&&m.LD(m);m.layoutExitReason?m.oO.wV(m.slot,m.layout,m.layoutExitReason):eaI(m)}); this.timer=new g.zD(200);this.timer.listen("tick",function(){m.SV()}); g.Z(this,this.timer)}; Oe=function(p){p.o$=Date.now();Gk(p,p.pT);p.timer.start()}; $eI=function(p){p.pT=p.h$();p.UD(p.pT/1E3,!0);Gk(p,p.pT)}; Gk=function(p,x){x={current:x/1E3,duration:p.h$()/1E3};p.vE.get().PL("onAdPlaybackProgress",x)}; Nf=function(p){ZA.call(this,p.oO,p.slot,p.D9,p.Dt,p.jD,p.KI,p.SA,p.sz,p.vE,p.hX,p.Mh,p.LD,p.vy,p.o1,p.s7,p.tY,p.LG,p.context)}; AL=function(p){ZA.call(this,p.oO,p.slot,p.D9,p.Dt,p.jD,p.KI,p.SA,p.sz,p.vE,p.hX,p.Mh,p.LD,p.vy,p.o1,p.s7,p.tY,p.LG,p.context)}; PN=function(){AL.apply(this,arguments)}; a5_=function(p){return wM(p.slot,p.s7.get())?new PN(p):new Nf(p)}; eA=function(p){Qm.call(this,p.callback,p.slot,p.D9,p.Dt,p.jD,p.KI,p.SA,p.sz,p.hX,p.Mh,p.LD,p.vy,p.o1,p.s7,p.tY,p.LG,p.context);var x=this;this.adCpn="";this.hM=this.zR=0;this.aq=zL(function(){MeI(m0(x));x.oO.g3(x.slot,x.layout)}); this.O4=zL(function(){Who(m0(x));x.NZ!=="rendering_stop_requested"&&x.LD(x);x.layoutExitReason?x.oO.wV(x.slot,x.layout,x.layoutExitReason):eaI(x)}); this.L1=p.L1;this.Uz=p.Uz;this.zw=p.zw;this.vE=p.vE;this.xL=p.xL;this.LD=p.LD;if(!this.Wm()){Cj(this.s7.get(),"html5_disable_media_load_timeout")||(this.LF=new g.AW(function(){x.ZQ("load_timeout",new gy("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); p=qf(this.s7.get());var a=na(this.s7.get());p&&a&&(this.Fa=new g.AW(function(){var v=Gr(x.layout.clientMetadata,"metadata_type_preload_player_vars");v&&x.Uz.get().W.preloadVideoByPlayerVars(v,2,300)}))}}; vI1=function(p,x){var a=Gr(x.clientMetadata,"metadata_type_ad_video_id"),v=Gr(x.clientMetadata,"metadata_type_legacy_info_card_vast_extension");a&&v&&p.xL.get().W.L().hG.add(a,{Yp:v});(x=Gr(x.clientMetadata,"metadata_type_sodar_extension_data"))&&cqf(p.L1.get(),x);sr1(p.SA.get(),!1)}; czf=function(p){sr1(p.SA.get(),!0);var x;((x=p.shrunkenPlayerBytesConfig)==null?0:x.shouldRequestShrunkenPlayerBytes)&&p.SA.get().DB(!1)}; Jz8=function(p){return new ul(p)}; Vm=function(){eA.apply(this,arguments)}; ul=function(){Vm.apply(this,arguments)}; Rvo=function(p){return a5_(Object.assign({},p,{oO:p.callback,Mh:function(){}}))}; KPQ=function(p){return new eA(Object.assign({},p,{Mh:function(x){p.vE.get().PL("onAdIntroStateChange",x)}}))}; def=function(p){function x(a){p.vE.get().Hb(a)} return wM(p.slot,p.s7.get())?Jz8(Object.assign({},p,{Mh:x})):new eA(Object.assign({},p,{Mh:x}))}; Fl=function(p){for(var x=p.D9,a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],v=g.k(bc()),c=v.next();!c.done;c=v.next())a.push(c.value);if(oC(x,{l2:a,gH:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Rvo(p);x=p.D9;a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];v=g.k(bc());for(c=v.next();!c.done;c=v.next())a.push(c.value);if(oC(x,{l2:a,gH:["LAYOUT_TYPE_MEDIA"]}))return wy(p.D9.clientMetadata,"metadata_type_ad_intro")?KPQ(p):def(p)}; rzQ=function(p){var x=Gr(p.clientMetadata,"metadata_type_ad_placement_config").kind,a=Gr(p.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:p.layoutId,adType:b5U(a),adBreakType:tL(x)}}; tL=function(p){switch(p){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"}}; b5U=function(p){switch(p){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; BBU=function(p){try{return new pK(p.FB,p.slot,p.layout,p.Ji,p.JU,p.KI,p.k0,p.Uz,p.fW,p.SA,p.S6A,p)}catch(x){}}; pK=function(p,x,a,v,c,J,R,d,b,r,B,l){g.y.call(this);this.FB=p;this.slot=x;this.layout=a;this.Ji=v;this.JU=c;this.KI=J;this.k0=R;this.Uz=d;this.fW=b;this.SA=r;this.params=l;this.rI=!0;p=Fl(B);if(!p)throw Error("Invalid params for sublayout");this.Gw=p}; l5I=function(){this.U=1;this.Z=new pi}; xb=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y){g.y.call(this);this.callback=p;this.KI=x;this.k0=a;this.Uz=v;this.SA=c;this.O6=J;this.sz=R;this.yw=d;this.slot=b;this.layout=r;this.Ji=B;this.xi=l;this.fW=L;this.s7=Y;this.rI=!0;this.bE=!1;this.HB=[];this.H6=-1;this.M_=!1;this.gP=new l5I}; LPo=function(p){var x;return(x=p.layout.mz)!=null?x:Gr(p.layout.clientMetadata,"metadata_type_sub_layouts")}; $b=function(p){return{k_:p.KI.get(),VE:!1,x9:p.Wm()}}; YEb=function(p,x,a){if(p.O5()===p.HB.length-1){var v,c;sE("Unexpected skip requested during the last sublayout",(v=p.rk())==null?void 0:v.x0(),(c=p.rk())==null?void 0:c.Q6(),{requestingSlot:x,requestingLayout:a})}}; hv_=function(p,x,a){return a.layoutId!==a_(p,x,a)?(sE("onSkipRequested for a PlayerBytes layout that is not currently active",p.x0(),p.Q6()),!1):!0}; jr1=function(p){p.O5()===p.HB.length-1&&sE("Unexpected skip with target requested during the last sublayout")}; I51=function(p,x,a){return a.renderingContent===void 0&&a.layoutId!==a_(p,x,a)?(sE("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",p.x0(),p.Q6(),{requestingSlot:x,requestingLayout:a}),!1):!0}; MGx=function(p,x,a,v){var c=Gr(x.Q6().clientMetadata,"metadata_type_ad_pod_skip_target");if(c&&c>0&&c0)){sE("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",p.slot,p.layout,{indexToPlay:x,layoutId:p.layout.layoutId});break a}p.H6=x;x=p.rk();if(p.O5()>0&&!p.Wm()){var a=p.sz.get();a.Z=!1;var v={};a.U&&a.videoId&&(v.cttAuthInfo={token:a.U,videoId:a.videoId});Dy("ad_to_ad",v)}a=g.O(x.Q6().renderingContent,Pn);if(a==null?0: a.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var c;a=!((c=p.O6.get().LUr.get(a.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&c)}else a=!1;a?sR(p,p.O5()+1):p.EY(x)}}; JK=function(p){xb.call(this,p.FB,p.KI,p.k0,p.Uz,p.SA,p.O6,p.sz,p.yw,p.slot,p.layout,p.Ji,p.xi,p.fW,p.s7)}; De1=function(p){(p=p.rk())&&p.KH()}; R_=function(p){xb.call(this,p.FB,p.KI,p.k0,p.Uz,p.SA,p.O6,p.sz,p.yw,p.slot,p.layout,p.Ji,p.xi,p.fW,p.s7);this.Sk=void 0}; Ueb=function(p,x){p.by()&&!$c(p.gP.Z)||p.callback.wV(p.slot,p.layout,x)}; KK=function(p){return Cj(p.s7.get(),"html5_ssap_pass_transition_reason")}; H5f=function(p,x,a){x.C7().currentState<2&&(a=ym(a,p.s7),x.cE(x.Q6(),a));a=x.C7().U;p.Ix(p.slot,x.Q6(),a)}; TBf=function(p,x){if(p.gP.Z.currentState<2){var a=ym(x,p.s7);a==="error"?p.callback.El(p.slot,p.layout,new gy("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:x},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):cK(p.xi,p.layout,a)}}; dP=function(p,x,a){x.C7().currentState>=2||(x.cE(x.Q6(),a),$c(x.C7())&&(rZ(p.yw,p.slot,x.Q6(),a),p.Sk=void 0))}; Qrg=function(p,x){p.gP.U===2&&x!==p.BM()&&sE("onClipEntered: unknown cpn",p.slot,p.layout,{cpn:x})}; meI=function(p,x){var a=p.rk();if(a){var v=a.Q6().layoutId,c=p.O5()+1;p.by()?dP(p,a,x):a.cE(a.Q6(),x);c>=0&&cc&&R.dZ(B,c-v);return B}; wCT=function(p,x,a){var v=Gr(x.clientMetadata,"metadata_type_sodar_extension_data");if(v)try{cqf(a,v)}catch(c){sE("Unexpected error when loading Sodar",p,x,{error:c})}}; EIQ=function(p,x,a,v,c,J,R){hK(p,x,new g.vC(a,new g.hL),v,c,R,!1,J)}; hK=function(p,x,a,v,c,J,R,d){R=R===void 0?!0:R;ea(a)&&uc(c,0,null)&&(!Y0(p,"impression")&&d&&d(),p.Qp("impression"));Y0(p,"impression")&&(g.Jz(a,4)&&!g.Jz(a,2)&&p.eg("pause"),cC(a,4)<0&&!(cC(a,2)<0)&&p.eg("resume"),g.Jz(a,16)&&c>=.5&&p.eg("seek"),R&&g.Jz(a,2)&&jH(p,a.state,x,v,c,J))}; jH=function(p,x,a,v,c,J,R,d,b){Y0(p,"impression")&&(J?(J=c-v,J=J>=-1&&J<=2):J=Math.abs(v-c)<=1,I_(p,x,J?v:c,a,v,R,d&&J),J&&!b&&p.Qp("complete"))}; I_=function(p,x,a,v,c,J,R){Lx(p,a*1E3,R);c<=0||a<=0||(x==null?0:g.q(x,16))||(x==null?0:g.q(x,32))||(uc(a,c*.25,v)&&(J&&!Y0(p,"first_quartile")&&J("first"),p.Qp("first_quartile")),uc(a,c*.5,v)&&(J&&!Y0(p,"midpoint")&&J("second"),p.Qp("midpoint")),uc(a,c*.75,v)&&(J&&!Y0(p,"third_quartile")&&J("third"),p.Qp("third_quartile")))}; yz1=function(p,x){Y0(p,"impression")&&p.eg(x?"fullscreen":"end_fullscreen")}; gI1=function(p){Y0(p,"impression")&&p.eg("clickthrough")}; Z58=function(p){p.eg("active_view_measurable")}; GNg=function(p){Y0(p,"impression")&&!Y0(p,"seek")&&p.eg("active_view_fully_viewable_audible_half_duration")}; O5U=function(p){Y0(p,"impression")&&!Y0(p,"seek")&&p.eg("active_view_viewable")}; NBg=function(p){Y0(p,"impression")&&!Y0(p,"seek")&&p.eg("audio_audible")}; Azx=function(p){Y0(p,"impression")&&!Y0(p,"seek")&&p.eg("audio_measurable")}; P8Q=function(p,x,a,v,c,J,R,d,b,r,B,l,L){this.callback=p;this.slot=x;this.layout=a;this.k0=v;this.AG=c;this.SA=J;this.Kq=R;this.jD=d;this.L1=b;this.s7=r;this.Dt=B;this.KI=l;this.zw=L;this.FZ=!0;this.Jj=this.NZ=null;this.adCpn=void 0;this.U=!1}; qEf=function(p,x,a){var v;Yb(p.Dt.get(),"ads_qua","cpn."+Gr(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((v=Ca(p.KI.get(),2))==null?void 0:v.clientPlaybackNonce)+";qt."+x+";clr."+a)}; nII=function(p,x){var a,v;Yb(p.Dt.get(),"ads_imp","cpn."+Gr(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=Ca(p.KI.get(),2))==null?void 0:a.clientPlaybackNonce)+";clr."+x+";skp."+!!g.O((v=Gr(p.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:v.skipOrPreviewRenderer,M5))}; WK=function(p){return{enterMs:Gr(p.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Gr(p.clientMetadata,"metadata_type_layout_exit_ms")}}; kb=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y){rP.call(this,p,x,a,v,c,R,d,b,r,l);this.Kq=J;this.L1=B;this.jD=L;this.s7=Y;this.Jj=this.NZ=null}; evU=function(p,x){var a;Yb(p.Dt.get(),"ads_imp","acpn."+((a=Ca(p.KI.get(),2))==null?void 0:a.clientPlaybackNonce)+";clr."+x)}; uAU=function(p,x,a){var v;Yb(p.Dt.get(),"ads_qua","cpn."+Gr(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((v=Ca(p.KI.get(),2))==null?void 0:v.clientPlaybackNonce)+";qt."+x+";clr."+a)}; DP=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D,H,f,m,X,E,A){this.fW=p;this.Ji=x;this.xi=a;this.KI=v;this.k0=c;this.SA=J;this.O6=R;this.Dt=d;this.Kq=b;this.QV=r;this.jD=B;this.L1=l;this.Uz=L;this.zw=Y;this.sz=h;this.vE=D;this.hX=H;this.xL=f;this.s7=m;this.U=X;this.context=E;this.LG=A}; UR=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D,H,f,m){this.fW=p;this.Ji=x;this.xi=a;this.Dt=v;this.jD=c;this.L1=J;this.Uz=R;this.KI=d;this.SA=b;this.O6=r;this.zw=B;this.sz=l;this.vE=L;this.hX=Y;this.xL=h;this.s7=D;this.k0=H;this.context=f;this.LG=m}; VGg=function(p,x,a,v){Vj.call(this,"survey-interstitial",p,x,a,v)}; HK=function(p,x,a,v,c){$0.call(this,a,p,x,v);this.Dt=c;p=Gr(x.clientMetadata,"metadata_type_ad_placement_config");this.AG=new dK(x.z$,c,p,x.layoutId)}; T$=function(p){return Math.round(p.width)+"x"+Math.round(p.height)}; m5=function(p,x,a){a=a===void 0?Qh:a;a.widthp.width*p.height*.2)return{Vg:3,w2:501,errorMessage:"ad("+T$(a)+") to container("+T$(p)+") ratio exceeds limit."};if(a.height>p.height/3-x)return{Vg:3,w2:501,errorMessage:"ad("+T$(a)+") covers container("+T$(p)+") center."}}; FPo=function(p,x){var a=Gr(p.clientMetadata,"metadata_type_ad_placement_config");return new dK(p.z$,x,a,p.layoutId)}; SH=function(p){return Gr(p.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; fK=function(p,x,a,v){Vj.call(this,"invideo-overlay",p,x,a,v);this.interactionLoggingClientData=v}; CK=function(p,x,a,v,c,J,R,d,b,r,B,l){$0.call(this,J,p,x,c);this.Dt=a;this.B=R;this.SA=d;this.hX=b;this.s7=r;this.S=B;this.C=l;this.AG=FPo(x,a)}; paN=function(){var p=["metadata_type_invideo_overlay_ad_renderer"];bc().forEach(function(x){p.push(x)}); return{l2:p,gH:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Xe=function(p,x,a,v,c,J,R,d,b,r,B,l,L){$0.call(this,J,p,x,c);this.Dt=a;this.B=R;this.Y=d;this.SA=b;this.hX=r;this.s7=B;this.S=l;this.C=L;this.AG=FPo(x,a)}; xqT=function(){for(var p=["metadata_type_invideo_overlay_ad_renderer"],x=g.k(bc()),a=x.next();!a.done;a=x.next())p.push(a.value);return{l2:p,gH:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; i6=function(p){this.SA=p;this.U=!1}; $qI=function(p,x,a){Vj.call(this,"survey",p,{},x,a)}; o_=function(p,x,a,v,c,J,R){$0.call(this,a,p,x,v);this.B=c;this.SA=J;this.s7=R}; ayo=function(p,x,a,v,c,J,R,d,b,r){this.T$=p;this.SA=x;this.Dt=a;this.B=v;this.jD=c;this.Z=J;this.j=R;this.hX=d;this.s7=b;this.U=r}; seJ=function(p,x,a,v,c,J,R,d,b,r){this.T$=p;this.SA=x;this.Dt=a;this.B=v;this.jD=c;this.Z=J;this.j=R;this.hX=d;this.s7=b;this.U=r}; tK=function(p,x,a,v,c,J,R,d,b,r){gK.call(this,p,x,a,v,c,J,R,b);this.zq=d;this.KI=r}; v8o=function(){var p=bVz();p.l2.push("metadata_type_ad_info_ad_metadata");return p}; cZx=function(p,x,a,v,c,J,R){this.T$=p;this.SA=x;this.Dt=a;this.Z=v;this.zq=c;this.U=J;this.KI=R}; JZ_=function(p,x,a,v,c,J,R,d){this.T$=p;this.SA=x;this.Dt=a;this.Z=v;this.zq=c;this.U=J;this.s7=R;this.KI=d}; z$=function(p,x){this.slotId=x;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=p(this.triggerType)}; wP=function(p,x){this.adPodIndex=p;this.U=x.length;this.adBreakLengthSeconds=x.reduce(function(v,c){return v+c},0); var a=0;for(p+=1;p0}; Q8=function(p){return!!(p.hJ&&p.slot&&p.layout)}; mE=function(p){var x,a=(x=p.config)==null?void 0:x.adPlacementConfig;p=p.renderer;return!(!a||a.kind==null||!p)}; k3_=function(p){if(!BP(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.O(p,Pn)||g.O(p,q6)||g.O(p,WZN)||g.O(p,N6)||g.O(p,AE)?!0:!1}; St=function(p){return p.playerVars!==void 0&&p.pings!==void 0&&p.externalVideoId!==void 0}; zZ=function(p){if(!BP(p.adLayoutMetadata))return!1;p=p.renderingContent;var x=g.O(p,fn);return x?Cn(x):(x=g.O(p,XZ))?St(x):(x=g.O(p,ib))?x.playerVars!==void 0:(x=g.O(p,Pn))?x.durationMilliseconds!==void 0:g.O(p,oG)||g.O(p,tR)?!0:!1}; Cn=function(p){p=(p.sequentialLayouts||[]).map(function(x){return g.O(x,wn)}); return p.length>0&&p.every(zZ)}; y8=function(p){return BP(p.adLayoutMetadata)?(p=g.O(p.renderingContent,EP))&&p.pings?!0:!1:!1}; mq1=function(p){if(!BP(p.adLayoutMetadata))return!1;if(g.O(p.renderingContent,Dq8)||g.O(p.renderingContent,UqT))return!0;var x=g.O(p.renderingContent,gn);return g.O(p.renderingContent,ZU)||g.O(x==null?void 0:x.sidePanel,Hbx)||g.O(x==null?void 0:x.sidePanel,TGg)||g.O(x==null?void 0:x.sidePanel,Qez)?!0:!1}; ibI=function(p){var x;(x=!p)||(x=p.adSlotMetadata,x=!((x==null?void 0:x.slotId)!==void 0&&(x==null?void 0:x.slotType)!==void 0));if(x||!(S_o(p)||p.slotEntryTrigger&&p.slotFulfillmentTriggers&&p.slotExpirationTriggers))return!1;var a;p=(a=p.fulfillmentContent)==null?void 0:a.fulfilledLayout;return(a=g.O(p,wn))?zZ(a):(a=g.O(p,GZ))?mq1(a):(a=g.O(p,fyI))?k3_(a):(a=g.O(p,Cs8))?IyQ(a):(a=g.O(p,Xax))?BP(a.adLayoutMetadata)?g.O(a.renderingContent,lb)?!0:!1:!1:(p=g.O(p,OP))?y8(p):!1}; S_o=function(p){var x;p=g.O((x=p.fulfillmentContent)==null?void 0:x.fulfilledLayout,GZ);var a;return p&&((a=p.adLayoutMetadata)==null?void 0:a.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&p.layoutExitNormalTriggers===void 0}; o8f=function(p){var x;return(p==null?void 0:(x=p.adSlotMetadata)==null?void 0:x.slotType)==="SLOT_TYPE_IN_PLAYER"}; zR1=function(p,x){var a;if((a=p.questions)==null||!a.length||!p.playbackCommands||(x===void 0||!x)&&p.questions.length!==1)return!1;p=g.k(p.questions);for(x=p.next();!x.done;x=p.next()){x=x.value;var v=a=void 0,c=((a=g.O(x,N2))==null?void 0:a.surveyAdQuestionCommon)||((v=g.O(x,AR))==null?void 0:v.surveyAdQuestionCommon);if(!tbo(c))return!1}return!0}; wax=function(p){p=((p==null?void 0:p.playerOverlay)||{}).instreamSurveyAdRenderer;var x;if(p)if(p.playbackCommands&&p.questions&&p.questions.length===1){var a,v=((x=g.O(p.questions[0],N2))==null?void 0:x.surveyAdQuestionCommon)||((a=g.O(p.questions[0],AR))==null?void 0:a.surveyAdQuestionCommon);x=tbo(v)}else x=!1;else x=!1;return x}; tbo=function(p){if(!p)return!1;p=g.O(p.instreamAdPlayerOverlay,PP);var x=g.O(p==null?void 0:p.skipOrPreviewRenderer,M5),a=g.O(p==null?void 0:p.adInfoRenderer,q2);return(g.O(p==null?void 0:p.skipOrPreviewRenderer,nn)||x)&&a?!0:!1}; E81=function(p){return p.linearAds!=null&&BP(p.adLayoutMetadata)}; yZg=function(p){return p.linearAd!=null&&p.adVideoStart!=null}; g8I=function(p){if(isNaN(Number(p.timeoutSeconds))||!p.text||!p.ctaButton||!g.O(p.ctaButton,g.et)||!p.brandImage)return!1;var x;return p.backgroundImage&&g.O(p.backgroundImage,ub)&&((x=g.O(p.backgroundImage,ub))==null?0:x.landscape)?!0:!1}; V8=function(p,x,a,v,c,J,R,d){g.y.call(this);this.s7=p;this.U=x;this.Z=v;this.KI=c;this.B=J;this.j=R;this.Uz=d}; ObJ=function(p,x,a){var v,c=((v=a.adSlots)!=null?v:[]).map(function(d){return g.O(d,FZ)}); if(a.S7)if(Gr(x.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Vw(p.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},x.slotId); else{if(p.s7.get().W.L().D("h5_check_forecasting_renderer_for_throttled_midroll")){var J=a.n$.filter(function(d){var b;return((b=d.renderer)==null?void 0:b.clientForecastingAdRenderer)!=null}); J.length!==0?Zbg(p.j,J,c,x.slotId,a.ssdaiAdsConfig):Vw(p.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},x.slotId)}else Vw(p.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},x.slotId); G38(p.B,x)}else{var R;v={yE:Math.round(((J=Gr(x.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:J.yE)||0),T7:(R=Gr(x.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:R.T7};J=Gr(x.clientMetadata,"metadata_type_cue_point");Zbg(p.j,a.n$,c,x.slotId,a.ssdaiAdsConfig,v,J)}}; PsN=function(p,x,a,v,c,J,R,d){var b=Ca(p.KI.get(),1);if(NGQ(p.s7.get())){var r=pQ(p.Z.get(),a,v,c,b.clientPlaybackNonce,b.cN,b.daiEnabled,b,J,R);AZo(p,r);Vw(p.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return r},x)}else Vw(p.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return pQ(p.Z.get(),a,v,c,b.clientPlaybackNonce,b.cN,b.daiEnabled,b,J,R,d)},x)}; AZo=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next()){var v=a.value;if(v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.fulfilledLayout)if(a=void 0,v.fulfilledLayout.renderingContent)a=Gr(v.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(v.fulfilledLayout.mz){v=g.k(v.fulfilledLayout.mz);for(var c=v.next();!c.done&&(c=c.value,!c.renderingContent||!(a=Gr(c.clientMetadata,"metadata_type_player_vars")));c=v.next());}}else a=void 0;if(a){p.Uz.get().W.preloadVideoByPlayerVars(a, 2,300);break}}}; n81=function(p,x,a,v,c,J,R){x=q_1(x,J,Number(v.prefetchMilliseconds)||0,R);p=x instanceof e?x:xC(p,v,c,x,a);return p instanceof e?p:[p]}; eRo=function(p,x,a,v,c){var J=FR(p.Z.get(),"SLOT_TYPE_AD_BREAK_REQUEST");v=[new MV({getAdBreakUrl:v.getAdBreakUrl,yE:0,T7:0}),new oo(!0)];p=x.pauseDurationMs?x.lactThresholdMs?{slotId:J,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new RG(p.U,J),slotFulfillmentTriggers:[new KZQ(p.U)],slotExpirationTriggers:[new xv(p.U,c),new vP(p.U,J)],G4:"core",clientMetadata:new Zx(v),adSlotLoggingData:a}:new e("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new e("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return p instanceof e?p:[p]}; u_U=function(p){var x,a;return((x=p.renderer)==null?void 0:(a=x.adBreakServiceRenderer)==null?void 0:a.getAdBreakUrl)!==void 0}; $C=function(p,x,a){if(p.beforeContentVideoIdStartedTrigger)p=p.beforeContentVideoIdStartedTrigger?new ER(y6,x,p.id):new e("Not able to create BeforeContentVideoIdStartedTrigger");else{if(p.layoutIdExitedTrigger){var v;x=(v=p.layoutIdExitedTrigger)!=null&&v.triggeringLayoutId?new N5(y6,p.layoutIdExitedTrigger.triggeringLayoutId,p.id):new e("Not able to create LayoutIdExitedTrigger")}else{if(p.layoutExitedForReasonTrigger){var c,J;((c=p.layoutExitedForReasonTrigger)==null?0:c.triggeringLayoutId)&&((J= p.layoutExitedForReasonTrigger)==null?0:J.layoutExitReason)?(x=dqU(p.layoutExitedForReasonTrigger.layoutExitReason),p=x instanceof e?x:new OR(y6,p.layoutExitedForReasonTrigger.triggeringLayoutId,[x],p.id)):p=new e("Not able to create LayoutIdExitedForReasonTrigger")}else{if(p.onLayoutSelfExitRequestedTrigger){var R;x=(R=p.onLayoutSelfExitRequestedTrigger)!=null&&R.triggeringLayoutId?new pn(y6,p.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,p.id):new e("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(p.onNewPlaybackAfterContentVideoIdTrigger)p= p.onNewPlaybackAfterContentVideoIdTrigger?new xv(y6,x,p.id):new e("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(p.skipRequestedTrigger){var d;x=(d=p.skipRequestedTrigger)!=null&&d.triggeringLayoutId?new aG(y6,p.skipRequestedTrigger.triggeringLayoutId,p.id):new e("Not able to create SkipRequestedTrigger")}else if(p.slotIdEnteredTrigger){var b;x=(b=p.slotIdEnteredTrigger)!=null&&b.triggeringSlotId?new sP(y6,p.slotIdEnteredTrigger.triggeringSlotId,p.id):new e("Not able to create SlotIdEnteredTrigger")}else if(p.slotIdExitedTrigger){var r; x=(r=p.slotIdExitedTrigger)!=null&&r.triggeringSlotId?new vP(y6,p.slotIdExitedTrigger.triggeringSlotId,p.id):new e("Not able to create SkipRequestedTrigger")}else if(p.surveySubmittedTrigger){var B;x=(B=p.surveySubmittedTrigger)!=null&&B.triggeringLayoutId?new dn(y6,p.surveySubmittedTrigger.triggeringLayoutId,p.id):new e("Not able to create SurveySubmittedTrigger")}else{if(p.mediaResumedTrigger)p=p.mediaResumedTrigger&&p.id?new bbo(p.id):new e("Not able to create MediaResumedTrigger");else{if(p.closeRequestedTrigger){var l; x=(l=p.closeRequestedTrigger)!=null&&l.triggeringLayoutId?new yh(y6,p.closeRequestedTrigger.triggeringLayoutId,p.id):new e("Not able to create CloseRequestedTrigger")}else if(p.slotIdScheduledTrigger){var L;x=(L=p.slotIdScheduledTrigger)!=null&&L.triggeringSlotId?new RG(y6,p.slotIdScheduledTrigger.triggeringSlotId,p.id):new e("Not able to create SlotIdScheduledTrigger")}else{if(p.mediaTimeRangeTrigger){var Y;v=Number((Y=p.mediaTimeRangeTrigger)==null?void 0:Y.offsetStartMilliseconds);var h;R=Number((h= p.mediaTimeRangeTrigger)==null?void 0:h.offsetEndMilliseconds);isFinite(v)&&isFinite(R)?(h=R,h===-1&&(h=a),a=v>h?new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:v,offsetEndMs:h},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",h===a&&v-500<=h):new IR(v,h),p=a instanceof e?a:new eH(y6,x,a,!1,p.id)):p=new e("Not able to create MediaTimeRangeTrigger")}else if(p.contentVideoIdEndedTrigger)p=p.contentVideoIdEndedTrigger?new gP(y6,x,!1,p.id):new e("Not able to create ContentVideoIdEndedTrigger"); else{if(p.layoutIdEnteredTrigger){var D;x=(D=p.layoutIdEnteredTrigger)!=null&&D.triggeringLayoutId?new G$(y6,p.layoutIdEnteredTrigger.triggeringLayoutId,p.id):new e("Not able to create LayoutIdEnteredTrigger")}else if(p.timeRelativeToLayoutEnterTrigger){var H;x=(H=p.timeRelativeToLayoutEnterTrigger)!=null&&H.triggeringLayoutId?new bb(y6,Number(p.timeRelativeToLayoutEnterTrigger.durationMs),p.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,p.id):new e("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(p.onDifferentLayoutIdEnteredTrigger){var f; x=(f=p.onDifferentLayoutIdEnteredTrigger)!=null&&f.triggeringLayoutId&&p.onDifferentLayoutIdEnteredTrigger.slotType&&p.onDifferentLayoutIdEnteredTrigger.layoutType?new Vh(y6,p.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,p.onDifferentLayoutIdEnteredTrigger.slotType,p.onDifferentLayoutIdEnteredTrigger.layoutType,p.id):new e("Not able to create CloseRequestedTrigger")}else{if(p.liveStreamBreakStartedTrigger)p=p.liveStreamBreakStartedTrigger&&p.id?new nK(y6,p.id):new e("Not able to create LiveStreamBreakStartedTrigger"); else if(p.liveStreamBreakEndedTrigger)p=p.liveStreamBreakEndedTrigger&&p.id?new AK(y6,p.id):new e("Not able to create LiveStreamBreakEndedTrigger");else{if(p.liveStreamBreakScheduledDurationMatchedTrigger){var m;x=(m=p.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&m.breakDurationMs?new PK(Number(p.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,p.id):new e("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(p.liveStreamBreakScheduledDurationNotMatchedTrigger){var X; x=(X=p.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&X.breakDurationMs?new q5(Number(p.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,p.id):new e("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(p.newSlotScheduledWithBreakDurationTrigger){var E;x=(E=p.newSlotScheduledWithBreakDurationTrigger)!=null&&E.breakDurationMs?new u6(Number(p.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,p.id):new e("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else x= p.prefetchCacheExpiredTrigger?new $v(y6,p.id):new e("Not able to convert an AdsControlflowTrigger.");p=x}x=p}p=x}x=p}p=x}x=p}p=x}x=p}p=x}x=p}p=x}return p}; aK=function(p,x){x.U>=2&&(p.slot_pos=x.adPodIndex);p.autoplay="1"}; FZJ=function(p,x,a,v,c,J,R,d){return x===null?new e("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:x,ActionCompanionAdRenderer:v}):[Vbg(p,x,R,J,function(b){var r=b.slotId;b=d(b);var B=v.adLayoutLoggingData,l=new Zx([new WT(v),new iW(c)]);r=ir(a.Z.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r);var L={layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",G4:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",z$:new Map, layoutExitNormalTriggers:[new xv(a.U,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:l,Vp:b(L),adLayoutLoggingData:B}})]}; p$I=function(p,x,a,v,c,J,R,d){return x===null?new e("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:x,TopBannerImageTextIconButtonedLayoutViewModel:v}):[Vbg(p,x,R,J,function(b){var r=b.slotId;b=d(b);var B=v.adLayoutLoggingData,l=new Zx([new kn(v),new iW(c)]);r=ir(a.Z.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r);var L={layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",G4:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", z$:new Map,layoutExitNormalTriggers:[new xv(a.U,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:l,Vp:b(L),adLayoutLoggingData:B}})]}; sx_=function(p,x,a,v,c,J){if(!J)for(x=g.k(x),J=x.next();!J.done;J=x.next())J=J.value,s5(p,J.renderer,J.config.adPlacementConfig.kind);p=Array.from(p.values()).filter(function(B){return xm1(B)}); x=[];J=g.k(p);for(var R=J.next(),d={};!R.done;d={gS:void 0},R=J.next()){d.gS=R.value;R=g.k(d.gS.VZ);for(var b=R.next(),r={};!b.done;r={Uo:void 0},b=R.next())r.Uo=b.value,b=function(B,l){return function(L){return B.Uo.Dd(L,l.gS.instreamVideoAdRenderer.elementId,B.Uo.qo)}}(r,d),r.Uo.isContentVideoCompanion?x.push($mJ(a,v,c,d.gS.instreamVideoAdRenderer.elementId,r.Uo.associatedCompositePlayerBytesLayoutId,r.Uo.adSlotLoggingData,b)):p.length>1?x.push(aaf(a,v,c,d.gS.instreamVideoAdRenderer.elementId,r.Uo.adSlotLoggingData, function(B,l){return function(L){return B.Uo.Dd(L,l.gS.instreamVideoAdRenderer.elementId,B.Uo.qo,B.Uo.associatedCompositePlayerBytesLayoutId)}}(r,d))):x.push(aaf(a,v,c,d.gS.instreamVideoAdRenderer.elementId,r.Uo.adSlotLoggingData,b))}return x}; s5=function(p,x,a){if(x=v3T(x)){x=g.k(x);for(var v=x.next();!v.done;v=x.next())if((v=v.value)&&v.externalVideoId){var c=vd(p,v.externalVideoId);c.instreamVideoAdRenderer||(c.instreamVideoAdRenderer=v,c.nU=a)}else sE("InstreamVideoAdRenderer without externalVideoId")}}; v3T=function(p){var x=[],a=p.sandwichedLinearAdRenderer&&p.sandwichedLinearAdRenderer.linearAd&&g.O(p.sandwichedLinearAdRenderer.linearAd,XZ);if(a)return x.push(a),x;if(p.instreamVideoAdRenderer)return x.push(p.instreamVideoAdRenderer),x;if(p.linearAdSequenceRenderer&&p.linearAdSequenceRenderer.linearAds){p=g.k(p.linearAdSequenceRenderer.linearAds);for(a=p.next();!a.done;a=p.next())a=a.value,g.O(a,XZ)&&x.push(g.O(a,XZ));return x}return null}; xm1=function(p){if(p.instreamVideoAdRenderer===void 0)return sE("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var x=g.k(p.VZ),a=x.next();!a.done;a=x.next()){a=a.value;if(a.Dd===void 0)return!1;if(a.qo===void 0)return sE("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(p.nU===void 0||a.Px===void 0||p.nU!==a.Px&&a.Px!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(p.instreamVideoAdRenderer.elementId===void 0)return sE("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:p.nU,"matching APSR kind":a.Px}),!1}return!0}; vd=function(p,x){p.has(x)||p.set(x,{instreamVideoAdRenderer:void 0,nU:void 0,adVideoId:x,VZ:[]});return p.get(x)}; cd=function(p,x,a,v,c,J,R,d,b){c?vd(p,c).VZ.push({xAG:x,Px:a,isContentVideoCompanion:v,qo:R,associatedCompositePlayerBytesLayoutId:J,adSlotLoggingData:d,Dd:b}):sE("Companion AdPlacementSupportedRenderer without adVideoId")}; Jm=function(p){var x=0;p=g.k(p.questions);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a=g.O(a,N2)||g.O(a,AR)){var v=void 0;x+=((v=a.surveyAdQuestionCommon)==null?void 0:v.durationMilliseconds)||0}return x}; RK=function(p){var x,a,v,c,J=((a=g.O((x=p.questions)==null?void 0:x[0],N2))==null?void 0:a.surveyAdQuestionCommon)||((c=g.O((v=p.questions)==null?void 0:v[0],AR))==null?void 0:c.surveyAdQuestionCommon),R;x=[].concat(g.lf(((R=p.playbackCommands)==null?void 0:R.instreamAdCompleteCommands)||[]),g.lf((J==null?void 0:J.timeoutCommands)||[]));var d,b,r,B,l,L,Y,h,D,H,f,m,X,E,A,u,n,co,LU,R8;return{impressionCommands:(d=p.playbackCommands)==null?void 0:d.impressionCommands,errorCommands:(b=p.playbackCommands)== null?void 0:b.errorCommands,muteCommands:(r=p.playbackCommands)==null?void 0:r.muteCommands,unmuteCommands:(B=p.playbackCommands)==null?void 0:B.unmuteCommands,pauseCommands:(l=p.playbackCommands)==null?void 0:l.pauseCommands,rewindCommands:(L=p.playbackCommands)==null?void 0:L.rewindCommands,resumeCommands:(Y=p.playbackCommands)==null?void 0:Y.resumeCommands,skipCommands:(h=p.playbackCommands)==null?void 0:h.skipCommands,progressCommands:(D=p.playbackCommands)==null?void 0:D.progressCommands,HD5:(H= p.playbackCommands)==null?void 0:H.clickthroughCommands,fullscreenCommands:(f=p.playbackCommands)==null?void 0:f.fullscreenCommands,activeViewViewableCommands:(m=p.playbackCommands)==null?void 0:m.activeViewViewableCommands,activeViewMeasurableCommands:(X=p.playbackCommands)==null?void 0:X.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(E=p.playbackCommands)==null?void 0:E.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(A=p.playbackCommands)== null?void 0:(u=A.activeViewTracking)==null?void 0:u.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(n=p.playbackCommands)==null?void 0:(co=n.activeViewTracking)==null?void 0:co.activeViewAudioMeasurableCommands,endFullscreenCommands:(LU=p.playbackCommands)==null?void 0:LU.endFullscreenCommands,abandonCommands:(R8=p.playbackCommands)==null?void 0:R8.abandonCommands,completeCommands:x}}; Jtb=function(p,x,a,v,c,J,R){return function(d,b){return cto(p,b.slotId,d,J,function(r,B){var l=b.layoutId;r=R(r);return KQ(x,l,B,c,r,"LAYOUT_TYPE_SURVEY",[new e1(a),v],a.adLayoutLoggingData)})}}; dmg=function(p,x,a,v,c,J,R){if(!RVx(p))return new e("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:p});var d=p.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[KNU(J,x,a,v,function(b){var r=b.slotId;b=R(b);r=ir(c.Z.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",r);var B={layoutId:r,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",G4:"core"},l=new N5(c.U,v);return{layoutId:r,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",z$:new Map,layoutExitNormalTriggers:[l], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([new uW(d)]),Vp:b(B)}})]}; RVx=function(p){p=g.O(p==null?void 0:p.additionalPlayerOverlay,bub);if(!p)return!1;var x=p.slidingMessages;return p.title&&x&&x.length!==0?!0:!1}; Bhg=function(p,x,a,v,c){var J;if((J=p.playerOverlay)==null||!J.instreamSurveyAdRenderer)return function(){return[]}; if(!wax(p))return function(){return new e("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:p})}; var R=p.playerOverlay.instreamSurveyAdRenderer,d=Jm(R);return d<=0?function(){return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:R})}:function(b,r){var B=rtI(b,a,v,function(l){var L=l.slotId; l=r(l);var Y=RK(R);L=ir(c.Z.get(),"LAYOUT_TYPE_SURVEY",L);var h={layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",G4:"core"},D=new N5(c.U,v),H=new aG(c.U,L),f=new dn(c.U,L),m=new LZ1(c.U);return{layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",z$:new Map,layoutExitNormalTriggers:[D,m],layoutExitSkipTriggers:[H],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[f],M6:[],G4:"core",clientMetadata:new Zx([new nq(R),new iW(x),new Dx(d/1E3),new Q6(Y)]),Vp:l(h),adLayoutLoggingData:R.adLayoutLoggingData}}); b=dmg(p,a,B.slotId,v,c,b,r);return b instanceof e?b:[B].concat(g.lf(b))}}; MQQ=function(p,x,a,v,c,J,R){R=R===void 0?!1:R;var d=[];try{var b=[];if(a.renderer.linearAdSequenceRenderer)var r=function(D){D=lax(D.slotId,a,x,c(D),v,J,R);b=D.DGd;return D.cY}; else if(a.renderer.instreamVideoAdRenderer)r=function(D){var H=D.slotId;D=c(D);var f=R,m=a.config.adPlacementConfig,X=LN8(m),E=X.Kc,A=X.xM;X=a.renderer.instreamVideoAdRenderer;var u;if(X==null?0:(u=X.playerOverlay)==null?0:u.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var n=dL(X,f);u=Math.min(E+n.videoLengthSeconds*1E3,A);f=new wP(0,[n.videoLengthSeconds]);A=n.videoLengthSeconds;var co=n.playerVars,LU=n.instreamAdPlayerOverlayRenderer,R8=n.playerOverlayLayoutRenderer, KU=n.adVideoId,x1=Y48(a),mx=n.z$;n=n.t7;var eI=X==null?void 0:X.adLayoutLoggingData;X=X==null?void 0:X.sodarExtensionData;H=ir(x.Z.get(),"LAYOUT_TYPE_MEDIA",H);var xt={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",G4:"core"};return{layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",z$:mx,layoutExitNormalTriggers:[new AK(x.U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([new yJ(v),new Ro(A),new Km(co),new ry(E),new B8(u),LU&& new gb(LU),R8&&new ZD(R8),new iW(m),new Ek(KU),new oD(f),new j_(x1),X&&new b1(X),new ao({current:null}),new Lm({}),new fm(n)].filter(hV8)),Vp:D(xt),adLayoutLoggingData:eI}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var B=jxx(p,v,a.adSlotLoggingData,r);d.push(B);for(var l=g.k(b),L=l.next();!L.done;L=l.next()){var Y=L.value,h=Y(p,c);if(h instanceof e)return h;d.push.apply(d,g.lf(h))}}catch(D){return new e(D,{errorMessage:D.message,AdPlacementRenderer:a,numberOfSurveyRenderers:Ia1(a)})}return d}; Ia1=function(p){p=(p.renderer.linearAdSequenceRenderer||{}).linearAds;return p!=null&&p.length?p.filter(function(x){var a,v;return((a=g.O(x,XZ))==null?void 0:(v=a.playerOverlay)==null?void 0:v.instreamSurveyAdRenderer)!=null}).length:0}; lax=function(p,x,a,v,c,J,R){var d=x.config.adPlacementConfig,b=LN8(d),r=b.Kc,B=b.xM;b=(x.renderer.linearAdSequenceRenderer||{}).linearAds;if(b==null||!b.length)throw new TypeError("Expected linear ads");var l=[],L={gZ:r,vy:0,CLT:l};b=b.map(function(h){return WNI(p,h,L,a,v,d,c,B,R)}).map(function(h,D){D=new wP(D,l); return h(D)}); var Y=b.map(function(h){return h.HY}); return{cY:kYb(a,p,r,Y,d,Y48(x),v,B,J),DGd:b.map(function(h){return h.i3O})}}; WNI=function(p,x,a,v,c,J,R,d,b){var r=dL(g.O(x,XZ),b),B=a.gZ,l=a.vy,L=Math.min(B+r.videoLengthSeconds*1E3,d);a.gZ=L;a.vy++;a.CLT.push(r.videoLengthSeconds);var Y,h,D=(Y=g.O(x,XZ))==null?void 0:(h=Y.playerOverlay)==null?void 0:h.instreamSurveyAdRenderer;if(r.adVideoId==="nPpU29QrbiU"&&D==null)throw new TypeError("Survey slate media has no survey overlay");return function(H){aK(r.playerVars,H);var f,m,X=r.videoLengthSeconds,E=r.playerVars,A=r.z$,u=r.t7,n=r.instreamAdPlayerOverlayRenderer,co=r.playerOverlayLayoutRenderer, LU=r.adVideoId,R8=(f=g.O(x,XZ))==null?void 0:f.adLayoutLoggingData;f=(m=g.O(x,XZ))==null?void 0:m.sodarExtensionData;m=ir(v.Z.get(),"LAYOUT_TYPE_MEDIA",p);var KU={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA",G4:"adapter"};H={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA",z$:A,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"adapter",clientMetadata:new Zx([new yJ(R),new Ro(X),new Km(E),new ry(B),new B8(L),new l1(l),new ao({current:null}), n&&new gb(n),co&&new ZD(co),new iW(J),new Ek(LU),new oD(H),f&&new b1(f),D&&new S_(D),new Lm({}),new fm(u)].filter(hV8)),Vp:c(KU),adLayoutLoggingData:R8};X=Bhg(g.O(x,XZ),J,R,H.layoutId,v);return{HY:H,i3O:X}}}; dL=function(p,x){if(!p)throw new TypeError("Expected instream video ad renderer");if(!p.playerVars)throw new TypeError("Expected player vars in url encoded string");var a=uU(p.playerVars),v=Number(a.length_seconds);if(isNaN(v))throw new TypeError("Expected valid length seconds in player vars");var c=Number(p.trimmedMaxNonSkippableAdDurationMs);v=isNaN(c)?v:Math.min(v,c/1E3);c=p.playerOverlay||{};c=c.instreamAdPlayerOverlayRenderer===void 0?null:c.instreamAdPlayerOverlayRenderer;var J=p.playerOverlay|| {};J=J.playerOverlayLayoutRenderer===void 0?null:J.playerOverlayLayoutRenderer;var R=a.video_id;R||(R=(R=p.externalVideoId)?R:void 0);if(!R)throw new TypeError("Expected valid video id in IVAR");if(x&&v===0){var d;x=(d=Dm8[R])!=null?d:v}else x=v;return{playerVars:a,videoLengthSeconds:x,instreamAdPlayerOverlayRenderer:c,playerOverlayLayoutRenderer:J,adVideoId:R,z$:p.pings?Kx(p.pings):new Map,t7:RC(p.pings)}}; Y48=function(p){p=Number(p.driftRecoveryMs);return isNaN(p)||p<=0?null:p}; LN8=function(p){var x=p.adTimeOffset||{};p=x.offsetEndMilliseconds;x=Number(x.offsetStartMilliseconds);if(isNaN(x))throw new TypeError("Expected valid start offset");p=Number(p);if(isNaN(p))throw new TypeError("Expected valid end offset");return{Kc:x,xM:p}}; Umf=function(p){var x,a=(x=Gr(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:x.current;if(!a)return null;x=Gr(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var v=p.layoutId,c=Gr(p.clientMetadata,"metadata_type_content_cpn"),J=Gr(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),R=Gr(p.clientMetadata,"metadata_type_player_underlay_renderer"),d=Gr(p.clientMetadata,"metadata_type_ad_placement_config"),b=Gr(p.clientMetadata,"metadata_type_video_length_seconds"); var r=wy(p.clientMetadata,"metadata_type_layout_enter_ms")&&wy(p.clientMetadata,"metadata_type_layout_exit_ms")?(Gr(p.clientMetadata,"metadata_type_layout_exit_ms")-Gr(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Xo:v,contentCpn:c,M2:a,nE:x,instreamAdPlayerOverlayRenderer:J,instreamAdPlayerUnderlayRenderer:R,adPlacementConfig:d,videoLengthSeconds:b,Ab:r,inPlayerLayoutId:Gr(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Gr(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; QxN=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h){v=FR(v,"SLOT_TYPE_PLAYER_BYTES");p=Hu1(c,p,R,a,v,b,r);if(p instanceof e)return p;var D;r=(D=Gr(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:D.layoutId;if(!r)return new e("Invalid adNotify layout");x=ThT(r,c,J,a,d,x,b,B,l,L,Y,h,R);return x instanceof e?x:[p].concat(g.lf(x))}; ThT=function(p,x,a,v,c,J,R,d,b,r,B,l,L){a=mmI(x,a,v,J,R,d,b,r,B,l,L);if(a instanceof e)return a;p=S48(x,p,R,c,a);return p instanceof e?p:[].concat(g.lf(p.Vb),[p.ij])}; CIo=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y){x=mmI(p,x,a,c,J,d,b,r,B,l,L,Y);if(x instanceof e)return x;p=faT(p,a,J,R,v,d.Dp,x);return p instanceof e?p:p.Vb.concat(p.ij)}; mmI=function(p,x,a,v,c,J,R,d,b,r,B,l){var L=bL(v,a,r);return L instanceof gy?new e(L):r.W.L().experiments.cO("html5_refactor_in_player_slot_generation")?function(Y){var h=new wP(0,[L.BG]);Y=X$1(x,L.layoutId,L.zX,a,rL(L.playerVars,L.Nd,J,b,h),L.BG,c,h,R(Y),d.get(L.zX.externalVideoId),l);h=[];if(L.zX.playerOverlay.instreamAdPlayerOverlayRenderer){var D=Umf(Y);if(!D)return sE("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,Y),{layout:Y,Vb:[]}; h=[iu1(p,D.contentCpn,D.Xo,function(f){return Bd(x,f.slotId,"core",D,nm(B,f))},D.inPlayerSlotId)].concat(g.lf(h)); if(D.instreamAdPlayerUnderlayRenderer&&lL(r)){var H=D.instreamAdPlayerUnderlayRenderer;h=[o31(p,D.contentCpn,D.Xo,function(f){return tQT(x,f.slotId,H,D.adPlacementConfig,D.Xo,nm(B,f))})].concat(g.lf(h))}}return{layout:Y, Vb:h}}:function(Y){var h=new wP(0,[L.BG]); return{layout:X$1(x,L.layoutId,L.zX,a,rL(L.playerVars,L.Nd,J,b,h),L.BG,c,h,R(Y),d.get(L.zX.externalVideoId),l),Vb:[]}}}; bL=function(p,x,a){if(!p.playerVars)return new gy("No playerVars available in InstreamVideoAdRenderer.");var v,c;if(p.elementId==null||p.playerVars==null||p.playerOverlay==null||((v=p.playerOverlay)==null?void 0:v.instreamAdPlayerOverlayRenderer)==null&&((c=p.playerOverlay)==null?void 0:c.playerOverlayLayoutRenderer)==null||p.pings==null||p.externalVideoId==null)return new gy("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:p});v=uU(p.playerVars);c=Number(v.length_seconds); isNaN(c)&&(c=0,sE("Expected valid length seconds in player vars but got NaN"));if(a.Wm(x.kind==="AD_PLACEMENT_KIND_START")){if(p.layoutId===void 0)return new gy("Expected server generated layout ID in instreamVideoAdRenderer");x=p.layoutId}else x=p.elementId;return{layoutId:x,zX:p,playerVars:v,Nd:p.playerVars,BG:c}}; rL=function(p,x,a,v,c){p.iv_load_policy=v;x=uU(x);if(x.cta_conversion_urls)try{p.cta_conversion_urls=JSON.parse(x.cta_conversion_urls)}catch(J){sE(J)}a.dM&&(p.ctrl=a.dM);a.Gg&&(p.ytr=a.Gg);a.s4&&(p.ytrcc=a.s4);a.isMdxPlayback&&(p.mdx="1");p.vvt&&(p.vss_credentials_token=p.vvt,a.LJ&&(p.vss_credentials_token_type=a.LJ),a.mdxEnvironment&&(p.mdx_environment=a.mdxEnvironment));aK(p,c);return p}; zVz=function(p){var x=new Map;p=g.k(p);for(var a=p.next();!a.done;a=p.next())(a=a.value.renderer.remoteSlotsRenderer)&&a.hostElementId&&x.set(a.hostElementId,a);return x}; LQ=function(p){return p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; w$1=function(p){return p!=null}; NhJ=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h){for(var D=[],H=g.k(p),f=H.next();!f.done;f=H.next())if(f=f.value,!S_o(f)&&!o8f(f)){var m=LQ(f)&&!!f.slotEntryTrigger.beforeContentVideoIdStartedTrigger,X=b.Wm(m),E=E3U(f,r,v,a.cN,X);if(E instanceof e)return E;var A=void 0,u={slotId:f.adSlotMetadata.slotId,slotType:f.adSlotMetadata.slotType,slotPhysicalPosition:(A=f.adSlotMetadata.slotPhysicalPosition)!=null?A:1,G4:"core",slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers, slotExpirationTriggers:E.slotExpirationTriggers},n=g.O(f.fulfillmentContent.fulfilledLayout,wn);if(n){if(!zZ(n))return new e("Invalid PlayerBytesAdLayoutRenderer");A=l&&!(LQ(f)&&f.slotEntryTrigger.beforeContentVideoIdStartedTrigger);E=E.slotFulfillmentTriggers.some(function(co){return co instanceof PK}); X=A?ytg(u,f.adSlotMetadata.triggerEvent,n,a,v,J,r,p,X,L,E,Y):g3I(u,f.adSlotMetadata.triggerEvent,n,x,a,v,c,J,R,d,b,r,p,B,X,f.adSlotMetadata.triggeringSourceLayoutId);if(X instanceof e)return X;E=[];h?E.push(new J6({current:h})):E.push(new J6({current:null}));LQ(f)&&E.push(new t6({Mt:LQ(f)&&!!f.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));A&&E.push(new Lm({}));a.Dp&&E.push(new mT({}));E.push(new i1(m));f=Object.assign({},u,{clientMetadata:new Zx(E),fulfilledLayout:X.layout,adSlotLoggingData:f.adSlotMetadata.adSlotLoggingData}); D.push.apply(D,g.lf(X.Vb));D.push(f)}else if(m=g.O(f.fulfillmentContent.fulfilledLayout,GZ)){if(!mq1(m))return new e("Invalid PlayerUnderlayAdLayoutRenderer");m=ZuU(m,v,a.cN,J,u,f.adSlotMetadata.triggerEvent,f.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof e)return m;f=Object.assign({},u,{clientMetadata:new Zx([]),fulfilledLayout:m,adSlotLoggingData:f.adSlotMetadata.adSlotLoggingData});D.push(f)}else if(m=g.O(f.fulfillmentContent.fulfilledLayout,Cs8)){if(!IyQ(m))return new e("Invalid AboveFeedAdLayoutRenderer"); m=GYJ(m,v,a.cN,J,u,f.adSlotMetadata.triggerEvent,f.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof e)return m;f=Object.assign({},u,{clientMetadata:new Zx([]),fulfilledLayout:m,adSlotLoggingData:f.adSlotMetadata.adSlotLoggingData});D.push(f)}else if(m=g.O(f.fulfillmentContent.fulfilledLayout,Xax)){if(!BP(m.adLayoutMetadata)||!g.O(m.renderingContent,lb))return new e("Invalid BelowPlayerAdLayoutRenderer");m=GYJ(m,v,a.cN,J,u,f.adSlotMetadata.triggerEvent,f.adSlotMetadata.triggeringSourceLayoutId); if(m instanceof e)return m;f=Object.assign({},u,{clientMetadata:new Zx([]),fulfilledLayout:m,adSlotLoggingData:f.adSlotMetadata.adSlotLoggingData});D.push(f)}else if(m=g.O(f.fulfillmentContent.fulfilledLayout,OP)){if(!y8(m))return new e("Invalid PlayerBytesSequenceItemAdLayoutRenderer");m=Ou_(m,v,a.cN,J,u,f.adSlotMetadata.triggerEvent);if(m instanceof e)return m;f=Object.assign({},u,{clientMetadata:new Zx([]),fulfilledLayout:m,adSlotLoggingData:f.adSlotMetadata.adSlotLoggingData});D.push(f)}else return new e("Unable to retrieve a client slot ["+ u.slotType+"] from a given AdSlotRenderer")}return D}; Ou_=function(p,x,a,v,c,J){var R={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,G4:"core"};x=YC(p,x,a);return x instanceof e?x:(a=g.O(p.renderingContent,EP))&&a.pings?Object.assign({},R,{renderingContent:p.renderingContent,z$:Kx(a.pings)},x,{Vp:nm(v,c)(R),clientMetadata:new Zx([new iW(hm(J))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}):new e("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; GYJ=function(p,x,a,v,c,J,R){var d={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,G4:"core"};x=YC(p,x,a);if(x instanceof e)return x;a=[];a.push(new iW(hm(J)));J==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&R!==void 0&&a.push(new VJ(R));return Object.assign({},d,{renderingContent:p.renderingContent,z$:new Map([["impression",AtN(p)]])},x,{Vp:nm(v,c)(d),clientMetadata:new Zx(a),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}; ZuU=function(p,x,a,v,c,J,R){if(p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(R=g.O(p.renderingContent,gn))if(R=g.O(R.sidePanel,TGg)){var d={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,G4:"core"};x=YC(p,x,a);p=x instanceof e?x:Object.assign({},d,{renderingContent:p.renderingContent,z$:new Map([["impression",R.impressionPings||[]],["resume",R.resumePings||[]]])},x,{Vp:nm(v,c)(d),clientMetadata:new Zx([new iW(hm(J))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}else p= new e("DismissablePanelTextPortraitImageRenderer is missing");else p=new e("SqueezebackPlayerSidePanelRenderer is missing");else p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.O(p.renderingContent,Dq8)?(R={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,G4:"core"},x=YC(p,x,a),p=x instanceof e?x:Object.assign({},R,{renderingContent:p.renderingContent,z$:new Map},x,{Vp:nm(v,c)(R),clientMetadata:new Zx([new iW(hm(J))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})): p=new e("CounterfactualRenderer is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?p=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?p=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.O(p.renderingContent,ZU)?(J={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType, G4:"core"},x=YC(p,x,a),p=x instanceof e?x:R?Object.assign({},J,{renderingContent:p.renderingContent,z$:new Map},x,{Vp:nm(v,c)(J),clientMetadata:new Zx([new VJ(R)]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}):new e("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):p=new e("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.O(p.renderingContent,UqT)? (J={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,G4:"core"},x=YC(p,x,a),p=x instanceof e?x:Object.assign({},J,{renderingContent:p.renderingContent,z$:new Map([])},x,{Vp:nm(v,c)(J),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Zx([])})):p=new e("AdsEngagementPanelSectionListViewModel is missing"):p=new e("LayoutType ["+p.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return p}; ytg=function(p,x,a,v,c,J,R,d,b,r,B,l){if((l==null?void 0:l.yE)===void 0||(l==null?void 0:l.T7)===void 0)return new e("Cached ad break range from cue point is missing");var L=YC(a,c,v.cN);if(L instanceof e)return L;L={layoutExitMuteTriggers:[],layoutExitNormalTriggers:L.layoutExitNormalTriggers,layoutExitSkipTriggers:[],M6:[],layoutExitUserInputSubmittedTriggers:[]};if(g.O(a.renderingContent,XZ))return p=PI8(p,x,a,L,c,J,d,b,v.cN,R,l.yE,l.T7),p instanceof e?p:p.VV===void 0?new e("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:p.layout,Vb:[p.VV]};var Y=g.O(a.renderingContent,fn);if(Y){if(!BP(a.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!Cn(Y))return new e("Invalid sequential layout");Y=Y.sequentialLayouts.map(function(h){return h.playerBytesAdLayoutRenderer}); p=q4_(p,x,a,L,Y,c,v,J,R,b,d,r,l.yE,l.T7,B);return p instanceof e?p:{layout:p.B2,Vb:p.Vb}}return new e("Not able to convert a sequential layout")}; q4_=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h){var D=n31(c,L,Y);if(D instanceof e)return D;var H=[],f=[];D=g.k(D);for(var m=D.next();!m.done;m=D.next()){var X=m.value;m=p;var E=c[X.vy],A=X,u=x;X=J;var n=R,co=d,LU=b,R8=r,KU=B,x1=jy(E);if(x1 instanceof e)m=x1;else{var mx={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,G4:"adapter"};A=eVI(u,E,A,X);A instanceof e?m=A:(m=Object.assign({},mx,IK,{z$:x1,renderingContent:E.renderingContent,clientMetadata:new Zx(A),Vp:nm(co,m)(mx), adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData}),m=(E=Mu(KU,m,X,n.cN,co,LU,R8,void 0,!0))?E instanceof e?E:{layout:m,VV:E}:new e("Expecting associatedInPlayerSlot"))}if(m instanceof e)return m;H.push(m.layout);f.push(m.VV)}c={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,G4:"core"};x=[new j_(Number(a.driftRecoveryMs)),new ry(L),new B8(Y),new iW(hm(x)),new XP(l),new Lm({})];h&&x.push(new zr({}));return{B2:Object.assign({},c,v,{mz:H,z$:new Map,clientMetadata:new Zx(x), Vp:nm(d,p)(c)}),Vb:f}}; PI8=function(p,x,a,v,c,J,R,d,b,r,B,l){if(!zZ(a))return new e("Invalid PlayerBytesAdLayoutRenderer");var L=jy(a);if(L instanceof e)return L;var Y={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,G4:"core"},h=g.O(a.renderingContent,XZ);if(!h)return new e("Invalid rendering content for DAI media layout");h=dL(h,!1);B={rA:h,vy:0,gZ:B,l6:Math.min(B+h.videoLengthSeconds*1E3,l),O$:new wP(0,[h.videoLengthSeconds])};var D;l=(D=Number(a.driftRecoveryMs))!=null?D:void 0;x=eVI(x, a,B,c,l);if(x instanceof e)return x;p=Object.assign({},Y,v,{z$:L,renderingContent:a.renderingContent,clientMetadata:new Zx(x),Vp:nm(J,p)(Y),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});return(c=Mu(R,p,c,b,J,r,d,void 0,!0))?c instanceof e?c:{layout:p,VV:c}:new e("Expecting associatedInPlayerSlot")}; g3I=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D){var H=YC(a,J,c.cN);if(H instanceof e)return H;if(g.O(a.renderingContent,XZ)){b=uX1([a],c,b);if(b instanceof e)return b;if(b.length!==1)return new e("Only expected one media layout.");p=VQo(p,x,a,H,b[0],void 0,"core",v,J,R,d,r,L,Y,h,c.cN,l,void 0,D);return p instanceof e?p:{layout:p.layout,Vb:p.VV?[p.VV]:[]}}var f=g.O(a.renderingContent,fn);if(f){if(!BP(a.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!Cn(f))return new e("Invalid sequential layout"); f=f.sequentialLayouts.map(function(m){return m.playerBytesAdLayoutRenderer}); p=FNf(p,x,a.adLayoutMetadata,H,f,v,J,c,b,R,d,r,B,l,h,L,Y,D);return p instanceof e?p:{layout:p.B2,Vb:p.Vb}}return new e("Not able to convert a sequential layout")}; FNf=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D,H,f){var m=new wb({current:null}),X=uX1(c,d,b);if(X instanceof e)return X;b=[];for(var E=[],A=void 0,u=0;u0&&(u.push(f),u.push(new zE(A.adPodSkipTarget)));(J=r.get(A.externalVideoId))&&u.push(new kM(J));J=u}else J=new e("Invalid vod media renderer")}if(J instanceof e)return J;p=Object.assign({},R,v,{z$:X,renderingContent:a.renderingContent,clientMetadata:new Zx(J),Vp:nm(B,p)(R),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});a=g.O(a.renderingContent,XZ);if(!a||!St(a))return new e("Invalid meida renderer");l=vd(l,a.externalVideoId);l.instreamVideoAdRenderer=a;l.nU="AD_PLACEMENT_KIND_START";return Y?(b=Mu(L,p,b,D,B,H,h,f,!1),b instanceof e?b:$s8(p.layoutId,L)&&b?{layout:Object.assign({},p,{clientMetadata:new Zx(J.concat(new Ns(b)))})}:{layout:p,VV:b}): {layout:p}}; pTg=function(p,x,a,v,c){if(!zZ(x))return new e("Invalid PlayerBytesAdLayoutRenderer");var J=g.O(x.renderingContent,Pn);if(!J||J.durationMilliseconds===void 0)return new e("Invalid endcap renderer");var R={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,G4:"adapter"};v=[new U7(J.durationMilliseconds),new Q6({impressionCommands:void 0,abandonCommands:J.abandonCommands?[{commandExecutorCommand:J.abandonCommands}]:void 0,completeCommands:J.completionCommands}),new iW(v), new pm("LAYOUT_TYPE_ENDCAP")];if(c){v.push(new to(c.O$.adPodIndex-1));v.push(new l1(c.O$.adPodIndex));var d;v.push(new zE((d=c.adPodSkipTarget)!=null?d:-1))}return Object.assign({},R,IK,{renderingContent:x.renderingContent,clientMetadata:new Zx(v),z$:J.skipPings?new Map([["skip",J.skipPings]]):new Map,Vp:nm(a,p)(R),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData})}; Mu=function(p,x,a,v,c,J,R,d,b){p=p.filter(function(l){return l.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&l.adSlotMetadata.triggeringSourceLayoutId===x.layoutId}); if(p.length!==0){if(p.length!==1)return new e("Invalid InPlayer slot association for the given PlayerBytes layout");p=p[0];R=E3U(p,J,a,v,R);if(R instanceof e)return R;var r;J={slotId:p.adSlotMetadata.slotId,slotType:p.adSlotMetadata.slotType,slotPhysicalPosition:(r=p.adSlotMetadata.slotPhysicalPosition)!=null?r:1,G4:"core",slotEntryTrigger:R.slotEntryTrigger,slotFulfillmentTriggers:R.slotFulfillmentTriggers,slotExpirationTriggers:R.slotExpirationTriggers};r=g.O(p.fulfillmentContent.fulfilledLayout, fyI);if(!r||!k3_(r))return new e("Invalid InPlayerAdLayoutRenderer");R={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,G4:"core"};a=YC(r,a,v);if(a instanceof e)return a;v=[];var B=r.adLayoutMetadata.layoutType;b&&v.push(new Lm({}));if(B==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")v.push.apply(v,g.lf(aDI(p.adSlotMetadata.triggerEvent,x)));else if(B==="LAYOUT_TYPE_ENDCAP"||B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){v.push(new iW(hm(p.adSlotMetadata.triggerEvent))); if(B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new e("Cannot parse endcap layout since AdUxReadyApi is not provided");d&&v.push(d)}else return new e("Not able to parse an SDF InPlayer layout");c=Object.assign({},R,a,{renderingContent:r.renderingContent,z$:new Map,Vp:nm(c,J)(R),clientMetadata:new Zx(v),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},J,{fulfilledLayout:c,clientMetadata:new Zx([])})}}; aDI=function(p,x){var a=[];a.push(new iW(hm(p)));a.push(new VJ(x.layoutId));(p=Gr(x.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&a.push(new ao(p));(p=Gr(x.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&a.push(new wb(p));(p=Gr(x.clientMetadata,"metadata_type_remote_slots_data"))&&a.push(new kM(p));(p=Gr(x.clientMetadata,"metadata_type_ad_next_params"))&&a.push(new HT(p));(p=Gr(x.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&a.push(new TE(p));(p= Gr(x.clientMetadata,"metadata_type_ad_pod_info"))&&a.push(new oD(p));(x=Gr(x.clientMetadata,"metadata_type_ad_video_id"))&&a.push(new Ek(x));return a}; xsg=function(p,x,a,v,c,J){function R(r){return Wd(x,r)} var d=v.pk.inPlayerSlotId,b={layoutId:v.pk.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",G4:"core"};a={slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:new G$(R,p),slotFulfillmentTriggers:[new sP(R,d)],slotExpirationTriggers:[new vP(R,d),new xv(R,a)]};p=Object.assign({},b,{layoutExitNormalTriggers:[new N5(R,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],z$:new Map,clientMetadata:new Zx([new PT(v.pk), new iW(v.adPlacementConfig),c]),Vp:nm(J,a)(b),adLayoutLoggingData:v.pk.adLayoutLoggingData});return Object.assign({},a,{clientMetadata:new Zx([new Io(p)])})}; $s8=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next())if(a=a.value,a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var v=g.O(a.fulfillmentContent.fulfilledLayout,GZ);if(v&&(v=g.O(v.renderingContent,gn))&&v.associatedPlayerBytesLayoutId===p)return a}}; E3U=function(p,x,a,v,c){var J=sDT($C(p.slotEntryTrigger,a,v),c,p,x);if(J instanceof e)return J;for(var R=[],d=g.k(p.slotFulfillmentTriggers),b=d.next();!b.done;b=d.next()){b=$C(b.value,a,v);if(b instanceof e)return b;R.push(b)}R=vnN(R,c,p,x);x=[];p=g.k(p.slotExpirationTriggers);for(c=p.next();!c.done;c=p.next()){c=$C(c.value,a,v);if(c instanceof e)return c;x.push(c)}return{slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:x}}; sDT=function(p,x,a,v){return x&&a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p instanceof ER?new z$(function(c){return Wd(v,c)},a.adSlotMetadata.slotId):p}; vnN=function(p,x,a,v){return x&&a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?p.map(function(c){return c instanceof sP?new RG(function(J){return Wd(v,J)},a.adSlotMetadata.slotId):c}):p}; YC=function(p,x,a){for(var v=[],c=g.k(p.layoutExitNormalTriggers||[]),J=c.next();!J.done;J=c.next()){J=$C(J.value,x,a);if(J instanceof e)return J;v.push(J)}c=[];J=g.k(p.layoutExitSkipTriggers||[]);for(var R=J.next();!R.done;R=J.next()){R=$C(R.value,x,a);if(R instanceof e)return R;c.push(R)}J=[];R=g.k(p.layoutExitMuteTriggers||[]);for(var d=R.next();!d.done;d=R.next()){d=$C(d.value,x,a);if(d instanceof e)return d;J.push(d)}R=[];p=g.k(p.layoutExitUserInputSubmittedTriggers||[]);for(d=p.next();!d.done;d= p.next()){d=$C(d.value,x,a);if(d instanceof e)return d;R.push(d)}return{layoutExitNormalTriggers:v,layoutExitSkipTriggers:c,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:R,M6:[]}}; jy=function(p){var x=g.O(p.renderingContent,XZ);if(x==null?0:x.pings)return Kx(x.pings);p=g.O(p.renderingContent,Pn);return(p==null?0:p.skipPings)?new Map([["skip",p.skipPings]]):new Map}; eVI=function(p,x,a,v,c){x=g.O(x.renderingContent,XZ);if(!x)return new e("Invalid rendering content for DAI media layout");p=[new yJ(v),new Ro(a.rA.videoLengthSeconds),new Km(a.rA.playerVars),new ry(a.gZ),new B8(a.l6),new l1(a.vy),new iW(hm(p)),new Ek(a.rA.adVideoId),new oD(a.O$),x.sodarExtensionData&&new b1(x.sodarExtensionData),new ao({current:null}),new Lm({}),new fm(RC(x.pings))].filter(w$1);c!==void 0&&p.push(new j_(c));return p}; n31=function(p,x,a){p=p.map(function(b){return dL(g.O(b.renderingContent,XZ),!1)}); var v=p.map(function(b){return b.videoLengthSeconds}),c=v.map(function(b,r){return new wP(r,v)}),J=x,R=a,d=[]; p.forEach(function(b,r){R=Math.min(J+b.videoLengthSeconds*1E3,a);aK(b.playerVars,c[r]);d.push({rA:b,gZ:J,l6:R,vy:r,O$:c[r]});J=R}); return d}; uX1=function(p,x,a){for(var v=[],c=g.k(p),J=c.next();!J.done;J=c.next())if(J=g.O(J.value.renderingContent,XZ)){if(!St(J))return new e("Invalid vod media renderer");v.push(coo(J))}c=v.map(function(l){return l.BG}); J=[];for(var R=0,d=0;d0?R8:-1;else if(mx= g.O(x1,Pn)){x1=hSJ(p,x,a,mx,J,D,d,n,R8);if(x1 instanceof e){Y=x1;break a}x1=x1(L);H.push(x1.D9);f=[].concat(g.lf(x1.UR),g.lf(f));m=[].concat(g.lf(x1.U5),g.lf(m));x1.VV&&(LU=[x1.VV].concat(g.lf(LU)))}else if(mx=g.O(x1,oG)){if(Y===void 0){Y=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:mx});break a}x1=M11(p,x,a,J,mx,u,d,Y,D,Cj(B,"supports_multi_step_on_desktop"));if(x1 instanceof e){Y=x1;break a}x1=x1(L);H.push(x1.D9);x1.VV&&LU.push(x1.VV); f=[].concat(g.lf(x1.UR),g.lf(f));m=[].concat(g.lf(x1.U5),g.lf(m));X=[].concat(g.lf(x1.rY),g.lf(X));E=[].concat(g.lf(x1.fX),g.lf(E));A=[u].concat(g.lf(A))}else if(x1=g.O(x1,tR)){x1=WJx(p,x,a,J,x1,u,d,D);if(x1 instanceof e){Y=x1;break a}x1=x1(L);H.push(x1.D9);x1.VV&&LU.push(x1.VV);m=[].concat(g.lf(x1.U5),g.lf(m))}else{Y=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}Y={mz:H,layoutExitSkipTriggers:f,layoutExitUserInputSubmittedTriggers:X,M6:E,layoutExitMuteTriggers:m,HA:A,Vb:LU}}}else a:if(D= SkU(v,a,B),D instanceof e)Y=D;else{H=0;f=[];m=[];X=[];E=[];A=[];u=[];n=new s7({current:null});co=new wb({current:null});LU=!1;KU=[];R8=-1;h=g.k(v);for(x1=h.next();!x1.done;x1=h.next())if(x1=x1.value,g.O(x1,ib)){x1=jD1(x,a,g.O(x1,ib),d);if(x1 instanceof e){Y=x1;break a}x1=x1(L);f.push(x1.D9);m=[].concat(g.lf(x1.UR),g.lf(m));X=[].concat(g.lf(x1.U5),g.lf(X));x1.VV&&(KU=[x1.VV].concat(g.lf(KU)))}else if(g.O(x1,XZ)){R8=bL(g.O(x1,XZ),a,B);if(R8 instanceof gy){Y=new e(R8);break a}x1=new wP(H,D);x1=fDQ(x, R8.layoutId,R8.zX,a,rL(R8.playerVars,R8.Nd,R,r,x1),R8.BG,J,x1,d(L),co,b.get(R8.zX.externalVideoId),void 0,l);H++;f.push(x1.D9);m=[].concat(g.lf(x1.UR),g.lf(m));X=[].concat(g.lf(x1.U5),g.lf(X));LU||(u.push(co),LU=!0);R8=(R8=R8.zX.adPodSkipTarget)&&R8>0?R8:-1}else if(g.O(x1,Pn)){x1=hSJ(p,x,a,g.O(x1,Pn),J,H,d,co,R8);if(x1 instanceof e){Y=x1;break a}x1=x1(L);f.push(x1.D9);m=[].concat(g.lf(x1.UR),g.lf(m));X=[].concat(g.lf(x1.U5),g.lf(X));x1.VV&&(KU=[x1.VV].concat(g.lf(KU)))}else if(g.O(x1,oG)){if(Y=== void 0){Y=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.O(x1,oG)});break a}x1=M11(p,x,a,J,g.O(x1,oG),n,d,Y,H,Cj(B,"supports_multi_step_on_desktop"));if(x1 instanceof e){Y=x1;break a}x1=x1(L);f.push(x1.D9);x1.VV&&KU.push(x1.VV);m=[].concat(g.lf(x1.UR),g.lf(m));X=[].concat(g.lf(x1.U5),g.lf(X));E=[].concat(g.lf(x1.rY),g.lf(E));A=[].concat(g.lf(x1.fX),g.lf(A));u=[n].concat(g.lf(u))}else if(g.O(x1,tR)){x1=WJx(p,x,a,J,g.O(x1,tR),n,d,H);if(x1 instanceof e){Y=x1;break a}x1=x1(L);f.push(x1.D9);x1.VV&&KU.push(x1.VV);X=[].concat(g.lf(x1.U5),g.lf(X))}else{Y=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}Y={mz:f,layoutExitSkipTriggers:m,layoutExitUserInputSubmittedTriggers:E,M6:A,layoutExitMuteTriggers:X,HA:u,Vb:KU}}Y instanceof e?L=Y:(A=L.slotId,D=Y.mz,H=Y.layoutExitSkipTriggers,f=Y.layoutExitMuteTriggers,m=Y.layoutExitUserInputSubmittedTriggers,X=Y.HA,L=d(L),E=c?c.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",A=c?c.layoutId: ir(x.Z.get(),E,A),u={layoutId:A,layoutType:E,G4:"core"},L={layout:{layoutId:A,layoutType:E,z$:new Map,layoutExitNormalTriggers:[new pn(x.U,A)],layoutExitSkipTriggers:H,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:m,M6:[],G4:"core",clientMetadata:new Zx([new v8(D)].concat(g.lf(X))),Vp:L(u)},Vb:Y.Vb});return L}}; SkU=function(p,x,a){var v=[];p=g.k(p);for(var c=p.next();!c.done;c=p.next())if(c=c.value,g.O(c,XZ)){c=bL(g.O(c,XZ),x,a);if(c instanceof gy)return new e(c);v.push(c.BG)}return v}; XT1=function(p,x,a,v,c,J,R,d){if(!zR1(a,d===void 0?!1:d))return new e("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:a});var b=Jm(a);if(b<=0)return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:a});var r=new s7({current:null}),B=Jtb(p,x,a,r,v,J,R);return CWT(p,v,J,b,c,function(l,L){var Y=l.slotId,h=RK(a);l=R(l);var D,H=(D=Hd(x,v,a.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?D: ir(x.Z.get(),"LAYOUT_TYPE_MEDIA_BREAK",Y);Y={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",G4:"core"};D=B(H,L);var f=Gr(D.clientMetadata,"metadata_type_fulfilled_layout");f||sE("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");h=[new iW(v),new U7(b),new Q6(h),r];f&&h.push(new pm(f.layoutType));return{wOO:{layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",z$:new Map,layoutExitNormalTriggers:[new pn(x.U,H)],layoutExitSkipTriggers:[new aG(x.U, L.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new dn(x.U,L.layoutId)],M6:[],G4:"core",clientMetadata:new Zx(h),Vp:l(Y)},JJ:D}})}; iqU=function(p){if(!yZg(p))return!1;var x=g.O(p.adVideoStart,fQ);return x?g.O(p.linearAd,XZ)&&Q8(x)?!0:(sE("Invalid Sandwich with notify"),!1):!1}; on_=function(p){if(p.linearAds==null)return!1;p=g.O(p.adStart,fQ);return p?Q8(p)?!0:(sE("Invalid LASR with notify"),!1):!1}; t1I=function(p){if(!E81(p))return!1;p=g.O(p.adStart,fQ);return p?Q8(p)?!0:(sE("Invalid LASR with notify"),!1):!1}; CQ=function(p,x,a,v,c,J,R,d,b,r){this.B=p;this.Z=x;this.U=a;this.s7=v;this.E8=c;this.j=J;this.SA=R;this.Q4=d;this.AU=b;this.loadPolicy=r===void 0?1:r}; pQ=function(p,x,a,v,c,J,R,d,b,r,B){var l=[];if(x.length===0&&v.length===0&&a.length===0)return l;x=x.filter(mE);var L=a.filter(ibI),Y=v.filter(mE),h=new Map,D=zVz(x),H=a.some(function(xt){var jj;return(xt==null?void 0:(jj=xt.adSlotMetadata)==null?void 0:jj.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),f=a.some(function(xt){var jj; return(xt==null?void 0:(jj=xt.adSlotMetadata)==null?void 0:jj.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),m=a.some(function(xt){var jj; return(xt==null?void 0:(jj=xt.adSlotMetadata)==null?void 0:jj.slotType)==="SLOT_TYPE_IN_PLAYER"}),X=a.some(function(xt){var jj,KG; return(xt==null?void 0:(jj=xt.adSlotMetadata)==null?void 0:jj.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(xt==null?void 0:(KG=xt.adSlotMetadata)==null?void 0:KG.slotType)==="SLOT_TYPE_ABOVE_FEED"}); a=a.some(function(xt){var jj;return(xt==null?void 0:(jj=xt.adSlotMetadata)==null?void 0:jj.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(H||f||m||X||a)r=NhJ(L,x,d,c,D,p.E8.get(),p.loadPolicy,h,p.s7.get(),p.B.get(),m,R,b,r,B),r instanceof e?sE(r,void 0,void 0,{contentCpn:c}):l.push.apply(l,g.lf(r));r=g.k(x);for(B=r.next();!B.done;B=r.next())B=B.value,a=zS1(p,h,B,c,J,R,H,d,D,b,L),a instanceof e?sE(a,void 0,void 0,{renderer:B.renderer,config:B.config.adPlacementConfig,kind:B.config.adPlacementConfig.kind,contentCpn:c,daiEnabled:R}):l.push.apply(l,g.lf(a));wTf(p.s7.get())||(J=En1(p,Y,c,d,D,h),l.push.apply(l,g.lf(J)));if(p.j===null|| R&&!d.Bz){var E,A,u;p=d.Dp&&x.length===1&&((E=x[0].config)==null?void 0:(A=E.adPlacementConfig)==null?void 0:A.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((u=x[0].renderer)==null?void 0:u.adBreakServiceRenderer);if(!l.length&&!p){var n,co,LU,R8;sE("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":x.length,contentCpn:c,"first APR kind":(n=x[0])==null?void 0:(co=n.config)==null?void 0:(LU=co.adPlacementConfig)==null?void 0:LU.kind,renderer:(R8= x[0])==null?void 0:R8.renderer})}return l}E=v.filter(mE);l.push.apply(l,g.lf(sx_(h,E,p.Z.get(),p.j,c,H)));if(!l.length){var KU,x1,mx,eI;sE("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":x.length,contentCpn:c,daiEnabled:R.toString(),"first APR kind":(KU=x[0])==null?void 0:(x1=KU.config)==null?void 0:(mx=x1.adPlacementConfig)==null?void 0:mx.kind,renderer:(eI=x[0])==null?void 0:eI.renderer})}return l}; En1=function(p,x,a,v,c,J){function R(L){return nm(p.E8.get(),L)} var d=[];x=g.k(x);for(var b=x.next();!b.done;b=x.next()){b=b.value;var r=b.renderer,B=r.sandwichedLinearAdRenderer,l=r.linearAdSequenceRenderer;B&&iqU(B)?(sE("Found AdNotify with SandwichedLinearAdRenderer"),l=g.O(B.adVideoStart,fQ),B=g.O(B.linearAd,XZ),s5(J,r,b.config.adPlacementConfig.kind),r=void 0,l=ThT((r=l)==null?void 0:r.layout.layoutId,p.Z.get(),p.U.get(),b.config.adPlacementConfig,b.adSlotLoggingData,B,a,v,R,c,p.loadPolicy,p.s7.get(),p.E8.get()),l instanceof e?sE(l):d.push.apply(d,g.lf(l))): l&&(!l.adLayoutMetadata&&on_(l)||l.adLayoutMetadata&&t1I(l))&&(sE("Found AdNotify with LinearAdSequenceRenderer"),s5(J,r,b.config.adPlacementConfig.kind),r=void 0,B=kET((r=g.O(l.adStart,fQ))==null?void 0:r.layout.layoutId,p.Z.get(),p.U.get(),b.config.adPlacementConfig,b.adSlotLoggingData,l.linearAds,BP(l.adLayoutMetadata)?l.adLayoutMetadata:void 0,a,v,R,c,p.loadPolicy,p.s7.get()),B instanceof e?sE(B):d.push.apply(d,g.lf(B)))}return d}; zS1=function(p,x,a,v,c,J,R,d,b,r,B){function l(f){return nm(p.E8.get(),f)} var L=a.renderer,Y=a.config.adPlacementConfig,h=Y.kind,D=a.adSlotLoggingData,H=d.Bz&&h==="AD_PLACEMENT_KIND_START";H=J&&!H;if(L.adsEngagementPanelRenderer!=null)return cd(x,a.elementId,h,L.adsEngagementPanelRenderer.isContentVideoEngagementPanel,L.adsEngagementPanelRenderer.adVideoId,L.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.adsEngagementPanelRenderer;f=nm(p.E8.get(),f);return XL(A,u,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new DD(n),m,X,n.impressionPings,f,L.adsEngagementPanelRenderer.adLayoutLoggingData,E)}),[]; if(L.adsEngagementPanelLayoutViewModel)return cd(x,a.elementId,h,L.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,L.adsEngagementPanelLayoutViewModel.adVideoId,L.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.adsEngagementPanelLayoutViewModel;f=nm(p.E8.get(),f);return iL(A,u,"LAYOUT_TYPE_PANEL",new Uk(n),m,X,f,L.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,E)}),[]; if(L.actionCompanionAdRenderer!=null){if(L.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return FZJ(p.Z.get(),p.j,p.U.get(),L.actionCompanionAdRenderer,Y,D,v,l);cd(x,a.elementId,h,L.actionCompanionAdRenderer.isContentVideoCompanion,L.actionCompanionAdRenderer.adVideoId,L.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.actionCompanionAdRenderer;f=nm(p.E8.get(),f);return XL(A,u,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new WT(n),m,X,n.impressionPings,f,L.actionCompanionAdRenderer.adLayoutLoggingData,E)})}else if(L.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(L.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return p$I(p.Z.get(),p.j,p.U.get(),L.topBannerImageTextIconButtonedLayoutViewModel,Y,D,v,l); cd(x,a.elementId,h,L.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,L.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,L.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.topBannerImageTextIconButtonedLayoutViewModel;f=nm(p.E8.get(),f);return iL(A,u,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new kn(n),m,X,f,L.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,E)})}else if(L.imageCompanionAdRenderer)cd(x, a.elementId,h,L.imageCompanionAdRenderer.isContentVideoCompanion,L.imageCompanionAdRenderer.adVideoId,L.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.imageCompanionAdRenderer; f=nm(p.E8.get(),f);return XL(A,u,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mJ(n),m,X,n.impressionPings,f,L.imageCompanionAdRenderer.adLayoutLoggingData,E)}); else if(L.bannerImageLayoutViewModel)cd(x,a.elementId,h,L.bannerImageLayoutViewModel.isContentVideoCompanion,L.bannerImageLayoutViewModel.adVideoId,L.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.bannerImageLayoutViewModel;f=nm(p.E8.get(),f);return iL(A,u,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new S1(n),m,X,f,L.bannerImageLayoutViewModel.adLayoutLoggingData,E)}); else if(L.shoppingCompanionCarouselRenderer)cd(x,a.elementId,h,L.shoppingCompanionCarouselRenderer.isContentVideoCompanion,L.shoppingCompanionCarouselRenderer.adVideoId,L.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,Y,D,function(f,m,X,E){var A=p.U.get(),u=f.slotId,n=L.shoppingCompanionCarouselRenderer;f=nm(p.E8.get(),f);return XL(A,u,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new fq(n),m,X,n.impressionPings,f,L.shoppingCompanionCarouselRenderer.adLayoutLoggingData,E)}); else if(L.adBreakServiceRenderer){if(!u_U(a))return[];if(h==="AD_PLACEMENT_KIND_PAUSE")return eRo(p.Z.get(),Y,D,a.renderer.adBreakServiceRenderer,v);if(h!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&h!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return n81(p.Z.get(),Y,D,a.renderer.adBreakServiceRenderer,v,c,J);d.Dp||sE("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:h,adPlacementConfig:Y,daiEnabledForContentVideo:String(J),isServedFromLiveInfra:String(d.Dp),clientPlaybackNonce:d.clientPlaybackNonce}); if(h==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!p.SA)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!p.AU)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");p.AU.mI({adPlacementRenderer:a,contentCpn:v,cN:c});c=p.SA.get().getCurrentTimeSec(1,!1);return yoU(p.Z.get(),a.renderer.adBreakServiceRenderer,Y,c,v,D,J)}if(!p.Q4)return new e("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); p.Q4.mI({adPlacementRenderer:a,contentCpn:v,cN:c})}else{if(L.clientForecastingAdRenderer)return dsb(p.Z.get(),p.U.get(),Y,D,L.clientForecastingAdRenderer,v,c,l);if(L.invideoOverlayAdRenderer)return lDf(p.Z.get(),p.U.get(),Y,D,L.invideoOverlayAdRenderer,v,c,l);if(L.instreamAdPlayerOverlayRenderer)return ro_(p.Z.get(),p.U.get(),Y,D,L.instreamAdPlayerOverlayRenderer,v,l);if((L.linearAdSequenceRenderer||L.instreamVideoAdRenderer)&&H)return MQQ(p.Z.get(),p.U.get(),a,v,l,r,!p.s7.get().W.L().D("html5_override_ad_video_length_killswitch")); if(L.linearAdSequenceRenderer&&!H){if(R)return[];s5(x,L,h);if(L.linearAdSequenceRenderer.adLayoutMetadata){if(!E81(L.linearAdSequenceRenderer))return new e("Received invalid LinearAdSequenceRenderer.")}else if(L.linearAdSequenceRenderer.linearAds==null)return new e("Received invalid LinearAdSequenceRenderer.");if(g.O(L.linearAdSequenceRenderer.adStart,fQ)){sE("Found AdNotify in LinearAdSequenceRenderer");a=g.O(L.linearAdSequenceRenderer.adStart,fQ);if(!MbI(a))return new e("Invalid AdMessageRenderer."); J=L.linearAdSequenceRenderer.linearAds;return Dsb(p.B.get(),p.Z.get(),p.U.get(),p.E8.get(),Y,D,a,BP(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,J,v,c,d,l,b,p.loadPolicy,p.s7.get())}return mso(p.Z.get(),p.U.get(),Y,D,L.linearAdSequenceRenderer.linearAds,BP(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,v,c,d,l,b,p.loadPolicy,p.s7.get(),B)}if(!L.remoteSlotsRenderer||J){if(L.instreamVideoAdRenderer&& !H){if(R)return[];s5(x,L,h);return CIo(p.Z.get(),p.U.get(),Y,D,L.instreamVideoAdRenderer,v,c,d,l,b,p.loadPolicy,p.s7.get(),p.E8.get(),B)}if(L.instreamSurveyAdRenderer)return XT1(p.Z.get(),p.U.get(),L.instreamSurveyAdRenderer,Y,D,v,l,Cj(p.s7.get(),"supports_multi_step_on_desktop"));if(L.sandwichedLinearAdRenderer!=null)return yZg(L.sandwichedLinearAdRenderer)?g.O(L.sandwichedLinearAdRenderer.adVideoStart,fQ)?(sE("Found AdNotify in SandwichedLinearAdRenderer"),a=g.O(L.sandwichedLinearAdRenderer.adVideoStart, fQ),MbI(a)?(J=g.O(L.sandwichedLinearAdRenderer.linearAd,XZ))?QxN(a,J,Y,p.B.get(),p.Z.get(),p.U.get(),p.E8.get(),D,v,c,d,l,b,p.loadPolicy,p.s7.get()):new e("Missing IVAR from Sandwich"):new e("Invalid AdMessageRenderer.")):mso(p.Z.get(),p.U.get(),Y,D,[L.sandwichedLinearAdRenderer.adVideoStart,L.sandwichedLinearAdRenderer.linearAd],void 0,v,c,d,l,b,p.loadPolicy,p.s7.get()):new e("Received invalid SandwichedLinearAdRenderer.");if(L.videoAdTrackingRenderer!=null)return RS8(p.Z.get(),p.U.get(),L.videoAdTrackingRenderer, Y,D,v,c,d.nT,l)}}return[]}; oK=function(p,x,a,v,c,J,R,d){g.y.call(this);var b=this;this.Z=p;this.j=x;this.QV=v;this.SA=c;this.s7=J;this.Dt=R;this.k0=d;this.U=null;a.get().addListener(this);this.addOnDisposeCallback(function(){a.b$()||a.get().removeListener(b)}); v.get().addListener(this);this.addOnDisposeCallback(function(){v.b$()||v.get().removeListener(b)})}; wL=function(p,x,a){var v=p.SA.get().getCurrentTimeSec(1,!1);p.s7.get().W.L().qZ()&&Yb(p.Dt.get(),"sdai","onopp.1;evt."+a.event+";start."+a.startSecs.toFixed(3)+";d."+a.uc.toFixed(3));Vw(p.Z.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var c=p.j.get(),J=x.adPlacementRenderer.renderer.adBreakServiceRenderer,R=x.contentCpn,d=x.adPlacementRenderer.adSlotLoggingData;tm(p.s7.get());var b=p.Dt;var r=c.s7.get();r=g.e_(r.W.L().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var B=c.s7.get();var l=g.e_(B.W.L().experiments,"min_prefetch_offset_sec_for_livestream_optimization");B=a.startSecs*1E3;B={NE:new IR(B,B+a.uc*1E3),y5:!1,cueProcessedMs:v*1E3};var L=a.startSecs+a.uc;if(v===0)B.bY=new IR(0,L*1E3);else{l=a.startSecs-l;var Y=l-v;B.bY=Y<=0?new IR(l*1E3,L*1E3):new IR(Math.floor(v+Math.random()*Math.min(Y,r))*1E3,L*1E3)}J=xC(c,J,R,B,d,[new c8(a)]);zH(c.s7.get())&&Yb(b.get(),"abrsm","cpi."+a.identifier+";cps."+a.startSecs+";cpd."+a.uc+";cts."+v+";rbf."+B.bY.start);b.get().W.Jv(a.startSecs- v,B.bY.start/1E3-v);return[J]})}; E5=function(p){var x,a=(x=Gr(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:x.current;if(!a)return null;x=Gr(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var v=p.layoutId,c=Gr(p.clientMetadata,"metadata_type_content_cpn"),J=Gr(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),R=Gr(p.clientMetadata,"metadata_type_player_overlay_layout_renderer"),d=Gr(p.clientMetadata,"metadata_type_player_underlay_renderer"),b=Gr(p.clientMetadata, "metadata_type_ad_placement_config"),r=Gr(p.clientMetadata,"metadata_type_video_length_seconds");var B=wy(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Gr(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):wy(p.clientMetadata,"metadata_type_layout_enter_ms")&&wy(p.clientMetadata,"metadata_type_layout_exit_ms")?(Gr(p.clientMetadata,"metadata_type_layout_exit_ms")-Gr(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Xo:v,contentCpn:c,M2:a,nE:x,instreamAdPlayerOverlayRenderer:J, playerOverlayLayoutRenderer:R,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:b,videoLengthSeconds:r,Ab:B,inPlayerLayoutId:Gr(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Gr(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Zqx=function(p,x){return gno(p,x)}; GE1=function(p,x){x=gno(p,x);if(!x)return null;var a;x.Ab=(a=Gr(p.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:a.adBreakRemainingLengthSeconds;return x}; gno=function(p,x){var a,v=(a=Gr(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!v)return null;a=Rax(p,x);return{Ly:Jvo(p,x),adPlacementConfig:Gr(p.clientMetadata,"metadata_type_ad_placement_config"),eR:a,contentCpn:Gr(p.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Gr(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Gr(p.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Gr(p.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Ab:void 0,M2:v,Xo:p.layoutId,videoLengthSeconds:Gr(p.clientMetadata,"metadata_type_video_length_seconds")}}; yH=function(p,x,a,v,c,J,R,d,b){g.y.call(this);this.B=p;this.S=x;this.C=a;this.j=v;this.U=c;this.Z=J;this.E8=R;this.s7=d;this.KI=b;this.rI=!0}; Oqf=function(p,x,a){return o31(p.U.get(),x.contentCpn,x.Xo,function(v){return tQT(p.Z.get(),v.slotId,a,x.adPlacementConfig,x.Xo,nm(p.E8.get(),v))})}; gL=function(p,x,a,v,c,J,R,d){g.y.call(this);this.Z=p;this.U=x;this.j=a;this.s7=v;this.B=c;this.KI=J;this.SA=R;this.sz=d}; Z3=function(p){g.y.call(this);this.U=p}; Vw=function(p,x,a,v){p.U().Qu(x,v);a=a();p=p.U();p.nW.QX("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",x,v,a);x=g.k(a);for(a=x.next();!a.done;a=x.next())a:{v=p;a=a.value;v.nW.TG("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a);v.nW.TG("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",a);try{var c=v.U;if(g.CZ(a.slotId))throw new e("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(so(c,a))throw new e("Duplicate registration for slot.",{slotId:a.slotId,slotEntryTriggerType:a.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!c.tS.EV.has(a.slotType))throw new e("No fulfillment adapter factory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!c.tS.VD.has(a.slotType))throw new e("No SlotAdapterFactory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");WE(c,"TRIGGER_CATEGORY_SLOT_ENTRY",a.slotEntryTrigger?[a.slotEntryTrigger]:[]);WE(c,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", a.slotFulfillmentTriggers);WE(c,"TRIGGER_CATEGORY_SLOT_EXPIRATION",a.slotExpirationTriggers);var J=v.U,R=a.slotType+"_"+a.slotPhysicalPosition,d=Ye(J,R);if(so(J,a))throw new e("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");d.set(a.slotId,new ppx(a));J.U.set(R,d)}catch(co){co instanceof e&&co.wU?(v.nW.eB("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",co.wU,a),sE(co,a,void 0,void 0,co.Mq)):(v.nW.eB("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", a),sE(co,a));break a}so(v.U,a).S=!0;try{var b=v.U,r=so(b,a),B=a.slotEntryTrigger,l=b.tS.g_.get(B.triggerType);l&&(l.xC("TRIGGER_CATEGORY_SLOT_ENTRY",B,a,null),r.O7.set(B.triggerId,l));for(var L=g.k(a.slotFulfillmentTriggers),Y=L.next();!Y.done;Y=L.next()){var h=Y.value,D=b.tS.g_.get(h.triggerType);D&&(D.xC("TRIGGER_CATEGORY_SLOT_FULFILLMENT",h,a,null),r.Zt.set(h.triggerId,D))}for(var H=g.k(a.slotExpirationTriggers),f=H.next();!f.done;f=H.next()){var m=f.value,X=b.tS.g_.get(m.triggerType);X&&(X.xC("TRIGGER_CATEGORY_SLOT_EXPIRATION", m,a,null),r.T.set(m.triggerId,X))}var E=b.tS.EV.get(a.slotType).get().build(b.j,a);r.V=E;var A=b.tS.VD.get(a.slotType).get().build(b.C,a);A.init();r.Z=A}catch(co){co instanceof e&&co.wU?(v.nW.eB("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",co.wU,a),sE(co,a,void 0,void 0,co.Mq)):(v.nW.eB("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",a),sE(co,a));xe(v,a,!0);break a}v.nW.TG("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",a);v.U.R9(a);for(var u=g.k(v.Z),n=u.next();!n.done;n= u.next())n.value.R9(a);Jw(v,a)}}; GH=function(p,x,a,v,c){g.y.call(this);var J=this;this.Z=p;this.j=x;this.zw=a;this.context=c;this.U=new Map;v.get().addListener(this);this.addOnDisposeCallback(function(){v.b$()||v.get().removeListener(J)})}; G38=function(p,x){var a=0x8000000000000,v=0,c=0x8000000000000;var J=g.k(x.slotFulfillmentTriggers);for(var R=J.next();!R.done;R=J.next())if(R=R.value,R instanceof eH){var d=R.U.start;a=Math.min(a,d);v=Math.max(v,R.U.end);R.visible&&(c=Math.min(c,d))}else sE("Found unexpected fulfillment trigger for throttled slot.",x,null,{fulfillmentTrigger:R});J=a;c=c<0x8000000000000&&a0&&BE(p.S(),a)}; Rs=function(p,x,a,v,c){for(var J=[],R=g.k(p.SD.values()),d=R.next();!d.done;d=R.next()){var b=d=d.value,r=b.trigger;b=b.slot;if(r.triggerType===x){if(r instanceof PK||r instanceof q5||r instanceof u6){if(c&&r.breakDurationMs!==a)continue;if(!c&&r.breakDurationMs===a)continue;if(v.has(b.slotId))continue}J.push(d)}}J.length>0&&BE(p.S(),J)}; $VN=function(p,x){x=(x.uc+1)*1E3;var a=void 0;p=g.k(p.SD.values());for(var v=p.next();!v.done;v=p.next()){var c=v.value;v=c.trigger;c=c.slot;v instanceof PK&&v.breakDurationMs<=x&&(!a||v.breakDurationMs>a.trigger.breakDurationMs)&&(a={slot:c,trigger:v})}return a}; axb=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(!p.prefetchModeConfig||!p.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;p=Number(p.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(p)||p<=0?0:Math.floor(Math.random()*p)}; so1=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(p.prefetchModeConfig&&p.prefetchModeConfig.cacheFetchRefreshDurationMs&&(p=Number(p.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(p)||p<=0)))return p}; Kz=function(p){p.U=null;p.SD.clear();p.Z&&p.Z.stop();p.C&&p.C.stop();var x;(x=p.j)==null||x.stop();delete p.j}; p8Q=function(p){var x=[];p=g.k(p.SD.values());for(var a=p.next();!a.done;a=p.next())a=a.value.trigger,a instanceof PK&&x.push(a.breakDurationMs);return x}; dq=function(p){g.y.call(this);this.j=p;this.rI=!0;this.SD=new Map;this.U=new Map;this.Z=new Map}; vMx=function(p,x){var a=[];if(x=p.U.get(x.layoutId)){x=g.k(x);for(var v=x.next();!v.done;v=x.next())(v=p.Z.get(v.value.triggerId))&&a.push(v)}return a}; bp=function(p){g.y.call(this);this.U=p;this.SD=new Map}; c6o=function(p,x){for(var a=[],v=g.k(p.SD.values()),c=v.next();!c.done;c=v.next())c=c.value,c.trigger instanceof z$&&c.trigger.slotId===x&&a.push(c);a.length>=1&&BE(p.U(),a)}; J6_=function(p,x){var a={slotId:FR(x,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],G4:"surface",clientMetadata:new Zx([])},v=Object,c=v.assign;x=ir(x,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",a.slotId);x={layoutId:x,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",z$:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"surface", clientMetadata:new Zx([]),Vp:gZ_(!1,a.slotId,a.slotType,a.slotPhysicalPosition,a.G4,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,x,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return c.call(v,{},p,{hJ:!0,slot:a,layout:x})}; q_1=function(p,x,a,v){var c=p.kind;v=v?!1:!p.hideCueRangeMarker;switch(c){case "AD_PLACEMENT_KIND_START":return v={NE:new IR(-0x8000000000000,-0x8000000000000),y5:v},a!=null&&(v.bY=new IR(-0x8000000000000,-0x8000000000000)),v;case "AD_PLACEMENT_KIND_END":return v={NE:new IR(0x7ffffffffffff,0x8000000000000),y5:v},a!=null&&(v.bY=new IR(Math.max(0,x-a),0x8000000000000)),v;case "AD_PLACEMENT_KIND_MILLISECONDS":c=p.adTimeOffset;c.offsetStartMilliseconds||sE("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); c.offsetEndMilliseconds||sE("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");p=Number(c.offsetStartMilliseconds);c=Number(c.offsetEndMilliseconds);c===-1&&(c=x);if(Number.isNaN(p)||Number.isNaN(c)||p>c)return new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:p,offsetEndMs:c},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",c===x&&p-500<=c);v={NE:new IR(p,c),y5:v};if(a!=null){p=Math.max(0,p-a);if(p===c)return v;v.bY=new IR(p,c)}return v; default:return new e("AdPlacementKind not supported in convertToRange.",{kind:c,adPlacementConfig:p})}}; RFN=function(p){if(!p||!p.adPlacements&&!p.adSlots)return!1;for(var x=g.k(p.adPlacements||[]),a=x.next();!a.done;a=x.next())if(a=a.value)if(a=a.adPlacementRenderer,a!=null&&(a.config&&a.config.adPlacementConfig&&a.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;p=g.k(p.adSlots||[]);for(x=p.next();!x.done;x=p.next()){var v=a=void 0;if(((a=g.O(x.value,FZ))==null?void 0:(v=a.adSlotMetadata)==null?void 0:v.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; rq=function(p){this.s7=p;this.Z=new Map;this.U=new Map;this.j=new Map}; FR=function(p,x){if(Bc(p.s7.get())){var a=p.Z.get(x)||0;a++;p.Z.set(x,a);return x+"_"+a}return g.B1(16)}; ir=function(p,x,a){if(Bc(p.s7.get())){var v=p.U.get(x)||0;v++;p.U.set(x,v);return a+"_"+x+"_"+v}return g.B1(16)}; Wd=function(p,x){if(Bc(p.s7.get())){var a=p.j.get(x)||0;a++;p.j.set(x,a);return x+"_"+a}return g.B1(16)}; KTz=function(p){var x=[new VJ(p.Xo),new $M(p.M2),new iW(p.adPlacementConfig),new Ro(p.videoLengthSeconds),new Dx(p.Ab)];p.instreamAdPlayerOverlayRenderer&&x.push(new gb(p.instreamAdPlayerOverlayRenderer));p.playerOverlayLayoutRenderer&&x.push(new ZD(p.playerOverlayLayoutRenderer));p.nE&&x.push(new wb(p.nE));return x}; dVx=function(p,x,a,v,c,J){p=a.inPlayerLayoutId?a.inPlayerLayoutId:ir(J,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);var R,d,b=a.instreamAdPlayerOverlayRenderer?(R=a.instreamAdPlayerOverlayRenderer)==null?void 0:R.adLayoutLoggingData:(d=a.playerOverlayLayoutRenderer)==null?void 0:d.adLayoutLoggingData;R={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",G4:x};return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z$:new Map,layoutExitNormalTriggers:[new N5(function(r){return Wd(J, r)},a.Xo)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:x,clientMetadata:v,Vp:c(R),adLayoutLoggingData:b}}; lp=function(p,x){var a=this;this.Z=p;this.s7=x;this.U=function(v){return Wd(a.Z.get(),v)}}; tQT=function(p,x,a,v,c,J){a=new Zx([new GE(a),new iW(v)]);x=ir(p.Z.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",x);v={layoutId:x,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",G4:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",z$:new Map,layoutExitNormalTriggers:[new N5(function(R){return Wd(p.Z.get(),R)},c)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:a,Vp:J(v),adLayoutLoggingData:void 0}}; Bd=function(p,x,a,v,c){var J=KTz(v);return dVx(x,a,v,new Zx(J),c,p.Z.get())}; bmg=function(p,x,a,v,c){var J=KTz(v);J.push(new Cq(v.Ly));J.push(new XI(v.eR));return dVx(x,a,v,new Zx(J),c,p.Z.get())}; XL=function(p,x,a,v,c,J,R,d,b,r){x=ir(p.Z.get(),a,x);var B={layoutId:x,layoutType:a,G4:"core"},l=new Map;R&&l.set("impression",R);R=[new Vh(p.U,c,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];r&&R.push(new OR(p.U,r,["normal"]));return{layoutId:x,layoutType:a,z$:l,layoutExitNormalTriggers:R,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([v,new iW(J),new VJ(c)]),Vp:d(B),adLayoutLoggingData:b}}; iL=function(p,x,a,v,c,J,R,d,b){x=ir(p.Z.get(),a,x);var r={layoutId:x,layoutType:a,G4:"core"},B=[new Vh(p.U,c,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];b&&B.push(new OR(p.U,b,["normal"]));return{layoutId:x,layoutType:a,z$:new Map,layoutExitNormalTriggers:B,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([v,new iW(J),new VJ(c)]),Vp:R(r),adLayoutLoggingData:d}}; D3=function(p,x,a){var v=[];v.push(new Fe(p.U,a));x&&v.push(x);return v}; kC=function(p,x,a,v,c,J,R){var d={layoutId:x,layoutType:a,G4:"core"};return{layoutId:x,layoutType:a,z$:new Map,layoutExitNormalTriggers:R,layoutExitSkipTriggers:[new yh(p.U,x)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([new QJ(v),new iW(c)]),Vp:J(d),adLayoutLoggingData:v.adLayoutLoggingData}}; KQ=function(p,x,a,v,c,J,R,d){var b={layoutId:x,layoutType:J,G4:"core"};return{layoutId:x,layoutType:J,z$:new Map,layoutExitNormalTriggers:[new N5(p.U,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([new iW(v)].concat(g.lf(R))),Vp:c(b),adLayoutLoggingData:d}}; Hd=function(p,x,a,v){if(p.s7.get().Wm(x.kind==="AD_PLACEMENT_KIND_START"))if(a===void 0)sE("Expected SSAP layout ID in renderer",void 0,void 0,{caller:v});else return a}; LJN=function(p,x,a,v,c,J,R,d,b,r,B,l,L){p=U5(p,x,a,c,J,R,d,b,l,Hd(p,a,v.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),L);x=p.HA;a=new FI(p.YG);v=p.layoutExitSkipTriggers;r>0&&(x.push(a),x.push(new zE(r)),v=[]);x.push(new to(B));return{D9:{layoutId:p.layoutId,layoutType:p.layoutType,z$:p.z$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:p.G4,clientMetadata:new Zx(x),Vp:p.Vp,adLayoutLoggingData:p.adLayoutLoggingData}, UR:v,U5:p.layoutExitMuteTriggers,rY:p.layoutExitUserInputSubmittedTriggers,fX:p.M6,VV:p.VV}}; IDg=function(p,x,a,v,c,J,R,d,b,r){x=U5(p,x,a,v,J,new Map,R,function(B){return d(B,b)},void 0,Hd(p,a,c.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); p=new dn(p.U,x.YG);a=new FI(x.YG);r=new to(r);return{D9:{layoutId:x.layoutId,layoutType:x.layoutType,z$:x.z$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:x.G4,clientMetadata:new Zx([].concat(g.lf(x.HA),[a,r])),Vp:x.Vp,adLayoutLoggingData:x.adLayoutLoggingData},UR:x.layoutExitSkipTriggers,U5:x.layoutExitMuteTriggers,rY:[].concat(g.lf(x.layoutExitUserInputSubmittedTriggers),[p]),fX:x.M6,VV:x.VV}}; U5=function(p,x,a,v,c,J,R,d,b,r,B){x=r!=null?r:ir(p.Z.get(),"LAYOUT_TYPE_MEDIA_BREAK",x);r={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",G4:"adapter"};d=d(x);var l=Gr(d.clientMetadata,"metadata_type_fulfilled_layout");l||sE("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var L=l?l.layoutId:"";a=[new iW(a),new U7(v),new Q6(c)];l&&a.push(new pm(l.layoutType));B&&a.push(new l1(B));return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", z$:J,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new aG(p.U,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"adapter",HA:a,Vp:R(r),adLayoutLoggingData:b,VV:d,YG:L}}; X$1=function(p,x,a,v,c,J,R,d,b,r,B){p=r6Q(p,x,"core",a,v,c,J,R,d,b,r,void 0,B);return{layoutId:p.layoutId,layoutType:p.layoutType,z$:p.z$,layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:p.layoutExitSkipTriggers,layoutExitMuteTriggers:p.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:p.layoutExitUserInputSubmittedTriggers,M6:p.M6,G4:p.G4,clientMetadata:new Zx(p.aP),Vp:p.Vp,adLayoutLoggingData:p.adLayoutLoggingData}}; fDQ=function(p,x,a,v,c,J,R,d,b,r,B,l,L){x=r6Q(p,x,"adapter",a,v,c,J,R,d,b,B,l,L);v=x.layoutExitSkipTriggers;c=x.aP;a.adPodSkipTarget&&a.adPodSkipTarget>0&&(c.push(r),c.push(new zE(a.adPodSkipTarget)),v=[]);c.push(new to(d.adPodIndex));a.isCritical&&(v=[new OR(p.U,x.layoutId,["error"])].concat(g.lf(v)));return{D9:{layoutId:x.layoutId,layoutType:x.layoutType,z$:x.z$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:x.G4, clientMetadata:new Zx(c),Vp:x.Vp,adLayoutLoggingData:x.adLayoutLoggingData},UR:v,U5:x.layoutExitMuteTriggers,rY:x.layoutExitUserInputSubmittedTriggers,fX:x.M6}}; r6Q=function(p,x,a,v,c,J,R,d,b,r,B,l,L){var Y={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",G4:a};c=[new iW(c),new oD(b),new Ek(v.externalVideoId),new yJ(d),new Q6({impressionCommands:v.impressionCommands,abandonCommands:v.onAbandonCommands,completeCommands:v.completeCommands,progressCommands:v.adVideoProgressCommands}),new Km(J),new ao({current:null}),new Ro(R)];(J=v.playerOverlay.instreamAdPlayerOverlayRenderer)&&c.push(new gb(J));(R=v.playerOverlay.playerOverlayLayoutRenderer)&&c.push(new ZD(R)); l&&c.push(new dy(l));(l=v.playerUnderlay)&&c.push(new GE(l));d=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER");l=(l=J?J.elementId:R==null?void 0:R.layoutId)?l:ir(p.Z.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",d);c.push(new FI(l));c.push(new xM(d));c.push(new l1(b.adPodIndex));v.adNextParams&&c.push(new HT(v.adNextParams));v.shrunkenPlayerBytesConfig&&c.push(new Ao(v.shrunkenPlayerBytesConfig));v.clickthroughEndpoint&&c.push(new TE(v.clickthroughEndpoint));v.legacyInfoCardVastExtension&&c.push(new H8(v.legacyInfoCardVastExtension)); v.sodarExtensionData&&c.push(new b1(v.sodarExtensionData));B&&c.push(new kM(B));c.push(new fm(RC(v.pings)));b=Kx(v.pings);if(L){a:{L=g.k(L);for(B=L.next();!B.done;B=L.next())if(B=B.value,B.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(J=g.O(B.fulfillmentContent.fulfilledLayout,GZ))&&(J=g.O(J.renderingContent,gn))&&J.associatedPlayerBytesLayoutId===x){L=B;break a}L=void 0}L&&c.push(new Ok(L))}return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",z$:b,layoutExitNormalTriggers:[new pn(p.U,x)],layoutExitSkipTriggers:v.skipOffsetMilliseconds? [new aG(p.U,l)]:[],layoutExitMuteTriggers:[new aG(p.U,l)],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:a,aP:c,Vp:r(Y),adLayoutLoggingData:v.adLayoutLoggingData}}; kYb=function(p,x,a,v,c,J,R,d,b){v.every(function(B){return E7(B,[],["LAYOUT_TYPE_MEDIA"])})||sE("Unexpect subLayout type for DAI composite layout"); x=ir(p.Z.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",x);var r={layoutId:x,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",G4:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z$:new Map,layoutExitNormalTriggers:[new AK(p.U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],M6:[],G4:"core",clientMetadata:new Zx([new ry(a),new B8(d),new v8(v),new iW(c),new j_(J),new Lm({}),new XP(b)]),Vp:R(r)}}; hV8=function(p){return p!=null}; Lz=function(p,x,a){var v=this;this.Z=p;this.j=x;this.s7=a;this.U=function(c){return Wd(v.Z.get(),c)}}; yoU=function(p,x,a,v,c,J,R){if(!a.prefetchModeConfig)return new e("AdPlacementConfig for Live Prefetch is missing prefetch_config");a=a.prefetchModeConfig;v*=1E3;var d=[];if(!a.breakLengthMs)return new e("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var b=g.k(a.breakLengthMs),r=b.next();!r.done;r=b.next())if(r=r.value,Number(r)>0){var B=v+Number(a.startTimeOffsetMs),l=B+Number(a.cacheFetchSmearingDurationMs);r={NE:new IR(l,l+Number(r)),y5:!1,bY:new IR(Math.floor(B+Math.random()* Number(a.cacheFetchSmearingDurationMs)),l),cueProcessedMs:v?v:B};B=[];B.push(new zr({}));l=[];l.push(new $v(p.U));l.push(new RR_(p.U));R&&B.push(new Lm({}));d.push(xC(p,x,c,r,J,B,l))}return d}; xC=function(p,x,a,v,c,J,R){J=J===void 0?[]:J;var d=FR(p.Z.get(),"SLOT_TYPE_AD_BREAK_REQUEST");R||(R=[],v.bY&&v.bY.start!==v.NE.start&&R.push(new eH(p.U,a,new IR(v.bY.start,v.NE.start),!1)),R.push(new eH(p.U,a,new IR(v.NE.start,v.NE.end),v.y5)));v={getAdBreakUrl:x.getAdBreakUrl,yE:v.NE.start,T7:v.NE.end,cueProcessedMs:v.cueProcessedMs};x=new JR(p.U,d);J=[new MV(v)].concat(g.lf(J));return{slotId:d,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:R, slotExpirationTriggers:[new xv(p.U,a),new vP(p.U,d),new cP(p.U,d)],G4:"core",clientMetadata:new Zx(J),adSlotLoggingData:c}}; lxb=function(p,x,a){var v=[];a=g.k(a);for(var c=a.next();!c.done;c=a.next())v.push(ByT(p,x,c.value));return v}; ByT=function(p,x,a){return a.triggeringSlotId!=null&&a.triggeringSlotId===p?a.clone(x):a}; cto=function(p,x,a,v,c){return LT1(p,x,a,v,c)}; Ykx=function(p,x,a,v){var c=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER");return LT1(p,c,x,a,v)}; LT1=function(p,x,a,v,c){var J=new G$(p.U,a),R=[new sP(p.U,x)];p=[new vP(p.U,x),new xv(p.U,v)];return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(c({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:p},a))]),adSlotLoggingData:void 0}}; CWT=function(p,x,a,v,c,J){var R=FR(p.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),d=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER"),b=ir(p.Z.get(),"LAYOUT_TYPE_SURVEY",d);v=YQ(p,x,a,v);var r=[new sP(p.U,R)];a=[new vP(p.U,R),new xv(p.U,a),new yh(p.U,b)];if(v instanceof e)return v;d=J({slotId:R,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:v,slotFulfillmentTriggers:r,slotExpirationTriggers:a},{slotId:d,layoutId:b});J=d.wOO;d=d.JJ;return[{slotId:R,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:QH(p,x,R,v),slotFulfillmentTriggers:mc(p,x,R,r),slotExpirationTriggers:a,G4:"core",clientMetadata:new Zx([new Io(J),new i1(Sy(x)),new t6({Mt:p.Mt(x)})]),adSlotLoggingData:c},d]}; Sy=function(p){return p.kind==="AD_PLACEMENT_KIND_START"}; iu1=function(p,x,a,v,c){c=c?c:FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER");a=new G$(p.U,a);var J=[new sP(p.U,c)];p=[new xv(p.U,x),new vP(p.U,c)];return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:J,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(v({slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:a,slotFulfillmentTriggers:J,slotExpirationTriggers:p}))])}}; o31=function(p,x,a,v){var c=FR(p.Z.get(),"SLOT_TYPE_PLAYER_UNDERLAY");a=new G$(p.U,a);var J=[new sP(p.U,c)];p=[new xv(p.U,x),new vP(p.U,c)];return{slotId:c,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:J,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(v({slotId:c,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:a,slotFulfillmentTriggers:J,slotExpirationTriggers:p}))])}}; Hu1=function(p,x,a,v,c,J,R){var d=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER"),b=ir(p.Z.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",d);v=Y7z(p,v,J,R,b);if(v instanceof e)return v;R=[new sP(p.U,d)];c=[new xv(p.U,J),new sP(p.U,c),new Kn(p.U,c)];a=nm(a,{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:v,slotFulfillmentTriggers:R,slotExpirationTriggers:c});p=p.j.get();J={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",G4:"core"};x={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", z$:new Map,layoutExitNormalTriggers:[new Y__(p.U,b,x.durationMs)],layoutExitSkipTriggers:[new jef(p.U,b,x.durationMs)],M6:[new hRb(p.U,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],G4:"core",clientMetadata:new Zx([new Tr(x)]),Vp:a(J)};return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:v,slotFulfillmentTriggers:R,slotExpirationTriggers:c,clientMetadata:new Zx([new Io(x)])}}; Bbg=function(p,x,a,v,c,J){x=YQ(p,x,a,v);if(x instanceof e)return x;var R=x instanceof eH?new BGN(p.U,a,x.U):null;v=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER");var d=[new sP(p.U,v)];p=[new xv(p.U,a),new vP(p.U,v)];J=J({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:x,slotFulfillmentTriggers:d,slotExpirationTriggers:p},R);return J instanceof gy?new e(J):{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:d,slotExpirationTriggers:p, G4:"core",clientMetadata:new Zx([new Io(J)]),adSlotLoggingData:c}}; bqI=function(p,x,a,v){var c=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER"),J=new ER(p.U,x),R=[new RG(p.U,c)];p=[new xv(p.U,x),new vP(p.U,c)];return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(v({slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:p}))]),adSlotLoggingData:a}}; rtI=function(p,x,a,v){var c=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER");a=new G$(p.U,a);var J=[new sP(p.U,c)],R=[new vP(p.U,c),new xv(p.U,x)];J={slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:a,slotFulfillmentTriggers:J,slotExpirationTriggers:R};return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:[new sP(p.U,c)],slotExpirationTriggers:[new xv(p.U,x),new vP(p.U,c)],G4:"core",clientMetadata:new Zx([new Io(v(J))])}}; KNU=function(p,x,a,v,c){var J=FR(p.Z.get(),"SLOT_TYPE_IN_PLAYER");a=new ZP(p.U,v,a);v=[new sP(p.U,J)];p=[new xv(p.U,x)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:v,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(c({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:a,slotFulfillmentTriggers:v,slotExpirationTriggers:p}))])}}; aaf=function(p,x,a,v,c,J){var R=FR(p.Z.get(),x);return h2(p,R,x,new G$(p.U,v),[new xv(p.U,a),new vP(p.U,R),new OR(p.U,v,["error"])],c,J)}; $mJ=function(p,x,a,v,c,J,R){var d=FR(p.Z.get(),x);return h2(p,d,x,new OR(p.U,c,["normal"]),[new xv(p.U,a),new vP(p.U,d),new OR(p.U,v,["error"])],J,R)}; Vbg=function(p,x,a,v,c){var J=FR(p.Z.get(),x);return h2(p,J,x,new ER(p.U,a),[new xv(p.U,a),new vP(p.U,J)],v,c)}; JoJ=function(p,x,a,v,c){a=a?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var J=FR(p.Z.get(),a);x=new ER(p.U,x);var R=[new sP(p.U,J)];p=[new vP(p.U,J)];return{slotId:J,slotType:a,slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:R,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(c({slotId:J,slotType:a,slotPhysicalPosition:1,G4:"core",slotEntryTrigger:x,slotFulfillmentTriggers:R,slotExpirationTriggers:p}))]),adSlotLoggingData:v}}; jxx=function(p,x,a,v){var c=FR(p.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),J=new nK(p.U),R=[new RG(p.U,c)];p=[new xv(p.U,x)];return{slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(v({slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:p})),new Lm({})]),adSlotLoggingData:a}}; Tbz=function(p,x){return wTf(p.s7.get())?new OR(p.U,x,["normal","error","skipped"]):new OR(p.U,x,["normal"])}; S48=function(p,x,a,v,c){x=Tbz(p,x);p=TH(p,x,a);c=c({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers,G4:p.G4});return c instanceof e?c:{ij:Object.assign({},p,{clientMetadata:new Zx([new Io(c.layout)]),adSlotLoggingData:v}),Vb:c.Vb}}; faT=function(p,x,a,v,c,J,R){a=QDx(p,x,a,v);if(a instanceof e)return a;R=R({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,G4:a.G4});if(R instanceof e)return R;v=[new i1(Sy(x)),new Io(R.layout),new t6({Mt:p.Mt(x)})];J&&v.push(new mT({}));return{ij:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:QH(p, x,a.slotId,a.slotEntryTrigger),slotFulfillmentTriggers:mc(p,x,a.slotId,a.slotFulfillmentTriggers),slotExpirationTriggers:a.slotExpirationTriggers,G4:a.G4,clientMetadata:new Zx(v),adSlotLoggingData:c},Vb:R.Vb}}; QH=function(p,x,a,v){return p.s7.get().Wm(Sy(x))?new z$(p.U,a):v}; mc=function(p,x,a,v){return p.s7.get().Wm(Sy(x))?[new RG(p.U,a)]:v}; TH=function(p,x,a){var v=FR(p.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),c=[new sP(p.U,v)];p=[new vP(p.U,v),new xv(p.U,a)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:c,slotExpirationTriggers:p,G4:"core"}}; QDx=function(p,x,a,v){x=YQ(p,x,a,v);return x instanceof e?x:TH(p,x,a)}; KJf=function(p,x,a,v,c,J){var R=FR(p.Z.get(),"SLOT_TYPE_FORECASTING");x=YQ(p,x,a,v);if(x instanceof e)return x;v=[new sP(p.U,R)];p=[new vP(p.U,R),new xv(p.U,a)];return{slotId:R,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:v,slotExpirationTriggers:p,G4:"core",clientMetadata:new Zx([new Io(J({slotId:R,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,G4:"core",slotEntryTrigger:x,slotFulfillmentTriggers:v,slotExpirationTriggers:p}))]),adSlotLoggingData:c}}; hFb=function(p,x,a,v,c){var J=!x.hideCueRangeMarker;switch(x.kind){case "AD_PLACEMENT_KIND_START":return new ER(p.U,a);case "AD_PLACEMENT_KIND_MILLISECONDS":return p=q_1(x,v),p instanceof e?p:c(p.NE,J);case "AD_PLACEMENT_KIND_END":return new gP(p.U,a,J);default:return new e("Cannot construct entry trigger",{kind:x.kind})}}; Y7z=function(p,x,a,v,c){return hFb(p,x,a,v,function(J,R){return new rZg(p.U,a,J,R,c)})}; YQ=function(p,x,a,v){return hFb(p,x,a,v,function(c,J){return new eH(p.U,a,c,J)})}; h2=function(p,x,a,v,c,J,R){p=[new RG(p.U,x)];return{slotId:x,slotType:a,slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:p,slotExpirationTriggers:c,G4:"core",clientMetadata:new Zx([new Io(R({slotId:x,slotType:a,slotPhysicalPosition:1,G4:"core",slotEntryTrigger:v,slotFulfillmentTriggers:p,slotExpirationTriggers:c}))]),adSlotLoggingData:J}}; jx=function(p,x){g.y.call(this);this.s7=p;this.U=x;this.eventCount=0}; Is=function(p,x,a,v){jx.call(this,p,x);this.s7=p;this.KI=a;this.context=v}; M8=function(){this.U=new Map}; Wc=function(p){this.U="pending";this.Z=[];this.j=[];try{p(this.B.bind(this),this.reject.bind(this))}catch(x){this.reject(x)}}; joT=function(){var p,x;return{uB:new Wc(function(a,v){p=a;x=v}), resolve:p,reject:x}}; Uw=function(p){return kQ(p)?p:Dn(p)?new Wc(function(x,a){p.then(x,a)}):new Wc(function(x){x(p)})}; Hc=function(p){return new Wc(function(x,a){a(p)})}; Ta=function(p){try{return Uw(p())}catch(x){return Hc(x)}}; mo=function(p,x,a){var v=joT(),c=v.uB,J=v.resolve,R=v.reject;p.Z.push(function(d){if(x)try{var b=x(d);J(b)}catch(r){R(r)}else J(d)}); p.j.push(function(d){if(a)try{var b=a(d);J(b)}catch(r){R(r)}else R(d)}); Qx(p);return c}; Sx=function(p,x){return mo(p,void 0,x)}; Ix1=function(p,x){mo(p,function(a){return mo(Uw(x()),function(){return a})},function(a){return mo(Uw(x()),function(){return Hc(a)})})}; Qx=function(p){if(p.U==="fulfilled"){var x=p.Z;p.Z=[];p.j=[];x=g.k(x);for(var a=x.next();!a.done;a=x.next())a=a.value,a(p.result)}else if(p.U==="rejected")for(x=p.j,p.Z=[],p.j=[],x=g.k(x),a=x.next();!a.done;a=x.next())a=a.value,a(p.error)}; fz=function(p,x){return M_Q(x.call(p))}; Cz=function(p){return function a(){return yb(a,function(v){if(v.Z==1)return g.UQ(v,2),g.C(v,{uB:Uw(p)},4);if(v.Z!=2)return v.return(v.U);g.o8(v);return g.z1(v,0)})}()}; M_Q=function(p){return Ta(function(){return Xk(p,p.next())})}; Xk=function(p,x){return x.done?Uw(x.value):Sx(mo(x.value.uB,function(a){return Xk(p,p.next(a))}),function(a){return Xk(p,p.throw(a))})}; ip=function(p,x){if(p.length===0)return Uw(NaN);var a=joT(),v=a.uB,c=a.resolve,J=p.length;p=g.k(p.entries());var R=p.next();for(a={};!R.done;a={Sq:void 0},R=p.next()){var d=g.k(R.value);R=d.next().value;d=d.next().value;a.Sq=R;Ix1(d,function(b){return function(){v.U==="pending"&&(WTg(x)&&x(b.Sq)&&v.U==="pending"?c(b.Sq):(--J,J===0&&c(NaN)))}}(a))}return v}; os=function(p){return p.map(function(x){return Uw(x)})}; za=function(p){var x=p.hours||0;var a=p.minutes||0,v=p.seconds||0;x=v+a*60+x*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;x<=0?x={hours:0,minutes:0,seconds:0}:(p=x,x=Math.floor(p/3600),p%=3600,a=Math.floor(p/60),v=Math.floor(p%60),x={hours:x,minutes:a,seconds:v});var c=x.hours===void 0?0:x.hours;a=x.minutes===void 0?0:x.minutes;p=x.seconds===void 0?0:x.seconds;v=c>0;x=[];if(v){c=(new Intl.NumberFormat("en-u-nu-latn")).format(c);var J=["fr"],R="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(t2)?c.replace(",","\u00a0"):J.includes(t2)?c.replace(",","\u202f"):R.includes(t2)?c.replace(",","."):c;x.push(c)}v=v===void 0?!1:v;a=(["af","be","lt"].includes(t2)||v)&&a<10?kro().format(a):(new Intl.NumberFormat("en-u-nu-latn")).format(a);x.push(a);a=kro().format(p);x.push(a);a=":";"da fi id si sr sr-Latn".split(" ").includes(t2)&&(a=".");return x.join(a)}; kro=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; DVz=function(p,x){var a,v;p=((a=p.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(v=a.videoAuthorizationToken)==null?void 0:v.credentialTransferTokens)||[];for(a=0;ax;p=a}else p=!1;return p}; g.Fk=function(p,x){return p.Va+"timedtext_video?ref=player&v="+x.videoId}; g.Zmg=function(p){var x=this;this.videoData=p;p={};this.U=(p.c1a=function(){var a=[];if(g.up.isInitialized()){var v="";x.videoData&&x.videoData.TW&&(v=x.videoData.TW+("&r1b="+x.videoData.clientPlaybackNonce));var c={};v=(c.atr_challenge=v,c);T3("bg_v",void 0,"player_att");(v=gMf(v))?(T3("bg_s",void 0,"player_att"),a.push("r1a="+v)):(T3("bg_e",void 0,"player_att"),a.push("r1c=2"))}else T3("bg_e",void 0,"player_att"),window.trayride||window.botguard?a.push("r1c=1"):a.push("r1c=4");a.push("r1d="+g.up.getState()); return a.join("&")},p.c6a=function(a){return"r6a="+(Number(a.c)^Nq())},p.c6b=function(a){return"r6b="+(Number(a.c)^Number(g.gx("CATSTAT",0)))},p); this.videoData&&this.videoData.TW?this.dU=uU(this.videoData.TW):this.dU={}}; g.GrJ=function(p){if(p.videoData&&p.videoData.TW){for(var x=[p.videoData.TW],a=g.k(Object.keys(p.U)),v=a.next();!v.done;v=a.next())v=v.value,p.dU[v]&&p.U[v]&&(v=p.U[v](p.dU))&&x.push(v);return x.join("&")}return null}; g.p1=function(p,x){y6o(p,{svg:g.e_(x.experiments,"bg_vm_reinit_threshold"),cspNonce:x.cspNonce,Va:x.Va||""})}; Om1=function(){var p=XMLHttpRequest.prototype.fetch;return!!p&&p.length===3}; NyJ=function(p){p=p[K[9]](K[15]);x9[K[28]](p,1);x9[K[28]](p,59);x9[K[30]](p,3);x9[K[29]](p,23);x9[K[30]](p,1);x9[K[28]](p,38);x9[K[30]](p,3);return p[K[47]](K[15])}; q71=function(p,x){Za(p,2,x.m2,$9,3);Za(p,3,x.innertubeRequest,A6b,3);y$(p,4,x.onesieUstreamerConfig);y$(p,9,x.U$);Za(p,10,x.mJ,aB,3);Za(p,15,x.reloadPlaybackParams,P1f,3)}; eFI=function(p,x){Za(p,1,x.formatId,sY,3);Q$(p,2,x.startTimeMs);Q$(p,3,x.durationMs);Q$(p,4,x.ZI);Q$(p,5,x.U6);Za(p,9,x.RVd,nMQ,3);Za(p,11,x.YVd,vX,1);Za(p,12,x.CQ,vX,1)}; uP_=function(p,x){gh(p,1,x.videoId);Q$(p,2,x.lmt)}; nMQ=function(p,x){if(x.dR)for(var a=0;a>31));Q$(p,16,x.GL);Q$(p,17,x.detailedNetworkType);Q$(p,18,x.Ht);Q$(p,19,x.NB);Q$(p,21,x.JaG);Q$(p,23,x.jE);Q$(p,28,x.tN);Q$(p,29,x.X55);Q$(p,34,x.visibility);a=x.playbackRate;if(a!==void 0){var v=new ArrayBuffer(4);(new Float32Array(v))[0]=a;a=(new Uint32Array(v))[0];if(a!==void 0)for(TY(p,285),H$(p,4),v=0;v<4;)p.view.setUint8(p.pos,a&255),a>>=8,p.pos+=1,v+=1}Q$(p,36,x.Uu); Za(p,38,x.mediaCapabilities,$IN,3);Q$(p,39,x.thr);Q$(p,40,x.Xi);Q$(p,44,x.playerState);E4(p,46,x.Ep);Q$(p,48,x.aI);Q$(p,50,x.G_);Q$(p,51,x.oI);Q$(p,54,x.Wj);if(x.IP)for(a=0;a>31));gh(p,2,x.message)}; bj_=function(p,x){Q$(p,1,x.clientState);Za(p,2,x.W27,Kjz,1)}; RCI=function(p,x){y$(p,1,x.mg5);Za(p,2,x.vNI,dIf,3);Za(p,3,x.coldStartInfo,bj_,3)}; Jwz=function(p,x){Q$(p,1,x.type);y$(p,2,x.value)}; cwo=function(p,x){gh(p,1,x.hl);gh(p,12,x.deviceMake);gh(p,13,x.deviceModel);Q$(p,16,x.clientName);gh(p,17,x.clientVersion);gh(p,18,x.osName);gh(p,19,x.osVersion)}; rw8=function(p,x){gh(p,1,x.name);gh(p,2,x.value)}; JS=function(p,x){gh(p,1,x.url);if(x.uJ)for(var a=0;a0&&!(Ahb()>(0,g.WR)()-p*1E3))return 0;p=g.mD("yt-player-quality");if(typeof p==="string"){if(p=g.kc[p],p>0)return p}else if(p instanceof Object)return p.quality;return 0}; BX=function(){var p=g.mD("yt-player-proxima-pref");return p==null?null:p}; eCI=function(){var p=g.mD("yt-player-quality");if(p instanceof Object&&p.quality&&p.previousQuality){if(p.quality>p.previousQuality)return 1;if(p.quality0&&x[0]?p.getAutoplayPolicy(x[0]):p.getAutoplayPolicy("mediaelement");if(sCg[a])return sCg[a]}}catch(v){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Mt=function(p){return p.FM||p.o9||p.mutedAutoplay}; v0J=function(p,x){return Mt(p)?x!==1&&x!==2&&x!==0?"AUTOPLAY_STATUS_UNAVAILABLE":p.lZ?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; cE_=function(p,x,a){var v=x.L();p.thirdParty||(p.thirdParty={});v.ancestorOrigins&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{ancestorOrigins:v.ancestorOrigins}));v.D("embeds_enable_autoplay_and_visibility_signals")&&(v.l9!=null&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(v.l9)})),v.E5&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{visibilityFractionSource:v.E5})), p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:IB(),autoplayIntended:Mt(x),autoplayStatus:v0J(x,a)}))}; JE1=function(p){var x=[];p=g.k(p.split(","));for(var a=p.next();!a.done;a=p.next()){var v=a.value;v&&((a=v.startsWith("!"))&&(v=v.substring(1)),v=v.split("-"),v.length<3||x.push({Ru:v[0],platform:v[1],deviceVersion:v[2],lz:a}))}return x}; d6_=function(p){return JE1(p).map(function(x){return{deviceInterface:RQI[KKU[x.Ru]]||0,deviceVersion:x.deviceVersion||"",isSleeping:x.lz}})}; g.WX=function(p,x){this.id=p;this.AX=x;this.captionTracks=[];this.j=this.B=null;this.xtags="";this.C=!1;this.U=null;this.Z="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";p=this.AX.id.split(".");p.length>1&&(this.C=p[1]==="2")}; k9=function(p,x,a,v,c){this.Z=p;this.U=x;this.j=a;this.reason=v;this.y6=c===void 0?0:c}; g.DW=function(p,x,a,v){return new k9(g.kc[p]||0,g.kc[x]||0,a,v)}; HX=function(p){if(UY&&p.y6)return!1;var x=g.kc.auto;return p.Z===x&&p.U===x}; QK=function(p){return TT[p.U||p.Z]||"auto"}; bxx=function(p,x){x=g.kc[x];return p.Z<=x&&(!p.U||p.U>=x)}; m7=function(p){return"["+p.Z+"-"+p.U+", override: "+(p.j+", reason: "+p.reason+"]")}; S3=function(p,x,a){this.videoInfos=p;this.U=x;this.audioTracks=[];if(this.U){p=new Set;a==null||a({ainfolen:this.U.length});x=g.k(this.U);for(var v=x.next();!v.done;v=x.next())if(v=v.value,!v.AX||p.has(v.AX.id)){var c=void 0,J=void 0,R=void 0;(R=a)==null||R({atkerr:!!v.AX,itag:v.itag,xtag:v.U,lang:((c=v.AX)==null?void 0:c.name)||"",langid:((J=v.AX)==null?void 0:J.id)||""})}else c=new g.WX(v.id,v.AX),p.add(v.AX.id),this.audioTracks.push(c);a==null||a({atklen:this.audioTracks.length})}}; f1=function(){g.y.apply(this,arguments);this.U=null}; LKI=function(p,x,a,v,c,J,R){if(p.U)return p.U;var d={},b=new Set,r={};if(C1(v)){for(var B in v.U)v.U.hasOwnProperty(B)&&(p=v.U[B],r[p.info.rr]=[p.info]);return r}B=rEx(x,v,d);J&&c({aftsrt:XS(B)});for(var l={},L=g.k(Object.keys(B)),Y=L.next();!Y.done;Y=L.next()){Y=Y.value;for(var h=g.k(B[Y]),D=h.next();!D.done;D=h.next()){D=D.value;var H=D.itag,f=void 0,m=Y+"_"+(((f=D.video)==null?void 0:f.fps)||0);l.hasOwnProperty(m)?l[m]===!0?r[Y].push(D):d[H]=l[m]:(f=iH(x,D,a,v.isLive,b),f!==!0?(R.add(Y),d[H]=f, f==="disablevp9hfr"&&(l[m]="disablevp9hfr")):(r[Y]=r[Y]||[],r[Y].push(D),l[m]=!0))}}J&&c({bfflt:XS(r)});for(var X in r)r.hasOwnProperty(X)&&(v=X,r[v]&&r[v][0].hU()&&(r[v]=r[v],r[v]=BK8(x,r[v],d),r[v]=lk1(r[v],d)));J&&Object.keys(d).length>0&&c({rjr:Ki(d)});x=g.k(b.values());for(v=x.next();!v.done;v=x.next())(v=a.B.get(v.value))&&--v.w5;J&&c({aftflt:XS(r)});p.U=g.pZ(r,function(E){return!!E.length}); return p.U}; hQf=function(p,x,a,v,c,J,R,d){d=d===void 0?!1:d;if(x.aA&&R&&R.length>1&&!(x.IM>0||x.Y)){for(var b=x.Z||!!c,r=b&&x.G$?J:void 0,B=rEx(x,v),l=[],L=[],Y={},h=0;h0&&L&&c&&(B=[R,a],X=c.concat(L).filter(function(E){return E})); if(X.length&&!x.L7){zT(X,B);if(b){b=[];x=g.k(X);for(v=x.next();!v.done;v=x.next())b.push(v.value.itag);J({hbdfmt:b.join(".")})}return Ql(new S3(X,p,r))}X=QCz(x);X=g.ME(X,d);if(!X){if(l[R])return J=l[R],zT(J),Ql(new S3(J,p,r));b&&J({novideo:1});return TS()}x.Kp&&(X==="1"||X==="1h")&&l[a]&&(R=w9(l[X]),B=w9(l[a]),B>R?X=a:B===R&&m6Q(l[a])&&(X=a));X==="9"&&l.h&&w9(l.h)>w9(l["9"])&&(X="h");x.US&&v.isLive&&X==="("&&l.H&&w9(l["("])<1440&&(X="H");b&&J({vfmly:EY(X)});x=l[X];if(!x.length)return b&&J({novfmly:EY(X)}), TS();zT(x);return Ql(new S3(x,p,r))}; Ik1=function(p,x){var a=!(!p.m&&!p.M),v=!(!p.mac3&&!p.MAC3),c=!(!p.meac3&&!p.MEAC3);p=!(!p.i&&!p.I);x.Iw=p;return a||v||c||p}; m6Q=function(p){p=g.k(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,x.itag&&ScU.has(x.itag))return!0;return!1}; WKQ=function(p){p=g.k(p);for(var x=p.next();!x.done;x=p.next())if(x.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; EY=function(p){switch(p){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return p}}; XS=function(p){var x=[],a;for(a in p)if(p.hasOwnProperty(a)){var v=a;x.push(EY(v));v=g.k(p[v]);for(var c=v.next();!c.done;c=v.next())x.push(c.value.itag)}return x.join(".")}; jCg=function(p,x,a,v,c,J){var R={},d={};g.FO(x,function(b,r){b=b.filter(function(B){var l=B.itag;if(!B.F1)return d[l]="noenc",!1;if(J.XV&&B.rr==="(h"&&J.oa)return d[l]="lichdr",!1;if(!p.C&&B.rr==="1e")return d[l]="noav1enc",!1;if(B.rr==="("||B.rr==="(h"){if(p.j&&a&&a.flavor==="widevine"){var L=B.mimeType+"; experimental=allowed";(L=!!B.F1[a.flavor]&&!!a.U[L])||(d[l]=B.F1[a.flavor]?"unspt":"noflv");return L}if(!yK(p,g9.CRYPTOBLOCKFORMAT)&&!p.F5||p.O7)return d[l]=p.O7?"disvp":"vpsub",!1}return a&&B.F1[a.flavor]&& a.U[B.mimeType]?!0:(d[l]=a?B.F1[a.flavor]?"unspt":"noflv":"nosys",!1)}); b.length&&(R[r]=b)}); v&&Object.entries(d).length&&c({rjr:Ki(d)});return R}; lk1=function(p,x){var a=Wq(p,function(v,c){return c.video.fps>32?Math.min(v,c.video.width):v},Infinity); a32||v.video.widthp.S)return"max"+p.S;if(p.HO&&x.rr==="h"&&x.video&&x.video.qualityOrdinal>1080)return"blkhigh264";if(x.rr==="(h"&&!a.V)return"enchdr";if((v===void 0?0:v)&&ih(x)&&!p.hG)return"blk51live";if((x.rr==="MAC3"||x.rr==="mac3")&&!p.B)return"blkac3";if((x.rr==="MEAC3"||x.rr==="meac3")&&!p.C)return"blkeac3";if(x.rr==="M"||x.rr==="m")return"blkaac51"; if((x.rr==="so"||x.rr==="sa")&&!p.Zt)return"blkamb";if(!p.XV&&CxN(x)&&(!a.C||x.rr!=="1e"))return"cbc";if(!a.C&&CxN(x)&&x.rr==="1e")return"cbcav1";if((x.rr==="i"||x.rr==="I")&&!p.KW)return"blkiamf";var J;if(p.OS&&((J=x.audio)==null?void 0:J.Z)===!0)return"blkvbcabr";var R,d;if(p.LI&&(x.rr==="1"||x.rr==="1h"||a.C&&x.rr==="1e")&&((R=x.video)==null?0:R.qualityOrdinal)&&((d=x.video)==null?void 0:d.qualityOrdinal)>p.LI)return"av1cap";v=a.B.get(x.rr);if(!p.Zp&&v&&v.w5>0)return c.add(x.rr),"byerr";var b; if((b=x.video)==null?0:b.fps>32){if(!a.u$&&!yK(a,g9.FRAMERATE))return"capHfr";if(p.Ra&&x.video.qualityOrdinal>=4320)return"blk8khfr";if(m3(x)&&p.lc&&x.F1&&x.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(p.y6&&x.y6>p.y6)return"ratecap";if(p.O7>0&&x.hU()&&x.video.height>p.O7)return"mvhcap";p=fkQ(a,x);return p!==!0?p:!0}; zT=function(p,x){x=x===void 0?[]:x;g.PQ(p,function(a,v){var c=v.y6-a.y6;if(!a.hU()||!v.hU())return c;var J=v.video.height*v.video.width-a.video.height*a.video.width;!J&&x&&x.length>0&&(a=x.indexOf(a.rr)+1,v=x.indexOf(v.rr)+1,J=a===0||v===0?v||-1:a-v);J||(J=c);return J})}; g.ZW=function(p,x){this[K[26]]=p;this[K[57]]=x===void 0?!1:x;this[K[16]]=this[K[11]]=this[K[31]]=K[15];this[K[0]]={};this[K[5]]=K[15]}; OY=function(p){GT(p);return p[K[16]]}; Nt=function(p){return p[K[26]]?p[K[26]][K[6]](K[67]):p[K[31]]===K[67]}; Ccg=function(p){GT(p);return g.$r(p[K[0]],function(x){return x!==null})}; AS=function(p){GT(p);var x=decodeURIComponent(p[K[65]](K[21])||K[15])[K[9]](K[69]);return p[K[11]]===K[42]&&x[K[2]]>1&&!!x[1]}; PX=function(p,x){x=x===void 0?!1:x;GT(p);if(p[K[11]]!==K[42]){var a=p[K[20]]();a[K[3]](K[51],K[40]);return a}var v=p[K[33]]();a=new g.$f(v);var c=p[K[65]](K[80]),J=decodeURIComponent(p[K[65]](K[21])||K[15])[K[9]](K[69]);if(c&&J&&J[K[2]]>1&&J[1])return v=a.U,p=v[K[84]](/^[^.]*/,K[15]),g.sn(a,(v[K[7]](K[46])===0?K[46]:K[32])+c+K[22]+J[1]+p),a=new g.ZW(a[K[8]]()),a[K[3]](K[44],K[40]),a;if(x)return a=p[K[20]](),a[K[3]](K[44],K[40]),a;c=a.U[K[12]](K[49]);a.U[K[12]](K[45])?(g.sn(a,K[70]),v=a[K[8]]()):a.U[K[12]](K[43])? (g.sn(a,K[73]),v=a[K[8]]()):(a=W_8(v),zF(a)&&(v=a));a=new g.ZW(v);a[K[3]](K[68],K[40]);c&&a[K[3]](K[85],K[64]);return a}; GT=function(p){if(p[K[26]]){if(!(zF(p[K[26]])||p[K[26]][K[6]](K[67])||p[K[26]][K[6]](K[59])||p[K[26]][K[6]](K[71])))throw new g.gr(K[4],p[K[26]]);var x=g.bd(p[K[26]]);p[K[31]]=x.C;p[K[16]]=x.U+(x.j!=null?K[78]+x.j:K[15]);var a=x.Z;if(a[K[6]](K[42]))p[K[11]]=K[42],a=a[K[23]](14);else if(a[K[6]](K[10]))p[K[11]]=K[10],a=a[K[23]](13);else if(a[K[6]](K[13])){var v=a[K[7]](K[14],12),c=a[K[7]](K[14],v+1);v>0&&c>0?(p[K[11]]=a[K[23]](0,c),a=a[K[23]](c+1)):(p[K[11]]=a,a=K[15])}else p[K[11]]=a,a=K[15];v=p[K[0]]; p[K[0]]=Xn8(a);Object[K[25]](p[K[0]],ix_(x.B.toString()));Object[K[25]](p[K[0]],v);p[K[0]][K[86]]===K[82]&&(delete p[K[0]][K[86]],p[K[11]]+=K[87]);p[K[26]]=K[15];p[K[5]]=K[15];p[K[57]]&&(GT(p),x=p[K[0]][K[18]]||null)&&(x=o0T[0](x),p[K[3]](K[18],x))}}; ta8=function(p){GT(p);var x=p[K[31]]+(p[K[31]]?K[76]:K[66])+p[K[16]]+p[K[11]];if(Ccg(p)){var a=[];g.FO(p[K[0]],function(v,c){v!==null&&a[K[48]](c+K[79]+v)}); x+=K[34]+a[K[47]](K[53])}return x}; Xn8=function(p){p=p[K[9]](K[14]);var x=0;p[0]||x++;for(var a={};x0?zQx(x,v[K[23]](0,c),v[K[23]](c+1)):v&&(x[v]=K[15])}return x}; zQx=function(p,x,a){if(x===K[62]){var v;(v=a[K[7]](K[79]))>=0?(x=K[17]+a[K[23]](0,v),a=a[K[23]](v+1)):(v=a[K[7]](K[50]))>=0&&(x=K[17]+a[K[23]](0,v),a=a[K[23]](v+3))}p[x]=a}; qt=function(p){var x=g.O(p,wn1)||p[K[88]];p={Gz:!1,ZA:K[15],GT:K[15],s:K[15]};if(!x)return p;x=uU(x);p[K[39]]=!0;p[K[58]]=x[K[5]];p[K[72]]=x[K[60]];p[K[35]]=x[K[35]];return p}; n1=function(p,x,a,v,c,J,R,d,b){this.i$=p;this.startTime=x;this.duration=a;this.ingestionTime=v;this.sourceURL=c;this.U8=b;this.endTime=x+a;this.U=R||0;this.range=J||null;this.pending=d||!1;this.U8=b||null}; g.e3=function(){this.segments=[];this.U=null;this.Z=!0;this.j=""}; E0g=function(p,x){if(x>p.Q8())p.segments=[];else{var a=Iv(p.segments,function(v){return v.i$>=x},p); a>0&&p.segments.splice(0,a)}}; uH=function(p,x,a,v,c){c=c===void 0?!1:c;this.data=p;this.offset=x;this.size=a;this.type=v;this.U=(this.Z=c)?0:8;this.dataOffset=this.offset+this.U}; VK=function(p){var x=p.data.getUint8(p.offset+p.U);p.U+=1;return x}; FS=function(p){var x=p.data.getUint16(p.offset+p.U);p.U+=2;return x}; p0=function(p){var x=p.data.getInt32(p.offset+p.U);p.U+=4;return x}; xo=function(p){var x=p.data.getUint32(p.offset+p.U);p.U+=4;return x}; $o=function(p){var x=p.data;var a=p.offset+p.U;x=x.getUint32(a)*4294967296+x.getUint32(a+4);p.U+=8;return x}; a7=function(p,x){x=x===void 0?NaN:x;if(isNaN(x))var a=p.size;else for(a=p.U;a1?Math.ceil(c*x):Math.floor(c*x))}p.skip(1);a=VK(p)<<16|FS(p);if(a&256){v=a&1;c=a&4;var J=a&512,R=a&1024,d=a&2048;a=xo(p);v&&p.skip(4);c&&p.skip(4);v=(J?4:0)+(R?4:0)+(d?4:0);for(c=0;c1?Math.ceil(R*x):Math.floor(R*x)),p.skip(v)}}}; b5=function(p){p=new DataView(p.buffer,p.byteOffset,p.byteLength);return(p=g.K0(p,0,1836476516))?g.d0(p):NaN}; uc8=function(p){var x=g.K0(p,0,1937011556);if(!x)return null;x=r0(p,x.dataOffset+8,1635148593)||r0(p,x.dataOffset+8,1635135537);if(!x)return null;var a=r0(p,x.dataOffset+78,1936995172),v=r0(p,x.dataOffset+78,1937126244);if(!v)return null;x=null;if(a)switch(a.skip(4),VK(a)){default:x=0;break;case 1:x=2;break;case 2:x=1;break;case 3:x=255}var c=a=null,J=null;if(v=r0(p,v.dataOffset,1886547818)){var R=r0(p,v.dataOffset,1886546020),d=r0(p,v.dataOffset,2037673328);if(!d&&(d=r0(p,v.dataOffset,1836279920), !d))return null;R&&(R.skip(4),a=p0(R)/65536,J=p0(R)/65536,c=p0(R)/65536);p=yE1(d);p=new DataView(p.buffer,p.byteOffset+8,p.byteLength-8);return new n0f(x,a,J,c,p)}return null}; r0=function(p,x,a){for(;Bf(p,x);){var v=l5(p,x);if(v.type===a)return v;x+=v.size}return null}; g.K0=function(p,x,a){for(;Bf(p,x);){var v=l5(p,x);if(v.type===a)return v;x=L0(v.type)?x+8:x+v.size}return null}; g.Yo=function(p){if(p.data.getUint8(p.dataOffset)){var x=p.data;p=p.dataOffset+4;x=x.getUint32(p)*4294967296+x.getUint32(p+4)}else x=p.data.getUint32(p.dataOffset+4);return x}; l5=function(p,x){var a=p.getUint32(x),v=p.getUint32(x+4);return new uH(p,x,a,v)}; g.d0=function(p){var x=p.data.getUint8(p.dataOffset)?20:12;return p.data.getUint32(p.dataOffset+x)}; Vaf=function(p){p=new uH(p.data,p.offset,p.size,p.type,p.Z);var x=VK(p);p.skip(7);var a=xo(p);if(x===0){x=xo(p);var v=xo(p)}else x=$o(p),v=$o(p);p.skip(2);for(var c=FS(p),J=[],R=[],d=0;d122)return!1}return!0}; L0=function(p){return p===1701082227||p===1836019558||p===1836019574||p===1835297121||p===1835626086||p===1937007212||p===1953653094||p===1953653099||p===1836475768}; FK8=function(p){p.skip(4);return{xNI:a7(p,0),value:a7(p,0),timescale:xo(p),A7$:xo(p),eventDuration:xo(p),id:xo(p),jl:a7(p),offset:p.offset}}; g.phU=function(p){var x=r0(p,0,1701671783);if(!x)return null;var a=FK8(x),v=a.xNI;a=R7(a.jl);if(p=r0(p,x.offset+x.size,1701671783))if(p=FK8(p),p=R7(p.jl),a&&p){x=g.k(Object.keys(p));for(var c=x.next();!c.done;c=x.next())c=c.value,a[c]=p[c]}return a?new J$(a,v):null}; h$=function(p,x){for(var a=r0(p,0,x);a;){var v=a;v.type=1936419184;v.data.setUint32(v.offset+4,1936419184);a=r0(p,a.offset+a.size,x)}}; g.jz=function(p,x){for(var a=0,v=[];Bf(p,a);){var c=l5(p,a);c.type===x&&v.push(c);a=L0(c.type)?a+8:a+c.size}return v}; xKJ=function(p,x){var a=g.K0(p,0,1937011556),v=g.K0(p,0,1953654136);if(!a||!v||p.getUint32(a.offset+12)>=2)return null;var c=new DataView(x.buffer,x.byteOffset,x.length),J=g.K0(c,0,1937011556);if(!J)return null;x=c.getUint32(J.dataOffset+8);v=c.getUint32(J.dataOffset+12);if(v!==1701733217&&v!==1701733238)return null;v=new g0g(p.byteLength+x);s$(v,p,0,a.offset+12);v.data.setInt32(v.offset,2);v.offset+=4;s$(v,p,a.offset+16,a.size-16);s$(v,c,c.byteOffset+J.dataOffset+8,x);s$(v,p,a.offset+a.size,p.byteLength- (a.offset+a.size));a=g.k([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(c=a.next();!c.done;c=a.next())c=g.K0(p,0,c.value),v.data.setUint32(c.offset,c.size+x);p=g.K0(v.data,0,1953654136);v.data.setUint32(p.offset+16,2);return v.data}; $K1=function(p){var x=g.K0(p,0,1937011556);if(!x)return null;var a=p.getUint32(x.dataOffset+12);if(a!==1701733217&&a!==1701733238)return null;x=r0(p,x.offset+24+(a===1701733217?28:78),1936289382);if(!x)return null;a=r0(p,x.offset+8,1935894637);if(!a||p.getUint32(a.offset+12)!==1667392371)return null;x=r0(p,x.offset+8,1935894633);if(!x)return null;x=r0(p,x.offset+8,1952804451);if(!x)return null;a=new Uint8Array(16);for(var v=0;v<16;v++)a[v]=p.getInt8(x.offset+16+v);return a}; I7=function(p,x){this.U=p;this.pos=0;this.start=x||0}; MN=function(p){return p.pos>=p.U.byteLength}; Hf=function(p,x,a){var v=new I7(a);if(!Wf(v,p))return!1;v=ko(v);if(!Do(v,x))return!1;for(p=0;x;)x>>>=8,p++;x=v.start+v.pos;var c=U$(v,!0);v=p+(v.start+v.pos-x)+c;v=v>9?ac8(v-9,8):ac8(v-2,1);p=x-p;a.setUint8(p++,236);for(x=0;xa;c++)a=a*256+f0(p),v*=128;return x?a-v:a}; QL=function(p){var x=U$(p,!0);p.pos+=x}; cDQ=function(p){if(!Do(p,440786851,!0))return null;var x=p.pos;U$(p,!1);var a=U$(p,!0)+p.pos-x;p.pos=x+a;if(!Do(p,408125543,!1))return null;U$(p,!0);if(!Do(p,357149030,!0))return null;var v=p.pos;U$(p,!1);var c=U$(p,!0)+p.pos-v;p.pos=v+c;if(!Do(p,374648427,!0))return null;var J=p.pos;U$(p,!1);var R=U$(p,!0)+p.pos-J,d=new Uint8Array(a+12+c+R),b=new DataView(d.buffer);d.set(new Uint8Array(p.U.buffer,p.U.byteOffset+x,a));b.setUint32(a,408125543);b.setUint32(a+4,33554431);b.setUint32(a+8,4294967295); d.set(new Uint8Array(p.U.buffer,p.U.byteOffset+v,c),a+12);d.set(new Uint8Array(p.U.buffer,p.U.byteOffset+J,R),a+12+c);return d}; C0=function(p){var x=p.pos;p.pos=0;var a=1E6;Wf(p,[408125543,357149030,2807729])&&(a=TX(p));p.pos=x;return a}; JDI=function(p,x){var a=p.pos;p.pos=0;if(p.U.getUint8(p.pos)!==160&&!X7(p)||!Do(p,160))return p.pos=a,NaN;U$(p,!0);var v=p.pos;if(!Do(p,161))return p.pos=a,NaN;U$(p,!0);f0(p);var c=f0(p)<<8|f0(p);p.pos=v;if(!Do(p,155))return p.pos=a,NaN;v=TX(p);p.pos=a;return(c+v)*x/1E9}; X7=function(p){if(!Rox(p)||!Do(p,524531317))return!1;U$(p,!0);return!0}; Rox=function(p){if(p.Y9()){if(!Do(p,408125543))return!1;U$(p,!0)}return!0}; Wf=function(p,x){for(var a=0;a0){var v=ix_(x.substring(a+1));g.FO(v,function(c,J){this.set(J,c)},p); x=x.substring(0,a)}x=Xn8(x);g.FO(x,function(c,J){this.set(J,c)},p)}; dK1=function(p){var x=p.gM.Wh(),a=[];g.FO(p.U,function(c,J){a.push(J+"="+c)}); if(!a.length)return x;var v=a.join("&");p=Ccg(p.gM)?"&":"?";return x+p+v}; o7=function(p,x){var a=new g.ZW(x);(x=a.get("req_id"))&&p.set("req_id",x);g.FO(p.U,function(v,c){a["set"](c,null)}); return a}; biI=function(){this.B=this.j=this.U=this.timedOut=this.started=this.C=this.Z=0}; t$=function(p){p.C=(0,g.WR)();p.started=0;p.timedOut=0;p.U=0}; zX=function(p,x){var a=p.started+p.U*4;x&&(a+=p.j);a=Math.max(0,a-3);return Math.pow(1.6,a)}; w0=function(p,x){p[x]||(p[x]=new biI);return p[x]}; E$=function(p){this.T=this.V=this.C=this.j=0;this.Y=this.S=!1;this.U=p;this.Z=p.clone()}; rDo=function(p,x,a){if(Nt(p.U))return!1;var v=w0(a,OY(p.U));if(v.timedOut<1&&v.U<1)return!1;v=v.timedOut+v.U;p=yL(p,x);a=w0(a,OY(p));return a.timedOut+a.U+01?x=x.HH:(a=w0(a,Zo(p,p.c$(x,a),x)),x=Math.max(p.C,a.timedOut)+x.d2*(p.j-p.C)+.25*p.V,x=x>3?1E3*Math.pow(1.6,x-3):0);return x===0?!0:p.T+x<(0,g.WR)()}; BDb=function(p,x,a){p.U.set(x,a);p.Z.set(x,a);p.B&&p.B.set(x,a)}; lc_=function(p,x,a,v,c){++p.j;x&&++p.C;OY(a.gM).startsWith("redirector.")&&(p.U=p.Z.clone(),delete p.B,v.kK&&delete c[OY(p.U)])}; O$=function(p){return p?(p.itag||"")+";"+(p.lmt||0)+";"+(p.xtags||""):""}; NN=function(p,x,a,v){this.initRange=a;this.indexRange=v;this.U=null;this.j=!1;this.S=0;this.B=this.Vh=this.Z=null;this.info=x;this.JX=new E$(p)}; A$=function(p,x){this.start=p;this.end=x;this.length=x-p+1}; Pf=function(p){p=p.split("-");var x=Number(p[0]),a=Number(p[1]);if(!isNaN(x)&&!isNaN(a)&&p.length===2&&(p=new A$(x,a),!isNaN(p.start)&&!isNaN(p.end)&&!isNaN(p.length)&&p.length>0))return p}; qN=function(p,x){return new A$(p,p+x-1)}; L3f=function(p){return p.end==null?{start:String(p.start)}:{start:String(p.start),end:String(p.end)}}; n0=function(p){if(!p)return new A$(0,0);var x=Number(p.start);p=Number(p.end);if(!isNaN(x)&&!isNaN(p)&&(x=new A$(x,p),x.length>0))return x}; ez=function(p,x,a,v,c,J,R,d,b,r,B,l){v=v===void 0?"":v;this.type=p;this.U=x;this.range=a;this.source=v;this.AZ=B;this.clipId=l===void 0?"":l;this.T=[];this.V="";this.i$=-1;this.Zt=0;this.V=v;this.i$=c>=0?c:-1;this.startTime=J||0;this.duration=R||0;this.Z=d||0;this.j=b>=0?b:this.range?this.range.length:NaN;this.B=this.range?this.Z+this.j===this.range.length:r===void 0?!!this.j:r;this.range?(this.C=this.startTime+this.duration*this.Z/this.range.length,this.Y=this.duration*this.j/this.range.length,this.S= this.C+this.Y):YBz(this)}; YBz=function(p){p.C=p.startTime;p.Y=p.duration;p.S=p.C+p.Y}; ho1=function(p,x,a){var v=!(!x||x.U!==p.U||x.type!==p.type||x.i$!==p.i$);return a?v&&!!x&&(p.range&&x.range?x.range.end===p.range.end:x.range===p.range)&&x.Z+x.j===p.Z+p.j:v}; u5=function(p){return p.type===1||p.type===2}; VL=function(p){return p.type===3||p.type===6}; F7=function(p,x){return p.U===x.U?p.range&&x.range?p.range.start+p.Z+p.j===x.range.start+x.Z:p.i$===x.i$?p.Z+p.j===x.Z:p.i$+1===x.i$&&x.Z===0&&p.B:!1}; IcT=function(p,x){return p.i$!==x.i$&&x.i$!==p.i$+1||p.type!==x.type?!1:F7(p,x)?!0:Math.abs(p.C-x.C)<=1E-6&&p.i$===x.i$?!1:jIb(p,x)}; jIb=function(p,x){return F7(p,x)||Math.abs(p.S-x.C)<=1E-6||p.i$+1===x.i$&&x.Z===0&&p.B?!0:!1}; pA=function(p){return p.i$+(p.B?1:0)}; Mwg=function(p){p.length===1||g.Mv(p,function(a){return!!a.range}); for(var x=1;x=x.range.start+x.Z&&p.range.start+p.Z+p.j<=x.range.start+x.Z+x.j:p.i$===x.i$&&p.Z>=x.Z&&(p.Z+p.j<=x.Z+x.j||x.B)}; QIx=function(p,x){return p.U!==x.U?!1:p.type===4&&x.type===3&&p.U.C3()?(p=p.U.r8(p),OT(p,function(a){return QIx(a,x)})):p.i$===x.i$&&!!x.j&&x.Z+x.j>p.Z&&x.Z+x.j<=p.Z+p.j}; $U=function(p,x){var a=x.i$;p.V="updateWithSegmentInfo";p.i$=a;if(p.startTime!==x.startTime||p.duration!==x.duration)p.startTime=x.startTime+0,p.duration=x.duration,YBz(p)}; aE=function(p,x){var a=this;this.eA=p;this.B=this.U=null;this.C=this.JS=NaN;this.c$=this.requestId=null;this.d3={CG4:function(){return a.range}}; this.JX=p[0].U.JX;this.Z=x||"";this.eA[0].range&&this.eA[0].j>0&&(W3o(p)?(this.range=Mwg(p),this.j=this.range.length):(this.range=this.eA[this.eA.length-1].range,this.j=kl1(p)))}; sl=function(p){return!u5(p.eA[p.eA.length-1])}; vz=function(p){return p.eA[p.eA.length-1].type===4}; g.cz=function(p,x,a){a=p.c$===null?p.JX.c$(x,a,p.eA[0].type):p.c$;if(p.U){x=a?PX(p.U,x.oV):p.U;var v=new i5(x);v.get("alr")||v.set("alr","yes");p.Z&&K3I(v,p.Z)}else/http[s]?:\/\//.test(p.Z)?v=new i5(new g.ZW(p.Z)):(v=g0(p.JX,a,x),p.Z&&K3I(v,p.Z));(x=p.range)?v.set("range",x.toString()):p.eA[0].U.tp()&&p.eA.length===1&&p.eA[0].Z&&v.set("range",p.eA[0].Z+"-");p.requestId&&v.set("req_id",p.requestId);isNaN(p.JS)||v.set("headm",p.JS.toString());isNaN(p.C)||v.set("mffa",p.C+"ms");p.urlParams&&g.FO(p.urlParams, function(c,J){v.set(J,c)}); return v}; mKN=function(p){if(p.range)return p.j;p=p.eA[0];return Math.round(p.Y*p.U.info.y6)}; SB1=function(p,x){return Math.max(0,p.eA[0].C-x)}; Jk=function(p,x,a,v,c,J){J=J===void 0?0:J;NN.call(this,p,x,v,void 0);this.C=a;this.aM=J;this.index=c||new g.e3}; fcU=function(p,x,a,v,c){this.i$=p;this.startSecs=x;this.uc=a;this.U=v||NaN;this.Z=c||NaN}; RE=function(p,x,a){for(;p;p=p.parentNode)if(p.attributes&&(!a||p.nodeName===a)){var v=p.getAttribute(x);if(v)return v}return""}; KA=function(p,x){for(;p;p=p.parentNode){var a=p.getElementsByTagName(x);if(a.length>0)return a[0]}return null}; ChJ=function(p){if(!p)return 0;var x=p.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return x?(Number(x[2])|0)*3600+(Number(x[4])|0)*60+(Number(x[6])|0):Number(p)|0}; Xhx=function(p){return p.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?p+"Z":p}; dC=function(){this.U=[];this.Z=null;this.S=0;this.j=[];this.C=!1;this.V="";this.B=-1}; iif=function(p){var x=p.j;p.j=[];return x}; ocI=function(){this.B=[];this.U=null;this.Z={};this.j={}}; EcN=function(p,x){var a=[];x=Array.from(x.getElementsByTagName("SegmentTimeline"));x=g.k(x);for(var v=x.next();!v.done;v=x.next()){v=v.value;var c=v.parentNode.parentNode,J=null;c.nodeName==="Period"?J=twN(p):c.nodeName==="AdaptationSet"?(c=c.getAttribute("id")||c.getAttribute("mimetype")||"",J=zoI(p,c)):c.nodeName==="Representation"&&(c=c.getAttribute("id")||"",J=whI(p,c));if(J==null)return;J.update(v);g.XO(a,iif(J))}g.XO(p.B,a);Q8f(p.B,function(R){return R.startSecs*1E3+R.U})}; yDU=function(p){p.U&&(p.U.U=[]);g.FO(p.Z,function(x){x.U=[]}); g.FO(p.j,function(x){x.U=[]})}; twN=function(p){p.U||(p.U=new dC);return p.U}; zoI=function(p,x){p.Z[x]||(p.Z[x]=new dC);return p.Z[x]}; whI=function(p,x){p.j[x]||(p.j[x]=new dC);return p.j[x]}; rC=function(p){var x=p===void 0?{}:p;p=x.aM===void 0?0:x.aM;var a=x.p7===void 0?!1:x.p7;var v=x.z7===void 0?0:x.z7;var c=x.Bm===void 0?0:x.Bm;var J=x.FR===void 0?Infinity:x.FR;var R=x.JI===void 0?0:x.JI;var d=x.S3===void 0?!1:x.S3;x=x.Zv===void 0?!1:x.Zv;g.e3.call(this);this.Jm=this.Au=-1;this.bL=p;this.z7=v;this.p7=a;this.Bm=c;this.FR=J;this.JI=R;((this.S3=d)||isFinite(J)&&this.FR>0)&&a&&b4&&(this.Z=!1,this.j="postLive");this.Zv=x}; Bz=function(p,x){return OV(p.segments,function(a){return x-a.i$})}; l4=function(p,x,a){a=a===void 0?{}:a;Jk.call(this,p,x,"",void 0,void 0,a.aM||0);this.index=new rC(a)}; LA=function(p,x,a){NN.call(this,p,x);this.C=a;p=this.index=new g.e3;p.Z=!1;p.j="d"}; gcU=function(p,x,a){var v=p.index.RD(x),c=p.index.getStartTime(x),J=p.index.getDuration(x);a?J=a=0:a=p.info.y6*J;return new aE([new ez(3,p,void 0,"otfCreateRequestInfoForSegment",x,c,J,0,a)],v)}; Zif=function(p,x){if(!p.index.isLoaded()){var a=[],v=x.B;x=x.C.split(",").filter(function(B){return B.length>0}); for(var c=0,J=0,R=0,d=/^(\d+)/,b=/r=(\d+)/,r=0;r0&&(c.U=Math.min(c.U+R,10),c.Z=J);c.U>0?(c.U--,c=!0):c=!1;if(c)typeof v==="function"&&(v=v()),console.log("plyr."+x,v);else{var d;v=((d=qBT.get(x))!=null?d:0)+1;qBT.set(x,v);v%100===1&&console.warn("plyr","plyr."+x+" is chatty, dropping logs.")}}}; Phb=function(){this.U=10;this.Z=Date.now()}; jB=function(p,x){this.info=p;this.Z=x;this.U=null;this.B=this.j=-1;this.timestampOffset=0;this.isLocked=this.S=!1;this.C=this.info.U.d7()&&!this.info.Z}; g.IE=function(p){return gwI(p.Z)}; ncb=function(p,x){x=Math.min(x,p.info.j);var a=p.Z.split(x),v=a.vM;a=new jB(new ez(p.info.type,p.info.U,p.info.range,p.info.V,p.info.i$,p.info.startTime,p.info.duration,p.info.Z,x,!1,p.info.AZ,p.info.clipId),a.Et);a.B=p.B;a.j=p.j;x=new jB(new ez(p.info.type,p.info.U,p.info.range,p.info.V,p.info.i$,p.info.startTime,p.info.duration,p.info.Z+x,p.info.j-x,p.info.B,p.info.AZ,p.info.clipId),v);x.B=p.B;x.j=p.j;return[a,x]}; g.MG=function(p,x,a,v){a=a===void 0?!1:a;v=v===void 0?0:v;if(p.isLocked||x.isLocked||!F7(p.info,x.info)||p.info.B)return null;if(v){if(p.Z.totalLength+x.Z.totalLength>v)return null}else if(a&&(a=p.Z,v=x.Z,a=!(v.U.length?Ew1(a,v.U[0]):1)),a)return null;a=new ez(p.info.type,p.info.U,p.info.range,p.info.V,p.info.i$,p.info.startTime,p.info.duration,p.info.Z,p.info.j,p.info.B,p.info.AZ,p.info.clipId);v=x.info;a.j+=v.j;a.range&&(a.Y+=v.Y);a.S=v.S;a.B=v.B;v=new F_;pu(v,p.Z);pu(v,x.Z);a=new jB(a,v);a.U!= null&&x.U!=null&&(new g.YU("dash")).U(414627957,"merged slice emsg overridden; prev: "+a.U.SI()+" next: "+x.U.SI());a.U=x.U||p.U;a.j=p.j!==-1?p.j:x.j;a.B=p.B!==-1?p.B:x.B;return a}; g.Wz=function(p){g.oI(p.info.U.info)||p.info.U.info.Ul();if(p.j!==-1)return p.j;if(p.U&&Ox1(p.U))return p.j=Ox1(p.U),p.j;if(g.oI(p.info.U.info)){var x=g.IE(p);for(var a=p.info.U.U,v=NaN,c=NaN,J=0;Bf(x,J);){var R=l5(x,J);R.type===1936286840?c=R.data.getUint32(R.dataOffset+8):R.type===1836476516?c=g.d0(R):R.type===1952867444&&isNaN(v)&&(v=g.Yo(R));J=L0(R.type)?J+8:J+R.size}!c&&a&&(c=b5(a));x=v/c}else x=new I7(g.IE(p)),a=p.C?x:new I7(new DataView(p.info.U.U.buffer)),v=C0(a),a=x.pos,x.pos=0,X7(x)?Do(x, 231)?(v=TX(x)*v/1E9,x.pos=a,x=v):(x.pos=a,x=NaN):(x.pos=a,x=NaN);p.j=x||p.info.C;return p.j}; uN1=function(p,x){p.timestampOffset>0&&(x-=p.timestampOffset);var a=g.Wz(p)+x;eoJ(p,a);p.timestampOffset=x}; eoJ=function(p,x){g.oI(p.info.U.info)||p.info.U.info.Ul();p.j=x;if(g.oI(p.info.U.info)){var a=g.IE(p);p=p.info.U.U;for(var v=NaN,c=NaN,J=0;Bf(a,J);){var R=l5(a,J);isNaN(v)&&(R.type===1936286840?v=R.data.getUint32(R.dataOffset+8):R.type===1836476516&&(v=g.d0(R)));if(R.type===1952867444){!v&&p&&(v=b5(p));var d=g.Yo(R);isNaN(c)&&(c=Math.round(x*v)-d);var b=R;d+=c;if(b.data.getUint8(b.dataOffset)){var r=b.data;b=b.dataOffset+4;r.setUint32(b,Math.floor(d/4294967296));r.setUint32(b+4,d&4294967295)}else b.data.setUint32(b.dataOffset+ 4,d)}J=L0(R.type)?J+8:J+R.size}return!0}a=new I7(g.IE(p));p=p.C?a:new I7(new DataView(p.info.U.U.buffer));v=C0(p);p=a.pos;a.pos=0;if(X7(a)&&Do(a,231))if(c=U$(a,!0),x=Math.floor(x*1E9/v),Math.ceil(Math.log(x)/Math.log(2)/8)>c)x=!1;else{for(v=c-1;v>=0;v--)a.U.setUint8(a.pos+v,x&255),x>>>=8;a.pos=p;x=!0}else x=!1;return x}; D4=function(p,x){x=x===void 0?!1:x;var a=kU(p);p=x?0:p.info.Y;return a||p}; kU=function(p){g.oI(p.info.U.info)||p.info.U.info.Ul();if(p.U&&p.info.type===6)return p.U.aM;if(g.oI(p.info.U.info)){var x=g.IE(p);var a=0;x=g.jz(x,1936286840);x=g.k(x);for(var v=x.next();!v.done;v=x.next())v=Vaf(v.value),a+=v.UJ[0]/v.timescale;a=a||NaN;if(!(a>=0))a:{a=g.IE(p);x=p.info.U.U;for(var c=v=0,J=0;Bf(a,v);){var R=l5(a,v);if(R.type===1836476516)c=g.d0(R);else if(R.type===1836019558){!c&&x&&(c=b5(x));if(!c){a=NaN;break a}var d=r0(R.data,R.dataOffset,1953653094),b=d;d=c;var r=r0(b.data,b.dataOffset, 1952868452);b=r0(b.data,b.dataOffset,1953658222);var B=p0(r);p0(r);B&2&&p0(r);r=B&8?p0(r):0;var l=p0(b),L=l&1;B=l&4;var Y=l&256,h=l&512,D=l&1024;l&=2048;var H=xo(b);L&&p0(b);B&&p0(b);for(var f=L=0;f2048?"":x.indexOf("https://")===0?x:""}; SB=function(p,x,a){x.match(K0_);return p(x,a).then(function(v){var c=g.R2Q(v.xhr);return c?SB(p,c,a):v.xhr})}; i4=function(p,x,a){p=p===void 0?"":p;x=x===void 0?null:x;a=a===void 0?!1:a;g.Fx.call(this);var v=this;this.sourceUrl=p;this.isLivePlayback=a;this.tG=this.duration=0;this.isPremiere=this.S3=this.B=this.isLiveHeadPlayable=this.isLive=this.Z=!1;this.FR=this.Bm=0;this.isOtf=this.Dp=!1;this.hG=(0,g.WR)();this.Zt=Infinity;this.U={};this.j=new Map;this.state=this.YL=0;this.timeline=null;this.isManifestless=!1;this.O7=[];this.S=null;this.F5=0;this.C="";this.qT=NaN;this.u$=this.OS=this.timestampOffset=this.V= 0;this.f0=this.wb=NaN;this.KW=0;this.V6=this.T=!1;this.gr=[];this.LI={};this.pI=NaN;this.d3={Qk4:function(d){fA(v,d)}}; var c;this.Ra=(c=x)==null?void 0:c.cO("html5_use_network_error_code_enums");df1=!!x&&x.cO("html5_modern_vp9_mime_type");var J;CA=!((J=x)==null||!J.cO("html5_enable_flush_during_seek"))&&g.yl();var R;X0=!((R=x)==null||!R.cO("html5_enable_reset_audio_decoder"))&&g.yl()}; bax=function(p){return g.$r(p.U,function(x){return!!x.info.video&&x.info.video.qualityOrdinal>=2160})}; TKQ=function(p){return g.$r(p.U,function(x){return!!x.info.video&&x.info.video.isHdr()})}; oB=function(p){return g.$r(p.U,function(x){return!!x.info.F1})}; g.rLQ=function(p){return g.$r(p.U,function(x){return yB(x.info.mimeType)})}; BMo=function(p){return g.$r(p.U,function(x){return x.info.video?x.info.video.projectionType==="EQUIRECTANGULAR":!1})}; lAU=function(p){return g.$r(p.U,function(x){return x.info.video?x.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; L0T=function(p){return g.$r(p.U,function(x){return x.info.video?x.info.video.projectionType==="MESH":!1})}; YeT=function(p){return g.$r(p.U,function(x){return x.info.video?x.info.video.stereoLayout===1:!1})}; h2x=function(p){return Xo1(p.U,function(x){return x.info.video?x.q2():!0})}; C1=function(p){return g.$r(p.U,function(x){return Nt(x.JX.U)})}; fA=function(p,x){p.U[x.info.id]=x;p.j.set(O$(g.zl(x.info,p.Dp)),x)}; zR=function(p,x,a){a=a===void 0?0:a;var v=p.mimeType||"",c=p.itag;var J=p.xtags;c=c?c.toString():"";J&&(c+=";"+J);J=c;if(EB(v)){var R=p.width||640;c=p.height||360;var d=p.fps,b=p.qualityLabel,r=p.colorInfo,B=p.projectionType,l;p.stereoLayout&&(l=jLb[p.stereoLayout]);var L=cLz(p)||void 0;if(r==null?0:r.primaries)var Y=IAg[r.primaries]||void 0;R=new Dc(R,c,d,B,l,void 0,b,L,Y);v=oE(v,R,Tl[p.itag||""]);CA&&(v+="; enableflushduringseek=true");X0&&(v+="; enableresetaudiodecoder=true")}var h;if(wD(v)){var D= p.audioSampleRate;l=p.audioTrack;D=new MK(D?+D:void 0,p.audioChannels,p.spatialAudioType,p.isDrc,p.loudnessDb,p.trackAbsoluteLoudnessLkfs,p.audioQuality||"AUDIO_QUALITY_UNKNOWN",p.isVb);l&&(Y=l.displayName,c=l.id,l=l.audioIsDefault,Y&&(h=new g.mM(Y,c||"",!!l)))}var H;p.captionTrack&&(b=p.captionTrack,l=b.displayName,Y=b.vssId,c=b.languageCode,d=b.kind,b=b.id,l&&Y&&c&&(H=new sL1(l,Y,c,d,p.xtags,b)));l=Number(p.bitrate)/8;Y=Number(p.contentLength);c=Number(p.lastModified);b=p.drmFamilies;d=p.type;a= a&&Y?Y/a:0;p=Number(p.approxDurationMs);if(x&&b){var f={};b=g.k(b);for(r=b.next();!r.done;r=b.next())(r=tk[r.value])&&(f[r]=x[r])}return new QB(J,v,{audio:D,video:R,AX:h,F1:f,y6:l,XQ:a,contentLength:Y,lastModified:c,captionTrack:H,streamType:d,approxDurationMs:p})}; wC=function(p,x,a){a=a===void 0?0:a;var v=p.type;var c=p.itag;var J=p.xtags;J&&(c=p.itag+";"+J);if(EB(v)){var R=(p.size||"640x360").split("x");R=new Dc(+R[0],+R[1],+p.fps,p.projection_type,+p.stereo_layout,void 0,p.quality_label,p.eotf,p.primaries);v=oE(v,R,Tl[p.itag]);CA&&(v+="; enableflushduringseek=true");X0&&(v+="; enableresetaudiodecoder=true")}var d;if(wD(v)){var b=new MK(+p.audio_sample_rate||void 0,+p.audio_channels||0,p.spatial_audio_type,!!p.drc);p.name&&(d=new g.mM(p.name,p.audio_track_id, p.isDefault==="1"))}var r;p.caption_display_name&&p.caption_vss_id&&p.caption_language_code&&(r=new sL1(p.caption_display_name,p.caption_vss_id,p.caption_language_code,p.caption_kind,p.xtags,p.caption_id));J=Number(p.bitrate)/8;var B=Number(p.clen),l=Number(p.lmt);a=a&&B?B/a:0;if(x&&p.drm_families){var L={};for(var Y=g.k(p.drm_families.split(",")),h=Y.next();!h.done;h=Y.next())h=h.value,L[h]=x[h]}return new QB(c,v,{audio:b,video:R,AX:d,F1:L,y6:J,XQ:a,contentLength:B,lastModified:l,captionTrack:r, streamType:p.stream_type,approxDurationMs:Number(p.approx_duration_ms)})}; MAN=function(p){return OT(p,function(x){return"FORMAT_STREAM_TYPE_OTF"===x.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; W0J=function(p){return OT(p,function(x){return"FORMAT_STREAM_TYPE_OTF"===x.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; kkQ=function(p,x){return p.timeline?zy(p.timeline.B,x):p.O7.length?zy(p.O7,x):[]}; El=function(p,x,a){x=x===void 0?"":x;a=a===void 0?"":a;p=new g.ZW(p,!0);p.set("alr","yes");a&&(a=NyJ(decodeURIComponent(a)),p[K[3]](x,encodeURIComponent(a)));return p}; TM8=function(p,x){var a=RE(x,"id");a=a.replace(":",";");var v=RE(x,"mimeType"),c=RE(x,"codecs");v=c?v+'; codecs="'+c+'"':v;c=Number(RE(x,"bandwidth"))/8;var J=Number(KA(x,"BaseURL").getAttribute(p.C+":contentLength")),R=p.duration&&J?J/p.duration:0;if(EB(v)){var d=Number(RE(x,"width"));var b=Number(RE(x,"height")),r=Number(RE(x,"frameRate")),B=Dfx(RE(x,p.C+":projectionType"));a:switch(RE(x,p.C+":stereoLayout")){case "layout_left_right":var l=1;break a;case "layout_top_bottom":l=2;break a;default:l= 0}d=new Dc(d,b,r,B,l)}if(wD(v)){var L=Number(RE(x,"audioSamplingRate"));var Y=Number(RE(x.getElementsByTagName("AudioChannelConfiguration")[0],"value"));b=Ufo(RE(x,p.C+":spatialAudioType"));L=new MK(L,Y,b);a:{Y=RE(x,"lang")||"und";if(b=KA(x,"Role"))if(B=RE(b,"value")||"",g.bu(Haf,B)){b=Y+"."+Haf[B];r=B==="main";p=RE(x,p.C+":langName")||Y+" - "+B;Y=new g.mM(p,b,r);break a}Y=void 0}}if(x=KA(x,"ContentProtection"))if(x.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var h={};for(x= x.firstChild;x!=null;x=x.nextSibling)x instanceof Element&&/SystemURL/.test(x.nodeName)&&(p=x.getAttribute("type"),b=x.textContent,p&&b&&(h[p]=b.trim()))}else h=void 0;return new QB(a,v,{audio:L,video:d,AX:Y,F1:h,y6:c,XQ:R,contentLength:J})}; Dfx=function(p){switch(p){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"}}; Ufo=function(p){switch(p){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"}}; mfx=function(p,x){x=x===void 0?"":x;p.state=1;p.hG=(0,g.WR)();return JLQ(x||p.sourceUrl).then(function(a){if(!p.b$()){p.YL=a.status;a=a.responseText;var v=new DOMParser;a=QE(v,XmU(a),"text/xml").getElementsByTagName("MPD")[0];p.Zt=ChJ(RE(a,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(a.attributes){v=g.k(a.attributes);for(var c=v.next();!c.done;c=v.next())if(c=c.value,c.value==="http://youtube.com/yt/2012/10/10"){v=c.name.split(":")[1];break b}}v=""}p.C=v;p.isLive=p.Zt=p.Zt}; fAU=function(p){p.S&&p.S.stop()}; QLT=function(p){var x=p.Zt;isFinite(x)&&(yi(p)?p.refresh():(x=Math.max(0,p.hG+x-(0,g.WR)()),p.S||(p.S=new g.AW(p.refresh,x,p),g.Z(p,p.S)),p.S.start(x)))}; ClJ=function(p){p=p.U;for(var x in p){var a=p[x].index;if(a.isLoaded())return a.Q8()+1}return 0}; gC=function(p){return p.OS?p.OS-(p.V||p.timestampOffset):0}; Z4=function(p){return p.u$?p.u$-(p.V||p.timestampOffset):0}; GR=function(p){if(!isNaN(p.qT))return p.qT;var x=p.U,a;for(a in x){var v=x[a].index;if(v.isLoaded()&&!yB(x[a].info.mimeType)){x=0;for(a=v.hn();a<=v.Q8();a++)x+=v.getDuration(a);x/=v.bk();x=Math.round(x/.5)*.5;v.bk()>10&&(p.qT=x);return x}if(p.isLive&&(v=x[a],v.aM))return v.aM}return NaN}; XNT=function(p,x){p=o1b(p.U,function(v){return v.index.isLoaded()}); if(!p)return NaN;p=p.index;var a=p.sN(x);return p.getStartTime(a)===x?x:a=0&&c.segments.splice(J,1)}}}; o_g=function(p){for(var x in p.U)yB(p.U[x].info.mimeType)||E0g(p.U[x].index,Infinity)}; Ak=function(p,x,a){for(var v in p.U){var c=p.U[v].index,J=x,R=a;c.p7&&(J&&(c.Au=Math.max(c.Au,J)),R&&(c.Jm=Math.max(c.Jm||0,R)))}a&&(p.pI=a/1E3)}; tA8=function(p){p.u$=0;p.OS=0;p.KW=0}; Pz=function(p){return p.V6&&p.isManifestless?p.isLiveHeadPlayable:p.isLive}; oE=function(p,x,a){qG===null&&(qG=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(df1&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return qG||a!=="9"&&a!=="("?qG||a!=="9h"&&a!=="(h"||(p='video/webm; codecs="vp9.2"'):p='video/webm; codecs="vp9"',p;if(!qG&&!nA||p!=='video/webm; codecs="vp9"'&&p!=='video/webm; codecs="vp9.2"')return p; a="00";var v="08",c="01",J="01",R="01";p==='video/webm; codecs="vp9.2"'&&(a="02",v="10",x.primaries==="bt2020"&&(R=c="09"),x.U==="smpte2084"&&(J="16"),x.U==="arib-std-b67"&&(J="18"));return'video/webm; codecs="'+["vp09",a,"51",v,"01",c,J,R,"00"].join(".")+'"'}; u4=function(p,x,a){p=""+p+(x>49?"p60":x>32?"p48":"");x=lH()[p];if(x!=null&&x>0)return x;x=eB.get(p);if(x!=null&&x>0)return x;a=a==null?void 0:a.get(p);return a!=null&&a>0?a:8192}; z2N=function(p){this.JG=p;this.FX=this.L7=this.qT=this.C=this.B=this.gr=this.tG=this.Zt=!1;this.V=this.S=0;this.HO=!1;this.pI=!0;this.Ra=!1;this.IM=0;this.Bx=this.u$=!1;this.Kp=!0;this.V6=this.hG=!1;this.U={};this.Zp=this.OS=this.ol=this.disableAv1=this.oa=this.Iw=this.T4=this.US=this.Z=this.Y=!1;this.O7=0;this.YN=this.JG.D("html5_disable_aac_preference");this.vX=Infinity;this.F5=0;this.G$=this.JG.qZ();this.XV=this.JG.experiments.cO("html5_enable_vp9_fairplay");this.ow=this.JG.D("html5_force_av1_for_testing"); this.LI=g.e_(this.JG.experiments,"html5_av1_ordinal_cap");this.lc=this.JG.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.aA=this.JG.D("html5_account_onesie_format_selection_during_format_filter");this.y6=g.e_(this.JG.experiments,"html5_max_byterate");this.KW=this.JG.D("html5_enable_iamf_audio");this.y8=this.JG.experiments.cO("html5_allow_capability_merge");this.RA=this.JG.D("html5_enable_encrypted_av1");this.O7=g.e_(this.JG.experiments,"html5_hard_cap_max_vertical_resolution")}; QCz=function(p){if(p.tG)return["f"];if(g.wT("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var x=["9h","9","h","8"];p.RA&&x.push("1e");x=x.concat(["(h","(","H","*"]);p.u$&&(x.unshift("1"),x.unshift("1h"));p.L7&&x.unshift("h");p.T&&(x=(wN1[p.T]||[p.T]).concat(x));return x}; MaQ=function(p){var x=["o","a","A"];p.F5===1&&(p.B&&(x=["mac3","MAC3"].concat(x)),p.C&&(x=["meac3","MEAC3"].concat(x)),p.KW&&(x=["i","I"].concat(x)));p.Zt&&(x=["so","sa"].concat(x));!p.FX||p.qT||p.j||p.YN||x.unshift("a");p.j&&(x=(wN1[p.j]||[p.j]).concat(x));return x}; Vi=function(p,x,a,v){x=x===void 0?{}:x;if(v===void 0?0:v)return x.disabled=1,0;if(yK(p.C,g9.AV1_CODECS)&&yK(p.C,g9.HEIGHT)&&yK(p.C,g9.BITRATE))return x.isCapabilityUsable=1,8192;try{var c=x6Q();if(c&&!p.D("disable_av1_setting"))return x.localPref=c}catch(d){}v=1080;c=navigator.hardwareConcurrency;c<=2&&(v=480);x.coreCount=c;if(c=g.e_(p.experiments,"html5_default_av1_threshold"))v=x["default"]=c;!p.D("html5_disable_av1_arm_check")&&Y38()&&(x.isArm=1,v=240);if(p=p.C.pI)x.mcap=p,v=Math.max(v,p);if(a){var J, R;if(p=(J=a.videoInfos.find(function(d){return Ci(d)}))==null?void 0:(R=J.Z)==null?void 0:R.powerEfficient)v=8192,x.isEfficient=1; a=a.videoInfos[0].video;J=Math.min(u4("1",a.fps),u4("1",30));x.perfCap=J;v=Math.min(v,J);a.isHdr()&&!p&&(x.hdr=1,v*=.75)}else a=u4("1",30),x.perfCap30=a,v=Math.min(v,a),a=u4("1",60),x.perfCap60=a,v=Math.min(v,a);return x.av1Threshold=v}; F0=function(p,x,a,v){this.flavor=p;this.keySystem=x;this.Z=a;this.experiments=v;this.U={};this.tG=this.keySystemAccess=null;this.Ow=this.Bo=-1;this.kC=null;this.j=!!v&&v.cO("edge_nonprefixed_eme");v&&v.cO("html5_enable_vp9_fairplay")}; xA=function(p){return p.j?!1:!p.keySystemAccess&&!!pH()&&p.keySystem==="com.microsoft.playready"}; $A=function(p){return p.keySystem==="com.microsoft.playready"}; aa=function(p){return!p.keySystemAccess&&!!pH()&&p.keySystem==="com.apple.fps.1_0"}; sd=function(p){return p.keySystem==="com.youtube.fairplay"}; v0=function(p){return p.keySystem==="com.youtube.fairplay.sbdl"}; g.c0=function(p){return p.flavor==="fairplay"}; pH=function(){var p=window,x=p.MSMediaKeys;GS()&&!x&&(x=p.WebKitMediaKeys);return x&&x.isTypeSupported?x:null}; Ra=function(p){return navigator.requestMediaKeySystemAccess?g.Li&&!g.yl()?WG("45"):g.ZH||g.dj?p.cO("edge_nonprefixed_eme"):g.Jc?WG("47"):g.BR&&p.cO("html5_enable_safari_fairplay")?!1:!0:!1}; E_I=function(p,x,a,v){var c=gT(),J=(a=c||a&&GS())?["com.youtube.fairplay"]:["com.widevine.alpha"];x&&J.unshift("com.youtube.widevine.l3");c&&v&&J.unshift("com.youtube.fairplay.sbdl");return a?J:p?[].concat(g.lf(J),g.lf(KH.playready)):[].concat(g.lf(KH.playready),g.lf(J))}; d5=function(p,x,a,v,c){v=v===void 0?!1:v;g.y.call(this);this.JG=x;this.useCobaltWidevine=v;this.jA=c;this.Z=[];this.j={};this.U={};this.callback=null;this.C=!1;this.B=[];this.initialize(p,!a)}; g_g=function(p,x){p.callback=x;p.B=[];Ra(p.JG.experiments)?bT(p):yLJ(p)}; bT=function(p){if(!p.b$())if(p.Z.length===0)p.callback(p.B);else{var x=p.Z[0],a=p.j[x],v=Za_(p,a);if(r5&&r5.keySystem===x&&r5.i1G===JSON.stringify(v))p.jA("remksa",{re:!0}),Gkz(p,a,r5.keySystemAccess);else{var c,J;p.jA("remksa",{re:!1,ok:(J=(c=r5)==null?void 0:c.keySystem)!=null?J:""});r5=void 0;navigator.requestMediaKeySystemAccess(x,v).then(Ew(function(R){Gkz(p,a,R,v)}),Ew(function(){p.C=!p.C&&p.j[p.Z[0]].flavor==="widevine"; p.C||p.Z.shift();bT(p)}))}}}; Gkz=function(p,x,a,v){if(!p.b$()){v&&(r5={keySystem:x.keySystem,keySystemAccess:a,i1G:JSON.stringify(v)});x.keySystemAccess=a;if($A(x)){a=Bh();v=g.k(Object.keys(p.U[x.flavor]));for(var c=v.next();!c.done;c=v.next())c=c.value,x.U[c]=!!a.canPlayType(c)}else{a=x.keySystemAccess.getConfiguration();if(a.audioCapabilities)for(v=g.k(a.audioCapabilities),c=v.next();!c.done;c=v.next())x.U[c.value.contentType]=!0;if(a.videoCapabilities)for(a=g.k(a.videoCapabilities),v=a.next();!v.done;v=a.next())x.U[v.value.contentType]= !0}p.B.push(x);p.useCobaltWidevine||p.D("html5_enable_vp9_fairplay")&&v0(x)?(p.Z.shift(),bT(p)):p.callback(p.B)}}; Za_=function(p,x){var a={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(p.D("html5_enable_vp9_fairplay")&&sd(x))return a.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),a.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[a];$A(x)&&(a.initDataTypes=["keyids","cenc"]);for(var v=g.k(Object.keys(p.U[x.flavor])),c=v.next();!c.done;c=v.next()){c=c.value;var J=c.indexOf("audio/")===0,R=J?a.audioCapabilities:a.videoCapabilities;x.flavor!== "widevine"||p.C?R.push({contentType:c}):J?R.push({contentType:c,robustness:"SW_SECURE_CRYPTO"}):(g.Li&&g.wT("windows nt")&&!p.D("html5_drm_enable_moho")||R.push({contentType:c,robustness:"HW_SECURE_ALL"}),J=c,p.JG.C.j&&c.includes("vp09")&&(J=c+"; experimental=allowed"),R.push({contentType:J,robustness:"SW_SECURE_DECODE"}),B0(p.JG)==="MWEB"&&(ny()||Ei())&&(p.jA("swcrypto",{}),R.push({contentType:c,robustness:"SW_SECURE_CRYPTO"})))}return[a]}; yLJ=function(p){if(pH()&&(g.BR||Nk))p.B.push(new F0("fairplay","com.apple.fps.1_0","",p.JG.experiments));else{var x=OaU(),a=g.ME(p.Z,function(v){var c=p.j[v],J=!1,R=!1,d;for(d in p.U[c.flavor])x(d,v)&&(c.U[d]=!0,J=J||d.indexOf("audio/")===0,R=R||d.indexOf("video/")===0);return J&&R}); a&&p.B.push(p.j[a]);p.Z=[]}p.callback(p.B)}; OaU=function(){var p=pH();if(p){var x=p.isTypeSupported;return function(v,c){return x(c,v)}}var a=Bh(); return a&&(a.addKey||a.webkitAddKey)?function(v,c){return!!a.canPlayType(v,c)}:function(){return!1}}; NMI=function(p){this.experiments=p;this.U=2048;this.B=0;this.Zt=(this.V=this.D("html5_streaming_resilience"))?.5:.25;var x=x===void 0?0:x;this.j=g.e_(this.experiments,"html5_media_time_weight_prop")||x;this.T=(this.C=this.experiments.cO("html5_consider_end_stall"))&&lT;this.Z=this.experiments.cO("html5_measure_max_progress_handling");this.Y=this.D("html5_treat_requests_pre_elbow_as_metadata");this.S=this.D("html5_media_time_weight")||!!this.j;this.D("html5_sabr_live_audio_early_return_fix")&&lT&& (this.U=65536)}; AL8=function(p,x){this.U=void 0;this.experimentIds=p?p.split(","):[];this.flags=n6(x||"","&");p={};x=g.k(this.experimentIds);for(var a=x.next();!a.done;a=x.next())p[a.value]=!0;this.experiments=p}; g.e_=function(p,x){p=p.flags[x];JSON.stringify(p);return Number(p)||0}; LH=function(p,x){return(p=p.flags[x])?p.toString():""}; Pl1=function(p){if(p=p.flags.html5_web_po_experiment_ids)if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; qez=function(p){if(p.U)return p.U;if(p.experimentIds.length<=1)return p.U=p.experimentIds,p.U;var x=[].concat(g.lf(p.experimentIds)).map(function(v){return Number(v)}); x.sort();for(var a=x.length-1;a>0;--a)x[a]-=x[a-1];p.U=x.map(function(v){return v.toString()}); p.U.unshift("v1");return p.U}; e2f=function(p){return n_b.then(p)}; YA=function(p,x,a){this.experiments=p;this.u$=x;this.F5=a===void 0?!1:a;this.T=!!g.$t("cast.receiver.platform.canDisplayType");this.Y={};this.Zt=!1;this.B=new Map;this.V=!0;this.Z=this.j=!1;this.U=new Map;this.pI=0;this.O7=this.experiments.cO("html5_disable_vp9_encrypted");this.C=this.experiments.cO("html5_enable_encrypted_av1");p=g.$t("cast.receiver.platform.getValue");this.S=!this.T&&p&&p("max-video-resolution-vpx")||null;ul8(this);this.j=!!(gT()&&zS()>=21)}; fkQ=function(p,x,a){a=a===void 0?1:a;var v=x.itag;if(v==="0")return!0;var c=x.mimeType;if(x.rr==="1e"&&!p.C)return"dav1enc";if(Ci(x)&&p.Zt)return"dav1";if(x.video&&(x.video.isHdr()||x.video.primaries==="bt2020")&&!(yK(p,g9.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(v==="338"&&!(g.Li?WG(53):g.Jc&&WG(64)))return"dopus";var J=a;J=J===void 0?1: J;a={};x.video&&(x.video.width&&(a[g9.WIDTH.name]=x.video.width),x.video.height&&(a[g9.HEIGHT.name]=x.video.height),x.video.fps&&(a[g9.FRAMERATE.name]=x.video.fps*J),x.video.U&&(a[g9.EOTF.name]=x.video.U),x.y6&&(a[g9.BITRATE.name]=x.y6*8*J),x.rr==="("&&(a[g9.CRYPTOBLOCKFORMAT.name]="subsample"),x.video.projectionType==="EQUIRECTANGULAR"||x.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||x.video.projectionType==="MESH")&&(a[g9.DECODETOTEXTURE.name]="true");x.audio&&x.audio.numChannels&& (a[g9.CHANNELS.name]=x.audio.numChannels);p.j&&m3(x)&&(a[g9.EXPERIMENTAL.name]="allowed");J=g.k(Object.keys(g9));for(var R=J.next();!R.done;R=J.next()){R=g9[R.value];var d;if(d=a[R.name])if(d=!(R===g9.EOTF&&x.mimeType.indexOf("vp09.02")>0)){d=R;var b=x;d=!(p.experiments.cO("html5_ignore_h264_framerate_cap")&&d===g9.FRAMERATE&&fEx(b))}if(d)if(yK(p,R))if(p.S){if(p.S[R.name] 1080&&x.F1&&(c+="; hdcp=2.2");return v==="227"?"hqcenc":v!=="585"&&v!=="588"&&v!=="583"&&v!=="586"&&v!=="584"&&v!=="587"&&v!=="591"&&v!=="592"||p.experiments.cO("html5_enable_new_hvc_enc")?gT()&&zS()>=21&&g.wT("appletv5")&&(v==="410"||v==="845")?!0:p.isTypeSupported(c)?!0:"tpus":"newhvc"}; hc=function(){var p=Ei()&&!WG(29),x=g.wT("google tv")&&g.wT("chrome")&&!WG(30);return p||x?!1:zaT()}; VAx=function(p,x,a){var v=480;x=g.k(x);for(var c=x.next();!c.done;c=x.next()){c=c.value;var J=c.video.qualityOrdinal;J<=1080&&J>v&&fkQ(p,c,a)===!0&&(v=J)}return v}; g.jF=function(p,x){x=x===void 0?!1:x;return hc()&&p.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!x&&p.canPlayType(Bh(),"application/x-mpegURL")?!0:!1}; pK_=function(p){F0N(function(){for(var x=g.k(Object.keys(g9)),a=x.next();!a.done;a=x.next())yK(p,g9[a.value])})}; yK=function(p,x){x.name in p.Y||(p.Y[x.name]=x5_(p,x));return p.Y[x.name]}; x5_=function(p,x){if(p.S)return!!p.S[x.name];if(x===g9.BITRATE&&p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(x===g9.AV1_CODECS)return p.isTypeSupported("video/mp4; codecs="+x.valid)&&!p.isTypeSupported("video/mp4; codecs="+x.IV);if(x.video){var a='video/webm; codecs="vp9"';p.isTypeSupported(a)||(a='video/mp4; codecs="avc1.4d401e"')}else a='audio/webm; codecs="opus"', p.isTypeSupported(a)||(a='audio/mp4; codecs="mp4a.40.2"');return p.isTypeSupported(a+"; "+x.name+"="+x.valid)&&!p.isTypeSupported(a+"; "+x.name+"="+x.IV)}; $5_=function(p,x){var a=0;p.B.has(x)&&(a=p.B.get(x).Kt);p.B.set(x,{Kt:a+1,w5:Math.pow(2,a+1)});p.Z=!0}; tS=function(p){for(var x=[],a=g.k(p.U.keys()),v=a.next();!v.done;v=a.next()){v=v.value;var c=p.U.get(v);x.push(v+"_"+c.maxWidth+"_"+c.maxHeight)}return x.join(".")}; kwQ=function(p,x){for(var a=new Map,v=g.k(p.U.keys()),c=v.next();!c.done;c=v.next()){c=c.value;var J=c.split("_")[0];x.has(J)||a.set(c,p.U.get(c))}p.U=a}; U68=function(p,x,a){var v,c=((v=a.video)==null?void 0:v.fps)||0;v=x+"_"+c;var J=!!a.audio,R={itag:a.itag,rr:x,K3:J};if(J)R.numChannels=a.audio.numChannels;else{var d=a.video;R.maxWidth=d==null?void 0:d.width;R.maxHeight=d==null?void 0:d.height;R.maxFramerate=c;yK(p,g9.BITRATE)&&(R.maxBitrateBps=a.y6*8);R.KU=d==null?void 0:d.isHdr()}d=p.U.get(v);d?J||(a=Math.max(d.maxWidth||0,d.maxHeight||0)>Math.max(R.maxWidth||0,R.maxHeight||0)?d:R,x={itag:a.itag,rr:x,K3:J,maxWidth:Math.max(d.maxWidth||0,R.maxWidth|| 0),maxHeight:Math.max(d.maxHeight||0,R.maxHeight||0),maxFramerate:c,KU:a.KU},yK(p,g9.BITRATE)&&(x.maxBitrateBps=a.maxBitrateBps),p.U.set(v,x)):p.U.set(v,R)}; Hx_=function(p,x,a){var v,c=((v=a.video)==null?void 0:v.fps)||0;v=x+"_"+c;var J=!!a.audio,R=p.U.get(v);a:{var d=p.U.get(v),b=!!a.audio;if(d){if(b){var r=!1;break a}var B;if(!b&&((r=a.video)==null?0:r.height)&&d.maxHeight&&d.maxHeight>=((B=a.video)==null?void 0:B.height)){r=!1;break a}}r=!0}r&&(r=a.itag,x=R?R:{itag:r,rr:x,K3:J},J?x.numChannels=a.audio.numChannels:(J=a.video,x.maxWidth=J==null?void 0:J.width,x.maxHeight=J==null?void 0:J.height,x.maxFramerate=c,yK(p,g9.BITRATE)&&(x.maxBitrateBps=a.y6* 8),x.KU=J==null?void 0:J.isHdr()),p.U.set(v,x))}; ul8=function(p){var x;(x=navigator.mediaCapabilities)!=null&&x.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(a){a.smooth&&a.powerEfficient&&(p.pI=2160)})}; Ia=function(){g.Fx.call(this);this.items={}}; MD=function(p,x){this.U=p;this.cipher=this.U.exports.AES128CTRCipher_create(x.byteOffset)}; kA=function(){this.Z=this.mB=0;this.U=Array.from({length:W0.length}).fill(0)}; aPT=function(){}; s_1=function(){this.startTimeMs=(0,g.WR)();this.U=!1}; vbT=function(){this.U=new aPT}; cKN=function(p,x,a,v){v=v===void 0?1:v;a>=0&&(x in p.U||(p.U[x]=new kA),p.U[x].YH(a,v))}; JKb=function(p,x,a,v,c){var J=(0,g.WR)(),R=c?c(x):void 0,d;c=(d=R==null?void 0:R.mB)!=null?d:1;if(c!==0){var b;d=(b=R==null?void 0:R.profile)!=null?b:a;cKN(p,d,J-v,c)}return x}; RUT=function(p,x,a,v,c){if(x&&typeof x==="object"){var J=function(R){return JKb(p,R,a,v,c)}; if(Dn(x))return x.then(J);if(kQ(x))return mo(x,J)}return JKb(p,x,a,v,c)}; K5I=function(){}; rK_=function(p,x){return fz(d5Q,function(){var a=this;return function c(){var J,R,d;return yb(c,function(b){switch(b.Z){case 1:g.UQ(b,2);if(!a.B)throw"wasm.ps.ns";J=p;R=ZJ;return Wo(b,Cz(bKo(a,x)),4);case 4:d=R(b.U);if(!d)throw"wasm.ps.um";try{return b.return(new WebAssembly.Instance(d,J))}catch(r){}return Wo(b,Cz(WebAssembly.instantiate(d,J)),5);case 5:return b.return(b.U);case 2:g.o8(b),g.z1(b,0)}})}()})}; BPx=function(p,x){p.U||(p.U=mo(Ta(function(){return fetch(x)}),function(a){return a.arrayBuffer()}),Sx(p.U,function(a){p.U=void 0; throw"wasm.ps.f: "+a;}))}; bKo=function(p,x){if(p.Z)return p.Z;p.Z=lP8(p,x);Sx(p.Z,function(a){p.Z=void 0;throw"wasm.ps.c: "+a;}); return p.Z}; lP8=function(p,x){return fz(p,function(){var a=this;return function c(){var J,R,d,b,r,B,l,L,Y,h,D,H,f,m;return yb(c,function(X){switch(X.Z){case 1:g.UQ(X,2);J=[];R=window.ywc;if(!R){X.Ia(4);break}d=R[x];if(!d){X.Ia(4);break}if(d.mod)return X.return(d.mod);if(!d.modP){X.Ia(6);break}g.DJ(X,7);b=ZJ;return Wo(X,Cz(d.modP),9);case 9:return X.return(b(X.U));case 7:g.SI(X),J.unshift("pcm");case 6:if(d.bin){a.U=Uw(d.bin);X.Ia(4);break}if(!d.binP){X.Ia(4);break}g.DJ(X,12);r=Wc;B=Uw;l=ZJ;return Wo(X,Cz(d.binP), 14);case 14:a.U=B.call(r,l(X.U));g.T1(X,4);break;case 12:g.SI(X),a.U=void 0,J.unshift("pfb");case 4:if(!a.U){X.Ia(15);break}g.DJ(X,16);L=ZJ;return Wo(X,Cz(a.U),18);case 18:Y=L(X.U);if(a.j)try{return X.return(new WebAssembly.Module(Y))}catch(E){a.j=!1,J.unshift("f0cs")}h=ZJ;return Wo(X,Cz(WebAssembly.compile(Y)),19);case 19:return X.return(h(X.U));case 16:g.SI(X),a.U=void 0,J.unshift("f0ca");case 15:return g.DJ(X,20),BPx(a,x),D=ZJ,Wo(X,Cz(a.U),22);case 22:H=D(X.U);if(a.j)try{return X.return(new WebAssembly.Module(H))}catch(E){a.j= !1,J.unshift("f1cs")}f=ZJ;return Wo(X,Cz(WebAssembly.compile(H)),23);case 23:return X.return(f(X.U));case 20:m=g.SI(X),a.U=void 0,a.B=!1,J.unshift("f1ca: "+m);case 21:throw"["+J.map(function(E){return'"'+E+'"'}).join(", ")+"]"; case 2:g.o8(X),g.z1(X,0)}})}()})}; L5x=function(){}; YRQ=function(){var p=this;this.proc_exit=function(){}; this.fd_write=function(x,a,v){if(!p.exports)return 1;x=new Uint32Array(p.exports.memory.buffer,a,v*2);a=[];for(var c=0;c0)x=p.byterate,this.Zt=!0;else{var v; a=(((v=navigator.connection)==null?void 0:v.downlink)||0)*64*1024;a>0&&(x=a,this.Zt=!0)}this.j.a5(this.policy.S,x);p.delay>0&&this.Y.a5(1,Math.min(p.delay,2));p.stall>0&&this.V.a5(1,p.stall);p.init>0&&(this.hG=Math.min(p.init,this.hG));p.interruptions&&(this.B=this.B.concat(p.interruptions),this.B.length>16&&this.B.pop());this.pI=(0,g.WR)();this.policy.V>0&&(this.V6=new g.AW(this.gr,this.policy.V,this),g.Z(this,this.V6),this.V6.start())}; tc=function(p,x,a,v){p.j.a5(v===void 0?x:v,a/x);p.S=(0,g.WR)()}; U5o=function(p){p.C||(p.C=(0,g.WR)());p.policy.T&&(p.S=(0,g.WR)())}; HKT=function(p,x){if(p.C){var a=x-p.C;if(a<6E4){if(a>1E3){var v=p.interruptions;v.push(Math.ceil(a));v.sort(function(c,J){return J-c}); v.length>16&&v.pop()}p.u$+=a}}p.C=x}; z8=function(p,x,a,v,c,J){J=J===void 0?!1:J;p.qT.a5(x,a/x);p.S=(0,g.WR)();c||p.T.a5(1,x-v);J||(p.C=0);p.pI>-1&&(0,g.WR)()-p.pI>3E4&&TPI(p)}; w5=function(p,x,a){x=Math.max(x,p.Z.U);p.V.a5(1,a/x)}; Ed=function(p){p=p.Y.f3()+p.F5.f3()||0;p=isNaN(p)?.5:p;return p=Math.min(p,5)}; y_=function(p,x,a){isNaN(a)||(p.O7+=a);isNaN(x)||(p.tG+=x)}; g5=function(p){p=p.j.f3();return p>0?p:1}; ZG=function(p,x,a){x=x===void 0?!1:x;a=a===void 0?1048576:a;var v=g5(p);v=1/((p.V.f3()||0)*p.policy.Zt+1/v);var c=p.qT.f3();c=c>0?c:1;var J=Math.max(v,c);p.policy.C>0&&c=4E3}; m5b=function(p){this.experiments=p;this.U=17;this.j=13E4;this.S=.5;this.B=this.Z=!1;this.pI=this.D("html5_use_histogram_for_bandwidth");this.C=g.e_(this.experiments,"html5_auxiliary_estimate_weight");this.Zt=g.e_(this.experiments,"html5_stall_factor")||1;this.V=g.e_(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.cO("html5_trigger_loader_when_idle_network");this.T=this.experiments.cO("html5_sabr_fetch_on_idle_network_preloaded_players")}; fPN=function(p,x){p=p===void 0?{}:p;x=x===void 0?{}:x;g.y.call(this);var a=this;this.values=p;this.Ib=x;this.Z={};this.j=this.U=0;this.B=new g.AW(function(){SRU(a)},1E4); g.Z(this,this.B)}; Od=function(p,x){C6I(p,x);return p.values[x]&&p.Ib[x]?p.values[x]/Math.pow(2,p.U/p.Ib[x]):0}; C6I=function(p,x){p.values[x]||(x=uR_(),p.values=x.values||{},p.Ib=x.halfLives||{},p.Z=x.values?Object.assign({},x.values):{})}; SRU=function(p){var x=uR_();if(x.values){x=x.values;for(var a={},v=g.k(Object.keys(p.values)),c=v.next();!c.done;c=v.next())c=c.value,x[c]&&p.Z[c]&&(p.values[c]+=x[c]-p.Z[c]),a[c]=Od(p,c);p.Z=a}x=p.Ib;a={};a.values=p.Z;a.halfLives=x;g.Qe("yt-player-memory",a,2592E3)}; Kk=function(p,x,a,v,c){g.y.call(this);this.webPlayerContextConfig=x;this.ZW=v;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.JR=this.US=this.YN=this.dh=this.userDisplayName=this.userDisplayImage=this.YO="";this.U={};this.OS={};this.controlsType="0";this.ol=NaN;this.HO=!1;this.Xq=(0,g.WR)();this.Zp=0;this.pY=this.jy=!1;this.ev=!0;this.preferGapless=this.kC=this.tU=this.j=this.K1=!1;this.qX=[];this.Y_=!1;this.d_=0;p=p?g.hp(p):{};x&&x.csiPageType&&(this.csiPageType=x.csiPageType);x&&x.csiServiceName&& (this.csiServiceName=x.csiServiceName);x&&x.preferGapless&&(this.preferGapless=x.preferGapless);this.experiments=new AL8(x?x.serializedExperimentIds:p.fexp,x?x.serializedExperimentFlags:p.fflags);this.forcedExperiments=x?x.serializedForcedExperimentIds:xz("",p.forced_experiments)||void 0;this.cspNonce=(x==null?0:x.cspNonce)?x.cspNonce:xz("",p.csp_nonce);this.D("web_player_deprecated_uvr_killswitch");try{var J=document.location.toString()}catch(co){J=""}this.ow=J;this.ancestorOrigins=(v=window.location.ancestorOrigins)? Array.from(v):[];this.B=Vl(!1,x?x.isEmbed:p.is_embed);if(x&&x.device){if(v=x.device,v.androidOsExperience&&(this.U.caoe=""+v.androidOsExperience),v.androidPlayServicesVersion&&(this.U.capsv=""+v.androidPlayServicesVersion),v.brand&&(this.U.cbrand=v.brand),v.browser&&(this.U.cbr=v.browser),v.browserVersion&&(this.U.cbrver=v.browserVersion),v.cobaltReleaseVehicle&&(this.U.ccrv=""+v.cobaltReleaseVehicle),this.U.c=v.interfaceName||"WEB",this.U.cver=v.interfaceVersion||"html5",v.interfaceTheme&&(this.U.ctheme= v.interfaceTheme),this.U.cplayer=v.interfacePlayerType||"UNIPLAYER",v.model&&(this.U.cmodel=v.model),v.network&&(this.U.cnetwork=v.network),v.os&&(this.U.cos=v.os),v.osVersion&&(this.U.cosver=v.osVersion),v.platform&&(this.U.cplatform=v.platform),J=LH(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),J==="all"||J==="once")v.chipset&&(this.OS.cchip=v.chipset),v.cobaltAppVersion&&(this.OS.ccappver=v.cobaltAppVersion),v.firmwareVersion&&(this.OS.cfrmver=v.firmwareVersion),v.deviceYear&&(this.OS.crqyear= v.deviceYear)}else this.U.c=p.c||"web",this.U.cver=p.cver||"html5",this.U.cplayer="UNIPLAYER";this.loaderUrl=x?this.B||XK1(this)&&x.loaderUrl?x.loaderUrl||"":this.ow:this.B||XK1(this)&&p.loaderUrl?xz("",p.loaderUrl):this.ow;this.B&&g.pG("yt.embedded_player.embed_url",this.loaderUrl);this.Y=tw(this.loaderUrl,iKI);v=this.loaderUrl;var R=R===void 0?!1:R;this.ye=oU(tw(v,obf),v,R,"Trusted Ad Domain URL");this.G$=Vl(!1,p.privembed);this.protocol=this.ow.indexOf("http:")===0?"http":"https";this.Va=rqo((x? x.customBaseYoutubeUrl:p.BASE_YT_URL)||"")||rqo(this.ow)||this.protocol+"://www.youtube.com/";R=x?x.eventLabel:p.el;v="detailpage";R==="adunit"?v=this.B?"embedded":"detailpage":R==="embedded"||this.Y?v=Fr(v,R,tHg):R&&(v="embedded");this.F5=v;H6U();R=null;v=x?x.playerStyle:p.ps;J=g.kt(zUg,v);!v||J&&!this.Y||(R=v);this.playerStyle=R;this.S=g.kt(zUg,this.playerStyle);this.houseBrandUserStatus=x==null?void 0:x.houseBrandUserStatus;this.pI=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.rb=!this.pI;this.V6=Vl(!1,p.disableplaybackui);this.disablePaidContentOverlay=Vl(!1,x==null?void 0:x.disablePaidContentOverlay);this.disableSeek=Vl(!1,x==null?void 0:x.disableSeek);this.enableSpeedOptions=(x==null?void 0:x.enableSpeedOptions)||(Bh().defaultPlaybackRate?ND||g.qk||Ac?g.Jc&&WG("20")||g.Li&&WG("4")||g.P0&&WG("11")||Oi():!(g.P0&&!g.wT("chrome")||ND||g.wT("android")||g.wT("silk")):!1);this.PG=Vl(!1,p.enable_faster_speeds);var d;this.supportsVarispeedExtendedFeatures=(d=x==null?void 0: x.supportsVarispeedExtendedFeatures)!=null?d:!1;this.Z=Vl(this.playerStyle==="blazer",p.is_html5_mobile_device||x&&x.isMobileDevice);this.tG=PZ()||ny();this.fD=this.D("mweb_allow_background_playback")?!1:this.Z&&!this.S;this.qT=jw();this.mw=g.qD;var b;this.jB=!!(x==null?0:(b=x.embedsHostFlags)==null?0:b.optOutApiDeprecation);var r;x?x.hideInfo!==void 0&&(r=!x.hideInfo):r=p.showinfo;this.Tc=g.nH(this)&&!this.jB||Vl(!eF(this)&&!uT(this)&&!this.S,r);this.fJ=x?!!x.mobileIphoneSupportsInlinePlayback:Vl(!1, p.playsinline);d=this.Z&&V_&&Fn!=null&&Fn>0&&Fn<=2.3;b=x?x.useNativeControls:p.use_native_controls;this.V=g.nH(this)&&this.Z;r=this.Z&&!this.V;b=g.pk(this)||!d&&Vl(r,b)?"3":"1";this.disableOrganicUi=!(x==null||!x.disableOrganicUi);r=x?x.controlsType:p.controls;this.controlsType=this.disableOrganicUi||r==="0"||r===0?"0":b;this.fT=this.Z;this.color=Fr("red",x?x.progressBarColor:p.color,wKb);this.Ya=this.controlsType==="3";this.KW=!this.B;this.ys=(b=!this.KW&&!uT(this)&&!this.pI&&!this.S&&!eF(this))&& !this.Ya&&this.controlsType==="1";this.aA=g.xO(this)&&b&&this.controlsType==="0"&&!this.ys&&!(x==null?0:x.embedsEnableEmc3ds);this.NC=this.Da=d;this.Kp=(this.controlsType==="3"||this.Z||Vl(!1,p.use_media_volume))&&!this.V;this.le=Nk&&!g.gu(601)?!1:!0;this.mj=this.B||!1;this.vX=uT(this)?"":(this.loaderUrl||p.post_message_origin||"").substring(0,128);this.widgetReferrer=xz("",x?x.widgetReferrer:p.widget_referrer);var B;x?x.disableCastApi&&(B=!1):B=p.enablecastapi;B=!this.Y||Vl(!0,B);d=!0;x&&x.disableMdxCast&& (d=!1);this.RM=this.D("enable_cast_for_web_unplugged")&&g.$O(this)&&d||g.SG(this)&&d||B&&d&&this.controlsType==="1"&&!this.Z&&(uT(this)||g.xO(this)||g.af(this));this.Lq=!!window.document.pictureInPictureEnabled||hD();B=x?!!x.supportsAutoplayOverride:Vl(!1,p.autoplayoverride);this.FM=!(this.Z&&!g.nH(this))&&!g.wT("nintendo wiiu")||B;this.Z$=(x?!!x.enableMutedAutoplay:Vl(!1,p.mutedautoplay))&&!1;B=(uT(this)||eF(this))&&this.playerStyle==="blazer";this.ma=x?!!x.disableFullscreen:!Vl(!0,p.fs);d=g.vb(g.sF(this))&& g.nH(this);this.oa=!this.ma&&(B||g.rr())&&!d;this.h7=this.D("html5_picture_in_picture_logging_onresize");var l;this.i7=(l=g.e_(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?l:.33;this.fY=this.D("html5_picture_in_picture_blocking_onresize");this.Hy=this.D("html5_picture_in_picture_blocking_ontimeupdate");this.S_=this.D("html5_picture_in_picture_blocking_document_fullscreen");this.eQ=this.D("html5_picture_in_picture_blocking_standard_api");l=Ei()&&WG(58)&&!ny();B=gd||typeof MediaSource=== "undefined";this.Tg=this.D("uniplayer_block_pip")&&(l||B)||this.fY||this.Hy||this.eQ;l=g.nH(this)&&!this.jB;var L;x?x.disableRelatedVideos!==void 0&&(L=!x.disableRelatedVideos):L=p.rel;this.RA=l||Vl(!this.S,L);this.gz=Vl(!1,x?x.enableContentOwnerRelatedVideos:p.co_rel);this.T=ny()&&Fn>0&&Fn<=4.4?"_top":"_blank";this.zC=g.af(this);this.H$=Vl(this.playerStyle==="blazer",x?x.enableCsiLogging:p.enablecsi);switch(this.playerStyle){case "blogger":L="bl";break;case "gmail":L="gm";break;case "gac":L="ga"; break;case "ads-preview":L="ap";break;case "books":L="gb";break;case "docs":case "flix":L="gd";break;case "duo":L="gu";break;case "google-live":L="gl";break;case "google-one":L="go";break;case "play":case "play-ads":L="gp";break;case "chat":L="hc";break;case "hangouts-meet":L="hm";break;case "photos-edu":case "picasaweb":L="pw";break;default:L="yt"}this.Zt=L;this.O7=xz("",x?x.authorizedUserIndex:p.authuser);this.XV=g.nH(this)&&(this.G$||!lON()||this.tG);var Y;x?x.disableWatchLater!==void 0&&(Y=!x.disableWatchLater): Y=p.showwatchlater;this.L3=((L=!this.XV)||!!this.O7&&L)&&Vl(!this.pI,this.Y?Y:void 0);this.lc=x?x.isMobileDevice||!!x.disableKeyboardControls:Vl(!1,p.disablekb);this.loop=Vl(!1,p.loop);this.pageId=xz("",x?x.initialDelegatedSessionId:p.pageid);this.A2=Vl(!0,p.canplaylive);Y=g.e_(this.experiments,"html5_default_audio_quality_setting_lr");var h;this.yQ=(h=Eb1[Eb1[Y]])!=null?h:0;this.T4=Vl(!1,p.livemonitor);this.disableSharing=Vl(this.S,x?x.disableSharing:p.ss);(h=x&&this.D("fill_video_container_size_override_from_wpcc")? x.videoContainerOverride:p.video_container_override)?(Y=h.split("x"),Y.length!==2?h=null:(h=Number(Y[0]),Y=Number(Y[1]),h=isNaN(h)||isNaN(Y)||h*Y<=0?null:new g.Ps(h,Y))):h=null;this.oV=h;this.mute=x?!!x.startMuted:Vl(!1,p.mute);this.storeUserVolume=!this.mute&&Vl(this.controlsType!=="0",x?x.storeUserVolume:p.store_user_volume);h=x?x.annotationsLoadPolicy:p.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Fr(void 0,h,vx);this.captionsLanguagePreference=x?x.captionsLanguagePreference|| "":xz("",p.cc_lang_pref);h=Fr(2,x?x.captionsLanguageLoadPolicy:p.cc_load_policy,vx);this.controlsType==="3"&&h===2&&(h=3);this.f0=h;this.y8=x?x.hl||"en_US":xz("en_US",p.hl);this.region=x?x.contentRegion||"US":xz("US",p.cr);this.hostLanguage=x?x.hostLanguage||"en":xz("en",p.host_language);this.wb=!this.G$&&Math.random()=480;this.schedule=new oa(l,new NMI(this.experiments),c);g.Z(this,this.schedule);var D;this.enableSafetyMode=(D=x==null?void 0:x.initialEnableSafetyMode)!=null?D:Vl(!1,p.enable_safety_mode);c=this.V6?!1:uT(this)&&this.playerStyle!== "blazer";var H;x?x.disableAutonav!=null&&(H=!x.disableAutonav):H=p.allow_autonav;this.Iw=Vl(c,!this.pI&&H);this.sendVisitorIdHeader=x?!!x.sendVisitorIdHeader:Vl(!1,p.send_visitor_id_header);var f;this.playerStyle==="docs"&&(x?f=x.disableNativeContextMenu:f=p.disable_native_context_menu);this.disableNativeContextMenu=Vl(!1,f);this.CD=Kj(this)&&this.D("enable_skip_intro_button");this.embedConfig=xz("",x?x.serializedEmbedConfig:p.embed_config);this.u$=sU(p,g.nH(this));this.j=this.u$==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(x==null||!x.embedsErrorLinks);this.Ac=Vl(!1,p.full_window);var m;this.LI=!((m=this.webPlayerContextConfig)==null?0:m.chromeless);var X;this.livingRoomAppMode=Fr("LIVING_ROOM_APP_MODE_UNSPECIFIED",p.living_room_app_mode||(x==null?void 0:(X=x.device)==null?void 0:X.livingRoomAppMode),ZKo);var E;H=pP(NaN,x==null?void 0:(E=x.device)==null?void 0:E.deviceYear);isNaN(H)||(this.deviceYear=H);this.transparentBackground=x?!!x.transparentBackground:Vl(!1,p.transparent_background);this.showMiniplayerButton= x?!!x.showMiniplayerButton:Vl(!1,p.show_miniplayer_button);var A;g.nH(this)&&!(x==null?0:(A=x.embedsHostFlags)==null?0:A.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=x?!!x.externalFullscreen:Vl(!1,p.external_fullscreen);this.showMiniplayerUiWhenMinimized=x?!!x.showMiniplayerUiWhenMinimized:Vl(!1,p.use_miniplayer_ui);var u;this.ev=(u=p.show_loop_video_toggle)!=null?u:!0;this.Ii=Math.random()<1E-4;if(p.onesie_hot_config||(x==null?0:x.onesieHotConfig))this.FX=new k$1(p.onesie_hot_config, x==null?void 0:x.onesieHotConfig),g.Z(this,this.FX);this.isTectonic=x?!!x.isTectonic:!!p.isTectonic;this.playerCanaryState=a;this.playerCanaryStage=x==null?void 0:x.canaryStage;this.MN=new fPN;g.Z(this,this.MN);this.datasyncId=(x==null?void 0:x.datasyncId)||g.gx("DATASYNC_ID");this.cU=g.gx("LOGGED_IN",!1);this.OT=(x==null?void 0:x.allowWoffleManagement)||!1;this.HU=Infinity;this.eX=NaN;this.livingRoomPoTokenId=x==null?void 0:x.livingRoomPoTokenId;this.D("html5_high_res_logging_always")?this.tU=!0: this.tU=Math.random()*100=0&&p0&&p.Ii&&(v.sort(),g.Hp(new g.gr("Player client parameters changed after startup",v)));p.userAge=pP(p.userAge,x.user_age);p.YO=xz(p.YO,x.user_display_email);p.userDisplayImage=xz(p.userDisplayImage,x.user_display_image);g.wZ(p.userDisplayImage)||(p.userDisplayImage= "");p.userDisplayName=xz(p.userDisplayName,x.user_display_name);p.dh=xz(p.dh,x.user_gender);p.csiPageType=xz(p.csiPageType,x.csi_page_type);p.csiServiceName=xz(p.csiServiceName,x.csi_service_name);p.H$=Vl(p.H$,x.enablecsi);p.pageId=xz(p.pageId,x.pageid);if(a=x.enabled_engage_types)p.enabledEngageTypes=new Set(a.split(","));x.living_room_session_po_token&&(p.x_=x.living_room_session_po_token.toString())}; dX=function(p,x){return!p.S&&Ei()&&WG(55)&&p.controlsType==="3"&&!x}; g.bm=function(p){p=cx(p.Va);return p==="www.youtube-nocookie.com"?"www.youtube.com":p}; rX=function(p,x,a){return p.protocol+"://i1.ytimg.com/vi/"+x+"/"+(a||"hqdefault.jpg")}; Bx=function(p){return uT(p)&&!g.$O(p)}; g.pk=function(p){return p.D("html5_local_playsinline")?Nk&&!g.gu(602)&&!("playsInline"in Bh()):Nk&&!p.fJ||g.wT("nintendo wiiu")?!0:!1}; B0=function(p){return p.U.c}; g.dZ=function(p){return/^TVHTML5/.test(B0(p))}; g.lm=function(p){return B0(p)==="TVHTML5"}; XK1=function(p){return B0(p)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; gbI=function(p){return p.U.cmodel==="CHROMECAST ULTRA/STEAK"||p.U.cmodel==="CHROMECAST/STEAK"}; g.Lk=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Kj=function(p){return/web/i.test(B0(p))}; g.YO=function(p){return B0(p).toUpperCase()==="WEB"}; Rf=function(p){return B0(p)==="WEB_KIDS"}; g.$O=function(p){return B0(p)==="WEB_UNPLUGGED"}; hC=function(p){return B0(p)==="TVHTML5_UNPLUGGED"}; g.RU=function(p){return g.$O(p)||B0(p)==="TV_UNPLUGGED_CAST"||hC(p)}; g.SG=function(p){return B0(p)==="WEB_REMIX"}; g.jM=function(p){return B0(p)==="WEB_MUSIC_INTEGRATIONS"}; g.If=function(p){return B0(p)==="WEB_EMBEDDED_PLAYER"}; g.Wx=function(p){return(p.deviceIsAudioOnly||!g.Li||gd||p.controlsType==="3"?!1:g.qk?p.B&&g.gu(51):!0)||(p.deviceIsAudioOnly||!g.Jc||gd||p.controlsType==="3"?!1:g.qk?p.B&&g.gu(48):g.gu(38))||(p.deviceIsAudioOnly||!g.P0||gd||p.controlsType==="3"?!1:g.qk?p.B&&g.gu(37):g.gu(27))||!p.deviceIsAudioOnly&&g.M_&&!IOQ()&&g.gu(11)||!p.deviceIsAudioOnly&&g.BR&&g.gu("604.4")}; NP1=function(p){if(g.xO(p)&&V_)return!1;if(g.Jc){if(!g.gu(47)||!g.gu(52)&&g.gu(51))return!1}else if(g.BR)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; P6x=function(p,x){return p.enabledEngageTypes.has(x.toString())||AK_.includes(x)}; uT=function(p){return p.F5==="detailpage"}; g.xO=function(p){return p.F5==="embedded"}; kO=function(p){return p.F5==="leanback"}; eF=function(p){return p.F5==="adunit"||p.playerStyle==="gvn"}; g.af=function(p){return p.F5==="profilepage"}; g.nH=function(p){return p.B&&g.xO(p)&&!eF(p)&&!p.S}; Dw=function(p){if(!p.userDisplayImage)return"";var x=p.userDisplayImage.split("/");if(x.length===5)return p=x[x.length-1].split("="),p[1]="s20-c",x[x.length-1]=p.join("="),x.join("/");if(x.length===8)return x.splice(7,0,"s20-c"),x.join("/");if(x.length===9)return x[7]+="-s20-c",x.join("/");g.Hp(new g.gr("Profile image not a FIFE URL.",p.userDisplayImage));return p.userDisplayImage}; g.UF=function(p){var x=g.bm(p);qR_.includes(x)&&(x="www.youtube.com");return p.protocol+"://"+x}; g.Hx=function(p,x){x=x===void 0?"":x;if(p.ZW){var a=new bl,v,c=p.ZW();c.signedOut?v="":c.token?v=c.token:c.pendingResult.then(function(J){c.signedOut?a.resolve(""):a.resolve(J.token)},function(J){g.Hp(new g.gr("b189348328_oauth_callback_failed",{error:J})); a.resolve(x)}); return v!==void 0?Ql(v):new HZ(a)}return Ql(x)}; TG=function(p,x){x=x===void 0?"":x;return p.cU?Uw(!0):Sx(mo(Uw(g.Hx(p,x)),function(a){return Uw(!!a)}),function(){return Uw(!1)})}; nbf=function(p,x){x==null||mo(x,function(a){p.zt=a;var v,c;(v=p.FX)!=null&&(c=v.U)!=null&&(c.U=new T8(a,c.Z,c.j),g.Z(c,c.U))})}; cx=function(p){var x=g.b$(p);return(p=Number(g.d3(p)[4]||null)||null)?x+":"+p:x}; Qp=function(p,x){x=x===void 0?!1:x;var a=Tl[p],v=eUI[a],c=ue8[p];if(!c||!v)return null;x=new Dc(x?c.height:c.width,x?c.width:c.height,c.fps);v=oE(v,x,a);return new QB(p,v,{video:x,y6:c.bitrate/8})}; F5T=function(p){var x=eUI[Tl[p]],a=VHf[p];return a&&x?new QB(p,x,{audio:new MK(a.audioSampleRate,a.numChannels)}):null}; mV=function(p){this.U=p}; SM=function(p,x,a,v){if(a)return TS();a={};var c=Bh();x=g.k(x);for(var J=x.next();!J.done;J=x.next())if(J=J.value,p.canPlayType(c,J.getInfo().mimeType)||v){var R=J.U.video.quality;if(!a[R]||a[R].getInfo().Ul())a[R]=J}p=[];a.auto&&p.push(a.auto);v=g.k(UB);for(c=v.next();!c.done;c=v.next())(c=a[c.value])&&p.push(c);return p.length?Ql(p):TS()}; pPb=function(p){this.itag=p.itag;this.url=p.url;this.codecs=p.codecs;this.width=p.width;this.height=p.height;this.fps=p.fps;this.bitrate=p.bitrate;var x;this.Z=((x=p.audioItag)==null?void 0:x.split(","))||[];this.Mx=p.Mx;this.F1=p.F1||"";this.AX=p.AX;this.audioChannels=p.audioChannels;this.U=""}; x2Q=function(p,x,a,v){x=x===void 0?!1:x;a=a===void 0?!0:a;v=v===void 0?{}:v;var c={};p=g.k(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;if(x&&MediaSource&&MediaSource.isTypeSupported){var R=J.type;J.audio_channels&&(R=R+"; channels="+J.audio_channels);if(!MediaSource.isTypeSupported(R)){v[J.itag]="tpus";continue}}if(a||!J.drm_families||J.eotf!=="smpte2084"&&J.eotf!=="arib-std-b67"){R=void 0;var d={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},b=J.type.match(/codecs="([^"]*)"/); b=b?b[1]:"";J.audio_track_id&&(R=new g.mM(J.name,J.audio_track_id,!!J.is_default));var r=J.eotf;J=new pPb({itag:J.itag,url:J.url,codecs:b,width:Number(J.width),height:Number(J.height),fps:Number(J.fps),bitrate:Number(J.bitrate),audioItag:J.audio_itag,Mx:r?d[r]:void 0,F1:J.drm_families,AX:R,audioChannels:Number(J.audio_channels)});c[J.itag]=c[J.itag]||[];c[J.itag].push(J)}else v[J.itag]="enchdr"}return c}; $2T=function(p,x,a,v,c){this.j=p;this.Z=x;this.C=a;this.cpn=v;this.S=c;this.B=0;this.U=""}; aUN=function(p,x){p.j.some(function(a){var v;return((v=a.AX)==null?void 0:v.getId())===x}); p.U=x}; fk=function(p,x,a){p.cpn&&(x=g.jL(x,{cpn:p.cpn}));a&&(x=g.jL(x,{paired:a}));return x}; sGT=function(p,x){p=p.itag.toString();x!==null&&(p+=x.itag.toString());return p}; vvT=function(p){for(var x=[],a=[],v=g.k(p.Z),c=v.next();!c.done;c=v.next())c=c.value,c.bitrate<=p.B?x.push(c):a.push(c);x.sort(function(J,R){return R.bitrate-J.bitrate}); a.sort(function(J,R){return J.bitrate-R.bitrate}); p.Z=x.concat(a)}; Ck=function(p,x,a){this.U=p;this.Z=x;this.expiration=a;this.JX=null}; cR1=function(p,x){if(!(gd||GS()||gT()))return null;p=x2Q(x,p.D("html5_filter_fmp4_in_hls"));if(!p)return null;x=[];for(var a={},v=g.k(Object.keys(p)),c=v.next();!c.done;c=v.next()){c=g.k(p[c.value]);for(var J=c.next();!J.done;J=c.next()){var R=J.value;R.AX&&(J=R.AX.getId(),a[J]||(R=new g.WX(J,R.AX),a[J]=R,x.push(R)))}}return x.length>0?x:null}; bn1=function(p,x,a,v,c,J,R){if(!(gd||GS()||gT()))return TS();var d={},b=JRJ(a),r=x2Q(a,p.D("html5_filter_fmp4_in_hls"),p.C.V,d);if(!r)return R({noplst:1}),TS();R$8(r);a={};var B=(a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a),l;a=[];var L=[],Y=[],h=null,D="";v=v&&v.match(/hls_timedtext_playlist/)?new pPb({itag:"0",url:v,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,AX:new g.mM("English","en",!1)}):null;for(var H=g.k(Object.keys(r)),f=H.next();!f.done;f=H.next())if(f=f.value,!p.D("html5_disable_drm_hfr_1080")|| f!=="383"&&f!=="373"){f=g.k(r[f]);for(var m=f.next();!m.done;m=f.next())if(m=m.value,m.width){for(var X=g.k(m.Z),E=X.next();!E.done;E=X.next())if(E=E.value,r[E]){m.U=E;break}m.U||(m.U=KEg(r,m));if(X=r[m.U])if(a.push(m),m.F1==="fairplay"&&(l=B),E="",m.Mx==="PQ"?E="smpte2084":m.Mx==="HLG"&&(E="arib-std-b67"),E&&(D=E),Y.push(d2g(X,[m],v,J,m.itag,m.width,m.height,m.fps,b,void 0,void 0,l,E)),!h||m.width*m.height*m.fps>h.width*h.height*h.fps)h=m}else L.push(m)}else d[f]="disdrmhfr";Y.reduce(function(A, u){return u.getInfo().isEncrypted()&&A},!0)&&(l=B); c=Math.max(c,0);B=h||{};r=B.fps===void 0?0:B.fps;h=B.width===void 0?0:B.width;B=B.height===void 0?0:B.height;H=p.D("html5_native_audio_track_switching");Y.push(d2g(L,a,v,J,"93",h,B,r,b,"auto",c,l,D,H));Object.entries(d).length&&R(d);return SM(p.C,Y,dX(p,x),!1)}; d2g=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y){for(var h=0,D="",H=g.k(p),f=H.next();!f.done;f=H.next())f=f.value,D||(D=f.itag),f.audioChannels&&f.audioChannels>h&&(h=f.audioChannels,D=f.itag);c=new QB(c,"application/x-mpegURL",{audio:new MK(0,h),video:new Dc(J,R,d,null,void 0,r,void 0,L),F1:l,o0:D});p=new $2T(p,x,a?[a]:[],v,!!Y);p.B=B?B:1369843;return new Ck(c,p,b)}; JRJ=function(p){p=g.k(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,x.url&&(x=x.url.split("expire/"),!(x.length<=1)))return+x[1].split("/")[0];return NaN}; KEg=function(p,x){for(var a=g.k(Object.keys(p)),v=a.next();!v.done;v=a.next()){v=v.value;var c=p[v][0];if(!c.width&&c.F1===x.F1&&!c.audioChannels)return v}return""}; R$8=function(p){for(var x=new Set,a=g.k(Object.values(p)),v=a.next();!v.done;v=a.next())v=v.value,v.length&&(v=v[0],v.height&&v.codecs.startsWith("vp09")&&x.add(v.height));a=[];if(x.size){v=g.k(Object.keys(p));for(var c=v.next();!c.done;c=v.next())if(c=c.value,p[c].length){var J=p[c][0];J.height&&x.has(J.height)&&!J.codecs.startsWith("vp09")&&a.push(c)}}x=g.k(a);for(a=x.next();!a.done;a=x.next())delete p[a.value]}; XG=function(p,x){this.U=p;this.Z=x}; rRT=function(p,x,a,v){var c=[];a=g.k(a);for(var J=a.next();!J.done;J=a.next()){var R=J.value;if(R.url){J=new g.ZW(R.url,!0);if(R.s){var d=J,b=R.sp,r=NyJ(decodeURIComponent(R.s));d[K[3]](b,encodeURIComponent(r))}d=g.k(Object.keys(v));for(b=d.next();!b.done;b=d.next())b=b.value,J.set(b,v[b]);R=gD(R.type,R.quality,R.itag,R.width,R.height);c.push(new XG(R,J))}}return SM(p.C,c,dX(p,x),!1)}; im=function(p,x){this.U=p;this.Z=x}; Bn1=function(p,x,a){var v=[];a=g.k(a);for(var c=a.next();!c.done;c=a.next())if((c=c.value)&&c.url){var J=gD(c.type,"medium","0");v.push(new im(J,c.url))}return SM(p.C,v,dX(p,x),!1)}; lU_=function(p,x){var a=[],v=gD(x.type,"auto",x.itag);a.push(new im(v,x.url));return SM(p.C,a,!1,!0)}; YPN=function(p){return p&&LE_[p]?LE_[p]:null}; h$x=function(p){switch(p){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return p;default:return"sabr.config"}}; jGo=function(p){if(p=p.commonConfig)this.url=p.url,this.urlQueryOverride=p.urlQueryOverride,p.ustreamerConfig&&(this.U$=Q_(p.ustreamerConfig)||void 0)}; IUQ=function(p,x){var a;if(x=x==null?void 0:(a=x.watchEndpointSupportedOnesieConfig)==null?void 0:a.html5PlaybackOnesieConfig)p.t_=new jGo(x)}; g.of=function(p){p=p===void 0?{}:p;this.languageCode=p.languageCode||"";this.languageName=p.languageName||null;this.kind=p.kind||"";this.name=p.name===void 0?null:p.name;this.displayName=p.displayName||null;this.id=p.id||null;this.U=p.is_servable||!1;this.isTranslateable=p.is_translateable||!1;this.url=p.url||null;this.vssId=p.vss_id||"";this.isDefault=p.is_default||!1;this.translationLanguage=p.translationLanguage||null;this.xtags=p.xtags||"";this.captionId=p.captionId||""}; g.zG=function(p){var x={languageCode:p.languageCode,languageName:p.languageName,displayName:g.tC(p),kind:p.kind,name:p.name,id:p.id,is_servable:p.U,is_default:p.isDefault,is_translateable:p.isTranslateable,vss_id:p.vssId};p.xtags&&(x.xtags=p.xtags);p.captionId&&(x.captionId=p.captionId);p.translationLanguage&&(x.translationLanguage=p.translationLanguage);return x}; g.wX=function(p){return p.translationLanguage?p.translationLanguage.languageCode:p.languageCode}; g.MtJ=function(p){var x=p.vssId;p.translationLanguage&&x&&(x="t"+x+"."+g.wX(p));return x}; g.tC=function(p){var x=[];if(p.displayName)x.push(p.displayName);else{var a=p.languageName||"";x.push(a);p.kind==="asr"&&a.indexOf("(")===-1&&x.push(" (Legendas autom\u00e1ticas)");p.name&&x.push(" - "+p.name)}p.translationLanguage&&x.push(" >> "+p.translationLanguage.languageName);return x.join("")}; U2z=function(p,x,a,v){p||(p=x&&WEz.hasOwnProperty(x)&&kZb.hasOwnProperty(x)?kZb[x]+"_"+WEz[x]:void 0);x=p;if(!x)return null;p=x.match(D2o);if(!p||p.length!==5)return null;if(p=x.match(D2o)){var c=Number(p[3]),J=[7,8,10,5,6];p=!(Number(p[1])===1&&c===8)&&J.indexOf(c)>=0}else p=!1;return a||v||p?x:null}; EF=function(p,x){for(var a={},v=g.k(Object.keys(Hn_)),c=v.next();!c.done;c=v.next()){c=c.value;var J=x?x+c:c;J=p[J+"_webp"]||p[J];g.wZ(J)&&(a[Hn_[c]]=J)}return a}; yp=function(p){var x={};if(!p||!p.thumbnails)return x;p=p.thumbnails.filter(function(d){return!!d.url}); p.sort(function(d,b){return d.width-b.width||d.height-b.height}); for(var a=g.k(Object.keys(Tnz)),v=a.next();!v.done;v=a.next()){var c=Number(v.value);v=Tnz[c];for(var J=g.k(p),R=J.next();!R.done;R=J.next())if(R=R.value,R.width>=c){c=QGo(R.url);g.wZ(c)&&(x[v]=c);break}}(p=p.pop())&&p.width>=1280&&(p=QGo(p.url),g.wZ(p)&&(x["maxresdefault.jpg"]=p));return x}; QGo=function(p){return p.startsWith("//")?"https:"+p:p}; gX=function(p){return p&&p.baseUrl||""}; Zw=function(p){p=g.Fj(p);for(var x=g.k(Object.keys(p)),a=x.next();!a.done;a=x.next()){a=a.value;var v=p[a];p[a]=Array.isArray(v)?v[0]:v}return p}; m2z=function(p,x){p.botguardData=x.playerAttestationRenderer.botguardData;x=x.playerAttestationRenderer.challenge;x!=null&&(p.TW=x)}; CbU=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next()){a=a.value;var v=a.interstitials.map(function(R){var d=g.O(R,SPN);if(d)return{is_yto_interstitial:!0,raw_player_response:d};if(R=g.O(R,fU1))return Object.assign({is_yto_interstitial:!0},uU(R))}); v=g.k(v);for(var c=v.next();!c.done;c=v.next())switch(c=c.value,a.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":p.interstitials=p.interstitials.concat({time:0,playerVars:c,gU:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":p.interstitials=p.interstitials.concat({time:0x7ffffffffffff,playerVars:c,gU:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var J=Number(a.podConfig.timeToInsertAtMillis);p.interstitials=p.interstitials.concat({time:J,playerVars:c, gU:J===0?5:7})}}}; XPT=function(p,x){if(x=x.find(function(a){return!(!a||!a.tooltipRenderer)}))p.tooltipRenderer=x.tooltipRenderer}; inQ=function(p,x){x.subscribeCommand&&(p.subscribeCommand=x.subscribeCommand);x.unsubscribeCommand&&(p.unsubscribeCommand=x.unsubscribeCommand);x.addToWatchLaterCommand&&(p.addToWatchLaterCommand=x.addToWatchLaterCommand);x.removeFromWatchLaterCommand&&(p.removeFromWatchLaterCommand=x.removeFromWatchLaterCommand);x.getSharePanelCommand&&(p.getSharePanelCommand=x.getSharePanelCommand)}; ovU=function(p,x){x!=null?(p.Dj=x,p.fp=!0):(p.Dj="",p.fp=!1)}; GG=function(p,x){this.type=p||"";this.id=x||""}; OF=function(p){return new GG(p.substring(0,2),p.substring(2))}; N_=function(p,x){this.JG=p;this.author="";this.Y2=null;this.playlistLength=0;this.U=this.sessionData=null;this.Y={};this.title="";if(x){this.author=x.author||x.playlist_author||"";this.title=x.playlist_title||"";if(p=x.session_data)this.sessionData=n6(p,"&");var a;this.U=((a=x.thumbnail_ids)==null?void 0:a.split(",")[0])||null;this.Y=EF(x,"playlist_");this.videoId=x.video_id||void 0;if(a=x.list)switch(x.listType){case "user_uploads":this.playlistId=(new GG("UU","PLAYER_"+a)).toString();break;default:if(p= x.playlist_length)this.playlistLength=Number(p)||0;this.playlistId=OF(a).toString();if(x=x.video)this.videoId=(x[0]||null).video_id||void 0}else x.playlist&&(this.playlistLength=x.playlist.toString().split(",").length)}}; AC=function(p,x){this.JG=p;this.xr=this.author="";this.Y2=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.L_=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(x){this.ariaLabel=x.aria_label||void 0;this.author=x.author||"";this.xr=x.xr||"";if(p=x.endscreen_autoplay_session_data)this.Y2=n6(p,"&");this.Zr=x.Zr;this.isLivePlayback=x.live_playback==="1";this.isUpcoming=!!x.isUpcoming;if(p=x.length_seconds)this.lengthSeconds=typeof p==="string"?Number(p):p;this.lengthText= x.lengthText||"";this.L_=x.L_||"";this.publishedTimeText=x.publishedTimeText||void 0;if(p=x.session_data)this.sessionData=n6(p,"&");this.shortViewCount=x.short_view_count_text||void 0;this.Y=EF(x);this.title=x.title||"";this.videoId=x.docid||x.video_id||x.videoId||x.id||void 0;this.watchUrl=x.watchUrl||void 0}}; ttQ=function(p){var x,a,v=(x=p.getWatchNextResponse())==null?void 0:(a=x.contents)==null?void 0:a.twoColumnWatchNextResults,c,J,R,d,b;p=(c=p.getWatchNextResponse())==null?void 0:(J=c.playerOverlays)==null?void 0:(R=J.playerOverlayRenderer)==null?void 0:(d=R.endScreen)==null?void 0:(b=d.watchNextEndScreenRenderer)==null?void 0:b.results;if(!p){var r,B;p=v==null?void 0:(r=v.endScreen)==null?void 0:(B=r.endScreen)==null?void 0:B.results}return p}; g.q_=function(p){var x,a,v;p=g.O((x=p.getWatchNextResponse())==null?void 0:(a=x.playerOverlays)==null?void 0:(v=a.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,Px);return g.O(p==null?void 0:p.playerBar,z$x)}; wPJ=function(p){this.U=p.playback_progress_0s_url;this.j=p.playback_progress_2s_url;this.Z=p.playback_progress_10s_url}; Ev8=function(){if(nk===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(x){}a:{try{var p=!!self.localStorage}catch(x){p=!1}if(p&&(p=g.XE(g.Zv()+"::yt-player"))){nk=new XA(p);break a}nk=void 0}}return nk}; g.eM=function(){var p=Ev8();if(!p)return{};try{var x=p.get("yt-player-lv");return JSON.parse(x||"{}")}catch(a){return{}}}; g.yRJ=function(p){var x=Ev8();x&&(p=JSON.stringify(p),x.set("yt-player-lv",p))}; g.um=function(p){return g.eM()[p]||0}; g.Vp=function(p,x){var a=g.eM();x!==a[p]&&(x!==0?a[p]=x:delete a[p],g.yRJ(a))}; g.FG=function(p){return g.t(function(x){return x.return(g.wd(gvQ(),p))})}; xh=function(p,x,a,v,c,J,R,d){var b,r,B,l,L,Y;return g.t(function(h){switch(h.Z){case 1:return b=g.um(p),b===4?h.return(4):g.C(h,g.Ax(),2);case 2:r=h.U;if(!r)throw g.LF("wiac");if(!d||R===void 0){h.Ia(3);break}return g.C(h,Znz(d,R),4);case 4:R=h.U;case 3:return B=a.lastModified||"0",g.C(h,g.FG(r),5);case 5:return l=h.U,g.DJ(h,6),pT++,g.C(h,g.HR(l,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",bV:!0},function(D){if(J!==void 0&&R!==void 0){var H=""+p+"|"+x.id+"|"+B+"|"+String(J).padStart(10, "0");H=g.Tb(D.objectStore("media"),R,H)}else H=g.hx.resolve(void 0);var f=GZf(p,x.hU()),m=GZf(p,!x.hU()),X={fmts:OnU(v),format:a||{}};f=g.Tb(D.objectStore("index"),X,f);var E=v.downloadedEndTime===-1;X=E?D.objectStore("index").get(m):g.hx.resolve(void 0);var A={fmts:"music",format:{}};D=E&&c&&!x.hU()?g.Tb(D.objectStore("index"),A,m):g.hx.resolve(void 0);return g.hx.all([D,X,H,f]).then(function(u){u=g.k(u);u.next();u=u.next().value;pT--;var n=g.um(p);if(n!==4&&E&&c||u!==void 0&&g.NnT(u.fmts))n=1,g.Vp(p, n);return n})}),8); case 8:return h.return(h.U);case 6:L=g.SI(h);pT--;Y=g.um(p);if(Y===4)return h.return(Y);g.Vp(p,4);throw L;}})}; g.ARN=function(p){var x,a;return g.t(function(v){if(v.Z==1)return g.C(v,g.Ax(),2);if(v.Z!=3){x=v.U;if(!x)throw g.LF("ri");return g.C(v,g.FG(x),3)}a=v.U;return v.return(g.HR(a,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(c){var J=IDBKeyRange.bound(p+"|",p+"~");return c.objectStore("index").getAll(J).then(function(R){return R.map(function(d){return d?d.format:{}})})}))})}; qPz=function(p,x,a,v,c){var J,R,d;return g.t(function(b){if(b.Z==1)return g.C(b,g.Ax(),2);if(b.Z!=3){J=b.U;if(!J)throw g.LF("rc");return g.C(b,g.FG(J),3)}R=b.U;d=g.HR(R,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(r){var B=""+p+"|"+x+"|"+a+"|"+String(v).padStart(10,"0");return r.objectStore("media").get(B)}); return c?b.return(d.then(function(r){if(r===void 0)throw Error("No data from indexDb");return PbI(c,r)}).catch(function(r){throw new g.gr("Error while reading chunk: "+r.name+", "+r.message); })):b.return(d)})}; g.NnT=function(p){return p?p==="music"?!0:p.includes("dlt=-1")||!p.includes("dlt="):!1}; GZf=function(p,x){return""+p+"|"+(x?"v":"a")}; OnU=function(p){var x={};return ei((x.dlt=p.downloadedEndTime.toString(),x.mket=p.maxKnownEndTime.toString(),x.avbr=p.averageByteRate.toString(),x))}; e$f=function(p){var x={},a={};p=g.k(p);for(var v=p.next();!v.done;v=p.next()){var c=v.value,J=c.split("|");c.match(g.nv1)?(v=Number(J.pop()),isNaN(v)?a[c]="?":(J=J.join("|"),(c=x[J])?(J=c[c.length-1],v===J.end+1?J.end=v:c.push({start:v,end:v})):x[J]=[{start:v,end:v}])):a[c]="?"}p=g.k(Object.keys(x));for(v=p.next();!v.done;v=p.next())v=v.value,a[v]=x[v].map(function(R){return R.start+"-"+R.end}).join(","); return a}; $h=function(p){g.Fx.call(this);this.U=null;this.j=new tu;this.U=null;this.S=new Set;this.crossOrigin=p||""}; uZ1=function(p,x,a){for(a=ah(p,a);a>=0;){var v=p.levels[a];if(v.isLoaded(sg(v,x))&&(v=g.v_(v,x)))return v;a--}return g.v_(p.levels[0],x)}; FEo=function(p,x,a){a=ah(p,a);for(var v,c;a>=0;a--)if(v=p.levels[a],c=sg(v,x),!v.isLoaded(c)){v=p;var J=a,R=J+"-"+c;v.S.has(R)||(v.S.add(R),v.j.enqueue(J,{xq:J,uu:c}))}Vtz(p)}; Vtz=function(p){if(!p.U&&!p.j.isEmpty()){var x=p.j.remove();p.U=pdQ(p,x)}}; pdQ=function(p,x){var a=document.createElement("img");p.crossOrigin&&(a.crossOrigin=p.crossOrigin);a.src=p.levels[x.xq].Wh(x.uu);a.onload=function(){var v=x.xq,c=x.uu;p.U!==null&&(p.U.onload=null,p.U=null);v=p.levels[v];v.loaded.add(c);Vtz(p);var J=v.columns*v.rows;c*=J;v=Math.min(c+J-1,v.bB()-1);c=[c,v];p.publish("l",c[0],c[1])}; return a}; g.c_=function(p,x,a,v){this.level=p;this.B=x;this.loaded=new Set;this.level=p;this.B=x;p=a.split("#");this.width=Math.floor(Number(p[0]));this.height=Math.floor(Number(p[1]));this.frameCount=Math.floor(Number(p[2]));this.columns=Math.floor(Number(p[3]));this.rows=Math.floor(Number(p[4]));this.U=Math.floor(Number(p[5]));this.j=p[6];this.signature=p[7];this.videoLength=v}; sg=function(p,x){return Math.floor(x/(p.columns*p.rows))}; g.v_=function(p,x){x>=p.Z4()&&p.Mj();var a=sg(p,x),v=p.columns*p.rows,c=x%v;x=c%p.columns;c=Math.floor(c/p.columns);var J=p.Mj()+1-v*a;if(J1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; xuz=function(p,x,a){return(p=p.levels[x])?p.Rn(a):-1}; ah=function(p,x){var a=p.B.get(x);if(a)return a;a=p.levels.length;for(var v=0;v=x)return p.B.set(x,v),v;p.B.set(x,a-1);return a-1}; Rh=function(p,x,a,v){a=a.split("#");a=[a[1],a[2],0,a[3],a[4],-1,a[0],""].join("#");g.c_.call(this,p,x,a,0);this.Z=null;this.C=v?2:0}; KT=function(p,x,a,v){JM.call(this,p,0,void 0,x,!(v===void 0||!v));for(p=0;p=0?KU.countDownSecsForFullscreen*1E3:-1);p.D("web_autonav_color_transition")&&KU.watchToWatchTransitionRenderer&&(p.watchToWatchTransitionRenderer=g.O(KU.watchToWatchTransitionRenderer, Y5o))}var kD=ttQ(p);if(kD){var dF,JV,Y6,hg=kD==null?void 0:(dF=kD[0])==null?void 0:(JV=dF.endScreenVideoRenderer)==null?void 0:(Y6=JV.navigationEndpoint)==null?void 0:Y6.clickTrackingParams,i_=g.jY(p);hg&&i_&&(i_.sessionData={itct:hg})}p.qT.currentVideoThumbnail&&(p.Y=yp(p.qT.currentVideoThumbnail));var Ep,yP,gp,cm,oi,Mc=(Ep=p.qT)==null?void 0:(yP=Ep.contents)==null?void 0:(gp=yP.twoColumnWatchNextResults)==null?void 0:(cm=gp.results)==null?void 0:(oi=cm.results)==null?void 0:oi.contents;if(Mc&&Mc[1]){var tF, JY,ZT,QU,Di=(tF=Mc[1].videoSecondaryInfoRenderer)==null?void 0:(JY=tF.owner)==null?void 0:(ZT=JY.videoOwnerRenderer)==null?void 0:(QU=ZT.thumbnail)==null?void 0:QU.thumbnails;Di&&Di.length&&(p.profilePicture=Di[Di.length-1].url)}var Z8=aQ(x),R6,jU=(R6=p.getWatchNextResponse())==null?void 0:R6.onResponseReceivedEndpoints;if(jU)for(var Kp=g.k(jU),zB=Kp.next();!zB.done;zB=Kp.next()){var IZ=zB.value;g.O(IZ,Ih)&&(p.B4=g.O(IZ,Ih));var vA=g.O(IZ,hxQ),Zc=void 0;if((Zc=vA)==null?0:Zc.entityKeys)p.S1=vA.entityKeys|| [],vA.visibleOnLoadKeys&&(p.visibleOnLoadKeys=vA.visibleOnLoadKeys)}if(p.D("web_key_moments_markers")){var RN=g.Mn.getState().entities,bJ=g.Nm("visibility_override","markersVisibilityOverrideEntity");var G0=P$(RN,"markersVisibilityOverrideEntity",bJ);p.Ra=(G0==null?void 0:G0.videoId)===(p.videoId||Z8)&&(G0==null?0:G0.visibilityOverrideMarkersKey)?G0.visibilityOverrideMarkersKey:p.visibleOnLoadKeys;p.visibleOnLoadKeys=[].concat(g.lf(p.Ra))}}}; Yh=function(p){var x;return((x=p.autoplaySwitchButtonRenderer)==null?void 0:x.enabled)!==void 0}; W_=function(p){return!!(p.j&&p.j.videoInfos&&p.j.videoInfos.length)}; g.QF=function(p){var x=p.V;p.D("html5_gapless_unlimit_format_selection")&&kh(p)&&(x=!1);var a=!!p.U&&p.U.Dp,v=p.JG,c=p.Xy(),J=Db(p),R=p.gr,d=x,b=p.isOtf();x=p.Bx();var r=p.T4,B=p.getUserAudio51Preference(),l=Ug(p),L=H_(p),Y=new z2N(v);if(v.qZ()||v.D("html5_logging_format_selection"))Y.Z=!0;Y.tG=J;Y.gr=R&&v.Y;Y.F5=B;g.wT("windows nt 5.1")&&!g.Jc&&(Y.L7=!0);if(J=c)J=g.Wx(v)?NP1(v):!1;J&&(Y.Zt=!0);d&&(Y.L7=!0,Y.FX=!0);b&&!v.D("html5_otf_prefer_vp9")&&(Y.L7=!0);v.playerStyle==="picasaweb"&&(b&&(Y.L7= !1),Y.pI=!1);r&&(Y.L7=!0);yK(v.C,g9.CHANNELS)&&(v.D("html5_enable_ac3")&&(Y.B=!0),v.D("html5_enable_eac3")&&(Y.C=!0),v.D("html5_enable_ac3_gapless")&&(Y.qT=!0));v.D("html5_block_8k_hfr")&&(Y.Ra=!0);Y.S=g.e_(v.experiments,"html5_max_selectable_quality_ordinal");Y.V=g.e_(v.experiments,"html5_min_selectable_quality_ordinal");Ac&&(Y.vX=480);if(a||c)Y.pI=!1;Y.HO=!1;Y.disableAv1=l;a=Vi(v,Y.U,void 0,Y.disableAv1);a>0&&a<2160&&($_()||v.D("html5_format_hybridization"))&&(Y.U.supportsChangeType=+$_(),Y.IM= a);a>=2160&&(Y.u$=!0);x6Q()&&!v.D("disable_av1_setting")&&(Y.U.serveVp9OverAv1IfHigherRes=0,Y.Kp=!1);Y.Bx=x;Y.V6=g.ZH||e$()&&!x?!1:!0;Y.Y=v.D("html5_format_hybridization");Y.US=v.D("html5_disable_encrypted_vp9_live_non_2k_4k");Y.Zp=L;TV(p)&&(Y.ol=p.D("html5_prefer_language_over_codec"));gT()&&p.playerResponse&&p.playerResponse.playerConfig&&p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(Y.B=!0,Y.C=!0);p.V&&p.isAd()&&(p.Da&& (Y.T=p.Da),p.i7&&(Y.j=p.i7));Y.hG=p.isLivePlayback&&p.Sg()&&p.JG.D("html5_drm_live_audio_51");Y.oa=p.VO;Y.OS=!TV(p);return p.lc=Y}; Ug=function(p){return p.JG.D("html5_disable_av1")||p.D("html5_gapless_shorts_disable_av1")&&kh(p)?!0:!1}; jKJ=function(p){Wa("drm_pb_s",void 0,p.Zt);p.tG||p.U&&oB(p.U);var x={};p.U&&(x=LKI(p.Zf,g.QF(p),p.JG.C,p.U,function(a){return p.publish("ctmp","fmtflt",a)},!0,new Set)); x=new d5(x,p.JG,p.rR,p.useCobaltWidevine?gT()?mr(p):!1:!1,function(a,v){p.jA(a,v)}); g.Z(p,x);p.r_=!1;p.loading=!0;g_g(x,function(a){Wa("drm_pb_f",void 0,p.Zt);for(var v=g.k(a),c=v.next();!c.done;c=v.next())switch(c=c.value,c.flavor){case "fairplay":c.tG=p.tG;c.Bo=p.Bo;c.Ow=p.Ow;break;case "widevine":c.kC=p.kC}p.oV=a;if(p.oV.length>0&&(p.C=p.oV[0],p.JG.qZ())){a={};v=g.k(Object.entries(p.C.U));for(c=v.next();!c.done;c=v.next()){var J=g.k(c.value);c=J.next().value;J=J.next().value;var R="unk";(c=c.match(/(.*)codecs="(.*)"/))&&(R=c[2]);a[R]=J}p.jA("drmProbe",a)}p.qd()})}; I3_=function(p,x){if(x.length===0||SY(p))return null;p.JG.C.j&&(nA=!0);var a=p.F1;var v=p.lengthSeconds,c=p.isLivePlayback,J=p.S3,R=p.JG,d=W0J(x);if(c||J){R=R.experiments;v=new i4("",R,!0);v.Z=!J;v.Dp=!0;v.isManifestless=!0;v.isLive=!J;v.S3=J;x=g.k(x);for(c=x.next();!c.done;c=x.next()){var b=c.value;c=zR(b,a);d=qt(b);d=El(d.ZA||b.url||"",d.GT,d.s);var r=d.get("id");r&&r.includes("%7E")&&(v.T=!0);var B=void 0;r=(B=R)==null?void 0:B.cO("html5_max_known_end_time_rebase");B=Number(b.targetDurationSec|| 5);b=Number(b.maxDvrDurationSec||14400);var l=Number(d.get("mindsq")||d.get("min_sq")||"0"),L=Number(d.get("maxdsq")||d.get("max_sq")||"0")||Infinity;v.Bm=v.Bm||l;v.FR=v.FR||L;var Y=!yB(c.mimeType);d&&fA(v,new l4(d,c,{aM:B,p7:Y,z7:b,Bm:l,FR:L,JI:300,S3:J,Zv:r}))}a=v}else if(d==="FORMAT_STREAM_TYPE_OTF"){v=v===void 0?0:v;J=new i4("",R.experiments,!1);J.duration=v||0;R=g.k(x);for(v=R.next();!v.done;v=R.next())v=v.value,x=zR(v,a,J.duration),c=qt(v),(c=El(c.ZA||v.url||"",c.GT,c.s))&&(x.streamType==="FORMAT_STREAM_TYPE_OTF"? fA(J,new LA(c,x,"sq/0")):fA(J,new Qi(c,x,n0(v.initRange),n0(v.indexRange))));J.isOtf=!0;a=J}else{v=v===void 0?0:v;J=new i4("",R.experiments,!1);J.duration=v||0;R=g.k(x);for(v=R.next();!v.done;v=R.next())d=v.value,v=zR(d,a,J.duration),x=n0(d.initRange),c=n0(d.indexRange),r=qt(d),(d=El(r.ZA||d.url||"",r.GT,r.s))&&fA(J,new Qi(d,v,x,c));a=J}J=p.isLivePlayback&&!p.S3&&!p.O7&&!p.isPremiere;p.D("html5_live_head_playable")&&(!fT(p)&&J&&p.jA("missingLiveHeadPlayable",{}),p.JG.Zt==="yt"&&(a.V6=!0));return a}; SY=function(p){return gT()?!mr(p):GS()?!(!p.tG||!p.D("html5_enable_safari_fairplay")&&hc()):!1}; mr=function(p){return p.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.LT=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next())if(a=a.value,a.cueRangeSetIdentifier){var v=void 0;p.Gk.set(a.cueRangeSetIdentifier,(v=a.playerCueRanges)!=null?v:[])}}; CT=function(p){return!(!p.U||!p.U.isManifestless)}; Xz=function(p){return p.G$?p.isLowLatencyLiveStream&&p.U!=null&&GR(p.U)>=5:p.isLowLatencyLiveStream&&p.U!=void 0&&GR(p.U)>=5}; Myf=function(p){return gT()&&mr(p)?!1:SY(p)&&(g.RU(p.JG)?!p.isLivePlayback:p.hlsvp)||!hc()||p.b5?!0:!1}; kH_=function(p){p.loading=!0;p.YO=!1;if(Wc_(p))g.ARN(p.videoId).then(function(v){var c;if((c=p.playerResponse)!=null&&c.streamingData){c=[];v=g.k(v);for(var J=v.next();!J.done;J=v.next())J=Object.assign({},J.value),J.signatureCipher="",c.push(J);c.length<2&&p.jA("offmlf",{len:c.length});c=I3_(p,c);Db(p)&&ia_(c,!1);iq(p,c);p.jA("dlr",{})}else p.jA("offsdm",{cotn:p.GD?p.GD.cotn:"0",cpn:p.clientPlaybackNonce})}).then(function(){p.qd()}); else{zF(p.vX)||g.Hp(new g.gr("DASH MPD Origin invalid: ",p.vX));var x=p.vX,a=g.e_(p.JG.experiments,"dash_manifest_version")||4;x=g.jL(x,{mpd_version:a});p.isLowLatencyLiveStream&&p.latencyClass!=="NORMAL"||(x=g.jL(x,{pacing:0}));SeJ(x,p.JG.experiments,p.isLivePlayback).then(function(v){p.b$()||(iq(p,v,!0),Wa("mrc",void 0,p.Zt),p.qd())},function(v){p.b$()||(p.loading=!1,p.publish("dataloaderror",new g.dD("manifest.net.retryexhausted",{backend:"manifest", rc:v.status},1)))}); Wa("mrs",void 0,p.Zt)}}; Dug=function(p){var x;return!((x=p.JG.getWebPlayerContextConfig())==null||!x.enableProximaLowLatency)}; oh=function(p){if(!p.isProximaLatencyEligible)return 0;var x=BX();return Dug(p)?2:x===1?1:p.D("html5_enable_proxima")?2:0}; iq=function(p,x,a){a=a===void 0?!1:a;p.cL=void 0;p.U=x;g.Z(p,x);x.Bm=p.Bm;x.FR=p.FR;x.u$=p.u$;x.OS=p.OS;x.KW=p.KW;p.GG&&(x.Y=new E$(p.GG));(p.Xy()||g.tM(p))&&p.T.push("webgl");p.U.isLive||(p.isLivePlayback=!1);var v=x.sourceUrl.split("/");if(p.G$?v.indexOf("manifest_duration")!==-1:v.indexOf("manifest_duration")!=-1)p.FQ=Number(v[v.indexOf("manifest_duration")+1]);if(x.Z||x.isManifestless)x.subscribe("clienttemp",p.jA,p),a?x.subscribe("refresh",p.Qz,p):x.subscribe("cuepointsadded",p.GR,p);oB(x)?p.r_= !0:r5=void 0;p.O7&&(x.B=p.O7,x.isLive=!0,p.isLivePlayback=!0);x.isPremiere=p.isPremiere;x.isLiveHeadPlayable=p.isLiveHeadPlayable}; Uug=function(p,x){var a=x||Myf(p)||p.isExternallyHostedPodcast;if(!p.U||a)return p.jA("skipDash",{dm:!!p.U,air:x,dd:p.b5,mss:hc(),"3pp":p.isExternallyHostedPodcast}),TS();Db(p)&&ia_(p.U,p.isLivePlayback);return Ql().then(function(){return hQf(p.Zf,g.QF(p),p.JG.C,p.U,p.C,function(v){return p.publish("ctmp","fmtflt",v)},p.RC,TV(p)&&p.D("html5_enable_server_format_filter")).then(function(v){p.QW(v); p.Zf.U=null;/^av/.test(p.clientPlaybackNonce)&&p.lc&&p.jA("av1",p.lc.U)})})}; TLQ=function(p,x){if(x&&p.hlsvp)return TS();if(p.hlsFormats){x=zV(p.hlsFormats);var a;if(((a=p.lc)==null?0:a.Z)&&x){a=[];for(var v=g.k(x),c=v.next();!c.done;c=v.next())a.push(c.value.itag);p.jA("hlsfmt",{itags:a.join(".")})}p.eX=cR1(p.JG,x);p.eX&&HQQ(p,p.eX);a=p.clientPlaybackNonce;var J,R,d,b;return bn1(p.JG,p.isAd(),x,(b=(J=p.playerResponse)==null?void 0:(R=J.captions)==null?void 0:(d=R.playerCaptionsRenderer)==null?void 0:d.baseUrl)!=null?b:null,p.ol,a,function(r){return p.publish("ctmp","hlsflt", r)}).then(function(r){for(var B=0,l=[],L=g.k(r),Y=L.next();!Y.done;Y=L.next()){Y=Y.value; var h=void 0;l.push((h=Y.getInfo())==null?void 0:h.itag);var D=h=void 0;((h=Y.getInfo())==null?void 0:(D=h.audio)==null?void 0:D.numChannels)>B&&(B=Y.getInfo().audio.numChannels)}B>2&&p.jA("hlschl",{mn:B});var H;((H=p.lc)==null?0:H.Z)&&p.jA("hlsfmtaf",{itags:l.join(".")});var f;if(p.D("html5_enable_vp9_fairplay")&&((f=p.C)==null?0:v0(f)))for(p.jA("drm",{sbdlfbk:1}),B=g.k(p.oV),l=B.next();!l.done;l=B.next())if(l=l.value,sd(l)){p.C=l;break}wY(p,r)})}return TS()}; QKf=function(p){if(p.isExternallyHostedPodcast&&p.Xq){var x=zV(p.Xq);if(!x[0])return TS();p.iG6=x[0];return lU_(p.JG,x[0]).then(function(a){wY(p,a)})}return p.E5&&p.j5?Bn1(p.JG,p.isAd(),p.E5).then(function(a){wY(p,a)}):TS()}; S51=function(p){if(p.isExternallyHostedPodcast)return TS();var x=zV(p.Xq,p.xj);if(p.hlsvp){var a=$ug(p.hlsvp,p.clientPlaybackNonce,p.ol);x.push(a)}return rRT(p.JG,p.isAd(),x,mu8(p)).then(function(v){wY(p,v)})}; wY=function(p,x){p.Kp=x;p.QW(new S3(g.IT(p.Kp,function(a){return a.getInfo()})))}; mu8=function(p){var x={cpn:p.clientPlaybackNonce,c:p.JG.U.c,cver:p.JG.U.cver};p.C$&&(x.ptk=p.C$,x.oid=p.N4,x.ptchn=p.LO,x.pltype=p.To,p.Po&&(x.m=p.Po));return x}; g.Eg=function(p){return SY(p)&&p.tG?(p={},p.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",p):p.Z&&p.Z.F1||null}; f3Q=function(p){var x=yF(p);return x&&x.text?g.Jv(x.text):p.paidContentOverlayText}; CLz=function(p){var x=yF(p);return x&&x.durationMs?o0(x.durationMs):p.paidContentOverlayDurationMs}; yF=function(p){var x,a,v;return p.playerResponse&&p.playerResponse.paidContentOverlay&&p.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.O((x=p.qT)==null?void 0:(a=x.playerOverlays)==null?void 0:(v=a.playerOverlayRenderer)==null?void 0:v.playerDisclosure,Xd1)||null}; gY=function(p){var x="";if(p.gq)return p.gq;p.isLivePlayback&&(x=p.allowLiveDvr?"dvr":p.isPremiere?"lp":p.O7?"window":"live");p.S3&&(x="post");return x}; g.Zb=function(p,x){return typeof p.keywords[x]!=="string"?null:p.keywords[x]}; iQ1=function(p){return!!p.xs||!!p.fN||!!p.Df||!!p.qq||p.iX}; g.GV=function(p){return!!(p.vX||p.Xq||p.E5||p.hlsvp||p.W0())}; rY=function(p){if(p.D("html5_onesie")&&p.errorCode)return!1;var x=g.kt(p.T,"ypc");p.ypcPreview&&(x=!1);return p.mU()&&!p.loading&&(g.GV(p)||g.kt(p.T,"heartbeat")||x)}; zV=function(p,x){p=VT(p);var a={};if(x){x=g.k(x.split(","));for(var v=x.next();!v.done;v=x.next())(v=v.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(a[v[1]]={width:v[2],height:v[3]})}x=g.k(p);for(v=x.next();!v.done;v=x.next()){v=v.value;var c=a[v.itag];c&&(v.width=c.width,v.height=c.height)}return p}; duf=function(p,x){p.showShareButton=!!x;var a,v,c=((a=g.O(x,g.et))==null?void 0:a.navigationEndpoint)||((v=g.O(x,g.et))==null?void 0:v.command);c&&(p.CD=!!g.O(c,oC1))}; a3Q=function(p,x){var a=x.raw_embedded_player_response;if(!a){var v=x.embedded_player_response;v&&(a=JSON.parse(v))}a&&(p.Kd=a);if(p.Kd){p.embeddedPlayerConfig=p.Kd.embeddedPlayerConfig||null;if(a=p.Kd.videoFlags)a.playableInEmbed&&(p.allowEmbed=!0),a.isPrivate&&(p.isPrivate=!0),a.userDisplayName&&(x.user_display_name=a.userDisplayName),a.userDisplayImage&&(x.user_display_image=a.userDisplayImage);if(a=p.Kd.embedPreview){a=a.thumbnailPreviewRenderer;ovU(p,a.controlBgHtml);if(v=a.defaultThumbnail)p.Y= yp(v);p.D("embeds_web_enable_search_button")&&a.searchButton&&(v=g.O(a.searchButton,g.et))&&(p.CgI=g.O(v.navigationEndpoint,g.Og));(v=g.O(a==null?void 0:a.videoDetails,ty1))&&l31(p,x,v);v=g.O(a==null?void 0:a.videoDetails,zxx);p.L3=!!a.addToWatchLaterButton;duf(p,a.shareButton);if(v==null?0:v.musicVideoType)p.musicVideoType=v.musicVideoType;var c,J,R,d,b;if(v=g.O((c=p.getEmbeddedPlayerResponse())==null?void 0:(J=c.embedPreview)==null?void 0:(R=J.thumbnailPreviewRenderer)==null?void 0:(d=R.playButton)== null?void 0:(b=d.buttonRenderer)==null?void 0:b.navigationEndpoint,g.hM))IUQ(p,v),p.videoId=v.videoId||p.videoId;a.videoDurationSeconds&&(p.lengthSeconds=o0(a.videoDurationSeconds));a.webPlayerActionsPorting&&inQ(p,a.webPlayerActionsPorting);if(c=g.O(a==null?void 0:a.playlist,wdJ)){p.fY=!0;J=[];R=Number(c.currentIndex);if(c.contents)for(d=0,b=c.contents.length;d0:p.x_?!1:p.JG.FM||p.JG.Z$||!g.nH(p.JG)?!0:!1:(p.x_?0:p.FM)&&g.nH(p.JG)?!0:!1;p.D("html5_log_detailpage_autoplay")&&p_(p)==="detailpage"&&p.jA("autoplay_info",{autoplay:p.o9,autonav:p.isAutonav,wasDompaused:p.x_,result:x});return x}; g.vw=function(p){return p.oauthToken||p.JG.JR}; q5J=function(p){if(p.D("html5_stateful_audio_normalization")){var x=1,a=g.e_(p.JG.experiments,"html5_default_ad_gain");a&&p.isAd()&&(x=a);var v,c;a=(c=(v=p.B)==null?void 0:v.audio.B)!=null?c:p.kY;if(a==null||isNaN(a))p=PL_(p);else{v=(0,g.WR)();p.Tc=2;c=v-p.JG.eX<=p.maxStatefulTimeThresholdSec*1E3;p.applyStatefulNormalization&&c?p.Tc=4:c||(p.JG.HU=Infinity,p.JG.eX=NaN);c=(p.Tc===4?g.ZL(p.JG.HU,p.minimumLoudnessTargetLkfs,p.loudnessTargetLkfs):p.loudnessTargetLkfs)-a;if(p.Tc!==4){var J,R,d,b,r=((J= p.playerResponse)==null?void 0:(R=J.playerConfig)==null?void 0:(d=R.audioConfig)==null?void 0:(b=d.loudnessNormalizationConfig)==null?void 0:b.statelessLoudnessAdjustmentGain)||0;c+=r}c=Math.min(c,0);p.preserveStatefulLoudnessTarget&&(p.JG.HU=a+c,p.JG.eX=v);p=Math.min(1,Math.pow(10,c/20))||x}}else p=PL_(p);return p}; PL_=function(p){var x=1,a=g.e_(p.JG.experiments,"html5_default_ad_gain");a&&p.isAd()&&(x=a);if(p.g1){var v,c;a=((v=p.B)==null?void 0:v.audio.j)!=null?(c=p.B)==null?void 0:c.audio.j:p.tU}else{var J;a=((J=p.B)==null?void 0:J.audio.j)||p.tU}isNaN(a)||(p.Tc=1);return Math.min(1,Math.pow(10,-a/20))||x}; Db=function(p){var x=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],a=B0(p.JG)==="TVHTML5_SIMPLY"&&p.JG.U.ctheme==="MUSIC";!p.Y_&&(g.SG(p.JG)||g.jM(p.JG)||a)&&(x.includes(p.musicVideoType)||p.isExternallyHostedPodcast)&&(p.Y_=!0);if(x=g.yl())x=/Starboard\/([0-9]+)/.exec(g.Ez()),x=(x?parseInt(x[1],10):NaN)<10;a=p.JG;a=(B0(a)==="TVHTML5_CAST"||B0(a)==="TVHTML5"&&(a.U.cver.startsWith("6.20130725")||a.U.cver.startsWith("6.20130726")))&&p.JG.U.ctheme==="MUSIC";var v;if(v=!p.Y_)a||(a= p.JG,a=B0(a)==="TVHTML5"&&a.U.cver.startsWith("7")),v=a;v&&!x&&(x=p.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",a=(p.D("cast_prefer_audio_only_for_atv_and_uploads")||p.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&p.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",x||a||p.isExternallyHostedPodcast)&&(p.Y_=!0);return p.JG.deviceIsAudioOnly||p.Y_&&p.JG.Y}; H_=function(p){var x,a,v;return((x=p.playerResponse)==null?void 0:(a=x.playerConfig)==null?void 0:(v=a.compositeVideoConfig)==null?void 0:v.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; nCQ=function(p){var x,a,v,c=(x=p.playerResponse)==null?void 0:(a=x.playerConfig)==null?void 0:(v=a.compositeVideoConfig)==null?void 0:v.sourceConfigs,J,R,d;p=(J=p.playerResponse)==null?void 0:(R=J.playerConfig)==null?void 0:(d=R.compositeVideoConfig)==null?void 0:d.defaultActiveSourceVideoId;if(!c||!p)return"";c=g.k(c);for(J=c.next();!J.done;J=c.next())if(J=J.value,J.videoId===p&&J.audioTracks)for(J=g.k(J.audioTracks),R=J.next();!R.done;R=J.next())if(R=R.value,R.isDefaultForSource)return R.id||""; return""}; g.exf=function(p){return p.Dp()&&TV(p)||H_(p)}; cw=function(p){var x,a,v;return!!((x=p.playerResponse)==null?0:(a=x.playerConfig)==null?0:(v=a.mediaCommonConfig)==null?0:v.splitScreenEligible)}; Je=function(p){var x;return!((x=p.playerResponse)==null||!x.compositePlayabilityStatus)}; uL1=function(p){return isNaN(p)?0:Math.max((Date.now()-p)/1E3-30,0)}; VyI=function(p){return p.zC&&!p.Ay}; K_=function(p){return!(!p.p$||!p.JG.Y)&&p.W0()}; dz=function(p){return p.wS&&p.enableServerStitchedDai}; Fc1=function(p){return p.RM&&!p.GG}; TV=function(p){var x=p.D("html5_enable_sabr_on_drive")&&p.JG.Zt==="gd";if(p.Sd)return p.RM&&p.jA("fds",{fds:!0},!0),!1;if(p.JG.Zt!=="yt"&&!x)return p.RM&&p.jA("dsvn",{ns:p.JG.Zt},!0),!1;if(p.cotn||!p.U||p.U.isOtf&&!p.D("html5_enable_sabr_otf_in_client")||p.j&&!p.j.U||p.aR&&!p.D("html5_enable_sabr_csdai"))return!1;if(p.D("html5_use_sabr_requests_for_debugging"))return!0;p.RM&&p.jA("esfw",{usbc:p.RM,hsu:!!p.GG},!0);if(p.RM&&p.GG)return!0;if(p.D("html5_remove_client_sabr_determination"))return!1;var a= !p.U.Dp&&!p.Sg();x=a&&lT&&p.D("html5_enable_sabr_vod_streaming_xhr");a=a&&!lT&&p.D("html5_enable_sabr_vod_non_streaming_xhr");var v=bX(p),c=p.D("html5_enable_sabr_drm_vod_streaming_xhr")&&lT&&p.Sg()&&!p.U.Dp&&(p.drmProduct==="1"?!1:!0);(x=x||a||v||c)&&!p.GG&&p.jA("sabr",{loc:"m"},!0);return x&&!!p.GG}; bX=function(p){var x;if(!(x=lT&&p.Dp()&&p.Sg()&&(p.drmProduct==="1"?!1:!0)&&p.D("html5_sabr_live_drm_streaming_xhr"))){x=p.Dp()&&!p.Sg()&&lT;var a=p.Dp()&&p.latencyClass!=="ULTRALOW"&&!p.isLowLatencyLiveStream&&p.D("html5_sabr_live_normal_latency_streaming_xhr"),v=p.isLowLatencyLiveStream&&p.D("html5_sabr_live_low_latency_streaming_xhr"),c=p.latencyClass==="ULTRALOW"&&p.D("html5_sabr_live_ultra_low_latency_streaming_xhr");x=x&&(a||v||c)}a=x;x=p.enableServerStitchedDai&&a&&p.D("html5_enable_sabr_ssdai_streaming_xhr"); a=!p.enableServerStitchedDai&&a;v=p.Dp()&&!lT&&p.D("html5_enable_sabr_live_non_streaming_xhr");p=lT&&(p.O8()||cw(p)&&p.D("html5_enable_sabr_for_lifa_eligible_streams"));return x||a||v||p}; Wc_=function(p){var x;if(x=!!p.cotn)x=p.videoId,x=!!x&&g.um(x)===1;return x&&!p.p$}; g.rz=function(p){if(!p.U||!p.Z||!p.B)return!1;var x=p.U.U,a=!!x[p.Z.id]&&Nt(x[p.Z.id].JX.U);x=!!x[p.B.id]&&Nt(x[p.B.id].JX.U);return(p.Z.itag==="0"||a)&&x}; Bw=function(p){return p.hf?["OK","LIVE_STREAM_OFFLINE"].includes(p.hf.status):!0}; ECf=function(p){return(p=p.eQ)&&p.showError?p.showError:!1}; lX=function(p,x){return p.D(x)?!0:(p.fflags||"").includes(x+"=true")}; Rxb=function(p,x){x.inlineMetricEnabled&&(p.inlineMetricEnabled=!0);x.playback_progress_0s_url&&(p.qq=new wPJ(x));if(x=x.video_masthead_ad_quartile_urls)p.fN=x.quartile_0_url,p.M7=x.quartile_25_url,p.KK=x.quartile_50_url,p.tO=x.quartile_75_url,p.Vd=x.quartile_100_url,p.Df=x.quartile_0_urls,p.F_=x.quartile_25_urls,p.uZ=x.quartile_50_urls,p.Wi=x.quartile_75_urls,p.EQ=x.quartile_100_urls}; Jmf=function(p){var x={};p=g.k(p);for(var a=p.next();!a.done;a=p.next()){a=a.value;var v=a.split("=");v.length===2?x[v[0]]=v[1]:x[a]=!0}return x}; vCx=function(p){if(p){if(MJz(p))return p;p=W_8(p);if(MJz(p,!0))return p}return""}; g.pc_=function(p){return p.captionsLanguagePreference||p.JG.captionsLanguagePreference||g.Zb(p,"yt:cc_default_lang")||p.JG.y8}; L_=function(p){return!(!p.isLivePlayback||!p.hasProgressBarBoundaries())}; g.jY=function(p){var x;return p.NC||((x=p.suggestions)==null?void 0:x[0])||null}; g.Yu=function(p){var x,a;return!!((x=p.embeddedPlayerConfig)==null?0:(a=x.embeddedPlayerFlags)==null?0:a.enableMusicUx)}; x8b=function(p){return p.V||p.D("web_player_media_session_infinity")&&p.isLivePlayback}; he=function(p){return p.JG.B&&p.isPrivate}; g.IN=function(p){var x=p.L(),a=g.j9(x),v=x.vX;(x.D("embeds_web_enable_iframe_api_send_full_embed_url")||x.D("embeds_web_enable_rcat_validation_in_havs")||x.D("embeds_enable_autoplay_and_visibility_signals"))&&g.xO(x)&&(v&&(a.thirdParty=Object.assign({},a.thirdParty,{embedUrl:v})),cE_(a,p));if(v=p.hG)a.clickTracking={clickTrackingParams:v};else if(g.xO(p.L())&&g.gx("EVENT_ID"))a.clickTracking={clickTrackingParams:g.gx("EVENT_ID")};else if(x.D("html5_log_missing_itct")){var c;v=new g.gr("Missing ITCT in InnerTubeContext", {isAd:p.isAd(),TbT:(c=x.getWebPlayerContextConfig())==null?void 0:c.contextId});g.Uq(v)}c=a.client||{};v="EMBED";var J=p_(p);J==="leanback"?v="WATCH":x.D("gvi_channel_client_screen")&&J==="profilepage"?v="CHANNEL":p.T4?v="LIVE_MONITOR":J==="detailpage"?v="WATCH_FULL_SCREEN":J==="adunit"?v="ADUNIT":J==="sponsorshipsoffer"&&(v="UNKNOWN");c.clientScreen=v;if(x=p.kidsAppInfo)c.kidsAppInfo=JSON.parse(x);(v=p.gX)&&!x&&(c.kidsAppInfo={contentSettings:{ageUpMode:$8f[v]}});if(x=p.Cm)c.unpluggedAppInfo={enableFilterMode:!0}; (v=p.unpluggedFilterModeType)&&!x&&(c.unpluggedAppInfo={filterModeType:anz[v]});if(x=p.y8)c.unpluggedLocationInfo=x;a.client=c;c=a.request||{};p.OT&&(c.isPrefetch=!0);if(x=p.mdxEnvironment)c.mdxEnvironment=x;if(x=p.mdxControlMode)c.mdxControlMode=ss8[x];a.request=c;c=a.user||{};if(x=p.F5)c.credentialTransferTokens=[{token:x,scope:"VIDEO"}];if(x=p.FX)c.delegatePurchases={oauthToken:x},c.kidsParent={oauthToken:x};a.user=c;if(c=p.contextParams)a.activePlayers=[{playerContextParams:c}];if(p=p.clientScreenNonce)a.clientScreenNonce= p;return a}; g.j9=function(p){var x=g.OE(),a=x.client||{};if(p.forcedExperiments){var v=p.forcedExperiments.split(","),c=[];v=g.k(v);for(var J=v.next();!J.done;J=v.next())c.push(Number(J.value));a.experimentIds=c}if(c=p.homeGroupInfo)a.homeGroupInfo=JSON.parse(c);if(c=p.getPlayerType())a.playerType=c;if(c=p.U.ctheme)a.theme=c;if(c=p.livingRoomAppMode)a.tvAppInfo=Object.assign({},a.tvAppInfo,{livingRoomAppMode:c});c=p.deviceYear;p.D("html5_propagate_device_year")&&c&&(a.tvAppInfo=Object.assign({},a.tvAppInfo,{deviceYear:c})); if(c=p.livingRoomPoTokenId)a.tvAppInfo=Object.assign({},a.tvAppInfo,{livingRoomPoTokenId:c});x.client=a;a=x.user||{};p.enableSafetyMode&&(a=Object.assign({},a,{enableSafetyMode:!0}));p.pageId&&(a=Object.assign({},a,{onBehalfOfUser:p.pageId}));x.user=a;a=p.vX;p.D("embeds_web_enable_iframe_api_send_full_embed_url")||p.D("embeds_web_enable_rcat_validation_in_havs")||p.D("embeds_enable_autoplay_and_visibility_signals")||!a||(x.thirdParty={embedUrl:a});return x}; d8T=function(p,x,a){var v=p.videoId,c=g.IN(p),J=p.L(),R={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(hJ()),referer:document.location.toString(),signatureTimestamp:20298};g.oQ();p.isAutonav&&(R.autonav=!0);g.tX(0,141)&&(R.autonavState=g.tX(0,140)?"STATE_OFF":"STATE_ON");R.autoCaptionsDefaultOn=g.tX(0,66);AmU(p)&&(R.autoplay=!0);J.Y&&p.cycToken&&(R.cycToken=p.cycToken);J.enablePrivacyFilter&&(R.enablePrivacyFilter=!0);p.isFling&&(R.fling=!0);var d=p.forceAdsUrl;if(d){var b={},r=[];d= d.split(",");d=g.k(d);for(var B=d.next();!B.done;B=d.next()){B=B.value;var l=B.split("|");l.length!==3||B.includes("=")||(l[0]="breaktype="+l[0],l[1]="offset="+l[1],l[2]="url="+l[2]);B={adtype:"video_ad"};l=g.k(l);for(var L=l.next();!L.done;L=l.next()){var Y=g.k(L.value.split("="));L=Y.next().value;Y=v1x(Y);B[L]=Y.join("=")}l=B.url;L=B.presetad;Y=B.viralresponseurl;var h=Number(B.campaignid);if(B.adtype==="in_display_ad")l&&(b.url=l),L&&(b.presetAd=L),Y&&(b.viralAdResponseUrl=Y),h&&(b.viralCampaignId= String(h));else if(B.adtype==="video_ad"){var D={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(B.offset)||0)}};if(B=vQ8[B.breaktype])D.breakType=B;l&&(D.url=l);L&&(D.presetAd=L);Y&&(D.viralAdResponseUrl=Y);h&&(D.viralCampaignId=String(h));r.push(D)}}R.forceAdParameters={videoAds:r,inDisplayAd:b}}p.isInlinePlaybackNoAd&&(R.isInlinePlaybackNoAd=!0);p.isLivingRoomDeeplink&&(R.isLivingRoomDeeplink=!0);b=p.Z16;if(b!=null){b={startWalltime:String(b)};if(r=p.FQ)b.manifestDuration=String(r||14400); R.liveContext=b}if(p.mutedAutoplay){R.mutedAutoplay=!0;b=J.getWebPlayerContextConfig();var H,f;(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowMutedAutoplayDurationMode)&&(b==null?0:(f=b.embedsHostFlags)==null?0:f.allowMutedAutoplayDurationMode.includes(c2I[p.mutedAutoplayDurationMode]))&&(R.mutedAutoplayDurationMode=c2I[p.mutedAutoplayDurationMode])}if(p.x_?0:p.FM)R.splay=!0;H=p.vnd;H===5&&(R.vnd=H);H={};if(f=p.isMdxPlayback)H.triggeredByMdx=f;if(f=p.s4)H.skippableAdsSupported=f.split(",").includes("ska"); if(r=p.Gg){f=p.Qo;b=[];r=g.k(JE1(r));for(d=r.next();!d.done;d=r.next()){d=d.value;B=d.platform;d={applicationState:d.lz?"INACTIVE":"ACTIVE",clientFormFactor:J2Q[B]||"UNKNOWN_FORM_FACTOR",clientName:KKU[d.Ru]||"UNKNOWN_INTERFACE",clientVersion:d.deviceVersion||"",platform:RHT[B]||"UNKNOWN_PLATFORM"};B={};if(f){l=void 0;try{l=JSON.parse(f)}catch(X){g.Hp(X)}l&&(B={params:[{key:"ms",value:l.ms}]},l.advertising_id&&(B.advertisingId=l.advertising_id),l.limit_ad_tracking!==void 0&&l.limit_ad_tracking!== null&&(B.limitAdTracking=l.limit_ad_tracking),d.osName=l.os_name,d.userAgent=l.user_agent,d.windowHeightPoints=l.window_height_points,d.windowWidthPoints=l.window_width_points)}b.push({adSignalsInfo:B,remoteClient:d})}H.remoteContexts=b}f=p.sourceContainerPlaylistId;b=p.serializedMdxMetadata;if(f||b)r={},f&&(r.mdxPlaybackContainerInfo={sourceContainerPlaylistId:f}),b&&(r.serializedMdxMetadata=b),H.mdxPlaybackSourceContext=r;R.mdxContext=H;H=x.width;H>0&&(R.playerWidthPixels=Math.round(H));if(x=x.height)R.playerHeightPixels= Math.round(x);a!==0&&(R.vis=a);if(a=J.widgetReferrer)R.widgetReferrer=a.substring(0,128);g.nH(J)&&R&&(R.ancestorOrigins=J.ancestorOrigins);p.defaultActiveSourceVideoId&&(R.compositeVideoContext={defaultActiveSourceVideoId:p.defaultActiveSourceVideoId});if(J=J.getWebPlayerContextConfig())R.encryptedHostFlags=J.encryptedHostFlags;v={videoId:v,context:c,playbackContext:{contentPlaybackContext:R}};if(p.jy){var m;v.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(m=p.jy)==null?void 0:m.reloadPlaybackParams}}p.contentCheckOk&& (v.contentCheckOk=!0);if(m=p.clientPlaybackNonce)v.cpn=m;if(m=p.playerParams)v.params=m;if(m=p.playlistId)v.playlistId=m;p.racyCheckOk&&(v.racyCheckOk=!0);m=p.L();c=m.embedConfig;p.j1&&m.D("embeds_enable_per_video_embed_config")?v.serializedThirdPartyEmbedConfig=p.j1:c&&(v.serializedThirdPartyEmbedConfig=c);v.captionParams={};c=g.tX(g.oQ(),65);p.deviceCaptionsOn!=null?v.captionParams.deviceCaptionsOn=p.deviceCaptionsOn:g.YO(m)&&(v.captionParams.deviceCaptionsOn=c!=null?!c:!1);p.Wx&&(v.captionParams.deviceCaptionsLangPref= p.Wx);p.DO.length?v.captionParams.viewerSelectedCaptionLangs=p.DO:g.YO(m)&&(c=g.Y9(),c==null?0:c.length)&&(v.captionParams.viewerSelectedCaptionLangs=c);c=p.fetchType==="onesie"&&p.D("html5_onesie_attach_po_token");R=p.fetchType!=="onesie"&&p.D("html5_non_onesie_attach_po_token");if(c||R)c=p.L(),c.x_&&(v.serviceIntegrityDimensions={},v.serviceIntegrityDimensions.poToken=c.x_);m.D("fetch_att_independently")&&(v.attestationRequest={omitBotguardData:!0});v.playbackContext||(v.playbackContext={});v.playbackContext.devicePlaybackCapabilities= KoI(p);v.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&p.jA("noVp9",{});return v}; KoI=function(p){var x=!(p==null?0:p.Bx())&&(p==null?void 0:p.Dp())&&e$(),a;if(!(a=p==null)){a=g.QF(p);p=p.L().C;var v=Qp("243");a=!(v&&iH(a,v,p,!0)===!0)}return{supportsVp9Encoding:!(a||x),supportXhr:lT}}; r2f=function(p,x){var a,v,c;return g.t(function(J){if(J.Z==1)return a={context:g.j9(p.L()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:p.videoId,cpn:p.clientPlaybackNonce}}]},v=g.PC(bzU),g.C(J,g.Sb(x,a,v),2);c=J.U;return J.return(c)})}; Bq_=function(p,x,a){var v=g.e_(x.experiments,"bg_vm_reinit_threshold");(!Vx||(0,g.WR)()-Vx>v)&&r2f(p,a).then(function(c){c&&(c=c.botguardData)&&g.p1(c,x)},function(c){p.b$()||(c=rD(c),p.jA("attf",c.details))})}; Mh=function(p,x){g.y.call(this);this.app=p;this.state=x}; ku=function(p,x,a){p.state.U.hasOwnProperty(x)||Ww(p,x,a);p.state.V[x]=function(){return a.apply(p,g.g_.apply(0,arguments))}; p.state.S.add(x)}; DF=function(p,x,a){p.state.U.hasOwnProperty(x)||Ww(p,x,a);p.app.L().Y&&(p.state.Y[x]=function(){return a.apply(p,g.g_.apply(0,arguments))},p.state.S.add(x))}; Ww=function(p,x,a){p.state.U[x]=function(){return a.apply(p,g.g_.apply(0,arguments))}}; g.Us=function(p,x,a){return p.state.U[x].apply(p.state.U,g.lf(a))}; Hw=function(){g.kW.call(this);this.C=new Map}; TQ=function(){g.y.apply(this,arguments);this.element=null;this.S=new Set;this.V={};this.Y={};this.U={};this.T=new Set;this.j=new Hw;this.Z=new Hw;this.B=new Hw;this.C=new Hw}; lnU=function(p,x,a){typeof p==="string"&&(p={mediaContentUrl:p,startSeconds:x,suggestedQuality:a});a:{if((x=p.mediaContentUrl)&&(x=/\/([ve]|embed)\/([^#?]+)/.exec(x))&&x[2]){x=x[2];break a}x=null}p.videoId=x;return Qy(p)}; Qy=function(p,x,a){if(typeof p==="string")return{videoId:p,startSeconds:x,suggestedQuality:a};x={};a=g.k(Lox);for(var v=a.next();!v.done;v=a.next())v=v.value,p[v]&&(x[v]=p[v]);if(p=p.embedConfig||p.embed_config)if(typeof p==="string")x.embed_config=p;else if(g.cQ(p))try{var c=JSON.stringify(p);x.embed_config=c}catch(J){console.error("Invalid embedConfig JSON",J)}return x}; Ywz=function(p,x,a,v){if(g.cQ(p)&&!Array.isArray(p)){x="playlist list listType index startSeconds suggestedQuality".split(" ");a={};for(v=0;v32&&v.push("hfr");x.isHdr()&&v.push("hdr");x.primaries==="bt2020"&&v.push("wcg");a.video_quality_features=v}}if(p=p.getPlaylistId())a.list=p;return a}; X6=function(){mH.apply(this,arguments)}; iX=function(p,x){var a={};if(p.app.L().pI){p=g.k(Mxx);for(var v=p.next();!v.done;v=p.next())v=v.value,x.hasOwnProperty(v)&&(a[v]=x[v]);if(x=a.qoe_cat)p="",typeof x==="string"&&x.length>0&&(p=x.split(",").filter(function(c){return Wog.includes(c)}).join(",")),a.qoe_cat=p; kaT(a)}else for(p=g.k(D81),v=p.next();!v.done;v=p.next())v=v.value,x.hasOwnProperty(v)&&(a[v]=x[v]);return a}; kaT=function(p){var x=p.raw_player_response;if(!x){var a=p.player_response;a&&(x=JSON.parse(a))}delete p.player_response;delete p.raw_player_response;if(x){p.raw_player_response={streamingData:x.streamingData,playerConfig:x.playerConfig};var v;if((v=x.playbackTracking)==null?0:v.qoeUrl)p.raw_player_response=Object.assign({},p.raw_player_response,{playbackTracking:{qoeUrl:x.playbackTracking.qoeUrl}});x.videoDetails&&(x.videoDetails.videoId||x.videoDetails.lengthSeconds)&&(a={},x.videoDetails.videoId&& (a.videoId=x.videoDetails.videoId),x.videoDetails.lengthSeconds&&(a.lengthSeconds=x.videoDetails.lengthSeconds),p.raw_player_response=Object.assign({},p.raw_player_response,{videoDetails:a}))}}; oN=function(p,x,a){var v=p.app.Ez(a);if(!v)return 0;p=v-p.app.getCurrentTime(a);return x-p}; HzT=function(p){var x=x===void 0?5:x;return p?U8o[p]||x:x}; g.te=function(){X6.apply(this,arguments)}; Tqo=function(p){Ww(p,"getInternalApiInterface",p.getInternalApiInterface);Ww(p,"addEventListener",p.y7);Ww(p,"removeEventListener",p.JUr);Ww(p,"cueVideoByPlayerVars",p.aF);Ww(p,"loadVideoByPlayerVars",p.Hk);Ww(p,"preloadVideoByPlayerVars",p.THt);Ww(p,"getAdState",p.getAdState);Ww(p,"sendAbandonmentPing",p.sendAbandonmentPing);Ww(p,"setLoopRange",p.setLoopRange);Ww(p,"getLoopRange",p.getLoopRange);Ww(p,"setAutonavState",p.setAutonavState);Ww(p,"seekTo",p.RCA);Ww(p,"seekBy",p.QvG);Ww(p,"seekToLiveHead", p.seekToLiveHead);Ww(p,"requestSeekToWallTimeSeconds",p.requestSeekToWallTimeSeconds);Ww(p,"seekToStreamTime",p.seekToStreamTime);Ww(p,"prefetchKeyPlay",p.prefetchKeyPlay);Ww(p,"startSeekCsiAction",p.startSeekCsiAction);Ww(p,"getStreamTimeOffset",p.getStreamTimeOffset);Ww(p,"getVideoData",p.W8);Ww(p,"setInlinePreview",p.setInlinePreview);Ww(p,"getAppState",p.getAppState);Ww(p,"updateLastActiveTime",p.updateLastActiveTime);Ww(p,"setBlackout",p.setBlackout);Ww(p,"setUserEngagement",p.setUserEngagement); Ww(p,"updateSubtitlesUserSettings",p.updateSubtitlesUserSettings);Ww(p,"getPresentingPlayerType",p.BT);Ww(p,"canPlayType",p.canPlayType);Ww(p,"updatePlaylist",p.updatePlaylist);Ww(p,"updateVideoData",p.updateVideoData);Ww(p,"updateEnvironmentData",p.updateEnvironmentData);Ww(p,"sendVideoStatsEngageEvent",p.aKA);Ww(p,"productsInVideoVisibilityUpdated",p.productsInVideoVisibilityUpdated);Ww(p,"setSafetyMode",p.setSafetyMode);Ww(p,"isAtLiveHead",function(x){return p.isAtLiveHead(void 0,x)}); Ww(p,"getVideoAspectRatio",p.getVideoAspectRatio);Ww(p,"getPreferredQuality",p.getPreferredQuality);Ww(p,"getPlaybackQualityLabel",p.getPlaybackQualityLabel);Ww(p,"setPlaybackQualityRange",p.Tk7);Ww(p,"onAdUxClicked",p.onAdUxClicked);Ww(p,"getFeedbackProductData",p.getFeedbackProductData);Ww(p,"getStoryboardFrame",p.getStoryboardFrame);Ww(p,"getStoryboardFrameIndex",p.getStoryboardFrameIndex);Ww(p,"getStoryboardLevel",p.getStoryboardLevel);Ww(p,"getNumberOfStoryboardLevels",p.getNumberOfStoryboardLevels); Ww(p,"getCaptionWindowContainerId",p.getCaptionWindowContainerId);Ww(p,"getAvailableQualityLabels",p.getAvailableQualityLabels);Ww(p,"addCueRange",p.addCueRange);Ww(p,"addUtcCueRange",p.addUtcCueRange);Ww(p,"showAirplayPicker",p.showAirplayPicker);Ww(p,"dispatchReduxAction",p.dispatchReduxAction);Ww(p,"getPlayerResponse",p.je);Ww(p,"getWatchNextResponse",p.DX);Ww(p,"getHeartbeatResponse",p.dE);Ww(p,"getCurrentTime",p.rE);Ww(p,"getDuration",p.rj);Ww(p,"getPlayerState",p.getPlayerState);Ww(p,"getPlayerStateObject", p.P8);Ww(p,"getVideoLoadedFraction",p.getVideoLoadedFraction);Ww(p,"getProgressState",p.getProgressState);Ww(p,"getVolume",p.getVolume);Ww(p,"setVolume",p.m_);Ww(p,"isMuted",p.isMuted);Ww(p,"mute",p.lX);Ww(p,"unMute",p.Jr);Ww(p,"loadModule",p.loadModule);Ww(p,"unloadModule",p.unloadModule);Ww(p,"getOption",p.jo);Ww(p,"getOptions",p.getOptions);Ww(p,"setOption",p.setOption);Ww(p,"loadVideoById",p.LM);Ww(p,"loadVideoByUrl",p.NW);Ww(p,"playVideo",p.VR);Ww(p,"loadPlaylist",p.loadPlaylist);Ww(p,"nextVideo", p.nextVideo);Ww(p,"previousVideo",p.previousVideo);Ww(p,"playVideoAt",p.playVideoAt);Ww(p,"getDebugText",p.getDebugText);Ww(p,"getWebPlayerContextConfig",p.getWebPlayerContextConfig);Ww(p,"notifyShortsAdSwipeEvent",p.notifyShortsAdSwipeEvent);Ww(p,"getVideoContentRect",p.getVideoContentRect);Ww(p,"setSqueezeback",p.setSqueezeback);Ww(p,"toggleSubtitlesOn",p.toggleSubtitlesOn);Ww(p,"isSubtitlesOn",p.isSubtitlesOn);Ww(p,"reportPlaybackIssue",p.reportPlaybackIssue);Ww(p,"setAutonav",p.setAutonav);Ww(p, "isNotServable",p.isNotServable);Ww(p,"channelSubscribed",p.channelSubscribed);Ww(p,"channelUnsubscribed",p.channelUnsubscribed);Ww(p,"togglePictureInPicture",p.togglePictureInPicture);Ww(p,"supportsGaplessAudio",p.supportsGaplessAudio);Ww(p,"supportsGaplessShorts",p.supportsGaplessShorts);Ww(p,"enqueueVideoByPlayerVars",function(x){return void p.enqueueVideoByPlayerVars(x)}); Ww(p,"clearQueue",p.clearQueue);Ww(p,"getAudioTrack",p.aj);Ww(p,"setAudioTrack",p.LT4);Ww(p,"getAvailableAudioTracks",p.NI);Ww(p,"getMaxPlaybackQuality",p.getMaxPlaybackQuality);Ww(p,"getUserPlaybackQualityPreference",p.getUserPlaybackQualityPreference);Ww(p,"getSubtitlesUserSettings",p.getSubtitlesUserSettings);Ww(p,"resetSubtitlesUserSettings",p.resetSubtitlesUserSettings);Ww(p,"setMinimized",p.setMinimized);Ww(p,"setOverlayVisibility",p.setOverlayVisibility);Ww(p,"confirmYpcRental",p.confirmYpcRental); Ww(p,"queueNextVideo",p.queueNextVideo);Ww(p,"handleExternalCall",p.handleExternalCall);Ww(p,"logApiCall",p.logApiCall);Ww(p,"isExternalMethodAvailable",p.isExternalMethodAvailable);Ww(p,"setScreenLayer",p.setScreenLayer);Ww(p,"getCurrentPlaylistSequence",p.getCurrentPlaylistSequence);Ww(p,"getPlaylistSequenceForTime",p.getPlaylistSequenceForTime);Ww(p,"shouldSendVisibilityState",p.shouldSendVisibilityState);Ww(p,"syncVolume",p.syncVolume);Ww(p,"highlightSettingsMenuItem",p.highlightSettingsMenuItem); Ww(p,"openSettingsMenuItem",p.openSettingsMenuItem);Ww(p,"getEmbeddedPlayerResponse",p.getEmbeddedPlayerResponse);Ww(p,"getVisibilityState",p.getVisibilityState);Ww(p,"isMutedByMutedAutoplay",p.isMutedByMutedAutoplay);Ww(p,"isMutedByEmbedsMutedAutoplay",p.isMutedByEmbedsMutedAutoplay);Ww(p,"setGlobalCrop",p.setGlobalCrop);Ww(p,"setInternalSize",p.setInternalSize);Ww(p,"setFauxFullscreen",p.setFauxFullscreen);Ww(p,"setAppFullscreen",p.setAppFullscreen)}; wz=function(p,x,a){p=g.zQ(p.Gn(),x);return a?(a.addOnDisposeCallback(p),null):p}; g.Es=function(p,x,a){return p.app.L().lc?x:g.px("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:x,SHORTCUT:a})}; Qsx=function(p){p.Gn().element.setAttribute("aria-live","polite")}; g.yy=function(p,x){g.te.call(this,p,x);Tqo(this);DF(this,"addEventListener",this.E0);DF(this,"removeEventListener",this.FTI);DF(this,"cueVideoByPlayerVars",this.gm);DF(this,"loadVideoByPlayerVars",this.eO);DF(this,"preloadVideoByPlayerVars",this.yiI);DF(this,"loadVideoById",this.LM);DF(this,"loadVideoByUrl",this.NW);DF(this,"playVideo",this.VR);DF(this,"loadPlaylist",this.loadPlaylist);DF(this,"nextVideo",this.nextVideo);DF(this,"previousVideo",this.previousVideo);DF(this,"playVideoAt",this.playVideoAt); DF(this,"getVideoData",this.Ch);DF(this,"seekBy",this.GyI);DF(this,"seekTo",this.mNr);DF(this,"showControls",this.showControls);DF(this,"hideControls",this.hideControls);DF(this,"cancelPlayback",this.cancelPlayback);DF(this,"getProgressState",this.getProgressState);DF(this,"isInline",this.isInline);DF(this,"setInline",this.setInline);DF(this,"setLoopVideo",this.setLoopVideo);DF(this,"getLoopVideo",this.getLoopVideo);DF(this,"getVideoContentRect",this.getVideoContentRect);DF(this,"getVideoStats",this.hw); DF(this,"getCurrentTime",this.yT);DF(this,"getDuration",this.rj);DF(this,"getPlayerState",this.OA);DF(this,"getVideoLoadedFraction",this.Se);DF(this,"mute",this.lX);DF(this,"unMute",this.Jr);DF(this,"setVolume",this.m_);DF(this,"loadModule",this.loadModule);DF(this,"unloadModule",this.unloadModule);DF(this,"getOption",this.jo);DF(this,"getOptions",this.getOptions);DF(this,"setOption",this.setOption);DF(this,"addCueRange",this.addCueRange);DF(this,"getDebugText",this.getDebugText);DF(this,"getStoryboardFormat", this.getStoryboardFormat);DF(this,"toggleFullscreen",this.toggleFullscreen);DF(this,"isFullscreen",this.isFullscreen);DF(this,"getPlayerSize",this.getPlayerSize);DF(this,"toggleSubtitles",this.toggleSubtitles);DF(this,"setCenterCrop",this.setCenterCrop);DF(this,"setFauxFullscreen",this.setFauxFullscreen);DF(this,"setSizeStyle",this.setSizeStyle);DF(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);DF(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);jso(this)}; g.gz=function(p){p=p.uV();var x=p.Tn.get("endscreen");return x&&x.Gc()?!0:p.X7()}; g.ZF=function(p,x){p.getPresentingPlayerType()===3?p.publish("mdxautoplaycancel"):p.NT("onAutonavCancelled",x)}; g.Os=function(p){var x=GQ(p.uV());return p.app.W$&&!p.isFullscreen()||p.getPresentingPlayerType()===3&&x&&x.SB()&&x.vG()||!!p.getPlaylist()}; g.Nh=function(p,x){g.Us(p,"addEmbedsConversionTrackingParams",[x])}; g.Pw=function(p){return(p=g.Ae(p.uV()))?p.vH():{}}; g.m8U=function(p){p=(p=p.getVideoData())&&p.Z;return!!p&&!(!p.audio||!p.video)&&p.mimeType!=="application/x-mpegURL"}; g.qh=function(p,x,a){p=p.fI().element;var v=OV(p.children,function(c){c=Number(c.getAttribute("data-layer"));return a-c||1}); v<0&&(v=-(v+1));MW(p,x,v);x.setAttribute("data-layer",String(a))}; g.n_=function(p){var x=p.L();if(!x.Iw)return!1;var a=p.getVideoData();if(!a||p.getPresentingPlayerType()===3)return!1;var v=(!a.isLiveDefaultBroadcast||x.D("allow_poltergust_autoplay"))&&!L_(a);v=a.isLivePlayback&&(!x.D("allow_live_autoplay")||!v);var c=a.isLivePlayback&&x.D("allow_live_autoplay_on_mweb");p=p.getPlaylist();p=!!p&&p.SB();var J=a.qT&&a.qT.playerOverlays||null;J=!!(J&&J.playerOverlayRenderer&&J.playerOverlayRenderer.autoplay);J=a.fp&&J;return!a.ypcPreview&&(!v||c)&&!g.kt(a.T,"ypc")&& !p&&(!g.nH(x)||J)}; fnb=function(p,x){p=Swg(p.app.bH().C);p=g.k(p);for(var a=p.next();!a.done;a=p.next()){a=a.value;var v=a.getAvailableAudioTracks(),c=null;v=g.k(v);for(var J=v.next();!J.done;J=v.next())if(J=J.value,J.getLanguageInfo().getId()===x){c=J;break}c&&a.pX(c,!0)}}; e9=function(){XK.apply(this,arguments);this.requestHeaders={}}; Vy=function(){uX||(uX=new e9);return uX}; F6=function(p,x){x?p.requestHeaders.Authorization="Bearer "+x:delete p.requestHeaders.Authorization}; g.pI=function(p){g.y.call(this);var x=this;this.U7=p;this.d3={TB:function(){return x.U7}}}; g.xK=function(p,x,a,v){v=v===void 0?!1:v;g.s6.call(this,x);var c=this;this.W=p;this.O7=v;this.Y=new g.II(this);this.fade=new g.qp(this,a,!0,void 0,void 0,function(){c.mG()}); g.Z(this,this.Y);g.Z(this,this.fade)}; $K=function(p){var x=p.W.getRootNode();return p.W.D("web_watch_pip")||p.W.D("web_shorts_pip")?xk(x):document}; CpN=function(p){p.Z&&(document.activeElement&&g.kk(p.element,document.activeElement)&&p.Z.focus(),p.Z.setAttribute("aria-expanded","false"),p.Z=void 0);g.UU(p.Y);p.T=void 0}; aW=function(p,x,a){p.WU()?p.iV():p.Y$(x,a)}; sN=function(p,x,a,v){v=new g.N({J:"div",CI:["ytp-linked-account-popup-button"],wr:v,G:{role:"button",tabindex:"0"}});x=new g.N({J:"div",K:"ytp-linked-account-popup",G:{role:"dialog","aria-modal":"true",tabindex:"-1"},N:[{J:"div",K:"ytp-linked-account-popup-title",wr:x},{J:"div",K:"ytp-linked-account-popup-description",wr:a},{J:"div",K:"ytp-linked-account-popup-buttons",N:[v]}]});g.xK.call(this,p,{J:"div",K:"ytp-linked-account-popup-container",N:[x]},100);var c=this;this.dialog=x;g.Z(this,this.dialog); v.listen("click",function(){c.iV()}); g.Z(this,v);g.qh(this.W,this.element,4);this.hide()}; g.cy=function(p,x,a,v){g.s6.call(this,p);this.priority=x;a&&g.vy(this,a);v&&this.Aj(v)}; g.JU=function(p,x,a,v){p=p===void 0?{}:p;x=x===void 0?[]:x;a=a===void 0?!1:a;v=v===void 0?!1:v;x.push("ytp-menuitem");var c=p;"role"in c||(c.role="menuitem");a||(c=p,"tabindex"in c||(c.tabindex="0"));p={J:a?"a":"div",CI:x,G:p,N:[{J:"div",K:"ytp-menuitem-icon",wr:"{{icon}}"},{J:"div",K:"ytp-menuitem-label",wr:"{{label}}"},{J:"div",K:"ytp-menuitem-content",wr:"{{content}}"}]};v&&p.N.push({J:"div",K:"ytp-menuitem-secondary-icon",wr:"{{secondaryIcon}}"});return p}; g.vy=function(p,x){p.updateValue("label",x)}; RW=function(p){g.cy.call(this,g.JU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var x=this;this.W=p;this.Z=this.U=!1;this.PX=p.Im();p.createServerVe(this.element,this,!0);this.X(this.W,"settingsMenuVisibilityChanged",function(a){x.Rl(a)}); this.X(this.W,"videodatachange",this.B);this.listen("click",this.onClick);this.B()}; KI=function(p){return p?g.Jv(p):""}; d1=function(p){g.y.call(this);this.api=p}; ba=function(p){d1.call(this,p);var x=this;Ww(p,"setAccountLinkState",function(a){x.setAccountLinkState(a)}); Ww(p,"updateAccountLinkingConfig",function(a){x.updateAccountLinkingConfig(a)}); p.addEventListener("videodatachange",function(a,v){x.onVideoDataChange(v)}); p.addEventListener("settingsMenuInitialized",function(){x.menuItem=new RW(x.api);g.Z(x,x.menuItem)})}; XcN=function(p){this.api=p;this.U={}}; r1=function(p,x,a,v){x in p.U||(a=new g.gZ(a,v,{id:x,priority:2,namespace:"appad"}),p.api.xN([a],1),p.U[x]=a)}; By=function(p){d1.call(this,p);var x=this;this.events=new g.II(this);g.Z(this,this.events);this.U=new XcN(this.api);this.events.X(this.api,"legacyadtrackingpingreset",function(){x.U.U={}}); this.events.X(this.api,"legacyadtrackingpingchange",function(a){var v=x.U;r1(v,"part2viewed",1,0x8000000000000);r1(v,"engagedview",Math.max(1,a.US*1E3),0x8000000000000);if(!a.isLivePlayback){var c=a.lengthSeconds*1E3;kh(a)&&v.api.D("html5_shorts_gapless_ads_duration_fix")&&(c=v.api.getProgressState().seekableEnd*1E3-a.eM);r1(v,"videoplaytime25",c*.25,c);r1(v,"videoplaytime50",c*.5,c);r1(v,"videoplaytime75",c*.75,c);r1(v,"videoplaytime100",c,0x8000000000000);r1(v,"conversionview",c,0x8000000000000); r1(v,"videoplaybackstart",1,c);r1(v,"videoplayback2s",2E3,c);r1(v,"videoplayback10s",1E4,c)}}); this.events.X(this.api,g.GF("appad"),this.Z);this.events.X(this.api,g.Oo("appad"),this.Z)}; zHT=function(p,x,a){if(!(a in x))return!1;x=x[a];Array.isArray(x)||(x=[x]);x=g.k(x);for(a=x.next();!a.done;a=x.next()){a=a.value;var v={CPN:p.api.getVideoData().clientPlaybackNonce};a=g.Qz(a,v);v=void 0;v=v===void 0?!1:v;(v=oU(tw(a,izx),a,v,"Active View 3rd Party Integration URL"))||(v=void 0,v=v===void 0?!1:v,v=oU(tw(a,oQ1),a,v,"Google/YouTube Brand Lift URL"));v||(v=void 0,v=v===void 0?!1:v,v=oU(tw(a,txb),a,v,"Nielsen OCR URL"));g.fh(a,void 0,v)}return!0}; la=function(p,x){wc8(p,x).then(function(a){g.fh(x,void 0,void 0,a)})}; LI=function(p,x){x.forEach(function(a){la(p,a)})}; wc8=function(p,x){return g.dZ(p.api.L())&&si(x)&&ay(x)?g.Hx(p.api.L(),g.vw(p.api.getVideoData())).then(function(a){var v;a&&(v={Authorization:"Bearer "+a});return v},void 0):Ql()}; EQN=function(p){d1.call(this,p);this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"videoready",function(x){if(p.getPresentingPlayerType()===1){var a,v,c={playerDebugData:{pmlSignal:!!((a=x.getPlayerResponse())==null?0:(v=a.adPlacements)==null?0:v.some(function(J){var R;return J==null?void 0:(R=J.adPlacementRenderer)==null?void 0:R.renderer})), contentCpn:x.clientPlaybackNonce}};g.ab("adsClientStateChange",c)}})}; YK=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);Ww(this.api,"getUserAudioQualitySetting",function(){return x.getUserAudioQualitySetting()}); Ww(this.api,"setUserAudioQualitySetting",function(a){x.setUserAudioQualitySetting(a)}); Ww(this.api,"hasHqaAudioTrack",function(){return x.hasHqaAudioTrack()}); this.yQ=ak_();this.updateEnvironmentData()}; hU=function(p){g.N.call(this,{J:"button",CI:["ytp-button","ytp-autonav-toggle"],G:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},N:[{J:"div",K:"ytp-autonav-toggle-button-container",N:[{J:"div",K:"ytp-autonav-toggle-button",G:{"aria-checked":"true"}}]}]});this.W=p;this.Z=[];this.U=!1;this.isChecked=!0;p.createClientVe(this.element,this, 113681);this.X(p,"presentingplayerstatechange",this.Fp);this.listen("click",this.onClick);this.W.L().D("web_player_autonav_toggle_always_listen")&&y21(this);wz(p,this.element,this);this.Fp()}; y21=function(p){p.Z.push(p.X(p.W,"videodatachange",p.Fp));p.Z.push(p.X(p.W,"videoplayerreset",p.Fp));p.Z.push(p.X(p.W,"onPlaylistUpdate",p.Fp));p.Z.push(p.X(p.W,"autonavchange",p.PK))}; gQQ=function(p){p.isChecked=p.isChecked;p.BO("ytp-autonav-toggle-button").setAttribute("aria-checked",String(p.isChecked));var x=p.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";p.W.L().D("player_tooltip_data_title_killswitch")?p.update({title:x,label:x}):p.update({"data-tooltip-title":x,label:x});p.W.jg()}; Zzz=function(p){return p.W.L().D("web_player_autonav_use_server_provided_state")&&Yh(p.oA())}; GaI=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"standardControlsInitialized",function(){var a=new hU(p);g.Z(x,a);p.RY(a,"RIGHT_CONTROLS_LEFT")})}; jZ=function(p,x){g.cy.call(this,g.JU({role:"menuitemcheckbox","aria-checked":"false"}),x,p,{J:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; IW=function(p,x){p.checked=x;p.element.setAttribute("aria-checked",String(p.checked))}; OzT=function(p){var x=!p.L().ma&&p.getPresentingPlayerType()!==3;return p.isFullscreen()||x}; g.Ma=function(p,x,a,v){var c=p.currentTarget;if((a===void 0||!a)&&g.hz(p))return p.preventDefault(),!0;x.pauseVideo();p=c.getAttribute("href");g.tz(p,v,!0);return!1}; g.Wy=function(p,x,a){if(Bx(x.L())&&x.getPresentingPlayerType()!==2){if(g.hz(a))return x.isFullscreen()&&!x.L().externalFullscreen&&x.toggleFullscreen(),a.preventDefault(),!0}else{var v=g.hz(a);v&&x.pauseVideo();g.tz(p,void 0,!0);v&&(g.zN(p),a.preventDefault())}return!1}; Nq8=function(p){p=kK.includes("pt-BR")?p.D("delhi_modern_web_player_icons")?BF():{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,G:{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"}}]}:p.D("delhi_modern_web_player_icons")?thN():{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,G:{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"}}]};p.K="ytp-subtitles-button-icon"; return p}; A2_=function(p){return kK.includes("pt-BR")?p?BF():{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:p?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},N:[{J:"path",G:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; D6=function(){return{J:"div",K:"ytp-spinner-container",N:[{J:"div",K:"ytp-spinner-rotator",N:[{J:"div",K:"ytp-spinner-left",N:[{J:"div",K:"ytp-spinner-circle"}]},{J:"div",K:"ytp-spinner-right",N:[{J:"div",K:"ytp-spinner-circle"}]}]}]}}; UN=function(p){if(document.createRange){var x=document.createRange();x&&(x.selectNodeContents(p),p=window.getSelection())&&(p.removeAllRanges(),p.addRange(x))}}; Qv=function(p){var x=p.D("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";jZ.call(this,x,g.Hy.YV);var a=this;this.W=p;this.U=!1;this.Z=new g.AW(function(){g.sm(a.element,"ytp-menuitem-highlighted")},0); this.PX=p.Im();p=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(p);this.subscribe("select",this.j,this);this.listen(Tm,this.B);g.Z(this,this.Z)}; mz=function(p){d1.call(this,p);var x=this;this.U=!1;p.addEventListener("settingsMenuInitialized",function(){PpJ(x)}); p.addEventListener("highlightSettingsMenu",function(a){PpJ(x);var v=x.menuItem;a==="menu_item_cinematic_lighting"&&(g.$W(v.element,"ytp-menuitem-highlighted"),g.$W(v.element,"ytp-menuitem-highlight-transition-enabled"),v.Z.start())}); Ww(p,"updateCinematicSettings",function(a){x.updateCinematicSettings(a)})}; PpJ=function(p){p.menuItem||(p.menuItem=new Qv(p.api),g.Z(p,p.menuItem),p.menuItem.Yg(p.U))}; qwU=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"applicationvideodatachange",function(a,v){v=v.clipConfig;a==="dataloaded"&&v&&v.startTimeMs!=null&&v.endTimeMs!=null&&x.api.setLoopRange({startTimeMs:Math.floor(Number(v.startTimeMs)),endTimeMs:Math.floor(Number(v.endTimeMs)),postId:v.postId,type:"clips"})})}; SZ=function(p){d1.call(this,p);this.events=new g.II(p);g.Z(this,this.events);Ww(p,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Ww(p,"setCreatorEndscreenHideButton",this.U.bind(this))}; fI=function(p,x,a,v){jZ.call(this,"Volume est\u00e1vel",g.Hy.bW);g.$W(this.element,"ytp-drc-menu-item");this.PX=p.Im();this.j=x;this.U=a;this.hasDrcAudioTrack=v;p.addEventListener("videodatachange",this.Z.bind(this));p.D("mta_drc_mutual_exclusion_removal")&&this.X(p,"onPlaybackAudioChange",this.Z);x=this.U()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());p=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(p);this.subscribe("select",this.B,this);IW(this,x);this.PX.u2(this)}; CI=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);p.D("html5_show_drc_toggle")&&p.addEventListener("settingsMenuInitialized",function(){x.menuItem||(x.menuItem=new fI(x.api,x.setDrcUserPreference.bind(x),x.getDrcUserPreference.bind(x),x.Z.bind(x)),g.Z(x,x.menuItem))}); Ww(this.api,"setDrcUserPreference",function(v){x.setDrcUserPreference(v)}); Ww(this.api,"getDrcUserPreference",function(){return x.getDrcUserPreference()}); Ww(this.api,"hasDrcAudioTrack",function(){return x.Z()}); var a;this.U=(a=g.mD("yt-player-drc-pref"))!=null?a:1;this.updateEnvironmentData()}; Xa=function(p){d1.call(this,p);var x=this;this.U={};this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"videodatachange",function(){x.onVideoDataChange()}); this.events.X(p,g.GF("embargo"),function(a){x.api.YC(!0);var v,c=(v=x.U[a.id])!=null?v:[];v=g.k(c);for(c=v.next();!c.done;c=v.next()){var J=c.value;x.api.hideControls();x.api.jk("auth",2,"This video isn't available in your current playback area",Ki({embargoed:1,id:a.id,idx:a.Z,start:a.start}));c=void 0;(J=(c=J.embargo)==null?void 0:c.onTrigger)&&x.api.NT("innertubeCommand",J)}})}; nQQ=function(p,x){var a;return(a=x.onEnter)==null?void 0:a.some(p.Z)}; eHg=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next()){a=a.value;var v=void 0,c=Number((v=a.playbackPosition)==null?void 0:v.utcTimeMillis)/1E3,J=void 0;v=c+Number((J=a.duration)==null?void 0:J.seconds);J="embargo_"+c;p.api.addUtcCueRange(J,c,v,"embargo",!1);a.onEnter&&(p.U[J]=a.onEnter.filter(p.Z))}}; ia=function(p){d1.call(this,p);var x=this;this.U=[];this.events=new g.II(p);g.Z(this,this.events);Ww(p,"addEmbedsConversionTrackingParams",function(a){x.addEmbedsConversionTrackingParams(a)}); this.events.X(p,"veClickLogged",function(a){x.api.hasVe(a)&&(a=a.visualElement.getAsJspb(),a=ST(a,2),x.U.push(a))})}; ukg=function(p){d1.call(this,p);Ww(p,"isEmbedsShortsMode",function(){return p.isEmbedsShortsMode()})}; Vx1=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"initialvideodatacreated",function(a){N8(Ow(),16623);x.U=g.Yi();var v=p.L().FM&&!a.x_;if(aN(a)&&v){N8(Ow(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(a.getWatchNextResponse()){var c,J=(c=a.getWatchNextResponse())==null?void 0:c.trackingParams;J&&Pc(J)}if(a.getPlayerResponse()){var R;(a=(R=a.getPlayerResponse())==null?void 0:R.trackingParams)&&Pc(a)}}else N8(Ow(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),a.getEmbeddedPlayerResponse()&&(R=(J=a.getEmbeddedPlayerResponse())==null?void 0:J.trackingParams)&&Pc(R)}); this.events.X(p,"loadvideo",function(){N8(Ow(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:x.U})}); this.events.X(p,"cuevideo",function(){N8(Ow(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:x.U})}); this.events.X(p,"largeplaybuttonclicked",function(a){N8(Ow(),27240,a.visualElement)}); this.events.X(p,"playlistnextbuttonclicked",function(a){N8(Ow(),27240,a.visualElement)}); this.events.X(p,"playlistprevbuttonclicked",function(a){N8(Ow(),27240,a.visualElement)}); this.events.X(p,"playlistautonextvideo",function(){N8(Ow(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; oW=function(p,x){g.y.call(this);var a=this;this.U=null;this.j=x;x=[];for(var v=0;v<=100;v++)x.push(v/100);x={threshold:x,trackVisibility:!0,delay:1E3};(this.Z=window.IntersectionObserver?new IntersectionObserver(function(c){c=c[c.length-1];var J=null;typeof c.isVisible==="undefined"?document.visibilityState==="visible"&&c.isIntersecting&&c.intersectionRatio>0?J=c.intersectionRatio:document.visibilityState==="hidden"?J=0:J=null:J=c.isVisible?c.intersectionRatio:0;J!=null&&(J=Math.max(J,0),J=Math.min(J, 1));a.U=J;typeof a.j==="function"&&a.j(a.U)},x):null)&&this.Z.observe(p)}; pX_=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"applicationInitialized",function(){Fof(x)})}; Fof=function(p){var x=p.api.getRootNode(),a,v=p.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((a=x.parentElement)==null?void 0:a.parentElement)||x:x;p.U=new oW(v,function(c){c!=null&&(p.api.L().l9=c,p.api.L().E5="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.Z(p,p.U);p.events.X(p.api,"videoStatsPingCreated",function(c){var J=p.U;J=J.U==null?null:Math.round(J.U*100)/100;c.inview=J!=null?J:void 0;J=p.api.getPlayerSize();if(J.height>0&&J.width>0){J=[Math.round(J.width),Math.round(J.height)];var R=g.Lk();R>1&&J.push(R);J=J.join(":")}else J=void 0;c.size=J})}; xtN=function(p){var x;return((x=((p==null?void 0:p.messageRenderers)||[]).find(function(a){return!!a.timeCounterRenderer}))==null?void 0:x.timeCounterRenderer)||null}; tU=function(p){g.N.call(this,{J:"div",CI:["ytp-player-content","ytp-iv-player-content"],N:[{J:"div",K:"ytp-free-preview-countdown-timer",N:[{J:"span",wr:"{{label}}"},{J:"span",K:"ytp-free-preview-countdown-timer-separator",wr:"\u2022"},{J:"span",wr:"{{duration}}"}]}]});this.api=p;this.U=null;this.j=this.Z=0;this.X(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; aW_=function(p,x){p.U||(p.Z=x,p.j=(0,g.WR)(),p.U=new g.Gp(function(){$tN(p)},null),$tN(p))}; $tN=function(p){var x=Math,a=x.round,v=Math.min((0,g.WR)()-p.j,p.Z);x=a.call(x,(p.Z-v)/1E3);p.updateValue("duration",za({seconds:x}));x<=0&&p.U?p.stopTimer():p.U&&p.U.start()}; sBf=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"basechromeinitialized",function(){x.U=new tU(p);g.Z(x,x.U);g.qh(p,x.U.element,4);x.U.hide()})}; zm=function(p){g.N.call(this,{J:"button",CI:["ytp-fullerscreen-edu-button","ytp-button"],N:[{J:"div",CI:["ytp-fullerscreen-edu-text"],wr:"Role para ver detalhes"},{J:"div",CI:["ytp-fullerscreen-edu-chevron"],N:[{J:"svg",G:{height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{J:"path",G:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],G:{"data-priority":"2"}});this.X5=p;this.fade=new g.qp(this,250,void 0,100);this.Z=this.U=!1;p.createClientVe(this.element,this,61214); g.Z(this,this.fade);this.X(p,"fullscreentoggled",this.Yg);this.X(p,"presentingplayerstatechange",this.Yg);this.listen("click",this.onClick);this.Yg()}; w1=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);Ww(this.api,"updateFullerscreenEduButtonSubtleModeState",function(v){x.updateFullerscreenEduButtonSubtleModeState(v)}); Ww(this.api,"updateFullerscreenEduButtonVisibility",function(v){x.updateFullerscreenEduButtonVisibility(v)}); var a=p.L();p.D("external_fullscreen_with_edu")&&a.externalFullscreen&&Bx(a)&&a.controlsType==="1"&&this.events.X(p,"standardControlsInitialized",function(){x.U=new zm(p);g.Z(x,x.U);p.RY(x.U)})}; v91=function(p){g.N.call(this,{J:"div",K:"ytp-gated-actions-overlay",N:[{J:"div",K:"ytp-gated-actions-overlay-background",N:[{J:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{J:"button",CI:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],G:{"aria-label":"Fechar"},N:[g.rN()]},{J:"div",K:"ytp-gated-actions-overlay-bar",N:[{J:"div",K:"ytp-gated-actions-overlay-text-container",N:[{J:"div",K:"ytp-gated-actions-overlay-title",wr:"{{title}}"},{J:"div",K:"ytp-gated-actions-overlay-subtitle", wr:"{{subtitle}}"}]},{J:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var x=this;this.api=p;this.background=this.BO("ytp-gated-actions-overlay-background");this.Z=this.BO("ytp-gated-actions-overlay-button-container");this.U=[];this.X(this.BO("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){x.api.NT("onCloseMiniplayer")}); this.hide()}; JS_=function(p,x){var a=0;a=0;for(var v={};a c&&(c=d.width,J="url("+d.url+")")}a.background.style.backgroundImage=J;JS_(a,v.actionButtons||[]);a.show()}else a.hide()}); g.qh(this.api,this.U.element,4)}; EN=function(p){d1.call(this,p);var x=this;DF(this.api,"getSphericalProperties",function(){return x.getSphericalProperties()}); DF(this.api,"setSphericalProperties",function(){x.setSphericalProperties.apply(x,g.lf(g.g_.apply(0,arguments)))}); ku(this.api,"getSphericalProperties",function(){return x.api.getPresentingPlayerType()===2?{}:x.getSphericalProperties()}); ku(this.api,"setSphericalProperties",function(){var a=g.g_.apply(0,arguments);x.api.getPresentingPlayerType()!==2&&x.setSphericalProperties.apply(x,g.lf(a))})}; yv=function(p){d1.call(this,p);Ww(p,"createClientVe",this.createClientVe.bind(this));Ww(p,"createServerVe",this.createServerVe.bind(this));Ww(p,"destroyVe",this.destroyVe.bind(this));Ww(p,"hasVe",this.hasVe.bind(this));Ww(p,"logClick",this.logClick.bind(this));Ww(p,"logVisibility",this.logVisibility.bind(this));Ww(p,"setTrackingParams",this.setTrackingParams.bind(this))}; g1=function(p,x,a,v){function c(R){var d=!(R.status!==204&&R.status!==200&&!R.response),b;R={succ:""+ +d,rc:R.status,lb:((b=R.response)==null?void 0:b.byteLength)||0,rt:((0,g.WR)()-J).toFixed(),shost:g.b$(p),trigger:x};K7z(R,p);a&&a(R);v&&!d&&v(new g.dD("pathprobe.net",R))} var J=(0,g.WR)();g.Mk(p,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:c,onTimeout:c})}; K7z=function(p,x){var a;((a=window.performance)==null?0:a.getEntriesByName)&&(x=performance.getEntriesByName(x))&&x.length&&(x=x[0],p.pedns=(x.domainLookupEnd-x.startTime).toFixed(),p.pecon=(x.connectEnd-x.domainLookupEnd).toFixed(),p.perqs=(x.requestStart-x.connectEnd).toFixed(),dtJ&&(p.perqsa=x.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; b11=function(p){dtJ=p}; Z6=function(p,x){this.PE=p;this.policy=x;this.playbackRate=1}; rSg=function(p,x){var a=Math.min(2.5,Ed(p.PE));p=Gm(p);return x-a*p}; ON=function(p,x,a,v,c){c=c===void 0?!1:c;if(p.policy.i7)return Math.ceil(p.policy.i7*x);p.policy.eQ&&(v=Math.abs(v));v/=p.playbackRate;var J=1/ZG(p.PE);a=Math.max(.9*(v-3),Ed(p.PE)+p.PE.Z.U*J)/J*.8/(x+a);a=Math.min(a,v);p.policy.L0>0&&c&&(a=Math.max(a,p.policy.L0));return B91(p,a,x)}; B91=function(p,x,a){return Math.ceil(Math.max(Math.max(p.policy.f0,p.policy.xs*a),Math.min(Math.min(p.policy.V6,31*a),Math.ceil(x*a))))||p.policy.f0}; lWU=function(p,x,a){a=ON(p,x.U.info.y6,a.U.info.y6,0);var v=Ed(p.PE)+a/ZG(p.PE);return Math.max(v,v+p.policy.e7-a/x.U.info.y6)}; Gm=function(p){return ZG(p.PE,!p.policy.cU,p.policy.qq)}; Na=function(p){return Gm(p)/p.playbackRate}; AU=function(p,x,a){var v=p.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],c=p.policy.playbackStartPolicy.startMinReadaheadPolicy||[];p=Infinity;x=g.k(x&&v.length>0?v:c);for(v=x.next();!v.done;v=x.next())v=v.value,c=v.minReadaheadMs||0,a<(v.minBandwidthBytesPerSec||0)||p>c&&(p=c);return p0&&(this.Z=a.j1)}; h8N=function(p,x,a,v,c){if(!v.info.B){if(a.length===0)a.push(v);else{var J;(p=(J=a.pop())==null?void 0:g.MG(J,v))?a.push(p):a.push(v)}return c}var R;(a=(R=a.pop())==null?void 0:g.MG(R,v))||(a=v);if(a.info.Z)return p.logger&&p.logger({incompleteSegment:a.info.jV()}),c;v=p.ZZ(a);c=v.i$;v={clipId:v.clipId,formatId:v.formatId,startTimeMs:v.startTimeMs,durationMs:v.kR,ZI:c,U6:c};c=L7T(x,v.startTimeMs);if(J=a=c>=0?x[c]:null){J=v;var d=c;R=a.startTimeMs+a.durationMs;var b=J.startTimeMs+J.durationMs;if(J.startTimeMs- R>p.Z)J=!1;else if(YY_(p,a.formatId,J.formatId))a.durationMs=Math.max(R,b)-a.startTimeMs,a.U6=Math.max(a.U6,J.U6),J=!0;else if(Math.abs(a.startTimeMs-J.startTimeMs)<=p.Z)if(a.durationMs>J.durationMs+p.Z){var r=a.formatId,B=a.ZI;d=a.U6;a.formatId=J.formatId;a.durationMs=J.durationMs;a.ZI=J.ZI;a.U6=J.U6;J.formatId=r;J.startTimeMs=b;J.durationMs=R-b;J.ZI=B;J.U6=d;J=!1}else a.formatId=J.formatId,J=!0;else R>J.startTimeMs&&(R>b&&(x.splice(d+1,0,{formatId:a.formatId,startTimeMs:b,durationMs:R-b,ZI:J.U6+ 1,U6:a.U6}),p.logger&&p.logger({splitOldStart:(r=a.startTimeMs)==null?void 0:r.toFixed(3),splitOldEnd:R==null?void 0:R.toFixed(3),splitNewStart:(B=J.startTimeMs)==null?void 0:B.toFixed(3),splitNewEnd:b==null?void 0:b.toFixed(3)})),a.durationMs=J.startTimeMs-a.startTimeMs,a.U6=J.ZI-1),J=!1}J?v=a:(c+=1,x.splice(c,0,v));r=0;for(B=c+1;B=b+a.Z?a=!0:d+a.Z=0?p:-p-2}; jBT=function(p,x){if(p.MZ){var a=p.MZ.rH();if(a.length!==0){if(p.j&&x){var v=p.j,c=v.info.C;!Ph(a,c)&&v.info.Y>0&&(0,g.WR)()-p.S<5E3&&(p.logger&&p.logger({dend:v.info.jV()}),a=o$I(a,c,c+.01))}p.policy.jB&&p.logger&&p.logger({cbri:""+p.U});v=[];for(var J=c=0;c=R){var B=Object.assign({},p.ES[J]),l=p.nI.j.get(O$(p.ES[J].formatId)),L=Math.max(b,R);R=l.index.sN(L+p.Z/ 1E3);b=l.index.getStartTime(R);var Y=R+ +(Math.abs(b-L)>p.Z/1E3);L=Y+p.B;Y=l.index.getStartTime(Y)*1E3;J!==p.U||x?(B.ZI=L,B.startTimeMs=Y):(p.logger&&p.logger({pEvict:"1",og:B.startTimeMs,adj:b*1E3}),B.ZI=R+p.B,B.startTimeMs=b*1E3);R=void 0;b=((R=p.j)==null?void 0:R.info.duration)||11;J===p.U&&dp.Z/1E3);R=b+p.B;l=l.index.nR(b)*1E3;B.U6=R;B.durationMs=l-B.startTimeMs;B.ZI<=B.U6&&v.push(B)}r=0&&Vv(p.audioTrack,p.targetTime)>=0&&J?((p.videoTrack.C||p.audioTrack.C)&&p.loader.jA("iterativeSeeking",{status:"done",count:p.seekCount}),p.videoTrack.C=!1,p.audioTrack.C=!1):v&&g.D9(function(){if(p.U||!p.policy.US)xj(p);else{var R=x.startTime,d=x.duration;if(!p.policy.C){var b=a?p.videoTrack.C:p.audioTrack.C,r=p.videoTrack.S!==-1&&p.audioTrack.S!==-1,B=p.targetTime>=R&&p.targetTime432E3&&tA8(p.nI);p.Z&&(c=p.Z,p.Z=0);g.D9(function(){p.policy.C||a5(p,c,102)}); p.loader.jA("initManifestlessSync",{st:c,ost:c+p.loader.Y0(),a:p.audioTrack.S,v:p.videoTrack.S});p.j&&(p.j.resolve(c+.1),p.j=null);p.policy.C&&a5(p,c,102)}}}; c4=function(p,x){var a=this;this.sS=p;this.requestNumber=++CHg;this.U=this.now();this.Y=this.T=NaN;this.V=this.U;this.j=this.KW=this.C=0;this.S=this.U;this.HO=this.pI=this.qT=this.ol=this.vX=this.u$=this.Z=this.B=0;this.Zt=this.isActive=!1;this.OS=this.T4=0;this.d3={ow6:function(){return a.Pv}}; this.PE=x.PE;this.snapshot=Q_J(this.PE);this.policy=this.PE.Z;this.iY=!!x.iY;this.uy=x.uy;this.nY=x.nY||0;this.bL=x.bL||0;x.Ut&&(this.F5=new SF);var v;this.Pv=(v=x.Pv)!=null?v:!1;this.iY||U5o(this.PE)}; XXg=function(p){p.qT=Math.max(p.qT,p.C-p.vX);p.pI=Math.max(p.pI,p.V-p.ol);p.u$=0}; JP=function(p,x,a){HKT(p.PE,x);p.F5&&(p.F5.add(Math.ceil(x)-Math.ceil(p.V)),p.F5.add(Math.max(0,Math.ceil(a/1024)-Math.ceil(p.C/1024))));var v=x-p.V,c=a-p.C;p.KW=c;p.HO=Math.max(p.HO,c/(v+.01)*1E3);p.V=x;p.C=a;p.u$&&a>p.u$&&XXg(p)}; R5=function(p,x){p.url=x;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ks=function(p,x){c4.call(this,p,x);this.US=this.XV=!1;this.hG=this.O7=Infinity;this.V6=NaN;this.Zp=!1;this.Ra=NaN;this.G$=this.tG=this.gr=0;this.pH=x.pH||1;this.u0=x.u0||this.pH;this.V0=x.V0;this.i$=x.i$;this.JS=x.JS;i1T(this);this.H3(this.U);this.oa=(this.Ra-this.U)/1E3}; o9b=function(p){var x=p.tG||p.gr;return x?p.snapshot.delay+Math.min(p.bL,(p.Y-p.T)/1E3)+x:p.oa}; dv=function(p,x,a){if(!p.iY){x=Math.max(x,.01);var v=p.nY?Math.max(x,a/p.nY):x,c=p.PE.Z.j;c&&(v=x,p.nY&&(v=Math.max(x,a/p.nY*c)));tc(p.PE,x,a,v)}}; t38=function(p){return(p.S-p.U)/1E3}; i1T=function(p){p.V6=p.U+p.snapshot.delay*1E3;p.Zp=!1}; bz=function(p,x){if(p.V0&&p.i$!==void 0&&p.JS!==void 0){var a=Math,v=a.min,c=p.O7;var J=p.V0;var R=p.U;if(z81(J,p.i$))J=x;else{var d=0;J.P$&&(d=.2);J=R+(J.bL+d)*1E3}p.O7=v.call(a,c,J);a=Math;v=a.min;c=p.hG;J=p.V0;R=p.U;d=wXN(J,p.i$,p.JS);d!==2&&(x=d?x:R+J.bL*1E3,J.P$&&(x+=J.bL*1E3));p.hG=v.call(a,c,x);p.O7<=p.U?i1T(p):(p.V6=p.O7,p.Zp=!0)}}; E91=function(p,x){if(x+1<=p.totalLength){var a=c$(p,x);a=a<128?1:a<192?2:a<224?3:a<240?4:5}else a=0;if(a<1||!(x+a<=p.totalLength))return[-1,x];if(a===1)p=c$(p,x++);else if(a===2)a=c$(p,x++),p=c$(p,x++),p=(a&63)+64*p;else if(a===3){a=c$(p,x++);var v=c$(p,x++);p=c$(p,x++);p=(a&31)+32*(v+256*p)}else if(a===4){a=c$(p,x++);v=c$(p,x++);var c=c$(p,x++);p=c$(p,x++);p=(a&15)+16*(v+256*(c+256*p))}else a=x+1,p.focus(a),ax(p,a,4)?p=yQJ(p).getUint32(a-p.j,!0):(v=c$(p,a+2)+256*c$(p,a+3),p=c$(p,a)+256*(c$(p,a+1)+ 256*v)),x+=5;return[p,x]}; rv=function(p){this.sS=p;this.U=new F_}; B4=function(p,x){this.info=p;this.callback=x;this.state=1;this.Xa=this.Ob=!1;this.B5=null}; ySg=function(p){return g.Mv(p.info.eA,function(x){return x.type===3})}; lz=function(p,x,a,v){var c=this;v=v===void 0?{}:v;this.policy=x;this.sS=a;this.status=0;this.U=new F_;this.Z=0;this.b$=this.B=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(v.method||"GET",p);if(v.headers)for(p=v.headers,x=g.k(Object.keys(p)),a=x.next();!a.done;a=x.next())a=a.value,this.xhr.setRequestHeader(a,p[a]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return c.VG()}; this.xhr.onload=function(){return c.onDone()}; this.xhr.onerror=function(){return c.onError()}; this.xhr.fetch(function(J){c.U.append(J);c.Z+=J.length;J=(0,g.WR)();c.sS.Ns(J,c.Z)},function(){},v.body||null)}; g9T=function(p,x){this.Z=(new TextEncoder).encode(p);this.U=(new TextEncoder).encode(x)}; Znz=function(p,x){var a;return g.t(function(v){if(!x)return v.return(x);a=new g.cT(p.Z);return v.return(a.encrypt(x,p.U))})}; PbI=function(p,x){var a;return g.t(function(v){if(v.Z==1){if(!x)return v.return(x);a=new g.cT(p.Z);return g.C(v,a.decrypt(x,p.U),2)}return v.return(v.U)})}; GTx=function(p,x){var a=this;this.U=p;this.sS=x;this.loaded=this.status=0;this.error="";p=Pf(this.U.get("range")||"");if(!p)throw Error("bad range");this.range=p;this.Z=new F_;Z1b(this).then(function(){a.sS.gK()},function(v){a.error=""+v||"unknown_err"; a.sS.gK()})}; Z1b=function(p){var x,a,v,c,J,R,d,b,r,B,l,L,Y,h,D;return g.t(function(H){if(H.Z==1){p.status=200;x=p.U.get("docid");a=f9(p.U.get("fmtid")||"");v=p.U.get("lmt")||"0";c=+(p.U.get("csz")||0);if(!x||!a||!c)throw Error("Invalid local URL");p.U.get("ck")&&p.U.get("civ")&&(J=new g9T(p.U.get("ck"),p.U.get("civ")));R=p.range;d=Math.floor(R.start/c);b=Math.floor(R.end/c);r=d}if(H.Z!=5)return r<=b?g.C(H,qPz(x,a,v,r,J),5):H.Ia(0);B=H.U;if(B===void 0)throw Error("invariant: data is undefined");l=r*c;L=(r+1)*c; Y=Math.max(0,R.start-l);h=Math.min(R.end+1,L)-(Y+l);D=new Uint8Array(B.buffer,Y,h);p.Z.append(D);p.loaded+=h;p.loaded=400?(p.lastError="net.badstatus",!0):(c===void 0?0:c)?(p.lastError="ump.spsrejectfailure",!0):a||v!==void 0&&v?!1:(p.lastError=x===204?"net.nocontent":"net.connect",!0)}; DV=function(p,x){if(p.policy.b5)return!1;var a=x.getResponseHeader("content-type"),v=x.HI();p=!v||v<=p.policy.ea;return(!x.Kj()||!a||a.indexOf("text/plain")!==-1)&&p}; V3b=function(p,x){var a="";x=x.gx();x.totalLength<=p.policy.ea&&(a=uSU(p,s4(x)));return a}; uSU=function(p,x){var a=Rx(x);return zF(a)?(p.logger.debug(function(){return"Redirecting to "+a}),a):""}; I5=function(p){return w0(p.j,OY(p.wH.gM))}; F7z=function(p){var x=p.timing.rz();x.shost=OY(p.wH.gM);return x}; pf8=function(p,x){return(p==null?void 0:p.maxWidth)>(x==null?void 0:x.maxWidth)||(p==null?void 0:p.maxHeight)>(x==null?void 0:x.maxHeight)}; xNU=function(p,x){for(var a=g.k(x.keys()),v=a.next();!v.done;v=a.next())if(v=x.get(v.value),v.length!==0){g.PQ(v,function(d,b){return b.maxFramerate-d.maxFramerate}); for(var c=[v[0]],J=0,R=1;Rp.U||a.push(v)}return a}; Ux=function(p,x,a){var v=s7_[p]||[];a.D("html5_shorts_onesie_mismatched_fix")&&(v=vob[p]||[]);x.push.apply(x,g.lf(v));a.D("html5_early_media_for_drm")&&x.push.apply(x,g.lf(c$U[p]||[]))}; r$f=function(p,x){var a=g.QF(p),v=p.L(),c=v.C;v=v.D("html5_shorts_onesie_mismatched_fix");var J=p.nT();if(v){if(!c.Z){if(J&&H4)return H4;if(TP)return TP}}else if(TP&&!c.Z)return TP;var R=[],d=[],b={},r=Q5.concat(J$I);v&&(r=Q5.concat(RTg));p.D("html5_early_media_for_drm")&&(r=r.concat(KSJ),p.D("allow_vp9_1080p_mq_enc")&&r.push(dNg));var B=[].concat(g.lf(b0f));p.D("html5_iamf_audio_onesie_fmt")&&B.push(["773"]);r=g.k(r);for(var l=r.next();!l.done;l=r.next()){var L=!1;l=g.k(l.value);for(var Y=l.next();!Y.done;Y= l.next()){Y=Y.value;var h=Qp(Y,J&&v);if(h&&h.video&&!(Ci(h)&&!a.u$&&h.video.qualityOrdinal>a.IM)){var D=g.e_(p.L().experiments,"html5_drm_byterate_soft_cap");D>0&&XFU(h)&&h.y6>D||(L?(R.push(Y),Ux(Y,R,p)):(h=iH(a,h,c),h===!0?(L=!0,R.push(Y),Ux(Y,R,p)):b[Y]=h))}}}B=g.k(B);for(r=B.next();!r.done;r=B.next())for(r=g.k(r.value),L=r.next();!L.done;L=r.next())if(L=L.value,(l=F5T(L))&&l.audio&&(p.D("html5_onesie_51_audio")||!XN(l)&&!ih(l)))if(l=iH(a,l,c),l===!0){d.push(L);Ux(L,d,p);break}else b[L]=l;if(!p.D("html5_enable_audio_quality_setting"))for(p= g.k(["141","774"]),B=p.next();!B.done;B=p.next())B=B.value,d.includes(B)&&(g.UV(d,B),b[B]="blkhqa");a.Z&&x("orfmts",b);if(v)return c.Z&&(c.Z=!1,H4=TP=void 0),J?H4={video:R,audio:d}:TP={video:R,audio:d};TP={video:R,audio:d};c.Z=!1;return TP}; g.LSJ=function(p,x,a){var v=a.C,c=[],J=[],R=a.D("html5_shorts_onesie_mismatched_fix");p=p.nT();var d=Q5.concat(J$I);R&&(d=Q5.concat(RTg));a.D("html5_early_media_for_drm")&&(d=d.concat(KSJ),a.D("allow_vp9_1080p_mq_enc")&&d.push(dNg));var b=[].concat(g.lf(b0f));a.D("html5_iamf_audio_onesie_fmt")&&b.push(["773"]);d=g.k(d);for(var r=d.next();!r.done;r=d.next()){r=g.k(r.value);for(var B=r.next();!B.done;B=r.next()){B=B.value;var l=Qp(B,p&&R);if(l&&l.video){var L=g.e_(a.experiments,"html5_drm_byterate_soft_cap"); if(!(L>0&&XFU(l)&&l.y6>L)&&iH(x,l,v)===!0){c.push({videoCodec:B0b[Tl[B]],maxWidth:l.video.width,maxHeight:l.video.height,maxFramerate:l.video.fps});break}}}}R=g.k(b);for(p=R.next();!p.done;p=R.next())for(p=g.k(p.value),b=p.next();!b.done;b=p.next())if(b=b.value,(d=F5T(b))&&d.audio&&(a.D("html5_onesie_51_audio")||!XN(d)&&!ih(d))&&iH(x,d,v)===!0){J.push({audioCodec:lob[Tl[b]],numChannels:d.audio.numChannels});break}return{videoFormatCapabilities:c,audioFormatCapabilities:J}}; j7b=function(p){var x,a={},v=p.U7,c=p.JG,J=v.getVideoData(),R=r9(0),d=v.getVisibilityState(),b;if((b=p.Lv)==null?0:b.qX)a.yQ=c.yQ;R&&(a.GL=R,a.lastManualDirection=eCI(),R=Ahb()||0,R>0&&(R=(c.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.WR)())-R,c.D("html5_use_date_now_for_local_storage")?R>0&&(a.timeSinceLastManualFormatSelectionMs=R):a.timeSinceLastManualFormatSelectionMs=R));R=c.D("html5_use_streamer_bandwidth_for_low_latency_live")&&J.isLowLatencyLiveStream;if(c.schedule.Zt&&!R){var r; R=c.D("html5_disable_bandwidth_cofactors_for_sabr_live")?!((r=p.Lv)==null||!r.cU):!1;a.jE=ZG(c.schedule,!R)}R=g.kc.medium;b=Math.floor(R*16/9);(r=J.nT())||(J.U&&J.j&&J.j.videoInfos.length!==0?(r=J.j.videoInfos[0],r=!!r.video&&r.video.width0?{authorizedFormats:p.authorizedFormats}:{authorizedFormats:x};p.sabrLicenseConstraint&&(a.QP.sabrLicenseConstraint=p.sabrLicenseConstraint);if(c.D("html5_onesie_media_capabilities")||c.D("html5_enable_server_format_filter"))a.Xi= 3;c.D("html5_onesie_audio_only_playback")&&Db(J)&&(a.Xi=1);var f;((f=p.Lv)==null?0:f.y8)&&p.DE&&(a.Xi=a.Xi===void 0?7:a.Xi|4);f=J.lc?J.lc:g.QF(J);c.D("html5_onesie_media_capabilities")&&(a.mediaCapabilities=g.LSJ(J,f,c));var m;if((m=p.Lv)==null?0:mI(m)){l=c.C;m=[];x=[];L=new Map;Y=Array.from(l.U.values());Y=g.k(Y);for(h=Y.next();!h.done;h=Y.next())D=h.value,D.K3?x.push({audioCodec:lob[D.rr],numChannels:D.numChannels,spatialCapabilityBitmask:Y$8[D.rr]}):(H=B0b[D.rr],h={videoCodec:H,maxWidth:D.maxWidth|| 0,maxHeight:D.maxHeight||0,maxFramerate:D.maxFramerate||0,is10BitSupported:D.KU||!1},D.maxBitrateBps&&(h.maxBitrateBps=D.maxBitrateBps,d=Qp(D.itag),r=void 0,((r=d)==null?0:r.video)&&iH(f,d,l)===!0&&(d=d.y6*8,d>h.maxBitrateBps&&(h.maxBitrateBps=d))),D=H+"_"+D.KU,H=L.get(D)||[],H.push(h),L.set(D,H));m=xNU(m,L);l={};c.D("html5_ssff_denylist_opus_low")&&(l={itagDenylist:[249,350]});a.mediaCapabilities={videoFormatCapabilities:m,audioFormatCapabilities:x,hdrModeBitmask:3,perPlaybackAttributes:l}}var X; if((X=p.Lv)==null?0:X.U){a.L7=f.L7;var E;a.IM=(E=p.Lv)==null?void 0:E.IM}c.Y_&&(a.Ep=c.Y_);a.tN=p.e2;a.k8=p.k8;a.dL=p.dL;a.aI=p.aI;p.VC&&(a.X55=(0,g.WR)()-p.VC);p.isPrefetch&&c.D("html5_report_prefetch_requests")&&(a.isPrefetch=!0);lT||(a.ItT=!0);X=Ed(c.schedule)*1E3;X>0&&(a.tE=X);var A;((A=p.Lv)==null?0:A.Df)&&p.Z2&&p.Z20?u:c.schedule.interruptions[0]||0;var n;if((n=p.Lv)==null?0:n.OS)a.Af=p.Af;c.Ra&&(a.audioTrackId=c.Ra);Je(J)&&!a.audioTrackId&&(c.D("html5_fill_default_mosaic_audio_track_id")||(p=nCQ(J),a.audioTrackId=p),J==null||J.jA("misstrkchg",{"default":a.audioTrackId}));if(J=S6I())a.detailedNetworkType=hTx[J]||hTx.other;c.D("html5_enable_voice_boost")&&(a.OG$=c.d_);return a}; Sf=function(p,x,a,v,c,J,R){var d={};x&&(d.xo=x);if(!p)return d;d.playbackCookie=a==null?void 0:a.playbackCookie;c&&(d.N8=c);d.b1=[];d.Ah=[];if(R==null?0:R.size)for(x=g.k(R.values()),a=x.next();!a.done;a=x.next())d.Ah.push(a.value);if(p.sabrContextUpdates.size>0)for(x=g.k(p.sabrContextUpdates.values()),a=x.next();!a.done;a=x.next())Io1(d,a.value,v);TV(p)&&J&&Io1(d,J,v);p.A0&&(d.Z3G=p.A0);v=p.L().U;d.clientInfo={clientName:MzT[v.c.toUpperCase()]||0};v.cbrand&&(d.clientInfo.deviceMake=v.cbrand);v.cmodel&& (d.clientInfo.deviceModel=v.cmodel);v.cver&&(d.clientInfo.clientVersion=v.cver);v.cos&&(d.clientInfo.osName=v.cos);v.cosver&&(d.clientInfo.osVersion=v.cosver);v=p.L();v.D("html5_sabr_enable_server_xtag_selection")&&v.y8&&(d.clientInfo.hl=v.y8);p.U$&&(d.U$=p.U$);return d}; Io1=function(p,x,a){var v=x.type||0;(a==null?0:a.has(v))?p.Ah.push(x):p.b1.push(v)}; eZ=function(p,x,a,v,c,J){var R=J===void 0?{}:J;var d=R.RW===void 0?[]:R.RW;var b=R.AL===void 0?!1:R.AL;var r=R.QK===void 0?0:R.QK;var B=R.poToken===void 0?"":R.poToken;var l=R.hh===void 0?void 0:R.hh;var L=R.Tj===void 0?"":R.Tj;var Y=R.X8===void 0?0:R.X8;var h=R.qr===void 0?new Uint8Array(0):R.qr;var D=R.EX===void 0?!1:R.EX;J=R.kd===void 0?0:R.kd;R=R.xo===void 0?void 0:R.xo;B4.call(this,x,c);var H=this;this.policy=p;this.logger=new g.YU("dash/request");this.eY=this.YL=0;this.Sn=!1;this.Jm=this.Au= null;this.a4=!1;this.qr=this.X8=null;this.BS=this.YQ=!1;this.qR=null;this.kd=this.TV=0;this.xX=!1;this.d3={XX:function(m){H.XX(m)}, Ds6:function(){return H.B5}, jGO:function(m){H.B5=m}, pFG:function(m){H.YL=m}, ZnT:function(m){H.WE.lastError=m}, lN:function(){return H.xhr}}; this.timing=new Ks(this,a);this.AL=b;this.X8=Y;this.qr=h;this.wH=g.cz(this.info,this.policy,v);this.wH.set("rn",this.Jc().toString());this.wH.set("rbuf",(r*1E3).toFixed().toString());this.AL&&this.wH.set("smb","1");this.policy.r_&&B&&this.wH.set("pot",B);L&&this.wH.set("bbs",L);this.policy.useUmp&&!Nt(this.wH.gM)&&(this.A3=new rv(this),this.wH.set("ump","1"),this.wH.set("srfvp","1"));if(p=this.policy.Ri?this.policy.z0&&!isNaN(this.info.JS)&&this.info.JS>this.policy.Gk?!1:!0:!1)x=null,this.policy.JV&& this.policy.jX?x=[1]:D&&(x=[]),x!=null&&(this.policy.yX&&x.push(2),this.wH.set("defsel",x.join(",")));this.WE=new jf(this,this.policy,this.wH,this.info.JX,this.timing,this.logger,v,l);this.RW=d||null;this.Xa=WS8(this);PHb(this.WE);v=void 0;if(this.policy.qa||this.A3||this.policy.qT)v={method:"POST"},d=(0,g.fs)([120,0]),l={},this.policy.QO&&R&&(R=Sf(void 0,R),l.mJ=R),this.policy.EO&&this.qr&&(l.videoPlaybackUstreamerConfig=this.qr),this.policy.qT&&(R=this.info.B)&&Object.assign(l,R),Object.keys(l).length> 0?v.body=g.GY(l,g.K1):v.body=d;if(this.X8&&this.qr){this.wH.set("iwts","1");v={method:"POST"};R={aI:this.X8*1E3};var f;d=(f=this.info.B)==null?void 0:f.XS;f=g.GY({m2:R,XS:d||void 0,videoPlaybackUstreamerConfig:this.qr},g.K1);v.body=f}try{this.xhr=Ls(this.wH,this.policy.V,this.timing,p,v),this.WE.Z.start(),J&&(this.eI=new g.AW(this.zb,J,this),this.eI.start(J+(this.timing.PE.Y.f3()||0)*1E3)),this.policy.FQ&&R5(this.timing,this.Wh()),this.logger.debug(function(){return"Sent, itag="+H.wH.get("itag")+ " seg="+H.info.eA[0].i$+" range="+H.wH.get("range")+" time="+Math.round(H.info.eA[0].C)+"-"+Math.round(g.hO(H.info.eA).S)+" rtp="+(H.timing.Ga()-Date.now()).toFixed(0)}),g.D9(function(){})}catch(m){kXo(this,m,!0)}}; WS8=function(p){if(!(vz(p.info)&&p.info.Pv()&&p.policy.Xq&&p.RW)||p.info.JX.j>=2||r9()>0||!pnf())return!1;var x=p.wH.get("aitags");if(!x)return!1;x=f9(x).split(",");for(var a=[],v=g.k(p.RW),c=v.next();!c.done;c=v.next())c=c.value,g.kt(x,c)&&a.push(c);if(!a.length)return!1;p.wH.set("altitags",g.mn(a.join(",")));return!0}; kXo=function(p,x,a){a=a===void 0?!1:a;g.Uq(x);p.WE.lastError="player.exception";p.errorMessage=x.name+"_"+x.message;a?g.D9(function(){W4(p.WE)}):W4(p.WE)}; DNJ=function(p,x){p.timing.Zt=!0;p.xhr.Kj()&&p.timing.BL();if(p.policy.RA){var a;(a=p.eI)==null||a.stop()}hP(p.B5,x,!1)}; UNg=function(p,x){p.info=x;if(p.B5){var a=p.B5;x=x.eA;(x.length!==a.eA.length||x.length0){x=g.k(x.eA);for(var a=x.next();!a.done;a=x.next()){var v=void 0;p+=((v=a.value.range)==null?void 0:v.length)||0}return p}if(x.zj.length>0)for(a=g.k(x.zj),v=a.next();!v.done;v=a.next())p+=v.value.Za||0;return p+x.dn}; Ex=function(p,x){if(tP){var a=0;p=p.tj.get(x);if(p==null||!p.M1)return 0;p=g.k(p.M1.values());for(x=p.next();!x.done;x=p.next())a+=x.value.data.totalLength;return a}return((a=p.tj.get(x))==null?void 0:a.gk.totalLength)||0}; y5=function(p,x){p=p.tj.get(x);if(tP){if(p==null||!p.c6)return!1;x=p.M1.size>0;return p.kX.length>0||x}return!(p==null||!p.c6)&&!(p==null||!p.gk.totalLength)}; foT=function(p,x){var a=p.tj.get(x),v=S$g(p,x),c=!v&&!!a.bytesReceived;if(tP){var J;if((J=p.nI)==null?0:J.Dp){p=g.k(a.M1.values());for(x=p.next();!x.done;x=p.next())if(!x.value.K_)return!1;return c}}else if(J=p.qU(x),c&&p.U&&J!==void 0)return J;return(c||a.bytesReceived===v)&&a.gY+Ex(p,x)===a.bytesReceived}; C5_=function(p,x,a){p.tj.set(x,{gk:new F_,gY:0,bytesReceived:0,dn:0,QR:!1,TC:!1,qU:!1,K3:a,JA:[],eA:[],zj:[],c6:!1,M1:new Map,QM:new Map,kX:[]});p.logger.debug(function(){return"[initStream] formatId: "+x})}; Xfx=function(p,x,a,v){a.eA.push.apply(a.eA,g.lf(v));if(tP){a.QM.has(x)||a.QM.set(x,[]);var c;(c=a.QM.get(x)).push.apply(c,g.lf(v))}else if(a.B5)for(p=g.k(v),x=p.next();!x.done;x=p.next())a.B5.eA.push(x.value);else{a.B5=new Yj(p.Lv,[].concat(g.lf(a.eA)));var J;((J=p.Lv)==null?0:J.yH)&&g.Z(p,a.B5)}}; i01=function(p,x,a){var v,c=(v=p.nI)==null?void 0:v.j.get(x);if(!c)return[];if(a.Y9){var J;return((J=c.B0(0,a.clipId))==null?void 0:J.eA)||[]}if(c.ue()){var R=a.startMs,d=a.durationMs;v=1E3;var b;if(((b=p.Lv)==null?0:b.U)&&a.timeRange){var r;R=(r=a.timeRange.startTicks)!=null?r:-1;var B;d=(B=a.timeRange.nz)!=null?B:-1;var l;v=(l=a.timeRange.timescale)!=null?l:-1}if(a.o8<0||a.KJ<0||d<0||R<0||a.Za<0||v<0)return wv(p,x),[];p=qN(a.o8,a.Za);x=a.jw||0;return[new ez(3,c,p,"makeSliceInfosMediaBytes",a.KJ- 1,R/v,d/v,x,p.length-x,void 0,a.AZ,a.clipId)]}if(a.KJ<0)return wv(p,x),[];var L;return((L=p.nI)==null?0:L.Dp)?(x=c.aM,b=x*c.info.y6,r=a.jw,((d=p.Lv)==null?0:d.JK)&&a.timeRange&&!r&&(R=a.timeRange.startTicks/a.timeRange.timescale),[new ez(3,c,void 0,"makeSliceInfosMediaBytes",a.KJ,R,x,r,b,!0,a.AZ,a.clipId)]):[]}; oof=function(p,x,a){p.nI=x;p.Lv=a;x=g.k(p.tj);for(a=x.next();!a.done;a=x.next()){var v=g.k(a.value);a=v.next().value;v=v.next().value;for(var c=g.k(v.JA),J=c.next();!J.done;J=c.next()){J=J.value;var R=i01(p,a,J);Xfx(p,J.gb,v,R)}}}; gv=function(p,x,a,v){p.logger.debug(function(){return"[addStreamData] formatId: "+a+",headerId: "+x+" bytes: "+v.totalLength}); (p=p.tj.get(a))&&!p.TC&&(tP?(p.M1.has(x)||p.M1.set(x,{data:new F_,bF:0,K_:!1}),pu(p.M1.get(x).data,v)):pu(p.gk,v),p.bytesReceived+=v.totalLength,p.QR=!0)}; zP=function(p,x){p.logger.debug(function(){return"[closeStream] formatId: "+x}); var a=p.tj.get(x);if(a&&!a.TC){a.TC=!0;if(a.onProgress)a.onProgress();tzU(p)&&p.B.qS()}}; tzU=function(p){p=g.k(p.tj.values());for(var x=p.next();!x.done;x=p.next())if(!x.value.TC)return!1;return!0}; zTb=function(p){tP=p}; ZV=function(p,x,a,v,c,J,R){g.y.call(this);this.policy=p;this.info=x;this.nI=a;this.sS=c;this.logger=new g.YU("sabr");this.A3=new rv(this);this.Iu=new iz(this);this.ov=new o5(this);this.state=1;this.JP=!1;this.fQ=0;this.clipId="";this.xH=-1;this.En=0;this.X2=-1;this.xX=this.Pt=!1;this.vV=0;this.VU=!1;this.policy.RK?this.rV=new Cs(this,J):this.rV=new Ks(this,J);this.wH=this.policy.OS?x.Ma:wf1(x,this.policy,v);this.wH.set("rn",""+this.Jc());this.wH.set("alr","yes");oof(this.ov,a,p);this.WE=new jf(this, this.policy,this.wH,x.JX,this.rV,this.logger,v,R,this.policy.enableServerDrivenRequestCancellation);PHb(this.WE);var d;if((d=this.policy)==null?0:d.yH)g.Z(this,this.ov),g.Z(this,this.WE);p=x.Z;x={method:"POST",body:p};p&&(this.En=p.length);try{this.xhr=Ls(this.wH,this.policy.V,this.rV,lT,x),this.policy.FQ&&R5(this.rV,this.Wh()),this.WE.Z.start()}catch(b){g.Hp(b)}}; Eoz=function(p){p.policy.Ry&&p.VW&&!p.VU?p.VU=!0:p.rV.BL()}; y$b=function(p,x){var a=-1,v=-1,c=-1,J;if((J=p.er)==null?0:J.items)for(p=g.k(p.er.items),J=p.next();!J.done;J=p.next())J=J.value,x=d,b=p.nI.isManifestless,R){var r;if(((r=p.U)==null?void 0:r.U8.event)==="predictStart"&&p.U.i$p.S&&(p.S=NaN,p.V=NaN);p.U&&p.U.i$===x?$GJ(p,x,a,p.U,c):p.Z===1&&AP(p,5,"noad")}; a4b=function(p,x,a,v,c){v.SI?AP(p,4,"cue"):(p.S=x,p.V=a,p.jA("sdai",{joinad:p.Z,sg:p.S,st:p.V.toFixed(3)}),p.T=Date.now(),AP(p,2,p.Z===3?"staftpred":"join"),c.eN(v.U8))}; $GJ=function(p,x,a,v,c){if(c&&v){var J=v.U8,R=c.va(J);J.event==="predictStart"&&(p.pI=x);p.jA("sdai",{onqevt:J.event,sq:x,mt:a,gab:R,cst:J.startSecs,cueid:p.policy.i5&&(R||J.event==="start")?J.identifier:void 0},!0);if(R)J.event!=="predictStart"?(J.event==="start"&&p.pI===x-1&&p.jA("sdai",{gabonstart:x}),a4b(p,x,a,v,c)):p.policy.zC?AP(p,3,"predict"):(x+=Math.max(Math.ceil(-J.U/5E3),1),J=Math.floor(a-J.U/1E3),p.policy.Z?p.C=J:p.B=x,p.jA("sdai",{onpred:a,estsq:x,estmt:J.toFixed(3)}),P4(p.loader,J,J, x),p.T=Date.now(),AP(p,3,"predict"),c.eN(v.U8));else if(p.Z===1){var d;((d=p.j)==null?0:d.gD(a))?(P4(p.loader,a,a,x),AP(p,4,"sk2head")):AP(p,5,"nogab")}else J.event==="predictStart"?p.policy.Z&&p.C>0?(a=Math.floor(a-J.U/1E3),p.C!==a&&p.jA("sdai",{updateSt:a,old:p.C}),p.C=a):p.B>0&&(a=x+Math.max(Math.ceil(-J.U/5E3),1),p.B!==a&&(p.jA("sdai",{updateSt:a,old:p.B}),p.B=a)):p.policy.zC&&p.Z===3&&a4b(p,x,a,v,c)}else p.jA("sdai",{nulldec:1,sq:x,mt:a.toFixed(3),evt:(v==null?void 0:(J=v.U8)==null?void 0:J.event)|| "none"})}; vUJ=function(p,x,a){if(p.policy.fD&&p.policy.Z)return!(p.Z===1||p.Z===2||!p.policy.zC&&p.Z===3&&a>=p.B);if(p.Z===1||p.Z===2)return!1;if(p.Z!==0&&x===p.audioTrack){if(p.policy.Z)return sEo(p.videoTrack,a)||sEo(p.videoTrack,a+1);p=qo(p.videoTrack);if(a>(p?p.i$:-1))return!1}return!0}; ns=function(p,x,a){return(a<0||a===p.S)&&!isNaN(p.V)?p.V:x}; Vzx=function(p,x){if(p.U){var a=p.U.U8.uc-(x.startTime+p.Y-p.U.U8.startSecs);a<=0||(a=new vf(p.U.U8.startSecs-(isNaN(p.Y)?0:p.Y),a,p.U.U8.context,p.U.U8.identifier,"stop",p.U.U8.U+x.duration*1E3),p.jA("cuepointdiscontinuity",{segNum:x.i$}),No(p,a,x.i$))}}; AP=function(p,x,a){p.Z!==x&&(p.jA("sdai",{setsst:x,old:p.Z,r:a}),p.Z=x)}; ef=function(p,x,a,v){(v===void 0?0:v)?AP(p,1,"seek"):x>0&&Math.abs(x-a)>=5&&p.Z===4&&AP(p,5,"sk2t")}; ckb=function(p){this.jA=p;this.U="";this.Z=new Map}; Jk8=function(p,x,a,v){if(p.Z.has(x.identifier)){var c=p.Z.get(x.identifier);v=uz(c.event||"unknown");uz(x.event)>v&&(c.startTimeSecs=x.startSecs,c.uc=x.uc,c.event=x.event,v===uz("predictStart")&&(c.e8=Date.now()))}else c={event:x.event,startTimeSecs:x.startSecs,uc:x.uc,xZ:[]},v&&(v=v.va(x),c.e8=Date.now(),v?c.x7=5:(c.x7=2,c.hx="")),p.Z.set(x.identifier,c);p.j&&a>-1&&a0}; sH=function(p,x){p.U!==x&&(p.U=x,p.Z=!0)}; dGU=function(p,x){var a;x&&(a=g.ME(p.B.U,function(c){return c.id===x})); if(!a&&(a=g.ME(p.B.U,function(c){var J;return!((J=c.AX)==null||!J.isDefault)}),x)){var v; p.jA("iaf",{id:x,sid:(v=a)==null?void 0:v.id})}return a}; c2=function(p,x,a,v,c,J){var R=this;J=J===void 0?[]:J;this.loader=p;this.O7=x;this.policy=a;this.nI=v;this.S=c;this.HO=J;this.logger=new g.YU("dash/abr");this.U=dY;this.j=this.V=null;this.T=-1;this.hG=!1;this.nextVideo=this.Z=null;this.B=[];this.tG=new Set;this.qT={};this.Ra=new CH(1);this.Y=0;this.gr=this.pI=this.Zt=!1;this.u$=0;this.LI=!1;this.F5=new Set;this.V6=!1;this.d3={u6:function(){v2(R)}}; this.C=new pR(this.policy,c,function(d,b){R.loader.jA(d,b)})}; LMQ=function(p,x,a){Jl(p,x);x=dGU(p.C,a);a||x||(x=bA8(p));x=x||p.S.U[0];p.Z=p.nI.U[x.id];v2(p);p.V=p.Z;rkb(p);BCJ(p);p.j=p.nextVideo;p.V=p.Z;return l4b(p)}; jEU=function(p,x){if(YlQ(p,x))return null;if(x.reason==="m"&&x.isLocked())return p.logger.debug(function(){return"User sets constraint to: "+m7(x)}),Jl(p,x),p.Y=p.B.length-1,v2(p),R$(p),p.pI=p.pI||p.j!==p.nextVideo,p.j=p.nextVideo,new V5(p.Z,p.j,x.reason); x.reason==="r"&&(p.T=-1);Jl(p,x);R$(p);if(x.reason==="r"&&p.nextVideo===p.j)return new V5(p.Z,p.nextVideo,x.reason);hr1(p);return null}; I4x=function(p,x,a){p.Z=p.nI.U[x];p.V=p.Z;return new V5(p.V,p.j,a?"t":"m")}; MBQ=function(p,x){if(x.info.video){if(p.j!==x)return p.j=x,l4b(p)}else p.gr=p.V!==x,p.V=x;return null}; WMo=function(p,x){if(x.U.info.video&&x.B){var a=(x.Z+x.j)/x.duration,v=x.U.info.y6;a&&v&&(p.Ra.a5(1,a/v),p.policy.j&&a/v>1.5&&p.loader.jA("overshoot",{sq:x.i$,br:a,max:v}))}}; KR=function(p,x,a){$y(p.C,x,a===void 0?!1:a);p.T=-1;Jl(p,p.U)}; kRx=function(p,x){return new V5(p.V,p.j,x||p.U.reason)}; hr1=function(p){if(p.j&&p.nextVideo&&dV(p,p.j.info)p.policy.IM,d=c<=p.policy.IM?Ci(v):m3(v);if(!J||R||d)a[c]=v}return a}; Jl=function(p,x){p.U=x;var a=p.S.videoInfos;if(!p.U.isLocked()){var v=(0,g.WR)();a=g.mC(a,function(d){if(d.y6>this.policy.y6)return!1;var b=this.nI.U[d.id];return a$(this.C).get(d.id)>v?!1:b.JX.j>4||b.S>4?(this.logger.debug(function(){return"Remove "+Gl(d)+"; 4 load failures"}),!1):this.F5.has(+d.itag)?!1:!0},p); KMQ(p.C)&&(a=g.mC(a,function(d){return d.video.width<=854&&d.video.height<=480}))}a.length||(a=p.S.videoInfos); var c=a;p.policy.Da&&(c=UG8(p,c,x));c=g.mC(c,x.B,x);if(p.U.isLocked()&&p.C.U){var J=g.ME(a,function(d){return d.id===p.C.U}); J?c=[J]:sH(p.C,"")}p.policy.Da||(c=UG8(p,c,x));c.length||(c=[a[0]]);c.sort(function(d,b){return dV(p,d)-dV(p,b)}); x={};for(a=1;ax.g9.video.width?(g.DX(c,a),a--):dV(p,x.un)*p.policy.Y>dV(p,x.g9)&&(g.DX(c,a-1),a--);var R=c[c.length-1];p.LI=!!p.j&&!!p.j.info&&p.j.info.rr!==R.rr;p.logger.debug(function(){return"Constraint: "+m7(p.U)+", "+c.length+" fmts selectable, max selectable fmt: "+Gl(R)}); p.B=c;p.tG.clear();x=!1;for(a=0;a=1080&&(x=!0);HAU(p.policy,R,p.nI.Dp)}; UG8=function(p,x,a){var v=a.reason==="m"||a.reason==="s";p.policy.aK&&bQ&&g.BR&&(!v||a.U<1080)&&(x=x.filter(function(r){return r.video&&(!r.Z||r.Z.powerEfficient)})); if(x.length>0)if($_()){var c=DGx(p,x);x=x.filter(function(r){return!!r&&!!r.video&&r.rr===c[r.video.qualityOrdinal].rr})}else{var J,R,d=(J=x[0])==null?void 0:(R=J.video)==null?void 0:R.qualityOrdinal; if(d){a=x.filter(function(r){return!!r&&!!r.video&&r.video.qualityOrdinal===d}); var b=DGx(p,a)[d].rr;x=x.filter(function(r){return!!r&&!!r.video&&r.rr===b})}}return x}; TC_=function(p,x){for(var a=0;a+1v}; v2=function(p){if(!p.Z||!p.policy.B&&!p.Z.info.AX){var x=p.S.U;p.Z&&(x=x.filter(function(v){return v.audio.U===p.Z.info.audio.U}),x.length||(x=p.S.U)); p.Z=p.nI.U[x[0].id];if(x.length>1&&!p.policy.gr){if(!p.policy.qX){var a=g.ME(x,function(v){return v.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); a&&(p.Z=p.nI.U[a.id])}a=!1;if(a=p.policy.aA?!0:p.U.isLocked()?p.U.U<240:TC_(p,p.Z))p.Z=p.nI.U[g.hO(x).id]}}}; R$=function(p){if(!p.nextVideo||!p.policy.B)if(p.U.isLocked())p.nextVideo=p.U.U<=360?p.nI.U[p.B[0].id]:p.nI.U[g.hO(p.B).id],p.logger.debug(function(){return"Select max fmt: "+Gl(p.nextVideo.info)}); else{for(var x=Math.min(p.Y,p.B.length-1),a=Na(p.O7),v=dV(p,p.Z.info),c=a/p.policy.pI-v;x>0&&!(dV(p,p.B[x])<=c);x--);for(var J=a/p.policy.Y-v;x=J);x++);p.nextVideo=p.nI.U[p.B[x].id];p.Y!==x&&p.logger.info(function(){return"Adapt to: "+Gl(p.nextVideo.info)+", bandwidth: "+a.toFixed(0)+", bandwidth to downgrade: "+c.toFixed(0)+", bandwidth to upgrade: "+J.toFixed(0)+", constraint: "+m7(p.U)}); p.Y=x}}; rkb=function(p){var x=p.policy.pI,a=Na(p.O7),v=a/x-dV(p,p.Z.info);x=g.WQ(p.B,function(c){return dV(this,c)J?c=0:v[R]>p.buffered[R]&&(R===J-1?c=2:R===J-2&&v[R+1]>p.buffered[R+1]&&(c=3))}p.U.add(x<<3|(a&&4)|c);x=Math.ceil(p.track.IT()*1E3);p.U.add(x-p.C);p.C=x;if(c===1)for(p.U.add(J),R=x=0;R=2&&p.U.add(v[J- 1]-p.buffered[J-1]);a&&p.U.add(a);p.buffered=v}; lQ=function(p,x,a){var v=this;this.policy=p;this.U=x;this.u$=a;this.B=this.Z=0;this.yb=null;this.Zt=new Set;this.T=[];this.indexRange=this.initRange=null;this.Y=new bl;this.pI=this.O7=!1;this.d3={unA:function(){return v.j}, aBd:function(){return v.chunkSize}, xC$:function(){return v.V}, YvI:function(){return v.S}}; (x=C4Q(this))?(this.chunkSize=x.csz,this.j=Math.floor(x.clen/x.csz),this.V=x.ck,this.S=x.civ):(this.chunkSize=p.Xp,this.j=0,this.V=g.B1(16),this.S=g.B1(16));this.C=new Uint8Array(this.chunkSize);this.V&&this.S&&(this.crypto=new g9T(this.V,this.S))}; C4Q=function(p){if(p.policy.YO&&p.policy.Yj)for(var x=g.k(p.policy.YO),a=x.next(),v={};!a.done;v={P2:void 0,V9:void 0},a=x.next())if(a=g.Fj(a.value),v.P2=+a.clen,v.V9=+a.csz,v.P2>0&&v.V9>0&&p.policy.B===a.docid&&p.U.info.id===a.fmtid&&p.U.info.lastModified===+a.lmt)return p={},p.clen=v.P2,p.csz=v.V9,p.ck=a.ck,p.civ=a.civ,p}; LR=function(p){return!!p.yb&&p.yb.Vf()}; oUb=function(p,x){if(!LR(p)&&!p.b$()){if(!(p.O7||(p.O7=!0,p.j>0))){var a=Yy(p);a=xh(p.policy.B,p.U.info,hl(p),a,p.policy.HO);jC(p,a)}if(x.info.type===1){if(p.yb){I$(p,Error("Woffle: Expect INIT slices to always start us off"));return}p.initRange=qN(0,x.Z.totalLength)}else if(x.info.type===2)p.yb&&p.yb.type===1||I$(p,Error("Woffle: Index before init")),p.indexRange=qN(p.initRange.end+1,x.Z.totalLength);else if(x.info.type===3){if(!p.yb){I$(p,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(p.yb.type===3&&!F7(p.yb,x.info)&&(p.T=[],x.info.i$!==pA(p.yb)||x.info.Z!==0))return;if(x.info.B){a=g.k(p.T);for(var v=a.next();!v.done;v=a.next())Xzg(p,v.value);p.T=[]}else{p.T.push(x);p.yb=x.info;return}}else{I$(p,Error("Woffle: Unexpected slice type"));return}p.yb=x.info;Xzg(p,x);iAQ(p)}}; Xzg=function(p,x){var a=0,v=s4(x.Z);if(p.B=v.length)return;if(a<0)throw Error("Missing data");p.B=p.j;p.Z=0}for(c={};a0){var R=v.getUint32(a+28);J+=R*16+4}var d=v.getUint32(a+J-4);try{var b=yk_(x.subarray(a+J,a+J+d));if(b!==null){var r=b;break a}}catch(B){}}a+=c}r=null;break a}catch(B){r=null;break a}r=void 0}if(r!=null)for(x=h7(pE(r,7,void 0,iw)),x==null||p.Ul||(p.cryptoPeriodIndex=x),x=h7(pE(r,10,void 0,iw)),x!=null&&x>0&& !p.Ul&&(p.U=x),r=Jj(r,2,Q0x,void 0===COb?2:4),r=g.k(r),v=r.next();!v.done;v=r.next())x=p.j,a=x.push,v=z6(v.value),v=g.m2(v,4),a.call(x,v)}; ZAg=function(p){return isNaN(p.cryptoPeriodIndex)?g.m2(p.initData):""+p.cryptoPeriodIndex}; ky=function(p,x,a){var v=a===void 0?{}:a;a=v.videoDuration===void 0?0:v.videoDuration;var c=v.gF===void 0?void 0:v.gF;v=v.U2===void 0?!1:v.U2;this.videoId=p;this.status=x;this.videoDuration=a;this.gF=c;this.U2=v}; GR8=function(p,x,a,v,c){this.videoId=p;this.Og=x;this.Z=a;this.bytesDownloaded=v;this.U=c}; D_=function(p){this.U=p;this.offset=0}; UH=function(p){if(p.offset>=p.U.totalLength)throw Error();return c$(p.U,p.offset++)}; OAb=function(p,x){x=x===void 0?!1:x;var a=UH(p);if(a===1){x=-1;for(a=0;a<7;a++){var v=UH(p);x===-1&&v!==255&&(x=0);x>-1&&(x=x*256+v)}return x}v=128;for(var c=0;c<6&&v>a;c++)a=a*256+UH(p),v*=128;return x?a:a-v}; NCU=function(p){try{var x=OAb(p,!0),a=OAb(p,!1);return{id:x,size:a}}catch(v){return{id:-1,size:-1}}}; AkN=function(p){for(var x=new D_(p),a=-1,v=0,c=0;!v||!c;){var J=NCU(x),R=J.id;J=J.size;if(R<0)return;if(R===176){if(J!==2)return;v=x.Py()}else if(R===186){if(J!==2)return;c=x.Py()}R===374648427?a=x.Py()+J:R!==408125543&&R!==174&&R!==224&&x.skip(J)}x=v$(p,0,a);a=new DataView(x.buffer);a.setUint16(v,3840);a.setUint16(c,2160);v=new F_([x]);pu(v,p);return v}; P4N=function(p,x,a){var v=this;this.loader=p;this.policy=x;this.C=a;this.logger=new g.YU("dash");this.Z=[];this.U=null;this.O7=-1;this.T=0;this.F5=NaN;this.Zt=0;this.j=NaN;this.Y=this.hG=0;this.LI=-1;this.qT=this.B=this.S=this.u$=null;this.Ra=this.gr=NaN;this.V=this.pI=this.tG=this.HO=null;this.T4=!1;this.V6=this.timestampOffset=0;this.d3={sW:function(){return v.Z}}; if(this.policy.B){var c=this.C,J=this.policy.B;this.policy.HO&&p.jA("atv",{ap:this.policy.HO});this.V=new lQ(this.policy,c,function(R,d,b){H2(p,new ky(v.policy.B,2,{gF:new GR8(J,R,c.info,d,b)}))}); this.V.Y.promise.then(function(R){v.V=null;R===1?H2(p,new ky(v.policy.B,R)):v.loader.jA("offlineerr",{status:R.toString()})},function(R){var d=(R.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); R instanceof M9&&!R.U?(v.logger.info(function(){return"Assertion failed: "+d}),v.loader.jA("offlinenwerr",{em:d}),Tz(v),H2(p,new ky(v.policy.B,4))):(v.logger.info(function(){return"Failed to write to disk: "+d}),v.loader.jA("dldbwerr",{em:d}),Tz(v),H2(p,new ky(v.policy.B,4,{U2:!0})))})}}; qlg=function(p){return p.Z.length?p.Z[0]:null}; nUQ=function(p,x){return p.Z.some(function(a){return a.info.i$===x})}; p01=function(p,x,a,v){v=v===void 0?0:v;if(p.B){var c=p.B.Z+p.B.j;if(a.info.Z>0)if(a.info.i$===p.B.i$&&a.info.Z=0&&p.B.i$>=0&&!F7(p.B,a.info))throw new g.gr("improper_continuation",p.B.jV(),a.info.jV());IcT(p.B,a.info)||QO(p,"d")}else if(a.info.Z>0)throw new g.gr("continuation_of_null",a.info.jV());p.B=a.info;p.C=a.info.U;if(a.info.Z===0){if(p.U)if(!p.loader.isOffline()||p.policy.ev)p.loader.jA("slice_not_fully_processed", {buffered:p.U.info.jV(),push:a.info.jV()});else throw new g.gr("slice_not_fully_processed",p.U.info.jV(),a.info.jV());mR(p);p.hG=v}else{if(p.hG&&v&&p.hG!==v)throw p=new g.gr("lmt_mismatch",a.info.i$,p.hG,v),p.level="WARNING",p;!a.info.U.ue()&&p.S&&(v=a.info,c=p.S.xH,v.V="updateWithEmsg",v.i$=c)}if(p.U){v=g.MG(p.U,a);if(!v)throw new g.gr("failed_to_merge",p.U.info.jV(),a.info.jV());p.U=v}else p.U=a;a:{a=g.oI(p.U.info.U.info);if(p.U.info.type!==3){if(!p.U.info.B)break a;p.U.info.type===6?erJ(p,x,p.U): u0U(p,p.U);p.U=null}for(;p.U;){v=p.U.Z.totalLength;if(p.O7<=0&&p.T===0){var J=p.U.Z,R=-1;c=-1;if(a){for(var d=0;d+80))break;if(l!==408125543)if(l===524531317)d=!0,B>=0&&(c=J.Py()+B,b=!0);else{if(d&&(l===160||l===163)&&(R<0&&(R=r),b))break;l===163&&(R=Math.max(0,R),c=J.Py()+B);if(l===160){R<0&&(c=R=J.Py()+ B);break}J.skip(B)}}R<0&&(c=-1)}if(R<0)break;p.O7=R;p.T=c-R}if(p.O7>v)break;p.O7?(v=VBb(p,p.O7),v.C&&FMQ(p,v),erJ(p,x,v),SC(p,v),p.O7=0):p.T&&(v=VBb(p,p.T<0?Infinity:p.T),p.T-=v.Z.totalLength,SC(p,v))}}p.U&&p.U.info.B&&(SC(p,p.U),p.U=null)}; u0U=function(p,x){!x.info.U.ue()&&x.info.Z===0&&(g.oI(x.info.U.info)||x.info.U.info.Ul())&&xfx(x);if(x.info.type===1)try{FMQ(p,x),xDo(p,x)}catch(c){g.Uq(c);var a=xU(x.info);a.hms="1";p.loader.handleError("fmt.unparseable",a||{},1)}a=x.info.U;a.zJ(x);p.V&&oUb(p.V,x);if(a.C3()&&p.policy.U)a:{p=p.loader.nI;x=x.info.clipId;a=g.zl(a.info,p.Dp);if(x){var v=O$({itag:a.itag,lmt:p.Dp?0:a.lmt||0,xtags:a.xtags});if(p.LI[v])break a;p.LI[v]=x}p.gr.push(a)}}; T9Q=function(p,x,a){if(p.Z.length!==0&&(a||p.Z.some(function(J){return J.info.C=CR(R)+d):x=p.getDuration()>=R.getDuration(),x=!x;x&&saT(a)&&(x=p.u$,fR?(d=F31(a),R=1/d,d=CR(p,d),x=CR(x)+R-d):x=x.getDuration()- p.getDuration(),x=1+x/a.info.duration,eQb(g.IE(a),x))}else{R=!1;p.S||(xfx(a),a.U&&(p.S=a.U,R=!0,c=a.info,J=a.U.xH,c.V="updateWithEmsg",c.i$=J,c=a.U,c.Vf&&(J=p.C.index,J.Z=!c.Vf,J.j="emsg"),c=a.info.U.info,J=g.IE(a),g.oI(c)?h$(J,1701671783):c.Ul()&&Hf([408125543],307544935,J)));a:if((c=D4(a,p.policy.G$))&&pNU(a))d=vAb(p,a),p.Y+=d,c-=d,p.Zt+=c,p.j=p.policy.Tg?p.j+c:NaN;else{if(p.policy.Ko){if(J=b=p.loader.wK(g.Wz(a),1),p.j>=0&&a.info.type!==6){if(p.policy.Tg&&isNaN(p.gr)){g.Hp(new g.gr("Missing duration while processing previous chunk", a.info.jV()));p.loader.isOffline()&&!p.policy.ev||cco(p,a,J);QO(p,"m");break a}v=b-p.j;var r=v-p.Y,B=a.info.i$,l=p.qT?p.qT.i$:-1,L=p.Ra,Y=p.gr,h=p.policy.cL&&v>p.policy.cL,D=Math.abs(r)>10,H=Math.abs(p.j-J)<1E-7;if(Math.abs(r)>1E-4){p.V6+=1;var f=(d=p.S)==null?void 0:NKf(d);d={audio:""+ +p.K3(),sq:B.toFixed(),sliceStart:b,lastSq:l.toFixed(),lastSliceStart:L,lastSliceDuration:Y,totalDrift:(v*1E3).toFixed(),segDrift:(r*1E3).toFixed(),skipRewrite:""+ +(h||D)};if(f==null?0:f.length)d.adCpn=f[0];p.loader.handleError("qoe.avsync", d);p.LI=B}h||D||H||(J=p.j);d=vAb(p,a,b);c-=d;p.Y=v+d}}else J=isNaN(p.j)?a.info.startTime:p.j;cco(p,a,J)&&(p.Zt+=c,p.j=J+c,p.policy.NC&&p.V6>=p.policy.NC&&(p.V6=0,p.loader.Hv({resetForRewrites:"count"})))}p.qT=a.info;p.gr=kU(a);a.j>=0&&(p.Ra=a.j);if(R&&p.S){R=Jc1(p,!0);$U(a.info,R);p.U&&$U(p.U.info,R);x=g.k(x);for(d=x.next();!d.done;d=x.next())d=d.value,c=void 0,p.policy.C&&d.i$!==((c=p.S)==null?void 0:c.xH)||$U(d,R);(a.info.B||p.U&&p.U.info.B)&&a.info.type!==6||(p.pI=R,p.policy.Z?(x=Rko(p.S),p.loader.Cg(p.C, R,x)):(x=p.loader,x.nI.isManifestless&&Kgf(x,R,null,!!p.C.info.video)),p.policy.Z$||dD1(p))}}xDo(p,a);p.timestampOffset&&uN1(a,p.timestampOffset)}; SC=function(p,x){if(x.info.B){p.HO=x.info;if(p.S){var a=p.S,v=Jc1(p,!1);a=Rko(a);p.loader.Cg(p.C,v,a);p.pI||p.policy.Z$||dD1(p);p.pI=null}mR(p)}p.V&&oUb(p.V,x);if(v=p.Ov())if(v=g.MG(v,x,p.policy.Nx,p.policy.L3)){p.Z.pop();p.Z.push(v);return}p.Z.push(x)}; Rko=function(p){if(p.SI()){var x=p.data["Stitched-Video-Id"]?p.data["Stitched-Video-Id"].split(",").slice(0,-1):[],a=NKf(p),v=[];if(p.data["Stitched-Video-Duration-Us"])for(var c=g.k(p.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),J=c.next();!J.done;J=c.next())v.push((Number(J.value)||0)/1E6);c=[];if(p.data["Stitched-Video-Start-Frame-Index"]){J=g.k(p.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var R=J.next();!R.done;R=J.next())c.push(Number(R.value)||0)}c=[]; if(p.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(J=g.k(p.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),R=J.next();!R.done;R=J.next())c.push((Number(R.value)||0)/1E6);p=new EUx(x,a,v,c,g.AEz(p),g.Pc_(p))}else p=null;return p}; mR=function(p){p.U=null;p.O7=-1;p.T=0;p.S=null;p.F5=NaN;p.Zt=0;p.pI=null}; QO=function(p,x){x={rst4disc:x,cd:p.Y.toFixed(3),sq:p.qT?p.qT.i$:-1};p.j=NaN;p.Y=0;p.LI=-1;p.qT=null;p.Ra=NaN;p.gr=NaN;p.tG=null;p.loader.jA("mdstm",x)}; xDo=function(p,x){if(p.isDrm()){if(x.info.U.info.Ul()){var a=new I7(g.IE(x));if(Wf(a,[408125543,374648427,174,28032,25152,20533,18402])){var v=U$(a,!0);a=v!==16?null:Sz(a,v)}else a=null;v="webm"}else x.info.T=zrg(g.IE(x)),a=wz_(x.info.T),v="cenc";a&&a.length&&(a=new W2(a,v),p.policy.DO&&g.oI(x.info.U.info)&&(v=$K1(g.IE(x)))&&(a.Z=v),a.Ul=x.info.U.info.Ul(),x.U&&x.U.cryptoPeriodIndex&&(a.cryptoPeriodIndex=x.U.cryptoPeriodIndex),x.U&&x.U.Z&&(a.U=x.U.Z),p.loader.uj(a))}}; dD1=function(p){var x=p.S,a=GwI(x);a&&(a.startSecs+=p.F5,p.loader.oE(p.C,a,x.xH,x.SI()))}; Jc1=function(p,x){var a,v=p.S;if(a=GwI(v))a.startSecs+=p.F5;return new n1(v.xH,p.F5,x?v.aM:p.Zt,v.ingestionTime,"sq/"+v.xH,void 0,void 0,x,a)}; cco=function(p,x,a){if(!eoJ(x,a))return x=xU(x.info),x.smst="1",p.loader.handleError("fmt.unparseable",x||{},1),!1;isNaN(p.F5)&&(p.F5=a);return!0}; vAb=function(p,x,a){var v=0;if(x.info.U.info.Ul()&&!pNU(x))return 0;if(p.u$&&!p.K3()){var c=0;a&&g.oI(x.info.U.info)?c=a-p.j:x.info.U.info.Ul()&&(c=p.Y);var J=x.info.i$;a=D4(x,p.policy.G$);var R=p.u$;var d=R.LI;R=R.Y;var b=Math.abs(R-c)>.02;if((J===d||J>d&&J>p.LI)&&b){v=Math.max(.95,Math.min(1.05,(a-(R-c))/a));if(g.oI(x.info.U.info))eQb(g.IE(x),v);else if(x.info.U.info.Ul()&&(J=c-R,!g.oI(x.info.U.info)&&(x.info.U.info.Ul(),v=new I7(g.IE(x)),d=x.C?v:new I7(new DataView(x.info.U.U.buffer)),D4(x,!0)))){var r= J*1E3,B=C0(d);d=v.pos;v.pos=0;if(v.U.getUint8(v.pos)===160||X7(v))if(Do(v,160))if(U$(v,!0),Do(v,155)){if(J=v.pos,b=U$(v,!0),v.pos=J,r=r*1E9/B,B=TX(v),r=B+Math.max(-B*.7,Math.min(B,r)),r=Math.sign(r)*Math.floor(Math.abs(r)),!(Math.ceil(Math.log(r)/Math.log(2)/8)>b)){v.pos=J+1;for(J=b-1;J>=0;J--)v.U.setUint8(v.pos+J,r&255),r>>>=8;v.pos=d}}else v.pos=d;else v.pos=d;else v.pos=d}v=D4(x,p.policy.G$);v=a-v}v&&x.info.U.info.Ul()&&p.loader.jA("webmDurationAdjustment",{durationAdjustment:v,videoDrift:c+v, audioDrift:R})}return v}; saT=function(p){return p.info.U.ue()&&p.info.i$===p.info.U.index.Q8()}; CR=function(p,x){x=(x=x===void 0?0:x)?Math.round(p.timestampOffset*x)/x:p.timestampOffset;p.C.B&&x&&(x+=p.C.B.U);return x+p.getDuration()}; bHT=function(p,x){x<0||(p.Z.forEach(function(a){uN1(a,x)}),p.timestampOffset=x)}; nI=function(p,x,a,v,c){B4.call(this,a,c);var J=this;this.policy=p;this.formatId=x;this.ov=v;this.lastError=null;this.onProgress=function(){J.b$()||(J.ov.tj.has(J.formatId)?(J.isComplete()||J.U.start(),y5(J.ov,J.formatId)&&J.iM(2),J.ov.TC(J.formatId)&&(foT(J.ov,J.formatId)?J.XX(4):(J.lastError="net.closed",J.XX(5)))):(J.lastError="player.exception",J.XX(5)))}; this.U=new g.AW(function(){J.isComplete()||(J.lastError="net.timeout",J.XX(5))},1E3); this.U.start();Q71(this.ov,this.formatId,this.onProgress);g.D9(this.onProgress)}; Xh=function(p,x,a,v){g.y.call(this);var c=this;this.loader=p;this.policy=x;this.U=a;this.timing=v;this.logger=new g.YU("dash");this.j=[];this.u$=[];this.Z=this.MZ=null;this.tG=!1;this.hG=this.V6=0;this.S=-1;this.O7=!1;this.F5=-1;this.qT=null;this.pI=NaN;this.Zt=[];this.d3={YU:function(){return c.B}, ID5:function(){return c.j}, vag:function(){return c.Y}}; this.B=new P4N(p,x,a);this.policy.U&&(this.Y=new Py(this.B,this.loader.getManifest(),this.policy,function(J){c.policy.A2&&c.jA("buftl",J)})); this.policy.KW&&(this.T=new rV(this));this.y6=a.info.y6;this.V=this.policy.Zt?!1:a.TO();this.isManifestless=a.TO();this.C=this.V;g.Z(this,this.qT)}; iQ=function(p,x,a){a=a===void 0?!1:a;x&&fR&&bHT(p.B,x.eH());if(!a){var v;(v=p.Y)==null||kT1(v)}p.MZ=x;(x=p.Y)!=null&&(x.MZ=p.MZ)}; o$=function(p){var x=p.MZ&&p.MZ.Mm();if(p.policy.fY){if((p=p.Y)==null)p=void 0;else{var a;p=(a=p.j)==null?void 0:a.info}return p||null}return x}; rc1=function(p){for(var x={},a=0;a4&&p.u$.shift()}; B5x=function(p,x){if(x.Vs()){var a=x.GF();a=g.k(a);for(var v=a.next();!v.done;v=a.next())v=v.value,p.policy.j&&x instanceof nI&&p.jA("omblss",{s:v.info.jV()}),zz(p,x.info.eA,v,x.gW())}}; zz=function(p,x,a,v){v=v===void 0?0:v;isNaN(p.pI)||(p.jA("aswm",{sq:x[0].i$,id:x[0].U.info.itag,xtag:x[0].U.info.U,ep:Date.now()-p.pI}),p.pI=NaN);switch(a.info.type){case 1:case 2:lGQ(p,a);break;case 4:var c=a.info.U,J=c.jM(a),R;((R=p.Z)==null?0:R.type===4)&&TDJ(a.info,p.Z)&&(p.Z=c.r8(p.Z).pop());a=g.k(J);for(c=a.next();!c.done;c=a.next())zz(p,x,c.value,v);break;case 3:a.info.U.info.video?(c=p.timing,c.F5||(c.F5=(0,g.WR)(),g.gM("fvb_r",c.F5,c.U))):(c=p.timing,c.S||(c.S=(0,g.WR)(),g.gM("fab_r",c.S, c.U)));p01(p.B,x,a,v);p.policy.U&&LgQ(p);break;case 6:p01(p.B,x,a,v),p.Z=a.info}}; lGQ=function(p,x){if(x.info.type===1)if(x.info.U.info.video){var a=p.timing;a.hG||(a.hG=(0,g.WR)(),g.gM("vis_r",a.hG,a.U))}else a=p.timing,a.Y||(a.Y=(0,g.WR)(),g.gM("ais_r",a.Y,a.U));u0U(p.B,x);p=p.loader;p.videoTrack.U.C3()&&p.audioTrack.U.C3()&&p.policy.U&&!p.nI.Dp&&(x=p.audioTrack.getDuration(),a=p.videoTrack.getDuration(),Math.abs(x-a)>1&&p.jA("trBug",{af:""+g.zl(p.audioTrack.U.info,!1),vf:""+g.zl(p.videoTrack.U.info,!1),a:""+x,v:""+a}))}; v4=function(p){return qlg(p.B)}; LgQ=function(p){p.j.length?p.Z=g.hO(g.hO(p.j).info.eA):p.B.Z.length?p.Z=p.B.Ov().info:p.Z=o$(p)}; wV=function(p,x){var a={ES:[],KY:[]},v;if((p=p.Y)==null)p=void 0;else{W7I(p,p.ES,"og");jBT(p,x);W7I(p,p.ES,"trim");var c=M3f(p);x=c.ES;c=c.Dh;for(var J=[],R=0;R0){var L=AD(l,b);L>=0&&(B=(l.end(L)-b+.1)*1E3)}J.push({formatId:g.zl(d.info.U.info,p.nI.Dp), AZ:d.info.AZ,sequenceNumber:d.info.i$+p.B,Fc:r,Yq:d.info.j,XU:B})}p={ES:x,KY:J}}return(v=p)!=null?v:a}; Vv=function(p,x,a){a=a===void 0?!1:a;if(p.MZ){var v=p.MZ.rH(),c=qK(v,x),J=NaN,R=o$(p);R&&(J=qK(v,R.U.index.getStartTime(R.i$)));if(c===J&&p.Z&&p.Z.j&&YdQ(EH(p),0))return x}p=hk1(p,x,a);return p>=0?p:NaN}; ps=function(p,x,a){p.U.C3();var v=hk1(p,x);if(v>=0)return v;var c;(c=p.Y)==null||IWJ(c,x,a);v=Math;c=v.min;var J=p.B;if(J.V)if(J=J.V,J.yb&&J.yb.type===3)J=J.yb.startTime;else if(J.j>0){var R=J.U.index;R=g.Gy(R.offsets.subarray(0,R.count),J.j*J.chunkSize);J=J.U.index.getStartTime(R>=0?R:Math.max(0,-R-2))}else J=0;else J=Infinity;x=c.call(v,x,J);p.Z=p.policy.Zt?null:p.U.PF(x).eA[0];yO(p)&&(p.policy.lj&&(a==null?void 0:a.seekSource)===60||p.MZ&&p.MZ.abort(),p.policy.S4&&(a=p.Y)!=null&&(a.j=void 0)); p.hG=0;return p.Z?p.Z.startTime:x}; UtN=function(p){p.V=!0;p.C=!0;p.S=-1;ps(p,Infinity)}; gV=function(p){for(var x=0,a=g.k(p.j),v=a.next();!v.done;v=a.next())x+=mKN(v.value.info);return x+=$DJ(p.B)}; Gz=function(p,x){x=x===void 0?!1:x;var a=p.loader.getCurrentTime(),v=p.B.Ov(),c=(v==null?void 0:v.info.S)||0;if((v==null?0:v.info.U.TO())&&!v.info.B)if(p.policy.HU)c=v.info.C;else if(p.policy.S_){var J=v.info;c=J.range?J.S:Math.min(J.startTime+Math.min(J.duration*J.Z/J.U.info.y6,J.duration)+(J.range?J.Y:Math.min(J.duration,J.duration*J.j/J.U.info.y6)),J.startTime+J.duration)}if(!p.MZ)return p.policy.U&&x&&!isNaN(a)&&v?c-a:0;if((J=o$(p))&&Z_(J))return J.S;var R=p.MZ.rH(!0);if(x&&v)return J=0,p.policy.U&& (J=uh(R,c+.02)),J+c-a;x=uh(R,a);p.policy.Sm&&J&&(v=AD(R,a),R=AD(R,J.C-.02),v===R&&(a=J.S-a,p.policy.j&&a>x+.02&&p.jA("abh",{bh:x,bhtls:a}),x=Math.max(x,a)));return x}; jaJ=function(p){var x=o$(p);return x?x.S-p.loader.getCurrentTime():0}; IGQ=function(p,x){if(p.j.length){if(p.j[0].info.eA[0].startTime<=x)return;ua(p)}for(var a=p.B,v=a.Z.length-1;v>=0;v--)a.Z[v].info.startTime>x&&a.Z.pop();LgQ(p);p.Z&&x=0;R--){var d=c.Z[R];d.info.i$>=x&&(c.Z.pop(),c.j-=D4(d,c.policy.G$),J=d.info)}J&&(c.B=c.Z.length>0?c.Z[c.Z.length-1].info:c.tG,c.Z.length!==0||c.B||QO(c,"r"));c.loader.jA("mdstm",{rollbk:1,itag:J?J.U.info.itag:"",popped:J?J.i$:-1,sq:x,lastslc:c.B?c.B.i$:-1,lastfraget:c.j.toFixed(3)});if(p.policy.U)return p.Z=null,!0;v>a?ps(p,v):p.Z=p.U.MP(x-1,!1).eA[0]}catch(b){return x=rD(b),x.details.reason="rollbkerr", p.loader.handleError(x.errorCode,x.details,x.severity),!1}return!0}; Al=function(p,x){var a;for(a=0;a0?a||x.i$>=p.F5:a}; P2=function(p){var x;return yO(p)||Z_((x=p.B.Ov())==null?void 0:x.info)}; EH=function(p){var x=[],a=o$(p);a&&x.push(a);x=g.fG(x,p.B.Yd());a=g.k(p.j);for(var v=a.next();!v.done;v=a.next()){v=v.value;for(var c=g.k(v.info.eA),J=c.next(),R={};!J.done;R={OQ:void 0},J=c.next())R.OQ=J.value,v.Ob&&(x=g.mC(x,function(d){return function(b){return!TDJ(b,d.OQ)}}(R))),(VL(R.OQ)||R.OQ.type===4)&&x.push(R.OQ)}p.Z&&!ho1(p.Z,g.hO(x),p.Z.U.ue())&&x.push(p.Z); return x}; YdQ=function(p,x){if(!p.length)return!1;for(x+=1;x=x){x=J;break a}}x=c}return x<0?NaN:YdQ(p,a?x:0)?p[x].startTime:NaN}; q9=function(p){return!(!p.Z||p.Z.U===p.U)}; MFf=function(p){return q9(p)&&p.U.C3()&&p.Z.U.info.y6x&&p.S1080&&!p.Po&&(p.hG=36700160,p.T4=5242880,p.V6=Math.max(4194304,p.V6),p.Po=!0);x.video.qualityOrdinal>2160&&!p.Ow&&(p.hG=104857600,p.y6=13107200,p.Ow=!0);g.e_(p.JG.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?x.isEncrypted()&&g.yl()&&g.wT("samsung")&&(g.wT("kant")||g.wT("muse"))&&(p.y6=g.e_(p.JG.experiments,"html5_samsung_kant_limit_max_bitrate")):x.isEncrypted()&&g.yl()&&g.wT("kant")&&(p.y6=1310720);p.s$!==0&&x.isEncrypted()&& (p.y6=p.s$);p.CD!==0&&x.isEncrypted()&&a&&(p.y6=p.CD);x.y6&&(p.qq=Math.max(p.f0,Math.min(p.V6,5*x.y6)))}; mI=function(p){return p.U&&p.Ii}; Fh=function(p){return p.U&&p.GG&&p.playbackStartPolicy}; pl=function(p,x,a,v){p.GG&&(p.playbackStartPolicy=x,p.Ll=a,p.g2=v)}; VO=function(p,x,a){a=a===void 0?0:a;return g.e_(p.JG.experiments,x)||a}; iHT=function(p){var x=p===void 0?{}:p;p=x.jX;var a=x.P$;var v=x.bL;var c=x.Q8;x=x.P0;this.jX=p;this.P$=a;this.bL=v;this.Q8=c;this.P0=x}; z81=function(p,x){if(x<0)return!0;var a=p.Q8();return x0)return 2;if(x<0)return 1;a=p.Q8();return x(0,g.WR)()?0:1}; $m=function(p,x,a,v,c,J,R,d,b,r,B,l,L,Y){Y=Y===void 0?null:Y;g.y.call(this);var h=this;this.loader=p;this.policy=x;this.videoTrack=a;this.audioTrack=v;this.B=c;this.U=J;this.timing=R;this.C=d;this.schedule=b;this.nI=r;this.j=B;this.Zt=l;this.EX=L;this.qr=Y;this.pI=!1;this.Tj="";this.V0=null;this.JS=NaN;this.O7=!1;this.Z=null;this.X8=this.T=NaN;this.kd=this.S=0;this.logger=new g.YU("dash");this.d3={GJ:function(D,H){return h.GJ(D,H)}}; this.policy.p$>0&&(this.Tj=g.B1(this.policy.p$));this.policy.OT&&(this.Y=new xm(this.loader,this.policy,this.schedule),g.Z(this,this.Y))}; EA8=function(p,x,a){var v=x.Z?x.Z.U.JX:x.U.JX;var c=p.B,J;(J=!p.policy.fl)||(J=OY(v.U)===OY(v.Z));J?v=!1:(c=w0(c,OY(v.Z)),J=6E4*Math.pow(c.B,1.6),(0,g.WR)()=c.B?(c.jA("sdai",{haltrq:J+1,est:c.B}),v=!1):v=c.Z!==2;if(!v||!GX(x.Z?x.Z.U.JX:x.U.JX,p.policy,p.B,p.loader.sG())||p.loader.isSuspended&&(!G8(p.schedule)||p.loader.lF))return!1;if(p.policy.B&&pT>=5)return g.Pk(p.loader.sC),!1;if(p.nI.isManifestless){if(x.j.length>0&&x.Z&&x.Z.i$===-1||x.j.length>=p.policy.Lq||!p.policy.qD&&x.j.length>0&&!p.policy.V.P$)return!1;if(x.V)return!p.nI.isLive|| !isNaN(p.JS)}if(HH1(x))return p.logger.debug("Pending request with server-selectable format found"),!1;if(!x.Z){if(!x.U.C3())return!1;ps(x,p.loader.getCurrentTime())}if(v4(x)&&(x.Ov()!==v4(x)||p.loader.isSuspended))return!1;c=(v=p.policy.Hf)&&!x.j.length&&Gz(x,!0)=p.policy.HL)return!1;v=x.Z;if(!v)return!0;v.type===4&&v.U.C3()&&(x.Z=g.hO(v.U.r8(v)),v= x.Z);if(!v.Vf()&&!v.U.nA(v))return!1;J=p.nI.S3||p.nI.B;if(p.nI.isManifestless&&J){J=x.U.index.Q8();var R=a.U.index.Q8();J=Math.min(J,R);if(x.U.index.yh()>0&&J>0&&v.i$>=J)return x.F5=J,a.F5=J,!1}if(v.U.info.audio&&v.type===4||v.Vf())return!1;J=!x.C&&!a.C;if(c=!c)c=v.S,c=!!(a.Z&&!Z_(a.Z)&&a.Z.Syc1(p,x)?(yc1(p,x),!1):(p=x.MZ)&&p.isLocked()?!1:!0}; yc1=function(p,x){var a=p.U;a=a.U?a.U.U8:null;if(p.policy.u$&&a)return a.startSecs+a.uc+15;x=Fa(p.loader,x);p.policy.Zp>0&&(a=((0,g.WR)()-p.loader.y3)/1E3,x=Math.min(x,p.policy.Zp+p.policy.JR*a));x=p.loader.getCurrentTime()+x;return p.policy.Bo&&(a=gAz(p.loader)+p.policy.Bo,a=0||x.JX.xY("defrag")==="1"||x.JX.xY("otf")==="1"){x=null;break a}c=qN(0,4096)}c=new aE([new ez(5,v.U,c,"createProbeRequestInfo"+v.V,v.i$)],x.Z);c.c$=a;c.U=x.U;x=c}x&&sr(p,x)}}; sr=function(p,x){p.loader.qk(x);var a=mKN(x),v=p.loader.Qq();a={PE:p.schedule,pH:a,u0:rSg(p.C,a),Pv:u5(x.eA[0]),iY:Nt(x.JX.U),Ut:p.policy.j,uy:function(R,d){p.loader.dF(R,d)}}; if(p.schedule.Z.S){var c,J;a.nY=(((c=p.videoTrack.U)==null?void 0:c.info.y6)||0)+(((J=p.audioTrack.U)==null?void 0:J.info.y6)||0)}p.V0&&(a.i$=x.eA[0].i$,a.JS=x.JS,a.V0=p.V0);v={QK:SB1(x,p.loader.getCurrentTime()),RW:p.policy.Xq&&vz(x)&&x.eA[0].U.info.video?mGo(p.j):void 0,AL:p.policy.u$,poToken:p.loader.qE(),hh:p.loader.q0(),Tj:p.Tj,X8:isNaN(p.X8)?null:p.X8,qr:p.qr,EX:p.EX,kd:p.kd,xo:v};return new eZ(p.policy,x,a,p.B,function(R,d){try{a:{var b=R.info.eA[0].U,r=b.info.video?p.videoTrack:p.audioTrack; if(!(R.state>=2)||R.isComplete()||R.OH()||!(!p.loader.xg||p.loader.isSuspended||Gz(r)>3)){var B=zkI(R,p.policy,p.B);B===1&&(p.O7=!0);ZH1(p,R,B);if(R.isComplete()||R.b$()&&d<3){if(p.policy.j){var l=R.timing.rz();l.rst=R.state;l.strm=R.xhr.Kj();l.cncl=R.xhr&&R.WE.B?1:0;p.loader.jA("rqs",l)}R.Sn&&p.loader.jA("sbwe3",{},!0)}if(!p.b$()&&R.state>=2){eTg(p.timing,R,b);var L=p.loader;p.X8&&R.qR&&L&&(p.X8=NaN,p.loader.Mp(R.qR),p.loader.pz(),p.loader.jA("cabrUtcSeek",{mediaTimeSeconds:R.qR}));R.lM&&p.X8&&R.lM&& !R.lM.action&&(p.loader.AY(p.X8),p.X8=NaN,p.loader.jA("cabrUtcSeekFallback",{targetUtcTimeSeconds:p.X8}));R.qC&&p.loader.zd(R.qC);p.policy.RA&&(p.kd=R.kd);if(R.state===3){Al(r,R);vz(R.info)&&cW(p,r,b,!0);if(p.Z){var Y=R.info.FJ();Y&&p.Z.u9(R.info.eA[0].i$,b.info.id,Y)}p.loader.Bh()}else if(R.isComplete()&&R.info.eA[0].type===5){if(R.state!==4)R.h3()&&p.loader.handleError(R.AS(),R.nD());else{var h=(R.info.eA[0].U.info.video?p.videoTrack:p.audioTrack).j[0]||null;h&&h instanceof eZ&&h.OH()&&h.QD()}R.dispose()}else{R.h3()|| G8g(p,R);var D;((D=R.jp)==null?0:D.itagDenylist)&&p.loader.uS(R.jp.itagDenylist);if(R.state===4)Jy(p,R),p.U&&xGb(p.U,R.info,p.Z);else if(p.policy.Ri&&R.Vs()&&!R.isComplete()&&!Jy(p,R)&&!R.h3())break a;R.h3()&&(OHQ(p,R),isNaN(p.X8)||(p.loader.AY(p.X8),p.X8=NaN));p.policy.vX&&!R.isComplete()?Rm(p.loader):p.loader.Bh();var H=w01(R,p.policy,p.B);ZH1(p,R,H)}}}}}catch(f){d=p.pI?1:0,p.pI=!0,R=bh(d),d=rD(f,d),p.loader.handleError(d.errorCode,d.details,d.severity),R||p.loader.Nr()}},v)}; G8g=function(p,x){if(x.Xa&&x.state>=2&&x.state!==3){var a=x.xhr.getResponseHeader("X-Response-Itag");if(a){p.logger.debug(function(){return"Applying streamer-selected format "+a}); var v=QEQ(p.j,a),c=x.info.j;c&&(c-=v.xU(),v.j=!0,x.info.eA[0].U.j=!1,UNg(x,v.B0(c)),Kl(p.loader,p.videoTrack,v),T5b(p.videoTrack,v),p.loader.JN(v.info.video.quality),(c=x.gW())&&v.info.lastModified&&v.info.lastModified!==+c&&Al(p.videoTrack,x))}else x.Xa=!1}}; OHQ=function(p,x){var a=x.info.eA[0].U,v=x.AS();if(Nt(a.JX.U)){var c=g.SV(x.Z9(),3);p.loader.jA("dldbrerr",{em:c||"none"})}c=x.info.eA[0].i$;var J=ns(p.U,x.info.eA[0].C,c);v==="net.badstatus"&&(p.S+=1);if(x.canRetry()&&dl(p.loader)){if(!(x.info.JX.j>=p.policy.sD&&p.Z&&x.info.isDecorated()&&v==="net.badstatus"&&p.Z.dY(J,c))){c=(a.info.video&&a.JX.j>1||x.YL===410||x.YL===500||x.YL===503)&&!(a$(p.j.C).size>0)&&!Nt(a.JX.U);J=x.nD();var R=a.info.video?p.videoTrack:p.audioTrack;c&&(J.stun="1");p.loader.handleError(v, J);p.b$()||(c&&(p.logger.debug(function(){return"Stunning format "+a.info.id}),KR(p.j,a)),Al(R,x),p.loader.Bh())}}else R=1,p.Z&&x.info.isDecorated()&&v==="net.badstatus"&&p.Z.dY(J,c)&&(R=0),p.nI.isLive&&x.AS()==="net.badstatus"&&p.S<=p.policy.MC*2?(o_g(p.nI),p.nI.S3||p.nI.isPremiere?sx(p.loader,0,{Cp:"badStatusWorkaround"}):p.nI.B?sx(p.loader,p.nI.u$,{Cp:"badStatusWorkaround", wK:!0}):bG(p.loader)):p.loader.handleError(v,x.nD(),R)}; Jy=function(p,x){if(p.policy.useUmp&&x.b$())return!1;try{var a=x.info.eA[0].U,v=a.info.video?p.videoTrack:p.audioTrack;if(p.nI.isManifestless&&v){p.S=0;v.V&&(x.b$(),x.isComplete()||x.Vs(),v.V=!1);x.CR()&&p.loader.wq.a5(1,x.CR());var c=x.yh(),J=x.oX();Ak(p.nI,c,J)}if(x.info.Pv()&&!sl(x.info))for(var R=g.k(x.GF()),d=R.next();!d.done;d=R.next())lGQ(v,d.value);for(p.loader.getCurrentTime();v.j.length&&v.j[0].state===4;){var b=v.j.shift();B5x(v,b);v.V6=b.N3()}v.j.length&&B5x(v,v.j[0]);var r=!!v4(v);r&& x instanceof nI&&(a.info.K3()?GXI(p.timing):Z0Q(p.timing));return r}catch(B){x=x.nD();x.origin="hrhs";a:{p=p.loader;a=B;if(a instanceof Error){x.msg||(x.msg=""+a.message);x.name||(x.name=""+a.name);if(a instanceof g.gr&&a.args)for(v=g.k(Object.entries(a.args)),c=v.next();!c.done;c=v.next())J=g.k(c.value),c=J.next().value,J=J.next().value,x["arg"+c]=""+J;g.Hp(a);if(a.level==="WARNING"){p.U7.Hv(x);break a}}p.handleError("fmt.unplayable",x,1)}return!1}}; N58=function(p){var x=p.videoTrack.U.index;p.V0=new iHT({jX:p.policy.jX,P$:p.policy.V.P$,bL:x.B9(),Q8:function(){return x.Q8()}, P0:function(){return x.P0()}})}; cW=function(p,x,a,v){if(!(a.C3()||a.d7()||a.j||!GX(a.JX,p.policy,p.B,p.loader.sG())||a.info.rr==="f"||p.policy.U)){if(v){v=p.C;var c=a.info;v=B91(v,c.video?v.policy.us:v.policy.Tc,c.y6)}else v=0;v=a.B0(v);p=sr(p,v);sl(v)&&tl(x,p);a.j=!0}}; rl=function(p,x,a,v,c,J,R,d){g.y.call(this);var b=this;this.loader=p;this.Lv=x;this.videoTrack=a;this.audioTrack=v;this.nI=c;this.T=J;this.isAudioOnly=R;this.Y=d;this.Z=dY;this.O7=!1;this.logger=new g.YU("sabr");this.V=this.pI=this.Zt=!1;this.videoInfos=this.S=this.T.videoInfos;this.j=this.u$=this.T.U;this.U=new pR(x,J,function(r,B){b.loader.jA(r,B)}); this.isAudioOnly&&Aco(this,this.nI.U["0"])}; PTf=function(p,x){var a=[];x=g.k(x);for(var v=x.next();!v.done;v=x.next())a.push(g.zl(v.value,p.nI.Dp));return a}; Aco=function(p,x,a){x!==p.B&&(p.B&&(p.O7=!0),p.B=x,p.Ft(x,p.videoTrack,a))}; unI=function(p,x){p.logger.debug("setConstraint: "+m7(x));mI(p.Lv)&&(p.pI=x.reason==="m"||x.reason==="l"?!0:!1);x.reason==="m"?x.isLocked()&&qd8(p,x.U):nAf(p,x)?ekU(p,x.Z,x.U):p.videoInfos=p.S;p.Z=x}; nAf=function(p,x){return p.Lv.GP&&x.reason==="b"||p.Lv.yN&&x.reason==="l"||p.Lv.T2?!1:p.Lv.gN?!0:x.reason==="l"||x.reason==="b"||x.reason==="o"}; VFx=function(p,x){return x.isLocked()&&p.U.Z||p.Z===void 0?!1:x.equals(p.Z)}; Fg1=function(p,x){var a,v=(a=p.B)==null?void 0:a.info.video.qualityOrdinal;return p.O7?!0:p.B?x!==v?!0:!p.U.Z||p.Lv.Ac&&p.U.U===p.B.info.itag?!1:!0:!1}; qd8=function(p,x){var a=p.U.U;if(a){p.videoInfos=p.S;var v=g.ME(p.videoInfos,function(c){return c.id===a}); v&&v.video.qualityOrdinal===x?p.videoInfos=[v]:(v=p.videoInfos.map(function(c){return c.id}),p.loader.jA("sabrpf",{pfid:""+a, vfids:""+v.join(".")}),ekU(p,x,x),sH(p.U,""))}else ekU(p,x,x)}; ekU=function(p,x,a){p.videoInfos=p.S;p.videoInfos=g.mC(p.videoInfos,function(v){return v.video.qualityOrdinal>=x&&v.video.qualityOrdinal<=a})}; pxz=function(p,x,a){if(p.Y){var v=g.mC(p.j,function(c){return c.id===p.Y}); return BW(v,a).includes(x)}v=g.mC(p.j,function(c){var J;return!((J=c.AX)==null||!J.isDefault)}); return v.length>0?BW(v,a).includes(x):BW(p.j,a).includes(x)}; BW=function(p,x){return p.map(function(a){return O$(g.zl(a,x))})}; x_8=function(p){var x;if((x=p.Z)==null?0:x.isLocked())return p.videoInfos;var a=a$(p.U);x=g.mC(p.videoInfos,function(v){return v.y6>p.Lv.y6?!1:!a.has(v.id)}); KMQ(p.U)&&(x=g.mC(x,function(v){return v.video.width<=854&&v.video.height<=480})); return x}; awx=function(p,x,a){var v=p.nI,c=p.U7.getVideoData(),J=p.hL,R=j7b({JG:c.L(),U7:p.U7,e2:p.e2,Lv:p.Lv,VC:p.VC,Z2:p.Z2,G_:p.G_,oI:p.oI,Wj:p.Wj,isPrefetch:p.isPrefetch,gi:p.gi,sabrLicenseConstraint:c.sabrLicenseConstraint,aI:p.aI,Af:p.Af,k8:p.k8,dL:p.dL,DE:!!J,authorizedFormats:c.authorizedFormats}),d=Sf(c,p.xo,p.nextRequestPolicy,p.Cs,p.N8,p.rB,p.G8);a&&x&&(a=d.Ah?d.Ah.map(function(l){return l.type}):[],x("sabr",{stmctxt:a.join("_"), unsntctxt:d.b1?d.b1.join("_"):""}));x=p.CB;a=p.iA;if(a===void 0&&x===void 0){var b;a=$_N(v.Dp,(b=p.Op)==null?void 0:b.video);var r;x=$_N(v.Dp,(r=p.Op)==null?void 0:r.audio)}if(c.qr)var B=c.qr;c={m2:R,KY:p.KY,CB:x,iA:a,hL:J,videoPlaybackUstreamerConfig:B,mJ:d};p.XS&&(c.XS=p.XS);c.ES=p.ES;c.ez=v.gr;return c}; $_N=function(p,x){return x?[g.zl(x.info,p)]:[]}; lG=function(p,x,a){var v=this;this.requestType=p;this.JX=x;this.sS=a;this.Z=null;this.d3={lD$:function(){var c;return(c=v.data)==null?void 0:c.isPrefetch}, N8:function(){var c;return(c=v.data)==null?void 0:c.N8}}}; wf1=function(p,x,a){x=g0(p.JX,sf1(p,x,a),x);p.bG()&&x.set("probe","1");return x}; sf1=function(p,x,a){p.c$===void 0&&(p.c$=p.JX.c$(x,a));return p.c$}; vO1=function(p){var x,a;return((x=p.U)==null?void 0:(a=x.m2)==null?void 0:a.tN)||0}; cCx=function(p){var x,a;return!!((x=p.U)==null?0:(a=x.m2)==null?0:a.aI)}; JCg=function(p){var x={},a=[],v=[];if(!p.data)return x;for(var c=0;c0;b--)a.push(d)}a.length!==R?x.error=!0:(J=a.slice(-J),a.length=c,m_T(x,a,J));break;case 1:m_T(x,wl,kGg);break;case 0:SFJ(x, x.U&7);a=Z7(x,16);c=Z7(x,16);(a^c)!==65535&&(x.error=!0);x.output.set(x.data.subarray(x.Z,x.Z+a),x.j);x.Z+=a;x.j+=a;break;default:x.error=!0}p.j>p.output.length&&(p.output=new Uint8Array(p.j*2),p.j=0,p.Z=0,p.B=!1,p.U=0,p.register=0)}p.output.length!==p.j&&(p.output=p.output.subarray(0,p.j));return p.error?new Uint8Array(0):p.output}; m_T=function(p,x,a){x=TXN(x);a=TXN(a);for(var v=p.data,c=p.output,J=p.j,R=p.register,d=p.U,b=p.Z;;){if(d<15){if(b>v.length){p.error=!0;break}R|=(v[b+1]<<8)+v[b]<>=7;r<0;)r=x[(R&1)-r],R>>=1;else R>>=r&15;d-=r&15;r>>=4;if(r<256)c[J++]=r;else if(p.register=R,p.U=d,p.Z=b,r>256){R=yS[r];R+=Z7(p,Er[r]);b=QfJ(p,a);d=gl[b];d+=Z7(p,D_Q[b]);if(Cmz&&Ra.length&&(p.error=!0);p.register|=(a[v+1]<<8)+a[v]<=0)return SFJ(p,a&15),a>>4;for(SFJ(p,7);a<0;)a=x[Z7(p,1)-a];return a>>4}; Z7=function(p,x){for(;p.U=p.data.length)return p.error=!0,0;p.register|=p.data[p.Z++]<>=x;p.U-=x;return a}; SFJ=function(p,x){p.U-=x;p.register>>=x}; TXN=function(p){for(var x=[],a=g.k(p),v=a.next();!v.done;v=a.next())v=v.value,x[v]||(x[v]=0),x[v]++;var c=x[0]=0;a=[];var J=0;v=0;for(var R=1;R7&&(J+=x[R]);for(c=1;c>b&1;d=J<<4|R;if(R<=7)for(b=1<<7-R;b--;)v[b<>=7;R--;){v[b]||(v[b]=-x,x+=2);var r=c&1;c>>=1;b=r-v[b]}v[b]=d}}return v}; iko=function(p){var x,a,v,c,J,R,d,b,r;return g.t(function(B){switch(B.Z){case 1:if(!XxU)throw Error("DecompressionStream is not supported");x=Ud.R1();a=new DecompressionStream("gzip");v=a.writable.getWriter();v.write(p);v.close();c=a.readable.getReader();J=new F_([]);case 2:return g.C(B,c.read(),5);case 5:R=B.U;d=R.value;if(b=R.done){B.Ia(4);break}J.append(d);B.Ia(2);break;case 4:return r=s4(J),Ud.w7("gznb",x,Math.ceil(r.byteLength/16)),B.return(r)}})}; oOf=function(p){XY.call(this,"onesie");this.b2=p;this.U={};this.B=!0;this.j=null;this.queue=new WV_(this);this.C={}}; tMg=function(p){var x=p.queue;x.U.length&&x.U[0].isEncrypted&&!x.Z&&(x.U.length=0);x=g.k(Object.keys(p.U));for(var a=x.next();!a.done;a=x.next()){a=a.value;var v=p.U[a];if(!v.R4){var c=p.queue;c.U.push({videoId:v.videoId,formatId:a,isEncrypted:!1});c.Z||zu(c)}}}; zb_=function(p,x){var a=x.totalLength,v=!1;switch(p.j){case 0:p.UM(x,p.B).then(function(c){var J=p.b2;J.mF("oprr");J.playerResponse=c;J.wl||(J.JL=!1);Gu(J)},function(c){p.b2.fail(c)}); break;case 2:p.mF("ormk");x=s4(x);p.queue.decrypt(x);break;default:v=!0}p.b2.By&&p.b2.jA("ombup","id.11;pt."+p.j+";len."+a+(v?";ignored.1":""));p.j=null}; wxo=function(p,x){var a,v,c,J,R;return g.t(function(d){switch(d.Z){case 1:p.b2.mF("oprgz_s");if(!XxU){d.Ia(2);break}g.DJ(d,3);return g.C(d,iko(x),5);case 5:return a=d.U,p.b2.mF("oprgz_n"),d.return(a);case 3:v=g.SI(d),p.b2.jA("gzerr",{impl:"native",err:""+v});case 2:if(c=p.b2.L().zt)try{var b=Ud.R1(),r=c.rS(x),B=c,l=r!=null?r:x,L=l.byteOffset,Y=l.byteLength,h=B.exports.getInflatedSize(L,Y);if(h===0)throw Error("wasm_gz: bad input");var D=B.malloc(h),H=B.exports.inflateGzip(L,Y,D);if(H)throw B.free(D), Error("wasm_gz: fail"+H);var f=new Uint8Array(B.exports.memory.buffer,D,h);r&&c.free(r.byteOffset);var m=c.ji(f);Ud.w7("gzwb",b,Math.ceil(m.byteLength/16));J=m;p.b2.mF("oprgz_w");return d.return(J)}catch(X){p.b2.jA("gzerr",{impl:"wasm",err:""+X})}b=Ud.R1();r=g.fwb(new g.U_f(x));Ud.w7("gzjb",b,Math.ceil(r.byteLength/16));R=r;p.b2.mF("oprgz_p");return d.return(R)}})}; EOg=function(p){return new Promise(function(x){setTimeout(x,p)})}; yCg=function(p,x){var a=p.L();a=p.OT&&a.D("html5_onesie_preload_use_content_owner");var v=p.t_,c=LH(x.z4.experiments,"debug_bandaid_hostname");if(c)x=Ym(x,c);else if((a===void 0?0:a)&&(v==null?0:v.url)&&!x.Z){var J=OY(new g.ZW(v.url));x=Ym(x,J)}else x=(J=x.U.get(0))==null?void 0:J.location.clone();if(x&&p.videoId){J=Q_(p.videoId);p=[];if(J)for(J=g.k(J),a=J.next();!a.done;a=J.next())p.push(a.value.toString(16).padStart(2,"0"));x.set("id",p.join(""));return x}}; gO8=function(p,x,a){a=a===void 0?0:a;var v,c;return g.t(function(J){if(J.Z==1)return v=[],v.push(x.load()),a>0&&v.push(EOg(a)),g.C(J,Promise.race(v),2);c=yCg(p,x);return J.return(c)})}; Zk1=function(p,x,a,v){v=v===void 0?!1:v;p.set("cpn",x.clientPlaybackNonce);p.set("opr","1");var c=x.L();p.set("por","1");aD()||p.set("onem","1");x.startSeconds>0&&p.set("osts",""+x.startSeconds);v||(c.D("html5_onesie_disable_partial_segments")&&p.set("oses","1"),x=c.D("html5_gapless_onesie_no_media_bytes")&&kh(x)&&x.OT,a&&!x?(x=a.audio,p.set("pvi",a.video.join(",")),c.D("html5_onesie_disable_audio_bytes")||p.set("pai",x.join(",")),lT||p.set("osh","1")):(p.set("oad","0"),p.set("ovd","0"),p.set("oaad", "0"),p.set("oavd","0")))}; GGf=function(p,x,a,v,c){c=c===void 0?!1:c;var J="https://youtubei.googleapis.com/youtubei/"+x.L0.innertubeApiVersion+"/player",R=[{name:"Content-Type",value:"application/json"}];v&&R.push({name:"Authorization",value:"Bearer "+v});R.push({name:"User-Agent",value:g.Ez()});g.gx("EOM_VISITOR_DATA")?R.push({name:"X-Goog-EOM-Visitor-Id",value:g.gx("EOM_VISITOR_DATA")}):(a=a.visitorData||g.gx("VISITOR_DATA"))&&R.push({name:"X-Goog-Visitor-Id",value:a});(a=g.gx("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&R.push({name:"X-YouTube-Lava-Device-Context", value:a});(x=LH(x.experiments,"debug_sherlog_username"))&&R.push({name:"X-Youtube-Sherlog-Username",value:x});p=B$(JSON.stringify(p));return{url:J,uJ:R,postBody:p,UN5:c,rd:c}}; OkI=function(p,x,a,v,c,J,R){var d=p.H2,b=p.i_;p=p.eug;var r=d!==void 0&&b!==void 0,B=v.getVideoData(),l,L=x.U.encryptedClientKey;x=r?x.iv:void 0;r=ZG(a.schedule,!0);c=c||!!aD()&&r>1572864;return{innertubeRequest:{H3a:p,BW:d,i_:b,encryptedClientKey:L,iv:x,g_5:!0,jC:!0,q3:"DecompressionStream"in window||!c,UVa:a.experiments.cO("html5_use_jsonformatter_to_parse_player_response")},m2:j7b({JG:a,U7:v,e2:B.startSeconds*1E3}),onesieUstreamerConfig:J,U$:R,mJ:Sf(B),reloadPlaybackParams:(l=B.jy)==null?void 0: l.reloadPlaybackParams}}; NXg=function(p,x,a,v,c,J){var R=g.GY(p,JS),d;if(!p.rd)if(d=bkT(x,R)){var b=d.A1;d=d.signature}else d=b=x.encrypt(R),(0,g.WR)(),d=cJo(new vZN(x.U.j),d,x.iv);return OkI(b&&d?{H2:b,i_:d}:{eug:R},x,a,v,!!p.rd,c,J)}; ACI=function(p,x,a,v,c,J){var R,d,b;return g.t(function(r){if(r.Z==1)return R=g.GY(p,JS),g.C(r,d_N(x,R),2);if(r.Z!=3)return d=r.U,g.C(r,rCx(x,d),3);b=r.U;return r.return(OkI({H2:d,i_:b},x,a,v,!!p.rd,c,J))})}; PmI=function(p,x,a,v,c,J){var R=g.GY(p,JS);if(R=bkT(x,R))return OkI({H2:R.A1,i_:R.signature},x,a,v,!!p.rd,c,J)}; Ny=function(p,x){g.y.call(this);var a=this;this.U7=p;this.playerRequest=x;this.logger=new g.YU("onesie");this.xhr=null;this.state=1;this.VQ=new bl;this.Ad=!1;this.playerResponse="";this.A3=new rv(this);this.hm=new oOf(this);this.w4="";this.I0=this.Om=!1;this.IZ="";this.enableCompression=this.wl=this.fH=!1;this.LB=[];this.xH=-1;this.zU=0;this.z4=this.U7.L();this.videoData=this.U7.getVideoData();this.By=this.z4.qZ();this.Hx=this.z4.FX;this.tV=new Rbf(this.Hx.U);this.Ui=this.z4.D("html5_onesie_check_timeout"); this.z6=new g.AW(this.SE,500,this);this.Xm=new g.AW(this.wc,1E4,this);this.Kg=new g.AW(function(){if(!a.isComplete()){var v=Or(a);a.fail(new g.dD("net.timeout",v))}},1E3); this.uP=new g.AW(this.pOT,2E3,this);this.GO=this.U7.q0();this.JL=this.D("html5_onesie_wait_for_media_availability");g.Z(this.videoData,this);g.Z(this,this.z6);g.Z(this,this.Xm);g.Z(this,this.uP);p=hc();lT&&p&&(this.P5=new Map);this.aX=new Map;this.C5=new Map;this.kc=new Map;this.Pp=new Map}; ty=function(p,x){var a;return(a=p.P5)==null?void 0:a.get(x)}; nON=function(p,x,a){var v;return g.t(function(c){if(c.Z==1)return p.mF("oprd_s"),qFz(p)?g.C(c,BXU(p.tV,x,a),3):(v=p.tV.decrypt(x,a),c.Ia(2));c.Z!=2&&(v=c.U);p.mF("oprd_c");return c.return(v)})}; eb_=function(p){return p.D("html5_onesie_host_probing")||p.By?lT:!1}; Gu=function(p){if(!p.playerResponse)return!1;if(p.fH)return!0;var x=p.videoData.D("html5_onesie_audio_only_playback")&&Db(p.videoData);if(p.P5&&p.JL){if(!p.P5.has(p.w4))return!1;var a=p.P5.get(p.w4),v;if(v=a){v=!1;for(var c=g.k(a.tj.keys()),J=c.next();!J.done;J=c.next())if(J=a.tj.get(J.value))for(var R=g.k(J.zj),d=R.next();!d.done;d=R.next())d.value.Za>0&&(J.K3?v=!0:x=!0);v=!(x&&v)}if(v)return!1}p.mF("ofr");p.VQ.resolve(p.playerResponse);if(!p.Ui){var b;(b=p.Kg)==null||b.start();p.Xm.start()}return p.fH= !0}; VMf=function(p){if(p.P5&&!p.D("html5_onesie_media_capabilities")){p.mF("ogsf_s");var x=r$f(p.U7.getVideoData(),function(v,c){p.jA(v,c)}),a=uG1(p.U7); x.video=aoI(a,x.video);p.mF("ogsf_c");if(x.video.length)return x;p.jA("ombspf","l."+a.Z+";u."+a.U+";o."+a.j+";r."+a.reason)}}; qFz=function(p,x){return p.D("html5_onesie_sync_request_encryption")||(x==null?0:x.rd)||g.If(p.z4)&&p.D("html5_embed_onesie_use_sync_encryption")?!1:!!aD()}; Or=function(p){if(!p.rV)return{};var x=p.rV.rz(),a;x.d=(a=p.rV.F5)==null?void 0:a.E6();x.shost=p.Ma;x.ty="o";return x}; FVI=function(p,x){var a,v;(v=(p=(a=p.P5)==null?void 0:a.get(x))==null)||(x=p.j?!1:p.j=!0,v=!x);return!v}; p__=function(p,x,a,v,c,J,R,d,b,r,B){g.y.call(this);var l=this;this.U7=p;this.loader=x;this.policy=a;this.audioTrack=v;this.videoTrack=c;this.nI=J;this.PE=R;this.Ra=d;this.j=b;this.timing=r;this.T=B;this.U=[];this.C={};this.tG=this.LI=!1;this.B=this.V6=this.Zt=this.gr=this.Wj=0;this.Y=null;this.O7={ES:[],KY:[]};this.u$={ES:[],KY:[]};this.V=null;this.S=[];this.d3={iZ$:function(){return l.U}, Nzr:function(){return l.C}, cu$:function(){l.U.length=0}, Usd:function(){return l.videoData.HO}, EaI:function(){return l.Zt}, zq7:function(L){l.Zt=L}, wFO:function(L){l.B=L}, Vm:function(L){l.V=L}, Ss:function(L){l.S=L}}; this.videoData=this.U7.getVideoData();this.policy.OT&&(this.qT=new xm(this.loader,this.policy,this.PE),g.Z(this,this.qT))}; abx=function(p,x){x=x===void 0?!1:x;if(xnb(p)){p.policy.S&&p.loader.jA("sabrcrq",{create:1});var a=new lG(0,p.nI.Y,p);p.policy.x_>0&&p.B++;x=$n1(p,a,x);p.U.push(x);var v;(v=p.qT)==null||oAU(v,p.nI.Y)}}; cMJ=function(p,x){var a=sho(p);if(p.policy.FM){var v=p.O7;var c=p.u$}else v=Ay(p,p.audioTrack),c=Ay(p,p.videoTrack);var J=[].concat(g.lf(v.ES),g.lf(c.ES));PW(p)&&J.push.apply(J,g.lf(p.S));var R=[].concat(g.lf(v.KY),g.lf(c.KY)),d=p.loader.Qq();if(p.policy.ye&&!p.videoData.isLivePlayback){var b=p.videoData.lengthSeconds*1E3;a>=b&&p.loader.jA("invalidSabrCmt",{cmt:a,vd:b})}var r,B;b=p.U7;var l=p.nI,L=p.Z,Y=p.videoData.HO,h=p.policy,D=p.loader.y3,H=gAz(p.loader)*1E3,f=(r=p.F5)==null?void 0:r.G_;r=(B= p.F5)==null?void 0:B.oI;var m;B=Number((m=p.j.B)==null?void 0:m.info.itag)||0;var X;m=Number((X=p.j.C)==null?void 0:X.info.itag)||0;x={U7:b,nI:l,ES:J,KY:R,e2:a,nextRequestPolicy:L,Cs:Y,Lv:h,VC:D,Z2:H,G_:f,oI:r,Wj:p.Wj,isPrefetch:x||p.loader.isSuspended,vk:B,QY:m,xo:d,G8:p.U7.h4()};a=p.loader.qE();J=Q_(a);a&&(x.N8=J);if(a=p.U7.Jp())x.aI=a*1E3;var E;a=p.j;J=a.Zt;if(((E=a.Lv)==null?0:mI(E))&&!J)for(E=g.k(a.j),R=E.next();!R.done;R=E.next())if(R.value.AX){J=!0;break}E=mI(a.Lv)&&!J?[]:PTf(a,a.j);x.CB=E; E=p.j;mI(E.Lv)&&!E.pI?E=[]:(a=x_8(E),a.length===0&&(a=E.S),E=PTf(E,a));x.iA=E;x.hL=PW(p)?[p.V]:void 0;p.policy.Ei&&(x.k8=vh1(p.loader,p.audioTrack),x.dL=vh1(p.loader,p.videoTrack));if(p.policy.Z){E=p.loader.getCurrentTime();v=qy(p,v.ES,E);c=qy(p,c.ES,E);c=Math.min(v,c);PW(p)&&(v=qy(p,p.S,E),p.U7.qZ()&&v0&&p.U[0].Tx()&&(x.rB=p.U[0].A4());return x}; sho=function(p){var x,a=p.policy.C&&((x=p.loader)==null?void 0:x.x8());x=p.loader.getCurrentTime()||0;x=JM1(p,x);var v=p.loader.Y0()||0;x+=v;v=P_(p.videoData)||g.AM(p.videoData);var c=0;a?(v&&(c=Number.MAX_SAFE_INTEGER),p.videoData.O7&&(c=Math.ceil(p.videoData.u$*1E3))):c=Math.ceil(x*1E3);return Math.min(Number.MAX_SAFE_INTEGER,c)}; PW=function(p){return p.policy.y8&&!!p.V}; JM1=function(p,x){if(p.loader.isSeeking())return x;var a=p.U7.gV();if(!a)return x;a=a.eh();if(a.length===0||Ph(a,x))return x;if(!eC(p.videoTrack,x)&&!eC(p.audioTrack,x))return p.loader.jA("sundrn",{b:0,lt:x}),x;for(var v=x,c=Infinity,J=0;Jx)){var R=x-a.end(J);R=20)?(p.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),x):v}; qy=function(p,x,a){p=p.loader.Y0()||0;return nl(x,(a+p)*1E3)/1E3+a}; xnb=function(p){if(p.policy.x_>0){var x=Math.floor((0,g.WR)()/1E4);if(x===p.V6){if(p.B>=p.policy.x_){if(p.B===p.policy.x_){var a={reason:"toomanyrequests"};a.limit=p.B;p.loader.handleError("player.exception",a);p.B+=1}return!1}}else p.V6=x,p.B=0}if(p.loader.isSuspended&&p.loader.lF)return!1;if(p.pI&&(0,g.WR)()0&&(!p.policy.T||p.U.length!==1||!p.U[0].Tx()))return!1;var v;if(!(x=(v=p.nI.Y)==null||!GX(v,p.policy,p.C,p.loader.sG())||P2(p.audioTrack)&&P2(p.videoTrack))){if(v= p.policy.Z){v=!1;if(p.T.Z===2)v=!0;else if(p.T.Z===3){sho(p);p.loader.Y0();var c=wV(p.audioTrack,p.loader.isSeeking()).ES;x=wV(p.videoTrack,p.loader.isSeeking()).ES;var J=p.loader.getCurrentTime()||0;c=qy(p,c,J);x=qy(p,x,J);x=Math.min(c,x);J=p.T;x>=J.C?(J.jA("sdai",{haltrq:x,est:J.C}),x=!0):x=!1;x&&(v=!0)}v&&p.policy.S&&p.loader.jA("sabrcrq",{waitad:1})}x=v}if(x)return!1;p.policy.FM&&(p.O7=Ay(p,p.audioTrack),p.u$=Ay(p,p.videoTrack));if(!p.Z)return p.policy.S&&p.loader.jA("sabrcrq",{nopolicy:1}),!0; if(p.U7.Jp())return p.policy.S&&p.loader.jA("sabrcrq",{utc:1}),!0;if(p.j.V)return p.policy.S&&p.loader.jA("sabrcrq",{audio:1}),!0;if(!p.Z.targetAudioReadaheadMs||!p.Z.targetVideoReadaheadMs)return p.policy.S&&p.loader.jA("sabrcrq",{noreadahead:1}),!0;if(p.policy.C&&p.loader.x8())return p.policy.S&&p.loader.jA("sabrcrq",{seekToHead:1}),!0;v=Math.min(Fa(p.loader,p.audioTrack)*1E3,p.Z.targetAudioReadaheadMs);x=Math.min(Fa(p.loader,p.videoTrack)*1E3,p.Z.targetVideoReadaheadMs);var R=Math.min(v,x);J=Gz(p.audioTrack, !0)*1E3;c=Gz(p.videoTrack,!0)*1E3;var d=p.U7.getCurrentTime()*1E3;if(p.policy.FM){var b=nl(p.O7.ES,d);var r=nl(p.u$.ES,d)}else b=J,r=c;var B=bx||v>=0&&c.ZI>v+1)break;a=Math.max(a,c.startTimeMs+c.durationMs);v=Math.max(v,c.U6)}return Math.max(0,a-x)}; $n1=function(p,x,a){var v={PE:p.PE,uy:function(b,r){p.U7.dF(b,r)}, Pv:p.policy.PG,Ut:p.policy.j};p.PE.Z.S&&(v.nY=(p.videoTrack.U.info.y6||0)+(p.audioTrack.U.info.y6||0));p.policy.l9&&(v.bL=p.audioTrack.U.index.B9(),v.Pv=!1);var c=sf1(x,p.policy,p.C)?2:1;c!==p.Zt&&(p.Zt=c,Kr1(p));a=cMJ(p,a);if(p.policy.T&&p.policy.j&&a.Cs){for(var J=c="",R=g.k(a.Cs),d=R.next();!d.done;d=R.next())d=d.value,p.videoData.sabrContextUpdates.has(d)||p.policy.T&&a.rB&&a.rB.type===d?c+="_"+d:J+="_"+d;p.loader.jA("sabrbldrqs",{ctxts:c,misctxts:J})}!x.setData(a,p.policy,p.C)&&p.policy.T&&p.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);v=new ZV(p.policy,x,p.nI,p.C,p,v,p.loader.q0());GP(p.timing);p.policy.S&&p.loader.jA("sabrcrq",{rn:v.Jc(),probe:x.bG()});return v}; uG=function(p,x){if(x.b$()||p.b$())p.policy.jy||(p.policy.C?e7(p.loader):p.loader.Bh());else{if(p.policy.j&&x.isComplete()&&x instanceof ZV){var a=p.loader,v=a.jA,c,J,R=Object.assign(x.rV.rz(),{rst:x.state,strm:x.xhr.Kj(),d:(c=x.rV.F5)==null?void 0:c.E6(),cncl:x.xhr&&x.WE.B?1:0,rqb:x.En,cwt:x.vV,swt:(J=x.VW)==null?void 0:J.vn});c=Object.assign(JCg(x.info),R);v.call(a,"rqs",c)}if(x.isComplete()&&x.bG()&&x instanceof ZV)p.policy.ol?x.SF()?(x.dispose(),p.U.length===0?p.loader.Bh():(p=p.U[0],p instanceof ZV&&p.OH()&&p.QD())):x.h3()&&p.loader.handleError(x.AS(),x.nD()):(x.dispose(),p.loader.Bh());else{if(x.uq())x instanceof ZV&&eTg(p.timing,x),Kr1(p),dnx(p);else if(x.h3())a=p.U7.Jp(),x instanceof ZV&&cCx(x.info)&&a&&p.loader.AY(a),x instanceof Ny?p.U.pop():(a=1,x.canRetry()&&dl(p.loader)&&(bTQ(p,x),a=0),p.loader.handleError(x.AS(),x.nD(),a));else{if(p.loader.isSuspended&&!x.isComplete())return;dnx(p)}x.b$()||x instanceof Ny||(x.isComplete()?a=w01(x,p.policy,p.C):(a=zkI(x,p.policy,p.C),a===1&&(p.LI= !0)),a!==0&&(v=new lG(1,x.info.JX),v.c$=a===2,$n1(p,v)));p.policy.vX&&!x.isComplete()?Rm(p.loader):p.loader.Bh()}}}; dnx=function(p){for(;p.U.length&&p.U[0].Nk(p.Gy());){var x=p.U.shift();rMJ(p,x)}p.U.length&&rMJ(p,p.U[0])}; rMJ=function(p,x){x instanceof ZV&&(p.hG=x);var a=new Set(x.z1(p.Gy()));a=g.k(a);for(var v=a.next();!v.done;v=a.next()){var c=v.value;if(!(v=!(x instanceof Ny))){v=p.j;var J=v.nI.Dp,R=BW(v.videoInfos,J);J=pxz(v,c,J);var d=R.includes(c);!v.Lv.F_||J||d||v.loader.jA("sabrcpf",{fid:""+c,vfids:""+R.join("."),said:v.Y||""});v=J||R.includes(c)}if(v&&(v=x.Yd(c,p.Gy()),R=p.policy.y8&&yB(v[0].U.info.mimeType),x.Vs(c,p.Gy())))for(c=x.GF(c,p.Gy()),c=g.k(c),J=c.next();!J.done;J=c.next())if(J=J.value,p.policy.j&& x instanceof Ny&&p.loader.jA("omblss",{s:J.info.jV()}),R)d=p.timing,d.Zt||(d.Zt=(0,g.WR)(),g.gM("fcb_r",d.Zt,d.U)),d=p,d.videoData.Dp()&&d.V&&O$(d.V)===O$(g.zl(J.info.U.info,d.nI.Dp))&&d.U7.publish("sabrCaptionsDataLoaded",J,d.Ss.bind(d));else{d=J.info.U.info.K3();var b=J.info.U;if(d){var r=void 0;var B=p.j,l=(r=x.vp(p.Gy()))==null?void 0:r.token;B.V&&b!==B.C?r=!0:(B.V=!1,b!==B.C&&(B.C=b,B.Ft(b,B.audioTrack,l)),r=!1);if(r)continue}else r=void 0,Aco(p.j,b,(r=x.vp(p.Gy()))==null?void 0:r.token);r=d? p.audioTrack:p.videoTrack;x instanceof Ny&&(r.V=!1,x instanceof Ny&&(d?GXI(p.timing):Z0Q(p.timing)));try{zz(r,v,J)}catch(L){J=rD(L),p.loader.handleError(J.errorCode,J.details,J.severity),r.Nr(),p.d$(!1,"pushSlice"),e7(p.loader)}}}}; bTQ=function(p,x){p.policy.T?p.U.splice(p.U.indexOf(x)).forEach(function(a){a.dispose()}):(p.U.pop(),x==null||x.dispose())}; BYz=function(p,x,a){for(var v=[],c=0;c0)for(var x=g.k(p.videoData.sabrContextUpdates.keys()),a=x.next();!a.done;a=x.next()){a=a.value;var v=void 0;((v=p.videoData.sabrContextUpdates.get(a))==null?0:v.sendByDefault)&&p.videoData.HO.add(a)}if(p.policy.T&&p.U.length)for(x=g.k(p.U),a=x.next();!a.done;a=x.next())(a=a.value.A4())&&a.type&&a.sendByDefault&&p.videoData.HO.add(a.type)}; lbx=function(p){p.policy.FX&&(p.F5=void 0,p.Wj=0)}; LrJ=function(p,x){if(x.h3()||x.b$()){var a=p.loader,v=a.jA,c=x.state;p=p.Gy();var J,R;if((x=(J=x.P5)==null?void 0:J.get(p))==null)x=void 0;else{J=0;p=x.z1();for(var d=0;d=x.mediaTime&&g.q(p.U7.getPlayerState(),8)?(x.resolve([x.mediaTime,x.id]),p.U.delete(x.id)):(x.delay.dispose(),x.delay=new g.AW(function(){IbU(p,x)},(x.mediaTime-a)*1E3/p.U7.getPlaybackRate()),x.delay.start())}; DnN=function(p,x,a,v){var c=this;this.j=p;this.cpn=x;this.U7=a;this.U=v;this.Z=new Map;this.C=new Map;this.V=this.Y=NaN;this.S=!1;this.kO="";this.isSeeking=!1;this.T=0;this.B=new hi_(a);this.W5=a.W5;this.U7.subscribe("SEEK_TO",function(){c.V5()}); this.U7.subscribe("SEEK_COMPLETE",function(){kVg(c)})}; HTo=function(p,x){if(!p.isSeeking&&p.T!==x&&!isNaN(p.Y)){p.T=x;var a=p.S?p.V:p.j.sN(x);(a!==p.V||p.S)&&Ung(p,a,x)}}; Ung=function(p,x,a){var v=p.Z.get(x),c=p.j.getStartTime(x),J=p.j.getDuration(x);p.S=!1;p.V=x;var R=c,d;((d=v==null?void 0:v.U)!=null?d:[p.cpn]).forEach(function(b,r){var B;r=(B=v==null?void 0:v.Z[r])!=null?B:J;a>=R&&ac?Sg1(p,J,p.Z.get(J)):J===c&&Sg1(p,J,p.Z.get(J),v-p.j.getStartTime(J))})}; TYT=function(p,x,a,v){x!==p.kO&&(p.U7.jA("ssevt",{tag:p.U===0?"sstd-cr":p.U===1?"sstd-tm":p.U===2?"sstd-poll":p.U===3?"sstd-poll100":"sstd-unknown",ad:p.cpn!==x,cpn:x,st:a.toFixed(3),late:Math.round(p.isSeeking?0:(v-a)*1E3)}),p.kO=x)}; fbQ=function(p){var x=g.k(p.split("."));p=x.next().value;x=x.next().value;return[Number(p),x]}; mng=function(p,x,a,v){a=x+"."+a;p.C.has(x)?p.C.get(x).push(a):p.C.set(x,[a]);p.U===1&&MYN(p.B,v,a).then(function(c){var J=g.k(c);c=J.next().value;J=J.next().value;J=g.k(fbQ(J));J.next();J=J.next().value;TYT(p,J,c,jhN(p.B))}); p.U===0&&(p.W5.JW("transitiondetector",a),x=(v+p.U7.Y0())*1E3,p.W5.xN([new g.gZ(x,x+5E3,{id:a,namespace:"transitiondetector",priority:9})]))}; Cqg=function(p,x,a,v,c){this.loader=p;this.policy=x;this.schedule=a;this.eY=v;this.T=c;this.Zt=NaN;this.Z=this.V=this.B=null;this.U=this.C=this.S=this.startTimeSecs=NaN;this.j=!1;this.Y=NaN}; X_x=function(p,x,a,v,c,J){return x.RM&&x.YN&&a===3?new Cqg(p,x,v,c,J):null}; iTf=function(p,x){if(p.policy.Sd){var a=x.info.y6,v=ZG(p.schedule);x=x.index.B9();a=Math.max(1,v/a);p.Y=Math.round(Math.max(((a-1)*x+p.policy.Kp)/a,x-p.policy.pY)*1E3)}}; zi8=function(p,x){var a=Date.now()/1E3,v=a-p.startTimeSecs,c=a-p.S,J=c>=p.policy.BA,R=!1;if(J){var d=0;!isNaN(x)&&x>p.C&&(d=x-p.C,p.C=x);d/c=p.policy.pY&&!p.j;if(!J&&!a&&oh1(p,x))return NaN;a&&(p.j=!0);a:{v=R;a=(0,g.WR)()/1E3-(p.eY.f3()||0)-p.V.U-p.policy.Kp;J=p.Z.startTime;a=J+a;if(v){if(isNaN(x)){VS(p,NaN,"n",x);J=NaN;break a}v=x-p.policy.ZW;v0&&(d.headers=b);J&&(d.onFinish=J);return Object.keys(d).length>1? d:null}; Pqg=function(p,x,a,v,c,J,R,d){ay()&&a.token&&(p=py(p,{ctt:a.token,cttype:a.OJ,mdx_environment:a.mdxEnvironment}));v.D("net_pings_low_priority")&&(x||(x={}),x.priority="low");J||d&&v.D("nwl_skip_retry")?(x==null?x={}:OT1(p,v.D("html5_assert_cpn_with_regex")),R?gU().sendAndWrite(p,x):gU().sendThenWrite(p,x,d)):x?(OT1(p,v.D("html5_assert_cpn_with_regex")),sAJ(p,x)):g.fh(p,c)}; qgQ=function(p){for(var x=[],a=0;a0&&a>0&&!p.Z&&p.j<1E7)try{p.B=p.C({sampleInterval:x,maxBufferSize:a});var v;(v=p.B)==null||v.addEventListener("samplebufferfull",function(){return g.t(function(c){if(c.Z==1)return g.C(c,p.stop(),2);uzf(p);g.k1(c)})})}catch(c){p.Z=eiU(c.message)}}; VYf=function(p,x){var a,v;return!!((a=window.h5vcc)==null?0:(v=a.settings)==null?0:v.set(p,x))}; pw8=function(){var p,x,a,v=(p=window.h5vcc)==null?void 0:(x=p.settings)==null?void 0:(a=x.getPersistentSettingAsString)==null?void 0:a.call(x,"cpu_usage_tracker_intervals");if(v!=null){var c;p=(c=JSON.parse(v))!=null?c:[];c=p.filter(function(r){return r.type==="total"}).map(function(r){return r.seconds}); x=g.k(FrN);for(a=x.next();!a.done;a=x.next())a=a.value,c.indexOf(a)===-1&&p.push({type:"total",seconds:a});var J,R;(J=window.h5vcc)==null||(R=J.settings)==null||R.set("cpu_usage_tracker_intervals_enabled",1);var d,b;(d=window.h5vcc)==null||(b=d.settings)==null||b.set("cpu_usage_tracker_intervals",JSON.stringify(p))}}; xh1=function(){var p=window.H5vccPlatformService,x="";if(p&&p.has("dev.cobalt.coat.clientloginfo")&&(p=p.open("dev.cobalt.coat.clientloginfo",function(){}))){var a=p.send(new ArrayBuffer(0)); a&&(x=String.fromCharCode.apply(String,g.lf(new Uint8Array(a))));p.close()}return x}; g.$T=function(p){g.y.call(this);var x=this;this.provider=p;this.logger=new g.YU("qoe");this.U=new Map;this.sequenceNumber=1;this.pI=NaN;this.Ai="N";this.Y=this.AI=this.mf=this.Zt=this.Z=0;this.G$=this.hG=this.S=this.tG="";this.ol=this.V6=NaN;this.vX=0;this.Kp=-1;this.FX=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.US=this.isEmbargoed=this.F5=this.isOffline=this.isBuffering=!1;this.aA=[];this.T=null;this.oa=this.B=this.T4=this.V=!1;this.j=-1;this.LI=!1;this.RA=new g.AW(this.ge,750,this);this.Ql= this.adCpn=this.u$=this.contentCpn="";this.adFormat=void 0;this.YN=0;this.HO=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Iw=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Zp=!1;this.KW=NaN;this.qT=0;this.OS=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.XV=!1;this.y8=new Set;this.d3={oW:function(v){x.oW(v)}, par:function(){return x.C}, BM:function(){return x.contentCpn}, LwO:function(){return x.u$}, reportStats:function(){x.reportStats()}, mCT:function(){return x.U.get("cat")||[]}, xY:function(v){return x.U.get(v)||[]}, YHT:function(){return x.U}, R$a:function(){return 0}, M6A:function(){return{adCpn:x.adCpn,Ql:x.Ql,adFormat:x.adFormat}}}; this.O7=this.provider.z4.D("html5_qoe_relaxed_reporting");var a=g.e_(this.provider.z4.experiments,"html5_qoe_proto_mock_length");a&&!pe.length&&(pe=qgQ(a));g.Z(this,this.RA);try{navigator.getBattery().then(function(v){x.T=v})}catch(v){}g.xT(this,0,"vps",["N"]); p.z4.qZ()&&(this.qT=(0,g.WR)(),this.KW=g.bF(function(){var v=(0,g.WR)(),c=v-x.qT;c>500&&x.jA("vmlock",{diff:c.toFixed()});x.qT=v},250)); this.provider.videoData.dM&&(this.remoteControlMode=$hg[this.provider.videoData.dM]||0);this.provider.videoData.Gg&&(a=d6_(this.provider.videoData.Gg),a==null?0:a.length)&&(this.remoteConnectedDevices=a);p.z4.qZ()&&(this.Ra=new yMx,g.Z(this,this.Ra));a=g.e_(p.z4.experiments,"html5_js_self_profiler_sample_interval_ms");p=g.e_(p.z4.experiments,"html5_js_self_profiler_max_samples");a>0&&p>0&&(this.gr=new Fi(a,p),g.Z(this,this.gr))}; au=function(p,x,a){var v=p.U.get(x);v?v.push(a):p.U.set(x,[a])}; g.xT=function(p,x,a,v){au(p,a,x.toFixed(3)+":"+v.join(":"))}; aF1=function(p,x){var a=p.adCpn||p.provider.videoData.clientPlaybackNonce,v=p.provider.getCurrentTime(a);g.xT(p,x,"cmt",[v.toFixed(3)]);a=v=p.provider.Sh(a);if((!p.C||p.provider.z4.D("html5_shorts_gapless_no_gllat")&&kh(p.provider.videoData)?0:a*1E3>p.C.hC+100)&&p.C){var c=p.C;a=c.isAd;v=v*1E3-c.hC;p.UC=x*1E3-c.tkt-v-c.Bk7;c=(0,g.WR)()-v;x=p.UC;v=p.provider.videoData;var J=v.isAd();if(a||J){J=(a?"ad":"video")+"_to_"+(J?"ad":"video");var R={};v.S&&(R.cttAuthInfo={token:v.S,videoId:v.videoId});R.startTime= c-x;Dy(J,R);g.k8({targetVideoId:v.videoId,targetCpn:v.clientPlaybackNonce},J);Wa("pbs",c,J)}else c=p.provider.U7.UT(),c.S!==v.clientPlaybackNonce?(c.C=v.clientPlaybackNonce,c.Z=x):v.nT()||g.Hp(new g.gr("CSI timing logged before gllat",{cpn:v.clientPlaybackNonce}));p.jA("gllat",{l:p.UC.toFixed(),prev_ad:+a});delete p.C}}; vv=function(p,x){x=x===void 0?NaN:x;x=x>=0?x:g.sZ(p.provider);var a=p.provider.U7.sI(),v=a.We-(p.V6||0);v>0&&g.xT(p,x,"bwm",[v,(a.YW-(p.ol||0)).toFixed(3)]);isNaN(p.V6)&&a.We&&p.isOffline&&p.oW(!1);p.V6=a.We;p.ol=a.YW;isNaN(a.bandwidthEstimate)||g.xT(p,x,"bwe",[a.bandwidthEstimate.toFixed(0)]);p.provider.z4.qZ()&&Object.keys(a.U).length!==0&&p.jA("bwinfo",a.U);if(p.provider.z4.qZ()||p.provider.z4.D("html5_log_meminfo"))v=w_N(),Object.values(v).some(function(J){return J!==void 0})&&p.jA("meminfo", v); if(p.provider.z4.qZ()){var c;(v=(c=p.Ra)==null?void 0:gho(c))&&Object.values(v).some(function(J){return J!=null})&&p.jA("cpuinfo",v)}p.gr&&p.jA("jsprof",p.gr.flush()); p.T&&g.xT(p,x,"bat",[p.T.level,p.T.charging?"1":"0"]);c=p.provider.U7.getVisibilityState();p.Kp!==c&&(g.xT(p,x,"vis",[c]),p.Kp=c);aF1(p,x);(c=sNo(p.provider))&&c!==p.vX&&(g.xT(p,x,"conn",[c]),p.vX=c);vuN(p,x,a)}; vuN=function(p,x,a){if(!isNaN(a.QK)){var v=a.QK;a.Z96E3&&(new g.AW(p.reportStats,0,p)).start()}}; RPT=function(p){p.provider.videoData.OT&&cv(p,"prefetch");p.provider.videoData.XV&&p.jA("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.XV});p.provider.videoData.T4&&cv(p,"monitor");p.provider.videoData.isLivePlayback&&cv(p,"live");lT&&cv(p,"streaming");p.provider.videoData.dM&&p.jA("ctrl",{mode:p.provider.videoData.dM},!0);if(p.provider.videoData.Gg){var x=p.provider.videoData.Gg.replace(/,/g,"_");p.jA("ytp",{type:x},!0)}p.provider.videoData.cK&&(x=p.provider.videoData.cK.replace(/,/g, "."),p.jA("ytrexp",{ids:x},!0));x=p.provider.videoData;var a=p.provider.z4.D("enable_white_noise")||p.provider.z4.D("enable_webgl_noop"),v=g.tM(x)||g.qn(x)||g.nT(x)||g.eY(x);(a||v)&&(a=(0,g.JG)())&&p.U.set("gpu",[a]);K_(p.provider.videoData)&&g.xT(p,g.sZ(p.provider),"dt",["1"]);x.cotn&&!K_(x)&&p.oW(!0);p.provider.z4.qZ()&&(x=(0,g.WR)()-p.provider.z4.Xq,p.jA("playerage",{secs:Math.pow(1.6,Math.round(Math.log(x/1E3)/Math.log(1.6))).toFixed()}));p.B=!0;p.pI=g.bF(function(){p.reportStats()},1E4)}; dho=function(p,x,a){var v=g.sZ(p.provider);KHx(p,v,x,0,a);vv(p,v);JeJ(p)}; KHx=function(p,x,a,v,c){var J=p.provider.z4.U.cbrver;p.provider.z4.U.cbr==="Chrome"&&/^96[.]/.test(J)&&a==="net.badstatus"&&/rc\.500/.test(c)&&b_8(p,3);p.provider.z4.D("html5_use_ump")&&/b248180278/.test(c)&&b_8(p,4);J=p.provider.getCurrentTime(p.adCpn||p.provider.videoData.clientPlaybackNonce);v=v===1?"fatal":"";a=[a,v,J.toFixed(3)];v&&(c+=";a6s."+Nq());c&&a.push(rex(c));g.xT(p,x,"error",a);p.B=!0}; BzT=function(p,x){var a=g.sZ(p.provider);if(!p.provider.z4.experiments.cO("html5_refactor_sabr_video_format_selection_logging")||x.U.id!==p.tG){var v=[x.U.id,x.Z,p.tG,x.reason];x.token&&v.push(x.token);g.xT(p,a,"vfs",v);p.tG=x.U.id;v=p.provider.U7.getPlayerSize();if(v.width>0&&v.height>0){v=[Math.round(v.width),Math.round(v.height)];var c=g.Lk();c>1&&v.push(c);g.xT(p,a,"view",v)}p.T4||(p.provider.z4.qZ()&&cv(p,"rqs2"),p.provider.videoData.U&&C1(p.provider.videoData.U)&&p.U.set("preload",["1"]));p.T4= !0;p.B=!0}x.reason==="m"&&++p.YN===100&&b_8(p,2);g.xT(p,a,"vps",[p.Ai]);p.O7||p.reportStats(a)}; lFb=function(p){p.j>=0||(p.provider.z4.K1||p.provider.U7.getVisibilityState()!==3?p.j=g.sZ(p.provider):p.LI=!0)}; LH_=function(p,x,a){if(p.provider.z4.experiments.cO("html5_refactor_sabr_audio_format_selection_logging")){x=a.U;var v=[x.audio&&x.video?x.o0?x.o0:"":x.id];x.AX&&x.AX.id&&v.push(x.AX.id);x=v.join(";");x!==p.S&&(v=[x,p.S,a.reason],a.token&&v.push(a.token),g.xT(p,g.sZ(p.provider),"afs",v),p.S=x)}else a.U.id!==p.S&&(v=[a.U.id,p.S,a.reason],a.token&&v.push(a.token),g.xT(p,x,"afs",v),p.S=a.U.id)}; cv=function(p,x){au(p,"cat",x)}; YsN=function(p,x,a,v,c){var J=g.sZ(p.provider);x!==1&&x!==3&&x!==5||g.xT(p,J,"vps",[p.Ai]);au(p,"xvt","t."+J.toFixed(3)+";m."+c.toFixed(3)+";g.2;tt."+x+";np.0;c."+a+";d."+v)}; b_8=function(p,x){p.oa||(au(p,"fcnz",""+x),p.oa=!0)}; rex=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p}; g.Ke=function(p,x,a,v,c,J,R,d,b,r){d=d===void 0?!1:d;g.y.call(this);var B=this;this.U7=p;this.schedule=x;this.policy=a;this.nI=v;this.O7=b;this.y8=r;this.xg=null;this.tG=this.gr=this.V6=this.pI=0;this.ey=this.lF=this.isSuspended=!1;this.HO="";this.Iw={};this.OS=NaN;this.Zp=0;this.Y=null;this.KW=this.hG=!1;this.y3=0;this.T4=!1;this.qT=this.oa=0;this.ol=null;this.IT=function(){return B.U7.IT()}; this.timing=new gog(this.y8);this.T=new Z6(this.schedule,this.policy);this.vX=new g.AW(this.Bh,0,this);this.G$=new g.AW(this.Bh,this.policy.vX,this);this.sC=new g.AW(this.Bh,1E3,this);this.aA=new g.AW(this.Bh,void 0,this);this.Ra=new g.AW(function(){B.isSuspended||B.Bh()},1E4,this); this.Kp=new g.AW(this.Hvt,250,this);this.S=this.currentTime=NaN;this.wq=new CH(5);this.F5=this.timestampOffset=NaN;this.logger=new g.YU("dash");this.RA=Infinity;this.d3={getAudioTrack:function(){return B.audioTrack}, Qb7:function(){return B.videoTrack}, getManifest:function(){return B.nI}, VW$:function(){return B.Z}, Bh:function(){B.Bh()}, Gi:function(){B.pI=0;B.Gi()}, mPg:function(L){return Ru(B,B.videoTrack,B.xg.Z,L)}}; p=b&&b.z1();b&&(oof(b,this.nI,this.policy),this.F5=Date.now());this.U=new c2(this,this.T,a,this.nI,c,p);a=LMQ(this.U,J,R&&R.id);this.audioTrack=new Xh(this,this.policy,a.audio,this.timing);this.videoTrack=new Xh(this,this.policy,a.video,this.timing);this.videoTrack.B.u$=this.audioTrack.YU();this.LI={updateend:this.Jq,error:this.Y7T};g.Z(this,this.vX);g.Z(this,this.G$);g.Z(this,this.sC);g.Z(this,this.aA);g.Z(this,this.Ra);a=this.policy.fN&&this.policy.jX?!fEx(this.videoTrack.U.info):!1;this.FX=SlN({P$:this.policy.V.P$|| a,jX:this.policy.jX&&!a,Ri:this.policy.Ri});this.V=X_x(this,this.policy,this.FX,this.schedule,this.wq,function(L,Y){return hPb(B,L,Y)}); this.j=new Ox(this,this.nI,this.policy,this.videoTrack,this.audioTrack,d);this.policy.Ra&&this.policy.Z&&(this.u$=new ckb(function(L,Y){B.jA(L,Y)})); this.H5=new qa(this,this.nI,this.videoTrack,this.audioTrack,this.policy);d=this.policy.EO?this.U7.getVideoData().qr:null;this.C=new $m(this,this.policy,this.videoTrack,this.audioTrack,this.Iw,this.j,this.timing,this.T,this.schedule,this.nI,this.U,this.V,a,d);g.Z(this,this.C);this.B=new rl(this,this.policy,this.videoTrack,this.audioTrack,this.nI,c,Db(this.U7.getVideoData()),R==null?void 0:R.id);g.Z(this,this.B);unI(this.B,J);this.Z=new p__(this.U7,this,this.policy,this.audioTrack,this.videoTrack,this.nI, this.schedule,this.U,this.B,this.timing,this.j);g.Z(this,this.Z);this.Zt=this.U7.q6.gp.p_;this.policy.C||jNb(this);if(this.policy.tU){var l;this.US=new DnN(this.videoTrack.U.index,(l=this.U7.getVideoData().clientPlaybackNonce)!=null?l:"",this.U7,this.policy.oa);this.policy.oa===3&&(this.XV=new g.AW(this.uo,200,this),this.XV.start(),g.Z(this,this.XV))}this.logger.debug("Created")}; jNb=function(p){var x,a;if((x=p.Zt)==null?0:(a=x.jp)==null?0:a.itagDenylist){var v;p.uS((v=p.Zt)==null?void 0:v.jp.itagDenylist)}var c;if((c=p.Zt)==null?0:c.playbackStartPolicy){var J,R;pl(p.policy,(J=p.Zt)==null?void 0:J.playbackStartPolicy,3,(R=p.Zt)==null?void 0:R.Jc())}if(p.policy.d_){x=p.Gy();var d;(a=x?(d=p.Zt)==null?void 0:d.C5.get(x):void 0)&&p.Z.j6(a)}if(!p.nI.T){var b;d=(b=p.Zt)==null?void 0:b.Rf;(d==null?0:d.h5)&&(d==null?0:d.xt)&&p.nI.Dp&&Ak(p.nI,d.h5,d.xt)}var r;((r=p.Zt)==null?0:r.Pp)&& (b=p.Zt.Pp.get(p.Gy()||""))&&p.nI&&b.formatId&&(p=p.nI.j.get(O$(b.formatId)))&&(p.info.debugInfo=b.debugInfo)}; IFQ=function(p,x){var a=O$(g.zl(x.U.info,p.nI.Dp)),v,c=((v=p.O7)==null?void 0:v.Yd(a))||[];if(c.length===0)return p.jA("ombmsi",{}),!1;c=new aE(c);if(v=!p.policy.Zt||isFinite(p.getCurrentTime())||p.U7.Jp()){a:{v=p.getCurrentTime();c=g.k(c.eA);for(var J=c.next();!J.done;J=c.next())if(J=J.value,J.type===3&&v>=J.C&&v<=J.S){v=!0;break a}v=!1}v=!v}if(v)return p.jA("ostmf",{ct:p.getCurrentTime(),a:x.U.info.K3()}),!1;(p=p.O7)!=null&&(p.tj.get(a).c6=!0);return!0}; M91=function(p){if(!p.nI.Dp)return!0;var x=p.U7.getVideoData();if(p.U7.X4())return p.jA("ombpa",{}),!1;var a,v;if(!!((a=p.Zt)==null?0:(v=a.Rf)==null?0:v.emd)!==p.nI.S3)return p.jA("ombplmm",{}),!1;a=x.Zp||x.liveUtcStartSeconds||x.aA;if(p.nI.S3&&a)return p.jA("ombplst",{}),!1;if(p.nI.T)return p.jA("ombab",{}),!1;a=Date.now();return Pz(p.nI)&&!isNaN(p.F5)&&a-p.F5>p.policy.l1*1E3?(p.jA("ombttl",{}),!1):p.nI.Bm&&p.nI.B||!p.policy.kP&&p.nI.isPremiere||oh(x)!==0&&!p.policy.U||x.D("html5_disable_onesie_media_for_mosaic")&& Je(x)||x.O8()&&!x.D("html5_enable_onesie_media_for_lifa")&&x.isDaiEnabled()&&x.enableServerStitchedDai||x.D("html5_disable_onesie_media_for_lifa_eligible")&&cw(x)?!1:!0}; WHx=function(p,x){var a=x.U,v=p.nI.Dp;if(M91(p))if(p.O7&&p.O7.tj.has(O$(g.zl(a.info,v)))){if(v=O$(g.zl(a.info,v)),IFQ(p,x)){var c=new aE(p.O7.Yd(v)),J=function(R){try{if(R.h3())p.handleError(R.AS(),R.nD()),Al(x,R),vz(R.info)&&cW(p.C,x,a,!0),p.Bh();else if(Jy(p.C,R)){var d;(d=p.j)==null||xGb(d,R.info,p.Y);p.Bh()}}catch(b){R=rD(b),p.handleError(R.errorCode,R.details,R.severity),p.Nr()}}; a.j=!0;sl(c)&&(tl(x,new nI(p.policy,v,c,p.O7,J)),GP(p.timing))}}else p.jA("ombfmt",{})}; kQQ=function(p,x){x=x||p.videoTrack&&p.videoTrack.Z&&p.videoTrack.Z.startTime||p.getCurrentTime();var a=Kl,v=p.videoTrack,c=p.U;x=c.nextVideo&&c.nextVideo.index.sN(x)||0;c.u$!==x&&(c.qT={},c.u$=x,Jl(c,c.U));x=!c.U.isLocked()&&c.T>-1&&(0,g.WR)()-c.Tx.U&&x.reason==="b";v||c||a?(p.U7.Hv({reattachOnConstraint:v?"u":c?"drm":"perf",lo:x.Z,up:x.U}),p.policy.Ac||(p.B.U.Z=!1)):(p.policy.Ac&&(p.B.U.Z=!1),e7(p))}}else if(!YlQ(p.U,x)&&p.videoTrack){p.logger.debug(function(){return"Setting constraint: r="+x.reason+" u="+x.U}); a=p.U.U;fFz(p,jEU(p.U,x));kQQ(p);v=x.isLocked()&&x.reason==="m"&&p.U.pI;c=p.policy.zt&&x.reason==="l"&&q9(p.videoTrack);a=a.U>x.U&&x.reason==="b";var J=p.U.LI&&!$_();v||c||a||J?p.U7.Hv({reattachOnConstraint:v?"u":c?"drm":J?"codec":"perf"}):e7(p)}}; XwI=function(p,x,a){if((!p.xg||vN(p.xg)&&!p.policy.ER)&&!p.H5.isSeeking()&&(p.policy.U||q9(x)&&x.U.C3()&&p.U.Zt)){var v=p.getCurrentTime()+lWU(p.T,x,a);p.logger.debug(function(){return"Clearing back to "+v.toFixed(3)}); IGQ(x,v)}}; fFz=function(p,x){x&&(p.logger.debug(function(){return"Logging new format: "+Gl(x.video.info)}),i_1(p.U7,new FY(x.video,x.reason))); if(p.U.gr){var a=kRx(p.U,"a");p.U7.Fz(new FY(a.audio,a.reason))}}; e7=function(p){g.Pk(p.vX)}; Rm=function(p){p.policy.vX&&p.policy.Ri&&Math.min(jaJ(p.videoTrack),jaJ(p.audioTrack))*1E3>p.policy.Cm?g.Pk(p.G$):p.Bh()}; ou1=function(p,x){var a=(0,g.WR)()-x,v=Gz(p.audioTrack,!0)*1E3,c=Gz(p.videoTrack,!0)*1E3;p.logger.debug(function(){return"Appends paused for "+a}); if(p.policy.j&&(p.jA("apdpe",{dur:a.toFixed(),abuf:v.toFixed(),vbuf:c.toFixed()}),Fh(p.policy))){var J=Na(p.T);p.jA("sdps",{ct:x,ah:v.toFixed(),vh:c.toFixed(),mr:AU(p.T,p.ey,J),bw:J.toFixed(),js:p.isSeeking(),re:+p.ey,ps:(p.policy.Ll||"").toString(),rn:(p.policy.g2||"").toString()})}}; t9g=function(p){if(HH1(p.videoTrack))return p.logger.debug("Pausing appends for server-selectable format"),"ssf";if(p.policy.tG&&uQ(p.videoTrack)&&uQ(p.audioTrack))return"updateEnd";if(P2(p.audioTrack)||P2(p.videoTrack)&&p.videoTrack.U.info.rr!=="f")return"";if(p.H5.isSeeking()){var x=p.T;var a=p.videoTrack;var v=p.audioTrack;if(x.policy.U){var c=x.policy.H$;Fh(x.policy)&&(c=AU(x,!1,Na(x)));x=c;a=Gz(v,!0)>=x&&Gz(a,!0)>=x}else a.j.length||v.j.length?(c=a.U.info.y6+v.U.info.y6,c=10*(1-Na(x)/c),x=Math.max(c, x.policy.H$),a=Gz(v,!0)>=x&&Gz(a,!0)>=x):a=!0;if(!a)return"abr";a=p.videoTrack;if(a.j.length>0&&a.B.Z.length===1&&qlg(a.B).info.Y360);v=Fh(p.policy)&&p.policy.wb;if(!p.ey||!v&&a)return"";a=p.policy.eX;Fh(p.policy)&&(a=AU(p.T,p.ey,Na(p.T)));a=Wg1(p.videoTrack,p.getCurrentTime(),a)||Wg1(p.audioTrack,p.getCurrentTime(), a);return Fh(p.policy)?a?"mbnm":"":(p.videoTrack.j.length>0||p.audioTrack.j.length>0||am(p.C,p.videoTrack,p.audioTrack)||am(p.C,p.audioTrack,p.videoTrack))&&a?"nord":""}; zPI=function(p){if(p.V){var x=p.V.Bh(p.audioTrack,ni(p.xg.Z.rH()));x&&p.U7.seekTo(x,{DL:!0,Cp:"pollSubsegmentReadahead",wK:!0})}}; O__=function(p,x,a){if(p.policy.tG&&uQ(x))return!1;if(a.Ks())return!0;if(!a.K2())return!1;var v=v4(x);if(!v||v.info.type===6)return!1;var c;if(p.policy.Wo||((c=p.j)==null?0:vUJ(c,x,v.info.i$)))p.tG=0;else return p.H5.isSeeking()&&e7(p),p.tG=p.tG||(0,g.WR)(),!1;if(!Ru(p,x,a,v.info))return!1;if(p.nI.Z&&v.info.Z===0){if(c=wwx(x,a,v)){var J=o$(x);p.jA("initchg",{it:v.info.U.info.id,sr:!!J&&J.U===v.info.U,ty:v.info.type,seg:v.info.i$})}J=g.oI(v.info.U.info);p.policy.lc&&J&&!c&&$fT(v)}J=p.V&&!!p.V.B&&x.U.info.audio; c=p.nI.isManifestless||v.C;if(!(p.nI.Z&&v.info.Z!==0||c&&!J)&&EuU(p,x,a,v))return!0;if(J)return!1;J=Fa(p,x);J=p.getCurrentTime()+J;if(v.info.C>J)return p.policy.U&&yeT(p,x),p.policy.C$&&T9Q(x.B,J,!1),!1;gu8(p,x);var R;p.policy.K1&&a===((R=p.xg)==null?void 0:R.U)&&p.T4&&(a.cH()===0?(p.T4=!1,p.policy.K1=!1):p.oa=a.cH());if(!Z_8(p,a,v,x))return!1;p.policy.tG&&v.info.Vf()?(p.U7.L().qZ()&&p.jA("eosl",{ls:v.info.jV()}),v.isLocked=!0):(x.sV(v),WMo(p.U,v.info),p.logger.debug(function(){return"Appended "+ v.info.jV()+", buffered: "+NK(a.rH())})); c&&GQ1(p,v.info.U.Vh);return!0}; yeT=function(p,x){x===p.videoTrack?p.gr=p.gr||(0,g.WR)():p.V6=p.V6||(0,g.WR)()}; gu8=function(p,x){x===p.videoTrack?p.gr=0:p.V6=0}; Z_8=function(p,x,a,v){var c=p.policy.KW?(0,g.WR)():0,J=a.C&&a.info.U.U||void 0,R=a.Z;a.C&&(R=Nz_(p,a,R)||R);var d=s4(R);R=p.policy.KW?(0,g.WR)():0;x=AeU(p,x,d,a.info,J);(v=v.T)!=null&&(J=a.info,c=R-c,R=(0,g.WR)()-R,!v.Z||IcT(v.Z,J)&&v.Z.i$===J.i$||v.flush(),v.B+=c,v.j+=R,c=1,!v.Z&&J.Z&&(c=2),B2(v,c,x),R=Math.ceil(J.Z/1024),c===2&&v.U.add(R),v.U.add(Math.ceil((J.Z+J.j)/1024)-R),v.Z=J);p.qT=0;if(x===0)return p.hG&&(p.logger.debug("Retry succeed, back to normal append logic."),p.hG=!1,p.KW=!1),p.Zp= 0,!0;if(x===2||x===5)return PXQ(p,"checked",x,a.info),!1;if(x===1){if(!p.hG)return p.logger.debug("QuotaExceeded, retrying."),p.hG=!0,!1;if(!p.KW)return p.KW=!0,p.U7.seekTo(p.getCurrentTime(),{Cp:"quotaExceeded",wK:!0}),!1;a.info.hU()?(c=p.policy,c.hG=Math.floor(c.hG*.8),c.O7=Math.floor(c.O7*.8)):(c=p.policy,c.T4=Math.floor(c.T4*.8),c.O7=Math.floor(c.O7*.8));p.policy.U?$y(p.B.U,a.info.U,!1):KR(p.U,a.info.U)}p.U7.Hv({reattachOnAppend:x});return!1}; Nz_=function(p,x,a){var v;if(v=p.policy.Z7&&p.xg&&!p.xg.Y&&!p.U7.Zl())x=x.info.U.info,v=x.Ul()&&m3(x)&&x.video&&x.video.width<3840&&x.video.width>x.video.height;if(v&&(p.xg.Y=!0,Yc('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return a=AkN(a),p.policy.j&&p.jA("sp4k",{s:!!a}),a}; PXQ=function(p,x,a,v){var c="fmt.unplayable",J=1;a===5||a===3?(c="fmt.unparseable",p.policy.U?!v.U.info.video||a$(p.B.U).size>0||$y(p.B.U,v.U,!1):!v.U.info.video||a$(p.U.C).size>0||KR(p.U,v.U)):a===2&&(p.Zp<15?(p.Zp++,c="html5.invalidstate",J=0):c="fmt.unplayable");v=xU(v);var R;v.mrs=(R=p.xg)==null?void 0:Ka(R);v.origin=x;v.reason=a;v.trg="appenderr";p.handleError(c,v,J)}; Kgf=function(p,x,a,v,c){var J=p.nI;var R=p.policy.U,d=!1,b=-1,r;for(r in J.U){var B=yB(J.U[r].info.mimeType)||J.U[r].info.hU();if(v===B)if(B=J.U[r].index,B.ME(x.i$)){d=B;var l=x,L=d.F4(l.i$);L&&L.startTime!==l.startTime?(d.segments=[],d.G2(l),d=!0):d=!1;d?b=x.i$:!x.pending&&R&&(l=B.getDuration(x.i$),l!==x.duration&&(J.publish("clienttemp","mfldurUpdate",{itag:J.U[r].info.itag,seg:x.i$,od:l,nd:x.duration},!1),B.G2(x),d=!0))}else B.G2(x),d=!0}b>=0&&(R={},J.publish("clienttemp","resetMflIndex",(R[v? "v":"a"]=b,R),!1));J=d;fWN(p.H5,x,v,J);if(p.policy.Ra&&p.policy.Z&&(b=x.U8||null)){var Y;R=(Y=p.Z)==null?void 0:Ygb(Y).requestNumber;var h;(h=p.u$)==null||Jk8(h,b,R)}p.j.Cg(x,a,v,c);x.i$===p.nI.Bm&&J&&Z4(p.nI)&&x.startTime>Z4(p.nI)&&(p.nI.u$=x.startTime+(isNaN(p.timestampOffset)?0:p.timestampOffset),p.H5.isSeeking()&&p.H5.targetTime5)return p.qT= 0,p.U7.Hv({initSegStuck:1,as:v.info.jV()}),!0}else p.qT=0,p.ol=v;p.policy.mV&&(a.abort(),(R=x.T)!=null&&(B2(R,4),R.flush()));c=AeU(p,a,J,b,c);var r;(r=x.T)==null||f41(r,c,b);if(c!==0)return qsI(p,c,v),!0;v.info.hU()?A$z(p.timing):P5f(p.timing);p.logger.debug(function(){return"Appended init for "+v.info.U.info.id}); GQ1(p,v.info.U.Vh);return a.ih()}; wwx=function(p,x,a){if(x.wT()==null){p=o$(p);if(!(x=!p||p.U!==a.info.U)){a:if(p=p.T,a=a.info.T,p.length!==a.length)a=!1;else{for(x=0;x1)return 6;R.qT=new g.AW(function(){var d=v4(R);p.b$()||d==null||!d.isLocked?p.U7.L().qZ()&&p.jA("eosl",{delayA:d==null?void 0:d.info.jV()}):nuJ(R)?(p.U7.L().qZ()&&p.jA("eosl",{dunlock:d==null?void 0:d.info.jV()}),ePz(p,R===p.audioTrack)):(p.jA("nue",{ls:d.info.jV()}),d.info.Zt+=1,p.xg&&p.Gi())},1E4,p); p.U7.L().qZ()&&p.jA("eosl",{delayS:v.jV()});R.qT.start()}p.policy.IY&&(v==null?void 0:v.U)instanceof Jk&&v.Vf()&&p.jA("poseos",{itag:v.U.info.itag,seg:v.i$,lseg:v.U.index.Q8(),es:v.U.index.j});x.appendBuffer(a,v,c)}catch(d){if(d instanceof DOMException){if(d.code===11)return 2;if(d.code===12)return 5;if(d.code===22||d.message.indexOf("Not enough storage")===0)return x=Object.assign({name:"QuotaExceededError",buffered:NK(x.rH()).replace(/,/g,"_"),vheap:gV(p.videoTrack),aheap:gV(p.audioTrack),message:g.SV(d.message, 3),track:p.xg?x===p.xg.Z?"v":"a":"u"},w_N()),p.handleError("player.exception",x),1;g.Uq(d)}return 4}return p.xg.TC()?3:0}; sx=function(p,x,a){Uhb(p,a.Cp||"unknown");p.U7.seekTo(x,a)}; GQ1=function(p,x){x&&p.U7.uj(new W2(x.key,x.type))}; H2=function(p,x){p.U7.Sw(x)}; Fa=function(p,x){if(p.policy.Zt&&p.hG&&!p.ey)return p.policy.v0;if(p.hG&&!p.ey)return 3;if(p.isSuspended)return 1;var a;if((a=p.xg)==null?0:a.xg&&a.xg.streaming===!1)return 4;a=(x.U.info.audio?p.policy.T4:p.policy.hG)/(x.y6*p.policy.ys);if(p.policy.Uw>0&&p.xg&&vN(p.xg)&&(x=x.U.info.video?p.xg.Z:p.xg.U)&&!x.ih()){x=x.rH();var v=AD(x,p.getCurrentTime());v>=0&&(x=p.getCurrentTime()-x.start(v),a+=Math.max(0,Math.min(x-p.policy.Uw,p.policy.LC)))}p.policy.O7>0&&(a=Math.min(a,p.policy.O7));return a}; vh1=function(p,x){return(Fa(p,x)+p.policy.nm)*x.y6}; V9T=function(p){p.HO&&!p.isSuspended&&G8(p.schedule)&&(u6x(p,p.HO),p.HO="")}; u6x=function(p,x){g1(x,"cms",function(a){p.policy.j&&p.jA("pathprobe",a)},function(a){p.U7.handleError(a)})}; FHQ=function(p,x){if(p.xg&&p.xg.B&&!p.xg.TC()&&(x.QK=Gz(p.videoTrack),x.Z=Gz(p.audioTrack),p.policy.j)){var a=gV(p.videoTrack),v=gV(p.audioTrack),c=NK(p.xg.Z.rH(),"_",5),J=NK(p.xg.U.rH(),"_",5);Object.assign(x.U,{lvq:a,laq:v,lvb:c,lab:J})}x.bandwidthEstimate=Gm(p.T);var R;(R=p.audioTrack.T)==null||R.flush();var d;(d=p.videoTrack.T)==null||d.flush();p.logger.debug(function(){return Ki(x.U)})}; pyU=function(p,x){p.Y=x;p.j&&(p.j.j=x);p.Y.tA(p.videoTrack.U.info.Ul());p.C.Z=p.Y;p.policy.Z&&(p.Z.Y=p.Y)}; $a_=function(p,x){if(p.xg&&p.xg.Z){if(p.policy.Lm){var a=mDg(p.audioTrack);if(a&&a.K3()){var v=p.U7;if(v.uF&&(v.uF.U=a,a=v.tX,a.qoe)){a=a.qoe;v=v.uF;var c=g.sZ(a.provider);LH_(a,c,v)}}}p.policy.gq&&(a=mDg(p.videoTrack))&&a.hU()&&(v=p.U7,v.DF&&(v.DF.U=a,a=v.tX,a.qoe&&BzT(a.qoe,v.DF)));x-=isNaN(p.timestampOffset)?0:p.timestampOffset;p.getCurrentTime()!==x&&p.resume();p.H5.isSeeking()&&p.xg&&!p.xg.TC()&&(v=p.getCurrentTime()<=x&&x=x&&hPb(p,v.startTime,!1)}); return a&&a.startTimep.getCurrentTime())return a.start/1E3;return Infinity}; RiI=function(p){if(p.U7.getVideoData().isLivePlayback)return!1;var x=p.U7.gV();if(!x)return!1;x=x.getDuration();if(p.xg&&p.xg.U&&p.xg.Z){var a=p.getCurrentTime(),v=p.xg.U.rH();p=p.xg.Z.rH();v=v?qK(v,a):a;a=p?qK(p,a):a;a=Math.min(v,a);x=isNaN(a)?!1:a>=x-.01}else x=!1;return x}; qsI=function(p,x,a){p.policy.gX&&kh(p.U7.getVideoData())?(p.U7.Q3()||PXQ(p,"sepInit",x,a.info),JUN(p.U7,"sie")):PXQ(p,"sepInit",x,a.info)}; dl=function(p){return p.U7.sG()0){var v=a.U.shift();hJU(a,v.info)}a.U.length>0&&(v=a.U[0].time-(0,g.WR)(),a.Z.start(Math.max(0,v)))}},0); g.Z(this,this.Z);x.subscribe("widevine_set_need_key_info",this.B,this)}; hJU=function(p,x){a:{var a=x.cryptoPeriodIndex;if(isNaN(a)&&p.j.size>0)a=!0;else{for(var v=g.k(p.j.values()),c=v.next();!c.done;c=v.next())if(c.value.cryptoPeriodIndex===a){a=!0;break a}a=!1}}p.publish("log_qoe",{wvagt:"reqnews",canskip:a});a||p.publish("rotated_need_key_info_ready",x)}; jmg=function(){var p={};var x=p.url;var a=p.interval;p=p.retries;this.url=x;this.interval=a;this.retries=p}; I71=function(p,x){this.statusCode=p;this.message=x;this.Z=this.heartbeatParams=this.errorMessage=null;this.U={};this.nextFairplayKeyId=null}; M7U=function(p,x,a){a=a===void 0?"":a;g.y.call(this);this.message=p;this.requestNumber=x;this.timer=a;this.onError=this.onSuccess=null;this.U=new g.o2(5E3,2E4,.2)}; Wfx=function(p,x,a){p.onSuccess=x;p.onError=a}; DyT=function(p,x,a,v){var c={timeout:3E4,onSuccess:function(J){if(!p.b$()){Wa("drm_net_r",void 0,p.timer);var R=J.status==="LICENSE_STATUS_OK"?0:9999,d=null;if(J.license)try{d=f$(J.license)}catch(h){g.Uq(h)}if(R!==0||d){d=new I71(R,d);R!==0&&J.reason&&(d.errorMessage=J.reason);if(J.authorizedFormats){R={};for(var b=[],r={},B=g.k(J.authorizedFormats),l=B.next();!l.done;l=B.next())if(l=l.value,l.trackType&&l.keyId){var L=kuf[l.trackType];if(L){L==="HD"&&J.isHd720&&(L="HD720");l.isHdr&&(L+="HDR");R[L]|| (b.push(L),R[L]=!0);var Y=null;try{Y=f$(l.keyId)}catch(h){g.Uq(h)}Y&&(r[g.m2(Y,4)]=L)}}d.Z=b;d.U=r}J.nextFairplayKeyId&&(d.nextFairplayKeyId=J.nextFairplayKeyId);J.sabrLicenseConstraint&&(d.sabrLicenseConstraint=f$(J.sabrLicenseConstraint));J=d}else J=null;if(J)p.onSuccess(J,p.requestNumber);else p.onError(p,"drm.net","t.p;p.i")}}, onError:function(J){if(!p.b$())if(J&&J.error)J=J.error,p.onError(p,"drm.net.badstatus","t.r;p.i;c."+J.code+";s."+J.status,J.code);else p.onError(p,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){p.onError(p,"drm.net","rt.req."+p.requestNumber)}}; v&&(c.J1="Bearer "+v);g.OL(a,"player/get_drm_license",x,c)}; Uy1=function(p,x,a,v){g.Fx.call(this);this.videoData=p;this.z4=x;this.Y=a;this.sessionId=v;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Zt=this.pI=!1;this.j=null;this.O7=[];this.B=[];this.authorizedFormats=[];this.V=!1;this.U={};this.status="";this.S=NaN;this.Z=p.C;this.cryptoPeriodIndex=a.cryptoPeriodIndex;p={};Object.assign(p,this.z4.U);p.cpn=this.videoData.clientPlaybackNonce;this.videoData.F5&&(p.vvt=this.videoData.F5,this.videoData.mdxEnvironment&&(p.mdx_environment= this.videoData.mdxEnvironment));this.z4.O7&&(p.authuser=this.z4.O7);this.z4.pageId&&(p.pageid=this.z4.pageId);isNaN(this.cryptoPeriodIndex)||(p.cpi=this.cryptoPeriodIndex.toString());var c=(c=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ez()))?c[1]:"";c==="ATV"&&(p.cdt=c);this.C=p;this.C.session_id=v;this.T=!0;this.Z.flavor==="widevine"&&(this.C.hdr="1");this.Z.flavor==="playready"&&(x=Number(LH(x.experiments,"playready_first_play_expiration")),!isNaN(x)&&x>=0&&(this.C.mfpe=""+x),this.T=!1);x="";g.c0(this.Z)? v0(this.Z)?(v=a.Z)&&(x="https://www.youtube.com/api/drm/fps?ek="+D3J(v)):(x=a.initData.subarray(4),x=new Uint16Array(x.buffer,x.byteOffset,x.byteLength/2),x=String.fromCharCode.apply(null,x).replace("skd://","https://")):x=this.Z.Z;this.baseUrl=x;this.fairplayKeyId=Dz(this.baseUrl,"ek")||"";if(x=Dz(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(x);this.O7=a.Ul?[g.m2(a.initData,4)]:a.j;lS(this,{sessioninit:a.cryptoPeriodIndex});this.status="in"}; myN=function(p,x){lS(p,{createkeysession:1});p.status="gr";Wa("drm_gk_s",void 0,p.videoData.Zt);p.url=Hl8(p);try{p.j=x.createSession(p.Y,function(a){lS(p,{m:a})})}catch(a){x="t.g"; a instanceof DOMException&&(x+=";c."+a.code);p.publish("licenseerror","drm.unavailable",1,x,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}p.j&&(TlT(p.j,function(a,v){QmN(p,a,v)},function(a,v,c){if(!p.b$()){v=void 0; var J=1;g.c0(p.Z)&&g.$O(p.z4)&&p.z4.D("html5_enable_safari_fairplay")&&c===1212433232&&(v="ERROR_HDCP",J=p.z4.D("html5_safari_fairplay_ignore_hdcp")?0:J);p.error("drm.keyerror",J,a,v)}},function(){p.b$()||(lS(p,{onkyadd:1}),p.Zt||(p.publish("sessionready"),p.Zt=!0))},function(a){p.Uv(a)}),g.Z(p,p.j))}; Hl8=function(p){var x=p.baseUrl;j1T(x)||p.error("drm.net",2,"t.x");if(!Dz(x,"fexp")){var a=["23898307","23914062","23916106","23883098"].filter(function(c){return p.z4.experiments.experiments[c]}); a.length>0&&(p.C.fexp=a.join())}a=g.k(Object.keys(p.C));for(var v=a.next();!v.done;v=a.next())v=v.value,x=NIb(x,v,p.C[v]);return x}; QmN=function(p,x,a){if(!p.b$())if(x){lS(p,{onkmtyp:a});p.status="km";switch(a){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Srx(p,x);return;default:p.publish("ctmp","message_type",{t:a,l:x.byteLength})}p.pI||(Wa("drm_gk_f",void 0,p.videoData.Zt),p.pI=!0,p.publish("newsession",p));if($A(p.Z)&&(x=f7f(x),!x))return;x=new M7U(x,++p.requestNumber,p.videoData.Zt);Wfx(x,function(v){CG1(p,v)},function(v,c,J){if(!p.b$()){var R=0; v.U.Z>=3&&(R=1,c="drm.net.retryexhausted");lS(p,{onlcsrqerr:c,info:J});p.error(c,R,J);p.shouldRetry(bh(R),v)&&XWb(p,v)}}); g.Z(p,x);ilT(p,x)}else p.error("drm.unavailable",1,"km.empty")}; Srx=function(p,x){lS(p,{sdpvrq:1});p.S=Date.now();if(p.Z.flavor!=="widevine")p.error("drm.provision",1,"e.flavor;f."+p.Z.flavor+";l."+x.byteLength);else{var a={cpn:p.videoData.clientPlaybackNonce};Object.assign(a,p.z4.U);a=g.jL("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",a);x={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, x)}),responseType:"arraybuffer"};g.Ui(a,x,3,500).then(Ew(function(v){v=v.xhr;if(!p.b$()){v=new Uint8Array(v.response);var c=String.fromCharCode.apply(null,v);try{var J=JSON.parse(c)}catch(R){}J&&J.signedResponse?(p.publish("ctmp","drminfo",{provisioning:1}),J=(Date.now()-p.S)/1E3,p.S=NaN,p.publish("ctmp","provs",{et:J.toFixed(3)}),p.j&&p.j.update(v)):(J=J&&J.error&&J.error.message,v="e.parse",J&&(v+=";m."+J),p.error("drm.provision",1,v))}}),Ew(function(v){p.b$()||p.error("drm.provision",1,"e."+v.errorCode+ ";c."+(v.xhr&&v.xhr.status))}))}}; Le=function(p){var x;if(x=p.T&&p.j!=null)p=p.j,x=!(!p.U||!p.U.keyStatuses);return x}; ilT=function(p,x){p.status="km";Wa("drm_net_s",void 0,p.videoData.Zt);var a=new g.GI(p.z4.L0),v={context:g.cA(a.config_||g.sL())};v.drmSystem=omN[p.Z.flavor];v.videoId=p.videoData.videoId;v.cpn=p.videoData.clientPlaybackNonce;v.sessionId=p.sessionId;v.licenseRequest=g.m2(x.message);v.drmParams=p.videoData.drmParams;isNaN(p.cryptoPeriodIndex)||(v.isKeyRotated=!0,v.cryptoPeriodIndex=p.cryptoPeriodIndex);var c,J,R=!!((c=p.videoData.Z)==null?0:(J=c.video)==null?0:J.isHdr());v.drmVideoFeature=R?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(v.context&&v.context.client){if(c=p.z4.U)v.context.client.deviceMake=c.cbrand,v.context.client.deviceModel=c.cmodel,v.context.client.browserName=c.cbr,v.context.client.browserVersion=c.cbrver,v.context.client.osName=c.cos,v.context.client.osVersion=c.cosver;v.context.user=v.context.user||{};v.context.request=v.context.request||{};p.videoData.F5&&(v.context.user.credentialTransferTokens=[{token:p.videoData.F5,scope:"VIDEO"}]);v.context.request.mdxEnvironment=p.videoData.mdxEnvironment|| v.context.request.mdxEnvironment;p.videoData.FX&&(v.context.user.kidsParent={oauthToken:p.videoData.FX});g.c0(p.Z)&&(v.fairplayKeyId=g.m2(U3U(p.fairplayKeyId)));g.Hx(p.z4,g.vw(p.videoData)).then(function(d){DyT(x,v,a,d);p.status="rs"})}else p.error("drm.net",2,"t.r;ic.0")}; CG1=function(p,x){if(!p.b$())if(lS(p,{onlcsrsp:1}),p.status="rr",x.statusCode!==0)p.error("drm.auth",1,"t.f;c."+x.statusCode,x.errorMessage||void 0);else{Wa("drm_kr_s",void 0,p.videoData.Zt);if(x.heartbeatParams&&x.heartbeatParams.url&&p.videoData.D("outertube_streaming_data_always_use_staging_license_service")){var a=p.Z.Z.match(/(.*)youtube.com/g);a&&(x.heartbeatParams.url=a[0]+x.heartbeatParams.url)}x.heartbeatParams&&p.publish("newlicense",x.heartbeatParams);x.Z&&(p.B=x.Z,p.videoData.Yj||p.publish("newlicense", new jmg),p.videoData.Yj=!0,p.V=OT(p.B,function(v){return v.includes("HDR")})); x.U&&(p.z4.D("html5_enable_vp9_fairplay")&&v0(p.Z)?(a=g.m2(U3U(p.fairplayKeyId),4),p.U[a]={type:x.U[a],status:"unknown"}):p.U=xr(x.U,function(v){return{type:v,status:"unknown"}})); sd(p.Z)&&(x.message=GI8(g.m2(x.message)));p.j&&(lS(p,{updtks:1}),p.status="ku",p.j.update(x.message).then(function(){Wa("drm_kr_f",void 0,p.videoData.Zt);Le(p)||(lS(p,{ksApiUnsup:1}),p.publish("keystatuseschange",p))},function(v){v="msuf.req."+p.requestNumber+";msg."+g.SV(v.message,3); p.error("drm.keyerror",1,v)})); g.c0(p.Z)&&p.publish("fairplay_next_need_key_info",p.baseUrl,x.nextFairplayKeyId);p.z4.D("html5_enable_vp9_fairplay")&&v0(p.Z)&&p.publish("qualitychange",t7x(p.B));x.sabrLicenseConstraint&&p.publish("sabrlicenseconstraint",x.sabrLicenseConstraint)}}; XWb=function(p,x){var a=x.U.getValue();a=new g.AW(function(){ilT(p,x)},a); g.Z(p,a);a.start();g.tB(x.U);lS(p,{rtyrq:1})}; zJ1=function(p,x){for(var a=[],v=g.k(Object.keys(p.U)),c=v.next();!c.done;c=v.next())c=c.value,a.push(c+"_"+p.U[c].type+"_"+p.U[c].status);return a.join(x)}; wWb=function(p){var x={};x[p.status]=Le(p)?zJ1(p,"."):p.B.join(".");return x}; Emf=function(p,x,a){var v={};v.isHdr=x.includes("HDR");switch(x.replace("HDR","").replace("720","")){case "AUDIO":v.trackType=1;break;case "SD":v.trackType=2;break;case "HD":v.trackType=3;break;case "UHD1":v.trackType=4;break;case "UHD2":v.trackType=5;break;default:v.trackType=0}!v.trackType||a[x]||Le(p)&&!hG(p,x)||(p.authorizedFormats.push(v),a[x]=!0)}; hG=function(p,x){for(var a in p.U)if(p.U[a].status==="usable"&&p.U[a].type===x)return!0;return!1}; yyf=function(p,x){for(var a in p.U)if(p.U[a].type===x)return p.U[a].status}; lS=function(p,x){var a=a===void 0?!1:a;Ki(x);(a||p.z4.qZ())&&p.publish("ctmp","drmlog",x)}; gm1=function(p){var x=p[0];p[0]=p[3];p[3]=x;x=p[1];p[1]=p[2];p[2]=x;x=p[4];p[4]=p[5];p[5]=x;x=p[6];p[6]=p[7];p[7]=x}; t7x=function(p){return g.kt(p,"UHD2")||g.kt(p,"UHD2HDR")?"highres":g.kt(p,"UHD1")||g.kt(p,"UHD1HDR")?"hd2160":g.kt(p,"HD")||g.kt(p,"HDHDR")?"hd1080":g.kt(p,"HD720")||g.kt(p,"HD720HDR")?"hd720":"large"}; f7f=function(p){for(var x="",a=0;a'.charCodeAt(v);p=p.j.createSession("video/mp4",x,a);return new jW(null,null,null,null,p)}; nmg=function(p,x){var a=p.S[x.sessionId];!a&&p.B&&(a=p.B,p.B=null,a.sessionId=x.sessionId,p.S[x.sessionId]=a);return a}; Ayo=function(p,x){var a=p.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);a=String.fromCharCode.apply(null,a).match(/ek=([0-9a-f]+)/)[1];for(var v="",c=0;c19.2999?(p=a.Bo,a=a.Ow,a>=p&&(a=p* .75),x=(p-a)*.5,a=new r7(x,p,p-x-a,this)):a=null;break a;case "widevine":a=new Bv(x,this,p);break a;default:a=null}if(this.C=a)g.Z(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.Z8,this),this.C.subscribe("log_qoe",this.JZ,this);Ra(this.z4.experiments);this.JZ({cks:this.U.getInfo()})}; uib=function(p){var x=Nlg(p.B);x?x.then(Ew(function(){Ff8(p)}),Ew(function(a){if(!p.b$()){g.Uq(a); var v="t.a";a instanceof DOMException&&(v+=";n."+a.name+";m."+a.message);p.publish("licenseerror","drm.unavailable",1,v,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(p.JZ({mdkrdy:1}),p.T=!0); p.Zt&&(x=Nlg(p.Zt))}; xrU=function(p,x,a){p.V6=!0;a=new W2(x,a);p.z4.D("html5_eme_loader_sync")&&(p.S.get(x)||p.S.set(x,a));pvz(p,a)}; pvz=function(p,x){if(!p.b$()){p.JZ({onInitData:1});if(p.z4.D("html5_eme_loader_sync")&&p.videoData.j&&p.videoData.j.U){var a=p.V.get(x.initData);x=p.S.get(x.initData);if(!a||!x)return;x=a;a=x.initData;p.S.remove(a);p.V.remove(a)}p.JZ({initd:x.initData.length,ct:x.contentType});if(p.U.flavor==="widevine")if(p.F5&&!p.videoData.isLivePlayback)Wv(p);else{if(!(p.z4.D("vp9_drm_live")&&p.videoData.isLivePlayback&&x.Ul)){p.F5=!0;a=x.cryptoPeriodIndex;var v=x.U;gU_(x);x.Ul||(v&&x.U!==v?p.publish("ctmp","cpsmm", {emsg:v,pssh:x.U}):a&&x.cryptoPeriodIndex!==a&&p.publish("ctmp","cpimm",{emsg:a,pssh:x.cryptoPeriodIndex}));p.publish("widevine_set_need_key_info",x)}}else p.Z8(x)}}; Ff8=function(p){if(!p.b$())if(p.z4.D("html5_drm_set_server_cert")||v0(p.U)){var x=p.B.setServerCertificate();x?x.then(Ew(function(a){p.z4.qZ()&&p.publish("ctmp","ssc",{success:a})}),Ew(function(a){p.publish("ctmp","ssce",{n:a.name, m:a.message})})).then(Ew(function(){$rN(p)})):$rN(p)}else $rN(p)}; $rN=function(p){p.b$()||(p.T=!0,p.JZ({onmdkrdy:1}),Wv(p))}; aIo=function(p){return p.U.flavor==="widevine"&&p.videoData.D("html5_drm_cpi_license_key")}; Wv=function(p){if(p.V6&&p.T&&!p.u$){for(;p.j.length;){var x=p.j[0],a=aIo(p)?ZAg(x):g.m2(x.initData);if(v0(p.U)&&!x.Z)p.j.shift();else{if(p.Z.get(a))if(p.U.flavor!=="fairplay"||v0(p.U)){p.j.shift();continue}else p.Z.delete(a);gU_(x);break}}p.j.length&&p.createSession(p.j[0])}}; su8=function(p){var x,a;g.t(function(v){if(v.Z==1){var c;if(c=g.yl()){var J;c=!((J=p.B.Z)==null||!J.getMetrics)}return c?g.C(v,p.B.getMetrics(),2):v.return()}x=v.U;if(!x)return v.return();uN(x)||(x=g.dh(x));a=/^[A-Za-z0-9_-]+={0,3}$/;a.test(x)||(x=g.SV(x,void 0,!0));p.publish("ctmp","drm",{metrics:x});g.k1(v)})}; vTo=function(){var p=o5Q();return!(!p||p==="visible")}; JGf=function(p){var x=cGN();x&&document.addEventListener(x,p,!1)}; R0z=function(p){var x=cGN();x&&document.removeEventListener(x,p,!1)}; cGN=function(){if(document.visibilityState)var p="visibilitychange";else{if(!document[KP+"VisibilityState"])return"";p=KP+"visibilitychange"}return p}; KGU=function(p){g.y.call(this);var x=this;this.U7=p;this.gL=0;this.S=this.Z=this.C=!1;this.B=0;this.JG=this.U7.L();this.videoData=this.U7.getVideoData();this.j=g.e_(this.JG.experiments,"html5_delayed_retry_count");this.U=new g.AW(function(){x.U7.Zu()},g.e_(this.JG.experiments,"html5_delayed_retry_delay_ms")); g.Z(this,this.U)}; lI1=function(p,x,a){var v=p.videoData.Z,c=p.videoData.B,J=p.JG.D("html5_disable_codec_fallback_for_drm")&&p.videoData.Sg();kh(p.U7.getVideoData())&&p.JG.D("html5_gapless_fallback_on_qoe_restart")&&JUN(p.U7,"pe");if((x==="progressive.net.retryexhausted"||x==="fmt.unplayable"||x==="fmt.decode")&&!p.U7.lf.C&&v&&v.itag==="22")return p.U7.lf.C=!0,p.zn("qoe.restart",{reason:"fmt.unplayable.22"}),p.U7.xa(),!0;var R=!1;if(p.videoData.isExternallyHostedPodcast){if(R=p.videoData.iG6)a.mimeType=R.type,p.jA("3pp", {url:R.url});a.ns="3pp";p.U7.jk(x,1,"VIDEO_UNAVAILABLE",Ki((new g.dD(x,a,1)).details));return!0}var d=p.gL+3E4<(0,g.WR)()||p.U.isActive();if(p.JG.D("html5_empty_src")&&p.videoData.isAd()&&x==="fmt.unplayable"&&/Empty src/.test(""+a.msg))return a.origin="emptysrc",p.zn("auth",a),!0;d||drN(p.U7.Fx())||(a.nonfg="paused",d=!0,p.U7.pauseVideo());(x==="fmt.decode"||x==="fmt.unplayable")&&(c==null?0:XN(c)||ih(c))&&($5_(p.JG.C,c.rr),a.acfallexp=c.rr,R=d=!0);!d&&p.j>0&&(p.U.start(),d=!0,a.delayed="1",--p.j); c=p.U7.loader;d||!((v==null?0:Ci(v))||(v==null?0:m3(v)))||J||($5_(p.JG.C,v.rr),R=d=!0,a.cfallexp=v.rr);if(!d)return be_(p,a);J=!1;p.C?p.gL=(0,g.WR)():J=p.C=!0;d=p.videoData;if(d.LI){d=d.LI.Tf();var b=Date.now()/1E3+1800;d=d6048E5&&jux(p,"signature");return!1}; jux=function(p,x){try{x={detail:"pr."+x},g.lm(p.JG)&&p.JG.D("html5_reload_by_kabuki_app")?p.U7.jk("qoe.restart",1,void 0,Ki(x),"7"):(p.zn("qoe.restart",x),window.location.reload())}catch(a){}}; MWQ=function(p,x){var a=p.JG.C;a.V=!1;a.Z=!0;p.zn("qoe.restart",{e:x===void 0?"fmt.noneavailable":x,detail:"hdr"});p.U7.Zu(!0)}; WGT=function(p,x,a,v,c,J){this.videoData=p;this.U=x;this.reason=a;this.Z=v;this.token=c;this.videoId=J}; kT=function(p,x,a){this.z4=p;this.J0=x;this.U7=a;this.Y=this.S=this.U=this.B=this.V=this.Z=0;this.C=!1;this.T=g.e_(this.z4.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.j=new Map}; kxg=function(p,x,a){!p.z4.D("html5_tv_ignore_capable_constraint")&&g.dZ(p.z4)&&(a=a.compose(p.u_(x)));return a}; Dro=function(p){if(p.U7.Fx().isInline())return dY;var x;p.D("html5_exponential_memory_for_sticky")?x=Od(p.z4.MN,"sticky-lifetime")<.5?"auto":TT[r9()]:x=TT[r9()];return g.DW("auto",x,!1,"s")}; HeI=function(p,x){var a,v=UrQ(p,(a=x.U)==null?void 0:a.videoInfos);a=p.U7.getPlaybackRate();return a>1&&v?(p=VAx(p.z4.C,x.U.videoInfos,a),new k9(0,p,!0,"o")):new k9(0,0,!1,"o")}; UrQ=function(p,x){return x&&g.dZ(p.z4)?x.some(function(a){return a.video.fps>32}):!1}; T71=function(p,x){if(p.D("html5_disable_ustreamer_constraint_for_sabr")&&TV(x.videoData))return dY;var a=p.U7.Dl();p.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&a&&a.Q2>0&&HX(x.videoData.EO)&&(p=a.Q2,x.videoData.EO=new k9(0,p,!1,"u"));return x.videoData.EO}; Qub=function(p,x){var a;a:if((a=x.U)&&a.videoInfos.length){for(var v=g.k(a.videoInfos),c=v.next();!c.done;c=v.next()){c=c.value;var J=void 0;if((J=c.Z)==null?0:J.smooth){a=c.video.qualityOrdinal;break a}}a=a.videoInfos[0].video.qualityOrdinal}else a=0;Y38()&&!g.dZ(p.z4)&&m3(x.U.videoInfos[0])&&(a=Math.min(a,g.kc.large));v=g.e_(p.z4.experiments,"html5_chipset_soft_cap");v>0&&(a=Math.min(a,v));if(v=g.e_(p.z4.experiments,"html5_max_vertical_resolution")){c=4320;for(J=0;Jv&&(c=Math.min(c,R.video.qualityOrdinal))}if(c<4320){for(R=J=0;R32){c=!0;break a}}c=!1}c&&(a=Math.min(a,v));(v=g.e_(p.z4.experiments,"html5_live_quality_cap"))&&x.videoData.isLivePlayback&&(a=Math.min(a,v));a=mrb(p,x,a);p=g.e_(p.z4.experiments,"html5_byterate_soft_cap");return new k9(0,a===4320?0:a,!1,"d",p)}; fIU=function(p){var x,a,v,c;return g.t(function(J){switch(J.Z){case 1:return p.U.U&&typeof((x=navigator.mediaCapabilities)==null?void 0:x.decodingInfo)==="function"?g.C(J,Promise.resolve(),2):J.return(Promise.resolve());case 2:a=g.k(p.U.videoInfos),v=a.next();case 3:if(v.done){J.Ia(0);break}c=v.value;return g.C(J,iV1(c),4);case 4:v=a.next(),J.Ia(3)}})}; XvN=function(p,x){if(!x.videoData.Z||p.D("html5_disable_performance_downgrade"))return!1;Date.now()-p.V>6E4&&(p.Z=0);p.Z++;p.V=Date.now();if(p.Z!==4)return!1;CSb(p,x.videoData.Z);return!0}; oTb=function(p,x,a,v){if(!x||!a||!x.videoData.Z)return!1;var c=g.e_(p.z4.experiments,"html5_df_downgrade_thresh"),J=p.D("html5_log_media_perf_info");if(!((0,g.WR)()-p.B<5E3?0:J||c>0))return!1;var R=((0,g.WR)()-p.B)/1E3;p.B=(0,g.WR)();a=a.getVideoPlaybackQuality();if(!a)return!1;var d=a.droppedVideoFrames-p.S,b=a.totalVideoFrames-p.Y;p.S=a.droppedVideoFrames;p.Y=a.totalVideoFrames;var r=a.displayCompositedVideoFrames===0?0:a.displayCompositedVideoFrames||-1;J&&p.z4.qZ()&&p.U7.jA("ddf",{dr:a.droppedVideoFrames, de:a.totalVideoFrames,comp:r});if(v)return p.U=0,!1;if((b-d)/R>p.T||!c||g.dZ(p.z4))return!1;p.U=(b>60?d/b:0)>c?p.U+1:0;if(p.U!==3)return!1;CSb(p,x.videoData.Z);p.U7.jA("dfd",Object.assign({dr:a.droppedVideoFrames,de:a.totalVideoFrames},iez()));return!0}; CSb=function(p,x){var a=x.rr,v=x.video.fps,c=x.video.qualityOrdinal-1,J=p.j;x=""+a+(v>49?"p60":v>32?"p48":"");a=u4(a,v,J);c>0&&(a=Math.min(a,c));if(!DI.has(x)&&L1().includes(x)){var R=a;a=lH();+a[x]>0&&(R=Math.min(+a[x],R));a[x]!==R&&(a[x]=R,g.Qe("yt-player-performance-cap",a,2592E3))}else if(DI.has(x)||J==null){a:{R=R===void 0?!0:R;v=L1().slice();if(R){if(v.includes(x))break a;v.push(x)}else{if(!v.includes(x))break a;v.splice(v.indexOf(x),1)}g.Qe("yt-player-performance-cap-active-set",v,2592E3)}eB.set(x, a)}else DI.add(x),J==null||J.set(x,a);p.U7.dK()}; tWQ=function(p,x){if(!x.U.U)return p.C?new k9(0,360,!1,"b"):dY;for(var a=!1,v=!1,c=g.k(x.U.videoInfos),J=c.next();!J.done;J=c.next())Ci(J.value)?a=!0:v=!0;a=a&&v;v=0;c=g.e_(p.z4.experiments,"html5_performance_cap_floor");c=p.z4.Z?240:c;x=g.k(x.U.videoInfos);for(J=x.next();!J.done;J=x.next()){var R=J.value;if(!a||!Ci(R))if(J=u4(R.rr,R.video.fps,p.j),R=R.video.qualityOrdinal,Math.max(J,c)>=R){v=R;break}}return new k9(0,v,!1,"b")}; z0z=function(p,x){var a=p.U7.Fx();return a.isInline()&&!x.l1?new k9(0,480,!1,"v"):TV(x)?dY:a.isBackground()&&hJ()/1E3>60&&!g.dZ(p.z4)?new k9(0,360,!1,"v"):dY}; wvg=function(p,x,a){if(p.z4.experiments.cO("html5_disable_client_autonav_cap_for_onesie")&&x.fetchType==="onesie"||g.dZ(p.z4)&&(r9(-1)>=1080||x.osid))return dY;var v=g.e_(p.z4.experiments,"html5_autonav_quality_cap"),c=g.e_(p.z4.experiments,"html5_autonav_cap_idle_secs");return v&&x.isAutonav&&hJ()/1E3>c?(a&&(v=mrb(p,a,v)),new k9(0,v,!1,"e")):dY}; mrb=function(p,x,a){if(p.D("html5_optimality_defaults_chooses_next_higher")&&a)for(p=x.U.videoInfos,x=1;x=0||(p.provider.U7.getVisibilityState()===3?p.C=!0:(p.U=g.sZ(p.provider),p.delay.start()))}; gT8=function(p){if(!(p.Z<0)){var x=g.sZ(p.provider),a=x-p.B;p.B=x;p.playerState.state===8?p.playTimeSecs+=a:p.playerState.isBuffering()&&!g.q(p.playerState,16)&&(p.rebufferTimeSecs+=a)}}; ZeQ=function(p){var x;switch((x=p.z4.playerCanaryStage)==null?void 0:x.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"}}; GxU=function(p){this.provider=p;this.V=!1;this.U=0;this.B=-1;this.TX=NaN;this.j=0;this.segments=[];this.S=this.C=0;this.previouslyEnded=!1;this.T=this.provider.U7.getVolume();this.Y=this.provider.U7.isMuted()?1:0;this.Z=Hv(this.provider)}; Tx=function(p){p.Z.startTime=p.j;p.Z.endTime=p.U;var x=!1;p.segments.length&&g.hO(p.segments).isEmpty()?(p.segments[p.segments.length-1].previouslyEnded&&(p.Z.previouslyEnded=!0),p.segments[p.segments.length-1]=p.Z,x=!0):p.segments.length&&p.Z.isEmpty()||(p.segments.push(p.Z),x=!0);x?p.Z.endTime===0&&(p.previouslyEnded=!1):p.Z.previouslyEnded&&(p.previouslyEnded=!0);p.C+=p.U-p.j;p.Z=Hv(p.provider);p.Z.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.j=p.U}; N7x=function(p){Oez(p);p.S=g.bF(function(){p.update()},100); p.TX=g.sZ(p.provider);p.Z=Hv(p.provider)}; Oez=function(p){g.BZ(p.S);p.S=NaN}; AGg=function(p,x,a){a-=p.TX;return x===p.U&&a>.5}; PS1=function(p,x,a,v){this.z4=x;this.G$=a;this.segments=[];this.experimentIds=[];this.LI=this.KW=this.isFinal=this.delayThresholdMet=this.OS=this.Kp=this.autoplay=this.autonav=!1;this.vX="yt";this.S=[];this.V=this.T=null;this.sendVisitorIdHeader=this.Ra=!1;this.Y=this.pageId="";this.C=a==="watchtime";this.j=a==="playback";this.u$=a==="atr";this.L3=a==="engage";this.sendVisitorIdHeader=!1;this.uri=this.u$?"/api/stats/"+a:"//"+x.ER+"/api/stats/"+a;v&&(this.KW=v.fs,v.rtn&&(this.V=v.rtn),this.C?(this.playerState= v.state,v.rti>0&&(this.T=v.rti)):(this.Xq=v.mos,this.FM=v.volume,v.at&&(this.adType=v.at)),v.autonav&&(this.autonav=v.autonav),v.inview!=null&&(this.FX=v.inview),v.size&&(this.ol=v.size),v.playerwidth&&(this.MN=v.playerwidth),v.playerheight&&(this.ow=v.playerheight));this.Iw=g.hp(x.U);this.Y=LH(x.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.XV=g.hp(x.OS);this.tU=x.vX;this.experimentIds=qez(x.experiments);this.gr=x.y8;this.vX=x.Zt;this.region=x.region; this.userAge=x.userAge;this.T4=x.dh;this.aA=hJ();this.sendVisitorIdHeader=x.sendVisitorIdHeader;this.F5=x.D("vss_pings_using_networkless")||x.D("kevlar_woffle");this.Y_=x.D("vss_final_ping_send_and_write");this.qT=x.D("vss_use_send_and_write");this.pageId=x.pageId;this.x_=x.D("vss_playback_use_send_and_write");x.livingRoomAppMode&&(this.livingRoomAppMode=x.livingRoomAppMode);this.K1=x.B&&x.D("embeds_append_synth_ch_headers");g.nH(x)&&(this.V6=x.u$);g.vb(g.sF(x))&&this.S.push(1);this.accessToken=g.vw(p); p.ys[this.G$]?this.B=p.ys[this.G$]:p.ys.playback&&(this.B=p.ys.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=AmU(p);this.j&&(this.Kp=p.Cq&&p_(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=$u(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.OS=p.fp;p.S&&(this.pI=p.S,this.Zp=p.LJ);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment);this.U=p.Iw;this.US=p.US;p.Z&&(this.y8=p.Z.itag,p.B&&p.B.itag!==this.y8&&(this.oa=p.B.itag));p.U&& C1(p.U)&&(this.offlineDownloadUserChoice="1");this.eventLabel=p_(p);this.LI=p.x_?!1:p.FM;this.YN=p.JK;if(x=gY(p))this.zC=x;this.lc=p.IY;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.QS||p.playlistId;this.ZL=p.ZL;this.dM=p.dM;this.Gg=p.Gg;this.s$=p.s$;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid;this.JV=p.JV;this.referrer=p.referrer;this.d_=p.N7||p.d_;this.HO=p.mV;this.Ry=p.Ry;this.userGenderAge= p.userGenderAge;this.mw=p.mw;this.embedsRct=p.embedsRct;this.embedsRctn=p.embedsRctn;g.nH(this.z4)&&p.mutedAutoplay&&(p.mutedAutoplayDurationMode===2&&p.limitedPlaybackDurationInSeconds===0&&p.endSeconds===0?this.S.push(7):this.S.push(2));p.isEmbedsShortsMode(new g.Ps(this.MN,this.ow),!!this.playlistId)&&this.S.push(3);g.Yu(p)&&this.S.push(4);this.tG=p.Ll;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)}; qZU=function(p,x){var a=p.sendVisitorIdHeader?p.visitorData:void 0;return g.Hx(p.z4,p.accessToken).then(function(v){return AMf(p.uri,p.z4,p.pageId,a,v,x,p.K1)})}; ubT=function(p,x){return function(){p.z4.D("html5_simplify_pings")?(p.U=p.hG,p.RA=x(),p.aA=0,p.send()):qZU(p).then(function(a){var v=nTQ(p);v.cmt=v.len;v.lact="0";var c=x().toFixed(3);v.rt=Number(c).toString();v=g.jL(p.uri,v);p.z4.D("vss_through_gel_double")&&e08(v);p.F5?(a==null&&(a={}),p.qT?gU().sendAndWrite(v,a):gU().sendThenWrite(v,a)):a?g.Mk(v,a):g.fh(v)})}}; nTQ=function(p){var x={ns:p.vX,el:p.eventLabel,cpn:p.clientPlaybackNonce,ver:2,cmt:p.Z(p.U),fmt:p.y8,fs:p.KW?"1":"0",rt:p.Z(p.RA),adformat:p.adFormat,content_v:p.contentVideoId,euri:p.tU,lact:p.aA,live:p.zC,cl:(788253185).toString(),mos:p.Xq,state:p.playerState,volume:p.FM};p.subscribed&&(x.subscribed="1");Object.assign(x,p.Iw);p.Y==="all"?Object.assign(x,p.XV):p.Y==="once"&&p.j&&Object.assign(x,p.XV);p.autoplay&&(x.autoplay="1");p.Kp&&(x.sautoplay="1");p.OS&&(x.dni="1");!p.C&&p.V6&&(x.epm=VWf[p.V6]); p.isFinal&&(x["final"]="1");p.LI&&(x.splay="1");p.US&&(x.delay=p.US);p.gr&&(x.hl=p.gr);p.region&&(x.cr=p.region);p.userGenderAge&&(x.uga=p.userGenderAge);p.userAge!==void 0&&p.T4&&(x.uga=p.T4+p.userAge);p.hG!==void 0&&(x.len=p.Z(p.hG));!p.C&&p.experimentIds.length>0&&(x.fexp=p.experimentIds.toString());p.V!==null&&(x.rtn=p.Z(p.V));p.d_&&(x.feature=p.d_);p.dM&&(x.ctrl=p.dM);p.Gg&&(x.ytr=p.Gg);p.oa&&(x.afmt=p.oa);p.offlineDownloadUserChoice&&(x.ODUC=p.offlineDownloadUserChoice);p.Zt&&(x.lio=p.Z(p.Zt)); p.C?(x.idpj=p.YN,x.ldpj=p.lc,p.delayThresholdMet&&(x.dtm="1"),p.T!=null&&(x.rti=p.Z(p.T)),p.mw&&(x.ald=p.mw),p.compositeLiveIngestionOffsetToken&&(x.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(x.at=p.adType);p.ol&&(p.j||p.C)&&(x.size=p.ol);p.j&&p.S.length&&(x.pbstyle=p.S.join(","));p.FX!=null&&(p.j||p.C)&&(x.inview=p.Z(p.FX));p.C&&(x.volume=QW(p,g.IT(p.segments,function(v){return v.volume})),x.st=QW(p,g.IT(p.segments,function(v){return v.startTime})),x.et=QW(p,g.IT(p.segments,function(v){return v.endTime})), OT(p.segments,function(v){return v.playbackRate!==1})&&(x.rate=QW(p,g.IT(p.segments,function(v){return v.playbackRate}))),OT(p.segments,function(v){return v.U!=="-"})&&(x.als=g.IT(p.segments,function(v){return v.U}).join(",")),OT(p.segments,function(v){return v.previouslyEnded})&&(x.pe=g.IT(p.segments,function(v){return""+ +v.previouslyEnded}).join(","))); x.muted=QW(p,g.IT(p.segments,function(v){return v.muted?1:0})); OT(p.segments,function(v){return v.visibilityState!==0})&&(x.vis=QW(p,g.IT(p.segments,function(v){return v.visibilityState}))); OT(p.segments,function(v){return v.connectionType!==0})&&(x.conn=QW(p,g.IT(p.segments,function(v){return v.connectionType}))); OT(p.segments,function(v){return v.Z!==0})&&(x.blo=QW(p,g.IT(p.segments,function(v){return v.Z}))); OT(p.segments,function(v){return!!v.j})&&(x.blo=g.IT(p.segments,function(v){return v.j}).join(",")); OT(p.segments,function(v){return!!v.compositeLiveStatusToken})&&(x.cbs=g.IT(p.segments,function(v){return v.compositeLiveStatusToken}).join(",")); OT(p.segments,function(v){return v.B!=="-"})&&(x.cc=g.IT(p.segments,function(v){return v.B}).join(",")); OT(p.segments,function(v){return v.clipId!=="-"})&&(x.clipid=g.IT(p.segments,function(v){return v.clipId}).join(",")); if(OT(p.segments,function(v){return!!v.audioId})){var a="au"; p.j&&(a="au_d");x[a]=g.IT(p.segments,function(v){return v.audioId}).join(",")}ay()&&p.pI&&(x.ctt=p.pI,x.cttype=p.Zp,x.mdx_environment=p.mdxEnvironment); p.L3&&(x.etype=p.O7!==void 0?p.O7:0);p.HO&&(x.uoo=p.HO);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(x.clram=FGf[p.livingRoomAppMode]||p.livingRoomAppMode);p.B?plz(p,x):(x.docid=p.videoId,x.referrer=p.referrer,x.ei=p.eventId,x.of=p.JV,x.osid=p.osid,x.vm=p.videoMetadata,p.adQueryId&&(x.aqi=p.adQueryId),p.autonav&&(x.autonav="1"),p.playlistId&&(x.list=p.playlistId),p.s$&&(x.ssrt="1"),p.Ry&&(x.upt=p.Ry));p.j&&(p.embedsRct&&(x.rct=p.embedsRct),p.embedsRctn&&(x.rctn= p.embedsRctn),p.compositeLiveIngestionOffsetToken&&(x.clio=p.compositeLiveIngestionOffsetToken));p.tG&&(x.host_cpn=p.tG);return x}; plz=function(p,x){if(x&&p.B){var a=new Set(["q","feature","mos"]),v=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),c=new Set(["aqi","autonav","list","ssrt","upt"]);p.B.ns==="3pp"&&(x.ns="3pp");for(var J=g.k(Object.keys(p.B)),R=J.next();!R.done;R=J.next())R=R.value,v.has(R)||a.has(R)||c.has(R)&&!p.B[R]||(x[R]=p.B[R])}}; QW=function(p,x){return g.IT(x,p.Z).join(",")}; e08=function(p){p.indexOf("watchtime")!==-1&&g.ab("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})}; xAT=function(p,x){p.attestationResponse&&qZU(p).then(function(a){a=a||{};a.method="POST";a.postParams={atr:p.attestationResponse};p.F5?p.qT?gU().sendAndWrite(x,a):gU().sendThenWrite(x,a):g.Mk(x,a)})}; mG=function(p){g.y.call(this);this.provider=p;this.S="paused";this.C=NaN;this.V=[10,10,10,40];this.T=this.Y=0;this.pI=this.u$=this.O7=this.Zt=this.j=!1;this.Z=this.B=NaN;this.logger=new g.YU("vss");this.U=new GxU(p)}; c8x=function(p){if(!p.j){p.provider.videoData.uA===16623&&g.Hp(Error("Playback for EmbedPage"));var x=SW(p,"playback");p.V=$AU(p);N7x(p.U);x.V=fe(p);p.Z>0&&(x.U-=p.Z);x.send();if(p.provider.videoData.C$){x=p.provider.z4;var a=p.provider.videoData,v={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,ei:a.eventId,ptk:a.C$,oid:a.N4,ptchn:a.LO,pltype:a.To,content_v:$u(a)};a.Po&&Object.assign(v,{m:a.Po});x=g.jL(x.Va+"ptracking",v);ah1(p,x)}p.provider.videoData.US||(sn8(p),vsb(p));p.j=!0;p=p.U;p.U= p.Sh();p.TX=g.sZ(p.provider);!(p.j===0&&p.U<5)&&p.U-p.j>2&&(p.j=p.U);p.V=!0}}; $AU=function(p){var x=p.provider.videoData.JK,a=p.provider.videoData.IY,v=[10+x,10,10,40+a-x,40],c,J=(c=p.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,R=J==null?void 0:J.videostatsScheduledFlushWalltimeSeconds;c=J==null?void 0:J.videostatsDefaultFlushIntervalSeconds;if(!(R&&R.length>0&&c))return p.logger.info("Missing valid scheduled pings config "+R+" "+c),v;x=[R[0]+x].concat(g.lf(R.slice(1).map(function(d,b){return d-R[b]})),[c+a-x, c]);return x.some(function(d){return d<0})?(p.logger.U(347111855,"Neg vss scheduled pings "+R+" "+c),v):x}; fe=function(p,x){x=x===void 0?NaN:x;var a=g.sZ(p.provider);x=isNaN(x)?a:x;x=Math.ceil(x);var v=p.V[p.Y];p.Y+11E3;!(J.length>1)&&J[0].isEmpty()||d||(R.V=fe(p,c));R.send();p.T++}},(c-a)*1E3); return p.B=c}; Ce=function(p){g.rT(p.C);p.C=NaN}; J8b=function(p){p.U.update();p=p.U;p.segments.length&&p.U===p.j||Tx(p);var x=p.segments;p.segments=[];return x}; SW=function(p,x){var a=Kib(p.provider);Object.assign(a,{state:p.S});x=new PS1(p.provider.videoData,p.provider.z4,x,a);x.U=p.provider.U7.Sh();a=p.provider.videoData.clientPlaybackNonce;x.U=p.provider.U7.DR(a);p.provider.videoData.isLivePlayback||(x.hG=p.provider.U7.getDuration(a));p.provider.videoData.U&&(a=p.provider.videoData.U.Ez(x.U))&&(x.Zt=a-x.U,p.provider.z4.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&H_(p.provider.videoData)&&(x.U+=p.provider.U7.Y0(),x.Zt-=p.provider.U7.Y0()));x.RA=g.sZ(p.provider); x.segments=[Hv(p.provider)];return x}; Rtg=function(p,x){var a=SW(p,"watchtime");dAg(p)&&(a.delayThresholdMet=!0,p.O7=!0);if(p.Z>0){for(var v=g.k(x),c=v.next();!c.done;c=v.next())c=c.value,c.startTime-=p.Z,c.endTime-=p.Z;a.U-=p.Z}else a.U=p.U.U;a.segments=x;return a}; Xb=function(p,x){var a=bff(p,!isNaN(p.B));x&&(p.B=NaN);return a}; bff=function(p,x){var a=Rtg(p,J8b(p));!isNaN(p.B)&&x&&(a.T=p.B);return a}; dAg=function(p){var x;if(x=p.provider.videoData.isLoaded()&&p.provider.videoData.US&&p.j&&!p.O7)x=p.U,x=x.C+x.Sh()-x.j>=p.provider.videoData.US;return!!x}; sn8=function(p){p.provider.videoData.youtubeRemarketingUrl&&!p.u$&&(ah1(p,p.provider.videoData.youtubeRemarketingUrl),p.u$=!0)}; vsb=function(p){p.provider.videoData.googleRemarketingUrl&&!p.pI&&(ah1(p,p.provider.videoData.googleRemarketingUrl),p.pI=!0)}; r8U=function(p){if(!p.b$()&&p.j){p.S="paused";var x=Xb(p);x.isFinal=!0;x.send();p.dispose()}}; B$f=function(p,x){if(!p.b$())if(g.q(x.state,2)||g.q(x.state,512)){if(p.S="paused",g.Jz(x,2)||g.Jz(x,512))g.Jz(x,2)&&(p.U.previouslyEnded=!0),p.j&&(Ce(p),Xb(p).send(),p.B=NaN)}else if(g.q(x.state,8)){p.S="playing";var a=p.j&&isNaN(p.C)?fe(p):NaN;if(!isNaN(a)&&(cC(x,64)<0||cC(x,512)<0)){var v=bff(p,!1);v.V=a;v.send()}g.Jz(x,16)&&x.state.seekSource===58&&(p.U.previouslyEnded=!0)}else p.S="paused"}; lh_=function(p,x,a){if(!p.Zt){a||(a=SW(p,"atr"));a.attestationResponse=x;try{a.send()}catch(v){if(v.message!=="Unknown Error")throw v;}p.Zt=!0}}; ah1=function(p,x){var a=p.provider.z4;g.Hx(p.provider.z4,g.vw(p.provider.videoData)).then(function(v){var c=p.provider.z4.pageId,J=p.provider.z4.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,R=p.provider.z4.D("vss_pings_using_networkless")||p.provider.z4.D("kevlar_woffle"),d=p.provider.z4.D("allow_skip_networkless");v=AMf(x,a,c,J,v);Pqg(x,v,{token:p.provider.videoData.S,OJ:p.provider.videoData.LJ,mdxEnvironment:p.provider.videoData.mdxEnvironment},a,void 0,R&&!d,!1,!0)})}; LiI=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.Z=0;this.compositeLiveStatusToken=this.j=void 0;this.volume=this.connectionType=0;this.muted=!1;this.U=this.clipId="-";this.previouslyEnded=!1}; iS=function(p,x,a){this.videoData=p;this.z4=x;this.U7=a;this.U=void 0}; g.sZ=function(p){return YJ1(p)()}; YJ1=function(p){if(!p.U){var x=g.bZ(function(v){var c=(0,g.WR)();v&&c<=631152E6&&(p.U7.jA("ytnerror",{issue:28799967,value:""+c}),c=(new Date).getTime()+2);return c},p.z4.D("html5_validate_yt_now")),a=x(); p.U=function(){return Math.round(x()-a)/1E3}; p.U7.jr()}return p.U}; Kib=function(p){var x=p.U7.Ba()||{};x.fs=p.U7.cG();x.volume=p.U7.getVolume();x.muted=p.U7.isMuted()?1:0;x.mos=x.muted;x.clipid=p.U7.BQ();var a;x.playerheight=((a=p.U7.getPlayerSize())==null?void 0:a.height)||0;var v;x.playerwidth=((v=p.U7.getPlayerSize())==null?void 0:v.width)||0;p=p.videoData;a={};p.Z&&(a.fmt=p.Z.itag,p.B&&(p.G$?p.B.itag!==p.Z.itag:p.B.itag!=p.Z.itag)&&(a.afmt=p.B.itag));a.ei=p.eventId;a.list=p.playlistId;a.cpn=p.clientPlaybackNonce;p.videoId&&(a.v=p.videoId);p.cU&&(a.infringe=1); (p.x_?0:p.FM)&&(a.splay=1);(v=gY(p))&&(a.live=v);p.Cq&&(a.sautoplay=1);p.o9&&(a.autoplay=1);p.ZL&&(a.sdetail=p.ZL);p.partnerId&&(a.partnerid=p.partnerId);p.osid&&(a.osid=p.osid);p.i5&&(a.cc=g.MtJ(p.i5));return Object.assign(x,a)}; sNo=function(p){var x=S6I();if(x)return htT[x]||htT.other;if(g.dZ(p.z4)){p=navigator.userAgent;if(/[Ww]ireless[)]/.test(p))return 3;if(/[Ww]ired[)]/.test(p))return 30}return 0}; Hv=function(p){var x=new LiI,a;x.B=((a=Kib(p).cc)==null?void 0:a.toString())||"-";x.playbackRate=p.U7.getPlaybackRate();a=p.U7.getVisibilityState();a!==0&&(x.visibilityState=a);p.z4.HO&&(x.Z=1);x.j=p.videoData.S_;x.compositeLiveStatusToken=p.videoData.compositeLiveStatusToken;a=p.U7.getAudioTrack();a.AX&&a.AX.id&&a.AX.id!=="und"&&(x.audioId=a.AX.id);x.connectionType=sNo(p);x.volume=p.U7.getVolume();x.muted=p.U7.isMuted();x.clipId=p.U7.BQ()||"-";x.U=p.videoData.g2||"-";return x}; g.ou=function(p,x){g.y.call(this);var a=this;this.provider=p;this.j=new Map;this.Ai=new g.hL;this.d3={Wp$:function(){return a.qoe}, G7A:function(){return a.U}, oaI:function(){return a.Z}}; this.provider.videoData.mU()&&!this.provider.videoData.E5&&(this.U=new mG(this.provider),this.U.Z=0,g.Z(this,this.U),this.qoe=new g.$T(this.provider,x),g.Z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.kO=this.provider.videoData.clientPlaybackNonce)&&this.j.set(this.kO,this.U));if(p.z4.playerCanaryState==="canary"||p.z4.playerCanaryState==="holdback")this.Z=new UZ(this.provider),g.Z(this,this.Z)}; jn_=function(p){p.Z&&yG8(p.Z);p.qoe&&lFb(p.qoe)}; Ihx=function(p){if(p.qoe){p=p.qoe;for(var x=p.provider.videoData,a=p.provider.z4,v=g.k(a.qX),c=v.next();!c.done;c=v.next())cv(p,c.value);if(p.provider.D("html5_enable_qoe_cat_list"))for(v=g.k(x.ER),c=v.next();!c.done;c=v.next())cv(p,c.value);else x.qX&&cv(p,p.provider.videoData.qX);x.Dp()&&(v=x.U,CT(x)&&cv(p,"manifestless"),v&&GR(v)&&cv(p,"live-segment-"+GR(v).toFixed(1)));TV(x)?cv(p,"sabr"):p.x4(oh(x));if(cw(x)||x.O8())x.O8()&&cv(p,"ssa"),cv(p,"lifa");H_(x)&&cv(p,"cdm");x.gatewayExperimentGroup&& (v=x.gatewayExperimentGroup,v==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?v="spkadtrt":v==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(v="spkadctrl"),cv(p,v));a.Zt!=="yt"&&p.U.set("len",[x.lengthSeconds.toFixed(2)]);x.cotn&&!K_(x)&&p.oW(!0);a.qZ()&&(x=xh1())&&p.jA("cblt",{m:x});if(a.D("html5_log_screen_diagonal")){a=p.jA;var J;x=((J=window.H5vccScreen)==null?0:J.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;a.call(p,"cbltdiag",{v:x})}}}; Mdb=function(p,x){p.U&&(p=p.U,x===58?p.U.update():p.j&&(Ce(p),Xb(p).send(),p.B=NaN))}; Wio=function(p,x){if(g.Jz(x,1024)||g.Jz(x,512)||g.Jz(x,4)){if(p.Z){var a=p.Z;a.Z>=0||(a.U=-1,a.delay.stop())}p.qoe&&(a=p.qoe,a.V||(a.j=-1))}if(p.provider.videoData.enableServerStitchedDai&&p.kO){var v;(v=p.j.get(p.kO))==null||B$f(v,x)}else p.U&&B$f(p.U,x);if(p.qoe){v=p.qoe;a=x.state;var c=g.sZ(v.provider),J=v.getPlayerState(a),R=a.seekSource||void 0;if(J!==v.Ai){v.O7||c= 10&&v.playTimeSecs<=180&&(v.U.set("qoealert",["1"]),v.US=!0)),J!=="B"||v.Ai!=="PL"&&v.Ai!=="PB"||(v.isBuffering=!0),v.Z=c);v.Ai==="PL"&&(J==="B"||J==="S")||v.provider.z4.qZ()?vv(v,c):(v.Zp||J!=="PL"||(v.Zp=!0,vuN(v,c,v.provider.U7.sI())),aF1(v,c));J==="PL"&&g.Pk(v.RA);var d=[J];J==="S"&&R&&d.push("ss."+R);g.xT(v,c,"vps",d);v.Ai=J;v.Zt=c;v.Z=c;v.B=!0}J=a.RB;g.q(a,128)&&J&&(J.Zn=J.Zn||"",KHx(v,c,J.errorCode,J.PH,J.Zn));(g.q(a,2)||g.q(a,128))&&v.reportStats(c);a.isPlaying()&&!v.V&&(v.j>=0&&v.U.set("user_intent", [v.j.toString()]),v.V=!0);JeJ(v)}p.Z&&(p=p.Z,gT8(p),p.playerState=x.state,p.Z>=0&&g.Jz(x,16)&&p.seekCount++,x.state.isError()&&p.send())}; k2Q=function(p){p.Z&&p.Z.send();if(p.qoe){var x=p.qoe;if(x.B){x.Ai==="PL"&&(x.Ai="N");var a=g.sZ(x.provider);g.xT(x,a,"vps",[x.Ai]);x.V||(x.j>=0&&x.U.set("user_intent",[x.j.toString()]),x.V=!0);x.provider.z4.qZ()&&x.jA("finalized",{});x.F5=!0;x.reportStats(a)}}if(p.provider.videoData.enableServerStitchedDai)for(x=g.k(p.j.values()),a=x.next();!a.done;a=x.next())r8U(a.value);else p.U&&r8U(p.U);p.dispose()}; DAJ=function(p,x){p.U&&lh_(p.U,x)}; UAg=function(p){if(!p.U)return null;var x=SW(p.U,"atr");return function(a){p.U&&lh_(p.U,a,x)}}; Hff=function(p,x,a,v){a.adFormat=a.K1;var c=x.U7;x=new mG(new iS(a,x.z4,{getDuration:function(){return a.lengthSeconds}, getCurrentTime:function(){return c.getCurrentTime()}, Sh:function(){return c.Sh()}, DR:function(){return c.DR()}, sI:function(){return c.sI()}, getPlayerSize:function(){return c.getPlayerSize()}, getAudioTrack:function(){return a.getAudioTrack()}, getPlaybackRate:function(){return c.getPlaybackRate()}, FG:function(){return c.FG()}, getVisibilityState:function(){return c.getVisibilityState()}, UT:function(){return c.UT()}, Ba:function(){return c.Ba()}, getVolume:function(){return c.getVolume()}, isMuted:function(){return c.isMuted()}, cG:function(){return c.cG()}, BQ:function(){return c.BQ()}, getProximaLatencyPreference:function(){return c.getProximaLatencyPreference()}, jr:function(){c.jr()}, jA:function(J,R){c.jA(J,R)}, uN:function(){return c.uN()}, Y0:function(){return c.Y0()}})); x.Z=v;g.Z(p,x);return x}; T$1=function(){this.QK=0;this.j=this.YW=this.We=this.Z=NaN;this.U={};this.bandwidthEstimate=NaN}; Qng=function(){this.U=g.Zt;this.array=[]}; SJo=function(p,x,a){var v=[];for(x=mAx(p,x);xa)break}return v}; fho=function(p,x){var a=[];p=g.k(p.array);for(var v=p.next();!v.done&&!(v=v.value,v.contains(x)&&a.push(v),v.start>x);v=p.next());return a}; C9f=function(p){return p.array.slice(mAx(p,0x7ffffffffffff),p.array.length)}; mAx=function(p,x){p=OV(p.array,function(a){return x-a.start||1}); return p<0?-(p+1):p}; XlQ=function(p,x){var a=NaN;p=g.k(p.array);for(var v=p.next();!v.done;v=p.next())if(v=v.value,v.contains(x)&&(isNaN(a)||v.endx&&(isNaN(a)||v.startp.mediaTime+p.C&&x1)p.B=!0;if((c===void 0?0:c)||isNaN(p.Z))p.Z=x;if(p.U)x!==p.mediaTime&&(p.U=!1);else if(x>0&&p.mediaTime===x){c=1500;if(p.z4.D("html5_buffer_underrun_transition_fix")){c=g.e_(p.z4.experiments,"html5_min_playback_advance_for_steady_state_secs");var J=g.e_(p.z4.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");c=c>0&&J>0&&Math.abs(x-p.Z)(v||!p.B?c:400)}p.mediaTime=x;p.j=a;return!1}; G2J=function(p,x){this.videoData=p;this.U=x}; OfU=function(p,x,a){return x.C2(a).then(function(){return Ql(new G2J(x,x.j))},function(v){v instanceof Error&&g.Hp(v); var c=lh('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),J=Yc('audio/mp4; codecs="mp4a.40.2"'),R=c||J,d=x.isLivePlayback&&!g.jF(p.C,!0);v="fmt.noneavailable";d?v="html5.unsupportedlive":R||(v="html5.missingapi");R=d||!R?2:1;c={buildRej:"1",a:x.W0(),d:!!x.vX,drm:x.Sg(),f18:x.Xq.indexOf("itag=18")>=0,c18:c};x.U&&(x.Sg()?(c.f142=!!x.U.U["142"],c.f149=!!x.U.U["149"],c.f279=!!x.U.U["279"]):(c.f133=!!x.U.U["133"],c.f140=!!x.U.U["140"],c.f242=!!x.U.U["242"]),c.cAAC=J,c.cAVC=Yc('video/mp4; codecs="avc1.42001E"'), c.cVP9=Yc('video/webm; codecs="vp9"'));x.C&&(c.drmsys=x.C.keySystem,J=0,x.C.U&&(J=Object.keys(x.C.U).length),c.drmst=J);return new g.dD(v,c,R)})}; w7=function(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.Z=this.U=p-1}; N$Q=function(p){return p.data[p.U]||0}; A8I=function(p){this.C=p;this.j=this.Z=0;this.B=new w7(50)}; yW=function(p,x,a){g.Fx.call(this);this.videoData=p;this.experiments=x;this.C=a;this.Z=[];this.AK=0;this.j=!0;this.B=!1;this.S=0;a=new P9I;p.latencyClass==="ULTRALOW"&&(a.S=!1);p.T4?a.j=3:g.AM(p)&&(a.j=2);p.latencyClass==="NORMAL"&&(a.C=!0);a.Zt=TV(p)&&x.cO("html5_refactor_decouple_liveness");g.e_(x,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.e_(x,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||p.latencyClass!=="LOW"&&p.latencyClass!=="ULTRALOW"||(a.C=!0);var v= g.e_(x,"html5_liveness_drift_proxima_override");if(oh(p)!==0&&v){a.U=v;var c;((c=p.U)==null?0:bax(c))&&a.U--}TV(p)&&x.cO("html5_sabr_parse_live_metadata_playback_boundaries")&&(a.pI=!0);if(g.wT("trident/")||g.wT("edge/"))c=g.e_(x,"html5_platform_minimum_readahead_seconds")||3,a.B=Math.max(a.B,c);g.e_(x,"html5_minimum_readahead_seconds")&&(a.B=g.e_(x,"html5_minimum_readahead_seconds"));g.e_(x,"html5_maximum_readahead_seconds")&&(a.T=g.e_(x,"html5_maximum_readahead_seconds"));x.cO("html5_force_adaptive_readahead")&& (a.S=!0);if(c=g.e_(x,"html5_liveness_drift_chunk_override"))a.U=c;Xz(p)&&(a.U=(a.U+1)/5,p.latencyClass==="LOW"&&(a.U*=2));!TV(p)||p.latencyClass!=="ULTRALOW"&&p.latencyClass!=="LOW"||(a.Y=g.e_(x,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,a.V=g.e_(x,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=a;this.V=this.policy.j!==1;this.U=EZ(this,qJ1(this,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p))}; ns1=function(p,x){if(x)return x=p.videoData,x=qJ1(p,isNaN(x.liveChunkReadahead)?3:x.liveChunkReadahead,x),EZ(p,x);if(p.Z.length){if(Math.min.apply(null,p.Z)>1)return EZ(p,p.U-1);if(p.policy.S)return EZ(p,p.U+1)}return p.U}; et1=function(p,x){if(!p.Z.length)return!1;var a=p.U;p.U=ns1(p,x===void 0?!1:x);if(x=a!==p.U)p.Z=[],p.AK=0;return x}; g7=function(p,x){return x>=p.hZ()-uqU(p)}; VdU=function(p,x,a){x=g7(p,x);a||x?x&&(p.j=!0):p.j=!1;p.V=p.policy.j===2||p.policy.j===3&&p.j}; Fib=function(p,x){x=g7(p,x);p.B!==x&&p.publish("livestatusshift",x);p.B=x}; uqU=function(p){var x=p.policy.U;p.B||(x=Math.max(x-1,0));return x*ZI(p)}; qJ1=function(p,x,a){a.T4&&x--;Xz(a)&&(x=1);if(oh(a)!==0&&(p=g.e_(p.experiments,"html5_live_chunk_readahead_proxima_override"))){x=p;var v;((v=a.U)==null?0:bax(v))&&x++}return x}; ZI=function(p){return p.videoData.U?GR(p.videoData.U)||5:5}; EZ=function(p,x){x=Math.max(Math.max(1,Math.ceil(p.policy.B/ZI(p))),x);return Math.min(Math.min(8,Math.floor(p.policy.T/ZI(p))),x)}; P9I=function(){this.B=0;this.T=Infinity;this.S=!0;this.Z=this.U=2;this.j=1;this.C=!1;this.V=10;this.pI=!1;this.Y=1;this.Zt=!1}; Nr=function(p){g.y.call(this);this.U7=p;this.U=0;this.Z=null;this.S=this.B=0;this.j={};this.z4=this.U7.L();this.C=new g.AW(this.Bh,1E3,this);this.LI=Gx(this,"html5_seek_timeout_delay_ms");this.O7=Gx(this,"html5_long_rebuffer_threshold_ms");this.Ra=Gx(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.qT=Gx(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.V6=Gx(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.OS=Gx(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Zt=Gx(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.pI=new OZ(2E4);this.hG=Gx(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.gr=Gx(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.tG=Gx(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.F5=Gx(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Y=Gx(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.T=Gx(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.HO=Gx(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.T4=Gx(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.V=Gx(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.oa=new OZ(g.e_(this.z4.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.z4.D("html5_report_slow_ads_as_error"));this.US=new OZ(g.e_(this.z4.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.z4.D("html5_skip_slow_buffering_ad"));this.Zp=Gx(this,"html5_slow_start_timeout_delay_ms");this.u$=Gx(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.Z(this,this.C)}; Gx=function(p,x,a){a=a===void 0?null:a;var v=v===void 0?0:v;return new OZ(g.e_(p.z4.experiments,x)||v,a?p.z4.D(a):!1)}; peI=function(p,x){p.U=x}; AG=function(p,x,a,v,c,J,R,d){x?x.test(a)?(p.zn(c,x,R),x.S||J()):(!x.Z||x.B?a=!1:(a=(0,g.WR)(),v?x.U||(x.U=a):x.U=0,J=!v&&a-x.Z>3E4,a=x.U&&a-x.U>1E3||J?x.B=!0:!1),a&&(d=Object.assign({},p.cX(x),d),d.wn=R,d.we=c,d.wsuc=v,p.U7.jA("workaroundReport",d),v&&(x.reset(),p.j[c]=!1))):p.U7.jk("auth",2,"BROWSER_OR_EXTENSION_ERROR",Ki({source:"watchdog",name:R}))}; OZ=function(p,x){this.S=x===void 0?!1:x;this.U=this.Z=this.j=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(p/1E3)}; sSQ=function(p){g.y.call(this);var x=this;this.U7=p;this.Y=this.U=this.loader=this.mediaElement=this.playbackData=null;this.j=0;this.C=this.O7=this.B=null;this.F5=!1;this.Zp=0;this.pI=!1;this.timestampOffset=0;this.T=!0;this.gr=0;this.Ra=this.XV=!1;this.V=0;this.T4=!1;this.u$=0;this.z4=this.U7.L();this.videoData=this.U7.getVideoData();this.policy=new xT_;this.Zt=new Nr(this.U7);this.oa=this.tG=this.V6=this.S=this.Z=NaN;this.hG=new g.AW(function(){$T1(x,!1)},2E3); this.OS=new g.AW(function(){Pv(x)}); this.LI=new g.AW(function(){aQx(x,{})}); this.US=NaN;this.qT=new g.AW(function(){var a=x.z4.MN;a.U+=1E4/36E5;a.U-a.j>1/6&&(SRU(a),a.j=a.U);x.qT.start()},1E4); g.Z(this,this.Zt);g.Z(this,this.hG);g.Z(this,this.LI);g.Z(this,this.OS);g.Z(this,this.qT)}; JAQ=function(p,x){p.playbackData=x;p.videoData.isLivePlayback&&(p.Y=new A8I(function(){a:{if(p.playbackData&&p.playbackData.U.U){if(CT(p.videoData)&&p.loader){var v=p.loader.wq.f3()||0;break a}if(p.videoData.U){v=p.videoData.U.F5;break a}}v=0}return v}),p.U=new yW(p.videoData,p.z4.experiments,function(){return p.HE(!0)})); if(qr(p.U7)){var a;(a=p.videoData.jy)!=null&&a.lQ||(x=vNU(p),x.ST?(TV(p.videoData)&&p.EH(x.ST,x.startSeconds),p.j=x.startSeconds):x.startSeconds>0&&p.seekTo(x.startSeconds,{Cp:"seektimeline_startPlayback",seekSource:15}));p.T=!1}else cAI(p)||(p.j=p.j||p.videoData.startSeconds||0,p.videoData.isLivePlayback||(x=p.U7.videoData.HE(),p.j>x&&(p.D("html5_sabr_log_invalid_sabr_current_time")&&p.U7.jA("invalidSabrCmtStart",{rt:p.j,mst:x}),p.D("html5_sabr_vod_invalid_start_time_fallback")&&(p.j=0))))}; K6g=function(p,x){(p.loader=x)?RAx(p,!0):ne(p)}; dTf=function(p,x){g.Pk(p.Zt.C);p.D("html5_exponential_memory_for_sticky")&&(x.state.isPlaying()?g.Pk(p.qT):p.qT.stop());if(p.mediaElement)if(x.oldState.state===8&&Ue(x.state)&&x.state.isBuffering()){x=p.mediaElement.getCurrentTime();var a=p.mediaElement.eh();var v=p.D("manifestless_post_live_ufph")||p.D("manifestless_post_live")?AD(a,Math.max(x-3.5,0)):AD(a,x-3.5);v>=0&&x>a.end(v)-1.1&&v+10?(eW(p.U7,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds),p.Ra=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(eW(p.U7,p.getCurrentTime()+p.videoData.endSeconds),p.Ra=!0))}; rA1=function(p,x){var a=p.getCurrentTime(),v=p.isAtLiveHead(a);if(p.Y&&v){var c=p.Y;if(c.U&&!(a>=c.Z&&a50&&c.Z.shift())),c=p.U,VdU(c,a,x===void 0?!0:x),Fib(c,a),x&&$T1(p,!0));v!==p.XV&&(x=p.getCurrentTime()-p.oa<=500,a=p.Zp>=1E3,x||a||(x=p.U7.tX,x.qoe&&(x=x.qoe,a=g.sZ(x.provider), g.xT(x,a,"lh",[v?"1":"0"])),p.XV=v,p.Zp++,p.oa=p.getCurrentTime()))}; $T1=function(p,x){if(p.U){var a=p.U;var v=p.getCurrentTime(),c=a.hZ();var J=a.policy.Z;a.B||(J=Math.max(J-1,0));J*=ZI(a);v>=c-J||!a.HG()?a=va+1&&x0&&BN(p.mediaElement)>0&&(p.Z=uS(p,p.Z,!1)),x=p.D("html5_pseudogapless_shorts_seek_to_next_start")&&(x==null?void 0:x.seekSource)===60,!p.mediaElement||!IQJ(p,x))p.OS.start(750);else if(!isNaN(p.Z)&&isFinite(p.Z)&&(x=p.tG-(p.Z-p.timestampOffset),!(x===0||Math.abs(x)<.005)))if(x=p.mediaElement.getCurrentTime()-p.Z,Math.abs(x)<=p.gr||Math.abs(x)<.005)MDb(p);else{if(p.videoData.MD)p.videoData.MD= !1;else if(!fT(p.videoData)&&p.Z>=p.HE()-.1){p.Z=p.HE();p.B.resolve(p.HE());p.z4.qZ()&&p.U7.jA("setEndedInSeek",{tgt:""+p.Z,maxst:""+p.HE()});p.U7.hv();return}try{var a=p.Z-p.timestampOffset;p.mediaElement.seekTo(a);p.Zt.U=a;p.tG=a;p.j=p.Z;p.pI=!1}catch(v){}}}; IQJ=function(p,x){x=x===void 0?!1:x;if(!p.mediaElement||p.mediaElement.zF()===0||p.mediaElement.hasError())return!1;var a=p.mediaElement.getCurrentTime()>0;return p.videoData.j&&p.videoData.j.U||p.videoData.isLivePlayback||!p.videoData.Sg()?p.Z>=0&&!x&&(x=p.mediaElement.Vr(),x.length||!a)?Ph(x,p.Z-p.timestampOffset):a:a}; MDb=function(p){p.B&&(p.B.resolve(p.mediaElement.getCurrentTime()),p.Zt.Z=null)}; hAz=function(p,x){p.C&&(p.C.resolve(x),p.U7.P3(),p.z4.qZ()||jSo(p))&&(x=p.cX(),x["native"]=""+ +p.pI,x.otgt=""+(p.Z+p.timestampOffset),p.U7.jA("seekEnd",x));ne(p)}; ne=function(p){p.Z=NaN;p.S=NaN;p.tG=NaN;p.B=null;p.O7=null;p.C=null;p.F5=!1;p.pI=!1;p.gr=0;p.hG.stop();p.LI.stop()}; kfQ=function(p,x){var a=p.mediaElement,v=x.type;switch(v){case "seeking":var c=a.getCurrentTime()+p.timestampOffset;if(!p.B||p.pI&&c!==p.Z){p.B=new bl;p.B.then(function(R){hAz(p,R)},function(){ne(p)}); if(p.videoData.isAd()){var J;sb_({adCpn:p.videoData.clientPlaybackNonce,contentCpn:(J=p.videoData.Ll)!=null?J:""},x.U)}p.tG=c;peI(p.Zt,a.getCurrentTime());p.seekTo(c,{seekSource:104,Cp:"seektimeline_mediaElementEvent"});p.pI=!0}break;case "seeked":MDb(p);break;case "loadedmetadata":qr(p.U7)||W6U(p);Pv(p);break;case "progress":Pv(p);break;case "pause":p.V=p.getCurrentTime()}p.V&&((v==="play"||v==="playing"||v==="timeupdate"||v==="progress")&&p.getCurrentTime()-p.V>10&&(p.D("html5_sky_skip_pause_jump")? p.U7.jA("skipPauseJump",{evt:v,cmt:p.getCurrentTime(),lpt:p.V}):p.seekTo(p.V,{Cp:"pauseJump"})),v!=="pause"&&v!=="play"&&v!=="playing"&&v!=="progress"&&(p.V=0))}; DT1=function(p){return(P_(p.videoData)||!!p.videoData.liveUtcStartSeconds)&&(!!p.videoData.liveUtcStartSeconds||cAI(p))&&!!p.videoData.U}; cAI=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9}; vNU=function(p){var x=0,a=NaN,v="";if(!p.T)return{startSeconds:x,ST:a,source:v};p.videoData.O7?x=p.videoData.u$:fT(p.videoData)&&(x=Infinity);if(g.AM(p.videoData))return{startSeconds:x,ST:a,source:v};p.videoData.startSeconds?(v="ss",x=p.videoData.startSeconds):p.videoData.aA&&(v="stss",x=p.videoData.aA);p.videoData.liveUtcStartSeconds&&(a=p.videoData.liveUtcStartSeconds);if(isFinite(x)&&(x>p.HE()||xp.HE()||a 0?(v.onesie="0",p.handleError(new g.dD("html5.missingapi",v)),!1):!0}; Xeb=function(p){var x=Vy();F6(x,p);return g.gG(x,C1o())}; Suf=function(p,x){var a,v,c,J,R,d,b,r,B,l,L,Y,h,D,H,f,m,X,E,A,u,n,co,LU,R8,KU;return g.t(function(x1){if(x1.Z==1)return x.fetchType="onesie",a=d8T(x,p.getPlayerSize(),p.getVisibilityState()),v=new Ny(p,a),g.C(x1,v.fetch(),2);c=x1.U;J={player_response:c};x.loading=!1;R=p.q6.gp;if(v.P5){d=g.k(v.P5.entries());for(b=d.next();!b.done;b=d.next())r=b.value,B=g.k(r),l=B.next().value,L=B.next().value,Y=l,h=L,R.U.set(Y,h,180),Y===x.videoId&&(D=h.z1(),x.RC=D);R.p_=v}H=g.k(v.aX.entries());for(f=H.next();!f.done;f= H.next())m=f.value,X=g.k(m),E=X.next().value,A=X.next().value,u=E,n=A,R.Z.set(u,n,180);g.lq(x,J,!0);if(x.loading||rY(x))return x1.return(Promise.resolve());R.U.removeAll();R.Z.removeAll();x.RC=[];co={};LU="onesie.response";R8=0;x.errorCode?(LU="auth",co.ec=x.errorCode,co.ed=x.errorDetail,co.es=x.Jn||"",R8=2):(co.successButUnplayable="1",co.disposed=""+ +x.b$(),co.afmts=""+ +/adaptiveFormats/.test(c),co.cpn=x.clientPlaybackNonce);KU=new g.dD(LU,co,R8);return x1.return(Promise.reject(KU))})}; QSf=function(p,x){var a,v,c,J,R,d,b,r,B,l,L;return g.t(function(Y){switch(Y.Z){case 1:a=x.isAd(),v=!a,c=a?1:3,J=0;case 2:if(!(J0)){Y.Ia(5);break}return g.C(Y,Ey(5E3),6);case 6:R=new g.gr("Retrying OnePlatform request",{attempt:J}),g.Hp(R);case 5:return g.DJ(Y,7),g.C(Y,i3o(p,x),9);case 9:return Y.return();case 7:d=g.SI(Y);b=rD(d);r=b.errorCode;B=p.L();l=B.D("html5_use_network_error_code_enums")?401:"401";v&&r==="manifest.net.badstatus"&&b.details.rc===l&&(v=!1,J===c-1&&(c+= 1));if(J===c-1)return L=oNz(a,b.details),L.details.backend="op",L.details.originec=r,Y.return(Promise.reject(L));if(r==="auth"||r==="manifest.net.retryexhausted")return Y.return(Promise.reject(b));p.handleError(b);if(bh(b.severity)){Y.Ia(4);break}case 3:J++;Y.Ia(2);break;case 4:return Y.return(Promise.reject(oNz(a,{backend:"op"})))}})}; i3o=function(p,x){function a(LU){LU.readyState===2&&p.mF("ps_c")} var v,c,J,R,d,b,r,B,l,L,Y,h,D,H,f,m,X,E,A,u,n,co;return g.t(function(LU){switch(LU.Z){case 1:x.fetchType="gp";v=p.L();c=g.Hx(v,g.vw(x));if(!c.U){J=c.getValue();LU.Ia(2);break}return g.C(LU,c.U,3);case 3:J=LU.U;case 2:return R=J,d=Xeb(R),b=d8T(x,p.getPlayerSize(),p.getVisibilityState()),r=g.PC(tDN),B=g.vw(x),l=(0,g.WR)(),L=!1,Y="empty",h=0,p.mF("psns"),D={VG:a},g.C(LU,g.Sb(d,b,r,void 0,D),4);case 4:H=LU.U;p.mF("psnr");if(x.b$())return LU.return();H?"error"in H&&H.error?(L=!0,Y="esf:"+H.error.message, h=H.error.code):H.errorMetadata&&(L=!0,Y="its",h=H.errorMetadata.status):L=!0;if(L)return f=0,m=((0,g.WR)()-l).toFixed(),X={},X=v.D("html5_use_network_error_code_enums")?{backend:"op",rc:h,rt:m,reason:Y,has_kpt:x.FX?"1":"0",has_mdx_env:x.mdxEnvironment?"1":"0",has_omit_key_flag:g.gx("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:v.pageId?"1":"0",has_token:B?"1":"0",has_vvt:x.F5?"1":"0",is_mdx:x.isMdxPlayback?"1":"0",mdx_ctrl:x.dM||"",token_eq:B===g.vw(x)?"1":"0"}:{backend:"op", rc:""+h,rt:m,reason:Y,has_kpt:x.FX?"1":"0",has_mdx_env:x.mdxEnvironment?"1":"0",has_omit_key_flag:g.gx("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:v.pageId?"1":"0",has_token:B?"1":"0",has_vvt:x.F5?"1":"0",is_mdx:x.isMdxPlayback?"1":"0",mdx_ctrl:x.dM||"",token_eq:B===g.vw(x)?"1":"0"},E="manifest.net.connect",h===429?(E="auth",f=2):h>200&&(E="manifest.net.badstatus",h===400&&(f=2)),LU.return(Promise.reject(new g.dD(E,X,f)));x.loading=!1;g.lq(x,{raw_player_response:H},!0); A=H;g.xO(x.L())&&A&&A.trackingParams&&Pc(A.trackingParams);if(x.errorCode)return u={ec:x.errorCode,ed:x.errorDetail,es:x.Jn||""},LU.return(Promise.reject(new g.dD("auth",u,2)));if(!x.loading&&!rY(x))return n=x.isAd()?"auth":"manifest.net.retryexhausted",co=x.isAd()?2:1,LU.return(Promise.reject(new g.dD(n,{successButUnplayable:"1",hasMedia:g.GV(x)?"1":"0"},co)));g.k1(LU)}})}; THJ=function(p,x,a){function v(h){h=rD(h);if(bh(h.severity))return Promise.reject(h);p.handleError(h);return!1} function c(){return!0} var J,R,d,b,r,B,l,L,Y;return g.t(function(h){switch(h.Z){case 1:var D=p.L();p.getPlayerSize();p.getVisibilityState();p.isFullscreen();if(x.partnerId===38&&D.playerStyle==="books")D=x.videoId.indexOf(":"),D=g.jL("//play.google.com/books/volumes/"+x.videoId.slice(0,D)+"/content/media",{aid:x.videoId.slice(D+1),sig:x.n_6});else if(x.partnerId===30&&D.playerStyle==="docs")D=g.jL("https://docs.google.com/get_video_info",{docid:x.videoId,authuser:x.QT,authkey:x.Rm6,eurl:D.vX});else if(x.partnerId===33&& D.playerStyle==="google-live")D=g.jL("//google-liveplayer.appspot.com/get_video_info",{key:x.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+D.Zt);J=D;d=(R=x.isAd())?1:3;b=0;case 2:if(!(b0)){h.Ia(5);break}return g.C(h,Ey(5E3),6);case 6:B={playerretry:b,playerretrysrc:a},R||(B.recover="embedded"),r=xE(J,B);case 5:return g.C(h,zA1(x,r).then(c,v),7);case 7:if(l=h.U)return h.return();b++;h.Ia(2);break;case 4:L=R?"auth":"manifest.net.retryexhausted";Y= R?2:1;if(!R&&Math.random()<1E-4)try{g.Hp(new g.gr("b/152131571",btoa(J)))}catch(H){}return h.return(Promise.reject(new g.dD(L,{backend:"gvi"},Y)))}})}; zA1=function(p,x){function a(H){return v(H.xhr)} function v(H){if(!p.b$()){H=H?H.status:-1;var f=0,m=((0,g.WR)()-B).toFixed();m=c.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:H,rt:m}:{backend:"gvi",rc:""+H,rt:m};var X="manifest.net.connect";H===429?(X="auth",f=2):H>200&&(X="manifest.net.badstatus",H===400&&(f=2));return Promise.reject(new g.dD(X,m,f))}} var c,J,R,d,b,r,B,l,L,Y,h,D;return g.t(function(H){if(H.Z==1){p.fetchType="gvi";c=p.L();var f={};p.Qo&&(f.ytrext=p.Qo);(d=g.lu(f)?void 0:f)?(J={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:d},R=xE(x,{action_display_post:1})):(J={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},R=x);b={};c.sendVisitorIdHeader&&p.visitorData&&(b["X-Goog-Visitor-Id"]=p.visitorData);(r=LH(c.experiments,"debug_sherlog_username"))&&(b["X-Youtube-Sherlog-Username"]=r);Object.keys(b).length> 0&&(J.headers=b);B=(0,g.WR)();return g.C(H,SB(Dg,R,J).then(void 0,a),2)}l=H.U;if(!l||!l.responseText)return H.return(v(l));p.loading=!1;L=uU(l.responseText);g.lq(p,L,!0);if(p.errorCode)return Y={ec:p.errorCode,ed:p.errorDetail,es:p.Jn||""},H.return(Promise.reject(new g.dD("auth",Y,2)));if(!p.loading&&!rY(p))return h=p.isAd()?"auth":"manifest.net.retryexhausted",D=p.isAd()?2:1,H.return(Promise.reject(new g.dD(h,{successButUnplayable:"1"},D)));g.k1(H)})}; oNz=function(p,x){return new g.dD(p?"auth":"manifest.net.retryexhausted",x,p?2:1)}; $s=function(p,x,a){a=a===void 0?!1:a;var v,c,J,R;g.t(function(d){if(d.Z==1){v=p.L();if(a&&(!g.If(v)||p_(x)!=="embedded")||x.Km||p_(x)!=="adunit"&&(g.dZ(v)||Rf(v)||g.SG(v)||g.jM(v)||g.$O(v)||B0(v)==="WEB_CREATOR"))return d.return();c=g.Hx(v,g.vw(x));return c.U?g.C(d,c.U,3):(J=c.getValue(),d.Ia(2))}d.Z!=2&&(J=d.U);R=J;return d.return(weI(p,x,R))})}; weI=function(p,x,a){var v,c,J,R,d;return g.t(function(b){if(b.Z==1){g.DJ(b,2);v=Xeb(a);var r=x.L();g.oQ();var B={context:g.IN(x),videoId:x.videoId,racyCheckOk:x.racyCheckOk,contentCheckOk:x.contentCheckOk,autonavState:"STATE_NONE"};p_(x)==="adunit"&&(B.isAdPlayback=!0);r.embedConfig&&(B.serializedThirdPartyEmbedConfig=r.embedConfig);r.gz&&(B.showContentOwnerOnly=!0);x.fK&&(B.showShortsOnly=!0);g.tX(0,141)&&(B.autonavState=g.tX(0,140)?"STATE_OFF":"STATE_ON");if(g.YO(r)){var l=g.tX(0,65);l=l!=null? !l:!1;var L=!!g.mD("yt-player-sticky-caption");B.captionsRequested=l&&L}var Y;if(r=(Y=r.getWebPlayerContextConfig())==null?void 0:Y.encryptedHostFlags)B.playbackContext={encryptedHostFlags:r};c=B;J=g.PC(ENf);p.mF("wn_s");return g.C(b,g.Sb(v,c,J),4)}if(b.Z!=2)return R=b.U,p.mF("wn_r"),!R||"error"in R&&R.error||(d=R,g.xO(x.L())&&d.trackingParams&&Pc(d.trackingParams),g.lq(x,{raw_watch_next_response:R},!1)),g.T1(b,0);g.SI(b);g.k1(b)})}; yAJ=function(p){p.mF("vir");p.mF("ps_s");T3("vir",void 0,"video_to_ad");var x=CeI(p);x.then(function(){p.mF("virc");T3("virc",void 0,"video_to_ad");p.mF("ps_r");T3("ps_r",void 0,"video_to_ad")},function(){p.mF("virc"); T3("virc",void 0,"video_to_ad")}); return x}; g.vl=function(p,x,a,v,c,J,R,d,b,r){b=b===void 0?new g.bq(p):b;r=r===void 0?!0:r;g.Fx.call(this);var B=this;this.z4=p;this.playerType=x;this.FV=a;this.J0=v;this.getVisibilityState=J;this.visibility=R;this.q6=d;this.videoData=b;this.JE=r;this.logger=new g.YU("VideoPlayer");this.fv=null;this.Yo=new Mr;this.UH=null;this.Qn=!0;this.xg=this.loader=null;this.Bj=[];this.fZ=new xs;this.Iv=this.xu=null;this.r$=new xs;this.Lg=null;this.Lh=this.Vj=!1;this.Nn=NaN;this.qY=!1;this.playerState=new g.hL;this.ew=[]; this.Pi=new g.II;this.s1=new KGU(this);this.mediaElement=null;this.e4=new g.AW(this.CVO,15E3,this);this.Bg=this.z3=!1;this.VA=NaN;this.Fw=!1;this.RJ=0;this.BZ=!1;this.bX=NaN;this.k6=new VW(new Map([["bufferhealth",function(){return b3N(B.hj)}], ["bandwidth",function(){return B.Wp()}], ["networkactivity",function(){return B.z4.schedule.O7}], ["livelatency",function(){return B.isAtLiveHead()&&B.isPlaying()?gN_(B):NaN}], ["rawlivelatency",function(){return gN_(B)}]])); this.gL=0;this.loop=!1;this.playbackRate=1;this.iq=0;this.hj=new sSQ(this);this.S8=!1;this.Hu=[];this.HD=this.VJ=0;this.dB=this.Nw=!1;this.YW=this.We=0;this.CE=new g.AW(this.MQ,0,this);this.Nv=!1;this.DU=null;this.DTg=[this.Pi,this.CE,this.e4,this.k6];this.DF=this.uF=null;this.mT=function(){var l=B.tX;l.provider.z4.K1||l.provider.U7.getVisibilityState()===3||(l.provider.z4.K1=!0);l.Ew();if(l.Z){var L=l.Z;L.C&&L.U<0&&L.provider.U7.getVisibilityState()!==3&&yG8(L)}l.qoe&&(l=l.qoe,l.LI&&l.j<0&&l.provider.z4.K1&& lFb(l),l.B&&vv(l));B.loader&&an(B);B.z4.fD&&!B.videoData.backgroundable&&B.mediaElement&&!B.F8()&&(B.isBackground()&&B.mediaElement.YK()?(B.jA("bgmobile",{suspend:1}),B.QH(!0,!0)):B.isBackground()||sJ(B)&&B.jA("bgmobile",{resume:1}))}; this.d3={Uv:function(l){B.Uv(l)}, dP$:function(l){B.fv=l}, wad:function(){return B.tX}, jQ:function(){return B.xg}, Qig:function(){return B.mE}, GW4:function(){return B.Ax}, bAa:function(){}, L:function(){return B.z4}, gV:function(){return B.mediaElement}, qVO:function(l){B.FP(l)}, KpG:function(){return B.J0}}; this.logger.debug(function(){return"creating, type "+x}); this.oK=new ZfQ(this.z4);this.lf=new kT(this.z4,this.J0,this);this.W5=new g.tG(this,function(l,L){l!==g.GF("endcr")||g.q(B.playerState,32)||B.hv();c(l,L,B.playerType);if(l===g.GF("transitiondetector")&&(l=B.loader)!=null&&(l=l.US)!=null){var Y=g.k(fbQ(L.id));Y.next();Y=Y.next().value;TYT(l,Y,L.start/1E3-l.U7.Y0(),jhN(l.B))}}); g.Z(this,this.W5);g.Z(this,this.hj);Z3T(this,b);this.videoData.subscribe("dataupdated",this.hmd,this);this.videoData.subscribe("dataloaded",this.UF,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.jA,this);this.videoData.subscribe("ctmpstr",this.AN,this);!this.tX||this.tX.b$();this.tX=new g.ou(new iS(this.videoData,this.z4,this));JGf(this.mT);this.visibility.subscribe("visibilitystatechange",this.mT);this.mE=new g.AW(this.KL,g.e_(this.z4.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Ax=new g.AW(this.KL,g.e_(this.z4.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Eq=new g.eR(this.bpr,350,this);g.Z(this,this.Eq)}; Z3T=function(p,x){if(p.playerType===2||p.z4.ye)x.j5=!0;var a=U2z(x.K1,x.M9,p.z4.B,p.z4.Y);a&&(x.adFormat=a);p.playerType===2&&(x.o9=!0);if(p.isFullscreen()||p.z4.B)a=g.mD("yt-player-autonavstate"),x.autonavState=a||(p.z4.B?2:p.videoData.autonavState);x.endSeconds&&x.endSeconds>x.startSeconds&&eW(p,x.endSeconds)}; GfI=function(p){var x=p.videoData;yAJ(p).then(void 0,function(a){p.videoData!==x||x.b$()||(a=rD(a),a.errorCode==="auth"&&p.videoData.errorDetail?p.jk(a.errorCode,2,unescape(p.videoData.errorReason),Ki(a.details),p.videoData.errorDetail,p.videoData.Jn||void 0):p.handleError(a))})}; AAx=function(p){if(!g.q(p.playerState,128))if(p.videoData.isLoaded(),p.logger.debug("finished loading playback data"),p.Bj=g.CG(p.videoData.T),g.GV(p.videoData)){p.FV.tick("bpd_s");cl(p).then(function(){p.FV.tick("bpd_c");if(!p.b$()){p.Vj&&(p.yp(Mf(Mf(p.playerState,512),1)),sJ(p));var v=p.videoData;v.endSeconds&&v.endSeconds>v.startSeconds&&eW(p,v.endSeconds);p.fZ.finished=!0;J8(p,"dataloaded");p.r$.Kn()&&O3N(p);ETb(p.lf,p.Iv)}}); p.D("html5_log_media_perf_info")&&p.jA("loudness",{v:p.videoData.tU.toFixed(3)},!0);var x,a=(x=p.mediaElement)==null?void 0:x.BX();if(a&&"disablePictureInPicture"in a&&p.z4.eQ)try{a.disablePictureInPicture=p.z4.Tg&&!p.videoData.backgroundable}catch(v){g.Hp(v)}NH8(p)}else J8(p,"dataloaded")}; cl=function(p){Rn(p);p.Iv=null;var x=OfU(p.z4,p.videoData,p.F8());p.xu=x;p.xu.then(function(a){PeN(p,a)},function(a){p.b$()||(a=rD(a),p.visibility.isBackground()?(Kf(p,"vp_none_avail"),p.xu=null,p.fZ.reset()):(p.fZ.finished=!0,p.jk(a.errorCode,a.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ki(a.details))))}); return x}; PeN=function(p,x){if(!p.b$()&&!x.videoData.b$()){p.logger.debug("finished building playback data");p.Iv=x;JAQ(p.hj,p.Iv);if(p.videoData.isLivePlayback){var a=qub(p.q6.gp,p.videoData.videoId)||p.loader&&!isNaN(p.loader.F5);a=p.D("html5_onesie_live")&&a;qr(p)||p.videoData.Zp>0&&!CT(p.videoData)||a||p.seekTo(p.HE(),{Cp:"videoplayer_playbackData",seekSource:18})}if(p.videoData.j.U){if(Fc1(p.videoData)){p.jk("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",Ki({missabrurl:1}));return}p.loader?g.Hp(Error("Duplicated Loader")): (a=g.e_(p.z4.experiments,"html5_onesie_defer_content_loader_ms"))&&p.X4()&&qub(p.q6.gp,p.videoData.wB$)?g.dT(function(){p.b$()||p.loader||nN1(p)},a):nN1(p)}else!p.videoData.j.U&&K_(p.videoData)&&p.Sw(new ky(p.videoData.videoId||"",4)); p.QQ();fIU(x).then(function(){var v={};p.dK(v);p.z4.qZ()&&p.D("html5_log_media_perf_info")&&p.jA("av1Info",v);an(p)})}}; O3N=function(p){p.b$();p.logger.debug("try finish readying playback");if(p.r$.finished)p.logger.debug("already finished readying");else if(p.fZ.finished)if(g.q(p.playerState,128))p.logger.debug("cannot finish readying because of error");else if(p.Bj.length)p.logger.debug(function(){return"cannot finish readying because of pending preroll: "+p.Bj}); else if(p.W5.started||osT(p.W5),p.CY())p.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{p.loader&&(p.Lh=u7U(p.loader.timing));p.r$.finished||(p.r$.finished=!0);var x=p.D("html5_onesie_live")&&p.loader&&!isNaN(p.loader.F5);!p.videoData.isLivePlayback||p.videoData.Zp>0&&!CT(p.videoData)||x||qr(p)||(p.logger.debug("seek to head for live"),p.seekTo(Infinity,{Cp:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.Bg=!0));Ihx(p.tX);p.logger.debug("finished readying playback"); p.publish("playbackready");U_("pl_c",p.FV.timerName)||(p.FV.tick("pl_c"),T3("pl_c",void 0,"video_to_ad"));U_("pbr",p.FV.timerName)||(p.FV.tick("pbr"),T3("pbr",void 0,"video_to_ad"))}else p.logger.debug("playback data not loaded")}; eW=function(p,x){p.UH&&eAo(p);p.UH=new g.gZ(x*1E3,0x7ffffffffffff);p.UH.namespace="endcr";p.addCueRange(p.UH)}; eAo=function(p){p.removeCueRange(p.UH);p.UH=null}; uF1=function(p,x,a,v,c){var J=p.tX,R=p.videoData;R.Z=a;var d=g.d$(p);a=new WGT(R,a,x,d?d.itag:"",v);p.z4.experiments.cO("html5_refactor_sabr_video_format_selection_logging")?(a.videoId=c,p.DF=a):J.qoe&&BzT(J.qoe,a);c=p.lf;c.Z=0;c.U=0;p.publish("internalvideoformatchange",R,x==="m")}; g.d$=function(p){var x=b9(p);return HX(x)||!p.Iv?null:g.ME(p.Iv.U.videoInfos,function(a){return x.B(a)})}; b9=function(p){if(p.Iv){var x=p.lf;var a=p.Iv;p=p.sO();var v=Dro(x);if(HX(v)){if(v=x.u_(a).compose(Qub(x,a)).compose(SZQ(x,a)).compose(z0z(x,a.videoData)).compose(wvg(x,a.videoData,a)).compose(tWQ(x,a)).compose(HeI(x,a)),HX(p)||x.D("html5_apply_pbr_cap_for_drm"))v=v.compose(T71(x,a))}else x.D("html5_perf_cap_override_sticky")&&(v=v.compose(tWQ(x,a))),x.D("html5_ustreamer_cap_override_sticky")&&(v=v.compose(T71(x,a)));v=v.compose(HeI(x,a));x=a.videoData.v0.compose(v).compose(a.videoData.d2).compose(p)}else x= dY;return x}; uG1=function(p){var x=p.lf;p=p.videoData;var a=z0z(x,p);x.D("html5_disable_client_autonav_cap_for_onesie")||a.compose(wvg(x,p));return a}; an=function(p){if(p.videoData.j&&p.videoData.j.U){var x=b9(p);p.loader&&CXg(p.loader,x)}}; VDN=function(p){var x;return!!(p.D("html5_native_audio_track_switching")&&g.BR&&((x=p.videoData.Z)==null?0:tD(x)))}; F6g=function(p){if(!VDN(p))return!1;var x;p=(x=p.mediaElement)==null?void 0:x.audioTracks();return!!(p&&p.length>1)}; xBg=function(p){var x=pOz(p);if(x)return p.videoData.getAvailableAudioTracks().find(function(a){return a.AX.getName()===x})}; pOz=function(p){var x;if(p=(x=p.mediaElement)==null?void 0:x.audioTracks())for(x=0;x0&&(x.YO=a.h7));x.zt=a.dh;x.IM=Vi(v,{},a.j||void 0,Ug(a));x.HO=Db(a)&&(g.SG(v)||g.jM(v));TV(a)&&(x.C=!0,x.S_=v.D("html5_estimate_live_partial_slice_duration"),x.YN=!0,v.D("html5_sabr_report_partial_segment_estimated_duration")&&(x.hf=!0),x.U=!0,x.rb=v.D("html5_sabr_enable_live_clock_offset"),x.wb= v.D("html5_disable_client_resume_policy_for_sabr"),x.OD=v.D("html5_trigger_loader_when_idle_network"),x.wS=v.D("html5_sabr_parse_live_metadata_playback_boundaries"),x.d_=v.D("html5_consume_onesie_next_request_policy_for_sabr"),x.Df=v.D("html5_sabr_report_next_ad_break_time"),x.A2=v.D("html5_log_high_res_buffer_timeline")&&v.qZ(),x.C$=v.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),x.fY=v.D("html5_gapless_sabr_btl_last_slice")&&kh(a),x.S4=v.D("html5_reset_last_appended_slice_on_seek")&&kh(a), CT(a)?(x.S1=!0,x.PG=v.D("html5_disable_variability_tracker_for_live"),x.LI=!0,v.D("html5_simplified_backup_timeout_sabr_live")&&(x.kC=!0,x.Y_=x.mw)):x.ol=v.D("html5_probe_request_on_sabr_request_progress"),x.Jf=v.D("html5_serve_start_seconds_seek_for_post_live_sabr"),x.MN=v.D("html5_flush_index_on_updated_timestamp_offset"),x.T=TV(a),x.HU=v.D("html5_ignore_partial_segment_from_live_readahead"),v.D("html5_include_partial_segment_for_jumbo_ll")&&Xz(a)&&(x.HU=!1),x.IY=v.D("html5_use_non_active_broadcast_for_post_live"), x.F5=v.D("html5_use_centralized_player_time"),x.XV=v.D("html5_log_centralized_player_time"),x.ud=v.D("html5_consume_onesie_sabr_seek"),x.Zt=v.D("html5_enable_sabr_seek_loader_refactor"),x.v0=g.e_(v.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),x.JK=v.D("html5_update_segment_start_time_from_media_header"),a.enableServerStitchedDai&&(x.Z=!0,x.M9=v.D("html5_reset_server_stitch_state_for_non_sabr_seek"),x.Wo=v.D("html5_remove_ssdai_append_pause")&&!a.O8(),x.tU=v.D("html5_ssdai_log_ssevt_in_loader")|| v.D("html5_ssdai_log_ssevt_in_loader_200ms")||v.D("html5_ssdai_log_ssevt_in_loader_timers")||v.D("html5_ssdai_log_ssevt_in_loader_cuerange"),v.D("html5_ssdai_log_ssevt_in_loader_timers")?x.oa=1:v.D("html5_ssdai_log_ssevt_in_loader_200ms")?x.oa=3:v.D("html5_ssdai_log_ssevt_in_loader_cuerange")&&(x.oa=0)),x.Ya=v.qZ()||a.O8());x.y8=g.exf(a);yK(v.C,g9.BITRATE)&&(x.y6=NaN);if(d=g.e_(v.experiments,"html5_request_size_max_kb"))x.V6=d*1024;v.C.j?x.ma="; "+g9.EXPERIMENTAL.name+"=allowed":v.D("html5_enable_cobalt_tunnel_mode")&& g.yl()&&(d=g9.TUNNELMODE,x.ma="; "+d.name+"="+d.valid);a=a.serverPlaybackStartConfig;(a==null?0:a.enable)&&(a==null?0:a.playbackStartPolicy)&&(x.GG=!0,pl(x,a.playbackStartPolicy,2));a=$BT(p);p.Yo.removeAll();a:{d=p.q6.gp;if(v=p.videoData.videoId)if(c=d.U.get(v)){d.U.remove(v);d=c;break a}d=void 0}p.loader=new g.Ke(p,p.z4.schedule,x,p.videoData.U,p.videoData.j,b9(p),a,p.videoData.enableServerStitchedDai,d,p.videoData.Zt);x=p.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&p.videoData.isLivePlayback&& p.X4()?!0:p.Vj&&g.dZ(p.z4)&&p.videoData.isLivePlayback;p.loader.initialize(p.getCurrentTime(),b9(p),x);p.videoData.probeUrl&&(p.loader.HO=p.videoData.probeUrl);if(p.Bj.length||p.Vj)p.videoData.cotn||r$(p,!1);K6g(p.hj,p.loader);p.DU&&(pyU(p.loader,new g.d7(p.DU)),p.jA("sdai",{sdl:1}));g.rz(p.videoData)&&(p=p.loader,p.policy.MC=p.policy.rN)}; Rn=function(p){p.loader&&(p.loader.dispose(),p.loader=null,K6g(p.hj,null));p.zG()?ajN(p):p.Fo()}; ajN=function(p){if(p.xg)if(p.logger.debug("release media source"),p.k7(),p.xg.C)try{p.z4.qZ()&&p.jA("rms",{l:"vprms",sr:p.zG(),rs:Ka(p.xg)});p.xg.clear();var x;(x=p.mediaElement)!=null&&(x.Z=p.xg);p.xg=null}catch(a){x=new g.gr("Error while clearing Media Source in VideoPlayer: "+a.name+", "+a.message),x=rD(x),p.handleError(x),p.Fo()}else p.Fo()}; sON=function(p,x){x=x===void 0?!1:x;if(p.xg)return p.xg.j;p.logger.debug("update media source");a:{x=x===void 0?!1:x;try{g.yl()&&p.videoData.Xy()&&OVf(p.mediaElement);var a=p.mediaElement.jQ(p.Ve(),p.iN())}catch(c){if(lI1(p.s1,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);p.jk("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}p.zk(a,!1,!1,x)}var v;return((v=p.jQ())==null?void 0:v.j)||null}; vPb=function(p,x){x=x===void 0?!1:x;if(p.loader){p.videoData.enableServerStitchedDai&&cU1(p.loader);var a=p.getCurrentTime()-p.Y0();p.loader.seek(a,{XA:x}).LT(function(){})}else nN1(p)}; JrQ=function(p,x,a,v){a=a===void 0?!1:a;v=v===void 0?!1:v;if(p.xg&&(!x||p.xg===x)){p.logger.debug("media source opened");var c=p.getDuration();!c&&CT(p.videoData)&&(c=25200);if(p.xg.isView){var J=c;p.logger.debug(function(){return"Set media source duration to "+J+", video duration "+c}); J>p.xg.getDuration()&&crg(p,J)}else crg(p,c);mhQ(p.loader,p.xg,a,v);p.publish("mediasourceattached")}}; crg=function(p,x){if(p.xg){p.xg.xb(x);var a;(a=p.loader)!=null&&a.policy.F5&&(a.S=x)}}; i_1=function(p,x){uF1(p,x.reason,x.U.info,x.token,x.videoId)}; J8=function(p,x){p.publish("internalvideodatachange",x===void 0?"dataupdated":x,p.videoData)}; RzQ=function(p){for(var x=g.k("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),a=x.next();!a.done;a=x.next())p.Pi.X(p.mediaElement,a.value,p.FP,p);p.z4.r_&&p.mediaElement.d4()&&(p.Pi.X(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.MAr,p),p.Pi.X(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.Kdg,p))}; dBg=function(p){g.BZ(p.Nn);KWI(p)||(p.Nn=g.bF(function(){return KWI(p)},100))}; KWI=function(p){var x=p.mediaElement;x&&p.z3&&!p.videoData.pI&&!U_("vfp",p.FV.timerName)&&x.zF()>=2&&!x.isEnded()&&ew(x.eh())&&p.FV.tick("vfp");return(x=p.mediaElement)&&!p.videoData.pI&&x.getDuration()>0&&(x.isPaused()&&x.zF()>=2&&ew(x.eh())&&(U_("pbp",p.FV.timerName)||p.FV.tick("pbp"),!p.videoData.ev||p.qY||x.isSeeking()||(p.qY=!0,p.publish("onPlaybackPauseAtStart"))),x=x.getCurrentTime(),zx(p.oK,x))?(p.Oa(),!0):!1}; rro=function(p){p.tX.onProgress();if(fT(p.videoData)&&Date.now()>p.iq+6283){if(!(!p.isAtLiveHead()||p.videoData.U&&yi(p.videoData.U))){var x=p.tX;if(x.qoe){x=x.qoe;var a=x.provider.U7.sI(),v=g.sZ(x.provider);vuN(x,v,a);a=a.j;isNaN(a)||g.xT(x,v,"e2el",[a.toFixed(3)])}}p.D("html5_alc_live_log_rawlat")?(x=p.videoData,x=g.RU(x.L())?!0:g.lm(x.L())?x.drmProduct==="6":!1):x=g.RU(p.z4);v=p.D("html5_always_log_rawlat");(x||v)&&p.jA("rawlat",{l:pf(p.k6,"rawlivelatency").toFixed(3)});p.iq=Date.now()}p.videoData.Z&& tD(p.videoData.Z)&&(x=p.BF())&&x.videoHeight!==p.HD&&(p.HD=x.videoHeight,uF1(p,"a",bSx(p,p.videoData.LI)))}; bSx=function(p,x){if(x.U.video.quality==="auto"&&tD(x.getInfo())&&p.videoData.Kp)for(var a=g.k(p.videoData.Kp),v=a.next();!v.done;v=a.next())if(v=v.value,v.getHeight()===p.HD&&v.U.video.quality!=="auto")return v.getInfo();return x.getInfo()}; gN_=function(p){if(!fT(p.videoData))return NaN;var x=0;p.loader&&p.videoData.U&&(x=CT(p.videoData)?p.loader.wq.f3()||0:p.videoData.U.F5);return(0,g.WR)()/1E3-p.Ez()-x}; ljg=function(p){p.mediaElement&&p.mediaElement.F8()&&(p.bX=(0,g.WR)());p.z4.mw?g.dT(function(){BkQ(p)},0):BkQ(p)}; BkQ=function(p){var x;if((x=p.xg)==null||!x.FS()){if(p.mediaElement)try{p.Lg=p.mediaElement.playVideo()}catch(v){Kf(p,"err."+v)}if(p.Lg){var a=p.Lg;a.then(void 0,function(v){p.logger.debug(function(){return"playMediaElement failed: "+v}); if(!g.q(p.playerState,4)&&!g.q(p.playerState,256)&&p.Lg===a)if(v&&v.name==="AbortError"&&v.message&&v.message.includes("load"))p.logger.debug(function(){return"ignore play media element failure: "+v.message}); else{var c="promise";v&&v.name&&(c+=";m."+v.name);Kf(p,c);p.S8=!0;p.videoData.x_=!0}})}}}; Kf=function(p,x){g.q(p.playerState,128)||(p.yp(k_(p.playerState,1028,9)),p.jA("dompaused",{r:x}),p.publish("onAutoplayBlocked"))}; sJ=function(p,x){x=x===void 0?!1:x;if(!p.mediaElement||!p.videoData.j)return!1;var a=x;a=a===void 0?!1:a;var v=null;var c;if((c=p.videoData.j)==null?0:c.U){v=sON(p,a);var J;(J=p.loader)==null||J.resume()}else Rn(p),p.videoData.LI&&(v=p.videoData.LI.IK());c=p.mediaElement.YK();a=!1;c&&c.equals(v)||(LW1(p,v),a=!0);g.q(p.playerState,2)||(v=p.hj,x=x===void 0?!1:x,v.C||!(v.j>0)||v.mediaElement&&v.mediaElement.getCurrentTime()>0||(x={Cp:"seektimeline_resumeTime",XA:x},v.videoData.pI||(x.seekSource=15), v.seekTo(v.j,x)));a:{x=a;if(TV(p.videoData)){if(!p.videoData.Sg())break a}else if(!g.Eg(p.videoData))break a;if(p.mediaElement)if((v=p.videoData.C)&&p.mediaElement.d4()){c=p.mediaElement.BX();if(p.fv)if(c!==p.fv.element)Bl(p);else if(x&&v.flavor==="fairplay"&&!gT())Bl(p);else break a;if(p.D("html5_report_error_for_unsupported_tvos_widevine")&&gT()&&v.flavor==="widevine")p.jk("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{p.fv=new V7x(c,p.videoData,p.z4);p.fv.subscribe("licenseerror", p.Wu,p);p.fv.subscribe("qualitychange",p.SS5,p);p.fv.subscribe("heartbeatparams",p.cw,p);p.fv.subscribe("keystatuseschange",p.Uv,p);p.fv.subscribe("ctmp",p.jA,p);x=g.k(p.Yo.keys);for(v=x.next();!v.done;v=x.next())v=p.Yo.get(v.value),p.fv.uj(v);p.D("html5_eme_loader_sync")||p.Yo.removeAll()}}else p.jk("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return a}; LW1=function(p,x){p.FV.tick("vta");T3("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&BHg(p.hj,p.getCurrentTime());p.mediaElement.activate(x);p.xg&&eh(4);!p.videoData.pI&&p.playerState.isOrWillBePlaying()&&p.e4.start();if(VDN(p)){var a;if(x=(a=p.mediaElement)==null?void 0:a.audioTracks())x.onchange=function(){p.publish("internalaudioformatchange",p.videoData,!0)}}}; Bl=function(p){p.fv&&(p.fv.dispose(),p.fv=null)}; Y9x=function(p){var x=x===void 0?!1:x;p.logger.debug("reattachVideoSource");p.mediaElement&&(p.xg?(Bl(p),p.Fo(),sON(p,x)):(p.videoData.LI&&p.videoData.LI.FI(),p.mediaElement.stopVideo()),p.playVideo())}; hzb=function(p,x){p.z4.D("html5_log_rebuffer_reason")&&(x={r:x,lact:hJ()},p.mediaElement&&(x.bh=ll(p.mediaElement)),p.jA("bufreason",x))}; jOT=function(p,x){if(p.z4.qZ()&&p.mediaElement){var a=p.mediaElement.cX();a.omt=(p.mediaElement.getCurrentTime()+p.Y0()).toFixed(3);a.ps=p.playerState.state.toString(16);a.rt=(g.sZ(p.tX.provider)*1E3).toFixed();a.e=x;p.Hu[p.VJ++%5]=a}try{if(x==="timeupdate"||x==="progress")return}catch(v){}p.logger.debug(function(){return"video element event "+x})}; IjT=function(p){if(p.z4.qZ()){p.Hu.sort(function(v,c){return+v.rt-+c.rt}); for(var x=g.k(p.Hu),a=x.next();!a.done;a=x.next())a=a.value,p.jA("vpe",Object.assign({t:a.rt},a));p.Hu=[];p.VJ=0}}; MoN=function(p){if(g.wT("cobalt")&&g.wT("nintendo switch")){var x=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;p.jA("nxdock",{d:x})}}; r$=function(p,x){var a;(a=p.loader)==null||Dhf(a,x)}; NH8=function(p){lX(p.videoData,"html5_set_debugging_opt_in")&&(p=g.oQ(),g.tX(0,183)||(wr(183,!0),p.save()))}; JUN=function(p,x){p.q6.BN()||(p.jA("sgap",{f:x}),p.q6.clearQueue(!1,x==="pe"))}; qr=function(p){return p.D("html5_disable_video_player_initiated_seeks")&&TV(p.videoData)}; WW_=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);Ww(this.api,"isLifaAdPlaying",function(){return x.api.isLifaAdPlaying()}); this.events.X(p,"serverstitchedvideochange",function(){var a;(a=x.api.getVideoData())!=null&&a.O8()&&(x.api.isLifaAdPlaying()?(x.playbackRate=x.api.getPlaybackRate(),x.api.setPlaybackRate(1)):x.api.setPlaybackRate(x.playbackRate))}); this.playbackRate=1}; l9=function(p){jZ.call(this,"Loop",g.Hy.w6);this.W=p;var x=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:CoT();this.setIcon(x);this.subscribe("select",this.Z,this);p.createClientVe(this.element,this,28661);this.X(p,"settingsMenuVisibilityChanged",this.U);this.listen("click",this.logClick);this.X(p,"onLoopChange",this.onLoopChange);IW(this,p.getLoopVideo());p.Im().u2(this)}; ktI=function(p){d1.call(this,p);var x=this;p.addEventListener("settingsMenuInitialized",function(){x.menuItem||(x.menuItem=new l9(x.api),g.Z(x,x.menuItem))}); p.addEventListener("videodatachange",function(a,v){a=x.api.getPresentingPlayerType()===2;var c;(c=x.menuItem)==null||c.eD(!v.isLivePlayback&&!a)})}; DBz=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);Ww(this.api,"seekToChapterWithAnimation",function(a){x.seekToChapterWithAnimation(a)}); Ww(this.api,"seekToTimeWithAnimation",function(a,v){x.seekToTimeWithAnimation(a,v)}); Ww(this.api,"renderChapterSeekingAnimation",function(a,v,c){x.api.renderChapterSeekingAnimation(a,v,c)}); Ww(this.api,"setMacroMarkers",function(a){x.setMacroMarkers(p,a)}); Ww(this.api,"changeMarkerVisibility",function(a,v,c){x.changeMarkerVisibility(a,v,c)}); Ww(this.api,"isSameMarkerTypeVisible",function(a){return x.isSameMarkerTypeVisible(a)})}; UB1=function(p,x,a){var v=p.api.getCurrentTime()*1E30&&c>0&&(a.width+=c,g.Ab(x.element,"width",a.width+"px")));p.size=a}}; g.ff=function(p,x){var a=p.U[p.U.length-1];a!==x&&(p.U.push(x),szx(p,a,x))}; g.Cf=function(p){if(!(p.U.length<=1)){var x=p.U.pop(),a=p.U[0];p.U=[a];szx(p,x,a,!0)}}; szx=function(p,x,a,v){vqU(p);x&&(x.unsubscribe("size-change",p.Vo,p),x.unsubscribe("back",p.o5,p));a.subscribe("size-change",p.Vo,p);a.subscribe("back",p.o5,p);if(p.E7){g.$W(a.element,v?"ytp-panel-animate-back":"ytp-panel-animate-forward");a.WO(p.element);a.focus();p.element.scrollLeft=0;p.element.scrollTop=0;var c=p.size;a1I(p);g.$G(p.element,c);p.S=new g.AW(function(){cdf(p,x,a,v)},20,p); p.S.start()}else a.WO(p.element),x&&x.detach()}; cdf=function(p,x,a,v){p.S.dispose();p.S=null;g.$W(p.element,"ytp-popup-animating");v?(g.$W(x.element,"ytp-panel-animate-forward"),g.sm(a.element,"ytp-panel-animate-back")):(g.$W(x.element,"ytp-panel-animate-back"),g.sm(a.element,"ytp-panel-animate-forward"));g.$G(p.element,p.size);p.V=new g.AW(function(){g.sm(p.element,"ytp-popup-animating");x.detach();g.vG(x.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);p.V.dispose();p.V=null},250,p); p.V.start()}; vqU=function(p){p.S&&g.qF(p.S);p.V&&g.qF(p.V)}; Xq=function(p){g.Sd.call(this,p,"ytp-shopping-product-menu");this.kN=new g.Qr(this.W);g.Z(this,this.kN);this.hide();g.ff(this,this.kN);g.qh(this.W,this.element,4)}; RgI=function(p,x,a){var v,c=x==null?void 0:(v=x.text)==null?void 0:v.simpleText;c&&(a=Jd1(p,a,c,x==null?void 0:x.icon,x==null?void 0:x.secondaryIcon),x.navigationEndpoint&&a.listen("click",function(){p.W.NT("innertubeCommand",x.navigationEndpoint);p.hide()},p))}; Kvf=function(p,x,a){var v,c=x==null?void 0:(v=x.text)==null?void 0:v.simpleText;c&&Jd1(p,a,c,x==null?void 0:x.icon).listen("click",function(){var J;(x==null?void 0:(J=x.icon)==null?void 0:J.iconType)==="HIDE"?p.W.publish("featuredproductdismissed"):x.serviceEndpoint&&p.W.NT("innertubeCommand",x.serviceEndpoint);p.hide()},p)}; Jd1=function(p,x,a,v,c){x=new g.cy(g.JU({},[],!1,!!c),x,a);c&&x.updateValue("secondaryIcon",dZJ(c));x.setIcon(dZJ(v));g.Z(p,x);p.kN.u2(x,!0);return x}; dZJ=function(p){if(!p)return null;switch(p.iconType){case "ACCOUNT_CIRCLE":return{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{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 jQ1();case "HIDE":return{J:"svg",G:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"g",N:[{J:"path",G:{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 hv()}}; i9=function(p){Hl.call(this,p,!1,!0);this.isCounterfactual=this.Z=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.N({J:"button",CI:["ytp-featured-product-overflow-icon","ytp-button"],G:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.N({J:"img",K:"ytp-suggested-action-badge-img",G:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Z(this,this.thumbnailImage);this.thumbnailIcon=new g.N({J:"div",K:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Z(this,this.thumbnailIcon);this.banner=new g.N({J:"a",K:"ytp-suggested-action-container",N:[this.thumbnailImage,this.thumbnailIcon,{J:"div",K:"ytp-suggested-action-details",N:[{J:"text",K:"ytp-suggested-action-title",wr:"{{title}}"},{J:"text",K:"ytp-suggested-action-subtitle",wr:"{{subtitle}}"},{J:"text",K:"ytp-suggested-action-metadata-text", wr:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Z(this,this.banner);this.banner.WO(this.j.element);this.X(this.W,"videodatachange",this.onVideoDataChange);this.X(this.W,g.GF("suggested_action_view_model"),this.wXr);this.X(this.W,g.Oo("suggested_action_view_model"),this.slg);this.X(this.overflowButton.element,"click",this.Cr);this.X(p,"featuredproductdismissed",this.yj);this.W.createServerVe(this.banner.element,this.banner,!0)}; bWo=function(p){p.isInitialized&&(p.enabled=p.isVisible,p.pI=p.isVisible,UJ(p),p.N1(),p.thumbnailImage.eD(p.isVisible),p.shouldHideDismissButton||p.dismissButton.eD(p.isVisible),p.shouldShowOverflowButton&&p.overflowButton.eD(p.isVisible))}; on=function(){i9.apply(this,arguments)}; rd_=function(p){d1.call(this,p);this.U=new on(this.api);g.Z(this,this.U);g.qh(this.api,this.U.element,4)}; t8=function(p){d1.call(this,p);var x=this;this.U=!0;var a=new g.II(p);g.Z(this,a);a.X(p,"internalaudioformatchange",function(v,c){Bi_(x,v,c)}); a.X(p,"videoplayerreset",function(){l11(x)}); a.X(p,"videodatachange",function(v,c){x.onVideoDataChange(v,c)})}; Bi_=function(p,x,a){if(a){var v="";LvN(p,x)&&(v=x,p.api.L().Ra=x);if(v&&YDo(p,v)){fnb(p.api,v);var c;mo(TG(p.api.L(),(c=p.api.getVideoData())==null?void 0:g.vw(c)),function(J){hgx(p,v,J)})}}}; l11=function(p){var x;if((x=hS())==null?0:x.size){var a;mo(TG(p.api.L(),(a=p.api.getVideoData())==null?void 0:g.vw(a)),function(v){(v=jzo(v))&&YDo(p,v)&&(p.api.L().Ra=v)})}}; hgx=function(p,x,a){jzo(a)!==x&&(I1T([{settingItemId:z2(a),settingOptionValue:{stringValue:x}}]),mo(p.tR(),function(v){jjf(v,z2(a),{stringValue:x})}))}; MXx=function(p,x){Sx(mo(mo(p.tR(),function(a){return Y0I(a,[z2(x)])}),function(a){if(a){a=g.k(a); for(var v=a.next();!v.done;v=a.next()){var c=v.value;v=c.key;c=c.value;v&&c&&(I1T([{settingItemId:v,settingOptionValue:c}]),l11(p))}}}),function(){p.U=!0})}; LvN=function(p,x){p=p.api.getAvailableAudioTracks();p=g.k(p);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.getLanguageInfo().getId()===x)return a;return null}; jzo=function(p){p=z2(p);var x=hS();p=x?x.get(p):void 0;return p&&p.stringValue?p.stringValue:""}; z2=function(p){var x=(484).toString();p&&(x=(483).toString());return x}; YDo=function(p,x){var a;return x.split(".")[0]!==""&&((a=p.api.getVideoData())==null?void 0:!Je(a))}; I1T=function(p){var x=hS();x||(x=new Map);p=g.k(p);for(var a=p.next();!a.done;a=p.next())a=a.value,x.set(a.settingItemId,a.settingOptionValue);x=JSON.stringify(Object.fromEntries(x));g.Qe("yt-player-user-settings",x,2592E3)}; g.w$=function(p,x,a,v,c,J,R){g.cy.call(this,g.JU({"aria-haspopup":"true"}),x,p);this.PX=v;this.T=!1;this.j=null;this.options={};this.Z=new g.Qr(a,void 0,p,c,J,R);g.Z(this,this.Z);this.listen("keydown",this.hq);this.listen("click",this.open)}; Wv_=function(p){if(p.j){var x=p.options[p.j];x.element.getAttribute("aria-checked");x.element.setAttribute("aria-checked","false");p.j=null}}; kg1=function(p,x){g.w$.call(this,"Timer de suspens\u00e3o",g.Hy.SLEEP_TIMER,p,x);this.W=p;this.Y={};this.S=this.CH("Off");this.V=this.U="";p.D("web_settings_menu_icons")&&(x=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(x)); this.B=new g.N({J:"div",CI:["ytp-menuitem-label-wrapper"],N:[{J:"div",wr:"Fim do v\u00eddeo"},{J:"div",CI:["ytp-menuitem-sublabel"],wr:"{{content}}"}]});g.Z(this,this.B);this.listen("click",this.onClick);this.X(p,"videodatachange",this.onVideoDataChange);this.X(p,"presentingplayerstatechange",this.Yg);this.X(p,"settingsMenuVisibilityChanged",this.iD);p.createClientVe(this.element,this,218889);this.Yg();this.W.NT("onSleepTimerFeatureAvailable")}; DZ8=function(p){var x="Off 10 15 20 30 45 60".split(" "),a;((a=p.W.getVideoData())==null?0:a.isLivePlayback)||x.push("End of video");a=p.W.getPlaylist();var v;a&&((v=a.listId)==null?void 0:v.type)!=="RD"&&x.push("End of playlist");p.U1(g.IT(x,p.CH));p.Y=g.uZ(x,p.CH,p);x=p.CH("End of video");p.options[x]&&g.vy(p.options[x],p.B)}; UZ8=function(p,x){var a=p.Y[x],v=a==="End of video"||a==="End of playlist";a==="Off"&&(p.U="");p.W.getPlayerState()!==0&&p.W.getPlayerState()!==5||!v?(p.S=x,g.w$.prototype.UN.call(p,x),p.oB(x),p.W.NT("onSleepTimerSettingsChanged",a)):p.W.NT("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; EJ=function(p){d1.call(this,p);var x=this;p.addEventListener("settingsMenuInitialized",function(){x.menuItem||(x.menuItem=new kg1(x.api,x.api.Im()),g.Z(x,x.menuItem))}); p.addEventListener("openSettingsMenuItem",function(a){if(a==="menu_item_sleep_timer"){if(!x.menuItem){var v;(v=x.api.Im())==null||v.Y$()}x.menuItem.open()}}); Ww(p,"resetSleepTimerMenuSettings",function(){x.resetSleepTimerMenuSettings()}); Ww(p,"setSleepTimerTimeLeft",function(a){x.setSleepTimerTimeLeft(a)}); Ww(p,"setVideoTimeLeft",function(a){x.setVideoTimeLeft(a)})}; HWU=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"onSnackbarMessage",function(a){switch(a){case 1:a=x.api.getPlayerStateObject(),a.isBuffering()&&(x.api.D("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.q(a,8)&&g.q(a,16))&&x.api.NT("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubra por qu\u00ea"}]},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.g$=function(p,x,a,v,c){x=x===void 0?!1:x;v=v===void 0?!1:v;c=c===void 0?!1:c;g.Fx.call(this);this.T=c;this.V=!1;this.B=new kz(this);this.C=this.S=null;this.j=this.Z=!1;g.Z(this,this.B);this.target=p;this.U=x;this.Y=a||p;this.V=v;x&&(g.bP&&this.target.setAttribute("draggable","true"),c||(this.target.style.touchAction="none"));yr(this)}; Zh=function(p){g.UU(p.B,!p.U)}; yr=function(p){p.C=null;p.S=null;p.X(G2("over"),p.ze);p.X("touchstart",p.jZ);p.U&&p.X(G2("down"),p.u5I)}; Ti1=function(p,x){for(var a=0;aB.start&&a>=5;D+=f}c=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)+" "+(D.substr(12,4)+" "+D.substr(16,4))}else c="";R={video_id_and_cpn:String(x.videoId)+" / "+c,codecs:"",dims_and_frames:"",bandwidth_kbps:R.toFixed(0)+" Kbps",buffer_health_seconds:b.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:a,extra_debug_info:"",bandwidth_style:L,network_activity_style:L,network_activity_bytes:d.toFixed(0)+" KB",shader_info:l,shader_info_style:l?"":"display:none",playback_categories:""};d=v.clientWidth+"x"+v.clientHeight+(B>1?"*"+B.toFixed(2):"");b="-";J.totalVideoFrames&&(b=(J.droppedVideoFrames||0)+" dropped of "+J.totalVideoFrames);R.dims_and_frames=d+" / "+b;p=p.getVolume();d=q5J(x);var X;if((X=x.B)==null?0:X.audio.Z)X= "VB";else{var E;X=((E=x.B)==null?0:E.audio.U)?"DRC":Math.round(p*d)+"%"}E=Math.round(p)+"% / "+X;X=x.tU.toFixed(1);isFinite(Number(X))&&(E+=" (content loudness "+X+"dB)");R.volume=E;R.resolution=v.videoWidth+"x"+v.videoHeight;if(v=x.Z){if(E=v.video)X=E.fps,X>1&&(R.resolution+="@"+X),(X=J.Cf)&&X.video&&(R.resolution+=" / "+X.video.width+"x"+X.video.height,X.video.fps>1&&(R.resolution+="@"+X.video.fps)),R.codecs=Ckf(v),!x.B||v.audio&&v.video?v.o0&&(R.codecs+=" / "+v.o0+"A"):R.codecs+=" / "+Ckf(x.B), E.U||E.primaries?(X=E.U||"unknown",X==="smpte2084"?X+=" (PQ)":X==="arib-std-b67"&&(X+=" (HLG)"),R.color=X+" / "+(E.primaries||"unknown"),R.color_style=""):R.color_style="display:none";if(v.debugInfo)for(R.fmt_debug_info="",v=g.k(v.debugInfo),E=v.next();!E.done;E=v.next())E=E.value,R.fmt_debug_info+=E.label+":"+E.text+" ";R.fmt_debug_info_style=R.fmt_debug_info&&R.fmt_debug_info.length>0?"":"display:none"}v=x.isLivePlayback;E=x.S3;R.live_mode_style=v||E?"":"display:none";R.live_latency_style=v?"": "display:none";if(E)R.live_mode="Post-Live"+(CT(x)?" Manifestless":"");else if(v){E=J.tM;R.live_latency_secs=E.toFixed(2)+"s";v=CT(x)?"Manifestless, ":"";x.O7&&(v+="Windowed, ");X="Uncertain";if(E>=0&&E<120)if(x.latencyClass&&x.latencyClass!=="UNKNOWN")switch(x.latencyClass){case "NORMAL":X="Optimized for Normal Latency";break;case "LOW":X="Optimized for Low Latency";break;case "ULTRALOW":X="Optimized for Ultra Low Latency";break;default:X="Unknown Latency Setting"}else X=x.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";v+=X;(E=J.Kf)&&(v+=", seq "+E.sequence);R.live_mode=v}!J.isGapless||kh(x)&&J.BN||(R.playback_categories+="Gapless ");R.playback_categories_style=R.playback_categories?"":"display:none";R.bandwidth_samples=J.D8;R.network_activity_samples=J.WV;R.live_latency_samples=J.G9;R.buffer_health_samples=J.AK;J=g.rz(x);if(x.cotn||J)R.cotn_and_local_media=(x.cotn?x.cotn:"null")+" / "+J;R.cotn_and_local_media_style=R.cotn_and_local_media?"":"display:none"; lX(x,"web_player_release_debug")?(R.release_name=K[41],R.release_style=""):R.release_style="display:none";R.debug_info&&Y.length>0&&R.debug_info.length+Y.length<=60?R.debug_info+=" "+Y:R.extra_debug_info=Y;R.extra_debug_info_style=R.extra_debug_info&&R.extra_debug_info.length>0?"":"display:none";return R}; Ckf=function(p){var x=/codecs="([^"]*)"/.exec(p.mimeType);return x&&x[1]?x[1]+" ("+p.itag+")":p.itag}; ed=function(p,x,a,v,c){g.N.call(this,{J:"div",K:"ytp-horizonchart"});this.V=x;this.sampleCount=a;this.B=v;this.S=c;this.index=0;this.heightPx=-1;this.j=this.Z=null;this.U=Math.round(p/a);this.element.style.width=this.U*this.sampleCount+"px";this.element.style.height=this.V+"em"}; u9=function(p,x){if(p.heightPx===-1){var a=null;try{a=g.Lw("CANVAS"),p.Z=a.getContext("2d")}catch(d){}if(p.Z){var v=p.U*p.sampleCount;p.j=a;p.j.width=v;p.j.style.width=v+"px";p.element.appendChild(p.j)}else for(p.sampleCount=Math.floor(p.sampleCount/4),p.U*=4,a=0;a1?2:1,p.j.height=p.heightPx*a,p.j.style.height= p.heightPx+"px",p.Z.scale(1,a)));x=g.k(x);for(v=x.next();!v.done;v=x.next()){a=p;var c=p.index,J=v.value;for(v=0;v+20&&g.It(x.Z.element);v.classList.add("ytp-timely-actions-overlay");x.Z.element.appendChild(v)}); g.Z(this,this.Z);this.D("web_player_overlay_positioned_layout")?this.events.X(p,"basechromeinitialized",function(){x.api.AR(x.Z.element,4,!0);x.Z.element.setAttribute("data-overlay-order","10")}):g.qh(this.api,this.Z.element,4)}; qDx=function(p){p.timelyActions&&(p.B=p.timelyActions.reduce(function(x,a){if(a.cueRangeId===void 0)return x;x[a.cueRangeId]=0;return x},{}))}; xN=function(p,x){if(p.timelyActions){p=g.k(p.timelyActions);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.cueRangeId===x)return a}}; nqN=function(p,x){if((p=xN(p,x))&&p.onCueRangeExit)return SJ(p.onCueRangeExit)}; OWU=function(p,x){return p.j===void 0?!1:x.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(x.seekLengthMilliseconds)===5E3?p.j===72:x.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(x.seekLengthMilliseconds)===1E4?p.j===74:x.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(x.seekLengthMilliseconds)===5E3?p.j===71:x.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(x.seekLengthMilliseconds)===1E4?p.j===73:!1}; egJ=function(p,x){var a=Number(x==null?void 0:x.maxVisibleDurationMilliseconds);a&&($N(p),p.pI=setTimeout(function(){if(p.U!==void 0&&(x==null?void 0:x.cueRangeId)===p.U){p.T=!1;var v=nqN(p,p.U);v&&p.api.NT("innertubeCommand",v)}},a))}; $N=function(p){p.pI&&clearTimeout(p.pI);p.pI=void 0;p.T=!1}; Nix=function(p){if(p=p.getWatchNextResponse()){var x,a;p=(x=p.playerOverlays)==null?void 0:(a=x.playerOverlayRenderer)==null?void 0:a.timelyActionsOverlayViewModel;x=g.O(p,u2o);if(x!=null&&x.timelyActions)return x==null?void 0:x.timelyActions.map(function(v){return g.O(v,VX1)}).filter(function(v){return!!v})}}; Fvf=function(p){d1.call(this,p);var x=this;ku(this.api,"getPlaybackRate",function(){return x.api.getPlaybackRate()}); ku(this.api,"setPlaybackRate",function(a){typeof a==="number"&&x.api.setPlaybackRate(a)})}; aS=function(p,x,a,v){jZ.call(this,"VOICE_BOOST",g.Hy.Q7);this.U=!1;this.W=p;this.PX=p.Im();this.B=x;this.j=a;this.hasVoiceBoostAudioTrack=v;this.X(p,"videodatachange",this.Z);this.setIcon(TrQ());this.subscribe("select",this.S,this);this.Z()}; ve=function(p){d1.call(this,p);var x=this;this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"settingsMenuInitialized",function(){p5Q(x)}); Ww(this.api,"getVoiceBoostUserPreference",function(){return x.getVoiceBoostUserPreference()}); Ww(this.api,"setVoiceBoostUserPreference",function(v){x.setVoiceBoostUserPreference(v)}); Ww(this.api,"hasVoiceBoostAudioTrack",function(){return x.hasVoiceBoostAudioTrack()}); var a;this.U=(a=$6g())!=null?a:0;this.updateEnvironmentData()}; p5Q=function(p){p.menuItem||(p.menuItem=new aS(p.api,function(x){p.setVoiceBoostUserPreference(x)},function(){return p.getVoiceBoostUserPreference()},function(){return p.hasVoiceBoostAudioTrack()}),g.Z(p,p.menuItem))}; xbb=function(p){p=p.Wh();if(!p)return!1;p=g.Fj(p).exp||"";return p.includes("xpv")||p.includes("xpe")}; $bo=function(p){p=g.k(g.ce(p,!0));for(var x=p.next();!x.done;x=p.next())if(xbb(x.value))return!0;return!1}; a0Q=function(p,x){p=g.k(g.ce(p,!0));for(var a=p.next();!a.done;a=p.next())if(a=a.value,xbb(a)){var v={potc:"1",pot:x};a.url&&(a.url=py(a.url,v))}}; swz=function(p){return g.t(function(x){if(x.Z==1)return g.DJ(x,2),g.C(x,p,4);if(x.Z!=2)return g.T1(x,0);g.SI(x);g.k1(x)})}; RS=function(p){d1.call(this,p);var x=this;this.useLivingRoomPoToken=!1;this.C=new g.rw;this.U=!1;this.FV=null;this.Y=!1;this.B=null;this.S=!1;var a=p.L().getWebPlayerContextConfig();this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"spsumpreject",function(v,c,J){x.S=c;v&&x.Y&&!x.B&&(x.D("html5_generate_content_po_token")&&J?x.jY(J):x.D("html5_generate_session_po_token")&&vd1(x));x.B||x.api.jA("stp",{s:+x.Y,b:+x.S})}); this.events.X(p,"poTokenVideoBindingChange",function(v){x.jY(v)}); this.useLivingRoomPoToken=!(a==null||!a.useLivingRoomPoToken);p.addEventListener("csiinitialized",function(){x.FV=p.UT();var v=(x.D("html5_generate_session_po_token")||x.D("html5_generate_content_po_token"))&&!x.useLivingRoomPoToken;try{if(x.D("html5_use_shared_owl_instance"))c3g(x);else if(v){x.FV.dI("pot_isc");var c=g.e_(x.api.L().experiments,"html5_webpo_kaios_defer_timeout_ms");c?(x.j=E3(),g.dT(function(){JA(x)},c)):x.D("html5_webpo_idle_priority_job")?(x.j=E3(),g.AX(g.ql(),function(){JA(x)})): JA(x)}}catch(J){J instanceof Error&&g.Hp(J)}}); p.addEventListener("trackListLoaded",this.Qa.bind(this));p.qp(this)}; J3T=function(p){var x=LH(p.experiments,"html5_web_po_request_key");return x?x:g.dZ(p)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; RuU=function(p){var x=new s2Q,a={},v=(a["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",a);return new jK(x,p,function(){return v})}; Ky_=function(p){return new IA(p)}; K3=function(p,x){p.D("html5_webpo_bge_ctmp")&&p.api.jA(x,{hwpo:!!p.Z,hwpor:p.U})}; c3g=function(p){var x,a;g.t(function(v){if(v.Z==1)return K3(p,"swpo_i"),p.j=E3(),dH(p),g.C(v,pv(),2);if(v.Z!=3)return x=v.U,K3(p,"swpo_co"),g.C(v,XJT(x),3);a=v.U;p.D("html5_web_po_token_disable_caching")||a.ix(150);p.Z=a;K3(p,"swpo_cc");swz(a.jH()).then(function(){p.U=!0;p.C.resolve();K3(p,"swpo_re")}); g.dT(function(){JA(p);K3(p,"swpo_si")},0); g.k1(v)})}; r3o=function(p){var x=p.api.L(),a=RuU(J3T(x)),v=a.ZR.bind(a);a.ZR=function(d){var b;return g.t(function(r){if(r.Z==1)return g.C(r,v(d),2);b=r.U;p.api.jA("itr",{});return r.return(b)})}; try{var c=Ky_({p_:a,yM:{maxAttempts:5},uM:{rM:"CLEn",disable:x.experiments.cO("html5_web_po_disable_remote_logging")||dbx.includes(g.b$(x.Va)||""),VT:Pl1(x.experiments),Wf:x.experiments.cO("wpo_gel_strz")?function(d){var b=bY_.get(d);b||(b=new lHg(d),b=new g.yD(b),bY_.set(d,b));return b}:void 0, JG$:p.D("wpo_dis_lfdms")?0:1E3},PV7:g.Hp});var J=new zj({yV:c,p_:a,onError:g.Hp});swz(J.jH()).then(function(){p.U=!0;p.C.resolve()}); p.D("html5_web_po_token_disable_caching")||J.ix(150);g.Z(p,c);g.Z(p,J);p.Z=J}catch(d){g.Hp(d);var R;(R=c)==null||R.dispose()}}; JA=function(p){var x=p.api.L();p.FV.dI("pot_ist");p.Z||r3o(p);p.D("html5_bandaid_attach_content_po_token")||(p.D("html5_generate_session_po_token")&&(dH(p),vd1(p)),x=g.e_(x.experiments,"html5_session_po_token_interval_time_ms")||0,x>0&&(p.V=g.bF(function(){dH(p)},x)),p.Y=!0)}; dH=function(p){var x,a,v,c;g.t(function(J){if(!p.D("html5_generate_session_po_token")||p.useLivingRoomPoToken)return J.return();x=p.api.L();a=g.gx("EOM_VISITOR_DATA")||g.gx("VISITOR_DATA");v=x.cU?x.datasyncId:a;c=LH(x.experiments,"html5_mock_content_binding_for_session_token")||x.livingRoomPoTokenId||v;x.x_=be(p,c);g.k1(J)})}; be=function(p,x){if(!p.Z){if(p.j)try{return p.j(x)}catch(J){g.Hp(J)}return""}try{p.FV.dI(p.U?"pot_cms":"pot_csms");var a={Io:!0,FL:!0,WG:x};p.D("html5_web_po_token_disable_caching")||(a.GV={eZ:x,O_:!0,r5:!0});var v=p.Z.ZT(a);p.FV.dI(p.U?"pot_cmf":"pot_csmf");if(p.U){var c;(c=p.B)==null||c.resolve();p.B=null;p.S&&(p.S=!1,p.api.app.md().yF(!1))}return v}catch(J){return g.Hp(J),""}}; vd1=function(p){p.Z&&(p.B=new bl,p.C.promise.then(function(){p.FV.dI("pot_if");dH(p)}))}; g.rH=function(p,x,a){g.cG(p.element,"ytp-suggestion-set",!!x.videoId);var v=x.playlistId;a=x.BB(a?a:"mqdefault.jpg");var c=null,J=null;x instanceof AC&&(x.lengthText?(c=x.lengthText||null,J=x.L_||null):x.lengthSeconds&&(c=g.YI(x.lengthSeconds),J=g.YI(x.lengthSeconds,!0)));var R=!!v;v=R&&OF(v).type==="RD";var d=x instanceof AC?x.isLivePlayback:null,b=x instanceof AC?x.isUpcoming:null,r=x.author,B=x.shortViewCount,l=x.publishedTimeText,L=[],Y=[];r&&L.push(r);B&&(L.push(B),Y.push(B));l&&Y.push(l);a= {title:x.title,author:r,author_and_views:L.join(" \u2022 "),aria_label:x.ariaLabel||g.px("Assistir a $TITLE",{TITLE:x.title}),duration:c,timestamp:J,url:x.q1(),is_live:d,is_upcoming:b,is_list:R,is_mix:v,background:a?"background-image: url("+a+")":"",views_and_publish_time:Y.join(" \u2022 "),autoplayAlternativeHeader:x.xr};x instanceof N_&&(a.playlist_length=x.playlistLength);p.update(a)}; g.Be=function(p){var x=p.L(),a=g.Li||g.P0?{style:"will-change: opacity"}:void 0,v=x.B,c=["ytp-modern-videowall-still"];x.Z&&c.push("ytp-videowall-show-text");g.N.call(this,{J:"a",CI:c,G:{href:"{{url}}",target:v?x.T:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},N:[{J:"div",K:"ytp-modern-videowall-still-image",G:{style:"{{background}}"},N:[{J:"span",K:"ytp-modern-videowall-still-info-duration",wr:"{{duration}}"}]},{J:"span",K:"ytp-modern-videowall-still-info", G:{"aria-hidden":"true"},N:[{J:"span",K:"ytp-modern-videowall-still-info-bg",N:[{J:"span",K:"ytp-modern-videowall-still-info-content",G:a,N:[{J:"span",K:"ytp-modern-videowall-still-info-title",wr:"{{title}}"},{J:"span",K:"ytp-modern-videowall-still-info-author",wr:"{{author_and_views}}"},{J:"span",K:"ytp-modern-videowall-still-info-live",wr:"Ao vivo"}]}]}]},{J:"span",CI:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],G:{"aria-hidden":"true"},N:[{J:"span",K:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{J:"span",K:"ytp-modern-videowall-still-listlabel-length",N:[" (",{J:"span",wr:"{{playlist_length}}"},")"]}]},{J:"span",CI:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],G:{"aria-hidden":"true"},N:[{J:"span",K:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{J:"span",K:"ytp-modern-videowall-still-listlabel-length",wr:" (50+)"}]}]});this.suggestion=null;this.Z=v;this.api=p;this.U=new g.II(this);g.Z(this,this.U);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.U.X(p,"videodatachange",this.onVideoDataChange);p.createServerVe(this.element,this);this.onVideoDataChange()}; g.Btz=function(p,x){if(p.suggestion!==x){p.suggestion=x;var a=p.api.L();g.rH(p,x,"hqdefault.jpg");if(g.nH(a)&&!p.api.D("web_player_log_click_before_generating_ve_conversion_params")){a=x.q1();var v={};g.Us(p.api,"addEmbedsConversionTrackingParams",[v]);a=g.jL(a,v);p.updateValue("url",a)}(x=(x=x.sessionData)&&x.itct)&&p.api.setTrackingParams(p.element,x)}}; LyT=function(p,x){g.N.call(this,{J:"div",CI:["ytp-fullscreen-grid"],N:[{J:"div",K:"ytp-fullscreen-grid-hover-overlay",G:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},N:[{J:"div",K:"ytp-fullscreen-grid-hover-overlay-chevron",N:[{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"g",G:{filter:"url(#filter0_d_3104_799356)"},N:[{J:"path",G:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{J:"defs",N:[{J:"filter",G:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},N:[{J:"feFlood",G:{"flood-opacity":"0",result:"BackgroundImageFix"}},{J:"feColorMatrix",G:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{J:"feOffset"},{J:"feGaussianBlur",G:{stdDeviation:"0.5"}},{J:"feComposite",G:{in2:"hardAlpha",operator:"out"}},{J:"feColorMatrix",G:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {J:"feBlend",G:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{J:"feBlend",G:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{J:"div",K:"ytp-fullscreen-grid-main-content",N:[{J:"div",K:"ytp-fullscreen-grid-header",N:[{J:"div",K:"ytp-fullscreen-grid-header-buttons",N:[{J:"button",CI:["ytp-grid-replay-button","ytp-button"],G:{title:"Reiniciar","aria-keyshortcuts":"r","aria-label":"Reiniciar","data-title-no-tooltip":"Reiniciar"}, N:[Xbg()]},{J:"button",K:"ytp-fullscreen-grid-header-button",G:{"aria-label":"{{ariaLabel}}"}}]},{J:"button",CI:["ytp-grid-menu-close","ytp-button"],G:{"aria-label":"Fechar"},N:[g.rN()]}]},{J:"div",K:"ytp-fullscreen-grid-stills-container"}]}]});var a=this;this.player=p;this.stills=[];this.videoData=null;this.currentState=0;this.V=this.BO("ytp-fullscreen-grid-main-content");this.S=this.BO("ytp-fullscreen-grid-header");p=this.BO("ytp-fullscreen-grid-header-buttons");this.j=this.BO("ytp-grid-menu-close"); this.Z=this.BO("ytp-grid-replay-button");this.U=this.BO("ytp-fullscreen-grid-header-button");this.T=this.BO("ytp-fullscreen-grid-stills-container");this.B=new g.II(this);g.Z(this,this.B);this.Y=x;if(this.S&&this.V&&p&&this.T&&this.U&&this.j){if(x=this.BO("ytp-fullscreen-grid-hover-overlay"))this.X(x,"click",this.t$),wz(this.player,x,this);this.Z&&(this.X(this.Z,"click",function(v){a.TM(v)}),wz(this.player,this.Z,this)); this.U&&this.X(this.U,"click",this.t$);this.j&&this.X(this.j,"click",this.t$);if(x=this.player.getVideoData(1))this.videoData=x,l0g(this);this.player.createClientVe(this.S,this,223051);this.B.X(this.player,"videodatachange",this.onVideoDataChange);this.B.X(this.player,"presentingplayerstatechange",this.WN)}}; l0g=function(p){var x=p.player.getPlayerStateObject();g.cG(p.player.getRootNode(),"ytp-grid-ended-state",g.q(x,2))}; YN=function(p){d1.call(this,p);var x=this;this.V=this.U=this.Z=0;this.S=null;this.B=0;this.isEnded=!1;this.Y=null;var a=new g.II(p);g.Z(this,a);this.pI=this.api.D("web_player_imax_theater_mode");this.j=this.api.D("web_player_enable_fullscreen_grid_components");a.X(p,"fullscreentoggled",function(){le(x)}); a.X(p,"autohideupdate",function(v){v&&x.Z===2&&L3(x,1)}); a.X(p,"videodatachange",function(){if(x.j){var v=x.api.getVideoData(1);x.videoData!==v&&x.Z===2&&L3(x,1);x.videoData=v}},this); a.X(p,"sizestylechange",function(){x.j&&le(x)}); Ww(this.api,"setFullscreenQuickActions",function(v){x.setFullscreenQuickActions(v)}); Ww(this.api,"setPlayerOverlayVideoDetailsRenderer",function(v){x.setPlayerOverlayVideoDetailsRenderer(v)}); this.j&&YS1(this,a,p)}; YS1=function(p,x,a){x.X(a,"keyboardserviceglobalkeydown",function(v,c){p.j&&v.keyCode===86&&!v.repeat&&p.Z!==0&&(c&&(c.JF=!0),huQ(p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); x.X(p.api.getRootNode(),"wheel",function(v){if(!p.Y){var c;if(p.j&&(c=p.C)!=null&&c.element&&p.Z!==0&&hA(p))if(g.$W(p.api.getRootNode(),"ytp-grid-scrolling"),p.B===0&&(p.B=window.innerHeight),p.Z===1)p.B!==0&&(p.U+=v.deltaY/p.B,p.U=Math.min(Math.max(p.U,0),.85),jD(p),jwb(p,Math.abs(p.U)>=.85));else if(p.Z===2){c=v.deltaY<0;var J,R=((J=p.C)==null?void 0:J.element.scrollTop)===0;c&&R?p.B!==0&&(p.U+=v.deltaY/p.B,jD(p),jwb(p,Math.abs(p.U)>=.85)):p.U!==0&&(p.U=0,jD(p))}}},{passive:!0}); x.X(a,"standardControlsInitialized",function(){if(!p.C){p.C=new LyT(p.api,p.Zt.bind(p));g.Z(p,p.C);var v=p.api.getRootNode().querySelector(".ytp-chrome-bottom");v&&v.parentNode&&v.parentNode.insertBefore(p.C.element,v.nextSibling)}}); x.X(a,"presentingplayerstatechange",function(){IS(p)}); x.X(a,"autonavvisibility",function(){IS(p)}); p.api.Fx().subscribe("visibilitystatechange",function(){IS(p)}); I0I(p,p.Z)}; jwb=function(p,x){p.S&&clearTimeout(p.S);x?MSN(p):p.S=window.setTimeout(function(){MSN(p)},150)}; MSN=function(p){p.S&&(clearTimeout(p.S),p.S=null);p.B=0;p.j&&p.Z!==0&&(Math.abs(p.U)>=.15&&huQ(p,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),p.U=0,jD(p),g.sm(p.api.getRootNode(),"ytp-grid-scrolling"))}; huQ=function(p,x){p.j&&(x==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(p.Y&&clearTimeout(p.Y),p.Y=window.setTimeout(function(){p.Y=null},1E3)),p.Z===1?L3(p,2):L3(p,1))}; hA=function(p){return p.api.isFullscreen()||p.pI&&p.api.XR()}; le=function(p){var x=hA(p);g.cG(p.api.getRootNode(),"ytp-full-bleed-player",x);p.T&&g.sO(p.T,x);p.playerOverlayVideoDetailsRenderer&&g.sO(p.playerOverlayVideoDetailsRenderer,x);p.j&&IS(p)}; IS=function(p){if(p.j){var x;if(p.api.getPresentingPlayerType()===2||p.api.Ol()||((x=g.S9(p.api))==null?0:x.XM())||p.api.isMinimized())L3(p,0);else{if(x=g.q(p.api.getPlayerStateObject(),2))L3(p,2);else if(p.isEnded&&!x){var a=hA(p)?1:0;p.isEnded=x;L3(p,a)}else hA(p)?p.Z!==2&&L3(p,1):L3(p,0);p.isEnded=x}}}; L3=function(p,x){p.Z=x;var a;(a=p.C)==null||a.XX(x);p.U=0;jD(p);I0I(p,x)}; I0I=function(p,x){p=p.api.getRootNode();g.cG(p,"ytp-fullscreen-grid-peaking",x===1);g.cG(p,"ytp-fullscreen-grid-active",x===2)}; jD=function(p){requestAnimationFrame(function(){var x=p.U-p.V,a=x;p.U!==0&&(a=Math.max(-.01,Math.min(x,.01)));p.V+=a;p.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+p.V.toString());p.V!==p.U&&jD(p)})}; Wyb=function(p){d1.call(this,p);var x=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.II(p);g.Z(this,this.events);this.events.X(p,"heartbeatRequest",function(a){if(x.freePreviewUsageDetails.length||x.freePreviewWatchedDuration!==null)a.heartbeatRequestParams||(a.heartbeatRequestParams={}),a.heartbeatRequestParams.unpluggedParams||(a.heartbeatRequestParams.unpluggedParams={}),x.freePreviewUsageDetails.length>0?a.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= x.freePreviewUsageDetails:a.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+x.freePreviewWatchedDuration}}); Ww(p,"setFreePreviewWatchedDuration",function(a){x.freePreviewWatchedDuration=a}); Ww(p,"setFreePreviewUsageDetails",function(a){x.freePreviewUsageDetails=a})}; MT=function(p){g.y.call(this);this.features=[];var x=this.U,a=new yv(p),v=new ba(p),c=new jd(p),J=new RS(p);var R=g.RU(p.L())?void 0:new Xa(p);var d=new h8(p),b=new tXI(p),r=new Fvf(p),B=new EN(p);var l=g.RU(p.L())?new Wyb(p):void 0;var L;var Y=(L=p.L().getWebPlayerContextConfig())!=null&&L.cinematicSettingsAvailable?new mz(p):void 0;L=new w1(p);var h=p.D("enable_courses_player_overlay_purchase")?new R88(p):void 0;var D=g.YO(p.L())?new sBf(p):void 0;var H=new ia(p);var f=p.L().B?new Vx1(p):void 0; var m=g.nH(p.L())?new ukg(p):void 0;var X=p.D("web_player_move_autonav_toggle")&&p.L().Iw?new GaI(p):void 0;var E=g.YO(p.L())?new DBz(p):void 0;var A=p.D("web_enable_speedmaster")&&g.YO(p.L())?new A8(p):void 0;var u=p.L().Ac?void 0:new GgN(p);var n=p.D("report_pml_debug_signal")?new EQN(p):void 0;var co=new wOo(p),LU=new ks(p);var R8=g.SG(p.L())?new p9f(p):void 0;var KU=navigator.mediaSession&&window.MediaMetadata&&p.L().s$?new Lf(p):void 0;var x1=p.D("html5_enable_drc")&&!p.L().S?new CI(p):void 0; var mx=new By(p);var eI=g.YO(p.L())?new rd_(p):void 0;var xt=p.D("html5_enable_d6de4")?new In(p):void 0;var jj=g.YO(p.L())&&p.D("web_sleep_timer")?new EJ(p):void 0;var KG=g.nH(p.L())?new pX_(p):void 0;var CU=new t8(p),cD=new qwU(p),wR=new WW_(p);var NE=p.D("enable_sabr_snackbar_message")?new HWU(p):void 0;var Jp=p.D("web_enable_timely_actions")?new Pk8(p):void 0;var S=new SZ(p);var ZM=g.YO(p.L())?new YN(p):void 0;var iZ=p.D("html5_enable_voice_boost")?new ve(p):void 0;var a8=p.D("web_player_loop_settings_menu")&& p.L().ev?new ktI(p):void 0;var Ty=p.D("html5_masthead_default_playback_rate")&&!g.RU(p.L())?new QOf(p):void 0;var U=p.D("web_player_playable_sequences_refactor")?new nPI(p):void 0;var $1=p.D("html5_enable_audio_quality_setting")&&p.D("html5_enable_audio_quality_setting_feature")?new YK(p):void 0;p=p.D("html5_ypc_clickwrap_module_refactor")?new EP8(p):void 0;x.call(this,a,v,c,J,R,d,b,r,B,l,Y,L,h,D,H,f,m,X,E,A,u,n,co,LU,R8,void 0,KU,x1,mx,void 0,eI,xt,jj,KG,void 0,CU,cD,wR,void 0,NE,Jp,S,ZM,iZ,void 0, a8,void 0,Ty,U,$1,p)}; kcg=function(){this.Z=this.U=NaN}; Dbb=function(p,x){this.z4=p;this.timerName="";this.j=!1;this.Z=NaN;this.B=new kcg;this.U=x||null;this.j=!1}; Ubx=function(p,x,a){var v=g.xO(x.JG)&&!x.JG.S;if(x.JG.H$&&(uT(x.JG)||x.JG.F5==="shortspage"||kO(x.JG)||v)&&!p.j){p.j=!0;p.S=x.clientPlaybackNonce;g.gx("TIMING_ACTION")||yT("TIMING_ACTION",p.z4.csiPageType);p.z4.csiServiceName&&yT("CSI_SERVICE_NAME",p.z4.csiServiceName);if(p.U){v=p.U.UT();for(var c=g.k(Object.keys(v)),J=c.next();!J.done;J=c.next())J=J.value,Wa(J,v[J],p.timerName);v=g.Pr(PMb)(p.U.NR);g.k8(v,p.timerName);v=p.U;v.U={};v.NR={}}g.k8({playerInfo:{visibilityState:g.Pr(AxI)()},playerType:"LATENCY_PLAYER_HTML5"}, p.timerName);p.C!==x.clientPlaybackNonce||Number.isNaN(p.Z)||(U_("_start",p.timerName)?a=g.Pr(Y8)("_start",p.timerName)+p.Z:g.Hp(new g.gr("attempted to log gapless pbs before CSI timeline started",{cpn:x.clientPlaybackNonce})));a&&!U_("pbs",p.timerName)&&We(p,a)}}; We=function(p,x,a){Wa("pbs",x!=null?x:(0,g.WR)(),a!=null?a:p.timerName)}; kN=function(p){a21();$HU();p.timerName=""}; HYf=function(p){if(p.U){var x=p.U;x.U={};x.NR={}}p.j=!1;p.C=void 0;p.Z=NaN}; TtT=function(p,x){g.Fx.call(this);this.JG=p;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.U=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.Z=0;if(p=x.session_data)this.sessionData=n6(p,"&");this.index=Math.max(0,Number(x.index)||0);this.loop=!!x.loop;this.startSeconds=Number(x.startSeconds)||0;this.title=x.playlist_title||"";this.description=x.playlist_description||"";this.author= x.author||x.playlist_author||"";x.video_id&&(this.items[this.index]=x);if(p=x.api)typeof p==="string"&&p.length===16?x.list="PL"+p:x.playlist=p;if(p=x.list)switch(x.listType){case "user_uploads":this.listId=new GG("UU","PLAYER_"+p);break;default:var a=x.playlist_length;a&&(this.length=Number(a)||0);this.listId=OF(p);if(p=x.video)this.items=p.slice(0),this.loaded=!0}else if(x.playlist){p=x.playlist.toString().split(",");this.index>0&&(this.items=[]);p=g.k(p);for(a=p.next();!a.done;a=p.next())(a=a.value)&& this.items.push({video_id:a});this.length=this.items.length;if(p=x.video)this.items=p.slice(0),this.loaded=!0}this.setShuffle(!!x.shuffle);if(p=x.suggestedQuality)this.quality=p;this.Y=EF(x,"playlist_");this.j=(x=x.thumbnail_ids)?x.split(","):[]}; Qwz=function(p){return!!(p.playlist||p.list||p.api)}; mbN=function(p){var x=p.index+1;return x>=p.length?0:x}; SSg=function(p){var x=p.index-1;return x<0?p.length-1:x}; g.DQ=function(p,x,a,v){x=x!==void 0?x:p.index;x=p.items&&x in p.items?p.items[p.order[x]]:null;var c=null;x&&(a&&(x.autoplay="1"),v&&(x.autonav="1"),c=new g.bq(p.JG,x),g.Z(p,c),c.fY=!0,c.startSeconds=p.startSeconds||c.clipStart||0,p.listId&&(c.playlistId=p.listId.toString()));return c}; f0N=function(p,x){p.index=g.ZL(x,0,p.length-1);p.startSeconds=0}; C7N=function(p,x){if(x.video&&x.video.length){p.title=x.title||"";p.description=x.description;p.views=x.views;p.likes=x.likes;p.dislikes=x.dislikes;p.author=x.author||"";var a=x.loop;a&&(p.loop=a);a=g.DQ(p);p.items=[];for(var v=g.k(x.video),c=v.next();!c.done;c=v.next())if(c=c.value)c.video_id=c.encrypted_id,p.items.push(c);p.length=p.items.length;(x=x.index)?p.index=x:p.findIndex(a);p.setShuffle(!1);p.loaded=!0;p.Z++;p.U&&p.U()}}; odo=function(p,x){var a,v,c,J,R,d,b;return g.t(function(r){if(r.Z==1){a=g.gG();var B=p.L(),l={context:g.IN(p),playbackContext:{contentPlaybackContext:{ancestorOrigins:B.ancestorOrigins}}},L=B.getWebPlayerContextConfig();if(L==null?0:L.encryptedHostFlags)l.playbackContext.contentPlaybackContext.encryptedHostFlags=L.encryptedHostFlags;if(L==null?0:L.hideInfo)l.playerParams={showinfo:!1};L=B.embedConfig;var Y=p.j1;var h=x.docid||x.video_id||x.videoId||x.id;if(!h){h=x.raw_embedded_player_response;if(!h){var D= x.embedded_player_response;D&&(h=JSON.parse(D))}if(h){var H,f,m,X,E,A;h=((A=g.O((H=h)==null?void 0:(f=H.embedPreview)==null?void 0:(m=f.thumbnailPreviewRenderer)==null?void 0:(X=m.playButton)==null?void 0:(E=X.buttonRenderer)==null?void 0:E.navigationEndpoint,g.hM))==null?void 0:A.videoId)||null}else h=null}H=(H=h)?H:void 0;f=p.playlistId?p.playlistId:x.list;m=x.listType;if(f){var u;m==="user_uploads"?u={username:f}:u={playlistId:f};X5g(L,Y,H,x,u,B.experiments);l.playlistRequest=u}else x.playlist? (u={templistVideoIds:x.playlist.toString().split(",")},X5g(L,Y,H,x,u,B.experiments),l.playlistRequest=u):H&&(u={videoId:H},Y&&B.D("embeds_enable_per_video_embed_config")?u.serializedThirdPartyEmbedConfig=Y:L&&(u.serializedThirdPartyEmbedConfig=L),l.singleVideoRequest=u);v=l;c=g.PC(iYo);g.DJ(r,2);return g.C(r,g.Sb(a,v,c),4)}if(r.Z!=2)return J=r.U,R=p.L(),x.raw_embedded_player_response=J,R.u$=sU(x,g.nH(R)),R.j=R.u$==="EMBEDDED_PLAYER_MODE_PFL",J&&(d=J,d.trackingParams&&Pc(d.trackingParams)),r.return(new g.bq(R, x));b=g.SI(r);b instanceof Error||(b=Error("b259802748"));g.Uq(b);return r.return(p)})}; X5g=function(p,x,a,v,c,J){v.index&&(c.playlistIndex=String(Number(v.index)+1));c.videoId=a?a:"";x&&J.cO("embeds_enable_per_video_embed_config")?c.serializedThirdPartyEmbedConfig=x:p&&(c.serializedThirdPartyEmbedConfig=p)}; g.He=function(p,x){Uu.get(p);Uu.set(p,x)}; g.Tf=function(p){g.Fx.call(this);this.loaded=!1;this.player=p}; tS1=function(){this.Z=[];this.U=[]}; g.ce=function(p,x){return x?p.U.concat(p.Z):p.U}; g.Q1=function(p,x){switch(x.kind){case "asr":zuf(x,p.Z);break;default:zuf(x,p.U)}}; zuf=function(p,x){g.ME(x,function(a){return p.equals(a)})||x.push(p)}; g.m6=function(p){g.y.call(this);this.X5=p;this.Z=new tS1;this.j=null;this.C=[];this.Y=[]}; g.SD=function(p,x,a){g.m6.call(this,p);this.videoData=x;this.audioTrack=a;this.U=null;this.B=!1;this.C=x.ea;this.Y=x.Tk;this.B=g.xu(x)}; g.w5x=function(p,x){var a;return p.L().D("safari_live_drm_captions_fix")&&((a=p.getVideoData())==null?0:a.Sg())?!1:g.RU(p.L())&&!x.isManifestless}; g.f3=function(p,x){return yB(p.info.mimeType)?x?p.info.itag===x:!0:!1}; g.EdT=function(p,x){if(p.U!=null&&g.w5x(x,p.U)&&p.U.U.rawcc!=null)return!0;if(!p.Dp())return!1;x=!!p.U&&p.U.isManifestless&&Object.values(p.U.U).some(function(a){return g.f3(a,"386")}); p=!!p.U&&!p.U.isManifestless&&g.rLQ(p.U);return x||p}; g.C3=function(p,x,a,v,c,J){g.m6.call(this,p);this.videoId=a;this.o4=c;this.eventId=J;this.S={};this.U=null;p=v||g.Fj(x).hl||"";p=p.split("_").join("-");this.B=py(x,{hl:p})}; y3_=function(p,x){g.y.call(this);var a=this;this.W=p;this.B=x;this.NR={};this.U={};this.Z=null;this.j=new Set;this.C=new g.II(this);this.d3={qHt:function(){return a.B}}; this.S=this.W.D("web_player_defer_modules");this.Tn=new Map;g.Z(this,this.C);this.C.X(p,"videodatachange",this.onVideoDataChange)}; gdU=function(p,x){p.Z=x}; g.XF=function(p){return p.Tn.get("captions")}; qSQ=function(p,x){switch(x){case "ad":return ZY8(p);case "annotations_module":return p.W.isEmbedsShortsMode()?p=!1:(x=p.W,p=x.L(),x=x.getVideoData(),p=p.j||x.X6||p.controlsType==="3"?!1:p.hG.isEmpty()&&p.playerStyle!=="annotation-editor"&&p.playerStyle!=="live-dashboard"?!!x.V6||!!g.VF(x)||!!g.Fz(x):!0),p;case "asmjs":return Gc8(p);case "creatorendscreen":return OYb(p);case "embed":return g.nH(p.W.L());case "endscreen":return g.NtN(p);case "heartbeat":return p.x6();case "kids":return Rf(p.W.L()); case "remote":return p.W.L().RM;case "miniplayer":return p.W.L().showMiniplayerUiWhenMinimized;case "offline":return p.W.L().OT;case "captions":return A3b(p);case "unplugged":return g.$O(p.W.L());case "ux":return p.W.L().LI;case "webgl":return P7Q(p);case "ypc":return p.X7();case "ypc_clickwrap":return VyI(p.W.getVideoData());case "yto":return p.W.D("web_player_playable_sequences_refactor")?!1:!!p.W.getVideoData().T.includes("yto");default:return g.Uq(Error("Module descriptor "+x+" does not match")), !1}}; ie=function(p,x,a,v,c){var J;a=a===void 0?!1:a;v=v===void 0?!1:v;var R=p.Tn.get(x);if(!R||v)if(c||(c=function(){ie(p,x,a,v)}),J||(J=function(){p.W.Fq(x)}),R=R||ndN(p,x,qSQ(p,x),c,J))p.Tn.set(x,R),R.create(),p.W.publish("modulecreated",x),a&&p.W.n1("onApiChange")}; u5U=function(p){var x=x===void 0?!1:x;var a,v,c,J,R;return g.t(function(d){if(d.Z==1)return(a=p.Tn.get("asmjs"))&&!x?d.return(a):(v=Uu.get("asmjs"))!=null?(c=v,d.Ia(2)):g.C(d,new Promise(function(b,r){eu1(p,"asmjs",function(){var B=Uu.get("asmjs");B?b(B):r("cannot load module asmjs")},r)}),3); d.Z!=2&&(c=d.U);J=c;if(!J)return d.return(Promise.reject("cannot load module asmjs"));R=new J(p.W);p.Tn.set("asmjs",R);R.create();return d.return(R)})}; pH_=function(p){VSg(p)&&p.hk();Fyg(p)&&(ie(p,"captions",!0),ie(p,"endscreen"),p.L2(),ie(p,"creatorendscreen",!0))}; Fyg=function(p){var x=p.W.getVideoData(),a=p.S&&!x.isInlinePlaybackNoAd;p.W.D("html5_defer_modules_on_ads_only")&&!x.isAd()&&(a=!1);return a}; VSg=function(p){p=p.W.getVideoData();var x;if(x=p.D("web_player_defer_ad")){if(g.kt(p.T,"ad")||iQ1(p)||p.enableServerStitchedDai)p=!1;else{x=p.playerResponse;p=p.startSeconds;var a=x==null?void 0:x.adPlacements;if(x=a){x=Number.MAX_VALUE;a=g.k(a);for(var v=a.next();!v.done;v=a.next())if(v=v.value.adPlacementRenderer){var c=void 0,J=(c=v.config)==null?void 0:c.adPlacementConfig;c=void 0;if(((c=J)==null?void 0:c.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var R=c=void 0;J=Number((c=J)==null?void 0:(R= c.adTimeOffset)==null?void 0:R.offsetStartMilliseconds)||0;R=c=void 0;v=Number(((c=v.renderer)==null?void 0:(R=c.adBreakServiceRenderer)==null?void 0:R.prefetchMilliseconds)||0);v=J-v;v=11;p=p.api.L().V&&ZQ;return!(!x&&!p)}; pS=function(p,x){return!p.api.isInline()&&!Wqf(p,Ml(x))&&g.hz(x)}; Mp8=function(p){p.uL.t2();if(p.wg&&p.Cw)p.Cw=!1;else if(!p.api.L().V6&&!p.ZD()){var x=p.api.getPlayerStateObject();g.q(x,2)&&g.gz(p.api)||p.Y5(x);!p.api.L().oa||x.isCued()||g.q(x,1024)?p.u7():p.Uj.isActive()?(p.I$(),p.Uj.stop()):p.Uj.start()}}; Ddx=function(p,x){var a;if((a=p.api.getVideoData())==null?0:a.mutedAutoplay){var v,c;if((v=x.target)==null?0:(c=v.className)==null?0:c.includes("ytp-info-panel"))return!1}return g.hz(x)&&p.api.isMutedByMutedAutoplay()?(p.api.unMute(),p.api.getPresentingPlayerType()===2&&p.api.playVideo(),x=p.api.getPlayerStateObject(),!g.q(x,4)||g.q(x,8)||g.q(x,2)||p.u7(),!0):!1}; Ud8=function(p,x,a){p.api.isFullscreen()?a<1-x&&p.api.toggleFullscreen():a>1+x&&p.api.toggleFullscreen()}; I$Q=function(p){var x=Ei()&&ts()>=67&&!p.api.L().V;p=p.api.L().disableOrganicUi;return!g.wT("tizen")&&!Ac&&!x&&!p}; g.xP=function(p){g.N.call(this,{J:"div",N:[{J:"div",K:"ytp-bezel-text-wrapper",N:[{J:"div",K:"ytp-bezel-text",wr:"{{title}}"}]},{J:"div",K:"ytp-bezel",G:{role:"status","aria-label":"{{label}}"},N:[{J:"div",K:"ytp-bezel-icon",wr:"{{icon}}"}]}]});this.W=p;this.Z=new g.AW(this.show,10,this);p=this.W.D("delhi_modern_web_player")?1E3:500;this.U=new g.AW(this.hide,p,this);g.Z(this,this.Z);g.Z(this,this.U);this.hide()}; aO=function(p,x,a){if(x<=0){a=DE();x="som desativado";var v=0}else a=a?{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,G:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,G:{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"}}]},v=Math.floor(x),x=v+"volume";$P(p,a,x,v+"%")}; HJo=function(p,x){x=x?{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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"}}]}:hyT();var a=p.W.getPlaybackRate(),v=g.px("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(a)});$P(p,x,v,a+"x")}; T2_=function(p,x){x=x?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";$P(p,Nq8(p.W),x)}; $P=function(p,x,a,v){v=v===void 0?"":v;p.updateValue("label",a===void 0?"":a);p.updateValue("icon",x);g.nO(p.U);p.Z.start();p.updateValue("title",v);g.cG(p.element,"ytp-bezel-text-hide",!v)}; Qdx=function(p,x){g.N.call(this,{J:"button",CI:["ytp-button","ytp-cards-button"],G:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.nH(p.L()))},N:[{J:"span",K:"ytp-cards-button-icon-default",N:[{J:"div",K:"ytp-cards-button-icon",N:[p.L().D("player_new_info_card_format")?Mh8():{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {J:"div",K:"ytp-cards-button-title",wr:"Informa\u00e7\u00f5es"}]},{J:"span",K:"ytp-cards-button-icon-shopping",N:[{J:"div",K:"ytp-cards-button-icon",N:[{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",K:"ytp-svg-shadow",G:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{J:"path",K:"ytp-svg-fill",G:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{J:"path",K:"ytp-svg-shadow-fill",G:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{J:"div", K:"ytp-cards-button-title",wr:"Compras"}]}]});this.W=p;this.Z=x;this.U=null;this.fade=new g.qp(this,250,!0,100);g.Z(this,this.fade);g.cG(this.Z,"ytp-show-cards-title",g.nH(p.L()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.nB(!0)}; mdQ=function(p,x){g.N.call(this,{J:"div",K:"ytp-cards-teaser",N:[{J:"div",K:"ytp-cards-teaser-box"},{J:"div",K:"ytp-cards-teaser-text",N:p.L().D("player_new_info_card_format")?[{J:"button",K:"ytp-cards-teaser-info-icon",G:{"aria-label":"Exibir cards","aria-haspopup":"true"},N:[Mh8()]},{J:"img",K:"ytp-cards-teaser-channel-avatar",G:{alt:"","aria-hidden":"true"}},{J:"span",K:"ytp-cards-teaser-label",wr:"{{text}}"},{J:"button",K:"ytp-cards-teaser-close-button",G:{"aria-label":"Fechar"},N:[g.rN()]}]: [{J:"span",K:"ytp-cards-teaser-label",wr:"{{text}}"}]}]});var a=this;this.W=p;this.c5=x;this.fade=new g.qp(this,250,!1,250);this.U=null;this.V=new g.AW(this.KNI,300,this);this.S=new g.AW(this.MD6,2E3,this);this.B=[];this.Z=null;this.Y=new g.AW(function(){a.element.style.margin="0"},250); this.onClickCommand=this.j=null;g.Z(this,this.fade);g.Z(this,this.V);g.Z(this,this.S);g.Z(this,this.Y);p.L().D("player_new_info_card_format")?(g.$W(p.getRootNode(),"ytp-cards-teaser-dismissible"),this.X(this.BO("ytp-cards-teaser-close-button"),"click",this.tq),this.X(this.BO("ytp-cards-teaser-info-icon"),"click",this.pO),this.X(this.BO("ytp-cards-teaser-label"),"click",this.pO)):this.listen("click",this.pO);this.X(x.element,"mouseover",this.SM);this.X(x.element,"mouseout",this.WK);this.X(p,"cardsteasershow", this.swT);this.X(p,"cardsteaserhide",this.iV);this.X(p,"cardstatechange",this.aS);this.X(p,"presentingplayerstatechange",this.aS);this.X(p,"appresize",this.w9);this.X(p,"onShowControls",this.w9);this.X(p,"onHideControls",this.Dc);this.listen("mouseenter",this.XT)}; SXQ=function(p){g.N.call(this,{J:"button",CI:[s9.BUTTON,s9.TITLE_NOTIFICATIONS],G:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},N:[{J:"div",K:s9.TITLE_NOTIFICATIONS_ON,G:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},N:[g.Y$()]},{J:"div",K:s9.TITLE_NOTIFICATIONS_OFF,G:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, N:[{J:"svg",G:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},N:[{J:"path",G:{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=p;this.U=!1;p.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; f$_=function(p,x){p.U=x;p.element.classList.toggle(s9.NOTIFICATIONS_ENABLED,p.U);var a=p.api.getVideoData();a?(x=x?a.rN:a.e7)?(p=p.api.tR())?mZ(p,x):g.Uq(Error("No innertube service available when updating notification preferences.")):g.Uq(Error("No update preferences command available.")):g.Uq(Error("No video data when updating notification preferences."))}; XHQ=function(p,x,a){var v=v===void 0?800:v;var c=c===void 0?600:c;var J=document.location.protocol;p=GLU(J+"//"+p+"/signin?context=popup","feature",x,"next",J+"//"+location.hostname+"/post_login");C2J(p,a,v,c)}; C2J=function(p,x,a,v){a=a===void 0?800:a;v=v===void 0?600:v;if(p=g.YY(window,p,"loginPopup","width="+a+",height="+v+",resizable=yes,scrollbars=yes"))Ldf(function(){x()}),p.moveTo((screen.width-a)/2,(screen.height-v)/2)}; g.vO=function(p,x,a,v,c,J,R,d,b,r,B,l){p=p.charAt(0)+p.substring(1).toLowerCase();a=a.charAt(0)+a.substring(1).toLowerCase();if(x==="0"||x==="-1")x=null;if(v==="0"||v==="-1")v=null;var L=B.L(),Y=L.userDisplayName&&g.xO(L);g.N.call(this,{J:"div",CI:["ytp-button","ytp-sb"],N:[{J:"div",K:"ytp-sb-subscribe",G:Y?{title:B.L().D("player_tooltip_data_title_killswitch")?g.px("Inscrever-se como $USER_NAME",{USER_NAME:L.userDisplayName}):"","data-tooltip-title":g.px("Inscrever-se como $USER_NAME",{USER_NAME:L.userDisplayName}), "aria-label":"Inscrever-se no canal","data-tooltip-image":Dw(L),"data-tooltip-opaque":String(g.nH(L)),tabindex:"0",role:"button"}:{"aria-label":"Inscrever-se no canal"},N:[{J:"div",K:"ytp-sb-text",N:[{J:"div",K:"ytp-sb-icon"},p]},x?{J:"div",K:"ytp-sb-count",wr:x}:""]},{J:"div",K:"ytp-sb-unsubscribe",G:Y?{title:B.D("player_tooltip_data_title_killswitch")?g.px("Inscrito como $USER_NAME",{USER_NAME:L.userDisplayName}):"","data-tooltip-title":g.px("Inscrito como $USER_NAME",{USER_NAME:L.userDisplayName}), "aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":Dw(L),"data-tooltip-opaque":String(g.nH(L)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},N:[{J:"div",K:"ytp-sb-text",N:[{J:"div",K:"ytp-sb-icon"},a]},v?{J:"div",K:"ytp-sb-count",wr:v}:""]}],G:{"aria-live":"polite"}});var h=this;this.channelId=R;this.W=B;this.j=l;var D=this.BO("ytp-sb-subscribe"),H=this.BO("ytp-sb-unsubscribe");J&&g.$W(this.element,"ytp-sb-classic");if(c){d?this.U():this.Z(); var f=function(){if(L.O7){var X=h.channelId;if(b||r){var E={c:X};var A;g.up.isInitialized()&&(A=gMf(E));E=A||"";if(A=B.getVideoData())if(A=A.subscribeCommand){var u=B.tR();u?(mZ(u,A,{botguardResponse:E,feature:b}),B.NT("SUBSCRIBE",X)):g.Uq(Error("No innertube service available when updating subscriptions."))}else g.Uq(Error("No subscribe command in videoData."));else g.Uq(Error("No video data available when updating subscription."))}H.focus();H.removeAttribute("aria-hidden");D.setAttribute("aria-hidden", "true")}else XHQ(g.bm(h.W.L()),"sb_button",h.B)},m=function(){var X=h.channelId; if(b||r){var E=B.getVideoData();mZ(B.tR(),E.unsubscribeCommand,{feature:b});B.NT("UNSUBSCRIBE",X)}D.focus();D.removeAttribute("aria-hidden");H.setAttribute("aria-hidden","true")}; this.X(D,"click",f);this.X(H,"click",m);this.X(D,"keypress",function(X){X.keyCode===13&&f(X)}); this.X(H,"keypress",function(X){X.keyCode===13&&m(X)}); this.X(B,"SUBSCRIBE",this.U);this.X(B,"UNSUBSCRIBE",this.Z);this.j&&Y&&(Qsx(B),wz(B,D,this),wz(B,H,this))}else g.$W(D,"ytp-sb-disabled"),g.$W(H,"ytp-sb-disabled")}; tp1=function(p){g.N.call(this,{J:"div",K:"ytp-title-channel",N:[{J:"div",K:"ytp-title-beacon"},{J:"a",K:"ytp-title-channel-logo",G:{href:"{{channelLink}}",target:p.L().T,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{J:"div",K:"ytp-title-expanded-overlay",G:{"aria-hidden":"{{flyoutUnfocusable}}"},N:[{J:"div",K:"ytp-title-expanded-heading",N:[{J:"div",K:"ytp-title-expanded-title",N:[{J:"a",wr:"{{expandedTitle}}",G:{href:"{{channelTitleLink}}",target:p.L().T,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{J:"div",K:"ytp-title-expanded-subtitle",wr:"{{expandedSubtitle}}",G:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var x=this;this.api=p;this.channel=this.BO("ytp-title-channel");this.Z=this.BO("ytp-title-channel-logo");this.channelName=this.BO("ytp-title-expanded-title");this.S=this.BO("ytp-title-expanded-overlay");this.j=this.U=this.subscribeButton=null;this.B=!1;p.createClientVe(this.Z,this,36925);p.createClientVe(this.channelName,this, 37220);g.nH(this.api.L())&&iJ8(this);this.X(p,"videodatachange",this.Yg);this.X(p,"videoplayerreset",this.Yg);this.X(this.channelName,"click",function(a){x.api.logClick(x.channelName);g.YY(window,opI(x));a.preventDefault()}); this.X(this.Z,"click",this.cGr);this.Yg()}; z51=function(p){if(!p.api.L().XV){var x=p.api.getVideoData(),a=new g.vO("Inscreva-se",null,"Inscrito",null,!0,!1,x.aT,x.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(a.element,p);var v;p.api.setTrackingParams(a.element,((v=x.subscribeButtonRenderer)==null?void 0:v.trackingParams)||null);p.X(a.element,"click",function(){p.api.logClick(a.element)}); p.subscribeButton=a;g.Z(p,p.subscribeButton);p.subscribeButton.WO(p.S);p.subscribeButton.hide();var c=new SXQ(p.api);p.U=c;g.Z(p,c);c.WO(p.S);c.hide();p.X(p.api,"SUBSCRIBE",function(){x.l9&&(c.show(),p.api.logVisibility(c.element,!0))}); p.X(p.api,"UNSUBSCRIBE",function(){x.l9&&(c.hide(),p.api.logVisibility(c.element,!1),f$_(c,!1))})}}; iJ8=function(p){var x=p.api.L();z51(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");x.Z||x.tG||(p.X(p.channel,"mouseenter",p.dD),p.X(p.channel,"mouseleave",p.sF),p.X(p.channel,"focusin",p.dD),p.X(p.channel,"focusout",function(a){p.channel.contains(a.relatedTarget)||p.sF()})); p.j=new g.AW(function(){p.isExpanded()&&(p.api.logVisibility(p.channelName,!1),p.subscribeButton&&(p.subscribeButton.hide(),p.api.logVisibility(p.subscribeButton.element,!1)),p.U&&(p.U.hide(),p.api.logVisibility(p.U.element,!1)),p.channel.classList.remove("ytp-title-expanded"),p.channel.classList.add("ytp-title-show-collapsed"))},500); g.Z(p,p.j);p.X(p.channel,wH8,function(){EpN(p)}); p.X(p.api,"onHideControls",p.l0);p.X(p.api,"appresize",p.l0);p.X(p.api,"fullscreentoggled",p.l0)}; EpN=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")}; y0g=function(p){var x=p.api.getPlayerSize();return g.nH(p.api.L())&&x.width>=524}; opI=function(p){var x=p.api.L(),a=p.api.getVideoData(),v=g.UF(x)+a.oa;g.Yu(a)&&(v="https://music.youtube.com"+a.oa);if(!g.nH(x))return v;x={};g.Us(p.api,"addEmbedsConversionTrackingParams",[x]);return g.jL(v,x)}; cO=function(p){var x=g.JU({"aria-haspopup":"true"});g.cy.call(this,x,p);this.listen("keydown",this.U)}; Jr=function(p,x){p.element.setAttribute("aria-haspopup",String(x))}; gpQ=function(p,x){g.N.call(this,{J:"div",K:"ytp-user-info-panel",G:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},N:p.L().O7&&!p.D("embeds_web_always_enable_signed_out_state")?[{J:"div",K:"ytp-user-info-panel-icon",wr:"{{icon}}"},{J:"div",K:"ytp-user-info-panel-content",N:[{J:"div",K:"ytp-user-info-panel-info",G:{tabIndex:"{{userInfoFocusable}}",role:"text"},wr:"{{watchingAsUsername}}"},{J:"div",K:"ytp-user-info-panel-info",G:{tabIndex:"{{userInfoFocusable2}}",role:"text"},wr:"{{watchingAsEmail}}"}]}]: [{J:"div",K:"ytp-user-info-panel-icon",wr:"{{icon}}"},{J:"div",K:"ytp-user-info-panel-content",N:[{J:"div",N:[{J:"text",G:{tabIndex:"{{userInfoFocusable}}"},wr:"Conta desconectada"}]},{J:"div",K:"ytp-user-info-panel-login",N:[{J:"a",G:{tabIndex:"{{userInfoFocusable2}}",role:"button"},wr:p.L().XV?"":"Fazer login no YouTube"}]}]}]});this.X5=p;this.U=x;p.L().O7||p.L().XV||this.X(this.BO("ytp-user-info-panel-login"),"click",this.xv);this.closeButton=new g.N({J:"button",CI:["ytp-collapse","ytp-button"], G:{title:"Fechar"},N:[g.k$()]});this.closeButton.WO(this.element);g.Z(this,this.closeButton);this.X(window,"blur",this.hide);this.X(document,"click",this.Yv);this.Yg()}; OJ1=function(p,x,a){g.Qr.call(this,p);this.PX=x;this.Cv=a;this.getVideoUrl=new cO(6);this.Vw=new cO(5);this.SJ=new cO(4);this.cX=new cO(3);this.wZ=new g.cy(g.JU({href:"{{href}}",target:this.W.L().T},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.cy(g.JU(),1,"Estat\u00edsticas para nerds");this.yl=new g.s6({J:"div",CI:["ytp-copytext","ytp-no-contextmenu"],G:{draggable:"false",tabindex:"1"},wr:"{{text}}"});this.di=new T2(this.W,this.yl);this.jf=this.hY=null;g.nH(this.W.L())&& (this.closeButton=new g.N({J:"button",CI:["ytp-collapse","ytp-button"],G:{title:"Fechar"},N:[g.k$()]}),g.Z(this,this.closeButton),this.closeButton.WO(this.element),this.closeButton.listen("click",this.q5,this));g.nH(this.W.L())&&(this.RT=new g.cy(g.JU(),8,"Conta"),g.Z(this,this.RT),this.u2(this.RT,!0),this.RT.listen("click",this.d6r,this),p.createClientVe(this.RT.element,this.RT,137682));this.W.L().ev&&(this.qF=new jZ("Loop",7),g.Z(this,this.qF),this.u2(this.qF,!0),this.qF.listen("click",this.iWd, this),p.createClientVe(this.qF.element,this.qF,28661));g.Z(this,this.getVideoUrl);this.u2(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Ipa,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Z(this,this.Vw);this.u2(this.Vw,!0);this.Vw.listen("click",this.FN$,this);p.createClientVe(this.Vw.element,this.Vw,28660);g.Z(this,this.SJ);this.u2(this.SJ,!0);this.SJ.listen("click",this.JXd,this);p.createClientVe(this.SJ.element,this.SJ,28658);g.Z(this,this.cX);this.u2(this.cX, !0);this.cX.listen("click",this.B3$,this);g.Z(this,this.wZ);this.u2(this.wZ,!0);this.wZ.listen("click",this.GwA,this);g.Z(this,this.showVideoInfo);this.u2(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.zmr,this);g.Z(this,this.yl);this.yl.listen("click",this.yGa,this);g.Z(this,this.di);x=document.queryCommandSupported&&document.queryCommandSupported("copy");qQb("Chromium")>=43&&(x=!0);qQb("Firefox")<=40&&(x=!1);x&&(this.hY=new g.N({J:"textarea",K:"ytp-html5-clipboard",G:{readonly:"", tabindex:"-1"}}),g.Z(this,this.hY),this.hY.WO(this.element));var v;(v=this.RT)==null||v.setIcon(HP1());var c;(c=this.qF)==null||c.setIcon(CoT());this.cX.setIcon({J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{"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.wZ.setIcon(jQ1());this.showVideoInfo.setIcon(Ivg());this.X(p,"onLoopChange",this.onLoopChange);this.X(p,"videodatachange",this.onVideoDataChange);ZJz(this);GsI(this,this.W.getVideoData())}; RO=function(p,x){var a=!1;if(p.hY){var v=p.hY.element;v.value=x;v.select();try{a=document.execCommand("copy")}catch(c){}}a?p.PX.iV():(p.yl.Aj(x,"text"),g.ff(p.PX,p.di),UN(p.yl.element),p.hY&&(p.hY=null,ZJz(p)));return a}; GsI=function(p,x){var a=p.W.L(),v=p.W.getPresentingPlayerType()===2,c=!v||x.isListed;c=!a.pI&&!!x.videoId&&c;a.playerStyle!=="play"?a="https://support.google.com/youtube/?p=report_playback":(a={contact_type:"playbackissue",html5:1,ei:x.eventId,v:x.videoId,p:"movies_playback"},x.Z&&(a.fmt=x.Z.itag),x.clientPlaybackNonce&&(a.cpn=x.clientPlaybackNonce),x.partnerId&&(a.partnerid=x.partnerId),a=g.jL("//support.google.com/googleplay/",a));p.SJ.eD(c&&x.allowEmbed);p.getVideoUrl.eD(c);p.Vw.eD(c&&!x.isLivePlayback); p.wZ.Aj(a,"href");var J;(J=p.qF)==null||J.eD(!x.isLivePlayback&&!v);var R;(R=p.RT)==null||R.eD(!v)}; ZJz=function(p){var x=!!p.hY;g.vy(p.cX,x?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");Jr(p.cX,!x);g.vy(p.SJ,x?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");Jr(p.SJ,!x);g.vy(p.getVideoUrl,x?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");Jr(p.getVideoUrl,!x);g.vy(p.Vw,x?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");Jr(p.Vw,!x);p.SJ.setIcon(x?LDo(): null);p.getVideoUrl.setIcon(x?lx():null);p.Vw.setIcon(x?lx():null)}; N2x=function(p){return g.nH(p.W.L())?p.RT:p.qF}; P2U=function(p,x){g.Sd.call(this,p);this.Cv=x;this.B=new g.II(this);this.Zt=new g.AW(this.u1r,1E3,this);this.pI=this.j=null;g.Z(this,this.B);g.Z(this,this.Zt);x=this.W.L();p.createClientVe(this.element,this,28656);g.$W(this.element,"ytp-contextmenu");this.W.L().experiments.cO("delhi_modern_web_player")&&g.YO(x)&&g.$W(this.element,"ytp-delhi-modern-contextmenu");A0b(this);this.hide()}; A0b=function(p){g.UU(p.B);var x=p.W.L();x.playerStyle==="gvn"||x.Z||x.tG||(x=p.W.fI(),p.B.X(x,"contextmenu",p.rGg),p.B.X(x,"touchstart",p.onTouchStart,null,!0),p.B.X(x,"touchmove",p.J8,null,!0),p.B.X(x,"touchend",p.J8,null,!0))}; qXx=function(p){p.W.isFullscreen()?g.qh(p.W,p.element,10):p.WO($K(p).body)}; KS=function(p,x,a){a=a===void 0?240:a;g.N.call(this,{J:"button",CI:["ytp-button","ytp-copylink-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.nH(p.L()))},N:[{J:"div",K:"ytp-copylink-icon",wr:"{{icon}}"},{J:"div",K:"ytp-copylink-title",wr:"Copiar link",G:{"aria-hidden":"true"}}]});this.api=p;this.U=x;this.Z=a;this.visible=!1;this.tooltip=this.U.Gn();x=p.L();this.tooltip.element.setAttribute("aria-live", "polite");g.cG(this.element,"ytp-show-copylink-title",g.nH(x));p.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.X(p,"videodatachange",this.Yg);this.X(p,"videoplayerreset",this.Yg);this.X(p,"appresize",this.Yg);this.Yg();this.addOnDisposeCallback(g.zQ(this.tooltip,this.element))}; np1=function(p){var x=p.api.L(),a=p.api.getVideoData(),v=p.api.fI().getPlayerSize().width;x=x.j;return!!a.videoId&&v>=p.Z&&a.CD&&!a.fp&&!p.api.isEmbedsShortsMode()&&!x}; e58=function(p){p.updateValue("icon",KV());if(p.api.L().Z)p.tooltip.x5(p.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{p.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");p.updateValue("tooltip-title","Link copiado para a \u00e1rea de transfer\u00eancia");p.tooltip.jg();p.tooltip.x5(p.element);var x=p.listen("mouseleave",function(){p.IA(x);p.Yg();p.tooltip.kH()})}}; uoo=function(p,x){return g.t(function(a){if(a.Z==1)return g.DJ(a,2),g.C(a,navigator.clipboard.writeText(x),4);if(a.Z!=2)return a.return(!0);g.SI(a);var v=a.return,c=!1,J=g.Lw("TEXTAREA");J.value=x;J.setAttribute("readonly","");var R=p.api.getRootNode();R.appendChild(J);if(gd){var d=window.getSelection();d.removeAllRanges();var b=document.createRange();b.selectNodeContents(J);d.addRange(b);J.setSelectionRange(0,x.length)}else J.select();try{c=document.execCommand("copy")}catch(r){}R.removeChild(J); return v.call(a,c)})}; Vp8=function(p){g.N.call(this,{J:"div",K:"ytp-doubletap-ui-legacy",N:[{J:"div",K:"ytp-doubletap-fast-forward-ve"},{J:"div",K:"ytp-doubletap-rewind-ve"},{J:"div",K:"ytp-doubletap-static-circle",N:[{J:"div",K:"ytp-doubletap-ripple"}]},{J:"div",K:"ytp-doubletap-overlay-a11y"},{J:"div",K:"ytp-doubletap-seek-info-container",N:[{J:"div",K:"ytp-doubletap-arrows-container",N:[{J:"span",K:"ytp-doubletap-base-arrow"},{J:"span",K:"ytp-doubletap-base-arrow"},{J:"span",K:"ytp-doubletap-base-arrow"}]},{J:"div", K:"ytp-doubletap-tooltip",N:[{J:"div",K:"ytp-seek-icon-text-container",N:[{J:"div",K:"ytp-seek-icon",wr:"{{seekIcon}}"},{J:"div",K:"ytp-chapter-seek-text-legacy",wr:"{{seekText}}"}]},{J:"div",K:"ytp-doubletap-tooltip-label",wr:"{{seekTime}}"}]}]}]});this.W=p;this.B=new g.AW(this.show,10,this);this.Z=new g.AW(this.hide,700,this);this.V=this.j=0;this.Zt=this.S=!1;this.U=this.BO("ytp-doubletap-static-circle");g.Z(this,this.B);g.Z(this,this.Z);this.hide();this.Y=this.BO("ytp-doubletap-fast-forward-ve"); this.T=this.BO("ytp-doubletap-rewind-ve");this.W.createClientVe(this.Y,this,28240);this.W.createClientVe(this.T,this,28239);this.W.logVisibility(this.Y,!0);this.W.logVisibility(this.T,!0);this.S=p.D("web_show_cumulative_seek_time");this.Zt=p.D("web_center_static_circles")}; FqN=function(p,x){x=g.px("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:x.toString()});p.updateValue("seekTime",x)}; p71=function(p){Hl.call(this,p,!1,!0);this.u$=[];this.KW=[];this.element.setAttribute("data-overlay-order","9");this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.F5=new g.N({J:"div",K:"ytp-featured-product-open-in-new"});g.Z(this,this.F5);this.countdownTimer=new g.N({J:"text",K:"ytp-featured-product-countdown",wr:"{{content}}"});this.countdownTimer.hide();g.Z(this,this.countdownTimer);this.Z=new g.N({J:"div",K:"ytp-featured-product-trending",N:[{J:"div",K:"ytp-featured-product-trending-icon"}, {J:"text",K:"ytp-featured-product-trending-text",wr:"{{trendingOffer}}"}]});this.Z.hide();g.Z(this,this.Z);this.overflowButton=new g.N({J:"button",CI:["ytp-featured-product-overflow-icon","ytp-button"],G:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.V=new g.N({J:"text",K:"ytp-featured-product-exclusive-countdown",wr:"{{content}}",G:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.Z(this,this.V);this.S=new g.N({J:"div",K:"ytp-featured-product-exclusive-container", G:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},N:[{J:"div",K:"ytp-featured-product-exclusive-badge-container",N:[{J:"div",K:"ytp-featured-product-exclusive-badge",N:[{J:"text",K:"ytp-featured-product-exclusive-badge-text",wr:"{{exclusive}}",G:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.S.hide();g.Z(this,this.S);this.banner=new g.N({J:"a",K:"ytp-featured-product-container",N:[{J:"div",K:"ytp-featured-product-thumbnail",N:[{J:"img",G:{src:"{{thumbnail}}"}},this.F5]},{J:"div", K:"ytp-featured-product-details",N:[{J:"text",K:"ytp-featured-product-title",wr:"{{title}}"},this.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",K:"ytp-featured-product-price-container",G:{"aria-label":"{{priceA11yText}}"},N:[{J:"text",K:"ytp-featured-product-price-when-promotion-text-enabled",wr:"{{price}}",G:{"aria-hidden":"true"}},{J:"text",K:"ytp-featured-product-promotion-text",wr:"{{promotionText}}",G:{"aria-hidden":"true"}}]}:{J:"div",G:{"aria-label":"{{priceA11yText}}"}, N:[{J:"text",K:"ytp-featured-product-price",wr:"{{price}}",G:{"aria-hidden":"true"}},{J:"text",K:"ytp-featured-product-sales-original-price",wr:"{{salesOriginalPrice}}",G:{"aria-hidden":"true"}},{J:"text",K:"ytp-featured-product-price-drop-reference-price",wr:"{{priceDropReferencePrice}}",G:{"aria-hidden":"true"}}]},this.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",K:"ytp-featured-product-when-promotion-text-enabled",N:[{J:"text",K:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", wr:"{{affiliateDisclaimer}}"},this.Z,{J:"text",K:"ytp-featured-product-vendor-when-promotion-text-enabled",wr:"{{vendor}}"}]}:{J:"div",N:[{J:"text",K:"ytp-featured-product-affiliate-disclaimer",wr:"{{affiliateDisclaimer}}"},this.W.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.Z,{J:"text",K:"ytp-featured-product-vendor",wr:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.Z(this,this.banner);this.banner.WO(this.j.element);this.X(this.W,g.GF("featured_product"), this.H1a);this.X(this.W,g.Oo("featured_product"),this.Z5);this.X(this.W,"videodatachange",this.onVideoDataChange);this.X(this.overflowButton.element,"click",this.Gs);this.X(p,"featuredproductdismissed",this.yj)}; xP1=function(p){var x,a;p=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:a.itemData;var v,c,J;return(p==null||!p.affiliateDisclaimer)&&(p==null?0:(v=p.exclusivesData)==null?0:v.exclusiveOfferLabelText)&&(p==null?0:(c=p.exclusivesData)==null?0:c.expirationTimestampMs)&&(p==null?0:(J=p.exclusivesData)==null?0:J.exclusiveOfferCountdownText)?!0:!1}; adJ=function(p){var x,a,v,c,J=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:(v=a.itemData)==null?void 0:(c=v.exclusivesData)==null?void 0:c.expirationTimestampMs;x=(Number(J)-Date.now())/1E3;if(x>0){if(x<604800){var R,d,b,r;a=(R=p.U)==null?void 0:(d=R.bannerData)==null?void 0:(b=d.itemData)==null?void 0:(r=b.exclusivesData)==null?void 0:r.exclusiveOfferCountdownText;if(a!==void 0)for(R=Date.now(),d=g.k(a),b=d.next();!b.done;b=d.next())if(b=b.value,b!==void 0&&b.text!==void 0&&(r=Number(b.textDisplayStartTimestampMs), !isNaN(r)&&R>=r)){b.insertCountdown?(x=b.text.replace(/\$0/,String(za({seconds:x}))),p.V.Aj(x)):p.V.Aj(b.text);p.V.show();break}}var B,l,L,Y;p.S.update({exclusive:(B=p.U)==null?void 0:(l=B.bannerData)==null?void 0:(L=l.itemData)==null?void 0:(Y=L.exclusivesData)==null?void 0:Y.exclusiveOfferLabelText});p.S.show();dk(p);var h;(h=p.G$)==null||h.start()}else $P_(p)}; $P_=function(p){var x;(x=p.G$)==null||x.stop();p.V.hide();p.S.hide();b0(p)}; s3U=function(p){var x,a,v=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:a.itemData;return p.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(v==null||!v.priceReplacementText)&&(v==null?0:v.promotionText)?v==null?void 0:v.promotionText.content:null}; vSU=function(p){var x,a,v=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:a.itemData,c,J;if(!(v!=null&&v.priceReplacementText||p.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(v==null?0:(c=v.dealsData)==null?0:(J=c.sales)==null?0:J.originalPrice)){var R,d;return v==null?void 0:(R=v.dealsData)==null?void 0:(d=R.sales)==null?void 0:d.originalPrice}return null}; cf8=function(p){var x,a,v=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:a.itemData,c,J,R,d;if(!((v==null?0:v.priceReplacementText)||p.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(v==null?0:(c=v.dealsData)==null?0:(J=c.sales)==null?0:J.originalPrice))&&(v==null?0:(R=v.dealsData)==null?0:(d=R.priceDrop)==null?0:d.referencePrice)){var b,r;return v==null?void 0:(b=v.dealsData)==null?void 0:(r=b.priceDrop)==null?void 0:r.referencePrice}return null}; Jf1=function(p){var x,a,v=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:a.itemData;if(v==null?0:v.priceReplacementText)return v==null?void 0:v.priceReplacementText;if((v==null?0:v.promotionText)&&p.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var c;return(v==null?void 0:v.price)+" "+(v==null?void 0:(c=v.promotionText)==null?void 0:c.content)}var J,R;if(v==null?0:(J=v.dealsData)==null?0:(R=J.sales)==null?0:R.originalPrice){var d,b;return v==null?void 0:(d=v.dealsData)== null?void 0:(b=d.sales)==null?void 0:b.salesPriceAccessibilityLabel}var r,B;if(v==null?0:(r=v.dealsData)==null?0:(B=r.priceDrop)==null?0:B.referencePrice){var l,L;return(v==null?void 0:v.price)+" "+(v==null?void 0:(l=v.dealsData)==null?void 0:(L=l.priceDrop)==null?void 0:L.referencePrice)}return v==null?void 0:v.price}; RM1=function(p){if(p.W.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var x,a,v;return p.Z.E7?null:(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:(v=a.itemData)==null?void 0:v.vendorName}var c,J,R,d,b,r;return p.Z.E7||p.S.E7||((c=p.U)==null?0:(J=c.bannerData)==null?0:(R=J.itemData)==null?0:R.affiliateDisclaimer)?null:(d=p.U)==null?void 0:(b=d.bannerData)==null?void 0:(r=b.itemData)==null?void 0:r.vendorName}; dPf=function(p,x){rk(p);if(x){var a=g.Mn.getState().entities;a=P$(a,"featuredProductsEntity",x);if(a!=null&&a.productsData){x=[];a=g.k(a.productsData);for(var v=a.next();!v.done;v=a.next()){v=v.value;var c=void 0;if((c=v)!=null&&c.identifier&&v.featuredSegments){p.u$.push(v);var J=void 0;c=g.k((J=v)==null?void 0:J.featuredSegments);for(J=c.next();!J.done;J=c.next()){var R=J.value;J=KF_(R.startTimeSec);J!==void 0&&(R=KF_(R.endTimeSec),x.push(new g.gZ(J*1E3,R===void 0?0x7ffffffffffff:R*1E3,{id:v.identifier, namespace:"featured_product"})))}}}p.W.xN(x)}}}; b0=function(p){if(p.trendingOfferEntityKey){var x=g.Mn.getState().entities;if(x=P$(x,"trendingOfferEntity",p.trendingOfferEntityKey)){var a,v,c;x.encodedSkuId!==((a=p.U)==null?void 0:(v=a.bannerData)==null?void 0:(c=v.itemData)==null?void 0:c.encodedOfferSkuId)?dk(p):(p.Z.update({trendingOffer:x.shortLabel+" \u2022 "+x.countLabel}),p.Z.show(),p.banner.update({vendor:RM1(p)}))}else dk(p)}else dk(p)}; dk=function(p){p.Z.hide();p.banner.update({vendor:RM1(p)})}; rk=function(p){p.u$=[];p.Z5();p.W.Mg("featured_product")}; rff=function(p){var x,a,v,c,J=(x=p.U)==null?void 0:(a=x.bannerData)==null?void 0:(v=a.itemData)==null?void 0:(c=v.hiddenProductOptions)==null?void 0:c.dropTimestampMs;x=(Number(J)-Date.now())/1E3;p.countdownTimer.Aj(za({seconds:x}));if(x>0){var R;(R=p.OS)==null||R.start()}}; BWb=function(p){var x;(x=p.OS)==null||x.stop();p.countdownTimer.hide()}; KF_=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p}; j3_=function(p,x,a){g.N.call(this,{J:"div",CI:["ytp-info-panel-action-item"],N:[{J:"div",K:"ytp-info-panel-action-item-disclaimer",wr:"{{disclaimer}}"},{J:"a",CI:["ytp-info-panel-action-item-button","ytp-button"],G:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},N:[{J:"div",K:"ytp-info-panel-action-item-icon",wr:"{{icon}}"},{J:"div",K:"ytp-info-panel-action-item-label",wr:"{{label}}"}]}]});this.W=p;this.U=a;this.disclaimer=this.BO("ytp-info-panel-action-item-disclaimer");this.button= this.BO("ytp-info-panel-action-item-button");this.mU=!1;this.W.createServerVe(this.element,this,!0);this.listen("click",this.onClick);p="";a=g.O(x==null?void 0:x.onTap,Qj);var v=g.O(a,g.Se);this.mU=!1;v?(p=v.url||"",p.startsWith("//")&&(p="https:"+p),this.mU=!0,g.bO(this.button,g.R0(p))):(v=g.O(a,ld1))&&!this.U?((p=v.phoneNumbers)&&p.length>0?(p="sms:"+p[0],v.messageText&&(p+="?&body="+encodeURI(v.messageText))):p="",this.mU=!0,g.bO(this.button,g.R0(p,[LFz]))):(a=g.O(a,YG1))&&!this.U&&(p=a.phoneNumber? "tel:"+a.phoneNumber:"",this.mU=!0,g.bO(this.button,g.R0(p,[hMz])));var c;if(a=(c=x.disclaimerText)==null?void 0:c.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var J;this.update({label:(J=x.bodyText)==null?void 0:J.content,icon:hv(),disclaimer:a})}else{this.disclaimer.style.display="none";var R;this.update({label:(R=x.bodyText)==null?void 0:R.content,icon:hv()})}this.W.setTrackingParams(this.element,x.trackingParams||null);this.mU&&(this.Z={externalLinkData:{url:p}})}; Id1=function(p,x){var a=pV();g.xK.call(this,p,{J:"div",K:"ytp-info-panel-detail-skrim",N:[{J:"div",K:"ytp-info-panel-detail",G:{role:"dialog",id:a},N:[{J:"div",K:"ytp-info-panel-detail-header",N:[{J:"div",K:"ytp-info-panel-detail-title",wr:"{{title}}"},{J:"button",CI:["ytp-info-panel-detail-close","ytp-button"],G:{"aria-label":"Fechar"},N:[g.rN()]}]},{J:"div",K:"ytp-info-panel-detail-body",wr:"{{body}}"},{J:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.U=x;this.items=this.BO("ytp-info-panel-detail-items"); this.j=new g.II(this);this.itemData=[];this.B=a;this.X(this.BO("ytp-info-panel-detail-close"),"click",this.iV);this.X(this.BO("ytp-info-panel-detail-skrim"),"click",this.iV);this.X(this.BO("ytp-info-panel-detail"),"click",function(v){v.stopPropagation()}); g.Z(this,this.j);this.W.createServerVe(this.element,this,!0);this.X(p,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",p.getVideoData());this.hide()}; MOz=function(p,x){p=g.k(p.itemData);for(var a=p.next();!a.done;a=p.next())a=a.value,a.W.logVisibility(a.element,x)}; DPJ=function(p,x){g.N.call(this,{J:"div",K:"ytp-info-panel-preview",G:{"aria-live":"assertive","aria-atomic":"true","aria-owns":x.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.nH(p.L()))},N:[{J:"div",K:"ytp-info-panel-preview-text",wr:"{{text}}"},{J:"div",K:"ytp-info-panel-preview-chevron",wr:"{{chevron}}"}]});var a=this;this.W=p;this.Ai=this.U=this.videoId=null;this.j=this.showControls=this.Z=!1;this.X(this.element,"click",function(){p.logClick(a.element);p.ZD();aW(x)}); this.fade=new g.qp(this,250,!1,100);g.Z(this,this.fade);this.W.createServerVe(this.element,this,!0);this.X(p,"videodatachange",this.onVideoDataChange);this.X(p,"presentingplayerstatechange",this.Aq);this.X(this.W,"paidcontentoverlayvisibilitychange",this.xE);this.X(this.W,"infopaneldetailvisibilitychange",this.xE);var v=p.getVideoData()||{};WFx(v)&&kUT(this,v);this.X(p,"onShowControls",this.vc);this.X(p,"onHideControls",this.RN)}; kUT=function(p,x){if(!x.zC||!p.W.CY()){var a=x.GP||1E4,v=WFx(x);p.U?x.videoId&&x.videoId!==p.videoId&&(g.nO(p.U),p.videoId=x.videoId,v?(UPo(p,a,x),p.Y$()):(p.iV(),p.U.dispose(),p.U=null)):v&&(x.videoId&&(p.videoId=x.videoId),UPo(p,a,x),p.Y$())}}; WFx=function(p){var x,a,v,c;return!!((x=p.ow)==null?0:(a=x.title)==null?0:a.content)||!!((v=p.ow)==null?0:(c=v.bodyText)==null?0:c.content)}; UPo=function(p,x,a){p.U&&p.U.dispose();p.U=new g.AW(p.lKr,x,p);g.Z(p,p.U);var v;x=((v=a.ow)==null?void 0:v.trackingParams)||null;p.W.setTrackingParams(p.element,x);var c;var J,R;if(a==null?0:(J=a.ow)==null?0:(R=J.title)==null?0:R.content){var d;v=(c=a.ow)==null?void 0:(d=c.title)==null?void 0:d.content;var b,r;if((b=a.ow)==null?0:(r=b.bodyText)==null?0:r.content)v+=" \u2022 ";c=v}else c="";var B,l;a=((B=a.ow)==null?void 0:(l=B.bodyText)==null?void 0:l.content)||"";p.update({text:c+a,chevron:g.bx()})}; Hgo=function(p,x){p.U&&(g.q(x,8)?(p.Z=!0,p.Y$(),p.U.start()):(g.q(x,2)||g.q(x,64))&&p.videoId&&(p.videoId=null))}; BO=function(p){var x=null;try{x=p.toLocaleString("pt-BR",{style:"percent"})}catch(a){x=p.toLocaleString(void 0,{style:"percent"})}return x}; l0=function(p,x){var a=0;p=g.k(p);for(var v=p.next();!(v.done||v.value.startTime>x);v=p.next())a++;return a===0?a:a-1}; TW1=function(p,x){for(var a=0,v=g.k(p),c=v.next();!c.done;c=v.next()){c=c.value;if(x=c.timeRangeStartMillis&&x2147483647?"0":String(p)}; YP=function(p,x,a){var v=p.api.getCurrentTime(),c=X7x(p,v);p=X7x(p,v+x);return{startMediaTimeMs:c,endMediaTimeMs:p,seekSource:a}}; igU=function(p){var x,a=(x=p.api.getVideoData())==null?void 0:x.O8();return p.api.getPresentingPlayerType(a)!==2}; LS=function(p,x){p.j.CF=x;g.cG(p.api.getRootNode(),"ytp-probably-keyboard-focus",x);g.cG(p.contextMenu.element,"ytp-probably-keyboard-focus",x)}; jo=function(p,x,a,v){var c=g.XF(p.api.uV());if(c&&c.loaded){var J=p.api.getSubtitlesUserSettings();c=void 0;for(var R=0;R0?x[0]:null;var a=g.Kw("ytp-chrome-bottom"),v=g.Kw("ytp-ad-module");p.B=!(a==null||!a.contains(x));p.Y=!(v==null||!v.contains(x));p.T=!(x==null||!x.hasAttribute("data-tooltip-target-fixed"));return x}; Og1=function(p,x,a){if(!p.S){if(x){p.tooltipRenderer=x;x=p.tooltipRenderer.text;var v=!1,c;(x==null?0:(c=x.runs)==null?0:c.length)&&x.runs[0].text&&(p.update({title:x.runs[0].text.toString()}),v=!0);g.sO(p.title,v);x=p.tooltipRenderer.detailsText;c=!1;var J;if((x==null?0:(J=x.runs)==null?0:J.length)&&x.runs[0].text){v=x.runs[0].text.toString();J=v.indexOf("$TARGET_ICON");if(J>-1)if(p.tooltipRenderer.targetId){x=[];v=v.split("$TARGET_ICON");var R=new g.x$({J:"span",K:"ytp-promotooltip-details-icon", N:[ZgN[p.tooltipRenderer.targetId]]});g.Z(p,R);for(var d=[],b=g.k(v),r=b.next();!r.done;r=b.next())r=new g.x$({J:"span",K:"ytp-promotooltip-details-component",wr:r.value}),g.Z(p,r),d.push(r);v.length===2?(x.push(d[0].element),x.push(R.element),x.push(d[1].element)):v.length===1&&(J===0?(x.push(R.element),x.push(d[0].element)):(x.push(d[0].element),x.push(R.element)));J=x.length?x:null}else J=null;else J=v;if(J){if(typeof J!=="string")for(g.It(p.details),c=g.k(J),J=c.next();!J.done;J=c.next())p.details.appendChild(J.value); else p.update({details:J});c=!0}}g.sO(p.details,c);c=p.tooltipRenderer.acceptButton;J=!1;var B,l,L;((B=g.O(c,g.et))==null?0:(l=B.text)==null?0:(L=l.runs)==null?0:L.length)&&g.O(c,g.et).text.runs[0].text&&(p.update({acceptButtonText:g.O(c,g.et).text.runs[0].text.toString()}),J=!0);g.sO(p.acceptButton,J);B=p.tooltipRenderer.dismissButton;l=!1;var Y,h,D;((Y=g.O(B,g.et))==null?0:(h=Y.text)==null?0:(D=h.runs)==null?0:D.length)&&g.O(B,g.et).text.runs[0].text&&(p.update({dismissButtonText:g.O(B,g.et).text.runs[0].text.toString()}), l=!0);g.sO(p.dismissButton,l)}a&&(p.j=a);p.U=gSQ(p);p.V=!1;p.W.L().D("web_player_hide_nitrate_promo_tooltip")||p.eD(!0);GUJ(p);p.E7&&!p.Zt&&(p.Zt=!0,p.d3.D5(0));p.Z&&p.W.logVisibility(p.element,p.E7)}}; WO=function(p){p.eD(!1);p.Z&&p.W.logVisibility(p.element,p.E7)}; NWg=function(p){var x,a,v,c=((x=g.O(p.acceptButton,g.et))==null?void 0:(a=x.text)==null?void 0:(v=a.runs)==null?void 0:v.length)&&!!g.O(p.acceptButton,g.et).text.runs[0].text,J,R,d;x=((J=g.O(p.dismissButton,g.et))==null?void 0:(R=J.text)==null?void 0:(d=R.runs)==null?void 0:d.length)&&!!g.O(p.dismissButton,g.et).text.runs[0].text;return c||x}; GUJ=function(p){var x;if(!(x=!p.U)){x=p.U;var a=window.getComputedStyle(x);x=a.display==="none"||a.visibility==="hidden"||x.getAttribute("aria-hidden")==="true"}if(x||p.W.isMinimized())p.eD(!1);else if(x=g.aT(p.U),x.width&&x.height){p.W.bj(p.element,p.U);var v=p.W.fI().getPlayerSize().height;a=g.aT(p.BO("ytp-promotooltip-container")).height;p.B?p.element.style.top=v-a-x.height-12+"px":p.T||(v=p.W.uh().height-a-x.height-12,p.element.style.top=v+"px");v=p.BO("ytp-promotooltip-pointer");var c=g.xG(p.U, p.W.getRootNode()),J=Number(p.element.style.left.replace(/[^\d\.]/g,""));p=p.W.isFullscreen()?18:12;v.style.left=c.x-J+x.width/2-p+"px";v.style.top=a+"px"}else p.eD(!1)}; kP=function(p){g.N.call(this,{J:"button",CI:["ytp-replay-button","ytp-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"Reiniciar":"","data-tooltip-title":"Reiniciar"},N:[g.Mp()]});this.W=p;this.X(p,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.XX(p.getPlayerStateObject());wz(this.W,this.element,this)}; Dj=function(p,x){x=x===void 0?240:x;g.N.call(this,{J:"button",CI:["ytp-button","ytp-search-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"Pesquisar":"","data-tooltip-title":"Pesquisar","data-tooltip-opaque":String(g.nH(p.L()))},N:[{J:"div",K:"ytp-search-icon",wr:"{{icon}}"},{J:"div",K:"ytp-search-title",wr:"Pesquisar"}]});this.api=p;this.Z=x;this.visible=!1;this.updateValue("icon",{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},N:[{J:"path",K:"ytp-svg-fill", G:{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"}}]});p.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.U();this.X(p,"appresize",this.U);this.X(p,"videodatachange",this.U);wz(p,this.element,this)}; U9=function(p){g.N.call(this,{J:"div",K:"ytp-seek-overlay",N:[{J:"div",CI:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],N:[{J:"div",CI:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],N:[{J:"svg",G:{viewBox:"0 0 22 32",width:"22",height:"24"},N:[{J:"path",G:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{J:"div",K:"ytp-seek-overlay-duration",wr:"{{durationBack}}"}]},{J:"div",CI:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],N:[{J:"div",K:"ytp-seek-overlay-duration",wr:"{{durationForward}}"},{J:"div",CI:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],N:[{J:"svg",G:{viewBox:"0 0 22 32",width:"22",height:"24"},N:[{J:"path",G:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{J:"div",K:"ytp-seek-overlay-message",N:[{J:"div",K:"ytp-seek-overlay-message-icon",wr:"{{icon}}"},{J:"div",K:"ytp-seek-overlay-message-text", wr:"{{text}}"}]}]});var x=this;this.W=p;this.V=0;this.U="hidden";this.Y=this.BO("ytp-seek-overlay-animation-back");this.T=this.BO("ytp-seek-overlay-animation-forward");this.Zt=this.BO("ytp-seek-overlay-message");this.S=new g.AW(function(){Afx(x)},g.e_(this.W.L().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.Z(this,this.S);this.W.createClientVe(this.T,this,28240);this.W.createClientVe(this.Y,this,28239);this.W.logVisibility(this.T,!0);this.W.logVisibility(this.Y,!0);this.hide()}; PK1=function(p,x){p.j=p.B.animate([{offset:0,opacity:x,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});p.j.addEventListener("finish",function(){p.j=void 0;p.S.start();p.U="lingering"})}; qGI=function(p,x,a,v){a=a===void 0?!1:a;v=v===void 0?!1:v;var c=[];c.push({offset:0,transform:"translateX("+(p.Z===-1?20:-20)+"px)",opacity:a?"0":"1"});a&&c.push({offset:.5,opacity:"1"});c.push({offset:1,transform:"translateX(0)"});a=x.animate(c,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});x=x.querySelector("path");c=[];c.push({offset:0,d:p.Z===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});v&&c.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); p={offset:1,d:p.Z===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};v&&(p.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");c.push(p);x.animate(c,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return a}; nS_=function(p){var x=p.B.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);x.classList.add("ytp-seek-overlay-arrow-additional");x.classList.remove("ytp-seek-overlay-arrow-persistent");p.B.appendChild(x);qGI(p,x,!0,!0).addEventListener("finish",function(){x.remove()})}; Afx=function(p,x,a){a=a===void 0?!0:a;p.j=p.B.animate([{offset:0,opacity:x===void 0?1:x},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});a&&(p.j.addEventListener("finish",function(){p.j=void 0;eM_(p);p.hide()}),p.U="fading-out")}; uV_=function(p){var x=Number(getComputedStyle(p.B).opacity),a;(a=p.j)==null||a.cancel();p.j=void 0;return x}; eM_=function(p){p.V=0;p.U="hidden";p.Z=void 0;p.B=void 0;p.S.stop();p.j=void 0}; VO_=function(p,x,a){p.updateValue("text",x);if(a){a:{switch(a){case "PREMIUM_STANDALONE":x=mlz();break a;case "PREMIUM_STANDALONE_CAIRO":x=SU8();break a}x=void 0}p.updateValue("icon",x)}x=g.k(p.Zt.getAnimations());for(a=x.next();!a.done;a=x.next())a.value.cancel();p.Zt.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){p.updateValue("text","");p.updateValue("icon","")})}; HO=function(p,x,a,v){v=v===void 0?240:v;g.N.call(this,{J:"button",CI:["ytp-button","ytp-share-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"Compartilhar":"","data-tooltip-title":"Compartilhar","aria-haspopup":"true","aria-owns":a.element.id,"data-tooltip-opaque":String(g.nH(p.L()))},N:[{J:"div",K:"ytp-share-icon",wr:"{{icon}}"},{J:"div",K:"ytp-share-title",wr:"Compartilhar"}]});this.api=p;this.U=x;this.Z=a;this.j=v;this.visible=!1;this.tooltip=this.U.Gn();p.createClientVe(this.element, this,28664);this.listen("click",this.onClick);this.X(p,"videodatachange",this.Yg);this.X(p,"videoplayerreset",this.Yg);this.X(p,"appresize",this.Yg);this.X(p,"presentingplayerstatechange",this.Yg);this.Yg();this.addOnDisposeCallback(g.zQ(this.tooltip,this.element))}; FFz=function(p){var x=p.api.L(),a=p.api.getVideoData(),v=g.nH(x)&&g.Os(p.api)&&g.q(p.api.getPlayerStateObject(),128);x=x.j||x.disableSharing&&p.api.getPresentingPlayerType()!==2||!a.showShareButton||a.CD||v||a.fp||!1;v=p.api.fI().getPlayerSize().width;return!!a.videoId&&v>=p.j&&!x}; pio=function(p,x){x.name!=="InvalidStateError"&&x.name!=="AbortError"&&(x.name==="NotAllowedError"?(p.U.ZD(),aW(p.Z,p.element,!1)):g.Uq(x))}; $RT=function(p,x){var a=pV(),v=p.L();a={J:"div",K:"ytp-share-panel",G:{id:pV(),role:"dialog","aria-labelledby":a},N:[{J:"div",K:"ytp-share-panel-inner-content",N:[{J:"div",K:"ytp-share-panel-title",G:{id:a},wr:"Compartilhar"},{J:"a",CI:["ytp-share-panel-link","ytp-no-contextmenu"],G:{href:"{{link}}",target:v.T,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},wr:"{{linkText}}"},{J:"label",K:"ytp-share-panel-include-playlist",N:[{J:"input",K:"ytp-share-panel-include-playlist-checkbox", G:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{J:"div",K:"ytp-share-panel-loading-spinner",N:[D6()]},{J:"div",K:"ytp-share-panel-service-buttons",wr:"{{buttons}}"},{J:"div",K:"ytp-share-panel-error",wr:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{J:"button",CI:["ytp-share-panel-close","ytp-button"],G:{title:"Fechar"},N:[g.rN()]}]};g.xK.call(this,p,a,250);var c=this;this.moreButton=null;this.api=p;this.tooltip= x.Gn();this.j=[];this.S=this.BO("ytp-share-panel-inner-content");this.closeButton=this.BO("ytp-share-panel-close");this.X(this.closeButton,"click",this.iV);this.addOnDisposeCallback(g.zQ(this.tooltip,this.closeButton));this.B=this.BO("ytp-share-panel-include-playlist-checkbox");this.X(this.B,"click",this.Yg);this.U=this.BO("ytp-share-panel-link");this.addOnDisposeCallback(g.zQ(this.tooltip,this.U));this.api.createClientVe(this.U,this,164503);this.X(this.U,"click",function(J){J.preventDefault();c.api.logClick(c.U); var R=c.api.getVideoUrl(!0,!0,!1,!1);R=xRx(c,R);g.Wy(R,c.api,J)&&c.api.NT("SHARE_CLICKED")}); this.listen("click",this.Hc);this.X(p,"videoplayerreset",this.hide);this.X(p,"fullscreentoggled",this.onFullscreenToggled);this.X(p,"onLoopRangeChange",this.lO);this.hide()}; va1=function(p,x){aRx(p);for(var a=x.links||x.shareTargets,v=0,c={},J=0;J0&&!u&&!E?(X.length===2&&(X=["noreferrer"]),g.YY(Y,D,L,X[0]),Y=Vu1()):(H=m.join(","),wu()&&Y.navigator&&Y.navigator.standalone&&L&&L!="_self"?(H=g.Lw("A"),g.bO(H,D),H.target=L,f&&(H.rel="noreferrer"),((h=h.attributionsrc)||h==="")&&H.setAttribute("attributionsrc",h),h=document.createEvent("MouseEvent"), h.initMouseEvent("click",!0,!0,Y,1),H.dispatchEvent(h),Y=Vu1()):f?(Y=g.YY(Y,"",L,H),h=g.vs(D),Y&&(Y.opener=null,h===""&&(h="javascript:''"),h='',h=lO(h),(D=Y.document)&&D.write&&(D.write(L9(h)),D.close()))):((Y=g.YY(Y,D,L,H))&&h.noopener&&(Y.opener=null),Y&&h.noreferrer&&(Y.opener=null)));Y&&(Y.opener||(Y.opener=window),Y.focus());l.preventDefault()}}}(c)); c.Yb.addOnDisposeCallback(g.zQ(p.tooltip,c.Yb.element));d==="Facebook"?p.api.createClientVe(c.Yb.element,c.Yb,164504):d==="Twitter"&&p.api.createClientVe(c.Yb.element,c.Yb,164505);p.X(c.Yb.element,"click",function(B){return function(){p.api.logClick(B.Yb.element)}}(c)); p.api.logVisibility(c.Yb.element,!0);p.j.push(c.Yb);v++}}var b=x.more||x.moreLink,r=new g.N({J:"a",CI:["ytp-share-panel-service-button","ytp-button"],N:[{J:"span",K:"ytp-share-panel-service-button-more",N:[{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},N:[{J:"rect",G:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",G:{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"}}]}]}],G:{href:b,target:"_blank",title:"Mais"}});r.listen("click",function(B){var l=b;p.api.logClick(p.moreButton.element);l=xRx(p,l);g.Wy(l,p.api,B)&&p.api.NT("SHARE_CLICKED")}); r.addOnDisposeCallback(g.zQ(p.tooltip,r.element));p.api.createClientVe(r.element,r,164506);p.X(r.element,"click",function(){p.api.logClick(r.element)}); p.api.logVisibility(r.element,!0);p.j.push(r);p.moreButton=r;p.updateValue("buttons",p.j)}; xRx=function(p,x){var a={};g.nH(p.api.L())&&(g.Us(p.api,"addEmbedsConversionTrackingParams",[a]),x=g.jL(x,a));return x}; aRx=function(p){for(var x=g.k(p.j),a=x.next();!a.done;a=x.next())a=a.value,a.detach(),g.aZ(a);p.j=[]}; Tt=function(p){return p===void 0||p.startSec===void 0||p.endSec===void 0?!1:!0}; cHb=function(p,x){p.startSec+=x;p.endSec+=x}; R9U=function(p){Hl.call(this,p);this.Z=this.U=this.isContentForward=this.V=!1;this.element.setAttribute("data-overlay-order","8");JH_(this);this.X(this.W,"changeProductsInVideoVisibility",this.FFT);this.X(this.W,"videodatachange",this.onVideoDataChange)}; KXo=function(p){p.S&&p.qT.element.removeChild(p.S.element);p.S=void 0}; b7z=function(p,x){return x.map(function(a){var v,c;if((a=(v=g.O(a,dRb))==null?void 0:(c=v.thumbnail)==null?void 0:c.thumbnails)&&a.length!==0)return a[0].url}).filter(function(a){return a!==void 0}).map(function(a){a=new g.N({J:"img", K:"ytp-suggested-action-product-thumbnail",G:{alt:"",src:a}});g.Z(p,a);return a})}; rHT=function(p,x){p.isContentForward=x;g.cG(p.badge.element,"ytp-suggested-action-badge-content-forward",x)}; QA=function(p){var x=p.isContentForward&&!p.Na();g.cG(p.badge.element,"ytp-suggested-action-badge-preview-collapsed",x&&p.U);g.cG(p.badge.element,"ytp-suggested-action-badge-preview-expanded",x&&p.Z)}; mW=function(p,x,a){return new g.gZ(p*1E3,x*1E3,{priority:9,namespace:a})}; BE1=function(p){p.W.Mg("shopping_overlay_visible");p.W.Mg("shopping_overlay_preview_collapsed");p.W.Mg("shopping_overlay_preview_expanded");p.W.Mg("shopping_overlay_expanded")}; JH_=function(p){p.X(p.W,g.GF("shopping_overlay_visible"),function(){p.mT(!0)}); p.X(p.W,g.Oo("shopping_overlay_visible"),function(){p.mT(!1)}); p.X(p.W,g.GF("shopping_overlay_expanded"),function(){p.pI=!0;UJ(p)}); p.X(p.W,g.Oo("shopping_overlay_expanded"),function(){p.pI=!1;UJ(p)}); p.X(p.W,g.GF("shopping_overlay_preview_collapsed"),function(){p.U=!0;QA(p)}); p.X(p.W,g.Oo("shopping_overlay_preview_collapsed"),function(){p.U=!1;QA(p)}); p.X(p.W,g.GF("shopping_overlay_preview_expanded"),function(){p.Z=!0;QA(p)}); p.X(p.W,g.Oo("shopping_overlay_preview_expanded"),function(){p.Z=!1;QA(p)})}; Y2x=function(p){g.N.call(this,{J:"div",K:"ytp-shorts-title-channel",N:[{J:"a",K:"ytp-shorts-title-channel-logo",G:{href:"{{channelLink}}",target:p.L().T,"aria-label":"{{channelLogoLabel}}"}},{J:"div",K:"ytp-shorts-title-expanded-heading",N:[{J:"div",K:"ytp-shorts-title-expanded-title",N:[{J:"a",wr:"{{expandedTitle}}",G:{href:"{{channelTitleLink}}",target:p.L().T,tabIndex:"0"}}]}]}]});var x=this;this.api=p;this.U=this.BO("ytp-shorts-title-channel-logo");this.channelName=this.BO("ytp-shorts-title-expanded-title"); this.subscribeButton=null;p.createClientVe(this.U,this,36925);this.X(this.U,"click",function(a){x.api.logClick(x.U);g.YY(window,lR8(x));a.preventDefault()}); p.createClientVe(this.channelName,this,37220);this.X(this.channelName,"click",function(a){x.api.logClick(x.channelName);g.YY(window,lR8(x));a.preventDefault()}); LX_(this);this.X(p,"videodatachange",this.Yg);this.X(p,"videoplayerreset",this.Yg);this.Yg()}; LX_=function(p){if(!p.api.L().XV){var x=p.api.getVideoData(),a=new g.vO("Inscreva-se",null,"Inscrito",null,!0,!1,x.aT,x.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(a.element,p);var v;p.api.setTrackingParams(a.element,((v=x.subscribeButtonRenderer)==null?void 0:v.trackingParams)||null);p.X(a.element,"click",function(){p.api.logClick(a.element)}); p.subscribeButton=a;g.Z(p,p.subscribeButton);p.subscribeButton.WO(p.element)}}; lR8=function(p){var x=p.api.L(),a=p.api.getVideoData();a=g.UF(x)+a.oa;if(!g.nH(x))return a;x={};g.Us(p.api,"addEmbedsConversionTrackingParams",[x]);return g.jL(a,x)}; So=function(p){g.xK.call(this,p,{J:"button",CI:["ytp-skip-intro-button","ytp-popup","ytp-button"],N:[{J:"div",K:"ytp-skip-intro-button-text",wr:"Pular introdu\u00e7\u00e3o"}]},100);var x=this;this.j=!1;this.U=new g.AW(function(){x.hide()},5E3); this.MN=this.zt=NaN;g.Z(this,this.U);this.V=function(){x.show()}; this.S=function(){x.hide()}; this.B=function(){var a=x.W.getCurrentTime();a>x.zt/1E3&&a0?{J:"svg",G:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{J:"path",CI:["ytp-circle-arrow","ytp-svg-fill"],G:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {J:"text",CI:["ytp-jump-button-text","ytp-svg-fill"],G:{x:"7.05",y:"15.05"}}]}:{J:"svg",G:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{J:"path",CI:["ytp-circle-arrow","ytp-svg-fill"],G:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {J:"text",CI:["ytp-jump-button-text","ytp-svg-fill"],G:{x:"6.5",y:"15"}}]}]});var a=this;this.W=p;this.U=x;this.Z=new g.AW(function(){a.j?(a.j=!1,a.Z.start()):a.element.classList.remove("ytp-jump-spin","backwards")},250); this.j=!1;(x=x>0)?this.W.createClientVe(this.element,this,36843):this.W.createClientVe(this.element,this,36844);var v=g.px(x?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.U).toString()});this.W.D("player_tooltip_data_title_killswitch")?this.update({title:v,"data-title-no-tooltip":v,"aria-keyshortcuts":x?"\u2192":"\u2190"}):this.update({"tooltip-title":v,"data-title-no-tooltip":v,"aria-keyshortcuts":x?"\u2192":"\u2190"});this.B=this.element.querySelector(".ytp-jump-button-text"); this.B.textContent=Math.abs(this.U).toString();this.listen("click",this.onClick,this);wz(p,this.element,this)}; URo=function(p,x){x?p.element.classList.add("ytp-jump-button-enabled"):p.element.classList.remove("ytp-jump-button-enabled");p.W.logVisibility(p.element,x);p.W.jg()}; zt=function(p,x){CS.call(this,p,x,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.X(p,g.Oo("timedMarkerCueRange"),this.SV);this.X(p,"updatemarkervisibility",this.updateVideoData)}; H7b=function(p){var x,a=(x=p.W.getVideoData())==null?void 0:x.Ra;if(a)for(p=p.B.gr,a=g.k(a),x=a.next();!x.done;x=a.next())if(x=p[x.value]){var v=void 0,c=void 0,J=void 0;if(((v=x.onTap)==null?void 0:(c=v.innertubeCommand)==null?void 0:(J=c.changeEngagementPanelVisibilityAction)==null?void 0:J.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return x}}; wk=function(p){var x=p.D("web_enable_pip_on_miniplayer");g.N.call(this,{J:"button",CI:["ytp-miniplayer-button","ytp-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},N:["{{icon}}"]});this.W=p;this.visible=!1;this.listen("click",this.onClick);this.X(p,"fullscreentoggled",this.Yg);this.W.D("player_tooltip_data_title_killswitch")? this.update({title:g.Es(p,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:TE1(this,x)}):this.update({"tooltip-title":g.Es(p,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:TE1(this,x)});wz(p,this.element,this);p.createClientVe(this.element,this,62946);this.Yg()}; TE1=function(p,x){return p.W.D("delhi_modern_web_player_icons")?{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:x?{J:"svg",G:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},N:[{J:"g",G:{transform:"translate(96, -96) scale(0.8)"},N:[{J:"path",lV:!0,G:{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"}}]}]}:QQT()}; E9=function(p,x,a,v,c,J){J=J===void 0?!1:J;var R={J:"div",CI:["ytp-input-slider-section"],N:[{J:"input",K:"ytp-input-slider",G:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};c&&R.N.unshift(c);J&&R.CI.push("ytp-vertical-slider");g.N.call(this,R);this.B=p;this.S=x;this.Y=a;this.initialValue=v;this.header=c;this.Z=this.BO("ytp-input-slider");this.U=v?v:p;this.init();this.X(this.Z,"input",this.j);this.X(this.Z,"keydown", this.V)}; yA=function(p,x){p.U=x;p.updateValue("slidervalue",p.U);p.Z.valueAsNumber=p.U;QlQ(p,x)}; QlQ=function(p,x){p.Z.style.setProperty("--yt-slider-shape-gradient-percent",(x-p.B)/(p.S-p.B)*100+"%")}; gk=function(p){var x=p.isMuted()?0:p.getVolume();E9.call(this,0,100,1,x,void 0,!0);this.W=p;this.Zt=wI(this.O7,10,this);this.T=!1;this.X(p,"onVolumeChange",this.onVolumeChange);this.X(this.element,"wheel",this.pI)}; mR_=function(p,x){g.N.call(this,{J:"div",G:{tabindex:"0",title:p.D("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},CI:["ytp-volume-popover"]});var a=this;this.isVisible=!1;this.tooltip=x.Gn();this.Z=new gk(p);g.Z(this,this.Z);this.Z.WO(this.element);this.U=new g.AW(function(){Zj(a,!1)},300); this.listen("mouseenter",function(){a.U.stop()}); this.listen("mouseleave",function(){a.U.start()}); this.listen("focus",function(){a.U.stop()}); this.X(this.Z.Z,"focus",function(){a.U.stop()}); this.listen("focusout",function(){a.U.start();a.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.zQ(x.Gn(),this.element));g.Z(this,this.U)}; Zj=function(p,x){p.element.classList.toggle("ytp-volume-popover-hovering",x);p.isVisible=x;(p=p.element.closest(".ytp-chrome-bottom"))&&p.classList.toggle("ytp-volume-popover-showing",x)}; Gt=function(p,x,a){a=a===void 0?!1:a;var v=p.L().qT?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};v=p.D("delhi_modern_web_player")?{J:"div",K:"ytp-mute-button",N:[{J:"button",G:v,CI:["ytp-volume-icon", "ytp-button"],wr:"{{icon}}"}]}:{J:"button",CI:["ytp-mute-button","ytp-button"],G:v,N:[{J:"div",K:"ytp-volume-icon",wr:"{{icon}}"}]};g.N.call(this,v);this.W=p;this.hG=a;this.Z=null;this.V=this.O7=this.T=this.Y=NaN;this.F5=this.Zt=null;this.S=[];this.B=[];this.visible=!1;this.j=this.U=this.pI=null;p.D("delhi_modern_web_player")&&this.update({"data-priority":4});a=this.W.L();this.updateValue("icon",DE());this.tooltip=x.Gn();this.updateValue("dataTooltipOffsetY",0);this.j=g.Kw("ytp-volume-icon",this.element); v=this.W.D("delhi_modern_web_player_icons")?{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",CI:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],G:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{J:"path",K:"ytp-svg-volume-animation-small-ripple",G:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{J:"path",K:"ytp-svg-volume-animation-big-ripple",G:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"defs",N:[{J:"clipPath",G:{id:"ytp-svg-volume-animation-mask"},N:[{J:"path",G:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{J:"path",G:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{J:"path",K:"ytp-svg-volume-animation-mover",G:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{J:"clipPath",G:{id:"ytp-svg-volume-animation-slash-mask"},N:[{J:"path",K:"ytp-svg-volume-animation-mover", G:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{J:"path",lV:!0,CI:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],G:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{J:"path",lV:!0,CI:["ytp-svg-fill","ytp-svg-volume-animation-hider"],G:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.Z=new g.x$(v);g.Z(this,this.Z);this.Zt=this.Z.BO("ytp-svg-volume-animation-speaker");this.F5=this.Zt.getAttribute("d");this.S=g.Jb("ytp-svg-volume-animation-mover",this.Z.element);this.W.D("delhi_modern_web_player_icons");this.B=g.Jb("ytp-svg-volume-animation-hider",this.Z.element);this.W.D("delhi_modern_web_player_icons");this.qT=new Fq;g.Z(this,this.qT);this.u$=new Fq;g.Z(this,this.u$);this.X(p,"appresize",this.hO);this.X(p,"onVolumeChange",this.onVolumeChange);p.D("delhi_modern_web_player")? this.listen("click",this.ivt):this.listen("click",this.dl);a.qT?(p.D("delhi_modern_web_player")&&(this.U=new mR_(p,x),this.U.WO(this.element),g.Z(this,this.U),this.X(this.j,"mouseover",this.CK),this.X(this.j,"focus",this.CK),this.X(this.j,"mouseout",this.HT),this.X(this.j,"blur",this.HT)),a=p.D("delhi_modern_web_player")?this.j:this.element,this.addOnDisposeCallback(g.zQ(x.Gn(),a))):S21(this);this.message=null;p.createClientVe(this.element,this,28662);this.hO(p.fI().getPlayerSize());this.setVolume(p.getVolume(), p.isMuted())}; fR1=function(p,x){if(p.W.L().qT){var a=g.Es(p.W,"Sem \u00e1udio","m"),v=g.Es(p.W,"Reativar o som","m");a=x?v:a;p.W.L().D("player_tooltip_data_title_killswitch")?p.updateValue("title",a):p.update({"tooltip-title":a,"aria-label":a});p.update({"data-title-no-tooltip":x?"Reativar o som":"Sem \u00e1udio"});p.tooltip.jg()}}; i78=function(p,x){p.Y=x;var a=p.F5;p.W.D("delhi_modern_web_player_icons")?p.Z.BO("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(x+") translate(-22,-12)")):x&&(a+=yd1(Cj1,XiT,x));p.Zt.setAttribute("d",a)}; oaU=function(p,x){var a;x===1?a=p.W.D("delhi_modern_web_player_icons")?{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:DE():a=p.Z;p.O7=x;if(p.W.D("delhi_modern_web_player_icons"))p.Z.BO("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-x+") translate(-18,-12)")),p.Z.BO("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(p.Y-x+") translate(-22, -12)"));else{for(var v=20*x,c=0;c=3&&p.W.getPresentingPlayerType()!==2}; ga1=function(p){var x=GQ(p.W.uV());return x?p.U?x.SB():x.vG():!1}; wi1=function(p){var x={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},a=p.playlist!=null&&p.playlist.SB();a=g.Os(p.W)&&(!p.U||a);var v=p.U&&g.n_(p.W),c=ga1(p),J=p.U&&p.W.getPresentingPlayerType()===5,R=g.Es(p.W,"Pr\u00f3ximo","SHIFT+n"),d=g.Es(p.W,"Anterior","SHIFT+p");if(J)x.title="Iniciar v\u00eddeo",x["tooltip-title"]="Iniciar v\u00eddeo";else if(p.j)x.title="Reiniciar",x["tooltip-title"]="Reiniciar";else if(a){var b= null;p.playlist&&(b=g.DQ(p.playlist,p.U?mbN(p.playlist):SSg(p.playlist)));if(b){if(b.videoId){var r=p.playlist.listId;x.url=p.W.L().getVideoUrl(b.videoId,r?r.toString():void 0)}x.text=b.title;x.duration=b.lengthText?b.lengthText:b.lengthSeconds?g.YI(b.lengthSeconds):null;x.preview=b.BB("mqdefault.jpg")}p.U?(x.title=R,x["tooltip-title"]=R,x["data-title-no-tooltip"]="Pr\u00f3ximo",x["aria-keyshortcuts"]="SHIFT+n"):(x.title=d,x["tooltip-title"]=d,x["data-title-no-tooltip"]="Anterior",x["aria-keyshortcuts"]= "SHIFT+p")}else if(v){if(d=(b=p.videoData)==null?void 0:g.jY(b))x.url=d.q1(),x.text=d.title,x.duration=d.lengthText?d.lengthText:d.lengthSeconds?g.YI(d.lengthSeconds):null,x.preview=d.BB("mqdefault.jpg");x.title=R;x["tooltip-title"]=R;x["data-title-no-tooltip"]="Pr\u00f3ximo";x["aria-keyshortcuts"]="SHIFT+n"}x.disabled=!v&&!a&&!c&&!J;p.update(x);p.V=!!x.url;v||a||p.j||c||J?p.Z||(p.Z=g.zQ(p.tooltip,p.element),p.S=p.listen("click",p.onClick,p)):p.Z&&(p.Z(),p.Z=null,p.IA(p.S),p.S=null);p.tooltip.jg(); g.cG(p.element,"ytp-playlist-ui",p.U&&(a||p.W.D("web_hide_next_button")))}; z9g=function(p,x){return p?x?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:LV():x?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:fvT()}; GoN=function(p,x){g.N.call(this,{J:"div",K:"ytp-fine-scrubbing",N:[{J:"div",K:"ytp-fine-scrubbing-draggable",N:[{J:"div",K:"ytp-fine-scrubbing-thumbnails",G:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{J:"div",G:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{J:"div",K:"ytp-fine-scrubbing-seek-time",G:{"aria-hidden":"true"}, wr:"{{seekTime}}"},{J:"div",K:"ytp-fine-scrubbing-play",N:[p.D("delhi_modern_web_player_icons")?IX():je()],G:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{J:"div",K:"ytp-fine-scrubbing-dismiss",N:[g.rN()],G:{title:"Sair da busca precisa",role:"button"}}]});var a=this;this.api=p;this.S=this.BO("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.BO("ytp-fine-scrubbing-dismiss");this.O7=this.BO("ytp-fine-scrubbing-draggable");this.playButton=this.BO("ytp-fine-scrubbing-play");this.thumbnails= [];this.Z=[];this.hG=this.U=0;this.qT=void 0;this.Zt=NaN;this.V6=this.T=this.j=this.Y=0;this.B=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.tG=0;this.isEnabled=this.F5=!1;Z7I(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.zQ(x,this.dismissButton));this.addOnDisposeCallback(g.zQ(x,this.playButton));this.u$=new g.g$(this.O7,!0);this.u$.subscribe("dragstart",this.Bd,this);this.u$.subscribe("dragmove",this.O3,this);this.u$.subscribe("dragend",this.rQ,this);this.X(p,"SEEK_COMPLETE", this.yx);p.D("web_fix_fine_scrubbing_false_play")&&this.X(p,"rootnodemousedown",function(v){a.pI=v}); this.S.addEventListener("keydown",function(){}); g.Z(this,this.u$);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Z7I=function(p,x){var a=g.YI(x),v=g.px("Procurar $PROGRESS",{PROGRESS:g.YI(x,!0)});p.update({ariamin:0,ariamax:Math.floor(p.api.getDuration()),arianow:Math.floor(x),arianowtext:v,seekTime:a})}; O7J=function(p){p.Zt=NaN;p.T=0;p.Y=p.j}; PjI=function(p){var x=p.api.wM();if(x){var a=90*p.scale,v=ah(x,160*p.scale);if(x=x.levels[v]){p.V=x.width;if(!p.B.length){v=[];for(var c=sg(x,x.Mj()),J=x.columns*x.rows,R=x.frameCount,d=0;d<=c;d++)for(var b=Rp.B.length;)v= void 0,(v=p.thumbnails.pop())==null||v.dispose();for(;p.thumbnails.lengtha.length;)v=void 0,(v=p.Z.pop())==null||v.dispose(); for(;p.Z.length-a?-x/a*p.interval*.5:-(x+a/2)/a*p.interval}; q28=function(p){return-((p.S.offsetWidth||(p.frameCount-1)*p.V*p.scale)-p.U/2)}; NE_=function(){g.N.call(this,{J:"div",K:"ytp-fine-scrubbing-thumbnail"})}; AHx=function(){g.N.call(this,{J:"div",K:"ytp-fine-scrubbing-chapter-title",N:[{J:"div",K:"ytp-fine-scrubbing-chapter-title-content",wr:"{{chapterTitle}}"}]})}; e9U=function(p){g.N.call(this,{J:"div",K:"ytp-heat-map-chapter",N:[{J:"svg",K:"ytp-heat-map-svg",G:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},N:[{J:"defs",N:[{J:"clipPath",G:{id:"{{id}}"},N:[{J:"path",K:"ytp-heat-map-path",G:{d:"",fill:"white"}}]},{J:"linearGradient",G:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},N:[{J:"stop",G:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{J:"stop",G:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{J:"rect",K:"ytp-heat-map-graph",G:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",K:"ytp-heat-map-hover",G:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",K:"ytp-heat-map-play",G:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{J:"path",K:"ytp-modern-heat-map",G:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=p;this.Y=this.BO("ytp-heat-map-svg");this.S=this.BO("ytp-heat-map-path");this.B=this.BO("ytp-heat-map-graph");this.V=this.BO("ytp-heat-map-play");this.U=this.BO("ytp-heat-map-hover");this.j=this.BO("ytp-modern-heat-map");this.mU=!1;this.Z=60;p=""+g.Rv(this);this.update({id:p});p="url(#"+p+")";this.B.setAttribute("clip-path",p);this.V.setAttribute("clip-path",p);this.U.setAttribute("clip-path",p)}; ufN=function(p,x){x>0&&(p.Z=x,p.Y.style.height=p.Z+"px")}; PO=function(){g.N.call(this,{J:"div",K:"ytp-chapter-hover-container",N:[{J:"div",K:"ytp-progress-bar-padding"},{J:"div",K:"ytp-progress-list",N:[{J:"div",CI:["ytp-play-progress","ytp-swatch-background-color"]},{J:"div",K:"ytp-progress-linear-live-buffer"},{J:"div",K:"ytp-load-progress"},{J:"div",K:"ytp-hover-progress"},{J:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Z=this.BO("ytp-progress-list");this.S=this.BO("ytp-progress-linear-live-buffer"); this.B=this.BO("ytp-ad-progress-list");this.V=this.BO("ytp-load-progress");this.Y=this.BO("ytp-play-progress");this.j=this.BO("ytp-hover-progress");this.U=this.BO("ytp-chapter-hover-container")}; qB=function(p,x){g.Ab(p.U,"width",x)}; VE1=function(p,x){g.Ab(p.U,"margin-right",x+"px")}; FX1=function(){this.Z=this.position=this.j=this.U=this.B=this.width=NaN}; pUb=function(){g.N.call(this,{J:"div",K:"ytp-timed-marker"});this.U=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.eo=function(p,x){g.s6.call(this,{J:"div",K:"ytp-progress-bar-container",G:{"aria-disabled":"true"},N:[{J:"div",CI:["ytp-heat-map-container"],N:[{J:"div",K:"ytp-heat-map-edu"}]},{J:"div",CI:["ytp-progress-bar"],G:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},N:[{J:"div",K:"ytp-chapters-container"},{J:"div",K:"ytp-timed-markers-container"},{J:"div", K:"ytp-clip-start-exclude"},{J:"div",K:"ytp-clip-end-exclude"},{J:"div",K:"ytp-scrubber-container",N:[{J:"div",CI:["ytp-scrubber-button","ytp-swatch-background-color"],N:[{J:"div",K:"ytp-scrubber-pull-indicator"},{J:"img",CI:["ytp-decorated-scrubber-button"]}]}]}]},{J:"div",CI:["ytp-fine-scrubbing-container"],N:[{J:"div",K:"ytp-fine-scrubbing-edu"}]},{J:"div",K:"ytp-bound-time-left",wr:"{{boundTimeLeft}}"},{J:"div",K:"ytp-bound-time-right",wr:"{{boundTimeRight}}"},{J:"div",K:"ytp-clip-start",G:{title:"{{clipstarttitle}}"}, wr:"{{clipstarticon}}"},{J:"div",K:"ytp-clip-end",G:{title:"{{clipendtitle}}"},wr:"{{clipendicon}}"}]});this.api=p;this.FM=!1;this.tU=this.JR=this.Ra=this.S=this.OT=0;this.L3=null;this.K1=!1;this.tG={};this.vX={};this.clipEnd=Infinity;this.KW=this.BO("ytp-clip-end");this.aA=new g.g$(this.KW,!0);this.RA=this.BO("ytp-clip-end-exclude");this.y8=this.BO("ytp-clip-start-exclude");this.clipStart=0;this.G$=this.BO("ytp-clip-start");this.Iw=new g.g$(this.G$,!0);this.Zt=this.US=0;this.progressBar=this.BO("ytp-progress-bar"); this.OS={};this.gr={};this.HO=this.BO("ytp-chapters-container");this.zt=this.BO("ytp-timed-markers-container");this.U=[];this.V=[];this.x_={};this.Z$=null;this.F5=-1;this.Zp=this.qT=0;this.ow=this.Y=null;this.Xq=this.BO("ytp-scrubber-button");this.O7=this.BO("ytp-decorated-scrubber-button");this.qX=this.BO("ytp-scrubber-container");this.oa=new g.Ng;this.Kp=0;this.YO=new FX1;this.j=new HC(0,0);this.WX=null;this.T=this.zC=!1;this.dh=null;this.pI=this.BO("ytp-heat-map-container");this.lc=this.BO("ytp-heat-map-edu"); this.B=[];this.heatMarkersDecorations=[];this.T4=this.BO("ytp-fine-scrubbing-container");this.YN=this.BO("ytp-fine-scrubbing-edu");this.Z=void 0;this.hG=this.MN=this.V6=!1;this.tooltip=x.Gn();this.addOnDisposeCallback(g.zQ(this.tooltip,this.KW));g.Z(this,this.aA);this.aA.subscribe("hoverstart",this.tC,this);this.aA.subscribe("hoverend",this.K5,this);this.X(this.KW,"click",this.B1);this.addOnDisposeCallback(g.zQ(this.tooltip,this.G$));g.Z(this,this.Iw);this.Iw.subscribe("hoverstart",this.tC,this); this.Iw.subscribe("hoverend",this.K5,this);this.X(this.G$,"click",this.B1);xJ1(this);this.X(p,"resize",this.LW);this.X(p,"presentingplayerstatechange",this.Aw);this.X(p,"videodatachange",this.WM);this.X(p,"videoplayerreset",this.m4);this.X(p,"cuerangesadded",this.oLa);this.X(p,"cuerangesremoved",this.uqI);this.X(p,"onLoopRangeChange",this.iC);this.X(p,"innertubeCommand",this.onClickCommand);this.X(p,"onRetroModeChanged",this.m67);this.X(p,g.GF("timedMarkerCueRange"),this.JiO);this.X(p,"updatemarkervisibility", this.La);this.X(p,"serverstitchedvideochange",this.EL5);this.updateVideoData(p.getVideoData(),!0);this.iC(p.getLoopRange());nS(this)&&!this.Z&&(this.Z=new GoN(this.api,this.tooltip),p=g.p$(this.element).x||0,this.Z.LW(p,this.S),this.Z.WO(this.T4),g.Z(this,this.Z),this.X(this.Z.dismissButton,"click",this.j4),this.X(this.Z.playButton,"click",this.pR),this.X(this.Z.element,"dblclick",this.pR));this.api.createClientVe(this.pI,this,139609,!0);this.api.createClientVe(this.lc,this,140127,!0);this.api.createClientVe(this.YN, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; xJ1=function(p){if(p.U.length===0){var x=new PO;p.U.push(x);g.Z(p,x);x.WO(p.HO,0)}for(;p.U.length>1;)p.U.pop().dispose();qB(p.U[0],"100%");p.U[0].startTime=0;p.U[0].title=""}; $JT=function(p){var x=x===void 0?NaN:x;var a=new e9U(p.api);p.B.push(a);g.Z(p,a);a.WO(p.pI);x>=0&&(a.element.style.width=x+"px")}; aNo=function(p){for(;p.V.length;)p.V.pop().dispose()}; vFN=function(p){var x,a,v,c,J;return(J=g.O((c=g.O((x=p.getWatchNextResponse())==null?void 0:(a=x.playerOverlays)==null?void 0:(v=a.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,Px))==null?void 0:c.playerBar,s98))==null?void 0:J.chapters}; cn1=function(p){for(var x=p.U,a=[],v=0;v=R&&D<=B&&J.push(L)}b>0&&(p.pI.style.height=b+"px");R=p.B[v];B=J;L=c;h=b;D=v===0;D=D===void 0?!1:D;ufN(R,h);l=B;Y=R.Z;D=D===void 0?!1:D;var H=1E3/l.length,f=[];f.push({x:0,y:100});for(var m=0;m0&&(a=J[J.length-1])}g.u0(p);d=[];x=g.k(x.heatMarkersDecorations||[]);for(c=x.next();!c.done;c=x.next())if(c=g.O(c.value,BO_))b=c.label,v=a=r=void 0,d.push({visibleTimeRangeStartMillis:(r=c.visibleTimeRangeStartMillis)!=null?r:-1,visibleTimeRangeEndMillis:(a=c.visibleTimeRangeEndMillis)!=null?a:-1,decorationTimeMillis:(v=c.decorationTimeMillis)!=null?v:NaN,label:b?g.Jv(b):""});p.heatMarkersDecorations=d}}; KLo=function(p,x){p.V.push(x);g.Z(p,x);x.WO(p.zt,p.zt.children.length)}; dJI=function(p,x){x=g.k(x);for(var a=x.next();!a.done;a=x.next()){a=a.value;var v=VA(p,a.timeRangeStartMillis/(p.j.U*1E3),F1(p)),c=p.api.D("delhi_modern_web_player")?.667:.6;g.Ab(a.element,"transform","translateX("+v+"px) scaleX("+c+")")}}; Jnx=function(p,x){var a=0,v=!1;x=g.k(x);for(var c=x.next();!c.done;c=x.next()){c=c.value;if(g.O(c,LL1)){c=g.O(c,LL1);var J={startTime:NaN,title:null,onActiveCommand:void 0},R=c.title;J.title=R?g.Jv(R):"";R=c.timeRangeStartMillis;R!=null&&(J.startTime=R);J.onActiveCommand=c.onActiveCommand;c=J;a===0&&c.startTime!==0&&(p.U[a].startTime=0,p.U[a].title="",p.U[a].onActiveCommand=c.onActiveCommand,a++,v=!0);p.U.length<=a&&(J=new PO,p.U.push(J),g.Z(p,J),J.WO(p.HO,p.HO.children.length));p.U[a].startTime= c.startTime;p.U[a].title=c.title?c.title:"";p.U[a].onActiveCommand=c.onActiveCommand;p.U[a].index=v?a-1:a}a++}for(;a=0;v--)if(p.U[v].width>0){VE1(p.U[v],0);var c=Math.floor(p.U[v].width);p.U[v].width=c;qB(p.U[v],c+"px");break}p.U[a].width=0;qB(p.U[a],"0")}else a===p.U.length-1?(v=Math.floor(p.U[a].width+x),p.U[a].width=v,qB(p.U[a],v+"px")):(x=p.U[a].width+x,v=Math.round(x),x-=v,p.U[a].width=v,qB(p.U[a],v+"px"));a=0;if(p.B.length===p.U.length)for(x=0;x< p.B.length;x++)v=p.U[x].width,p.B[x].element.style.width=v+"px",p.B[x].element.style.left=a+"px",a+=v+xq(p);p.api.D("delhi_modern_web_player")&&(p.U.length===1?p.U[0].Z.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(p.U[0].Z.classList.remove("ytp-progress-bar-end"),p.U[0].Z.classList.add("ytp-progress-bar-start"),p.U[p.U.length-1].Z.classList.add("ytp-progress-bar-end")))}; Y1I=function(p,x){var a=0,v=!1,c=p.U.length,J=p.j.U*1E3;J===0&&(J=p.api.getProgressState().seekableEnd*1E3);if(J>0&&p.S>0){for(var R=p.S-xq(p)*p.qT,d=p.Zp===0?3:R*p.Zp,b=g.k(p.U),r=b.next();!r.done;r=b.next())r.value.width=0;for(;a1);r=(J===0?0:b/J*R)+p.U[a].width;if(r>d)p.U[a].width=r;else{p.U[a].width=0;var B=p,l=a,L=B.U[l-1];L!==void 0&&L.width>0? L.width+=r:lp.Zp&&(p.Zp=b/J),v=!0)}a++}}return v}; pW=function(p){if(p.S){var x=p.api.getProgressState(),a=p.api.getVideoData();if(!(a&&a.enableServerStitchedDai&&a.wS)||isFinite(x.current)){var v;if(((v=p.api.getVideoData())==null?0:L_(v))&&x.airingStart&&x.airingEnd)var c=$q(p,x.airingStart,x.airingEnd);else if(p.api.getPresentingPlayerType()===2){var J,R,d;c=(a=(c=p.api.getVideoData())==null?void 0:(J=c.getPlayerResponse())==null?void 0:(R=J.playerConfig)==null?void 0:(d=R.webPlayerConfig)==null?void 0:d.skippableAdProgressBarDuration)?$q(p,x.seekableStart, a/1E3):$q(p,x.seekableStart,x.seekableEnd)}else c=$q(p,x.seekableStart,x.seekableEnd);J=TN(c,x.loaded,0);x=TN(c,x.current,0);R=p.j.Z!==c.Z||p.j.U!==c.U;p.j=c;az(p,x,J);R&&hnI(p);j98(p)}}}; $q=function(p,x,a){return INx(p)?new HC(Math.max(x,p.WX.startTimeMs/1E3),Math.min(a,p.WX.endTimeMs/1E3)):new HC(x,a)}; WL_=function(p,x){var a,v,c;x=g.O((a=x.getWatchNextResponse())==null?void 0:(v=a.playerOverlays)==null?void 0:(c=v.playerOverlayRenderer)==null?void 0:c.decoratedPlayerBarRenderer,Px);if(x==null?0:x.progressColor)for(a=0;a1){a=sD(p,x.j,!0);for(var v=0,c=0;c0&&(v+=p.U[c].width,v+=xq(p));a=(p.U[a].startTime+(x.j-v)/p.U[a].width*((a===p.U.length-1?p.j.U*1E3:p.U[a+1].startTime)-p.U[a].startTime))/1E3||0}return a}; DJQ=function(p,x){if(x<0)return"0";p=Math.floor(Math.min(x,p.api.getDuration())*1E3);return p>2147483647?"0":String(p)}; c9=function(p,x,a,v,c){x=DJQ(p,x);a=DJQ(p,a);p=p.progressBar.visualElement;v={seekData:{startMediaTimeMs:x,endMediaTimeMs:a,seekSource:v}};(x=g.Yi())&&eJ(x,p,c,v)}; UJz=function(p,x,a){if(a>=p.U.length)return!1;var v=p.S-xq(p)*p.qT;return Math.abs(x-p.U[a].startTime/1E3)/p.j.U*v<4}; hnI=function(p){p.Xq.style.removeProperty("height");for(var x=g.k(Object.keys(p.tG)),a=x.next();!a.done;a=x.next())HDg(p,a.value);Jd(p);az(p,p.Zt,p.US)}; F1=function(p){var x=p.oa.x;x=g.ZL(x,0,p.S);p.YO.update(x,p.S);return p.YO}; KW=function(p){return(p.T?135:90)-Rz(p)}; Rz=function(p){var x=48,a=p.api.L();p.api.D("delhi_modern_web_player")?x=p.api.getPlayerSize().width<=528?64:p.T?96:72:p.T?x=54:g.nH(a)&&!a.Z&&(x=40);return x}; az=function(p,x,a){p.Zt=x;p.US=a;var v=F1(p),c=p.j.U,J=bFb(p.j,p.Zt),R=g.px("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.YI(J,!0),DURATION:g.YI(c,!0)}),d=l0(p.U,J*1E3);d=p.U[d].title;p.update({ariamin:Math.floor(p.j.Z),ariamax:Math.floor(c),arianow:Math.floor(J),arianowtext:d?d+" "+R:R});c=p.clipStart;J=p.clipEnd;p.WX&&p.api.getPresentingPlayerType()!==2&&(c=p.WX.startTimeMs/1E3,J=p.WX.endTimeMs/1E3);c=TN(p.j,c,0);d=TN(p.j,J,1);R=p.api.getVideoData();J=g.ZL(x,c,d);a=(R==null?0:g.rz(R))?1:g.ZL(a, c,d);x=VA(p,x,v);g.Ab(p.qX,"transform","translateX("+x+"px)");p.api.D("delhi_modern_web_player")&&p.api.D("delhi_modern_web_player_cutout")&&TOQ(p,x);di(p,v,c,J,"PLAY_PROGRESS");(R==null?0:L_(R))?(x=p.api.getProgressState().seekableEnd)&&di(p,v,J,TN(p.j,x),"LIVE_BUFFER"):di(p,v,c,a,"LOAD_PROGRESS");if(p.api.D("web_player_heat_map_played_bar")){var b;(b=p.B[0])!=null&&b.V.setAttribute("width",(J*100).toFixed(2)+"%")}}; TOQ=function(p,x){p.api.getPresentingPlayerType()!==1?p.HO.style.removeProperty("clip-path"):(x||(x=VA(p,p.Zt,F1(p))),p.HO.style.clipPath='path("'+(p.K1?Q91(p,8,x,p.T?50:36,0,6):Q91(p,4,x,p.T?34:24,2,3))+'")')}; Q91=function(p,x,a,v,c,J){var R=a-v/2;a+=v/2;x+=c;return"M 0 "+c+" L 0 "+(x+" L ")+(R+" "+x+" C ")+(R+J+" "+x+" "+(R+J)+" "+c+" "+R+" "+c+" L 0 ")+(c+" M ")+(a+" "+c+" L ")+(p.S+" "+c+" L ")+(p.S+" "+x+" L ")+(a+" "+x+" C ")+(a-J+" "+x+" "+(a-J)+" "+c+" "+a+" "+c)}; di=function(p,x,a,v,c){var J=p.U.length,R=x.U-p.qT*xq(p),d=a*R;a=sD(p,d);var b=v*R;R=sD(p,b);c==="HOVER_PROGRESS"&&(R=sD(p,x.U*v,!0),b=x.U*v-mJ1(p,x.U*v)*xq(p));v=Math.max(d-S1N(p,a),0);for(d=a;d=p.U.length)return p.S;for(var a=0,v=0;v0||p.RA.clientWidth>0?(J=x.clientWidth/a,p=-1*p.y8.clientWidth/a):(J/=a,p=-1*p.U[c].element.offsetLeft/a),g.Ab(x,"background-size",J+"px"),g.Ab(x,"background-position-x",p+"px"))}; bk=function(p,x,a,v,c){c||p.api.L().Z?x.style.width=a+"px":g.Ab(x,"transform","scalex("+(v?a/v:0)+")")}; sD=function(p,x,a){var v=0;(a===void 0?0:a)&&(x-=mJ1(p,x)*xq(p));a=g.k(p.U);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(x>c.width)x-=c.width;else break;v++}return v===p.U.length?v-1:v}; VA=function(p,x,a){var v=x*p.j.U*1E3;for(var c=-1,J=g.k(p.U),R=J.next();!R.done;R=J.next())R=R.value,v>R.startTime&&R.width>0&&c++;v=c<0?0:c;c=a.U-xq(p)*p.qT;return x*c+xq(p)*v+a.B}; mJ1=function(p,x){for(var a=p.U.length,v=0,c=g.k(p.U),J=c.next();!J.done;J=c.next())if(J=J.value,J.width!==0)if(x>J.width)x-=J.width,x-=xq(p),v++;else break;return v===a?a-1:v}; g.XUx=function(p,x,a,v){var c=p.S!==a,J=p.T!==v;p.OT=x;p.S=a;p.T=v;nS(p)&&(x=p.Z)!=null&&(x.scale=v?1.5:1);hnI(p);p.U.length===1&&(p.U[0].width=a||0);c&&g.u0(p);p.Z&&J&&nS(p)&&(p.Z.isEnabled&&(a=p.T?135:90,v=a-Rz(p),p.T4.style.height=a+"px",g.Ab(p.pI,"transform","translateY("+-v+"px)"),g.Ab(p.progressBar,"transform","translateY("+-v+"px)")),PjI(p.Z))}; Jd=function(p){var x=!!p.WX&&p.api.getPresentingPlayerType()!==2,a=p.clipStart,v=p.clipEnd,c=!0,J=!0;x&&p.WX?(a=p.WX.startTimeMs/1E3,v=p.WX.endTimeMs/1E3):(c=a>p.j.Z,J=p.j.U>0&&vp.Zt);g.cG(p.Xq,"ytp-scrubber-button-hover",a===v&&p.U.length>1);if(p.api.D("web_player_heat_map_played_bar")){var J;(J=p.B[0])!=null&&J.U.setAttribute("width",(x.Z*100).toFixed(2)+"%")}}}; HDg=function(p,x){var a=p.tG[x];x=p.vX[x];var v=F1(p),c=TN(p.j,a.start/1E3,0),J=USg(a,p.T)/v.width;var R=TN(p.j,a.end/1E3,1);J!==Number.POSITIVE_INFINITY&&(c=g.ZL(c,0,R-J));R=Math.min(R,c+J);a.color&&(x.style.background=a.color);a=c;x.style.left=Math.max(a*v.U+v.B,0)+"px";bk(p,x,g.ZL((R-a)*v.U+v.B,0,v.width),v.width,!0)}; iDx=function(p,x){var a=x.getId();p.tG[a]===x&&(g.WY(p.vX[a]),delete p.tG[a],delete p.vX[a])}; nS=function(p){var x=g.YO(p.api.L())&&(p.api.D("web_shorts_pip")||p.api.D("web_watch_pip")),a;return!((a=p.api.getVideoData())==null?0:a.isLivePlayback)&&!p.api.isMinimized()&&!p.api.isInline()&&(!p.api.fd()||!x)}; ri=function(p){p.Z&&(p.Z.disable(),p.Ra=0,p.pI.style.removeProperty("transform"),p.progressBar.style.removeProperty("transform"),p.T4.style.removeProperty("height"),p.element.parentElement&&p.element.parentElement.style.removeProperty("height"))}; oFo=function(p,x){var a=x/KW(p)*Rz(p);g.Ab(p.progressBar,"transform","translateY("+-x+"px)");g.Ab(p.pI,"transform","translateY("+-x+"px)");g.Ab(p.T4,"transform","translateY("+a+"px)");p.T4.style.height=x+a+"px";p.element.parentElement&&(p.element.parentElement.style.height=Rz(p)-a+"px")}; tmN=function(p,x){x?p.Y||(p.element.removeAttribute("aria-disabled"),p.Y=new g.g$(p.progressBar,!0),p.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&p.Y.subscribe("hoverstart",p.WFd,p),p.Y.subscribe("hovermove",p.C2t,p),p.Y.subscribe("hoverend",p.Szr,p),p.Y.subscribe("dragstart",p.uX4,p),p.Y.subscribe("dragmove",p.ipr,p),p.Y.subscribe("dragend",p.hEd,p),p.api&&p.api.D("delhi_modern_web_player")&&p.api.D("delhi_modern_web_player_cutout")&&(p.ow=new g.g$(p.progressBar, !0),p.ow.subscribe("hoverstart",function(){p.K1=!0;TOQ(p)},p),p.ow.subscribe("hoverend",function(){p.K1=!1; TOQ(p)},p)),p.dh=p.listen("keydown",p.lD)):p.Y&&(p.element.setAttribute("aria-disabled","true"),p.IA(p.dh),p.Y.cancel(),p.Y.dispose(),p.Y=null)}; xq=function(p){return p.api.D("delhi_modern_web_player")?4:p.T?3:2}; INx=function(p){var x;return!((x=p.WX)==null||!x.postId)&&p.api.getPresentingPlayerType()!==2}; B9=function(p,x){g.N.call(this,{J:"button",CI:["ytp-remote-button","ytp-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"Reproduzir na TV":"","data-tooltip-title":"Reproduzir na TV","aria-haspopup":"true","data-priority":"10"},wr:"{{icon}}"});this.W=p;this.PX=x;this.U=null;this.X(p,"onMdxReceiversChange",this.Yg);this.X(p,"presentingplayerstatechange",this.Yg);this.X(p,"appresize",this.Yg);p.createClientVe(this.element,this,139118);this.Yg();this.listen("click",this.Z,this);wz(p,this.element, this)}; lk=function(p,x){g.N.call(this,{J:"button",CI:["ytp-button","ytp-settings-button"],G:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":pV(),title:p.D("player_tooltip_data_title_killswitch")?"Detalhes":"","data-tooltip-title":"Detalhes","data-tooltip-target-id":"ytp-settings-button"},N:[p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.WF()]});this.W=p;this.PX=x;this.Z=!0;this.listen("click",this.j);this.X(p,"onPlaybackQualityChange",this.updateBadge);this.X(p,"videodatachange",this.updateBadge);this.X(p,"webglsettingschanged",this.updateBadge);this.X(p,"appresize",this.U);wz(p,this.element,this);this.W.createClientVe(this.element,this,28663);this.updateBadge();this.U(p.fI().getPlayerSize())}; znU=function(p,x){p.Z=!!x;p.U(p.W.fI().getPlayerSize())}; LW=function(p,x){jZ.call(this,"Anota\u00e7\u00f5es",g.Hy.W4);this.W=p;this.PX=x;this.U=!1;p.D("web_settings_menu_icons")&&(x=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(x));this.X(p,"videodatachange",this.Yg);this.X(p,"onApiChange",this.Yg);this.subscribe("select",this.onSelect,this);this.Yg()}; Yq=function(p,x){g.w$.call(this,"Faixa de \u00e1udio",g.Hy.AUDIO,p,x);this.W=p;this.tracks={};g.$W(this.element,"ytp-audio-menu-item");this.countLabel=new g.N({J:"div",N:[{J:"span",wr:"Faixa de \u00e1udio"},{J:"span",K:"ytp-menuitem-label-count",wr:"{{content}}"}]});p.D("web_settings_menu_icons")&&(x=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:TrQ(),this.setIcon(x));g.Z(this,this.countLabel);g.vy(this,this.countLabel);this.X(p,"videodatachange",this.Yg);this.X(p,"onPlaybackAudioChange",this.Yg);this.Yg()}; hd=function(p,x){jZ.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.Hy.qb);this.W=p;this.PX=x;this.U=!1;this.j=[];this.X(p,"presentingplayerstatechange",this.Z);this.subscribe("select",this.onSelect,this);p.createClientVe(this.element,this,113682);this.Z()}; wUN=function(p,x){g.cy.call(this,g.JU({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.W=p;this.PX=x;this.X(this.element,"click",this.onClick);this.PX.u2(this)}; EF1=function(p,x){var a;g.YO(p.L())&&(a={J:"div",K:"ytp-panel-footer-content",N:[{J:"span",wr:"Ajuste a qualidade do download em "},{J:"a",K:"ytp-panel-footer-content-link",wr:"Detalhes",G:{href:"/account_downloads"}}]});g.w$.call(this,"Qualidade",g.Hy.Cy,p,x,void 0,void 0,a);this.W=p;this.O7={};this.Y={};this.B={};this.u$=new Set;this.U=this.S=!1;this.V="unknown";this.Zt="";this.pI=new g.wU;g.Z(this,this.pI);this.S=this.W.D("web_player_use_new_api_for_quality_pullback");this.U=this.W.D("web_player_enable_premium_hbr_playback_cap"); p.D("web_settings_menu_icons")&&(x=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(x));g.$W(this.Z.element,"ytp-quality-menu");this.X(p,"videodatachange",this.u5);this.X(p,"videoplayerreset",this.u5);this.X(p,"onPlaybackQualityChange",this.D_);this.u5();p.createClientVe(this.element,this,137721)}; gFJ=function(p,x,a){var v=p.O7[x],c=g.kc[x];return yn_(p,v?v.qualityLabel:c?c+"p":"Autom\u00e1tico",x,a)}; ZDN=function(p,x,a,v,c){var J=(x=p.U?p.B[x]:p.Y[x])&&x.quality,R=x&&x.qualityLabel;R=R?R:"Autom\u00e1tico";v&&(R="("+R);p=yn_(p,R,J||"",c);v&&p.N.push(")");(v=(v=x&&x.paygatedQualityDetails)&&v.paygatedIndicatorText)&&a&&p.N.push({J:"div",K:"ytp-premium-label",wr:v});return p}; yn_=function(p,x,a,v){x={J:"span",CI:v,N:[x]};var c;v="ytp-swatch-color";if(p.S||p.U)v="ytp-swatch-color-white";a==="highres"?c="8K":a==="hd2880"?c="5K":a==="hd2160"?c="4K":a.indexOf("hd")===0&&a!=="hd720"&&(c="HD");c&&(x.N.push(" "),x.N.push({J:"sup",K:v,wr:c}));return x}; jX=function(p){E9.call(this,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],.05,p.getPlaybackRate(),{J:"div",K:"ytp-speedslider-indicator-container",N:[{J:"div",K:"ytp-speedslider-badge"},{J:"p",K:"ytp-speedslider-text"}]});this.W=p;this.Zt=wI(this.O7,50,this);g.$W(this.Z,"ytp-speedslider");this.T=this.BO("ytp-speedslider-text");this.pI=this.BO("ytp-speedslider-badge");G9Q(this);this.X(this.Z,"change",this.u$)}; G9Q=function(p){p.T.textContent=p.U.toFixed(2)+"x";var x=p.U>2&&p.W.D("enable_web_premium_varispeed");p.pI.classList.toggle("ytp-speedslider-premium-badge",x);p.pI.setAttribute("aria-label",x?"Premium":"")}; Iz=function(p,x,a,v,c,J,R){g.N.call(this,{J:"div",K:"ytp-slider-section",G:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},N:[{J:"div",K:"ytp-slider",N:[{J:"div",K:"ytp-slider-handle"}]}]});this.Y=p;this.T=x;this.Z=a;this.j=v;this.Zt=c;this.F5=J;this.range=this.j-this.Z;this.qT=this.BO("ytp-slider-section");this.B=this.BO("ytp-slider");this.pI=this.BO("ytp-slider-handle");this.V=new g.g$(this.B, !0);this.U=R?R:a;g.Z(this,this.V);this.V.subscribe("dragmove",this.EZ,this);this.X(this.element,"keydown",this.dQ);this.X(this.element,"wheel",this.oN);this.init()}; MZ=function(p){Iz.call(this,.05,.05,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],150,20,p.getPlaybackRate());this.W=p;this.S=g.Lw("P");this.u$=wI(this.O7,50,this);g.$W(this.B,"ytp-speedslider");g.$W(this.S,"ytp-speedslider-text");p=this.S;var x=this.B;x.parentNode&&x.parentNode.insertBefore(p,x.nextSibling);ODf(this);this.X(this.W,"onPlaybackRateChange",this.updateValues)}; ODf=function(p){p.S.textContent=NO1(p,p.U)+"x"}; NO1=function(p,x){p=Number(g.ZL(x,p.Z,p.j).toFixed(2));x=Math.floor((p+.001)*100%5+2E-15);var a=p;x!==0&&(a=p-x*.01);return Number(a.toFixed(2))}; Anb=function(p){g.s6.call(this,{J:"div",K:"ytp-speedslider-component"});p.D("web_settings_use_input_slider")?this.U=new jX(p):this.U=new MZ(p);g.Z(this,this.U);this.element.appendChild(this.U.element)}; PDz=function(p){var x=new Anb(p);T2.call(this,p,x,"Personalizado");g.Z(this,x)}; nFx=function(p,x){var a=new PDz(p);g.w$.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.Hy.Ds,p,x,W9(p)?void 0:"Personalizado",W9(p)?void 0:function(){g.ff(x,a)}); var v=this;this.B=!1;g.Z(this,a);this.Y=new jX(p);g.Z(this,this.Y);if(p.D("web_settings_menu_icons")){var c=p.D("delhi_modern_web_player_icons")?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{J:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(c)}this.W=p;this.B=!1;this.pI=null;W9(p)?(this.U=g.px("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.W.getPlaybackRate().toString()}),this.V=this.W.getPlaybackRate()):this.V=this.U=null;q1I(p)?this.S=kq(4):this.S=null;this.Zt=this.W.getAvailablePlaybackRates();this.X(p,"presentingplayerstatechange",this.Yg);var J;((J=this.W.getVideoData())==null?0:J.O8())&&this.X(p,"serverstitchedvideochange",this.Yg);this.X(this.Y.Z,"change",function(){v.B=!0;v.Yg()}); this.Yg()}; enT=function(p,x){var a=kq(x);p.U&&(p.B||x===p.V)?(p.oB(p.U),p.Aj(x.toString())):p.oB(a)}; VmU=function(p){var x=p.Zt.map(kq);p.S&&x.push(p.S);p.U1(x);p.U=null;p.V=null;x=p.W.getPlaybackRate();W9(p.W)&&uyz(p,x);!p.Zt.includes(x)||p.B?p.oB(p.U):p.oB(kq(x))}; uyz=function(p,x){p.V=x;p.U=g.px("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:x.toString()});x=p.Zt.map(kq);x.unshift(p.U);p.S&&x.push(p.S);p.U1(x)}; FLI=function(p,x,a,v){a=new g.cy({J:"div",CI:["ytp-menuitem"],G:{tabindex:"0",role:"menuitemradio","aria-checked":v?"true":"false"},N:[{J:"div",CI:["ytp-menuitem-label"],N:[{J:"div",CI:["ytp-menuitem-container-with-badge"],N:[{J:"div",wr:"{{label}}"},{J:"div",CI:["ytp-menuitem-premium-badge"]}]}]}]},a,p.yf(x));a.listen("click",function(){p.AB(x)}); return a}; kq=function(p){return p.toString()}; W9=function(p){return p.D("web_settings_menu_surface_custom_playback")}; q1I=function(p){return p.D("enable_web_premium_varispeed_upsell")&&p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1]<=2}; pub=function(p){return p.D("web_settings_menu_surface_custom_playback")&&p.D("web_settings_use_input_slider")}; $4z=function(p,x,a,v){var c=new g.Qr(x,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.w$.call(this,v.text||"",p,x,a,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.ff(a,c)}); var J=this;g.$W(this.element,"ytp-subtitles-options-menu-item");this.setting=v.option.toString();p=v.options;this.settings=g.uZ(p,this.bC,this);this.S=c;g.Z(this,this.S);x=new g.cy({J:"div",K:"ytp-menuitemtitle",wr:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.Z(this,x);this.S.u2(x,!0);this.B=new g.cy({J:"div",K:"ytp-menuitem",G:{role:"menuitemradio",tabindex:"0"},N:[{J:"div",K:"ytp-menuitem-label",wr:"Ativ."}]},-1);g.Z(this,this.B);this.S.u2(this.B,!0);this.X(this.B.element, "click",function(){x4b(J,!0)}); this.U=new g.cy({J:"div",K:"ytp-menuitem",G:{role:"menuitemradio",tabindex:"0"},N:[{J:"div",K:"ytp-menuitem-label",wr:"Desat"}]},-2);g.Z(this,this.U);this.S.u2(this.U,!0);this.X(this.U.element,"click",function(){x4b(J,!1)}); this.U1(g.IT(p,this.bC))}; x4b=function(p,x){p.publish("settingChange",p.setting+"Override",!x);p.PX.o5()}; D1=function(p,x){g.Qr.call(this,p,void 0,"Op\u00e7\u00f5es");var a=this;this.Ln={};for(var v=0;v=0);if(!(x<0||x===p.B)){p.B=x;x=243*p.scale;var a=141*p.scale,v=uZ1(p.Z,p.B,x);IRJ(p.bg,v,x,a,!0);p.pI.start()}}; fu1=function(p){var x=p.U;p.type===3&&p.O7.stop();p.api.removeEventListener("appresize",p.Zt);p.Y||(p.env.D("player_tooltip_data_title_killswitch")?x.setAttribute("title",p.j):x.setAttribute("data-tooltip-title",p.j));p.j="";p.U=null;p.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});p.wrapper.style.width=""}; Xub=function(p){g.N.call(this,{J:"button",CI:["ytp-watch-later-button","ytp-button"],G:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.nH(p.L()))},N:[{J:"div",K:"ytp-watch-later-icon",wr:"{{icon}}"},{J:"div",K:"ytp-watch-later-title",wr:"Assistir mais tarde"}]});this.W=p;this.icon=null;this.visible=this.isRequestPending=this.U=!1;Qsx(p);p.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.X(p,"videoplayerreset",this.onReset);this.X(p,"appresize",this.o_);this.X(p,"videodatachange",this.o_);this.X(p,"presentingplayerstatechange",this.o_);this.o_();p=this.W.L();var x=g.mD("yt-player-watch-later-pending");p.B&&x?(Fjb(),CgU(this)):this.Yg(2);g.cG(this.element,"ytp-show-watch-later-title",g.nH(p));wz(this.W,this.element,this)}; iBx=function(p){var x=p.W.getPlayerSize(),a=p.W.L(),v=p.W.getVideoData(),c=g.nH(a)&&g.Os(p.W)&&g.q(p.W.getPlayerStateObject(),128),J=a.j;return a.L3&&x.width>=240&&!v.isAd()&&v.L3&&!c&&!v.fp&&!p.W.isEmbedsShortsMode()&&!J}; oB_=function(p,x){XHQ(g.bm(p.W.L()),"wl_button",function(){Fjb({videoId:x});window.location.reload()})}; CgU=function(p){if(!p.isRequestPending){p.isRequestPending=!0;p.Yg(3);var x=p.W.getVideoData();x=p.U?x.removeFromWatchLaterCommand:x.addToWatchLaterCommand;var a=p.W.tR(),v=p.U?function(){p.U=!1;p.isRequestPending=!1;p.Yg(2);p.W.L().Y&&p.W.NT("WATCH_LATER_VIDEO_REMOVED")}:function(){p.U=!0; p.isRequestPending=!1;p.Yg(1);p.W.L().Z&&p.W.x5(p.element);p.W.L().Y&&p.W.NT("WATCH_LATER_VIDEO_ADDED")}; mZ(a,x).then(v,function(){p.isRequestPending=!1;p.Yg(4,"Ocorreu um erro. Tente novamente mais tarde.");p.W.L().Y&&p.W.NT("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; tqU=function(p,x){if(x!==p.icon){switch(x){case 3:var a=D6();break;case 1:a=KV();break;case 2:a={J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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:a={J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path", lV:!0,G:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}p.updateValue("icon",a);p.icon=x}}; zqQ=function(){g.V1.apply(this,arguments);this.Jb=(this.iG=g.nH(this.api.L()))&&(this.api.L().Z||ny()||PZ());this.Zd=48;this.pw=69;this.WI=this.Kd=null;this.fn=[];this.ZF=this.bf=this.jT=this.fA=this.Cv=null;this.lA=[];this.contextMenu=this.Aa=this.overflowButton=this.SU=this.c5=this.searchButton=this.copyLinkButton=this.shareButton=this.Zj=this.qG=this.title=this.channelAvatar=this.D2=this.tooltip=null;this.aJ=!1;this.LN=this.Ap=this.mS=this.A9=null;this.M3$=this.Pw=this.Sc=!1}; wuf=function(p){var x=p.api.L(),a=g.q(p.api.getPlayerStateObject(),128);return x.B&&a&&!p.api.isFullscreen()}; EB8=function(p){if(p.XM()&&!p.api.isEmbedsShortsMode()&&p.SU){var x=p.api.D("web_player_hide_overflow_button_if_empty_menu");!p.Zj||x&&!iBx(p.Zj)||tOo(p.SU,p.Zj);!p.shareButton||x&&!FFz(p.shareButton)||tOo(p.SU,p.shareButton);!p.copyLinkButton||x&&!np1(p.copyLinkButton)||tOo(p.SU,p.copyLinkButton)}else{x=p.api.L().getWebPlayerContextConfig();if(p.SU){for(var a=p.SU,v=g.k(a.actionButtons),c=v.next();!c.done;c=v.next())c.value.detach();a.actionButtons=[]}p.searchButton&&!g.kk(p.qG.element,p.searchButton.element)&& p.searchButton.WO(p.qG.element);!p.Zj||(x==null?0:x.hideTopWatchNextButton)||g.kk(p.qG.element,p.Zj.element)||p.Zj.WO(p.qG.element);!p.shareButton||(x==null?0:x.hideTopShareButton)||g.kk(p.qG.element,p.shareButton.element)||p.shareButton.WO(p.qG.element);p.copyLinkButton&&!g.kk(p.qG.element,p.copyLinkButton.element)&&p.copyLinkButton.WO(p.qG.element)}}; yNI=function(p,x,a){x=a?x.lastElementChild:x.firstElementChild;for(var v=null;x;){if(nw(x,"display")!=="none"&&x.getAttribute("aria-hidden")!=="true"){var c=void 0;x.tabIndex>=0?c=x:c=yNI(p,x,a);c&&(v?a?c.tabIndex>v.tabIndex&&(v=c):c.tabIndexv/1E3+1)return{msg:"in-the-past"};if(J.isLivePlayback&&!isFinite(v))return{msg:"live-infinite"};(v=x.gV())&&v.isView()&&(v=v.mediaElement);if(v&&v.Iy().length>12&&g.Eg(c))return{msg:"played-ranges"};if(!c.j)return null;if(!R)return{msg:"no-pvd-formats"};if(!c.j.U||!R.U)return{msg:"non-dash"};v=R.videoInfos[0];var d=c.j.videoInfos[0];p.Zt&&kh(J)&&(v=x.Ve(), d=a.Ve());if(!v||!d)return{msg:"no-video-info"};if(p.S&&(Ci(v)||Ci(d)))return{msg:"av1"};x=p.B&&J.nT()&&$_();if(d.containerType!==v.containerType)if(x)J.jA("sgap",{ierr:"container"});else return{msg:"container"};if(p.C&&!x&&(d.rr!==v.rr||d.rr===""||v.rr===""))return{msg:"codec"};if(p.V&&d.video&&v.video&&Math.abs(d.video.width/d.video.height-v.video.width/v.video.height)>.01)return{msg:"ratio"};if(g.Eg(J)&&g.Eg(c))return{msg:"content-protection"};R=R.U[0];c=c.j.U[0];a=R.audio;var b=c.audio;if(a.sampleRate!== b.sampleRate&&!g.Li)if(x)J.jA("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:R.itag,cr:a.sampleRate,ni:c.itag,nr:b.sampleRate};return(a.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:p.Y&&J.nT()&&v.video.fps!==d.video.fps?{msg:"fps"}:null}; OBN=function(p,x,a){var v=p.getVideoData(),c=x.getVideoData();if(!v.L().supportsGaplessShorts())return{nq:"env"};if((!a.T||v.o9&&!v.isAd()||c.o9&&!c.isAd())&&(!a.Z||v.o9&&!v.isAd()||c.o9)&&(!a.j||c.o9&&!c.isAd()||v.o9)&&(v.o9||c.o9))return{nq:"autoplay"};if(v.endSeconds>0)return{nq:"endcr"};if(!v.V)return{nq:"client"};if(!p.BN())return{nq:"no-empty"};p=GC1(a,p,x,Infinity);return p!=null?{nq:p.msg}:null}; gi=function(p){g.y.call(this);this.app=p;this.C=this.B=this.Z=this.U=null;this.j=1;this.events=new g.II(this);this.events.X(this.app.X5,g.Oo("gaplessshortslooprange"),this.Y);g.Z(this,this.events)}; Ns1=function(){this.U=this.V=this.j=this.Z=this.T=this.S=this.Zt=this.Y=this.C=this.B=!1}; AN8=function(p){var x=new Ns1;x.B=p.D("h5_gapless_support_types_diff");x.Y=p.D("h5_gapless_error_on_fps_diff");x.Zt=p.D("html5_gapless_use_format_info_fix");x.S=p.D("html5_gapless_disable_on_av1")&&!p.D("html5_gapless_enable_on_av1");x.C=p.D("html5_gapless_check_codec_diff_strictly");x.T=p.D("html5_gapless_on_ad_autoplay");x.V=p.D("html5_gapless_disable_diff_aspect_radio");x.Z=p.D("html5_gapless_ad_autoplay_on_ad_to_video_only");x.U=p.D("html5_pseudogapless_shorts_seek_to_next_start");x.j=p.D("html5_gapless_ad_autoplay_on_video_to_ad_only"); return x}; g.Z1=function(p,x,a,v){v=v===void 0?!1:v;rM.call(this);this.mediaElement=p;this.start=x;this.end=a;this.U=v}; Pgf=function(p,x,a,v,c,J){J=J===void 0?0:J;g.y.call(this);var R=this;this.policy=p;this.U=x;this.Z=a;this.q6=c;this.C=J;this.B=this.j=null;this.currentVideoDuration=this.S=-1;this.V=!1;this.VQ=new bl;this.aV=v-x.Y0()*1E3;this.VQ.then(void 0,function(){}); this.timeout=new g.AW(function(){R.kL("timeout")},1E4); g.Z(this,this.timeout);this.Y=isFinite(v)||this.q6.L().experiments.cO("html5_pseudogapless_shorts")&&kh(x.getVideoData());this.status={status:0,error:null}}; nB8=function(p){var x,a,v,c,J,R,d,b,r;return g.t(function(B){if(B.Z==1){if(p.b$())return B.return(Promise.reject(Error(p.status.error||"disposed")));p.timeout.start();return g.C(B,p.VQ,2)}x=p.U.gV();if(x.isEnded())return p.kL("ended_in_finishTransition"),B.return(Promise.reject(Error(p.status.error||"")));if(!p.B||!vN(p.B))return p.kL("next_mse_closed"),B.return(Promise.reject(Error(p.status.error||"")));if(p.Z.jQ()!==p.B)return p.kL("next_mse_mismatch"),B.return(Promise.reject(Error(p.status.error|| "")));a=Gg(p);v=a.E2;c=a.sE;J=a.Sl;p.U.Cd(!1,!0);R=qAU(x,v,J,!p.Z.getVideoData().isAd());p.Z.setMediaElement(R);(d=p.U.jI())&&p.Z.Dq(d.mf,d.AI);p.Y&&(p.policy.U||p.Z.seekTo(p.Z.getCurrentTime()+.001,{DL:!0,Bn:3,Cp:"gapless_pseudo"}),R.play(),Ql());b=x.cX();b.cpn=p.U.getVideoData().clientPlaybackNonce;b.st=""+v;b.et=""+J;p.Z.jA("gapless",b);p.U.jA("gaplessTo",{cpn:p.Z.getVideoData().clientPlaybackNonce});r=p.U.getPlayerType()===p.Z.getPlayerType();p.U.lK(c,!0,!1,r,p.Z.getVideoData().clientPlaybackNonce); p.Z.lK(p.Z.getCurrentTime(),!0,!0,r,p.U.getVideoData().clientPlaybackNonce);p.Z.qn();g.D9(function(){!p.Z.getVideoData().pI&&p.Z.getPlayerState().isOrWillBePlaying()&&p.Z.Oa()}); OD(p,6);p.dispose();return B.return(Promise.resolve())})}; F9I=function(p){if(p.Z.getVideoData().j){var x=p.q6.L().D("html5_gapless_suspend_next_loader")&&p.C===1;p.Z.zk(p.B,x,eqJ(p));OD(p,3);uDf(p);var a=VqN(p);x=a.XI;a=a.K9;x.subscribe("updateend",p.WA,p);a.subscribe("updateend",p.WA,p);p.WA(x);p.WA(a)}}; uDf=function(p){p.U.unsubscribe("internalvideodatachange",p.jJ,p);p.Z.unsubscribe("internalvideodatachange",p.jJ,p);p.q6.L().D("html5_gapless_use_format_info_fix")&&(p.U.unsubscribe("internalvideoformatchange",p.jJ,p),p.Z.unsubscribe("internalvideoformatchange",p.jJ,p));p.U.unsubscribe("mediasourceattached",p.jJ,p);p.Z.unsubscribe("statechange",p.d1,p)}; qAU=function(p,x,a,v){p=p.isView()?p.mediaElement:p;return new g.Z1(p,x,a,v)}; OD=function(p,x){x<=p.status.status||(p.status={status:x,error:null},x===5&&p.VQ.resolve())}; eqJ=function(p){return p.q6.L().D("html5_gapless_no_clear_buffer_timeline")&&p.C===1&&TV(p.U.getVideoData())}; Gg=function(p){var x=p.U.gV();x=x.isView()?x.start:0;var a=p.U.getVideoData().isLivePlayback?Infinity:p.U.iH(!0);a=Math.min(p.aV/1E3,a)+x;var v=p.Y?100:0;p=a-p.Z.Sh()+v;return{OE:x,E2:p,sE:a,Sl:Infinity}}; VqN=function(p){return{XI:p.j.U.Tw,K9:p.j.Z.Tw}}; NZ=function(p){g.y.call(this);var x=this;this.app=p;this.S=this.Z=this.U=null;this.Y=!1;this.j=this.B=null;this.C=AN8(this.app.L());this.V=function(){g.D9(function(){pt1(x)})}}; xOT=function(p,x,a,v,c){v=v===void 0?0:v;c=c===void 0?0:c;p.BN()||Ad(p);p.B=new bl;p.U=x;var J=a,R=c===0;R=R===void 0?!0:R;var d=p.app.md(),b=d.getVideoData().isLivePlayback?Infinity:d.iH(!0)*1E3;J>b&&(J=b-200,p.Y=!0);R&&d.getCurrentTime()>=J/1E3?p.V():(p.Z=d,R&&(R=J,J=p.Z,p.app.X5.addEventListener(g.GF("vqueued"),p.V),R=isFinite(R)||R/1E3>J.getDuration()?R:0x8000000000000,p.S=new g.gZ(R,0x8000000000000,{namespace:"vqueued"}),J.addCueRange(p.S)));R=v/=1E3;J=x.getVideoData().U;v&&J&&p.Z&&(d=v,b=0, x.getVideoData().isLivePlayback&&(R=Math.min(a/1E3,p.Z.iH(!0)),b=Math.max(0,R-p.Z.getCurrentTime()),d=Math.min(v,x.iH()+b)),R=XNT(J,d)||v,R!==v&&p.U.jA("qvaln",{st:v,at:R,rm:b,ct:d}));x=R;v=p.U;v.getVideoData().OT=!0;v.getVideoData().V=!0;v.Ih(!0);J={};p.Z&&(J=p.Z.IT(),R=p.Z.getVideoData().clientPlaybackNonce,J={crt:(J*1E3).toFixed(),cpn:R});v.jA("queued",J);x!==0&&v.seekTo(x+.01,{DL:!0,Bn:3,Cp:"videoqueuer_queued"});p.j=new Pgf(p.C,p.app.md(),p.U,a,p.app,c);a=p.j;a.status.status!==Infinity&&(OD(a, 1),a.U.subscribe("internalvideodatachange",a.jJ,a),a.Z.subscribe("internalvideodatachange",a.jJ,a),a.q6.L().D("html5_gapless_use_format_info_fix")&&(a.U.subscribe("internalvideoformatchange",a.jJ,a),a.Z.subscribe("internalvideoformatchange",a.jJ,a)),a.U.subscribe("mediasourceattached",a.jJ,a),a.Z.subscribe("statechange",a.d1,a),a.U.subscribe("newelementrequired",a.AC,a),a.jJ());return p.B}; pt1=function(p){var x,a,v,c,J,R,d;g.t(function(b){switch(b.Z){case 1:if(p.b$()||!p.B||!p.U)return b.return();p.Y&&p.app.md().hv(!0,!1);x=null;if(!p.j){b.Ia(2);break}g.DJ(b,3);return g.C(b,nB8(p.j),5);case 5:g.T1(b,2);break;case 3:x=a=g.SI(b);case 2:if(!p.U)return b.return();$Oo.m8("vqsp",function(){p.app.wP(p.U)}); if(!p.U)return b.return();v=p.U.gV();p.app.L().D("html5_gapless_seek_on_negative_time")&&v&&v.getCurrentTime()<-.01&&p.U.seekTo(0);$Oo.m8("vqpv",function(){p.app.playVideo()}); x&&(p.U?(c=x?x.message:"forced",(J=p.Z)==null||J.jA("gapfulfbk",{r:c}),p.U.yq(c)):(R=p.Z)==null||R.jA("gapsp",{}));d=p.B;Ad(p);d&&d.resolve();return b.return(Promise.resolve())}})}; Ad=function(p,x){x=x===void 0?!1:x;if(p.Z){if(p.S){var a=p.Z;p.app.X5.removeEventListener(g.GF("vqueued"),p.V);a.removeCueRange(p.S)}p.Z=null;p.S=null}p.j&&(p.j.status.status!==6&&(a=p.j,a.status.status!==Infinity&&a.C!==1&&a.kL("Canceled")),p.j=null);p.B=null;p.U&&!x&&p.U!==p.app.pW()&&p.U!==p.app.md()&&p.U.dispose();p.U&&x&&p.U.Fo();p.U=null;p.Y=!1}; alf=function(p){var x;return((x=p.j)==null?void 0:x.currentVideoDuration)||-1}; sM1=function(p,x,a){if(p.BN())return"qie";if(p.U==null||p.U.b$()||p.U.getVideoData()==null)return"qpd";if(x.videoId!==p.U.Gy())return"vinm";if(alf(p)<=0)return"ivd";if(a!==1)return"upt";if((a=p.j)==null)p=void 0;else if(a.getStatus().status!==5)p="niss";else if(GC1(a.policy,a.U,a.Z,a.aV)!=null)p="pge";else{x=VqN(a);p=x.XI;var v=x.K9;x=g.e_(a.q6.L().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var c=a.S+x;a.q6.L().experiments.cO("html5_pseudogapless_shorts")&&(c=Gg(a).E2+x);a=Ph(v.rH(), c);p=Ph(p.rH(),c);p=!(x>0)||a&&p?null:"neb"}return p!=null?p:null}; v4f=function(){g.Fx.call(this);var p=this;this.fullscreen=0;this.B=this.j=this.pictureInPicture=this.U=this.Z=this.inline=!1;this.C=function(){p.mT()}; JGf(this.C);this.S=this.getVisibilityState(this.F8(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.fd(),this.r7(),this.zi(),this.XR())}; drN=function(p){return!(p.isMinimized()||p.isInline()||p.isBackground()||p.fd()||p.r7()||p.zi()||p.XR())}; g.P9=function(p){g.y.call(this);this.z4=p;this.videoData=this.playerState=null}; eX=function(p,x){g.y.call(this);var a=this;this.data=[];this.j=p||NaN;this.Z=x||null;this.U=new g.AW(function(){qZ(a);nW(a)}); g.Z(this,this.U)}; Swg=function(p){qZ(p);return p.data.map(function(x){return x.value})}; qZ=function(p){var x=(0,g.WR)();p.data.forEach(function(a){a.expire0));p.qZ()&& pw8();Error.stackTraceLimit=50;var c=g.e_(x,"html5_idle_rate_limit_ms");c&&Object.defineProperty(window,"requestIdleCallback",{value:function(J){return window.setTimeout(J,c)}}); pK_(p.C);zTb(a("html5_use_ump_request_slicer"));b11(a("html5_record_now"));a("html5_disable_streaming_xhr")&&(lT=!1);a("html5_byterate_constraints")&&(UY=!0);a("html5_use_non_active_broadcast_for_post_live")&&(b4=!0);a("html5_enable_encrypted_av1")&&(fi=!0);nex(g.e_(p.experiments,"html5_sticky_duration_mos"))}; r5f=function(p,x){return p.slice(x.length).replace(/_[a-z]/g,function(a){return a.toUpperCase().replace("_","")}).replace("Dot",".")}; Bf1=function(p){var x={},a=Object.keys(p.experiments.flags);a=g.k(a);for(var v=a.next();!v.done;v=a.next())if(v=v.value,v.startsWith("cobalt_h5vcc"))if(v.startsWith("cobalt_h5vcc_string")){var c=r5f(v,"cobalt_h5vcc_string");v=LH(p.experiments,v);c&&v&&(x[c]=VYf(c,v))}else v.startsWith("cobalt_h5vcc")&&(c=r5f(v,"cobalt_h5vcc"),v=g.e_(p.experiments,v),c&&v&&(x[c]=VYf(c,v)));return x}; Lsg=function(p,x,a,v){v=v===void 0?0:v;g.pI.call(this,a.TB());var c=this;this.DU=p;this.videoData=x;this.duration=v;this.U=this.startTimeSecs=0;this.Z=new ll_(function(J,R){return void c.jA(J,R)})}; ll_=function(p){this.jA=p;this.U={}}; Yhz=function(p,x,a){p.U[x]||(p.jA("huli-sdai-err",a),p.U[x]=!0)}; hf8=function(p){this.end=this.start=p}; g.xd=function(){this.U=new Map;this.j=new Map;this.Z=new Map}; jMg=function(p){var x=this;this.z4=p;this.U=[];this.j=new Map;this.B=new Map;this.Z=new Map;this.d3={gj:function(){return x.j}, Xj$:function(){return x.B}}; this.C=this.z4.D("html5_huli_ssdai_deprecate_playback_timeline_id")}; M5z=function(p,x){g.nG(p.U,x,function(a,v){return a.ZU===v.ZU?a.durationMs-v.durationMs:a.ZU-v.ZU}); p.j.set(x.cpn,x);x.Jj&&!p.C&&p.B.set(x.Jj,x);x.lH&&Ilb(p,x.lH,x)}; Wsx=function(p,x){for(var a=[],v=g.k(p.U),c=v.next();!c.done;c=v.next())c=c.value,x(c)||a.push(c);if(p.z4.D("html5_sstm_fixes"))for(v=g.k(p.U),c=v.next();!c.done;c=v.next())c=c.value,x(c)&&(p.j.delete(c.cpn),c.Jj&&p.B.delete(c.Jj));p.U=a}; k7_=function(p,x){x=g.Gy(p.U,{k$:x},function(a,v){return a.k$-v.k$}); return x>=0?p.U[x]:null}; DOz=function(p,x){var a=p.U.indexOf(x);a>=0&&p.U.splice(a,1);p.j.delete(x.cpn);x.Jj&&p.B.delete(x.Jj)}; Ilb=function(p,x,a){var v=p.Z.get(x);v?(v.push(a),g.PQ(v,function(c,J){return c.ZU-J.ZU})):p.Z.set(x,[a])}; g.$d=function(p,x,a,v){g.y.call(this);var c=this;this.api=p;this.z4=x;this.playback=a;this.app=v;this.pI=new g.xd;this.Z=new Map;this.F5=new Map;this.u$=null;this.oa=NaN;this.Ra=this.T4=null;this.HO=new g.AW(function(){UOT(c,c.oa,c.T4||void 0)}); this.events=new g.II(this);this.tG=15E3;this.V=new g.AW(function(){c.Y=!0;c.playback.w0(c.tG);HC1(c);if(c.playback.getVideoData().O8()){var J;c.w3({togab:(J=c.S)==null?void 0:J.identifier})}c.JY(!1)},this.tG); this.Y=!1;this.C=new Map;this.hG=[];this.S=null;this.ol=new Set;this.T=[];this.gr=[];this.KW=[];this.OS=[];this.qT=new Set;this.pj=0;this.Zt=!1;this.XV=new Set;this.vX=new Set;this.G$=new Set;this.LI=new Set;this.Zp=this.yK=0;this.Zh=this.US=!1;this.ek=this.B="";this.O7=null;this.logger=new g.YU("dai");this.d3={na6:function(){return c.Z}, gj:function(){return c.U.d3.gj()}, Xad:function(){return c.B}, BzG:function(J){c.onCueRangeEnter(c.Z.get(J))}, SvO:function(J){c.onCueRangeExit(c.Z.get(J))}, TPA:function(J,R){c.Z.set(J,R)}, orr:function(J){c.ek=J}, jW:function(){return c.jW()}, t6a:function(J){return c.U.Z.get(J)}, tW7:function(){return c.O7}, Kw7:function(){return c.U.U}}; this.playback.getPlayerType();this.U=new jMg(this.z4);this.playback.v1(this);this.V6=this.z4.qZ();g.Z(this,this.HO);g.Z(this,this.events);g.Z(this,this.V);this.events.X(this.api,g.GF("serverstitchedcuerange"),this.onCueRangeEnter);this.events.X(this.api,g.Oo("serverstitchedcuerange"),this.onCueRangeExit);pY(this.app.bH(),this.playback,!1)}; flb=function(p,x,a,v,c,J,R,d){var b=Tf8(p,J,J+c);p.Y&&p.w3({adaftto:1});a||p.w3({missadcon:1,enter:J,len:c,aid:d});p.j&&!p.j.j2&&(p.j.j2=d);p.Zh&&p.w3({adfbk:1,enter:J,len:c,aid:d});var r=p.playback;J>R&&aw(p,{reason:"enterTime_greater_than_return",ZU:J,k$:R});var B=r.Lp()*1E3;Jr&&aw(p,{reason:"parent_return_greater_than_content_duration",k$:R,K2A:r});(r=k7_(p.U,J))&&r.k$>J&&QMI(p,x.video_id||"", J,R,r);if(b&&r)for(B=0;B=0)for(var c=x*1E3,J=v;J<=v+1&&J=R.ZU-a*1E3&&c<=R.k$+a*1E3)return{zc:R,T1:x}}return{zc:void 0,T1:x}}; t5z=function(p,x){var a="";(x=iC_(p,x))&&(a=x.getId());return a?p.U.V8({cpn:a}):void 0}; iC_=function(p,x){if(p.ek){var a=p.Z.get(p.ek);if(a&&a.start-200<=x&&a.end+200>=x)return a}p=g.k(p.Z.values());for(a=p.next();!a.done;a=p.next())if(a=a.value,a.start<=x&&a.end>=x)return a}; UOT=function(p,x,a){var v=p.Ra||p.app.md().getPlayerState();c5(p,!0);p.playback.seekTo(x,a);p=p.app.md();x=p.getPlayerState();v.isOrWillBePlaying()&&!x.isOrWillBePlaying()?p.playVideo():v.isPaused()&&!x.isPaused()&&p.pauseVideo()}; c5=function(p,x){p.oa=NaN;p.T4=null;p.HO.stop();p.u$&&x&&p.u$.PQ();p.Ra=null;p.u$=null}; ZCQ=function(p){var x=x===void 0?-1:x;var a=a===void 0?Infinity:a;y5U(p,x,a);for(var v=g.k(p.Z.values()),c=v.next();!c.done;c=v.next())c=c.value,c.start>=x&&c.end<=a&&(p.playback.removeCueRange(c),p.Z.delete(c.getId()),p.w3({rmAdCR:1}));v=v5(p,x/1E3);x=v.zc;v=v.T1;x&&(v=v*1E3-x.ZU,g4b(p,x,v,x.ZU+v),v=p.Z.get(x.cpn))&&(v.start=x.ZU,v.end=x.ZU+x.durationMs);if(x=v5(p,a/1E3).zc){var J;v="playback_timelinePlaybackId_"+x.Jj+"_video_id_"+((J=x.videoData)==null?void 0:J.videoId)+"_durationMs_"+x.durationMs+ "_enterTimeMs_"+x.ZU+"_parentReturnTimeMs_"+x.k$;p.i9("Invalid_clearEndTimeMs_"+a+"_that_falls_during_"+v+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; G7I=function(p){p.pI.clearAll();p.Z.clear();p.U.clear();p.C.clear();p.hG=[];p.S=null;p.ol.clear();p.z4.experiments.cO("html5_ssdai_log_missing_ad_config_reason")&&p.qT.clear();p.T=[];p.gr=[];p.KW=[];p.OS=[];p.XV.clear();p.vX.clear();p.G$.clear();p.LI.clear();p.Y=!1;p.pj=0;p.Zt=!1;p.yK=0;p.Zp=0;p.US=!1;p.Zh=!1;p.B="";c5o(p.app.bH());pY(p.app.bH(),p.playback,!1);p.F5.clear();p.V.isActive()&&sS(p)}; g4b=function(p,x,a,v){x.durationMs=a;x.k$=v;(v=p.F5.get(x.cpn))?v.xb(a/1E3):p.w3({nop_d:x.cpn})}; y5U=function(p,x,a){Wsx(p.U,function(v){return v.ZU>=x&&v.k$<=a})}; A5f=function(p,x,a,v,c,J){if(!p.Zh)if(g.OCN(p,a))p.w3({gdu:"undec",seg:a,itag:c});else if(x=NfT(p,x,a,v,J),!(p.playback.getVideoData().O8()&&(x==null?0:x.Wq)))return x}; NfT=function(p,x,a,v,c){var J=p.C.get(a);if(!J){if(J=Ptx(p,x))return J;x=p.nH(a-1,v!=null?v:2);if(c)return p.w3({misscue:c,sq:a,type:v,prevsstate:x==null?void 0:x.Y7,prevrecord:p.C.has(a-1)}),p.C.get(a-1);if((x==null?void 0:x.Y7)===2)return p.w3({adnf:1,sq:a,type:v,prevrecord:p.C.has(a-1)}),p.C.get(a-1)}return J}; Ptx=function(p,x){x+=p.xd();if(p.playback.getVideoData().O8())a:{var a=1;a=a===void 0?0:a;var v=x*1E3;p=g.k(p.U.U);for(var c=p.next();!c.done;c=p.next()){c=c.value;var J=c.GZ?c.GZ*1E3:c.ZU;if(v>=c.ZU-a*1E3&&v<=J+c.durationMs+a*1E3){v={zc:c,T1:x};break a}}v={zc:void 0,T1:x}}else v=v5(p,x),((a=v)==null?0:a.zc)||(v=v5(p,x,1));var R;return(R=v)==null?void 0:R.zc}; qhx=function(p,x){x=x===void 0?"":x;var a=Q_(x)||void 0;if(!x||!a){var v;p.w3({adcfg:(v=x)==null?void 0:v.length,dcfg:a==null?void 0:a.length})}return a}; n4U=function(p){for(var x=g.k(p.Z.values()),a=x.next();!a.done;a=x.next())p.playback.removeCueRange(a.value);p.Z.clear();p.pI.clearAll()}; efT=function(p,x,a,v,c,J,R){if(x&&a){p.ek=a.cpn;p.FA(a.cpn,a.startTimeSecs||c);XtI(p,a);var d=Ctb(p,"a2a",a);p.w3(d);p.yK++;p.playback.zT(x,a,v||0,c||0,!!J,!!R)}else p.w3({misspbkonadtrans:1,enter:(a==null?void 0:a.cpn)||"",exit:(x==null?void 0:x.cpn)||"",seek:J,skip:R})}; J3=function(p,x,a){if(a===void 0||!a){a=g.k(p.hG);for(var v=a.next();!v.done;v=a.next()){v=v.value;if(x>=v.start&&x<=v.end)return;if(x===v.end+1){v.end+=1;return}}p.hG.push(new hf8(x))}}; g.OCN=function(p,x){p=g.k(p.hG);for(var a=p.next();!a.done;a=p.next())if(a=a.value,x>=a.start&&x<=a.end)return!0;return!1}; umU=function(p,x,a){var v;if(v=p.playback.getVideoData().O8())v=(v=p.U.V8({cpn:x}))&&v.lH?(p=p.U.Z.get(v==null?void 0:v.lH))&&p.slice(-1)[0].cpn===x:!1;return v&&a===2?1E3:0}; QMI=function(p,x,a,v,c){var J;x={reason:"overlapping_playbacks",iA7:x,ZU:a,k$:v,uoO:c.Jj,Wwt:((J=c.videoData)==null?void 0:J.videoId)||"",J27:c.durationMs,IBT:c.ZU,FwA:c.k$};aw(p,x)}; aw=function(p,x,a){p.playback.P1(x,a)}; V5g=function(p,x){var a=[];p=p.U.Z.get(x);if(!p)return[];p=g.k(p);for(x=p.next();!x.done;x=p.next())x=x.value,x.cpn&&a.push(x.cpn);return a}; Fsg=function(p,x,a){var v=0;p=p.U.Z.get(a);if(!p)return-1;p=g.k(p);for(a=p.next();!a.done;a=p.next()){if(a.value.cpn===x)return v;v++}return-1}; pI1=function(p,x){var a=0;p=p.U.Z.get(x);if(!p)return 0;p=g.k(p);for(x=p.next();!x.done;x=p.next())x=x.value,x.durationMs!==0&&x.k$!==x.ZU&&a++;return a}; xUb=function(p,x,a){var v=!1;if(a=p.U.Z.get(a)){a=g.k(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.durationMs!==0&&c.k$!==c.ZU&&(c=c.cpn,x===c&&(v=!0),v&&!p.vX.has(c)&&(p.w3({decoratedAd:c}),p.vX.add(c)))}}; HC1=function(p){p.V6&&p.w3({adf:"0_"+((new Date).getTime()/1E3-p.Zp)+"_isTimeout_"+p.Y})}; Tf8=function(p,x,a){if(p.T.length)for(var v=g.k(p.T),c=v.next(),J={};!c.done;J={oY:void 0},c=v.next()){J.oY=c.value;c=J.oY.startSecs*1E3;var R=J.oY.uc*1E3+c;if(x>c&&xc&&a0?p:0}else p.jW().videoData.Iw=p.playback.getCurrentTime()}; arf=function(p){p.LI.add(p.B);p.B="";p.Zt=!1}; Ka1=function(p,x,a,v){g.y.call(this);var c=this;this.api=p;this.z4=x;this.U=a;this.app=v;this.C=new Map;this.Z=[];this.j=this.V=null;this.Zt=NaN;this.S=this.B=this.T=null;this.Y=new g.AW(function(){RpI(c,c.Zt,c.T||void 0)}); this.pI=[];this.O7=new g.AW(function(){var J=c.pI.pop();if(J){var R=J.Jj,d=J.playerVars;J=J.playerType;d&&(d.prefer_gapless=!0,c.api.preloadVideoByPlayerVars(d,J,NaN,"",R),c.pI.length&&g.Pk(c.O7,4500))}}); this.events=new g.II(this);this.d3={A2r:function(){return c.Z}}; this.U.getPlayerType();g.Z(this,this.Y);g.Z(this,this.O7);g.Z(this,this.events);this.events.X(this.api,g.GF("childplayback"),this.onCueRangeEnter);this.events.X(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.X(this.api,"presentingplayerstatechange",this.WN)}; BQQ=function(p,x,a,v,c,J){var R=x.cpn,d=x.docid||x.video_id||x.videoId||x.id,b=p.U;J=J===void 0?c+v:J;if(c>J)return KY(p,"enterAfterReturn enterTimeMs="+c+" is greater than parentReturnTimeMs="+J.toFixed(3),R,d),"";var r=b.Lp()*1E3;if(cr)return b="returnAfterDuration parentReturnTimeMs="+J.toFixed(3)+" is greater than parentDurationMs="+r+". And timestampOffset in seconds is "+ b.Y0(),KY(p,b,R,d),"";r=null;for(var B=g.k(p.Z),l=B.next();!l.done;l=B.next()){l=l.value;if(c>=l.ZU&&cl.ZU)return KY(p,"overlappingReturn",R,d),"";if(J===l.ZU)return KY(p,"outOfOrder",R,d),"";c===l.k$&&(r=l)}R="cs_childplayback_"+dU_++;d={GQ:dt(v,!0),aV:Infinity,target:null};var L={Jj:R,playerVars:x,playerType:a,durationMs:v,ZU:c,k$:J,yc:d};p.Z=p.Z.concat(L).sort(function(D,H){return D.ZU-H.ZU}); r?bcx(p,r,{GQ:dt(r.durationMs,!0),aV:r.yc.aV,target:L}):(x={GQ:dt(c,!1),aV:c,target:L},p.C.set(x.GQ,x),b.addCueRange(x.GQ));x=!0;if(p.U===p.app.md()&&(b=b.getCurrentTime()*1E3,b>=L.ZU&&bx)break;if(J>x)return{zc:v,T1:x-c};a=J-v.k$/1E3}return{zc:null,T1:x-a}}; RpI=function(p,x,a){a=a===void 0?{}:a;var v=p.S||p.app.md().getPlayerState();B5(p,!0);x=isFinite(x)?x:p.U.hZ();var c=hpx(p,x);x=c.T1;var J=(c=c.zc)&&!b7(p,c)||!c&&p.U!==p.app.md(),R=x*1E3;R=p.j&&p.j.start<=R&&R<=p.j.end;!J&&R||rt(p);c?r9x(p,c,x,a,v):jgg(p,x,a,v)}; jgg=function(p,x,a,v){var c=p.U;c!==p.app.md()&&p.app.WL();c.seekTo(x,Object.assign({},{Cp:"application_timelinemanager"},a));Ir1(p,v)}; r9x=function(p,x,a,v,c){var J=b7(p,x);if(!J){x.playerVars.prefer_gapless=!0;var R=new g.bq(p.z4,x.playerVars);R.Jj=x.Jj;p.api.vF(R,x.playerType)}R=p.app.md();J||R.addCueRange(x.yc.GQ);R.seekTo(a,Object.assign({},{Cp:"application_timelinemanager"},v));Ir1(p,c)}; Ir1=function(p,x){p=p.app.md();var a=p.getPlayerState();x.isOrWillBePlaying()&&!a.isOrWillBePlaying()?p.playVideo():x.isPaused()&&!a.isPaused()&&p.pauseVideo()}; B5=function(p,x){p.Zt=NaN;p.T=null;p.Y.stop();p.B&&x&&p.B.PQ();p.S=null;p.B=null}; b7=function(p,x){p=p.app.md();return!!p&&p.getVideoData().Jj===x.Jj}; M8Q=function(p){var x=p.Z.find(function(c){return b7(p,c)}); if(x){var a=p.app.md();rt(p);var v=new g.hL(8);x=YIJ(p,x)/1E3;jgg(p,x,{},v);a.jA("forceParentTransition",{childPlayback:1});p.U.jA("forceParentTransition",{parentPlayback:1})}}; kqN=function(p,x,a){x=x===void 0?-1:x;a=a===void 0?Infinity:a;for(var v=x,c=a,J=g.k(p.C),R=J.next();!R.done;R=J.next()){var d=g.k(R.value);R=d.next().value;d=d.next().value;d.aV>=v&&d.target&&d.target.k$<=c&&(p.U.removeCueRange(R),p.C.delete(R))}v=x;c=a;J=[];R=g.k(p.Z);for(d=R.next();!d.done;d=R.next())if(d=d.value,d.ZU>=v&&d.k$<=c){var b=p;b.V===d&&rt(b);b7(b,d)&&b.app.WL()}else J.push(d);p.Z=J;v=hpx(p,x/1E3);x=v.zc;v=v.T1;x&&(v*=1E3,WaQ(p,x,v,x.k$===x.ZU+x.durationMs?x.ZU+v:x.k$));(x=hpx(p,a/1E3).zc)&& KY(p,"Invalid clearEndTimeMs="+a+" that falls during playback={timelinePlaybackId="+(x.Jj+" video_id="+x.playerVars.video_id+" durationMs="+x.durationMs+" enterTimeMs="+x.ZU+" parentReturnTimeMs="+x.k$+"}.Child playbacks can only have duration updated not their start."))}; WaQ=function(p,x,a,v){x.durationMs=a;x.k$=v;v={GQ:dt(a,!0),aV:a,target:null};bcx(p,x,v);b7(p,x)&&p.app.md().getCurrentTime()*1E3>a&&(x=YIJ(p,x)/1E3,a=p.app.md().getPlayerState(),jgg(p,x,{},a))}; KY=function(p,x,a,v){p.U.jA("timelineerror",{e:x,cpn:a?a:void 0,videoId:v?v:void 0})}; UU1=function(p){p&&p!=="web"&&DUT.includes(p)}; l7=function(){g.y.call(this);this.U=new eX(5,null);g.Z(this,this.U);this.Z=new eX(15,null);g.Z(this,this.Z)}; qub=function(p,x){return x?!!p.U.get(x):!1}; HcU=function(p,x){p.dataset.version=x}; mUQ=function(p){g.N.call(this,{J:"div",CI:["html5-video-player"],G:{tabindex:p.L().disableOrganicUi?"":"-1",id:p.webPlayerContextConfig.rootElementId},N:[{J:"div",K:g.j3.VIDEO_CONTAINER,G:{"data-layer":"0"}}]});var x=this;this.app=p;this.e1=this.BO(g.j3.VIDEO_CONTAINER);this.vJ=new g.GL(0,0,0,0);this.r3=null;this.o3=new g.GL(0,0,0,0);this.oL=this.Bw=this.Oy=NaN;this.zm=this.fg=this.XO=this.Yy=!1;this.F2=NaN;this.a$=!1;this.l_=null;this.aE=function(){x.element.focus({preventScroll:!0})}; this.V_=function(){x.app.X5.publish("playerUnderlayVisibilityChange","visible");x.r3.classList.remove(g.j3.VIDEO_CONTAINER_TRANSITIONING);x.r3.removeEventListener(Tm,x.V_);x.r3.removeEventListener("transitioncancel",x.V_)}; this.EM=this.eJ=!1;var a=this.element.addEventListener,v=this.element.removeEventListener;this.addEventListener=function(J,R,d){a.apply(x.element,[J,R,d])}; this.removeEventListener=function(J,R,d){v.apply(x.element,[J,R,d])}; var c=p.L();c.transparentBackground&&this.XB("ytp-transparent");c.controlsType==="0"&&this.XB("ytp-hide-controls");g.$W(this.element,"ytp-exp-bottom-control-flexbox");g.$W(this.element,"ytp-modern-caption");c.D("enable_new_paid_product_placement")&&!g.If(c)&&g.$W(this.element,"ytp-exp-ppp-update");g.$W(this.element,"ytp-livebadge-color");if(c.D("delhi_modern_web_player"))switch(g.$W(this.element,"ytp-delhi-modern"),c.D("delhi_modern_web_player_icons")&&g.$W(this.element,"ytp-delhi-modern-icons"), LH(c.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.$W(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.$W(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.$W(this.element,"ytp-delhi-modern-with-exclusion")}HcU(this.element,TQN(p));this.tP=!1;this.vI=new g.Ps(NaN,NaN);Qgz(this);this.X(p.X5,"onMutedAutoplayChange",this.onMutedAutoplayChange);p=g.e_(c.experiments,"html5_android_mweb_resize_delay");p>0&&(this.s_=new g.AW(function(){return void x.resize()}, p),g.Z(this,this.s_))}; Qgz=function(p){function x(R){p.r3&&LY(p);Yd(p)!==p.a$&&p.resize();p.app.L().D("web_enable_smart_zoom")&&p.Kw&&(R.state.isPaused()?p.Kw.pause():g.Jz(R,8)&&p.Kw.playState==="paused"&&p.Kw.play())} function a(R,d){p.WM(R,d)} function v(R){R.getVideoData()&&p.updateVideoData(R.getVideoData())} function c(){p.o3=new g.GL(0,0,0,0);p.vJ=new g.GL(0,0,0,0)} var J=p.app.X5;J.addEventListener("initializingmode",c);J.addEventListener("videoplayerreset",v);J.addEventListener("videodatachange",a);J.addEventListener("presentingplayerstatechange",x);p.addOnDisposeCallback(function(){J.removeEventListener("initializingmode",c);J.removeEventListener("videoplayerreset",v);J.removeEventListener("videodatachange",a);J.removeEventListener("presentingplayerstatechange",x)})}; fr8=function(p){var x=p.app.md();if(x=x?x.getVideoData():null){if(g.qn(x)||g.nT(x)||g.eY(x))return 16/9;if(W_(x)&&x.j.U)return p=x.j.videoInfos[0].video,SIo(p.width,p.height)}return(p=p.r3)?SIo(p.videoWidth,p.videoHeight):16/9}; Cvf=function(p,x,a,v){var c=a,J=SIo(x.width,x.height);p.Yy?c=aJ?{width:x.width,height:x.width/c,aspectRatio:c}:cc?p.width=p.height*a:ab;if(Yd(p)){var r=fr8(p);var B=isNaN(r)||g.ZH||bQ&&g.BR||b;gd&&!g.gu(601)?r=c.aspectRatio:B=B||J.controlsType==="3";B?b?(B=J.D("place_shrunken_video_on_left_of_player")?16:p.getPlayerSize().width-x.width-16,r=Math.max((p.getPlayerSize().height-x.height)/2,0),B=new g.GL(B,r,x.width, x.height),p.r3.style.setProperty("border-radius","12px")):B=new g.GL(0,0,x.width,x.height):(a=c.aspectRatio/r,B=new g.GL((x.width-c.width/a)/2,(x.height-c.height)/2,c.width/a,c.height),a===1&&g.BR&&(r=B.width-x.height*r,r>0&&(B.width+=r,B.height+=r)));g.cG(p.element,"ytp-fit-cover-video",Math.max(B.width-c.width,B.height-c.height)<1);if(d||p.tP)p.r3.style.display="";p.a$=!0}else{B=-x.height;gd?B*=window.devicePixelRatio:g.M_&&(B-=window.screen.height);B=new g.GL(0,B,x.width,x.height);if(d||p.tP)p.r3.style.display= "none";p.a$=!1}Oa(p.o3,B)||(p.o3=B,g.$O(J)?(p.r3.style.setProperty("width",B.width+"px","important"),p.r3.style.setProperty("height",B.height+"px","important")):g.$G(p.r3,B.getSize()),v=new g.Ng(B.left,B.top),g.VU(p.r3,Math.round(v.x),Math.round(v.y)),v=!0);x=new g.GL((x.width-c.width)/2,(x.height-c.height)/2,c.width,c.height);Oa(p.vJ,x)||(p.vJ=x,v=!0);g.Ab(p.r3,"transform",a===1?"":"scaleX("+a+")");R&&b!==p.fg&&(b&&(p.r3.addEventListener(Tm,p.V_),p.r3.addEventListener("transitioncancel",p.V_),p.r3.classList.add(g.j3.VIDEO_CONTAINER_TRANSITIONING)), p.fg=b,p.app.X5.publish("playerUnderlayVisibilityChange",p.fg?"transitioning":"hidden"));return v}; o7g=function(p){p.eJ=!p.eJ;p.EM=!0;p.element.classList.toggle("ytp-retro-player",p.eJ);p.resize();p.EM=!1;p.app.X5.NT("onRetroModeChanged",p.eJ)}; t8g=function(){this.csn=g.Yi();this.clientPlaybackNonce=null;this.elements=new Set;this.j=new Set;this.U=new Set;this.Z=new Set}; zpT=function(p){if(p.csn!==g.Yi())if(p.csn==="UNDEFINED_CSN")p.csn=g.Yi();else{var x=g.Yi(),a=g.Lr();if(x&&a){p.csn=x;for(var v=g.k(p.elements),c=v.next();!c.done;c=v.next())(c=c.value.visualElement)&&c.isClientVe()&&x&&a&&(g.Ly("combine_ve_grafts")?A2(Ow(),c,a):g.Pr(g.w6)(void 0,x,a,c))}if(x)for(p=g.k(p.U),a=p.next();!a.done;a=p.next())(a=a.value.visualElement)&&a.isClientVe()&&g.Aq(x,a)}}; g.h3=function(p,x,a,v){g.y.call(this);var c=this;this.logger=new g.YU("App");this.Cu=this.W$=!1;this.zA={};this.yG=[];this.Um=!1;this.V3=null;this.intentionalPlayback=!1;this.YX=!0;this.QI=!1;this.LU=this.qW=this.TJ=null;this.cq=!0;this.mediaElement=this.WX=null;this.Ww=NaN;this.Yu=!1;this.X1=this.KC=this.Hh=this.screenLayer=this.playlist=null;this.uT=[];this.Uy=0;this.d3={bH:function(){return c.BE}, MW7:function(){return c.Hh}}; this.logger.debug("constructor begin");if(!a)throw Error("b/179532961");this.PZ=(x==null?void 0:x.args)||{};this.webPlayerContextConfig=a;sHg();x=this.PZ;this.z4=new Kk(x,a,a.canaryState,v,this);g.Z(this,this.z4);bCz(this.z4);a=Bf1(this.z4);this.z4.qZ()&&this.aZ("h5vcc",a);this.z4.experiments.cO("jspb_serialize_with_worker")&&ELg();this.z4.experiments.cO("gzip_gel_with_worker")&&fmf();this.z4.Z&&!wIJ&&(window.addEventListener(ND?"touchstart":"click",ZBb,{capture:!0,passive:!0}),wIJ=!0);this.D("html5_onesie")&& (this.hh=new Ll(this.z4),g.Z(this,this.hh));this.Ye=Vl(uT(this.z4)&&!0,x.enablesizebutton);this.m3=Vl(!1,x.player_wide);this.visibility=new v4f;g.Z(this,this.visibility);this.D("web_log_theater_mode_visibility")&&this.Pf(Vl(!1,x.player_wide));this.W$=Vl(!1,x.external_list);this.events=new g.II(this);g.Z(this,this.events);this.D("start_client_gcf")&&(W1(H1(),{Lu:$w,Xk:pGJ()}),this.Kb=H1().resolve($w),am_(this.Kb));this.dg7=new Hw;g.Z(this,this.dg7);this.SW=new t8g;a=new TQ;this.X5=new g.yy(this,a); g.Z(this,this.X5);this.template=new mUQ(this);g.Z(this,this.template);this.appState=1;this.R5=E78(this);g.Z(this,a);a={};this.Gx=(a.internalvideodatachange=this.n6,a.playbackready=this.xTr,a.playbackstarted=this.Qa$,a.statechange=this.G4d,a);this.Xr=new MT(this.X5);this.Ng=y9U(this);a=this.z4.S;!1!==a&&this.aZ("badps",{hbp:a,hostname:window.location.hostname,ps:this.z4.playerStyle});this.FV=new Dbb(this.z4,this.Ng);this.X5.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Gc8(this.Ng))&& g7f(this);a=10;g.dZ(this.z4)&&(a=3);hC(this.z4)&&(a=g.e_(this.z4.experiments,"tvhtml5_unplugged_preload_cache_size"));this.BE=new g.Vn(this.X5,a);a=Zc_(this);this.BE.XN(a);GqN(this);a={};this.QJ=(a.airplayactivechange=this.ap$,a.airplayavailabilitychange=this.g05,a.beginseeking=this.cXa,a.sabrCaptionsDataLoaded=this.ZpI,a.endseeking=this.etg,a.internalAbandon=this.rXa,a.internalaudioformatchange=this.LNa,a.internalvideodatachange=this.OpT,a.internalvideoformatchange=this.Jjg,a.liveviewshift=this.T35, a.playbackstalledatstart=this.sAt,a.progresssync=this.zE4,a.onAbnormalityDetected=this.AX$,a.onSnackbarMessage=this.P2I,a.onLoadProgress=this.yXr,a.SEEK_COMPLETE=this.pEa,a.SEEK_TO=this.jAd,a.onVideoProgress=this.IU7,a.onLoadedMetadata=this.lpg,a.onAutoplayBlocked=this.N3a,a.onPlaybackPauseAtStart=this.E05,a.playbackready=this.k$4,a.statechange=this.yz,a.newelementrequired=this.Tb,a.heartbeatparams=this.fpG,a.videoelementevent=this.BVA,a.drmoutputrestricted=this.HWI,a.signatureexpired=this.wEr,a.nonfatalerror= this.o0G,a.reloadplayer=this.U6a,a);this.aG=new g.II(this);g.Z(this,this.aG);this.gp=new l7;g.Z(this,this.gp);this.zB=this.ID=-1;this.CL=new g.AW(this.template.resize,16,this.template);g.Z(this,this.CL);this.DU=new Ka1(this.X5,this.z4,this.pW(),this);this.sx=new NZ(this);g.Z(this,this.sx);this.b4=new gi(this);g.Z(this,this.b4);UU1(this.z4.U.c);this.events.X(this.X5,g.GF("appapi"),this.tAa);this.events.X(this.X5,g.Oo("appapi"),this.XO4);this.events.X(this.X5,g.GF("appprogressboundary"),this.D6$);this.events.X(this.X5, g.Oo("applooprange"),this.nL);this.events.X(this.X5,"presentingplayerstatechange",this.WN);this.events.X(this.X5,"resize",this.REG);this.template.WO(vY(document,p));this.events.X(this.X5,"offlineslatestatechange",this.xZ6);this.events.X(this.X5,"sabrCaptionsTrackChanged",this.fU4);this.events.X(this.X5,"sabrCaptionsBufferedRangesUpdated",this.eET);this.Ng.W.L().OT&&ie(this.Ng,"offline");this.z4.LI&&g.He("ux",g.ED);p=g.e_(this.z4.experiments,"html5_defer_fetch_att_ms");this.Bt=new g.AW(this.wmr,p, this);g.Z(this,this.Bt);this.oA().mU()&&(g.fP()&&this.oA().T.push("remote"),Oc1(this));this.FV.tick("fs");NQT(this);this.z4.LI&&ie(this.Ng,"ux",!0);g.nH(this.Ng.W.L())&&ie(this.Ng,"embed");this.D("web_player_sentinel_is_uniplayer")||g.Hp(new g.gr("Player experiment flags missing","web_player_sentinel_is_uniplayer"));p=this.D("web_player_sentinel_yt_experiments_sync");a=g.Ly("web_player_sentinel_yt_experiments_sync");p!==a&&g.Hp(new g.gr("b/195699950",{yt:p,player:a}));this.Q1=A9x(this);if(p=g.e_(this.z4.experiments, "html5_block_pip_safari_delay"))this.J4=new g.AW(this.MB,p,this),g.Z(this,this.J4);m4=this.z4.G$;this.X5.publish("applicationInitialized");this.logger.debug("constructor end")}; A9x=function(p){function x(a){a.stack&&a.stack.indexOf("player")!==-1&&p.md().J_(a)} T4.subscribe("handleError",x);NY.push(x);return function(){T4.unsubscribe("handleError",x);var a=NY.indexOf(x);a!==-1&&NY.splice(a,1)}}; Zc_=function(p){var x=new g.bq(p.z4,p.PZ);p.X5.publish("initialvideodatacreated",x);return jS(p,1,x,!1)}; GqN=function(p){var x=p.pW();x.setPlaybackRate(p.z4.B?1:PvN(p,Number(g.mD("yt-player-playback-rate"))||1));x.Am(p.Gx,p);x.Od()}; y9U=function(p){var x="",a=TQN(p);a.indexOf("//")===0&&(a=p.z4.protocol+":"+a);var v=a.lastIndexOf("/base.js");v!==-1&&(x=a.substring(0,v+1));if(a=Error().stack)if(a=a.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))a=a[1],a.includes(x)||g.Hp(Error("Player module URL mismatch: "+(a+" vs "+x+".")));x=new y3_(p.X5,x);a={};gdU(x,(a.destroyed=function(){p.onApiChange()},a)); return x}; E78=function(p){if(p.z4.storeUserVolume){p=g.mD("yt-player-volume")||{};var x=p.volume;p={volume:isNaN(x)?100:g.ZL(Math.floor(x),0,100),muted:!!p.muted}}else p={volume:100,muted:p.z4.mute};return p}; Iw=function(p){p.mediaElement=p.z4.deviceIsAudioOnly?new g.nf(g.Lw("AUDIO")):yn.pop()||new g.nf(g.Lw("VIDEO"));g.Z(p,p.mediaElement);p.md().setMediaElement(p.mediaElement);try{p.z4.Kp?(p.KC&&p.events.IA(p.KC),p.KC=p.events.X(p.mediaElement,"volumechange",p.n0$)):(p.mediaElement.Ud(p.R5.muted),p.mediaElement.setVolume(p.R5.volume/100))}catch(c){p.kL("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.UU(p.aG);qIQ(p);var x=p.template,a=p.mediaElement.BX();x.r3=a;x.zm=!1;x.r3.parentNode||MW(x.e1,x.r3,0);x.o3=new g.GL(0,0,0,0);ic_(x);LY(x);a=x.r3;g.$W(a,"video-stream");g.$W(a,g.j3.MAIN_VIDEO);var v=x.app.L();v.ma&&a.setAttribute("data-no-fullscreen","true");v.D("html5_local_playsinline")?"playsInline"in Bh()&&(a.playsInline=!0):v.fJ&&(a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""));v.Da&&x.r3&&x.X(a,"click",a.play,a);try{p.mediaElement.activate()}catch(c){p.kL("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(c&&typeof c==="object"&&"message"in c&&typeof c.message==="string"&&c.message.replace(/[;:,]/g,"_")))}}; epo=function(p){if(!n7x(p)){var x=p.pW().gV();x&&(x=x.Gv(),x instanceof Promise&&x.catch(function(){})); Mb(p,HN(p.getPlayerStateObject()))}}; qIQ=function(p){var x=p.mediaElement;hD()?p.aG.X(x,"webkitpresentationmodechanged",p.TV5):window.document.pictureInPictureEnabled&&(p.aG.X(x,"enterpictureinpicture",function(){p.iy(!0)}),p.aG.X(x,"leavepictureinpicture",function(){p.iy(!1)})); Nk&&(p.aG.X(x,"webkitbeginfullscreen",function(){p.Q0(3)}),p.aG.X(x,"webkitendfullscreen",function(){p.Q0(0)}))}; uQg=function(p,x){var a=x.getPlayerType(),v=p.BE.j[a]||null;x!==p.pW()&&x!==v&&(v==null||v.dispose(),p.BE.j[a]=x)}; V8x=function(p,x){x=x===void 0?!0:x;p.logger.debug("start clear presenting player");var a;if(a=p.X1){a=p.X1;var v=p.mediaElement;a=!!v&&v===a.mediaElement}a&&(p.Cd(),Iw(p));a=p.md();a.Cd(!x);a.R2(p.QJ,p);a.getPlayerType()!==1&&a.dispose();x=p.BE;x.Z=x.U;F2(x);p.logger.debug("finish clear presenting player")}; g.FaN=function(p,x,a,v){var c=p.FV;x===2&&(c=new Dbb(p.z4));return new g.vl(p.z4,x,c,p.template,function(J,R,d){p.X5.publish(J,R,d)},function(){return p.X5.getVisibilityState()},p.visibility,p,a,v)}; jS=function(p,x,a,v,c){p=g.FaN(p,x,a,c);p=new g.pI(p);v&&p.Od();return p}; W5=function(p,x){return p.wI(x)?p.pW():x}; kd=function(p,x){var a=p.md();return x===p.pW()&&p.wI(x)&&p.wI(a)?a:x}; $18=function(p){p.logger.debug("start application playback");if(p.pW().getPlayerState().isError())p.logger.debug("start application playback done, player in error state");else{var x=D0(p);p.oA().isLoaded();x&&p.h2(6);pjo(p);VSg(p.Ng)||x1I(p)}}; x1I=function(p){if(!D0(p)){var x=tA(p.Ng);x&&!x.created&&ZY8(p.Ng)&&(p.logger.debug("reload ad module"),x.create())}}; pjo=function(p){p.logger.debug("start presenter playback");var x=p.getVideoData(),a=p.Ng;VSg(a)||a.hk();!H0&&a.W.D("html5_allow_asmjs")&&sdT(a);ie(a,"embed");ie(a,"kids");ie(a,"remote");ie(a,"miniplayer");ie(a,"offline");ie(a,"unplugged");ie(a,"ypc",!1,!0);a.W.D("html5_ypc_clickwrap_module_refactor")||ie(a,"ypc_clickwrap",!1,!0);ie(a,"yto",!1,!0);ie(a,"webgl",!1,!0);Fyg(a)||(ie(a,"captions",!0),ie(a,"endscreen"),a.L2(),ie(a,"creatorendscreen",!0));a.zf();a.W.publish("modulesCreated");p.X5.publish("videoready", x)}; US=function(p){p=p.oA();p.mU();return aN(p)}; NQT=function(p){p.logger.debug("start prepare initial playback");p.Q9();var x=p.PZ;Iw(p);p.events.X(window,"resize",p.v$5);var a=p.oA();p.X5.n1("onVolumeChange",p.R5);if(x&&Qwz(x)){var v=Bx(p.z4);v&&!p.W$&&(x.fetch=0);var c=g.nH(p.z4);c&&!p.W$&&(x.fetch=0);H5(p,x);g.nH(p.z4)&&p.FV.tick("ep_pr_s");if(!v||p.W$)if(c&&!p.W$)aKI(p);else if(!a.mU())p.playlist.onReady(function(){Tc(p)})}p.wP(p.pW(),!1,!0); g.q(p.pW().getPlayerState(),128)||(x=mpb(!p.z4.deviceIsAudioOnly),x==="fmt.noneavailable"?p.kL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):x==="html5.missingapi"?p.kL(x,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):a&&a.mU()&&US(p)&&(p.z4.FM||p.z4.Z$)?QY(p):a.LC?p.X5.mutedAutoplay({durationMode:a.mutedAutoplayDurationMode}):g.mD("yt-player-playback-on-reload")?(g.ab("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!p.z4.O7}),g.Qe("yt-player-playback-on-reload",!1), QY(p)):kO(p.z4)||sYI(p),g.YO(p.z4)||B0(p.z4)==="MWEB"?(g.AX(g.ql(),function(){my(p)}),g.AX(g.ql(),function(){QFQ()})):(my(p),QFQ()),p.logger.debug("finish prepare initial playback"))}; my=function(p){if(!p.D("use_rta_for_player"))if(p.D("fetch_att_independently"))g.Pk(p.Bt);else{var x=p.getVideoData().botguardData;x&&g.p1(x,p.z4,p.getVideoData().TW||"")}}; sYI=function(p){p.logger.debug("start initialize to CUED mode");p.X5.publish("initializingmode");p.h2(2);ie(p.Ng,"remote");ie(p.Ng,"miniplayer");p.logger.debug("initialized to CUED mode")}; QY=function(p){p.logger.debug("start initialize application playback");var x=p.pW();if(g.q(x.getPlayerState(),128))return!1;x=x.getVideoData();US(p)&&p.z4.Z$&&(yn.length&&p.Cu?(SS(p,{muted:!1,volume:p.R5.volume},!1),fY(p,!1)):yn.length||p.R5.muted||(SS(p,{muted:!0,volume:p.R5.volume},!1),fY(p,!0)));US(p)&&g.nH(p.z4)&&x.mutedAutoplay&&(SS(p,{muted:!0,volume:p.R5.volume},!1),fY(p,!0));x.yX&&SS(p,{muted:!0,volume:p.R5.volume},!1);vRQ(p,1,x,!1);var a=p.pW();p.X5.publish("initializingmode");p.wP(a);p.h2(3); var v;if(!(v=!p.z4.le)){if(v=p.X1){v=p.X1;var c=p.mediaElement;v=!!c&&c===v.mediaElement}v=v&&p.Um}v&&(p.Cd(),Iw(p),a.setMediaElement(p.mediaElement));a.I_();if(g.q(a.getPlayerState(),128))return!1;x.ev||Mb(p,3);return p.Um=!0}; D0=function(p){p=GQ(p.Ng);return!!p&&p.loaded}; ciI=function(p,x){if(!p.WX)return!1;var a=p.WX.startTimeMs*.001-1,v=p.WX.endTimeMs*.001;p.WX.type==="repeatChapter"&&v--;return Math.abs(x-a)<=1E-6||Math.abs(x-v)<=1E-6||x>=a&&x<=v}; Jio=function(p){var x=p.md();kh(x.getVideoData())&&!x.n_()&&(x=CY(p)*1E3-p.getVideoData().eM,p.D("html5_gapless_new_slr")?(p=p.b4,X5(p.app,"gaplessshortslooprange"),x=new g.gZ(0,x,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(p=p.app.md())&&p.addCueRange(x)):p.setLoopRange({startTimeMs:0,endTimeMs:x,type:"shortsLoop"}))}; R7I=function(p){var x=p.pW();if(!(g.q(x.getPlayerState(),64)&&p.oA().isLivePlayback&&p.WX.startTimeMs<5E3)){if(p.WX.type==="repeatChapter"){var a,v=(a=In8(p.uV()))==null?void 0:a.Sv(),c;a=(c=p.getVideoData())==null?void 0:c.Z$;v instanceof g.V1&&a&&(c=a[l0(a,p.WX.startTimeMs)],v.renderChapterSeekingAnimation(0,c.title));isNaN(Number(p.WX.loopCount))?p.WX.loopCount=0:p.WX.loopCount++;p.WX.loopCount===1&&p.X5.NT("innertubeCommand",p.getVideoData().Fs5)}v={Cp:"application_loopRangeStart"};if(p.WX.type=== "clips"||p.WX.type==="shortsLoop")v.seekSource=58;x.seekTo(p.WX.startTimeMs*.001,v)}}; PvN=function(p,x){var a=p.X5.getAvailablePlaybackRates();x=Number(x.toFixed(2));p=a[0];a=a[a.length-1];x<=p?x=p:x>=a?x=a:(p=Math.floor(x*100+.001)%5,x=p===0?x:Math.floor((x-p*.01)*100+.001)/100);return x}; CY=function(p,x){x=p.V8({playerType:x});if(!x)return p.BE.U.iH();x=W5(p,x);return i7(p,x.iH(),x)}; i7=function(p,x,a){if(p.wI(a)&&(a=a.getVideoData(),!ow(p))){p=p.DU;for(var v=g.k(p.Z),c=v.next();!c.done;c=v.next())if(c=c.value,a.Jj===c.Jj){x+=c.ZU/1E3;break}v=x;p=g.k(p.Z);for(c=p.next();!c.done;c=p.next()){c=c.value;if(a.Jj===c.Jj)break;var J=c.ZU/1E3;if(J1&&(c=!1);if(!p.Yu||c!==x){a=a.lock(c?"portrait":"landscape");if(a!=null)a["catch"](function(){}); p.Yu=!0}}else p.Yu&&(p.Yu=!1,a.unlock())}; yY=function(p,x,a){p.X5.publish(x,a);var v=g.dZ(p.z4)||g.$O(p.z4)||g.SG(p.z4);if(a&&v){switch(x){case "cuerangemarkersupdated":var c="onCueRangeMarkersUpdated";break;case "cuerangesadded":c="onCueRangesAdded";break;case "cuerangesremoved":c="onCueRangesRemoved"}c&&p.X5.NT(c,a.map(function(J){return{getId:function(){return this.id}, end:J.end,id:J.getId(),namespace:J.namespace==="ad"?"ad":"",start:J.start,style:J.style,visible:J.visible,markerPositionMs:J.markerPositionMs}}))}}; gt=function(p,x,a,v,c,J){a=a===void 0?!0:a;var R=p.V8({playerType:c});if(!R||(R.getPlayerType()!==2||p.wI(R))&&!g.AM(R.getVideoData())){var d=p.BE.uf;d?d.seekTo(x,{Di:!a,CO:v,Cp:"application",seekSource:J}):(R&&R===p.pW()&&p.WX&&!ciI(p,x)&&p.setLoopRange(null),p.seekTo(x,a,v,c,J))}}; U1z=function(p,x,a,v){a&&(p.Cd(),Iw(p));a=p.md();a.sX(x);var c=p.getVideoData(),J={};J.video_id=c.videoId;J.adformat=c.adFormat;c.isLivePlayback||(J.start=a.getCurrentTime(),J.resume="1");c.isLivePlayback&&CT(c)&&g.RU(p.z4)&&(J.live_utc_start=a.Ez(),J.resume="1");c.F5&&(J.vvt=c.F5);c.S&&(J.vss_credentials_token=c.S,J.vss_credentials_token_type=c.LJ);c.oauthToken&&(J.oauth_token=c.oauthToken);J.autoplay=1;J.reload_count=c.XV+1;J.reload_reason=x;c.mV&&(J.unplugged_partner_opt_out=c.mV);c.Ac&&(J.ypc_is_premiere_trailer= c.Ac);c.playerParams&&(J.player_params=c.playerParams);p.loadVideoByPlayerVars(J,void 0,!0,void 0,void 0,v);x==="signature"&&p.Hh&&x1I(p)}; Hdf=function(p,x){p.oA().autonavState=x;g.Qe("yt-player-autonavstate",x);p.X5.publish("autonavchange",x)}; TJ1=function(p){var x=p.getVideoData().cU,a=p.z4.HO,v=p.isInline()&&!p.getVideoData().yN,c=p.mediaElement;x||a||v?c.Rx():(c.Lw(),SS(p,p.R5))}; t3=function(p){var x=tA(p.uV());x&&x.created&&(p.logger.debug("reset ad module"),x.destroy())}; ow=function(p){return p.getVideoData().enableServerStitchedDai&&!!p.Hh}; QYN=function(p,x){x.bounds=p.getBoundingClientRect();for(var a=g.k(["display","opacity","visibility","zIndex"]),v=a.next();!v.done;v=a.next())v=v.value,x[v]=nw(p,v);x.hidden=!!p.hidden}; TQN=function(p){var x=p.webPlayerContextConfig.trustedJsUrl;return x?Ik(x).toString():p.webPlayerContextConfig.jsUrl}; m1I=function(p,x){var a=p.V8({playerType:1});if(a){if(a.getVideoData().clientPlaybackNonce===x)return a;if((p=p.sx.U)&&p.getVideoData().clientPlaybackNonce===x)return p}return null}; g7f=function(p){function x(v){return mo(vpb(p.Ng),function(c){return c.uO(v)})} p.FV.tick("wasm_s");var a=j_I(p.webPlayerContextConfig.wasmModuleUrl,Gc8(p.Ng)?x:void 0,p.aZ.bind(p));a==null||mo(a,function(v){p.FV.tick(v.U?"wasm_fa":"wasm_fw")},function(){p.FV.tick("wasm_ferr")}); nbf(p.z4,a)}; SK8=function(p){return p.name==="TypeError"&&p.stack.includes("/s/player/")&&ts()<=105}; fKz=function(p){return p.isTimeout?"NO_BID":"ERR_BID"}; CBx=function(){var p=null;S3J().then(function(x){return p=x},function(x){return p=fKz(x)}); return p}; Xjf=function(){var p=Ey(1E3,"NO_BID");return g.o6(N38([S3J(),p]).LT(fKz),function(){p.cancel()})}; Z0=function(p){return p.Iw?g.tX(g.oQ(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Gc=function(p){this.player=p;this.j=this.U=1}; tNb=function(p,x,a,v,c,J){x.client||(x.client={});p.player.L().D("h5_remove_url_for_get_ad_break")||(x.client.originalUrl=a);var R=$E(a),d=g.b$(a)?!1:!0;(R||d)&&typeof Intl!=="undefined"&&(x.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);d=g.b$(a)?!1:!0;if(R||d||v!==""){var b={};a=ei(Js(v)).split("&");var r=new Map;a.forEach(function(B){B=B.split("=");B.length>1&&r.set(B[0].toString(),decodeURIComponent(B[1].toString()))}); r.has("bid")&&(b.bid=r.get("bid"));b.params=[];idU.forEach(function(B){r.has(B)&&(B={key:B,value:r.get(B)},b.params.push(B))}); oRU(p,b);x.adSignalsInfo=b}x.client.unpluggedAppInfo||(x.client.unpluggedAppInfo={});x.client.unpluggedAppInfo.enableFilterMode=!1;a=c.U.cosver;a!=null&&a!=="cosver"&&(x.client.osVersion=a);a=c.U.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(x.client.platform=a);a=c.U.cmodel;a!=null&&a!=="cmodel"&&(x.client.deviceModel=a);a=c.U.cplayer;a!=null&&a!=="cplayer"&&(x.client.playerType=a);a=c.U.cbrand;a!=null&&a!=="cbrand"&&(x.client.deviceMake=a);x.user||(x.user={});x.user.lockedSafetyMode=!1;(c.D("embeds_web_enable_iframe_api_send_full_embed_url")|| c.D("embeds_enable_autoplay_and_visibility_signals"))&&g.xO(c)&&cE_(x,J,p.player.getPlayerState(1))}; ERx=function(p,x){var a=!1;if(x==="")return a;x.split(",").forEach(function(v){var c={},J={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},R="ACTIVE";v[0]==="!"&&(v=v.substring(1),R="INACTIVE");v=v.split("-");v.length<3||(v[0]in z7I&&(J.clientName=z7I[v[0]]),v[1]in wjN&&(J.platform=wjN[v[1]]),J.applicationState=R,J.clientVersion=v.length>2?v[2]:"",c.remoteClient=J,p.remoteContexts?p.remoteContexts.push(c):p.remoteContexts=[c],a=!0)}); return a}; gR1=function(p){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in yiU))return!1;p=p.split(RegExp("[:&]"));var x=yiU.FLAG_AUTO_CAPTIONS_DEFAULT_ON,a="f"+(1+Math.floor(x/31)).toString();x=1<=2?R[1]:"";var d=GO1.test(x),b=OdJ.exec(x);b=b!=null&&b.length>=2?b[1]:"";var r=NJT.exec(x);r=r!=null&&r.length>=2&&!Number.isNaN(Number(r[1]))?Number(r[1]):1;var B=Ai_.exec(x);B=B!=null&&B.length>=2?B[1]:"0";var l=cx(p.player.L().Va),L=p.player.getVideoData(1),Y=g.OE(L.hG,!0),h="BISCOTTI_ID"in a?a.BISCOTTI_ID:"";tNb(p,Y,x,h.toString(),p.player.L(), L);L={splay:!1,lactMilliseconds:a.LACT.toString(),playerHeightPixels:Math.trunc(a.P_H),playerWidthPixels:Math.trunc(a.P_W),vis:Math.trunc(a.VIS),signatureTimestamp:20298,autonavState:Z0(p.player.L())};v&&(v={},ERx(v,a.YT_REMOTE)&&(L.mdxContext=v));if(v=PBx.includes(l)?void 0:g.Cy("PREF")){for(var D=v.split(RegExp("[:&]")),H=0,f=D.length;H1&&m[1].toUpperCase()==="TRUE"){Y.user.lockedSafetyMode=!0;break}}L.autoCaptionsDefaultOn= gR1(v)}x=qKQ.exec(x);(x=x!=null&&x.length>=2?x[1]:"")&&b&&(Y.user.credentialTransferTokens=[{token:x,scope:"VIDEO"}]);x={contentPlaybackContext:L};R={adBlock:Math.trunc(a.AD_BLOCK),params:R,breakIndex:r,breakPositionMs:B,clientPlaybackNonce:a.CPN,topLevelDomain:l,isProxyAdTagRequest:d,context:Y,adSignalsInfoString:ei(Js(h.toString())),overridePlaybackContext:x};c!==void 0&&(R.cueProcessedMs=Math.round(c).toString());b&&(R.videoId=b);a.LIVE_TARGETING_CONTEXT&&(R.liveTargetingParams=a.LIVE_TARGETING_CONTEXT); a.AD_BREAK_LENGTH&&(R.breakLengthMs=Math.trunc(a.AD_BREAK_LENGTH*1E3).toString());J&&(R.driftFromHeadMs=J.toString());R.currentMediaTimeMs=Math.round(p.player.getCurrentTime(1)*1E3);(p=p.player.getGetAdBreakContext())&&(R.getAdBreakContext=p);return R}; e71=function(){Gc.apply(this,arguments)}; u81=function(p,x,a,v,c){var J=a.T_;var R=a.GQ;var d=p.player.L().GG,b=0;a.cueProcessedMs&&R&&!J&&(a=R.end-R.start,a>0&&(b=Math.floor(a/1E3)));var r={AD_BLOCK:c,AD_BREAK_LENGTH:J?J.uc:b,AUTONAV_STATE:Z0(p.player.L()),CA_TYPE:"image",CPN:p.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:p.player.J3()*1E3,LACT:hJ(),LIVE_INDEX:J?p.j++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:R?Math.round(R.start/1E3):0,MIDROLL_POS_MS:R?Math.round(R.start):0,VIS:p.player.getVisibilityState(), P_H:p.player.fI().PN().height,P_W:p.player.fI().PN().width,YT_REMOTE:d?d.join(","):""},B=cZ(vZ);Object.keys(B).forEach(function(l){B[l]!=null&&(r[l.toUpperCase()]=B[l].toString())}); v!==""&&(r.BISCOTTI_ID=v);v={};si(x)&&(v.sts="20298",(p=p.player.L().forcedExperiments)&&(v.forced_experiments=p));return xE(g.Qz(x,r),v)}; VNo=function(p,x){var a=p.player.L(),v,c=(v=p.player.getVideoData(1))==null?void 0:v.oauthToken;return g.Hx(a,c).then(function(J){if(J&&ay()){var R=Vy();F6(R,J)}return g.Sb(p.player.tR(R),x,"/youtubei/v1/player/ad_break").then(function(d){return d})})}; Fpg=function(p){this.Dt=p}; p6N=function(p){this.W=p}; xX8=function(p){this.Dt=p}; aeg=function(p){g.y.call(this);this.U=p;this.Nb=$XJ(this)}; $XJ=function(p){var x=new mQx(p.U.vE);g.Z(p,x);p=[new Fpg(p.U.Dt),new p6N(p.U.W),new xX8(p.U.Dt),new lW(p.U.DW,p.U.An),new Yn,new ID(p.U.k_,p.U.O1,p.U.Dt),new Lq,new BT];p=g.k(p);for(var a=p.next();!a.done;a=p.next())S0Q(x,a.value);p=g.k(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(a=p.next();!a.done;a=p.next())ho(x,a.value,function(){}); return x}; OS=function(p){var x=p.KI,a=p.s7;p=p.E8;var v=new Nb1,c={HN:new TN8(x.get(),a),s7:a};return{nW:new Is(a,p,x,c),context:c,LG:v}}; Nb=function(p,x,a,v,c){g.y.call(this);this.Z=x;this.SA=a;this.KI=v;this.QV=c;this.listeners=[];var J=new kz(this);g.Z(this,J);J.X(p,"internalAbandon",this.uVr);this.addOnDisposeCallback(function(){g.UU(J)})}; A3=function(p){this.W=p;this.adVideoId=this.U=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.Z=this.j=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; sqI=function(p){p.contentCpn=null;p.adCpn=null;p.videoId=null;p.adVideoId=null;p.adFormat=null;p.B="AD_PLACEMENT_KIND_UNKNOWN";p.actionType="unknown_type";p.j=!1;p.Z=!1}; vV1=function(p,x){p=g.k(x);for(x=p.next();!x.done;x=p.next())if((x=x.value.renderer)&&(x.instreamVideoAdRenderer||x.linearAdSequenceRenderer||x.sandwichedLinearAdRenderer||x.instreamSurveyAdRenderer)){Wa("ad_i");g.k8({isMonetized:!0});break}}; c_o=function(p){var x;(x=p.W.getVideoData(1))!=null&&x.pI&&(p.Z=!1,x={},p.U&&p.videoId&&(x.cttAuthInfo={token:p.U,videoId:p.videoId}),Dy("video_to_ad",x))}; vK=function(p){p.Z=!1;var x={};p.U&&p.videoId&&(x.cttAuthInfo={token:p.U,videoId:p.videoId});Dy("ad_to_video",x);J_1(p)}; J_1=function(p){if(p.j)if(p.B==="AD_PLACEMENT_KIND_START"&&p.actionType==="video_to_ad")jb("video_to_ad");else{var x={adBreakType:tL(p.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:p.videoStreamType};p.actionType==="ad_to_video"?(p.contentCpn&&(x.targetCpn=p.contentCpn),p.videoId&&(x.targetVideoId=p.videoId)):(p.adCpn&&(x.targetCpn=p.adCpn),p.adVideoId&&(x.targetVideoId=p.adVideoId));p.adFormat&&(x.adType=p.adFormat);p.contentCpn&& (x.clientPlaybackNonce=p.contentCpn);p.videoId&&(x.videoId=p.videoId);p.adCpn&&(x.adClientPlaybackNonce=p.adCpn);p.adVideoId&&(x.adVideoId=p.adVideoId);g.k8(x,p.actionType);p.W.L().experiments.cO("html5_ads_csi_qoes")&&(x=p.W.IT(p.actionType==="ad_to_video"?1:2),x=(0,g.WR)()-1E3*x,Ha("qoes",x,p.actionType))}}; P5=function(p){g.y.call(this);this.W=p;this.U=new Map;this.Z=new kz(this);g.Z(this,this.Z);this.Z.X(this.W,g.GF("ad"),this.onCueRangeEnter,this);this.Z.X(this.W,g.Oo("ad"),this.onCueRangeExit,this)}; R31=function(p,x,a,v,c,J,R){g.gZ.call(this,x,a,{id:p,namespace:"ad",priority:c,visible:v,associatedClipId:J,markerPositionMs:R})}; qb=function(p){this.W=p}; KbQ=function(p,x){p.W.cueVideoByPlayerVars(x,2)}; nY=function(p){this.W=p}; eS=function(p){this.W=p;g.e_(this.W.L().experiments,"tv_pacf_logging_sample_rate")}; dXN=function(p){return Cj(p,"html5_ssap_play_cached_preroll")}; JD=function(p,x){x=x===void 0?!1:x;return p.W.L().D("html5_ssap_force_ads_ctmp")?!0:(x||p.W.L().qZ())&&p.W.L().D("html5_ssap_pacf_qoe_ctmp")}; u7=function(p){var x;return(x=p.W.getVideoData(1)==null?void 0:!1)!=null?x:!1}; Cj=function(p,x){return p.W.L().D(x)}; bog=function(p){return p.W.L().D("substitute_ad_cpn_macro_in_ssdai")}; tm=function(p){var x,a,v;return((x=p.W.getVideoData(1).getPlayerResponse())==null?void 0:(a=x.playerConfig)==null?void 0:(v=a.daiConfig)==null?void 0:v.enableServerStitchedDai)||!1}; wTf=function(p){return p.W.L().D("html5_enable_vod_slar_with_notify_pacf")}; r_b=function(p){return p.W.L().D("html5_recognize_predict_start_cue_point")}; lL=function(p){return p.W.L().experiments.cO("enable_desktop_player_underlay")}; Baz=function(p){return p.W.L().experiments.cO("html5_load_empty_player_in_media_break_sub_lra")}; qf=function(p){return p.W.L().experiments.cO("html5_load_ads_instead_of_cue")}; na=function(p){return p.W.L().experiments.cO("html5_preload_ads")}; lex=function(p){return p.W.L().experiments.cO("should_ignore_cuepoints_during_lifa_preroll")}; Bc=function(p){return p.W.L().experiments.cO("enable_ads_control_flow_deterministic_id_generation")}; LbQ=function(p){return p.W.L().experiments.cO("enable_desktop_discovery_video_abandon_pings")||g.lm(p.W.L())}; YvU=function(p){return p.W.L().experiments.cO("enable_progres_commands_lr_feeds")}; zH=function(p){return p.W.L().experiments.cO("html5_cuepoint_identifier_logging")}; NGQ=function(p){p=p.W.getVideoData(1);return!!p&&p.D("html5_preload_first_vod_video_ad")&&!p.isDaiEnabled()&&!p.isLivePlayback}; h3b=function(p){return p.W.L().experiments.cO("html5_ssdai_enable_media_end_cue_range")}; jqo=function(p){switch(p){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}}; IeQ=function(){g.Fx.call(this);var p=this;this.U={};this.addOnDisposeCallback(function(){for(var x=g.k(Object.keys(p.U)),a=x.next();!a.done;a=x.next())delete p.U[a.value]})}; VY=function(){if(M2x===null){M2x=new IeQ;kG(n8).Z="b";var p=kG(n8),x=Zf(p)=="h"||Zf(p)=="b",a=!(sT(),!1);x&&a&&(p.C=!0,p.S=new dC8)}return M2x}; WbN=function(p,x,a){p.U[x]=a}; k_T=function(p){switch(p){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}}; F5=function(p,x,a){this.SA=p;this.W=x;this.s7=a;this.Z=new Set;this.U=new Map;VY().subscribe("adactiveviewmeasurable",this.O9,this);VY().subscribe("adfullyviewableaudiblehalfdurationimpression",this.s9,this);VY().subscribe("adviewableimpression",this.B7,this);VY().subscribe("adaudioaudible",this.wd,this);VY().subscribe("adaudiomeasurable",this.P7,this)}; xp=function(p,x,a){var v=a.t7,c=a.Oi,J=a.listener,R=a.vr;a=a.x9===void 0?!1:a.x9;if(p.U.has(x))sE("Unexpected registration of layout in LidarApi");else{if(R){if(p.Z.has(R))return;p.Z.add(R)}p.U.set(x,J);Ti(sT().Oz,"fmd",1);MPQ(kG(n8),v);var d=a?x:void 0;WbN(VY(),x,{Mu:function(){if(!c)return{};var b=p.W.getPresentingPlayerType(!0),r;return(r=p.W.getVideoData(b))!=null&&r.isAd()?{currentTime:p.SA.get().getCurrentTimeSec(b,!1,d),duration:c,isPlaying:pJ(p.SA.get(),b).isPlaying(),isVpaid:!1,isYouTube:!0, volume:p.SA.get().isMuted()?0:p.SA.get().getVolume()/100}:{}}})}}; $p=function(p,x){p.U.has(x)?(p.U.delete(x),delete VY().U[x]):sE("Unexpected unregistration of layout in LidarApi")}; DX1=function(p,x){if(p.W.isLifaAdPlaying()){var a=p.W.uh(!0,!0);p.Av(x,a.width*.5*1.1,a.height*.25*1.1,a.width*.5*.9,a.height*.5*.9)}}; Taf=function(p,x,a){var v={};UXo(p,v,x,a);Hox(v);v.LACT=ad(function(){return hJ().toString()}); v.VIS=ad(function(){return p.getVisibilityState().toString()}); v.SDKV="h.3.0";v.VOL=ad(function(){return p.isMuted()?"0":Math.round(p.getVolume()).toString()}); v.VED="";return v}; QqN=function(p,x){var a={};if(x||!p||!p.kind)return a;if(p.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||p.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!p.adTimeOffset||!p.adTimeOffset.offsetStartMilliseconds)return g.Uq(Error("malformed AdPlacementConfig")),a;a.MIDROLL_POS=ad(iP(Math.round(o0(p.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else a.MIDROLL_POS=ad(iP("0"));return a}; ad=function(p){return{toString:function(){return p()}}}; mX1=function(p,x,a){function v(d,b){(b=a[b])&&(J[d]=b)} function c(d,b){(b=a[b])&&(J[d]=R(b))} if(!a||g.lu(a))return p;var J=Object.assign({},p),R=x?encodeURIComponent:function(d){return d}; c("DV_VIEWABILITY","doubleVerifyViewability");c("IAS_VIEWABILITY","integralAdsViewability");c("MOAT_INIT","moatInit");c("MOAT_VIEWABILITY","moatViewability");v("GOOGLE_VIEWABILITY","googleViewability");v("VIEWABILITY","viewability");return J}; UXo=function(p,x,a,v){x.CPN=ad(function(){var c;(c=p.getVideoData(1))?c=c.clientPlaybackNonce:(g.Hp(Error("Video data is null.")),c=null);return c}); x.AD_MT=ad(function(){if(v!=null)var c=v;else{var J=a;p.L().D("html5_ssap_use_cpn_to_get_time")||(J=void 0);if(p.L().D("enable_h5_shorts_ad_fill_ad_mt_macro")||p.L().D("enable_desktop_discovery_pings_ad_mt_macro")||g.lm(p.L())){var R=p.getPresentingPlayerType(!0),d;c=((d=p.getVideoData(R))==null?0:d.isAd())?Svo(p,R,J):0}else c=Svo(p,2,J)}return fe1(c)}); x.MT=ad(function(){return fe1(p.getCurrentTime(1,!1))}); x.P_H=ad(function(){return p.fI().PN().height.toString()}); x.P_W=ad(function(){return p.fI().PN().width.toString()}); x.PV_H=ad(function(){return p.fI().getVideoContentRect().height.toString()}); x.PV_W=ad(function(){return p.fI().getVideoContentRect().width.toString()})}; fe1=function(p){return Math.round(Math.max(0,p*1E3)).toString()}; Hox=function(p){p.CONN=ad(iP("0"));p.WT=ad(function(){return Date.now().toString()})}; Svo=function(p,x,a){return a!==void 0?p.getCurrentTime(x,!1,a):p.getCurrentTime(x,!1)}; Ci1=function(){}; X6N=function(p,x,a,v,c){var J,R,d,b,r,B,l,L,Y,h,D,H,f;g.t(function(m){switch(m.Z){case 1:J=!!x.scrubReferrer;R=g.Qz(x.baseUrl,mX1(a,J,v));d={};if(!x.headers){m.Ia(2);break}b=p.B();if(!b.U){r=b.getValue();m.Ia(3);break}return g.C(m,b.U,4);case 4:r=m.U;case 3:B=r;l=g.k(x.headers);for(L=l.next();!L.done;L=l.next())switch(Y=L.value,Y.headerType){case "VISITOR_ID":g.gx("VISITOR_DATA")&&(d["X-Goog-Visitor-Id"]=g.gx("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.gx("EOM_VISITOR_DATA")&&(d["X-Goog-EOM-Visitor-Id"]= g.gx("EOM_VISITOR_DATA"));break;case "USER_AUTH":B&&(d.Authorization="Bearer "+B);break;case "PLUS_PAGE_ID":(h=p.C())&&(d["X-Goog-PageId"]=h);break;case "AUTH_USER":D=p.U();!B&&D&&(d["X-Goog-AuthUser"]=D);break;case "DATASYNC_ID":if(H=void 0,(H=p.j())==null?0:H.cO("enable_datasync_id_header_in_web_vss_pings"))f=p.Z(),$E(R)&&g.gx("LOGGED_IN")&&f&&(d["X-YouTube-DataSync-Id"]=f)}"X-Goog-EOM-Visitor-Id"in d&&"X-Goog-Visitor-Id"in d&&delete d["X-Goog-Visitor-Id"];case 2:g.fh(R,void 0,J,Object.keys(d).length!== 0?d:void 0,"",!0,c),g.k1(m)}})}; ioN=function(p,x,a,v,c){this.B=p;this.C=x;this.U=a;this.Z=v;this.j=c}; oV1=function(p,x){this.U=p;this.s7=x}; sX=function(p,x,a,v,c,J,R){var d=d===void 0?new ioN(function(){var b=p.L(),r=p.getVideoData(1);return g.Hx(b,r?g.vw(r):"")},function(){return p.L().pageId},function(){return p.L().O7},function(){var b; return(b=p.L().datasyncId)!=null?b:""},function(){return p.L().experiments}):d; this.W=p;this.Z=x;this.jD=a;this.KI=v;this.nW=c;this.s7=J;this.LG=R;this.B=d;this.H_=null;this.U=new Map;this.j=new oV1(d,this.s7)}; z3U=function(p,x,a,v,c){var J=Am(p.Z.get(),a);J?(a=rK(p,t2g(J),J,void 0,void 0,v),x.hasOwnProperty("baseUrl")?p.B.send(x,a):p.j.send(x,a,{},c)):sE("Trying to ping from an unknown layout",void 0,void 0,{layoutId:a})}; tJx=function(p,x,a,v,c,J){v=v===void 0?[]:v;var R=Am(p.Z.get(),x);if(R){var d=p.jD.get().eg(x,a),b=rK(p,t2g(R),R,c,J);v.forEach(function(r,B){r.baseUrl&&(p.j.send(r.baseUrl,b,d,r.attributionSrcMode),r.serializedAdPingMetadata&&p.nW.KZ("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,R,new ly1(r,B),void 0,void 0,R.adLayoutLoggingData))})}else sE("Trying to track from an unknown layout.",void 0,void 0,{layoutId:x, trackingType:a})}; vn=function(p,x){p.W.sendVideoStatsEngageEvent(x,void 0,2)}; BK=function(p,x){g.ab("adsClientStateChange",x)}; w6U=function(p,x){p.U.has(x.Dr())?sE("Trying to register an existing AdErrorInfoSupplier."):p.U.set(x.Dr(),x)}; EV1=function(p,x){p.U.delete(x.Dr())||sE("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Yb=function(p,x,a){typeof a==="string"?p.W.getVideoData(1).AN(x,a):p.W.getVideoData(1).jA(x,a)}; t2g=function(p){var x=Gr(p.clientMetadata,"metadata_type_ad_placement_config");p=Gr(p.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:x,Uq:p}}; rK=function(p,x,a,v,c,J){var R=a?y__(p):{},d=a?gVg(p,a.layoutId):{},b=Zog(p),r,B=c!=null?c:(r=Ca(p.KI.get(),2))==null?void 0:r.clientPlaybackNonce;c=void 0;if(a){var l;if((l=p.LG.U.get(a.layoutId))==null?0:l.x9)c=a.layoutId}l={};p=Object.assign({},Taf(p.W,c,v),QqN(x.adPlacementConfig,(a==null?void 0:a.renderingContent)!==void 0),d,R,b,(l.FINAL=ad(function(){return"1"}),l.AD_CPN=ad(function(){return B||""}),l)); (a==null?void 0:a.renderingContent)!==void 0||(p.SLOT_POS=ad(function(){return(x.Uq||0).toString()})); a={};J=Object.assign({},p,J);p=g.k(Object.values(G__));for(v=p.next();!v.done;v=p.next())v=v.value,R=J[v],R!=null&&R.toString()!=null&&(a[v]=R.toString());return a}; y__=function(p){var x={},a,v=(a=p.H_)==null?void 0:a.pT/1E3;v!=null&&(x.SURVEY_ELAPSED_MS=ad(function(){return Math.round(v*1E3).toString()})); x.SURVEY_LOCAL_TIME_EPOCH_S=ad(function(){return Math.round(Date.now()/1E3).toString()}); return x}; gVg=function(p,x){p=p.U.get(x);if(!p)return{};p=p.IL();if(!p)return{};x={};return x.YT_ERROR_CODE=p.Vg.toString(),x.ERRORCODE=p.w2.toString(),x.ERROR_MSG=p.errorMessage,x}; Zog=function(p){var x={},a=p.W.getVideoData(1);x.ASR=ad(function(){var v;return(v=a==null?void 0:a.gz)!=null?v:null}); x.EI=ad(function(){var v;return(v=a==null?void 0:a.eventId)!=null?v:null}); return x}; vH=function(p,x,a){g.y.call(this);this.W=p;this.Kq=x;this.s7=a;this.listeners=[];this.Eb=null;this.Mo=new Map;x=new g.II(this);g.Z(this,x);x.X(p,"videodatachange",this.Cc5);x.X(p,"serverstitchedvideochange",this.o$A);this.oz=Ca(this)}; Ca=function(p,x){var a=p.W.getVideoData(x);return a?p.C2(a,x||p.W.getPresentingPlayerType(!0)):null}; Oo8=function(p,x,a){var v=p.C2(x,a);p.oz=v;p.listeners.forEach(function(c){c.h_(v)})}; Na1=function(p){switch(p){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}}; cH=function(p,x,a){g.y.call(this);this.W=p;this.KI=x;this.s7=a;this.listeners=[];this.Is=[];this.U=function(){sE("Called 'doUnlockPreroll' before it's initialized.")}; x=new kz(this);a=new g.II(this);g.Z(this,a);g.Z(this,x);x.X(p,"progresssync",this.qz5);x.X(p,"presentingplayerstatechange",this.dZt);x.X(p,"fullscreentoggled",this.onFullscreenToggled);x.X(p,"onVolumeChange",this.onVolumeChange);x.X(p,"minimized",this.D$);x.X(p,"overlayvisibilitychange",this.Xl);x.X(p,"shortsadswipe",this.xD);x.X(p,"resize",this.LW);a.X(p,g.GF("appad"),this.KT)}; J0=function(p){u7(p.s7.get())||p.U()}; A__=function(p,x){p.Is=p.Is.filter(function(a){return a!==x})}; Rd=function(p,x,a){return p.getCurrentTimeSec(x,a)}; KJ=function(p,x){var a;x=(a=p.KI.get().Mo.get(x))!=null?a:null;if(x===null)return sE("Expected ad video start time on playback timeline"),0;p=p.W.getCurrentTime(2,!0);return p0){var J=x.end.toString();c.forEach(function(R){(R=R.config&&R.config.adPlacementConfig)&&R.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&R.adTimeOffset&&R.adTimeOffset.offsetEndMilliseconds==="-1"&&R.adTimeOffset.offsetEndMilliseconds!==J&&(R.adTimeOffset.offsetEndMilliseconds=J)}); v.map(function(R){return g.O(R,FZ)}).forEach(function(R){var d; (R=R==null?void 0:(d=R.slotEntryTrigger)==null?void 0:d.mediaTimeRangeTrigger)&&R.offsetEndMilliseconds==="-1"&&(R.offsetEndMilliseconds=J)})}return{n$:c, adSlots:v,S7:!1,ssdaiAdsConfig:p.ssdaiAdsConfig}}; l2=function(p){g.y.call(this);this.W=p;this.listeners=[];this.U=new kz(this);g.Z(this,this.U);this.U.X(this.W,"aduxclicked",this.onAdUxClicked);this.U.X(this.W,"aduxmouseover",this.Vy);this.U.X(this.W,"aduxmouseout",this.qc);this.U.X(this.W,"muteadaccepted",this.ng5)}; uMo=function(p,x,a){x=g.IT(x,function(v){return new GW1(v,a,v.id)}); p.W.NT("onAdUxUpdate",x)}; LJ=function(p,x){p=g.k(p.listeners);for(var a=p.next();!a.done;a=p.next())x(a.value)}; Yp=function(p,x){this.Z=p;this.j=x===void 0?!1:x;this.U={}}; V2f=function(p,x){var a=p.startSecs+p.uc;a=a<=0?null:a;if(a===null)return null;switch(p.event){case "start":case "continue":case "stop":break;case "predictStart":if(x)break;return null;default:return null}x=Math.max(p.startSecs,0);return{vY:new IR(x,a),CS:new vf(x,a-x,p.context,p.identifier,p.event,p.U)}}; Fb1=function(){this.U=[]}; XCx=function(p,x,a){var v=g.Gy(p.U,x);if(v>=0)return x;x=-v-1;return x>=p.U.length||p.U[x]>a?null:p.U[x]}; h0=function(p,x,a){g.y.call(this);this.W=p;this.s7=x;this.Dt=a;this.listeners=[];this.B=!1;this.h0=[];this.U=null;this.C=new Yp(this,r_b(x.get()));this.j=new Fb1;this.Z=null}; poE=function(p,x){p.h0.push(x);for(var a=!1,v=g.k(p.listeners),c=v.next();!c.done;c=v.next())a=c.value.zr(x)||a;p.B=a;zH(p.s7.get())&&Yb(p.Dt.get(),"onci","cpi."+x.identifier+";cpe."+x.event+";cps."+x.startSecs+";cbi."+a)}; $zt=function(p,x){BK(p.Dt.get(),{cuepointTrigger:{event:xzR(x.event),cuepointId:x.identifier,totalCueDurationMs:x.uc*1E3,playheadTimeMs:x.U,cueStartTimeMs:x.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:p.W.getVideoData(1).clientPlaybackNonce}})}; xzR=function(p){switch(p){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 ru(p,"Unexpected cuepoint event")}}; jp=function(p){this.W=p}; Id=function(p){this.W=p}; aJV=function(p){switch(p){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:ru(p,"unknown transitionReason")}}; Md=function(){g.y.apply(this,arguments);this.LUr=new Map}; s8R=function(p){this.W=p}; v1$=function(p,x,a,v,c){g.y.call(this);var J=this,R=Uo(function(){return new rq(J.s7)}); g.Z(this,R);var d=Uo(function(){return new lp(R,J.s7)}); g.Z(this,d);var b=Uo(function(){return new O5}); g.Z(this,b);var r=Uo(function(){return new Z3(p)}); g.Z(this,r);var B=Uo(function(){return new Lz(R,d,J.s7)}); g.Z(this,B);var l=Uo(function(){return new M8}); g.Z(this,l);this.T$=Uo(function(){return new l2(x)}); g.Z(this,this.T$);this.hX=Uo(function(){return new TF(c)}); g.Z(this,this.hX);this.sz=Uo(function(){return new A3(x)}); g.Z(this,this.sz);this.zw=Uo(function(){return new P5(x)}); g.Z(this,this.zw);this.Uz=Uo(function(){return new qb(x)}); g.Z(this,this.Uz);this.vE=Uo(function(){return new nY(x)}); g.Z(this,this.vE);this.s7=Uo(function(){return new eS(x)}); g.Z(this,this.s7);var L=Uo(function(){return new BH(v)}); g.Z(this,L);var Y=Uo(function(){return new u1(J.s7)}); g.Z(this,Y);this.xL=Uo(function(){return new jp(x)}); g.Z(this,this.xL);this.vv=Uo(function(){return new S0}); g.Z(this,this.vv);this.KI=Uo(function(){return new vH(x,l,J.s7)}); g.Z(this,this.KI);var h=OS({KI:this.KI,s7:this.s7,E8:Y}),D=h.context,H=h.LG;this.nW=h.nW;this.QV=Uo(function(){return new h0(x,J.s7,J.Dt)}); g.Z(this,this.QV);this.k0=Uo(function(){return new Id(x)}); g.Z(this,this.k0);this.SA=Uo(function(){return new cH(x,J.KI,J.s7)}); g.Z(this,this.SA);this.O6=Uo(function(){return new Md}); g.Z(this,this.O6);h=Uo(function(){return new CQ(R,B,d,J.s7,Y,"SLOT_TYPE_ABOVE_FEED",J.SA,J.Q4,J.AU)}); g.Z(this,h);this.L1=Uo(function(){return new fj(J.s7)}); this.jD=Uo(function(){return new F5(J.SA,x,J.s7)}); g.Z(this,this.jD);this.Dt=Uo(function(){return new sX(x,b,J.jD,J.KI,J.nW,J.s7,H)}); g.Z(this,this.Dt);this.K0=new yH(E5,WH,function(m,X,E,A){return Bd(d.get(),m,X,E,A)},r,B,d,Y,this.s7,this.KI); g.Z(this,this.K0);this.j3=new gL(r,h,a,this.s7,p,this.KI,this.SA,this.sz);g.Z(this,this.j3);var f=new Nb(x,this.j3,this.SA,this.KI,this.QV);this.Vu=Uo(function(){return f}); this.Jh=f;this.Q4=new oK(r,B,this.Vu,this.QV,this.SA,this.s7,this.Dt,this.k0);g.Z(this,this.Q4);this.a9=new GH(r,B,this.zw,this.Vu,D);g.Z(this,this.a9);this.Ph=new V8(this.s7,r,B,h,this.KI,this.a9,a,this.Uz);g.Z(this,this.Ph);this.Ex=Uo(function(){return new e0(L,d,Y,J.s7,J.Dt,J.SA,J.k0)}); g.Z(this,this.Ex);this.wk=Uo(function(){return new ur}); g.Z(this,this.wk);this.pG=new uL(p,this.T$,this.s7);g.Z(this,this.pG);this.mN=new VH(p);g.Z(this,this.mN);this.Ho=new FL(p);g.Z(this,this.Ho);this.xO=new xQ(p,this.Vu,D);g.Z(this,this.xO);this.Hm=new $Q(p,this.zw,this.SA,this.KI,D);g.Z(this,this.Hm);this.H0=new as(p,this.KI);g.Z(this,this.H0);this.AU=new J2(p,this.QV,this.SA,this.Dt,this.Vu,this.Q4);g.Z(this,this.AU);this.JU=new vc(p);g.Z(this,this.JU);this.Ji=new bp(p);g.Z(this,this.Ji);this.n0=new cc(p);g.Z(this,this.n0);this.E9=new dq(p);g.Z(this, this.E9);this.Ji=new bp(p);g.Z(this,this.Ji);this.zy=Uo(function(){return new Pd}); g.Z(this,this.zy);this.Xx=Uo(function(){return new qu(J.SA)}); g.Z(this,this.Xx);this.Ee=Uo(function(){return new $pf(J.T$,J.Dt,p,b,J.jD)}); g.Z(this,this.Ee);this.oM=Uo(function(){return new tE(J.Ph,r,R)}); g.Z(this,this.oM);this.PU=Uo(function(){return new Ec(J.s7,J.Dt,J.JU,J.jD)}); g.Z(this,this.PU);this.MX=Uo(function(){return new DP(p,J.Ji,J.JU,J.KI,J.k0,J.SA,J.O6,J.Dt,l,J.QV,J.jD,J.L1,J.Uz,J.zw,J.sz,J.vE,J.hX,J.xL,J.s7,b,D,H)}); g.Z(this,this.MX);this.nQ=Uo(function(){return new Y61(J.SA,J.Dt,J.hX,J.s7,J.jD,J.KI)}); g.Z(this,this.nQ);this.iI=Uo(function(){return new ayo(J.T$,J.SA,J.Dt,b,J.jD,J.Ho,J.E9,J.hX,J.s7,a)}); g.Z(this,this.iI);this.Gp=Uo(function(){return new aEQ(J.T$,J.Dt,b)}); g.Z(this,this.Gp);this.D4=new r2(p,this.vv,R);g.Z(this,this.D4);this.tS={tI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ph],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Q4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.j3],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.a9]]),EV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ex],["SLOT_TYPE_ABOVE_FEED",this.wk],["SLOT_TYPE_FORECASTING",this.wk], ["SLOT_TYPE_IN_PLAYER",this.wk],["SLOT_TYPE_PLAYER_BYTES",this.wk],["SLOT_TYPE_PLAYER_UNDERLAY",this.wk],["SLOT_TYPE_PLAYBACK_TRACKING",this.wk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.wk]]),g_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pG],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.pG],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.mN],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.mN],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.mN],["TRIGGER_TYPE_SLOT_ID_EXITED",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.mN],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.mN],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.mN],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ho],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.xO],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Hm],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Hm],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Hm],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Hm],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Hm],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Hm],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Hm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.H0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.H0],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.JU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.xO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.E9],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ji],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.AU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.AU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.AU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.AU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.AU]]),VD:new Map([["SLOT_TYPE_ABOVE_FEED",this.zy], ["SLOT_TYPE_AD_BREAK_REQUEST",this.zy],["SLOT_TYPE_FORECASTING",this.zy],["SLOT_TYPE_IN_PLAYER",this.zy],["SLOT_TYPE_PLAYER_BYTES",this.Xx],["SLOT_TYPE_PLAYER_UNDERLAY",this.zy],["SLOT_TYPE_PLAYBACK_TRACKING",this.zy],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.zy]]),Qj:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ee],["SLOT_TYPE_AD_BREAK_REQUEST",this.oM],["SLOT_TYPE_FORECASTING",this.PU],["SLOT_TYPE_PLAYER_BYTES",this.MX],["SLOT_TYPE_PLAYBACK_TRACKING",this.nQ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.nQ],["SLOT_TYPE_IN_PLAYER",this.iI],["SLOT_TYPE_PLAYER_UNDERLAY",this.Gp]])};this.listeners=[b.get()];this.w8={Ph:this.Ph,O1:this.s7.get(),vO:this.hX.get(),QG:this.SA.get(),j3:this.j3,iE:R.get(),c9:this.vv.get(),An:this.pG,DW:b.get(),k_:this.KI.get()}}; cTt=function(p,x,a,v,c){g.y.call(this);var J=this,R=Uo(function(){return new rq(J.s7)}); g.Z(this,R);var d=Uo(function(){return new lp(R,J.s7)}); g.Z(this,d);var b=Uo(function(){return new O5}); g.Z(this,b);var r=Uo(function(){return new Z3(p)}); g.Z(this,r);var B=Uo(function(){return new Lz(R,d,J.s7)}); g.Z(this,B);var l=Uo(function(){return new M8}); g.Z(this,l);this.T$=Uo(function(){return new l2(x)}); g.Z(this,this.T$);this.hX=Uo(function(){return new TF(c)}); g.Z(this,this.hX);this.sz=Uo(function(){return new A3(x)}); g.Z(this,this.sz);this.zw=Uo(function(){return new P5(x)}); g.Z(this,this.zw);this.Uz=Uo(function(){return new qb(x)}); g.Z(this,this.Uz);this.vE=Uo(function(){return new nY(x)}); g.Z(this,this.vE);this.s7=Uo(function(){return new eS(x)}); g.Z(this,this.s7);var L=Uo(function(){return new BH(v)}); g.Z(this,L);var Y=Uo(function(){return new u1(J.s7)}); g.Z(this,Y);var h=Uo(function(){return new CQ(R,B,d,J.s7,Y,null,null,J.Q4,J.AU)}); g.Z(this,h);this.xL=Uo(function(){return new jp(x)}); g.Z(this,this.xL);this.vv=Uo(function(){return new S0}); g.Z(this,this.vv);this.KI=Uo(function(){return new vH(x,l,J.s7)}); g.Z(this,this.KI);var D=OS({KI:this.KI,s7:this.s7,E8:Y}),H=D.context,f=D.LG;this.nW=D.nW;this.QV=Uo(function(){return new h0(x,J.s7,J.Dt)}); this.SA=Uo(function(){return new cH(x,J.KI,J.s7)}); g.Z(this,this.SA);this.O6=Uo(function(){return new Md}); g.Z(this,this.O6);this.jD=Uo(function(){return new F5(J.SA,x,J.s7)}); g.Z(this,this.jD);this.Dt=Uo(function(){return new sX(x,b,J.jD,J.KI,J.nW,J.s7,f)}); g.Z(this,this.Dt);this.L1=Uo(function(){return new fj(J.s7)}); g.Z(this,this.L1);this.K0=new yH(E5,WH,function(X,E,A,u){return Bd(d.get(),X,E,A,u)},r,B,d,Y,this.s7,this.KI); g.Z(this,this.K0);this.j3=new gL(r,h,a,this.s7,p,this.KI,this.SA,this.sz);g.Z(this,this.j3);var m=new Nb(x,this.j3,this.SA,this.KI,this.QV);this.Vu=Uo(function(){return m}); this.Jh=m;this.Q4=new oK(r,B,this.Vu,this.QV,this.SA,this.s7,this.Dt);g.Z(this,this.Q4);this.a9=new GH(r,B,this.zw,this.Vu,H);g.Z(this,this.a9);this.Ph=new V8(this.s7,r,B,h,this.KI,this.a9,a,this.Uz);g.Z(this,this.Ph);this.Ex=Uo(function(){return new e0(L,d,Y,J.s7,J.Dt,J.SA)}); g.Z(this,this.Ex);this.wk=Uo(function(){return new ur}); g.Z(this,this.wk);this.pG=new uL(p,this.T$,this.s7);g.Z(this,this.pG);this.mN=new VH(p);g.Z(this,this.mN);this.Ho=new FL(p);g.Z(this,this.Ho);this.xO=new xQ(p,this.Vu,H);g.Z(this,this.xO);this.Hm=new $Q(p,this.zw,this.SA,this.KI,H);g.Z(this,this.Hm);this.JU=new vc(p);g.Z(this,this.JU);this.n0=new cc(p);g.Z(this,this.n0);this.E9=new dq(p);g.Z(this,this.E9);this.k0=Uo(function(){return new Id(x)}); g.Z(this,this.k0);this.Ji=new bp(p);g.Z(this,this.Ji);this.AU=new J2(p,this.QV,this.SA,this.Dt,this.Vu,this.Q4);g.Z(this,this.AU);this.zy=Uo(function(){return new Pd}); g.Z(this,this.zy);this.Xx=Uo(function(){return new qu(J.SA)}); g.Z(this,this.Xx);this.oM=Uo(function(){return new tE(J.Ph,r,R)}); g.Z(this,this.oM);this.PU=Uo(function(){return new Ec(J.s7,J.Dt,J.JU,J.jD)}); g.Z(this,this.PU);this.iI=Uo(function(){return new seJ(J.T$,J.SA,J.Dt,b,J.jD,J.Ho,J.E9,J.hX,J.s7,a)}); g.Z(this,this.iI);this.MX=Uo(function(){return new UR(p,J.Ji,J.JU,J.Dt,J.jD,J.L1,J.Uz,J.KI,J.SA,J.O6,J.zw,J.sz,J.vE,J.hX,J.xL,J.s7,J.k0,H,f)}); g.Z(this,this.MX);this.D4=new r2(p,this.vv,R);g.Z(this,this.D4);this.tS={tI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ph],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Q4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.j3],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.a9]]),EV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ex],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER",this.wk], ["SLOT_TYPE_PLAYER_BYTES",this.wk]]),g_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pG],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.mN],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.mN],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_EXITED",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.mN], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.mN],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ho],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.xO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Hm],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Hm],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Hm],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.JU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.xO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.E9],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ji],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.AU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.AU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.AU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.AU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.AU]]),VD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zy],["SLOT_TYPE_FORECASTING",this.zy],["SLOT_TYPE_IN_PLAYER",this.zy],["SLOT_TYPE_PLAYER_BYTES",this.Xx]]), Qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oM],["SLOT_TYPE_FORECASTING",this.PU],["SLOT_TYPE_IN_PLAYER",this.iI],["SLOT_TYPE_PLAYER_BYTES",this.MX]])};this.listeners=[b.get()];this.w8={Ph:this.Ph,O1:this.s7.get(),vO:this.hX.get(),QG:this.SA.get(),j3:this.j3,iE:R.get(),c9:this.vv.get(),An:this.pG,DW:b.get(),k_:this.KI.get()}}; JTZ=function(p,x,a,v,c){g.y.call(this);var J=this,R=Uo(function(){return new rq(J.s7)}); g.Z(this,R);var d=Uo(function(){return new lp(R,J.s7)}); g.Z(this,d);var b=Uo(function(){return new O5}); g.Z(this,b);var r=Uo(function(){return new Z3(p)}); g.Z(this,r);var B=Uo(function(){return new Lz(R,d,J.s7)}); g.Z(this,B);var l=Uo(function(){return new M8}); g.Z(this,l);this.T$=Uo(function(){return new l2(x)}); g.Z(this,this.T$);this.hX=Uo(function(){return new TF(c)}); g.Z(this,this.hX);this.sz=Uo(function(){return new A3(x)}); g.Z(this,this.sz);this.zw=Uo(function(){return new P5(x)}); g.Z(this,this.zw);this.Uz=Uo(function(){return new qb(x)}); g.Z(this,this.Uz);this.vE=Uo(function(){return new nY(x)}); g.Z(this,this.vE);this.s7=Uo(function(){return new eS(x)}); g.Z(this,this.s7);var L=Uo(function(){return new BH(v)}); g.Z(this,L);var Y=Uo(function(){return new u1(J.s7)}); g.Z(this,Y);var h=Uo(function(){return new CQ(R,B,d,J.s7,Y,null,null,null,null)}); g.Z(this,h);this.xL=Uo(function(){return new jp(x)}); g.Z(this,this.xL);this.KI=Uo(function(){return new vH(x,l,J.s7)}); g.Z(this,this.KI);var D=OS({KI:this.KI,s7:this.s7,E8:Y}),H=D.context,f=D.LG;this.nW=D.nW;this.SA=Uo(function(){return new cH(x,J.KI,J.s7)}); g.Z(this,this.SA);this.O6=Uo(function(){return new Md}); g.Z(this,this.O6);this.jD=Uo(function(){return new F5(J.SA,x,J.s7)}); g.Z(this,this.jD);this.Dt=Uo(function(){return new sX(x,b,J.jD,J.KI,J.nW,J.s7,f)}); g.Z(this,this.Dt);this.L1=Uo(function(){return new fj(J.s7)}); g.Z(this,this.L1);this.K0=new yH(E5,WH,function(X,E,A,u){return Bd(d.get(),X,E,A,u)},r,B,d,Y,this.s7,this.KI); g.Z(this,this.K0);this.j3=new gL(r,h,a,this.s7,p,this.KI,this.SA,this.sz);g.Z(this,this.j3);var m=new Nb(x,this.j3,this.SA,this.KI);this.Vu=Uo(function(){return m}); this.Jh=m;this.a9=new GH(r,B,this.zw,this.Vu,H);g.Z(this,this.a9);this.Ph=new V8(this.s7,r,B,h,this.KI,this.a9,a,this.Uz);g.Z(this,this.Ph);this.Ex=Uo(function(){return new e0(L,d,Y,J.s7,J.Dt,J.SA)}); g.Z(this,this.Ex);this.wk=Uo(function(){return new ur}); g.Z(this,this.wk);this.pG=new uL(p,this.T$,this.s7);g.Z(this,this.pG);this.mN=new VH(p);g.Z(this,this.mN);this.xO=new xQ(p,this.Vu,H);g.Z(this,this.xO);this.Hm=new $Q(p,this.zw,this.SA,this.KI,H);g.Z(this,this.Hm);this.JU=new vc(p);g.Z(this,this.JU);this.n0=new cc(p);g.Z(this,this.n0);this.k0=Uo(function(){return new Id(x)}); g.Z(this,this.k0);this.Ji=new bp(p);g.Z(this,this.Ji);this.zy=Uo(function(){return new Pd}); g.Z(this,this.zy);this.Xx=Uo(function(){return new qu(J.SA)}); g.Z(this,this.Xx);this.oM=Uo(function(){return new tE(J.Ph,r,R)}); g.Z(this,this.oM);this.PU=Uo(function(){return new Ec(J.s7,J.Dt,J.JU,J.jD)}); g.Z(this,this.PU);this.iP=Uo(function(){return new LhU(J.T$,J.SA,J.Dt,b,a,J.s7)}); g.Z(this,this.iP);this.MX=Uo(function(){return new UR(p,J.Ji,J.JU,J.Dt,J.jD,J.L1,J.Uz,J.KI,J.SA,J.O6,J.zw,J.sz,J.vE,J.hX,J.xL,J.s7,J.k0,H,f)}); g.Z(this,this.MX);this.tS={tI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ph],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.j3],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.a9]]),EV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ex],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER",this.wk],["SLOT_TYPE_PLAYER_BYTES",this.wk]]),g_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pG],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.mN],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.mN],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.mN],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_EXITED",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.mN],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.xO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Hm],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Hm],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.JU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.xO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ji]]),VD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zy],["SLOT_TYPE_ABOVE_FEED",this.zy],["SLOT_TYPE_FORECASTING",this.zy],["SLOT_TYPE_IN_PLAYER",this.zy],["SLOT_TYPE_PLAYER_BYTES",this.Xx]]),Qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oM],["SLOT_TYPE_FORECASTING",this.PU],["SLOT_TYPE_IN_PLAYER", this.iP],["SLOT_TYPE_PLAYER_BYTES",this.MX]])};this.listeners=[b.get()];this.w8={Ph:this.Ph,O1:this.s7.get(),vO:this.hX.get(),QG:this.SA.get(),j3:this.j3,iE:R.get(),c9:null,An:this.pG,DW:b.get(),k_:this.KI.get()}}; RNy=function(p,x,a,v,c){g.y.call(this);var J=this,R=Uo(function(){return new rq(J.s7)}); g.Z(this,R);var d=Uo(function(){return new lp(R,J.s7)}); g.Z(this,d);var b=Uo(function(){return new O5}); g.Z(this,b);var r=Uo(function(){return new Z3(p)}); g.Z(this,r);var B=Uo(function(){return new Lz(R,d,J.s7)}); g.Z(this,B);var l=Uo(function(){return new M8}); g.Z(this,l);this.zq=Uo(function(){return new s8R(x)}); g.Z(this,this.zq);this.T$=Uo(function(){return new l2(x)}); g.Z(this,this.T$);this.hX=Uo(function(){return new TF(c)}); g.Z(this,this.hX);this.sz=Uo(function(){return new A3(x)}); g.Z(this,this.sz);this.zw=Uo(function(){return new P5(x)}); g.Z(this,this.zw);this.Uz=Uo(function(){return new qb(x)}); g.Z(this,this.Uz);this.vE=Uo(function(){return new nY(x)}); g.Z(this,this.vE);this.s7=Uo(function(){return new eS(x)}); g.Z(this,this.s7);var L=Uo(function(){return new BH(v)}); g.Z(this,L);var Y=Uo(function(){return new u1(J.s7)}); g.Z(this,Y);var h=Uo(function(){return new CQ(R,B,d,J.s7,Y,null,null,null,null)}); g.Z(this,h);this.xL=Uo(function(){return new jp(x)}); g.Z(this,this.xL);this.KI=Uo(function(){return new vH(x,l,J.s7)}); g.Z(this,this.KI);var D=OS({KI:this.KI,s7:this.s7,E8:Y}),H=D.context,f=D.LG;this.nW=D.nW;this.SA=Uo(function(){return new cH(x,J.KI,J.s7)}); g.Z(this,this.SA);this.O6=Uo(function(){return new Md}); g.Z(this,this.O6);this.jD=Uo(function(){return new F5(J.SA,x,J.s7)}); g.Z(this,this.jD);this.Dt=Uo(function(){return new sX(x,b,J.jD,J.KI,J.nW,J.s7,f)}); g.Z(this,this.Dt);this.L1=Uo(function(){return new fj(J.s7)}); g.Z(this,this.L1);this.K0=new yH(Zqx,WH,function(X,E,A,u){return bmg(d.get(),X,E,A,u)},r,B,d,Y,this.s7,this.KI); g.Z(this,this.K0);this.j3=new gL(r,h,a,this.s7,p,this.KI,this.SA,this.sz);g.Z(this,this.j3);var m=new Nb(x,this.j3,this.SA,this.KI);this.Vu=Uo(function(){return m}); this.Jh=m;this.a9=new GH(r,B,this.zw,this.Vu,H);g.Z(this,this.a9);this.Ph=new V8(this.s7,r,B,h,this.KI,this.a9,a,this.Uz);g.Z(this,this.Ph);this.Ex=Uo(function(){return new e0(L,d,Y,J.s7,J.Dt,J.SA)}); g.Z(this,this.Ex);this.wk=Uo(function(){return new ur}); g.Z(this,this.wk);this.pG=new uL(p,this.T$,this.s7);g.Z(this,this.pG);this.mN=new VH(p);g.Z(this,this.mN);this.xO=new xQ(p,this.Vu,H);g.Z(this,this.xO);this.Hm=new $Q(p,this.zw,this.SA,this.KI,H);g.Z(this,this.Hm);this.JU=new vc(p);g.Z(this,this.JU);this.n0=new cc(p);g.Z(this,this.n0);this.k0=Uo(function(){return new Id(x)}); g.Z(this,this.k0);this.Ji=new bp(p);g.Z(this,this.Ji);this.zy=Uo(function(){return new Pd}); g.Z(this,this.zy);this.Xx=Uo(function(){return new qu(J.SA)}); g.Z(this,this.Xx);this.oM=Uo(function(){return new tE(J.Ph,r,R)}); g.Z(this,this.oM);this.PU=Uo(function(){return new Ec(J.s7,J.Dt,J.JU,J.jD)}); g.Z(this,this.PU);this.MX=Uo(function(){return new UR(p,J.Ji,J.JU,J.Dt,J.jD,J.L1,J.Uz,J.KI,J.SA,J.O6,J.zw,J.sz,J.vE,J.hX,J.xL,J.s7,J.k0,H,f)}); g.Z(this,this.MX);this.pP=Uo(function(){return new cZx(J.T$,J.SA,J.Dt,b,J.zq,a,J.KI)}); g.Z(this,this.pP);this.tS={tI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ph],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.j3],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.a9]]),EV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ex],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER",this.wk],["SLOT_TYPE_PLAYER_BYTES",this.wk]]),g_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pG],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.mN],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.mN],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.mN],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_EXITED",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.mN],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.xO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Hm],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Hm],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.JU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.xO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ji]]),VD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zy],["SLOT_TYPE_FORECASTING",this.zy],["SLOT_TYPE_IN_PLAYER",this.zy],["SLOT_TYPE_PLAYER_BYTES",this.Xx]]),Qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oM],["SLOT_TYPE_FORECASTING",this.PU],["SLOT_TYPE_IN_PLAYER",this.pP],["SLOT_TYPE_PLAYER_BYTES", this.MX]])};this.listeners=[b.get()];this.w8={Ph:this.Ph,O1:this.s7.get(),vO:this.hX.get(),QG:this.SA.get(),j3:this.j3,iE:R.get(),c9:null,An:this.pG,DW:b.get(),k_:this.KI.get()}}; Kxj=function(p,x,a,v,c){g.y.call(this);var J=this,R=Uo(function(){return new rq(J.s7)}); g.Z(this,R);var d=Uo(function(){return new lp(R,J.s7)}); g.Z(this,d);var b=Uo(function(){return new O5}); g.Z(this,b);var r=Uo(function(){return new Z3(p)}); g.Z(this,r);var B=Uo(function(){return new Lz(R,d,J.s7)}); g.Z(this,B);var l=Uo(function(){return new M8}); g.Z(this,l);this.zq=Uo(function(){return new s8R(x)}); g.Z(this,this.zq);this.T$=Uo(function(){return new l2(x)}); g.Z(this,this.T$);this.hX=Uo(function(){return new TF(c)}); g.Z(this,this.hX);this.sz=Uo(function(){return new A3(x)}); g.Z(this,this.sz);this.zw=Uo(function(){return new P5(x)}); g.Z(this,this.zw);this.Uz=Uo(function(){return new qb(x)}); g.Z(this,this.Uz);this.vE=Uo(function(){return new nY(x)}); g.Z(this,this.vE);this.s7=Uo(function(){return new eS(x)}); g.Z(this,this.s7);var L=Uo(function(){return new BH(v)}); g.Z(this,L);var Y=Uo(function(){return new u1(J.s7)}); g.Z(this,Y);this.xL=Uo(function(){return new jp(x)}); g.Z(this,this.xL);this.KI=Uo(function(){return new vH(x,l,J.s7)}); g.Z(this,this.KI);var h=OS({KI:this.KI,s7:this.s7,E8:Y}),D=h.context,H=h.LG;this.nW=h.nW;this.QV=Uo(function(){return new h0(x,J.s7,J.Dt)}); g.Z(this,this.QV);this.k0=Uo(function(){return new Id(x)}); g.Z(this,this.k0);this.SA=Uo(function(){return new cH(x,J.KI,J.s7)}); g.Z(this,this.SA);this.O6=Uo(function(){return new Md}); g.Z(this,this.O6);h=Uo(function(){return new CQ(R,B,d,J.s7,Y,null,J.SA,J.Q4,J.AU,3)}); g.Z(this,h);this.L1=Uo(function(){return new fj(J.s7)}); this.jD=Uo(function(){return new F5(J.SA,x,J.s7)}); g.Z(this,this.jD);this.Dt=Uo(function(){return new sX(x,b,J.jD,J.KI,J.nW,J.s7,H)}); g.Z(this,this.Dt);this.j3=new gL(r,h,a,this.s7,p,this.KI,this.SA,this.sz);g.Z(this,this.j3);var f=new Nb(x,this.j3,this.SA,this.KI,this.QV);this.Vu=Uo(function(){return f}); this.Jh=f;this.K0=new yH(GE1,WH,function(m,X,E,A){return bmg(d.get(),m,X,E,A)},r,B,d,Y,this.s7,this.KI); g.Z(this,this.K0);this.Q4=new oK(r,B,this.Vu,this.QV,this.SA,this.s7,this.Dt,this.k0);g.Z(this,this.Q4);this.a9=new GH(r,B,this.zw,this.Vu,D);g.Z(this,this.a9);this.Ph=new V8(this.s7,r,B,h,this.KI,this.a9,a,this.Uz);g.Z(this,this.Ph);this.Ex=Uo(function(){return new e0(L,d,Y,J.s7,J.Dt,J.SA,J.k0)}); g.Z(this,this.Ex);this.wk=Uo(function(){return new ur}); g.Z(this,this.wk);this.pG=new uL(p,this.T$,this.s7);g.Z(this,this.pG);this.mN=new VH(p);g.Z(this,this.mN);this.xO=new xQ(p,this.Vu,D);g.Z(this,this.xO);this.Hm=new $Q(p,this.zw,this.SA,this.KI,D);g.Z(this,this.Hm);this.H0=new as(p,this.KI);g.Z(this,this.H0);this.AU=new J2(p,this.QV,this.SA,this.Dt,this.Vu,this.Q4);g.Z(this,this.AU);this.JU=new vc(p);g.Z(this,this.JU);this.n0=new cc(p);g.Z(this,this.n0);this.Ji=new bp(p);g.Z(this,this.Ji);this.zy=Uo(function(){return new Pd}); g.Z(this,this.zy);this.Xx=Uo(function(){return new qu(J.SA)}); g.Z(this,this.Xx);this.oM=Uo(function(){return new tE(J.Ph,r,R)}); g.Z(this,this.oM);this.PU=Uo(function(){return new Ec(J.s7,J.Dt,J.JU,J.jD)}); g.Z(this,this.PU);this.MX=Uo(function(){return new DP(p,J.Ji,J.JU,J.KI,J.k0,J.SA,J.O6,J.Dt,l,J.QV,J.jD,J.L1,J.Uz,J.zw,J.sz,J.vE,J.hX,J.xL,J.s7,b,D,H)}); g.Z(this,this.MX);this.iI=Uo(function(){return new JZ_(J.T$,J.SA,J.Dt,b,J.zq,a,J.s7,J.KI)}); g.Z(this,this.iI);this.tS={tI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ph],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Q4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.j3],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.a9]]),EV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ex],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER",this.wk],["SLOT_TYPE_PLAYER_BYTES",this.wk]]),g_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.pG],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.mN],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.mN],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.mN],["TRIGGER_TYPE_SLOT_ID_EXITED",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.mN],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.mN],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.xO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Hm],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Hm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.H0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.H0],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.JU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.xO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ji],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.AU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.AU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.AU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.AU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.AU]]),VD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zy],["SLOT_TYPE_FORECASTING",this.zy],["SLOT_TYPE_IN_PLAYER",this.zy],["SLOT_TYPE_PLAYER_BYTES",this.Xx]]),Qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oM],["SLOT_TYPE_FORECASTING",this.PU],["SLOT_TYPE_PLAYER_BYTES",this.MX],["SLOT_TYPE_IN_PLAYER",this.iI]])};this.listeners=[b.get()]; this.w8={Ph:this.Ph,O1:this.s7.get(),vO:this.hX.get(),QG:this.SA.get(),j3:this.j3,iE:R.get(),c9:null,An:this.pG,DW:b.get(),k_:this.KI.get()}}; bUj=function(p,x,a,v){function c(){return J.Z} g.y.call(this);var J=this;p.L().experiments.cO("html5_dispose_of_manager_before_dependency")?(this.U=dzO(c,p,x,a,v),this.Z=(new HE(this.U)).j(),g.Z(this,this.Z),g.Z(this,this.U)):(this.U=dzO(c,p,x,a,v),g.Z(this,this.U),this.Z=(new HE(this.U)).j(),g.Z(this,this.Z))}; kp=function(p){return p.U.w8}; dzO=function(p,x,a,v,c){try{var J=x.L();if(g.YO(J))var R=new v1$(p,x,a,v,c);else if(g.If(J))R=new cTt(p,x,a,v,c);else if(Rf(J))R=new JTZ(p,x,a,v,c);else if(g.SG(J))R=new RNy(p,x,a,v,c);else if(g.$O(J))R=new Kxj(p,x,a,v,c);else throw new TypeError("Unknown web interface");return R}catch(d){return R=x.L(),sE("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:R.U.cplatform,interface:R.U.c,e$$:R.U.cver,HZ5:R.U.ctheme,ce4:R.U.cplayer,Rz7:R.playerStyle}),new nV_(p,x,a,v,c)}}; rTX=function(p){zn.call(this,p)}; B_v=function(p,x,a,v,c){Np.call(this,p,{J:"div",K:"ytp-ad-timed-pie-countdown-container",N:[{J:"svg",K:"ytp-ad-timed-pie-countdown",G:{viewBox:"0 0 20 20"},N:[{J:"circle",K:"ytp-ad-timed-pie-countdown-background",G:{r:"10",cx:"10",cy:"10"}},{J:"circle",K:"ytp-ad-timed-pie-countdown-inner",G:{r:"5",cx:"10",cy:"10"}},{J:"circle",K:"ytp-ad-timed-pie-countdown-outer",G:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",x,a,v,c);this.B=this.BO("ytp-ad-timed-pie-countdown-container");this.j=this.BO("ytp-ad-timed-pie-countdown-inner"); this.S=this.BO("ytp-ad-timed-pie-countdown-outer");this.Z=Math.ceil(2*Math.PI*5);this.hide()}; lJt=function(p,x,a,v,c,J){vF.call(this,p,{J:"div",K:"ytp-ad-action-interstitial",G:{tabindex:"0"},N:[{J:"div",K:"ytp-ad-action-interstitial-background-container"},{J:"div",K:"ytp-ad-action-interstitial-slot",N:[{J:"div",K:"ytp-ad-action-interstitial-instream-info"},{J:"div",K:"ytp-ad-action-interstitial-card",N:[{J:"div",K:"ytp-ad-action-interstitial-image-container"},{J:"div",K:"ytp-ad-action-interstitial-headline-container"},{J:"div",K:"ytp-ad-action-interstitial-description-container"},{J:"div", K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",x,a,v);this.Rp=c;this.LL=J;this.navigationEndpoint=this.U=this.skipButton=this.Z=this.actionButton=null;this.V6=this.BO("ytp-ad-action-interstitial-instream-info");this.hG=this.BO("ytp-ad-action-interstitial-image-container");this.T=new XT(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,"ytp-ad-action-interstitial-image");g.Z(this,this.T);this.T.WO(this.hG);this.F5=this.BO("ytp-ad-action-interstitial-headline-container"); this.S=new Gn(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,"ytp-ad-action-interstitial-headline");g.Z(this,this.S);this.S.WO(this.F5);this.pI=this.BO("ytp-ad-action-interstitial-description-container");this.j=new Gn(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,"ytp-ad-action-interstitial-description");g.Z(this,this.j);this.j.WO(this.pI);this.HO=this.BO("ytp-ad-action-interstitial-background-container");this.tG=new XT(this.api,this.layoutId,this.interactionLoggingClientData, this.vO,"ytp-ad-action-interstitial-background",!0);g.Z(this,this.tG);this.tG.WO(this.HO);this.Ra=this.BO("ytp-ad-action-interstitial-action-button-container");this.slot=this.BO("ytp-ad-action-interstitial-slot");this.Qb=this.BO("ytp-ad-action-interstitial-card");this.B=new kz;g.Z(this,this.B);this.hide()}; LxE=function(p){var x=g.Kw("html5-video-player");x&&g.cG(x,"ytp-ad-display-override",p)}; IJj=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-overlay-slot",N:[{J:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",x,a,v);this.T=[];this.HO=this.F5=this.B=this.Ra=this.V6=null;this.tG=!1;this.S=null;this.pI=0;p=this.BO("ytp-ad-overlay-container");this.hG=new FT(p,45E3,6E3,.3,.4);g.Z(this,this.hG);this.j=YQX(this);g.Z(this,this.j);this.j.WO(p);this.Z=hNG(this);g.Z(this,this.Z);this.Z.WO(p);this.U=j8t(this);g.Z(this,this.U);this.U.WO(p);this.hide()}; YQX=function(p){var x=new g.s6({J:"div",K:"ytp-ad-text-overlay",N:[{J:"div",K:"ytp-ad-overlay-ad-info-button-container"},{J:"div",K:"ytp-ad-overlay-close-container",N:[{J:"button",K:"ytp-ad-overlay-close-button",N:[U6(MIZ)]}]},{J:"div",K:"ytp-ad-overlay-title",wr:"{{title}}"},{J:"div",K:"ytp-ad-overlay-desc",wr:"{{description}}"},{J:"div",CI:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],wr:"{{displayUrl}}"}]});p.X(x.BO("ytp-ad-overlay-title"),"click",function(a){D$(p,x.element,a)}); p.X(x.BO("ytp-ad-overlay-link"),"click",function(a){D$(p,x.element,a)}); p.X(x.BO("ytp-ad-overlay-close-container"),"click",p.Xj);x.hide();return x}; hNG=function(p){var x=new g.s6({J:"div",CI:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],N:[{J:"div",K:"ytp-ad-overlay-ad-info-button-container"},{J:"div",K:"ytp-ad-overlay-close-container",N:[{J:"button",K:"ytp-ad-overlay-close-button",N:[U6(MIZ)]}]},{J:"div",K:"ytp-ad-overlay-text-image",N:[{J:"img",G:{src:"{{imageUrl}}"}}]},{J:"div",K:"ytp-ad-overlay-title",wr:"{{title}}"},{J:"div",K:"ytp-ad-overlay-desc",wr:"{{description}}"},{J:"div",CI:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], wr:"{{displayUrl}}"}]});p.X(x.BO("ytp-ad-overlay-title"),"click",function(a){D$(p,x.element,a)}); p.X(x.BO("ytp-ad-overlay-link"),"click",function(a){D$(p,x.element,a)}); p.X(x.BO("ytp-ad-overlay-close-container"),"click",p.Xj);p.X(x.BO("ytp-ad-overlay-text-image"),"click",p.Ov6);x.hide();return x}; j8t=function(p){var x=new g.s6({J:"div",K:"ytp-ad-image-overlay",N:[{J:"div",K:"ytp-ad-overlay-ad-info-button-container"},{J:"div",K:"ytp-ad-overlay-close-container",N:[{J:"button",K:"ytp-ad-overlay-close-button",N:[U6(MIZ)]}]},{J:"div",K:"ytp-ad-overlay-image",N:[{J:"img",G:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});p.X(x.BO("ytp-ad-overlay-image"),"click",function(a){D$(p,x.element,a)}); p.X(x.BO("ytp-ad-overlay-close-container"),"click",p.Xj);x.hide();return x}; WxO=function(p,x){if(x){var a=g.O(x,q2)||null;a==null?g.Uq(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(x=g.Kw("video-ads ytp-ad-module")||null,x==null?g.Uq(Error("Could not locate the root ads container element to attach the ad info dialog.")):(p.F5=new g.s6({J:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.Z(p,p.F5),p.F5.WO(x),x=new ZE(p.api,p.layoutId,p.interactionLoggingClientData,p.vO,p.F5.element,!1),g.Z(p,x),x.init(uA("ad-info-hover-text-button"),a,p.macros), p.S?(x.WO(p.S,0),x.subscribe("f",p.q74,p),x.subscribe("e",p.kI,p),p.X(p.S,"click",p.VAd),p.X(g.Kw("ytp-ad-button",x.element),"click",function(){var v;if(g.O((v=g.O(a.button,g.et))==null?void 0:v.serviceEndpoint,FD1))p.tG=p.api.getPlayerState(1)===2,p.api.pauseVideo();else p.api.onAdUxClicked("ad-info-hover-text-button",p.layoutId)}),p.HO=x):g.Uq(Error("Ad info button container within overlay ad was not present."))))}else g.Hp(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; DzX=function(p,x){if(k1O(p,UX)||p.api.isMinimized())return!1;var a=cF(x.title),v=cF(x.description);if(g.CZ(a)||g.CZ(v))return!1;p.createServerVe(p.j.element,x.trackingParams||null);p.j.updateValue("title",cF(x.title));p.j.updateValue("description",cF(x.description));p.j.updateValue("displayUrl",cF(x.displayUrl));x.navigationEndpoint&&g.XO(p.T,x.navigationEndpoint);p.j.show();p.hG.start();p.logVisibility(p.j.element,!0);p.X(p.j.element,"mouseover",function(){p.pI++}); return!0}; UzZ=function(p,x){if(k1O(p,UX)||p.api.isMinimized())return!1;var a=cF(x.title),v=cF(x.description);if(g.CZ(a)||g.CZ(v))return!1;p.createServerVe(p.Z.element,x.trackingParams||null);p.Z.updateValue("title",cF(x.title));p.Z.updateValue("description",cF(x.description));p.Z.updateValue("displayUrl",cF(x.displayUrl));p.Z.updateValue("imageUrl",KDJ(x.image));x.navigationEndpoint&&g.XO(p.T,x.navigationEndpoint);p.Ra=x.imageNavigationEndpoint||null;p.Z.show();p.hG.start();p.logVisibility(p.Z.element,!0); p.X(p.Z.element,"mouseover",function(){p.pI++}); return!0}; HUO=function(p,x){if(p.api.isMinimized())return!1;var a=dlo(x.image),v=a;a.width0?(x=new Q4(p.api,p.U), x.WO(p.playerOverlay),g.Z(p,x)):(p=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(x)),g.Uq(p))}}else g.Uq(Error("addCommonComponents() needs to be called before starting countdown."))}; zNy=function(p){function x(a){return{toString:function(){return a()}}} p.macros.SURVEY_LOCAL_TIME_EPOCH_S=x(function(){var a=new Date;return(Math.round(a.valueOf()/1E3)+-1*a.getTimezoneOffset()*60).toString()}); p.macros.SURVEY_ELAPSED_MS=x(function(){return(Date.now()-p.j).toString()})}; woR=function(p,x,a,v,c){mq.call(this,p,x,a,v,"survey-question-multi-select");this.pI=c;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}; E1X=function(p,x,a){p.noneOfTheAbove=new CfX(p.api,p.layoutId,p.interactionLoggingClientData,p.vO);p.noneOfTheAbove.WO(p.answers);p.noneOfTheAbove.init(uA("survey-none-of-the-above"),x,a)}; g1X=function(p){p.Z.forEach(function(x){x.U.toggleButton(!1)}); yTt(p,!0)}; yTt=function(p,x){var a=p.B;p=ZUR(p);x=x===void 0?!1:x;a.U&&(p?a.U.hide():a.U.show(),x&&a.U instanceof dB&&!a.U.B&&Rsf(a.U,!1));a.Z&&(p?a.Z.show():a.Z.hide())}; ZUR=function(p){return p.Z.some(function(x){return x.U.isToggled()})||p.noneOfTheAbove.button.isToggled()}; Sp=function(p,x,a,v,c){mq.call(this,p,x,a,v,"survey-question-single-select",function(R){J.api.L().D("supports_multi_step_on_desktop")&&c([R])}); var J=this;this.hide()}; fJ=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-survey",N:[{J:"div",K:"ytp-ad-survey-questions"}]},"survey",x,a,v);this.questions=[];this.Z=[];this.conditioningRules=[];this.U=0;this.S=this.BO("ytp-ad-survey-questions");this.api.L().D("fix_survey_color_contrast_on_destop")&&this.BO("ytp-ad-survey").classList.add("color-contrast-fix");this.api.L().D("web_enable_speedmaster")&&this.BO("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; N_O=function(p,x){var a=p.Z[x],v;(v=p.j)==null||v.dispose();g.O(a,AR)?G1$(p,g.O(a,AR),p.macros):g.O(a,N2)&&OUO(p,g.O(a,N2),p.macros);p.U=x}; G1$=function(p,x,a){var v=new Sp(p.api,p.layoutId,p.interactionLoggingClientData,p.vO,p.B.bind(p));v.WO(p.S);v.init(uA("survey-question-single-select"),x,a);p.api.L().D("supports_multi_step_on_desktop")?p.j=v:p.questions.push(v);g.Z(p,v)}; OUO=function(p,x,a){var v=new woR(p.api,p.layoutId,p.interactionLoggingClientData,p.vO,p.B.bind(p));v.WO(p.S);v.init(uA("survey-question-multi-select"),x,a);p.api.L().D("supports_multi_step_on_desktop")?p.j=v:p.questions.push(v);g.Z(p,v)}; CJ=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-survey-interstitial",N:[{J:"div",K:"ytp-ad-survey-interstitial-contents",N:[{J:"div",K:"ytp-ad-survey-interstitial-logo",N:[{J:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{J:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",x,a,v);this.U=this.actionButton=null;this.interstitial=this.BO("ytp-ad-survey-interstitial");this.Z=this.BO("ytp-ad-survey-interstitial-contents");this.text=this.BO("ytp-ad-survey-interstitial-text"); this.logoImage=this.BO("ytp-ad-survey-interstitial-logo-image");this.transition=new g.qp(this,500,!1,300);g.Z(this,this.transition)}; ATQ=function(p,x){x=x&&CV(x)||"";if(g.CZ(x))g.Hp(Error("Found ThumbnailDetails without valid image URL"));else{var a=p.style;p=p.style.cssText;var v=document.implementation.createHTMLDocument("").createElement("DIV");v.style.cssText=p;p=wLI(v.style);a.cssText=[p,'background-image:url("'+x+'");'].join("")}}; Pft=function(p){var x=g.Kw("html5-video-player");x&&g.cG(x,"ytp-ad-display-override",p)}; Xo=function(p,x,a,v,c,J){J=J===void 0?0:J;Np.call(this,p,{J:"div",K:"ytp-preview-ad",N:[{J:"div",K:"ytp-preview-ad__text"}]},"preview-ad",x,a,v,c);var R=this;this.pI=J;this.Z=0;this.B=-1;this.j=this.BO("ytp-preview-ad__text");switch(this.pI){case 1:this.j.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.qp(this,400,!1,100,function(){R.hide()}); g.Z(this,this.transition);this.hide()}; i2=function(p,x,a,v){vF.call(this,p,{J:"img",K:"ytp-ad-avatar"},"ad-avatar",x,a,v);this.hide()}; qQX=function(p){switch(p.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}}; od=function(p,x,a,v,c,J){c=c===void 0?!1:c;J=J===void 0?!1:J;vF.call(this,p,{J:"button",K:"ytp-ad-button-vm"},"ad-button",x,a,v);this.buttonText=this.buttonIcon=null;this.hide();this.U=c;this.Z=J}; n1Q=function(p,x,a,v,c){Np.call(this,p,{J:"div",CI:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],N:[{J:"div",K:"ytp-ad-avatar-lockup-card__avatar_and_text_container",N:[{J:"div",K:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",x,a,v,c);this.startMilliseconds=0;this.adAvatar=new i2(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.adAvatar);MW(this.element,this.adAvatar.element,0);this.headline=new WC(this.api,this.layoutId, this.interactionLoggingClientData,this.vO);g.Z(this,this.headline);this.headline.WO(this.BO("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.description);this.description.WO(this.BO("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new od(this.api, this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.adButton);this.adButton.WO(this.element);this.hide()}; t0=function(p,x,a,v){vF.call(this,p,{J:"button",K:"ytp-skip-ad-button",N:[{J:"div",K:"ytp-skip-ad-button__text"}]},"skip-button",x,a,v);var c=this;this.Z=!1;this.B=this.BO("ytp-skip-ad-button__text");this.transition=new g.qp(this,500,!1,100,function(){c.hide()}); g.Z(this,this.transition);this.U=new FT(this.element,15E3,5E3,.5,.5,!0);g.Z(this,this.U);this.hide()}; eNG=function(p,x,a,v,c){Np.call(this,p,{J:"div",K:"ytp-skip-ad"},"skip-ad",x,a,v,c);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.j=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.j);this.j.WO(this.element);this.hide()}; zs=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-visit-advertiser-link"},"visit-advertiser-link",x,a,v);this.hide()}; w2=function(p,x,a,v,c){vF.call(this,p,{J:"div",K:"ytp-ad-player-overlay-layout",N:[{J:"div",K:"ytp-ad-player-overlay-layout__player-card-container"},{J:"div",K:"ytp-ad-player-overlay-layout__ad-info-container"},{J:"div",K:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{J:"div",K:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",x,a,v);this.Z=c;this.F5=this.BO("ytp-ad-player-overlay-layout__player-card-container");this.U=this.BO("ytp-ad-player-overlay-layout__ad-info-container"); this.T=this.BO("ytp-ad-player-overlay-layout__skip-or-preview-container");this.pI=this.BO("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; ugw=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-grid-card-text",N:[{J:"div",K:"ytp-ad-grid-card-text__metadata",N:[{J:"div",K:"ytp-ad-grid-card-text__metadata__headline"},{J:"div",K:"ytp-ad-grid-card-text__metadata__description",N:[{J:"div",K:"ytp-ad-grid-card-text__metadata__description__line"},{J:"div",K:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{J:"div",K:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",x,a,v);this.headline=new WC(this.api,this.layoutId,this.interactionLoggingClientData, this.vO);g.Z(this,this.headline);this.headline.WO(this.BO("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new od(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0);g.Z(this,this.moreInfoButton);this.moreInfoButton.WO(this.BO("ytp-ad-grid-card-text__button"))}; EX=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",x,a,v);this.U=[]}; ys=function(p,x,a,v,c,J,R){Np.call(this,p,J,R,x,a,v,c);this.playerProgressOffsetMs=0;this.Z=!1}; VIX=function(p){var x=g.Kw("html5-video-player");x&&g.cG(x,"ytp-ad-display-override",p)}; FxX=function(p,x,a,v,c){ys.call(this,p,x,a,v,c,{J:"div",K:"ytp-display-underlay-text-grid-cards",N:[{J:"div",K:"ytp-display-underlay-text-grid-cards__content_container",N:[{J:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header",N:[{J:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{J:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{J:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {J:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new EX(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.adGridCardCollection);this.adGridCardCollection.WO(this.BO("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new od(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.adButton);this.adButton.WO(this.BO("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.j=this.BO("ytp-display-underlay-text-grid-cards__content_container");this.B=this.BO("ytp-display-underlay-text-grid-cards__content_container__header")}; g2=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-ad-details-line"},"ad-details-line",x,a,v);this.U=[];this.hide()}; Z$=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-image-background",N:[{J:"img",K:"ytp-image-background-image"}]},"image-background",x,a,v);this.hide()}; pQX=function(p,x,a,v,c){Np.call(this,p,{J:"svg",K:"ytp-timed-pie-countdown",G:{viewBox:"0 0 20 20"},N:[{J:"circle",K:"ytp-timed-pie-countdown__background",G:{r:"10",cx:"10",cy:"10"}},{J:"circle",K:"ytp-timed-pie-countdown__inner",G:{r:"5",cx:"10",cy:"10"}},{J:"circle",K:"ytp-timed-pie-countdown__outer",G:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",x,a,v,c);this.j=this.BO("ytp-timed-pie-countdown__inner");this.Z=Math.ceil(2*Math.PI*5);this.hide()}; Gs=function(p,x,a,v){vF.call(this,p,{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout",G:{tabindex:"0"},N:[{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content",N:[{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",N:[{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{J:"div",K:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",x,a,v);this.Z=null;this.B=this.BO("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.j=new kz;g.Z(this,this.j);this.hide()}; xEV=function(p){var x=g.Kw("html5-video-player");x&&g.cG(x,"ytp-ad-display-override",p)}; $EG=function(p){if(!p.adAvatar||!g.O(p.adAvatar,OX))return g.Uq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!p.headline)return g.Uq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!p.adBadge||!g.O(p.adBadge,Nd))return g.Uq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!p.adButton||!g.O(p.adButton,A0))return g.Uq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!p.adInfoRenderer|| !g.O(p.adInfoRenderer,q2))return g.Uq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;p=p.durationMilliseconds||0;return typeof p!=="number"||p<=0?(g.Uq(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+p)),!1):!0}; PH=function(p,x){x=x===void 0?2:x;g.Fx.call(this);this.api=p;this.U=null;this.eV=new kz(this);g.Z(this,this.eV);this.Z=KAz;this.eV.X(this.api,"presentingplayerstatechange",this.H4);this.U=this.eV.X(this.api,"progresssync",this.SV);this.gU=x;this.gU===1&&this.SV()}; qd=function(p,x,a){zn.call(this,p);this.api=p;this.vO=x;this.components={};p=new g.N({J:"div",CI:["video-ads","ytp-ad-module"]});g.Z(this,p);Ac&&g.$W(p.element,"ytp-ads-tiny-mode");this.B=new KX(p.element);g.Z(this,this.B);g.qh(this.api,p.element,4);lL(a)&&(a=new g.N({J:"div",CI:["ytp-ad-underlay"]}),g.Z(this,a),this.Z=new KX(a.element),g.Z(this,this.Z),g.qh(this.api,a.element,0));g.Z(this,wbx())}; aXv=function(p,x){p=g.LZ(p.components,x.id,null);p==null&&g.Hp(Error("Component not found for element id: "+x.id));return p||null}; svt=function(p){g.Tf.call(this,p);var x=this;this.Z=null;this.created=!1;this.j=p.L().D("h5_use_refactored_get_ad_break")?new e71(this.player):new Gc(this.player);this.B=function(){if(x.Z!=null)return x.Z;var v=new aeg({An:kp(x.U).An,k_:kp(x.U).k_,W:x.player,O1:kp(x.U).O1,Dt:x.U.U.Dt,DW:kp(x.U).DW,vE:x.U.U.vE});x.Z=v.Nb;return x.Z}; this.U=new bUj(this.player,this,this.j,this.B);g.Z(this,this.U);var a=p.L();!Kj(a)||g.$O(a)||Rf(a)||(g.Z(this,new qd(p,kp(this.U).vO,kp(this.U).O1)),g.Z(this,new rTX(p)))}; vtv=function(p){p.created!==p.loaded&&sE("Created and loaded are out of sync")}; RwE=function(p){g.Tf.prototype.load.call(p);var x=kp(p.U).O1;try{p.player.getRootNode().classList.add("ad-created")}catch(b){sE(b instanceof Error?b:String(b))}var a=p.player.getVideoData(1),v=a&&a.videoId||"",c=a&&a.getPlayerResponse()||{},J=(c&&c.adPlacements||[]).map(function(b){return b.adPlacementRenderer}),R=((c==null?void 0:c.adSlots)||[]).map(function(b){return g.O(b,FZ)}); c=c.playerConfig&&c.playerConfig.daiConfig&&c.playerConfig.daiConfig.enableDai||!1;a&&a.Dp();J=cOV(J,R,x,kp(p.U).iE);R=a&&a.clientPlaybackNonce||"";a=a&&a.Rz||!1;if(JD(x,!0)&&a){var d;x={};(d=p.player.getVideoData())==null||d.jA("p_cpb",(x.cc=R,x))}d=1E3*p.player.getDuration(1);JOV(p);p.U.U.Jh.tZ(R,d,a,J.G3,J.U_,J.G3,c,v)}; JOV=function(p){var x,a;if(a=(x=p.player.getVideoData(1))==null||!x.Rz)x=p.player.L(),a=Kj(x)&&!g.RU(x)&&x.playerStyle==="desktop-polymer";a&&(p=p.player.getInternalApi(),p.addEventListener("updateKevlarOrC3Companion",jb1),p.addEventListener("updateEngagementPanelAction",IHT),p.addEventListener("changeEngagementPanelVisibility",MkN),window.addEventListener("yt-navigate-start",kbU))}; nJ=function(p,x){x===p.KA&&(p.KA=void 0)}; K$X=function(p){var x=kp(p.U).j3,a=x.B().aL("SLOT_TYPE_PLAYER_BYTES",1);x=Ca(x.KI.get(),1).clientPlaybackNonce;var v=!1;a=g.k(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var J=c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.slotEntryTrigger instanceof ER?c.slotEntryTrigger.Gd:void 0;J&&J===x&&(v&&sE("More than 1 preroll playerBytes slot detected",c),v=!0)}v||J0(kp(p.U).QG)}; dEt=function(p){if(u7(kp(p.U).O1))return!0;var x="";p=g.k(kp(p.U).DW.Ux.keys());for(var a=p.next();!a.done;a=p.next()){a=a.value;if(a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a.G4==="core")return!0;x+=a.slotType+" "}Math.random()<.01&&sE("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:x});return!1}; bGv=function(p){p=g.k(kp(p.U).DW.Ux.values());for(var x=p.next();!x.done;x=p.next())if(x.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Zbg=function(p,x,a,v,c,J,R){a=a===void 0?[]:a;v=v===void 0?"":v;c=c===void 0?"":c;var d=kp(p.U).O1,b=p.player.getVideoData(1);b&&b.getPlayerResponse();b&&b.Dp();a=cOV(x,a,d,kp(p.U).iE);PsN(kp(p.U).Ph,v,a.G3,a.U_,x,c,J,R)}; cOV=function(p,x,a,v){x={G3:[],U_:x};p=g.k(p);for(var c=p.next();!c.done;c=p.next())if((c=c.value)&&c.renderer!=null){var J=c.renderer;if(!a.W.L().D("html5_enable_vod_lasr_with_notify_pacf")){var R=void 0,d=void 0,b=void 0,r=void 0,B=v;g.O((r=J.sandwichedLinearAdRenderer)==null?void 0:r.adVideoStart,fQ)?(R=g.O((b=J.sandwichedLinearAdRenderer)==null?void 0:b.adVideoStart,fQ),R=J6_(R,B),g.fr(J.sandwichedLinearAdRenderer.adVideoStart,fQ,R)):g.O((d=J.linearAdSequenceRenderer)==null?void 0:d.adStart,fQ)&& (b=g.O((R=J.linearAdSequenceRenderer)==null?void 0:R.adStart,fQ),R=J6_(b,B),g.fr(J.linearAdSequenceRenderer.adStart,fQ,R))}x.G3.push(c)}return x}; g.ep=function(p){if(typeof DOMParser!="undefined")return QE(new DOMParser,XmU(p),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.u2=function(p){g.y.call(this);this.callback=p;this.U=new hu(0,0,.4,0,.2,1,1,1);this.delay=new g.Gp(this.next,window,this);g.Z(this,this.delay)}; g.rOO=function(p){var x=p.L();return x.RA&&!x.j&&g.nH(x)?p.isEmbedsShortsMode()?(p=p.uh(),Math.min(p.width,p.height)>=315):!p.XM():!1}; g.Vs=function(p){g.N.call(this,{J:"div",K:"ytp-more-videos-view",G:{tabIndex:"-1"}});var x=this;this.api=p;this.Z=!0;this.j=new g.II(this);this.U=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.B=this.scrollPosition=0;this.title=new g.N({J:"h2",K:"ytp-related-title",wr:"{{title}}"});this.previous=new g.N({J:"button",CI:["ytp-button","ytp-previous"],G:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},N:[g.dN()]});this.V=new g.u2(function(a){x.suggestions.element.scrollLeft= -a}); this.next=new g.N({J:"button",CI:["ytp-button","ytp-next"],G:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},N:[g.bx()]});g.Z(this,this.j);this.S=p.L().B;g.Z(this,this.title);this.title.WO(this.element);this.suggestions=new g.N({J:"div",K:"ytp-suggestions"});g.Z(this,this.suggestions);this.suggestions.WO(this.element);g.Z(this,this.previous);this.previous.WO(this.element);this.previous.listen("click",this.fP,this);g.Z(this,this.V);BRE(this);g.Z(this,this.next);this.next.WO(this.element);this.next.listen("click", this.e5,this);this.j.X(this.api,"appresize",this.LW);this.j.X(this.api,"fullscreentoggled",this.II);this.j.X(this.api,"videodatachange",this.onVideoDataChange);this.LW(this.api.fI().getPlayerSize());this.onVideoDataChange()}; BRE=function(p){for(var x={mu:0};x.mu<16;x={mu:x.mu},++x.mu){var a=new g.N({J:"a",K:"ytp-suggestion-link",G:{href:"{{link}}",target:p.api.L().T,"aria-label":"{{aria_label}}"},N:[{J:"div",K:"ytp-suggestion-image"},{J:"div",K:"ytp-suggestion-overlay",G:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},N:[{J:"div",K:"ytp-suggestion-title",wr:"{{title}}"},{J:"div",K:"ytp-suggestion-author",wr:"{{author_and_views}}"},{J:"div",G:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration", wr:"{{duration}}"}]}]});g.Z(p,a);var v=a.BO("ytp-suggestion-link");g.Ab(v,"transitionDelay",x.mu/20+"s");p.j.X(v,"click",function(c){return function(J){var R=c.mu;if(p.Z){var d=p.suggestionData[R],b=d.sessionData;p.S&&p.api.D("web_player_log_click_before_generating_ve_conversion_params")?(p.api.logClick(p.U[R].element),R=d.q1(),d={},g.Nh(p.api,d),R=g.jL(R,d),g.Wy(R,p.api,J)):g.Ma(J,p.api,p.S,b||void 0)&&p.api.Nh(d.videoId,b,d.playlistId)}else J.preventDefault(),document.activeElement.blur()}}(x)); a.WO(p.suggestions.element);p.U.push(a);p.api.createServerVe(a.element,a)}}; lXR=function(p){if(p.api.L().D("web_player_log_click_before_generating_ve_conversion_params"))for(var x=Math.floor(-p.scrollPosition/(p.B+8)),a=Math.min(x+p.columns,p.suggestionData.length)-1;x<=a;x++)p.api.logVisibility(p.U[x].element,!0)}; g.Fo=function(p){var x=p.api.WB()?32:16;x=p.Y/2+x;p.next.element.style.bottom=x+"px";p.previous.element.style.bottom=x+"px";x=p.scrollPosition;var a=p.containerWidth-p.suggestionData.length*(p.B+8);g.cG(p.element,"ytp-scroll-min",x>=0);g.cG(p.element,"ytp-scroll-max",x<=a)}; YV$=function(p){for(var x=p.suggestionData.length,a=0;a>>0)+"_",c=0;return x}); bf("Symbol.iterator",function(p){if(p)return p;p=Symbol("Symbol.iterator");for(var x="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),a=0;a0&&a>0;)if(v[--a]!=x[--c])return!1;return c<=0}}); bf("Array.prototype.find",function(p){return p?p:function(x,a){return rTb(this,x,a).Ce}}); bf("Array.prototype.entries",function(p){return p?p:function(){return Nz(this,function(x,a){return[x,a]})}}); bf("Array.prototype.keys",function(p){return p?p:function(){return Nz(this,function(x){return x})}}); bf("String.prototype.startsWith",function(p){return p?p:function(x,a){var v=G1(this,x,"startsWith");x+="";var c=v.length,J=x.length;a=Math.max(0,Math.min(a|0,v.length));for(var R=0;R=J}}); bf("Number.isFinite",function(p){return p?p:function(x){return typeof x!=="number"?!1:!isNaN(x)&&x!==Infinity&&x!==-Infinity}}); bf("String.prototype.repeat",function(p){return p?p:function(x){var a=G1(this,null,"repeat");if(x<0||x>1342177279)throw new RangeError("Invalid count value");x|=0;for(var v="";x;)if(x&1&&(v+=a),x>>>=1)a+=a;return v}}); bf("Object.entries",function(p){return p?p:function(x){var a=[],v;for(v in x)hT(x,v)&&a.push([v,x[v]]);return a}}); bf("Array.from",function(p){return p?p:function(x,a,v){a=a!=null?a:function(d){return d}; var c=[],J=typeof Symbol!="undefined"&&Symbol.iterator&&x[Symbol.iterator];if(typeof J=="function"){x=J.call(x);for(var R=0;!(J=x.next()).done;)c.push(a.call(v,J.value,R++))}else for(J=x.length,R=0;R>>0;if(x===0)return 32;var a=0;(x&4294901760)===0&&(x<<=16,a+=16);(x&4278190080)===0&&(x<<=8,a+=8);(x&4026531840)===0&&(x<<=4,a+=4);(x&3221225472)===0&&(x<<=2,a+=2);(x&2147483648)===0&&a++;return a}}); bf("Number.isNaN",function(p){return p?p:function(x){return typeof x==="number"&&isNaN(x)}}); bf("Array.prototype.values",function(p){return p?p:function(){return Nz(this,function(x,a){return a})}}); bf("Array.prototype.fill",function(p){return p?p:function(x,a,v){var c=this.length||0;a<0&&(a=Math.max(0,c+a));if(v==null||v>c)v=c;v=Number(v);v<0&&(v=Math.max(0,c+v));for(a=Number(a||0);a0&&a?a.repeat(Math.ceil(x/a.length)).substring(0,x):"")+v}}); bf("Array.prototype.findIndex",function(p){return p?p:function(x,a){return rTb(this,x,a).Rd}}); bf("Promise.prototype.finally",function(p){return p?p:function(x){return this.then(function(a){return Promise.resolve(x()).then(function(){return a})},function(a){return Promise.resolve(x()).then(function(){throw a; })})}}); bf("Math.imul",function(p){return p?p:function(x,a){x=Number(x);a=Number(a);var v=x&65535,c=a&65535;return v*c+((x>>>16&65535)*c+v*(a>>>16&65535)<<16>>>0)|0}}); bf("Math.sign",function(p){return p?p:function(x){x=Number(x);return x===0||isNaN(x)?x:x>0?1:-1}}); bf("WeakSet",function(p){function x(a){this.U=new WeakMap;if(a){a=g.k(a);for(var v;!(v=a.next()).done;)this.add(v.value)}} if(function(){if(!p||!Object.seal)return!1;try{var a=Object.seal({}),v=Object.seal({}),c=new p([a]);if(!c.has(a)||c.has(v))return!1;c.delete(a);c.add(v);return!c.has(a)&&c.has(v)}catch(J){return!1}}())return p; x.prototype.add=function(a){this.U.set(a,!0);return this}; x.prototype.has=function(a){return this.U.has(a)}; x.prototype.delete=function(a){return this.U.delete(a)}; return x}); bf("AggregateError",function(p){function x(a,v){v=Error(v);"stack"in v&&(this.stack=v.stack);this.errors=a;this.message=v.message} if(p)return p;g.M(x,Error);x.prototype.name="AggregateError";return x}); bf("Array.prototype.copyWithin",function(p){function x(a){a=Number(a);return a===Infinity||a===-Infinity?a:a|0} return p?p:function(a,v,c){var J=this.length;a=x(a);v=x(v);c=c===void 0?J:x(c);a=a<0?Math.max(J+a,0):Math.min(a,J);v=v<0?Math.max(J+v,0):Math.min(v,J);c=c<0?Math.max(J+c,0):Math.min(c,J);if(av;)--c in this?this[--a]=this[c]:delete this[--a];return this}}); bf("Int8Array.prototype.copyWithin",Po);bf("Uint8Array.prototype.copyWithin",Po);bf("Uint8ClampedArray.prototype.copyWithin",Po);bf("Int16Array.prototype.copyWithin",Po);bf("Uint16Array.prototype.copyWithin",Po);bf("Int32Array.prototype.copyWithin",Po);bf("Uint32Array.prototype.copyWithin",Po);bf("Float32Array.prototype.copyWithin",Po);bf("Float64Array.prototype.copyWithin",Po);bf("Array.prototype.at",function(p){return p?p:nU}); bf("Int8Array.prototype.at",uf);bf("Uint8Array.prototype.at",uf);bf("Uint8ClampedArray.prototype.at",uf);bf("Int16Array.prototype.at",uf);bf("Uint16Array.prototype.at",uf);bf("Int32Array.prototype.at",uf);bf("Uint32Array.prototype.at",uf);bf("Float32Array.prototype.at",uf);bf("Float64Array.prototype.at",uf);bf("String.prototype.at",function(p){return p?p:nU}); bf("Array.prototype.findLastIndex",function(p){return p?p:function(x,a){return B_8(this,x,a).Rd}}); bf("Int8Array.prototype.findLastIndex",Vb);bf("Uint8Array.prototype.findLastIndex",Vb);bf("Uint8ClampedArray.prototype.findLastIndex",Vb);bf("Int16Array.prototype.findLastIndex",Vb);bf("Uint16Array.prototype.findLastIndex",Vb);bf("Int32Array.prototype.findLastIndex",Vb);bf("Uint32Array.prototype.findLastIndex",Vb);bf("Float32Array.prototype.findLastIndex",Vb);bf("Float64Array.prototype.findLastIndex",Vb);bf("Number.parseInt",function(p){return p||parseInt});var Pm,JO,Lxz;Pm=Pm||{};g.Fg=this||self;JO="closure_uid_"+(Math.random()*1E9>>>0);Lxz=0;g.LG(Yt,Error);Yt.prototype.name="CustomError";var CZg;var k1T,Wq,OT;k1T=Array.prototype.indexOf?function(p,x){return Array.prototype.indexOf.call(p,x,void 0)}:function(p,x){if(typeof p==="string")return typeof x!=="string"||x.length!=1?-1:p.indexOf(x,0); for(var a=0;a=0;a--)if(a in p&&p[a]===x)return a;return-1}; g.ej=Array.prototype.forEach?function(p,x,a){Array.prototype.forEach.call(p,x,a)}:function(p,x,a){for(var v=p.length,c=typeof p==="string"?p.split(""):p,J=0;J=.3:this.D3>=.5};var Sg={drr:0,La$:1},Qt1={NONE:0,Kv$:1,Ty7:2};var zN1="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");M3.prototype.getValue=function(){return this.Z}; g.M(WD,M3);WD.prototype.j=function(p){this.Z===null&&g.ro(this.B,p)&&(this.Z=p)}; g.M(kr,M3);kr.prototype.j=function(p){this.Z===null&&typeof p==="number"&&(this.Z=p)}; g.M(DM,M3);DM.prototype.j=function(p){this.Z===null&&typeof p==="string"&&(this.Z=p)};Uz.prototype.disable=function(){this.Z=!1}; Uz.prototype.enable=function(){this.Z=!0}; Uz.prototype.isEnabled=function(){return this.Z}; Uz.prototype.reset=function(){this.U={};this.Z=!0;this.j={}};var A1=document,XU=window;var UEV=sV(1,!0),yM=sV(610401301,!1);sV(899588437,!1);var HGG=sV(772657768,!1),TRG=sV(513659523,!1),QvO=sV(568333945,!1),sl1=sV(1331761403,!1);sV(651175828,!1);sV(722764542,!1);sV(748402145,!1);sV(748402146,!1);var WnQ=sV(748402147,UEV);sV(333098724,!1);sV(2147483644,!1);sV(2147483645,!1);sV(2147483646,UEV);sV(2147483647,!0);var go=!!g.$t("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var tp=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]},JOQ=/&/g,Rwz=//g,dE1=/"/g,bG8=/'/g,rOg=/\x00/g,cOQ=/[\x00&<>"']/;var Oz,mEV=g.Fg.navigator;Oz=mEV?mEV.userAgentData||null:null;var n1o=globalThis.trustedTypes,VM;p9.prototype.toString=function(){return this.U+""};sW.prototype.toString=function(){return this.U}; var VIb=new sW("about:invalid#zClosurez");var hMz=J4("tel"),LFz=J4("sms"),ugN=[J4("data"),J4("http"),J4("https"),J4("mailto"),J4("ftp"),new cs(function(p){return/^[^:]*([/?#]|$)/.test(p)})],FxJ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Bs.prototype.toString=function(){return this.U+""};jc.prototype.toString=function(){return this.U+""};DL.prototype.toString=function(){return this.U};var Hs={};g.SVX=String.prototype.repeat?function(p,x){return p.repeat(x)}:function(p,x){return Array(x+1).join(p)};yE[" "]=function(){};var PY,bQ,kOz,fXt,CZO,XQZ,ND,Ac,iGX;g.P0=q3();g.dj=G1x();g.ZH=Ap("Edge");g.M_=g.ZH||g.dj;PY=Ap("Gecko")&&!(oJ(g.Ez(),"WebKit")&&!Ap("Edge"))&&!(Ap("Trident")||Ap("MSIE"))&&!Ap("Edge");g.bP=oJ(g.Ez(),"WebKit")&&!Ap("Edge");bQ=EW();kOz=jvN();g.qk=hwQ();fXt=zd();CZO=Ap("iPad");XQZ=Ap("iPod");ND=wu();Ac=oJ(g.Ez(),"KaiOS"); a:{var otG="",tjj=function(){var p=g.Ez();if(PY)return/rv:([^\);]+)(\)|;)/.exec(p);if(g.ZH)return/Edge\/([\d\.]+)/.exec(p);if(g.dj)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(p);if(g.bP)return/WebKit\/(\S+)/.exec(p);if(g.P0)return/(?:Version)[ \/]?(\S+)/.exec(p)}(); tjj&&(otG=tjj?tjj[1]:"");if(g.dj){var pg,zww=g.Fg.document;pg=zww?zww.documentMode:void 0;if(pg!=null&&pg>parseFloat(otG)){iGX=String(pg);break a}}iGX=otG}var kyI=iGX,Mjo={};var Nk,As;g.Jc=nZ();Nk=zd()||Ap("iPod");As=Ap("iPad");g.qD=N_g();g.Li=eg();g.BR=uu()&&!wu();var C3_=!g.dj&&!uu();g.I=g.Ng.prototype;g.I.clone=function(){return new g.Ng(this.x,this.y)}; g.I.equals=function(p){return p instanceof g.Ng&&A4(this,p)}; g.I.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.I.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.I.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.I.scale=function(p,x){this.x*=p;this.y*=typeof x==="number"?x:p;return this};g.I=g.Ps.prototype;g.I.clone=function(){return new g.Ps(this.width,this.height)}; g.I.aspectRatio=function(){return this.width/this.height}; g.I.isEmpty=function(){return!n9(this)}; g.I.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.I.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.I.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.I.scale=function(p,x){this.width*=p;this.height*=typeof x==="number"?x:p;return this};uO.prototype.toString=function(){return this.U}; var ec={};new uO(ec,"");var HGU=/^[a-z][a-z\d-]*$/i,TRU="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),mEQ="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),fX1=["action","formaction","href"];var XQf={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.I=pw.prototype;g.I.BX=function(p){return vY(this.U,p)}; g.I.getElementsByTagName=function(p,x){return(x||this.U).getElementsByTagName(String(p))}; g.I.BO=function(p){return g.Kw(p,this.U)}; g.I.setProperties=dI;g.I.createElement=function(p){return BY(this.U,p)}; g.I.appendChild=g.jv;g.I.append=function(p,x){zwN(xk(p),p,arguments,1)}; g.I.canHaveChildren=function(p){if(p.nodeType!=1)return!1;switch(p.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.I.removeNode=g.WY;g.I.getChildren=function(p){return p.children!=void 0?p.children:Array.prototype.filter.call(p.childNodes,function(x){return x.nodeType==1})}; g.I.contains=g.kk;Sv.prototype.now=function(){return 0}; Sv.prototype.Z=function(){return 0}; Sv.prototype.j=function(){return 0}; Sv.prototype.U=function(){return 0};g.M(Cw,Sv);Cw.prototype.now=function(){return fw()&&XU.performance.now?XU.performance.now():Sv.prototype.now.call(this)}; Cw.prototype.Z=function(){return fw()&&XU.performance.memory?XU.performance.memory.totalJSHeapSize||0:Sv.prototype.Z.call(this)}; Cw.prototype.j=function(){return fw()&&XU.performance.memory?XU.performance.memory.usedJSHeapSize||0:Sv.prototype.j.call(this)}; Cw.prototype.U=function(){return fw()&&XU.performance.memory?XU.performance.memory.jsHeapSizeLimit||0:Sv.prototype.U.call(this)};var ST_=function(){if(!g.Fg.addEventListener||!Object.defineProperty)return!1;var p=!1,x=Object.defineProperty({},"passive",{get:function(){p=!0}}); try{var a=function(){}; g.Fg.addEventListener("test",a,x);g.Fg.removeEventListener("test",a,x)}catch(v){}return p}();var wH8=gtb("AnimationEnd"),Tm=gtb("TransitionEnd");g.I=Ea.prototype;g.I.getHeight=function(){return this.bottom-this.top}; g.I.clone=function(){return new Ea(this.top,this.right,this.bottom,this.left)}; g.I.contains=function(p){return this&&p?p instanceof Ea?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1}; g.I.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.I.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.I.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.I.scale=function(p,x){x=typeof x==="number"?x:p;this.left*=p;this.right*=p;this.top*=x;this.bottom*=x;return this};g.I=g.GL.prototype;g.I.clone=function(){return new g.GL(this.left,this.top,this.width,this.height)}; g.I.contains=function(p){return p instanceof g.Ng?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height}; g.I.getSize=function(){return new g.Ps(this.width,this.height)}; g.I.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.I.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.I.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.I.scale=function(p,x){x=typeof x==="number"?x:p;this.left*=p;this.width*=p;this.top*=x;this.height*=x;return this};var GyU={};var nt1=tb(function(){var p=!1;try{var x=Object.defineProperty({},"passive",{get:function(){p=!0}}); g.Fg.addEventListener("test",null,x)}catch(a){}return p});ewU.prototype.isVisible=function(){return JI(A1)===1};var OZb=RT(function(p){return typeof p==="number"}),uN=RT(function(p){return typeof p==="string"}),No8=RT(function(p){return typeof p==="boolean"}),Dn=RT(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),WTg=RT(function(p){return typeof p==="function"}),wQR=RT(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var VjU={vOg:"allow-forms",mVd:"allow-modals",AS$:"allow-orientation-lock",a$T:"allow-pointer-lock",gOa:"allow-popups",Ls5:"allow-popups-to-escape-sandbox",Nht:"allow-presentation",cSg:"allow-same-origin",HGI:"allow-scripts",e74:"allow-top-navigation",f$r:"allow-top-navigation-by-user-activation"},$3f=tb(function(){return F$f()});var cpU=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");L$.prototype.Wh=function(p,x,a){p=p+"//"+x+a;var v=d3b(this)-a.length;if(v<0)return"";this.U.sort(function(r,B){return r-B}); a=null;x="";for(var c=0;c=b.length){v-=b.length;p+=b;x=this.j;break}a=a==null?J:a}}v="";a!=null&&(v=""+x+"trn="+a);return p+v};DS.prototype.setInterval=function(p,x){return XU.setInterval(p,x)}; DS.prototype.clearInterval=function(p){XU.clearInterval(p)}; DS.prototype.setTimeout=function(p,x){return XU.setTimeout(p,x)}; DS.prototype.clearTimeout=function(p){XU.clearTimeout(p)};var bn=void 0,dp,Gdo=typeof TextDecoder!=="undefined",WUo,MgN=typeof String.prototype.isWellFormed==="function",IM1=typeof TextEncoder!=="undefined";var ToT={},C$=null,QJQ=PY||g.bP||typeof g.Fg.btoa=="function";var wDz=typeof Uint8Array!=="undefined",XDz=!g.dj&&typeof btoa==="function",iZf=/[-_.]/g,fMJ={"-":"+",_:"/",".":"="},iN={};Xt.prototype.isEmpty=function(){return this.U==null}; Xt.prototype.sizeBytes=function(){var p=tI(this);return p?p.length:0}; var zef;var ErT=void 0;var gF=typeof Symbol==="function"&&typeof Symbol()==="symbol",EtX=yR("jas",void 0,!0),jT=yR(void 0,"1oa"),i3=yR(void 0,Symbol()),yOQ=yR(void 0,"0ub"),Bub=yR(void 0,"0ubs"),BIb=yR(void 0,"0ubsb"),Dg8=yR(void 0,"0actk"),f4=yR("m_m","Iag",!0),YW8=yR(void 0,"vps"),gtX=yR();Math.max.apply(Math,g.lf(Object.values({TwT:1,rcg:2,fMt:4,LxT:8,QO$:16,QT5:32,oi$:64,wUr:128,eBI:256,wv5:512,rZ5:1024,P9A:2048,GFa:4096})));var gr8={Wk:{value:0,configurable:!0,writable:!0,enumerable:!1}},yp1=Object.defineProperties,ZS=gF?EtX:"Wk",sb,ZGQ=[];OO(ZGQ,7);sb=Object.freeze(ZGQ);var C4={},AI={},COb=Object.freeze({}),n$={};var p4=typeof g.Fg.BigInt==="function"&&typeof g.Fg.BigInt(0)==="bigint";var ZY=RT(function(p){return p4?p>=GyG&&p<=OGZ:p[0]==="-"?Apb(p,NRX):Apb(p,AOw)}),NRX=Number.MIN_SAFE_INTEGER.toString(),GyG=p4?BigInt(Number.MIN_SAFE_INTEGER):void 0,AOw=Number.MAX_SAFE_INTEGER.toString(),OGZ=p4?BigInt(Number.MAX_SAFE_INTEGER):void 0;var wsT=typeof Uint8Array.prototype.slice==="function",$g=0,ap=0,lp1;var W3=typeof BigInt==="function"?BigInt.asIntN:void 0,J4_=typeof BigInt==="function"?BigInt.asUintN:void 0,H3=Number.isSafeInteger,B3=Number.isFinite,Te=Math.trunc,usx=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var hYo={};var PZO={Vk7:!0};var yZ;var j0f,ILz;var oYN=xg(0),iw={};Zi.prototype.init=function(p,x,a,v){var c=v===void 0?{}:v;v=c.OU===void 0?!1:c.OU;c=c.PS===void 0?!1:c.PS;this.OU=v;this.PS=c;p&&(p=gm(p,this.PS),this.Z=p.buffer,this.C=p.U,this.B=x||0,this.j=a!==void 0?this.B+a:this.Z.length,this.U=this.B)}; Zi.prototype.free=function(){this.clear();eT.length<100&&eT.push(this)}; Zi.prototype.clear=function(){this.Z=null;this.C=!1;this.U=this.j=this.B=0;this.OU=!1}; Zi.prototype.reset=function(){this.U=this.B}; var eT=[];uw.prototype.free=function(){this.U.clear();this.Z=this.j=-1;VQ.length<100&&VQ.push(this)}; uw.prototype.reset=function(){this.U.reset();this.B=this.U.U;this.Z=this.j=-1}; var VQ=[];var Nu8,POU;LM.prototype.length=function(){return this.U.length}; LM.prototype.end=function(){var p=this.U;this.U=[];return p};var Up=k2(),qVQ=k2(),ntt=k2(),ewG=k2(),uOt=k2(),VjG=k2(),F$Z=k2(),pDX=k2(),x3y=k2(),$3Z=k2(),aMj=k2();DT.prototype.toJSON=function(){return OC(this)}; DT.prototype.E6=function(p){return JSON.stringify(OC(this,p))}; DT.prototype.clone=function(){var p=this.l$,x=p[ZS]|0;return qx(this,p,x)?n4(this,p,!0):new this.constructor(P3(p,x,!1))}; DT.prototype[f4]=C4;DT.prototype.toString=function(){return this.l$.toString()};var apf=TA(function(p,x,a,v,c){if(p.Z!==2)return!1;KM(p,I4(x,v,a),c);return!0},$WJ),stf=TA(function(p,x,a,v,c){if(p.Z!==2)return!1; KM(p,I4(x,v,a),c);return!0},$WJ),Op=Symbol(),CM=Symbol(),wp=Symbol(),dWN=Symbol(),Jbf=Symbol(),QP,mu;var sJO=qi(function(p,x,a){if(p.Z!==1)return!1;eP(x,a,qC(p.U));return!0},un,x3y),vr$=qi(function(p,x,a){if(p.Z!==1)return!1; p=qC(p.U);eP(x,a,p===0?void 0:p);return!0},un,x3y),cpG=qi(function(p,x,a,v){if(p.Z!==1)return!1; YD(x,a,v,qC(p.U));return!0},un,x3y),Jpj=qi(function(p,x,a){if(p.Z!==0)return!1; eP(x,a,Ob(p.U));return!0},VP,F$Z),ReO=qi(function(p,x,a){if(p.Z!==0)return!1; p=Ob(p.U);eP(x,a,p===0?void 0:p);return!0},VP,F$Z),KUv=qi(function(p,x,a,v){if(p.Z!==0)return!1; YD(x,a,v,Ob(p.U));return!0},VP,F$Z),d3X=qi(function(p,x,a){if(p.Z!==0)return!1; eP(x,a,NC(p.U));return!0},F9,ewG),bZV=qi(function(p,x,a){if(p.Z!==0)return!1; p=NC(p.U);eP(x,a,p===0?void 0:p);return!0},F9,ewG),rpG=qi(function(p,x,a,v){if(p.Z!==0)return!1; YD(x,a,v,NC(p.U));return!0},F9,ewG),BoG=qi(function(p,x,a){if(p.Z!==1)return!1; eP(x,a,PM(p.U));return!0},function(p,x,a){Fno(p,a,RYQ(x))},pDX),lMj=nM(function(p,x,a){if(p.Z!==1&&p.Z!==2)return!1; x=bw(x,x[ZS]|0,a);if(p.Z==2)for(a=NC(p.U)>>>0,a=p.U.U+a;p.U.U>>0);return!0},function(p,x,a){x=h7(x); x!=null&&x!=null&&(Mi(p,a,0),hV(p.U,x))},uOt),c7=qi(function(p,x,a){if(p.Z!==0)return!1; eP(x,a,NC(p.U));return!0},function(p,x,a){x=Yg(x); x!=null&&(x=parseInt(x,10),Mi(p,a,0),nY8(p.U,x))},aMj);Ip8.prototype.register=function(){yE(this)};g.M($x,DT);$x.prototype.j=WBb([0,vr$,ReO,-2,bZV]);var mWb={Per:1,xn:2,nH$:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};fpT.prototype.xF=function(p){if(typeof p==="string"&&p.length!=0){var x=this.Oz;if(x.Z){p=p.split("&");for(var a=p.length-1;a>=0;a--){var v=p[a].split("="),c=decodeURIComponent(v[0]);v.length>1?(v=decodeURIComponent(v[1]),v=/^[0-9]+$/g.exec(v)?parseInt(v,10):v):v=1;(c=x.U[c])&&c.j(v)}}}};var Jf=null;var RP=g.Fg.performance,kiV=!!(RP&&RP.mark&&RP.measure&&RP.clearMarks),cB=tb(function(){var p;if(p=kiV){var x=x===void 0?window:x;if(Jf===null){Jf="";try{p="";try{p=x.top.location.hash}catch(v){p=x.location.hash}if(p){var a=p.match(/\bdeid=([\d,]+)/);Jf=a?a[1]:""}}catch(v){}}x=Jf;p=!!x.indexOf&&x.indexOf("1337")>=0}return p}); J1.prototype.disable=function(){this.U=!1;this.events!==this.Z.google_js_reporting_queue&&(cB()&&g.ej(this.events,zl_),this.events.length=0)}; J1.prototype.start=function(p,x){if(!this.U)return null;var a=ok1()||iwx();p=new tvT(p,x,a);x="goog_"+p.label+"_"+p.uniqueId+"_start";RP&&cB()&&RP.mark(x);return p}; J1.prototype.end=function(p){if(this.U&&typeof p.value==="number"){var x=ok1()||iwx();p.duration=x-p.value;x="goog_"+p.label+"_"+p.uniqueId+"_end";RP&&cB()&&RP.mark(x);!this.U||this.events.length>2048||this.events.push(p)}};var wYo=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),kx=/#|$/,Ow_=/[?&]($|#)/;Abx.prototype.p6=function(p,x,a,v,c){c=c||this.tT;try{var J=new L$;J.U.push(1);J.Z[1]=YG("context",p);x.error&&x.meta&&x.id||(x=new mw(SL(x)));if(x.msg){var R=x.msg.substring(0,512);J.U.push(2);J.Z[2]=YG("msg",R)}var d=x.meta||{};if(this.X3)try{this.X3(d)}catch(Y){}if(v)try{v(d)}catch(Y){}v=[d];J.U.push(3);J.Z[3]=v;var b=Reg();if(b.Z){var r=b.Z.url||"";J.U.push(4);J.Z[4]=YG("top",r)}var B={url:b.U.url||""};if(b.U.url){var l=g.d3(b.U.url);var L=KN(l[1],null,l[3],l[4])}else L="";r=[B,{url:L}];J.U.push(5); J.Z[5]=r;CPQ(this.U,c,J,a)}catch(Y){try{CPQ(this.U,c,{context:"ecmserr",rctx:p,msg:SL(Y),url:b&&b.U.url},a)}catch(h){}}return this.gt}; g.M(mw,XYg);var TJ,QV,HB=new J1;TJ=new function(){var p="https:";XU&&XU.location&&XU.location.protocol==="http:"&&(p="http:");this.Z=p;this.U=.01}; QV=new Abx;XU&&XU.document&&(XU.document.readyState=="complete"?qaI():HB.U&&cq(XU,"load",function(){qaI()}));var uUz=Date.now(),zJ=-1,oP=-1,cjf,w3=-1,t1=!1;ET.prototype.equals=function(p,x){return!!p&&(!(x===void 0?0:x)||this.volume==p.volume)&&this.j==p.j&&gI(this.U,p.U)&&!0};yV.prototype.BX=function(){return this.V}; yV.prototype.equals=function(p,x){return this.B.equals(p.B,x===void 0?!1:x)&&this.V==p.V&&gI(this.j,p.j)&&gI(this.S,p.S)&&this.U==p.U&&this.C==p.C&&this.Z==p.Z&&this.Y==p.Y};var D3X={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},PS={qL:"start",m0:"firstquartile",O0:"midpoint",V7:"thirdquartile",COMPLETE:"complete",ERROR:"error",s0:"metric",PAUSE:"pause",hg:"resume",iW:"skip",Yn:"viewable_impression",Jg:"mute",Ky:"unmute",Al:"fullscreen",v4:"exitfullscreen",KP:"bufferstart",Mb:"bufferfinish",gf:"fully_viewable_audible_half_duration_impression",Pr:"measurable_impression",Fg:"abandon",Re:"engagedview",LP:"impression",xV:"creativeview",LOADED:"loaded", Jm$:"progress",CLOSE:"close",yRt:"collapse",r3O:"overlay_resize",TUA:"overlay_unmeasurable_impression",y3r:"overlay_unviewable_impression",oHO:"overlay_viewable_immediate_impression",lWI:"overlay_viewable_end_of_session_impression",QB:"custom_metric_viewable",CP:"audio_audible",bv:"audio_measurable",Do:"audio_impression"},hZ_="start firstquartile midpoint thirdquartile resume loaded".split(" "),jVJ=["start","firstquartile","midpoint","thirdquartile"],R_N=["abandon"],l_={UNKNOWN:-1,qL:0,m0:1,O0:2, V7:3,COMPLETE:4,s0:5,PAUSE:6,hg:7,iW:8,Yn:9,Jg:10,Ky:11,Al:12,v4:13,gf:14,Pr:15,Fg:16,Re:17,LP:18,xV:19,LOADED:20,QB:21,KP:22,Mb:23,Do:27,bv:28,CP:29};var FBI={Mgr:"addEventListener",lI4:"getMaxSize",oD4:"getScreenSize",ED6:"getState",kG5:"getVersion",Dh$:"removeEventListener",ycg:"isViewable"};cIb.prototype.update=function(p){p&&p.document&&(this.V=g3(!1,p,this.isMobileDevice),this.U=g3(!0,p,this.isMobileDevice),RhN(this,p),JI1(this,p))};qc.prototype.cancel=function(){UO().clearTimeout(this.U);this.U=null}; qc.prototype.schedule=function(){var p=this,x=UO(),a=sT().U.U;this.U=x.setTimeout(aP(a,CN(143,function(){p.Z++;p.j.sample()})),VvU())};g.I=nN.prototype;g.I.P6=function(){return!1}; g.I.initialize=function(){return this.isInitialized=!0}; g.I.Sz=function(){return this.U.F5}; g.I.SG=function(){return this.U.Zt}; g.I.fail=function(p,x){if(!this.Zt||(x===void 0?0:x))this.Zt=!0,this.F5=p,this.Y=0,this.U!=this||u$(this)}; g.I.getName=function(){return this.U.V6}; g.I.ZV=function(){return this.U.EE()}; g.I.EE=function(){return{}}; g.I.Je=function(){return this.U.Y}; g.I.HP=function(){var p=Nc();p.U=g3(!0,this.j,p.isMobileDevice)}; g.I.rJ=function(){JI1(Nc(),this.j)}; g.I.So=function(){return this.B.U}; g.I.sample=function(){}; g.I.isActive=function(){return this.U.S}; g.I.XJ=function(p){var x=this.U;this.U=p.Je()>=this.Y?p:this;x!==this.U?(this.S=this.U.S,u$(this)):this.S!==this.U.S&&(this.S=this.U.S,u$(this))}; g.I.uI=function(p){if(p.Z===this.U){var x=!this.B.equals(p,this.T);this.B=p;x&&b$8(this)}}; g.I.S6=function(){return this.T}; g.I.dispose=function(){this.u$=!0}; g.I.b$=function(){return this.u$};g.I=VV.prototype;g.I.observe=function(){return!0}; g.I.unobserve=function(){}; g.I.Av=function(p){this.C=p}; g.I.dispose=function(){if(!this.b$()){var p=this.Z;g.UV(p.C,this);p.T&&this.S6()&&dvz(p);this.unobserve();this.O7=!0}}; g.I.b$=function(){return this.O7}; g.I.ZV=function(){return this.Z.ZV()}; g.I.Je=function(){return this.Z.Je()}; g.I.Sz=function(){return this.Z.Sz()}; g.I.SG=function(){return this.Z.SG()}; g.I.XJ=function(){}; g.I.uI=function(){this.Rh()}; g.I.S6=function(){return this.u$};g.I=Fp.prototype;g.I.Je=function(){return this.U.Je()}; g.I.Sz=function(){return this.U.Sz()}; g.I.SG=function(){return this.U.SG()}; g.I.create=function(p,x,a){var v=null;this.U&&(v=this.Kl(p,x,a),eL(this.U,v));return v}; g.I.TK=function(){return this.Oh()}; g.I.Oh=function(){return!1}; g.I.init=function(p){return this.U.initialize()?(eL(this.U,this),this.B=p,!0):!1}; g.I.XJ=function(p){p.Je()==0&&this.B(p.Sz(),this)}; g.I.uI=function(){}; g.I.S6=function(){return!1}; g.I.dispose=function(){this.C=!0}; g.I.b$=function(){return this.C}; g.I.ZV=function(){return{}};p2.prototype.add=function(p,x,a){++this.j;p=new BFU(p,x,a);this.U.push(new BFU(p.Z,p.U,p.j+this.j/4096));this.Z=!0;return this};jTx.prototype.toString=function(){var p="//pagead2.googlesyndication.com//pagead/gen_204",x=$6(this.U);x.length>0&&(p+="?"+x);return p};g.y.prototype.MC=!1;g.y.prototype.b$=function(){return this.MC}; g.y.prototype.dispose=function(){this.MC||(this.MC=!0,this.PO())}; g.y.prototype[Symbol.dispose]=function(){this.dispose()}; g.y.prototype.addOnDisposeCallback=function(p,x){this.MC?x!==void 0?p.call(x):p():(this.ud||(this.ud=[]),x&&(p=p.bind(x)),this.ud.push(p))}; g.y.prototype.PO=function(){if(this.ud)for(;this.ud.length;)this.ud.shift()()};var U3G=[0,Jpj,LUR,-1];vS.prototype.update=function(p,x,a){p&&(this.U+=x,this.Z+=x,this.B+=x,this.j=Math.max(this.j,this.B));if(a===void 0?!p:a)this.B=0};var DvT=[1,.75,.5,.3,0];cS.prototype.update=function(p,x,a,v,c,J){J=J===void 0?!0:J;x=c?Math.min(p,x):x;for(c=0;c0&&x>=R;R=!(p>0&&p>=R)||a;this.U[c].update(J&&d,v,!J||R)}};re.prototype.update=function(p,x,a,v){this.V=this.V!=-1?Math.min(this.V,x.D3):x.D3;this.pI=Math.max(this.pI,x.D3);this.O7=this.O7!=-1?Math.min(this.O7,x.vU):x.vU;this.F5=Math.max(this.F5,x.vU);this.T4.update(x.vU,a.vU,x.U,p,v);this.hG+=p;x.D3===0&&(this.V6+=p);this.Z.update(x.D3,a.D3,x.U,p,v);a=v||a.MU!=x.MU?a.isVisible()&&x.isVisible():a.isVisible();x=!x.isVisible()||x.U;this.gr.update(a,p,x)}; re.prototype.nZ=function(){return this.gr.j>=this.HO};if(A1&&A1.URL){var HZO=A1.URL,ToO;if(ToO=!!HZO){var QJV;a:{if(HZO){var m3V=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var R3=m3V.exec(decodeURIComponent(HZO));if(R3){QJV=R3[1]&&R3[1].length>1?R3[1].substring(1):"true";break a}}catch(p){}}QJV=""}ToO=QJV.length>0}QV.gt=!ToO};var Szw=new Ea(0,0,0,0);var SCI=new Ea(0,0,0,0);g.M(WS,g.y);g.I=WS.prototype; g.I.PO=function(){if(this.ZM.U){if(this.f$.uw){var p=this.ZM.U;typeof p.removeEventListener==="function"&&p.removeEventListener("mouseover",this.f$.uw,vq());this.f$.uw=null}this.f$.Fb&&(p=this.ZM.U,typeof p.removeEventListener==="function"&&p.removeEventListener("mouseout",this.f$.Fb,vq()),this.f$.Fb=null)}this.v_&&this.v_.dispose();this.qg&&this.qg.dispose();delete this.mL;delete this.jb;delete this.m7;delete this.ZM.m9;delete this.ZM.U;delete this.f$;delete this.v_;delete this.qg;delete this.Oz; g.y.prototype.PO.call(this)}; g.I.pn=function(){return this.qg?this.qg.U:this.position}; g.I.xF=function(p){sT().xF(p)}; g.I.S6=function(){return!1}; g.I.YY=function(){return new re}; g.I.DI=function(){return this.mL}; g.I.UW=function(p){return i4I(this,p,1E4)}; g.I.Yg=function(p,x,a,v,c,J,R){this.bI||(this.My&&(p=this.Hd(p,a,c,R),v=v&&this.I5.D3>=(this.MU()?.3:.5),this.q4(J,p,v),this.TX=x,p.D3>0&&-1===this.jP&&(this.jP=x),this.IS==-1&&this.nZ()&&(this.IS=x),this.dc==-2&&(this.dc=L2(this.pn())?p.D3:-1),this.I5=p),this.jb(this))}; g.I.q4=function(p,x,a){this.DI().update(p,x,this.I5,a)}; g.I.Qt=function(){return new VX}; g.I.Hd=function(p,x,a,v){a=this.Qt();a.U=x;x=UO().Z;x=JI(A1)===0?-1:x.isVisible()?0:1;a.Z=x;a.D3=this.Jk(p);a.MU=this.MU();a.vU=v;return a}; g.I.Jk=function(p){return this.opacity===0&&QM(this.Oz,"opac")===1?0:p}; g.I.MU=function(){return!1}; g.I.H1=function(){return this.ql||this.Ml}; g.I.ze=function(){i$()}; g.I.Sp=function(){i$()}; g.I.Qe=function(){return 0}; g.I.nZ=function(){return this.mL.nZ()}; g.I.iz=function(){var p=this.My;p=(this.hasCompleted||this.b$())&&!p;var x=sT().Z!==2||this.vLd;return this.bI||x&&p?2:this.nZ()?4:3}; g.I.SN=function(){return 0};g.DB.prototype.next=function(){return g.Kg}; g.Kg={done:!0,value:void 0};g.DB.prototype.rU=function(){return this};g.M(y7T,VX);var dW=Z4f([void 0,1,2,3,4,8,16]),bK=Z4f([void 0,4,8,16]),fMX={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Q7("p0",bK),p1:Q7("p1",bK),p2:Q7("p2",bK),p3:Q7("p3",bK),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Tv("mtos1",[0,2,4],!1,bK),mtos2:Tv("mtos2",[0,2,4],!1,bK),mtos3:Tv("mtos3",[0,2,4],!1,bK),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Q7("a0",bK),a1:Q7("a1",bK),a2:Q7("a2",bK),a3:Q7("a3",bK),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:Q7("c0",bK),c1:Q7("c1",bK),c2:Q7("c2",bK),c3:Q7("c3",bK),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Q7("qmtos",dW),qnc:Q7("qnc",dW),qmv:Q7("qmv",dW),qnv:Q7("qnv",dW), 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:Q7("ss0",bK),ss1:Q7("ss1",bK),ss2:Q7("ss2",bK),ss3:Q7("ss3",bK),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"},CuV=Object.assign({},fMX,{avid:iP("audio"),avas:"avas",vs:"vs"}),XDE={atos:"atos",avt:Tv("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(p,x){return function(a){return a[p]===void 0&&x!==void 0?x:a[p]}}("ss",0), t:"t"};C2.prototype.getValue=function(){return this.Z}; C2.prototype.update=function(p,x){p>=32||(this.U&1<=.5;GJ(x.volume)&&(this.B=this.B!=-1?Math.min(this.B,x.volume):x.volume,this.S=Math.max(this.S,x.volume));J&&(this.u$+=p,this.T+=c?p:0);this.U.update(x.D3,a.D3,x.U,p,v,c);this.j.update(!0,p);this.C.update(c,p);this.Zt.update(a.fullscreen,p);this.oa.update(c&&!J,p);p=Math.floor(x.mediaTime/1E3);this.qT.update(p,x.isVisible());this.Ra.update(p,x.D3>=1);this.LI.update(p, HS(x))}};qC_.prototype.Z=function(p){this.j||(this.U(p)?(p=v28(this.T,this.B,p),this.C|=p,p=p==0):p=!1,this.j=p)};g.M(tg,qC_);tg.prototype.U=function(){return!0}; tg.prototype.S=function(){return!1}; tg.prototype.getId=function(){var p=this,x=BD(PS,function(a){return a==p.B}); return l_[x].toString()}; tg.prototype.toString=function(){var p="";this.S()&&(p+="c");this.j&&(p+="s");this.C>0&&(p+=":"+this.C);return this.getId()+p};g.M(zv,tg);zv.prototype.Z=function(p,x){x=x===void 0?null:x;x!=null&&this.V.push(x);tg.prototype.Z.call(this,p)};g.M(we,ngg);we.prototype.Z=function(){return null}; we.prototype.j=function(){return[]};g.M(EM,VV);g.I=EM.prototype;g.I.r9=function(){if(this.element){var p=this.element,x=this.Z.U.j;try{try{var a=aSN(p.getBoundingClientRect())}catch(r){a=new Ea(0,0,0,0)}var v=a.right-a.left,c=a.bottom-a.top,J=AON(p,x),R=J.x,d=J.y;var b=new Ea(Math.round(d),Math.round(R+v),Math.round(d+c),Math.round(R))}catch(r){b=Szw.clone()}this.j=b;this.U=rIJ(this,this.j)}}; g.I.VS=function(){this.S=this.Z.B.U}; g.I.JM=function(p){var x=QM(this.Oz,"od")==1;return mxb(p,this.S,this.element,x)}; g.I.n4=function(){this.timestamp=i$()}; g.I.Rh=function(){this.n4();this.r9();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var p=this.element;var x=new g.Ps(p.videoWidth,p.videoHeight);p=this.U;var a=yU(p),v=p.getHeight(),c=x.width;x=x.height;c<=0||x<=0||a<=0||v<=0||(c/=x,x=a/v,p=p.clone(),c>x?(a/=c,v=(v-a)/2,v>0&&(v=p.top+v,p.top=Math.round(v),p.bottom=Math.round(v+a))):(v*=c,a=Math.round((a-v)/2),a>0&&(a=p.left+a,p.left=Math.round(a),p.right=Math.round(a+v))));this.U=p}this.VS(); p=this.U;a=this.S;p=p.left<=a.right&&a.left<=p.right&&p.top<=a.bottom&&a.top<=p.bottom?new Ea(Math.max(p.top,a.top),Math.min(p.right,a.right),Math.min(p.bottom,a.bottom),Math.max(p.left,a.left)):new Ea(0,0,0,0);a=p.top>=p.bottom||p.left>=p.right?new Ea(0,0,0,0):p;p=this.Z.B;x=c=v=0;if((this.U.bottom-this.U.top)*(this.U.right-this.U.left)>0)if(this.JM(a))a=new Ea(0,0,0,0);else{v=Nc().B;x=new Ea(0,v.height,v.width,0);var J;v=M7(a,(J=this.C)!=null?J:this.U);c=M7(a,Nc().U);x=M7(a,x)}J=a.top>=a.bottom|| a.left>=a.right?new Ea(0,0,0,0):Zp(a,-this.U.left,-this.U.top);PB()||(c=v=0);this.T=new yV(p,this.element,this.U,J,v,c,this.timestamp,x)}; g.I.getName=function(){return this.Z.getName()};var iZZ=new Ea(0,0,0,0);g.M(y7,EM);g.I=y7.prototype;g.I.observe=function(){this.B();return!0}; g.I.uI=function(){EM.prototype.Rh.call(this)}; g.I.n4=function(){}; g.I.r9=function(){}; g.I.Rh=function(){this.B();EM.prototype.Rh.call(this)}; g.I.XJ=function(p){p=p.isActive();p!==this.Y&&(p?this.B():(Nc().U=new Ea(0,0,0,0),this.U=new Ea(0,0,0,0),this.S=new Ea(0,0,0,0),this.timestamp=-1));this.Y=p};var rW={},vDJ=(rW.firstquartile=0,rW.midpoint=1,rW.thirdquartile=2,rW.complete=3,rW);g.M(ZB,WS);g.I=ZB.prototype;g.I.S6=function(){return!0}; g.I.Qw=function(){return this.DM==2}; g.I.UW=function(p){return i4I(this,p,Math.max(1E4,this.j/3))}; g.I.Yg=function(p,x,a,v,c,J,R){var d=this,b=this.V(this)||{};g.IJ(b,c);this.j=b.duration||this.j;this.T=b.isVpaid||this.T;this.V6=b.isYouTube||this.V6;UO();this.T4=!1;c=u$_(this,x);eLg(this)===1&&(J=c);WS.prototype.Yg.call(this,p,x,a,v,b,J,R);this.Xn&&this.Xn.j&&g.ej(this.S,function(r){r.Z(d)})}; g.I.q4=function(p,x,a){WS.prototype.q4.call(this,p,x,a);N7(this).update(p,x,this.I5,a);this.HO=HS(this.I5)&&HS(x);this.F5==-1&&this.Ra&&(this.F5=this.DI().j.U);this.NG.j=0;p=this.nZ();x.isVisible()&&f2(this.NG,"vs");p&&f2(this.NG,"vw");GJ(x.volume)&&f2(this.NG,"am");HS(x)?f2(this.NG,"a"):f2(this.NG,"mut");this.N0&&f2(this.NG,"f");x.Z!=-1&&(f2(this.NG,"bm"),x.Z==1&&(f2(this.NG,"b"),HS(x)&&f2(this.NG,"umutb")));HS(x)&&x.isVisible()&&f2(this.NG,"avs");this.HO&&p&&f2(this.NG,"avw");x.D3>0&&f2(this.NG, "pv");Ag(this,this.DI().j.U,!0)&&f2(this.NG,"gdr");de(this.DI().Z,1)>=2E3&&f2(this.NG,"pmx");this.T4&&f2(this.NG,"tvoff")}; g.I.YY=function(){return new XB}; g.I.DI=function(){return this.mL}; g.I.Qt=function(){return new y7T}; g.I.Hd=function(p,x,a,v){p=WS.prototype.Hd.call(this,p,x,a,v===void 0?-1:v);p.fullscreen=this.N0;p.paused=this.Qw();p.volume=a.volume;GJ(p.volume)||(this.US++,x=this.I5,GJ(x.volume)&&(p.volume=x.volume));a=a.currentTime;p.mediaTime=a!==void 0&&a>=0?a:-1;return p}; g.I.Jk=function(p){return Nc(),this.N0?1:WS.prototype.Jk.call(this,p)}; g.I.Qe=function(){return 1}; g.I.getDuration=function(){return this.j}; g.I.iz=function(){return this.bI?2:Fef(this)?5:this.nZ()?4:3}; g.I.SN=function(){return this.oa?this.DI().C.j>=2E3?4:3:2}; g.I.Av=function(p){this.qg&&this.qg.Av(p)};var orR=g.BQ();Yb1.prototype.reset=function(){this.U=[];this.Z=[]}; var V7=kG(Yb1);g.M(xX,Fp);g.I=xX.prototype;g.I.getName=function(){return(this.Z?this.Z:this.U).getName()}; g.I.ZV=function(){return(this.Z?this.Z:this.U).ZV()}; g.I.Je=function(){return(this.Z?this.Z:this.U).Je()}; g.I.init=function(p){var x=!1;(0,g.ej)(this.j,function(a){a.initialize()&&(x=!0)}); x&&(this.B=p,eL(this.U,this));return x}; g.I.dispose=function(){(0,g.ej)(this.j,function(p){p.dispose()}); Fp.prototype.dispose.call(this)}; g.I.TK=function(){return OT(this.j,function(p){return p.P6()})}; g.I.Oh=function(){return OT(this.j,function(p){return p.P6()})}; g.I.Kl=function(p,x,a){return new EM(p,this.U,x,a)}; g.I.uI=function(p){this.Z=p.Z};var HEb={threshold:[0,.3,.5,.75,1]};g.M($X,EM);g.I=$X.prototype;g.I.observe=function(){var p=this;this.pI||(this.pI=i$());if(elb(298,function(){return Tm_(p)}))return!0; this.Z.fail("msf");return!1}; g.I.unobserve=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.V&&(this.V.disconnect(),this.V=null)}catch(p){}}; g.I.Rh=function(){var p=ai(this);p.length>0&&vV(this,p);EM.prototype.Rh.call(this)}; g.I.r9=function(){}; g.I.JM=function(){return!1}; g.I.VS=function(){}; g.I.ZV=function(){var p={};return Object.assign(this.Z.ZV(),(p.niot_obs=this.pI,p.niot_cbk=this.Zt,p))}; g.I.getName=function(){return"nio"};g.M(cV,Fp);cV.prototype.getName=function(){return"nio"}; cV.prototype.Oh=function(){return!Nc().Z&&this.U.U.j.IntersectionObserver!=null}; cV.prototype.Kl=function(p,x,a){return new $X(p,this.U,x,a)};g.M(JF,nN);JF.prototype.So=function(){return Nc().U}; JF.prototype.P6=function(){var p=mCz();this.Y!==p&&(this.U!=this&&p>this.U.Y&&(this.U=this,u$(this)),this.Y=p);return p==2};Ri.prototype.sample=function(){b_(this,FB(),!1)}; Ri.prototype.B=function(){var p=PB(),x=i$();p?(t1||(zJ=x,g.ej(V7.U,function(a){var v=a.DI();v.tG=oZ(v,x,a.DM!=1)})),t1=!0):(this.V=iE8(this,x),t1=!1,cjf=x,g.ej(V7.U,function(a){a.My&&(a.DI().Y=x)})); b_(this,FB(),!p)}; var K8=kG(Ri);var tTQ=null,Et="",wc=!1;var EDb=wMx().uY,BV=wMx().Sy;var ZEJ={Nyt:"visible",uRr:"audible",O7t:"time",BKa:"timetype"},GMU={visible:function(p){return/^(100|[0-9]{1,2})$/.test(p)}, audible:function(p){return p=="0"||p=="1"}, timetype:function(p){return p=="mtos"||p=="tos"}, time:function(p){return/^(100|[0-9]{1,2})%$/.test(p)||/^([0-9])+ms$/.test(p)}}; gDf.prototype.setTime=function(p,x,a){x=="ms"?(this.j=p,this.B=-1):(this.j=-1,this.B=p);this.C=a===void 0?"tos":a;return this};g.M(hF,tg);hF.prototype.getId=function(){return this.V}; hF.prototype.S=function(){return!0}; hF.prototype.U=function(p){var x=p.DI(),a=p.getDuration();return OT(this.Y,function(v){if(v.U!=void 0)var c=NmU(v,x);else b:{switch(v.C){case "mtos":c=v.Z?x.C.j:x.j.U;break b;case "tos":c=v.Z?x.C.U:x.j.U;break b}c=0}c==0?v=!1:(v=v.j!=-1?v.j:a!==void 0&&a>0?v.B*a:-1,v=v!=-1&&c>=v);return v})};g.M(js,O48);js.prototype.U=function(p){var x=new Ge1;x.U=SU(p,fMX);x.Z=SU(p,XDE);return x};g.M(Ii,tg);Ii.prototype.U=function(p){return Fef(p)};g.M(M$,ngg);g.M(WV,tg);WV.prototype.U=function(p){return p.DI().nZ()};g.M(kX,zv);kX.prototype.U=function(p){var x=g.kt(this.V,QM(sT().Oz,"ovms"));return!p.bI&&(p.DM!=0||x)};g.M(Df,M$);Df.prototype.Z=function(){return new kX(this.U)}; Df.prototype.j=function(){return[new WV("viewable_impression",this.U),new Ii(this.U)]};g.M(Ut,y7);Ut.prototype.B=function(){var p=g.$t("ima.admob.getViewability"),x=QM(this.Oz,"queryid");typeof p==="function"&&x&&p(x)}; Ut.prototype.getName=function(){return"gsv"};g.M(HV,Fp);HV.prototype.getName=function(){return"gsv"}; HV.prototype.Oh=function(){var p=Nc();sT();return p.Z&&!1}; HV.prototype.Kl=function(p,x,a){return new Ut(this.U,x,a)};g.M(TB,y7);TB.prototype.B=function(){var p=this,x=g.$t("ima.bridge.getNativeViewability"),a=QM(this.Oz,"queryid");typeof x==="function"&&a&&x(a,function(v){g.lu(v)&&p.V++;var c=v.opt_nativeViewVisibleBounds||{},J=v.opt_nativeViewHidden;p.U=sT1(v.opt_nativeViewBounds||{});var R=p.Z.B;R.U=J?iZZ.clone():sT1(c);p.timestamp=v.opt_nativeTime||-1;Nc().U=R.U;v=v.opt_nativeVolume;v!==void 0&&(R.volume=v)})}; TB.prototype.getName=function(){return"nis"};g.M(Qa,Fp);Qa.prototype.getName=function(){return"nis"}; Qa.prototype.Oh=function(){var p=Nc();sT();return p.Z&&!1}; Qa.prototype.Kl=function(p,x,a){return new TB(this.U,x,a)};g.M(mY,nN);g.I=mY.prototype;g.I.P6=function(){return this.Z.mY!=null}; g.I.EE=function(){var p={};this.qT&&(p.mraid=this.qT);this.O7&&(p.mlc=1);p.mtop=this.Z.p57;this.V&&(p.mse=this.V);this.hG&&(p.msc=1);p.mcp=this.Z.compatibility;return p}; g.I.Cj=function(p){var x=g.g_.apply(1,arguments);try{return this.Z.mY[p].apply(this.Z.mY,x)}catch(a){Xp(538,a,.01,function(v){v.method=p})}}; g.I.initialize=function(){var p=this;if(this.isInitialized)return!this.SG();this.isInitialized=!0;if(this.Z.compatibility===2)return this.V="ng",this.fail("w"),!1;if(this.Z.compatibility===1)return this.V="mm",this.fail("w"),!1;Nc().Y=!0;this.j.document.readyState&&this.j.document.readyState=="complete"?nDb(this):lY(this.j,"load",function(){UO().setTimeout(CN(292,function(){return nDb(p)}),100)},292); return!0}; g.I.HP=function(){var p=Nc(),x=pJ1(this,"getMaxSize");p.U=new Ea(0,x.width,x.height,0)}; g.I.rJ=function(){Nc().B=pJ1(this,"getScreenSize")}; g.I.dispose=function(){uu1(this);nN.prototype.dispose.call(this)};var Hw1=new function(p,x){this.key=p;this.defaultValue=x===void 0?!1:x;this.valueType="boolean"}("45378663");g.I=f8.prototype;g.I.T0=function(p){k6(p,!1);MTf(p)}; g.I.Lk=function(){}; g.I.UQ=function(p,x,a,v){var c=this;p=new ZB(XU,p,a?x:-1,7,this.bx(),this.UE());p.ET=v;wo_(p.Oz);Ti(p.Oz,"queryid",p.ET);p.xF("");zLo(p,function(){return c.Mk.apply(c,g.lf(g.g_.apply(0,arguments)))},function(){return c.fV.apply(c,g.lf(g.g_.apply(0,arguments)))}); (v=kG(p8).U)&&X3x(p,v);this.j&&(p.Av(this.j),this.j=null);p.ZM.m9&&kG(SbJ);return p}; g.I.XJ=function(p){switch(p.Je()){case 0:if(p=kG(p8).U)p=p.U,g.UV(p.C,this),p.T&&this.S6()&&dvz(p);XH();break;case 2:dc()}}; g.I.uI=function(){}; g.I.S6=function(){return!1}; g.I.fV=function(p,x){p.bI=!0;switch(p.Qe()){case 1:cV_(p,x);break;case 2:this.N2(p)}}; g.I.ZE=function(p){var x=p.V(p);x&&(x=x.volume,p.oa=GJ(x)&&x>0);$CT(p,0);return q7(p,"start",PB())}; g.I.qx=function(p,x,a){b_(K8,[p],!PB());return this.GX(p,x,a)}; g.I.GX=function(p,x,a){return q7(p,a,PB())}; g.I.o6=function(p){return Ot(p,"firstquartile",1)}; g.I.kx=function(p){p.Ra=!0;return Ot(p,"midpoint",2)}; g.I.pS=function(p){return Ot(p,"thirdquartile",3)}; g.I.TE=function(p){var x=Ot(p,"complete",4);Gv(p);return x}; g.I.yL=function(p){p.DM=3;return q7(p,"error",PB())}; g.I.jn=function(p,x,a){x=PB();if(p.Qw()&&!x){var v=p.DI(),c=i$();v.Y=c}b_(K8,[p],!x);p.Qw()&&(p.DM=1);return q7(p,a,x)}; g.I.Uc=function(p,x){x=this.qx(p,x||{},"skip");Gv(p);return x}; g.I.EA=function(p,x){k6(p,!0);return this.qx(p,x||{},"fullscreen")}; g.I.l8=function(p,x){k6(p,!1);return this.qx(p,x||{},"exitfullscreen")}; g.I.DJ=function(p,x,a){x=p.DI();var v=i$();x.tG=oZ(x,v,p.DM!=1);b_(K8,[p],!PB());p.DM==1&&(p.DM=2);return q7(p,a,PB())}; g.I.zL=function(p){b_(K8,[p],!PB());return p.Z()}; g.I.PD=function(p){b_(K8,[p],!PB());this.yJ(p);Gv(p);return p.Z()}; g.I.Mk=function(){}; g.I.N2=function(){}; g.I.yJ=function(){}; g.I.yk=function(){}; g.I.qJ=function(){}; g.I.UE=function(){this.U||(this.U=this.qJ());return this.U==null?new we:new Df(this.U)}; g.I.bx=function(){return new js};g.M(N$,tg);N$.prototype.U=function(p){return p.SN()==4};g.M(AF,zv);AF.prototype.U=function(p){p=p.SN();return p==3||p==4};g.M(PV,M$);PV.prototype.Z=function(){return new AF(this.U)}; PV.prototype.j=function(){return[new N$(this.U)]};g.M(q$,O48);q$.prototype.U=function(p){p&&(p.e===28&&(p=Object.assign({},p,{avas:3})),p.vs===4||p.vs===5)&&(p=Object.assign({},p,{vs:3}));var x=new Ge1;x.U=SU(p,CuV);x.Z=SU(p,XDE);return x};diI.prototype.Z=function(){return g.$t(this.U)};g.M(n8,f8);g.I=n8.prototype;g.I.Lk=function(p,x){var a=this,v=kG(p8);if(v.U!=null)switch(v.U.getName()){case "nis":var c=lTb(this,p,x);break;case "gsv":c=BpU(this,p,x);break;case "exc":c=LuJ(this,p)}c||(x.opt_overlayAdElement?c=void 0:x.opt_adElement&&(c=RZg(this,p,x.opt_adElement,x.opt_osdId)));c&&c.Qe()==1&&(c.V==g.ot&&(c.V=function(J){return a.yk(J)}),rVQ(this,c,x)); return c}; g.I.yk=function(p){p.Z=0;p.u$=0;if(p.B=="h"||p.B=="n"){sT();p.LI&&(sT(),Zf(this)!="h"&&Zf(this));var x=g.$t("ima.common.getVideoMetadata");if(typeof x==="function")try{var a=x(p.ET)}catch(c){p.Z|=4}else p.Z|=2}else if(p.B=="b")if(x=g.$t("ytads.bulleit.getVideoMetadata"),typeof x==="function")try{a=x(p.ET)}catch(c){p.Z|=4}else p.Z|=2;else if(p.B=="ml")if(x=g.$t("ima.common.getVideoMetadata"),typeof x==="function")try{a=x(p.ET)}catch(c){p.Z|=4}else p.Z|=2;else p.Z|=1;p.Z||(a===void 0?p.Z|=8:a===null? p.Z|=16:g.lu(a)?p.Z|=32:a.errorCode!=null&&(p.u$=a.errorCode,p.Z|=64));a==null&&(a={});x=a;p.Y=0;for(var v in D3X)x[v]==null&&(p.Y|=D3X[v]);Kub(x,"currentTime");Kub(x,"duration");GJ(a.volume)&&GJ()&&(a.volume*=NaN);return a}; g.I.qJ=function(){sT();Zf(this)!="h"&&Zf(this);var p=YpQ(this);return p!=null?new diI(p):null}; g.I.N2=function(p){!p.U&&p.bI&&GB(this,p,"overlay_unmeasurable_impression")&&(p.U=!0)}; g.I.yJ=function(p){p.Xf&&(p.nZ()?GB(this,p,"overlay_viewable_end_of_session_impression"):GB(this,p,"overlay_unviewable_impression"),p.Xf=!1)}; g.I.Mk=function(){}; g.I.UQ=function(p,x,a,v){if(TIg()){var c=QM(sT().Oz,"mm"),J={};(c=(J[vB.S5]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",J[vB.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",J)[c])&&MPQ(this,c);this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Xp(1044,Error())}p=f8.prototype.UQ.call(this,p,x,a,v);this.C&&(x=this.S,p.C==null&&(p.C=new w3z),x.U[p.ET]=p.C,p.C.C=orR);return p}; g.I.T0=function(p){p&&p.Qe()==1&&this.C&&delete this.S.U[p.ET];return f8.prototype.T0.call(this,p)}; g.I.UE=function(){this.U||(this.U=this.qJ());return this.U==null?new we:this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new PV(this.U):new Df(this.U)}; g.I.bx=function(){return this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new q$:new js}; g.I.Av=function(p,x,a,v,c){x=new Ea(a,x+v,a+c,x);(p=uY(V7,p))?p.Av(x):this.j=x}; var tgO=fN(193,kA_,void 0,JVQ);g.pG("Goog_AdSense_Lidar_sendVastEvent",tgO);var zeZ=CN(194,function(p,x){x=x===void 0?{}:x;p=ITU(kG(n8),p,x);return Wuo(p)}); g.pG("Goog_AdSense_Lidar_getViewability",zeZ);var wDE=fN(195,function(){return Yzz()}); g.pG("Goog_AdSense_Lidar_getUrlSignalsArray",wDE);var ErO=CN(196,function(){return JSON.stringify(Yzz())}); g.pG("Goog_AdSense_Lidar_getUrlSignalsList",ErO);var HMU=g.Y1(["//ep2.adtrafficquality.google/sodar/",""]),Tp1=g.Y1(["//tpc.googlesyndication.com/sodar/",""]);g.M(Va,Error);g.M(xH,g.y);xH.prototype.jH=function(){return this.wpc.f()}; xH.prototype.ix=function(p){this.wpc.c(p)}; xH.prototype.Nt=function(p){return this.wpc.m(fTU(p))}; xH.prototype.ZT=function(p){return this.wpc.mws(fTU(p))}; g.M(FH,g.y);FH.prototype.snapshot=function(p){return this.yV.s(Object.assign({},p.WG&&{c:p.WG},p.AA&&{s:p.AA},p.Np!==void 0&&{p:p.Np}))}; FH.prototype.R3=function(p){this.yV.e(p)}; FH.prototype.g0=function(){return this.yV.l()};var zZb;g.M(a2,g.y);a2.prototype.share=function(){if(this.b$())throw Error("E:AD");this.Z++;return this}; a2.prototype.dispose=function(){--this.Z||g.y.prototype.dispose.call(this)}; zZb=Symbol.dispose;wJf.prototype.YH=function(p,x){this.U.YH("/client_streamz/bg/frs",p,x)}; E2I.prototype.YH=function(p,x,a,v,c,J){this.U.YH("/client_streamz/bg/wrl",p,x,a,v,c,J)}; yVU.prototype.Rv=function(p,x){this.U.HM("/client_streamz/bg/ec",p,x)}; g2b.prototype.YH=function(p,x,a){this.U.YH("/client_streamz/bg/el",p,x,a)}; ZMb.prototype.Rv=function(p,x){this.U.HM("/client_streamz/bg/cec",p,x)}; GAx.prototype.Rv=function(p,x){this.U.HM("/client_streamz/bg/po/csc",p,x)}; OMb.prototype.Rv=function(p,x){this.U.HM("/client_streamz/bg/po/ctav",p,x)}; Npb.prototype.Rv=function(p,x){this.U.HM("/client_streamz/bg/po/cwsc",p,x)};g.M(AV1,DT);g.M(cL,DT);var BL=[1,2,3];var ypy=[0,BL,IMt,rpG,hev];var grv=[0,$S,[0,sJO,Jpj]];g.M(JB,DT);var r8=[1,2,3];var ZZR=[0,r8,KUv,cpG,sG,grv];g.M(R2,DT);var Giw=[0,$S,ypy,ZZR];var OZX=[0,xS];g.M(Kv,DT);var Nov=[0,xS,-1,YzE];var ApX=[0,xS,-1,d3X,YzE];g.M(d8,DT);var BdU=[1,2,3];var Puv=[0,BdU,sG,Nov,sG,ApX,sG,OZX];g.M(bR,DT);bR.prototype.w$=function(){var p=Jj(this,3,me,3,!0);qv(p);return p[void 0]};bR.prototype.j=WBb([0,xS,Puv,jJQ,$S,Giw,BoG,lMj]);g.M(qp8,DT);g.I=lR.prototype;g.I.isEnabled=function(){if(!g.Fg.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{oC:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.I.set=function(p,x,a){var v=!1;if(typeof a==="object"){var c=a.Yl7;v=a.secure||!1;var J=a.domain||void 0;var R=a.path||void 0;var d=a.oC}if(/[;=\s]/.test(p))throw Error('Invalid cookie name "'+p+'"');if(/[;\r\n]/.test(x))throw Error('Invalid cookie value "'+x+'"');d===void 0&&(d=-1);a=J?";domain="+J:"";R=R?";path="+R:"";v=v?";secure":"";d=d<0?"":d==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+d*1E3)).toUTCString();this.U.cookie=p+"="+x+a+R+d+v+(c!=null?";samesite="+ c:"")}; g.I.get=function(p,x){for(var a=p+"=",v=(this.U.cookie||"").split(";"),c=0,J;c=0;x--)this.remove(p[x])}; var S$=new lR(typeof document=="undefined"?null:document);YH.prototype.compress=function(p){var x,a,v,c;return g.t(function(J){switch(J.Z){case 1:return x=new CompressionStream("gzip"),a=(new Response(x.readable)).arrayBuffer(),v=x.writable.getWriter(),g.C(J,v.write((new TextEncoder).encode(p)),2);case 2:return g.C(J,v.close(),3);case 3:return c=Uint8Array,g.C(J,a,4);case 4:return J.return(new c(J.U))}})}; YH.prototype.isSupported=function(p){return p<1024?!1:typeof CompressionStream!=="undefined"};g.M(hB,DT);ju.prototype.setInterval=function(p){this.intervalMs=p;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; ju.prototype.start=function(){var p=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){p.tick()},this.intervalMs),this.Z=this.U())}; ju.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; ju.prototype.tick=function(){var p=this;if(this.enabled){var x=Math.max(this.U()-this.Z,0);x0?a:void 0));a=$D(a,4,L4(c>0?c:void 0));a=$D(a,5,L4(J>0?J:void 0));c=a.l$;J=c[ZS]|0;a=Pq(a,J)?a:qx(a,c,J)?n4(a,c):new a.constructor(P3(c,J,!0));TM(R,WL,10,a)}R=this.U.clone();a=Date.now().toString();R=$D(R,4,UC(a));p=QQ(R,Su,3,p.slice());v&&(R=new I2,v=$D(R,13,L4(v)),R=new Mw, v=TM(R,I2,2,v),R=new ml,v=TM(R,Mw,1,v),v=Eb(v,2,9),TM(p,ml,18,v));x&&tj(p,14,x);return p};g.o2.prototype.Z=0;g.o2.prototype.reset=function(){this.U=this.j=this.B;this.Z=0}; g.o2.prototype.getValue=function(){return this.j};g.M(pN,DT);var qzO=xx(pN);g.M(jtz,DT);var B7;B7=new Ip8;g.M(Ef,g.y);g.I=Ef.prototype;g.I.PO=function(){w8(this);this.Z.stop();this.qT.stop();g.y.prototype.PO.call(this)}; g.I.dispatch=function(p){if(p instanceof Su)this.log(p);else try{var x=new Su,a=p.E6();var v=zM(x,8,a);this.log(v)}catch(c){yN(this,4,1)}}; g.I.log=function(p){yN(this,2,1);if(this.hG){p=p.clone();var x=this.gr++;p=tj(p,21,x);this.componentId&&zM(p,26,this.componentId);x=p;var a=pE(x,1);var v=v===void 0?!1:v;var c=typeof a;v=a==null?a:c==="bigint"?String(W3(64,a)):l3(a)?c==="string"?Mx(a):v?kg(a):DY(a):void 0;v==null&&(v=Date.now(),v=Number.isFinite(v)?v.toString():"0",$D(x,1,UC(v)));v=pE(x,15);v!=null&&(typeof v==="bigint"?ZY(v)?v=Number(v):(v=W3(64,v),v=ZY(v)?Number(v):String(v)):v=l3(v)?typeof v==="number"?DY(v):Mx(v):void 0);v!=null|| tj(x,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(v=this.experimentIds.clone(),TM(x,hB,16,v));yN(this,1,1);x=this.U.length-1E3+1;x>0&&(this.U.splice(0,x),this.B+=x,yN(this,3,x));this.U.push(p);this.ip||this.Z.enabled||this.Z.start()}}; g.I.flush=function(p,x){var a=this;if(this.U.length===0)p&&p();else if(this.F5&&this.Zt)this.j.Z=3,jP8(this);else{var v=Date.now();if(this.tG>v&&this.u$0&&(a.u$=Date.now(),a.tG=a.u$+L);L=lZ(i3);var D;gF&&L&&((D=Y.l$[L])==null?void 0:D[175237375])!=null&&EO(yOQ,3);a:{var H=H===void 0?!1:H;if(lZ(gtX)&&lZ(i3)&&void 0===gtX){D=Y.l$;L=D[i3];if(!L)break a;if(L=L.z5)try{L(D,175237375,PZO);break a}catch(f){T6(f)}}H&&(H=Y.l$, (D=lZ(i3))&&D in H&&(H=H[D])&&delete H[175237375])}H=B7.U?B7.Z(Y,B7.U,175237375,B7.j):B7.Z(Y,175237375,null,B7.j);if(H=H===null?void 0:H)H=ST(H,1,-1),H!==-1&&(a.C=new g.o2(H<1?1:H,3E5,.1),a.Z.setInterval(a.C.getValue()))}}p&&p();a.S=0},B=function(L,Y){var h=HM(J,Su,3); var D=Number(tcT(J,14));g.tB(a.C);a.Z.setInterval(a.C.getValue());L===401&&R&&(a.V6=R);D&&(a.B+=D);Y===void 0&&(Y=a.isRetryable(L));Y&&(a.U=h.concat(a.U),a.ip||a.Z.enabled||a.Z.start());yN(a,7,1);x&&x("net-send-failed",L);++a.S},l=function(){a.network&&a.network.send(b,r,B)}; d?d.then(function(L){yN(a,5,c);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=L;b.PY=2;l()},function(){yN(a,6,c); l()}):l()}}}}; g.I.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};g8.prototype.send=function(p,x,a){var v=this,c,J,R,d,b,r,B,l,L,Y;return g.t(function(h){switch(h.Z){case 1:return J=(c=v.GN?new AbortController:void 0)?setTimeout(function(){c.abort()},p.timeoutMillis):void 0,g.DJ(h,2,3),R=Object.assign({},{method:p.requestType, headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&c?c.signal:null}),g.C(h,fetch(p.url,R),5);case 5:d=h.U;if(d.status!==200){(b=a)==null||b(d.status);h.Ia(3);break}if((r=x)==null){h.Ia(7);break}return g.C(h,d.text(),8);case 8:r(h.U);case 7:case 3:g.o8(h);clearTimeout(J);g.z1(h,0);break;case 2:B=g.SI(h);switch((l=B)==null?void 0:l.name){case "AbortError":(L=a)==null||L(408);break;default:(Y=a)==null||Y(400)}h.Ia(3)}})}; g8.prototype.aD=function(){return 4};g.M(Zs,g.y);Zs.prototype.mP=function(){this.C=!0;return this}; Zs.prototype.build=function(){this.network||(this.network=new g8);var p=new Ef({logSource:this.logSource,Of:this.Of?this.Of:vxf,sessionIndex:this.sessionIndex,dGI:this.e_,qs:this.B,ip:!1,mP:this.C,h1:this.h1,network:this.network});g.Z(this,p);if(this.Z){var x=this.Z,a=iR(p.j);zM(a,7,x)}p.V=new YH;this.componentId&&(p.componentId=this.componentId);this.q9&&(p.q9=this.q9);this.pageId&&(p.pageId=this.pageId);this.U&&((a=this.U)?(p.experimentIds||(p.experimentIds=new hB),x=p.experimentIds,a=a.E6(),zM(x, 4,a)):p.experimentIds&&$D(p.experimentIds,4));this.j&&(p.F5=p.Zt);B3f(p.j);this.network.qO&&this.network.qO(this.logSource);this.network.o_5&&this.network.o_5(p);return p};g.M(Gh,g.y);Gh.prototype.flush=function(p){p=p||[];if(p.length){for(var x=new qp8,a=[],v=0;v-1?(x=p[R],a||(x.n2=!1)):(x=new T3g(x,this.src,J,!!v,c),x.n2=a,p.push(x));return x}; g.I.remove=function(p,x,a,v){p=p.toString();if(!(p in this.listeners))return!1;var c=this.listeners[p];x=FC(c,x,a,v);return x>-1?(eu(c[x]),g.DX(c,x),c.length==0&&(delete this.listeners[p],this.U--),!0):!1}; g.I.removeAll=function(p){p=p&&p.toString();var x=0,a;for(a in this.listeners)if(!p||a==p){for(var v=this.listeners[a],c=0;c-1?p[c]:null}; g.I.hasListener=function(p,x){var a=p!==void 0,v=a?p.toString():"",c=x!==void 0;return g.$r(this.listeners,function(J){for(var R=0;R>>0);g.LG(g.Bm,g.y);g.Bm.prototype[UcT]=!0;g.I=g.Bm.prototype;g.I.addEventListener=function(p,x,a,v){g.xJ(this,p,x,a,v)}; g.I.removeEventListener=function(p,x,a,v){iNf(this,p,x,a,v)}; g.I.dispatchEvent=function(p){var x=this.Sr;if(x){var a=[];for(var v=1;x;x=x.Sr)a.push(x),++v}x=this.Ag;v=p.type||p;if(typeof p==="string")p=new g.PL(p,x);else if(p instanceof g.PL)p.target=p.target||x;else{var c=p;p=new g.PL(v,x);g.IJ(p,c)}c=!0;var J;if(a)for(J=a.length-1;!p.Z&&J>=0;J--){var R=p.currentTarget=a[J];c=lJ(R,v,!0,p)&&c}p.Z||(R=p.currentTarget=x,c=lJ(R,v,!0,p)&&c,p.Z||(c=lJ(R,v,!1,p)&&c));if(a)for(J=0;!p.Z&&J0){this.Z--;var p=this.U;this.U=p.next;p.next=null}else p=this.j();return p};var hY;I6.prototype.add=function(p,x){var a=y1g.get();a.set(p,x);this.Z?this.Z.next=a:this.U=a;this.Z=a}; I6.prototype.remove=function(){var p=null;this.U&&(p=this.U,this.U=this.U.next,this.U||(this.Z=null),p.next=null);return p}; var y1g=new Lp(function(){return new M0},function(p){return p.reset()}); M0.prototype.set=function(p,x){this.U=p;this.scope=x;this.next=null}; M0.prototype.reset=function(){this.next=this.scope=this.U=null};var Wm,kJ=!1,wBf=new I6;gxU.prototype.reset=function(){this.context=this.Z=this.j=this.U=null;this.B=!1}; var ZNI=new Lp(function(){return new gxU},function(p){p.reset()}); g.Sl.prototype.then=function(p,x,a){return up1(this,YJ(typeof p==="function"?p:null),YJ(typeof x==="function"?x:null),a)}; g.Sl.prototype.$goog_Thenable=!0;g.I=g.Sl.prototype;g.I.finally=function(p){var x=this;p=YJ(p);return new Promise(function(a,v){A1J(x,function(c){p();a(c)},function(c){p(); v(c)})})}; g.I.LT=function(p,x){return up1(this,null,YJ(p),x)}; g.I.catch=g.Sl.prototype.LT;g.I.cancel=function(p){if(this.U==0){var x=new tY(p);g.D9(function(){P$8(this,x)},this)}}; g.I.NI6=function(p){this.U=0;mt(this,2,p)}; g.I.caI=function(p){this.U=0;mt(this,3,p)}; g.I.qI=function(){for(var p;p=qTx(this);)nxz(this,p,this.U,this.V);this.S=!1}; var x7U=T6;g.LG(tY,Yt);tY.prototype.name="cancel";g.LG(g.zD,g.Bm);g.I=g.zD.prototype;g.I.enabled=!1;g.I.x$=null;g.I.setInterval=function(p){this.eU=p;this.x$&&this.enabled?(this.stop(),this.start()):this.x$&&this.stop()}; g.I.Khg=function(){if(this.enabled){var p=g.BQ()-this.VP;p>0&&p0&&(this.getStatus(),this.S=setTimeout(this.wQ.bind(this), this.Zt)),this.getStatus(),this.T=!0,this.U.send(p),this.T=!1}catch(R){this.getStatus(),YMf(this,R)}}; g.I.wQ=function(){typeof Pm!="undefined"&&this.U&&(this.B="Timed out after "+this.Zt+"ms, aborting",this.Z=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.I.abort=function(p){this.U&&this.j&&(this.getStatus(),this.j=!1,this.C=!0,this.U.abort(),this.C=!1,this.Z=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),AY(this))}; g.I.PO=function(){this.U&&(this.j&&(this.j=!1,this.C=!0,this.U.abort(),this.C=!1),AY(this,!0));g.N0.dk.PO.call(this)}; g.I.kE=function(){this.b$()||(this.O7||this.T||this.C?hK_(this):this.MV5())}; g.I.MV5=function(){hK_(this)}; g.I.isActive=function(){return!!this.U}; g.I.isComplete=function(){return g.q0(this)==4}; g.I.getStatus=function(){try{return g.q0(this)>2?this.U.status:-1}catch(p){return-1}}; g.I.getResponseHeader=function(p){if(this.U&&this.isComplete())return p=this.U.getResponseHeader(p),p===null?void 0:p}; g.I.getLastError=function(){return typeof this.B==="string"?this.B:String(this.B)};FW.prototype.send=function(p,x,a){x=x===void 0?function(){}:x; a=a===void 0?function(){}:a; lB_(p.url,function(v){v=v.target;np(v)?x(g.el(v)):a(v.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)}; FW.prototype.aD=function(){return 1};x5.prototype.done=function(){this.logger.rT(this.event,pL()-this.startTime)}; g.M($5,a2);g.M(s3,$5);g.I=s3.prototype;g.I.rL=function(){}; g.I.E$=function(){}; g.I.rT=function(){}; g.I.i9=function(){}; g.I.ob=function(){}; g.I.TD=function(p,x,a,v){return v}; g.I.YP=function(){}; g.I.KF=function(){}; g.I.XZ=function(){}; g.M(vg,$5);g.I=vg.prototype;g.I.update=function(p){this.logger.dispose();this.logger=p}; g.I.E$=function(p){this.logger.E$(p)}; g.I.rT=function(p,x){this.logger.rT(p,x)}; g.I.i9=function(p){this.logger.i9(p)}; g.I.ob=function(){this.logger.ob()}; g.I.TD=function(p,x,a,v){return this.logger.TD(p,x,a,v)}; g.I.YP=function(p){this.logger.YP(p)}; g.I.KF=function(p){this.logger.KF(p)}; g.I.XZ=function(p){this.logger.XZ(p)}; g.I.rL=function(p){this.logger.rL(p)}; g.M(WCJ,g.y);g.M(cg,$5);g.I=cg.prototype;g.I.rL=function(p){this.metrics.w5d.YH(p,this.rM)}; g.I.E$=function(p){this.metrics.eventCount.Rv(p,this.rM)}; g.I.rT=function(p,x){this.metrics.bR.YH(x,p,this.rM)}; g.I.i9=function(p){this.metrics.errorCount.Rv(p,this.rM)}; g.I.TD=function(p,x,a,v){function c(d){if(!J.b$()){var b=pL()-R;J.metrics.Bh5.YH(b,p,a,d,x,J.rM)}} var J=this,R=pL();v.then(function(){return void c(0)},function(d){return void c(d instanceof gA?d.code:-1)}); return v}; g.I.YP=function(p){this.metrics.I$7.Rv(p,this.rM)}; g.I.KF=function(p){this.metrics.BY.Rv(p,this.rM)}; g.I.XZ=function(p){this.metrics.JSr.Rv(p,this.rM)}; g.M(Jh,cg);Jh.prototype.ob=function(){kvN(this.U)};g.M(RA,DT);g.M(KL,DT);g.M(dw,DT);var zK1=xx(dw),H2_=function(p){return RT(function(x){return x instanceof p&&!Pq(x)})}(dw); dw.messageId="bfkj";g.M(D7z,DT);g.M($H,DT);g.M(bE,DT);var Te1=xx(bE);g.M(Bg,g.y);Bg.prototype.snapshot=function(p){if(this.b$())throw Error("Already disposed");this.logger.E$("n");var x=this.logger.share();return this.j.then(function(a){var v=a.z8;return new Promise(function(c){var J=new x5(x,"n");v(function(R){J.done();x.rL(R.length);x.ob();x.dispose();c(R)},[p.WG, p.AA,p.Zo,p.Np])})})}; Bg.prototype.GU=function(p){var x=this;if(this.b$())throw Error("Already disposed");this.logger.E$("n");var a=aA(this.logger,function(){return x.B([p.WG,p.AA,p.Zo,p.Np])},"n"); this.logger.rL(a.length);this.logger.ob();return a}; Bg.prototype.R3=function(p){this.j.then(function(x){var a;(a=x.xgO)==null||a(p)})}; Bg.prototype.g0=function(){return this.logger.share()};g.M(Y5,DT);g.M(hh,DT);jK.prototype.ZR=function(p){return g6I(this,p,new s3,0)};g.M(IA,g.y);IA.prototype.snapshot=function(p){var x=this;return g.t(function(a){switch(a.Z){case 1:if(x.b$())throw Error("Already disposed");if(x.Z||x.V){a.Ia(2);break}return g.C(a,x.C.promise,2);case 2:if(!x.Z){a.Ia(4);break}return g.C(a,x.Z.snapshot(p),5);case 5:return a.return(a.U);case 4:throw x.V;}})}; IA.prototype.R3=function(p){var x,a;(x=this.Z)==null||(a=x.R3)==null||a.call(x,p)}; IA.prototype.handleError=function(p){if(!this.b$()){this.V=p;this.C.resolve();var x,a;(a=(x=this.options).PV7)==null||a.call(x,p)}}; IA.prototype.g0=function(){return this.logger.share()}; var O2U={Pit:432E5,Z6:3E5,Js:10,XE:1E4,Ym:3E4,LS:3E4,dN5:6E4,Ct:1E3,SC:6E4,iR:6E5,DY:.25,WW:2,maxAttempts:10};var us$,FCz=(us$=Math.imul)!=null?us$:function(p,x){return p*x|0},DO=[196, 200,224,18];U3.prototype.E6=function(){return String(this.U)+","+this.Z.join()}; U3.prototype.aB=function(p,x){var a=void 0;if(this.Z[this.U]!==p){var v=this.Z.indexOf(p);v!==-1?(this.Z.splice(v,1),v0;)x[a++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return x.join("")}};var rFU;g.M(Tj,g.y);Tj.prototype.ZT=function(p,x){var a=this.Nt(p);x==null||x(a);return aA(this.logger,function(){return g.m2(a,2)},this.Z)}; rFU=Symbol.dispose;g.M(SK,Tj);SK.prototype.Nt=function(p,x){var a=this;this.logger.E$(this.U);++this.C>=this.S&&this.j.resolve();var v=p();p=aA(this.logger,function(){return a.B(v)},"C"); if(p===void 0)throw new Va(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new Va(18,"ODM:Invalid");x==null||x(p);return p}; g.M(fL,Tj);fL.prototype.Nt=function(){return this.B}; g.M(CL,Tj);CL.prototype.Nt=function(){var p=this;return aA(this.logger,function(){return f$(p.B)},"d")}; CL.prototype.ZT=function(){return this.B}; g.M(X4,Tj);X4.prototype.Nt=function(){if(this.B)return this.B;this.B=BcJ(this,function(p){return"_"+b81(p)}); return BcJ(this,function(p){return p})}; g.M(oA,Tj);oA.prototype.Nt=function(){var p=Math.floor(Date.now()/1E3),x=[Math.random()*255,Math.random()*255],a=x.concat([this.B&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+a.length);p[0]=34;p[1]=a.length;p.set(a,2);a=p.subarray(2);for(var v=x=x.length;v150))try{this.cache=new cFo(p,this.logger)}catch(x){this.reportError(new Va(22,"GBJ:init",x))}}; g.I.reportError=function(p){this.logger.i9(p.code);this.onError(p);return p}; var Yt_=function(p){return RT(function(x){if(!wQR(x))return!1;for(var a=g.k(Object.entries(p)),v=a.next();!v.done;v=a.next()){var c=g.k(v.value);v=c.next().value;c=c.next().value;if(!(v in x)){if(c.yeG===!0)continue;return!1}if(!c(x[v]))return!1}return!0})}({yV:function(p){return RT(function(x){return x instanceof p})}(IA)},"");var ejQ=(new Date).getTime();g.M(yI,DT);var VgE=xx(yI);H8_.prototype.getMetadata=function(){return this.metadata};gw.prototype.getMetadata=function(){return this.metadata}; gw.prototype.getStatus=function(){return this.status};ZO.prototype.V=function(p,x){x=x===void 0?{}:x;return new H8_(p,this,x)}; ZO.prototype.getName=function(){return this.name};var FUX=new ZO("/google.internal.waa.v1.Waa/Create",Y5,yI,function(p){return p.E6()},VgE);g.M(Gj,DT);var E6T=new ZO("/google.internal.waa.v1.Waa/GenerateIT",hh,Gj,function(p){return p.E6()},xx(Gj));var $wb=new Set(["SAPISIDHASH","APISIDHASH"]);g.M(O3,DT);O3.prototype.getValue=function(){var p=pE(this,2);if(Array.isArray(p)||p instanceof DT)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return KE(this,2)};g.M(Nj,DT);Nj.prototype.getMessage=function(){return CE(this,2)}; var C_J=xx(Nj);Ah.prototype.Rb=function(p,x){p=="data"?this.j.push(x):p=="metadata"?this.C.push(x):p=="status"?this.S.push(x):p=="end"?this.B.push(x):p=="error"&&this.Z.push(x);return this}; Ah.prototype.removeListener=function(p,x){p=="data"?uE(this.j,x):p=="metadata"?uE(this.C,x):p=="status"?uE(this.S,x):p=="end"?uE(this.B,x):p=="error"&&uE(this.Z,x);return this}; Ah.prototype.cancel=function(){this.U.abort()}; Ah.prototype.cancel=Ah.prototype.cancel;Ah.prototype.removeListener=Ah.prototype.removeListener;Ah.prototype.on=Ah.prototype.Rb;g.M(Qi1,Error);g.LG(g.VI,rgI);g.VI.prototype.U=function(){var p=new F4(this.B,this.j);this.Z&&p.setCredentialsMode(this.Z);return p}; g.VI.prototype.setCredentialsMode=function(p){this.Z=p}; g.LG(F4,g.Bm);g.I=F4.prototype;g.I.open=function(p,x){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.pI=p;this.Zt=x;this.readyState=1;pO(this)}; g.I.send=function(p){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Y.signal.aborted)throw this.abort(),Error("Request was aborted.");this.U=!0;var x={headers:this.T,method:this.pI,credentials:this.C,cache:void 0,signal:this.Y.signal};p&&(x.body=p);(this.O7||g.Fg).fetch(new Request(this.Zt,x)).then(this.c8.bind(this),this.lB.bind(this))}; g.I.abort=function(){this.response=this.responseText="";this.T=new Headers;this.status=0;this.Y.abort();this.j&&this.j.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.U&&this.readyState!=4&&(this.U=!1,xf(this));this.readyState=0}; g.I.c8=function(p){if(this.U&&(this.B=p,this.Z||(this.status=this.B.status,this.statusText=this.B.statusText,this.Z=p.headers,this.readyState=2,pO(this)),this.U&&(this.readyState=3,pO(this),this.U)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.LV.bind(this),this.lB.bind(this));else if(typeof g.Fg.ReadableStream!=="undefined"&&"body"in p){this.j=p.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.V=new TextDecoder;XVJ(this)}else p.text().then(this.NQ.bind(this),this.lB.bind(this))}; g.I.xx=function(p){if(this.U){if(this.S&&p.value)this.response.push(p.value);else if(!this.S){var x=p.value?p.value:new Uint8Array(0);if(x=this.V.decode(x,{stream:!p.done}))this.response=this.responseText+=x}p.done?xf(this):pO(this);this.readyState==3&&XVJ(this)}}; g.I.NQ=function(p){this.U&&(this.response=this.responseText=p,xf(this))}; g.I.LV=function(p){this.U&&(this.response=p,xf(this))}; g.I.lB=function(){this.U&&xf(this)}; g.I.setRequestHeader=function(p,x){this.T.append(p,x)}; g.I.getResponseHeader=function(p){return this.Z?this.Z.get(p.toLowerCase())||"":""}; g.I.getAllResponseHeaders=function(){if(!this.Z)return"";for(var p=[],x=this.Z.entries(),a=x.next();!a.done;)a=a.value,p.push(a[0]+": "+a[1]),a=x.next();return p.join("\r\n")}; g.I.setCredentialsMode=function(p){this.C=p}; Object.defineProperty(F4.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});g.$f.prototype.toString=function(){var p=[],x=this.C;x&&p.push(KO(x,psR,!0),":");var a=this.U;if(a||x=="file")p.push("//"),(x=this.Y)&&p.push(KO(x,psR,!0),"@"),p.push(g.mn(a).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a=this.j,a!=null&&p.push(":",String(a));if(a=this.Z)this.U&&a.charAt(0)!="/"&&p.push("/"),p.push(KO(a,a.charAt(0)=="/"?xgQ:$gv,!0));(a=this.B.toString())&&p.push("?",a);(a=this.S)&&p.push("#",KO(a,aL$));return p.join("")}; g.$f.prototype.resolve=function(p){var x=this.clone(),a=!!p.C;a?g.aH(x,p.C):a=!!p.Y;a?x.Y=p.Y:a=!!p.U;a?g.sn(x,p.U):a=p.j!=null;var v=p.Z;if(a)g.vk(x,p.j);else if(a=!!p.Z){if(v.charAt(0)!="/")if(this.U&&!this.Z)v="/"+v;else{var c=x.Z.lastIndexOf("/");c!=-1&&(v=x.Z.slice(0,c+1)+v)}c=v;if(c==".."||c==".")v="";else if(g.Xs(c,"./")||g.Xs(c,"/.")){v=fZ(c,"/");c=c.split("/");for(var J=[],R=0;R1||J.length==1&&J[0]!="")&&J.pop(), v&&R==c.length&&J.push("")):(J.push(d),v=!0)}v=J.join("/")}else v=c}a?x.Z=v:a=p.B.toString()!=="";a?ck(x,p.B.clone()):a=!!p.S;a&&(x.S=p.S);return x}; g.$f.prototype.clone=function(){return new g.$f(this)}; var psR=/[#\/\?@]/g,$gv=/[#\?:]/g,xgQ=/[#\?]/g,wVo=/[#\?@]/g,aL$=/#/g;g.I=RH.prototype;g.I.add=function(p,x){rg(this);this.j=null;p=Bk(this,p);var a=this.U.get(p);a||this.U.set(p,a=[]);a.push(x);this.Z=this.Z+1;return this}; g.I.remove=function(p){rg(this);p=Bk(this,p);return this.U.has(p)?(this.j=null,this.Z=this.Z-this.U.get(p).length,this.U.delete(p)):!1}; g.I.clear=function(){this.U=this.j=null;this.Z=0}; g.I.isEmpty=function(){rg(this);return this.Z==0}; g.I.forEach=function(p,x){rg(this);this.U.forEach(function(a,v){a.forEach(function(c){p.call(x,c,v,this)},this)},this)}; g.I.KD=function(){rg(this);for(var p=Array.from(this.U.values()),x=Array.from(this.U.keys()),a=[],v=0;v0?String(p[0]):x}; g.I.toString=function(){if(this.j)return this.j;if(!this.U)return"";for(var p=[],x=Array.from(this.U.keys()),a=0;a>>3;J.j!=1&&J.j!=2&&J.j!=15&&hW(J,R,d,"unexpected tag");J.U=1;J.Z=0;J.B=0} function a(b){J.B++;J.B==5&&b&240&&hW(J,R,d,"message length too long");J.Z|=(b&127)<<(J.B-1)*7;b&128||(J.U=2,J.Y=0,typeof Uint8Array!=="undefined"?J.C=new Uint8Array(J.Z):J.C=Array(J.Z),J.Z==0&&c())} function v(b){J.C[J.Y++]=b;J.Y==J.Z&&c()} function c(){if(J.j<15){var b={};b[J.j]=J.C;J.V.push(b)}J.U=0} for(var J=this,R=p instanceof Array?p:new Uint8Array(p),d=0;d0?p:null};jR.prototype.isInputValid=function(){return this.U===null}; jR.prototype.Z9=function(){return this.U}; jR.prototype.Zm=function(){return!1}; jR.prototype.parse=function(p){this.U!==null&&AFo(this,p,"stream already broken");var x=null;try{var a=this.j;a.j||NcN(a,p,"stream already broken");a.U+=p;var v=Math.floor(a.U.length/4);if(v==0)var c=null;else{try{var J=SzN(a.U.slice(0,v*4))}catch(R){NcN(a,a.U,R.message)}a.Z+=v*4;a.U=a.U.slice(v*4);c=J}x=c===null?null:this.B.parse(c)}catch(R){AFo(this,p,R.message)}this.Z+=p.length;return x};var vYX={INIT:0,v6:1,F3:2,tK:3,xT:4,X0:5,STRING:6,Jx:7,nK:8,ac:9,gR:10,LK:11,cn:12,Hn:13,eS:14,fO:15,XC:16,YJ:17,xJ:18,uW:19,IJ:20};g.I=MF.prototype;g.I.isInputValid=function(){return this.C!=3}; g.I.Z9=function(){return this.T}; g.I.done=function(){return this.C===2}; g.I.Zm=function(){return!1}; g.I.parse=function(p){function x(){for(;L0;)if(h=p[L++], J.Y===4?J.Y=0:J.Y++,!h)break a;if(h==='"'&&!J.V){J.U=v();break}if(h==="\\"&&!J.V&&(J.V=!0,h=p[L++],!h))break;if(J.V)if(J.V=!1,h==="u"&&(J.Y=1),h=p[L++])continue;else break;d.lastIndex=L;h=d.exec(p);if(!h){L=p.length+1;break}L=h.index+1;h=p[h.index];if(!h)break}J.j+=L-D;continue;case b.ac:if(!h)continue;h==="r"?J.U=b.gR:Wk(J,p,L);continue;case b.gR:if(!h)continue;h==="u"?J.U=b.LK:Wk(J,p,L);continue;case b.LK:if(!h)continue;h==="e"?J.U=v():Wk(J,p,L);continue;case b.cn:if(!h)continue;h==="a"?J.U=b.Hn: Wk(J,p,L);continue;case b.Hn:if(!h)continue;h==="l"?J.U=b.eS:Wk(J,p,L);continue;case b.eS:if(!h)continue;h==="s"?J.U=b.fO:Wk(J,p,L);continue;case b.fO:if(!h)continue;h==="e"?J.U=v():Wk(J,p,L);continue;case b.XC:if(!h)continue;h==="u"?J.U=b.YJ:Wk(J,p,L);continue;case b.YJ:if(!h)continue;h==="l"?J.U=b.xJ:Wk(J,p,L);continue;case b.xJ:if(!h)continue;h==="l"?J.U=v():Wk(J,p,L);continue;case b.uW:h==="."?J.U=b.IJ:Wk(J,p,L);continue;case b.IJ:if("0123456789.eE+-".indexOf(h)!==-1)continue;else L--,J.j--,J.U= v();continue;default:Wk(J,p,L)}}} function v(){var h=R.pop();return h!=null?h:b.v6} function c(h){J.Z>1||(h||(h=l===-1?J.B+p.substring(B,L):p.substring(l,L)),J.Zt?J.S.push(h):J.S.push(JSON.parse(h)),l=L)} for(var J=this,R=J.pI,d=J.O7,b=vYX,r=p.length,B=0,l=-1,L=0;L0?(Y=J.S,J.S=[],Y):null}return null};kf.prototype.isInputValid=function(){return this.C===null}; kf.prototype.Z9=function(){return this.C}; kf.prototype.Zm=function(){return!1}; kf.prototype.parse=function(p){function x(b){J.Z=6;J.C="The stream is broken @"+J.U+"/"+R+". Error: "+b+". With input:\n";throw Error(J.C);} function a(){J.j=new MF({vd4:!0,eE:!0})} function v(b){if(b)for(var r=0;r1)&&x("extra status: "+b);J.S=!0;var r={};r[2]=b[0];J.B.push(r)}} for(var J=this,R=0;R0?(p=J.B,J.B=[],p):null};DC.prototype.lN=function(){return this.U}; DC.prototype.getStatus=function(){return this.C}; DC.prototype.Zt=function(p){p=p.target;try{if(p==this.U)a:{var x=g.q0(this.U),a=this.U.Z,v=this.U.getStatus(),c=g.el(this.U);p=[];if(g.uJ(this.U)instanceof Array){var J=g.uJ(this.U);J.length>0&&J[0]instanceof Uint8Array&&(this.T=!0,p=J)}if(!(x<3||x==3&&!c&&p.length==0))if(v=v==200||v==206,x==4&&(a==8?Un(this,7):a==7?Un(this,8):v||Un(this,3)),this.Z||(this.Z=P_T(this.U),this.Z==null&&Un(this,5)),this.C>2)Hk(this);else{if(p.length>this.j){var R=p.length;a=[];try{if(this.Z.Zm())for(var d=0;dthis.j){d=c.slice(this.j);this.j=c.length;try{var r=this.Z.parse(d);r!=null&&this.B&&this.B(r)}catch(B){Un(this,5);Hk(this);break a}}x==4?(c.length!= 0||this.T?Un(this,2):Un(this,4),Hk(this)):Un(this,1)}}}catch(B){Un(this,6),Hk(this)}};g.I=qt1.prototype;g.I.Rb=function(p,x){var a=this.Z[p];a||(a=[],this.Z[p]=a);a.push(x);return this}; g.I.addListener=function(p,x){this.Rb(p,x);return this}; g.I.removeListener=function(p,x){var a=this.Z[p];a&&g.UV(a,x);(p=this.U[p])&&g.UV(p,x);return this}; g.I.once=function(p,x){var a=this.U[p];a||(a=[],this.U[p]=a);a.push(x);return this}; g.I.ogg=function(p){var x=this.Z.data;x&&nX8(p,x);(x=this.U.data)&&nX8(p,x);this.U.data=[]}; g.I.whA=function(){switch(this.j.getStatus()){case 1:Tp(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Tp(this,"error");break;case 8:Tp(this,"close");break;case 2:Tp(this,"end")}};eGf.prototype.serverStreaming=function(p,x,a,v){var c=this,J=p.substring(0,p.length-v.name.length);return aso(function(R){var d=R.PV,b=R.getMetadata(),r=FY8(c,!1);b=pLb(c,b,r,J+d.getName());var B=xw1(r,d.Z,!0);R=d.U(R.dO);r.send(b,"POST",R);return B},this.ym).call(this,v.V(x,a))};s2Q.prototype.create=function(p,x,a){var v=this.U,c=this.Z+"/$rpc/google.internal.waa.v1.Waa/Create";x=x||{};a=a===void 0?{}:a;return ygQ(v,c,p,x,FUX,a)};var vH1="://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(" "),cBz=/\bocr\b/;var RX_=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(p){throw p;}},{kXO:!0, zvg:!0,UCI:!1,Zqd:TRG,pjO:QvO,jiA:!1,mAd:!1,dA5:!0,P3t:HGG,EdG:!1,bqA:!1,zzG:!1});var SR=null,CO=!1,Is_=1,YfT=Symbol("SIGNAL"),lK={version:0,k7r:0,Ev:!1,producers:void 0,g8:void 0,BI:void 0,gA:void 0,v3:!1,yS:!1,ll:!1,kind:"unknown",vC:function(){return!1}, A8:function(){}, oP:function(){}, ruT:function(){}};var Lg=Symbol("UNSET"),YS=Symbol("COMPUTING"),hf=Symbol("ERRORED");Object.assign({},lK,{value:Lg,Ev:!0,error:null,Qh:m1,kind:"computed",vC:function(p){return p.value===Lg||p.value===YS}, A8:function(p){if(p.value===YS)throw Error("");var x=p.value;p.value=YS;var a=bvb(p),v=!1;try{var c=p.M5();fO(null);v=x!==Lg&&x!==hf&&c!==hf&&p.Qh(x,c)}catch(J){c=hf,p.error=J}finally{B8z(p,a)}v?p.value=x:(p.value=c,p.version++)}});var Ll1=Object.assign({},lK,{Qh:m1,value:void 0,kind:"signal"});Object.assign({},lK,{value:Lg,Ev:!0,error:null,Qh:m1,kind:"linkedSignal",vC:function(p){return p.value===Lg||p.value===YS}, A8:function(p){if(p.value===YS)throw Error("");var x=p.value;p.value=YS;var a=bvb(p);try{var v=p.source();var c=p.M5(v,x===Lg||x===hf?void 0:{source:p.s9a,value:x});p.s9a=v}catch(J){c=hf,p.error=J}finally{B8z(p,a)}x!==Lg&&c!==hf&&p.Qh(x,c)?p.value=x:(p.value=c,p.version++)}});Object.assign({},lK,{ll:!0,yS:!1,oP:function(p){p.schedule!==null&&p.schedule(p.gra)}, msO:!1,Nb4:function(){}});g.M(tW,g.Bm);tW.prototype.dispose=function(){window.removeEventListener("offline",this.j);window.removeEventListener("online",this.j);this.Gq.zg(this.C);delete tW.instance}; tW.prototype.CG=function(){return this.U}; tW.prototype.Bh=function(){var p=this;this.C=this.Gq.vN(function(){var x;return g.t(function(a){if(a.Z==1)return p.U?((x=window.navigator)==null?0:x.onLine)?a.Ia(3):g.C(a,oH(p),3):g.C(a,oH(p),3);p.Bh();g.k1(a)})},3E4)};g.M(WlU,DT);var c4j=Mvx(WlU,[0,c7,U3G,d3X,c7,-2,d3X,Jpj]);wg.prototype.set=function(p,x){x=x===void 0?!0:x;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==x&&(this.data[p]=x,this.U=-1)}; wg.prototype.get=function(p){return!!this.data[p]};var yz;g.LG(g.Gp,g.y);g.I=g.Gp.prototype;g.I.start=function(){this.stop();this.B=!1;var p=DwI(this),x=Uw1(this);p&&!x&&this.Z.mozRequestAnimationFrame?(this.U=g.xJ(this.Z,"MozBeforePaint",this.j),this.Z.mozRequestAnimationFrame(null),this.B=!0):this.U=p&&x?p.call(this.Z,this.j):this.Z.setTimeout(ZGo(this.j),20)}; g.I.stop=function(){if(this.isActive()){var p=DwI(this),x=Uw1(this);p&&!x&&this.Z.mozRequestAnimationFrame?vm(this.U):p&&x?x.call(this.Z,this.U):this.Z.clearTimeout(this.U)}this.U=null}; g.I.isActive=function(){return this.U!=null}; g.I.Pc=function(){this.B&&this.U&&vm(this.U);this.U=null;this.S.call(this.C,g.BQ())}; g.I.PO=function(){this.stop();g.Gp.dk.PO.call(this)};g.LG(g.AW,g.y);g.I=g.AW.prototype;g.I.B6=0;g.I.PO=function(){g.AW.dk.PO.call(this);this.stop();delete this.U;delete this.Z}; g.I.start=function(p){this.stop();this.B6=g.wA(this.j,p!==void 0?p:this.eU)}; g.I.stop=function(){this.isActive()&&g.Fg.clearTimeout(this.B6);this.B6=0}; g.I.isActive=function(){return this.B6!=0}; g.I.EL=function(){this.B6=0;this.U&&this.U.call(this.Z)};g.M(g.eR,g.y);g.I=g.eR.prototype;g.I.tB=function(p){this.j=arguments;this.x$||this.Z?this.U=!0:ud(this)}; g.I.stop=function(){this.x$&&(g.Fg.clearTimeout(this.x$),this.x$=null,this.U=!1,this.j=null)}; g.I.pause=function(){this.Z++}; g.I.resume=function(){this.Z--;this.Z||!this.U||this.x$||(this.U=!1,ud(this))}; g.I.PO=function(){g.y.prototype.PO.call(this);this.stop()};g.Vz.prototype[Symbol.iterator]=function(){return this}; g.Vz.prototype.next=function(){var p=this.U.next();return{value:p.done?void 0:this.Z.call(void 0,p.value),done:p.done}};g.LG(g.Ju,g.Bm);g.I=g.Ju.prototype;g.I.isPlaying=function(){return this.U==1}; g.I.isPaused=function(){return this.U==-1}; g.I.Pu=function(){this.Bv("begin")}; g.I.Ae=function(){this.Bv("end")}; g.I.onFinish=function(){this.Bv("finish")}; g.I.onStop=function(){this.Bv("stop")}; g.I.Bv=function(p){this.dispatchEvent(p)};var J4R=tb(function(){var p=g.Lw("DIV"),x=g.bP?"-webkit":PY?"-moz":null,a="transition:opacity 1s linear;";x&&(a+=x+"-transition:opacity 1s linear;");x=SVJ({style:a});if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("");p.innerHTML=L9(x);return g.qW(p.firstChild,"transition")!=""});g.LG(RR,g.Ju);g.I=RR.prototype;g.I.play=function(){if(this.isPlaying())return!1;this.Pu();this.Bv("play");this.startTime=g.BQ();this.U=1;if(J4R())return g.Ab(this.Z,this.S),this.j=g.wA(this.gNr,void 0,this),!0;this.kf(!1);return!1}; g.I.gNr=function(){g.aT(this.Z);Q2T(this.Z,this.V);g.Ab(this.Z,this.B);this.j=g.wA((0,g.dR)(this.kf,this,!1),this.C*1E3)}; g.I.stop=function(){this.isPlaying()&&this.kf(!0)}; g.I.kf=function(p){g.Ab(this.Z,"transition","");g.Fg.clearTimeout(this.j);g.Ab(this.Z,this.B);this.endTime=g.BQ();this.U=0;if(p)this.onStop();else this.onFinish();this.Ae()}; g.I.PO=function(){this.stop();RR.dk.PO.call(this)}; g.I.pause=function(){};var Sfb={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};Kt("Element","attributes")||Kt("Node","attributes");Kt("Element","innerHTML")||Kt("HTMLElement","innerHTML");Kt("Node","nodeName");Kt("Node","nodeType");Kt("Node","parentNode");Kt("Node","childNodes");Kt("HTMLElement","style")||Kt("Element","style");Kt("HTMLStyleElement","sheet");var tuJ=CRT("getPropertyValue"),zXg=CRT("setProperty");Kt("Element","namespaceURI")||Kt("Node","namespaceURI");var oHo={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var gHU,L$t,yBb,EHg,Zvg;gHU=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]");L$t=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.RYV=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.by=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]");yBb=/^http:\/\/.*/;g.KnG=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");EHg=/\s+/;Zvg=/[\d\u06f0-\u06f9]/;BG.prototype.rU=function(){return new ly(this.Z())}; BG.prototype[Symbol.iterator]=function(){return new Lt(this.Z())}; BG.prototype.U=function(){return new Lt(this.Z())}; g.M(ly,g.DB);ly.prototype.next=function(){return this.Z.next()}; ly.prototype[Symbol.iterator]=function(){return new Lt(this.Z)}; ly.prototype.U=function(){return new Lt(this.Z)}; g.M(Lt,BG);Lt.prototype.next=function(){return this.j.next()};hu.prototype.clone=function(){return new hu(this.U,this.V,this.j,this.C,this.B,this.S,this.Z,this.Y)}; hu.prototype.equals=function(p){return this.U==p.U&&this.V==p.V&&this.j==p.j&&this.C==p.C&&this.B==p.B&&this.S==p.S&&this.Z==p.Z&&this.Y==p.Y};IR.prototype.clone=function(){return new IR(this.start,this.end)};(function(){if(kOz){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(g.Ez()))?p[1]:"0"}return bQ?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(g.Ez()))?p[0].replace(/_/g,"."):"10"):g.qk?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(g.Ez()))?p[1]:""):fXt||CZO||XQZ?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(g.Ez()))?p[1].replace(/_/g,"."):""):""})();var Ovb=function(){if(g.Jc)return ML(/Firefox\/([0-9.]+)/);if(g.dj||g.ZH||g.P0)return kyI;if(g.Li){if(wu()||EW()){var p=ML(/CriOS\/([0-9.]+)/);if(p)return p}return ML(/Chrome\/([0-9.]+)/)}if(g.BR&&!wu())return ML(/Version\/([0-9.]+)/);if(Nk||As){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ez()))return p[1]+"."+p[2]}else if(g.qD)return(p=ML(/Android\s+([0-9.]+)/))?p:ML(/Version\/([0-9.]+)/);return""}();g.LG(g.kW,g.y);g.I=g.kW.prototype;g.I.subscribe=function(p,x,a){var v=this.Z[p];v||(v=this.Z[p]=[]);var c=this.S;this.U[c]=p;this.U[c+1]=x;this.U[c+2]=a;this.S=c+3;v.push(c);return c}; g.I.unsubscribe=function(p,x,a){if(p=this.Z[p]){var v=this.U;if(p=p.find(function(c){return v[c+1]==x&&v[c+2]==a}))return this.fG(p)}return!1}; g.I.fG=function(p){var x=this.U[p];if(x){var a=this.Z[x];this.B!=0?(this.j.push(p),this.U[p+1]=function(){}):(a&&g.UV(a,p),delete this.U[p],delete this.U[p+1],delete this.U[p+2])}return!!x}; g.I.publish=function(p,x){var a=this.Z[p];if(a){var v=Array(arguments.length-1),c=arguments.length,J;for(J=1;J0&&this.B==0)for(;a=this.j.pop();)this.fG(a)}}return J!=0}return!1}; g.I.clear=function(p){if(p){var x=this.Z[p];x&&(x.forEach(this.fG,this),delete this.Z[p])}else this.U.length=0,this.Z={}}; g.I.PO=function(){g.kW.dk.PO.call(this);this.clear();this.j.length=0};g.Dm.prototype.set=function(p,x){x===void 0?this.U.remove(p):this.U.set(p,g.Z9(x))}; g.Dm.prototype.get=function(p){try{var x=this.U.get(p)}catch(a){return}if(x!==null)try{return JSON.parse(x)}catch(a){throw"Storage: Invalid value was encountered";}}; g.Dm.prototype.remove=function(p){this.U.remove(p)};g.LG(Um,g.Dm);Um.prototype.set=function(p,x){Um.dk.set.call(this,p,PR1(x))}; Um.prototype.Z=function(p){p=Um.dk.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";}; Um.prototype.get=function(p){if(p=this.Z(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};g.LG(HG,Um);HG.prototype.set=function(p,x,a){if(x=PR1(x)){if(a){if(a=a.length)return g.Kg;var c=a.key(x++);if(p)return g.UM(c);c=a.getItem(c);if(typeof c!=="string")throw"Storage mechanism: Invalid value was encountered";return g.UM(c)}; return v}; g.I.clear=function(){Sn(this);this.U.clear()}; g.I.key=function(p){Sn(this);return this.U.key(p)};g.LG(ft,mm);g.LG(eXo,mm);g.LG(Ct,Q3);Ct.prototype.set=function(p,x){this.Z.set(this.U+p,x)}; Ct.prototype.get=function(p){return this.Z.get(this.U+p)}; Ct.prototype.remove=function(p){this.Z.remove(this.U+p)}; Ct.prototype.rU=function(p){var x=this.Z[Symbol.iterator](),a=this,v=new g.DB;v.next=function(){var c=x.next();if(c.done)return c;for(c=c.value;c.slice(0,a.U.length)!=a.U;){c=x.next();if(c.done)return c;c=c.value}return g.UM(p?c.slice(a.U.length):a.Z.get(c))}; return v};iy.prototype.getValue=function(){return this.Z}; iy.prototype.clone=function(){return new iy(this.U,this.Z)};g.I=oR.prototype;g.I.aB=function(p,x){var a=this.U;a.push(new iy(p,x));p=a.length-1;x=this.U;for(a=x[p];p>0;){var v=p-1>>1;if(x[v].U>a.U)x[p]=x[v],p=v;else break}x[p]=a}; g.I.remove=function(){var p=this.U,x=p.length,a=p[0];if(!(x<=0)){if(x==1)p.length=0;else{p[0]=p.pop();p=0;x=this.U;for(var v=x.length,c=x[p];p>1;){var J=p*2+1,R=p*2+2;J=Rc.U)break;x[p]=x[J];p=J}x[p]=c}return a.getValue()}}; g.I.sR=function(){for(var p=this.U,x=[],a=p.length,v=0;v>>16&65535|0;for(var J;a!==0;){J=a>2E3?2E3:a;a-=J;do c=c+x[v++]|0,p=p+c|0;while(--J);c%=65521;p%=65521}return c|p<<16|0};for(var dx={},jO,lLO=[],I3=0;I3<256;I3++){jO=I3;for(var LnE=0;LnE<8;LnE++)jO=jO&1?3988292384^jO>>>1:jO>>>1;lLO[I3]=jO}dx=function(p,x,a,v){a=v+a;for(p^=-1;v>>8^lLO[(p^x[v])&255];return p^-1};var p6={};p6={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 PG=[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],en=[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],Wt_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d01=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],s8=Array(576);Em(s8);var vr=Array(60);Em(vr);var nt=Array(512);Em(nt);var Au=Array(256);Em(Au);var qL=Array(29);Em(qL);var uy=Array(30);Em(uy);var j6f,I91,Mlg,hjU=!1;var L6;L6=[new lU(0,0,0,0,function(p,x){var a=65535;for(a>p.qh-5&&(a=p.qh-5);;){if(p.al<=1){bU(p);if(p.al===0&&x===0)return 1;if(p.al===0)break}p.Il+=p.al;p.al=0;var v=p.PM+a;if(p.Il===0||p.Il>=v)if(p.al=p.Il-v,p.Il=v,cr(p,!1),p.Kv.e3===0)return 1;if(p.Il-p.PM>=p.Ox-262&&(cr(p,!1),p.Kv.e3===0))return 1}p.aB=0;if(x===4)return cr(p,!0),p.Kv.e3===0?3:4;p.Il>p.PM&&cr(p,!1);return 1}), new lU(4,4,8,4,rx),new lU(4,5,16,8,rx),new lU(4,6,32,32,rx),new lU(4,4,16,16,Br),new lU(8,16,32,32,Br),new lU(8,16,128,128,Br),new lU(8,32,128,256,Br),new lU(32,128,258,1024,Br),new lU(32,258,258,4096,Br)];var Yyz={};Yyz=function(){this.input=null;this.zZ=this.Fl=this.jL=0;this.output=null;this.IQ=this.e3=this.hI=0;this.msg="";this.state=null;this.Yh=2;this.s8=0};var kDz=Object.prototype.toString; YL.prototype.push=function(p,x){var a=this.Kv,v=this.options.chunkSize;if(this.ended)return!1;var c=x===~~x?x:x===!0?4:0;typeof p==="string"?a.input=Flf(p):kDz.call(p)==="[object ArrayBuffer]"?a.input=new Uint8Array(p):a.input=p;a.jL=0;a.Fl=a.input.length;do{a.e3===0&&(a.output=new wj.Fd(v),a.hI=0,a.e3=v);p=LtQ(a,c);if(p!==1&&p!==0)return this.Ae(p),this.ended=!0,!1;if(a.e3===0||a.Fl===0&&(c===4||c===2))if(this.options.to==="string"){var J=wj.vg(a.output,a.hI);x=J;J=J.length;if(J<65537&&(x.subarray&& BuX||!x.subarray))x=String.fromCharCode.apply(null,wj.vg(x,J));else{for(var R="",d=0;d0||a.e3===0)&&p!==1);if(c===4)return(a=this.Kv)&&a.state?(v=a.state.status,v!==42&&v!==69&&v!==73&&v!==91&&v!==103&&v!==113&&v!==666?p=xL(a,-2):(a.state=null,p=v===113?xL(a,-3):0)):p=-2,this.Ae(p),this.ended=!0,p===0;c===2&&(this.Ae(0),a.e3=0);return!0}; YL.prototype.Ae=function(p){p===0&&(this.result=this.options.to==="string"?this.chunks.join(""):wj.RX(this.chunks));this.chunks=[];this.err=p;this.msg=this.Kv.msg};var ji="@@redux/INIT"+ha(),m0N="@@redux/REPLACE"+ha();var Sy_=typeof Symbol==="function"&&Symbol.observable||"@@observable";var YWv=[0,Mgw,-3,v7];g.M(ip_,DT);var yk_=Mvx(ip_,[0,c7,WUQ,xS,Mgw,xS,-1,v7,Mgw,v7,-1,c7,v7,WUQ,$S,YWv,xS,-1,v7]);var oJI=1780973022;var FD1=new g.Wr("adInfoDialogEndpoint");var CCN=new g.Wr("adPingingEndpoint");var Fhz=new g.Wr("crossDeviceProgressCommand");var lb=new g.Wr("actionCompanionAdRenderer");var Pn=new g.Wr("adActionInterstitialRenderer");var hYQ=new g.Wr("adDurationRemainingRenderer");var q2=new g.Wr("adHoverTextButtonRenderer");var uKT=new g.Wr("adInfoDialogRenderer");var fQ=new g.Wr("adMessageRenderer");var nn=new g.Wr("adPreviewRenderer");var DU=new g.Wr("adsEngagementPanelRenderer");var TGg=new g.Wr("dismissablePanelTextPortraitImageRenderer");var UqT=new g.Wr("adsEngagementPanelSectionListViewModel");var j0Z=new g.Wr("flyoutCtaRenderer");var kv=new g.Wr("imageCompanionAdRenderer");var N6=new g.Wr("instreamAdPlayerOverlayRenderer");var o1X=new g.Wr("instreamSurveyAdBackgroundImageRenderer");var PP=new g.Wr("instreamSurveyAdPlayerOverlayRenderer");var oG=new g.Wr("instreamSurveyAdRenderer"),AR=new g.Wr("instreamSurveyAdSingleSelectQuestionRenderer"),N2=new g.Wr("instreamSurveyAdMultiSelectQuestionRenderer"),MP=new g.Wr("instreamSurveyAdAnswerRenderer"),ILE=new g.Wr("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var XZ=new g.Wr("instreamVideoAdRenderer");var Mcv=new g.Wr("textOverlayAdContentRenderer"),WnV=new g.Wr("enhancedTextOverlayAdContentRenderer"),kdj=new g.Wr("imageOverlayAdContentRenderer");var AE=new g.Wr("playerOverlayLayoutRenderer");var q6=new g.Wr("videoInterstitialButtonedCenteredLayoutRenderer");var Cs8=new g.Wr("aboveFeedAdLayoutRenderer");var Xax=new g.Wr("belowPlayerAdLayoutRenderer");var fyI=new g.Wr("inPlayerAdLayoutRenderer");var wn=new g.Wr("playerBytesAdLayoutRenderer");var OP=new g.Wr("playerBytesSequenceItemAdLayoutRenderer");var GZ=new g.Wr("playerUnderlayAdLayoutRenderer");var ib=new g.Wr("adIntroRenderer");var fn=new g.Wr("playerBytesSequentialLayoutRenderer");var bub=new g.Wr("slidingTextPlayerOverlayRenderer");var tR=new g.Wr("surveyTextInterstitialRenderer");var EP=new g.Wr("videoAdTrackingRenderer");var WZN=new g.Wr("videoInterstitialCenteredLayoutViewModel");var Dgv=new g.Wr("simpleAdBadgeRenderer");var M5=new g.Wr("skipAdRenderer"),Ugt=new g.Wr("skipButtonRenderer");var FZ=new g.Wr("adSlotRenderer");var gn=new g.Wr("squeezebackPlayerSidePanelRenderer");var H9v=new g.Wr("timedPieCountdownRenderer");var OX=new g.Wr("adAvatarViewModel");var Nd=new g.Wr("adBadgeViewModel");var A0=new g.Wr("adButtonViewModel");var TuX=new g.Wr("adDetailsLineViewModel");var Q0$=new g.Wr("adDisclosureBannerViewModel");var mgO=new g.Wr("adPodIndexViewModel");var SWO=new g.Wr("imageBackgroundViewModel");var fLw=new g.Wr("adGridCardCollectionViewModel");var COX=new g.Wr("adGridCardTextViewModel");var XsE=new g.Wr("adPreviewViewModel");var i9Z=new g.Wr("playerAdAvatarLockupCardButtonedViewModel");var oYw=new g.Wr("skipAdButtonViewModel");var tcO=new g.Wr("skipAdViewModel");var zYO=new g.Wr("timedPieCountdownViewModel");var wsO=new g.Wr("visitAdvertiserLinkViewModel");var UP=new g.Wr("bannerImageLayoutViewModel");var HP=new g.Wr("topBannerImageTextIconButtonedLayoutViewModel");var TZ=new g.Wr("adsEngagementPanelLayoutViewModel");var ZU=new g.Wr("displayUnderlayTextGridCardsLayoutViewModel");g.Og=new g.Wr("browseEndpoint");var EYX=new g.Wr("confirmDialogEndpoint");var AdI=new g.Wr("commandContext");var byo=new g.Wr("rawColdConfigGroup");var dkU=new g.Wr("rawHotConfigGroup");g.K5=new g.Wr("commandExecutorCommand");g.M(zjJ,DT);var yK8={Gqr:0,rn7:1,pGt:32,Bb5:61,CYG:67,Fj6:103,IjG:86,ZDr:42,jk5:60,ynr:62,OD$:73,PYA:76,uWr:88,WjO:90,hVa:99,zVT:98,S$5:100,sk7:102,iDd:41,DAt:69,bDa:70,q$g:71,RM4:2,vH4:27,ANDROID:3,yS5:54,l$A:14,wNg:91,oO$:55,EO5:24,kQ7:20,dVd:18,Ur7:21,Zdr:104,s5A:30,JRt:29,Iua:28,NK$:101,Fe$:34,Pfg:36,zwr:38,IOS:5,XUd:15,gCG:92,Y5O:40,Qmr:25,Ggr:17,RLI:19,vCd:64,mX4:66,AcO:26,Nw6:22,ccO:33,H0G:68,eL5:35,aMA:53,Lvr:37,xXa:39,h8r:7,i7a:57,DE$:43,qog:59,b7T:93,BMO:74,VJT:75,n97:85,MJT:65,tJd:80,Xvr:8,Sod:10, xE7:58,Yoa:63,KY$:72,Odt:23,My$:11,KjT:13,fug:12,Cd6:16,UA5:56,Ju$:31,Y1A:77,d1g:84,wGt:87,UXO:89,zLO:94,S1r:95};g.M(kL,DT);kL.prototype.eC=function(){return CE(this,3)}; kL.prototype.zE=function(){return CE(this,5)}; kL.prototype.pA=function(p){return zM(this,5,p)};g.M(D8,DT);g.M(wm_,DT);g.M(U8,DT);g.I=U8.prototype;g.I.getDeviceId=function(){return CE(this,6)}; g.I.WQ=function(p){var x=Jj(this,9,Yg,3,!0);qv(x,p);return x[p]}; g.I.getPlayerType=function(){return Xu(this,36)}; g.I.setHomeGroupInfo=function(p){return TM(this,wm_,81,p)}; g.I.clearLocationPlayabilityToken=function(){return $D(this,89)};g.M(Hr,DT);Hr.prototype.getValue=function(){return CE(this,hj(this,Rmb,2))}; var Rmb=[2,3,4,5,6];g.M(T0,DT);T0.prototype.setTrackingParams=function(p){return $D(this,1,ZZ_(p,!1))};g.M(QT,DT);g.M(md,DT);md.prototype.WQ=function(p){var x=Jj(this,5,h7,3,!0);qv(x,p);return x[p]};g.M(Si,DT);Si.prototype.getToken=function(){return o4(this,2)}; Si.prototype.setToken=function(p){return zM(this,2,p)};g.M(f6,DT);f6.prototype.setSafetyMode=function(p){return Eb(this,5,p)};g.M(C6,DT);C6.prototype.bA=function(p){return TM(this,U8,1,p)};var ub=new g.Wr("thumbnailLandscapePortraitRenderer");g.y4t=new g.Wr("changeEngagementPanelVisibilityAction");var QbQ=new g.Wr("continuationCommand");g.gYQ=new g.Wr("openPopupAction");g.W7=new g.Wr("webCommandMetadata");var LcU=new g.Wr("metadataBadgeRenderer");var Tdb=new g.Wr("signalServiceEndpoint");var Qj=new g.Wr("innertubeCommand");var dMU=new g.Wr("loggingDirectives");var kjN={tvG:"EMBEDDED_PLAYER_MODE_UNKNOWN",nD6:"EMBEDDED_PLAYER_MODE_DEFAULT",Kag:"EMBEDDED_PLAYER_MODE_PFP",Mvd:"EMBEDDED_PLAYER_MODE_PFL"};var gCT=new g.Wr("channelThumbnailEndpoint");var ymz=new g.Wr("embeddedPlayerErrorMessageRenderer");var ty1=new g.Wr("embeddedPlayerOverlayVideoDetailsRenderer"),ZQU=new g.Wr("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),GHU=new g.Wr("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var rmN=new g.Wr("embedsInfoPanelRenderer");var Z9$=new g.Wr("feedbackEndpoint");var GdQ=new g.Wr("callToActionButtonViewModel");var O9X=new g.Wr("interactionLoggingCommandMetadata");var hdJ={dEg:"WEB_DISPLAY_MODE_UNKNOWN",lG7:"WEB_DISPLAY_MODE_BROWSER",E94:"WEB_DISPLAY_MODE_MINIMAL_UI",kqr:"WEB_DISPLAY_MODE_STANDALONE",o96:"WEB_DISPLAY_MODE_FULLSCREEN"};g.M(Xj,DT);Xj.prototype.getPlayerType=function(){return Xu(this,7)}; Xj.prototype.Gy=function(){return CE(this,19)}; Xj.prototype.setVideoId=function(p){return zM(this,19,p)};g.M(iU,DT);g.M(ok,DT);g.M(ta,DT); var Nuv=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var A4Z=new g.Wr("loggingContext");g.M(z0,DT);g.M(wx,DT);wx.prototype.Gy=function(){return o4(this,hj(this,xi,1))}; wx.prototype.setVideoId=function(p){return LE(this,1,xi,QZ(p))}; wx.prototype.getPlaylistId=function(){return o4(this,hj(this,xi,2))}; var xi=[1,2];g.M(EJN,DT);var Ih=new g.Wr("changeKeyedMarkersVisibilityCommand");var POG=new g.Wr("changeMarkersVisibilityCommand");var hxQ=new g.Wr("loadMarkersCommand");var qWj=new g.Wr("suggestedActionDataViewModel");var VX1=new g.Wr("timelyActionViewModel");var u2o=new g.Wr("timelyActionsOverlayViewModel");var dRb=new g.Wr("productListItemRenderer");var nYv=new g.Wr("shoppingOverlayRenderer");var zxx=new g.Wr("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var eYE=new g.Wr("adFeedbackEndpoint");var uww=new g.Wr("menuEndpoint");var YG1=new g.Wr("phoneDialerEndpoint");var ld1=new g.Wr("sendSmsEndpoint");var oC1=new g.Wr("copyTextEndpoint");var VcX=new g.Wr("shareEndpoint"),FnQ=new g.Wr("shareEntityEndpoint"),pYQ=new g.Wr("shareEntityServiceEndpoint"),xWE=new g.Wr("webPlayerShareEntityServiceEndpoint");g.Se=new g.Wr("urlEndpoint");g.hM=new g.Wr("watchEndpoint");var $WX=new g.Wr("watchPlaylistEndpoint");g.apZ=new g.Wr("offlineOrchestrationActionCommand");var iST=new g.Wr("compositeVideoOverlayRenderer");var stZ=new g.Wr("miniplayerRenderer");var Xd1=new g.Wr("paidContentOverlayRenderer");var vkV=new g.Wr("playerMutedAutoplayOverlayRenderer"),cbQ=new g.Wr("playerMutedAutoplayEndScreenRenderer");var SPN=new g.Wr("unserializedPlayerResponse"),JbZ=new g.Wr("unserializedPlayerResponse");var RlO=new g.Wr("playlistEditEndpoint");var kS;g.et=new g.Wr("buttonRenderer");kS=new g.Wr("toggleButtonRenderer");var Dq8=new g.Wr("counterfactualRenderer");var KBw=new g.Wr("resolveUrlCommandMetadata");var dWw=new g.Wr("modifyChannelNotificationPreferenceEndpoint");var fZ1=new g.Wr("pingingEndpoint");var bwv=new g.Wr("unsubscribeEndpoint");g.Nn=new g.Wr("subscribeButtonRenderer");var rbE=new g.Wr("subscribeEndpoint");var cS1=new g.Wr("buttonViewModel");var Hbx=new g.Wr("qrCodeRenderer");var ZKo={Ph6:"LIVING_ROOM_APP_MODE_UNSPECIFIED",pM$:"LIVING_ROOM_APP_MODE_MAIN",ZYa:"LIVING_ROOM_APP_MODE_KIDS",jTd:"LIVING_ROOM_APP_MODE_MUSIC",wMd:"LIVING_ROOM_APP_MODE_UNPLUGGED",UF5:"LIVING_ROOM_APP_MODE_GAMING"};var Kcg=new g.Wr("autoplaySwitchButtonRenderer");var Px,s98,z$x,LL1;Px=new g.Wr("decoratedPlayerBarRenderer");s98=new g.Wr("chapteredPlayerBarRenderer");z$x=new g.Wr("multiMarkersPlayerBarRenderer");LL1=new g.Wr("chapterRenderer");g.RnT=new g.Wr("markerRenderer");var Mm8=new g.Wr("decoratedPlayheadRenderer");var BLo=new g.Wr("desktopOverlayConfigRenderer");var Qez=new g.Wr("engagementPanelSectionListRenderer");var bQz=new g.Wr("gatedActionsOverlayViewModel");var rnQ=new g.Wr("heatMarkerRenderer");var bD8=new g.Wr("heatmapRenderer");var Y5o=new g.Wr("watchToWatchTransitionRenderer");var wdJ=new g.Wr("playlistPanelRenderer");var BIX=new g.Wr("productUpsellSuggestedActionViewModel");var lpt=new g.Wr("suggestedActionTimeRangeTrigger"),LBj=new g.Wr("suggestedActionsRenderer"),Yaj=new g.Wr("suggestedActionRenderer");var BO_=new g.Wr("timedMarkerDecorationRenderer");var wn1=new g.Wr("cipher");var fU1=new g.Wr("playerVars");var hlO=new g.Wr("playerVars");var Dd=g.Fg.window,jtE,Ipv,E8=(Dd==null?void 0:(jtE=Dd.yt)==null?void 0:jtE.config_)||(Dd==null?void 0:(Ipv=Dd.ytcfg)==null?void 0:Ipv.data_)||{};g.pG("yt.config_",E8);var NY=[];var nJT=/^[\w.]*$/,NA1={q:!0,search_query:!0},Opz=String(n6);var vZ=new function(){var p=window.document;this.U=window;this.Z=p}; g.pG("yt.ads_.signals_.getAdSignalsString",function(p){return ei(Js(p))});g.BQ();var uW_="XMLHttpRequest"in g.Fg?function(){return new XMLHttpRequest}:null;var Mv$="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.lf(Mv$);var xjb={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"},rhN="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.lf(Mv$)),RW_=!1,v5z=Iy;g.M(kE,Yt);HZ.prototype.then=function(p,x,a){return this.U?this.U.then(p,x,a):this.j===1&&p?(p=p.call(a,this.Z))&&typeof p.then==="function"?p:Ql(p):this.j===2&&x?(p=x.call(a,this.Z))&&typeof p.then==="function"?p:TS(p):this}; HZ.prototype.getValue=function(){return this.Z}; HZ.prototype.$goog_Thenable=!0;var m4=!1;var gd=Nk||As;var MKb=/^([0-9\.]+):([0-9\.]+)$/;g.M(JX,Yt);JX.prototype.name="BiscottiError";g.M(cb,Yt);cb.prototype.name="BiscottiMissingError";var UjQ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},RQ=null;var $EU=g.Y1(["data-"]),iLf={};var WBX=0,KP=g.bP?"webkit":PY?"moz":g.dj?"ms":g.P0?"o":"",kLv=g.$t("ytDomDomGetNextId")||function(){return++WBX}; g.pG("ytDomDomGetNextId",kLv);var wgN={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};LP.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; LP.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; LP.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Yz=g.Fg.ytEventsEventsListeners||{};g.pG("ytEventsEventsListeners",Yz);var g5g=g.Fg.ytEventsEventsCounter||{count:0};g.pG("ytEventsEventsCounter",g5g);var Nwb=tb(function(){var p=!1;try{var x=Object.defineProperty({},"passive",{get:function(){p=!0}}); window.addEventListener("test",null,x)}catch(a){}return p}),ZL_=tb(function(){var p=!1; try{var x=Object.defineProperty({},"capture",{get:function(){p=!0}}); window.addEventListener("test",null,x)}catch(a){}return p});var UG;UG=window;g.WR=UG.ytcsi&&UG.ytcsi.now?UG.ytcsi.now:UG.performance&&UG.performance.timing&&UG.performance.now&&UG.performance.timing.navigationStart?function(){return UG.performance.timing.navigationStart+UG.performance.now()}:function(){return(new Date).getTime()};g.LG(Wb,g.y);Wb.prototype.T=function(p){p.U===void 0&&E5I(p);var x=p.U;p.Z===void 0&&E5I(p);this.U=new g.Ng(x,p.Z)}; Wb.prototype.pn=function(){return this.U||new g.Ng}; Wb.prototype.Zt=function(){if(this.U){var p=(0,g.WR)();if(this.B!=0){var x=this.S,a=this.U,v=x.x-a.x;x=x.y-a.y;v=Math.sqrt(v*v+x*x)/(p-this.B);this.Z[this.j]=Math.abs((v-this.C)/this.C)>.5?1:0;for(a=x=0;a<4;a++)x+=this.Z[a]||0;x>=3&&this.V();this.C=v}this.B=p;this.S=this.U;this.j=(this.j+1)%4}}; Wb.prototype.PO=function(){g.BZ(this.Y);g.jh(this.pI)};g.M(kz,g.y);kz.prototype.X=function(p,x,a,v,c){a=g.Pr((0,g.dR)(a,v||this.OS));a={target:p,name:x,callback:a};var J;c&&Nwb()&&(J={passive:!0});p.addEventListener(x,a.callback,J);this.V.push(a);return a}; kz.prototype.IA=function(p){for(var x=0;x=A.ZG)||H.U.version>=u||H.U.objectStoreNames.contains(E)||m.push(E)}b=m;if(b.length===0){D.Ia(5);break}r=Object.keys(a.options.G7); B=d.objectStoreNames();if(a.Ca.options.version+1)throw L.close(),a.j=!1,Cdb(a,Y);return D.return(L);case 8:throw x(), l instanceof Error&&!g.Ly("ytidb_async_stack_killswitch")&&(l.stack=l.stack+"\n"+R.substring(R.indexOf("\n")+1)),lM(l,a.name,"",(h=a.options.version)!=null?h:-1);}})} function x(){a.U===v&&(a.U=void 0)} var a=this;if(!this.j)throw Cdb(this);if(this.U)return this.U;var v,c={blocking:function(J){J.close()}, closed:x,VhA:x,upgrade:this.options.upgrade};return this.U=v=p()};var Ej=new zb("YtIdbMeta",{G7:{databases:{ZG:1}},upgrade:function(p,x){x(1)&&g.DH(p,"databases",{keyPath:"actualName"})}});var Oj,Gb=new function(){}(new function(){});new g.rw;g.M(PR,zb);PR.prototype.Z=function(p,x,a){a=a===void 0?{}:a;return(this.options.shared?gfo:yWN)(p,x,Object.assign({},a))}; PR.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?NgQ:ZOJ)(this.name,p)};var CPV={},Pdo=g.qM("ytGcfConfig",{G7:(CPV.coldConfigStore={ZG:1},CPV.hotConfigStore={ZG:1},CPV),shared:!1,upgrade:function(p,x){x(1)&&(g.Sk(g.DH(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Sk(g.DH(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.M(ek,g.y);ek.prototype.PO=function(){for(var p=g.k(this.Z),x=p.next();!x.done;x=p.next()){var a=this.U;x=a.indexOf(x.value);x>=0&&a.splice(x,1)}this.Z.length=0;g.y.prototype.PO.call(this)};$w.prototype.pA=function(p){this.hotHashData=p;g.pG("yt.gcf.config.hotHashData",this.hotHashData||null)};var XYO=typeof TextEncoder!=="undefined"?new TextEncoder:null,tn_=XYO?function(p){return XYO.encode(p)}:function(p){p=g.QR(p); for(var x=new Uint8Array(p.length),a=0;a=x?!1:!0}; g.I.Dn=function(){var p=this;if(!HA(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.gh.Z1("QUEUED",this.f1).then(function(x){x&&!p.W1(x,p.Lf)?p.Gq.vN(function(){return g.t(function(a){if(a.Z==1)return x.id===void 0?a.Ia(2):g.C(a,p.gh.oZ(x.id,p.f1),2);p.Dn();g.k1(a)})}):p.hS.CG()&&p.CC()})};var m8;var lg1={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var okt={},prI=g.qM("ServiceWorkerLogsDatabase",{G7:(okt.SWHealthLog={ZG:1},okt),shared:!0,upgrade:function(p,x){x(1)&&g.Sk(g.DH(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Ch={},caU=0;var Xv;oF.prototype.requestComplete=function(p,x){x&&(this.Z=!0);p=this.removeParams(p);this.U.get(p)||this.U.set(p,x)}; oF.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.U.get(p))?!1:p===!1&&this.Z?!0:null}; oF.prototype.removeParams=function(p){return p.split("?")[0]}; oF.prototype.removeParams=oF.prototype.removeParams;oF.prototype.isEndpointCFR=oF.prototype.isEndpointCFR;oF.prototype.requestComplete=oF.prototype.requestComplete;oF.getInstance=tQ;g.M(zI,g.Bm);g.I=zI.prototype;g.I.CG=function(){return this.U.CG()}; g.I.U9=function(p){this.U.U=p}; g.I.b8=function(){var p=window.navigator.onLine;return p===void 0?!0:p}; g.I.wE=function(){this.Z=!0}; g.I.listen=function(p,x){return this.U.listen(p,x)}; g.I.tW=function(p){p=oH(this.U,p);p.then(function(x){g.Ly("use_cfr_monitor")&&tQ().requestComplete("generate_204",x)}); return p}; zI.prototype.sendNetworkCheckRequest=zI.prototype.tW;zI.prototype.listen=zI.prototype.listen;zI.prototype.enableErrorFlushing=zI.prototype.wE;zI.prototype.getWindowStatus=zI.prototype.b8;zI.prototype.networkStatusHint=zI.prototype.U9;zI.prototype.isNetworkAvailable=zI.prototype.CG;zI.getInstance=Kd1;g.M(g.wU,g.Bm);g.wU.prototype.CG=function(){var p=g.$t("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.Z)():!0}; g.wU.prototype.U9=function(p){var x=g.$t("yt.networkStatusManager.instance.networkStatusHint").bind(this.Z);x&&x(p)}; g.wU.prototype.tW=function(p){var x=this,a;return g.t(function(v){a=g.$t("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(x.Z);return g.Ly("skip_network_check_if_cfr")&&tQ().isEndpointCFR("generate_204")?v.return(new Promise(function(c){var J;x.U9(((J=window.navigator)==null?void 0:J.onLine)||!0);c(x.CG())})):a?v.return(a(p)):v.return(!0)})};var EL;g.M(yo,TI);yo.prototype.writeThenSend=function(p,x){x||(x={});x=Z2(p,x);g.GW()||(this.U=!1);TI.prototype.writeThenSend.call(this,p,x)}; yo.prototype.sendThenWrite=function(p,x,a){x||(x={});x=Z2(p,x);g.GW()||(this.U=!1);TI.prototype.sendThenWrite.call(this,p,x,a)}; yo.prototype.sendAndWrite=function(p,x){x||(x={});x=Z2(p,x);g.GW()||(this.U=!1);TI.prototype.sendAndWrite.call(this,p,x)}; yo.prototype.awaitInitialization=function(){return this.j.promise};var l8U=g.Fg.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.pG("ytNetworklessLoggingInitializationOptions",l8U);g.GI.prototype.isReady=function(){!this.config_&&dLT()&&(this.config_=g.sL());return!!this.config_};var tvO,AQ,qH;tvO=g.Fg.ytPubsubPubsubInstance||new g.kW;AQ=g.Fg.ytPubsubPubsubSubscribedKeys||{};qH=g.Fg.ytPubsubPubsubTopicToKeys||{};g.PA=g.Fg.ytPubsubPubsubIsSynchronous||{};g.kW.prototype.subscribe=g.kW.prototype.subscribe;g.kW.prototype.unsubscribeByKey=g.kW.prototype.fG;g.kW.prototype.publish=g.kW.prototype.publish;g.kW.prototype.clear=g.kW.prototype.clear;g.pG("ytPubsubPubsubInstance",tvO);g.pG("ytPubsubPubsubTopicToKeys",qH);g.pG("ytPubsubPubsubIsSynchronous",g.PA); g.pG("ytPubsubPubsubSubscribedKeys",AQ);var Miz={};g.M(Rj,g.y);Rj.prototype.append=function(p){if(!this.Z)throw Error("This does not support the append operation");p=p.BX();this.BX().appendChild(p)}; g.M(KX,Rj);KX.prototype.BX=function(){return this.U};g.M(dS,g.y);dS.prototype.onTouchStart=function(p){this.V=!0;this.Z=p.touches.length;this.U.isActive()&&(this.U.stop(),this.C=!0);p=p.touches;this.S=DY_(this,p)||p.length!=1;var x=p.item(0);this.S||!x?this.T=this.Y=Infinity:(this.Y=x.clientX,this.T=x.clientY);for(x=this.j.length=0;x=0)}if(x||p&&Math.pow(p.clientX-this.Y,2)+Math.pow(p.clientY-this.T,2)>25)this.B=!0}; dS.prototype.onTouchEnd=function(p){var x=p.changedTouches;x&&this.V&&this.Z==1&&!this.B&&!this.C&&!this.S&&DY_(this,x)&&(this.Zt=p,this.U.start());this.Z=p.touches.length;this.Z===0&&(this.B=this.V=!1,this.j.length=0);this.C=!1};var bC=Date.now().toString();var YZ={};var kZ=Symbol("injectionDeps");j4.prototype.toString=function(){return"InjectionToken("+this.name+")"}; TxU.prototype.resolve=function(p){return p instanceof Ij?DZ(this,p.key,[],!0):DZ(this,p,[])};var U0;var TK=window;var fX=g.Ly("web_enable_lifecycle_monitoring")&&QC()!==0,i6g=g.Ly("web_enable_lifecycle_monitoring");f88.prototype.cancel=function(){for(var p=g.k(this.U),x=p.next();!x.done;x=p.next())x=x.value,x.jobId===void 0||x.EB||this.scheduler.zg(x.jobId),x.EB=!0;this.Z.resolve()};g.I=CX.prototype;g.I.install=function(p){this.plugins.push(p);return this}; g.I.uninstall=function(){var p=this;g.g_.apply(0,arguments).forEach(function(x){x=p.plugins.indexOf(x);x>-1&&p.plugins.splice(x,1)})}; g.I.transition=function(p,x){var a=this;fX&&mYQ(this.state);var v=this.transitions.find(function(J){return Array.isArray(J.from)?J.from.find(function(R){return R===a.state&&J.to===p}):J.from===a.state&&J.to===p}); if(v){this.Z&&(CU1(this.Z),this.Z=void 0);oL8(this,p,x);this.state=p;fX&&mQ(this.state);v=v.action.bind(this);var c=this.plugins.filter(function(J){return J[p]}).map(function(J){return J[p]}); v(Xr8(this,c),x)}else throw Error("no transition specified from "+this.state+" to "+p);}; g.I.KTT=function(p){var x=g.g_.apply(1,arguments);g.ql();for(var a=g.k(p),v=a.next(),c={};!v.done;c={H9:void 0},v=a.next())c.H9=v.value,aCb(function(J){return function(){iC(J.H9.name);tJ(function(){return J.H9.callback.apply(J.H9,g.lf(x))}); oj(J.H9.name)}}(c))}; g.I.Mkr=function(p){var x=g.g_.apply(1,arguments),a,v,c,J;return g.t(function(R){R.Z==1&&(g.ql(),a=g.k(p),v=a.next(),c={});if(R.Z!=3){if(v.done)return R.Ia(0);c.G1=v.value;c.Iq=void 0;J=function(d){return function(){iC(d.G1.name);var b=tJ(function(){return d.G1.callback.apply(d.G1,g.lf(x))}); Dn(b)?d.Iq=g.Ly("web_lifecycle_error_handling_killswitch")?b.then(function(){oj(d.G1.name)}):b.then(function(){oj(d.G1.name)},function(r){S8z(r); oj(d.G1.name)}):oj(d.G1.name)}}(c); aCb(J);return c.Iq?g.C(R,c.Iq,3):R.Ia(3)}c={G1:void 0,Iq:void 0};v=a.next();return R.Ia(2)})}; g.I.qv=function(p){var x=g.g_.apply(1,arguments),a=this,v=p.map(function(c){return{Ls:function(){iC(c.name);tJ(function(){return c.callback.apply(c,g.lf(x))}); oj(c.name)}, priority:XJ(a,c)}}); v.length&&(this.Z=new f88(v))}; g.vo.Object.defineProperties(CX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var wS;g.M(zK,CX);zK.prototype.C=function(p,x){var a=this;this.U=g.AX(0,function(){a.currentState==="application_navigating"&&a.transition("none")},5E3); p(x==null?void 0:x.event)}; zK.prototype.S=function(p,x){this.U&&(g.zp.zg(this.U),this.U=null);p(x==null?void 0:x.event)};var Kr=[];g.pG("yt.logging.transport.getScrapedGelPayloads",function(){return Kr});E0.prototype.storePayload=function(p,x){p=yC(p);this.store[p]?this.store[p].push(x):(this.Z={},this.store[p]=[x]);this.U++;g.Ly("more_accurate_gel_parser")&&(x=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(x));return p}; E0.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var x=ZZ(this,p.keys.splice(0,1)[0]),a=[],v=0;v=0){v=!1;break a}}v=!0}v&&(x=SJ(x))&&this.W_(x)}}; g.I.ag=function(p){return p}; g.I.onTouchStart=function(p){this.O7.onTouchStart(p)}; g.I.onTouchMove=function(p){this.O7.onTouchMove(p)}; g.I.onTouchEnd=function(p){if(this.O7)this.O7.onTouchEnd(p)}; g.I.W_=function(p){this.layoutId?this.vO.executeCommand(p,this.layoutId):(p=new g.gr("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Uq(p))}; g.I.createServerVe=function(p,x){this.api.createServerVe(p,this);this.api.setTrackingParams(p,x)}; g.I.logVisibility=function(p,x){this.api.hasVe(p)&&this.api.logVisibility(p,x,this.interactionLoggingClientData)}; g.I.PO=function(){this.clear(null);this.IA(this.T4);for(var p=g.k(this.u$),x=p.next();!x.done;x=p.next())this.IA(x.value);g.s6.prototype.PO.call(this)};g.M(HF,vF); HF.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);this.U=x;if(x.text==null&&x.icon==null)g.Hp(Error("ButtonRenderer did not have text or an icon set."));else{switch(x.style||null){case "STYLE_UNKNOWN":p="ytp-ad-button-link";break;default:p=null}p!=null&&g.$W(this.element,p);x.text!=null&&(p=g.Jv(x.text),g.CZ(p)||(this.element.setAttribute("aria-label",p),this.j=new g.s6({J:"span",K:"ytp-ad-button-text",wr:p}),g.Z(this,this.j),this.j.WO(this.element)));x.accessibilityData&&x.accessibilityData.accessibilityData&& x.accessibilityData.accessibilityData.label&&!g.CZ(x.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",x.accessibilityData.accessibilityData.label);x.icon!=null&&(x=U6(x.icon,this.B),x!=null&&(this.Z=new g.s6({J:"span",K:"ytp-ad-button-icon",N:[x]}),g.Z(this,this.Z)),this.S?MW(this.element,this.Z.element,0):this.Z.WO(this.element))}}; HF.prototype.clear=function(){this.hide()}; HF.prototype.onClick=function(p){vF.prototype.onClick.call(this,p);p=g.k(zyJ(this));for(var x=p.next();!x.done;x=p.next())x=x.value,this.layoutId?this.vO.executeCommand(x,this.layoutId):g.Uq(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.M(Tn,g.y);Tn.prototype.PO=function(){this.Z&&g.jh(this.Z);this.U.clear();Qk=null;g.y.prototype.PO.call(this)}; Tn.prototype.register=function(p,x){x&&this.U.set(p,x)}; var Qk=null;g.M(fV,vF); fV.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);p=x.hoverText||null;x=x.button&&g.O(x.button,g.et)||null;x==null?g.Uq(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,void 0,void 0,void 0,void 0,this.j),g.Z(this,this.button),this.button.init(uA("button"),x,this.macros),p&&this.button.element.setAttribute("aria-label",g.Jv(p)),this.button.WO(this.element),this.T&&!g.xW(this.button.element, "ytp-ad-clickable")&&g.$W(this.button.element,"ytp-ad-clickable"),this.j&&g.$W(this.button.element,"ytp-ad-hover-text-button--clean-player"),p&&(this.Z=new g.s6({J:"div",K:"ytp-ad-hover-text-container"}),this.S&&(x=new g.s6({J:"div",K:"ytp-ad-hover-text-callout"}),x.WO(this.Z.element),g.Z(this,x)),g.Z(this,this.Z),this.Z.WO(this.element),x=mh(p),MW(this.Z.element,x,0)),this.show())}; fV.prototype.hide=function(){this.button&&this.button.hide();this.Z&&this.Z.hide();vF.prototype.hide.call(this)}; fV.prototype.show=function(){this.button&&this.button.show();vF.prototype.show.call(this)};g.M(XT,vF); XT.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);a=(p=x.thumbnail)&&CV(p)||"";g.CZ(a)?Math.random()<.01&&g.Hp(Error("Found AdImage without valid image URL")):(this.U?g.Ab(this.element,"backgroundImage","url("+a+")"):dI(this.element,{src:a}),dI(this.element,{alt:p&&p.accessibility&&p.accessibility.label||""}),x&&x.adRendererCommands&&x.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; XT.prototype.clear=function(){this.hide()};g.M(ix,vF);g.I=ix.prototype;g.I.hide=function(){vF.prototype.hide.call(this);this.j&&this.j.focus()}; g.I.show=function(){this.j=document.activeElement;vF.prototype.show.call(this);this.B.focus()}; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);this.Z=x;x.dialogMessages||x.title!=null?x.confirmLabel==null?g.Uq(Error("ConfirmDialogRenderer.confirmLabel was not set.")):x.cancelLabel==null?g.Uq(Error("ConfirmDialogRenderer.cancelLabel was not set.")):gzN(this,x):g.Uq(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.I.clear=function(){g.UU(this.U);this.hide()}; g.I.K6=function(){this.hide()}; g.I.dg=function(){var p=this.Z.cancelEndpoint;p&&(this.layoutId?this.vO.executeCommand(p,this.layoutId):g.Uq(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.I.Xb=function(){var p=this.Z.confirmNavigationEndpoint||this.Z.confirmEndpoint;p&&(this.layoutId?this.vO.executeCommand(p,this.layoutId):g.Uq(Error("Missing layoutId for confirm dialog.")));this.hide()};g.M(oX,vF);g.I=oX.prototype; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);this.j=x;if(x.defaultText==null&&x.defaultIcon==null)g.Uq(Error("ToggleButtonRenderer must have either text or icon set."));else if(x.defaultIcon==null&&x.toggledIcon!=null)g.Uq(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(x.style){switch(x.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":p="ytp-ad-toggle-button-default-style";break;default:p=null}p!=null&&g.$W(this.B,p)}p={};x.defaultText? (a=g.Jv(x.defaultText),g.CZ(a)||(p.buttonText=a,this.api.L().experiments.cO("a11y_h5_associate_survey_question")||this.U.setAttribute("aria-label",a),this.api.L().experiments.cO("fix_h5_toggle_button_a11y")&&this.Z.setAttribute("aria-label",a))):g.sO(this.F5,!1);x.defaultTooltip&&(p.tooltipText=x.defaultTooltip,this.U.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",x.defaultTooltip));x.defaultIcon?(a=U6(x.defaultIcon),this.updateValue("untoggledIconTemplateSpec",a),x.toggledIcon?(this.pI= !0,a=U6(x.toggledIcon),this.updateValue("toggledIconTemplateSpec",a)):(g.sO(this.T,!0),g.sO(this.S,!1)),g.sO(this.U,!1)):g.sO(this.Z,!1);g.lu(p)||this.update(p);x.isToggled&&(g.$W(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(x.isToggled));tv(this);this.X(this.element,"change",this.kA);this.show()}}; g.I.onClick=function(p){this.u$.length>0&&(this.toggleButton(!this.isToggled()),this.kA());vF.prototype.onClick.call(this,p)}; g.I.kA=function(){g.cG(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var p=g.k(ZPb(this,this.isToggled())),x=p.next();!x.done;x=p.next())x=x.value,this.layoutId?this.vO.executeCommand(x,this.layoutId):g.Uq(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);tv(this)}; g.I.clear=function(){this.hide()}; g.I.toggleButton=function(p){g.cG(this.B,"ytp-ad-toggle-button-toggled",p);this.U.checked=p;tv(this)}; g.I.isToggled=function(){return this.U.checked};g.M(zn,kz);zn.prototype.C=function(p){if(Array.isArray(p)){p=g.k(p);for(var x=p.next();!x.done;x=p.next())x=x.value,x instanceof GW1&&this.j(x)}};g.M(wN,vF);g.I=wN.prototype;g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);x.reasons?x.confirmLabel==null?g.Uq(Error("AdFeedbackRenderer.confirmLabel was not set.")):(x.cancelLabel==null&&g.Hp(Error("AdFeedbackRenderer.cancelLabel was not set.")),x.title==null&&g.Hp(Error("AdFeedbackRenderer.title was not set.")),Pog(this,x)):g.Uq(Error("AdFeedbackRenderer.reasons were not set."))}; g.I.clear=function(){IQ(this.S);IQ(this.T);this.B.length=0;this.hide()}; g.I.hide=function(){this.U&&this.U.hide();this.Z&&this.Z.hide();vF.prototype.hide.call(this);this.j&&this.j.focus()}; g.I.show=function(){this.U&&this.U.show();this.Z&&this.Z.show();this.j=document.activeElement;vF.prototype.show.call(this);this.S.focus()}; g.I.XL=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.I.S8T=function(){this.hide()}; E6.prototype.BX=function(){return this.U.element}; E6.prototype.getCommand=function(){return this.Z}; E6.prototype.isChecked=function(){return this.j.checked};g.M(yk,ix);yk.prototype.K6=function(p){ix.prototype.K6.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; yk.prototype.dg=function(p){ix.prototype.dg.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; yk.prototype.Xb=function(p){ix.prototype.Xb.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.M(gN,vF);g.I=gN.prototype; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);this.S=x;if(x.dialogMessage==null&&x.title==null)g.Uq(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{x.confirmLabel==null&&g.Hp(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(p=x.closeOverlayRenderer&&g.O(x.closeOverlayRenderer,g.et)||null)this.U=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Z(this,this.U),this.U.init(uA("button"),p,this.macros),this.U.WO(this.element);x.title&&(p=g.Jv(x.title),this.updateValue("title",p));if(x.adReasons)for(p=x.adReasons,a=0;a=this.hG?(this.pI.hide(),this.tG=!0,this.publish("i")):this.j&&this.j.isTemplated()&&(p=Math.max(0,Math.ceil((this.hG-p)/1E3)),p!=this.Ra&&(O6(this.j,{TIME_REMAINING:String(p)}),this.Ra=p)))}};g.M(ux,Np);g.I=ux.prototype; g.I.init=function(p,x,a){Np.prototype.init.call(this,p,x,a);if(x.image&&x.image.thumbnail)if(x.headline)if(x.description)if((p=x.actionButton&&g.O(x.actionButton,g.et))&&p.navigationEndpoint){var v=this.api.getVideoData(2);if(v!=null)if(x.image&&x.image.thumbnail){var c=x.image.thumbnail.thumbnails;c!=null&&c.length>0&&g.CZ(g.Xw(c[0].url))&&(c[0].url=v.profilePicture)}else g.Hp(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.j.init(uA("ad-image"),x.image,a);this.S.init(uA("ad-text"), x.headline,a);this.B.init(uA("ad-text"),x.description,a);this.Z.init(uA("button"),p,a);a=ZC(this.Z.element);gg(this.Z.element,a+" This link opens in new tab");this.pI=p.navigationEndpoint;this.api.Ef()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.zI.bind(this));this.F5=x.startMs||0;Av(this)}else g.Uq(Error("FlyoutCtaRenderer has no valid action button."));else g.Uq(Error("FlyoutCtaRenderer has no description AdText."));else g.Uq(Error("FlyoutCtaRenderer has no headline AdText.")); else g.Hp(Error("FlyoutCtaRenderer has no image."))}; g.I.onClick=function(p){Np.prototype.onClick.call(this,p);this.api.pauseVideo();!g.kk(this.Z.element,p.target)&&this.pI&&(this.layoutId?this.vO.executeCommand(this.pI,this.layoutId):g.Uq(Error("Missing layoutId for flyout cta.")))}; g.I.Xu=function(){if(this.U){var p=this.U.getProgressState();(p&&p.current||this.hG)&&1E3*p.current>=this.F5&&(PF(this),g.sm(this.element,"ytp-flyout-cta-inactive"),this.Z.element.removeAttribute("tabIndex"))}}; g.I.nJ=function(){this.clear()}; g.I.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.zI.bind(this))}; g.I.show=function(){this.Z&&this.Z.show();Np.prototype.show.call(this)}; g.I.hide=function(){this.Z&&this.Z.hide();Np.prototype.hide.call(this)}; g.I.zI=function(p){p=="hidden"?this.show():this.hide()};g.M(Vk,vF);g.I=Vk.prototype; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);this.U=x;if(this.U.rectangle)for(p=this.U.likeButton&&g.O(this.U.likeButton,kS),x=this.U.dislikeButton&&g.O(this.U.dislikeButton,kS),this.j.init(uA("toggle-button"),p,a),this.Z.init(uA("toggle-button"),x,a),this.X(this.element,"change",this.Ue),this.B.show(100),this.show(),a=g.k(this.U&&this.U.impressionCommands||[]),p=a.next();!p.done;p=a.next())p=p.value,this.layoutId?this.vO.executeCommand(p,this.layoutId):g.Uq(Error("Missing layoutId for instream user sentiment."))}; g.I.clear=function(){this.hide()}; g.I.hide=function(){this.j.hide();this.Z.hide();vF.prototype.hide.call(this)}; g.I.show=function(){this.j.show();this.Z.show();vF.prototype.show.call(this)}; g.I.Ue=function(){T8g(this.element,"ytp-ad-instream-user-sentiment-selected");this.U.postMessageAction&&this.api.NT("onYtShowToast",this.U.postMessageAction);this.B.hide()}; g.I.onClick=function(p){this.u$.length>0&&this.Ue();vF.prototype.onClick.call(this,p)};g.M(FT,g.y);g.I=FT.prototype;g.I.PO=function(){this.reset();g.y.prototype.PO.call(this)}; g.I.reset=function(){g.UU(this.B);this.S=!1;this.U&&this.U.stop();this.C.stop();this.j&&(this.j=!1,this.V.play())}; g.I.start=function(){this.reset();this.B.X(this.Z,"mouseover",this.pK,this);this.B.X(this.Z,"mouseout",this.Z_,this);this.Zt&&(this.B.X(this.Z,"focusin",this.pK,this),this.B.X(this.Z,"focusout",this.Z_,this));this.U?this.U.start():(this.S=this.j=!0,g.Ab(this.Z,{opacity:this.T}))}; g.I.pK=function(){this.j&&(this.j=!1,this.V.play());this.C.stop();this.U&&this.U.stop()}; g.I.Z_=function(){this.S?this.C.start():this.U&&this.U.start()}; g.I.Fs=function(){this.j||(this.j=!0,this.Y.play(),this.S=!0)};var vl_=[new p5("b.f_",!1,0),new p5("j.s_",!1,2),new p5("r.s_",!1,4),new p5("e.h_",!1,6),new p5("i.s_",!0,8),new p5("s.t_",!1,10),new p5("p.h_",!1,12),new p5("s.i_",!1,14),new p5("f.i_",!1,16),new p5("a.b_",!1,18),new p5("a.o_",!1),new p5("g.o_",!1,22),new p5("p.i_",!1,24),new p5("p.m_",!1),new p5("n.k_",!0,20),new p5("i.f_",!1),new p5("a.s_",!0),new p5("m.c_",!1),new p5("n.h_",!1,26),new p5("o.p_",!1),new p5("m.p_",!0,28),new p5("o.a_",!1),new p5("d.p_",!1),new p5("e.i_",!1)].reduce(function(p,x){p[x.Z]= x;return p},{});g.M(Rr,Np);g.I=Rr.prototype; g.I.init=function(p,x,a){Np.prototype.init.call(this,p,x,a);this.pI=x;(this.F5=Jx1(this))&&g.Hp(Error("hasAdControlInClickCommands_ is true."));if(!x||g.lu(x))g.Uq(Error("SkipButtonRenderer was not specified or empty."));else if(!x.message||g.lu(x.message))g.Uq(Error("SkipButtonRenderer.message was not specified or empty."));else if(p=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},x=U6(p),x==null?g.Uq(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+p.iconType+".")): (this.api.L().D("disable_touch_events_on_skip_button")&&(x.G=Object.assign({},x.G,{"aria-hidden":"true",qva:"false"})),this.j=new g.s6({J:"button",CI:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],N:[{J:"span",K:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",N:[x]}]}),g.Z(this,this.j),this.j.WO(this.B.element),this.Z=new Gn(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,"ytp-ad-skip-button-text"),this.S&&this.Z.element.classList.add("ytp-ad-skip-button-text-centered"), this.Z.init(uA("ad-text"),this.pI.message,a),g.Z(this,this.Z),MW(this.j.element,this.Z.element,0)),!this.api.L().D("disable_touch_events_on_skip_button")){var v=v===void 0?null:v;a=this.api.L();!(this.u$.length>0)&&a.Z&&(Ac?0:"ontouchstart"in document.documentElement&&(uO1()||bN()))&&(this.IA(this.T4),v&&this.IA(v),this.u$=[this.X(this.element,"touchstart",this.onTouchStart,this),this.X(this.element,"touchmove",this.onTouchMove,this),this.X(this.element,"touchend",this.onTouchEnd,this)])}}; g.I.clear=function(){this.hG.reset();this.hide()}; g.I.hide=function(){this.B.hide();this.Z&&this.Z.hide();PF(this);Np.prototype.hide.call(this)}; g.I.onClick=function(p){if(this.j!=null){if(p){var x=p||window.event;x.returnValue=!1;x.preventDefault&&x.preventDefault()}var a;if(aHI(p,{contentCpn:((a=this.api.getVideoData(1))==null?void 0:a.clientPlaybackNonce)||""})===0)this.api.NT("onAbnormalityDetected");else if(Np.prototype.onClick.call(this,p),this.publish("j"),this.api.NT("onAdSkip"),this.tG||!this.F5)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.I.ag=function(p){if(!this.tG)return this.F5&&sE("SkipButton click commands not pruned while ALC exist"),p;var x,a=(x=g.O(p,g.K5))==null?void 0:x.commands;if(!a)return p;p=[];for(x=0;x=this.S&&Rsf(this,!0)};g.M(b8,HF);b8.prototype.init=function(p,x,a){HF.prototype.init.call(this,p,x,a);p=!1;x.text!=null&&(p=g.Jv(x.text),p=!g.CZ(p));p?x.navigationEndpoint==null?g.Hp(Error("No visit advertiser clickthrough provided in renderer,")):x.style!=="STYLE_UNKNOWN"?g.Hp(Error("Button style was not a link-style type in renderer,")):this.show():g.Hp(Error("No visit advertiser text was present in the renderer."))};g.M(rB,vF); rB.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);p=x.text;g.CZ(cF(p))?g.Hp(Error("SimpleAdBadgeRenderer has invalid or empty text")):(p&&p.text&&(x=p.text,this.j&&!this.Z&&(x=this.api.L(),x=p.text+" "+(x&&x.Z?"\u2022":"\u00b7")),x={text:x,isTemplated:p.isTemplated},p.style&&(x.style=p.style),p.targetId&&(x.targetId=p.targetId),p=new Gn(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),p.init(uA("simple-ad-badge"),x,a),p.WO(this.element),g.Z(this,p)),this.show())}; rB.prototype.clear=function(){this.hide()};g.M(BC,Vj);g.M(l8,g.Fx);g.I=l8.prototype;g.I.hQ=function(){return this.durationMs}; g.I.stop=function(){this.U&&this.eV.IA(this.U)}; g.I.SV=function(p){this.Z={seekableStart:0,seekableEnd:this.durationMs/1E3,current:p.current};this.publish("h")}; g.I.getProgressState=function(){return this.Z}; g.I.sZ=function(p){g.Jz(p,2)&&this.publish("g")};g.M(L5,g.Fx);g.I=L5.prototype;g.I.hQ=function(){return this.durationMs}; g.I.start=function(){this.U||(this.U=!0,this.timer.start())}; g.I.stop=function(){this.U&&(this.U=!1,this.timer.stop())}; g.I.SV=function(){this.pT+=100;var p=!1;this.pT>this.durationMs&&(this.pT=this.durationMs,this.timer.stop(),p=!0);this.Z={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.pT/1E3};this.publish("h");p&&this.publish("g")}; g.I.getProgressState=function(){return this.Z};g.M(jG,Np);g.I=jG.prototype;g.I.init=function(p,x,a){Np.prototype.init.call(this,p,x,a);var v;if(x==null?0:(v=x.templatedCountdown)==null?0:v.templatedAdText){p=x.templatedCountdown.templatedAdText;if(!p.isTemplated){g.Hp(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.Z=new Gn(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);this.Z.init(uA("ad-text"),p,{});this.Z.WO(this.element);g.Z(this,this.Z)}this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){PF(this);Np.prototype.hide.call(this)}; g.I.nJ=function(){this.hide()}; g.I.Xu=function(){if(this.U!=null){var p=this.U.getProgressState();if(p!=null&&p.current!=null&&this.Z){var x=this.U instanceof l8?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:p.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.U instanceof L5?p.seekableEnd:this.api.getDuration(2,!1);p=p.current;var a,v,c=((a=this.api.getVideoData())==null?0:(v=a.O8)==null?0:v.call(a))?Math.max(x-p,0):x-p;O6(this.Z,{FORMATTED_AD_DURATION_REMAINING:String(g.YI(c)), TIME_REMAINING:String(Math.ceil(c))})}}}; g.I.show=function(){Av(this);Np.prototype.show.call(this)};g.M(Ir,Gn);Ir.prototype.onClick=function(p){Gn.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType)};g.M(WC,vF);WC.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(p=x.content){g.Dp(this.element,p);var a,v;x=((a=x.interaction)==null?void 0:(v=a.accessibility)==null?void 0:v.label)||p;this.element.setAttribute("aria-label",x)}else g.Uq(Error("AdSimpleAttributedString does not have text content"))}; WC.prototype.clear=function(){this.hide()}; WC.prototype.onClick=function(p){vF.prototype.onClick.call(this,p)};g.M(kI,vF); kI.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});(p=x.label)&&p.content&&!g.CZ(p.content)?(this.adBadgeText.init(uA("ad-simple-attributed-string"),new Me(p)),(x=x.adPodIndex)&&x.content&&!g.CZ(x.content)&&(this.U=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),this.U.WO(this.element),g.Z(this,this.U),this.U.element.classList.add("ytp-ad-badge__pod-index"),this.U.init(uA("ad-simple-attributed-string"),new Me(x))),this.element.classList.add(this.Z?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Uq(Error("No label is returned in AdBadgeViewModel."))}; kI.prototype.show=function(){this.adBadgeText.show();var p;(p=this.U)==null||p.show();vF.prototype.show.call(this)}; kI.prototype.hide=function(){this.adBadgeText.hide();var p;(p=this.U)==null||p.hide();vF.prototype.hide.call(this)};g.M(D5,vF);D5.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});(p=x.adPodIndex)&&p.content&&!g.CZ(p.content)&&(this.U=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),this.U.WO(this.element),g.Z(this,this.U),this.U.init(uA("ad-simple-attributed-string"),new Me(p)),x.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()}; D5.prototype.show=function(){var p;(p=this.U)==null||p.show();vF.prototype.show.call(this)}; D5.prototype.hide=function(){var p;(p=this.U)==null||p.hide();vF.prototype.hide.call(this)};g.M(UE,vF); UE.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(x!=null&&x.text){var a;if(((a=x.text)==null?0:a.content)&&!g.CZ(x.text.content)){this.U=new g.s6({J:"div",K:"ytp-ad-disclosure-banner__text",wr:x.text.content});g.Z(this,this.U);this.U.WO(this.element);var v,c;p=((v=x.interaction)==null?void 0:(c=v.accessibility)==null?void 0:c.label)||x.text.content;this.element.setAttribute("aria-label",p);var J;if((J=x.interaction)==null?0:J.onTap)this.Z=new g.s6({J:"div",K:"ytp-ad-disclosure-banner__chevron",N:[g.bx()]}), g.Z(this,this.Z),this.Z.WO(this.element);this.show()}}else g.Uq(Error("No banner text found in AdDisclosureBanner."))}; UE.prototype.clear=function(){this.hide()};g.M(Q4,g.s6);Q4.prototype.SV=function(){var p=this.Z.getProgressState(),x=p.seekableEnd;this.api.getPresentingPlayerType()===2&&(x=this.j?this.j/1E3:p.seekableEnd);this.progressBar.style.width=TN(new HC(p.seekableStart,x),p.current,0)*100+"%"}; Q4.prototype.onStateChange=function(){g.$O(this.api.L())||(this.api.getPresentingPlayerType()===2?this.U===-1&&(this.show(),this.U=this.Z.subscribe("h",this.SV,this),this.SV()):this.U!==-1&&(this.hide(),this.Z.fG(this.U),this.U=-1))};g.M(mP,vF); mP.prototype.init=function(p,x,a,v){vF.prototype.init.call(this,p,x,a);if(x.skipOrPreviewRenderer){if(p=g.O(x.skipOrPreviewRenderer,M5))a=new dB(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z,this.T),a.WO(this.V6),a.init(uA("skip-button"),p,this.macros),g.Z(this,a);if(p=g.O(x.skipOrPreviewRenderer,M5))var c=p.skipOffsetMilliseconds}x.brandInteractionRenderer&&(p=x.brandInteractionRenderer.brandInteractionRenderer,a=new Vk(this.api,this.layoutId,this.interactionLoggingClientData,this.vO), a.WO(this.F5),a.init(uA("instream-user-sentiment"),p,this.macros),g.Z(this,a));if(p=g.O(x,j0Z))if(p=g.O(p,j0Z))a=new ux(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z,!!x.showWithoutLinkedMediaLayout),g.Z(this,a),a.WO(this.S),a.init(uA("flyout-cta"),p,this.macros);v=v&&v.videoAdDurationSeconds;x.adBadgeRenderer&&(a=x.adBadgeRenderer,p=g.O(a,Nd),p!=null?(a=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!1),g.Z(this,a),a.WO(this.U),a.init(uA("ad-badge"), p,this.macros),this.j=a.element):(p=a.simpleAdBadgeRenderer,p==null&&(p={text:{text:"An\u00fancio",isTemplated:!1}}),a=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0),g.Z(this,a),a.WO(this.U),a.init(uA("simple-ad-badge"),p,this.macros)));x.adPodIndex&&(p=g.O(x.adPodIndex,mgO),p!=null&&(a=new D5(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,a),a.WO(this.U),a.init(uA("ad-pod-index"),p)));x.adDurationRemaining&&!x.showWithoutLinkedMediaLayout&& (p=x.adDurationRemaining.adDurationRemainingRenderer,p==null&&(p={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),v=new jG(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z,v,!1),g.Z(this,v),v.WO(this.U),v.init(uA("ad-duration-remaining"),p,this.macros));x.adInfoRenderer&&(v=g.O(x.adInfoRenderer,q2))&&(p=new ZE(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.element,void 0,!1),g.Z(this,p),this.j!==null?this.U.insertBefore(p.element, this.j.nextSibling):p.WO(this.U),p.init(uA("ad-info-hover-text-button"),v,this.macros));x.visitAdvertiserRenderer&&(p=g.O(x.visitAdvertiserRenderer,g.et))&&(a=rx1(this)&&this.B?this.B:this.U)&&(v=new b8(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,v),v.WO(a),v.init(uA("visit-advertiser"),p,this.macros),En(v.element),p=ZC(v.element),gg(v.element,p+" This link opens in new tab"));!(v=this.api.L())||g.pk(v)||g.nH(v)||v.controlsType!="3"&&!v.disableOrganicUi||(c=new Q4(this.api, this.Z,c,!1),c.WO(this.hG),g.Z(this,c));x.adDisclosureBannerRenderer&&(x=g.O(x.adDisclosureBannerRenderer,Q0$))&&(c=new UE(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),c.WO(this.pI),c.init(uA("ad-disclosure-banner"),x),g.Z(this,c));this.api.L().D("enable_updated_html5_player_focus_style")&&g.$W(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; mP.prototype.clear=function(){this.hide()};g.C5.prototype.flush=function(p,x){p=p===void 0?[]:p;x=x===void 0?!1:x;if(g.Ly("enable_client_streamz_web")){p=g.k(p);for(var a=p.next();!a.done;a=p.next())a=u9I(a.value),this.U&&TM(a,d8,2,this.U),a={serializedIncrementBatch:g.m2(a.j())},g.ab("streamzIncremented",a,{sendIsolatedPayload:x})}}; g.M(lHg,g.C5);var bY_=new Map;XA.prototype.set=function(p,x,a){a=a!==void 0?Date.now()+a:void 0;this.U.set(p,x,a)}; XA.prototype.get=function(p){return this.U.get(p)}; XA.prototype.remove=function(p){this.U.remove(p)};var Yjo=null;var wB=null,EE=null,y4=null,WA1=null;g.pG("yt.www.ads.eventcache.getLastCompanionData",function(){return wB}); g.pG("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.pG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return EE}); g.pG("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return y4}); g.pG("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return WA1});var DM_=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);gB.prototype.handleResponse=function(p,x){if(!x)throw Error("request needs to be passed into ConsistencyService");var a,v;x=((a=x.NA.context)==null?void 0:(v=a.request)==null?void 0:v.consistencyTokenJars)||[];var c;(p=(c=p.responseContext)==null?void 0:c.consistencyTokenJar)&&this.replace(x,p)}; gB.prototype.replace=function(p,x){p=g.k(p);for(var a=p.next();!a.done;a=p.next())delete this.U[a.value.encryptedTokenJarContents];HFo(this,x)};var Zwy=window.location.hostname.split(".").slice(-2).join("."),fg;GN.getInstance=function(){fg=g.$t("yt.clientLocationService.instance");fg||(fg=new GN,g.pG("yt.clientLocationService.instance",fg));return fg}; g.I=GN.prototype; g.I.setLocationOnInnerTubeContext=function(p){p.client||(p.client={});if(this.U)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.U.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.U.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.U.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.j||this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.j|| this.locationPlayabilityToken}; g.I.handleResponse=function(p){var x;p=(x=p.responseContext)==null?void 0:x.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.U=void 0,g.gx("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Z5(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):g.fy("YT_CL",JSON.stringify({loctok:p}),15552E3,Zwy,!0))}; g.I.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=Z5(this))&&this.localStorage.remove("yt-location-playability-token"):g.Xr("YT_CL");this.j=void 0;this.Z!==-1&&(clearTimeout(this.Z),this.Z=-1)}; g.I.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var x=!1,a=1E4;g.gx("INNERTUBE_CLIENT_NAME")==="MWEB"&&(x=!0,a=15E3);return new Promise(function(v,c){navigator.geolocation.getCurrentPosition(function(J){p.U=J;v(J)},function(J){c(J)},{enableHighAccuracy:x, maximumAge:0,timeout:a})})}; g.I.createUnpluggedLocationInfo=function(p){var x={};p=p.coords;if(p==null?0:p.latitude)x.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)x.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)x.locationRadiusMeters=Math.round(p.accuracy);return x}; g.I.createLocationInfo=function(p){var x={};p=p.coords;if(p==null?0:p.latitude)x.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)x.longitudeE7=Math.floor(p.longitude*1E7);return x};g.I=fH1.prototype;g.I.contains=function(p){return Object.prototype.hasOwnProperty.call(this.U,p)}; g.I.get=function(p){if(this.contains(p))return this.U[p]}; g.I.set=function(p,x){this.U[p]=x}; g.I.KD=function(){return Object.keys(this.U)}; g.I.remove=function(p){delete this.U[p]};Ne.prototype.getModuleId=function(p){return p.serviceId.getModuleId()}; Ne.prototype.get=function(p){a:{var x=this.mappings.get(p.toString());switch(x.type){case "mapping":p=x.value;break a;case "factory":x=x.value();this.mappings.set(p.toString(),{type:"mapping",value:x});p=x;break a;default:p=ru(x)}}return p}; Ne.prototype.registerService=function(p,x){this.mappings.set(p.toString(),{type:"mapping",value:x});return p}; new Ne;var Cg={},CMf=(Cg.WEB_UNPLUGGED="^unplugged/",Cg.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Cg.WEB_UNPLUGGED_OPS="^unplugged/",Cg.WEB_UNPLUGGED_PUBLIC="^unplugged/",Cg.WEB_CREATOR="^creator/",Cg.WEB_KIDS="^kids/",Cg.WEB_EXPERIMENTS="^experiments/",Cg.WEB_MUSIC="^music/",Cg.WEB_REMIX="^music/",Cg.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Cg.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Cg);qe.prototype.C=function(p,x,a){x=x===void 0?{}:x;a=a===void 0?JQ:a;var v={context:g.OE(p.clickTrackingParams,!1,this.B)};var c=this.Z(p);if(c){this.U(v,c,x);var J;x=g.PC(this.j());(c=(J=g.O(p.commandMetadata,g.W7))==null?void 0:J.apiUrl)&&(x=c);J=Lk8(iF(x));p=Object.assign({},{command:p},void 0);v={input:J,Sa:oy(J),NA:v,config:p};v.config.K$?v.config.K$.identity=a:v.config.K$={identity:a};return v}a=new g.gr("Error: Failed to create Request from Command.",p);g.Uq(a)}; g.vo.Object.defineProperties(qe.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.M(n5,qe);g.M(eG,n5);eG.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",Sa:oy("/getDatasyncIdsEndpoint","GET"),NA:{}}}; eG.prototype.j=function(){return[]}; eG.prototype.Z=function(){}; eG.prototype.U=function(){};var GLG={},bhJ=(GLG.GET_DATASYNC_IDS=Az(eG),GLG);var XV={},OwR=(XV["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",XV["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",XV["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",XV["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",XV["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",XV["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",XV["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", XV["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",XV["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",XV["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",XV["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",XV["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",XV["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",XV["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",XV["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", XV["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",XV["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",XV["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",XV["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",XV["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",XV["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",XV["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", XV["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",XV.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",XV["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",XV["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",XV["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",XV["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",XV["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",XV["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", XV["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",XV["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",XV["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",XV["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",XV["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",XV["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",XV["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",XV["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",XV["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",XV["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",XV.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",XV["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",XV["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",XV["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",XV["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",XV["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",XV["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",XV["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",XV["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",XV["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",XV["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",XV["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",XV["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",XV["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",XV["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",XV["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",XV["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",XV["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",XV["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",XV["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",XV["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",XV["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", XV["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",XV["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",XV["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",XV["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",XV["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",XV["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",XV["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",XV["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",XV["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", XV["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",XV["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",XV["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",XV["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",XV["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",XV["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",XV["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",XV["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", XV),iK={},ElT=(iK.auto_search="LATENCY_ACTION_AUTO_SEARCH",iK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iK.app_startup="LATENCY_ACTION_APP_STARTUP",iK.browse="LATENCY_ACTION_BROWSE",iK.cast_splash="LATENCY_ACTION_CAST_SPLASH",iK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iK.channels="LATENCY_ACTION_CHANNELS",iK.chips="LATENCY_ACTION_CHIPS",iK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", iK.editor="LATENCY_ACTION_EDITOR",iK.embed="LATENCY_ACTION_EMBED",iK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iK.explore="LATENCY_ACTION_EXPLORE",iK.favorites="LATENCY_ACTION_FAVORITES",iK.home="LATENCY_ACTION_HOME",iK.inboarding="LATENCY_ACTION_INBOARDING",iK.landing="LATENCY_ACTION_LANDING",iK.learning="LATENCY_ACTION_LEARNING", iK.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",iK.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",iK.library="LATENCY_ACTION_LIBRARY",iK.live="LATENCY_ACTION_LIVE",iK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",iK.management="LATENCY_ACTION_MANAGEMENT",iK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iK.onboarding="LATENCY_ACTION_ONBOARDING",iK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", iK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iK.prebuffer="LATENCY_ACTION_PREBUFFER",iK.prefetch="LATENCY_ACTION_PREFETCH",iK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iK.profile_switcher="LATENCY_ACTION_LOGIN",iK.projects="LATENCY_ACTION_PROJECTS",iK.reel_watch="LATENCY_ACTION_REEL_WATCH",iK.results="LATENCY_ACTION_RESULTS",iK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", iK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iK.review="LATENCY_ACTION_REVIEW",iK.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",iK.search_ui="LATENCY_ACTION_SEARCH_UI",iK.search_suggest="LATENCY_ACTION_SUGGEST",iK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iK.seek="LATENCY_ACTION_PLAYER_SEEK",iK.settings="LATENCY_ACTION_SETTINGS",iK.store="LATENCY_ACTION_STORE", iK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iK.tenx="LATENCY_ACTION_TENX",iK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iK.watch="LATENCY_ACTION_WATCH",iK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iK["watch,watch7"]="LATENCY_ACTION_WATCH",iK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iK["watch,watch7ad"]="LATENCY_ACTION_WATCH",iK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", iK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iK.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",iK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iK);Object.assign(ElT,OwR);g.M(va,RF);var FAQ=new Kh("aft-recorded",va);var NIX=g.Fg.ytLoggingGelSequenceIdObj_||{};g.pG("ytLoggingGelSequenceIdObj_",NIX);var Re=g.Fg.ytLoggingLatencyUsageStats_||{};g.pG("ytLoggingLatencyUsageStats_",Re);ca.prototype.tick=function(p,x,a,v){Kb(this,"tick_"+p+"_"+x)||g.ab("latencyActionTicked",{tickName:p,clientActionNonce:x},{timestamp:a,cttAuthInfo:v})}; ca.prototype.info=function(p,x,a){var v=Object.keys(p).join("");Kb(this,"info_"+v+"_"+x)||(p=Object.assign({},p),p.clientActionNonce=x,g.ab("latencyActionInfo",p,{cttAuthInfo:a}))}; ca.prototype.jspbInfo=function(p,x,a){for(var v="",c=0;c=c.length?(x.append(c),p-=c.length):p?(x.append(new Uint8Array(c.buffer,c.byteOffset,p)),a.append(new Uint8Array(c.buffer,c.byteOffset+p,c.length-p)),p=0):a.append(c);return{Et:x,vM:a}}; F_.prototype.isFocused=function(p){return p>=this.j&&p=64&&(this.S.set(p.subarray(0,64-this.Z),this.Z),x=64-this.Z,this.Z=0,$Qf(this,this.S,0));for(;x+64<=a;x+=64)$Qf(this,p,x);x=this.start&&(p=2&&a.ssdaiAdsConfig&&sE("Unexpected ad placement renderers length",p.slot,null,{length:v.length});var c;((c=a.adSlots)==null?0:c.some(function(J){var R,d;return((R=g.O(J,FZ))==null?void 0:(d=R.adSlotMetadata)==null?void 0:d.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||v.some(function(J){var R,d,b,r; return!!((R=J.renderer)==null?0:(d=R.linearAdSequenceRenderer)==null?0:(b=d.linearAds)==null?0:b.length)||!((r=J.renderer)==null||!r.instreamVideoAdRenderer)})||Hrb(p)})}; NI.prototype.yZ=function(){dSU(this.U)};Aw.prototype.Rs=function(){var p=this;K_1(this.Z,function(){var x=Gr(p.slot.clientMetadata,"metadata_type_ad_break_request_data");return x.cueProcessedMs?p.U.get().fetch({KO:x.getAdBreakUrl,MJ:new g.gZ(x.yE,x.T7),cueProcessedMs:x.cueProcessedMs}):p.U.get().fetch({KO:x.getAdBreakUrl,MJ:new g.gZ(x.yE,x.T7)})})}; Aw.prototype.yZ=function(){dSU(this.Z)};PE.prototype.Rs=function(){var p=this.slot.clientMetadata,x,a=(x=this.slot.fulfilledLayout)!=null?x:Gr(p,"metadata_type_fulfilled_layout");GKU(this.callback,this.slot,a)}; PE.prototype.yZ=function(){$e(this.callback,this.slot,new e("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")};nj.prototype.build=function(p,x){return x.fulfilledLayout||qI(x,{l2:["metadata_type_fulfilled_layout"]})?new PE(p,x):this.j(p,x)};g.M(e0,nj); e0.prototype.j=function(p,x){if(qI(x,{l2:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new NI(p,x,this.U,this.Z,this.E8,this.s7,this.Dt,this.SA,this.k0);if(qI(x,{l2:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Aw(p,x,this.U,this.Z,this.E8,this.s7);throw new e("Unsupported slot with type: "+x.slotType+" and client metadata: "+O7(x.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.M(ur,nj);ur.prototype.j=function(p,x){throw new e("Unsupported slot with type: "+x.slotType+" and client metadata: "+O7(x.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.I=T6J.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){}; g.I.release=function(){}; g.I.startRendering=function(p){if(p.layoutId!==this.layout.layoutId)this.callback.El(this.slot,p,new gy("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 x=Gr(p.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.g3(this.slot,p),ObJ(this.j, this.slot,x)):sE("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,p)}}; g.I.cE=function(p,x){p.layoutId!==this.layout.layoutId?this.callback.El(this.slot,p,new gy("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.wV(this.slot,p,x),mSz(this),SqN(this))};g.M($0,g.Fx);g.I=$0.prototype;g.I.x0=function(){return this.Z.slot}; g.I.Q6=function(){return this.Z.layout}; g.I.init=function(){this.j.get().addListener(this)}; g.I.release=function(){this.j.get().removeListener(this);this.dispose()}; g.I.Ub=function(){}; g.I.dW=function(){}; g.I.kU=function(){}; g.I.fk=function(){}; g.I.startRendering=function(p){var x=this;x0(this.Z,p,function(){return void x.fL()})}; g.I.fL=function(){this.j.get().fL(this.U)}; g.I.cE=function(p,x){var a=this;x0(this.Z,p,function(){var v=a.j.get();uMo(v,a.U,3);a.U=[];a.callback.wV(a.slot,p,x)})}; g.I.PO=function(){this.j.b$()||this.j.get().removeListener(this);g.Fx.prototype.PO.call(this)}; g.vo.Object.defineProperties($0.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.Z.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.Z.layout}}});dK.prototype.eg=function(p,x){x=x===void 0?!1:x;var a=(this.j.get(p)||[]).concat();if(x=x&&irI(p)){var v=this.j.get(x);v&&a.push.apply(a,g.lf(v))}Bn(this,p,a);this.U.add(p);x&&this.U.add(x)}; dK.prototype.Qp=function(p,x){x=x===void 0?!1:x;if(!this.U.has(p)){var a=x&&irI(p);a&&(x=!this.U.has(a));this.eg(p,x)}};g.M(zDo,Vj);g.M(IC,$0);g.I=IC.prototype;g.I.jh=function(p,x){cn("ads-engagement-panel-layout",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),g.O(this.Q6().renderingContent,TZ),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(x,a,v,c,J){return new zDo(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};g.M(Eio,Vj);g.M(M6,$0);g.I=M6.prototype;g.I.jh=function(p,x){cn("banner-image",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),g.O(this.Q6().renderingContent,UP),this.callback,"metadata_type_banner_image_layout_view_model",function(x,a,v,c,J){return new Eio(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};g.M(Wn,Vj);g.M(k0,$0);g.I=k0.prototype;g.I.jh=function(p,x){cn("action-companion",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),g.O(this.Q6().renderingContent,lb),this.callback,"metadata_type_action_companion_ad_renderer",function(x,a,v,c,J){return new Wn(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){x.layoutId===this.layout.layoutId?this.AG.Qp("impression"):this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};g.M(Zrx,Vj);g.M(Dk,$0);g.I=Dk.prototype;g.I.jh=function(p,x){cn("image-companion",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),g.O(this.Q6().renderingContent,kv),this.callback,"metadata_type_image_companion_ad_renderer",function(x,a,v,c,J){return new Zrx(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){x.layoutId===this.layout.layoutId?this.AG.Qp("impression"):this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};g.M(Orf,Vj);g.M(Uc,$0);g.I=Uc.prototype;g.I.jh=function(p,x){cn("shopping-companion",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(x,a,v,c,J){return new Orf(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){x.layoutId===this.layout.layoutId?this.AG.Qp("impression"):this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};g.M(Tw,$0);g.I=Tw.prototype;g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(x,a,v,c,J){return new Wn(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(){}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)}; g.I.jh=function(){};g.I=eD1.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){this.SA.get().addListener(this);this.SA.get().Is.push(this);var p=Gr(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=Gr(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");JE(this.layout.z$)&&xp(this.jD.get(),this.layout.layoutId,{t7:x,Oi:p,listener:this})}; g.I.release=function(){this.SA.get().removeListener(this);A__(this.SA.get(),this);JE(this.layout.z$)&&$p(this.jD.get(),this.layout.layoutId)}; g.I.startRendering=function(p){this.callback.g3(this.slot,p)}; g.I.cE=function(p,x){LbQ(this.s7.get())&&!this.U&&(this.AG.Qp("abandon"),this.U=!0);this.callback.wV(this.slot,p,x)}; g.I.KT=function(p){switch(p.id){case "part2viewed":this.AG.Qp("start");this.AG.Qp("impression");break;case "videoplaytime25":this.AG.Qp("first_quartile");break;case "videoplaytime50":this.AG.Qp("midpoint");break;case "videoplaytime75":this.AG.Qp("third_quartile");break;case "videoplaytime100":LbQ(this.s7.get())?this.U||(this.AG.Qp("complete"),this.U=!0):this.AG.Qp("complete");hE(this.AG)&&Lx(this.AG,Infinity,!0);YvU(this.s7.get())&&Hn(this.Z,Infinity,!0);break;case "engagedview":hE(this.AG)||this.AG.Qp("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:sE("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.I.onVolumeChange=function(){}; g.I.Tt=function(){}; g.I.D$=function(){}; g.I.Xl=function(){}; g.I.onFullscreenToggled=function(){}; g.I.GC=function(){}; g.I.Yi=function(){}; g.I.YI=function(p){YvU(this.s7.get())&&Hn(this.Z,p*1E3,!1);hE(this.AG)&&Lx(this.AG,p*1E3,!1)}; g.I.xD=function(){}; g.I.O9=function(){this.AG.Qp("active_view_measurable")}; g.I.B7=function(){this.AG.Qp("active_view_viewable")}; g.I.s9=function(){this.AG.Qp("active_view_fully_viewable_audible_half_duration")}; g.I.P7=function(){this.AG.Qp("audio_measurable")}; g.I.wd=function(){this.AG.Qp("audio_audible")};g.M(Q9,$0);g.I=Q9.prototype;g.I.init=function(){$0.prototype.init.call(this);var p=Gr(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),x={adsClientData:this.layout.Vp};this.U.push(new BC(p,this.layout.layoutId,Gr(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),x,!0))}; g.I.zW=function(){this.B||this.SA.get().resumeVideo(1)}; g.I.startRendering=function(p){$0.prototype.startRendering.call(this,p);d2(this.SA.get(),"ad-showing");this.callback.g3(this.slot,p);this.C.KA=this}; g.I.cE=function(p,x){$0.prototype.cE.call(this,p,x);b2(this.SA.get(),"ad-showing");nJ(this.C,this)}; g.I.jh=function(p){switch(p){case "ad-info-icon-button":(this.B=this.SA.get().Qw(1))||this.SA.get().pauseVideo();break;case "visit-advertiser":this.SA.get().pauseVideo()}}; g.I.PO=function(){$0.prototype.PO.call(this)};g.M(mK,Vj);g.M(Sa,$0);g.I=Sa.prototype;g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(x,a,v,c,J){return new mK(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(){}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)}; g.I.jh=function(){};g.M(fx,Vj);g.M(Cx,$0);Cx.prototype.init=function(){$0.prototype.init.call(this);this.U.push(new fx(g.O(this.layout.renderingContent,ZU),this.layout.layoutId,{adsClientData:this.layout.Vp}))}; Cx.prototype.jh=function(){Nu(this.B.get(),this.C)&&vn(this.Dt.get(),3)}; Cx.prototype.startRendering=function(p){$0.prototype.startRendering.call(this,p);this.callback.g3(this.slot,p)}; Cx.prototype.PO=function(){$0.prototype.PO.call(this)};g.M(Xc,Vj);g.M(ic,$0);ic.prototype.init=function(){$0.prototype.init.call(this);var p=g.O(this.layout.renderingContent,Pn)||Gr(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),x=aC(this.AG);this.U.push(new Xc(p,x,this.layout.layoutId,{adsClientData:this.layout.Vp},!0,!0))}; ic.prototype.startRendering=function(p){$0.prototype.startRendering.call(this,p);this.callback.g3(this.slot,p)}; ic.prototype.jh=function(p,x){if(x===this.layout.layoutId)switch(p){case "skip-button":var a;(p=(a=Gr(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&p.M8(this.x0(),this.layout)}}; ic.prototype.PO=function(){$0.prototype.PO.call(this)};tE.prototype.build=function(p,x,a,v){if(oC(v,{l2:["metadata_type_ad_break_response_data"],gH:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new T6J(p,a,v,this.Z,this.j,this.U);throw new gy("Unsupported layout with type: "+v.layoutType+" and client metadata: "+O7(v.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.M(F_I,Vj);g.M(zw,$0);g.I=zw.prototype;g.I.jh=function(p,x){cn("ads-engagement-panel",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),g.O(this.Q6().renderingContent,DU),this.callback,"metadata_type_ads_engagement_panel_renderer",function(x,a,v,c,J){return new F_I(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){x.layoutId===this.layout.layoutId?this.AG.Qp("impression"):this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};g.M(wK,$0);g.I=wK.prototype;g.I.jh=function(p,x){cn("top-banner-image-text-icon-buttoned",p,this.S.get().Ux,this.Dt.get(),this.B,this.C,this.x0(),this.Q6(),x)}; g.I.startRendering=function(p){sc(this.AG,this.x0(),this.Q6(),g.O(this.Q6().renderingContent,HP),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(x,a,v,c,J){return new mK(x,a,v,c,J)},this.U); $0.prototype.startRendering.call(this,p)}; g.I.g3=function(p,x){this.C===x.layoutId&&(this.B===null?this.B=this.Dt.get().PB():sE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.PO=function(){pj(this.fW(),this);$0.prototype.PO.call(this)};$pf.prototype.build=function(p,x,a,v){if(oC(v,pFT())||g.O(v.renderingContent,DU)!==void 0)return new zw(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,giU())||g.O(v.renderingContent,lb)!==void 0)return new k0(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,G4x())||g.O(v.renderingContent,kv)!==void 0)return new Dk(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,N6Q()))return new Uc(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,niU()))return new Tw(p,a,v,this.T$,this.Dt,this.fW, this.jD,this.U);if(oC(v,yqJ())||g.O(v.renderingContent,UP)!==void 0)return new M6(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,xpQ())||g.O(v.renderingContent,HP)!==void 0)return new wK(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,ux8()))return new Sa(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);if(oC(v,wpJ())||g.O(v.renderingContent,TZ)!==void 0)return new IC(p,a,v,this.T$,this.Dt,this.fW,this.jD,this.U);throw new gy("Unsupported layout with type: "+v.layoutType+" and client metadata: "+ O7(v.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};aEQ.prototype.build=function(p,x,a,v){if(oC(v,{l2:["metadata_type_linked_player_bytes_layout_id"],gH:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Cx(p,a,v,this.T$,this.Dt,this.U);throw new gy("Unsupported layout with type: "+v.layoutType+" and client metadata: "+O7(v.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.I=sXQ.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){}; g.I.release=function(){}; g.I.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.El(this.slot,p,new gy("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.g3(this.slot,p),this.AG.Qp("impression"),cK(this.xi,p,"normal"))}; g.I.cE=function(p,x){p.layoutId!==this.layout.layoutId?this.callback.El(this.slot,p,new gy("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.wV(this.slot,p,x)};g.I=cvg.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){}; g.I.release=function(){}; g.I.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.El(this.slot,p,new gy("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.g3(this.slot,p),this.AG.Qp("impression"),cK(this.xi,p,"normal"))}; g.I.cE=function(p,x){p.layoutId!==this.layout.layoutId?this.callback.El(this.slot,p,new gy("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.wV(this.slot,p,x)};Ec.prototype.build=function(p,x,a,v){if(!this.s7.get().W.L().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(oC(v,v$g()))return new sXQ(p,a,v,this.Dt,this.xi)}else if(oC(v,{l2:[],gH:["LAYOUT_TYPE_FORECASTING"]}))return new cvg(p,a,v,this.Dt,this.xi);throw new gy("Unsupported layout with type: "+v.layoutType+" and client metadata: "+O7(v.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.M(Kh1,Vj);g.M(y9,$0);g.I=y9.prototype;g.I.init=function(){$0.prototype.init.call(this);var p=g.O(this.layout.renderingContent,AE)||Gr(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),x={adsClientData:this.layout.Vp};this.U.push(new Kh1(p,Gr(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,x))}; g.I.zW=function(){this.B||this.SA.get().resumeVideo(2)}; g.I.startRendering=function(p){$0.prototype.startRendering.call(this,p);this.callback.g3(this.slot,p);this.C.KA=this}; g.I.cE=function(p,x){$0.prototype.cE.call(this,p,x);nJ(this.C,this)}; g.I.jh=function(p,x){if(!Cj(this.s7.get(),"stop_handling_click_for_non_rendering_overlay_layout")||x===this.layout.layoutId){if(Nu(this.S.get(),this.V))switch(p){case "visit-advertiser-link":vn(this.Dt.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.SA.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.SA.get().Qw(2))||this.SA.get().pauseVideo();break; case "visit-advertiser-link":this.SA.get().pauseVideo();dpb(this).FN();break;case "skip-button":if(p=dpb(this),this.layout.renderingContent&&!wy(this.layout.clientMetadata,"metadata_type_dai")||!p||!p.FZ){var a;(p=(a=Gr(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&p.M8(this.x0(),this.layout)}else sE("Requesting to skip by LegacyPlayerBytes when components enabled"),p.SL(this.x0(),this.layout)}}}; g.I.PO=function(){$0.prototype.PO.call(this)};g.M(gK,$0);g.I=gK.prototype;g.I.init=function(){$0.prototype.init.call(this);var p=g.O(this.layout.renderingContent,N6)||Gr(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),x={adsClientData:this.layout.Vp},a;(a=!!this.layout.renderingContent)||(a=Zk(this),a=!(a&&a.FZ));this.U.push(new BC(p,this.layout.layoutId,Gr(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),x,a))}; g.I.zW=function(){this.B||this.SA.get().resumeVideo(2)}; g.I.startRendering=function(p){$0.prototype.startRendering.call(this,p);this.callback.g3(this.slot,p);this.C.KA=this}; g.I.cE=function(p,x){$0.prototype.cE.call(this,p,x);nJ(this.C,this)}; g.I.jh=function(p,x){if(!this.s7||!Cj(this.s7.get(),"stop_handling_click_for_non_rendering_overlay_layout")||x===this.layout.layoutId){if(Nu(this.S.get(),this.V))switch(p){case "visit-advertiser":vn(this.Dt.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.SA.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.SA.get().Qw(2))||this.SA.get().pauseVideo();break; case "visit-advertiser":this.SA.get().pauseVideo();Zk(this).FN();break;case "skip-button":if(p=Zk(this),this.layout.renderingContent&&!wy(this.layout.clientMetadata,"metadata_type_dai")||!p||!p.FZ){var a;(p=(a=Gr(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&p.M8(this.x0(),this.layout)}else sE("Requesting to skip by LegacyPlayerBytes"),p.SL(this.x0(),this.layout)}}}; g.I.PO=function(){$0.prototype.PO.call(this)};g.M(rvg,Vj);g.M(Gw,$0);g.I=Gw.prototype;g.I.startRendering=function(p){var x=this;x0(this.Z,p,function(){x.U.push(new rvg(Gr(x.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),p.layoutId,p.Vp));x.fL();x.callback.g3(x.slot,p);g.q(pJ(x.SA.get(),1),512)&&x.callback.El(x.x0(),x.Q6(),new gy("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.I.Yi=function(){}; g.I.GC=function(p){if(p.state.isError()){var x;this.callback.El(this.x0(),this.Q6(),new gy("A player error happened during adNotify",{playerErrorCode:(x=p.state.RB)==null?void 0:x.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.I.onFullscreenToggled=function(){}; g.I.D$=function(){}; g.I.Xl=function(){}; g.I.Tt=function(){}; g.I.onVolumeChange=function(){}; g.I.KT=function(){}; g.I.xD=function(){}; g.I.jh=function(){};g.M(lE1,Vj);g.M(Oc,$0);Oc.prototype.init=function(){$0.prototype.init.call(this);var p=g.O(this.layout.renderingContent,q6),x=aC(this.AG);this.U.push(new lE1(p,x,this.layout.layoutId,{adsClientData:this.layout.Vp}))}; Oc.prototype.startRendering=function(p){$0.prototype.startRendering.call(this,p);this.callback.g3(this.slot,p)}; Oc.prototype.jh=function(p,x){if(x===this.layout.layoutId)switch(p){case "skip-button":var a;(p=(a=Gr(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&p.M8(this.x0(),this.layout)}}; Oc.prototype.PO=function(){$0.prototype.PO.call(this)};LhU.prototype.build=function(p,x,a,v){if(p=nx(p,a,v,this.T$,this.SA,this.Dt,this.Z,this.U,this.s7))return p;throw new gy("Unsupported layout with type: "+v.layoutType+" and client metadata: "+O7(v.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.I=V9.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){this.SA.get().addListener(this);this.SA.get().Is.push(this);if(this.layout.renderingContent){var p=this.KI.get();p=Ca(p,1).bP/1E3}else p=Gr(this.layout.clientMetadata,"metadata_type_video_length_seconds");var x=g.O(this.layout.renderingContent,EP),a=x?RC(x.pings):Gr(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");x=x?Xpg(x.pings):Gr(this.layout.clientMetadata,"metadata_type_active_view_identifier");JE(this.layout.z$)&&xp(this.jD.get(),this.layout.layoutId, {t7:a,Oi:p,listener:this,vr:x})}; g.I.release=function(){this.SA.get().removeListener(this);A__(this.SA.get(),this);JE(this.layout.z$)&&$p(this.jD.get(),this.layout.layoutId)}; g.I.startRendering=function(p){this.callback.g3(this.slot,p)}; g.I.cE=function(p,x){Fc(this,"abandon");this.callback.wV(this.slot,p,x)}; g.I.KT=function(p){switch(p.id){case "part2viewed":this.AG.Qp("start");this.AG.Qp("impression");break;case "videoplaytime25":this.AG.Qp("first_quartile");break;case "videoplaytime50":this.AG.Qp("midpoint");break;case "videoplaytime75":this.AG.Qp("third_quartile");break;case "videoplaytime100":Fc(this,"complete");hE(this.AG)&&Lx(this.AG,Infinity,!0);break;case "engagedview":hE(this.AG)||this.AG.Qp("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:sE("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.I.onVolumeChange=function(){}; g.I.Tt=function(){}; g.I.D$=function(){}; g.I.Xl=function(){}; g.I.onFullscreenToggled=function(){}; g.I.GC=function(p){this.U||(g.Jz(p,4)&&!g.Jz(p,2)?lc(this.AG,"pause"):cC(p,4)<0&&!(cC(p,2)<0)&&lc(this.AG,"resume"))}; g.I.Yi=function(){}; g.I.YI=function(p){hE(this.AG)&&Lx(this.AG,p*1E3,!1)}; g.I.xD=function(){Fc(this,"swipe")}; g.I.O9=function(){this.AG.Qp("active_view_measurable")}; g.I.B7=function(){this.AG.Qp("active_view_viewable")}; g.I.s9=function(){this.AG.Qp("active_view_fully_viewable_audible_half_duration")}; g.I.P7=function(){this.AG.Qp("audio_measurable")}; g.I.wd=function(){this.AG.Qp("audio_audible")};Y61.prototype.build=function(p,x,a,v){if(a.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.O(v.renderingContent,EP)!==void 0)return new V9(p,a,v,this.SA,this.Dt,this.s7,this.jD,this.KI);x=["metadata_type_ad_placement_config"];for(var c=g.k(bc()),J=c.next();!J.done;J=c.next())x.push(J.value);if(oC(v,{l2:x,gH:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return a.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new V9(p,a,v,this.SA,this.Dt,this.s7,this.jD,this.KI):new eD1(p,a,v,this.SA,this.Dt, this.hX,this.s7,this.jD);throw new gy("Unsupported layout with type: "+v.layoutType+" and client metadata: "+O7(v.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var aI={contentCpn:"",j$:new Map};TN8.prototype.w3=function(p,x){var a={};x=Object.assign({},x,(a.cc=this.k_.BM(),a));this.k_.W.jA(p,x)};var b$v,EG; b$v={rS5:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",hw7:"AUTHENTICATION_MALFORMED",idI:"AUTHENTICATION_MISSING",qTd:"BAD_REQUEST",xrI:"CAST_SESSION_DEVICE_MISMATCHED",Q5r:"CAST_SESSION_VIDEO_MISMATCHED",GtT:"CAST_TOKEN_EXPIRED",RwT:"CAST_TOKEN_FAILED",vir:"CAST_TOKEN_MALFORMED",mr6:"CGI_PARAMS_MALFORMED",ARr:"CGI_PARAMS_MISSING",OT4:"DEVICE_FALLBACK",GG$:"GENERIC_WITH_LINK_AND_CPN",RB4:"ERROR_HDCP",vDt:"LICENSE",AZO:"VIDEO_UNAVAILABLE",HTO:"FORMAT_UNAVAILABLE",yZ5:"GEO_FAILURE", IMg:"HTML5_AUDIO_RENDERER_ERROR",Fv$:"GENERIC_WITHOUT_LINK",uxa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Wvr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",S5g:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",C9$:"HTML5_SPS_UMP_STATUS_REJECTED",tXA:"INVALID_DRM_MESSAGE",Fzr:"PURCHASE_NOT_FOUND",uSI:"PURCHASE_REFUNDED",bJ6:"RENTAL_EXPIRED",XyA:"RETRYABLE_ERROR",AmI:"SERVER_ERROR",T_a:"SIGNATURE_EXPIRED",z8g:"STOPPED_BY_ANOTHER_PLAYBACK",UE7:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Z7A:"STREAMING_NOT_ALLOWED", pvT:"STREAM_LICENSE_NOT_FOUND",IG7:"TOO_MANY_REQUESTS",FYa:"TOO_MANY_REQUESTS_WITH_LINK",u44:"TOO_MANY_STREAMS_PER_ENTITLEMENT",WY5:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",aGt:"VIDEO_FORBIDDEN",g9G:"VIDEO_NOT_FOUND",tU5:"BROWSER_OR_EXTENSION_ERROR"};EG={}; g.Pe=(EG.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",EG.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",EG.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", EG.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",EG.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",EG.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",EG.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",EG.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",EG.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",EG.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",EG.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",EG.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",EG.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", EG.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",EG.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",EG.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",EG.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",EG.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",EG.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", EG.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",EG.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",EG.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",EG.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",EG.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", EG.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",EG.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",EG.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",EG.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",EG.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", EG.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",EG.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",EG.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",EG.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",EG.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",EG.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",EG.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",EG);var rIX;var BFG=g.Ez(),lSO=BFG.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!lSO||lSO.length<2)rIX=void 0;else{var L2w=BFG.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);rIX=L2w&&L2w.length===6?Number(L2w[5].replace("_",".")):0}var FF=rIX,ZQ=FF>=0;g.M(g.II,kz);g.II.prototype.X=function(p,x,a,v,c){return kz.prototype.X.call(this,p,x,a,v,c)};var yf={},tk=(yf.FAIRPLAY="fairplay",yf.PLAYREADY="playready",yf.WIDEVINE="widevine",yf.CLEARKEY=null,yf.FLASHACCESS=null,yf.UNKNOWN=null,yf.WIDEVINE_CLASSIC=null,yf);MK.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var gW={},g9=(gW.WIDTH={name:"width",video:!0,valid:640,IV:99999},gW.HEIGHT={name:"height",video:!0,valid:360,IV:99999},gW.FRAMERATE={name:"framerate",video:!0,valid:30,IV:9999},gW.BITRATE={name:"bitrate",video:!0,valid:3E5,IV:2E9},gW.EOTF={name:"eotf",video:!0,valid:"bt709",IV:"catavision"},gW.CHANNELS={name:"channels",video:!1,valid:2,IV:99},gW.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",IV:"invalidformat"},gW.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", IV:"nope"},gW.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",IV:"av99.0.05M.08"},gW.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",IV:"invalid"},gW.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",IV:"false"},gW);var YOZ=["h","H"],hhy=["9","("],jT$=["9h","(h"],ISt=["8","*"],MVO=["a","A"],W2V=["o","O"],k6V=["m","M"],DvO=["mac3","MAC3"],Uvt=["meac3","MEAC3"],Zd={},wN1=(Zd.h=YOZ,Zd.H=YOZ,Zd["9"]=hhy,Zd["("]=hhy,Zd["9h"]=jT$,Zd["(h"]=jT$,Zd["8"]=ISt,Zd["*"]=ISt,Zd.a=MVO,Zd.A=MVO,Zd.o=W2V,Zd.O=W2V,Zd.m=k6V,Zd.M=k6V,Zd.mac3=DvO,Zd.MAC3=DvO,Zd.meac3=Uvt,Zd.MEAC3=Uvt,Zd),H$O=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),D6f=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var V={},Tl=(V["0"]="f",V["160"]="h",V["133"]="h",V["134"]="h",V["135"]="h",V["136"]="h",V["137"]="h",V["264"]="h",V["266"]="h",V["138"]="h",V["298"]="h",V["299"]="h",V["304"]="h",V["305"]="h",V["214"]="h",V["216"]="h",V["374"]="h",V["375"]="h",V["140"]="a",V["141"]="a",V["327"]="sa",V["258"]="m",V["380"]="mac3",V["328"]="meac3",V["161"]="H",V["142"]="H",V["143"]="H",V["144"]="H",V["222"]="H",V["223"]="H",V["145"]="H",V["224"]="H",V["225"]="H",V["146"]="H",V["226"]="H",V["227"]="H",V["147"]="H",V["384"]= "H",V["376"]="H",V["385"]="H",V["377"]="H",V["149"]="A",V["261"]="M",V["381"]="MAC3",V["329"]="MEAC3",V["598"]="9",V["278"]="9",V["242"]="9",V["243"]="9",V["244"]="9",V["775"]="9",V["776"]="9",V["777"]="9",V["778"]="9",V["779"]="9",V["780"]="9",V["781"]="9",V["782"]="9",V["783"]="9",V["247"]="9",V["248"]="9",V["353"]="9",V["355"]="9",V["356"]="9",V["271"]="9",V["577"]="9",V["313"]="9",V["579"]="9",V["272"]="9",V["302"]="9",V["303"]="9",V["407"]="9",V["408"]="9",V["308"]="9",V["315"]="9",V["330"]= "9h",V["331"]="9h",V["332"]="9h",V["333"]="9h",V["334"]="9h",V["335"]="9h",V["336"]="9h",V["337"]="9h",V["338"]="so",V["600"]="o",V["250"]="o",V["251"]="o",V["774"]="o",V["194"]="*",V["195"]="*",V["220"]="*",V["221"]="*",V["196"]="*",V["197"]="*",V["279"]="(",V["280"]="(",V["317"]="(",V["318"]="(",V["273"]="(",V["274"]="(",V["357"]="(",V["358"]="(",V["275"]="(",V["359"]="(",V["360"]="(",V["276"]="(",V["583"]="(",V["584"]="(",V["314"]="(",V["585"]="(",V["561"]="(",V["277"]="(",V["361"]="(h",V["362"]= "(h",V["363"]="(h",V["364"]="(h",V["365"]="(h",V["366"]="(h",V["591"]="(h",V["592"]="(h",V["367"]="(h",V["586"]="(h",V["587"]="(h",V["368"]="(h",V["588"]="(h",V["562"]="(h",V["409"]="(",V["410"]="(",V["411"]="(",V["412"]="(",V["557"]="(",V["558"]="(",V["394"]="1",V["395"]="1",V["396"]="1",V["397"]="1",V["398"]="1",V["399"]="1",V["720"]="1",V["721"]="1",V["400"]="1",V["401"]="1",V["571"]="1",V["402"]="1",V["694"]="1h",V["695"]="1h",V["696"]="1h",V["697"]="1h",V["698"]="1h",V["699"]="1h",V["700"]="1h", V["701"]="1h",V["702"]="1h",V["703"]="1h",V["386"]="3",V["387"]="w",V["406"]="6",V["787"]="1",V["788"]="1",V["548"]="1e",V["549"]="1e",V["550"]="1e",V["551"]="1e",V["809"]="1e",V["810"]="1e",V["552"]="1e",V["811"]="1e",V["812"]="1e",V["553"]="1e",V["813"]="1e",V["814"]="1e",V["554"]="1e",V["815"]="1e",V["816"]="1e",V["555"]="1e",V["817"]="1e",V["818"]="1e",V["572"]="1e",V["556"]="1e",V["645"]="(",V["646"]="(",V["647"]="(",V["648"]="(",V["649"]="(",V["650"]="(",V["651"]="(",V["652"]="(",V["653"]="(", V["654"]="(",V["655"]="(",V["656"]="(",V["657"]="(",V["658"]="(",V["659"]="(",V["660"]="(",V["661"]="(",V["662"]="(",V["663"]="(",V["664"]="(",V["665"]="(",V["666"]="(",V["667"]="(",V["668"]="(",V["669"]="(",V["670"]="(",V["671"]="(",V["672"]="(",V["673"]="(",V["674"]="(h",V["675"]="(h",V["676"]="(h",V["677"]="(h",V["678"]="(h",V["679"]="(h",V["680"]="(h",V["681"]="(h",V["682"]="(h",V["683"]="(h",V["684"]="(h",V["685"]="(h",V["686"]="(h",V["687"]="(h",V["688"]="A",V["689"]="A",V["690"]="A",V["691"]= "MEAC3",V["773"]="i",V["806"]="I",V["805"]="I",V["829"]="9",V["830"]="9",V["831"]="9",V["832"]="9",V["833"]="9",V["834"]="9",V["835"]="9",V["836"]="9",V["892"]="9",V["893"]="9",V["837"]="9",V["838"]="9",V["839"]="9",V["840"]="9",V["841"]="(",V["842"]="(",V["843"]="(",V["844"]="(",V["845"]="(",V["846"]="(",V["847"]="(",V["848"]="(",V["894"]="(",V["895"]="(",V["849"]="(",V["850"]="(",V["851"]="(",V["852"]="(",V["865"]="9",V["866"]="9",V["867"]="9",V["868"]="9",V["869"]="9",V["870"]="9",V["871"]="9", V["872"]="9",V["896"]="9",V["897"]="9",V["873"]="9",V["874"]="9",V["875"]="9",V["876"]="9",V["877"]="(",V["878"]="(",V["879"]="(",V["880"]="(",V["881"]="(",V["882"]="(",V["883"]="(",V["884"]="(",V["898"]="(",V["899"]="(",V["885"]="(",V["886"]="(",V["887"]="(",V["888"]="(",V);var GU={},jLb=(GU.STEREO_LAYOUT_UNKNOWN=0,GU.STEREO_LAYOUT_LEFT_RIGHT=1,GU.STEREO_LAYOUT_TOP_BOTTOM=2,GU);var OG,TT;OG={};g.kc=(OG.auto=0,OG.tiny=144,OG.light=144,OG.small=240,OG.medium=360,OG.large=480,OG.hd720=720,OG.hd1080=1080,OG.hd1440=1440,OG.hd2160=2160,OG.hd2880=2880,OG.highres=4320,OG);TT={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var UB="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Dc.prototype.isHdr=function(){return this.U==="smpte2084"||this.U==="arib-std-b67"};QB.prototype.Ul=function(){return this.containerType===2}; QB.prototype.isEncrypted=function(){return!!this.F1}; QB.prototype.K3=function(){return!!this.audio}; QB.prototype.hU=function(){return!!this.video}; var fi=!1;g.M(FN,g.Fx);g.I=FN.prototype;g.I.appendBuffer=function(p,x,a){if(this.Tw.Lz()!==this.appendWindowStart+this.start||this.Tw.WH()!==this.appendWindowEnd+this.start||this.Tw.Y0()!==this.timestampOffset+this.start)this.Tw.supports(1),this.Tw.Wg(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Tw.f7(this.timestampOffset+this.start);this.Tw.appendBuffer(p,x,a)}; g.I.abort=function(){this.Tw.abort()}; g.I.remove=function(p,x){this.Tw.remove(p+this.start,x+this.start)}; g.I.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.I.clear=function(){this.Tw.clear()}; g.I.Wg=function(p,x){this.appendWindowStart=p;this.appendWindowEnd=x}; g.I.eH=function(){return this.timestampOffset+this.start}; g.I.Lz=function(){return this.appendWindowStart}; g.I.WH=function(){return this.appendWindowEnd}; g.I.f7=function(p){this.timestampOffset=p}; g.I.Y0=function(){return this.timestampOffset}; g.I.rH=function(p){p=this.Tw.rH(p===void 0?!1:p);return VB(p,this.start,this.end)}; g.I.ih=function(){return this.Tw.ih()}; g.I.cH=function(){return this.Tw.cH()}; g.I.FS=function(){return this.Tw.FS()}; g.I.Ks=function(){return this.Tw.Ks()}; g.I.Nj=function(){this.Tw.Nj()}; g.I.QF=function(p){return this.Tw.QF(p)}; g.I.wT=function(){return this.Tw.wT()}; g.I.Vq=function(){return this.Tw.Vq()}; g.I.iU=function(p,x,a){this.Tw.iU(p,x,a)}; g.I.DC=function(p,x,a){this.Tw.DC(p,x,a)}; g.I.B_=function(p,x){return this.Tw.B_(p,x)}; g.I.supports=function(p){return this.Tw.supports(p)}; g.I.Mm=function(){return this.Tw.Mm()}; g.I.isView=function(){return!0}; g.I.K2=function(){return this.Tw.K2()?this.isActive:!1}; g.I.isLocked=function(){return this.In&&!this.isActive}; g.I.cX=function(p){p=this.Tw.cX(p);p.vw=this.start+"-"+this.end;return p}; g.I.nk=function(){return this.Tw.nk()}; g.I.E4=function(){return this.Tw.E4()}; g.I.mQ=function(){return this.Tw.mQ()}; g.I.PO=function(){this.Tw.R2(this.Y1);g.Fx.prototype.PO.call(this)};var fR=!1;g.M(x_,g.Fx);g.I=x_.prototype;g.I.appendBuffer=function(p,x,a){this.zv=!1;a&&(this.A5=a);if(p.length){var v;((v=this.MZ)==null?0:v.appendBuffer)?this.MZ.appendBuffer(p):this.MZ?this.MZ.append(p):this.KG&&this.KG.webkitSourceAppend(this.id,p)}x&&(x.isEncrypted()&&(this.eq=this.A5),x.type===3&&(this.yb=x),this.m$.push(x.jV()),this.m$.length>4&&this.m$.shift());this.Ti&&(this.Ti.length>=2||p.length>1048576?delete this.Ti:this.Ti.push(p))}; g.I.abort=function(){try{this.MZ?this.MZ.abort():this.KG&&this.KG.webkitSourceAbort(this.id)}catch(x){if(dOb){var p=new g.gr("Error while abort the source buffer: "+x.name+", "+x.message);g.Uq(p)}}this.A5=this.yb=null}; g.I.remove=function(p,x,a){this.zv=!1;var v;if((v=this.MZ)==null?0:v.remove)a&&a({b:NK(this.rH()),s:p,e:x}),this.MZ.remove(p,x)}; g.I.removeAll=function(){this.remove(this.Lz(),this.WH())}; g.I.clear=function(){this.FS()||(this.abort(),this.removeAll(),this.eq=this.A5=this.yb=null,this.appendWindowStart=this.timestampOffset=0,this.fE=OB([],[]),this.zv=!1,this.Ti=pa?[]:void 0,this.Rq=!0)}; g.I.Lz=function(){if(fR&&this.hU)return this.appendWindowStart;var p;return((p=this.MZ)==null?void 0:p.appendWindowStart)||0}; g.I.WH=function(){var p;return((p=this.MZ)==null?void 0:p.appendWindowEnd)||0}; g.I.Wg=function(p,x){this.MZ&&(fR&&this.hU?(this.appendWindowStart=p,this.MZ.appendWindowEnd=x):p>this.Lz()?(this.MZ.appendWindowEnd=x,this.MZ.appendWindowStart=p):(this.MZ.appendWindowStart=p,this.MZ.appendWindowEnd=x))}; g.I.eH=function(){return this.timestampOffset}; g.I.f7=function(p){fR?this.timestampOffset=p:this.supports(1)&&(this.MZ.timestampOffset=p)}; g.I.Y0=function(){return fR?this.timestampOffset:this.supports(1)?this.MZ.timestampOffset:0}; g.I.rH=function(p){if(p===void 0?0:p)return this.zv||this.ih()||(this.fE=this.rH(!1),this.zv=!0),this.fE;try{return this.MZ?this.MZ.buffered:this.KG?this.KG.webkitSourceBuffered(this.id):OB([0],[Infinity])}catch(x){return OB([],[])}}; g.I.ih=function(){var p;return((p=this.MZ)==null?void 0:p.updating)||!1}; g.I.FS=function(){return this.Rq}; g.I.Ks=function(){return!this.Rq&&this.ih()}; g.I.Nj=function(){this.Rq=!1}; g.I.QF=function(p){var x=p==null?void 0:p.rr;p=p==null?void 0:p.containerType;return!x&&!p||x===this.rr&&p===this.containerType}; g.I.wT=function(){return this.A5}; g.I.Vq=function(){return this.eq}; g.I.B_=function(p,x){return this.containerType!==p||this.rr!==x}; g.I.iU=function(p,x,a){if(this.containerType!==p||a&&this.B_(p,a))this.supports(4),$_()&&this.MZ.changeType(x),a&&(this.rr=a);this.containerType=p}; g.I.DC=function(p,x,a){this.containerType&&this.B_(p,x)&&$_()&&this.MZ.changeType(a);this.containerType=p;this.rr=x}; g.I.Mm=function(){return this.yb}; g.I.isView=function(){return!1}; g.I.supports=function(p){switch(p){case 1:var x;return((x=this.MZ)==null?void 0:x.timestampOffset)!==void 0;case 0:var a;return!((a=this.MZ)==null||!a.appendBuffer);case 2:var v;return!((v=this.MZ)==null||!v.remove);case 3:var c,J;return!!(((c=this.MZ)==null?0:c.addEventListener)&&((J=this.MZ)==null?0:J.removeEventListener));case 4:return!(!this.MZ||!this.MZ.changeType);default:return!1}}; g.I.K2=function(){return!this.ih()}; g.I.isLocked=function(){return!1}; g.I.cX=function(p){p.to=this.Y0();p.up=this.ih();var x,a=((x=this.MZ)==null?void 0:x.appendWindowStart)||0,v;x=((v=this.MZ)==null?void 0:v.appendWindowEnd)||Infinity;p.aw=a.toFixed(3)+"-"+x.toFixed(3);return p}; g.I.cH=function(){var p;return((p=this.MZ)==null?void 0:p.writeHead)||0}; g.I.nk=function(){for(var p={},x=0;x=7&&(!x||((v=this.U7)==null?0:v.D("mweb_ios_allow_playback_workaround_when_ready")))&&QXx(this,function(){g.dT(function(){NNQ(p,p.getCurrentTime(),0)},500)})}return x}; g.I.seekTo=function(p){this.zF()>0&&(ZQ&&FF<4&&(p=Math.max(.1,p)),this.setCurrentTime(p))}; g.I.QH=function(){if(!this.Z&&this.xg)if(this.xg.C)try{var p;JL(this,{l:"mer",sr:(p=this.U7)==null?void 0:p.zG(),rs:Ka(this.xg)});this.xg.clear();this.Z=this.xg;this.xg=void 0}catch(x){p=new g.gr("Error while clearing Media Source in MediaElement: "+x.name+", "+x.message),g.Uq(p),this.stopVideo()}else this.stopVideo()}; g.I.stopVideo=function(){var p=this;if(!this.Z){var x;(x=this.xg)==null||ZVT(x);if(J51){if(!this.j){var a=new bl;a.then(void 0,function(){}); this.j=a;Rf8&&this.pause();g.dT(function(){p.j===a&&(La(p),a.resolve())},200)}}else La(this)}}; g.I.BU=function(){var p=this.eh();return ew(p)&&this.getDuration()?qK(p,this.getCurrentTime()):0}; g.I.OO=function(){var p=this.getDuration();return p===Infinity?1:p?this.BU()/p:0}; g.I.cX=function(){try{var p=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:NK(this.Iy(),",",3),vbu:NK(this.eh()),vbs:NK(this.Vr()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.zF(),vns:""+this.Xc(),vec:""+this.AS(),vemsg:this.Z9(),vvol:""+this.getVolume(),vdom:""+ +this.tD(),vsrc:""+ +!!this.jU(),vw:""+p.width,vh:""+p.height}}catch(x){return{}}}; g.I.hasError=function(){return this.AS()>0}; g.I.addEventListener=function(p,x){this.B.listen(p,x,!1,this);this.T6(p)}; g.I.removeEventListener=function(p,x){this.B.IA(p,x,!1,this)}; g.I.dispatchEvent=function(p){if(this.j&&p.type==="pause")return!1;if(Ks1){var x,a=((x=p.U)==null?void 0:x.timeStamp)||Infinity;x=a>performance.now()?a-Date.now()+performance.now():a;a=this.Z||this.xg;if((a==null?0:a.FS())||x<=((a==null?void 0:a.S)||0)){var v;JL(this,{l:"mede",sr:(v=this.U7)==null?void 0:v.zG(),et:p.type});return!1}if(this.Zk)return JL(this,{l:"medes",et:p.type}),a&&p.type==="seeking"&&(a.S=performance.now(),this.Zk=!1),!1}return this.B.dispatchEvent(p)}; g.I.Lw=function(){this.S=!1}; g.I.Rx=function(){this.S=!0;this.Ud(!0)}; g.I.vt=function(){this.S&&!this.tQ()&&this.Ud(!0)}; g.I.equals=function(p){return!!p&&p.BX()===this.BX()}; g.I.PO=function(){this.V&&this.removeEventListener("volumechange",this.vt);J51&&La(this);g.y.prototype.PO.call(this)}; var J51=!1,Rf8=!1,Ks1=!1,q6f=!1;g.I=g.hL.prototype;g.I.isPaused=function(){return g.q(this,4)}; g.I.isPlaying=function(){return g.q(this,8)&&!g.q(this,512)&&!g.q(this,64)&&!g.q(this,2)}; g.I.isOrWillBePlaying=function(){return g.q(this,8)&&!g.q(this,2)&&!g.q(this,1024)}; g.I.isCued=function(){return g.q(this,64)&&!g.q(this,8)&&!g.q(this,4)}; g.I.isBuffering=function(){return g.q(this,1)&&!g.q(this,2)}; g.I.isError=function(){return g.q(this,128)}; g.I.isSuspended=function(){return g.q(this,512)}; g.I.qt=function(){return g.q(this,64)&&g.q(this,4)}; g.I.toString=function(){return"PSt."+this.state.toString(16)}; var NP={},Af=(NP.BUFFERING="buffering-mode",NP.CUED="cued-mode",NP.ENDED="ended-mode",NP.PAUSED="paused-mode",NP.PLAYING="playing-mode",NP.SEEKING="seeking-mode",NP.UNSTARTED="unstarted-mode",NP);g.M(Qm,g.y);g.I=Qm.prototype;g.I.C7=function(){return this.j}; g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){var p=Gr(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=Gr(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");JE(this.layout.z$)&&xp(this.jD.get(),this.layout.layoutId,{t7:x,Oi:p,listener:this,x9:this.Wm()});w6U(this.Dt.get(),this);p=this.LG;x=this.layout.layoutId;var a={x9:this.Wm()};p.U.set(x,a);this.pF()}; g.I.HQ=function(){}; g.I.release=function(){JE(this.layout.z$)&&$p(this.jD.get(),this.layout.layoutId);EV1(this.Dt.get(),this);this.LG.U.delete(this.layout.layoutId);this.QA()}; g.I.eW=function(){}; g.I.zV=function(){}; g.I.startRendering=function(p){ch(m0(this));if(SA(this,p)){var x=this.U;JD(x.params.HN.s7.get(),!0)&&HVf(x,"p_sr",{});fa(this);this.Te(p);this.Wm()||this.S2(!1)}}; g.I.g3=function(p,x){if(x.layoutId===this.layout.layoutId){this.NZ="rendering";this.Z=this.SA.get().isMuted()||this.SA.get().getVolume()===0;this.Qp("impression");this.Qp("start");if(this.SA.get().isMuted()){zk(this,"mute");var a;p=((a=Tk(this))==null?void 0:a.muteCommands)||[];Qw(this.hX.get(),p,this.layout.layoutId)}if(this.SA.get().isFullscreen()){this.eg("fullscreen");var v;a=((v=Tk(this))==null?void 0:v.fullscreenCommands)||[];Qw(this.hX.get(),a,this.layout.layoutId)}this.Wm()||(v=this.sz.get(), v.j&&!v.Z&&(v.C=!1,v.Z=!0,v.actionType!=="ad_to_video"&&(T3("pbs",void 0,v.actionType),g.Ly("finalize_all_timelines")&&sFN(v.actionType))));this.Mh(1);this.f6(x);var c;x=((c=Tk(this))==null?void 0:c.impressionCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.ZQ=function(p,x,a){this.V={Vg:3,w2:p==="load_timeout"?402:400,errorMessage:x.message};this.Qp("error");var v;p=((v=Tk(this))==null?void 0:v.errorCommands)||[];Qw(this.hX.get(),p,this.layout.layoutId);this.Wm()||this.oO.El(this.slot,this.layout,x,a)}; g.I.D6=function(){if(this.NZ==="rendering"){zk(this,"pause");var p,x=((p=Tk(this))==null?void 0:p.pauseCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId);this.Mh(2)}}; g.I.bQ=function(){if(this.NZ==="rendering"){zk(this,"resume");var p,x=((p=Tk(this))==null?void 0:p.resumeCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.UD=function(p,x){x=x===void 0?!1:x;if(this.NZ==="rendering"){var a={currentTimeSec:p,flush:x};RI(this.U,"p_ip",a);Lx(this.AG,p*1E3,x);this.Z||Lx(this.AG,p*1E3,x===void 0?!1:x);var v=this.h$();if(v){v/=1E3;if(p>=v*.25||x)this.Qp("first_quartile"),RI(this.U,"p_fq",a);if(p>=v*.5||x)this.Qp("midpoint"),RI(this.U,"p_sq",a);if(p>=v*.75||x)this.Qp("third_quartile"),RI(this.U,"p_tq",a);this.s7.get().W.L().experiments.cO("enable_progress_command_flush_on_kabuki")?Hn(this.B,p*1E3,x):Hn(this.B,p*1E3,pC1(this)? x:!1)}}}; g.I.BM=function(){var p;return((p=Ca(this.KI.get(),1))==null?void 0:p.clientPlaybackNonce)||""}; g.I.wY=function(p,x){p.layoutId!==this.layout.layoutId?this.oO.El(this.slot,p,new gy("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"):x()}; g.I.wV=function(p,x,a){if(x.layoutId===this.layout.layoutId)switch(this.NZ="not_rendering",this.layoutExitReason=void 0,this.Wm()||(p=a!=="normal"||this.position+1===this.S)&&this.S2(p),this.iQ(a),this.Mh(0),a){case "abandoned":if(Y0(this.AG,"impression")){var v,c=((v=Tk(this))==null?void 0:v.abandonCommands)||[];Qw(this.hX.get(),c,this.layout.layoutId)}break;case "normal":v=((c=Tk(this))==null?void 0:c.completeCommands)||[];Qw(this.hX.get(),v,this.layout.layoutId);break;case "skipped":var J;v=((J= Tk(this))==null?void 0:J.skipCommands)||[];Qw(this.hX.get(),v,this.layout.layoutId)}}; g.I.Dr=function(){return this.layout.layoutId}; g.I.IL=function(){return this.V}; g.I.O9=function(){if(this.NZ==="rendering"){this.AG.Qp("active_view_measurable");var p,x=((p=Tk(this))==null?void 0:p.activeViewMeasurableCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.s9=function(){if(this.NZ==="rendering"){this.AG.Qp("active_view_fully_viewable_audible_half_duration");var p,x=((p=Tk(this))==null?void 0:p.activeViewFullyViewableAudibleHalfDurationCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.B7=function(){if(this.NZ==="rendering"){this.AG.Qp("active_view_viewable");var p,x=((p=Tk(this))==null?void 0:p.activeViewViewableCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.wd=function(){if(this.NZ==="rendering"){this.AG.Qp("audio_audible");var p,x=((p=Tk(this))==null?void 0:p.activeViewAudioAudibleCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.P7=function(){if(this.NZ==="rendering"){this.AG.Qp("audio_measurable");var p,x=((p=Tk(this))==null?void 0:p.activeViewAudioMeasurableCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}}; g.I.S2=function(p){this.sz.get().S2(Gr(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p,this.position,this.S,!1)}; g.I.onFullscreenToggled=function(p){if(this.NZ==="rendering")if(p){this.eg("fullscreen");var x,a=((x=Tk(this))==null?void 0:x.fullscreenCommands)||[];Qw(this.hX.get(),a,this.layout.layoutId)}else this.eg("end_fullscreen"),x=((a=Tk(this))==null?void 0:a.endFullscreenCommands)||[],Qw(this.hX.get(),x,this.layout.layoutId)}; g.I.onVolumeChange=function(){if(this.NZ==="rendering")if(this.SA.get().isMuted()){zk(this,"mute");var p,x=((p=Tk(this))==null?void 0:p.muteCommands)||[];Qw(this.hX.get(),x,this.layout.layoutId)}else zk(this,"unmute"),p=((x=Tk(this))==null?void 0:x.unmuteCommands)||[],Qw(this.hX.get(),p,this.layout.layoutId)}; g.I.D$=function(){}; g.I.Xl=function(){}; g.I.Tt=function(){}; g.I.KT=function(){}; g.I.xD=function(){}; g.I.eg=function(p){this.AG.eg(p,!this.Z)}; g.I.Qp=function(p){this.AG.Qp(p,!this.Z)}; g.I.Wm=function(){var p=Gr(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(sE("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.s7.get().Wm(p)};g.M(ZA,Qm);g.I=ZA.prototype;g.I.pF=function(){}; g.I.QA=function(){var p=this.Dt.get();p.H_===this&&(p.H_=null);this.timer.stop()}; g.I.eW=function(){this.timer.stop();Qm.prototype.D6.call(this)}; g.I.zV=function(){Oe(this);Qm.prototype.bQ.call(this)}; g.I.h$=function(){return Gr(this.Q6().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.I.cE=function(p,x){var a=this;this.wY(p,function(){a.NZ!=="rendering_stop_requested"&&(a.NZ="rendering_stop_requested",a.layoutExitReason=x,Xl(a,x),a.timer.stop())})}; g.I.SV=function(){var p=Date.now(),x=p-this.o$;this.o$=p;this.pT+=x;this.pT>=this.h$()?this.bz():(this.UD(this.pT/1E3),Gk(this,this.pT))}; g.I.iQ=function(){}; g.I.Yi=function(){}; g.M(Nf,ZA);g.I=Nf.prototype;g.I.GC=function(p){if(this.NZ!=="not_rendering"){p=il(this,p);var x=this.SA.get().getPresentingPlayerType()===2;this.NZ==="rendering_start_requested"?x&&ea(p)&&this.aq():x?g.Jz(p,2)?sE("Receive player ended event during MediaBreak",this.x0(),this.Q6()):oL(this,p):this.KH()}}; g.I.Te=function(){VeQ(this);qv8(this.SA.get());this.Dt.get().H_=this;U_("pbp")||U_("pbs")||T3("pbp");U_("pbp","watch")||U_("pbs","watch")||T3("pbp",void 0,"watch");this.aq()}; g.I.f6=function(p){this.sz.get();var x=Gr(p.clientMetadata,"metadata_type_ad_placement_config").kind,a=this.position===0;p=Gr(p.clientMetadata,"metadata_type_linked_in_player_layout_type");p={adBreakType:tL(x),adType:b5U(p)};var v=void 0;a?x!=="AD_PLACEMENT_KIND_START"&&(v="video_to_ad"):v="ad_to_ad";Wa("ad_mbs",void 0,v);g.k8(p,v);Oe(this)}; g.I.KH=function(){this.O4()}; g.I.bz=function(){$eI(this);this.O4()}; g.M(AL,ZA);g.I=AL.prototype;g.I.GC=function(p){this.NZ!=="not_rendering"&&(p=il(this,p),oL(this,p))}; g.I.Te=function(){sE("Not used in SSAP")}; g.I.f6=function(){Oe(this)}; g.I.KH=function(){sE("Not used in SSAP")}; g.I.bz=function(){$eI(this);this.oO.fu(this.x0(),this.Q6(),"normal")}; g.M(PN,AL);PN.prototype.cE=function(p,x){var a=this;this.wY(p,function(){xc(a.j,x)&&(a.NZ="rendering_stop_requested",a.layoutExitReason=x,Xl(a,x),a.timer.stop())})}; PN.prototype.startRendering=function(p){ch(m0(this));SA(this,p)&&(fa(this),this.Dt.get().H_=this)};g.M(eA,Qm);g.I=eA.prototype;g.I.KH=function(){this.O4()}; g.I.GC=function(p){if(this.NZ!=="not_rendering"){p=il(this,p);var x=this.SA.get().getPresentingPlayerType()===2;this.NZ==="rendering_start_requested"?x&&ea(p)&&this.aq():!x||g.Jz(p,2)?this.O4():oL(this,p)}}; g.I.pF=function(){Gr(this.Q6().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Gr(this.Q6().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.I.QA=function(){Gr(this.Q6().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.wh){var p=this.context.HN,x=this.wh,a=this.Q6().layoutId;if(JD(p.s7.get(),!0)){var v={};p.w3("mccru",(v.cid=x,v.p_ac=a,v))}this.zw.get().removeCueRange(this.wh)}this.wh=void 0;var c;(c=this.LF)==null||c.dispose();this.Fa&&this.Fa.dispose()}; g.I.Te=function(p){var x=qf(this.s7.get()),a=na(this.s7.get());if(x&&a&&!this.Wm()){a=Gr(p.clientMetadata,"metadata_type_preload_player_vars");var v=this.s7.get();v=g.e_(v.W.L().experiments,"html5_preload_wait_time_secs");a&&this.Fa&&this.Fa.start(v*1E3)}vI1(this,p);VeQ(this);x?(a=this.Uz.get(),p=Gr(p.clientMetadata,"metadata_type_player_vars"),a.W.loadVideoByPlayerVars(p,!1,2)):KbQ(this.Uz.get(),Gr(p.clientMetadata,"metadata_type_player_vars"));var c;(c=this.LF)==null||c.start();x||this.Uz.get().W.playVideo(2)}; g.I.f6=function(){var p;(p=this.LF)==null||p.stop();this.kS();(this.adCpn=uTT(this))||sE("Media layout confirmed started, but ad CPN not set.");this.vE.get().PL("onAdStart",this.adCpn);this.zR=Date.now()}; g.I.h$=function(){var p;return(p=Ca(this.KI.get(),2))==null?void 0:p.bP}; g.I.FN=function(){this.AG.eg("clickthrough")}; g.I.cE=function(p,x){var a=this;this.wY(p,function(){if(a.NZ!=="rendering_stop_requested"){a.NZ="rendering_stop_requested";a.layoutExitReason=x;Xl(a,x);var v;(v=a.LF)==null||v.stop();a.Fa&&a.Fa.stop();czf(a)}})}; g.I.onCueRangeEnter=function(p){if(p!==this.wh)sE("Received CueRangeEnter signal for unknown layout.",this.x0(),this.Q6(),{cueRangeId:p});else{var x=this.context.HN,a=this.Q6().layoutId;if(JD(x.s7.get(),!0)){var v={};x.w3("mccre",(v.cid=p,v.p_ac=a,v))}this.zw.get().removeCueRange(this.wh);this.wh=void 0;Cj(this.context.s7.get(),"html5_ssap_flush_at_stop_rendering")&&this.Wm()||(p=Gr(this.Q6().clientMetadata,"metadata_type_video_length_seconds"),this.UD(p,!0),this.Qp("complete"))}}; g.I.iQ=function(p){p!=="abandoned"&&this.vE.get().PL("onAdComplete");this.vE.get().PL("onAdEnd",this.adCpn)}; g.I.kS=function(){this.wh="adcompletioncuerange:"+this.Q6().layoutId;this.zw.get().addCueRange(this.wh,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var p=this.context.HN,x=this.wh,a=this.Q6().layoutId;if(JD(p.s7.get(),!0)){var v={};p.w3("mccr",(v.cid=x,v.p_ac=a,v))}}; g.I.onCueRangeExit=function(){}; g.I.Yi=function(p){this.NZ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&p>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.SA.get().DB(!0),this.UD(p))}; g.I.UD=function(p,x){Qm.prototype.UD.call(this,p,x===void 0?!1:x);x=Date.now()-this.zR;var a=p*1E3,v={contentCpn:this.BM(),adCpn:uTT(this)};if(p-this.hM>=5){var c=x=2||(this.Gw.cE(this.layout,x),p=Cj(this.params.context.s7.get(),"html5_ssap_pass_transition_reason")&&x==="abandoned",this.O2()&&!p&&(Cj(this.params.context.s7.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(x)||sE("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:x})),this.k0.get().finishSegmentByCpn(this.layout.layoutId, Ca(this.KI.get(),1).clientPlaybackNonce,Ee(x,this.params.context.s7))),this.SA.get().removeListener(this),this.by()&&$c(this.Gw.C7())&&this.FB.wV(this.slot,this.layout,this.Gw.C7().U))}; g.I.Wb=function(p,x,a){Dp1({cpn:p,k_:this.KI.get(),VE:!0});this.Q6().layoutId!==p||Cj(this.params.context.s7.get(),"html5_ssap_pass_transition_reason")&&a===5||(this.Gw.C7().currentState<2&&(p=ym(a,this.params.context.s7),p==="error"?this.FB.El(this.slot,this.layout,new gy("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:a},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):cK(this.JU, this.layout,p)),Cj(this.params.context.s7.get(),"html5_ssap_exit_without_waiting_for_transition")||this.FB.wV(this.slot,this.layout,this.Gw.C7().U))};g.M(xb,g.y);g.I=xb.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.h_=function(){}; g.I.rk=function(){return this.HB[this.H6]}; g.I.O5=function(){return this.H6}; g.I.eW=function(p,x){var a=this.rk();x.layoutId!==a_(a,p,x)?sE("pauseLayout for a PlayerBytes layout that is not currently active",p,x):a.eW()}; g.I.zV=function(p,x){var a=this.rk();x.layoutId!==a_(a,p,x)?sE("resumeLayout for a PlayerBytes layout that is not currently active",p,x):a.zV()}; g.I.SL=function(p,x){var a=this.rk();YEb(this,p,x);hv_(a,p,x)&&this.BH(a.x0(),a.Q6(),"skipped")}; g.I.M8=function(p,x){var a=this.rk();jr1(this);I51(a,p,x)&&(p=MGx(this,a,p,x),p!==void 0&&(this.Wm()?sE("Should not happen. Should delete"):kNb(this,a.x0(),a.Q6(),p)))}; g.I.PC=function(p,x){var a=Object.assign({},$b(this),{layoutId:x.layoutId}),v=a.layoutId,c=a.VE;if(a.x9){var J={};vh(a.k_,"wrse",(J.ec=v,J.is=c,J.ctp=sB(v),J))}br(this.yw,p,x)}; g.I.g3=function(p,x){var a;(a=this.rk())==null||a.g3(p,x)}; g.I.wV=function(p,x,a){x.layoutId===this.Q6().layoutId&&(this.bE=!1,pj(this.fW(),this));var v;(v=this.rk())==null||v.wV(p,x,a)}; g.I.Yi=function(p){var x;(x=this.rk())==null||x.Yi(p)}; g.I.Ta=function(p,x,a){this.O5()===-1&&(this.callback.g3(this.slot,this.layout),this.H6++);var v=this.rk();v?(v.ZQ(p,x,a),this.Wm()&&this.callback.El(this.slot,this.layout,x,a)):sE("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.O5()),layoutId:this.Q6().layoutId})}; g.I.onFullscreenToggled=function(p){var x;(x=this.rk())==null||x.onFullscreenToggled(p)}; g.I.D$=function(p){var x;(x=this.rk())==null||x.D$(p)}; g.I.Tt=function(p){var x;(x=this.rk())==null||x.Tt(p)}; g.I.onVolumeChange=function(){var p;(p=this.rk())==null||p.onVolumeChange()}; g.I.Ix=function(p,x,a){rZ(this.yw,p,x,a)}; g.I.EY=function(p){p.startRendering(p.Q6())}; g.I.init=function(){var p=Gr(this.Q6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);if(this.HB.length<1)throw new e("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.HB.length)});if(p=Gr(this.Q6().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=this;p=g.k(this.HB);for(var x=p.next();!x.done;x=p.next())x=x.value,x.init(),OX1(this.yw,this.slot,x.Q6()),NSN(this.yw,this.slot,x.Q6()); if(this.Wm())for(this.KI.get().addListener(this),haQ(LPo(this),this.KI.get()),p=LPo(this),p=g.k(p),x=p.next();!x.done;x=p.next())this.YZ(x.value)}; g.I.YZ=function(p){var x=Gr(p.clientMetadata,"metadata_type_player_vars");x?(p.layoutType!=="LAYOUT_TYPE_MEDIA"&&sE("Non-video ad contains playerVars",this.slot,p),this.Uz.get().addPlayerResponseForAssociation({playerVars:x})):(p=rzQ(p),this.Uz.get().addPlayerResponseForAssociation({jt:p}))}; g.I.release=function(){var p=Gr(this.Q6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);if(p=Gr(this.Q6().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=null;p=g.k(this.HB);for(var x=p.next();!x.done;x=p.next())x=x.value,AJT(this.yw,this.slot,x.Q6()),x.release();this.Wm()&&(this.KI.get().removeListener(this),jX8())}; g.I.wY=function(p){return p.layoutId!==this.Q6().layoutId?(this.callback.El(this.x0(),p,new gy("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Q6().layoutId+("and LayoutType: "+this.Q6().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.I.sU=function(){this.SA.get().addListener(this);FP(this.fW(),this)}; g.I.GC=function(p){if(p.state.isError()){var x,a;this.Ta((x=p.state.RB)==null?void 0:x.errorCode,new gy("There was a player error during this media layout.",{playerErrorCode:(a=p.state.RB)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(x=this.rk())&&x.GC(p)}; g.I.Wm=function(){var p=Gr(this.x0().clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(sE("Expected SSAP eligibility in PlayerBytes slots",this.x0(),this.Q6()),!1):this.s7.get().Wm(p)}; g.I.Xl=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.KT=function(){}; g.I.xD=function(){}; g.M(JK,xb);g.I=JK.prototype;g.I.BC=function(p,x,a){this.BH(p,x,a)}; g.I.On=function(p,x){this.BH(p,x,"error")}; g.I.BH=function(p,x,a){var v=this;WP8(this,p,x,a,function(){sR(v,v.O5()+1)})}; g.I.startRendering=function(p){this.wY(p)&&(this.sU(),c_o(this.sz.get()),Baz(this.s7.get())||qv8(this.SA.get()),this.O5()===-1&&sR(this,this.O5()+1))}; g.I.cE=function(p,x){var a=this;this.bE=!0;this.O5()===this.HB.length?this.callback.wV(this.slot,this.layout,x):(p=this.rk(),p.cE(p.Q6(),x),this.yn=function(){a.callback.wV(a.slot,a.layout,x)}); this.SA.get().W.WL();KbQ(this.Uz.get(),{});p=pJ(this.SA.get(),1);p.isPaused()&&!g.q(p,2)&&this.SA.get().playVideo();this.SA.get().removeListener(this);this.bE&&De1(this)}; g.I.Wb=function(){}; g.I.uK=function(){}; g.I.fu=function(){}; g.M(R_,xb);g.I=R_.prototype;g.I.BC=function(p,x,a){p=Object.assign({},$b(this),{layoutId:x.layoutId,layoutExitReason:a});x=p.layoutId;a=p.layoutExitReason;var v={};vh(p.k_,"prse",(v.xc=x,v.ler=a,v.ctp=sB(x),v))}; g.I.On=function(){sE("onSubLayoutError in SSAP")}; g.I.BH=function(){sE("exitSubLayoutAndPlayNext in SSAP")}; g.I.rk=function(){return this.Sk}; g.I.O5=function(){var p=this;return this.HB.findIndex(function(x){var a;return x.Q6().layoutId===((a=p.Sk)==null?void 0:a.Q6().layoutId)})}; g.I.EY=function(p){ar(this.Sk===void 0,"replacing another adapter");this.Sk=p;p.startRendering(p.Q6())}; g.I.Ix=function(p,x,a){rZ(this.yw,p,x,a);var v;ar(x.layoutId===((v=this.Sk)==null?void 0:v.Q6().layoutId),"currentAdapter does not match exiting layout",{slot:p?"slot: "+p.slotType:"",subLayout:$I(x)})&&(this.Sk=void 0)}; g.I.release=function(){xb.prototype.release.call(this);ar(this.Sk===void 0,"currentAdapter is still active during release");this.Sk=void 0}; g.I.O2=function(){return this.SA.get().getPresentingPlayerType()===2}; g.I.cE=function(p,x){function a(){KK(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(x)||sE("Composite stopRendering: Unexpected layout exit reason",this.slot,p,{layoutExitReason:x}))} function v(){this.Sk&&dP(this,this.Sk,x);if(this.O2()&&(!KK(this)||x!=="abandoned")){a.call(this);var J;var R=((J=this.KI.get().W.getVideoData())==null?void 0:J.clientPlaybackNonce)||"";J=Ca(this.KI.get(),1).clientPlaybackNonce;this.k0.get().finishSegmentByCpn(R,J,Ee(x,this.s7))}Ueb(this,x)} function c(){if(this.Sk){var J=this.Sk;J.C7().currentState<2&&J.cE(J.Q6(),x);J=KK(this)&&x==="abandoned";this.O2()&&!J&&(a.call(this),this.k0.get().finishSegmentByCpn(this.Sk.Q6().layoutId,Ca(this.KI.get(),1).clientPlaybackNonce,Ee(x,this.s7)))}} ar(p.layoutId===this.Q6().layoutId,"StopRendering for wrong layout")&&xc(this.gP.Z,x)&&(this.by()?v.call(this):c.call(this))}; g.I.wV=function(p,x,a){xb.prototype.wV.call(this,p,x,a);x.layoutId===this.Q6().layoutId&&this.SA.get().removeListener(this)}; g.I.BM=function(){return Ca(this.KI.get(),1).clientPlaybackNonce}; g.I.Wb=function(p,x,a){Dp1(Object.assign({},$b(this),{cpn:p}));if(!KK(this)||a!==5)if(this.by()){if(this.Sk&&this.Sk.Q6().layoutId!==x){var v=this.Sk.Q6().layoutId;v!==p&&sE("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:v,exitingCpn:p,enteringCpn:x});p=ym(a,this.s7);dP(this,this.Sk,p)}else this.Sk&&sE("onClipExited: active layout is entering again");x===this.BM()&&TBf(this,a)}else{if(this.Sk&&this.Sk.Q6().layoutId===p)H5f(this,this.Sk,a);else{var c;sE("Exiting cpn does not match active cpn", this.slot,(v=this.Sk)==null?void 0:v.Q6(),{exitingCpn:p,transitionReason:a,activeCpn:(c=this.Sk)==null?void 0:c.Q6().layoutId})}x===this.BM()&&(this.Sk!==void 0&&(sE("active adapter is not properly exited",this.slot,this.layout,{activeLayout:$I(this.Sk.Q6())}),H5f(this,this.Sk,a)),TBf(this,a),Ueb(this,this.gP.Z.U))}}; g.I.by=function(){return Cj(this.s7.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.I.startRendering=function(p){this.wY(p)&&(p=this.gP,ar(p.U===1,"tickStartRendering: state is not initial"),p.U=2,this.sU())}; g.I.uK=function(p){kn_(Object.assign({},$b(this),{cpn:p}));var x=this.HB.find(function(a){return a.Q6().layoutId===p}); x?(this.gP.U!==2&&(c6o(this.Ji,this.slot.slotId),ar(this.gP.U===2,"Expect started"),this.callback.g3(this.slot,this.layout)),this.EY(x),br(this.yw,this.slot,x.Q6())):Qrg(this,p)}; g.I.SL=function(p,x){YEb(this,p,x);var a=this.rk();a?hv_(a,p,x)&&meI(this,"skipped"):SEQ(this,"onSkipRequested")}; g.I.M8=function(p,x){var a;a:{if(a=this.rk()){if(jr1(this),I51(a,p,x)&&(p=MGx(this,a,p,x),p!==void 0)){a={Rr:a,b3r:this.HB[p]};break a}}else SEQ(this,"SkipWithAdPodSkip");a=void 0}if(p=a)a=p.Rr,x=p.b3r,p=a.Q6().layoutId,this.by()?dP(this,a,"skipped"):a.cE(a.Q6(),"skipped"),a=x.Q6().layoutId,this.k0.get().finishSegmentByCpn(p,a,Ee("skipped",this.s7))}; g.I.PC=function(){sE("Not used in html5_ssap_fix_layout_exit")}; g.I.GC=function(p){var x;(x=this.rk())==null||x.GC(p)}; g.I.Ta=function(){sE("Not used in html5_ssap_fix_layout_exit")}; g.I.fu=function(p,x,a){var v;if(((v=this.rk())==null?void 0:v.Q6().layoutId)!==x.layoutId)return void sE("requestToExitSubLayout: wrong layout");meI(this,a)};g.M(b6,g.y);g.I=b6.prototype;g.I.x0=function(){return this.Gw.x0()}; g.I.Q6=function(){return this.Gw.Q6()}; g.I.init=function(){var p=Gr(this.Q6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.pF()}; g.I.pF=function(){this.Gw.init()}; g.I.release=function(){var p=Gr(this.Q6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);this.QA()}; g.I.QA=function(){this.Gw.release()}; g.I.eW=function(){this.Gw.eW()}; g.I.zV=function(){this.Gw.zV()}; g.I.SL=function(p,x){sE("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.x0(),this.Q6(),{requestingSlot:p,requestingLayout:x})}; g.I.startRendering=function(p){p.layoutId!==this.Q6().layoutId?this.callback.El(this.x0(),p,new gy("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Q6().layoutId+("and LayoutType: "+this.Q6().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.SA.get().addListener(this),FP(this.fW(),this),c_o(this.sz.get()),Baz(this.s7.get())||qv8(this.SA.get()),this.Gw.startRendering(p))}; g.I.cE=function(p,x){this.bE=!0;this.Gw.cE(p,x);this.SA.get().W.WL();KbQ(this.Uz.get(),{});p=pJ(this.SA.get(),1);p.isPaused()&&!g.q(p,2)&&this.SA.get().playVideo();this.SA.get().removeListener(this);this.bE&&this.Gw.KH()}; g.I.g3=function(p,x){this.Gw.g3(p,x)}; g.I.wV=function(p,x,a){x.layoutId===this.Q6().layoutId&&(this.bE=!1,pj(this.fW(),this));this.Gw.wV(p,x,a);x.layoutId===this.Q6().layoutId&&vK(this.sz.get())}; g.I.Yi=function(p){this.Gw.Yi(p)}; g.I.GC=function(p){if(p.state.isError()){var x,a;this.Ta((x=p.state.RB)==null?void 0:x.errorCode,new gy("There was a player error during this media layout.",{playerErrorCode:(a=p.state.RB)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Gw.GC(p)}; g.I.Ta=function(p,x,a){this.Gw.ZQ(p,x,a)}; g.I.onFullscreenToggled=function(p){this.Gw.onFullscreenToggled(p)}; g.I.D$=function(p){this.Gw.D$(p)}; g.I.Tt=function(p){this.Gw.Tt(p)}; g.I.onVolumeChange=function(){this.Gw.onVolumeChange()}; g.I.Xl=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.KT=function(){}; g.I.xD=function(){};g.I=rP.prototype;g.I.x0=function(){return this.slot}; g.I.Q6=function(){return this.layout}; g.I.init=function(){this.QV.get().addListener(this);this.SA.get().addListener(this);var p=Gr(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var x=Gr(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.B){var a=this.QV.get().h0.slice(-1)[0];a!==void 0&&(p=a.startSecs*1E3,x=(a.startSecs+a.uc)*1E3)}this.HQ(p,x);var v;a=(v=this.KI.get().oz)==null?void 0:v.clientPlaybackNonce;v=this.layout.Vp.adClientDataEntry;BK(this.Dt.get(),{daiStateTrigger:{filledAdsDurationMs:x-p,contentCpn:a, adClientData:v}});var c=this.QV.get();c=XCx(c.j,p,x);c!==null&&(BK(this.Dt.get(),{daiStateTrigger:{filledAdsDurationMs:c-p,contentCpn:a,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:v}}),this.k0.get().LX(c,x))}; g.I.release=function(){this.QA();this.QV.get().removeListener(this);this.SA.get().removeListener(this)}; g.I.startRendering=function(){this.Te();this.callback.g3(this.slot,this.layout)}; g.I.cE=function(p,x){this.f9(x);this.driftRecoveryMs!==null&&(l6(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(i5g(this)-Gr(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.SA.get().W.J3()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.wV(this.slot,this.layout,x)}; g.I.zr=function(){return!1}; g.I.xI=function(p){var x=Gr(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),a=Gr(this.layout.clientMetadata,"metadata_type_layout_exit_ms");p*=1E3;if(x<=p&&p0&&BE(this.U(),x)}; g.I.MV=function(p){this.C.delete(p.slotId);for(var x=[],a=g.k(this.SD.values()),v=a.next();!v.done;v=a.next()){v=v.value;var c=v.trigger;c instanceof Kn&&c.triggeringSlotId===p.slotId&&x.push(v)}x.length>0&&BE(this.U(),x)}; g.I.qV=function(p){for(var x=[],a=g.k(this.SD.values()),v=a.next();!v.done;v=a.next()){v=v.value;var c=v.trigger;c instanceof Fe&&c.slotType===p.slotType&&c.U!==p.slotId&&x.push(v)}x.length>0&&BE(this.U(),x)}; g.I.DK=function(p){this.j.add(p.slotId);for(var x=[],a=g.k(this.SD.values()),v=a.next();!v.done;v=a.next())v=v.value,v.trigger instanceof sP&&p.slotId===v.trigger.triggeringSlotId&&x.push(v);x.length>0&&BE(this.U(),x)}; g.I.qN=function(p){this.j.delete(p.slotId);this.B.add(p.slotId);for(var x=[],a=g.k(this.SD.values()),v=a.next();!v.done;v=a.next())if(v=v.value,v.trigger instanceof vP)p.slotId===v.trigger.triggeringSlotId&&x.push(v);else if(v.trigger instanceof ZP){var c=v.trigger;p.slotId===c.slotId&&this.Z.has(c.triggeringLayoutId)&&x.push(v)}x.length>0&&BE(this.U(),x)}; g.I.V4=function(p){for(var x=[],a=g.k(this.SD.values()),v=a.next();!v.done;v=a.next())v=v.value,v.trigger instanceof cP&&p.slotId===v.trigger.triggeringSlotId&&x.push(v);x.length>0&&BE(this.U(),x)}; g.I.nG=function(p){for(var x=[],a=g.k(this.SD.values()),v=a.next();!v.done;v=a.next())v=v.value,v.trigger instanceof JR&&p.slotId===v.trigger.triggeringSlotId&&x.push(v);x.length>0&&BE(this.U(),x)}; g.I.lL=function(p,x){this.S.add(x.layoutId)}; g.I.s6=function(p,x){this.S.delete(x.layoutId)}; g.I.g3=function(p,x){this.Z.add(x.layoutId);for(var a=[],v=g.k(this.SD.values()),c=v.next();!c.done;c=v.next())if(c=c.value,c.trigger instanceof G$)x.layoutId===c.trigger.triggeringLayoutId&&a.push(c);else if(c.trigger instanceof Vh){var J=c.trigger;p.slotType===J.slotType&&x.layoutType===J.layoutType&&x.layoutId!==J.U&&a.push(c)}else c.trigger instanceof ZP&&(J=c.trigger,x.layoutId===J.triggeringLayoutId&&this.B.has(J.slotId)&&a.push(c));a.length>0&&BE(this.U(),a)}; g.I.wV=function(p,x,a){this.Z.delete(x.layoutId);p=[];for(var v=g.k(this.SD.values()),c=v.next();!c.done;c=v.next())if(c=c.value,c.trigger instanceof N5&&x.layoutId===c.trigger.triggeringLayoutId&&p.push(c),c.trigger instanceof OR){var J=c.trigger;x.layoutId===J.triggeringLayoutId&&J.U.includes(a)&&p.push(c)}p.length>0&&BE(this.U(),p)}; g.I.Qu=function(){}; g.I.tZ=function(){this.B.clear()}; g.I.CJ=function(){};g.M(FL,g.y);FL.prototype.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(x instanceof yh))throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in CloseRequestedTriggerAdapter");this.SD.set(x.triggerId,new rn(p,x,a,v))}; FL.prototype.gw=function(p){this.SD.delete(p.triggerId)};g.M(xQ,g.y);xQ.prototype.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(x instanceof ER||x instanceof xv))throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.SD.set(x.triggerId,new rn(p,x,a,v))}; xQ.prototype.gw=function(p){this.SD.delete(p.triggerId)}; xQ.prototype.tZ=function(p){for(var x=[],a=x.push,v=a.apply,c=[],J=g.k(this.SD.values()),R=J.next();!R.done;R=J.next())R=R.value,R.trigger instanceof ER&&R.trigger.Gd===p&&c.push(R);v.call(a,x,g.lf(c));a=x.push;v=a.apply;c=[];J=g.k(this.SD.values());for(R=J.next();!R.done;R=J.next())R=R.value,R.trigger instanceof xv&&R.trigger.U!==p&&c.push(R);v.call(a,x,g.lf(c));x.length&&BE(this.U(),x)}; xQ.prototype.CJ=function(p){for(var x=[],a=x.push,v=a.apply,c=[],J=g.k(this.SD.values()),R=J.next();!R.done;R=J.next()){R=R.value;var d=R.trigger;d instanceof xv&&d.U===p&&c.push(R)}v.call(a,x,g.lf(c));x.length&&BE(this.U(),x)};g.M($Q,g.y);g.I=$Q.prototype;g.I.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");var c="adtriggercuerange:"+x.triggerId;if(x instanceof eH)eSb(this,p,x,a,v,c,x.U.start,x.U.end,x.Gd,x.visible);else if(x instanceof gP)eSb(this,p,x,a,v,c,0x7ffffffffffff,0x8000000000000,x.Gd,x.visible);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in CueRangeTriggerAdapter");}; g.I.gw=function(p){var x=this.SD.get(p.triggerId);x&&this.zw.get().removeCueRange(x.cueRangeId);this.SD.delete(p.triggerId)}; g.I.onCueRangeEnter=function(p){var x=uIg(this,p);if(x&&(x=this.SD.get(x)))if(g.q(pJ(this.SA.get()),32))this.U.add(x.cueRangeId);else{var a=x==null?void 0:x.Eh.trigger;if(a instanceof eH||a instanceof gP){if(JD(this.context.s7.get())){var v=x.Eh.slot,c=x.Eh.layout,J={};this.context.HN.w3("cre",(J.ca=x.Eh.category,J.tt=a.triggerType,J.st=v.slotType,J.lt=c==null?void 0:c.layoutType,J.cid=p,J))}BE(this.Z(),[x.Eh])}}}; g.I.onCueRangeExit=function(p){(p=uIg(this,p))&&(p=this.SD.get(p))&&this.U.delete(p.cueRangeId)}; g.I.GC=function(p){if(cC(p,16)<0){p=g.k(this.U);for(var x=p.next();!x.done;x=p.next())this.onCueRangeEnter(x.value,!0);this.U.clear()}}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.g3=function(){}; g.I.wV=function(){}; g.I.Qu=function(){}; g.I.Yi=function(){}; g.I.onFullscreenToggled=function(){}; g.I.D$=function(){}; g.I.Xl=function(){}; g.I.Tt=function(){}; g.I.onVolumeChange=function(){}; g.I.KT=function(){}; g.I.xD=function(){};g.M(as,g.y);g.I=as.prototype; g.I.xC=function(p,x,a,v){if(this.Z.has(x.triggerId)||this.j.has(x.triggerId))throw new e("Tried to re-register the trigger.");p=new rn(p,x,a,v);if(p.trigger instanceof nK)this.Z.set(p.trigger.triggerId,p);else if(p.trigger instanceof AK)this.j.set(p.trigger.triggerId,p);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+p.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.Z.has(p.trigger.triggerId)&&p.slot.slotId===this.U&&BE(this.B(),[p])}; g.I.gw=function(p){this.Z.delete(p.triggerId);this.j.delete(p.triggerId)}; g.I.h_=function(p){p=p.slotId;if(this.U!==p){var x=[];this.U!=null&&x.push.apply(x,g.lf(V1I(this.j,this.U)));p!=null&&x.push.apply(x,g.lf(V1I(this.Z,p)));this.U=p;x.length&&BE(this.B(),x)}}; g.I.Wb=function(){}; g.I.uK=function(){};g.M(vc,g.y);g.I=vc.prototype;g.I.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(x instanceof pn))throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.SD.set(x.triggerId,new rn(p,x,a,v))}; g.I.gw=function(p){this.SD.delete(p.triggerId)}; g.I.g3=function(){}; g.I.wV=function(){}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){};g.M(cc,g.y);g.I=cc.prototype;g.I.Qu=function(p,x){for(var a=[],v=g.k(this.SD.values()),c=v.next();!c.done;c=v.next()){c=c.value;var J=c.trigger;J.opportunityType===p&&(J.associatedSlotId&&J.associatedSlotId!==x||a.push(c))}a.length&&BE(this.U(),a)}; g.I.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(x instanceof RDb))throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in OpportunityEventTriggerAdapter");this.SD.set(x.triggerId,new rn(p,x,a,v))}; g.I.gw=function(p){this.SD.delete(p.triggerId)}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.g3=function(){}; g.I.wV=function(){};g.M(J2,g.y);g.I=J2.prototype;g.I.xC=function(p,x,a,v){p=new rn(p,x,a,v);if(x instanceof PK||x instanceof u6||x instanceof q5||x instanceof $v||x instanceof RR_){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");this.SD.set(x.triggerId,p)}else throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in PrefetchTriggerAdapter");}; g.I.gw=function(p){this.SD.delete(p.triggerId)}; g.I.R9=function(p){var x=p.slotFulfillmentTriggers.find(function(a){return a instanceof PK}); x&&(Rs(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",x.breakDurationMs,new Set([p.slotId]),!0),Yb(this.Dt.get(),"ads_css","sid."+p.slotId+";bd."+x.breakDurationMs))}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.g3=function(){}; g.I.wV=function(){}; g.I.Qu=function(){}; g.I.zr=function(p){var x=this;if(!this.U)return sE("Unexpected cue break before fetch instructions are available"),!1;this.Z&&this.Z.stop();this.C&&g.Pk(this.C);var a=$VN(this,p);if(!a){var v=p8Q(this),c=this.V!==void 0&&Date.now()<=this.V+1E4;Yb(this.Dt.get(),"ads_ncfs","cid."+p.identifier+";cd."+p.uc.toFixed(3)+";ccs."+c+";cfa."+this.B+";bdc."+v.length+";"+v.slice(0,6).map(function(J){return";bd."+J}).join("")); return c?(wL(this.Q4,this.U,p),!0):!1}(v=Gr(a.slot.clientMetadata,"metadata_type_triggering_cue_point"))?v.current=p:sE("Expected triggering cue point ref to be available",a.slot);(new g.AW(function(){var J=a.trigger,R=a.slot;Rs(x,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",J.breakDurationMs,new Set,!0);Rs(x,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",J.breakDurationMs,new Set,!1);for(var d=0,b=g.k(x.SD.values()),r=b.next();!r.done;r=b.next()){r=r.value;var B=r.trigger; r.slot.slotId===R.slotId&&(x.SD.delete(B.triggerId),d++)}Yb(x.Dt.get(),"ads_csf","sid."+R.slotId+";bd."+J.breakDurationMs+";dt."+d)},10)).start(); return!0}; g.I.xI=function(){}; g.I.tZ=function(p){var x=this;this.B=!1;this.V=Date.now();if(this.U&&this.U.contentCpn!==p)sE("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.U.contentCpn}),Kz(this);else{this.j=new g.AW(function(){if(x.B)delete x.j;else{var v=x.SA.get().getGetAdBreakContext(),c;if(Number(v==null?void 0:(c=v.livePlaybackPosition)==null?void 0:c.utcTimeMillis)>0)delete x.j,xVT(x);else{var J;(J=x.j)==null||J.start()}}},200); var a;(a=this.j)==null||a.start()}}; g.I.CJ=function(p){this.U&&this.U.contentCpn!==p&&sE("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.U.contentCpn},!0);Kz(this)}; g.I.mI=function(p){var x=this;if(this.U)sE("Unexpected multiple fetch instructions for the current content");else{this.U=p;p=so1(p);this.Z=new g.AW(function(){xVT(x)},p?p:6E5); this.Z.start();this.C=new g.AW(function(){x.U&&(x.Z&&(x.Z.stop(),x.Z.start()),FJQ(x,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},axb(this.U)); p=this.SA.get().getCurrentTimeSec(1,!1);for(var a=g.k(this.QV.get().h0),v=a.next();!v.done;v=a.next())v=v.value,Yb(this.Dt.get(),"nocache","ct."+Date.now()+";cmt."+p+";d."+v.uc.toFixed(3)+";tw."+(v.startSecs-p)+";cid."+v.identifier+";")}}; g.I.PO=function(){g.y.prototype.PO.call(this);Kz(this)};g.M(dq,g.y);g.I=dq.prototype;g.I.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(x instanceof bb))throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.SD.set(x.triggerId,new rn(p,x,a,v));p=this.U.has(x.triggeringLayoutId)?this.U.get(x.triggeringLayoutId):new Set;p.add(x);this.U.set(x.triggeringLayoutId,p)}; g.I.gw=function(p){this.SD.delete(p.triggerId);if(!(p instanceof bb))throw new e("Incorrect TriggerType: Tried to unregister trigger of type "+p.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var x=this.Z.get(p.triggerId);x&&(x.dispose(),this.Z.delete(p.triggerId));if(x=this.U.get(p.triggeringLayoutId))x.delete(p),x.size===0&&this.U.delete(p.triggeringLayoutId)}; g.I.R9=function(){}; g.I.MV=function(){}; g.I.qV=function(){}; g.I.DK=function(){}; g.I.qN=function(){}; g.I.V4=function(){}; g.I.nG=function(){}; g.I.lL=function(){}; g.I.s6=function(){}; g.I.Qu=function(){}; g.I.g3=function(p,x){var a=this;if(this.U.has(x.layoutId)){p=this.U.get(x.layoutId);p=g.k(p);var v=p.next();for(x={};!v.done;x={sj:void 0},v=p.next())x.sj=v.value,v=new g.AW(function(c){return function(){var J=a.SD.get(c.sj.triggerId);BE(a.j(),[J])}}(x),x.sj.durationMs),v.start(),this.Z.set(x.sj.triggerId,v)}}; g.I.wV=function(){};g.M(bp,g.y);bp.prototype.xC=function(p,x,a,v){if(this.SD.has(x.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(x instanceof z$))throw new e("Incorrect TriggerType: Tried to register trigger of type "+x.triggerType+" in VideoTransitionTriggerAdapter.");this.SD.set(x.triggerId,new rn(p,x,a,v))}; bp.prototype.gw=function(p){this.SD.delete(p.triggerId)};Lz.prototype.Mt=function(p){return p.kind==="AD_PLACEMENT_KIND_START"};g.M(jx,g.y);g.I=jx.prototype;g.I.logEvent=function(p){this.KZ(p)}; g.I.TG=function(p,x,a){this.KZ(p,void 0,void 0,void 0,x,void 0,void 0,void 0,x.adSlotLoggingData,void 0,void 0,a)}; g.I.y4=function(p,x,a,v){this.KZ(p,void 0,void 0,void 0,x,a?a:void 0,void 0,void 0,x.adSlotLoggingData,a?a.adLayoutLoggingData:void 0,void 0,v)}; g.I.U3=function(p,x,a,v){Cj(this.s7.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"trigger:",a,"slot:",x,"layout:",v);qV(this.U.get())&&this.KZ(p,void 0,void 0,void 0,x,v?v:void 0,void 0,a,x.adSlotLoggingData,v?v.adLayoutLoggingData:void 0)}; g.I.QX=function(p,x,a,v,c){this.KZ(p,x,a,v,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c)}; g.I.eB=function(p,x,a,v){this.KZ("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,a,v,void 0,void 0,a.adSlotLoggingData,v?v.adLayoutLoggingData:void 0,{errorType:p,errorMessage:x})}; g.I.KZ=function(p,x,a,v,c,J,R,d,b,r,B,l){var L=this;l=l===void 0?0:l;Cj(this.s7.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"slot:",c,"layout:",J,"ping:",R,"Opportunity:",{opportunityType:x,associatedSlotId:a,W9O:v,hq5:d,adSlotLoggingData:b,adLayoutLoggingData:r});try{var Y=function(){if(!L.s7.get().W.L().D("html5_disable_client_tmp_logs")&&p!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){p||sE("Empty PACF event type",c,J);var h=qV(L.U.get()),D={eventType:p,eventOrder:++L.eventCount},H={}; c&&(H.slotData=P8(h,c));J&&(H.layoutData=EZb(h,J));R&&(H.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:R.U.serializedAdPingMetadata,pingIndex:R.index});d&&(H.triggerData=A6(d.trigger,d.category));x&&(H.opportunityData=yJx(h,x,a,v));h={organicPlaybackContext:{contentCpn:Ca(L.KI.get(),1).clientPlaybackNonce}};h.organicPlaybackContext.isLivePlayback=Ca(L.KI.get(),1).Dp;var f;h.organicPlaybackContext.isMdxPlayback=(f=Ca(L.KI.get(),1))==null?void 0:f.isMdxPlayback; var m;if((m=Ca(L.KI.get(),1))==null?0:m.daiEnabled)h.organicPlaybackContext.isDaiContent=!0;var X;if(f=(X=Ca(L.KI.get(),2))==null?void 0:X.clientPlaybackNonce)h.adVideoPlaybackContext={adVideoCpn:f};h&&(H.externalContext=h);D.adClientData=H;b&&(D.serializedSlotAdServingData=b.serializedSlotAdServingDataEntry);r&&(D.serializedAdServingData=r.serializedAdServingDataEntry);B&&(D.errorInfo=B);g.ab("adsClientStateChange",{adsClientEvent:D})}}; l&&l>0?g.AX(g.ql(),function(){return Y()},l):Y()}catch(h){Cj(this.s7.get(),"html5_log_pacf_logging_errors")&&g.AX(g.ql(),function(){sE(h instanceof Error?h:String(h),c,J,{pacf_message:"exception during pacf logging"})})}};var QTO=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.M(Is,jx);g.I=Is.prototype; g.I.TG=function(p,x,a){jx.prototype.TG.call(this,p,x,a);JD(this.s7.get())&&(a={},this.context.HN.w3("pacf",(a.et=p,a.st=x.slotType,a.si=x.slotId,a)))}; g.I.y4=function(p,x,a,v){var c=QTO.has(p);jx.prototype.y4.call(this,p,x,a,v);JD(this.s7.get(),c)&&(v={},this.context.HN.w3("pacf",(v.et=p,v.st=x.slotType,v.si=x.slotId,v.lt=a==null?void 0:a.layoutType,v.li=a==null?void 0:a.layoutId,v.p_ac=a==null?void 0:a.layoutId,v)))}; g.I.QX=function(p,x,a,v,c){jx.prototype.QX.call(this,p,x,a,v,c);JD(this.s7.get())&&(a={},this.context.HN.w3("pacf",(a.et=p,a.ot=x,a.ss=v==null?void 0:v.length,a)))}; g.I.U3=function(p,x,a,v){jx.prototype.U3.call(this,p,x,a,v);if(JD(this.s7.get())){var c={};this.context.HN.w3("pacf",(c.et=p,c.tt=a.trigger.triggerType,c.tc=a.category,c.st=x.slotType,c.si=x.slotId,c.lt=v==null?void 0:v.layoutType,c.li=v==null?void 0:v.layoutId,c.p_ac=v==null?void 0:v.layoutId,c))}}; g.I.eB=function(p,x,a,v){jx.prototype.eB.call(this,p,x,a,v);if(JD(this.s7.get(),!0)){var c={};this.context.HN.w3("perror",(c.ert=p,c.erm=x,c.st=a.slotType,c.si=a.slotId,c.lt=v==null?void 0:v.layoutType,c.li=v==null?void 0:v.layoutId,c.p_ac=v==null?void 0:v.layoutId,c))}}; g.I.KZ=function(p,x,a,v,c,J,R,d,b,r,B){var l=this.s7.get();g.dZ(l.W.L())?(l=this.s7.get(),l=g.e_(l.W.L().experiments,"H5_async_logging_delay_ms")):l=void 0;jx.prototype.KZ.call(this,p,x,a,v,c,J,R,d,b,r,B,l)};M8.prototype.clear=function(){this.U.clear()};Wc.prototype.state=function(){return this.U==="fulfilled"?{state:"fulfilled",value:this.result}:this.U==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Wc.prototype.B=function(p){Dn(p)||kQ(p)?mo(Uw(p),this.B.bind(this),this.reject.bind(this)):(this.U="fulfilled",this.result=p,Qx(this))}; Wc.prototype.reject=function(p){this.U="rejected";this.error=p;Qx(this)}; var kQ=RT(function(p){return wQR(p)?p instanceof Wc:!1});Object.freeze({K9r:function(p){var x=os(p);return mo(ip(x,function(a){return x[a].U==="rejected"}),function(a){return Number.isNaN(a)?x.map(function(v){return v.state().value}):x[a]})}, tII:function(p){var x=os(p);return mo(ip(x),function(){return x.map(function(a){return a.state()})})}, XFI:function(p){var x=os(p);return mo(ip(x,function(a){return x[a].U==="fulfilled"}),function(a){return Number.isNaN(a)?Hc(new AggregateError(x.map(function(v){return v.state().reason}))):x[a].state().value})}, YGg:function(p){var x=os(p);return mo(ip(x,function(){return!0}),function(a){return x[a]})}});var t2=window.XGA||"pt-BR";yx.prototype.bA=function(p){this.client=p}; yx.prototype.U=function(){this.clear();this.csn=g.Yi()}; yx.prototype.clear=function(){this.j.clear();this.Z.clear();this.B.clear();this.csn=null};Zn.prototype.bA=function(p){g.Pr(gq().bA).bind(gq())(p)}; Zn.prototype.clear=function(){g.Pr(gq().clear).bind(gq())()};g.I=Ga.prototype;g.I.bA=function(p){this.client=p}; g.I.ZN=function(p,x){var a=this;x=x===void 0?{}:x;g.Pr(function(){var v,c,J,R=((v=g.O(p==null?void 0:p.commandMetadata,g.W7))==null?void 0:v.rootVe)||((c=g.O(p==null?void 0:p.commandMetadata,O9X))==null?void 0:(J=c.screenVisualElement)==null?void 0:J.uiType);if(R){v=g.O(p==null?void 0:p.commandMetadata,KBw);if(v==null?0:v.parentTrackingParams){var d=g.Bp(v.parentTrackingParams);if(v.parentCsn)var b=v.parentCsn}else x.clickedVisualElement?d=x.clickedVisualElement:p.clickTrackingParams&&(d=g.Bp(p.clickTrackingParams)); a:{v=g.O(p,g.hM);c=g.O(p,$WX);if(v){if(c=DVz(v,"VIDEO")){v={token:c,videoId:v.videoId};break a}}else if(c&&(v=DVz(c,"PLAYLIST"))){v={token:v,playlistId:c.playlistId};break a}v=void 0}x=Object.assign({},{cttAuthInfo:v,parentCsn:b},x);if(g.Ly("expectation_logging")){var r;x.loggingExpectations=((r=g.O(p==null?void 0:p.commandMetadata,O9X))==null?void 0:r.loggingExpectations)||void 0}N8(a,R,d,x)}else g.Hp(new g.gr("Error: Trying to create a new screen without a rootVeType",p))})()}; g.I.clickCommand=function(p,x,a){p=p.clickTrackingParams;a=a===void 0?0:a;p?(a=g.Yi(a===void 0?0:a))?(G4(this.client,a,g.Bp(p),x),x=!0):x=!1:x=!1;return x}; g.I.stateChanged=function(p,x,a){this.visualElementStateChanged(g.Bp(p),x,a===void 0?0:a)}; g.I.visualElementStateChanged=function(p,x,a){a=a===void 0?0:a;a===0&&this.Z.has(a)?this.Y.push([p,x]):S7b(this,p,x,a)};nz.prototype.fetch=function(p,x,a){var v=this,c=X81(p,x,a);return new Promise(function(J,R){function d(){if(a==null?0:a.pZ)try{var r=v.handleResponse(p,c.status,c.response,a);J(r)}catch(B){R(B)}else J(v.handleResponse(p,c.status,c.response,a))} c.onerror=d;c.onload=d;var b;c.send((b=x.body)!=null?b:null)})}; nz.prototype.handleResponse=function(p,x,a,v){a=a.replace(")]}'","");try{var c=JSON.parse(a)}catch(J){g.Hp(new g.gr("JSON parsing failed after XHR fetch",p,x,a));if((v==null?0:v.pZ)&&a)throw new g.wG(1,"JSON parsing failed after XHR fetch");c={}}x!==200&&(g.Hp(new g.gr("XHR API fetch failed",p,x,a)),c=Object.assign({},c,{errorMetadata:{status:x}}));return c};ex.getInstance=function(){var p=g.$t("ytglobal.storage_");p||(p=new ex,g.pG("ytglobal.storage_",p));return p}; ex.prototype.estimate=function(){var p,x,a;return g.t(function(v){p=navigator;return((x=p.storage)==null?0:x.estimate)?v.return(p.storage.estimate()):((a=p.webkitTemporaryStorage)==null?0:a.queryUsageAndQuota)?v.return(im_()):v.return()})}; g.pG("ytglobal.storageClass_",ex);xl.prototype.i9=function(p){this.handleError(p)}; xl.prototype.logEvent=function(p,x){switch(p){case "IDB_DATA_CORRUPTED":g.Ly("idb_data_corrupted_killswitch")||this.U("idbDataCorrupted",x);break;case "IDB_UNEXPECTEDLY_CLOSED":this.U("idbUnexpectedlyClosed",x);break;case "IS_SUPPORTED_COMPLETED":g.Ly("idb_is_supported_completed_killswitch")||this.U("idbIsSupportedCompleted",x);break;case "QUOTA_EXCEEDED":t_g(this,x);break;case "TRANSACTION_ENDED":this.j&&Math.random()<=.1&&this.U("idbTransactionEnded",x);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p= Object.assign({},x,{hasWindowUnloaded:this.Z}),this.U("idbTransactionAborted",p)}};var P7={},gvQ=g.qM("yt-player-local-media",{G7:(P7.index={ZG:2},P7.media={ZG:2},P7.captions={ZG:5},P7),shared:!1,upgrade:function(p,x){x(2)&&(g.DH(p,"index"),g.DH(p,"media"));x(5)&&g.DH(p,"captions");x(6)&&(Uj(p,"metadata"),Uj(p,"playerdata"))}, version:5});var mvX={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},qP;a:{var ng=g.Ez();ng=ng.toLowerCase();if(g.Xs(ng,"android")){var SOt=ng.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(SOt){var fSX=parseFloat(SOt[1]);if(fSX<100){qP=fSX;break a}}var CNZ=ng.match("("+Object.keys(mvX).join("|")+")");qP=CNZ?mvX[CNZ[0]]:0}else qP=void 0}var Fn=qP,V_=Fn>=0;var NY1=window;var zFT=tb(function(){var p,x;return(x=(p=window).matchMedia)==null?void 0:x.call(p,"(prefers-reduced-motion: reduce)").matches});var Vx;g.up=new rb;Vx=0;var lT=Om1()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ZH?!0:!1;var x9={cF:function(p,x){var a=p[0];p[0]=p[x%p[K[2]]];p[x%p[K[2]]]=a}, pv:function(p,x){p[K[27]](0,x)}, NN:function(p){p[K[37]]()}};var tHg={GQ4:"adunit",sMg:"detailpage",bT7:"editpage",VvI:"embedded",kg4:"leanback",sVO:"previewpage",B_a:"profilepage",Xh:"unplugged",jVt:"playlistoverview",dhO:"sponsorshipsoffer",HJO:"shortspage",pU6:"handlesclaiming",i04:"immersivelivepage",p$A:"creatormusic",DXg:"immersivelivepreviewpage",Ks4:"admintoolyurt",cm4:"shortsaudiopivot",EiO:"consumption"};var Eb1={Cft:0,Wet:1,STr:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var qo1=2592E3;var eO,Xqt,X2;eO={};g.j3=(eO.STOP_EVENT_PROPAGATION="html5-stop-propagation",eO.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",eO.IV_DRAWER_OPEN="ytp-iv-drawer-open",eO.MAIN_VIDEO="html5-main-video",eO.VIDEO_CONTAINER="html5-video-container",eO.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",eO.HOUSE_BRAND="house-brand",eO);Xqt={};X2=(Xqt.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Xqt.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Xqt);var sCg={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var RQI={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},KKU={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"},$hg={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var cm1={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.WX.prototype.getLanguageInfo=function(){return this.AX}; g.WX.prototype.getXtags=function(){if(!this.xtags){var p=this.id.split(";");p.length>1&&(this.xtags=p[1])}return this.xtags}; g.WX.prototype.toString=function(){return this.AX.name}; g.WX.prototype.getLanguageInfo=g.WX.prototype.getLanguageInfo;k9.prototype.equals=function(p){return this.Z===p.Z&&this.U===p.U&&this.j===p.j&&this.reason===p.reason&&(!UY||this.y6===p.y6)}; k9.prototype.isLocked=function(){return this.j&&!!this.Z&&this.Z===this.U}; k9.prototype.compose=function(p){if(p.j&&HX(p))return dY;if(p.j||HX(this))return p;if(this.j||HX(p))return this;var x=this.Z&&p.Z?Math.max(this.Z,p.Z):this.Z||p.Z,a=this.U&&p.U?Math.min(this.U,p.U):this.U||p.U;x=Math.min(x,a);var v=0;UY&&(v=this.y6!==0&&p.y6!==0?Math.min(this.y6,p.y6):this.y6===0?p.y6:this.y6);return UY&&x===this.Z&&a===this.U&&v===this.y6||!UY&&x===this.Z&&a===this.U?this:UY?new k9(x,a,!1,a===this.U&&v===this.y6?this.reason:p.reason,v):new k9(x,a,!1,a===this.U?this.reason:p.reason)}; k9.prototype.B=function(p){return!p.video||UY&&this.y6!==0&&this.y6=0}; g.I.Pa=function(){var p=this.segments[this.segments.length-1];return p?p.endTime:NaN}; g.I.Lp=function(){return this.segments[0].startTime}; g.I.bk=function(){return this.segments.length}; g.I.Py=function(){return 0}; g.I.sN=function(p){return(p=this.jz(p))?p.i$:-1}; g.I.RD=function(p){return(p=this.F4(p))?p.sourceURL:""}; g.I.getStartTime=function(p){return(p=this.F4(p))?p.startTime:0}; g.I.nR=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.I.AQ=pU(1);g.I.isLoaded=function(){return this.segments.length>0}; g.I.F4=function(p){if(this.U&&this.U.i$===p)return this.U;p=g.Gy(this.segments,new n1(p,0,0,0,""),function(x,a){return x.i$-a.i$}); return this.U=p>=0?this.segments[p]:null}; g.I.jz=function(p){if(this.U&&this.U.startTime<=p&&p=0?this.segments[p]:this.segments[Math.max(0,-p-2)]}; g.I.append=function(p){if(p.length)if(p=g.CG(p),this.segments.length){var x=this.segments.length?g.hO(this.segments).endTime:0,a=p[0].i$-this.Q8();a>1&&DzJ(this.segments);for(a=a>0?0:-a+1;ap.i$&&this.index.hn()<=p.i$+1}; g.I.update=function(p,x,a){this.index.append(p);E0g(this.index,a);p=this.index;p.Z=x;p.j="update"}; g.I.C3=function(){return this.d7()?!0:NN.prototype.C3.call(this)}; g.I.MP=function(p,x){var a=this.index.RD(p),v=this.index.getStartTime(p),c=this.index.getDuration(p),J;x?c=J=0:J=this.info.y6>0?this.info.y6*c:1E3;return new aE([new ez(3,this,void 0,"liveCreateRequestInfoForSegment",p,v,c,0,J,!x)],a)}; g.I.xU=function(){return this.d7()?0:this.initRange.length}; g.I.q2=function(){return!1};dC.prototype.update=function(p){var x=void 0;this.Z&&(x=this.Z);var a=new dC,v=Array.from(p.getElementsByTagName("S"));if(v.length){var c=+RE(p,"timescale")||1,J=(+v[0].getAttribute("t")||0)/c,R=+RE(p,"startNumber")||0;a.B=J;var d=x?x.startSecs+x.uc:0,b=Date.parse(Xhx(RE(p,"yt:segmentIngestTime")))/1E3;a.C=p.parentElement.tagName==="SegmentTemplate";a.C&&(a.V=RE(p,"media"));p=x?R-x.i$:1;a.S=p>0?0:-p+1;p=g.k(v);for(v=p.next();!v.done;v=p.next()){v=v.value;for(var r=+v.getAttribute("d")/c,B=(+v.getAttribute("yt:sid")|| 0)/c,l=+v.getAttribute("r")||0,L=0;L<=l;L++)if(x&&R<=x.i$)R++;else{var Y=new fcU(R,d,r,b+B,J);a.U.push(Y);var h=v;var D=c,H=Y.startSecs;Y=h.getAttribute("yt:cuepointTimeOffset");var f=h.getAttribute("yt:cuepointDuration");if(Y&&f){Y=Number(Y);H=-Y/D+H;D=Number(f)/D;f=h.getAttribute("yt:cuepointContext")||null;var m=h.getAttribute("yt:cuepointIdentifier")||"";h=h.getAttribute("yt:cuepointEvent")||"";h=new vf(H,D,f,m,oGV[h]||"unknown",Y)}else h=null;h&&a.j.push(h);R++;d+=r;J+=r;b+=r+B}}a.U.length&& (a.Z=g.hO(a.U))}this.S=a.S;this.Z=a.Z||this.Z;g.XO(this.U,a.U);g.XO(this.j,a.j);this.C=a.C;this.V=a.V;this.B===-1&&(this.B=a.getStreamTimeOffset())}; dC.prototype.getStreamTimeOffset=function(){return this.B===-1?0:this.B};g.M(rC,g.e3);g.I=rC.prototype;g.I.B9=function(){return this.bL}; g.I.ME=function(p,x){p=Bz(this,p);return p>=0&&(x||!this.segments[p].pending)}; g.I.hn=function(){return this.p7?this.segments.length?this.jz(this.Lp()).i$:-1:g.e3.prototype.hn.call(this)}; g.I.Lp=function(){if(this.S3)return 0;if(!this.p7)return g.e3.prototype.Lp.call(this);if(!this.segments.length)return 0;var p=Math.max(g.hO(this.segments).endTime-this.z7,0);return this.Bm>0&&this.jz(p).i$0)return this.Jm/1E3;if(!this.segments.length)return g.e3.prototype.Pa.call(this);var p=this.Q8();if(!this.p7||p<=this.segments[this.segments.length-1].i$)p=this.segments[this.segments.length-1];else{var x=this.segments[this.segments.length-1];p=new n1(p,Math.max(0,x.startTime-(x.i$-p)*this.bL),this.bL,0,"sq/"+p,void 0,void 0,!0)}return this.S3?Math.min(this.z7,p.endTime):p.endTime}; g.I.bk=function(){return this.p7?this.segments.length?this.Q8()-this.hn()+1:0:g.e3.prototype.bk.call(this)}; g.I.Q8=function(){var p=Math.min(this.FR,Math.max(g.e3.prototype.Q8.call(this),this.Au)),x=this.z7*1E3;x=this.Jm>0&&this.Jm0&&this.Au>0&&!x&&(x=this.jz(this.z7))&&(p=Math.min(x.i$-1,p));return p}; g.I.P0=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.I.G2=function(p){var x=Bz(this,p.i$);if(x>=0)this.segments[x]=p;else if(this.segments.splice(-(x+1),0,p),this.JI&&p.i$%(300/this.bL)===0){var a=this.segments[0].i$,v=Math.floor(this.JI/this.bL);p=p.i$-v;x=-(x+1)-v;x>0&&p>a&&(this.segments=this.segments.slice(x))}}; g.I.yh=function(){return this.Au}; g.I.Qv=function(p){return b4?!this.Z&&p>=0&&this.Q8()<=p:g.e3.prototype.Qv.call(this,p)}; g.I.jz=function(p){if(!this.p7)return g.e3.prototype.jz.call(this,p);if(!this.segments.length)return null;var x=this.segments[this.segments.length-1];if(p=x.endTime)x=x.i$+Math.floor((p-x.endTime)/this.bL+1);else{x=OV(this.segments,function(v){return p=v.endTime?1:0}); if(x>=0)return this.segments[x];var a=-(x+1);x=this.segments[a-1];a=this.segments[a];x=Math.floor((p-x.endTime)/((a.startTime-x.endTime)/(a.i$-x.i$-1))+1)+x.i$}return this.F4(x)}; g.I.F4=function(p){if(!this.p7)return g.e3.prototype.F4.call(this,p);if(!this.segments.length)return null;var x=Bz(this,p);if(x>=0)return this.segments[x];var a=-(x+1);x=this.bL;if(a===0)var v=Math.max(0,this.segments[0].startTime-(this.segments[0].i$-p)*x);else a===this.segments.length?(v=this.segments[this.segments.length-1],v=v.endTime+(p-v.i$-1)*x):(v=this.segments[a-1],x=this.segments[a],x=(x.startTime-v.endTime)/(x.i$-v.i$-1),v=v.endTime+(p-v.i$-1)*x);return new n1(p,v,x,0,"sq/"+p,void 0,void 0, !0)}; var b4=!1;g.M(l4,Jk);g.I=l4.prototype;g.I.TO=function(){return!0}; g.I.C3=function(){return!0}; g.I.nA=function(p){return this.tp()&&p.j&&!p.B||!p.U.index.Qv(p.i$)}; g.I.B0=function(){}; g.I.PF=function(p,x){return typeof p!=="number"||isFinite(p)?Jk.prototype.PF.call(this,p,x===void 0?!1:x):new aE([new ez(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.aM,void 0,this.aM*this.info.y6)],"")}; g.I.MP=function(p,x){var a=a===void 0?!1:a;if(this.index.ME(p))return Jk.prototype.MP.call(this,p,x);var v=this.index.getStartTime(p),c=Math.round(this.aM*this.info.y6),J=this.aM;x&&(J=c=0);return new aE([new ez(a?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",p,v,J,void 0,c,!x)],p>=0?"sq/"+p:"")};g.M(LA,NN);g.I=LA.prototype;g.I.ue=function(){return!1}; g.I.tp=function(){return!1}; g.I.TO=function(){return!1}; g.I.B0=function(){return new aE([new ez(1,this,void 0,"otfInit")],this.C)}; g.I.nX=function(){return null}; g.I.Jy=function(p){this.nA(p);return gcU(this,pA(p),!1)}; g.I.PF=function(p,x){x=x===void 0?!1:x;p=this.index.sN(p);x&&(p=Math.min(this.index.Q8(),p+1));return gcU(this,p,!0)}; g.I.zJ=function(p){p.info.type===1&&(this.U||(this.U=v$(p.Z)),p.U&&p.U.uri==="http://youtube.com/streaming/otf/durations/112015"&&Zif(this,p.U))}; g.I.nA=function(p){return p.j===0?!0:this.index.Q8()>p.i$&&this.index.hn()<=p.i$+1}; g.I.xU=function(){return 0}; g.I.q2=function(){return!1};g.YU.prototype.info=function(){}; g.YU.prototype.debug=function(){}; g.YU.prototype.U=function(p){hk.apply(null,[5,this.tag,p].concat(g.lf(g.g_.apply(1,arguments))))}; var NDx=new Map,qBT=new Map,AD8=new function(){var p=this;this.U=new Map;this.d3={RvO:function(){return p.U}}};g.I=g.Hz.prototype;g.I.ME=function(p){return p<=this.Q8()}; g.I.Py=function(p){return this.offsets[p]}; g.I.getStartTime=function(p){return this.startTicks[p]/this.U}; g.I.nR=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.I.AQ=pU(0);g.I.Ez=function(){return NaN}; g.I.getDuration=function(p){p=this.cz(p);return p>=0?p/this.U:-1}; g.I.cz=function(p){return p+1=0}; g.I.Pa=function(){return this.Z?this.startTicks[this.count]/this.U:NaN}; g.I.Lp=function(){return 0}; g.I.bk=function(){return this.count}; g.I.RD=function(){return""}; g.I.sN=function(p){p=g.Gy(this.startTicks.subarray(0,this.count),p*this.U);return p>=0?p:Math.max(0,-p-2)}; g.I.isLoaded=function(){return this.Q8()>=0}; g.I.dj=function(p,x){if(p>=this.Q8())return 0;var a=0;for(x=this.getStartTime(p)+x;pthis.getStartTime(p);p++)a=Math.max(a,aAQ(this,p)/this.getDuration(p));return a}; g.I.resize=function(p){p+=2;var x=this.offsets;this.offsets=new Float64Array(p+1);var a=this.startTicks;this.startTicks=new Float64Array(p+1);for(p=0;p0&&p&&(a=a.range.end+1,p=Math.min(p,this.info.contentLength-a),p>0&&v.push(new ez(4,this,qN(a,p),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,x)));return new aE(v)}; g.I.zJ=function(p){if(p.info.type===1){if(this.U)return;this.U=v$(p.Z)}else if(p.info.type===2){if(this.C||this.index.Q8()>=0)return;if(g.oI(this.info)){var x=this.index,a=g.IE(p);p=p.info.range.start;var v=g.K0(a,0,1936286840);a=Vaf(v);x.U=a.timescale;var c=a.zY;x.offsets[0]=a.GY+p+v.size;x.startTicks[0]=c;x.Z=!0;p=a.UJ.length;for(v=0;v0&&p===J[0].Ao)for(p=0;p=x+a)break}c.length||(p=new g.gr("b189619593",""+p,""+x,""+a),g.Uq(p));return new aE(c)}; g.I.jM=function(p){for(var x=this.r8(p.info),a=p.info.range.start+p.info.Z,v=[],c=0;c=this.index.Py(a+1);)a++;return this.P9(a,x,p.j).eA}; g.I.nA=function(p){p.Vf();return this.C3()?!0:p.range.end+1this.info.contentLength&&(x=new A$(x.start,this.info.contentLength-1)),new aE([new ez(4,p.U,x,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p.clipId)]);p.type===4&&(p=this.r8(p),p=p[p.length-1]);var a=0,v=p.range.start+p.Z+p.j;p.type===3&&(p.Vf(),a=p.i$,v===p.range.end+1&&(a+=1));return this.P9(a,v,x)}; g.I.Jy=function(){return null}; g.I.PF=function(p,x){x=x===void 0?!1:x;p=this.index.sN(p);x&&(p=Math.min(this.index.Q8(),p+1));return this.P9(p,this.index.Py(p),0,void 0)}; g.I.ue=function(){return!0}; g.I.tp=function(){return!0}; g.I.TO=function(){return!1}; g.I.xU=function(){return this.indexRange.length+this.initRange.length}; g.I.q2=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Vf={},IAg=(Vf.COLOR_PRIMARIES_BT709="bt709",Vf.COLOR_PRIMARIES_BT2020="bt2020",Vf.COLOR_PRIMARIES_UNKNOWN=null,Vf.COLOR_PRIMARIES_UNSPECIFIED=null,Vf),FV={},v_J=(FV.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",FV.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",FV.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",FV.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",FV.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,FV.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,FV);g.mM.prototype.getName=function(){return this.name}; g.mM.prototype.getId=function(){return this.id}; g.mM.prototype.getIsDefault=function(){return this.isDefault}; g.mM.prototype.toString=function(){return this.name}; g.mM.prototype.getName=g.mM.prototype.getName;g.mM.prototype.getId=g.mM.prototype.getId;g.mM.prototype.getIsDefault=g.mM.prototype.getIsDefault;var K0_=/action_display_post/;var df1,CA,X0;g.M(i4,g.Fx);g.I=i4.prototype;g.I.isLoading=function(){return this.state===1}; g.I.h3=function(){return this.state===3}; g.I.KUa=function(p){var x=p.getElementsByTagName("Representation");if(p.getElementsByTagName("SegmentList").length>0||p.getElementsByTagName("SegmentTemplate").length>0){this.Dp=this.Z=!0;this.timeline||(this.timeline=new ocI);EcN(this.timeline,p);this.publish("refresh");for(p=0;p=0?B=Pf(L):l=l+"?range="+L}b.call(d,new n1(r.i$,r.startSecs,r.uc,r.U,l,B,r.Z))}v=c}a.update(v,this.isLive,this.tG)}yDU(this.timeline);return!0}this.duration=ChJ(RE(p,"mediaPresentationDuration")); a:{for(p=0;p0))return this.HE()-p}}p=this.U;for(var x in p){var a=p[x].index;if(a.isLoaded()&&!yB(p[x].info.mimeType))return a.Lp()}return 0}; g.I.getStreamTimeOffset=function(){return this.V}; g.I.Ez=function(p){for(var x in this.U){var a=this.U[x].index;if(a.isLoaded()){var v=a.sN(p),c=a.Ez(v);if(c)return c+p-a.getStartTime(v)}}return NaN}; var qG=null,tVw,nA=!((tVw=navigator.mediaCapabilities)==null||!tVw.decodingInfo),Haf={commentary:1,alternate:2,dub:3,main:4};var DI=new Set,eB=new Map;F0.prototype.clone=function(p){return new F0(this.flavor,p,this.Z,this.experiments)}; F0.prototype.cX=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; F0.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 zhO={},KH=(zhO.playready=["com.youtube.playready","com.microsoft.playready"],zhO.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],zhO),p7={},omN=(p7.widevine="DRM_SYSTEM_WIDEVINE",p7.fairplay="DRM_SYSTEM_FAIRPLAY",p7.playready="DRM_SYSTEM_PLAYREADY",p7),xa={},wqZ=(xa.widevine=1,xa.fairplay=2,xa.playready=3,xa);var r5;g.M(d5,g.y); d5.prototype.initialize=function(p,x){for(var a=this,v=g.k(Object.keys(p)),c=v.next();!c.done;c=v.next()){c=g.k(p[c.value]);for(var J=c.next();!J.done;J=c.next())if(J=J.value,J.F1)for(var R=g.k(Object.keys(J.F1)),d=R.next();!d.done;d=R.next()){var b=d.value;d=b;b=KH[b];!b&&this.D("html5_enable_vp9_fairplay")&&d==="fairplay"&&(b=["com.youtube.fairplay.sbdl"]);if(b){b=g.k(b);for(var r=b.next();!r.done;r=b.next())r=r.value,this.j[r]=this.j[r]||new F0(d,r,J.F1[d],this.JG.experiments),this.U[d]=this.U[d]|| {},this.U[d][J.mimeType]=!0}}}gT()&&(this.j["com.youtube.fairplay"]=new F0("fairplay","com.youtube.fairplay","",this.JG.experiments),this.D("html5_enable_vp9_fairplay")||(this.U.fairplay=this.U.fairplay||{},this.U.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.U.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.Z=E_I(x,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay")&&!0,this.D("html5_enable_vp9_fairplay")).filter(function(B){return!!a.j[B]})}; d5.prototype.D=function(p){return this.JG.experiments.cO(p)};var EGv={"":"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"};NMI.prototype.D=function(p){return this.experiments.cO(p)};var wKb={RED:"red",VyA:"white"};AL8.prototype.cO=function(p){p=this.flags[p];JSON.stringify(p);return p==="true"};var n_b=Promise.resolve(),F0N=window.queueMicrotask?window.queueMicrotask.bind(window):e2f;YA.prototype.canPlayType=function(p,x){p=p.canPlayType?p.canPlayType(x):!1;gd?p=p||yIR[x]:Fn===2.2?p=p||gGR[x]:Ei()&&(p=p||Z$O[x]);return!!p}; YA.prototype.isTypeSupported=function(p){return this.T?window.cast.receiver.platform.canDisplayType(p):Yc(p)}; var gGR={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Z$O={"application/x-mpegURL":"maybe"},yIR={"application/x-mpegURL":"maybe"};g.M(Ia,g.Fx);Ia.prototype.add=function(p,x){if(!this.items[p]&&(x.Yp||x.kZ||x.Ca)){var a=this.items,v=x;Object.isFrozen&&!Object.isFrozen(x)&&(v=Object.create(x),Object.freeze(v));a[p]=v;this.publish("vast_info_card_add",p)}}; Ia.prototype.remove=function(p){var x=this.get(p);delete this.items[p];return x}; Ia.prototype.get=function(p){return this.items[p]||null}; Ia.prototype.isEmpty=function(){return g.lu(this.items)};MD.prototype.encrypt=function(p){this.U.exports.AES128CTRCipher_encrypt(this.cipher,p.byteOffset,p.byteLength);return p}; MD.prototype.b$=function(){return this.cipher===0}; MD.prototype.dispose=function(){this.U.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};kA.prototype.YH=function(p,x){x=x===void 0?1:x;this.mB+=x;this.Z+=p;p/=x;for(var a=0;a0)v+="."+W0[c].toFixed(0)+"_"+a.U[c].toFixed(0);else break;a=v}a&&(p[x]=a)}this.U=new aPT;return p}; g.I.toString=function(){return""};g.I=K5I.prototype;g.I.isActive=function(){return!1}; g.I.Pq=function(){}; g.I.R1=function(){}; g.I.w7=function(){}; g.I.m8=function(p,x){x()}; g.I.vz=function(){return{}}; g.I.toString=function(){return""};var G6t=new K5I,O$E=!!+O8("html5_enable_profiler"),NFj=!!+O8("html5_onesie_enable_profiler"),$a=O$E||NFj?new vbT:G6t,$Oo=O$E?$a:G6t,Ud=NFj?$a:G6t;L5x.prototype.emscripten_notify_memory_growth=function(){};g.I=DG.prototype;g.I.malloc=function(p){return this.exports.malloc(p)}; g.I.free=function(p){this.exports.free(p)}; g.I.realloc=function(p,x){return this.exports.realloc(p,x)}; g.I.rS=function(p){if(p.buffer!==this.exports.memory.buffer){var x=this.malloc(p.byteLength);x=new Uint8Array(this.exports.memory.buffer,x,p.byteLength);x.set(p);return x}}; g.I.ji=function(p){if(p.buffer===this.exports.memory.buffer){var x=p.slice();this.free(p.byteOffset);return x}}; var d5Q=new function(){this.j=this.B="WebAssembly"in window},H0="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); Ud.Pq(DG,{rS:function(p){return{profile:"copyj2w",mB:p===void 0?0:Math.ceil(p.byteLength/16)}}, ji:function(p){return{profile:"copyw2j",mB:p===void 0?0:Math.ceil(p.byteLength/16)}}});T8.prototype.encrypt=function(p,x){try{return this.U.ji(IP1(this,p,x))}catch(a){g.Hp(Error("ocwce: wasm encrypt failed: "+a))}}; T8.prototype.b$=function(){return this.j}; T8.prototype.dispose=function(){this.b$()||(g.aZ(this.Z),this.U.free(this.B.byteOffset),this.j=!0)};g.M(MHo,g.y);g.M(k$1,g.y);var mg;SF.prototype.add=function(p){if(this.pos+20>this.data.length){var x=new Uint8Array(this.data.length*2);x.set(this.data);this.data=x}for(;p>31;)this.data[this.pos++]=mg[(p&31)+32],p>>=5;this.data[this.pos++]=mg[p|0]}; SF.prototype.E6=function(){return g.dh(this.data.subarray(0,this.pos))}; SF.prototype.reset=function(){this.pos=0};CH.prototype.a5=function(p,x){var a=Math.pow(this.alpha,p);this.U=x*(1-a)+a*this.U;this.Z+=p}; CH.prototype.f3=function(){return this.U/(1-Math.pow(this.alpha,this.Z))};Xn.prototype.a5=function(p,x){for(var a=0;a<10;a++){var v=this.U[a],c=v+(a===0?p:0),J=1*Math.pow(2,a);if(c<=J)break;v=Math.min(1,(c-J*.5)/v);for(c=0;c<16;c++)J=this.values[a*16+c]*v,this.values[(a+1)*16+c]+=J,this.U[a+1]+=J,this.values[a*16+c]-=J,this.U[a]-=J}v=a=0;c=8192;x>8192&&(a=Math.ceil(Math.log(x/8192)/Math.log(2)),v=8192*Math.pow(2,a-1),c=v*2);a+2>16?this.values[15]+=p:(x=(x-v)/(c-v),this.values[a]+=p*(1-x),this.values[a+1]+=p*x);this.U[0]+=p}; Xn.prototype.f3=function(){var p=p===void 0?this.Z:p;var x=x===void 0?.02:x;var a=a===void 0?.98:a;for(var v=this.j,c=0;c<16;c++)v[c]=this.values[c];c=this.U[0];for(var J=1;J<11;J++){var R=this.U[J];if(R===0)break;for(var d=Math.min(1,(p-c)/R),b=0;b<16;b++)v[b]+=this.values[J*16+b]*d;c+=R*d;if(d<1)break}for(J=p=R=0;J<16;J++){d=R+v[J]/c;p+=Math.max(0,Math.min(d,a)-Math.max(R,x))*(J>0?8192*Math.pow(2,J-1):0);if(d>a)break;R=d}return p/(a-x)};iT.prototype.a5=function(p,x){p=Math.min(this.U,Math.max(1,Math.round(p*this.resolution)));p+this.Z>=this.U&&(this.j=!0);for(;p--;)this.values[this.Z]=x,this.Z=(this.Z+1)%this.U;this.Ev=!0}; iT.prototype.percentile=function(p){var x=this;if(!this.j&&this.Z===0)return 0;this.Ev&&(g.PQ(this.C,function(a,v){return x.values[a]-x.values[v]}),this.Ev=!1); return this.values[this.C[Math.round(p*((this.j?this.U:this.Z)-1))]]||0}; iT.prototype.f3=function(){return this.S?(this.percentile(this.B-this.S)+this.percentile(this.B)+this.percentile(this.B+this.S))/3:this.percentile(this.B)};g.M(oa,g.y);oa.prototype.gr=function(){var p;(p=this.V6)==null||p.start();if(G8(this)&&this.policy.Y){var x;(x=this.q6)==null||x.rp()}};m5b.prototype.D=function(p){return this.experiments.cO(p)};g.M(fPN,g.y);var zUg="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),OKU={pNI:"caoe",j5T:"capsv",MUT:"cbrand",Kea:"cbr",XNG:"cbrver",giI:"cchip",rRG:"ccappver",TMa:"ccrv",cZd:"cfrmver",q5t:"c",MXd:"cver",nC7:"ctheme",VXg:"cplayer",VB6:"cmodel",Ir:"cnetwork",fWr:"cos",OS_VERSION:"cosver",dF6:"cplatform",nb$:"crqyear"};g.M(Kk,g.y);g.I=Kk.prototype;g.I.D=function(p){return this.experiments.cO(p)}; g.I.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.I.getVideoUrl=function(p,x,a,v,c,J,R){x={list:x};a&&(c?x.time_continue=a:x.t=a);a=R?"music.youtube.com":g.bm(this);c=a==="www.youtube.com";!J&&v&&c?J="https://youtu.be/"+p:g.$O(this)?(J="https://"+a+"/fire",x.v=p):(J&&c?(J=this.protocol+"://"+a+"/shorts/"+p,v&&(x.feature="share")):(J=this.protocol+"://"+a+"/watch",x.v=p),gd&&(p=yYJ())&&(x.ebc=p));return g.jL(J,x)}; g.I.getVideoEmbedCode=function(p,x,a,v){x="https://"+g.bm(this)+"/embed/"+x;v&&(x=g.jL(x,{list:v}));v=a.width;a=a.height;x=C9(x);p=C9(p!=null?p:"YouTube video player");return'')}; g.I.supportsGaplessAudio=function(){return g.Li&&!gd&&ts()>=74||g.Jc&&g.gu(68)?!0:!1}; g.I.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.tG||g.BR?!1:!0}; g.I.getPlayerType=function(){return this.U.cplayer}; g.I.qZ=function(){return this.tU}; var qR_=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],G$b=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],AK_=[19];var al={},VHf=(al["140"]={numChannels:2},al["141"]={numChannels:2},al["251"]={audioSampleRate:48E3,numChannels:2},al["774"]={audioSampleRate:48E3,numChannels:2},al["380"]={numChannels:6},al["328"]={numChannels:6},al["773"]={},al),s2={},eUI=(s2["1"]='video/mp4; codecs="av01.0.08M.08"',s2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',s2["1e"]='video/mp4; codecs="av01.0.08M.08"',s2["9"]='video/webm; codecs="vp9"',s2["("]='video/webm; codecs="vp9"',s2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', s2.h='video/mp4; codecs="avc1.64001e"',s2.H='video/mp4; codecs="avc1.64001e"',s2.o='audio/webm; codecs="opus"',s2.a='audio/mp4; codecs="mp4a.40.2"',s2.ah='audio/mp4; codecs="mp4a.40.2"',s2.mac3='audio/mp4; codecs="ac-3"; channels=6',s2.meac3='audio/mp4; codecs="ec-3"; channels=6',s2.i='audio/mp4; codecs="iamf.001.001.Opus"',s2),vi={},ue8=(vi["337"]={width:3840,height:2160,bitrate:3E7,fps:30},vi["336"]={width:2560,height:1440,bitrate:15E6,fps:30},vi["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, vi["702"]={width:7680,height:4320,bitrate:4E7,fps:60},vi["701"]={width:3840,height:2160,bitrate:2E7,fps:60},vi["700"]={width:2560,height:1440,bitrate:1E7,fps:60},vi["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},vi["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},vi["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},vi["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, vi["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},vi["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},vi["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},vi["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},vi["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},vi["315"]={width:3840,height:2160,bitrate:2E7,fps:60},vi["308"]={width:2560, height:1440,bitrate:1E7,fps:60},vi["303"]={width:1920,height:1080,bitrate:5E6,fps:60},vi["302"]={width:1280,height:720,bitrate:25E5,fps:60},vi["299"]={width:1920,height:1080,bitrate:75E5,fps:60},vi["298"]={width:1280,height:720,bitrate:35E5,fps:60},vi["571"]={width:7680,height:4320,bitrate:3E7,fps:60},vi["401"]={width:3840,height:2160,bitrate:15E6,fps:60},vi["400"]={width:2560,height:1440,bitrate:75E5,fps:60},vi["399"]={width:1920,height:1080,bitrate:2E6,fps:60},vi["398"]={width:1280,height:720,bitrate:1E6, fps:60},vi["397"]={width:854,height:480,bitrate:4E5,fps:30},vi["396"]={width:640,height:360,bitrate:25E4,fps:30},vi["787"]={width:1080,height:608,bitrate:2E5,fps:30},vi["788"]={width:1080,height:608,bitrate:4E5,fps:30},vi["572"]={width:7680,height:4320,bitrate:3E7,fps:60},vi["555"]={width:3840,height:2160,bitrate:15E6,fps:60},vi["554"]={width:2560,height:1440,bitrate:75E5,fps:60},vi["553"]={width:1920,height:1080,bitrate:2E6,fps:60},vi["552"]={width:1280,height:720,bitrate:1E6,fps:60},vi["551"]={width:854, height:480,bitrate:4E5,fps:30},vi["550"]={width:640,height:360,bitrate:25E4,fps:30},vi["313"]={width:3840,height:2160,bitrate:8E6,fps:30},vi["271"]={width:2560,height:1440,bitrate:4E6,fps:30},vi["248"]={width:1920,height:1080,bitrate:2E6,fps:30},vi["247"]={width:1280,height:720,bitrate:15E5,fps:30},vi["244"]={width:854,height:480,bitrate:52E4,fps:30},vi["243"]={width:640,height:360,bitrate:28E4,fps:30},vi["137"]={width:1920,height:1080,bitrate:4E6,fps:30},vi["136"]={width:1280,height:720,bitrate:3E6, fps:30},vi["135"]={width:854,height:480,bitrate:1E6,fps:30},vi["385"]={width:1920,height:1080,bitrate:6503313,fps:60},vi["376"]={width:1280,height:720,bitrate:5706960,fps:60},vi["384"]={width:1280,height:720,bitrate:3660979,fps:60},vi["225"]={width:1280,height:720,bitrate:5805E3,fps:30},vi["224"]={width:1280,height:720,bitrate:453E4,fps:30},vi["145"]={width:1280,height:720,bitrate:2682052,fps:30},vi);g.I=mV.prototype;g.I.getInfo=function(){return this.U}; g.I.IK=function(){return null}; g.I.Tf=function(){var p=this.IK();return p?(p=g.Fj(p.JX),Number(p.expire)):NaN}; g.I.FI=function(){}; g.I.getHeight=function(){return this.U.video.height};$2T.prototype.build=function(){vvT(this);var p=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],x={};a:if(this.U)var a=this.U;else{a="";for(var v=g.k(this.j),c=v.next();!c.done;c=v.next())if(c=c.value,c.AX){if(c.AX.getIsDefault()){a=c.AX.getId();break a}a||(a=c.AX.getId())}}v=g.k(this.j);for(c=v.next();!c.done;c=v.next())if(c=c.value,this.S||!c.AX||c.AX.getId()===a)x[c.itag]||(x[c.itag]=[]),x[c.itag].push(c);a=g.k(this.Z);for(v=a.next();!v.done;v=a.next())if(v=v.value,c=x[v.U]){c=g.k(c);for(var J=c.next();!J.done;J= c.next()){var R=p,d=R.push;J=J.value;var b="#EXT-X-MEDIA:TYPE=AUDIO,",r="YES",B="audio";if(J.AX){B=J.AX;var l=B.getId().split(".")[0];l&&(b+='LANGUAGE="'+l+'",');(this.U?this.U===B.getId():B.getIsDefault())||(r="NO");B=B.getName()}l="";v!==null&&(l=v.itag.toString());l=fk(this,J.url,l);b=b+('NAME="'+B+'",DEFAULT='+(r+',AUTOSELECT=YES,GROUP-ID="'))+(sGT(J,v)+'",URI="'+(l+'"'));d.call(R,b)}}a=g.k(this.C);for(v=a.next();!v.done;v=a.next())v=v.value,c=AIw,v=(R=v.AX)?'#EXT-X-MEDIA:URI="'+fk(this,v.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+c+'",LANGUAGE="'+R.getId()+'",NAME="'+R.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,v&&p.push(v);a=this.C.length>0?AIw:void 0;v=g.k(this.Z);for(c=v.next();!c.done;c=v.next())c=c.value,d=x[c.U],R=void 0,((R=d)==null?void 0:R.length)>0&&(R=c,d=d[0],d="#EXT-X-STREAM-INF:BANDWIDTH="+(R.bitrate+d.bitrate)+',CODECS="'+(R.codecs+","+d.codecs+'",RESOLUTION=')+(R.width+"x"+R.height+',AUDIO="')+(sGT(d,R)+'",')+(a?'SUBTITLES="'+a+'",':"")+"CLOSED-CAPTIONS=NONE",R.fps>1&&(d+= ",FRAME-RATE="+R.fps),R.Mx&&(d+=",VIDEO-RANGE="+R.Mx),p.push(d),p.push(fk(this,c.url,"")));return p.join("\n")}; var AIw="text";g.M(Ck,mV);Ck.prototype.Tf=function(){return this.expiration}; Ck.prototype.IK=function(){if(!this.JX||this.JX.b$()){var p=this.Z.build();p="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(p);this.JX=new aL(p)}return this.JX};g.M(XG,mV);XG.prototype.IK=function(){return new aL(this.Z.Wh())}; XG.prototype.FI=function(){this.Z=PX(this.Z)};g.M(im,mV);im.prototype.IK=function(){return new aL(this.Z)};var ci={},LE_=(ci.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",ci.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",ci.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",ci.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",ci);g.I=g.of.prototype;g.I.getId=function(){return this.id}; g.I.getName=function(){return this.name}; g.I.isServable=function(){return this.U}; g.I.Wh=function(){return this.url}; g.I.getXtags=function(){return this.xtags}; g.I.toString=function(){return this.languageCode+": "+g.tC(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.I.equals=function(p){return p?this.toString()===p.toString():!1}; g.I.mU=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var WEz={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},kZb={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},D2o=/^(\d*)_((\d*)_?(\d*))$/;var Hn_={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Tnz={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var JH={},PNj=(JH.ALWAYS=1,JH.BY_REQUEST=3,JH.UNKNOWN=void 0,JH),Rl={},qOE=(Rl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Rl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Rl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Rl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Rl);var wAz; wAz=function(p){for(var x=Object.keys(p),a={},v=0;vv-x?-1:p}; g.I.Mj=function(){return this.Z.Q8()}; g.I.Z4=function(){return this.Z.hn()}; g.I.wR=function(p){this.Z=p};g.M(KT,JM);KT.prototype.Z=function(p,x){return JM.prototype.Z.call(this,"$N|"+p,x)}; KT.prototype.C=function(p,x,a){return new Rh(p,x,a,this.isLive)};g.M(g.bq,g.Fx);g.I=g.bq.prototype; g.I.setData=function(p){p=p||{};var x=p.errordetail;x!=null&&(this.errorDetail=x);var a=p.errorcode;a!=null?this.errorCode=a:p.status==="fail"&&(this.errorCode="auth");var v=p.reason;v!=null&&(this.errorReason=v);var c=p.subreason;c!=null&&(this.Jn=c);this.clientPlaybackNonce||(this.clientPlaybackNonce=p.cpn||(this.JG.qZ()?"r"+g.B1(15):g.B1(16)));this.T4=Vl(this.JG.T4,p.livemonitor);a3Q(this,p);var J=p.raw_player_response;if(J)this.GD=J;else{var R=p.player_response;R&&(J=JSON.parse(R))}J&&(this.playerResponse= J);if(this.playerResponse){var d=this.playerResponse.annotations;if(d)for(var b=g.k(d),r=b.next();!r.done;r=b.next()){var B=r.value.playerAnnotationsUrlsRenderer;if(B){B.adsOnly&&(this.Lq=!0);var l=B.loadPolicy;l&&(this.annotationsLoadPolicy=PNj[l]);var L=B.invideoUrl;L&&(this.V6=Eo(L));break}}var Y=this.playerResponse.attestation;Y&&m2z(this,Y);var h=this.playerResponse.cotn;h&&(this.cotn=h);var D=this.playerResponse.heartbeatParams;if(D){this.nF=!0;var H=D.heartbeatToken;H&&(this.drmSessionId=D.drmSessionId|| "",this.heartbeatToken=H,this.Iz=Number(D.intervalMilliseconds),this.NH=Number(D.maxRetries),this.kP=!!D.softFailOnError,this.qa=!!D.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=D.heartbeatServerData;var f;this.fT=!((f=D.heartbeatAttestationConfig)==null||!f.requiresAttestation)}var m=this.playerResponse.messages;m&&XPT(this,m);var X=this.playerResponse.overlay;if(X){var E=X.playerControlsOverlayRenderer;if(E)if(ovU(this,E.controlBgHtml),E.mutedAutoplay){var A=g.O(E.mutedAutoplay,vkV);if(A&& A.endScreen){var u=g.O(A.endScreen,cbQ);u&&u.text&&(this.aQ=g.Jv(u.text))}}else this.mutedAutoplay=!1}var n=this.playerResponse.playabilityStatus;if(n){var co=n.backgroundability;co&&co.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var LU,R8;if((LU=n.offlineability)==null?0:(R8=LU.offlineabilityRenderer)==null?0:R8.offlineable)this.offlineable=!0;var KU=n.contextParams;KU&&(this.contextParams=KU);var x1=n.pictureInPicture;x1&&x1.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);n.playableInEmbed&&(this.allowEmbed=!0);var mx=n.ypcClickwrap;if(mx){var eI=mx.playerLegacyDesktopYpcClickwrapRenderer,xt=mx.ypcRentalActivationRenderer;if(eI)this.ZW=eI.durationMessage||"",this.zC=!0;else if(xt){var jj=xt.durationMessage;this.ZW=jj?g.Jv(jj):"";this.zC=!0}}var KG=n.errorScreen;if(KG){if(KG.playerLegacyDesktopYpcTrailerRenderer){var CU=KG.playerLegacyDesktopYpcTrailerRenderer;this.Ya=CU.trailerVideoId||"";var cD=KG.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var wR=cD&&cD.ypcTrailerRenderer}else if(KG.playerLegacyDesktopYpcOfferRenderer)CU= KG.playerLegacyDesktopYpcOfferRenderer;else if(KG.ypcTrailerRenderer){wR=KG.ypcTrailerRenderer;var NE=wR.fullVideoMessage;this.fD=NE?g.Jv(NE):"";var Jp,S;this.Ya=((Jp=g.O(wR,JbZ))==null?void 0:(S=Jp.videoDetails)==null?void 0:S.videoId)||""}CU&&(this.rb=CU.itemTitle||"",CU.itemUrl&&(this.sD=CU.itemUrl),CU.itemBuyUrl&&(this.lj=CU.itemBuyUrl),this.Z7=CU.itemThumbnail||"",this.BA=CU.offerHeadline||"",this.ye=CU.offerDescription||"",this.pY=CU.offerId||"",this.OD=CU.offerButtonText||"",this.qD=CU.offerButtonFormattedText|| null,this.Ii=CU.overlayDurationMsec||NaN,this.fD=CU.fullVideoMessage||"",this.ma=!0);if(wR){var ZM=g.O(wR,JbZ);if(ZM)this.jB={raw_player_response:ZM};else{var iZ=g.O(wR,hlO);this.jB=iZ?uU(iZ):null}this.ma=!0}}}var a8=this.playerResponse.playbackTracking;if(a8){var Ty=p,U=gX(a8.googleRemarketingUrl);U&&(this.googleRemarketingUrl=U);var $1=gX(a8.youtubeRemarketingUrl);$1&&(this.youtubeRemarketingUrl=$1);var iu={},K9=gX(a8.ptrackingUrl);if(K9){var ZX=Zw(K9),qz=ZX.oid;qz&&(this.N4=qz);var av=ZX.pltype; av&&(this.To=av);var $Y=ZX.ptchn;$Y&&(this.LO=$Y);var Gi=ZX.ptk;Gi&&(this.C$=encodeURIComponent(Gi));var T=ZX.m;T&&(this.Po=T)}var W=gX(a8.qoeUrl);if(W){for(var Q=g.Fj(W),z=g.k(Object.keys(Q)),G=z.next();!G.done;G=z.next()){var r_=G.value,P=Q[r_];Q[r_]=Array.isArray(P)?P.join(","):P}this.kK=Q;var F=Q.cat;F&&(this.D("html5_enable_qoe_cat_list")?this.ER=this.ER.concat(F.split(",")):this.qX=F);var w=Q.live;w&&(this.gq=w);var tT=Q.drm_product;tT&&(this.drmProduct=tT)}var OQ=gX(a8.videostatsPlaybackUrl); if(OQ){var JT=Zw(OQ),rR=JT.adformat;if(rR){Ty.adformat=rR;var Xg=this.L(),Ho=U2z(rR,this.M9,Xg.B,Xg.Y);Ho&&(this.adFormat=Ho)}var at=JT.aqi;at&&(Ty.ad_query_id=at);var HQ=JT.autoplay;HQ&&(this.o9=HQ=="1",this.Cq=HQ=="1");var EV=JT.autonav;EV&&(this.isAutonav=EV=="1");var Qb=JT.delay;Qb&&(this.US=o0(Qb));var HY=JT.ei;HY&&(this.eventId=HY);var fU=Q_(JT.adcontext);if(fU)try{var ov=c4j(fU);ov&&(this.jO=ov)}catch(pCy){g.Hp(Error("Malformed adContext"))}if(fU||rR)this.o9=!0;var QX=JT.feature;QX&&(this.d_= QX);var RJ=JT.list;RJ&&(this.playlistId=RJ);var m$=JT.of;m$&&(this.JV=m$);var Fu=JT.osid;Fu&&(this.osid=Fu);var sz=JT.referrer;sz&&(this.referrer=sz);var AO=JT.sdetail;AO&&(this.ZL=AO);var tO=JT.ssrt;tO&&(this.s$=tO=="1");var Sc=JT.subscribed;Sc&&(this.subscribed=Sc=="1");var VR=JT.uga;VR&&(this.userGenderAge=VR);var jr=JT.upt;jr&&(this.Ry=jr);var w4=JT.vm;w4&&(this.videoMetadata=w4);iu.playback=JT}var pM=gX(a8.videostatsWatchtimeUrl);if(pM){var x2=Zw(pM),K$=x2.ald;K$&&(this.mw=K$);iu.watchtime=x2}var TL= gX(a8.atrUrl);if(TL){var tV=Zw(TL);iu.atr=tV}var Ft=gX(a8.engageUrl);if(Ft){var zA=Zw(Ft);iu.engage=zA}this.ys=iu;if(a8.promotedPlaybackTracking){var sa=a8.promotedPlaybackTracking;sa.startUrls&&(this.Df=sa.startUrls);sa.firstQuartileUrls&&(this.F_=sa.firstQuartileUrls);sa.secondQuartileUrls&&(this.uZ=sa.secondQuartileUrls);sa.thirdQuartileUrls&&(this.Wi=sa.thirdQuartileUrls);sa.completeUrls&&(this.EQ=sa.completeUrls);sa.engagedViewUrls&&(sa.engagedViewUrls.length>1&&g.Hp(new g.gr("There are more than one engaged_view_urls.")), this.xs=sa.engagedViewUrls[0])}}var Ip=this.playerResponse.playerCueRanges;Ip&&Ip.length>0&&(this.cueRanges=Ip);var EC=this.playerResponse.playerCueRangeSet;EC&&g.LT(this,EC);a:{var MC=this.playerResponse.adPlacements;if(MC)for(var $2=g.k(MC),WM=$2.next();!WM.done;WM=$2.next()){var aV=void 0,sp=void 0,vJ=(aV=WM.value.adPlacementRenderer)==null?void 0:(sp=aV.renderer)==null?void 0:sp.videoAdTrackingRenderer;if(vJ){var cJ=vJ;break a}}cJ=null}var kD=cJ;a8&&a8.promotedPlaybackTracking&&kD&&g.Hp(new g.gr("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var dF;if(!(dF=kD))a:{for(var JV=g.k(this.playerResponse.adSlots||[]),Y6=JV.next();!Y6.done;Y6=JV.next()){var hg=g.O(Y6.value,FZ);if(hg===void 0||!ibI(hg))break;var i_=void 0,Ep=(i_=hg.fulfillmentContent)==null?void 0:i_.fulfilledLayout,yP=g.O(Ep,OP);if(yP&&y8(yP)){dF=!0;break a}}dF=!1}dF&&(this.iX=!0);var gp=this.playerResponse.playerAds;if(gp)for(var cm=p,oi=g.k(gp),Mc=oi.next();!Mc.done;Mc=oi.next()){var tF=Mc.value;if(tF){var JY=tF.playerLegacyDesktopWatchAdsRenderer;if(JY){var ZT=JY.playerAdParams; if(ZT){ZT.autoplay=="1"&&(this.Cq=this.o9=!0);this.gz=ZT.encodedAdSafetyReason||null;ZT.showContentThumbnail!==void 0&&(this.Tg=!!ZT.showContentThumbnail);cm.enabled_engage_types=ZT.enabledEngageTypes;break}}}}var QU=this.playerResponse.playerConfig;if(QU){var Di=QU.manifestlessWindowedLiveConfig;if(Di){var Z8=Number(Di.minDvrSequence),R6=Number(Di.maxDvrSequence),jU=Number(Di.minDvrMediaTimeMs),Kp=Number(Di.maxDvrMediaTimeMs),zB=Number(Di.startWalltimeMs);Z8&&(this.Bm=Z8);jU&&(this.u$=jU/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&& TV(this)&&(this.wb=jU/1E3));R6&&(this.FR=R6);Kp&&(this.OS=Kp/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&TV(this)&&(this.f0=Kp/1E3));zB&&(this.KW=zB/1E3);(Z8||jU)&&(R6||Kp)&&(this.allowLiveDvr=this.isLivePlayback=this.O7=!0,this.S3=!1)}var IZ=QU.daiConfig;if(IZ){if(IZ.enableDai){this.wI=!0;var vA=IZ.enableServerStitchedDai;vA&&(this.enableServerStitchedDai=vA);var Zc=IZ.enablePreroll;Zc&&(this.wS=Zc)}var RN;if(IZ.daiType==="DAI_TYPE_SS_DISABLED"||((RN=IZ.debugInfo)==null?0:RN.isDisabledUnpluggedChannel))this.mM= !0;IZ.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.aR=!0);IZ.allowUstreamerRequestAdconfig&&(this.j8=!0)}var bJ=QU.audioConfig;if(bJ){var G0=bJ.loudnessDb;G0!=null&&(this.tU=G0);var R6f=bJ.trackAbsoluteLoudnessLkfs;R6f!=null&&(this.kY=R6f);var Kz8=bJ.loudnessTargetLkfs;Kz8!=null&&(this.loudnessTargetLkfs=Kz8);bJ.audioMuted&&(this.cU=!0);bJ.muteOnStart&&(this.yX=!0);var Ln=bJ.loudnessNormalizationConfig;if(Ln){Ln.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Ln.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var daU=Ln.minimumLoudnessTargetLkfs;daU!=null&&(this.minimumLoudnessTargetLkfs=daU);var bII=Ln.maxStatefulTimeThresholdSec;bII!=null&&(this.maxStatefulTimeThresholdSec=bII)}bJ.playAudioOnly&&(this.Y_=!0)}var Uv1=QU.playbackEndConfig;if(Uv1){var rUf=Uv1.endSeconds,B11=Uv1.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(rUf&&(this.endSeconds=rUf),B11&&(this.limitedPlaybackDurationInSeconds=B11))}var j7=QU.fairPlayConfig;if(j7){var l68=j7.certificate;l68&& (this.tG=Q_(l68));var Lzz=Number(j7.keyRotationPeriodMs);Lzz>0&&(this.Bo=Lzz);var YNo=Number(j7.keyPrefetchMarginMs);YNo>0&&(this.Ow=YNo)}var mN=QU.playbackStartConfig;if(mN){this.le=Number(mN.startSeconds);var h6f=mN.liveUtcStartSeconds,jWx=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;h6f&&!jWx&&(this.liveUtcStartSeconds=Number(h6f));var H$g=mN.startPosition;if(H$g){var I6o=H$g.utcTimeMillis;I6o&&!jWx&&(this.liveUtcStartSeconds=Number(I6o)*.001);var MZJ=H$g.streamTimeMillis;MZJ&&(this.aA= Number(MZJ)*.001)}this.progressBarStartPosition=mN.progressBarStartPosition;this.progressBarEndPosition=mN.progressBarEndPosition}else{var TF_=QU.skippableSegmentsConfig;if(TF_){var Wz1=TF_.introSkipDurationMs;Wz1&&(this.fJ=Number(Wz1)/1E3);var kmb=TF_.outroSkipDurationMs;kmb&&(this.NK=Number(kmb)/1E3)}}var QTg=QU.skippableIntroConfig;if(QTg){var Da_=Number(QTg.startMs),Uag=Number(QTg.endMs);isNaN(Da_)||isNaN(Uag)||(this.zt=Da_,this.MN=Uag)}var HIx=QU.streamSelectionConfig;HIx&&(this.ol=Number(HIx.maxBitrate)); var T1o=QU.vrConfig;T1o&&(this.yr=T1o.partialSpherical=="1");var Yv=QU.webDrmConfig;if(Yv){Yv.skipWidevine&&(this.rR=!0);var QWN=Yv.widevineServiceCert;QWN&&(this.kC=Q_(QWN));Yv.useCobaltWidevine&&(this.useCobaltWidevine=!0);Yv.startWithNoQualityConstraint&&(this.dh=!0)}var On=QU.mediaCommonConfig;if(On){var Im=On.dynamicReadaheadConfig;if(Im){this.maxReadAheadMediaTimeMs=Im.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Im.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Im.readAheadGrowthRateMs|| NaN;var maI,SNf=On==null?void 0:(maI=On.mediaUstreamerRequestConfig)==null?void 0:maI.videoPlaybackUstreamerConfig;SNf&&(this.qr=Q_(SNf));var mvb=On==null?void 0:On.sabrContextUpdates;if(mvb&&mvb.length>0)for(var f6g=g.k(mvb),SO1=f6g.next();!SO1.done;SO1=f6g.next()){var Fv=SO1.value;if(Fv.type&&Fv.value){var M$Q={type:Fv.type,scope:Fv.scope,value:Q_(Fv.value)||void 0,sendByDefault:Fv.sendByDefault};this.sabrContextUpdates.set(Fv.type,M$Q)}}}var CaI=On.serverPlaybackStartConfig;CaI&&(this.serverPlaybackStartConfig= CaI);On.useServerDrivenAbr&&(this.RM=!0);var XyI=On.requestPipeliningConfig;XyI&&(this.requestPipeliningConfig=XyI)}var iIU=QU.inlinePlaybackConfig;iIU&&(this.yN=!!iIU.showAudioControls);var My=QU.embeddedPlayerConfig;if(My){this.embeddedPlayerConfig=My;var fSJ=My.embeddedPlayerMode;if(fSJ){var oKz=this.L();oKz.u$=fSJ;oKz.j=fSJ==="EMBEDDED_PLAYER_MODE_PFL"}var tZN=My.permissions;tZN&&(this.allowImaMonetization=!!tZN.allowImaMonetization)}var WW=QU.webPlayerConfig;WW&&(WW.gatewayExperimentGroup&&(this.gatewayExperimentGroup= WW.gatewayExperimentGroup),WW.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var NF=this.playerResponse.streamingData;if(NF){var CNf=NF.formats;if(CNf){for(var hR=[],z6Q=g.k(CNf),Xq1=z6Q.next();!Xq1.done;Xq1=z6Q.next()){var i$x=Xq1.value;hR.push(i$x.itag+"/"+i$x.width+"x"+i$x.height)}this.xj=hR.join(",");hR=[];for(var wyg=g.k(CNf),oGQ=wyg.next();!oGQ.done;oGQ=wyg.next()){var jt=oGQ.value,IG={itag:jt.itag,type:jt.mimeType,quality:jt.quality},EK8=jt.url;EK8&&(IG.url=EK8);var km=qt(jt),W4j=km.ZA, kSX=km.GT,DkQ=km.s;km.Gz&&(IG.url=W4j,IG.sp=kSX,IG.s=DkQ);hR.push(g.h1(IG))}this.Xq=hR.join(",")}var tVN=NF.hlsFormats;if(tVN){var yU1=QU||null,D7={};if(yU1){var zhT=yU1.audioPairingConfig;if(zhT&&zhT.pairs)for(var gKU=g.k(zhT.pairs),wqf=gKU.next();!wqf.done;wqf=gKU.next()){var ZIo=wqf.value,EG8=ZIo.videoItag;D7[EG8]||(D7[EG8]=[]);D7[EG8].push(ZIo.audioItag)}}for(var Gmb={},OIb=g.k(tVN),yI_=OIb.next();!yI_.done;yI_=OIb.next()){var N11=yI_.value;Gmb[N11.itag]=N11.bitrate}for(var AU1=[],Paf=g.k(tVN), gG_=Paf.next();!gG_.done;gG_=Paf.next()){var PJ=gG_.value,Uy={itag:PJ.itag,type:PJ.mimeType,url:PJ.url,bitrate:PJ.bitrate,width:PJ.width,height:PJ.height,fps:PJ.fps},Ur=PJ.audioTrack;if(Ur){var qNo=Ur.displayName;qNo&&(Uy.name=qNo,Uy.audio_track_id=Ur.id,Ur.audioIsDefault&&(Uy.is_default="1"))}if(PJ.drmFamilies){for(var nKz=[],e6z=g.k(PJ.drmFamilies),Z$T=e6z.next();!Z$T.done;Z$T=e6z.next())nKz.push(tk[Z$T.value]);Uy.drm_families=nKz.join(",")}var HW=D7[PJ.itag];if(HW&&HW.length){Uy.audio_itag=HW.join(","); var uaI=Gmb[HW[0]];uaI&&(Uy.bitrate+=uaI)}var VZT=cLz(PJ);VZT&&(Uy.eotf=VZT);PJ.audioChannels&&(Uy.audio_channels=PJ.audioChannels);AU1.push(g.h1(Uy))}this.hlsFormats=AU1.join(",")}var G61=NF.licenseInfos;if(G61&&G61.length>0){for(var Fz_={},p4T=g.k(G61),O$z=p4T.next();!O$z.done;O$z=p4T.next()){var xox=O$z.value,$oU=xox.drmFamily,aVN=xox.url;$oU&&aVN&&(Fz_[tk[$oU]]=aVN)}this.F1=Fz_}var s5I=NF.drmParams;s5I&&(this.drmParams=s5I);var vjQ=NF.dashManifestUrl;vjQ&&(this.vX=g.jL(vjQ,{cpn:this.clientPlaybackNonce})); var cP1=NF.hlsManifestUrl;cP1&&(this.hlsvp=cP1);var JPN=NF.probeUrl;JPN&&(this.probeUrl=Eo(g.jL(JPN,{cpn:this.clientPlaybackNonce})));var ROJ=NF.serverAbrStreamingUrl;ROJ&&(this.GG=new g.ZW(ROJ,!0))}var KIJ=this.playerResponse.trackingParams;KIJ&&(this.hG=KIJ);var kY=this.playerResponse.videoDetails;if(kY){var Hm=p,NFI=kY.videoId;NFI&&(this.videoId=NFI,Hm.video_id||(Hm.video_id=NFI));var AIN=kY.title;AIN&&(this.title=AIN,Hm.title||(Hm.title=AIN));var PNI=kY.lengthSeconds;PNI&&(this.lengthSeconds= Number(PNI),Hm.length_seconds||(Hm.length_seconds=PNI));var do1=kY.keywords;do1&&(this.keywords=Jmf(do1));var qOz=kY.channelId;qOz&&(this.aT=qOz,Hm.ucid||(Hm.ucid=qOz));var bsU=kY.viewCount;bsU&&(this.rawViewCount=Number(bsU));var nGx=kY.author;nGx&&(this.author=nGx,Hm.author||(Hm.author=nGx));var rPg=kY.shortDescription;rPg&&(this.shortDescription=rPg);var BvU=kY.isCrawlable;BvU&&(this.isListed=BvU);var lVQ=kY.musicVideoType;lVQ&&(this.musicVideoType=lVQ);var ehz=kY.isLive;ehz!=null&&(this.isLivePlayback= ehz);if(ehz||kY.isUpcoming)this.isPremiere=!kY.isLiveContent;var LI8=kY.thumbnail;LI8&&(this.Y=yp(LI8));var Yx_=kY.isExternallyHostedPodcast;Yx_&&(this.isExternallyHostedPodcast=Yx_);var ut1=kY.viewerLivestreamJoinPosition;if(ut1==null?0:ut1.utcTimeMillis)this.Ko=o0(ut1.utcTimeMillis);var hOU=QU||null,VVg=p;kY.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);kY.isUpcoming&&(this.isUpcoming=!0);if(kY.isPostLiveDvr){this.S3=!0;var j5z=kY.latencyClass;j5z&&(this.latencyClass=qOE[j5z]||"UNKNOWN"); kY.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var F2o=!1;this.T4?(this.allowLiveDvr=hc()?!0:As&&FF<5?!1:!0,this.isLivePlayback=!0):kY.isLive?(VVg.livestream="1",this.allowLiveDvr=kY.isLiveDvrEnabled?hc()?!0:As&&FF<5?!1:!0:!1,this.partnerId=27,F2o=!0):kY.isUpcoming&&(F2o=!0);if(kY.isLive||this.T4){kY.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var IVQ=kY.latencyClass;IVQ&&(this.latencyClass=qOE[IVQ]||"UNKNOWN");var Mfz=kY.liveChunkReadahead;Mfz&&(this.liveChunkReadahead= Mfz);var SQ=hOU&&hOU.livePlayerConfig;if(SQ){SQ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);SQ.hasSubfragmentedWebm&&(this.CU=!0);SQ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var WIN=SQ.liveExperimentalContentId;WIN&&(this.liveExperimentalContentId=Number(WIN));var kP_=SQ.isLiveHeadPlayable;this.D("html5_live_head_playable")&&kP_!=null&&(this.isLiveHeadPlayable=kP_)}}F2o&&(this.isLivePlayback=!0,VVg.adformat&&VVg.adformat.split("_")[1]!=="8"||this.T.push("heartbeat"))}var Do1= kY.isPrivate;Do1!==void 0&&(this.isPrivate=Vl(this.isPrivate,Do1))}if(n){var Uoz=kY||null,Hsg=!1,fu=n.errorScreen;Hsg=fu&&(fu.playerLegacyDesktopYpcOfferRenderer||fu.playerLegacyDesktopYpcTrailerRenderer||fu.ypcTrailerRenderer)?!0:Uoz&&Uoz.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(n.status);if(!Hsg){this.errorCode=YPN(n.errorCode)||"auth";var Tu=fu&&fu.playerErrorMessageRenderer;if(Tu){this.playerErrorMessageRenderer=Tu;var Tvf=Tu.reason;Tvf&&(this.errorReason=g.Jv(Tvf)); var p3N=Tu.subreason;p3N&&(this.Jn=g.Jv(p3N),this.Jf=p3N)}else this.errorReason=n.reason||null;var xxb=n.status;if(xxb==="LOGIN_REQUIRED")this.errorDetail="1";else if(xxb==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(xxb==="AGE_CHECK_REQUIRED"){var Q5_=n.errorScreen,mo8=Q5_&&Q5_.playerKavRenderer;this.errorDetail=mo8&&mo8.kavUrl?"4":"3"}else this.errorDetail=n.isBlockedInRestrictedMode?"5":"0"}}var Sxz=this.playerResponse.interstitialPods;Sxz&&CbU(this,Sxz);this.V6&&this.eventId&&(this.V6= xE(this.V6,{ei:this.eventId}));var $xg=this.playerResponse.captions;if($xg&&$xg.playerCaptionsTracklistRenderer)a:{var TD=$xg.playerCaptionsTracklistRenderer;this.captionTracks=[];if(TD.captionTracks)for(var fVN=g.k(TD.captionTracks),aYf=fVN.next();!aYf.done;aYf=fVN.next()){var QD=aYf.value,Czo=vCx(QD.baseUrl);if(!Czo)break a;var spI={is_translateable:!!QD.isTranslatable,languageCode:QD.languageCode,languageName:QD.name&&g.Jv(QD.name),url:Czo,vss_id:QD.vssId,kind:QD.kind};spI.name=QD.trackName;spI.displayName= QD.name&&g.Jv(QD.name);this.captionTracks.push(new g.of(spI))}this.fC=TD.audioTracks||[];this.z0=TD.defaultAudioTrackIndex||0;this.ea=[];if(TD.translationLanguages)for(var X4o=g.k(TD.translationLanguages),vgQ=X4o.next();!vgQ.done;vgQ=X4o.next()){var Cu=vgQ.value,pX={};pX.languageCode=Cu.languageCode;pX.languageName=g.Jv(Cu.languageName);if(Cu.translationSourceTrackIndices){pX.translationSourceTrackIndices=[];for(var iso=g.k(Cu.translationSourceTrackIndices),c7_=iso.next();!c7_.done;c7_=iso.next())pX.translationSourceTrackIndices.push(c7_.value)}if(Cu.excludeAudioTrackIndices){pX.excludeAudioTrackIndices= [];for(var ojQ=g.k(Cu.excludeAudioTrackIndices),J7z=ojQ.next();!J7z.done;J7z=ojQ.next())pX.excludeAudioTrackIndices.push(J7z.value)}this.ea.push(pX)}this.Tk=[];if(TD.defaultTranslationSourceTrackIndices)for(var tfz=g.k(TD.defaultTranslationSourceTrackIndices),RLU=tfz.next();!RLU.done;RLU=tfz.next())this.Tk.push(RLU.value);this.HL=!!TD.contribute&&!!TD.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.le=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&inQ(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var zOQ;this.compositeLiveIngestionOffsetToken=(zOQ=this.playerResponse.playbackTracking)==null?void 0:zOQ.compositeLiveIngestionOffsetToken;var w4_;this.compositeLiveStatusToken=(w4_=this.playerResponse.playbackTracking)==null?void 0: w4_.compositeLiveStatusToken;this.D("html5_fill_default_mosaic_audio_track_id")&&Je(this)&&(this.JG.Ra=nCQ(this));if(this.D("html5_enable_player_response_driven_playback_rate_clamping")){var Ejo,yPb,gjJ=(Ejo=this.playerResponse.playerConfig)==null?void 0:(yPb=Ejo.granularVariableSpeedConfig)==null?void 0:yPb.minimumPlaybackRate,Zs_,GPN,OsT=(Zs_=this.playerResponse.playerConfig)==null?void 0:(GPN=Zs_.granularVariableSpeedConfig)==null?void 0:GPN.maximumPlaybackRate;gjJ&&OsT&&(this.AF=gjJ/100,this.Ie= OsT/100)}}B_(this,p);p.queue_info&&(this.queueInfo=p.queue_info);var NvJ=p.hlsdvr;NvJ!=null&&(this.allowLiveDvr=Number(NvJ)===1?hc()?!0:As&&FF<5?!1:!0:!1);this.adQueryId=p.ad_query_id||null;this.gz||(this.gz=p.encoded_ad_safety_reason||null);this.cU=Vl(this.cU,p.infringe||p.muted);this.Rm6=p.authkey;this.QT=p.authuser;this.mutedAutoplay=Vl(this.mutedAutoplay,p&&p.playmuted);this.mutedAutoplayDurationMode=pP(this.mutedAutoplayDurationMode,p&&p.muted_autoplay_duration_mode);this.LC=Vl(this.LC,p&&p.mutedautoplay); var QS=p.length_seconds;QS&&(this.lengthSeconds=typeof QS==="string"?o0(QS):QS);if(this.isAd()||this.fY||!g.vb(g.sF(this.JG)))this.endSeconds=pP(this.endSeconds,this.NK||p.end||p.endSeconds);else{var UkR=g.sF(this.JG),mf=this.lengthSeconds;switch(UkR){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":mf>30?this.limitedPlaybackDurationInSeconds=30:mf<30&&mf>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= mf*.2}}this.hG=xz(this.hG,p.itct);this.aK=Vl(this.aK,p.is_live_destination);this.isLivePlayback=Vl(this.isLivePlayback,p.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Dp();p.isUpcoming&&(this.isUpcoming=Vl(this.isUpcoming,p.isUpcoming));this.S3=Vl(this.S3,p.post_live_playback);this.O7&&(this.S3=!1);this.isMdxPlayback=Vl(this.isMdxPlayback,p.mdx);var S7=p.mdx_control_mode;S7&&(this.mdxControlMode=typeof S7==="number"?S7:o0(S7));this.isInlinePlaybackNoAd=Vl(this.isInlinePlaybackNoAd, p.is_inline_playback_no_ad);this.XV=pP(this.XV,p.reload_count);this.reloadReason=xz(this.reloadReason,p.reload_reason);this.Tg=Vl(this.Tg,p.show_content_thumbnail);this.cycToken=p.cyc||null;var AP1=EF(p);Object.keys(AP1).length>0&&(this.Y=AP1);this.F5=xz(this.F5,p.vvt);this.mdxEnvironment=xz(this.mdxEnvironment,p.mdx_environment);p.source_container_playlist_id&&(this.sourceContainerPlaylistId=p.source_container_playlist_id);p.serialized_mdx_metadata&&(this.serializedMdxMetadata=p.serialized_mdx_metadata); this.n_6=p.osig;this.eventId||(this.eventId=p.eventid);this.osid||(this.osid=p.osid);this.playlistId=xz(this.playlistId,p.list);p.index&&(this.playlistIndex=this.playlistIndex===void 0?pP(0,p.index):pP(this.playlistIndex,p.index));this.Qd=p.pyv_view_beacon_url;this.vK=p.pyv_quartile25_beacon_url;this.mD=p.pyv_quartile50_beacon_url;this.AO=p.pyv_quartile75_beacon_url;this.Rc=p.pyv_quartile100_beacon_url;var Pzx=p.session_data;!this.N7&&Pzx&&(this.N7=n6(Pzx,"&").feature);this.isFling=pP(this.isFling? 1:0,p.is_fling)===1;this.vnd=pP(this.vnd,p.vnd);this.forceAdsUrl=xz(this.forceAdsUrl,p.force_ads_url);this.dM=xz(this.dM,p.ctrl);this.Gg=xz(this.Gg,p.ytr);this.s4=p.ytrcc;this.cK=p.ytrexp;this.Qo=p.ytrext;this.K1=xz(this.K1,p.adformat);this.M9=xz(this.M9,p.attrib);this.slotPosition=pP(this.slotPosition,p.slot_pos);this.breakType=p.break_type;this.s$=Vl(this.s$,p.ssrt);this.videoId=aQ(p)||this.videoId;this.S=xz(this.S,p.vss_credentials_token);this.LJ=xz(this.LJ,p.vss_credentials_token_type);this.Y_= Vl(this.Y_,p.audio_only);this.gr=Vl(this.gr,p.aac_high);this.us=Vl(this.us,p.prefer_low_quality_audio);this.l1=Vl(this.l1,p.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?p.qoe_cat&&(this.ER=this.ER.concat(p.qoe_cat.split(","))):this.qX=xz(this.qX,p.qoe_cat);this.p$=Vl(this.p$,p.download_media);var qxg=p.prefer_gapless;this.V=qxg!=null?Vl(this.V,qxg):this.V?this.V:this.JG.preferGapless&&this.JG.supportsGaplessShorts();RFN(this.playerResponse)&&this.T.push("ad");var njJ=p.adaptive_fmts; njJ&&(this.adaptiveFormats=njJ,this.jA("adpfmts",{},!0));var eO_=p.allow_embed;eO_&&(this.allowEmbed=Number(eO_)===1);var uYf=p.backgroundable;uYf&&(this.backgroundable=Number(uYf)===1);var VfT=p.autonav;VfT&&(this.isAutonav=Number(VfT)===1);var FIJ=p.autoplay;FIJ&&(this.o9=this.Cq=Number(FIJ)===1);var p2b=p.iv_load_policy;p2b&&(this.annotationsLoadPolicy=Fr(this.annotationsLoadPolicy,p2b,vx));var x9b=p.cc_lang_pref;x9b&&(this.captionsLanguagePreference=xz(x9b,this.captionsLanguagePreference));var $9b= p.cc_load_policy;$9b&&(this.t0=Fr(this.t0,$9b,vx));var a_b;this.deviceCaptionsOn=(a_b=p.device_captions_on)!=null?a_b:void 0;var s$1;this.Wx=(s$1=p.device_captions_lang_pref)!=null?s$1:"";var vyN;this.DO=(vyN=p.viewer_selected_caption_langs)!=null?vyN:[];var clb=p.cached_load;clb&&(this.Rz=Vl(this.Rz,clb));if(p.dash==="0"||p.dash===0||p.dash===!1)this.b5=!0;var Jl8=p.dashmpd;Jl8&&(this.vX=g.jL(Jl8,{cpn:this.clientPlaybackNonce}));var R4z=p.delay;R4z&&(this.US=o0(R4z));var Ke8=this.NK||p.end;if(this.G$? Ke8!=null:Ke8!=void 0)this.clipEnd=pP(this.clipEnd,Ke8);var KR8=p.fmt_list;KR8&&(this.xj=KR8);p.heartbeat_preroll&&this.T.push("heartbeat");this.JK=-Math.floor(Math.random()*10);this.IY=-Math.floor(Math.random()*40);var d9U=p.is_listed;d9U&&(this.isListed=Vl(this.isListed,d9U));var bRQ=p.is_private;bRQ&&(this.isPrivate=Vl(this.isPrivate,bRQ));var rl1=p.is_dni;rl1&&(this.fp=Vl(this.fp,rl1));var BVI=p.dni_color;BVI&&(this.Dj=xz(this.Dj,BVI));var l_o=p.pipable;l_o&&(this.pipable=Vl(this.pipable,l_o)); this.TI=(this.fl=this.pipable&&this.JG.Lq)&&!this.JG.showMiniplayerButton;var LR1=p.paid_content_overlay_duration_ms;LR1&&(this.paidContentOverlayDurationMs=o0(LR1));var YHz=p.paid_content_overlay_text;YHz&&(this.paidContentOverlayText=YHz);var h4b=p.url_encoded_fmt_stream_map;h4b&&(this.Xq=h4b);var j$f=p.hls_formats;j$f&&(this.hlsFormats=j$f);var I_Q=p.hlsvp;I_Q&&(this.hlsvp=I_Q);var fl=p.live_start_walltime;fl&&(this.Z16=typeof fl==="number"?fl:o0(fl));var Cl=p.live_manifest_duration;Cl&&(this.FQ= typeof Cl==="number"?Cl:o0(Cl));var MC1=p.player_params;MC1&&(this.playerParams=MC1);var WRf=p.partnerid;WRf&&(this.partnerId=pP(this.partnerId,WRf));var kzT=p.probe_url;kzT&&(this.probeUrl=Eo(g.jL(kzT,{cpn:this.clientPlaybackNonce})));var dxz=p.pyv_billable_url;dxz&&Yqb(dxz)&&(this.xs=dxz);var b4U=p.pyv_conv_url;b4U&&Yqb(b4U)&&(this.GI=b4U);Rxb(this,p);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.le||this.fJ||p.start||p.startSeconds)&&this.jA("lss", {css:this.startSeconds,pcss:this.le,iss:this.fJ,ps:p.start||void 0,pss:p.startSeconds||void 0}):this.Zp=this.startSeconds=pP(this.startSeconds,this.le||this.fJ||p.start||p.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var D9Q=p.live_utc_start;if(D9Q!=null)this.liveUtcStartSeconds=Number(D9Q);else{var r7g=this.startSeconds;r7g&&isFinite(r7g)&&r7g>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var U9x=p.utc_start_millis; U9x&&(this.liveUtcStartSeconds=Number(U9x)*.001)}var HR_=p.stream_time_start_millis;HR_&&(this.aA=Number(HR_)*.001);var B4I=this.fJ||p.start;(this.G$?B4I==null||Number(p.resume)===1:B4I==void 0||p.resume=="1")||this.isLivePlayback||(this.clipStart=pP(this.clipStart,B4I));var TVg=p.url_encoded_third_party_media;TVg&&(this.E5=VT(TVg));var lYg=p.ypc_offer_button_formatted_text;if(lYg){var Q$1=JSON.parse(lYg);this.qD=Q$1!=null?Q$1:null;this.DN=lYg}var m9f=p.ypc_offer_button_text;m9f&&(this.OD=m9f);var SHz= p.ypc_offer_description;SHz&&(this.ye=SHz);var f_f=p.ypc_offer_headline;f_f&&(this.BA=f_f);var CQ8=p.ypc_full_video_message;CQ8&&(this.fD=CQ8);var X2_=p.ypc_offer_id;X2_&&(this.pY=X2_);var iRo=p.ypc_buy_url;iRo&&(this.lj=iRo);var oyg=p.ypc_item_thumbnail;oyg&&(this.Z7=oyg);var tCg=p.ypc_item_title;tCg&&(this.rb=tCg);var z4Q=p.ypc_item_url;z4Q&&(this.sD=z4Q);var w21=p.ypc_vid;w21&&(this.Ya=w21);p.ypc_overlay_timeout&&(this.Ii=Number(p.ypc_overlay_timeout));var Ey1=p.ypc_trailer_player_vars;Ey1&&(this.jB= uU(Ey1));var ylT=p.ypc_original_itct;ylT&&(this.VB=ylT);this.aT=xz(this.aT,p.ucid);this.S4=p.storyboard_spec||null;this.Wo=p.live_storyboard_spec||null;this.sK=p.iv_endscreen_url||null;this.ma=Vl(this.ma,p.ypc_module);this.zC=Vl(this.zC,p.ypc_clickwrap_module);this.ma&&this.T.push("ypc");this.zC&&this.T.push("ypc_clickwrap");this.oQ={video_id:p.video_id,eventid:p.eventid,cbrand:p.cbrand,cbr:p.cbr,cbrver:p.cbrver,c:p.c,cver:p.cver,ctheme:p.ctheme,cplayer:p.cplayer,cmodel:p.cmodel,cnetwork:p.cnetwork, cos:p.cos,cosver:p.cosver,cplatform:p.cplatform,user_age:p.user_age,user_display_image:p.user_display_image,user_display_name:p.user_display_name,user_gender:p.user_gender,csi_page_type:p.csi_page_type,csi_service_name:p.csi_service_name,enablecsi:p.enablecsi,enabled_engage_types:p.enabled_engage_types};sKT(this,p);var gyJ=p.cotn;gyJ&&(this.cotn=gyJ);if(Myf(this))SY(this)&&(this.isLivePlayback&&this.vX&&(this.YO=!0),this.tG&&(this.r_=!0));else if(Wc_(this))this.YO=!0;else{var ZRf,Gzg,ORI=((ZRf=this.playerResponse)== null?void 0:(Gzg=ZRf.streamingData)==null?void 0:Gzg.adaptiveFormats)||[];if(ORI.length>0)var M2=I3_(this,ORI);else{this.D("html5_log_pafmtstr_ctmp")&&this.jA("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var NVJ=this.adaptiveFormats;if(NVJ&&!SY(this)){this.JG.C.j&&(nA=!0);var XX=zV(NVJ),LeI=this.F1,Alo=this.lengthSeconds,Hyj=this.isLivePlayback,WP=this.S3,iI=this.JG,TTR=MAN(XX);if(Hyj||WP){var PQ_=iI==null?void 0:iI.experiments,iY=new i4("",PQ_,!0);iY.Dp=!0;iY.isManifestless=!0;iY.Z=!WP;iY.isLive= !WP;iY.S3=WP;for(var qHJ=g.k(XX),YCQ=qHJ.next();!YCQ.done;YCQ=qHJ.next()){var ox=YCQ.value,nyQ=wC(ox,LeI),xZ=El(ox.url,ox.sp,ox.s),e4Q=xZ.get("id");e4Q&&e4Q.includes("%7E")&&(iY.T=!0);var uhg=void 0,Qyj=(uhg=PQ_)==null?void 0:uhg.cO("html5_max_known_end_time_rebase"),mkO=Number(ox.target_duration_sec)||5,SiO=Number(ox.max_dvr_duration_sec)||14400,VC1=Number(xZ.get("mindsq")||xZ.get("min_sq")||"0"),FRz=Number(xZ.get("maxdsq")||xZ.get("max_sq")||"0")||Infinity;iY.Bm=iY.Bm||VC1;iY.FR=iY.FR||FRz;var fgQ= !yB(nyQ.mimeType);xZ&&fA(iY,new l4(xZ,nyQ,{aM:mkO,p7:fgQ,z7:SiO,Bm:VC1,FR:FRz,JI:300,S3:WP,Zv:Qyj}))}var pWN=iY}else{if(TTR==="FORMAT_STREAM_TYPE_OTF"){var Xi=Alo;Xi=Xi===void 0?0:Xi;var tt=new i4("",iI==null?void 0:iI.experiments,!1);tt.duration=Xi||0;for(var xy8=g.k(XX),hLo=xy8.next();!hLo.done;hLo=xy8.next()){var zY=hLo.value,jpT=wC(zY,LeI,tt.duration),IYT=El(zY.url,zY.sp,zY.s);if(IYT)if(jpT.streamType==="FORMAT_STREAM_TYPE_OTF")fA(tt,new LA(IYT,jpT,"sq/0"));else{var CFQ=Pf(zY.init),XZZ=Pf(zY.index); fA(tt,new Qi(IYT,jpT,CFQ,XZZ))}}tt.isOtf=!0;var $yx=tt}else{var iG=Alo;iG=iG===void 0?0:iG;var om=new i4("",iI==null?void 0:iI.experiments,!1);om.duration=iG||0;for(var a7U=g.k(XX),Mrz=a7U.next();!Mrz.done;Mrz=a7U.next()){var wh=Mrz.value,iyE=wC(wh,LeI,om.duration),oEO=Pf(wh.init),t$y=Pf(wh.index),smf=El(wh.url,wh.sp,wh.s);smf&&fA(om,new Qi(smf,iyE,oEO,t$y))}$yx=om}pWN=$yx}var vmT=pWN;if(XX.length>0){var cyo=XX[0];if(this.L().playerStyle==="hangouts-meet"&&cyo.url){var zmR=g.Fj(cyo.url);this.mj=this.mj|| Number(zmR.expire)}}var wZv=this.isLivePlayback&&!this.S3&&!this.O7&&!this.isPremiere;this.D("html5_live_head_playable")&&(!fT(this)&&wZv&&this.jA("missingLiveHeadPlayable",{}),this.JG.Zt==="yt"&&(vmT.V6=!0));M2=vmT}else M2=null;this.jA("pafmts",{isManifestFilled:!!M2})}if(M2){iq(this,M2);var Jyz=!0}else Jyz=!1;Jyz?this.enableServerStitchedDai=this.enableServerStitchedDai&&CT(this):this.vX&&(this.JG.Zt==="yt"&&this.Dp()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")? this.jA("deprecateMflFallback",{}):this.YO=!0)}var WeJ=p.adpings;WeJ&&(this.A2=WeJ?uU(WeJ):null);var RJ8=p.feature;RJ8&&(this.d_=RJ8);var KfN=p.referrer;KfN&&(this.referrer=KfN);this.clientScreenNonce=xz(this.clientScreenNonce,p.csn);this.uA=pP(this.uA,p.root_ve_type);this.gX=pP(this.gX,p.kids_age_up_mode);this.G$||p.kids_app_info==void 0||(this.kidsAppInfo=p.kids_app_info);this.G$&&p.kids_app_info!=null&&(this.kidsAppInfo=p.kids_app_info);this.Cm=Vl(this.Cm,p.upg_content_filter_mode);this.unpluggedFilterModeType= pP(this.unpluggedFilterModeType,p.unplugged_filter_mode_type);var dyz=p.unplugged_location_info;dyz&&(this.y8=dyz);var blo=p.unplugged_partner_opt_out;blo&&(this.mV=xz("",blo));this.Km=Vl(this.Km,p.disable_watch_next);this.RK=xz(this.RK,p.internal_ip_override);this.Ay=!!p.is_yto_interstitial;(this.interstitials.length||this.Ay)&&this.T.push("yto");var ry8=p.SQ;ry8&&(this.SQ=ry8);this.Zt=xz(this.Zt,p.csi_timer);p.watchUrl&&(this.watchUrl=p.watchUrl);var $Z=p.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&& $Z&&IUQ(this,$Z);if($Z==null?0:$Z.ustreamerConfig)this.U$=Q_($Z.ustreamerConfig);var BlJ,l7_,Lff=$Z==null?void 0:(BlJ=$Z.loggingContext)==null?void 0:(l7_=BlJ.qoeLoggingContext)==null?void 0:l7_.serializedContextData;Lff&&(this.h7g=Lff);g.nH(this.JG)&&this.JG.kC&&(this.embedsRct=xz(this.embedsRct,p.rct),this.embedsRctn=xz(this.embedsRctn,p.rctn));p.embed_config&&(this.j1=p.embed_config);this.ev=this.ev||!!p.pause_at_start;p.default_active_source_video_id&&(this.defaultActiveSourceVideoId=p.default_active_source_video_id)}; g.I.L=function(){return this.JG}; g.I.D=function(p){return this.JG.D(p)}; g.I.yu=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.I.hasSupportedAudio51Tracks=function(){var p;return!((p=this.lc)==null||!p.T4)}; g.I.getUserAudio51Preference=function(){var p=1;hC(this.JG)&&this.D("html5_ytv_surround_toggle_default_off")?p=0:g.lm(this.JG)&&this.isLivePlayback&&this.Sg()&&(p=0);var x;return(x=g.mD("yt-player-audio51"))!=null?x:p}; g.I.Qz=function(){this.b$()||(this.U.Z||this.U.unsubscribe("refresh",this.Qz,this),this.GR(-1))}; g.I.GR=function(p){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var x=kkQ(this.U,this.Lm);if(x.length>0){for(var a=g.k(x),v=a.next();!v.done;v=a.next())v=v.value,v.startSecs=Math.max(v.startSecs,this.Lp()),this.D("html5_cuepoint_identifier_logging")&&v.event==="start"&&this.jA("cuepoint",{pubCue:v.identifier,segNum:p});this.publish("cuepointupdated",x,p);this.Lm+=x.length;if(CT(this)&&this.JG.qZ())for(x=g.k(x),a=x.next();!a.done;a=x.next())a=a.value,this.jA("cuepoint",{segNum:p,event:a.event, startSecs:a.startSecs,id:a.identifier.slice(-16)}),a.event==="start"&&(a=a.startSecs,this.gN.start=this.Iw,this.gN.end=a+3)}}}; g.I.qd=function(){this.b$()||(this.loading=!1,this.publish("dataloaded"))}; g.I.Sg=function(){return this.cL!==void 0?this.cL:this.cL=!!this.F1||!!this.U&&oB(this.U)}; g.I.C2=function(p){var x=this;if(this.b$())return TS();this.Kp=this.LI=this.j=null;lX(this,"html5_high_res_logging_always")&&(this.JG.tU=!0);return Uug(this,p).then(void 0,function(){return TLQ(x,p)}).then(void 0,function(){return QKf(x)}).then(void 0,function(){return S51(x)})}; g.I.QW=function(p){this.j=p;HQQ(this,this.j.getAvailableAudioTracks());if(this.j){p=g.k(this.j.videoInfos);for(var x=p.next();!x.done;x=p.next()){x=x.value;var a=x.containerType;a!==0&&(this.r4[a]=x.id)}}p=this.getAvailableAudioTracks();p=p.concat(this.HU);for(x=0;x0?this.j.getAvailableAudioTracks():this.eX||[]:[]}; g.I.getAudioTrack=function(){var p=this;if(this.B&&!tD(this.B)){var x=g.ME(this.getAvailableAudioTracks(),function(c){return c.id===p.B.id}),a; if(!x&&((a=this.B.AX)==null?0:a.id)){var v=this.B.AX.id;x=g.ME(this.getAvailableAudioTracks(),function(c){return c.AX.id===v}); this.jA("nat",{id:this.B.id,track:!!x})}return x||this.HU}if(this.eX){if(!this.PG)for(x=g.k(this.eX),a=x.next();!a.done;a=x.next())if(a=a.value,a.AX.getIsDefault()){this.PG=a;break}return this.PG||this.HU}return this.HU}; g.I.getPlayerResponse=function(){return this.playerResponse}; g.I.getWatchNextResponse=function(){return this.qT}; g.I.getHeartbeatResponse=function(){return this.QO}; g.I.q1=function(){return this.watchUrl?this.watchUrl:this.JG.getVideoUrl(this.videoId)}; g.I.Xy=function(){return!!this.U&&(BMo(this.U)||lAU(this.U)||L0T(this.U))}; g.I.getEmbeddedPlayerResponse=function(){return this.Kd}; g.I.nT=function(){return(this.eventLabel||this.JG.F5)==="shortspage"}; g.I.isAd=function(){return!!this.adFormat}; g.I.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.I.O8=function(){var p,x,a;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((p=this.playerResponse)==null?0:(x=p.playerConfig)==null?0:(a=x.daiConfig)==null?0:a.ssaEnabledPlayback)}; g.I.x6=function(){return this.nF}; g.I.X7=function(){return this.ma||this.Ac}; g.I.Bx=function(){return lX(this,"html5_samsung_vp9_live")}; g.I.jA=function(p,x,a){this.publish("ctmp",p,x,a)}; g.I.AN=function(p,x,a){this.publish("ctmpstr",p,x,a)}; g.I.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.I.getGetAdBreakContext=function(p,x){p=p===void 0?NaN:p;x=x===void 0?NaN:x;var a={isSabr:TV(this)},v,c=(v=this.getHeartbeatResponse())==null?void 0:v.adBreakHeartbeatParams;c&&(a.adBreakHeartbeatParams=c);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.U&&!isNaN(p)&&!isNaN(x)){x=p-x;for(var J in this.U.U)if(v=this.U.U[J],v.info.hU()||v.info.K3())if(v=v.index,v.isLoaded()){J=v.sN(x);v=v.Ez(J)+x-v.getStartTime(J);this.jA("gabc",{t:p.toFixed(3),mt:x.toFixed(3),sg:J,igt:v.toFixed(3)}); a.livePlaybackPosition={utcTimeMillis:""+(v*1E3).toFixed(0)};break}}return a}; g.I.isEmbedsShortsMode=function(p,x){if(!g.nH(this.JG)||(this.JG.u$||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||x)return!1;var a,v;return!!(((a=this.embeddedPlayerConfig)==null?0:(v=a.embeddedPlayerFlags)==null?0:v.isShortsExperienceEligible)&&p.width<=p.height)}; g.I.PO=function(){g.Fx.prototype.PO.call(this);this.A2=null;delete this.tJ;delete this.accountLinkingConfig;delete this.U;this.j=this.QO=this.playerResponse=this.qT=null;this.Xq=this.adaptiveFormats="";delete this.botguardData;this.Ra=this.suggestions=this.NC=null;this.sabrContextUpdates.clear()};var J2Q={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},RHT={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},vQ8={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},$8f={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"},ss8={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},anz={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"},c2I={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.M(Mh,g.y);g.I=Mh.prototype;g.I.handleExternalCall=function(p,x,a){var v=this.state.V[p],c=this.state.Y[p],J=v;if(c)if(a&&tw(a,dvE))J=c;else if(!v)throw Error('API call from an untrusted origin: "'+a+'"');this.logApiCall(p,a);if(J){a=!1;v=g.k(x);for(c=v.next();!c.done;c=v.next())if(String(c.value).includes("javascript:")){a=!0;break}a&&g.Hp(Error('Dangerous call to "'+p+'" with ['+x+"]."));return J.apply(this,x)}throw Error('Unknown API method: "'+p+'".');}; g.I.logApiCall=function(p,x,a){var v=this.app.L();v.wb&&!this.state.T.has(p)&&(this.state.T.add(p),g.ab("webPlayerApiCalled",{callerUrl:v.loaderUrl,methodName:p,origin:x||void 0,playerStyle:v.playerStyle||void 0,embeddedPlayerMode:v.u$,errorCode:a}))}; g.I.publish=function(p){var x=g.g_.apply(1,arguments);this.state.j.publish.apply(this.state.j,[p].concat(g.lf(x)));if(p==="videodatachange"||p==="resize"||p==="cardstatechange")this.state.Z.publish.apply(this.state.Z,[p].concat(g.lf(x))),this.state.B.publish.apply(this.state.B,[p].concat(g.lf(x)))}; g.I.NT=function(p){var x=g.g_.apply(1,arguments);this.state.j.publish.apply(this.state.j,[p].concat(g.lf(x)));this.state.Z.publish.apply(this.state.Z,[p].concat(g.lf(x)))}; g.I.dV=function(p){var x=g.g_.apply(1,arguments);this.state.j.publish.apply(this.state.j,[p].concat(g.lf(x)));this.state.Z.publish.apply(this.state.Z,[p].concat(g.lf(x)));this.state.B.publish.apply(this.state.B,[p].concat(g.lf(x)))}; g.I.n1=function(p){var x=g.g_.apply(1,arguments);this.state.j.publish.apply(this.state.j,[p].concat(g.lf(x)));this.state.Z.publish.apply(this.state.Z,[p].concat(g.lf(x)));this.state.B.publish.apply(this.state.B,[p].concat(g.lf(x)));this.state.C.publish.apply(this.state.C,[p].concat(g.lf(x)))}; g.I.D=function(p){return this.app.L().D(p)}; g.I.PO=function(){if(this.state.element){var p=this.state.element,x;for(x in this.state.U)this.state.U.hasOwnProperty(x)&&(p[x]=null);this.state.element=null}g.y.prototype.PO.call(this)};g.M(Hw,g.kW);Hw.prototype.publish=function(p){var x=g.g_.apply(1,arguments);if(this.C.has(p))return this.C.get(p).push(x),!0;var a=!1;try{for(x=[x],this.C.set(p,x);x.length;)a=g.kW.prototype.publish.call.apply(g.kW.prototype.publish,[this,p].concat(g.lf(x.shift())))}finally{this.C.delete(p)}return a};g.M(TQ,g.y);TQ.prototype.PO=function(){this.C.dispose();this.B.dispose();this.Z.dispose();this.j.dispose();this.T=this.U=this.Y=this.V=this.S=void 0};var Lox=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.M(mH,Mh);g.I=mH.prototype;g.I.getApiInterface=function(){return Array.from(this.state.S)}; g.I.lW=function(p,x){this.state.C.subscribe(p,x)}; g.I.IKg=function(p,x){this.state.C.unsubscribe(p,x)}; g.I.getPlayerState=function(p){return KpT(this.app,p)}; g.I.sA=function(){return KpT(this.app)}; g.I.v_t=function(p,x,a){C_(this)&&(wt(this.app,!0,1),gt(this.app,p,x,a,1))}; g.I.getCurrentTime=function(p,x,a){var v=this.getPlayerState(p);if(this.app.getAppState()===2&&v===5){var c;return((c=this.app.getVideoData())==null?void 0:c.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&v===0?CY(this.app,p):p?this.app.getCurrentTime(p,x,a):this.app.getCurrentTime(p)}; g.I.TY=function(){return this.app.getCurrentTime(1)}; g.I.UA=function(){var p=this.app.Ez(1);return isNaN(p)?this.getCurrentTime(1):p}; g.I.Eu=function(){return this.app.getDuration(1)}; g.I.m_=function(p,x){p=g.ZL(Math.floor(p),0,100);isFinite(p)&&SS(this.app,{volume:p,muted:this.isMuted()},x)}; g.I.kyA=function(p){this.m_(p,!1)}; g.I.lX=function(p){SS(this.app,{muted:!0,volume:this.getVolume()},p)}; g.I.S76=function(){this.lX(!1)}; g.I.Jr=function(p){f_(this.app)&&!this.D("embeds_enable_emc3ds_muted_autoplay")||SS(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},p)}; g.I.LhI=function(){f_(this.app)&&this.D("embeds_enable_emc3ds_muted_autoplay")||this.Jr(!1)}; g.I.getPlayerMode=function(){var p={};this.app.getVideoData().fp&&(p.pfp={enableIma:this.app.oA().allowImaMonetization,autoplay:aN(this.app.oA()),mutedAutoplay:this.app.oA().mutedAutoplay});return p}; g.I.VR=function(){var p=this.app.getPresentingPlayerType();if(p===2&&!this.app.wI()){var x=tA(this.app.uV());if(!(dEt(x)||g.nH(this.app.L())&&g.q(this.app.md().getPlayerState(),1024))||bGv(x))return}(x=this.app.bH().uf)?x.playVideo():this.app.playVideo(p)}; g.I.a37=function(){wt(this.app,!0,1);this.VR()}; g.I.pauseVideo=function(p){var x=this.app.getPresentingPlayerType();if(x!==2||this.app.wI()||dEt(tA(this.app.uV()))){var a=this.app.bH().uf;a?a.pauseVideo():this.app.pauseVideo(x,p)}}; g.I.uMO=function(){var p=this.app,x=!1;p.z4.KW&&(p.X5.publish("pageTransition"),x=!0);p.stopVideo(x)}; g.I.clearVideo=function(){}; g.I.getAvailablePlaybackRates=function(){var p=this.app.L();if(p.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(p.B?p.ancestorOrigins[0]:window.location.origin)||p.PG)return zlR;if(p.D("html5_enable_player_response_driven_playback_rate_clamping")){p=this.app.getVideoData();var x=p.AF,a=p.Ie;return ybV.filter(function(v){return v>=x&&v<=a})}return p.supportsVarispeedExtendedFeatures?wYQ:p.D("web_remix_allow_up_to_3x_playback_rate")&& g.SG(p)?EkG:SO}return[1]}; g.I.getPlaybackQuality=function(p){return(p=this.app.C1(p))?p.getPlaybackQuality():"unknown"}; g.I.rU$=function(){}; g.I.getAvailableQualityLevels=function(p){return(p=this.app.C1(p))?(p=g.IT(p.Wv(),function(x){return x.quality}),p.length&&(p[0]==="auto"&&p.shift(),p=p.concat(["auto"])),p):[]}; g.I.cW=function(){return this.getAvailableQualityLevels(1)}; g.I.Fv=function(){return this.hd()}; g.I.u8=function(){return 1}; g.I.getVideoLoadedFraction=function(p){return this.app.getVideoLoadedFraction(p)}; g.I.hd=function(){return this.getVideoLoadedFraction()}; g.I.CV=function(){return 0}; g.I.getSize=function(){var p=this.app.fI().getPlayerSize();return{width:p.width,height:p.height}}; g.I.setSize=function(){this.app.fI().resize()}; g.I.loadVideoById=function(p,x,a,v){if(!p)return!1;p=Qy(p,x,a);return this.app.loadVideoByPlayerVars(p,v)}; g.I.Nl=function(p,x,a){p=this.loadVideoById(p,x,a,1);wt(this.app,p,1)}; g.I.cueVideoById=function(p,x,a,v){p=Qy(p,x,a);this.app.cueVideoByPlayerVars(p,v)}; g.I.AE=function(p,x,a){this.cueVideoById(p,x,a,1)}; g.I.loadVideoByUrl=function(p,x,a,v){p=lnU(p,x,a);return this.app.loadVideoByPlayerVars(p,v)}; g.I.fS=function(p,x,a){p=this.loadVideoByUrl(p,x,a,1);wt(this.app,p,1)}; g.I.cueVideoByUrl=function(p,x,a,v){p=lnU(p,x,a);this.app.cueVideoByPlayerVars(p,v)}; g.I.Lb=function(p,x,a){this.cueVideoByUrl(p,x,a,1)}; g.I.i8=function(){var p=this.app.L();if(p.pI)return"";var x=this.app.oA(),a=void 0;x.isLivePlayback||(a=Math.floor(this.app.getCurrentTime(1)));return p.getVideoUrl(x.videoId,this.getPlaylistId()||void 0,a)}; g.I.lR=function(){return this.app.getDebugText()}; g.I.getVideoEmbedCode=function(){var p=this.app.L();if(p.pI)return"";var x=this.app.oA();return p.getVideoEmbedCode(x.isPrivate?"":x.title,this.app.oA().videoId,this.app.fI().getPlayerSize(),this.getPlaylistId()||void 0)}; g.I.TN=function(p,x,a){return h71(this.app,p,x,a)}; g.I.removeCueRange=function(p){return this.app.JW(p)}; g.I.loadPlaylist=function(p,x,a,v){this.app.loadPlaylist(p,x,a,v)}; g.I.gC=function(p,x,a,v){this.loadPlaylist(p,x,a,v);wt(this.app,!0,1)}; g.I.cuePlaylist=function(p,x,a,v){this.app.cuePlaylist(p,x,a,v)}; g.I.nextVideo=function(p,x){this.app.nextVideo(p,x)}; g.I.C$7=function(){this.nextVideo();wt(this.app,!0,1)}; g.I.previousVideo=function(p){this.app.previousVideo(p)}; g.I.oNT=function(){this.previousVideo();wt(this.app,!0,1)}; g.I.playVideoAt=function(p){this.app.playVideoAt(p)}; g.I.Air=function(p){this.playVideoAt(p);wt(this.app,!0,1)}; g.I.setShuffle=function(p){var x=this.app.getPlaylist();x&&x.setShuffle(p)}; g.I.setLoop=function(p){var x=this.app.getPlaylist();x&&(x.loop=p)}; g.I.B8=function(){var p=this.app.getPlaylist();if(!p)return null;for(var x=[],a=0;a=400)if(p=this.oA(),this.W.L().D("client_respect_autoplay_switch_button_renderer"))p=!!p.autoplaySwitchButtonRenderer;else{var x,a,v,c;p=!!((x=p.getWatchNextResponse())==null?0:(a=x.contents)==null?0:(v=a.twoColumnWatchNextResults)==null?0:(c=v.autoplay)==null?0:c.autoplay)!==!1}if(p)this.U||(this.U=!0,this.eD(this.U),this.W.L().D("web_player_autonav_toggle_always_listen")||y21(this), x=this.oA(),this.PK(x.autonavState),this.W.logVisibility(this.element,this.U));else if(this.U=!1,this.eD(this.U),!this.W.L().D("web_player_autonav_toggle_always_listen"))for(this.W.L().D("web_player_autonav_toggle_always_listen"),x=g.k(this.Z),a=x.next();!a.done;a=x.next())this.IA(a.value)}; g.I.PK=function(p){Zzz(this)?this.isChecked=p!==1:((p=p!==1)||(g.oQ(),p=g.Ly("web_autonav_allow_off_by_default")&&!g.tX(0,141)&&g.gx("AUTONAV_OFF_BY_DEFAULT")?!1:!g.tX(0,140)),this.isChecked=p);gQQ(this)}; g.I.onClick=function(){this.isChecked=!this.isChecked;this.W.ut(this.isChecked?2:1);gQQ(this);if(Zzz(this)){var p=this.oA().autoplaySwitchButtonRenderer;this.isChecked&&(p==null?0:p.onEnabledCommand)?this.W.NT("innertubeCommand",p.onEnabledCommand):!this.isChecked&&(p==null?0:p.onDisabledCommand)&&this.W.NT("innertubeCommand",p.onDisabledCommand)}this.W.logClick(this.element)}; g.I.getValue=function(){return this.isChecked}; g.I.oA=function(){return this.W.getVideoData(1)};g.M(GaI,d1);g.M(jZ,g.cy);jZ.prototype.onClick=function(){this.enabled&&(IW(this,!this.checked),this.publish("select",this.checked))}; jZ.prototype.getValue=function(){return this.checked}; jZ.prototype.setEnabled=function(p){(this.enabled=p)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var kK=["en-CA","en","es-MX","fr-CA"];g.M(Qv,jZ);Qv.prototype.Yg=function(p){p?this.U||(this.PX.u2(this),this.U=!0):this.U&&(this.PX.v5(this),this.U=!1);this.U&&IW(this,w88())}; Qv.prototype.B=function(){g.sm(this.element,"ytp-menuitem-highlight-transition-enabled")}; Qv.prototype.j=function(p){var x=w88();p!==x&&(x=g.oQ(),wr(190,p),wr(192,!0),x.save(),this.W.NT("cinematicSettingsToggleChange",p))}; Qv.prototype.PO=function(){this.U&&this.PX.v5(this);jZ.prototype.PO.call(this)};g.M(mz,d1);mz.prototype.updateCinematicSettings=function(p){this.U=p;var x;(x=this.menuItem)==null||x.Yg(p);this.api.publish("onCinematicSettingsVisibilityChange",p)};g.M(qwU,d1);g.M(SZ,d1);SZ.prototype.setCreatorEndscreenVisibility=function(p){var x;(x=y1(this.api.uV()))==null||x.eD(p)}; SZ.prototype.U=function(p){function x(v){v==="creatorendscreen"&&(v=y1(a.api.uV()))&&v.eCA(a.hideButton)} var a=this;this.hideButton=p;this.events.X(this.api,"modulecreated",x);x("creatorendscreen")};g.M(fI,jZ);fI.prototype.B=function(p){this.j(p?1:0)}; fI.prototype.Z=function(){var p=this.hasDrcAudioTrack(),x=this.U()===1&&p;IW(this,x);this.setEnabled(p)}; fI.prototype.PO=function(){this.PX.v5(this);jZ.prototype.PO.call(this)};g.M(CI,d1);CI.prototype.getDrcUserPreference=function(){return this.U}; CI.prototype.setDrcUserPreference=function(p){g.Qe("yt-player-drc-pref",p,31536E3);p!==this.U&&(this.U=p,this.updateEnvironmentData(),this.Z()&&this.api.xa())}; CI.prototype.updateEnvironmentData=function(){this.api.L().Y_=this.U===1}; CI.prototype.Z=function(){var p,x,a=(p=this.api.getVideoData())==null?void 0:(x=p.j)==null?void 0:x.U;if(!a)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var v,c,J=(v=this.api.sf())==null?void 0:(c=v.AX)==null?void 0:c.id;return OT(a,function(R){var d;return R.audio.U&&((d=R.AX)==null?void 0:d.id)===J})}return OT(a,function(R){var d; return((d=R.audio)==null?void 0:d.U)===!0})};g.M(Xa,d1);Xa.prototype.onVideoDataChange=function(){var p=this,x=this.api.getVideoData();this.api.Mg("embargo",1);var a=x==null?void 0:x.Gk.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(a==null?0:a.length)?eHg(this,a.filter(function(v){return nQQ(p,v)})):(x==null?0:x.cueRanges)&&eHg(this,x.cueRanges.filter(function(v){return nQQ(p,v)}))}; Xa.prototype.Z=function(p){return p.embargo!==void 0}; Xa.prototype.PO=function(){d1.prototype.PO.call(this);this.U={}};g.M(ia,d1); ia.prototype.addEmbedsConversionTrackingParams=function(p){var x=this.api.L(),a=x.widgetReferrer,v=x.vX,c=this.U,J="",R=x.getWebPlayerContextConfig();R&&(J=R.embedsIframeOriginParam||"");a.length>0&&(p.embeds_widget_referrer=a);v.length>0&&(p.embeds_referring_euri=v);x.B&&J.length>0&&(p.embeds_referring_origin=J);R&&R.embedsFeature&&(p.feature=R.embedsFeature);c.length>0&&(x.D("embeds_web_enable_lite_experiment_control_arm_logging")?c.unshift(28572):g.vb(g.sF(x))&&c.unshift(159628),x=c.join(","),x= g.yl()?x:g.SV(x,4),p.source_ve_path=x);this.U.length=0};g.M(ukg,d1);g.M(Vx1,d1);g.M(oW,g.y);oW.prototype.PO=function(){g.y.prototype.PO.call(this);this.U=null;this.Z&&this.Z.disconnect()};g.M(pX_,d1);g.M(tU,g.N);tU.prototype.show=function(){g.N.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; tU.prototype.stopTimer=function(){this.U&&(this.U.dispose(),this.U=null)}; tU.prototype.onVideoDataChange=function(p){var x,a,v=(x=this.api.getVideoData())==null?void 0:(a=x.getPlayerResponse())==null?void 0:a.playabilityStatus;v&&(x=xtN(v),g.q(this.api.getPlayerStateObject(),128)||p==="dataloaderror"||!x?(this.Z=0,this.stopTimer(),this.hide()):(p=(x.remainingTimeSecs||0)*1E3,p>0&&(this.show(),this.updateValue("label",wq(x.label)),aW_(this,p))))}; tU.prototype.PO=function(){this.stopTimer();g.N.prototype.PO.call(this)};g.M(sBf,d1);g.M(zm,g.N);zm.prototype.onClick=function(){this.X5.logClick(this.element);this.X5.NT("onFullerscreenEduClicked")}; zm.prototype.Yg=function(){this.X5.isFullscreen()?this.U?this.fade.hide():this.fade.show():this.hide();this.X5.logVisibility(this.element,this.X5.isFullscreen()&&!this.U)};g.M(w1,d1);w1.prototype.updateFullerscreenEduButtonSubtleModeState=function(p){var x;(x=this.U)!=null&&(g.cG(x.element,"ytp-fullerscreen-edu-button-subtle",p),p&&!x.Z&&(x.X5.D("player_tooltip_data_title_killswitch")?x.element.setAttribute("title","Role para ver detalhes"):x.element.setAttribute("data-tooltip-title","Role para ver detalhes"),wz(x.X5,x.element,x),x.Z=!0))}; w1.prototype.updateFullerscreenEduButtonVisibility=function(p){var x;(x=this.U)!=null&&(x.U=p,x.Yg())};g.M(v91,g.N);g.M(R88,d1);g.M(EN,d1);EN.prototype.getSphericalProperties=function(){var p=g.Ae(this.api.uV());return p?p.getSphericalProperties():{}}; EN.prototype.setSphericalProperties=function(p){if(p){var x=g.Ae(this.api.uV());x&&x.setSphericalProperties(p,!0)}};g.M(yv,d1);g.I=yv.prototype;g.I.createClientVe=function(p,x,a,v){this.api.createClientVe(p,x,a,v===void 0?!1:v)}; g.I.createServerVe=function(p,x,a){this.api.createServerVe(p,x,a===void 0?!1:a)}; g.I.setTrackingParams=function(p,x){this.api.setTrackingParams(p,x)}; g.I.logClick=function(p,x){this.api.logClick(p,x)}; g.I.logVisibility=function(p,x,a){this.api.logVisibility(p,x,a)}; g.I.hasVe=function(p){return this.api.hasVe(p)}; g.I.destroyVe=function(p){this.api.destroyVe(p)};var dtJ=!1;Z6.prototype.setPlaybackRate=function(p){this.playbackRate=Math.max(1,p)}; Z6.prototype.getPlaybackRate=function(){return this.playbackRate};Py.prototype.ZZ=function(p){var x=g.zl(p.info.U.info,this.nI.Dp),a=p.info.i$+this.B,v=p.info.startTime*1E3;if(this.policy.LI)try{v=this.policy.LI?g.Wz(p)*1E3:p.info.startTime*1E3}catch(R){Math.random()>.99&&this.logger&&(v=v$(p.Z).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:p.info.jV(),encodedDataView:g.m2(v,4)})),v=p.info.startTime*1E3}var c=p.info.clipId,J=this.policy.LI?g.VwN(p)*1E3:p.info.duration*1E3;this.policy.LI&&(v<0||J<0)&&(this.logger&&(this.logger({missingSegInfo:p.info.jV(), startTimeMs:v,durationMs:J}),this.policy.fJ||(v<0&&(v=p.info.startTime*1E3),J<0&&(J=p.info.duration*1E3))),this.policy.fJ&&(v<0&&(v=p.info.startTime*1E3),J<0&&(J=p.info.duration*1E3)));return{formatId:x,i$:a,startTimeMs:v,clipId:c,kR:J}}; Py.prototype.f7=function(p){this.timestampOffset=p};qa.prototype.seek=function(p,x){p!==this.targetTime&&(this.seekCount=0);this.targetTime=p;var a=this.videoTrack.Z,v=this.audioTrack.Z,c=this.audioTrack.MZ,J=mtf(this,this.videoTrack,p,this.videoTrack.MZ,x);x=mtf(this,this.audioTrack,this.policy.YN?p:J,c,x);p=Math.max(p,J,x);this.B=!0;this.nI.isManifestless&&(Dt8(this,this.videoTrack,a),Dt8(this,this.audioTrack,v));return p}; qa.prototype.isSeeking=function(){return this.B}; qa.prototype.Mp=function(p){this.Z=p}; var QB_=2/24;var CHg=0;g.I=c4.prototype;g.I.Zq=function(){this.T=this.now();HKT(this.PE,this.T);this.sS.Zq()}; g.I.Ns=function(p,x){var a=this.policy.Z?(0,g.WR)():0;JP(this,p,x);p-this.S<10&&this.Z>0||this.z_(p,x);this.sS.Ns(p,x);this.policy.Z&&(p=(0,g.WR)()-a,this.OS+=p,this.T4=Math.max(p,this.T4))}; g.I.z_=function(p,x){var a=(p-this.S)/1E3,v=x-this.j;this.iY||(y_(this.PE,a,v),this.uy(a,v));this.S=p;this.j=x}; g.I.gK=function(){this.u$&&XXg(this);this.sS.gK()}; g.I.g$=function(p){this.u$||(this.u$=this.C-this.KW+p,this.vX=this.C,this.ol=this.V)}; g.I.BL=function(p,x){p=p===void 0?this.V:p;x=x===void 0?this.C:x;this.Z>0||(this.Y=p,this.Z=x,this.Zt=this.isActive=!0)}; g.I.Kk=function(){return this.bL||2}; g.I.HC=function(){}; g.I.rz=function(){var p,x={rn:this.requestNumber,rt:(this.V-this.U).toFixed(),lb:this.C,stall:(1E3*this.B).toFixed(),ht:(this.T-this.U).toFixed(),elt:(this.Y-this.U).toFixed(),elb:this.Z,d:(p=this.F5)==null?void 0:p.E6()};this.url&&K7z(x,this.url);this.policy.Z&&(x.mph=this.T4.toFixed(),x.tph=this.OS.toFixed());x.ulb=this.qT;x.ult=this.pI;return x}; g.I.now=function(){return(0,g.WR)()}; g.I.deactivate=function(){this.isActive&&(this.isActive=!1)};g.M(Ks,c4);g.I=Ks.prototype;g.I.rz=function(){var p=c4.prototype.rz.call(this);p.pb=this.pH;p.pt=(1E3*this.oa).toFixed();p.se=this.G$;return p}; g.I.qA=function(){var p=this.sS;this.LI||(this.LI=p.qA?p.qA():1);return this.LI}; g.I.vD=function(){return this.V0?this.qA()!==1:!1}; g.I.C6=function(p,x,a){if(!this.XV){this.XV=!0;if(!this.iY){JP(this,p,x);this.z_(p,x);var v=this.qA();this.G$=a;if(!this.iY)if(v===2){v=p-this.Y0)||dv(this,v,x),this.Z>0&&w5(this.PE,x,this.B));p=(p-this.U)/ 1E3||.01;this.policy.Y&&!(this.Z>0)||z8(this.PE,p,this.j,o9b(this),this.Pv)}this.deactivate()}}; g.I.EG=function(p,x,a){a&&(this.LI=2);p<0&&this.bL&&(p=this.bL);x?this.gr+=p:this.tG+=p}; g.I.Kk=function(){return this.tG||this.gr||c4.prototype.Kk.call(this)}; g.I.z_=function(p,x){var a=(p-this.S)/1E3,v=x-this.j,c=this.qA();this.isActive?c===1&&((v>0||this.policy.C)&&(a>.2||v<1024)?(this.B+=a,v>0&&a>.2&&dv(this,this.nY?a:.05,v),this.US=!0):v>0&&(dv(this,a,v),this.US=!0)):x&&x>=this.policy.U&&this.BL(p,x);c4.prototype.z_.call(this,p,x)}; g.I.pg=function(p){if(!this.iY){JP(this,p,this.C);var x=(p-this.U)/1E3;this.qA()!==2&&this.Z>0&&(this.B+=(p-this.S)/1E3,w5(this.PE,this.j,this.B));z8(this.PE,x,this.j,o9b(this),this.Pv,!0);p=(p-this.S)/1E3;y_(this.PE,p,0);this.uy(p,0)}}; g.I.BL=function(p,x){p=p===void 0?this.V:p;x=x===void 0?this.C:x;if(!(this.Z>0)&&(c4.prototype.BL.call(this,p,x),this.qA()===1)){x=(this.T-this.U)/1E3;var a=(p-this.T)/1E3;this.V0&&bz(this,this.now());this.Zp||this.iY||(this.bL&&(a=Math.max(0,a-this.bL)),p=this.PE,p.Y.a5(1,x),p.F5.a5(1,a))}}; g.I.OW=function(){this.V0&&bz(this,this.now());return this.V6}; g.I.XF=function(){var p;if(p=this.j>this.u0)p=(p=this.j)?p>=this.policy.U:!1;return p}; g.I.Ga=function(){return this.Ra}; g.I.H3=function(p){p=p===void 0?this.now():p;if(this.V0){bz(this,p);if(this.LI?this.vD():this.O7!==this.hG){var x=this.hG;if(p0?a+p:a+Math.max(p,x)}; g.I.iB=function(){return this.now()-this.Y}; g.I.RL=function(){return(this.j-this.Z)*1E3/this.iB()||0}; g.I.Jd=function(){return this.Y};rv.prototype.feed=function(p){pu(this.U,p);this.Bh()}; rv.prototype.Bh=function(){if(this.B){if(!this.U.totalLength)return;var p=this.U.split(this.j-this.Z),x=p.Et;p=p.vM;if(!this.sS.g$(this.B,x,this.Z,this.j))return;this.Z+=x.totalLength;this.U=p;this.Z===this.j&&(this.B=this.j=this.Z=void 0)}for(;;){var a=0;p=g.k(E91(this.U,a));x=p.next().value;a=p.next().value;a=g.k(E91(this.U,a));p=a.next().value;a=a.next().value;if(x<0||p<0)break;if(!(a+p<=this.U.totalLength)){if(!(this.sS.g$&&a+1<=this.U.totalLength))break;a=this.U.split(a).vM;this.sS.g$(x,a,0, p)&&(this.B=x,this.Z=a.totalLength,this.j=p,this.U=new F_([]));break}p=this.U.split(a).vM.split(p);a=p.vM;this.sS.Ku(x,p.Et);this.U=a}}; rv.prototype.dispose=function(){this.U=new F_};g.I=B4.prototype;g.I.CR=function(){return 0}; g.I.yh=function(){return null}; g.I.oX=function(){return null}; g.I.Kn=function(){return this.state>=1}; g.I.isComplete=function(){return this.state>=3}; g.I.h3=function(){return this.state===5}; g.I.onStateChange=function(){}; g.I.XX=function(p){var x=this.state;this.state=p;this.onStateChange(x);this.callback&&this.callback(this,x)}; g.I.iM=function(p){p&&this.state=this.xhr.HEADERS_RECEIVED}; g.I.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(x){return""}}; g.I.HI=function(){return+this.getResponseHeader("content-length")}; g.I.w_=function(){return this.Z}; g.I.Xz=function(){return this.status>=200&&this.status<300&&!!this.Z}; g.I.CZ=function(){return this.U.totalLength>0}; g.I.H7=function(){var p=this.U;this.U=new F_;return p}; g.I.gx=function(){return this.U}; g.I.abort=function(){this.b$=!0;this.xhr.abort()}; g.I.Kj=function(){return!0}; g.I.pL=function(){return this.j}; g.I.Z9=function(){return""};g.I=GTx.prototype;g.I.getResponseHeader=function(p){return p==="content-type"?this.U.get("type"):""}; g.I.abort=function(){}; g.I.WF=function(){return!0}; g.I.HI=function(){return this.range.length}; g.I.w_=function(){return this.loaded}; g.I.Xz=function(){return!!this.loaded}; g.I.CZ=function(){return!!this.Z.totalLength}; g.I.H7=function(){var p=this.Z;this.Z=new F_;return p}; g.I.gx=function(){return this.Z}; g.I.Kj=function(){return!0}; g.I.pL=function(){return!!this.error}; g.I.Z9=function(){return this.error};g.I=N98.prototype;g.I.start=function(p){var x={credentials:"include",cache:"no-store"};Object.assign(x,this.V);this.B&&(x.signal=this.B.signal);p=new Request(p,x);fetch(p).then(this.T,this.onError).then(void 0,$l)}; g.I.onDone=function(){this.b$()||this.sS.gK()}; g.I.getResponseHeader=function(p){return this.responseHeaders?this.responseHeaders.get(p):null}; g.I.WF=function(){return!!this.responseHeaders}; g.I.w_=function(){return this.Z}; g.I.HI=function(){return+this.getResponseHeader("content-length")}; g.I.Xz=function(){return this.status>=200&&this.status<300&&!!this.Z}; g.I.CZ=function(){return!!this.U.totalLength}; g.I.H7=function(){var p=this.U;this.U=new F_;return p}; g.I.gx=function(){return this.U}; g.I.b$=function(){return this.C}; g.I.abort=function(){this.j&&this.j.cancel().catch(function(){}); this.B&&this.B.abort();this.C=!0}; g.I.Kj=function(){return!0}; g.I.pL=function(){return this.S}; g.I.Z9=function(){return this.errorMessage};g.I=ASf.prototype;g.I.onDone=function(){if(!this.b$){this.status=this.xhr.status;try{this.response=this.xhr.response,this.Z=this.response.byteLength}catch(p){}this.U=!0;this.sS.gK()}}; g.I.VG=function(){this.xhr.readyState===2&&this.sS.Zq()}; g.I.onProgress=function(p){this.b$||(this.status=this.xhr.status,this.U||(this.Z=p.loaded),this.sS.Ns((0,g.WR)(),p.loaded))}; g.I.WF=function(){return this.xhr.readyState>=2}; g.I.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(x){return g.Hp(Error("Could not read XHR header "+p)),""}}; g.I.HI=function(){return+this.getResponseHeader("content-length")}; g.I.w_=function(){return this.Z}; g.I.Xz=function(){return this.status>=200&&this.status<300&&this.U&&!!this.Z}; g.I.CZ=function(){return this.U&&!!this.response&&!!this.response.byteLength}; g.I.H7=function(){var p=this.response;this.response=void 0;return new F_([new Uint8Array(p)])}; g.I.gx=function(){return new F_([new Uint8Array(this.response)])}; g.I.abort=function(){this.b$=!0;this.xhr.abort()}; g.I.Kj=function(){return!1}; g.I.pL=function(){return!1}; g.I.Z9=function(){return""};g.M(Yj,g.y);Yj.prototype.GF=function(){if(!this.gk.length)return[];var p=this.gk;this.gk=[];this.j=g.hO(p).info;return p}; Yj.prototype.Q5=function(){return this.gk}; Yj.prototype.PO=function(){g.y.prototype.PO.call(this);this.U=null;this.gk.length=0;this.eA.length=0;this.j=null};g.M(jf,g.y);g.I=jf.prototype; g.I.Ci4=function(){if(!this.b$()){var p=(0,g.WR)(),x=!1;if(this.policy.kC){p=p-(this.timing.Z>0?this.timing.Y:this.timing.U)-this.timing.Kk()*1E3;var a=zX(I5(this),!1);p>=2E3*a?x=!0:p>=this.policy.mw*a&&(this.U=this.policy.fT)}else if(this.timing.Z>0){if(this.C){this.policy.ol&&(this.U=0);return}var v=this.timing.Ga();this.timing.H3();var c=this.timing.Ga();c-v>=this.policy.Y_*.8?(this.U++,this.logger.debug(function(){return"Mispredicted by "+(c-v).toFixed(0)}),x=this.U>=5):this.U=0}else{var J=p- this.timing.OW(); this.policy.fT&&J>0&&(this.U+=1);x=zX(I5(this),!1)*this.policy.Qo;(x=J>x*1E3)&&this.logger.debug(function(){return"Elbow late by "+J.toFixed(3)})}this.U>0&&this.sS.Zz(); x?this.QD():this.Z.start()}}; g.I.QD=function(){this.B=!0;this.sS.Xd();this.lastError="net.timeout";W4(this)}; g.I.canRetry=function(p){var x=I5(this);p=p?this.policy.sD:this.policy.MC;return x.timedOut0&&(x=c$(x.U,0),p.ubyte=x,a===1&&x===0&&(p.b248180278=!0))}this.YL&&(p.rc=this.policy.Hy?this.YL:this.YL.toString());this.policy.RA&&this.Bs&&(p.tr=this.Bs);p.itag=this.info.eA[0].U.info.itag;p.ml=""+ +this.info.eA[0].U.C3();p.sq=""+this.info.eA[0].i$;this.wH&&(p.ifi=""+ +AS(this.info.JX.Z));this.YL!==410&&this.YL!==500&&this.YL!==503||(p.fmt_unav="true");var v;(a=this.errorMessage||((v=this.xhr)==null?void 0: v.Z9()))&&(p.msg=a);this.AL&&(p.smb="1");this.info.isDecorated()&&(p.sdai="1");return p}; g.I.N3=function(){return t38(this.timing)}; g.I.Z9=function(){return this.xhr.Z9()||""}; g.I.XF=function(){return this.isComplete()||this.timing.XF()}; g.I.Ns=function(){!this.b$()&&this.xhr&&(this.YL=this.xhr.status,this.policy.r4&&this.B5&&this.OR(!1),this.Vs()?this.iM(2):!this.a4&&this.XF()&&(this.iM(),this.a4=!0))}; g.I.Zq=function(){if(!this.b$()&&this.xhr){if(!this.eY&&this.xhr.WF()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var p=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.eY=((0,g.WR)()-p)/1E3}this.xhr.WF()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.kY&&!pnf()&&g.Qe("yt-player-headers-readable",!0,2592E3);p=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var x=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),a;(a=this.eI)==null||a.stop();this.Au=p||this.Au; this.Jm=x||this.Jm}}; g.I.gK=function(){var p=this.xhr;if(!this.b$()&&p){this.YL=p.status;p=this.sb(p);if(this.policy.RA){var x;(x=this.eI)==null||x.stop()}p===5?W4(this.WE):this.XX(p);this.WE.Z.stop()}}; g.I.sb=function(p){var x=this;H0T(this);if(kj(this.WE,this.xhr.status,this.TV?this.timing.Zt||this.BS:this.xhr.Xz(),!1,this.xX))return 5;var a="";DV(this.WE,this.xhr)&&(a=V3b(this.WE,this.xhr));if(a)return t$(I5(this.WE)),this.info.u9(this.wH,a),3;a=p.w_();if(this.A3){this.OR(!0);H0T(this);if(kj(this.WE,this.xhr.status,this.timing.Zt||this.BS,!1,this.xX))return 5;if(!this.YQ){if(this.BS)return t$(I5(this.WE)),3;this.WE.lastError="net.closed";return 5}}else{if(kj(this.WE,this.xhr.status,this.xhr.Xz(), !1,this.xX))return 5;var v=this.info.j;if(v&&v!==a||p.pL())return this.WE.lastError="net.closed",5;this.OR(!0)}v=ySg(this)?p.getResponseHeader("X-Bandwidth-Est"):0;if(p=ySg(this)?p.getResponseHeader("X-Bandwidth-Est3"):0)this.Sn=!0,this.policy.Hi&&(v=p);e8Q(this.WE,a,v?Number(v):0,this.info.eA[0].type===5);this.logger.debug(function(){var c=x.timing;return"Succeeded, rtpd="+(c.oa*1E3+c.U-Date.now()).toFixed(0)}); return 4}; g.I.canRetry=function(){this.b$();var p=this.info.isDecorated();return this.WE.canRetry(p)}; g.I.onStateChange=function(){this.isComplete()&&(this.policy.h7?this.Xd():this.timing.deactivate())}; g.I.QD=function(){this.WE.QD()}; g.I.Zz=function(){this.callback&&this.callback(this,this.state)}; g.I.OH=function(){return this.WE.OH()}; g.I.dispose=function(){B4.prototype.dispose.call(this);this.WE.dispose();var p;(p=this.eI)==null||p.dispose();this.policy.h7||this.Xd()}; g.I.Xd=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.I.GF=function(){if(!this.Q5().length)return[];this.Ob=!0;return this.B5.GF()}; g.I.Vs=function(){if(this.state<1)return!1;if(this.B5&&this.B5.gk.length)return!0;var p;return((p=this.xhr)==null?0:p.CZ())?!0:!1}; g.I.Q5=function(){this.OR(!1);return this.B5?this.B5.Q5():[]}; g.I.OR=function(p){try{if(p||this.xhr.WF()&&this.xhr.CZ()&&!DV(this.WE,this.xhr)&&!this.Xa)this.B5||(this.B5=new Yj(this.policy,this.info.eA)),this.xhr.CZ()&&(this.A3?this.A3.feed(this.xhr.H7()):hP(this.B5,this.xhr.H7(),p&&!this.xhr.CZ()))}catch(x){this.A3?kXo(this,x):g.Hp(x)}}; g.I.Ku=function(p,x){switch(p){case 21:p=x.split(1).vM;DNJ(this,p);break;case 22:this.YQ=!0;hP(this.B5,new F_([]),!0);break;case 43:if(p=Mm(new lI(x),1))this.info.u9(this.wH,p),this.BS=!0;break;case 45:x=bH(new lI(x));p=x.sY;x=x.OY;p&&x&&(this.qR=p/x);break;case 44:this.lM=Zjg(new lI(x));var a,v,c;!this.timing.Zt&&((a=this.lM)==null?void 0:a.action)===4&&((v=this.lM)==null?0:(c=v.BR)==null?0:c.TV)&&(this.TV=this.lM.BR.TV);break;case 53:this.policy.RA&&(p=EeT(new lI(x)).kd)&&(this.eI||(this.kd=p,this.eI= new g.AW(this.zb,p,this)),this.eI.start());break;case 60:this.jp=d9(new lI(x));break;case 58:if(p=LjI(new lI(x)))this.qC=p,p.qC===3&&(this.xX=!0)}}; g.I.g$=function(p,x,a,v){a||this.timing.g$(v);if(p!==21)return!1;if(p=this.policy.r4)if(p*=this.info.eA[0].U.info.y6,x.totalLength+a!==v&&x.totalLength0)return!1;if(!this.xhr.WF())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.A3)var p=!this.info.j;else this.xhr.HI()?p=!1:(p=this.xhr.getResponseHeader("content-type"),p=p==="audio/mp4"||p==="video/mp4"||p==="video/webm");if(!p)return!1;if(isNaN(this.info.JS)){p=this.xhr.getResponseHeader("x-head-seqnum");var x=this.timing.policy.V?1:0;if(!p)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(p)>this.info.eA[0].i$+x)return!1}return!0}; g.I.gW=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.I.yh=function(){this.xhr&&(this.Au=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Au}; g.I.oX=function(){this.xhr&&(this.Jm=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Jm}; g.I.AS=function(){return this.WE.AS()}; g.I.zb=function(){if(!this.b$()&&this.xhr){this.Bs="heartbeat";var p=this.WE;p.U+=2;this.Zz()}};g.M(Cs,c4);g.I=Cs.prototype;g.I.z_=function(p,x){var a=(p-this.S)/1E3,v=x-this.j;this.Z>0?v>0&&(this.O7&&(a>.2||v<1024?(this.B+=a,a>.2&&T0I(this,.05,v)):T0I(this,a,v)),this.hG&&(this.V6+=v,this.tG+=a)):x>this.policy.U&&this.BL(p,x);c4.prototype.z_.call(this,p,x)}; g.I.C6=function(p,x){JP(this,p,x);this.z_(p,x);this.O7&&(x=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.Z>0&&w5(this.PE,this.V6,this.B),p=(p-this.U)/1E3||.01,this.policy.Y&&!(this.Z>0)||z8(this.PE,p,this.j,x,!1))}; g.I.pg=function(p){JP(this,p,this.C);var x=(p-this.S)/1E3;y_(this.PE,x,0);this.uy(x,0);!this.O7&&this.Z>0||(x=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.Z>0&&(this.B+=(p-this.S)/1E3,w5(this.PE,this.V6,this.B)),z8(this.PE,(p-this.U)/1E3||.01,this.j,x,!1,!0))}; g.I.KN=function(p){p=p.No||2147483647;(p&2)!==2&&(this.hG=!1);(p&1)===1&&(this.O7=!0)}; g.I.Si=function(p){p=p.No||2147483647;(p&2)===2&&(this.hG=!1);(p&1)===1&&(this.O7=!1)}; g.I.Jd=function(){return this.Y}; g.I.iB=function(){var p=this.hG?this.now()-this.S:0;return Math.max(this.tG*1E3+p,1)}; g.I.RL=function(){return this.V6*1E3/this.iB()}; g.I.BL=function(p,x){p=p===void 0?this.V:p;x=x===void 0?this.C:x;this.Z>0||(c4.prototype.BL.call(this,p,x),x=this.PE,p=(p-this.T)/1E3,x.Y.a5(1,(this.T-this.U)/1E3),x.F5.a5(1,p))}; g.I.HC=function(p){this.gr=p}; g.I.rz=function(){var p=c4.prototype.rz.call(this);p.rbw=this.RL();p.rbe=+this.hG;p.gbe=+this.O7;p.ackt=(this.gr-this.U).toFixed();return p}; g.I.H3=function(){}; g.I.Ga=function(){return NaN}; g.I.OW=function(){return this.U+this.snapshot.delay*1E3};XY.prototype.Ku=function(p,x){switch(p){case 20:p=new lI(x);p={gb:ht(p,1),videoId:Mm(p,2),itag:ht(p,3),lmt:ht(p,4),xtags:Mm(p,5),o8:ht(p,6),Y9:jQ(p,8),KJ:ht(p,9),lj5:ht(p,10),startMs:ht(p,11),durationMs:ht(p,12),Za:ht(p,14),timeRange:W$(p,15,V_1),AZ:ht(p,16),jw:ht(p,17),clipId:Mm(p,1E3)};this.lw(p);break;case 21:this.TH(x,!1);break;case 22:this.ZB(x);break;case 31:p=U4(x,fto);this.lI(p);break;case 52:p=U4(x,ywx);this.nu(p);break;default:this.RE(p,x)}}; XY.prototype.lw=function(){}; XY.prototype.RE=function(){};g.M(iz,XY);g.I=iz.prototype; g.I.RE=function(p,x){switch(p){case 35:this.j6(x);break;case 44:this.bK(x);break;case 43:this.wB(x);break;case 53:this.ZJ(x);break;case 55:p=new lI(x);W$(p,1,OjT);W$(p,2,PrT);break;case 56:this.iK();break;case 57:this.W7(x);break;case 42:this.L6(x);break;case 45:this.wz(x);break;case 59:this.DT(x);break;case 51:this.nN(x);break;case 49:this.KN(x);break;case 50:this.Si(x);break;case 47:this.q8(x);break;case 58:this.zd(x);break;case 61:this.sS.rV.HC((0,g.WR)());break;case 66:this.LZ(x);break;case 46:this.CN(x); break;case 67:this.onSnackbarMessage(x);break;case 69:this.mp(x)}}; g.I.nN=function(p){p=new lI(p);p={faG:Da(p,1,cX),ez7:Da(p,2,cX)};this.sS.nN(p)}; g.I.DT=function(p){var x=new lI(p);p=k3(x,1);var a=k3(x,2);x=k3(x,3);this.sS.DT(p,a,x)}; g.I.wz=function(p){p=bH(new lI(p));this.sS.wz(p)}; g.I.q8=function(p){p=U4(p,ij8);this.sS.q8(p)}; g.I.L6=function(p){p=new lI(p);p={videoId:Mm(p,1),formatId:W$(p,2,cX),endTimeMs:ht(p,3),Oq$:ht(p,4),mimeType:Mm(p,5),z9:W$(p,6,UIo),indexRange:W$(p,7,UIo),Og:W$(p,8,HjT)};this.sS.L6(p)}; g.I.W7=function(p){p=PrT(new lI(p));this.sS.W7(p)}; g.I.iK=function(){this.sS.iK()}; g.I.j6=function(p){p=Cr1(new lI(p));this.sS.j6(p)}; g.I.ZJ=function(p){p=EeT(new lI(p));this.sS.ZJ(p)}; g.I.bK=function(p){p=Zjg(new lI(p));this.sS.bK(p)}; g.I.wB=function(p){p={redirectUrl:Mm(new lI(p),1)};this.sS.wB(p)}; g.I.TH=function(p){var x=c$(p,0);if(p.totalLength!==1){p=p.split(1).vM;var a=this.Z[x]||null;a&&gv(this.sS.ov,x,a,p)}}; g.I.ZB=function(p){p=c$(p,0);var x=this.Z[p]||null;x&&this.sS.ZB(p,x)}; g.I.nu=function(p){this.sS.nu(p)}; g.I.lw=function(p){var x=p.gb,a=p.Y9,v=p.o8,c=p.jw,J=p.AZ,R=p.KJ,d=p.startMs,b=p.durationMs,r=p.timeRange,B=p.Za,l=p.clipId,L=O$(p);p=H$O.has(Tl[""+p.itag]);this.Z[x]=L;this.sS.EG(L,p,{gb:x,Y9:!!a,o8:v!=null?v:-1,KJ:R!=null?R:-1,startMs:d!=null?d:-1,durationMs:b!=null?b:-1,Za:B,jw:c,AZ:J,clipId:l,timeRange:r})}; g.I.KN=function(p){p={No:ht(new lI(p),1)};this.sS.KN(p)}; g.I.Si=function(p){p={No:ht(new lI(p),1)};this.sS.Si(p)}; g.I.lI=function(p){this.sS.lI(p)}; g.I.zd=function(p){p=LjI(new lI(p));this.sS.zd(p)}; g.I.LZ=function(p){p={MK:W$(new lI(p),1,zCQ)};this.sS.LZ(p)}; g.I.onSnackbarMessage=function(p){p=ht(new lI(p),1);this.sS.onSnackbarMessage(p)}; g.I.mp=function(p){p={Pz:Da(new lI(p),1,DIJ)};this.sS.mp(p)}; g.I.CN=function(p){p=new lI(p);p={reloadPlaybackParams:W$(p,1,lt1),lQ:jQ(p,2)};this.sS.CN(p)};g.M(o5,g.y);g.I=o5.prototype;g.I.z1=function(){return Array.from(this.tj.keys())}; g.I.sV=function(p){p=this.tj.get(p);var x=p.gk;p.gY+=x.totalLength;p.gk=new F_;return x}; g.I.TC=function(p){return this.tj.get(p).TC}; g.I.qU=function(p){return this.tj.get(p).qU}; g.I.EG=function(p,x,a){this.tj.get(p)||C5_(this,p,x);x=this.tj.get(p);this.nI?(p=i01(this,p,a),Xfx(this,a.gb,x,p)):(a.Y9?x.dn=a.Za:x.zj.push(a),x.JA.push(a))}; g.I.Yd=function(p){var x;return((x=this.tj.get(p))==null?void 0:x.eA)||[]}; g.I.iM=function(){for(var p=g.k(this.tj.values()),x=p.next();!x.done;x=p.next())if(x=x.value,x.QR){if(x.onProgress)x.onProgress();x.QR=!1}}; g.I.ZB=function(p,x){this.logger.debug(function(){return"[onMediaEnd] formatId: "+x}); var a=this.tj.get(x);tP?a&&!a.TC&&(a.M1.get(p)?a.M1.get(p).K_=!0:a.M1.set(p,{data:new F_,bF:0,K_:!0}),a.qU=!0):a&&!a.qU&&(a.qU=!0)}; g.I.GF=function(p){if(tP){var x=this.tj.get(p);if(x)for(var a=g.k(x.M1),v=a.next();!v.done;v=a.next()){var c=g.k(v.value);v=c.next().value;c=c.next().value;var J=x.QM.get(v);if(u5(J[0])){if(!c.K_)continue;var R=c.data,d=0,b=[];J=g.k(J);for(var r=J.next();!r.done;r=J.next()){r=r.value;var B=r.j,l=x3(R,d,B);d+=B;b.push(new jB(r,l))}x.kX.push.apply(x.kX,g.lf(b))}else if(c.data.totalLength>0||!J[0].range&&c.K_)R=void 0,d=J[0],b=c.bF,J=c.data,d.range||(R=c.K_),R=new jB(HiQ(d,d.Z+b,J.totalLength,R),J), c.bF+=R.info.j,x.kX.push(R);x.M1.get(v).data=new F_;c.K_&&x.M1.delete(v)}p=this.tj.get(p);if(!p)return[];x=p.kX;p.kX=[];a=g.k(x);for(v=a.next();!v.done;v=a.next())p.gY+=v.value.info.j;return x||[]}a=(x=this.tj.get(p))==null?void 0:x.B5;if(!a)return[];this.OR(p,a);return a.GF()}; g.I.Vs=function(p){if(tP)return y5(this,p);var x,a,v;return!!((a=(x=this.tj.get(p))==null?void 0:x.B5)==null?0:(v=a.Q5())==null?0:v.length)||y5(this,p)}; g.I.OR=function(p,x){for(;y5(this,p);){var a=this.sV(p);var v=p;v=this.tj.get(v).TC&&!Ex(this,v);hP(x,a,v&&foT(this,p))}}; g.I.PO=function(){g.y.prototype.PO.call(this);for(var p=g.k(this.tj.keys()),x=p.next();!x.done;x=p.next())zP(this,x.value);var a;if((a=this.Lv)==null?0:a.yH)for(p=g.k(this.tj.values()),x=p.next();!x.done;x=p.next())x=x.value,x.M1.clear(),x.QM.clear(),x.kX.length=0,x.eA.length=0,x.JA.length=0,x.zj.length=0;this.tj.clear()}; var tP=!1;g.M(ZV,g.y);g.I=ZV.prototype;g.I.Ns=function(){!this.b$()&&this.xhr&&(this.OR(!1),uG(this.sS,this))}; g.I.Zq=function(){}; g.I.gK=function(){if(!this.b$()&&this.xhr){var p=this.sb();p===5?W4(this.WE):this.XX(p);this.WE.Z.stop();var x;(x=this.P_)==null||x.stop()}}; g.I.sb=function(){var p="";DV(this.WE,this.xhr)&&(p=V3b(this.WE,this.xhr));if(p)return this.info.JX.u9(this.wH,p),3;this.OR(!0);if(kj(this.WE,this.xhr.status,this.xhr.Xz(),this.info.bG(),this.xX))return 5;if(this.JP)return 3;e8Q(this.WE,this.xhr.w_(),0,this.bG());this.policy.FX&&lbx(this.sS);return 4}; g.I.OR=function(p){var x=this.xhr;if((p||!DV(this.WE,this.xhr))&&x.CZ()){p=x.H7();var a=p.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+a}); this.A3.feed(p)}}; g.I.Ku=function(p,x){this.xhr.Kj()&&p===21&&Eoz(this);this.Iu.Ku(p,x)}; g.I.g$=function(p,x,a,v){a||(this.rV.g$(v),this.policy.Ry&&p===21&&Eoz(this));if(p!==21)return!1;this.rV.Zt=!0;p=x.totalLength;a||(this.X2=c$(x,0),x=x.split(1).vM);var c=this.policy.A0,J=this.Iu.Z[this.X2],R=this.nI.j.get(J);if(c&&R&&(c*=R.info.y6,p+a!==v&&p0){this.policy.kC&&this.WE.Z.stop();p=this.rV.iB();x=this.rV.RL();var a=y$b(this,p);if(!(x>a.fF||a.IE>0&&this.info.bN()>a.IE)){this.fQ=(0,g.WR)();var v;(v=this.P_)==null||v.stop();this.policy.FX&&(v=this.sS,p={G_:Math.round(x*p/1E3),oI:p},v.policy.FX&&(v.F5=p,v.Wj++));this.QD()}}}}; g.I.QD=function(){this.WE.QD()}; g.I.bK=function(p){this.sS.bK(p,this.Jc())}; g.I.wB=function(p){this.JP=!0;this.info.JX.u9(this.wH,p.redirectUrl)}; g.I.KN=function(p){this.rV instanceof Cs&&this.rV.KN(p)}; g.I.Si=function(p){this.rV instanceof Cs&&this.rV.Si(p)}; g.I.L6=function(p){var x=p.formatId,a=O$({itag:x.itag,lmt:x.lmt,xtags:x.xtags}),v,c,J=new A$(((v=p.z9)==null?void 0:v.first)||0,((c=p.z9)==null?void 0:c.CM)||0),R,d;v=new A$(((R=p.indexRange)==null?void 0:R.first)||0,((d=p.indexRange)==null?void 0:d.CM)||0);this.nI.j.get(a)||(a=p.Og||{},a.mimeType=p.mimeType,a.itag=x.itag,a.lastModified=""+(x.lmt||0),a.xtags=x.xtags,p=this.nI,x=El(""),a=zR(a,null),fA(p,new Qi(x,a,J,v)))}; g.I.wz=function(p){this.sS.wz(p,this.Jc())}; g.I.onSnackbarMessage=function(p){if(this.policy.mM)this.sS.onSnackbarMessage(p)}; g.I.mp=function(p){this.policy.ow&&this.sS.mp(p,this.Jc())}; g.I.lI=function(p){this.VW=p;this.vV=(0,g.WR)();this.sS.lI(p)}; g.I.DT=function(p,x,a){this.sS.DT(p,x,a)}; g.I.W7=function(p){p.scope===2&&(this.Pg=p);this.sS.W7(p)}; g.I.iK=function(){this.Pt=!0;this.sS.iK()}; g.I.nN=function(p){this.policy.Ii&&this.sS.nN(p)}; g.I.q8=function(p){this.sS.q8(p,this.Jc())}; g.I.zd=function(p){p.qC===3&&(this.xX=!0);this.sS.zd(p)}; g.I.LZ=function(p){this.sS.LZ(p)}; g.I.CN=function(p){this.sS.CN(p)}; g.I.canRetry=function(){this.b$();return this.WE.canRetry(!1)}; g.I.dispose=function(){if(!this.b$()){g.y.prototype.dispose.call(this);this.WE.dispose();var p;(p=this.P_)==null||p.dispose();this.XX(-1);this.Xd()}}; g.I.XX=function(p){this.state=p;uG(this.sS,this)}; g.I.bG=function(){return this.info.bG()}; g.I.Tx=function(){return this.Pt}; g.I.A4=function(){return this.Pg}; g.I.EG=function(p,x,a){a.clipId&&(this.clipId=a.clipId);this.policy.Z&&!x&&(this.xH=a.KJ);this.ov.EG(p,x,a);if(this.policy.l9&&this.VW&&this.rV instanceof Ks){var v=this.VW.h5;this.rV.EG(a.durationMs/1E3,x,v>0&&a.KJ+1>=v)}this.ov.tj.get(p).c6=!0}; g.I.ZB=function(p,x){this.ov.ZB(p,x)}; g.I.nu=function(p){this.requestIdentifier=p}; g.I.GF=function(p){return this.ov.GF(p)}; g.I.Yd=function(p){return this.ov.Yd(p)}; g.I.Vs=function(p){return this.ov.Vs(p)}; g.I.z1=function(){return this.ov.z1()}; g.I.qA=function(){return 1}; g.I.Jc=function(){return this.rV.requestNumber}; g.I.vp=function(){return this.requestIdentifier}; g.I.Wh=function(){return this.wH.Wh()}; g.I.qS=function(){this.Xd()}; g.I.Xd=function(){this.rV.deactivate();var p;(p=this.xhr)==null||p.abort()}; g.I.isComplete=function(){return this.state>=3}; g.I.uq=function(){return this.state===3}; g.I.h3=function(){return this.state===5}; g.I.SF=function(){return this.state===4}; g.I.Nk=function(){return this.isComplete()}; g.I.Kn=function(){return this.state>=1}; g.I.OH=function(){return this.policy.ol?this.WE.OH():0}; g.I.Zz=function(){this.policy.ol&&uG(this.sS,this)}; g.I.I4=function(){return vO1(this.info)}; g.I.AS=function(){return this.WE.AS()}; g.I.nD=function(){var p=F7z(this.WE);Object.assign(p,JCg(this.info));p.req="sabr";p.rn=this.Jc();var x;if((x=this.xhr)==null?0:x.status)p.rc=this.policy.Hy?this.xhr.status:this.xhr.status.toString();var a;(x=(a=this.xhr)==null?void 0:a.Z9())&&(p.msg=x);this.fQ&&(a=y$b(this,this.fQ-this.rV.Jd()),p.letm=a.x3,p.mrbps=a.fF,p.mram=a.IE);return p};gog.prototype.tick=function(p,x){this.ticks[p]=x?window.performance.timing.navigationStart+x:(0,g.WR)()};g.M(Ox,g.Fx);g.I=Ox.prototype; g.I.Cg=function(p,x,a,v){if(this.policy.fD&&this.policy.Z){var c=p.U8||null;c?($GJ(this,p.i$,ns(this,p.startTime,p.i$),{U8:c,i$:p.i$,SI:!!x,hU:a},this.j),v&&this.j&&this.j.Md(p.i$,p.startTime,this.Z,(x==null?void 0:x.U)||[],(x==null?void 0:x.Z)||[],(x==null?void 0:x.B)||[],a,(x==null?void 0:x.Y7)||0,(x==null?void 0:x.j)||void 0)):this.Z===1&&AP(this,5,"noad")}else{var J=!1;this.policy.Z&&(J=a?this.u$===p.i$:this.O7===p.i$);if(this.j&&v&&!J){v=[];J=[];var R=[],d=void 0,b=0;x&&(v=x.U,J=x.Z,R=x.B,d= x.j,b=x.Y7,this.jA("sdai",{sq:p.i$,ssvicpns:v.join("."),ssvid:J.join(".")}));this.policy.Z&&(a?this.u$=p.i$:this.O7=p.i$);this.j.Md(p.i$,p.startTime,this.Z,v,J,R,a,b,d)}this.policy.Z?a&&(this.Z===1&&AP(this,5,"noad"),p.i$!==((c=this.U)==null?void 0:c.i$)&&(FS1(this,p,x,a),isNaN(p.startTime)||pzg(this,p.i$,ns(this,p.startTime,p.i$),!!x,this.j))):a&&FS1(this,p,x)}}; g.I.oE=function(p,x,a){var v=this.videoTrack.U.index.Q8()<=x;this.U={U8:p,i$:x,SI:a};v&&No(this,p,x)}; g.I.uE=function(){this.j&&this.j.uE()}; g.I.jA=function(p,x,a){(p!=="sdai"||this.policy.Ya||(a===void 0?0:a))&&this.loader.jA(p,x)}; g.I.RV=function(p,x){var a=this.videoTrack.U.index.sN(p);if(a>=0){var v;var c=((v=x.DU.nH(a,2))==null?void 0:v.dS)||"";if(this.policy.Z||c)return x.OV(p,a),P4(this.loader,p,p,a),this.jA("sdai",{cmskpad:1,t:p.toFixed(3),sq:a}),!0}this.jA("sdai",{cmskpad:0,t:p.toFixed(3),sq:a});return!1};g.I=ckb.prototype;g.I.Pe=function(p,x,a){p=p||this.U;this.Z.has(p)||(this.jA("sldai",{setadconfig:"noentry",cid:p}),this.Z.set(p,{event:"unknown",startTimeSecs:0,uc:0,xZ:[],e8:Date.now()}));var v=this.Z.get(p);v?(v.x7=6,v.xZ.push(a),v.hx=x):this.jA("sldai",{setadconfig:"notfound",cid:p})}; g.I.mp=function(p,x,a,v){var c;if(!((((c=p.Pz)==null?void 0:c.length)||0)<=0)&&(p=p.Pz[0],p.U8)){var J;c=-(((J=p.U8)==null?void 0:J.MY)||0);p.timeRange&&(c+=(p.timeRange.startTicks||0)/(p.timeRange.timescale||1)-x);var R,d,b,r,B;x=new vf(c,((R=p.U8)==null?void 0:R.xG6)||0,((d=p.U8)==null?void 0:d.N5)||"",((b=p.U8)==null?void 0:b.identifier)||"",RrT(((r=p.U8)==null?void 0:r.event)||0),(((B=p.U8)==null?void 0:B.MY)||0)*1E3);Jk8(this,x,a,v)}}; g.I.LR=function(p,x){p!==void 0&&this.z2(p);if(this.U&&(p=this.Z.get(this.U),p!=null&&p.hx)){var a={VK:p.xZ,adsConfig:Q_(p.hx||"")||void 0,cuepointId:this.U};p.cg&&(a.TA=p.cg);x&&(a.YB=o0(x.split(";")[0]),a.xB=x.split(";")[1]||"");p.x7&&(a.x7=p.x7);return a}}; g.I.OV=function(p,x){this.z2(p);var a=this.Z.get(this.U);a?(this.jA("ssskipad",{cid:this.U,sn:x,mt:p.toFixed(3)}),a.cg=x):this.jA("ssskipadfail",{cid:this.U,sn:x,mt:p.toFixed(3)})}; g.I.I1=function(){for(var p=g.k(this.Z.values()),x=p.next();!x.done;x=p.next())x.value.cg=NaN}; g.I.z2=function(p,x){x&&(this.j=x);if(this.U&&(x=this.Z.get(this.U))&&x.startTimeSecs<=p&&p<=x.startTimeSecs+x.uc)return;this.U="";x=g.k(this.Z.entries());for(var a=x.next();!a.done;a=x.next()){var v=g.k(a.value);a=v.next().value;v=v.next().value;var c=void 0,J=void 0,R=void 0;if(((c=v)==null?void 0:c.startTimeSecs)<=p&&p<=((J=v)==null?void 0:J.startTimeSecs)+((R=v)==null?void 0:R.uc)){this.U=a;break}}};g.M(pR,g.y);pR.prototype.dK=function(p,x,a){a=a===void 0?{}:a;this.policy.IM=Vi(p,a,this.B,x===void 0?!1:x)};c2.prototype.uS=function(p){var x=this;if(this.policy.xj){var a=new Set(p);a.size===this.F5.size&&[].concat(g.lf(a)).every(function(v){return x.F5.has(v)})||(this.loader.jA("lwnmow",{itagDenylist:[].concat(g.lf(p)).join(",")}),this.loader.RI(!!a.size),this.T=-1,this.F5=a,Jl(this,this.U),this.V6=!0)}}; c2.prototype.dK=function(p,x,a){a=a===void 0?{}:a;var v=this.policy.IM;this.C.dK(p,x===void 0?!1:x,a);if(v!==this.policy.IM){Jl(this,this.U);R$(this);var c,J;v>this.policy.IM&&((c=this.j)==null?0:Ci(c.info))&&((J=this.nextVideo)==null||!Ci(J.info))&&(this.Zt=!0)}};rV.prototype.f7=function(p){this.timestampOffset=p;this.flush()}; rV.prototype.flush=function(){if(this.U.pos>0){var p={a:this.track.K3(),u:this.U.E6(),pd:Math.round(this.B),ad:Math.round(this.j)},x=this.Z;if(x){var a=x.U.info;p.itag=a.itag;a.U&&(p.xtags=a.U);p.sq=x.i$;p.st=x.startTime;p.sd=x.duration;this.track.policy.uZ&&(p.si=x.jV());x.B&&(p.esl=x.Z+x.j);x.Vf()&&(p.eos=1)}isNaN(this.timestampOffset)||(p.to=this.timestampOffset);var v;if(x=(v=this.track.MZ)==null?void 0:v.cX({})){for(var c in x)this.S[c]!==x[c]&&(p["sb_"+c]=x[c]);this.S=x}this.track.jA("sbu", p);this.U.reset();this.buffered=[];this.C=this.j=this.B=0;this.timestampOffset=this.Z=void 0}};lQ.prototype.dispose=function(){this.pI=!0}; lQ.prototype.b$=function(){return this.pI}; g.M(M9,Error);D_.prototype.skip=function(p){this.offset+=p}; D_.prototype.Py=function(){return this.offset};g.I=P4N.prototype;g.I.sW=function(){return this.Z}; g.I.Ov=function(){return this.Z.length?this.Z[this.Z.length-1]:null}; g.I.Nr=function(){this.Z=[];mR(this);Tz(this)}; g.I.sV=function(p){this.tG=this.Z.shift().info;p.info.equals(this.tG)}; g.I.Yd=function(){return g.IT(this.Z,function(p){return p.info})}; g.I.K3=function(){return!!this.C.info.audio}; g.I.isDrm=function(){return!!this.C.info.F1}; g.I.getDuration=function(){return this.C.index.Pa()};g.M(nI,B4);g.I=nI.prototype;g.I.onStateChange=function(){this.b$()&&(wv(this.ov,this.formatId),this.U.dispose())}; g.I.nD=function(){var p=S$g(this.ov,this.formatId),x;var a=((x=this.ov.tj.get(this.formatId))==null?void 0:x.bytesReceived)||0;var v;x=((v=this.ov.tj.get(this.formatId))==null?void 0:v.gY)||0;return{expected:p,received:a,bytesShifted:x,sliceLength:Ex(this.ov,this.formatId),isAnyMediaEndReceived:this.ov.qU(this.formatId)}}; g.I.N3=function(){return 0}; g.I.XF=function(){return!0}; g.I.GF=function(){return this.ov.GF(this.formatId)}; g.I.Q5=function(){return[]}; g.I.Vs=function(){return this.ov.Vs(this.formatId)}; g.I.AS=function(){return this.lastError}; g.I.OH=function(){return 0};g.M(Xh,g.y);g.I=Xh.prototype;g.I.K3=function(){return!!this.U.info.audio}; g.I.Ov=function(){return this.B.Ov()}; g.I.sV=function(p){this.B.sV(p);var x;(x=this.Y)!=null&&(x.C.add(p.info.i$),x.U=h8N(x,x.ES,x.Dh,p,x.U),x.j=p,x.S=(0,g.WR)());this.y6=Math.max(this.y6,p.info.U.info.y6||0)}; g.I.getDuration=function(){return this.U.index.Pa()}; g.I.Nr=function(){ua(this);this.B.Nr()}; g.I.YU=function(){return this.B}; g.I.isRequestPending=function(p){return this.j.length?p===this.j[this.j.length-1].info.eA[0].i$:!1}; g.I.f7=function(p){var x;(x=this.Y)==null||x.f7(p);var a;(a=this.T)==null||a.f7(p)}; g.I.jA=function(p,x){this.loader.jA(p,x)}; g.I.IT=function(){return this.loader.IT()}; g.I.dispose=function(){var p;(p=this.T)==null||p.flush();g.y.prototype.dispose.call(this)};g.M(xm,g.y);xm.prototype.j=function(){this.Z++>15||(this.U=!this.U,new tFf(this.loader,this.policy,this.PE,this.JX,this.U),this.delay.start())}; g.I=tFf.prototype;g.I.Zq=function(){}; g.I.Ns=function(){}; g.I.gK=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.w_()===this.size)this.loader.jA("rqs",this.getInfo());else{var p="net.connect";this.xhr.status>200?p="net.badstatus":this.xhr.WF()&&(p="net.closed");this.onError(p)}}; g.I.onError=function(p){var x=this;this.loader.handleError(p,this.getInfo());g1("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(a){x.loader.jA("pathprobe",a)},function(a){x.loader.handleError(a.errorCode,a.details)})}; g.I.getInfo=function(){var p=this.timing.rz();p.shost=OY(this.location.gM);p.pb=this.size;return p};g.M($m,g.y); $m.prototype.V=function(p,x){if(p.V){this.nI.isLive?(p=this.nI.Bm&&this.nI.B?p.U.MP(this.nI.Bm,!1):p.U.PF(Infinity),p.JS=this.JS):p=p.U.MP(0,!1);if(this.Zt){var a=this.Zt;p.JS===0&&(p.C=a.Y)}else p.C=this.T;return p}a=p.Z;if(!a.U.C3())return a.U.ue()?(p=ON(this.C,p.U.info.y6,x.U.info.y6,0),p=a.U.nX(a,p)):p=a.U.Jy(a),p;var v=a.S-this.loader.getCurrentTime(),c=!a.range||a.j===0&&a.Z===0?0:a.range.length-(a.Z+a.j),J=a.U;this.GJ(p,v)&&c===0&&(this.nI.isManifestless?J=p.U:(J=a.startTime+xaT,a.j&&(J+=a.duration), ps(p,J),a=p.Z,J=a.U));J.ue()?(c=this.j,x=ON(this.C,J.info.y6,x.U.info.y6,v,c.B.length>0&&c.Y===0&&this.loader.ey),v=q9(p),p=a.U.nX(a,x),(x=p.j)&&p.eA.length>1&&(v||p.JX.j||p.eA[0].U!==a.U?p=a.U.nX(a,p.eA[0].j):(v=p.eA[p.eA.length-1],J=v.j/x,!v.B&&J<.4&&(p=a.U.nX(a,x-v.j))))):(a.i$<0&&(x=xU(a),x.pr=""+p.j.length,this.loader.isSeeking()&&(x.sk="1"),x.snss=a.V,this.loader.jA("nosq",x)),p=J.Jy(a));if(this.policy.u$)for(a=g.k(p.eA),x=a.next();!x.done;x=a.next())x.value.type=6;return p}; $m.prototype.GJ=function(p,x){if(!q9(p)||!p.U.C3())return!1;var a=this.j.V6||MFf(p)||x<=this.policy.Wi||this.j.Zt;this.logger.debug(function(){return"ready to adapt: "+a+", upgrade pending: "+MFf(p)+", health: "+x}); return a}; $m.prototype.PO=function(){g.y.prototype.PO.call(this)}; var xaT=2/24;g.M(rl,g.y);rl.prototype.Ft=function(p,x,a){var v;var c=((v=this.Z)==null?void 0:v.reason)==="m"?"m":this.Z&&nAf(this,this.Z)?this.Z.reason:"a";this.loader.Ft(new FY(p,c,a));Kl(this.loader,x,p,!0)}; rl.prototype.u6=function(p,x){for(var a=g.k(this.u$),v=a.next();!v.done;v=a.next())if(v.value.id===p)return this.C=this.nI.U[p],mI(this.Lv)&&(this.Zt=!0),p=new FY(this.C,x?"t":"m"),x&&(this.V=!0),p;this.j=[];return null}; rl.prototype.dK=function(p,x,a){a=a===void 0?{}:a;this.U.dK(p,x===void 0?!1:x,a)};lG.prototype.setData=function(p,x,a){var v=this;a=a===void 0?{}:a;if(x==null?0:x.OS)this.Ma=wf1(this,x,a),p.Af=this.JX.Af();if(this.bG())return!0;this.data=p;this.U=awx(p,function(c,J){var R;(R=v.sS)==null||R.w3(c,J)},x==null?void 0:x.j); if(!this.U)return!1;this.Z=g.GY(this.U,jUI);return!0}; lG.prototype.bG=function(){return this.requestType===1}; lG.prototype.bN=function(){var p;return((p=this.sS)==null?void 0:p.bN())||0}; lG.prototype.isDecorated=function(){var p;return!((p=this.data)==null||!p.XS)};Rbf.prototype.encrypt=function(p){(0,g.WR)();return this.U.U?lwo(this,p,this.iv):(new g.vT(this.U.Z)).encrypt(p,this.iv)}; Rbf.prototype.decrypt=function(p,x){(0,g.WR)();return this.U.U?lwo(this,p,x):(new g.vT(this.U.Z)).decrypt(p,x)};g.M(Ll,g.y);Ll.prototype.j=function(p,x){if(x){x=x instanceof g.ZW?x:Ym(this,x);var a;((a=this.U.get(p))==null?void 0:OY(a.location))!==OY(x)&&this.U.set(p,new MM_(x,p))}else this.U.delete(p)}; Ll.prototype.load=function(){var p=this,x,a,v,c,J,R,d,b,r,B;return g.t(function(l){switch(l.Z){case 1:x=p.U.get(0);g.DJ(l,2);var L;if(L=x&&!p.Z)L=OY(x.location),L=p.Z===Mo(L);if(L){l.Ia(4);break}return g.C(l,jfQ(p,p.Z?2:0),5);case 5:if(a=l.U)p.j(0,a),AS(a)&&p.j(1,PX(a));case 4:g.T1(l,3);break;case 2:v=g.SI(l);g.Hp(v);if(!p.Z){l.Ia(3);break}p.Z=!1;return g.C(l,p.load(),7);case 7:return l.return();case 3:if(!p.z4.experiments.cO("html5_onesie_probe_ec_hosts")){l.Ia(0);break}g.DJ(l,9);c=p;J=c.j;R=3;return g.C(l, jfQ(p,1),11);case 11:return J.call(c,R,l.U),d=p,b=d.j,r=4,g.C(l,jfQ(p,2),12);case 12:b.call(d,r,l.U);g.T1(l,0);break;case 9:B=g.SI(l),g.Hp(B),g.k1(l)}})}; Ll.prototype.V=function(){var p=this,x,a;return g.t(function(v){g.Pk(p.Y);x=g.e_(p.z4.experiments,"html5_onesie_prewarm_max_lact_ms");if(hJ()>=x)return v.return();(a=p.U.get(0))&&hbb(p,a);g.k1(v)})}; var LVg={OJg:0,vbG:1,CeA:2,mh7:3,PH6:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};WV_.prototype.decrypt=function(p){var x=this,a,v,c,J,R,d;return g.t(function(b){switch(b.Z){case 1:if(x.U.length&&!x.U[0].isEncrypted)return b.return();x.Z=!0;x.hm.mF("omd_s");a=new Uint8Array(16);aD()?v=new g.cT(p):c=new g.vT(p);case 2:if(!x.U.length||!x.U[0].isEncrypted){b.Ia(4);break}J=x.U.shift();if(!v){R=c.decrypt(s4(J.buffer),a);b.Ia(5);break}return g.C(b,v.decrypt(s4(J.buffer),a),6);case 6:R=b.U;case 5:d=R;for(var r=0;r=4)){var x=Or(this),a=this.xhr;x.rc=a.status;p&&(x.ab=!0);if(a.Z9()){var v="onesie.net";x.msg=a.Z9()}else a.status>=400?v="onesie.net.badstatus":a.Xz()?this.Ad||(v="onesie.response.noplayerresponse"):v=a.status===204?"onesie.net.nocontent":"onesie.net.connect";v?this.fail(new g.dD(v,x)):(this.mF("or_fs"),this.rV.C6((0,g.WR)(),a.w_(),0),this.XX(4),this.By&&this.jA("rqs",x));this.By&&this.jA("ombre", "ok."+ +!v);this.JL=!1;Gu(this);tMg(this.hm);if(!this.Ui){this.Xm.stop();var c;(c=this.Kg)==null||c.stop()}var J;if(p=(J=this.GO)==null?void 0:Iwf(J))for(J=0;J1E3){var p;(p=this.rV)==null||p.pg((0,g.WR)());p=Or(this);if(this.z4.qZ()&&this.xhr instanceof lz){var x=this.xhr;p.xrs=x.xhr.readyState;p.xpb=x.U.totalLength;p.xdc=x.B}this.fail(new g.dD("net.timeout",p))}}else(0,g.WR)()-this.rV.U>1E4&&((x=this.rV)==null||x.pg((0,g.WR)()),this.wc());this.isComplete()||this.z6.start()}}; g.I.wc=function(){this.logger.info("Onesie request timed out");this.JL=!1;if(!Gu(this)){var p=Or(this);p.timeout="1";this.fail(new g.dD("onesie.request",p))}}; g.I.fail=function(p){var x=this;p=rD(p);this.fH?this.U7.zn(p):(this.VQ.reject(p),this.fH=!0);tMg(this.hm);this.Ui||this.Xm.stop();this.mF("or_fe");var a,v;(a=this.GO)==null||(v=Iwf(a))==null||v.forEach(function(c){x.jA("pathprobe",c)}); this.XX(5);this.dispose()}; g.I.isComplete=function(){return this.state>=3}; g.I.SF=function(){return this.state===4}; g.I.Nk=function(p){var x,a;return this.isComplete()||!!((x=this.P5)==null?0:(a=x.get(p))==null?0:a.U)}; g.I.uq=function(){return!1}; g.I.h3=function(){return this.state===5}; g.I.notifySubscribers=function(p){for(var x=0;x102400&&!this.Om&&(this.mF("or100k"),this.Om=!0);if(p.CZ()){var x=p.H7(),a=x.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+a}); this.By&&this.jA("ombrss","len."+a);this.A3.feed(x)}if(this.P5)for(var v=g.k(this.P5.keys()),c=v.next();!c.done;c=v.next()){var J=c.value;p=void 0;(p=this.P5.get(J))==null||p.iM();this.notifySubscribers(J)}}catch(R){this.fail(R)}}; g.I.Jc=function(){return this.rV.requestNumber}; g.I.vp=function(p){return this.kc.get(p)};g.M(p__,g.y);g.I=p__.prototype;g.I.d$=function(p,x){this.pI=void 0;lbx(this);BYz(this,p,x)}; g.I.xS=function(p){if(this.U.length===0)return!1;var x=this.U[0];return x instanceof Ny?p===this.loader.getCurrentTime()*1E3:!(x instanceof ZV&&cCx(x.info))&&Math.abs(x.I4()-p)<50}; g.I.j6=function(p){this.Z=p;this.pI=(0,g.WR)()+(p.backoffTimeMs||0)}; g.I.bK=function(p,x){if(p.action===void 0){var a=this.U7.Jp();a!==void 0&&this.loader.AY(a)}else if(p.action!==0||!this.tG)if(p.action===0&&this.policy.MD&&(p.action=2),p.rF==="sabr.malformed_config"&&this.policy.E5>0&&this.gr++0&&(p.action=2),a={},a.reason=p.rF,a.action=p.action,a.rn=x,p.action){case 1:this.policy.Z&&this.Y&&this.Y.dY(void 0, void 0,a);break;case 0:this.tG=!0;this.videoData.O8()&&this.policy.Z&&this.Y&&this.Y.dY(void 0,void 0,a,!1);this.loader.v2(a);break;case 2:h$x(p.rF)!=="sabr.config"&&delete a.reason;this.loader.handleError(h$x(p.rF),a,1);break;case 3:this.policy.OS&&((p=this.nI.Y)!=null&&(p.Y=!0),this.loader.handleError("sabr.hostfallback",a))}}; g.I.W7=function(p){p&&(this.loader.jA("sabrctxt",{onsbrctxt:p.type,scp:p.scope,dflt:p.sendByDefault}),p.type&&p.sendByDefault&&this.videoData.HO.add(p.type),p.scope!==2&&(p.type&&this.videoData.sabrContextUpdates.set(p.type,p),this.U7.W7(p)))}; g.I.iK=function(){}; g.I.wz=function(p,x){if(p.sY!==void 0&&p.OY){var a=p.sY/p.OY;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.Zt||this.policy.ud||this.policy.jy)this.loader.H5.U=!1;var v=this.loader.wK(a,1);this.policy.Ra&&this.policy.Z&&this.loader.z2(v,x);this.U7.getCurrentTime()!==a&&(x={Cp:"sabr_seek",XA:!0,Li:!0},p.seekSource&&(x.seekSource=p.seekSource),sx(this.loader,a+.1,x))}}; g.I.onSnackbarMessage=function(p){this.U7.publish("onSnackbarMessage",p)}; g.I.mp=function(p,x){this.policy.ow&&this.T&&this.loader.mp(p,x)}; g.I.lI=function(p){p.h5&&p.xt&&Ak(this.nI,p.h5,p.xt);this.policy.wS&&(p.BV&&p.JC&&(this.nI.wb=p.BV/p.JC),p.yP&&p.lq&&(this.nI.f0=p.yP/p.lq));P_(this.videoData)&&!this.videoData.O7&&p.xt&&this.loader.wK(p.xt,1E3);p.MH!=null&&this.U7.x4(p.MH);this.policy.rb&&p.vn&&(p=((0,g.WR)()-p.vn)/1E3,this.loader.wq.a5(1,p))}; g.I.zd=function(p){this.loader.zd(p)}; g.I.kt=function(p){return this.videoData.HO.has(p)}; g.I.DT=function(p,x,a){this.policy.j&&this.loader.jA("sabrctxtplc",{start:p?p.join("_"):"",stop:x?x.join("_"):"",discard:a?a.join("_"):""});if(p){p=g.k(p);for(var v=p.next();!v.done;v=p.next())this.videoData.HO.add(v.value)}if(x)for(x=g.k(x),p=x.next();!p.done;p=x.next())p=p.value,this.videoData.HO.has(p)&&this.videoData.HO.delete(p);if(a)for(a=g.k(a),x=a.next();!x.done;x=a.next())if(x=x.value,this.videoData.sabrContextUpdates.has(x)&&(this.videoData.sabrContextUpdates.delete(x),x===3&&(this.videoData.A0= "")),this.policy.T&&this.U.length)for(p=g.k(this.U),v=p.next();!v.done;v=p.next())if(v=v.value,!(v instanceof Ny)){var c=void 0;((c=v.Pg)==null?void 0:c.type)===x&&(v.Pg=void 0)}}; g.I.nN=function(){}; g.I.Vm=function(p){this.V=p}; g.I.Ss=function(p){this.S=p}; g.I.q8=function(p,x){pl(this.policy,p,4,x)}; g.I.LZ=function(p){if(p==null?0:p.MK)if(p=p.MK.AT){p=g.k(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,x.formatId){var a=this.nI.j.get(O$(x.formatId));a&&a.info&&(a.info.debugInfo=x.debugInfo)}}}; g.I.CN=function(p){this.U7.publish("reloadplayer",p)}; g.I.Gy=function(){return this.U7.Gy()||""}; g.I.bN=function(){var p=Gz(this.audioTrack,!0)*1E3,x=Gz(this.videoTrack,!0)*1E3;return Math.min(p,x)}; g.I.w3=function(p,x){this.loader.jA(p,x)}; g.I.qk=function(p){fFz(this.loader,MBQ(this.Ra,p))}; g.I.PO=function(){g.y.prototype.PO.call(this);this.Z=void 0;BYz(this,!0,"i");this.U=[]};DnN.prototype.V5=function(){this.isSeeking=!0;this.U===1&&Wrg(this.B);this.U===0&&this.W5.Mg("transitiondetector");this.S=!1};Cqg.prototype.Bh=function(p,x){if(this.B)return zi8(this,x);if(x=v4(p)){var a=x.U;a&&a.j&&a.U&&(p=p.j.length?p.j[0]:null)&&p.state>=2&&!p.h3()&&p.info.JS===0&&(this.B=p,this.V=a,this.Z=x.info,this.S=this.startTimeSecs=Date.now()/1E3,this.C=this.Z.startTime)}return NaN}; Cqg.prototype.clear=function(){this.Z=this.V=this.B=null;this.U=this.C=this.S=this.startTimeSecs=NaN;this.j=!1};g.M(yMx,g.y);yMx.prototype.PO=function(){ZTI(this);g.y.prototype.PO.call(this)};var GVz=/[?&]cpn=/;g.M(Fi,g.y);Fi.prototype.flush=function(){var p={};this.Z&&(p.pe=this.Z);this.U.length>0&&(p.pt=this.U.join("."));this.U=[];return p}; Fi.prototype.stop=function(){var p=this,x,a,v;return g.t(function(c){if(c.Z==1)return g.DJ(c,2),g.C(c,(x=p.B)==null?void 0:x.stop(),4);if(c.Z!=2)return(a=c.U)&&p.logTrace(a),g.T1(c,0);v=g.SI(c);p.Z=eiU(v.message);g.k1(c)})}; Fi.prototype.logTrace=function(p){this.encoder.reset();this.encoder.add(1);this.encoder.add(p.resources.length);for(var x=g.k(p.resources),a=x.next();!a.done;a=x.next()){a=a.value.replace("https://www.youtube.com/s/","");this.encoder.add(a.length);for(var v=0;v=0?p:g.sZ(this.provider),this.O7?nG$.has(this.Ai)&&(this.U.size||(this.Ai==="PL"?p>=this.Z+30:p<=this.Zt+30||p>=this.Z+1200&&p<=this.Zt+86400))&&(g.xT(this,p,"vps",[this.Ai]),this.Z=p):["PL","B","S"].indexOf(this.Ai)>-1&&(this.U.size||p>=this.Z+30)&&(g.xT(this,p,"vps",[this.Ai]),this.Z=p),this.U.size)){this.sequenceNumber===7E3&&g.Hp(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){vv(this,p);var x=this.provider.U7.uN(); x=g.k(x);for(var a=x.next();!a.done;a=x.next())a=a.value,this.jA(a.key,a.value);x=p;a=this.provider.U7.FG();var v=a.droppedVideoFrames||0,c=a.totalVideoFrames||0,J=v-this.mf,R=c&&!this.AI;v>a.totalVideoFrames||J>5E3?dho(this,"html5.badframedropcount","df."+v+";tf."+a.totalVideoFrames):(J>0||R)&&g.xT(this,x,"df",[J]);this.mf=v;this.AI=c;this.Y>0&&(g.xT(this,p,"glf",[this.Y]),this.Y=0);$a.isActive()&&(p=$a.vz(),Object.keys(p).length>0&&this.jA("profile",p));this.OS&&cv(this,"lwnmow");this.provider.z4.qZ()&& this.provider.D("html5_record_now")&&this.jA("now",{wt:(0,g.WR)()});p={};this.provider.videoData.Z&&(p.fmt=this.provider.videoData.Z.itag,(x=this.provider.videoData.B)&&x.itag!==p.fmt&&(p.afmt=x.itag));p.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(p.adcpn=this.adCpn);this.Ql&&(p.addocid=this.Ql);this.contentCpn&&(p.ccpn=this.contentCpn);this.u$&&(p.cdocid=this.u$);this.provider.videoData.cotn&&(p.cotn=this.provider.videoData.cotn);p.el=p_(this.provider.videoData);p.content_v=$u(this.provider.videoData); p.ns=this.provider.z4.Zt;p.fexp=qez(this.provider.z4.experiments).toString();p.cl=(788253185).toString();(x=this.provider.videoData.adFormat||this.adFormat)&&(p.adformat=x);(x=gY(this.provider.videoData))&&(p.live=x);this.provider.videoData.Sg()&&(p.drm=1,this.provider.videoData.C&&(p.drm_system=wqZ[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(p.drm_product=this.provider.videoData.drmProduct));ay()&&this.provider.videoData.S&&(p.ctt=this.provider.videoData.S,p.cttype= this.provider.videoData.LJ,this.provider.videoData.mdxEnvironment&&(p.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(p.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.zp&&(p.dai_fallback="1")):this.provider.videoData.Jj?p.dai="cs":this.provider.videoData.mM&&(p.dai="disabled");p.seq=this.sequenceNumber++;if(this.provider.videoData.kK){if(x=this.provider.videoData.kK,p&&x)for(x.ns==="3pp"&&(p.ns="3pp"),this.Iw.has(x.ns)&& cv(this,"hbps"),x.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=x.shbpslc),this.provider.z4.experiments.cO("html5_use_server_qoe_el_value")&&this.HO.delete("el"),a=g.k(Object.keys(x)),v=a.next();!v.done;v=a.next())v=v.value,this.HO.has(v)||(p[v]=x[v])}else p.event="streamingstats",p.docid=this.provider.videoData.videoId,p.ei=this.provider.videoData.eventId;this.isEmbargoed&&(p.embargoed="1");Object.assign(p,this.provider.z4.U);if(x=p.seq)x={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+x,serializedWatchEndpointLoggingContext:this.provider.videoData.h7g},this.serializedHouseBrandPlayerServiceLoggingContext&&(x.serializedHouseBrandPlayerServiceLoggingContext=f$(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(x.playerResponseCpn=this.provider.videoData.playerResponseCpn),pe.length&&(x.decoderInfo=pe),this.remoteControlMode&&(x.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(x.remoteConnectedDevices= this.remoteConnectedDevices),x=g.GY(x,Wjo),x=g.m2(x,4),this.U.set("qclc",[x]);p=g.jL("//"+this.provider.z4.ER+"/api/stats/qoe",p);a=x="";v=g.k(this.U.entries());for(c=v.next();!c.done;c=v.next())J=g.k(c.value),c=J.next().value,J=J.next().value,R=void 0,(R=J)!=null&&R.join&&(c="&"+c+"="+J.join(","),c.length>100?a+=c:x+=c);ce1(this,p+x,a.replace(/ /g,"%20"))}this.U.clear()}}; g.I.RI=function(p){this.OS=p}; g.I.b6=function(){if(this.provider.videoData.C){var p=this.provider.videoData.C;cv(this,"eme-"+(p.keySystemAccess?"final":xA(p)?"ms":sd(p)?"ytfp":aa(p)?"safarifp":"nonfinal"))}}; g.I.MF=pU(53);g.I.YC=function(p){this.isEmbargoed=p}; g.I.NV=pU(30);g.I.cB=pU(36);g.I.onPlaybackRateChange=function(p){var x=g.sZ(this.provider);p&&p!==this.FX&&(g.xT(this,x,"rate",[p]),this.FX=p);this.O7||this.reportStats(x)}; g.I.ya=pU(24);g.I.getPlayerState=function(p){if(g.q(p,128))return"ER";if(g.q(p,2048))return"B";if(g.q(p,512))return"SU";if(g.q(p,16)||g.q(p,32))return"S";if(p.isOrWillBePlaying()&&g.q(p,64))return"B";var x=ehE[HN(p)];g.dZ(this.provider.z4)&&x==="B"&&this.provider.U7.getVisibilityState()===3&&(x="SU");x==="B"&&g.q(p,4)&&(x="PB");return x}; g.I.PO=function(){g.y.prototype.PO.call(this);g.BZ(this.pI);g.BZ(this.KW)}; g.I.oW=function(p){this.isOffline=p;g.xT(this,g.sZ(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.I.jA=function(p,x,a){var v=this.aA.indexOf(p)!==-1;v||this.aA.push(p);if(!a||!v){var c=typeof x!=="string"?Ki(x):x;c=rex(c);if(!a&&!/^t[.]/.test(c)){var J=g.sZ(this.provider)*1E3;c="t."+J.toFixed()+";"+c}au(this,"ctmp",p+":"+c);this.logger.debug(function(){return"ctmp "+p+" "+c}); JeJ(this);return J}}; g.I.I2=function(p,x,a){this.C={tkt:Number(this.jA("glrem",{nst:p.toFixed(),rem:x.toFixed(),ca:+a})),hC:p,Bk7:x,isAd:a}}; g.I.lG=function(p,x,a){g.xT(this,g.sZ(this.provider),"ad_playback",[p,x,a])}; g.I.Jv=function(p,x){var a=g.sZ(this.provider)*1E3;au(this,"daism","t."+a.toFixed(0)+";smw."+(p*1E3).toFixed(0)+";smo."+(x*1E3).toFixed(0))}; g.I.resume=function(){var p=this;isNaN(this.pI)?RPT(this):this.pI=g.bF(function(){p.reportStats()},1E4)}; var hH={},ehE=(hH[5]="N",hH[-1]="N",hH[3]="B",hH[0]="EN",hH[2]="PA",hH[1]="PL",hH[-1E3]="ER",hH[1E3]="N",hH),nG$=new Set(["PL","B","S"]),pe=[];g.M(g.Ke,g.y);g.I=g.Ke.prototype;g.I.initialize=function(p,x,a){this.logger.debug(function(){return"Initialized, t="+p}); p=p||0;this.policy.U||(x=kRx(this.U),i_1(this.U7,new FY(x.video,x.reason)),this.U7.Fz(new FY(x.audio,x.reason)));this.policy.U&&vW(this);this.nI.isManifestless&&N58(this.C);this.V&&iTf(this.V,this.videoTrack.U);x=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var v=!this.nI.isManifestless;this.policy.Jf&&(v=v||this.nI.S3);if(!this.policy.F5||this.policy.XV)this.currentTime=v?p:x;this.policy.Zt&&this.seek(this.getCurrentTime(),{}).LT(function(){}); if(this.policy.U){var c;((c=this.Zt)==null?0:FVI(c,this.Gy()||""))&&M91(this)&&IFQ(this,this.videoTrack)&&IFQ(this,this.audioTrack)&&(LrJ(this.Z,this.Zt),this.policy.C&&jNb(this))}else this.O7&&(WHx(this,this.videoTrack),WHx(this,this.audioTrack),mN_(this.O7),delete this.O7);a?(Dhf(this,!1),g.Pk(this.sC)):(a=this.getCurrentTime()===0,cW(this.C,this.videoTrack,this.videoTrack.U,a),cW(this.C,this.audioTrack,this.audioTrack.U,a),this.policy.U&&abx(this.Z,!0),this.policy.Zt||this.seek(this.getCurrentTime(), {}).LT(function(){}),this.timing.tick("gv")); (this.nI.Bm||this.nI.FR||this.nI.u$||this.nI.OS||this.nI.KW)&&this.U7.Ea(this.nI)}; g.I.resume=function(){if(this.isSuspended||this.ey){this.logger.debug("Resumed.");this.lF=this.ey=this.isSuspended=!1;try{this.Bh()}catch(p){g.Uq(p)}}}; g.I.n_=function(){return!this.policy.Iw}; g.I.k7=function(p,x){p=p===void 0?!1:p;x=x===void 0?!1:x;this.logger.debug("detaching media source");QN8(this);this.U7.zG()&&(this.S=NaN);p?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.qT&&this.jA("loader",{setsmb:1}),this.policy.u$=!0,this.Nr()):(Dhf(this,!1),x||this.Nr())}; g.I.setAudioTrack=function(p,x,a){a=a===void 0?!1:a;if(!this.b$()){var v=!isNaN(x);a&&v&&(this.audioTrack.pI=Date.now(),this.policy.K1&&(this.T4=!0));if(this.policy.U){var c=this.B.u6(p.id,v);this.logger.debug(function(){return"Logging new audio format: "+c.U.info.id}); this.U7.Fz(c)}else{var J=I4x(this.U,p.id,v);this.logger.debug(function(){return"Logging new audio format: "+J.audio.info.id}); this.U7.Fz(new FY(J.audio,J.reason))}v?(this.OS=Date.now(),a=this.audioTrack.U.index.sN(x),this.jA("setAudio",{id:p.id,cmt:x,sq:a}),a>=0&&(p=this.policy.Ay?a+1:a,this.policy.U&&this.d$(!0,"mosaic"),OH(this.audioTrack,p,NaN,NaN),!this.policy.MN&&this.nI.isLive&&NG(this.nI,p,!1))):this.U7.Hv()}}; g.I.setPlaybackRate=function(p){p!==this.T.getPlaybackRate()&&this.T.setPlaybackRate(p)}; g.I.j7=function(p){var x=this.Z.V;this.Z.Vm(p);this.jA("scfidc",{curr:O$(x),"new":O$(p)});p&&O$(p)!==O$(x)&&(this.d$(!0,"caption change"),this.Bh())}; g.I.pC=function(p){this.Z.Ss(p)}; g.I.Ft=function(p){var x=p.U.info.K3();this.logger.debug(function(){return"New "+(x?"audio":"video")+" format from SABR: "+Gl(p.U.info)}); x?this.U7.Fz(p):i_1(this.U7,p)}; g.I.qk=function(p){VL(p.eA[p.eA.length-1])&&fFz(this,MBQ(this.U,p.eA[0].U))}; g.I.qE=function(){return this.U7.qE()}; g.I.Qq=function(){return this.U7.Qq()}; g.I.zd=function(p){this.U7.L().qZ()&&this.jA("sps",{status:p.qC||""});if(p.qC===1)this.U7.videoData.R_=0;else if(p.qC===2||p.qC===3){var x=!1;if(p.qC===3){x=this.U7.sG();var a;this.RA=(a=p.O1G)!=null?a:Infinity;this.U7.videoData.R_=x+1;(x=dl(this))&&this.yF(!0)}this.U7.sM(!0,x)}}; g.I.q0=function(){return this.U7.q0()}; g.I.vB=function(){return this.U7.vB()}; g.I.JN=function(p){this.U7.JN(p)}; g.I.Hvt=function(){var p,x=(p=this.U7.gV())==null?void 0:p.getCurrentTime();x?this.U7.jA("rms",{cta:x}):g.Pk(this.Kp)}; g.I.Bh=function(){Sso(this);if(this.xg&&vN(this.xg)&&!this.xg.ih()&&(!this.policy.F5||isFinite(this.getCurrentTime()))){var p=o$(this.videoTrack);p=this.policy.NK&&p&&p.Vf();this.nI.isManifestless&&this.nI.B&&gC(this.nI)?(this.S=gC(this.nI),this.xg.xb(this.S)):Pz(this.nI)&&!p?isNaN(this.S)?(this.S=this.getCurrentTime()+3600,this.xg.xb(this.S)):this.S<=this.getCurrentTime()+1800&&(this.S=Math.max(this.S+1800,this.getCurrentTime()+3600),this.xg.xb(this.S)):this.xg.isView||(p=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==p)&&p>0&&(this.xg.xb(p),this.S=p))}if(!this.b$())if(yi(this.nI)&&this.nI.h3()){var x=this.nI;this.handleError("manifest.net.retryexhausted",x.Ra?{rc:x.YL}:{rc:x.YL.toString()},1)}else if(this.policy.U)a:{try{dnx(this.Z);this.nI.isManifestless&&this.policy.C&&xj(this.H5);var a;((a=this.xg)==null?0:RL(a))&&this.Gi();abx(this.Z)}catch(R){g.Hp(R);x=R;if(x.message.includes("changeType")){this.jA("ctype",{exp:x.name,msg:x.message,s:x.stack});break a}this.handleError("fmt.unplayable", {exp:x.name,msg:x.message,s:x.stack,trg:"sabrslicerqt"},1)}V9T(this);g.Pk(this.Ra)}else if(!this.nI.Z||!DDo(this.videoTrack)&&!DDo(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.US?a=!1:(this.Nr(),this.U7.seekTo(Infinity,{Cp:"checkLoaderTracksSync",wK:!0}),a=!0),!a){Sso(this);this.nI.isManifestless&&(UD1(this.videoTrack),UD1(this.audioTrack),xj(this.H5),(a=v4(this.videoTrack))&&a.U&&(a=a.U.j&&!this.policy.jX,this.jA(a===this.policy.V.P$?"strm":"strmbug",{strm:a,sfmp4:this.policy.V.P$, dfs:this.policy.jX},!0)));if(this.xg)this.Gi();else if(this.policy.B){var v;a=!1;if(this.policy.Tk){var c;p=g.k([this.videoTrack,this.audioTrack]);for(c=p.next();!c.done;c=p.next()){var J=c.value;for(c=v4(J);c&&J.Ov()!==o$(J);c=v4(J))J.sV(c);a=a||!!c}}else(x=v4(this.videoTrack))&&this.videoTrack.sV(x),(v=v4(this.audioTrack))&&this.audioTrack.sV(v);yO(this.videoTrack)&&yO(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(x||v||a)&&e7(this)}kQQ(this);cW(this.C,this.videoTrack, this.videoTrack.U,!1);cW(this.C,this.audioTrack,this.audioTrack.U,!1);this.policy.Km||XwI(this,this.videoTrack,this.audioTrack);EA8(this.C,this.videoTrack,this.audioTrack);EA8(this.C,this.audioTrack,this.videoTrack);V9T(this);this.V&&(x=this.V,x.B?(v=x.S+x.policy.BA,x.j||(v=Math.min(v,x.startTimeSecs+x.policy.pY)),x=Math.max(0,v*1E3-Date.now())):x=NaN,isNaN(x)||g.Pk(this.aA,x));g.Pk(this.Ra)}}; g.I.v2=function(p){this.U7.v2(p)}; g.I.Gi=function(){var p=this;if(this.xg){var x=this.xg.U,a=this.xg.Z;sW1(this,this.audioTrack);sW1(this,this.videoTrack);var v=t9g(this);if(v){if(this.policy.Ri){if(!x.wT()){var c=v4(this.audioTrack);if(c){if(!Ru(this,this.audioTrack,x,c.info))return;EuU(this,this.audioTrack,x,c)}}if(!a.wT()&&(c=v4(this.videoTrack))){if(!Ru(this,this.videoTrack,a,c.info))return;EuU(this,this.videoTrack,a,c)}}this.pI||(this.pI=(0,g.WR)(),this.logger.debug(function(){return"Appends pause start "+p.pI+" reason "+v}), this.policy.j&&this.jA("apdps",{r:v}))}else if(this.pI&&(ou1(this,this.pI),this.pI=0),zPI(this),c=!1,O__(this,this.videoTrack,a)&&(c=!0,O0T(this.timing),q$1(this.timing)),this.xg&&!this.xg.TC()&&(O__(this,this.audioTrack,x)&&(c=!0,N0x(this.timing),no_(this.timing)),!this.b$()&&this.xg))!this.policy.Iw&&yO(this.videoTrack)&&yO(this.audioTrack)&&vN(this.xg)&&!this.xg.ih()&&(a=!1,a=o$(this.audioTrack).U,a=a===this.nI.U[a.info.id])&&(this.logger.debug("Setting EOS"),yvx(this.xg),TPI(this.schedule),this.F9("e")), c&&!this.xg.isAsync()&&e7(this)}}; g.I.F9=function(p){if(this.policy.lZ&&this.nI.isManifestless){var x=this.videoTrack.U;if(x){var a=x.index.Q8(),v=-1,c=-1;x.index instanceof rC&&(v=x.index.yh(),c=x.index.Pa());this.U7.F9(p,a,v,c)}}}; g.I.Jq=function(p){var x,a=p===((x=this.xg)==null?void 0:x.U)?this.audioTrack:this.videoTrack,v;if((v=v4(a))==null?0:v.isLocked){if(this.U7.L().qZ()){var c;this.jA("eosl",{ounlock:(c=v4(a))==null?void 0:c.info.jV()})}var J;ePz(this,p===((J=this.xg)==null?void 0:J.U))}var R;if(this.policy.K1&&p===((R=this.xg)==null?void 0:R.U)&&this.oa){x=this.oa-this.getCurrentTime();var d;this.U7.jA("asl",{l:x,xtag:(d=o$(this.audioTrack))==null?void 0:d.U.info.U});this.T4=!1;this.oa=0}p.FS()&&p.rH().length===0&& (p.Nj(),this.xg&&!this.xg.FS()&&(this.U7.L().qZ()&&this.U7.jA("rms",{ld:"seek"}),this.xg.S=performance.now(),this.U7.wW(),this.U7.L().qZ()&&g.Pk(this.Kp)));var b;(b=a.T)!=null&&B2(b,0);this.policy.vX?Rm(this):this.Bh()}; g.I.Y7T=function(p){if(this.xg){var x=o$(p===this.xg.U?this.audioTrack:this.videoTrack);if(p=p.mQ())for(var a=0;a5&&d.Zt.shift();x=x.i$;var b;if((b=this.U7.getVideoData())==null?0:b.enableServerStitchedDai)b=Sd_(this.audioTrack,x),a=Sd_(this.videoTrack,x),b!==0&&a!==0&&b!==a&&this.handleError("ssdai.avsync",{sq:x,a:b,v:a},0)}}; g.I.oE=function(p,x,a,v){p.info.video&&this.j.oE(x,a,v)}; g.I.uS=function(p){this.U.uS(p)}; g.I.J5=pU(12);g.I.uo=function(){if(g.q(this.U7.getPlayerState(),8)){var p,x,a=(x=(p=this.U7.gV())==null?void 0:p.getCurrentTime())!=null?x:this.U7.getCurrentTime(),v;(v=this.US)==null||HTo(v,a)}var c;(c=this.XV)==null||g.Pk(c)}; g.I.x8=function(){return this.videoTrack.V||this.audioTrack.V}; g.I.seek=function(p,x){if(this.b$())return XW();if(this.x8())return XW("seeking to head");if(this.policy.Zt&&!isFinite(p))return H18(this.H5),g.Cp(Infinity);Sso(this);vW(this);this.policy.U||kQQ(this,p);this.xg&&this.xg.U&&this.xg.Z&&!this.U7.getVideoData().T2&&(this.xg.U.isLocked()||this.xg.Z.isLocked())&&this.U7.Hv({reattachOnLockedBuffer:1,vsb:""+this.xg.Z.isLocked(),asb:""+this.xg.U.isLocked()});var a=this.getCurrentTime(),v=this.H5.seek(p,x);if(!this.policy.F5||this.policy.XV)this.currentTime= v;ef(this.j,p,a,this.policy.M9&&!x.XA);e7(this);return g.Cp(v)}; g.I.xS=function(p){return this.policy.U&&this.Z.xS(p)}; g.I.kt=function(p){return this.Z.kt(p)}; g.I.d$=function(p,x){this.Z.d$(p,x)}; g.I.getCurrentTime=function(){if(this.policy.F5){var p=this.Y0()||0;return this.U7.getCurrentTime(!0)-p}return this.currentTime}; g.I.iN=function(){return this.audioTrack.U.info}; g.I.Ve=function(){return this.videoTrack.U.info}; g.I.J$=function(){return this.audioTrack.U.info.rr}; g.I.Id=function(){return this.videoTrack.U.info.rr}; g.I.PO=function(){try{this.k7(),ua(this.audioTrack),ua(this.videoTrack),nR(this.audioTrack),nR(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.y.prototype.PO.call(this)}catch(p){g.Uq(p)}}; g.I.handleError=function(p,x,a){a=a===void 0?0:a;var v=bh(a);p==="fmt.unplayable"&&this.nI.isLive&&(this.policy.Ri=!1,Ol(this.nI));x=new g.dD(p,x,a);g.Rv(this);Ki(x.details);this.U7.handleError(x);p!=="html5.invalidstate"&&x.errorCode!=="fmt.unplayable"&&p!=="fmt.unparseable"&&v&&this.dispose()}; g.I.cX=function(){var p=o$(this.audioTrack),x=o$(this.videoTrack);p={lct:this.getCurrentTime().toFixed(3),lsk:this.H5.isSeeking(),lmf:this.U.U.isLocked(),lbw:g5(this.schedule).toFixed(3),lhd:Ed(this.schedule).toFixed(3),lst:((this.schedule.V.f3()||0)*1E9).toFixed(3),laa:p?p.jV():"",lva:x?x.jV():"",lar:this.audioTrack.Z?this.audioTrack.Z.jV():"",lvr:this.videoTrack.Z?this.videoTrack.Z.jV():"",laq:""+gV(this.audioTrack),lvq:""+gV(this.videoTrack)};this.xg&&!this.xg.TC()&&this.xg.U&&this.xg.Z&&(p.lab= NK(this.xg.U.rH()),p.lvb=NK(this.xg.Z.rH()));this.pI&&(p.lapt=((0,g.WR)()-this.pI).toFixed(0),p.lapr=t9g(this));this.V6&&(p.lapmabht=((0,g.WR)()-this.V6).toFixed(0),p.lapmabh=Fa(this,this.audioTrack).toFixed(0));this.gr&&(p.lapmvbht=((0,g.WR)()-this.gr).toFixed(0),p.lapmvbh=Fa(this,this.videoTrack).toFixed(0));this.tG&&(p.lapsdai=((0,g.WR)()-this.tG).toFixed(0));return p}; g.I.Nr=function(){try{this.policy.U&&this.Z.d$(!1,"pending"),this.audioTrack.Nr(),this.videoTrack.Nr()}catch(p){g.Uq(p)}this.policy.B=""}; g.I.Wp=function(){return Gm(this.T)}; g.I.jA=function(p,x,a){this.U7.jA(p,x,a===void 0?!1:a)}; g.I.Gy=function(){return this.U7.Gy()}; g.I.wK=function(p,x){p/=x;isNaN(this.timestampOffset)&&vK1(this,p-Math.min(p,this.policy.R_));return(p-this.timestampOffset)*x}; g.I.Y0=function(){return this.timestampOffset}; g.I.isSeeking=function(){return this.H5.isSeeking()}; g.I.uE=function(){this.j.uE()}; g.I.dK=function(p,x,a){x=x===void 0?!1:x;a=a===void 0?{}:a;this.policy.U?this.B.dK(p,x,a):this.U.dK(p,x,a)}; g.I.RV=function(p,x){if(this.Y&&this.j.RV(p,this.Y)){if(this.policy.Ra&&this.policy.Z){var a=this.videoTrack.U.index.sN(p),v;(v=this.u$)==null||v.OV(p,a)}vK1(this,this.timestampOffset-x);e7(this);this.policy.Z&&(Ol(this.nI),nR(this.audioTrack),nR(this.videoTrack),this.Nr());return!0}x=this.videoTrack.U.index.sN(p);this.handleError("ad.skipfailed",{dec:!!this.Y,t:p.toFixed(3),sq:x});return!1}; g.I.getManifest=function(){return this.nI}; g.I.isOffline=function(){return!!this.U7.getVideoData().cotn}; g.I.dF=function(p,x){this.U7.dF(p,x)}; g.I.EH=function(p){if(this.policy.U)this.Z.d$(!0,"utc"),this.Bh();else{var x=this.U7.getVideoData().qr;if(x){var a=this.C;a.X8=p;a.qr=x;bG(this)}}}; g.I.AY=function(p){this.videoTrack.V=!1;this.audioTrack.V=!1;this.H5.U=!1;this.U7.AY(p)}; g.I.Mp=function(p){this.H5.Mp(p-this.Y0())}; g.I.pz=function(){this.U7.pz()}; g.I.yF=function(p){p!==this.policy.dh&&((this.policy.dh=p)||this.Bh())}; g.I.Hv=function(p){this.U7.Hv(p)}; g.I.RI=function(p){this.U7.RI(p)}; g.I.Pe=function(p,x,a){var v;(v=this.u$)==null||v.Pe(p,x,a)}; g.I.z2=function(p,x){var a;(a=this.u$)==null||a.z2(p,x)}; g.I.LR=function(p){var x;return(x=this.u$)==null?void 0:x.LR(void 0,p)}; g.I.sG=function(){return this.U7.sG()}; g.I.mp=function(p,x){if(this.policy.ow){var a;(a=this.u$)==null||a.mp(p,this.timestampOffset,x,this.Y||void 0)}};g.I=g.d7.prototype;g.I.FJ=function(p,x,a,v,c,J){return this.DU.FJ(p,x,a,v,c,J)}; g.I.Nm=function(p,x,a,v,c,J){return this.DU.Nm(p,x,a,v,c,J)}; g.I.Nu=function(p){return this.DU.Nu(p)}; g.I.eN=function(p){this.DU.eN(p)}; g.I.dY=function(p,x,a,v){return this.DU.dY(p,x,a,v)}; g.I.uE=function(){this.DU.uE()}; g.I.OV=function(p,x){this.DU.OV(p,x)}; g.I.I1=function(){this.DU.I1()}; g.I.e$=pU(56);g.I.u9=function(p,x,a){this.DU.u9(p,x,a)}; g.I.vL=pU(59);g.I.Md=function(p,x,a,v,c,J,R,d,b){this.DU.Md(p,x,a,v,c,J,R,d,b)}; g.I.tA=function(p){this.DU.tA(p)}; g.I.va=function(p){return this.DU.va(p)}; g.I.fR=function(p){return this.DU.fR(p)}; g.I.gD=function(p){return this.DU.gD(p)};g.M(bS,g.Fx);g.M(r7,bS);r7.prototype.S=function(p,x){if(p&&x){var a=Number(Dz(p,"cpi"))*1+1;isNaN(a)||a<=0||athis.j&&(this.j=a,g.lu(this.U)||(this.U={},this.B.stop(),this.Z.stop())),this.U[x]=p,g.Pk(this.Z))}}; r7.prototype.C=function(){for(var p=g.k(Object.keys(this.U)),x=p.next();!x.done;x=p.next()){var a=x.value;x=this.publish;for(var v=this.j,c=g.d3(this.U[a]),J=[],R=g.k(c[6].split("&")),d=R.next();!d.done;d=R.next())d=d.value,d.indexOf("cpi=")===0?J.push("cpi="+v.toString()):d.indexOf("ek=")===0?J.push("ek="+g.mn(a)):J.push(d);c[6]="?"+J.join("&");a="skd://"+c.slice(2).join("");c=a.length*2;v=new Uint8Array(c+4);v[0]=c%256;v[1]=(c-v[0])/256;for(c=0;c0)for(var a=g.k(this.U),v=a.next();!v.done;v=a.next())if(x===v.value.info.cryptoPeriodIndex){x=!0;break a}x=!1}if(!x){x=(0,g.WR)();a:{a=p.cryptoPeriodIndex;if(!isNaN(a)){v=g.k(this.j.values());for(var c=v.next();!c.done;c=v.next())if(Math.abs(c.value.cryptoPeriodIndex-a)<=1){a=!0;break a}}a=!1}a?(a=p.U,a=Math.max(0,Math.random()*((isNaN(a)?120:a)-30))*1E3):a=0;this.publish("log_qoe",{wvagt:"delay."+a,cpi:p.cryptoPeriodIndex,reqlen:this.U.length}); a<=0?hJU(this,p):(this.U.push({time:x+a,info:p}),g.Pk(this.Z,a))}}; Bv.prototype.PO=function(){this.U=[];bS.prototype.PO.call(this)};var jE={},kuf=(jE.DRM_TRACK_TYPE_AUDIO="AUDIO",jE.DRM_TRACK_TYPE_SD="SD",jE.DRM_TRACK_TYPE_HD="HD",jE.DRM_TRACK_TYPE_UHD1="UHD1",jE);g.M(M7U,g.y);g.M(Uy1,g.Fx);g.I=Uy1.prototype;g.I.Uv=function(p){var x=this;if(!(this.b$()||p.size<=0)){var a={};p.forEach(function(v,c){var J=$A(x.Z)?c:v;c=new Uint8Array($A(x.Z)?v:c);$A(x.Z)&&gm1(c);v=g.m2(c,4);gm1(c);c=g.m2(c,4);x.U[v]?x.U[v].status=J:x.U[c]?x.U[c].status=J:x.U[v]={type:"",status:J};Emf(x,x.U[v].type,a)}); zJ1(this,",");lS(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.I.error=function(p,x,a,v){this.b$()||(this.publish("licenseerror",p,x,a,v),p==="drm.provision"&&(p=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:p.toFixed(3)})));bh(x)&&this.dispose()}; g.I.shouldRetry=function(p,x){return!p&&this.requestNumber===x.requestNumber}; g.I.PO=function(){this.U={};g.Fx.prototype.PO.call(this)}; g.I.cX=function(){var p={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.O7,cryptoPeriodIndex:this.cryptoPeriodIndex};this.j&&(p.keyStatuses=this.U);return p}; g.I.getInfo=function(){var p=this.B.join();if(Le(this)){var x=new Set,a;for(a in this.U)this.U[a].status!=="usable"&&x.add(this.U[a].type);p+="/UKS."+Array.from(x)}return p+="/"+this.cryptoPeriodIndex}; g.I.Wh=function(){return this.url};g.M(jW,g.y);g.I=jW.prototype;g.I.IN=function(p){if(this.C){var x=p.messageType||"license-request";this.C(new Uint8Array(p.message),x)}}; g.I.Uv=function(){this.V&&this.V(this.U.keyStatuses)}; g.I.onClosed=function(){this.b$()||g.wT("xboxone")&&this.j&&this.j("closedShouldNotRetry")}; g.I.f5=function(p){this.C&&this.C(p.message,"license-request")}; g.I.HV=function(p){if(this.j){if(this.Z){var x=this.Z.error.code;p=this.Z.error.systemCode}else x=p.errorCode,p=p.systemCode;this.j("t.prefixedKeyError;c."+x+";sc."+p,x,p)}}; g.I.cV=function(){this.S&&this.S()}; g.I.update=function(p){var x=this;if(this.U)return this.U.update(p).then(null,Ew(function(a){Guo(x,"t.update",a)})); this.Z?this.Z.update(p):this.element.addKey?this.element.addKey(this.Y.keySystem,p,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,p,this.initData,this.sessionId);return Ql()}; g.I.PO=function(){this.U&&(this.T?this.U.close().catch(g.Hp):this.U.close());this.element=null;g.y.prototype.PO.call(this)};g.M(Iu,g.y);g.I=Iu.prototype;g.I.setServerCertificate=function(){return this.Z.setServerCertificate?this.U.flavor==="widevine"&&this.U.kC?this.Z.setServerCertificate(this.U.kC):v0(this.U)&&this.U.tG?this.Z.setServerCertificate(this.U.tG):null:null}; g.I.createSession=function(p,x){var a=p.initData;if(this.U.keySystemAccess){x&&x("createsession");var v=this.Z.createSession();sd(this.U)?a=Ayo(a,this.U.tG):v0(this.U)&&(a=Yr_(a)||new Uint8Array(0));x&&x("genreq");p=v.generateRequest(p.contentType,a);var c=new jW(null,null,null,v,null,this.V);p.then(function(){x&&x("genreqsuccess")},Ew(function(R){Guo(c,"t.generateRequest",R)})); return c}if(xA(this.U))return qrQ(this,a);if(aa(this.U))return PGf(this,a);if((v=this.element)==null?0:v.generateKeyRequest)this.element.generateKeyRequest(this.U.keySystem,a);else{var J;(J=this.element)==null||J.webkitGenerateKeyRequest(this.U.keySystem,a)}return this.B=new jW(this.element,this.U,a,null,null,this.V)}; g.I.Wc=function(p){var x=nmg(this,p);x&&x.f5(p)}; g.I.uD=function(p){var x=nmg(this,p);x&&x.HV(p)}; g.I.FT=function(p){var x=nmg(this,p);x&&x.cV(p)}; g.I.getMetrics=function(){var p=null;if(this.Z&&this.Z.getMetrics)try{p=this.Z.getMetrics()}catch(x){}return p}; g.I.PO=function(){this.j=this.Z=null;var p;(p=this.B)==null||p.dispose();p=g.k(Object.values(this.S));for(var x=p.next();!x.done;x=p.next())x.value.dispose();this.S={};g.y.prototype.PO.call(this);delete this.element};g.I=Mr.prototype;g.I.get=function(p){p=this.findIndex(p);return p!==-1?this.values[p]:null}; g.I.remove=function(p){p=this.findIndex(p);p!==-1&&(this.keys.splice(p,1),this.values.splice(p,1))}; g.I.removeAll=function(){this.keys=[];this.values=[]}; g.I.set=function(p,x){var a=this.findIndex(p);a!==-1?this.values[a]=x:(this.keys.push(p),this.values.push(x))}; g.I.findIndex=function(p){return g.WQ(this.keys,function(x){return g.qE(p,x)})};g.M(V7x,g.Fx);g.I=V7x.prototype;g.I.jlI=function(p){this.JZ({onecpt:1});p.initData&&xrU(this,new Uint8Array(p.initData),p.initDataType)}; g.I.XX5=function(p){this.JZ({onndky:1});xrU(this,p.initData,p.contentType)}; g.I.uj=function(p){this.JZ({onneedkeyinfo:1});this.z4.D("html5_eme_loader_sync")&&(this.V.get(p.initData)||this.V.set(p.initData,p));pvz(this,p)}; g.I.Z8=function(p){this.j.push(p);Wv(this)}; g.I.createSession=function(p){var x=aIo(this)?ZAg(p):g.m2(p.initData);this.Z.get(x);this.u$=!0;p=new Uy1(this.videoData,this.z4,p,this.drmSessionId);this.Z.set(x,p);p.subscribe("ctmp",this.MS,this);p.subscribe("keystatuseschange",this.Uv,this);p.subscribe("licenseerror",this.Wu,this);p.subscribe("newlicense",this.ao,this);p.subscribe("newsession",this.L5,this);p.subscribe("sessionready",this.jK,this);p.subscribe("fairplay_next_need_key_info",this.Gb,this);this.z4.D("html5_enable_vp9_fairplay")&&p.subscribe("qualitychange", this.M4,this);p.subscribe("sabrlicenseconstraint",this.rj6,this);myN(p,this.B)}; g.I.ao=function(p){this.b$()||(this.JZ({onnelcswhb:1}),p&&!this.heartbeatParams&&(this.heartbeatParams=p,this.publish("heartbeatparams",p)))}; g.I.L5=function(){this.b$()||(this.JZ({newlcssn:1}),this.j.shift(),this.u$=!1,Wv(this))}; g.I.jK=function(){if(xA(this.U)&&(this.JZ({onsnrdy:1}),this.hG--,this.hG===0)){var p=this.Zt,x,a;(x=p.element)==null||(a=x.msSetMediaKeys)==null||a.call(x,p.j)}}; g.I.Uv=function(p){if(!this.b$()){this.qT||(this.qT=!0,this.z4.qZ()&&su8(this));this.JZ({onksch:1});var x=this.M4;if(!Le(p)&&g.ZH&&p.Z.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var a="large";else{a=[];var v=!0;if(Le(p))for(var c=g.k(Object.keys(p.U)),J=c.next();!J.done;J=c.next())J=J.value,p.U[J].status==="usable"&&a.push(p.U[J].type),p.U[J].status!=="unknown"&&(v=!1);if(!Le(p)||v)a=p.B;a=t7x(a)}x.call(this,a);if(!Le(p))for(x={},a=g.k(p.B),v=a.next();!v.done;v=a.next())Emf(p, v.value,x);this.videoData.authorizedFormats=p.authorizedFormats;this.publish("keystatuseschange",p)}}; g.I.MS=function(p,x){this.b$()||this.publish("ctmp",p,x)}; g.I.Gb=function(p,x){this.b$()||this.publish("fairplay_next_need_key_info",p,x)}; g.I.Wu=function(p,x,a,v){this.b$()||(this.videoData.D("html5_log_drm_metrics_on_error")&&su8(this),this.publish("licenseerror",p,x,a,v))}; g.I.sO=function(){return this.Y}; g.I.M4=function(p){var x=g.DW("auto",p,!1,"l");if(this.videoData.dh){if(this.Y.equals(x))return}else if(bxx(this.Y,p))return;this.Y=x;this.publish("qualitychange");this.JZ({updtlq:p})}; g.I.rj6=function(p){this.videoData.sabrLicenseConstraint=p}; g.I.PO=function(){this.U.keySystemAccess&&this.element&&(this.O7?this.element.setMediaKeys(null).catch(g.Hp):this.element.setMediaKeys(null));this.element=null;this.j=[];for(var p=g.k(this.Z.values()),x=p.next();!x.done;x=p.next())x=x.value,x.unsubscribe("ctmp",this.MS,this),x.unsubscribe("keystatuseschange",this.Uv,this),x.unsubscribe("licenseerror",this.Wu,this),x.unsubscribe("newlicense",this.ao,this),x.unsubscribe("newsession",this.L5,this),x.unsubscribe("sessionready",this.jK,this),x.unsubscribe("fairplay_next_need_key_info", this.Gb,this),this.z4.D("html5_enable_vp9_fairplay")&&x.unsubscribe("qualitychange",this.M4,this),x.dispose();this.Z.clear();this.S.removeAll();this.V.removeAll();this.heartbeatParams=null;g.Fx.prototype.PO.call(this)}; g.I.cX=function(){for(var p={systemInfo:this.U.cX(),sessions:[]},x=g.k(this.Z.values()),a=x.next();!a.done;a=x.next())p.sessions.push(a.value.cX());return p}; g.I.getInfo=function(){return this.Z.size<=0?"no session":""+this.Z.values().next().value.getInfo()+(this.C?"/KR":"")}; g.I.JZ=function(p,x){x=x===void 0?!1:x;this.b$()||(Ki(p),(this.z4.qZ()||x)&&this.publish("ctmp","drmlog",p))};g.M(KGU,g.y);g.I=KGU.prototype;g.I.Zl=function(){return!!this.gL}; g.I.Gl=function(){return this.Z}; g.I.handleError=function(p){var x=this;LGJ(this,p);if((p.errorCode!=="html5.invalidstate"&&p.errorCode!=="fmt.unplayable"&&p.errorCode!=="fmt.unparseable"||!lI1(this,p.errorCode,p.details))&&!II1(this,p)){if(this.JG.Zt!=="yt"&&h0o(this,p)&&this.videoData.mj&&(0,g.WR)()/1E3>this.videoData.mj&&this.JG.Zt==="hm"){var a=Object.assign({e:p.errorCode},p.details);a.stalesigexp="1";a.expire=this.videoData.mj;a.init=this.videoData.lU/1E3;a.now=(0,g.WR)()/1E3;a.systelapsed=((0,g.WR)()-this.videoData.lU)/1E3; p=new g.dD(p.errorCode,a,2);this.U7.jk(p.errorCode,2,"SIGNATURE_EXPIRED",Ki(p.details))}if(bh(p.severity)){var v;a=(v=this.U7.loader)==null?void 0:v.U.U;if(this.JG.D("html5_use_network_error_code_enums"))if(YZJ(p)&&a&&a.isLocked())var c="FORMAT_UNAVAILABLE";else if(this.JG.S||p.errorCode!=="auth"||p.details.rc!==429)p.errorCode==="ump.spsrejectfailure"&&(c="HTML5_SPS_UMP_STATUS_REJECTED");else{c="TOO_MANY_REQUESTS";var J="6"}else YZJ(p)&&a&&a.isLocked()?c="FORMAT_UNAVAILABLE":this.JG.S||p.errorCode!== "auth"||p.details.rc!=="429"?p.errorCode==="ump.spsrejectfailure"&&(c="HTML5_SPS_UMP_STATUS_REJECTED"):(c="TOO_MANY_REQUESTS",J="6");this.U7.jk(p.errorCode,p.severity,c,Ki(p.details),J)}else this.U7.publish("nonfatalerror",p),v=/^pp/.test(this.videoData.clientPlaybackNonce),this.zn(p.errorCode,p.details),v&&p.errorCode==="manifest.net.connect"&&(p="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.WR)(),g1(p,"manifest",function(R){x.S=!0;x.jA("pathprobe",R)}, function(R){x.zn(R.errorCode,R.details)}))}}; g.I.jA=function(p,x){this.U7.tX.jA(p,x)}; g.I.zn=function(p,x){x=Ki(x);this.U7.tX.zn(p,x)};kT.prototype.F$=function(p){var x=Dro(this);if(!p)return{Dg:dY,IX:dY,Qm:dY,dG:dY,M3:dY,vR:dY,HR:x};var a=dY;if(HX(x)||this.D("html5_perf_cap_override_sticky"))a=tWQ(this,p);return{Dg:a,IX:SZQ(this,p),Qm:Qub(this,p),dG:z0z(this,p.videoData),M3:wvg(this,p.videoData,p),vR:HeI(this,p),HR:x}}; kT.prototype.u_=function(p){if(g.dZ(this.z4)&&yK(this.z4.C,g9.HEIGHT))var x=p.U.videoInfos[0].video.qualityOrdinal;else{var a=this.Ck(!!p.U.U);Db(p.videoData)||K_(p.videoData);p=p.U.videoInfos;if(p.length){var v=g.e_(this.z4.experiments,"html5_override_oversend_fraction")||.85,c=p[0].video;c.projectionType!=="MESH"&&c.projectionType!=="EQUIRECTANGULAR"&&c.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V_||(v=.45);c=g.e_(this.z4.experiments,"html5_viewport_undersend_maximum");for(var J=0;J< p.length;J++){x=p[J];var R=x.video;if(a===null||R.width*v=0,stateAtSend:x,joinLatencySecs:J,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:v,playerCanaryStage:c,isAd:this.provider.videoData.isAd(),liveMode:a,hasDrm:!!g.Eg(this.provider.videoData),isGapless:this.provider.videoData.V,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:TV(this.provider.videoData)};p||g.ab("html5PlayerHealthEvent",x);this.j=!0;this.dispose()}}; UZ.prototype.PO=function(){this.j||this.send();window.removeEventListener("error",this.bM);window.removeEventListener("unhandledrejection",this.bM);g.y.prototype.PO.call(this)}; var utt=/\bnet\b/;GxU.prototype.update=function(){if(this.V){var p=this.Sh()||0,x=g.sZ(this.provider);p>=this.provider.U7.getDuration()-.1&&(this.previouslyEnded=!0);if(p!==this.U||AGg(this,p,x)){var a;if(!(a=px-this.TX+2||AGg(this,p,x))){a=this.provider.U7.getVolume();var v=a!==this.T,c=this.provider.U7.isMuted()?1:0;c!==this.Y?(this.Y=c,a=!0):(!v||this.B>=0||(this.T=a,this.B=x),a=x-this.B,this.B>=0&&a>2?(this.B=-1,a=!0):a=!1)}a&&(Tx(this),this.j=p);this.TX=x;this.U=p}}}; GxU.prototype.Sh=function(){var p=this.provider.U7.Sh();return this.provider.z4.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&H_(this.provider.videoData)?p+this.provider.U7.Y0():p};PS1.prototype.send=function(p){var x=this;if(!this.Ra){var a=nTQ(this),v=g.jL(this.uri,a);this.z4.D("vss_through_gel_double")&&e08(v);this.u$&&!this.z4.D("html5_simplify_pings")?xAT(this,v):qZU(this,p).then(function(c){x.u$&&(c=c||{},c.method="POST",c.postParams={atr:x.attestationResponse});Pqg(v,c,{token:x.pI,OJ:x.Zp,mdxEnvironment:x.mdxEnvironment},x.z4,p,x.F5,x.isFinal&&x.Y_||x.qT||x.j&&x.x_)}); this.Ra=!0}}; PS1.prototype.Z=function(p){p===void 0&&(p=NaN);return Number(p.toFixed(3)).toString()}; var Il={},FGf=(Il.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Il.LIVING_ROOM_APP_MODE_MAIN=1,Il.LIVING_ROOM_APP_MODE_KIDS=2,Il.LIVING_ROOM_APP_MODE_MUSIC=3,Il.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Il.LIVING_ROOM_APP_MODE_GAMING=5,Il),MR={},VWf=(MR.EMBEDDED_PLAYER_MODE_UNKNOWN=0,MR.EMBEDDED_PLAYER_MODE_DEFAULT=1,MR.EMBEDDED_PLAYER_MODE_PFP=2,MR.EMBEDDED_PLAYER_MODE_PFL=3,MR);g.M(mG,g.y);mG.prototype.onProgress=function(){this.U.update();dAg(this)&&(sn8(this),vsb(this))}; mG.prototype.PO=function(){g.y.prototype.PO.call(this);Ce(this);Oez(this.U)}; mG.prototype.cX=function(){return nTQ(SW(this,"playback"))}; mG.prototype.PB=function(p){var x=SW(this,"engage");x.O7=p;return ubT(x,YJ1(this.provider))};LiI.prototype.isEmpty=function(){return this.endTime===this.startTime};iS.prototype.D=function(p){return this.z4.D(p)}; iS.prototype.getCurrentTime=function(){return this.U7.getCurrentTime()}; iS.prototype.Sh=function(){return this.U7.Sh()}; var htT={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.M(g.ou,g.y);g.I=g.ou.prototype;g.I.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.kO){var p;(p=this.j.get(this.kO))==null||p.onProgress()}else if(this.U)this.U.onProgress()}; g.I.YC=function(p){this.qoe&&this.qoe.YC(p)}; g.I.NV=pU(29);g.I.cB=pU(35);g.I.Jv=function(p,x){this.qoe&&this.qoe.Jv(p,x)}; g.I.Ew=function(){if(this.provider.videoData.enableServerStitchedDai&&this.kO){var p;(p=this.j.get(this.kO))!=null&&Tx(p.U)}else this.U&&Tx(this.U.U)}; g.I.zn=function(p,x){this.qoe&&dho(this.qoe,p,x);if(this.Z)this.Z.onError(p)}; g.I.onPlaybackRateChange=function(p){if(this.qoe)this.qoe.onPlaybackRateChange(p);this.U&&Tx(this.U.U)}; g.I.MF=pU(52);g.I.jA=function(p,x,a){this.qoe&&this.qoe.jA(p,x,a)}; g.I.I2=function(p,x,a){this.qoe&&this.qoe.I2(p,x,a)}; g.I.x4=function(p){var x;(x=this.qoe)==null||x.x4(p)}; g.I.Ea=function(p){var x;(x=this.qoe)==null||x.Ea(p)}; g.I.F9=function(p,x,a,v){var c;(c=this.qoe)==null||c.F9(p,x,a,v)}; g.I.RI=function(p){this.qoe&&this.qoe.RI(p)}; g.I.lG=function(p,x,a){this.qoe&&this.qoe.lG(p,x,a)}; g.I.ya=pU(23);g.I.zD=function(){if(this.qoe)return this.qoe.zD()}; g.I.cX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.kO){var p,x;return(x=(p=this.j.get(this.kO))==null?void 0:p.cX())!=null?x:{}}return this.U?this.U.cX():{}}; g.I.jI=function(){var p;return(p=this.qoe)==null?void 0:p.jI()}; g.I.Dq=function(p,x){var a;(a=this.qoe)==null||a.Dq(p,x)}; g.I.PB=function(p){return this.U?this.U.PB(p):function(){}}; g.I.getVideoData=function(){return this.provider.videoData}; g.I.resume=function(){this.qoe&&this.qoe.resume()};g.M(g.tG,g.y);g.I=g.tG.prototype;g.I.xN=function(p,x){this.sync();x&&this.U.array.length>=2E3&&this.UO("captions",1E4);x=this.U;if(p.length>1&&p.length>x.array.length)x.array=x.array.concat(p),x.array.sort(x.U);else{p=g.k(p);for(var a=p.next();!a.done;a=p.next())a=a.value,!x.array.length||x.U(a,x.array[x.array.length-1])>0?x.array.push(a):g.nG(x.array,a,x.U)}this.j=NaN;this.sync()}; g.I.Rm=function(p){p.length>1E4&&g.Hp(new g.gr("Over 10k cueRanges removal occurs with a sample: ",p[0]));if(!this.b$()){var x=new Set(p);this.Z=this.Z.filter(function(a){return!x.has(a)}); if8(this.U,x);this.sync()}}; g.I.JW=function(p,x){if(!this.b$()){var a=this.vB().find(function(v){return v.id===x&&v.namespace===p}); a&&this.Rm([a])}}; g.I.UO=function(p,x){var a=(isNaN(this.j)?Eso(this):this.j)-x;x=this.vB().filter(function(v){return v.namespace===p&&v.endthis.U,J=g.q(a,8)&&g.q(a,16),R=this.U7.Fx().isBackground()||a.isSuspended();AG(this,this.LI,J&&!R,c,"qoe.slowseek",function(){},"timeout"); var d=isFinite(this.U);d=J&&d&&Pxx(x,this.U);var b=!v||Math.abs(v-this.U)>10,r=this.z4.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),B=v===0&&this.Z&&[11,10].includes(this.Z);AG(this,this.Ra,d&&b&&!R&&(!r||!B),c,"qoe.slowseek",function(){x.seekTo(p.U)},"set_cmt"); b=d&&Ph(x.eh(),this.U);var l=this.U7.loader;d=!l||l.n_();var L=function(){x.seekTo(p.U+.001)}; AG(this,this.qT,b&&d&&!R,c,"qoe.slowseek",L,"jiggle_cmt");d=function(){return p.U7.Zu()}; AG(this,this.V6,b&&!R,c,"qoe.slowseek",d,"new_elem");var Y=Ue(a);B=a.isBuffering();var h=x.eh(),D=AD(h,v),H=D>=0&&h.end(D)>v+5;b=Y&&B&&H;r=this.U7.getVideoData();AG(this,this.hG,v<.002&&this.U<.002&&J&&g.dZ(this.z4)&&g.xu(r)&&!R,c,"qoe.slowseek",d,"slow_seek_shorts");AG(this,this.T,r.nT()&&J&&!R&&!r.pI,c,"qoe.slowseek",d,"slow_seek_gapless_shorts");AG(this,this.Zt,b&&!R,Y&&!B,"qoe.longrebuffer",L,"jiggle_cmt");AG(this,this.pI,b&&!R,Y&&!B,"qoe.longrebuffer",d,"new_elem_nnr");if(l){var f=l.getCurrentTime(); J=x.Iy();J=teo(J,f);J=!l.isSeeking()&&v===J;AG(this,this.OS,Y&&B&&J&&!R,Y&&!B&&!J,"qoe.longrebuffer",function(){x.seekTo(f)},"seek_to_loader")}J={}; L=AD(h,Math.max(v-3.5,0));var m=L>=0&&v>h.end(L)-1.1,X=L>=0&&L+1=0&&m&&X<11;J.close2edge=m;J.gapsize=X;J.buflen=h.length;this.Z&&(J.seekSour=this.Z);AG(this,this.O7,Y&&B&&!R,Y&&!B,"qoe.longrebuffer",function(){},"timeout",J); J=a.isSuspended();J=this.U7.X4()&&!J;AG(this,this.V,J,!J,"qoe.start15s",function(){p.U7.Fq("ad")},"ads_preroll_timeout"); J=this.z4.experiments.cO("html5_use_playback_rate_in_skip_slow_ad")?this.U7.getPlaybackRate()*1E3:1E3;D=v-this.B5;AG(this,this.gr,g.xu(r)&&l,Y&&!B,"qoe.longrebuffer",function(){p.U7.Hv()},"reset_media_source"); AG(this,this.tG,g.xu(r)&&l,Y&&!B,"qoe.longrebuffer",d,"reset_media_element");this.B===0&&(this.S=v);l=B&&this.U===0&&v>1&&v===this.S;AG(this,this.F5,g.xu(r)&&l,Y&&!B,"qoe.slowseek",function(){x.seekTo(0)},"reseek_after_time_jump"); R=a.isOrWillBePlaying()&&!R;H=this.U7.iH()-v<6&&!H&&this.U7.DD();AG(this,this.Y,r.nT()&&R&&B&&H,Y&&!B,"qoe.longrebuffer",function(){p.U7.Zu(!1,!0)},"handoff_end_long_buffer_reload"); R=this.Z===104||this.U7.Nv;a=kh(r)&&r.isAd()&&!r.pI&&R&&(B||g.q(a,8)&&g.q(a,16));AG(this,this.HO,a,c,"qoe.start15s",d,"gapless_ad_slow_start");a=kh(r)&&!r.pI&&R&&b;AG(this,this.T4,a,c,"qoe.longrebuffer",d,"gapless_slow_start");this.B=v;this.C.start()}}; Nr.prototype.zn=function(p,x,a){x=this.cX(x);x.wn=a;x.wdup=this.j[p]?"1":"0";this.U7.zn(new g.dD(p,x));this.j[p]=!0}; Nr.prototype.cX=function(p){p=Object.assign(this.U7.cX(!0),p.cX());this.U&&(p.stt=this.U.toFixed(3));this.U7.getVideoData().isLivePlayback&&(p.ct=this.U7.getCurrentTime().toFixed(3),p.to=this.U7.Y0().toFixed(3));delete p.uga;delete p.euri;delete p.referrer;delete p.fexp;delete p.vm;return p}; OZ.prototype.reset=function(){this.U=this.Z=this.j=this.startTimestamp=0;this.B=!1}; OZ.prototype.test=function(p){if(!this.C||this.Z)return!1;if(!p)return this.reset(),!1;p=(0,g.WR)();if(!this.startTimestamp)this.startTimestamp=p,this.j=0;else if(this.j>=this.C)return this.Z=p,!0;this.j+=1;return!1}; OZ.prototype.cX=function(){var p={},x=(0,g.WR)();this.startTimestamp&&(p.wsd=(x-this.startTimestamp).toFixed());this.Z&&(p.wtd=(x-this.Z).toFixed());this.U&&(p.wssd=(x-this.U).toFixed());return p};g.M(sSQ,g.y);g.I=sSQ.prototype;g.I.setMediaElement=function(p){(this.mediaElement=p)?(this.mediaElement&&(this.C||this.j||!this.mediaElement.yR()||this.seekTo(.01,{Cp:"seektimeline_setupMediaElement"})),Pv(this)):ne(this)}; g.I.getCurrentTime=function(p){p=p===void 0?!1:p;if(qr(this.U7)){if(this.D("html5_use_centralized_player_time")&&!p&&!isNaN(this.S))return this.S;if(!isNaN(this.Z))return this.Z}else{if(this.D("html5_use_centralized_player_time")&&!p&&!isNaN(this.S)&&isFinite(this.S))return this.S;if(!isNaN(this.Z)&&isFinite(this.Z))return this.Z}return this.mediaElement&&IQJ(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.j||0}; g.I.Jp=function(){return this.HO}; g.I.Sh=function(){return this.getCurrentTime()-this.Y0()}; g.I.hZ=function(){return this.U?this.U.hZ():Infinity}; g.I.isAtLiveHead=function(p){if(!this.U)return!1;p===void 0&&(p=this.getCurrentTime());return g7(this.U,p)}; g.I.HG=function(){return!!this.U&&this.U.HG()}; g.I.seekTo=function(p,x){var a=x===void 0?{}:x;x=a.Di===void 0?!1:a.Di;var v=a.CO===void 0?0:a.CO;var c=a.DL===void 0?!1:a.DL;var J=a.Bn===void 0?0:a.Bn;var R=a.Cp===void 0?"":a.Cp;var d=a.seekSource===void 0?void 0:a.seekSource;var b=a.wK===void 0?!1:a.wK;var r=a.XA===void 0?!1:a.XA;a=a.Li===void 0?!1:a.Li;b&&(p+=this.Y0());TV(this.videoData)&&d===29&&(this.HO=void 0);b=p=this.HE())||!g.AM(this.videoData),D||(H={st:H,mst:this.HE()},this.U&&this.D("html5_high_res_seek_logging")&&(H.ht=this.U.hZ(),H.adft=uqU(this.U)),this.U7.jA("seeknotallowed",H)),H=D));if(!H)return this.B&&(this.B=null,Yug(this)),g.Cp(this.getCurrentTime());H=.005;r&&this.D("html5_sabr_seek_no_shift_tolerance")&&(H=0);if(Math.abs(p-this.Z)<=H&&this.F5)return this.C;R&&(H=p,(this.z4.qZ()||this.D("html5_log_seek_reasons"))&& this.U7.jA("seekreason",{reason:R,tgt:H}));d&&(this.Zt.Z=d);this.F5&&ne(this);this.C||(this.C=new bl);p&&!isFinite(p)&&RAx(this,!1);(R=a||b)||(R=p,R=!(this.videoData.isLivePlayback&&this.videoData.j&&!this.videoData.j.U&&!(this.mediaElement&&this.mediaElement.zF()>0&&BN(this.mediaElement)>0)||CT(this.videoData)&&this.Lp()===this.HE(!1)?0:isFinite(R)||!CT(this.videoData)));R||(p=uS(this,p,c));p&&!isFinite(p)&&RAx(this,!1);this.D("html5_use_centralized_player_time")?this.S=p:this.Z=this.j=p;this.gr= J;this.V=0;this.U&&(c=this.U,J=p,VdU(c,J,!1),Fib(c,J));c=this.U7;J=p;R={Di:x,seekSource:d};c.hj.j=J;a=c.oK;a.mediaTime=J;a.U=!0;R.Di&&c.F0(R);R=J>c.videoData.endSeconds&&J>c.videoData.limitedPlaybackDurationInSeconds;c.UH&&R&&isFinite(J)&&eAo(c);Jx.start&&eAo(this.U7);return this.C}; g.I.HE=function(p){if(!this.videoData.isLivePlayback)return this.U7.videoData.HE();var x;return L_(this.videoData)&&((x=this.mediaElement)==null?0:x.isPaused())&&this.videoData.U?(p=this.getCurrentTime(),uL1(this.Ez(p)*1E3)+p):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&TV(this.videoData)&&this.videoData.U?p?this.videoData.U.pI||0:this.videoData.U.f0||0:CT(this.videoData)&&this.videoData.O7&&this.videoData.U?this.videoData.U.HE()+this.timestampOffset:this.videoData.j&&this.videoData.j.U? !p&&this.U?this.U.hZ():this.U7.videoData.HE()+this.timestampOffset:this.mediaElement?gT()?uL1(this.mediaElement.xK().getTime()):BN(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.I.Lp=function(){if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&TV(this.videoData)){var p;return((p=this.videoData.U)==null?void 0:p.wb)||0}p=this.videoData?this.videoData.Lp()+this.timestampOffset:this.timestampOffset;if(L_(this.videoData)&&this.videoData.U){var x,a=Number((x=this.videoData.progressBarStartPosition)==null?void 0:x.utcTimeMillis)/1E3;x=this.getCurrentTime();x=this.Ez(x)-x;if(!isNaN(a)&&!isNaN(x))return Math.max(p,a-x)}return p}; g.I.wW=function(){this.C||this.seekTo(this.j,{Cp:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.I.x8=function(){return this.F5&&!isFinite(this.Z)}; g.I.PO=function(){K6g(this,null);this.Zt.dispose();g.y.prototype.PO.call(this)}; g.I.cX=function(){var p={};this.loader&&Object.assign(p,this.loader.cX());this.mediaElement&&Object.assign(p,this.mediaElement.cX());return p}; g.I.B3=function(p){this.timestampOffset=p}; g.I.getStreamTimeOffset=function(){return CT(this.videoData)?0:this.videoData.U?this.videoData.U.getStreamTimeOffset():0}; g.I.Y0=function(){return this.timestampOffset}; g.I.Ez=function(p){return this.videoData&&this.videoData.U?this.videoData.U.Ez(p-this.timestampOffset):NaN}; g.I.OO=function(){if(!this.mediaElement)return 0;if(P_(this.videoData)){var p=this.mediaElement,x=p.eh();p=(ew(x)&&p.getDuration()?x.end(x.length-1):0)+this.timestampOffset-this.Lp();x=this.HE()-this.Lp();return Math.max(0,Math.min(1,p/x))}return this.mediaElement.OO()}; g.I.Fz=function(p){this.Y&&(this.Y.U=p)}; g.I.EH=function(p,x){this.U7.jA("requestUtcSeek",{time:p});TV(this.videoData)&&(this.HO=p);var a;(a=this.loader)==null||a.EH(p);x&&(this.u$=x)}; g.I.AY=function(p){TV(this.videoData)&&(this.HO=void 0);if(this.u$)this.U7.jA("utcSeekingFallback",{source:"streamTime",timeSeconds:this.u$}),this.U7.seekTo(this.u$,{Cp:"utcSeekingFallback_streamTime"}),this.u$=0;else{var x=this.getCurrentTime();isNaN(x)||(p=this.Ez(x)-p,x-=p,this.U7.jA("utcSeekingFallback",{source:"estimate",timeSeconds:x}),this.U7.seekTo(x,{Cp:"utcSeekingFallback_estimate"}))}}; g.I.pz=function(){this.u$=0}; g.I.D=function(p){return this.z4&&this.z4.D(p)};g.M(VW,g.y);VW.prototype.start=function(){this.Z.start()}; VW.prototype.stop=function(){this.Z.stop()}; VW.prototype.clear=function(){for(var p=g.k(this.U.values()),x=p.next();!x.done;x=p.next())x.value.clear()}; VW.prototype.sample=function(){for(var p=g.k(this.j),x=p.next();!x.done;x=p.next()){var a=g.k(x.value);x=a.next().value;a=a.next().value;this.U.has(x)||this.U.set(x,new H38(VVO.has(x)));this.U.get(x).update(a())}this.Z.start()}; var VVO=new Set(["networkactivity"]);H38.prototype.update=function(p){this.Z?(this.buffer.add(p-this.U||0),this.U=p):this.buffer.add(p)}; H38.prototype.clear=function(){this.buffer.clear();this.U=0};xs.prototype.Kn=function(){return this.started}; xs.prototype.start=function(){this.started=!0}; xs.prototype.reset=function(){this.finished=this.started=!1};var fQg=!1;g.M(g.vl,g.Fx);g.I=g.vl.prototype;g.I.PO=function(){this.logger.debug("dispose");g.BZ(this.Nn);R0z(this.mT);this.visibility.unsubscribe("visibilitystatechange",this.mT);k2Q(this.tX);g.aZ(this.tX);Rn(this);g.zp.zg(this.VA);this.Cd();this.Iv=null;g.aZ(this.videoData);g.aZ(this.s1);g.aZ(this.mE);g.aZ(this.Ax);g.sM(this.DTg);this.UH=null;g.Fx.prototype.PO.call(this)}; g.I.lG=function(p,x,a,v,c){if(this.z4.D("html5_log_ad_playback_docid")){var J=this.tX;if(J.qoe){J=J.qoe;var R=this.z4.Zt||"yt";g.xT(J,g.sZ(J.provider),"ad_playback",[p,x,a,c,R])}}else this.tX.lG(p,x,a);this.D("html5_log_media_perf_info")&&this.jA("adloudness",{ld:v.toFixed(3),cpn:p})}; g.I.J$=function(){var p;return(p=this.loader)==null?void 0:p.J$()}; g.I.Id=function(){var p;return(p=this.loader)==null?void 0:p.Id()}; g.I.Ve=function(){var p;return(p=this.loader)==null?void 0:p.Ve()}; g.I.iN=function(){var p;return(p=this.loader)==null?void 0:p.iN()}; g.I.Sg=function(){return this.videoData.Sg()}; g.I.zG=function(){return this.D("html5_not_reset_media_source")&&!this.Sg()&&!this.videoData.isLivePlayback&&g.xu(this.videoData)&&!this.z4.supportsGaplessShorts()}; g.I.Od=function(){this.videoData.V&&(this.videoData.i7=this.videoData.i7||this.q6.md().J$(),this.videoData.Da=this.videoData.Da||this.q6.md().Id());if(ECf(this.videoData)||!Bw(this.videoData)){var p=this.videoData.errorDetail;this.jk(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),p,p,this.videoData.Jn||void 0)}this.D("html5_generate_content_po_token")&&this.jY();this.D("html5_enable_d6de4")&&this.k5()}; g.I.getVideoData=function(){return this.videoData}; g.I.L=function(){return this.z4}; g.I.F$=function(){return this.lf.F$(this.Iv)}; g.I.Fx=function(){return this.visibility}; g.I.BF=function(){return this.mediaElement&&this.mediaElement.d4()?this.mediaElement.BX():null}; g.I.gV=function(){return this.mediaElement}; g.I.Nq=function(){if(this.videoData.errorCode)return!1;this.L().S&&this.L().houseBrandUserStatus&&this.jA("hbut",{status:this.L().houseBrandUserStatus},!0);if(this.videoData.mU())return!0;this.jk("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.I.Ih=function(p){(p=p===void 0?!1:p)||jn_(this.tX);this.Vj=p;!this.Nq()||this.fZ.Kn()?g.dZ(this.z4)&&this.videoData.isLivePlayback&&this.fZ.Kn()&&!this.fZ.finished&&!this.Vj&&this.UF():(this.fZ.start(),p=this.tX,g.sZ(p.provider),p.qoe&&RPT(p.qoe),this.UF())}; g.I.UF=function(){if(this.videoData.isLoaded()){var p=this.s1;g.e_(p.JG.experiments,"html5_player_min_build_cl")>0&&g.e_(p.JG.experiments,"html5_player_min_build_cl")>788253185&&jux(p,"oldplayer");AAx(this)}else this.videoData.YO||this.videoData.r_?this.Vj&&g.dZ(this.z4)&&this.videoData.isLivePlayback||(this.videoData.YO?kH_(this.videoData):(p=this.tX,p.qoe&&(p=p.qoe,cv(p,"protected"),p.provider.videoData.C?p.b6():p.provider.videoData.subscribe("dataloaded",p.b6,p)),jKJ(this.videoData))):!this.videoData.loading&& this.JE&&GfI(this)}; g.I.v1=function(p){this.DU=p;this.loader&&(pyU(this.loader,new g.d7(p)),this.jA("sdai",{sdsstm:1}))}; g.I.Pe=function(p,x,a){var v;(v=this.loader)==null||v.Pe(p,x,a)}; g.I.DG=pU(8);g.I.isFullscreen=function(){return this.visibility.isFullscreen()}; g.I.isBackground=function(){return this.visibility.isBackground()}; g.I.xa=function(){var p=this;this.logger.debug("Updating for format change");cl(this).then(function(){return sJ(p)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.I.I_=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Ih();this.Nq()&&!g.q(this.playerState,128)&&(this.r$.Kn()||(this.r$.start(),this.videoData.ev?this.yp(Mf(this.playerState,4)):this.yp(Mf(Mf(this.playerState,8),1))),O3N(this))}; g.I.Y8=function(){return this.fZ.finished}; g.I.sendAbandonmentPing=function(){g.q(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.KL(!0),k2Q(this.tX),g.aZ(this.tX),g.zp.zg(this.VA))}; g.I.hv=function(p,x,a){p=p===void 0?!0:p;(x===void 0||x)&&this.mediaElement&&this.mediaElement.pause();p&&a&&this.loader&&CT(this.videoData)&&this.loader.F9(a);this.yp(p?new g.hL(14):new g.hL)}; g.I.CA=function(){this.tX.Ew()}; g.I.jk=function(p,x,a,v,c,J){this.logger.debug(function(){return"set player error: ec="+p+", detail="+c}); var R,d;g.ro(b$v,a)?R=a:a?d=a:R="GENERIC_WITHOUT_LINK";v=(v||"")+(";a6s."+Nq());if(p==="auth"||p==="drm.auth"||p==="heartbeat.stop")a&&(v+=";r."+a.replaceAll(" ","_")),J&&(v+="sr."+J.replaceAll(" ","_"));x={errorCode:p,errorDetail:c,errorMessage:d||g.Pe[R]||"",ox:R,Jn:J||"",Zn:v,PH:x,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=p;J8(this,"dataloaderror");this.yp(IL(this.playerState,128,x));g.zp.zg(this.VA);Rn(this);this.QH()}; g.I.Fq=function(p){this.Bj=this.Bj.filter(function(x){return p!==x}); this.logger.debug(function(){return"set preroll ready for "+p}); this.r$.Kn()&&O3N(this)}; g.I.CY=function(){var p;(p=!!this.Bj.length)||(p=this.W5.U.array[0],p=!!p&&p.start<=-0x8000000000000);return p}; g.I.HG=function(){return this.hj.HG()}; g.I.isPlaying=function(){return this.playerState.isPlaying()}; g.I.qt=function(){return this.playerState.qt()&&this.videoData.ev}; g.I.getPlayerState=function(){return this.playerState}; g.I.j7=function(p){var x;(x=this.loader)==null||x.j7(p)}; g.I.pC=function(p){var x;(x=this.loader)==null||x.pC(p)}; g.I.getPlayerType=function(){return this.playerType}; g.I.getPreferredQuality=function(){if(this.Iv){var p=this.Iv;p=p.videoData.v0.compose(p.videoData.d2);p=QK(p)}else p="auto";return p}; g.I.XW=pU(16);g.I.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.I.setMediaElement=function(p){this.logger.debug("set media element");if(this.mediaElement&&p.BX()===this.mediaElement.BX()&&(p.isView()||this.mediaElement.isView())){if(p.isView()||!this.mediaElement.isView())this.cJ(),this.mediaElement=p,this.mediaElement.U7=this,RzQ(this),this.hj.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Cd();if(!this.playerState.isError()){var x=WN(this.playerState,512);g.q(x,8)&&!g.q(x,2)&&(x=Mf(x,1));p.isView()&&(x=WN(x,64));this.yp(x)}this.mediaElement= p;this.mediaElement.U7=this;!g.dZ(this.z4)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);RzQ(this);this.hj.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.s1.Zl()&&GnQ(this.mediaElement)}}; g.I.Cd=function(p,x,a){p=p===void 0?!1:p;x=x===void 0?!1:x;a=a===void 0?!1:a;this.logger.debug("remove media element");if(this.mediaElement){var v=this.getCurrentTime();v>0&&(this.hj.j=v);this.hj.setMediaElement(null);!p&&this.zG()?ajN(this):this.Fo(a);this.loader&&(e7(this.loader),r$(this,x));this.e4.stop();if(this.mediaElement&&(!this.r$.Kn()&&!this.X4()||this.playerState.isError()||g.q(this.playerState,2)||this.yp(Mf(this.playerState,512)),this.mediaElement)){this.cJ();if(p||!this.mediaElement.isView())this.FV.X9("mesv_s"), this.mediaElement.stopVideo(),Bl(this);this.mediaElement=this.mediaElement.U7=null}}}; g.I.playVideo=function(p,x){p=p===void 0?!1:p;x=x===void 0?!1:x;var a=this,v,c,J,R,d,b;return g.t(function(r){if(r.Z==1){a.logger.debug("start play video");var B=window.google_image_requests;B&&B.length>10&&(window.google_image_requests=B.slice(-10));if(g.q(a.playerState,128))return r.return();if(a.s1.Gl())return a.publish("signatureexpired"),r.return();a.mediaElement&&jn_(a.tX);a.I_();(g.q(a.playerState,64)||p)&&a.yp(Mf(a.playerState,8));return a.r$.finished&&a.mediaElement?a.Iv||!a.xu?r.Ia(2):g.C(r, a.xu,3):r.return()}if(r.Z!=2&&g.q(a.playerState,128))return r.return();if(!a.videoData.j)return a.videoData.isLivePlayback&&!g.jF(a.z4.C,!0)?(v="html5.unsupportedlive",c=2):(v=a.videoData.Sg()?"fmt.unplayable":"fmt.noneavailable",c=1),g.Hp(Error("selectableFormats")),a.jk(v,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),r.return();if(a.F8()&&a.videoData.j.U)return a.logger.debug("rebuild playbackData for airplay"),r.return(cl(a));if(qr(a))B=a.hj,fT(B.videoData)&&!B.isAtLiveHead(B.getCurrentTime())&& B.HG()&&B.U7.seekTo(Infinity,{Cp:"seektimeline_peggedToLive",seekSource:34});else if(fT(a.videoData)&&(J=a.getCurrentTime()R;if(!d||!R){J&&d&&(v=Math.max(v,J));var b;J=UrQ(x,(b=c.U)==null?void 0:b.videoInfos);b=x.U7.getPlaybackRate();b>1&&J&&(b=VAx(x.z4.C,c.U.videoInfos,b),p.U!==0&&b< p.U&&x.U7.setPlaybackRate(1));var r,B;p=((r=c.videoData.Z)==null?void 0:(B=r.video)==null?void 0:B.qualityOrdinal)||0;g.Qe("yt-player-quality",{quality:v,previousQuality:p},31104E3);x.z4.schedule.policy.B=r9()>=480;if(x.D("html5_exponential_memory_for_sticky")){r=x.z4.MN;B=1;var l=l===void 0?!1:l;C6I(r,"sticky-lifetime");r.values["sticky-lifetime"]&&r.Ib["sticky-lifetime"]||(r.values["sticky-lifetime"]=0,r.Ib["sticky-lifetime"]=0);l&&Od(r,"sticky-lifetime")>.0625&&(B=r.Ib["sticky-lifetime"]*2);r.values["sticky-lifetime"]+= 1*Math.pow(2,r.U/B);r.Ib["sticky-lifetime"]=B;r.B.start()}if(x.D("html5_perf_cap_override_sticky")){l=x.j;r=x.D("html5_perserve_av1_perf_cap");r=r===void 0?!1:r;if(r===void 0?0:r){B=lH();p=g.k(Object.keys(B));for(x=p.next();!x.done;x=p.next())x=x.value,x.indexOf("1")!==0&&delete B[x];g.Qe("yt-player-performance-cap",B,2592E3)}else g.Sh("yt-player-performance-cap");V0I(r);if(r){r=g.k(eB.keys());for(B=r.next();!B.done;B=r.next())B=B.value,B.startsWith("1")||eB.delete(B);r=g.k(DI.values());for(B=r.next();!B.done;B= r.next())B=B.value,B.startsWith("1")||DI.delete(B);r=g.k(l.keys());for(B=r.next();!B.done;B=r.next())B=B.value,B.startsWith("1")||l.delete(B)}else eB.clear(),DI.clear(),l.clear()}}}this.loader&&(l=this.loader,a=a||"",l.policy.U?sH(l.B.U,a):sH(l.U.C,a));this.QQ()}; g.I.getUserPlaybackQualityPreference=function(){return this.videoData.j&&!this.videoData.j.U?QK(this.videoData.v0):TT[r9()]}; g.I.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.I.setUserAudio51Preference=function(p,x){this.getUserAudio51Preference()!==p&&(this.jA("toggle51",{pref:p}),g.Qe("yt-player-audio51",p,x?31536E3:2592E3),this.xa())}; g.I.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.I.setProximaLatencyPreference=function(p){var x=this.getProximaLatencyPreference();this.jA("proxima",{pref:p});g.Qe("yt-player-proxima-pref",p,31536E3);x!==p&&(p=this.hj,p.T4=!0,p.U7.seekTo(Infinity,{Cp:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.I.getProximaLatencyPreference=function(){var p;return(p=BX())!=null?p:0}; g.I.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.I.jY=function(){this.videoData.videoId?this.q6.jY(this.videoData):this.jA("povid",{})}; g.I.k5=function(){this.videoData.videoId?this.q6.k5(this.videoData):this.jA("piavid",{})}; g.I.QQ=function(){if(!this.b$()&&!g.q(this.playerState,128)&&this.videoData.j){if(this.videoData.j.U)an(this);else{var p=b9(this),x=this.videoData;a:{var a=this.videoData.Kp;if(p.U){for(var v=g.k(a),c=v.next();!c.done;c=v.next()){c=c.value;var J=c.getInfo(),R=g.kc[J.video.quality];if((!p.j||J.video.quality!=="auto")&&R<=p.U){a=c;break a}}a=a[a.length-1]}else a=a[0]}x.LI=a;uF1(this,p.reason,bSx(this,this.videoData.LI))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.hj.T= !1,this.playVideo()}}; g.I.pX=function(p,x){if(this.b$()||g.q(this.playerState,128))return!1;var a,v=!((a=this.videoData.j)==null||!a.U);a=v&&x?this.getCurrentTime()-this.Y0():NaN;if(this.z4.experiments.cO("html5_record_audio_format_intent")){var c=this.tX;if(c.qoe){c=c.qoe;var J=[p.AX.id,isNaN(a)?"m":"t"];g.xT(c,g.sZ(c.provider),"afi",J)}}if(v)return x&&(v=b3N(this.hj),this.jA("aswh",{id:p.id,xtags:p.xtags,bh:v.toFixed(3)})),this.loader.setAudioTrack(p,a,x),!0;if(F6g(this)){a:{x=this.mediaElement.audioTracks();for(v=0;v< x.length;++v)if(a=x[v],a.label===p.AX.getName()){if(a.enabled){x=!1;break a}x=a.enabled=!0;break a}x=void 0}x&&this.jA("hlsaudio",{id:p.id})}else{a:if(x=this.videoData,x.B&&!tD(x.B)||p===x.PG||!x.Kp||x.Kp.length<=0)x=!1;else{v=g.k(x.Kp);for(a=v.next();!a.done;a=v.next()){a=a.value;if(!(a instanceof Ck)){x=!1;break a}c=p.AX.getId();a.Z&&(aUN(a.Z,c),a.JX=null)}x.PG=p;x=!0}x&&sJ(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.jA("hlsaudio",{id:p.id}))}return!0}; g.I.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.I.getAudioTrack=function(){if(F6g(this)){var p=xBg(this);if(p)return p}return this.videoData.getAudioTrack()}; g.I.sf=function(){return this.videoData.B}; g.I.rp=function(){if(this.videoData.D("html5_trigger_loader_when_idle_network")&&!this.videoData.Dp()&&TV(this.videoData)){var p;(p=this.loader)!=null&&p.Bh()}}; g.I.UB=function(){if(kh(this.videoData)&&this.videoData.D("html5_gapless_append_early")){var p;(p=this.loader)!=null&&p.Bh()}}; g.I.onPlayerRequestSent=function(p){this.q6.onPlayerRequestSent(p)}; g.I.k7=function(p){p=p===void 0?!1:p;if(this.loader){var x=this.loader,a=x.k7;var v=this.videoData;v=v.D("html5_ssdai_use_post_for_media")&&v.enableServerStitchedDai?!1:CT(v)&&v.wI&&!v.isAd();a.call(x,v,p)}}; g.I.Fo=function(p){p=p===void 0?!1:p;this.xg&&(this.logger.debug("remove media source"),ZVT(this.xg),this.k7(p),this.xg.dispose(),this.xg=null)}; g.I.jQ=function(){return this.xg}; g.I.zk=function(p,x,a,v){function c(R){try{JrQ(J,R,x,a)}catch(d){g.Hp(d),J.handleError(new g.dD("fmt.unplayable",{msi:"1",ename:d&&typeof d==="object"&&"name"in d?String(d.name):void 0,trg:"setmediasrc"},1))}} var J=this;x=x===void 0?!1:x;a=a===void 0?!1:a;vPb(this,v===void 0?!1:v);this.xg=p;this.zG()&&Ka(this.xg)==="open"?c(this.xg):wFo(this.xg,c)}; g.I.uj=function(p){this.logger.debug("onNeedKeyInfo");this.Yo.set(p.initData,p);this.fv&&(this.fv.uj(p),this.D("html5_eme_loader_sync")||this.Yo.remove(p.initData))}; g.I.JN=function(p){this.videoData.EO=g.DW("auto",p,!1,"u");an(this)}; g.I.Fz=function(p){var x=p.reason,a=p.U.info,v=p.token,c=p.videoId,J=this.tX,R=this.videoData;if(a!==R.B){var d=!R.B;R.B=a;x!=="m"&&x!=="t"&&(x=d?"i":"a");var b=x==="m"||x==="t";this.z4.experiments.cO("html5_refactor_sabr_audio_format_selection_logging")?this.uF=new WGT(R,a,x,"",v,c):(x=new WGT(R,a,x,"",v),J.qoe&&(J=J.qoe,a=g.sZ(J.provider),LH_(J,a,x)));this.publish("internalaudioformatchange",R,!d&&b)}this.hj.Fz(p.U.index)}; g.I.Sw=function(p){this.publish("localmediachange",p)}; g.I.dK=function(p){p=p===void 0?{}:p;var x;(x=this.loader)==null||x.dK(this.z4,Ug(this.videoData),p)}; g.I.Gl=function(){return this.s1.Gl()}; g.I.sX=function(p){this.zn(new g.dD("staleconfig",{reason:p}))}; g.I.handleError=function(p){this.s1.handleError(p)}; g.I.Zl=function(){return this.s1.Zl()}; g.I.AY=function(p){this.hj.AY(p)}; g.I.Zu=function(p,x){p=p===void 0?!1:p;x=x===void 0?!1:x;var a=this,v,c,J;return g.t(function(R){if(R.Z==1){a.loader&&a.loader.uE();a.loader&&a.loader.b$()&&Rn(a);if(a.D("html5_enable_vp9_fairplay")&&a.Sg()&&(v=a.videoData.U)!=null)for(var d in v.U)v.U.hasOwnProperty(d)&&(v.U[d].U=null,v.U[d].j=!1);a.yp(Mf(a.playerState,2048));a.publish("newelementrequired");return p?g.C(R,cl(a),2):R.Ia(2)}a.videoData.Dp()&&((c=a.loader)==null?0:c.F5)&&!qr(a)&&((J=a.isAtLiveHead())&&fT(a.videoData)?a.seekTo(Infinity, {Cp:"videoPlayer_getNewElement"}):a.videoData.S3&&a.loader&&(d=a.loader,d.nI.Dp&&(d.nI.S3||d.nI.B||d.nI.isPremiere?(d.seek(0,{Cp:"loader_resetSqless"}),d.videoTrack.V=!0,d.audioTrack.V=!0,d.videoTrack.C=!0,d.audioTrack.C=!0):Pz(d.nI)&&bG(d))));x&&a.seekTo(0,{seekSource:105});g.q(a.playerState,8)&&a.playVideo();g.k1(R)})}; g.I.FF=function(p){this.jA("hgte",{ne:+p});this.videoData.V=!1;p&&this.Zu();this.loader&&Tz_(this.loader)}; g.I.yq=function(p){this.jA("newelem",{r:p});this.Zu()}; g.I.pauseVideo=function(p){p=p===void 0?!1:p;if((g.q(this.playerState,64)||g.q(this.playerState,2))&&!p)if(g.q(this.playerState,8))this.yp(k_(this.playerState,4,8));else if(this.qt())sJ(this);else return;g.q(this.playerState,128)||(p?this.yp(Mf(this.playerState,256)):this.yp(k_(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.AM(this.videoData)&&this.loader&&r$(this,!1)}; g.I.stopVideo=function(){this.pauseVideo();this.loader&&(r$(this,!1),this.loader.Nr())}; g.I.QH=function(p,x){p=p===void 0?!1:p;x=x===void 0?!1:x;if(this.zG()&&x){var a;(a=this.mediaElement)==null||a.QH()}else{var v;(v=this.mediaElement)==null||v.stopVideo()}Bl(this);Rn(this);g.q(this.playerState,128)||(p?this.yp(WN(WN(Mf(this.playerState,4),8),16)):this.yp(IL(this.playerState)));this.videoData.videoId&&this.z4.hG.remove(this.videoData.videoId)}; g.I.seekTo=function(p,x){x=x===void 0?{}:x;this.logger.debug(function(){return"SeekTo "+p+", "+JSON.stringify(x)}); g.q(this.playerState,2)&&sJ(this);x.OA6&&this.yp(Mf(this.playerState,2048));x.seekSource!==58&&x.seekSource!==60||!this.D("html5_update_vss_during_gapless_seeking")||Mdb(this.tX,x.seekSource);this.hj.seekTo(p,x);this.W5.sync()}; g.I.F0=function(p){this.FV.B.Z=(0,g.WR)();g.q(this.playerState,32)||(this.yp(Mf(this.playerState,32,p==null?void 0:p.seekSource)),g.q(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.SV()}; g.I.PQ=function(p){p=p==null?void 0:p.seekSource;g.q(this.playerState,32)?(this.yp(k_(this.playerState,16,32,p)),this.publish("endseeking")):g.q(this.playerState,2)||this.yp(Mf(this.playerState,16,p));p=this.FV.B;var x=this.videoData,a=this.playerState.isPaused();if(x.clientPlaybackNonce&&!isNaN(p.U)){if(Math.random()<.01){a=a?"pbp":"pbs";var v={startTime:p.U};x.S&&(v.cttAuthInfo={token:x.S,videoId:x.videoId});Dy("seek",v);g.k8({clientPlaybackNonce:x.clientPlaybackNonce},"seek");isNaN(p.Z)||Wa("pl_ss", p.Z,"seek");Wa(a,(0,g.WR)(),"seek")}p.reset()}}; g.I.V5=function(p){this.PQ(p)}; g.I.P3=function(){this.publish("SEEK_COMPLETE")}; g.I.W7=function(p){var x=this.q6,a=this.videoData.clientPlaybackNonce,v=this.playerType;if(p.scope===4){var c=p.type;if(c){var J=x.pW(),R=J.getVideoData().clientPlaybackNonce;v===1&&(R=a);if(v=m1I(x,R)){if(a=v.getVideoData())p.writePolicy===2&&a.sabrContextUpdates.has(c)||(p.sendByDefault&&a.HO.add(c),a.sabrContextUpdates.set(c,p)),x.D("html5_enable_t1_enf_on_sabr")&&(p=c===5,c=RFN(a.playerResponse),p?(p=c?1:0,xI(p,"m.p_",{}),yT("MBSTAT",p)):p=1,p===0&&x.X5.NT("onAbnormalityDetected"))}else J.jA("scuset", {ncpf:"1",ccpn:R,crcpn:a})}else g.Hp(Error("b/380308491: contextUpdateType is undefined"))}}; g.I.h4=function(){if(this.playerType===2)return this.q6.h4("")}; g.I.getCurrentTime=function(p){return this.hj.getCurrentTime(p===void 0?!1:p)}; g.I.Jp=function(){return this.hj.Jp()}; g.I.Sh=function(){return this.hj.Sh()}; g.I.DR=function(){return this.Sh()}; g.I.hZ=function(){return this.hj.hZ()}; g.I.getPlaylistSequenceForTime=function(p){return this.videoData.getPlaylistSequenceForTime(p-this.Y0())}; g.I.BU=function(){var p=NaN;this.mediaElement&&(p=this.mediaElement.BU());return p>=0?p:this.getCurrentTime()}; g.I.Ez=function(){var p;return((p=this.videoData.U)==null?0:p.Ez)?this.videoData.U.Ez(this.getCurrentTime()-this.Y0()):this.mediaElement&&(p=this.mediaElement.xK())&&(p=p.getTime(),!isNaN(p))?p/1E3+this.getCurrentTime():NaN}; g.I.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Y0():this.HE()?this.HE():0}; g.I.sI=function(){var p=new T$1;if(this.loader){var x=this.z4.schedule,a=this.z4.qZ();a=a===void 0?!1:a;p.We=x.O7;p.YW=x.tG;p.bandwidthEstimate=ZG(x);if(a){a=(x.Y.f3()*1E3).toFixed();var v=(x.F5.f3()*1E3).toFixed(),c=Ed(x).toFixed(2),J=((x.V.f3()||0)*1E9).toFixed(2),R=x.j.f3().toFixed(0),d=x.qT.f3().toFixed(0),b=x.T.percentile(.5).toFixed(2),r=x.T.percentile(.92).toFixed(2),B=x.T.percentile(.96).toFixed(2),l=x.T.percentile(.98).toFixed(2);x.U?x.U.reset():x.U=new SF;x.U.add(x.u$);x.U.add(x.interruptions.length); for(var L=0,Y=x.interruptions.length-1;Y>=0;Y--){var h=x.interruptions[Y];x.U.add(h-L);L=h}L=0;for(Y=x.B.length-1;Y>=0;Y--){h=x.B[Y];var D=h.stamp/36E5;x.U.add(D-L);L=D;x.U.add(h.net/1E3);x.U.add(h.max)}x=x.U.E6();p.U={ttr:a,ttm:v,d:c,st:J,bw:R,abw:d,v50:b,v92:r,v96:B,v98:l,"int":x}}FHQ(this.loader,p)}else this.mediaElement&&(p.QK=ll(this.mediaElement));p.We=this.We;p.YW=this.YW;p.j=this.isAtLiveHead()&&this.isPlaying()?gN_(this):NaN;return p}; g.I.dF=function(p,x){this.YW+=p;this.We+=x}; g.I.OO=function(){return this.mediaElement?g.AM(this.videoData)?1:P_(this.videoData)?this.isAtLiveHead()||this.HG()?1:this.hj.OO():this.mediaElement.OO():0}; g.I.M0=function(){var p=this.k6,x=pf(p,"bandwidth"),a=pf(p,"bufferhealth"),v=pf(p,"livelatency"),c=pf(p,"networkactivity"),J=Fb(p,"bandwidth"),R=Fb(p,"bufferhealth"),d=Fb(p,"livelatency");p=Fb(p,"networkactivity");var b=this.FG(),r=b.droppedVideoFrames;b=b.totalVideoFrames;var B=this.getCurrentTime();if(this.fv){var l="IT/"+(this.fv.U.getInfo()+"/"+QK(this.sO()));l+="/"+this.fv.getInfo()}else l="";var L=this.isGapless(),Y=this.BN(),h=this.zD(),D=g.d$(this),H=this.getPlayerState(),f=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var m=0;var X="";if(this.DU){if(this.DU.Zh){X="D,";break a}m=this.DU.yK;X=this.DU.ek.substring(0,4)}m>0?(m="AD"+m+", ",X&&(m+=X+", "),X=m):X=""}return{D8:J,AK:R,currentTime:B,Vh:l,droppedVideoFrames:r,isGapless:L,BN:Y,UC:h,nM:x,MW:a,tM:v,XD:c,G9:d,WV:p,Cf:D,playerState:H,Kf:f,Ok:X,totalVideoFrames:b}}; g.I.cX=function(p){var x={};if(p===void 0?0:p){Object.assign(x,this.tX.cX());this.mediaElement&&(Object.assign(x,this.mediaElement.cX()),p=this.FG(),x.dvf=p.droppedVideoFrames,x.tvf=p.totalVideoFrames);this.loader&&Object.assign(x,this.loader.cX());this.fv&&(x.drm=JSON.stringify(this.fv.cX()));x.state=this.playerState.state.toString(16);g.q(this.playerState,128)&&(x.debug_error=JSON.stringify(this.playerState.RB));this.CY()&&(x.prerolls=this.Bj.join(","));this.videoData.ol&&(x.ismb=this.videoData.ol); this.videoData.latencyClass!=="UNKNOWN"&&(x.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(x.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)x.is_mosaic=1;this.videoData.cotn&&(x.is_offline=1,x.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(x.playerResponseCpn=this.videoData.playerResponseCpn);this.q6.isOrchestrationLeader()&&(x.leader=1);this.videoData.isLivePlayback&& (this.videoData.U&&GR(this.videoData.U)&&(x.segduration=GR(this.videoData.U)),p=this.hj,x.lat=p.Y?N$Q(p.Y.B):0,x.liveutcstart=this.videoData.liveUtcStartSeconds);x.relative_loudness=this.videoData.tU.toFixed(3);if(p=g.d$(this))x.optimal_format=p.video.qualityLabel;x.user_qual=r9();x.release_version=K[41]}x.debug_videoId=this.videoData.videoId;return x}; g.I.addCueRange=function(p){this.Yr([p])}; g.I.removeCueRange=function(p){this.W5.Rm([p])}; g.I.Bu=function(){var p=this.W5;if(p.U7.L().D("html5_sort_cueranges_on_update")&&!(p.vB().length<=0||p.b$())){var x=p.U;x.array.sort(x.U)}p.sync()}; g.I.UO=function(p,x){return this.W5.UO(p,x)}; g.I.Yr=function(p,x){this.W5.xN(p,x)}; g.I.Ge=function(p){this.W5.Rm(p)}; g.I.vB=function(){return this.W5.vB()||[]}; g.I.qm=function(){return this.BZ}; g.I.F8=function(){return this.visibility.F8()}; g.I.rK=function(){this.mediaElement&&this.mediaElement.rK()}; g.I.hmd=function(){J8(this)}; g.I.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.I.cJ=function(){g.UU(this.Pi)}; g.I.bpr=function(){this.SV();this.publish("onLoadProgress",this.OO())}; g.I.FP=function(p){var x=p.target.jU();if(this.mediaElement&&this.mediaElement.jU()&&this.mediaElement.jU()===x){jOT(this,p.type);switch(p.type){case "error":var a=Y_(this.mediaElement)||"",v=this.mediaElement.Z9();if(a==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.jA("capchg",{msg:v}),this.Zu(!0)):cl(this);return}if(this.mediaElement.hasError()&&lI1(this.s1,a,{msg:v,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.AS()===4){this.QH();Kf(this,"unplayable"); return}break;case "durationchange":a=this.mediaElement.getDuration();isFinite(a)&&(!this.xg||a>0)&&a!==1&&this.xb(a);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());osT(this.W5);this.tX.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":MoN(this);this.publish("onLoadedMetadata");dBg(this);a=this.Ez();this.videoData.Ko&&(this.videoData.Ko=a);break;case "loadstart":dBg(this);break;case "progress":case "suspend":this.Eq.tB(); break;case "playing":this.FV.X9("plev");this.Bg&&!qr(this)&&(this.Bg=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Cp:"videoplayer_onPlaying"})));break;case "timeupdate":a=this.mediaElement&&!this.mediaElement.getCurrentTime();v=this.mediaElement&&this.mediaElement.zF()===0;if(a&&(!this.z3||v))return;this.z3=this.z3||!!this.mediaElement.getCurrentTime();KWI(this);this.SV();if(!this.mediaElement||this.mediaElement.jU()!==x)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.Iy().length>0&&this.mediaElement.eh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.zF()>2||!this.mediaElement.isSeeking()&&Ph(this.mediaElement.eh(),this.mediaElement.getCurrentTime()))&&(a=this.mediaElement.cX(),a.bh=ll(this.mediaElement).toFixed(3),this.jA("uwe",a));break;case "resize":MoN(this); this.videoData.Z&&this.videoData.Z.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.S8&&g.q(this.playerState,8)&&!g.q(this.playerState,1024)&&this.getCurrentTime()===0&&g.BR){Kf(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.jU()===x){kfQ(this.hj,p);this.publish("videoelementevent",p);x=this.playerState;v=this.oK;var c=this.mediaElement;a=this.videoData.clientPlaybackNonce;if(!g.q(x,128)){var J=x.state; c=c?c:p.target;var R=c.getCurrentTime();if(!g.q(x,64)||p.type!=="ended"&&p.type!=="pause"){var d=c.getDuration();d=c.isEnded()||R>1&&Math.abs(R-d)<1.1;var b=p.type==="pause"&&c.isEnded();R=p.type==="ended"||p.type==="waiting"||p.type==="timeupdate"&&!g.q(x,4)&&!zx(v,R);if(b||d&&R)c.Xc()>0&&c.jU()&&(J=14);else switch(p.type){case "error":Y_(c)&&(J|=128);break;case "pause":g.q(x,256)?(J^=256)||(J=64):g.q(x,32)||g.q(x,2)||g.q(x,4)||(J=4,g.q(x,1)&&g.q(x,8)&&(J|=1));break;case "playing":R=J;J=(J|8)&-1093; R&4?(J|=1,jA(v,c,!0)):zx(v,c.getCurrentTime())&&(J&=-2);g.q(x,1)&&jA(v,c)&&(J|=1);break;case "seeking":J|=16;g.q(x,8)&&(J|=1);J&=-3;break;case "seeked":J&=-17;jA(v,c,!0);break;case "waiting":g.q(x,2)||(J|=1);jA(v,c);break;case "timeupdate":R=g.q(x,16),d=g.q(x,4),(g.q(x,8)||R)&&!d&&zx(v,c.getCurrentTime())&&(J=8),jA(v,c)&&(J|=1)}}v=J;J=null;v&128&&(J=p.target,c=Y_(J),R=1,c?(c==="capability.changed"&&(R=2),d="GENERIC_WITHOUT_LINK",b=J.cX(),b.mediaElem="1",b.trg="melem",/AUDIO_RENDERER/.test(J.Z9())&& (d="HTML5_AUDIO_RENDERER_ERROR"),J={errorCode:c,errorMessage:g.Pe[d]||"",ox:d,Zn:Ki(b),PH:R,cpn:x.RB?x.RB.cpn:""}):J=null,J&&(J.cpn=a));x=IL(x,v,J)}!g.q(this.playerState,1)&&g.q(x,1)&&hzb(this,"evt"+p.type);this.yp(x)}}}; g.I.MAr=function(p){p=p.U.availability==="available";p!==this.BZ&&(this.BZ=p,this.publish("airplayavailabilitychange"))}; g.I.Kdg=function(){var p=(0,g.WR)(),x=this.mediaElement.F8();this.jA("airplay",{ia:x});!x&&!isNaN(this.bX)&&p-this.bX<2E3||(this.bX=p,x!==this.F8()&&(p=this.visibility,p.U!==x&&(p.U=x,p.mT()),this.jA("airplay",{rbld:x}),this.xa()),this.publish("airplayactivechange"))}; g.I.JY=function(p){if(this.loader){var x=this.loader,a=x.j,v=x.getCurrentTime(),c=Date.now()-a.T;a.T=NaN;a.jA("sdai",{adfetchdone:p,d:c});p&&!isNaN(a.V)&&a.Z!==3&&P4(a.loader,v,a.V,a.S);a.policy.Z?a.C=NaN:a.B=NaN;AP(a,4,a.Z===3?"adfps":"adf");e7(x)}}; g.I.Oa=function(){g.BZ(this.Nn);this.e4.stop();this.videoData.pI=!0;this.z4.jy=!0;this.z4.Zp=0;var p=this.s1;if(p.videoData.Z){var x=p.JG.C,a=p.videoData.Z.rr;x.B.has(a)&&(x.B.delete(a),x.Z=!0)}p.U.stop();this.U4();g.q(this.playerState,8)&&this.yp(WN(this.playerState,65));this.Vj=!1;p=this.tX;p.U&&c8x(p.U);p.Z&&(p=p.Z,x=g.sZ(p.provider),p.U<0&&(p.U=x,p.delay.start()),p.Z=x,p.B=x);g.Pk(this.mE);this.publish("playbackstarted");(p=g.$t("yt.scheduler.instance.clearPriorityThreshold"))?p():eh(0)}; g.I.U4=function(){var p=this.q6.oA(),x={},a={};!U_("pbs",this.FV.timerName)&&dG.measure&&dG.getEntriesByName&&(dG.getEntriesByName("mark_nr")[0]?vwN("mark_nr"):vwN());p.videoId&&(x.videoId=p.videoId);p.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(x.clientPlaybackNonce=p.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(a.isPausedOnLoad=!0);a.itag=p.Z?Number(p.Z.itag):-1;p.OT&&(a.preloadType=String(this.Lh?2:1));x.liveStreamMode=EGv[gY(p)];x.playerInfo=a;this.FV.infoGel(x); if(this.loader){p=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(p.j&&(x=window.performance.getEntriesByName(p.j),x.length&&(x=x[0],p.tick("vri",x.fetchStart),p.tick("vdns",x.domainLookupEnd),p.tick("vreq",x.requestStart),p.tick("vrc",x.responseEnd))),p.Z&&(x=window.performance.getEntriesByName(p.Z),x.length&&(x=x[0],p.tick("ari",x.fetchStart),p.tick("adns",x.domainLookupEnd),p.tick("areq",x.requestStart),p.tick("arc",x.responseEnd))));p=p.ticks;for(var v in p)p.hasOwnProperty(v)&& this.FV.tick(v,p[v])}}; g.I.SV=function(p){var x=this;p=p===void 0?!1:p;if(this.mediaElement&&this.videoData){rA1(this.hj,this.isPlaying());var a=this.getCurrentTime();if(this.loader&&(g.q(this.playerState,4)&&g.AM(this.videoData)||g.q(this.playerState,32)&&TV(this.videoData)||$a_(this.loader,a),this.D("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var v;this.jA("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(v=this.loader)==null?void 0:v.currentTime},!0)}a> 5&&(this.hj.j=a);(v=g.nP())?g.zp.zg(this.VA):g.rT(this.VA);var c=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!c||L_(this.videoData))&&!g.q(this.playerState,128)){var J=function(){if(x.mediaElement&&!g.q(x.playerState,128)){x.z4.qZ()&&jOT(x,"pfx");var R=x.getCurrentTime();x.D("html5_buffer_underrun_transition_fix")&&(R-=x.Y0());var d=ll(x.mediaElement),b=g.q(x.playerState,8),r=zx(x.oK,R),B=n$N(x.oK,R,(0,g.WR)(),d);b&&r?x.yp(WN(x.playerState,1)):b&&B?(b=x.getDuration(),r=fT(x.videoData), b&&Math.abs(b-R)<1.1?(x.jA("setended",{ct:R,bh:d,dur:b,live:r}),x.mediaElement.bd()?(x.logger.debug("seek to 0 because of looping"),x.seekTo(0,{Cp:"videoplayer_loop",seekSource:37})):x.hv()):(x.playerState.isBuffering()||hzb(x,"progress_fix"),x.yp(Mf(x.playerState,1)))):(b&&!r&&!B&&R>0&&(b=(Date.now()-x.gL)/1E3,r=x.getDuration(),R>r-1&&x.jA("misspg",{t:R.toFixed(2),d:r.toFixed(2),r:b.toFixed(2),bh:d.toFixed(2)})),x.playerState.isPaused()&&x.playerState.isBuffering()&&ll(x.mediaElement)>5&&x.yp(WN(x.playerState, 1)));x.SV()}}; this.mediaElement.Iy().length===0?this.VA=v?g.zp.vN(J,100):g.dT(J,100):this.VA=v?g.zp.vN(J,500):g.dT(J,500)}this.videoData.Iw=a;!p&&this.isPlaying()&&rro(this);oTb(this.lf,this.Iv,this.gV(),this.isBackground())&&an(this);this.publish("progresssync",p);c&&L_(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.I.MQ=function(){this.jk("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.I.zD=function(){return this.tX.zD()}; g.I.Wp=function(){return this.loader?this.loader.Wp():ZG(this.z4.schedule,!0)}; g.I.yp=function(p){if(!g.DA(this.playerState,p)){this.logger.debug(function(){return"Setting state "+p.toString()}); var x=new g.vC(p,this.playerState);this.playerState=p;IjT(this);var a=!this.ew.length;this.ew.push(x);var v=this.mediaElement&&this.mediaElement.isSeeking();g.Jz(x,1)&&this.loader&&Uhb(this.loader);v=x.oldState.state===8&&!v;g.Jz(x,1)&&v&&g.q(this.playerState,8)&&!g.q(this.playerState,64)&&this.loader&&(H_I(this.loader),this.mediaElement&&ll(this.mediaElement)>=5&&XvN(this.lf,this.Iv)&&an(this));(v=g.e_(this.z4.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.q(p,1)&&(g.q(p,8)||g.q(p, 16))?this.CE.start(v):this.CE.stop();(cC(x,8)<0||g.Jz(x,1024))&&this.e4.stop();!g.Jz(x,8)||this.videoData.pI||g.q(x.state,1024)||this.e4.start();g.q(x.state,8)&&cC(x,16)<0&&!g.q(x.state,32)&&!g.q(x.state,2)&&this.playVideo();g.q(x.state,2)&&P_(this.videoData)&&(this.xb(this.getCurrentTime()),this.SV(!0));g.Jz(x,2)&&(this.KL(!0),this.z4.qZ()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&TV(this.videoData)&&this.videoData.U&&(v={minst:""+this.videoData.U.wb,cminst:""+(this.videoData.U.Lp()+ this.Y0()),maxst:""+this.videoData.U.f0,hts:""+this.videoData.U.pI,cmaxst:""+(this.videoData.U.HE()+this.Y0())},this.jA("sabrSeekableBoundaries",v)));g.Jz(x,128)&&this.QH();this.videoData.U&&this.videoData.isLivePlayback&&!this.Nw&&(cC(x,8)<0?fAU(this.videoData.U):g.Jz(x,8)&&this.videoData.U.resume());dTf(this.hj,x);Wio(this.tX,x);if(a&&!this.b$())try{for(var c=g.k(this.ew),J=c.next();!J.done;J=c.next()){var R=J.value;tdb(this.W5,R);this.publish("statechange",R)}}finally{this.ew.length=0}}}; g.I.jr=function(){this.FV.tick("qoes")}; g.I.wW=function(){this.hj.wW()}; g.I.Wu=function(p,x,a,v){a:{var c=this.s1;v=v===void 0?"LICENSE":v;a=a.substring(0,256);var J=bh(x);p==="drm.keyerror"&&this.fv&&this.fv.Z.keys.length>1&&c.B<96&&(p="drm.sessionlimitexhausted",J=!1);var R=c.JG.experiments.cO("html5_retry_on_drm_unavailable"),d=c.JG.experiments.cO("html5_retry_on_drm_key_error"),b=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(R&&p==="drm.unavailable"||d&&p==="drm.keyerror"&&!a.match(b))c.zn("qoe.restart",{retryOnDrmError:1,e:p,detail:a}),c.U7.Zu(!0);else{if(J)if(c.videoData.Z&& c.videoData.Z.video.isHdr())MWQ(c,p);else{if(c.U7.jk(p,x,v,a),be_(c,{detail:a}))break a}else c.zn(p,{detail:a});p==="drm.sessionlimitexhausted"&&(c.jA("retrydrm",{sessionLimitExhausted:1}),c.B++,Y9x(c.U7))}}}; g.I.SS5=function(){var p=this,x=g.e_(this.z4.experiments,"html5_license_constraint_delay"),a=e$();x&&a?(x=new g.AW(function(){p.QQ();J8(p)},x),g.Z(this,x),x.start()):(this.QQ(),J8(this))}; g.I.cw=function(p){this.publish("heartbeatparams",p)}; g.I.Uv=function(p){this.jA("keystatuses",wWb(p));var x="auto",a=!1;this.videoData.Z&&(x=this.videoData.Z.video.quality,a=this.videoData.Z.video.isHdr());a:{switch(x){case "highres":case "hd2880":x="UHD2";break;case "hd2160":case "hd1440":x="UHD1";break;case "hd1080":case "hd720":x="HD";break;case "large":case "medium":case "small":case "light":case "tiny":x="SD";break;default:x="";break a}a&&(x+="HDR")}x=Le(p)?hG(p,x):p.B.includes(x);if(this.D("html5_enable_vp9_fairplay")){if(a)if(p.V){var v;if((v= this.fv)==null?0:v0(v.U))if((a=this.fv)==null)a=0;else{for(var c=v=void 0,J=g.k(a.Z.values()),R=J.next();!R.done;R=J.next())R=R.value,v||(v=yyf(R,"SD")),c||(c=yyf(R,"AUDIO"));a.JZ({sd:v,audio:c});a=v==="output-restricted"||c==="output-restricted"}else a=!x;if(a){this.jA("drm",{dshdr:1});MWQ(this.s1);return}}else{this.videoData.VO||(this.videoData.VO=!0,this.jA("drm",{dphdr:1}),this.Zu(!0));return}var d;if((d=this.fv)==null?0:v0(d.U))return}else if(d=p.V&&x,a&&!d){MWQ(this.s1);return}x||hG(p,"AUDIO")&& hG(p,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),p=wWb(p),this.dB?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.jk("drm.keyerror",2,void 0,"info."+p)):(this.dB=!0,this.zn(new g.dD("qoe.restart",Object.assign({},{retrydrm:1},p))),an(this),Y9x(this)))}; g.I.CVO=function(){if(!this.videoData.pI&&this.mediaElement&&!this.isBackground()){var p="0";this.mediaElement.zF()>0&&ll(this.mediaElement)>=5&&this.videoData.j&&this.videoData.j.U&&(this.yp(Mf(this.playerState,1)),hzb(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),p="1");IjT(this);var x=this.videoData.j;p={restartmsg:p,mfmt:!W_(this.videoData),mdrm:!(!(x&&x.videoInfos&&x.videoInfos.length&&x.videoInfos[0].F1)||this.fv),mfmtinfo:!this.videoData.Z,prerolls:this.CY()?this.Bj.join(","): "0"};if(this.fv){x=this.fv;if(x.Z.size<=0){var a="ns;";x.T||(a+="nr;");x=a+="ql."+x.j.length}else x=wWb(x.Z.values().next().value),x=Ki(x);p.drmp=x}var v;Object.assign(p,((v=this.loader)==null?void 0:v.cX())||{});var c;Object.assign(p,((c=this.mediaElement)==null?void 0:c.cX())||{});this.tX.zn("qoe.start15s",Ki(p));this.publish("loadsofttimeout")}}; g.I.xb=function(p){this.videoData.lengthSeconds!==p&&(this.videoData.lengthSeconds=p,J8(this))}; g.I.KL=function(p,x){var a=this;p=p===void 0?!1:p;if(!this.Fw)if(U_("att_s","player_att")||T3("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var c,J,R,d;return g.t(function(b){switch(b.Z){case 1:if(!(c=p)){b.Ia(2);break}return g.C(b,g.owb(),3);case 3:c=!b.U;case 2:if(c)return b.return();g.DJ(b,4);J=UAg(a.tX);if(!J)throw Error();R={};return g.C(b,g.ih8((R.cpn=a.videoData.clientPlaybackNonce,R.encryptedVideoId=a.videoData.videoId||"",R),3E4),6);case 6:d=b.U;if(a.Fw)throw Error(); if(!d.challenge)throw g.Hp(Error("Not sending attestation ping; no attestation challenge string")),Error();a.Fw=!0;var r=[d.challenge];d.error?r.push("r1c="+d.error):d.webResponse&&r.push("r1a="+d.webResponse);var B;((B=d.adblockReporting)==null?void 0:B.reportingStatus)!==void 0&&r.push("r6a="+d.adblockReporting.reportingStatus);var l;((l=d.adblockReporting)==null?void 0:l.broadSpectrumDetectionResult)!==void 0&&r.push("r6b="+d.adblockReporting.broadSpectrumDetectionResult);J(r.join("&"));T3("att_f", void 0,"player_att");g.T1(b,0);break;case 4:g.SI(b),T3("att_e",void 0,"player_att"),g.k1(b)}})})().then(function(){x==null||x()}); else{var v=new g.Zmg(this.videoData);if("c1a"in v.dU&&!g.up.isInitialized()){T3("att_wb",void 0,"player_att");this.RJ===2&&Math.random()<.01&&g.Hp(Error("Botguard not available after 2 attempts"));if(p)return;if(this.RJ<5){g.Pk(this.Ax);this.RJ++;return}}(v=g.GrJ(v))?(T3("att_f",void 0,"player_att"),DAJ(this.tX,v),this.Fw=!0):T3("att_e",void 0,"player_att")}}; g.I.iH=function(p){p=p===void 0?!1:p;return fT(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.HG()||g.AM(this.videoData))?this.getCurrentTime():this.HE(p)}; g.I.sH=function(){return this.Lp()}; g.I.HE=function(p){return this.hj.HE(p===void 0?!1:p)}; g.I.Lp=function(){return this.hj.Lp()}; g.I.Y0=function(){return this.hj?this.hj.Y0():0}; g.I.getStreamTimeOffset=function(){return this.hj?this.hj.getStreamTimeOffset():0}; g.I.xd=function(){var p=0;this.z4.D("web_player_ss_media_time_offset")&&(p=this.getStreamTimeOffset()===0?this.Y0():this.getStreamTimeOffset());return p}; g.I.setPlaybackRate=function(p){var x;this.playbackRate!==p&&UrQ(this.lf,(x=this.videoData.j)==null?void 0:x.videoInfos)&&(this.playbackRate=p,an(this));this.playbackRate=p;this.mediaElement&&this.mediaElement.setPlaybackRate(p)}; g.I.getPlaybackRate=function(){return this.playbackRate}; g.I.getPlaybackQuality=function(){var p="unknown";if(this.videoData.Z&&(p=this.videoData.Z.video.quality,p==="auto"&&this.mediaElement)){var x=this.BF();x&&x.videoHeight>0&&(p=Wh(x.videoWidth,x.videoHeight))}return p}; g.I.isHdr=function(){return!!(this.videoData.Z&&this.videoData.Z.video&&this.videoData.Z.video.isHdr())}; g.I.sendVideoStatsEngageEvent=function(p,x){var a=this.tX;a.U?(a=SW(a.U,"engage"),a.O7=p,a.send(x)):x&&x()}; g.I.PB=function(p){return this.tX.PB(p)}; g.I.isAtLiveHead=function(p,x){x=x===void 0?!1:x;return fT(this.videoData)&&(this.Qn||x)?this.hj.isAtLiveHead(p):!1}; g.I.J3=function(){var p=this.HE(),x=this.getCurrentTime(),a;(a=!fT(this.videoData))||(a=this.hj,a=!(a.U&&a.U.j));return a||this.HG()||isNaN(p)||isNaN(x)?0:Math.max(0,p-x)}; g.I.u4=function(p){(this.Qn=p)||this.e4.stop();this.videoData.U&&(p?this.videoData.U.resume():fAU(this.videoData.U));if(this.loader){var x=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.X4()&&this.videoData.isLivePlayback;p&&!x?this.loader.resume():r$(this,!0)}g.q(this.playerState,2)||p?g.q(this.playerState,512)&&p&&this.yp(WN(this.playerState,512)):this.yp(Mf(this.playerState,512));x=this.tX;x.qoe&&(x=x.qoe,g.xT(x,g.sZ(x.provider),"stream",[p?"A":"I"]))}; g.I.J_=function(p){this.tX.zn("player.exception",Ki({n:p.name,m:p.message}))}; g.I.ya=pU(22);g.I.MF=pU(51);g.I.YC=function(p){this.tX.YC(p)}; g.I.x4=function(p){this.tX.x4(p)}; g.I.RI=function(p){this.tX.RI(p)}; g.I.NV=pU(28);g.I.cB=pU(34);g.I.Ea=function(p){this.tX.Ea(p)}; g.I.F9=function(p,x,a,v){this.tX.F9(p,x,a,v)}; g.I.xP=function(){this.jA("hidden",{},!0)}; g.I.FG=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.I.n_=function(){return this.loader?this.loader.n_():!0}; g.I.setLoop=function(p){this.loop=p;this.mediaElement&&!g.dZ(this.z4)&&this.mediaElement.setLoop(p)}; g.I.bd=function(){return this.mediaElement&&!g.dZ(this.z4)?this.mediaElement.bd():this.loop}; g.I.B3=function(p){this.jA("timestamp",{o:p.toString()});this.hj.B3(p)}; g.I.mF=function(p){this.FV.tick(p)}; g.I.dI=function(p){return this.FV.dI(p)}; g.I.X9=function(p){this.FV.X9(p)}; g.I.jA=function(p,x,a){this.tX.jA(p,x,a===void 0?!1:a)}; g.I.AN=function(p,x,a){this.tX.jA(p,x,a===void 0?!1:a)}; g.I.zn=function(p){this.tX.zn(p.errorCode,Ki(p.details));p=p.errorCode;if(this.videoData.isLivePlayback&&(p==="qoe.longrebuffer"||p==="qoe.slowseek")||p==="qoe.restart"){p=this.loader?rc1(this.loader.videoTrack):{};var x,a;this.jA("lasoe",Object.assign(this.loader?rc1(this.loader.audioTrack):{},(x=this.xg)==null?void 0:(a=x.U)==null?void 0:a.nk()));var v,c;this.jA("lvsoe",Object.assign(p,(v=this.xg)==null?void 0:(c=v.Z)==null?void 0:c.nk()))}if(this.D("html5_log_centralized_player_time")){var J;this.jA("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(J=this.loader)==null?void 0:J.currentTime})}}; g.I.I2=function(p,x,a){this.tX.I2(p,x,a)}; g.I.zT=function(p,x,a,v,c,J,R,d){var b;if((b=this.videoData.U)!=null&&b.isLive){var r=x.playerType===2?x:p,B=p.videoData.videoId,l=x.videoData.videoId;if(B&&l){b=this.tX;if(b.qoe){var L=b.qoe,Y=p.cpn,h=x.cpn,D=r.videoData.K1,H=L.provider.videoData.clientPlaybackNonce,f=L.provider.videoData.videoId,m=h!==H&&l!==f;H=Y!==H&&B!==f;L.reportStats();L.adCpn&&L.adCpn!==Y||(L.adCpn=H?Y:"",L.Ql=H?B:"",L.adFormat=H?D:void 0,YsN(L,J?4:c?2:0,h,l,v),L.reportStats(),L.adCpn=m?h:"",L.Ql=m?l:"",L.adFormat=m?D:void 0, YsN(L,J?5:c?3:1,Y,B,a),L.reportStats())}a=p.cpn;if(b.j.has(a)){if(c=b.j.get(a),Xb(c,!0).send(),Ce(c),a!==b.provider.videoData.clientPlaybackNonce){r8U(c);var X;(X=b.U)==null||J8b(X);b.j.delete(a)}}else b.kO=b.provider.videoData.clientPlaybackNonce,b.kO&&b.U&&(b.j.set(b.kO,b.U),Xb(b.U).send(),Ce(b.U));X=x.cpn;r=r.videoData;v-=this.xd();if(b.j.has(X)){v=b.j.get(X);var E=v.j&&isNaN(v.C)?fe(v):NaN;v=bff(v,!1);isNaN(E)||(v.V=E);v.send()}else v=Hff(b,b.provider,r,v),b.j.set(X,v),B$f(v,new g.vC(Mf(new g.hL, 8),new g.hL)),c8x(v),(E=b.U)==null||Ce(E);b.kO=X;if(this.D("html5_unify_csi_server_stitched_transition_logging")){if(b=this.FV,E=x.cpn,v=this.videoData.clientPlaybackNonce,x=x.videoData,p=(p.cpn===v?"video":"ad")+"_to_"+(E===v?"video":"ad"),p!=="video_to_ad"){v=p==="ad_to_video"?void 0:x;r=v==null?void 0:v.jt;X={};if(x==null?0:x.S)X.cttAuthInfo={token:x.S,videoId:x.videoId};R&&(X.startTime=R);Dy(p,X);var A,u,n;R={targetVideoId:(A=x==null?void 0:x.videoId)!=null?A:"empty_video",targetCpn:E,adVideoId:(u= v==null?void 0:v.videoId)!=null?u:"empty_video",adClientPlaybackNonce:(n=r==null?void 0:r.cpn)!=null?n:v==null?void 0:v.clientPlaybackNonce};r&&(R.adBreakType=r.adBreakType,R.adType=r.adType);g.k8(R,p);We(b,d,p)}}else A=this.FV,n=this.videoData.clientPlaybackNonce,u=x.videoData,n=(p.cpn===n?"video":"ad")+"_to_"+(x.cpn===n?"video":"ad"),p={},u.S&&(p.cttAuthInfo={token:u.S,videoId:u.videoId}),R&&(p.startTime=R),Dy(n,p),g.k8({targetVideoId:u.videoId,targetCpn:x.cpn,isSsdai:!0},n),R||We(A,d,n)}}else this.logger.U(360717806, "SSTEvent for nonSS")}; g.I.uN=function(){var p=this.q6,x=p.uT;p.uT=[];return x}; g.I.v2=function(p){this.videoData.Sd=!0;this.zn(new g.dD("sabr.fallback",p));this.Zu(!0)}; g.I.EU=function(p,x){this.videoData.zp=!0;if(x===void 0||x)this.zn(new g.dD("qoe.restart",p)),this.Zu(!0)}; g.I.w0=function(p){this.jA("sdai",{aftimeout:p});this.zn(new g.dD("ad.fetchtimeout",{timeout:p}))}; g.I.P1=function(p,x){this.jA("timelineerror",p);p=new g.dD("dai.timelineerror",p);x?this.jk("dai.timelineerror",1,"RETRYABLE_ERROR",Ki(p.details)):this.zn(p)}; g.I.IT=function(){return g.sZ(this.tX.provider)}; g.I.getPlayerSize=function(){return this.J0.getPlayerSize()}; g.I.PN=function(){return this.J0.PN()}; g.I.UT=function(){return this.FV}; g.I.Ba=function(){return this.q6.Ba()}; g.I.getVolume=function(){return this.q6.getVolume()}; g.I.cG=function(){return this.q6.cG()}; g.I.isMuted=function(){return this.q6.isMuted()}; g.I.BQ=function(){return this.q6.BQ()}; g.I.xl=function(){this.Nw=!0}; g.I.D=function(p){return this.z4.D(p)}; g.I.lK=function(p,x,a,v,c){this.jA("xvt",{m:p,g:x?1:0,tt:a?1:0,np:v?1:0,c:c})}; g.I.hW=function(){var p;(p=this.loader)==null||p.resume()}; g.I.X4=function(){return g.kt(this.Bj,"ad")}; g.I.RV=function(){var p=this.getCurrentTime(),x=p-this.Y0();var a=this.mediaElement?ni(this.mediaElement.eh()):0;a=Math.floor(Math.max(a-x,0))+100;var v;return((v=this.loader)==null?0:v.RV(x,a))?(this.jA("sdai",{skipad:1,ct:x.toFixed(3),adj:a.toFixed(3)}),TV(this.videoData)&&this.loader.seek(x+a,{seekSource:89,Cp:"videoplayer_skipServerStitchedAd"}),UTQ(this.hj,p),!0):!1}; g.I.qZ=function(){return this.z4.qZ()}; g.I.qE=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.UU||"";this.q6.V2();return this.z4.x_||""}; g.I.Qq=function(){if(this.videoData.videoId)return this.videoData.Sm}; g.I.Gy=function(){return this.videoData.videoId}; g.I.q0=function(){return this.q6.hh}; g.I.lk=function(){return this.Vj}; g.I.DD=function(){return this.q6.DD()}; g.I.EH=function(p,x,a){this.yp(Mf(this.playerState,16,a));this.hj.EH(p,x)}; g.I.prefetchKeyPlay=function(){}; g.I.pz=function(){this.hj.pz()}; g.I.sM=function(p,x){var a=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.q6.sM(p,x,a)}; g.I.Dq=function(p,x){this.tX.Dq(p,x)}; g.I.jI=function(){return this.tX.jI()}; g.I.sG=function(){return this.videoData.R_}; g.I.BN=function(){return this.q6.BN()}; g.I.Q3=function(){return this.q6.Q3(this)}; g.I.qn=function(){this.Nv=!0}; g.I.yF=function(p){var x;(x=this.loader)==null||x.yF(p)};g.M(WW_,d1);g.M(l9,jZ);l9.prototype.U=function(p){p&&IW(this,this.W.getLoopVideo());this.W.logVisibility(this.element,p)}; l9.prototype.logClick=function(){this.W.logClick(this.element)}; l9.prototype.onLoopChange=function(p){IW(this,p)}; l9.prototype.Z=function(p){this.W.setLoopVideo(p)};g.M(ktI,d1);g.M(DBz,d1);g.I=DBz.prototype;g.I.seekToChapterWithAnimation=function(p){var x=this;if(g.S9(this.api)&&!(p<0)){var a=this.api.getVideoData(),v=a.Z$;if(v&&p=0)return;x=~x;g.yX(this.items,x,0,p);MW(this.menuItems.element,p.element,x)}p.subscribe("size-change",this.Ey,this);this.menuItems.publish("size-change")}; g.I.v5=function(p){p.unsubscribe("size-change",this.Ey,this);this.b$()||(g.UV(this.items,p),this.menuItems.element.removeChild(p.element),this.menuItems.publish("size-change"))}; g.I.Ey=function(){this.menuItems.publish("size-change")}; g.I.focus=function(){for(var p=0,x=0;x1&&g.Cf(this)}; g.I.Vo=function(){vqU(this);this.E7&&(a1I(this),g.$G(this.element,this.size))}; g.I.o5=function(){var p=this.U.pop();szx(this,p,this.U[this.U.length-1],!0)}; g.I.S0=function(p){if(!p.defaultPrevented)switch(p.keyCode){case 27:this.iV();p.preventDefault();break;case 37:this.U.length>1&&this.o5();p.preventDefault();break;case 39:p.preventDefault()}}; g.I.focus=function(){this.U.length&&this.U[this.U.length-1].focus()}; g.I.PO=function(){g.xK.prototype.PO.call(this);this.S&&this.S.dispose();this.V&&this.V.dispose()};g.M(Xq,g.Sd);Xq.prototype.open=function(p,x){this.initialize(p.items)&&this.Y$(x,!!x)}; Xq.prototype.initialize=function(p){g.mi(this.kN);if(p===void 0||p.length===0)return!1;var x=p.length;p=g.k(p);for(var a=p.next();!a.done;a=p.next())this.u2(a.value,x--);return!0}; Xq.prototype.u2=function(p,x){p.menuNavigationItemRenderer?RgI(this,p.menuNavigationItemRenderer,x):p.menuServiceItemRenderer&&Kvf(this,p.menuServiceItemRenderer,x)};g.M(i9,Hl);g.I=i9.prototype;g.I.IW=function(p){p.target!==this.dismissButton.element&&p.target!==this.overflowButton.element&&(this.oy(),this.onClickCommand&&this.W.NT("innertubeCommand",this.onClickCommand))}; g.I.yj=function(){this.enabled=!1;this.T.hide()}; g.I.qz=function(){return!!this.U&&this.enabled}; g.I.onVideoDataChange=function(p,x){this.hP(x);if(this.U){this.DS();a:if(!this.isCounterfactual){var a,v,c;this.banner.update({title:(a=this.U)==null?void 0:a.title,subtitle:(v=this.U)==null?void 0:v.subtitle,metadata:(c=this.U)==null?void 0:c.metadataText});var J;this.onClickCommand=g.O((J=this.U)==null?void 0:J.onTap,Qj);var R;if(p=g.O((R=this.U)==null?void 0:R.onOverflow,Qj))this.V=g.O(p,uww);var d;if((d=this.U)==null?0:d.thumbnailImage){var b,r;R=((b=this.U)==null?void 0:(r=b.thumbnailImage)== null?void 0:r.sources)||[];if(R.length===0)break a;this.thumbnailImage.update({url:R[0].url})}else{var B;if((B=this.U)==null?0:B.thumbnailIconName){var l;this.thumbnailIcon.update({icon:(l=this.U)==null?void 0:l.thumbnailIconName})}}var L;this.shouldShowOverflowButton=!((L=this.U)==null||!L.shouldShowOverflowButton);var Y;this.shouldHideDismissButton=!((Y=this.U)==null||!Y.shouldHideDismissButton)}var h;this.banner.element.setAttribute("aria-label",((h=this.U)==null?void 0:h.a11yLabel)||"");var D; this.gr=(D=this.U)==null?void 0:D.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;bWo(this)}}; g.I.wXr=function(){this.isVisible=!0;bWo(this)}; g.I.slg=function(){this.isVisible=!1;bWo(this)}; g.I.vZ=function(){Hl.prototype.vZ.call(this);this.Z&&this.W.logVisibility(this.banner.element,this.isVisible)}; g.I.oy=function(){Hl.prototype.oy.call(this,!1);this.Z&&this.W.logClick(this.banner.element)}; g.I.Cr=function(p){this.S||(this.S=new Xq(this.W),g.Z(this,this.S));var x,a;if((x=this.V)==null?0:(a=x.menu)==null?0:a.menuRenderer)this.S.open(this.V.menu.menuRenderer,p.target),p.preventDefault()}; g.I.hP=function(){}; g.I.DS=function(){}; g.I.PO=function(){this.W.Mg("suggested_action_view_model");Hl.prototype.PO.call(this)};g.M(on,i9); on.prototype.hP=function(p){var x,a,v;this.productUpsellSuggestedActionViewModel=g.O((x=p.getWatchNextResponse())==null?void 0:(a=x.playerOverlays)==null?void 0:(v=a.playerOverlayRenderer)==null?void 0:v.suggestedActionViewModel,BIX);var c;if((c=this.productUpsellSuggestedActionViewModel)==null?0:c.content){var J;this.U=g.O((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.content,qWj)}var R,d;if(this.Z=!!((R=this.productUpsellSuggestedActionViewModel)==null?0:(d=R.loggingDirectives)==null? 0:d.trackingParams)){var b,r;this.W.setTrackingParams(this.banner.element,((b=this.productUpsellSuggestedActionViewModel)==null?void 0:(r=b.loggingDirectives)==null?void 0:r.trackingParams)||null)}var B;this.isCounterfactual=!((B=this.productUpsellSuggestedActionViewModel)==null||!B.isCounterfactualServing)}; on.prototype.DS=function(){var p=[],x,a=g.k(((x=this.productUpsellSuggestedActionViewModel)==null?void 0:x.ranges)||[]);for(x=a.next();!x.done;x=a.next()){var v=x.value;v&&(x=Number(v.startTimeMilliseconds),v=Number(v.endTimeMilliseconds),isNaN(x)||isNaN(v)||p.push(new g.gZ(x,v,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.W.xN(p)};g.M(rd_,d1);g.M(t8,d1);t8.prototype.onVideoDataChange=function(p,x){var a=this;if(!Je(x)&&(p==="newdata"&&l11(this),this.U&&p==="dataloaded")){this.U=!1;var v;Sx(mo(TG(this.api.L(),(v=this.api.getVideoData())==null?void 0:g.vw(v)),function(c){MXx(a,c)}),function(){a.U=!0})}}; t8.prototype.tR=function(){var p=this;if(g.dZ(this.api.L())){var x,a=g.Hx(this.api.L(),(x=this.api.getVideoData())==null?void 0:g.vw(x));return mo(Uw(a),function(v){var c=Vy();F6(c,v);return p.api.tR(c)})}return Uw(this.api.tR())};g.M(g.w$,g.cy);g.I=g.w$.prototype;g.I.open=function(){g.ff(this.PX,this.Z)}; g.I.oB=function(p){Wv_(this);var x=this.options[p];x&&(x.element.setAttribute("aria-checked","true"),this.Aj(this.yf(p)),this.j=p)}; g.I.U1=function(p){g.mi(this.Z);for(var x={},a=!1,v=0;v=0?this.U.playbackRate:1}catch(p){return 1}}; g.I.setPlaybackRate=function(p){this.getPlaybackRate()!==p&&(this.U.playbackRate=p);return p}; g.I.bd=function(){return this.U.loop}; g.I.setLoop=function(p){this.U.loop=p}; g.I.canPlayType=function(p,x){return this.U.canPlayType(p,x)}; g.I.isPaused=function(){return this.U.paused}; g.I.isSeeking=function(){return this.U.seeking}; g.I.isEnded=function(){return this.U.ended}; g.I.tQ=function(){return this.U.muted}; g.I.Ud=function(p){jw();this.U.muted=p}; g.I.Iy=function(){return this.U.played||OB([],[])}; g.I.eh=function(){try{var p=this.U.buffered}catch(x){}return p||OB([],[])}; g.I.Vr=function(){return this.U.seekable||OB([],[])}; g.I.xK=function(){var p=this.U;return p.getStartDate?p.getStartDate():null}; g.I.getCurrentTime=function(){return this.U.currentTime}; g.I.setCurrentTime=function(p){this.U.currentTime=p}; g.I.getDuration=function(){return this.U.duration}; g.I.load=function(){var p=this.U.playbackRate;try{this.U.load()}catch(x){}this.U.playbackRate=p}; g.I.pause=function(){this.U.pause()}; g.I.play=function(){var p=this.U.play();if(!p||!p.then)return null;p.then(void 0,function(){}); return p}; g.I.zF=function(){return this.U.readyState}; g.I.Xc=function(){return this.U.networkState}; g.I.AS=function(){return this.U.error?this.U.error.code:null}; g.I.Z9=function(){return this.U.error?this.U.error.message:""}; g.I.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.U instanceof window.HTMLVideoElement&&this.U.getVideoPlaybackQuality)return this.U.getVideoPlaybackQuality();if(this.U){var p=this.U,x=p.webkitDroppedFrameCount;if(p=p.webkitDecodedFrameCount)return{droppedVideoFrames:x||0,totalVideoFrames:p}}return{}}; g.I.F8=function(){return!!this.U.webkitCurrentPlaybackTargetIsWireless}; g.I.rK=function(){return!!this.U.webkitShowPlaybackTargetPicker()}; g.I.togglePictureInPicture=function(){var p=this.U,x=window.document;window.document.pictureInPictureEnabled?this.U!==x.pictureInPictureElement?p.requestPictureInPicture():x.exitPictureInPicture():hD()&&p.webkitSetPresentationMode(p.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.I.pn=function(){var p=this.U;return new g.Ng(p.offsetLeft,p.offsetTop)}; g.I.getSize=function(){return g.aT(this.U)}; g.I.setSize=function(p){g.$G(this.U,p)}; g.I.getVolume=function(){return this.U.volume}; g.I.setVolume=function(p){jw();this.U.volume=p}; g.I.T6=function(p){this.C[p]||(this.U.addEventListener(p,this.listener),this.C[p]=this.listener)}; g.I.setAttribute=function(p,x){this.U.setAttribute(p,x)}; g.I.removeAttribute=function(p){this.U.removeAttribute(p)}; g.I.hasAttribute=function(p){return this.U.hasAttribute(p)}; g.I.rX=pU(61);g.I.NO=pU(63);g.I.c_=pU(65);g.I.cA=pU(67);g.I.Gv=function(){return lo(this.U)}; g.I.XB=function(p){g.$W(this.U,p)}; g.I.OI=function(p){return g.qW(this.U,p)}; g.I.tD=function(){return g.kk(document.body,this.U)}; g.I.audioTracks=function(){var p=this.U;if("audioTracks"in p)return p.audioTracks}; g.I.PO=function(){for(var p=g.k(Object.keys(this.C)),x=p.next();!x.done;x=p.next())x=x.value,this.U.removeEventListener(x,this.C[x]);rM.prototype.PO.call(this)}; g.I.hA=function(p){this.U.disableRemotePlayback=p};g.M(ed,g.N);g.M(Vr,g.N);Vr.prototype.show=function(){g.N.prototype.show.call(this);this.Yg();this.X5.D("html5_enable_moving_s4n_window")&&g.dZ(this.X5.L())&&this.Y()}; Vr.prototype.hide=function(){g.N.prototype.hide.call(this);this.delay.stop();this.B.stop()}; Vr.prototype.Yg=function(){var p=(0,g.WR)(),x=X9I(this.X5);u9(this.U,x.bandwidth_samples);u9(this.V,x.network_activity_samples);u9(this.j,x.live_latency_samples);u9(this.Z,x.buffer_health_samples);var a={};x=g.k(Object.entries(x));for(var v=x.next();!v.done;v=x.next()){var c=g.k(v.value);v=c.next().value;c=c.next().value;this.T[v]!==c&&(a[v]=" "+String(c));this.T[v]=c}this.update(a);p=(0,g.WR)()-p>25?5E3:500;this.delay.start(p)}; Vr.prototype.Y=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.B.start(2E4)};g.M(tXI,d1);g.M(Fq,g.y);Fq.prototype.U=function(){var p=(0,g.WR)()-this.startTime;p=pthis.B[p])&&(this.U=p,this.lE())}; g.I.onCueRangeExit=function(p){var x=nqN(this,p);x&&this.U===p&&this.api.NT("innertubeCommand",x);$N(this);this.U=void 0}; g.I.V5=function(p){this.j=p}; g.I.P3=function(){this.lE();this.j=void 0}; g.I.lE=function(){if(this.U!==void 0){var p=(p=xN(this,this.U))&&p.onCueRangeEnter?SJ(p.onCueRangeEnter):void 0;var x=xN(this,this.U);a:if(x&&x.additionalTrigger){var a=g.k(x.additionalTrigger);for(var v=a.next();!v.done;v=a.next())if(v=v.value,v.type){var c=void 0,J=void 0;if((c=this.u$[v.type])==null?0:c((J=v.args)!=null?J:{})){a=!0;break a}}a=!1}else a=!0;p&&a&&(this.api.NT("innertubeCommand",p),egJ(this,x),this.B[this.U]!==void 0&&this.B[this.U]++,this.T=!0)}}; g.I.PO=function(){this.timelyActions=this.j=this.U=this.videoId=void 0;this.B={};this.Rm();$N(this);d1.prototype.PO.call(this)};g.M(Fvf,d1);g.M(aS,jZ);aS.prototype.S=function(p){this.B(p?2:1)}; aS.prototype.Z=function(){var p=this.W.getPresentingPlayerType();p===2||p===3?(this.U=!1,this.PX.v5(this)):this.U||(p=this.hasVoiceBoostAudioTrack(),this.setEnabled(p),p=this.j()===2&&p,IW(this,p),this.PX.u2(this),this.U=!0)}; aS.prototype.PO=function(){this.PX.v5(this);jZ.prototype.PO.call(this)};g.M(ve,d1);ve.prototype.getVoiceBoostUserPreference=function(){return this.U}; ve.prototype.setVoiceBoostUserPreference=function(p){this.api.jA("vb_set",{pref:p});g.Qe("yt-player-voice-boost",p);p!==this.U&&(this.U=p,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.xa())}; ve.prototype.hasVoiceBoostAudioTrack=function(){var p,x,a=(p=this.api.getVideoData())==null?void 0:(x=p.j)==null?void 0:x.U;return a?OT(a,function(v){var c;return((c=v.audio)==null?void 0:c.Z)===!0}):!1}; ve.prototype.updateEnvironmentData=function(){this.api.L().d_=this.U};var dbx=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.M(RS,d1);RS.prototype.PO=function(){this.V&&(g.BZ(this.V),this.V=void 0);d1.prototype.PO.call(this)}; RS.prototype.V2=function(){(this.Z?!this.U:this.j)&&dH(this)}; RS.prototype.Qa=function(p,x,a){var v=this;if($bo(p)){var c=a||"";if(this.U)x=be(this,c),a0Q(p,x);else{var J=new g.rw;x.push(J.promise);this.C.promise.then(function(){var R=be(v,c);a0Q(p,R);J.resolve()})}}}; RS.prototype.jY=function(p){var x=this;if(this.Z||this.j)p.UU=be(this,p.videoId),this.U||(this.B=new bl,this.C.promise.then(function(){x.FV.dI("pot_if");p.UU=be(x,p.videoId)}))};g.M(g.Be,g.N);g.Be.prototype.select=function(){this.api.Nh(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Zr||void 0)&&this.api.logClick(this.element)}; g.Be.prototype.onClick=function(p){if(g.nH(this.api.L())&&this.api.D("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var x=this.suggestion.q1(),a={};g.Nh(this.api,a);x=g.jL(x,a);g.Wy(x,this.api,p)}else g.Ma(p,this.api,this.Z,this.suggestion.sessionData||void 0)&&this.select()}; g.Be.prototype.onKeyPress=function(p){switch(p.keyCode){case 13:case 32:p.defaultPrevented||(this.select(),p.preventDefault())}}; g.Be.prototype.onVideoDataChange=function(){var p=this.api.getVideoData(),x=this.api.L();this.Z=p.fp?!1:x.B};g.M(LyT,g.N);g.I=LyT.prototype;g.I.PO=function(){this.hide();g.UU(this.B);g.sM(this.stills);this.stills.length=0;this.Z&&this.Z.removeEventListener("click",this.TM);this.j&&this.j.removeEventListener("click",this.t$);this.U&&this.U.removeEventListener("click",this.t$);g.N.prototype.PO.call(this)}; g.I.t$=function(p){this.Y&&this.Y(p)}; g.I.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var p,x,a,v,c;var J=(((p=this.videoData)==null?0:(x=p.suggestions)==null?0:x.length)?(a=this.videoData)==null?void 0:a.suggestions:((v=this.videoData)==null?0:g.jY(v))?[(c=this.videoData)==null?void 0:g.jY(c)]:[]).slice(0,18);if((p=this.T)&&this.V&&this.S)if(g.It(p),J.length)for(this.stills.length>J.length&&g.sM(this.stills.splice(J.length)),this.stills.length=J.length,x=0;x=0;p--)this.features[p].dispose();this.features.length=0;g.y.prototype.PO.call(this)};kcg.prototype.reset=function(){this.U=this.Z=NaN};g.I=Dbb.prototype;g.I.reset=function(){jb(this.timerName)}; g.I.tick=function(p,x){Wa(p,x,this.timerName)}; g.I.dI=function(p){return Ha(p,void 0,this.timerName)}; g.I.X9=function(p){g.gM(p,void 0,this.timerName)}; g.I.infoGel=function(p){g.k8(p,this.timerName)};g.M(TtT,g.Fx);g.I=TtT.prototype;g.I.SB=function(p){return this.loop||!!p||this.index+1=0}; g.I.setShuffle=function(p){this.shuffle=p;p=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var x=0;x0)||gH(this,1,!0)}; g.I.FC=function(){this.S=!0;this.U.IA(this.C);this.C=this.U.X(document,"mouseup",this.Vx)}; g.I.Vx=function(){this.S=!1;gH(this,8,!1);this.U.IA(this.C);this.C=this.U.X(this.target,"mousedown",this.FC)}; g.I.uC=function(p){if(p=(p=p.changedTouches)&&p[0])this.u$=p.identifier,this.U.IA(this.Y),this.Y=this.U.X(this.target,"touchend",this.Mi,void 0,!0),gH(this,1024,!0)}; g.I.Mi=function(p){if(p=p.changedTouches)for(var x=0;x1280||c>720)if(x=v.BB("maxresdefault.jpg"))break;if(J>640||c>480)if(x=v.BB("maxresdefault.jpg"))break;if(J>320||c>180)if(x=v.BB("sddefault.jpg")||v.BB("hqdefault.jpg")||v.BB("mqdefault.jpg"))break;if(x=v.BB("default.jpg"))break}g.If(p)&&(p=new Image,p.addEventListener("load", function(){dHb()}),p.src=x?x:"",this.api.UT().tick("ftr")); this.B.style.backgroundImage=x?"url("+x+")":""};g.M(g.NT,g.N);g.NT.prototype.resize=function(){}; g.NT.prototype.Z=function(p){var x=this;this.j=!1;r01(this);var a=p.ox,v=this.api.L();a!=="GENERIC_WITHOUT_LINK"||v.S?a==="TOO_MANY_REQUESTS"?(v=this.api.getVideoData(),this.Aj(qT(this,"TOO_MANY_REQUESTS_WITH_LINK",v.q1(),void 0,void 0,void 0,!1))):a!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||v.S?this.api.L().D("html5_enable_bandaid_error_screen")&&a==="HTML5_SPS_UMP_STATUS_REJECTED"&&!v.S?(v=v.hostLanguage,p="//support.google.com/youtube?p=videoError",v&&(p=g.jL(p,{hl:v})),this.Aj(qT(this,"HTML5_SPS_UMP_STATUS_REJECTED", p))):this.api.L().D("enable_adb_handling_in_sabr")&&a==="BROWSER_OR_EXTENSION_ERROR"&&!v.S?(v=v.hostLanguage,p="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",v&&(p=g.jL(p,{hl:v})),this.Aj(qT(this,"BROWSER_OR_EXTENSION_ERROR",p))):this.Aj(g.AA(p.errorMessage)):this.Aj(qT(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(p=v.hostLanguage,a="//support.google.com/youtube/?p=player_error1",p&&(a=g.jL(a, {hl:p})),this.Aj(qT(this,"GENERIC_WITH_LINK_AND_CPN",a,!0)),v.KW&&!v.B&&bJb(this,function(J){if(g.Ma(J,x.api,!Bx(x.api.L()))){J={as3:!1,html5:!0,player:!0,cpn:x.api.getVideoData().clientPlaybackNonce};var R=x.api;R.dV("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:J});R.isFullscreen()&&R.toggleFullscreen()}})); if(this.j){var c=this.BO("ytp-error-link");c&&(this.api.createClientVe(c,this,216104),this.api.logVisibility(c,!0),bJb(this,function(){x.api.logClick(c)}))}}; var ddx=/([^<>]+)<\/a>/;g.M(B2b,g.N);B2b.prototype.AR=function(p,x,a){a=a===void 0?!1:a;switch(x){case 1:n3(this,p,this.j,a);break;case 2:n3(this,p,this.B,a);break;case 3:n3(this,p,this.U,a);break;case 4:n3(this,p,this.Z,a)}};g.M(l$I,g.N);g.I=l$I.prototype;g.I.onClick=function(p){this.innertubeCommand?(this.W.NT("innertubeCommand",this.innertubeCommand),p.preventDefault()):g.Ma(p,this.W,!0);this.W.logClick(this.element)}; g.I.onVideoDataChange=function(p,x){YXN(this,x);this.Ai&&h5b(this,this.Ai)}; g.I.Kr=function(p){var x=this.W.getVideoData();this.videoId!==x.videoId&&YXN(this,x);this.U&&h5b(this,p.state);this.Ai=p.state}; g.I.Y$=function(){this.fade.show();this.W.publish("paidcontentoverlayvisibilitychange",!0);this.W.logVisibility(this.element,!0)}; g.I.iV=function(){this.fade.hide();this.W.publish("paidcontentoverlayvisibilitychange",!1);this.W.logVisibility(this.element,!1)};g.M(eD,g.N);eD.prototype.hide=function(){this.U.stop();this.message.style.display="none";g.N.prototype.hide.call(this)}; eD.prototype.onStateChange=function(p){this.XX(p.state)}; eD.prototype.XX=function(p){if(g.q(p,128)||this.api.lk())var x=!1;else{var a;x=this.api.D("web_watch_enable_multiview_manager")&&((a=this.api.getVideoData())==null?0:Je(a))?!1:g.q(p,16)||g.q(p,1)?!0:!1}x?this.U.start():this.hide()}; eD.prototype.Z=function(){this.message.style.display="block"};g.M(ue,g.xK);ue.prototype.onMutedAutoplayChange=function(p){this.j&&(p?(jdf(this),this.Y$()):(this.U&&this.logClick(),this.iV()))}; ue.prototype.WN=function(p){this.api.isMutedByMutedAutoplay()&&g.Jz(p,2)&&this.iV()}; ue.prototype.onClick=function(){this.api.unMute();this.logClick()}; ue.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.M(g.V1,g.II);g.I=g.V1.prototype;g.I.init=function(){var p=this.api,x=p.getPlayerStateObject();this.jd=p.getPlayerSize();this.yp(x);this.GW();this.LW();this.api.publish("basechromeinitialized",this);this.Hp()&&this.api.publish("standardControlsInitialized")}; g.I.onVideoDataChange=function(p,x){var a=this.aC!==x.videoId;if(a||p==="newdata")p=this.api,p.isFullscreen()||(this.jd=p.getPlayerSize());a&&(this.aC=x.videoId,a=this.uL,a.F5=3E3,gH(a,512,!0),this.GW());this.api.D("web_render_jump_buttons")&&x.showSeekingControls&&(this.xe=572)}; g.I.mZ4=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.I.Bf=function(){var p=this.api.kD()&&this.api.Ju(),x=this.api.uX();return this.Sc||p||this.JD||x}; g.I.m6=function(){var p=!this.Bf();g.cG(this.api.getRootNode(),"ytp-menu-shown",!p)}; g.I.Xw=function(p){try{if(!g.kk(this.api.getRootNode(),p))return!1}catch(x){return!1}for(;p&&!Etb(p);)p=p===this.api.getRootNode()?null:p.parentElement||null;return!!p}; g.I.De=function(p){var x=this.api.getRootNode();g.cG(x,"ytp-autohide",p);g.cG(x,"ytp-autohide-active",!0);this.ul.start(p?250:100);p&&(this.wg=!1,g.sm(x,"ytp-touch-mode"));this.Cw=!p;this.api.Yl(!p);this.api.D("delhi_modern_web_player")&&this.api.publish("autohideupdate",p)}; g.I.Mc=function(){var p=this.api.getRootNode();g.cG(p,"ytp-autohide-active",!1)}; g.I.HpG=function(){this.Fk=!0}; g.I.cj$=function(p){if(this.api.L().D("player_doubletap_to_seek")||this.api.L().V)this.Fk=!1,this.uU&&this.IA(this.uU),this.Bb===0&&pS(this,p)?(this.I$(),this.kp.start(),this.uU=this.X(this.api.fI(),"touchmove",this.HpG,void 0,!0)):this.kp.stop();ksz(this)&&pS(this,p)&&!this.api.L().V&&Mp8(this);var x=this.hF.WU();if(!g.nH(this.api.L())&&ND&&Ddx(this,p))x&&p.preventDefault();else if(this.wg=!0,g.$W(this.api.getRootNode(),"ytp-touch-mode"),this.uL.t2(),this.api.L().D("player_doubletap_to_seek")||this.api.L().V)if(x= this.api.getPlayerStateObject(),!(!this.api.yu()||g.q(x,2)&&g.gz(this.api)||g.q(x,64))){x=Date.now()-this.bq;this.Bb+=1;if(x<=350){this.qy=!0;x=this.api.getPlayerSize().width/3;var a=this.api.getRootNode().getBoundingClientRect(),v=p.targetTouches[0].clientX-a.left;a=p.targetTouches[0].clientY-a.top;var c=(this.Bb-1)*10;v>0&&vx*2&&v=650,v=p.width<528;this.uL.resize();if(this.api.D("web_player_use_screen_width_for_big_mode")){var c,J=p.width>=((c=g.e_(this.api.L().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?c:2E3);g.cG(x,"ytp-big-mode",J)}g.cG(x,"ytp-fullscreen",this.api.isFullscreen());g.cG(x,"ytp-large-width-mode",a);this.api.D("delhi_modern_web_player")?g.cG(x,"ytp-xsmall-width-mode",v):g.cG(x,"ytp-small-mode",this.XM()); g.cG(x,"ytp-tiny-mode",this.WZ());g.cG(x,"ytp-big-mode",this.WB());this.n3&&this.n3.resize(p)}; g.I.WN=function(p){this.yp(p.state);this.GW()}; g.I.Zi=pU(3);g.I.t4=function(){var p=!!this.aC&&!this.api.Ol()&&!this.W3,x=this.api.getPresentingPlayerType()===2,a=this.api.L();if(x)return a=tA(this.api.uV()),p&&(a&&a.player?p=(p=a.player.getVideoData(2))?p.isListed&&!g.RU(a.player.L()):!1:(sE("showInfoBarDuringAd: this is null"),p=!1)),p;x=a.D("web_player_imax_theater_mode")&&this.api.XR();return p&&(a.Tc||x||this.api.isFullscreen()||a.Ac)}; g.I.GW=function(){var p=this.t4();this.K7!==p&&(this.K7=p,g.cG(this.api.getRootNode(),"ytp-hide-info-bar",!p))}; g.I.yp=function(p){var x=p.isCued()||this.api.CY()&&this.api.getPresentingPlayerType()!==3;x!==this.isCued&&(this.isCued=x,this.Wn&&this.IA(this.Wn),this.Wn=this.X(this.api.fI(),"touchstart",this.cj$,void 0,x));var a=this.uL,v=p.isPlaying()&&!g.q(p,32)||this.api.XG();gH(a,128,!v);a=this.uL;v=this.api.getPresentingPlayerType()===3;gH(a,256,v);a=this.api.getRootNode();g.q(p,2)?v=[Af.ENDED]:(v=[],g.q(p,8)?v.push(Af.PLAYING):g.q(p,4)&&v.push(Af.PAUSED),g.q(p,1)&&!g.q(p,32)&&v.push(Af.BUFFERING),g.q(p, 32)&&v.push(Af.SEEKING),g.q(p,64)&&v.push(Af.UNSTARTED));g.qE(this.SZ,v)||(g.vG(a,this.SZ),this.SZ=v,g.aR(a,v));v=this.api.L();var c=g.q(p,2);a:{var J=this.api.L();var R=J.controlsType;switch(R){case "2":case "0":J=!1;break a}J=R==="3"&&!g.q(p,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:bGv(tA(this.api.uV())))||this.api.uX()||g.nH(J)&&this.api.getPresentingPlayerType()===2?!1:!0}g.cG(a,"ytp-hide-controls",!J);g.cG(a,"ytp-native-controls",v.controlsType==="3"&&!x&&!c&&!this.JD);g.q(p, 128)&&!g.nH(v)?(this.n3||(this.n3=new g.NT(this.api),g.Z(this,this.n3),g.qh(this.api,this.n3.element,4)),this.n3.Z(p.RB),this.n3.show()):this.n3&&(this.n3.dispose(),this.n3=null)}; g.I.ZD=function(){return this.api.kD()&&this.api.Ju()?(this.api.d8(!1,!1),!0):this.api.Ol()?(g.ZF(this.api,!0),!0):!1}; g.I.onMutedAutoplayChange=function(p){this.JD=p;this.m6()}; g.I.WB=function(){return!1}; g.I.XM=function(){return!this.WB()&&(this.api.getPlayerSize().width=0&&x.left>=0&&x.bottom>x.top&&x.right>x.left?x:null;x=this.size;p=p.clone();x=x.clone();v&&(R=x,c=5,(c&65)==65&&(p.x=v.right)&&(c&=-2),(c&132)==132&&(p.y=v.bottom)&&(c&=-5),p.xv.right&&(R.width=Math.min(v.right-p.x,J+R.width-v.left),R.width=Math.max(R.width,0))),p.x+R.width>v.right&&c&1&&(p.x=Math.max(v.right-R.width,v.left)),p.yv.bottom&&(R.height=Math.min(v.bottom-p.y,J+R.height-v.top),R.height=Math.max(R.height,0))),p.y+R.height>v.bottom&&c&4&&(p.y=Math.max(v.bottom-R.height,v.top)));v=new g.GL(0,0,0,0);v.left=p.x;v.top=p.y;v.width= x.width;v.height=x.height;g.VU(this.element,new g.Ng(v.left,v.top));g.UU(this.B);this.B.X($K(this),"contextmenu",this.zt$);this.B.X(this.W,"fullscreentoggled",this.onFullscreenToggled);this.B.X(this.W,"pageTransition",this.Qx)}; g.I.zt$=function(p){if(!p.defaultPrevented){var x=Ml(p);g.kk(this.element,x)||this.iV();this.W.L().disableNativeContextMenu&&p.preventDefault()}}; g.I.onFullscreenToggled=function(){this.iV();qXx(this)}; g.I.Qx=function(){this.iV()};g.M(KS,g.N);KS.prototype.onClick=function(){var p=this,x,a,v,c;return g.t(function(J){if(J.Z==1)return x=p.api.L(),a=p.api.getVideoData(),v=p.api.getPlaylistId(),c=x.getVideoUrl(a.videoId,v,void 0,!0),g.C(J,uoo(p,c),2);J.U&&e58(p);p.api.logClick(p.element);g.k1(J)})}; KS.prototype.Yg=function(){this.updateValue("icon",{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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 link");this.updateValue("tooltip-title","Copiar link");this.visible=np1(this); g.cG(this.element,"ytp-copylink-button-visible",this.visible);this.eD(this.visible);this.tooltip.jg();this.api.logVisibility(this.element,this.visible&&this.C)}; KS.prototype.Rl=function(p){g.N.prototype.Rl.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; KS.prototype.PO=function(){g.N.prototype.PO.call(this);g.sm(this.element,"ytp-copylink-button-visible")};g.M(Vp8,g.N);g.I=Vp8.prototype;g.I.show=function(){g.N.prototype.show.call(this);g.Pk(this.Z)}; g.I.hide=function(){this.B.stop();this.j=0;this.BO("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.sm(this.element,"ytp-chapter-seek");g.sm(this.element,"ytp-time-seeking");g.N.prototype.hide.call(this)}; g.I.HJ=function(p,x,a,v){this.j=p===this.V?this.j+v:v;this.V=p;var c=p===-1?this.T:this.Y;c&&this.W.logClick(c);this.S?this.Z.stop():g.nO(this.Z);this.B.start();this.element.setAttribute("data-side",p===-1?"back":"forward");var J=3*this.W.fI().getPlayerSize().height;c=this.W.fI().getPlayerSize();c=c.width/3-3*c.height;this.U.style.width=J+"px";this.U.style.height=J+"px";p===1?(this.U.style.left="",this.U.style.right=c+"px"):p===-1&&(this.U.style.right="",this.U.style.left=c+"px");var R=J*2.5;J=R/ 2;var d=this.BO("ytp-doubletap-ripple");d.style.width=R+"px";d.style.height=R+"px";p===1?(p=this.W.fI().getPlayerSize().width-x+Math.abs(c),d.style.left="",d.style.right=p-J+"px"):p===-1&&(p=Math.abs(c)+x,d.style.right="",d.style.left=p-J+"px");d.style.top="calc((33% + "+Math.round(a)+"px) - "+J+"px)";if(a=this.BO("ytp-doubletap-ripple"))a.classList.remove("ytp-doubletap-ripple"),a.classList.add("ytp-doubletap-ripple");FqN(this,this.S?this.j:v)}; g.I.u3=function(p,x,a){if(a=a===void 0?null:a){var v=p===-1?this.T.visualElement:this.Y.visualElement;a={seekData:a};var c=g.Yi();c&&eJ(c,v,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",a)}this.j=p===this.V?this.j+x:x;this.V=p;v=this.W.fI().getPlayerSize();this.S?this.Z.stop():g.nO(this.Z);this.B.start();this.element.setAttribute("data-side",p===-1?"back":"forward");g.$W(this.element,"ytp-time-seeking");this.U.style.width="110px";this.U.style.height="110px";a=v.width*.1-15;p===1?this.Zt?(this.U.style.right= a+"px",this.U.style.left=""):(this.U.style.right="",this.U.style.left=v.width*.8-30+"px"):p===-1&&(this.Zt?(this.U.style.right="",this.U.style.left=a+"px"):(this.U.style.right="",this.U.style.left=v.width*.1-15+"px"));this.U.style.top=v.height*.5+15+"px";FqN(this,this.S?this.j:x)}; g.I.j9=function(p,x,a){a=a===void 0?null:a;g.nO(this.Z);this.B.start();switch(p){case -1:p="back";break;case 1:p="forward";break;default:p=""}this.element.setAttribute("data-side",p);this.U.style.width="0";this.U.style.height="0";g.$W(this.element,"ytp-chapter-seek");this.updateValue("seekText",x);this.updateValue("seekTime","");x=this.BO("ytp-seek-icon");if(a){a:if(a){switch(a){case "PREMIUM_STANDALONE":a=mlz();break a;case "PREMIUM_STANDALONE_CAIRO":a=SU8();break a}a=void 0}else a=null;this.updateValue("seekIcon", a);x.style.display="inline-block"}else x.style.display="none"};g.M(p71,Hl);g.I=p71.prototype;g.I.Gs=function(p){this.hG||(this.hG=new Xq(this.W),g.Z(this,this.hG));var x,a;if((x=this.US)==null?0:(a=x.menu)==null?0:a.menuRenderer)this.hG.open(this.US.menu.menuRenderer,p.target),p.preventDefault()}; g.I.qz=function(){return!!this.U}; g.I.Na=function(){return!!this.U}; g.I.IW=function(p){p.target===this.overflowButton.element?p.preventDefault():(this.ol&&this.W.NT("innertubeCommand",this.ol),this.oy(!1))}; g.I.yj=function(){this.oy(!0);var p,x;((p=this.U)==null?0:(x=p.bannerData)==null?0:x.dismissedStatusKey)&&this.KW.push(this.U.bannerData.dismissedStatusKey);this.Z5()}; g.I.Oe=function(){this.Z5();rk(this)}; g.I.H1a=function(p){var x=this,a;if(p.id!==((a=this.U)==null?void 0:a.identifier)){this.Z5();a=g.k(this.u$);for(var v=a.next();!v.done;v=a.next()){var c=v.value,J=void 0,R=void 0;if((v=(J=c)==null?void 0:(R=J.bannerData)==null?void 0:R.itemData)&&c.identifier===p.id){R=J=void 0;var d=((J=c)==null?void 0:(R=J.bannerData)==null?void 0:R.dismissedStatusKey)||"";if(this.KW.includes(d))return;this.U=c;this.banner.element.setAttribute("aria-label",v.accessibilityLabel||"");v.trackingParams&&(this.B=!0, this.W.setTrackingParams(this.badge.element,v.trackingParams));this.show();this.T.show();UJ(this);this.F5.eD(!v.stayInApp);BWb(this);$P_(this);b0(this);this.ol=g.O(v.onTapCommand,Qj);if(c=g.O(v.menuOnTap,Qj))this.US=g.O(c,uww);c=void 0;this.banner.update({thumbnail:(c=(v.thumbnailSources||[])[0])==null?void 0:c.url,title:v.productTitle,price:v.priceReplacementText?v.priceReplacementText:v.price,salesOriginalPrice:vSU(this),priceDropReferencePrice:cf8(this),promotionText:s3U(this),priceA11yText:Jf1(this), affiliateDisclaimer:v.affiliateDisclaimer,vendor:RM1(this)});d=R=J=c=void 0;((c=v)==null?0:(J=c.hiddenProductOptions)==null?0:J.showDropCountdown)&&((R=v)==null?0:(d=R.hiddenProductOptions)==null?0:d.dropTimestampMs)&&(this.OS=new g.AW(function(){rff(x)},1E3),this.F5.hide(),this.countdownTimer.show(),rff(this)); this.W.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&xP1(this)&&(this.G$=new g.AW(function(){adJ(x)},1E3),adJ(this))}}this.W.getRootNode()&&g.$W(this.W.getRootNode(),"ytp-featured-product-shown")}}; g.I.Z5=function(){this.U&&(this.U=void 0,this.N1(),this.W.getRootNode()&&g.sm(this.W.getRootNode(),"ytp-featured-product-shown"))}; g.I.onVideoDataChange=function(p,x){var a=this;p==="dataloaded"&&rk(this);var v,c,J;p=g.O((v=x.getWatchNextResponse())==null?void 0:(c=v.playerOverlays)==null?void 0:(J=c.playerOverlayRenderer)==null?void 0:J.productsInVideoOverlayRenderer,nYv);this.overflowButton.show();this.dismissButton.hide();var R=p==null?void 0:p.featuredProductsEntityKey;this.trendingOfferEntityKey=p==null?void 0:p.trendingOfferEntityKey;this.u$.length||(dPf(this,R),b0(this));var d;(d=this.FX)==null||d.call(this);this.FX=g.Mn.subscribe(function(){dPf(a, R);b0(a)})}; g.I.PO=function(){rk(this);BWb(this);$P_(this);Hl.prototype.PO.call(this)};g.M(j3_,g.N);j3_.prototype.onClick=function(){this.W.logClick(this.element,this.Z)};g.M(Id1,g.xK);g.I=Id1.prototype;g.I.show=function(){g.xK.prototype.show.call(this);this.W.publish("infopaneldetailvisibilitychange",!0);this.W.logVisibility(this.element,!0);MOz(this,!0)}; g.I.hide=function(){g.xK.prototype.hide.call(this);this.W.publish("infopaneldetailvisibilitychange",!1);this.W.logVisibility(this.element,!1);MOz(this,!1)}; g.I.getId=function(){return this.B}; g.I.MA=function(){return this.itemData.length}; g.I.onVideoDataChange=function(p,x){if(x){var a,v,c,J;this.update({title:((a=x.H$)==null?void 0:(v=a.title)==null?void 0:v.content)||"",body:((c=x.H$)==null?void 0:(J=c.bodyText)==null?void 0:J.content)||""});var R;p=((R=x.H$)==null?void 0:R.trackingParams)||null;this.W.setTrackingParams(this.element,p);R=g.k(this.itemData);for(p=R.next();!p.done;p=R.next())p.value.dispose();this.itemData=[];var d;if((d=x.H$)==null?0:d.ctaButtons)for(x=g.k(x.H$.ctaButtons),d=x.next();!d.done;d=x.next())if(d=g.O(d.value, GdQ))d=new j3_(this.W,d,this.U),d.mU&&(this.itemData.push(d),d.WO(this.items))}}; g.I.PO=function(){this.hide();g.xK.prototype.PO.call(this)};g.M(DPJ,g.N);g.I=DPJ.prototype;g.I.onVideoDataChange=function(p,x){kUT(this,x);this.Ai&&Hgo(this,this.Ai)}; g.I.Aq=function(p){var x=this.W.getVideoData();this.videoId!==x.videoId&&kUT(this,x);Hgo(this,p.state);this.Ai=p.state}; g.I.xE=function(p){(this.j=p)?this.hide():this.U&&this.show()}; g.I.vc=function(){this.Z||this.Y$();this.showControls=!0}; g.I.RN=function(){this.Z||this.iV();this.showControls=!1}; g.I.Y$=function(){var p,x=(p=this.W)==null?void 0:p.getPlayerSize();p=x.width<380;var a;x=x.height<(((a=this.W)==null?0:a.isEmbedsShortsMode())?400:280);var v,c;(((v=this.W)==null?0:v.getPlayerStateObject().isCued())||((c=this.W)==null?0:g.q(c.getPlayerStateObject(),1024)))&&p&&x||!this.U||this.j||(this.fade.show(),this.W.publish("infopanelpreviewvisibilitychange",!0),this.W.logVisibility(this.element,!0))}; g.I.iV=function(){this.U&&!this.j&&(this.fade.hide(),this.W.publish("infopanelpreviewvisibilitychange",!1),this.W.logVisibility(this.element,!1))}; g.I.lKr=function(){this.Z=!1;this.showControls||this.iV()};var $xO={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys($xO).reduce(function(p,x){p[$xO[x]]=x;return p},{}); var aYZ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(aYZ).reduce(function(p,x){p[aYZ[x]]=x;return p},{}); var spj={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(spj).reduce(function(p,x){p[spj[x]]=x;return p},{});var vgV,c7R;vgV=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];c7R=[{option:0,text:BO(0)},{option:.25,text:BO(.25)},{option:.5,text:BO(.5)},{option:.75,text:BO(.75)},{option:1,text:BO(1)}]; g.hr=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:vgV},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:BO(.5)},{option:-1,text:BO(.75)},{option:0,text:BO(1)},{option:1, text:BO(1.5)},{option:2,text:BO(2)},{option:3,text:BO(3)},{option:4,text:BO(4)}]},{option:"background",text:"Cor de fundo",options:vgV},{option:"backgroundOpacity",text:"Opacidade de fundo",options:c7R},{option:"windowColor",text:"Cor da janela",options:vgV},{option:"windowOpacity",text:"Opacidade da janela",options:c7R},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:BO(.25)},{option:.5,text:BO(.5)},{option:.75,text:BO(.75)},{option:1,text:BO(1)}]}];var J7E=[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.M(CKI,g.II);g.I=CKI.prototype; g.I.Kh=function(p){p.repeat||(this.j.DZ=!1);var x=!1,a=p.keyCode,v=Ml(p),c=!p.altKey&&!p.ctrlKey&&!p.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||J7E.includes(a)),J=!1,R=!1,d=this.api.L();p.defaultPrevented?(c=!1,R=!0):d.lc&&!this.api.isMutedByEmbedsMutedAutoplay()&&(c=!1);if(a===9)x=!0;else{if(v)switch(a){case 32:case 13:if(v.tagName==="BUTTON"||v.tagName==="A"||v.tagName==="INPUT")x=!0,c=!1;else if(c){var b=v.getAttribute("role");!b||b!=="option"&&b!=="button"&&b.indexOf("menuitem")!==0|| (x=!0,v.click(),J=!0)}break;case 37:case 39:case 36:case 35:x=v.getAttribute("role")==="slider";break;case 38:case 40:b=v.getAttribute("role"),v=a===38?v.previousSibling:v.nextSibling,b==="slider"?x=!0:c&&(b==="option"?(v&&v.getAttribute("role")==="option"&&v.focus(),J=x=!0):b&&b.indexOf("menuitem")===0&&(v&&v.hasAttribute("role")&&v.getAttribute("role").indexOf("menuitem")===0&&v.focus(),J=x=!0))}if(c&&!J)switch(a){case 38:J=Math.min(this.api.getVolume()+5,100);aO(this.Cv,J,!1);this.api.setVolume(J); R=J=!0;break;case 40:J=Math.max(this.api.getVolume()-5,0);aO(this.Cv,J,!0);this.api.setVolume(J);R=J=!0;break;case 36:this.api.yu()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),R=J=!0);break;case 35:this.api.yu()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),R=J=!0)}}x&&LS(this,!0);(x||R)&&this.uL.t2();(J||c&&this.handleGlobalKeyDown(a,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat))&&p.preventDefault();d.Y&&(p={keyCode:p.keyCode, altKey:p.altKey,ctrlKey:p.ctrlKey,metaKey:p.metaKey,shiftKey:p.shiftKey,handled:p.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.n1("onKeyPress",p))}; g.I.td=function(p){var x=p.keyCode;(!this.api.D("web_player_spacebar_control_bugfix")||this.api.D("web_player_spacebar_control_bugfix")&&!this.j.CF)&&this.handleGlobalKeyUp(x,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)&&p.preventDefault()}; g.I.handleGlobalKeyUp=function(p,x,a,v,c,J,R){this.api.publish("keyboardserviceglobalkeyup",{keyCode:p,shiftKey:x,ctrlKey:a,altKey:v,metaKey:c,key:J,code:R});x=!1;if(this.j.DZ)return x;(J=g.Ae(this.api.uV()))&&(J=J.J7)&&J.E7&&(J.nh(p),x=!0);switch(p){case 9:LS(this,!0);x=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&(!this.api.D("web_player_spacebar_control_bugfix")&&!this.j.CF||this.api.D("web_player_spacebar_control_bugfix"))&&!this.api.L().lc){var d,b;p=(d=this.progressBar)== null?void 0:(b=d.Z)==null?void 0:b.isEnabled;x=this.u7(p)}break;case 39:(bQ?v:a)&&!c&&this.api.yu()&&this.api.D("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),d=(d=this.api.getVideoData())?d.Z$:[],b=Q3J(d,this.api.getCurrentTime()*1E3),b!==-1&&this.U!=null&&(this.U.j9(1,d[b].title),this.api.seekTo(d[b].startTime/1E3,void 0,void 0,void 0,52),x=!0))}return x}; g.I.handleGlobalKeyDown=function(p,x,a,v,c,J,R,d){d||(this.j.DZ=!1);var b=!1,r=this.api.L();if(r.lc&&!this.api.isMutedByEmbedsMutedAutoplay())return b;var B=g.Ae(this.api.uV());if(B&&(B=B.J7)&&B.E7)switch(p){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:b=B.Vn(p)}r.S||b||(b=J||String.fromCharCode(p).toLowerCase(),this.Z+=b,"awesome".indexOf(this.Z)===0||this.api.D("web_player_rtr_ctrls")&&"bday".indexOf(this.Z)===0?(b=!0,4===this.Z.length&&this.Z==="bday"&&this.api.D("web_player_rtr_ctrls")&& (o7g(this.C),this.uL.t2()),7===this.Z.length&&this.Z==="awesome"&&T8g(this.api.getRootNode(),"ytp-color-party")):(this.Z=b,b="awesome".indexOf(this.Z)===0||"bday".indexOf(this.Z)===0));if(!b&&(!this.api.isMutedByEmbedsMutedAutoplay()||J7E.includes(p))){var l=this.api.getVideoData(),L,Y;B=(L=this.progressBar)==null?void 0:(Y=L.Z)==null?void 0:Y.isEnabled;L=l?l.Z$:[];Y=bQ?v:a;switch(p){case 80:x&&!r.V6&&($P(this.Cv,fvT(),"Anterior"),this.api.previousVideo(),b=!0);break;case 78:x&&!r.V6&&($P(this.Cv, LV(),"Pr\u00f3ximo"),this.api.nextVideo(),b=!0);break;case 74:this.api.yu()&&(this.api.startSeekCsiAction(),this.U?this.api.D("enable_key_press_seek_logging")?(b=YP(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.U.u3(-1,10,b)):this.U.u3(-1,10):$P(this.Cv,{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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),b=!0);break;case 76:this.api.yu()&&(this.api.startSeekCsiAction(),this.U?this.api.D("enable_key_press_seek_logging")?(b=YP(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.U.u3(1,10,b)):this.U.u3(1,10):$P(this.Cv,{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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),b=!0);break;case 37:this.api.yu()&&(this.api.startSeekCsiAction(),Y?(Y=mP1(L,this.api.getCurrentTime()*1E3),Y!==-1&&this.U!=null&&(this.U.j9(-1,L[Y].title),this.api.seekTo(L[Y].startTime/1E3,void 0,void 0,void 0,53),b=!0)):(this.U?this.api.D("enable_key_press_seek_logging")?(b=YP(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.U.u3(-1,5,b)):this.U.u3(-1,5):$P(this.Cv,{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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),b=!0));break;case 39:this.api.yu()&&(this.api.startSeekCsiAction(),Y?this.api.D("web_enable_keyboard_shortcut_for_timely_actions")||(Y=Q3J(L,this.api.getCurrentTime()*1E3),Y!==-1&&this.U!=null&&(this.U.j9(1,L[Y].title),this.api.seekTo(L[Y].startTime/1E3,void 0,void 0,void 0,52),b=!0)):(this.U!=null?this.api.D("enable_key_press_seek_logging")?(b=YP(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.U.u3(1,5,b)):this.U.u3(1, 5):$P(this.Cv,{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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),b=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),aO(this.Cv,this.api.getVolume(),!1)):(this.api.mute(),aO(this.Cv,0,!0));b=!0;break;case 32:b=this.api.D("web_speedmaster_spacebar_control")?!this.api.L().V6:this.u7(B);break;case 75:b=this.u7(B);break;case 190:x?r.enableSpeedOptions&&igU(this)&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),HJo(this.Cv,!1),b=!0):this.api.yu()&&(this.step(1),b=!0);break;case 188:x? r.enableSpeedOptions&&igU(this)&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b-.25,!0),HJo(this.Cv,!0),b=!0):this.api.yu()&&(this.step(-1),b=!0);break;case 70:OzT(this.api)&&(this.api.toggleFullscreen().catch(function(){}),b=!0); break;case 27:B?(this.progressBar.j4(),b=!0):this.S()&&(b=!0)}if(r.controlsType!=="3")switch(p){case 67:g.XF(this.api.uV())&&(r=this.api.getOption("captions","track"),this.api.toggleSubtitles(),T2_(this.Cv,!r||r&&!r.displayName),b=!0);break;case 79:jo(this,"textOpacity");break;case 87:jo(this,"windowOpacity");break;case 187:case 61:jo(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jo(this,"fontSizeIncrement",!0,!0)}var h;x||a||v||(p>=48&&p<=57?h=p-48:p>=96&&p<=105&&(h=p-96));h!=null&&this.api.yu()&& !this.api.D("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),r=this.api.getProgressState(),this.api.seekTo(h/10*(r.seekableEnd-r.seekableStart)+r.seekableStart,void 0,void 0,void 0,81),b=!0);b&&this.uL.t2()}this.j.JF=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:p,shiftKey:x,ctrlKey:a,altKey:v,metaKey:c,key:J,code:R,repeat:d},this.j);this.j.JF&&(b=!0,this.uL.t2());return b}; g.I.step=function(p){this.api.yu();if(this.api.getPlayerStateObject().isPaused()){var x=this.api.getVideoData().Z;x&&(x=x.video)&&this.api.seekBy(p/(x.fps||30),void 0,void 0,p>0?77:78)}}; g.I.u7=function(p){if(!this.api.L().V6){var x;var a,v=(x=this.api.getVideoData())==null?void 0:(a=x.getPlayerResponse())==null?void 0:a.playabilityStatus;if(v){var c;x=((c=g.O(v.miniplayer,stZ))==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else x=!1;x&&this.api.NT("onExpandMiniplayer");p?this.progressBar.pR():(p=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Cv.Y5(p),p?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.I.PO=function(){g.nO(this.B);g.II.prototype.PO.call(this)};g.M(IO,g.N);IO.prototype.Yg=function(){var p=this.W.L(),x=p.j||this.W.D("web_player_hide_overflow_button_if_empty_menu")&&this.SU.isEmpty();p=g.nH(p)&&g.Os(this.W)&&g.q(this.W.getPlayerStateObject(),128);var a=this.W.getPlayerSize();this.visible=this.W.XM()&&!p&&a.width>=240&&!this.W.getVideoData().fp&&!x&&!this.W.isEmbedsShortsMode();g.cG(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.W.jg();this.W.logVisibility(this.element,this.visible&&this.C)}; IO.prototype.Rl=function(p){g.N.prototype.Rl.call(this,p);this.W.logVisibility(this.element,this.visible&&p)}; IO.prototype.PO=function(){g.N.prototype.PO.call(this);g.sm(this.element,"ytp-overflow-button-visible")};g.M(oSg,g.xK);g.I=oSg.prototype;g.I.aN=function(p){p=Ml(p);g.kk(this.element,p)&&(g.kk(this.U,p)||g.kk(this.closeButton,p)||aW(this))}; g.I.iV=function(){g.xK.prototype.iV.call(this);this.W.kH(this.element)}; g.I.show=function(){this.E7&&this.W.publish("OVERFLOW_PANEL_OPENED");g.xK.prototype.show.call(this);this.element.setAttribute("aria-modal","true");zM1(this,!0)}; g.I.hide=function(){g.xK.prototype.hide.call(this);this.element.removeAttribute("aria-modal");zM1(this,!1)}; g.I.onFullscreenToggled=function(p){!p&&this.WU()&&aW(this)}; g.I.isEmpty=function(){return this.actionButtons.length===0}; g.I.focus=function(){for(var p=g.k(this.actionButtons),x=p.next();!x.done;x=p.next())if(x=x.value,x.E7){x.focus();break}};g.M(w7_,g.N);w7_.prototype.onClick=function(p){g.Ma(p,this.api)&&this.api.playVideoAt(this.index)};g.M(ESb,g.xK);g.I=ESb.prototype;g.I.show=function(){g.xK.prototype.show.call(this);this.U.X(this.api,"videodatachange",this.Pd);this.U.X(this.api,"onPlaylistUpdate",this.Pd);this.Pd()}; g.I.hide=function(){g.xK.prototype.hide.call(this);g.UU(this.U);this.updatePlaylist(null)}; g.I.Pd=function(){this.updatePlaylist(this.api.getPlaylist());this.api.L().j&&(this.BO("ytp-playlist-menu-title-name").removeAttribute("href"),this.j&&(this.IA(this.j),this.j=null))}; g.I.Sx=function(){var p=this.playlist,x=p.author,a=x?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",v={CURRENT_POSITION:String(p.index+1),PLAYLIST_LENGTH:String(p.length)};x&&(v.AUTHOR=x);this.update({title:p.title,subtitle:g.px(a,v),playlisturl:this.api.getVideoUrl(!0)});x=p.Z;if(x===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[p.index];else{a=g.k(this.playlistData);for(v=a.next();!v.done;v=a.next())v.value.dispose(); a=p.length;this.playlistData=[];for(v=0;v=this.Z&&!p.j&&!x.isAd()&&!this.api.isEmbedsShortsMode()}else p=!1;this.visible=p;this.eD(this.visible);g.cG(this.element,"ytp-search-button-visible",this.visible);g.cG(this.element,"ytp-show-search-title",!this.api.XM());this.api.logVisibility(this.element,this.visible&&this.C)}; Dj.prototype.Rl=function(p){g.N.prototype.Rl.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.M(U9,g.N); U9.prototype.trigger=function(p,x,a,v){this.show();if(this.Z&&p!==this.Z){var c=1;this.j&&(c=uV_(this));Afx(this,c,!1);eM_(this)}this.Z=p;this.B=this.Z===-1?this.Y:this.T;p="";x?(this.V+=x,p=(this.Z===-1?"\u2212":"+")+" "+this.V):this.V=0;this.updateValue(this.Z===-1?"durationBack":"durationForward",p);if(this.U==="hidden"||this.U==="fading-out")x=0,this.U==="fading-out"&&(x=uV_(this),nS_(this)),PK1(this,x),this.U!=="fading-out"&&qGI(this,this.B.querySelector(".ytp-seek-overlay-arrow-persistent")),this.U= "fading-in";else if(this.U==="fading-in"||this.U==="lingering")x=this.B.querySelector(".ytp-seek-overlay-duration"),p=g.e_(this.W.L().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,x.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+p+")"},{offset:1,transform:"scale(1)"}],{duration:184}),nS_(this),this.U==="lingering"&&(this.S.stop(),this.S.start());a&&VO_(this,a,v)}; U9.prototype.HJ=function(p,x,a,v){this.trigger(p,v)}; U9.prototype.u3=function(p,x,a){this.trigger(p,x);a&&(p=p===-1?this.T.visualElement:this.Y.visualElement,a={seekData:a},(x=g.Yi())&&eJ(x,p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",a))}; U9.prototype.j9=function(p,x,a){this.trigger(p,void 0,x,a)};g.M(HO,g.N);HO.prototype.onClick=function(){var p=this,x=this.api.L(),a=this.api.getVideoData(this.api.getPresentingPlayerType()),v=this.api.getPlaylistId();x=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):x.getVideoUrl(a.videoId,v,void 0,!0);if(navigator.share)try{var c=navigator.share({title:a.title,url:x});c instanceof Promise&&c.catch(function(J){pio(p,J)})}catch(J){J instanceof Error&&pio(this,J)}else this.U.ZD(),aW(this.Z,this.element,!1); this.api.logClick(this.element)}; HO.prototype.Yg=function(){var p=this.api.L(),x=this.api.isEmbedsShortsMode();g.cG(this.element,"ytp-show-share-title",g.nH(p)&&!x);this.U.WB()&&x?(p=(this.api.fI().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ab(this.element,"right",p+"px")):x&&g.Ab(this.element,"right","0px");this.updateValue("icon",{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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=FFz(this);g.cG(this.element,"ytp-share-button-visible",this.visible);this.eD(this.visible);this.tooltip.jg();this.api.logVisibility(this.element,FFz(this)&&this.C)}; HO.prototype.Rl=function(p){g.N.prototype.Rl.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; HO.prototype.PO=function(){g.N.prototype.PO.call(this);g.sm(this.element,"ytp-share-button-visible")};g.M($RT,g.xK);g.I=$RT.prototype;g.I.Hc=function(p){p=Ml(p);g.kk(this.S,p)||g.kk(this.closeButton,p)||aW(this)}; g.I.iV=function(){g.xK.prototype.iV.call(this);this.tooltip.kH(this.element);this.api.logVisibility(this.U,!1);for(var p=g.k(this.j),x=p.next();!x.done;x=p.next())x=x.value,this.api.hasVe(x.element)&&this.api.logVisibility(x.element,!1)}; g.I.show=function(){var p=this.E7;g.xK.prototype.show.call(this);this.Yg();p||this.api.NT("onSharePanelOpened")}; g.I.lO=function(){this.E7&&this.Yg()}; g.I.Yg=function(){var p=this;g.$W(this.element,"ytp-share-panel-loading");g.sm(this.element,"ytp-share-panel-fail");var x=this.api.getVideoData(),a=this.api.getPlaylistId()&&this.B.checked;x.getSharePanelCommand&&mZ(this.api.tR(),x.getSharePanelCommand,{includeListId:a}).then(function(v){p.b$()||(g.sm(p.element,"ytp-share-panel-loading"),va1(p,v))}); x=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",x);this.updateValue("linkText",x);this.updateValue("shareLinkWithUrl",g.px("Compartilhar o link $URL",{URL:x}));UN(this.U);this.api.logVisibility(this.U,!0)}; g.I.onFullscreenToggled=function(p){!p&&this.WU()&&aW(this)}; g.I.focus=function(){this.U.focus()}; g.I.PO=function(){g.xK.prototype.PO.call(this);aRx(this)};g.M(R9U,Hl);g.I=R9U.prototype;g.I.PO=function(){BE1(this);Hl.prototype.PO.call(this)}; g.I.IW=function(p){p.target!==this.dismissButton.element&&(this.oy(!1),this.W.NT("innertubeCommand",this.onClickCommand))}; g.I.yj=function(){this.LI=!0;this.oy(!0);this.N1()}; g.I.FFT=function(p){this.V=p;this.N1()}; g.I.onVideoDataChange=function(p,x){if(p=!!x.videoId&&this.videoId!==x.videoId)this.videoId=x.videoId,this.LI=!1,this.O7=!0,this.Y=this.pI=!1,BE1(this),rHT(this,!1),this.Z=this.U=!1,QA(this),KXo(this);if(p||!x.videoId)this.Zt=this.B=!1;var a,v;if(x==null?0:(a=x.getPlayerResponse())==null?0:(v=a.videoDetails)==null?0:v.isLiveContent)this.mT(!1);else{var c,J,R;x=g.O((c=x.getWatchNextResponse())==null?void 0:(J=c.playerOverlays)==null?void 0:(R=J.playerOverlayRenderer)==null?void 0:R.productsInVideoOverlayRenderer, nYv);this.V=this.enabled=!1;if(x){if(c=x==null?void 0:x.featuredProductsEntityKey){J=g.Mn.getState().entities;var d;if((d=P$(J,"featuredProductsEntity",c))==null?0:d.productsData){this.mT(!1);return}}if(!x.text||!x.onClickCommand||!x.timing){this.mT(!1);return}this.enabled=!0;if(!this.B){var b;d=(b=x.badgeInteractionLogging)==null?void 0:b.trackingParams;(this.B=!!d)&&this.W.setTrackingParams(this.badge.element,d||null)}if(!this.Zt){var r;if(this.Zt=!((r=x.dismissButton)==null||!r.trackingParams)){var B; this.W.setTrackingParams(this.dismissButton.element,((B=x.dismissButton)==null?void 0:B.trackingParams)||null)}}x.isContentForward&&(b=x.productsData,rHT(this,!0),KXo(this),b=b7z(this,b),r=[],b.length>0&&r.push(b[0]),b.length>1&&(B=new g.N({J:"div",K:"ytp-suggested-action-more-products-icon"}),g.Z(this,B),r.push(B),r.push.apply(r,g.lf(b.slice(1)))),this.S=new g.N({J:"div",N:r,K:"ytp-suggested-action-content-forward-container"}),g.Z(this,this.S),this.qT.element.append(this.S.element));this.text=g.Jv(x.text); var l;if(b=(l=x.dismissButton)==null?void 0:l.a11yLabel)this.gr=g.Jv(b);this.onClickCommand=x.onClickCommand;this.timing=x.timing;this.xN()}xZb(this);UJ(this);this.N1()}}; g.I.qz=function(){return!this.V&&this.enabled&&!this.LI&&!this.W.XM()&&!this.Zp&&(this.Y||this.O7)}; g.I.OB=function(p){Hl.prototype.OB.call(this,p);if(this.U||this.Z)this.timing&&Tt(this.timing.preview)&&(this.U=!1,QA(this),this.Z=!1,QA(this),this.W.Mg("shopping_overlay_preview_collapsed"),this.W.Mg("shopping_overlay_preview_expanded"),p=mW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Tt(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.W.Mg("shopping_overlay_expanded"),p.end=this.timing.expanded.endSec*1E3),this.W.xN([p])), this.pI=!0,UJ(this);QA(this)}; g.I.mT=function(p){(this.Y=p)?(Dh(this),UJ(this,!1)):(BE1(this),this.V6.start());this.N1()}; g.I.xN=function(p){var x=this.timing;p=(p===void 0?0:p)+this.W.getCurrentTime();var a=[],v=x.visible,c=x.preview;x=x.expanded;Tt(v)&&(cHb(v,p),a.push(mW(v.startSec,v.endSec,"shopping_overlay_visible")));Tt(c)&&(cHb(c,p),v=c.startSec+1,a.push(mW(c.startSec,v,"shopping_overlay_preview_collapsed")),a.push(mW(v,c.endSec,"shopping_overlay_preview_expanded")));Tt(x)&&(cHb(x,p),a.push(mW(x.startSec,x.endSec,"shopping_overlay_expanded")));this.W.xN(a)}; g.I.N1=function(){Hl.prototype.N1.call(this);this.W.getRootNode()&&g.cG(this.W.getRootNode(),"ytp-shopping-pill-shown",this.qz())};g.M(Y2x,g.N); Y2x.prototype.Yg=function(){var p=this.api.L();this.eD(g.nH(p)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.E7);var x=this.api.getVideoData(),a=!1;this.api.getPresentingPlayerType()===2?a=!!x.videoId&&!!x.isListed&&!!x.author&&!!x.oa&&!!x.profilePicture:g.nH(p)&&(a=!!x.videoId&&!!x.oa&&!!x.profilePicture&&!x.fp&&!p.j&&!(p.V&&this.api.getPlayerSize().width<200));var v=x.profilePicture;p=g.nH(p)?x.expandedTitle:x.author;v=v===void 0? "":v;p=p===void 0?"":p;a?(this.Z!==v&&(this.U.style.backgroundImage="url("+v+")",this.Z=v),this.updateValue("channelLogoLabel",g.px("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:p})),g.$W(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.sm(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.U,a&&this.C);this.api.logVisibility(this.channelName,a&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=x.aT);this.updateValue("expandedTitle",x.expandedTitle)};g.M(So,g.xK);So.prototype.show=function(){g.xK.prototype.show.call(this);this.U.start()}; So.prototype.hide=function(){g.xK.prototype.hide.call(this);this.U.stop()}; So.prototype.WM=function(p,x){p==="dataloaded"&&((this.zt=x.zt,this.MN=x.MN,isNaN(this.zt)||isNaN(this.MN))?this.j&&(this.W.Mg("intro"),this.W.removeEventListener(g.GF("intro"),this.V),this.W.removeEventListener(g.Oo("intro"),this.S),this.W.removeEventListener("onShowControls",this.B),this.hide(),this.j=!1):(this.W.addEventListener(g.GF("intro"),this.V),this.W.addEventListener(g.Oo("intro"),this.S),this.W.addEventListener("onShowControls",this.B),p=new g.gZ(this.zt,this.MN,{priority:9,namespace:"intro"}), this.W.xN([p]),this.j=!0))};g.M(fS,g.N);fS.prototype.onClick=function(){this.W.rK()}; fS.prototype.Yg=function(){var p=!0;g.nH(this.W.L())&&(p=p&&this.W.fI().getPlayerSize().width>=480);this.eD(p);p=this.updateValue;var x=this.W.D("delhi_modern_web_player_icons"),a=x?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,G:{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"}}]};x=x?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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"}}]};p.call(this,"icon",this.W.F8()?a:x)};g.M(jlU,g.N);jlU.prototype.PO=function(){this.U=null;g.N.prototype.PO.call(this)};g.M(CS,g.N);CS.prototype.onClick=function(){this.W.NT("innertubeCommand",this.Z)}; CS.prototype.T=function(){if(this.W.D("delhi_modern_web_player")){var p=this.W.getPlayerSize();p.width&&(this.element.style.maxWidth=p.width*.25+"px")}}; CS.prototype.pI=function(p){p!==this.V&&(this.update({chapterTitle:p,ariaLabel:p}),this.V=p);p?this.show():this.hide()}; CS.prototype.Zt=function(){this.U.disabled=this.Z==null;g.cG(this.U,"ytp-chapter-container-disabled",this.U.disabled);this.SV()};g.M(X1,CS);X1.prototype.onClickCommand=function(p){g.O(p,Ih)&&this.SV()}; X1.prototype.updateVideoData=function(p,x){var a,v,c;p=g.O((a=x.getWatchNextResponse())==null?void 0:(v=a.playerOverlays)==null?void 0:(c=v.playerOverlayRenderer)==null?void 0:c.decoratedPlayerBarRenderer,Px);a=g.O(p==null?void 0:p.playerBarActionButton,g.et);if(this.W.D("web_player_updated_entrypoint")){this.Y=wq(a==null?void 0:a.text);var J;v=(J=a==null?void 0:a.tooltip)!=null?J:"Ver cap\u00edtulo";this.S.setAttribute("title",v)}this.Z=a==null?void 0:a.command;CS.prototype.Zt.call(this)}; X1.prototype.SV=function(){var p=this.Y,x=this.B.U,a,v=((a=this.W.getLoopRange())==null?void 0:a.type)==="clips";if(x.length>1&&!v){p=this.W.getProgressState().current*1E3;a=l0(x,p);p=x[a].title||"Cap\u00edtulos";if(a!==this.currentIndex||this.j)this.W.NT("innertubeCommand",x[a].onActiveCommand),this.currentIndex=a;this.j=!1}else this.j=!0;CS.prototype.pI.call(this,p)};g.M(i0,g.s6);i0.prototype.Z=function(){var p;(p=this.element.parentElement)==null||p.classList.contains("ytp-right-controls-left");(this.U=!this.U)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; i0.prototype.isExpanded=function(){return this.U};g.M(oO,g.N);oO.prototype.j=function(p){g.q(p.state,32)?MEQ(this,this.api.wM()):this.E7&&(g.q(p.state,16)||g.q(p.state,1))||this.fade.hide()}; oO.prototype.onProgress=function(){var p=this.api.getPlayerStateObject();(g.q(p,32)||g.q(p,16))&&WXg(this)}; oO.prototype.B=function(){this.frameIndex=NaN;WXg(this)}; oO.prototype.hide=function(){this.U&&MEQ(this,null);g.N.prototype.hide.call(this)};g.M(ko_,g.N);g.I=ko_.prototype;g.I.onClick=function(){var p=this;if(this.W.L().oa||this.W.L().V){this.W.logClick(this.element);try{this.W.toggleFullscreen().catch(function(x){p.W9(x)})}catch(x){this.W9(x)}}else aW(this.message,this.element,!0)}; g.I.W9=function(p){String(p).includes("fullscreen error")?g.Hp(p):g.Uq(p);this.Nc()}; g.I.Nc=function(){this.disable();this.message.Y$(this.element,!0)}; g.I.II=function(){Bb()===this.W.getRootNode()?this.j.start():(this.j.stop(),this.message&&this.message.hide())}; g.I.WY=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var p=window.screen.width*.9,x=window.screen.height*.9,a=Math.max(window.outerWidth,window.innerWidth),v=Math.max(window.outerHeight,window.innerHeight);if(a>v!==p>x){var c=a;a=v;v=c}p>a&&x>v&&this.Nc()}}; g.I.disable=function(){var p=this;if(!this.message){var x=(dr(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.xK(this.W,{J:"div",CI:["ytp-popup","ytp-generic-popup"],G:{role:"alert",tabindex:"0"},N:[x[0],{J:"a",G:{href:"https://support.google.com/youtube/answer/6276924", target:this.W.L().T},wr:x[2]},x[4]]},100,!0);this.message.hide();g.Z(this,this.message);this.message.subscribe("show",function(a){p.Z.t9(p.message,a)}); g.qh(this.W,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.U)();this.U=null}}; g.I.Yg=function(){var p=OzT(this.W),x=this.W.L().V&&this.W.getPlayerSize().width<250;this.eD(p&&!x);var a;((a=this.W.L())==null?0:a.D("embeds_use_parent_visibility_in_ve_logging"))?this.W.logVisibility(this.element,this.E7&&this.C):this.W.logVisibility(this.element,this.E7)}; g.I.Q0=function(p){if(p){var x=g.Es(this.W,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.W.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(a){g.Hp(a)})}else x=g.Es(this.W,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"}); p=DRo(this,p);x=this.message?null:x;this.W.L().D("player_tooltip_data_title_killswitch")?this.update({title:x,icon:p}):this.update({"tooltip-title":x,"aria-label":x,icon:p});this.Z.Gn().jg()}; g.I.PO=function(){this.message||((0,this.U)(),this.U=null);g.N.prototype.PO.call(this)}; g.I.Rl=function(p){g.N.prototype.Rl.call(this,p);var x;((x=this.W.L())==null?0:x.D("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.E7&&p)};g.M(tr,g.N);tr.prototype.onClick=function(){this.W.logClick(this.element);this.W.seekBy(this.U,!0);var p=this.U>0?1:-1,x=Math.abs(this.U),a=this.W.Sv().fA;a&&a.u3(p,x);this.Z.isActive()?this.j=!0:(p=["ytp-jump-spin"],this.U<0&&p.push("backwards"),this.element.classList.add.apply(this.element.classList,g.lf(p)),g.Pk(this.Z))};g.M(zt,CS);zt.prototype.onClickCommand=function(p){g.O(p,POG)&&this.SV()}; zt.prototype.updateVideoData=function(){var p,x;this.Z=(p=H7b(this))==null?void 0:(x=p.onTap)==null?void 0:x.innertubeCommand;CS.prototype.Zt.call(this)}; zt.prototype.SV=function(){var p="",x=this.B.V,a,v=(a=H7b(this))==null?void 0:a.headerTitle;a=v?g.Jv(v):"";var c;v=((c=this.W.getLoopRange())==null?void 0:c.type)==="clips";x.length>1&&!v&&(p=this.W.getProgressState().current*1E3,c=TW1(x,p),p=c!=null?x[c].title:a,c!=null&&c!==this.currentIndex&&(this.W.NT("innertubeCommand",x[c].onActiveCommand),this.currentIndex=c));CS.prototype.pI.call(this,p)};g.M(wk,g.N);wk.prototype.onClick=function(){this.W.NT("onCollapseMiniplayer");this.W.logClick(this.element)}; wk.prototype.Yg=function(){this.visible=!this.W.isFullscreen();this.eD(this.visible);this.W.logVisibility(this.element,this.visible&&this.C)}; wk.prototype.Rl=function(p){g.N.prototype.Rl.call(this,p);this.W.logVisibility(this.element,this.visible&&p)};g.M(E9,g.N);E9.prototype.init=function(){this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.S);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.U);QlQ(this,this.U)}; E9.prototype.j=function(){yA(this,Number(this.Z.value));this.Z.focus()}; E9.prototype.V=function(p){if(!p.defaultPrevented){switch(p.code){case "ArrowDown":p=-this.Y;break;case "ArrowUp":p=this.Y;break;default:return}yA(this,Math.min(this.S,Math.max(Number((this.U+p).toFixed(2)),this.B)))}};g.M(gk,E9);gk.prototype.onVolumeChange=function(p){if(this.T)this.T=!1;else{var x=p.volume;x===0||p.muted?yA(this,0):yA(this,x)}}; gk.prototype.j=function(){E9.prototype.j.call(this);this.Zt(this.U)}; gk.prototype.pI=function(p){var x=-p.deltaY;x=p.deltaMode===WheelEvent.DOM_DELTA_LINE||p.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ZL(this.U+x,0,100):g.ZL(this.U+g.ZL(x/10,-10,10),0,100);x===0?yA(this,0):yA(this,x);this.Zt(x);p.preventDefault();p.stopPropagation()}; gk.prototype.O7=function(p,x){this.T=!0;p===0||x?this.W.mute():(this.W.isMuted()&&this.W.unMute(),this.W.setVolume(p))};g.M(mR_,g.N);g.M(Gt,g.N);g.I=Gt.prototype;g.I.CK=function(){if(!this.W.C0()){this.updateValue("dataTooltipOffsetY",-120);var p;(p=this.U)!=null&&Zj(p,!0);var x;(x=this.U)!=null&&x.U.stop()}}; g.I.HT=function(){var p;(p=this.U)!=null&&p.U.start()}; g.I.hO=function(p){this.visible=p.width>=300||this.hG;this.eD(this.visible);this.W.logVisibility(this.element,this.visible&&this.C)}; g.I.dl=function(){this.W.L().qT?this.W.isMuted()?this.W.unMute():this.W.mute():aW(this.message,this.element,!0);this.W.logClick(this.element)}; g.I.ivt=function(p){if(this.W.L().qT&&this.U)if(p.target===this.j){var x;if(!this.W.C0()||((x=this.U)==null?0:x.isVisible))this.dl();else{var a;(a=this.U)!=null&&Zj(a,!0)}}else{var v;(v=this.U)!=null&&Zj(v,!0)}else this.dl()}; g.I.onVolumeChange=function(p){this.setVolume(p.volume,p.muted)}; g.I.setVolume=function(p,x){var a=this,v=x?0:p/100;p=v===0?1:p>50?1:0;if(this.T!==p){var c=this.Y;isNaN(c)?i78(this,p):Eqg(this.qT,function(R){i78(a,c+(a.T-c)*R)},250); this.T=p}v=v===0?1:0;if(this.V!==v){var J=this.O7;isNaN(J)?oaU(this,v):Eqg(this.u$,function(R){oaU(a,J+(a.V-J)*R)},250); this.V=v}fR1(this,x)}; g.I.Rl=function(p){g.N.prototype.Rl.call(this,p);this.W.logVisibility(this.element,this.visible&&p)}; var Cj1=["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"],XiT=["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.M(g.O9,g.N);g.I=g.O9.prototype;g.I.onStateChange=function(p){this.XX(p.state);var x;((x=this.W.L())==null?0:x.D("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.E7&&this.C)}; g.I.XX=function(p){var x=g.AM(this.W.getVideoData()),a=!1;p.isOrWillBePlaying()?p=x?4:2:g.q(p,2)?(p=3,a=x):p=1;this.element.disabled=a;if(this.U!==p){x=null;switch(p){case 2:x=g.Es(this.W,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:x="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:x=g.Es(this.W,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:x="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}p=== 3?this.W.L().D("player_tooltip_data_title_killswitch")?this.update({title:x,icon:tEf(this,p)}):this.update({"tooltip-title":x,icon:tEf(this,p)}):(this.W.D("player_tooltip_data_title_killswitch")?this.update({title:x}):this.update({"tooltip-title":x}),(x=tEf(this,p))&&this.U&&this.U!==3?gqo(this.transition,this.element,x):this.updateValue("icon",x));this.tooltip.jg();this.U=p}}; g.I.onVideoDataChange=function(){g.cG(this.element,"ytp-play-button-playlist",g.Os(this.W))}; g.I.u7=function(p){this.W.logClick(this.element);if(this.W.getPlayerStateObject().isOrWillBePlaying())this.W.pauseVideo();else{if(this.W.isMinimized()&&this.W.getPlayerStateObject().isCued()){var x={},a;if((a=this.W.getVideoData())==null?0:a.S)x.cttAuthInfo={token:this.W.getVideoData().S,videoId:this.W.getVideoData().videoId};Dy("direct_playback",x);this.W.UT().timerName="direct_playback"}this.W.playVideo()}this.W.isMinimized()&&(p==null?void 0:p.type)==="click"&&this.element.blur()}; g.I.Rl=function(p){g.N.prototype.Rl.call(this,p);var x;((x=this.W.L())==null?0:x.D("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.E7&&p)};g.M(g.NB,g.N);g.I=g.NB.prototype;g.I.onVideoDataChange=function(){EaU(this);this.B&&(this.IA(this.B),this.B=null);this.videoData=this.W.getVideoData(1);if(this.playlist=this.W.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.B=this.X(this.W,"progresssync",this.e0);this.j=yH_(this);wi1(this);this.s3(this.W.fI().getPlayerSize())}; g.I.s3=function(p){p=p===void 0?this.W.fI().getPlayerSize():p;var x,a=((x=this.W.getLoopRange())==null?void 0:x.type)==="clips";p=(g.Os(this.W)||this.U&&g.n_(this.W)&&!this.W.D("web_hide_next_button")||ga1(this))&&!a&&(this.U||p.width>=400);this.eD(p);this.W.logVisibility(this.element,p)}; g.I.onClick=function(p){this.W.logClick(this.element);var x=!0;this.V?x=g.Ma(p,this.W):p.preventDefault();x&&(this.U&&this.W.getPresentingPlayerType()===5?this.W.publish("ytoprerollinternstitialnext"):this.U?(kN(this.W.UT()),this.W.publish("playlistnextbuttonclicked",this.element),this.W.nextVideo(!0)):this.j?this.W.seekTo(0):(kN(this.W.UT()),this.W.publish("playlistprevbuttonclicked",this.element),this.W.previousVideo(!0)))}; g.I.e0=function(){var p=yH_(this);p!==this.j&&(this.j=p,wi1(this))}; g.I.PO=function(){this.Z&&(this.Z(),this.Z=null);EaU(this);g.N.prototype.PO.call(this)};g.M(GoN,g.N);g.I=GoN.prototype;g.I.Ts=function(p){this.Bd(p.pageX);this.O3(p.pageX+p.deltaX);O7J(this)}; g.I.Bd=function(p){this.Zt=p-this.hG}; g.I.O3=function(p){p-=this.hG;!isNaN(this.Zt)&&this.thumbnails.length>0&&(this.T=p-this.Zt,this.thumbnails.length>0&&this.T!==0&&(this.j=this.Y+this.T,p=nab(this,this.j),this.j<=this.U/2&&this.j>=q28(this)?(this.api.seekTo(p,!1,void 0,void 0,25),g.Ab(this.O7,"transform","translateX("+(this.j-this.U/2)+"px)"),Z7I(this,p)):this.j=this.Y))}; g.I.rQ=function(){this.pI&&(this.pI.LH=!0);var p=(0,g.WR)()-this.tG<300;if(Math.abs(this.T)<5&&!p){this.tG=(0,g.WR)();p=this.Zt+this.T;var x=this.U/2-p;this.Bd(p);this.O3(p+x);O7J(this);this.api.logClick(this.S)}O7J(this)}; g.I.yx=function(){Ar(this,this.api.getCurrentTime())}; g.I.play=function(p){this.api.seekTo(nab(this,this.j),void 0,void 0,void 0,26);this.api.playVideo();p&&this.api.logClick(this.playButton)}; g.I.onExit=function(p){this.api.seekTo(this.V6,void 0,void 0,void 0,63);this.api.playVideo();p&&this.api.logClick(this.dismissButton)}; g.I.LW=function(p,x){this.hG=p;this.U=x;Ar(this,this.api.getCurrentTime())}; g.I.enable=function(){this.isEnabled||(this.isEnabled=!0,this.V6=this.api.getCurrentTime(),Z7I(this,this.V6),g.cG(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.qT=this.X(this.element,"wheel",this.Ts),this.logVisibility(this.isEnabled))}; g.I.disable=function(){this.isEnabled=!1;this.hide();g.cG(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.qT&&this.IA(this.qT);this.logVisibility(this.isEnabled)}; g.I.reset=function(){this.disable();this.B=[];this.F5=!1}; g.I.logVisibility=function(p){this.api.logVisibility(this.element,p);this.api.logVisibility(this.S,p);this.api.logVisibility(this.dismissButton,p);this.api.logVisibility(this.playButton,p)}; g.I.PO=function(){for(;this.Z.length;){var p=void 0;(p=this.Z.pop())==null||p.dispose()}g.N.prototype.PO.call(this)}; g.M(NE_,g.N);g.M(AHx,g.N);g.M(e9U,g.N);g.M(PO,g.N);PO.prototype.BX=function(p){return p==="PLAY_PROGRESS"?this.Y:p==="LOAD_PROGRESS"?this.V:p==="LIVE_BUFFER"?this.S:this.j};FX1.prototype.update=function(p,x,a,v){a=a===void 0?0:a;this.width=x;this.B=a;this.U=x-a-(v===void 0?0:v);this.position=g.ZL(p,a,a+this.U);this.j=this.position-a;this.Z=this.j/this.U};g.M(pUb,g.N);g.M(g.eo,g.s6);g.I=g.eo.prototype; g.I.La=function(){var p=!1,x=this.api.getVideoData();if(!x)return p;this.api.Mg("timedMarkerCueRange");aNo(this);for(var a=g.k(x.Ra),v=a.next();!v.done;v=a.next()){v=v.value;var c=void 0,J=(c=this.gr[v])==null?void 0:c.markerType,R=void 0;c=(R=this.gr[v])==null?void 0:R.markers;if(!c)break;if(J==="MARKER_TYPE_TIMESTAMPS"){p=g.k(c);for(J=p.next();!J.done;J=p.next()){R=J.value;J=new pUb;var d=void 0;J.title=((d=R.title)==null?void 0:d.simpleText)||"";J.timeRangeStartMillis=Number(R.startMillis);J.U= Number(R.durationMillis);var b=d=void 0;J.onActiveCommand=(b=(d=R.onActive)==null?void 0:d.innertubeCommand)!=null?b:void 0;KLo(this,J)}dJI(this,this.V);p=this.V;J=this.x_;R=[];d=null;for(b=0;br&&(d.end=r);r=SGJ(r,r+l);R.push(r);d=r;J[r.id]=p[b].onActiveCommand}}this.api.xN(R);a:{p=g.k(c);for(c=p.next();!c.done;c=p.next())if(c.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){p= !1;break a}p=!0}p&&(this.Z$=this.gr[v]);p=!0}else if(J==="MARKER_TYPE_HEATMAP"){v=this.gr[v];B=r=J=b=d=R=void 0;if(v&&v.markers){c=(J=(B=v.markersMetadata)==null?void 0:(r=B.heatmapMetadata)==null?void 0:r.minHeightDp)!=null?J:0;J=(R=(b=v.markersMetadata)==null?void 0:(d=b.heatmapMetadata)==null?void 0:d.maxHeightDp)!=null?R:60;R=this.U.length;d=null;for(b=0;b=B&&h<=l&&r.push(Y)}J>0&&(this.pI.style.height=J+"px");B=this.B[b];l=r;Y=c;var D=J,H=b===0;H=H===void 0?!1:H;ufN(B,D);L=l;h=B.Z;H=H===void 0?!1:H;var f=1E3/L.length,m=[];m.push({x:0,y:100});for(var X=0;X0&&(d=r[r.length-1])}g.u0(this)}J=void 0;c=[];if(v=(J=v.markersDecoration)==null?void 0:J.timedMarkerDecorations)for(v=g.k(v),J=v.next();!J.done;J=v.next())J=J.value,b=d=R=void 0,c.push({visibleTimeRangeStartMillis:(R=J.visibleTimeRangeStartMillis)!= null?R:-1,visibleTimeRangeEndMillis:(d=J.visibleTimeRangeEndMillis)!=null?d:-1,decorationTimeMillis:(b=J.decorationTimeMillis)!=null?b:NaN,label:J.label?g.Jv(J.label):""});v=c;this.heatMarkersDecorations=v}}x.Hi=this.V;g.cG(this.element,"ytp-timed-markers-enabled",p);return p}; g.I.LW=function(){g.u0(this);pW(this);dJI(this,this.V);if(this.Z){var p=g.p$(this.element).x||0;this.Z.LW(p,this.S)}}; g.I.m67=function(){var p=this.api.getVideoData();p&&WL_(this,p)}; g.I.onClickCommand=function(p){if(p=g.O(p,Ih)){var x=p.key;p.isVisible&&x&&lNf(this,x)}}; g.I.JiO=function(p){this.api.NT("innertubeCommand",this.x_[p.id])}; g.I.SV=function(){pW(this);var p=this.api.getCurrentTime();(pthis.clipEnd)&&this.B1()}; g.I.lD=function(p){if(!p.defaultPrevented){var x=!1;switch(p.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);x=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);x=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);x=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);x=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&c9(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);x=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&c9(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),x=!0}x&&p.preventDefault()}}; g.I.WM=function(p,x){this.updateVideoData(x,p==="newdata")}; g.I.m4=function(){this.WM("newdata",this.api.getVideoData())}; g.I.updateVideoData=function(p,x){x=x===void 0?!1:x;var a=!!p&&p.mU();a&&(L_(p)||INx(this)?this.zC=!1:this.zC=p.allowLiveDvr,g.cG(this.api.getRootNode(),"ytp-enable-live-buffer",!(p==null||!L_(p))),WL_(this,p));tmN(this,this.api.yu());if(x){if(a){x=p.clipEnd;this.clipStart=p.clipStart;this.clipEnd=x;Jd(this);for(az(this,this.Zt,this.US);this.B.length>0;)this.B.pop().dispose();this.heatMarkersDecorations=[];this.OS={};var v;(v=this.Z)==null||v.reset();ri(this);g.cG(this.api.getRootNode(),"ytp-fine-scrubbing-exp", nS(this))}else this.B1();this.sT()}if(p){var c;v=((c=this.WX)==null?void 0:c.type)==="clips";if(c=!p.isLivePlayback){c=this.api.getVideoData();x=g.q_(c);a=vFN(c);var J;c=x!=null||a!=null&&a.length>0||((J=c.S1)==null?void 0:J.length)>0}if(c&&!v){J=this.api.getVideoData();v=g.q_(J);c=!1;if(v==null?0:v.markersMap){c=this.api.getVideoData();var R;c.Uw=((R=v.visibleOnLoad)==null?void 0:R.key)||c.Uw;R=g.k(v.markersMap);for(v=R.next();!v.done;v=R.next())v=v.value,v.key&&v.value&&(this.OS[v.key]=v.value, v.value.onChapterRepeat&&(c.Fs5=v.value.onChapterRepeat));c.Uw!=null&&lNf(this,c.Uw);c=!0}var d;if(((d=J.S1)==null?void 0:d.length)>0){d=g.Mn.getState().entities;R=g.k(J.S1);for(v=R.next();!v.done;v=R.next()){v=v.value;a=void 0;x=(a=P$(d,"macroMarkersListEntity",v))==null?void 0:a.markersList;var b=a=void 0;if(((a=x)==null?void 0:a.markerType)==="MARKER_TYPE_TIMESTAMPS"||((b=x)==null?void 0:b.markerType)==="MARKER_TYPE_HEATMAP")this.gr[v]=x}c=this.La()||c}!c&&(d=vFN(J))&&(Jnx(this,d),J.Z$=this.U, cn1(this));k9T(this,null);p.B4&&this.B.length===0&&(p=p.B4,d=p.key,p.isVisible&&d&&lNf(this,d))}else xJ1(this),aNo(this)}pW(this)}; g.I.Aw=function(p){this.Y&&!g.q(p.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var x;((x=this.Z)==null?0:x.isEnabled)&&g.q(p.state,8)&&this.api.pauseVideo();p=this.api.getPresentingPlayerType()===2||!this.api.yu()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.cG(this.Xq,"ytp-hide-scrubber-button",p)}; g.I.iC=function(p){var x=!!this.WX!==!!p,a=this.WX;this.WX=p;k9T(this,a);(p==null?void 0:p.type)!=="clips"&&p||(p?(this.updateValue("clipstarticon",kWJ()),this.updateValue("clipendicon",kWJ()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",lvQ()),this.updateValue("clipendicon",Brg()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),x&&(this.updateVideoData(this.api.getVideoData(), !0),g.u0(this)),Jd(this));az(this,this.Zt,this.US)}; g.I.WFd=function(){this.api.publish("progressBarHoverStart")}; g.I.C2t=function(p,x,a){var v=g.p$(this.element),c=F1(this).U,J=a?a.getAttribute("data-tooltip"):void 0,R=a?a.getAttribute("data-position"):void 0,d=a?a.getAttribute("data-offset-y"):void 0;d=d?Number(d):0;R&&(p=TN(this.j,Number(a.getAttribute("data-position")),0)*c+g.p$(this.progressBar).x);this.oa.x=p-v.x;this.oa.y=x-v.y;p=F1(this);a=v9(this,p);x=0;var b;if((b=this.api.getVideoData())==null?0:L_(b))(b=this.api.getProgressState().seekableEnd)&&a>b&&(a=b,p.position=TN(this.j,b)*F1(this).U),x=this.j.Z; INx(this)&&(x=this.j.Z);b=J||g.YI(this.zC?a-this.j.U:a-x);x=p.position+this.OT;a-=this.api.Y0();var r;if((r=this.Z)==null||!r.isEnabled)if(this.api.wM()){if(this.U.length>1){r=sD(this,this.oa.x,!0);if(!this.WX)for(v=0;v1)for(v=0;v0)for(r=this.oa.x,v=g.k(this.V),c=v.next();!c.done;c=v.next())c=c.value,R=VA(this,c.timeRangeStartMillis/ (this.j.U*1E3),F1(this)),g.cG(c.element,"ytp-timed-marker-hover",R<=r&&R+6>=r);v=this.tooltip.scale;r=this.api.D("delhi_modern_web_player")?67:45;d=(isNaN(d)?0:d)-r*v;this.api.D("web_key_moments_markers")?this.Z$?(r=TW1(this.V,a*1E3),r=r!=null?this.V[r].title:""):(r=l0(this.U,a*1E3),r=this.U[r].title):(r=l0(this.U,a*1E3),r=this.U[r].title);r||(d+=16*v);this.tooltip.scale===.6&&(g.YO(this.api.L())?(d=this.api.fI().getPlayerSize().height-225,v=this.api.D("delhi_modern_web_player")?70:110,d=r?d+v:d+ v+16):d=r?110:126);v=l0(this.U,a*1E3);this.F5=UJz(this,a,v)?v:UJz(this,a,v+1)?v+1:-1;g.cG(this.api.getRootNode(),"ytp-progress-bar-snap",this.F5!==-1&&this.U.length>1);v=!1;c=g.k(this.heatMarkersDecorations);for(R=c.next();!R.done;R=c.next()){R=R.value;var B=a*1E3;B>=R.visibleTimeRangeStartMillis&&B<=R.visibleTimeRangeEndMillis&&(r=R.label,b=g.YI(R.decorationTimeMillis/1E3),this.api.D("web_heat_marker_use_current_time")&&(b=g.YI(v9(this,p))),v=!0)}this.MN!==v&&(this.MN=v,this.api.logVisibility(this.lc, this.MN));g.cG(this.api.getRootNode(),"ytp-progress-bar-decoration",v);v=160*this.tooltip.scale*2;c=r.length*(this.T?8.55:5.7);c=c<=v?c:v;R=c<160*this.tooltip.scale;v=3;!R&&c/2>p.position&&(v=1);!R&&c/2>this.S-p.position&&(v=2);this.api.L().V&&(d-=10);this.B.length&&this.B[0].mU&&(d-=14*(this.T?2:1),this.V6||(this.V6=!0,this.api.logVisibility(this.pI,this.V6)));var l;if(nS(this)&&(((l=this.Z)==null?0:l.isEnabled)||this.Ra>0)){var L;d-=((L=this.Z)==null?0:L.isEnabled)?KW(this):this.Ra}l=void 0;nS(this)&& !this.api.D("web_player_hide_fine_scrubbing_edu")&&(l="Puxe para cima para uma busca precisa",this.hG||(this.hG=!0,this.api.logVisibility(this.YN,this.hG)));this.tooltip.r0(x,a,b,!!J,d,r,v,l)}else this.tooltip.r0(x,a,b,!!J,d);g.$W(this.api.getRootNode(),"ytp-progress-bar-hover");j98(this)}; g.I.Szr=function(){this.sT();g.sm(this.api.getRootNode(),"ytp-progress-bar-hover");this.V6&&(this.V6=!1,this.api.logVisibility(this.pI,this.V6));this.hG&&(this.hG=!1,this.api.logVisibility(this.YN,this.hG));this.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.I.uX4=function(p,x){var a=g.p$(this.element);this.Kp=p-a.x;nS(this)&&this.Z&&(this.Z.F5?Ar(this.Z,this.api.getCurrentTime()):PjI(this.Z),this.Z.show(),g.cG(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.Z.isEnabled));this.L3&&(this.L3.dispose(),this.L3=null);this.JR=x;this.tU=this.api.getCurrentTime();this.U.length>1&&this.F5!==-1?this.api.seekTo(this.U[this.F5].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(v9(this,F1(this)),!1,void 0,void 0,7);g.$W(this.element,"ytp-drag");(this.FM= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.I.hEd=function(){if(nS(this)&&this.Z){var p=KW(this);this.Ra>=p*.5?(this.Z.enable(),Ar(this.Z,this.api.getCurrentTime()),oFo(this,p)):ri(this)}if(g.q(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var x;if((x=this.Z)==null?0:x.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.U.length>1&&this.F5!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&c9(this,this.tU,this.U[this.F5].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.U[this.F5].startTime/1E3,void 0,void 0,void 0,7);else{p=v9(this,F1(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&c9(this,this.tU,p,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(p,void 0,void 0,void 0,7);x=g.k(this.heatMarkersDecorations);for(var a=x.next();!a.done;a=x.next())a=a.value,p*1E3>=a.visibleTimeRangeStartMillis&&p*1E3<=a.visibleTimeRangeEndMillis&& this.api.logClick(this.lc)}g.sm(this.element,"ytp-drag");this.u$&&(this.O7.src=this.u$);this.FM&&!g.q(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.I.ipr=function(p,x){var a=this,v=F1(this),c=v9(this,v);this.api.fI().eJ||(v.position>this.Kp+2?this.ol&&(this.O7.src=this.ol):v.position1);this.eD(p&&this.W.fI().getPlayerSize().width>=400);this.W.logVisibility(this.element,this.E7);var x=1;p&&this.isActive()&&(x=2);if(this.U!==x){this.U=x;p=this.W.D("delhi_modern_web_player_icons");switch(x){case 1:this.updateValue("icon",p?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{J:"path",lV:!0,G:{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", p?{J:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{J:"path",G:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.bPx())}g.cG(this.element,"ytp-remote-button-active",this.isActive())}}; B9.prototype.Z=function(){if(this.W.getOption("remote","quickCast"))this.W.setOption("remote","quickCast",!0);else{var p=this.PX,x=this.element;if(p.WU())p.iV();else{p.initialize();a:{var a=g.k(p.kN.items);for(var v=a.next();!v.done;v=a.next())if(v=v.value,v.priority===1){a=v;break a}a=null}a&&(a.open(),p.Y$(x));p.Y$(x)}}this.W.logClick(this.element)};g.M(lk,g.N);lk.prototype.U=function(p){var x=this.W.L(),a=400;this.W.D("web_player_small_hbp_settings_menu")&&x.S?a=300:x.V&&(a=200);p=this.Z&&p.width>=a;this.eD(p);this.W.D("embeds_use_parent_visibility_in_ve_logging")?this.W.logVisibility(this.element,p&&this.C):this.W.logVisibility(this.element,p)}; lk.prototype.j=function(){if(this.PX.E7)this.PX.iV();else{var p=g.XF(this.W.uV());p&&!p.loaded&&(p.EN("tracklist",{includeAsr:!0}).length||p.load());this.W.logClick(this.element);this.PX.Y$(this.element)}}; lk.prototype.updateBadge=function(){var p=this.W.isHdr(),x=this.W.getPresentingPlayerType(),a=x!==2&&x!==3,v=g.Pw(this.W),c=a&&!!g.Ae(this.W.uV());x=c&&v.displayMode===1;v=c&&v.displayMode===2;a=(c=x||v)||!a?null:this.W.getPlaybackQuality();g.cG(this.element,"ytp-hdr-quality-badge",p);g.cG(this.element,"ytp-hd-quality-badge",!p&&(a==="hd1080"||a==="hd1440"));g.cG(this.element,"ytp-4k-quality-badge",!p&&a==="hd2160");g.cG(this.element,"ytp-5k-quality-badge",!p&&a==="hd2880");g.cG(this.element,"ytp-8k-quality-badge", !p&&a==="highres");g.cG(this.element,"ytp-3d-badge-grey",!p&&c&&x);g.cG(this.element,"ytp-3d-badge",!p&&c&&v)};g.M(LW,jZ);LW.prototype.isLoaded=function(){var p=g.Eu(this.W.uV());return p!==void 0&&p.loaded}; LW.prototype.Yg=function(){g.Eu(this.W.uV())!==void 0&&this.W.getPresentingPlayerType()!==3?this.U||(this.PX.u2(this),this.U=!0):this.U&&(this.PX.v5(this),this.U=!1);IW(this,this.isLoaded())}; LW.prototype.onSelect=function(p){this.isLoaded();p?this.W.loadModule("annotations_module"):this.W.unloadModule("annotations_module");this.W.publish("annotationvisibility",p)}; LW.prototype.PO=function(){this.U&&this.PX.v5(this);jZ.prototype.PO.call(this)};g.M(Yq,g.w$);Yq.prototype.Yg=function(){var p=this.W.getAvailableAudioTracks();p.length>1?(this.U1(g.IT(p,this.U)),this.tracks=g.uZ(p,this.U,this),this.countLabel.Aj(p.length?" ("+p.length+")":""),this.publish("size-change"),this.oB(this.U(this.W.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Yq.prototype.UN=function(p){g.w$.prototype.UN.call(this,p);this.W.setAudioTrack(this.tracks[p]);this.PX.o5()}; Yq.prototype.U=function(p){return p.toString()};g.M(hd,jZ); hd.prototype.Z=function(){var p=this.W.getPresentingPlayerType();if(p!==2&&p!==3&&g.n_(this.W))this.U||(this.PX.u2(this),this.U=!0,this.j.push(this.X(this.W,"videodatachange",this.Z)),this.j.push(this.X(this.W,"videoplayerreset",this.Z)),this.j.push(this.X(this.W,"onPlaylistUpdate",this.Z)),this.j.push(this.X(this.W,"autonavchange",this.B)),p=this.W.getVideoData(),this.B(p.autonavState),this.W.logVisibility(this.element,this.U));else if(this.U){this.PX.v5(this);this.U=!1;p=g.k(this.j);for(var x=p.next();!x.done;x= p.next())this.IA(x.value)}}; hd.prototype.B=function(p){IW(this,p!==1)}; hd.prototype.onSelect=function(p){this.W.ut(p?2:1);this.U&&(this.W.logVisibility(this.element,this.U),this.W.logClick(this.element))}; hd.prototype.PO=function(){this.U&&this.PX.v5(this);jZ.prototype.PO.call(this)};g.M(wUN,g.cy);wUN.prototype.onClick=function(p){p.preventDefault();var x,a;(x=g.S9(this.W))==null||(a=x.Im())==null||a.iV();var v,c;(v=g.S9(this.W))==null||(c=v.Lc())==null||c.Y$(p.target)};g.M(EF1,g.w$);g.I=EF1.prototype; g.I.u5=function(){var p=this.W.getPresentingPlayerType();if(p!==2&&p!==3){this.O7=this.W.Wv();var x=this.W.getAvailableQualityLevels();if(this.U){this.B={};p=g.Us(this.W,"getAvailableQualityData",[]);p=g.k(p);for(var a=p.next();!a.done;a=p.next())a=a.value,this.B[a.qualityLabel]=a;p=Object.keys(this.B);x[x.length-1]==="auto"&&p.push("auto");this.u$=new Set(x)}else if(this.S){a=g.Us(this.W,"getAvailableQualityData",[]);p=[];a=g.k(a);for(var v=a.next();!v.done;v=a.next())v=v.value,this.Y[v.quality]= v,v.quality&&p.push(v.quality);x[x.length-1]==="auto"&&p.push("auto")}else p=x;g.m8U(this.W)&&this.W.W0()&&p.unshift("missing-qualities");x=this.W.app.md();a=x.getVideoData();if(!a.Z||!a.Z.video||a.Z.video.qualityOrdinal<1080||a.UX)x=!1;else{v=/^qsa/.test(a.clientPlaybackNonce);var c="r";a.Z.id.indexOf(";")>=0&&(v=/^[a-p]/.test(a.clientPlaybackNonce),c="x");v?(x.jA("iqss",{trigger:c},!0),x=!0):x=!1}x&&p.unshift("inline-survey");this.U1(p);x=this.W.getVideoData().cotn?!0:!1;a=this.pI.CG();a=!g.YO(this.W.L())|| !(x===void 0?0:x)||!(a===void 0||a);x=this.Z;a=a===void 0?!1:a;x.vT&&g.cG(x.BO("ytp-panel-footer"),"ytp-panel-hide-footer",a===void 0?!1:a);if(p.length){this.D_();this.enable(!0);return}}this.enable(!1)}; g.I.D_=function(){if(this.U){var p=this.W.getPreferredQuality();this.u$.has(p)&&(this.V=this.W.getPlaybackQuality(),this.Zt=this.W.getPlaybackQualityLabel(),p==="auto"?(this.oB(p),this.Aj(this.yf(p))):this.oB(this.Zt))}else p=this.W.getPreferredQuality(),this.options[p]&&(this.V=this.W.getPlaybackQuality(),this.oB(p),p==="auto"&&this.Aj(this.yf(p)))}; g.I.UN=function(p){if(p!=="missing-qualities"){g.w$.prototype.UN.call(this,p);var x=this.U?this.B[p]:this.Y[p];var a=x==null?void 0:x.quality,v=x==null?void 0:x.formatId,c=x==null?void 0:x.paygatedQualityDetails;x=c==null?void 0:c.endpoint;if(c){var J;c=(J=this.options[p])==null?void 0:J.element;this.W.logClick(c)}if(this.U){var R,d;if((R=g.O(x,g.gYQ))==null?0:(d=R.popup)==null?0:d.notificationActionRenderer)this.W.NT("innertubeCommand",x);else if(x){this.W.NT("innertubeCommand",x);return}v?this.W.setPlaybackQuality(a, v):this.W.setPlaybackQuality(a)}else{if(this.S){var b,r;if((b=g.O(x,g.gYQ))==null?0:(r=b.popup)==null?0:r.notificationActionRenderer)this.W.NT("innertubeCommand",x);else if(x){this.W.NT("innertubeCommand",x);return}}this.W.setPlaybackQuality(p)}this.PX.iV();this.u5()}}; g.I.open=function(){for(var p=g.k(Object.values(this.options)),x=p.next();!x.done;x=p.next()){x=x.value;var a=void 0;this.W.hasVe((a=x)==null?void 0:a.element)&&(a=void 0,this.W.logVisibility((a=x)==null?void 0:a.element,!0))}g.w$.prototype.open.call(this);this.W.logClick(this.element)}; g.I.aY=function(p,x,a){var v=this;if(p==="missing-qualities")return new g.cy({J:"a",CI:["ytp-menuitem"],G:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.W.L().T,tabindex:"0",role:"menuitemradio"},N:[{J:"div",CI:["ytp-menuitem-label"],wr:"{{label}}"}]},x,this.yf(p));if(p!=="inline-survey"){var c,J=(c=this.U?this.B[p]:this.Y[p])==null?void 0:c.paygatedQualityDetails;c=J==null?void 0:J.veType;J=J==null?void 0:J.trackingParams;x=g.w$.prototype.aY.call(this,p,x,a);J?(this.W.createServerVe(x.element, this,!0),this.W.setTrackingParams(x.element,J)):c&&this.W.createClientVe(x.element,this,c,!0);return x}p=[{J:"span",wr:"Que tal?"}];a=g.k([!0,!1]);J=a.next();for(c={};!J.done;c={WD:void 0},J=a.next())c.WD=J.value,J=new g.N({J:"span",K:"ytp-menuitem-inline-survey-response",N:[c.WD?WD8():YUb()],G:{tabindex:"0",role:"button"}}),J.listen("click",function(R){return function(){var d=v.W.app.md();d.jA("iqsr",{tu:R.WD});d.getVideoData().UX=!0;v.PX.iV();v.u5()}}(c)),p.push(J); return new g.cy({J:"div",K:"ytp-menuitem",G:{"aria-disabled":"true"},N:[{J:"div",CI:["ytp-menuitem-label"],N:p}]},x)}; g.I.yf=function(p,x){x=x===void 0?!1:x;if(p==="missing-qualities")return{J:"div",wr:"Faltam op\u00e7\u00f5es?"};if(p==="inline-survey")return"";var a=this.S||this.U?[ZDN(this,p,x,!1)]:[gFJ(this,p)];var v=this.W.getPreferredQuality();x||v!=="auto"||p!=="auto"||(a.push(" "),this.U?a.push(ZDN(this,this.Zt,x,!0,["ytp-menu-label-secondary"])):this.S?a.push(ZDN(this,this.V,x,!0,["ytp-menu-label-secondary"])):a.push(gFJ(this,this.V,["ytp-menu-label-secondary"])));return{J:"div",N:a}};g.M(jX,E9);jX.prototype.j=function(){E9.prototype.j.call(this);this.T&&G9Q(this)}; jX.prototype.u$=function(){this.Zt()}; jX.prototype.O7=function(){this.W.setPlaybackRate(this.U,!0)}; jX.prototype.V=function(p){E9.prototype.V.call(this,p);this.Zt();G9Q(this);p.preventDefault()};g.M(Iz,g.N);g.I=Iz.prototype;g.I.init=function(){this.c7(this.U);this.updateValue("minvalue",this.Z);this.updateValue("maxvalue",this.j)}; g.I.dQ=function(p){if(!p.defaultPrevented){switch(p.keyCode){case 37:case 40:var x=-this.Y;break;case 39:case 38:x=this.Y;break;default:return}this.c7(this.U+x);p.preventDefault()}}; g.I.oN=function(p){var x=this.U;x+=(p.deltaX||-p.deltaY)<0?-this.T:this.T;this.c7(x);p.preventDefault()}; g.I.EZ=function(p){p=(p-g.p$(this.B).x)/this.Zt*this.range+this.Z;this.c7(p)}; g.I.c7=function(p,x){x=x===void 0?"":x;p=g.ZL(p,this.Z,this.j);x===""&&(x=p.toString());this.updateValue("valuenow",p);this.updateValue("valuetext",x);this.pI.style.left=(p-this.Z)/this.range*(this.Zt-this.F5)+"px";this.U=p}; g.I.focus=function(){this.qT.focus()};g.M(MZ,Iz);MZ.prototype.O7=function(){this.W.setPlaybackRate(this.U,!0)}; MZ.prototype.c7=function(p){Iz.prototype.c7.call(this,p,NO1(this,p).toString());this.S&&(ODf(this),this.u$())}; MZ.prototype.updateValues=function(){var p=this.W.getPlaybackRate();NO1(this,this.U)!==p&&(this.c7(p),ODf(this))};g.M(Anb,g.s6);Anb.prototype.focus=function(){this.U.focus()};g.M(PDz,T2);g.M(nFx,g.w$);g.I=nFx.prototype;g.I.yf=function(p){return p==="1"?"Normal":p.toLocaleString()}; g.I.Yg=function(){var p,x=(p=this.W.getVideoData())==null?void 0:p.O8();p=this.W.getPresentingPlayerType(x);this.enable(p!==2&&p!==3);VmU(this)}; g.I.U1=function(p){g.w$.prototype.U1.call(this,p);this.Y&&this.Y.Z.focus()}; g.I.KX=function(p){g.w$.prototype.KX.call(this,p);p?(this.pI=this.X(this.W,"onPlaybackRateChange",this.onPlaybackRateChange),VmU(this),enT(this,this.W.getPlaybackRate())):(this.IA(this.pI),this.pI=null)}; g.I.onPlaybackRateChange=function(p){var x=this.W.getPlaybackRate();!this.B&&this.Zt.includes(x)||uyz(this,x);enT(this,p)}; g.I.aY=function(p,x,a){return p===this.U&&pub(this.W)?g.w$.prototype.aY.call(this,p,x,a,{J:"div",K:"ytp-speed-slider-menu-footer",N:[this.Y]}):p===this.S&&q1I(this.W)?FLI(this,p,x,a):g.w$.prototype.aY.call(this,p,x,a)}; g.I.UN=function(p){g.w$.prototype.UN.call(this,p);p===this.U?this.W.setPlaybackRate(this.V,!0):this.W.setPlaybackRate(Number(p),!0);pub(this.W)&&p===this.U||this.PX.o5()}; g.I.AB=function(p){var x=p===this.U;this.B=!1;x&&W9(this.W)&&!pub(this.W)?(p=new PDz(this.W),g.ff(this.PX,p)):g.w$.prototype.AB.call(this,p)};g.M($4z,g.w$);g.I=$4z.prototype;g.I.oB=function(p){g.w$.prototype.oB.call(this,p)}; g.I.bC=function(p){return p.option.toString()}; g.I.getOption=function(p){return this.settings[p]}; g.I.yf=function(p){return this.getOption(p).text||""}; g.I.UN=function(p){g.w$.prototype.UN.call(this,p);this.publish("settingChange",this.setting,this.settings[p].option)};g.M(D1,g.Qr);D1.prototype.Du=function(p){for(var x=g.k(Object.keys(p)),a=x.next();!a.done;a=x.next()){var v=a.value;if(a=this.Ln[v]){var c=p[v].toString();v=!!p[v+"Override"];a.options[c]&&(a.oB(c),a.B.element.setAttribute("aria-checked",String(!v)),a.U.element.setAttribute("aria-checked",String(v)))}}}; D1.prototype.VH=function(p,x){this.publish("settingChange",p,x)};g.M(UD,g.w$);UD.prototype.U=function(p){return p.languageCode}; UD.prototype.yf=function(p){return this.languages[p].languageName||""}; UD.prototype.UN=function(p){this.publish("select",p);this.W.logClick(this.element);g.Cf(this.PX)};g.M(vB1,g.w$);g.I=vB1.prototype;g.I.W6=function(p){return g.lu(p)?"__off__":p.displayName}; g.I.yf=function(p){return p==="__off__"?"Desativado":p==="__translate__"?"Traduzir automaticamente":p==="__contribute__"?"Adicionar legendas/CC":p==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(p==="__off__"?{}:this.tracks[p]).displayName}; g.I.UN=function(p){if(p==="__translate__")this.U.open();else if(p==="__contribute__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var x=g.Fk(this.W.L(),this.W.getVideoData());g.zN(x)}else if(p==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var a=cN1(this);H9(this,a);g.w$.prototype.UN.call(this,this.W6(a));var v,c;a=(x=this.W.getVideoData().getPlayerResponse())==null?void 0:(v=x.captions)==null?void 0:(c=v.playerCaptionsTracklistRenderer)== null?void 0:c.openTranscriptCommand;this.W.NT("innertubeCommand",a);this.PX.o5();this.B&&this.W.logClick(this.B)}else{if(p==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();x=cN1(this);H9(this,x);g.w$.prototype.UN.call(this,this.W6(x));var J,R;x=(a=this.W.getVideoData().getPlayerResponse())==null?void 0:(J=a.captions)==null?void 0:(R=J.playerCaptionsTracklistRenderer)==null?void 0:R.openTranscriptCommand;this.W.NT("innertubeCommand",x)}else this.W.logClick(this.element), H9(this,p==="__off__"?{}:this.tracks[p]),g.w$.prototype.UN.call(this,p);this.PX.o5()}}; g.I.Yg=function(){var p=this.W.getOptions();p=p&&p.indexOf("captions")!==-1;var x=this.W.getVideoData(),a=x&&x.HL,v,c=!((v=this.W.getVideoData())==null||!g.rz(v));v={};if(p||a){var J;if(p){var R=this.W.getOption("captions","track");v=this.W.getOption("captions","tracklist",{includeAsr:!0});var d=c?[]:this.W.getOption("captions","translationLanguages");this.tracks=g.uZ(v,this.W6,this);c=g.IT(v,this.W6);var b,r;cN1(this)&&((J=x.getPlayerResponse())==null?0:(b=J.captions)==null?0:(r=b.playerCaptionsTracklistRenderer)== null?0:r.openTranscriptCommand)&&c.push("__correction__");if(d.length&&!g.lu(R)){if((J=R.translationLanguage)&&J.languageName){var B=J.languageName;J=d.findIndex(function(l){return l.languageName===B}); fJI(d,J)}auI(this.U,d);c.push("__translate__")}J=this.W6(R)}else this.tracks={},c=[],J="__off__";c.unshift("__off__");this.tracks.__off__={};a&&c.unshift("__contribute__");this.tracks[J]||(this.tracks[J]=R,c.push(J));this.U1(c);this.oB(J);R&&R.translationLanguage?this.U.oB(this.U.U(R.translationLanguage)):Wv_(this.U);p&&this.S.Du(this.W.getSubtitlesUserSettings());this.countLabel.Aj(v&&v.length?" ("+v.length+")":"");this.publish("size-change");this.W.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.I.zN=function(p){var x=this.W.getOption("captions","track");x=g.hp(x);x.translationLanguage=this.U.languages[p];H9(this,x)}; g.I.VH=function(p,x){if(p==="reset")this.W.resetSubtitlesUserSettings();else{var a={};a[p]=x;this.W.updateSubtitlesUserSettings(a)}scb(this,!0);this.V.start();this.S.Du(this.W.getSubtitlesUserSettings())}; g.I.kw7=function(p){p||g.nO(this.V)}; g.I.PO=function(){g.nO(this.V);g.w$.prototype.PO.call(this)}; g.I.open=function(){g.w$.prototype.open.call(this);this.options.__correction__&&!this.B&&(this.B=this.options.__correction__.element,this.W.createClientVe(this.B,this,167341),this.W.logVisibility(this.B,!0))};g.M(JNf,g.Sd);g.I=JNf.prototype; g.I.initialize=function(){if(!this.isInitialized){var p=this.W.L();this.isInitialized=!0;try{this.RZ=new EF1(this.W,this)}catch(a){g.Hp(Error("QualityMenuItem creation failed"))}g.Z(this,this.RZ);var x=new vB1(this.W,this);g.Z(this,x);p.j||(x=new LW(this.W,this),g.Z(this,x));p.enableSpeedOptions&&(x=new nFx(this.W,this),g.Z(this,x));(g.nH(p)||p.S)&&(p.Z||p.tG)&&(x=new wUN(this.W,this),g.Z(this,x));p.Iw&&!p.D("web_player_move_autonav_toggle")&&(p=new hd(this.W,this),g.Z(this,p));p=new Yq(this.W,this); g.Z(this,p);this.W.publish("settingsMenuInitialized");znU(this.settingsButton,this.kN.MA())}}; g.I.u2=function(p){this.initialize();this.kN.u2(p);znU(this.settingsButton,this.kN.MA())}; g.I.v5=function(p){this.E7&&this.kN.MA()<=1&&this.hide();this.kN.v5(p);znU(this.settingsButton,this.kN.MA())}; g.I.Y$=function(p){this.initialize();this.kN.MA()>0&&g.Sd.prototype.Y$.call(this,p)}; g.I.iV=function(){this.Q_?this.Q_=!1:g.Sd.prototype.iV.call(this)}; g.I.show=function(){g.Sd.prototype.show.call(this);g.$W(this.W.getRootNode(),"ytp-settings-shown")}; g.I.hide=function(){g.Sd.prototype.hide.call(this);g.sm(this.W.getRootNode(),"ytp-settings-shown")}; g.I.mT=function(p){this.W.logVisibility(this.element,p);this.W.publish("settingsMenuVisibilityChanged",p)};g.M(d4g,g.N);g.I=d4g.prototype;g.I.onClick=function(){if(Tg(this)&&(this.W.toggleSubtitles(),this.W.logClick(this.element),!this.isEnabled())){var p=!1,x=g.tX(g.oQ(),65);g.YO(this.W.L())&&x!=null&&(p=!x);p&&this.W.L().D("web_player_nitrate_promo_tooltip")&&this.W.publish("showpromotooltip",this.element)}}; g.I.FU6=function(p){var x,a;(x=g.S9(this.W))==null||(a=x.Im())==null||a.Y$(p)}; g.I.isEnabled=function(){var p=this.W.getOption("captions","track");return!(!p||!p.displayName)}; g.I.Yg=function(){var p=Tg(this),x=300;this.W.L().V&&(x=480);this.W.D("delhi_modern_web_player_icons")&&this.updateValue("icon",K9_(this));if(this.W.L().S){this.updateValue("title",g.Es(this.W,"Legendas/legendas ocultas","c"));this.update({"tooltip-title":g.Es(this.W,"Legendas/legendas ocultas","c")});this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var a=p}else{if(p)(a=this.BO("ytp-subtitles-button-icon"))==null||a.setAttribute("fill-opacity","1"),this.W.L().D("player_tooltip_data_title_killswitch")? this.updateValue("title",g.Es(this.W,"Legendas/legendas ocultas","c")):this.update({"tooltip-title":g.Es(this.W,"Legendas/legendas ocultas","c")}),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{if(this.W.D("delhi_modern_web_player_icons")){var v;(v=this.BO("ytp-subtitles-button-icon"))==null||v.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var c;(c=this.BO("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","0.3")}this.updateValue("title", "N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"tooltip-title":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"});this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}a=!0}this.tooltip.jg();a=a&&this.W.fI().getPlayerSize().width>=x;this.eD(a);this.W.D("embeds_use_parent_visibility_in_ve_logging")?this.W.logVisibility(this.element,a&&this.C):this.W.logVisibility(this.element,a);p?this.updateValue("pressed",this.isEnabled()): this.updateValue("pressed",!1)}; g.I.Rl=function(p){g.N.prototype.Rl.call(this,p);this.W.L().D("embeds_use_parent_visibility_in_ve_logging")&&this.W.logVisibility(this.element,this.E7&&p)};g.M(g.Qn,g.N);g.I=g.Qn.prototype;g.I.canShowCountdown=function(){return!SX(this)&&!mv(this)}; g.I.SV=function(){var p=this.api.fI().getPlayerSize().width,x=this.T;this.api.L().V&&(x=400);x=p>=x&&(!mv(this)||!g.q(this.api.getPlayerStateObject(),64));this.eD(x);g.cG(this.element,"ytp-time-display-allow-autohide",x&&p<400);p=this.api.getProgressState();if(x){var a=this.api.getPresentingPlayerType();x=this.api.getCurrentTime(a,!1);this.Z&&(x-=p.airingStart);SX(this)&&(x-=this.WX.startTimeMs/1E3);this.canShowCountdown()&&this.j&&(x-=this.api.getDuration(a,!1));var v=g.YI(x);this.B!==v&&(this.updateValue("currenttime", v),this.B=v);a=SX(this)?(this.WX.endTimeMs-this.WX.startTimeMs)/1E3:this.api.getDuration(a,!1);v=g.YI(a);this.S!==v&&(this.updateValue("duration",v),this.S=v,x&&(x=g.px("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.YI(x,!0),DURATION:g.YI(a,!0)}),this.updateValue("timeDisplayAriaLabel",x)))}bBf(this,p.isAtLiveHead);rNf(this,this.api.getLoopRange())}; g.I.onLoopRangeChange=function(p){var x=this.WX!==p;this.WX=p;x&&(this.SV(),BsU(this))}; g.I.Dga=function(){this.api.setLoopRange(null)}; g.I.lt4=function(){this.j=!this.j;this.SV()}; g.I.onVideoDataChange=function(p,x,a){this.updateVideoData((this.api.L().D("enable_topsoil_wta_for_halftime")||this.api.L().D("enable_topsoil_wta_for_halftime_live_infra"))&&a===2?this.api.getVideoData(1):x);this.SV();BsU(this)}; g.I.updateVideoData=function(p){this.t5=p.isLivePlayback&&!p.T4;this.Z=L_(p);this.isPremiere=p.isPremiere;g.cG(this.element,"ytp-live",mv(this));this.api.D("delhi_modern_web_player")&&this.BO("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.I.onClick=function(p){p.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.I.PO=function(){this.U&&this.U();g.N.prototype.PO.call(this)};g.M(L9f,g.N);g.I=L9f.prototype;g.I.II=function(){var p=this.api.WB();this.j!==p&&(this.j=p,luJ(this,this.api.getVolume(),this.api.isMuted()))}; g.I.q7=function(p){this.eD(p.width>=350)}; g.I.py=function(p){if(!p.defaultPrevented){var x=p.keyCode,a=null;x===37?a=this.volume-5:x===39?a=this.volume+5:x===36?a=0:x===35&&(a=100);a!==null&&(a=g.ZL(a,0,100),a===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(a)),p.preventDefault())}}; g.I.U0=function(p){var x=p.deltaX||-p.deltaY;p.deltaMode?this.api.setVolume(this.volume+(x<0?-10:10)):this.api.setVolume(this.volume+g.ZL(x/10,-10,10));p.preventDefault()}; g.I.Zv5=function(){fW(this,this.U,!0,this.Z,this.api.C0());this.T=this.volume;this.api.isMuted()&&this.api.unMute()}; g.I.Zs=function(p){var x=this.j?78:52,a=this.j?18:12;p-=g.p$(this.Y).x;this.api.setVolume(g.ZL((p-a/2)/(x-a),0,1)*100)}; g.I.Ugg=function(){fW(this,this.U,!1,this.Z,this.api.C0());this.volume===0&&(this.api.mute(),this.api.setVolume(this.T))}; g.I.onVolumeChange=function(p){luJ(this,p.volume,p.muted)}; g.I.RP=function(){fW(this,this.U,this.isDragging,this.Z,this.api.C0())}; g.I.PO=function(){g.N.prototype.PO.call(this);g.sm(this.V,"ytp-volume-slider-active")};g.M(CW,g.N); CW.prototype.onVideoDataChange=function(){var p=this.api.L();this.LW();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).fp;this.eD(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var x=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",x)}p.j&&(this.U&&(this.IA(this.U),this.U=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.$W(this.element,"no-link")); x=this.api.L();p=this.api.getVideoData();var a="";x.j||(x=g.bm(x),x.indexOf("www.")===0&&(x=x.substring(4)),a=g.Yu(p)?"Assistir no YouTube Music":x==="youtube.com"?"Assistir no YouTube":g.px("Assista em $WEBSITE",{WEBSITE:x}));this.api.D("player_tooltip_data_title_killswitch")?this.updateValue("title",a):this.updateValue("tooltip-title",a)}; CW.prototype.onClick=function(p){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var x=this.api.L(),a=this.api.getVideoUrl(!g.hz(p),!1,!0,!0);if(g.nH(x)){var v={};g.nH(x)&&g.Us(this.api,"addEmbedsConversionTrackingParams",[v]);a=g.jL(a,v)}g.Wy(a,this.api,p);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; CW.prototype.LW=function(){var p={J:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},N:[{J:"path",lV:!0,K:"ytp-svg-fill",G:{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 "}}]}, x=28666,a=this.api.getVideoData();this.api.isEmbedsShortsMode()?p={J:"svg",G:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},N:[{J:"path",G:{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.Yu(a)&&(p={J:"svg",G:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},N:[{J:"path",G:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{J:"path",G:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{J:"path",G:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{J:"path",G:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{J:"path",G:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{J:"path",G:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{J:"path",G:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{J:"path",G:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{J:"path",G:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{J:"path",G:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{J:"path",G:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{J:"path",G:{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"}}]},x=216163);g.Yu(a)?g.$W(this.element,"ytp-youtube-music-button"):g.sm(this.element,"ytp-youtube-music-button");p.G=Object.assign({},p.G,{"aria-hidden":"true"});this.updateValue("logoSvg",p);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,x,!0)}; CW.prototype.Rl=function(p){g.N.prototype.Rl.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.M(jcT,g.II);g.I=jcT.prototype;g.I.onProgress=function(){if(this.W.D("web_player_max_seekable_on_ended")||!g.q(this.W.getPlayerStateObject(),2))this.progressBar.SV(),this.qT.SV()}; g.I.De=function(){this.nO();if(this.uL.Z)this.onProgress();else this.progressBar.sT()}; g.I.jR=function(){this.onProgress();this.T.start()}; g.I.nO=function(){var p;if(p=!this.W.L().Z){p=this.progressBar;var x=2*g.Lk()*p.S,a=p.j;p=(a.U-a.Z)*1E3/p.api.getPlaybackRate()/x<300}p=p&&this.W.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;x=!p;this.uL.Z||(p=x=!1);x?this.O7||(this.O7=this.X(this.W,"progresssync",this.onProgress)):this.O7&&(this.IA(this.O7),this.O7=null);p?this.T.isActive()||this.T.start():this.T.stop()}; g.I.LW=function(){var p=this.W.WB(),x=this.W.fI().getPlayerSize(),a=this.W.fI().eJ,v=MqN(this),c=W9o(this),J=Math.max(x.width-v*2,100);if(this.US!==x.width||this.oa!==p||this.W.D("web_player_rtr_ctrls")&&this.LU!==a)this.US=x.width,this.oa=p,this.LU=a,this.Z.element.style.width=c+"px",this.Z.element.style.left=v+"px",g.XUx(this.progressBar,v,c,p),this.W.Gn().kB=c;a=this.B;J=Math.min(570*(p?1.5:1),J);p=Math.min(413*(p?1.5:1),Math.round((x.height-kCf(this))*.82));a.maxWidth=J;a.maxHeight=p;a.Vo();this.nO(); this.Zp&&h91(this.T4,x.height)}; g.I.onVideoDataChange=function(){var p=this.W.getVideoData();this.gr.style.background=p.fp?p.Dj:"";this.pI&&URo(this.pI,p.showSeekingControls);this.Zt&&URo(this.Zt,p.showSeekingControls)}; g.I.BX=function(){return this.Z.element};g.M(D4T,Hl);g.I=D4T.prototype;g.I.IW=function(p){p.target!==this.dismissButton.element&&(this.onClickCommand&&this.W.NT("innertubeCommand",this.onClickCommand),this.yj())}; g.I.yj=function(){this.enabled=!1;this.T.hide()}; g.I.onVideoDataChange=function(p,x){p==="dataloaded"&&U4f(this);p=[];var a,v,c,J;if(x=(J=g.O((a=x.getWatchNextResponse())==null?void 0:(v=a.playerOverlays)==null?void 0:(c=v.playerOverlayRenderer)==null?void 0:c.suggestedActionsRenderer,LBj))==null?void 0:J.suggestedActions)for(a=g.k(x),v=a.next();!v.done;v=a.next())(v=g.O(v.value,Yaj))&&g.O(v.trigger,lpt)&&p.push(v);if(p.length!==0){a=[];p=g.k(p);for(v=p.next();!v.done;v=p.next())if(v=v.value,c=g.O(v.trigger,lpt))J=(J=v.title)?g.Jv(J):"View Chapters", x=c.timeRangeStartMillis,c=c.timeRangeEndMillis,x!=null&&c!=null&&v.tapCommand&&(a.push(new g.gZ(x,c,{priority:9,namespace:"suggested_action_button_visible",id:J})),this.suggestedActions[J]=v.tapCommand);this.W.xN(a)}}; g.I.qz=function(){return this.enabled}; g.I.mT=function(){this.enabled?this.V6.start():Dh(this);this.N1()}; g.I.PO=function(){U4f(this);Hl.prototype.PO.call(this)};var U2={},oz=(U2.CHANNEL_NAME="ytp-title-channel-name",U2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",U2.LINK="ytp-title-link",U2.SESSIONLINK="yt-uix-sessionlink",U2.SUBTEXT="ytp-title-subtext",U2.TEXT="ytp-title-text",U2.TITLE="ytp-title",U2);g.M(td,g.N);td.prototype.onClick=function(p){this.api.logClick(this.element);var x=this.api.L(),a=this.api.getVideoUrl(!g.hz(p),!1,!0);g.nH(x)&&(x={},g.Us(this.api,"addEmbedsConversionTrackingParams",[x]),a=g.jL(a,x));g.Wy(a,this.api,p)}; td.prototype.Yg=function(){var p=this.api.getVideoData(),x=this.api.L();this.updateValue("title",p.title);var a={J:"a",K:oz.CHANNEL_NAME,G:{href:"{{channelLink}}",target:"_blank"},wr:"{{channelName}}"};this.api.L().j&&(a={J:"span",K:oz.CHANNEL_NAME,wr:"{{channelName}}",G:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",a);HBQ(this);this.api.getPresentingPlayerType()===2&&(a=this.api.getVideoData(),a.videoId&&a.isListed&&a.author&&a.oa&&a.profilePicture?(this.updateValue("channelLink", a.oa),this.updateValue("channelName",a.author),this.updateValue("channelTitleFocusable","0")):HBQ(this));a=x.externalFullscreen||!this.api.isFullscreen()&&x.Ac;g.cG(this.link,oz.FULLERSCREEN_LINK,a);x.pI||!p.videoId||a||p.fp||x.j?this.U&&(this.updateValue("url",null),this.IA(this.U),this.U=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.U||(this.U=this.X(this.link,"click",this.onClick)));x.j&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.nH(x)?p.expandedTitle: p.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.M(g.zg,g.N);g.I=g.zg.prototype;g.I.setEnabled=function(p){if(this.type!=null)if(p)switch(this.type){case 3:case 2:wi(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.V=p}; g.I.r0=function(p,x,a,v,c,J,R,d){if(!this.u$||this.env.V){this.type===3&&this.sT();this.type!==1&&(g.pt(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.V&&this.fade.show(),this.Z&&this.Z.dispose(),(this.Z=this.api.wM())&&this.Z.subscribe("l",this.Ro,this));if(d){var b=g.aT(this.bg).height||141;this.F5.style.bottom=b+2+"px"}else this.F5.style.display="none";this.env.D("delhi_modern_web_player")?(this.update({pillTimeStamp:a,pillTitle:J!=null?J:"",eduText:d!=null?d:""}),g.$W(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:a,title:J!=null?J:"",eduText:d!=null?d:""}),g.cG(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!J));this.api.isInline()&&g.$W(this.bottomText,"ytp-modern-tooltip-text");g.cG(this.element,"ytp-text-detail",!!v);a=-1;this.Z&&(a=ah(this.Z,243*this.scale),this.env.D("web_l3_storyboard")&&this.Z.levels.length===4&&(a=this.Z.levels.length-1),a=xuz(this.Z,a,x));SAJ(this,a);if(R)switch(x=g.aT(this.element).width,R){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=x+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=x/2+"px",this.title.style.textAlign="center"}m4o(this,!!v,p,c)}}; g.I.Fy=function(){this.type===1&&this.sT()}; g.I.x5=function(p,x){if(this.type)if(this.type===3)this.sT();else return;TsU(this,p,3,x)}; g.I.jg=function(){this.U&&!this.Y&&(this.env.D("player_tooltip_data_title_killswitch")?this.U.hasAttribute("title")&&(this.j=this.U.getAttribute("title")||"",this.U.removeAttribute("title"),this.V&&wi(this)):this.U.hasAttribute("data-tooltip-title")&&(this.j=this.U.getAttribute("data-tooltip-title")||"",this.U.removeAttribute("data-tooltip-title"),this.V&&wi(this)))}; g.I.Ro=function(p,x){p<=this.B&&this.B<=x&&(p=this.B,this.B=NaN,SAJ(this,p))}; g.I.aU=function(){FEo(this.Z,this.B,243*this.scale)}; g.I.sT=function(){switch(this.type){case 2:var p=this.U;p.removeEventListener("mouseout",this.T);p.addEventListener("mouseover",this.S);p.removeEventListener("blur",this.T);p.addEventListener("focus",this.S);fu1(this);break;case 3:fu1(this);break;case 1:this.Z&&(this.Z.unsubscribe("l",this.Ro,this),this.Z=null),this.api.removeEventListener("videoready",this.Zt),this.pI.stop()}this.type=null;this.V&&this.fade.hide()}; g.I.kH=function(){if(this.U)for(var p=0;p=0;x--)if(this.fn[x]===p){this.fn.splice(x,1);break}gH(this.uL,64,this.fn.length>0)}; g.I.Bf=function(){this.api.kD()&&this.api.Ju();return!!this.WI||wuf(this)||g.V1.prototype.Bf.call(this)}; g.I.m6=function(){var p=!this.Bf(),x=p&&this.api.kD()&&!g.q(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().fp&&!this.api.L().j&&!this.api.isEmbedsShortsMode(),a=this.iG&&g.Os(this.api)&&g.q(this.api.getPlayerStateObject(),128);p||a?(this.ZF.show(),this.jT.show()):(this.ZF.hide(),this.jT.hide(),this.api.kH(this.bf.element));x?this.c5.Y$():this.c5.iV();this.Aa&&Iu8(this.Aa,this.M3$||!p);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&EB8(this);g.V1.prototype.m6.call(this)}; g.I.bj=function(p,x,a,v,c){p.style.left="";p.style.top="";p.style.bottom="";var J=g.aT(p),R=v||this.Aa&&g.kk(this.Aa.BX(),x),d=v=null;a!=null&&R||(v=g.aT(x),d=g.xG(x,this.api.getRootNode()),a==null&&(a=d.x+v.width/2));a-=J.width/2;R?(x=this.Aa,v=MqN(x),d=W9o(x),R=this.api.fI().getPlayerSize().height,a=g.ZL(a,v,v+d-J.width),J=R-kCf(x)-J.height):g.kk(this.bf.element,x)?(x=this.api.fI().getPlayerSize().width,a=g.ZL(a,12,x-J.width-12),J=this.WB()?this.pw:this.Zd,this.api.L().playerStyle==="gvn"&&(J+= 20),this.iG&&(J-=this.WB()?26:18)):(x=this.api.fI().getPlayerSize(),a=g.ZL(a,12,x.width-J.width-12),J=d.y>(x.height-v.height)/2?d.y-J.height-12:d.y+v.height+12);p.style.top=J+(c||0)+"px";p.style.left=a+"px"}; g.I.De=function(p){p&&(this.api.kH(this.bf.element),this.Aa&&this.api.kH(this.Aa.BX()));this.Jb&&(g.cG(this.contextMenu.element,"ytp-autohide",p),g.cG(this.contextMenu.element,"ytp-autohide-active",!0));g.V1.prototype.De.call(this,p)}; g.I.Mc=function(){g.V1.prototype.Mc.call(this);this.Jb&&(g.cG(this.contextMenu.element,"ytp-autohide-active",!1),this.Jb&&(this.contextMenu.hide(),this.SU&&this.SU.hide()))}; g.I.uh=function(p,x){var a=this.api.fI().getPlayerSize();a=new g.GL(0,0,a.width,a.height);if(p||this.uL.Z&&!this.Bf()){if(this.api.L().Tc||x)p=this.WB()?this.pw:this.Zd,a.top+=p,a.height-=p;this.Aa&&(a.height-=kCf(this.Aa))}return a}; g.I.II=function(p){var x=this.api.getRootNode();p?x.parentElement?(x.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.L().externalFullscreen||(x.parentElement.insertBefore(this.A9.element,x),x.parentElement.insertBefore(this.mS.element,x.nextSibling))):g.Uq(Error("Player not in DOM.")):(x.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.A9.detach(),this.mS.detach());this.LW();this.GW()}; g.I.WB=function(){if(this.api.D("web_player_use_screen_width_for_big_mode")){var p;return this.api.fI().getPlayerSize().width>=((p=g.e_(this.api.L().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?p:2E3)}p=this.api.L();return this.api.isFullscreen()&&!p.V||!1}; g.I.showControls=function(p){this.Sc=!p;this.m6()}; g.I.LW=function(){var p=this.WB();this.tooltip.scale=p?1.5:1;this.contextMenu&&g.cG(this.contextMenu.element,"ytp-big-mode",p);this.m6();this.api.D("web_player_hide_overflow_button_if_empty_menu")||EB8(this);this.GW();var x=this.api.isEmbedsShortsMode();x&&p?(p=(this.api.fI().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ab(this.bf.element,"padding-left",p+"px"),g.Ab(this.bf.element,"padding-right",p+"px")):x&&(g.Ab(this.bf.element,"padding-left",""),g.Ab(this.bf.element,"padding-right", ""));g.V1.prototype.LW.call(this)}; g.I.t4=function(){if(wuf(this)&&!g.Os(this.api))return!1;var p=this.api.getVideoData();return!g.nH(this.api.L())||this.api.getPresentingPlayerType()===2||!this.Kd||((p=this.Kd||p.Kd)?(p=p.embedPreview)?(p=p.thumbnailPreviewRenderer,p=p.videoDetails&&g.O(p.videoDetails,ty1)||null):p=null:p=null,p&&p.collapsedRenderer&&p.expandedRenderer)?g.V1.prototype.t4.call(this):!1}; g.I.GW=function(){g.V1.prototype.GW.call(this);this.api.logVisibility(this.title.element,!!this.K7);this.D2&&this.D2.Rl(!!this.K7);this.channelAvatar.Rl(!!this.K7);this.overflowButton&&this.overflowButton.Rl(this.XM()&&!!this.K7);this.shareButton&&this.shareButton.Rl(!this.XM()&&!!this.K7);this.Zj&&this.Zj.Rl(!this.XM()&&!!this.K7);this.searchButton&&this.searchButton.Rl(!this.XM()&&!!this.K7);this.copyLinkButton&&this.copyLinkButton.Rl(!this.XM()&&!!this.K7);if(!this.K7){this.api.kH(this.bf.element); for(var p=0;p5&&x.jA("glrs",{cmt:a});x.seekTo(0,{seekSource:58});x.jA("glrre",{cmt:a})}}; gi.prototype.PO=function(){this.U=null;g.y.prototype.PO.call(this)};g.M(g.Z1,rM);g.I=g.Z1.prototype;g.I.isView=function(){return!0}; g.I.yR=function(){var p=this.mediaElement.getCurrentTime();if(p1;Ph(p.rH(),v-.01)&&!c&&(OD(this,4),a.isActive=!1,a.In=a.In||a.isActive,(this.C===1?this.U:this.Z).jA("sbh",{}),x.isActive=!0,x.In=x.In||x.isActive,this.C!==0&&(this.U.getVideoData().T2=!0));p=this.B.Z;if(this.B.U.isActive&&p.isActive&&(OD(this,5),this.C!==0)){p=this.Z.Ve();a=this.U.Ve(); this.U.jA("sbs",{citag:a==null?void 0:a.itag,nitag:p==null?void 0:p.itag});this.Z.jA("gitags",{pitag:a==null?void 0:a.itag,citag:p==null?void 0:p.itag});var J;(J=this.Z)==null||J.UB()}}}; g.I.AC=function(){this.DD()&&this.kL("player-reload-after-handoff")}; g.I.kL=function(p,x){x=x===void 0?{}:x;if(!this.b$()&&this.status.status!==6){var a=this.status.status>=4&&p!=="player-reload-after-handoff";this.status={status:Infinity,error:p};if(this.U&&this.Z){var v=this.Z.getVideoData().clientPlaybackNonce;this.U.zn(new g.dD("dai.transitionfailure",Object.assign(x,{cpn:v,transitionTimeMs:this.aV,msg:p})));this.U.FF(a)}this.VQ.reject(p);this.dispose()}}; g.I.DD=function(){return this.status.status>=4&&this.status.status<6}; g.I.PO=function(){uDf(this);this.U.unsubscribe("newelementrequired",this.AC,this);if(this.j){var p=this.j.Z;this.j.U.Tw.unsubscribe("updateend",this.WA,this);p.Tw.unsubscribe("updateend",this.WA,this)}g.y.prototype.PO.call(this)}; g.I.d1=function(p){g.Jz(p,128)&&this.kL("player-error-event")};g.M(NZ,g.y);NZ.prototype.clearQueue=function(p,x){p=p===void 0?!1:p;x=x===void 0?!1:x;this.B&&this.B.reject("Queue cleared");this.app.L().D("html5_gapless_fallback_on_qoe_restart_v2")||x&&this.Z&&this.Z.FF(!1);Ad(this,p)}; NZ.prototype.BN=function(){return!this.U}; NZ.prototype.DD=function(){var p;return((p=this.j)==null?void 0:p.DD())||!1}; NZ.prototype.PO=function(){Ad(this);g.y.prototype.PO.call(this)};g.M(v4f,g.Fx);g.I=v4f.prototype;g.I.getVisibilityState=function(p,x,a,v,c,J,R,d){return p?4:vTo()?3:x?2:a?1:v?5:c?7:J?8:R?9:d?10:0}; g.I.Q0=function(p){this.fullscreen!==p&&(this.fullscreen=p,this.mT())}; g.I.setMinimized=function(p){this.Z!==p&&(this.Z=p,this.mT())}; g.I.setInline=function(p){this.inline!==p&&(this.inline=p,this.mT())}; g.I.iy=function(p){this.pictureInPicture!==p&&(this.pictureInPicture=p,this.mT())}; g.I.setSqueezeback=function(p){this.j!==p&&(this.j=p,this.mT())}; g.I.Pf=function(p){this.B!==p&&(this.B=p,this.mT())}; g.I.F8=function(){return this.U}; g.I.cG=function(){return this.fullscreen!==0}; g.I.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.I.Tv=function(){return this.fullscreen}; g.I.isMinimized=function(){return this.Z}; g.I.isInline=function(){return this.inline}; g.I.isBackground=function(){return vTo()}; g.I.fd=function(){return this.pictureInPicture}; g.I.r7=function(){return!1}; g.I.zi=function(){return this.j}; g.I.XR=function(){return this.B}; g.I.mT=function(){this.publish("visibilitychange");var p=this.getVisibilityState(this.F8(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.fd(),this.r7(),this.zi(),this.XR());p!==this.S&&this.publish("visibilitystatechange");this.S=p}; g.I.PO=function(){R0z(this.C);g.Fx.prototype.PO.call(this)};g.M(g.P9,g.y);g.I=g.P9.prototype;g.I.PO=function(){this.videoData=this.playerState=null;g.y.prototype.PO.call(this)}; g.I.addCueRange=function(){}; g.I.Yr=function(){}; g.I.U4=function(){}; g.I.Nq=function(){return!1}; g.I.E_=function(){return!1}; g.I.Ew=function(){}; g.I.EU=function(){}; g.I.UO=function(){return[]}; g.I.PQ=function(){}; g.I.getAudioTrack=function(){return this.getVideoData().HU}; g.I.sf=function(){return null}; g.I.getAvailableAudioTracks=function(){return[]}; g.I.Wv=function(){return[]}; g.I.UG=function(){return[]}; g.I.CT=function(){return""}; g.I.vB=function(){return[]}; g.I.J$=function(){}; g.I.Sh=function(){return 0}; g.I.getCurrentTime=function(){return 0}; g.I.Id=function(){}; g.I.Ve=function(){}; g.I.cX=function(){return{}}; g.I.getDuration=function(){return 0}; g.I.hZ=function(){return 0}; g.I.Ez=function(){return 0}; g.I.qm=function(){return!1}; g.I.J3=function(){return 0}; g.I.BU=function(){return 0}; g.I.DG=pU(7);g.I.IT=function(){return 0}; g.I.bd=function(){return!1}; g.I.iH=function(){return 0}; g.I.gV=function(){return null}; g.I.jQ=function(){return null}; g.I.Lp=function(){return 0}; g.I.sH=function(){return 0}; g.I.Zu=function(){return g.t(function(p){g.k1(p)})}; g.I.XW=pU(15);g.I.getPlaybackQuality=function(){return"auto"}; g.I.getPlaybackRate=function(){return 1}; g.I.getPlayerState=function(){this.playerState||(this.playerState=new g.hL);return this.playerState}; g.I.getPlayerType=function(){return 0}; g.I.getPlaylistSequenceForTime=function(){return null}; g.I.PB=function(){return function(){}}; g.I.qE=function(){return""}; g.I.getPreferredQuality=function(){return"unknown"}; g.I.jI=function(){}; g.I.getProximaLatencyPreference=function(){return 0}; g.I.mW=function(){return dY}; g.I.wM=function(){return null}; g.I.getStoryboardFormat=function(){return null}; g.I.getStreamTimeOffset=function(){return 0}; g.I.xd=function(){return 0}; g.I.Y0=function(){return 0}; g.I.M0=function(){return{D8:[],AK:[],currentTime:0,Vh:"",droppedVideoFrames:0,isGapless:!1,BN:!0,UC:0,nM:0,MW:0,tM:0,XD:0,G9:[],WV:[],Cf:null,playerState:this.getPlayerState(),Kf:null,Ok:"",totalVideoFrames:0}}; g.I.getUserAudio51Preference=function(){return 0}; g.I.getUserPlaybackQualityPreference=function(){return""}; g.I.getVideoData=function(){this.videoData||(this.videoData=new g.bq(this.z4),g.Z(this,this.videoData));return this.videoData}; g.I.TB=function(){return null}; g.I.BF=function(){return null}; g.I.Gy=function(){}; g.I.getVideoLoadedFraction=function(){return 0}; g.I.JY=function(){}; g.I.handleError=function(){}; g.I.FF=function(){}; g.I.yq=function(){}; g.I.Rk=pU(40);g.I.CY=function(){return!1}; g.I.hasSupportedAudio51Tracks=function(){return!1}; g.I.X4=function(){return!1}; g.I.F8=function(){return!1}; g.I.isAtLiveHead=function(){return!1}; g.I.n_=function(){return!0}; g.I.isGapless=function(){return!1}; g.I.isHdr=function(){return!1}; g.I.qt=function(){return!1}; g.I.Y8=function(){return!1}; g.I.lk=function(){return!1}; g.I.isProximaLatencyEligible=function(){return!1}; g.I.BN=function(){return!0}; g.I.kt=function(){return!1}; g.I.Gl=function(){return!1}; g.I.xP=function(){}; g.I.yF=function(){}; g.I.UB=function(){}; g.I.rp=function(){}; g.I.Oa=function(){}; g.I.Bu=function(){}; g.I.J_=function(){}; g.I.MF=pU(50);g.I.ya=pU(21);g.I.qn=function(){}; g.I.pauseVideo=function(){}; g.I.prefetchKeyPlay=function(){}; g.I.playVideo=function(){return g.t(function(p){return p.return()})}; g.I.lG=function(){}; g.I.NV=pU(27);g.I.cB=pU(33);g.I.lK=function(){}; g.I.jA=function(){}; g.I.YC=function(){}; g.I.Jv=function(){}; g.I.I2=function(){}; g.I.zn=function(){}; g.I.w0=function(){}; g.I.P1=function(){}; g.I.zT=function(){}; g.I.eK=function(){}; g.I.sX=function(){}; g.I.QH=function(){}; g.I.removeCueRange=function(){}; g.I.Ge=function(){}; g.I.Mg=function(){return[]}; g.I.Fo=function(){}; g.I.Cd=function(){}; g.I.cJ=function(){}; g.I.Ur=function(){}; g.I.hW=function(){}; g.I.EH=function(){}; g.I.seekTo=function(){}; g.I.sendAbandonmentPing=function(){}; g.I.sendVideoStatsEngageEvent=function(){}; g.I.hv=function(){}; g.I.setLoop=function(){}; g.I.xl=function(){}; g.I.setMediaElement=function(){}; g.I.zk=function(){}; g.I.setPlaybackRate=function(){}; g.I.jk=function(){}; g.I.Dq=function(){}; g.I.Fq=function(){}; g.I.setProximaLatencyPreference=function(){}; g.I.pC=function(){}; g.I.j7=function(){}; g.I.Pe=function(){}; g.I.Od=function(){}; g.I.v1=function(){}; g.I.setUserAudio51Preference=function(){}; g.I.MO=function(){}; g.I.zG=function(){return!1}; g.I.rK=function(){}; g.I.RV=function(){return!1}; g.I.Ih=function(){}; g.I.I_=function(){}; g.I.F0=function(){}; g.I.stopVideo=function(){}; g.I.subscribe=function(){return NaN}; g.I.Am=function(){}; g.I.togglePictureInPicture=function(){}; g.I.xW=function(){return 0}; g.I.unsubscribe=function(){return!1}; g.I.R2=function(){}; g.I.pX=function(){return!1}; g.I.QQ=function(){}; g.I.u4=function(){}; g.I.xa=function(){};g.M(eX,g.y);g.I=eX.prototype;g.I.get=function(p){qZ(this);var x=this.data.find(function(a){return a.key===p}); return x?x.value:null}; g.I.set=function(p,x,a){this.remove(p,!0);qZ(this);p={key:p,value:x,expire:Infinity};a&&isFinite(a)&&(a*=1E3,p.expire=(0,g.WR)()+a);for(this.data.push(p);this.data.length>this.j;)(a=this.data.shift())&&uk(this,a,!0);nW(this)}; g.I.remove=function(p,x){x=x===void 0?!1:x;var a=this.data.find(function(v){return v.key===p}); a&&(uk(this,a,x),g.Sj(this.data,function(v){return v.key===p}),nW(this))}; g.I.removeAll=function(p){if(p=p===void 0?!1:p)for(var x=g.k(this.data),a=x.next();!a.done;a=x.next())uk(this,a.value,p);this.data=[];nW(this)}; g.I.PO=function(){var p=this;g.y.prototype.PO.call(this);this.data.forEach(function(x){uk(p,x,!0)}); this.data=[]};g.M(g.Vn,g.y);g.I=g.Vn.prototype;g.I.PO=function(){for(var p=g.k(Object.values(this.j)),x=p.next();!x.done;x=p.next())x.value.dispose();c5o(this);this.U.dispose();g.y.prototype.PO.call(this)}; g.I.C1=function(p){return p?p===1?this.Y:this.Z.getVideoData().enableServerStitchedDai&&p===2?this.Z.getVideoData().wS?this.j[2]||this.Z:this.Z:this.j[p]||null:this.Z}; g.I.V8=function(p){var x=p.cpn;p=p.playerType;if(x)a:{p=g.k(Object.values(this.j));for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.CT()===x){x=a;break a}x=this.S[x]||null}else x=p?this.C1(p):this.Z;return x}; g.I.pW=function(){return this.Y}; g.I.XN=function(p){this.Y=p}; g.I.md=function(){return this.Z}; g.I.wP=function(p){this.Z=p;F2(this)}; g.I.VM=pU(46);g.I.pB=pU(48);g.M(Lsg,g.pI);g.I=Lsg.prototype;g.I.hT=function(){}; g.I.CT=function(){return this.videoData.clientPlaybackNonce}; g.I.getVideoData=function(){if(g.pI.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){var p=E41(this.DU,g.pI.prototype.getCurrentTime.call(this))||g.pI.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==p.clientPlaybackNonce&&Yhz(this.Z,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:p.clientPlaybackNonce});return this.videoData}return E41(this.DU,g.pI.prototype.getCurrentTime.call(this))||g.pI.prototype.getVideoData.call(this)}; g.I.getCurrentTime=function(p){var x=g.pI.prototype.getCurrentTime.call(this);if(g.pI.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){this.U===0?p||(x-=this.startTimeSecs):p&&(x=this.U);var a=p?this.DU.pj||g.pI.prototype.getCurrentTime.call(this):o4x(this.DU,g.pI.prototype.getCurrentTime.call(this));x!==a&&Yhz(this.Z,"time"+(p!=null?p:!1),{time:x,ref:a,ct:p!=null?p:!1})}else x=p?this.DU.pj||x:o4x(this.DU,x);return x}; g.I.getDuration=function(){if(g.pI.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){var p=zfT(this.DU,g.pI.prototype.getCurrentTime.call(this));this.duration!==p&&Yhz(this.Z,"duration",{dur:this.duration,ref:p});return this.duration}return zfT(this.DU,g.pI.prototype.getCurrentTime.call(this))}; g.I.xb=function(p){this.duration=p};g.xd.prototype.nH=function(p,x){if(x===1)return this.U.get(p);if(x===2)return this.j.get(p);if(x===3)return this.Z.get(p)}; g.xd.prototype.vL=pU(58);g.xd.prototype.Md=function(p,x,a,v){a={dS:v,Y7:a};x?this.j.set(p,a):this.U.set(p,a)}; g.xd.prototype.clearAll=function(){this.U.clear();this.j.clear();this.Z.clear()}; jMg.prototype.clear=function(){this.U=[];this.j.clear();this.B.clear();this.Z.clear()}; jMg.prototype.V8=function(p){var x=p.cpn;p=p.Jj;if(x&&(x=this.j.get(x))||p&&(x=(this.C?this.j:this.B).get(p)))return x}; g.M(g.$d,g.y);g.I=g.$d.prototype;g.I.onCueRangeEnter=function(p){var x=p.getId();this.w3({oncueEnter:1,cpn:x,start:p.start,end:p.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Sh()||0).toFixed(3)});var a=this.U.V8({cpn:x});this.w3({enterAdCueRange:1});var v=this.ek||this.jW().cpn,c;v=(c=this.U.V8({cpn:v}))!=null?c:this.jW();a&&(c=this.playback.getCurrentTime(),a.startTimeSecs=p.start/1E3,a={kh:v,y9:a,lx:c},v7I(this,x,p.start/1E3,c),sgQ(this,a))}; g.I.FA=function(p,x){if(p===this.playback.CT())pY(this.app.bH(),this.playback,!1);else{var a=this.F5.get(p);a?(a.U=0,a.startTimeSecs=x,pY(this.app.bH(),a,!0)):this.w3({nop_s:p})}}; g.I.onCueRangeExit=function(p){for(var x=this.playback.getCurrentTime()*1E3,a=p.getId(),v=g.k(this.Z.values()),c=v.next();!c.done;c=v.next())if(c=c.value,c.getId()!==a&&x>=c.start&&x<=c.end)return;if(a=this.U.V8({cpn:a}))x=this.playback.getCurrentTime(),v=this.jW(),v.startTimeSecs=p.end/1E3,a={kh:a,y9:v,lx:x},v7I(this,this.playback.CT(),p.end/1E3,x),sgQ(this,a)}; g.I.jW=function(){return{cpn:this.playback.CT(),durationMs:0,ZU:0,playerType:1,k$:0,videoData:this.playback.getVideoData(),errorCount:0,lH:""}}; g.I.seekTo=function(p,x,a,v){p=p===void 0?0:p;x=x===void 0?{}:x;a=a===void 0?!1:a;v=v===void 0?null:v;Rw(this,this.ek);if(this.playback.getVideoData().O8()&&p<=this.pj)this.playback.pauseVideo(),this.pj=0,c9N(this,p);else if(this.Zt=!0,a)UOT(this,p,x);else{a=this.app.md();var c=a===this.u$?this.Ra:null;c5(this,!1);this.oa=p;this.T4=x;v!=null&&this.HO.start(v);a&&(this.Ra=c||a.getPlayerState(),a.F0(x),this.u$=a)}}; g.I.PO=function(){c5(this,!1);ZCQ(this);G7I(this);g.y.prototype.PO.call(this)}; g.I.tA=function(p){this.US=p;this.w3({swebm:p})}; g.I.u9=function(p,x,a){if(a&&x){var v=this.C.get(p);if(v){v.locations||(v.locations=new Map);var c=Number(x.split(";")[0]);a=new g.ZW(a);this.w3({hdlredir:1,itag:x,seg:p,hostport:OY(a)});v.locations.set(c,a)}}}; g.I.Nm=function(p,x,a,v,c,J){var R=v===3,d=A5f(this,p,x,v,a,J);if(!d){J3(this,x,R);var b=g.OCN(this,x)?"undec":"ncp";this.w3({gvprp:b,mt:p,seg:x,tt:v,itag:a,ce:J});return null}R||this.C.set(x,d);J=d.lH;var r;v=((r=this.nH(x-1,v,c))==null?void 0:r.dS)||"";v===""&&this.w3({eds:1});r=qhx(this,d.ssdaiAdsConfig);c=this.playback.getVideoData();var B;R=((B=c.Z)==null?void 0:B.containerType)||0;B=c.r4[R];d=d.Be&&x>=d.Be?d.Be:void 0;B={VK:J?V5g(this,J):[],adsConfig:r,dS:v,TA:d,YB:o0(B.split(";")[0]),xB:B.split(";")[1]|| ""};d={XS:B};this.V6&&(p={gvprpro:"v",sq:x,mt:p.toFixed(3),itag:a,acpns:((b=B.VK)==null?void 0:b.join("_"))||"none",abid:J},this.w3(p));return d}; g.I.Nu=function(p){a:{if(!this.Zh){var x=Ptx(this,p);if(!(this.playback.getVideoData().O8()&&(x==null?0:x.Wq)))break a}x=void 0}var a=x;if(!a)return this.w3({gvprp:"ncp",mt:p}),null;x=a.lH;var v=qhx(this,a.ssdaiAdsConfig);a=a.Be&&a.T5&&p>=a.T5?a.Be:void 0;var c=this.playback.getVideoData(),J,R=((J=c.Z)==null?void 0:J.containerType)||0;J=c.r4[R];J={VK:x?V5g(this,x):[],adsConfig:v,TA:a,YB:o0(J.split(";")[0]),xB:J.split(";")[1]||""};var d;p={gvprpro:"v",mt:p.toFixed(3),acpns:((d=J.VK)==null?void 0:d.join("_"))|| "none",abid:x};this.w3(p);return J}; g.I.FJ=function(p,x,a,v,c,J){var R=Number(a.split(";")[0]),d=v===3;p=A5f(this,p,x,v,a,J);this.w3({gdu:1,seg:x,itag:R,pb:""+!!p});if(!p)return J3(this,x,d),null;p.locations||(p.locations=new Map);if(!p.locations.has(R)){var b,r;J=(b=p.videoData.getPlayerResponse())==null?void 0:(r=b.streamingData)==null?void 0:r.adaptiveFormats;if(!J)return this.w3({gdu:"noadpfmts",seg:x,itag:R}),J3(this,x,d),null;b=J.find(function(L){return L.itag===R}); if(!b||!b.url){var B=p.videoData.videoId;p=[];var l=g.k(J);for(v=l.next();!v.done;v=l.next())p.push(v.value.itag);this.w3({gdu:"nofmt",seg:x,vid:B,itag:R,fullitag:a,itags:p.join(",")});J3(this,x,d);return null}p.locations.set(R,new g.ZW(b.url,!0))}J=p.locations.get(R);if(!J)return this.w3({gdu:"nourl",seg:x,itag:R}),J3(this,x,d),null;J=new i5(J);this.US&&(J.get("dvc")?this.w3({dvc:J.get("dvc")||""}):J.set("dvc","webm"));(v=(l=this.nH(x-1,v,c))==null?void 0:l.dS)&&J.set("daistate",v);p.Be&&x>=p.Be&& J.set("skipsq",""+p.Be);(l=this.playback.getVideoData().clientPlaybackNonce)&&J.set("cpn",l);l=[];p.lH&&(l=V5g(this,p.lH),l.length>0&&J.set("acpns",l.join(",")));d||this.C.set(x,p);d=null;d=J.get("aids");v=J.Wh();(v==null?void 0:v.length)>2048&&this.w3({urltoolong:1,sq:x,itag:R,len:v.length});this.V6&&(v&&(J=p.cpn,c=p.lH,xUb(this,J,c),c&&!this.G$.has(c)&&(J=Fsg(this,J,c),b=pI1(this,c),this.w3({iofa:J}),this.w3({noawnzd:b-J}),this.w3({acpns:l.join("."),aids:(B=d)==null?void 0:B.replace(/,/g,".")}), this.G$.add(c))),this.w3({gdu:"v",seg:x,itag:a,ast:p.ZU.toFixed(3),alen:p.durationMs.toFixed(3),acpn:p.cpn,avid:p.videoData.videoId}));return v}; g.I.OV=function(p,x,a){a=a===void 0?!1:a;var v=NfT(this,p,x);if(v){var c=void 0,J=v.lH;if(J){this.w3({skipadonsq:x,sts:a,abid:J,acpn:v.cpn,avid:v.videoData.videoId});a=this.U.Z.get(J);if(!a)return;a=g.k(a);for(J=a.next();!J.done;J=a.next())J=J.value,J.Be=x,J.T5=p,J.ZU>v.ZU&&(c=J)}Rw(this,this.ek);this.B=v.cpn;n4U(this);p=this.playback.getCurrentTime();efT(this,v,c,p,p,!1,!0);arf(this)}}; g.I.I1=function(){for(var p=g.k(this.U.U),x=p.next();!x.done;x=p.next())x=x.value,x.Be=NaN,x.T5=NaN;n4U(this);this.w3({rsac:"resetSkipAd",sac:this.B});this.LI.delete(this.B);this.B=""}; g.I.nH=function(p,x,a){return this.pI.nH(p,x,a)}; g.I.vL=pU(57); g.I.Md=function(p,x,a,v,c,J,R,d,b){v.length>0&&this.w3({onssinfo:1,sq:p,start:x.toFixed(3),cpns:v.join(","),ds:c.join(","),isVideo:R?1:0});b&&this.pI.Md(p,R,d,b);if(R){if(v.length&&c.length)for(this.LI.has(v[0])&&this.w3({skipfail:1,sq:p,acpn:v[0]}),p=x+this.xd(),a=0;a0&&(this.yK=0,this.ek="",this.z4.D("html5_huli_ssdai_use_playback_state")&&this.FA(this.playback.CT(),0),this.api.publish("serverstitchedvideochange"));this.playback.EU(a,v);return!0}; g.I.uE=function(){this.w3({rstdaist:1});this.pI.clearAll()}; g.I.oG=function(p){var x;if(p!==((x=this.S)==null?void 0:x.identifier))this.w3({ignorenoad:p});else{this.ol.add(p);this.w3({noadrcv:p});var a;((a=this.S)==null?void 0:a.identifier)===p&&sS(this)}}; g.I.va=function(p){if(this.Zh)return this.w3({dai_disabled:p.event}),!1;if(this.playback.getVideoData().O8()&&(p.event==="continue"||p.event==="stop"))return!1;var x=tA(this.api.uV());if(x=x?x.va(p):!1)this.j={nw:p.identifier,wA:p.startSecs};else if(this.j&&this.j.nw===p.identifier&&p.startSecs>this.j.wA+1){this.w3({cueStChg:p.identifier,oldSt:this.j.wA.toFixed(3),newSt:p.startSecs.toFixed(3),abid:this.j.j2});if(this.j.j2){var a=p.startSecs-this.j.wA,v=this.U.Z.get(this.j.j2);if(v){v=g.k(v);for(var c= v.next();!c.done;c=v.next())c=c.value,c.ZU>=0&&(c.ZU+=a*1E3,this.z4.D("html5_ssdai_update_timeline_on_start_time_change")&&(c.k$+=a*1E3),this.w3({newApEt:c.ZU,newApPrt:c.k$,acpn:c.cpn}))}}this.j.wA=p.startSecs}this.z4.D("html5_ssdai_log_missing_ad_config_reason")&&(x?this.qT.add(p.identifier):this.qT.has(p.identifier)&&this.qT.delete(p.identifier));return x}; g.I.fR=function(p){var x="";p?p.event==="unknown"?x="unknown":this.qT.has(p.identifier)?this.j&&this.j.nw===p.identifier?this.j.nw===p.identifier?x="pending":OT(this.gr,function(a){return a.identifier===p.identifier})||(x="noAdsAdded"):x="wrongAdBreakInfo":x="unscheduled":x="noCuepoint"; return x}; g.I.gD=function(p){return this.Zh?!1:!!Ptx(this,p)}; g.I.Hg=function(p){var x=this;if(this.z4.D("html5_lifa_ignore_multiple_skips")&&this.O7)return this.w3({ufs_ad:this.B,ufs_cur:this.ek,ufs_cont:this.jW().cpn}),!1;Rw(this,this.ek);this.playback.pauseVideo();var a=this.playback.getCurrentTime(),v=this.U.V8({cpn:this.ek});if(!v)return this.w3({skipFail:a}),!1;this.B=this.ek;this.Zt=!1;$UN(this,v.lH);J91(this,v,this.jW(),p);c9N(this,a,{seekSource:89,Cp:"lifa_skip"});this.O7||(this.O7=this.events.X(this.api,"progresssync",function(){We(x.api.UT(),(0,g.WR)(), "ad_to_video");x.O7&&(x.events.IA(x.O7),x.O7=null)})); return!0}; g.I.w3=function(p,x){((x===void 0?0:x)||this.V6||this.playback.getVideoData().O8())&&this.playback.jA("sdai",p)}; var mOU=0;g.M(Ka1,g.y);g.I=Ka1.prototype;g.I.onCueRangeEnter=function(p){if(this.U===this.app.md()){var x=this.C.get(p);x?Laf(this,x.target,x.aV,p):this.zn("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:p.toString()})}else if(x=this.Z.find(function(c){return c.yc.GQ===p})){var a=x.yc,v=a.target; a=a.aV;v?Laf(this,v,a,p):lr1(this,x.k$,a,p)}}; g.I.onQueuedVideoLoaded=function(){var p=this.V;rt(this);if(p){if(!b7(this,p)){var x=this.app.md();this.zn("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:x==null?void 0:x.getVideoData().clientPlaybackNonce,ccpn:""+p.playerVars.cpn})}this.app.md().addCueRange(p.yc.GQ)}}; g.I.seekTo=function(p,x,a,v){p=p===void 0?0:p;x=x===void 0?{}:x;v=v===void 0?null:v;if(a===void 0?0:a)RpI(this,p,x);else{a=this.app.md()||null;var c=a===this.B?this.S:null;B5(this,!1);this.Zt=p;this.T=x;v!=null&&this.Y.start(v);a&&(this.S=c||a.getPlayerState(),a.F0(),this.B=a)}}; g.I.WN=function(p){g.Jz(p,128)&&M8Q(this)}; g.I.isManifestless=function(){return CT(this.U.getVideoData())}; g.I.PO=function(){B5(this,!1);kqN(this);g.y.prototype.PO.call(this)}; g.I.zn=function(p,x){this.U.zn(new g.dD(p,x))}; var dU_=0;var DUT="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.M(l7,g.y);l7.prototype.Dl=function(p){if(p)return this.Z.get(p)}; l7.prototype.PO=function(){this.U.removeAll();this.Z.removeAll();g.y.prototype.PO.call(this)};g.RLG=tb(function(){var p=window.AudioContext||window.webkitAudioContext;try{return new p}catch(x){return x.name}});g.M(mUQ,g.N);g.I=mUQ.prototype;g.I.XB=function(){g.aR(this.element,g.g_.apply(0,arguments))}; g.I.Cd=function(){this.r3&&(this.r3.removeEventListener("focus",this.aE),g.WY(this.r3),this.r3=null)}; g.I.Q9=function(){this.b$();var p=this.app.L();p.le||this.XB("tag-pool-enabled");p.S&&this.XB(g.j3.HOUSE_BRAND);p.playerStyle==="gvn"&&(this.XB("ytp-gvn"),this.element.style.backgroundColor="transparent");p.KW&&(this.F2=g.nh("yt-dom-content-change",this.resize,this));this.X(window,"orientationchange",this.resize,this);this.X(window,"resize",this.resize,this)}; g.I.Yl=function(p){g.pk(this.app.L());this.zm=!p;LY(this)}; g.I.resize=function(){if(this.r3){var p=this.PN();if(!p.isEmpty()){var x=g.e_(this.app.L().experiments,"html5_android_mweb_resize_delay")>0,a=this.app.X5.isFullscreen();if(x&&a&&Ei()){var v;(v=this.s_)==null||v.start()}x=!g.qg(p,this.vJ.getSize());a=ic_(this);x&&(this.vJ.width=p.width,this.vJ.height=p.height);p=this.app.L();(a||x||this.EM||p.KW)&&this.app.X5.publish("resize",this.getPlayerSize())}}}; g.I.WM=function(p,x){this.updateVideoData(x)}; g.I.updateVideoData=function(p){if(this.r3){var x=this.app.L();gd&&(this.r3.setAttribute("x-webkit-airplay","allow"),p.title?this.r3.setAttribute("title",p.title):this.r3.removeAttribute("title"));this.r3.setAttribute("controlslist","nodownload");x.NC&&p.videoId&&(this.r3.poster=p.BB("default.jpg"))}x=g.Zb(p,"yt:bgcolor");this.e1.style.backgroundColor=x?x:"";this.Oy=$z(g.Zb(p,"yt:stretch"));this.Bw=$z(g.Zb(p,"yt:crop"),!0);g.cG(this.element,"ytp-dni",p.fp);this.resize()}; g.I.setGlobalCrop=function(p){this.oL=$z(p,!0);this.resize()}; g.I.setCenterCrop=function(p){this.Yy=p;this.resize()}; g.I.Q0=function(){}; g.I.getPlayerSize=function(){var p=this.app.L(),x=this.app.X5.isFullscreen(),a=p.externalFullscreen&&g.nH(p);if(x&&Ei()&&!a)return new g.Ps(window.outerWidth,window.outerHeight);a=!isNaN(this.vI.width)&&!isNaN(this.vI.height);var v=this.app.L().D("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.L().D("web_watch_enable_fs_squeezeback_panels");if(x&&!a&&v)return new g.Ps(this.element.clientWidth,this.element.clientHeight);if(x||p.mj){if(window.matchMedia){p="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.l_&&this.l_.media===p||(this.l_=window.matchMedia(p));var c=this.l_&&this.l_.matches}if(c)return new g.Ps(window.innerWidth,window.innerHeight)}else if(a)return this.vI.clone();return new g.Ps(this.element.clientWidth,this.element.clientHeight)}; g.I.PN=function(){var p=this.app.L().D("enable_desktop_player_underlay"),x=this.getPlayerSize(),a=g.e_(this.app.L().experiments,"player_underlay_min_player_width");return p&&this.XO&&x.width>a?(p=g.e_(this.app.L().experiments,"player_underlay_video_width_fraction"),new g.Ps(Math.min(x.height*this.getVideoAspectRatio(),x.width*p),Math.min(x.height,x.width*p/this.getVideoAspectRatio()))):x}; g.I.getVideoAspectRatio=function(){return isNaN(this.Oy)?fr8(this):this.Oy}; g.I.getVideoContentRect=function(p){var x=this.PN();p=Cvf(this,x,this.getVideoAspectRatio(),p);return new g.GL((x.width-p.width)/2,(x.height-p.height)/2,p.width,p.height)}; g.I.DB=function(p){this.XO=p;this.resize()}; g.I.Ef=function(){return this.fg}; g.I.onMutedAutoplayChange=function(){LY(this)}; g.I.setInternalSize=function(p){g.qg(this.vI,p)||(this.vI=p,this.resize())}; g.I.PO=function(){this.F2&&g.e6(this.F2);this.Cd();g.N.prototype.PO.call(this)};g.I=t8g.prototype;g.I.click=function(p,x){this.elements.has(p);this.U.has(p);var a=g.Yi();a&&p.visualElement&&g.nr(a,p.visualElement,x)}; g.I.createClientVe=function(p,x,a,v){var c=this;v=v===void 0?!1:v;this.elements.has(p);this.elements.add(p);a=hmx(a);p.visualElement=a;var J=g.Yi(),R=g.Lr();J&&R&&(g.Ly("combine_ve_grafts")?A2(Ow(),a,R):g.Pr(g.w6)(void 0,J,R,a));x.addOnDisposeCallback(function(){c.elements.has(p)&&c.destroyVe(p)}); v&&this.Z.add(p)}; g.I.createServerVe=function(p,x,a){var v=this;a=a===void 0?!1:a;this.elements.has(p);this.elements.add(p);x.addOnDisposeCallback(function(){v.destroyVe(p)}); a&&this.Z.add(p)}; g.I.destroyVe=function(p){this.elements.has(p);this.elements.delete(p);this.j.delete(p);this.U.delete(p);this.Z.delete(p)}; g.I.ZN=function(p,x){this.clientPlaybackNonce!==x&&(this.clientPlaybackNonce=x,N8(Ow(),p),zpT(this))}; g.I.setTrackingParams=function(p,x){this.elements.has(p);x&&(p.visualElement=g.Bp(x))}; g.I.eD=function(p,x,a){this.elements.has(p);x?this.U.add(p):this.U.delete(p);var v=g.Yi(),c=p.visualElement;this.Z.has(p)?v&&c&&(x?g.Pp(v,[c]):g.qS(v,[c])):x&&!this.j.has(p)&&(v&&c&&g.Aq(v,c,void 0,a),this.j.add(p))}; g.I.hasVe=function(p){return this.elements.has(p)};g.M(g.h3,g.y);g.h3.create=function(p,x,a,v){try{var c=typeof p==="string"?p:"player"+g.Rv(p),J=Hi[c];if(J){try{J.dispose()}catch(d){g.Uq(d)}Hi[c]=null}var R=new g.h3(p,x,a,v);R.addOnDisposeCallback(function(){Hi[c]=null;R.Q1&&R.Q1()}); return Hi[c]=R}catch(d){throw g.Uq(d),(d&&d instanceof Error?d:Error(String(d))).stack;}}; g.I=g.h3.prototype;g.I.Fx=function(){return this.visibility}; g.I.XN=function(p){var x=this.pW();if(p!==x){p.getVideoData().autonavState=x.getVideoData().autonavState;x.R2(this.Gx,this);var a=x.getPlaybackRate();x.dispose();this.BE.XN(p);p.setPlaybackRate(a);p.Am(this.Gx,this);Oc1(this)}}; g.I.tR=function(){this.V3||(this.V3=g.gG(Vy(),C1o()));return this.V3}; g.I.Cd=function(p){if(this.mediaElement){this.KC&&(this.events.IA(this.KC),this.KC=null);g.UU(this.aG);this.md().Cd(!0,!1,p);this.template.Cd();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.IR()}catch(x){g.Hp(x)}this.mediaElement=null}}; g.I.wP=function(p,x,a){a=a===void 0?!1:a;if(p!==this.md()){this.logger.debug(function(){return"start set presenting player, type "+p.getPlayerType()+", vid "+p.getVideoData().videoId}); var v=null;a||(a=this.md(),v=a.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),oS(this.Ng,3),yY(this,"cuerangesremoved",a.vB()),this.sx&&!p.isGapless()&&a.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),a=p.zG()&&a.zG(),this.FV.X9("iv_s"),V8x(this,a));p.getPlayerType()===1&&this.XN(p);uQg(this,p);this.BE.wP(p);this.mediaElement&&p.setMediaElement(this.mediaElement);p.Am(this.QJ,this);p.Gl()?U1z(this,"setPresenting",!1):(this.WM("newdata",p,p.getVideoData()), v&&!g.DA(v,p.getPlayerState())&&this.yz(new g.vC(p.getPlayerState(),v)),x=x&&p.getPlayerType()===1,p.Y8()&&!x&&this.WM("dataloaded",p,p.getVideoData()),(x=(x=p.getVideoData().Z)&&x.video)&&this.X5.n1("onPlaybackQualityChange",x.quality),yY(this,"cuerangesadded",p.vB()),x=p.getPlayerState(),g.q(x,2)?epo(this):g.q(x,8)?p.playVideo():p.qt()&&p.pauseVideo(),x=this.pW(),p.getPlayerType()===2&&(p.getVideoData().Ll=x.getVideoData().clientPlaybackNonce),p.getPlayerType()!==2||this.wI()||(v=p.getVideoData(), x.lG(v.clientPlaybackNonce,v.K1||"",v.breakType||0,v.tU,v.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.I.WL=function(){if(this.pW()!==this.md()){var p=this.md();this.logger.debug(function(){return"release presenting player, type "+p.getPlayerType()+", vid "+p.getVideoData().videoId}); this.wP(this.pW())}}; g.I.bH=function(){return this.BE}; g.I.V8=function(p){return this.BE.V8(p)}; g.I.C1=function(p){return this.BE.C1(p)}; g.I.pW=function(){return this.BE.pW()}; g.I.md=function(){return this.BE.md()}; g.I.Fi=pU(44);g.I.xTr=function(){D0(this)||(this.logger.debug("application playback ready"),this.h2(5))}; g.I.k$4=function(){if(!D0(this)){this.logger.debug("playback ready");MNz(this);var p=this.md(),x=p.getPlayerState();p.qt()?this.pauseVideo():x.isOrWillBePlaying()&&this.playVideo()}}; g.I.canPlayType=function(p){return lh(p)}; g.I.L=function(){return this.z4}; g.I.getVideoData=function(){return this.md().getVideoData()}; g.I.J5=pU(11);g.I.oA=function(){return this.pW().getVideoData()}; g.I.getVideoLoadedFraction=function(p){return(p=this.V8({playerType:p}))?p.getVideoLoadedFraction():this.BE.U.getVideoLoadedFraction()}; g.I.fI=function(){return this.template}; g.I.uV=function(){return this.Ng}; g.I.UT=function(){return this.FV}; g.I.Lo=function(p,x,a){(x=this.V8({playerType:x===void 0?1:x}))&&x.hv(p,void 0,a)}; g.I.Ba=function(){var p=this.Ng.Ba();this.X5.publish("videoStatsPingCreated",p);return p}; g.I.getVolume=function(){return Math.round(this.X5.getVolume())}; g.I.isMuted=function(){return this.X5.isMuted()}; g.I.BQ=function(){if(this.pW()===this.md()&&this.WX)return this.WX.postId}; g.I.wmr=function(){var p=this;this.D("use_rta_for_player")||(g.dZ(this.z4)?g.Hx(this.z4,g.vw(this.getVideoData())).then(function(x){F6(Vy(),x);Bq_(p.getVideoData(),p.z4,p.tR())}):Bq_(this.getVideoData(),this.z4,this.tR()))}; g.I.jY=function(p){this.X5.publish("poTokenVideoBindingChange",p)}; g.I.k5=function(p){this.X5.publish("d6de4videobindingchange",p)}; g.I.V2=function(){this.t8&&this.t8.V2()}; g.I.qp=function(p){this.t8=p}; g.I.Hb=function(p){if(p===1){this.FV.tick("vr");var x=this.md();x.U4();Ubx(this.FV,x.getVideoData(),IK1(this));pH_(this.Ng)}x=this.z4;if(kO(x)&&x.Y||g.$O(x)){var a;(((a=this.md().getVideoData())==null?0:a.enableServerStitchedDai)||!this.wI())&&this.X5.n1("onAdStateChange",p)}}; g.I.setLoopVideo=function(p){var x=this.md();x===this.pW()&&x.bd()!==p&&(x.setLoop(p),this.X5.NT("onLoopChange",p))}; g.I.getLoopVideo=function(){return this.md().bd()}; g.I.setLoopRange=function(p){var x=!1;!!this.WX!==!!p?x=!0:this.WX&&p&&(x=this.WX.startTimeMs!==p.startTimeMs||this.WX.endTimeMs!==p.endTimeMs||this.WX.postId!==p.postId||this.WX.type!==p.type);if(x){x=this.md();kh(x.getVideoData())&&x.jA("slr",{et:(p==null?void 0:p.endTimeMs)||-1});x=this.pW();x.Mg("applooprange");if(p){var a=new g.gZ(p.startTimeMs,p.endTimeMs,{id:"looprange",namespace:"applooprange"});x.addCueRange(a)}else{this.oA().clipConfig=void 0;var v;((a=this.WX)==null?void 0:a.type)!=="repeatChapter"|| isNaN(Number((v=this.WX)==null?void 0:v.loopCount))||(a={loopCount:String(this.WX.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.ab("repeatChapterLoopEvent",a))}this.WX=p;this.X5.NT("onLoopRangeChange",p||void 0);this.pW()===this.md()&&(this.nL(),x.Ew())}}; g.I.getLoopRange=function(){return this.WX}; g.I.nL=function(){var p="",x=this.pW();this.WX?x!==this.md()?p="pnea":ciI(this,x.getCurrentTime())&&(this.WX.loopCount=0,p="ilr"):p="nlr";var a=this.md();if(kh(a.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var v,c;a.jA("slrre",{rej:p,ct:x.getCurrentTime(),lst:(v=this.WX)==null?void 0:v.startTimeMs,let:(c=this.WX)==null?void 0:c.endTimeMs})}else a.jA("slrre",{});p||R7I(this)}; g.I.setPlaybackRate=function(p,x){if(!isNaN(p)){p=PvN(this,p);var a=this.pW();a.getPlaybackRate()!==p&&(a.setPlaybackRate(p),x&&!this.z4.B&&g.Qe("yt-player-playback-rate",p),this.X5.n1("onPlaybackRateChange",p))}}; g.I.getCurrentTime=function(p,x){x=x===void 0?!0:x;var a=this.BE.uf;if(a)return a.getCurrentTime();var v=p===2&&this.getVideoData().enableServerStitchedDai;a=null;v?a=this.md():a=this.V8({playerType:p});return a?v&&this.Hh?(p=this.BE.V)?p.getCurrentTime(x):a.getCurrentTime():x?(x=kd(this,a),i7(this,x.getCurrentTime(),x)):a.getCurrentTime():this.BE.U.getCurrentTime()}; g.I.BU=function(){var p=this.V8({playerType:void 0});if(!p)return this.BE.U.BU();p=kd(this,p);return i7(this,p.BU(),p)}; g.I.getDuration=function(p,x){x=x===void 0?!0:x;var a=this.BE.uf;if(a)return a.getDuration();a=this.getVideoData();var v=p===2&&a.enableServerStitchedDai,c=null;v?c=this.md():c=this.V8({playerType:p});if(!c)return this.BE.U.getDuration();if(a.hasProgressBarBoundaries()&&!v){var J,R=Number((J=a.progressBarStartPosition)==null?void 0:J.utcTimeMillis),d;J=Number((d=a.progressBarEndPosition)==null?void 0:d.utcTimeMillis);if(!isNaN(R)&&!isNaN(J))return(J-R)/1E3}if(kh(a)&&!a.isLivePlayback)return CY(this, p);if(x)return p=W5(this,c),i7(this,p.getDuration(),p);if(v&&this.Hh){if(this.D("html5_huli_ssdai_use_playback_state"))return p=this.BE,p=p.B===p.V?p.B:null,(p==null?void 0:p.getDuration())||0;var b;return((b=this.BE.V)==null?void 0:b.getDuration())||0}return c.getDuration()}; g.I.Ez=function(p){var x=this.V8({playerType:p});return x?this.wI(x)?(x=W5(this,x),x.Ez()-x.getCurrentTime()+this.getCurrentTime(p)):x.Ez():this.BE.U.Ez()}; g.I.finishSegmentByCpn=function(){return[]}; g.I.Q9=function(){this.template.Q9();var p=this.X5;p.state.element=this.template.element;var x=p.state.element,a;for(a in p.state.U)p.state.U.hasOwnProperty(a)&&(x[a]=p.state.U[a]);(p=tKN(this.template.element))&&this.events.X(this.template,p,this.onFullscreenChange)}; g.I.getDebugText=function(p){var x=this.pW().cX(p),a=this.md();if(a!==this.pW()){a=a.cX(p);for(var v=g.k(Object.keys(a)),c=v.next();!c.done;c=v.next())c=c.value,x["ad"+c]=a[c];if(p){a=x;v={};if(c=vY(document,"movie_player"))v.bounds=c.getBoundingClientRect(),v["class"]=c.className;c={};var J=g.Kw("video-ads");J?(QYN(J,c),c.html=J.outerHTML):c.missing=1;J={};var R=g.Kw("videoAdUiSkipContainer"),d=g.Kw("ytp-ad-skip-button-container"),b=g.Kw("ytp-skip-ad-button"),r=R||d||b;r?(QYN(r,J),J.ima=R?1:0,J.bulleit= d?1:0,J.component=b?1:0):J.missing=1;v=JSON.stringify({player:v,videoAds:c,skipButton:J});a.ad_skipBtnDbgInfo=v}}p&&this.mediaElement&&(x["0sz"]=""+(+n9(this.mediaElement.getSize())===0),x.op=this.mediaElement.OI("opacity"),a=this.mediaElement.pn().y+this.mediaElement.getSize().height,x.yof=""+(+a<=0),x.dis=this.mediaElement.OI("display"));p&&((p=(0,g.JG)())&&(x.gpu=p),(p=this.z4.playerStyle)&&(x.ps=p),this.z4.tG&&(x.webview=1),(p=this.webPlayerContextConfig.jsUrl)&&(x.js=p));x.debug_playbackQuality= this.X5.getPlaybackQuality(1);x.debug_date=(new Date).toString();x.origin=window.origin;x.timestamp=Date.now();delete x.uga;delete x.q;return JSON.stringify(x,null,2)}; g.I.getFeedbackProductData=function(){var p={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.L().experiments.experimentIds.join(", "),player_release:K[41]},x=this.getPlayerStateObject().RB;x&&(p.player_error_code=x.errorCode,p.player_error_details=JSON.stringify(x.errorDetail));return p}; g.I.getPresentingPlayerType=function(p){if(this.appState===1)return 1;if(D0(this))return 3;var x;return p&&((x=this.Hh)==null?0:wt1(x,this.getCurrentTime()))?2:this.md().getPlayerType()}; g.I.uX=function(){return!1}; g.I.getPlayerStateObject=function(p){var x=this.BE.uf;return x?x.getPlayerState():this.V8({playerType:p}).getPlayerState()}; g.I.getAppState=function(){return this.appState}; g.I.BVA=function(p){switch(p.type){case "loadedmetadata":this.CL.start();p=g.k(this.yG);for(var x=p.next();!x.done;x=p.next())x=x.value,jYJ(this,x.id,x.jBG,x.pB$,void 0,!1);this.yG=[];break;case "loadstart":this.FV.X9("gv");break;case "progress":case "timeupdate":ni(p.target.eh())>=2&&this.FV.X9("l2s");break;case "playing":g.M_&&this.CL.start();if(g.dZ(this.z4))p=!1;else{x=g.Ae(this.uV());p=this.mediaElement.OI("display")==="none"||n9(this.mediaElement.getSize())===0;var a=Yd(this.template),v=this.md().getVideoData(), c=g.SG(this.z4);v=Db(v);x=!a||x||c||v||this.z4.HO;p=p&&!x}p&&(p=this.md(),p.xP(),this.getVideoData().XV||(this.getVideoData().XV=1,this.Tb(),p.playVideo()))}}; g.I.yXr=function(p){this.X5.dV("onLoadProgress",p)}; g.I.sAt=function(){this.X5.publish("playbackstalledatstart")}; g.I.ZpI=function(p,x){this.X5.publish("sabrCaptionsDataLoaded",p,x)}; g.I.fU4=function(p){this.md().j7(p)}; g.I.eET=function(p){this.md().pC(p)}; g.I.IU7=function(p){p=kd(this,this.md());p=i7(this,p.getCurrentTime(),p);this.X5.n1("onVideoProgress",p);this.z4.Hy&&lK_(this,this.visibility.fd())&&this.pauseVideo()}; g.I.N3a=function(){this.X5.n1("onAutoplayBlocked");var p=this.md().getVideoData();p&&(p.lZ=!0);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.nH(this.z4)&&(p={autoplayBrowserPolicy:IB(),autoplayIntended:Mt(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ab("embedsAutoplayStatusChanged",p))}; g.I.zE4=function(){this.X5.publish("progresssync")}; g.I.E05=function(){this.X5.dV("onPlaybackPauseAtStart")}; g.I.G4d=function(p){if(this.getPresentingPlayerType()===1){g.Jz(p,1)&&!g.q(p.state,64)&&this.oA().isLivePlayback&&this.pW().isAtLiveHead()&&this.X5.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Jz(p,2)){if(this.WX&&this.WX.endTimeMs>=(this.getDuration()-1)*1E3){R7I(this);return}epo(this)}if(g.q(p.state,128)){var x=p.state;this.cancelPlayback(5);x=x.RB;JSON.stringify({errorData:x,debugInfo:this.getDebugText(!0)});this.X5.n1("onError",HzT(x.errorCode));this.X5.dV("onDetailedError",{errorCode:x.errorCode, errorDetail:x.errorDetail,message:x.errorMessage,messageKey:x.ox,cpn:x.cpn});(0,g.WR)()-this.z4.Xq>6048E5&&this.X5.dV("onReloadRequired")}x={};if(p.state.isPlaying()&&!p.state.isBuffering()&&!U_("pbresume","ad_to_video")&&U_("_start","ad_to_video")){var a=this.getVideoData();x.clientPlaybackNonce=a.clientPlaybackNonce;a.videoId&&(x.videoId=a.videoId);g.k8(x,"ad_to_video");Wa("pbresume",void 0,"ad_to_video");pH_(this.Ng)}this.X5.publish("applicationplayerstatechange",p)}}; g.I.yz=function(p){this.BE.uf||this.X5.publish("presentingplayerstatechange",p)}; g.I.WN=function(p){Mb(this,HN(p.state));g.q(p.state,1024)&&this.X5.isMutedByMutedAutoplay()&&(SS(this,{muted:!1,volume:this.R5.volume},!1),fY(this,!1))}; g.I.onPlayerRequestSent=function(p){this.X5.NT("onPlayerRequestSent",p)}; g.I.n6=function(p,x){p==="newdata"&&Oc1(this);this.X5.publish("applicationvideodatachange",p,x)}; g.I.LNa=function(p,x){this.D("html5_afmt_change_update_volume")&&MNz(this);this.X5.dV("onPlaybackAudioChange",this.X5.getAudioTrack().AX.name);this.X5.publish("internalaudioformatchange",this.X5.getAudioTrack().AX.id,x)}; g.I.Jjg=function(p){var x=this.md().getVideoData();p===x&&this.X5.n1("onPlaybackQualityChange",p.Z.video.quality)}; g.I.G0=function(){var p=this.BE.j[2]||null;p&&(p=p.getVideoData(),this.md().jA("ssdai",{cleanaply:1,acpn:p==null?void 0:p.clientPlaybackNonce,avid:p.videoId,isDai:this.oA().enableServerStitchedDai?1:0}),delete this.BE.j[2])}; g.I.OpT=function(p,x){this.WM(p,this.md(),x)}; g.I.WM=function(p,x,a){this.logger.debug(function(){return"on video data change "+p+", player type "+x.getPlayerType()+", vid "+a.videoId}); this.z4.qZ()&&x.jA("vdc",{type:p,vid:a.videoId||"",cpn:a.clientPlaybackNonce||""});x===this.pW()&&(this.z4.JR=a.oauthToken);x===this.pW()&&(this.getVideoData().enableServerStitchedDai&&!this.Hh?(this.pW().jA("sdai",{initSstm:1}),this.Hh=new g.$d(this.X5,this.z4,this.pW(),this)):!this.getVideoData().enableServerStitchedDai&&this.Hh&&(this.Hh.dispose(),this.Hh=null));if(p==="newdata")this.logger.debug("new video data, destroy modules"),oS(this.Ng,2),this.X5.publish("videoplayerreset",x);else{if(!this.mediaElement)return; p==="dataloaded"&&(this.pW()===this.md()?(JC(a.JG,a.oQ),$18(this)):pjo(this));x.getPlayerType()===1&&(this.z4.qT&&TJ1(this),this.getVideoData().isLivePlayback&&!this.z4.A2&&this.kL("html5.unsupportedlive",2,"DEVICE_FALLBACK"),a.isLoaded()&&((iQ1(a)||this.getVideoData().A2)&&this.X5.publish("legacyadtrackingpingchange",this.getVideoData()),a.hasProgressBarBoundaries()&&d11(this)));this.X5.publish("videodatachange",p,a,x.getPlayerType())}this.X5.n1("onVideoDataChange",{type:p,playertype:x.getPlayerType()}); this.nL();var v=a.uA;v?this.SW.ZN(v,a.clientPlaybackNonce):zpT(this.SW)}; g.I.wD=function(){H5(this,null);this.X5.dV("onPlaylistUpdate")}; g.I.D6$=function(p){delete this.zA[p.getId()];this.pW().removeCueRange(p);a:{p=this.getVideoData();var x,a,v,c,J,R,d,b,r,B,l=((x=p.qT)==null?void 0:(a=x.contents)==null?void 0:(v=a.singleColumnWatchNextResults)==null?void 0:(c=v.autoplay)==null?void 0:(J=c.autoplay)==null?void 0:J.sets)||((R=p.qT)==null?void 0:(d=R.contents)==null?void 0:(b=d.twoColumnWatchNextResults)==null?void 0:(r=b.autoplay)==null?void 0:(B=r.autoplay)==null?void 0:B.sets);if(l)for(x=g.k(l),a=x.next();!a.done;a=x.next())if(a= a.value,c=v=void 0,a=a.autoplayVideo||((v=a.autoplayVideoRenderer)==null?void 0:(c=v.autoplayEndpointRenderer)==null?void 0:c.endpoint),v=g.O(a,g.hM),J=c=void 0,a!=null&&((c=v)==null?void 0:c.videoId)===p.videoId&&((J=v)==null?0:J.continuePlayback)){p=a;break a}p=null}(x=g.O(p,g.hM))&&this.X5.NT("onPlayVideo",{sessionData:{autonav:"1",itct:p==null?void 0:p.clickTrackingParams},videoId:x.videoId,watchEndpoint:x})}; g.I.h2=function(p){var x=this;p!==this.appState&&(this.logger.debug(function(){return"app state change "+x.appState+" -> "+p}),p===2&&this.getPresentingPlayerType()===1&&(Mb(this,-1),Mb(this,5)),this.appState=p,this.X5.publish("appstatechange",p))}; g.I.kL=function(p,x,a,v,c){this.pW().jk(p,x,a,v,c)}; g.I.b3=pU(13);g.I.isAtLiveHead=function(p,x){x=x===void 0?!1:x;var a=this.V8({playerType:p});if(!a)return this.BE.U.isAtLiveHead();p=W5(this,a);a=kd(this,a);return p!==a?p.isAtLiveHead(i7(this,a.getCurrentTime(),a),!0):p.isAtLiveHead(void 0,x)}; g.I.J3=function(){var p=this.V8({playerType:void 0});return p?W5(this,p).J3():this.BE.U.J3()}; g.I.seekTo=function(p,x,a,v,c){x=x!==!1;if(v=this.V8({playerType:v}))this.appState===2&&QY(this),this.wI(v)?ow(this)?this.Hh.seekTo(p,{seekSource:c},x,a):this.DU.seekTo(p,{seekSource:c},x,a):v.seekTo(p,{Di:!x,CO:a,Cp:"application",seekSource:c})}; g.I.seekBy=function(p,x,a,v){this.seekTo(this.getCurrentTime()+p,x,a,v)}; g.I.pEa=function(){this.X5.n1("SEEK_COMPLETE")}; g.I.AX$=function(){this.X5.NT("onAbnormalityDetected")}; g.I.P2I=function(p){this.X5.NT("onSnackbarMessage",p)}; g.I.jAd=function(p){var x=this.md(),a=x.getVideoData();if(this.appState===1||this.appState===2)a.startSeconds=p;this.appState===2?g.q(x.getPlayerState(),512)||QY(this):this.X5.n1("SEEK_TO",p)}; g.I.ap$=function(){this.X5.publish("airplayactivechange")}; g.I.g05=function(){this.X5.publish("airplayavailabilitychange")}; g.I.showAirplayPicker=function(){this.md().rK()}; g.I.cXa=function(){this.X5.publish("beginseeking")}; g.I.etg=function(){this.X5.publish("endseeking")}; g.I.getStoryboardFormat=function(p){return(p=this.V8({playerType:p}))?W5(this,p).getStoryboardFormat():this.BE.U.getStoryboardFormat()}; g.I.wM=function(p){return(p=this.V8({playerType:p}))?W5(this,p).getVideoData().wM():this.BE.U.wM()}; g.I.wI=function(p){p=(p||this.md()).getVideoData();if(ow(this))p=p===this.Hh.playback.getVideoData();else a:{var x=this.DU;if(p===x.U.getVideoData()&&x.Z.length)p=!0;else{x=g.k(x.Z);for(var a=x.next();!a.done;a=x.next())if(p.Jj===a.value.Jj){p=!0;break a}p=!1}}return p}; g.I.fm=function(p,x,a,v,c,J,R,d){this.logger.debug(function(){return"Adding video to timeline id="+p.video_id+"\n lengthMs="+v+" enterTimeMs="+c}); var b="",r=ow(this);this.md().jA("appattl",{sstm:this.Hh?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:r});r?(a=flb(this.Hh,p,x,a,v,c,J,R),b=(a==null?void 0:a.Jj)||"",this.D("html5_ssdai_new_decoration_logic")&&this.pW().Pe(d||"",x,(a==null?void 0:a.clientPlaybackNonce)||"")):b=BQQ(this.DU,p,a,v,c,J);this.logger.debug(function(){return"Video added to timeline id="+p.video_id+" timelinePlaybackId="+b}); return b}; g.I.qK=function(p,x,a,v,c,J,R){if(ow(this)){var d,b=(d=this.Hh)==null?void 0:flb(d,p,x,a,v,c,J,R);this.logger.debug(function(){return"Remaining video added to timeline id="+p.video_id+" timelinePlaybackId="+((b==null?void 0:b.Jj)||"")})}}; g.I.oG=function(p){this.D("html5_ssdai_new_decoration_logic")&&this.pW().Pe(p,"","");var x;(x=this.Hh)==null||x.oG(p)}; g.I.LX=function(p,x){p=p===void 0?-1:p;x=x===void 0?Infinity:x;ow(this)||kqN(this.DU,p,x)}; g.I.dZ=function(p,x,a){if(ow(this)){var v=this.Hh,c=v.U.V8({Jj:p});c?(a===void 0&&(a=c.k$),g4b(v,c,x,a)):v.i9("Invalid_timelinePlaybackId_"+p+"_specified")}else{v=this.DU;c=null;for(var J=g.k(v.Z),R=J.next();!R.done;R=J.next())if(R=R.value,R.Jj===p){c=R;break}c?(a===void 0&&(a=c.k$),WaQ(v,c,x,a)):KY(v,"InvalidTimelinePlaybackId timelinePlaybackId="+p)}}; g.I.enqueueVideoByPlayerVars=function(p,x,a,v){a=a===void 0?Infinity:a;v=v===void 0?"":v;this.wI();p=new g.bq(this.z4,p);v&&(p.Jj=v);bdb(this,p,x,a)}; g.I.queueNextVideo=function(p,x,a,v,c){a=a===void 0?NaN:a;p=this.preloadVideoByPlayerVars(p,x===void 0?1:x,a,v===void 0?"":v,c===void 0?"":c);x=this.md();p&&(this.D("html5_check_queue_on_data_loaded")?this.L().supportsGaplessShorts()&&x.getVideoData().V&&(a=this.b4,v=this.sx.C,a.B!==p&&(a.Z=x,a.B=p,a.j=1,a.U=p.getVideoData(),a.C=v,a.U.isLoaded()?a.S():a.U.subscribe("dataloaded",a.S,a))):(a=OBN(x,p,this.sx.C),a!=null?(x.jA("sgap",a),x.getVideoData().V&&x.FF(!1)):(p=p.getVideoData(),x=this.b4,x.U!== p&&(x.U=p,x.j=1,p.isLoaded()?x.V():x.U.subscribe("dataloaded",x.V,x)))))}; g.I.jN=function(p,x,a,v){var c=this;a=a===void 0?0:a;v=v===void 0?0:v;W5(this,this.md()).xl();xOT(this.sx,p,x,a,v).then(function(){c.X5.dV("onQueuedVideoLoaded")},function(){})}; g.I.BN=function(){return this.sx.BN()}; g.I.Q3=function(p){var x=this.sx.U;return x?x.E_(p):!1}; g.I.clearQueue=function(p,x){p=p===void 0?!1:p;x=x===void 0?!1:x;this.logger.debug("Clearing queue");this.sx.clearQueue(p,x)}; g.I.loadVideoByPlayerVars=function(p,x,a,v,c,J){x=x===void 0?1:x;var R=this.pW();if(x===2&&this.oA().enableServerStitchedDai&&R&&!R.X4())return R.jA("lvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:x}),!1;var d=!1;R=new g.bq(this.z4,p);R.jy=J;g.If(this.z4)&&!R.o9&&kN(this.FV);var b;J=this.FV;var r=(b=R.Zt)!=null?b:"";J.timerName=r;this.FV.dI("pl_i");this.D("web_player_early_cpn")&&R.clientPlaybackNonce&&this.FV.infoGel({clientPlaybackNonce:R.clientPlaybackNonce});KoI(R).supportsVp9Encoding===!1&& this.md().jA("noVp9enc",{});if(this.L().supportsGaplessShorts()){b=sM1(this.sx,R,x);if(b==null){Mb(this,-1);var B;((B=this.sx.U)==null?0:B.getVideoData().isAd())||t3(this);p=this.sx;p.app.L().D("html5_gapless_new_slr")?X5(p.app,"gaplessshortslooprange"):p.app.setLoopRange(null);p.app.getVideoData().MD=!0;var l;(l=p.U)==null||l.hW();var L;(L=p.U)==null||L.eK();a={Cp:"gapless_to_next_video",seekSource:60,Li:p.C.U};v=g.e_(p.app.L().experiments,"html5_gapless_seek_offset");c=alf(p);if(p.C.U){var Y;R= ((Y=p.j)==null?void 0:Gg(Y))||{};Y=R.OE;R=R.E2;R!=null&&Y!=null&&(c=R-Y+.001)}var h;(h=p.app.md())==null||h.seekTo(c+v,a);if(!p.app.getPlayerStateObject(x).isPlaying()){var D;(D=p.app.md())==null||D.playVideo(!0)}var H;(H=p.app.md())==null||H.cJ();p.V();return!0}h=this.D("html5_shorts_gapless_preload_fallback");D=this.sx.U;h&&D&&!D.b$()&&(H=D.getVideoData(),this.BE.C.set(zc(x,H),D,3600));this.sx.clearQueue(h);this.md().jA("sgap",{f:b})}if(c){for(;R.SQ.length&&R.SQ[0].isExpired();)R.SQ.shift();h=R.SQ.length- 1;d=h>0&&c.Z(R.SQ[h])&&c.Z(R.SQ[h-1]);R.SQ.push(c)}a||(p&&Qwz(p)?(Bx(this.z4)&&!this.W$&&(p.fetch=0),H5(this,p)):this.playlist&&H5(this,null),p&&(this.W$=Vl(!1,p.external_list)));this.X5.publish("loadvideo");h=this.vF(R,x,v);d&&this.kL("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+R.SQ.join()).replace(/[;:,]/g,"_"));return h}; g.I.preloadVideoByPlayerVars=function(p,x,a,v,c){x=x===void 0?1:x;a=a===void 0?NaN:a;v=v===void 0?"":v;c=c===void 0?"":c;var J=BJU(x,p,c),R=this.BE.C.get(J)||null;if(R)return this.logger.debug(function(){return"already preloaded "+J}),this.D("html5_return_playback_if_already_preloaded")?R:null; p=new g.bq(this.z4,p);c&&(p.Jj=c);return ri1(this,p,x,a,v)}; g.I.setMinimized=function(p){this.visibility.setMinimized(p);(p=a$z(this.Ng))&&(this.isMinimized()?p.load():p.unload());this.X5.publish("minimized")}; g.I.setInline=function(p){this.visibility.setInline(p)}; g.I.setInlinePreview=function(p){this.visibility.setInline(p)}; g.I.iy=function(p){Lpb(this,p)||this.visibility.iy(p)}; g.I.setSqueezeback=function(p){this.visibility.setSqueezeback(p)}; g.I.MB=function(){var p,x=(p=this.mediaElement)==null?void 0:p.BX();x&&(this.z4.S_&&Sx(Ta(function(){return document.exitFullscreen()}),function(){}),Sx(Ta(function(){return lo(x)}),function(){}))}; g.I.TV5=function(){this.mediaElement.BX();this.mediaElement.BX().webkitPresentationMode==="picture-in-picture"?this.iy(!0):this.iy(!1)}; g.I.togglePictureInPicture=function(){this.md().togglePictureInPicture()}; g.I.vF=function(p,x,a){x=x===void 0?1:x;this.logger.debug(function(){return"start load video, id "+p.videoId+", type "+x}); U_("_start",this.FV.timerName)||g.Pr(ls)(void 0,this.FV.timerName);var v=!1,c=vRQ(this,x,p,!1);c?(v=!0,p.dispose()):(c=jS(this,x,p,!0,a),(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&c.Nq()&&c.Ih(),this.CL.stop(),x===1&&x!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,x),this.wP(c));c===this.pW()&&(this.z4.JR=p.oauthToken);if(!c.Nq())return!1;if(c===this.pW())return this.h2(1),a=QY(this),v&&this.D("html5_player_preload_ad_fix")&&c.getPlayerType()===1&& c.Y8()&&this.WM("dataloaded",c,c.getVideoData()),a;c.I_();return!0}; g.I.cueVideoByPlayerVars=function(p,x){var a=this;x=x===void 0?1:x;var v=this.pW();if(this.oA().enableServerStitchedDai&&v&&!v.X4()&&p&&Object.keys(p).length>0)v.jA("qvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:x});else if(p&&Qwz(p))if(this.YX=!0,H5(this,p),(p=g.DQ(this.playlist))&&p.mU())ES(this,p,x);else this.playlist.onReady(function(){Tc(a)}); else{x||(x=this.getPresentingPlayerType());x===1&&this.wD();v=new g.bq(this.z4,p);var c=g.nH(this.z4)&&!this.z4.pI&&x===1&&!v.isAd()&&!v.K1;this.X5.publish("cuevideo");c?(this.md().getVideoData().loading=!0,odo(v,p?p:{}).then(function(J){ES(a,J,x)}),v.dispose()):ES(this,v,x)}}; g.I.Nh=function(p,x,a,v,c,J,R){if(!p&&!a)throw Error("Playback source is invalid");if(uT(this.z4)||g.RU(this.z4))return x=x||{},x.lact=hJ(),x.vis=this.X5.getVisibilityState(),this.X5.NT("onPlayVideo",{videoId:p,watchEndpoint:J,sessionData:x,listId:a}),!1;HYf(this.FV);this.FV.reset();p={video_id:p};v&&(p.autoplay="1");v&&(p.autonav="1");J&&(p.player_params=J.playerParams);R&&(p.oauth_token=R);a?(p.list=a,this.loadPlaylist(p)):this.loadVideoByPlayerVars(p,1);return!0}; g.I.cuePlaylist=function(p,x,a,v){this.YX=!0;YKb(this,p,x,a,v)}; g.I.loadPlaylist=function(p,x,a,v){this.YX=!1;YKb(this,p,x,a,v)}; g.I.cI=function(){return this.X5.isMutedByMutedAutoplay()?!1:this.BE.uf?!0:!(!this.playlist||!this.playlist.SB())}; g.I.dP=pU(5); g.I.nextVideo=function(p,x){var a=g.jY(this.pW().getVideoData());g.n_(this.X5)&&a?this.Nh(a.videoId,x?a.Y2:a.sessionData,a.playlistId,x,void 0,a.Wt||void 0):this.W$?this.X5.dV("onPlaylistNext"):this.getPresentingPlayerType()===3?GQ(this.Ng).nextVideo():!this.playlist||Bx(this.z4)&&!this.X5.isFullscreen()||(this.playlist.SB(p)&&f0N(this.playlist,mbN(this.playlist)),this.playlist.loaded?(p=x&&this.z4.D("html5_player_autonav_logging"),x&&this.X5.publish("playlistautonextvideo"),this.vF(g.DQ(this.playlist,void 0, x,p),1)):this.YX=!1)}; g.I.previousVideo=function(p){this.W$?this.X5.dV("onPlaylistPrevious"):this.getPresentingPlayerType()===3?GQ(this.Ng).lS():!this.playlist||Bx(this.z4)&&!this.X5.isFullscreen()||(this.playlist.vG(p)&&f0N(this.playlist,SSg(this.playlist)),this.playlist.loaded?this.vF(g.DQ(this.playlist),1):this.YX=!1)}; g.I.playVideoAt=function(p){this.W$?this.X5.dV("onPlaylistIndex",p):this.playlist&&(this.playlist.loaded?this.vF(g.DQ(this.playlist,p),1):this.YX=!1,f0N(this.playlist,p))}; g.I.getPlaylist=function(){return this.playlist}; g.I.pU=pU(19);g.I.JW=function(p){this.yG=g.mC(this.yG,function(J){return J.id!==p}); for(var x=this.pW(),a=x.vB(),v=0;v0&&(b=Math.floor(r/1E3))}b=x?x.uc:b;var B={AD_BLOCK:this.U++,AD_BREAK_LENGTH:b,AUTONAV_STATE:Z0(this.player.L()),CA_TYPE:"image",CPN:d.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.J3()*1E3,LACT:hJ(),LIVE_INDEX:x?this.j++:1,LIVE_TARGETING_CONTEXT:x&&x.context?x.context:"",MIDROLL_POS:J? Math.round(J.start/1E3):0,MIDROLL_POS_MS:J?Math.round(J.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.fI().PN().height,P_W:this.player.fI().PN().width,YT_REMOTE:c?c.join(","):""},l=cZ(vZ);Object.keys(l).forEach(function(Y){l[Y]!=null&&(B[Y.toUpperCase()]=l[Y].toString())}); a!==""&&(B.BISCOTTI_ID=a);a={};si(p)&&(a.sts="20298",(x=this.player.L().forcedExperiments)&&(a.forced_experiments=x));var L=xE(g.Qz(p,B),a);return L.split("?").length!==2?XW(Error("Invalid AdBreakInfo URL")):g.Hx(this.player.L(),d==null?void 0:d.oauthToken).then(function(Y){if(Y&&ay()){var h=Vy();F6(h,Y)}Y=v.player.tR(h);h=nRU(v,L,B,d.isMdxPlayback,R);return g.Sb(Y,h,"/youtubei/v1/player/ad_break").then(function(D){return D})})}; Gc.prototype.reset=function(){this.j=this.U=1};g.M(e71,Gc); e71.prototype.Z=function(p,x,a){x=x===void 0?{}:x;var v=x.T_;var c=x.GQ;var J=x.cueProcessedMs;a=a===void 0?"":a;x=this.U;this.U++;var R=this.player.L().D("h5_disable_macro_substitution_in_get_ad_break")?p:u81(this,p,{T_:v,GQ:c,cueProcessedMs:J},a,x);if(R.split("?").length!==2)return Math.random()<.1&&g.Hp(Error("Invalid AdBreakInfo URL")),XW(Error("Invalid AdBreakInfo URL"));var d=this.player.getVideoData(1).isMdxPlayback,b=a;a=Zd_.exec(R);a=a!=null&&a.length>=2?a[1]:"";p=GO1.test(R);var r=OdJ.exec(R); r=r!=null&&r.length>=2?r[1]:"";var B=NJT.exec(R);B=B!=null&&B.length>=2&&!Number.isNaN(Number(B[1]))?Number(B[1]):1;var l=Ai_.exec(R);l=l!=null&&l.length>=2?l[1]:"0";var L=cx(this.player.L().Va),Y=g.OE(this.player.getVideoData(1).hG,!0);tNb(this,Y,R,b===""?"":b,this.player.L(),this.player.getVideoData(1));b={splay:!1,lactMilliseconds:String(hJ()),playerHeightPixels:Math.trunc(this.player.fI().PN().height),playerWidthPixels:Math.trunc(this.player.fI().PN().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20298,autonavState:Z0(this.player.L())};if(d){d={};var h=this.player.L().GG;ERx(d,h?h.join(","):"")&&(b.mdxContext=d)}if(d=PBx.includes(L)?void 0:g.Cy("PREF")){h=d.split(RegExp("[:&]"));for(var D=0,H=h.length;D1&&f[1].toUpperCase()==="TRUE"){Y.user.lockedSafetyMode=!0;break}}b.autoCaptionsDefaultOn=gR1(d)}R=qKQ.exec(R);(R=R!=null&&R.length>=2?R[1]:"")&&r&&(Y.user.credentialTransferTokens= [{token:R,scope:"VIDEO"}]);R={contentPlaybackContext:b};b=this.player.getVideoData(1).getGetAdBreakContext();d=this.player.getVideoData(1).clientPlaybackNonce;h=J!==void 0?Math.round(J).toString():void 0;D=(v==null?0:v.context)?v.context:void 0;H=0;J&&c&&!v&&(c=c.end-c.start,c>0&&(H=Math.floor(c/1E3)));v=(v=Math.trunc((v?v.uc:H)*1E3))?String(v):void 0;c=this.player.J3()*1E3;c=Number.isNaN(c)?0:Math.trunc(c);x={adBlock:x,params:a,breakIndex:B,breakPositionMs:l,clientPlaybackNonce:d,topLevelDomain:L, isProxyAdTagRequest:p,context:Y,overridePlaybackContext:R,cueProcessedMs:h,videoId:r?r:void 0,liveTargetingParams:D,breakLengthMs:v,driftFromHeadMs:c?String(c):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:b?b:void 0};return VNo(this,x)};var dxE={qRr:"replaceUrlMacros",c35:"onAboutThisAdPopupClosed",gD$:"executeCommand"};Fpg.prototype.w$=function(){return"adPingingEndpoint"}; Fpg.prototype.IG=function(p,x,a){z3U(this.Dt.get(),p,x,a)};p6N.prototype.w$=function(){return"changeEngagementPanelVisibilityAction"}; p6N.prototype.IG=function(p){this.W.NT("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:p})};xX8.prototype.w$=function(){return"loggingUrls"}; xX8.prototype.IG=function(p,x,a){p=g.k(p);for(var v=p.next();!v.done;v=p.next())v=v.value,z3U(this.Dt.get(),v.baseUrl,x,a,v.attributionSrcMode)};g.M(aeg,g.y);g.M(Nb,g.y);g.I=Nb.prototype;g.I.addListener=function(p){this.listeners.push(p)}; g.I.removeListener=function(p){this.listeners=this.listeners.filter(function(x){return x!==p})}; g.I.tZ=function(p,x,a,v,c,J,R,d){if(p==="")sE("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(p!==this.U||a){this.U=p;this.SA.get().tZ(p,x,a,v,c,J,R,d);this.KI.get().tZ(p,x,a,v,c,J,R,d);var b;(b=this.QV)==null||b.get().tZ(p,x,a,v,c,J,R,d);this.Z.tZ(p,x,a,v,c,J,R,d);b=g.k(this.listeners);for(var r=b.next();!r.done;r=b.next())r.value.tZ(p,x,a,v,c,J,R,d)}else sE("Duplicate content video loaded signal")}; g.I.uVr=function(){this.U&&this.CJ(this.U)}; g.I.CJ=function(p){this.U=void 0;for(var x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.CJ(p)};A3.prototype.S2=function(p,x,a,v,c){sqI(this);this.C=!x&&a===0;var J=this.W.getVideoData(1),R=this.W.getVideoData(2);J&&(this.contentCpn=J.clientPlaybackNonce,this.videoId=J.videoId,this.U=J.S);R&&(this.adCpn=R.clientPlaybackNonce,this.adVideoId=R.videoId,this.adFormat=R.adFormat);this.B=p;v<=0?(sqI(this),this.C=!x&&a===0):(this.actionType=this.C?x?"unknown_type":"video_to_ad":x?"ad_to_video":"ad_to_ad",this.videoStreamType=c?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.j=!0,U_("_start",this.actionType)&&J_1(this)))}; A3.prototype.reset=function(){return new A3(this.W)};g.M(P5,g.y);P5.prototype.addCueRange=function(p,x,a,v,c,J,R,d,b){J=J===void 0?3:J;R=R===void 0?1:R;this.U.has(p)?sE("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:p}):(p=new R31(p,x,a,v,J,d,b),this.U.set(p.id,{GQ:p,listener:c,gU:R}),this.W.xN([p],R))}; P5.prototype.removeCueRange=function(p){var x=this.U.get(p);x?(this.W.Rm([x.GQ],x.gU),this.U.delete(x.GQ.id)):sE("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:p})}; P5.prototype.onCueRangeEnter=function(p){if(this.U.has(p.id))this.U.get(p.id).listener.onCueRangeEnter(p.id)}; P5.prototype.onCueRangeExit=function(p){if(this.U.has(p.id))this.U.get(p.id).listener.onCueRangeExit(p.id)}; g.M(R31,g.gZ);qb.prototype.addPlayerResponseForAssociation=function(p){this.W.addPlayerResponseForAssociation(p)};nY.prototype.Hb=function(p){this.W.Hb(p)}; nY.prototype.PL=function(p){var x=g.g_.apply(1,arguments);p==="onAdStart"||p==="onAdEnd"?this.W.n1.apply(this.W,[p].concat(g.lf(x))):this.W.NT.apply(this.W,[p].concat(g.lf(x)))};eS.prototype.Wm=function(p){return p&&u7(this)};var M2x=null;g.M(IeQ,g.Fx);IeQ.prototype.Mu=function(p){return this.U.hasOwnProperty(p)?this.U[p].Mu():{}}; g.pG("ytads.bulleit.getVideoMetadata",function(p){return VY().Mu(p)}); g.pG("ytads.bulleit.triggerExternalActivityEvent",function(p,x,a){var v=VY();a=jqo(a);a!==null&&v.publish(a,{queryId:p,viewabilityString:x})});g.I=F5.prototype;g.I.eg=function(p,x){if(!this.U.has(p))return{};if(x==="seek"){x=!1;x=x===void 0?!1:x;var a=kG(n8).Lk(p,{});a?Gv(a):x&&(p=kG(n8).UQ(null,i$(),!1,p),p.DM=3,kMN([p]));return{}}x=k_T(x);if(x===null)return{};var v=this.W.BF();if(!v)return{};var c=this.W.getPresentingPlayerType(!0);if((a=this.W.getVideoData(c))==null||!a.isAd())return{};a={opt_adElement:v,opt_fullscreen:this.SA.get().isFullscreen()};return kA_(x,p,a)}; g.I.Av=function(p,x,a,v,c){this.U.has(p)&&(v<=0||c<=0||kG(n8).Av(p,x,a,v,c))}; g.I.O9=function(p){var x;(x=this.U.get(p.queryId))==null||x.O9()}; g.I.s9=function(p){var x;(x=this.U.get(p.queryId))==null||x.s9()}; g.I.B7=function(p){var x;(x=this.U.get(p.queryId))==null||x.B7()}; g.I.wd=function(p){var x;(x=this.U.get(p.queryId))==null||x.wd()}; g.I.P7=function(p){var x;(x=this.U.get(p.queryId))==null||x.P7()};Ci1.prototype.send=function(p,x,a,v){try{X6N(this,p,x,a,v===void 0?!1:v)}catch(c){}};g.M(ioN,Ci1);oV1.prototype.send=function(p,x,a,v){var c=!1;try{if(v==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||v==="ATTRIBUTION_SRC_MODE_XHR_OPTION")c=!0,p=JaT(p);v=c;var J=g.d3(p);if(J[1]==="https")var R=p;else J[1]="https",R=KN("https",J[2],J[3],J[4],J[5],J[6],J[7]);var d=JBU(R);J=[];var b=qyb(R)&&this.s7.get().W.L().experiments.cO("add_auth_headers_to_remarketing_google_dot_com_ping");if(si(R)||b)J.push({headerType:"USER_AUTH"}),J.push({headerType:"PLUS_PAGE_ID"}),J.push({headerType:"VISITOR_ID"}),J.push({headerType:"EOM_VISITOR_ID"}), J.push({headerType:"AUTH_USER"}),J.push({headerType:"DATASYNC_ID"});this.U.send({baseUrl:R,scrubReferrer:d,headers:J},x,a,v)}catch(r){}};sX.prototype.PB=function(){return this.W.PB(1)};g.M(vH,g.y);g.I=vH.prototype;g.I.BM=function(){return this.W.getVideoData(1).clientPlaybackNonce}; g.I.addListener=function(p){this.listeners.push(p)}; g.I.removeListener=function(p){this.listeners=this.listeners.filter(function(x){return x!==p})}; g.I.tZ=function(){this.Mo.clear();this.Eb=null;this.Kq.get().clear()}; g.I.CJ=function(){}; g.I.Cc5=function(p,x,a,v,c){x.videoId==="nPpU29QrbiU"&&this.W.jA("ads_ssm_vdc_s",{pt:a,dvt:p});tm(this.s7.get())&&p!=="dataloaded"||Oo8(this,x,a);if(u7(this.s7.get())&&p==="newdata"&&c!==void 0){p=this.BM();var J=x.clientPlaybackNonce,R={};vh(this,"rte",(R.ec=J,R.xc=v==null?void 0:v.clientPlaybackNonce,R.tr=c,R.pt=a,R.ia=J!==p,R.ctp=sB(J),R));x=x.clientPlaybackNonce;v=v==null?void 0:v.clientPlaybackNonce;c=Na1(c);if(c!==1)if(v!==void 0)for(a=g.k(this.listeners),p=a.next();!p.done;p=a.next())p.value.Wb(v, x,c);else sE("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:x,transitionReason:String(c)});c=g.k(this.listeners);for(v=c.next();!v.done;v=c.next())v.value.uK(x)}}; g.I.o$A=function(p,x){p!==void 0&&(this.Eb=p,x===void 0?sE("Expected ad video start time on SS video changed"):this.Mo.set(p,x));var a=this.W.getPresentingPlayerType(!0),v=this.W.getVideoData(a),c;p===void 0?c=null:c=this.Kq.get().U.get(p)||null;this.W.getVideoData(1).jA("ads_ssvc",{pt:a,cpn:v==null?void 0:v.clientPlaybackNonce,crtt:this.W.getCurrentTime(1,!1),atlh:this.W.isAtLiveHead(),adstt:x,pid:p,slid:c==null?void 0:c.layoutId});v?Oo8(this,v,a):sE("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.W.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:p})}; g.I.C2=function(p,x){var a=p.author,v=p.clientPlaybackNonce,c=p.isListed,J=p.Jj,R=p.title,d=p.dM,b=p.Gg,r=p.isMdxPlayback,B=p.LJ,l=p.mdxEnvironment,L=p.isAutonav,Y=p.Cq,h=p.o9,D=p.Rz,H=p.videoId||"",f=p.profilePicture||"",m=p.aT||"",X=p.nT()||!1,E=p.O8()||!1;p=p.s4||void 0;J=this.Kq.get().U.get(J)||{layoutId:null,slotId:null};var A=this.W.getVideoData(1),u=A.Dp();A=A.getPlayerResponse();x=1E3*this.W.getDuration(x);var n=1E3*this.W.getDuration(1),co,LU,R8=(A==null?void 0:(co=A.playerConfig)==null? void 0:(LU=co.daiConfig)==null?void 0:LU.enableDai)||!1,KU,x1;co=(A==null?void 0:(KU=A.playerConfig)==null?void 0:(x1=KU.daiConfig)==null?void 0:x1.enablePreroll)||!1;return Object.assign({},J,{videoId:H,author:a,clientPlaybackNonce:v,bP:x,cN:n,daiEnabled:R8,Bz:co,isListed:c,Dp:u,profilePicture:f,title:R,aT:m,dM:d,Gg:b,s4:p,isMdxPlayback:r,LJ:B,mdxEnvironment:l,isAutonav:L,Cq:Y,o9:h,Rz:D,nT:X,O8:E})}; g.I.PO=function(){this.listeners.length=0;this.oz=null;g.y.prototype.PO.call(this)};g.M(cH,g.y);g.I=cH.prototype;g.I.tZ=function(){var p=this;u7(this.s7.get())||(this.U=zL(function(){p.W.b$()||p.W.Fq("ad",1)}))}; g.I.CJ=function(){}; g.I.addListener=function(p){this.listeners.push(p)}; g.I.removeListener=function(p){this.listeners=this.listeners.filter(function(x){return x!==p})}; g.I.YI=function(){}; g.I.playVideo=function(){this.W.playVideo()}; g.I.pauseVideo=function(){this.W.pauseVideo()}; g.I.resumeVideo=function(p){this.Qw(p)&&this.W.playVideo()}; g.I.Qw=function(p){return this.W.getPlayerState(p)===2}; g.I.getCurrentTimeSec=function(p,x,a){var v=this.KI.get().Eb;if(p===2&&!x&&v!==null)return KJ(this,v);Cj(this.s7.get(),"html5_ssap_use_cpn_to_get_time")||(a=void 0);return a!==void 0?this.W.getCurrentTime(p,x,a):this.W.getCurrentTime(p,x)}; g.I.getVolume=function(){return this.W.getVolume()}; g.I.isMuted=function(){return this.W.isMuted()}; g.I.getPresentingPlayerType=function(){return this.W.getPresentingPlayerType(!0)}; g.I.getPlayerState=function(p){return this.W.getPlayerState(p)}; g.I.getGetAdBreakContext=function(){return this.W.getGetAdBreakContext()}; g.I.isFullscreen=function(){return this.W.isFullscreen()}; g.I.isAtLiveHead=function(){return this.W.isAtLiveHead()}; g.I.DB=function(p){this.W.DB(p)}; g.I.qz5=function(){var p=this.W.getPresentingPlayerType(!0),x=this.getCurrentTimeSec(p,!1);if(p===2){p=g.k(this.listeners);for(var a=p.next();!a.done;a=p.next())a.value.Yi(x)}else if(p===1)for(p=g.k(this.Is),a=p.next();!a.done;a=p.next())a.value.YI(x)}; g.I.dZt=function(p){for(var x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.GC(p,this.getPresentingPlayerType())}; g.I.onFullscreenToggled=function(p){for(var x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.onFullscreenToggled(p)}; g.I.onVolumeChange=function(){for(var p=g.k(this.listeners),x=p.next();!x.done;x=p.next())x.value.onVolumeChange()}; g.I.D$=function(){for(var p=this.W.isMinimized(),x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.D$(p)}; g.I.Xl=function(p){for(var x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.Xl(p)}; g.I.LW=function(){for(var p=this.W.fI().PN(),x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.Tt(p)}; g.I.KT=function(p){for(var x=g.k(this.listeners),a=x.next();!a.done;a=x.next())a.value.KT(p)}; g.I.xD=function(){for(var p=g.k(this.listeners),x=p.next();!x.done;x=p.next())x.value.xD()};g.M(nV_,g.y);g.M(r2,g.y);r2.prototype.PO=function(){this.vv.b$()||this.vv.get().removeListener(this);g.y.prototype.PO.call(this)};BH.prototype.fetch=function(p){var x=p.MJ;return this.U.fetch(p.KO,{T_:p.T_===void 0?void 0:p.T_,GQ:x,cueProcessedMs:p.cueProcessedMs===void 0?0:p.cueProcessedMs}).then(function(a){return e3_(a,x)})};g.M(l2,g.y);g.I=l2.prototype;g.I.addListener=function(p){this.listeners.push(p)}; g.I.removeListener=function(p){this.listeners=this.listeners.filter(function(x){return x!==p})}; g.I.fL=function(p){uMo(this,p,1)}; g.I.onAdUxClicked=function(p,x){LJ(this,function(a){a.jh(p,x)})}; g.I.Vy=function(p){LJ(this,function(x){x.dW(p)})}; g.I.qc=function(p){LJ(this,function(x){x.kU(p)})}; g.I.ng5=function(p){LJ(this,function(x){x.fk(p)})};Yp.prototype.reduce=function(p){switch(p.event){case "unknown":return}var x=p.identifier;var a=this.U[x];a?x=a:(a={S$:null,KM:-Infinity},x=this.U[x]=a);a=p.startSecs+p.U/1E3;if(!(a=this.U.startSecs&&a.startSecs<=this.U.startSecs+this.U.uc)){var v=void 0;if(zH(this.s7.get())&&a.identifier!==((v=this.U)==null?void 0:v.identifier)){var c=v=void 0,J=void 0,R=void 0;Yb(this.Dt.get(),"ocud","ccpi."+a.identifier+";ccpe."+a.event+";ccps."+a.startSecs+";\n ccpd."+a.uc+";pcpi."+((v=this.U)==null?void 0:v.identifier)+ ";pcpe."+((c=this.U)==null?void 0:c.event)+";\n pcps."+((J=this.U)==null?void 0:J.startSecs)+";pcpd."+((R=this.U)==null?void 0:R.uc)+";")}v=void 0;a.identifier!==((v=this.U)==null?void 0:v.identifier)&&sE("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.U=a,poE(this,a)}}; g.I.PO=function(){this.Z!=null&&(this.Z.unsubscribe("cuepointupdated",this.Qy,this),this.Z=null);this.listeners.length=0;this.h0.length=0;g.y.prototype.PO.call(this)};g.I=Id.prototype;g.I.fm=function(p,x,a,v,c,J,R,d){return this.W.fm(p,x,a,v,c,J,R,d)}; g.I.LX=function(p,x){this.W.LX(p,x)}; g.I.dZ=function(p,x,a){this.W.dZ(p,x,a)}; g.I.oG=function(p){this.W.oG(p)}; g.I.qK=function(p,x,a,v,c,J,R,d){this.W.qK(p,x,a,v,c,J,R,d)}; g.I.RV=function(p){return this.W.RV(p)}; g.I.finishSegmentByCpn=function(p,x,a){a=aJV(a);this.W.finishSegmentByCpn(p,x,a)};g.M(Md,g.y);g.M(v1$,g.y);g.M(cTt,g.y);g.M(JTZ,g.y);g.M(RNy,g.y);g.M(Kxj,g.y);g.M(bUj,g.y);bUj.prototype.j=function(){return this.Z};g.M(rTX,zn); rTX.prototype.j=function(p){var x=p.content;if(x.componentType==="shopping-companion")switch(p.actionType){case 1:case 2:p=this.U.getVideoData(1);this.U.NT("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,shoppingCompanionCarouselRenderer:x.renderer,layoutId:x.layoutId,macros:x.macros,onLayoutVisibleCallback:x.U,interactionLoggingClientData:x.interactionLoggingClientData});break;case 3:this.U.NT("updateKevlarOrC3Companion",{})}else if(x.componentType==="action-companion")switch(p.actionType){case 1:case 2:p=this.U.getVideoData(1); this.U.NT("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,actionCompanionAdRenderer:x.renderer,layoutId:x.layoutId,macros:x.macros,onLayoutVisibleCallback:x.U,interactionLoggingClientData:x.interactionLoggingClientData});break;case 3:x.renderer&&(x=this.U.getVideoData(1),this.U.NT("updateKevlarOrC3Companion",{contentVideoId:x&&x.videoId})),this.U.NT("updateKevlarOrC3Companion",{})}else if(x.componentType==="image-companion")switch(p.actionType){case 1:case 2:p=this.U.getVideoData(1);this.U.NT("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,imageCompanionAdRenderer:x.renderer,layoutId:x.layoutId,macros:x.macros,onLayoutVisibleCallback:x.U,interactionLoggingClientData:x.interactionLoggingClientData});break;case 3:x=this.U.getVideoData(1),this.U.NT("updateKevlarOrC3Companion",{contentVideoId:x&&x.videoId}),this.U.NT("updateKevlarOrC3Companion",{})}else if(x.componentType==="top-banner-image-text-icon-buttoned")switch(p.actionType){case 1:case 2:p=this.U.getVideoData(1);this.U.NT("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,topBannerImageTextIconButtonedLayoutViewModel:x.renderer,layoutId:x.layoutId,macros:x.macros,onLayoutVisibleCallback:x.U,interactionLoggingClientData:x.interactionLoggingClientData});break;case 3:x.renderer&&(x=this.U.getVideoData(1),this.U.NT("updateKevlarOrC3Companion",{contentVideoId:x&&x.videoId})),this.U.NT("updateKevlarOrC3Companion",{})}else if(x.componentType==="banner-image")switch(p.actionType){case 1:case 2:p=this.U.getVideoData(1);this.U.NT("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,bannerImageLayoutViewModel:x.renderer,layoutId:x.layoutId,macros:x.macros,onLayoutVisibleCallback:x.U,interactionLoggingClientData:x.interactionLoggingClientData});break;case 3:x=this.U.getVideoData(1),this.U.NT("updateKevlarOrC3Companion",{contentVideoId:x&&x.videoId}),this.U.NT("updateKevlarOrC3Companion",{})}else if(x.componentType==="ads-engagement-panel")switch(x=x.renderer,p.actionType){case 1:case 2:this.U.NT("updateEngagementPanelAction",x.addAction);this.U.NT("changeEngagementPanelVisibility", x.expandAction);break;case 3:this.U.NT("changeEngagementPanelVisibility",x.hideAction),this.U.NT("updateEngagementPanelAction",x.removeAction)}else if(x.componentType==="ads-engagement-panel-layout"){var a=x.renderer;switch(p.actionType){case 1:case 2:this.U.NT("updateEngagementPanelAction",{action:SJ(a.addAction),layoutId:x.layoutId,onLayoutVisibleCallback:x.U,interactionLoggingClientData:x.interactionLoggingClientData});this.U.NT("changeEngagementPanelVisibility",SJ(a.expandAction));break;case 3:this.U.NT("changeEngagementPanelVisibility", SJ(a.hideAction)),this.U.NT("updateEngagementPanelAction",{action:SJ(a.removeAction)})}}};g.M(B_v,Np);g.I=B_v.prototype;g.I.init=function(p,x,a){Np.prototype.init.call(this,p,x,a);g.Ab(this.j,"stroke-dasharray","0 "+this.Z);this.j.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.B.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){PF(this);Np.prototype.hide.call(this)}; g.I.show=function(){Av(this);Np.prototype.show.call(this)}; g.I.nJ=function(){this.hide()}; g.I.Xu=function(){if(this.U){var p=this.U.getProgressState();p!=null&&p.current!=null&&g.Ab(this.j,"stroke-dasharray",p.current/p.seekableEnd*this.Z+" "+this.Z)}};g.M(lJt,vF);g.I=lJt.prototype; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);if(x.image&&x.image.thumbnail)if(x.headline)if(x.description)if(x.backgroundImage&&x.backgroundImage.thumbnail)if(x.actionButton&&g.O(x.actionButton,g.et))if(p=x.durationMilliseconds||0,typeof p!=="number"||p<=0)g.Uq(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+p));else if(x.navigationEndpoint){var v=this.api.getVideoData(2);if(v!=null){var c=x.image.thumbnail.thumbnails;c!=null&& c.length>0&&g.CZ(g.Xw(c[0].url))&&(c[0].url=v.profilePicture,g.CZ(g.Xw(v.profilePicture))&&GlU("VideoPlayer",239976093,"Expected non-empty profile picture."));c=x.backgroundImage.thumbnail.thumbnails;c!=null&&c.length>0&&g.CZ(g.Xw(c[0].url))&&(c[0].url=v.BB());c=x.headline;c!=null&&g.CZ(g.Xw(c.text))&&(c.text=v.author)}this.T.init(uA("ad-image"),x.image,a);this.S.init(uA("ad-text"),x.headline,a);this.j.init(uA("ad-text"),x.description,a);this.tG.init(uA("ad-image"),x.backgroundImage,a);v=["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.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.j.element.classList.add("ytp-ad-action-interstitial-description-light");v.push("ytp-ad-action-interstitial-action-button-dark");this.api.L().Z&&(v.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),v.push("ytp-ad-action-interstitial-action-button-dark"));this.api.L().D("enable_unified_action_endcap_on_web")&& !this.api.L().Z&&(v.push("ytp-ad-action-interstitial-action-button-unified"),this.Ra.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.HO.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Qb.classList.add("ytp-ad-action-interstitial-card-unified"),this.pI.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.F5.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.hG.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.V6.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,v);g.Z(this,this.actionButton);this.actionButton.WO(this.Ra); this.actionButton.init(uA("button"),g.O(x.actionButton,g.et),a);En(this.actionButton.element);v=ZC(this.actionButton.element);gg(this.actionButton.element,v+" This link opens in new tab");this.navigationEndpoint=x.navigationEndpoint;this.B.X(this.hG,"click",this.EF,this);this.B.X(this.pI,"click",this.EF,this);!this.api.L().D("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.L().Z||this.B.X(this.F5,"click",this.EF,this);this.U=this.Rp?new l8(this.api,p):new L5(p);g.Z(this,this.U);if(x.skipButton){(p= g.O(x.skipButton,Ugt))&&this.U&&(this.skipButton=new Rr(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.U,this.LL),g.Z(this,this.skipButton),this.skipButton.WO(this.element),this.skipButton.init(uA("skip-button"),p,a));if(a=x.adBadgeRenderer)if(a=g.O(a,Dgv))p=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0,!0),p.WO(this.V6),p.init(uA("simple-ad-badge"),a,this.macros),g.Z(this,p);if(a=x.adInfoRenderer)if(a=g.O(a,q2))p=new ZE(this.api,this.layoutId,this.interactionLoggingClientData, this.vO,this.element,void 0,!0),p.WO(this.V6),p.init(uA("ad-info-hover-text-button"),a,this.macros),g.Z(this,p)}else x.nonskippableOverlayRenderer&&(p=g.O(x.nonskippableOverlayRenderer,nn))&&this.U&&(this.Z=new ee(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.U,!1),g.Z(this,this.Z),this.Z.WO(this.element),this.Z.init(uA("ad-preview"),p,a));x.countdownRenderer&&(x=x.countdownRenderer,g.O(x,H9v)&&this.U&&(a=new B_v(this.api,this.layoutId,this.interactionLoggingClientData,this.vO, this.U),g.Z(this,a),a.WO(this.element),a.init(uA("timed-pie-countdown"),g.O(x,H9v),this.macros)));this.show();this.element.focus()}else g.Uq(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Uq(Error("AdActionInterstitialRenderer has no button."));else g.Uq(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Uq(Error("AdActionInterstitialRenderer has no description AdText."));else g.Uq(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Uq(Error("AdActionInterstitialRenderer has no image."))}; g.I.clear=function(){g.UU(this.B);this.hide()}; g.I.show=function(){LxE(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.Z&&this.Z.show();vF.prototype.show.call(this)}; g.I.hide=function(){LxE(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.Z&&this.Z.hide();vF.prototype.hide.call(this)}; g.I.EF=function(){this.navigationEndpoint&&(this.layoutId?this.vO.executeCommand(this.navigationEndpoint,this.layoutId):g.Uq(Error("Missing layoutId for ad action interstitial.")))};var MIZ={iconType:"CLOSE"},UX=new g.Ps(320,63);g.M(IJj,vF);g.I=IJj.prototype; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);this.B=x;this.T=g.CG(this.B.onClickCommands||[]);this.V6=this.B.onErrorCommand||null;if(p=this.B.contentSupportedRenderer)p=this.B.contentSupportedRenderer,x=this.B.adInfoRenderer||null,g.O(p,Mcv)?(this.S=g.Kw("ytp-ad-overlay-ad-info-button-container",this.j.element),WxO(this,x),p=DzX(this,g.O(p,Mcv))):g.O(p,WnV)?(this.S=g.Kw("ytp-ad-overlay-ad-info-button-container",this.Z.element),WxO(this,x),p=UzZ(this,g.O(p,WnV))):g.O(p,kdj)?(this.S= g.Kw("ytp-ad-overlay-ad-info-button-container",this.U.element),WxO(this,x),p=HUO(this,g.O(p,kdj))):(g.Uq(Error("InvideoOverlayAdRenderer content could not be initialized.")),p=!1);p&&(this.show(),T_v(this,!0))}; g.I.clear=function(){T_v(this,!1);this.hG.reset();this.pI=0;this.j.hide();this.logVisibility(this.j.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.hide();this.dispose()}; g.I.Ov6=function(){this.Ra&&(this.layoutId?this.vO.executeCommand(this.Ra,this.layoutId):g.Uq(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.I.Xj=function(){a:{if(this.B&&this.B.closeButton&&this.B.closeButton.buttonRenderer){var p=this.B.closeButton.buttonRenderer;if(p.serviceEndpoint){p=[p.serviceEndpoint];break a}}p=[]}p=g.k(p);for(var x=p.next();!x.done;x=p.next())x=x.value,this.layoutId?this.vO.executeCommand(x,this.layoutId):g.Uq(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.I.q74=function(){this.tG||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.I.kI=function(){this.tG||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.kI("invideo-overlay")}; g.I.VAd=function(p){p.target===this.S&&g.Kw("ytp-ad-button",this.HO.element).click()};g.M(Q8Z,Np);g.I=Q8Z.prototype;g.I.init=function(p,x,a){Np.prototype.init.call(this,p,x,a);p=x.durationMs;this.j=p==null||p===0?0:p+this.U.getProgressState().current*1E3;if(x.text)var v=x.text.templatedAdText;else x.staticMessage&&(v=x.staticMessage);this.messageText.init(uA("ad-text"),v,a);this.messageText.WO(this.Z.element);this.B.show(100);this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){mzy(this,!1);Np.prototype.hide.call(this);this.Z.hide();this.messageText.hide();PF(this)}; g.I.show=function(){mzy(this,!0);Np.prototype.show.call(this);Av(this);this.Z.show();this.messageText.show()}; g.I.nJ=function(){this.hide()}; g.I.Xu=function(){if(this.U!=null){var p=this.U.getProgressState();p!=null&&p.current!=null&&(p=1E3*p.current,!this.pI&&p>=this.j?(this.B.hide(),this.pI=!0):this.messageText&&this.messageText.isTemplated()&&(p=Math.max(0,Math.ceil((this.j-p)/1E3)),p!==this.S&&(O6(this.messageText,{TIME_REMAINING:String(p)}),this.S=p)))}};g.M(SQw,vF);g.I=SQw.prototype; g.I.init=function(p,x,a){vF.prototype.init.call(this,p,x,{});x.image&&x.image.thumbnail?x.headline?x.description?x.actionButton&&g.O(x.actionButton,g.et)?(this.j.init(uA("ad-image"),x.image,a),this.Z.init(uA("ad-text"),x.headline,a),this.B.init(uA("ad-text"),x.description,a),this.actionButton=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,["ytp-ad-underlay-action-button"]),x.backgroundColor&&g.Ab(this.element,"background-color",g.f5(x.backgroundColor)),g.Z(this,this.actionButton), this.actionButton.WO(this.S),this.actionButton.init(uA("button"),g.O(x.actionButton,g.et),a),p=g.e_(this.api.L().experiments,"player_underlay_video_width_fraction"),this.api.L().D("place_shrunken_video_on_left_of_player")?(x=this.U,g.sm(x,"ytp-ad-underlay-left-container"),g.$W(x,"ytp-ad-underlay-right-container"),g.Ab(this.U,"margin-left",Math.round((p+.02)*100)+"%")):(x=this.U,g.sm(x,"ytp-ad-underlay-right-container"),g.$W(x,"ytp-ad-underlay-left-container")),g.Ab(this.U,"width",Math.round((1-p- .04)*100)+"%"),this.api.Ef()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.UL.bind(this)),this.api.addEventListener("resize",this.zK.bind(this))):g.Uq(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Uq(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Uq(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Uq(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.I.show=function(){fJj(!0);this.actionButton&&this.actionButton.show();vF.prototype.show.call(this)}; g.I.hide=function(){fJj(!1);this.actionButton&&this.actionButton.hide();vF.prototype.hide.call(this)}; g.I.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.UL.bind(this));this.api.removeEventListener("resize",this.zK.bind(this));this.hide()}; g.I.onClick=function(p){vF.prototype.onClick.call(this,p);this.actionButton&&g.kk(this.actionButton.element,p.target)&&this.api.pauseVideo()}; g.I.UL=function(p){p==="transitioning"?(this.U.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.U.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.U.classList.remove("ytp-ad-underlay-clickable"))}; g.I.zK=function(p){p.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):p.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.Ab(this.Z.element,"font-size",p.width/40+"px")};g.M(HH,vF); HH.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);x.toggledLoggingParams&&(this.toggledLoggingParams=x.toggledLoggingParams);x.answer&&g.O(x.answer,g.et)?(p=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),p.WO(this.answer),p.init(uA("ytp-ad-survey-answer-button"),g.O(x.answer,g.et),a),p.show()):x.answer&&g.O(x.answer,kS)&&(this.U=new oX(this.api,this.layoutId,this.interactionLoggingClientData,this.vO, ["ytp-ad-survey-answer-toggle-button"]),this.U.WO(this.answer),g.Z(this,this.U),this.U.init(uA("survey-answer-button"),g.O(x.answer,kS),a));this.show()}; HH.prototype.W_=function(p){this.layoutId?mj(this.vO,p,this.layoutId,this.macros):(p=new g.gr("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Uq(p))}; HH.prototype.onClick=function(p){vF.prototype.onClick.call(this,p);if(this.api.L().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; HH.prototype.clear=function(){this.hide()};g.M(CfX,vF);CfX.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);x.answer&&g.O(x.answer,kS)&&(this.button=new oX(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.WO(this.U),this.button.init(uA("survey-none-of-the-above-button"),g.O(x.answer,kS),a));this.show()};g.M(Ts,HF);Ts.prototype.init=function(p,x,a){HF.prototype.init.call(this,p,x,a);p=!1;x.text&&(x=g.Jv(x.text),p=!g.CZ(x));p||g.Hp(Error("No submit text was present in the renderer."))}; Ts.prototype.onClick=function(p){this.publish("l");HF.prototype.onClick.call(this,p)};g.M(Qs,vF); Qs.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);if(p=x.skipOrPreviewRenderer)g.O(p,M5)?(p=g.O(p,M5),a=new dB(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.B,!0),a.WO(this.skipOrPreview),a.init(uA("skip-button"),p,this.macros),g.Z(this,a),this.U=a):g.O(p,nn)&&(p=g.O(p,nn),a=new ee(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.B,!1),a.WO(this.skipOrPreview),a.init(uA("ad-preview"),p,this.macros),a.pI.show(100),a.show(),g.Z(this,a), this.U=a);this.U==null&&(p=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(x)),g.Uq(p));x.submitButton&&(p=x.submitButton,g.O(p,g.et)&&(p=g.O(p,g.et),a=new Ts(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),a.WO(this.submitButton),a.init(uA("survey-submit"),p,this.macros),g.Z(this,a),this.Z=a));if(p=x.adBadgeRenderer)p=g.O(p,Dgv),a=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0,!0,!0),a.WO(this.j),a.init(uA("simple-ad-badge"), p,this.macros),this.adBadge=a.element,g.Z(this,a);if(p=x.adDurationRemaining)p=g.O(p,hYQ),a=new jG(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.B,void 0,!0),a.WO(this.j),a.init(uA("ad-duration-remaining"),p,this.macros),g.Z(this,a);(x=x.adInfoRenderer)&&g.O(x,q2)&&(p=new ZE(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.element,void 0,!0),g.Z(this,p),this.adBadge!==void 0?this.j.insertBefore(p.element,this.adBadge.nextSibling):p.WO(this.j),p.init(uA("ad-info-hover-text-button"), g.O(x,q2),this.macros));this.show()}; Qs.prototype.clear=function(){this.hide()};g.M(mq,vF);mq.prototype.init=function(p,x,a){vF.prototype.init.call(this,p,x,a);zNy(this)}; mq.prototype.show=function(){this.j=Date.now();vF.prototype.show.call(this)}; mq.prototype.rO=function(){};g.M(woR,mq);g.I=woR.prototype;g.I.init=function(p,x,a){var v=this;mq.prototype.init.call(this,p,x,a);x.questionText&&Xoy(this,x.questionText);x.answers&&x.answers.forEach(function(c,J){g.O(c,MP)&&iUG(v,g.O(c,MP),a,J)}); this.S=new Set(this.Z.map(function(c){return c.U.U})); (p=x.noneOfTheAbove)&&(p=g.O(p,ILE))&&E1X(this,p,a);x.surveyAdQuestionCommon&&tIG(this,x.surveyAdQuestionCommon);x.submitEndpoints&&(this.submitEndpoints=x.submitEndpoints);this.X(this.element,"change",this.onChange);this.show()}; g.I.rO=function(){yTt(this,!1);this.B.Z.subscribe("l",this.Pcr,this)}; g.I.onChange=function(p){p.target===this.noneOfTheAbove.button.U?g1X(this):this.S.has(p.target)&&(this.noneOfTheAbove.button.toggleButton(!1),yTt(this,!0))}; g.I.Pcr=function(){var p=[],x=this.Z.reduce(function(c,J,R){var d=J.toggledLoggingParams;J.U&&J.U.isToggled()&&d&&(c.push(d),p.push(R));return c},[]).join("&"),a=this.submitEndpoints.map(function(c){if(!c.loggingUrls)return c; c=g.jg(c);c.loggingUrls=c.loggingUrls.map(function(J){J.baseUrl&&(J.baseUrl=IP(J.baseUrl,x));return J}); return c}); if(a){a=g.k(a);for(var v=a.next();!v.done;v=a.next())v=v.value,this.layoutId?mj(this.vO,v,this.layoutId,this.macros):g.Uq(Error("Missing layoutId for multi_select_question."))}this.api.L().D("supports_multi_step_on_desktop")&&this.pI(p)}; g.I.clear=function(){this.api.L().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(Sp,mq);Sp.prototype.init=function(p,x,a){var v=this;mq.prototype.init.call(this,p,x,a);x.questionText&&Xoy(this,x.questionText);x.answers&&x.answers.forEach(function(c,J){g.O(c,MP)&&iUG(v,g.O(c,MP),a,J)}); x.surveyAdQuestionCommon?tIG(this,x.surveyAdQuestionCommon):$l(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(x)));this.show()}; Sp.prototype.clear=function(){this.api.L().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(fJ,vF);fJ.prototype.init=function(p,x,a){var v=this;vF.prototype.init.call(this,p,x,a);if(this.api.L().D("supports_multi_step_on_desktop")){var c;this.conditioningRules=(c=x.conditioningRules)!=null?c:[];var J;this.Z=(J=x.questions)!=null?J:[];var R;((R=x.questions)==null?0:R.length)&&N_O(this,0)}else(x.questions||[]).forEach(function(d){g.O(d,AR)?G1$(v,g.O(d,AR),a):g.O(d,N2)&&OUO(v,g.O(d,N2),a)}); this.show()}; fJ.prototype.clear=function(){this.api.L().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; fJ.prototype.B=function(p){var x=this;if(this.api.L().D("supports_multi_step_on_desktop")){var a;if((a=this.conditioningRules)==null?0:a.length){var v;if(p.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(c){return c.questionIndex===x.U})==null)g.Uq(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===x.U)switch(c.condition){case "CONDITION_ALL_OF":var J;if((J=c.answerIndices)==null?0:J.every(function(d){return p.includes(d)}))v=c.nextQuestionIndex; break;case "CONDITION_ANY_OF":var R;if((R=c.answerIndices)==null?0:R.some(function(d){return p.includes(d)}))v=c.nextQuestionIndex; break;default:g.Uq(Error("Expected specified condition in survey conditioning rules."))}}),v!=null)N_O(this,v); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Uq(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.M(CJ,vF); CJ.prototype.init=function(p,x,a){var v=this;vF.prototype.init.call(this,p,x,a);p=x.timeoutSeconds||0;if(typeof p!=="number"||p<0)g.Uq(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+p));else if(x.timeoutCommands)if(x.text)if(x.ctaButton&&g.O(x.ctaButton,g.et))if(x.brandImage)if(x.backgroundImage&&g.O(x.backgroundImage,ub)&&g.O(x.backgroundImage,ub).landscape){this.layoutId||g.Uq(Error("Missing layoutId for survey interstitial."));ATQ(this.interstitial,g.O(x.backgroundImage, ub).landscape);ATQ(this.logoImage,x.brandImage);g.Dp(this.text,g.Jv(x.text));var c=["ytp-ad-survey-interstitial-action-button"];c.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,c);g.Z(this,this.actionButton);this.actionButton.WO(this.Z);this.actionButton.init(uA("button"),g.O(x.ctaButton,g.et),a);this.actionButton.show();this.U=new l8(this.api,p*1E3);this.U.subscribe("g",function(){v.transition.hide()}); g.Z(this,this.U);this.X(this.element,"click",function(J){var R=J.target===v.interstitial;J=v.actionButton.element.contains(J.target);if(R||J)if(v.transition.hide(),R)v.api.onAdUxClicked(v.componentType,v.layoutId)}); this.transition.show(100)}else g.Uq(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Uq(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Uq(Error("SurveyTextInterstitialRenderer has no button."));else g.Uq(Error("SurveyTextInterstitialRenderer has no text."));else g.Uq(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; CJ.prototype.clear=function(){this.hide()}; CJ.prototype.show=function(){Pft(!0);vF.prototype.show.call(this)}; CJ.prototype.hide=function(){Pft(!1);vF.prototype.hide.call(this)};g.M(Xo,Np);g.I=Xo.prototype; g.I.init=function(p,x){Np.prototype.init.call(this,p,x,{});if(x.durationMilliseconds){if(x.durationMilliseconds<0){g.Uq(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+x.durationMilliseconds));return}this.Z=x.durationMilliseconds}else this.Z=this.U.hQ();var a;if((a=x.previewText)==null||!a.text||g.CZ(x.previewText.text))g.Uq(Error("No text is returned for AdPreview."));else{this.S=x.previewText;x.previewText.isTemplated||g.Dp(this.j,x.previewText.text);var v; if(((v=this.api.getVideoData(1))==null?0:v.Tg)&&x.previewImage){var c,J;(p=((J=Kq(((c=x.previewImage)==null?void 0:c.sources)||[],52,!1))==null?void 0:J.url)||"")&&p.length?(this.previewImage=new g.s6({J:"img",K:"ytp-preview-ad__image",G:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",p),g.Z(this,this.previewImage),this.previewImage.WO(this.element)):g.Uq(Error("Failed to get imageUrl in AdPreview."))}else this.j.classList.add("ytp-preview-ad__text--padding--wide")}}; g.I.clear=function(){this.hide()}; g.I.hide=function(){PF(this);Np.prototype.hide.call(this)}; g.I.show=function(){Av(this);Np.prototype.show.call(this)}; g.I.nJ=function(){this.hide()}; g.I.Xu=function(){if(this.U){var p=this.U.getProgressState();if(p!=null&&p.current)if(p=1E3*p.current,p>=this.Z)this.transition.hide();else{var x;if((x=this.S)==null?0:x.isTemplated)if(x=Math.max(0,Math.ceil((this.Z-p)/1E3)),x!==this.B){var a,v;(p=(a=this.S)==null?void 0:(v=a.text)==null?void 0:v.replace("{TIME_REMAINING}",String(x)))&&g.Dp(this.j,p);this.B=x}}}};g.M(i2,vF); i2.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});var a,v;if((p=((v=Kq(((a=x.image)==null?void 0:a.sources)||[],qQX(x),!0))==null?void 0:v.url)||"")&&p.length){a=this.BO("ytp-ad-avatar");a.src=p;var c,J;if(v=(c=x.interaction)==null?void 0:(J=c.accessibility)==null?void 0:J.label)a.alt=v;switch(x.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(x.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.Uq(Error("Failed to get imageUrl in AdAvatar."))}; i2.prototype.clear=function(){this.hide()}; i2.prototype.onClick=function(p){vF.prototype.onClick.call(this,p)};g.M(od,vF); od.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});var a;p=(a=x.label)==null?void 0:a.content;if((a=p!=null&&!g.CZ(p))||x.iconImage){a&&(this.buttonText=new g.s6({J:"span",K:"ytp-ad-button-vm__text",wr:p}),g.Z(this,this.buttonText),this.buttonText.WO(this.element));var v,c,J=((v=x.interaction)==null?0:(c=v.accessibility)==null?0:c.label)||a?p:"";J&&gg(this.element,J+" This link opens in new tab");En(this.element);if(x.iconImage){v=void 0;if(x.iconImage){a:{c=x.iconImage;if(c.sources)for(c= g.k(c.sources),p=c.next();!p.done;p=c.next())if(p=p.value,J=void 0,(J=p.clientResource)==null?0:J.imageName){c=p;break a}c=void 0}if(c){var R;v={iconType:(R=c.clientResource)==null?void 0:R.imageName}}}R=U6(v,!1,this.Z);R!=null&&(this.buttonIcon=new g.s6({J:"span",K:"ytp-ad-button-vm__icon",N:[R]}),g.Z(this,this.buttonIcon),x.iconLeading?(MW(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):a?(this.buttonIcon.WO(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.WO(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(x.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.D("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.U?"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(x.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.Hp(Error("AdButton does not have label or an icon."))}; od.prototype.clear=function(){this.hide()}; od.prototype.onClick=function(p){vF.prototype.onClick.call(this,p)};g.M(n1Q,Np);g.I=n1Q.prototype; g.I.init=function(p,x){Np.prototype.init.call(this,p,x,{});if(p=g.O(x.avatar,OX)){var a=x.headline;if(a){var v=x.description;if(v){var c=g.O(x.button,A0);c?(this.adAvatar.init(uA("ad-avatar"),p),this.headline.init(uA("ad-simple-attributed-string"),new Me(a)),this.description.init(uA("ad-simple-attributed-string"),new Me(v)),a.content&&a.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(uA("ad-button"),c), this.startMilliseconds=x.startMs||0,this.api.Ef()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.ZH.bind(this)),Av(this)):g.Uq(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Uq(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Uq(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Uq(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.I.Xu=function(){if(this.U){var p=this.U.getProgressState();p&&p.current&&1E3*p.current>=this.startMilliseconds&&(PF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.I.nJ=function(){this.clear()}; g.I.onClick=function(p){this.api.pauseVideo();Np.prototype.onClick.call(this,p)}; g.I.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ZH.bind(this))}; g.I.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Np.prototype.show.call(this)}; g.I.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Np.prototype.hide.call(this)}; g.I.ZH=function(p){p==="hidden"?this.show():this.hide()};g.M(t0,vF);g.I=t0.prototype; g.I.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(!x.label||g.CZ(x.label))g.Uq(Error("No label is returned for SkipAdButton."));else if(g.Dp(this.B,x.label),p=U6({iconType:"SKIP_NEXT_NEW"}),p==null)g.Uq(Error("Unable to retrieve icon for SkipAdButton"));else if(this.j=new g.s6({J:"span",K:"ytp-skip-ad-button__icon",N:[p]}),g.Z(this,this.j),this.j.WO(this.element),this.api.L().experiments.cO("enable_skip_to_next_messaging")&&(x=g.Xw(x.targetId)))this.Z=!0,this.element.setAttribute("data-tooltip-target-id",x), this.element.setAttribute("data-tooltip-target-fixed","")}; g.I.onClick=function(p){p&&p.preventDefault();var x,a;aHI(p,{contentCpn:(a=(x=this.api.getVideoData(1))==null?void 0:x.clientPlaybackNonce)!=null?a:""})===0?this.api.NT("onAbnormalityDetected"):(vF.prototype.onClick.call(this,p),this.api.NT("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.I.clear=function(){this.U.reset();this.hide()}; g.I.hide=function(){vF.prototype.hide.call(this)}; g.I.show=function(){this.U.start();vF.prototype.show.call(this);this.Z&&this.api.L().experiments.cO("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.M(eNG,Np);g.I=eNG.prototype; g.I.init=function(p,x){Np.prototype.init.call(this,p,x,{});p=g.O(x.preskipState,XsE);var a;if((a=this.api.getVideoData())==null?0:a.isDaiEnabled()){if(!p){g.Uq(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.Z=new Xo(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.U);g.Z(this,this.Z);this.Z.WO(this.element);var v;(v=this.Z)==null||v.init(uA("preview-ad"),p);(a=this.Z)!=null&&(a.transition.show(100),a.show())}(a=g.O(x.skippableState,oYw))?(x.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=x.skipOffsetMilliseconds:(g.Hp(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.j.init(uA("skip-button"),a),this.show()):g.Uq(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.I.show=function(){Av(this);Np.prototype.show.call(this)}; g.I.hide=function(){!this.isSkippable&&this.Z?this.Z.hide():this.j&&this.j.hide();PF(this);Np.prototype.hide.call(this)}; g.I.clear=function(){var p;(p=this.Z)==null||p.clear();this.j&&this.j.clear();PF(this);Np.prototype.hide.call(this)}; g.I.nJ=function(){this.hide()}; g.I.Xu=function(){if(1E3*this.U.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var p;(p=this.Z)!=null&&p.transition.hide();(p=this.j)!=null&&(p.transition.show(),p.show())}};g.M(zs,vF); zs.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(x.label){var a;((a=x.label)==null?0:a.content)&&!g.CZ(x.label.content)&&(this.linkText=new g.s6({J:"span",K:"ytp-visit-advertiser-link__text",wr:x.label.content}),g.Z(this,this.linkText),this.linkText.WO(this.element));var v,c;if((v=x.interaction)==null?0:(c=v.accessibility)==null?0:c.label)gg(this.element,x.interaction.accessibility.label+" This link opens in new tab");else{var J;((J=x.label)==null?0:J.content)&&!g.CZ(x.label.content)&&gg(this.element, x.label.content+" This link opens in new tab")}En(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Uq(Error("No label found in VisitAdvertiserLink."))}; zs.prototype.onClick=function(p){vF.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; zs.prototype.clear=function(){this.hide()};g.M(w2,vF); w2.prototype.init=function(p,x,a,v){vF.prototype.init.call(this,p,x,{});if(x.skipOrPreview){a=x.skipOrPreview;p=g.O(a,tcO);a=g.O(a,XsE);if(p)this.OV=new eNG(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z),g.Z(this,this.OV),this.OV.WO(this.T),this.OV.init(uA("skip-ad"),p);else{var c;a&&((c=this.api.getVideoData())==null?0:c.isDaiEnabled())&&(this.B=new Xo(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z,1),g.Z(this,this.B),this.B.WO(this.T),this.B.init(uA("ad-preview"), a),c=this.B,c.transition.show(100),c.show())}if(c=g.O(x.skipOrPreview,tcO))var J=c.skipOffsetMilliseconds}x.playerAdCard&&(c=g.O(x.playerAdCard,i9Z))&&(this.playerAdCard=new n1Q(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z),g.Z(this,this.playerAdCard),this.playerAdCard.WO(this.F5),this.playerAdCard.init(uA("ad-avatar-lockup-card"),c));x.adBadgeRenderer&&((c=g.O(x.adBadgeRenderer,Nd))?(this.j=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0),g.Z(this, this.j),this.j.WO(this.U),this.j.init(uA("ad-badge"),c)):g.Uq(Error("AdBadgeViewModel is not found in player overlay layout.")));x.adPodIndex&&(c=g.O(x.adPodIndex,mgO))&&(this.adPodIndex=new D5(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.adPodIndex),this.adPodIndex.WO(this.U),this.adPodIndex.init(uA("ad-pod-index"),c));x.adInfoRenderer&&((c=g.O(x.adInfoRenderer,q2))?(this.adInfoButton=new ZE(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.element, void 0,!0),g.Z(this,this.adInfoButton),this.j!==void 0?this.U.insertBefore(this.adInfoButton.element,this.j.element.nextSibling):this.adInfoButton.WO(this.U),this.adInfoButton.init(uA("ad-info-hover-text-button"),c,this.macros)):g.Hp(Error("AdInfoRenderer is not found in player overlay layout.")));var R;c=(R=this.api.getVideoData())==null?void 0:R.isDaiEnabled();x.adDurationRemaining&&c&&(R=g.O(x.adDurationRemaining,hYQ))&&(this.adDurationRemaining=new jG(this.api,this.layoutId,this.interactionLoggingClientData, this.vO,this.Z,v.videoAdDurationSeconds,!0),g.Z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.U.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.WO(this.U),this.adDurationRemaining.init(uA("ad-duration-remaining"),R,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));x.visitAdvertiserLink&&(v=g.O(x.visitAdvertiserLink,wsO))&&(this.visitAdvertiserLink=new zs(this.api,this.layoutId, this.interactionLoggingClientData,this.vO),g.Z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.WO(this.U),this.visitAdvertiserLink.init(uA("visit-advertiser-link"),v));x.adDisclosureBanner&&(x=g.O(x.adDisclosureBanner,Q0$))&&(this.adDisclosureBanner=new UE(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.adDisclosureBanner),this.adDisclosureBanner.WO(this.pI),this.adDisclosureBanner.init(uA("ad-disclosure-banner"),x));this.S=new Q4(this.api,this.Z,J,!0);g.Z(this, this.S);g.qh(this.api,this.S.element,4);this.show()}; w2.prototype.clear=function(){this.hide()};g.M(ugw,vF);g.I=ugw.prototype; g.I.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(x!=null&&x.title)if(p=x.title)if(this.headline.init(uA("ad-simple-attributed-string"),new Me(p)),p=g.O(x.moreInfoButton,A0)){if(this.moreInfoButton.init(uA("ad-button"),p),x.descriptions)x.descriptions.length>0&&(p=x.descriptions[0])&&(this.U=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.U),this.U.WO(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.U.init(uA("ad-simple-attributed-string"), new Me(p))),x.descriptions.length>1&&(x=x.descriptions[1])&&(this.Z=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.Z),this.Z.WO(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.Z.init(uA("ad-simple-attributed-string"),new Me(x)))}else g.Uq(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Uq(Error("No headline found in AdGridCardText."));else g.Uq(Error("No headline found in AdGridCardText."))}; g.I.onClick=function(p){vF.prototype.onClick.call(this,p);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.I.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var p;(p=this.U)==null||p.clear();var x;(x=this.Z)==null||x.clear()}; g.I.hide=function(){this.headline.hide();this.moreInfoButton.hide();var p;(p=this.U)==null||p.hide();var x;(x=this.Z)==null||x.hide();vF.prototype.hide.call(this)}; g.I.show=function(){vF.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var p;(p=this.U)==null||p.show();var x;(x=this.Z)==null||x.show()};g.M(EX,vF);EX.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(x!=null&&x.gridCards)if(x.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Uq(Error("Only single column style is currently supported in AdGridCardCollection."));else for(p=g.k(x.gridCards),x=p.next();!x.done;x=p.next()){if(x=g.O(x.value,COX)){var a=new ugw(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,a);a.WO(this.element);a.init(uA("ad-grid-card-text"),x);this.U.push(a)}}else g.Uq(Error("No grid cards found in AdGridCardCollection."))}; EX.prototype.show=function(){for(var p=g.k(this.U),x=p.next();!x.done;x=p.next())x.value.show();vF.prototype.show.call(this)}; EX.prototype.clear=function(){this.hide();for(var p=g.k(this.U),x=p.next();!x.done;x=p.next())x.value.clear()}; EX.prototype.hide=function(){for(var p=g.k(this.U),x=p.next();!x.done;x=p.next())x.value.hide();vF.prototype.hide.call(this)};g.M(ys,Np);g.I=ys.prototype;g.I.init=function(p,x,a,v,c){c=c===void 0?0:c;Np.prototype.init.call(this,p,x,a,v);this.playerProgressOffsetMs=c;Av(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.XK.bind(this));this.api.addEventListener("resize",this.ju.bind(this));this.api.Ef()?(this.Z=!0,this.api.DB(!0),this.show()):this.hide()}; g.I.Xu=function(){if(this.U){var p=this.U.getProgressState();p&&p.current&&!this.Z&&1E3*p.current>=this.playerProgressOffsetMs&&(this.Z=!0,this.api.DB(!0),this.show())}}; g.I.nJ=function(){this.Z&&this.api.DB(!1);this.hide()}; g.I.clear=function(){this.api.DB(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.XK.bind(this));this.api.removeEventListener("resize",this.ju.bind(this));PF(this);this.hide()}; g.I.hide=function(){VIX(!1);Np.prototype.hide.call(this)}; g.I.show=function(){VIX(!0);Np.prototype.show.call(this)};g.M(FxX,ys);g.I=FxX.prototype; g.I.init=function(p,x,a,v){if(x!=null&&x.adGridCardCollection)if(x!=null&&x.adButton){var c=Number(x.playerProgressOffsetMs||"0");isNaN(c)?ys.prototype.init.call(this,p,x,a,v):ys.prototype.init.call(this,p,x,a,v,c);p=x.headline;a=g.O(x.adAvatar,OX);p&&a?(this.headline=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.headline),this.headline.WO(this.BO("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(uA("ad-simple-attributed-string"),new Me(p)), this.adAvatar=new i2(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.adAvatar),this.adAvatar.WO(this.BO("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(uA("ad-avatar"),a)):this.B.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");p=g.O(x.adGridCardCollection,fLw);this.adGridCardCollection.init(uA("ad-grid-card-collection"),p);x=g.O(x.adButton,A0);this.adButton.init(uA("ad-button"),x); this.hide()}else g.Uq(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Uq(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.I.onClick=function(p){(this.adButton&&g.kk(this.adButton.element,p.target)||this.adAvatar&&g.kk(this.adAvatar.element,p.target))&&this.api.pauseVideo();ys.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.I.ju=function(){}; g.I.clear=function(){this.hide();var p;(p=this.headline)==null||p.clear();var x;(x=this.adAvatar)==null||x.clear();this.adGridCardCollection.clear();this.adButton.clear();ys.prototype.clear.call(this)}; g.I.show=function(){var p;(p=this.headline)==null||p.show();var x;(x=this.adAvatar)==null||x.show();this.adGridCardCollection.show();this.adButton.show();ys.prototype.show.call(this)}; g.I.hide=function(){var p;(p=this.headline)==null||p.hide();var x;(x=this.adAvatar)==null||x.hide();this.adGridCardCollection.hide();this.adButton.hide();ys.prototype.hide.call(this)}; g.I.XK=function(p){p==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};g.M(g2,vF); g2.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});if(x.attributes===void 0)g.Uq(Error("No attributes found in AdDetailsLineViewModel."));else if(x.style===void 0)g.Uq(Error("No style found in AdDetailsLineViewModel."));else{p=g.k(x.attributes);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.text!==void 0){a=a.text;var v=x.style,c=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,c);c.WO(this.element);a:switch(v){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":v="ytp-ad-details-line__text--style-responsive"; break a;default:v="ytp-ad-details-line__text--style-standard"}c.element.classList.add(v);c.init(uA("ad-simple-attributed-string"),new Me(a));this.U.push(c)}this.show()}}; g2.prototype.show=function(){this.U.forEach(function(p){p.show()}); vF.prototype.show.call(this)}; g2.prototype.clear=function(){this.hide()}; g2.prototype.hide=function(){this.U.forEach(function(p){p.hide()}); vF.prototype.hide.call(this)};g.M(Z$,vF);Z$.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});var a,v;(p=((v=Kq(((a=x.image)==null?void 0:a.sources)||[]))==null?void 0:v.url)||"")&&p.length?(a=this.BO("ytp-image-background-image"),g.Ab(a,"backgroundImage","url("+p+")"),x.blurLevel!==void 0&&g.Ab(a,"filter","blur("+x.blurLevel+"px)"),x.gradient!==void 0&&(x=new g.N({J:"div",CI:["ytp-image-background--gradient-vertical"]}),g.Z(this,x),x.WO(this.element)),this.show()):g.Uq(Error("Failed to get imageUrl in ImageBackground."))}; Z$.prototype.clear=function(){this.hide()};g.M(pQX,Np);g.I=pQX.prototype;g.I.init=function(p,x){Np.prototype.init.call(this,p,x,{});g.Ab(this.j,"stroke-dasharray","0 "+this.Z);this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){PF(this);Np.prototype.hide.call(this)}; g.I.show=function(){Av(this);Np.prototype.show.call(this)}; g.I.nJ=function(){this.hide()}; g.I.Xu=function(){if(this.U){var p=this.U.getProgressState();p!=null&&p.current!=null&&g.Ab(this.j,"stroke-dasharray",p.current/p.seekableEnd*this.Z+" "+this.Z)}};g.M(Gs,vF); Gs.prototype.init=function(p,x){vF.prototype.init.call(this,p,x,{});if($EG(x)){this.adAvatar=new i2(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.adAvatar);this.adAvatar.WO(this.BO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(uA("ad-avatar"),g.O(x.adAvatar,OX));this.headline=new WC(this.api,this.layoutId,this.interactionLoggingClientData,this.vO);g.Z(this,this.headline);this.headline.WO(this.BO("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(uA("ad-simple-attributed-string"),new Me(x.headline));if(p=g.O(x.adDetailsLine,TuX))this.detailsLine=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.detailsLine),this.detailsLine.WO(this.BO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(uA("ad-details-line"),p);this.adButton=new od(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0);g.Z(this,this.adButton); this.adButton.WO(this.BO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(uA("ad-button"),g.O(x.adButton,A0));this.adBadge=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,!0);g.Z(this,this.adBadge);this.adBadge.WO(this.B);this.adBadge.init(uA("ad-badge"),g.O(x.adBadge,Nd));this.adInfoButton=new ZE(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.element,void 0,!0);g.Z(this,this.adInfoButton);this.adInfoButton.WO(this.B); this.adInfoButton.init(uA("ad-info-hover-text-button"),g.O(x.adInfoRenderer,q2),this.macros);if(p=g.O(x.skipAdButton,oYw))this.skipAdButton=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.skipAdButton),this.skipAdButton.WO(this.element),this.skipAdButton.init(uA("skip-button"),p);this.Z=new L5(x.durationMilliseconds);g.Z(this,this.Z);if(p=g.O(x.countdownViewModel,zYO))this.U=new pQX(this.api,this.layoutId,this.interactionLoggingClientData,this.vO,this.Z),g.Z(this, this.U),this.U.WO(this.BO("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.U.init(uA("timed-pie-countdown"),p);if(x=g.O(x.imageBackground,SWO))this.imageBackground=new Z$(this.api,this.layoutId,this.interactionLoggingClientData,this.vO),g.Z(this,this.imageBackground),this.imageBackground.WO(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(uA("image-background"), x);this.show();this.element.focus()}}; Gs.prototype.clear=function(){g.UU(this.j);this.hide()}; Gs.prototype.show=function(){xEV(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();vF.prototype.show.call(this)}; Gs.prototype.hide=function(){xEV(!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.U&&this.U.hide();this.imageBackground&&this.imageBackground.hide();vF.prototype.hide.call(this)};g.M(PH,g.Fx);g.I=PH.prototype;g.I.hQ=function(){return 1E3*this.api.getDuration(this.gU,!1)}; g.I.stop=function(){this.U&&this.eV.IA(this.U)}; g.I.SV=function(){var p=this.api.getProgressState(this.gU);this.Z={seekableStart:p.seekableStart,seekableEnd:p.seekableEnd,current:this.api.getCurrentTime(this.gU,!1)};this.publish("h")}; g.I.getProgressState=function(){return this.Z}; g.I.H4=function(p){g.Jz(p,2)&&this.publish("g")};var b4G="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.M(qd,zn); qd.prototype.j=function(p){var x=p.id,a=p.content,v=a.componentType;if(!b4G.includes(v))switch(p.actionType){case 1:p=this.api;var c=this.vO,J=a.layoutId,R=a.interactionLoggingClientData,d=a instanceof Xc?a.Rp:!1,b=a instanceof Xc||a instanceof BC?a.LL:!1;R=R===void 0?{}:R;d=d===void 0?!1:d;b=b===void 0?!1:b;switch(v){case "invideo-overlay":p=new IJj(p,J,R,c);break;case "player-overlay":p=new mP(p,J,R,c,new PH(p),b);break;case "player-overlay-layout":p=new w2(p,J,R,c,new PH(p));break;case "survey":p= new fJ(p,J,R,c);break;case "ad-action-interstitial":p=new lJt(p,J,R,c,d,b);break;case "video-interstitial-buttoned-centered":p=new Gs(p,J,R,c);break;case "survey-interstitial":p=new CJ(p,J,R,c);break;case "ad-message":p=new Q8Z(p,J,R,c,new PH(p,1));break;case "player-underlay":p=new SQw(p,J,R,c);break;case "display-underlay-text-grid-cards":p=new FxX(p,J,R,c,new PH(p));break;default:p=null}if(!p){g.Hp(Error("No UI component returned from ComponentFactory for type: "+v));break}g.bu(this.components, x)?g.Hp(Error("Ad UI component already registered: "+x)):this.components[x]=p;p.bind(a);a instanceof fx?this.Z?this.Z.append(p.UY):g.Hp(Error("Underlay view was not created but UnderlayRenderer was created")):this.B.append(p.UY);break;case 2:x=aXv(this,p);if(x==null)break;x.bind(a);break;case 3:a=aXv(this,p),a!=null&&(g.aZ(a),g.bu(this.components,x)?(a=this.components,x in a&&delete a[x]):g.Hp(Error("Ad UI component does not exist: "+x)))}}; qd.prototype.PO=function(){g.sM(Object.values(this.components));this.components={};zn.prototype.PO.call(this)};g.M(svt,g.Tf);g.I=svt.prototype;g.I.create=function(){try{vtv(this),this.load(),this.created=!0,vtv(this)}catch(p){sE(p instanceof Error?p:String(p))}}; g.I.load=function(){try{RwE(this)}finally{u7(kp(this.U).O1)&&this.player.Fq("ad",1)}}; g.I.destroy=function(){var p=this.player.getVideoData(1);this.U.U.Jh.CJ(p&&p.clientPlaybackNonce||"");this.unload();this.created=!1}; g.I.unload=function(){g.Tf.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(x){sE(x instanceof Error?x:String(x))}if(this.Z!=null){var p=this.Z;this.Z=null;p.dispose()}this.j.reset()}; g.I.Qs=function(){return!1}; g.I.getAdState=function(){return-1}; g.I.getOptions=function(){return Object.values(dxE)}; g.I.EN=function(p,x){x=x===void 0?{}:x;switch(p){case "replaceUrlMacros":return p=x,p.url?(x=Taf(this.player),Object.assign(x,p.GXA),p=g.Qz(p.url,x)):p=null,p;case "onAboutThisAdPopupClosed":this.zW(x);break;case "executeCommand":p=x;p.command&&p.layoutId&&this.executeCommand(p);break;default:return null}}; g.I.va=function(p){var x;return!((x=this.U.U.QV)==null||!x.get().va(p))}; g.I.zW=function(p){p.isMuted&&TSQ(kp(this.U).DW,kp(this.U).An,p.layoutId);this.KA&&this.KA.zW()}; g.I.executeCommand=function(p){kp(this.U).vO.executeCommand(p.command,p.layoutId)};g.pG("yt.player.Application.create",g.h3.create);g.pG("yt.player.Application.createAlternate",g.h3.create);oET(MS(),Kev);var r7O=g.$t("ytcsi.tick");r7O&&r7O("pe");g.He("ad",svt);g.M(g.u2,g.y);g.u2.prototype.start=function(p,x,a){this.config={from:p,to:x,duration:a,startTime:(0,g.WR)()};this.next()}; g.u2.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.u2.prototype.next=function(){if(this.config){var p=this.config,x=p.from,a=p.to,v=p.duration;p=p.startTime;var c=(0,g.WR)()-p;p=this.U;v=Ghz(p,c/v);if(v==0)p=p.V;else if(v==1)p=p.Y;else{c=OW(p.V,p.C,v);var J=OW(p.C,p.S,v);p=OW(p.S,p.Y,v);c=OW(c,J,v);J=OW(J,p,v);p=OW(c,J,v)}p=g.ZL(p,0,1);this.callback(x+(a-x)*p);p<1&&this.delay.start()}};g.M(g.Vs,g.N);g.I=g.Vs.prototype;g.I.hasSuggestions=function(){return this.suggestionData.length>0}; g.I.e5=function(){this.Z&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.I.show=function(){g.N.prototype.show.call(this);lXR(this)}; g.I.fP=function(){this.Z&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.I.II=function(){this.LW(this.api.fI().getPlayerSize())}; g.I.LW=function(p){var x=this.api.isEmbedsShortsMode()?.5625:16/9,a=this.api.WB();p=p.width-(a?112:58);a=Math.ceil(p/(a?320:192));var v=(p-a*8)/a;x=Math.floor(v/x);for(var c=g.k(this.U),J=c.next();!J.done;J=c.next())J=J.value.BO("ytp-suggestion-image"),J.style.width=v+"px",J.style.height=x+"px";this.suggestions.element.style.height=x+"px";this.B=v;this.Y=x;this.containerWidth=p;this.columns=a;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Fo(this)}; g.I.onVideoDataChange=function(){var p=this.api.L(),x=this.api.getVideoData();this.S=x.fp?!1:p.B;this.suggestionData=x.suggestions?g.mC(x.suggestions,function(a){return a&&!a.playlistId}):[]; YV$(this);x.fp?this.title.update({title:g.px("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:x.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.I.scrollTo=function(p){p=g.ZL(p,this.containerWidth-this.suggestionData.length*(this.B+8),0);this.V.start(this.scrollPosition,p,1E3);this.scrollPosition=p;g.Fo(this);lXR(this)};})(_yt_player);